/*!
 * PSPDFKit for Web 2024.8.0 (https://pspdfkit.com/web)
 *
 * Copyright (c) 2016-2024 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://pspdfkit.com/acknowledgements/web/
 */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.PSPDFKit=t():e.PSPDFKit=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})},84010:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Comment:()=>Ir,Devtools:()=>Er,SignatureTextInput:()=>lr,Stamp:()=>kr,TaggedPagination:()=>jr});var r=n(13158),o=n(96540),i=n(40027),a=n(65221),s=n(74848);function l(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}var c=E(),u=e=>x(e,c),d=E();u.write=e=>x(e,d);var p=E();u.onStart=e=>x(e,p);var h=E();u.onFrame=e=>x(e,h);var f=E();u.onFinish=e=>x(e,f);var m=[];u.setTimeout=(e,t)=>{const n=u.now()+t,r=()=>{const e=m.findIndex((e=>e.cancel==r));~e&&m.splice(e,1),b-=~e?1:0},o={time:n,handler:e,cancel:r};return m.splice(g(n),0,o),b+=1,S(),o};var g=e=>~(~m.findIndex((t=>t.time>e))||~m.length);u.cancel=e=>{p.delete(e),h.delete(e),f.delete(e),c.delete(e),d.delete(e)},u.sync=e=>{w=!0,u.batchedUpdates(e),w=!1},u.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,u.onStart(n)}return r.handler=e,r.cancel=()=>{p.delete(n),t=null},r};var v="undefined"!=typeof window?window.requestAnimationFrame:()=>{};u.use=e=>v=e,u.now="undefined"!=typeof performance?()=>performance.now():Date.now,u.batchedUpdates=e=>e(),u.catch=console.error,u.frameLoop="always",u.advance=()=>{"demand"!==u.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):C()};var y=-1,b=0,w=!1;function x(e,t){w?(t.delete(e),e(0)):(t.add(e),S())}function S(){y<0&&(y=0,"demand"!==u.frameLoop&&v(_))}function _(){~y&&(v(_),u.batchedUpdates(C))}function C(){const e=y;y=u.now();const t=g(y);t&&(k(m.splice(0,t),(e=>e.handler())),b-=t),b?(p.flush(),c.flush(e?Math.min(64,y-e):16.667),h.flush(),d.flush(),f.flush()):y=-1}function E(){let e=new Set,t=e;return{add(n){b+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(b-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,b-=t.size,k(t,(t=>t(n)&&e.add(t))),b+=e.size,t=e)}}}function k(e,t){e.forEach((e=>{try{t(e)}catch(e){u.catch(e)}}))}var z=Object.defineProperty,P={};function A(){}((e,t)=>{for(var n in t)z(e,n,{get:t[n],enumerable:!0})})(P,{assign:()=>$,colors:()=>L,createStringInterpolator:()=>j,skipAnimation:()=>V,to:()=>R,willAdvance:()=>K});var D={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 T(e,t){if(D.arr(e)){if(!D.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 I=(e,t)=>e.forEach(t);function M(e,t,n){if(D.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 N=e=>D.und(e)?[]:D.arr(e)?e:[e];function O(e,t){if(e.size){const n=Array.from(e);e.clear(),I(n,t)}}var j,R,F=(e,...t)=>O(e,(e=>e(...t))),B=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),L=null,V=!1,K=A,$=e=>{e.to&&(R=e.to),e.now&&(u.now=e.now),void 0!==e.colors&&(L=e.colors),null!=e.skipAnimation&&(V=e.skipAnimation),e.createStringInterpolator&&(j=e.createStringInterpolator),e.requestAnimationFrame&&u.use(e.requestAnimationFrame),e.batchedUpdates&&(u.batchedUpdates=e.batchedUpdates),e.willAdvance&&(K=e.willAdvance),e.frameLoop&&(u.frameLoop=e.frameLoop)},H=new Set,U=[],q=[],W=0,G={get idle(){return!H.size&&!U.length},start(e){W>e.priority?(H.add(e),u.onStart(Y)):(Z(e),u(X))},advance:X,sort(e){if(W)u.onFrame((()=>G.sort(e)));else{const t=U.indexOf(e);~t&&(U.splice(t,1),J(e))}},clear(){U=[],H.clear()}};function Y(){H.forEach(Z),H.clear(),u(X)}function Z(e){U.includes(e)||J(e)}function J(e){U.splice(function(e,t){const n=e.findIndex(t);return n<0?e.length:n}(U,(t=>t.priority>e.priority)),0,e)}function X(e){const t=q;for(let n=0;n<U.length;n++){const r=U[n];W=r.priority,r.idle||(K(r),r.advance(e),r.idle||t.push(r))}return W=0,(q=U).length=0,(U=t).length>0}var Q="[-+]?\\d*\\.?\\d+",ee=Q+"%";function te(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var ne=new RegExp("rgb"+te(Q,Q,Q)),re=new RegExp("rgba"+te(Q,Q,Q,Q)),oe=new RegExp("hsl"+te(Q,ee,ee)),ie=new RegExp("hsla"+te(Q,ee,ee,Q)),ae=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,se=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,le=/^#([0-9a-fA-F]{6})$/,ce=/^#([0-9a-fA-F]{8})$/;function ue(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 de(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=ue(o,r,e+1/3),a=ue(o,r,e),s=ue(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function pe(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function he(e){return(parseFloat(e)%360+360)%360/360}function fe(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function me(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function ge(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=le.exec(e))?parseInt(t[1]+"ff",16)>>>0:L&&void 0!==L[e]?L[e]:(t=ne.exec(e))?(pe(t[1])<<24|pe(t[2])<<16|pe(t[3])<<8|255)>>>0:(t=re.exec(e))?(pe(t[1])<<24|pe(t[2])<<16|pe(t[3])<<8|fe(t[4]))>>>0:(t=ae.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=ce.exec(e))?parseInt(t[1],16)>>>0:(t=se.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=oe.exec(e))?(255|de(he(t[1]),me(t[2]),me(t[3])))>>>0:(t=ie.exec(e))?(de(he(t[1]),me(t[2]),me(t[3]))|fe(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 ve=(e,t,n)=>{if(D.fun(e))return e;if(D.arr(e))return ve({range:e,output:t,extrapolate:n});if(D.str(e.output[0]))return j(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 ye=1.70158,be=1.525*ye,we=ye+1,xe=2*Math.PI/3,Se=2*Math.PI/4.5,_e=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},Ce={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=>we*e*e*e-ye*e*e,easeOutBack:e=>1+we*Math.pow(e-1,3)+ye*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-be)/2:(Math.pow(2*e-2,2)*((be+1)*(2*e-2)+be)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*xe),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*xe)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*Se)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*Se)/2+1,easeInBounce:e=>1-_e(1-e),easeOutBounce:_e,easeInOutBounce:e=>e<.5?(1-_e(1-2*e))/2:(1+_e(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)}},Ee=Symbol.for("FluidValue.get"),ke=Symbol.for("FluidValue.observers"),ze=e=>Boolean(e&&e[Ee]),Pe=e=>e&&e[Ee]?e[Ee]():e,Ae=e=>e[ke]||null;function De(e,t){const n=e[ke];n&&n.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}var Te=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Ie(this,e)}},Ie=(e,t)=>je(e,Ee,t);function Me(e,t){if(e[Ee]){let n=e[ke];n||je(e,ke,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Ne(e,t){const n=e[ke];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[ke]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var Oe,je=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Re=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Fe=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Be=new RegExp(`(${Re.source})(%|[a-z]+)`,"i"),Le=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Ve=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Ke=e=>{const[t,n]=$e(e);if(!t||B())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&&Ve.test(n)?Ke(n):n||e},$e=e=>{const t=Ve.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},He=(e,t,n,r,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`,Ue=e=>{Oe||(Oe=L?new RegExp(`(${Object.keys(L).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>Pe(e).replace(Ve,Ke).replace(Fe,ge).replace(Oe,ge))),n=t.map((e=>e.match(Re).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]})))).map((t=>ve({...e,output:t})));return e=>{const n=!Be.test(t[0])&&t.find((e=>Be.test(e)))?.replace(Re,"");let o=0;return t[0].replace(Re,(()=>`${r[o++](e)}${n||""}`)).replace(Le,He)}},qe="react-spring: ",We=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(`${qe}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},Ge=We(console.warn);var Ye=We(console.warn);function Ze(e){return D.str(e)&&("#"==e[0]||/\d/.test(e)||!B()&&Ve.test(e)||e in(L||{}))}var Je=B()?o.useEffect:o.useLayoutEffect;function Xe(){const e=(0,o.useState)()[1],t=(()=>{const e=(0,o.useRef)(!1);return Je((()=>(e.current=!0,()=>{e.current=!1})),[]),e})();return()=>{t.current&&e(Math.random())}}var Qe=e=>(0,o.useEffect)(e,et),et=[];function tt(e){const t=(0,o.useRef)();return(0,o.useEffect)((()=>{t.current=e})),t.current}var nt=Symbol.for("Animated:node"),rt=e=>e&&e[nt],ot=(e,t)=>{return n=e,r=nt,o=t,Object.defineProperty(n,r,{value:o,writable:!0,configurable:!0});var n,r,o},it=e=>e&&e[nt]&&e[nt].getPayload(),at=class{constructor(){ot(this,this)}getPayload(){return this.payload||[]}},st=class extends at{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,D.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new st(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return D.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,D.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},lt=class extends st{constructor(e){super(0),this._string=null,this._toString=ve({output:[e,e]})}static create(e){return new lt(e)}getValue(){const e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(D.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=ve({output:[this.getValue(),e]})),this._value=0,super.reset()}},ct={dependencies:null},ut=class extends at{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return M(this.source,((n,r)=>{var o;(o=n)&&o[nt]===o?t[r]=n.getValue(e):ze(n)?t[r]=Pe(n):e||(t[r]=n)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&I(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return M(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){ct.dependencies&&ze(e)&&ct.dependencies.add(e);const t=it(e);t&&I(t,(e=>this.add(e)))}},dt=class extends ut{constructor(e){super(e)}static create(e){return new dt(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(pt)),!0)}};function pt(e){return(Ze(e)?lt:st).create(e)}function ht(e){const t=rt(e);return t?t.constructor:D.arr(e)?dt:Ze(e)?lt:st}var ft=(e,t)=>{const n=!D.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,o.forwardRef)(((r,i)=>{const a=(0,o.useRef)(null),s=n&&(0,o.useCallback)((e=>{a.current=function(e,t){e&&(D.fun(e)?e(t):e.current=t);return t}(i,e)}),[i]),[l,c]=function(e,t){const n=new Set;ct.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)});return e=new ut(e),ct.dependencies=null,[e,n]}(r,t),d=Xe(),p=()=>{const e=a.current;if(n&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,l.getValue(!0)))&&d()},h=new mt(p,c),f=(0,o.useRef)();Je((()=>(f.current=h,I(c,(e=>Me(e,h))),()=>{f.current&&(I(f.current.deps,(e=>Ne(e,f.current))),u.cancel(f.current.update))}))),(0,o.useEffect)(p,[]),Qe((()=>()=>{const e=f.current;I(e.deps,(t=>Ne(t,e)))}));const m=t.getComponentProps(l.getValue());return o.createElement(e,{...m,ref:s})}))},mt=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&u.write(this.update)}};var gt=Symbol.for("AnimatedComponent"),vt=e=>D.str(e)?e:e&&D.str(e.displayName)?e.displayName:D.fun(e)&&e.name||null;function yt(e,...t){return D.fun(e)?e(...t):e}var bt=(e,t)=>!0===e||!!(t&&e&&(D.fun(e)?e(t):N(e).includes(t))),wt=(e,t)=>D.obj(e)?t&&e[t]:e,xt=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,St=e=>e,_t=(e,t=St)=>{let n=Ct;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);D.und(n)||(r[o]=n)}return r},Ct=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Et={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 kt(e){const t=function(e){const t={};let n=0;if(M(e,((e,r)=>{Et[r]||(t[r]=e,n++)})),n)return t}(e);if(t){const n={to:t};return M(e,((e,r)=>r in t||(n[r]=e))),n}return{...e}}function zt(e){return e=Pe(e),D.arr(e)?e.map(zt):Ze(e)?P.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Pt(e){for(const t in e)return!0;return!1}function At(e){return D.fun(e)||D.arr(e)&&D.obj(e[0])}function Dt(e,t){e.ref?.delete(e),t?.delete(e)}function Tt(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var It={tension:170,friction:26,mass:1,damping:1,easing:Ce.linear,clamp:!1};function Mt(e,t){if(D.und(t.decay)){const n=!D.und(t.tension)||!D.und(t.friction);!n&&D.und(t.frequency)&&D.und(t.damping)&&D.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var Nt=[];function Ot(e,{key:t,props:n,defaultProps:r,state:o,actions:i}){return new Promise(((a,s)=>{let l,c,d=bt(n.cancel??r?.cancel,t);if(d)f();else{D.und(n.pause)||(o.paused=bt(n.pause,t));let e=r?.pause;!0!==e&&(e=o.paused||bt(e,t)),l=yt(n.delay||0,t),e?(o.resumeQueue.add(h),i.pause()):(i.resume(),h())}function p(){o.resumeQueue.add(h),o.timeouts.delete(c),c.cancel(),l=c.time-u.now()}function h(){l>0&&!P.skipAnimation?(o.delayed=!0,c=u.setTimeout(f,l),o.pauseQueue.add(p),o.timeouts.add(c)):f()}function f(){o.delayed&&(o.delayed=!1),o.pauseQueue.delete(p),o.timeouts.delete(c),e<=(o.cancelId||0)&&(d=!0);try{i.start({...n,callId:e,cancel:d},a)}catch(e){s(e)}}}))}var jt=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?Bt(e.get()):t.every((e=>e.noop))?Rt(e.get()):Ft(e.get(),t.every((e=>e.finished))),Rt=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Ft=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Bt=e=>({value:e,cancelled:!0,finished:!1});function Lt(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=_t(t,((e,t)=>"onRest"===t?void 0:e));let d,p;const h=new Promise(((e,t)=>(d=e,p=t))),f=e=>{const t=o<=(n.cancelId||0)&&Bt(r)||o!==n.asyncId&&Ft(r,!1);if(t)throw e.result=t,p(e),e},m=(e,t)=>{const i=new Kt,a=new $t;return(async()=>{if(P.skipAnimation)throw Vt(n),a.result=Ft(r,!1),p(a),a;f(i);const s=D.obj(e)?{...e}:{...t,to:e};s.parentId=o,M(c,((e,t)=>{D.und(s[t])&&(s[t]=e)}));const l=await r.start(s);return f(i),n.paused&&await new Promise((e=>{n.resumeQueue.add(e)})),l})()};let g;if(P.skipAnimation)return Vt(n),Ft(r,!1);try{let t;t=D.arr(e)?(async e=>{for(const t of e)await m(t)})(e):Promise.resolve(e(m,r.stop.bind(r))),await Promise.all([t.then(d),h]),g=Ft(r.get(),!0,!1)}catch(e){if(e instanceof Kt)g=e.result;else{if(!(e instanceof $t))throw e;g=e.result}}finally{o==n.asyncId&&(n.asyncId=i,n.asyncTo=i?s:void 0,n.promise=i?l:void 0)}return D.fun(a)&&u.batchedUpdates((()=>{a(g,r,r.item)})),g})():l}function Vt(e,t){O(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Kt=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.")}},$t=class extends Error{constructor(){super("SkipAnimationSignal")}},Ht=e=>e instanceof qt,Ut=1,qt=class extends Te{constructor(){super(...arguments),this.id=Ut++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=rt(this);return e&&e.getValue()}to(...e){return P.to(this,e)}interpolate(...e){return Ge(`${qe}The "interpolate" function is deprecated in v9 (use "to" instead)`),P.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){De(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||G.sort(this),De(this,{type:"priority",parent:this,priority:e})}},Wt=Symbol.for("SpringPhase"),Gt=e=>(1&e[Wt])>0,Yt=e=>(2&e[Wt])>0,Zt=e=>(4&e[Wt])>0,Jt=(e,t)=>t?e[Wt]|=3:e[Wt]&=-3,Xt=(e,t)=>t?e[Wt]|=4:e[Wt]&=-5,Qt=class extends qt{constructor(e,t){if(super(),this.animation=new class{constructor(){this.changed=!1,this.values=Nt,this.toValues=null,this.fromValues=Nt,this.config=new class{constructor(){this.velocity=0,Object.assign(this,It)}},this.immediate=!1}},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,!D.und(e)||!D.und(t)){const n=D.obj(e)?{...e}:{...t,from:e};D.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Yt(this)||this._state.asyncTo)||Zt(this)}get goal(){return Pe(this.animation.to)}get velocity(){const e=rt(this);return e instanceof st?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return Gt(this)}get isAnimating(){return Yt(this)}get isPaused(){return Zt(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=it(r.to);!a&&ze(r.to)&&(o=N(Pe(r.to))),r.values.forEach(((s,l)=>{if(s.done)return;const c=s.constructor==lt?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=D.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(D.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=!D.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=rt(this),l=s.getValue();if(t){const e=Pe(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 u.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Yt(this)){const{to:e,config:t}=this.animation;u.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 D.und(e)?(n=this.queue||[],this.queue=[]):n=[D.obj(e)?e:{...t,to:e}],Promise.all(n.map((e=>this._update(e)))).then((e=>jt(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Vt(this._state,e&&this._lastCallId),u.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=D.obj(n)?n[t]:n,(null==n||At(n))&&(n=void 0),r=D.obj(r)?r[t]:r,null==r&&(r=void 0);const o={to:n,from:r};return Gt(this)||(e.reverse&&([n,r]=[r,n]),r=Pe(r),D.und(r)?rt(this)||this._set(n):this._set(r)),o}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,_t(e,((e,t)=>/^on/.test(t)?wt(e,n):e))),sn(this,e,"onProps"),ln(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 Ot(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{Zt(this)||(Xt(this,!0),F(i.pauseQueue),ln(this,"onPause",Ft(this,en(this,this.animation.to)),this))},resume:()=>{Zt(this)&&(Xt(this,!1),Yt(this)&&this._resume(),F(i.resumeQueue),ln(this,"onResume",Ft(this,en(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then((n=>{if(e.loop&&n.finished&&(!t||!n.noop)){const t=tn(e);if(t)return this._update(t,!0)}return n}))}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Bt(this));const r=!D.und(e.to),o=!D.und(e.from);if(r||o){if(!(t.callId>this._lastToId))return n(Bt(this));this._lastToId=t.callId}const{key:i,defaultProps:a,animation:s}=this,{to:l,from:c}=s;let{to:d=l,from:p=c}=e;!o||r||t.default&&!D.und(d)||(d=p),t.reverse&&([d,p]=[p,d]);const h=!T(p,c);h&&(s.from=p),p=Pe(p);const f=!T(d,l);f&&this._focus(d);const m=At(t.to),{config:g}=s,{decay:v,velocity:y}=g;(r||o)&&(g.velocity=0),t.config&&!m&&function(e,t,n){n&&(Mt(n={...n},t),t={...n,...t}),Mt(e,t),Object.assign(e,t);for(const t in It)null==e[t]&&(e[t]=It[t]);let{frequency:r,damping:o}=e;const{mass:i}=e;D.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)}(g,yt(t.config,i),t.config!==a.config?yt(a.config,i):void 0);let b=rt(this);if(!b||D.und(d))return n(Ft(this,!0));const w=D.und(t.reset)?o&&!t.default:!D.und(p)&&bt(t.reset,i),x=w?p:this.get(),S=zt(d),_=D.num(S)||D.arr(S)||Ze(S),C=!m&&(!_||bt(a.immediate||t.immediate,i));if(f){const e=ht(d);if(e!==b.constructor){if(!C)throw Error(`Cannot animate between ${b.constructor.name} and ${e.name}, as the "to" prop suggests`);b=this._set(S)}}const E=b.constructor;let k=ze(d),z=!1;if(!k){const e=w||!Gt(this)&&h;(f||e)&&(z=T(zt(x),S),k=!z),(T(s.immediate,C)||C)&&T(g.decay,v)&&T(g.velocity,y)||(k=!0)}if(z&&Yt(this)&&(s.changed&&!w?k=!0:k||this._stop(l)),!m&&((k||ze(l))&&(s.values=b.getPayload(),s.toValues=ze(d)?null:E==lt?[1]:N(S)),s.immediate!=C&&(s.immediate=C,C||w||this._set(l)),k)){const{onRest:e}=s;I(an,(e=>sn(this,t,e)));const r=Ft(this,en(this,l));F(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&u.batchedUpdates((()=>{s.changed=!w,e?.(r,this),w?yt(a.onRest,r):s.onStart?.(r,this)}))}w&&this._set(x),m?n(Lt(t.to,t,this._state,this)):k?this._start():Yt(this)&&!f?this._pendingCalls.add(n):n(Rt(x))}_focus(e){const t=this.animation;e!==t.to&&(Ae(this)&&this._detach(),t.to=e,Ae(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;ze(t)&&(Me(t,this),Ht(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;ze(e)&&Ne(e,this)}_set(e,t=!0){const n=Pe(e);if(!D.und(n)){const e=rt(this);if(!e||!T(n,e.getValue())){const r=ht(n);e&&e.constructor==r?e.setValue(n):ot(this,r.create(n)),e&&u.batchedUpdates((()=>{this._onChange(n,t)}))}}return rt(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,ln(this,"onStart",Ft(this,en(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),yt(this.animation.onChange,e,this)),yt(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;rt(this).reset(Pe(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),Yt(this)||(Jt(this,!0),Zt(this)||this._resume())}_resume(){P.skipAnimation?this.finish():G.start(this)}_stop(e,t){if(Yt(this)){Jt(this,!1);const n=this.animation;I(n.values,(e=>{e.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),De(this,{type:"idle",parent:this});const r=t?Bt(this.get()):Ft(this.get(),en(this,e??n.to));F(this._pendingCalls,r),n.changed&&(n.changed=!1,ln(this,"onRest",r,this))}}};function en(e,t){const n=zt(t);return T(zt(e.get()),n)}function tn(e,t=e.loop,n=e.to){const r=yt(t);if(r){const o=!0!==r&&kt(r),i=(o||e).reverse,a=!o||o.reset;return nn({...e,loop:t,default:!1,pause:void 0,to:!i||At(n)?n:void 0,from:a?e.from:void 0,reset:a,...o})}}function nn(e){const{to:t,from:n}=e=kt(e),r=new Set;return D.obj(t)&&on(t,r),D.obj(n)&&on(n,r),e.keys=r.size?Array.from(r):null,e}function rn(e){const t=nn(e);return D.und(t.default)&&(t.default=_t(t)),t}function on(e,t){M(e,((e,n)=>null!=e&&t.add(n)))}var an=["onStart","onRest","onChange","onPause","onResume"];function sn(e,t,n){e.animation[n]=t[n]!==xt(t,n)?wt(t[n],e.key):void 0}function ln(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var cn=["onStart","onChange","onRest"],un=1,dn=class{constructor(e,t){this.id=un++,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];D.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(nn(e)),this}start(e){let{queue:t}=this;return e?t=N(e).map(nn):this.queue=[],this._flush?this._flush(this,t):(yn(this,t),pn(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;I(N(t),(t=>n[t].stop(!!e)))}else Vt(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(D.und(e))this.start({pause:!0});else{const t=this.springs;I(N(e),(e=>t[e].pause()))}return this}resume(e){if(D.und(e))this.start({pause:!1});else{const t=this.springs;I(N(e),(e=>t[e].resume()))}return this}each(e){M(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,O(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&&O(t,(([e,t])=>{t.value=a,e(t,this,this._item)})),i&&(this._started=!1,O(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)}u.onFrame(this._onFrame)}};function pn(e,t){return Promise.all(t.map((t=>hn(e,t)))).then((t=>jt(e,t)))}async function hn(e,t,n){const{keys:r,to:o,from:i,loop:a,onRest:s,onResolve:l}=t,c=D.obj(t.default)&&t.default;a&&(t.loop=!1),!1===o&&(t.to=null),!1===i&&(t.from=null);const d=D.arr(o)||D.fun(o)?o:void 0;d?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):I(cn,(n=>{const r=t[n];if(D.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 p=e._state;t.pause===!p.paused?(p.paused=t.pause,F(t.pause?p.pauseQueue:p.resumeQueue)):p.paused&&(t.pause=!0);const h=(r||Object.keys(e.springs)).map((n=>e.springs[n].start(t))),f=!0===t.cancel||!0===xt(t,"cancel");(d||f&&p.asyncId)&&h.push(Ot(++e._lastAsyncId,{props:t,state:p,actions:{pause:A,resume:A,start(t,n){f?(Vt(p,e._lastAsyncId),n(Bt(e))):(t.onRest=s,n(Lt(d,t,p,e)))}}})),p.paused&&await new Promise((e=>{p.resumeQueue.add(e)}));const m=jt(e,await Promise.all(h));if(a&&m.finished&&(!n||!m.noop)){const n=tn(t,a,o);if(n)return yn(e,[n]),hn(e,n,!0)}return l&&u.batchedUpdates((()=>l(m,e,e.item))),m}function fn(e,t){const n={...e.springs};return t&&I(N(t),(e=>{D.und(e.keys)&&(e=nn(e)),D.obj(e.to)||(e={...e,to:void 0}),vn(n,e,(e=>gn(e)))})),mn(e,n),n}function mn(e,t){M(t,((t,n)=>{e.springs[n]||(e.springs[n]=t,Me(t,e))}))}function gn(e,t){const n=new Qt;return n.key=e,t&&Me(n,t),n}function vn(e,t,n){t.keys&&I(t.keys,(r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)}))}function yn(e,t){I(t,(t=>{vn(e.springs,t,(t=>gn(t,e)))}))}var bn,wn,xn=({children:e,...t})=>{const n=(0,o.useContext)(Sn),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=function(e,t){const[n]=(0,o.useState)((()=>({inputs:t,result:e()}))),r=(0,o.useRef)(),i=r.current;let a=i;a?Boolean(t&&a.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,a.inputs))||(a={inputs:t,result:e()}):a=n;return(0,o.useEffect)((()=>{r.current=a,i==n&&(n.inputs=n.result=void 0)}),[a]),a.result}((()=>({pause:r,immediate:i})),[r,i]);const{Provider:a}=Sn;return o.createElement(a,{value:t},e)},Sn=(bn=xn,wn={},Object.assign(bn,o.createContext(wn)),bn.Provider._context=bn,bn.Consumer._context=bn,bn);xn.Provider=Sn.Provider,xn.Consumer=Sn.Consumer;var _n=()=>{const e=[],t=function(t){Ye(`${qe}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 I(e,((e,o)=>{if(D.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 I(e,(e=>e.pause(...arguments))),this},t.resume=function(){return I(e,(e=>e.resume(...arguments))),this},t.set=function(t){I(e,((e,n)=>{const r=D.fun(t)?t(n,e):t;r&&e.set(r)}))},t.start=function(t){const n=[];return I(e,((e,r)=>{if(D.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 I(e,(e=>e.stop(...arguments))),this},t.update=function(t){return I(e,((e,n)=>e.update(this._getProps(t,e,n)))),this};const n=function(e,t,n){return D.fun(e)?e(n,t):e};return t._getProps=n,t};function Cn(e,t,n){const r=D.fun(t)&&t;r&&!n&&(n=[]);const i=(0,o.useMemo)((()=>r||3==arguments.length?_n():void 0),[]),a=(0,o.useRef)(0),s=Xe(),l=(0,o.useMemo)((()=>({ctrls:[],queue:[],flush(e,t){const n=fn(e,t);return a.current>0&&!l.queue.length&&!Object.keys(n).some((t=>!e.springs[t]))?pn(e,t):new Promise((r=>{mn(e,n),l.queue.push((()=>{r(pn(e,t))})),s()}))}})),[]),c=(0,o.useRef)([...l.ctrls]),u=[],d=tt(e)||0;function p(e,n){for(let o=e;o<n;o++){const e=c.current[o]||(c.current[o]=new dn(null,l.flush)),n=r?r(o,e):t[o];n&&(u[o]=rn(n))}}(0,o.useMemo)((()=>{I(c.current.slice(e,d),(e=>{Dt(e,i),e.stop(!0)})),c.current.length=e,p(d,e)}),[e]),(0,o.useMemo)((()=>{p(0,Math.min(d,e))}),n);const h=c.current.map(((e,t)=>fn(e,u[t]))),f=(0,o.useContext)(xn),m=tt(f),g=f!==m&&Pt(f);Je((()=>{a.current++,l.ctrls=c.current;const{queue:e}=l;e.length&&(l.queue=[],I(e,(e=>e()))),I(c.current,((e,t)=>{i?.add(e),g&&e.start({default:f});const n=u[t];n&&(Tt(e,n.ref),e.ref?e.queue.push(n):e.start(n))}))})),Qe((()=>()=>{I(l.ctrls,(e=>e.stop(!0)))}));const v=h.map((e=>({...e})));return i?[v,i]:v}function En(e,t){const n=D.fun(e),[[r],o]=Cn(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,o]:r}var kn=class extends qt{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=ve(...t);const n=this._get(),r=ht(n);ot(this,r.create(n))}advance(e){const t=this._get();T(t,this.get())||(rt(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Pn(this._active)&&An(this)}_get(){const e=D.arr(this.source)?this.source.map(Pe):N(Pe(this.source));return this.calc(...e)}_start(){this.idle&&!Pn(this._active)&&(this.idle=!1,I(it(this),(e=>{e.done=!1})),P.skipAnimation?(u.batchedUpdates((()=>this.advance())),An(this)):G.start(this))}_attach(){let e=1;I(N(this.source),(t=>{ze(t)&&Me(t,this),Ht(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){I(N(this.source),(e=>{ze(e)&&Ne(e,this)})),this._active.clear(),An(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=N(this.source).reduce(((e,t)=>Math.max(e,(Ht(t)?t.priority:0)+1)),0))}};function zn(e){return!1!==e.idle}function Pn(e){return!e.size||Array.from(e).every(zn)}function An(e){e.idle||(e.idle=!0,I(it(e),(e=>{e.done=!0})),De(e,{type:"idle",parent:e}))}P.assign({createStringInterpolator:Ue,to:(e,t)=>new kn(e,t)});G.advance;var Dn=n(40961),Tn=/^--/;function In(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||Tn.test(e)||Nn.hasOwnProperty(e)&&Nn[e]?(""+t).trim():t+"px"}var Mn={};var Nn={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},On=["Webkit","Ms","Moz","O"];Nn=Object.keys(Nn).reduce(((e,t)=>(On.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),Nn);var jn=/^(matrix|translate|scale|rotate|skew)/,Rn=/^(translate)/,Fn=/^(rotate|skew)/,Bn=(e,t)=>D.num(e)&&0!==e?e+t:e,Ln=(e,t)=>D.arr(e)?e.every((e=>Ln(e,t))):D.num(e)?e===t:parseFloat(e)===t,Vn=class extends ut{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=>Bn(e,"px"))).join(",")})`,Ln(e,0)]))),M(r,((e,t)=>{if("transform"===t)o.push([e||""]),i.push((e=>[e,""===e]));else if(jn.test(t)){if(delete r[t],D.und(e))return;const n=Rn.test(t)?"px":Fn.test(t)?"deg":"";o.push(N(e)),i.push("rotate3d"===t?([e,t,r,o])=>[`rotate3d(${e},${t},${r},${Bn(o,n)})`,Ln(o,0)]:e=>[`${t}(${e.map((e=>Bn(e,n))).join(",")})`,Ln(e,t.startsWith("scale")?1:0)])}})),o.length&&(r.transform=new Kn(o,i)),super(r)}},Kn=class extends Te{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 I(this.inputs,((n,r)=>{const o=Pe(n[0]),[i,a]=this.transforms[r](D.arr(o)?o:n.map(Pe));e+=" "+i,t=t&&a})),t?"none":e}observerAdded(e){1==e&&I(this.inputs,(e=>I(e,(e=>ze(e)&&Me(e,this)))))}observerRemoved(e){0==e&&I(this.inputs,(e=>I(e,(e=>ze(e)&&Ne(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),De(this,e)}};P.assign({batchedUpdates:Dn.unstable_batchedUpdates,createStringInterpolator:Ue,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 $n=((e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:n=(e=>new ut(e)),getComponentProps:r=(e=>e)}={})=>{const o={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=e=>{const t=vt(e)||"Anonymous";return(e=D.str(e)?i[e]||(i[e]=ft(e,o)):e[gt]||(e[gt]=ft(e,o))).displayName=`Animated(${t})`,e};return M(e,((t,n)=>{D.arr(e)&&(n=vt(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:Mn[t]||(Mn[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=In(t,r[t]);Tn.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 Vn(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Hn=$n.animated,Un=n(8521),qn=n(35295),Wn=n(20576),Gn=n(55026),Yn=n(42838),Zn=n.n(Yn),Jn=n(37555);function Xn(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 Qn(e,t,n){return(t=Xn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function er(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 tr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?er(Object(n),!0).forEach((function(t){Qn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):er(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nr(e,t){var n={};for(var r in e)n[r]=t(e[r],r);return n}var rr=(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},or=e=>{var t=t=>{var n=e.defaultClassName,r=tr(tr({},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)rr(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 nr(e.variantClassNames,(e=>nr(e,(e=>e.split(" ")[0]))))}},t},ir=or({defaultClassName:"_96lriw3",variantClassNames:{isFocusVisible:{true:"_96lriw4"},isDisabled:{true:"_1yep5z6da"},isInline:{false:"_96lriw6 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6jt _1yep5z6ju _1yep5z6jv _1yep5z6lc _1yep5z6ge",true:"_96lriw7 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6gz _1yep5z6gc"}},defaultVariants:{},compoundVariants:[]}),ar=or({defaultClassName:"_96lriw8 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6k2 _1yep5z6k3 _1yep5z6k4 _1yep5z6dy _1yep5z6fi",variantClassNames:{isInline:{false:"_96lriw9",true:"_96lriwa"}},defaultVariants:{},compoundVariants:[]}),sr=or({defaultClassName:"_96lriw0 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6it _1yep5z6iu _1yep5z6iv _1yep5z6j8 _1yep5z6j9 _1yep5z6ja",variantClassNames:{isInline:{false:"_96lriw1",true:"_1yep5z69o _1yep5z69p _1yep5z69q"}},defaultVariants:{},compoundVariants:[]}),lr=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:C}=(0,a.vZ)({...y,value:d||x,onChange:e=>{y.onChange?.(e),S(e)},"aria-label":m},w),{isFocusVisible:E,focusProps:k}=(0,a.og)({isTextInput:!0});return(0,s.jsxs)(r.Group,{className:(0,i.xW)(sr({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)(_,k),className:(0,i.xW)(ir({isFocusVisible:E,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 _1yep5z6lc _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6k2 _1yep5z6k3 _1yep5z6k4",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",{...C,"aria-disabled":"true",className:ar({isInline:f}),children:m})})]})}));lr.displayName="SignatureTextInput";var cr={prefix:String(Math.round(1e10*Math.random())),current:0},ur=(o.createContext(cr),o.createContext(!1));typeof window<"u"&&window.document&&window.document.createElement,new WeakMap;function dr(){return!1}function pr(){return!0}function hr(e){return()=>{}}function fr(){return"function"==typeof o.useSyncExternalStore?o.useSyncExternalStore(hr,dr,pr):(0,o.useContext)(ur)}o.useId;var mr=e=>{var t;return null!==(t=e?.ownerDocument)&&void 0!==t?t:document},gr=typeof document<"u"&&window.visualViewport;function vr(){return{width:gr&&gr?.width||window.innerWidth,height:gr&&gr?.height||window.innerHeight}}var yr=or({defaultClassName:"jzfzia3",variantClassNames:{isFocusVisible:{true:"jzfzia4"}},defaultVariants:{},compoundVariants:[]}),br=({children:e})=>{let t=o.useRef(null),{focusProps:n,isFocusVisible:i}=(0,a.og)(),[c,u]=(0,r.useLocalStorage)("bui-devtools",{x:0,y:0}),{buttonProps:d}=(0,a.sL)({},t),[p,h]=En((()=>({left:c.x,top:c.y,config:{tension:600,friction:30}}))),f=o.useRef(null),m=function(){let e=fr(),[t,n]=(0,o.useState)((()=>e?{width:0,height:0}:vr()));return(0,o.useEffect)((()=>{let e=()=>{n((e=>{let t=vr();return t.width===e.width&&t.height===e.height?e:t}))};return gr?gr.addEventListener("resize",e):window.addEventListener("resize",e),()=>{gr?gr.removeEventListener("resize",e):window.removeEventListener("resize",e)}}),[]),t}(),{size:g={width:0,height:0}}=(0,r.useResizeObserver)({ref:f}),{moveProps:v}=(0,a.fD)({onMove:e=>{u((({x:t,y:n})=>{"keyboard"===e.pointerType&&(t=l(t,0,m.width),n=l(n,0,m.height));let r=e.shiftKey?10:1;return{x:t+=e.deltaX*r,y:n+=e.deltaY*r}}))}});return(0,Un.useGranularLayoutEffect)((()=>{h.start({left:l(c.x,0,m.width-g.width),top:l(c.y,0,m.height-g.height)})}),[c],[h,m,g]),(0,s.jsx)(r.Portal,{children:(0,s.jsxs)(Hn.div,{role:"toolbar",ref:f,className:"jzfzia1 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6d7 _1yep5z6gz _1yep5z6g1 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6f5",style:p,children:[(0,s.jsx)("button",{...(0,a.v6)(v,n,d),className:yr({isFocusVisible:i}),ref:t,"aria-label":"Drag to move",children:(0,s.jsx)(qn.pc5,{className:"jzfzia5",size:20})}),(0,s.jsx)(r.Separator,{orientation:"vertical"}),e]})})};function wr(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function xr(){let e=wr(180,255),t=wr(180,255),n=wr(180,255);return`#${e.toString(16).padStart(2,"0")}${t.toString(16).padStart(2,"0")}${n.toString(16).padStart(2,"0")}`}var Sr=[{id:"none",label:"None"},{id:"blockid",label:"Block ID"},{id:"classnames",label:"Class Names"}],_r=({classStartsWith:e,onForceUpdate:t})=>{let n=o.useRef("none"),a=o.useRef(null),l=o.useRef(null),c=(0,o.useCallback)((()=>{let t,r=mr(a.current);if("blockid"===n.current)t=r.body.querySelectorAll("[data-block-id]");else{let n=r.body.querySelectorAll(`[class*="${e}"]`),o=l.current?.closest("[role='toolbar']");t=[...n].filter((t=>!o?.contains(t)&&[...t.classList].filter((t=>t.startsWith(e)))))}return[...t]}),[e]),u=(0,o.useCallback)((()=>{if(a.current&&(a.current.innerHTML="","none"!==n.current))for(let t of c()){let r=xr();t.style.outline=`2px solid ${r}`,t.style.outlineOffset="-2px";let o="blockid"===n.current?t.dataset.blockId:[...t.classList.values()].filter((t=>t.startsWith(e))).join(" "),i=t.getBoundingClientRect(),l=mr(t).createElement("div");Dn.render((0,s.jsx)(Cr,{container:a.current||void 0,blockId:o||"",style:{top:`${i.top}px`,left:`${i.left}px`,backgroundColor:r}}),l),a.current?.append(l)}}),[e,c]);return(0,o.useLayoutEffect)((()=>{let e=mr(a.current),t=(e=>e&&"window"in e&&e.window===e?e:mr(e).defaultView||window)(a.current);return a.current=e.createElement("div"),e.body.append(a.current),t.addEventListener("resize",u),()=>{a.current?.remove(),t.removeEventListener("resize",u)}}),[u]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r.Select,{placement:"bottom start",onSelectionChange:e=>{(0,i.V1)(a.current,"containerRef.current"),a.current.innerHTML="",n.current=e,"none"===e?t():u()},defaultSelectedKey:"none",items:Sr,ref:l,"aria-label":"Select debug type"}),(0,s.jsx)(r.ActionIconButton,{icon:qn.HTp,size:"md",onPress:u,"aria-label":"Refresh"})]})};function Cr({blockId:e,style:t,container:n}){return(0,s.jsx)(r.Portal,{portalContainer:n,children:(0,s.jsx)("div",{style:t,className:"jzfzia0",children:(0,s.jsx)(r.Text,{className:(0,Wn.UV)({padding:"xs"}),style:{color:"black"},type:"value",size:"sm",children:e})})})}var Er=o.forwardRef((({className:e,style:t,children:n,classStartsWith:r="BaselineUI"},i)=>{let[a,l]=o.useState(0),c=(0,o.useMemo)((()=>()=>{l((e=>e+1))}),[]);return(0,s.jsxs)("div",{className:e,style:t,ref:i,children:[(0,s.jsx)(br,{children:(0,s.jsx)("div",{className:"jzfzia2 _1yep5z63l _1yep5z63m _1yep5z63n _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6k8 _1yep5z6k9 _1yep5z6ka _1yep5z6iq _1yep5z6ir _1yep5z6is",children:(0,s.jsx)(_r,{classStartsWith:r,onForceUpdate:c})})}),(0,s.jsx)(o.Fragment,{children:n},a)]})}));Er.displayName="Devtools";var kr=o.forwardRef((({className:e,minWidth:t=10,maxWidth:n=Number.MAX_SAFE_INTEGER,height:a=96,strokeWidth:l=1,strokeColor:c="#3F87EA",fillColor:u="#AFFCFE",fontColor:d="#3F87EA",fontFamily:p="Arial",text:h,subText:f,style:m,label:g=(0,s.jsx)(r.MessageFormat,{id:"preview",defaultMessage:"Preview"}),"data-block-id":v,"data-block-class":y,onDimensionsChange:b,...w},x)=>{let S=(f?.6:.7)*a,[_,C]=o.useState(S),[E,k]=o.useState(Math.min(t,n)),z=o.useRef(null);return(0,Un.useGranularLayoutEffect)((()=>{if(!h||!z.current)return;let e=48+(0,i.jT)({text:h,fontFamily:"Arial",fontWeight:"bold",fontSize:_}).width,r=48+(0,i.jT)({text:h,fontFamily:"Arial",fontWeight:"bold",fontSize:S}).width,o=S,s=Math.max(e,t);(e>n||r>n)&&(o=(0,i.l5)({text:h,maxWidth:n-48,fontFamily:"Arial",fontWeight:"bold",initialFontSize:S}),s=o<S?n:r),C(o),k(s),b?.({width:s,height:a})}),[h],[_,t,b]),(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.2",width:E,height:Math.round(a),viewBox:`0 0 ${E} ${Math.round(a)}`,className:(0,i.xW)("BaselineUI-Stamp",e),style:m,ref:x,role:"img",fontFamily:p,"data-block-id":v,"data-block-class":y,...w,children:[(0,s.jsx)("title",{children:g}),(0,s.jsx)("rect",{width:E-2*l,height:a-2*l,fill:u,rx:7,ry:7,strokeWidth:l,stroke:c,x:l,y:l}),(0,s.jsx)("text",{x:E/2,textAnchor:"middle",fontWeight:"bold",fontSize:_,fill:d,dominantBaseline:"central",y:f?.4*a:a/2,ref:z,children:h}),f?(0,s.jsx)("text",{x:E/2,textAnchor:"middle",fontSize:.175*a,fill:d,dominantBaseline:"central",y:.85*a,children:f}):null]})}));kr.displayName="Stamp";var zr=or({defaultClassName:"oub0v60 _1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6it _1yep5z6iu _1yep5z6iv",variantClassNames:{hasName:{true:"_1yep5z6va _1yep5z6vb _1yep5z6vc"}},defaultVariants:{},compoundVariants:[]}),Pr="oub0v67",Ar=or({defaultClassName:"oub0v62 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z69i _1yep5z69j _1yep5z69k",variantClassNames:{isInline:{true:"_1yep5z6150 _1yep5z6151 _1yep5z6152"}},defaultVariants:{},compoundVariants:[]}),Dr=or({defaultClassName:"oub0v64 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6jt _1yep5z6ju _1yep5z6jv _1yep5z69l _1yep5z69m _1yep5z69n",variantClassNames:{isInline:{true:"_1yep5z614i _1yep5z614j _1yep5z614k _1yep5z6150 _1yep5z6151 _1yep5z6152",false:"_1yep5z614l _1yep5z614m _1yep5z614n _1yep5z615u _1yep5z615v _1yep5z615w"}},defaultVariants:{},compoundVariants:[]}),Tr="_1yep5z6e3 _1yep5z6eu",Ir=o.forwardRef((({className:e,style:t,reactions:n,name:o,content:a,description:l,menuProps:c,avatarProps:u,avatarNode:d,isInline:p=!0,children:h,contentStringType:f="text","data-block-id":m,"data-block-class":g,"data-comment-id":v},y)=>(0,s.jsxs)("div",{className:(0,i.xW)(zr({hasName:!!o}),"BaselineUI-Comment",e),style:t,ref:y,"data-block-id":m,"data-comment-id":v,"data-block-class":g,children:[(0,s.jsxs)("div",{className:Ar({isInline:p}),children:[(0,s.jsxs)("div",{className:Dr({isInline:p}),children:[d?(0,s.jsx)(r.DomNodeRenderer,{node:d}):u?(0,s.jsx)(r.Avatar,{...u,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:"BaselineUI-Comment-Name",children:o}):null,(0,s.jsx)(r.Text,{type:"helper",size:"sm",className:"BaselineUI-Comment-Description",children:l})]})]}),c?(0,s.jsx)(r.Menu,{placement:"bottom end",renderTrigger:({buttonProps:e,ref:t})=>(0,s.jsx)(r.ActionIconButton,{...e,size:"sm",variant:"secondary",icon:Gn.Z4,"aria-label":c["aria-label"],ref:t}),...c}):null]}),(0,s.jsx)(r.Box,{paddingLeft:p&&u?"2xl":void 0,children:(0,s.jsxs)(r.Box,{paddingLeft:p&&u?"lg":void 0,display:"flex",gap:"md",flexDirection:"column",children:["string"==typeof a&&"html"===f?(0,s.jsx)("div",{className:(0,i.xW)(Tr,Pr),dangerouslySetInnerHTML:{__html:Zn().sanitize(a)}}):(0,s.jsx)("div",{className:(0,i.xW)(Tr,Pr),children:a}),!!n?.length&&(0,s.jsx)("div",{className:Ar({isInline:!0}),children:n.map((e=>(0,s.jsx)(r.Reaction,{...e},e.id)))}),h]})})]})));Ir.displayName="Comment";var Mr=or({defaultClassName:"hhkx3s8 _1yep5z6lf _1yep5z6ln _1yep5z6eu _1yep5z6g1",variantClassNames:{size:{xs:"hhkx3s9 _1yep5z6pg _1yep5z6ph _1yep5z6pi _1yep5z6n4 _1yep5z6n5 _1yep5z6n6 _1yep5z6zn",sm:"hhkx3sa _1yep5z6pj _1yep5z6pk _1yep5z6pl _1yep5z6n7 _1yep5z6n8 _1yep5z6n9 _1yep5z6zq",md:"hhkx3sb _1yep5z6pj _1yep5z6pk _1yep5z6pl _1yep5z6n7 _1yep5z6n8 _1yep5z6n9 _1yep5z6zt"}},defaultVariants:{},compoundVariants:[]}),Nr=or({defaultClassName:"hhkx3s3 _1yep5z6ev",variantClassNames:{size:{xs:"_1yep5z6zn",sm:"_1yep5z6zq",md:"_1yep5z6zt"},isDisabled:{true:"_1yep5z610q"}},defaultVariants:{},compoundVariants:[]}),Or={xs:"hhkx3s0",sm:"hhkx3s1",md:"hhkx3s2"},jr=o.forwardRef((({className:e,style:t,size:n="md",isDisabled:l,decrementAriaLabel:c,incrementAriaLabel:u,"data-block-id":d,"data-block-class":p,label:h,onChange:f,onBlur:m,onKeyDown:g,minValue:v=Number.NEGATIVE_INFINITY,maxValue:y=Number.POSITIVE_INFINITY,defaultValue:b,value:w,description:x=(e=>`${e} / ${y}`),valueToLabelMap:S,onInputChange:_,onChangeSuccess:C,step:E=1,type:k,...z},P)=>{let A=(0,Jn.lb)(),D=o.useRef(null),T=(0,a.Bi)(),I=(0,a.Bi)(),M=(0,o.useCallback)((e=>"number"===k?e.toString():S?.[e]??e),[S,k]),N=(0,o.useCallback)((e=>{if("number"===k)return"string"==typeof e?Number.parseInt(e):e;let t=Object.fromEntries(Object.entries(S??{}).map((([e,t])=>[t,e])));return Number.parseInt(t[e]??e)}),[S,k]),[O,j]=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]}(w,b??1,C),[R,F]=(0,o.useState)(M(O)),B=O<=v||l,L=O>=y||l,V=(0,o.useCallback)((e=>{f?.(e);let t=N(e);Number.isNaN(t)?F(M(O)):((0,i.V1)("number"==typeof t,"Current value in textbox is not a number"),t>=v&&t<=y&&!l&&!z.isReadOnly?j(t):F(M(O)))}),[f,N,v,y,l,z.isReadOnly,M,O,j]),K=(0,o.useCallback)((e=>{V(R),m?.(e)}),[R,V,m]),$=(0,o.useCallback)((()=>{if(L)return;let e=Math.min(O+E,y);j(e),V(e)}),[O,V,L,y,j,E]),H=(0,o.useCallback)((()=>{if(B)return;let e=Math.max(O-E,v);j(e),V(e)}),[O,V,B,j,E,v]),U=(0,o.useCallback)((e=>{if(!l&&!z.isReadOnly){switch(e.key){case"Enter":V(R);break;case"ArrowUp":$();break;case"ArrowDown":H()}g?.(e)}}),[l,z.isReadOnly,g,V,R,$,H]);(0,Un.useGranularEffect)((()=>{F(M(O))}),[O],[M]);let{inputProps:q}=(0,a.vZ)({...z,value:R?.toString(),isDisabled:l,onBlur:K,onChange:e=>{F(e),_?.(e)},onKeyDown:U,"aria-labelledby":T,"aria-describedby":I},D),W="keyboard"===A,G="function"==typeof x?x(O):x;return(0,s.jsxs)(r.Box,{className:(0,i.xW)(Or[n],e),display:"flex",flexDirection:"row",alignItems:"center","data-block-id":d,"data-block-class":p,style:t,ref:P,"aria-disabled":l,children:[(0,s.jsx)("span",{id:T,className:Nr({size:n,isDisabled:l}),children:h}),(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:qn.eCO,elementType:"div",size:n,variant:"secondary",style:{height:"100%"},className:"BaselineUI-TaggedPagination-DecrementButton",UNSAFE_NON_INTERACTIVE:W,isDisabled:l||B||z.isReadOnly,excludeFromTabOrder:!0,onPress:H,"aria-label":c}),(0,s.jsx)(r.Separator,{orientation:"vertical"}),(0,s.jsx)("input",{...q,className:Mr({size:n}),min:v,max:y,type:k}),(0,s.jsx)(r.Separator,{orientation:"vertical"}),(0,s.jsx)(r.ActionIconButton,{icon:qn.JJd,elementType:"div",size:n,variant:"secondary",style:{height:"100%"},className:"BaselineUI-TaggedPagination-IncrementButton",UNSAFE_NON_INTERACTIVE:W,isDisabled:l||L||z.isReadOnly,excludeFromTabOrder:!0,onPress:$,"aria-label":u})]}),G?(0,s.jsx)("span",{id:I,className:Nr({size:n,isDisabled:l}),children:G}):null]})}));jr.displayName="TaggedPagination"},13837:(e,t,n)=>{"use strict";n.d(t,{W:()=>d});var r=n(40027),o=n(96540),i=n(40961),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]}createComponent(t){const n=this._component,o=this._children.map(((t,n)=>t instanceof e?t.createComponent(n):t))??[];o.some((e=>"function"==typeof e))&&(0,r.V1)(1===o.length,"The children must be a single function.");const{children:i,...s}=this._props,l=!o.length,c=1===o.length?o[0]:o,u=this._props.key||t;return l?(0,a.jsx)(n,{...s},u):(0,a.jsx)(n,{...s,children:c},u)}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)}createDOMNode(e){const t=this.createComponent();return i.render(t,e||this._container),this._container}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})}},41105:(e,t,n)=>{"use strict";n.d(t,{FK:()=>s,Y:()=>i,FD:()=>a});var r=n(13837),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},13158:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Accordion:()=>Tj,AccordionItem:()=>Mj,ActionButton:()=>eN,ActionGroup:()=>pL,ActionGroupItem:()=>hL,ActionIconButton:()=>WN,AlertDialog:()=>MB,AudioPlayer:()=>LB,Avatar:()=>Kj,Box:()=>zM,ButtonSelect:()=>QB,Checkbox:()=>uj,ColorInput:()=>ZR,ColorSwatch:()=>zR,ColorSwatchPicker:()=>fL,ComboBox:()=>lL,DateFormat:()=>yj,Dialog:()=>hO,DialogTitle:()=>fO,DomNodeRenderer:()=>tN,Drawer:()=>tO,Editor:()=>zB,FileUpload:()=>$O,Focusable:()=>UN,FreehandCanvas:()=>sF,GridList:()=>dL,Group:()=>kF,I18nProvider:()=>zN,IconColorInput:()=>XR,IconColorInputButton:()=>WR,IconSelect:()=>Bj,IconSlider:()=>_O,ImageDropZone:()=>mF,ImageGallery:()=>JB,InlineAlert:()=>sR,Link:()=>RO,ListBox:()=>RM,Markdown:()=>jB,Menu:()=>OO,MessageFormat:()=>EF,Modal:()=>iO,ModalClose:()=>uR,ModalContent:()=>uO,ModalTrigger:()=>cR,NumberFormat:()=>YO,NumberInput:()=>YN,Pagination:()=>vj,Panel:()=>wL,PanelGroup:()=>xL,PanelResizeHandle:()=>SL,Popover:()=>VM,PopoverContent:()=>yO,PopoverTrigger:()=>qM,Portal:()=>$N,PortalContainerProvider:()=>ON,Preview:()=>yF,ProgressBar:()=>qO,ProgressSpinner:()=>nj,RadioGroup:()=>CF,Reaction:()=>QO,ScrollControlButton:()=>DB,SearchInput:()=>TO,Select:()=>Fj,Separator:()=>EM,Slider:()=>ZN,Switch:()=>PO,TabItem:()=>Jj,Tabs:()=>Zj,TagGroup:()=>Cj,Text:()=>QN,TextInput:()=>GO,ThemeProvider:()=>KN,ToggleButton:()=>aj,ToggleIconButton:()=>$F,Toolbar:()=>jF,Tooltip:()=>HN,Transform:()=>hF,Transition:()=>AB,TreeView:()=>bL,defineMessages:()=>AN,isInsideOverlayContent:()=>$M,isRect:()=>HM,useCollator:()=>er.QM,useDateFormatter:()=>er.iF,useDevice:()=>MN,useI18n:()=>PN,useImage:()=>bN,useIntersectionObserver:()=>vN,useIsFirstRender:()=>wN,useLocalStorage:()=>TN,useMutationObserver:()=>DN,useNumberFormatter:()=>er.JY,usePortalContainer:()=>jN,useResizeObserver:()=>yN,useTextSelection:()=>IN,useUndoRedo:()=>EN,useUserPreferences:()=>BN});var r={};n.r(r),n.d(r,{decode:()=>nk,encode:()=>ik,format:()=>ak,parse:()=>bk});var o={};n.r(o),n.d(o,{Any:()=>wk,Cc:()=>xk,Cf:()=>Sk,P:()=>_k,S:()=>Ck,Z:()=>Ek});var i={};n.r(i),n.d(i,{arrayReplaceAt:()=>Gk,assign:()=>Wk,escapeHtml:()=>az,escapeRE:()=>lz,fromCodePoint:()=>Zk,has:()=>qk,isMdAsciiPunct:()=>pz,isPunctChar:()=>dz,isSpace:()=>cz,isString:()=>Hk,isValidEntityCode:()=>Yk,isWhiteSpace:()=>uz,lib:()=>fz,normalizeReference:()=>hz,unescapeAll:()=>tz,unescapeMd:()=>ez});var a={};n.r(a),n.d(a,{parseLinkDestination:()=>gz,parseLinkLabel:()=>mz,parseLinkTitle:()=>vz});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=P(),h=e=>C(e,p),f=P();h.write=e=>C(e,f);var m=P();h.onStart=e=>C(e,m);var g=P();h.onFrame=e=>C(e,g);var v=P();h.onFinish=e=>C(e,v);var y=[];h.setTimeout=(e,t)=>{const n=h.now()+t,r=()=>{const e=y.findIndex((e=>e.cancel==r));~e&&y.splice(e,1),S-=~e?1:0},o={time:n,handler:e,cancel:r};return y.splice(b(n),0,o),S+=1,E(),o};var b=e=>~(~y.findIndex((t=>t.time>e))||~y.length);h.cancel=e=>{m.delete(e),g.delete(e),v.delete(e),p.delete(e),f.delete(e)},h.sync=e=>{_=!0,h.batchedUpdates(e),_=!1},h.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,h.onStart(n)}return r.handler=e,r.cancel=()=>{m.delete(n),t=null},r};var w="undefined"!=typeof window?window.requestAnimationFrame:()=>{};h.use=e=>w=e,h.now="undefined"!=typeof performance?()=>performance.now():Date.now,h.batchedUpdates=e=>e(),h.catch=console.error,h.frameLoop="always",h.advance=()=>{"demand"!==h.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):z()};var x=-1,S=0,_=!1;function C(e,t){_?(t.delete(e),e(0)):(t.add(e),E())}function E(){x<0&&(x=0,"demand"!==h.frameLoop&&w(k))}function k(){~x&&(w(k),h.batchedUpdates(z))}function z(){const e=x;x=h.now();const t=b(x);t&&(A(y.splice(0,t),(e=>e.handler())),S-=t),S?(m.flush(),p.flush(e?Math.min(64,x-e):16.667),g.flush(),f.flush(),v.flush()):x=-1}function P(){let e=new Set,t=e;return{add(n){S+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(S-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,S-=t.size,A(t,(t=>t(n)&&e.add(t))),S+=e.size,t=e)}}}function A(e,t){e.forEach((e=>{try{t(e)}catch(e){h.catch(e)}}))}var D=Object.defineProperty,T={};function I(){}((e,t)=>{for(var n in t)D(e,n,{get:t[n],enumerable:!0})})(T,{assign:()=>q,colors:()=>$,createStringInterpolator:()=>B,skipAnimation:()=>H,to:()=>L,willAdvance:()=>U});var M={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 N(e,t){if(M.arr(e)){if(!M.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 O=(e,t)=>e.forEach(t);function j(e,t,n){if(M.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 R=e=>M.und(e)?[]:M.arr(e)?e:[e];function F(e,t){if(e.size){const n=Array.from(e);e.clear(),O(n,t)}}var B,L,V=(e,...t)=>F(e,(e=>e(...t))),K=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),$=null,H=!1,U=I,q=e=>{e.to&&(L=e.to),e.now&&(h.now=e.now),void 0!==e.colors&&($=e.colors),null!=e.skipAnimation&&(H=e.skipAnimation),e.createStringInterpolator&&(B=e.createStringInterpolator),e.requestAnimationFrame&&h.use(e.requestAnimationFrame),e.batchedUpdates&&(h.batchedUpdates=e.batchedUpdates),e.willAdvance&&(U=e.willAdvance),e.frameLoop&&(h.frameLoop=e.frameLoop)},W=new Set,G=[],Y=[],Z=0,J={get idle(){return!W.size&&!G.length},start(e){Z>e.priority?(W.add(e),h.onStart(X)):(Q(e),h(te))},advance:te,sort(e){if(Z)h.onFrame((()=>J.sort(e)));else{const t=G.indexOf(e);~t&&(G.splice(t,1),ee(e))}},clear(){G=[],W.clear()}};function X(){W.forEach(Q),W.clear(),h(te)}function Q(e){G.includes(e)||ee(e)}function ee(e){G.splice(function(e,t){const n=e.findIndex(t);return n<0?e.length:n}(G,(t=>t.priority>e.priority)),0,e)}function te(e){const t=Y;for(let n=0;n<G.length;n++){const r=G[n];Z=r.priority,r.idle||(U(r),r.advance(e),r.idle||t.push(r))}return Z=0,(Y=G).length=0,(G=t).length>0}var ne="[-+]?\\d*\\.?\\d+",re=ne+"%";function oe(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var ie=new RegExp("rgb"+oe(ne,ne,ne)),ae=new RegExp("rgba"+oe(ne,ne,ne,ne)),se=new RegExp("hsl"+oe(ne,re,re)),le=new RegExp("hsla"+oe(ne,re,re,ne)),ce=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ue=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,de=/^#([0-9a-fA-F]{6})$/,pe=/^#([0-9a-fA-F]{8})$/;function he(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 fe(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=he(o,r,e+1/3),a=he(o,r,e),s=he(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function me(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function ge(e){return(parseFloat(e)%360+360)%360/360}function ve(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function ye(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function be(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=de.exec(e))?parseInt(t[1]+"ff",16)>>>0:$&&void 0!==$[e]?$[e]:(t=ie.exec(e))?(me(t[1])<<24|me(t[2])<<16|me(t[3])<<8|255)>>>0:(t=ae.exec(e))?(me(t[1])<<24|me(t[2])<<16|me(t[3])<<8|ve(t[4]))>>>0:(t=ce.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=pe.exec(e))?parseInt(t[1],16)>>>0:(t=ue.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=se.exec(e))?(255|fe(ge(t[1]),ye(t[2]),ye(t[3])))>>>0:(t=le.exec(e))?(fe(ge(t[1]),ye(t[2]),ye(t[3]))|ve(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 we=(e,t,n)=>{if(M.fun(e))return e;if(M.arr(e))return we({range:e,output:t,extrapolate:n});if(M.str(e.output[0]))return B(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 xe=1.70158,Se=1.525*xe,_e=xe+1,Ce=2*Math.PI/3,Ee=2*Math.PI/4.5,ke=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},ze={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=>_e*e*e*e-xe*e*e,easeOutBack:e=>1+_e*Math.pow(e-1,3)+xe*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-Se)/2:(Math.pow(2*e-2,2)*((Se+1)*(2*e-2)+Se)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*Ce),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*Ce)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*Ee)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*Ee)/2+1,easeInBounce:e=>1-ke(1-e),easeOutBounce:ke,easeInOutBounce:e=>e<.5?(1-ke(1-2*e))/2:(1+ke(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)}},Pe=Symbol.for("FluidValue.get"),Ae=Symbol.for("FluidValue.observers"),De=e=>Boolean(e&&e[Pe]),Te=e=>e&&e[Pe]?e[Pe]():e,Ie=e=>e[Ae]||null;function Me(e,t){const n=e[Ae];n&&n.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}var Ne=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Oe(this,e)}},Oe=(e,t)=>Be(e,Pe,t);function je(e,t){if(e[Pe]){let n=e[Ae];n||Be(e,Ae,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Re(e,t){const n=e[Ae];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Ae]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var Fe,Be=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Le=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Ve=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Ke=new RegExp(`(${Le.source})(%|[a-z]+)`,"i"),$e=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,He=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Ue=e=>{const[t,n]=qe(e);if(!t||K())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&&He.test(n)?Ue(n):n||e},qe=e=>{const t=He.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},We=(e,t,n,r,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`,Ge=e=>{Fe||(Fe=$?new RegExp(`(${Object.keys($).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>Te(e).replace(He,Ue).replace(Ve,be).replace(Fe,be))),n=t.map((e=>e.match(Le).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=>we({...e,output:t})));return e=>{const n=!Ke.test(t[0])&&t.find((e=>Ke.test(e)))?.replace(Le,"");let r=0;return t[0].replace(Le,(()=>`${o[r++](e)}${n||""}`)).replace($e,We)}},Ye="react-spring: ",Ze=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(`${Ye}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},Je=Ze(console.warn);var Xe=Ze(console.warn);function Qe(e){return M.str(e)&&("#"==e[0]||/\d/.test(e)||!K()&&He.test(e)||e in($||{}))}var et=K()?l.useEffect:l.useLayoutEffect;function tt(){const e=(0,l.useState)()[1],t=(()=>{const e=(0,l.useRef)(!1);return et((()=>(e.current=!0,()=>{e.current=!1})),[]),e})();return()=>{t.current&&e(Math.random())}}var nt=e=>(0,l.useEffect)(e,rt),rt=[];function ot(e){const t=(0,l.useRef)();return(0,l.useEffect)((()=>{t.current=e})),t.current}var it=()=>{const[e,t]=(0,l.useState)(null);return et((()=>{const e=window.matchMedia("(prefers-reduced-motion)"),n=e=>{t(e.matches),q({skipAnimation:e.matches})};return n(e),e.addEventListener?e.addEventListener("change",n):e.addListener(n),()=>{e.removeEventListener?e.removeEventListener("change",n):e.removeListener(n)}}),[]),e},at=Symbol.for("Animated:node"),st=e=>e&&e[at],lt=(e,t)=>{return n=e,r=at,o=t,Object.defineProperty(n,r,{value:o,writable:!0,configurable:!0});var n,r,o},ct=e=>e&&e[at]&&e[at].getPayload(),ut=class{constructor(){lt(this,this)}getPayload(){return this.payload||[]}},dt=class extends ut{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,M.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new dt(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return M.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,M.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},pt=class extends dt{constructor(e){super(0),this._string=null,this._toString=we({output:[e,e]})}static create(e){return new pt(e)}getValue(){const e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(M.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=we({output:[this.getValue(),e]})),this._value=0,super.reset()}},ht={dependencies:null},ft=class extends ut{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return j(this.source,((n,r)=>{var o;(o=n)&&o[at]===o?t[r]=n.getValue(e):De(n)?t[r]=Te(n):e||(t[r]=n)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&O(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return j(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){ht.dependencies&&De(e)&&ht.dependencies.add(e);const t=ct(e);t&&O(t,(e=>this.add(e)))}},mt=class extends ft{constructor(e){super(e)}static create(e){return new mt(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(gt)),!0)}};function gt(e){return(Qe(e)?pt:dt).create(e)}function vt(e){const t=st(e);return t?t.constructor:M.arr(e)?mt:Qe(e)?pt:dt}var yt=(e,t)=>{const n=!M.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,l.forwardRef)(((r,o)=>{const i=(0,l.useRef)(null),a=n&&(0,l.useCallback)((e=>{i.current=function(e,t){e&&(M.fun(e)?e(t):e.current=t);return t}(o,e)}),[o]),[s,c]=function(e,t){const n=new Set;ht.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)});return e=new ft(e),ht.dependencies=null,[e,n]}(r,t),u=tt(),d=()=>{const e=i.current;if(n&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,s.getValue(!0)))&&u()},p=new bt(d,c),f=(0,l.useRef)();et((()=>(f.current=p,O(c,(e=>je(e,p))),()=>{f.current&&(O(f.current.deps,(e=>Re(e,f.current))),h.cancel(f.current.update))}))),(0,l.useEffect)(d,[]),nt((()=>()=>{const e=f.current;O(e.deps,(t=>Re(t,e)))}));const m=t.getComponentProps(s.getValue());return l.createElement(e,{...m,ref:a})}))},bt=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&h.write(this.update)}};var wt=Symbol.for("AnimatedComponent"),xt=e=>M.str(e)?e:e&&M.str(e.displayName)?e.displayName:M.fun(e)&&e.name||null;function St(e,...t){return M.fun(e)?e(...t):e}var _t=(e,t)=>!0===e||!!(t&&e&&(M.fun(e)?e(t):R(e).includes(t))),Ct=(e,t)=>M.obj(e)?t&&e[t]:e,Et=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,kt=e=>e,zt=(e,t=kt)=>{let n=Pt;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);M.und(n)||(r[o]=n)}return r},Pt=["config","onProps","onStart","onChange","onPause","onResume","onRest"],At={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 Dt(e){const t=function(e){const t={};let n=0;if(j(e,((e,r)=>{At[r]||(t[r]=e,n++)})),n)return t}(e);if(t){const n={to:t};return j(e,((e,r)=>r in t||(n[r]=e))),n}return{...e}}function Tt(e){return e=Te(e),M.arr(e)?e.map(Tt):Qe(e)?T.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function It(e){for(const t in e)return!0;return!1}function Mt(e){return M.fun(e)||M.arr(e)&&M.obj(e[0])}function Nt(e,t){e.ref?.delete(e),t?.delete(e)}function Ot(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var jt={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}},Rt={...jt.default,mass:1,damping:1,easing:ze.linear,clamp:!1};function Ft(e,t){if(M.und(t.decay)){const n=!M.und(t.tension)||!M.und(t.friction);!n&&M.und(t.frequency)&&M.und(t.damping)&&M.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var Bt=[];function Lt(e,{key:t,props:n,defaultProps:r,state:o,actions:i}){return new Promise(((a,s)=>{let l,c,u=_t(n.cancel??r?.cancel,t);if(u)f();else{M.und(n.pause)||(o.paused=_t(n.pause,t));let e=r?.pause;!0!==e&&(e=o.paused||_t(e,t)),l=St(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-h.now()}function p(){l>0&&!T.skipAnimation?(o.delayed=!0,c=h.setTimeout(f,l),o.pauseQueue.add(d),o.timeouts.add(c)):f()}function f(){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 Vt=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?Ht(e.get()):t.every((e=>e.noop))?Kt(e.get()):$t(e.get(),t.every((e=>e.finished))),Kt=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),$t=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Ht=e=>({value:e,cancelled:!0,finished:!1});function Ut(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=zt(t,((e,t)=>"onRest"===t?void 0:e));let u,d;const p=new Promise(((e,t)=>(u=e,d=t))),f=e=>{const t=o<=(n.cancelId||0)&&Ht(r)||o!==n.asyncId&&$t(r,!1);if(t)throw e.result=t,d(e),e},m=(e,t)=>{const i=new Wt,a=new Gt;return(async()=>{if(T.skipAnimation)throw qt(n),a.result=$t(r,!1),d(a),a;f(i);const s=M.obj(e)?{...e}:{...t,to:e};s.parentId=o,j(c,((e,t)=>{M.und(s[t])&&(s[t]=e)}));const l=await r.start(s);return f(i),n.paused&&await new Promise((e=>{n.resumeQueue.add(e)})),l})()};let g;if(T.skipAnimation)return qt(n),$t(r,!1);try{let t;t=M.arr(e)?(async e=>{for(const t of e)await m(t)})(e):Promise.resolve(e(m,r.stop.bind(r))),await Promise.all([t.then(u),p]),g=$t(r.get(),!0,!1)}catch(e){if(e instanceof Wt)g=e.result;else{if(!(e instanceof Gt))throw e;g=e.result}}finally{o==n.asyncId&&(n.asyncId=i,n.asyncTo=i?s:void 0,n.promise=i?l:void 0)}return M.fun(a)&&h.batchedUpdates((()=>{a(g,r,r.item)})),g})():l}function qt(e,t){F(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Wt=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.")}},Gt=class extends Error{constructor(){super("SkipAnimationSignal")}},Yt=e=>e instanceof Jt,Zt=1,Jt=class extends Ne{constructor(){super(...arguments),this.id=Zt++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=st(this);return e&&e.getValue()}to(...e){return T.to(this,e)}interpolate(...e){return Je(`${Ye}The "interpolate" function is deprecated in v9 (use "to" instead)`),T.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){Me(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||J.sort(this),Me(this,{type:"priority",parent:this,priority:e})}},Xt=Symbol.for("SpringPhase"),Qt=e=>(1&e[Xt])>0,en=e=>(2&e[Xt])>0,tn=e=>(4&e[Xt])>0,nn=(e,t)=>t?e[Xt]|=3:e[Xt]&=-3,rn=(e,t)=>t?e[Xt]|=4:e[Xt]&=-5,on=class extends Jt{constructor(e,t){if(super(),this.animation=new class{constructor(){this.changed=!1,this.values=Bt,this.toValues=null,this.fromValues=Bt,this.config=new class{constructor(){this.velocity=0,Object.assign(this,Rt)}},this.immediate=!1}},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,!M.und(e)||!M.und(t)){const n=M.obj(e)?{...e}:{...t,from:e};M.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(en(this)||this._state.asyncTo)||tn(this)}get goal(){return Te(this.animation.to)}get velocity(){const e=st(this);return e instanceof dt?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return Qt(this)}get isAnimating(){return en(this)}get isPaused(){return tn(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=ct(r.to);!a&&De(r.to)&&(o=R(Te(r.to))),r.values.forEach(((s,l)=>{if(s.done)return;const c=s.constructor==pt?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=M.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(M.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=!M.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=st(this),l=s.getValue();if(t){const e=Te(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 h.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(en(this)){const{to:e,config:t}=this.animation;h.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 M.und(e)?(n=this.queue||[],this.queue=[]):n=[M.obj(e)?e:{...t,to:e}],Promise.all(n.map((e=>this._update(e)))).then((e=>Vt(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),qt(this._state,e&&this._lastCallId),h.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=M.obj(n)?n[t]:n,(null==n||Mt(n))&&(n=void 0),r=M.obj(r)?r[t]:r,null==r&&(r=void 0);const o={to:n,from:r};return Qt(this)||(e.reverse&&([n,r]=[r,n]),r=Te(r),M.und(r)?st(this)||this._set(n):this._set(r)),o}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,zt(e,((e,t)=>/^on/.test(t)?Ct(e,n):e))),pn(this,e,"onProps"),hn(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 Lt(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{tn(this)||(rn(this,!0),V(i.pauseQueue),hn(this,"onPause",$t(this,an(this,this.animation.to)),this))},resume:()=>{tn(this)&&(rn(this,!1),en(this)&&this._resume(),V(i.resumeQueue),hn(this,"onResume",$t(this,an(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then((n=>{if(e.loop&&n.finished&&(!t||!n.noop)){const t=sn(e);if(t)return this._update(t,!0)}return n}))}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Ht(this));const r=!M.und(e.to),o=!M.und(e.from);if(r||o){if(!(t.callId>this._lastToId))return n(Ht(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&&!M.und(u)||(u=d),t.reverse&&([u,d]=[d,u]);const p=!N(d,c);p&&(s.from=d),d=Te(d);const f=!N(u,l);f&&this._focus(u);const m=Mt(t.to),{config:g}=s,{decay:v,velocity:y}=g;(r||o)&&(g.velocity=0),t.config&&!m&&function(e,t,n){n&&(Ft(n={...n},t),t={...n,...t}),Ft(e,t),Object.assign(e,t);for(const t in Rt)null==e[t]&&(e[t]=Rt[t]);let{frequency:r,damping:o}=e;const{mass:i}=e;M.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)}(g,St(t.config,i),t.config!==a.config?St(a.config,i):void 0);let b=st(this);if(!b||M.und(u))return n($t(this,!0));const w=M.und(t.reset)?o&&!t.default:!M.und(d)&&_t(t.reset,i),x=w?d:this.get(),S=Tt(u),_=M.num(S)||M.arr(S)||Qe(S),C=!m&&(!_||_t(a.immediate||t.immediate,i));if(f){const e=vt(u);if(e!==b.constructor){if(!C)throw Error(`Cannot animate between ${b.constructor.name} and ${e.name}, as the "to" prop suggests`);b=this._set(S)}}const E=b.constructor;let k=De(u),z=!1;if(!k){const e=w||!Qt(this)&&p;(f||e)&&(z=N(Tt(x),S),k=!z),(N(s.immediate,C)||C)&&N(g.decay,v)&&N(g.velocity,y)||(k=!0)}if(z&&en(this)&&(s.changed&&!w?k=!0:k||this._stop(l)),!m&&((k||De(l))&&(s.values=b.getPayload(),s.toValues=De(u)?null:E==pt?[1]:R(S)),s.immediate!=C&&(s.immediate=C,C||w||this._set(l)),k)){const{onRest:e}=s;O(dn,(e=>pn(this,t,e)));const r=$t(this,an(this,l));V(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&h.batchedUpdates((()=>{s.changed=!w,e?.(r,this),w?St(a.onRest,r):s.onStart?.(r,this)}))}w&&this._set(x),m?n(Ut(t.to,t,this._state,this)):k?this._start():en(this)&&!f?this._pendingCalls.add(n):n(Kt(x))}_focus(e){const t=this.animation;e!==t.to&&(Ie(this)&&this._detach(),t.to=e,Ie(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;De(t)&&(je(t,this),Yt(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;De(e)&&Re(e,this)}_set(e,t=!0){const n=Te(e);if(!M.und(n)){const e=st(this);if(!e||!N(n,e.getValue())){const r=vt(n);e&&e.constructor==r?e.setValue(n):lt(this,r.create(n)),e&&h.batchedUpdates((()=>{this._onChange(n,t)}))}}return st(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,hn(this,"onStart",$t(this,an(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),St(this.animation.onChange,e,this)),St(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;st(this).reset(Te(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),en(this)||(nn(this,!0),tn(this)||this._resume())}_resume(){T.skipAnimation?this.finish():J.start(this)}_stop(e,t){if(en(this)){nn(this,!1);const n=this.animation;O(n.values,(e=>{e.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Me(this,{type:"idle",parent:this});const r=t?Ht(this.get()):$t(this.get(),an(this,e??n.to));V(this._pendingCalls,r),n.changed&&(n.changed=!1,hn(this,"onRest",r,this))}}};function an(e,t){const n=Tt(t);return N(Tt(e.get()),n)}function sn(e,t=e.loop,n=e.to){const r=St(t);if(r){const o=!0!==r&&Dt(r),i=(o||e).reverse,a=!o||o.reset;return ln({...e,loop:t,default:!1,pause:void 0,to:!i||Mt(n)?n:void 0,from:a?e.from:void 0,reset:a,...o})}}function ln(e){const{to:t,from:n}=e=Dt(e),r=new Set;return M.obj(t)&&un(t,r),M.obj(n)&&un(n,r),e.keys=r.size?Array.from(r):null,e}function cn(e){const t=ln(e);return M.und(t.default)&&(t.default=zt(t)),t}function un(e,t){j(e,((e,n)=>null!=e&&t.add(n)))}var dn=["onStart","onRest","onChange","onPause","onResume"];function pn(e,t,n){e.animation[n]=t[n]!==Et(t,n)?Ct(t[n],e.key):void 0}function hn(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var fn=["onStart","onChange","onRest"],mn=1,gn=class{constructor(e,t){this.id=mn++,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];M.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(ln(e)),this}start(e){let{queue:t}=this;return e?t=R(e).map(ln):this.queue=[],this._flush?this._flush(this,t):(_n(this,t),vn(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;O(R(t),(t=>n[t].stop(!!e)))}else qt(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(M.und(e))this.start({pause:!0});else{const t=this.springs;O(R(e),(e=>t[e].pause()))}return this}resume(e){if(M.und(e))this.start({pause:!1});else{const t=this.springs;O(R(e),(e=>t[e].resume()))}return this}each(e){j(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,F(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&&F(t,(([e,t])=>{t.value=a,e(t,this,this._item)})),i&&(this._started=!1,F(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)}h.onFrame(this._onFrame)}};function vn(e,t){return Promise.all(t.map((t=>yn(e,t)))).then((t=>Vt(e,t)))}async function yn(e,t,n){const{keys:r,to:o,from:i,loop:a,onRest:s,onResolve:l}=t,c=M.obj(t.default)&&t.default;a&&(t.loop=!1),!1===o&&(t.to=null),!1===i&&(t.from=null);const u=M.arr(o)||M.fun(o)?o:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):O(fn,(n=>{const r=t[n];if(M.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,V(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))),f=!0===t.cancel||!0===Et(t,"cancel");(u||f&&d.asyncId)&&p.push(Lt(++e._lastAsyncId,{props:t,state:d,actions:{pause:I,resume:I,start(t,n){f?(qt(d,e._lastAsyncId),n(Ht(e))):(t.onRest=s,n(Ut(u,t,d,e)))}}})),d.paused&&await new Promise((e=>{d.resumeQueue.add(e)}));const m=Vt(e,await Promise.all(p));if(a&&m.finished&&(!n||!m.noop)){const n=sn(t,a,o);if(n)return _n(e,[n]),yn(e,n,!0)}return l&&h.batchedUpdates((()=>l(m,e,e.item))),m}function bn(e,t){const n={...e.springs};return t&&O(R(t),(e=>{M.und(e.keys)&&(e=ln(e)),M.obj(e.to)||(e={...e,to:void 0}),Sn(n,e,(e=>xn(e)))})),wn(e,n),n}function wn(e,t){j(t,((t,n)=>{e.springs[n]||(e.springs[n]=t,je(t,e))}))}function xn(e,t){const n=new on;return n.key=e,t&&je(n,t),n}function Sn(e,t,n){t.keys&&O(t.keys,(r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)}))}function _n(e,t){O(t,(t=>{Sn(e.springs,t,(t=>xn(t,e)))}))}var Cn,En,kn=({children:e,...t})=>{const n=(0,l.useContext)(zn),r=t.pause||!!n.pause,o=t.immediate||!!n.immediate;t=function(e,t){const[n]=(0,l.useState)((()=>({inputs:t,result:e()}))),r=(0,l.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,l.useEffect)((()=>{r.current=i,o==n&&(n.inputs=n.result=void 0)}),[i]),i.result}((()=>({pause:r,immediate:o})),[r,o]);const{Provider:i}=zn;return l.createElement(i,{value:t},e)},zn=(Cn=kn,En={},Object.assign(Cn,l.createContext(En)),Cn.Provider._context=Cn,Cn.Consumer._context=Cn,Cn);kn.Provider=zn.Provider,kn.Consumer=zn.Consumer;var Pn=()=>{const e=[],t=function(t){Xe(`${Ye}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 O(e,((e,o)=>{if(M.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 O(e,(e=>e.pause(...arguments))),this},t.resume=function(){return O(e,(e=>e.resume(...arguments))),this},t.set=function(t){O(e,((e,n)=>{const r=M.fun(t)?t(n,e):t;r&&e.set(r)}))},t.start=function(t){const n=[];return O(e,((e,r)=>{if(M.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 O(e,(e=>e.stop(...arguments))),this},t.update=function(t){return O(e,((e,n)=>e.update(this._getProps(t,e,n)))),this};const n=function(e,t,n){return M.fun(e)?e(n,t):e};return t._getProps=n,t};function An(e,t,n){const r=M.fun(t)&&t;r&&!n&&(n=[]);const o=(0,l.useMemo)((()=>r||3==arguments.length?Pn():void 0),[]),i=(0,l.useRef)(0),a=tt(),s=(0,l.useMemo)((()=>({ctrls:[],queue:[],flush(e,t){const n=bn(e,t);return i.current>0&&!s.queue.length&&!Object.keys(n).some((t=>!e.springs[t]))?vn(e,t):new Promise((r=>{wn(e,n),s.queue.push((()=>{r(vn(e,t))})),a()}))}})),[]),c=(0,l.useRef)([...s.ctrls]),u=[],d=ot(e)||0;function p(e,n){for(let o=e;o<n;o++){const e=c.current[o]||(c.current[o]=new gn(null,s.flush)),n=r?r(o,e):t[o];n&&(u[o]=cn(n))}}(0,l.useMemo)((()=>{O(c.current.slice(e,d),(e=>{Nt(e,o),e.stop(!0)})),c.current.length=e,p(d,e)}),[e]),(0,l.useMemo)((()=>{p(0,Math.min(d,e))}),n);const h=c.current.map(((e,t)=>bn(e,u[t]))),f=(0,l.useContext)(kn),m=ot(f),g=f!==m&&It(f);et((()=>{i.current++,s.ctrls=c.current;const{queue:e}=s;e.length&&(s.queue=[],O(e,(e=>e()))),O(c.current,((e,t)=>{o?.add(e),g&&e.start({default:f});const n=u[t];n&&(Ot(e,n.ref),e.ref?e.queue.push(n):e.start(n))}))})),nt((()=>()=>{O(s.ctrls,(e=>e.stop(!0)))}));const v=h.map((e=>({...e})));return o?[v,o]:v}function Dn(e,t){const n=M.fun(e),[[r],o]=An(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,o]:r}function Tn(e,t,n){const r=M.fun(t)&&t,{reset:o,sort:i,trail:a=0,expires:s=!0,exitBeforeEnter:c=!1,onDestroyed:u,ref:d,config:p}=r?r():t,h=(0,l.useMemo)((()=>r||3==arguments.length?Pn():void 0),[]),f=R(e),m=[],g=(0,l.useRef)(null),v=o?null:g.current;et((()=>{g.current=m})),nt((()=>(O(m,(e=>{h?.add(e.ctrl),e.ctrl.ref=h})),()=>{O(g.current,(e=>{e.expired&&clearTimeout(e.expirationId),Nt(e.ctrl,h),e.ctrl.stop(!0)}))})));const y=Mn(f,r?r():t,v),b=o&&g.current||[];et((()=>O(b,(({ctrl:e,item:t,key:n})=>{Nt(e,h),St(u,t,n)}))));const w=[];if(v&&O(v,((e,t)=>{e.expired?(clearTimeout(e.expirationId),b.push(e)):~(t=w[t]=y.indexOf(e.key))&&(m[t]=e)})),O(f,((e,t)=>{m[t]||(m[t]={key:y[t],item:e,phase:"mount",ctrl:new gn},m[t].ctrl.item=e)})),w.length){let e=-1;const{leave:n}=r?r():t;O(w,((t,r)=>{const o=v[r];~t?(e=m.indexOf(o),m[e]={...o,item:f[t]}):n&&m.splice(++e,0,o)}))}M.fun(i)&&m.sort(((e,t)=>i(e.item,t.item)));let x=-a;const S=tt(),_=zt(t),C=new Map,E=(0,l.useRef)(new Map),k=(0,l.useRef)(!1);O(m,((e,n)=>{const o=e.key,i=e.phase,l=r?r():t;let u,h;const f=St(l.delay||0,o);if("mount"==i)u=l.enter,h="enter";else{const e=y.indexOf(o)<0;if("leave"!=i)if(e)u=l.leave,h="leave";else{if(!(u=l.update))return;h="update"}else{if(e)return;u=l.enter,h="enter"}}if(u=St(u,e.item,n),u=M.obj(u)?Dt(u):{to:u},!u.config){const t=p||_.config;u.config=St(t,e.item,n,h)}x+=a;const m={..._,delay:f+x,ref:d,immediate:l.immediate,reset:!1,...u};if("enter"==h&&M.und(m.from)){const o=r?r():t,i=M.und(o.initial)||v?o.from:o.initial;m.from=St(i,e.item,n)}const{onResolve:b}=m;m.onResolve=e=>{St(b,e);const t=g.current,n=t.find((e=>e.key===o));if(n&&(!e.cancelled||"update"==n.phase)&&n.ctrl.idle){const e=t.every((e=>e.ctrl.idle));if("leave"==n.phase){const t=St(s,n.item);if(!1!==t){const r=!0===t?0:t;if(n.expired=!0,!e&&r>0)return void(r<=2147483647&&(n.expirationId=setTimeout(S,r)))}}e&&t.some((e=>e.expired))&&(E.current.delete(n),c&&(k.current=!0),S())}};const w=bn(e.ctrl,m);"leave"===h&&c?E.current.set(e,{phase:h,springs:w,payload:m}):C.set(e,{phase:h,springs:w,payload:m})}));const z=(0,l.useContext)(kn),P=ot(z),A=z!==P&&It(z);et((()=>{A&&O(m,(e=>{e.ctrl.start({default:z})}))}),[z]),O(C,((e,t)=>{if(E.current.size){const e=m.findIndex((e=>e.key===t.key));m.splice(e,1)}})),et((()=>{O(E.current.size?E.current:C,(({phase:e,payload:t},n)=>{const{ctrl:r}=n;n.phase=e,h?.add(r),A&&"enter"==e&&r.start({default:z}),t&&(Ot(r,t.ref),!r.ref&&!h||k.current?(r.start(t),k.current&&(k.current=!1)):r.update(t))}))}),o?void 0:n);const D=e=>l.createElement(l.Fragment,null,m.map(((t,n)=>{const{springs:r}=C.get(t)||t.ctrl,o=e({...r},t.item,t,n);return o&&o.type?l.createElement(o.type,{...o.props,key:M.str(t.key)||M.num(t.key)?t.key:t.ctrl.id,ref:o.ref}):o})));return h?[D,h]:D}var In=1;function Mn(e,{key:t,keys:n=t},r){if(null===n){const t=new Set;return e.map((e=>{const n=r&&r.find((n=>n.item===e&&"leave"!==n.phase&&!t.has(n)));return n?(t.add(n),n.key):In++}))}return M.und(n)?e:M.fun(n)?e.map(n):R(n)}var Nn=class extends Jt{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=we(...t);const n=this._get(),r=vt(n);lt(this,r.create(n))}advance(e){const t=this._get();N(t,this.get())||(st(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&jn(this._active)&&Rn(this)}_get(){const e=M.arr(this.source)?this.source.map(Te):R(Te(this.source));return this.calc(...e)}_start(){this.idle&&!jn(this._active)&&(this.idle=!1,O(ct(this),(e=>{e.done=!1})),T.skipAnimation?(h.batchedUpdates((()=>this.advance())),Rn(this)):J.start(this))}_attach(){let e=1;O(R(this.source),(t=>{De(t)&&je(t,this),Yt(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){O(R(this.source),(e=>{De(e)&&Re(e,this)})),this._active.clear(),Rn(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=R(this.source).reduce(((e,t)=>Math.max(e,(Yt(t)?t.priority:0)+1)),0))}};function On(e){return!1!==e.idle}function jn(e){return!e.size||Array.from(e).every(On)}function Rn(e){e.idle||(e.idle=!0,O(ct(e),(e=>{e.done=!0})),Me(e,{type:"idle",parent:e}))}T.assign({createStringInterpolator:Ge,to:(e,t)=>new Nn(e,t)});J.advance;var Fn=n(40961),Bn=/^--/;function Ln(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||Bn.test(e)||Kn.hasOwnProperty(e)&&Kn[e]?(""+t).trim():t+"px"}var Vn={};var Kn={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},$n=["Webkit","Ms","Moz","O"];Kn=Object.keys(Kn).reduce(((e,t)=>($n.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),Kn);var Hn=/^(matrix|translate|scale|rotate|skew)/,Un=/^(translate)/,qn=/^(rotate|skew)/,Wn=(e,t)=>M.num(e)&&0!==e?e+t:e,Gn=(e,t)=>M.arr(e)?e.every((e=>Gn(e,t))):M.num(e)?e===t:parseFloat(e)===t,Yn=class extends ft{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=>Wn(e,"px"))).join(",")})`,Gn(e,0)]))),j(r,((e,t)=>{if("transform"===t)o.push([e||""]),i.push((e=>[e,""===e]));else if(Hn.test(t)){if(delete r[t],M.und(e))return;const n=Un.test(t)?"px":qn.test(t)?"deg":"";o.push(R(e)),i.push("rotate3d"===t?([e,t,r,o])=>[`rotate3d(${e},${t},${r},${Wn(o,n)})`,Gn(o,0)]:e=>[`${t}(${e.map((e=>Wn(e,n))).join(",")})`,Gn(e,t.startsWith("scale")?1:0)])}})),o.length&&(r.transform=new Zn(o,i)),super(r)}},Zn=class extends Ne{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 O(this.inputs,((n,r)=>{const o=Te(n[0]),[i,a]=this.transforms[r](M.arr(o)?o:n.map(Te));e+=" "+i,t=t&&a})),t?"none":e}observerAdded(e){1==e&&O(this.inputs,(e=>O(e,(e=>De(e)&&je(e,this)))))}observerRemoved(e){0==e&&O(this.inputs,(e=>O(e,(e=>De(e)&&Re(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),Me(this,e)}};T.assign({batchedUpdates:Fn.unstable_batchedUpdates,createStringInterpolator:Ge,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 Jn,Xn=((e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:n=(e=>new ft(e)),getComponentProps:r=(e=>e)}={})=>{const o={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=e=>{const t=xt(e)||"Anonymous";return(e=M.str(e)?i[e]||(i[e]=yt(e,o)):e[wt]||(e[wt]=yt(e,o))).displayName=`Animated(${t})`,e};return j(e,((t,n)=>{M.arr(e)&&(n=xt(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:Vn[t]||(Vn[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=Ln(t,r[t]);Bn.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 Yn(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Qn=Xn.animated,er=n(65221),tr=(n(48602),n(29279),n(18486)),nr=(n(94825),n(96879)),rr=n(72114),or=(n(33939),n(25414)),ir=n(46827),ar=n(49858),sr=n(16154),lr=n(63536),cr=n(58366),ur=n(44841),dr=n(43635),pr=(n(26591),n(99113),n(1568)),hr=n(27538),fr=n(79291),mr=n(88173),gr=n(32144),vr=n(74848),yr=n(35295),br=n(20576),wr=n(8521),xr=n(68267),Sr=n(55026),_r=n(74373),Cr=n(53068),Er=n(62193),kr=n.n(Er),zr=n(52971),Pr=n(54910),Ar=n(37555);function Dr(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 Tr(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function Ir(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 Mr(e,t,n,r){t=Number(t),n=Number(n);let o=(e-(isNaN(t)?0:t))%r,i=Ir(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(Ir(n/r,r))*r):i<t?i=t:!isNaN(n)&&i>n&&(i=t+Math.floor(Ir((n-t)/r,r))*r),i=Ir(i,r),i}function Nr(e,t,n=10){const r=Math.pow(n,t);return Math.round(e*r)/r}Jn={"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 Or=n(5533),jr=n(37515);let Rr=new(0,Or.B)(function(e){return e&&e.__esModule?e.default:e}(Jn));function Fr(e){let t=Kr.parse(e)||Hr.parse(e)||Wr.parse(e);if(t)return t;throw new Error("Invalid color value: "+e)}function Br(e){return"string"==typeof e?Fr(e):e}const Lr=[[0,"pink"],[15,"red"],[48,"orange"],[94,"yellow"],[135,"green"],[175,"cyan"],[264,"blue"],[284,"purple"],[320,"magenta"],[349,"pink"]];class Vr{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(Or.B.getGlobalDictionaryForPackage("@react-stately/color")||Rr).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]=Gr(this),i=Or.B.getGlobalDictionaryForPackage("@react-stately/color")||Rr;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,Or.J)(e,i);if(l<1){let n=new(0,jr.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=Or.B.getGlobalDictionaryForPackage("@react-stately/color")||Rr;if(t<.001)return[o.getStringForLocale("gray",r),e];for(let t=0;t<Lr.length;t++){let[i,a]=Lr[t],[s,l]=Lr[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]=Gr(this),[o]=this.getOklchHue(t,n,r,e);return o}}class Kr extends Vr{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)=>Tr(e,0,t<3?255:1)))),t.length<3?void 0:new Kr(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 Hr(Nr(360*s,2),Nr(100*a,2),Nr(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 Wr(Nr(360*s,2),Nr(100*l,2),Nr(100*i,2),this.alpha)}clone(){return new Kr(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,jr.K)(t,n).format(r)}getColorSpace(){return"rgb"}getColorChannels(){return Kr.colorChannels}constructor(e,t,n,r){super(),this.red=e,this.green=t,this.blue=n,this.alpha=r}}Kr.colorChannels=["red","green","blue"];const $r=/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 Hr extends Vr{static parse(e){let t;if(t=e.match($r)){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 Hr(qr(e,360),Tr(r,0,100),Tr(o,0,100),Tr(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}, ${Nr(this.saturation,2)}%, ${Nr(this.brightness,2)}%)`;case"hsba":return`hsba(${this.hue}, ${Nr(this.saturation,2)}%, ${Nr(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 Wr(Nr(this.hue,2),Nr(100*e,2),Nr(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 Kr(Math.round(255*r(5)),Math.round(255*r(3)),Math.round(255*r(1)),this.alpha)}clone(){return new Hr(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,jr.K)(t,n).format(r)}getColorSpace(){return"hsb"}getColorChannels(){return Hr.colorChannels}constructor(e,t,n,r){super(),this.hue=e,this.saturation=t,this.brightness=n,this.alpha=r}}Hr.colorChannels=["hue","saturation","brightness"];const Ur=/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 qr(e,t){return(e%t+t)%t}class Wr extends Vr{static parse(e){let t;if(t=e.match(Ur)){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 Wr(qr(e,360),Tr(r,0,100),Tr(o,0,100),Tr(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}, ${Nr(this.saturation,2)}%, ${Nr(this.lightness,2)}%)`;case"css":case"hsla":return`hsla(${this.hue}, ${Nr(this.saturation,2)}%, ${Nr(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 Hr(Nr(this.hue,2),Nr(100*e,2),Nr(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 Kr(Math.round(255*o(0)),Math.round(255*o(8)),Math.round(255*o(4)),this.alpha)}clone(){return new Wr(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,jr.K)(t,n).format(r)}getColorSpace(){return"hsl"}getColorChannels(){return Wr.colorChannels}constructor(e,t,n,r){super(),this.hue=e,this.saturation=t,this.lightness=n,this.alpha=r}}function Gr(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[Yr(e),Yr(t),Yr(n)]}(n,r,o);let[i,a,s]=function(e,t,n){return Zr([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]=Zr(r,e,t,n);return Zr(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 Yr(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 Zr(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]}Wr.colorChannels=["hue","saturation","lightness"];const Jr=Fr("#ffffff");Fr("hsl(0, 100%, 50%)");function Xr(e){return(0,l.useMemo)((()=>{if("string"==typeof e)try{return Fr(e)}catch(e){return}return e}),[e])}const Qr=Fr("#000000"),eo=Fr("#FFFFFF"),to=Qr.toHexInt(),no=eo.toHexInt();function ro(e,t){let n=e||Qr,r=n.toHexInt(),o=Math.min(Math.max(r+t,to),no);if(o!==r){n=Fr(`#${o.toString(16).padStart(6,"0").toUpperCase()}`)}return n}var oo;oo={"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 io;io={"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 ao=n(9772);let so=new(0,Or.B)(function(e){return e&&e.__esModule?e.default:e}(io));function lo(e){let t=ho.parse(e)||mo.parse(e)||vo.parse(e);if(t)return t;throw new Error("Invalid color value: "+e)}function co(e){return 360===e?e:(e%360+360)%360}const uo=[[0,"pink"],[15,"red"],[48,"orange"],[94,"yellow"],[135,"green"],[175,"cyan"],[264,"blue"],[284,"purple"],[320,"magenta"],[349,"pink"]];class po{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(Or.B.getGlobalDictionaryForPackage("@react-stately/color")||so).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]=yo(this),i=Or.B.getGlobalDictionaryForPackage("@react-stately/color")||so;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,Or.J)(e,i);if(l<1){let n=new(0,jr.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=Or.B.getGlobalDictionaryForPackage("@react-stately/color")||so;if(t<.001)return[o.getStringForLocale("gray",r),e];for(let t=0;t<uo.length;t++){let[i,a]=uo[t],[s,l]=uo[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]=yo(this),[o]=this.getOklchHue(t,n,r,e);return o}}class ho extends po{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,ao.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 ho(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 mo((0,ao.Nh)(360*s,2),(0,ao.Nh)(100*a,2),(0,ao.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 vo((0,ao.Nh)(360*s,2),(0,ao.Nh)(100*l,2),(0,ao.Nh)(100*i,2),this.alpha)}clone(){return new ho(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,jr.K)(t,n).format(r)}getColorSpace(){return"rgb"}getColorChannels(){return ho.colorChannels}constructor(e,t,n,r){super(),this.red=e,this.green=t,this.blue=n,this.alpha=r}}ho.colorChannels=["red","green","blue"];const fo=/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 mo extends po{static parse(e){let t;if(t=e.match(fo)){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 mo(co(e),(0,ao.qE)(r,0,100),(0,ao.qE)(o,0,100),(0,ao.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,ao.Nh)(this.saturation,2)}%, ${(0,ao.Nh)(this.brightness,2)}%)`;case"hsba":return`hsba(${this.hue}, ${(0,ao.Nh)(this.saturation,2)}%, ${(0,ao.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 vo((0,ao.Nh)(this.hue,2),(0,ao.Nh)(100*e,2),(0,ao.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 ho(Math.round(255*r(5)),Math.round(255*r(3)),Math.round(255*r(1)),this.alpha)}clone(){return new mo(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,jr.K)(t,n).format(r)}getColorSpace(){return"hsb"}getColorChannels(){return mo.colorChannels}constructor(e,t,n,r){super(),this.hue=e,this.saturation=t,this.brightness=n,this.alpha=r}}mo.colorChannels=["hue","saturation","brightness"];const go=/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 vo extends po{static parse(e){let t;if(t=e.match(go)){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 vo(co(e),(0,ao.qE)(r,0,100),(0,ao.qE)(o,0,100),(0,ao.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,ao.Nh)(this.saturation,2)}%, ${(0,ao.Nh)(this.lightness,2)}%)`;case"css":case"hsla":return`hsla(${this.hue}, ${(0,ao.Nh)(this.saturation,2)}%, ${(0,ao.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 mo((0,ao.Nh)(this.hue,2),(0,ao.Nh)(100*e,2),(0,ao.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 ho(Math.round(255*o(0)),Math.round(255*o(8)),Math.round(255*o(4)),this.alpha)}clone(){return new vo(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,jr.K)(t,n).format(r)}getColorSpace(){return"hsl"}getColorChannels(){return vo.colorChannels}constructor(e,t,n,r){super(),this.hue=e,this.saturation=t,this.lightness=n,this.alpha=r}}function yo(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[bo(e),bo(t),bo(n)]}(n,r,o);let[i,a,s]=function(e,t,n){return wo([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]=wo(r,e,t,n);return wo(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 bo(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 wo(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]}vo.colorChannels=["hue","saturation","lightness"];lo("#ffffff");lo("hsl(0, 100%, 50%)");const xo=lo("#000000"),So=lo("#FFFFFF");xo.toHexInt(),So.toHexInt();const _o=e=>[0,60,120,180,240,300,360].map((t=>e.withChannelValue("hue",t).toString("css"))).join(", "),Co=e=>`${e.withChannelValue("saturation",0)}, transparent`,Eo={hue:_o,saturation:Co,lightness:()=>"black, transparent, white"},ko={hue:_o,saturation:Co,brightness:()=>"black, transparent"};function zo({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=lo("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=lo("hsl(0, 100%, 50%)").withChannelValue(n,s),l=e.filter((e=>e!==n)).map((e=>`linear-gradient(to ${e===r?i:"top"}, ${Eo[e](o)})`)).reverse();"hue"===n&&l.push(o.toString("css")),a={background:l.join(", ")};break}case"hsb":{let e=t.value.getColorChannels(),o=lo("hsb(0, 100%, 100%)").withChannelValue(n,s),l=e.filter((e=>e!==n)).map((e=>`linear-gradient(to ${e===r?i:"top"}, ${ko[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 Po=n(86025),Ao=n(19663),Do=n(46473);function To(e,t){let{isDisabled:n,inputXRef:r,inputYRef:o,containerRef:i,"aria-label":a,xName:s,yName:c}=e,u=(0,Ao.oe)(function(e){return e&&e.__esModule?e.default:e}(oo),"@react-aria/color"),{addGlobalListener:d,removeGlobalListener:p}=(0,Po.A5)(),{direction:h,locale:f}=(0,Ao.Ym)(),[m,g]=(0,l.useState)(null),v=(0,l.useCallback)(((e=r)=>{e.current&&(0,Po.eC)(e.current)}),[r]);(0,Po.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,Ar.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)}}}),A={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(){M.current=!1,t.setDragging(!1),v("x"===m?r:o)}},{moveProps:D}=(0,Ar.fD)(A),{focusWithinProps:T}=(0,Ar.Rb)({onFocusWithinChange:e=>{e||(b(!1),x(!1))}}),I=(0,l.useRef)(void 0),M=(0,l.useRef)(!1),{moveProps:N}=(0,Ar.fD)({onMoveStart(){M.current&&A.onMoveStart()},onMove(e){M.current&&A.onMove(e)},onMoveEnd(){M.current&&A.onMoveEnd()}}),O=e=>{t.isDragging||(I.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)===I.current&&(b(!1),v(),t.setDragging(!1),I.current=void 0,M.current=!1,"undefined"!=typeof PointerEvent?p(window,"pointerup",j,!1):(p(window,"mouseup",j,!1),p(window,"touchend",j,!1)))},R=(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===I.current&&(M.current=!0,b(!1),I.current=n,t.setColorFromPoint(l,c),v(),t.setDragging(!0),"undefined"!=typeof PointerEvent?d(window,"pointerup",F,!1):(d(window,"mouseup",F,!1),d(window,"touchend",F,!1)))},F=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;M.current&&o===I.current&&(M.current=!1,b(!1),I.current=void 0,t.setDragging(!1),v(),"undefined"!=typeof PointerEvent?p(window,"pointerup",F,!1):(p(window,"mouseup",F,!1),p(window,"touchend",F,!1)))},B=n?{}:(0,Po.v6)({..."undefined"!=typeof PointerEvent?{onPointerDown:e=>{"mouse"===e.pointerType&&(0!==e.button||e.altKey||e.ctrlKey||e.metaKey)||R(e.currentTarget,e.pointerId,e.clientX,e.clientY)}}:{onMouseDown:e=>{0!==e.button||e.altKey||e.ctrlKey||e.metaKey||R(e.currentTarget,void 0,e.clientX,e.clientY)},onTouchStart:e=>{R(e.currentTarget,e.changedTouches[0].identifier,e.changedTouches[0].clientX,e.changedTouches[0].clientY)}}},N),L=n?{}:(0,Po.v6)({..."undefined"!=typeof PointerEvent?{onPointerDown:e=>{"mouse"===e.pointerType&&(0!==e.button||e.altKey||e.ctrlKey||e.metaKey)||O(e.pointerId)}}:{onMouseDown:e=>{0!==e.button||e.altKey||e.ctrlKey||e.metaKey||O(void 0)},onTouchStart:e=>{O(e.changedTouches[0].identifier)}}},T,P,D),{focusProps:V}=(0,Ar.iQ)({onFocus:()=>{g("x")}}),{focusProps:K}=(0,Ar.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 H=(0,Po.un)()||(0,Po.m0)(),U=t.getDisplayColor();const q=(0,l.useCallback)((e=>`${w||y?u.format("colorNameAndValue",{name:U.getChannelName(e,f),value:U.formatChannelValue(e,f)}):[u.format("colorNameAndValue",{name:U.getChannelName(e,f),value:U.formatChannelValue(e,f)}),u.format("colorNameAndValue",{name:U.getChannelName(e===_?S:_,f),value:U.formatChannelValue(e===_?S:_,f)}),u.format("colorNameAndValue",{name:U.getChannelName(C,f),value:U.formatChannelValue(C,f)})].join(", ")}, ${U.getColorName(f)}`),[f,U,u,w,y,S,_,C]);let W=u.format("colorPicker"),G=(0,Po.b0)({...e,"aria-label":a?u.format("colorInputLabel",{label:a,channelLabel:W}):W}),Y=(0,Po.b0)({...e,"aria-label":a?u.format("colorInputLabel",{label:a,channelLabel:W}):W}),Z=(0,Po.b0)({...e,"aria-label":a?`${a}, ${W}`:void 0},H?W:void 0),J=u.format("twoDimensionalSlider"),{visuallyHiddenProps:X}=(0,Do.B)({style:{opacity:"0.0001",width:"100%",height:"100%",pointerEvents:"none"}}),{colorAreaStyleProps:Q,thumbStyleProps:ee}=zo({direction:h,state:t,xChannel:S,yChannel:_,zChannel:C});return{colorAreaProps:{...Z,...B,...Q,role:"group"},thumbProps:{...L,...ee,role:"presentation"},xInputProps:{...G,...X,...V,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:H||!m||"x"===m?void 0:-1,"aria-hidden":H||!m||"x"===m||y?void 0:"true",onChange:$},yInputProps:{...Y,...X,...K,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:H||"y"===m?void 0:-1,"aria-hidden":H||"y"===m||y?void 0:"true",onChange:$}}}var Io=n(39760);var Mo=n(99008),No=n(63792);n(35934);function Oo(e,t,n,r=(e=>e)){return e*r(.5-t*(.5-n))}function jo(e,t){return[e[0]+t[0],e[1]+t[1]]}function Ro(e,t){return[e[0]-t[0],e[1]-t[1]]}function Fo(e,t){return[e[0]*t,e[1]*t]}function Bo(e){return[e[1],-e[0]]}function Lo(e,t){return e[0]*t[0]+e[1]*t[1]}function Vo(e,t){return e[0]===t[0]&&e[1]===t[1]}function Ko(e,t){return function(e){return e[0]*e[0]+e[1]*e[1]}(Ro(e,t))}function $o(e){return function(e,t){return[e[0]/t,e[1]/t]}(e,function(e){return Math.hypot(e[0],e[1])}(e))}function Ho(e,t){return Math.hypot(e[1]-t[1],e[0]-t[0])}function Uo(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 qo(e,t,n){return jo(e,Fo(Ro(t,e),n))}function Wo(e,t,n){return jo(e,Fo(t,n))}var{min:Go,PI:Yo}=Math,Zo=Yo+1e-4;function Jo(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=Go(1,t.distance/n),i=Go(1,1-o);r=Go(1,e+.275*o*(i-e))}return(e+r)/2}),e[0].pressure),S=Oo(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=Go(1,c/n),t=Go(1,1-e);r=Go(1,x+.275*e*(t-x))}S=Oo(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?Lo(l,D):1,I=null!==T&&T<0;if(Lo(l,_)<0&&!P||I){let e=Fo(Bo(_),S);for(let t=1/13,n=0;n<=1;n+=t)k=Uo(Ro(s,e),s,Zo*n),b.push(k),z=Uo(jo(s,e),s,Zo*-n),w.push(z);C=k,E=z,I&&(P=!0);continue}if(P=!1,t===e.length-1){let e=Fo(Bo(l),S);b.push(Ro(s,e)),w.push(jo(s,e));continue}let M=Fo(Bo(qo(D,l,T)),S);k=Ro(s,M),(t<=1||Ko(C,k)>y)&&(b.push(k),C=k),z=jo(s,M),(t<=1||Ko(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):jo(e[0].point,[1,1]),T=[],I=[];if(1===e.length){if(!g&&!v||c){let e=Wo(A,$o(Bo(Ro(A,D))),-(f||S)),t=[];for(let n=1/13,r=n;r<=1;r+=n)t.push(Uo(e,A,2*Zo*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=Uo(w[0],A,Zo*t);T.push(e)}else{let e=Ro(b[0],w[0]),t=Fo(e,.5),n=Fo(e,.51);T.push(Ro(A,t),Ro(A,n),jo(A,n),jo(A,t))}let t=Bo(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=Wo(D,t,S);for(let t=1/29,n=t;n<1;n+=t)I.push(Uo(e,D,3*Zo*n))}else I.push(jo(D,Fo(t,S)),jo(D,Fo(t,.99*S)),Ro(D,Fo(t,.99*S)),Ro(D,Fo(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(qo(s[0],e,t/4))}1===s.length&&(s=[...s,[...jo(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):qo(d.point,s[e],a);if(Vo(d.point,t))continue;let n=Ho(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:$o(Ro(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 Xo(e,t){for(var n=e.length,r=0;r<n;++r)if(t(e[r],r))return!0;return!1}function Qo(e,t){for(var n=e.length,r=0;r<n;++r)if(t(e[r],r))return e[r];return null}function ei(e){var t=e;if(void 0===t){if("undefined"==typeof navigator||!navigator)return"";t=navigator.userAgent||""}return t.toLowerCase()}function ti(e,t){try{return new RegExp(e,"g").exec(t)}catch(e){return null}}function ni(){if("undefined"==typeof navigator||!navigator||!navigator.userAgentData)return!1;var e=navigator.userAgentData,t=e.brands||e.uaList;return!(!t||!t.length)}function ri(e){return e.replace(/_/g,".")}function oi(e,t){var n=null,r="-1";return Xo(e,(function(e){var o=ti("("+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=ti("("+e+")((?:\\/|\\s|:)([0-9|\\.|_]+))",t);return n?n[3]:""}(e.versionTest.toLowerCase(),t)||r),r=ri(r),!0)})),{preset:n,version:r}}function ii(e,t){var n={brand:"",version:"-1"};return Xo(e,(function(e){var r=ai(t,e);return!!r&&(n.brand=e.id,n.version=e.versionAlias||r.version,"-1"!==n.version)})),n}function ai(e,t){return Qo(e,(function(e){var n=e.brand;return ti(""+t.test,n.toLowerCase())}))}var si=[{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"}],li=[{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}],ci=[{test:"applewebkit",id:"webkit",versionTest:"applewebkit|safari"}],ui=[{test:"(?=(iphone|ipad))(?!(.*version))",id:"webview"},{test:"(?=(android|iphone|ipad))(?=.*(naver|daum|; wv))",id:"webview"},{test:"webview",id:"webview"}],di=[{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 pi(e){return!!oi(ui,e).preset}function hi(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:!!ii(ui,n).brand||pi(ei())},l={name:"unknown",version:"-1",majorVersion:-1};s.webkit=!s.chromium&&Xo(ci,(function(e){return ai(n,e)}));var c=ii(li,n);if(s.chromium=!!c.brand,s.chromiumVersion=c.version,!s.chromium){var u=ii(ci,n);s.webkit=!!u.brand,s.webkitVersion=u.version}var d=Qo(di,(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=ii(si,r);s.name=p.brand||s.name,s.version=p.version||s.version}else{var h=ii(si,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=ri(l.version),s.version=ri(s.version),l.majorVersion=parseInt(l.version,10),s.majorVersion=parseInt(s.version,10),{browser:s,os:l,isMobile:o,isHints:!0}}function fi(e){return void 0===e&&ni()?hi():function(e){var t=ei(e),n=!!/mobi/g.exec(t),r={name:"unknown",version:"-1",majorVersion:-1,webview:pi(t),chromium:!1,chromiumVersion:"-1",webkit:!1,webkitVersion:"-1"},o={name:"unknown",version:"-1",majorVersion:-1},i=oi(si,t),a=i.preset,s=i.version,l=oi(di,t),c=l.preset,u=l.version,d=oi(li,t);if(r.chromium=!!d.preset,r.chromiumVersion=d.version,!r.chromium){var p=oi(ci,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 mi=fi;function gi(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 vi(e,t){return function(n){n&&(e[t]=n)}}function yi(e,t,n){return function(r){r&&(e[t][n]=r)}}var bi="undefined",wi=typeof window!==bi,xi=typeof document!==bi&&document,Si=[{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:'\\"',close:'\\"'},{open:"\\'",close:"\\'"}],_i=1e-7,Ci={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 Ei(e,t,n,r){return(e*r+t*n)/(n+r)}function ki(e){return typeof e===bi}function zi(e){return e&&"object"==typeof e}function Pi(e){return Array.isArray(e)}function Ai(e){return"string"==typeof e}function Di(e){return"number"==typeof e}function Ti(e){return"function"==typeof e}function Ii(e,t,n,r,o){return Mi(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&&!Mi(e,t,n))return{value:n};var s=n,l=Vi(o,(function(e){return e.open===a}));if(l&&(s=Ii(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 Mi(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 Ni(e,t){var n=Ai(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?Si: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=Vi(u,(function(e){return e.open===n})),c=Vi(u,(function(e){return e.close===n}));if(s){if(-1!==(r=Ii(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&&!Mi(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:Ni(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 Oi(e){return Ni(e,"")}function ji(e){return Ni(e,",")}function Ri(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 Fi(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 Bi(){return Date.now?Date.now():(new Date).getTime()}function Li(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 Vi(e,t,n){var r=Li(e,t);return r>-1?e[r]:n}var Ki=function(){var e=Bi(),t=wi&&(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame);return t?t.bind(window):function(t){var n=Bi();return setTimeout((function(){t(n-e)}),1e3/60)}}(),$i=function(){var e=wi&&(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame);return e?e.bind(window):function(e){clearTimeout(e)}}();function Hi(e){return Object.keys(e)}function Ui(e,t){var n=Fi(e),r=n.value,o=n.unit;if(zi(t)){var i=t[o];if(i){if(Ti(i))return i(r);if(Ci[o])return Ci[o](r,i)}}else if("%"===o)return r*t/100;return Ci[o]?Ci[o](r):r}function qi(e,t,n){return Math.max(t,Math.min(e,n))}function Wi(e,t,n,r){return void 0===r&&(r=e[0]/e[1]),[[Qi(t[0],_i),Qi(t[0]/r,_i)],[Qi(t[1]*r,_i),Qi(t[1],_i)]].filter((function(e){return e.every((function(e,r){var o=t[r],i=Qi(o,_i);return n?e<=o||e<=i:e>=o||e>=i}))}))[0]||e}function Gi(e,t,n,r){if(!r)return e.map((function(e,r){return qi(e,t[r],n[r])}));var o=e[0],i=e[1],a=!0===r?o/i:r,s=Wi(e,t,!1,a),l=s[0],c=s[1],u=Wi(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 Yi(e){for(var t=e.length,n=0,r=t-1;r>=0;--r)n+=e[r];return t?n/t:0}function Zi(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 Ji(e){var t=function(e){return[0,1].map((function(t){return Yi(e.map((function(e){return e[t]})))}))}(e),n=Zi(t,e[0]),r=Zi(t,e[1]);return n<r&&r-n<Math.PI||n>r&&r-n<-Math.PI?1:-1}function Xi(e,t){return Math.sqrt(Math.pow((t?t[0]:0)-e[0],2)+Math.pow((t?t[1]:0)-e[1],2))}function Qi(e,t){if(!t)return e;var n=1/t;return Math.round(e/t)/n}function ea(e,t){return e.forEach((function(n,r){e[r]=Qi(e[r],t)})),e}function ta(e,t){return e.classList?e.classList.contains(t):!!e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}function na(e,t){e.classList?e.classList.add(t):e.className+=" "+t}function ra(e,t){if(e.classList)e.classList.remove(t);else{var n=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(n," ")}}function oa(e,t,n,r){e.addEventListener(t,n,r)}function ia(e,t,n,r){e.removeEventListener(t,n,r)}function aa(e){return(null==e?void 0:e.ownerDocument)||xi}function sa(e){return aa(e).documentElement}function la(e){return aa(e).body}function ca(e){var t;return(null===(t=null==e?void 0:e.ownerDocument)||void 0===t?void 0:t.defaultView)||window}function ua(e){return e&&"postMessage"in e&&"blur"in e&&"self"in e}function da(e){return zi(e)&&e.nodeName&&e.nodeType&&"ownerDocument"in e}function pa(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 ha(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 fa(e,t,n,r,o){for(var i=0;i<r;++i){var a=n+i*r;e[a]/=o,t[a]/=o}}function ma(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 ga(e,t){void 0===t&&(t=Math.sqrt(e.length));for(var n=e.slice(),r=Oa(t),o=0;o<t;++o){var i=t*o+o;if(!Qi(n[i],_i))for(var a=o+1;a<t;++a)if(n[t*o+a]){ha(n,r,o,a,t);break}if(!Qi(n[i],_i))return[];fa(n,r,o,t,n[i]);for(a=0;a<t;++a){var s=a,l=n[a+o*t];Qi(l,_i)&&o!==a&&pa(n,r,s,o,t,-l)}}return r}function va(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 ya(e,t){for(var n=e.slice(),r=e.length;r<t-1;++r)n[r]=0;return n[t-1]=1,n}function ba(e,t,n){if(void 0===t&&(t=Math.sqrt(e.length)),t===n)return e;for(var r=Oa(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 wa(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Oa(e);return t.forEach((function(t){r=xa(r,t,e)})),r}function xa(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 Sa(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 _a(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 Ca(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 Ea(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 ka(e,t,n){void 0===n&&(n=t.length);var r=xa(e,t,n),o=r[n-1];return r.map((function(e){return e/o}))}function za(e,t){return xa(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 Pa(e,t){return xa(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 Aa(e,t){return xa(e,Na(t,4))}function Da(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 xa(e,[r,0,0,0,0,i,0,0,0,0,void 0===a?1:a,0,0,0,0,1],4)}function Ta(e,t){return ka(Na(t,3),ya(e,3))}function Ia(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 xa(e,[1,0,0,0,0,1,0,0,0,0,1,0,r,i,void 0===a?0:a,1],4)}function Ma(e,t){return xa(e,t,4)}function Na(e,t){var n=Math.cos(e),r=Math.sin(e),o=Oa(t);return o[0]=n,o[1]=r,o[t]=-r,o[t+1]=n,o}function Oa(e){for(var t=e*e,n=[],r=0;r<t;++r)n[r]=r%(e+1)?0:1;return n}function ja(e,t){for(var n=Oa(t),r=Math.min(e.length,t-1),o=0;o<r;++o)n[(t+1)*o]=e[o];return n}function Ra(e,t){for(var n=Oa(t),r=Math.min(e.length,t-1),o=0;o<r;++o)n[t*(t-1)+o]=e[o];return n}function Fa(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=ga([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=xa(C,[g,v,y,b,w,x,S,_],8);return E[8]=1,ba(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 Ba=function(){return Ba=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},Ba.apply(this,arguments)};function La(e,t){return void 0===t&&(t=0),Va(Ka(e,t))}function Va(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 Ka(e,t){return void 0===t&&(t=0),(Pi(e)?e:Oi(e)).map((function(e){var n=Ri(e),r=n.prefix,o=n.value,i=null,a=r,s="";if("translate"===r||"translateX"===r||"translate3d"===r){var l=zi(t)?Ba(Ba({},t),{"o%":t["%"]}):{"%":t,"o%":t},c=ji(o).map((function(e,n){return l["%"]=0===n&&"x%"in l?t["x%"]:1===n&&"y%"in l?t["y%"]:t["o%"],Ui(e,l)})),u=c[0],d=c[1],p=void 0===d?0:d,h=c[2];i=Ia,s=[u,p,void 0===h?0:h]}else if("translateY"===r){i=Ia,s=[0,p=Ui(o,zi(t)?Ba({"%":t["y%"]},t):{"%":t}),0]}else if("translateZ"===r){i=Ia,s=[0,0,parseFloat(o)]}else if("scale"===r||"scale3d"===r){var f=ji(o).map((function(e){return parseFloat(e)})),m=f[0],g=f[1],v=void 0===g?m:g,y=f[2];i=Da,s=[m,v,void 0===y?1:y]}else if("scaleX"===r){i=Da,s=[m=parseFloat(o),1,1]}else if("scaleY"===r){i=Da,s=[1,v=parseFloat(o),1]}else if("scaleZ"===r){i=Da,s=[1,1,parseFloat(o)]}else if("rotate"===r||"rotateZ"===r||"rotateX"===r||"rotateY"===r){var b=Fi(o),w=b.unit,x=b.value;"rotate"===r||"rotateZ"===r?(a="rotateZ",i=Aa):"rotateX"===r?i=za:"rotateY"===r&&(i=Pa),s="rad"===w?x:x*Math.PI/180}else if("matrix3d"===r)i=Ma,s=ji(o).map((function(e){return parseFloat(e)}));else if("matrix"===r){var S=ji(o).map((function(e){return parseFloat(e)}));i=Ma,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 $a=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}(),Ha=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}(),Ua="function"==typeof Map,qa=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 Wa=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 qa;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 Ga(e,t,n){var r=Ua?Map:n?Ha:$a,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 Wa(e,t,i,a,m,s,p,h)}var Ya=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=Ga(this.list,t,this.findKeyCallback);return this.list=t,n},e}();var Za=function(e,t){return Za=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])},Za(e,t)};var Ja,Xa="function"==typeof Map?void 0:(Ja=0,function(e){return e.__DIFF_KEY__||(e.__DIFF_KEY__=++Ja)}),Qa=function(e){function t(t){return void 0===t&&(t=[]),e.call(this,t,Xa)||this}return function(e,t){function n(){this.constructor=e}Za(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t}(Ya);const es=Qa;var ts=function(){return ts=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},ts.apply(this,arguments)};var ns=function(){function e(){this._events={}}var t=e.prototype;return t.on=function(e,t){if(zi(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(zi(e))for(var n in e)this.off(n);else if(t){var r=this._events[e];if(r){var o=Li(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(ts({listener:t},n))},e}();const rs=ns;function os(){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 is(e){return Qi(e,_i)}function as(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 ss(e,t){var n=t.width,r=t.height,o=t.left,i=t.top,a=ls(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 ls(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 cs(e,t,n){var r=e[0],o=e[1],i=ls(t),a=i.minX,s=i.maxX,l=[[a,o],[s,o]],c=us(l[0],l[1]),u=hs(t),d=[];if(u.forEach((function(t){var n,r=us(t[0],t[1]),i=t[0];(n=r,c.every((function(e,t){return 0===is(e-n[t])})))?d.push({pos:e,line:t,type:"line"}):ps(ds(c,r),[l,t]).forEach((function(e){t.some((function(t){return r=e,!is((n=t)[0]-r[0])&&!is(n[1]-r[1]);var n,r}))?d.push({pos:e,line:t,type:"point"}):0!==is(i[1]-o)&&d.push({pos:e,line:t,type:"intersection"})}))})),!n&&Vi(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=Vi(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 us(e,t){var n=e[0],r=e[1],o=t[0]-n,i=t[1]-r;Math.abs(o)<_i&&(o=0),Math.abs(i)<_i&&(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 ds(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 ps(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(is(i-e[1][0])){if(!is(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(is(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(is(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<=is(t-e[0][0])&&0<=is(e[0][1]-t)&&0<=is(r-e[1][0])&&0<=is(e[1][1]-r)}))}))),r.map((function(e){return[is(e[0]),is(e[1])]}))}function hs(e){return os(e.slice(1),[e[0]]).map((function(t,n){return[e[n],t]}))}function fs(e,t){var n=e.slice(),r=t.slice();-1===Ji(n)&&n.reverse(),-1===Ji(r)&&r.reverse();var o=hs(n),i=hs(r),a=o.map((function(e){return us(e[0],e[1])})),s=i.map((function(e){return us(e[0],e[1])})),l=[];a.forEach((function(e,t){var n=o[t],a=[];s.forEach((function(r,o){var s=ps(ds(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 Xi(n[0],e.pos)-Xi(n[0],t.pos)})),l.push.apply(l,a),cs(n[1],r)&&l.push({index1:t,index2:-1,pos:n[1],type:"inside"})})),i.forEach((function(e,t){if(cs(e[1],n)){var r=!1,o=Li(l,(function(e){return e.index2===t?(r=!0,!1):!!r}));-1===o&&(r=!1,o=Li(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 ms(e,t){var n=function(e,t){return fs(e,t).map((function(e){return e.pos}))}(e,t);return as(n)}var gs=function(e,t){return gs=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])},gs(e,t)};var vs=function(){return vs=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},vs.apply(this,arguments)};function ys(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 bs(e){return e?e.touches?function(e){for(var t=Math.min(e.length,2),n=[],r=0;r<t;++r)n.push(Ss(e[r]));return n}(e.touches):[Ss(e)]:[]}function ws(e,t,n){var r=n.length,o=_s(e,r),i=o.clientX,a=o.clientY,s=o.originalClientX,l=o.originalClientY,c=_s(t,r),u=c.clientX,d=c.clientY,p=_s(n,r);return{clientX:s,clientY:l,deltaX:i-u,deltaY:a-d,distX:i-p.clientX,distY:a-p.clientY}}function xs(e){return Math.sqrt(Math.pow(e[0].clientX-e[1].clientX,2)+Math.pow(e[0].clientY-e[1].clientY,2))}function Ss(e){return{clientX:e.clientX,clientY:e.clientY}}function _s(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 Cs=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),ys(e)},e.prototype.getRotation=function(e){return void 0===e&&(e=this.prevClients),ys(e)-ys(this.startClients)},e.prototype.getPosition=function(e,t){void 0===e&&(e=this.prevClients);var n=ws(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]=ws([e[i]],[t[i]],[n[i]]);return o},e.prototype.getMovement=function(e){var t=this.movement;if(!e)return t;var n=_s(e,this.length),r=_s(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),xs(e)},e.prototype.getScale=function(e){return void 0===e&&(e=this.prevClients),xs(e)/xs(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}(),Es=["textarea","input"],ks=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=Es.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||Es.indexOf(S)>-1)&&v.blur()}(p||h||f)&&oa(r._window,"click",r._onClick,!0)}r.clientStores=[new Cs(bs(e))],r._isIdle=!1,r.flag=!0,r.isDrag=!1,r._isTrusted=t,r._dragFlag=!0,r._prevInputEvent=e,r.data={},r.doubleFlag=Bi()-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",vs(vs({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(){oa(i,"touchstart",r.onDragStart,{passive:!1})})))):m&&a&&ia(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=bs(e),i=r.moveClients(o,e,!1);if(r._dragFlag){if(r.pinchFlag||i.deltaX||i.deltaY)if(!1===(r._preventMouseEvent||r.emit("drag",vs(vs({},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&&ia(o,"touchstart",r.onDragStart),r.pinchFlag&&r.onPinchEnd(e);var c=(null==e?void 0:e.touches)?bs(e):[];0!==c.length&&r.options.keepDragging?r._addStore(new Cs(c)):r.flag=!1;var u=r._getPosition(),d=Bi(),p=!l&&r.doubleFlag;r._prevInputEvent=null,r.prevTime=l||p?0:d,r.flag||(r._dettachDragEvent(),r._preventMouseEvent||r.emit("dragEnd",vs({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(){ia(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=ua(i)?i:ca(i),r.options=vs({checkInput:!1,container:i&&!("document"in i)?ca(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){oa(e,"dragstart",r.onDragStart)})),r._useMouse&&(o.forEach((function(e){oa(e,"mousedown",r.onDragStart),oa(e,"mousemove",r._passCallback)})),oa(s,"contextmenu",r._onContextMenu)),c&&oa(ca(),"blur",r.onBlur),r._useTouch){var u={passive:!1};o.forEach((function(e){oa(e,"touchstart",r.onDragStart,u),oa(e,"touchmove",r._passCallback,u)}))}return r}return function(e,t){function n(){this.constructor=e}gs(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),vs(vs({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(),ia(this._window,"blur",this.onBlur),this._useDrag&&t.forEach((function(t){ia(t,"dragstart",e.onDragStart)})),this._useMouse&&(t.forEach((function(t){ia(t,"mousedown",e.onDragStart)})),ia(n,"contextmenu",this._onContextMenu)),this._useTouch&&(t.forEach((function(t){ia(t,"touchstart",e.onDragStart)})),ia(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 Cs(bs(e));this.pinchFlag=!0,this._addStore(r),!1===this.emit("pinchStart",vs(vs({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",vs(vs({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",vs(vs({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),vs(vs({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 vs(vs({},n),{distX:o,distY:i})},t.prototype._attchDragEvent=function(){var e=this._window,t=this.options.container,n={passive:!1};this._isDragAPI&&(oa(t,"dragover",this.onDrag,n),oa(e,"dragend",this.onDragEnd)),this._useMouse&&(oa(t,"mousemove",this.onDrag),oa(e,"mouseup",this.onDragEnd)),this._useTouch&&(oa(t,"touchmove",this.onDrag,n),oa(e,"touchend",this.onDragEnd,n),oa(e,"touchcancel",this.onDragEnd,n))},t.prototype._dettachDragEvent=function(){var e=this._window,t=this.options.container;this._isDragAPI&&(ia(t,"dragover",this.onDrag),ia(e,"dragend",this.onDragEnd)),this._useMouse&&(ia(t,"mousemove",this.onDrag),ia(e,"mouseup",this.onDragEnd)),this._useTouch&&(ia(t,"touchstart",this.onDragStart),ia(t,"touchmove",this.onDrag),ia(e,"touchend",this.onDragEnd),ia(e,"touchcancel",this.onDragEnd))},t.prototype._allowMouseEvent=function(){this._preventMouseEvent=!1,clearTimeout(this._preventMouseEventId)},t}(rs);var zs=function(e){for(var t=5381,n=e.length;n;)t=33*t^e.charCodeAt(--n);return t>>>0};function Ps(e,t,n,r,o){var i=aa(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?ji(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 As=function(e){var t="rCS"+zs(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=Ps(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 Ds=function(){return Ds=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},Ds.apply(this,arguments)};function Ts(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 Is(e,t){var n=As(t),r=n.className;return(0,l.forwardRef)((function(t,o){var i=t.className,a=void 0===i?"":i,s=(t.cspNonce,Ts(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,Ds({ref:c,"data-styled-id":r,className:"".concat(a," ").concat(r)},s))}))}var Ms=function(e,t){return Ms=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])},Ms(e,t)};function Ns(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}Ms(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Os=function(){return Os=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},Os.apply(this,arguments)};function js(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 Rs(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 Fs(e,t){return Os({events:[],props:[],name:e},t)}var Bs=["n","w","s","e"],Ls=["n","w","s","e","nw","ne","sw","se"];var Vs,Ks,$s=mi(),Hs=$s.browser.webkit,Us=Hs&&(Vs="undefined"==typeof window?{userAgent:""}:window.navigator,!!(Ks=/applewebkit\/([^\s]+)/g.exec(Vs.userAgent.toLowerCase()))&&parseFloat(Ks[1])<605),qs=$s.browser.name,Ws=parseInt($s.browser.version,10),Gs="chrome"===qs,Ys=$s.browser.chromium,Zs=parseInt($s.browser.chromiumVersion,10)||0,Js=Gs&&Ws>=109||Ys&&Zs>=109,Xs="firefox"===qs,Qs=parseInt($s.browser.webkitVersion,10)>=612||Ws>=15,el="moveable-",tl=Ls.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"),nl="\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(tl,"\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(Us?':global svg *:before {\ncontent:"";\ntransform-origin: inherit;\n}':"","\n"),rl=[[0,1,2],[1,0,3],[2,0,3],[3,1,2]],ol=1e-4,il=1e-7,al=1e-9,sl=Math.pow(10,10),ll=-sl,cl={n:[0,-1],e:[1,0],s:[0,1],w:[-1,0],nw:[-1,-1],ne:[1,-1],sw:[-1,1],se:[1,1]},ul={n:[0,1],e:[1,3],s:[3,2],w:[2,0],nw:[0],ne:[1],sw:[2],se:[3]},dl={n:0,s:180,w:270,e:90,nw:315,ne:45,sw:225,se:135},pl=["isMoveableElement","updateRect","updateTarget","destroy","dragStart","isInside","hitTest","setState","getRect","request","isDragging","getManager","forceUpdate","waitToChangeTarget","updateSelectors","getTargets","stopDrag","getControlBoxElement","getMoveables","getDragElement"];function hl(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 Os(Os({},o?xd(t,l):l),{isPinch:!!r,parentEvent:!0,datas:u,originalDatas:e.originalDatas})}var fl=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]={}),Os(Os({},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 ml(e,t,n,r){var o=16===e.length?4:3,i=js(Ku(e,n,r,o),4),a=js(i[0],2),s=a[0],l=a[1],c=js(i[1],2),u=c[0],d=c[1],p=js(i[2],2),h=p[0],f=p[1],m=js(i[3],2),g=m[0],v=m[1],y=js(Vu(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:Od(e[0]*e[o+1])}}function gl(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=ga(o,h),n.inverseBeforeMatrix=ga(i,h),n.absoluteOrigin=ya(Sa([s,l],c),h),n.startDragBeforeDist=ka(n.inverseBeforeMatrix,n.absoluteOrigin,h),n.startDragDist=ka(n.inverseMatrix,n.absoluteOrigin,h)}function vl(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=Li(a,(function(e){return e.match(/scale\(/g)}))),-1===c&&(c=a.length),r.transformIndex=c):c=Vi(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=Ka(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:Ka([""])[0],h=n<0?[]:o.slice(n),f=n<0?[]:o.slice(n+1),m=p?[p]:[],g=Va(u),v=Va(d),y=Va(h),b=Va(f),w=xa(g,y,4);return{transforms:e,beforeFunctionMatrix:g,beforeFunctionMatrix2:v,targetFunctionMatrix:Va(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=Rs(Rs([],js(l),!1),[{functionName:n,index:c,isAppend:!0}],!1))}function yl(e,t,n){return"".concat(e.beforeFunctionTexts.join(" ")," ").concat(e.isAppendTransform?n:t," ").concat(e.afterFunctionTexts.join(" "))}function bl(e){var t=e.datas,n=js(xl({datas:t,distX:e.distX,distY:e.distY}),2),r=wl(t,function(e,t){for(var n=Oa(t),r=0;r<t-1;++r)n[t*(t-1)+r]=e[r]||0;return n}([n[0],n[1]],4));return ka(r,ya([0,0,0],4),4)}function wl(e,t,n){var r=e.beforeTransform,o=e.afterTransform,i=e.beforeTransform2,a=e.afterTransform2,s=e.targetAllTransform,l=n?xa(s,t,4):xa(t,s,4),c=xa(ga(n?i:r,4),l,4);return xa(c,ga(n?a:o,4),4)}function xl(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 _a(ka(o,Sa(t.absoluteOrigin,[n,r]),s),a)}function Sl(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 _a(ka(t?i:a,Sa(n.absoluteOrigin,[r,o]),u),t?l:c)}function _l(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 Cl(e,t){var n=(t+1)/2;return[Ei(e[0][0],e[1][0],n,1-n),Ei(e[0][1],e[1][1],n,1-n)]}function El(e,t){var n=Cl([e[0],e[1]],t[0]),r=Cl([e[2],e[3]],t[0]);return Cl([n,r],t[1])}function kl(e,t,n,r){return xa(e,Au(t,r,n),r)}function zl(e,t){var n=Tl(t);return{setTransform:function(r,o){void 0===o&&(o=-1),n.startTransforms=Pi(r)?r:Oi(r),Al(e,t,o)},setTransformIndex:function(n){Al(e,t,n)}}}function Pl(e,t,n){Al(e,t,Li(Tl(t).startTransforms,(function(e){return 0===e.indexOf("".concat(n,"("))})))}function Al(e,t,n){var r=Tl(t),o=t.datas;if(o.transformIndex=n,-1!==n){var i=r.startTransforms[n];if(i){var a=e.state,s=Ka([i],{"x%":function(e){return e/100*a.offsetWidth},"y%":function(e){return e/100*a.offsetHeight}});o.startValue=s[0].functionValue}}}function Dl(e,t){Tl(e).nextTransforms=Oi(t)}function Tl(e){return e.originalDatas.beforeRenderable}function Il(e){return e.originalDatas.beforeRenderable.nextTransforms}function Ml(e){return(Il(e)||[]).join(" ")}function Nl(e){return Tl(e).nextStyle}function Ol(e,t,n,r,o){Dl(o,t);var i=qc.drag(e,hl(o,e.state,n,r,!1)),a=i?i.transform:t;return Os(Os({transform:t,drag:i},sd({transform:a},o)),{afterTransform:a})}function jl(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(Ai(n)){var l=t.beforeTransform,c=t.afterTransform;o=ba(r?La(n):xa(xa(l,La([n]),4),c,4),4,s)}else o=n;return kl(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?4:3,l=[i/2*(1+t[0])+n[0],a/2*(1+t[1])+n[1]];return Vu(r,l,s)}(e,n,r,a);return s}function Rl(e,t,n,r,o,i,a){var s=jl(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=_a(r,s);return _a(f,[p,h])}function Fl(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=Fi(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=El(Ku(t,n,r,o),i);return[e[0]-a[0],e[1]-a[1]]}(r,kl(c,g,y,v),t,n,v,m);return _a(x,[b,w])}function Bl(e){if(e&&e.getRootNode){var t=e.getRootNode();if(11===t.nodeType)return t}}function Ll(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 Vl(e,t,n){for(var r,o,i,a=e,s=[],l=sa(e)||la(e),c=!n&&e===t||e===l,u=c,d=!1,p=3,h=!1,f=Mu(t,t,!0).offsetParent,m=1;a&&!u;){u=c;var g=ql(a),v=g("position"),y=Iu(a),b="fixed"===v,w=Ll(g),x=Ca(Pu(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=Ru(a)).fixedContainer);var D=x.length;d||16!==D&&!w.length||(d=!0,p=4,ju(s),i&&(i=ba(i,3,4))),d&&9===D&&(x=ba(x,3,4));var T=Nu(a,e),I=T.tagName,M=T.hasOffset,N=T.isSVG,O=T.origin,j=T.targetOrigin,R=js(T.offset,2),F=R[0],B=R[1];"svg"===I&&!a.ownerSVGElement&&i&&(s.push({type:"target",target:a,matrix:Lu(a,p)}),s.push({type:"offset",target:a,matrix:Oa(p)}));var L=parseFloat(g("zoom"))||1;if(b)S=A.fixedContainer,_=!0;else{var V=Mu(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(Xs||Js){if(V.parentSlotElement){for(var $=S,H=0,U=0;$&&Bl($);)H+=$.offsetLeft,U+=$.offsetTop,$=$.offsetParent;F-=H,B-=U}}}if(!Hs||Qs||!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 q=Ou(a,!1);F+=q[0],B+=q[1]}if(s.push({type:"target",target:a,matrix:Au(x,p,O)}),w.length&&(s.push({type:"offset",target:a,matrix:Oa(p)}),s.push({type:"target",target:a,matrix:Au(La(w),p,O)})),M){var W=a===e,G=W?0:a.scrollLeft,Y=W?0:a.scrollTop;s.push({type:"offset",target:a,matrix:Ra([F-G+E-z,B-Y+k-P],p)})}else s.push({type:"offset",target:a,origin:O});if(1!==L&&s.push({type:"zoom",target:a,matrix:Au(ja([L,L],p),p,[0,0])}),i||(i=x),r||(r=O),o||(o=j),u||b)break;a=S,c=_,n&&a!==l||(u=c)}return i||(i=Oa(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 Kl=null,$l=null,Hl=null;function Ul(e){e?(window.Map&&(Kl=new Map,$l=new Map),Hl=[]):(Kl=null,Hl=null,$l=null)}function ql(e){var t=null==Kl?void 0:Kl.get(e);if(!t){var n=ca(e).getComputedStyle(e);if(!Kl)return function(e){return n[e]};t={style:n,cached:{}},Kl.set(e,t)}var r=t.cached,o=t.style;return function(e){return e in r||(r[e]=o[e]),r[e]}}function Wl(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]||{},Os(Os({},n),{isRequestChild:!0,datas:i[r][t],originalDatas:i[r]})}))}function Gl(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=Wl(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 fl(a).dragStart(r,e),h.push(g);else{if(m[a]||(m[a]=u.childGestos[o]),!m[a])return;g=hl(e,f,r,c,i,a),h.push(g)}var v=t[n](d,Os(Os({},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 Yl(e,t,n,r,o,i){void 0===o&&(o=function(e,t){return t});var a=!!n.match(/End$/g),s=Wl(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,Os(Os({},s),{parentFlag:!0}));return u&&i&&i(c,e,u,r),a&&(c.state.gestos={}),u}));return c}function Zl(e,t,n,r){var o=n.fixedDirection,i=n.fixedPosition,a=El(r.datas.startPositions||od(t.state),o),s=js(ka(Na(-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 Jl(e,t,n,r){var o=e.getState(),i=o.renderPoses,a=o.rotation,s=o.direction,l=Yu(e.props,t).zoom,c=yu(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=Od(s);return n.map((function(e){var n=e.data,o=e.classNames,s=e.dir,d=ul[s];if(!d||!u[s])return null;p[s]=!0;var f=(Qi(c,15)+h*dl[s]+720)%180,m={};return Hi(n).forEach((function(e){m["data-".concat(e)]=n[e]})),r.createElement("div",Os({className:ku.apply(void 0,Rs(["control","direction",s,t],js(o),!1)),"data-rotation":f,"data-direction":s},m,{key:"direction-".concat(s),style:Gu.apply(void 0,Rs([a,l],js(d.map((function(e){return i[e]}))),!1))}))}))}function Xl(e,t,n,r){var o=Yu(e.props,n),i=o.renderDirections,a=void 0===i?t:i,s=o.displayAroundControls;if(!a)return[];var l=!0===a?Ls:a;return Rs(Rs([],js(s?rc(e,r,n,l):[]),!1),js(Jl(e,n,l.map((function(e){return{data:{},classNames:[],dir:e}})),r)),!1)}function Ql(e,t,n,r,o,i){for(var a=[],s=6;s<arguments.length;s++)a[s-6]=arguments[s];var l=Zi(n,r),c=t?Qi(l/Math.PI*180,15)%180:-1;return e.createElement("div",{key:"line-".concat(i),className:ku.apply(void 0,Rs(["line","direction",t?"edge":"",t],js(a),!1)),"data-rotation":c,"data-line-key":i,"data-direction":t,style:Wu(n,r,o,l)})}function ec(e,t,n,r,o){return(!0===n?Bs:n).map((function(n,i){var a=js(ul[n],2),s=a[0],l=a[1];if(null!=l)return Ql(e,n,r[s],r[l],o,"".concat(t,"Edge").concat(i),t)})).filter(Boolean)}function tc(e){return function(t,n){var r=Yu(t.props,e).edge;return r&&(!0===r||r.length)?Rs(Rs([],js(ec(n,e,r,t.getState().renderPoses,t.props.zoom)),!1),js(function(e,t,n){return Xl(e,["nw","ne","sw","se"],t,n)}(t,e,n)),!1):nc(t,e,n)}}function nc(e,t,n){return Xl(e,Ls,t,n)}function rc(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=Od(l),p=s/Math.PI*180;return(r||Hi(c)).map((function(e){var r=ul[e];if(!r)return null;var o=(Qi(p,15)+d*dl[e]+720)%180,i=["around-control"];return n&&i.push("direction",n),t.createElement("div",{className:ku.apply(void 0,Rs([],js(i),!1)),"data-rotation":o,"data-direction":e,key:"direction-around-".concat(e),style:Gu.apply(void 0,Rs([s,u],js(r.map((function(e){return a[e]}))),!1))})}))}function oc(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:ac(h,t,!0),horizontal:ac(h,n,!1)}}function ic(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 ac(e,t,n){var r=e[n?"left":"top"],o=e[n?"right":"bottom"],i=Math.min.apply(Math,Rs([],js(t),!1)),a=Math.max.apply(Math,Rs([],js(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 jd(t.offset)-jd(e.offset)}))}function sc(e,t,n){return(n?e.map((function(e){return Ta(e,n)})):e).some((function(e){return e[0]<t.left&&jd(e[0]-t.left)>.1||e[0]>t.right&&jd(e[0]-t.right)>.1||e[1]<t.top&&jd(e[1]-t.top)>.1||e[1]>t.bottom&&jd(e[1]-t.bottom)>.1}))}function lc(e,t,n,r,o){if(!e.props.bounds)return[];var i=o*Math.PI/180,a=ic(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(!sc(n,m,0))return[];var g=[];return[[d,0],[p,0],[h,1],[f,1]].forEach((function(e){var r=js(e,2),o=r[0],a=r[1];n.forEach((function(e){var n=Zi([0,0],e);g.push.apply(g,Rs([],js(function(e,t,n){var r=Uu(e),o=Math.sqrt(r*r-t*t)||0;return[o,-o].sort((function(t,r){return jd(t-e[n?0:1])-jd(r-e[n?0:1])})).map((function(e){return Zi([0,0],n?[e,t]:[t,e])}))}(e,o,a).map((function(e){return i+e-n})).filter((function(e){return!sc(t,m,e)})).map((function(e){return Qi(180*e/Math.PI,il)}))),!1))}))})),g}var cc=["left","right","center"],uc=["top","bottom","middle"],dc={left:"start",right:"end",center:"center",top:"start",bottom:"end",middle:"center"},pc={start:"left",end:"right",center:"center"},hc={start:"top",end:"bottom",center:"middle"};function fc(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 mc(e){return!1===e?{}:!0!==e&&e?e:{left:!0,right:!0,top:!0,bottom:!0}}function gc(e,t){var n=function(e,t){var n=mc(e),r={};for(var o in n)o in t&&n[o]&&(r[o]=t[o]);return r}(e,t),r=uc.filter((function(e){return e in n})),o=cc.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 vc="snapRotationThreshold",yc="snapRotationDegrees",bc="snapHorizontalThreshold",wc="snapVerticalThreshold";function xc(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=gd(a,l.snapHorizontalThreshold,5),d=gd(i,l.snapVerticalThreshold,5);return Sc(e.state.guidelines,t,n,r,o,u,d,c)}function Sc(e,t,n,r,o,i,a,s){return{vertical:kc(e,"vertical",t,a*s[0],r),horizontal:kc(e,"horizontal",n,i*s[1],o)}}function _c(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 Cc(e,t,n,r){var o=gc(e.props.snapDirections,t),i=xc(e,o.vertical,o.horizontal,o.verticalNames.map((function(e){return _c(e)})),o.horizontalNames.map((function(e){return _c(e)})),n,r),a=_c(o.horizontalNames[i.horizontal.index]),s=_c(o.verticalNames[i.vertical.index]);return{vertical:Os(Os({},i.vertical),{direction:s}),horizontal:Os(Os({},i.horizontal),{direction:a})}}function Ec(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 kc(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:jd(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 zc(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,Rs([],js(function(e,t){return _l(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 El(t,e)})),s=xc(e,a.map((function(e){return e[0]})),a.map((function(e){return e[1]})),i.map((function(e){return _c(e[0])})),i.map((function(e){return _c(e[1])})),r,o),l=_c(i.map((function(e){return e[0]}))[s.vertical.index]),c=_c(i.map((function(e){return e[1]}))[s.horizontal.index]);return{vertical:Os(Os({},s.vertical),{direction:l}),horizontal:Os(Os({},s.horizontal),{direction:c})}}function Pc(e,t){var n=jd(e.offset),r=jd(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<il?1:r<il?-1:n-r}function Ac(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?Pc({isBound:e.isBound,isSnap:e.isSnap,offset:i},{isBound:n.isBound,isSnap:n.isSnap,offset:a}):-1:1}))[0]}function Dc(e,t){var n=Yi([t[0][0],t[1][0]]),r=Yi([t[0][1],t[1][1]]);return{vertical:n<=e[0],horizontal:r<=e[1]}}function Tc(e,t){var n,r,o=js(t,2),i=o[0],a=o[1],s=a[0]-i[0],l=a[1]-i[1];if(jd(s)<il&&(s=0),jd(l)<il&&(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 Ic(e,t,n,r){return void 0===r&&(r=il),e.every((function(e){var o=Tc(e,t);return o<=0===n||jd(o)<=r}))}function Mc(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 Nc(e,t,n,r,o,i){var a,s,l=js(t,2),c=l[0],u=l[1],d=e[0],p=n[0],h=n[1],f=_d(h[1]-p[1]),m=u,g=c,v=-c/u;return _d(h[0]-p[0])?f||i&&!m?{isBound:!1,offset:0}:g?Mc((p[1]-d[1])/v+d[0],p[0],h[0],r,o):{isBound:s=jd(a=p[1]-d[1])<=(o||0),offset:s?a:0}:i&&!g?{isBound:!1,offset:0}:m?Mc(v*(p[0]-d[0])+d[1],p[1],h[1],r,o):{isBound:s=jd(a=p[0]-d[0])<=(o||0),offset:s?a:0}}function Oc(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(Ic([[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=Nc(n,a,h,o),v=Nc(n,a,m,o),y=Nc(n,a,p,i),b=Nc(n,a,f,i),w=g.isBound&&v.isBound,x=g.isBound||v.isBound,S=y.isBound&&b.isBound,_=y.isBound||b.isBound,C=bd(g.offset,v.offset),E=bd(y.offset,b.offset),k=[0,0],z=!1,P=!1;return jd(E)<jd(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=Sl({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 jc(e,t,n){var r,o=Oc(e,Rc(e,t,[0,0],!1).map((function(e){return Os(Os({},e),{multiple:e.multiple.map((function(e){return 2*jd(e)}))})})),n),i=Ac(o,0),a=Ac(o,1),s=0,l=0,c=i.isVerticalBound||a.isVerticalBound,u=i.isHorizontalBound||a.isHorizontalBound;return(c||u)&&(r=js(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 _a(ka(t?i:a,Sa(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 Rc(e,t,n,r){var o=e.state,i=Ku(o.allMatrix,100,100,o.is3d?4:3),a=El(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=js(e,3),r=n[0],o=n[1],s=n[2],l=[El(i,o),El(i,s)],c=function(e){var t=js(e,2),n=t[0],r=t[1],o=r[0]-n[0],i=r[1]-n[1];Math.abs(o)<_i&&(o=0),Math.abs(i)<_i&&(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 Qi(e,_i)}))}(l),u=Dc(a,l),d=u.vertical,p=u.horizontal;return{multiple:r,centerSign:Tc(a,l)<=0,verticalSign:d,horizontalSign:p,lineConstants:c,line:[El(t,o),El(t,s)]}}))}function Fc(e,t,n,r){var o=r?e.map((function(e){return Ta(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=Tc(n,e)<=0;return!Ic(t,e,r)}))}function Bc(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=El(n,[0,0]);if(!Fc(n,m,g,0))return[];var v=[],y=m.map((function(e){return[Uu(e),Zi([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=Zi([0,0],function(e){var t=js(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=js(e,2),n=t[0],r=t[1],o=r[0]-n[0],i=r[1]-n[1];if(!o)return jd(n[0]);if(!i)return jd(n[1]);var a=i/o;return jd((-a*n[0]+n[1])/Math.sqrt(Math.pow(a,2)+1))}(e);v.push.apply(v,Rs([],js(y.filter((function(e){var t=js(e,1)[0];return t&&r<=t})).map((function(e){var t=js(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,Rs([],js(t),!1)),e}),[]).filter((function(e){return!Fc(t,m,g,e)})).map((function(e){return Qi(180*e/Math.PI,il)}))),!1))})),v}function Lc(e,t,n,r,o){var i=function(e,t,n,r){var o=t[0]-e[0],i=t[1]-e[1];if(jd(o)<_i&&(o=0),jd(i)<_i&&(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=Xi(e,t),s=Xi(i,e),l=Xi(i,t),c=s>a||l>a,u=js(Sl({datas:o,distX:i[0],distY:i[1]}),2);return{offset:[u[0],u[1]],isOutside:c}}function Vc(e,t){return e.isBound?e.offset:t.isSnap?Ec(t).offset:0}function Kc(e,t,n,r,o,i){if(!fc(e,"draggable"))return[{isSnap:!1,isBound:!1,offset:0},{isSnap:!1,isBound:!1,offset:0}];var a=rd(i.absolutePoses,[t,n]),s=$u(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=$c(e,o,gc(mc(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=jc(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,_=js(function(e,t,n,r,o){var i=js(t,2),a=i[0],s=i[1],l=js(n,2),c=l[0],u=l[1],d=js(r,2),p=d[0],h=d[1],f=js(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 Uu(_a([a,s],e))-Uu(_a([a,s],t))}));var w=b[0];if(w[0]&&jd(a)>_i)v=-w[0],y=s*jd(a+v)/jd(a)-s;else if(w[1]&&jd(s)>_i){var x=s;y=-w[1],v=a*jd(s+y)/jd(x)-a}if(e&&u&&c)if(jd(v)>_i&&jd(v)<jd(m))v*=S=jd(m)/jd(v),y*=S;else if(jd(y)>_i&&jd(y)<jd(g)){var S;v*=S=jd(g)/jd(y),y*=S}else v=bd(-m,v),y=bd(-g,y)}}else v=a||c?-m:0,y=s||u?-g:0;return[v,y]}(r,[t,n],[x,S],[b,w],[bd(f.offset,v.offset),bd(m.offset,y.offset)]),2);return[{isBound:x,isSnap:b,offset:_[0]},{isBound:S,isSnap:w,offset:_[1]}]}function $c(e,t,n,r){void 0===r&&(r=n);var o=oc(ic(e),r.vertical,r.horizontal),i=o.horizontal,a=o.vertical,s=t?{horizontal:{isSnap:!1,index:-1},vertical:{isSnap:!1,index:-1}}:xc(e,n.vertical,n.horizontal,void 0,void 0,void 0,void 0),l=s.horizontal,c=s.vertical,u=Vc(i[0],l),d=Vc(a[0],c),p=jd(u),h=jd(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 Hc(e,t,n,r,o,i){return n.map((function(n){var a=js(n,2),s=a[0],l=a[1],c=El(t,s),u=El(t,l),d=r?function(e,t,n,r){var o=function(e,t,n){var r=ic(e),o=r.left,i=r.top,a=r.right,s=r.bottom,l=js(n,2),c=l[0],u=l[1],d=js(_a(n,t),2),p=d[0],h=d[1];jd(p)<il&&(p=0),jd(h)<il&&(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=js(n,2),o=r[0],i=r[1],a=js(t,2),s=a[0],l=a[1],c=js(_a(n,t),2),u=c[0],d=c[1],p=d>0,h=u>0;u=_d(u),d=_d(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=xc(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=Ec(v),w=b.isSnap,x=b.guideline,S=Ec(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=Uc(i,l),d=Uc(a,c),p=jd(u),h=jd(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):$c(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=_a(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=Zi(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!==jd(l[0])||1!==jd(l[1])||s[0]===l[0]||s[1]===l[1]?Lc(c,u,-(S?v:h),S,i).offset:Sl({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 Uc(e,t){return e.isBound?e.offset:t.isSnap?t.offset:0}var qc={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=Uu(c),d=Zi(c,[0,0]);return[t.createElement("div",{className:ku("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],gl(e,t),Pl(e,t,"translate"),function(e,t){t.absolutePoses=od(e.state)}(e,n),n.prevDist=[0,0],n.prevBeforeDist=[0,0],n.isDrag=!1,n.deltaOffset=[0,0];var l=cd(e,t,Os({set:function(e){n.startValue=e}},zl(e,t)));return!1!==(r||pd(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){vl(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=Qi(k+180*Zi([0,0],[d,p])/Math.PI,w)-k,P=p*Math.abs(Math.cos((z-90)/180*Math.PI)),A=Uu([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=js(Kc(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=Sa(xl({datas:n,distX:d,distY:p}),g),N=Sa(bl({datas:n,distX:d,distY:p}),g);ea(N,il),ea(M,il),w||(S||_||(N[0]=Qi(N[0],b),M[0]=Qi(M[0],b)),C||E||(N[1]=Qi(N[1],b),M[1]=Qi(M[1],b)));var O=_a(M,g),j=_a(N,g),R=_a(j,f),F=_a(O,m);n.prevDist=j,n.prevBeforeDist=O,n.passDelta=R,n.passDist=j;var B=n.left+O[0],L=n.top+O[1],V=n.right-O[0],K=n.bottom-O[1],$=yl(n,"translate(".concat(N[0],"px, ").concat(N[1],"px)"),"translate(".concat(j[0],"px, ").concat(j[1],"px)"));if(Dl(t,$),e.state.dragInfo.dist=r?[0,0]:j,r||y||!R.every((function(e){return!e}))||!F.some((function(e){return!e}))){var H=e.state,U=H.width,q=H.height,W=cd(e,t,Os({transform:$,dist:j,delta:R,translate:N,beforeDist:O,beforeDelta:F,beforeTranslate:M,left:B,top:L,right:V,bottom:K,width:U,height:q,isPinch:i},sd({transform:$},t)));return!r&&pd(e,"onDrag",W),W}}}},dragAfter:function(e,t){var n=t.datas,r=n.deltaOffset;return!(!r[0]&&!r[1])&&(n.deltaOffset=[0,0],this.drag(e,Os(Os({},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=ud(e,t,{});return!n&&pd(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=Gl(e,this,"dragStart",[i||0,a||0],t,!1,"draggable"),c=l.childEvents,u=l.eventParams,d=pd(e,"onDragGroupStart",Os(Os({},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,Os(Os({},t),{parentThrottleDrag:e.props.throttleDrag})),r=Gl(e,this,"drag",t.datas.passDelta,t,!1,"draggable").eventParams;if(n){var o=Os({targets:e.props.targets,events:r},n);return pd(e,"onDragGroup",o),o}}},dragGroupEnd:function(e,t){var n=t.isDrag;if(t.datas.isDrag){this.dragEnd(e,t);var r=Gl(e,this,"dragEnd",[0,0],t,!1,"draggable").eventParams;return pd(e,"onDragGroupEnd",ud(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 Wc(e,t){return{fixedPosition:El(e,t),fixedDirection:t,fixedOffset:[0,0]}}function Gc(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:Vu(n,t,a),fixedDirection:s,fixedOffset:[o?0:t[0],i?0:t[1]]}}var Yc=Ed("resizable"),Zc={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:tc("resizable"),dragControlCondition:Yc,viewClassName:Cd("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=td(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&&gl(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=Wc(l.startPositions,e);l.fixedDirection=t.fixedDirection,l.fixedPosition=t.fixedPosition,l.fixedOffset=t.fixedOffset}function w(t){var n=Gc(e.state,t);l.fixedDirection=n.fixedDirection,l.fixedPosition=n.fixedPosition,l.fixedOffset=n.fixedOffset}function x(e){l.minSize=[Ui("".concat(e[0]),0)||0,Ui("".concat(e[1]),0)||0]}function S(e){var t=[e[0]||1/0,e[1]||1/0];Di(t[0])&&!isFinite(t[0])||(t[0]=Ui("".concat(t[0]),0)||1/0),Di(t[1])&&!isFinite(t[1])||(t[1]=Ui("".concat(t[1]),0)||1/0),l.maxSize=t}l.transformOrigin=v&&Ai(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=od(e.state),y(f/m),b(c||[-d[0],-d[1]]),l.setFixedDirection=b,l.setFixedPosition=w,l.setMin=x,l.setMax=S;var _=cd(e,t,{direction:d,startRatio:l.ratio,set:function(e){var t=js(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:qc.dragStart(e,(new fl).dragStart([0,0],t))}),C=u||pd(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=La(Il(t)),T=Math.sqrt(D.length);A!==T&&(D=ba(D,T,A));var I=kl(z,D,P,A),M=Ku(I,_,C,A);r.startPositions=M,r.nextTargetMatrix=D,r.nextAllMatrix=I}var N=Yu(e.props,"resizable"),O=N.resizeFormat,j=N.throttleResize,R=void 0===j?o?0:1:j,F=N.parentMoveable,B=N.keepRatioFinally,L=r.direction,V=L,K=0,$=0;L[0]||L[1]||(V=[1,1]);var H=S&&(null!=a?a:N.keepRatio)||!1,U=js(oe(),2),q=U[0],W=U[1];p||(r.setFixedDirection(r.fixedDirection),pd(e,"onBeforeResize",cd(e,t,{startFixedDirection:r.startFixedDirection,startFixedPosition:r.startFixedPosition,setFixedDirection:function(e){var t;return r.setFixedDirection(e),t=js(oe(),2),q=t[0],W=t[1],[q,W]},setFixedPosition:function(e){var t;return r.setFixedPosition(e),t=js(oe(),2),q=t[0],W=t[1],[q,W]},boundingWidth:q,boundingHeight:W,setSize:function(e){var t;t=js(e,2),q=t[0],W=t[1]}},!0)));var G=s;s||(G=!o&&i?function(e,t){return El(od(e.state),t)}(e,[0,0]):r.fixedPosition);var Y=[0,0];if(i||(Y=function(e,t,n,r,o,i,a){if(!fc(e,"resizable"))return[0,0];var s=a.fixedDirection,l=a.nextAllMatrix,c=e.state,u=c.allMatrix,d=c.is3d;return vu(e,(function(e,r){return fu(l||u,t+e,n+r,s,o,d)}),t,n,r,o,i,a)}(e,q,W,L,G,!c&&u,r)),l&&(!l[0]&&(Y[0]=0),!l[1]&&(Y[1]=0)),H){V[0]&&V[1]&&Y[0]&&Y[1]&&(jd(Y[0])>jd(Y[1])?Y[1]=0:Y[0]=0);var Z=!Y[0]&&!Y[1];Z&&ie(),V[0]&&!V[1]||Y[0]&&!Y[1]||Z&&E?(q+=Y[0],W=q/S):(!V[0]&&V[1]||!Y[0]&&Y[1]||Z&&!E)&&(W+=Y[1],q=W*S)}else q+=Y[0],W+=Y[1],q=Math.max(0,q),W=Math.max(0,W);n=js(Gi([q,W],w,x,!!H&&S),2),q=n[0],W=n[1],ie(),H&&(d||B)&&(E?W=q/S:q=W*S);var J=[(K=q-_)-y,($=W-C)-b];r.prevWidth=K,r.prevHeight=$;var X=Fl(e,q,W,G,m,r);if(F||!J.every((function(e){return!e}))||!X.every((function(e){return!e}))){var Q=qc.drag(e,hl(t,e.state,X,!!i,!1,"draggable")),ee=Q.transform,te=g+K,ne=v+$,re=cd(e,t,Os({width:te,height:ne,offsetWidth:Math.round(q),offsetHeight:Math.round(W),startRatio:S,boundingWidth:q,boundingHeight:W,direction:L,dist:[K,$],delta:J,isPinch:!!i,drag:Q},ld({style:{width:"".concat(te,"px"),height:"".concat(ne,"px")},transform:ee},Q,t)));return!p&&pd(e,"onResize",re),re}}function oe(){var e=r.fixedDirection,n=Dd(V,H,r,t);K=n.distWidth,$=n.distHeight;var o=V[0]-e[0]||H?Math.max(_+K,il):_,i=V[1]-e[1]||H?Math.max(C+$,il):C;return H&&_&&C&&(E?i=o/S:o=i*S),[o,i]}function ie(){var e;O&&(e=js(O([q,W]),2),q=e[0],W=e[1]),q=Qi(q,R),W=Qi(W,R)}},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=jd(c)>3,p=jd(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=ud(e,t,{});return!r&&pd(e,"onResizeEnd",o),o}},dragGroupControlCondition:Yc,dragGroupControlStart:function(e,t){var n=t.datas,r=this.dragControlStart(e,Os(Os({},t),{isGroup:!0}));if(!r)return!1;var o=Wl(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=Yl(e,this,"dragControlStart",t,(function(t,r){return Zl(e,t,n,r)}));s(),l();var u=function(t){r.setFixedDirection(t),c.forEach((function(r,i){r.setFixedDirection(t),Zl(e,r.moveable,n,o[i])}))};n.setFixedDirection=u;var d=Os(Os({},r),{targets:e.props.targets,events:c.map((function(e){return Os(Os({},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=pd(e,"onResizeGroupStart",d);return n.isResize=!1!==p,!!n.isResize&&r},dragGroupControl:function(e,t){var n=t.datas;if(n.isResize){var r=Yu(e.props,"resizable");dd(e,"onBeforeResize",(function(n){pd(e,"onBeforeResizeGroup",cd(e,t,Os(Os({},n),{targets:r.targets}),!0))}));var o=this.dragControl(e,Os(Os({},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=Yl(e,this,"dragControl",t,(function(t,n){var r=js(ka(Na(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 Os(Os({},n),{parentDist:null,parentScale:c,dragClient:Sa(u,[o,i]),parentKeepRatio:l})})),p=Os({targets:r.targets,events:d},o);return pd(e,"onResizeGroup",p),p}}},dragGroupControlEnd:function(e,t){var n=t.isDrag;if(t.datas.isResize){this.dragControlEnd(e,t);var r=Yl(e,this,"dragControlEnd",t);return pd(e,"onResizeGroupEnd",ud(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 Jc(e,t,n,r,o){var i=e.props.groupable,a=e.state,s=a.is3d?4:3,l=t.origin,c=Vu(e.state.rootMatrix,_a([l[0],l[1]],i?[0,0]:[a.left,a.top]),s),u=Sa([o.left,o.top],c);t.startAbsoluteOrigin=u,t.prevDeg=Zi(u,[n,r])/Math.PI*180,t.defaultDeg=t.prevDeg,t.prevSnapDeg=0,t.loop=0,t.startDist=Xi(u,[n,r])}function Xc(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 Qc(e,t,n,r){return Xc(Zi(r.startAbsoluteOrigin,[e,t])/Math.PI*180,n,r)}function eu(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.snapRotationThreshold)&&void 0!==o?o:5,s=i.snapRotationDegrees;if(fc(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 _a(e,p)})),m=f.map((function(e){return Ta(e,h)})),g=Rs(Rs([],js(lc(e,f,m,p,n)),!1),js(Bc(e,f,m,p,n)),!1);g.sort((function(e,t){return jd(e-n)-jd(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 wu(e,r)-wu(t,r)})),b=y[0];if(wu(b,r)<=a)return{isSnap:!0,dist:n+bu(r,b)-r}}return{isSnap:!1,dist:n}}(e,t,r,o+r);u=d.isSnap,c=o+d.dist}u||(c=Qi(o+r,s));var p=c-o;return n.prevSnapDeg=p,[p-l,p,c]}function tu(e,t,n){var r=js(t,4),o=r[0],i=r[1],a=r[2],s=r[3];if("none"===e)return[];if(Pi(e))return e.map((function(e){return tu(e,[o,i,a,s],n)[0]}));var l=js((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=Ju(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 nu(e,t){if(t.isRequest)return"rotatable"===t.requestAble;var n=t.inputEvent.target;if(ta(n,ku("rotation-control"))||e.props.rotateAroundControls&&ta(n,ku("around-control"))||ta(n,ku("control"))&&ta(n,ku("rotatable")))return!0;var r=e.props.rotationTarget;return!!r&&zd(r,!0).some((function(e){return!!e&&(n===e||n.contains(e))}))}var ru={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")?ku("view-rotation-dragging"):""},render:function(e,t){var n=Yu(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=tu(o,u,d),h=[];if(p.forEach((function(e,n){var r=js(e,2),o=r[0],a=r[1];h.push(t.createElement("div",{key:"rotation".concat(n),className:ku("rotation"),style:{transform:"translate(-50%) translate(".concat(o[0],"px, ").concat(o[1],"px) rotate(").concat(a,"rad)")}},t.createElement("div",{className:ku("line rotation-line"),style:{transform:"scaleX(".concat(i,")")}}),t.createElement("div",{className:ku("control rotation-control"),style:{transform:"translate(0.5px) scale(".concat(i,")")}})))})),a){var f=Hi(l||{}),m={};f.forEach((function(e){l[e].forEach((function(t){m[t]=e}))}));var g=[];Pi(a)&&(g=a.map((function(e){var t=m[e];return{data:t?{resolve:t}:{},classNames:t?["move"]:[],dir:e}}))),h.push.apply(h,Rs([],js(Jl(e,"rotatable",g,t)),!1))}return s&&h.push.apply(h,Rs([],js(rc(e,t)),!1)),h},dragControlCondition:nu,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=Gc(e.state,t);o.fixedDirection=n.fixedDirection,o.fixedOffset=n.fixedOffset,o.fixedPosition=n.fixedPosition,R&&R.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:Vu(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,R&&R.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=Os(Os({},o.beforeInfo),{origin:C.origin}),o.absoluteInfo=Os(Os({},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=cl[T];if(I){o.isControl=!0,o.isAroundControl=ta(D,ku("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 Vu(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=js(El(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=js(Sa(va(w,n),t),2),i=r[0],a=r[1],s=ka(b,ya([i,a],n)),l=ka(x,ya([t[0],t[1]],n));O(t);var c=d.posDelta;o.beforeInfo.origin=_a(s,c),o.afterInfo.origin=_a(l,c),o.absoluteInfo.origin=_a(l,c),Jc(e,o.beforeInfo,z,P,y),Jc(e,o.afterInfo,z,P,y),Jc(e,o.absoluteInfo,z,P,y)},k=function(e){var t=El([[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={},Pl(e,t,"rotate");var j=!1,R=!1;o.isControl&&o.resolveAble&&("resizable"===o.resolveAble&&(R=Zc.dragControlStart(e,Os(Os({},new fl("resizable").dragStart([0,0],t)),{parentPosition:o.controlPosition,parentFixedPosition:o.fixedPosition}))));R||(j=qc.dragStart(e,(new fl).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 Id(r,i,a);return l}(e));var F=cd(e,t,Os(Os({set:function(e){o.startValue=e*Math.PI/180},setFixedDirection:k,setFixedPosition:E},zl(e,t)),{dragStart:j,resizeStart:R})),B=pd(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){vl(e,t,"rotate");var S,_,C,E,k,z,P,A,D,T=function(e){return ml(e.datas.beforeTransform,[50,50],100,100).direction}(t),I=h*T,M=e.props.parentMoveable,N=180/Math.PI*y,O=g.startValue,j=!1,R=w+a,F=x+s;if(!c&&"parentDist"in t){var B=t.parentDist;_=B,k=B,A=B}else u||c?(_=Xc(l,h,f),k=Xc(l,I,m),A=Xc(l,I,g)):(_=Qc(R,F,h,f),k=Qc(R,F,I,m),A=Qc(R,F,I,g),j=!0);if(pd(e,"onBeforeRotate",cd(e,t,{beforeRotation:C=N+_,rotation:z=N+k,absoluteRotation:D=O+A,setRotation:function(e){_=k=e-N,A=k}},!0)),S=(n=js(eu(e,b,f,_,N,j),3))[0],_=n[1],C=n[2],E=(r=js(eu(e,b,m,k,N,j),3))[0],k=r[1],z=r[2],P=(o=js(eu(e,b,g,A,O,j),3))[0],A=o[1],D=o[2],P||E||S||M||p){var L=yl(i,"rotate(".concat(z,"deg)"),"rotate(".concat(k,"deg)"));p&&(i.fixedPosition=jl(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 Rl(e,"rotate(".concat(t,"deg)"),r,o,i,n)}(e,k,i),K=_a(Sa(d||[0,0],V),i.prevInverseDist||[0,0]);i.prevInverseDist=V,i.requestValue=null;var $=Ol(e,L,K,u,t),H=$,U=Xi([R,F],g.startAbsoluteOrigin)-g.startDist,q=void 0;if("resizable"===i.resolveAble){var W=Zc.dragControl(e,Os(Os({},hl(t,e.state,[t.deltaX,t.deltaY],!!u,!1,"resizable")),{resolveMatrix:!0,parentDistance:U}));W&&(q=W,H=ld(H,W,t))}var G=cd(e,t,Os(Os({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:q},$),H));return pd(e,"onRotate",G),G}}},dragControlEnd:function(e,t){var n=t.datas;if(n.isRotate){n.isRotate=!1;var r=ud(e,t,{});return pd(e,"onRotateEnd",r),r}},dragGroupControlCondition:nu,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=Yl(e,this,"dragControlStart",t,(function(e,t){var n=e.state,r=n.left,s=n.top,l=n.beforeOrigin,c=Sa(_a([r,s],[o,i]),_a(l,a));return t.datas.startGroupClient=c,t.datas.groupClient=c,Os(Os({},t),{parentRotate:0})})),c=pd(e,"onRotateGroupStart",Os(Os({},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){dd(e,"onBeforeRotate",(function(n){pd(e,"onBeforeRotateGroup",cd(e,t,Os(Os({},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=Yl(e,this,"dragControl",t,(function(e,t){var n=t.datas.startGroupClient,r=js(t.datas.groupClient,2),s=r[0],l=r[1],c=js(Ta(n,a*o),2),u=c[0],d=c[1],p=[u-s,d-l];return t.datas.groupClient=[u,d],Os(Os({},t),{parentRotate:i,groupDelta:p})}));e.rotation=o*r.beforeRotation;var l=Os({targets:e.props.targets,events:s,set:function(t){e.rotation=t},setGroupRotation:function(t){e.rotation=t}},r);return pd(e,"onRotateGroup",l),l}}},dragGroupControlEnd:function(e,t){var n=t.isDrag;if(t.datas.isRotate){this.dragControlEnd(e,t);var r=Yl(e,this,"dragControlEnd",t);return pd(e,"onRotateGroupEnd",ud(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 ou(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)})}(Os(Os({},e),{classNames:Rs([ku("line","guideline",e.direction)],js(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(Qi(e,.1),"px")}))}),t)}function iu(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,ou({key:"".concat(t,"TargetGuideline").concat(n),classNames:[ku("target","bold",c)],posValue:d,sizeValue:i,zoom:l,direction:t},s)}))}function au(e,t,n,r,o,i){var a=e.props,s=a.zoom,l=a.isDisplayInnerSnapDigit,c="horizontal"===t?pc:hc,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 ou({key:"".concat(t,"-default-guideline-").concat(n),classNames:l?[ku("bold"),c]:[ku("normal"),c],direction:t,posValue:u,sizeValue:a,zoom:s},i)}))}function su(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:ku("guideline-group",t),style:(l={left:"".concat(i[0],"px"),top:"".concat(i[1],"px")},l[y]="".concat(b,"px"),l)},ou({direction:t,classNames:[ku(n),a],size:"100%",posValue:[0,0],sizeValue:b,zoom:g},s),s.createElement("div",{className:ku("size-value","gap"),style:{transform:"translate".concat(v,"(-50%) scale(").concat(g,")")}},w>0?m(w,t):""))}function lu(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?pc:hc,s=n[a.start],l=n[a.end];return vd(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:Os(Os({},h),(u={},u[a.end]=h[a.start],u))},g={element:p,rect:Os(Os({},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?hc:pc,h=c?pc:hc,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(su(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(su(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(su(e,s,"dashed",a.length,i,d,t.className,o)),a.push(su(e,s,"dashed",a.length,l,h,t.className,o))}))}))})),a}function cu(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,_=$u(od(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 zi(e)&&"element"in e?Os(Os({},e),{element:kd(e.element,!0)}):{element:kd(e,!0)}})).filter((function(e){return e.element})),a=function(e,t){return Ga(e,t,Xa)}(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=js(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=js(function(e,t,n){var r=Vu(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=js(wd(i,[n,r],l),2),c=s[0],f=s[1],m=js(wd(i,[a,o],l),2),g=m[0],v=m[1];return Os(Os({},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=mc(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=gc({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:[Qi(n,.1),_],size:k,sizes:z,className:g,elementRect:e,elementDirection:dc[S[r]]||S[r],direction:""})})),b.forEach((function(n,r){d.push({type:"horizontal",element:t,pos:[C,Qi(n,.1)],size:E,sizes:z,className:g,elementRect:e,elementDirection:dc[x[r]]||x[r],direction:""})}))})),d}(e),D=Rs([],js(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,Rs([],js(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",pc,hc],["horizontal",hc,pc]].forEach((function(e){var r=js(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=js(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,jd((S=v+(x=(y-v-(p-d))/2)+(p-d)/2)-h)>w)return}else if(v<y&&b<d+w){if(_=!0,jd((S=b+(x=y-v))-d)>w)return}else{if(!(v<y&&p-w<m))return;if(E=!0,jd((S=m-(x=y-v))-p)>w)return}x&&uu(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=Os({},r.snapOffset||{left:0,top:0,bottom:0,right:0});if(D.push.apply(D,Rs([],js(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 Qi(e/y,.1)*a})),w=1,x=Qi(h/y,.1);for(w=1;w<=10&&!b.every((function(e){return e*w%1==0}));++w);var S=(1-e)/2,_=Ei(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,Qi(g[1]*b+e-o+m,.1)],className:ku("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:[Qi(g[0]*y+e-r+f,.1),m],className:ku("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,Rs([],js(pu(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 uu(P,o,r,x)})),D}function uu(e,t,n,r){return"horizontal"===n?jd(e.right-t.left)<=r||jd(e.left-t.right)<=r||e.left<=t.right&&t.left<=e.right:"vertical"!==n||(jd(e.bottom-t.top)<=r||jd(e.top-t.bottom)<=r||e.top<=t.bottom&&t.top<=e.bottom)}function du(e,t){return e?e.map((function(e){var n=zi(e)?e:{pos:e},r=n.pos;return Di(r)?n:Os(Os({},n),{pos:Ui(r,t)})})):[]}function pu(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 du(e,p).forEach((function(e){s.push({type:"horizontal",pos:[l,Qi(e.pos-i+c,.1)],size:d,className:e.className,direction:""})})),du(t,d).forEach((function(e){s.push({type:"vertical",pos:[Qi(e.pos-o+l,.1),c],size:p,className:e.className,direction:""})})),s}function hu(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=kd(r,!0);if(a){var s=ed(a),l=Pd(t,[s.left-o.left,s.top-o.top]),c=Pd(t,[s.right-o.right,s.bottom-o.bottom]);i.left=Qi(l[0],1e-5),i.top=Qi(l[1],1e-5),i.right=Qi(c[0],1e-5),i.bottom=Qi(c[1],1e-5)}}return t.snapContainer=r,t.snapOffset=i,t.guidelines=cu(e),t.enableSnap=!0,!0}function fu(e,t,n,r,o,i){var a=Ku(e,t,n,i?4:3);return rd(a,_a(o,El(a,r)))}function mu(e){return e?e/jd(e):0}function gu(e,t,n,r,o,i){var a=function(e,t,n){var r=[];if(n)1!==jd(t[0])||1!==jd(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===jd(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===jd(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=Rc(e,t,n,r),l=Rs(Rs([],js(Hc(e,t,a,r,o,i)),!1),js(Oc(e,s,i)),!1),c=Ac(l,0),u=Ac(l,1);return{width:{isBound:c.isBound,offset:c.offset[0]},height:{isBound:u.isBound,offset:u.offset[1]}}}function vu(e,t,n,r,o,i,a,s){for(var l=od(e.state),c=e.props.keepRatio,u=0,d=0,p=0;p<2;++p){var h=gu(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=jd(y)*(n?1/n:1),x=jd(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=El(t,e),p=360*Zi(r,c)/Math.PI;if(a){var h=c.slice();(jd(p-360)<2||jd(p-180)<2)&&(h[1]=r[1]);var m=Lc(r,h,(r[1]<c[1]?w:g)-c[1],!1,o),v=js(m.offset,2)[1],b=m.isOutside;isNaN(v)||(d=l+(b?1:-1)*jd(v))}if(n){h=c.slice(),(jd(p-90)<2||jd(p-270)<2)&&(h[0]=r[0]);var x=Lc(r,h,(r[0]<c[0]?y:f)-c[0],!0,o),S=js(x.offset,1)[0],_=x.isOutside;isNaN(S)||(u=s+(_?1:-1)*jd(S))}}))}return{maxWidth:u,maxHeight:d}}(e,l,o,i,s),_=S.maxWidth,C=S.maxHeight,E=js(function(e,t,n,r,o,i,a,s,l){var c=El(t,a),u=$c(e,s,{vertical:[c[0]],horizontal:[c[1]]}),d=u.horizontal.offset,p=u.vertical.offset;if(Qi(p,ol)||Qi(d,ol)){var h=js(Sl({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 Qi(e,ol)}))})),n+u,r+d,_,C,o,a,s),2);u+=y=E[0],d+=b=E[1]}return[u,d]}function yu(e){return e<0&&(e=e%360+360),e%=360}function bu(e,t){t=yu(t);var n=Math.floor(e/360),r=360*n+360-t,o=360*n+t;return jd(e-r)<jd(e-o)?r:o}function wu(e,t){e=yu(e),t=yu(t);var n=yu(e-t);return Math.min(n,360-n)}function xu(e,t,n,r,o){if(!fc(e,"scalable"))return[0,0];var i=o.startOffsetWidth,a=o.startOffsetHeight,s=o.fixedPosition,l=o.fixedDirection,c=o.is3d,u=vu(e,(function(e,n){return fu(function(e,t){var n=e.transformOrigin,r=e.offsetMatrix,o=e.is3d,i=e.targetMatrix,a=o?4:3;return kl(r,xa(e.targetAllTransform||i,ja(t,a),a),n,a)}(o,Sa(t,[e/i,n/a])),i,a,l,s,c)}),i,a,n,s,r,o);return[u[0]/i,u[1]/a]}function Su(e){var t=[];return e.forEach((function(e){e.guidelineInfos.forEach((function(n){var r=n.guideline;Vi(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 Os(Os({},t),{direction:n.direction})}))}function _u(e,t,n,r,o,i){var a=oc(ic(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=El(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=Rc(e,o,[0,0],!1),m=[],g=[];return f.forEach((function(e){var t=e.line,r=e.lineConstants,o=Dc(i,t),f=o.horizontal,v=o.vertical,y=Nc(t,r,d,v,1,!0),b=Nc(t,r,h,v,1,!0),w=Nc(t,r,u,f,1,!0),x=Nc(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){Li(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){Li(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 Cu=Ed("",["resizable","scalable"]),Eu={name:"snappable",dragRelation:"strong",props:["snappable","snapContainer","snapDirections","elementSnapDirections","snapGap","snapGridWidth","snapGridHeight","isDisplaySnapDigit","isDisplayInnerSnapDigit","isDisplayGridGuidelines","snapDigit","snapThreshold","snapRenderThreshold","snapGridAll",vc,yc,bc,wc,"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||!fc(e,""))return Nd(e,"boundMap",{left:!1,top:!1,right:!1,bottom:!1},(function(e){return JSON.stringify(e)})),Nd(e,"innerBoundMap",{left:!1,top:!1,right:!1,bottom:!1},(function(e){return JSON.stringify(e)})),[];n.guidelines=cu(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=od(e.state),g=[],v=[],y=[],b=[],w=[],x=$u(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?$u(f):{};if(!c.request){if(c.direction&&w.push(zc(e,m,c.direction,d,d)),c.snap){var T=$u(m);c.center&&(T.middle=(T.top+T.bottom)/2,T.center=(T.left+T.right)/2),w.push(Cc(e,T,d,d))}A&&(c.center&&(D.middle=(D.top+D.bottom)/2,D.center=(D.left+D.right)/2),w.push(Cc(e,D,d,d))),w.forEach((function(e){var t=e.vertical.posInfos,n=e.horizontal.posInfos;g.push.apply(g,Rs([],js(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,Rs([],js(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,Rs([],js(Su(t)),!1)),b.push.apply(b,Rs([],js(Su(n)),!1))}))}var I=_u(e,[E,z],[C,k],g,v),M=I.boundMap,N=I.innerBoundMap;A&&_u(e,[D.left,D.right],[D.top,D.bottom],g,v,c.externalBounds);var O=Rs(Rs([],js(y),!1),js(b),!1),j=O.filter((function(e){return e.element&&!e.gapRects})),R=O.filter((function(e){return e.gapRects})).sort((function(e,t){return e.gap-t.gap}));pd(e,"onSnap",{guidelines:O.filter((function(e){return!e.element})),elements:j,gaps:R},!0);var F=Nd(e,"boundMap",M,(function(e){return JSON.stringify(e)}),{left:!1,top:!1,right:!1,bottom:!1}),B=Nd(e,"innerBoundMap",N,(function(e){return JSON.stringify(e)}),{left:!1,top:!1,right:!1,bottom:!1});return M!==F&&N!==B||pd(e,"onBound",{bounds:M,innerBounds:N},!0),Rs(Rs(Rs(Rs(Rs(Rs([],js(lu(e,j,[p,h],P,t)),!1),js(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?hc:pc,d=l?pc:hc,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,Rs([f],js(a.map((function(e){return e.rect[d.start]}))),!1)),g=Math.min.apply(Math,Rs([m],js(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(su(e,l?"vertical":"horizontal","gap",i.length,r,d,s,o))}))}))})),i}(e,R,[p,h],P,t)),!1),js(au(e,"horizontal",b,[o,r],P,t)),!1),js(au(e,"vertical",y,[o,r],P,t)),!1),js(iu(e,"horizontal",v,p,r,S,0,t)),!1),js(iu(e,"vertical",g,h,o,_,1,t)),!1)},dragStart:function(e,t){e.state.snapRenderInfo={request:t.isRequest,snap:!0,center:!0},hu(e)},drag:function(e){var t=e.state;hu(e)||(t.guidelines=cu(e)),t.snapRenderInfo&&(t.snapRenderInfo.render=!0)},pinchStart:function(e){this.unset(e)},dragEnd:function(e){this.unset(e)},dragControlCondition:function(e,t){return!(!Cu(e,t)&&!nu(e,t))||(!t.isRequest&&t.inputEvent?ta(t.inputEvent.target,ku("snap-control")):void 0)},dragControlStart:function(e){e.state.snapRenderInfo=null,hu(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,hu(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 ku(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return gi.apply(void 0,Rs([el],js(e),!1))}function zu(e){e()}function Pu(e){return e&&"none"!==e?zi(e)?e:La(e):[1,0,0,1,0,0]}function Au(e,t,n){return wa(t,Ra(n,t),e,Ra(n.map((function(e){return-e})),t))}function Du(e){return Tu(hd(e,":before").transformOrigin).map((function(t,n){var r=Fi(t),o=r.value,i=r.unit;return o*function(e,t,n){return"%"===t?Bu(e.ownerSVGElement)[n?"width":"height"]/100:1}(e,i,0===n)}))}function Tu(e){return e?e.split(" "):["0","0"]}function Iu(e){var t=ql(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 Mu(e,t,n,r,o){var i,a,s,l,c=sa(e)||la(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=ql(s),w=s.tagName.toLowerCase(),x=Iu(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=ql(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 Nu(e,t){var n,r,o,i=e.tagName.toLowerCase(),a=e.offsetLeft,s=e.offsetTop,l=ql(e),c=ki(a),u=!c;return u||"svg"===i&&!e.ownerSVGElement?o=(r=Tu(l("transformOrigin")).map((function(e){return parseFloat(e)}))).slice():(o=(r=Us?Du(e):Tu(l("transformOrigin")).map((function(e){return parseFloat(e)}))).slice(),u=!0,"svg"===i?(a=0,s=0):(n=js(function(e,t,n){var r=e.tagName.toLowerCase();if(!e.getBBox||!n&&"g"===r)return[0,0,0,0];var o="fill-box"===ql(e)("transform-box"),i=e.getBBox(),a=Bu(e.ownerSVGElement),s=i.x,l=i.y;"foreignobject"!==r||s||l||(s=parseFloat(e.getAttribute("x"))||0,l=parseFloat(e.getAttribute("y"))||0);var c=s-a.x,u=l-a.y,d=o?t[0]:t[0]-c,p=o?t[1]:t[1]-u;return[c,u,d,p]}(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 Ou(e,t){var n=ql(e),r=ql(la(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 ju(e){e.forEach((function(e){var t=e.matrix;t&&(e.matrix=ba(t,3,4))}))}function Ru(e){for(var t=e.parentElement,n=!1,r=la(e);t;){var o=hd(t).transform;if(o&&"none"!==o){n=!0;break}if(t===r)break;t=t.parentElement}return{fixedContainer:t||r,hasTransform:n}}function Fu(e,t){return void 0===t&&(t=e.length>9),"".concat(t?"matrix3d":"matrix","(").concat(Ea(e,!t).join(","),")")}function Bu(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 Lu(e,t){var n,r=Bu(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=ja(f,t);return n=js(m,2),b[t*(t-1)]=n[0],b[t*(t-1)+1]=n[1],Au(b,t,h)}function Vu(e,t,n){return ka(e,ya(t,n),n)}function Ku(e,t,n,r){return[[0,0],[t,0],[0,n],[t,n]].map((function(t){return Vu(e,t,r)}))}function $u(e){var t=e.map((function(e){return e[0]})),n=e.map((function(e){return e[1]})),r=Math.min.apply(Math,Rs([],js(t),!1)),o=Math.min.apply(Math,Rs([],js(n),!1)),i=Math.max.apply(Math,Rs([],js(t),!1)),a=Math.max.apply(Math,Rs([],js(n),!1));return{left:r,top:o,right:i,bottom:a,width:i-r,height:a-o}}function Hu(e,t,n,r){return $u(Ku(e,t,n,r))}function Uu(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function qu(e,t){return Uu([t[0]-e[0],t[1]-e[1]])}function Wu(e,t,n,r){void 0===n&&(n=1),void 0===r&&(r=Zi(e,t));var o=qu(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 Gu(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 Yu(e,t){var n=e[t];return zi(n)?Os(Os({},e),n):e}function Zu(e){var t=e&&!ki(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=ql(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 j=null;if("absolute"===M)j=Mu(e,la(e)).offsetParent;else j=e.parentElement;if(j){var R=ql(j);N=parseFloat(R("width")),O=parseFloat(R("height"))}}u=Math.max(A,Ui(S("minWidth"),N)||0),d=Math.max(D,Ui(S("minHeight"),O)||0),f=Ui(S("maxWidth"),N),m=Ui(S("maxHeight"),O),isNaN(f)&&(f=1/0),isNaN(m)&&(m=1/0),y=Ui(_.width,0)||0,b=Ui(_.height,0)||0,a=parseFloat(S("width"))||0,s=parseFloat(S("height"))||0,n=l=jd(a-y)<1?qi(u,y||a,f):a,r=c=jd(s-b)<1?qi(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 Ju(e,t){return Zi(t>0?e[0]:e[1],t>0?e[1]:e[0])}function Xu(e,t){var n=e===la(e)||e===sa(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"!==ql(e)("overflow"),Os(Os({},t),r)}function Qu(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?Xu(n,u):u}function ed(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?Xu(e,s):s}function td(e,t,n,r){var o;if(e)o=e;else if(t)o=[0,0];else{o=nd(n.target,r)}return o}function nd(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 rd(e,t){return[Sa(t,e[0]),Sa(t,e[1]),Sa(t,e[2]),Sa(t,e[3])]}function od(e){var t=e.left,n=e.top;return rd([e.pos1,e.pos2,e.pos3,e.pos4],[t,n])}function id(e,t){e[t?"controlAbles":"targetAbles"].forEach((function(t){t.unset&&t.unset(e)}))}function ad(e,t){var n=t?"controlGesto":"targetGesto",r=e[n];!1===(null==r?void 0:r.isIdle())&&id(e,t),null==r||r.unset(),e[n]=null}function sd(e,t){if(t){var n=Tl(t);n.nextStyle=Os(Os({},n.nextStyle),e)}return{style:e,cssText:Hi(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 ld(e,t,n){var r=t.afterTransform||t.transform;return Os(Os({},sd(Os(Os(Os({},e.style),t.style),{transform:r}),n)),{afterTransform:r,transform:e.transform})}function cd(e,t,n,r){var o=t.datas;o.datas||(o.datas={});var i=Os(Os({},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 ud(e,t,n){var r=t.datas,o="isDrag"in n?n.isDrag:t.isDrag;return r.datas||(r.datas={}),Os(Os({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 dd(e,t,n){e._emitter.on(t,n)}function pd(e,t,n,r,o){return e.triggerEvent(t,n,r,o)}function hd(e,t){return ca(e).getComputedStyle(e,t)}function fd(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 md(e,t){return e===t||null==e&&null==t}function gd(){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(!ki(o))return o}return e[n]}function vd(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 yd(e){return e.reduce((function(e,t){return e.concat(t)}),[])}function bd(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.sort((function(e,t){return jd(t)-jd(e)})),e[0]}function wd(e,t,n){return ka(ga(e,n),ya(t,n),n)}function xd(e,t){var n,r=e.is3d?4:3;return n=js(wd(e.rootMatrix,[t.distX,t.distY],r),2),t.distX=n[0],t.distY=n[1],t}function Sd(e,t,n,r){if(!n[0]&&!n[1])return t;var o=Vu(e,[mu(n[0]||1),0],r),i=Vu(e,[0,mu(n[1]||1)],r);return Sa(t,Vu(e,[n[0]/Uu(o),n[1]/Uu(i)],r))}function _d(e){return jd(e)<=il?0:e}function Cd(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?ku("view-control-rotation".concat(r)):""}}function Ed(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 ta(o,ku("direction"))&&(!e||ta(o,ku(e)))}}function kd(e,t){return e?da(e)?e:Ai(e)?t?document.querySelector(e):e:Ti(e)?e():ua(e)?e:"current"in e?e.current:e:null}function zd(e,t){return e?((n=e)&&zi(n)&&!da(n)&&(Pi(n)||"length"in n)?[].slice.call(e):[e]).reduce((function(e,n){return Ai(n)&&t?Rs(Rs([],js(e),!1),js([].slice.call(document.querySelectorAll(n))),!1):(Pi(n)?e.push(zd(n,t)):e.push(kd(n,t)),e)}),[]):[];var n}function Pd(e,t){var n=e.rootMatrix,r=e.is3d,o=ga(n,r?4:3);return r||(o=ba(o,3,4)),o[12]=0,o[13]=0,o[14]=0,function(e,t){var n=ka(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 Ad(e,t,n,r,o){var i=js(e,2),a=i[0],s=i[1],l=0,c=0;if(o&&a&&s){var u=Zi([0,0],t),d=Zi([0,0],r),p=Uu(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=jd(g-v)<Math.PI/2||jd(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=Uu([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 Dd(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 jd(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(Di(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=Uu([b,w]);l=h/x*b*y[0],c=h/x*w*y[1]}else{var S=Sl({datas:n,distX:u,distY:d});S=y.map((function(e,t){return S[t]*e})),l=(o=js(Ad([a,s],S,i,e,t),2))[0],c=o[1]}return{distWidth:l,distHeight:c}}function Td(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=js(e.split(" "),2),r=n[0],o=n[1],i=Td(r||""),a=Td(o||""),s=Os(Os({},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 Id(e,t,n){var r=Td(e,!0),o=r.x,i=r.y;return[Ui(o,t)||0,Ui(i,n)||0]}function Md(e,t){return e.length===t.length&&e.every((function(e,n){var r=t[n],o=Pi(e),i=Pi(r);return o&&i?Md(e,r):!o&&!i&&e===r}))}function Nd(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 Od(e){return e>=0?1:-1}function jd(e){return Math.abs(e)}function Rd(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 Fd(e){return Di(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}}Fs("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=cd(e,t,{});r&&(p.targets=r);var h=pd(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=Os(Os({},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=cd(e,t,{});s&&(u.targets=s);var d="onPinch".concat(s?"Group":"");pd(e,d,u);var p=n.ables,h="drag".concat(s?"Group":"","Control");return p.forEach((function(n){n[h]&&n[h](e,Os(Os({},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=ud(e,t,{isDrag:r});i&&(l.targets=i),pd(e,s,l);var c=n.ables,u="drag".concat(i?"Group":"","ControlEnd");return c.forEach((function(n){n[u]&&n[u](e,Os(Os({},t),{isDrag:r,datas:a[n.name],inputEvent:o,isPinch:!0}))})),r}},pinchGroupStart:function(e,t){return this.pinchStart(e,Os(Os({},t),{targets:e.props.targets}))},pinchGroup:function(e,t){return this.pinch(e,Os(Os({},t),{targets:e.props.targets}))},pinchGroupEnd:function(e,t){return this.pinchEnd(e,Os(Os({},t),{targets:e.props.targets}))}});var Bd=Ed("scalable");tc("scalable"),Cd("scalable");function Ld(e,t){return e.map((function(e,n){return Ei(e,t[n],1,2)}))}function Vd(e,t,n){var r=Zi(e,t),o=Zi(e,n)-r;return o>=0?o:o+2*Math.PI}Cd("warpable");var Kd=ku("area-pieces"),$d=ku("area-piece"),Hd=ku("avoid"),Ud=ku("view-dragging");function qd(e){var t=e.areaElement;if(t){var n=e.state,r=n.width,o=n.height;ra(t,Hd),t.style.cssText+="left: 0px; top: 0px; width: ".concat(r,"px; height: ").concat(o,"px")}}function Wd(e){return e.createElement("div",{key:"area_pieces",className:Kd},e.createElement("div",{className:$d}),e.createElement("div",{className:$d}),e.createElement("div",{className:$d}),e.createElement("div",{className:$d}))}var Gd={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?ku("area","pass"):ku("area");if(i)return[t.createElement("div",{key:"area",ref:vi(e,"areaElement"),className:d}),Wd(t)];if(!r||!o)return[];var p=Fa([0,0],[l,0],[0,c],[l,c],u[0],u[1],u[2],u[3]),h=p.length?Fu(p,!0):"none";return[t.createElement("div",{key:"area",ref:vi(e,"areaElement"),className:d,style:{top:"0px",left:"0px",width:"".concat(l,"px"),height:"".concat(c,"px"),transformOrigin:"0 0",transform:h}}),Wd(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=$u(l),f=h.left,m=h.top,g=h.width,v=h.height,y=js(wd(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;")})),na(i,Hd),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,qd(e))},dragEnd:function(e,t){this.enableNativeEvent(e);var n=t.inputEvent,r=t.datas;if(!n)return!1;r.isDragArea||qd(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){qd(e),e.state.disableNativeEvent=!1},enableNativeEvent:function(e){var t=e.state;t.disableNativeEvent&&Ki((function(){t.disableNativeEvent=!1}))}};Fs("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=js(Id(i,m,g),2);n=Gu(c,o,_a(Vu(d,[v[0],v[1]],p?4:3),[h,f]))}else n=Gu(c,o,l);return[t.createElement("div",{className:ku("control","origin"),style:n,key:"beforeOrigin"})]}});var Yd={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"]};Fs("padding",{props:["padding"],render:function(e,t){var n=e.props;if(n.dragArea)return[];var r=Fd(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=js(e,2),o=r[0],i=r[1],a=Fa([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:ku("padding"),style:{transform:Fu(a,!0)}})}))}});var Zd={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(Ea(o,!0),")"),s=i&&"none"!==i?i:a;t.datas.startTransforms=function(e,t){var n=Oa(t?4:3);return e==="matrix".concat(t?"3d":"","(").concat(n.join(","),")")||"matrix(1,0,0,1,0,0)"===e}(s,r)?[]:Oi(s)},resetStyle:function(e){var t=e.datas;t.nextStyle={},t.nextTransforms=e.datas.startTransforms,t.nextTransformAppendedIndexes=[]},fillDragStartParams:function(e,t){return cd(e,t,{setTransform:function(e){t.datas.startTransforms=Pi(e)?e:Oi(e)},isPinch:!!t.isPinch})},fillDragParams:function(e,t){return cd(e,t,{isPinch:!!t.isPinch})},dragStart:function(e,t){this.setTransform(e,t),this.resetStyle(t),pd(e,"onBeforeRenderStart",this.fillDragStartParams(e,t))},drag:function(e,t){t.datas.startTransforms||this.setTransform(e,t),this.resetStyle(t),pd(e,"onBeforeRender",cd(e,t,{isPinch:!!t.isPinch}))},dragEnd:function(e,t){t.datas.startTransforms||(this.setTransform(e,t),this.resetStyle(t)),pd(e,"onBeforeRenderEnd",cd(e,t,{isPinch:!!t.isPinch,isDrag:t.isDrag}))},dragGroupStart:function(e,t){var n=this;this.dragStart(e,t);var r=Wl(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)}));pd(e,"onBeforeRenderGroupStart",cd(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=Wl(e,"beforeRenderable",t),o=e.moveables,i=r.map((function(e,t){var r=o[t];return n.resetStyle(e),n.fillDragParams(r,e)}));pd(e,"onBeforeRenderGroup",cd(e,t,{isPinch:!!t.isPinch,targets:e.props.targets,events:i}))},dragGroupEnd:function(e,t){this.dragEnd(e,t),pd(e,"onBeforeRenderGroupEnd",cd(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)}},Jd={name:"renderable",props:[],events:["renderStart","render","renderEnd","renderGroupStart","renderGroup","renderGroupEnd"],dragRelation:"weak",dragStart:function(e,t){pd(e,"onRenderStart",cd(e,t,{isPinch:!!t.isPinch}))},drag:function(e,t){pd(e,"onRender",this.fillDragParams(e,t))},dragAfter:function(e,t){return this.drag(e,t)},dragEnd:function(e,t){pd(e,"onRenderEnd",this.fillDragEndParams(e,t))},dragGroupStart:function(e,t){pd(e,"onRenderGroupStart",cd(e,t,{isPinch:!!t.isPinch,targets:e.props.targets}))},dragGroup:function(e,t){var n=this,r=Wl(e,"beforeRenderable",t),o=e.moveables,i=r.map((function(e,t){var r=o[t];return n.fillDragParams(r,e)}));pd(e,"onRenderGroup",cd(e,t,Os(Os({isPinch:!!t.isPinch,targets:e.props.targets,transform:Ml(t),transformObject:{}},sd(Nl(t))),{events:i})))},dragGroupEnd:function(e,t){var n=this,r=Wl(e,"beforeRenderable",t),o=e.moveables,i=r.map((function(e,t){var r=o[t];return n.fillDragEndParams(r,e)}));pd(e,"onRenderGroupEnd",cd(e,t,Os({isPinch:!!t.isPinch,isDrag:t.isDrag,targets:e.props.targets,events:i,transformObject:{},transform:Ml(t)},sd(Nl(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 Ka(Il(t)||[]).forEach((function(e){n[e.name]=e.functionValue})),cd(e,t,Os({isPinch:!!t.isPinch,transformObject:n,transform:Ml(t)},sd(Nl(t))))},fillDragEndParams:function(e,t){var n={};return Ka(Il(t)||[]).forEach((function(e){n[e.name]=e.functionValue})),cd(e,t,Os({isPinch:!!t.isPinch,isDrag:t.isDrag,transformObject:n,transform:Ml(t)},sd(Nl(t))))}};function Xd(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=Rs([],js(t),!1);if(d){var f=i.requestAble;h.some((function(e){return e.name===f}))||h.push.apply(h,Rs([],js(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,Os(Os({},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)})),_(Zd,"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||xd(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||_(Jd,"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||zu)((function(){e.updateRect(l?o:"",!0,!1),e.forceUpdate()}));return s||l||c||!E||a||Xd(e,t,n,r,o+"After",i),!0}function Qd(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)||ta(i,"moveable-area")||ta(i,"moveable-padding")||ta(i,"moveable-edgeDraggable"))}}function ep(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=Qd(e);return np(e,o,"targetAbles",n,{dragStart:c,pinchStart:c})}function tp(e,t){var n=e.controlBox,r=[];r.push(n);var o=Qd(e,!0),i=function(e,t){return void 0===t&&(t=e.inputEvent.target),t===n||!o(e,t)};return np(e,r,"controlAbles",t,{dragStart:i,pinchStart:i})}function np(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:kd(a.dragContainer,!0)||ca(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 ks(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=Rs([],js(e[n]),!1);Xd(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 rp=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 op(e,t,n,r){var o;void 0===n&&(n=t);var i=Vl(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(Hl){var n=Vi(Hl,(function(n){return n[0][0]==e&&n[0][1]==t}));if(n)return n[1]}var r=Vl(e,t,!0);return Hl&&Hl.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,_=Oa(w),C=Oa(w),E=Oa(w),k=Oa(w),z=a.length,P=m.map((function(e){return Os(Os({},e),{matrix:e.matrix?Rs([],js(e.matrix),!1):void 0})})).reverse();a.reverse(),!s&&b&&(S=ba(S,3,4),ju(a)),!g&&b&&ju(P),P.forEach((function(e){C=xa(C,e.matrix,w)}));var A=n||la(e),D=(null===(o=P[0])||void 0===o?void 0:o.target)||Mu(A,A,!0).offsetParent,T=P.slice(1).reduce((function(e,t){return xa(e,t.matrix,w)}),Oa(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=Zu(a),u=c.offsetWidth,d=c.offsetHeight,p=n.getBoundingClientRect(),h=[0,0];n===la(n)&&(h=Ou(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=wa(r,o,l),w=Hu(b,u,d,r),x=w.left,S=w.top,_=w.width,C=w.height,E=Vu(b,s,r),k=_a(E,[x,S]),z=[m+k[0]*v/_,g+k[1]*y/C],P=[0,0],A=0;++A<10;){var D=ga(o,r);i=js(_a(Vu(D,z,r),Vu(D,E,r)),2),P[0]=i[0],P[1]=i[1];var T=Hu(wa(r,o,Ra(P,r),l),u,d,r),I=T.left-m,M=T.top-g;if(jd(I)<2&&jd(M)<2)break;z[0]-=I,z[1]-=M}return P.map((function(e){return Math.round(e)}))}(e,a[t+1],D,w,xa(T,_,w));e.matrix=Ra(n,w)}_=xa(_,e.matrix,w)}));var I=!x&&s;S||(S=Oa(I?4:3));var M=Fu(x&&16===S.length?ba(S,4,3):S,I),N=C;return C=ma(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 ip(e,t,n,r){void 0===n&&(n=t);var o=0,i=0,a=0,s={},l=Zu(e);if(e&&(o=l.offsetWidth,i=l.offsetHeight),e){var c=op(e,t,n,r),u=ml(c.allMatrix,c.transformOrigin,o,i);s=Os(Os({},c),u);var d=ml(c.allMatrix,[50,50],100,100);a=Ju([d.pos1,d.pos2],d.direction)}var p=r?4:3;return Os(Os(Os({hasZoom:!1,width:o,height:i,rotation:a},l),{originalRootMatrix:Oa(p),rootMatrix:Oa(p),beforeMatrix:Oa(p),offsetMatrix:Oa(p),allMatrix:Oa(p),targetMatrix:Oa(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 ap(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=ip(t,n,o,!0);if(t){var m=ql(t);i.forEach((function(e){h[e]=m(e)}));var g=f.is3d?4:3,v=ml(f.offsetMatrix,Sa(f.transformOrigin,va(f.targetMatrix,g)),f.width,f.height);a=v.direction,s=Sa(v.origin,[v.left-f.left,v.top-f.top]),d=ed(f.offsetRootContainer);var y=Mu(r,r,!0).offsetParent||f.offsetRootContainer;if(f.hasZoom){var b=ml(xa(f.originalRootMatrix,f.allMatrix),f.transformOrigin,f.width,f.height),w=ml(f.originalRootMatrix,Tu(ql(y)("transformOrigin")).map((function(e){return parseFloat(e)})),y.offsetWidth,y.offsetHeight);if(l=Qu(b,d),u=Qu(w,d,y,!0),e){var x=b.left,S=b.top;c=Qu({left:x,top:S,bottom:S,right:S},d)}}else{l=ed(t),u=function(e){var t=null==$l?void 0:$l.get(e);if(t)return t;var n=ed(e,!0);return $l&&$l.set(e,n),n}(y),e&&(c=ed(e));var _=u.left,C=u.top,E=u.clientLeft,k=u.clientTop,z=[l.left-_,l.top-C];p=_a(wd(f.rootMatrix,z,4),[E+f.left,k+f.top])}}return Os({targetClientRect:l,containerClientRect:u,moveableClientRect:c,rootContainerClientRect:d,beforeDirection:a,beforeOrigin:s,originalBeforeOrigin:s,target:t,style:h,offsetDelta:p},f)}function sp(e){var t=e.pos1,n=e.pos2,r=e.pos3,o=e.pos4;if(!(t&&n&&r&&o))return null;var i=ls([t,n,r,o]),a=[i.minX,i.minY],s=_a(e.origin,a);return t=_a(t,a),n=_a(n,a),r=_a(r,a),o=_a(o,a),Os(Os({},e),{left:e.left,top:e.top,posDelta:a,pos1:t,pos2:n,pos3:r,pos4:o,origin:s,beforeOrigin:s,isPersisted:!0})}var lp=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state=Os({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]},ap(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 rs,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():($i(t._observerId),t._observerId=Ki((function(){t.isDragging()||t.updateRect()})))}},t._onPreventClick=function(e){e.stopPropagation(),e.preventDefault()},t}return Ns(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=js(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,Os({cspNonce:a,ref:vi(this,"controlBox"),className:"".concat(ku("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([]),ad(this,!1),ad(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 Vi(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(el)>-1},t.prototype.dragStart=function(e,t){void 0===t&&(t=e.target);var n=this.targetGesto,r=this.controlGesto;return n&&Qd(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(da(e)){var c=e.getBoundingClientRect();t={left:c.left,top:c.top,width:c.width,height:c.height}}else t=Os({width:0,height:0},e);var u=t.left,d=t.top,p=t.width,h=t.height,f=ss([o,i,s,a],l),m=ms(f,[[u,d],[u+p,d],[u+p,d+h],[u,d+h]]),g=as(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&&cs([e,t],ss([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&&Ul(!0);var i=r.parentMoveable,a=this.state.target||r.target,s=this.getContainer(),l=i?i._rootContainer:this._rootContainer,c=ap(this.controlBox,a,s,s,l||s,this._getRequestStyles());if(!a&&this._hasFirstTarget&&r.persistData){var u=sp(r.persistData);for(var d in u)c[d]=u[d]}o&&Ul(),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=od(this.state),n=js(t,4),r=n[0],o=n[1],i=n[2],a=n[3],s=$u(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=Sa(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:Sa(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())&&id(this,!1),null==t||t.stop());e&&"control"!==e||(!1===(null==(t=this.controlGesto)?void 0:t.isIdle())&&id(this,!0),null==t||t.stop())},t.prototype.getRotation=function(){var e=this.state;return function(e,t,n){var r=Zi(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=Vi(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=Rs([],js(i[d]),!1),f={request:function(t){return Xd(r,h,["drag"],p,"",Os(Os({},c.request(t)),{requestAble:e,isRequest:!0}),u),f},requestEnd:function(){return Xd(r,h,["drag"],p,"End",Os(Os({},c.requestEnd()),{requestAble:e,isRequest:!0}),u),f}};return Xd(r,h,["drag"],p,"Start",Os(Os({},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=Fd(n||{}),g=m.left,v=m.top,y=m.bottom,b=m.right,w=a?4:3,x=wa(w,Ra((h?o:this.controlBox&&t.groupable?r:Sa(r,[d,p])).map((function(e){return-e})),w),i,Ra(o,w)),S=Sd(x,s,[-g,-v],w),_=Sd(x,l,[b,-v],w),C=Sd(x,c,[-g,y],w),E=Sd(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=[[Sd(x,s,[-g-k,-v],w),Sd(x,l,[b+k,-v],w)],[Sd(x,l,[b,-v-k],w),Sd(x,u,[b,y+k],w)],[Sd(x,u,[b+k,y],w),Sd(x,c,[-g-k,y],w)],[Sd(x,c,[-g,y+k],w),Sd(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=!md(i,t);if(s||!md(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]=Is(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=sp(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=fd(r,[o,i],n),l=fd(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=yd(fd(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 Rs(Rs([],js(e),!1),js(o),!1)}),Rs([],js(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))&&(ad(this,!1),this.updateState({gestos:{}})),t||ad(this,!0),n&&e&&!this.targetGesto&&(this.targetGesto=ep(this,n,"")),!this.controlGesto&&t&&(this.controlGesto=tp(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=kd(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 Ql(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=Hi(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=fd(a,[r]),i=o.length>0,s=n[r];i?(s||(s=new rp(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=kd(e,!0))},t.prototype._checkUpdateViewContainer=function(){var e=this.props.viewContainer;!this._viewContainer&&e&&(this._viewContainer=kd(e,!0)),this._viewContainer&&this._changeAbleViewClassNames(Rs(Rs([],js(this._getAbleViewClassNames()),!1),[this.isDragging()?Ud:""],!1))},t.prototype._changeAbleViewClassNames=function(e){var t=this._viewContainer,n=vd(e.filter(Boolean),(function(e){return e})).map((function(e){return js(e,1)[0]})),r=this._viewClassNames,o=Ga(r,n),i=o.removed,a=o.added;i.forEach((function(e){ra(t,r[e])})),a.forEach((function(e){na(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(ku("".concat(l).concat(e,"-dragging")))),c.trim()})).filter(Boolean).join(" ")},t.prototype._updateResizeObserver=function(e){var t,n=this.props,r=n.target,o=ca(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=ca(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:zu,firstRenderState:null,persistData:null,viewContainer:null,requestStyles:[],useAccuratePosition:!1},t}(l.PureComponent),cp={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=Nd(e,"parentPosition",[a,s],(function(e){return e.join(",")})),h=Nd(e,"requestStyles",e.getRequestChildStyles(),(function(e){return e.join(",")}));return e.moveables=e.moveables.slice(0,o.length),Rs(Rs([],js(o.map((function(n,o){return t.createElement(lp,{key:"moveable"+o,ref:yi(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),js(yd(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=js(e,2),a=i[0],s=i[1];return Ql(t,"",_a(r[a],p),_a(r[s],p),c,"group-rect-".concat(n,"-").concat(o))}))})))),!1)}};Fs("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);pd(e,"onClick",cd(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=Li(o,(function(e){return e.contains(r)})))>-1),pd(e,"onClickGroup",cd(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 up(e){var t=e.originalDatas.draggable;return t||(e.originalDatas.draggable={},t=e.originalDatas.draggable),Os(Os({},e),{datas:t})}Fs("edgeDraggable",{css:[".edge.edgeDraggable.line {\ncursor: move;\n}"],render:function(e,t){var n=e.props,r=n.edgeDraggable;return r?ec(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&&ta(o,ku("direction"))&&ta(o,ku("edge"))&&ta(o,ku("edgeDraggable")))},dragStart:function(e,t){return qc.dragStart(e,up(t))},drag:function(e,t){return qc.drag(e,up(t))},dragEnd:function(e,t){return qc.dragEnd(e,up(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&&ta(o,ku("direction"))&&ta(o,ku("line")))},dragGroupStart:function(e,t){return qc.dragGroupStart(e,up(t))},dragGroup:function(e,t){return qc.dragGroup(e,up(t))},dragGroupEnd:function(e,t){return qc.dragGroupEnd(e,up(t))},unset:function(e){return qc.unset(e)}});var dp={name:"individualGroupable",props:["individualGroupable","individualGroupableProps"],events:[]};function pp(e,t){var n=js(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 hp(e,t){var n=js(e,2),r=n[0],o=n[1];return-r*t[0]-o*t[1]}function fp(e,t){return Math.max.apply(Math,Rs([],js(e.map((function(e){var n=js(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 mp(e,t){return Math.min.apply(Math,Rs([],js(e.map((function(e){var n=js(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 gp(e,t){var n=t.map((function(t){if(Pi(t)){var n=gp(e,t),r=n.length;return r>1?n:1===r?n[0]:null}var o=Vi(e,(function(e){return e.manager.props.target===t}));return o?(o.finded=!0,o.manager):null})).filter(Boolean);return 1===n.length&&Pi(n[0])?n[0]:n}var vp=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.differ=new es,t.moveables=[],t.transformOrigin="50% 50%",t.renderGroupRects=[],t._targetGroups=[],t._hasFirstTargets=!1,t}return Ns(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){Ul(!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=gp(l,c),d=i.useDefaultGroupRotate;u.push.apply(u,Rs([],js(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(Pi(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:od(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=Qi(t,il);if(d%90){var p=d/180*Math.PI,h=Math.tan(p),f=-1/h,m=[sl,ll],g=[[0,0],[0,0]],v=[sl,ll],y=[[0,0],[0,0]];e.forEach((function(e){e.forEach((function(e){var t=pp([-h,1,0],e),n=pp([-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=js(g,2),w=b[0],x=b[1],S=js(y,2),_=S[0],C=S[1],E=[-h,1,hp([-h,1],w)],k=[-h,1,hp([-h,1],x)],z=[-f,1,hp([-f,1],_)],P=[-f,1,hp([-f,1],C)];n=js([[E,z],[E,P],[k,z],[k,P]].map((function(e){var t=js(e,2);return ds(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=mp(e,0),D=mp(e,1),T=fp(e,0),I=fp(e,1);i=[A,D],a=[T,D],s=[A,I],l=[T,I],c=T-A,u=I-D,d%180&&(i=(r=js([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=js([l,s,a,i],4))[0],a=o[1],s=o[2],l=o[3]);var M=ls([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=Id(S,E,k),b=this.rotation/180*Math.PI,w=v.map((function(e){return _a(e,y)})),x=w.map((function(e){return Ta(e,b)})),{prev:w,next:x,result:x.map((function(e){return Sa(e,y)}))}),D=ls(A.result),T=D.minX,I=D.minY,M=" rotate(".concat(_,"deg)")+" scale(".concat(Od(C[0]),", ").concat(Od(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(),j=ap(this.controlBox,s,this.controlBox,this.getContainer(),this._rootContainer||O,[]),R=[j.left,j.top],F=js(od(j),4),B=F[0],L=F[1],V=F[2],K=F[3],$=ls([B,L,V,K]),H=[$.minX,$.minY],U=Od(C[0]*C[1]);j.pos1=_a(B,H),j.pos2=_a(L,H),j.pos3=_a(V,H),j.pos4=_a(K,H),j.left=z-j.left+H[0],j.top=P-j.top+H[1],j.origin=_a(Sa(R,j.origin),H),j.beforeOrigin=_a(Sa(R,j.beforeOrigin),H),j.originalBeforeOrigin=Sa(R,j.originalBeforeOrigin),j.transformOrigin=_a(Sa(R,j.transformOrigin),H),s.style.transform="translate(".concat(-T-H[0],"px, ").concat(-I-H[1],"px)")+M,Ul(),this.updateState(Os(Os({},j),{posDelta:H,direction:U,beforeDirection:U}),n)}},t.prototype.getRect=function(){return Os(Os({},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 Rs(Rs([],js(e),!1),js(o),!1)}),[]);return e},t.prototype.getMoveables=function(){return Rs([],js(this.moveables),!1)},t.prototype.updateAbles=function(){e.prototype.updateAbles.call(this,Rs(Rs([],js(this.props.ables),!1),[cp],!1),"Group")},t.prototype._updateTargets=function(){e.prototype._updateTargets.call(this),this._originalDragTarget=this.props.dragTarget||this.areaElement,this._dragTarget=kd(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)&&(ad(this,!1),ad(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=ep(this,this._dragTarget,"Group")),this.controlGesto||(this.controlGesto=tp(this,"GroupControl")));var u=!md(e.container,t.container);u&&(e.container=t.container),(u||c||this.transformOrigin!==(t.defaultGroupOrigin||"50% 50%")||s.length||o.length&&!Md(this._targetGroups,t.targetGroups||[]))&&(this.updateRect(),this._hasFirstTargets=!0),this._isPropTargetChanged=!!c},t.prototype._updateObserver=function(){},t.defaultProps=Os(Os({},lp.defaultProps),{transformOrigin:["50%","50%"],groupable:!0,dragArea:!0,keepRatio:!0,targets:[],defaultGroupRotate:0,defaultGroupOrigin:"50% 50%"}),t}(lp),yp=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.moveables=[],t}return Ns(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:vi(this,"controlBox"),className:ku("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(lp,Os({key:"moveable"+r,ref:yi(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),Ul(!0),this.moveables.forEach((function(r){r.updateRect(e,t,n)})),Ul()},t.prototype.getRect=function(){return Os(Os({},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,Os(Os({},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=Vi(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 Rs([],js(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}(lp);function bp(e,t){var n=[];return e.forEach((function(e){e&&(Ai(e)?t[e]&&n.push.apply(n,Rs([],js(t[e]),!1)):Pi(e)?n.push.apply(n,Rs([],js(bp(e,t)),!1)):n.push(e))})),n}function wp(e,t){var n=[];return e.forEach((function(e){e&&(Ai(e)?t[e]&&n.push.apply(n,Rs([],js(t[e]),!1)):Pi(e)?n.push(wp(e,t)):n.push(e))})),n}function xp(e,t){return e.length!==t.length||e.some((function(e,n){var r=t[n];return!(!e&&!r)&&(e!=r&&(!Pi(e)||!Pi(r)||xp(e,r)))}))}var Sp=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.refTargets=[],t.selectorMap={},t._differ=new es,t._elementTargets=[],t._tmpRefTargets=[],t._tmpSelectorMap={},t._onChangeTargets=null,t}var n,r;return Ns(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=Hi(e).join("\n");this.defaultStyled=Is("div",function(e,t){return t.replace(/([^}{]*){/gm,(function(t,n){return n.replace(/\.([^{,\s\d.]+)/g,"."+e+"$1")+"{"}))}(el,nl+t))},t.getTotalAbles=function(){return Rs([Yd,cp,dp,Gd],js(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=js(this._updateRefs(!0),2),s=a[0],c=a[1],u=bp(s,c),d=u.length>1,p=Rs(Rs([],js(t.getTotalAbles()),!1),js(r||[]),!1),h=Os(Os(Os({},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(yp,Os({key:"individual-group",ref:vi(this,"moveable")},h,{target:null,targets:u}));if(d){var v=wp(s,c);if(m&&!m.props.groupable&&!m.props.individualGroupable){var y=m.props.target;y&&u.indexOf(y)>-1&&(f=Os({},m.state))}return l.createElement(vp,Os({key:"group",ref:vi(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=Vi(m.moveables||[],(function(e){return e.props.target===b}));w&&(f=Os({},w.state))}return l.createElement(lp,Os({key:"single",ref:vi(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=zd(this.props.target||this.props.targets),r="undefined"!=typeof document,o=xp(t,n),i=this.selectorMap,a={};return this.refTargets.forEach((function e(t){Ai(t)?i[t]?a[t]=i[t]:r&&(o=!0,a[t]=[].slice.call(document.querySelectorAll(t))):Pi(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=js(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=pl,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 _p(e,t){const{"aria-label":n,"aria-labelledby":r,orientation:o="horizontal"}=e;let[i,a]=(0,l.useState)(!1);(0,Po.Nf)((()=>{var e;a(!(!t.current||!(null===(e=t.current.parentElement)||void 0===e?void 0:e.closest('[role="toolbar"]'))))}));const{direction:s}=(0,Ao.Ym)(),c="rtl"===s&&"horizontal"===o;let u=(0,_r.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 Cp=n(2543),Ep=n(69101),kp=n(59184),zp=Object.defineProperty,Pp=Object.defineProperties,Ap=Object.getOwnPropertyDescriptors,Dp=Object.getOwnPropertySymbols,Tp=Object.prototype.hasOwnProperty,Ip=Object.prototype.propertyIsEnumerable,Mp=(e,t,n)=>t in e?zp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Np=(e,t)=>{for(var n in t||(t={}))Tp.call(t,n)&&Mp(e,n,t[n]);if(Dp)for(var n of Dp(t))Ip.call(t,n)&&Mp(e,n,t[n]);return e},Op=(e,t)=>{var n={};for(var r in e)Tp.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Dp)for(var r of Dp(e))t.indexOf(r)<0&&Ip.call(e,r)&&(n[r]=e[r]);return n},jp=()=>(0,Ep.ie)(),Rp=(e,t,n)=>Ep.KE.pointRef(e,t,n),Fp=e=>Ep.Hg.isElement(e),Bp=(e,t)=>Fp(t)&&Ep.KE.isBlock(e,t);var Lp=(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)),Vp=(e,t={})=>{const{block:n,match:r}=t;return((e,t)=>Pp(e,Ap(t)))(Np({},t),{match:r||n?(t,o)=>Lp(t,o,r)&&(!n||Bp(e,t)):void 0})},Kp=(e,t)=>Ep.KE.above(e,Vp(e,t)),$p=(e,t,n={})=>{const{unhang:r=!0,voids:o}=n;return Ep.Q6.isRange(t)&&r?Ep.KE.unhangRange(e,t,{voids:o}):t},Hp=(e,t)=>($p(e,null==t?void 0:t.at,t),Ep.KE.nodes(e,Vp(e,t))),Up=(e,t)=>Ep.KE.previous(e,t),qp=(e,t)=>{let n=!1;return Ep.KE.withoutNormalizing(e,(()=>{n=!!t()})),n},Wp=e=>Ep.EY.isText(e),Gp=(e,t)=>Ep.gB.removeNodes(e,t),Yp=(e,t)=>{Ep.gB.select(e,t)},Zp=(e,t)=>Ep.KE.end(e,t),Jp=(e,t,n)=>Ep.KE.before(e,t,n),Xp=(e,t)=>Ep.KE.start(e,t),Qp=(e,t,n)=>{if(!t)return"";try{return Ep.KE.string(e,t,n)}catch(e){return""}},eh=e=>Ep.KE.marks(e),th=(e,t,n)=>Ep.KE.point(e,t,n),nh=(e,t,n)=>Ep.KE.range(e,t,n),rh=(e,t,n)=>!!t&&Ep.KE.isEnd(e,t,n),oh=(e,t,n)=>!!t&&Ep.KE.isStart(e,t,n),ih=(e,t)=>Ep.KE.normalize(e,t),ah=(e,t)=>Ep.KE.removeMark(e,t),sh=e=>Ep.bP.string(e),lh=e=>Ep.Hg.isAncestor(e),ch=e=>!!e&&Ep.Q6.isCollapsed(e),uh=e=>!!e&&Ep.Q6.isExpanded(e),dh=e=>{Ep.gB.deselect(e)};function ph(e){return Array.isArray(e)?e:[e]}var hh=(e,{allow:t,exclude:n,filter:r,level:o,maxLevel:i}={})=>{if(!e)return!1;const[a,s]=e;if(o){if(!ph(o).includes(s.length))return!1}if(i&&s.length>i)return!1;if(r&&!r(e))return!1;if(t){const e=ph(t);if(e.length>0&&!e.includes(a.type))return!1}if(n){const e=ph(n);if(e.length>0&&e.includes(a.type))return!1}return!0},fh=(e,t,n={})=>{var r=n,{nextBlock:o,removeEmpty:i}=r,a=Op(r,["nextBlock","removeEmpty"]);(0,Ep.rx)(e,(()=>{if(i){const t=Kp(e,{at:a.at});if(t){const n=!0===i?{allow:["p"]}:i,{filter:r}=n;n.filter=([t,n])=>{if(sh(t))return!1;return!t.children.some((t=>((e,t)=>Fp(t)&&Ep.KE.isInline(e,t))(e,t)))&&(!r||r([t,n]))},hh(t,n)&&((0,Ep.if)(e,{at:t[1]}),o=!1)}}if(o){const{at:t=e.selection}=a;if(t){const n=Zp(e,t),r=Kp(e,{at:n,block:!0});r&&(a.at=Ep.wA.next(r[1]))}}Ep.gB.insertNodes(e,t,a)}))},mh=(e,t)=>{Ep.gB.move(e,t)},gh=(e,t,n)=>Ep.gB.setNodes(e,t,n),vh=(e,t)=>Ep.gB.splitNodes(e,t),yh=(e,t={})=>{try{const n=Hp(e,Np({at:e.selection||[]},Vp(e,t)));for(const[e,t]of n)return[e,t]}catch(e){return}},bh=(e,t)=>!!yh(e,t),wh=(e,t,n)=>gh(e,t,n),xh=n(88055),Sh=n.n(xh),_h=n(74354),Ch=n.n(_h),Eh=n(99084),kh=n.n(Eh),zh=n(55378),Ph=n.n(zh),Ah=(n(68090),"undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent)),Dh=(e,t)=>e&&e.nodeName!==t?Dh(e.parentElement,t):e,Th=(e,...t)=>()=>{null==e||e(...t)},Ih=/^(?:\w+:)?\/\/(\S+)$/,Mh=/mailto:([^?\\]+)/,Nh=/^localhost[\d:?]*(?:[^\d:?]\S*)?$/,Oh=/^[^\s.]+\.\S{2,}$/,jh=(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},Rh=e=>{return!((e=>void 0===e)(t=e)||(e=>null===e)(t));var t},Fh=Object.defineProperty,Bh=Object.defineProperties,Lh=Object.getOwnPropertyDescriptors,Vh=Object.getOwnPropertySymbols,Kh=Object.prototype.hasOwnProperty,$h=Object.prototype.propertyIsEnumerable,Hh=(e,t,n)=>t in e?Fh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Uh=(e,t)=>{for(var n in t||(t={}))Kh.call(t,n)&&Hh(e,n,t[n]);if(Vh)for(var n of Vh(t))$h.call(t,n)&&Hh(e,n,t[n]);return e},qh=(e,t)=>Bh(e,Lh(t)),Wh=(e,t)=>{var n={};for(var r in e)Kh.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Vh)for(var r of Vh(e))t.indexOf(r)<0&&$h.call(e,r)&&(n[r]=e[r]);return n},Gh=(e,t={})=>Kp(e,qh(Uh({},t),{block:!0})),Yh=(e,t)=>{if(!e)return;const n=eh(e);return null==n?void 0:n[t]},Zh=(e,t)=>{const n=((e,t)=>Ep.KE.next(e,t))(e,{at:t});if(n)return Xp(e,n[1])},Jh=(e,t={})=>{var n=t,{at:r}=n,o=Wh(n,["at"]);if(r||(r=e.selection),!r)return;const[i,a]=Ep.Q6.edges(r),s=Gh(e,Uh({at:i},o)),l=Gh(e,Uh({at:a},o));return s||l?!s||!l||!Ep.wA.equals(s[1],l[1]):void 0},Xh=(e,t,n)=>{const r=((e,t,n)=>{var r;if(!n||!n.match&&!n.matchString)return Jp(e,t,n);const o=!n.unit||"offset"===n.unit,i=n.matchString?kh()(n.matchString):[""],a=null!=(r=n.matchByRegex)&&r;let s;return i.some((r=>{var i,l;let c=t,u=th(e,t,{edge:"end"});const d=r.length+1,p=Array.from({length:d});let h=0;for(;;){const f=Jp(e,c,n);if(!f)return;if(Jh(e,{at:{anchor:f,focus:u}}))return;const m=Qp(e,{anchor:f,focus:u});let g=m;if(o&&d&&(p.unshift({point:f,text:m}),p.pop(),g=Ph()(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:th(e,t,{edge:"end"})}},Qh=(e,t={})=>{var n;const r=null==(n=Gh(e,t))?void 0:n[1];if(!r)return;const o=Xp(e,r),i=((e,{at:t=e.selection,focus:n}={})=>{let r;return Ep.Q6.isRange(t)&&(r=n?t.focus:t.anchor),Ep.bR.isPoint(t)&&(r=t),Ep.wA.isPath(t)&&(r={offset:0,path:t}),r})(e,t);return i?{anchor:o,focus:i}:void 0},ef=(e,t)=>Rh(Yh(e,t)),tf=(e,t,n)=>{fh(e,t,n)},nf=(e,t)=>{var n,r=t,{at:o,key:i,shouldChange:a=!0}=r,s=Wh(r,["at","key","shouldChange"]);const l=null!=o?o:e.selection;if(i=kh()(i),l)if(Ep.Q6.isRange(l)&&Ep.Q6.isExpanded(l))((e,t,n)=>{Ep.gB.unsetNodes(e,t,n)})(e,i,Uh({at:l,match:Wp,split:!0},s));else if(e.selection){const t=null!=(n=eh(e))?n:{};i.forEach((e=>{delete t[e]})),e.marks=t,a&&e.onChange()}},rf=(e,t,n)=>{qp(e,(()=>{for(const[,r]of((e,t,n)=>Ep.bP.children(e,t,n))(e,t,{reverse:!0}))Gp(e,qh(Uh({},n),{at:r}))}))},of=(e,{at:t,insertOptions:n,nodes:r,removeOptions:o})=>{qp(e,(()=>{rf(e,t,o),fh(e,r,qh(Uh({},n),{at:t.concat([0])}))}))},af=(e,{clear:t,key:n})=>{e.selection&&qp(e,(()=>{if(ef(e,n))e.removeMark(n);else{if(t){const n=kh()(t);nf(e,{key:n})}e.addMark(n,!0)}}))},sf=n(38970),lf=n.n(sf),cf=n(55364),uf=n.n(cf),df=n(35880),pf=n.n(df);function hf(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=hf(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function ff(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=hf(e))&&(r&&(r+=" "),r+=t);return r}var mf=n(44383),gf=n.n(mf),vf=n(2404),yf=n.n(vf),bf=n(57746);var wf=n(73575);n(69982);Symbol(),Symbol(),"undefined"==typeof window||/ServerSideRendering/.test(window.navigator&&window.navigator.userAgent);const xf=Symbol(),Sf=Symbol(),_f="w";let Cf=(e,t)=>new Proxy(e,t);const Ef=Object.getPrototypeOf,kf=new WeakMap,zf=e=>e&&(kf.has(e)?kf.get(e):Ef(e)===Object.prototype||Ef(e)===Array.prototype),Pf=e=>"object"==typeof e&&null!==e,Af=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(Ef(e),t)},Df=e=>e[Sf]||e,Tf=(e,t,n,r)=>{if(!zf(e))return e;let o=r&&r.get(e);if(!o){const t=Df(e);o=(e=>Object.values(Object.getOwnPropertyDescriptors(e)).some((e=>!e.configurable&&!e.writable)))(t)?[t,Af(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.a.get(e);if(r||(r={},n.a.set(e,r)),t===_f)r.w=!0;else{let e=r[t];e||(e=new Set,r[t]=e),e.add(o)}}},i={get:(t,r)=>r===Sf?e:(o("k",r),Tf(Reflect.get(t,r),n.a,n.c,n.t)),has:(t,i)=>i===xf?(r=!0,n.a.delete(e),!0):(o("h",i),Reflect.has(t,i)),getOwnPropertyDescriptor:(e,t)=>(o("o",t),Reflect.getOwnPropertyDescriptor(e,t)),ownKeys:e=>(o(_f),Reflect.ownKeys(e))};return t&&(i.set=i.deleteProperty=()=>!1),[i,n]})(i,!!a),s[1].p=Cf(a||i,s[0]),n&&n.set(i,s)),s[1].a=t,s[1].c=n,s[1].t=r,s[1].p},If=(e,t,n,r,o=Object.is)=>{if(o(e,t))return!1;if(!Pf(e)||!Pf(t))return!0;const i=n.get(Df(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.w){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=If(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})}},Mf=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&&If(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&&!If(o.current,e,r.current,new WeakMap)?o.current:(o.current=e,e))),[]),s=e(a);const c=(0,l.useMemo)((()=>new WeakMap),[]);return Tf(s,n,c)};const Nf=new Map,Of=e=>{const t=Nf.get(e);return t?Object.fromEntries(Object.entries(t.stores).map((([e,t])=>[e,t.getState()]))):{}},jf=(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=Nf.get(n.name);if(r)return{type:"tracked",store:e,...r};const o={connection:t.connect(n),stores:{}};return Nf.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}`},{...Of(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"):Rf(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(Of(l.name));case"COMMIT":return void 0===s?void(null==u||u.init(o.getState())):null==u?void 0:u.init(Of(l.name));case"ROLLBACK":return Rf(e.state,(e=>{if(void 0===s)return h(e),void(null==u||u.init(o.getState()));h(e[s]),null==u||u.init(Of(l.name))}));case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return Rf(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},Rf=(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 Ff(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 Bf=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then:e=>Bf(e)(n),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>Bf(t)(e)}}},Lf=(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=Bf(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 Bf(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:Ff((()=>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 Bf(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 Vf=n(69242);const Kf=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},$f=e=>e?Kf(e):Kf;const{useDebugValue:Hf}=l,{useSyncExternalStoreWithSelector:Uf}=Vf,qf=e=>e;function Wf(e,t=qf,n){const r=Uf(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return Hf(r),r}n(35798);var Gf=Object.defineProperty,Yf=Object.defineProperties,Zf=Object.getOwnPropertyDescriptors,Jf=Object.getOwnPropertySymbols,Xf=Object.prototype.hasOwnProperty,Qf=Object.prototype.propertyIsEnumerable,em=(e,t,n)=>t in e?Gf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tm=(e,t)=>{for(var n in t||(t={}))Xf.call(t,n)&&em(e,n,t[n]);if(Jf)for(var n of Jf(t))Qf.call(t,n)&&em(e,n,t[n]);return e},nm=(e,t)=>Yf(e,Zf(t)),rm=e=>(t,n,r)=>{const o=(e,n)=>t((0,wf.jM)(e),!0,n);return r.setState=o,e(o,n,r)};var om=e=>nm(tm({},e),{extendSelectors:t=>om(((e,t)=>{const n=tm({},t.use),r=tm({},t.useTracked),o=tm({},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)})),nm(tm({},t),{get:o,use:n,useTracked:r})})(t,e)),extendActions:t=>om(((e,t)=>{const n=e(t.set,t.get,t);return nm(tm({},t),{set:tm(tm({},t.set),n)})})(t,e))}),im=e=>(t,n={})=>{var r,o;const{middlewares:i=[],devtools:a,persist:s,immer:l}=n;(0,wf.ht)(null!=(r=null==l?void 0:l.enabledAutoFreeze)&&r),(null==l?void 0:l.enableMapSet)&&(0,wf.IP)();const c=[rm,...i];if(null==s?void 0:s.enabled){const t=nm(tm({},s),{name:null!=(o=s.name)?o:e});c.push((e=>Lf(e,t)))}(null==a?void 0:a.enabled)&&c.push((t=>jf(t,nm(tm({},a),{name:e})))),c.push($f);const u=function(e,...t){return t.reduce(((e,t)=>t(e)),e)}((()=>t),...c);const d=(e,t)=>Wf(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=Mf(d),g=((e,t)=>{const n={};return Object.keys(t.getState()).forEach((t=>{n[t]=()=>e()[t]})),n})(m,u),v={get:tm({state:u.getState},f),name:e,set:tm({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 om(v)},am=n(20265),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=(e,t={},n=!1)=>{var r;if(t[e.key]){const r=t[e.key],{plugins:o,then:i}=r,a=gm(r,["plugins","then"]);e=Ch()(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=>vm(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=fm({key:e.key},o(n,r));return Ch()(vm(i,t),i)},e._thenReplaced++)):(null==(r=t[e.key])?void 0:r.then)&&(e.then=t[e.key].then),e},ym="p",bm=(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}},wm=(e,t)=>{var n,r;return null!=(r=null!=(n=bm(e,t).type)?n:t)?r:""},xm=(e,t,n)=>{var r;const{activeType:o,inactiveType:i=wm(e,ym)}=t,a=null!=(r=null==n?void 0:n.at)?r:e.selection;if(!o||!a)return;const s=bh(e,mm(fm({},n),{match:{type:o}}));s&&o===i||wh(e,{type:s?i:o},{at:a})},Sm=e=>(t,n={})=>(n[e.key]=t,vm(fm({},e),n)),_m="deserializeAst",Cm=(Sm({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 kh()(n)}}},key:_m}),(e,t)=>{var n;const{selection:r}=e;if(!r)return!1;const o=null==(n=((e,t={})=>Kp(e,mm(fm({},t),{block:!0})))(e,t))?void 0:n[1];return!!o&&(oh(e,r.focus,o)||uh(e.selection)&&oh(e,r.anchor,o))}),Em="editorProtocol",km=(Sm({key:Em,withOverrides:e=>{const{deleteBackward:t,deleteForward:n,deleteFragment:r}=e,o=()=>{Cm(e)&&(e=>{const t=eh(e);t&&Object.keys(t).forEach((t=>{ah(e,t)}))})(e)};return e.deleteBackward=e=>{t(e),o()},e.deleteForward=e=>{n(e),o()},e.deleteFragment=e=>{r(e),o()},e}}),Sm({key:"history",withOverrides:e=>(0,kp.$k)(e)}),"inline-void"),zm=(Sm({key:km,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]}),Pm="insertData",Am=(Sm({key:Pm,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=zm(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=gm(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=gm(r,["fragment"]);qp(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"),Dm=(Sm({key:Am,withOverrides:(e,{options:t})=>{const{apply:n}=e;return e.apply=r=>{qp(e,(()=>{if(n(r),t.maxLength){const n=Qp(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})=>{hh([t,n],r)&&e(t,o instanceof Function?o():o),lh(t)&&t.children.forEach(((t,i)=>{Dm({apply:e,node:t,path:n.concat([i]),query:r,source:o})}))}),Tm=(e,t)=>{var n;return null!=(n=bm(e,t).options)?n:{}},Im=(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=>Fp(e)?mm(fm({},e),{children:Im(e.children,t,n)}):e))),Mm=(e,{descendants:t})=>{const n=(e=>t=>Wp(t)||Fp(t)&&e.isInline(t))(e),r=wm(e,ym),o=(i=r,()=>({children:[],type:i}));var i;return Im(t,n,o)},Nm={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"},Om={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"},jm={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},Rm=e=>{const t=Nm[e],n=Om[e],r=jm[e],o=t&&(0,bf.Sn)(t),i=n&&(0,bf.Sn)(n),a=r&&(0,bf.Sn)(r);return e=>!!(null==o?void 0:o(e))||(!(!Ah||!(null==i?void 0:i(e)))||!(Ah||!(null==a?void 0:a(e))))},Fm=(Rm("bold"),Rm("compose"),Rm("deleteBackward"),Rm("deleteForward"),Rm("deleteLineBackward"),Rm("deleteLineForward"),Rm("deleteWordBackward"),Rm("deleteWordForward"),Rm("extendBackward"),Rm("extendForward"),Rm("extendLineBackward"),Rm("extendLineForward"),Rm("italic"),Rm("moveBackward"),Rm("moveForward"),Rm("moveLineBackward"),Rm("moveLineForward"),Rm("moveWordBackward"),Rm("moveWordForward"),Rm("redo"),Rm("insertSoftBreak"),Rm("splitBlock"),Rm("transposeCharacter"),Rm("undo"),"nodeFactory"),Bm=(Sm({key:Fm,withOverrides:e=>(e.blockFactory=t=>fm({children:[{text:""}],type:wm(e,ym)},t),e.childrenFactory=()=>[e.blockFactory()],e)}),"prevSelection"),Lm=(Sm({handlers:{onKeyDown:e=>t=>{t.persist(),e.currentKeyboardEvent=t}},key:Bm,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}}),im("event-editor")({blur:null,focus:null,last:null})),Vm=Lm.set,Km=Lm.get,$m=(Lm.use,"event-editor"),Hm=(Sm({handlers:{onBlur:e=>()=>{Km.focus()===e.id&&Vm.focus(null),Vm.blur(e.id),document.dispatchEvent(new CustomEvent("blur-editor-event",{detail:{id:e.id}}))},onFocus:e=>()=>{Vm.focus(e.id),document.dispatchEvent(new CustomEvent("focus-editor-event",{detail:{id:e.id}}))}},key:$m}),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"])),Um=e=>e.nodeType===Node.ELEMENT_NODE,qm=e=>{if(!Um(e))return!1;const t=e,n=Hm.has(t.tagName),r=t.style.display.split(" ")[0];return""===r?n:!!r.startsWith("inline")||("inherit"===r&&t.parentElement?qm(t.parentElement):!!["contents","initial","none","revert","revert-layer","unset"].includes(r)&&n)},Wm=e=>e.nodeType===Node.TEXT_NODE,Gm=e=>{if(!Um(e))return!1;return!qm(e)},Ym=e=>{e.inlineFormattingContext=null},Zm=(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&&Gm(t))return!0;t=(null==t?void 0:t.nextSibling)||null}if(!t)return!0;if(Gm(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},Jm=(e,t)=>{Um(e)?Qm(e,t):Wm(e)?Zm(e,t):Xm(e,t)},Xm=(e,t)=>{const n=Array.from(e.childNodes);for(const e of n)Jm(e,t)},Qm=(e,t)=>{const n=qm(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||Ym(t),Xm(e,t),n||Ym(t),t.whiteSpaceRule=r},eg=(e,t)=>Array.from(t.childNodes).flatMap(og(e)),tg=(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=kh()(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(!kh()(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=kh()(n),o=r.getAttribute(t);if(!Rh(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(zm(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=fm(fm({},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 mm(fm({},i),{node:v})},ng=(e,t)=>{var n;const r=((e,t)=>{let n;return[...e.plugins].reverse().some((r=>(n=tg(e,r,{element:t}),!!n))),n})(e,t);if(r){const{node:o,withoutChildren:i}=r;let a=null!=(n=o.children)?n:eg(e,t);return(0===a.length||i)&&(a=[{text:""}]),(0,am.Y)("element",o,a)}},rg=(e,t)=>{const n=((e,t)=>{let n={};return[...e.plugins].reverse().forEach((r=>{const o=tg(e,r,{deserializeLeaf:!0,element:t});o&&(n=fm(fm({},n),o.node))})),n})(e,t);return eg(e,t).reduce(((e,t)=>{if(!t)return e;if(Fp(t))Object.keys(n).length>0&&(r={node:t,query:{filter:([e])=>Wp(e)},source:n},Dm(mm(fm({},r),{apply:uf()}))),e.push(t);else{const r=fm({},n);Wp(t)&&t.text&&Object.keys(r).forEach((e=>{r[e]&&t[e]&&(r[e]=t[e])})),e.push((0,am.Y)("text",r,t))}var r;return e}),[])},og=e=>t=>{const n=(e=>{if(Wm(e))return e.textContent||""})(t);if(n)return n;if(!Um(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,am.Y)("fragment",{},eg(e,t))})(e,t);if(o)return o;const i=ng(e,t);return i||rg(e,t)},ig=(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 Qm(t,{inlineFormattingContext:null,whiteSpaceRule:"normal"}),t})(n));const r=((e,t)=>og(e)(t))(e,n);return Mm(e,{descendants:r})},ag=e=>(new DOMParser).parseFromString(e,"text/html"),sg="deserializeHtml",lg=(Sm({key:sg,then:e=>({editor:{insertData:{format:"text/html",getFragment:({data:t})=>{const n=ag(t);return ig(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,lg(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}}),cg=(e,t)=>{lg(e,(e=>!Um(e)||t(e)))},ug=(e,t)=>!!((e,t)=>{let n=null;return cg(e,(e=>!t(e)||(n=e,!1))),n})(e,t),dg=e=>()=>e;Sm({key:"react",withOverrides:e=>(e.hasEditableTarget=dg(!1),e.hasRange=dg(!1),e.hasSelectableTarget=dg(!1),e.hasTarget=dg(!1),e.insertData=dg(),e.insertFragmentData=dg(),e.insertTextData=dg(!1),e.isTargetInsideNonReadonlyVoid=dg(!1),e.setFragmentData=dg(),e)});function pg(){return pg=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},pg.apply(this,arguments)}function hg(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}const fg=(0,l.forwardRef)(((e,t)=>{const{children:n,...r}=e,o=l.Children.toArray(n),i=o.find(vg);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)(mg,pg({},r,{ref:t}),(0,l.isValidElement)(e)?(0,l.cloneElement)(e,void 0,n):null)}return(0,l.createElement)(mg,pg({},r,{ref:t}),n)}));fg.displayName="Slot";const mg=(0,l.forwardRef)(((e,t)=>{const{children:n,...r}=e;return(0,l.isValidElement)(n)?(0,l.cloneElement)(n,{...yg(r,n.props),ref:t?hg(t,n.ref):n.ref}):l.Children.count(n)>1?l.Children.only(null):null}));mg.displayName="SlotClone";const gg=({children:e})=>(0,l.createElement)(l.Fragment,null,e);function vg(e){return(0,l.isValidElement)(e)&&e.type===gg}function yg(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 bg,wg=Object.defineProperty,xg=Object.defineProperties,Sg=Object.getOwnPropertyDescriptors,_g=Object.getOwnPropertySymbols,Cg=Object.prototype.hasOwnProperty,Eg=Object.prototype.propertyIsEnumerable,kg=(e,t,n)=>t in e?wg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,zg=(e,t)=>{for(var n in t||(t={}))Cg.call(t,n)&&kg(e,n,t[n]);if(_g)for(var n of _g(t))Eg.call(t,n)&&kg(e,n,t[n]);return e},Pg=(e,t)=>xg(e,Sg(t)),Ag=(e,t)=>{var n={};for(var r in e)Cg.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&_g)for(var r of _g(e))t.indexOf(r)<0&&Eg.call(e,r)&&(n[r]=e[r]);return n},Dg=e=>l.forwardRef(((t,n)=>{var r=t,{as:o,asChild:i=!1}=r,a=Ag(r,["as","asChild"]);const s=i?fg:o||e;return l.createElement(s,zg({ref:n},a))})),Tg=Dg("div"),Ig=Dg("span"),Mg=(...e)=>l.useCallback(((...e)=>t=>e.forEach((e=>((e,t)=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})(e,t))))(...e),e),Ng=e=>{const t=Dg(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=Ag(s,["asChild","className","getClassName","options","state"]);const m=Rh(h)?h:n?n(p):void 0,{hidden:g,props:v,ref:y}=e?e(m):{hidden:!1,props:{},ref:null},b=Mg(o,y),w=Rh(null==v?void 0:v.className)||Rh(u)?ff(null==v?void 0:v.className,u):void 0,x=(null==v?void 0:v.style)||f.style?zg(zg({},null==v?void 0:v.style),f.style):void 0;return!c&&g?null:l.createElement(t,zg(zg(Pg(zg({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==(bg=window.document)?void 0:bg.createElement)?l.useLayoutEffect:l.useEffect;function Og(e){return l.forwardRef(e)}n(84684);var jg=Object.defineProperty,Rg=Object.defineProperties,Fg=Object.getOwnPropertyDescriptors,Bg=Object.getOwnPropertySymbols,Lg=Object.prototype.hasOwnProperty,Vg=Object.prototype.propertyIsEnumerable,Kg=(e,t,n)=>t in e?jg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$g=(e,t)=>{for(var n in t||(t={}))Lg.call(t,n)&&Kg(e,n,t[n]);if(Bg)for(var n of Bg(t))Vg.call(t,n)&&Kg(e,n,t[n]);return e},Hg=(e,t)=>Rg(e,Fg(t)),Ug=(e,t)=>{var n={};for(var r in e)Lg.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Bg)for(var r of Bg(e))t.indexOf(r)<0&&Vg.call(e,r)&&(n[r]=e[r]);return n},qg=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=Ug(t,["attributes","editor","element","elementToAttributes","nodeProps"]);return{props:Hg($g($g($g($g({},n),s),a),null==i?void 0:i(o)),{className:ff(e.className,null==a?void 0:a.className)}),ref:Mg(e.ref,n.ref)}})(Hg($g({},e),{ref:t}));return l.createElement(Tg,Hg($g({},n),{ref:r}))}));qg.displayName="PlateElement";var Wg=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=Ug(t,["attributes","editor","leaf","leafToAttributes","nodeProps","text"]);return{props:Hg($g($g($g($g({},n),l),a),null==i?void 0:i(o)),{className:ff(e.className,null==a?void 0:a.className)}),ref:Mg(e.ref,n.ref)}})(Hg($g({},e),{ref:t}));return l.createElement(Ig,Hg($g({},n),{ref:r}))}));Wg.displayName="PlateLeaf";var Gg=(e,{options:{clear:t,hotkey:n},type:r})=>o=>{o.defaultPrevented||n&&(0,bf.v_)(n,o)&&(o.preventDefault(),af(e,{clear:t,key:r}))},Yg="bold",Zg=Sm({deserializeHtml:{query:e=>!ug(e,(e=>"normal"===e.style.fontWeight)),rules:[{validNodeName:["STRONG","B"]},{validStyle:{fontWeight:["600","700","bold"]}}]},handlers:{onKeyDown:Gg},isLeaf:!0,key:Yg,options:{hotkey:"mod+b"}}),Jg=Sm({deserializeHtml:{query(e){const t=Dh(e,"P");return"Consolas"!==(null==t?void 0:t.style.fontFamily)&&!Dh(e,"PRE")},rules:[{validNodeName:["CODE"]},{validStyle:{fontFamily:"Consolas"}}]},handlers:{onKeyDown:Gg},isLeaf:!0,key:"code",options:{hotkey:"mod+e"}}),Xg="italic",Qg=Sm({deserializeHtml:{query:e=>!ug(e,(e=>"normal"===e.style.fontStyle)),rules:[{validNodeName:["EM","I"]},{validStyle:{fontStyle:"italic"}}]},handlers:{onKeyDown:Gg},isLeaf:!0,key:Xg,options:{hotkey:"mod+i"}}),ev=Sm({deserializeHtml:{query:e=>!ug(e,(e=>"none"===e.style.textDecoration)),rules:[{validNodeName:["S","DEL","STRIKE"]},{validStyle:{textDecoration:"line-through"}}]},handlers:{onKeyDown:Gg},isLeaf:!0,key:"strikethrough",options:{hotkey:"mod+shift+x"}}),tv=Sm({deserializeHtml:{rules:[{validNodeName:["SUB"]},{validStyle:{verticalAlign:"sub"}}]},handlers:{onKeyDown:Gg},isLeaf:!0,key:"subscript",options:{clear:"superscript",hotkey:"mod+,"}}),nv=Sm({deserializeHtml:{rules:[{validNodeName:["SUP"]},{validStyle:{verticalAlign:"super"}}]},handlers:{onKeyDown:Gg},isLeaf:!0,key:"superscript",options:{clear:"subscript",hotkey:"mod+."}}),rv="underline",ov=Sm({deserializeHtml:{query:e=>!ug(e,(e=>"none"===e.style.textDecoration)),rules:[{validNodeName:["U"]},{validStyle:{textDecoration:["underline"]}}]},handlers:{onKeyDown:Gg},isLeaf:!0,key:rv,options:{hotkey:"mod+u"}});Sm({key:"basicMarks",plugins:[Zg(),Jg(),Qg(),ev(),tv(),nv(),ov()]});let iv=0;function av(e,t){const n="atom"+ ++iv,r={toString(){return this.debugLabel?n+":"+this.debugLabel:n}};return"function"==typeof e?r.read=e:(r.init=e,r.read=sv,r.write=lv),t&&(r.write=t),r}function sv(e){return e(this)}function lv(e,t,n){return t(this,"function"==typeof n?n(e(this)):n)}const cv=(e,t)=>e.unstable_is?e.unstable_is(t):t===e,uv=e=>"init"in e,dv=e=>!!e.write,pv=Symbol("CONTINUE_PROMISE"),hv="pending",fv=new WeakMap,mv=e=>"v"in e||"e"in e,gv=e=>{if("e"in e)throw e.e;if(!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v},vv=e=>{const t=e.v;return"object"==typeof(n=t)&&null!==n&&pv in n&&t.status===hv?t:null;var n},yv=(e,t,n)=>{n.p.has(e)||(n.p.add(e),t.then((()=>{n.p.delete(e)}),(()=>{n.p.delete(e)})))},bv=()=>[new Map,new Map,new Set],wv=(e,t,n)=>{e[0].has(t)||e[0].set(t,new Set),e[1].set(t,n)},xv=(e,t)=>{e[2].add(t)},Sv=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()))}},_v=()=>{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=vv(t);if("function"==typeof(null==(c=r)?void 0:c.then))if(l)l!==r&&(l[pv](r,o),++t.n);else{const a=((e,t,n)=>{if(!fv.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&&(fv.set(e,o),s=e,e.then(l(e),c(e)),t(),t=n)}}));o.status=hv,o[pv]=r,fv.set(e,o)}return fv.get(e)})(r,o,i);if(a.status===hv)for(const r of t.d.keys()){const t=n(r);yv(e,a,t)}t.v=a,delete t.e}else l&&l[pv](Promise.resolve(r),o),t.v=r,delete t.e;var c;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=vv(a);s&&yv(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))&&mv(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(cv(t,l)){const e=n(l);if(!mv(e)){if(!uv(l))throw new Error("no atom init");r(l,e,l.init)}return gv(e)}const d=i(e,l,a);if(u)o(e,t,l,d);else{const e=bv();o(e,t,l,d),c(e,t,s),Sv(e)}return gv(d)};let p,h;const f={get signal(){return p||(p=new AbortController),p.signal},get setSelf(){return dv(t)||console.warn("setSelf function cannot be used with read-only atom"),!h&&dv(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=bv();c(e,t,s),Sv(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&&(wv(e,a,u),s.add(a))),o.delete(a)}},s=(e,t,...o)=>{const l=t.write((t=>gv(i(e,t))),((o,...i)=>{let l;if(cv(t,o)){if(!uv(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)||(wv(e,o,t),a(e,o))}else l=s(e,o,...i);return Sv(e),l}),...o);return l},l=(e,...t)=>{const n=bv(),r=s(n,e,...t);return Sv(n),r},c=(e,t,n)=>{if(n.m&&!vv(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),dv(r)&&r.onMount){const t=o.m,{onMount:n}=r;xv(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&&xv(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=vv(o);i&&i[pv](void 0,(()=>{}))}},p={get:e=>gv(i(void 0,e)),set:l,sub:(e,t)=>{const n=bv(),r=u(n,e);Sv(n);const o=r.l;return o.add(t),()=>{o.delete(t);const n=bv();d(n,e),Sv(n)}}};{const o={dev4_get_internal_weak_map:()=>e,dev4_get_mounted_atoms:()=>t,dev4_restore_atoms:e=>{const t=bv();for(const[o,i]of e)if(uv(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)||(wv(t,o,e),a(t,o))}Sv(t)}};Object.assign(p,o)}return p};let Cv;const Ev=(0,l.createContext)(void 0),kv=e=>{const t=(0,l.useContext)(Ev);return(null==e?void 0:e.store)||t||(Cv||(Cv=_v(),globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=Cv),globalThis.__JOTAI_DEFAULT_STORE__!==Cv&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044")),Cv)},zv=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 Pv(e,t){const n=kv(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),"function"==typeof(null==(u=s)?void 0:u.then)?zv(s):s;var u}function Av(e,t){const n=kv(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 Dv=(e,t,n)=>(t.has(n)?t:t.set(n,e())).get(n),Tv=new WeakMap;function Iv(e,t,n=Object.is){return((e,t,n,r)=>{const o=Dv((()=>new WeakMap),Tv,t),i=Dv((()=>new WeakMap),o,n);return Dv(e,i,r)})((()=>{const r=Symbol(),o=av((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 Mv=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 Mv(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 Nv=new WeakMap;const Ov=e=>{let t=Nv.get(e);return t||(t=new WeakSet,Nv.set(e,t)),t};var jv=Object.defineProperty,Rv=Object.defineProperties,Fv=Object.getOwnPropertyDescriptors,Bv=Object.getOwnPropertySymbols,Lv=Object.prototype.hasOwnProperty,Vv=Object.prototype.propertyIsEnumerable,Kv=(e,t,n)=>t in e?jv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$v=(e,t)=>{for(var n in t||(t={}))Lv.call(t,n)&&Kv(e,n,t[n]);if(Bv)for(var n of Bv(t))Vv.call(t,n)&&Kv(e,n,t[n]);return e},Hv=(e,t)=>Rv(e,Fv(t)),Uv=(e,t)=>{var n={};for(var r in e)Lv.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Bv)for(var r of Bv(e))t.indexOf(r)<0&&Vv.call(e,r)&&(n[r]=e[r]);return n},qv=e=>"function"==typeof e?{__fn:e}:e,Wv=e=>{const t=av(qv(e));return av((e=>{return(n=e(t))&&"object"==typeof n&&"__fn"in n?n.__fn:n;var n}),((e,n,r)=>n(t,qv(r))))},Gv=(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=kv(t),r=Ov(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)},Yv=(e,t)=>`${e}:${t}`,Zv="provider",Jv=l.createContext(new Map),Xv=e=>{var t=e,{initialValues:n,children:r,store:o,atoms:i}=t,a=Uv(t,["initialValues","children","store","atoms"]);return Gv(i,$v($v({},n),a),{store:o}),((e,t,{store:n}={})=>{for(const r of Object.keys(e)){const o=t[r],i=Av(e[r],{store:n});l.useEffect((()=>{null!=o&&i(o)}),[i,o])}})(i,a,{store:o}),l.createElement(l.Fragment,null,r)},Qv=(e="")=>e.length>0?e[0].toUpperCase()+e.slice(1):"",ey=(e,t)=>Object.fromEntries(Object.entries(e).map((([e,n])=>[e,(e={})=>n($v($v({},t),e))]))),ty=(e={})=>"string"==typeof e?{scope:e}:e,ny=(e,{name:t,delay:n,effect:r,extend:o})=>{const i=((e="")=>`${Qv(e)}Provider`)(t),a=((e="")=>`use${Qv(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:Wv(n);c[t]=e;const r="write"in e;d[t]=r,r&&(u[t]=e)}var p;const h=$v({},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}=ty(e),i=((e,t="provider",n=!0)=>{var r;const o=l.useContext(Jv),i=null!=(r=o.get(Yv(e,t)))?r:o.get(Yv(e,Zv));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=ty(t);return Pv(e,{store:v($v({warnIfNoStore:!1},o)),delay:null!=(r=o.delay)?r:n})},b=(e,t)=>Av(e,{store:v(t)}),w=(e,t)=>{const r=v(t),{delay:o=n}=ty(t);return function(e,t){return[Pv(e,t),Av(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=Uv(o,["store","scope","children","resetKey"]);const[d,p]=l.useState(_v());l.useEffect((()=>{c&&p(_v())}),[c]);const h=l.useContext(Jv),f=l.useMemo((()=>{const t=new Map(h);return a&&t.set(Yv(e,a),d),t.set(Yv(e,Zv),d),t}),[h,a,d]);return l.createElement(Jv.Provider,{value:f},l.createElement(Xv,$v({store:d,atoms:t},u),!!r&&l.createElement(r,null),s))}})(t,u,{effect:r});return{[i]:x,[a]:(e={})=>({get:Hv($v({},ey(f,ty(e))),{atom:(t,n)=>y(t,$v($v({},ty(e)),ty(n)))}),set:Hv($v({},ey(m,ty(e))),{atom:(t,n)=>b(t,$v($v({},ty(e)),ty(n)))}),use:Hv($v({},ey(g,ty(e))),{atom:(t,n)=>w(t,$v($v({},ty(e)),ty(n)))}),store:t=>v($v($v({},ty(e)),ty(t)))}),[s]:{atom:h,name:t},name:t}};var ry=["shift","alt","meta","mod","ctrl"],oy={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 iy(e){return(oy[e]||e).trim().toLowerCase().replace(/key|digit|numpad|arrow/,"")}"undefined"!=typeof document&&(document.addEventListener("keydown",(function(e){void 0!==e.key&&sy([iy(e.key),iy(e.code)])})),document.addEventListener("keyup",(function(e){void 0!==e.key&&ly([iy(e.key),iy(e.code)])}))),"undefined"!=typeof window&&window.addEventListener("blur",(function(){ay.clear()}));var ay=new Set;function sy(e){var t=Array.isArray(e)?e:[e];ay.has("meta")&&ay.forEach((function(e){return!function(e){return ry.includes(e)}(e)&&ay.delete(e.toLowerCase())})),t.forEach((function(e){return ay.add(e.toLowerCase())}))}function ly(e){var t=Array.isArray(e)?e:[e];"meta"===e?ay.clear():t.forEach((function(e){return ay.delete(e.toLowerCase())}))}"undefined"!=typeof window?l.useLayoutEffect:l.useEffect;var cy=n(19086),uy=n.n(cy),dy=n(38221),py=n.n(dy),hy=n(7350),fy=n.n(hy);const my=e=>"object"==typeof e&&null!=e&&1===e.nodeType,gy=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,vy=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return gy(n.overflowY,t)||gy(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},yy=(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,by=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t},wy=(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(!my(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,h=[];let f=e;for(;my(f)&&d(f);){if(f=by(f),f===p){h.push(f);break}null!=f&&f===document.body&&vy(f)&&!vy(document.documentElement)||null!=f&&vy(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,j="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(p===t)P="start"===s?A:"end"===s?A-g:"nearest"===s?yy(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:yy(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?yy(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:yy(u,i,r,f,k+M,D,D+w,w);const{scrollLeft:e,scrollTop:a}=t;P=0===j?0:Math.max(0,Math.min(a+P/j,t.scrollHeight-n/j+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 xy(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(wy(e,t));const r="boolean"==typeof t||null==t?void 0:t.behavior;for(const{el:o,top:i,left:a}of wy(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 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,Py,Ay=(0,l.createContext)(null),Dy=()=>{var e=(0,l.useContext)(Ay);if(!e)throw new Error("The `useSlateStatic` hook must be used inside the <Slate> component's context.");return e},Ty=parseInt(l.version.split(".")[0],10),Iy="undefined"!=typeof navigator&&"undefined"!=typeof window&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,My="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),Ny="undefined"!=typeof navigator&&/Android/.test(navigator.userAgent),Oy="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),jy="undefined"!=typeof navigator&&/AppleWebKit(?!.*Chrome)/i.test(navigator.userAgent),Ry="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),Fy="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent),By="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),Ly=Ny&&"undefined"!=typeof navigator&&/Chrome?\/(?:[0-5]?\d)(?:\.)/i.test(navigator.userAgent),Vy="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent),Ky="undefined"!=typeof navigator&&/.*UCBrowser/.test(navigator.userAgent),$y="undefined"!=typeof navigator&&/.*Wechat/.test(navigator.userAgent)&&!/.*MacWechat/.test(navigator.userAgent),Hy=!("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!==(zy=navigator.userAgent.match(/Version\/(\d+)/))&&void 0!==zy&&zy[1]&&parseInt(null===(Py=navigator.userAgent.match(/Version\/(\d+)/))||void 0===Py?void 0:Py[1],10);var Uy=(!By||!Ly)&&!Ry&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,qy=new WeakMap,Wy=new WeakMap,Gy=new WeakMap,Yy=new WeakMap,Zy=new WeakMap,Jy=new WeakMap,Xy=new WeakMap,Qy=new WeakMap,eb=new WeakMap,tb=new WeakMap,nb=new WeakMap,rb=new WeakMap,ob=new WeakMap,ib=new WeakMap,ab=new WeakMap,sb=new WeakMap,lb=new WeakMap,cb=new WeakMap,ub=new WeakMap,db=new WeakMap,pb=new WeakMap,hb=Symbol("placeholder"),fb=Symbol("mark-placeholder"),mb=globalThis.Text,gb=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView||null,vb=e=>yb(e)&&1===e.nodeType,yb=e=>{var t=gb(e);return!!t&&e instanceof t.Node},bb=e=>{var t=e&&e.anchorNode&&gb(e.anchorNode);return!!t&&e instanceof t.Selection},wb=e=>yb(e)&&3===e.nodeType,xb=(e,t,n)=>{for(var r,{childNodes:o}=e,i=o[t],a=t,s=!1,l=!1;(yb(r=i)&&8===r.nodeType||vb(i)&&0===i.childNodes.length||vb(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]},Sb=(e,t,n)=>{var[r]=xb(e,t,n);return r},_b=e=>{var t="";if(wb(e)&&e.nodeValue)return e.nodeValue;if(vb(e)){for(var n of Array.from(e.childNodes))t+=_b(n);var r=getComputedStyle(e).getPropertyValue("display");"block"!==r&&"list"!==r&&"BR"!==e.tagName||(t+="\n")}return t},Cb=/data-slate-fragment="(.+?)"/m,Eb=e=>{var t=e.getData("text/html"),[,n]=t.match(Cb)||[];return n},kb=e=>null!=e.getSelection?e.getSelection():document.getSelection(),zb=(e,t,n)=>{var{target:r}=t;if(vb(r)&&r.matches('[contentEditable="false"]'))return!1;var{document:o}=Db.getWindow(e);if(o.contains(r))return Db.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)&&zb(e,i,n)},Pb=0;class Ab{constructor(){ky(this,"id",void 0),this.id="".concat(Pb++)}}var Db={androidPendingDiffs:e=>cb.get(e),androidScheduleFlush:e=>{var t;null===(t=ab.get(e))||void 0===t||t()},blur:e=>{var t=Db.toDOMNode(e,e),n=Db.findDocumentOrShadowRoot(e);nb.set(e,!1),n.activeElement===t&&t.blur()},deselect:e=>{var{selection:t}=e,n=Db.findDocumentOrShadowRoot(e),r=kb(n);r&&r.rangeCount>0&&r.removeAllRanges(),t&&Ep.gB.deselect(e)},findDocumentOrShadowRoot:e=>{var t=Db.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=Db.toSlateNode(e,t.target),s=Db.findPath(e,a);if(Ep.Hg.isElement(a)&&Ep.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=Ep.KE.point(e,s,{edge:c?"start":"end"}),d=c?Ep.KE.before(e,u):Ep.KE.after(e,u);if(d)return Ep.KE.range(e,d)}var{document:p}=Db.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 Db.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})},findKey:(e,t)=>{var n=Qy.get(t);return n||(n=new Ab,Qy.set(t,n)),n},findPath:(e,t)=>{for(var n=[],r=t;;){var o=Wy.get(r);if(null==o){if(Ep.KE.isEditor(r))return n;break}var i=qy.get(r);if(null==i)break;n.unshift(i),r=o}throw new Error("Unable to find the path for Slate node: ".concat(Ep.h6.stringify(t)))},focus:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{retries:5};if(!nb.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((()=>{Db.focus(e,{retries:t.retries-1})}),10);else{var n=Db.toDOMNode(e,e),r=Db.findDocumentOrShadowRoot(e);if(r.activeElement!==n){if(e.selection&&r instanceof Document){var o=kb(r),i=Db.toDOMRange(e,e.selection);null==o||o.removeAllRanges(),null==o||o.addRange(i)}e.selection||Ep.gB.select(e,Ep.KE.start(e,[])),nb.set(e,!0),n.focus({preventScroll:!0})}}}},getWindow:e=>{var t=Gy.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=Db.toDOMNode(e,e);try{n=vb(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)=>yb(t)&&Db.hasDOMNode(e,t,{editable:!0}),hasRange:(e,t)=>{var{anchor:n,focus:r}=t;return Ep.KE.hasPath(e,n.path)&&Ep.KE.hasPath(e,r.path)},hasSelectableTarget:(e,t)=>Db.hasEditableTarget(e,t)||Db.isTargetInsideNonReadonlyVoid(e,t),hasTarget:(e,t)=>yb(t)&&Db.hasDOMNode(e,t),insertData:(e,t)=>{e.insertData(t)},insertFragmentData:(e,t)=>e.insertFragmentData(t),insertTextData:(e,t)=>e.insertTextData(t),isComposing:e=>!!rb.get(e),isFocused:e=>!!nb.get(e),isReadOnly:e=>!!tb.get(e),isTargetInsideNonReadonlyVoid:(e,t)=>{if(tb.get(e))return!1;var n=Db.hasTarget(e,t)&&Db.toSlateNode(e,t);return Ep.Hg.isElement(n)&&Ep.KE.isVoid(e,n)},setFragmentData:(e,t,n)=>e.setFragmentData(t,n),toDOMNode:(e,t)=>{var n=eb.get(e),r=Ep.KE.isEditor(t)?Yy.get(e):null==n?void 0:n.get(Db.findKey(e,t));if(!r)throw new Error("Cannot resolve a DOM node from Slate node: ".concat(Ep.h6.stringify(t)));return r},toDOMPoint:(e,t)=>{var n,[r]=Ep.KE.node(e,t.path),o=Db.toDOMNode(e,r);Ep.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 mb?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(Ep.h6.stringify(t)));return n},toDOMRange:(e,t)=>{var{anchor:n,focus:r}=t,o=Ep.Q6.isBackward(t),i=Db.toDOMPoint(e,n),a=Ep.Q6.isCollapsed(t)?i:Db.toDOMPoint(e,r),s=Db.getWindow(e).document.createRange(),[l,c]=o?a:i,[u,d]=o?i:a,p=!!(vb(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),h=!!(vb(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=vb(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?Jy.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}=n,[i,a]=r?t:(e=>{var[t,n]=e;if(vb(t)&&t.childNodes.length){var r=n===t.childNodes.length,o=r?n-1:n;for([t,o]=xb(t,o,r?"backward":"forward"),r=o<n;vb(t)&&t.childNodes.length;){var i=r?t.childNodes.length-1:0;t=Sb(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=Db.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 v=Db.getWindow(e).document.createRange();v.setStart(l,0),v.setEnd(i,a);var y=v.cloneContents();[...Array.prototype.slice.call(y.querySelectorAll("[data-slate-zero-width]")),...Array.prototype.slice.call(y.querySelectorAll("[contenteditable=false]"))].forEach((e=>{Ny&&!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=y.textContent.length,g=l}}else if(f){for(var b=f.querySelectorAll("[data-slate-leaf]"),w=0;w<b.length;w++){var x=b[w];if(Db.hasDOMNode(e,x)){m=x;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&&Ny&&"z"===g.getAttribute("data-slate-zero-width")&&null!==(u=g.textContent)&&void 0!==u&&u.startsWith("\ufeff")&&(s.hasAttribute("data-slate-zero-width")||Oy&&null!==(d=g.textContent)&&void 0!==d&&d.endsWith("\n\n"))&&c--}if(Ny&&!l&&!r){var S=s.hasAttribute("data-slate-node")?s:s.closest("[data-slate-node]");if(S&&Db.hasDOMNode(e,S,{editable:!0})){var _=Db.toSlateNode(e,S),{path:C,offset:E}=Ep.KE.start(e,Db.findPath(e,_));return S.querySelector("[data-slate-leaf]")||(E=a),{path:C,offset:E}}}if(!l){if(o)return null;throw new Error("Cannot resolve a Slate point from DOM point: ".concat(t))}var k=Db.toSlateNode(e,l);return{path:Db.findPath(e,k),offset:c}},toSlateRange:(e,t,n)=>{var r,o,i,a,s,l,c,{exactMatch:u,suppressThrow:d}=n;if(bb(t)?t.anchorNode:t.startContainer)if(bb(t)){if(Oy&&t.rangeCount>1){a=t.focusNode;var p=t.getRangeAt(0),h=t.getRangeAt(t.rangeCount-1);if(a instanceof HTMLTableRowElement&&p.startContainer instanceof HTMLTableRowElement&&h.startContainer instanceof HTMLTableRowElement){function x(e){return e.childElementCount>0?x(e.children[0]):e}var f=p.startContainer,m=h.startContainer,g=x(f.children[p.startOffset]),v=x(m.children[h.startOffset]);s=0,o=v.childNodes.length>0?v.childNodes[0]:v,a=g.childNodes.length>0?g.childNodes[0]:g,i=v instanceof HTMLElement?v.innerHTML.length:0}else p.startContainer===a?(o=h.endContainer,i=h.endOffset,s=p.startOffset):(o=p.startContainer,i=p.endOffset,s=h.startOffset)}else o=t.anchorNode,i=t.anchorOffset,a=t.focusNode,s=t.focusOffset;l=Fy&&(e=>{for(var t=e&&e.parentNode;t;){if("[object ShadowRoot]"===t.toString())return!0;t=t.parentNode}return!1})(o)||Oy?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));(Oy&&null!==(r=a.textContent)&&void 0!==r&&r.endsWith("\n\n")&&s===a.textContent.length&&s--,"getAttribute"in a&&"false"===a.getAttribute("contenteditable")&&"true"!==a.getAttribute("data-slate-void"))&&(a=o,s=(null===(c=o.textContent)||void 0===c?void 0:c.length)||0);var y=Db.toSlatePoint(e,[o,i],{exactMatch:u,suppressThrow:d});if(!y)return null;var b=l?y:Db.toSlatePoint(e,[a,s],{exactMatch:u,suppressThrow:d});if(!b)return null;var w={anchor:y,focus:b};return Ep.Q6.isExpanded(w)&&Ep.Q6.isForward(w)&&vb(a)&&Ep.KE.void(e,{at:w.focus,mode:"highest"})&&(w=Ep.KE.unhangRange(e,w,{voids:!0})),w}};function Tb(e,t){var{path:n,diff:r}=t;if(!Ep.KE.hasPath(e,n))return!1;var o=Ep.bP.get(e,n);if(!Ep.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=Ep.wA.next(n);if(!Ep.KE.hasPath(e,i))return!1;var a=Ep.bP.get(e,i);return Ep.EY.isText(a)&&a.text.startsWith(r.text)}function Ib(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 Mb(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 Nb(e){var{path:t,diff:n}=e;return{anchor:{path:t,offset:n.start},focus:{path:t,offset:n.end}}}function Ob(e,t){var{path:n,offset:r}=t;if(!Ep.KE.hasPath(e,n))return null;var o=Ep.bP.get(e,n);if(!Ep.EY.isText(o))return null;var i=Ep.KE.above(e,{match:t=>Ep.Hg.isElement(t)&&Ep.KE.isBlock(e,t),at:n});if(!i)return null;for(;r>o.text.length;){var a=Ep.KE.next(e,{at:n,match:Ep.EY.isText});if(!a||!Ep.wA.isDescendant(a[1],i[1]))return null;r-=o.text.length,o=a[0],n=a[1]}return{path:n,offset:r}}function jb(e,t){var n=Ob(e,t.anchor);if(!n)return null;if(Ep.Q6.isCollapsed(t))return{anchor:n,focus:n};var r=Ob(e,t.focus);return r?{anchor:n,focus:r}:null}function Rb(e,t,n){var r=cb.get(e),o=null==r?void 0:r.find((e=>{var{path:n}=e;return Ep.wA.equals(n,t.path)}));if(!o||t.offset<=o.diff.start)return Ep.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=Ep.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=Ep.bR.transform(l,n,{affinity:"backward"});return c?"split_node"===n.type&&Ep.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 Fb(e,t,n){var r=Rb(e,t.anchor,n);if(!r)return null;if(Ep.Q6.isCollapsed(t))return{anchor:r,focus:r};var o=Rb(e,t.focus,n);return o?{anchor:r,focus:o}:null}function Bb(e,t){var{path:n,diff:r,id:o}=e;switch(t.type){case"insert_text":return!Ep.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!Ep.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!Ep.wA.equals(t.path,n)||t.position>=r.end?{diff:r,id:o,path:Ep.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:Ep.wA.transform(n,t,{affinity:"forward"})};case"merge_node":return Ep.wA.equals(t.path,n)?{diff:{start:r.start+t.position,end:r.end+t.position,text:r.text},id:o,path:Ep.wA.transform(n,t)}:{diff:r,id:o,path:Ep.wA.transform(n,t)}}var i=Ep.wA.transform(n,t);return i?{diff:r,path:i,id:o}:null}function Lb(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?Lb(Object(n),!0).forEach((function(t){ky(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Kb(e){var{editor:t,scheduleOnDOMSelectionChange:n,onDOMSelectionChange:r}=e,o=!1,i=null,a=null,s=null,l=0,c=!1,u=()=>{var e=db.get(t);if(db.delete(t),e){var{selection:n}=t,r=jb(t,e);!r||n&&Ep.Q6.equals(r,n)||Ep.gB.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&&Ep.KE.rangeRef(t,t.selection,{affinity:"forward"});lb.set(t,t.marks),ub.get(t),cb.get(t);for(var i,l=g();i=null===(d=cb.get(t))||void 0===d?void 0:d[0];){var d,p,h=sb.get(t);void 0!==h&&(sb.delete(t),t.marks=h),h&&!1===c&&(c=null);var f=Nb(i);t.selection&&Ep.Q6.equals(t.selection,f)||Ep.gB.select(t,f),i.diff.text?Ep.KE.insertText(t,i.diff.text):Ep.KE.deleteFragment(t),cb.set(t,null===(p=cb.get(t))||void 0===p?void 0:p.filter((e=>{var{id:t}=e;return t!==i.id}))),Tb(t,i)||(l=!1,ub.delete(t),lb.delete(t),o="action",db.delete(t),n.cancel(),r.cancel(),null==e||e.unref())}var v=null==e?void 0:e.unref();if(!v||db.get(t)||t.selection&&Ep.Q6.equals(v,t.selection)||Ep.gB.select(t,v),m())(()=>{var e=ub.get(t);if(ub.delete(t),e){if(e.at){var n=Ep.bR.isPoint(e.at)?Ob(t,e.at):jb(t,e.at);if(!n)return;var r=Ep.KE.range(t,n);t.selection&&Ep.Q6.equals(t.selection,r)||Ep.gB.select(t,n)}e.run()}})();else{l&&n(),n.flush(),r.flush(),u();var y=lb.get(t);lb.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=Zy.get(t);n&&(g()||e?n.style.display="none":n.style.removeProperty("display"))},h=(e,n)=>{var r,o=null!==(r=cb.get(t))&&void 0!==r?r:[];cb.set(t,o);var i=Ep.bP.leaf(t,e),a=o.findIndex((t=>Ep.wA.equals(t.path,e)));if(a<0)return Mb(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=Ib(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 Mb(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]=Vb(Vb({},o[a]),{},{diff:s})},f=function(e){var{at:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c=!1,db.delete(t),n.cancel(),r.cancel(),m()&&d(),ub.set(t,{at:o,run:e}),s=setTimeout(d)},m=()=>!!ub.get(t),g=()=>{var e;return!(null===(e=cb.get(t))||void 0===e||!e.length)},v=e=>{db.set(t,e),a&&(clearTimeout(a),a=null);var{selection:n}=t;if(e){var r=!n||!Ep.wA.equals(n.anchor.path,e.anchor.path),o=!n||!Ep.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))}},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((()=>{rb.set(t,!1),d()}),25)},handleCompositionStart:e=>{rb.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=Db.toSlateRange(t,s,{exactMatch:!1,suppressThrow:!0}));var l=Db.getWindow(t).getSelection();if(!o&&l&&(s=l,o=Db.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(Ep.Q6.isExpanded(o)){var[p,m]=Ep.Q6.edges(o);if(Ep.bP.leaf(t,p.path).text.length===p.offset&&0===m.offset){var g=Ep.KE.next(t,{at:p.path,match:Ep.EY.isText});g&&Ep.wA.equals(g[1],m.path)&&(o={anchor:m,focus:m})}}var b=r.endsWith("Backward")?"backward":"forward",[w,x]=Ep.Q6.edges(o),[S,_]=Ep.KE.leaf(t,w.path),C={text:"",start:w.offset,end:x.offset},E=cb.get(t),k=null==E?void 0:E.find((e=>Ep.wA.equals(e.path,_))),z=k?[k.diff,C]:[C];if(0===Ib(S.text,...z).length&&(d=!1),Ep.Q6.isExpanded(o)){if(d&&Ep.wA.equals(o.anchor.path,o.focus.path)){var P={path:o.anchor.path,offset:w.offset},A=Ep.KE.range(t,P,P);return v(A),h(o.anchor.path,{text:"",end:x.offset,start:w.offset})}return f((()=>Ep.KE.deleteFragment(t,{direction:b})),{at:o})}}switch(r){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":return f((()=>Ep.KE.deleteFragment(t)),{at:o});case"deleteContent":case"deleteContentForward":var{anchor:D}=o;if(d&&Ep.Q6.isCollapsed(o)){var T=Ep.bP.leaf(t,D.path);if(D.offset<T.text.length)return h(D.path,{text:"",start:D.offset,end:D.offset+1})}return f((()=>Ep.KE.deleteForward(t)),{at:o});case"deleteContentBackward":var I,{anchor:M}=o,N=bb(s)?s.isCollapsed:!(null===(I=s)||void 0===I||!I.collapsed);return d&&N&&Ep.Q6.isCollapsed(o)&&M.offset>0?h(M.path,{text:"",start:M.offset-1,end:M.offset}):f((()=>Ep.KE.deleteBackward(t)),{at:o});case"deleteEntireSoftLine":return f((()=>{Ep.KE.deleteBackward(t,{unit:"line"}),Ep.KE.deleteForward(t,{unit:"line"})}),{at:o});case"deleteHardLineBackward":return f((()=>Ep.KE.deleteBackward(t,{unit:"block"})),{at:o});case"deleteSoftLineBackward":return f((()=>Ep.KE.deleteBackward(t,{unit:"line"})),{at:o});case"deleteHardLineForward":return f((()=>Ep.KE.deleteForward(t,{unit:"block"})),{at:o});case"deleteSoftLineForward":return f((()=>Ep.KE.deleteForward(t,{unit:"line"})),{at:o});case"deleteWordBackward":return f((()=>Ep.KE.deleteBackward(t,{unit:"word"})),{at:o});case"deleteWordForward":return f((()=>Ep.KE.deleteForward(t,{unit:"word"})),{at:o});case"insertLineBreak":return f((()=>Ep.KE.insertSoftBreak(t)),{at:o});case"insertParagraph":return f((()=>Ep.KE.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((()=>Db.insertData(t,i)),{at:o});var O=null!=i?i:"";if(sb.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&&Ep.KE.insertText(t,n),r!==e.length-1&&Ep.KE.insertSoftBreak(t)}))}),{at:o});if(Ep.wA.equals(o.anchor.path,o.focus.path)){var[j,R]=Ep.Q6.edges(o),F={start:j.offset,end:R.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||!Ep.Q6.isCollapsed(o)||c.end+c.text.length!==j.offset)&&Vb(Vb({},c),{},{text:c.text+O}));if(d)return void h(j.path,F)}return f((()=>Ep.KE.insertText(t,O)),{at:o})}}},handleKeyDown:e=>{g()||(p(!0),setTimeout(p))},handleDomMutations:e=>{var n;g()||m()||e.some((n=>zb(t,n,e)))&&(null===(n=pb.get(t))||void 0===n||n())},handleInput:()=>{!m()&&g()||d()}}}var $b=Hy?l.useLayoutEffect:l.useEffect;var Hb=["node"];function Ub(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 qb={subtree:!0,childList:!0,characterData:!0},Wb=Ny?e=>{var{node:t}=e,n=_y(e,Hb);if(!Ny)return null;var r,o=Dy(),i=(r=(0,l.useRef)(!1),(0,l.useEffect)((()=>(r.current=!0,()=>{r.current=!1})),[]),r.current),[a]=(0,l.useState)((()=>Kb(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ub(Object(n),!0).forEach((function(t){ky(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ub(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)));$b((()=>{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,qb),ab.set(o,a.scheduleFlush),i&&a.flush(),a}:()=>null,Gb=["anchor","focus"],Yb=["anchor","focus"],Zb=(e,t)=>{var n,r,o=_y(e,Gb),i=_y(t,Yb);return e[hb]===t[hb]&&(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 Jb(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 Xb=e=>{var{isLast:t,leaf:n,parent:r,text:o}=e,i=Dy(),a=Db.findPath(i,o),s=Ep.wA.parent(a),c=Boolean(n[fb]);return i.isVoid(r)?l.createElement(tw,{length:Ep.bP.string(r).length}):""!==n.text||r.children[r.children.length-1]!==o||i.isInline(r)||""!==Ep.KE.string(i,s)?""===n.text?l.createElement(tw,{isMarkPlaceholder:c}):t&&"\n"===n.text.slice(-1)?l.createElement(Qb,{isTrailing:!0,text:n.text}):l.createElement(Qb,{text:n.text}):l.createElement(tw,{isLineBreak:!0,isMarkPlaceholder:c})},Qb=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 $b((()=>{var e=o();r.current&&r.current.textContent!==e&&(r.current.textContent=e)})),l.createElement(ew,{ref:r},i)},ew=(0,l.memo)((0,l.forwardRef)(((e,t)=>l.createElement("span",{"data-slate-string":!0,ref:t},e.children)))),tw=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?Jb(Object(n),!0).forEach((function(t){ky(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},o),(Ny||Iy)&&n?null:"\ufeff",n?l.createElement("br",null):null)};function nw(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 rw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nw(Object(n),!0).forEach((function(t){ky(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ow=Ny?300:0;function iw(e){e.current&&(clearTimeout(e.current),e.current=null)}var aw=e=>{var{leaf:t,isLast:n,text:r,parent:o,renderPlaceholder:i,renderLeaf:a=(e=>l.createElement(lw,rw({},e)))}=e,s=Dy(),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;Zy.delete(s),null===(n=t.onPlaceholderResize)||void 0===n||n.call(t,null)}else{if(Zy.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(Xb,{isLast:n,leaf:t,parent:o,text:r}),g=Boolean(t[hb]);if((0,l.useEffect)((()=>(g?h.current||(h.current=setTimeout((()=>{p(!0),h.current=null}),ow)):(iw(h),p(!1)),()=>iw(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:jy?"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})},sw=l.memo(aw,((e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&t.text===e.text&&Ep.EY.equals(t.leaf,e.leaf)&&t.leaf[hb]===e.leaf[hb])),lw=e=>{var{attributes:t,children:n}=e;return l.createElement("span",rw({},t),n)},cw=e=>{for(var{decorations:t,isLast:n,parent:r,renderPlaceholder:o,renderLeaf:i,text:a}=e,s=Dy(),c=(0,l.useRef)(null),u=Ep.EY.decorations(a,t),d=Db.findKey(s,a),p=[],h=0;h<u.length;h++){var f=u[h];p.push(l.createElement(sw,{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=eb.get(s);e?(null==t||t.set(d,e),Xy.set(a,e),Jy.set(e,a)):(null==t||t.delete(d),Xy.delete(a),c.current&&Jy.delete(c.current)),c.current=e}),[c,s,d,a]);return l.createElement("span",{"data-slate-node":"text",ref:m},p)},uw=l.memo(cw,((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||!Zb(r,o))return!1}return!0})(t.decorations,e.decorations)));function dw(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 pw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dw(Object(n),!0).forEach((function(t){ky(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var hw=e=>{var{decorations:t,element:n,renderElement:r=(e=>l.createElement(mw,pw({},e))),renderPlaceholder:o,renderLeaf:i,selection:a}=e,s=Dy(),c=ww(),u=s.isInline(n),d=Db.findKey(s,n),p=(0,l.useCallback)((e=>{var t=eb.get(s);e?(null==t||t.set(d,e),Xy.set(n,e),Jy.set(e,n)):(null==t||t.delete(d),Xy.delete(n))}),[s,d,n]),h=yw({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&&Ep.KE.hasInlines(s,n)){var m=Ep.bP.string(n),g=uy()(m);"rtl"===g&&(f.dir=g)}if(Ep.KE.isVoid(s,n)){f["data-slate-void"]=!0,!c&&u&&(f.contentEditable=!1);var v=u?"span":"div",[[y]]=Ep.bP.texts(n);h=l.createElement(v,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},l.createElement(uw,{renderPlaceholder:o,decorations:[],isLast:!1,parent:n,text:y})),qy.set(y,0),Wy.set(y,n)}return r({attributes:f,children:h,element:n})},fw=l.memo(hw,((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(!Ep.Q6.equals(r,o)||!Zb(r,o))return!1}return!0})(e.decorations,t.decorations)&&(e.selection===t.selection||!!e.selection&&!!t.selection&&Ep.Q6.equals(e.selection,t.selection)))),mw=e=>{var{attributes:t,children:n,element:r}=e,o=Dy().isInline(r)?"span":"div";return l.createElement(o,pw(pw({},t),{},{style:{position:"relative"}}),n)},gw=(0,l.createContext)((()=>[])),vw=(0,l.createContext)(!1),yw=e=>{for(var{decorations:t,node:n,renderElement:r,renderPlaceholder:o,renderLeaf:i,selection:a}=e,s=(0,l.useContext)(gw),c=Dy(),u=Db.findPath(c,n),d=[],p=Ep.Hg.isElement(n)&&!c.isInline(n)&&Ep.KE.hasInlines(c,n),h=0;h<n.children.length;h++){var f=u.concat(h),m=n.children[h],g=Db.findKey(c,m),v=Ep.KE.range(c,f),y=a&&Ep.Q6.intersection(v,a),b=s([m,f]);for(var w of t){var x=Ep.Q6.intersection(w,v);x&&b.push(x)}Ep.Hg.isElement(m)?d.push(l.createElement(vw.Provider,{key:"provider-".concat(g.id),value:!!y},l.createElement(fw,{decorations:b,element:m,key:g.id,renderElement:r,renderPlaceholder:o,renderLeaf:i,selection:y}))):d.push(l.createElement(uw,{decorations:b,key:g.id,isLast:p&&h===n.children.length-1,parent:n,renderPlaceholder:o,renderLeaf:i,text:m})),qy.set(m,h),Wy.set(m,n)}return d},bw=(0,l.createContext)(!1),ww=()=>(0,l.useContext)(bw),xw=(0,l.createContext)(null),Sw=()=>{var e=(0,l.useContext)(xw);if(!e)throw new Error("The `useSlate` hook must be used inside the <Slate> component's context.");var{editor:t}=e;return t};var _w={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"},Cw={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"},Ew={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},kw=e=>{var t=_w[e],n=Cw[e],r=Ew[e],o=t&&(0,bf.v_)(t),i=n&&(0,bf.v_)(n),a=r&&(0,bf.v_)(r);return e=>!(!o||!o(e))||(!!(My&&i&&i(e))||!(My||!a||!a(e)))},zw={isBold:kw("bold"),isCompose:kw("compose"),isMoveBackward:kw("moveBackward"),isMoveForward:kw("moveForward"),isDeleteBackward:kw("deleteBackward"),isDeleteForward:kw("deleteForward"),isDeleteLineBackward:kw("deleteLineBackward"),isDeleteLineForward:kw("deleteLineForward"),isDeleteWordBackward:kw("deleteWordBackward"),isDeleteWordForward:kw("deleteWordForward"),isExtendBackward:kw("extendBackward"),isExtendForward:kw("extendForward"),isExtendLineBackward:kw("extendLineBackward"),isExtendLineForward:kw("extendLineForward"),isItalic:kw("italic"),isMoveLineBackward:kw("moveLineBackward"),isMoveLineForward:kw("moveLineForward"),isMoveWordBackward:kw("moveWordBackward"),isMoveWordForward:kw("moveWordForward"),isRedo:kw("redo"),isSoftBreak:kw("insertSoftBreak"),isSplitBlock:kw("splitBlock"),isTransposeCharacter:kw("transposeCharacter"),isUndo:kw("undo")},Pw={subtree:!0,childList:!0,characterData:!0,characterDataOldValue:!0};class Aw 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,Pw)}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=>zb(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(Aw,"contextType",Ay);var Dw=Ny?Aw:e=>{var{children:t}=e;return l.createElement(l.Fragment,null,t)},Tw=["autoFocus","decorate","onDOMBeforeInput","placeholder","readOnly","renderElement","renderLeaf","renderPlaceholder","scrollSelectionIntoView","style","as","disableDefaultStyles"],Iw=["text"];function Mw(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 Nw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mw(Object(n),!0).forEach((function(t){ky(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ow=e=>l.createElement(l.Fragment,null,yw(e)),jw=e=>{var t=(0,l.useCallback)((e=>l.createElement(Rw,Nw({},e))),[]),{autoFocus:n,decorate:r=Fw,onDOMBeforeInput:o,placeholder:i,readOnly:a=!1,renderElement:s,renderLeaf:c,renderPlaceholder:u=t,scrollSelectionIntoView:d=Bw,style:p={},as:h="div",disableDefaultStyles:f=!1}=e,m=_y(e,Tw),g=Sw(),[v,y]=(0,l.useState)(!1),b=(0,l.useRef)(null),w=(0,l.useRef)([]),[x,S]=(0,l.useState)(),_=(0,l.useRef)(!1),{onUserInput:C,receivedUserInput:E}=function(){var e=Dy(),t=(0,l.useRef)(!1),n=(0,l.useRef)(0),r=(0,l.useCallback)((()=>{if(!t.current){t.current=!0;var r=Db.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}}(),[,k]=(0,l.useReducer)((e=>e+1),0);pb.set(g,k),tb.set(g,a);var z=(0,l.useMemo)((()=>({isDraggingInternally:!1,isUpdatingSelection:!1,latestElement:null,hasMarkPlaceholder:!1})),[]);(0,l.useEffect)((()=>{b.current&&n&&b.current.focus()}),[n]);var P=(0,l.useRef)(),A=(0,l.useMemo)((()=>fy()((()=>{var e=Db.toDOMNode(g,g).getRootNode();if(!_.current&&jy&&e instanceof ShadowRoot){_.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"):Ep.gB.deselect(g),void(_.current=!1)}var n=P.current;if((Ny||!Db.isComposing(g))&&(!z.isUpdatingSelection||null!=n&&n.isFlushing())&&!z.isDraggingInternally){var r=Db.findDocumentOrShadowRoot(g),{activeElement:o}=r,i=Db.toDOMNode(g,g),s=kb(r);if(o===i?(z.latestElement=o,nb.set(g,!0)):nb.delete(g),!s)return Ep.gB.deselect(g);var{anchorNode:l,focusNode:c}=s,u=Db.hasEditableTarget(g,l)||Db.isTargetInsideNonReadonlyVoid(g,l),d=Db.hasEditableTarget(g,c)||Db.isTargetInsideNonReadonlyVoid(g,c);if(u&&d){var p=Db.toSlateRange(g,s,{exactMatch:!1,suppressThrow:!0});p&&(Db.isComposing(g)||null!=n&&n.hasPendingChanges()||null!=n&&n.isFlushing()?null==n||n.handleUserSelect(p):Ep.gB.select(g,p))}!a||u&&d||Ep.gB.deselect(g)}}),100)),[g,a,z]),D=(0,l.useMemo)((()=>py()(A,0)),[A]);P.current=Wb({node:b,onDOMSelectionChange:A,scheduleOnDOMSelectionChange:D}),$b((()=>{var e,t,n;b.current&&(n=gb(b.current))?(Gy.set(g,n),Yy.set(g,b.current),Xy.set(g,b.current),Jy.set(b.current,g)):Xy.delete(g);var{selection:r}=g,o=Db.findDocumentOrShadowRoot(g),i=kb(o);if(i&&Db.isFocused(g)&&(null===(e=P.current)||void 0===e||!e.hasPendingAction())){var a=e=>{var t="None"!==i.type;if(r||t){var n,o=i.focusNode;if(Oy&&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=Yy.get(g),c=!1;if(l.contains(n)&&l.contains(o)&&(c=!0),t&&c&&r&&!e){var u=Db.toSlateRange(g,i,{exactMatch:!0,suppressThrow:!0});if(u&&Ep.Q6.equals(u,r)){var p;if(!z.hasMarkPlaceholder)return;if(null!==(p=n)&&void 0!==p&&null!==(p=p.parentElement)&&void 0!==p&&p.hasAttribute("data-slate-mark-placeholder"))return}}if(!r||Db.hasRange(g,r)){z.isUpdatingSelection=!0;var h=r&&Db.toDOMRange(g,r);return h?(Db.isComposing(g)&&!Ny?i.collapseToEnd():Ep.Q6.isBackward(r)?i.setBaseAndExtent(h.endContainer,h.endOffset,h.startContainer,h.startOffset):i.setBaseAndExtent(h.startContainer,h.startOffset,h.endContainer,h.endOffset),d(g,h)):i.removeAllRanges(),h}g.selection=Db.toSlateRange(g,i,{exactMatch:!1,suppressThrow:!0})}};i.rangeCount<=1&&a();var s="action"===(null===(t=P.current)||void 0===t?void 0:t.isFlushing());if(Ny&&s){var l=null,c=requestAnimationFrame((()=>{if(s){var e=e=>{try{Db.toDOMNode(g,g).focus(),a(e)}catch(e){}};e(),l=setTimeout((()=>{e(!0),z.isUpdatingSelection=!1}))}}));return()=>{cancelAnimationFrame(c),l&&clearTimeout(l)}}setTimeout((()=>{z.isUpdatingSelection=!1}))}}));var T=(0,l.useCallback)((e=>{var t=Db.toDOMNode(g,g).getRootNode();if(null!=_&&_.current&&jy&&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 i=Db.toSlateRange(g,r,{exactMatch:!1,suppressThrow:!1});return Ep.gB.select(g,i),e.preventDefault(),void e.stopImmediatePropagation()}if(C(),!a&&Db.hasEditableTarget(g,e.target)&&!Kw(e,o)){var s;if(P.current)return P.current.handleDOMBeforeInput(e);D.flush(),A.flush();var{selection:l}=g,{inputType:c}=e,u=e.dataTransfer||e.data||void 0,d="insertCompositionText"===c||"deleteCompositionText"===c;if(d&&Db.isComposing(g))return;var p=!1;if("insertText"===c&&l&&Ep.Q6.isCollapsed(l)&&e.data&&1===e.data.length&&/[a-z ]/i.test(e.data)&&0!==l.anchor.offset){var h,f;p=!0,g.marks&&(p=!1);var{anchor:m}=l,[v,b]=Db.toDOMPoint(g,m),x=null===(h=v.parentElement)||void 0===h?void 0:h.closest("a"),S=Db.getWindow(g);if(p&&x&&Db.hasDOMNode(g,x)){var E,k=null==S?void 0:S.document.createTreeWalker(x,NodeFilter.SHOW_TEXT).lastChild();k===v&&(null===(E=k.textContent)||void 0===E?void 0:E.length)===b&&(p=!1)}if(p&&v.parentElement&&"pre"===(null==S||null===(f=S.getComputedStyle(v.parentElement))||void 0===f?void 0:f.whiteSpace)){var z=Ep.KE.above(g,{at:m.path,match:e=>Ep.Hg.isElement(e)&&Ep.KE.isBlock(g,e)});z&&Ep.bP.string(z[0]).includes("\t")&&(p=!1)}}if(!c.startsWith("delete")||c.startsWith("deleteBy")){var[T]=e.getTargetRanges();if(T){var I=Db.toSlateRange(g,T,{exactMatch:!1,suppressThrow:!1});if(!l||!Ep.Q6.equals(l,I)){p=!1;var M=!d&&g.selection&&Ep.KE.rangeRef(g,g.selection);Ep.gB.select(g,I),M&&ob.set(g,M)}}}if(d)return;if(p||e.preventDefault(),l&&Ep.Q6.isExpanded(l)&&c.startsWith("delete")){var N=c.endsWith("Backward")?"backward":"forward";return void Ep.KE.deleteFragment(g,{direction:N})}switch(c){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":Ep.KE.deleteFragment(g);break;case"deleteContent":case"deleteContentForward":Ep.KE.deleteForward(g);break;case"deleteContentBackward":Ep.KE.deleteBackward(g);break;case"deleteEntireSoftLine":Ep.KE.deleteBackward(g,{unit:"line"}),Ep.KE.deleteForward(g,{unit:"line"});break;case"deleteHardLineBackward":Ep.KE.deleteBackward(g,{unit:"block"});break;case"deleteSoftLineBackward":Ep.KE.deleteBackward(g,{unit:"line"});break;case"deleteHardLineForward":Ep.KE.deleteForward(g,{unit:"block"});break;case"deleteSoftLineForward":Ep.KE.deleteForward(g,{unit:"line"});break;case"deleteWordBackward":Ep.KE.deleteBackward(g,{unit:"word"});break;case"deleteWordForward":Ep.KE.deleteForward(g,{unit:"word"});break;case"insertLineBreak":Ep.KE.insertSoftBreak(g);break;case"insertParagraph":Ep.KE.insertBreak(g);break;case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":"insertFromComposition"===c&&Db.isComposing(g)&&(y(!1),rb.set(g,!1)),"DataTransfer"===(null==u?void 0:u.constructor.name)?Db.insertData(g,u):"string"==typeof u&&(p?w.current.push((()=>Ep.KE.insertText(g,u))):Ep.KE.insertText(g,u))}var O=null===(s=ob.get(g))||void 0===s?void 0:s.unref();ob.delete(g),!O||g.selection&&Ep.Q6.equals(g.selection,O)||Ep.gB.select(g,O)}}),[g,A,C,o,a,D]),I=(0,l.useCallback)((e=>{null==e?(A.cancel(),D.cancel(),Yy.delete(g),Xy.delete(g),b.current&&Uy&&b.current.removeEventListener("beforeinput",T)):Uy&&e.addEventListener("beforeinput",T),b.current=e}),[A,D,g,T]);$b((()=>{var e=Db.getWindow(g);e.document.addEventListener("selectionchange",D);var t=()=>{z.isDraggingInternally=!1};return e.document.addEventListener("dragend",t),e.document.addEventListener("drop",t),()=>{e.document.removeEventListener("selectionchange",D),e.document.removeEventListener("dragend",t),e.document.removeEventListener("drop",t)}}),[D,z]);var M=r([g,[]]),N=i&&1===g.children.length&&1===Array.from(Ep.bP.texts(g)).length&&""===Ep.bP.string(g)&&!v,O=(0,l.useCallback)((e=>{var t;e&&N?S(null===(t=e.getBoundingClientRect())||void 0===t?void 0:t.height):S(void 0)}),[N]);if(N){var j=Ep.KE.start(g,[]);M.push({[hb]:!0,placeholder:i,onPlaceholderResize:O,anchor:j,focus:j})}var{marks:R}=g;if(z.hasMarkPlaceholder=!1,g.selection&&Ep.Q6.isCollapsed(g.selection)&&R){var{anchor:F}=g.selection,B=Ep.bP.leaf(g,F.path),L=_y(B,Iw);if(!Ep.EY.equals(B,R,{loose:!0})){z.hasMarkPlaceholder=!0;var V=Object.fromEntries(Object.keys(L).map((e=>[e,null])));M.push(Nw(Nw(Nw({[fb]:!0},V),R),{},{anchor:F,focus:F}))}}return(0,l.useEffect)((()=>{setTimeout((()=>{var{selection:e}=g;if(e){var{anchor:t}=e,n=Ep.bP.leaf(g,t.path);if(R&&!Ep.EY.equals(n,R,{loose:!0}))return void sb.set(g,R)}sb.delete(g)}))})),l.createElement(bw.Provider,{value:a},l.createElement(gw.Provider,{value:r},l.createElement(Dw,{node:b,receivedUserInput:E},l.createElement(h,Nw(Nw({role:a?void 0:"textbox","aria-multiline":!a||void 0},m),{},{spellCheck:!(!Uy&&Hy)&&m.spellCheck,autoCorrect:Uy||!Hy?m.autoCorrect:"false",autoCapitalize:Uy||!Hy?m.autoCapitalize:"false","data-slate-editor":!0,"data-slate-node":"value",contentEditable:!a,zindex:-1,suppressContentEditableWarning:!0,ref:I,style:Nw(Nw({},f?{}:Nw({position:"relative",whiteSpace:"pre-wrap",wordWrap:"break-word"},x?{minHeight:x}:{})),p),onBeforeInput:(0,l.useCallback)((e=>{if(!Uy&&!a&&!Lw(e,m.onBeforeInput)&&Db.hasSelectableTarget(g,e.target)&&(e.preventDefault(),!Db.isComposing(g))){var t=e.data;Ep.KE.insertText(g,t)}}),[m.onBeforeInput,g,a]),onInput:(0,l.useCallback)((e=>{if(!Lw(e,m.onInput))if(P.current)P.current.handleInput();else{for(var t of w.current)t();w.current=[]}}),[m.onInput]),onBlur:(0,l.useCallback)((e=>{if(!a&&!z.isUpdatingSelection&&Db.hasSelectableTarget(g,e.target)&&!Lw(e,m.onBlur)){var t=Db.findDocumentOrShadowRoot(g);if(z.latestElement!==t.activeElement){var{relatedTarget:n}=e;if(!(n===Db.toDOMNode(g,g)||vb(n)&&n.hasAttribute("data-slate-spacer"))){if(null!=n&&yb(n)&&Db.hasDOMNode(g,n)){var r=Db.toSlateNode(g,n);if(Ep.Hg.isElement(r)&&!g.isVoid(r))return}if(jy){var o=kb(t);null==o||o.removeAllRanges()}nb.delete(g)}}}}),[a,z.isUpdatingSelection,z.latestElement,g,m.onBlur]),onClick:(0,l.useCallback)((e=>{if(Db.hasTarget(g,e.target)&&!Lw(e,m.onClick)&&yb(e.target)){var t=Db.toSlateNode(g,e.target),n=Db.findPath(g,t);if(!Ep.KE.hasPath(g,n)||Ep.bP.get(g,n)!==t)return;if(3===e.detail&&n.length>=1){var r=n;if(!Ep.Hg.isElement(t)||!Ep.KE.isBlock(g,t)){var o,i=Ep.KE.above(g,{match:e=>Ep.Hg.isElement(e)&&Ep.KE.isBlock(g,e),at:n});r=null!==(o=null==i?void 0:i[1])&&void 0!==o?o:n.slice(0,1)}var s=Ep.KE.range(g,r);return void Ep.gB.select(g,s)}if(a)return;var l=Ep.KE.start(g,n),c=Ep.KE.end(g,n),u=Ep.KE.void(g,{at:l}),d=Ep.KE.void(g,{at:c});if(u&&d&&Ep.wA.equals(u[1],d[1])){var p=Ep.KE.range(g,l);Ep.gB.select(g,p)}}}),[g,m.onClick,a]),onCompositionEnd:(0,l.useCallback)((e=>{if(Db.hasSelectableTarget(g,e.target)){var t;if(Db.isComposing(g)&&Promise.resolve().then((()=>{y(!1),rb.set(g,!1)})),null===(t=P.current)||void 0===t||t.handleCompositionEnd(e),Lw(e,m.onCompositionEnd)||Ny)return;if(!jy&&!Vy&&!Iy&&!$y&&!Ky&&e.data){var n=sb.get(g);sb.delete(g),void 0!==n&&(lb.set(g,g.marks),g.marks=n),Ep.KE.insertText(g,e.data);var r=lb.get(g);lb.delete(g),void 0!==r&&(g.marks=r)}}}),[m.onCompositionEnd,g]),onCompositionUpdate:(0,l.useCallback)((e=>{Db.hasSelectableTarget(g,e.target)&&!Lw(e,m.onCompositionUpdate)&&(Db.isComposing(g)||(y(!0),rb.set(g,!0)))}),[m.onCompositionUpdate,g]),onCompositionStart:(0,l.useCallback)((e=>{if(Db.hasSelectableTarget(g,e.target)){var t;if(null===(t=P.current)||void 0===t||t.handleCompositionStart(e),Lw(e,m.onCompositionStart)||Ny)return;y(!0);var{selection:n}=g;if(n&&Ep.Q6.isExpanded(n))return void Ep.KE.deleteFragment(g)}}),[m.onCompositionStart,g]),onCopy:(0,l.useCallback)((e=>{!Db.hasSelectableTarget(g,e.target)||Lw(e,m.onCopy)||Vw(e)||(e.preventDefault(),Db.setFragmentData(g,e.clipboardData,"copy"))}),[m.onCopy,g]),onCut:(0,l.useCallback)((e=>{if(!a&&Db.hasSelectableTarget(g,e.target)&&!Lw(e,m.onCut)&&!Vw(e)){e.preventDefault(),Db.setFragmentData(g,e.clipboardData,"cut");var{selection:t}=g;if(t)if(Ep.Q6.isExpanded(t))Ep.KE.deleteFragment(g);else{var n=Ep.bP.parent(g,t.anchor.path);Ep.KE.isVoid(g,n)&&Ep.gB.delete(g)}}}),[a,g,m.onCut]),onDragOver:(0,l.useCallback)((e=>{if(Db.hasTarget(g,e.target)&&!Lw(e,m.onDragOver)){var t=Db.toSlateNode(g,e.target);Ep.Hg.isElement(t)&&Ep.KE.isVoid(g,t)&&e.preventDefault()}}),[m.onDragOver,g]),onDragStart:(0,l.useCallback)((e=>{if(!a&&Db.hasTarget(g,e.target)&&!Lw(e,m.onDragStart)){var t=Db.toSlateNode(g,e.target),n=Db.findPath(g,t);if(Ep.Hg.isElement(t)&&Ep.KE.isVoid(g,t)||Ep.KE.void(g,{at:n,voids:!0})){var r=Ep.KE.range(g,n);Ep.gB.select(g,r)}z.isDraggingInternally=!0,Db.setFragmentData(g,e.dataTransfer,"drag")}}),[a,g,m.onDragStart,z]),onDrop:(0,l.useCallback)((e=>{if(!a&&Db.hasTarget(g,e.target)&&!Lw(e,m.onDrop)){e.preventDefault();var t=g.selection,n=Db.findEventRange(g,e),r=e.dataTransfer;Ep.gB.select(g,n),z.isDraggingInternally&&(!t||Ep.Q6.equals(t,n)||Ep.KE.void(g,{at:n,voids:!0})||Ep.gB.delete(g,{at:t})),Db.insertData(g,r),Db.isFocused(g)||Db.focus(g)}}),[a,g,m.onDrop,z]),onDragEnd:(0,l.useCallback)((e=>{!a&&z.isDraggingInternally&&m.onDragEnd&&Db.hasTarget(g,e.target)&&m.onDragEnd(e)}),[a,z,m,g]),onFocus:(0,l.useCallback)((e=>{if(!a&&!z.isUpdatingSelection&&Db.hasEditableTarget(g,e.target)&&!Lw(e,m.onFocus)){var t=Db.toDOMNode(g,g),n=Db.findDocumentOrShadowRoot(g);if(z.latestElement=n.activeElement,Oy&&e.target!==t)return void t.focus();nb.set(g,!0)}}),[a,z,g,m.onFocus]),onKeyDown:(0,l.useCallback)((e=>{if(!a&&Db.hasEditableTarget(g,e.target)){var t;null===(t=P.current)||void 0===t||t.handleKeyDown(e);var{nativeEvent:n}=e;if(Db.isComposing(g)&&!1===n.isComposing&&(rb.set(g,!1),y(!1)),Lw(e,m.onKeyDown)||Db.isComposing(g))return;var{selection:r}=g,o=g.children[null!==r?r.focus.path[0]:0],i="rtl"===uy()(Ep.bP.string(o));if(zw.isRedo(n)){e.preventDefault();var s=g;return void("function"==typeof s.redo&&s.redo())}if(zw.isUndo(n)){e.preventDefault();var l=g;return void("function"==typeof l.undo&&l.undo())}if(zw.isMoveLineBackward(n))return e.preventDefault(),void Ep.gB.move(g,{unit:"line",reverse:!0});if(zw.isMoveLineForward(n))return e.preventDefault(),void Ep.gB.move(g,{unit:"line"});if(zw.isExtendLineBackward(n))return e.preventDefault(),void Ep.gB.move(g,{unit:"line",edge:"focus",reverse:!0});if(zw.isExtendLineForward(n))return e.preventDefault(),void Ep.gB.move(g,{unit:"line",edge:"focus"});if(zw.isMoveBackward(n))return e.preventDefault(),void(r&&Ep.Q6.isCollapsed(r)?Ep.gB.move(g,{reverse:!i}):Ep.gB.collapse(g,{edge:i?"end":"start"}));if(zw.isMoveForward(n))return e.preventDefault(),void(r&&Ep.Q6.isCollapsed(r)?Ep.gB.move(g,{reverse:i}):Ep.gB.collapse(g,{edge:i?"start":"end"}));if(zw.isMoveWordBackward(n))return e.preventDefault(),r&&Ep.Q6.isExpanded(r)&&Ep.gB.collapse(g,{edge:"focus"}),void Ep.gB.move(g,{unit:"word",reverse:!i});if(zw.isMoveWordForward(n))return e.preventDefault(),r&&Ep.Q6.isExpanded(r)&&Ep.gB.collapse(g,{edge:"focus"}),void Ep.gB.move(g,{unit:"word",reverse:i});if(Uy){if((Fy||jy)&&r&&(zw.isDeleteBackward(n)||zw.isDeleteForward(n))&&Ep.Q6.isCollapsed(r)){var c=Ep.bP.parent(g,r.anchor.path);if(Ep.Hg.isElement(c)&&Ep.KE.isVoid(g,c)&&(Ep.KE.isInline(g,c)||Ep.KE.isBlock(g,c)))return e.preventDefault(),void Ep.KE.deleteBackward(g,{unit:"block"})}}else{if(zw.isBold(n)||zw.isItalic(n)||zw.isTransposeCharacter(n))return void e.preventDefault();if(zw.isSoftBreak(n))return e.preventDefault(),void Ep.KE.insertSoftBreak(g);if(zw.isSplitBlock(n))return e.preventDefault(),void Ep.KE.insertBreak(g);if(zw.isDeleteBackward(n))return e.preventDefault(),void(r&&Ep.Q6.isExpanded(r)?Ep.KE.deleteFragment(g,{direction:"backward"}):Ep.KE.deleteBackward(g));if(zw.isDeleteForward(n))return e.preventDefault(),void(r&&Ep.Q6.isExpanded(r)?Ep.KE.deleteFragment(g,{direction:"forward"}):Ep.KE.deleteForward(g));if(zw.isDeleteLineBackward(n))return e.preventDefault(),void(r&&Ep.Q6.isExpanded(r)?Ep.KE.deleteFragment(g,{direction:"backward"}):Ep.KE.deleteBackward(g,{unit:"line"}));if(zw.isDeleteLineForward(n))return e.preventDefault(),void(r&&Ep.Q6.isExpanded(r)?Ep.KE.deleteFragment(g,{direction:"forward"}):Ep.KE.deleteForward(g,{unit:"line"}));if(zw.isDeleteWordBackward(n))return e.preventDefault(),void(r&&Ep.Q6.isExpanded(r)?Ep.KE.deleteFragment(g,{direction:"backward"}):Ep.KE.deleteBackward(g,{unit:"word"}));if(zw.isDeleteWordForward(n))return e.preventDefault(),void(r&&Ep.Q6.isExpanded(r)?Ep.KE.deleteFragment(g,{direction:"forward"}):Ep.KE.deleteForward(g,{unit:"word"}))}}}),[a,g,m.onKeyDown]),onPaste:(0,l.useCallback)((e=>{a||!Db.hasEditableTarget(g,e.target)||Lw(e,m.onPaste)||(!Uy||(e=>e.clipboardData&&""!==e.clipboardData.getData("text/plain")&&1===e.clipboardData.types.length)(e.nativeEvent)||jy)&&(e.preventDefault(),Db.insertData(g,e.clipboardData))}),[a,g,m.onPaste])}),l.createElement(Ow,{decorations:M,node:g,renderElement:s,renderPlaceholder:u,renderLeaf:c,selection:g.selection})))))},Rw=e=>{var{attributes:t,children:n}=e;return l.createElement("span",Nw({},t),n,Ny&&l.createElement("br",null))},Fw=()=>[],Bw=(e,t)=>{if(t.getBoundingClientRect&&(!e.selection||e.selection&&Ep.Q6.isCollapsed(e.selection))){var n=t.startContainer.parentElement;n.getBoundingClientRect=t.getBoundingClientRect.bind(t),xy(n,{scrollMode:"if-needed"}),delete n.getBoundingClientRect}},Lw=(e,t)=>{if(!t)return!1;var n=t(e);return null!=n?n:e.isDefaultPrevented()||e.isPropagationStopped()},Vw=e=>yb(e.target)&&(e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement),Kw=(e,t)=>{if(!t)return!1;var n=t(e);return null!=n?n:e.defaultPrevented},$w=(0,l.createContext)(!1);var Hw=(0,l.createContext)({});var Uw=["editor","children","onChange","onSelectionChange","onValueChange","initialValue"],qw=e=>{var{editor:t,children:n,onChange:r,onSelectionChange:o,onValueChange:i,initialValue:a}=e,s=_y(e,Uw),[c,u]=l.useState((()=>{if(!Ep.bP.isNodeList(a))throw new Error("[Slate] initialValue is invalid! Expected a list of elements but got: ".concat(Ep.h6.stringify(a)));if(!Ep.KE.isEditor(t))throw new Error("[Slate] editor is invalid! You passed: ".concat(Ep.h6.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)((()=>(ib.set(t,h),()=>{ib.set(t,(()=>{}))})),[t,h]);var[f,m]=(0,l.useState)(Db.isFocused(t));return(0,l.useEffect)((()=>{m(Db.isFocused(t))}),[t]),$b((()=>{var e=()=>m(Db.isFocused(t));return Ty>=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(Hw.Provider,{value:d},l.createElement(xw.Provider,{value:c},l.createElement(Ay.Provider,{value:c.editor},l.createElement($w.Provider,{value:f},n))))},Ww=(e,t)=>{var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},Gw=(e,t,n)=>{var r=Db.toDOMRange(e,t).getBoundingClientRect(),o=Db.toDOMRange(e,n).getBoundingClientRect();return Ww(r,o)&&Ww(o,r)},Yw=(e,t)=>{var n=Ep.KE.range(e,Ep.Q6.end(t)),r=Array.from(Ep.KE.positions(e,{at:t})),o=0,i=r.length,a=Math.floor(i/2);if(Gw(e,Ep.KE.range(e,r[o]),n))return Ep.KE.range(e,r[o],n);if(r.length<2)return Ep.KE.range(e,r[r.length-1],n);for(;a!==r.length&&a!==o;)Gw(e,Ep.KE.range(e,r[a]),n)?i=a:o=a,a=Math.floor((o+i)/2);return Ep.KE.range(e,r[i],n)};function Zw(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 Jw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zw(Object(n),!0).forEach((function(t){ky(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Xw=(e,t)=>{var n=[];for(var[r,o]of Ep.KE.levels(e,{at:t})){var i=Db.findKey(e,r);n.push([o,i])}return n},Qw=(e,t)=>{try{return Db.findPath(e,t)}catch(e){}},ex=(e,t)=>{t&&qp(e,(()=>{dh(e),Yp(e,t)})),Db.focus(e)};var tx=n(90179),nx=n.n(tx),rx=Object.prototype.hasOwnProperty;function ox(e,t,n){for(n of e.keys())if(ix(n,t))return n}function ix(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--&&ix(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=ox(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=ox(t,o)))return!1;if(!ix(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(rx.call(e,n)&&++r&&!rx.call(t,n))return!1;if(!(n in t)||!ix(e[n],t[n]))return!1}return Object.keys(t).length===r}}return e!=e&&t!=t}function ax(e){const t=l.useRef(e),n=l.useRef(0);return ix(e,t.current)||(t.current=e,n.current+=1),l.useMemo((()=>t.current),[n.current])}function sx(e,t){return l.useMemo(e,ax(t))}const lx=e=>e,cx=e=>({_tag:"Left",value:e}),ux=e=>({_tag:"Right",value:e}),dx={dimap:(e,t,n)=>r=>t(n(e(r))),first:e=>([t,n])=>[e(t),n],right:e=>t=>"Left"===t._tag?t:ux(e(t.value)),wander:e=>t=>t.map(e)},px={empty:()=>{},foldMap:(e,t)=>{for(let n=0;n<t.length;n++){const r=e(t[n]);if(null!=r)return r}}},hx={empty:()=>[],foldMap:(e,t)=>{let n=[];return t.forEach((t=>{n=n.concat(e(t))})),n}},fx=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)}),mx={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}},gx=(e,t)=>{const n=t;return n._tag=e,n},vx=e=>(e._removable=!0,e);function yx(e,t,n){if(2===arguments.length){const n=(n,r)=>e(n,t(n,r));return n._tag=mx[e._tag][t._tag],n._removable=t._removable||!1,n}{const r=mx[e._tag][t._tag],o=(r,o)=>e(r,t(r,n(r,o)));return o._tag=mx[r][n._tag],o._removable=n._removable||!1,o}}const bx=gx("Equivalence",((e,t)=>t)),wx=(e,t)=>gx("Iso",((n,r)=>n.dimap(e,t,r))),xx=(e,t)=>gx("Lens",((n,r)=>n.dimap((t=>[e(t),t]),t,n.first(r)))),Sx=(e,t)=>gx("Prism",((n,r)=>n.dimap(e,(e=>((e,t,n)=>"Left"===n._tag?e(n.value):t(n.value))(lx,t,e)),n.right(r)))),_x=gx("Traversal",((e,t)=>e.dimap(lx,lx,e.wander(t)))),Cx=(e,t,n)=>e(dx,t)(n),Ex=(e,t,n)=>e(dx,(()=>t))(n),kx=(e,t)=>e(fx(hx),(e=>[e]))(t),zx=wx((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})),Px=e=>xx((t=>t[e]),(([t,n])=>Object.assign(Object.assign({},n),{[e]:t}))),Ax=e=>xx((t=>t[e]),(([t,n])=>{const r=n.slice();return r[e]=t,r})),Dx=Ax(0),Tx=e=>Sx((t=>e(t)?ux(t):cx(t)),lx),Ix=Symbol("__no_match__"),Mx=Tx((e=>e!==Ix)),Nx=Symbol("__remove_me__"),Ox=e=>vx(yx(xx((t=>0<=e&&e<t.length?t[e]:Ix),(([t,n])=>{if(t===Ix)return n;if(t===Nx)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}})),Mx)),jx=Sx((e=>void 0===e?cx(void 0):ux(e)),lx),Rx=xx((e=>{}),(([e,t])=>void 0===e?t:[e,...t])),Fx=xx((e=>{}),(([e,t])=>void 0===e?t:[...t,e])),Bx=yx(wx((e=>e.split("")),(e=>e.join(""))),_x),Lx=yx(wx((e=>e.split(/\b/)),(e=>e.join(""))),_x,Tx((e=>!/\s+/.test(e))));class Vx{constructor(e){this._ref=e}get _tag(){return this._ref._tag}get _removable(){return this._ref._removable}compose(e){return new Vx(yx(this._ref,e._ref))}iso(e,t){return new Vx(yx(this._ref,wx(e,t)))}lens(e,t){return new Vx(yx(this._ref,xx(e,(([e,n])=>t(n,e)))))}indexed(){return new Vx(yx(this._ref,zx))}prop(e){return new Vx(yx(this._ref,Px(e)))}path(...e){return 1===e.length&&(e=e[0].split(".")),new Vx(e.reduce(((e,t)=>yx(e,Px(t))),this._ref))}pick(e){return new Vx(yx(this._ref,(e=>xx((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 Vx(yx(this._ref,Ax(e)))}filter(e){return new Vx(yx(this._ref,(e=>yx(xx((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})),Dx))(e)))}valueOr(e){return new Vx(yx(this._ref,(e=>xx((t=>void 0===t?e:t),(([e,t])=>e)))(e)))}partsOf(e){const t="function"==typeof e?e(Kx):e;return new Vx(yx(this._ref,(e=>yx(xx((t=>{const n=kx(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 Cx(e,(()=>t[o++]),r)})),Dx))(t._ref)))}reread(e){return new Vx(yx(this._ref,(e=>xx((t=>e(t)),(([e,t])=>e)))(e)))}rewrite(e){return new Vx(yx(this._ref,(e=>xx((e=>e),(([t,n])=>e(t))))(e)))}optional(){return new Vx(yx(this._ref,jx))}guard_(){return e=>this.guard(e)}guard(e){return new Vx(yx(this._ref,(e=>Sx((t=>e(t)?ux(t):cx(t)),lx))(e)))}at(e){return new Vx(yx(this._ref,Ox(e)))}head(){return new Vx(yx(this._ref,Ox(0)))}index(e){return new Vx(yx(this._ref,Ox(e)))}find(e){return new Vx(yx(this._ref,(e=>vx(yx(xx((t=>{const n=t.findIndex(e);return-1===n?[Ix,-1]:[t[n],n]}),(([[e,t],n])=>{if(e===Ix)return n;if(e===Nx)return[...n.slice(0,t),...n.slice(t+1)];const r=n.slice();return r[t]=e,r})),Dx,Mx)))(e)))}elems(){return new Vx(yx(this._ref,_x))}to(e){return new Vx(yx(this._ref,(e=>gx("Getter",((t,n)=>t.dimap(e,lx,n))))(e)))}when(e){return new Vx(yx(this._ref,Tx(e)))}chars(){return new Vx(yx(this._ref,Bx))}words(){return new Vx(yx(this._ref,Lx))}prependTo(){return new Vx(yx(this._ref,Rx))}appendTo(){return new Vx(yx(this._ref,Fx))}}const Kx=new Vx(bx);function $x(e){return t=>((e,t)=>e(fx({}),lx)(t))(e._ref,t)}function Hx(e){return t=>((e,t)=>e(fx(px),lx)(t))(e._ref,t)}const Ux=(e,t,n)=>(t.has(n)?t:t.set(n,e())).get(n),qx=new WeakMap;function Wx(e,t){return((n,r,o)=>{const i=Ux((()=>new WeakMap),qx,r);return Ux((()=>{const n=t(Kx);return av((t=>{const r=t(e);return r instanceof Promise?r.then((e=>Gx(n,e))):Gx(n,r)}),((t,r,o)=>{const i="function"==typeof o?function(e){return t=>n=>Cx(e._ref,t,n)}(n)(o):function(e){return t=>n=>Ex(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 Gx=(e,t)=>"Traversal"===e._tag?function(e){return t=>kx(e._ref,t)}(e)(t):"Prism"===e._tag?Hx(e)(t):$x(e)(t);var Yx=Object.defineProperty,Zx=Object.defineProperties,Jx=Object.getOwnPropertyDescriptors,Xx=Object.getOwnPropertySymbols,Qx=Object.prototype.hasOwnProperty,eS=Object.prototype.propertyIsEnumerable,tS=(e,t,n)=>t in e?Yx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,nS=(e,t)=>{for(var n in t||(t={}))Qx.call(t,n)&&tS(e,n,t[n]);if(Xx)for(var n of Xx(t))eS.call(t,n)&&tS(e,n,t[n]);return e},rS=(e,t)=>Zx(e,Jx(t)),oS=(e,t)=>{var n={};for(var r in e)Qx.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Xx)for(var r of Xx(e))t.indexOf(r)<0&&eS.call(e,r)&&(n[r]=e[r]);return n},iS=["readOnly","plugins","onChange","decorate","renderElement","renderLeaf"],{ElementProvider:aS,useElementStore:sS}=ny({element:null},{name:"element"}),lS=im("event-editor")({blur:null,focus:null,last:null}),cS=lS.set,uS=lS.get,dS=(lS.use,(e,t={},n=!1)=>{var r;if(t[e.key]){const r=t[e.key],{plugins:o,then:i}=r,a=oS(r,["plugins","then"]);e=Ch()(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=>dS(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=nS({key:e.key},o(n,r));return Ch()(dS(i,t),i)},e._thenReplaced++)):(null==(r=t[e.key])?void 0:r.then)&&(e.then=t[e.key].then),e}),pS=(e,{components:t,overrideByKey:n}={})=>{let r={};return n&&(r=Sh()(n)),t&&Object.keys(t).forEach((e=>{r[e]||(r[e]={}),r[e].component=t[e]})),Object.keys(r).length>0?e.map((e=>dS(e,r))):e},hS=e=>{((e,t)=>{of(e,nS({at:[],nodes:e.childrenFactory()},t))})(e),e.history.undos=[],e.history.redos=[],e.operations=[]},fS="p",mS=(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}},gS=(e,t)=>{var n,r;return null!=(r=null!=(n=mS(e,t).type)?n:t)?r:""},vS=e=>(t,n={})=>(n[e.key]=t,dS(nS({},e),n)),yS="deserializeAst",bS=vS({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 kh()(n)}}},key:yS}),wS=(e,t)=>{var n;const{selection:r}=e;if(!r)return!1;const o=null==(n=((e,t={})=>Kp(e,rS(nS({},t),{block:!0})))(e,t))?void 0:n[1];return!!o&&(oh(e,r.focus,o)||uh(e.selection)&&oh(e,r.anchor,o))},xS="editorProtocol",SS=vS({key:xS,withOverrides:e=>{const{deleteBackward:t,deleteForward:n,deleteFragment:r}=e,o=()=>{wS(e)&&(e=>{const t=eh(e);t&&Object.keys(t).forEach((t=>{ah(e,t)}))})(e)};return e.deleteBackward=e=>{t(e),o()},e.deleteForward=e=>{n(e),o()},e.deleteFragment=e=>{r(e),o()},e}}),_S=vS({key:"history",withOverrides:e=>(0,kp.$k)(e)}),CS="inline-void",ES=vS({key:CS,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}}),kS=(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]},zS="insertData",PS=vS({key:zS,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=kS(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=oS(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=oS(r,["fragment"]);qp(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}}),AS="length",DS=vS({key:AS,withOverrides:(e,{options:t})=>{const{apply:n}=e;return e.apply=r=>{qp(e,(()=>{if(n(r),t.maxLength){const n=Qp(e,[]).length;if(n>t.maxLength){const r=n-t.maxLength;e.delete({distance:r,reverse:!0,unit:"character"})}}}))},e}}),TS=({apply:e,node:t,path:n=[],query:r,source:o})=>{hh([t,n],r)&&e(t,o instanceof Function?o():o),lh(t)&&t.children.forEach(((t,i)=>{TS({apply:e,node:t,path:n.concat([i]),query:r,source:o})}))},IS=(e,t)=>{const n=nS({},t),{then:r}=n;if(r){delete n.then;const{plugins:t}=n,o=IS(e,Ch()(r(e,n),n));if(t&&o.plugins){const e=uf()(lf()(t,"key"),lf()(o.plugins,"key"));o.plugins=pf()(e)}return o}return n},MS=(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=IS(e,n),!1!==n.enabled){if(e.pluginsByKey[n.key]){const t=e.plugins.indexOf(e.pluginsByKey[n.key]),r=Ch()(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;MS(e,n.plugins)}}))},NS=e=>`slate-${e}`,OS=({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=gf()(e,null!=t?t:[])),(n=nS(nS({},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 rS(nS({},n),{className:ff(NS(o),s)})},jS=(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=>Fp(e)?rS(nS({},e),{children:jS(e.children,t,n)}):e))),RS=(e,{descendants:t})=>{const n=(e=>t=>Wp(t)||Fp(t)&&e.isInline(t))(e),r=gS(e,fS),o=(i=r,()=>({children:[],type:i}));var i;return jS(t,n,o)},FS=(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}},BS=(e,t)=>{if(!t)return!1;const n=t(e);return null!=n?n:e.isPropagationStopped()},LS=(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 rS(nS({},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=>BS(t,e)))||BS(t,o)}},VS=(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&&_&&Fp(p)&&p.type&&!_.includes(p.type))return;const E=p[m];if(!C&&(!Rh(E)||S&&!S.includes(E)||E===f))return;const k=rS(nS({},r),{nodeValue:E}),z=null!=(o=null==b?void 0:b(k))?o:E;k.value=z;let P={};return c&&(P.className=ff(l,`slate-${m}-${E}`)),((null==h?void 0:h[E])||y)&&(P.className=null!=(i=null==y?void 0:y(k))?i:ff(l,null==h?void 0:h[z])),v&&(P.style=null!=(a=null==x?void 0:x(k))?a:rS(nS({},u),{[v]:z})),w&&(P=null!=(s=w(k,P))?s:P),P})(0,e,t);n&&(t=nS(nS({},t),n))}})),rS(nS({},t),{editor:e})),KS={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"},$S={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"},HS={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},US=e=>{const t=KS[e],n=$S[e],r=HS[e],o=t&&(0,bf.Sn)(t),i=n&&(0,bf.Sn)(n),a=r&&(0,bf.Sn)(r);return e=>!!(null==o?void 0:o(e))||(!(!Ah||!(null==i?void 0:i(e)))||!(Ah||!(null==a?void 0:a(e))))},qS={isBold:US("bold"),isCompose:US("compose"),isDeleteBackward:US("deleteBackward"),isDeleteForward:US("deleteForward"),isDeleteLineBackward:US("deleteLineBackward"),isDeleteLineForward:US("deleteLineForward"),isDeleteWordBackward:US("deleteWordBackward"),isDeleteWordForward:US("deleteWordForward"),isExtendBackward:US("extendBackward"),isExtendForward:US("extendForward"),isExtendLineBackward:US("extendLineBackward"),isExtendLineForward:US("extendLineForward"),isItalic:US("italic"),isMoveBackward:US("moveBackward"),isMoveForward:US("moveForward"),isMoveLineBackward:US("moveLineBackward"),isMoveLineForward:US("moveLineForward"),isMoveWordBackward:US("moveWordBackward"),isMoveWordForward:US("moveWordForward"),isRedo:US("redo"),isSoftBreak:US("insertSoftBreak"),isSplitBlock:US("splitBlock"),isTransposeCharacter:US("transposeCharacter"),isUndo:US("undo")},WS="nodeFactory",GS=vS({key:WS,withOverrides:e=>(e.blockFactory=t=>nS({children:[{text:""}],type:gS(e,fS)},t),e.childrenFactory=()=>[e.blockFactory()],e)}),YS="prevSelection",ZS=vS({handlers:{onKeyDown:e=>t=>{t.persist(),e.currentKeyboardEvent=t}},key:YS,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}}),JS="focus-editor-event",XS="blur-editor-event",QS="event-editor",e_=vS({handlers:{onBlur:e=>()=>{uS.focus()===e.id&&cS.focus(null),cS.blur(e.id),document.dispatchEvent(new CustomEvent(XS,{detail:{id:e.id}}))},onFocus:e=>()=>{cS.focus(e.id),document.dispatchEvent(new CustomEvent(JS,{detail:{id:e.id}}))}},key:QS}),t_=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"]),n_=e=>e.nodeType===Node.ELEMENT_NODE,r_=e=>{if(!n_(e))return!1;const t=e,n=t_.has(t.tagName),r=t.style.display.split(" ")[0];return""===r?n:!!r.startsWith("inline")||("inherit"===r&&t.parentElement?r_(t.parentElement):!!["contents","initial","none","revert","revert-layer","unset"].includes(r)&&n)},o_=e=>e.nodeType===Node.TEXT_NODE,i_=e=>{if(!n_(e))return!1;return!r_(e)},a_=e=>{e.inlineFormattingContext=null},s_=(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&&i_(t))return!0;t=(null==t?void 0:t.nextSibling)||null}if(!t)return!0;if(i_(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},l_=(e,t)=>{n_(e)?u_(e,t):o_(e)?s_(e,t):c_(e,t)},c_=(e,t)=>{const n=Array.from(e.childNodes);for(const e of n)l_(e,t)},u_=(e,t)=>{const n=r_(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||a_(t),c_(e,t),n||a_(t),t.whiteSpaceRule=r},d_=(e,t)=>Array.from(t.childNodes).flatMap(m_(e)),p_=(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=kh()(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(!kh()(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=kh()(n),o=r.getAttribute(t);if(!Rh(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(kS(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=nS(nS({},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 rS(nS({},i),{node:v})},h_=(e,t)=>{var n;const r=((e,t)=>{let n;return[...e.plugins].reverse().some((r=>(n=p_(e,r,{element:t}),!!n))),n})(e,t);if(r){const{node:o,withoutChildren:i}=r;let a=null!=(n=o.children)?n:d_(e,t);return(0===a.length||i)&&(a=[{text:""}]),(0,am.Y)("element",o,a)}},f_=(e,t)=>{const n=((e,t)=>{let n={};return[...e.plugins].reverse().forEach((r=>{const o=p_(e,r,{deserializeLeaf:!0,element:t});o&&(n=nS(nS({},n),o.node))})),n})(e,t);return d_(e,t).reduce(((e,t)=>{if(!t)return e;if(Fp(t))Object.keys(n).length>0&&(r={node:t,query:{filter:([e])=>Wp(e)},source:n},TS(rS(nS({},r),{apply:uf()}))),e.push(t);else{const r=nS({},n);Wp(t)&&t.text&&Object.keys(r).forEach((e=>{r[e]&&t[e]&&(r[e]=t[e])})),e.push((0,am.Y)("text",r,t))}var r;return e}),[])},m_=e=>t=>{const n=(e=>{if(o_(e))return e.textContent||""})(t);if(n)return n;if(!n_(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,am.Y)("fragment",{},d_(e,t))})(e,t);if(o)return o;const i=h_(e,t);return i||f_(e,t)},g_=(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 u_(t,{inlineFormattingContext:null,whiteSpaceRule:"normal"}),t})(n));const r=((e,t)=>m_(e)(t))(e,n);return RS(e,{descendants:r})},v_=e=>(new DOMParser).parseFromString(e,"text/html"),y_="deserializeHtml",b_=vS({key:y_,then:e=>({editor:{insertData:{format:"text/html",getFragment:({data:t})=>{const n=v_(t);return g_(e,{element:n.body})}}}})}),w_=vS({key:"react",withOverrides:e=>{const t=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 eb.set(n,new WeakMap),n.addMark=(e,t)=>{var r,o;null===(r=ab.get(n))||void 0===r||r(),!sb.get(n)&&null!==(o=cb.get(n))&&void 0!==o&&o.length&&sb.set(n,null),lb.delete(n),a(e,t)},n.removeMark=e=>{var t;!sb.get(n)&&null!==(t=cb.get(n))&&void 0!==t&&t.length&&sb.set(n,null),lb.delete(n),s(e)},n.deleteBackward=e=>{if("line"!==e)return i(e);if(n.selection&&Ep.Q6.isCollapsed(n.selection)){var t=Ep.KE.above(n,{match:e=>Ep.Hg.isElement(e)&&Ep.KE.isBlock(n,e),at:n.selection});if(t){var[,r]=t,o=Ep.KE.range(n,r,n.selection.anchor),a=Yw(n,o);Ep.Q6.isCollapsed(a)||Ep.gB.delete(n,{at:a})}}},n.apply=t=>{var o=[],i=[],a=cb.get(n);if(null!=a&&a.length){var s=a.map((e=>Bb(e,t))).filter(Boolean);cb.set(n,s)}var l=db.get(n);l&&db.set(n,Fb(n,l,t));var c=ub.get(n);if(null!=c&&c.at){var u=Ep.bR.isPoint(null==c?void 0:c.at)?Rb(n,c.at,t):Fb(n,c.at,t);ub.set(n,u?Jw(Jw({},c),{},{at:u}):null)}switch(t.type){case"insert_text":case"remove_text":case"set_node":case"split_node":o.push(...Xw(n,t.path));break;case"set_selection":var d;null===(d=ob.get(n))||void 0===d||d.unref(),ob.delete(n);break;case"insert_node":case"remove_node":o.push(...Xw(n,Ep.wA.parent(t.path)));break;case"merge_node":var p=Ep.wA.previous(t.path);o.push(...Xw(n,p));break;case"move_node":var h,f=Ep.wA.common(Ep.wA.parent(t.path),Ep.wA.parent(t.newPath));o.push(...Xw(n,f)),Ep.wA.isBefore(t.path,t.newPath)?(o.push(...Xw(n,Ep.wA.parent(t.path))),h=t.newPath):(o.push(...Xw(n,Ep.wA.parent(t.newPath))),h=t.path);var m=Ep.bP.get(e,Ep.wA.parent(h)),g=Db.findKey(n,m),v=Ep.KE.pathRef(n,Ep.wA.parent(h));i.push([v,g])}for(var[y,b]of(r(t),o)){var[w]=Ep.KE.node(n,y);Qy.set(w,b)}for(var[x,S]of i)if(x.current){var[_]=Ep.KE.node(n,x.current);Qy.set(_,S)}},n.setFragmentData=e=>{var{selection:r}=n;if(r){var[o,i]=Ep.Q6.edges(r),a=Ep.KE.void(n,{at:o.path}),s=Ep.KE.void(n,{at:i.path});if(!Ep.Q6.isCollapsed(r)||a){var l=Db.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=Db.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":""})),wb(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",_b(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))||Eb(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&&Ep.gB.splitNodes(n,{always:!0}),n.insertText(i),o=!0;return!0}return!1},n.onChange=e=>{(Ty<18?Fn.unstable_batchedUpdates:e=>e())((()=>{var t=ib.get(n);t&&t(e),o(e)}))},n}(e),{reset:n}=t;return t.reset=()=>{const t=(e=>Db.isFocused(e))(e);n(),t&&((e,{edge:t="start"}={})=>{const n="start"===t?Xp(e,[]):Zp(e,[]);ex(e,n)})(e,{edge:"start"})},t}}),x_=(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:w_()),"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:_S()),"object"==typeof r&&(null==r?void 0:r.nodeFactory)||k.push(null!=(c=null==(l=null==e?void 0:e.pluginsByKey)?void 0:l.nodeFactory)?c:GS()),"object"==typeof r&&(null==r?void 0:r.eventEditor)||k.push(null!=(d=null==(u=null==e?void 0:e.pluginsByKey)?void 0:u["event-editor"])?d:e_()),"object"==typeof r&&(null==r?void 0:r.inlineVoid)||k.push(null!=(h=null==(p=null==e?void 0:e.pluginsByKey)?void 0:p["inline-void"])?h:ES()),"object"==typeof r&&(null==r?void 0:r.insertData)||k.push(null!=(m=null==(f=null==e?void 0:e.pluginsByKey)?void 0:f.insertData)?m:PS()),"object"==typeof r&&(null==r?void 0:r.selection)||k.push(null!=(v=null==(g=null==e?void 0:e.pluginsByKey)?void 0:g.prevSelection)?v:ZS()),"object"==typeof r&&(null==r?void 0:r.length)||!Rh(n)||k.push(null!=(b=null==(y=null==e?void 0:e.pluginsByKey)?void 0:y.length)?b:DS({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.deserializeHtml)?x:b_()),"object"==typeof r&&(null==r?void 0:r.deserializeAst)||k.push(null!=(_=null==(S=null==e?void 0:e.pluginsByKey)?void 0:S.deserializeAst)?_:bS()),"object"==typeof r&&(null==r?void 0:r.editorProtocol)||k.push(null!=(E=null==(C=null==e?void 0:e.pluginsByKey)?void 0:C.editorProtocol)?E:SS())}k=[...k,...r],e.plugins=[],e.pluginsByKey={},MS(e,k),e.plugins.forEach((t=>{if(t.overrideByKey){const n=e.plugins.map((e=>dS(e,t.overrideByKey)));e.plugins=[],e.pluginsByKey={},MS(e,n)}}))},S_=e=>()=>{console.warn(`editor.${e} should have been overriden but was not. Please report this issue here: https://github.com/udecode/plate/issues`)},__=(e={})=>{var t=e,{components:n,editor:r=jp(),normalizeInitialValue:o,overrideByKey:i,plugins:a=[]}=t,s=oS(t,["components","editor","normalizeInitialValue","overrideByKey","plugins"]);a=pS(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=()=>hS(i),i.redecorate=()=>S_("redecorate"),i.plate={get set(){return S_("plate.set"),null}},i.key||(i.key=Math.random()),x_(i,{disableCorePlugins:t,maxLength:r,plugins:o}),i.plugins.forEach((e=>{e.withOverrides&&(i=e.withOverrides(i,e))})),i})(r,nS({plugins:a},s));return o&&ih(l,{force:!0}),l},C_=(e={})=>{const t=__(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},E_=e=>(t,n,{composing:r}={})=>!!US(e)(n)&&!!r===(e=>Db.isComposing(e))(t),k_=rS(nS({},qS),{isTab:E_("tab"),isUntab:E_("untab")}),z_=(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:mw,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=OS({attributes:c.attributes,dangerouslyAllowAttributes:n,nodeProps:a,props:o,type:i});let h=s;p.forEach((e=>{const t=e(rS(nS({},a),{key:r}));t&&(h=t(rS(nS({},a),{children:h})))}));let f=l.createElement(u,nS({},a),h);return d.forEach((e=>{const t=e(rS(nS({},a),{key:r}));t&&(f=t(rS(nS({},a),{children:f})))})),l.createElement(aS,{element:c,scope:r},f)}})(e,t))})),function(r){const o=VS(e,r);let i;return n.some((e=>(i=e(o),!!i))),i||(t?t(o):l.createElement(mw,nS({},o)))}};function P_(e){var t=e,{attributes:n,children:r,editor:o,leaf:i,nodeProps:a,text:s}=t,c=oS(t,["attributes","children","editor","leaf","nodeProps","text"]);return l.createElement("span",nS(nS({},n),c),r)}var A_=["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"],D_=(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:P_;return e=OS({attributes:a.attributes,dangerouslyAllowAttributes:n,nodeProps:e,props:o,type:i}),l.createElement(s,nS({},e),r)}return r})(0,e))})),function(r){const o=VS(e,r);return n.forEach((e=>{const t=e(o);void 0!==t&&(o.children=t)})),t?t(o):l.createElement(P_,nS({},o))}},{PlateControllerProvider:T_,plateControllerStore:I_,usePlateControllerStore:M_}=ny({activeId:av(null),editorStores:av({}),primaryEditorIds:av([])},{name:"plateController"}),N_=()=>M_().set,O_=e=>{const t=l.useMemo((()=>av((t=>{const n=t(I_.atom.editorStores),r=e=>{var t;return e&&null!=(t=n[e])?t:null};if(e)return r(e);const o=[t(I_.atom.activeId),...t(I_.atom.primaryEditorIds)];for(const e of o){const t=r(e);if(t)return t}return null}))),[e]);return M_().get.atom(t)},{PlateProvider:j_,plateStore:R_,usePlateStore:F_}=(Symbol("global-plate"),((e={})=>{var t=e,{decorate:n=null,editor:r=C_(),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=oS(t,["decorate","editor","editorRef","id","isMounted","onChange","onSelectionChange","onValueChange","plugins","primary","rawPlugins","readOnly","renderElement","renderLeaf","value","versionDecorate","versionEditor","versionSelection"]);return ny(nS({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:av((t=>({editor:t(e.editor),version:t(e.versionEditor)}))),trackedSelection:av((t=>({selection:t(e.editor).selection,version:t(e.versionSelection)})))}),name:"plate"})})()),B_=(e,{debugHookName:t="usePlateEditorStore"}={})=>{var n;const r=null!=(n=F_(e).store({warnIfNoStore:!1}))?n:null,[o]=l.useState(!!r),i=o?r:O_(e),a=!!M_().store({warnIfNoStore:!1}),s=l.useMemo((()=>_v()),[]);if(!i){if(a)return s;throw new Error(`${t} must be used inside a Plate or PlateController`)}return i},L_=(e,t)=>{const n=B_(e,nS({debugHookName:"usePlateSelectors"},t));return F_({store:n}).get},V_=(e,t)=>{const n=B_(e,nS({debugHookName:"usePlateActions"},t));return F_({store:n}).set},K_=(e,t,n={})=>{const r=l.useRef(1),o=V_(t,nS({debugHookName:"useIncrementVersion"},n))[e]();return l.useCallback((()=>{const e=r.current+1;o(e),r.current=e}),[o])},$_=(e,t={})=>L_(e,nS({debugHookName:"useEditorRef"},t)).editor(),H_=(e,t,n={})=>{var r=n,{equalityFn:o=((e,t)=>e===t),id:i}=r,a=oS(r,["equalityFn","id"]);const s=l.useMemo((()=>Iv(R_.atom.trackedEditor,(({editor:t},n)=>e(t,n)),o)),t);return L_(i,nS({debugHookName:"useEditorSelector"},a)).atom(s)},U_=({id:e})=>{const t=$_(e),n=((e,t={})=>{const n=K_("versionDecorate",e,nS({debugHookName:"useRedecorate"},t));return l.useCallback((()=>{n()}),[n])})(e),r=F_(e),o=Object.fromEntries(iS.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 q_({id:e,plugin:t}){var n;const r=$_(e);return null==(n=t.useHooks)||n.call(t,r,t),null}function W_({id:e}){const t=V_(e).isMounted(),n=L_(e).plugins(),r=$_(e),o=L_(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(q_,{id:e,key:t.key,plugin:t}))))}var G_=l.memo((({id:e})=>{const t=Sw(),n=K_("versionEditor",e);l.useEffect((()=>{n()}));const r=K_("versionSelection",e),o=l.useRef(t.selection),i=Y_(o.current,t.selection);return l.useEffect((()=>{i||r(),o.current=t.selection}),[t.selection,i,r]),null})),Y_=(e,t)=>!e&&!t||!(!e||!t)&&Ep.Q6.equals(e,t),Z_=({disableCorePlugins:e,id:t,plugins:n})=>{const r=$_(t),o=((e,t)=>{const n=B_(e,nS({debugHookName:"usePlateStates"},t));return F_({store:n}).use})(t),[i,a]=o.rawPlugins(),[,s]=o.plugins();l.useEffect((()=>{Rh(n)&&n!==i&&(a(i),x_(r,{disableCorePlugins:e,plugins:n}),s(r.plugins))}),[e,r,i,n,s,a])};function J_(e){var t=e,{children:n}=t,r=oS(t,["children"]);return Z_(r),l.createElement(l.Fragment,null,n)}function X_({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=e;for(;n--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t})()})),w=l.useMemo((()=>null!=r?r:__({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=Sh()(t);if(e.plugins.forEach((e=>{var t;const r=null==(t=e.normalizeInitialValue)?void 0:t.call(e,n);r&&(n=r)})),!yf()(t,n))return n})(w,e);return t&&(e=t),w.children=e,c&&ih(w,{force:!0}),w.children}),[]);return l.createElement(j_,{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(J_,{disableCorePlugins:n,id:b,plugins:h},e))}function Q_(e){const{id:t}=e;return l.createElement(X_,nS({key:null==t?void 0:t.toString()},e))}var eC=({id:e})=>{const t=L_(void 0,{debugHookName:"usePlateId"}).id(),n=null!=e?e:t,r=l.useMemo((()=>Wx(I_.atom.editorStores,(e=>e.prop(n)))),[n]),o=N_().atom(r,{warnIfNoStore:!1}),i=F_(n).store(),a=L_(n).primary(),s=N_().primaryEditorIds({warnIfNoStore:!1}),c=(0,l.useContext)($w),u=N_().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 tC({children:e,id:t}){var n;const r=(({id:e})=>{const t=$_(e),n=L_(e).value(),r=V_(e).value(),o=L_(e).onChange(),i=L_(e).onValueChange(),a=L_(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=$_(t);let i=l.createElement(qw,nS({},r),e);return null==(n=o.plugins)||n.forEach((e=>{const{renderAboveSlate:t}=e;t&&(i=l.createElement(t,null,i))})),i}var nC=l.forwardRef(((e,t)=>{var n=e,{renderEditable:r}=n,o=oS(n,["renderEditable"]);const{id:i}=o,a=$_(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=$_(t),r=L_(t),o=r.versionDecorate(),i=r.readOnly(),a=r.decorate(),s=r.renderLeaf(),c=r.renderElement(),u=l.useMemo((()=>FS(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((()=>z_(n,null!=c?c:null==e?void 0:e.renderElement)),[null==e?void 0:e.renderElement,n,c]),h=l.useMemo((()=>D_(n,null!=s?s:null==e?void 0:e.renderLeaf)),[null==e?void 0:e.renderLeaf,n,s]),f=sx((()=>{const t={decorate:d,renderElement:p,renderLeaf:h};return Rh(i)&&(t.readOnly=i),A_.forEach((r=>{const o=LS(n,{editableProps:e,handlerKey:r});o&&(t[r]=o)})),t}),[d,e,p,h,i]);return sx((()=>nS(nS({},nx()(e,[...A_,"renderElement","renderLeaf"])),f)),[e,f])})(o),c=l.createElement(jw,nS({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,nS({},s)))),n&&(d=l.createElement(l.Fragment,null,d,l.createElement(n,nS({},s))))}));let p=l.createElement(l.Fragment,null,d,r?r(c):c,l.createElement(U_,{id:i}),l.createElement(G_,{id:i}),l.createElement(W_,{id:i}),l.createElement(eC,{id:i}),u);return a.plugins.forEach((e=>{const{renderAboveEditable:t}=e;t&&(p=l.createElement(t,null,p))})),l.createElement(tC,{id:i},p)}));nC.displayName="PlateContent";var rC=Object.defineProperty,oC=Object.defineProperties,iC=Object.getOwnPropertyDescriptors,aC=Object.getOwnPropertySymbols,sC=Object.prototype.hasOwnProperty,lC=Object.prototype.propertyIsEnumerable,cC=(e,t,n)=>t in e?rC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,uC=(e,t)=>{for(var n in t||(t={}))sC.call(t,n)&&cC(e,n,t[n]);if(aC)for(var n of aC(t))lC.call(t,n)&&cC(e,n,t[n]);return e},dC=(e,t)=>oC(e,iC(t)),pC=(e,t)=>{var n={};for(var r in e)sC.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&aC)for(var r of aC(e))t.indexOf(r)<0&&lC.call(e,r)&&(n[r]=e[r]);return n},hC=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=pC(t,["attributes","editor","element","elementToAttributes","nodeProps"]);return{props:dC(uC(uC(uC(uC({},n),s),a),null==i?void 0:i(o)),{className:ff(e.className,null==a?void 0:a.className)}),ref:Mg(e.ref,n.ref)}})(dC(uC({},e),{ref:t}));return l.createElement(Tg,dC(uC({},n),{ref:r}))}));hC.displayName="PlateElement";var fC=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=pC(t,["attributes","editor","leaf","leafToAttributes","nodeProps","text"]);return{props:dC(uC(uC(uC(uC({},n),l),a),null==i?void 0:i(o)),{className:ff(e.className,null==a?void 0:a.className)}),ref:Mg(e.ref,n.ref)}})(dC(uC({},e),{ref:t}));return l.createElement(Ig,dC(uC({},n),{ref:r}))}));fC.displayName="PlateLeaf";var mC="backgroundColor",gC=Sm({inject:{props:{nodeKey:mC}},key:mC,then:(e,{type:t})=>({deserializeHtml:{getNode:e=>({[t]:e.style.backgroundColor}),isLeaf:!0,rules:[{validStyle:{backgroundColor:"*"}}]}})}),vC="color",yC=Sm({inject:{props:{defaultNodeValue:"black",nodeKey:vC}},key:vC,then:(e,{type:t})=>({deserializeHtml:{getNode(e){if(e.style.color)return{[t]:e.style.color}},isLeaf:!0,rules:[{validStyle:{color:"*"}}]}})}),bC="fontFamily",wC=(Sm({inject:{props:{nodeKey:bC}},key:bC,then:(e,{type:t})=>({deserializeHtml:{getNode:e=>({[t]:e.style.fontFamily}),isLeaf:!0,rules:[{validStyle:{fontFamily:"*"}}]}})}),"fontSize"),xC=(Sm({inject:{props:{nodeKey:wC}},key:wC,then:(e,{type:t})=>({deserializeHtml:{getNode:e=>({[t]:e.style.fontSize}),isLeaf:!0,rules:[{validStyle:{fontSize:"*"}}]}})}),"fontWeight"),SC=(Sm({inject:{props:{nodeKey:xC}},key:xC,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=$_(),i=H_((e=>!!e.selection),[]),a=H_((e=>Yh(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),Yp(o,o.selection),ex(o),((e,t,n=[])=>{e.selection&&qp(e,(()=>{const r=kh()(n);nf(e,{key:r}),nf(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&&(Yp(o,o.selection),ex(o),s&&nf(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}}),_C="p",CC=Sm({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=wm(e,ym);if(!t)return;const i=kh()(t);for(const t of i)if((0,bf.v_)(t,r))return r.preventDefault(),void xm(e,{activeType:n,inactiveType:o})}},isElement:!0,key:_C,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 EC="undefined"==typeof Element;EC||Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,!EC&&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,Sm({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(Wp(e)||!e.children[r])return null;e=e.children[r]}return e}catch(e){return null}})(e,n);if(i){if(r&&Fp(i)&&i.type!==r)return wh(e,{type:r},{at:n}),!0}else try{return tf(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 kC=(e,{options:{types:t}})=>{const n=kh()(t),{normalizeNode:r}=e;return e.normalizeNode=([t,o])=>{Fp(t)&&t.type&&n.includes(t.type)&&""===sh(t)?Gp(e,{at:o}):r([t,o])},e},zC=(Sm({key:"removeEmptyNodes",withOverrides:kC}),Object.defineProperty),PC=Object.defineProperties,AC=Object.getOwnPropertyDescriptors,DC=Object.getOwnPropertySymbols,TC=Object.prototype.hasOwnProperty,IC=Object.prototype.propertyIsEnumerable,MC=(e,t,n)=>t in e?zC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,NC=(e,t)=>{for(var n in t||(t={}))TC.call(t,n)&&MC(e,n,t[n]);if(DC)for(var n of DC(t))IC.call(t,n)&&MC(e,n,t[n]);return e},OC=(e,t)=>PC(e,AC(t)),jC=(e,t)=>{var n={};for(var r in e)TC.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&DC)for(var r of DC(e))t.indexOf(r)<0&&IC.call(e,r)&&(n[r]=e[r]);return n},RC=(e,{children:t,target:n,text:r="",url:o})=>({children:null!=t?t:[{text:r}],target:n,type:wm(e,GC),url:o}),FC=(e,t)=>{const{allowedSchemes:n,dangerouslySkipSanitization:r,defaultLinkAttributes:o}=Tm(e,GC),i=NC({},o),a=r?t.url:jh(t.url,{allowedSchemes:n})||void 0;return void 0!==a&&(i.href=a),"target"in t&&(i.target=t.target),i},BC=im("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}))),LC=BC.set,VC=BC.get,KC=()=>BC.use,$C=(Ng("input")({propsHook:({checked:e,ref:t,setChecked:n})=>{const r=l.useCallback((e=>{n(e.target.checked),LC.newTab(e.target.checked)}),[n]);return{props:{checked:e,onChange:r,type:"checkbox"},ref:t}},stateHook:()=>{const e=KC().updated(),t=l.useRef(null),[n,r]=l.useState(VC.newTab());return l.useEffect((()=>{t.current&&e&&setTimeout((()=>{var e;null==(e=t.current)||e.focus()}),0)}),[e]),{checked:n,ref:t,setChecked:r}}}),Ng("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);LC.url(t)}),[]);return{props:{defaultValue:VC.url(),onChange:t},ref:e.ref}},stateHook:()=>{const e=KC().updated(),t=l.useRef(null);return l.useEffect((()=>{t.current&&e&&setTimeout((()=>{const e=t.current;e&&(e.focus(),e.value=VC.url()?(e=>{try{return decodeURI(e)}catch(t){if(t instanceof URIError)return e;throw t}})(VC.url()):"")}),0)}),[e]),{ref:t}}}),Ng("a")({propsHook:({element:e})=>{const t=$_();if(!e)return{props:{}};const n=FC(t,e);return{props:OC(NC({},n),{"aria-label":"Open link in a new tab",onMouseOver:e=>{e.stopPropagation()},target:"_blank"})}},stateHook:()=>{const e=$_(),t=((e,t={})=>L_(e,nS({debugHookName:"useEditorSelection"},t)).trackedSelection().selection)(),n=l.useMemo((()=>yh(e,{match:{type:wm(e,GC)}})),[e,t]);if(!n)return{};const[r]=n;return{element:r}}}),(e,t)=>qp(e,(()=>{var n,r,o,i,a,s;if(null==t?void 0:t.split){if(Kp(e,{at:null==(n=e.selection)?void 0:n.anchor,match:{type:wm(e,GC)}}))return vh(e,{at:null==(r=e.selection)?void 0:r.anchor,match:t=>Fp(t)&&t.type===wm(e,GC)}),$C(e,{at:null==(o=e.selection)?void 0:o.anchor}),!0;if(Kp(e,{at:null==(i=e.selection)?void 0:i.focus,match:{type:wm(e,GC)}}))return vh(e,{at:null==(a=e.selection)?void 0:a.focus,match:t=>Fp(t)&&t.type===wm(e,GC)}),$C(e,{at:null==(s=e.selection)?void 0:s.focus}),!0}((e,t)=>{Ep.gB.unwrapNodes(e,Vp(e,t))})(e,NC({match:{type:wm(e,GC)}},t))}))),HC=(e,{text:t})=>{const n=Kp(e,{match:{type:wm(e,GC)}});if(n){const[r,o]=n;if((null==t?void 0:t.length)&&t!==Qp(e,o)){const n=r.children[0];of(e,{at:o,insertOptions:{select:!0},nodes:OC(NC({},n),{text:t})})}}},UC=(e,t)=>{var n=t,{target:r,url:o}=n,i=jC(n,["target","url"]);((e,t,n)=>{$p(e,null==n?void 0:n.at,n),Ep.gB.wrapNodes(e,t,n)})(e,{children:[],target:r,type:wm(e,GC),url:o},NC({split:!0},i))},qC=(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=Kp(e,{at:u,match:{type:wm(e,GC)}});if(n&&d)return e.insertText(a),!0;if(!r&&!WC(e,a))return;if(Rh(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)||gh(e,{target:o,url:a},{at:d[1]}),HC(e,{target:o,text:i,url:a}),!0;const p=yh(e,{at:u,match:{type:wm(e,GC)}}),[h,f]=null!=p?p:[];let m=!1;if(f&&(null==i?void 0:i.length)){i!==Qp(e,f)&&(m=!0)}if(uh(u))return $C(e,d?{at:d[1]}:{split:!0}),UC(e,{target:o,url:a}),HC(e,{target:o,text:i,url:a}),!0;m&&Gp(e,{at:f});const g=(v=null!=h?h:{},Ep.bP.extractProps(v));var v;const y=null==(c=e.selection)?void 0:c.focus.path;if(!y)return;const b=((e,t)=>Ep.bP.leaf(e,t))(e,y);return(null==i?void 0:i.length)||(i=a),((e,t,n)=>{fh(e,[RC(e,t)],n)})(e,OC(NC({},g),{children:[OC(NC({},b),{text:i})],target:o,url:a}),t),!0},WC=(e,t)=>{const{allowedSchemes:n,dangerouslySkipSanitization:r,isUrl:o}=Tm(e,GC);return!(o&&!o(t))&&!(!r&&!jh(t,{allowedSchemes:n,permitInvalid:!0}))},GC="a",YC=Sm({isElement:!0,isInline:!0,key:GC,options:{allowedSchemes:["http","https","mailto","tel"],dangerouslySkipSanitization:!1,defaultLinkAttributes:{},isUrl:e=>{if("string"!=typeof e)return!1;const t=e.match(Ih),n=e.match(Mh),r=t||n;if(!r)return!1;const o=r[1];if(!o)return!1;try{new URL(e)}catch(e){return!1}return Nh.test(o)||Oh.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&&WC(e,r))return{target:n.getAttribute("target")||"_blank",type:t,url:r}},rules:[{validNodeName:"A"}]},props:({element:t})=>({nodeProps:FC(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=()=>{qp(e,(()=>{var r;const i=e.selection;let a=Xh(e,i,o);if(a||(a=Qh(e)),!a)return;if(bh(e,{at:a,match:{type:wm(e,GC)}}))return;let s=Qp(e,a);s=null!=(r=null==t?void 0:t(s))?r:s,n(s)&&(Yp(e,a),qC(e,{url:s}),((e,t)=>{Ep.gB.collapse(e,t)})(e,{edge:"end"}))}))};return e.insertBreak=()=>{if(!ch(e.selection))return s();d(),s()},e.insertText=t=>{" "===t&&ch(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(qC(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&&ch(n)){const r=Kp(e,{at:n,match:{type:wm(e,GC)}});if(r){const[,o]=r;let i;oh(e,n.focus,o)&&(i=((e,t)=>{const n=Up(e,{at:t});if(n)return Zp(e,n[1])})(e,o)),rh(e,n.focus,o)&&(i=Zh(e,o)),i&&(t.newProperties={anchor:i,focus:i})}}}a(t)},e.normalizeNode=([t,n])=>{if(t.type===wm(e,GC)){const t=e.selection;if(t&&ch(t)&&rh(e,t.focus,n)){const t=Zh(e,n);if(t)Yp(e,t);else{const t=Ep.wA.next(n);fh(e,{text:""},{at:t}),Yp(e,t)}}}u([t,n])},e=kC(e,fm({editor:{},inject:{},key:"",options:{},type:""},{options:{types:i}}))}});function ZC(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=ZC(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function JC(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=ZC(e))&&(r&&(r+=" "),r+=t);return r}const XC=JC;function QC(e){const t=function(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return oE(Object.entries(e.classGroups),n).forEach((([e,n])=>{nE(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(),eE(n,t)||function(e){if(tE.test(e)){const t=tE.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 eE(e,t){if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?eE(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 tE=/^\[(.+)\]$/;function nE(e,t,n,r){e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return e.isThemeGetter?void nE(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach((([e,o])=>{nE(o,rE(t,e),n,r)}))}else{(""===e?t:rE(t,e)).classGroupId=n}}))}function rE(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 oE(e,t){return t?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))])):e}function iE(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 aE(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 sE=/\s+/;function lE(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=cE(e))&&(r&&(r+=" "),r+=t);return r}function cE(e){if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=cE(e[r]))&&(n&&(n+=" "),n+=t);return n}function uE(e,...t){let n,r,o,i=function(s){const l=t.reduce(((e,t)=>t(e)),e());return n=function(e){return{cache:iE(e.cacheSize),parseClassName:aE(e),...QC(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(sE).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(lE.apply(null,arguments))}}function dE(e){const t=t=>t[e]||[];return t.isThemeGetter=!0,t}const pE=/^\[(?:([a-z-]+):)?(.+)\]$/i,hE=/^\d+\/\d+$/,fE=new Set(["px","full","screen"]),mE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,gE=/\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$/,vE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,yE=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,bE=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function wE(e){return SE(e)||fE.has(e)||hE.test(e)}function xE(e){return OE(e,"length",jE)}function SE(e){return Boolean(e)&&!Number.isNaN(Number(e))}function _E(e){return OE(e,"number",SE)}function CE(e){return Boolean(e)&&Number.isInteger(Number(e))}function EE(e){return e.endsWith("%")&&SE(e.slice(0,-1))}function kE(e){return pE.test(e)}function zE(e){return mE.test(e)}const PE=new Set(["length","size","percentage"]);function AE(e){return OE(e,PE,RE)}function DE(e){return OE(e,"position",RE)}const TE=new Set(["image","url"]);function IE(e){return OE(e,TE,BE)}function ME(e){return OE(e,"",FE)}function NE(){return!0}function OE(e,t,n){const r=pE.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))}function jE(e){return gE.test(e)&&!vE.test(e)}function RE(){return!1}function FE(e){return yE.test(e)}function BE(e){return bE.test(e)}Symbol.toStringTag;function LE(){const e=dE("colors"),t=dE("spacing"),n=dE("blur"),r=dE("brightness"),o=dE("borderColor"),i=dE("borderRadius"),a=dE("borderSpacing"),s=dE("borderWidth"),l=dE("contrast"),c=dE("grayscale"),u=dE("hueRotate"),d=dE("invert"),p=dE("gap"),h=dE("gradientColorStops"),f=dE("gradientColorStopPositions"),m=dE("inset"),g=dE("margin"),v=dE("opacity"),y=dE("padding"),b=dE("saturate"),w=dE("scale"),x=dE("sepia"),S=dE("skew"),_=dE("space"),C=dE("translate"),E=()=>["auto",kE,t],k=()=>[kE,t],z=()=>["",wE,xE],P=()=>["auto",SE,kE],A=()=>["","0",kE],D=()=>[SE,_E],T=()=>[SE,kE];return{cacheSize:500,separator:":",theme:{colors:[NE],spacing:[wE,xE],blur:["none","",zE,kE],brightness:D(),borderColor:[e],borderRadius:["none","","full",zE,kE],borderSpacing:k(),borderWidth:z(),contrast:D(),grayscale:A(),hueRotate:T(),invert:A(),gap:k(),gradientColorStops:[e],gradientColorStopPositions:[EE,xE],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",kE]}],container:["container"],columns:[{columns:[zE]}],"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",kE]}],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",CE,kE]}],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",kE]}],grow:[{grow:A()}],shrink:[{shrink:A()}],order:[{order:["first","last","none",CE,kE]}],"grid-cols":[{"grid-cols":[NE]}],"col-start-end":[{col:["auto",{span:["full",CE,kE]},kE]}],"col-start":[{"col-start":P()}],"col-end":[{"col-end":P()}],"grid-rows":[{"grid-rows":[NE]}],"row-start-end":[{row:["auto",{span:[CE,kE]},kE]}],"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",kE]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",kE]}],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",kE,t]}],"min-w":[{"min-w":[kE,t,"min","max","fit"]}],"max-w":[{"max-w":[kE,t,"none","full","min","max","fit","prose",{screen:[zE]},zE]}],h:[{h:[kE,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[kE,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[kE,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[kE,t,"auto","min","max","fit"]}],"font-size":[{text:["base",zE,xE]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",_E]}],"font-family":[{font:[NE]}],"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",kE]}],"line-clamp":[{"line-clamp":["none",SE,_E]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",wE,kE]}],"list-image":[{"list-image":["none",kE]}],"list-style-type":[{list:["none","disc","decimal",kE]}],"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",wE,xE]}],"underline-offset":[{"underline-offset":["auto",wE,kE]}],"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",kE]}],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",kE]}],"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",DE]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",AE]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},IE]}],"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":[wE,kE]}],"outline-w":[{outline:[wE,xE]}],"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":[wE,xE]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",zE,ME]}],"shadow-color":[{shadow:[NE]}],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",zE,kE]}],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",kE]}],duration:[{duration:T()}],ease:[{ease:["linear","in","out","in-out",kE]}],delay:[{delay:T()}],animate:[{animate:["none","spin","ping","pulse","bounce",kE]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[CE,kE]}],"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",kE]}],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",kE]}],"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",kE]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[wE,xE,_E]}],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 VE=uE(LE);var KE=Object.defineProperty,$E=Object.defineProperties,HE=Object.getOwnPropertyDescriptors,UE=Object.getOwnPropertySymbols,qE=Object.prototype.hasOwnProperty,WE=Object.prototype.propertyIsEnumerable,GE=(e,t,n)=>t in e?KE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,YE=(e,t)=>{for(var n in t||(t={}))qE.call(t,n)&&GE(e,n,t[n]);if(UE)for(var n of UE(t))WE.call(t,n)&&GE(e,n,t[n]);return e};function ZE(...e){return VE(XC(e))}function JE(e,t){const n=e;return l.forwardRef((function(e,r){return l.createElement(n,((e,t)=>$E(e,HE(t)))(YE(YE({ref:r},t),e),{className:ZE(t.className,e.className)}))}))}var XE=n(42838),QE=n.n(XE);const ek={};function tk(e,t){"string"!=typeof t&&(t=tk.defaultChars);const n=function(e){let t=ek[e];if(t)return t;t=ek[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}))}tk.defaultChars=";/?:@&=+$,#",tk.componentChars="";const nk=tk,rk={};function ok(e,t,n){"string"!=typeof t&&(n=t,t=ok.defaultChars),void 0===n&&(n=!0);const r=function(e){let t=rk[e];if(t)return t;t=rk[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}ok.defaultChars=";/?:@&=+$,-_.!~*'()#",ok.componentChars="-_.!~*'()";const ik=ok;function ak(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 sk(){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 lk=/^([a-z0-9.+-]+:)/i,ck=/:[0-9]*$/,uk=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,dk=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),pk=["'"].concat(dk),hk=["%","/","?",";","#"].concat(pk),fk=["/","?","#"],mk=/^[+a-z0-9A-Z_-]{0,63}$/,gk=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,vk={javascript:!0,"javascript:":!0},yk={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};sk.prototype.parse=function(e,t){let n,r,o,i=e;if(i=i.trim(),!t&&1===e.split("#").length){const e=uk.exec(i);if(e)return this.pathname=e[1],e[2]&&(this.search=e[2]),this}let a=lk.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&&vk[a]||(i=i.substr(2),this.slashes=!0)),!vk[a]&&(o||a&&!yk[a])){let e,t,n=-1;for(let e=0;e<fk.length;e++)r=i.indexOf(fk[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<hk.length;e++)r=i.indexOf(hk[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(mk)){let r="";for(let e=0,t=n.length;e<t;e++)n.charCodeAt(e)>127?r+="x":r+=n[e];if(!r.match(mk)){const r=e.slice(0,t),o=e.slice(t+1),a=n.match(gk);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),yk[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this},sk.prototype.parseHost=function(e){let t=ck.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 bk=function(e,t){if(e&&e instanceof sk)return e;const n=new sk;return n.parse(e,t),n},wk=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,xk=/[\0-\x1F\x7F-\x9F]/,Sk=/[\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]/,_k=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/,Ck=/[\$\+<->\^`\|~\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]/,Ek=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,kk=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)))),zk=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((e=>e.charCodeAt(0))));var Pk;const Ak=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]]),Dk=null!==(Pk=String.fromCodePoint)&&void 0!==Pk?Pk: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 Tk(e){return Dk(function(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=Ak.get(e))&&void 0!==t?t:e}(e))}var Ik,Mk;function Nk(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)===Ik.NUM){let e=i+1,a=10,s=t.charCodeAt(e);(s|Ik.To_LOWER_BIT)===Ik.LOWER_X&&(a=16,i+=1,e+=1);do{s=t.charCodeAt(++i)}while(s>=Ik.ZERO&&s<=Ik.NINE||16===a&&(s|Ik.To_LOWER_BIT)>=Ik.LOWER_A&&(s|Ik.To_LOWER_BIT)<=Ik.LOWER_F);if(e!==i){const s=t.substring(e,i),l=parseInt(s,a);if(t.charCodeAt(i)===Ik.SEMI)i+=1;else if(n)continue;r+=Tk(l),o=i}continue}let a=0,s=1,l=0,c=e[l];for(;i<t.length&&(l=Ok(e,c,l+1,t.charCodeAt(i)),!(l<0));i++,s++){c=e[l];const r=c&Mk.VALUE_LENGTH;if(r){n&&t.charCodeAt(i)!==Ik.SEMI||(a=l,s=0);const e=(r>>14)-1;if(0===e)break;l+=e}}if(0!==a){const t=(e[a]&Mk.VALUE_LENGTH)>>14;r+=1===t?String.fromCharCode(e[a]&~Mk.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 Ok(e,t,n,r){const o=(t&Mk.BRANCH_LENGTH)>>7,i=t&Mk.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"}(Ik||(Ik={})),function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(Mk||(Mk={}));const jk=Nk(kk);Nk(zk);function Rk(e){return jk(e,!1)}function Fk(e){for(let t=1;t<e.length;t++)e[t][0]+=e[t-1][0]+1;return e}new Map(Fk([[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(Fk([[824,"&nLtv;"],[7577,"&nLt;"]]))}],[0,{v:"&gg;",n:new Map(Fk([[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(Fk([[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 Bk=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]);String.prototype.codePointAt;function Lk(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)}}Lk(/[&<>'"]/g,Bk),Lk(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),Lk(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]));var Vk,Kk,$k;function Hk(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"}(Vk||(Vk={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict"}(Kk||(Kk={})),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"}($k||($k={}));const Uk=Object.prototype.hasOwnProperty;function qk(e,t){return Uk.call(e,t)}function Wk(e){const t=Array.prototype.slice.call(arguments,1);return t.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 Gk(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function Yk(e){return!(e>=55296&&e<=57343)&&(!(e>=64976&&e<=65007)&&(65535!=(65535&e)&&65534!=(65535&e)&&(!(e>=0&&e<=8)&&(11!==e&&(!(e>=14&&e<=31)&&(!(e>=127&&e<=159)&&!(e>1114111)))))))}function Zk(e){if(e>65535){const t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}const Jk=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,Xk=new RegExp(Jk.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),Qk=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function ez(e){return e.indexOf("\\")<0?e:e.replace(Jk,"$1")}function tz(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(Xk,(function(e,t,n){return t||function(e,t){if(35===t.charCodeAt(0)&&Qk.test(t)){const n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return Yk(n)?Zk(n):e}const n=Rk(e);return n!==e?n:e}(e,n)}))}const nz=/[&<>"]/,rz=/[&<>"]/g,oz={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function iz(e){return oz[e]}function az(e){return nz.test(e)?e.replace(rz,iz):e}const sz=/[.?*+^$[\]\\(){}|-]/g;function lz(e){return e.replace(sz,"\\$&")}function cz(e){switch(e){case 9:case 32:return!0}return!1}function uz(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 dz(e){return _k.test(e)||Ck.test(e)}function pz(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 hz(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const fz={mdurl:r,ucmicro:o};function mz(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 gz(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=tz(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=tz(e.slice(t,o)),i.pos=o,i.ok=!0),i}function vz(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+=tz(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+=tz(e.slice(t,i)),a}const yz={};function bz(){this.rules=Wk({},yz)}yz.code_inline=function(e,t,n,r,o){const i=e[t];return"<code"+o.renderAttrs(i)+">"+az(i.content)+"</code>"},yz.code_block=function(e,t,n,r,o){const i=e[t];return"<pre"+o.renderAttrs(i)+"><code>"+az(e[t].content)+"</code></pre>\n"},yz.fence=function(e,t,n,r,o){const i=e[t],a=i.info?tz(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)||az(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`},yz.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)},yz.hardbreak=function(e,t,n){return n.xhtmlOut?"<br />\n":"<br>\n"},yz.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},yz.text=function(e,t){return az(e[t].content)},yz.html_block=function(e,t){return e[t].content},yz.html_inline=function(e,t){return e[t].content},bz.prototype.renderAttrs=function(e){let t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t<n;t++)r+=" "+az(e.attrs[t][0])+'="'+az(e.attrs[t][1])+'"';return r},bz.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},bz.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},bz.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},bz.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 wz=bz;function xz(){this.__rules__=[],this.__cache__=null}xz.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},xz.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))}))}))},xz.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},xz.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},xz.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},xz.prototype.push=function(e,t,n){const r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},xz.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},xz.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach((function(e){e.enabled=!1})),this.enable(e,t)},xz.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},xz.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]};const Sz=xz;function _z(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}_z.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},_z.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},_z.prototype.attrSet=function(e,t){const n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r},_z.prototype.attrGet=function(e){const t=this.attrIndex(e);let n=null;return t>=0&&(n=this.attrs[t][1]),n},_z.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 Cz=_z;function Ez(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}Ez.prototype.Token=Cz;const kz=Ez,zz=/\r\n?|\n/g,Pz=/\0/g;function Az(e){return/^<\/a\s*>/i.test(e)}const Dz=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Tz=/\((c|tm|r)\)/i,Iz=/\((c|tm|r)\)/gi,Mz={c:"©",r:"®",tm:"™"};function Nz(e,t){return Mz[t.toLowerCase()]}function Oz(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(Iz,Nz)),"link_open"===r.type&&"auto"===r.info&&t--,"link_close"===r.type&&"auto"===r.info&&t++}}function jz(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];"text"!==r.type||t||Dz.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 Rz=/['"]/,Fz=/['"]/g;function Bz(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function Lz(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;){Fz.lastIndex=l;const u=Fz.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=pz(f)||dz(String.fromCharCode(f)),v=pz(m)||dz(String.fromCharCode(m)),y=uz(f),b=uz(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=Bz(i.content,u.index,p),e[d.token].content=Bz(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=Bz(i.content,u.index,"’"))}else h&&(i.content=Bz(i.content,u.index,"’"))}}}const Vz=[["normalize",function(e){let t;t=e.src.replace(zz,"\n"),t=t.replace(Pz,"�"),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--,Az(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=Gk(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&&(Tz.test(e.tokens[t].content)&&Oz(e.tokens[t].children),Dz.test(e.tokens[t].content)&&jz(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&&Rz.test(e.tokens[t].content)&&Lz(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 Kz(){this.ruler=new Sz;for(let e=0;e<Vz.length;e++)this.ruler.push(Vz[e][0],Vz[e][1])}Kz.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,r=t.length;n<r;n++)t[n](e)},Kz.prototype.State=kz;const $z=Kz;function Hz(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(cz(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}Hz.prototype.push=function(e,t,n){const r=new Cz(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},Hz.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},Hz.prototype.skipEmptyLines=function(e){for(let t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},Hz.prototype.skipSpaces=function(e){for(let t=this.src.length;e<t;e++){if(!cz(this.src.charCodeAt(e)))break}return e},Hz.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!cz(this.src.charCodeAt(--e)))return e+1;return e},Hz.prototype.skipChars=function(e,t){for(let n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},Hz.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},Hz.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(cz(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("")},Hz.prototype.Token=Cz;const Uz=Hz;function qz(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function Wz(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 Gz(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(!cz(e.src.charCodeAt(r)))return-1}return r}function Yz(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),!cz(i))?-1:o}const Zz="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",Jz="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Xz=new RegExp("^(?:"+Zz+"|"+Jz+"|\x3c!---?>|\x3c!--(?:[^-]|-[^-]|--[^>])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),Qz=new RegExp("^(?:"+Zz+"|"+Jz+")"),eP=[[/^<(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(Qz.source+"\\s*$"),/^$/,!1]];const tP=[["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&&!cz(s))return!1;if(45===a&&cz(s))return!1;for(;i<e.eMarks[o];){const t=e.src.charCodeAt(i);if(124!==t&&45!==t&&58!==t&&!cz(t))return!1;i++}let l=qz(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=qz(e,t).trim(),-1===l.indexOf("|"))return!1;if(e.sCount[t]-e.blkIndent>=4)return!1;c=Wz(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=qz(e,o).trim(),!l)break;if(e.sCount[o]-e.blkIndent>=4)break;if(c=Wz(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(!cz(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&&!cz(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=Yz(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=Gz(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=Yz(e,l),p<0)break;a=e.bMarks[l]+e.tShift[l]}else if(p=Gz(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(!cz(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(!cz(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(!cz(l.charCodeAt(o)))break;o++}if(o<i&&10!==l.charCodeAt(o)&&m)for(m="",o=p,a=h;o<i;){if(!cz(l.charCodeAt(o)))break;o++}if(o<i&&10!==l.charCodeAt(o))return!1;const v=hz(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<eP.length&&!eP[s][0].test(a);s++);if(s===eP.length)return!1;if(r)return eP[s][2];let l=t+1;if(!eP[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),eP[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&&!cz(a))return!1;if(r)return!0;i=e.skipSpacesBack(i,o);const l=e.skipCharsBack(i,35,o);l>o&&cz(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 nP(){this.ruler=new Sz;for(let e=0;e<tP.length;e++)this.ruler.push(tP[e][0],tP[e][1],{alt:(tP[e][2]||[]).slice()})}nP.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)}},nP.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)},nP.prototype.State=Uz;const rP=nP;function oP(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}oP.prototype.pushPending=function(){const e=new Cz("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},oP.prototype.push=function(e,t,n){this.pending&&this.pushPending();const r=new Cz(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},oP.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=pz(o)||dz(String.fromCharCode(o)),c=pz(s)||dz(String.fromCharCode(s)),u=uz(o),d=uz(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}},oP.prototype.Token=Cz;const iP=oP;function aP(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 sP=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;const lP=[];for(let e=0;e<256;e++)lP.push(0);function cP(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){lP[e.charCodeAt(0)]=1}));const uP={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;cP(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&cP(e,t[r].delimiters)}};function dP(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 pP={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;dP(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&dP(e,t[r].delimiters)}};const hP=/^([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])?)*)$/,fP=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;const mP=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,gP=/^&([a-z][a-z0-9]{1,31});/i;function vP(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 yP=[["text",function(e,t){let n=e.pos;for(;n<e.posMax&&!aP(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(sP);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&&cz(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),cz(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!==lP[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",uP.tokenize],["emphasis",pP.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),cz(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),cz(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),cz(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[hz(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),cz(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),cz(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),cz(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[hz(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(fP.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(hP.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(Xz);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(mP);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=Yk(t)?Zk(t):Zk(65533),n.markup=r[0],n.info="entity"}return e.pos+=r[0].length,!0}}else{const r=e.src.slice(n).match(gP);if(r){const n=Rk(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}]],bP=[["balance_pairs",function(e){const t=e.tokens_meta,n=e.tokens_meta.length;vP(e.delimiters);for(let e=0;e<n;e++)t[e]&&t[e].delimiters&&vP(t[e].delimiters)}],["strikethrough",uP.postProcess],["emphasis",pP.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 wP(){this.ruler=new Sz;for(let e=0;e<yP.length;e++)this.ruler.push(yP[e][0],yP[e][1]);this.ruler2=new Sz;for(let e=0;e<bP.length;e++)this.ruler2.push(bP[e][0],bP[e][1])}wP.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},wP.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()},wP.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)},wP.prototype.State=iP;const xP=wP;function SP(e){const t=Array.prototype.slice.call(arguments,1);return t.forEach((function(t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function _P(e){return Object.prototype.toString.call(e)}function CP(e){return"[object Function]"===_P(e)}function EP(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const kP={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};const zP={"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}}},PP="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function AP(e){const t=e.re=function(e){const t={};return e=e||{},t.src_Any=wk.source,t.src_Cc=xk.source,t.src_Z=Ek.source,t.src_P=_k.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|"),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+"|[><｜]|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+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]"===_P(n))return!function(e){return"[object RegExp]"===_P(e)}(n.validate)?CP(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(CP(n.normalize)?r.normalize=n.normalize:n.normalize?i(t,n):r.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===_P(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(EP).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 DP(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 TP(e,t){const n=new DP(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function IP(e,t){if(!(this instanceof IP))return new IP(e,t);var n;t||(n=e,Object.keys(n||{}).reduce((function(e,t){return e||kP.hasOwnProperty(t)}),!1)&&(t=e,e={})),this.__opts__=SP({},kP,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=SP({},zP,e),this.__compiled__={},this.__tlds__=PP,this.__tlds_replaced__=!1,this.re={},AP(this)}IP.prototype.add=function(e,t){return this.__schemas__[e]=t,AP(this),this},IP.prototype.set=function(e){return this.__opts__=SP(this.__opts__,e),this},IP.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},IP.prototype.pretest=function(e){return this.re.pretest.test(e)},IP.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},IP.prototype.match=function(e){const t=[];let n=0;this.__index__>=0&&this.__text_cache__===e&&(t.push(TP(this,n)),n=this.__last_index__);let r=n?e.slice(n):e;for(;this.test(r);)t.push(TP(this,n)),r=r.slice(this.__last_index__),n+=this.__last_index__;return t.length?t:null},IP.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,TP(this,0)):null},IP.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(),AP(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,AP(this),this)},IP.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},IP.prototype.onCompile=function(){};const MP=IP,NP=2147483647,OP=36,jP=/^xn--/,RP=/[^\0-\x7F]/,FP=/[\x2E\u3002\uFF0E\uFF61]/g,BP={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},LP=Math.floor,VP=String.fromCharCode;function KP(e){throw new RangeError(BP[e])}function $P(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(FP,".")).split("."),t).join(".");return r+o}function HP(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 UP=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},qP=function(e,t,n){let r=0;for(e=n?LP(e/700):e>>1,e+=LP(e/t);e>455;r+=OP)e=LP(e/35);return LP(r+36*e/(e+38))},WP=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&&KP("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=OP;;o+=OP){l>=n&&KP("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:OP;a>=OP&&KP("invalid-input"),a>LP((NP-r)/t)&&KP("overflow"),r+=a*t;const c=o<=i?1:o>=i+26?26:o-i;if(a<c)break;const u=OP-c;t>LP(NP/u)&&KP("overflow"),t*=u}const c=t.length+1;i=qP(r-a,c,0==a),LP(r/c)>NP-o&&KP("overflow"),o+=LP(r/c),r%=c,t.splice(r++,0,o)}var s;return String.fromCodePoint(...t)},GP=function(e){const t=[],n=(e=HP(e)).length;let r=128,o=0,i=72;for(const n of e)n<128&&t.push(VP(n));const a=t.length;let s=a;for(a&&t.push("-");s<n;){let n=NP;for(const t of e)t>=r&&t<n&&(n=t);const l=s+1;n-r>LP((NP-o)/l)&&KP("overflow"),o+=(n-r)*l,r=n;for(const n of e)if(n<r&&++o>NP&&KP("overflow"),n===r){let e=o;for(let n=OP;;n+=OP){const r=n<=i?1:n>=i+26?26:n-i;if(e<r)break;const o=e-r,a=OP-r;t.push(VP(UP(r+o%a,0))),e=LP(o/a)}t.push(VP(UP(e,0))),i=qP(o,l,s===a),o=0,++s}++o,++r}return t.join("")},YP={version:"2.3.1",ucs2:{decode:HP,encode:e=>String.fromCodePoint(...e)},decode:WP,encode:GP,toASCII:function(e){return $P(e,(function(e){return RP.test(e)?"xn--"+GP(e):e}))},toUnicode:function(e){return $P(e,(function(e){return jP.test(e)?WP(e.slice(4).toLowerCase()):e}))}},ZP={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"]}}}},JP=/^(vbscript|javascript|file|data):/,XP=/^data:image\/(gif|png|jpeg|webp);/;function QP(e){const t=e.trim().toLowerCase();return!JP.test(t)||XP.test(t)}const eA=["http:","https:","mailto:"];function tA(e){const t=bk(e,!0);if(t.hostname&&(!t.protocol||eA.indexOf(t.protocol)>=0))try{t.hostname=YP.toASCII(t.hostname)}catch(e){}return ik(ak(t))}function nA(e){const t=bk(e,!0);if(t.hostname&&(!t.protocol||eA.indexOf(t.protocol)>=0))try{t.hostname=YP.toUnicode(t.hostname)}catch(e){}return nk(ak(t),nk.defaultChars+"%")}function rA(e,t){if(!(this instanceof rA))return new rA(e,t);t||Hk(e)||(t=e||{},e="default"),this.inline=new xP,this.block=new rP,this.core=new $z,this.renderer=new wz,this.linkify=new MP,this.validateLink=QP,this.normalizeLink=tA,this.normalizeLinkText=nA,this.utils=i,this.helpers=Wk({},a),this.options={},this.configure(e),t&&this.set(t)}rA.prototype.set=function(e){return Wk(this.options,e),this},rA.prototype.configure=function(e){const t=this;if(Hk(e)){const t=e;if(!(e=ZP[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},rA.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},rA.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},rA.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},rA.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},rA.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},rA.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},rA.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};const oA=rA;let iA=null;function aA(e,t="assertive",n=7e3){iA||(iA=new sA),iA.announce(e,t,n)}class sA{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 lA={none:"toolbar",single:"radiogroup",multiple:"toolbar"};const cA={none:void 0,single:"radio",multiple:"checkbox"};var uA;!function(e){e.DoubleClickItemToExpand="double-click-item-to-expand",e.ClickItemToExpand="click-item-to-expand",e.ClickArrowToExpand="click-arrow-to-expand"}(uA||(uA={}));var dA=function(){return dA=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},dA.apply(this,arguments)},pA=function(e){return e.ctrlKey||navigator.platform.toUpperCase().indexOf("MAC")>=0&&e.metaKey},hA=function(){function e(e){this.mode=uA.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(!pA(e)):pA(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}(),fA=function(){function e(e){this.mode=uA.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(!pA(t)):pA(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}(),mA=function(){function e(e){this.mode=uA.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(!pA(t)):pA(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}(),gA=function(e,t){switch(e){case uA.DoubleClickItemToExpand:return new hA(t);case uA.ClickItemToExpand:return new fA(t);case uA.ClickArrowToExpand:return new mA(t);default:throw Error("Unknown interaction mode ".concat(e))}},vA=l.createContext(null),yA=function(e){var t=e.children,n=XA(),r=n.defaultInteractionMode,o=(0,l.useMemo)((function(){var e,t,o;return r&&"string"!=typeof r?r.extends?(t=r,o=gA(r.extends,n),{mode:t.mode,createInteractiveElementProps:function(e,n,r,i){return dA(dA({},o.createInteractiveElementProps(e,n,r,i)),t.createInteractiveElementProps(e,n,r,i))}}):r:gA(null!==(e=r)&&void 0!==e?e:uA.ClickItemToExpand,n)}),[]);return l.createElement(vA.Provider,{value:o},t)},bA=function(){var e=XA();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])},wA=function(){var e=XA();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])},xA=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))},SA=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=xA([],n,!0),e())}else r.current=xA([],n,!0),e()}),xA(xA([],t,!0),n,!0))},_A=function(){return _A=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},_A.apply(this,arguments)},CA=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 _A(_A({},e),((n={})[r]=o,n))}),{})},EA=function(){return"undefined"!=typeof document?document:void 0};function kA(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 zA=function(e){var t=(0,l.useRef)(e);return t.current=e,t},PA=function(e){var t=zA(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])},AA=function(){var e=XA();return PA((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]}))}))},DA=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}(),TA=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=XA(),a=wA(),s=PA((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=PA((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=PA((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 DA(i,e,t,o,n,a).getDraggingPosition()})),d=PA((function(t,n){r(n),e.current="initial",o.current=function(e){var t,n=null===(t=EA())||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:PA((function(){r(void 0),e.current="initial",o.current=0})),draggingItems:n,getDraggingPosition:u,itemHeight:o}},IA=l.createContext(null),MA=function(){return l.useContext(IA)},NA=function(e){var t=e.children,n=XA(),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=XA(),t=wA(),n=bA(),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=kA(),y=AA(),b=TA(),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=PA((function(){i(!1),c({}),p(0),m(void 0),x()}));SA((function(){n.activeTreeId&&n.linearItems[n.activeTreeId]&&s[n.activeTreeId]&&E(s[n.activeTreeId],S)}),[S,n.activeTreeId,n.linearItems,E,s],[n.activeTreeId]),SA((function(){o&&n.activeTreeId&&m(s[n.activeTreeId][d])}),[d,n.activeTreeId,o,s],[d,n.activeTreeId]);var z=bA(),P=PA((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=PA((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=CA(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]),j=(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(IA.Provider,{value:j},t)},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)},jA=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()}}))},RA=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())}))},FA=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])}}},BA=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))},LA=l.createContext(null),VA=function(e,t,n){return RA(void 0,void 0,void 0,(function(){var r,o,i,a,s,l,c;return FA(this,(function(u){for(r=function(e){jA((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),VA(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]}))}))},KA=l.forwardRef((function(e,t){var n=XA(),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=MA(),g=m.abortProgrammaticDrag,v=m.completeProgrammaticDrag,y=m.programmaticDragDown,b=m.programmaticDragUp,w=m.startProgrammaticDrag,x=zA(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(BA(BA([],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 RA(void 0,void 0,void 0,(function(){var n,r;return FA(this,(function(o){switch(o.label){case 0:return n=t[0],r=t.slice(1),[4,jA((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 RA(void 0,void 0,void 0,(function(){return FA(this,(function(t){switch(t.label){case 0:return[4,VA(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]),j=(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=XA(),r=MA();(0,l.useImperativeHandle)(e,(function(){return OA(OA(OA({},t),n),{treeEnvironmentContext:n,dragAndDropContext:r})}))}(t,j),l.createElement(LA.Provider,{value:j},e.children)})),$A=function(){return $A=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},$A.apply(this,arguments)},HA=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter((function(e){return!!e})).join(" ")},UA=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",$A({className:HA(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",$A({},a.itemContainerWithChildrenProps,{className:HA("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",$A({},a.itemContainerWithoutChildrenProps,{style:{"--depthOffset":"".concat((r+1)*e,"px")},className:HA("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,$A({type:u},a.interactiveElementProps,{className:HA("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",$A({},i,{className:"rct-tree-item-renaming-form"}),l.createElement("input",$A({},t,{ref:n,className:"rct-tree-item-renaming-input"})),l.createElement("input",$A({},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:HA("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",$A({},r,{style:$A({minHeight:"30px"},r.style)}),n))},renderItemsContainer:function(e){var t=e.children,n=e.containerProps;return l.createElement("ul",$A({},n,{className:"rct-tree-items-container"}),t)},renderDragBetweenLine:function(t){var n=t.draggingPosition,r=t.lineProps;return l.createElement("div",$A({},r,{style:{left:"".concat(n.depth*e,"px")},className:HA("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:HA("rct-tree-search-input-container")},l.createElement("span",{className:"rct-tree-input-icon"}),l.createElement("input",$A({},t,{className:HA("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},qA=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,qA(u,t,n,r+1))}return s},WA=function(){return WA=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},WA.apply(this,arguments)},GA=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},YA=function(e){var t=e.onExpandItem,n=e.onCollapseItem,r=e.onDrop,o=GA(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=zA(h),w=zA(y),x=(0,l.useMemo)((function(){return CA(p,(function(e){var t;return qA(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=EA())||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=EA())||void 0===i?void 0:i.querySelector('[data-rct-tree="'.concat(t,'"] [data-rct-item-id]'));"true"!==(null===(l=null===(s=null===(a=EA())||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=EA())||void 0===t?void 0:t.documentElement)||void 0===n?void 0:n.clientHeight))&&i.right<=(window.innerWidth||!!(null===(o=null===(r=EA())||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 WA(WA({},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=EA())||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=EA())||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=UA(o);return WA(WA(WA({},D),o),{onFocusItem:S,registerTree:_,unregisterTree:C,onExpandItem:k,onCollapseItem:E,onDrop:z,setActiveTree:A,treeIds:p,trees:a,activeTreeId:u,linearItems:x})},ZA=function(){return ZA=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},ZA.apply(this,arguments)},JA=l.createContext(null),XA=function(){return(0,l.useContext)(JA)},QA=l.forwardRef((function(e,t){for(var n,r,o,i=YA(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]=ZA(ZA({},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(JA.Provider,{value:i},l.createElement(yA,null,l.createElement(NA,null,l.createElement(KA,{ref:t},e.children))))})),eD=function(e){var t,n=e.treeId,r=MA(),o=r.draggingPosition,i=r.itemHeight,a=AD().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()}}}))},tD=function(e,t,n){var r=PA(n);(0,l.useEffect)((function(){return e?(e.addEventListener(t,r),function(){return e.removeEventListener(t,r)}):function(){}}),[e,r,t])},nD=function(e,t,n){tD(EA(),"keydown",(function(r){n&&n&&e.toLowerCase()===r.key.toLowerCase()&&t(r)}))},rD={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"]},oD=function(){return oD=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},oD.apply(this,arguments)},iD=function(){var e=XA();return(0,l.useMemo)((function(){return e.keyboardBindings?oD(oD({},rD),e.keyboardBindings):rD}),[e.keyboardBindings])},aD=["input","textarea"],sD=function(e,t,n,r){void 0===r&&(r=!1);var o=(0,l.useRef)([]),i=iD(),a=kA(),s=(0,l.useMemo)((function(){return i[e].map((function(e){return e.split("+")}))}),[e,i]);tD(EA(),"keydown",(function(e){var t;if(!1!==n&&(!aD.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()}})),tD(EA(),"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}))}}))},lD=function(){var e,t=AD().treeId;return null!==(e=XA().viewState[t])&&void 0!==e?e:{}},cD=function(e){return XA().linearItems[e]},uD=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))},dD=function(e){var t=lD(),n=AD().treeId,r=cD(n),o=XA().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=uD(uD([],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])},pD=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))},hD=function(){var e,t=XA(),n=AD(),r=n.treeId,o=n.setRenamingItem,i=n.setSearch,a=n.renamingItem,s=cD(r),l=MA(),c=lD(),u=function(){var e=AD().treeId,t=XA(),n=t.onFocusItem,r=t.items,o=cD(e),i=lD();return PA((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=dD("first-selected"),p=t.activeTreeId===r,h=!!a,f=!t.disableArrowKeys&&p&&!h;nD("arrowdown",(function(e){if(e.preventDefault(),l.isProgrammaticallyDragging)l.programmaticDragDown();else{var t=u((function(e){return e+1}));e.shiftKey&&d(t)}}),f),nD("arrowup",(function(e){if(e.preventDefault(),l.isProgrammaticallyDragging)l.programmaticDragUp();else{var t=u((function(e){return e-1}));e.shiftKey&&d(t)}}),f),sD("moveFocusToFirstItem",(function(e){e.preventDefault(),u((function(){return 0}))}),p&&!l.isProgrammaticallyDragging&&!h),sD("moveFocusToLastItem",(function(e){e.preventDefault(),u((function(e,t){return t.length-1}))}),p&&!l.isProgrammaticallyDragging&&!h),nD("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),nD("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),sD("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),sD("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,pD(pD([],null!==(i=c.selectedItems)&&void 0!==i?i:[],!0),[c.focusedItem],!1),r))}),p&&!l.isProgrammaticallyDragging&&!h),sD("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),sD("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),sD("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),sD("startProgrammaticDnd",(function(e){e.preventDefault(),l.startProgrammaticDrag()}),p&&!h),sD("completeProgrammaticDnd",(function(e){e.preventDefault(),l.completeProgrammaticDrag()}),p&&l.isProgrammaticallyDragging&&!h),sD("abortProgrammaticDnd",(function(e){e.preventDefault(),l.abortProgrammaticDrag()}),p&&l.isProgrammaticallyDragging&&!h)},fD=function(e,t,n){return n.toLowerCase().includes(e.toLowerCase())},mD=function(){return mD=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},mD.apply(this,arguments)},gD=function(e){var t,n=e.containerRef,r=AD(),o=r.search,i=r.setSearch,a=r.treeId,s=r.renderers,l=r.renamingItem,c=XA();lD();var u=c.activeTreeId===a,d=kA();!function(){var e=XA(),t=e.doesSearchMatchItem,n=e.items,r=e.getItemTitle,o=e.onFocusItem,i=AD(),a=i.search,s=i.treeId,l=cD(s),c=kA();SA((function(){a&&a.length>0&&c((function(){var e=l.find((function(e){var o=e.item;return(null!=t?t:fD)(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=EA())||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 sD("abortSearch",(function(){d((function(){p()}))}),u&&null!==o,!0),tD(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:mD({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"})})},vD={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  "},yD=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,"}"))}}))},bD=function(e){var t=e.children,n=e.live;return l.createElement("div",{"aria-live":n,dangerouslySetInnerHTML:{__html:t}})},wD=function(){var e=XA(),t=AD(),n=MA(),r=iD(),o=(0,l.useMemo)((function(){var t;return null!==(t=e.liveDescriptors)&&void 0!==t?t:vD}),[e.liveDescriptors]),i=t.renderers.renderLiveDescriptorContainer;return t.treeInformation.isRenaming?l.createElement(i,{tree:t},l.createElement(bD,{live:"polite"},yD(o.renamingItem,e,n,t,r))):t.treeInformation.isSearching?l.createElement(i,{tree:t},l.createElement(bD,{live:"polite"},yD(o.searching,e,n,t,r))):t.treeInformation.isProgrammaticallyDragging?l.createElement(i,{tree:t},l.createElement(bD,{live:"polite"},yD(o.programmaticallyDragging,e,n,t,r)),l.createElement(bD,{live:"assertive"},yD(o.programmaticallyDraggingTarget,e,n,t,r))):l.createElement(i,{tree:t},l.createElement(bD,{live:"off"},yD(o.introduction,e,n,t,r)))},xD=function(){var e;return null===(e=XA().showLiveDescription)||void 0===e||e?l.createElement(wD,null):null},SD=function(){return SD=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},SD.apply(this,arguments)},_D=function(){var e=AD(),t=e.treeId,n=e.rootItem,r=e.renderers,o=e.treeInformation,i=XA(),a=(0,l.useRef)(),s=MA();hD(),function(e,t,n){var r=(0,l.useState)(!1),o=r[0],i=r[1],a=(0,l.useRef)(!1),s=kA();tD(e,"focusin",(function(){o||(i(!0),null==t||t()),a.current&&(a.current=!1)})),tD(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(xD,null),l.createElement(TD,{depth:0,parentId:n},null!=c?c:[]),l.createElement(eD,{treeId:t}),l.createElement(gD,{containerRef:a.current})),d=SD({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})},CD=function(){return CD=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},CD.apply(this,arguments)},ED=l.createContext(null),kD=l.forwardRef((function(e,t){XA();var n=AD();MA();var r=l.useContext(LA),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=XA(),r=AD(),o=MA();(0,l.useImperativeHandle)(e,(function(){return CD(CD(CD({},t),{treeEnvironmentContext:n,dragAndDropContext:o,treeContext:r}),r.treeInformation)}))}(t,o),l.createElement(ED.Provider,{value:o},e.children)})),zD=function(){return zD=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},zD.apply(this,arguments)},PD=l.createContext(null),AD=function(){return(0,l.useContext)(PD)},DD=l.forwardRef((function(e,t){var n,r=XA(),o=(0,l.useMemo)((function(){return zD(zD({},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=XA(),i=MA(),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 qA(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(PD.Provider,{value:m},l.createElement(kD,{ref:t},l.createElement(_D,null)))})),TD=function(e){for(var t=AD(),n=t.renderers,r=t.treeInformation,o=[],i=0,a=e.children;i<a.length;i++){var s=a[i];o.push(l.createElement(jD,{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})},ID=function(){return ID=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},ID.apply(this,arguments)},MD=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))},ND=function(e){var t,n,r,o,i=AD(),a=i.treeId,s=i.search,c=i.renamingItem,u=i.setRenamingItem,d=XA(),p=l.useContext(vA),h=MA(),f=dD("last-focus"),m=e&&d.getItemTitle(e),g=AA(),v=(0,l.useMemo)((function(){var t;return!(null===s||0===s.length||!e||!m)&&(null!==(t=d.doesSearchMatchItem)&&void 0!==t?t:fD)(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,MD(MD([],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=ID(ID({},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=ID({},{"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 ID(ID(ID({},P),A),{interactiveElementProps:D,itemContainerWithChildrenProps:I,itemContainerWithoutChildrenProps:T,arrowProps:M,viewStateFlags:N})}}),[e,d,a,h,y,b,w,v,p,f,u,g])},OD=function(e){var t=AD(),n=t.renderers,r=t.treeInformation,o=t.setRenamingItem,i=t.treeId,a=XA(),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=kA(!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)}))};SA((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],[]),sD("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})},jD=function(e){var t,n,r,o,i=(0,l.useState)(!1),a=i[0],s=i[1],c=AD(),u=c.renderers,d=c.treeInformation,p=c.renamingItem,h=XA(),f=lD(),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=ND(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(TD,{depth:e.depth+1,parentId:e.itemIndex},m.children),w=h.getItemTitle(m),x=p===e.itemIndex?l.createElement(OD,{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},RD=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())}))},FD=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])}}},BD=function(){function e(e){this.provider=e}return e.prototype.getTreeItem=function(e){return RD(this,void 0,void 0,(function(){return FD(this,(function(t){return[2,this.provider.getTreeItem(e)]}))}))},e.prototype.getTreeItems=function(e){return RD(this,void 0,void 0,(function(){var t=this;return FD(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 RD(this,void 0,void 0,(function(){return FD(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 RD(this,void 0,void 0,(function(){return FD(this,(function(o){return[2,null===(r=(n=this.provider).onRenameItem)||void 0===r?void 0:r.call(n,e,t)]}))}))},e}(),LD=function(){return LD=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},LD.apply(this,arguments)},VD=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())}))},KD=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])}}},$D=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))},HD=(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=zA(s),d=(0,l.useRef)([]),p=(0,l.useMemo)((function(){return new BD(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 LD(LD({},t),e)}))}),[h]),m=(0,l.useCallback)((function(e,t){c((function(n){var r,o;return LD(LD({},n),((r={})[e]=LD(LD({},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 LD(LD({},e),t)}),{}))}))})).dispose;return e}),[p,f]),l.createElement(QA,LD({},e,{ref:t,viewState:s,items:o,onExpandItem:function(t,n){var r;m(n,(function(e){var n;return LD(LD({},e),{expandedItems:$D($D([],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 LD(LD({},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 LD(LD({},e),{selectedItems:s})}))}else null===(i=e.onSelectItems)||void 0===i||i.call(e,t,n),m(n,(function(e){return LD(LD({},e),{selectedItems:t})}))},onFocusItem:function(t,n){var r;m(n,(function(e){return LD(LD({},e),{focusedItem:t.index})})),null===(r=e.onFocusItem)||void 0===r||r.call(e,t,n)},onRenameItem:function(t,n,r){return VD(void 0,void 0,void 0,(function(){var o,i,a;return KD(this,(function(s){switch(s.label){case 0:return[4,p.onRenameItem(t,n)];case 1:return s.sent(),m(r,(function(e){return LD(LD({},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 VD(void 0,void 0,void 0,(function(){var r,i,a,s,l,c,u,d,h,f,m,g,v,y,b;return KD(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,$D($D([],(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=$D([],null!==(y=h.children)&&void 0!==y?y:[],!0).filter((function(e){return!i.includes(e)})),f.splice.apply(f,$D([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 LD(LD({},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())}))}),UD=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])}}},qD=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 HD(this,void 0,void 0,(function(){var r,o,i,a,s;return UD(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}(),WD=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())}))},GD=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 qD,this.data={items:e},this.setItemName=t}e.prototype.getTreeItem=function(e){return WD(this,void 0,void 0,(function(){return GD(this,(function(t){return[2,this.data.items[e]]}))}))},e.prototype.onChangeItemChildren=function(e,t){return WD(this,void 0,void 0,(function(){return GD(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 WD(this,void 0,void 0,(function(){return GD(this,(function(n){return this.setItemName&&(this.data.items[e.index]=this.setItemName(e,t)),[2]}))}))}}();const{createElement:YD,createContext:ZD,createRef:JD,forwardRef:XD,useCallback:QD,useContext:eT,useEffect:tT,useImperativeHandle:nT,useLayoutEffect:rT,useMemo:oT,useRef:iT,useState:aT}=c,sT=c[`useId${Math.random()}`.slice(0,5)],lT=rT,cT=ZD(null);cT.displayName="PanelGroupContext";const uT=lT,dT="function"==typeof sT?sT:()=>null;let pT=0;function hT(e=null){const t=dT(),n=iT(e||t||null);return null===n.current&&(n.current=""+pT++),null!=e?e:n.current}function fT({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=eT(cT);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=hT(a),P=iT({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});iT({didLogMissingDefaultSizeWarning:!1}),uT((()=>{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)})),uT((()=>{const e=P.current;return C(e),()=>{k(e)}}),[p,z,C,k]),nT(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 YD(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 mT=XD(((e,t)=>YD(fT,{...e,forwardedRef:t})));fT.displayName="Panel",mT.displayName="forwardRef(Panel)";let gT=null,vT=null;function yT(e,t){const n=function(e,t){if(t){const e=0!=(t&IT),n=0!=(t&MT);if(0!=(t&DT))return e?"se-resize":n?"ne-resize":"e-resize";if(0!=(t&TT))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);gT!==n&&(gT=n,null===vT&&(vT=document.createElement("style"),document.head.appendChild(vT)),vT.innerHTML=`*{cursor: ${n}!important;}`)}function bT(e){return"keydown"===e.type}function wT(e){return e.type.startsWith("pointer")}function xT(e){return e.type.startsWith("mouse")}function ST(e){if(wT(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(xT(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}function _T(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 CT=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function ET(e){const t=getComputedStyle(e);return"fixed"===t.position||(!("auto"===t.zIndex||"static"===t.position&&!function(e){var t;const n=getComputedStyle(null!==(t=AT(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||(!!CT.test(t.willChange)||"touch"===t.webkitOverflowScrolling)))))))))}function kT(e){let t=e.length;for(;t--;){const n=e[t];if(GT(n,"Missing node"),ET(n))return n}return null}function zT(e){return e&&Number(getComputedStyle(e).zIndex)||0}function PT(e){const t=[];for(;e;)t.push(e),e=AT(e);return t}function AT(e){const{parentNode:t}=e;return t&&t instanceof ShadowRoot?t.host:t}const DT=1,TT=2,IT=4,MT=8,NT="coarse"===function(){if("function"==typeof matchMedia)return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}();let OT=[],jT=!1,RT=new Map,FT=new Map;const BT=new Set;function LT(e){const{target:t}=e,{x:n,y:r}=ST(e);jT=!0,$T({target:t,x:n,y:r}),qT(),OT.length>0&&(WT("down",e),e.preventDefault(),e.stopPropagation())}function VT(e){const{x:t,y:n}=ST(e);if(0===e.buttons&&(jT=!1,WT("up",e)),!jT){const{target:r}=e;$T({target:r,x:t,y:n})}WT("move",e),UT(),OT.length>0&&e.preventDefault()}function KT(e){const{target:t}=e,{x:n,y:r}=ST(e);FT.clear(),jT=!1,OT.length>0&&e.preventDefault(),WT("up",e),$T({target:t,x:n,y:r}),UT(),qT()}function $T({target:e,x:t,y:n}){OT.splice(0);let r=null;e instanceof HTMLElement&&(r=e),BT.forEach((e=>{const{element:o,hitAreaMargins:i}=e,a=o.getBoundingClientRect(),{bottom:s,left:l,right:c,top:u}=a,d=NT?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:PT(e),b:PT(t)};let r;for(;n.a.at(-1)===n.b.at(-1);)e=n.a.pop(),t=n.b.pop(),r=e;GT(r,"Stacking order can only be calculated for elements with a common ancestor");const o=zT(kT(n.a)),i=zT(kT(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(_T(e.getBoundingClientRect(),a,!0)){t=!0;break}e=e.parentElement}if(t)return}OT.push(e)}}))}function HT(e,t){FT.set(e,t)}function UT(){let e=!1,t=!1;OT.forEach((n=>{const{direction:r}=n;"horizontal"===r?e=!0:t=!0}));let n=0;FT.forEach((e=>{n|=e})),e&&t?yT("intersection",n):e?yT("horizontal",n):t?yT("vertical",n):null!==vT&&(document.head.removeChild(vT),gT=null,vT=null)}function qT(){RT.forEach(((e,t)=>{const{body:n}=t;n.removeEventListener("contextmenu",KT),n.removeEventListener("pointerdown",LT),n.removeEventListener("pointerleave",VT),n.removeEventListener("pointermove",VT)})),window.removeEventListener("pointerup",KT),window.removeEventListener("pointercancel",KT),BT.size>0&&(jT?(OT.length>0&&RT.forEach(((e,t)=>{const{body:n}=t;e>0&&(n.addEventListener("contextmenu",KT),n.addEventListener("pointerleave",VT),n.addEventListener("pointermove",VT))})),window.addEventListener("pointerup",KT),window.addEventListener("pointercancel",KT)):RT.forEach(((e,t)=>{const{body:n}=t;e>0&&(n.addEventListener("pointerdown",LT,{capture:!0}),n.addEventListener("pointermove",VT))})))}function WT(e,t){BT.forEach((n=>{const{setResizeHandlerState:r}=n,o=OT.includes(n);r(e,o,t)}))}function GT(e,t){if(!e)throw console.error(t),Error(t)}function YT(e,t,n=10){return e.toFixed(n)===t.toFixed(n)?0:e>t?1:-1}function ZT(e,t,n=10){return 0===YT(e,t,n)}function JT(e,t,n){return 0===YT(e,t,n)}function XT({panelConstraints:e,panelIndex:t,size:n}){const r=e[t];GT(null!=r,`Panel constraints not found for index ${t}`);let{collapsedSize:o=0,collapsible:i,maxSize:a=100,minSize:s=0}=r;if(YT(n,s)<0)if(i){n=YT(n,(o+s)/2)<0?o:s}else n=s;return n=Math.min(a,n),n=parseFloat(n.toFixed(10))}function QT({delta:e,initialLayout:t,panelConstraints:n,pivotIndices:r,prevLayout:o,trigger:i}){if(JT(e,0))return t;const a=[...t],[s,l]=r;GT(null!=s,"Invalid first pivot index"),GT(null!=l,"Invalid second pivot index");let c=0;if("keyboard"===i){{const r=e<0?l:s,o=n[r];GT(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(GT(null!=n,`Previous layout not found for panel index ${r}`),JT(n,i)){const t=c-n;YT(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}{const r=e<0?s:l,o=n[r];GT(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(GT(null!=n,`Previous layout not found for panel index ${r}`),JT(n,c)){const t=n-i;YT(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];GT(null!=e,`Previous layout not found for panel index ${o}`);if(i+=XT({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];GT(null!=i,`Previous layout not found for panel index ${r}`);const s=XT({panelConstraints:n,panelIndex:r,size:i-o});if(!JT(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(!JT(e[r],t[r],n))return!1;return!0}(o,a))return o;{const r=e<0?l:s,o=t[r];GT(null!=o,`Previous layout not found for panel index ${r}`);const i=o+c,u=XT({panelConstraints:n,panelIndex:r,size:i});if(a[r]=u,!JT(u,i)){let t=i-u;let r=e<0?l:s;for(;r>=0&&r<n.length;){const o=a[r];GT(null!=o,`Previous layout not found for panel index ${r}`);const i=XT({panelConstraints:n,panelIndex:r,size:o+t});if(JT(o,i)||(t-=i-o,a[r]=i),JT(t,0))break;e>0?r--:r++}}}const u=a.reduce(((e,t)=>t+e),0);return JT(u,100)?a:o}function eI({layout:e,panelsArray:t,pivotIndices:n}){let r=0,o=100,i=0,a=0;const s=n[0];GT(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 tI(e,t=document){return Array.from(t.querySelectorAll(`[data-panel-resize-handle-id][data-panel-group-id="${e}"]`))}function nI(e,t,n=document){const r=tI(e,n).findIndex((e=>e.getAttribute("data-panel-resize-handle-id")===t));return null!=r?r:null}function rI(e,t,n){const r=nI(e,t,n);return null!=r?[r,r+1]:[-1,-1]}function oI(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 iI(e,t=document){const n=t.querySelector(`[data-panel-resize-handle-id="${e}"]`);return n||null}function aI({committedValuesRef:e,eagerValuesRef:t,groupId:n,layout:r,panelDataArray:o,panelGroupElement:i,setLayout:a}){iT({didWarnAboutMissingResizeHandle:!1}),uT((()=>{if(!i)return;const e=tI(n,i);for(let t=0;t<o.length-1;t++){const{valueMax:n,valueMin:i,valueNow:a}=eI({layout:r,panelsArray:o,pivotIndices:[t,t+1]}),s=e[t];if(null==s);else{const e=o[t];GT(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]),tT((()=>{if(!i)return;const e=t.current;GT(e,"Eager values not found");const{panelDataArray:o}=e;GT(null!=oI(n,i),`No group found for id "${n}"`);const s=tI(n,i);GT(s,`No resize handles found for group id "${n}"`);const l=s.map((e=>{const t=e.getAttribute("data-panel-resize-handle-id");GT(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=iI(t,r),c=tI(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];GT(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=QT({delta:JT(s,c)?d-c:c-s,initialLayout:r,panelConstraints:o.map((e=>e.constraints)),pivotIndices:rI(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 sI(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 lI(e,t){const n="horizontal"===e,{x:r,y:o}=ST(t);return n?r:o}function cI(e,t,n,r,o,i){if(bT(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=iI(t,o);GT(a,`No resize handle element found for id "${t}"`);const s=a.getAttribute("data-panel-group-id");GT(s,"Resize handle element has no group id attribute");let{initialCursorPosition:l}=r;const c=lI(n,e),u=oI(s,o);GT(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 uI(e,t,n){t.forEach(((t,r)=>{const o=e[r];GT(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&&!ZT(u,l)||ZT(t,l)||r(),!e||null!=u&&ZT(u,l)||!ZT(t,l)||e())}}))}function dI(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 pI(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 hI(e){return`react-resizable-panels:${e}`}function fI(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 mI(e,t){try{const n=hI(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 gI(e,t,n,r,o){var i;const a=hI(e),s=fI(t),l=null!==(i=mI(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 vI({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(!JT(r,100))for(let e=0;e<t.length;e++){const t=n[e];GT(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];GT(null!=r,`No layout data found for index ${e}`);const i=XT({panelConstraints:t,panelIndex:e,size:r});r!=i&&(o+=r-i,n[e]=i)}if(!JT(o,0))for(let e=0;e<t.length;e++){const r=n[e];GT(null!=r,`No layout data found for index ${e}`);const i=XT({panelConstraints:t,panelIndex:e,size:r+o});if(r!==i&&(o-=i-r,n[e]=i,JT(o,0)))break}return n}const yI={getItem:e=>(pI(yI),yI.getItem(e)),setItem:(e,t)=>{pI(yI),yI.setItem(e,t)}},bI={};function wI({autoSaveId:e=null,children:t,className:n="",direction:r,forwardedRef:o,id:i=null,onLayout:a=null,keyboardResizeBy:s=null,storage:l=yI,style:c,tagName:u="div",...d}){const p=hT(i),h=iT(null),[f,m]=aT(null),[g,v]=aT([]),y=function(){const[e,t]=aT(0);return QD((()=>t((e=>e+1))),[])}(),b=iT({}),w=iT(new Map),x=iT(0),S=iT({autoSaveId:e,direction:r,dragState:f,id:p,keyboardResizeBy:s,onLayout:a,storage:l}),_=iT({layout:g,panelDataArray:[],panelDataArrayChanged:!1});iT({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),nT(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=vI({layout:e,panelConstraints:r.map((e=>e.constraints))});sI(n,o)||(v(o),_.current.layout=o,t&&t(o),uI(r,o,b.current))}})),[]),uT((()=>{S.current.autoSaveId=e,S.current.direction=r,S.current.dragState=f,S.current.id=p,S.current.onLayout=a,S.current.storage=l})),aI({committedValuesRef:S,eagerValuesRef:_,groupId:p,layout:g,panelDataArray:_.current.panelDataArray,setLayout:v,panelGroupElement:h.current}),tT((()=>{const{panelDataArray:t}=_.current;if(e){if(0===g.length||g.length!==t.length)return;let n=bI[e];null==n&&(n=function(e,t=10){let n=null;return(...r)=>{null!==n&&clearTimeout(n),n=setTimeout((()=>{e(...r)}),t)}}(gI,100),bI[e]=n);const r=[...t],o=new Map(w.current);n(e,r,o,g,l)}}),[e,g,l]),tT((()=>{}));const C=QD((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}=_I(r,e,n);if(GT(null!=a,`Panel size not found for panel "${e.id}"`),!ZT(a,i)){w.current.set(e.id,a);const l=QT({delta:SI(r,e)===r.length-1?a-i:i-a,initialLayout:n,panelConstraints:o,pivotIndices:s,prevLayout:n,trigger:"imperative-api"});dI(n,l)||(v(l),_.current.layout=l,t&&t(l),uI(r,l,b.current))}}}),[]),E=QD(((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}=_I(o,e,r),u=null!=t?t:l;if(ZT(s,a)){const t=w.current.get(e.id),a=null!=t&&t>=u?t:u,l=QT({delta:SI(o,e)===o.length-1?s-a:a-s,initialLayout:r,panelConstraints:i,pivotIndices:c,prevLayout:r,trigger:"imperative-api"});dI(r,l)||(v(l),_.current.layout=l,n&&n(l),uI(o,l,b.current))}}}),[]),k=QD((e=>{const{layout:t,panelDataArray:n}=_.current,{panelSize:r}=_I(n,e,t);return GT(null!=r,`Panel size not found for panel "${e.id}"`),r}),[]),z=QD(((e,t)=>{const{panelDataArray:n}=_.current,r=SI(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=QD((e=>{const{layout:t,panelDataArray:n}=_.current,{collapsedSize:r=0,collapsible:o,panelSize:i}=_I(n,e,t);return GT(null!=i,`Panel size not found for panel "${e.id}"`),!0===o&&ZT(i,r)}),[]),A=QD((e=>{const{layout:t,panelDataArray:n}=_.current,{collapsedSize:r=0,collapsible:o,panelSize:i}=_I(n,e,t);return GT(null!=i,`Panel size not found for panel "${e.id}"`),!o||YT(i,r)>0}),[]),D=QD((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]);uT((()=>{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=mI(e,n))&&void 0!==r?r:{})[fI(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];GT(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];GT(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=vI({layout:i,panelConstraints:o.map((e=>e.constraints))});sI(r,a)||(v(a),_.current.layout=a,t&&t(a),uI(o,a,b.current))}})),uT((()=>{const e=_.current;return()=>{e.layout=[]}}),[]);const T=QD((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=rI(i,e,n);let p=cI(t,e,r,o,a,n);const f="horizontal"===r;"rtl"===document.dir&&f&&(p=-p);const m=QT({delta:p,initialLayout:null!=u?u:l,panelConstraints:c.map((e=>e.constraints)),pivotIndices:d,prevLayout:l,trigger:bT(t)?"keyboard":"mouse-or-touch"}),g=!dI(l,m);(wT(t)||xT(t))&&x.current!=p&&(x.current=p,HT(e,g?0:f?p<0?DT:TT:p<0?IT:MT)),g&&(v(m),_.current.layout=m,s&&s(m),uI(c,m,b.current))}),[]),I=QD(((e,t)=>{const{onLayout:n}=S.current,{layout:r,panelDataArray:o}=_.current,i=o.map((e=>e.constraints)),{panelSize:a,pivotIndices:s}=_I(o,e,r);GT(null!=a,`Panel size not found for panel "${e.id}"`);const l=QT({delta:SI(o,e)===o.length-1?a-t:t-a,initialLayout:r,panelConstraints:i,pivotIndices:s,prevLayout:r,trigger:"imperative-api"});dI(r,l)||(v(l),_.current.layout=l,n&&n(l),uI(o,l,b.current))}),[]),M=QD(((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}=_I(r,e,n);null!=u&&(i&&s&&ZT(u,o)?ZT(o,a)||I(e,a):u<c?I(e,c):u>l&&I(e,l))}),[I]),N=QD(((e,t)=>{const{direction:n}=S.current,{layout:r}=_.current;if(!h.current)return;const o=iI(e,h.current);GT(o,`Drag handle element not found for id "${e}"`);const i=lI(n,t);m({dragHandleId:e,dragHandleRect:o.getBoundingClientRect(),initialCursorPosition:i,initialLayout:r})}),[]),O=QD((()=>{m(null)}),[]),j=QD((e=>{const{panelDataArray:t}=_.current,n=SI(t,e);n>=0&&(t.splice(n,1),delete b.current[e.id],_.current.panelDataArrayChanged=!0,y())}),[y]),R=oT((()=>({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:j,panelGroupElement:h.current})),[C,f,r,E,k,z,p,P,A,M,D,T,I,N,O,j]),F={display:"flex",flexDirection:"horizontal"===r?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return YD(cT.Provider,{value:R},YD(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 xI=XD(((e,t)=>YD(wI,{...e,forwardedRef:t})));function SI(e,t){return e.findIndex((e=>e===t||e.id===t.id))}function _I(e,t,n){const r=SI(e,t),o=r===e.length-1?[r-1,r]:[r,r+1],i=n[r];return{...t.constraints,panelSize:i,pivotIndices:o}}function CI({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=iT(null),m=iT({onDragging:a});tT((()=>{m.current.onDragging=a}));const g=eT(cT);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,_=hT(o),[C,E]=aT("inactive"),[k,z]=aT(!1),[P,A]=aT(null),D=iT({state:C});uT((()=>{D.current.state=C})),tT((()=>{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;tT((()=>{if(n||null==P)return;const e=f.current;GT(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=RT.get(a))&&void 0!==i?i:0;return RT.set(a,l+1),BT.add(s),qT(),function(){var t;FT.delete(e),BT.delete(s);const n=null!==(t=RT.get(a))&&void 0!==t?t:1;if(RT.set(a,n-1),qT(),1===n&&RT.delete(a),OT.includes(s)){const e=OT.indexOf(s);e>=0&&OT.splice(e,1),UT()}}}(_,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}){tT((()=>{if(e||null==n||null==r)return;const o=iI(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");GT(n,`No group element found for id "${n}"`);const i=tI(n,r),a=nI(n,t,r);GT(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 YD(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":_})}wI.displayName="PanelGroup",xI.displayName="forwardRef(PanelGroup)",CI.displayName="PanelResizeHandle";var EI=typeof document<"u"?l.useLayoutEffect:()=>{};function kI(e){let t=(0,l.useRef)(null);return EI((()=>{t.current=e}),[e]),(0,l.useCallback)(((...e)=>(0,t.current)?.(...e)),[])}var zI={prefix:String(Math.round(1e10*Math.random())),current:0},PI=l.createContext(zI),AI=l.createContext(!1),DI=!!(typeof window<"u"&&window.document&&window.document.createElement),TI=new WeakMap;var II="function"==typeof l.useId?function(e){let t=l.useId(),[n]=(0,l.useState)("function"==typeof l.useSyncExternalStore?l.useSyncExternalStore(OI,MI,NI):(0,l.useContext)(AI));return e||`${n?"react-aria":`react-aria${zI.prefix}`}-${t}`}:function(e){let t=(0,l.useContext)(PI);t===zI&&!DI&&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)(PI),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=TI.get(e);null==n?TI.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==n.state&&(t.current=n.id,TI.delete(e))}n.current=++t.current}return n.current}(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`};function MI(){return!1}function NI(){return!0}function OI(e){return()=>{}}var jI=!!(typeof window<"u"&&window.document&&window.document.createElement),RI=new Map;function FI(e){let[t,n]=(0,l.useState)(e),r=(0,l.useRef)(null),o=II(t),i=(0,l.useCallback)((e=>{r.current=e}),[]);return jI&&RI.set(o,i),EI((()=>{let e=o;return()=>{RI.delete(e)}}),[o]),(0,l.useEffect)((()=>{let e=r.current;e&&(r.current=null,n(e))})),o}function BI(e,t){if(e===t)return e;let n=RI.get(e);if(n)return n(t),t;let r=RI.get(t);return r?(r(e),e):t}function LI(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}var VI=e=>{var t;return null!==(t=e?.ownerDocument)&&void 0!==t?t:document},KI=e=>e&&"window"in e&&e.window===e?e:VI(e).defaultView||window,$I=e=>{if(!e)return document;if(!e.isConnected)return null;let t=e.getRootNode?e.getRootNode():document;return function(e){return HI(e)&&e.nodeType===Node.DOCUMENT_NODE}(t)||function(e){return HI(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}(t)?t:null};function HI(e){return null!==e&&"object"==typeof e&&"nodeType"in e&&"number"==typeof e.nodeType}function UI(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=UI(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}var qI=function(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=UI(e))&&(r&&(r+=" "),r+=t);return r};function WI(...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]=LI(n,o):"className"!==e&&"UNSAFE_className"!==e||"string"!=typeof n||"string"!=typeof o?"id"===e&&n&&o?t.id=BI(n,o):t[e]=void 0!==o?o:n:t[e]=qI(n,o)}}return t}function GI(...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 YI=new Set(["id"]),ZI=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),JI=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),XI=/^(data-.*)$/;function QI(e,t={}){let{labelable:n,isLink:r,propNames:o}=t,i={};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(YI.has(t)||n&&ZI.has(t)||r&&JI.has(t)||o?.has(t)||XI.test(t))&&(i[t]=e[t]);return i}function eM(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))}function tM(e){var t;return typeof window<"u"&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function nM(e){let t=null;return()=>(null==t&&(t=e()),t)}var rM=nM((function(){return tM(/^Mac/i)})),oM=nM((function(){return tM(/^iPhone/i)})),iM=nM((function(){return tM(/^iPad/i)||rM()&&navigator.maxTouchPoints>1})),aM=nM((function(){return oM()||iM()})),sM=nM((function(){return eM(/Android/i)})),lM=nM((function(){return eM(/Firefox/i)}));function cM(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 uM(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 dM(e){return!!e&&"label"in e&&!!e.label}function pM(e){return!!e&&"children"in e&&!!e.children&&"title"in e}function hM(){return(0,l.useCallback)((e=>function(e){return pM(e)?(0,vr.jsx)(rr.wn,{items:e.children,title:e.title,"aria-label":e.title,children:e=>(0,vr.jsx)(rr.q7,{textValue:e.label,children:e.label},e.id)},e.id):(0,vr.jsx)(rr.q7,{textValue:e.label,children:e.label},e.id)}(e)),[])}function fM(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 mM(e,t,n){return(t=fM(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gM(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 vM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gM(Object(n),!0).forEach((function(t){mM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yM(e,t){var n={};for(var r in e)n[r]=t(e[r],r);return n}var bM=(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},wM=e=>{var t=t=>{var n=e.defaultClassName,r=vM(vM({},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)bM(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 yM(e.variantClassNames,(e=>yM(e,(e=>e.split(" ")[0]))))}},t},xM=wM({defaultClassName:"_6n12k9b _1yep5z6lh _1yep5z6lg _1yep5z6i1 _1yep5z6kz",variantClassNames:{isDropTarget:{true:"_1yep5z613h"},orientation:{vertical:"_1yep5z6174",horizontal:"_1yep5z6175"}},defaultVariants:{},compoundVariants:[]}),SM=wM({defaultClassName:"_6n12k99 _1yep5z6ev _1yep5z6da _1yep5z6dv",variantClassNames:{isDisabled:{true:"_1yep5z6ey"}},defaultVariants:{},compoundVariants:[]}),_M=wM({defaultClassName:"_6n12k91 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6k8 _1yep5z6k9 _1yep5z6ka _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6dy _1yep5z6eu _1yep5z6kz _1yep5z6l2 _1yep5z6lf _1yep5z6le _1yep5z6lc _1yep5z6l9",variantClassNames:{isSelected:{},isFocused:{true:"_1yep5z613h _1yep5z617a _1yep5z6178 _1yep5z617b _1yep5z613u _1yep5z613v _1yep5z613w"},isHovered:{true:"_1yep5z611u",false:"_1yep5z611t"},isFirstChild:{true:"_6n12k95"},isLastChild:{true:"_6n12k96"},isDisabled:{true:"z9nup83 _1yep5z610q"}},defaultVariants:{},compoundVariants:[]}),CM=wM({defaultClassName:"gukncs0",variantClassNames:{isVertical:{true:"gukncs1"},isSecondary:{true:"gukncs2"}},defaultVariants:{},compoundVariants:[]}),EM=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,er.ry)({...c,orientation:r,elementType:i});return(0,vr.jsx)(i,{...d,className:(0,s.xW)(CM({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 kM(e){return br.UV.properties.has(e)}EM.displayName="Separator";var zM=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)kM(r)?e[r]=n[r]:t[r]=n[r];return{sprinkleProps:e,domProps:t}}),[n]);return(0,vr.jsx)(o,{...a,className:(0,s.xW)((0,br.UV)(i),"BaselineUI-Box",a.className),ref:r,children:t})}));zM.displayName="Box";var PM=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},h)=>{(0,s.V1)(e.value&&dM(e.value),"Item cannot be a section");let{icon:f,label:m}=e.value,{hoverProps:g,isHovered:v}=(0,er.Mk)({isDisabled:t}),y=(0,s.nP)({"data-selected":r,"data-disabled":t,"data-focused":u,"data-hovered":v,"data-pressed":d,"data-focus-visible":n,"data-selection-mode":p.selectionManager.selectionMode});return(0,vr.jsxs)("li",{...(0,er.v6)(o,g,y),className:(0,s.xW)(_M({isHovered:v,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:h,children:[(0,vr.jsxs)(zM,{display:"flex",alignItems:"center",gap:"lg",children:[i?(0,vr.jsx)("span",{"aria-hidden":!0,style:{height:24,width:24},children:r?(0,vr.jsx)(yr.Nrt,{size:24}):null}):null,f?(0,vr.jsx)(f,{size:24}):null,(0,vr.jsx)("span",{...c,children:m})]}),a?(0,vr.jsx)("span",{className:SM({isDisabled:t}),...l,children:a}):null]})}));PM.displayName="DefaultRenderOption";var AM=({dropState:e,orientation:t="vertical",dropIndicatorStyle:n,dropIndicatorClassName:r,renderDropIndicator:o=(({isDropTarget:e,isHidden:t,dropIndicatorProps:o,orientation:i},a)=>t?null:(0,vr.jsx)("li",{...o,ref:a,"data-drop-target":e,className:(0,s.xW)(xM({isDropTarget:e,orientation:i}),"BaselineUI-DropIndicator",r),style:n})),...i})=>{let a=l.useRef(null),{dropIndicatorProps:c,isHidden:u,isDropTarget:d}=(0,er.mp)(i,e,a);return o({dropIndicatorProps:{...c,role:"option"},isHidden:u,isDropTarget:d,orientation:t},a)},DM=({item:e,children:t,state:n,dragState:r,...o})=>{let{dragProps:i}=(0,er.OG)({key:e.key},r);return(0,vr.jsxs)(vr.Fragment,{children:[(0,vr.jsx)(AM,{target:{type:"item",key:e.key,dropPosition:"before"},...o}),t(i),null==n.collection.getKeyAfter(e.key)&&(0,vr.jsx)(AM,{target:{type:"item",key:e.key,dropPosition:"after"},...o})]})};DM.displayName="DraggableListOption";var TM=l.forwardRef((({item:e,renderOption:t=((e,t,n)=>(0,vr.jsx)(PM,{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},h)=>{let f=l.useRef(null),m=(0,er.xW)({key:e.key},r,f),{value:g}=e;(0,s.V1)(g&&dM(g),"ListSection should not be passed to ListOption");let v={style:"function"==typeof d?d(g):d,className:"function"==typeof p?p(g):p};return o&&i?(0,vr.jsx)(DM,{orientation:a,state:r,item:e,dropState:i,dragState:o,dropIndicatorStyle:c,dropIndicatorClassName:u,children:o=>t(e,{...m,showSelectedIcon:n,_state:r,optionProps:{...(0,er.v6)(m.optionProps,o),...v}},GI(f,h))}):t(e,{...m,showSelectedIcon:n,_state:r,optionProps:{...m.optionProps,...v}},GI(f,h))}));TM.displayName="Option";var IM=({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:h}=(0,er.u4)({heading:o?i?.(e,u)||e.rendered:void 0,"aria-label":e["aria-label"]}),f=t.collection.getChildren?.(e.key);(0,s.V1)(f,"children must be defined");let{value:m}=e;(0,s.V1)(m&&pM(m),"section must be a ListSection");let g="function"==typeof r?r(m):r,v="function"==typeof n?n(m):n;return(0,vr.jsxs)(vr.Fragment,{children:[e.key===t.collection.getFirstKey()?null:(0,vr.jsx)(EM,{UNSAFE_omitRole:!0}),(0,vr.jsxs)("li",{...d,style:{...d.style,...g},className:(0,s.xW)("_6n12k90",v,"BaselineUI-ListBox-Section"),children:[e.rendered&&o?i?.(e,u)||(0,vr.jsx)(zM,{...h,className:(0,s.xW)("BaselineUI-ListBox-SectionHeader","_6n12k9f _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6j8 _1yep5z6j9 _1yep5z6ja"),ref:u,paddingX:"lg",typography:"label.md.medium",color:"text.primary",paddingInlineStart:a?"5xl":"lg",paddingInlineEnd:"lg",children:e.rendered}):null,(0,vr.jsx)("ul",{...p,children:[...f].map((e=>(0,vr.jsx)(TM,{item:e,state:t,...c},e.key)))})]})]})};function MM({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,wr.useGranularEffect)((()=>{let e=$I(r.current)instanceof ShadowRoot,t=n.selectionManager.focusedKey;e&&t&&i(t)}),[n.selectionManager.focusedKey],[i,r])}var NM=l.createContext(null),OM=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:h,listBoxHandle:f,...m},g)=>{let v=l.useRef(null),{direction:y}=(0,er.Ym)(),b=l.useRef(null),{listBoxProps:w}=(0,er.Xv)({...m,shouldSelectOnPressUp:a,keyboardDelegate:new er.nW({collection:h.collection,ref:b,layout:t,orientation:n,direction:y,disabledKeys:h.disabledKeys})},h,b);MM({handle:f},h,b);let x=it(),S=(0,l.useCallback)((e=>{let t=VI(b.current);p&&(!x&&"startViewTransition"in t?t.startViewTransition((()=>{p(e)})):p(e))}),[p,x]),{collectionProps:_,dragState:C,dropState:E}=function(e,t,n){let{direction:r}=(0,er.Ym)(),o=(0,nr.u)({...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,er.TG)(e,o,n);let i=(0,nr.e)({...e,collection:t.collection,selectionManager:t.selectionManager}),{collectionProps:a}=(0,er.z2)({...e,keyboardDelegate:new er.nW({collection:t.collection,disabledKeys:t.disabledKeys,ref:n,orientation:e.orientation,layout:e.layout,direction:r}),dropTargetDelegate:new er._z(t.collection,n)},i,n);return{collectionProps:a,dragState:o,dropState:i}}({...m,onReorder:S,layout:t,orientation:n,enableReorder:a,preview:v},h,b),{isFocusVisible:k,isFocused:z,focusProps:P}=(0,er.og)(),A=(0,s.nP)({"data-block-id":c,"data-block-class":u,"data-layout":t,"data-empty":0===h.collection.size,"data-focused":z,"data-focus-visible":k,"data-orientation":n});return(0,vr.jsxs)("ul",{...(0,er.v6)(w,P,A,_),className:(0,s.xW)("_6n12k98 _1yep5z6lf _1yep5z6ih _1yep5z6ii _1yep5z6ij","BaselineUI-ListBox",e),style:o,ref:GI(g,b),children:[[...h.collection].map((e=>{let t={key:e.key,state:h,dragState:C,dropState:E,renderOption:i,renderDropIndicator:m.renderDropIndicator,renderSectionHeader:m.renderSectionHeader,showSelectedIcon:r,orientation:n,dropIndicatorStyle:m.dropIndicatorStyle,dropIndicatorClassName:m.dropIndicatorClassName,optionStyle:m.optionStyle,optionClassName:m.optionClassName,sectionClassName:m.sectionClassName,sectionStyle:m.sectionStyle,showSectionHeader:m.showSectionHeader,withSectionHeaderPadding:m.withSectionHeaderPadding};return"section"===e.type?(0,vr.jsx)(IM,{...t,section:e}):(0,vr.jsx)(TM,{...t,item:e})})),d?(0,vr.jsx)(er.B2,{ref:v,children:d}):null]})}));OM.displayName="ListBoxCore";var jM=l.forwardRef(((e,t)=>{let n=hM(),r=(0,or.pE)({...e,children:n});return(0,vr.jsx)(OM,{...e,ref:t,state:r})}));jM.displayName="ListBoxStandalone";var RM=l.forwardRef(((e,t)=>{let n=(0,l.useContext)(NM);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,vr.jsx)(OM,{...e,ref:t,state:n}):(0,vr.jsx)(jM,{...e,ref:t})}));RM.displayName="ListBox";var FM="uf19bsf _1yep5z6kz",BM=wM({defaultClassName:"uf19bs0 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6f5 _1yep5z6le _1yep5z6ik _1yep5z6il _1yep5z6im _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6k2 _1yep5z6k3 _1yep5z6k4 _1yep5z6l9",variantClassNames:{size:{xxs:"uf19bs1",xs:"uf19bs2",sm:"uf19bs3",md:"uf19bs4",lg:"uf19bs5 _1yep5z6wd _1yep5z6we _1yep5z6wf _1yep5z6x1 _1yep5z6x2 _1yep5z6x3 _1yep5z6xp _1yep5z6xq _1yep5z6xr _1yep5z6yd _1yep5z6ye _1yep5z6yf"},isHovered:{true:"uf19bs6"},isDisabled:{true:"uf19bs7 _1yep5z610z"},isFocusVisible:{true:"uf19bs8"},variant:{primary:"uf19bs9",secondary:"uf19bsa",tertiary:"uf19bsb",ghost:"uf19bsc",toolbar:"uf19bsd _1yep5z6wv _1yep5z6ww _1yep5z6wx _1yep5z6xj _1yep5z6xk _1yep5z6xl _1yep5z6y7 _1yep5z6y8 _1yep5z6y9 _1yep5z6yv _1yep5z6yw _1yep5z6yx",popover:"uf19bse _1yep5z6pg _1yep5z6ph _1yep5z6pi _1yep5z6n4 _1yep5z6n5 _1yep5z6n6 _1yep5z6lv _1yep5z6lw _1yep5z6lx _1yep5z6o7 _1yep5z6o8 _1yep5z6o9 _1yep5z6vg _1yep5z6vh _1yep5z6vi"}},defaultVariants:{},compoundVariants:[[{variant:"toolbar",isHovered:!0,isFocusVisible:!1},"_1yep5z61nn"],[{variant:"primary",isHovered:!0,isFocusVisible:!1},"_1yep5z61nn"],[{variant:"secondary",isHovered:!0,isFocusVisible:!1},"_1yep5z61mq"],[{variant:"tertiary",isHovered:!0,isFocusVisible:!1},"_1yep5z61mp _1yep5z61nn"],[{variant:"ghost",isHovered:!0,isFocusVisible:!1},"_1yep5z61mv"],[{variant:"popover",isHovered:!0,isFocusVisible:!1},"_1yep5z61pc _1yep5z61t0 _1yep5z61t4 _1yep5z61t1"],[{variant:"ghost",isDisabled:!1},"_1yep5z61mu"],[{variant:"popover",size:"lg"},"_1yep5z61i2 _1yep5z61i3 _1yep5z61i4 _1yep5z61iq _1yep5z61ir _1yep5z61is _1yep5z61je _1yep5z61jf _1yep5z61jg _1yep5z61k2 _1yep5z61k3 _1yep5z61k4"]]}),LM=l.createContext({state:null,overlayTriggerAria:{triggerProps:{},overlayProps:{}},triggerRef:void 0}),VM=({children:e,...t})=>{let n=l.useRef(null),r=(0,sr.T)(t),o=(0,er.oJ)(t,r),i=(0,l.useMemo)((()=>({state:r,overlayTriggerAria:o,triggerRef:n})),[r,o]);return(0,vr.jsx)(LM.Provider,{value:i,children:e})},KM={bottom:"_1gzftth2",top:"_1gzftth3",right:"_1gzftth4",left:"_1gzftth5"};function $M(e){return e.closest(".BaselineUI-Portal")||e.closest(".BaselineUI-Popover-Content")}function HM(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 UM=l.createContext({isSelected:!1,ref:void 0}),qM=({children:e,anchorRect:t})=>{let{state:n,overlayTriggerAria:r,triggerRef:o}=(0,l.useContext)(LM);(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||HM(t),"If provided, the anchorRect prop must be an object with left and top number values, and optionally width and height."),(0,vr.jsx)(UM.Provider,{value:a,children:t?(0,vr.jsx)("button",{className:(0,s.xW)("_1gzftth8","BaselineUI-PopoverTrigger-Hidden"),style:t,ref:o,tabIndex:-1},JSON.stringify(t)):e})},WM=({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 GM({tooltip:e,...t},n){let[r,o]=(0,l.useState)(t["aria-label"]||""),i=t["aria-labelledby"];(0,l.useEffect)((()=>{if(i){let e=VI(n.current).querySelector(`#${i}`);e&&o(e.textContent||"")}}),[i,n]);let{tooltipProps:a}=WM({label:r,tooltip:e});return{tooltipProps:a}}var YM=e=>{let t=l.useRef(null),{ref:n,...r}=(0,l.useContext)(UM)||{},{buttonProps:o,isPressed:i}=(0,er.sL)({...e,...r},t),{isFocusVisible:a,isFocused:s,focusProps:c}=(0,er.og)(),{hoverProps:u,isHovered:d}=(0,er.Mk)({isDisabled:e.isDisabled});return{buttonProps:WI(o,c,u),isPressed:i,ref:GI(t,n||null),isFocusVisible:a,isFocused:s,isHovered:d,uiStateOptions:{isHovered:d,isFocused:s,isPressed:i,isDisabled:e.isDisabled,isFocusVisible:a}}},ZM=(e,t)=>{let n=l.useRef(null),{ref:r,...o}=(0,l.useContext)(UM)||{},{buttonProps:i,isPressed:a}=(0,er.qQ)({...e,...o},t,n);("radio"===i.role||"checkbox"===i.role)&&(i["aria-pressed"]=void 0);let{isFocusVisible:s,isFocused:c,focusProps:u}=(0,er.og)(),{hoverProps:d,isHovered:p}=(0,er.Mk)({isDisabled:e.isDisabled});return{buttonProps:WI(i,u,d),isPressed:a,ref:GI(n,r||null),isFocusVisible:s,isFocused:c,isHovered:p,uiStateOptions:{isHovered:p,isFocused:c,isPressed:a,isDisabled:e.isDisabled,isFocusVisible:s,isSelected:t.isSelected}}},JM=wM({defaultClassName:"oom8bs0 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6ik _1yep5z6il _1yep5z6im _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6le _1yep5z6lf _1yep5z6l9 _1yep5z6dy _1yep5z6kz",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"]]}),XM=wM({defaultClassName:"oom8bst _1yep5z6kz",variantClassNames:{isDisabled:{true:"oom8bsu"},isFocusVisible:{true:"oom8bsv"},isHovered:{true:"_1yep5z610u"},variant:{primary:"_1yep5z6111",secondary:"_1yep5z610x",tertiary:"_1yep5z6112",ghost:"_1yep5z6112",popover:"_1yep5z610x",toolbar:"_1yep5z610x",success:"_1yep5z6110",warning:"_1yep5z6110",error:"_1yep5z6110"}},defaultVariants:{},compoundVariants:[[{variant:"tertiary",isHovered:!0},"_1yep5z61mt"],[{variant:"ghost",isHovered:!0},"_1yep5z61mv"],[{variant:"tertiary",isFocusVisible:!0},"_1yep5z61mt"],[{variant:"secondary",isDisabled:!0},"_1yep5z61mr"],[{variant:"tertiary",isDisabled:!0},"_1yep5z61mr"],[{variant:"ghost",isDisabled:!0},"_1yep5z61mr"],[{variant:"popover",isDisabled:!0},"_1yep5z61mr"],[{variant:"toolbar",isDisabled:!0},"_1yep5z61mr"]]}),QM={sm:16,md:20,lg:24},eN=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},h)=>{let{buttonProps:f,isPressed:m,ref:g,isFocusVisible:v,isFocused:y,isHovered:b,uiStateOptions:w}=YM({...p,elementType:a,isDisabled:l}),x=QM[c],S=(0,s.nP)({"data-block-id":u,"data-block-class":d,"data-disabled":l,"data-focused":y,"data-focus-visible":v,"data-hovered":b,"data-pressed":m});return(0,vr.jsxs)(a,{...(0,er.v6)(f,S),className:(0,s.xW)(JM({isDisabled:!!l,isFocusVisible:v,isHovered:b,variant:i,size:c}),"BaselineUI-ActionButton","function"==typeof n?n(w):n),style:"function"==typeof t?t(w):t,ref:GI(h,g),children:[!!r&&(0,vr.jsx)(r,{size:x,className:XM({variant:i,isDisabled:l,isFocusVisible:v,isHovered:b})}),e,!!o&&(0,vr.jsx)(o,{size:x,className:XM({variant:i,isDisabled:l,isFocusVisible:v,isHovered:b})}),"popover"===i&&(0,vr.jsx)(xr.bD,{size:8,className:FM})]})}));eN.displayName="ActionButton";var tN=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,er.dD)(i);return(0,vr.jsx)("div",{...c,className:e,style:t,"data-block-id":r,"data-block-class":o,"data-pressed":u,"data-testid":"dom-node-renderer",ref:GI(a,s)})}));tN.displayName="DomNodeRenderer";var nN=wM({defaultClassName:"_14uvjig4",variantClassNames:{isDisabled:{true:"_14uvjig5"},hasNumberInput:{false:"_14uvjig6"}},defaultVariants:{},compoundVariants:[]}),rN=wM({defaultClassName:"_14uvjigf _14uvjig1",variantClassNames:{active:{true:"_14uvjigg _14uvjig2"},isDisabled:{true:"_14uvjigh"},isReadOnly:{true:"_14uvjigi"},isFocusVisible:{true:"_14uvjigj _14uvjig2"},isHovered:{true:"_14uvjigk _14uvjig2"}},defaultVariants:{},compoundVariants:[]}),oN=wM({defaultClassName:"_14uvjig9 _14uvjig1",variantClassNames:{active:{true:"_14uvjig2"},isFocusVisible:{true:"_14uvjig2"},isDisabled:{true:"_14uvjigc"},isHovered:{true:"_14uvjig2"}},defaultVariants:{},compoundVariants:[]}),iN=wM({defaultClassName:"nrh1ehx",variantClassNames:{isDisabled:{true:"nrh1ehy"},hasError:{true:"nrh1ehz"},labelPosition:{start:"nrh1eh10",top:"nrh1eh11"}},defaultVariants:{},compoundVariants:[]}),aN=wM({defaultClassName:"nrh1eho",variantClassNames:{isDisabled:{true:"nrh1ehp"},labelPosition:{top:"nrh1ehq",start:"nrh1ehr"}},defaultVariants:{},compoundVariants:[]}),sN=wM({defaultClassName:"nrh1ehs",variantClassNames:{validationState:{valid:"nrh1eht",error:"nrh1ehu",warning:"nrh1ehv"},isReadOnly:{true:"nrh1ehw"}},defaultVariants:{},compoundVariants:[]}),lN="nrh1eh3",cN=wM({defaultClassName:"nrh1eh4",variantClassNames:{labelPosition:{top:"nrh1eh5",start:"nrh1eh6"},hasMessage:{true:"nrh1eh7"}},defaultVariants:{},compoundVariants:[[{labelPosition:"start",hasMessage:!1},"nrh1eh8"]]}),uN=wM({defaultClassName:"nrh1eh0",variantClassNames:{labelPosition:{top:"z9nup81",start:"nrh1eh2 z9nup82"}},defaultVariants:{},compoundVariants:[]}),dN=wM({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 pN({description:e,errorMessageProps:t,descriptionProps:n,warningMessage:r,errorMessage:o,labelPosition:i,isDisabled:a}){return e?(0,vr.jsx)("div",{...n,className:iN({isDisabled:a,labelPosition:i}),children:e}):o?(0,vr.jsx)("div",{...t,className:iN({hasError:!0,labelPosition:i}),children:o}):r?(0,vr.jsx)("div",{className:iN({isDisabled:a,labelPosition:i}),children:r}):null}var hN=wM({defaultClassName:"_1lnwne1 z9nup82",variantClassNames:{isHoveredOrFocused:{true:"_1lnwne2"},isInteractive:{false:"z9nup83"}},defaultVariants:{},compoundVariants:[[{isHoveredOrFocused:!0,isInteractive:!0},"_1lnwne4"]]}),fN=wM({defaultClassName:"_1jwycy80",variantClassNames:{placement:{bottom:"_1jwycy81",left:"_1jwycy82",right:"_1jwycy83",top:"_1jwycy84"},variant:{default:"_1jwycy85",inverse:"_1jwycy86"}},defaultVariants:{},compoundVariants:[]}),mN=wM({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:[]}),gN=l.forwardRef((({children:e,state:t,overlayProps:n,arrowProps:r,placement:o,variant:i,size:a,tooltipProps:s,includeArrow:c},u)=>{let{tooltipProps:d}=(0,er.fS)({isOpen:t.isOpen},t),p=(0,l.useMemo)((()=>{switch(o){case"top":return{x:0,y:4};case"bottom":return{x:0,y:-4};case"left":return{x:4,y:0};case"right":return{x:-4,y:0};default:return{x:0,y:0}}}),[o]),h=it(),[f]=Dn((()=>({from:{opacity:0,transform:`translate(${p.x}px, ${p.y}px)`},to:{opacity:1,transform:"translate(0, 0)"},immediate:!!h}))),m="center"===o?"bottom":o;return(0,vr.jsxs)(Qn.span,{...n,style:{...f,...n.style},ref:u,"data-placement":m,children:[c?(0,vr.jsx)("div",{className:fN({placement:m,variant:i}),...r}):null,(0,vr.jsx)("div",{...(0,er.v6)(d,s),className:mN({variant:i,size:a}),children:e})]})}));function vN({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 yN({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 bN({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 wN(){let e=(0,l.useRef)(!0);return(0,l.useEffect)((()=>{e.current=!1}),[]),e.current}gN.displayName="TooltipContent";var xN="SET_STATE",SN="UNDO",_N="REDO",CN=(e,t)=>{let{past:n,present:r,future:o}=e;switch(t.type){case xN:return{past:[...n,r],present:t.data,future:[]};case SN:return{past:n.slice(0,n?.length-1),present:n[n?.length-1],future:[r,...o]};case _N:return{past:[...n,r],present:o[0],future:o.slice(1)};default:throw new Error("Invalid action type")}},EN=(e={},{isDisabled:t,onAction:n})=>{let r=wN(),[o,i]=(0,l.useReducer)(CN,{past:[],present:e,future:[]}),{past:a,present:s,future:c}=o,u=(0,l.useRef)(),d=!!a?.length,p=!!c?.length;return(0,wr.useGranularEffect)((()=>{(u.current===SN||u.current===_N)&&(n?.(s,u.current),u.current=void 0)}),[s],[n,r]),{state:s,push:t?()=>{}:e=>{i({type:xN,data:e})},undo:t?()=>{}:()=>{u.current=SN,i({type:SN})},redo:t?()=>{}:()=>{u.current=_N,i({type:_N})},pastStates:a,futureStates:c,canUndo:d,canRedo:p}},kN=l.createContext({messages:{},shouldLogMissingMessages:!0}),zN=({children:e,messages:t={},shouldLogMissingMessages:n=!0,...r})=>{let o=l.useMemo((()=>({messages:t,shouldLogMissingMessages:n})),[t,n]);return(0,vr.jsx)(er.CY,{...r,children:(0,vr.jsx)(kN.Provider,{value:o,children:e})})};function PN(e){let{messages:t,shouldLogMissingMessages:n}=(0,l.useContext)(kN);(0,l.useEffect)((()=>{!e&&kr()(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 r=(0,er.pn)(e?(0,s.eh)(e):t);return{formatMessage:(e,t)=>{if("object"==typeof e)try{return r(e.id,t)}catch{return n&&console.log(`BUI 🌍: Translation not found for key: \`${e.id.toString()}\`. The default message, i.e. \`${e.defaultMessage}\`, will be used instead.`),e.defaultMessage||e.id}else try{return r(e,t)}catch{return n&&console.log(`BUI 🌍: Translation not found for key: \`${e.toString()}\`. The default message, i.e. \`${e.toString()}\`, will be used instead.`),e}},locale:(0,er.Ym)()}}zN.displayName="I18nProvider";var AN=e=>e;function DN(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 TN(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 IN({ref:e,onSelectionChange:t,onSelectionEnd:n,isDisabled:r}){let o=l.useRef(null);(0,er.dD)({ref:e,isDisabled:r,onPressEnd(){let t=KI(e.current).getSelection();t&&e.current?.contains(t.anchorNode)&&n?.(t)},onPressStart(){let t=KI(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=KI(n).getSelection();r&&e.current?.contains(r.anchorNode)&&t(r)}let i=VI(n);return i.addEventListener("selectionchange",o),()=>{i.removeEventListener("selectionchange",o)}}),[e,t,r])}function MN(e){let t=(0,l.useCallback)((()=>{let t=KI(e??document.body),n=t.matchMedia(br.Pq.tablet);return t.matchMedia(br.Pq.desktop).matches?"desktop":n.matches?"tablet":"mobile"}),[e]),[n,r]=l.useState(t);return EI((()=>{let n=KI(e),o=()=>{r(t())};return n.addEventListener("resize",o),o(),()=>{n.removeEventListener("resize",o)}}),[e,t]),n}var NN=l.createContext(void 0),ON=({portalContainer:e,children:t})=>(0,vr.jsx)(NN.Provider,{value:e,children:t});function jN(e){let t=(0,l.useContext)(NN);return e||t}ON.displayName="PortalContainerProvider";var RN=wM({defaultClassName:"z9nup84",variantClassNames:{size:{xs:"z9nup85",sm:"z9nup86"}},defaultVariants:{},compoundVariants:[]}),FN="z9nup83";function BN(e=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)((()=>{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)((()=>{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)((()=>{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)((()=>{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 LN=(0,l.createContext)({theme:br._k,setTheme:()=>{}}),VN={LIGHT:{name:"light",theme:br._k},DARK:{name:"dark",theme:br.a5}},KN=l.forwardRef((({theme:e="system",children:t,setTheme:n,className:r,style:o,UNSAFE_domProps:i,"data-block-id":a,"data-block-class":c},u)=>{let{direction:d}=(0,er.Ym)(),{colorScheme:p,reducedMotion:h,highContrast:f,transparency:m}=BN(),{name:g,theme:v}=(0,l.useMemo)((()=>{switch(e){case"system":return"light"===p?VN.LIGHT:VN.DARK;case"light":return VN.LIGHT;case"dark":return VN.DARK;default:return{name:"custom",theme:e}}}),[p,e]),y={"data-theme":g,"data-block-id":a,"data-block-class":c,"data-reduced-motion":h,"data-high-contrast":f,"data-transparency":m,"data-device":MN()},b=(0,l.useMemo)((()=>({theme:v,setTheme:n})),[v,n]);return(0,vr.jsx)(LN.Provider,{value:b,children:(0,vr.jsx)("div",{...(0,er.v6)(i,y),className:(0,s.xW)("z9nup80","BaselineUI-ThemeProvider",r),style:{...(0,Cr.D)(br.G6,v),...(0,Cr.D)({"var(--hj25q10)":"rtl"===d?"-1":"1"}),...o},ref:u,children:t})})}));KN.displayName="ThemeProvider";var $N=l.forwardRef((({className:e,style:t,children:n,"data-block-id":r,"data-block-class":o,...i},a)=>{let{theme:c}=(0,l.useContext)(LN);return(0,vr.jsx)(er.hJ,{...i,children:(0,vr.jsx)(KN,{ref:a,theme:c,style:t,className:(0,s.xW)("BaselineUI-Portal",e),"data-block-id":r,"data-block-class":o,children:n})})}));$N.displayName="Portal";var HN=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,...h},f)=>{let m=l.useRef(null),g=l.useRef(null),v=!h.text||h.isDisabled,y=(0,fr.O)({...h,delay:n,closeDelay:r,isDisabled:v}),{triggerProps:b,tooltipProps:w}=(0,er.Dr)({...h,isDisabled:v,delay:n,closeDelay:r},y,m),x=jN(s),{overlayProps:S,arrowProps:_,placement:C,updatePosition:E}=(0,er.v8)({arrowSize:a?13:0,targetRef:m,arrowBoundaryOffset:a?8:0,offset:a?12:2,overlayRef:g,placement:t,isOpen:y.isOpen,...h});return vN({ref:g,threshold:1,onIntersect:E,isDisabled:!y.isOpen}),yN({ref:m,onResize:E,isDisabled:!y.isOpen}),(0,vr.jsxs)(_r.M2,{...b,ref:m,children:[e,y.isOpen?(0,vr.jsx)($N,{disableFocusManagement:!0,portalContainer:x,className:c,style:u,"data-block-id":d,"data-block-class":p,children:(0,vr.jsx)(gN,{ref:GI(f,g),state:y,arrowProps:_,overlayProps:S,placement:C,tooltipProps:w,variant:o,size:i,includeArrow:a,children:h.text})}):null]})}));HN.displayName="Tooltip";var UN=l.forwardRef((({elementType:e,children:t,...n},r)=>{let o=cM(r),{focusableProps:i}=(0,_r.Wc)(n,o);return(0,vr.jsx)(e??"div",{ref:o,...i,children:t})}));UN.displayName="Focusable";var qN={xxs:8,xs:12,sm:16,md:20,lg:24},WN=l.forwardRef(((e,t)=>{let n=cM(t),{tooltipProps:r}=GM(e,n);return r?(0,vr.jsx)(HN,{...r,children:(0,vr.jsx)(GN,{...e,ref:n})}):(0,vr.jsx)(GN,{...e,ref:n})}));WN.displayName="ActionIconButton";var GN=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:h,isPressed:f,ref:m,isFocusVisible:g,isFocused:v,isHovered:y,uiStateOptions:b}=YM({...c,elementType:a}),w=(0,s.nP)({"data-block-id":c["data-block-id"],"data-block-class":c["data-block-class"],"data-focused":v,"data-focus-visible":g,"data-disabled":c.isDisabled,"data-hovered":y,"data-pressed":f});return(0,vr.jsxs)(a,{...(0,er.v6)(h,w),className:(0,s.xW)(BM({variant:o,size:r,isDisabled:!!c.isDisabled,isFocusVisible:g,isHovered:y}),"BaselineUI-ActionIconButton","function"==typeof e?e(b):e),ref:GI(u,m),style:"function"==typeof t?t(b):t,...i&&{tabIndex:void 0,role:void 0,"aria-label":void 0,"aria-labelledby":void 0,"aria-disabled":void 0},children:[(0,vr.jsx)(n,{role:"presentation",size:qN[r]}),"popover"===o&&(0,vr.jsx)(xr.bD,{size:8,className:FM})]})}));GN.displayName="ActionIconButtonCore";var YN=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,er.Ym)(),d=(0,ar.s)({...i,locale:u}),{hoverProps:p,isHovered:h}=(0,er.Mk)({isDisabled:i.isDisabled}),{focusProps:f,isFocusVisible:m,isFocused:g}=(0,er.og)(),{labelProps:v,decrementButtonProps:y,inputProps:b,incrementButtonProps:w,groupProps:x,descriptionProps:S,errorMessageProps:_}=(0,er.v)(i,d,c),C=(0,l.useMemo)((()=>i.isReadOnly?Sr.Eo:i.isInvalid?Sr.U9:null),[i.isInvalid,i.isReadOnly]),E=pN({description:i.description,errorMessageProps:_,descriptionProps:S,errorMessage:i.errorMessage,labelPosition:n,isDisabled:i.isDisabled}),k=(0,s.nP)({"data-disabled":i.isDisabled,"data-readonly":i.isReadOnly,"data-hovered":h,"data-focused":g,"data-focus-visible":m,"data-invalid":i.isInvalid,"data-block-id":i["data-block-id"],"data-block-class":i["data-block-class"]});return(0,vr.jsxs)("div",{style:t,className:(0,s.xW)(uN({labelPosition:n}),"BaselineUI-NumberInput",e),...k,ref:a,children:[i.label?(0,vr.jsxs)("div",{className:cN({labelPosition:n,hasMessage:!!E}),children:[(0,vr.jsx)("label",{...v,className:lN,children:i.label}),"start"===n&&E]}):null,(0,vr.jsxs)("div",{className:(0,s.xW)({[FN]:i.isDisabled}),children:[(0,vr.jsxs)("div",{...(0,er.v6)(x,p),className:(0,s.xW)(dN({isHovered:h,isDisabled:!!i.isDisabled,isReadOnly:!!i.isReadOnly,validationState:i.isInvalid?"error":"valid",isFocused:g,variant:r}),{_1lnwne0:"start"===n},"BaselineUI-NumberInput-Container"),children:[(0,vr.jsx)("input",{...(0,er.v6)(b,f),ref:c,className:(0,s.xW)("BaselineUI-NumberInput-Input",aN({isDisabled:i.isDisabled,labelPosition:n}))}),C?(0,vr.jsx)(C,{className:sN({validationState:"error",isReadOnly:i.isReadOnly}),size:16}):null,o?(0,vr.jsxs)("div",{className:hN({isHoveredOrFocused:h||g,isInteractive:!i.isReadOnly&&!i.isDisabled}),children:[(0,vr.jsx)(WN,{variant:"secondary",size:"xxs",icon:xr.QG,...y,className:"BaselineUI-NumberInput-DecrementButton"}),(0,vr.jsx)(EM,{style:{height:16},orientation:"vertical"}),(0,vr.jsx)(WN,{variant:"secondary",size:"xxs",icon:xr.c1,...w,className:"BaselineUI-NumberInput-DecrementButton"})]}):null]}),"top"===n&&E]})]})}));YN.displayName="NumberInput";var ZN=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":h,"aria-details":f,"aria-describedby":m,"data-block-id":g,"data-block-class":v,defaultValue:y,isReadOnly:b,label:w,id:x,includeNumberInput:S},_)=>{let C=l.useRef(null),E={onChange:void 0===n?void 0:e=>{n(e[0])},isDisabled:i||b,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===y?void 0:[y],"aria-label":p,"aria-labelledby":h,"aria-details":f,"aria-describedby":m,id:x,label:w},k=(0,er.JY)(o),z=(0,dr.S)({...E,numberFormatter:k}),{trackProps:P,groupProps:A,labelProps:D}=(0,er.PF)(E,z,C),T=(0,vr.jsx)(YN,{variant:"ghost",showStepper:!1,"aria-label":p,"aria-labelledby":D.id,value:z.getThumbValue(0),formatOptions:o,onChange:e=>{z.setThumbValue(0,e)},style:{width:55,textAlign:"right",flexShrink:0}});return(0,vr.jsxs)("div",{...A,style:t,"data-block-id":g,"data-block-class":v,className:(0,s.xW)("_14uvjig0 z9nup81","BaselineUI-Slider",e),children:[w?(0,vr.jsxs)("div",{className:"_14uvjig3",children:[(0,vr.jsx)("label",{...D,className:(0,s.xW)(nN({isDisabled:i,hasNumberInput:!!S}),"BaselineUI-Slider-Label"),children:w}),S?T:null]}):null,(0,vr.jsxs)("div",{className:"_14uvjig7",children:[(0,vr.jsx)("div",{...P,className:(0,s.xW)("_14uvjig8","BaselineUI-Slider-Track"),ref:GI(C,_),"data-testid":"track",children:(0,vr.jsx)(JN,{state:z,trackRef:C,isDisabled:i,isReadOnly:b})}),S&&!w?T:null]})]})}));function JN({state:e,trackRef:t,isDisabled:n,isReadOnly:r}){let o=l.useRef(null),{thumbProps:i,inputProps:a,isDragging:c}=(0,er.xX)({trackRef:t,inputRef:o},e),{focusProps:u,isFocused:d,isFocusVisible:p}=(0,er.og)(),{hoverProps:h,isHovered:f}=(0,er.Mk)({isDisabled:n}),m=(0,s.nP)({"data-disabled":n,"data-readonly":r,"data-hovered":f,"data-focus-visible":p,"data-dragging":c,"data-focused":d});return(0,vr.jsxs)(vr.Fragment,{children:[(0,vr.jsx)("div",{className:(0,s.xW)(oN({isDisabled:n,isFocusVisible:p,active:c,isHovered:f}),"BaselineUI-Slider-TrackHighlight"),style:{width:i.style?.left},"data-testid":"track-highlight"}),(0,vr.jsxs)("div",{...(0,er.v6)(i,h,m),className:(0,s.xW)("_14uvjige _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6k2 _1yep5z6k3 _1yep5z6k4","BaselineUI-Slider-ThumbHandle"),"data-testid":"thumb",children:[(0,vr.jsx)("div",{className:(0,s.xW)(rN({isDisabled:n,isFocusVisible:p,active:c,isReadOnly:r,isHovered:f}),"BaselineUI-Slider-Thumb")}),(0,vr.jsx)(er.s6,{children:(0,vr.jsx)("input",{ref:o,...(0,er.v6)(a,u)})})]})]})}ZN.displayName="Slider";var XN=wM({defaultClassName:"_1tkzayn0 _1yep5z6dy",variantClassNames:{size:{sm:"_1tkzayn1",md:"_1tkzayn2",lg:"_1tkzayn3"},type:{subtitle:"_1yep5z610m",title:"_1yep5z610m",label:"_1yep5z610n",value:"_1yep5z610n",helper:"_1yep5z610o",body:"_1yep5z610m"}},defaultVariants:{},compoundVariants:[[{type:"title",size:"sm"},"_1yep5z61kx"],[{type:"title",size:"md"},"_1yep5z61l0"],[{type:"title",size:"lg"},"_1yep5z61l3"],[{type:"body",size:"sm"},"_1yep5z61ln"],[{type:"body",size:"md"},"_1yep5z61lq"],[{type:"body",size:"lg"},"_1yep5z61lq"],[{type:"subtitle",size:"sm"},"_1yep5z61lj"],[{type:"subtitle",size:"md"},"_1yep5z61lm"],[{type:"subtitle",size:"lg"},"_1yep5z61lm"],[{type:"label",size:"md"},"_1yep5z61ll"],[{type:"label",size:"lg"},"_1yep5z61ll"],[{type:"value",size:"md"},"_1yep5z61ll"],[{type:"value",size:"lg"},"_1yep5z61ll"],[{type:"helper",size:"sm"},"_1yep5z61lf"]]}),QN=l.forwardRef((({elementType:e="span",type:t="title",children:n,size:r="md",...o},i)=>(0,vr.jsx)(e,{...o,className:(0,s.xW)(XN({size:r,type:t}),"BaselineUI-Text",o.className),ref:i,children:n})));QN.displayName="Text";var eO=wM({defaultClassName:"siobe21 _1yep5z6ao _1yep5z6ap _1yep5z6aq _1yep5z6bc _1yep5z6bd _1yep5z6be _1yep5z6d7 _1yep5z6lq _1yep5z6lo _1yep5z6gz _1yep5z6lf _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6it _1yep5z6iu _1yep5z6iv",variantClassNames:{background:{subtle:"_1yep5z611t",medium:"_1yep5z611u"},isFocusVisible:{true:"_1yep5z6178 _1yep5z617a _1yep5z617b _1yep5z613h"}},defaultVariants:{},compoundVariants:[]}),tO=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,...d},p)=>{let{formatMessage:h}=PN(),f=l.useRef(null),{dialogProps:m,titleProps:g}=(0,er.sp)(d,f),{focusProps:v,isFocusVisible:y}=(0,er.og)();return(0,vr.jsxs)("div",{...(0,er.v6)(m,v),className:(0,s.xW)(eO({background:r,isFocusVisible:y}),"BaselineUI-Drawer",e),"data-block-id":a,"data-block-class":c,style:t,ref:GI(p,f),children:[(0,vr.jsxs)(zM,{paddingLeft:"lg",paddingRight:"sm",backgroundColor:"background.primary.subtle",display:"flex",justifyContent:"space-between",alignItems:"center",gap:"lg",className:"siobe25",children:[(0,vr.jsx)(QN,{type:"title",size:"sm",...g,className:"z9nup87",children:o}),(0,vr.jsxs)(zM,{children:[i?(0,vr.jsx)(WN,{...i,variant:"secondary"}):null,(0,vr.jsx)(WN,{variant:"secondary",size:"md",icon:zr.uv,onPress:u,"aria-label":h(nO.close)})]})]}),(0,vr.jsx)(EM,{variant:"subtle"===r?"primary":"secondary"}),n]})}));tO.displayName="Drawer";var nO=AN({close:{id:"close",defaultMessage:"Close"}});var rO=wM({defaultClassName:"aml2vl0 _1yep5z6l5 _1yep5z6l6 _1yep5z6l8 _1yep5z6l7 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6i8 _1yep5z6i9 _1yep5z6ia",variantClassNames:{enableDrawer:{false:"_1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6k2 _1yep5z6k3 _1yep5z6k4",true:"aml2vl2"}},defaultVariants:{},compoundVariants:[]}),oO=l.createContext({state:null,triggerProps:{},overlayProps:{}}),iO=({children:e,...t})=>{let n=(0,sr.T)(t),{triggerProps:r,overlayProps:o}=(0,er.oJ)({type:"dialog"},n),i=(0,l.useMemo)((()=>({state:n,triggerProps:r,overlayProps:o})),[n,r,o]);return(0,vr.jsx)(oO.Provider,{value:i,children:e})};iO.displayName="Modal";var aO=l.createContext({isDrawer:!1,closeDrawer:()=>{}}),sO=l.createContext({setIsPopoverSafelyClosed:()=>{}}),lO=Qn(KN),cO=Qn((({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})=>{let{state:p}=l.useContext(oO),[h,f]=l.useState(!0),m=MN(i),g=jN(i),v="boolean"==typeof c&&c||"auto"===c&&"mobile"===m;(0,s.V1)(p,"ModalContent must be a child of Modal");let y=l.useRef(null),b="function"==typeof r?r(v):r,w="function"==typeof o?o(v):o,{underlayProps:x,overlayProps:S,close:_,containerHeight:C}=function(e,t,n){let{isDisabled:r}=e,o=it(),[i,a]=l.useState("100vh");(0,l.useEffect)((()=>{if(!aM()&&!sM())return;let e=KI(n.current);function t(){a(`${e?.visualViewport.height}px`)}return t(),e?.visualViewport.addEventListener("resize",t),()=>{e?.visualViewport.removeEventListener("resize",t)}}),[n]);let[{y:s},c]=Dn((()=>({y:0,immediate:o,config:{easing:ze.easeOutCubic}}))),u=(0,l.useRef)(0),d=(0,l.useCallback)((()=>{c.start({y:u.current,onRest:()=>{t.close()}})}),[c,t]),p=(0,l.useCallback)((e=>{e.target.closest("[data-drawer]")||d()}),[d]);(0,wr.useGranularLayoutEffect)((()=>{u.current=n.current?.offsetHeight||0,c.set({y:u.current}),c.start({y:0,immediate:!!o})}),[],[c,o]);let h=s.to({range:[0,u.current/2,u.current],output:[.5,.2,0],extrapolate:"clamp"}).to((e=>`rgba(0,0,0,${e})`));return{overlayProps:{style:r?void 0:{transform:s.to((e=>`translateY(${e}px)`))}},underlayProps:{style:r?void 0:{backgroundColor:h},onPointerDown:r?void 0:p},close:d,containerHeight:r?void 0:i}}({isDisabled:!v,isDismissable:b&&h},p,y),{modalProps:E,underlayProps:k}=(0,er.ln)({isDismissable:!v&&h,isKeyboardDismissDisabled:w},p,y),{theme:z}=(0,l.useContext)(LN),P=Dn({from:{opacity:0,transform:"scale(0.95)"},to:{opacity:1,transform:"scale(1)"},immediate:!!it()||a,config:{easing:ze.easeInBounce}}),A=(0,l.useMemo)((()=>({...E.style,...v?{...S.style,width:"100%"}:P})),[S.style,E.style,v,P]),D=(0,l.useMemo)((()=>({isDrawer:v,closeDrawer:_})),[v,_]),T=(0,l.useMemo)((()=>({setIsPopoverSafelyClosed:f})),[f]);return(0,vr.jsx)(er.hJ,{portalContainer:g,children:(0,vr.jsx)(aO.Provider,{value:D,children:(0,vr.jsx)(sO.Provider,{value:T,children:(0,vr.jsxs)(lO,{className:(0,s.xW)(rO({enableDrawer:v}),t),theme:z,"data-block-id":u,"data-block-class":d,style:{...n,height:v?C:"auto",...(0,Cr.D)({"var(--siobe20)":C})},children:[(0,vr.jsx)(Qn.div,{...(0,er.v6)(k,x,{onPointerDown:v?x.onPointerDown:k.onPointerDown}),"data-testid":"underlay",style:x.style,className:(0,s.xW)("_1yep5z6l5 _1yep5z6l6 _1yep5z6l8 _1yep5z6l7 _1yep5z6gb _1yep5z6i8 _1yep5z6i9 _1yep5z6ia","BaselineUI-Modal-Underlay")}),(0,vr.jsx)(Qn.div,{...(0,er.v6)(E,S),style:A,ref:y,"data-drawer":v,className:"BaselineUI-Modal-Content",children:"function"==typeof e?e(p):e})]})})})})})),uO=({children:e,style:t,...n})=>{let{state:r}=l.useContext(oO);(0,s.V1)(r,"ModalContent must be a child of Modal");let o=it();return Tn(r.isOpen,{from:{opacity:0},enter:{opacity:1},immediate:!!o||n.disableAnimation})(((o,i)=>i&&(0,vr.jsx)(cO,{...n,style:{...t,...o},children:"function"==typeof e?e(r):e})))},dO=wM({defaultClassName:"cjv3et0 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6g1 _1yep5z6d7",variantClassNames:{size:{sm:"cjv3et1",md:"cjv3et2",lg:"cjv3et3",content:"cjv3et4"},variant:{primary:"_1yep5z612r _1yep5z617g _1yep5z617i",ghost:"cjv3et6"},isDrawer:{true:"cjv3et7 _1yep5z6y7 _1yep5z6y8 _1yep5z6y9 _1yep5z6yv _1yep5z6yw _1yep5z6yx _1yep5z6174"},isFocusVisible:{true:"_1yep5z613h _1yep5z617b _1yep5z617a _1yep5z6178"}},defaultVariants:{},compoundVariants:[]}),pO=l.createContext({titleProps:{}}),hO=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 h=l.useRef(null),f=l.useRef(null),{isDrawer:m,closeDrawer:g}=(0,l.useContext)(aO),[v,y]=l.useState(""),{focusProps:b,isFocusVisible:w}=(0,er.og)();(0,l.useLayoutEffect)((()=>{let e=f.current?.getRootNode(),t=d["aria-label"]||"";d["aria-labelledby"]&&(t=e?.querySelector(`#${d["aria-labelledby"].replaceAll(":","\\:")}`)?.textContent||""),y(t)}),[d]);let{dialogProps:x,titleProps:S}=(0,er.sp)(d,h),_=(0,l.useMemo)((()=>({titleProps:S})),[S]);return m&&r?(0,vr.jsx)(tO,{title:v,onCloseRequest:g,className:t,...d,"data-drawer":!0,"data-block-id":a,"data-block-class":c,ref:GI(f,p),background:u,children:e}):(0,vr.jsx)(pO.Provider,{value:_,children:(0,vr.jsx)("section",{...(0,er.v6)(x,b),"data-block-id":a,"data-block-class":c,ref:GI(h,p),style:n,className:(0,s.xW)(dO({size:m?"content":o,variant:i,isDrawer:m,isFocusVisible:w}),"BaselineUI-Dialog",t),children:e})})}));hO.displayName="Dialog";var fO=l.forwardRef((({children:e,className:t,style:n},r)=>{let{titleProps:o}=(0,l.useContext)(pO);return l.isValidElement(e)?l.cloneElement(e,{...o,ref:r,className:(0,s.xW)(e.props.className,t),style:{...e.props.style,...n}}):(0,vr.jsx)("h3",{...o,ref:r,className:t,style:n,children:e})}));fO.displayName="DialogTitle";var mO=({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)(sO);(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,vr.jsxs)(vr.Fragment,{children:[i?Fn.createPortal((0,vr.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:gO}=br.G6,vO=l.forwardRef((({className:e,style:t,state:n,overlayProps:r,underlayClassName:o,children:i,includeArrow:a=!1,offset:c=2,portalContainer:u,contentContainerClassName:d,contentContainerStyle:p,"data-block-id":h,"data-block-class":f,...m},g)=>{let v=l.useRef(null),y=jN(u),b=a?8:0,{underlayProps:w,popoverProps:x,placement:S,arrowProps:_}=(0,er.fP)({...m,offset:c+b,popoverRef:v,containerPadding:m.containerPadding||0},n);delete x.style?.position;let C=function({placement:e,isOpen:t}){return Tn(t,{from:{opacity:0,transform:`translate3d(${"bottom"===e?"0, 4px, 0":"0, -4px, 0"})`},enter:{opacity:1,transform:"translate3d(0, 0, 0)"},immediate:!!it(),config:jt.stiff})}({placement:S,isOpen:n.isOpen}),E="center"===S?"bottom":S;return(0,vr.jsx)(mO,{isOpen:n.isOpen,popoverContentRef:v,portalContainer:y,style:x.style,children:C(((l,c)=>c&&(0,vr.jsxs)($N,{portalContainer:y,style:t,ref:g,"data-block-id":h,"data-block-class":f,children:[!m.isNonModal&&(0,vr.jsx)("div",{...w,className:(0,s.xW)("_1gzftth7",o,"BaselineUI-Popover-Underlay")}),(0,vr.jsxs)(Qn.div,{...x,style:{...x.style,...l,...(0,Cr.D)({"var(--_1gzftth0)":`${m.triggerRef?.current?.offsetWidth}px`})},ref:GI(v,g),className:(0,s.xW)("_1gzftth1 _1yep5z6ih _1yep5z6ii _1yep5z6ij","BaselineUI-Popover-Content",e),"data-placement":["top","bottom","left","right"].filter((e=>S?.includes(e))),children:[a?(0,vr.jsxs)("svg",{className:(0,s.xW)(KM[E],"BaselineUI-PopoverContent-Arrow"),..._,style:{..._.style,position:"absolute"},width:"15",height:"9",viewBox:"0 0 15 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,vr.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:gO.border.medium}),(0,vr.jsx)("path",{d:"M7.504 6.492 2.248.488h10.511L10.132 3.49 7.504 6.492Z",fill:gO.background.primary.subtle,stroke:gO.background.primary.subtle})]}):null,(0,vr.jsx)(er.Rz,{onDismiss:n.close}),(0,vr.jsx)("div",{...r,style:p,className:(0,s.xW)("_1gzftth6",d),children:"function"==typeof i?i(n):i}),(0,vr.jsx)(er.Rz,{onDismiss:n.close})]})]})))})}));vO.displayName="PopoverContentCore";var yO=l.forwardRef(((e,t)=>{let{state:n,overlayTriggerAria:{overlayProps:r},triggerRef:o}=(0,l.useContext)(LM);return(0,s.V1)(o),n?(0,vr.jsx)(vO,{ref:t,...e,triggerRef:e.triggerRef||o,overlayProps:r,state:n}):null}));yO.displayName="PopoverContent";var bO=wM({defaultClassName:"_1mdhlqv3",variantClassNames:{isOpen:{true:"_1mdhlqv4"}},defaultVariants:{},compoundVariants:[]}),wO="_1mdhlqv6 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6d7",xO=wM({defaultClassName:"_1mdhlqv0 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z69o _1yep5z69p _1yep5z69q _1yep5z6eu _1yep5z6k8 _1yep5z6k9 _1yep5z6ka _1yep5z6dy",variantClassNames:{isFocused:{false:"_1mdhlqv1"},isDisabled:{true:"z9nup83 _1yep5z6ey"}},defaultVariants:{},compoundVariants:[]}),SO="_1mdhlqv7 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6g1",_O=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},h)=>{let f=cM(h),[m,g]=u(p.value,p.defaultValue||0,n),[v,y]=l.useState(!1),{keyboardProps:b}=(0,er.de)({onKeyDown:e=>{("Enter"===e.key||"Escape"===e.key)&&y(!1)}}),w=i(m||0),x=a?.isDisabled||p["aria-label"]?`${p["aria-label"]}, ${w}`:w.toString();return(0,vr.jsxs)(zM,{display:"flex",flexDirection:"row",gap:"md",paddingX:"md",alignItems:"center",className:(0,s.xW)("BaselineUI-IconSlider",e),"data-block-id":r,style:t,ref:f,children:[o?(0,vr.jsx)(o,{size:24,className:(0,br.UV)({color:"icon.primary"})}):null,(0,vr.jsxs)(VM,{type:"dialog",isOpen:v,onOpenChange:y,children:[(0,vr.jsx)(qM,{children:(0,vr.jsx)(HN,{text:p["aria-label"],size:"sm",variant:"inverse",includeArrow:!1,isDisabled:d,...a,children:(0,vr.jsx)(eN,{label:w,variant:"popover","aria-label":x,isDisabled:d,style:{fontVariantNumeric:"tabular-nums",minWidth:68,justifyContent:"space-between"}})})}),(0,vr.jsx)(yO,{placement:"bottom start",...c,className:(0,s.xW)(wO,c?.className),children:(0,vr.jsx)(hO,{size:"content","aria-label":x,children:(0,vr.jsx)(er.n1,{autoFocus:!0,children:(0,vr.jsx)(zM,{paddingY:"sm",paddingX:"lg",marginY:"md",style:{width:215},...b,children:(0,vr.jsx)(ZN,{...p,onChange:e=>{g(e),n?.(e)},value:m})})})})})]})]})}));_O.displayName="IconSlider";var CO=wM({defaultClassName:"bpklwa7",variantClassNames:{isReadOnly:{true:"bpklwa8"},isDisabled:{true:"bpklwa9"},isSelected:{true:"bpklwaa"},isFocused:{true:"bpklwab"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!1,isReadOnly:!1},"bpklwac"]]}),EO=wM({defaultClassName:"bpklwae",variantClassNames:{isDisabled:{true:"bpklwaf"},isSelected:{true:"bpklwag"},isReadOnly:{true:"bpklwah"}},defaultVariants:{},compoundVariants:[]}),kO=wM({defaultClassName:"bpklwa0",variantClassNames:{labelPosition:{top:"bpklwa1",left:"bpklwa2"}},defaultVariants:{},compoundVariants:[]}),zO=wM({defaultClassName:"bpklwa3",variantClassNames:{labelPosition:{top:"bpklwa4",left:"bpklwa5"}},defaultVariants:{},compoundVariants:[]}),PO=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,hr.H)(c),{inputProps:h,isPressed:f}=(0,er.Kc)(c,p,d),{isFocusVisible:m,focusProps:g}=(0,er.og)(),{hoverProps:v,isHovered:y}=(0,er.Mk)({isDisabled:c.isDisabled}),b=(0,s.nP)({"data-block-id":i,"data-block-class":a,"data-focused":m,"data-disabled":c.isDisabled,"data-focus-visible":m,"data-selected":p.isSelected,"data-readonly":c.isReadOnly,"data-hovered":y,"data-pressed":f}),w=(0,vr.jsx)("div",{className:(0,s.xW)(CO({isSelected:p.isSelected,isDisabled:!!c.isDisabled,isFocused:m,isReadOnly:!!c.isReadOnly}),"BaselineUI-Switch-Track"),children:(0,vr.jsx)("div",{className:(0,s.xW)(EO({isSelected:p.isSelected,isDisabled:c.isDisabled,isReadOnly:c.isReadOnly}),"BaselineUI-Switch-Knob"),"data-testid":"switch-knob"})});return(0,vr.jsxs)("label",{...(0,er.v6)(b,v),className:(0,s.xW)(kO({labelPosition:n}),"BaselineUI-Switch",e),style:o,ref:u,children:[t?(0,vr.jsx)("span",{className:(0,s.xW)("bpklwad","BaselineUI-Switch-Label"),children:t}):null,(0,vr.jsx)(er.s6,{children:(0,vr.jsx)("input",{...(0,er.v6)(h,g),ref:d})}),r?(0,vr.jsxs)("div",{className:zO({labelPosition:n}),children:[(0,vr.jsx)("span",{className:(0,s.xW)("BaselineUI-Switch-Status-Label","bpklwa6"),children:p.isSelected?r.on:r.off}),w]}):w]})}));PO.displayName="Switch";var AO=wM({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:[]}),DO={sm:zr.WI,md:yr.WIv,lg:yr.WIv},TO=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,cr.V)(a),{inputProps:p,clearButtonProps:h}=(0,er.Ql)({...a,"aria-haspopup":!1,"aria-autocomplete":"none",type:"search"},d,u),{focusProps:f,isFocusVisible:m,isFocused:g}=(0,er.og)({within:!0,isTextInput:!0}),v=DO[t],y="sm"===t?Pr.uv:Sr.uv,b=(0,s.nP)({"data-block-id":r,"data-block-class":o,"data-focused":g,"data-disabled":a.isDisabled,"data-focus-visible":m});return(0,vr.jsxs)("div",{...b,className:(0,s.xW)(AO({size:t,isFocused:g,variant:n,hasText:!!d.value,isDisabled:a.isDisabled}),"BaselineUI-SearchInput",e),style:i,ref:c,children:[(0,vr.jsx)(v,{size:"sm"===t?20:24}),(0,vr.jsx)("input",{...(0,er.v6)(p,f),className:"_19n40yy9",ref:u}),""!==d.value&&(0,vr.jsx)(WN,{icon:y,...h,size:"sm"===t?"xs":"sm",variant:"secondary"})]})}));TO.displayName="SearchInput";var IO=({section:e,showSelectedIcon:t,state:n})=>{let{itemProps:r,groupProps:o,headingProps:i}=(0,er.y7)({heading:e.value?.title,"aria-label":e["aria-label"]});return(0,vr.jsxs)(vr.Fragment,{children:[e.key!==n.collection.getFirstKey()&&(0,vr.jsx)(EM,{elementType:"li"}),(0,vr.jsxs)("li",{...r,children:[e.value?.title?(0,vr.jsx)(er.s6,{children:(0,vr.jsx)("span",{...i,children:e.value.title})}):null,(0,vr.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,vr.jsx)(MO,{item:e,state:n,showSelectedIcon:t},e.key))))})]})]})};IO.displayName="MenuSection";var MO=({item:e,state:t,className:n,showSelectedIcon:r})=>{let o=l.useRef(null),i=(0,er.Os)({key:e.key},t,o),{isFocusVisible:a,focusProps:s}=(0,er.og)();return(0,vr.jsx)(PM,{item:e,liProps:(0,er.v6)(i.menuItemProps,s,{className:n}),...i,isFocusVisible:a,ref:o,description:e.value?.keyboardShortcut,descriptionProps:i.keyboardShortcutProps,_state:t,showSelectedIcon:r})};MO.displayName="MenuItem";var NO=l.forwardRef((({className:e,itemClassName:t,onContentKeyDown:n,...r},o)=>{let i=(0,mr.p)(r),a=l.useRef(null),{menuProps:c}=(0,er.b)(r,i,a),{keyboardProps:u}=(0,er.de)({onKeyDown:n});return(0,vr.jsx)("ul",{...(0,er.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 _1yep5z6lh _1yep5z6lg _1yep5z6hs _1yep5z6lk _1yep5z6g1",e),ref:GI(a,o),children:[...i.collection].map((e=>"section"===e.type?(0,vr.jsx)(IO,{section:e,state:i,showSelectedIcon:"multiple"===r.selectionMode||"single"===r.selectionMode},e.key):(0,vr.jsx)(MO,{item:e,state:i,className:t,showSelectedIcon:"multiple"===r.selectionMode||"single"===r.selectionMode},e.key)))})}));NO.displayName="MenuContent";var OO=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:h,triggerLabel:f,renderTrigger:m=(({buttonProps:e,ref:t})=>(0,vr.jsx)(eN,{...e,variant:"popover",ref:t})),portalContainer:g,...v},y)=>{let b=l.useRef(null),w=jN(g),x=(0,ir.I)({defaultOpen:e,isOpen:n,onOpenChange:t}),{menuTriggerProps:S,menuProps:_}=(0,er.Vi)({isDisabled:r,type:"menu"},x,b),C=hM(),E=(0,l.useMemo)((()=>(0,er.v6)(S,{isDisabled:r,isSelected:x.isOpen,className:"BaselineUI-Menu-Trigger",label:"function"==typeof f?f(x.isOpen):f})),[S,r,x.isOpen,f]);return(0,l.useEffect)((()=>{!f&&!m&&console.warn("The `triggerLabel` prop is required when no `renderTrigger` or `children` is provided.")}),[m,f]),(0,vr.jsxs)(vr.Fragment,{children:[m({buttonProps:E,ref:b}),(0,vr.jsx)(vO,{triggerRef:b,state:x,placement:i,isNonModal:a,shouldFlip:c,shouldUpdatePosition:u,boundaryElement:d,crossOffset:p,offset:h||2,className:(0,s.xW)(wO,"BaselineUI-Menu-Popover"),portalContainer:w,children:(0,vr.jsx)(NO,{className:o,..._,...v,ref:y,autoFocus:x.focusStrategy||"first",children:C})})]})}));OO.displayName="Menu";var jO=wM({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"]]}),RO=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,...h},f)=>{let m=l.useRef(null),{linkProps:g,isPressed:v}=(0,er.iE)({...h,elementType:h.onPress?"span":i},m),{isFocusVisible:y,isFocused:b,focusProps:w}=(0,er.og)(),{hoverProps:x,isHovered:S}=(0,er.Mk)({isDisabled:h.isDisabled}),_=i,C=(0,s.nP)({"data-block-id":c,"data-block-class":u,"data-disabled":h.isDisabled,"data-focused":b,"data-pressed":v,"data-focus-visible":y,"data-hovered":S,role:p,title:d});return(0,vr.jsx)(_,{...(0,er.v6)(g,w,x,C),className:(0,s.xW)(jO({variant:r,isFocusVisible:y,isHovered:S,isDisabled:h.isDisabled,size:o,isActive:v,type:a}),"BaselineUI-Link",e),ref:GI(m,f),style:t,children:n})}));async function FO({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)}RO.displayName="Link";var BO=wM({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"]]}),LO=wM({defaultClassName:"_180w5ede",variantClassNames:{disabled:{true:"_180w5edf"}},defaultVariants:{},compoundVariants:[]}),VO=wM({defaultClassName:"_180w5ed9",variantClassNames:{disabled:{true:"_180w5eda"}},defaultVariants:{},compoundVariants:[]}),KO=wM({defaultClassName:"_180w5edb",variantClassNames:{disabled:{true:"_180w5edc"},hovered:{true:"_180w5edd"}},defaultVariants:{},compoundVariants:[]}),$O=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,er.Bi)(),c=(0,er.Bi)(),u=(0,er.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:h}=(0,er.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:f,isFocusVisible:m}=(0,er.og)(),{hoverProps:g,isHovered:v}=(0,er.Mk)({isDisabled:i.isDisabled});return(0,vr.jsxs)("label",{...(0,er.v6)(h,g,p),className:(0,s.xW)(BO({variant:o,disabled:i.isDisabled,hoveredOrFocusedOrActive:v||m}),e),ref:GI(a,c),children:[(0,vr.jsx)(er.s6,{children:(0,vr.jsx)("input",{...(0,er.v6)(f,u)})}),r?(0,vr.jsx)(r,{size:20,className:VO({disabled:i.isDisabled})}):null,(0,vr.jsxs)("div",{children:[(0,vr.jsx)("div",{className:KO({disabled:i.isDisabled,hovered:v}),children:t}),n?(0,vr.jsx)("div",{...d,className:LO({disabled:i.isDisabled}),children:n}):null]})]})}));$O.displayName="FileUpload";var HO=wM({defaultClassName:"_12vfhl48",variantClassNames:{variant:{success:"_12vfhl49",error:"_12vfhl4a",active:"_12vfhl4b"}},defaultVariants:{},compoundVariants:[]}),UO=wM({defaultClassName:"_12vfhl43 _12vfhl42",variantClassNames:{hasLabel:{false:"_12vfhl44"}},defaultVariants:{},compoundVariants:[]}),qO=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,er.Bi)(),{labelProps:p,progressBarProps:h}=(0,er.EB)({...c,"aria-describedby":o?d:c["aria-describedby"]}),{minValue:f=0,maxValue:m=100,value:g=0,label:v}=c,y=(g-f)/(m-f),b=`${Math.round(100*y)}%`,w=(0,vr.jsx)("output",{className:UO({hasLabel:!!v}),children:h["aria-valuetext"]}),x="error"===n?i:o;return(0,vr.jsxs)("div",{...h,style:t,className:(0,s.xW)("_12vfhl40 z9nup81","BaselineUI-ProgressBar",e),"data-block-id":a,"data-block-class":l,ref:u,children:[v?(0,vr.jsxs)("div",{className:"_12vfhl41 z9nup82",children:[(0,vr.jsx)("label",{...p,className:"_12vfhl42",children:v}),r?w:null]}):null,(0,vr.jsxs)("div",{className:"_12vfhl45",children:[(0,vr.jsxs)("div",{className:"_12vfhl46 z9nup82",children:[(0,vr.jsx)("div",{className:"_12vfhl47",children:(0,vr.jsx)("div",{style:{width:b},className:HO({variant:n})})}),!v&&r?w:null]}),x?(0,vr.jsx)("div",{className:iN({hasError:"error"===n}),id:d,children:x}):null]})]})}));function WO({isReadOnly:e,validationState:t}){return e?Sr.Eo:"error"===t?Sr.U9:"warning"===t?Sr.AK:null}qO.displayName="ProgressBar";var GO=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 h=l.useRef(null),{inputProps:f,labelProps:m,descriptionProps:g,errorMessageProps:v,validationErrors:y}=(0,er.vZ)({...d,validationState:t?"error"===t?"invalid":"valid":void 0},h),b=d.errorMessage||y.join(" "),w=pN({...d,errorMessage:b,descriptionProps:g,errorMessageProps:v,labelPosition:o});b&&(t="error");let{hoverProps:x,isHovered:S}=(0,er.Mk)({isDisabled:d.isDisabled}),{isFocused:_,focusProps:C,isFocusVisible:E}=(0,er.og)(),k=WO({isReadOnly:d.isReadOnly,validationState:t??"valid"}),z=(0,s.nP)({"data-readonly":d.isReadOnly,"data-disabled":d.isDisabled,"data-validation-state":t,"data-focused":_,"data-focus-visible":E});return(0,vr.jsxs)("div",{className:(0,s.xW)(uN({labelPosition:o}),"BaselineUI-TextInput",e),"data-block-id":c,"data-block-class":u,style:r,ref:p,children:[d.label||"start"===o&&w?(0,vr.jsxs)("div",{className:cN({labelPosition:o,hasMessage:!!w}),children:[(0,vr.jsx)("label",{...m,className:lN,children:d.label}),"start"===o&&w]}):null,(0,vr.jsxs)("div",{className:(0,s.xW)({[FN]:d.isDisabled}),children:[(0,vr.jsxs)("div",{...x,className:dN({validationState:t??"valid",isHovered:S,isFocused:_,variant:n,isReadOnly:!!d.isReadOnly,isDisabled:!!d.isDisabled}),children:[(0,vr.jsx)("input",{...(0,er.v6)(f,C,z),className:(0,s.xW)(aN({isDisabled:d.isDisabled,labelPosition:o}),"BaselineUI-TextInput-Input",a),style:i,ref:h}),k?(0,vr.jsx)(k,{className:sN({validationState:t??"valid",isReadOnly:d.isReadOnly}),size:16}):null]}),"top"===o&&w]})]})}));GO.displayName="TextInput";var YO=({value:e,...t})=>{let n=(0,er.JY)(t);return(0,vr.jsx)(vr.Fragment,{children:n.format(e)})};YO.displayName="NumberFormat";var ZO=wM({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"]]}),JO=wM({defaultClassName:"_9b1tmlf",variantClassNames:{isSelected:{true:"_9b1tmlg"},size:{sm:"_9b1tmlh",md:"_9b1tmli"},isDisabled:{true:"_9b1tmlj"},isReadOnly:{true:"_9b1tmlk"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!1,isReadOnly:!1},"_9b1tmll"],[{isSelected:!0,isDisabled:!0},"_9b1tmlm"],[{isSelected:!1,isDisabled:!0},"_9b1tmln"]]}),XO=wM({defaultClassName:"_9b1tmlc",variantClassNames:{isDisabled:{true:"_9b1tmld"},isReadOnly:{true:"_9b1tmle"}},defaultVariants:{},compoundVariants:[]}),QO=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?zr.Nr:Sr.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 h=l.useRef(null),f=(0,hr.H)({...c,...d}),{inputProps:m,isPressed:g,isDisabled:v,isReadOnly:y,isSelected:b}=(0,er.Kc)({...c,...d},f,h),{focusProps:w,isFocused:x,isFocusVisible:S}=(0,er.og)(),{hoverProps:_,isHovered:C}=(0,er.Mk)({}),E=(0,s.nP)({"data-block-id":i,"data-block-class":a,"data-focused":x,"data-focus-visible":S,"data-disabled":v,"data-hovered":C,"data-pressed":g,"data-selected":b});return(0,vr.jsxs)("label",{ref:u,style:n,className:(0,s.xW)("_1yep5z6ik _1yep5z6il _1yep5z6im","BaselineUI-Reaction",e),...E,children:[(0,vr.jsx)(er.s6,{children:(0,vr.jsx)("input",{...m,...w,ref:h})}),(0,vr.jsxs)("div",{..._,className:ZO({isSelected:b,isFocusVisible:S,isHovered:C,isReadOnly:y,isDisabled:v}),children:[(0,vr.jsx)("div",{className:XO({isDisabled:v,isReadOnly:y}),children:(0,vr.jsx)(p,{size:"md"===r?20:16})}),(0,vr.jsx)("div",{className:JO({isSelected:f.isSelected,isDisabled:v,isReadOnly:y,size:r}),children:(0,vr.jsx)(YO,{value:t})})]})]})}));QO.displayName="Reaction";var ej={sm:16,md:20},tj={sm:[Sr.x7,Sr.bL],md:[zr._9,zr.bL]},nj=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,er.EB)({...a,isIndeterminate:!0}),d=ej[n],p=d/2-2,h=2*p*Math.PI,f=tj[n]["success"===r?0:1];return(0,vr.jsxs)("div",{className:(0,s.xW)("_1azy5681 z9nup82","BaselineUI-ProgressSpinner",e),ref:l,style:{...(0,Cr.D)({"var(--_1azy5680)":`${h}px`}),...t},"data-block-id":o,"data-block-class":i,children:[(0,vr.jsxs)("div",{...u,className:"_1azy5682",children:[("active"===r||"inactive"===r)&&(0,vr.jsxs)("svg",{height:d,width:d,viewBox:`0 0 ${d} ${d}`,children:[(0,vr.jsx)("circle",{role:"presentation",className:"_1azy5686",cx:d/2,cy:d/2,r:p}),"active"===r&&(0,vr.jsx)("circle",{role:"presentation",className:"_1azy5685",cx:d/2,cy:d/2,r:p})]}),"success"===r&&(0,vr.jsx)(f,{className:"_1azy5687",size:d}),"error"===r&&(0,vr.jsx)(f,{className:"_1azy5688",size:d})]}),a.label?(0,vr.jsx)("span",{...c,className:"_1azy5689",children:a.label}):null]})}));nj.displayName="ProgressSpinner";var rj=wM({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"]]}),oj=wM({defaultClassName:"_5uw3kpd _1yep5z6f5",variantClassNames:{isDisabled:{true:"_1yep5z610z"},isSelected:{true:"_1yep5z6111"}},defaultVariants:{},compoundVariants:[]}),ij={sm:16,md:20,lg:24},aj=l.forwardRef((({className:e,style:t,iconStart:n,size:r="md",elementType:o="button",variant:i="toolbar",...a},l)=>{let c=(0,hr.H)(a),{buttonProps:u,isPressed:d,ref:p,isFocusVisible:h,isFocused:f,isHovered:m,uiStateOptions:g}=ZM(a,c),v=(0,s.nP)({"data-block-id":a["data-block-id"],"data-block-class":a["data-block-class"],"data-focused":f,"data-focus-visible":h,"data-disabled":a.isDisabled,"data-hovered":m,"data-pressed":d,"data-selected":c.isSelected});return(0,vr.jsxs)(o,{...(0,er.v6)(u,v),className:(0,s.xW)(rj({isHovered:m,isFocusVisible:h,isSelected:c.isSelected,size:r,isDisabled:a.isDisabled,variant:i}),"BaselineUI-ToggleButton","function"==typeof e?e(g):e),style:"function"==typeof t?t(g):t,ref:GI(p,l),children:[n?(0,vr.jsx)(n,{size:ij[r],className:oj({isDisabled:a.isDisabled,isSelected:c.isSelected})}):null,a.label]})}));aj.displayName="ToggleButton";var sj=wM({defaultClassName:"_16vugd0f",variantClassNames:{isDisabled:{true:"_16vugd0g"}},defaultVariants:{},compoundVariants:[]}),lj=wM({defaultClassName:"_16vugd02 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6j8 _1yep5z6j9 _1yep5z6ja",variantClassNames:{labelPosition:{end:"_1yep5z614i _1yep5z614j _1yep5z614k _1yep5z6va _1yep5z6vb _1yep5z6vc",start:"_1yep5z614o _1yep5z614p _1yep5z614q _1yep5z6160 _1yep5z6161 _1yep5z6162"}},defaultVariants:{},compoundVariants:[]}),cj=wM({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"]]}),uj=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,hr.H)(a),{isFocusVisible:p,isFocused:h,focusProps:f}=(0,er.og)(),{inputProps:m,isPressed:g,isDisabled:v,isSelected:y,isReadOnly:b}=(0,er.vp)({...a,children:n},d,u),{hoverProps:w,isHovered:x}=(0,er.Mk)({isDisabled:v}),S=(0,s.nP)({"data-disabled":v,"data-readonly":b,"data-hovered":x,"data-selected":y,"data-pressed":g,"data-indeterminate":a.isIndeterminate,"data-invalid":a.isInvalid,"data-focus-visible":p,"data-focused":h,"data-block-id":o,"data-block-class":i});return(0,vr.jsxs)("label",{...S,className:(0,s.xW)(lj({labelPosition:r}),"BaselineUI-Checkbox",e),style:t,ref:c,children:[(0,vr.jsx)(er.s6,{children:(0,vr.jsx)("input",{...(0,er.v6)(m,f),ref:u})}),(0,vr.jsxs)("div",{...w,className:cj({isSelected:y&&!a.isIndeterminate,isIndeterminate:a.isIndeterminate,isFocusVisible:p,isDisabled:v,isReadOnly:b,hasError:a.isInvalid,isHovered:x}),children:[y&&!a.isIndeterminate?(0,vr.jsx)(Pr.Nr,{size:12}):null,a.isIndeterminate?(0,vr.jsx)(Pr.QG,{size:12}):null]}),n?(0,vr.jsx)("span",{className:sj({isDisabled:v}),children:n}):null]})}));uj.displayName="Checkbox";var dj={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:"上一頁"}},pj=wM({defaultClassName:"_1nsi9h17",variantClassNames:{isFocused:{true:"_1nsi9h18"},variant:{pinned:"_1nsi9h19",floating:"_1nsi9h1a"},size:{xs:"_1nsi9h1b",sm:"_1nsi9h1c",md:"_1nsi9h1d",lg:"_1nsi9h1e"}},defaultVariants:{},compoundVariants:[]}),hj=wM({defaultClassName:"_1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6ik _1yep5z6il _1yep5z6im _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6g1 _1yep5z6e1",variantClassNames:{size:{xs:"_1nsi9h11 _1yep5z6wa _1yep5z6wb _1yep5z6wc _1yep5z6wy _1yep5z6wz _1yep5z6x0 _1yep5z6xm _1yep5z6xn _1yep5z6xo _1yep5z6ya _1yep5z6yb _1yep5z6yc _1yep5z6zn",sm:"_1nsi9h12 _1yep5z6zq",md:"_1nsi9h13",lg:"_1nsi9h14"},variant:{floating:"_1yep5z6yz _1yep5z617i _1yep5z617g _1yep5z612q",pinned:"_1yep5z6174"}},defaultVariants:{},compoundVariants:[]}),fj=wM({defaultClassName:"_1nsi9h1g _1yep5z6ev",variantClassNames:{isDisabled:{true:"_1yep5z610q"}},defaultVariants:{},compoundVariants:[]}),mj={style:"decimal"},gj={xs:[Pr.eC,Pr.JJ],sm:[Sr.eC,Sr.JJ],md:[zr.eC,zr.JJ],lg:[yr.eCO,yr.JJd]},vj=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,...h},f)=>{let{locale:m}=(0,er.Ym)(),g=PN(dj),v={...h,formatOptions:mj,minValue:n,incrementAriaLabel:o||g.formatMessage("nextPage"),decrementAriaLabel:i||g.formatMessage("prevPage"),defaultValue:r,"aria-label":a||g.formatMessage("goToPage")},y=l.useRef(null),b=(0,ar.s)({...v,locale:m}),{inputProps:w,decrementButtonProps:x,incrementButtonProps:S,groupProps:_}=(0,er.v)({...v,onKeyDown:e=>{"Enter"===e.key&&y.current?.blur(),h.onKeyDown?.(e)},isDisabled:p},b,y),{hoverProps:C,isHovered:E}=(0,er.Mk)({}),{focusProps:k,isFocused:z,isFocusVisible:P}=(0,er.og)(),A="floating"===u,[D,T]=gj[c],I=(0,s.nP)({"data-focus-visible":P,"data-focused":z,"data-hovered":E,"data-block-id":h["data-block-id"],"data-block-class":h["data-block-class"]}),M="keyboard"===(0,Ar.lb)();return(0,vr.jsxs)("div",{...(0,er.v6)(_,C,I),className:(0,s.xW)(hj({size:c,variant:u}),"BaselineUI-Pagination",e),style:t,ref:f,children:[d?null:(0,vr.jsxs)(vr.Fragment,{children:[(0,vr.jsx)(WN,{icon:D,...x,elementType:"div",size:c,style:{height:"100%",...A&&{borderRadius:0}},className:"BaselineUI-Pagination-DecrementButton",UNSAFE_NON_INTERACTIVE:M,isDisabled:p||x.isDisabled}),"floating"===u&&(0,vr.jsx)(EM,{orientation:"vertical"})]}),(0,vr.jsxs)("div",{className:pj({isFocused:z,variant:u,size:c}),"aria-label":g.formatMessage("pageXofY",{arg0:w.value,arg1:b.maxValue}),children:[(0,vr.jsx)("input",{...(0,er.v6)(w,k),ref:y,className:(0,s.xW)("BaselineUI-Pagination-Input","_1nsi9h1f _1yep5z6ln _1yep5z6lf _1yep5z6eu"),style:{width:`${w.value?.toString().length||1}ch`}}),(0,vr.jsxs)("span",{className:fj({isDisabled:p}),children:["/ ",(0,vr.jsx)(YO,{value:b.maxValue})]})]}),d?null:(0,vr.jsxs)(vr.Fragment,{children:["floating"===u&&(0,vr.jsx)(EM,{orientation:"vertical"}),(0,vr.jsx)(WN,{icon:T,...S,elementType:"div",size:c,style:{height:"100%",...A&&{borderRadius:0}},className:"BaselineUI-Pagination-IncrementButton",UNSAFE_NON_INTERACTIVE:M,isDisabled:p||S.isDisabled})]})]})}));vj.displayName="Pagination";var yj=({date:e,...t})=>{let n=(0,er.iF)(t);return(0,vr.jsx)(vr.Fragment,{children:n.format(e)})};yj.displayName="DateFormat";var bj=wM({defaultClassName:"_1f789qjr",variantClassNames:{variant:{neutral:"_1yep5z610x",red:"_1yep5z6107",green:"_1yep5z610b",blue:"_1yep5z610j","high-contrast":"_1yep5z6110"},isDisabled:{true:"_1yep5z61mr"},isSelected:{true:"_1yep5z6111"}},defaultVariants:{},compoundVariants:[]}),wj=wM({defaultClassName:"_1f789qj1",variantClassNames:{isFocusVisible:{true:"_1f789qj2"},variant:{neutral:"_1f789qj3",red:"_1f789qj4",green:"_1f789qj5",blue:"_1f789qj6","high-contrast":"_1f789qj7"},isDisabled:{true:"_1f789qj8"},allowsRemoving:{true:"_1f789qj9"},isSelected:{true:"_1f789qja"},allowsSelection:{true:"_1f789qjb"},isHovered:{true:"_1f789qjc"}},defaultVariants:{},compoundVariants:[[{allowsSelection:!0,isHovered:!0,variant:"neutral"},"_1f789qjd"],[{allowsSelection:!0,isHovered:!0,variant:"red"},"_1f789qje"],[{allowsSelection:!0,isHovered:!0,variant:"blue"},"_1f789qjf"],[{allowsSelection:!0,isHovered:!0,variant:"green"},"_1f789qjg"],[{allowsSelection:!0,isHovered:!0,variant:"high-contrast"},"_1f789qjh"],[{allowsSelection:!0,isSelected:!0,isHovered:!0},"_1f789qji"]]}),xj=wM({defaultClassName:"_1f789qj10",variantClassNames:{variant:{neutral:"_1f789qj11",red:"_1f789qj12",green:"_1f789qj13",blue:"_1f789qj14","high-contrast":"_1f789qj15"},isHovered:{true:"_1f789qj16"}},defaultVariants:{},compoundVariants:[[{isHovered:!0,variant:"neutral"},"_1f789qj17"],[{isHovered:!0,variant:"red"},"_1f789qj18"],[{isHovered:!0,variant:"blue"},"_1f789qj19"],[{isHovered:!0,variant:"green"},"_1f789qj1a"],[{isHovered:!0,variant:"high-contrast"},"_1f789qj1b"]]}),Sj=wM({defaultClassName:"_1f789qjj",variantClassNames:{variant:{neutral:"_1yep5z610m",red:"_1yep5z6107",green:"_1yep5z610b",blue:"_1yep5z610j","high-contrast":"_1yep5z610r"},isDisabled:{true:"_1yep5z61mi"},isSelected:{true:"_1yep5z610s"}},defaultVariants:{},compoundVariants:[]}),_j=({item:e,state:t,variant:n="neutral"})=>{let r=l.useRef(null),{focusProps:o,isFocusVisible:i}=(0,er.og)({within:!0}),{rowProps:a,gridCellProps:c,removeButtonProps:u,allowsRemoving:d,isDisabled:p,isSelected:h,allowsSelection:f}=(0,er.Ok)({item:e},t,r),m=l.useRef(null),{buttonProps:g}=(0,er.sL)(u,m),{hoverProps:v,isHovered:y}=(0,er.Mk)({isDisabled:p}),{hoverProps:b,isHovered:w}=(0,er.Mk)({isDisabled:p}),x=e.value?.icon,S=e.value?.data?.variant??n;return(0,vr.jsx)("div",{...(0,er.v6)(a,o,b),ref:r,className:(0,s.xW)(wj({isFocusVisible:i,variant:S,isDisabled:p,allowsRemoving:d,isSelected:h,allowsSelection:f,isHovered:w}),Sj({variant:S,isDisabled:p,isSelected:h}),"BaselineUI-Tag"),children:(0,vr.jsxs)("div",{...c,className:"_1f789qjz",children:[h?(0,vr.jsx)(Sr.Nr,{size:16,className:bj({variant:S,isDisabled:p,isSelected:h})}):null,!h&&x?(0,vr.jsx)(x,{size:16,className:bj({variant:S,isDisabled:p,isSelected:h})}):null,e.rendered,d?(0,vr.jsx)("button",{...(0,er.v6)(g,v),className:xj({variant:S,isHovered:y}),children:(0,vr.jsx)(Pr.uv,{})}):null]})})},Cj=l.forwardRef((({className:e,style:t,"data-block-id":n,"data-block-class":r,items:o,...i},a)=>{let c=(0,l.useMemo)((()=>o.map((e=>({...e,data:{variant:e.variant}})))),[o]),u=hM(),d=l.useRef(null),p=(0,or.pE)({...i,items:c,children:u}),{gridProps:h}=(0,er.Gh)(i,p,d);return(0,vr.jsx)("div",{...h,className:(0,s.xW)("_1f789qj0","BaselineUI-TagGroup",e),style:t,"data-block-id":n,"data-block-class":r,ref:GI(a,d),children:[...p.collection].map((e=>(0,vr.jsx)(_j,{state:p,item:e,variant:i.variant},e.key)))})}));Cj.displayName="TagGroup";var Ej=wM({defaultClassName:"_1kvz17db _1yep5z6kz _1yep5z6l1",variantClassNames:{showActionsOnTriggerOnly:{true:"_1kvz17dc"},isTriggered:{true:"_1kvz17dd"}},defaultVariants:{},compoundVariants:[]}),kj=wM({defaultClassName:"_1kvz17d0 _1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678 _1yep5z68c _1yep5z68d _1yep5z68e _1yep5z660 _1yep5z661 _1yep5z662 _1yep5z6kz _1yep5z6l0",variantClassNames:{isExpanded:{true:"_1kvz17d1"}},defaultVariants:{},compoundVariants:[]}),zj=wM({defaultClassName:"_1kvz17d2 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6k8 _1yep5z6k9 _1yep5z6ka _1yep5z6kz _1yep5z6l2",variantClassNames:{isFocusVisible:{true:"_1kvz17d3"},isHovered:{true:"_1yep5z6g2",false:"_1yep5z6g3"},isDisabled:{true:"z9nup83"}},defaultVariants:{},compoundVariants:[]}),Pj=wM({defaultClassName:"_1kvz17d7 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6j8 _1yep5z6j9 _1yep5z6ja",variantClassNames:{isDisabled:{true:"_1yep5z6ey",false:"_1yep5z6eu"}},defaultVariants:{},compoundVariants:[]}),Aj=l.forwardRef((({children:e,className:t,style:n},r)=>{let{headers:o}=(0,l.useContext)(Dj),{disabledKeys:i}=(0,l.useContext)(Dj),{keyboardProps:a}=(0,er.de)({onKeyDown:e=>{let t=$I(e.target),n=[...o?.keys()||[]].findIndex((e=>o?.get(e)?.current===t?.activeElement)),r=o?.get(n||0),a=o?.size||0,s=e=>{let t=o.get(e-1<0?a-1:e-1);i?.has(t?.current?.getAttribute("data-key")||"")?s(e-1):t?.current?.focus()},l=e=>{let t=o.get((e+1)%a);i?.has(t?.current?.getAttribute("data-key")||"")?l(e+1):t?.current?.focus()};if(r)switch(e.key){case"Home":e.preventDefault(),l(-1);break;case"End":e.preventDefault(),s(a);break;case"ArrowDown":e.preventDefault(),l(n);break;case"ArrowUp":e.preventDefault(),s(n);break;default:e.continuePropagation()}}});return(0,vr.jsx)("div",{...a,style:n,className:(0,s.xW)("_1yep5z6lc",t),ref:r,children:l.Children.map(e,((e,t)=>l.cloneElement(e,{index:t})))})}));Aj.displayName="AccordionBase";var Dj=l.createContext({expandedKeys:new Set,setExpandedKeys:()=>{},disabledKeys:new Set,headers:new Map,expansionMode:"multiple"}),Tj=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,[h,f]=l.useState(o);(0,l.useEffect)((()=>{f(h)}),[h]),(0,l.useEffect)((()=>{i?.(u)}),[u,i]);let m=(0,l.useMemo)((()=>({expandedKeys:r||u,setExpandedKeys:r?()=>{}:d,disabledKeys:t,headers:p,expansionMode:h})),[r,u,t,p,h]);return(0,vr.jsx)(Dj.Provider,{value:m,children:(0,vr.jsx)(er.n1,{children:(0,vr.jsx)(Aj,{className:a,style:s,ref:c,children:e})})})}));Tj.displayName="Accordion";var Ij=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:h,expansionMode:f,disabledKeys:m,headers:g}=(0,l.useContext)(Dj),v=m?.has(r),y=(0,er.H8)();(0,s.V1)(y);let{focusNext:b,focusPrevious:w}=y,{keyboardProps:x}=(0,er.de)({onKeyDown:e=>{"ArrowRight"===e.key?b({wrap:!0}):"ArrowLeft"===e.key?w({wrap:!0}):e.continuePropagation()},isDisabled:v});(0,l.useEffect)((()=>{(0,s.V1)("number"==typeof i,"AccordionItem must have an index"),g?.set(i,d)}),[i,g]);let S=()=>{h((e=>{let t=new Set(e);return t.has(r)?t.delete(r):("single"===f&&t.clear(),t.add(r)),t}))},{buttonProps:_}=(0,er.sL)({"aria-expanded":p.has(r),"aria-controls":n,onPress:S,isDisabled:v},d),{pressProps:C}=(0,er.dD)({onPress:S,isDisabled:v}),{focusProps:E,isFocusVisible:k}=(0,er.og)(),{hoverProps:z,isHovered:P}=(0,er.Mk)({isDisabled:v}),{focusProps:A,isFocusVisible:D}=(0,er.og)({within:!0}),T=p.has(r);return(0,vr.jsxs)("h3",{...(0,er.v6)(x,C,z,A),className:zj({isFocusVisible:k,isHovered:P,isDisabled:v}),ref:u,children:[(0,vr.jsxs)("div",{className:Pj({isDisabled:!!v}),children:[(0,vr.jsx)(xr.vK,{className:kj({isExpanded:T}),size:8}),(0,vr.jsx)("button",{...(0,er.v6)(_,E),id:o,"data-key":r,className:"_1kvz17da _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6dz",ref:d,children:e})]}),t?.length?(0,vr.jsx)("div",{"data-testid":"action-buttons",className:Ej({showActionsOnTriggerOnly:c,isTriggered:D||P}),children:t.map(((e,t)=>(0,vr.jsx)(WN,{variant:"secondary",size:"sm",excludeFromTabOrder:!0,isDisabled:v,...e},t)))}):null,a?(0,vr.jsx)("div",{className:"_1yep5z6ev _1yep5z6dy",children:a}):null]})}));Ij.displayName="AccordionHeader";var Mj=l.forwardRef((({title:e,actions:t,children:n,value:r,index:o,subLabel:i,style:a,className:s,showActionsOnTriggerOnly:c},u)=>{let d=(0,er.Bi)(),p=(0,er.Bi)(),{expandedKeys:h}=(0,l.useContext)(Dj),f=l.useRef(null),m=h.has(r),g=wN(),v=it(),y=Tn(m?[r]:[],{from:!g&&!v&&{height:0,opacity:0},enter:()=>async e=>{await e({height:f.current?.scrollHeight,opacity:1})},leave:{height:0,opacity:0},keys:e=>e.toString()});return(0,vr.jsxs)(vr.Fragment,{children:[(0,vr.jsx)(er.n1,{children:(0,vr.jsx)(Ij,{value:r,actions:t,id:p,title:e,controlId:d,ref:u,index:o,subLabel:i,showActionsOnTriggerOnly:c})}),y((e=>(0,vr.jsx)(Qn.div,{role:"region","aria-labelledby":p,id:d,style:{...e,overflow:"hidden"},children:(0,vr.jsx)("div",{ref:f,className:s,style:a,children:n})})))]})}));Mj.displayName="AccordionItem";var Nj=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},h)=>{let f=l.useRef(null),{buttonProps:m,isPressed:g}=(0,er.sL)({...p,isDisabled:p.isDisabled||p.isReadOnly},f),{hoverProps:v,isHovered:y}=(0,er.Mk)({isDisabled:p.isDisabled}),{focusProps:b,isFocused:w,isFocusVisible:x}=(0,er.og)(),S=WO({isReadOnly:p.isReadOnly,validationState:r});p.isReadOnly&&(m.disabled=!1);let _=(0,s.nP)({"data-disabled":p.isDisabled,"data-readonly":p.isReadOnly,"data-focused":w,"data-focus-visible":x,"data-hovered":y,"data-pressed":g,"data-open":t,"data-block-id":u,"data-block-class":d});return(0,vr.jsxs)("button",{...(0,er.v6)(m,v,b,_),ref:GI(h,f),className:(0,s.xW)(xO({isFocused:x,isDisabled:p.isDisabled}),dN({variant:e,isHovered:y,isFocused:x,validationState:r,isDisabled:!!p.isDisabled,isReadOnly:p.isReadOnly}),a,"BaselineUI-Select-Button"),style:c,children:[(0,vr.jsxs)("span",{className:"_1mdhlqv5 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z69i _1yep5z69j _1yep5z69k",children:[n?(0,vr.jsx)(n,{size:24}):null,(0,vr.jsx)("span",{...o,children:i})]}),S?(0,vr.jsx)("span",{"aria-hidden":!0,className:(0,s.xW)(sN({validationState:r,isReadOnly:!!p.isReadOnly}),"_1yep5z66x _1yep5z66y _1yep5z66z"),children:(0,vr.jsx)(S,{size:16})}):null,(0,vr.jsx)("span",{"aria-hidden":!0,children:(0,vr.jsx)(xr.bD,{size:8,className:bO({isOpen:t})})})]})}));Nj.displayName="SelectButton";var Oj=l.createContext({state:null,popoverAnchorRef:null}),jj=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:h,renderTrigger:f=(({buttonProps:e,selectedValue:t,valueProps:n,isOpen:o,ref:i})=>{let a=t&&"icon"in t&&t.icon;return(0,vr.jsx)(Nj,{...e,className:d,style:p,isOpen:o,isReadOnly:m.isReadOnly,ref:i,variant:r,validationState:m.validationState,selectedIcon:a||void 0,label:t?"label"in t&&t?.label:m.placeholder,valueProps:n})}),...m},g)=>{let{popoverAnchorRef:v}=(0,l.useContext)(Oj),y=l.useRef(null),b=jN(m.portalContainer),{labelProps:w,triggerProps:x,valueProps:S,menuProps:_,descriptionProps:C,errorMessageProps:E}=(0,er.WM)({...m,validationState:"error"===m.validationState?"invalid":"valid"},h,y),k=pN({...m,descriptionProps:C,errorMessageProps:E,labelPosition:n}),z=h.selectedItem?.value??null;return(0,vr.jsxs)(NM.Provider,{value:h,children:[(0,vr.jsxs)("div",{style:t,className:(0,s.xW)(uN({labelPosition:n}),"BaselineUI-Select",e),"data-block-id":o,"data-block-class":i,ref:g,children:[m.label||k?(0,vr.jsxs)("div",{className:cN({labelPosition:n,hasMessage:!!k}),children:[m.label?(0,vr.jsx)("div",{...w,className:(0,s.xW)(lN,"BaselineUI-Select-Label"),children:m.label}):null,"start"===n&&k]}):null,(0,vr.jsx)(er.HJ,{state:h,triggerRef:y,isDisabled:m.isDisabled,label:m.label,name:m.name}),f({buttonProps:x,selectedValue:z,valueProps:S,isOpen:h.isOpen,ref:y}),"top"===n&&k]}),h?(0,vr.jsx)(vO,{placement:u,portalContainer:b,offset:m.offset||2,state:h,triggerRef:v||y,style:t,className:(0,s.xW)(wO,"BaselineUI-Select-Popover"),...m,children:(0,vr.jsx)(RM,{..._,label:m.label,items:m.items,showSelectedIcon:m.showSelectedIcon,className:SO,optionStyle:a,optionClassName:c})}):null]})}));jj.displayName="SelectCore";var Rj=l.forwardRef(((e,t)=>{let n=hM(),r=(0,ur.n)({...e,validationState:"error"===e.validationState?"invalid":"valid",children:n});return(0,vr.jsx)(jj,{...e,ref:t,state:r})}));Rj.displayName="SelectStandalone";var Fj=l.forwardRef(((e,t)=>{let{state:n}=(0,l.useContext)(Oj);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,vr.jsx)(jj,{state:n,...e,ref:t}):(0,vr.jsx)(Rj,{...e,ref:t})}));Fj.displayName="Select";var Bj=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,vr.jsx)(HN,{variant:"inverse",size:"sm",includeArrow:!1,text:a["aria-label"],offset:4,...i,children:(0,vr.jsx)(Nj,{...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,vr.jsxs)(zM,{display:"flex",flexDirection:"row",gap:"md",paddingX:"md",alignItems:"center",className:(0,s.xW)("BaselineUI-IconSelect",e),"data-block-id":r,style:t,ref:GI(c,u),children:[o?(0,vr.jsx)(o,{size:24,className:(0,br.UV)({color:"icon.primary",display:"flex",flexShrink:0})}):null,(0,vr.jsx)(Fj,{...a,renderTrigger:d})]})}));Bj.displayName="IconSelect";var Lj=wM({defaultClassName:"_1017q4c0",variantClassNames:{size:{md:"_1017q4c1",sm:"_1017q4c2"},isDisabled:{true:"_1017q4c3"}},defaultVariants:{},compoundVariants:[]}),Vj={sm:Sr.hS,md:yr.hSU},Kj=l.forwardRef((({className:e,style:t,size:n="md",icon:r=Vj[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}=bN({src:i,alt:o}),m=o?.split(" ").map((e=>e[0])).join("");return(0,vr.jsxs)("span",{className:(0,s.xW)(Lj({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,vr.jsx)("img",{...f,loading:u,className:"_1017q4c4"}):null,!a&&!i&&(0,vr.jsx)(r,{size:"sm"===n?16:24}),a&&!i?"sm"===n?m[0]:m:null,c?(0,vr.jsx)("div",{"data-testid":"notification",className:"_1017q4c5"}):null]})}));Kj.displayName="Avatar";var $j=wM({defaultClassName:"_1x62fhb6 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6le _1yep5z6lf _1yep5z6kz _1yep5z6l2 _1yep5z6ev _1yep5z69i _1yep5z69j _1yep5z69k",variantClassNames:{isHovered:{true:"_1yep5z610m"},isSelected:{true:"_1x62fhb8"},isFocusVisible:{true:"_1x62fhb9"},isDisabled:{true:"_1x62fhba _1yep5z610q"},variant:{primary:"_1x62fhbb _1yep5z6zn",ghost:"_1yep5z6zq"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isSelected:!0,isDisabled:!1},"_1yep5z61me"],[{variant:"primary",isSelected:!0},"_1yep5z61nl"],[{variant:"ghost",isSelected:!0,isFocusVisible:!1},"_1x62fhbd"],[{variant:"ghost",isSelected:!0,isDisabled:!1},"_1yep5z61ml"],[{variant:"ghost",isDisabled:!0,isSelected:!0},"_1x62fhbe _1yep5z6ey"],[{variant:"primary",isHovered:!0},"_1yep5z61nm"]]}),Hj=wM({defaultClassName:"_1x62fhb3 _1yep5z6ik _1yep5z6il _1yep5z6im _1yep5z6iq _1yep5z6ir _1yep5z6is",variantClassNames:{variant:{primary:"_1x62fhb4",ghost:"_1yep5z6va _1yep5z6vb _1yep5z6vc"}},defaultVariants:{},compoundVariants:[]}),Uj=wM({defaultClassName:"_1x62fhbf _1yep5z6f6",variantClassNames:{isHovered:{true:"_1yep5z610x"},isSelected:{true:"_1x62fhbh"},isDisabled:{true:"_1yep5z610z"},variant:{primary:"_1x62fhbj",ghost:"_1x62fhbk"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isSelected:!0,isDisabled:!1},"_1yep5z61mp"],[{variant:"ghost",isSelected:!0,isDisabled:!1},"_1yep5z61mu"],[{variant:"ghost",isDisabled:!0,isSelected:!0},"_1yep5z61mr"]]}),qj=wM({defaultClassName:"_1x62fhb0 _1yep5z6lc _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6iq _1yep5z6ir _1yep5z6is",variantClassNames:{variant:{primary:"_1yep5z611v",ghost:"_1x62fhb2"}},defaultVariants:{},compoundVariants:[]}),Wj=({state:e,...t})=>{let n=l.useRef(null),{tabPanelProps:r}=(0,er.Jn)(t,e,n),{selectedItem:o}=e,{focusProps:i,isFocusVisible:a}=(0,er.og)();if(!o?.value)return null;let{className:c,style:u,"data-block-id":d}=o.value;return(0,vr.jsx)("div",{...(0,er.v6)(r,i),ref:n,className:(0,s.xW)({"_1yep5z6lj _1yep5z6lg _1yep5z6hp _1yep5z6li":a},"Baseline-Tabs-TabPanel",c),"data-block-id":d,style:u,children:o?.props.children})},Gj=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,pr.g)({...u,selectedKey:u.selectedValue,defaultSelectedKey:u.defaultSelectedValue,disabledKeys:u.disabledValues}),h=l.useRef(null),{tabListProps:f}=(0,er.$c)({...u,selectedKey:u.selectedValue,defaultSelectedKey:u.defaultSelectedValue,disabledKeys:u.disabledValues},p,h);return(0,vr.jsxs)("div",{className:(0,s.xW)("BaselineUI-Tabs",e),style:t,ref:d,"data-block-id":c,children:[(0,vr.jsxs)("div",{className:(0,s.xW)(qj({variant:o}),r),style:n,children:[(0,vr.jsx)("div",{...f,className:Hj({variant:o}),ref:h,children:[...p.collection].map((e=>((0,s.V1)(e.value,"TabItem requires a value prop"),(0,vr.jsx)(Yj,{item:e,state:p,onRemove:a,variant:o},e.key))))}),i?.map(((e,t)=>(0,vr.jsx)("div",{className:"_1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z63l _1yep5z63m _1yep5z63n _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6j8 _1yep5z6j9 _1yep5z6ja",children:(0,vr.jsx)(WN,{...e,variant:"secondary",size:"sm",className:(0,s.xW)("_1x62fhbl",e.className)})},t)))]}),(0,vr.jsx)(Wj,{state:p},p.selectedItem?.key)]})}));Gj.displayName="TabsBase";var Yj=({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,er.Vh)({key:o},n,a),{hoverProps:p,isHovered:h}=(0,er.Mk)({});(0,s.V1)(i,"TabButton requires a value prop");let{title:f,icon:m,titleStyle:g,titleClassName:v}=i,{focusProps:y,isFocusVisible:b,isFocused:w}=(0,er.og)(),{keyboardProps:x}=(0,er.de)({onKeyDown:e=>{"Backspace"===e.key&&t?t(o):e.continuePropagation()}}),S=(0,s.nP)({"data-selected":u,"data-disabled":d,"data-focused":w,"data-hovered":h,"data-focus-visible":b});return(0,vr.jsxs)("div",{...(0,er.v6)(x,c,p,y,S),className:(0,s.xW)($j({isHovered:h,isSelected:u,isFocusVisible:b,isDisabled:d,variant:r}),"BaselineUI-Tabs-TabButton",v),style:g,ref:a,children:[m?(0,vr.jsx)(m,{size:20,className:Uj({isHovered:h,isSelected:u,isDisabled:d,variant:r})}):null,f,t?(0,vr.jsx)(WN,{variant:"secondary",elementType:"div",icon:xr.uv,size:"xxs",onPress:()=>{t(o)},excludeFromTabOrder:!0,UNSAFE_NON_INTERACTIVE:!0,style:{display:"inline-flex",opacity:u||w||h?1:0},className:Uj({isHovered:h,isSelected:u,isDisabled:d,variant:r})}):null]})};Yj.displayName="TabButton";var Zj=l.forwardRef((({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,vr.jsx)(Gj,{...t,ref:n,items:r,children:e=>(0,vr.jsx)(rr.q7,{title:e.title,children:e.children},e.key)})}));Zj.displayName="Tabs";var Jj=({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);Jj.displayName="TabItem";var Xj={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:"關閉"}},Qj=wM({defaultClassName:"kfun6yw",variantClassNames:{arrangement:{single:"kfun6yx",multi:"kfun6yy",compact:"kfun6yz"}},defaultVariants:{},compoundVariants:[]}),eR=wM({defaultClassName:"kfun6y0 z9nup82",variantClassNames:{variant:{info:"kfun6y1",warning:"kfun6y2",error:"kfun6y3",success:"kfun6y4"},arrangement:{single:"kfun6y5",multi:"kfun6y6",compact:"kfun6y7"},hasButton:{true:"kfun6y8"},hasCloseButton:{true:"kfun6y9"}},defaultVariants:{},compoundVariants:[[{hasButton:!1,arrangement:"single"},"kfun6ya"],[{hasButton:!0,arrangement:"compact"},"kfun6yb"],[{hasCloseButton:!0,arrangement:"compact"},"kfun6yc"]]}),tR=wM({defaultClassName:"kfun6yt",variantClassNames:{size:{sm:"kfun6yu",md:"kfun6yv"}},defaultVariants:{},compoundVariants:[]}),nR=wM({defaultClassName:"kfun6yp",variantClassNames:{arrangement:{single:"kfun6yq",multi:"kfun6yr",compact:"kfun6ys"}},defaultVariants:{},compoundVariants:[]}),rR=wM({defaultClassName:"kfun6yk",variantClassNames:{variant:{info:"kfun6yl",warning:"kfun6ym",error:"kfun6yn",success:"kfun6yo"}},defaultVariants:{},compoundVariants:[]}),oR=wM({defaultClassName:"kfun6yh",variantClassNames:{size:{sm:"kfun6yi",md:"kfun6yj"}},defaultVariants:{},compoundVariants:[]}),iR=wM({defaultClassName:"kfun6yd z9nup82",variantClassNames:{arrangement:{single:"kfun6ye",multi:"kfun6yf",compact:"kfun6yg"}},defaultVariants:{},compoundVariants:[]}),aR={error:{sm:Sr.bL,md:zr.bL},info:{sm:Sr.S_,md:zr.S_},success:{sm:Sr.x7,md:zr._9},warning:{sm:Sr.AK,md:zr.AK}},sR=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},h)=>{let f=PN(Xj),m=n&&(0,vr.jsx)(eN,{variant:"compact"===l?"tertiary":"ghost",label:n,onPress:r}),g=aR[i][u];return(0,vr.jsxs)("div",{className:(0,s.xW)(eR({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:h,children:[(0,vr.jsxs)("div",{className:iR({arrangement:l}),children:[(0,vr.jsx)(g,{className:rR({variant:i}),size:16}),(0,vr.jsxs)("div",{className:Qj({arrangement:l}),children:[(0,vr.jsx)("h3",{className:oR({size:u}),children:a}),(0,vr.jsx)("section",{className:tR({size:u}),children:t})]}),"compact"===l&&m]}),(0,vr.jsxs)("div",{className:nR({arrangement:l}),children:["compact"!==l&&m,c?(0,vr.jsx)(WN,{variant:"secondary",icon:Sr.Op,size:"sm",onPress:c,"aria-label":f.formatMessage("close")}):null]})]})}));sR.displayName="InlineAlert";var lR={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:"透明"}},cR=({children:e})=>{let{triggerProps:t}=l.useContext(oO);return(0,vr.jsx)(Ar.YI,{...t,children:e})};cR.displayName="ModalTrigger";var uR=({children:e})=>{let{state:t}=l.useContext(oO);return(0,vr.jsx)(Ar.YI,{onPress:()=>{t?.close()},children:e})},dR=wM({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 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z6ln _1yep5z6lf _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6eu _1yep5z6le _1yep5z6dy",variantClassNames:{isHovered:{true:"_1dbkl55"},isFocusVisible:{true:"_1dbkl56"},isDisabled:{true:"z9nup83 _1yep5z610q"},labelPosition:{top:"_1dbkl58",start:"_1dbkl59"}},defaultVariants:{},compoundVariants:[]}),pR=wM({defaultClassName:"_1dbkl50 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6dy _1yep5z6ev",variantClassNames:{labelPosition:{top:"_1yep5z6o7 _1yep5z6o8 _1yep5z6o9",start:"_1dbkl52"}},defaultVariants:{},compoundVariants:[]}),hR="_1dbkl5l _1yep5z6in _1yep5z6io _1yep5z6ip _1yep5z69f _1yep5z69g _1yep5z69h",fR="_1dbkl5m _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6i2 _1yep5z6i3 _1yep5z6i4",mR=wM({defaultClassName:"_1dbkl5h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6g1",variantClassNames:{includesCustomColorPicker:{true:"_1yep5z6mv _1yep5z6mw _1yep5z6mx"}},defaultVariants:{},compoundVariants:[]}),gR="_1dbkl5v _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6iq _1yep5z6ir _1yep5z6is",vR=wM({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 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6lo _1yep5z6gz _1yep5z6lf _1yep5z6eu _1yep5z6dy",variantClassNames:{isFocused:{true:"_1dbkl5r _1yep5z612o"},isHovered:{true:"_1dbkl5s"},allowAlpha:{false:"_1yep5z6wy _1yep5z6wz _1yep5z6x0 _1yep5z6ya _1yep5z6yb _1yep5z6yc _1yep5z6174"}},defaultVariants:{},compoundVariants:[[{isHovered:!0,isFocused:!1},"_1yep5z61ok"]]}),yR=wM({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 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6it _1yep5z6iu _1yep5z6iv _1yep5z69c _1yep5z69d _1yep5z69e _1yep5z6f5 _1yep5z6le _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6kz _1yep5z6l2",variantClassNames:{isHovered:{true:"_1yep5z611v"},isFocusVisible:{true:"_1yep5z617a _1yep5z6178 _1yep5z617b _1yep5z613h"},isDisabled:{true:"_1yep5z610z"}},defaultVariants:{},compoundVariants:[]}),bR="_1dbkl5u",wR="_1dbkl5g _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6d7",xR="_1dbkl5j _1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6it _1yep5z6iu _1yep5z6iv _1yep5z69f _1yep5z69g _1yep5z69h",SR="_1dbkl5x",_R="_1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6it _1yep5z6iu _1yep5z6iv _1yep5z69l _1yep5z69m _1yep5z69n",CR=wM({defaultClassName:"_1dbkl5n _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6lj _1yep5z6i5 _1yep5z6i6 _1yep5z6i7 _1yep5z6lo _1yep5z6lr",variantClassNames:{isFocusVisible:{true:"_1dbkl5o _1yep5z6178 _1yep5z613h _1yep5z617a"}},defaultVariants:{},compoundVariants:[]}),ER="z9nup84 z9nup86 _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6l5 _1yep5z6l6 _1yep5z6l8 _1yep5z6l7 _1yep5z6i5 _1yep5z6i6 _1yep5z6i7",kR=wM({defaultClassName:"_1344e9q0 _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6i2 _1yep5z6i3 _1yep5z6i4 _1yep5z6l9 _1yep5z6i1 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6k2 _1yep5z6k3 _1yep5z6k4",variantClassNames:{isFocusVisible:{true:"_1344e9q1"},isDisabled:{true:"_1344e9q2"},removeBlendMode:{true:"_1344e9q3"},isSelected:{true:"_1yep5z617a _1yep5z6178 _1yep5z613h _1yep5z617d"},isHovered:{true:"_1344e9q5"}},defaultVariants:{},compoundVariants:[[{isSelected:!1,isFocusVisible:!0},"_1344e9q6"],[{isSelected:!0,isFocusVisible:!0},"_1344e9q7 _1yep5z61t2 _1yep5z61t0 _1yep5z61p9 _1yep5z61t5"],[{isSelected:!0,isDisabled:!0},"_1yep5z61t2 _1yep5z61t0 _1yep5z61p9 _1yep5z61t5 _1yep5z61pj"],[{isHovered:!0,isSelected:!1},"_1yep5z61t5 _1yep5z61t2 _1yep5z61t0 _1yep5z61pd"]]}),zR=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,...h},f)=>{let m=e&&e!==NR&&("string"==typeof e?Fr(e):e),{formatMessage:g}=PN(),v=!m,{colorSwatchProps:y}=function(e){let{color:t,colorName:n}=e,r=t||"#fff0",o=(0,l.useMemo)((()=>"string"==typeof r?lo(r):r),[r]),{locale:i}=(0,Ao.Ym)(),a=(0,Po.$X)(e,{labelable:!0}),s=(0,Ao.oe)(function(e){return e&&e.__esModule?e.default:e}(oo),"@react-aria/color"),c=(0,Po.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:v?"#000000":e}),{hoverProps:b,isHovered:w}=(0,er.Mk)({isDisabled:o||!r}),x=(0,s.nP)({"data-focus-visible":t,"data-selected":n,"data-hovered":w,"data-block-id":d,"data-block-class":p,"data-disabled":o,"data-interactive":r}),S=v?g(PR.none):y["aria-label"],_=h["aria-label"]??S,{tooltipProps:C}=WM({tooltip:u,label:_}),E=(0,vr.jsx)("div",{...(0,er.v6)(b,x,v?{}:y),style:i,"aria-label":v?g(PR.none):y["aria-label"],role:"img",className:(0,s.xW)(kR({removeBlendMode:v,isFocusVisible:t,isDisabled:!!o,isSelected:!!n,isHovered:w}),"BaselineUI-ColorSwatch",a),ref:f,id:c,...h,children:(0,vr.jsx)(zM,{display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"full",height:"full",width:"full",opacity:o?"medium":void 0,style:m?jR(m,4):void 0,children:v?(0,vr.jsx)("div",{className:"_1344e9q9 _1yep5z6fl"}):null})});return C&&!o?(0,vr.jsx)(HN,{...C,children:(0,vr.jsx)(UN,{children:E})}):E}));zR.displayName="ColorSwatch";var PR=AN({none:{id:"none",defaultMessage:"None"}}),AR=[{id:"hex",label:"HEX"},{id:"rgb",label:"RGB"}],DR=Fr("#000000").toFormat("hsla"),TR="hsla",IR="hexa";function MR(e){return"string"==typeof e?Fr(e).toFormat(TR):e?e.toFormat(TR):null}var NR="NONE";var OR=(e,{optionProps:t,isFocusVisible:n,isSelected:r},o)=>((0,s.V1)(e.value&&"label"in e.value,"Item must have label"),(0,vr.jsx)("li",{...t,ref:o,className:"_1dbkl5k _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6lf",children:(0,vr.jsx)(zR,{color:e.value.id,isFocusVisible:n,isSelected:r,"aria-label":e.value.label,isInteractive:!0})})),jR=(e,t=4)=>{let n=0===e.getChannelValue("alpha"),r=`repeating-conic-gradient(transparent 0% 25%, ${br.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`}},RR=({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=Jr);let[c,u]=Dr(t&&Br(t),n&&Br(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),D=e=>{if(e===P)return;let t=d.withChannelValue(f.xChannel,e);h(t)},T=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(Br(e))},xValue:P,setXValue:D,yValue:A,setYValue:T,setColorFromPoint(e,t){let n,r=v+Tr(e,0,1)*(y-v),o=x+(1-Tr(t,0,1))*(S-x);r!==P&&(r=Mr(r,v,y,b),n=d.withChannelValue(f.xChannel,r)),o!==A&&(o=Mr(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){D(P+e>y?y:Mr(P+e,v,y,b))},incrementY(e){T(A+e>S?S:Mr(A+e,x,S,_))},decrementX(e){D(Mr(P-e,v,y,b))},decrementY(e){T(Mr(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}=To({...t,value:e,inputXRef:n,inputYRef:r,containerRef:o},i);(0,l.useEffect)((()=>{n.current?.focus()}),[]);let{focusProps:p,isFocusVisible:h}=(0,er.og)();return(0,vr.jsx)("div",{ref:o,...a,className:(0,s.xW)("_1dbkl53 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6lc","BaselineUI-ColorInput-ColorArea"),children:(0,vr.jsxs)("div",{...d,className:(0,s.xW)(CR({isFocusVisible:h}),"BaselineUI-ColorInput-ColorAreaThumb"),style:{...d.style,transform:"translate(-50%, -50%)",backgroundColor:MR(e)?.withChannelValue("alpha",1).toString("css")},children:[(0,vr.jsx)("input",{ref:n,...c,...p}),(0,vr.jsx)("input",{ref:r,...u,...p})]})})},FR=({color:e,setColor:t,allowAlpha:n,...r})=>{let o=function(e){let{value:t,defaultValue:n,onChange:r}=e,{step:o}=Qr.getChannelRange("red"),i=Xr(t),a=Xr(n),[s,c]=Dr(i,a,r),[u,d]=(0,l.useState)((()=>(t||n)&&s?s.toString("hex"):"")),p=(0,gr.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=Fr(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=ro(g,o);e===s&&d(e.toString("hex")),h(e),p.commitValidation()},incrementToMax:()=>h(eo),decrement:()=>{let e=ro(g,-o);e===s&&d(e.toString("hex")),h(e),p.commitValidation()},decrementToMin:()=>h(Qr)}}({value:e,onChange:n=>{t(MR(n)?.toFormat(TR).withChannelValue("alpha",e.getChannelValue("alpha")??1)||DR)}}),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,Po.Bi)(),{spinButtonProps:v}=(0,No.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,Ar.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,Ar.Q7)({onScroll:x,isDisabled:S},n);let{inputProps:_,...C}=(0,Mo.r)({...e,id:g,value:u,defaultValue:void 0,validate:void 0,[gr.Lf]:t,type:"text",autoComplete:"off",onChange:e=>{t.validate(e)&&t.setInputValue(e)}},t,n);return _=(0,Po.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,er.og)({isTextInput:!0}),{hoverProps:d,isHovered:p}=(0,er.Mk)({});return(0,vr.jsxs)("div",{className:(0,s.xW)(gR,"BaselineUI-ColorInput-FieldInput"),"data-color-mode":n?"hexa":"hex",children:[(0,vr.jsx)("input",{...(0,er.v6)(a,c,d),ref:i,className:vR({isFocused:u,isHovered:p,allowAlpha:n})}),n?(0,vr.jsx)(VR,{color:e,setColor:t}):null]})},BR=({color:e,setColor:t,allowAlpha:n})=>{let r=e.toFormat("rgba"),{locale:o}=(0,er.Ym)();return(0,vr.jsxs)("div",{className:(0,s.xW)(gR,"BaselineUI-ColorInput-FieldInput"),"data-color-mode":n?"rgba":"rgb",children:[(0,vr.jsx)(YN,{"aria-label":e.getChannelName("red",o),value:r.getChannelValue("red"),showStepper:!1,className:bR,onChange:e=>{t(r.withChannelValue("red",e).toFormat(TR))},step:1,minValue:0,maxValue:255}),(0,vr.jsx)(YN,{"aria-label":e.getChannelName("green",o),value:r.getChannelValue("green"),showStepper:!1,className:bR,onChange:e=>{t(r.withChannelValue("green",e).toFormat(TR))},step:1,minValue:0,maxValue:255}),(0,vr.jsx)(YN,{"aria-label":e.getChannelName("blue",o),value:r.getChannelValue("blue"),showStepper:!1,className:bR,onChange:e=>{t(r.withChannelValue("blue",e).toFormat(TR))},step:1,minValue:0,maxValue:255}),n?(0,vr.jsx)(VR,{color:e,setColor:t}):null]})},LR={style:"percent",maximumFractionDigits:0},VR=({color:e,setColor:t})=>{let{locale:n}=(0,er.Ym)(),r=(0,l.useCallback)((n=>{t(e.withChannelValue("alpha",n))}),[e,t]);return(0,vr.jsx)(YN,{"aria-label":e.getChannelName("alpha",n),value:e.getChannelValue("alpha"),formatOptions:LR,className:bR,showStepper:!1,onChange:r,minValue:0,maxValue:1})},KR=({channel:e,...t})=>{let{locale:n}=(0,er.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]=Dr(r&&Br(r),o&&Br(o),i),d=(0,l.useMemo)((()=>n&&c?c.toFormat(n):c),[c,n]),p=(0,dr.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(Br(e))},getDisplayColor(){switch(t){case"hue":return Fr(`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,Ao.Ym)();e.label||a||e["aria-labelledby"]||(a=t.value.getChannelName(i,l));let{groupProps:u,trackProps:d,labelProps:p,outputProps:h}=(0,Io.P)({...e,"aria-label":a},t,n),{inputProps:f,thumbProps:m}=(0,Io.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,Do.B)({style:{opacity:"0.0001",width:"100%",height:"100%",pointerEvents:"none"}});return{trackProps:{...(0,Po.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,er.og)();return(0,vr.jsxs)("div",{className:(0,s.xW)(fR,{[RN({size:"xs"})]:"alpha"===e},"BaselineUI-ColorInput-ColorSlider"),"data-channel":e,...a,ref:o,children:["alpha"===e&&(0,vr.jsx)("div",{className:ER}),(0,vr.jsx)("div",{className:fR,style:a.style}),(0,vr.jsxs)("div",{className:(0,s.xW)(CR({isFocusVisible:p}),"BaselineUI-ColorInput-ColorSliderThumb"),...c,children:[(0,vr.jsx)("div",{className:ER,style:{backgroundColor:"#ffffff"}}),(0,vr.jsx)("div",{style:{backgroundColor:r.getDisplayColor().toString("css"),height:8},className:fR}),(0,vr.jsx)(er.s6,{children:(0,vr.jsx)("input",{ref:i,...u,...d})})]})]})},$R=({color:e,setColor:t,allowAlpha:n,onChangeEnd:r})=>{let[o,i]=l.useState("hex"),{formatMessage:a}=PN(lR);return(0,vr.jsxs)(vr.Fragment,{children:[(0,vr.jsx)(RR,{value:e,xChannel:"saturation",yChannel:"lightness",onChange:t,onChangeEnd:r}),(0,vr.jsxs)("div",{className:_R,children:[(0,vr.jsx)(KR,{channel:"hue",value:e,onChange:t,onChangeEnd:r}),n?(0,vr.jsx)(KR,{channel:"alpha",value:e,onChange:t,onChangeEnd:r}):null]}),(0,vr.jsxs)("div",{className:(0,s.xW)(_R,br.UV.variants({paddingTop:"none",gap:"sm"})),children:[(0,vr.jsx)(Fj,{label:a("colorFormat"),labelPosition:"start",variant:"ghost",items:AR,selectedKey:o,onSelectionChange:e=>{i(e)}}),"hex"===o&&(0,vr.jsx)(FR,{color:e,setColor:e=>{t(e),r?.(e)},allowAlpha:n}),"rgb"===o&&(0,vr.jsx)(BR,{color:e,setColor:e=>{t(e),r?.(e)},allowAlpha:n})]})]})},HR=({color:e,setColor:t,storePickedColorKey:n,addColorButtonLabel:r,removeColorButtonLabel:o,customColorsLabel:i,pickerMode:a,allowAlpha:c})=>{let{locale:u}=(0,er.Ym)(),{formatMessage:d}=PN(lR),p=l.useRef(null),h=MN(p.current),[f,m]=TN(n,[]),g=l.useRef(null),[v,y]=l.useState(e),b=l.useMemo((()=>f.map((e=>({id:e,label:Fr(e).getColorName(u),description:e})))),[f,u]),w=(0,l.useCallback)((()=>{let t="active"===a?e:v;f.includes(t.toString(TR))?g.current?.querySelector(`[data-key='${t.toString(TR)}']`)?.classList.add(SR):m([...f,t.toString(TR)])}),[f,e,m,v,a]);(0,l.useEffect)((()=>{let e=g.current;function t(e){"_1dbkl5w"===e.animationName&&e.target?.classList.remove(SR)}return e?.addEventListener("animationend",t),()=>{e?.removeEventListener("animationend",t)}}),[]);let x=(0,er.Bi)(),S=(0,vr.jsx)(WN,{ref:p,variant:"secondary",size:"md","aria-label":r,icon:zr.c1,onPress:"active"===a?w:void 0}),_=(0,l.useCallback)((e=>(0,vr.jsxs)(hO,{size:"content",className:mR({includesCustomColorPicker:!0}),style:{paddingBlockEnd:0},"aria-label":d("newColor"),children:[(0,vr.jsx)($R,{color:v,setColor:y,allowAlpha:c}),(0,vr.jsx)(EM,{}),(0,vr.jsx)(zM,{padding:"lg",display:"flex",flexDirection:"row-reverse",children:(0,vr.jsxs)(zM,{display:"inline-flex",gap:"lg",children:[(0,vr.jsx)(eN,{label:d("cancel"),size:"sm",variant:"secondary",onPress:e}),(0,vr.jsx)(eN,{label:d("add"),variant:"primary",onPress:()=>{w(),e()},size:"sm"})]})})]})),[v,w,d,c]),C=(0,l.useCallback)((e=>{(0,s.V1)(e instanceof Set,"Key must be a set");let n=[...e][0];n&&t(Fr(n).toFormat(TR))}),[t]);return(0,vr.jsxs)(vr.Fragment,{children:[(0,vr.jsx)(EM,{}),(0,vr.jsxs)("div",{className:(0,s.xW)("_1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z6k8 _1yep5z6k9 _1yep5z6ka _1yep5z6dy _1yep5z6ev _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6j8 _1yep5z6j9 _1yep5z6ja","BaselineUI-ColorInput-CustomColors"),children:[(0,vr.jsx)("span",{id:x,children:i}),(0,vr.jsxs)(zM,{display:"flex",children:[!!f.length&&f.includes(e.toString(TR))&&(0,vr.jsx)(WN,{variant:"secondary",size:"md",elementType:"div",icon:zr.QG,"aria-label":o,onPress:()=>{m(f.filter((t=>t!==e.toString(TR))))}}),"active"===a&&S,"lazy"===a&&("mobile"===h?(0,vr.jsxs)(iO,{children:[(0,vr.jsx)(cR,{children:S}),(0,vr.jsx)(uO,{style:{zIndex:1e5},children:({close:e})=>_(e)})]}):(0,vr.jsxs)(VM,{type:"dialog",children:[(0,vr.jsx)(qM,{children:S}),(0,vr.jsx)(yO,{placement:"right top",className:wR,offset:6,children:({close:e})=>_(e)})]}))]})]}),!!f.length&&(0,vr.jsx)(RM,{items:b,layout:"grid","aria-labelledby":x,className:(0,s.xW)(hR,xR,br.UV.variants({paddingTop:"xs"}),"BaselineUI-ColorInput-CustomColorsListBox"),renderOption:OR,ref:g,autoFocus:!1,selectionMode:"single",selectedKeys:[e.toString(TR)],onSelectionChange:C})]})},UR=l.forwardRef((({setColor:e,color:t,triggerRef:n,autoFocus:r,presets:o,state:i},a)=>{let{formatMessage:c}=PN(lR),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===NR?null:Fr(r.id).toFormat(TR)),i.close()}}),[i,o,e]);return(0,vr.jsx)("div",{className:(0,s.xW)(xR,"BaselineUI-ColorInput-Presets"),style:{minWidth:n.current?.offsetWidth},ref:a,children:(0,vr.jsx)(RM,{autoFocus:r,items:o,layout:"grid","aria-label":c("colorPresets"),className:hR,renderOption:OR,selectionMode:"single",selectedKeys:[t?.toString(IR)||NR],onSelectionChange:u})})}));UR.displayName="ColorPresetList";var qR=l.forwardRef((({color:e,colorLabel:t,colorName:n,...r},o)=>{let i=l.useRef(null),{hoverProps:a,isHovered:c}=(0,er.Mk)({isDisabled:r.isDisabled}),{buttonProps:u,isPressed:d}=(0,er.sL)(r,i),{isFocusVisible:p,focusProps:h}=(0,er.og)(),f=(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}),m=FI(),g=FI();return(0,vr.jsxs)("button",{...(0,er.v6)(u,a,h,f),style:r.style,className:(0,s.xW)(dR({isHovered:c,isFocusVisible:p||r.isOpen,isDisabled:r.isDisabled,labelPosition:r.labelPosition}),"BaselineUI-ColorInputButton",r.className),ref:GI(o,i),id:m,"aria-labelledby":r["aria-labelledby"]||`${m} ${g}`,children:[(0,vr.jsx)(zR,{color:e?.toString("hexa")}),t?(0,vr.jsx)("div",{className:"_1dbkl5f z9nup87",id:g,"aria-hidden":"true",children:n}):"string"==typeof n&&(0,vr.jsx)(er.s6,{children:n})]})}));qR.displayName="ColorInputButton";var WR=l.forwardRef((({className:e,style:t,icon:n,...r},o)=>{let i=l.useRef(null),{hoverProps:a,isHovered:c}=(0,er.Mk)({isDisabled:r.isDisabled}),{buttonProps:u,isPressed:d}=(0,er.sL)(r,i),{isFocusVisible:p,focusProps:h}=(0,er.og)(),f=(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,vr.jsxs)("button",{...(0,er.v6)(u,a,h,f),ref:GI(o,i),style:t,className:(0,s.xW)(yR({isHovered:c||d||r.isOpen,isFocusVisible:p,isDisabled:r.isDisabled}),"BaselineUI-IconColorInputButton",e),children:[(0,vr.jsx)(n,{size:16}),(0,vr.jsx)("div",{className:"_1dbkl5e",style:{backgroundColor:r.color||void 0}})]})}));function GR({colorLabel:e,color:t,presets:n}){let{formatMessage:r}=PN(),{locale:o}=(0,er.Ym)(),i=(0,l.useMemo)((()=>n.find((e=>e.id===NR?!t:!!t&&function(e,t){return e?.getChannelValue("alpha")?t?.toString(IR)===e.toString(IR):!t?.getChannelValue("alpha")}(t,Fr(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(YR.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])}}WR.displayName="IconColorInputButton";var YR=AN({transparent:{defaultMessage:"Transparent",id:"transparent"}}),ZR=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:h,storePickedColorKey:f="baselinePickedColor",value:m,addColorButtonLabel:g,removeColorButtonLabel:v,customColorsLabel:y,renderTriggerButton:b=(({isOpen:e,color:t,ref:n,colorName:r,triggerProps:o,labelId:s})=>(0,vr.jsx)(qR,{...(0,er.v6)(o,{...E.label?{"aria-labelledby":s}:{"aria-label":E["aria-label"]}}),ref:n,isOpen:e,isDisabled:E.isDisabled,labelPosition:i,color:t,colorLabel:a,colorName:r})),pickerMode:w="active",offset:x=2,placement:S=("start"===i?"bottom end":"bottom start"),"data-block-id":_,"data-block-class":C,...E},k)=>{let z=l.useRef(null),P=l.useRef(null),A=(0,sr.T)(E),{triggerProps:D,overlayProps:T}=(0,er.oJ)({type:"listbox"},A,z),I=jN(E.portalContainer),[M,N]=u(void 0===m?void 0:MR(m),MR(h),(e=>d?.(e?.toFormat("rgba")||null))),{formatMessage:O}=PN(lR),j=(0,l.useMemo)((()=>function(e,t){let n=t?.map((e=>({id:Fr(e.color).toString(IR),label:e.label})))||[];return[...n,{id:NR,label:e}]}(O(JR.noColor),o)),[o,O]),R=(0,er.Bi)(),{colorName:F}=GR({colorLabel:a,color:M,presets:j}),B=(0,l.useMemo)((()=>j.filter((e=>n||e.id!==NR))),[j,n]),L=g||O(JR.addColor),V=v||O(JR.removeColor),K=y||O(JR.customColors),$=(0,vr.jsx)(HR,{color:M||DR,setColor:e=>{N(e),p?.(e?.toFormat("rgba")||null)},storePickedColorKey:f,addColorButtonLabel:L,removeColorButtonLabel:V,customColorsLabel:K,pickerMode:w,allowAlpha:r});return(0,vr.jsxs)(vr.Fragment,{children:[(0,vr.jsxs)("div",{className:(0,s.xW)({"_1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6k8 _1yep5z6k9 _1yep5z6ka":"start"===i},"BaselineUI-ColorInput-Trigger",e),"data-block-id":_,"data-block-class":C,style:t,ref:k,children:[E.label?(0,vr.jsx)("label",{id:R,className:pR({labelPosition:i}),children:E.label}):null,b({isOpen:A.isOpen,color:M,ref:z,colorName:F,triggerProps:D,labelId:R})]}),(0,vr.jsx)(vO,{...E,portalContainer:I,placement:S,state:A,offset:x,className:(0,s.xW)(wR,"BaselineUI-ColorInput-Popover"),triggerRef:z,overlayProps:T,children:(0,vr.jsxs)(hO,{size:"content",className:mR({includesCustomColorPicker:c}),ref:P,"aria-labelledby":R,"aria-label":E["aria-label"],children:[c&&"active"===w?(0,vr.jsxs)(vr.Fragment,{children:[(0,vr.jsx)($R,{color:M||DR,setColor:N,allowAlpha:r,onChangeEnd:e=>{p?.(e?.toFormat("rgba")||null)}}),$]}):null,!!B.length&&(0,vr.jsxs)(vr.Fragment,{children:[c&&"active"===w?(0,vr.jsx)(EM,{}):null,(0,vr.jsx)(UR,{autoFocus:(!c||"active"!==w)&&"first",state:A,triggerRef:z,presets:B,color:M,setColor:e=>{N(e),p?.(e?.toFormat("rgba")||null)}})]}),c&&"lazy"===w?$:null]})})]})}));ZR.displayName="ColorInput";var JR=AN({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"}}),XR=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,vr.jsx)(HN,{variant:"inverse",size:"sm",includeArrow:!1,text:a["aria-label"],placement:"bottom start",offset:4,...i,children:"standard"===r?(0,vr.jsx)(qR,{...s,"aria-label":a["aria-label"],ref:n,isOpen:e,isDisabled:a.isDisabled,color:t,colorLabel:!1,colorName:o}):(0,vr.jsx)(WR,{...s,isOpen:e,icon:zr.N$,color:t?.toString("hexa"),ref:n,isDisabled:a.isDisabled,"aria-label":a["aria-label"]})})),[a,i,r]);return(0,vr.jsxs)(zM,{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:GI(c,u),children:["standard"===r&&n?(0,vr.jsx)(n,{size:24,className:(0,br.UV)({color:"icon.primary"})}):null,(0,vr.jsx)(ZR,{...a,colorLabel:!1,renderTriggerButton:d})]})}));XR.displayName="IconColorInput";var QR={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:"復原"}},eF=wM({defaultClassName:"mnnh5s1 _1yep5z6i2 _1yep5z6i3 _1yep5z6i4 _1yep5z6kz _1yep5z6l2 _1yep5z6le _1yep5z6ld _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6k2 _1yep5z6k3 _1yep5z6k4 _1yep5z6lc",variantClassNames:{isInline:{true:"mnnh5s2 _1yep5z6wd _1yep5z6we _1yep5z6wf _1yep5z6x1 _1yep5z6x2 _1yep5z6x3 _1yep5z6xp _1yep5z6xq _1yep5z6xr _1yep5z6yd _1yep5z6ye _1yep5z6yf _1yep5z612s _1yep5z617h _1yep5z617i",false:"_1yep5z6174 _1yep5z611w"},isHovered:{true:"mnnh5s4"},hasLoadedImage:{true:"_1yep5z611v"},includeCheckeredBackground:{true:"mnnh5s6"},showFocusRing:{true:"_1yep5z6130 _1yep5z617a _1yep5z6178 _1yep5z613h _1yep5z617b"},isDisabled:{true:"mnnh5s8 _1yep5z6z2"}},defaultVariants:{},compoundVariants:[[{isHovered:!0,hasLoadedImage:!1},"_1yep5z61nv"],[{isHovered:!0,hasLoadedImage:!0},"mnnh5s9"],[{isInline:!0,isDisabled:!0},"_1yep5z61ok"],[{hasLoadedImage:!0,includeCheckeredBackground:!0},"_1yep5z61nn"]]}),tF=wM({defaultClassName:"mnnh5sa",variantClassNames:{isInline:{true:"mnnh5sb",false:"mnnh5sc"},isDisabled:{true:"mnnh5sd"},hasLoadedImage:{true:"mnnh5s0"}},defaultVariants:{},compoundVariants:[]}),nF=wM({defaultClassName:"_1i0ytqa3 _1yep5z6i2 _1yep5z6i3 _1yep5z6i4 _1yep5z6lc _1yep5z6ld _1yep5z6lf",variantClassNames:{isFocusVisible:{true:"_1i0ytqa4"},isInline:{true:"_1yep5z6124",false:"_1yep5z6126"},isDisabled:{true:"_1i0ytqa7 _1yep5z6z2",false:"_1i0ytqa8"}},defaultVariants:{},compoundVariants:[[{isInline:!0,isFocusVisible:!0},"_1i0ytqa9 _1yep5z61og _1yep5z61t8 _1yep5z61ta"],[{isInline:!1,isFocusVisible:!0},"_1i0ytqaa"],[{isInline:!0,isDisabled:!0},"_1yep5z61nw"],[{isInline:!1,isDisabled:!0},"_1yep5z61ny"]]}),rF=wM({defaultClassName:"_1i0ytqab _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6k2 _1yep5z6k3 _1yep5z6k4 _1yep5z6lc",variantClassNames:{isInline:{false:"_1yep5z611v"},isDisabled:{true:"_1i0ytqad _1yep5z6z2"}},defaultVariants:{},compoundVariants:[]}),oF=wM({defaultClassName:"_1i0ytqa1 _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z6k8 _1yep5z6k9 _1yep5z6ka _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6lc",variantClassNames:{isInline:{false:"_1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b"}},defaultVariants:{},compoundVariants:[]});var iF=180,aF={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},sF=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:h=!1,isInline:f=!0,isDisabled:m,placeholder:g,clearLabel:v,undoLabel:y,redoLabel:b,footerClassName:w,canvasRef:x,value:S,footerStyle:_,"data-block-id":C,"data-block-class":E,"aria-label":k="Drawing canvas",description:z="This is a canvas for drawing using a mouse or touch input.",...P},A)=>{let D=PN(QR),T=l.useRef(null),[I,M]=l.useState(S||u||[]),N=l.useMemo((()=>({...aF,...P})),[P]),[O,j]=l.useState(),R=(0,er.Bi)(),{labelProps:F,fieldProps:B}=(0,er.MW)({...P,"aria-label":k,labelElementType:"span"}),{isFocusVisible:L,focusProps:V}=(0,er.og)({within:!0}),{hoverProps:K,isHovered:$}=(0,er.Mk)({isDisabled:m}),{undo:H,redo:U,canRedo:q,canUndo:W,push:G}=EN(I,{onAction:e=>{e&&(M(e),p?.(e))},isDisabled:!h}),{keyboardProps:Y}=(0,er.de)({onKeyDown:e=>{"Backspace"===e.key?ee():"z"===e.key&&(e.metaKey||e.ctrlKey)&&(e.shiftKey?q&&U():W&&H())}}),[Z,J]=(0,l.useState)(!1),X=(0,l.useCallback)((e=>{let t=e.currentTarget.getBoundingClientRect();j(t),e.target.setPointerCapture(e.pointerId);let n=[e.clientX-t.x,e.clientY-t.y,e.pressure];M((e=>[...e,[n]])),J(!0)}),[]),Q=(0,l.useCallback)((e=>{if(1!==e.buttons||!O)return;let t=uF(e.nativeEvent).map((e=>[o?d(e.clientX-O.left,0,O.width):e.clientX-O.left,o?d(e.clientY-O.top,0,O.height):e.clientY-O.top,e.pressure]));M((e=>{let n=[...e];return n[e.length-1]=[...n[e.length-1],...t],n}))}),[O,o]);(0,l.useEffect)((()=>{c?.(I)}),[I,c]);let ee=()=>{M([]),c?.([]),G([])};return(0,vr.jsxs)("div",{ref:GI(T,A),className:(0,s.xW)("_1i0ytqa0","BaselineUI-FreehandCanvas",e),style:t,"aria-disabled":m,"data-block-id":C,"data-block-class":E,children:[P.label||h?(0,vr.jsxs)("div",{className:oF({isInline:f}),children:[P.label?(0,vr.jsx)(QN,{type:"label",size:"sm",...F,children:P.label}):(0,vr.jsx)("span",{}),h?(0,vr.jsxs)("div",{children:[(0,vr.jsx)(WN,{variant:"secondary",size:"sm",isDisabled:!W||m,icon:Sr.ej,onPress:H,"aria-label":y||D.formatMessage("undo")}),(0,vr.jsx)(WN,{variant:"secondary",size:"sm",isDisabled:!q||m,icon:Sr.Uf,onPress:U,"aria-label":b||D.formatMessage("redo")})]}):null]}):null,(0,vr.jsxs)("div",{role:"application",...(0,er.v6)(V,Y,K,B),tabIndex:m?void 0:0,className:(0,s.xW)(eF({isInline:f,isHovered:$}),nF({isFocusVisible:L,isInline:f,isDisabled:!!m}),n),"aria-describedby":P["aria-describedby"]||R,style:r,ref:x,children:[(0,vr.jsx)(er.s6,{children:(0,vr.jsx)("div",{id:R,children:z})}),(0,vr.jsx)("svg",{width:r?.width||"100%",height:r?.height||"100%",onPointerDown:X,onPointerMove:Q,onPointerUp:()=>{O&&(p?.(I),G(I),J(!1))},children:(S||I).map(((e,t,n)=>t<n.length-1||!Z?(0,vr.jsx)(lF,{line:e,options:N,strokeColor:a,strokeWidth:i},t):(0,vr.jsx)(cF,{line:e,options:N,strokeColor:a,strokeWidth:i},t)))})]}),g||v?(0,vr.jsx)("div",{style:_,className:(0,s.xW)(rF({isInline:f,isDisabled:m}),w),children:!I.length&&g||!v?(0,vr.jsx)(eN,{size:"sm",variant:"ghost",label:g,isDisabled:!0}):(0,vr.jsx)(eN,{size:"sm",variant:"ghost",label:v,isDisabled:m,onPress:ee})}):null]})}));sF.displayName="FreehandCanvas";var lF=l.memo((({line:e,options:t,strokeColor:n,strokeWidth:r})=>{let o=(0,l.useMemo)((()=>(0,s.op)(Jo(e.map((([e,t,n])=>({x:e,y:t,pressure:n}))),t))),[e,t]);return(0,vr.jsx)("path",{d:o,stroke:n,strokeWidth:r})}));lF.displayName="Stroke";var cF=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/iF);for(let i=0;i<o;i++)if(i===o-1||!n.current[i]){let o=e.slice(i*iF-(i>0?1:0),i*iF+iF);r=(0,s.op)(Jo(o.map((([e,t,n])=>({x:e,y:t,pressure:n}))),t)),o.length>=(i>0?iF+1:iF)&&(n.current[i]=r)}return r}),[e,t]);return[...n.current,r]}({line:e,options:t});return(0,vr.jsx)(vr.Fragment,{children:o.map(((e,t)=>(0,vr.jsx)("path",{d:e,stroke:n,strokeWidth:r},t)))})}));function uF(e){if("function"==typeof e.getCoalescedEvents){let t=e.getCoalescedEvents();return t.length>0?t.flatMap((e=>uF(e))):[e]}return[e]}cF.displayName="SplitStroke";var dF=wM({defaultClassName:"_1vac7ws1",variantClassNames:{isDragging:{true:"_1vac7ws2"}},defaultVariants:{},compoundVariants:[]});var pF=function(e){var t;return t=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ns(t,e),t}(Sp),t.defaultAbles=e,t}([qc,Zc,ru,Eu]),hF=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:h,onDrag:f,onResizeStart:m,onResizeEnd:g,onResize:v,onRotateStart:y,onRotateEnd:b,onRotate:w,onSnap:x,isSnappable:S,elementGuidelines:_,hideAnchorOnDrag:C=!0,title:E,rotationPosition:k,autoUpdate:z,bound:P,snapRotationDegrees:A,snapRotationThreshold:D,scrollableAncestor:T,renderDirections:I,stopPropagation:M,transformOrigin:N,preventDefault:O},j)=>{let R=(0,l.useRef)(null),F=(0,l.useRef)(null),[B,L]=(0,l.useState)(document),V=(0,l.useRef)(B.createElement("div")),[K,$]=(0,l.useState)({}),[H,U]=(0,l.useState)(!1),[q,W]=(0,l.useState)(!1),[G,Y]=(0,l.useState)(),Z=function(e,t){let[n,r]=(0,l.useState)([]),o=()=>e?.flatMap((e=>[...t.querySelectorAll(e)])).map((e=>({current:e})));return(0,wr.useGranularEffect)((()=>{r(o())}),[],[o]),(0,wr.useGranularEffect)((()=>{let e=o();r(e)}),[e],[o]),n}(_,B);(0,l.useLayoutEffect)((()=>{let e=V.current;return V.current=B.createElement("div"),()=>{e.remove()}}),[B]);let{keyboardProps:J}=(0,er.de)({onKeyDown:e=>{let t=e.shiftKey?10:1,n=e.metaKey||e.ctrlKey;function r(e,r="x"){n?F.current?.request("rotatable",{deltaRotate:e*t},!0):F.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((()=>{F.current?.updateRect()}))}});(0,l.useEffect)((()=>{let e=VI(R.current);L(e);let t=V.current;function n(e){W(e.shiftKey)}function r(){W(!1)}return e.body.append(V.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:T,onScroll:()=>{F.current?.updateRect()},ownerDocument:B});let X=(0,l.useCallback)((e=>{$((t=>({...t,...e.style}))),a?.(e)}),[a]),Q=(0,l.useCallback)((e=>{if(U(!0),R.current?.focus(),P){let e=(0,s.gi)(P,B)?.getBoundingClientRect();Y({position:"client",left:e?.left??0,top:e?.top??0,right:e?.right??0,bottom:e?.bottom??0})}p?.(e)}),[P,B,p]),ee=(0,l.useCallback)((e=>{U(!1),h?.(e)}),[h]),te=t({style:{...K.width&&{width:K.width},...K.height&&{height:K.height}}});return(0,vr.jsxs)(vr.Fragment,{children:[(0,vr.jsx)("div",{role:"button",...J,ref:GI(R,j),style:{display:"inline-block",...i,...K},className:(0,s.xW)("_1vac7ws0",e),onDoubleClick:d,tabIndex:0,title:E,children:te}),(0,Fn.createPortal)((0,vr.jsx)(pF,{ref:F,target:R,draggable:o,resizable:r,rotatable:n,keepRatio:q,throttleDrag:1,snappable:S||!!P,elementGuidelines:Z,snapRenderThreshold:.9,className:dF({isDragging:H&&C}),onRender:X,onDragStart:Q,onDragEnd:ee,useResizeObserver:z,useMutationObserver:z,onRenderEnd:u,onDrag:f,onResizeStart:m,onResizeEnd:g,onResize:v,onRotateStart:y,onRotateEnd:b,onRotate:w,onRenderStart:c,onSnap:x,rotationPosition:k,bounds:G,snapRotationDegrees:A,snapRotationThreshold:D,renderDirections:I,stopPropagation:M,preventDefault:O,transformOrigin:N}),V.current)]})}));hF.displayName="Transform";var fF={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:"選取圖像"}},mF=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:h,includeCheckeredBackground:f=!0,"data-block-id":m,"data-block-class":g,pickerButtonStyle:v,pickerButtonClassName:y,footerClassName:b,footerStyle:w,clearLabel:x,placeholder:S,labelStyle:_,labelClassName:C,...E},k)=>{let z=l.useRef(null),P=l.useRef(null),{formatMessage:A}=PN(fF),[D,T]=u(i,o||null,(e=>{(0,s.V1)("string"!=typeof e),E.onValueChange?.(e?[e]:[])})),I=(0,l.useMemo)((()=>function(e){return e instanceof File?URL.createObjectURL(e):e}(D||void 0)),[D]),{fieldProps:M,labelProps:N}=(0,er.Mt)(E),{dropProps:O,isDropTarget:j}=(0,er.Hd)({ref:z,onDrop:async e=>{if(d)return;let t=await FO({items:e.items});t.length&&T(t[0]),p?.(e)},...E}),{clipboardProps:R}=(0,er.iD)({onPaste:async e=>{if(d)return;let t=await FO({items:e});t.length&&T(t[0]),h?.(e)},...E}),F={type:"file",onChange:e=>{let t=[...e.target.files];T(t[0]),E.onChange?.(e)},accept:r,disabled:d},{focusProps:B,isFocused:L,isFocusVisible:V}=(0,er.og)({within:!0}),{hoverProps:K,isHovered:$}=(0,er.Mk)({isDisabled:d}),{imgProps:H,isLoading:U,isLoaded:q}=bN({src:I,alt:a||""}),W={label:c||A("selectImage"),onPress:()=>z.current?.click(),variant:"secondary",isDisabled:d,excludeFromTabOrder:!0,className:(0,s.xW)(JM({isFocusVisible:V}),{_1yep5z6d8:j&&!d},y),style:v},G=(0,s.nP)({"data-loaded":q,"data-block-id":m,"data-block-class":g,"data-hovered":$,"data-focused":L,"data-drop-target":j,"data-disabled":d,"data-focus-visible":V});return(0,vr.jsxs)(zM,{...G,className:(0,s.xW)("BaselineUI-ImageDropZone",e),display:"flex",flexDirection:"column",alignItems:"center",style:t,ref:k,children:[(0,vr.jsxs)("label",{...(0,er.v6)(O,K,B,N),className:(0,s.xW)(eF({isInline:n,isHovered:$,isDisabled:d,hasLoadedImage:!!I&&q,showFocusRing:j||!!I&&V}),C),style:_,ref:z,children:[(0,vr.jsx)(er.s6,{children:(0,vr.jsx)("input",{...(0,er.v6)(M,R,F),ref:P})}),!I&&(0,vr.jsx)(eN,{...W}),!!I&&(U?(0,vr.jsx)(nj,{}):(0,vr.jsx)("img",{className:tF({isInline:n,isDisabled:d,hasLoadedImage:!!I&&q&&f}),...H}))]}),S||x?(0,vr.jsx)("div",{style:w,className:(0,s.xW)(rF({isInline:n,isDisabled:d}),b),children:!I&&S||!x?(0,vr.jsx)(eN,{size:"sm",variant:"ghost",label:S,isDisabled:!0}):(0,vr.jsx)(eN,{size:"sm",variant:"ghost",label:x,isDisabled:d,onPress:()=>{T(null),P.current&&(P.current.value="")}})}):null]})}));mF.displayName="ImageDropZone";var gF="_1vm2oh48 _1yep5z6ld _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6k2 _1yep5z6k3 _1yep5z6k4 _1yep5z6jt _1yep5z6ju _1yep5z6jv",vF=wM({defaultClassName:"_1vm2oh40 mnnh5s1 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6li _1yep5z6lg _1yep5z6i1 _1yep5z6lj _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6kz _1yep5z6le _1yep5z6i2 _1yep5z6i3 _1yep5z6i4",variantClassNames:{accent:{theme:"_1vm2oh41",positive:"_1vm2oh42"},isInline:{true:"mnnh5s2 _1yep5z6wa _1yep5z6wb _1yep5z6wc _1yep5z6wy _1yep5z6wz _1yep5z6x0 _1yep5z6xm _1yep5z6xn _1yep5z6xo _1yep5z6ya _1yep5z6yb _1yep5z6yc _1yep5z612r _1yep5z617g _1yep5z617i",false:"_1yep5z6126"},isFocusVisible:{true:"_1yep5z6130 _1yep5z617a _1yep5z6178 _1yep5z613h _1yep5z617b"},isDisabled:{true:"mnnh5s8 z9nup83 _1yep5z6z2"},isHovered:{true:"_1vm2oh47"}},defaultVariants:{},compoundVariants:[[{accent:"positive",isInline:!0},"_1yep5z61nw"],[{accent:"theme",isInline:!0},"_1yep5z61nl"],[{accent:"positive",isInline:!1},"_1yep5z61ny"],[{accent:"theme",isInline:!1},"_1yep5z61nn"],[{isFocusVisible:!0,isInline:!0},"_1yep5z61p9 _1yep5z61t0 _1yep5z61t2 _1yep5z61t3"],[{isHovered:!0,isInline:!0},"_1yep5z61t3 _1yep5z61p9 _1yep5z61t0 _1yep5z61t2"],[{isHovered:!0,isInline:!1,accent:"positive"},"_1yep5z61nx"],[{isHovered:!0,isInline:!1,accent:"theme"},"_1yep5z61np"],[{isHovered:!0,isInline:!0,accent:"theme"},"_1yep5z61nm"]]}),yF=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:h,accent:f="positive","data-block-id":m,"data-block-class":g,...v},y)=>{let{focusProps:b,isFocused:w,isFocusVisible:x}=(0,er.og)({within:!0}),{isHovered:S,hoverProps:_}=(0,er.Mk)({isDisabled:n}),{pressProps:C}=(0,er.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 E=(0,s.nP)({"data-hovered":S,"data-focus-visible":x,"data-focused":w,"data-disabled":n});return(0,vr.jsxs)("div",{...v,className:(0,s.xW)(vF({isInline:r,isFocusVisible:x,isDisabled:n,isHovered:S,accent:f}),"BaselineUI-Preview",e),"data-block-id":m,"data-block-class":g,"aria-label":v["aria-label"]||o||l,style:t,ref:y,children:["string"==typeof a?(0,vr.jsx)("button",{disabled:n,...(0,er.v6)(_,b,C,E),className:gF,"aria-label":h,dangerouslySetInnerHTML:{__html:a}}):(0,vr.jsxs)("button",{...(0,er.v6)(_,b,C,E),disabled:n,style:c,"aria-label":h,className:gF,children:[i?(0,vr.jsx)("img",{src:i,alt:o,className:tF({isInline:r,isDisabled:n})}):null,!!a&&"object"==typeof a&&a,l]}),d?(0,vr.jsx)(WN,{isDisabled:n,className:"_1vm2oh49 _1yep5z6i5 _1yep5z6i6 _1yep5z6i7 _1yep5z6g4","aria-label":p,size:"xs",icon:Sr.uc,onPress:d}):null]})}));yF.displayName="Preview";var bF=wM({defaultClassName:"cw3m0n8 _1yep5z6ew _1yep5z6dv",variantClassNames:{isDisabled:{true:"_1yep5z610q"}},defaultVariants:{},compoundVariants:[]}),wF=wM({defaultClassName:"cw3m0n0 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6iq _1yep5z6ir _1yep5z6is",variantClassNames:{labelPosition:{end:"_1yep5z614i _1yep5z614j _1yep5z614k _1yep5z6va _1yep5z6vb _1yep5z6vc",start:"_1yep5z614o _1yep5z614p _1yep5z614q _1yep5z6160 _1yep5z6161 _1yep5z6162"}},defaultVariants:{},compoundVariants:[]}),xF=wM({defaultClassName:"cw3m0n3 _16vugd06",variantClassNames:{isFocusVisible:{true:"_16vugd09"},isSelected:{true:"_16vugd08"},isDisabled:{true:"_16vugd0b"}},defaultVariants:{},compoundVariants:[]}),SF=({label:e,description:t},{isSelected:n,isFocusVisible:r,isDisabled:o,optionLabelPosition:i})=>(0,vr.jsxs)("div",{className:wF({labelPosition:i}),children:[(0,vr.jsx)("div",{className:xF({isSelected:n,isFocusVisible:r,isDisabled:o}),children:n?(0,vr.jsx)("div",{className:"cw3m0n7"}):null}),e?(0,vr.jsxs)("div",{className:"_1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6it _1yep5z6iu _1yep5z6iv _1yep5z69c _1yep5z69d _1yep5z69e",children:[(0,vr.jsx)("span",{className:sj({isDisabled:o}),children:e}),t?(0,vr.jsx)("span",{className:bF({isDisabled:o}),children:t}):null]}):null]}),_F=({state:e,renderOption:t=SF,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:h,isSelected:f}=(0,er.zU)({...c,isDisabled:u,children:n.label,value:n.id},e,d),{focusProps:m,isFocusVisible:g,isFocused:v}=(0,er.og)(),{isHovered:y}=(0,er.Mk)({isDisabled:u}),b=(0,s.nP)({"data-selected":f,"data-focused":v,"data-focus-visible":g,"data-hovered":y,"data-disabled":u,"data-pressed":h,"data-read-only":a});return(0,vr.jsxs)("label",{...b,style:o,className:(0,s.xW)("BaselineUI-Radio-Item",i),children:[(0,vr.jsx)(er.s6,{children:(0,vr.jsx)("input",{...(0,er.v6)(p,m),ref:d})}),t(n,{isFocusVisible:g,isSelected:f,isFocused:v,isHovered:y,isDisabled:u,optionLabelPosition:r,isReadOnly:a})]})},CF=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":h,...f},m)=>{let g=(0,lr.Z)(f),{radioGroupProps:v,labelProps:y,descriptionProps:b,errorMessageProps:w}=(0,er.mP)({...f,"aria-label":l,"aria-labelledby":c,"aria-describedby":u,"aria-details":d},g),x=pN({...f,descriptionProps:b,errorMessageProps:w,labelPosition:i}),S=(0,s.nP)({"data-orientation":f.orientation,"data-block-id":p,"data-block-class":h,"data-disabled":f.isDisabled,"data-readonly":f.isReadOnly});return(0,vr.jsxs)("div",{...(0,er.v6)(v,S),className:(0,s.xW)(uN({labelPosition:i}),"BaselineUI-RadioGroup",e),style:t,ref:m,children:[f.label||x?(0,vr.jsxs)("div",{className:cN({labelPosition:i,hasMessage:!!x}),children:[(0,vr.jsx)("span",{...y,className:(0,s.xW)(lN,"BaselineUI-RadioGroup-Label"),children:f.label}),"start"===i&&x]}):null,(0,vr.jsxs)("div",{className:(0,s.xW)({[FN]:f.isDisabled}),children:[(0,vr.jsx)("div",{className:(0,s.xW)("_1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6it _1yep5z6iu _1yep5z6iv _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6l9",n),style:r,children:o.map((e=>(0,vr.jsx)(_F,{state:g,renderOption:a,item:e,...f,value:e.id},e.id)))}),"top"===i&&x]})]})}));CF.displayName="RadioGroup";var EF=({id:e,defaultMessage:t,elementType:n=l.Fragment})=>{(0,s.V1)(e||t,"`id` or `defaultMessage` is required.");let r=PN();return(0,vr.jsx)(n,{children:r.formatMessage(e)||t})};EF.displayName="MessageFormat";var kF=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,er.Mk)({isDisabled:a});return(0,vr.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})}));kF.displayName="Group";var zF="UNSUPPORTED_IN_MENU";function PF(e,t){return t?(0,Cp.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 AF(e){return PF(e,eN)||PF(e,WN)}var DF={horizontal:"xvr3wn0",vertical:"xvr3wn1"},TF=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}=PN(),[h,f]=(0,l.useState)(),m=function(e){return(0,l.useMemo)((()=>l.Children.toArray(e).map((e=>{let t,n,r=e,o=(0,Cp.uniqueId)("item"),i=PF(r,VM),a=AF(r);if(i){let e=PF(i,qM);(0,s.V1)(e),t=AF(e),n=PF(i,yO).props.children}else t=a||r;let{onPress:c,label:u,"aria-label":d,iconStart:p,isDisabled:h,icon:f}=t.props,m=u||d||zF;(0,s.V1)("string"==typeof m,"ActionGroup children must have a string label");let g=`${o}-${m}`;return(0,l.createElement)(rr.q7,{key:g,onPress:c,textValue:m,"aria-label":d,icon:p||f,dialogContent:n,isDisabled:h,key:g},r)}))),[e])}(n),g=(0,or.pE)({...u,children:m}),v=cM(d),y=(0,l.useRef)(null),[{visibleItems:b,isMeasuring:w},x]=function(e){let[t,n]=(0,l.useState)(e),r=(0,l.useRef)(null),o=kI((()=>{if(!r.current)return;let e=r.current.next();e.done?r.current=null:t===e.value?o():n(e.value)}));EI((()=>{r.current&&o()}));let i=kI((e=>{r.current=e(t),o()}));return[t,i]}({visibleItems:g.collection.size,isMeasuring:!1}),S=(0,l.useCallback)((()=>{let e=e=>{if(y.current&&v.current){let t=[...y.current.children],n=v.current.getBoundingClientRect().width,r=0,o=0;if(e<g.collection.size){let e=t.pop();e&&(r+=IF(e,!1,!0))}for(let[e,i]of t.entries()){if(r+=IF(i,0===e,e===t.length-1),!(Math.round(r)<=Math.round(n)))break;o++}return o}return e};x((function*(){yield{visibleItems:g.collection.size,isMeasuring:!0};let t=e(g.collection.size),n=t<g.collection.size&&t>0;yield{visibleItems:t,isMeasuring:n},n&&(yield{visibleItems:e(t),isMeasuring:!1})}))}),[x,v,g.collection.size]);uM({ref:(0,l.useMemo)((()=>({get current(){return v.current?.parentElement}})),[v]),onResize:S}),EI(S,[g.collection,S]);let{toolbarProps:_}=_p(u,v),C=[...g.collection],E=C.slice(0,b),k=C.slice(b).filter((e=>e.textValue!==zF)),z=k.length>0;(0,l.useEffect)((()=>{f(void 0)}),[k.length]),(0,l.useEffect)((()=>{"vertical"===u.orientation&&console.warn("Toolbar: Vertical orientation is not supported when `isCollapsible` is true.")}),[u.orientation]);let{keyboardProps:P}=(0,er.de)({onKeyDown:c});return(0,vr.jsxs)(er.n1,{children:[(0,vr.jsx)("div",{...(0,er.v6)(_,P),className:e,"data-block-id":o,"data-block-class":i,"data-collapse":!0,style:{...t,flexBasis:w?"100%":void 0},ref:v,children:(0,vr.jsxs)("div",{ref:y,className:"_1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6i2 _1yep5z6i3 _1yep5z6i4 _1yep5z6lc _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z6l4",children:[E.map((e=>e.rendered)),z?(0,vr.jsxs)(vr.Fragment,{children:[!w&&a?(0,vr.jsx)(zM,{flexGrow:1}):null,(0,vr.jsx)(OO,{placement:"bottom end",renderTrigger:({buttonProps:e,ref:t})=>(0,vr.jsx)(WN,{...e,size:"md",icon:yr.Z4s,"aria-label":p(NF.more),variant:"toolbar",ref:t}),...r,disabledKeys:k.filter((e=>e.props?.isDisabled)).map((e=>e.key)),items:k.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=g.collection.getItem(e);(0,s.V1)(t,"Item not found");let{onPress:n,dialogContent:r}=t.props;n?.(),f(r)}})]}):null]})}),(0,vr.jsx)(iO,{isOpen:!!h,onOpenChange:e=>{e||f(void 0)},children:(0,vr.jsx)(uO,{enableDrawer:"auto",style:{zIndex:1e5},children:h?l.cloneElement(h,{inheritDrawer:!0}):null})})]})}));function IF(e,t,n){let r=KI(e).getComputedStyle(e);return e.getBoundingClientRect().width+(t?0:MF(r.marginLeft))+(n?0:MF(r.marginRight))}function MF(e){let t=Number.parseInt(e,10);return Number.isNaN(t)?0:t}TF.displayName="CollapsibleToolbar";var NF=AN({more:{id:"more",defaultMessage:"More"}}),OF=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}=_p(a,u),{keyboardProps:p}=(0,er.de)({onKeyDown:i});return(0,vr.jsx)("div",{...(0,er.v6)(d,p),"aria-controls":o,className:(0,s.xW)(DF[a.orientation||"horizontal"],"BaselineUI-Toolbar",e),style:t,"data-block-id":n,"data-block-class":r,ref:GI(c,u),children:a.children})}));OF.displayName="WrappedToolbar";var jF=l.forwardRef(((e,t)=>{let n=e.isCollapsible?TF:OF;return(0,vr.jsx)(n,{...e,ref:t})}));jF.displayName="Toolbar";var RF=wM({defaultClassName:"_1j5skr71",variantClassNames:{size:{xxs:"_1j5skr72",xs:"_1j5skr73",sm:"_1j5skr74",md:"_1j5skr75",lg:"_1j5skr76"}},defaultVariants:{},compoundVariants:[]}),FF=wM({defaultClassName:"_1j5skr70 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6le _1yep5z6lf _1yep5z6l9 _1yep5z6ik _1yep5z6il _1yep5z6im _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z6k2 _1yep5z6k3 _1yep5z6k4 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6g1 _1yep5z6f5",variantClassNames:{isHovered:{true:"_1j5skr7g"},isFocusVisible:{true:"_1j5skr7h"},isDisabled:{true:"z9nup83 _1yep5z610z"},isSelected:{true:"_1j5skr7j"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!0},"_1yep5z61t3 _1yep5z61t2 _1yep5z61t0 _1yep5z61pj _1yep5z61mr"],[{isSelected:!1,isHovered:!0,isDisabled:!1},"_1yep5z6g3"],[{isSelected:!1,isFocusVisible:!0,isDisabled:!1},"_1yep5z61t3 _1yep5z61t2 _1yep5z61p9 _1yep5z61t0"],[{isSelected:!0,isFocusVisible:!0,isDisabled:!1},"_1j5skr7k _1yep5z61t1 _1yep5z61t0 _1yep5z61pa _1yep5z61ms"],[{isSelected:!0,isFocusVisible:!1,isDisabled:!1},"_1yep5z61t0 _1yep5z61t2 _1yep5z61p9 _1yep5z61t3"]]}),BF=wM({defaultClassName:"_1j5skr70 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6le _1yep5z6lf _1yep5z6l9 _1yep5z6ik _1yep5z6il _1yep5z6im _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z6k2 _1yep5z6k3 _1yep5z6k4 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6f5",variantClassNames:{isHovered:{true:"_1j5skr7m"},isFocusVisible:{true:"_1yep5z617b _1yep5z617a _1yep5z613h _1yep5z6178"},isSelected:{true:"_1yep5z610y"},isDisabled:{true:"z9nup83 _1yep5z610z"}},defaultVariants:{},compoundVariants:[[{isSelected:!1,isHovered:!0},"_1yep5z61mq"]]}),LF=wM({defaultClassName:"_1j5skr70 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6le _1yep5z6lf _1yep5z6l9 _1yep5z6ik _1yep5z6il _1yep5z6im _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z6k2 _1yep5z6k3 _1yep5z6k4 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6f5",variantClassNames:{isHovered:{true:"_1j5skr7r"},isFocusVisible:{true:"_1yep5z617b _1yep5z617a _1yep5z613h _1yep5z6178"},isSelected:{true:"_1j5skr7t"},isDisabled:{true:"z9nup83 _1yep5z610z"}},defaultVariants:{},compoundVariants:[[{isSelected:!1,isHovered:!0},"_1yep5z61nn"],[{isSelected:!0,isDisabled:!1},"_1yep5z61nn _1yep5z61mu"],[{isSelected:!0,isDisabled:!0},"_1yep5z61nn _1yep5z61mr"]]}),VF=wM({defaultClassName:"_1j5skr77 _1j5skr70 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6le _1yep5z6lf _1yep5z6l9 _1yep5z6ik _1yep5z6il _1yep5z6im _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z6k2 _1yep5z6k3 _1yep5z6k4 _1yep5z6f5",variantClassNames:{isHovered:{true:"_1j5skr78"},isFocusVisible:{true:"_1j5skr79"},isSelected:{true:"_1j5skr7a"},isDisabled:{true:"_1j5skr7b z9nup83 _1yep5z6111"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!1},"_1j5skr7c _1yep5z61mt"],[{isSelected:!1,isDisabled:!0},"_1j5skr7d _1yep5z61mr"],[{isSelected:!1,isHovered:!0},"_1yep5z61nn"],[{isSelected:!1,isFocusVisible:!0},"_1yep5z61t3 _1yep5z61t2 _1yep5z61p9 _1yep5z61t0"],[{isSelected:!0,isFocusVisible:!0},"_1j5skr7e _1yep5z61t1 _1yep5z61t0 _1yep5z61pa"]]}),KF={xxs:8,xs:12,sm:16,md:20,lg:24},$F=l.forwardRef(((e,t)=>{let n=cM(t),{tooltipProps:r}=GM(e,n);return r?(0,vr.jsx)(HN,{...r,children:(0,vr.jsx)(HF,{...e,ref:t})}):(0,vr.jsx)(HF,{...e,ref:t})}));$F.displayName="ToggleIconButton";var HF=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,hr.H)(c),{buttonProps:p,isPressed:h,ref:f,isFocusVisible:m,isFocused:g,isHovered:v,uiStateOptions:y}=ZM(c,d),b=(0,l.useMemo)((()=>"function"==typeof n?n:d.isSelected?n.selected:n.unselected),[n,d.isSelected]),w={isSelected:d.isSelected,isHovered:v,isFocusVisible:m,isDisabled:!!c.isDisabled},x=(0,s.nP)({"data-hovered":v,"data-selected":d.isSelected,"data-focus-visible":m,"data-disabled":c.isDisabled,"data-block-id":i,"data-block-class":a,"data-focused":g,"data-pressed":h});return(0,vr.jsx)("button",{...(0,er.v6)(p,x),className:(0,s.xW)("toolbar"===o&&VF(w),"primary"===o&&FF(w),"secondary"===o&&BF(w),"tertiary"===o&&LF(w),RF({size:r}),"BaselineUI-ToggleIconButton","function"==typeof e?e(y):e),style:"function"==typeof t?t(y):t,ref:GI(f,u),children:(0,vr.jsx)(b,{size:KF[r]})})}));HF.displayName="ToggleIconButtonCore";var UF="_1yep5z689 _1yep5z68a _1yep5z68b _1yep5z65x _1yep5z65y _1yep5z65z",qF=wM({defaultClassName:"f6jv6b0 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6g1",variantClassNames:{isInline:{true:"f6jv6b1"},isMinimal:{true:"_1yep5z614i _1yep5z614j _1yep5z614k _1yep5z6vd _1yep5z6ve _1yep5z6vf _1yep5z6150 _1yep5z6151 _1yep5z6152",false:"_1yep5z614l _1yep5z614m _1yep5z614n"}},defaultVariants:{},compoundVariants:[[{isInline:!0,isMinimal:!1},"_1yep5z61i5 _1yep5z61i6 _1yep5z61i7 _1yep5z61it _1yep5z61iu _1yep5z61iv _1yep5z61jh _1yep5z61ji _1yep5z61jj _1yep5z61k5 _1yep5z61k6 _1yep5z61k7 _1yep5z61ta _1yep5z61t8 _1yep5z61oj"]]}),WF=wM({defaultClassName:"f6jv6b4 _1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6e3 _1yep5z6eu _1yep5z6lf",variantClassNames:{isDisabled:{true:"f6jv6b5 _1yep5z610q"}},defaultVariants:{},compoundVariants:[]}),GF=wM({defaultClassName:"f6jv6bf _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6lf _1yep5z6kz _1yep5z6l2 _1yep5z6le",variantClassNames:{isHovered:{true:"_1yep5z611v"},isDisabled:{true:"_1yep5z6z2"}},defaultVariants:{},compoundVariants:[]}),YF=wM({defaultClassName:"f6jv6bb _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6jt _1yep5z6ju _1yep5z6jv",variantClassNames:{isInline:{true:"_1yep5z6pg _1yep5z6ph _1yep5z6pi _1yep5z617i _1yep5z617g _1yep5z612r",false:"_1yep5z6pj _1yep5z6pk _1yep5z6pl _1yep5z6wv _1yep5z6ww _1yep5z6wx _1yep5z6xj _1yep5z6xk _1yep5z6xl _1yep5z6y7 _1yep5z6y8 _1yep5z6y9 _1yep5z6yv _1yep5z6yw _1yep5z6yx"}},defaultVariants:{},compoundVariants:[]}),ZF=wM({defaultClassName:"f6jv6b6",variantClassNames:{isInline:{true:"f6jv6b7",false:"f6jv6b8"}},defaultVariants:{},compoundVariants:[]}),JF="f6jv6b9 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z6j8 _1yep5z6j9 _1yep5z6ja",XF="f6jv6bo",QF=[["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:eB}}=br.Br,tB=({isOpen:e,onClose:t})=>{let{formatMessage:n}=PN(),r=(0,er.Bi)();return(0,vr.jsx)(iO,{isOpen:e,onOpenChange:e=>{e||t()},children:(0,vr.jsx)(uO,{enableDrawer:"auto",style:{zIndex:999999},children:(0,vr.jsxs)(hO,{"aria-labelledby":r,className:"f6jv6bj _1yep5z6wg _1yep5z6wh _1yep5z6wi _1yep5z6x4 _1yep5z6x5 _1yep5z6x6 _1yep5z6xs _1yep5z6xt _1yep5z6xu _1yep5z6yg _1yep5z6yh _1yep5z6yi",drawerBackground:"subtle",children:[(0,vr.jsxs)(zM,{paddingLeft:eB.padding.horizontal.lg,paddingRight:eB.padding.horizontal.sm,display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",backgroundColor:"background.primary.subtle",className:"f6jv6bk",children:[(0,vr.jsx)(QN,{id:r,elementType:"h3",type:"title",size:"md",children:n(nB.help)}),(0,vr.jsx)(WN,{icon:zr.uv,size:"md",variant:"secondary","aria-label":n(nB.close),onPress:t})]}),(0,vr.jsx)(EM,{className:"f6jv6bl"}),(0,vr.jsxs)(zM,{paddingX:eB.padding.horizontal.lg,role:"table","aria-labelledby":r,backgroundColor:"background.primary.subtle",children:[(0,vr.jsx)("div",{role:"rowgroup",children:(0,vr.jsxs)(zM,{role:"row",display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingY:eB.padding.vertical.md,color:"text.primary",children:[(0,vr.jsx)("h6",{className:(0,br.UV)({typography:"heading.h6.semibold"}),role:"columnheader",children:n(nB.action)}),(0,vr.jsx)("h6",{className:(0,br.UV)({typography:"heading.h6.semibold"}),role:"columnheader",style:{textTransform:"capitalize"},children:n(nB.shortcut)})]})}),(0,vr.jsx)("div",{role:"rowgroup",children:QF.map((([e,t],r)=>(0,vr.jsxs)(l.Fragment,{children:[(0,vr.jsxs)(zM,{role:"row",display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingY:eB.padding.vertical.xs,style:{minHeight:40},children:[(0,vr.jsx)(QN,{type:"subtitle",size:"sm",role:"cell",children:n(nB[(0,Cp.camelCase)(e)])}),(0,vr.jsx)(QN,{elementType:"kbd",type:"subtitle",size:"sm",role:"cell",children:(0,s.YZ)(t,!0)})]}),r!==QF.length-1&&(0,vr.jsx)(EM,{})]},e)))})]})]})})})},nB=AN({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"}}),rB=l.forwardRef((({value:e,defaultValue:t,onChange:n,placeholder:r,spellCheck:o,textBoxRef:i,isInline:a,isMinimal:c,isDisabled:d,editableContentAriaLabel:p,editorHandle:h,autoFocus:f,saveOnEnter:m,onSave:g},v)=>{let y=l.useRef(null),[b,w]=u(e,t||"",n),x=(0,l.useCallback)((e=>{w(e.currentTarget.value||"")}),[w]),S=(0,l.useCallback)((e=>{(m&&"Enter"===e.key&&!e.shiftKey||(e.ctrlKey||e.metaKey)&&"Enter"===e.key)&&(e.preventDefault(),g())}),[m,g]);(0,l.useImperativeHandle)(v,(()=>({clear:()=>{w("")}})));let _=(0,l.useCallback)((e=>{e.currentTarget.style.height="16px",e.currentTarget.style.height=e.currentTarget.scrollHeight+"px"}),[]);(0,wr.useGranularLayoutEffect)((()=>{let e=y.current;e&&(e.style.height="16px",e.style.height=e.scrollHeight+"px")}),[c],[b]),(0,l.useImperativeHandle)(h,(()=>({setCaretPosition:e=>{y.current&&(y.current.focus(),y.current.setSelectionRange(e,e))},focus:()=>{y.current&&y.current.focus()}})));let{focusProps:C,isFocused:E,isFocusVisible:k}=(0,er.og)(),{hoverProps:z,isHovered:P}=(0,er.Mk)({}),A=(0,s.nP)({"data-focus-visible":k,"data-hovered":P,"data-focused":E});return(0,vr.jsx)("textarea",{...(0,er.v6)(C,z,A),ref:GI(y,i),className:(0,s.xW)(c?"f6jv6be f6jv6ba _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6ie _1yep5z6if _1yep5z6ig _1yep5z6eu _1yep5z6e3 _1yep5z6lc":[WF(),ZF({isInline:a}),"f6jv6ba _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6ie _1yep5z6if _1yep5z6ig _1yep5z6eu"]),autoFocus:f,onChange:x,disabled:d,onInput:_,value:b,placeholder:r,spellCheck:o,"aria-label":p,onKeyDown:S})}));rB.displayName="PlainEditor";var oB="mention",iB="mention_input",aB=l.forwardRef((({onCancel:e,editor:t,element:n,onSelectionChange:r},o)=>{let{containerRef:i,items:a,maxMentionableUsersSuggestions:c}=(0,l.useContext)(_B),u=(0,l.useContext)(vw),[d,p]=(0,l.useState)(""),{contains:h}=(0,er.U2)({sensitivity:"base"}),{formatMessage:f}=PN(),m=(0,l.useMemo)((()=>{let e=a.filter((e=>""===d||h(e.displayName,d))).map((e=>({id:e.id,label:e.displayName,data:e})));return c?(0,Cp.take)(e,c):e}),[a,c,d,h]),g=(0,l.useCallback)((e=>(0,vr.jsx)(rr.q7,{children:e.label},e.id)),[]),v=(0,l.useCallback)(((e=!1)=>{let r=Qw(t,n);r&&(Gp(t,{at:r}),e&&ex(t))}),[t,n]),y=(0,tr.k)({items:m,children:g,menuTrigger:"focus",onSelectionChange:e=>{v(!0),r?.(e)}}),b=l.useRef(null),w=l.useRef(null),x=l.useRef(null),S=l.useRef(null),_=(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])})(w);(0,er.$Z)({ref:S,onInteractOutside:()=>{y.close()}});let{inputProps:C,listBoxProps:E}=(0,er.rE)({defaultItems:m,inputRef:w,buttonRef:b,listBoxRef:x,popoverRef:S,menuTrigger:"focus","aria-label":f(cB.mention)},y);(0,l.useEffect)((()=>{w.current?.focus()}),[]);let k=(0,l.useCallback)(((t="manual",n=!1)=>{v(n),e?.(t,y.inputValue)}),[e,v,y.inputValue]),z=(0,l.useRef)(u);(0,l.useEffect)((()=>{z.current&&!u&&k("deselect"),z.current=u}),[u,k]);let P=_?.atStart??!1,A=_?.atEnd??!1,D=(0,l.useCallback)((e=>{"Backspace"===e.key&&P?k("backspace",!0):"Escape"===e.key?k("escape",!0):"ArrowLeft"===e.key&&P?k("arrowLeft",!0):"ArrowRight"===e.key&&A&&k("arrowRight",!0);let n=k_.isUndo(e)&&t.history.undos.length>0,r=k_.isRedo(e)&&t.history.redos.length>0;(n||r)&&(e.preventDefault(),t[n?"undo":"redo"](),ex(t))}),[P,A,k,t]),T=(0,l.useMemo)((()=>{if(!CSS.supports("field-sizing","content")){let e=KI(w.current),t=w.current?e?.getComputedStyle(w.current).font:void 0;return{width:t?(0,s.jT)({text:y.inputValue,font:t}).width+10:"4ch"}}}),[y.inputValue]);return(0,vr.jsxs)(NM.Provider,{value:y,children:[(0,vr.jsx)("input",{...(0,er.v6)(C,{onKeyDown:D,onBlur:()=>{k("blur",!0)},onChange:e=>{p(e.target.value)}}),style:T,className:"f6jv6bn _1yep5z63l _1yep5z63m _1yep5z63n _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6ik _1yep5z6il _1yep5z6im _1yep5z6ln _1yep5z6li _1yep5z6lg _1yep5z6hp _1yep5z6eu",ref:GI(o,w)}),(0,vr.jsx)(vO,{triggerRef:i,className:"f6jv6bi _1mdhlqv6 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6d7 _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6g1 _1yep5z6lh _1yep5z6lg _1yep5z6hs _1yep5z6lk",isNonModal:!0,ref:S,state:y,children:(0,vr.jsx)(RM,{...E,items:void 0,autoFocus:"first",ref:x,className:(0,br.UV)({width:"full"}),renderOption:EB})})]})}));aB.displayName="MentionInputContentElement";var sB=Og((({className:e,...t},n)=>{let{children:r,editor:o,element:i}=t,{items:a}=(0,l.useContext)(_B),c=(0,l.useRef)(null),[u,d]=(0,l.useState)(null);(0,l.useEffect)((()=>{let e=Qw(o,i);if(!e)return;let t=Jp(o,e);if(!t)return;let n=Rp(o,t);return d(n),()=>{n.unref()}}),[o,i]);let p=(0,l.useCallback)((()=>{let e=c.current?.getRootNode()instanceof ShadowRoot;mh(o,{unit:"offset"}),mh(o,{unit:"character",distance:1}),lM()&&e&&ex(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:oB,value:n.id,displayName:n.displayName,children:[{text:""}]};fh(o,[r,{text:" "}]),t?setTimeout((()=>{p()}),0):p()}),[o,a,p]);return(0,vr.jsxs)(hC,{as:"span","data-slate-value":i.value,contentEditable:!1,className:e,ref:n,...t,children:[(0,vr.jsx)(aB,{onCancel:(e,t)=>{var n,r,i;"backspace"!==e&&(n=o,r="@"+t,i={at:u?.current??void 0},Ep.gB.insertText(n,r,i)),("arrowLeft"===e||"arrowRight"===e)&&mh(o,{distance:1,reverse:"arrowLeft"===e})},onSelectionChange:h,ref:c,element:i,editor:o}),r]})}));sB.displayName="MentionInputElement";var lB=Og((({className:e,onClick:t,children:n,...r},o)=>{let i=((e="element")=>sS(e).get.element()||(console.warn("The `useElement(pluginKey)` hook must be used inside the node component's context"),{}))();return(0,vr.jsxs)(hC,{as:"span",className:e,contentEditable:!1,"data-user-id":i.value,onClick:Th(t,i),ref:o,...r,children:["@",i.displayName,n]})}));lB.displayName="MentionElement";var cB=AN({mention:{defaultMessage:"Mention",id:"mention"}});function uB(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,Cp.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(uB).join("");switch(e.type){case _C:return`<p>${t}</p>`;case GC:return`<a href="${e.url}">${t}</a>`;case oB: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 dB(e){e.startsWith("<p>")||(e=`<p>${e}</p>`);let t=(new DOMParser).parseFromString(QE().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 pB(t.body)}function pB(e,t){if(e.nodeType===Node.TEXT_NODE)return(0,am.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,Cp.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=>pB(e,n)));switch(0===r.length&&r.push((0,am.Y)("text",n,"")),e.nodeName.toUpperCase()){case"BR":return(0,am.Y)("text",t,"\n");case"SPAN":{let t=e.dataset.userId;return t?(0,am.Y)("element",{type:oB,value:t,displayName:e.textContent},{text:""}):r}case"P":return(0,am.Y)("element",{type:_C},r);case"A":return(0,am.Y)("element",{type:GC,url:e.getAttribute("href")},r);default:return r}}function hB(e){let t={children:[{text:" "}],type:iB};e.insertNode(t)}var fB=vS({isElement:!0,isInline:!0,isMarkableVoid:!0,isVoid:!0,key:oB,options:{trigger:"@",triggerPreviousCharPattern:/^$|^[\s"']$/},plugins:[{isElement:!0,isInline:!0,isVoid:!0,key:iB}],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=Qp(e,nh(e,e.selection,Jp(e,e.selection)));n?.test(a)?hB(e):o(i)},e}}),mB=pS([CC({component:function({className:e,children:t,...n}){return(0,vr.jsx)(hC,{asChild:!0,className:e,...n,children:(0,vr.jsx)("p",{children:t})})}}),Zg({component:JE(fC,{as:"b"})}),Qg({component:JE(fC,{as:"i"})}),ov({component:JE(fC,{as:"u"})}),yC(),gC(),YC({component:function({className:e,children:t,...n}){return(0,vr.jsx)(hC,{asChild:!0,className:e,...n,children:(0,vr.jsx)("a",{className:jO({size:"sm"}),children:t})})}}),fB({component:lB})],{components:{[iB]:sB}}),gB=({isDisabled:e})=>{let{formatMessage:t}=PN(),n=$_();return(0,vr.jsxs)(VM,{type:"dialog",children:[(0,vr.jsx)(qM,{children:(0,vr.jsx)(WN,{icon:zr.qY,size:"sm",isDisabled:e,"aria-label":t(yB.addLink),className:UF,preventFocusOnPress:!0})}),(0,vr.jsx)(yO,{className:(0,br.UV)({boxShadow:"medium"}),placement:"top end",children:({close:e})=>(0,vr.jsx)(hO,{size:"content",style:{minWidth:240},children:(0,vr.jsx)(vB,{close:()=>{e(),setTimeout((()=>{ex(n,n.selection)}),0)}})})})]})},vB=({close:e})=>{let t=$_(),{formatMessage:n}=PN(),r=H_((e=>function(e){let t=yh(e,{match:{type:gS(e,GC)}}),[n]=t||[{url:""}];return n?.url}(e)),[]),[o,i]=l.useState(r?"show":"add"),[a,c]=l.useState(r||""),u=(0,vr.jsx)(zM,{padding:"lg",children:(0,vr.jsx)(GO,{label:n(yB.link),value:a,autoFocus:!0,onChange:c,placeholder:"https://yourdomain.com"})});return(0,vr.jsxs)(vr.Fragment,{children:["add"===o&&(0,vr.jsxs)(vr.Fragment,{children:[u,(0,vr.jsx)(zM,{display:"flex",justifyContent:"flex-end",padding:"lg",className:"f6jv6bm",children:(0,vr.jsx)(eN,{isDisabled:!(0,s.gU)(a,!0),label:n(yB.addLink),size:"sm",onPress:()=>{qC(t,{url:a,skipValidation:!0}),e?.()},preventFocusOnPress:!0})})]}),"show"===o&&(0,vr.jsxs)(vr.Fragment,{children:[(0,vr.jsx)(zM,{padding:"lg",children:(0,vr.jsx)(QN,{type:"subtitle",size:"sm",children:r})}),(0,vr.jsxs)(zM,{display:"flex",justifyContent:"flex-end",padding:"lg",gap:"lg",borderColor:"border.subtle",borderWidth:1,borderStyle:"solid",children:[(0,vr.jsx)(eN,{label:n(yB.editLink),size:"sm",variant:"secondary",onPress:()=>{i("edit")},style:{flex:1,justifyContent:"center"}}),(0,vr.jsx)(eN,{label:n(yB.removeLink),size:"sm",onPress:()=>{$C(t),e?.()},preventFocusOnPress:!0,style:{flex:1,justifyContent:"center"}})]})]}),"edit"===o&&(0,vr.jsxs)(vr.Fragment,{children:[u,(0,vr.jsxs)(zM,{display:"flex",justifyContent:"flex-end",padding:"lg",gap:"lg",borderColor:"border.subtle",borderWidth:1,borderStyle:"solid",children:[(0,vr.jsx)(eN,{label:n(yB.cancel),size:"sm",variant:"secondary",onPress:()=>{i("show"),e?.()}}),(0,vr.jsx)(eN,{label:n(yB.save),size:"sm",onPress:()=>{qC(t,{url:a,skipValidation:!0}),e?.()}})]})]})]})};var yB=AN({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"}}),bB=(Fr("#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"}]),wB=({nodeType:e,icon:t,ariaLabel:n,isDisabled:r})=>{let o=H_((t=>ef(t,e)),[]),i=$_();return(0,vr.jsx)($F,{variant:"tertiary",isSelected:o,size:"sm",icon:t,"aria-label":n,isDisabled:r,onPress:()=>{af(i,{key:e})},preventFocusOnPress:!0})},xB=({nodeType:e,"aria-label":t,isDisabled:n})=>{let{updateColor:r,clearColor:o,color:i}=SC({customColors:[],colors:[],nodeType:e}),a=(0,l.useCallback)((({ref:r,triggerProps:o})=>(0,vr.jsx)(WN,{icon:"color"===e?yr.N$i:yr.VUW,"aria-label":t,size:"md",variant:"popover",isDisabled:n,className:UF,preventFocusOnPress:!0,...o,ref:r})),[e,t,n]),s=(0,l.useCallback)((e=>{e?r(e.toString("rgba")):o()}),[o,r]);return(0,vr.jsx)(ZR,{presets:bB,allowRemoval:!0,pickerMode:"lazy",placement:"top end",colorLabel:!1,renderTriggerButton:a,value:i||"#000000",onChange:s,isDisabled:n})},SB=[{type:_C,children:[{text:""}]}],_B=l.createContext({items:[],containerRef:{current:null},maxMentionableUsersSuggestions:10}),CB=l.forwardRef((({value:e,defaultValue:t,onChange:n,style:r,spellCheck:o,placeholder:i,isInline:a,isDisabled:c,editableContentAriaLabel:d,containerRef:p,onHelpDialogOpenRequest:h,mentionableUsers:f,editorHandle:m,maxMentionableUsersSuggestions:g,autoFocus:v,editorRef:y,saveOnEnter:b,onSave:w},x)=>{let S=(0,l.useRef)(null),_=(0,er.Bi)(),{formatMessage:C}=PN(),E=(0,l.useRef)(null),k=E.current,z=(0,l.useRef)(null),P=(0,l.useMemo)((()=>k?.getRootNode()instanceof ShadowRoot),[k]),[A,D]=u(e?dB(e):void 0,dB(t||"<p></p>"),(e=>{n&&n(uB(e))})),{keyboardProps:T}=(0,er.de)({onKeyDown:e=>{(b&&"Enter"===e.key&&!e.shiftKey||(e.ctrlKey||e.metaKey)&&"Enter"===e.key)&&(e.preventDefault(),w()),e.altKey&&"F10"===e.key?(e.preventDefault(),S.current&&S.current.querySelector("button")?.focus()):e.continuePropagation(),lM()&&P&&z.current&&ex(z.current)}});(0,l.useEffect)((()=>{c&&z.current&&dh(z.current)}),[c]),(0,l.useImperativeHandle)(x,(()=>({startMention:()=>{z.current&&!E.current?.querySelector("input[role='combobox']")&&hB(z.current)}}))),(0,l.useImperativeHandle)(m,(()=>({setCaretPosition:e=>{z.current&&(ex(z.current),mh(z.current,{distance:e,unit:"character"}))},focus:()=>{z.current&&ex(z.current)}})));let I=(0,l.useMemo)((()=>({items:f||[],containerRef:p,maxMentionableUsersSuggestions:g})),[f,p,g]);return(0,vr.jsx)(_B.Provider,{value:I,children:(0,vr.jsxs)(Q_,{initialValue:A||SB,plugins:mB,editorRef:GI(z,y||null),onChange:e=>{D(e)},children:[(0,vr.jsxs)(jF,{className:JF,"aria-controls":_,ref:S,children:[(0,vr.jsxs)(zM,{display:"flex",flexDirection:"row",role:"group",gap:"xs",paddingX:"sm",children:[(0,vr.jsx)(wB,{nodeType:Yg,icon:zr.$o,ariaLabel:C(kB.bold),isDisabled:c}),(0,vr.jsx)(wB,{nodeType:Xg,icon:zr.yO,ariaLabel:C(kB.italic),isDisabled:c}),(0,vr.jsx)(wB,{nodeType:rv,icon:zr.qp,ariaLabel:C(kB.underline),isDisabled:c})]}),(0,vr.jsx)(EM,{orientation:"vertical",className:XF}),(0,vr.jsx)(xB,{nodeType:vC,"aria-label":C(kB.fontColor),isDisabled:c}),(0,vr.jsx)(EM,{orientation:"vertical",className:XF}),(0,vr.jsx)(xB,{nodeType:mC,"aria-label":C(kB.backgroundColor),isDisabled:c}),(0,vr.jsx)(EM,{orientation:"vertical",className:XF}),(0,vr.jsx)(gB,{isDisabled:c}),(0,vr.jsx)(EM,{orientation:"vertical",className:XF}),(0,vr.jsx)(WN,{className:UF,icon:yr.JY8,size:"sm","aria-label":C(kB.help),onPress:h})]}),(0,vr.jsx)(EM,{variant:"secondary"}),(0,vr.jsx)("div",{...T,ref:E,children:(0,vr.jsx)(nC,{id:_,disabled:c,readOnly:c,style:r,placeholder:i,autoFocus:v,spellCheck:o,"aria-label":d,className:(0,s.xW)(WF({isDisabled:c}),ZF({isInline:a})),renderPlaceholder:({attributes:e,children:t})=>(0,vr.jsx)("span",{...e,className:(0,br.UV)({paddingY:"lg"}),children:t})})})]})})}));CB.displayName="RichEditor";var EB=({key:e,value:t},{isDisabled:n,optionProps:r,isFocused:o,_state:i},a)=>{let{hoverProps:s}=(0,er.Mk)({isDisabled:n}),{label:l,data:c}=t;return(0,vr.jsxs)(vr.Fragment,{children:[(0,vr.jsxs)("li",{...(0,er.v6)(r,s),className:GF({isDisabled:n,isHovered:o}),"data-active":o,ref:a,children:[(0,vr.jsx)(Kj,{name:l,...c?.avatar}),(0,vr.jsxs)(zM,{display:"flex",flexDirection:"column",children:[(0,vr.jsx)(QN,{type:"subtitle",size:"sm",children:l}),(0,vr.jsx)(QN,{type:"helper",size:"sm",children:c?.description})]})]}),e===i.collection.getLastKey()?null:(0,vr.jsx)(EM,{})]})},kB=AN({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"}}),zB=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=zr.m$,submitButtonAriaLabel:d,cancelButtonAriaLabel:p,"aria-label":h,"aria-describedby":f,"aria-labelledby":m,"aria-details":g,editableContentAriaLabel:v="Editing Area",footerButtons:y,clearOnCancel:b,clearOnSave:w,...x},S)=>{let _=(0,l.useRef)(null),{formatMessage:C}=PN(),E=(0,l.useRef)(null),k=(0,l.useRef)(null),z=(0,l.useRef)(null),P=!o&&"minimal"===x.variant,A=(0,l.useRef)(null),[D,T]=l.useState(x.value||x.defaultValue),I=x.isDisabled||x.isSaveDisabled||!(0,s.AY)(D||""),{fieldProps:M}=(0,er.MW)({"aria-label":h,"aria-labelledby":m,"aria-describedby":f,"aria-details":g,labelElementType:"div"});P&&!x.avatarName&&console.warn("Editor: When using the minimal `variant` and `enableRichText` is `false`, you should provide an `avatarName`.");let N=(0,l.useCallback)((()=>{T(""),o?_.current?.reset():k.current?.clear()}),[o]),O=(0,l.useCallback)((()=>{I||(a?.(o?uB(_.current?.children):E.current.value),w&&N())}),[N,w,o,a,I]),j=(0,vr.jsx)(WN,{variant:"ghost","aria-label":d||C(PB.save),icon:u,isDisabled:I,size:"md",excludeFromTabOrder:P,className:P?"_1yep5z6jn _1yep5z6jo _1yep5z6jp":void 0,onPress:O,preventFocusOnPress:!0}),[R,F]=l.useState(!1),{keyboardProps:B}=(0,er.de)({onKeyDown:e=>{(e.metaKey||e.ctrlKey)&&e.shiftKey&&"h"===e.key&&(e.preventDefault(),F(!0))}}),L=(0,l.useCallback)((e=>{T(e),x.onChange?.(e)}),[x]);return(0,vr.jsxs)("div",{...(0,er.v6)(M,o?B:{}),role:"application",ref:GI(z,S),style:t,"data-block-id":n,"data-block-class":r,className:(0,s.xW)(qF({isInline:c,isMinimal:P}),"BaselineUI-Editor",e),"aria-disabled":x.isDisabled,children:[P?(0,vr.jsxs)(vr.Fragment,{children:[c?(0,vr.jsx)(Kj,{className:"_1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678 _1yep5z6jh _1yep5z6ji _1yep5z6jj",name:x.avatarName||""}):null,(0,vr.jsxs)("div",{className:YF({isInline:c}),children:[(0,vr.jsx)(rB,{isMinimal:P,textBoxRef:E,isInline:c,editableContentAriaLabel:v,...x,onChange:L,onSave:O}),j]})]}):(0,vr.jsxs)(vr.Fragment,{children:[o?(0,vr.jsx)(CB,{containerRef:z,ref:A,editorRef:_,isInline:c,editableContentAriaLabel:v,onHelpDialogOpenRequest:()=>{F(!0)},...x,onChange:L,onSave:O}):(0,vr.jsxs)(vr.Fragment,{children:[!c&&(0,vr.jsx)(EM,{variant:"secondary"}),(0,vr.jsx)(rB,{onCancel:i,textBoxRef:E,ref:k,isInline:c,editableContentAriaLabel:v,...x,onChange:e=>{T(e),x.onChange?.(e)},onSave:O})]}),(0,vr.jsx)(EM,{variant:"secondary"}),(0,vr.jsxs)("div",{className:(0,s.xW)(JF,(0,br.UV)({justifyContent:"space-between"})),children:[(0,vr.jsxs)(zM,{paddingX:"sm",gap:"sm",display:"flex",children:[o&&x.mentionableUsers?(0,vr.jsx)(WN,{icon:zr.Xx,size:"sm","aria-label":C(PB.mention),onPress:()=>A.current?.startMention(),preventFocusOnPress:!0}):null,y?.map((({type:e,props:t},n)=>"action"===e?(0,vr.jsx)(WN,{...t,size:"sm",isDisabled:x.isDisabled||t.isDisabled},n):(0,vr.jsx)($F,{...t,size:"sm",variant:"tertiary",isDisabled:x.isDisabled||t.isDisabled},n)))]}),(0,vr.jsxs)(zM,{children:[!!i&&(0,vr.jsx)(WN,{variant:"secondary",icon:zr.Op,isDisabled:x.isDisabled,size:"md",onPress:()=>{i(),b&&N()},"aria-label":p||C(PB.cancel)}),j]})]})]}),(0,vr.jsx)(tB,{isOpen:R,onClose:()=>{F(!1)}})]})})));zB.displayName="Editor";var PB=AN({cancel:{defaultMessage:"Cancel",id:"cancel"},save:{defaultMessage:"Save",id:"save"},mention:{defaultMessage:"Mention",id:"mention"}}),AB=l.forwardRef((({className:e,style:t,"data-block-id":n,"data-block-class":r,isMounted:o,children:i,transitions:a,elementType:s="div",...l},c)=>{let u=Tn(o,a),d=Qn[s];return u(((o,a)=>a&&(0,vr.jsx)(d,{className:e,"data-block-id":n,"data-block-class":r,style:{...t,...o},...l,ref:c,children:i})))}));AB.displayName="Transition";var DB=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),h=(0,Ar.lb)(),[f,m]=l.useState(!1),g=(0,l.useCallback)((()=>{let e=r?.current||VI(p.current).body;return"column-reverse"===KI(e).getComputedStyle(e).flexDirection?e.scrollTop+2>=0:e.scrollTop+e.clientHeight+2>=e.scrollHeight}),[r]),[v,y]=l.useState(g),b=wN(),{buttonProps:w,isPressed:x}=(0,er.sL)({onPress:()=>{let e=r?.current||VI(p.current).body;e.scrollTo({top:e.scrollHeight,behavior:a?"smooth":"auto"})}},p),{focusProps:S,isFocused:_,isFocusVisible:C}=(0,er.og)(),{hoverProps:E,isHovered:k}=(0,er.Mk)({}),z=(0,s.nP)({"data-block-id":c,"data-block-class":u,"data-pressed":x,"data-focus-visible":C,"data-hovered":k,"data-focused":_});return(0,l.useEffect)((()=>{y(g())}),[g]),(0,l.useEffect)((()=>{let e=r?.current||VI(p.current).body,t="onscrollend"in KI(e),n=()=>{setTimeout((()=>{m(!1),y(g())}),i)},o=()=>{m(!0),t||n()};return e.addEventListener("scroll",o),e.addEventListener("scrollend",n),()=>{e.removeEventListener("scroll",o),e.removeEventListener("scrollend",n)}}),[r,i,g]),(0,vr.jsxs)(AB,{isMounted:!(n&&"keyboard"===h||f||v),elementType:"button",transitions:{from:{opacity:0,transform:"translateX(-50%) translateY(10px)"},enter:{opacity:1,transform:"translateX(-50%) translateY(0)"},leave:{opacity:0,transform:"translateX(-50%) translateY(10px)"},immediate:b},...(0,er.v6)(w,S,E,z),className:(0,s.xW)("_8kqf970 _1yep5z6pd _1yep5z6pe _1yep5z6pf _1yep5z6149 _1yep5z614a _1yep5z614b _1yep5z614i _1yep5z614j _1yep5z614k _1yep5z6150 _1yep5z6151 _1yep5z6152 _1yep5z6yy _1yep5z6v7 _1yep5z6v8 _1yep5z6v9 _1yep5z6176",wj({isFocusVisible:C,variant:"high-contrast",isHovered:k}),Sj({variant:"high-contrast"}),"BaselineUI-ScrollControlButton",e),style:t,ref:GI(d,p),children:[(0,vr.jsx)(Sr.F5,{size:16,className:bj({variant:"high-contrast"})}),o]})}));DB.displayName="ScrollControlButton";var TB="_1yep5z6jt _1yep5z6ju _1yep5z6jv _1yep5z6k2 _1yep5z6k3 _1yep5z6k4",IB=wM({defaultClassName:"_1v0p2z10 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6it _1yep5z6iu _1yep5z6iv _1yep5z69f _1yep5z69g _1yep5z69h",variantClassNames:{hasTitleAndIcon:{true:"_1yep5z6lv _1yep5z6lw _1yep5z6lx _1yep5z6od _1yep5z6oe _1yep5z6of"},hasNoCloseBtn:{true:"_1yep5z6m1 _1yep5z6m2 _1yep5z6m3 _1yep5z6od _1yep5z6oe _1yep5z6of _1yep5z6pj _1yep5z6pk _1yep5z6pl _1yep5z6n7 _1yep5z6n8 _1yep5z6n9"}},defaultVariants:{},compoundVariants:[[{hasTitleAndIcon:!0,hasNoCloseBtn:!0},"_1yep5z61h5 _1yep5z61h6 _1yep5z61h7"]]}),MB=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:h,autoFocusButton:f,isPrimaryActionDisabled:m},g)=>{let v=(0,er.Bi)(),{formatMessage:y}=PN(),b=i&&(0,vr.jsx)(QN,{id:v,type:"title",size:"sm",elementType:"h3",children:i});return(0,vr.jsxs)(hO,{className:e,style:t,"data-block-id":n,"data-block-class":r,size:"sm",variant:"primary",role:"alertdialog",ref:g,"aria-labelledby":v,children:[(0,vr.jsxs)("div",{className:IB({hasTitleAndIcon:!(!c||!i),hasNoCloseBtn:!d}),children:[(0,vr.jsxs)(zM,{display:"flex",justifyContent:"space-between",alignItems:"center",flexDirection:"row",children:[c?(0,vr.jsx)(c,{style:{color:u},size:24}):null,!c&&b,d?(0,vr.jsx)(WN,{icon:zr.uv,variant:"secondary",size:"md","aria-label":y(NB.close),onPress:h}):null]}),c?b:null]}),o?(0,vr.jsx)(zM,{elementType:"section",className:"_1v0p2z10",paddingX:"lg",paddingBottom:"lg",typography:"body.sm.regular",color:"text.primary",children:o}):null,l?(0,vr.jsx)(zM,{paddingX:"lg",paddingBottom:"lg",children:(0,vr.jsx)(GO,{...l})}):null,s||a?(0,vr.jsxs)(vr.Fragment,{children:[(0,vr.jsx)(EM,{}),(0,vr.jsxs)(zM,{padding:"lg",display:"flex",gap:"xl",children:[s?(0,vr.jsx)(eN,{variant:"secondary",className:TB,label:s,onPress:h,autoFocus:"cancel"===f}):null,a?(0,vr.jsx)(eN,{className:TB,label:a,onPress:p,autoFocus:"primary"===f,isDisabled:m}):null]})]}):null]})}));MB.displayName="AlertDialog";var NB=AN({close:{id:"close",defaultMessage:"Close",description:"Close button label"}}),OB=oA(),jB=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=""),OB.render(e)}),[n]);return(0,vr.jsx)("div",{className:(0,s.xW)("_1yep5z6e3 _1yep5z6eu _1yep5z6in _1yep5z6io _1yep5z6ip _1yep5z69i _1yep5z69j _1yep5z69k","_1t55bp70",{_1t55bp71:i},"BaselineUI-Markdown",e),"data-block-id":r,"data-block-class":o,style:t,ref:a,dangerouslySetInnerHTML:{__html:c}})}));function RB(e){let{formatMessage:t,locale:n}=PN(),[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),aA(t(FB.playing),"polite")):(e.current.pause(),o(!1),aA(t(FB.paused),"polite")))})()}),[t,e]),h=(0,l.useCallback)((t=>{e.current&&(e.current.currentTime=t*e.current.duration/100,aA(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?BB(e.current?.currentTime):"00:00",formattedDuration:s?BB(s):"00:00",setIsSliderDragging:d}}jB.displayName="Markdown";var FB=AN({playing:{id:"playing",defaultMessage:"Playing"},paused:{id:"paused",defaultMessage:"Paused"}});function BB(e){return[Math.floor(e%3600/60),Math.floor(e%60)].map((e=>e.toString().padStart(2,"0"))).join(":")}var LB=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:h,togglePlay:f,seek:m,formattedDuration:g,formattedCurrentTime:v,setProgress:y,setIsSliderDragging:b}=RB(u),{formatMessage:w}=PN(),x=(0,s.nP)({"data-block-id":o,"data-block-class":i,"data-state":d?"playing":"paused","data-loaded":h>0});return(0,vr.jsxs)("div",{...x,...a,className:(0,s.xW)("_1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z69o _1yep5z69p _1yep5z69q","BaselineUI-AudioPlayer",e),role:"group",style:t,ref:c,children:[(0,vr.jsx)(er.s6,{children:(0,vr.jsx)("audio",{ref:u,children:r.map((({url:e,type:t})=>(0,vr.jsx)("source",{src:e,type:t},e)))})}),(0,vr.jsx)($F,{icon:d?yr.E$n:yr.udU,variant:"toolbar",isSelected:d,size:n,"aria-label":w(d?VB.pause:VB.play),style:{borderRadius:"50%"},onPress:f}),(0,vr.jsxs)("div",{className:"rta2n91 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z69o _1yep5z69p _1yep5z69q _1yep5z6zq _1yep5z6va _1yep5z6vb _1yep5z6vc _1yep5z6174 _1yep5z610n",children:[(0,vr.jsx)("span",{"aria-hidden":!0,children:v}),(0,vr.jsx)(ZN,{"aria-label":w(VB.audioTimeline),value:p,minValue:0,maxValue:100,className:"rta2n90",onChange:e=>{y(e),b(!0)},onChangeEnd:e=>{m(e),b(!1)}}),(0,vr.jsx)("span",{"aria-hidden":!0,children:g})]})]})}));LB.displayName="AudioPlayer";var VB=AN({play:{id:"play",defaultMessage:"Play"},pause:{id:"pause",defaultMessage:"Pause"},audioTimeline:{id:"audioTimeline",defaultMessage:"Audio timeline"}}),KB=wM({defaultClassName:"_1w920rn2 _1yep5z6d6 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6i2 _1yep5z6i3 _1yep5z6i4",variantClassNames:{isFocusVisible:{true:"_1yep5z6li _1yep5z6lg _1yep5z6hp"},isSelected:{true:"_1yep5z6li _1yep5z6lg _1yep5z6hp"},isLoading:{true:"_1yep5z615u _1yep5z615v _1yep5z615w"}},defaultVariants:{},compoundVariants:[[{isFocusVisible:!0,isSelected:!0},"_1w920rn6 _1yep5z6li _1yep5z6lg _1yep5z6hp"]]}),$B=wM({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 _1yep5z6li _1yep5z6lg _1yep5z6hp"},isSelected:{true:"_1w920rn9"}},defaultVariants:{},compoundVariants:[[{isFocusVisible:!0,isSelected:!0},"_1w920rna _1yep5z61t1 _1yep5z61t0 _1yep5z61pa"]]}),HB=({items:e,ulRef:t})=>{let{length:n}=e,r=l.useRef(null);return(0,l.useLayoutEffect)((()=>{if(!r.current)return;let t=r.current.closest(".BaselineUI-ImageGallery")?.querySelector(`[data-image-key='${e?.at(-1)?.key}']`)?.cloneNode(!0);(0,s.V1)(t,"Node is not defined."),r.current?.prepend(t)}),[e,t]),(0,vr.jsx)("div",{className:KB(),ref:r,children:(0,vr.jsx)(zM,{backgroundColor:"background.secondary.medium",borderRadius:"full",typography:"label.md.medium",color:"text.primary",position:"absolute",paddingX:"md",className:"_1w920rnc",children:n})})};function UB(e){return e.map((e=>({id:e.id,label:e.label,data:{src:e.src,alt:e.alt}})))}function qB(e){return e.map((e=>({id:e.id,label:e.label,src:e.data?.src,alt:e.data?.alt})))}var WB=({fit:e,item:t,deleteElement:n})=>{let{formatMessage:r}=PN(),{imgProps:o,isLoading:i,isLoaded:a}=bN({src:t.data?.src,alt:t.data?.alt??""}),s=Tn(a,{from:{opacity:0},enter:{opacity:1},leave:{opacity:0}});return i?(0,vr.jsx)(nj,{"aria-label":r(XB.loading)}):s(((t,r)=>r&&(0,vr.jsx)(Qn.div,{role:"img","aria-label":o.alt,style:{...t,backgroundImage:`url(${o.src})`,backgroundSize:e},className:"_1w920rnb _1yep5z6ld",children:n})))},GB=({item:{value:e},options:{optionProps:t,isFocusVisible:n,isSelected:r},liRef:o,fit:i="contain",onDelete:a,className:c,imageClassName:u,imageLabelClassName:d,imageDimensions:p,style:h,renderImage:f=((e,{deleteElement:t})=>(0,vr.jsx)(WB,{item:e,deleteElement:t,fit:i}))})=>{let m=(0,er.Bi)(),{formatMessage:g}=PN();(0,s.V1)(e&&dM(e),"Expected value to be a list option");let v=a?(0,vr.jsx)("div",{className:"_1w920rnd _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6g1 _1yep5z6i5 _1yep5z6i6 _1yep5z6i7",children:(0,vr.jsx)(WN,{"aria-label":g(XB.delete),size:"xs",icon:Pr.uv,onPress:()=>{a(e.id)},UNSAFE_NON_INTERACTIVE:!0})}):null,y=(0,l.useCallback)((t=>{let n={},o="function"==typeof t?t(qB([e])[0],{isSelected:r}):t;return o&&(n.width="string"==typeof o.width?ZB[o.width]:o.width,n.aspectRatio="height"in o?`${n.width} / ${o.height}`:o?.aspectRatio?.toString()),n}),[r,e]);return(0,vr.jsxs)("li",{...t,ref:o,className:(0,s.xW)("_1w920rn1 _1yep5z6ik _1yep5z6il _1yep5z6im _1yep5z6it _1yep5z6iu _1yep5z6iv _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z69i _1yep5z69j _1yep5z69k",c),"aria-labelledby":m,style:h,children:[(0,vr.jsx)(zM,{display:"flex",flexDirection:"column",flex:1,justifyContent:"center",alignItems:"center",children:(0,vr.jsx)("div",{className:(0,s.xW)(KB({isFocusVisible:n,isSelected:r,isLoading:!0}),u),style:y(p),"data-image-key":e.id,children:f(e,{deleteElement:v??void 0,onDelete:a})})}),(0,vr.jsx)("span",{id:m,className:(0,s.xW)($B({isFocusVisible:n,isSelected:r}),d),children:e.label})]})},YB={width:0,display:"block"},ZB=(e=>(e[e.sm=102]="sm",e[e.md=170]="md",e))(ZB||{}),JB=l.forwardRef((({className:e,style:t,fit:n="cover",onReorder:r,"data-block-id":o,"data-block-class":i,onDelete:a,imageWidth:c="sm",aspectRatio:d=3/4,items:p,defaultItems:h=[],onKeyDown:f,imageContainerClassName:m,imageClassName:g,labelClassName:v,onListChange:y,renderImage:b,imageDimensions:w={width:c,aspectRatio:d},imageContainerStyle:x,...S},_)=>{let C=l.useRef(null),[E,k]=(0,l.useState)([]),{formatMessage:z}=PN();(0,l.useEffect)((()=>{(d||c)&&console.warn("ImageGallery: aspectRatio and imageWidth are deprecated. Use imageDimensions instead.")}),[c,d]);let[P,A]=u(S.selectedKeys,S.defaultSelectedKeys??[],S.onSelectionChange),[D,T]=u(p?UB(p):void 0,UB(h),y?e=>{y?.(qB(e))}:void 0),I=(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.findIndex((e=>e.id===t)),o=[...n].map((t=>e.findIndex((e=>e.id===t)))),i=[...e];for(let e of o){let[t]=i.splice(e,1);i.splice(r,0,t)}return i}(D,t,n);T(e)}else if("after"===e.target.dropPosition){let e=function(e,t,n){let r=e.findIndex((e=>e.id===t)),o=[...n].map((t=>e.findIndex((e=>e.id===t)))),i=[...e],a=0;for(let e of o){let[t]=i.splice(e-a,1);i.splice(r,0,t),a++}return i}(D,t,n);T(e)}r?.(e)}),[D,r,T]),M=(0,l.useCallback)((()=>{a&&E.length&&(T(D.filter((e=>!E.includes(e.id)))),a(new Set(E)),k([]))}),[E,D,a,T]),N=(0,l.useCallback)(((e,t,r)=>(0,vr.jsx)(GB,{item:e,options:t,liRef:r,fit:n,onDelete:a?e=>{k([e])}:void 0,renderImage:b,className:m,imageClassName:g,imageLabelClassName:v,imageDimensions:w,style:x})),[n,a,b,m,g,v,w,x]),{keyboardProps:O}=(0,er.de)({onKeyDown(e){if(f?.(e),"Backspace"===e.key||"Delete"===e.key){if(!a)return;if([...P].length)k([...P]);else{let t=e.target.dataset.key;k([t])}}}});return(0,vr.jsxs)("div",{...O,ref:_,style:t,className:(0,s.xW)("BaselineUI-ImageGallery",e),"data-block-id":o,"data-block-class":i,children:[(0,vr.jsx)(RM,{...S,selectedKeys:P,items:D,onReorder:I,layout:"grid",orientation:"vertical",className:"_1w920rn0 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z6l3",ref:C,dropIndicatorStyle:YB,renderOption:N,renderDragPreview:e=>(0,vr.jsx)(HB,{items:e,ulRef:C}),onSelectionChange:A,getItems:e=>[...e].map((e=>{let t=function(e,t){return e.find((e=>e.id===t))}(D,e);return{src:t?.src||"",alt:t?.alt||"",key:e}}))}),(0,vr.jsx)(iO,{isOpen:!![...E].length,onOpenChange:e=>{e||k([])},children:(0,vr.jsx)(uO,{isDismissable:!0,children:(0,vr.jsx)(MB,{showCloseButton:!1,title:"Are you sure you want to delete this item?",primaryActionLabel:z(XB.delete),cancelLabel:z(XB.cancel),onCancel:()=>{k([])},onPrimaryAction:M,autoFocusButton:"cancel"})})})]})}));JB.displayName="ImageGallery";var XB=AN({delete:{id:"delete",defaultMessage:"Delete"},cancel:{id:"cancel",defaultMessage:"Cancel"},loading:{id:"loading",defaultMessage:"Loading"}}),QB=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:h,isSelected:f,defaultSelected:m,onButtonSelectionChange:g,moreAriaLabel:v,optionStyle:y,optionClassName:b,triggerClassName:w,triggerStyle:x,tooltipProps:S,..._},C)=>{let{formatMessage:E}=PN(),k=hM(),z=(0,ur.n)({items:n,..._,defaultSelectedKey:_.defaultSelectedKey||n?.[0]?.id,children:k,validationState:"error"===_.validationState?"invalid":"valid"}),[P,A]=u(f,!!m,(e=>{g?.({isSelected:e,selectedKey:z.selectedKey})})),{hoverProps:D,isHovered:T}=(0,er.Mk)({isDisabled:c}),I=(0,l.useMemo)((()=>{let e=z.collection.getItem(z.selectedKey),t=e?.textValue||e?.["aria-label"],n=e?.value,r=n?.icon,o={size:a,isSelected:P,onPress:e=>{A(!P),h?.(e)},isDisabled:c,excludeFromTabOrder:p,className:"function"==typeof b?b(n,{isButton:!0,isSelected:P}):b,style:"function"==typeof y?y(n,{isButton:!0,isSelected:P}):y};return i&&r?(0,vr.jsx)(HN,{variant:"inverse",size:"sm",includeArrow:!1,text:t,placement:"bottom start",offset:4,..."function"==typeof S?S("button"):S,children:(0,vr.jsx)($F,{icon:r,"aria-label":t,variant:"toolbar",...o})}):(0,vr.jsx)(aj,{iconStart:r,label:t,variant:"toolbar",...o})}),[p,i,P,c,h,b,y,A,a,z.collection,z.selectedKey,S]),M=_["aria-label"],N=(0,l.useCallback)((({buttonProps:e,ref:t})=>{delete e["aria-labelledby"];let n=v||`${E(eL.more)} ${M}`;return(0,vr.jsx)(HN,{variant:"inverse",size:"sm",includeArrow:!1,text:n,placement:"bottom start",offset:4,...S,children:(0,vr.jsx)(Ar.YI,{...e,children:(0,vr.jsx)(WN,{"aria-label":n,ref:t,icon:xr.bD,variant:"toolbar",size:a,className:({isFocusVisible:e})=>(0,s.xW)(rj({isSelected:P,isFocusVisible:e}),"_1sexph01 _1yep5z617n _1yep5z617o _1yep5z617p _1yep5z619z _1yep5z61a0 _1yep5z61a1 _1yep5z61b5 _1yep5z61b6 _1yep5z61b7 _1yep5z618t _1yep5z618u _1yep5z618v _1yep5z61rj _1yep5z61rk _1yep5z61rl",w),style:x,isDisabled:c,excludeFromTabOrder:p})})})}),[M,p,E,P,c,v,a,S,w,x]),O=(0,s.nP)({"data-block-id":r,"data-block-class":o,"data-hovered":T,"data-selected":P,"data-disabled":c,"data-expanded":z.isOpen}),j=cM(C),R=(0,l.useMemo)((()=>({state:z,popoverAnchorRef:j})),[z,j]),F=(0,l.useCallback)((e=>"function"==typeof b?b(e,{isButton:!1,isSelected:z.selectionManager.isSelected(e.id)}):b),[b,z.selectionManager]),B=(0,l.useCallback)((e=>"function"==typeof y?y(e,{isButton:!1,isSelected:z.selectionManager.isSelected(e.id)}):y),[y,z.selectionManager]);return(0,vr.jsx)(Oj.Provider,{value:R,children:(0,vr.jsxs)(zM,{...D,role:"group",display:"inline-flex",flexDirection:"row",alignItems:"center",className:(0,s.xW)("_1sexph00","BaselineUI-ButtonSelect",e),"aria-label":_["aria-label"],"aria-labelledby":_["aria-labelledby"],"aria-describedby":_["aria-describedby"],"aria-details":_["aria-details"],style:t,ref:j,...O,children:[I,(0,vr.jsx)(Fj,{isDisabled:c,showSelectedIcon:d,placement:"bottom start",items:n,..._,style:{width:20},optionClassName:F,optionStyle:B,variant:"ghost",renderTrigger:N})]})})}));QB.displayName="ButtonSelect";var eL=AN({more:{id:"more",defaultMessage:"More"}}),tL=wM({defaultClassName:"_18v88n10 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6lc",variantClassNames:{labelPosition:{top:"_1yep5z614l _1yep5z614m _1yep5z614n",start:"_1yep5z614i _1yep5z614j _1yep5z614k _1yep5z6160 _1yep5z6161 _1yep5z6162 _1yep5z6va _1yep5z6vb _1yep5z6vc"}},defaultVariants:{},compoundVariants:[]}),nL=wM({defaultClassName:"_18v88n1p _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6eu _1yep5z6lc _1yep5z6ln _1yep5z6lf _1yep5z6dy",variantClassNames:{isDisabled:{true:"_18v88n1q _1yep5z610q"},labelPosition:{top:"_18v88n1r",start:"_18v88n1s"}},defaultVariants:{},compoundVariants:[]}),rL=wM({defaultClassName:"_18v88n1t _1yep5z660 _1yep5z661 _1yep5z662 _1yep5z6ik _1yep5z6il _1yep5z6im _1yep5z6l9",variantClassNames:{validationState:{valid:"_18v88n1u",error:"_1yep5z6106",warning:"_1yep5z610e"},isReadOnly:{true:"_1yep5z610x"}},defaultVariants:{},compoundVariants:[]}),oL=wM({defaultClassName:"_18v88n1d _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z6lq _1yep5z6lo _1yep5z6gz _1yep5z6j8 _1yep5z6j9 _1yep5z6ja",variantClassNames:{validationState:{valid:"_18v88n1e",error:"_1yep5z612a",warning:"_18v88n1g"},isHovered:{true:"_18v88n1h"},isFocused:{true:"_1yep5z6wa _1yep5z6wb _1yep5z6wc _1yep5z6wy _1yep5z6wz _1yep5z6x0 _1yep5z6xm _1yep5z6xn _1yep5z6xo _1yep5z6ya _1yep5z6yb _1yep5z6yc _1yep5z617i _1yep5z617g _1yep5z612o _1yep5z6179 _1yep5z6178 _1yep5z613h _1yep5z617b"},isDisabled:{true:"_18v88n1j"},variant:{primary:"_18v88n1k",ghost:"_18v88n1l"},isReadOnly:{true:"_1yep5z613h"}},defaultVariants:{},compoundVariants:[[{variant:"ghost",isHovered:!0,isFocused:!1,validationState:"valid"},"_1yep5z61ta _1yep5z61t8 _1yep5z61oj"],[{variant:"ghost",isFocused:!1,isHovered:!1,validationState:"valid"},"_18v88n1n"],[{isHovered:!0,validationState:"valid",isDisabled:!1,isReadOnly:!1,isFocused:!1,variant:"primary"},"_1yep5z61ok"],[{isHovered:!0,validationState:"warning",isDisabled:!1,isReadOnly:!1,isFocused:!1},"_1yep5z61ok"],[{isReadOnly:!0,variant:"primary",isFocused:!1},"_18v88n1o"]]}),iL=wM({defaultClassName:"_18v88n13 _1yep5z6dy _1yep5z6ev",variantClassNames:{isDisabled:{true:"_1yep5z610q"}},defaultVariants:{},compoundVariants:[]}),aL=wM({defaultClassName:"_18v88n19 _1yep5z6ik _1yep5z6il _1yep5z6im",variantClassNames:{labelPosition:{top:"_1yep5z6sy _1yep5z6sz _1yep5z6t0",start:"_1yep5z6mv _1yep5z6mw _1yep5z6mx _1yep5z614l _1yep5z614m _1yep5z614n"},hasMessage:{true:"_18v88n1c"}},defaultVariants:{},compoundVariants:[[{labelPosition:"start",hasMessage:!1},"_1yep5z61rm _1yep5z61rn _1yep5z61ro"]]}),sL=wM({defaultClassName:"_18v88n15 _1yep5z699 _1yep5z69a _1yep5z69b _1yep5z6lf",variantClassNames:{isFocusVisible:{true:"_1yep5z611w _1yep5z613t _1yep5z6177"},isHovered:{true:"_1yep5z611w _1yep5z613t _1yep5z6177"},isOpen:{true:"_1yep5z613t _1yep5z6177"}},defaultVariants:{},compoundVariants:[[{isFocusVisible:!0},"_1yep5z61no _1yep5z61pl _1yep5z61sz"],[{isHovered:!0},"_1yep5z61no _1yep5z61pl _1yep5z61sz"],[{isOpen:!0},"_1yep5z61pl _1yep5z61sz"]]}),lL=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:h=!1,labelPosition:f="top",validationState:m="valid",variant:g="primary",toggleLabel:v,renderOption:y,showIcon:b=!0,filter:w,minValue:x,maxValue:S,inputType:_="text",onInputSubmit:C,...E},k)=>{let{contains:z}=(0,er.U2)({sensitivity:"base"}),P=hM(),A=(0,tr.k)({...E,defaultFilter:w||z,defaultItems:c,onSelectionChange:d,onInputChange:p,children:P,validationState:h?"invalid":"valid"}),D=l.useRef(null),T=l.useRef(null),I=l.useRef(null),M=l.useRef(null),N=l.useRef(null),{buttonProps:O,inputProps:j,listBoxProps:R,labelProps:F,errorMessageProps:B,descriptionProps:L,validationErrors:V}=(0,er.rE)({...E,inputRef:T,defaultItems:c,buttonRef:D,listBoxRef:I,popoverRef:M,validationState:"error"===m?"invalid":"valid"},A),K=E.errorMessage||V.join(" "),$=pN({...E,errorMessage:K,descriptionProps:L,errorMessageProps:B,labelPosition:f});K&&(m="error");let{hoverProps:H,isHovered:U}=(0,er.Mk)({isDisabled:E.isDisabled}),{isFocused:q,focusProps:W,isFocusVisible:G}=(0,er.og)(),Y=WO({isReadOnly:E.isReadOnly,validationState:m}),Z=(0,s.nP)({"data-read-only":E.isReadOnly,"data-disabled":E.isDisabled,"data-validation-state":m,"data-focused":q,"data-focus-visible":G}),{labelProps:J,fieldProps:X}=(0,er.MW)({label:a,"aria-label":E["aria-label"],"aria-labelledby":E["aria-labelledby"],"aria-describedby":E["aria-describedby"],"aria-details":E["aria-details"]}),{keyboardProps:Q}=(0,er.de)({onKeyDown:e=>{"Enter"===e.key&&C?.(j.value?.toString()??"")}}),{focusProps:ee}=(0,er.iQ)({onBlur:()=>{j.value&&C?.(j.value?.toString()??"")}});return(0,vr.jsx)(NM.Provider,{value:A,children:(0,vr.jsxs)("div",{className:(0,s.xW)(tL({labelPosition:f}),e,"BaselineUI-ComboBox"),"data-block-id":o,"data-block-class":i,style:t,ref:k,children:[a||"start"===f&&$?(0,vr.jsxs)("div",{className:aL({labelPosition:f,hasMessage:!!$}),children:[(0,vr.jsx)("label",{...(0,er.v6)(F,J),className:iL({isDisabled:E.isDisabled}),children:a}),"start"===f&&$]}):null,(0,vr.jsxs)("div",{...H,className:oL({validationState:m,isHovered:U,isFocused:q,variant:g,isReadOnly:!!E.isReadOnly,isDisabled:!!E.isDisabled}),ref:N,children:[(0,vr.jsx)("input",{...(0,er.v6)(j,W,Z,X,ee,Q,"number"===_?{type:"number",min:x,max:S,onKeyDown:e=>{("ArrowUp"===e.key||"ArrowDown"===e.key)&&e.preventDefault()}}:null),ref:T,className:(0,s.xW)(nL({isDisabled:E.isDisabled,labelPosition:f}),"BaselineUI-ComboBox-Input",r),style:n}),Y&&b?(0,vr.jsx)(Y,{className:rL({validationState:m,isReadOnly:E.isReadOnly}),size:16}):null,(0,vr.jsx)(eN,{...O,ref:D,variant:"popover",label:v,className:sL({isFocusVisible:!E.isDisabled&&!E.isReadOnly&&G,isHovered:!E.isDisabled&&!E.isReadOnly&&U,isOpen:A.isOpen})})]}),(0,vr.jsx)(vO,{className:wO,ref:M,triggerRef:N,state:A,children:(0,vr.jsx)(RM,{...R,items:c,ref:I,renderOption:y,selectionMode:"single",showSelectedIcon:u,className:SO})}),"top"===f&&$]})})}));lL.displayName="ComboBox";var cL=l.forwardRef((({item:e,renderGridItem:t,state:n},r)=>{let o=cM(r),i=(0,er.ns)({node:e},n,o),a="none"!==n.selectionManager.selectionMode&&"toggle"===n.selectionManager.selectionBehavior,{checkboxProps:s}=(0,er.v0)({key:e.key},n);return t(e,{...i,checkBoxProps:a?s:void 0},o)}));cL.displayName="GridListItem";var uL=e=>{"Enter"===e.key||"Escape"===e.key||e.stopPropagation()},dL=l.forwardRef((({className:e,style:t,isEditing:n=!1,"data-block-id":r,"data-block-class":o,gridListHandle:i,...a},l)=>{let c=hM(),u=(0,or.pE)({...a,children:c}),d=cM(l),{gridProps:p}=(0,er.IZ)(a,u,d);MM({handle:i,type:"gridlist"},u,d);let h=n?uL:p.onKeyDownCapture;return(0,vr.jsx)("ul",{...p,className:(0,s.xW)("BaselineUI-GridList",e),"data-block-id":r,"data-block-class":o,style:t,ref:d,onKeyDownCapture:h,children:[...u.collection].map((e=>(0,vr.jsx)(cL,{item:e,state:u,renderGridItem:a.renderGridItem},e.key)))})}));dL.displayName="GridList";var pL=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=cM(d),h=hM(),f=(0,or.pE)({...u,selectionMode:t,suppressTextValueWarning:!0,children:h}),{actionGroupProps:m}=function(e,t,n){let{isDisabled:r,orientation:o="horizontal"}=e,[i,a]=(0,l.useState)(!1);(0,Po.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,Ao.Ym)(),c=(0,_r.C7)(n),u="rtl"===s&&"horizontal"===o,d=lA[t.selectionManager.selectionMode];return i&&"toolbar"===d&&(d="group"),{actionGroupProps:{...(0,Po.$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},f,p),g=[...f.collection].map((e=>((0,s.V1)(e.value),(0,vr.jsx)(hL,{item:e,state:f,isDisabled:u.isDisabled,onAction:u.onAction,tooltipProps:i,renderActionItem:c},e.key))));return a?(0,vr.jsxs)(zM,{...m,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,vr.jsx)(a,{size:24,className:"_1yep5z6f5"}),(0,vr.jsx)(zM,{display:"flex",flexDirection:"row",gap:"xs",flex:1,children:g})]}):(0,vr.jsx)(zM,{...m,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:g})}));pL.displayName="ActionGroup";var hL=({item:e,state:t,tooltipProps:n,renderActionItem:r,onAction:o,isDisabled:i})=>{let{buttonProps:a}=function(e,t,n){let r=t.selectionManager.selectionMode,o={role:cA[r]};if("none"!==r){let n=t.selectionManager.isSelected(e.key);o["aria-checked"]=n}let i=e.key===t.selectionManager.focusedKey,a=(0,Po.Jt)((()=>{i&&t.selectionManager.setFocusedKey(null)}));return(0,l.useEffect)((()=>()=>{a()}),[a]),{buttonProps:(0,Po.v6)(o,{tabIndex:i||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,vr.jsx)(Ar.YI,{...(0,er.v6)(a,{onPress:()=>{o?.(e.key)}}),children:(0,vr.jsx)(HN,{text:e.textValue,size:"sm",variant:"inverse",includeArrow:!1,offset:4,...p,children:r?.(e,{isSelected:u,isDisabled:c})||(0,vr.jsx)(WN,{variant:"tertiary",icon:d,"aria-label":e.textValue,size:"sm",isDisabled:c,className:(0,s.xW)({_1dc3b8m0:u},"BaselineUI-ActionGroup-Item")})})})},fL=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:h,labelPosition:f="top","data-block-id":m,"data-block-class":g,shouldFocusWrap:v,...y},b)=>{let w=(0,l.useMemo)((()=>n.map((e=>({id:e.color,label:e.label})))),[n]),x=(0,er.Bi)();return(0,l.useEffect)((()=>{!o&&!y["aria-label"]&&!y["aria-labelledby"]&&console.warn("ColorSwatchPicker: Please provide a label or aria-label for accessibility.")}),[o,y]),(0,vr.jsxs)(zM,{...QI(y),className:(0,s.xW)("BaselineUI-ColorSwatchPicker",e),"data-block-id":m,"data-block-class":g,display:"flex",flexDirection:"top"===f?"column":"row",alignItems:"top"===f?"flex-start":"center",justifyContent:"space-between",gap:"md",style:t,ref:b,children:[i||o?(0,vr.jsxs)(zM,{display:"flex",alignItems:"center",gap:"md",children:[i?(0,vr.jsx)(i,{size:24,className:(0,br.UV)({color:"icon.primary"})}):null,o?(0,vr.jsx)(QN,{id:x,type:"label",size:"sm",children:o}):null]}):null,(0,vr.jsx)(RM,{className:(0,s.xW)("_1yep5z61qa _1yep5z61qb _1yep5z61qc _1yep5z61gz _1yep5z61h0 _1yep5z61h1",r),selectionMode:"single",items:w,orientation:"horizontal",defaultSelectedKeys:c?[c]:void 0,disabledKeys:d?w.map((e=>e.id)):void 0,isDisabled:d,selectedKeys:a?[a]:void 0,onSelectionChange:e=>{u?.([...e][0])},optionClassName:p,optionStyle:h,renderOption:({key:e,textValue:t},{isSelected:n,isFocusVisible:r,isDisabled:o,optionProps:i},a)=>(0,vr.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,vr.jsx)(zR,{isFocusVisible:r,color:e,isSelected:n,"aria-label":t,isInteractive:!0,isDisabled:o,tooltip:!0})}),shouldFocusWrap:v,...y,"aria-labelledby":o?x:y["aria-labelledby"]})]})}));fL.displayName="ColorSwatchPicker";var mL=wM({defaultClassName:"_10dw1p90 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z69f _1yep5z69g _1yep5z69h _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6lf _1yep5z6l2 _1yep5z6kz",variantClassNames:{isSelected:{true:"_1yep5z611v"},isHovered:{true:"_10dw1p92"},isRenaming:{true:"_10dw1p93"},isFocusVisible:{true:"_1yep5z613h _1yep5z617a _1yep5z6178"}},defaultVariants:{},compoundVariants:[[{isHovered:!0,isSelected:!1,isRenaming:!1},"_1yep5z61nm _1yep5z61pf _1yep5z61t1 _1yep5z61t0"]]}),gL=({context:e,depth:t,children:n,item:r,onPrimaryAction:o,onSecondaryAction:i,actionsPosition:a,primaryActionIcon:c,secondaryActionIcon:u,primaryActionAriaLabel:d,secondaryActionAriaLabel:p,onRename:h,onAction:f,renderItemTitle:m=(e=>e.data.label)})=>{let{formatMessage:g}=PN(),{hoverProps:v,isHovered:y}=(0,er.Mk)({}),b=(0,l.useRef)(null),{onKeyDown:w,...x}=e.interactiveElementProps;delete x.onFocus,delete x.onClick;let S=(0,_r.C7)(b),_=(0,l.useCallback)((t=>{if("ArrowRight"!==t.key||!e.isExpanded&&r.children?.length)switch(t.key){case"ArrowLeft":S.focusPrevious()?(t.preventDefault(),t.stopPropagation()):(w?.(t),e.focusItem(!0));break;case"Enter":e.toggleExpandedState();break;default:w?.(t)}else b.current?.setAttribute("tabindex","-1"),t.preventDefault(),t.stopPropagation(),S.focusNext()}),[e,S,w,r,b]),C=(0,l.useMemo)((()=>{let e=c,t=u,n="function"==typeof d?d(r.index):d,a="function"==typeof p?p(r.index):p;return e||t?(0,vr.jsxs)(zM,{display:"flex",flexDirection:"row",children:[e?(0,vr.jsx)($F,{icon:e,"aria-label":n,size:"sm",excludeFromTabOrder:!0,variant:"secondary",onPress:()=>{o?.(r.index)},tooltip:!0}):null,t?(0,vr.jsx)($F,{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]),E=(0,l.useCallback)((t=>{"Enter"===t.key?(h?.({key:r.index,value:t.target.value}),e.stopRenamingItem()):"Escape"===t.key?(e.stopRenamingItem(),b.current?.setAttribute("tabindex","0"),b.current?.focus()):"ArrowRight"!==t.key&&"ArrowLeft"!==t.key&&"ArrowUp"!==t.key&&"ArrowDown"!==t.key&&!t.metaKey&&t.continuePropagation()}),[r.index,e,h,b]),k=r.data.icon,z=!!h,{pressProps:P}=(0,er.dD)({onPress:()=>{f?.(r.index)}}),{isFocusVisible:A,focusProps:D}=(0,_r.og)();return(0,vr.jsxs)(vr.Fragment,{children:[(0,vr.jsx)("div",{...(0,er.v6)({onKeyDown:_,onFocus:()=>{e.focusItem(!1)}},P,D,v,e.itemContainerWithoutChildrenProps,x),className:(0,s.xW)("_10dw1p95",mL({isHovered:y,isSelected:e.isSelected,isFocusVisible:A,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,"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:b,children:(0,vr.jsxs)(zM,{role:"gridcell",style:{display:"contents"},"aria-colindex":1,children:["start"===a?C:null,(0,vr.jsxs)(zM,{display:"flex",flexDirection:"row",alignItems:"center",children:[(0,vr.jsxs)(zM,{display:"flex",padding:"sm",flexDirection:"row",alignItems:"center",gap:"md",style:{marginInlineStart:`calc(${2*t} * ${br.G6.spacing.lg})`},children:[(0,vr.jsx)(WN,{icon:xr.vK,size:"xxs",variant:"secondary",onPress:()=>{e.toggleExpandedState()},"aria-label":g(e.isExpanded?vL.collapse:vL.expand),style:{visibility:r.children?.length?"visible":"hidden"},className:(0,s.xW)("_10dw1p96","BaselineUI-TreeView-ExpansionToggle"),UNSAFE_NON_INTERACTIVE:!0}),k?(0,vr.jsx)(k,{size:16,style:{color:br.G6.color.icon.interactive.disabled}}):null]}),(0,vr.jsxs)(zM,{paddingLeft:"sm",paddingY:e.isRenaming?"none":"md",display:"flex",flexDirection:"column",gap:"xs",onDoubleClick:t=>{z&&(t.stopPropagation(),t.preventDefault(),e.startRenamingItem())},children:[e.isRenaming?(0,vr.jsx)("div",{onClick:e=>{e.stopPropagation()},children:(0,vr.jsx)(GO,{defaultValue:r.data.label,autoFocus:!0,onBlur:t=>{h?.({key:r.index,value:t.target.value}),e.stopRenamingItem()},"aria-label":g(vL.rename),onKeyDown:E,className:"BaselineUI-TreeView-RenameInput"})}):(0,vr.jsx)(QN,{type:"label",size:"sm",className:(0,s.xW)(br.UV.compoundVariants({color:"text.primary"}),"BaselineUI-TreeView-Title"),children:m(r)}),r.data.description?(0,vr.jsx)(QN,{type:"helper",size:"sm",className:"BaselineUI-TreeView-Description",children:r.data.description}):null]})]}),"end"===a?C:null]})}),n]})},vL=AN({expand:{id:"expand",defaultMessage:"Expand"},collapse:{id:"collapse",defaultMessage:"Collapse"},rename:{id:"rename",defaultMessage:"Rename"}});function yL(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 bL=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:h,actionsPosition:f="start",onRename:m,onAction:g,renderItemTitle:v,...y},b)=>{let w=hM(),x=(0,l.useRef)(null),S=(0,mr.p)({...y,items:o.children,children:w}),_=(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,yL)).map((([e,t])=>[e,{...t,canRename:!!m}])))),[o,m]),C=(0,er.Bi)(),[E,k]=l.useState(o.children?.[0]?.id??""),z=(0,l.useRef)(E),P=(0,l.useMemo)((()=>({[`tree-${C}`]:{focusedItem:E,expandedItems:[...S.expandedKeys],selectedItems:[...S.selectionManager.selectedKeys]}})),[E,S.expandedKeys,S.selectionManager.selectedKeys,C]);return(0,l.useEffect)((()=>{if(!x.current)return;let e=$I(x.current),t=e instanceof ShadowRoot,n=x.current?.contains(e?.activeElement??null);t&&n&&$I(x.current)?.querySelector(`[data-rct-item-id="${E}"]`)?.focus()}),[E]),(0,vr.jsx)(QA,{items:_,getItemTitle:e=>e.data?.label,viewState:P,onExpandItem:e=>{S.setExpandedKeys(new Set([...S.expandedKeys,e.index])),y.onExpand?.(e.index.toString())},onFocusItem:e=>{k(e.index),e.index&&(z.current=e.index)},onCollapseItem:e=>{S.setExpandedKeys(new Set([...S.expandedKeys].filter((t=>t!==e.index)))),y.onCollapse?.(e.index.toString())},onSelectItems:e=>{S.selectionManager.setSelectedKeys(new Set(e))},renderItem:e=>(0,vr.jsx)(gL,{...e,onPrimaryAction:a,onSecondaryAction:c,actionsPosition:f,primaryActionIcon:u,secondaryActionIcon:d,primaryActionAriaLabel:p,secondaryActionAriaLabel:h,onRename:m,onAction:g,renderItemTitle:v}),renderLiveDescriptorContainer:({children:e})=>(0,vr.jsx)($N,{children:(0,vr.jsx)(er.s6,{children:e})}),renderTreeContainer:({containerProps:o,children:i})=>(0,vr.jsx)("div",{...WI(o,{onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||e.currentTarget.querySelector(`[data-key="${z.current}"]`)?.setAttribute("tabindex","0")}}),"data-block-id":n,"data-block-class":r,style:{...t,...o.style},className:(0,s.xW)(e,"BaselineUI-TreeView"),ref:GI(b,o.ref,x),role:"treegrid",children:i}),renderItemsContainer:({children:e})=>e,children:(0,vr.jsx)(DD,{treeId:`tree-${C}`,rootItem:i,treeLabel:y["aria-label"],treeLabelledBy:y["aria-labelledby"]})})}));bL.displayName="TreeView";var wL=(0,l.forwardRef)((({className:e,isCollapsible:t=!1,...n},r)=>{let o=(0,l.useRef)(null),i=(0,er.Bi)();return(0,l.useImperativeHandle)(r,(()=>({resize:o.current?.resize}))),(0,vr.jsx)(mT,{className:(0,s.xW)("BaselineUI-Panel",e),collapsible:t,ref:o,id:i,...n})}));wL.displayName="Panel";var xL=(0,l.forwardRef)((({className:e,...t},n)=>{let r=(0,l.useRef)(null);return(0,l.useImperativeHandle)(n,(()=>({setLayout:r.current?.setLayout}))),(0,vr.jsx)(xI,{className:(0,s.xW)("BaselineUI-PanelGroup",e),ref:r,...t})}));xL.displayName="PanelGroup";var SL=({className:e,isDisabled:t=!1,...n})=>(0,vr.jsx)(CI,{disabled:t,className:(0,s.xW)("_6abhjk0","BaselineUI-PanelResizeHandle",e),...n});SL.displayName="PanelResizeHandle"},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",{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.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",{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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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",{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"})]}),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:"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"})]}),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 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"})]}),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",{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"})]}),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:"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"})]}),_=({title:e,titleId:t,...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"})]}),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:"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"})]}),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",{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"})]}),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:"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"})]}),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:"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"})]}),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("circle",{cx:8,cy:8,r:4})]}),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",{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"})]}),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:"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"})]}),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:"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"})]}),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",{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"})]}),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:"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"})]}),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",{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"})]}),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",{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"})]}),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:"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"})]}),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:"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"})]}),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",{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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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.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"})]}),$=({title:e,titleId:t,...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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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",{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"})]}),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",{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"})]}),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",{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"})]}),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",{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"})]}),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:"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"})]}),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",{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"})]}),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.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"})]}),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:"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"})]}),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",{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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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",{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"})]}),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:"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"})]}),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 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"})]}),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:"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"})]}),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",{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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),_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.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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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.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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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.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"})]}),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:"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"})]}),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",{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"})]}),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",{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"})]}),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",{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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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",{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"})]}),$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:"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"})]}),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:"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"})]}),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",{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"})]}),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",{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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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",{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"})]}),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:"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"})]}),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:"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"})]}),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",{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"})]}),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:"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"})]}),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.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"})]}),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",{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"})]}),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:"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"})]}),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:"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"})]}),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",{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"})]}),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:"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"})]}),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.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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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",{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"})]}),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:"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"})]}),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",{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"})]}),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:"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"})]}),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",{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"})]}),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:"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"})]}),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:"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"})]}),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",{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"})]}),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",{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"})]}),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:"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"})]}),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:"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"})]}),_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 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"})]}),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:"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"})]}),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",{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"})]}),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.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"})]}),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",{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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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",{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"})]}),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",{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"})]}),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",{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"})]}),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",{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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),$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:"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=v,t.$o=y,t.cF=w,t.eC=_,t.JJ=C,t.x7=E,t.Nr=z,t.Td=D,t.Yl=R,t.bL=L,t.U9=V,t.VU=re,t.S_=ae,t.yO=se,t.qY=ue,t.Z4=ge,t.Eo=Je,t.Uf=nt,t.L0=wt,t.VN=St,t.Ui=_t,t.uc=It,t.qp=Nt,t.ej=Ot,t.AK=Bt,t.Op=Kt,t.uv=$t},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 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"})]}),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:"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"})]}),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 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"})]}),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",{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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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 10M9.25 5a.75.75 0 0 1 1.5 0v5.75H6a.75.75 0 0 1 0-1.5h3.25z",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",{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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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 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"})]}),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 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"})]}),_=({title:e,titleId:t,...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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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 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"})]}),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:"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"})]}),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:"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"})]}),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",{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"})]}),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",{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"})]}),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:"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"})]}),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:"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"})]}),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",{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"})]}),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",{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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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",{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"})]}),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:"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"})]}),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:"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"})]}),$=({title:e,titleId:t,...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"})]}),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.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"})]}),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",{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"})]}),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:"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"})]}),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.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"})]}),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",{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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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.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"})]}),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:"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"})]}),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",{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"})]}),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",{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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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.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"})]}),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.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"})]}),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:"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"})]}),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:"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"})]}),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.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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),_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:"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"})]}),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 .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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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-.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"})]}),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",{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"})]}),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:"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"})]}),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:"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"})]}),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",{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"})]}),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.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"})]}),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",{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"})]}),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",{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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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:"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.m$=o,t.Xx=i,t.$o=s,t.S$=l,t.eC=u,t.JJ=d,t._9=h,t.Nr=m,t.Tw=y,t.h5=x,t.qU=C,t.bL=z,t._x=M,t.fR=N,t.xf=F,t.S_=B,t.yO=V,t.qY=K,t.QG=q,t.c1=fe,t.WI=ve,t.N$=De,t.uc=Ne,t.qp=je,t.AK=Fe,t.Op=Le,t.uv=Ke},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"})]}),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:"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"})]}),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 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"})]}),$=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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",{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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),$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",{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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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",{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"})]}),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:"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"})]}),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:"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"})]}),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",{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"})]}),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:"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"})]}),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:"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"})]}),$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:"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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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.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"})]}),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.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"})]}),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:"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"})]}),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:"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"})]}),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",{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"})]}),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",{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"})]}),$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.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"})]}),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.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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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.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"})]}),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.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"})]}),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:"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"})]}),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:"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"})]}),$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",{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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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",{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"})]}),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",{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"})]}),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:"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"})]}),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:"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:"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"})]}),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",{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"})]}),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",{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"})]}),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:"M10 11V6.13L1.2 12l8.8 5.87V13h14v-2zm-2 3.13L4.8 12 8 9.87z",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:"m8.45 7.17 1.11 1.66L6.31 11h17.7v2H6.3l3.25 2.17-1.11 1.66L1.2 12z",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:"M2 6.131 9.303 11H24v2H9.333L2 18.5zm5.27 5.917L4 9.868V14.5z",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:"M7.35 11H24v2H7.35l-4.726 3.78-1.249-1.56L5.399 12 1.375 8.78l1.25-1.56z",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 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"})]}),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 6.586 11.414 11H24v2H11.414L7 17.414 1.586 12zM9.586 12 7 9.414 4.414 12 7 14.586z",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:"M0 11h24v2H0z",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:"m5.618 11 1.276-2.553-1.789-.894-4 8 1.79.894L4.617 13H24v-2z",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:"M2.5 7.5h9V11H24v2H11.5v3.5h-9zm2 2v5h5v-5z",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 16V8h2v3h20v2H4v3z",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",{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"})]}),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:"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"})]}),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:"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"})]}),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 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"})]}),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:"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"})]}),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",{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"})]}),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:"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"})]}),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:"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"})]}),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.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"})]}),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.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"})]}),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",{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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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",{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"})]}),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",{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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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:"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"})]}),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",{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"})]}),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:"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"})]}),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",{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"})]}),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",{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"})]}),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",{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"})]}),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:"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"})]}),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",{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"})]}),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:"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"})]}),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",{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"})]}),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",{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"})]}),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",{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"})]}),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:"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"})]}),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",{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"})]}),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",{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"})]}),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",{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"})]}),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:"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"})]}),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 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.KHA=s,t.HKb=m,t.A60=g,t.flY=v,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=j,t.Nrt=B,t.Twg=q,t.Z$6=Y,t.K1E=X,t.XpJ=re,t.s3U=ue,t.pc5=de,t.G8h=fe,t.rKj=me,t.N2p=ge,t.LPH=be,t.ErD=we,t.bt$=xe,t.YlR=Se,t.A5W=Oe,t.s8N=Ke,t.TL=Ye,t.Kf=Je,t.X5L=nt,t.jNf=ht,t.VUW=vt,t.xfq=wt,t.mLz=It,t.s4F=jt,t.QBs=Ut,t.qYV=qt,t.fYD=Wt,t.XAi=Gt,t.tM$=Yt,t.Z4s=sn,t.ot=dn,t.ncu=yn,t.FNe=Tn,t.Wy4=In,t.wQ8=Nn,t.tOd=On,t.Hno=jn,t.opr=Bn,t.zf_=Ln,t.dtV=Vn,t.UoP=Kn,t.tpl=qn,t.M$J=Wn,t.s5B=Gn,t.Vx3=Yn,t.QSY=Jn,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.UfX=Or,t.h8W=Lr,t.HTp=Vr,t.soG=Hr,t.WIv=Wr,t.nhX=Yr,t.efu=Zr,t.Zes=Jr,t.CPw=ao,t.kTg=co,t.So3=ho,t.LV2=fo,t.dxj=zo,t.RnU=Fo,t.gvh=Bo,t.N$i=Lo,t.LtU=Go,t.ucK=Xo,t.$o6=ti,t.ejX=ii,t.npA=pi,t.ADv=bi,t.LoD=wi},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:"none",viewBox:"0 0 8 8","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fill:"#2B2E36",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},35175:(e,t,n)=>{"use strict";n.d(t,{rB:()=>ii,_r:()=>xi,Gs:()=>jr,H_:()=>lo,sr:()=>Jo,_h:()=>xo,f8:()=>Xo,nB:()=>Br,Y8:()=>xr,AV:()=>Ur,lu:()=>xr,Mh:()=>mo,pu:()=>Co,k8:()=>xr,hY:()=>Eo,Rc:()=>Ei,ug:()=>Si,hO:()=>_i,yg:()=>Yo,gc:()=>wr,Nx:()=>xr,pw:()=>qr,qT:()=>xr,q_:()=>ai,M7:()=>Go,XD:()=>ko});var r=n(96540),o=n(13158),i=n(40027),a=n(52971),s=n(41105),l=n(84010),c=n(20576),u=n(74848),d=n(65221),p=n(55026),h=n(53068),f=n(35295),m=T(),g=e=>z(e,m),v=T();g.write=e=>z(e,v);var y=T();g.onStart=e=>z(e,y);var b=T();g.onFrame=e=>z(e,b);var w=T();g.onFinish=e=>z(e,w);var x=[];g.setTimeout=(e,t)=>{const n=g.now()+t,r=()=>{const e=x.findIndex((e=>e.cancel==r));~e&&x.splice(e,1),E-=~e?1:0},o={time:n,handler:e,cancel:r};return x.splice(S(n),0,o),E+=1,P(),o};var S=e=>~(~x.findIndex((t=>t.time>e))||~x.length);g.cancel=e=>{y.delete(e),b.delete(e),w.delete(e),m.delete(e),v.delete(e)},g.sync=e=>{k=!0,g.batchedUpdates(e),k=!1},g.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,g.onStart(n)}return r.handler=e,r.cancel=()=>{y.delete(n),t=null},r};var _="undefined"!=typeof window?window.requestAnimationFrame:()=>{};g.use=e=>_=e,g.now="undefined"!=typeof performance?()=>performance.now():Date.now,g.batchedUpdates=e=>e(),g.catch=console.error,g.frameLoop="always",g.advance=()=>{"demand"!==g.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):D()};var C=-1,E=0,k=!1;function z(e,t){k?(t.delete(e),e(0)):(t.add(e),P())}function P(){C<0&&(C=0,"demand"!==g.frameLoop&&_(A))}function A(){~C&&(_(A),g.batchedUpdates(D))}function D(){const e=C;C=g.now();const t=S(C);t&&(I(x.splice(0,t),(e=>e.handler())),E-=t),E?(y.flush(),m.flush(e?Math.min(64,C-e):16.667),b.flush(),v.flush(),w.flush()):C=-1}function T(){let e=new Set,t=e;return{add(n){E+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(E-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,E-=t.size,I(t,(t=>t(n)&&e.add(t))),E+=e.size,t=e)}}}function I(e,t){e.forEach((e=>{try{t(e)}catch(e){g.catch(e)}}))}var M=Object.defineProperty,N={};function O(){}((e,t)=>{for(var n in t)M(e,n,{get:t[n],enumerable:!0})})(N,{assign:()=>Y,colors:()=>q,createStringInterpolator:()=>K,skipAnimation:()=>W,to:()=>$,willAdvance:()=>G});var j={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 R(e,t){if(j.arr(e)){if(!j.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 F=(e,t)=>e.forEach(t);function B(e,t,n){if(j.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 L=e=>j.und(e)?[]:j.arr(e)?e:[e];function V(e,t){if(e.size){const n=Array.from(e);e.clear(),F(n,t)}}var K,$,H=(e,...t)=>V(e,(e=>e(...t))),U=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),q=null,W=!1,G=O,Y=e=>{e.to&&($=e.to),e.now&&(g.now=e.now),void 0!==e.colors&&(q=e.colors),null!=e.skipAnimation&&(W=e.skipAnimation),e.createStringInterpolator&&(K=e.createStringInterpolator),e.requestAnimationFrame&&g.use(e.requestAnimationFrame),e.batchedUpdates&&(g.batchedUpdates=e.batchedUpdates),e.willAdvance&&(G=e.willAdvance),e.frameLoop&&(g.frameLoop=e.frameLoop)},Z=new Set,J=[],X=[],Q=0,ee={get idle(){return!Z.size&&!J.length},start(e){Q>e.priority?(Z.add(e),g.onStart(te)):(ne(e),g(oe))},advance:oe,sort(e){if(Q)g.onFrame((()=>ee.sort(e)));else{const t=J.indexOf(e);~t&&(J.splice(t,1),re(e))}},clear(){J=[],Z.clear()}};function te(){Z.forEach(ne),Z.clear(),g(oe)}function ne(e){J.includes(e)||re(e)}function re(e){J.splice(function(e,t){const n=e.findIndex(t);return n<0?e.length:n}(J,(t=>t.priority>e.priority)),0,e)}function oe(e){const t=X;for(let n=0;n<J.length;n++){const r=J[n];Q=r.priority,r.idle||(G(r),r.advance(e),r.idle||t.push(r))}return Q=0,(X=J).length=0,(J=t).length>0}var ie="[-+]?\\d*\\.?\\d+",ae=ie+"%";function se(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var le=new RegExp("rgb"+se(ie,ie,ie)),ce=new RegExp("rgba"+se(ie,ie,ie,ie)),ue=new RegExp("hsl"+se(ie,ae,ae)),de=new RegExp("hsla"+se(ie,ae,ae,ie)),pe=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,he=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,fe=/^#([0-9a-fA-F]{6})$/,me=/^#([0-9a-fA-F]{8})$/;function ge(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 ve(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=ge(o,r,e+1/3),a=ge(o,r,e),s=ge(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function ye(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function be(e){return(parseFloat(e)%360+360)%360/360}function we(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function xe(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Se(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=fe.exec(e))?parseInt(t[1]+"ff",16)>>>0:q&&void 0!==q[e]?q[e]:(t=le.exec(e))?(ye(t[1])<<24|ye(t[2])<<16|ye(t[3])<<8|255)>>>0:(t=ce.exec(e))?(ye(t[1])<<24|ye(t[2])<<16|ye(t[3])<<8|we(t[4]))>>>0:(t=pe.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=me.exec(e))?parseInt(t[1],16)>>>0:(t=he.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=ue.exec(e))?(255|ve(be(t[1]),xe(t[2]),xe(t[3])))>>>0:(t=de.exec(e))?(ve(be(t[1]),xe(t[2]),xe(t[3]))|we(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 _e=(e,t,n)=>{if(j.fun(e))return e;if(j.arr(e))return _e({range:e,output:t,extrapolate:n});if(j.str(e.output[0]))return K(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 Ce=1.70158,Ee=1.525*Ce,ke=Ce+1,ze=2*Math.PI/3,Pe=2*Math.PI/4.5,Ae=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},De={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=>ke*e*e*e-Ce*e*e,easeOutBack:e=>1+ke*Math.pow(e-1,3)+Ce*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-Ee)/2:(Math.pow(2*e-2,2)*((Ee+1)*(2*e-2)+Ee)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*ze),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*ze)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*Pe)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*Pe)/2+1,easeInBounce:e=>1-Ae(1-e),easeOutBounce:Ae,easeInOutBounce:e=>e<.5?(1-Ae(1-2*e))/2:(1+Ae(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)}},Te=Symbol.for("FluidValue.get"),Ie=Symbol.for("FluidValue.observers"),Me=e=>Boolean(e&&e[Te]),Ne=e=>e&&e[Te]?e[Te]():e,Oe=e=>e[Ie]||null;function je(e,t){const n=e[Ie];n&&n.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}var Re=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Fe(this,e)}},Fe=(e,t)=>Ke(e,Te,t);function Be(e,t){if(e[Te]){let n=e[Ie];n||Ke(e,Ie,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Le(e,t){const n=e[Ie];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Ie]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var Ve,Ke=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),$e=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,He=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Ue=new RegExp(`(${$e.source})(%|[a-z]+)`,"i"),qe=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,We=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Ge=e=>{const[t,n]=Ye(e);if(!t||U())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&&We.test(n)?Ge(n):n||e},Ye=e=>{const t=We.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},Ze=(e,t,n,r,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`,Je=e=>{Ve||(Ve=q?new RegExp(`(${Object.keys(q).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>Ne(e).replace(We,Ge).replace(He,Se).replace(Ve,Se))),n=t.map((e=>e.match($e).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]})))).map((t=>_e({...e,output:t})));return e=>{const n=!Ue.test(t[0])&&t.find((e=>Ue.test(e)))?.replace($e,"");let o=0;return t[0].replace($e,(()=>`${r[o++](e)}${n||""}`)).replace(qe,Ze)}},Xe="react-spring: ",Qe=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(`${Xe}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},et=Qe(console.warn);var tt=Qe(console.warn);function nt(e){return j.str(e)&&("#"==e[0]||/\d/.test(e)||!U()&&We.test(e)||e in(q||{}))}var rt=U()?r.useEffect:r.useLayoutEffect;function ot(){const e=(0,r.useState)()[1],t=(()=>{const e=(0,r.useRef)(!1);return rt((()=>(e.current=!0,()=>{e.current=!1})),[]),e})();return()=>{t.current&&e(Math.random())}}var it=e=>(0,r.useEffect)(e,at),at=[];function st(e){const t=(0,r.useRef)();return(0,r.useEffect)((()=>{t.current=e})),t.current}var lt=Symbol.for("Animated:node"),ct=e=>e&&e[lt],ut=(e,t)=>{return n=e,r=lt,o=t,Object.defineProperty(n,r,{value:o,writable:!0,configurable:!0});var n,r,o},dt=e=>e&&e[lt]&&e[lt].getPayload(),pt=class{constructor(){ut(this,this)}getPayload(){return this.payload||[]}},ht=class extends pt{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,j.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new ht(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return j.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,j.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},ft=class extends ht{constructor(e){super(0),this._string=null,this._toString=_e({output:[e,e]})}static create(e){return new ft(e)}getValue(){const e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(j.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=_e({output:[this.getValue(),e]})),this._value=0,super.reset()}},mt={dependencies:null},gt=class extends pt{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return B(this.source,((n,r)=>{var o;(o=n)&&o[lt]===o?t[r]=n.getValue(e):Me(n)?t[r]=Ne(n):e||(t[r]=n)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&F(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return B(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){mt.dependencies&&Me(e)&&mt.dependencies.add(e);const t=dt(e);t&&F(t,(e=>this.add(e)))}},vt=class extends gt{constructor(e){super(e)}static create(e){return new vt(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(yt)),!0)}};function yt(e){return(nt(e)?ft:ht).create(e)}function bt(e){const t=ct(e);return t?t.constructor:j.arr(e)?vt:nt(e)?ft:ht}var wt=(e,t)=>{const n=!j.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,r.forwardRef)(((o,i)=>{const a=(0,r.useRef)(null),s=n&&(0,r.useCallback)((e=>{a.current=function(e,t){e&&(j.fun(e)?e(t):e.current=t);return t}(i,e)}),[i]),[l,c]=function(e,t){const n=new Set;mt.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)});return e=new gt(e),mt.dependencies=null,[e,n]}(o,t),u=ot(),d=()=>{const e=a.current;if(n&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,l.getValue(!0)))&&u()},p=new xt(d,c),h=(0,r.useRef)();rt((()=>(h.current=p,F(c,(e=>Be(e,p))),()=>{h.current&&(F(h.current.deps,(e=>Le(e,h.current))),g.cancel(h.current.update))}))),(0,r.useEffect)(d,[]),it((()=>()=>{const e=h.current;F(e.deps,(t=>Le(t,e)))}));const f=t.getComponentProps(l.getValue());return r.createElement(e,{...f,ref:s})}))},xt=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&g.write(this.update)}};var St=Symbol.for("AnimatedComponent"),_t=e=>j.str(e)?e:e&&j.str(e.displayName)?e.displayName:j.fun(e)&&e.name||null;function Ct(e,...t){return j.fun(e)?e(...t):e}var Et=(e,t)=>!0===e||!!(t&&e&&(j.fun(e)?e(t):L(e).includes(t))),kt=(e,t)=>j.obj(e)?t&&e[t]:e,zt=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,Pt=e=>e,At=(e,t=Pt)=>{let n=Dt;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);j.und(n)||(r[o]=n)}return r},Dt=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Tt={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 It(e){const t=function(e){const t={};let n=0;if(B(e,((e,r)=>{Tt[r]||(t[r]=e,n++)})),n)return t}(e);if(t){const n={to:t};return B(e,((e,r)=>r in t||(n[r]=e))),n}return{...e}}function Mt(e){return e=Ne(e),j.arr(e)?e.map(Mt):nt(e)?N.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Nt(e){for(const t in e)return!0;return!1}function Ot(e){return j.fun(e)||j.arr(e)&&j.obj(e[0])}function jt(e,t){e.ref?.delete(e),t?.delete(e)}function Rt(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var Ft={tension:170,friction:26,mass:1,damping:1,easing:De.linear,clamp:!1};function Bt(e,t){if(j.und(t.decay)){const n=!j.und(t.tension)||!j.und(t.friction);!n&&j.und(t.frequency)&&j.und(t.damping)&&j.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var Lt=[];function Vt(e,{key:t,props:n,defaultProps:r,state:o,actions:i}){return new Promise(((a,s)=>{let l,c,u=Et(n.cancel??r?.cancel,t);if(u)h();else{j.und(n.pause)||(o.paused=Et(n.pause,t));let e=r?.pause;!0!==e&&(e=o.paused||Et(e,t)),l=Ct(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-g.now()}function p(){l>0&&!N.skipAnimation?(o.delayed=!0,c=g.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 Kt=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?Ut(e.get()):t.every((e=>e.noop))?$t(e.get()):Ht(e.get(),t.every((e=>e.finished))),$t=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Ht=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Ut=e=>({value:e,cancelled:!0,finished:!1});function qt(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=At(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)&&Ut(r)||o!==n.asyncId&&Ht(r,!1);if(t)throw e.result=t,d(e),e},f=(e,t)=>{const i=new Gt,a=new Yt;return(async()=>{if(N.skipAnimation)throw Wt(n),a.result=Ht(r,!1),d(a),a;h(i);const s=j.obj(e)?{...e}:{...t,to:e};s.parentId=o,B(c,((e,t)=>{j.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(N.skipAnimation)return Wt(n),Ht(r,!1);try{let t;t=j.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=Ht(r.get(),!0,!1)}catch(e){if(e instanceof Gt)m=e.result;else{if(!(e instanceof Yt))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 j.fun(a)&&g.batchedUpdates((()=>{a(m,r,r.item)})),m})():l}function Wt(e,t){V(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Gt=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.")}},Yt=class extends Error{constructor(){super("SkipAnimationSignal")}},Zt=e=>e instanceof Xt,Jt=1,Xt=class extends Re{constructor(){super(...arguments),this.id=Jt++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=ct(this);return e&&e.getValue()}to(...e){return N.to(this,e)}interpolate(...e){return et(`${Xe}The "interpolate" function is deprecated in v9 (use "to" instead)`),N.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){je(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||ee.sort(this),je(this,{type:"priority",parent:this,priority:e})}},Qt=Symbol.for("SpringPhase"),en=e=>(1&e[Qt])>0,tn=e=>(2&e[Qt])>0,nn=e=>(4&e[Qt])>0,rn=(e,t)=>t?e[Qt]|=3:e[Qt]&=-3,on=(e,t)=>t?e[Qt]|=4:e[Qt]&=-5,an=class extends Xt{constructor(e,t){if(super(),this.animation=new class{constructor(){this.changed=!1,this.values=Lt,this.toValues=null,this.fromValues=Lt,this.config=new class{constructor(){this.velocity=0,Object.assign(this,Ft)}},this.immediate=!1}},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,!j.und(e)||!j.und(t)){const n=j.obj(e)?{...e}:{...t,from:e};j.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(tn(this)||this._state.asyncTo)||nn(this)}get goal(){return Ne(this.animation.to)}get velocity(){const e=ct(this);return e instanceof ht?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return en(this)}get isAnimating(){return tn(this)}get isPaused(){return nn(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=dt(r.to);!a&&Me(r.to)&&(o=L(Ne(r.to))),r.values.forEach(((s,l)=>{if(s.done)return;const c=s.constructor==ft?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=j.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(j.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=!j.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=ct(this),l=s.getValue();if(t){const e=Ne(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 g.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(tn(this)){const{to:e,config:t}=this.animation;g.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 j.und(e)?(n=this.queue||[],this.queue=[]):n=[j.obj(e)?e:{...t,to:e}],Promise.all(n.map((e=>this._update(e)))).then((e=>Kt(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Wt(this._state,e&&this._lastCallId),g.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=j.obj(n)?n[t]:n,(null==n||Ot(n))&&(n=void 0),r=j.obj(r)?r[t]:r,null==r&&(r=void 0);const o={to:n,from:r};return en(this)||(e.reverse&&([n,r]=[r,n]),r=Ne(r),j.und(r)?ct(this)||this._set(n):this._set(r)),o}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,At(e,((e,t)=>/^on/.test(t)?kt(e,n):e))),hn(this,e,"onProps"),fn(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 Vt(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{nn(this)||(on(this,!0),H(i.pauseQueue),fn(this,"onPause",Ht(this,sn(this,this.animation.to)),this))},resume:()=>{nn(this)&&(on(this,!1),tn(this)&&this._resume(),H(i.resumeQueue),fn(this,"onResume",Ht(this,sn(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then((n=>{if(e.loop&&n.finished&&(!t||!n.noop)){const t=ln(e);if(t)return this._update(t,!0)}return n}))}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Ut(this));const r=!j.und(e.to),o=!j.und(e.from);if(r||o){if(!(t.callId>this._lastToId))return n(Ut(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&&!j.und(u)||(u=d),t.reverse&&([u,d]=[d,u]);const p=!R(d,c);p&&(s.from=d),d=Ne(d);const h=!R(u,l);h&&this._focus(u);const f=Ot(t.to),{config:m}=s,{decay:v,velocity:y}=m;(r||o)&&(m.velocity=0),t.config&&!f&&function(e,t,n){n&&(Bt(n={...n},t),t={...n,...t}),Bt(e,t),Object.assign(e,t);for(const t in Ft)null==e[t]&&(e[t]=Ft[t]);let{frequency:r,damping:o}=e;const{mass:i}=e;j.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,Ct(t.config,i),t.config!==a.config?Ct(a.config,i):void 0);let b=ct(this);if(!b||j.und(u))return n(Ht(this,!0));const w=j.und(t.reset)?o&&!t.default:!j.und(d)&&Et(t.reset,i),x=w?d:this.get(),S=Mt(u),_=j.num(S)||j.arr(S)||nt(S),C=!f&&(!_||Et(a.immediate||t.immediate,i));if(h){const e=bt(u);if(e!==b.constructor){if(!C)throw Error(`Cannot animate between ${b.constructor.name} and ${e.name}, as the "to" prop suggests`);b=this._set(S)}}const E=b.constructor;let k=Me(u),z=!1;if(!k){const e=w||!en(this)&&p;(h||e)&&(z=R(Mt(x),S),k=!z),(R(s.immediate,C)||C)&&R(m.decay,v)&&R(m.velocity,y)||(k=!0)}if(z&&tn(this)&&(s.changed&&!w?k=!0:k||this._stop(l)),!f&&((k||Me(l))&&(s.values=b.getPayload(),s.toValues=Me(u)?null:E==ft?[1]:L(S)),s.immediate!=C&&(s.immediate=C,C||w||this._set(l)),k)){const{onRest:e}=s;F(pn,(e=>hn(this,t,e)));const r=Ht(this,sn(this,l));H(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&g.batchedUpdates((()=>{s.changed=!w,e?.(r,this),w?Ct(a.onRest,r):s.onStart?.(r,this)}))}w&&this._set(x),f?n(qt(t.to,t,this._state,this)):k?this._start():tn(this)&&!h?this._pendingCalls.add(n):n($t(x))}_focus(e){const t=this.animation;e!==t.to&&(Oe(this)&&this._detach(),t.to=e,Oe(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Me(t)&&(Be(t,this),Zt(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Me(e)&&Le(e,this)}_set(e,t=!0){const n=Ne(e);if(!j.und(n)){const e=ct(this);if(!e||!R(n,e.getValue())){const r=bt(n);e&&e.constructor==r?e.setValue(n):ut(this,r.create(n)),e&&g.batchedUpdates((()=>{this._onChange(n,t)}))}}return ct(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,fn(this,"onStart",Ht(this,sn(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Ct(this.animation.onChange,e,this)),Ct(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;ct(this).reset(Ne(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),tn(this)||(rn(this,!0),nn(this)||this._resume())}_resume(){N.skipAnimation?this.finish():ee.start(this)}_stop(e,t){if(tn(this)){rn(this,!1);const n=this.animation;F(n.values,(e=>{e.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),je(this,{type:"idle",parent:this});const r=t?Ut(this.get()):Ht(this.get(),sn(this,e??n.to));H(this._pendingCalls,r),n.changed&&(n.changed=!1,fn(this,"onRest",r,this))}}};function sn(e,t){const n=Mt(t);return R(Mt(e.get()),n)}function ln(e,t=e.loop,n=e.to){const r=Ct(t);if(r){const o=!0!==r&&It(r),i=(o||e).reverse,a=!o||o.reset;return cn({...e,loop:t,default:!1,pause:void 0,to:!i||Ot(n)?n:void 0,from:a?e.from:void 0,reset:a,...o})}}function cn(e){const{to:t,from:n}=e=It(e),r=new Set;return j.obj(t)&&dn(t,r),j.obj(n)&&dn(n,r),e.keys=r.size?Array.from(r):null,e}function un(e){const t=cn(e);return j.und(t.default)&&(t.default=At(t)),t}function dn(e,t){B(e,((e,n)=>null!=e&&t.add(n)))}var pn=["onStart","onRest","onChange","onPause","onResume"];function hn(e,t,n){e.animation[n]=t[n]!==zt(t,n)?kt(t[n],e.key):void 0}function fn(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var mn=["onStart","onChange","onRest"],gn=1,vn=class{constructor(e,t){this.id=gn++,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];j.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(cn(e)),this}start(e){let{queue:t}=this;return e?t=L(e).map(cn):this.queue=[],this._flush?this._flush(this,t):(Cn(this,t),yn(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;F(L(t),(t=>n[t].stop(!!e)))}else Wt(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(j.und(e))this.start({pause:!0});else{const t=this.springs;F(L(e),(e=>t[e].pause()))}return this}resume(e){if(j.und(e))this.start({pause:!1});else{const t=this.springs;F(L(e),(e=>t[e].resume()))}return this}each(e){B(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,V(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&&V(t,(([e,t])=>{t.value=a,e(t,this,this._item)})),i&&(this._started=!1,V(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)}g.onFrame(this._onFrame)}};function yn(e,t){return Promise.all(t.map((t=>bn(e,t)))).then((t=>Kt(e,t)))}async function bn(e,t,n){const{keys:r,to:o,from:i,loop:a,onRest:s,onResolve:l}=t,c=j.obj(t.default)&&t.default;a&&(t.loop=!1),!1===o&&(t.to=null),!1===i&&(t.from=null);const u=j.arr(o)||j.fun(o)?o:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):F(mn,(n=>{const r=t[n];if(j.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,H(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===zt(t,"cancel");(u||h&&d.asyncId)&&p.push(Vt(++e._lastAsyncId,{props:t,state:d,actions:{pause:O,resume:O,start(t,n){h?(Wt(d,e._lastAsyncId),n(Ut(e))):(t.onRest=s,n(qt(u,t,d,e)))}}})),d.paused&&await new Promise((e=>{d.resumeQueue.add(e)}));const f=Kt(e,await Promise.all(p));if(a&&f.finished&&(!n||!f.noop)){const n=ln(t,a,o);if(n)return Cn(e,[n]),bn(e,n,!0)}return l&&g.batchedUpdates((()=>l(f,e,e.item))),f}function wn(e,t){const n={...e.springs};return t&&F(L(t),(e=>{j.und(e.keys)&&(e=cn(e)),j.obj(e.to)||(e={...e,to:void 0}),_n(n,e,(e=>Sn(e)))})),xn(e,n),n}function xn(e,t){B(t,((t,n)=>{e.springs[n]||(e.springs[n]=t,Be(t,e))}))}function Sn(e,t){const n=new an;return n.key=e,t&&Be(n,t),n}function _n(e,t,n){t.keys&&F(t.keys,(r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)}))}function Cn(e,t){F(t,(t=>{_n(e.springs,t,(t=>Sn(t,e)))}))}var En,kn,zn=({children:e,...t})=>{const n=(0,r.useContext)(Pn),o=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=function(e,t){const[n]=(0,r.useState)((()=>({inputs:t,result:e()}))),o=(0,r.useRef)(),i=o.current;let a=i;a?Boolean(t&&a.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,a.inputs))||(a={inputs:t,result:e()}):a=n;return(0,r.useEffect)((()=>{o.current=a,i==n&&(n.inputs=n.result=void 0)}),[a]),a.result}((()=>({pause:o,immediate:i})),[o,i]);const{Provider:a}=Pn;return r.createElement(a,{value:t},e)},Pn=(En=zn,kn={},Object.assign(En,r.createContext(kn)),En.Provider._context=En,En.Consumer._context=En,En);zn.Provider=Pn.Provider,zn.Consumer=Pn.Consumer;var An=()=>{const e=[],t=function(t){tt(`${Xe}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 F(e,((e,o)=>{if(j.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 F(e,(e=>e.pause(...arguments))),this},t.resume=function(){return F(e,(e=>e.resume(...arguments))),this},t.set=function(t){F(e,((e,n)=>{const r=j.fun(t)?t(n,e):t;r&&e.set(r)}))},t.start=function(t){const n=[];return F(e,((e,r)=>{if(j.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 F(e,(e=>e.stop(...arguments))),this},t.update=function(t){return F(e,((e,n)=>e.update(this._getProps(t,e,n)))),this};const n=function(e,t,n){return j.fun(e)?e(n,t):e};return t._getProps=n,t};function Dn(e,t,n){const o=j.fun(t)&&t;o&&!n&&(n=[]);const i=(0,r.useMemo)((()=>o||3==arguments.length?An():void 0),[]),a=(0,r.useRef)(0),s=ot(),l=(0,r.useMemo)((()=>({ctrls:[],queue:[],flush(e,t){const n=wn(e,t);return a.current>0&&!l.queue.length&&!Object.keys(n).some((t=>!e.springs[t]))?yn(e,t):new Promise((r=>{xn(e,n),l.queue.push((()=>{r(yn(e,t))})),s()}))}})),[]),c=(0,r.useRef)([...l.ctrls]),u=[],d=st(e)||0;function p(e,n){for(let r=e;r<n;r++){const e=c.current[r]||(c.current[r]=new vn(null,l.flush)),n=o?o(r,e):t[r];n&&(u[r]=un(n))}}(0,r.useMemo)((()=>{F(c.current.slice(e,d),(e=>{jt(e,i),e.stop(!0)})),c.current.length=e,p(d,e)}),[e]),(0,r.useMemo)((()=>{p(0,Math.min(d,e))}),n);const h=c.current.map(((e,t)=>wn(e,u[t]))),f=(0,r.useContext)(zn),m=st(f),g=f!==m&&Nt(f);rt((()=>{a.current++,l.ctrls=c.current;const{queue:e}=l;e.length&&(l.queue=[],F(e,(e=>e()))),F(c.current,((e,t)=>{i?.add(e),g&&e.start({default:f});const n=u[t];n&&(Rt(e,n.ref),e.ref?e.queue.push(n):e.start(n))}))})),it((()=>()=>{F(l.ctrls,(e=>e.stop(!0)))}));const v=h.map((e=>({...e})));return i?[v,i]:v}function Tn(e,t){const n=j.fun(e),[[r],o]=Dn(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,o]:r}var In=class extends Xt{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=_e(...t);const n=this._get(),r=bt(n);ut(this,r.create(n))}advance(e){const t=this._get();R(t,this.get())||(ct(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Nn(this._active)&&On(this)}_get(){const e=j.arr(this.source)?this.source.map(Ne):L(Ne(this.source));return this.calc(...e)}_start(){this.idle&&!Nn(this._active)&&(this.idle=!1,F(dt(this),(e=>{e.done=!1})),N.skipAnimation?(g.batchedUpdates((()=>this.advance())),On(this)):ee.start(this))}_attach(){let e=1;F(L(this.source),(t=>{Me(t)&&Be(t,this),Zt(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){F(L(this.source),(e=>{Me(e)&&Le(e,this)})),this._active.clear(),On(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=L(this.source).reduce(((e,t)=>Math.max(e,(Zt(t)?t.priority:0)+1)),0))}};function Mn(e){return!1!==e.idle}function Nn(e){return!e.size||Array.from(e).every(Mn)}function On(e){e.idle||(e.idle=!0,F(dt(e),(e=>{e.done=!0})),je(e,{type:"idle",parent:e}))}N.assign({createStringInterpolator:Je,to:(e,t)=>new In(e,t)});ee.advance;var jn=n(40961),Rn=/^--/;function Fn(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||Rn.test(e)||Ln.hasOwnProperty(e)&&Ln[e]?(""+t).trim():t+"px"}var Bn={};var Ln={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},Vn=["Webkit","Ms","Moz","O"];Ln=Object.keys(Ln).reduce(((e,t)=>(Vn.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),Ln);var Kn=/^(matrix|translate|scale|rotate|skew)/,$n=/^(translate)/,Hn=/^(rotate|skew)/,Un=(e,t)=>j.num(e)&&0!==e?e+t:e,qn=(e,t)=>j.arr(e)?e.every((e=>qn(e,t))):j.num(e)?e===t:parseFloat(e)===t,Wn=class extends gt{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=>Un(e,"px"))).join(",")})`,qn(e,0)]))),B(r,((e,t)=>{if("transform"===t)o.push([e||""]),i.push((e=>[e,""===e]));else if(Kn.test(t)){if(delete r[t],j.und(e))return;const n=$n.test(t)?"px":Hn.test(t)?"deg":"";o.push(L(e)),i.push("rotate3d"===t?([e,t,r,o])=>[`rotate3d(${e},${t},${r},${Un(o,n)})`,qn(o,0)]:e=>[`${t}(${e.map((e=>Un(e,n))).join(",")})`,qn(e,t.startsWith("scale")?1:0)])}})),o.length&&(r.transform=new Gn(o,i)),super(r)}},Gn=class extends Re{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 F(this.inputs,((n,r)=>{const o=Ne(n[0]),[i,a]=this.transforms[r](j.arr(o)?o:n.map(Ne));e+=" "+i,t=t&&a})),t?"none":e}observerAdded(e){1==e&&F(this.inputs,(e=>F(e,(e=>Me(e)&&Be(e,this)))))}observerRemoved(e){0==e&&F(this.inputs,(e=>F(e,(e=>Me(e)&&Le(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),je(this,e)}};N.assign({batchedUpdates:jn.unstable_batchedUpdates,createStringInterpolator:Je,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 Yn=((e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:n=(e=>new gt(e)),getComponentProps:r=(e=>e)}={})=>{const o={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=e=>{const t=_t(e)||"Anonymous";return(e=j.str(e)?i[e]||(i[e]=wt(e,o)):e[St]||(e[St]=wt(e,o))).displayName=`Animated(${t})`,e};return B(e,((t,n)=>{j.arr(e)&&(n=_t(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:Bn[t]||(Bn[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=Fn(t,r[t]);Rn.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 Wn(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Zn=Yn.animated,Jn=n(8521),Xn=n(54910);let Qn=null;class er{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 tr=Object.defineProperty;function nr(...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 rr=new Set(["id"]),or=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),ir=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),ar=/^(data-.*)$/;function sr(e,t={}){let{labelable:n,isLink:r,propNames:o}=t,i={};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(rr.has(t)||n&&or.has(t)||r&&ir.has(t)||o?.has(t)||ar.test(t))&&(i[t]=e[t]);return i}function lr({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 cr(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 ur(e,t,n){return(t=cr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dr(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 pr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dr(Object(n),!0).forEach((function(t){ur(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hr(e,t){var n={};for(var r in e)n[r]=t(e[r],r);return n}var fr=(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},mr=e=>{var t=t=>{var n=e.defaultClassName,r=pr(pr({},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)fr(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 hr(e.variantClassNames,(e=>hr(e,(e=>e.split(" ")[0]))))}},t},gr=mr({defaultClassName:"x0o33h6 _1yep5z6in _1yep5z6io _1yep5z6ip _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:[]}),vr=mr({defaultClassName:"x0o33h3 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6k8 _1yep5z6k9 _1yep5z6ka _1yep5z6j8 _1yep5z6j9 _1yep5z6ja",variantClassNames:{variant:{wide:"x0o33h4 _1yep5z63r _1yep5z63y _1yep5z63z _1yep5z61f _1yep5z61m _1yep5z61n _1yep5z6g3",narrow:"x0o33h5 _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h"}},defaultVariants:{},compoundVariants:[]}),yr=mr({defaultClassName:"x0o33h0 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6it _1yep5z6iu _1yep5z6iv",variantClassNames:{variant:{narrow:"_1yep5z6g1",wide:"x0o33h2"}},defaultVariants:{},compoundVariants:[]}),br=(0,o.defineMessages)({signatures:{defaultMessage:"Signatures",id:"signatures"},addSignature:{defaultMessage:"Add Signature",id:"addSignature"},cancel:{defaultMessage:"Cancel",id:"cancel"},delete:{defaultMessage:"Delete",id:"delete"}}),wr=r.forwardRef((({children:e,state:t,onStateChange:n,initialState:l,...c},u)=>{let d=r.useRef(null),p={...c,...lr({ref:d,initialState:l,state:t,onChange:n}),ref:nr(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)(yr({variant:h}),e),ref:l,"data-block-id":m,"data-block-class":g,children:[(0,s.FD)("div",{className:vr({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(br.signatures)}),"wide"===h&&(0,s.Y)(o.ActionButton,{id:"add-signature",size:"md",label:f(br.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 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6k8 _1yep5z6k9 _1yep5z6ka _1yep5z6j8 _1yep5z6j9 _1yep5z6ja",children:[(0,s.Y)(o.Text,{type:"subtitle",size:"sm",children:f(br.addSignature)}),(0,s.Y)(o.ActionIconButton,{variant:"secondary",size:"md",icon:a.c1,onPress:c,"data-block-id":"add-signature","aria-label":f(br.addSignature)})]})]}):null,(0,s.Y)("div",{className:(0,i.xW)(gr({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(br.addSignature),onPress:()=>u?.(e),onDelete:d?()=>{d(e)}:void 0,deleteAriaLabel:f(br.delete)},e)))}),!v&&(0,s.Y)("div",{className:"_1yep5z63r _1yep5z63y _1yep5z63z _1yep5z61f _1yep5z61m _1yep5z61n _1yep5z69 _1yep5z6d _1yep5z6e _1yep5z62l _1yep5z62p _1yep5z62q _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6k5 _1yep5z6k6 _1yep5z6k7 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6g3","data-block-id":"footer",children:(0,s.Y)(o.ActionButton,{variant:"secondary",size:"md",label:f(br.cancel),onPress:p,"data-block-id":"cancel",className:"PSPDFKit-Signature-Dialog-Cancel-Button"})}),v?y:null]})})(p);return e?e({...p,ui:h}):h.createComponent()}));wr.displayName="SignaturesList";var xr=r.forwardRef((({children:e,initialState:t={},state:n,onStateChange:i,...a},l)=>{let c=r.useRef(null),u={...a,...lr({ref:c,initialState:t,state:n,onChange:i}),ref:nr(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 e?e({...u,ui:d}):d.createComponent()}));xr.displayName="DialogModal";var Sr,_r=mr({defaultClassName:"_1pebngc18 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6lc",variantClassNames:{variant:{wide:"_1pebngc19",narrow:"_1yep5z63r _1yep5z63y _1yep5z63z _1yep5z619 _1yep5z61j _1yep5z61k _1yep5z63 _1yep5z67 _1yep5z68 _1yep5z62f _1yep5z62j _1yep5z62k _1yep5z6g1"}},defaultVariants:{},compoundVariants:[]}),Cr=mr({defaultClassName:"_1pebngc6 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6it _1yep5z6iu _1yep5z6iv",variantClassNames:{variant:{wide:"_1pebngc7",narrow:"_1pebngc8"}},defaultVariants:{},compoundVariants:[]}),Er=mr({defaultClassName:"_1pebngc0",variantClassNames:{variant:{wide:"_1pebngc1",narrow:"_1pebngc2"}},defaultVariants:{},compoundVariants:[]}),kr=mr({defaultClassName:"_1pebngc15 _1yep5z63r _1yep5z63y _1yep5z63z _1yep5z61f _1yep5z61m _1yep5z61n _1yep5z69 _1yep5z6d _1yep5z6e _1yep5z62l _1yep5z62p _1yep5z62q _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6k8 _1yep5z6k9 _1yep5z6ka",variantClassNames:{variant:{wide:"_1yep5z6g3",narrow:"_1yep5z6g1"}},defaultVariants:{},compoundVariants:[]}),zr=mr({defaultClassName:"_1pebngc3 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6k8 _1yep5z6k9 _1yep5z6ka _1yep5z6j8 _1yep5z6j9 _1yep5z6ja",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:[]}),Pr=mr({defaultClassName:"_1pebngcs _1pebngch _1yep5z6lc",variantClassNames:{variant:{wide:"_1pebngct",narrow:"_1pebngcu"}},defaultVariants:{},compoundVariants:[]}),Ar=mr({defaultClassName:"_1pebngcm",variantClassNames:{variant:{wide:"_1pebngcn",narrow:"_1pebngco"}},defaultVariants:{},compoundVariants:[]}),Dr=mr({defaultClassName:"_1pebngch _1yep5z6lc _1yep5z6ld",variantClassNames:{variant:{wide:"_1yep5z65c _1yep5z65d _1yep5z65e",narrow:"_1pebngcr"}},defaultVariants:{},compoundVariants:[]}),Tr=mr({defaultClassName:"_1pebngcv _1pebngch _1yep5z6lc",variantClassNames:{variant:{wide:"_1pebngct",narrow:"_1pebngcx"}},defaultVariants:{},compoundVariants:[]}),Ir=mr({defaultClassName:"_1pebngcy _1pebngch _1yep5z6lc",variantClassNames:{variant:{wide:"_1pebngcz",narrow:"_1pebngc10"}},defaultVariants:{},compoundVariants:[]}),Mr=mr({defaultClassName:"_1pebngci _1pebngch _1yep5z6lc",variantClassNames:{variant:{wide:"_1pebngcj",narrow:"_1yep5z6af _1yep5z6ag _1yep5z6ah"}},defaultVariants:{},compoundVariants:[]}),Nr=mr({defaultClassName:"_1pebngc9 _1yep5z6l9",variantClassNames:{variant:{wide:"_1pebngca _1yep5z63r _1yep5z63y _1yep5z63z _1yep5z61f _1yep5z61m _1yep5z61n _1yep5z6g3",narrow:"_1pebngcb _1yep5z64l _1yep5z63s _1yep5z63t _1yep5z629 _1yep5z61g _1yep5z61h _1yep5z6g1"}},defaultVariants:{},compoundVariants:[]}),Or=mr({defaultClassName:"_1pebngcc _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6it _1yep5z6iu _1yep5z6iv _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6ld",variantClassNames:{type:{image:"_1yep5z6c _1yep5z6d _1yep5z6e _1yep5z62o _1yep5z62p _1yep5z62q _1yep5z6k2 _1yep5z6k3 _1yep5z6k4",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:[]}),jr=((Sr=jr||{}).DRAW="DRAW",Sr.TYPE="TYPE",Sr.IMAGE="IMAGE",Sr);mr({defaultClassName:"yje7uq8 _1yep5z6ew _1yep5z6dv",variantClassNames:{isDisabled:{true:"_1yep5z610q"}},defaultVariants:{},compoundVariants:[]});mr({defaultClassName:"yje7uq0 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6iq _1yep5z6ir _1yep5z6is",variantClassNames:{labelPosition:{end:"_1yep5z614i _1yep5z614j _1yep5z614k _1yep5z6va _1yep5z6vb _1yep5z6vc",start:"_1yep5z614o _1yep5z614p _1yep5z614q _1yep5z6160 _1yep5z6161 _1yep5z6162"}},defaultVariants:{},compoundVariants:[]});var Rr=mr({defaultClassName:"yje7uq3 _1dlrtbb6",variantClassNames:{isFocusVisible:{true:"_1dlrtbb9"},isSelected:{true:"_1dlrtbb8"},isDisabled:{true:"_1dlrtbbb"}},defaultVariants:{},compoundVariants:[]}),Fr=({item:{id:e,label:t},options:{isSelected:n,isFocusVisible:r,isDisabled:o}})=>(0,u.jsxs)("div",{className:(0,i.xW)("_1pebngc12 _1yep5z63x _1yep5z63y _1yep5z63z _1yep5z61l _1yep5z61m _1yep5z61n _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6ev _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6le","PSPDFKit-Electronic-Signatures-Font-Family-Wrapper"),"aria-label":e,style:{fontFamily:e},children:[(0,u.jsx)("div",{className:Rr({isSelected:n,isFocusVisible:r,isDisabled:o}),children:n?(0,u.jsx)("div",{className:(0,i.xW)("yje7uq7","PSPDFKit-Electronic-Signatures-Font-Family-Radio-Input")}):null}),(0,u.jsx)("span",{className:"PSPDFKit-Electronic-Signatures-Font-Family-Label",children:t})]}),Br=r.forwardRef((({children:e,initialState:t,state:n,onStateChange:u,...d},p)=>{let h=lr({initialState:{selectedFont:d.fonts[0],color:d.colorPresets[0].color||"#000000",shouldStoreSignature:!1,currentTab:d.allowedTabs?.[0]||"DRAW",...t},state:n,onChange:u}),f={...d,...h,ref:p},m=(({className:e,style:t,colorPresets:n,state:u,ref:d,intl:{formatMessage:p},titleId:h,fonts:f,onCloseRequest:m,onAdd:g,variant:v="wide",allowedTabs:y=["DRAW","IMAGE","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=>{u.set("ink",e.length?e:void 0)}),[u]),E=r.useCallback((e=>{u.set("image",e?.[0]||null)}),[u]),k=(0,r.useMemo)((()=>(0,s.Y)(o.ColorSwatchPicker,{items:n||[],"aria-label":S?void 0:p("color"),className:(0,i.xW)(_r({variant:v}),"PSPDFKit-Input-ColorPicker"),value:u.get("color"),onChange:e=>{e&&u.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,u,v]),z=(0,r.useCallback)((e=>{switch(e){case"DRAW":return(0,s.FD)(o.TabItem,{title:p("draw"),value:"DRAW",titleClassName:"PSPDFKit-Electronic-Signatures-Tab PSPDFKit-Electronic-Signatures-Tab-Draw",className:Or({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:u.get("color"),className:"_1pebngch _1yep5z6lc _1yep5z6ld",isInline:!S,value:u.get("ink"),canvasRef:_,canvasClassName:(0,i.xW)(Pr({variant:v}),"PSPDFKit-Electronic-Signatures-Canvas"),footerClassName:(0,i.xW)(Ar({variant:v}),{"PSPDFKit-Electronic-Signatures-Sign-Here-Label":!u.get("ink"),"PSPDFKit-Electronic-Signatures-Clear-Signature-Button":u.get("ink")}),onChange:C}),S?k:null]},e);case"IMAGE":return(0,s.Y)(o.TabItem,{title:p("image"),value:"IMAGE",titleClassName:"PSPDFKit-Electronic-Signatures-Tab PSPDFKit-Electronic-Signatures-Tab-Image",className:Or({type:"image",variant:v}),"data-block-id":"image-tab",children:(0,s.Y)(o.ImageDropZone,{className:(0,i.xW)(Dr({variant:v}),"PSPDFKit-Electronic-Signatures-Image-Dropzone"),pickerButtonClassName:u.get("image")?"PSPDFKit-Electronic-Signatures-Replace-Image-Button":"PSPDFKit-Electronic-Signatures-Add-Image-Button",labelClassName:Tr({variant:v}),isInline:!S,"data-block-id":"image-drop-zone",onValueChange:E,imageSrc:u.get("image"),placeholder:p("selectDragImage"),footerClassName:Ar({variant:v}),clearLabel:p("clearSignature"),accept:"image/jpeg, image/png,"})},e);case"TYPE":return(0,s.FD)(o.TabItem,{title:p("type"),value:"TYPE",titleClassName:"PSPDFKit-Electronic-Signatures-Tab PSPDFKit-Electronic-Signatures-Tab-Type","data-block-id":"type-tab",children:[(0,s.FD)("div",{className:Or({type:"type",variant:v}),children:[!S&&k,(0,s.Y)(l.SignatureTextInput,{inputStyle:{color:u.get("color"),fontFamily:u.get("selectedFont")},placeholder:p("signature"),onChange:e=>{u.set("text",e)},label:p("signHere"),"data-block-id":"signature-text-input",value:u.get("text"),inputClassName:(0,i.xW)(Ir({variant:v}),"PSPDFKit-Electronic-Signatures-Text-Input"),className:(0,i.xW)(Mr({variant:v}),"PSPDFKit-Text-Input"),clearLabel:p("clearSignature"),isInline:!S,footerStyle:{padding:S?c.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:u.get("text")||p("signature")}))),"data-block-id":"font-selector",value:u.get("selectedFont"),onChange:e=>{u.set("selectedFont",e)},optionClassName:"_1pebngc13 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6j8 _1yep5z6j9 _1yep5z6ja","aria-label":p("fonts"),renderOption:(e,t)=>(0,s.Y)(Fr,{item:e,options:t}).createComponent()}),S?k:null,S?(0,s.Y)(o.Select,{isReadOnly:1===f.length,labelPosition:"start",label:"Font","data-block-id":"font-selector",className:_r({variant:v}),placement:"bottom end",selectedKey:u.get("selectedFont"),onSelectionChange:e=>{u.set("selectedFont",e)},style:{fontFamily:u.get("selectedFont")},variant:"ghost",items:f.map((e=>({id:e,label:u.get("text")||p("signature")})))}):null]},e)}}),[p,v,S,k,u,C,E,f]),P=u.get("currentTab"),A=(0,r.useCallback)((()=>{switch(P){case"DRAW":return{type:"DRAW",value:u.get("ink")};case"IMAGE":return{type:"IMAGE",value:u.get("image")};case"TYPE":return{type:"TYPE",value:u.get("text")}}}),[P,u]);return(0,s.FD)("div",{className:(0,i.xW)(Er({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:zr({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)(Cr({variant:v}),"PSPDFKit-Electronic-Signatures-Tabs-Container"),children:(0,s.Y)(o.Tabs,{variant:"ghost","data-block-id":"tabs",className:"_1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6it _1yep5z6iu _1yep5z6iv _1yep5z6jt _1yep5z6ju _1yep5z6jv",tabHeaderClassName:(0,i.xW)(Nr({variant:v}),"PSPDFKit-Electronic-Signatures-Tabs-List"),onSelectionChange:e=>{u.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:kr({variant:v}),children:[b?(0,s.Y)(o.Checkbox,{isSelected:u.get("shouldStoreSignature"),"data-block-id":"save-signature-checkbox",label:p("saveSignature"),className:"PSPDFKit-Electronic-Signatures-Store-Signature-Checkbox",onChange:e=>{u.set("shouldStoreSignature",e)}}):(0,s.Y)("div",{}),(0,s.FD)("div",{className:"_1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _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({...u.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 e?e({...f,ui:m}):m.createComponent()}));Br.displayName="CreateSignature";var Lr="_1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z69l _1yep5z69m _1yep5z69n",Vr="dabjfd2 dabjfd0 _1yep5z63r _1yep5z63y _1yep5z63z _1yep5z61f _1yep5z61m _1yep5z61n _1yep5z6c _1yep5z6d _1yep5z6e _1yep5z62o _1yep5z62p _1yep5z62q _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6k2 _1yep5z6k9 _1yep5z6ka _1yep5z6j5 _1yep5z6j9 _1yep5z6ja _1yep5z6g3 _1yep5z6it _1yep5z6ir _1yep5z6is _1yep5z69l _1yep5z6ag _1yep5z6ah _1yep5z6lv _1yep5z6o7 _1yep5z615x _1yep5z615y _1yep5z615z _1yep5z6150 _1yep5z6151 _1yep5z6152 _1yep5z614i _1yep5z614j _1yep5z614k",Kr="dabjfd0 _1yep5z63r _1yep5z63y _1yep5z63z _1yep5z61f _1yep5z61m _1yep5z61n _1yep5z6c _1yep5z6d _1yep5z6e _1yep5z62o _1yep5z62p _1yep5z62q _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6k2 _1yep5z6k9 _1yep5z6ka _1yep5z6j5 _1yep5z6j9 _1yep5z6ja _1yep5z6g3 _1yep5z6it _1yep5z6ir _1yep5z6is _1yep5z69l _1yep5z6ag _1yep5z6ah",$r="_1yep5z63r _1yep5z63y _1yep5z63z _1yep5z61f _1yep5z61m _1yep5z61n _1yep5z69 _1yep5z6d _1yep5z6e _1yep5z62l _1yep5z62p _1yep5z62q";function Hr(e){return(0,i.Zt)(e,80)}var Ur=r.forwardRef((({children:e,initialState:t={},state:n,onStateChange:a,...c},u)=>{let p=r.useRef(null),h=lr({ref:p,initialState:{color:c.colorPresets[0].color,includeDate:!0,includeTime:!1,...t},state:n,onChange:a}),f={...c,...h,ref:nr(u,p)},m=(({intl:{formatMessage:e},titleId:t,className:n,state:a,device:c,onCloseRequest:u,ref:p,onCreate:h,colorPresets:f,onExistingStampPress:m,getLighterVariant:g=Hr,"data-block-id":v="create-stamp","data-block-class":y})=>{let b=(0,d.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:p,className:n,"data-block-id":v,"data-block-class":y,children:[(0,s.FD)("div",{"data-block-id":"header",className:(0,i.xW)(Kr,"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 _1yep5z6lq _1yep5z6lo _1yep5z6gz _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6k2 _1yep5z6k3 _1yep5z6k4","PSPDFKit-Stamp-Editor"),children:(0,s.Y)(l.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:$r,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:$r,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:$r,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"===c?"top":"start",label:e("chooseColor")})]}),(0,s.Y)("div",{"data-block-id":"footer",className:(0,i.xW)(Vr,"PSPDFKit-Modal-Section"),children:(0,s.FD)("div",{className:Lr,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 e?e({...f,ui:m}):m.createComponent()}));Ur.displayName="CreateStamp";var qr=r.forwardRef((({children:e,initialState:t={},state:n,onStateChange:a,...l},c)=>{let u=r.useRef(null),d={...l,...lr({ref:u,initialState:t,state:n,onChange:a}),ref:nr(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)(Kr,"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 _1yep5z6in _1yep5z6io _1yep5z6ip _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)(Vr,"PSPDFKit-Modal-Section"),children:(0,s.Y)("div",{className:Lr,children:(0,s.Y)(o.ActionButton,{onPress:c,size:"md",label:e("cancel"),variant:"secondary","data-block-id":"cancel-button"})})})]}))(d);return e?e({...d,ui:p}):p.createComponent()}));qr.displayName="StampsList";var Wr="_1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6l3",Gr="_1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6it _1yep5z6iu _1yep5z6iv _1yep5z69i _1yep5z69j _1yep5z69k",Yr="_443wcr6";function Zr({error:e}){return(0,u.jsx)(o.InlineAlert,{title:e.title,description:e.description,variant:"error",arrangement:"compact",actionLabel:e.action?.text,onAction:e.action?.onPress})}function Jr({actions:e,suggestions:t=[]}){return(0,u.jsxs)(o.Box,{display:"flex",gap:"md",flexDirection:"column",children:[t?.length>0&&(0,u.jsx)("div",{className:Wr,children:t.map((({text:e,onPress:t},n)=>(0,u.jsx)(o.Link,{variant:"inline",onPress:t,size:"sm",children:e},n)))}),(0,u.jsx)("div",{className:Wr,children:e.map((({text:e,onPress:t},n)=>(0,u.jsx)(o.ActionButton,{variant:"tertiary",label:e,onPress:t,size:"sm"},n)))})]})}function Xr({additionalContext:e,linkToAdditionalContext:t,actions:n}){return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{className:"_1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6fw",children:(0,u.jsx)(o.Text,{type:"body",size:"sm",className:"_443wcr5",children:e})}),(0,u.jsx)(o.Link,{onPress:t.onPress,size:"sm",children:t.text}),(0,u.jsx)("div",{className:Wr,children:n.map((({text:e,onPress:t},n)=>(0,u.jsx)(o.ActionButton,{variant:"tertiary",label:e,onPress:t,size:"sm"},n)))})]})}function Qr({suggestions:e}){return(0,u.jsx)("div",{className:Gr,children:e.map((({text:e,onPress:t},n)=>(0,u.jsx)(o.Link,{variant:"inline",onPress:t,size:"sm",children:e},n)))})}function eo({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),d=l?Math.min(e.length,5*i):15*i;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("div",{className:Gr,children:[e.slice(c,d).map((({text:e,onPress:t},n)=>(0,u.jsxs)(o.Box,{display:"flex",alignItems:"center",gap:"sm",color:"icon.primary",children:[(0,u.jsx)(o.Box,{display:"flex",alignItems:"center",children:(0,u.jsx)(p.fl,{size:16})}),(0,u.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,u.jsx)(o.Pagination,{"aria-label":s(to.viewMoreResults),variant:"pinned",maxValue:Math.ceil(e.length/15),onChange:a,size:"xs"}),l&&d<e.length?(0,u.jsx)(o.Link,{onPress:()=>{a((e=>e+1))},size:"sm",children:s("showMore")}):null]}),(0,u.jsx)(o.Text,{type:"body",size:"sm",children:n}),(0,u.jsx)("div",{className:Wr,children:t.map((({text:e,onPress:t},n)=>(0,u.jsx)(o.ActionButton,{variant:"tertiary",label:e,onPress:t,size:"sm"},n)))})]})}var to=(0,o.defineMessages)({viewMoreResults:{id:"viewMoreResults",defaultMessage:"View More Results"}}),no="ACTIONS",ro="ERROR",oo="SUGGESTIONS",io="ADDITIONAL_CONTEXT",ao="QUERY_RESULT",so=(0,o.defineMessages)({chat:{id:"chat",defaultMessage:"Chat"},readMore:{id:"readMore",defaultMessage:"Read More"},typeSomething:{id:"typeSomething",defaultMessage:"Type something..."}}),lo=r.forwardRef((({children:e,initialState:t={},...n},a)=>{let c=r.useRef(null),u={...n,...lr({ref:c,initialState:t}),ref:nr(a,c)},d=(({intl:{formatMessage:e},className:t,titleId:n,"data-block-id":a="chat-dialog","data-block-class":c,messages:u,onMessageSubmit:d,onInputChanged:h,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":c,className:(0,i.xW)("_1yep5z6ld _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6it _1yep5z6iu _1yep5z6iv",t),style:b,"aria-labelledby":n,children:[f?(0,s.Y)(o.ProgressSpinner,{className:"_1yep5z6lc _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6jt _1yep5z6ju _1yep5z6jv _1yep5z6g2 _1yep5z6k2 _1yep5z6k3 _1yep5z6k4","aria-label":e("loading")}):null,Array.isArray(u)&&!f&&(0,s.Y)("div",{className:"_443wcr1 _1yep5z6lc _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6iz _1yep5z6j0 _1yep5z6j1 _1yep5z69f _1yep5z69g _1yep5z69h _1yep5z6jt _1yep5z6ju _1yep5z6jv _1yep5z6g2",ref:x,children:(0,s.Y)("div",{className:"_443wcr2",children:u.map((({id:t,type:n,isComplete:a,canCopy:c,text:d,...h},f)=>{let m;switch(n){case ro:{let{error:e}=h;m=(0,s.Y)(Zr,{error:e});break}case no:{let{actions:e,suggestions:t}=h;m=(0,s.Y)(Jr,{actions:e,suggestions:t});break}case oo:{let{suggestions:e}=h;m=(0,s.Y)(Qr,{suggestions:e});break}case io:{let{additionalContext:e,linkToAdditionalContext:t,actions:n}=h;m=(0,s.Y)(Xr,{actions:n,additionalContext:e,linkToAdditionalContext:t});break}case ao:{let{links:e,actionsText:t,actions:n}=h;m=(0,s.Y)(eo,{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)(l.Comment,{avatarProps:{name:h.sender,showInitials:!0},content:g.createComponent(),name:h.sender,isInline:"full-width"!==v,children:[m,c?(0,s.Y)(o.Box,{children:(0,s.Y)(o.ActionIconButton,{variant:"secondary",icon:p.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)(Yr,{"_443wcr7 _1yep5z68u _1yep5z68v _1yep5z68w":"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(so.readMore),scrollRef:x})}),(0,s.Y)(o.Separator,{className:Yr}),(0,s.Y)(o.Editor,{isDisabled:m,isSaveDisabled:g,onChange:h,onSave:d,placeholder:e(so.typeSomething),variant:"minimal",isInline:!1,className:"_443wcr3 _1yep5z6c0 _1yep5z6c1 _1yep5z6c2 _1yep5z6co _1yep5z6cp _1yep5z6cq _1yep5z6lc",value:y,editorHandle:w,saveOnEnter:!0})]})})(u);return e?e({...u,ui:d}):d.createComponent()}));lo.displayName="ChatDialog";var co=mr({defaultClassName:"_1slx693c _1yep5z6jt _1yep5z6ju _1yep5z6jv",variantClassNames:{isEmptyState:{true:"_1slx693d"}},defaultVariants:{},compoundVariants:[]}),uo=mr({defaultClassName:"_1slx693f _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z69f _1yep5z69g _1yep5z69h _1yep5z6lf",variantClassNames:{isFocused:{true:"_1slx693g"},isSelected:{true:"_1slx693h"}},defaultVariants:{},compoundVariants:[]}),po=e=>((0,i.V1)(e.value&&"icon"in e.value&&e.value.icon,"Item value is required."),(0,u.jsx)(o.ActionIconButton,{"aria-label":e.textValue,icon:e.value.icon,variant:"secondary",size:"md"})),ho="prev-change",fo="next-change",mo=(0,r.forwardRef)((({children:e,initialState:t={},state:n,onStateChange:a,...l},c)=>{let u=(0,r.useRef)(null),d={...l,...lr({ref:u,initialState:t,state:n,onChange:a}),ref:nr(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:m,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,h.D)({"var(--_1slx6930)":e,"var(--_1slx6931)":t,"var(--_1slx6932)":n,"var(--_1slx6933)":r,"var(--_1slx6934)":o,"var(--_1slx6935)":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 _1yep5z6ie _1yep5z6if _1yep5z6ig",g,"PSPDFKit-DiffViewer-SectionHeader"),ref:t,children:(0,s.Y)(o.Text,{type:"subtitle",size:"sm",children:n})}).createComponent()}),[g]),T=(0,r.useMemo)((()=>u.map((e=>({...e,title:`Page ${e.pageNumber}`})))),[u]),I=E>1?[{id:ho,label:0===Number(w)?"Last Change":"Previous Change",icon:f.SwV,data:{className:"PSPDFKit-DiffViewer-Button-Prev"}},{id:fo,label:Number(w)===E-1?"First Change":"Next Change",icon:f.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 fo:v?.();break;case ho:y?.()}},renderActionItem:po})]}),(0,s.Y)("div",{className:(0,i.xW)(co({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:m,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)(uo({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]})]})})}).createComponent()},className:"_1slx693e"})})]})})(d);return e?e({...d,ui:p}):p.createComponent()}));mo.displayName="DiffViewer";var go=mr({defaultClassName:"_1aicd310 _1yep5z6b3 _1yep5z6ap _1yep5z6aq _1yep5z6br _1yep5z6bd _1yep5z6be _1yep5z6cf _1yep5z6c1 _1yep5z6c2 _1yep5z6d3 _1yep5z6cp _1yep5z6cq _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6it _1yep5z6iu _1yep5z6iv _1yep5z6g2 _1yep5z6i2 _1yep5z6i3 _1yep5z6i4",variantClassNames:{variant:{popover:"_1yep5z6149 _1yep5z614a _1yep5z614b _1yep5z614l _1yep5z614m _1yep5z614n _1yep5z615l _1yep5z615m _1yep5z615n",sidebar:"_1aicd312"}},defaultVariants:{},compoundVariants:[]}),vo=mr({defaultClassName:"_1aicd313 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6d7",variantClassNames:{isEmpty:{true:"_1aicd314",false:"_1aicd315"}},defaultVariants:{},compoundVariants:[]});var yo={from:{opacity:0},enter:{opacity:1},leave:{opacity:0}},bo=({ref:e,className:t,style:n,state:a,comments:u,intl:{formatMessage:p},"data-block-id":h="comment-thread","data-block-class":f,titleId:m,variant:g="sidebar",onEditorValueChange:v,onCommentAdd:y,onCommentUpdate:b,onDelete:w,device:x,portalContainer:S,mentionableUsers:_,editorFooterButtons:C,onAnonymousToggle:E,maxMentionableUsersSuggestions:k,onPress:z,allowCommentCreation:P=!0,defaultEditorValue:A,renderAvatar:D,...T})=>{let I=r.useRef(null),[M,N]=r.useState(new Set),O=a.get("isExpanded"),j=0===u.length,R=(0,i.nP)({"data-block-id":h,"data-block-class":f,"data-expanded":O,"data-empty":j}),F=function({initialHeight:e,finalHeight:t,isExpanded:n}){let[r,o]=Tn((()=>({from:{height:"auto"}})));return(0,Jn.useGranularLayoutEffect)((()=>{n?o.start({height:t(),onRest:()=>{o.start({height:"auto",immediate:!0})}}):o.start({height:e()})}),[n],[o,t,e]),r}({initialHeight:()=>(I.current?.offsetHeight||0)+2,finalHeight:()=>(L.current?.offsetHeight||0)+2,isExpanded:O}),B=P?(0,s.Y)(o.Editor,{className:(0,i.xW)(vo({isEmpty:j}),"PSPDFKit-Comment-Editor"),enableRichText:!0,isInline:!1,mentionableUsers:_?.length?_:void 0,maxMentionableUsersSuggestions:k,footerButtons:C,placeholder:p(wo.commentEditorLabel),onSave:y,"data-block-id":"editor",onChange:v,clearOnSave:!0,autoFocus:!u.length,"aria-label":p(wo.commentEditorLabel),defaultValue:A}):null,{ref:L,...V}=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}}(z),K=(0,d.Bi)(m),$=(0,r.useMemo)((()=>({canEdit:{id:"edit",label:p(wo.editContent)},canDelete:{id:"delete",label:p(wo.deleteComment)},canBeAnonymous:{id:"anonymous",label:p(wo.anonymous)}})),[p]),H=(0,r.useCallback)((e=>Object.entries($).filter((([t])=>!!e[t])).map((([,e])=>e))),[$]),U=(0,r.useCallback)((e=>function(e){return e.canEdit||e.canDelete||e.canBeAnonymous}(e)&&(O||"sidebar"!==g)?{items:H(e),"aria-label":p(wo.commentOptions),selectionMode:"single",selectedKeys:e.isAnonymous?["anonymous"]:[],onAction:t=>{switch(t){case"edit":N((t=>new Set(t.add(e.id))));break;case"delete":a.set("toDelete",e.id);break;case"anonymous":E?.(e.id,!e.isAnonymous)}}}:void 0),[p,H,O,E,a,g]),q=(0,r.useCallback)((e=>{let t,n=M.has(e.id),r=!e.avatarProps&&!D;return"function"==typeof D&&(t=D({comment:e}).node),{...e,"data-comment-id":e.id,"data-block-id":"comment",className:(0,i.xW)(e.className,{"_1yep5z6py _1yep5z6pz _1yep5z6q0":r},"PSPDFKit-Comment"),menuProps:U(e),avatarNode:t,content:n?(0,s.Y)(o.Editor,{style:{marginInlineStart:-36},spellCheck:!1,defaultValue:e.content,mentionableUsers:_,maxMentionableUsersSuggestions:k,enableRichText:!0,autoFocus:!0,onCancel:()=>{N((t=>new Set([...t].filter((t=>t!==e.id)))))},onSave:t=>{b?.(e.id,t),N((t=>new Set([...t].filter((t=>t!==e.id)))))},submitButtonAriaLabel:p(wo.edit),onChange:t=>v?.(t,e.id),clearOnSave:!0,cancelButtonAriaLabel:p(wo.discardChanges),"aria-label":p(wo.commentEditorLabel)}).createComponent():e.content}}),[M,p,U,k,_,b,v,D]),[W,...G]=u,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:K,type:"title",size:"sm",elementType:"h3","data-blockid":"title",children:p(wo.comments)})}),(0,s.Y)(o.Separator,{variant:"secondary"})]}),Z=W?(0,s.Y)(l.Comment,{"data-blockid":"comment",...q(W),children:"sidebar"===g&&!O&&(0,s.Y)(o.Link,{size:"sm",onPress:O?void 0:()=>{a.set("isExpanded",!0)},children:O||!G.length?void 0:p(wo.nMoreComments,{arg0:G.length})})}):B,J=G.map(((e,t)=>(0,s.FD)(r.Fragment,{children:[(0,s.Y)("div",{className:(0,c.UV)({paddingLeft:"5xl"}),children:(0,s.Y)(o.Separator,{variant:"secondary"})}),(0,s.Y)(l.Comment,{...q(e)})]},t)));return(0,r.useEffect)((()=>{u.length||a.set("isExpanded",!0)}),[u,a]),(0,r.useEffect)((()=>{O||N(new Set)}),[O]),(0,s.FD)(s.FK,{children:[(0,s.Y)(Zn.div,{"aria-labelledby":K,...(0,d.v6)(sr(T),R),role:"complementary",ref:e,style:{...n,height:"popover"===g||j?"auto":F.height},className:(0,i.xW)(go({variant:g}),{"PSPDFKit-Comment-Thread-Wrapper":!0,"PSPDFKit-Comment-Thread-Wrapper-Expanded":O,"PSPDFKit-Comment-Thread-Expanded":O},t),children:(0,s.Y)("div",{...z?V:{},ref:L,className:(0,i.xW)({_1aicd319:"sidebar"===g,"_1aicd318 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6it _1yep5z6iu _1yep5z6iv _1yep5z6jt _1yep5z6ju _1yep5z6jv":"sidebar"!==g,"_1aicd317 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6it _1yep5z6iu _1yep5z6iv":"mobile"===x&&"sidebar"!==g}),children:"sidebar"===g?(0,s.FD)(s.FK,{children:[(0,s.Y)("div",{ref:I,children:Z}),(G.length>0||!!W)&&(0,s.FD)(o.Transition,{isMounted:O,transitions:yo,children:[J,B]})]}):(0,s.FD)(s.FK,{children:["mobile"===x?(0,s.Y)(d.s6,{children:Y}):Y,(0,s.Y)("div",{className:"_1aicd316 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6jt _1yep5z6ju _1yep5z6jv _1yep5z6i2 _1yep5z6i3 _1yep5z6i4 _1yep5z6iz _1yep5z6j0 _1yep5z6j1 _1yep5z6jb _1yep5z6jc _1yep5z6jd",children:(0,s.FD)("div",{className:(0,c.UV)({display:"flex",flexDirection:"column",width:"full"}),children:[Z,J]})}),u.length?B:null]})})}),(0,s.Y)(o.Modal,{isOpen:!!a.get("toDelete"),onOpenChange:()=>{a.set("toDelete",null)},children:(0,s.Y)(o.ModalContent,{portalContainer:S,style:{zIndex:999999},children:(0,s.Y)(o.AlertDialog,{title:p(wo.deleteComment),message:p(wo.deleteCommentConfirmMessage),onCancel:()=>{a.set("toDelete",null)},cancelLabel:p(wo.cancel),primaryActionLabel:p(wo.delete),onPrimaryAction:()=>{w?.(a.get("toDelete")),a.set("toDelete",null)}})})})]})};var wo=(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"}}),xo=r.forwardRef((({children:e,initialState:t={},onStateChange:n,state:o,...i},a)=>{let s=r.useRef(null),l={...i,...lr({ref:s,initialState:t,state:o,onChange:n}),ref:nr(a,s)},c=bo(l);return e?e({...l,ui:c}):c.createComponent()}));xo.displayName="CommentThread";var So="_1gdjybca",_o=(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"}}),Co=r.forwardRef((({initialState:e,state:t,children:n,onStateChange:a,...l},c)=>{let u={...l,...lr({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)(So,n.className),...n},r);case"ToggleIconButton":return(0,s.Y)(o.ToggleIconButton,{className:(0,i.xW)(So,n.className),...n},r);case"ActionButton":return(0,s.Y)(o.ActionButton,{variant:"toolbar",className:(0,i.xW)(So,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]);return(0,s.FD)("div",{"data-block-id":p,ref:n,className:(0,i.xW)("_1gdjybc0 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6it _1yep5z6iu _1yep5z6iv",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 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6k2 _1yep5z6k3 _1yep5z6k4","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 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6it _1yep5z6iu _1yep5z6iv _1yep5z6g3",children:(0,s.Y)(o.ImageGallery,{"data-block-id":"document-editor-gallery",className:(0,i.xW)("_1gdjybc3"),items:a,"aria-label":u(_o.documentEditor),imageWidth:f,onDelete:m,onReorder:h,onListChange:g,onSelectionChange:v,onKeyDown:y,enableReorder:!0,selectionMode:"multiple",selectionBehavior:"toggle",selectedKeys:d,imageContainerClassName:(0,i.xW)("BaselineUI-DocumentEditor-Image","_1gdjybc4",b),...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 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6k8 _1yep5z6k9 _1yep5z6ka _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6je _1yep5z6jf _1yep5z6jg _1yep5z6g1","PSPDFKit-DocumentEditor-Footer"),children:E})]})})(u);return n?n({...u,ui:d}):d.createComponent()}));function Eo({inputLabel:e,description:t,onChange:n,onMove:r}){return(0,u.jsxs)("div",{className:"_1gdjybc7 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6it _1yep5z6iu _1yep5z6iv _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z69i _1yep5z69j _1yep5z69k",children:[(0,u.jsxs)("div",{className:"_1gdjybc9",style:{width:"100%"},children:[(0,u.jsx)(o.Text,{type:"label",size:"md",className:(0,c.UV)({flexShrink:0}),children:e}),(0,u.jsx)(o.NumberInput,{className:"_1gdjybc8",onChange:e=>{n(e)},showStepper:!1,placeholder:"Enter page #",variant:"ghost"}),(0,u.jsx)(o.ActionButton,{"data-block-id":"move-button",label:"Move",size:"sm",className:"PSPDFKit-Electronic-Signatures-Done-Button",variant:"secondary",onPress:r})]}),(0,u.jsx)(o.Separator,{orientation:"horizontal"}),(0,u.jsx)("div",{className:"_1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h",children:(0,u.jsx)(o.Text,{type:"body",size:"sm",color:c.G6.color.text.helper,children:t})})]})}Co.displayName="DocumentEditor";var ko={};function zo({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:m,_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 To(r.name,{icon:r.icon,"aria-label":r["aria-label"]||r.name,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 To(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?m:g,p);if(d){let t=e[d];return(0,i.V1)(t,`Toolbar item with name ${d} not found`),[To("back",{icon:f.JJd,onPress:()=>{p(null)},"aria-label":u(Po.close)}),{type:"spacer"},..."children"in t?t.children:[Uo(t,{icon:void 0})]]}return v(h)}),[c,s,d,y,m,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)tr(e,n,{get:t[n],enumerable:!0})})(ko,{createActionButtonToolbarItem:()=>Ao,createActionGroupToolbarItem:()=>Do,createActionIconButtonToolbarItem:()=>To,createBlockToolbarItem:()=>Ho,createButtonSelectToolbarItem:()=>Io,createCheckboxToolbarItem:()=>Mo,createColorSwatchPickerToolbarItem:()=>No,createComboBoxToolbarItem:()=>Oo,createDomNodeRendererToolbarItem:()=>Vo,createIconColorInputToolbarItem:()=>jo,createIconSelectToolbarItem:()=>Ro,createIconSliderToolbarItem:()=>Fo,createPaginationToolbarItem:()=>Ko,createReactElementToolbarItem:()=>Lo,createTaggedPaginationToolbarItem:()=>$o,createToggleIconButtonToolbarItem:()=>Bo,overrideToolbarItemProps:()=>Uo,useResponsiveToolbarItems:()=>zo});var Po=(0,o.defineMessages)({close:{id:"close",defaultMessage:"Close"}});function Ao(e,t){return{name:e,type:"ActionButton",props:t}}function Do(e,t){return{name:e,type:"ActionGroup",props:t}}function To(e,t){return{name:e,type:"ActionIconButton",props:t}}function Io(e,t){return{name:e,type:"ButtonSelect",props:t}}function Mo(e,t){return{name:e,type:"Checkbox",props:t}}function No(e,t){return{name:e,type:"ColorSwatchPicker",props:t}}function Oo(e,t){return{name:e,type:"ComboBox",props:t}}function jo(e,t){return{name:e,type:"IconColorInput",props:t}}function Ro(e,t){return{name:e,type:"IconSelect",props:t}}function Fo(e,t){return{name:e,type:"IconSlider",props:t}}function Bo(e,t){return{name:e,type:"ToggleIconButton",props:t}}function Lo(e,t){return{name:e,type:"ReactElement",props:t}}function Vo(e,t){return{name:e,type:"DomNodeRenderer",props:t}}function Ko(e,t){return{name:e,type:"Pagination",props:t}}function $o(e,t){return{name:e,type:"TaggedPagination",props:t}}function Ho(e,t){return{name:e,type:"Block",props:t}}function Uo(e,t){return{...e,props:{...e.props,...t}}}var qo=mr({defaultClassName:"_1tzubq80 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jt _1yep5z6ju _1yep5z6jv",variantClassNames:{type:{primary:"_1yep5z6g1",secondary:"_1yep5z6g2"}},defaultVariants:{},compoundVariants:[]});function Wo({ref:e,items:t,className:n,"data-block-id":a="toolbar","data-block-class":u,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,Jn.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,Jn.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=e=>{r.contains(e.target)||(l.current=!1)};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 v=(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)(l.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,c.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,c.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,c.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]),y=(0,r.useCallback)((e=>{"Escape"===e.key&&p?.()}),[p]);return(0,s.Y)(o.Toolbar,{ref:g,className:(0,i.xW)(qo({type:d}),n),"data-block-id":a,onKeyDown:y,"data-block-class":u,...m,children:t.map((e=>v(e)))})}var Go=r.forwardRef((({children:e,initialState:t={},state:n,onStateChange:o,...i},a)=>{let s=r.useRef(null),l={...i,...lr({ref:s,initialState:{expandedOnMobile:null,...t},state:n,onChange:o}),ref:nr(a,s)},c=(e=>Wo(e))(l);return e?e({...l,ui:c}):c.createComponent()}));Go.displayName="Toolbar";var Yo=r.forwardRef(((e,t)=>(0,u.jsx)(Go,{...e,type:"primary",ref:t})));Yo.displayName="PrimaryToolbar",r.forwardRef(((e,t)=>(0,u.jsx)(Go,{...e,type:"secondary",ref:t}))).displayName="SecondaryToolbar";var Zo={from:{opacity:0,transform:"translateX(10px)"},enter:{opacity:1,transform:"translateX(0px)"},leave:{opacity:0,transform:"translateX(10px)"}},Jo=r.forwardRef((({children:e,initialState:t={},state:n,onStateChange:i,...a},l)=>{let u=r.useRef(null),d={...a,...lr({ref:u,initialState:t,state:n,onChange:i}),ref:nr(l,u)},p=(({intl:{formatMessage:e},titleId:t,onCloseRequest:n,isOpen:i,topOffset:a,showHeaderOnMobile:l,mobileHeaderTitle:u,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&&!u?t:void 0,inheritDrawer:l,"aria-label":u})),[t,l,u]),g=(0,r.useMemo)((()=>({onOpenChange:n})),[n]),v=(0,r.useMemo)((()=>({enableDrawer:!0})),[]);return"mobile"===f?(0,s.Y)(xr,{"data-block-id":p,"data-block-class":h,dialogProps:m,modalProps:g,modalContentProps:v,content:d}):(0,s.Y)(o.Transition,{"data-block-id":p,"data-block-class":h,isMounted:i,transitions:Zo,className:"rohv070 _1yep5z6i5 _1yep5z6i6 _1yep5z6i7 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6it _1yep5z6iu _1yep5z6iv",style:{top:`calc(${a??0}px + ${c.G6.spacing.xl})`},children:(0,s.Y)(o.Drawer,{className:"_1yep5z6ao _1yep5z6ap _1yep5z6aq _1yep5z6bc _1yep5z6bd _1yep5z6be _1yep5z6c0 _1yep5z6c1 _1yep5z6c2 _1yep5z6co _1yep5z6cp _1yep5z6cq _1yep5z6ld",title:e("chat"),onCloseRequest:n,children:d})})})(d);return e?e({...d,ui:p}):p.createComponent()}));Jo.displayName="ChatDialogDecorator";var Xo=r.forwardRef((({children:e,initialState:t={},state:n,onStateChange:a,...l},c)=>{let u=r.useRef(null),d={...l,...lr({ref:u,initialState:t,state:n,onChange:a}),ref:nr(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 _1yep5z6i8 _1yep5z6i9 _1yep5z6ia","PSPDFKit-Comment-Thread-Popover"),contentContainerStyle:{overflow:"hidden"},contentContainerClassName:"_1yep5z6ih _1yep5z6ii _1yep5z6ij",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:"_1yep5z6wg _1yep5z6wh _1yep5z6wi _1yep5z6x4 _1yep5z6x5 _1yep5z6x6 _1yep5z6xs _1yep5z6xt _1yep5z6xu _1yep5z6yg _1yep5z6yh _1yep5z6yi _1yep5z6149 _1yep5z614a _1yep5z614b",style:{overflow:"hidden"},children:e})})]}))(d);return e?e({...d,ui:p}):p.createComponent()}));Xo.displayName="CommentThreadDecorator";var Qo=r.forwardRef((({children:e,initialState:t={},state:n,onStateChange:o,...i},a)=>{let l=r.useRef(null),c=lr({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:nr(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 e?e({...d,ui:p}):p.createComponent()}));function ei(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":p,ref:h,children:f,...m}=e,g={...(0,d.v6)(a,{className:(0,i.xW)(s,e.className),"data-block-id":c,"data-block-class":p}),style:{...l,...e.style},ref:nr(r,h),children:f},v={...(0,d.v6)(o,m),style:{...o?.style,...m.style}};return(0,u.jsx)(Qo,{component:t,...g,componentProps:v})}));return o.displayName=e,o}Qo.displayName="ComponentRecipe";var ti=mr({defaultClassName:"_1vh1kgt0 _1yep5z6jt _1yep5z6ju _1yep5z6jv",variantClassNames:{isEmptyState:{true:"_1vh1kgt1"}},defaultVariants:{},compoundVariants:[]}),ni=mr({defaultClassName:"_1vh1kgt4 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z69f _1yep5z69g _1yep5z69h _1yep5z6lf",variantClassNames:{isFocused:{true:"_1vh1kgt5"},isSelected:{true:"_1vh1kgt6"}},defaultVariants:{},compoundVariants:[]}),{color:ri}=c.G6,oi=(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"}}),ii=(0,r.forwardRef)((({children:e,initialState:t={},state:n,onStateChange:l,...c},u)=>{let d=(0,r.useRef)(null),h={...c,...lr({ref:d,initialState:t,state:n,onChange:l}),ref:nr(u,d)},f=(({ref:e,style:t,className:n,"data-block-id":l="annotations","data-block-class":c,"aria-label":u,annotations:d,shouldShowAnnotationsCount:h=!1,annotationItemClassName:f,annotationSectionClassName:m,annotationSectionHeaderClassName:g,onAnnotationDelete:v,onSelectionChange:y,selectedKey:b,intl:{formatMessage:w},onRenderAnnotationItem:x,canDeleteKeys:S,selectedAnnotationsIds:_,defaultMobileMode:C="read",onMobileModeChange:E})=>{let[k,z]=(0,r.useState)(!1),[P,A]=(0,r.useState)(C),D="mobile"===(0,o.useDevice)(),T=0===d.length,I=b?[b]:[],M=y?e=>{y([...e][0])}:void 0,N=(0,r.useCallback)((()=>{b&&(v?.(String(b)),y?.())}),[v,y,b]);(0,r.useEffect)((()=>{_&&0===_.length&&b&&y?.()}),[_,y,b]);let O=(0,r.useMemo)((()=>(!D||"read"!==P)&&(S?b&&S.includes(b):!!b)),[S,b,P,D]),j=(0,r.useCallback)((e=>{!b||!O||("Backspace"===e.key||"Delete"===e.key)&&z(!0)}),[b,O]),R=(0,r.useMemo)((()=>d.map((e=>({...e,title:w(oi.pageX,{arg0:e.pageLabel??e.pageNumber})})))),[d,w]),F=(0,r.useMemo)((()=>d.reduce(((e,t)=>e+t.children.length),0)),[d]),B=(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=p.Yl,description:u,data:d}=e,h=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=_?.includes(e.id),y={id:e.id,label:l,description:u,data:d},b=x?nr(a,(e=>{x(e,y)})):a;return(0,s.FD)("li",{...t,ref:b,className:(0,i.xW)(ni({isFocused:n,isSelected:r}),f,r&&m,v&&"PSPDFKit-Sidebar-Annotations-Item-Selected"),"data-annotation-id":e.id,children:[(0,s.Y)(c,{color:ri.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,h,g&&g.length>0?(0,s.Y)("div",{className:"_1vh1kgt8",children:g?.map((e=>{let{icon:t=Xn.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:ri.icon.secondary}),(0,s.Y)(o.Text,{type:"label",size:"sm",className:"_1vh1kgt9",children:e.label})]},e.label)}))}):null]})]}).createComponent()}),[x,_]),L=(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 _1yep5z6ie _1yep5z6if _1yep5z6ig",g),ref:t,children:(0,s.Y)(o.Text,{type:"subtitle",size:"sm",children:n})}).createComponent()}),[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:h?w(oi.annotationsCount,{arg0:F}):w(oi.annotations)}),D&&F>0?(0,s.Y)(o.ToggleButton,{label:w("edit"===P?oi.done:oi.edit),variant:"primary",size:"sm",isSelected:"edit"===P,onChange:e=>{let t=e?"edit":"read";A(t),E?.(t)}}):null]}),(0,s.Y)(o.Separator,{})]}),(0,s.Y)("div",{className:ti({isEmptyState:T}),children:T?(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:w(oi.noAnnotations)})}):(0,s.Y)("div",{onKeyDown:j,children:(0,s.Y)(o.ListBox,{items:R,"aria-label":u,selectionMode:"single",selectedKeys:I,onSelectionChange:M,disallowEmptySelection:!0,optionClassName:f,sectionClassName:m,showSectionHeader:!0,renderSectionHeader:L,renderOption:B,className:"_1vh1kgt3"})})}),(0,s.Y)(o.Modal,{isOpen:k,children:(0,s.Y)(o.ModalContent,{children:(0,s.Y)(o.AlertDialog,{title:w(oi.deleteAnnotationConfirmMessage),primaryActionLabel:w(oi.delete),cancelLabel:w(oi.cancel),showCloseButton:!1,onPrimaryAction:()=>{N(),z(!1)},onCancel:()=>{z(!1)}})})}),(0,s.FD)("div",{children:[(0,s.Y)(o.Separator,{}),(0,s.Y)(o.ActionIconButton,{"aria-label":w(oi.delete),icon:a.uc,isDisabled:!O,className:(0,i.xW)("_1yep5z6lc","PSPDFKit-Sidebar-Annotations-Delete"),variant:"secondary",onPress:()=>{z(!0)}})]})]})})(h);return e?e({...h,ui:f}):f.createComponent()}));ii.displayName="Annotations";var ai=ei("Thumbnails",o.ImageGallery,{"data-block-id":"thumbnails",className:"PSPDFKit-Image-Gallery",componentProps:{imageWidth:"md",selectionMode:"single",className:"ul2ubl0","data-block-id":"body"}}),si=mr({defaultClassName:"_15g6utz3 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6lf",variantClassNames:{isSelected:{true:"_15g6utz4"},isEditMode:{true:"_15g6utz5"},isFocused:{true:"_15g6utz6"}},defaultVariants:{},compoundVariants:[]}),li=mr({defaultClassName:"_15g6utz1 _1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678 _1yep5z6jt _1yep5z6ju _1yep5z6jv",variantClassNames:{isEmptyState:{true:"_15g6utz2"}},defaultVariants:{},compoundVariants:[]}),ci="_15g6utzb",ui="_15g6utza",{color:di}=c.G6,pi=({textValue:e,value:t,props:n},{gridCellProps:a,rowProps:s,isSelected:l,isFocused:c},h)=>{let{formatMessage:f}=(0,o.useI18n)(),{isFocusVisible:m}=(0,d.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,b=g===n.selectedKey&&"edit"===n.mode,w=(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){Qn||(Qn=new er),Qn.announce(e,t,n)}(f(hi.cancelledEditingBookmark),"polite"),n.setMode(null))}),[n,g,f]),x=(0,r.useCallback)((()=>{n.setMode("edit")}),[n]);return(0,u.jsx)("li",{...s,className:(0,i.xW)(si({isSelected:l,isEditMode:b,isFocused:m&&c&&!b}),"PSPDFKit-Sidebar-Bookmarks-Bookmark",l&&"PSPDFKit-Sidebar-Bookmarks-Bookmark-Selected",b&&"PSPDFKit-Sidebar-Bookmarks-Bookmark-Editing"),ref:h,children:(0,u.jsxs)(o.Box,{display:"flex",gap:"sm",alignItems:"center",onDoubleClick:x,"aria-label":f(hi.gotoPageX,{arg0:y??v}),...a,children:[(0,u.jsx)(p.cF,{color:di.icon.interactive.disabled,size:16}),b?(0,u.jsx)(d.n1,{autoFocus:!0,restoreFocus:!0,children:(0,u.jsx)(o.TextInput,{"aria-label":f(hi.edit),defaultValue:e,className:"_15g6utz9",inputClassName:(0,i.xW)(ui,"PSPDFKit-Sidebar-Bookmarks-Editor"),onKeyDown:w,onBlur:e=>{let t=e;n.onBookmarkUpdate?.(g,t.currentTarget.value),n.setMode(null)}})}):(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(o.Text,{type:"label",size:"sm",className:(0,i.xW)("_15g6utz7 _1yep5z6jt _1yep5z6ju _1yep5z6jv _1yep5z689 _1yep5z68a _1yep5z68b","PSPDFKit-Sidebar-Bookmarks-Name"),children:e}),(0,u.jsx)(o.Text,{type:"value",size:"sm",className:"_15g6utz8 _1yep5z6ey","aria-label":f(hi.pageX,{arg0:y??v}),children:y??v})]})]})})},hi=(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}"}}),fi=(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,u.jsx)(o.ActionIconButton,{"aria-label":e.textValue,icon:e.value.icon,isDisabled:t.isDisabled,className:(0,i.xW)(ci,n),variant:"secondary"})},{color:mi}=c.G6,gi="add-bookmark",vi="edit-bookmark",yi="delete-bookmark",bi=({ref:e,bookmarks:t,style:n,className:l,selectedKey:c,onSelectionChange:u,onBookmarkAdd:h,onBookmarkDelete:f,onBookmarkUpdate:m,intl:{formatMessage:g},"data-block-id":v="bookmarks","data-block-class":y,"aria-label":b,bookmarksHandle:w,onRenderBookmarkItem:x,defaultMobileMode:S="read",onMobileModeChange:_})=>{let[C,E]=(0,r.useState)(null),[k,z]=(0,r.useState)(!1),P=(0,r.useRef)(null),A=(0,r.useRef)(null),[D,T]=(0,r.useState)(S),I="mobile"===(0,o.useDevice)(),M=(0,d.H8)(),N=!!c,O=c?[c]:[],j=u?e=>{u([...e][0])}:void 0,R=(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 pi({...e,props:{selectedKey:c,mode:C,setMode:E,onBookmarkUpdate:m}},t,x?nr(n,(e=>{x(e,o)})):n)}),[C,c,m,x]),F=0===t.length,B=[{id:gi,label:g(wi.addBookmark),icon:a.c1,data:{className:"PSPDFKit-Sidebar-Bookmarks-Button-Add"}},{id:vi,label:g(wi.edit),icon:a.qU,data:{className:"PSPDFKit-Sidebar-Bookmarks-Button-Edit"}},{id:yi,label:g(wi.delete),icon:a.uc,data:{className:"PSPDFKit-Sidebar-Bookmarks-Button-Delete"}}],L=(0,r.useMemo)((()=>{let e=[vi,yi];return I?"edit"===D&&N?[]:e:N?[]:e}),[N,I,D]);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(wi.bookmarks)}),I&&!F?(0,s.Y)(o.ToggleButton,{label:g("edit"===D?wi.done:wi.edit),variant:"primary",size:"sm",isSelected:"edit"===D,onChange:e=>{let t=e?"edit":"read";T(t),_?.(t)}}):null]}),(0,s.Y)(o.Separator,{})]}),(0,s.FD)("div",{className:li({isEmptyState:F&&"add"!==C}),children:[F?"add"!==C&&(0,s.Y)(o.Box,{flex:1,display:"flex",justifyContent:"center",alignItems:"center",children:(0,s.Y)(o.Text,{type:"helper",children:g(wi.noBookmarks)})}):(0,s.Y)("div",{onKeyDownCapture:e=>{!c||"edit"===C||("Backspace"===e.key||"Delete"===e.key?z(!0):"Enter"===e.key&&"true"===e.target.getAttribute("aria-selected")&&E("edit"))},children:(0,s.Y)(o.GridList,{items:t,renderGridItem:R,selectionMode:"single","aria-label":b,selectedKeys:O,onSelectionChange:j,isEditing:"edit"===C,disallowEmptySelection:!0,ref:A,gridListHandle:w})}),"add"===C&&(0,s.Y)("li",{className:si({isSelected:!0,isEditMode:!0}),children:(0,s.FD)(o.Box,{display:"flex",gap:"sm",alignItems:"center",children:[(0,s.Y)(p.cF,{color:mi.icon.interactive.disabled,size:18}),(0,s.Y)(o.TextInput,{ref:P,"aria-label":g(wi.addBookmark),placeholder:g(wi.addBookmark),autoFocus:!0,inputClassName:(0,i.xW)(ui,"PSPDFKit-Sidebar-Bookmarks-Editor"),onKeyDown:e=>{"Enter"===e.key?(h?.(e.currentTarget.value),E(null)):"Escape"===e.key&&E(null)},onBlur:e=>{h?.(e.currentTarget.value),E(null)}})]})})]}),(0,s.Y)(o.Modal,{isOpen:k,children:(0,s.Y)(o.ModalContent,{children:(0,s.Y)(o.AlertDialog,{title:g(wi.deleteBookmarkConfirmMessage),primaryActionLabel:g(wi.delete),cancelLabel:g(wi.cancel),showCloseButton:!1,onPrimaryAction:()=>{c&&(f?.(String(c)),u?.()),z(!1),M?.focusPrevious()},onCancel:()=>{z(!1),M?.focusPrevious()}})})}),(0,s.FD)("div",{children:[(0,s.Y)(o.Separator,{}),(0,s.Y)(o.ActionGroup,{className:ci,items:B,disabledKeys:L,onAction:e=>{switch(e){case gi:E("add"),P.current?.scrollIntoView({behavior:"smooth",block:"nearest"});break;case vi:A.current?.focus(),E("edit");break;case yi:z(!0)}},renderActionItem:fi})]})]})},wi=(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"}}),xi=(0,r.forwardRef)((({children:e,initialState:t={},state:n,onStateChange:o,...i},a)=>{let s=(0,r.useRef)(null),l={...i,...lr({ref:s,initialState:t,state:n,onChange:o}),ref:nr(a,s)},c=bi(l);return e?e({...l,ui:c}):c.createComponent()}));xi.displayName="Bookmarks";var Si=ei("PasswordDialog",o.AlertDialog,{"data-block-id":"password-dialog",componentProps:{className:"PSPDFKit-Password-Dialog","data-block-id":"body"}}),_i=e=>(0,u.jsx)(xr,{...e,hasDialog:!1}),Ci=(0,o.defineMessages)({outline:{id:"outline",defaultMessage:"Outline"},noOutline:{id:"noOutline",defaultMessage:"No Outline"}}),Ei=r.forwardRef((({children:e,initialState:t={},state:n,onStateChange:a,...l},c)=>{let u=r.useRef(null),d={...l,...lr({ref:u,initialState:t,state:n,onChange:a}),ref:nr(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(Ci.outline)})}),(0,s.Y)(o.Separator,{}),(0,s.Y)("div",{className:(0,i.xW)("_1yep5z66 _1yep5z67 _1yep5z68 _1yep5z6jt _1yep5z6ju _1yep5z6jv",{"_1yep5z6ih _1yep5z6ii _1yep5z6ij":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(Ci.noOutline)})}):(0,s.Y)(o.TreeView,{items:a,onAction:l,defaultExpandedKeys:c,onExpandedChange:u,renderItemTitle:d})})]})})(d);return e?e({...d,ui:p}):p.createComponent()}));Ei.displayName="Outline"},20576:(e,t,n)=>{"use strict";n.d(t,{Br:()=>w,G6:()=>v,Pq:()=>y,UV:()=>x,_k:()=>m,a5:()=>g});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=>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])),l=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];0,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(" "))};return Object.assign(l,{properties:new Set(i)})},u=e=>e,d=function(){return c(u)(...arguments)},p=d(((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"},"border.positive.interactive.enabled":{defaultClass:"_1yep5z6gf"}}},borderColor:{values:{"support.error.subtler":{defaultClass:"_1yep5z6gg"},"support.error.subtle":{defaultClass:"_1yep5z6gh"},"support.error.medium":{defaultClass:"_1yep5z6gi"},"support.error.strong":{defaultClass:"_1yep5z6gj"},"support.success.subtler":{defaultClass:"_1yep5z6gk"},"support.success.subtle":{defaultClass:"_1yep5z6gl"},"support.success.medium":{defaultClass:"_1yep5z6gm"},"support.success.strong":{defaultClass:"_1yep5z6gn"},"support.warning.subtler":{defaultClass:"_1yep5z6go"},"support.warning.subtle":{defaultClass:"_1yep5z6gp"},"support.warning.medium":{defaultClass:"_1yep5z6gq"},"support.warning.strong":{defaultClass:"_1yep5z6gr"},"support.info.subtler":{defaultClass:"_1yep5z6gs"},"support.info.subtle":{defaultClass:"_1yep5z6gt"},"support.info.medium":{defaultClass:"_1yep5z6gu"},"support.info.strong":{defaultClass:"_1yep5z6gv"},"focused.default":{defaultClass:"_1yep5z6gw"},"focused.inset":{defaultClass:"_1yep5z6gx"},"border.subtle":{defaultClass:"_1yep5z6gy"},"border.medium":{defaultClass:"_1yep5z6gz"},"border.strong":{defaultClass:"_1yep5z6h0"},"border.inverse":{defaultClass:"_1yep5z6h1"},"border.interactive.enabled":{defaultClass:"_1yep5z6h2"},"border.interactive.hovered":{defaultClass:"_1yep5z6h3"},"border.interactive.active":{defaultClass:"_1yep5z6h4"},"border.interactive.visited":{defaultClass:"_1yep5z6h5"},"border.interactive.disabled":{defaultClass:"_1yep5z6h6"},"border.positive.interactive.enabled":{defaultClass:"_1yep5z6h7"},transparent:{defaultClass:"_1yep5z6h8"}}},outlineColor:{values:{"support.error.subtler":{defaultClass:"_1yep5z6h9"},"support.error.subtle":{defaultClass:"_1yep5z6ha"},"support.error.medium":{defaultClass:"_1yep5z6hb"},"support.error.strong":{defaultClass:"_1yep5z6hc"},"support.success.subtler":{defaultClass:"_1yep5z6hd"},"support.success.subtle":{defaultClass:"_1yep5z6he"},"support.success.medium":{defaultClass:"_1yep5z6hf"},"support.success.strong":{defaultClass:"_1yep5z6hg"},"support.warning.subtler":{defaultClass:"_1yep5z6hh"},"support.warning.subtle":{defaultClass:"_1yep5z6hi"},"support.warning.medium":{defaultClass:"_1yep5z6hj"},"support.warning.strong":{defaultClass:"_1yep5z6hk"},"support.info.subtler":{defaultClass:"_1yep5z6hl"},"support.info.subtle":{defaultClass:"_1yep5z6hm"},"support.info.medium":{defaultClass:"_1yep5z6hn"},"support.info.strong":{defaultClass:"_1yep5z6ho"},"focused.default":{defaultClass:"_1yep5z6hp"},"focused.inset":{defaultClass:"_1yep5z6hq"},"border.subtle":{defaultClass:"_1yep5z6hr"},"border.medium":{defaultClass:"_1yep5z6hs"},"border.strong":{defaultClass:"_1yep5z6ht"},"border.inverse":{defaultClass:"_1yep5z6hu"},"border.interactive.enabled":{defaultClass:"_1yep5z6hv"},"border.interactive.hovered":{defaultClass:"_1yep5z6hw"},"border.interactive.active":{defaultClass:"_1yep5z6hx"},"border.interactive.visited":{defaultClass:"_1yep5z6hy"},"border.interactive.disabled":{defaultClass:"_1yep5z6hz"},"border.positive.interactive.enabled":{defaultClass:"_1yep5z6i0"},transparent:{defaultClass:"_1yep5z6i1"}}}}},function(){var e={conditions:{defaultCondition:["mobile","tablet","desktop"],conditionNames:["mobile","tablet","desktop"],responsiveArray:["mobile","tablet","desktop"]},styles:{position:{values:{relative:{conditions:{mobile:"_1yep5z6i2",tablet:"_1yep5z6i3",desktop:"_1yep5z6i4"},defaultClass:"_1yep5z6i2 _1yep5z6i3 _1yep5z6i4"},absolute:{conditions:{mobile:"_1yep5z6i5",tablet:"_1yep5z6i6",desktop:"_1yep5z6i7"},defaultClass:"_1yep5z6i5 _1yep5z6i6 _1yep5z6i7"},fixed:{conditions:{mobile:"_1yep5z6i8",tablet:"_1yep5z6i9",desktop:"_1yep5z6ia"},defaultClass:"_1yep5z6i8 _1yep5z6i9 _1yep5z6ia"}},responsiveArray:void 0},display:{values:{none:{conditions:{mobile:"_1yep5z6ib",tablet:"_1yep5z6ic",desktop:"_1yep5z6id"},defaultClass:"_1yep5z6ib _1yep5z6ic _1yep5z6id"},block:{conditions:{mobile:"_1yep5z6ie",tablet:"_1yep5z6if",desktop:"_1yep5z6ig"},defaultClass:"_1yep5z6ie _1yep5z6if _1yep5z6ig"},flex:{conditions:{mobile:"_1yep5z6ih",tablet:"_1yep5z6ii",desktop:"_1yep5z6ij"},defaultClass:"_1yep5z6ih _1yep5z6ii _1yep5z6ij"},"inline-flex":{conditions:{mobile:"_1yep5z6ik",tablet:"_1yep5z6il",desktop:"_1yep5z6im"},defaultClass:"_1yep5z6ik _1yep5z6il _1yep5z6im"},grid:{conditions:{mobile:"_1yep5z6in",tablet:"_1yep5z6io",desktop:"_1yep5z6ip"},defaultClass:"_1yep5z6in _1yep5z6io _1yep5z6ip"}},responsiveArray:void 0},flexDirection:{values:{row:{conditions:{mobile:"_1yep5z6iq",tablet:"_1yep5z6ir",desktop:"_1yep5z6is"},defaultClass:"_1yep5z6iq _1yep5z6ir _1yep5z6is"},column:{conditions:{mobile:"_1yep5z6it",tablet:"_1yep5z6iu",desktop:"_1yep5z6iv"},defaultClass:"_1yep5z6it _1yep5z6iu _1yep5z6iv"},"row-reverse":{conditions:{mobile:"_1yep5z6iw",tablet:"_1yep5z6ix",desktop:"_1yep5z6iy"},defaultClass:"_1yep5z6iw _1yep5z6ix _1yep5z6iy"},"column-reverse":{conditions:{mobile:"_1yep5z6iz",tablet:"_1yep5z6j0",desktop:"_1yep5z6j1"},defaultClass:"_1yep5z6iz _1yep5z6j0 _1yep5z6j1"}},responsiveArray:void 0},alignItems:{values:{stretch:{conditions:{mobile:"_1yep5z6j2",tablet:"_1yep5z6j3",desktop:"_1yep5z6j4"},defaultClass:"_1yep5z6j2 _1yep5z6j3 _1yep5z6j4"},"flex-start":{conditions:{mobile:"_1yep5z6j5",tablet:"_1yep5z6j6",desktop:"_1yep5z6j7"},defaultClass:"_1yep5z6j5 _1yep5z6j6 _1yep5z6j7"},center:{conditions:{mobile:"_1yep5z6j8",tablet:"_1yep5z6j9",desktop:"_1yep5z6ja"},defaultClass:"_1yep5z6j8 _1yep5z6j9 _1yep5z6ja"},"flex-end":{conditions:{mobile:"_1yep5z6jb",tablet:"_1yep5z6jc",desktop:"_1yep5z6jd"},defaultClass:"_1yep5z6jb _1yep5z6jc _1yep5z6jd"}},responsiveArray:void 0},alignSelf:{values:{stretch:{conditions:{mobile:"_1yep5z6je",tablet:"_1yep5z6jf",desktop:"_1yep5z6jg"},defaultClass:"_1yep5z6je _1yep5z6jf _1yep5z6jg"},"flex-start":{conditions:{mobile:"_1yep5z6jh",tablet:"_1yep5z6ji",desktop:"_1yep5z6jj"},defaultClass:"_1yep5z6jh _1yep5z6ji _1yep5z6jj"},center:{conditions:{mobile:"_1yep5z6jk",tablet:"_1yep5z6jl",desktop:"_1yep5z6jm"},defaultClass:"_1yep5z6jk _1yep5z6jl _1yep5z6jm"},"flex-end":{conditions:{mobile:"_1yep5z6jn",tablet:"_1yep5z6jo",desktop:"_1yep5z6jp"},defaultClass:"_1yep5z6jn _1yep5z6jo _1yep5z6jp"}},responsiveArray:void 0},flex:{values:{0:{conditions:{mobile:"_1yep5z6jq",tablet:"_1yep5z6jr",desktop:"_1yep5z6js"},defaultClass:"_1yep5z6jq _1yep5z6jr _1yep5z6js"},1:{conditions:{mobile:"_1yep5z6jt",tablet:"_1yep5z6ju",desktop:"_1yep5z6jv"},defaultClass:"_1yep5z6jt _1yep5z6ju _1yep5z6jv"}},responsiveArray:void 0},justifyContent:{values:{stretch:{conditions:{mobile:"_1yep5z6jw",tablet:"_1yep5z6jx",desktop:"_1yep5z6jy"},defaultClass:"_1yep5z6jw _1yep5z6jx _1yep5z6jy"},"flex-start":{conditions:{mobile:"_1yep5z6jz",tablet:"_1yep5z6k0",desktop:"_1yep5z6k1"},defaultClass:"_1yep5z6jz _1yep5z6k0 _1yep5z6k1"},center:{conditions:{mobile:"_1yep5z6k2",tablet:"_1yep5z6k3",desktop:"_1yep5z6k4"},defaultClass:"_1yep5z6k2 _1yep5z6k3 _1yep5z6k4"},"flex-end":{conditions:{mobile:"_1yep5z6k5",tablet:"_1yep5z6k6",desktop:"_1yep5z6k7"},defaultClass:"_1yep5z6k5 _1yep5z6k6 _1yep5z6k7"},"space-between":{conditions:{mobile:"_1yep5z6k8",tablet:"_1yep5z6k9",desktop:"_1yep5z6ka"},defaultClass:"_1yep5z6k8 _1yep5z6k9 _1yep5z6ka"}},responsiveArray:void 0},justifySelf:{values:{stretch:{conditions:{mobile:"_1yep5z6kb",tablet:"_1yep5z6kc",desktop:"_1yep5z6kd"},defaultClass:"_1yep5z6kb _1yep5z6kc _1yep5z6kd"},"flex-start":{conditions:{mobile:"_1yep5z6ke",tablet:"_1yep5z6kf",desktop:"_1yep5z6kg"},defaultClass:"_1yep5z6ke _1yep5z6kf _1yep5z6kg"},center:{conditions:{mobile:"_1yep5z6kh",tablet:"_1yep5z6ki",desktop:"_1yep5z6kj"},defaultClass:"_1yep5z6kh _1yep5z6ki _1yep5z6kj"},"flex-end":{conditions:{mobile:"_1yep5z6kk",tablet:"_1yep5z6kl",desktop:"_1yep5z6km"},defaultClass:"_1yep5z6kk _1yep5z6kl _1yep5z6km"}},responsiveArray:void 0},placeItems:{values:{stretch:{conditions:{mobile:"_1yep5z6kn",tablet:"_1yep5z6ko",desktop:"_1yep5z6kp"},defaultClass:"_1yep5z6kn _1yep5z6ko _1yep5z6kp"},"flex-start":{conditions:{mobile:"_1yep5z6kq",tablet:"_1yep5z6kr",desktop:"_1yep5z6ks"},defaultClass:"_1yep5z6kq _1yep5z6kr _1yep5z6ks"},center:{conditions:{mobile:"_1yep5z6kt",tablet:"_1yep5z6ku",desktop:"_1yep5z6kv"},defaultClass:"_1yep5z6kt _1yep5z6ku _1yep5z6kv"},"flex-end":{conditions:{mobile:"_1yep5z6kw",tablet:"_1yep5z6kx",desktop:"_1yep5z6ky"},defaultClass:"_1yep5z6kw _1yep5z6kx _1yep5z6ky"}},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:"_1yep5z6kz"}}},transitionProperty:{values:{transform:{defaultClass:"_1yep5z6l0"},opacity:{defaultClass:"_1yep5z6l1"},"background-color":{defaultClass:"_1yep5z6l2"}}}}},{conditions:void 0,styles:{inset:{mappings:["insetBlockStart","insetBlockEnd","insetInlineEnd","insetInlineStart"]},flexWrap:{values:{wrap:{defaultClass:"_1yep5z6l3"},nowrap:{defaultClass:"_1yep5z6l4"}}},insetBlockStart:{values:{0:{defaultClass:"_1yep5z6l5"}}},insetBlockEnd:{values:{0:{defaultClass:"_1yep5z6l6"}}},insetInlineStart:{values:{0:{defaultClass:"_1yep5z6l7"}}},insetInlineEnd:{values:{0:{defaultClass:"_1yep5z6l8"}}},flexShrink:{values:{0:{defaultClass:"_1yep5z6l9"}}},flexGrow:{values:{0:{defaultClass:"_1yep5z6la"},1:{defaultClass:"_1yep5z6lb"}}},width:{values:{full:{defaultClass:"_1yep5z6lc"}}},height:{values:{full:{defaultClass:"_1yep5z6ld"}}},cursor:{values:{pointer:{defaultClass:"_1yep5z6le"}}}}},{conditions:void 0,styles:{outline:{values:{none:{defaultClass:"_1yep5z6lf"}}},outlineStyle:{values:{solid:{defaultClass:"_1yep5z6lg"}}},outlineWidth:{values:{1:{defaultClass:"_1yep5z6lh"},2:{defaultClass:"_1yep5z6li"}}},outlineOffset:{values:{1:{defaultClass:"_1yep5z6ll"},2:{defaultClass:"_1yep5z6lm"},"-2":{defaultClass:"_1yep5z6lj"},"-1":{defaultClass:"_1yep5z6lk"}}},border:{values:{none:{defaultClass:"_1yep5z6ln"}}},borderStyle:{values:{solid:{defaultClass:"_1yep5z6lo"},dashed:{defaultClass:"_1yep5z6lp"}}},borderWidth:{values:{1:{defaultClass:"_1yep5z6lq"},2:{defaultClass:"_1yep5z6lr"}}}}}),h=d(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:"_1yep5z617k",tablet:"_1yep5z617l",desktop:"_1yep5z617m"},defaultClass:"_1yep5z617k _1yep5z617l _1yep5z617m"},sm:{conditions:{mobile:"_1yep5z617n",tablet:"_1yep5z617o",desktop:"_1yep5z617p"},defaultClass:"_1yep5z617n _1yep5z617o _1yep5z617p"},md:{conditions:{mobile:"_1yep5z617q",tablet:"_1yep5z617r",desktop:"_1yep5z617s"},defaultClass:"_1yep5z617q _1yep5z617r _1yep5z617s"},lg:{conditions:{mobile:"_1yep5z617t",tablet:"_1yep5z617u",desktop:"_1yep5z617v"},defaultClass:"_1yep5z617t _1yep5z617u _1yep5z617v"},xl:{conditions:{mobile:"_1yep5z617w",tablet:"_1yep5z617x",desktop:"_1yep5z617y"},defaultClass:"_1yep5z617w _1yep5z617x _1yep5z617y"},"2xl":{conditions:{mobile:"_1yep5z617z",tablet:"_1yep5z6180",desktop:"_1yep5z6181"},defaultClass:"_1yep5z617z _1yep5z6180 _1yep5z6181"},"3xl":{conditions:{mobile:"_1yep5z6182",tablet:"_1yep5z6183",desktop:"_1yep5z6184"},defaultClass:"_1yep5z6182 _1yep5z6183 _1yep5z6184"},"4xl":{conditions:{mobile:"_1yep5z6185",tablet:"_1yep5z6186",desktop:"_1yep5z6187"},defaultClass:"_1yep5z6185 _1yep5z6186 _1yep5z6187"},"5xl":{conditions:{mobile:"_1yep5z6188",tablet:"_1yep5z6189",desktop:"_1yep5z618a"},defaultClass:"_1yep5z6188 _1yep5z6189 _1yep5z618a"},"6xl":{conditions:{mobile:"_1yep5z618b",tablet:"_1yep5z618c",desktop:"_1yep5z618d"},defaultClass:"_1yep5z618b _1yep5z618c _1yep5z618d"},"7xl":{conditions:{mobile:"_1yep5z618e",tablet:"_1yep5z618f",desktop:"_1yep5z618g"},defaultClass:"_1yep5z618e _1yep5z618f _1yep5z618g"},"8xl":{conditions:{mobile:"_1yep5z618h",tablet:"_1yep5z618i",desktop:"_1yep5z618j"},defaultClass:"_1yep5z618h _1yep5z618i _1yep5z618j"},"9xl":{conditions:{mobile:"_1yep5z618k",tablet:"_1yep5z618l",desktop:"_1yep5z618m"},defaultClass:"_1yep5z618k _1yep5z618l _1yep5z618m"},none:{conditions:{mobile:"_1yep5z618n",tablet:"_1yep5z618o",desktop:"_1yep5z618p"},defaultClass:"_1yep5z618n _1yep5z618o _1yep5z618p"}},responsiveArray:void 0},paddingInlineEnd:{values:{xs:{conditions:{mobile:"_1yep5z618q",tablet:"_1yep5z618r",desktop:"_1yep5z618s"},defaultClass:"_1yep5z618q _1yep5z618r _1yep5z618s"},sm:{conditions:{mobile:"_1yep5z618t",tablet:"_1yep5z618u",desktop:"_1yep5z618v"},defaultClass:"_1yep5z618t _1yep5z618u _1yep5z618v"},md:{conditions:{mobile:"_1yep5z618w",tablet:"_1yep5z618x",desktop:"_1yep5z618y"},defaultClass:"_1yep5z618w _1yep5z618x _1yep5z618y"},lg:{conditions:{mobile:"_1yep5z618z",tablet:"_1yep5z6190",desktop:"_1yep5z6191"},defaultClass:"_1yep5z618z _1yep5z6190 _1yep5z6191"},xl:{conditions:{mobile:"_1yep5z6192",tablet:"_1yep5z6193",desktop:"_1yep5z6194"},defaultClass:"_1yep5z6192 _1yep5z6193 _1yep5z6194"},"2xl":{conditions:{mobile:"_1yep5z6195",tablet:"_1yep5z6196",desktop:"_1yep5z6197"},defaultClass:"_1yep5z6195 _1yep5z6196 _1yep5z6197"},"3xl":{conditions:{mobile:"_1yep5z6198",tablet:"_1yep5z6199",desktop:"_1yep5z619a"},defaultClass:"_1yep5z6198 _1yep5z6199 _1yep5z619a"},"4xl":{conditions:{mobile:"_1yep5z619b",tablet:"_1yep5z619c",desktop:"_1yep5z619d"},defaultClass:"_1yep5z619b _1yep5z619c _1yep5z619d"},"5xl":{conditions:{mobile:"_1yep5z619e",tablet:"_1yep5z619f",desktop:"_1yep5z619g"},defaultClass:"_1yep5z619e _1yep5z619f _1yep5z619g"},"6xl":{conditions:{mobile:"_1yep5z619h",tablet:"_1yep5z619i",desktop:"_1yep5z619j"},defaultClass:"_1yep5z619h _1yep5z619i _1yep5z619j"},"7xl":{conditions:{mobile:"_1yep5z619k",tablet:"_1yep5z619l",desktop:"_1yep5z619m"},defaultClass:"_1yep5z619k _1yep5z619l _1yep5z619m"},"8xl":{conditions:{mobile:"_1yep5z619n",tablet:"_1yep5z619o",desktop:"_1yep5z619p"},defaultClass:"_1yep5z619n _1yep5z619o _1yep5z619p"},"9xl":{conditions:{mobile:"_1yep5z619q",tablet:"_1yep5z619r",desktop:"_1yep5z619s"},defaultClass:"_1yep5z619q _1yep5z619r _1yep5z619s"},none:{conditions:{mobile:"_1yep5z619t",tablet:"_1yep5z619u",desktop:"_1yep5z619v"},defaultClass:"_1yep5z619t _1yep5z619u _1yep5z619v"}},responsiveArray:void 0},paddingBlockEnd:{values:{xs:{conditions:{mobile:"_1yep5z619w",tablet:"_1yep5z619x",desktop:"_1yep5z619y"},defaultClass:"_1yep5z619w _1yep5z619x _1yep5z619y"},sm:{conditions:{mobile:"_1yep5z619z",tablet:"_1yep5z61a0",desktop:"_1yep5z61a1"},defaultClass:"_1yep5z619z _1yep5z61a0 _1yep5z61a1"},md:{conditions:{mobile:"_1yep5z61a2",tablet:"_1yep5z61a3",desktop:"_1yep5z61a4"},defaultClass:"_1yep5z61a2 _1yep5z61a3 _1yep5z61a4"},lg:{conditions:{mobile:"_1yep5z61a5",tablet:"_1yep5z61a6",desktop:"_1yep5z61a7"},defaultClass:"_1yep5z61a5 _1yep5z61a6 _1yep5z61a7"},xl:{conditions:{mobile:"_1yep5z61a8",tablet:"_1yep5z61a9",desktop:"_1yep5z61aa"},defaultClass:"_1yep5z61a8 _1yep5z61a9 _1yep5z61aa"},"2xl":{conditions:{mobile:"_1yep5z61ab",tablet:"_1yep5z61ac",desktop:"_1yep5z61ad"},defaultClass:"_1yep5z61ab _1yep5z61ac _1yep5z61ad"},"3xl":{conditions:{mobile:"_1yep5z61ae",tablet:"_1yep5z61af",desktop:"_1yep5z61ag"},defaultClass:"_1yep5z61ae _1yep5z61af _1yep5z61ag"},"4xl":{conditions:{mobile:"_1yep5z61ah",tablet:"_1yep5z61ai",desktop:"_1yep5z61aj"},defaultClass:"_1yep5z61ah _1yep5z61ai _1yep5z61aj"},"5xl":{conditions:{mobile:"_1yep5z61ak",tablet:"_1yep5z61al",desktop:"_1yep5z61am"},defaultClass:"_1yep5z61ak _1yep5z61al _1yep5z61am"},"6xl":{conditions:{mobile:"_1yep5z61an",tablet:"_1yep5z61ao",desktop:"_1yep5z61ap"},defaultClass:"_1yep5z61an _1yep5z61ao _1yep5z61ap"},"7xl":{conditions:{mobile:"_1yep5z61aq",tablet:"_1yep5z61ar",desktop:"_1yep5z61as"},defaultClass:"_1yep5z61aq _1yep5z61ar _1yep5z61as"},"8xl":{conditions:{mobile:"_1yep5z61at",tablet:"_1yep5z61au",desktop:"_1yep5z61av"},defaultClass:"_1yep5z61at _1yep5z61au _1yep5z61av"},"9xl":{conditions:{mobile:"_1yep5z61aw",tablet:"_1yep5z61ax",desktop:"_1yep5z61ay"},defaultClass:"_1yep5z61aw _1yep5z61ax _1yep5z61ay"},none:{conditions:{mobile:"_1yep5z61az",tablet:"_1yep5z61b0",desktop:"_1yep5z61b1"},defaultClass:"_1yep5z61az _1yep5z61b0 _1yep5z61b1"}},responsiveArray:void 0},paddingInlineStart:{values:{xs:{conditions:{mobile:"_1yep5z61b2",tablet:"_1yep5z61b3",desktop:"_1yep5z61b4"},defaultClass:"_1yep5z61b2 _1yep5z61b3 _1yep5z61b4"},sm:{conditions:{mobile:"_1yep5z61b5",tablet:"_1yep5z61b6",desktop:"_1yep5z61b7"},defaultClass:"_1yep5z61b5 _1yep5z61b6 _1yep5z61b7"},md:{conditions:{mobile:"_1yep5z61b8",tablet:"_1yep5z61b9",desktop:"_1yep5z61ba"},defaultClass:"_1yep5z61b8 _1yep5z61b9 _1yep5z61ba"},lg:{conditions:{mobile:"_1yep5z61bb",tablet:"_1yep5z61bc",desktop:"_1yep5z61bd"},defaultClass:"_1yep5z61bb _1yep5z61bc _1yep5z61bd"},xl:{conditions:{mobile:"_1yep5z61be",tablet:"_1yep5z61bf",desktop:"_1yep5z61bg"},defaultClass:"_1yep5z61be _1yep5z61bf _1yep5z61bg"},"2xl":{conditions:{mobile:"_1yep5z61bh",tablet:"_1yep5z61bi",desktop:"_1yep5z61bj"},defaultClass:"_1yep5z61bh _1yep5z61bi _1yep5z61bj"},"3xl":{conditions:{mobile:"_1yep5z61bk",tablet:"_1yep5z61bl",desktop:"_1yep5z61bm"},defaultClass:"_1yep5z61bk _1yep5z61bl _1yep5z61bm"},"4xl":{conditions:{mobile:"_1yep5z61bn",tablet:"_1yep5z61bo",desktop:"_1yep5z61bp"},defaultClass:"_1yep5z61bn _1yep5z61bo _1yep5z61bp"},"5xl":{conditions:{mobile:"_1yep5z61bq",tablet:"_1yep5z61br",desktop:"_1yep5z61bs"},defaultClass:"_1yep5z61bq _1yep5z61br _1yep5z61bs"},"6xl":{conditions:{mobile:"_1yep5z61bt",tablet:"_1yep5z61bu",desktop:"_1yep5z61bv"},defaultClass:"_1yep5z61bt _1yep5z61bu _1yep5z61bv"},"7xl":{conditions:{mobile:"_1yep5z61bw",tablet:"_1yep5z61bx",desktop:"_1yep5z61by"},defaultClass:"_1yep5z61bw _1yep5z61bx _1yep5z61by"},"8xl":{conditions:{mobile:"_1yep5z61bz",tablet:"_1yep5z61c0",desktop:"_1yep5z61c1"},defaultClass:"_1yep5z61bz _1yep5z61c0 _1yep5z61c1"},"9xl":{conditions:{mobile:"_1yep5z61c2",tablet:"_1yep5z61c3",desktop:"_1yep5z61c4"},defaultClass:"_1yep5z61c2 _1yep5z61c3 _1yep5z61c4"},none:{conditions:{mobile:"_1yep5z61c5",tablet:"_1yep5z61c6",desktop:"_1yep5z61c7"},defaultClass:"_1yep5z61c5 _1yep5z61c6 _1yep5z61c7"}},responsiveArray:void 0},marginBlockStart:{values:{xs:{conditions:{mobile:"_1yep5z61c8",tablet:"_1yep5z61c9",desktop:"_1yep5z61ca"},defaultClass:"_1yep5z61c8 _1yep5z61c9 _1yep5z61ca"},sm:{conditions:{mobile:"_1yep5z61cb",tablet:"_1yep5z61cc",desktop:"_1yep5z61cd"},defaultClass:"_1yep5z61cb _1yep5z61cc _1yep5z61cd"},md:{conditions:{mobile:"_1yep5z61ce",tablet:"_1yep5z61cf",desktop:"_1yep5z61cg"},defaultClass:"_1yep5z61ce _1yep5z61cf _1yep5z61cg"},lg:{conditions:{mobile:"_1yep5z61ch",tablet:"_1yep5z61ci",desktop:"_1yep5z61cj"},defaultClass:"_1yep5z61ch _1yep5z61ci _1yep5z61cj"},xl:{conditions:{mobile:"_1yep5z61ck",tablet:"_1yep5z61cl",desktop:"_1yep5z61cm"},defaultClass:"_1yep5z61ck _1yep5z61cl _1yep5z61cm"},"2xl":{conditions:{mobile:"_1yep5z61cn",tablet:"_1yep5z61co",desktop:"_1yep5z61cp"},defaultClass:"_1yep5z61cn _1yep5z61co _1yep5z61cp"},"3xl":{conditions:{mobile:"_1yep5z61cq",tablet:"_1yep5z61cr",desktop:"_1yep5z61cs"},defaultClass:"_1yep5z61cq _1yep5z61cr _1yep5z61cs"},"4xl":{conditions:{mobile:"_1yep5z61ct",tablet:"_1yep5z61cu",desktop:"_1yep5z61cv"},defaultClass:"_1yep5z61ct _1yep5z61cu _1yep5z61cv"},"5xl":{conditions:{mobile:"_1yep5z61cw",tablet:"_1yep5z61cx",desktop:"_1yep5z61cy"},defaultClass:"_1yep5z61cw _1yep5z61cx _1yep5z61cy"},"6xl":{conditions:{mobile:"_1yep5z61cz",tablet:"_1yep5z61d0",desktop:"_1yep5z61d1"},defaultClass:"_1yep5z61cz _1yep5z61d0 _1yep5z61d1"},"7xl":{conditions:{mobile:"_1yep5z61d2",tablet:"_1yep5z61d3",desktop:"_1yep5z61d4"},defaultClass:"_1yep5z61d2 _1yep5z61d3 _1yep5z61d4"},"8xl":{conditions:{mobile:"_1yep5z61d5",tablet:"_1yep5z61d6",desktop:"_1yep5z61d7"},defaultClass:"_1yep5z61d5 _1yep5z61d6 _1yep5z61d7"},"9xl":{conditions:{mobile:"_1yep5z61d8",tablet:"_1yep5z61d9",desktop:"_1yep5z61da"},defaultClass:"_1yep5z61d8 _1yep5z61d9 _1yep5z61da"},none:{conditions:{mobile:"_1yep5z61db",tablet:"_1yep5z61dc",desktop:"_1yep5z61dd"},defaultClass:"_1yep5z61db _1yep5z61dc _1yep5z61dd"}},responsiveArray:void 0},marginInlineEnd:{values:{xs:{conditions:{mobile:"_1yep5z61de",tablet:"_1yep5z61df",desktop:"_1yep5z61dg"},defaultClass:"_1yep5z61de _1yep5z61df _1yep5z61dg"},sm:{conditions:{mobile:"_1yep5z61dh",tablet:"_1yep5z61di",desktop:"_1yep5z61dj"},defaultClass:"_1yep5z61dh _1yep5z61di _1yep5z61dj"},md:{conditions:{mobile:"_1yep5z61dk",tablet:"_1yep5z61dl",desktop:"_1yep5z61dm"},defaultClass:"_1yep5z61dk _1yep5z61dl _1yep5z61dm"},lg:{conditions:{mobile:"_1yep5z61dn",tablet:"_1yep5z61do",desktop:"_1yep5z61dp"},defaultClass:"_1yep5z61dn _1yep5z61do _1yep5z61dp"},xl:{conditions:{mobile:"_1yep5z61dq",tablet:"_1yep5z61dr",desktop:"_1yep5z61ds"},defaultClass:"_1yep5z61dq _1yep5z61dr _1yep5z61ds"},"2xl":{conditions:{mobile:"_1yep5z61dt",tablet:"_1yep5z61du",desktop:"_1yep5z61dv"},defaultClass:"_1yep5z61dt _1yep5z61du _1yep5z61dv"},"3xl":{conditions:{mobile:"_1yep5z61dw",tablet:"_1yep5z61dx",desktop:"_1yep5z61dy"},defaultClass:"_1yep5z61dw _1yep5z61dx _1yep5z61dy"},"4xl":{conditions:{mobile:"_1yep5z61dz",tablet:"_1yep5z61e0",desktop:"_1yep5z61e1"},defaultClass:"_1yep5z61dz _1yep5z61e0 _1yep5z61e1"},"5xl":{conditions:{mobile:"_1yep5z61e2",tablet:"_1yep5z61e3",desktop:"_1yep5z61e4"},defaultClass:"_1yep5z61e2 _1yep5z61e3 _1yep5z61e4"},"6xl":{conditions:{mobile:"_1yep5z61e5",tablet:"_1yep5z61e6",desktop:"_1yep5z61e7"},defaultClass:"_1yep5z61e5 _1yep5z61e6 _1yep5z61e7"},"7xl":{conditions:{mobile:"_1yep5z61e8",tablet:"_1yep5z61e9",desktop:"_1yep5z61ea"},defaultClass:"_1yep5z61e8 _1yep5z61e9 _1yep5z61ea"},"8xl":{conditions:{mobile:"_1yep5z61eb",tablet:"_1yep5z61ec",desktop:"_1yep5z61ed"},defaultClass:"_1yep5z61eb _1yep5z61ec _1yep5z61ed"},"9xl":{conditions:{mobile:"_1yep5z61ee",tablet:"_1yep5z61ef",desktop:"_1yep5z61eg"},defaultClass:"_1yep5z61ee _1yep5z61ef _1yep5z61eg"},none:{conditions:{mobile:"_1yep5z61eh",tablet:"_1yep5z61ei",desktop:"_1yep5z61ej"},defaultClass:"_1yep5z61eh _1yep5z61ei _1yep5z61ej"}},responsiveArray:void 0},marginBlockEnd:{values:{xs:{conditions:{mobile:"_1yep5z61ek",tablet:"_1yep5z61el",desktop:"_1yep5z61em"},defaultClass:"_1yep5z61ek _1yep5z61el _1yep5z61em"},sm:{conditions:{mobile:"_1yep5z61en",tablet:"_1yep5z61eo",desktop:"_1yep5z61ep"},defaultClass:"_1yep5z61en _1yep5z61eo _1yep5z61ep"},md:{conditions:{mobile:"_1yep5z61eq",tablet:"_1yep5z61er",desktop:"_1yep5z61es"},defaultClass:"_1yep5z61eq _1yep5z61er _1yep5z61es"},lg:{conditions:{mobile:"_1yep5z61et",tablet:"_1yep5z61eu",desktop:"_1yep5z61ev"},defaultClass:"_1yep5z61et _1yep5z61eu _1yep5z61ev"},xl:{conditions:{mobile:"_1yep5z61ew",tablet:"_1yep5z61ex",desktop:"_1yep5z61ey"},defaultClass:"_1yep5z61ew _1yep5z61ex _1yep5z61ey"},"2xl":{conditions:{mobile:"_1yep5z61ez",tablet:"_1yep5z61f0",desktop:"_1yep5z61f1"},defaultClass:"_1yep5z61ez _1yep5z61f0 _1yep5z61f1"},"3xl":{conditions:{mobile:"_1yep5z61f2",tablet:"_1yep5z61f3",desktop:"_1yep5z61f4"},defaultClass:"_1yep5z61f2 _1yep5z61f3 _1yep5z61f4"},"4xl":{conditions:{mobile:"_1yep5z61f5",tablet:"_1yep5z61f6",desktop:"_1yep5z61f7"},defaultClass:"_1yep5z61f5 _1yep5z61f6 _1yep5z61f7"},"5xl":{conditions:{mobile:"_1yep5z61f8",tablet:"_1yep5z61f9",desktop:"_1yep5z61fa"},defaultClass:"_1yep5z61f8 _1yep5z61f9 _1yep5z61fa"},"6xl":{conditions:{mobile:"_1yep5z61fb",tablet:"_1yep5z61fc",desktop:"_1yep5z61fd"},defaultClass:"_1yep5z61fb _1yep5z61fc _1yep5z61fd"},"7xl":{conditions:{mobile:"_1yep5z61fe",tablet:"_1yep5z61ff",desktop:"_1yep5z61fg"},defaultClass:"_1yep5z61fe _1yep5z61ff _1yep5z61fg"},"8xl":{conditions:{mobile:"_1yep5z61fh",tablet:"_1yep5z61fi",desktop:"_1yep5z61fj"},defaultClass:"_1yep5z61fh _1yep5z61fi _1yep5z61fj"},"9xl":{conditions:{mobile:"_1yep5z61fk",tablet:"_1yep5z61fl",desktop:"_1yep5z61fm"},defaultClass:"_1yep5z61fk _1yep5z61fl _1yep5z61fm"},none:{conditions:{mobile:"_1yep5z61fn",tablet:"_1yep5z61fo",desktop:"_1yep5z61fp"},defaultClass:"_1yep5z61fn _1yep5z61fo _1yep5z61fp"}},responsiveArray:void 0},marginInlineStart:{values:{xs:{conditions:{mobile:"_1yep5z61fq",tablet:"_1yep5z61fr",desktop:"_1yep5z61fs"},defaultClass:"_1yep5z61fq _1yep5z61fr _1yep5z61fs"},sm:{conditions:{mobile:"_1yep5z61ft",tablet:"_1yep5z61fu",desktop:"_1yep5z61fv"},defaultClass:"_1yep5z61ft _1yep5z61fu _1yep5z61fv"},md:{conditions:{mobile:"_1yep5z61fw",tablet:"_1yep5z61fx",desktop:"_1yep5z61fy"},defaultClass:"_1yep5z61fw _1yep5z61fx _1yep5z61fy"},lg:{conditions:{mobile:"_1yep5z61fz",tablet:"_1yep5z61g0",desktop:"_1yep5z61g1"},defaultClass:"_1yep5z61fz _1yep5z61g0 _1yep5z61g1"},xl:{conditions:{mobile:"_1yep5z61g2",tablet:"_1yep5z61g3",desktop:"_1yep5z61g4"},defaultClass:"_1yep5z61g2 _1yep5z61g3 _1yep5z61g4"},"2xl":{conditions:{mobile:"_1yep5z61g5",tablet:"_1yep5z61g6",desktop:"_1yep5z61g7"},defaultClass:"_1yep5z61g5 _1yep5z61g6 _1yep5z61g7"},"3xl":{conditions:{mobile:"_1yep5z61g8",tablet:"_1yep5z61g9",desktop:"_1yep5z61ga"},defaultClass:"_1yep5z61g8 _1yep5z61g9 _1yep5z61ga"},"4xl":{conditions:{mobile:"_1yep5z61gb",tablet:"_1yep5z61gc",desktop:"_1yep5z61gd"},defaultClass:"_1yep5z61gb _1yep5z61gc _1yep5z61gd"},"5xl":{conditions:{mobile:"_1yep5z61ge",tablet:"_1yep5z61gf",desktop:"_1yep5z61gg"},defaultClass:"_1yep5z61ge _1yep5z61gf _1yep5z61gg"},"6xl":{conditions:{mobile:"_1yep5z61gh",tablet:"_1yep5z61gi",desktop:"_1yep5z61gj"},defaultClass:"_1yep5z61gh _1yep5z61gi _1yep5z61gj"},"7xl":{conditions:{mobile:"_1yep5z61gk",tablet:"_1yep5z61gl",desktop:"_1yep5z61gm"},defaultClass:"_1yep5z61gk _1yep5z61gl _1yep5z61gm"},"8xl":{conditions:{mobile:"_1yep5z61gn",tablet:"_1yep5z61go",desktop:"_1yep5z61gp"},defaultClass:"_1yep5z61gn _1yep5z61go _1yep5z61gp"},"9xl":{conditions:{mobile:"_1yep5z61gq",tablet:"_1yep5z61gr",desktop:"_1yep5z61gs"},defaultClass:"_1yep5z61gq _1yep5z61gr _1yep5z61gs"},none:{conditions:{mobile:"_1yep5z61gt",tablet:"_1yep5z61gu",desktop:"_1yep5z61gv"},defaultClass:"_1yep5z61gt _1yep5z61gu _1yep5z61gv"}},responsiveArray:void 0},gap:{values:{xs:{conditions:{mobile:"_1yep5z61gw",tablet:"_1yep5z61gx",desktop:"_1yep5z61gy"},defaultClass:"_1yep5z61gw _1yep5z61gx _1yep5z61gy"},sm:{conditions:{mobile:"_1yep5z61gz",tablet:"_1yep5z61h0",desktop:"_1yep5z61h1"},defaultClass:"_1yep5z61gz _1yep5z61h0 _1yep5z61h1"},md:{conditions:{mobile:"_1yep5z61h2",tablet:"_1yep5z61h3",desktop:"_1yep5z61h4"},defaultClass:"_1yep5z61h2 _1yep5z61h3 _1yep5z61h4"},lg:{conditions:{mobile:"_1yep5z61h5",tablet:"_1yep5z61h6",desktop:"_1yep5z61h7"},defaultClass:"_1yep5z61h5 _1yep5z61h6 _1yep5z61h7"},xl:{conditions:{mobile:"_1yep5z61h8",tablet:"_1yep5z61h9",desktop:"_1yep5z61ha"},defaultClass:"_1yep5z61h8 _1yep5z61h9 _1yep5z61ha"},"2xl":{conditions:{mobile:"_1yep5z61hb",tablet:"_1yep5z61hc",desktop:"_1yep5z61hd"},defaultClass:"_1yep5z61hb _1yep5z61hc _1yep5z61hd"},"3xl":{conditions:{mobile:"_1yep5z61he",tablet:"_1yep5z61hf",desktop:"_1yep5z61hg"},defaultClass:"_1yep5z61he _1yep5z61hf _1yep5z61hg"},"4xl":{conditions:{mobile:"_1yep5z61hh",tablet:"_1yep5z61hi",desktop:"_1yep5z61hj"},defaultClass:"_1yep5z61hh _1yep5z61hi _1yep5z61hj"},"5xl":{conditions:{mobile:"_1yep5z61hk",tablet:"_1yep5z61hl",desktop:"_1yep5z61hm"},defaultClass:"_1yep5z61hk _1yep5z61hl _1yep5z61hm"},"6xl":{conditions:{mobile:"_1yep5z61hn",tablet:"_1yep5z61ho",desktop:"_1yep5z61hp"},defaultClass:"_1yep5z61hn _1yep5z61ho _1yep5z61hp"},"7xl":{conditions:{mobile:"_1yep5z61hq",tablet:"_1yep5z61hr",desktop:"_1yep5z61hs"},defaultClass:"_1yep5z61hq _1yep5z61hr _1yep5z61hs"},"8xl":{conditions:{mobile:"_1yep5z61ht",tablet:"_1yep5z61hu",desktop:"_1yep5z61hv"},defaultClass:"_1yep5z61ht _1yep5z61hu _1yep5z61hv"},"9xl":{conditions:{mobile:"_1yep5z61hw",tablet:"_1yep5z61hx",desktop:"_1yep5z61hy"},defaultClass:"_1yep5z61hw _1yep5z61hx _1yep5z61hy"},none:{conditions:{mobile:"_1yep5z61hz",tablet:"_1yep5z61i0",desktop:"_1yep5z61i1"},defaultClass:"_1yep5z61hz _1yep5z61i0 _1yep5z61i1"}},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:"_1yep5z61i2",tablet:"_1yep5z61i3",desktop:"_1yep5z61i4"},defaultClass:"_1yep5z61i2 _1yep5z61i3 _1yep5z61i4"},sm:{conditions:{mobile:"_1yep5z61i5",tablet:"_1yep5z61i6",desktop:"_1yep5z61i7"},defaultClass:"_1yep5z61i5 _1yep5z61i6 _1yep5z61i7"},md:{conditions:{mobile:"_1yep5z61i8",tablet:"_1yep5z61i9",desktop:"_1yep5z61ia"},defaultClass:"_1yep5z61i8 _1yep5z61i9 _1yep5z61ia"},lg:{conditions:{mobile:"_1yep5z61ib",tablet:"_1yep5z61ic",desktop:"_1yep5z61id"},defaultClass:"_1yep5z61ib _1yep5z61ic _1yep5z61id"},xl:{conditions:{mobile:"_1yep5z61ie",tablet:"_1yep5z61if",desktop:"_1yep5z61ig"},defaultClass:"_1yep5z61ie _1yep5z61if _1yep5z61ig"},"2xl":{conditions:{mobile:"_1yep5z61ih",tablet:"_1yep5z61ii",desktop:"_1yep5z61ij"},defaultClass:"_1yep5z61ih _1yep5z61ii _1yep5z61ij"},full:{conditions:{mobile:"_1yep5z61ik",tablet:"_1yep5z61il",desktop:"_1yep5z61im"},defaultClass:"_1yep5z61ik _1yep5z61il _1yep5z61im"},none:{conditions:{mobile:"_1yep5z61in",tablet:"_1yep5z61io",desktop:"_1yep5z61ip"},defaultClass:"_1yep5z61in _1yep5z61io _1yep5z61ip"}},responsiveArray:void 0},borderStartEndRadius:{values:{xs:{conditions:{mobile:"_1yep5z61iq",tablet:"_1yep5z61ir",desktop:"_1yep5z61is"},defaultClass:"_1yep5z61iq _1yep5z61ir _1yep5z61is"},sm:{conditions:{mobile:"_1yep5z61it",tablet:"_1yep5z61iu",desktop:"_1yep5z61iv"},defaultClass:"_1yep5z61it _1yep5z61iu _1yep5z61iv"},md:{conditions:{mobile:"_1yep5z61iw",tablet:"_1yep5z61ix",desktop:"_1yep5z61iy"},defaultClass:"_1yep5z61iw _1yep5z61ix _1yep5z61iy"},lg:{conditions:{mobile:"_1yep5z61iz",tablet:"_1yep5z61j0",desktop:"_1yep5z61j1"},defaultClass:"_1yep5z61iz _1yep5z61j0 _1yep5z61j1"},xl:{conditions:{mobile:"_1yep5z61j2",tablet:"_1yep5z61j3",desktop:"_1yep5z61j4"},defaultClass:"_1yep5z61j2 _1yep5z61j3 _1yep5z61j4"},"2xl":{conditions:{mobile:"_1yep5z61j5",tablet:"_1yep5z61j6",desktop:"_1yep5z61j7"},defaultClass:"_1yep5z61j5 _1yep5z61j6 _1yep5z61j7"},full:{conditions:{mobile:"_1yep5z61j8",tablet:"_1yep5z61j9",desktop:"_1yep5z61ja"},defaultClass:"_1yep5z61j8 _1yep5z61j9 _1yep5z61ja"},none:{conditions:{mobile:"_1yep5z61jb",tablet:"_1yep5z61jc",desktop:"_1yep5z61jd"},defaultClass:"_1yep5z61jb _1yep5z61jc _1yep5z61jd"}},responsiveArray:void 0},borderEndStartRadius:{values:{xs:{conditions:{mobile:"_1yep5z61je",tablet:"_1yep5z61jf",desktop:"_1yep5z61jg"},defaultClass:"_1yep5z61je _1yep5z61jf _1yep5z61jg"},sm:{conditions:{mobile:"_1yep5z61jh",tablet:"_1yep5z61ji",desktop:"_1yep5z61jj"},defaultClass:"_1yep5z61jh _1yep5z61ji _1yep5z61jj"},md:{conditions:{mobile:"_1yep5z61jk",tablet:"_1yep5z61jl",desktop:"_1yep5z61jm"},defaultClass:"_1yep5z61jk _1yep5z61jl _1yep5z61jm"},lg:{conditions:{mobile:"_1yep5z61jn",tablet:"_1yep5z61jo",desktop:"_1yep5z61jp"},defaultClass:"_1yep5z61jn _1yep5z61jo _1yep5z61jp"},xl:{conditions:{mobile:"_1yep5z61jq",tablet:"_1yep5z61jr",desktop:"_1yep5z61js"},defaultClass:"_1yep5z61jq _1yep5z61jr _1yep5z61js"},"2xl":{conditions:{mobile:"_1yep5z61jt",tablet:"_1yep5z61ju",desktop:"_1yep5z61jv"},defaultClass:"_1yep5z61jt _1yep5z61ju _1yep5z61jv"},full:{conditions:{mobile:"_1yep5z61jw",tablet:"_1yep5z61jx",desktop:"_1yep5z61jy"},defaultClass:"_1yep5z61jw _1yep5z61jx _1yep5z61jy"},none:{conditions:{mobile:"_1yep5z61jz",tablet:"_1yep5z61k0",desktop:"_1yep5z61k1"},defaultClass:"_1yep5z61jz _1yep5z61k0 _1yep5z61k1"}},responsiveArray:void 0},borderEndEndRadius:{values:{xs:{conditions:{mobile:"_1yep5z61k2",tablet:"_1yep5z61k3",desktop:"_1yep5z61k4"},defaultClass:"_1yep5z61k2 _1yep5z61k3 _1yep5z61k4"},sm:{conditions:{mobile:"_1yep5z61k5",tablet:"_1yep5z61k6",desktop:"_1yep5z61k7"},defaultClass:"_1yep5z61k5 _1yep5z61k6 _1yep5z61k7"},md:{conditions:{mobile:"_1yep5z61k8",tablet:"_1yep5z61k9",desktop:"_1yep5z61ka"},defaultClass:"_1yep5z61k8 _1yep5z61k9 _1yep5z61ka"},lg:{conditions:{mobile:"_1yep5z61kb",tablet:"_1yep5z61kc",desktop:"_1yep5z61kd"},defaultClass:"_1yep5z61kb _1yep5z61kc _1yep5z61kd"},xl:{conditions:{mobile:"_1yep5z61ke",tablet:"_1yep5z61kf",desktop:"_1yep5z61kg"},defaultClass:"_1yep5z61ke _1yep5z61kf _1yep5z61kg"},"2xl":{conditions:{mobile:"_1yep5z61kh",tablet:"_1yep5z61ki",desktop:"_1yep5z61kj"},defaultClass:"_1yep5z61kh _1yep5z61ki _1yep5z61kj"},full:{conditions:{mobile:"_1yep5z61kk",tablet:"_1yep5z61kl",desktop:"_1yep5z61km"},defaultClass:"_1yep5z61kk _1yep5z61kl _1yep5z61km"},none:{conditions:{mobile:"_1yep5z61kn",tablet:"_1yep5z61ko",desktop:"_1yep5z61kp"},defaultClass:"_1yep5z61kn _1yep5z61ko _1yep5z61kp"}},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:"_1yep5z61kq"},medium:{defaultClass:"_1yep5z61kr"}}}}},{conditions:void 0,styles:{opacity:{values:{none:{defaultClass:"_1yep5z61ks"},low:{defaultClass:"_1yep5z61kt"},medium:{defaultClass:"_1yep5z61ku"},high:{defaultClass:"_1yep5z61kv"}}}}},{conditions:void 0,styles:{typography:{values:{"heading.h6.regular":{defaultClass:"_1yep5z61kw"},"heading.h6.medium":{defaultClass:"_1yep5z61kx"},"heading.h6.semibold":{defaultClass:"_1yep5z61ky"},"heading.h5.regular":{defaultClass:"_1yep5z61kz"},"heading.h5.medium":{defaultClass:"_1yep5z61l0"},"heading.h5.semibold":{defaultClass:"_1yep5z61l1"},"heading.h4.regular":{defaultClass:"_1yep5z61l2"},"heading.h4.medium":{defaultClass:"_1yep5z61l3"},"heading.h4.semibold":{defaultClass:"_1yep5z61l4"},"heading.h3.regular":{defaultClass:"_1yep5z61l5"},"heading.h3.medium":{defaultClass:"_1yep5z61l6"},"heading.h3.semibold":{defaultClass:"_1yep5z61l7"},"heading.h2.regular":{defaultClass:"_1yep5z61l8"},"heading.h2.medium":{defaultClass:"_1yep5z61l9"},"heading.h2.semibold":{defaultClass:"_1yep5z61la"},"heading.h1.regular":{defaultClass:"_1yep5z61lb"},"heading.h1.medium":{defaultClass:"_1yep5z61lc"},"heading.h1.semibold":{defaultClass:"_1yep5z61ld"},"label.sm.regular":{defaultClass:"_1yep5z61le"},"label.sm.medium":{defaultClass:"_1yep5z61lf"},"label.sm.semibold":{defaultClass:"_1yep5z61lg"},"label.md.regular":{defaultClass:"_1yep5z61lh"},"label.md.medium":{defaultClass:"_1yep5z61li"},"label.md.semibold":{defaultClass:"_1yep5z61lj"},"label.lg.regular":{defaultClass:"_1yep5z61lk"},"label.lg.medium":{defaultClass:"_1yep5z61ll"},"label.lg.semibold":{defaultClass:"_1yep5z61lm"},"body.sm.regular":{defaultClass:"_1yep5z61ln"},"body.sm.medium":{defaultClass:"_1yep5z61lo"},"body.sm.semibold":{defaultClass:"_1yep5z61lp"},"body.md.regular":{defaultClass:"_1yep5z61lq"},"body.md.medium":{defaultClass:"_1yep5z61lr"},"body.md.semibold":{defaultClass:"_1yep5z61ls"},"body.lg.regular":{defaultClass:"_1yep5z61lt"},"body.lg.medium":{defaultClass:"_1yep5z61lu"},"body.lg.semibold":{defaultClass:"_1yep5z61lv"}}}}},{conditions:void 0,styles:{color:{values:{"support.error.subtler":{defaultClass:"_1yep5z61lw"},"support.error.subtle":{defaultClass:"_1yep5z61lx"},"support.error.medium":{defaultClass:"_1yep5z61ly"},"support.error.strong":{defaultClass:"_1yep5z61lz"},"support.success.subtler":{defaultClass:"_1yep5z61m0"},"support.success.subtle":{defaultClass:"_1yep5z61m1"},"support.success.medium":{defaultClass:"_1yep5z61m2"},"support.success.strong":{defaultClass:"_1yep5z61m3"},"support.warning.subtler":{defaultClass:"_1yep5z61m4"},"support.warning.subtle":{defaultClass:"_1yep5z61m5"},"support.warning.medium":{defaultClass:"_1yep5z61m6"},"support.warning.strong":{defaultClass:"_1yep5z61m7"},"support.info.subtler":{defaultClass:"_1yep5z61m8"},"support.info.subtle":{defaultClass:"_1yep5z61m9"},"support.info.medium":{defaultClass:"_1yep5z61ma"},"support.info.strong":{defaultClass:"_1yep5z61mb"},"focused.default":{defaultClass:"_1yep5z61mc"},"focused.inset":{defaultClass:"_1yep5z61md"},"text.primary":{defaultClass:"_1yep5z61me"},"text.secondary":{defaultClass:"_1yep5z61mf"},"text.helper":{defaultClass:"_1yep5z61mg"},"text.placeholder":{defaultClass:"_1yep5z61mh"},"text.interactive.disabled":{defaultClass:"_1yep5z61mi"},"text.inverse":{defaultClass:"_1yep5z61mj"},"text.oninteractive":{defaultClass:"_1yep5z61mk"},"text.interactive.enabled":{defaultClass:"_1yep5z61ml"},"text.interactive.hovered":{defaultClass:"_1yep5z61mm"},"text.interactive.active":{defaultClass:"_1yep5z61mn"},"text.interactive.visited":{defaultClass:"_1yep5z61mo"},"icon.primary":{defaultClass:"_1yep5z61mp"},"icon.secondary":{defaultClass:"_1yep5z61mq"},"icon.interactive.disabled":{defaultClass:"_1yep5z61mr"},"icon.inverse":{defaultClass:"_1yep5z61ms"},"icon.oninteractive":{defaultClass:"_1yep5z61mt"},"icon.interactive.enabled":{defaultClass:"_1yep5z61mu"},"icon.interactive.hovered":{defaultClass:"_1yep5z61mv"},"icon.interactive.active":{defaultClass:"_1yep5z61mw"},"icon.interactive.visited":{defaultClass:"_1yep5z61mx"},"background.interactive.enabled":{defaultClass:"_1yep5z61my"},"background.interactive.hovered":{defaultClass:"_1yep5z61mz"},"background.interactive.active":{defaultClass:"_1yep5z61n0"},"background.interactive.visited":{defaultClass:"_1yep5z61n1"},"background.interactive.disabled":{defaultClass:"_1yep5z61n2"}}},backgroundColor:{values:{"support.error.subtler":{defaultClass:"_1yep5z61n3"},"support.error.subtle":{defaultClass:"_1yep5z61n4"},"support.error.medium":{defaultClass:"_1yep5z61n5"},"support.error.strong":{defaultClass:"_1yep5z61n6"},"support.success.subtler":{defaultClass:"_1yep5z61n7"},"support.success.subtle":{defaultClass:"_1yep5z61n8"},"support.success.medium":{defaultClass:"_1yep5z61n9"},"support.success.strong":{defaultClass:"_1yep5z61na"},"support.warning.subtler":{defaultClass:"_1yep5z61nb"},"support.warning.subtle":{defaultClass:"_1yep5z61nc"},"support.warning.medium":{defaultClass:"_1yep5z61nd"},"support.warning.strong":{defaultClass:"_1yep5z61ne"},"support.info.subtler":{defaultClass:"_1yep5z61nf"},"support.info.subtle":{defaultClass:"_1yep5z61ng"},"support.info.medium":{defaultClass:"_1yep5z61nh"},"support.info.strong":{defaultClass:"_1yep5z61ni"},"focused.default":{defaultClass:"_1yep5z61nj"},"focused.inset":{defaultClass:"_1yep5z61nk"},"background.primary.subtle":{defaultClass:"_1yep5z61nl"},"background.primary.medium":{defaultClass:"_1yep5z61nm"},"background.primary.strong":{defaultClass:"_1yep5z61nn"},"background.secondary.subtle":{defaultClass:"_1yep5z61no"},"background.secondary.medium":{defaultClass:"_1yep5z61np"},"background.secondary.strong":{defaultClass:"_1yep5z61nq"},"background.inverse.subtle":{defaultClass:"_1yep5z61nr"},"background.inverse.medium":{defaultClass:"_1yep5z61ns"},"background.inverse.strong":{defaultClass:"_1yep5z61nt"},"background.overlay.subtle":{defaultClass:"_1yep5z61nu"},"background.overlay.medium":{defaultClass:"_1yep5z61nv"},"background.positive.subtle":{defaultClass:"_1yep5z61nw"},"background.positive.medium":{defaultClass:"_1yep5z61nx"},"background.positive.strong":{defaultClass:"_1yep5z61ny"},"border.positive.interactive.enabled":{defaultClass:"_1yep5z61nz"}}},borderColor:{values:{"support.error.subtler":{defaultClass:"_1yep5z61o0"},"support.error.subtle":{defaultClass:"_1yep5z61o1"},"support.error.medium":{defaultClass:"_1yep5z61o2"},"support.error.strong":{defaultClass:"_1yep5z61o3"},"support.success.subtler":{defaultClass:"_1yep5z61o4"},"support.success.subtle":{defaultClass:"_1yep5z61o5"},"support.success.medium":{defaultClass:"_1yep5z61o6"},"support.success.strong":{defaultClass:"_1yep5z61o7"},"support.warning.subtler":{defaultClass:"_1yep5z61o8"},"support.warning.subtle":{defaultClass:"_1yep5z61o9"},"support.warning.medium":{defaultClass:"_1yep5z61oa"},"support.warning.strong":{defaultClass:"_1yep5z61ob"},"support.info.subtler":{defaultClass:"_1yep5z61oc"},"support.info.subtle":{defaultClass:"_1yep5z61od"},"support.info.medium":{defaultClass:"_1yep5z61oe"},"support.info.strong":{defaultClass:"_1yep5z61of"},"focused.default":{defaultClass:"_1yep5z61og"},"focused.inset":{defaultClass:"_1yep5z61oh"},"border.subtle":{defaultClass:"_1yep5z61oi"},"border.medium":{defaultClass:"_1yep5z61oj"},"border.strong":{defaultClass:"_1yep5z61ok"},"border.inverse":{defaultClass:"_1yep5z61ol"},"border.interactive.enabled":{defaultClass:"_1yep5z61om"},"border.interactive.hovered":{defaultClass:"_1yep5z61on"},"border.interactive.active":{defaultClass:"_1yep5z61oo"},"border.interactive.visited":{defaultClass:"_1yep5z61op"},"border.interactive.disabled":{defaultClass:"_1yep5z61oq"},"border.positive.interactive.enabled":{defaultClass:"_1yep5z61or"},transparent:{defaultClass:"_1yep5z61os"}}},outlineColor:{values:{"support.error.subtler":{defaultClass:"_1yep5z61ot"},"support.error.subtle":{defaultClass:"_1yep5z61ou"},"support.error.medium":{defaultClass:"_1yep5z61ov"},"support.error.strong":{defaultClass:"_1yep5z61ow"},"support.success.subtler":{defaultClass:"_1yep5z61ox"},"support.success.subtle":{defaultClass:"_1yep5z61oy"},"support.success.medium":{defaultClass:"_1yep5z61oz"},"support.success.strong":{defaultClass:"_1yep5z61p0"},"support.warning.subtler":{defaultClass:"_1yep5z61p1"},"support.warning.subtle":{defaultClass:"_1yep5z61p2"},"support.warning.medium":{defaultClass:"_1yep5z61p3"},"support.warning.strong":{defaultClass:"_1yep5z61p4"},"support.info.subtler":{defaultClass:"_1yep5z61p5"},"support.info.subtle":{defaultClass:"_1yep5z61p6"},"support.info.medium":{defaultClass:"_1yep5z61p7"},"support.info.strong":{defaultClass:"_1yep5z61p8"},"focused.default":{defaultClass:"_1yep5z61p9"},"focused.inset":{defaultClass:"_1yep5z61pa"},"border.subtle":{defaultClass:"_1yep5z61pb"},"border.medium":{defaultClass:"_1yep5z61pc"},"border.strong":{defaultClass:"_1yep5z61pd"},"border.inverse":{defaultClass:"_1yep5z61pe"},"border.interactive.enabled":{defaultClass:"_1yep5z61pf"},"border.interactive.hovered":{defaultClass:"_1yep5z61pg"},"border.interactive.active":{defaultClass:"_1yep5z61ph"},"border.interactive.visited":{defaultClass:"_1yep5z61pi"},"border.interactive.disabled":{defaultClass:"_1yep5z61pj"},"border.positive.interactive.enabled":{defaultClass:"_1yep5z61pk"},transparent:{defaultClass:"_1yep5z61pl"}}}}},function(){var e={conditions:{defaultCondition:["mobile","tablet","desktop"],conditionNames:["mobile","tablet","desktop"],responsiveArray:["mobile","tablet","desktop"]},styles:{position:{values:{relative:{conditions:{mobile:"_1yep5z61pm",tablet:"_1yep5z61pn",desktop:"_1yep5z61po"},defaultClass:"_1yep5z61pm _1yep5z61pn _1yep5z61po"},absolute:{conditions:{mobile:"_1yep5z61pp",tablet:"_1yep5z61pq",desktop:"_1yep5z61pr"},defaultClass:"_1yep5z61pp _1yep5z61pq _1yep5z61pr"},fixed:{conditions:{mobile:"_1yep5z61ps",tablet:"_1yep5z61pt",desktop:"_1yep5z61pu"},defaultClass:"_1yep5z61ps _1yep5z61pt _1yep5z61pu"}},responsiveArray:void 0},display:{values:{none:{conditions:{mobile:"_1yep5z61pv",tablet:"_1yep5z61pw",desktop:"_1yep5z61px"},defaultClass:"_1yep5z61pv _1yep5z61pw _1yep5z61px"},block:{conditions:{mobile:"_1yep5z61py",tablet:"_1yep5z61pz",desktop:"_1yep5z61q0"},defaultClass:"_1yep5z61py _1yep5z61pz _1yep5z61q0"},flex:{conditions:{mobile:"_1yep5z61q1",tablet:"_1yep5z61q2",desktop:"_1yep5z61q3"},defaultClass:"_1yep5z61q1 _1yep5z61q2 _1yep5z61q3"},"inline-flex":{conditions:{mobile:"_1yep5z61q4",tablet:"_1yep5z61q5",desktop:"_1yep5z61q6"},defaultClass:"_1yep5z61q4 _1yep5z61q5 _1yep5z61q6"},grid:{conditions:{mobile:"_1yep5z61q7",tablet:"_1yep5z61q8",desktop:"_1yep5z61q9"},defaultClass:"_1yep5z61q7 _1yep5z61q8 _1yep5z61q9"}},responsiveArray:void 0},flexDirection:{values:{row:{conditions:{mobile:"_1yep5z61qa",tablet:"_1yep5z61qb",desktop:"_1yep5z61qc"},defaultClass:"_1yep5z61qa _1yep5z61qb _1yep5z61qc"},column:{conditions:{mobile:"_1yep5z61qd",tablet:"_1yep5z61qe",desktop:"_1yep5z61qf"},defaultClass:"_1yep5z61qd _1yep5z61qe _1yep5z61qf"},"row-reverse":{conditions:{mobile:"_1yep5z61qg",tablet:"_1yep5z61qh",desktop:"_1yep5z61qi"},defaultClass:"_1yep5z61qg _1yep5z61qh _1yep5z61qi"},"column-reverse":{conditions:{mobile:"_1yep5z61qj",tablet:"_1yep5z61qk",desktop:"_1yep5z61ql"},defaultClass:"_1yep5z61qj _1yep5z61qk _1yep5z61ql"}},responsiveArray:void 0},alignItems:{values:{stretch:{conditions:{mobile:"_1yep5z61qm",tablet:"_1yep5z61qn",desktop:"_1yep5z61qo"},defaultClass:"_1yep5z61qm _1yep5z61qn _1yep5z61qo"},"flex-start":{conditions:{mobile:"_1yep5z61qp",tablet:"_1yep5z61qq",desktop:"_1yep5z61qr"},defaultClass:"_1yep5z61qp _1yep5z61qq _1yep5z61qr"},center:{conditions:{mobile:"_1yep5z61qs",tablet:"_1yep5z61qt",desktop:"_1yep5z61qu"},defaultClass:"_1yep5z61qs _1yep5z61qt _1yep5z61qu"},"flex-end":{conditions:{mobile:"_1yep5z61qv",tablet:"_1yep5z61qw",desktop:"_1yep5z61qx"},defaultClass:"_1yep5z61qv _1yep5z61qw _1yep5z61qx"}},responsiveArray:void 0},alignSelf:{values:{stretch:{conditions:{mobile:"_1yep5z61qy",tablet:"_1yep5z61qz",desktop:"_1yep5z61r0"},defaultClass:"_1yep5z61qy _1yep5z61qz _1yep5z61r0"},"flex-start":{conditions:{mobile:"_1yep5z61r1",tablet:"_1yep5z61r2",desktop:"_1yep5z61r3"},defaultClass:"_1yep5z61r1 _1yep5z61r2 _1yep5z61r3"},center:{conditions:{mobile:"_1yep5z61r4",tablet:"_1yep5z61r5",desktop:"_1yep5z61r6"},defaultClass:"_1yep5z61r4 _1yep5z61r5 _1yep5z61r6"},"flex-end":{conditions:{mobile:"_1yep5z61r7",tablet:"_1yep5z61r8",desktop:"_1yep5z61r9"},defaultClass:"_1yep5z61r7 _1yep5z61r8 _1yep5z61r9"}},responsiveArray:void 0},flex:{values:{0:{conditions:{mobile:"_1yep5z61ra",tablet:"_1yep5z61rb",desktop:"_1yep5z61rc"},defaultClass:"_1yep5z61ra _1yep5z61rb _1yep5z61rc"},1:{conditions:{mobile:"_1yep5z61rd",tablet:"_1yep5z61re",desktop:"_1yep5z61rf"},defaultClass:"_1yep5z61rd _1yep5z61re _1yep5z61rf"}},responsiveArray:void 0},justifyContent:{values:{stretch:{conditions:{mobile:"_1yep5z61rg",tablet:"_1yep5z61rh",desktop:"_1yep5z61ri"},defaultClass:"_1yep5z61rg _1yep5z61rh _1yep5z61ri"},"flex-start":{conditions:{mobile:"_1yep5z61rj",tablet:"_1yep5z61rk",desktop:"_1yep5z61rl"},defaultClass:"_1yep5z61rj _1yep5z61rk _1yep5z61rl"},center:{conditions:{mobile:"_1yep5z61rm",tablet:"_1yep5z61rn",desktop:"_1yep5z61ro"},defaultClass:"_1yep5z61rm _1yep5z61rn _1yep5z61ro"},"flex-end":{conditions:{mobile:"_1yep5z61rp",tablet:"_1yep5z61rq",desktop:"_1yep5z61rr"},defaultClass:"_1yep5z61rp _1yep5z61rq _1yep5z61rr"},"space-between":{conditions:{mobile:"_1yep5z61rs",tablet:"_1yep5z61rt",desktop:"_1yep5z61ru"},defaultClass:"_1yep5z61rs _1yep5z61rt _1yep5z61ru"}},responsiveArray:void 0},justifySelf:{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},placeItems:{values:{stretch:{conditions:{mobile:"_1yep5z61s7",tablet:"_1yep5z61s8",desktop:"_1yep5z61s9"},defaultClass:"_1yep5z61s7 _1yep5z61s8 _1yep5z61s9"},"flex-start":{conditions:{mobile:"_1yep5z61sa",tablet:"_1yep5z61sb",desktop:"_1yep5z61sc"},defaultClass:"_1yep5z61sa _1yep5z61sb _1yep5z61sc"},center:{conditions:{mobile:"_1yep5z61sd",tablet:"_1yep5z61se",desktop:"_1yep5z61sf"},defaultClass:"_1yep5z61sd _1yep5z61se _1yep5z61sf"},"flex-end":{conditions:{mobile:"_1yep5z61sg",tablet:"_1yep5z61sh",desktop:"_1yep5z61si"},defaultClass:"_1yep5z61sg _1yep5z61sh _1yep5z61si"}},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:"_1yep5z61sj"}}},transitionProperty:{values:{transform:{defaultClass:"_1yep5z61sk"},opacity:{defaultClass:"_1yep5z61sl"},"background-color":{defaultClass:"_1yep5z61sm"}}}}},{conditions:void 0,styles:{inset:{mappings:["insetBlockStart","insetBlockEnd","insetInlineEnd","insetInlineStart"]},flexWrap:{values:{wrap:{defaultClass:"_1yep5z61sn"},nowrap:{defaultClass:"_1yep5z61so"}}},insetBlockStart:{values:{0:{defaultClass:"_1yep5z61sp"}}},insetBlockEnd:{values:{0:{defaultClass:"_1yep5z61sq"}}},insetInlineStart:{values:{0:{defaultClass:"_1yep5z61sr"}}},insetInlineEnd:{values:{0:{defaultClass:"_1yep5z61ss"}}},flexShrink:{values:{0:{defaultClass:"_1yep5z61st"}}},flexGrow:{values:{0:{defaultClass:"_1yep5z61su"},1:{defaultClass:"_1yep5z61sv"}}},width:{values:{full:{defaultClass:"_1yep5z61sw"}}},height:{values:{full:{defaultClass:"_1yep5z61sx"}}},cursor:{values:{pointer:{defaultClass:"_1yep5z61sy"}}}}},{conditions:void 0,styles:{outline:{values:{none:{defaultClass:"_1yep5z61sz"}}},outlineStyle:{values:{solid:{defaultClass:"_1yep5z61t0"}}},outlineWidth:{values:{1:{defaultClass:"_1yep5z61t1"},2:{defaultClass:"_1yep5z61t2"}}},outlineOffset:{values:{1:{defaultClass:"_1yep5z61t5"},2:{defaultClass:"_1yep5z61t6"},"-2":{defaultClass:"_1yep5z61t3"},"-1":{defaultClass:"_1yep5z61t4"}}},border:{values:{none:{defaultClass:"_1yep5z61t7"}}},borderStyle:{values:{solid:{defaultClass:"_1yep5z61t8"},dashed:{defaultClass:"_1yep5z61t9"}}},borderWidth:{values:{1:{defaultClass:"_1yep5z61ta"},2:{defaultClass:"_1yep5z61tb"}}}}}),f=d(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:"_1yep5z6ls",tablet:"_1yep5z6lt",desktop:"_1yep5z6lu"},defaultClass:"_1yep5z6ls _1yep5z6lt _1yep5z6lu"},sm:{conditions:{mobile:"_1yep5z6lv",tablet:"_1yep5z6lw",desktop:"_1yep5z6lx"},defaultClass:"_1yep5z6lv _1yep5z6lw _1yep5z6lx"},md:{conditions:{mobile:"_1yep5z6ly",tablet:"_1yep5z6lz",desktop:"_1yep5z6m0"},defaultClass:"_1yep5z6ly _1yep5z6lz _1yep5z6m0"},lg:{conditions:{mobile:"_1yep5z6m1",tablet:"_1yep5z6m2",desktop:"_1yep5z6m3"},defaultClass:"_1yep5z6m1 _1yep5z6m2 _1yep5z6m3"},xl:{conditions:{mobile:"_1yep5z6m4",tablet:"_1yep5z6m5",desktop:"_1yep5z6m6"},defaultClass:"_1yep5z6m4 _1yep5z6m5 _1yep5z6m6"},"2xl":{conditions:{mobile:"_1yep5z6m7",tablet:"_1yep5z6m8",desktop:"_1yep5z6m9"},defaultClass:"_1yep5z6m7 _1yep5z6m8 _1yep5z6m9"},"3xl":{conditions:{mobile:"_1yep5z6ma",tablet:"_1yep5z6mb",desktop:"_1yep5z6mc"},defaultClass:"_1yep5z6ma _1yep5z6mb _1yep5z6mc"},"4xl":{conditions:{mobile:"_1yep5z6md",tablet:"_1yep5z6me",desktop:"_1yep5z6mf"},defaultClass:"_1yep5z6md _1yep5z6me _1yep5z6mf"},"5xl":{conditions:{mobile:"_1yep5z6mg",tablet:"_1yep5z6mh",desktop:"_1yep5z6mi"},defaultClass:"_1yep5z6mg _1yep5z6mh _1yep5z6mi"},"6xl":{conditions:{mobile:"_1yep5z6mj",tablet:"_1yep5z6mk",desktop:"_1yep5z6ml"},defaultClass:"_1yep5z6mj _1yep5z6mk _1yep5z6ml"},"7xl":{conditions:{mobile:"_1yep5z6mm",tablet:"_1yep5z6mn",desktop:"_1yep5z6mo"},defaultClass:"_1yep5z6mm _1yep5z6mn _1yep5z6mo"},"8xl":{conditions:{mobile:"_1yep5z6mp",tablet:"_1yep5z6mq",desktop:"_1yep5z6mr"},defaultClass:"_1yep5z6mp _1yep5z6mq _1yep5z6mr"},"9xl":{conditions:{mobile:"_1yep5z6ms",tablet:"_1yep5z6mt",desktop:"_1yep5z6mu"},defaultClass:"_1yep5z6ms _1yep5z6mt _1yep5z6mu"},none:{conditions:{mobile:"_1yep5z6mv",tablet:"_1yep5z6mw",desktop:"_1yep5z6mx"},defaultClass:"_1yep5z6mv _1yep5z6mw _1yep5z6mx"}},responsiveArray:void 0},paddingInlineEnd:{values:{xs:{conditions:{mobile:"_1yep5z6my",tablet:"_1yep5z6mz",desktop:"_1yep5z6n0"},defaultClass:"_1yep5z6my _1yep5z6mz _1yep5z6n0"},sm:{conditions:{mobile:"_1yep5z6n1",tablet:"_1yep5z6n2",desktop:"_1yep5z6n3"},defaultClass:"_1yep5z6n1 _1yep5z6n2 _1yep5z6n3"},md:{conditions:{mobile:"_1yep5z6n4",tablet:"_1yep5z6n5",desktop:"_1yep5z6n6"},defaultClass:"_1yep5z6n4 _1yep5z6n5 _1yep5z6n6"},lg:{conditions:{mobile:"_1yep5z6n7",tablet:"_1yep5z6n8",desktop:"_1yep5z6n9"},defaultClass:"_1yep5z6n7 _1yep5z6n8 _1yep5z6n9"},xl:{conditions:{mobile:"_1yep5z6na",tablet:"_1yep5z6nb",desktop:"_1yep5z6nc"},defaultClass:"_1yep5z6na _1yep5z6nb _1yep5z6nc"},"2xl":{conditions:{mobile:"_1yep5z6nd",tablet:"_1yep5z6ne",desktop:"_1yep5z6nf"},defaultClass:"_1yep5z6nd _1yep5z6ne _1yep5z6nf"},"3xl":{conditions:{mobile:"_1yep5z6ng",tablet:"_1yep5z6nh",desktop:"_1yep5z6ni"},defaultClass:"_1yep5z6ng _1yep5z6nh _1yep5z6ni"},"4xl":{conditions:{mobile:"_1yep5z6nj",tablet:"_1yep5z6nk",desktop:"_1yep5z6nl"},defaultClass:"_1yep5z6nj _1yep5z6nk _1yep5z6nl"},"5xl":{conditions:{mobile:"_1yep5z6nm",tablet:"_1yep5z6nn",desktop:"_1yep5z6no"},defaultClass:"_1yep5z6nm _1yep5z6nn _1yep5z6no"},"6xl":{conditions:{mobile:"_1yep5z6np",tablet:"_1yep5z6nq",desktop:"_1yep5z6nr"},defaultClass:"_1yep5z6np _1yep5z6nq _1yep5z6nr"},"7xl":{conditions:{mobile:"_1yep5z6ns",tablet:"_1yep5z6nt",desktop:"_1yep5z6nu"},defaultClass:"_1yep5z6ns _1yep5z6nt _1yep5z6nu"},"8xl":{conditions:{mobile:"_1yep5z6nv",tablet:"_1yep5z6nw",desktop:"_1yep5z6nx"},defaultClass:"_1yep5z6nv _1yep5z6nw _1yep5z6nx"},"9xl":{conditions:{mobile:"_1yep5z6ny",tablet:"_1yep5z6nz",desktop:"_1yep5z6o0"},defaultClass:"_1yep5z6ny _1yep5z6nz _1yep5z6o0"},none:{conditions:{mobile:"_1yep5z6o1",tablet:"_1yep5z6o2",desktop:"_1yep5z6o3"},defaultClass:"_1yep5z6o1 _1yep5z6o2 _1yep5z6o3"}},responsiveArray:void 0},paddingBlockEnd:{values:{xs:{conditions:{mobile:"_1yep5z6o4",tablet:"_1yep5z6o5",desktop:"_1yep5z6o6"},defaultClass:"_1yep5z6o4 _1yep5z6o5 _1yep5z6o6"},sm:{conditions:{mobile:"_1yep5z6o7",tablet:"_1yep5z6o8",desktop:"_1yep5z6o9"},defaultClass:"_1yep5z6o7 _1yep5z6o8 _1yep5z6o9"},md:{conditions:{mobile:"_1yep5z6oa",tablet:"_1yep5z6ob",desktop:"_1yep5z6oc"},defaultClass:"_1yep5z6oa _1yep5z6ob _1yep5z6oc"},lg:{conditions:{mobile:"_1yep5z6od",tablet:"_1yep5z6oe",desktop:"_1yep5z6of"},defaultClass:"_1yep5z6od _1yep5z6oe _1yep5z6of"},xl:{conditions:{mobile:"_1yep5z6og",tablet:"_1yep5z6oh",desktop:"_1yep5z6oi"},defaultClass:"_1yep5z6og _1yep5z6oh _1yep5z6oi"},"2xl":{conditions:{mobile:"_1yep5z6oj",tablet:"_1yep5z6ok",desktop:"_1yep5z6ol"},defaultClass:"_1yep5z6oj _1yep5z6ok _1yep5z6ol"},"3xl":{conditions:{mobile:"_1yep5z6om",tablet:"_1yep5z6on",desktop:"_1yep5z6oo"},defaultClass:"_1yep5z6om _1yep5z6on _1yep5z6oo"},"4xl":{conditions:{mobile:"_1yep5z6op",tablet:"_1yep5z6oq",desktop:"_1yep5z6or"},defaultClass:"_1yep5z6op _1yep5z6oq _1yep5z6or"},"5xl":{conditions:{mobile:"_1yep5z6os",tablet:"_1yep5z6ot",desktop:"_1yep5z6ou"},defaultClass:"_1yep5z6os _1yep5z6ot _1yep5z6ou"},"6xl":{conditions:{mobile:"_1yep5z6ov",tablet:"_1yep5z6ow",desktop:"_1yep5z6ox"},defaultClass:"_1yep5z6ov _1yep5z6ow _1yep5z6ox"},"7xl":{conditions:{mobile:"_1yep5z6oy",tablet:"_1yep5z6oz",desktop:"_1yep5z6p0"},defaultClass:"_1yep5z6oy _1yep5z6oz _1yep5z6p0"},"8xl":{conditions:{mobile:"_1yep5z6p1",tablet:"_1yep5z6p2",desktop:"_1yep5z6p3"},defaultClass:"_1yep5z6p1 _1yep5z6p2 _1yep5z6p3"},"9xl":{conditions:{mobile:"_1yep5z6p4",tablet:"_1yep5z6p5",desktop:"_1yep5z6p6"},defaultClass:"_1yep5z6p4 _1yep5z6p5 _1yep5z6p6"},none:{conditions:{mobile:"_1yep5z6p7",tablet:"_1yep5z6p8",desktop:"_1yep5z6p9"},defaultClass:"_1yep5z6p7 _1yep5z6p8 _1yep5z6p9"}},responsiveArray:void 0},paddingInlineStart:{values:{xs:{conditions:{mobile:"_1yep5z6pa",tablet:"_1yep5z6pb",desktop:"_1yep5z6pc"},defaultClass:"_1yep5z6pa _1yep5z6pb _1yep5z6pc"},sm:{conditions:{mobile:"_1yep5z6pd",tablet:"_1yep5z6pe",desktop:"_1yep5z6pf"},defaultClass:"_1yep5z6pd _1yep5z6pe _1yep5z6pf"},md:{conditions:{mobile:"_1yep5z6pg",tablet:"_1yep5z6ph",desktop:"_1yep5z6pi"},defaultClass:"_1yep5z6pg _1yep5z6ph _1yep5z6pi"},lg:{conditions:{mobile:"_1yep5z6pj",tablet:"_1yep5z6pk",desktop:"_1yep5z6pl"},defaultClass:"_1yep5z6pj _1yep5z6pk _1yep5z6pl"},xl:{conditions:{mobile:"_1yep5z6pm",tablet:"_1yep5z6pn",desktop:"_1yep5z6po"},defaultClass:"_1yep5z6pm _1yep5z6pn _1yep5z6po"},"2xl":{conditions:{mobile:"_1yep5z6pp",tablet:"_1yep5z6pq",desktop:"_1yep5z6pr"},defaultClass:"_1yep5z6pp _1yep5z6pq _1yep5z6pr"},"3xl":{conditions:{mobile:"_1yep5z6ps",tablet:"_1yep5z6pt",desktop:"_1yep5z6pu"},defaultClass:"_1yep5z6ps _1yep5z6pt _1yep5z6pu"},"4xl":{conditions:{mobile:"_1yep5z6pv",tablet:"_1yep5z6pw",desktop:"_1yep5z6px"},defaultClass:"_1yep5z6pv _1yep5z6pw _1yep5z6px"},"5xl":{conditions:{mobile:"_1yep5z6py",tablet:"_1yep5z6pz",desktop:"_1yep5z6q0"},defaultClass:"_1yep5z6py _1yep5z6pz _1yep5z6q0"},"6xl":{conditions:{mobile:"_1yep5z6q1",tablet:"_1yep5z6q2",desktop:"_1yep5z6q3"},defaultClass:"_1yep5z6q1 _1yep5z6q2 _1yep5z6q3"},"7xl":{conditions:{mobile:"_1yep5z6q4",tablet:"_1yep5z6q5",desktop:"_1yep5z6q6"},defaultClass:"_1yep5z6q4 _1yep5z6q5 _1yep5z6q6"},"8xl":{conditions:{mobile:"_1yep5z6q7",tablet:"_1yep5z6q8",desktop:"_1yep5z6q9"},defaultClass:"_1yep5z6q7 _1yep5z6q8 _1yep5z6q9"},"9xl":{conditions:{mobile:"_1yep5z6qa",tablet:"_1yep5z6qb",desktop:"_1yep5z6qc"},defaultClass:"_1yep5z6qa _1yep5z6qb _1yep5z6qc"},none:{conditions:{mobile:"_1yep5z6qd",tablet:"_1yep5z6qe",desktop:"_1yep5z6qf"},defaultClass:"_1yep5z6qd _1yep5z6qe _1yep5z6qf"}},responsiveArray:void 0},marginBlockStart:{values:{xs:{conditions:{mobile:"_1yep5z6qg",tablet:"_1yep5z6qh",desktop:"_1yep5z6qi"},defaultClass:"_1yep5z6qg _1yep5z6qh _1yep5z6qi"},sm:{conditions:{mobile:"_1yep5z6qj",tablet:"_1yep5z6qk",desktop:"_1yep5z6ql"},defaultClass:"_1yep5z6qj _1yep5z6qk _1yep5z6ql"},md:{conditions:{mobile:"_1yep5z6qm",tablet:"_1yep5z6qn",desktop:"_1yep5z6qo"},defaultClass:"_1yep5z6qm _1yep5z6qn _1yep5z6qo"},lg:{conditions:{mobile:"_1yep5z6qp",tablet:"_1yep5z6qq",desktop:"_1yep5z6qr"},defaultClass:"_1yep5z6qp _1yep5z6qq _1yep5z6qr"},xl:{conditions:{mobile:"_1yep5z6qs",tablet:"_1yep5z6qt",desktop:"_1yep5z6qu"},defaultClass:"_1yep5z6qs _1yep5z6qt _1yep5z6qu"},"2xl":{conditions:{mobile:"_1yep5z6qv",tablet:"_1yep5z6qw",desktop:"_1yep5z6qx"},defaultClass:"_1yep5z6qv _1yep5z6qw _1yep5z6qx"},"3xl":{conditions:{mobile:"_1yep5z6qy",tablet:"_1yep5z6qz",desktop:"_1yep5z6r0"},defaultClass:"_1yep5z6qy _1yep5z6qz _1yep5z6r0"},"4xl":{conditions:{mobile:"_1yep5z6r1",tablet:"_1yep5z6r2",desktop:"_1yep5z6r3"},defaultClass:"_1yep5z6r1 _1yep5z6r2 _1yep5z6r3"},"5xl":{conditions:{mobile:"_1yep5z6r4",tablet:"_1yep5z6r5",desktop:"_1yep5z6r6"},defaultClass:"_1yep5z6r4 _1yep5z6r5 _1yep5z6r6"},"6xl":{conditions:{mobile:"_1yep5z6r7",tablet:"_1yep5z6r8",desktop:"_1yep5z6r9"},defaultClass:"_1yep5z6r7 _1yep5z6r8 _1yep5z6r9"},"7xl":{conditions:{mobile:"_1yep5z6ra",tablet:"_1yep5z6rb",desktop:"_1yep5z6rc"},defaultClass:"_1yep5z6ra _1yep5z6rb _1yep5z6rc"},"8xl":{conditions:{mobile:"_1yep5z6rd",tablet:"_1yep5z6re",desktop:"_1yep5z6rf"},defaultClass:"_1yep5z6rd _1yep5z6re _1yep5z6rf"},"9xl":{conditions:{mobile:"_1yep5z6rg",tablet:"_1yep5z6rh",desktop:"_1yep5z6ri"},defaultClass:"_1yep5z6rg _1yep5z6rh _1yep5z6ri"},none:{conditions:{mobile:"_1yep5z6rj",tablet:"_1yep5z6rk",desktop:"_1yep5z6rl"},defaultClass:"_1yep5z6rj _1yep5z6rk _1yep5z6rl"}},responsiveArray:void 0},marginInlineEnd:{values:{xs:{conditions:{mobile:"_1yep5z6rm",tablet:"_1yep5z6rn",desktop:"_1yep5z6ro"},defaultClass:"_1yep5z6rm _1yep5z6rn _1yep5z6ro"},sm:{conditions:{mobile:"_1yep5z6rp",tablet:"_1yep5z6rq",desktop:"_1yep5z6rr"},defaultClass:"_1yep5z6rp _1yep5z6rq _1yep5z6rr"},md:{conditions:{mobile:"_1yep5z6rs",tablet:"_1yep5z6rt",desktop:"_1yep5z6ru"},defaultClass:"_1yep5z6rs _1yep5z6rt _1yep5z6ru"},lg:{conditions:{mobile:"_1yep5z6rv",tablet:"_1yep5z6rw",desktop:"_1yep5z6rx"},defaultClass:"_1yep5z6rv _1yep5z6rw _1yep5z6rx"},xl:{conditions:{mobile:"_1yep5z6ry",tablet:"_1yep5z6rz",desktop:"_1yep5z6s0"},defaultClass:"_1yep5z6ry _1yep5z6rz _1yep5z6s0"},"2xl":{conditions:{mobile:"_1yep5z6s1",tablet:"_1yep5z6s2",desktop:"_1yep5z6s3"},defaultClass:"_1yep5z6s1 _1yep5z6s2 _1yep5z6s3"},"3xl":{conditions:{mobile:"_1yep5z6s4",tablet:"_1yep5z6s5",desktop:"_1yep5z6s6"},defaultClass:"_1yep5z6s4 _1yep5z6s5 _1yep5z6s6"},"4xl":{conditions:{mobile:"_1yep5z6s7",tablet:"_1yep5z6s8",desktop:"_1yep5z6s9"},defaultClass:"_1yep5z6s7 _1yep5z6s8 _1yep5z6s9"},"5xl":{conditions:{mobile:"_1yep5z6sa",tablet:"_1yep5z6sb",desktop:"_1yep5z6sc"},defaultClass:"_1yep5z6sa _1yep5z6sb _1yep5z6sc"},"6xl":{conditions:{mobile:"_1yep5z6sd",tablet:"_1yep5z6se",desktop:"_1yep5z6sf"},defaultClass:"_1yep5z6sd _1yep5z6se _1yep5z6sf"},"7xl":{conditions:{mobile:"_1yep5z6sg",tablet:"_1yep5z6sh",desktop:"_1yep5z6si"},defaultClass:"_1yep5z6sg _1yep5z6sh _1yep5z6si"},"8xl":{conditions:{mobile:"_1yep5z6sj",tablet:"_1yep5z6sk",desktop:"_1yep5z6sl"},defaultClass:"_1yep5z6sj _1yep5z6sk _1yep5z6sl"},"9xl":{conditions:{mobile:"_1yep5z6sm",tablet:"_1yep5z6sn",desktop:"_1yep5z6so"},defaultClass:"_1yep5z6sm _1yep5z6sn _1yep5z6so"},none:{conditions:{mobile:"_1yep5z6sp",tablet:"_1yep5z6sq",desktop:"_1yep5z6sr"},defaultClass:"_1yep5z6sp _1yep5z6sq _1yep5z6sr"}},responsiveArray:void 0},marginBlockEnd:{values:{xs:{conditions:{mobile:"_1yep5z6ss",tablet:"_1yep5z6st",desktop:"_1yep5z6su"},defaultClass:"_1yep5z6ss _1yep5z6st _1yep5z6su"},sm:{conditions:{mobile:"_1yep5z6sv",tablet:"_1yep5z6sw",desktop:"_1yep5z6sx"},defaultClass:"_1yep5z6sv _1yep5z6sw _1yep5z6sx"},md:{conditions:{mobile:"_1yep5z6sy",tablet:"_1yep5z6sz",desktop:"_1yep5z6t0"},defaultClass:"_1yep5z6sy _1yep5z6sz _1yep5z6t0"},lg:{conditions:{mobile:"_1yep5z6t1",tablet:"_1yep5z6t2",desktop:"_1yep5z6t3"},defaultClass:"_1yep5z6t1 _1yep5z6t2 _1yep5z6t3"},xl:{conditions:{mobile:"_1yep5z6t4",tablet:"_1yep5z6t5",desktop:"_1yep5z6t6"},defaultClass:"_1yep5z6t4 _1yep5z6t5 _1yep5z6t6"},"2xl":{conditions:{mobile:"_1yep5z6t7",tablet:"_1yep5z6t8",desktop:"_1yep5z6t9"},defaultClass:"_1yep5z6t7 _1yep5z6t8 _1yep5z6t9"},"3xl":{conditions:{mobile:"_1yep5z6ta",tablet:"_1yep5z6tb",desktop:"_1yep5z6tc"},defaultClass:"_1yep5z6ta _1yep5z6tb _1yep5z6tc"},"4xl":{conditions:{mobile:"_1yep5z6td",tablet:"_1yep5z6te",desktop:"_1yep5z6tf"},defaultClass:"_1yep5z6td _1yep5z6te _1yep5z6tf"},"5xl":{conditions:{mobile:"_1yep5z6tg",tablet:"_1yep5z6th",desktop:"_1yep5z6ti"},defaultClass:"_1yep5z6tg _1yep5z6th _1yep5z6ti"},"6xl":{conditions:{mobile:"_1yep5z6tj",tablet:"_1yep5z6tk",desktop:"_1yep5z6tl"},defaultClass:"_1yep5z6tj _1yep5z6tk _1yep5z6tl"},"7xl":{conditions:{mobile:"_1yep5z6tm",tablet:"_1yep5z6tn",desktop:"_1yep5z6to"},defaultClass:"_1yep5z6tm _1yep5z6tn _1yep5z6to"},"8xl":{conditions:{mobile:"_1yep5z6tp",tablet:"_1yep5z6tq",desktop:"_1yep5z6tr"},defaultClass:"_1yep5z6tp _1yep5z6tq _1yep5z6tr"},"9xl":{conditions:{mobile:"_1yep5z6ts",tablet:"_1yep5z6tt",desktop:"_1yep5z6tu"},defaultClass:"_1yep5z6ts _1yep5z6tt _1yep5z6tu"},none:{conditions:{mobile:"_1yep5z6tv",tablet:"_1yep5z6tw",desktop:"_1yep5z6tx"},defaultClass:"_1yep5z6tv _1yep5z6tw _1yep5z6tx"}},responsiveArray:void 0},marginInlineStart:{values:{xs:{conditions:{mobile:"_1yep5z6ty",tablet:"_1yep5z6tz",desktop:"_1yep5z6u0"},defaultClass:"_1yep5z6ty _1yep5z6tz _1yep5z6u0"},sm:{conditions:{mobile:"_1yep5z6u1",tablet:"_1yep5z6u2",desktop:"_1yep5z6u3"},defaultClass:"_1yep5z6u1 _1yep5z6u2 _1yep5z6u3"},md:{conditions:{mobile:"_1yep5z6u4",tablet:"_1yep5z6u5",desktop:"_1yep5z6u6"},defaultClass:"_1yep5z6u4 _1yep5z6u5 _1yep5z6u6"},lg:{conditions:{mobile:"_1yep5z6u7",tablet:"_1yep5z6u8",desktop:"_1yep5z6u9"},defaultClass:"_1yep5z6u7 _1yep5z6u8 _1yep5z6u9"},xl:{conditions:{mobile:"_1yep5z6ua",tablet:"_1yep5z6ub",desktop:"_1yep5z6uc"},defaultClass:"_1yep5z6ua _1yep5z6ub _1yep5z6uc"},"2xl":{conditions:{mobile:"_1yep5z6ud",tablet:"_1yep5z6ue",desktop:"_1yep5z6uf"},defaultClass:"_1yep5z6ud _1yep5z6ue _1yep5z6uf"},"3xl":{conditions:{mobile:"_1yep5z6ug",tablet:"_1yep5z6uh",desktop:"_1yep5z6ui"},defaultClass:"_1yep5z6ug _1yep5z6uh _1yep5z6ui"},"4xl":{conditions:{mobile:"_1yep5z6uj",tablet:"_1yep5z6uk",desktop:"_1yep5z6ul"},defaultClass:"_1yep5z6uj _1yep5z6uk _1yep5z6ul"},"5xl":{conditions:{mobile:"_1yep5z6um",tablet:"_1yep5z6un",desktop:"_1yep5z6uo"},defaultClass:"_1yep5z6um _1yep5z6un _1yep5z6uo"},"6xl":{conditions:{mobile:"_1yep5z6up",tablet:"_1yep5z6uq",desktop:"_1yep5z6ur"},defaultClass:"_1yep5z6up _1yep5z6uq _1yep5z6ur"},"7xl":{conditions:{mobile:"_1yep5z6us",tablet:"_1yep5z6ut",desktop:"_1yep5z6uu"},defaultClass:"_1yep5z6us _1yep5z6ut _1yep5z6uu"},"8xl":{conditions:{mobile:"_1yep5z6uv",tablet:"_1yep5z6uw",desktop:"_1yep5z6ux"},defaultClass:"_1yep5z6uv _1yep5z6uw _1yep5z6ux"},"9xl":{conditions:{mobile:"_1yep5z6uy",tablet:"_1yep5z6uz",desktop:"_1yep5z6v0"},defaultClass:"_1yep5z6uy _1yep5z6uz _1yep5z6v0"},none:{conditions:{mobile:"_1yep5z6v1",tablet:"_1yep5z6v2",desktop:"_1yep5z6v3"},defaultClass:"_1yep5z6v1 _1yep5z6v2 _1yep5z6v3"}},responsiveArray:void 0},gap:{values:{xs:{conditions:{mobile:"_1yep5z6v4",tablet:"_1yep5z6v5",desktop:"_1yep5z6v6"},defaultClass:"_1yep5z6v4 _1yep5z6v5 _1yep5z6v6"},sm:{conditions:{mobile:"_1yep5z6v7",tablet:"_1yep5z6v8",desktop:"_1yep5z6v9"},defaultClass:"_1yep5z6v7 _1yep5z6v8 _1yep5z6v9"},md:{conditions:{mobile:"_1yep5z6va",tablet:"_1yep5z6vb",desktop:"_1yep5z6vc"},defaultClass:"_1yep5z6va _1yep5z6vb _1yep5z6vc"},lg:{conditions:{mobile:"_1yep5z6vd",tablet:"_1yep5z6ve",desktop:"_1yep5z6vf"},defaultClass:"_1yep5z6vd _1yep5z6ve _1yep5z6vf"},xl:{conditions:{mobile:"_1yep5z6vg",tablet:"_1yep5z6vh",desktop:"_1yep5z6vi"},defaultClass:"_1yep5z6vg _1yep5z6vh _1yep5z6vi"},"2xl":{conditions:{mobile:"_1yep5z6vj",tablet:"_1yep5z6vk",desktop:"_1yep5z6vl"},defaultClass:"_1yep5z6vj _1yep5z6vk _1yep5z6vl"},"3xl":{conditions:{mobile:"_1yep5z6vm",tablet:"_1yep5z6vn",desktop:"_1yep5z6vo"},defaultClass:"_1yep5z6vm _1yep5z6vn _1yep5z6vo"},"4xl":{conditions:{mobile:"_1yep5z6vp",tablet:"_1yep5z6vq",desktop:"_1yep5z6vr"},defaultClass:"_1yep5z6vp _1yep5z6vq _1yep5z6vr"},"5xl":{conditions:{mobile:"_1yep5z6vs",tablet:"_1yep5z6vt",desktop:"_1yep5z6vu"},defaultClass:"_1yep5z6vs _1yep5z6vt _1yep5z6vu"},"6xl":{conditions:{mobile:"_1yep5z6vv",tablet:"_1yep5z6vw",desktop:"_1yep5z6vx"},defaultClass:"_1yep5z6vv _1yep5z6vw _1yep5z6vx"},"7xl":{conditions:{mobile:"_1yep5z6vy",tablet:"_1yep5z6vz",desktop:"_1yep5z6w0"},defaultClass:"_1yep5z6vy _1yep5z6vz _1yep5z6w0"},"8xl":{conditions:{mobile:"_1yep5z6w1",tablet:"_1yep5z6w2",desktop:"_1yep5z6w3"},defaultClass:"_1yep5z6w1 _1yep5z6w2 _1yep5z6w3"},"9xl":{conditions:{mobile:"_1yep5z6w4",tablet:"_1yep5z6w5",desktop:"_1yep5z6w6"},defaultClass:"_1yep5z6w4 _1yep5z6w5 _1yep5z6w6"},none:{conditions:{mobile:"_1yep5z6w7",tablet:"_1yep5z6w8",desktop:"_1yep5z6w9"},defaultClass:"_1yep5z6w7 _1yep5z6w8 _1yep5z6w9"}},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:"_1yep5z6wa",tablet:"_1yep5z6wb",desktop:"_1yep5z6wc"},defaultClass:"_1yep5z6wa _1yep5z6wb _1yep5z6wc"},sm:{conditions:{mobile:"_1yep5z6wd",tablet:"_1yep5z6we",desktop:"_1yep5z6wf"},defaultClass:"_1yep5z6wd _1yep5z6we _1yep5z6wf"},md:{conditions:{mobile:"_1yep5z6wg",tablet:"_1yep5z6wh",desktop:"_1yep5z6wi"},defaultClass:"_1yep5z6wg _1yep5z6wh _1yep5z6wi"},lg:{conditions:{mobile:"_1yep5z6wj",tablet:"_1yep5z6wk",desktop:"_1yep5z6wl"},defaultClass:"_1yep5z6wj _1yep5z6wk _1yep5z6wl"},xl:{conditions:{mobile:"_1yep5z6wm",tablet:"_1yep5z6wn",desktop:"_1yep5z6wo"},defaultClass:"_1yep5z6wm _1yep5z6wn _1yep5z6wo"},"2xl":{conditions:{mobile:"_1yep5z6wp",tablet:"_1yep5z6wq",desktop:"_1yep5z6wr"},defaultClass:"_1yep5z6wp _1yep5z6wq _1yep5z6wr"},full:{conditions:{mobile:"_1yep5z6ws",tablet:"_1yep5z6wt",desktop:"_1yep5z6wu"},defaultClass:"_1yep5z6ws _1yep5z6wt _1yep5z6wu"},none:{conditions:{mobile:"_1yep5z6wv",tablet:"_1yep5z6ww",desktop:"_1yep5z6wx"},defaultClass:"_1yep5z6wv _1yep5z6ww _1yep5z6wx"}},responsiveArray:void 0},borderStartEndRadius:{values:{xs:{conditions:{mobile:"_1yep5z6wy",tablet:"_1yep5z6wz",desktop:"_1yep5z6x0"},defaultClass:"_1yep5z6wy _1yep5z6wz _1yep5z6x0"},sm:{conditions:{mobile:"_1yep5z6x1",tablet:"_1yep5z6x2",desktop:"_1yep5z6x3"},defaultClass:"_1yep5z6x1 _1yep5z6x2 _1yep5z6x3"},md:{conditions:{mobile:"_1yep5z6x4",tablet:"_1yep5z6x5",desktop:"_1yep5z6x6"},defaultClass:"_1yep5z6x4 _1yep5z6x5 _1yep5z6x6"},lg:{conditions:{mobile:"_1yep5z6x7",tablet:"_1yep5z6x8",desktop:"_1yep5z6x9"},defaultClass:"_1yep5z6x7 _1yep5z6x8 _1yep5z6x9"},xl:{conditions:{mobile:"_1yep5z6xa",tablet:"_1yep5z6xb",desktop:"_1yep5z6xc"},defaultClass:"_1yep5z6xa _1yep5z6xb _1yep5z6xc"},"2xl":{conditions:{mobile:"_1yep5z6xd",tablet:"_1yep5z6xe",desktop:"_1yep5z6xf"},defaultClass:"_1yep5z6xd _1yep5z6xe _1yep5z6xf"},full:{conditions:{mobile:"_1yep5z6xg",tablet:"_1yep5z6xh",desktop:"_1yep5z6xi"},defaultClass:"_1yep5z6xg _1yep5z6xh _1yep5z6xi"},none:{conditions:{mobile:"_1yep5z6xj",tablet:"_1yep5z6xk",desktop:"_1yep5z6xl"},defaultClass:"_1yep5z6xj _1yep5z6xk _1yep5z6xl"}},responsiveArray:void 0},borderEndStartRadius:{values:{xs:{conditions:{mobile:"_1yep5z6xm",tablet:"_1yep5z6xn",desktop:"_1yep5z6xo"},defaultClass:"_1yep5z6xm _1yep5z6xn _1yep5z6xo"},sm:{conditions:{mobile:"_1yep5z6xp",tablet:"_1yep5z6xq",desktop:"_1yep5z6xr"},defaultClass:"_1yep5z6xp _1yep5z6xq _1yep5z6xr"},md:{conditions:{mobile:"_1yep5z6xs",tablet:"_1yep5z6xt",desktop:"_1yep5z6xu"},defaultClass:"_1yep5z6xs _1yep5z6xt _1yep5z6xu"},lg:{conditions:{mobile:"_1yep5z6xv",tablet:"_1yep5z6xw",desktop:"_1yep5z6xx"},defaultClass:"_1yep5z6xv _1yep5z6xw _1yep5z6xx"},xl:{conditions:{mobile:"_1yep5z6xy",tablet:"_1yep5z6xz",desktop:"_1yep5z6y0"},defaultClass:"_1yep5z6xy _1yep5z6xz _1yep5z6y0"},"2xl":{conditions:{mobile:"_1yep5z6y1",tablet:"_1yep5z6y2",desktop:"_1yep5z6y3"},defaultClass:"_1yep5z6y1 _1yep5z6y2 _1yep5z6y3"},full:{conditions:{mobile:"_1yep5z6y4",tablet:"_1yep5z6y5",desktop:"_1yep5z6y6"},defaultClass:"_1yep5z6y4 _1yep5z6y5 _1yep5z6y6"},none:{conditions:{mobile:"_1yep5z6y7",tablet:"_1yep5z6y8",desktop:"_1yep5z6y9"},defaultClass:"_1yep5z6y7 _1yep5z6y8 _1yep5z6y9"}},responsiveArray:void 0},borderEndEndRadius:{values:{xs:{conditions:{mobile:"_1yep5z6ya",tablet:"_1yep5z6yb",desktop:"_1yep5z6yc"},defaultClass:"_1yep5z6ya _1yep5z6yb _1yep5z6yc"},sm:{conditions:{mobile:"_1yep5z6yd",tablet:"_1yep5z6ye",desktop:"_1yep5z6yf"},defaultClass:"_1yep5z6yd _1yep5z6ye _1yep5z6yf"},md:{conditions:{mobile:"_1yep5z6yg",tablet:"_1yep5z6yh",desktop:"_1yep5z6yi"},defaultClass:"_1yep5z6yg _1yep5z6yh _1yep5z6yi"},lg:{conditions:{mobile:"_1yep5z6yj",tablet:"_1yep5z6yk",desktop:"_1yep5z6yl"},defaultClass:"_1yep5z6yj _1yep5z6yk _1yep5z6yl"},xl:{conditions:{mobile:"_1yep5z6ym",tablet:"_1yep5z6yn",desktop:"_1yep5z6yo"},defaultClass:"_1yep5z6ym _1yep5z6yn _1yep5z6yo"},"2xl":{conditions:{mobile:"_1yep5z6yp",tablet:"_1yep5z6yq",desktop:"_1yep5z6yr"},defaultClass:"_1yep5z6yp _1yep5z6yq _1yep5z6yr"},full:{conditions:{mobile:"_1yep5z6ys",tablet:"_1yep5z6yt",desktop:"_1yep5z6yu"},defaultClass:"_1yep5z6ys _1yep5z6yt _1yep5z6yu"},none:{conditions:{mobile:"_1yep5z6yv",tablet:"_1yep5z6yw",desktop:"_1yep5z6yx"},defaultClass:"_1yep5z6yv _1yep5z6yw _1yep5z6yx"}},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:"_1yep5z6yy"},medium:{defaultClass:"_1yep5z6yz"}}}}},{conditions:void 0,styles:{opacity:{values:{none:{defaultClass:"_1yep5z6z0"},low:{defaultClass:"_1yep5z6z1"},medium:{defaultClass:"_1yep5z6z2"},high:{defaultClass:"_1yep5z6z3"}}}}},{conditions:void 0,styles:{typography:{values:{"heading.h6.regular":{defaultClass:"_1yep5z6z4"},"heading.h6.medium":{defaultClass:"_1yep5z6z5"},"heading.h6.semibold":{defaultClass:"_1yep5z6z6"},"heading.h5.regular":{defaultClass:"_1yep5z6z7"},"heading.h5.medium":{defaultClass:"_1yep5z6z8"},"heading.h5.semibold":{defaultClass:"_1yep5z6z9"},"heading.h4.regular":{defaultClass:"_1yep5z6za"},"heading.h4.medium":{defaultClass:"_1yep5z6zb"},"heading.h4.semibold":{defaultClass:"_1yep5z6zc"},"heading.h3.regular":{defaultClass:"_1yep5z6zd"},"heading.h3.medium":{defaultClass:"_1yep5z6ze"},"heading.h3.semibold":{defaultClass:"_1yep5z6zf"},"heading.h2.regular":{defaultClass:"_1yep5z6zg"},"heading.h2.medium":{defaultClass:"_1yep5z6zh"},"heading.h2.semibold":{defaultClass:"_1yep5z6zi"},"heading.h1.regular":{defaultClass:"_1yep5z6zj"},"heading.h1.medium":{defaultClass:"_1yep5z6zk"},"heading.h1.semibold":{defaultClass:"_1yep5z6zl"},"label.sm.regular":{defaultClass:"_1yep5z6zm"},"label.sm.medium":{defaultClass:"_1yep5z6zn"},"label.sm.semibold":{defaultClass:"_1yep5z6zo"},"label.md.regular":{defaultClass:"_1yep5z6zp"},"label.md.medium":{defaultClass:"_1yep5z6zq"},"label.md.semibold":{defaultClass:"_1yep5z6zr"},"label.lg.regular":{defaultClass:"_1yep5z6zs"},"label.lg.medium":{defaultClass:"_1yep5z6zt"},"label.lg.semibold":{defaultClass:"_1yep5z6zu"},"body.sm.regular":{defaultClass:"_1yep5z6zv"},"body.sm.medium":{defaultClass:"_1yep5z6zw"},"body.sm.semibold":{defaultClass:"_1yep5z6zx"},"body.md.regular":{defaultClass:"_1yep5z6zy"},"body.md.medium":{defaultClass:"_1yep5z6zz"},"body.md.semibold":{defaultClass:"_1yep5z6100"},"body.lg.regular":{defaultClass:"_1yep5z6101"},"body.lg.medium":{defaultClass:"_1yep5z6102"},"body.lg.semibold":{defaultClass:"_1yep5z6103"}}}}},{conditions:void 0,styles:{color:{values:{"support.error.subtler":{defaultClass:"_1yep5z6104"},"support.error.subtle":{defaultClass:"_1yep5z6105"},"support.error.medium":{defaultClass:"_1yep5z6106"},"support.error.strong":{defaultClass:"_1yep5z6107"},"support.success.subtler":{defaultClass:"_1yep5z6108"},"support.success.subtle":{defaultClass:"_1yep5z6109"},"support.success.medium":{defaultClass:"_1yep5z610a"},"support.success.strong":{defaultClass:"_1yep5z610b"},"support.warning.subtler":{defaultClass:"_1yep5z610c"},"support.warning.subtle":{defaultClass:"_1yep5z610d"},"support.warning.medium":{defaultClass:"_1yep5z610e"},"support.warning.strong":{defaultClass:"_1yep5z610f"},"support.info.subtler":{defaultClass:"_1yep5z610g"},"support.info.subtle":{defaultClass:"_1yep5z610h"},"support.info.medium":{defaultClass:"_1yep5z610i"},"support.info.strong":{defaultClass:"_1yep5z610j"},"focused.default":{defaultClass:"_1yep5z610k"},"focused.inset":{defaultClass:"_1yep5z610l"},"text.primary":{defaultClass:"_1yep5z610m"},"text.secondary":{defaultClass:"_1yep5z610n"},"text.helper":{defaultClass:"_1yep5z610o"},"text.placeholder":{defaultClass:"_1yep5z610p"},"text.interactive.disabled":{defaultClass:"_1yep5z610q"},"text.inverse":{defaultClass:"_1yep5z610r"},"text.oninteractive":{defaultClass:"_1yep5z610s"},"text.interactive.enabled":{defaultClass:"_1yep5z610t"},"text.interactive.hovered":{defaultClass:"_1yep5z610u"},"text.interactive.active":{defaultClass:"_1yep5z610v"},"text.interactive.visited":{defaultClass:"_1yep5z610w"},"icon.primary":{defaultClass:"_1yep5z610x"},"icon.secondary":{defaultClass:"_1yep5z610y"},"icon.interactive.disabled":{defaultClass:"_1yep5z610z"},"icon.inverse":{defaultClass:"_1yep5z6110"},"icon.oninteractive":{defaultClass:"_1yep5z6111"},"icon.interactive.enabled":{defaultClass:"_1yep5z6112"},"icon.interactive.hovered":{defaultClass:"_1yep5z6113"},"icon.interactive.active":{defaultClass:"_1yep5z6114"},"icon.interactive.visited":{defaultClass:"_1yep5z6115"},"background.interactive.enabled":{defaultClass:"_1yep5z6116"},"background.interactive.hovered":{defaultClass:"_1yep5z6117"},"background.interactive.active":{defaultClass:"_1yep5z6118"},"background.interactive.visited":{defaultClass:"_1yep5z6119"},"background.interactive.disabled":{defaultClass:"_1yep5z611a"}}},backgroundColor:{values:{"support.error.subtler":{defaultClass:"_1yep5z611b"},"support.error.subtle":{defaultClass:"_1yep5z611c"},"support.error.medium":{defaultClass:"_1yep5z611d"},"support.error.strong":{defaultClass:"_1yep5z611e"},"support.success.subtler":{defaultClass:"_1yep5z611f"},"support.success.subtle":{defaultClass:"_1yep5z611g"},"support.success.medium":{defaultClass:"_1yep5z611h"},"support.success.strong":{defaultClass:"_1yep5z611i"},"support.warning.subtler":{defaultClass:"_1yep5z611j"},"support.warning.subtle":{defaultClass:"_1yep5z611k"},"support.warning.medium":{defaultClass:"_1yep5z611l"},"support.warning.strong":{defaultClass:"_1yep5z611m"},"support.info.subtler":{defaultClass:"_1yep5z611n"},"support.info.subtle":{defaultClass:"_1yep5z611o"},"support.info.medium":{defaultClass:"_1yep5z611p"},"support.info.strong":{defaultClass:"_1yep5z611q"},"focused.default":{defaultClass:"_1yep5z611r"},"focused.inset":{defaultClass:"_1yep5z611s"},"background.primary.subtle":{defaultClass:"_1yep5z611t"},"background.primary.medium":{defaultClass:"_1yep5z611u"},"background.primary.strong":{defaultClass:"_1yep5z611v"},"background.secondary.subtle":{defaultClass:"_1yep5z611w"},"background.secondary.medium":{defaultClass:"_1yep5z611x"},"background.secondary.strong":{defaultClass:"_1yep5z611y"},"background.inverse.subtle":{defaultClass:"_1yep5z611z"},"background.inverse.medium":{defaultClass:"_1yep5z6120"},"background.inverse.strong":{defaultClass:"_1yep5z6121"},"background.overlay.subtle":{defaultClass:"_1yep5z6122"},"background.overlay.medium":{defaultClass:"_1yep5z6123"},"background.positive.subtle":{defaultClass:"_1yep5z6124"},"background.positive.medium":{defaultClass:"_1yep5z6125"},"background.positive.strong":{defaultClass:"_1yep5z6126"},"border.positive.interactive.enabled":{defaultClass:"_1yep5z6127"}}},borderColor:{values:{"support.error.subtler":{defaultClass:"_1yep5z6128"},"support.error.subtle":{defaultClass:"_1yep5z6129"},"support.error.medium":{defaultClass:"_1yep5z612a"},"support.error.strong":{defaultClass:"_1yep5z612b"},"support.success.subtler":{defaultClass:"_1yep5z612c"},"support.success.subtle":{defaultClass:"_1yep5z612d"},"support.success.medium":{defaultClass:"_1yep5z612e"},"support.success.strong":{defaultClass:"_1yep5z612f"},"support.warning.subtler":{defaultClass:"_1yep5z612g"},"support.warning.subtle":{defaultClass:"_1yep5z612h"},"support.warning.medium":{defaultClass:"_1yep5z612i"},"support.warning.strong":{defaultClass:"_1yep5z612j"},"support.info.subtler":{defaultClass:"_1yep5z612k"},"support.info.subtle":{defaultClass:"_1yep5z612l"},"support.info.medium":{defaultClass:"_1yep5z612m"},"support.info.strong":{defaultClass:"_1yep5z612n"},"focused.default":{defaultClass:"_1yep5z612o"},"focused.inset":{defaultClass:"_1yep5z612p"},"border.subtle":{defaultClass:"_1yep5z612q"},"border.medium":{defaultClass:"_1yep5z612r"},"border.strong":{defaultClass:"_1yep5z612s"},"border.inverse":{defaultClass:"_1yep5z612t"},"border.interactive.enabled":{defaultClass:"_1yep5z612u"},"border.interactive.hovered":{defaultClass:"_1yep5z612v"},"border.interactive.active":{defaultClass:"_1yep5z612w"},"border.interactive.visited":{defaultClass:"_1yep5z612x"},"border.interactive.disabled":{defaultClass:"_1yep5z612y"},"border.positive.interactive.enabled":{defaultClass:"_1yep5z612z"},transparent:{defaultClass:"_1yep5z6130"}}},outlineColor:{values:{"support.error.subtler":{defaultClass:"_1yep5z6131"},"support.error.subtle":{defaultClass:"_1yep5z6132"},"support.error.medium":{defaultClass:"_1yep5z6133"},"support.error.strong":{defaultClass:"_1yep5z6134"},"support.success.subtler":{defaultClass:"_1yep5z6135"},"support.success.subtle":{defaultClass:"_1yep5z6136"},"support.success.medium":{defaultClass:"_1yep5z6137"},"support.success.strong":{defaultClass:"_1yep5z6138"},"support.warning.subtler":{defaultClass:"_1yep5z6139"},"support.warning.subtle":{defaultClass:"_1yep5z613a"},"support.warning.medium":{defaultClass:"_1yep5z613b"},"support.warning.strong":{defaultClass:"_1yep5z613c"},"support.info.subtler":{defaultClass:"_1yep5z613d"},"support.info.subtle":{defaultClass:"_1yep5z613e"},"support.info.medium":{defaultClass:"_1yep5z613f"},"support.info.strong":{defaultClass:"_1yep5z613g"},"focused.default":{defaultClass:"_1yep5z613h"},"focused.inset":{defaultClass:"_1yep5z613i"},"border.subtle":{defaultClass:"_1yep5z613j"},"border.medium":{defaultClass:"_1yep5z613k"},"border.strong":{defaultClass:"_1yep5z613l"},"border.inverse":{defaultClass:"_1yep5z613m"},"border.interactive.enabled":{defaultClass:"_1yep5z613n"},"border.interactive.hovered":{defaultClass:"_1yep5z613o"},"border.interactive.active":{defaultClass:"_1yep5z613p"},"border.interactive.visited":{defaultClass:"_1yep5z613q"},"border.interactive.disabled":{defaultClass:"_1yep5z613r"},"border.positive.interactive.enabled":{defaultClass:"_1yep5z613s"},transparent:{defaultClass:"_1yep5z613t"}}}}},function(){var e={conditions:{defaultCondition:["mobile","tablet","desktop"],conditionNames:["mobile","tablet","desktop"],responsiveArray:["mobile","tablet","desktop"]},styles:{position:{values:{relative:{conditions:{mobile:"_1yep5z613u",tablet:"_1yep5z613v",desktop:"_1yep5z613w"},defaultClass:"_1yep5z613u _1yep5z613v _1yep5z613w"},absolute:{conditions:{mobile:"_1yep5z613x",tablet:"_1yep5z613y",desktop:"_1yep5z613z"},defaultClass:"_1yep5z613x _1yep5z613y _1yep5z613z"},fixed:{conditions:{mobile:"_1yep5z6140",tablet:"_1yep5z6141",desktop:"_1yep5z6142"},defaultClass:"_1yep5z6140 _1yep5z6141 _1yep5z6142"}},responsiveArray:void 0},display:{values:{none:{conditions:{mobile:"_1yep5z6143",tablet:"_1yep5z6144",desktop:"_1yep5z6145"},defaultClass:"_1yep5z6143 _1yep5z6144 _1yep5z6145"},block:{conditions:{mobile:"_1yep5z6146",tablet:"_1yep5z6147",desktop:"_1yep5z6148"},defaultClass:"_1yep5z6146 _1yep5z6147 _1yep5z6148"},flex:{conditions:{mobile:"_1yep5z6149",tablet:"_1yep5z614a",desktop:"_1yep5z614b"},defaultClass:"_1yep5z6149 _1yep5z614a _1yep5z614b"},"inline-flex":{conditions:{mobile:"_1yep5z614c",tablet:"_1yep5z614d",desktop:"_1yep5z614e"},defaultClass:"_1yep5z614c _1yep5z614d _1yep5z614e"},grid:{conditions:{mobile:"_1yep5z614f",tablet:"_1yep5z614g",desktop:"_1yep5z614h"},defaultClass:"_1yep5z614f _1yep5z614g _1yep5z614h"}},responsiveArray:void 0},flexDirection:{values:{row:{conditions:{mobile:"_1yep5z614i",tablet:"_1yep5z614j",desktop:"_1yep5z614k"},defaultClass:"_1yep5z614i _1yep5z614j _1yep5z614k"},column:{conditions:{mobile:"_1yep5z614l",tablet:"_1yep5z614m",desktop:"_1yep5z614n"},defaultClass:"_1yep5z614l _1yep5z614m _1yep5z614n"},"row-reverse":{conditions:{mobile:"_1yep5z614o",tablet:"_1yep5z614p",desktop:"_1yep5z614q"},defaultClass:"_1yep5z614o _1yep5z614p _1yep5z614q"},"column-reverse":{conditions:{mobile:"_1yep5z614r",tablet:"_1yep5z614s",desktop:"_1yep5z614t"},defaultClass:"_1yep5z614r _1yep5z614s _1yep5z614t"}},responsiveArray:void 0},alignItems:{values:{stretch:{conditions:{mobile:"_1yep5z614u",tablet:"_1yep5z614v",desktop:"_1yep5z614w"},defaultClass:"_1yep5z614u _1yep5z614v _1yep5z614w"},"flex-start":{conditions:{mobile:"_1yep5z614x",tablet:"_1yep5z614y",desktop:"_1yep5z614z"},defaultClass:"_1yep5z614x _1yep5z614y _1yep5z614z"},center:{conditions:{mobile:"_1yep5z6150",tablet:"_1yep5z6151",desktop:"_1yep5z6152"},defaultClass:"_1yep5z6150 _1yep5z6151 _1yep5z6152"},"flex-end":{conditions:{mobile:"_1yep5z6153",tablet:"_1yep5z6154",desktop:"_1yep5z6155"},defaultClass:"_1yep5z6153 _1yep5z6154 _1yep5z6155"}},responsiveArray:void 0},alignSelf:{values:{stretch:{conditions:{mobile:"_1yep5z6156",tablet:"_1yep5z6157",desktop:"_1yep5z6158"},defaultClass:"_1yep5z6156 _1yep5z6157 _1yep5z6158"},"flex-start":{conditions:{mobile:"_1yep5z6159",tablet:"_1yep5z615a",desktop:"_1yep5z615b"},defaultClass:"_1yep5z6159 _1yep5z615a _1yep5z615b"},center:{conditions:{mobile:"_1yep5z615c",tablet:"_1yep5z615d",desktop:"_1yep5z615e"},defaultClass:"_1yep5z615c _1yep5z615d _1yep5z615e"},"flex-end":{conditions:{mobile:"_1yep5z615f",tablet:"_1yep5z615g",desktop:"_1yep5z615h"},defaultClass:"_1yep5z615f _1yep5z615g _1yep5z615h"}},responsiveArray:void 0},flex:{values:{0:{conditions:{mobile:"_1yep5z615i",tablet:"_1yep5z615j",desktop:"_1yep5z615k"},defaultClass:"_1yep5z615i _1yep5z615j _1yep5z615k"},1:{conditions:{mobile:"_1yep5z615l",tablet:"_1yep5z615m",desktop:"_1yep5z615n"},defaultClass:"_1yep5z615l _1yep5z615m _1yep5z615n"}},responsiveArray:void 0},justifyContent:{values:{stretch:{conditions:{mobile:"_1yep5z615o",tablet:"_1yep5z615p",desktop:"_1yep5z615q"},defaultClass:"_1yep5z615o _1yep5z615p _1yep5z615q"},"flex-start":{conditions:{mobile:"_1yep5z615r",tablet:"_1yep5z615s",desktop:"_1yep5z615t"},defaultClass:"_1yep5z615r _1yep5z615s _1yep5z615t"},center:{conditions:{mobile:"_1yep5z615u",tablet:"_1yep5z615v",desktop:"_1yep5z615w"},defaultClass:"_1yep5z615u _1yep5z615v _1yep5z615w"},"flex-end":{conditions:{mobile:"_1yep5z615x",tablet:"_1yep5z615y",desktop:"_1yep5z615z"},defaultClass:"_1yep5z615x _1yep5z615y _1yep5z615z"},"space-between":{conditions:{mobile:"_1yep5z6160",tablet:"_1yep5z6161",desktop:"_1yep5z6162"},defaultClass:"_1yep5z6160 _1yep5z6161 _1yep5z6162"}},responsiveArray:void 0},justifySelf:{values:{stretch:{conditions:{mobile:"_1yep5z6163",tablet:"_1yep5z6164",desktop:"_1yep5z6165"},defaultClass:"_1yep5z6163 _1yep5z6164 _1yep5z6165"},"flex-start":{conditions:{mobile:"_1yep5z6166",tablet:"_1yep5z6167",desktop:"_1yep5z6168"},defaultClass:"_1yep5z6166 _1yep5z6167 _1yep5z6168"},center:{conditions:{mobile:"_1yep5z6169",tablet:"_1yep5z616a",desktop:"_1yep5z616b"},defaultClass:"_1yep5z6169 _1yep5z616a _1yep5z616b"},"flex-end":{conditions:{mobile:"_1yep5z616c",tablet:"_1yep5z616d",desktop:"_1yep5z616e"},defaultClass:"_1yep5z616c _1yep5z616d _1yep5z616e"}},responsiveArray:void 0},placeItems:{values:{stretch:{conditions:{mobile:"_1yep5z616f",tablet:"_1yep5z616g",desktop:"_1yep5z616h"},defaultClass:"_1yep5z616f _1yep5z616g _1yep5z616h"},"flex-start":{conditions:{mobile:"_1yep5z616i",tablet:"_1yep5z616j",desktop:"_1yep5z616k"},defaultClass:"_1yep5z616i _1yep5z616j _1yep5z616k"},center:{conditions:{mobile:"_1yep5z616l",tablet:"_1yep5z616m",desktop:"_1yep5z616n"},defaultClass:"_1yep5z616l _1yep5z616m _1yep5z616n"},"flex-end":{conditions:{mobile:"_1yep5z616o",tablet:"_1yep5z616p",desktop:"_1yep5z616q"},defaultClass:"_1yep5z616o _1yep5z616p _1yep5z616q"}},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:"_1yep5z616r"}}},transitionProperty:{values:{transform:{defaultClass:"_1yep5z616s"},opacity:{defaultClass:"_1yep5z616t"},"background-color":{defaultClass:"_1yep5z616u"}}}}},{conditions:void 0,styles:{inset:{mappings:["insetBlockStart","insetBlockEnd","insetInlineEnd","insetInlineStart"]},flexWrap:{values:{wrap:{defaultClass:"_1yep5z616v"},nowrap:{defaultClass:"_1yep5z616w"}}},insetBlockStart:{values:{0:{defaultClass:"_1yep5z616x"}}},insetBlockEnd:{values:{0:{defaultClass:"_1yep5z616y"}}},insetInlineStart:{values:{0:{defaultClass:"_1yep5z616z"}}},insetInlineEnd:{values:{0:{defaultClass:"_1yep5z6170"}}},flexShrink:{values:{0:{defaultClass:"_1yep5z6171"}}},flexGrow:{values:{0:{defaultClass:"_1yep5z6172"},1:{defaultClass:"_1yep5z6173"}}},width:{values:{full:{defaultClass:"_1yep5z6174"}}},height:{values:{full:{defaultClass:"_1yep5z6175"}}},cursor:{values:{pointer:{defaultClass:"_1yep5z6176"}}}}},{conditions:void 0,styles:{outline:{values:{none:{defaultClass:"_1yep5z6177"}}},outlineStyle:{values:{solid:{defaultClass:"_1yep5z6178"}}},outlineWidth:{values:{1:{defaultClass:"_1yep5z6179"},2:{defaultClass:"_1yep5z617a"}}},outlineOffset:{values:{1:{defaultClass:"_1yep5z617d"},2:{defaultClass:"_1yep5z617e"},"-2":{defaultClass:"_1yep5z617b"},"-1":{defaultClass:"_1yep5z617c"}}},border:{values:{none:{defaultClass:"_1yep5z617f"}}},borderStyle:{values:{solid:{defaultClass:"_1yep5z617g"},dashed:{defaultClass:"_1yep5z617h"}}},borderWidth:{values:{1:{defaultClass:"_1yep5z617i"},2:{defaultClass:"_1yep5z617j"}}}}}),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:"#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:"#717885",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"}},text:{primary:"#2b2e36",secondary:"#4d525d",helper:"#606671",placeholder:"#717885",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"}}}},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:"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:"#717885",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"}},text:{primary:"#ffffff",secondary:"#d7dce4",helper:"#a9aeb7",placeholder:"#717885",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"}}}},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"}}}}},v={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)"}},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)"}}}},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)"}}}}},y=(0,r.mapValues)((0,r.omit)({mobile:0,tablet:768,desktop:1280},"mobile"),(e=>`screen and (min-width: ${e}px)`)),b=e=>t=>t&&0!==Object.keys(t).length?{[y[e]]:t}:{},w=(b("tablet"),b("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 x=p;x.base=p,x.variants=f,x.compoundVariants=h},40027:(e,t,n)=>{"use strict";n.d(t,{l5:()=>A,xW:()=>k,eh:()=>O,nP:()=>j,n_:()=>T,gi:()=>z,YZ:()=>L,AY:()=>V,op:()=>M,jT:()=>P,V1:()=>E,gU:()=>F,Zt:()=>R});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(42838),C=n.n(_);function E(e,t){if(!e)throw new Error(t||"Invariant failed")}function k(...e){let t=e.filter(Boolean),n=[];for(let e of t)if(Array.isArray(e))n.push(k(...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(" ")}function z(e,t){return e?"string"==typeof e?t.querySelector(e):e instanceof HTMLElement?e:"current"in e?e.current:void 0:null}function P({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 A({text:e,maxWidth:t,initialFontSize:n=50,fontFamily:r="Arial",fontWeight:o="normal",fontStyle:i="normal"}){let{width:a}=P({text:e,fontSize:n,fontFamily:r,fontWeight:o,fontStyle:i}),s=n,l=a;for(;l>t;)s-=.5,l=P({text:e,fontSize:s,fontFamily:r,fontWeight:o,fontStyle:i}).width;return Math.max(s,1)}var D=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'];function T(e){return e.querySelectorAll(D.join(", "))}var I=(e,t)=>(e+t)/2;function M(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)} ${I(o[0],i[0]).toFixed(2)},${I(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+=`${I(r[0],o[0]).toFixed(2)},${I(r[1],o[1]).toFixed(2)} `;return t&&(a+="Z"),a}function N(e){return e.split("/").pop()?.split(".").shift()}function O(e){let t={};for(let n of Object.keys(e)){t[N(n)??""]=e[n]}return t}function j(e){return Object.fromEntries(Object.entries(e).filter((([,e])=>!!e)))}function R(e,t){E(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 F(e,t){if((e=e.trim()).includes(" "))return!1;try{return new URL(e),!0}catch{return!!t&&F(`https://${e}`)}}var B=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 L(e,t=!1){return B()?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 V=e=>(new DOMParser).parseFromString(C().sanitize(e),"text/html").body.textContent||""},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,j=N+k+T+P,R=O+z+D+A,F=s({devicePixelContentBoxSize:b(Math.round(N*devicePixelRatio),Math.round(O*devicePixelRatio),i),borderBoxSize:b(j,R,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}()),j=function(e){!D&&e>0&&O.start(),!(D+=e)&&O.stop()},R=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 R(t,n&&n.box)),j(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),j(-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(19663)},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(19663),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(19663),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:j,descriptionProps:R,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 $;let H=null!==($=null==K?void 0:K.parentKey)&&void 0!==$?$:null;var U;let q=null!==(U=t.selectionManager.focusedKey)&&void 0!==U?U:null,W=(0,l.useRef)(H),G=(0,l.useRef)(q);(0,l.useEffect)((()=>{if((0,s.lg)()&&null!=K&&q!==G.current){let e=t.selectionManager.isSelected(q),n=null!=H?t.collection.getItem(H):null,r=(null==n?void 0:n["aria-label"])||("string"==typeof(null==n?void 0:n.rendered)?n.rendered:"")||"",i=_.format("focusAnnouncement",{isGroupChange:n&&H!==W.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)}W.current=H,G.current=q}));let Y=(0,c.vS)(t.collection),Z=(0,l.useRef)(Y),J=(0,l.useRef)(t.isOpen);(0,l.useEffect)((()=>{let e=t.isOpen!==J.current&&(null==t.selectionManager.focusedKey||(0,s.lg)());if(t.isOpen&&(e||Y!==Z.current)){let e=_.format("countAnnouncement",{optionCount:Y});(0,o.iP)(e)}Z.current=Y,J.current=t.isOpen}));let X=(0,l.useRef)(t.selectedKey);return(0,l.useEffect)((()=>{if((0,s.lg)()&&t.isFocused&&t.selectedItem&&t.selectedKey!==X.current){let e=t.selectedItem["aria-label"]||t.selectedItem.textValue||"",n=_.format("selectedAnnouncement",{optionText:e});(0,o.iP)(n)}X.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)(j,{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:R,errorMessageProps:F,isInvalid:I,validationErrors:M,validationDetails:N}}},93828:(e,t,n)=>{"use strict";n(74373),n(86025),n(19663),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:()=>Se,_z:()=>_e,iD:()=>be,TG:()=>ge,OG:()=>me,Hd:()=>oe,mp:()=>he,z2:()=>de}),(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 j=r.none;function R(e){j=e}var F=n(72317),B=n(76423),L=n(86025),V=n(96540);let K=new Map,$=new Map,H=null,U=new Set;function q(e){return K.set(e.element,e),null==H||H.updateValidDropTargets(),()=>{K.delete(e.element),null==H||H.updateValidDropTargets()}}function W(){let[e,t]=(0,V.useState)(H);return(0,V.useEffect)((()=>{let e=()=>t(H);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"],Y=["pointerup","mouseup","touchend"],Z={keyboard:"dragStartedKeyboard",touch:"dragStartedTouch",virtual:"dragStartedVirtual"};class J{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(Z[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=$.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=$.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))&&(Y.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=[...$.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(){H=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 X;X={"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(19663);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=X)&&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),R(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(H)throw new Error("Cannot begin dragging while already dragging");H=new J(e,t),requestAnimationFrame((()=>{H.setup(),"keyboard"===x()&&H.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}R(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(),R(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=X)&&t.__esModule?t.default:t,"@react-aria/dnd");var t;let n=w(),r=W();return{dropProps:{...(0,L.I8)(r?e.format(ne[n]):""),onClick:()=>{}}}}function oe(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 q({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=ie(t),r=ae(n),o=r[0];if("function"==typeof e.getDropOperation){let i=new _(t.dataTransfer);o=se(n,e.getDropOperation(i,r))}if("function"==typeof e.getDropOperationForPoint){let i=new _(t.dataTransfer),a=t.currentTarget.getBoundingClientRect();o=se(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=ie(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=ae(n),o=r[0];if("function"==typeof e.getDropOperation){let i=new _(t.dataTransfer);o=se(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=se(n,e.getDropOperationForPoint(r,ae(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})}),800)}},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 ie(e){let t=i[e.dataTransfer.effectAllowed];j&&(t&=j);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 ae(e){let t=[];return e&r.move&&t.push("move"),e&r.copy&&t.push("copy"),e&r.link&&t.push("link"),t}function se(e,t){return e&r[t]?t:"cancel"}function le(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=r.height-20,s=r.width-20;e<20||e>s||n<20||n>a?(e<20?o.dx=e-20:e>s&&(o.dx=e-s),n<20?o.dy=n-20:n>a&&(o.dy=n-a),o.timer||(o.timer=requestAnimationFrame(i))):this.stop()},stop(){o.timer&&(cancelAnimationFrame(o.timer),o.timer=null)}}}const ce=["before","on","after"],ue=["after","on","before"];function de(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=le(n),{dropProps:a}=oe({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?ue:ce,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?ue:ce,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 q({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 pe(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})}},$.set(r.element,r),()=>{$.delete(r.element)};var r}),[n,e.target,t,o]);let i=W(),{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 he(e,t,n){let{target:r}=e,{collection:o}=t,i=(0,Q.oe)((a=X)&&a.__esModule?a.default:a,"@react-aria/dnd");var a;let s,l=W(),{dropProps:c}=pe(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 fe={keyboard:{selected:"dragSelectedKeyboard",notSelected:"dragDescriptionKeyboard"},touch:{selected:"dragSelectedLongPress",notSelected:"dragDescriptionLongPress"},virtual:{selected:"dragDescriptionVirtual",notSelected:"dragDescriptionVirtual"}};function me(e,t){let n=(0,Q.oe)((r=X)&&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=fe[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 ge(e,t,n){let{draggingCollectionRef:r}=A;t.draggingKeys.size>0&&(null==r?void 0:r.current)!==n.current&&D(n)}const ve=new Map;function ye(e,t){let n=ve.get(e);if(!n){let t=new Set,r=e=>{for(let n of t)n(e)};n={listener:r,handlers:t},ve.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),ve.delete(e))}}function be(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)(ye("beforecopy",o),ye("copy",i),ye("beforecut",a),ye("cut",s),ye("beforepaste",l),ye("paste",c))}),[t,o,i,a,s,l,c]),{clipboardProps:r}}var we=n(40961);function xe(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,we.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 Se=V.forwardRef(xe);class _e{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:()=>R,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 j(e,t){let{children:n,...o}=e,i={...o,ref:(0,r.UH)(t)};return s.createElement(O.Provider,{value:i},n)}let R=s.forwardRef(j);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(19663),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:()=>g,v0:()=>y});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(19663);const f={ltr:"ArrowRight",rtl:"ArrowLeft"},m={ltr:"ArrowLeft",rtl:"ArrowRight"};function g(e,t,n){var a,c;let g,{node:y,isVirtualized:b,shouldSelectOnPressUp:w}=e,{direction:x}=(0,h.Ym)(),{onAction:S,linkBehavior:_,keyboardNavigationBehavior:C}=r.get(t),E=(0,i.X1)(),k=(0,d.useRef)(null),z={},P=t.selectionManager.isLink(y.key);if(null!=y&&"expandedKeys"in t){g=[...t.collection.getChildren(y.key)].length>1,null==S&&!P&&"none"===t.selectionManager.selectionMode&&g&&(S=()=>t.toggleKey(y.key)),z={"aria-expanded":g?t.expandedKeys.has(y.key):void 0,"aria-level":y.level+1,"aria-posinset":(null==y?void 0:y.index)+1,"aria-setsize":y.level>0?(0,u.W)(t.collection.getChildren(null==y?void 0:y.parentKey)).index+1:[...t.collection].filter((e=>0===e.level)).at(-1).index+1}}let{itemProps:A,...D}=(0,l.pB)({selectionManager:t.selectionManager,key:y.key,ref:n,isVirtualized:b,shouldSelectOnPressUp:w,onAction:S||(null===(a=y.props)||void 0===a?void 0:a.onAction)?(0,i.cy)(null===(c=y.props)||void 0===c?void 0:c.onAction,S?()=>S(y.key):void 0):void 0,focus:()=>{var e;(null!=k.current&&y.key!==k.current||!(null===(e=n.current)||void 0===e?void 0:e.contains(document.activeElement)))&&(0,s.lY)(n.current)},linkBehavior:_}),T=(0,i.HI)(y.props),I=D.hasAction?T:{},M=(0,i.v6)(A,I,{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[x]&&t.selectionManager.focusedKey===y.key&&g&&!t.expandedKeys.has(y.key))return t.toggleKey(y.key),void e.stopPropagation();if(e.key===m[x]&&t.selectionManager.focusedKey===y.key&&g&&t.expandedKeys.has(y.key))return t.toggleKey(y.key),void e.stopPropagation()}switch(e.key){case"ArrowLeft":if("arrow"===C){let t="rtl"===x?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"===x)(0,s.lY)(n.current),(0,i.op)(n.current,{containingElement:(0,i.mH)(n.current)});else{r.currentNode=n.current;let e=v(r);e&&((0,s.lY)(e),(0,i.op)(e,{containingElement:(0,i.mH)(n.current)}))}}break;case"ArrowRight":if("arrow"===C){let t="rtl"===x?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"===x)(0,s.lY)(n.current),(0,i.op)(n.current,{containingElement:(0,i.mH)(n.current)});else{r.currentNode=n.current;let e=v(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"===C){let t=(0,s.N$)(n.current,{tabbable:!0});t.currentNode=document.activeElement,(e.shiftKey?t.previousNode():t.nextNode())&&e.stopPropagation()}}},onFocus:e=>{k.current=y.key,e.target===n.current||(0,p.pP)()||t.selectionManager.setFocusedKey(y.key)},"aria-label":y.textValue||void 0,"aria-selected":t.selectionManager.canSelectItem(y.key)?t.selectionManager.isSelected(y.key):void 0,"aria-disabled":t.selectionManager.isDisabled(y.key)||void 0,"aria-labelledby":E&&y.textValue?`${o(t,y.key)} ${E}`:void 0,id:o(t,y.key)});b&&(M["aria-rowindex"]=y.index+1);return{rowProps:{...(0,i.v6)(M,z)},gridCellProps:{role:"gridcell","aria-colindex":1},descriptionProps:{id:E},...D}}function v(e){let t,n;do{n=e.lastChild(),n&&(t=n)}while(n);return t}function y(e,t){let{key:n}=e;const{checkboxProps:r}=(0,a.bw)(e,t);return{checkboxProps:{...r,"aria-labelledby":`${r.id} ${o(t,n)}`}}}},19663:(e,t,n)=>{"use strict";n.d(t,{CY:()=>m,QM:()=>M,iF:()=>P,U2:()=>N,Ym:()=>g,oe:()=>E,pn:()=>x,JY:()=>T});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=n(67178);class b{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(0,y.Ay)(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 w=new WeakMap;function x(e){let{locale:t}=g(),n=(0,a.useMemo)((()=>function(e){let t=w.get(e);return t||(t=new v(e),w.set(e,t)),t}(e)),[e]),r=(0,a.useMemo)((()=>new b(t,n)),[t,n]);return(0,a.useCallback)(((e,t)=>r.format(e,t)),[r])}var S=n(5533);const _=new WeakMap;function C(e,t){return t&&S.B.getGlobalDictionaryForPackage(t)||function(e){let t=_.get(e);return t||(t=new(0,S.B)(e),_.set(e,t)),t}(e)}function E(e,t){let{locale:n}=g(),r=C(e,t);return(0,a.useMemo)((()=>new(0,S.J)(n,r)),[n,r])}var k=n(34361),z=n(86025);function P(e){e=(0,z.k9)(null!=e?e:{},A);let{locale:t}=g();return(0,a.useMemo)((()=>new(0,k.pw)(t,e)),[t,e])}function A(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 D=n(37515);function T(e={}){let{locale:t}=g();return(0,a.useMemo)((()=>new(0,D.K)(t,e)),[t,e])}let I=new Map;function M(e){let{locale:t}=g(),n=t+(e?Object.entries(e).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"");if(I.has(n))return I.get(n);let r=new Intl.Collator(t,e);return I.set(n,r),r}function N(e){let t=M({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:()=>Y,pP:()=>G,Cl:()=>Z,iQ:()=>I,Y0:()=>Q,K7:()=>ee,Rb:()=>te,Mk:()=>se,$Z:()=>le,lb:()=>J,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})),j=(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))})),R=(0,r.Jt)((e=>{f&&j(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),R(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=>{j(e)};t.onDragStart=e=>{e.currentTarget.contains(e.target)&&j(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),R(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),R(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&&j(x(e.target,t)))};let o=t=>{e.isPressed&&t.target.contains(e.target)&&j({currentTarget:e.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};t.onDragStart=e=>{e.currentTarget.contains(e.target)&&j(e)}}return t}),[T,d,h,I,v,j,R,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,j=new Map,R=!1,F=!1;const B={Tab:!0,Escape:!0};function L(e,t){for(let n of O)n(e,t)}function V(e){R=!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||(R=!0,L("pointer",e))}function $(e){(0,r.YF)(e)&&(R=!0,N="virtual")}function H(e){e.target!==window&&e.target!==document&&(R||F||(N="virtual",L("virtual",e)),R=!1,F=!1)}function U(){R=!1,F=!0}function q(e){if("undefined"==typeof window||j.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(){R=!0,o.apply(this,arguments)},null==n||n.addEventListener("keydown",V,!0),null==n||n.addEventListener("keyup",V,!0),null==n||n.addEventListener("click",$,!0),t.addEventListener("focus",H,!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",(()=>{W(e)}),{once:!0}),j.set(t,{focus:o})}const W=(e,t)=>{const n=(0,r.mD)(e),o=(0,r.zm)(e);t&&(null==o||o.removeEventListener("DOMContentLoaded",t)),j.has(n)&&(n.HTMLElement.prototype.focus=j.get(n).focus,null==o||o.removeEventListener("keydown",V,!0),null==o||o.removeEventListener("keyup",V,!0),null==o||o.removeEventListener("click",$,!0),n.removeEventListener("focus",H,!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)),j.delete(n))};function G(){return"pointer"!==N}function Y(){return N}function Z(e){N=e,L(e,null)}function J(){q();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)?q(e):(n=()=>{q(e)},t.addEventListener("DOMContentLoaded",n))}();const X=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){q(),(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&&!X.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}}}},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))}}),j=(0,i.$X)(null==P?void 0:P.props);delete j.id;let R=(0,i._h)(null==P?void 0:P.props);return{optionProps:{...z,...(0,i.v6)(j,D,O,R),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:()=>o,pA:()=>i});let r=null;function o(e,t="assertive",n=7e3){r||(r=new a),r.announce(e,t,n)}function i(e){r&&r.clear(e)}class a{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)}}},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(19663),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)}},j="menuitem";k||("single"===t.selectionManager.selectionMode?j="menuitemradio":"multiple"===t.selectionManager.selectionMode&&(j="menuitemcheckbox"));let R=(0,o.X1)(),F=(0,o.X1)(),B=(0,o.X1)(),L={id:r,"aria-disabled":P||void 0,role:j,"aria-label":e["aria-label"],"aria-labelledby":R,"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:$,isPressed:H}=(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:q}=(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:W}=(0,a.iQ)({onBlur:E,onFocus:_,onFocusChange:C}),G=(0,o.$X)(I.props);delete G.id;let Y=(0,o._h)(I.props);return{menuItemProps:{...L,...(0,o.v6)(G,Y,k?{onFocus:V.onFocus,"data-key":V["data-key"]}:V,$,U,q,W),tabIndex:null!=V.tabIndex?-1:void 0},labelProps:{id:R},descriptionProps:{id:F},keyboardShortcutProps:{id:B},isFocused:K,isSelected:D,isPressed:H,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(19663),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:j,commit:R,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(){R()}}),$=(0,c.JY)(x),H=(0,i.useMemo)((()=>$.resolvedOptions()),[$]),U=(0,c.JY)({...x,currencySign:void 0}),q=(0,i.useMemo)((()=>isNaN(O)?"":U.format(O)),[U,O]),{spinButtonProps:W,incrementButtonProps:G,decrementButtonProps:Y}=(0,u.y)({isDisabled:f,isReadOnly:m,isRequired:g,maxValue:y,minValue:v,onIncrement:T,onIncrementToMax:I,onDecrement:M,onDecrementToMin:N,value:O,textValue:q}),[Z,J]=(0,i.useState)(!1),{focusWithinProps:X}=(0,s.Rb)({isDisabled:f,onFocusWithinChange:J}),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||!Z;var te;(0,s.Q7)({onScroll:Q,isDisabled:ee},n);let ne=(null!==(te=H.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?(R(),F()):e.continuePropagation()}),[R,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:j,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)(W,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:{...X,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)(Y,{"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:()=>q,hJ:()=>te,hD:()=>Z,ln:()=>re,Se:()=>ne,v8:()=>k,oJ:()=>I,fP:()=>J});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={},j=t[E]+.5*t[k]-A[E];const R=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)(j,B,L);return O[E]=(0,r.qE)(V,R,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(19663);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,j=0;function R(e={}){let{isDisabled:t}=e;(0,r.Nf)((()=>{if(!t)return j++,1===j&&(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"))),()=>{j--,0===j&&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),$=n(96411);var H;H={"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 q(e){let{onDismiss:t,...n}=e,o=(0,C.oe)((i=H)&&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 W=new WeakMap,G=[];function Y(e){var t;return null===(t=e.filter((e=>e.getRootNode()instanceof ShadowRoot)))||void 0===t?void 0:t.map((e=>e.getRootNode()))}function Z(e,t=document.body){let n=new Set(e),r=new Set;const o=Y(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=W.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),W.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=W.get(e);1===t?(e.removeAttribute("aria-hidden"),W.delete(e)):W.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 J(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 R({isDisabled:i||!t.isOpen}),(0,r.Nf)((()=>{if(t.isOpen&&!i&&o.current)return Z([o.current])}),[i,t.isOpen,o]),{popoverProps:(0,r.v6)(c,d),arrowProps:p,underlayProps:u,placement:h}}const X=(0,x.createContext)({});function Q(){var e;return null!==(e=(0,x.useContext)(X))&&void 0!==e?e:{}}const ee=x.createContext(null);function te(e){let t=(0,$.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 R({isDisabled:!t.isOpen}),ne(),(0,x.useEffect)((()=>{if(t.isOpen)return Z([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(19663);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(19663);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(19663),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(19663),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:()=>v,y:()=>p,pB:()=>h,yI:()=>y,Ih:()=>s});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);function s(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=""}),1e3)}:null}}}var l=n(40961),c=n(74373),u=n(37555),d=n(19663);function p(e){let{selectionManager:t,keyboardDelegate:n,ref:p,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=p,linkBehavior:_="action"}=e,{direction:C}=(0,d.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,c.lY)(p.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,u.ME)(),n=p.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:p.current}))}t.isFocused&&null==t.focusedKey&&null!=P.current&&(0,c.lY)(p.current),P.current=t.focusedKey,z.current=!1})),(0,r._q)(p,"react-aria-focus-scope-restore",(e=>{e.preventDefault(),t.setFocused(!0)}));let A,D={onKeyDown:e=>{if(e.altKey&&"Tab"===e.key&&e.preventDefault(),!p.current.contains(e.target))return;const a=(n,r)=>{if(null!=n){if(t.isLink(n)&&"selection"===_&&v&&!o(e)){(0,l.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 s,u;e.preventDefault();let r=null!=t.focusedKey?n.getKeyBelow(t.focusedKey):null===(s=n.getFirstKey)||void 0===s?void 0:s.call(n);null==r&&f&&(r=null===(u=n.getFirstKey)||void 0===u?void 0:u.call(n,t.focusedKey)),a(r)}break;case"ArrowUp":if(n.getKeyAbove){var d,h;e.preventDefault();let r=null!=t.focusedKey?n.getKeyAbove(t.focusedKey):null===(d=n.getLastKey)||void 0===d?void 0:d.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)p.current.focus();else{let e,t,n=(0,c.N$)(p.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,u.ME)()&&(0,r.op)(e,{containingElement:p.current})}}}},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||t.setFocused(!1)},onMouseDown(e){S.current===e.target&&e.preventDefault()}},{typeSelectProps:T}=s({keyboardDelegate:n,selectionManager:t});return y||(D=(0,r.v6)(T,D)),b||(A=null==t.focusedKey?0:-1),{collectionProps:{...D,tabIndex:A}}}function h(e){let{selectionManager:t,key:n,ref:s,shouldSelectOnPressUp:l,shouldUseVirtualFocus:d,focus:p,isDisabled:h,onAction:g,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&&!d&&(p?p():document.activeElement!==s.current&&(0,c.lY)(s.current))}),[s,n,t.focusedKey,t.childFocusStrategy,t.isFocused,d]),h=h||t.isDisabled(n);let x={};d||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=(g||_)&&!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(g&&g(),_){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&&!m()||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&&!f())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||m()))&&w(e)},N.onPress=e=>{("touch"===e.pointerType||"pen"===e.pointerType||"virtual"===e.pointerType||"keyboard"===e.pointerType&&P&&f()||"mouse"===e.pointerType&&I.current)&&(P?M(e):C&&w(e))}),x["data-key"]=n,N.preventFocusOnPress=d;let{pressProps:O,isPressed:j}=(0,u.dD)(N),R=z?e=>{"mouse"===A.current&&(e.stopPropagation(),e.preventDefault(),M(e))}:void 0,{longPressProps:F}=(0,u.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:R,onDragStartCapture:e=>{"touch"===A.current&&T.current&&e.preventDefault()},onClick:B}),isPressed:j,isSelected:t.isSelected(n),isFocused:t.isFocused&&t.focusedKey===n,isDisabled:h,allowsSelection:C,hasAction:P}}function f(){let e=window.event;return"Enter"===(null==e?void 0:e.key)}function m(){let e=window.event;return" "===(null==e?void 0:e.key)||"Space"===(null==e?void 0:e.code)}class g{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 v{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 g(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 g(this.ref);"stack"===this.layout&&"vertical"===this.orientation&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function y(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:o,keyboardDelegate:i,layoutDelegate:s}=e,l=(0,d.QM)({usage:"search",sensitivity:"base"}),c=t.disabledBehavior,u=(0,a.useMemo)((()=>i||new v({collection:n,disabledKeys:r,disabledBehavior:c,ref:o,collator:l,layoutDelegate:s})),[i,s,n,r,o,l,c]),{collectionProps:h}=p({...e,ref:o,selectionManager:t,keyboardDelegate:u});return{listProps:h}}},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(19663);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),j=e=>{P(),O.current=e,t.setThumbDragging(n,!0),x(window,"mouseup",R,!1),x(window,"touchend",R,!1),x(window,"pointerup",R,!1)},R=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",R,!1),S(window,"touchend",R,!1),S(window,"pointerup",R,!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||j()},onPointerDown:e=>{0!==e.button||e.altKey||e.ctrlKey||e.metaKey||j(e.pointerId)},onTouchStart:e=>{j(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(19663);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(19663),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(19663),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(19663);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:()=>j,un:()=>O,bh:()=>N,mU:()=>M,cX:()=>I,ov:()=>oe,YF:()=>fe,Pg:()=>me,Tc:()=>R,v6:()=>x,Fe:()=>H,vg:()=>J,Rt:()=>de,op:()=>he,sU:()=>$,k9:()=>ge,I8:()=>ce,Jt:()=>i,_q:()=>ue,FO:()=>ve,A5:()=>X,Bi:()=>u,b0:()=>Q,Nf:()=>o,_h:()=>W,UH:()=>ee,wY:()=>ne,rd:()=>K,X1:()=>p,wt:()=>re,HI:()=>q,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()})),j=T((function(){return I()||O()})),R=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=>H(e,t)))},useHref:e=>e});function K(){return(0,r.useContext)(V)}function $(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 H(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=R()&&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});H.isOpening=n,z(e),e.dispatchEvent(c),H.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 q(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 W(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}}H.isOpening=!1;let G=new Map,Y=new Set;function Z(){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 Y)e();Y.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 J(e){requestAnimationFrame((()=>{0===G.size?e():Y.add(e)}))}"undefined"!=typeof document&&("loading"!==document.readyState?Z():document.addEventListener("DOMContentLoaded",Z));function X(){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===_&&($(),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"),j=(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}),R=(t=null,n)=>{let r="manual"===n||"focus"===n&&"focus"===c;(d||I.size>0||r&&T.size>0||e.items)&&(r&&!j.isOpen&&void 0===e.items&&m(!0),O.current=n,b(t),j.open())},F=(0,a.useCallback)((()=>{N(f?T:I)}),[f,T,I]),B=(0,a.useCallback)(((e=null)=>{j.isOpen&&F(),b(e),j.toggle()}),[j,F]),L=(0,a.useCallback)((()=>{j.isOpen&&(F(),j.close())}),[j,F]),[V,K]=(0,a.useState)(A),$=()=>{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 H,U;let q=(0,a.useRef)(null!==(U=null!==(H=e.selectedKey)&&void 0!==H?H:e.defaultSelectedKey)&&void 0!==U?U:null);var W;let G=(0,a.useRef)(null!==(W=null===(n=x.getItem(_))||void 0===n?void 0:n.textValue)&&void 0!==W?W:"");(0,a.useEffect)((()=>{var t,n;g&&(I.size>0||d)&&!j.isOpen&&A!==V&&"manual"!==c&&R(null,"input"),f||d||!j.isOpen||0!==I.size||L(),null!=_&&_!==q.current&&L(),A!==V&&(S.setFocusedKey(null),m(!1),""!==A||void 0!==e.inputValue&&void 0!==e.selectedKey||C(null)),_===q.current||void 0!==e.inputValue&&void 0!==e.selectedKey?V!==A&&K(A):$();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||_!==q.current||G.current!==r&&(K(r),D(r)),q.current=_,G.current=r}));let Y=(0,r.KZ)({...e,value:(0,a.useMemo)((()=>({inputValue:A,selectedKey:_})),[A,_])}),Z=()=>{q.current=null,C(null),L()},J=()=>{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 $(),L()};const X=()=>{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?J():Z()}else J()};let Q=(0,a.useRef)(A),ee=(0,a.useMemo)((()=>j.isOpen?f?T:I:M),[j.isOpen,T,I,f,M]);return{...Y,...j,focusStrategy:y,toggle:(t=null,n)=>{let r="manual"===n||"focus"===n&&"focus"===c;(d||I.size>0||r&&T.size>0||e.items||j.isOpen)&&(r&&!j.isOpen&&void 0===e.items&&m(!0),j.isOpen||(O.current=n),B(t))},open:R,close:X,selectionManager:S,selectedKey:_,setSelectedKey:C,disabledKeys:k,isFocused:g,setFocused:t=>{t?(Q.current=A,"focus"!==c||e.isReadOnly||R(null,"focus")):(h&&X(),A!==Q.current&&Y.commitValidation()),v(t)},selectedItem:E,collection:ee,inputValue:A,setInputValue:D,commit:()=>{j.isOpen&&null!=S.focusedKey?_===S.focusedKey?J():C(S.focusedKey):X()},revert:()=>{p&&null==_?Z():J()}}}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,{Uj:()=>o});var r=n(96540);function o(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]),j=(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:j,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 j(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,j(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:j,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),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),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);class s extends o{*[Symbol.iterator](){yield*this.body.childNodes}get size(){return this._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(){var e;return null===(0,dist_import.ue)(this.body.childNodes)||void 0===e?void 0:e.key}getLastKey(){var e;return null===(0,dist_import.W)(this.body.childNodes)||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){return e===this.body.key?this.body.childNodes:super.getChildren(e)}getTextValue(e){let t=this.getItem(e);if(!t)return"";if(t.textValue)return t.textValue;let n=this.rowHeaderColumnKeys;if(n){let e=[];for(let r of t.childNodes){let t=this.columns[r.index];if(n.has(t.key)&&r.textValue&&e.push(r.textValue),e.length===n.size)break}return e.join(" ")}return""}constructor(e,t,n){let r,o=new Set,s=[];if(null==n?void 0:n.showSelectionCheckboxes){let e={type:"column",key:i,value:null,textValue:"",level:0,index:(null==n?void 0:n.showDragButtons)?1:0,hasChildNodes:!1,rendered:null,childNodes:[],props:{isSelectionCell:!0}};s.unshift(e)}if(null==n?void 0:n.showDragButtons){let e={type:"column",key:a,value:null,textValue:"",level:0,index:0,hasChildNodes:!1,rendered:null,childNodes:[],props:{isDragButtonCell:!0}};s.unshift(e)}let l=[],c=new Map,u=e=>{switch(e.type){case"body":e;break;case"column":c.set(e.key,e),e.hasChildNodes||(s.push(e),e.props.isRowHeader&&o.add(e.key));break;case"item":return void l.push(e)}for(let t of e.childNodes)u(t)};for(let t of e)u(t);let d=function(e,t){if(0===t.length)return[];let n=[],r=new Map;for(let o of t){let t=o.parentKey,i=[o];for(;t;){let n=e.get(t);if(!n)break;if(r.has(n)){n.colspan++;let{column:e,index:t}=r.get(n);if(t>i.length)break;for(let n=t;n<i.length;n++)e.splice(n,0,null);for(let t=i.length;t<e.length;t++)e[t]&&r.has(e[t])&&(r.get(e[t]).index=t)}else n.colspan=1,i.push(n),r.set(n,{column:i,index:i.length-1});n.parentKey}n.push(i),o.index=n.length-1}let o=Math.max(...n.map((e=>e.length))),i=Array(o).fill(0).map((()=>[])),a=0;for(let e of n){let t=o-1;for(let n of e){if(n){let e=i[t],r=e.reduce(((e,t)=>e+t.colspan),0);if(r<a){let o={type:"placeholder",key:"placeholder-"+n.key,colspan:a-r,index:r,value:null,rendered:null,level:t,hasChildNodes:!1,childNodes:[],textValue:null};e.length>0&&(e[e.length-1].nextKey=o.key,o.prevKey=e[e.length-1].key),e.push(o)}e.length>0&&(e[e.length-1].nextKey=n.key,n.prevKey=e[e.length-1].key),n.level=t,n.colIndex=a,e.push(n)}0}0}let s=0;for(let e of i){let n=e.reduce(((e,t)=>e+t.colspan),0);if(n<t.length){let r={type:"placeholder",key:"placeholder-"+e[e.length-1].key,colspan:t.length-n,index:n,value:null,rendered:null,level:s,hasChildNodes:!1,childNodes:[],textValue:null,prevKey:e[e.length-1].key};e.push(r)}0}return i.map(((e,t)=>({type:"headerrow",key:"headerrow-"+t,index:t,value:null,rendered:null,level:0,hasChildNodes:!0,childNodes:e,textValue:null})))}(c,s);d.forEach(((e,t)=>l.splice(t,0,e))),super({columnCount:s.length,items:l,visitNode:e=>(e.column=s[e.index],e)}),this._size=0,this.columns=s,this.rowHeaderColumnKeys=o,this.body=r,this.headerRows=d,this._size=[...r.childNodes].length,0===this.rowHeaderColumnKeys.size&&this.rowHeaderColumnKeys.add(this.columns.find((e=>{var t,n;return!(null===e.props||void 0===t?void 0:t.isDragButtonCell)&&!(null===e.props||void 0===n?void 0:n.isSelectionCell)})).key)}}function l(e){return null}l.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 c(e){return null}c.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 u(e){return null}u.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 d(e){return null}d.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===d){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 p(e){return null}p.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}},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:()=>I,Mz:()=>b,Z0:()=>R});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}function y(e){if("function"!=typeof e)throw new Error(r(10));i=e,v({type:a.REPLACE})}function b(){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}}}v({type:a.INIT});const w={dispatch:v,subscribe:g,getState:m,replaceReducer:y,[o]:b};return w}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}function m(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}Symbol(),Object.getPrototypeOf({});var g="undefined"!=typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}};function v(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 g(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 y(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=v,argsMemoizeOptions:d=[],devModeChecks:g={}}=s,y=h(c),b=h(d),w=f(e),x=l((function(){return r++,a.apply(null,arguments)}),...y);const S=u((function(){o++;const e=m(w,arguments);return t=x.apply(null,e),t}),...b);return Object.assign(S,{resultFunc:a,memoizedResultFunc:x,dependencies:w,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>t,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:l,argsMemoize:u})};return Object.assign(r,{withTypes:()=>r}),r}var b=y(v),w=Object.assign(((e,t=b)=>{!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:()=>w});function x(e){return({dispatch:t,getState:n})=>r=>o=>"function"==typeof o?o(t,n,e):r(o)}var S=x(),_=x,C=(((...e)=>{const t=y(...e)})(v),"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 E(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw new Error(V(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 k=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 z(e){return(0,d.a6)(e)?(0,d.jM)(e,(()=>{})):e}function P(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(V(10));const r=n.insert(t,e);return e.set(t,r),r}var A=e=>t=>{setTimeout(t,e)},D="undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:A(10),T=e=>function(t){const{autoBatch:n=!0}=t??{};let r=new k(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?D:"callback"===e.type?e.queueNotification:A(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?.RTK_autoBatch,i=!o,i&&(a||(a=!0,l(c))),r.dispatch(e)}finally{o=!0}}})})("object"==typeof n?n:void 0)),r};function I(e){const t=function(e){const{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:o=!0}=e??{};let i=new k;return t&&("boolean"==typeof t?i.push(S):i.push(_(t.extraArgument))),i},{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(V(1));p=c(n)}h="function"==typeof o?o(t):t();let f=u;i&&(f=C({trace:!1,..."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=T(m);let v="function"==typeof d?d(g):g();return l(p,a,f(...v))}function M(e){const t={},n=[];let r;const o={addCase(e,n){const r="string"==typeof e?e:e.type;if(!r)throw new Error(V(28));if(r in t)throw new Error(V(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 N=Symbol.for("rtk-slice-createasyncthunk");function O(e,t){return`${e}/${t}`}function j(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 R=function({creators:e}={}){const t=e?.asyncThunk?.[N];return function(e){const{name:n,reducerPath:r=n}=e;if(!n)throw new Error(V(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(V(12));if(n in a.sliceCaseReducersByType)throw new Error(V(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?M(e.extraReducers):[e.extraReducers],o={...t,...a.sliceCaseReducersByType};return function(e,t){let n,[r,o,i]=M(t);if("function"==typeof e)n=()=>z(e());else{const t=z(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(V(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:O(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(V(17));i=r.reducer,a=r.prepare}else i=r;o.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,a?E(e,a):E(e))}(a,i,s):function({type:e,reducerName:t},n,r,o){if(!o)throw new Error(V(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||F,pending:s||F,rejected:l||F,settled:c||F})}(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=P(u,this,{insert:()=>new WeakMap});return P(n,t,{insert:()=>{const n={};for(const[r,o]of Object.entries(e.selectors??{}))n[r]=j(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 F(){}var{assign:B}=Object,L="listenerMiddleware";E(`${L}/add`),E(`${L}/removeAll`),E(`${L}/remove`);Symbol.for("rtk-state-proxy-original");function V(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})},53068:(e,t,n)=>{"use strict";function r(e){var t=e.match(/^var\((.*)\)$/);return t?t[1]:e}function o(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r={};for(var i in e){var a=e[i],s=[...n,i];"string"==typeof a||"number"==typeof a||null==a?r[i]=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[i]=o(a,t,s)}return r}function i(e,t){var n={};if("object"==typeof t){var i=e;o(t,((e,t)=>{if(null!=e){var o=function(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}(i,t);n[r(o)]=String(e)}}))}else{var a=e;for(var s in a){var l=a[s];null!=l&&(n[r(s)]=l)}}return Object.defineProperty(n,"toString",{value:function(){return Object.keys(this).map((e=>"".concat(e,":").concat(this[e]))).join(";")},writable:!1}),n}n.d(t,{D:()=>i})},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=1===e.nodeType?e:e.parentElement;if(!t)return;var n=t.getBoundingClientRect(),r=n.top;return{x:n.left,y:r}},t.getEventClientTouchOffset=o,t.getEventClientOffset=i;var r=n(28757);function o(e,t){return 1===e.targetTouches.length?i(e.targetTouches[0]):t&&1===e.touches.length&&e.touches[0].target===t.target?i(e.touches[0]):void 0}function i(e,t){return(0,r.isTouchEvent)(e)?o(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},t.eventShouldEndDrag=function(e){return void 0===e.buttons||0==(e.buttons&n)},t.isTouchEvent=function(e){return!!e.targetTouches};var n=1,r=0},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})},67178:(e,t,n)=>{"use strict";n.d(t,{O4:()=>ge,IF:()=>we,SV:()=>Pe,Ay:()=>Ae,RK:()=>Ce});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)};Object.create;function a(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,l,c;Object.create;function u(e){return e.type===l.literal}function d(e){return e.type===l.argument}function p(e){return e.type===l.number}function h(e){return e.type===l.date}function f(e){return e.type===l.time}function m(e){return e.type===l.select}function g(e){return e.type===l.plural}function v(e){return e.type===l.pound}function y(e){return e.type===l.tag}function b(e){return!(!e||"object"!=typeof e||e.type!==c.number)}function w(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"}(l||(l={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(c||(c={}));var x=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,S=/(?:[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(S,(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 C=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var E=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,k=/^(@+)?(\+|#+)?[rs]?$/g,z=/(\*)(0+)|(#+)(0+)|(0+)/g,P=/^(0+)$/;function A(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(k,(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 D(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 T(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)),!P.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function I(e){var t=D(e);return t||{}}function M(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=i(i(i({},t),{notation:"scientific"}),o.options.reduce((function(e,t){return i(i({},e),I(t))}),{}));continue;case"engineering":t=i(i(i({},t),{notation:"engineering"}),o.options.reduce((function(e,t){return i(i({},e),I(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(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(P.test(o.stem))t.minimumIntegerDigits=o.stem.length;else if(E.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(E,(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 a=o.options[0];"w"===a?t=i(i({},t),{trailingZeroDisplay:"stripIfInteger"}):a&&(t=i(i({},t),A(a)))}else if(k.test(o.stem))t=i(i({},t),A(o.stem));else{var s=D(o.stem);s&&(t=i(i({},t),s));var l=T(o.stem);l&&(t=i(i({},t),l))}}return t}var N,O={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 j(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),(O[n||""]||O[r||""]||O["".concat(r,"-001")]||O["001"])[0]}var R=new RegExp("^".concat(x.source,"*")),F=new RegExp("".concat(x.source,"*$"));function B(e,t){return{start:e,end:t}}var L=!!String.prototype.startsWith,V=!!String.fromCodePoint,K=!!Object.fromEntries,$=!!String.prototype.codePointAt,H=!!String.prototype.trimStart,U=!!String.prototype.trimEnd,q=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},W=!0;try{W="a"===(null===(N=te("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===N?void 0:N[0])}catch(e){W=!1}var G,Y=L?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},Z=V?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},J=K?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},X=$?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}},Q=H?function(e){return e.trimStart()}:function(e){return e.replace(R,"")},ee=U?function(e){return e.trimEnd()}:function(e){return e.replace(F,"")};function te(e,t){return new RegExp(e,t)}if(W){var ne=te("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");G=function(e,t){var n;return ne.lastIndex=t,null!==(n=ne.exec(e)[1])&&void 0!==n?n:""}}else G=function(e,t){for(var n=[];;){var r=X(e,t);if(void 0===r||ie(r)||ae(r))break;n.push(r),t+=r>=65536?2:1}return Z.apply(void 0,n)};var re=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,B(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&oe(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:l.pound,location:B(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:l.literal,value:"<".concat(r,"/>"),location:B(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()||!oe(this.char()))return this.error(s.INVALID_TAG,B(a,this.clonePosition()));var c=this.clonePosition();return r!==this.parseTagName()?this.error(s.UNMATCHED_CLOSING_TAG,B(c,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:l.tag,value:r,children:i,location:B(n,this.clonePosition())},err:null}:this.error(s.INVALID_TAG,B(a,this.clonePosition())))}return this.error(s.UNCLOSED_TAG,B(n,this.clonePosition()))}return this.error(s.INVALID_TAG,B(n,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||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);)this.bump();return this.message.slice(t,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=B(n,this.clonePosition());return{val:{type:l.literal,value:r,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(oe(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 Z.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(),Z(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,B(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(s.EMPTY_ARGUMENT,B(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(s.MALFORMED_ARGUMENT,B(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(s.EXPECT_ARGUMENT_CLOSING_BRACE,B(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:l.argument,value:r,location:B(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(s.EXPECT_ARGUMENT_CLOSING_BRACE,B(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(s.MALFORMED_ARGUMENT,B(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=G(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:B(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var o,a=this.clonePosition(),u=this.parseIdentifierIfPossible().value,d=this.clonePosition();switch(u){case"":return this.error(s.EXPECT_ARGUMENT_TYPE,B(a,d));case"number":case"date":case"time":this.bumpSpace();var p=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition();if((x=this.parseSimpleArgStyleIfPossible()).err)return x;if(0===(v=ee(x.val)).length)return this.error(s.EXPECT_ARGUMENT_STYLE,B(this.clonePosition(),this.clonePosition()));p={style:v,styleLocation:B(h,this.clonePosition())}}if((S=this.tryParseArgumentClose(r)).err)return S;var f=B(r,this.clonePosition());if(p&&Y(null==p?void 0:p.style,"::",0)){var m=Q(p.style.slice(2));if("number"===u)return(x=this.parseNumberSkeletonFromString(m,p.styleLocation)).err?x:{val:{type:l.number,value:n,location:f,style:x.val},err:null};if(0===m.length)return this.error(s.EXPECT_DATE_TIME_SKELETON,f);var g=m;this.locale&&(g=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=j(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}(m,this.locale));var v={type:c.dateTime,pattern:g,location:p.styleLocation,parsedOptions:this.shouldParseSkeletons?_(g):{}};return{val:{type:"date"===u?l.date:l.time,value:n,location:f,style:v},err:null}}return{val:{type:"number"===u?l.number:"date"===u?l.date:l.time,value:n,location:f,style:null!==(o=null==p?void 0:p.style)&&void 0!==o?o:null},err:null};case"plural":case"selectordinal":case"select":var y=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(s.EXPECT_SELECT_ARGUMENT_OPTIONS,B(y,i({},y)));this.bumpSpace();var b=this.parseIdentifierIfPossible(),w=0;if("select"!==u&&"offset"===b.value){if(!this.bumpIf(":"))return this.error(s.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,B(this.clonePosition(),this.clonePosition()));var x;if(this.bumpSpace(),(x=this.tryParseDecimalInteger(s.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,s.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return x;this.bumpSpace(),b=this.parseIdentifierIfPossible(),w=x.val}var S,C=this.tryParsePluralOrSelectOptions(e,u,t,b);if(C.err)return C;if((S=this.tryParseArgumentClose(r)).err)return S;var E=B(r,this.clonePosition());return"select"===u?{val:{type:l.select,value:n,options:J(C.val),location:E},err:null}:{val:{type:l.plural,value:n,options:J(C.val),offset:w,pluralType:"plural"===u?"cardinal":"ordinal",location:E},err:null};default:return this.error(s.INVALID_ARGUMENT_TYPE,B(a,d))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(s.EXPECT_ARGUMENT_CLOSING_BRACE,B(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,B(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(C).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?M(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var o,i=!1,a=[],l=new Set,c=r.value,u=r.location;;){if(0===c.length){var d=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var p=this.tryParseDecimalInteger(s.EXPECT_PLURAL_ARGUMENT_SELECTOR,s.INVALID_PLURAL_ARGUMENT_SELECTOR);if(p.err)return p;u=B(d,this.clonePosition()),c=this.message.slice(d.offset,this.offset())}if(l.has(c))return this.error("select"===t?s.DUPLICATE_SELECT_ARGUMENT_SELECTOR:s.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===c&&(i=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?s.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:s.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,B(this.clonePosition(),this.clonePosition()));var f=this.parseMessage(e+1,t,n);if(f.err)return f;var m=this.tryParseArgumentClose(h);if(m.err)return m;a.push([c,{value:f.val,location:B(h,this.clonePosition())}]),l.add(c),this.bumpSpace(),c=(o=this.parseIdentifierIfPossible()).value,u=o.location}return 0===a.length?this.error("select"===t?s.EXPECT_SELECT_ARGUMENT_SELECTOR:s.EXPECT_PLURAL_ARGUMENT_SELECTOR,B(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(s.MISSING_OTHER_CLAUSE,B(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=B(r,this.clonePosition());return o?q(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=X(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(Y(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()&&ie(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 oe(e){return e>=97&&e<=122||e>=65&&e<=90}function ie(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 se(e){e.forEach((function(e){if(delete e.location,m(e)||g(e))for(var t in e.options)delete e.options[t].location,se(e.options[t].value);else p(e)&&b(e.style)||(h(e)||f(e))&&w(e.style)?delete e.style.location:y(e)&&se(e.children)}))}function le(e,t){void 0===t&&(t={}),t=i({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new re(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)||se(n.val),n.val}function ce(e,t){var n=t&&t.cache?t.cache:ve,r=t&&t.serializer?t.serializer:fe;return(t&&t.strategy?t.strategy:he)(e,{cache:n,serializer:r})}function ue(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 de(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 he(e,t){return pe(e,this,1===e.length?ue:de,t.cache.create(),t.serializer)}var fe=function(){return JSON.stringify(arguments)};function me(){this.cache=Object.create(null)}me.prototype.get=function(e){return this.cache[e]},me.prototype.set=function(e,t){this.cache[e]=t};var ge,ve={create:function(){return new me}},ye={variadic:function(e,t){return pe(e,this,de,t.cache.create(),t.serializer)},monadic:function(e,t){return pe(e,this,ue,t.cache.create(),t.serializer)}};!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(ge||(ge={}));var be,we=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.code=n,o.originalMessage=r,o}return o(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),xe=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('", "'),'"'),ge.INVALID_VALUE,o)||this}return o(t,e),t}(we),Se=function(e){function t(t,n,r){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(n),ge.INVALID_VALUE,r)||this}return o(t,e),t}(we),_e=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,'"'),ge.MISSING_VALUE,n)||this}return o(t,e),t}(we);function Ce(e){return"function"==typeof e}function Ee(e,t,n,r,o,i,a){if(1===e.length&&u(e[0]))return[{type:be.literal,value:e[0].value}];for(var s=[],l=0,c=e;l<c.length;l++){var x=c[l];if(u(x))s.push({type:be.literal,value:x.value});else if(v(x))"number"==typeof i&&s.push({type:be.literal,value:n.getNumberFormat(t).format(i)});else{var S=x.value;if(!o||!(S in o))throw new _e(S,a);var _=o[S];if(d(x))_&&"string"!=typeof _&&"number"!=typeof _||(_="string"==typeof _||"number"==typeof _?String(_):""),s.push({type:"string"==typeof _?be.literal:be.object,value:_});else if(h(x)){var C="string"==typeof x.style?r.date[x.style]:w(x.style)?x.style.parsedOptions:void 0;s.push({type:be.literal,value:n.getDateTimeFormat(t,C).format(_)})}else if(f(x)){C="string"==typeof x.style?r.time[x.style]:w(x.style)?x.style.parsedOptions:r.time.medium;s.push({type:be.literal,value:n.getDateTimeFormat(t,C).format(_)})}else if(p(x)){(C="string"==typeof x.style?r.number[x.style]:b(x.style)?x.style.parsedOptions:void 0)&&C.scale&&(_*=C.scale||1),s.push({type:be.literal,value:n.getNumberFormat(t,C).format(_)})}else{if(y(x)){var E=x.children,k=x.value,z=o[k];if(!Ce(z))throw new Se(k,"function",a);var P=z(Ee(E,t,n,r,o,i).map((function(e){return e.value})));Array.isArray(P)||(P=[P]),s.push.apply(s,P.map((function(e){return{type:"string"==typeof e?be.literal:be.object,value:e}})))}if(m(x)){if(!(A=x.options[_]||x.options.other))throw new xe(x.value,_,Object.keys(x.options),a);s.push.apply(s,Ee(A.value,t,n,r,o))}else if(g(x)){var A;if(!(A=x.options["=".concat(_)])){if(!Intl.PluralRules)throw new we('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',ge.MISSING_INTL_API,a);var D=n.getPluralRules(t,{type:x.pluralType}).select(_-(x.offset||0));A=x.options[D]||x.options.other}if(!A)throw new xe(x.value,_,Object.keys(x.options),a);s.push.apply(s,Ee(A.value,t,n,r,o,_-(x.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===be.literal&&t.type===be.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,a;return n[r]=(o=e[r],(a=t[r])?i(i(i({},o||{}),a||{}),Object.keys(o).reduce((function(e,t){return e[t]=i(i({},o[t]),a[t]||{}),e}),{})):o),n}),i({},e)):e}function ze(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"}(be||(be={}));var Pe=function(){function e(t,n,r,o){var i,s=this;if(void 0===n&&(n=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=s.formatToParts(e);if(1===t.length)return t[0].value;var n=t.reduce((function(e,t){return e.length&&t.type===be.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 Ee(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){var e;return{locale:(null===(e=s.resolvedLocale)||void 0===e?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.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:ce((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,a([void 0],t,!1)))}),{cache:ze(i.number),strategy:ye.variadic}),getDateTimeFormat:ce((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,a([void 0],t,!1)))}),{cache:ze(i.dateTime),strategy:ye.variadic}),getPluralRules:ce((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,a([void 0],t,!1)))}),{cache:ze(i.pluralRules),strategy:ye.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=le,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 Ae=Pe},60887:(e,t,n)=>{"use strict";n.d(t,{Dk:()=>ut,EY:()=>lt,MT:()=>I,YK:()=>_t,j4:()=>et,tz:()=>tt});var r=n(15215),o=n(96540),i=n(4146),a=n.n(i);["angle-degree","area-acre","area-hectare","concentr-percent","digital-bit","digital-byte","digital-gigabit","digital-gigabyte","digital-kilobit","digital-kilobyte","digital-megabit","digital-megabyte","digital-petabyte","digital-terabit","digital-terabyte","duration-day","duration-hour","duration-millisecond","duration-minute","duration-month","duration-second","duration-week","duration-year","length-centimeter","length-foot","length-inch","length-kilometer","length-meter","length-mile-scandinavian","length-mile","length-millimeter","length-yard","mass-gram","mass-kilogram","mass-ounce","mass-pound","mass-stone","temperature-celsius","temperature-fahrenheit","volume-fluid-ounce","volume-gallon","volume-liter","volume-milliliter"].map((function(e){return e.slice(e.indexOf("-")+1)}));function s(e,t,n){if(void 0===n&&(n=Error),!e)throw new n(t)}var l=/[\$\+<->\^`\|~\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\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-\u20BF\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-\u2FFB\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\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-\uFBC1\uFDFC\uFDFD\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|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDE8\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\uDEE0-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF73\uDF80-\uDFD8\uDFE0-\uDFEB]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDD78\uDD7A-\uDDCB\uDDCD-\uDE53\uDE60-\uDE6D\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6\uDF00-\uDF92\uDF94-\uDFCA]/;new RegExp("^"+l.source),new RegExp(l.source+"$");var c;!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="MISSING_LOCALE_DATA",t}(0,r.C6)(t,e)}(Error);!function(e){e.startRange="startRange",e.shared="shared",e.endRange="endRange"}(c||(c={}));var u=n(67178);function d(e,t){var n=t&&t.cache?t.cache:b,r=t&&t.serializer?t.serializer:g;return(t&&t.strategy?t.strategy:m)(e,{cache:n,serializer:r})}function p(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 h(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 f(e,t,n,r,o){return n.bind(t,e,r,o)}function m(e,t){return f(e,this,1===e.length?p:h,t.cache.create(),t.serializer)}var g=function(){return JSON.stringify(arguments)};function v(){this.cache=Object.create(null)}v.prototype.has=function(e){return e in this.cache},v.prototype.get=function(e){return this.cache[e]},v.prototype.set=function(e,t){this.cache[e]=t};var y,b={create:function(){return new v}},w={variadic:function(e,t){return f(e,this,h,t.cache.create(),t.serializer)},monadic:function(e,t){return f(e,this,p,t.cache.create(),t.serializer)}};!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"}(y||(y={}));var x=function(e){function t(n,r,o){var i=e.call(this,"[@formatjs/intl Error "+n+"] "+r+" \n"+(o?"\n"+o.message+"\n"+o.stack:""))||this;return i.code=n,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(i,t),i}return(0,r.C6)(t,e),t}(Error),S=function(e){function t(t,n){return e.call(this,y.UNSUPPORTED_FORMATTER,t,n)||this}return(0,r.C6)(t,e),t}(x),_=function(e){function t(t,n){return e.call(this,y.INVALID_CONFIG,t,n)||this}return(0,r.C6)(t,e),t}(x),C=function(e){function t(t,n){return e.call(this,y.MISSING_DATA,t,n)||this}return(0,r.C6)(t,e),t}(x),E=function(e){function t(t,n,r,o){var i=e.call(this,y.FORMAT_ERROR,t+" \nLocale: "+n+"\nMessageID: "+(null==r?void 0:r.id)+"\nDefault Message: "+(null==r?void 0:r.defaultMessage)+"\nDescription: "+(null==r?void 0:r.description)+" \n",o)||this;return i.descriptor=r,i}return(0,r.C6)(t,e),t}(x),k=function(e){function t(t,n){var r=e.call(this,y.MISSING_TRANSLATION,'Missing message: "'+t.id+'" for locale "'+n+'", using '+(t.defaultMessage?"default message":"id")+" as fallback.")||this;return r.descriptor=t,r}return(0,r.C6)(t,e),t}(x);function z(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 P,A,D,T={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},onError:function(e){0}};function I(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function M(e){return{create:function(){return{has:function(t){return t in e},get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function N(e,t,n,r){var o,i=e&&e[t];if(i&&(o=i[n]),o)return o;r(new S("No "+t+" format named: "+n))}!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 O=/[ \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 R(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 F=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var B,L=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,V=/^(@+)?(\+|#+)?$/g,K=/(\*)(0+)|(#+)(0+)|(0+)/g,$=/^(0+)$/;function H(e){var t={};return 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 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)),!$.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function W(e){var t=U(e);return t||{}}function G(e){for(var t={},n=0,o=e;n<o.length;n++){var i=o[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.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=i.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=(0,r.Cl)((0,r.Cl)((0,r.Cl)({},t),{notation:"scientific"}),i.options.reduce((function(e,t){return(0,r.Cl)((0,r.Cl)({},e),W(t))}),{}));continue;case"engineering":t=(0,r.Cl)((0,r.Cl)((0,r.Cl)({},t),{notation:"engineering"}),i.options.reduce((function(e,t){return(0,r.Cl)((0,r.Cl)({},e),W(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(i.options[0]);continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.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($.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(L.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.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),""})),i.options.length&&(t=(0,r.Cl)((0,r.Cl)({},t),H(i.options[0])))}else if(V.test(i.stem))t=(0,r.Cl)((0,r.Cl)({},t),H(i.stem));else{var a=U(i.stem);a&&(t=(0,r.Cl)((0,r.Cl)({},t),a));var s=q(i.stem);s&&(t=(0,r.Cl)((0,r.Cl)({},t),s))}}return t}var Y=new RegExp("^"+O.source+"*"),Z=new RegExp(O.source+"*$");function J(e,t){return{start:e,end:t}}var X=!!String.prototype.startsWith,Q=!!String.fromCodePoint,ee=!!Object.fromEntries,te=!!String.prototype.codePointAt,ne=!!String.prototype.trimStart,re=!!String.prototype.trimEnd,oe=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},ie=!0;try{ie="a"===(null===(B=he("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===B?void 0:B[0])}catch(e){ie=!1}var ae,se=X?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},le=Q?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},ce=ee?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},ue=te?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}},de=ne?function(e){return e.trimStart()}:function(e){return e.replace(Y,"")},pe=re?function(e){return e.trimEnd()}:function(e){return e.replace(Z,"")};function he(e,t){return new RegExp(e,t)}if(ie){var fe=he("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ae=function(e,t){var n;return fe.lastIndex=t,null!==(n=fe.exec(e)[1])&&void 0!==n?n:""}}else ae=function(e,t){for(var n=[];;){var r=ue(e,t);if(void 0===r||ge(r)||ve(r))break;n.push(r),t+=r>=65536?2:1}return le.apply(void 0,n)};!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.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}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,J(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&me(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:J(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:"<"+r+"/>",location:J(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()||!me(this.char()))return this.error(P.INVALID_TAG,J(a,this.clonePosition()));var s=this.clonePosition();return r!==this.parseTagName()?this.error(P.UNMATCHED_CLOSING_TAG,J(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:A.tag,value:r,children:i,location:J(n,this.clonePosition())},err:null}:this.error(P.INVALID_TAG,J(a,this.clonePosition())))}return this.error(P.UNCLOSED_TAG,J(n,this.clonePosition()))}return this.error(P.INVALID_TAG,J(n,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||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);)this.bump();return this.message.slice(t,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=J(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&&(me(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 le.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(),le(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,J(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(P.EMPTY_ARGUMENT,J(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(P.MALFORMED_ARGUMENT,J(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(P.EXPECT_ARGUMENT_CLOSING_BRACE,J(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:A.argument,value:r,location:J(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(P.EXPECT_ARGUMENT_CLOSING_BRACE,J(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(P.MALFORMED_ARGUMENT,J(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=ae(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:J(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,o){var i,a=this.clonePosition(),s=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(s){case"":return this.error(P.EXPECT_ARGUMENT_TYPE,J(a,l));case"number":case"date":case"time":this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((v=this.parseSimpleArgStyleIfPossible()).err)return v;if(0===(h=pe(v.val)).length)return this.error(P.EXPECT_ARGUMENT_STYLE,J(this.clonePosition(),this.clonePosition()));c={style:h,styleLocation:J(u,this.clonePosition())}}if((y=this.tryParseArgumentClose(o)).err)return y;var d=J(o,this.clonePosition());if(c&&se(null==c?void 0:c.style,"::",0)){var p=de(c.style.slice(2));if("number"===s)return(v=this.parseNumberSkeletonFromString(p,c.styleLocation)).err?v:{val:{type:A.number,value:n,location:d,style:v.val},err:null};if(0===p.length)return this.error(P.EXPECT_DATE_TIME_SKELETON,d);var h={type:D.dateTime,pattern:p,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?R(p):{}};return{val:{type:"date"===s?A.date:A.time,value:n,location:d,style:h},err:null}}return{val:{type:"number"===s?A.number:"date"===s?A.date:A.time,value:n,location:d,style:null!==(i=null==c?void 0:c.style)&&void 0!==i?i: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,J(f,(0,r.Cl)({},f)));this.bumpSpace();var m=this.parseIdentifierIfPossible(),g=0;if("select"!==s&&"offset"===m.value){if(!this.bumpIf(":"))return this.error(P.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,J(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,s,t,m);if(b.err)return b;if((y=this.tryParseArgumentClose(o)).err)return y;var w=J(o,this.clonePosition());return"select"===s?{val:{type:A.select,value:n,options:ce(b.val),location:w},err:null}:{val:{type:A.plural,value:n,options:ce(b.val),offset:g,pluralType:"plural"===s?"cardinal":"ordinal",location:w},err:null};default:return this.error(P.INVALID_ARGUMENT_TYPE,J(a,l))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(P.EXPECT_ARGUMENT_CLOSING_BRACE,J(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,J(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(F).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?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(P.EXPECT_PLURAL_ARGUMENT_SELECTOR,P.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;c=J(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,J(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:J(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,J(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(P.MISSING_OTHER_CLAUSE,J(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=J(r,this.clonePosition());return o?oe(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=ue(this.message,e);if(void 0===t)throw Error("Offset "+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(se(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 "+e+" must be greater than or equal to the current offset "+this.offset());for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset "+e+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&ge(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}}();function me(e){return e>=97&&e<=122||e>=65&&e<=90}function ge(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function ve(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 ye(e,t){return Object.keys(e).reduce((function(n,o){return n[o]=(0,r.Cl)({timeZone:t},e[o]),n}),{})}function be(e,t){return Object.keys((0,r.Cl)((0,r.Cl)({},e),t)).reduce((function(n,o){return n[o]=(0,r.Cl)((0,r.Cl)({},e[o]||{}),t[o]||{}),n}),{})}function we(e,t){if(!t)return e;var n=u.SV.formats;return(0,r.Cl)((0,r.Cl)((0,r.Cl)({},n),e),{date:be(ye(n.date,t),ye(e.date||{},t)),time:be(ye(n.time,t),ye(e.time||{},t))})}function xe(e,t,n,o,i){var a=e.locale,l=e.formats,c=e.messages,u=e.defaultLocale,d=e.defaultFormats,p=e.onError,h=e.timeZone,f=e.defaultRichTextElements;void 0===n&&(n={id:""});var m=n.id,g=n.defaultMessage;s(!!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.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var v=String(m),y=c&&Object.prototype.hasOwnProperty.call(c,v)&&c[v];if(Array.isArray(y)&&1===y.length&&y[0].type===A.literal)return y[0].value;if(!o&&y&&"string"==typeof y&&!f)return y.replace(/'\{(.*?)\}'/gi,"{$1}");if(o=(0,r.Cl)((0,r.Cl)({},f),o||{}),l=we(l,h),d=we(d,h),!y){if((!g||a&&a.toLowerCase()!==u.toLowerCase())&&p(new k(n,a)),g)try{return t.getMessageFormat(g,u,d,i).format(o)}catch(e){return p(new E('Error formatting default message for: "'+v+'", rendering default message verbatim',a,n,e)),"string"==typeof g?g:v}return v}try{return t.getMessageFormat(y,a,l,(0,r.Cl)({formatters:t},i||{})).format(o)}catch(e){p(new E('Error formatting message: "'+v+'", using '+(g?"default message":"id")+" as fallback.",a,n,e))}if(g)try{return t.getMessageFormat(g,u,d,i).format(o)}catch(e){p(new E('Error formatting the default message for: "'+v+'", rendering message verbatim',a,n,e))}return"string"==typeof y?y:"string"==typeof g?g:v}var Se=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem"];function _e(e,t,n,o){var i=e.locale,a=e.formats,s=e.onError,l=e.timeZone;void 0===o&&(o={});var c=o.format,u=(0,r.Cl)((0,r.Cl)({},l&&{timeZone:l}),c&&N(a,t,c,s)),d=z(o,Se,u);return"time"!==t||d.hour||d.minute||d.second||d.timeStyle||d.dateStyle||(d=(0,r.Cl)((0,r.Cl)({},d),{hour:"numeric",minute:"numeric"})),n(i,d)}function Ce(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 _e(e,"date",t,a).format(s)}catch(t){e.onError(new x(y.FORMAT_ERROR,"Error formatting date.",t))}return String(s)}function Ee(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 _e(e,"time",t,a).format(s)}catch(t){e.onError(new x(y.FORMAT_ERROR,"Error formatting time.",t))}return String(s)}function ke(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=e.timeZone,c=e.locale,u=e.onError,d=z(s,Se,l?{timeZone:l}:{});try{return t(c,d).formatRange(o,i)}catch(e){u(new x(y.FORMAT_ERROR,"Error formatting date time range.",e))}return String(o)}function ze(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 _e(e,"date",t,a).formatToParts(s)}catch(t){e.onError(new x(y.FORMAT_ERROR,"Error formatting date.",t))}return[]}function Pe(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 _e(e,"time",t,a).formatToParts(s)}catch(t){e.onError(new x(y.FORMAT_ERROR,"Error formatting time.",t))}return[]}var Ae=["localeMatcher","style","type","fallback"];function De(e,t,n,r){var o=e.locale,i=e.onError;Intl.DisplayNames||i(new u.IF('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',u.O4.MISSING_INTL_API));var a=z(r,Ae);try{return t(o,a).of(n)}catch(e){i(new x(y.FORMAT_ERROR,"Error formatting display name.",e))}}var Te=["localeMatcher","type","style"],Ie=Date.now();function Me(e,t,n,r){void 0===r&&(r={});var o=Ne(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]:o}function Ne(e,t,n,o){var i=e.locale,a=e.onError;void 0===o&&(o={}),Intl.ListFormat||a(new u.IF('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',u.O4.MISSING_INTL_API));var s=z(o,Te);try{var l={},c=n.map((function(e,t){if("object"==typeof e){var n=function(e){return Ie+"_"+e+"_"+Ie}(t);return l[n]=e,n}return String(e)}));return t(i,s).formatToParts(c).map((function(e){return"literal"===e.type?e:(0,r.Cl)((0,r.Cl)({},e),{value:l[e.value]||e.value})}))}catch(e){a(new x(y.FORMAT_ERROR,"Error formatting list.",e))}return n}var Oe=["localeMatcher","type"];function je(e,t,n,r){var o=e.locale,i=e.onError;void 0===r&&(r={}),Intl.PluralRules||i(new u.IF('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',u.O4.MISSING_INTL_API));var a=z(r,Oe);try{return t(o,a).select(n)}catch(e){i(new E("Error formatting plural.",e))}return"other"}var Re=["numeric","style"];function Fe(e,t,n,r,o){void 0===o&&(o={}),r||(r="second"),Intl.RelativeTimeFormat||e.onError(new u.IF('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',u.O4.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&&N(o,"relative",a,i)||{};return t(r,z(n,Re,s))}(e,t,o).format(n,r)}catch(t){e.onError(new E("Error formatting relative time.",t))}return String(n)}var Be=["localeMatcher","style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem"];function Le(e,t,n){var r=e.locale,o=e.formats,i=e.onError;void 0===n&&(n={});var a=n.format,s=a&&N(o,"number",a,i)||{};return t(r,z(n,Be,s))}function Ve(e,t,n,r){void 0===r&&(r={});try{return Le(e,t,r).format(n)}catch(t){e.onError(new x(y.FORMAT_ERROR,"Error formatting number.",t))}return String(n)}function Ke(e,t,n,r){void 0===r&&(r={});try{return Le(e,t,r).formatToParts(n)}catch(t){e.onError(new x(y.FORMAT_ERROR,"Error formatting number.",t))}return[]}function $e(e){var t;e.defaultRichTextElements&&"string"==typeof((t=e.messages||{})?t[Object.keys(t)[0]]:void 0)&&console.warn('[@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.io/docs/getting-started/message-distribution')}function He(e,t){var n=function(e){void 0===e&&(e={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}});var t=Intl.RelativeTimeFormat,n=Intl.ListFormat,o=Intl.DisplayNames,i=d((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,(0,r.fX)([void 0],t)))}),{cache:M(e.dateTime),strategy:w.variadic}),a=d((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,(0,r.fX)([void 0],t)))}),{cache:M(e.number),strategy:w.variadic}),s=d((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,(0,r.fX)([void 0],t)))}),{cache:M(e.pluralRules),strategy:w.variadic});return{getDateTimeFormat:i,getNumberFormat:a,getMessageFormat:d((function(e,t,n,o){return new u.SV(e,t,n,(0,r.Cl)({formatters:{getNumberFormat:a,getDateTimeFormat:i,getPluralRules:s}},o||{}))}),{cache:M(e.message),strategy:w.variadic}),getRelativeTimeFormat:d((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new(t.bind.apply(t,(0,r.fX)([void 0],e)))}),{cache:M(e.relativeTime),strategy:w.variadic}),getPluralRules:s,getListFormat:d((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(n.bind.apply(n,(0,r.fX)([void 0],e)))}),{cache:M(e.list),strategy:w.variadic}),getDisplayNames:d((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(o.bind.apply(o,(0,r.fX)([void 0],e)))}),{cache:M(e.displayNames),strategy:w.variadic})}}(t),o=(0,r.Cl)((0,r.Cl)({},T),e),i=o.locale,a=o.defaultLocale,s=o.onError;return i?!Intl.NumberFormat.supportedLocalesOf(i).length&&s?s(new C('Missing locale data for locale: "'+i+'" in Intl.NumberFormat. Using default locale: "'+a+'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details')):!Intl.DateTimeFormat.supportedLocalesOf(i).length&&s&&s(new C('Missing locale data for locale: "'+i+'" in Intl.DateTimeFormat. Using default locale: "'+a+'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details')):(s&&s(new _('"locale" was not configured, using "'+a+'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details')),o.locale=o.defaultLocale||"en"),$e(o),(0,r.Cl)((0,r.Cl)({},o),{formatters:n,formatNumber:Ve.bind(null,o,n.getNumberFormat),formatNumberToParts:Ke.bind(null,o,n.getNumberFormat),formatRelativeTime:Fe.bind(null,o,n.getRelativeTimeFormat),formatDate:Ce.bind(null,o,n.getDateTimeFormat),formatDateToParts:ze.bind(null,o,n.getDateTimeFormat),formatTime:Ee.bind(null,o,n.getDateTimeFormat),formatDateTimeRange:ke.bind(null,o,n.getDateTimeFormat),formatTimeToParts:Pe.bind(null,o,n.getDateTimeFormat),formatPlural:je.bind(null,o,n.getPluralRules),formatMessage:xe.bind(null,o,n),formatList:Me.bind(null,o,n.getListFormat),formatListToParts:Ne.bind(null,o,n.getListFormat),formatDisplayName:De.bind(null,o,n.getDisplayNames)})}function Ue(e){s(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var qe=(0,r.Cl)((0,r.Cl)({},T),{textComponent:o.Fragment});function We(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 Ge,Ye,Ze=o.createContext(null),Je=Ze.Consumer,Xe=Ze.Provider,Qe=Ze;function et(e,t){var n=t||{},i=n.intlPropName,s=void 0===i?"intl":i,l=n.forwardRef,c=void 0!==l&&l,u=n.enforceContext,d=void 0===u||u,p=function(t){return o.createElement(Je,null,(function(n){var i;d&&Ue(n);var a=((i={})[s]=n,i);return o.createElement(e,(0,r.Cl)({},t,a,{ref:c?t.forwardedRef:null}))}))};return p.displayName="injectIntl("+function(e){return e.displayName||e.name||"Component"}(e)+")",p.WrappedComponent=e,c?a()(o.forwardRef((function(e,t){return o.createElement(p,(0,r.Cl)({},e,{forwardedRef:t}))})),e):a()(p,e)}function tt(){var e=o.useContext(Qe);return Ue(e),e}!function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"}(Ge||(Ge={})),function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"}(Ye||(Ye={}));var nt=function(e){var t=tt(),n=e.value,o=e.children,i=(0,r.Tt)(e,["value","children"]);return o(t.formatNumberToParts(n,i))};nt.displayName="FormattedNumberParts";function rt(e){var t=function(t){var n=tt(),o=t.value,i=t.children,a=(0,r.Tt)(t,["value","children"]),s="string"==typeof o?new Date(o||0):o;return i("formatDate"===e?n.formatDateToParts(s,a):n.formatTimeToParts(s,a))};return t.displayName=Ye[e],t}function ot(e){var t=function(t){var n=tt(),i=t.value,a=t.children,s=(0,r.Tt)(t,["value","children"]),l=n[e](i,s);if("function"==typeof a)return a(l);var c=n.textComponent||o.Fragment;return o.createElement(c,null,l)};return t.displayName=Ge[e],t}function it(e){return{locale:e.locale,timeZone:e.timeZone,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}function at(e){return e?Object.keys(e).reduce((function(t,n){var r,i=e[n];return t[n]=(0,u.RK)(i)?(r=i,function(e){return r(o.Children.toArray(e))}):i,t}),{}):e}nt.displayName="FormattedNumberParts";var st=function(e,t,n,i){for(var a=[],s=4;s<arguments.length;s++)a[s-4]=arguments[s];var l=at(i),c=xe.apply(void 0,(0,r.fX)([e,t,n,l],a));return Array.isArray(c)?o.Children.toArray(c):c},lt=function(e,t){var n=e.defaultRichTextElements,o=(0,r.Tt)(e,["defaultRichTextElements"]),i=at(n),a=He((0,r.Cl)((0,r.Cl)((0,r.Cl)({},qe),o),{defaultRichTextElements:i}),t);return(0,r.Cl)((0,r.Cl)({},a),{formatMessage:st.bind(null,{locale:a.locale,timeZone:a.timeZone,formats:a.formats,defaultLocale:a.defaultLocale,defaultFormats:a.defaultFormats,messages:a.messages,onError:a.onError,defaultRichTextElements:i},a.formatters)})},ct=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:lt(it(t.props),t.cache),prevConfig:it(t.props)},t}return(0,r.C6)(t,e),t.getDerivedStateFromProps=function(e,t){var n=t.prevConfig,r=t.cache,o=it(e);return We(n,o)?null:{intl:lt(o,r),prevConfig:o}},t.prototype.render=function(){return Ue(this.state.intl),o.createElement(Xe,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=qe,t}(o.PureComponent);const ut=ct;var dt=3600;function pt(e){var t=Math.abs(e);return t<60?"second":t<dt?"minute":t<86400?"hour":"day"}function ht(e){switch(e){case"second":return 1;case"minute":return 60;case"hour":return dt;default:return 86400}}var ft=["second","minute","hour"];function mt(e){return void 0===e&&(e="second"),ft.includes(e)}var gt=function(e){var t=tt(),n=t.formatRelativeTime,i=t.textComponent,a=e.children,s=n(e.value||0,e.unit,(0,r.Tt)(e,["children","value","unit"]));return"function"==typeof a?a(s):i?o.createElement(i,null,s):o.createElement(o.Fragment,null,s)},vt=function(e){var t=e.value,n=e.unit,i=e.updateIntervalInSeconds,a=(0,r.Tt)(e,["value","unit","updateIntervalInSeconds"]);s(!i||!(!i||!mt(n)),"Cannot schedule update with unit longer than hour");var l,c=o.useState(),u=c[0],d=c[1],p=o.useState(0),h=p[0],f=p[1],m=o.useState(0),g=m[0],v=m[1];n===u&&t===h||(f(t||0),d(n),v(mt(n)?function(e,t){if(!e)return 0;switch(t){case"second":return e;case"minute":return 60*e;default:return e*dt}}(t,n):0)),o.useEffect((function(){function e(){clearTimeout(l)}if(e(),!i||!mt(n))return e;var t=g-i,r=pt(t);if("day"===r)return e;var o=ht(r),a=t-t%o,s=a>=g?a-o:a,c=Math.abs(s-g);return g!==s&&(l=setTimeout((function(){return v(s)}),1e3*c)),e}),[g,i,n]);var y=t||0,b=n;if(mt(n)&&"number"==typeof g&&i){var w=ht(b=pt(g));y=Math.round(g/w)}return o.createElement(gt,(0,r.Cl)({value:y,unit:b},a))};vt.displayName="FormattedRelativeTime",vt.defaultProps={value:0,unit:"second"};var yt=function(e){var t=tt(),n=t.formatPlural,r=t.textComponent,i=e.value,a=e.other,s=e.children,l=e[n(i,e)]||a;return"function"==typeof s?s(l):r?o.createElement(r,null,l):l};yt.defaultProps={type:"cardinal"},yt.displayName="FormattedPlural";function bt(e,t){var n=e.values,o=(0,r.Tt)(e,["values"]),i=t.values,a=(0,r.Tt)(t,["values"]);return We(i,n)&&We(o,a)}function wt(e){var t=tt(),n=t.formatMessage,r=t.textComponent,i=void 0===r?o.Fragment:r,a=e.id,s=e.description,l=e.defaultMessage,c=e.values,u=e.children,d=e.tagName,p=void 0===d?i:d,h=n({id:a,description:s,defaultMessage:l},c,{ignoreTag:e.ignoreTag});return Array.isArray(h)||(h=[h]),"function"==typeof u?u(h):p?o.createElement(p,null,o.Children.toArray(h)):o.createElement(o.Fragment,null,h)}wt.displayName="FormattedMessage";var xt=o.memo(wt,bt);xt.displayName="MemoizedFormattedMessage";var St=function(e){var t=tt(),n=e.from,i=e.to,a=e.children,s=(0,r.Tt)(e,["from","to","children"]),l=t.formatDateTimeRange(n,i,s);if("function"==typeof a)return a(l);var c=t.textComponent||o.Fragment;return o.createElement(c,null,l)};St.displayName="FormattedDateTimeRange";function _t(e){return e}ot("formatDate"),ot("formatTime"),ot("formatNumber"),ot("formatList"),ot("formatDisplayName"),rt("formatDate"),rt("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(49014);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)},49014:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Availability:()=>Hr,ContentEditor:()=>mo,ContentEditorTypes:()=>i,ImageFormat:()=>_r,IsLinearized:()=>$r,LinearizedInstance:()=>co,LinearizedInstanceEvents:()=>qr,LinearizedInstanceState:()=>Gr,Priority:()=>Sr,Renderer:()=>r,Text:()=>o,addWASMCtx:()=>a.L9,attachLinearizedInstance:()=>a.oV,createContentEditor:()=>fo,createServerContext:()=>a.JQ,createWASMContext:()=>a.mC,ping:()=>l,removeLinearizedInstance:()=>a.nl,satifiesServerVersion:()=>a.Eh,withEngine:()=>a.f,withServerEngine:()=>a.EX,withWASMEngine:()=>a.Ti});var r={};n.r(r),n.d(r,{LinearizedRenderingRequest:()=>mr,renderTile:()=>vr});var o={};n.r(o),n.d(o,{getContentTreeForPage:()=>xr,getTextForPage:()=>wr});var i={};n.r(i);var a=n(55543),s=n(2752);const l=async e=>(0,a.f)(e,(async e=>{await e.engine.executeCommand("ping",Sr.Normal,{})}),(async e=>{throw new s.Sx("not implemented")}));var c=n(67136),u=n(4819);let d=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 p=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?d.iOS:e.indexOf("Win")>-1?d.Windows:e.indexOf("iPhone")>-1||e.indexOf("iPad")>-1||"iPad"===t?d.iOS:e.indexOf("Mac")>-1?d.macOS:e.indexOf("Android")>-1?d.Android:e.indexOf("Linux")>-1?d.Linux:null}();let h=function(e){return e[e.Trident=0]="Trident",e[e.Edge=1]="Edge",e[e.Blink=2]="Blink",e[e.Webkit=3]="Webkit",e[e.Gecko=4]="Gecko",e}({});const f=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:globalThis.navigator?.userAgent??"";return e.indexOf("Trident/")>-1?h.Trident:e.indexOf("Edge/")>-1?h.Edge:e.indexOf("Chrome/")>-1?h.Blink:e.indexOf("AppleWebKit/")>-1?h.Webkit:e.indexOf("Gecko/")>-1?h.Gecko:null}(),m=16383;function g(e,t){let{width:n,height:r}=t;return e===_r.WebP&&(n>m||r>m)||e===_r.Bitmap&&p===d.iOS&&n*r>16777216?_r.PNG:e}const v=e=>{if(e){if(e.includes("image/webp"))return _r.WebP;if(e.includes("image/png"))return _r.PNG;if(e.includes("image/jpeg"))return _r.JPEG}throw new s.Sx("Couldn't determine image format")};class y{constructor(){(0,c.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 b=n(79308);let w=function(e){return e[e.Token=0]="Token",e[e.QueryToken=1]="QueryToken",e[e.ImageToken=2]="ImageToken",e}({});class x{constructor(e,t){(0,c.A)(this,"abortController",new AbortController),this.url=e,this.requestInit=t,this.identifier=(0,b.v4)()}async request(){return fetch(this.url,{...this.requestInit,signal:this.abortController.signal})}cancel(){this.abortController.abort()}}const S=(e,t,n,r,o,i)=>{let a={...i?.headers,...t.info.headers};switch(o){case w.Token:a={...a,"X-PSPDFKit-Token":t.info.token};break;case w.ImageToken:a={...a,"X-PSPDFKit-Image-Token":t.info.imageToken}}let l="";if(o==w.QueryToken){const e=new URLSearchParams;e.append("token",t.info.token),l="?"+e.toString()}return(0,s.E4)(e.enqueue(new x(`${t.info.url}i/d/${t.info.documentId}/h/${t.info.layerHandle}/${n}${l}`,{...i,headers:a}),r))};function _(e,t){if(!e)throw new Error(t)}function C(e){if("number"!=typeof e)throw new Error("invalid int 32: "+typeof e);if(!Number.isInteger(e)||e>2147483647||e<-2147483648)throw new Error("invalid int 32: "+e)}function E(e){if("number"!=typeof e)throw new Error("invalid uint 32: "+typeof e);if(!Number.isInteger(e)||e>4294967295||e<0)throw new Error("invalid uint 32: "+e)}function k(e){if("number"!=typeof e)throw new Error("invalid float 32: "+typeof e);if(Number.isFinite(e)&&(e>34028234663852886e22||e<-34028234663852886e22))throw new Error("invalid float 32: "+e)}const z=Symbol("@bufbuild/protobuf/enum-type");function P(e){const t=e[z];return _(t,"missing enum type on enum object"),t}function A(e,t,n,r){e[z]=D(t,n.map((t=>({no:t.no,name:t.name,localName:e[t.no]}))),r)}function D(e,t,n){const r=Object.create(null),o=Object.create(null),i=[];for(const e of t){const t=I(e);i.push(t),r[e.name]=t,o[e.no]=t}return{typeName:e,values:i,findName:e=>r[e],findNumber:e=>o[e]}}function T(e,t,n){const r={};for(const e of t){const t=I(e);r[t.localName]=t.no,r[t.no]=t.localName}return A(r,e,t,n),r}function I(e){return"localName"in e?e:Object.assign(Object.assign({},e),{localName:e.name})}class M{equals(e){return this.getType().runtime.util.equals(this.getType(),this,e)}clone(){return this.getType().runtime.util.clone(this)}fromBinary(e,t){const n=this.getType().runtime.bin,r=n.makeReadOptions(t);return n.readMessage(this,r.readerFactory(e),e.byteLength,r),this}fromJson(e,t){const n=this.getType(),r=n.runtime.json,o=r.makeReadOptions(t);return r.readMessage(n,e,o,this),this}fromJsonString(e,t){let n;try{n=JSON.parse(e)}catch(e){throw new Error(`cannot decode ${this.getType().typeName} from JSON: ${e instanceof Error?e.message:String(e)}`)}return this.fromJson(n,t)}toBinary(e){const t=this.getType().runtime.bin,n=t.makeWriteOptions(e),r=n.writerFactory();return t.writeMessage(this,r,n),r.finish()}toJson(e){const t=this.getType().runtime.json,n=t.makeWriteOptions(e);return t.writeMessage(this,n)}toJsonString(e){var t;const n=this.toJson(e);return JSON.stringify(n,null,null!==(t=null==e?void 0:e.prettySpaces)&&void 0!==t?t:0)}toJSON(){return this.toJson({emitDefaultValues:!0})}getType(){return Object.getPrototypeOf(this).constructor}}function N(){let e=0,t=0;for(let n=0;n<28;n+=7){let r=this.buf[this.pos++];if(e|=(127&r)<<n,0==(128&r))return this.assertBounds(),[e,t]}let n=this.buf[this.pos++];if(e|=(15&n)<<28,t=(112&n)>>4,0==(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,0==(128&r))return this.assertBounds(),[e,t]}throw new Error("invalid varint")}function O(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==0);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)}}const j=4294967296;function R(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>=j&&(o+=r/j|0,r%=j)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),t?L(r,o):B(r,o)}function F(e,t){if(({lo:e,hi:t}=function(e,t){return{lo:e>>>0,hi:t>>>0}}(e,t)),t<=2097151)return String(j*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()+V(i)+V(o)}function B(e,t){return{lo:0|e,hi:0|t}}function L(e,t){return t=~t,e?e=1+~e:t+=1,B(e,t)}const V=e=>{const t=String(e);return"0000000".slice(t.length)+t};function K(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 $(){let e=this.buf[this.pos++],t=127&e;if(0==(128&e))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(127&e)<<7,0==(128&e))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(127&e)<<14,0==(128&e))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(127&e)<<21,0==(128&e))return this.assertBounds(),t;e=this.buf[this.pos++],t|=(15&e)<<28;for(let t=5;0!=(128&e)&&t<10;t++)e=this.buf[this.pos++];if(0!=(128&e))throw new Error("invalid varint");return this.assertBounds(),t>>>0}const H=function(){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(`int64 invalid: ${e}`);return r},uParse(e){const t="bigint"==typeof e?e:BigInt(e);if(t>o||t<r)throw new Error(`uint64 invalid: ${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))}}const t=e=>_(/^-?[0-9]+$/.test(e),`int64 invalid: ${e}`),n=e=>_(/^[0-9]+$/.test(e),`uint64 invalid: ${e}`);return{zero:"0",supported:!1,parse:e=>("string"!=typeof e&&(e=e.toString()),t(e),e),uParse:e=>("string"!=typeof e&&(e=e.toString()),n(e),e),enc:e=>("string"!=typeof e&&(e=e.toString()),t(e),R(e)),uEnc:e=>("string"!=typeof e&&(e=e.toString()),n(e),R(e)),dec:(e,t)=>function(e,t){let n=B(e,t);const r=2147483648&n.hi;r&&(n=L(n.lo,n.hi));const o=F(n.lo,n.hi);return r?"-"+o:o}(e,t),uDec:(e,t)=>F(e,t)}}();var U,q,W;function G(e,t,n){if(t===n)return!0;if(e==U.BYTES){if(!(t instanceof Uint8Array&&n instanceof Uint8Array))return!1;if(t.length!==n.length)return!1;for(let e=0;e<t.length;e++)if(t[e]!==n[e])return!1;return!0}switch(e){case U.UINT64:case U.FIXED64:case U.INT64:case U.SFIXED64:case U.SINT64:return t==n}return!1}function Y(e,t){switch(e){case U.BOOL:return!1;case U.UINT64:case U.FIXED64:case U.INT64:case U.SFIXED64:case U.SINT64:return 0==t?H.zero:"0";case U.DOUBLE:case U.FLOAT:return 0;case U.BYTES:return new Uint8Array(0);case U.STRING:return"";default:return 0}}function Z(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}}!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={})),function(e){e[e.BIGINT=0]="BIGINT",e[e.STRING=1]="STRING"}(q||(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"}(W||(W={}));class J{constructor(e){this.stack=[],this.textEncoder=null!=e?e:new TextEncoder,this.chunks=[],this.buf=[]}finish(){this.chunks.push(new Uint8Array(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(E(e);e>127;)this.buf.push(127&e|128),e>>>=7;return this.buf.push(e),this}int32(e){return C(e),K(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.textEncoder.encode(e);return this.uint32(t.byteLength),this.raw(t)}float(e){k(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){E(e);let t=new Uint8Array(4);return new DataView(t.buffer).setUint32(0,e,!0),this.raw(t)}sfixed32(e){C(e);let t=new Uint8Array(4);return new DataView(t.buffer).setInt32(0,e,!0),this.raw(t)}sint32(e){return C(e),K(e=(e<<1^e>>31)>>>0,this.buf),this}sfixed64(e){let t=new Uint8Array(8),n=new DataView(t.buffer),r=H.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=H.uEnc(e);return n.setInt32(0,r.lo,!0),n.setInt32(4,r.hi,!0),this.raw(t)}int64(e){let t=H.enc(e);return O(t.lo,t.hi,this.buf),this}sint64(e){let t=H.enc(e),n=t.hi>>31;return O(t.lo<<1^n,(t.hi<<1|t.lo>>>31)^n,this.buf),this}uint64(e){let t=H.uEnc(e);return O(t.lo,t.hi,this.buf),this}}class X{constructor(e,t){this.varint64=N,this.uint32=$,this.buf=e,this.len=e.length,this.pos=0,this.view=new DataView(e.buffer,e.byteOffset,e.byteLength),this.textDecoder=null!=t?t:new TextDecoder}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 W.Varint:for(;128&this.buf[this.pos++];);break;case W.Bit64:this.pos+=4;case W.Bit32:this.pos+=4;break;case W.LengthDelimited:let n=this.uint32();this.pos+=n;break;case W.StartGroup:for(;;){const[e,n]=this.tag();if(n===W.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 H.dec(...this.varint64())}uint64(){return H.uDec(...this.varint64())}sint64(){let[e,t]=this.varint64(),n=-(1&e);return e=(e>>>1|(1&t)<<31)^n,t=t>>>1^n,H.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 H.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return H.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.textDecoder.decode(this.bytes())}}function Q(e){const t=e.field.localName,n=Object.create(null);return n[t]=function(e){const t=e.field;if(t.repeated)return[];if(void 0!==t.default)return t.default;switch(t.kind){case"enum":return t.T.values[0].no;case"scalar":return Y(t.T,t.L);case"message":const e=t.T,n=new e;return e.fieldWrapper?e.fieldWrapper.unwrapField(n):n;case"map":throw"map fields are not allowed to be extensions"}}(e),[n,()=>n[t]]}let ee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),te=[];for(let e=0;e<ee.length;e++)te[ee[e].charCodeAt(0)]=e;te["-".charCodeAt(0)]=ee.indexOf("+"),te["_".charCodeAt(0)]=ee.indexOf("/");const ne={dec(e){let t=3*e.length/4;"="==e[e.length-2]?t-=2:"="==e[e.length-1]&&(t-=1);let n,r=new Uint8Array(t),o=0,i=0,a=0;for(let t=0;t<e.length;t++){if(n=te[e.charCodeAt(t)],void 0===n)switch(e[t]){case"=":i=0;case"\n":case"\r":case"\t":case" ":continue;default:throw Error("invalid base64 string.")}switch(i){case 0:a=n,i=1;break;case 1:r[o++]=a<<2|(48&n)>>4,a=n,i=2;break;case 2:r[o++]=(15&a)<<4|(60&n)>>2,a=n,i=3;break;case 3:r[o++]=(3&a)<<6|n,i=0}}if(1==i)throw Error("invalid base64 string.");return r.subarray(0,o)},enc(e){let t,n="",r=0,o=0;for(let i=0;i<e.length;i++)switch(t=e[i],r){case 0:n+=ee[t>>2],o=(3&t)<<4,r=1;break;case 1:n+=ee[o|t>>4],o=(15&t)<<2,r=2;break;case 2:n+=ee[o|t>>6],n+=ee[63&t],r=0}return r&&(n+=ee[o],n+="=",1==r&&(n+="=")),n}};function re(e,t,n){ae(t,e);const r=t.runtime.bin.makeReadOptions(n),o=function(e,t){if(!t.repeated&&("enum"==t.kind||"scalar"==t.kind)){for(let n=e.length-1;n>=0;--n)if(e[n].no==t.no)return[e[n]];return[]}return e.filter((e=>e.no===t.no))}(e.getType().runtime.bin.listUnknownFields(e),t.field),[i,a]=Q(t);for(const e of o)t.runtime.bin.readField(i,r.readerFactory(e.data),t.field,e.wireType,r);return a()}function oe(e,t,n,r){ae(t,e);const o=t.runtime.bin.makeReadOptions(r),i=t.runtime.bin.makeWriteOptions(r);if(ie(e,t)){const n=e.getType().runtime.bin.listUnknownFields(e).filter((e=>e.no!=t.field.no));e.getType().runtime.bin.discardUnknownFields(e);for(const t of n)e.getType().runtime.bin.onUnknownField(e,t.no,t.wireType,t.data)}const a=i.writerFactory();let s=t.field;s.opt||s.repeated||"enum"!=s.kind&&"scalar"!=s.kind||(s=Object.assign(Object.assign({},t.field),{opt:!0})),t.runtime.bin.writeField(s,n,a,i);const l=o.readerFactory(a.finish());for(;l.pos<l.len;){const[t,n]=l.tag(),r=l.skip(n,t);e.getType().runtime.bin.onUnknownField(e,t,n,r)}}function ie(e,t){const n=e.getType();return t.extendee.typeName===n.typeName&&!!n.runtime.bin.listUnknownFields(e).find((e=>e.no==t.field.no))}function ae(e,t){_(e.extendee.typeName==t.getType().typeName,`extension ${e.typeName} can only be applied to message ${e.extendee.typeName}`)}function se(e,t){const n=e.localName;if(e.repeated)return t[n].length>0;if(e.oneof)return t[e.oneof.localName].case===n;switch(e.kind){case"enum":case"scalar":return e.opt||e.req?void 0!==t[n]:"enum"==e.kind?t[n]!==e.T.values[0].no:!Z(e.T,t[n]);case"message":return void 0!==t[n];case"map":return Object.keys(t[n]).length>0}}function le(e,t){const n=e.localName,r=!e.opt&&!e.req;if(e.repeated)t[n]=[];else if(e.oneof)t[e.oneof.localName]={case:void 0};else switch(e.kind){case"map":t[n]={};break;case"enum":t[n]=r?e.T.values[0].no:void 0;break;case"scalar":t[n]=r?Y(e.T,e.L):void 0;break;case"message":t[n]=void 0}}function ce(e,t){if(null===e||"object"!=typeof e)return!1;if(!Object.getOwnPropertyNames(M.prototype).every((t=>t in e&&"function"==typeof e[t])))return!1;const n=e.getType();return null!==n&&"function"==typeof n&&"typeName"in n&&"string"==typeof n.typeName&&(void 0===t||n.typeName==t.typeName)}function ue(e,t){return ce(t)||!e.fieldWrapper?t:e.fieldWrapper.wrapField(t)}U.DOUBLE,U.FLOAT,U.INT64,U.UINT64,U.INT32,U.UINT32,U.BOOL,U.STRING,U.BYTES;const de={ignoreUnknownFields:!1},pe={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0};function he(e){return e?Object.assign(Object.assign({},de),e):de}function fe(e){return e?Object.assign(Object.assign({},pe),e):pe}const me=Symbol(),ge=Symbol();function ve(e){if(null===e)return"null";switch(typeof e){case"object":return Array.isArray(e)?"array":"object";case"string":return e.length>100?"string":`"${e.split('"').join('\\"')}"`;default:return String(e)}}function ye(e,t,n,r,o){let i=n.localName;if(n.repeated){if(_("map"!=n.kind),null===t)return;if(!Array.isArray(t))throw new Error(`cannot decode field ${o.typeName}.${n.name} from JSON: ${ve(t)}`);const a=e[i];for(const e of t){if(null===e)throw new Error(`cannot decode field ${o.typeName}.${n.name} from JSON: ${ve(e)}`);switch(n.kind){case"message":a.push(n.T.fromJson(e,r));break;case"enum":const t=xe(n.T,e,r.ignoreUnknownFields,!0);t!==ge&&a.push(t);break;case"scalar":try{a.push(we(n.T,e,n.L,!0))}catch(t){let r=`cannot decode field ${o.typeName}.${n.name} from JSON: ${ve(e)}`;throw t instanceof Error&&t.message.length>0&&(r+=`: ${t.message}`),new Error(r)}}}}else if("map"==n.kind){if(null===t)return;if("object"!=typeof t||Array.isArray(t))throw new Error(`cannot decode field ${o.typeName}.${n.name} from JSON: ${ve(t)}`);const a=e[i];for(const[e,i]of Object.entries(t)){if(null===i)throw new Error(`cannot decode field ${o.typeName}.${n.name} from JSON: map value null`);let s;try{s=be(n.K,e)}catch(e){let r=`cannot decode map key for field ${o.typeName}.${n.name} from JSON: ${ve(t)}`;throw e instanceof Error&&e.message.length>0&&(r+=`: ${e.message}`),new Error(r)}switch(n.V.kind){case"message":a[s]=n.V.T.fromJson(i,r);break;case"enum":const e=xe(n.V.T,i,r.ignoreUnknownFields,!0);e!==ge&&(a[s]=e);break;case"scalar":try{a[s]=we(n.V.T,i,q.BIGINT,!0)}catch(e){let r=`cannot decode map value for field ${o.typeName}.${n.name} from JSON: ${ve(t)}`;throw e instanceof Error&&e.message.length>0&&(r+=`: ${e.message}`),new Error(r)}}}}else switch(n.oneof&&(e=e[n.oneof.localName]={case:i},i="value"),n.kind){case"message":const a=n.T;if(null===t&&"google.protobuf.Value"!=a.typeName)return;let s=e[i];ce(s)?s.fromJson(t,r):(e[i]=s=a.fromJson(t,r),a.fieldWrapper&&!n.oneof&&(e[i]=a.fieldWrapper.unwrapField(s)));break;case"enum":const l=xe(n.T,t,r.ignoreUnknownFields,!1);switch(l){case me:le(n,e);break;case ge:break;default:e[i]=l}break;case"scalar":try{const r=we(n.T,t,n.L,!1);if(r===me)le(n,e);else e[i]=r}catch(e){let r=`cannot decode field ${o.typeName}.${n.name} from JSON: ${ve(t)}`;throw e instanceof Error&&e.message.length>0&&(r+=`: ${e.message}`),new Error(r)}}}function be(e,t){if(e===U.BOOL)switch(t){case"true":t=!0;break;case"false":t=!1}return we(e,t,q.BIGINT,!0).toString()}function we(e,t,n,r){if(null===t)return r?Y(e,n):me;switch(e){case U.DOUBLE:case U.FLOAT:if("NaN"===t)return Number.NaN;if("Infinity"===t)return Number.POSITIVE_INFINITY;if("-Infinity"===t)return Number.NEGATIVE_INFINITY;if(""===t)break;if("string"==typeof t&&t.trim().length!==t.length)break;if("string"!=typeof t&&"number"!=typeof t)break;const r=Number(t);if(Number.isNaN(r))break;if(!Number.isFinite(r))break;return e==U.FLOAT&&k(r),r;case U.INT32:case U.FIXED32:case U.SFIXED32:case U.SINT32:case U.UINT32:let o;if("number"==typeof t?o=t:"string"==typeof t&&t.length>0&&t.trim().length===t.length&&(o=Number(t)),void 0===o)break;return e==U.UINT32||e==U.FIXED32?E(o):C(o),o;case U.INT64:case U.SFIXED64:case U.SINT64:if("number"!=typeof t&&"string"!=typeof t)break;const i=H.parse(t);return n?i.toString():i;case U.FIXED64:case U.UINT64:if("number"!=typeof t&&"string"!=typeof t)break;const a=H.uParse(t);return n?a.toString():a;case U.BOOL:if("boolean"!=typeof t)break;return t;case U.STRING:if("string"!=typeof t)break;try{encodeURIComponent(t)}catch(e){throw new Error("invalid UTF8")}return t;case U.BYTES:if(""===t)return new Uint8Array(0);if("string"!=typeof t)break;return ne.dec(t)}throw new Error}function xe(e,t,n,r){if(null===t)return"google.protobuf.NullValue"==e.typeName?0:r?e.values[0].no:me;switch(typeof t){case"number":if(Number.isInteger(t))return t;break;case"string":const r=e.findName(t);if(void 0!==r)return r.no;if(n)return ge}throw new Error(`cannot decode enum ${e.typeName} from JSON: ${ve(t)}`)}function Se(e){return!(!e.repeated&&"map"!=e.kind)||!e.oneof&&("message"!=e.kind&&(!e.opt&&!e.req))}function _e(e,t,n){if("map"==e.kind){_("object"==typeof t&&null!=t);const r={},o=Object.entries(t);switch(e.V.kind){case"scalar":for(const[t,n]of o)r[t.toString()]=Ee(e.V.T,n);break;case"message":for(const[e,t]of o)r[e.toString()]=t.toJson(n);break;case"enum":const t=e.V.T;for(const[e,i]of o)r[e.toString()]=Ce(t,i,n.enumAsInteger)}return n.emitDefaultValues||o.length>0?r:void 0}if(e.repeated){_(Array.isArray(t));const r=[];switch(e.kind){case"scalar":for(let n=0;n<t.length;n++)r.push(Ee(e.T,t[n]));break;case"enum":for(let o=0;o<t.length;o++)r.push(Ce(e.T,t[o],n.enumAsInteger));break;case"message":for(let e=0;e<t.length;e++)r.push(t[e].toJson(n))}return n.emitDefaultValues||r.length>0?r:void 0}switch(e.kind){case"scalar":return Ee(e.T,t);case"enum":return Ce(e.T,t,n.enumAsInteger);case"message":return ue(e.T,t).toJson(n)}}function Ce(e,t,n){var r;if(_("number"==typeof t),"google.protobuf.NullValue"==e.typeName)return null;if(n)return t;const o=e.findNumber(t);return null!==(r=null==o?void 0:o.name)&&void 0!==r?r:t}function Ee(e,t){switch(e){case U.INT32:case U.SFIXED32:case U.SINT32:case U.FIXED32:case U.UINT32:return _("number"==typeof t),t;case U.FLOAT:case U.DOUBLE:return _("number"==typeof t),Number.isNaN(t)?"NaN":t===Number.POSITIVE_INFINITY?"Infinity":t===Number.NEGATIVE_INFINITY?"-Infinity":t;case U.STRING:return _("string"==typeof t),t;case U.BOOL:return _("boolean"==typeof t),t;case U.UINT64:case U.FIXED64:case U.INT64:case U.SFIXED64:case U.SINT64:return _("bigint"==typeof t||"string"==typeof t||"number"==typeof t),t.toString();case U.BYTES:return _(t instanceof Uint8Array),ne.enc(t)}}const ke=Symbol("@bufbuild/protobuf/unknown-fields"),ze={readUnknownFields:!0,readerFactory:e=>new X(e)},Pe={writeUnknownFields:!0,writerFactory:()=>new J};function Ae(e){return e?Object.assign(Object.assign({},ze),e):ze}function De(e){return e?Object.assign(Object.assign({},Pe),e):Pe}function Te(e,t,n,r,o){let{repeated:i,localName:a}=n;switch(n.oneof&&((e=e[n.oneof.localName]).case!=a&&delete e.value,e.case=a,a="value"),n.kind){case"scalar":case"enum":const s="enum"==n.kind?U.INT32:n.T;let l=Ne;if("scalar"==n.kind&&n.L>0&&(l=Me),i){let n=e[a];if(r==W.LengthDelimited&&s!=U.STRING&&s!=U.BYTES){let e=t.uint32()+t.pos;for(;t.pos<e;)n.push(l(t,s))}else n.push(l(t,s))}else e[a]=l(t,s);break;case"message":const c=n.T;i?e[a].push(Ie(t,new c,o,n)):ce(e[a])?Ie(t,e[a],o,n):(e[a]=Ie(t,new c,o,n),!c.fieldWrapper||n.oneof||n.repeated||(e[a]=c.fieldWrapper.unwrapField(e[a])));break;case"map":let[u,d]=function(e,t,n){const r=t.uint32(),o=t.pos+r;let i,a;for(;t.pos<o;){const[r]=t.tag();switch(r){case 1:i=Ne(t,e.K);break;case 2:switch(e.V.kind){case"scalar":a=Ne(t,e.V.T);break;case"enum":a=t.int32();break;case"message":a=Ie(t,new e.V.T,n,void 0)}}}void 0===i&&(i=Y(e.K,q.BIGINT));"string"!=typeof i&&"number"!=typeof i&&(i=i.toString());if(void 0===a)switch(e.V.kind){case"scalar":a=Y(e.V.T,q.BIGINT);break;case"enum":a=e.V.T.values[0].no;break;case"message":a=new e.V.T}return[i,a]}(n,t,o);e[a][u]=d}}function Ie(e,t,n,r){const o=t.getType().runtime.bin,i=null==r?void 0:r.delimited;return o.readMessage(t,e,i?r.no:e.uint32(),n,i),t}function Me(e,t){const n=Ne(e,t);return"bigint"==typeof n?n.toString():n}function Ne(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 Oe(e,t,n,r){_(void 0!==t);const o=e.repeated;switch(e.kind){case"scalar":case"enum":let i="enum"==e.kind?U.INT32:e.T;if(o)if(_(Array.isArray(t)),e.packed)!function(e,t,n,r){if(!r.length)return;e.tag(n,W.LengthDelimited).fork();let[,o]=Be(t);for(let t=0;t<r.length;t++)e[o](r[t]);e.join()}(n,i,e.no,t);else for(const r of t)Fe(n,i,e.no,r);else Fe(n,i,e.no,t);break;case"message":if(o){_(Array.isArray(t));for(const o of t)Re(n,r,e,o)}else Re(n,r,e,t);break;case"map":_("object"==typeof t&&null!=t);for(const[o,i]of Object.entries(t))je(n,r,e,o,i)}}function je(e,t,n,r,o){e.tag(n.no,W.LengthDelimited),e.fork();let i=r;switch(n.K){case U.INT32:case U.FIXED32:case U.UINT32:case U.SFIXED32:case U.SINT32:i=Number.parseInt(r);break;case U.BOOL:_("true"==r||"false"==r),i="true"==r}switch(Fe(e,n.K,1,i),n.V.kind){case"scalar":Fe(e,n.V.T,2,o);break;case"enum":Fe(e,U.INT32,2,o);break;case"message":_(void 0!==o),e.tag(2,W.LengthDelimited).bytes(o.toBinary(t))}e.join()}function Re(e,t,n,r){const o=ue(n.T,r);n.delimited?e.tag(n.no,W.StartGroup).raw(o.toBinary(t)).tag(n.no,W.EndGroup):e.tag(n.no,W.LengthDelimited).bytes(o.toBinary(t))}function Fe(e,t,n,r){_(void 0!==r);let[o,i]=Be(t);e.tag(n,o)[i](r)}function Be(e){let t=W.Varint;switch(e){case U.BYTES:case U.STRING:t=W.LengthDelimited;break;case U.DOUBLE:case U.FIXED64:case U.SFIXED64:t=W.Bit64;break;case U.FIXED32:case U.SFIXED32:case U.FLOAT:t=W.Bit32}return[t,U[e].toLowerCase()]}function Le(e){if(void 0===e)return e;if(ce(e))return e.clone();if(e instanceof Uint8Array){const t=new Uint8Array(e.byteLength);return t.set(e),t}return e}function Ve(e){return e instanceof Uint8Array?e:new Uint8Array(e)}function Ke(e,t,n){return{syntax:e,json:{makeReadOptions:he,makeWriteOptions:fe,readMessage(e,t,n,r){if(null==t||Array.isArray(t)||"object"!=typeof t)throw new Error(`cannot decode message ${e.typeName} from JSON: ${ve(t)}`);r=null!=r?r:new e;const o=new Map,i=n.typeRegistry;for(const[a,s]of Object.entries(t)){const t=e.fields.findJsonName(a);if(t){if(t.oneof){if(null===s&&"scalar"==t.kind)continue;const n=o.get(t.oneof);if(void 0!==n)throw new Error(`cannot decode message ${e.typeName} from JSON: multiple keys for oneof "${t.oneof.name}" present: "${n}", "${a}"`);o.set(t.oneof,a)}ye(r,s,t,n,e)}else{let t=!1;if((null==i?void 0:i.findExtension)&&a.startsWith("[")&&a.endsWith("]")){const o=i.findExtension(a.substring(1,a.length-1));if(o&&o.extendee.typeName==e.typeName){t=!0;const[e,i]=Q(o);ye(e,s,o.field,n,o),oe(r,o,i(),n)}}if(!t&&!n.ignoreUnknownFields)throw new Error(`cannot decode message ${e.typeName} from JSON: key "${a}" is unknown`)}}return r},writeMessage(e,t){const n=e.getType(),r={};let o;try{for(o of n.fields.byNumber()){if(!se(o,e)){if(o.req)throw"required field not set";if(!t.emitDefaultValues)continue;if(!Se(o))continue}const n=_e(o,o.oneof?e[o.oneof.localName].value:e[o.localName],t);void 0!==n&&(r[t.useProtoFieldName?o.name:o.jsonName]=n)}const i=t.typeRegistry;if(null==i?void 0:i.findExtensionFor)for(const o of n.runtime.bin.listUnknownFields(e)){const a=i.findExtensionFor(n.typeName,o.no);if(a&&ie(e,a)){const n=re(e,a,t),o=_e(a.field,n,t);void 0!==o&&(r[a.field.jsonName]=o)}}}catch(e){const t=o?`cannot encode field ${n.typeName}.${o.name} to JSON`:`cannot encode message ${n.typeName} to JSON`,r=e instanceof Error?e.message:String(e);throw new Error(t+(r.length>0?`: ${r}`:""))}return r},readScalar:(e,t,n)=>we(e,t,null!=n?n:q.BIGINT,!0),writeScalar(e,t,n){if(void 0!==t)return n||Z(e,t)?Ee(e,t):void 0},debug:ve},bin:{makeReadOptions:Ae,makeWriteOptions:De,listUnknownFields(e){var t;return null!==(t=e[ke])&&void 0!==t?t:[]},discardUnknownFields(e){delete e[ke]},writeUnknownFields(e,t){const n=e[ke];if(n)for(const e of n)t.tag(e.no,e.wireType).raw(e.data)},onUnknownField(e,t,n,r){const o=e;Array.isArray(o[ke])||(o[ke]=[]),o[ke].push({no:t,wireType:n,data:r})},readMessage(e,t,n,r,o){const i=e.getType(),a=o?t.len:t.pos+n;let s,l;for(;t.pos<a&&([s,l]=t.tag(),!0!==o||l!=W.EndGroup);){const n=i.fields.find(s);if(n)Te(e,t,n,l,r);else{const n=t.skip(l,s);r.readUnknownFields&&this.onUnknownField(e,s,l,n)}}if(o&&(l!=W.EndGroup||s!==n))throw new Error("invalid end group tag")},readField:Te,writeMessage(e,t,n){const r=e.getType();for(const o of r.fields.byNumber())if(se(o,e))Oe(o,o.oneof?e[o.oneof.localName].value:e[o.localName],t,n);else if(o.req)throw new Error(`cannot encode field ${r.typeName}.${o.name} to binary: required field not set`);return n.writeUnknownFields&&this.writeUnknownFields(e,t),t},writeField(e,t,n,r){void 0!==t&&Oe(e,t,n,r)}},util:Object.assign(Object.assign({},{setEnumType:A,initPartial(e,t){if(void 0===e)return;const n=t.getType();for(const r of n.fields.byMember()){const n=r.localName,o=t,i=e;if(null!=i[n])switch(r.kind){case"oneof":const e=i[n].case;if(void 0===e)continue;const t=r.findField(e);let a=i[n].value;t&&"message"==t.kind&&!ce(a,t.T)?a=new t.T(a):t&&"scalar"===t.kind&&t.T===U.BYTES&&(a=Ve(a)),o[n]={case:e,value:a};break;case"scalar":case"enum":let s=i[n];r.T===U.BYTES&&(s=r.repeated?s.map(Ve):Ve(s)),o[n]=s;break;case"map":switch(r.V.kind){case"scalar":case"enum":if(r.V.T===U.BYTES)for(const[e,t]of Object.entries(i[n]))o[n][e]=Ve(t);else Object.assign(o[n],i[n]);break;case"message":const e=r.V.T;for(const t of Object.keys(i[n])){let r=i[n][t];e.fieldWrapper||(r=new e(r)),o[n][t]=r}}break;case"message":const l=r.T;if(r.repeated)o[n]=i[n].map((e=>ce(e,l)?e:new l(e)));else{const e=i[n];l.fieldWrapper?"google.protobuf.BytesValue"===l.typeName?o[n]=Ve(e):o[n]=e:o[n]=ce(e,l)?e:new l(e)}}}},equals:(e,t,n)=>t===n||!(!t||!n)&&e.fields.byMember().every((e=>{const r=t[e.localName],o=n[e.localName];if(e.repeated){if(r.length!==o.length)return!1;switch(e.kind){case"message":return r.every(((t,n)=>e.T.equals(t,o[n])));case"scalar":return r.every(((t,n)=>G(e.T,t,o[n])));case"enum":return r.every(((e,t)=>G(U.INT32,e,o[t])))}throw new Error(`repeated cannot contain ${e.kind}`)}switch(e.kind){case"message":return e.T.equals(r,o);case"enum":return G(U.INT32,r,o);case"scalar":return G(e.T,r,o);case"oneof":if(r.case!==o.case)return!1;const t=e.findField(r.case);if(void 0===t)return!0;switch(t.kind){case"message":return t.T.equals(r.value,o.value);case"enum":return G(U.INT32,r.value,o.value);case"scalar":return G(t.T,r.value,o.value)}throw new Error(`oneof cannot contain ${t.kind}`);case"map":const n=Object.keys(r).concat(Object.keys(o));switch(e.V.kind){case"message":const t=e.V.T;return n.every((e=>t.equals(r[e],o[e])));case"enum":return n.every((e=>G(U.INT32,r[e],o[e])));case"scalar":const i=e.V.T;return n.every((e=>G(i,r[e],o[e])))}}})),clone(e){const t=e.getType(),n=new t,r=n;for(const n of t.fields.byMember()){const t=e[n.localName];let o;if(n.repeated)o=t.map(Le);else if("map"==n.kind){o=r[n.localName];for(const[e,n]of Object.entries(t))o[e]=Le(n)}else o="oneof"==n.kind?n.findField(t.case)?{case:t.case,value:Le(t.value)}:{case:void 0}:Le(t);r[n.localName]=o}for(const n of t.runtime.bin.listUnknownFields(e))t.runtime.bin.onUnknownField(r,n.no,n.wireType,n.data);return n}}),{newFieldList:t,initFields:n}),makeMessageType(e,t,n){return function(e,t,n,r){var o;const i=null!==(o=null==r?void 0:r.localName)&&void 0!==o?o:t.substring(t.lastIndexOf(".")+1),a={[i]:function(t){e.util.initFields(this),e.util.initPartial(t,this)}}[i];return Object.setPrototypeOf(a.prototype,new M),Object.assign(a,{runtime:e,typeName:t,fields:e.util.newFieldList(n),fromBinary:(e,t)=>(new a).fromBinary(e,t),fromJson:(e,t)=>(new a).fromJson(e,t),fromJsonString:(e,t)=>(new a).fromJsonString(e,t),equals:(t,n)=>e.util.equals(a,t,n)}),a}(this,e,t,n)},makeEnum:T,makeEnumType:D,getEnumType:P,makeExtension(e,t,n){return function(e,t,n,r){let o;return{typeName:t,extendee:n,get field(){if(!o){const n="function"==typeof r?r():r;n.name=t.split(".").pop(),n.jsonName=`[${t}]`,o=e.util.newFieldList([n]).list()[0]}return o},runtime:e}}(this,e,t,n)}}}class $e{constructor(e,t){this._fields=e,this._normalizer=t}findJsonName(e){if(!this.jsonNames){const e={};for(const t of this.list())e[t.jsonName]=e[t.name]=t;this.jsonNames=e}return this.jsonNames[e]}find(e){if(!this.numbers){const e={};for(const t of this.list())e[t.no]=t;this.numbers=e}return this.numbers[e]}list(){return this.all||(this.all=this._normalizer(this._fields)),this.all}byNumber(){return this.numbersAsc||(this.numbersAsc=this.list().concat().sort(((e,t)=>e.no-t.no))),this.numbersAsc}byMember(){if(!this.members){this.members=[];const e=this.members;let t;for(const n of this.list())n.oneof?n.oneof!==t&&(t=n.oneof,e.push(t)):e.push(n)}return this.members}}function He(e,t){const n=We(e);return t?n:Xe(Je(n))}function Ue(e){return He(e,!1)}const qe=We;function We(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("")}new Set(["break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","false","finally","for","function","if","import","in","instanceof","new","null","return","super","switch","this","throw","true","try","typeof","var","void","while","with","yield","enum","implements","interface","let","package","private","protected","public","static","Object","bigint","number","boolean","string","object","globalThis","Uint8Array","Partial"]);const Ge=new Set(["constructor","toString","toJSON","valueOf"]),Ye=new Set(["getType","clone","equals","fromBinary","fromJson","fromJsonString","toBinary","toJson","toJsonString","toObject"]),Ze=e=>`${e}$`,Je=e=>Ye.has(e)?Ze(e):e,Xe=e=>Ge.has(e)?Ze(e):e;class Qe{constructor(e){this.kind="oneof",this.repeated=!1,this.packed=!1,this.opt=!1,this.req=!1,this.default=void 0,this.fields=[],this.name=e,this.localName=Ue(e)}addField(e){_(e.oneof===this,`field ${e.name} not one of ${this.name}`),this.fields.push(e)}findField(e){if(!this._lookup){this._lookup=Object.create(null);for(let e=0;e<this.fields.length;e++)this._lookup[this.fields[e].localName]=this.fields[e]}return this._lookup[e]}}function et(e,t){var n,r,o,i,a,s;const l=[];let c;for(const u of"function"==typeof e?e():e){const e=u;if(e.localName=He(u.name,void 0!==u.oneof),e.jsonName=null!==(n=u.jsonName)&&void 0!==n?n:qe(u.name),e.repeated=null!==(r=u.repeated)&&void 0!==r&&r,"scalar"==u.kind&&(e.L=null!==(o=u.L)&&void 0!==o?o:q.BIGINT),e.delimited=null!==(i=u.delimited)&&void 0!==i&&i,e.req=null!==(a=u.req)&&void 0!==a&&a,e.opt=null!==(s=u.opt)&&void 0!==s&&s,void 0===u.packed&&(e.packed=!!t&&("enum"==u.kind||"scalar"==u.kind&&u.T!=U.BYTES&&u.T!=U.STRING)),void 0!==u.oneof){const t="string"==typeof u.oneof?u.oneof:u.oneof.name;c&&c.name==t||(c=new Qe(t)),e.oneof=c,c.addField(e)}l.push(e)}return l}const tt=Ke("proto3",(e=>new $e(e,(e=>et(e,!0)))),(e=>{for(const t of e.getType().fields.byMember()){if(t.opt)continue;const n=t.localName,r=e;if(t.repeated)r[n]=[];else switch(t.kind){case"oneof":r[n]={case:void 0};break;case"enum":r[n]=0;break;case"map":r[n]={};break;case"scalar":r[n]=Y(t.T,t.L)}}})),nt=Ke("proto2",(e=>new $e(e,(e=>et(e,!1)))),(e=>{for(const t of e.getType().fields.byMember()){const n=t.localName,r=e;if(t.repeated)r[n]=[];else switch(t.kind){case"oneof":r[n]={case:void 0};break;case"map":r[n]={}}}}));Number.NaN,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY;var rt,ot,it,at,st,lt,ct,ut,dt,pt,ht,ft,mt,gt,vt,yt,bt,wt,xt;!function(e){e[e.Unary=0]="Unary",e[e.ServerStreaming=1]="ServerStreaming",e[e.ClientStreaming=2]="ClientStreaming",e[e.BiDiStreaming=3]="BiDiStreaming"}(rt||(rt={})),function(e){e[e.NoSideEffects=1]="NoSideEffects",e[e.Idempotent=2]="Idempotent"}(ot||(ot={})),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"}(it||(it={})),nt.util.setEnumType(it,"google.protobuf.Edition",[{no:0,name:"EDITION_UNKNOWN"},{no:900,name:"EDITION_LEGACY"},{no:998,name:"EDITION_PROTO2"},{no:999,name:"EDITION_PROTO3"},{no:1e3,name:"EDITION_2023"},{no:1001,name:"EDITION_2024"},{no:1,name:"EDITION_1_TEST_ONLY"},{no:2,name:"EDITION_2_TEST_ONLY"},{no:99997,name:"EDITION_99997_TEST_ONLY"},{no:99998,name:"EDITION_99998_TEST_ONLY"},{no:99999,name:"EDITION_99999_TEST_ONLY"},{no:2147483647,name:"EDITION_MAX"}]);class St extends M{constructor(e){super(),this.file=[],nt.util.initPartial(e,this)}static fromBinary(e,t){return(new St).fromBinary(e,t)}static fromJson(e,t){return(new St).fromJson(e,t)}static fromJsonString(e,t){return(new St).fromJsonString(e,t)}static equals(e,t){return nt.util.equals(St,e,t)}}St.runtime=nt,St.typeName="google.protobuf.FileDescriptorSet",St.fields=nt.util.newFieldList((()=>[{no:1,name:"file",kind:"message",T:_t,repeated:!0}]));class _t extends M{constructor(e){super(),this.dependency=[],this.publicDependency=[],this.weakDependency=[],this.messageType=[],this.enumType=[],this.service=[],this.extension=[],nt.util.initPartial(e,this)}static fromBinary(e,t){return(new _t).fromBinary(e,t)}static fromJson(e,t){return(new _t).fromJson(e,t)}static fromJsonString(e,t){return(new _t).fromJsonString(e,t)}static equals(e,t){return nt.util.equals(_t,e,t)}}_t.runtime=nt,_t.typeName="google.protobuf.FileDescriptorProto",_t.fields=nt.util.newFieldList((()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"package",kind:"scalar",T:9,opt:!0},{no:3,name:"dependency",kind:"scalar",T:9,repeated:!0},{no:10,name:"public_dependency",kind:"scalar",T:5,repeated:!0},{no:11,name:"weak_dependency",kind:"scalar",T:5,repeated:!0},{no:4,name:"message_type",kind:"message",T:Ct,repeated:!0},{no:5,name:"enum_type",kind:"message",T:Tt,repeated:!0},{no:6,name:"service",kind:"message",T:Nt,repeated:!0},{no:7,name:"extension",kind:"message",T:At,repeated:!0},{no:8,name:"options",kind:"message",T:jt,opt:!0},{no:9,name:"source_code_info",kind:"message",T:Jt,opt:!0},{no:12,name:"syntax",kind:"scalar",T:9,opt:!0},{no:14,name:"edition",kind:"enum",T:nt.getEnumType(it),opt:!0}]));class Ct extends M{constructor(e){super(),this.field=[],this.extension=[],this.nestedType=[],this.enumType=[],this.extensionRange=[],this.oneofDecl=[],this.reservedRange=[],this.reservedName=[],nt.util.initPartial(e,this)}static fromBinary(e,t){return(new Ct).fromBinary(e,t)}static fromJson(e,t){return(new Ct).fromJson(e,t)}static fromJsonString(e,t){return(new Ct).fromJsonString(e,t)}static equals(e,t){return nt.util.equals(Ct,e,t)}}Ct.runtime=nt,Ct.typeName="google.protobuf.DescriptorProto",Ct.fields=nt.util.newFieldList((()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"field",kind:"message",T:At,repeated:!0},{no:6,name:"extension",kind:"message",T:At,repeated:!0},{no:3,name:"nested_type",kind:"message",T:Ct,repeated:!0},{no:4,name:"enum_type",kind:"message",T:Tt,repeated:!0},{no:5,name:"extension_range",kind:"message",T:Et,repeated:!0},{no:8,name:"oneof_decl",kind:"message",T:Dt,repeated:!0},{no:7,name:"options",kind:"message",T:Rt,opt:!0},{no:9,name:"reserved_range",kind:"message",T:kt,repeated:!0},{no:10,name:"reserved_name",kind:"scalar",T:9,repeated:!0}]));class Et extends M{constructor(e){super(),nt.util.initPartial(e,this)}static fromBinary(e,t){return(new Et).fromBinary(e,t)}static fromJson(e,t){return(new Et).fromJson(e,t)}static fromJsonString(e,t){return(new Et).fromJsonString(e,t)}static equals(e,t){return nt.util.equals(Et,e,t)}}Et.runtime=nt,Et.typeName="google.protobuf.DescriptorProto.ExtensionRange",Et.fields=nt.util.newFieldList((()=>[{no:1,name:"start",kind:"scalar",T:5,opt:!0},{no:2,name:"end",kind:"scalar",T:5,opt:!0},{no:3,name:"options",kind:"message",T:zt,opt:!0}]));class kt extends M{constructor(e){super(),nt.util.initPartial(e,this)}static fromBinary(e,t){return(new kt).fromBinary(e,t)}static fromJson(e,t){return(new kt).fromJson(e,t)}static fromJsonString(e,t){return(new kt).fromJsonString(e,t)}static equals(e,t){return nt.util.equals(kt,e,t)}}kt.runtime=nt,kt.typeName="google.protobuf.DescriptorProto.ReservedRange",kt.fields=nt.util.newFieldList((()=>[{no:1,name:"start",kind:"scalar",T:5,opt:!0},{no:2,name:"end",kind:"scalar",T:5,opt:!0}]));class zt extends M{constructor(e){super(),this.uninterpretedOption=[],this.declaration=[],nt.util.initPartial(e,this)}static fromBinary(e,t){return(new zt).fromBinary(e,t)}static fromJson(e,t){return(new zt).fromJson(e,t)}static fromJsonString(e,t){return(new zt).fromJsonString(e,t)}static equals(e,t){return nt.util.equals(zt,e,t)}}zt.runtime=nt,zt.typeName="google.protobuf.ExtensionRangeOptions",zt.fields=nt.util.newFieldList((()=>[{no:999,name:"uninterpreted_option",kind:"message",T:qt,repeated:!0},{no:2,name:"declaration",kind:"message",T:Pt,repeated:!0},{no:50,name:"features",kind:"message",T:Gt,opt:!0},{no:3,name:"verification",kind:"enum",T:nt.getEnumType(at),opt:!0,default:at.UNVERIFIED}])),function(e){e[e.DECLARATION=0]="DECLARATION",e[e.UNVERIFIED=1]="UNVERIFIED"}(at||(at={})),nt.util.setEnumType(at,"google.protobuf.ExtensionRangeOptions.VerificationState",[{no:0,name:"DECLARATION"},{no:1,name:"UNVERIFIED"}]);class Pt extends M{constructor(e){super(),nt.util.initPartial(e,this)}static fromBinary(e,t){return(new Pt).fromBinary(e,t)}static fromJson(e,t){return(new Pt).fromJson(e,t)}static fromJsonString(e,t){return(new Pt).fromJsonString(e,t)}static equals(e,t){return nt.util.equals(Pt,e,t)}}Pt.runtime=nt,Pt.typeName="google.protobuf.ExtensionRangeOptions.Declaration",Pt.fields=nt.util.newFieldList((()=>[{no:1,name:"number",kind:"scalar",T:5,opt:!0},{no:2,name:"full_name",kind:"scalar",T:9,opt:!0},{no:3,name:"type",kind:"scalar",T:9,opt:!0},{no:5,name:"reserved",kind:"scalar",T:8,opt:!0},{no:6,name:"repeated",kind:"scalar",T:8,opt:!0}]));class At extends M{constructor(e){super(),nt.util.initPartial(e,this)}static fromBinary(e,t){return(new At).fromBinary(e,t)}static fromJson(e,t){return(new At).fromJson(e,t)}static fromJsonString(e,t){return(new At).fromJsonString(e,t)}static equals(e,t){return nt.util.equals(At,e,t)}}At.runtime=nt,At.typeName="google.protobuf.FieldDescriptorProto",At.fields=nt.util.newFieldList((()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:3,name:"number",kind:"scalar",T:5,opt:!0},{no:4,name:"label",kind:"enum",T:nt.getEnumType(lt),opt:!0},{no:5,name:"type",kind:"enum",T:nt.getEnumType(st),opt:!0},{no:6,name:"type_name",kind:"scalar",T:9,opt:!0},{no:2,name:"extendee",kind:"scalar",T:9,opt:!0},{no:7,name:"default_value",kind:"scalar",T:9,opt:!0},{no:9,name:"oneof_index",kind:"scalar",T:5,opt:!0},{no:10,name:"json_name",kind:"scalar",T:9,opt:!0},{no:8,name:"options",kind:"message",T:Ft,opt:!0},{no:17,name:"proto3_optional",kind:"scalar",T:8,opt:!0}])),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"}(st||(st={})),nt.util.setEnumType(st,"google.protobuf.FieldDescriptorProto.Type",[{no:1,name:"TYPE_DOUBLE"},{no:2,name:"TYPE_FLOAT"},{no:3,name:"TYPE_INT64"},{no:4,name:"TYPE_UINT64"},{no:5,name:"TYPE_INT32"},{no:6,name:"TYPE_FIXED64"},{no:7,name:"TYPE_FIXED32"},{no:8,name:"TYPE_BOOL"},{no:9,name:"TYPE_STRING"},{no:10,name:"TYPE_GROUP"},{no:11,name:"TYPE_MESSAGE"},{no:12,name:"TYPE_BYTES"},{no:13,name:"TYPE_UINT32"},{no:14,name:"TYPE_ENUM"},{no:15,name:"TYPE_SFIXED32"},{no:16,name:"TYPE_SFIXED64"},{no:17,name:"TYPE_SINT32"},{no:18,name:"TYPE_SINT64"}]),function(e){e[e.OPTIONAL=1]="OPTIONAL",e[e.REPEATED=3]="REPEATED",e[e.REQUIRED=2]="REQUIRED"}(lt||(lt={})),nt.util.setEnumType(lt,"google.protobuf.FieldDescriptorProto.Label",[{no:1,name:"LABEL_OPTIONAL"},{no:3,name:"LABEL_REPEATED"},{no:2,name:"LABEL_REQUIRED"}]);class Dt extends M{constructor(e){super(),nt.util.initPartial(e,this)}static fromBinary(e,t){return(new Dt).fromBinary(e,t)}static fromJson(e,t){return(new Dt).fromJson(e,t)}static fromJsonString(e,t){return(new Dt).fromJsonString(e,t)}static equals(e,t){return nt.util.equals(Dt,e,t)}}Dt.runtime=nt,Dt.typeName="google.protobuf.OneofDescriptorProto",Dt.fields=nt.util.newFieldList((()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"options",kind:"message",T:Vt,opt:!0}]));class Tt extends M{constructor(e){super(),this.value=[],this.reservedRange=[],this.reservedName=[],nt.util.initPartial(e,this)}static fromBinary(e,t){return(new Tt).fromBinary(e,t)}static fromJson(e,t){return(new Tt).fromJson(e,t)}static fromJsonString(e,t){return(new Tt).fromJsonString(e,t)}static equals(e,t){return nt.util.equals(Tt,e,t)}}Tt.runtime=nt,Tt.typeName="google.protobuf.EnumDescriptorProto",Tt.fields=nt.util.newFieldList((()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"value",kind:"message",T:Mt,repeated:!0},{no:3,name:"options",kind:"message",T:Kt,opt:!0},{no:4,name:"reserved_range",kind:"message",T:It,repeated:!0},{no:5,name:"reserved_name",kind:"scalar",T:9,repeated:!0}]));class It extends M{constructor(e){super(),nt.util.initPartial(e,this)}static fromBinary(e,t){return(new It).fromBinary(e,t)}static fromJson(e,t){return(new It).fromJson(e,t)}static fromJsonString(e,t){return(new It).fromJsonString(e,t)}static equals(e,t){return nt.util.equals(It,e,t)}}It.runtime=nt,It.typeName="google.protobuf.EnumDescriptorProto.EnumReservedRange",It.fields=nt.util.newFieldList((()=>[{no:1,name:"start",kind:"scalar",T:5,opt:!0},{no:2,name:"end",kind:"scalar",T:5,opt:!0}]));class Mt extends M{constructor(e){super(),nt.util.initPartial(e,this)}static fromBinary(e,t){return(new Mt).fromBinary(e,t)}static fromJson(e,t){return(new Mt).fromJson(e,t)}static fromJsonString(e,t){return(new Mt).fromJsonString(e,t)}static equals(e,t){return nt.util.equals(Mt,e,t)}}Mt.runtime=nt,Mt.typeName="google.protobuf.EnumValueDescriptorProto",Mt.fields=nt.util.newFieldList((()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"number",kind:"scalar",T:5,opt:!0},{no:3,name:"options",kind:"message",T:$t,opt:!0}]));class Nt extends M{constructor(e){super(),this.method=[],nt.util.initPartial(e,this)}static fromBinary(e,t){return(new Nt).fromBinary(e,t)}static fromJson(e,t){return(new Nt).fromJson(e,t)}static fromJsonString(e,t){return(new Nt).fromJsonString(e,t)}static equals(e,t){return nt.util.equals(Nt,e,t)}}Nt.runtime=nt,Nt.typeName="google.protobuf.ServiceDescriptorProto",Nt.fields=nt.util.newFieldList((()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"method",kind:"message",T:Ot,repeated:!0},{no:3,name:"options",kind:"message",T:Ht,opt:!0}]));class Ot extends M{constructor(e){super(),nt.util.initPartial(e,this)}static fromBinary(e,t){return(new Ot).fromBinary(e,t)}static fromJson(e,t){return(new Ot).fromJson(e,t)}static fromJsonString(e,t){return(new Ot).fromJsonString(e,t)}static equals(e,t){return nt.util.equals(Ot,e,t)}}Ot.runtime=nt,Ot.typeName="google.protobuf.MethodDescriptorProto",Ot.fields=nt.util.newFieldList((()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"input_type",kind:"scalar",T:9,opt:!0},{no:3,name:"output_type",kind:"scalar",T:9,opt:!0},{no:4,name:"options",kind:"message",T:Ut,opt:!0},{no:5,name:"client_streaming",kind:"scalar",T:8,opt:!0,default:!1},{no:6,name:"server_streaming",kind:"scalar",T:8,opt:!0,default:!1}]));class jt extends M{constructor(e){super(),this.uninterpretedOption=[],nt.util.initPartial(e,this)}static fromBinary(e,t){return(new jt).fromBinary(e,t)}static fromJson(e,t){return(new jt).fromJson(e,t)}static fromJsonString(e,t){return(new jt).fromJsonString(e,t)}static equals(e,t){return nt.util.equals(jt,e,t)}}jt.runtime=nt,jt.typeName="google.protobuf.FileOptions",jt.fields=nt.util.newFieldList((()=>[{no:1,name:"java_package",kind:"scalar",T:9,opt:!0},{no:8,name:"java_outer_classname",kind:"scalar",T:9,opt:!0},{no:10,name:"java_multiple_files",kind:"scalar",T:8,opt:!0,default:!1},{no:20,name:"java_generate_equals_and_hash",kind:"scalar",T:8,opt:!0},{no:27,name:"java_string_check_utf8",kind:"scalar",T:8,opt:!0,default:!1},{no:9,name:"optimize_for",kind:"enum",T:nt.getEnumType(ct),opt:!0,default:ct.SPEED},{no:11,name:"go_package",kind:"scalar",T:9,opt:!0},{no:16,name:"cc_generic_services",kind:"scalar",T:8,opt:!0,default:!1},{no:17,name:"java_generic_services",kind:"scalar",T:8,opt:!0,default:!1},{no:18,name:"py_generic_services",kind:"scalar",T:8,opt:!0,default:!1},{no:23,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:31,name:"cc_enable_arenas",kind:"scalar",T:8,opt:!0,default:!0},{no:36,name:"objc_class_prefix",kind:"scalar",T:9,opt:!0},{no:37,name:"csharp_namespace",kind:"scalar",T:9,opt:!0},{no:39,name:"swift_prefix",kind:"scalar",T:9,opt:!0},{no:40,name:"php_class_prefix",kind:"scalar",T:9,opt:!0},{no:41,name:"php_namespace",kind:"scalar",T:9,opt:!0},{no:44,name:"php_metadata_namespace",kind:"scalar",T:9,opt:!0},{no:45,name:"ruby_package",kind:"scalar",T:9,opt:!0},{no:50,name:"features",kind:"message",T:Gt,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:qt,repeated:!0}])),function(e){e[e.SPEED=1]="SPEED",e[e.CODE_SIZE=2]="CODE_SIZE",e[e.LITE_RUNTIME=3]="LITE_RUNTIME"}(ct||(ct={})),nt.util.setEnumType(ct,"google.protobuf.FileOptions.OptimizeMode",[{no:1,name:"SPEED"},{no:2,name:"CODE_SIZE"},{no:3,name:"LITE_RUNTIME"}]);class Rt extends M{constructor(e){super(),this.uninterpretedOption=[],nt.util.initPartial(e,this)}static fromBinary(e,t){return(new Rt).fromBinary(e,t)}static fromJson(e,t){return(new Rt).fromJson(e,t)}static fromJsonString(e,t){return(new Rt).fromJsonString(e,t)}static equals(e,t){return nt.util.equals(Rt,e,t)}}Rt.runtime=nt,Rt.typeName="google.protobuf.MessageOptions",Rt.fields=nt.util.newFieldList((()=>[{no:1,name:"message_set_wire_format",kind:"scalar",T:8,opt:!0,default:!1},{no:2,name:"no_standard_descriptor_accessor",kind:"scalar",T:8,opt:!0,default:!1},{no:3,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:7,name:"map_entry",kind:"scalar",T:8,opt:!0},{no:11,name:"deprecated_legacy_json_field_conflicts",kind:"scalar",T:8,opt:!0},{no:12,name:"features",kind:"message",T:Gt,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:qt,repeated:!0}]));class Ft extends M{constructor(e){super(),this.targets=[],this.editionDefaults=[],this.uninterpretedOption=[],nt.util.initPartial(e,this)}static fromBinary(e,t){return(new Ft).fromBinary(e,t)}static fromJson(e,t){return(new Ft).fromJson(e,t)}static fromJsonString(e,t){return(new Ft).fromJsonString(e,t)}static equals(e,t){return nt.util.equals(Ft,e,t)}}Ft.runtime=nt,Ft.typeName="google.protobuf.FieldOptions",Ft.fields=nt.util.newFieldList((()=>[{no:1,name:"ctype",kind:"enum",T:nt.getEnumType(ut),opt:!0,default:ut.STRING},{no:2,name:"packed",kind:"scalar",T:8,opt:!0},{no:6,name:"jstype",kind:"enum",T:nt.getEnumType(dt),opt:!0,default:dt.JS_NORMAL},{no:5,name:"lazy",kind:"scalar",T:8,opt:!0,default:!1},{no:15,name:"unverified_lazy",kind:"scalar",T:8,opt:!0,default:!1},{no:3,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:10,name:"weak",kind:"scalar",T:8,opt:!0,default:!1},{no:16,name:"debug_redact",kind:"scalar",T:8,opt:!0,default:!1},{no:17,name:"retention",kind:"enum",T:nt.getEnumType(pt),opt:!0},{no:19,name:"targets",kind:"enum",T:nt.getEnumType(ht),repeated:!0},{no:20,name:"edition_defaults",kind:"message",T:Bt,repeated:!0},{no:21,name:"features",kind:"message",T:Gt,opt:!0},{no:22,name:"feature_support",kind:"message",T:Lt,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:qt,repeated:!0}])),function(e){e[e.STRING=0]="STRING",e[e.CORD=1]="CORD",e[e.STRING_PIECE=2]="STRING_PIECE"}(ut||(ut={})),nt.util.setEnumType(ut,"google.protobuf.FieldOptions.CType",[{no:0,name:"STRING"},{no:1,name:"CORD"},{no:2,name:"STRING_PIECE"}]),function(e){e[e.JS_NORMAL=0]="JS_NORMAL",e[e.JS_STRING=1]="JS_STRING",e[e.JS_NUMBER=2]="JS_NUMBER"}(dt||(dt={})),nt.util.setEnumType(dt,"google.protobuf.FieldOptions.JSType",[{no:0,name:"JS_NORMAL"},{no:1,name:"JS_STRING"},{no:2,name:"JS_NUMBER"}]),function(e){e[e.RETENTION_UNKNOWN=0]="RETENTION_UNKNOWN",e[e.RETENTION_RUNTIME=1]="RETENTION_RUNTIME",e[e.RETENTION_SOURCE=2]="RETENTION_SOURCE"}(pt||(pt={})),nt.util.setEnumType(pt,"google.protobuf.FieldOptions.OptionRetention",[{no:0,name:"RETENTION_UNKNOWN"},{no:1,name:"RETENTION_RUNTIME"},{no:2,name:"RETENTION_SOURCE"}]),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"}(ht||(ht={})),nt.util.setEnumType(ht,"google.protobuf.FieldOptions.OptionTargetType",[{no:0,name:"TARGET_TYPE_UNKNOWN"},{no:1,name:"TARGET_TYPE_FILE"},{no:2,name:"TARGET_TYPE_EXTENSION_RANGE"},{no:3,name:"TARGET_TYPE_MESSAGE"},{no:4,name:"TARGET_TYPE_FIELD"},{no:5,name:"TARGET_TYPE_ONEOF"},{no:6,name:"TARGET_TYPE_ENUM"},{no:7,name:"TARGET_TYPE_ENUM_ENTRY"},{no:8,name:"TARGET_TYPE_SERVICE"},{no:9,name:"TARGET_TYPE_METHOD"}]);class Bt extends M{constructor(e){super(),nt.util.initPartial(e,this)}static fromBinary(e,t){return(new Bt).fromBinary(e,t)}static fromJson(e,t){return(new Bt).fromJson(e,t)}static fromJsonString(e,t){return(new Bt).fromJsonString(e,t)}static equals(e,t){return nt.util.equals(Bt,e,t)}}Bt.runtime=nt,Bt.typeName="google.protobuf.FieldOptions.EditionDefault",Bt.fields=nt.util.newFieldList((()=>[{no:3,name:"edition",kind:"enum",T:nt.getEnumType(it),opt:!0},{no:2,name:"value",kind:"scalar",T:9,opt:!0}]));class Lt extends M{constructor(e){super(),nt.util.initPartial(e,this)}static fromBinary(e,t){return(new Lt).fromBinary(e,t)}static fromJson(e,t){return(new Lt).fromJson(e,t)}static fromJsonString(e,t){return(new Lt).fromJsonString(e,t)}static equals(e,t){return nt.util.equals(Lt,e,t)}}Lt.runtime=nt,Lt.typeName="google.protobuf.FieldOptions.FeatureSupport",Lt.fields=nt.util.newFieldList((()=>[{no:1,name:"edition_introduced",kind:"enum",T:nt.getEnumType(it),opt:!0},{no:2,name:"edition_deprecated",kind:"enum",T:nt.getEnumType(it),opt:!0},{no:3,name:"deprecation_warning",kind:"scalar",T:9,opt:!0},{no:4,name:"edition_removed",kind:"enum",T:nt.getEnumType(it),opt:!0}]));class Vt extends M{constructor(e){super(),this.uninterpretedOption=[],nt.util.initPartial(e,this)}static fromBinary(e,t){return(new Vt).fromBinary(e,t)}static fromJson(e,t){return(new Vt).fromJson(e,t)}static fromJsonString(e,t){return(new Vt).fromJsonString(e,t)}static equals(e,t){return nt.util.equals(Vt,e,t)}}Vt.runtime=nt,Vt.typeName="google.protobuf.OneofOptions",Vt.fields=nt.util.newFieldList((()=>[{no:1,name:"features",kind:"message",T:Gt,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:qt,repeated:!0}]));class Kt extends M{constructor(e){super(),this.uninterpretedOption=[],nt.util.initPartial(e,this)}static fromBinary(e,t){return(new Kt).fromBinary(e,t)}static fromJson(e,t){return(new Kt).fromJson(e,t)}static fromJsonString(e,t){return(new Kt).fromJsonString(e,t)}static equals(e,t){return nt.util.equals(Kt,e,t)}}Kt.runtime=nt,Kt.typeName="google.protobuf.EnumOptions",Kt.fields=nt.util.newFieldList((()=>[{no:2,name:"allow_alias",kind:"scalar",T:8,opt:!0},{no:3,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:6,name:"deprecated_legacy_json_field_conflicts",kind:"scalar",T:8,opt:!0},{no:7,name:"features",kind:"message",T:Gt,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:qt,repeated:!0}]));class $t extends M{constructor(e){super(),this.uninterpretedOption=[],nt.util.initPartial(e,this)}static fromBinary(e,t){return(new $t).fromBinary(e,t)}static fromJson(e,t){return(new $t).fromJson(e,t)}static fromJsonString(e,t){return(new $t).fromJsonString(e,t)}static equals(e,t){return nt.util.equals($t,e,t)}}$t.runtime=nt,$t.typeName="google.protobuf.EnumValueOptions",$t.fields=nt.util.newFieldList((()=>[{no:1,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:2,name:"features",kind:"message",T:Gt,opt:!0},{no:3,name:"debug_redact",kind:"scalar",T:8,opt:!0,default:!1},{no:4,name:"feature_support",kind:"message",T:Lt,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:qt,repeated:!0}]));class Ht extends M{constructor(e){super(),this.uninterpretedOption=[],nt.util.initPartial(e,this)}static fromBinary(e,t){return(new Ht).fromBinary(e,t)}static fromJson(e,t){return(new Ht).fromJson(e,t)}static fromJsonString(e,t){return(new Ht).fromJsonString(e,t)}static equals(e,t){return nt.util.equals(Ht,e,t)}}Ht.runtime=nt,Ht.typeName="google.protobuf.ServiceOptions",Ht.fields=nt.util.newFieldList((()=>[{no:34,name:"features",kind:"message",T:Gt,opt:!0},{no:33,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:999,name:"uninterpreted_option",kind:"message",T:qt,repeated:!0}]));class Ut extends M{constructor(e){super(),this.uninterpretedOption=[],nt.util.initPartial(e,this)}static fromBinary(e,t){return(new Ut).fromBinary(e,t)}static fromJson(e,t){return(new Ut).fromJson(e,t)}static fromJsonString(e,t){return(new Ut).fromJsonString(e,t)}static equals(e,t){return nt.util.equals(Ut,e,t)}}Ut.runtime=nt,Ut.typeName="google.protobuf.MethodOptions",Ut.fields=nt.util.newFieldList((()=>[{no:33,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:34,name:"idempotency_level",kind:"enum",T:nt.getEnumType(ft),opt:!0,default:ft.IDEMPOTENCY_UNKNOWN},{no:35,name:"features",kind:"message",T:Gt,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:qt,repeated:!0}])),function(e){e[e.IDEMPOTENCY_UNKNOWN=0]="IDEMPOTENCY_UNKNOWN",e[e.NO_SIDE_EFFECTS=1]="NO_SIDE_EFFECTS",e[e.IDEMPOTENT=2]="IDEMPOTENT"}(ft||(ft={})),nt.util.setEnumType(ft,"google.protobuf.MethodOptions.IdempotencyLevel",[{no:0,name:"IDEMPOTENCY_UNKNOWN"},{no:1,name:"NO_SIDE_EFFECTS"},{no:2,name:"IDEMPOTENT"}]);class qt extends M{constructor(e){super(),this.name=[],nt.util.initPartial(e,this)}static fromBinary(e,t){return(new qt).fromBinary(e,t)}static fromJson(e,t){return(new qt).fromJson(e,t)}static fromJsonString(e,t){return(new qt).fromJsonString(e,t)}static equals(e,t){return nt.util.equals(qt,e,t)}}qt.runtime=nt,qt.typeName="google.protobuf.UninterpretedOption",qt.fields=nt.util.newFieldList((()=>[{no:2,name:"name",kind:"message",T:Wt,repeated:!0},{no:3,name:"identifier_value",kind:"scalar",T:9,opt:!0},{no:4,name:"positive_int_value",kind:"scalar",T:4,opt:!0},{no:5,name:"negative_int_value",kind:"scalar",T:3,opt:!0},{no:6,name:"double_value",kind:"scalar",T:1,opt:!0},{no:7,name:"string_value",kind:"scalar",T:12,opt:!0},{no:8,name:"aggregate_value",kind:"scalar",T:9,opt:!0}]));class Wt extends M{constructor(e){super(),nt.util.initPartial(e,this)}static fromBinary(e,t){return(new Wt).fromBinary(e,t)}static fromJson(e,t){return(new Wt).fromJson(e,t)}static fromJsonString(e,t){return(new Wt).fromJsonString(e,t)}static equals(e,t){return nt.util.equals(Wt,e,t)}}Wt.runtime=nt,Wt.typeName="google.protobuf.UninterpretedOption.NamePart",Wt.fields=nt.util.newFieldList((()=>[{no:1,name:"name_part",kind:"scalar",T:9,req:!0},{no:2,name:"is_extension",kind:"scalar",T:8,req:!0}]));class Gt extends M{constructor(e){super(),nt.util.initPartial(e,this)}static fromBinary(e,t){return(new Gt).fromBinary(e,t)}static fromJson(e,t){return(new Gt).fromJson(e,t)}static fromJsonString(e,t){return(new Gt).fromJsonString(e,t)}static equals(e,t){return nt.util.equals(Gt,e,t)}}Gt.runtime=nt,Gt.typeName="google.protobuf.FeatureSet",Gt.fields=nt.util.newFieldList((()=>[{no:1,name:"field_presence",kind:"enum",T:nt.getEnumType(mt),opt:!0},{no:2,name:"enum_type",kind:"enum",T:nt.getEnumType(gt),opt:!0},{no:3,name:"repeated_field_encoding",kind:"enum",T:nt.getEnumType(vt),opt:!0},{no:4,name:"utf8_validation",kind:"enum",T:nt.getEnumType(yt),opt:!0},{no:5,name:"message_encoding",kind:"enum",T:nt.getEnumType(bt),opt:!0},{no:6,name:"json_format",kind:"enum",T:nt.getEnumType(wt),opt:!0}])),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"}(mt||(mt={})),nt.util.setEnumType(mt,"google.protobuf.FeatureSet.FieldPresence",[{no:0,name:"FIELD_PRESENCE_UNKNOWN"},{no:1,name:"EXPLICIT"},{no:2,name:"IMPLICIT"},{no:3,name:"LEGACY_REQUIRED"}]),function(e){e[e.ENUM_TYPE_UNKNOWN=0]="ENUM_TYPE_UNKNOWN",e[e.OPEN=1]="OPEN",e[e.CLOSED=2]="CLOSED"}(gt||(gt={})),nt.util.setEnumType(gt,"google.protobuf.FeatureSet.EnumType",[{no:0,name:"ENUM_TYPE_UNKNOWN"},{no:1,name:"OPEN"},{no:2,name:"CLOSED"}]),function(e){e[e.REPEATED_FIELD_ENCODING_UNKNOWN=0]="REPEATED_FIELD_ENCODING_UNKNOWN",e[e.PACKED=1]="PACKED",e[e.EXPANDED=2]="EXPANDED"}(vt||(vt={})),nt.util.setEnumType(vt,"google.protobuf.FeatureSet.RepeatedFieldEncoding",[{no:0,name:"REPEATED_FIELD_ENCODING_UNKNOWN"},{no:1,name:"PACKED"},{no:2,name:"EXPANDED"}]),function(e){e[e.UTF8_VALIDATION_UNKNOWN=0]="UTF8_VALIDATION_UNKNOWN",e[e.VERIFY=2]="VERIFY",e[e.NONE=3]="NONE"}(yt||(yt={})),nt.util.setEnumType(yt,"google.protobuf.FeatureSet.Utf8Validation",[{no:0,name:"UTF8_VALIDATION_UNKNOWN"},{no:2,name:"VERIFY"},{no:3,name:"NONE"}]),function(e){e[e.MESSAGE_ENCODING_UNKNOWN=0]="MESSAGE_ENCODING_UNKNOWN",e[e.LENGTH_PREFIXED=1]="LENGTH_PREFIXED",e[e.DELIMITED=2]="DELIMITED"}(bt||(bt={})),nt.util.setEnumType(bt,"google.protobuf.FeatureSet.MessageEncoding",[{no:0,name:"MESSAGE_ENCODING_UNKNOWN"},{no:1,name:"LENGTH_PREFIXED"},{no:2,name:"DELIMITED"}]),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"}(wt||(wt={})),nt.util.setEnumType(wt,"google.protobuf.FeatureSet.JsonFormat",[{no:0,name:"JSON_FORMAT_UNKNOWN"},{no:1,name:"ALLOW"},{no:2,name:"LEGACY_BEST_EFFORT"}]);class Yt extends M{constructor(e){super(),this.defaults=[],nt.util.initPartial(e,this)}static fromBinary(e,t){return(new Yt).fromBinary(e,t)}static fromJson(e,t){return(new Yt).fromJson(e,t)}static fromJsonString(e,t){return(new Yt).fromJsonString(e,t)}static equals(e,t){return nt.util.equals(Yt,e,t)}}Yt.runtime=nt,Yt.typeName="google.protobuf.FeatureSetDefaults",Yt.fields=nt.util.newFieldList((()=>[{no:1,name:"defaults",kind:"message",T:Zt,repeated:!0},{no:4,name:"minimum_edition",kind:"enum",T:nt.getEnumType(it),opt:!0},{no:5,name:"maximum_edition",kind:"enum",T:nt.getEnumType(it),opt:!0}]));class Zt extends M{constructor(e){super(),nt.util.initPartial(e,this)}static fromBinary(e,t){return(new Zt).fromBinary(e,t)}static fromJson(e,t){return(new Zt).fromJson(e,t)}static fromJsonString(e,t){return(new Zt).fromJsonString(e,t)}static equals(e,t){return nt.util.equals(Zt,e,t)}}Zt.runtime=nt,Zt.typeName="google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault",Zt.fields=nt.util.newFieldList((()=>[{no:3,name:"edition",kind:"enum",T:nt.getEnumType(it),opt:!0},{no:4,name:"overridable_features",kind:"message",T:Gt,opt:!0},{no:5,name:"fixed_features",kind:"message",T:Gt,opt:!0}]));class Jt extends M{constructor(e){super(),this.location=[],nt.util.initPartial(e,this)}static fromBinary(e,t){return(new Jt).fromBinary(e,t)}static fromJson(e,t){return(new Jt).fromJson(e,t)}static fromJsonString(e,t){return(new Jt).fromJsonString(e,t)}static equals(e,t){return nt.util.equals(Jt,e,t)}}Jt.runtime=nt,Jt.typeName="google.protobuf.SourceCodeInfo",Jt.fields=nt.util.newFieldList((()=>[{no:1,name:"location",kind:"message",T:Xt,repeated:!0}]));class Xt extends M{constructor(e){super(),this.path=[],this.span=[],this.leadingDetachedComments=[],nt.util.initPartial(e,this)}static fromBinary(e,t){return(new Xt).fromBinary(e,t)}static fromJson(e,t){return(new Xt).fromJson(e,t)}static fromJsonString(e,t){return(new Xt).fromJsonString(e,t)}static equals(e,t){return nt.util.equals(Xt,e,t)}}Xt.runtime=nt,Xt.typeName="google.protobuf.SourceCodeInfo.Location",Xt.fields=nt.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:5,repeated:!0,packed:!0},{no:2,name:"span",kind:"scalar",T:5,repeated:!0,packed:!0},{no:3,name:"leading_comments",kind:"scalar",T:9,opt:!0},{no:4,name:"trailing_comments",kind:"scalar",T:9,opt:!0},{no:6,name:"leading_detached_comments",kind:"scalar",T:9,repeated:!0}]));class Qt extends M{constructor(e){super(),this.annotation=[],nt.util.initPartial(e,this)}static fromBinary(e,t){return(new Qt).fromBinary(e,t)}static fromJson(e,t){return(new Qt).fromJson(e,t)}static fromJsonString(e,t){return(new Qt).fromJsonString(e,t)}static equals(e,t){return nt.util.equals(Qt,e,t)}}Qt.runtime=nt,Qt.typeName="google.protobuf.GeneratedCodeInfo",Qt.fields=nt.util.newFieldList((()=>[{no:1,name:"annotation",kind:"message",T:en,repeated:!0}]));class en extends M{constructor(e){super(),this.path=[],nt.util.initPartial(e,this)}static fromBinary(e,t){return(new en).fromBinary(e,t)}static fromJson(e,t){return(new en).fromJson(e,t)}static fromJsonString(e,t){return(new en).fromJsonString(e,t)}static equals(e,t){return nt.util.equals(en,e,t)}}en.runtime=nt,en.typeName="google.protobuf.GeneratedCodeInfo.Annotation",en.fields=nt.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:5,repeated:!0,packed:!0},{no:2,name:"source_file",kind:"scalar",T:9,opt:!0},{no:3,name:"begin",kind:"scalar",T:5,opt:!0},{no:4,name:"end",kind:"scalar",T:5,opt:!0},{no:5,name:"semantic",kind:"enum",T:nt.getEnumType(xt),opt:!0}])),function(e){e[e.NONE=0]="NONE",e[e.SET=1]="SET",e[e.ALIAS=2]="ALIAS"}(xt||(xt={})),nt.util.setEnumType(xt,"google.protobuf.GeneratedCodeInfo.Annotation.Semantic",[{no:0,name:"NONE"},{no:1,name:"SET"},{no:2,name:"ALIAS"}]);st.DOUBLE,U.DOUBLE,st.FLOAT,U.FLOAT,st.INT64,U.INT64,st.UINT64,U.UINT64,st.INT32,U.INT32,st.FIXED64,U.FIXED64,st.FIXED32,U.FIXED32,st.BOOL,U.BOOL,st.STRING,U.STRING,st.GROUP,st.MESSAGE,st.BYTES,U.BYTES,st.UINT32,U.UINT32,st.ENUM,st.SFIXED32,U.SFIXED32,st.SFIXED64,U.SFIXED64,st.SINT32,U.SINT32,st.SINT64,U.SINT64;var tn,nn;!function(e){e[e.FileDescriptorProto_Package=2]="FileDescriptorProto_Package",e[e.FileDescriptorProto_MessageType=4]="FileDescriptorProto_MessageType",e[e.FileDescriptorProto_EnumType=5]="FileDescriptorProto_EnumType",e[e.FileDescriptorProto_Service=6]="FileDescriptorProto_Service",e[e.FileDescriptorProto_Extension=7]="FileDescriptorProto_Extension",e[e.FileDescriptorProto_Syntax=12]="FileDescriptorProto_Syntax",e[e.DescriptorProto_Field=2]="DescriptorProto_Field",e[e.DescriptorProto_NestedType=3]="DescriptorProto_NestedType",e[e.DescriptorProto_EnumType=4]="DescriptorProto_EnumType",e[e.DescriptorProto_Extension=6]="DescriptorProto_Extension",e[e.DescriptorProto_OneofDecl=8]="DescriptorProto_OneofDecl",e[e.EnumDescriptorProto_Value=2]="EnumDescriptorProto_Value",e[e.ServiceDescriptorProto_Method=2]="ServiceDescriptorProto_Method"}(tn||(tn={}));class rn extends M{constructor(e){super(),this.seconds=H.zero,this.nanos=0,tt.util.initPartial(e,this)}fromJson(e,t){if("string"!=typeof e)throw new Error(`cannot decode google.protobuf.Timestamp from JSON: ${tt.json.debug(e)}`);const n=e.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);if(!n)throw new Error("cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string");const r=Date.parse(n[1]+"-"+n[2]+"-"+n[3]+"T"+n[4]+":"+n[5]+":"+n[6]+(n[8]?n[8]:"Z"));if(Number.isNaN(r))throw new Error("cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string");if(r<Date.parse("0001-01-01T00:00:00Z")||r>Date.parse("9999-12-31T23:59:59Z"))throw new Error("cannot decode message google.protobuf.Timestamp from JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive");return this.seconds=H.parse(r/1e3),this.nanos=0,n[7]&&(this.nanos=parseInt("1"+n[7]+"0".repeat(9-n[7].length))-1e9),this}toJson(e){const t=1e3*Number(this.seconds);if(t<Date.parse("0001-01-01T00:00:00Z")||t>Date.parse("9999-12-31T23:59:59Z"))throw new Error("cannot encode google.protobuf.Timestamp to JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive");if(this.nanos<0)throw new Error("cannot encode google.protobuf.Timestamp to JSON: nanos must not be negative");let n="Z";if(this.nanos>0){const e=(this.nanos+1e9).toString().substring(1);n="000000"===e.substring(3)?"."+e.substring(0,3)+"Z":"000"===e.substring(6)?"."+e.substring(0,6)+"Z":"."+e+"Z"}return new Date(t).toISOString().replace(".000Z",n)}toDate(){return new Date(1e3*Number(this.seconds)+Math.ceil(this.nanos/1e6))}static now(){return rn.fromDate(new Date)}static fromDate(e){const t=e.getTime();return new rn({seconds:H.parse(Math.floor(t/1e3)),nanos:t%1e3*1e6})}static fromBinary(e,t){return(new rn).fromBinary(e,t)}static fromJson(e,t){return(new rn).fromJson(e,t)}static fromJsonString(e,t){return(new rn).fromJsonString(e,t)}static equals(e,t){return tt.util.equals(rn,e,t)}}rn.runtime=tt,rn.typeName="google.protobuf.Timestamp",rn.fields=tt.util.newFieldList((()=>[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}]));class on extends M{constructor(e){super(),this.seconds=H.zero,this.nanos=0,tt.util.initPartial(e,this)}fromJson(e,t){if("string"!=typeof e)throw new Error(`cannot decode google.protobuf.Duration from JSON: ${tt.json.debug(e)}`);const n=e.match(/^(-?[0-9]+)(?:\.([0-9]+))?s/);if(null===n)throw new Error(`cannot decode google.protobuf.Duration from JSON: ${tt.json.debug(e)}`);const r=Number(n[1]);if(r>315576e6||r<-315576e6)throw new Error(`cannot decode google.protobuf.Duration from JSON: ${tt.json.debug(e)}`);if(this.seconds=H.parse(r),"string"==typeof n[2]){const e=n[2]+"0".repeat(9-n[2].length);this.nanos=parseInt(e),(r<0||Object.is(r,-0))&&(this.nanos=-this.nanos)}return this}toJson(e){if(Number(this.seconds)>315576e6||Number(this.seconds)<-315576e6)throw new Error("cannot encode google.protobuf.Duration to JSON: value out of range");let t=this.seconds.toString();if(0!==this.nanos){let e=Math.abs(this.nanos).toString();e="0".repeat(9-e.length)+e,"000000"===e.substring(3)?e=e.substring(0,3):"000"===e.substring(6)&&(e=e.substring(0,6)),t+="."+e,this.nanos<0&&0==Number(this.seconds)&&(t="-"+t)}return t+"s"}static fromBinary(e,t){return(new on).fromBinary(e,t)}static fromJson(e,t){return(new on).fromJson(e,t)}static fromJsonString(e,t){return(new on).fromJsonString(e,t)}static equals(e,t){return tt.util.equals(on,e,t)}}on.runtime=tt,on.typeName="google.protobuf.Duration",on.fields=tt.util.newFieldList((()=>[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}]));class an extends M{constructor(e){super(),this.typeUrl="",this.value=new Uint8Array(0),tt.util.initPartial(e,this)}toJson(e){var t;if(""===this.typeUrl)return{};const n=this.typeUrlToName(this.typeUrl),r=null===(t=null==e?void 0:e.typeRegistry)||void 0===t?void 0:t.findMessage(n);if(!r)throw new Error(`cannot encode message google.protobuf.Any to JSON: "${this.typeUrl}" is not in the type registry`);let o=r.fromBinary(this.value).toJson(e);return(n.startsWith("google.protobuf.")||null===o||Array.isArray(o)||"object"!=typeof o)&&(o={value:o}),o["@type"]=this.typeUrl,o}fromJson(e,t){var n;if(null===e||Array.isArray(e)||"object"!=typeof e)throw new Error("cannot decode message google.protobuf.Any from JSON: expected object but got "+(null===e?"null":Array.isArray(e)?"array":typeof e));if(0==Object.keys(e).length)return this;const r=e["@type"];if("string"!=typeof r||""==r)throw new Error('cannot decode message google.protobuf.Any from JSON: "@type" is empty');const o=this.typeUrlToName(r),i=null===(n=null==t?void 0:t.typeRegistry)||void 0===n?void 0:n.findMessage(o);if(!i)throw new Error(`cannot decode message google.protobuf.Any from JSON: ${r} is not in the type registry`);let a;if(o.startsWith("google.protobuf.")&&Object.prototype.hasOwnProperty.call(e,"value"))a=i.fromJson(e.value,t);else{const n=Object.assign({},e);delete n["@type"],a=i.fromJson(n,t)}return this.packFrom(a),this}packFrom(e){this.value=e.toBinary(),this.typeUrl=this.typeNameToUrl(e.getType().typeName)}unpackTo(e){return!!this.is(e.getType())&&(e.fromBinary(this.value),!0)}unpack(e){if(""===this.typeUrl)return;const t=e.findMessage(this.typeUrlToName(this.typeUrl));return t?t.fromBinary(this.value):void 0}is(e){if(""===this.typeUrl)return!1;const t=this.typeUrlToName(this.typeUrl);let n="";return n="string"==typeof e?e:e.typeName,t===n}typeNameToUrl(e){return`type.googleapis.com/${e}`}typeUrlToName(e){if(!e.length)throw new Error(`invalid type url: ${e}`);const t=e.lastIndexOf("/"),n=t>=0?e.substring(t+1):e;if(!n.length)throw new Error(`invalid type url: ${e}`);return n}static pack(e){const t=new an;return t.packFrom(e),t}static fromBinary(e,t){return(new an).fromBinary(e,t)}static fromJson(e,t){return(new an).fromJson(e,t)}static fromJsonString(e,t){return(new an).fromJsonString(e,t)}static equals(e,t){return tt.util.equals(an,e,t)}}an.runtime=tt,an.typeName="google.protobuf.Any",an.fields=tt.util.newFieldList((()=>[{no:1,name:"type_url",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:12}]));class sn extends M{constructor(e){super(),tt.util.initPartial(e,this)}static fromBinary(e,t){return(new sn).fromBinary(e,t)}static fromJson(e,t){return(new sn).fromJson(e,t)}static fromJsonString(e,t){return(new sn).fromJsonString(e,t)}static equals(e,t){return tt.util.equals(sn,e,t)}}sn.runtime=tt,sn.typeName="google.protobuf.Empty",sn.fields=tt.util.newFieldList((()=>[]));class ln extends M{constructor(e){super(),this.paths=[],tt.util.initPartial(e,this)}toJson(e){return this.paths.map((e=>{if(e.match(/_[0-9]?_/g)||e.match(/[A-Z]/g))throw new Error('cannot encode google.protobuf.FieldMask to JSON: lowerCamelCase of path name "'+e+'" is irreversible');return function(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("")}(e)})).join(",")}fromJson(e,t){if("string"!=typeof e)throw new Error("cannot decode google.protobuf.FieldMask from JSON: "+tt.json.debug(e));if(""===e)return this;return this.paths=e.split(",").map((function(e){if(e.includes("_"))throw new Error("cannot decode google.protobuf.FieldMask from JSON: path names must be lowerCamelCase");const t=e.replace(/[A-Z]/g,(e=>"_"+e.toLowerCase()));return"_"===t[0]?t.substring(1):t})),this}static fromBinary(e,t){return(new ln).fromBinary(e,t)}static fromJson(e,t){return(new ln).fromJson(e,t)}static fromJsonString(e,t){return(new ln).fromJsonString(e,t)}static equals(e,t){return tt.util.equals(ln,e,t)}}ln.runtime=tt,ln.typeName="google.protobuf.FieldMask",ln.fields=tt.util.newFieldList((()=>[{no:1,name:"paths",kind:"scalar",T:9,repeated:!0}])),function(e){e[e.NULL_VALUE=0]="NULL_VALUE"}(nn||(nn={})),tt.util.setEnumType(nn,"google.protobuf.NullValue",[{no:0,name:"NULL_VALUE"}]);class cn extends M{constructor(e){super(),this.fields={},tt.util.initPartial(e,this)}toJson(e){const t={};for(const[n,r]of Object.entries(this.fields))t[n]=r.toJson(e);return t}fromJson(e,t){if("object"!=typeof e||null==e||Array.isArray(e))throw new Error("cannot decode google.protobuf.Struct from JSON "+tt.json.debug(e));for(const[t,n]of Object.entries(e))this.fields[t]=un.fromJson(n);return this}static fromBinary(e,t){return(new cn).fromBinary(e,t)}static fromJson(e,t){return(new cn).fromJson(e,t)}static fromJsonString(e,t){return(new cn).fromJsonString(e,t)}static equals(e,t){return tt.util.equals(cn,e,t)}}cn.runtime=tt,cn.typeName="google.protobuf.Struct",cn.fields=tt.util.newFieldList((()=>[{no:1,name:"fields",kind:"map",K:9,V:{kind:"message",T:un}}]));class un extends M{constructor(e){super(),this.kind={case:void 0},tt.util.initPartial(e,this)}toJson(e){switch(this.kind.case){case"nullValue":return null;case"numberValue":if(!Number.isFinite(this.kind.value))throw new Error("google.protobuf.Value cannot be NaN or Infinity");return this.kind.value;case"boolValue":case"stringValue":return this.kind.value;case"structValue":case"listValue":return this.kind.value.toJson(Object.assign(Object.assign({},e),{emitDefaultValues:!0}))}throw new Error("google.protobuf.Value must have a value")}fromJson(e,t){switch(typeof e){case"number":this.kind={case:"numberValue",value:e};break;case"string":this.kind={case:"stringValue",value:e};break;case"boolean":this.kind={case:"boolValue",value:e};break;case"object":null===e?this.kind={case:"nullValue",value:nn.NULL_VALUE}:Array.isArray(e)?this.kind={case:"listValue",value:dn.fromJson(e)}:this.kind={case:"structValue",value:cn.fromJson(e)};break;default:throw new Error("cannot decode google.protobuf.Value from JSON "+tt.json.debug(e))}return this}static fromBinary(e,t){return(new un).fromBinary(e,t)}static fromJson(e,t){return(new un).fromJson(e,t)}static fromJsonString(e,t){return(new un).fromJsonString(e,t)}static equals(e,t){return tt.util.equals(un,e,t)}}un.runtime=tt,un.typeName="google.protobuf.Value",un.fields=tt.util.newFieldList((()=>[{no:1,name:"null_value",kind:"enum",T:tt.getEnumType(nn),oneof:"kind"},{no:2,name:"number_value",kind:"scalar",T:1,oneof:"kind"},{no:3,name:"string_value",kind:"scalar",T:9,oneof:"kind"},{no:4,name:"bool_value",kind:"scalar",T:8,oneof:"kind"},{no:5,name:"struct_value",kind:"message",T:cn,oneof:"kind"},{no:6,name:"list_value",kind:"message",T:dn,oneof:"kind"}]));class dn extends M{constructor(e){super(),this.values=[],tt.util.initPartial(e,this)}toJson(e){return this.values.map((e=>e.toJson()))}fromJson(e,t){if(!Array.isArray(e))throw new Error("cannot decode google.protobuf.ListValue from JSON "+tt.json.debug(e));for(let t of e)this.values.push(un.fromJson(t));return this}static fromBinary(e,t){return(new dn).fromBinary(e,t)}static fromJson(e,t){return(new dn).fromJson(e,t)}static fromJsonString(e,t){return(new dn).fromJsonString(e,t)}static equals(e,t){return tt.util.equals(dn,e,t)}}dn.runtime=tt,dn.typeName="google.protobuf.ListValue",dn.fields=tt.util.newFieldList((()=>[{no:1,name:"values",kind:"message",T:un,repeated:!0}]));class pn extends M{constructor(e){super(),this.value=0,tt.util.initPartial(e,this)}toJson(e){return tt.json.writeScalar(U.DOUBLE,this.value,!0)}fromJson(e,t){try{this.value=tt.json.readScalar(U.DOUBLE,e)}catch(e){let t='cannot decode message google.protobuf.DoubleValue from JSON"';throw e instanceof Error&&e.message.length>0&&(t+=`: ${e.message}`),new Error(t)}return this}static fromBinary(e,t){return(new pn).fromBinary(e,t)}static fromJson(e,t){return(new pn).fromJson(e,t)}static fromJsonString(e,t){return(new pn).fromJsonString(e,t)}static equals(e,t){return tt.util.equals(pn,e,t)}}pn.runtime=tt,pn.typeName="google.protobuf.DoubleValue",pn.fields=tt.util.newFieldList((()=>[{no:1,name:"value",kind:"scalar",T:1}])),pn.fieldWrapper={wrapField:e=>new pn({value:e}),unwrapField:e=>e.value};class hn extends M{constructor(e){super(),this.value=0,tt.util.initPartial(e,this)}toJson(e){return tt.json.writeScalar(U.FLOAT,this.value,!0)}fromJson(e,t){try{this.value=tt.json.readScalar(U.FLOAT,e)}catch(e){let t='cannot decode message google.protobuf.FloatValue from JSON"';throw e instanceof Error&&e.message.length>0&&(t+=`: ${e.message}`),new Error(t)}return this}static fromBinary(e,t){return(new hn).fromBinary(e,t)}static fromJson(e,t){return(new hn).fromJson(e,t)}static fromJsonString(e,t){return(new hn).fromJsonString(e,t)}static equals(e,t){return tt.util.equals(hn,e,t)}}hn.runtime=tt,hn.typeName="google.protobuf.FloatValue",hn.fields=tt.util.newFieldList((()=>[{no:1,name:"value",kind:"scalar",T:2}])),hn.fieldWrapper={wrapField:e=>new hn({value:e}),unwrapField:e=>e.value};class fn extends M{constructor(e){super(),this.value=H.zero,tt.util.initPartial(e,this)}toJson(e){return tt.json.writeScalar(U.INT64,this.value,!0)}fromJson(e,t){try{this.value=tt.json.readScalar(U.INT64,e)}catch(e){let t='cannot decode message google.protobuf.Int64Value from JSON"';throw e instanceof Error&&e.message.length>0&&(t+=`: ${e.message}`),new Error(t)}return this}static fromBinary(e,t){return(new fn).fromBinary(e,t)}static fromJson(e,t){return(new fn).fromJson(e,t)}static fromJsonString(e,t){return(new fn).fromJsonString(e,t)}static equals(e,t){return tt.util.equals(fn,e,t)}}fn.runtime=tt,fn.typeName="google.protobuf.Int64Value",fn.fields=tt.util.newFieldList((()=>[{no:1,name:"value",kind:"scalar",T:3}])),fn.fieldWrapper={wrapField:e=>new fn({value:e}),unwrapField:e=>e.value};class mn extends M{constructor(e){super(),this.value=H.zero,tt.util.initPartial(e,this)}toJson(e){return tt.json.writeScalar(U.UINT64,this.value,!0)}fromJson(e,t){try{this.value=tt.json.readScalar(U.UINT64,e)}catch(e){let t='cannot decode message google.protobuf.UInt64Value from JSON"';throw e instanceof Error&&e.message.length>0&&(t+=`: ${e.message}`),new Error(t)}return this}static fromBinary(e,t){return(new mn).fromBinary(e,t)}static fromJson(e,t){return(new mn).fromJson(e,t)}static fromJsonString(e,t){return(new mn).fromJsonString(e,t)}static equals(e,t){return tt.util.equals(mn,e,t)}}mn.runtime=tt,mn.typeName="google.protobuf.UInt64Value",mn.fields=tt.util.newFieldList((()=>[{no:1,name:"value",kind:"scalar",T:4}])),mn.fieldWrapper={wrapField:e=>new mn({value:e}),unwrapField:e=>e.value};class gn extends M{constructor(e){super(),this.value=0,tt.util.initPartial(e,this)}toJson(e){return tt.json.writeScalar(U.INT32,this.value,!0)}fromJson(e,t){try{this.value=tt.json.readScalar(U.INT32,e)}catch(e){let t='cannot decode message google.protobuf.Int32Value from JSON"';throw e instanceof Error&&e.message.length>0&&(t+=`: ${e.message}`),new Error(t)}return this}static fromBinary(e,t){return(new gn).fromBinary(e,t)}static fromJson(e,t){return(new gn).fromJson(e,t)}static fromJsonString(e,t){return(new gn).fromJsonString(e,t)}static equals(e,t){return tt.util.equals(gn,e,t)}}gn.runtime=tt,gn.typeName="google.protobuf.Int32Value",gn.fields=tt.util.newFieldList((()=>[{no:1,name:"value",kind:"scalar",T:5}])),gn.fieldWrapper={wrapField:e=>new gn({value:e}),unwrapField:e=>e.value};class vn extends M{constructor(e){super(),this.value=0,tt.util.initPartial(e,this)}toJson(e){return tt.json.writeScalar(U.UINT32,this.value,!0)}fromJson(e,t){try{this.value=tt.json.readScalar(U.UINT32,e)}catch(e){let t='cannot decode message google.protobuf.UInt32Value from JSON"';throw e instanceof Error&&e.message.length>0&&(t+=`: ${e.message}`),new Error(t)}return this}static fromBinary(e,t){return(new vn).fromBinary(e,t)}static fromJson(e,t){return(new vn).fromJson(e,t)}static fromJsonString(e,t){return(new vn).fromJsonString(e,t)}static equals(e,t){return tt.util.equals(vn,e,t)}}vn.runtime=tt,vn.typeName="google.protobuf.UInt32Value",vn.fields=tt.util.newFieldList((()=>[{no:1,name:"value",kind:"scalar",T:13}])),vn.fieldWrapper={wrapField:e=>new vn({value:e}),unwrapField:e=>e.value};class yn extends M{constructor(e){super(),this.value=!1,tt.util.initPartial(e,this)}toJson(e){return tt.json.writeScalar(U.BOOL,this.value,!0)}fromJson(e,t){try{this.value=tt.json.readScalar(U.BOOL,e)}catch(e){let t='cannot decode message google.protobuf.BoolValue from JSON"';throw e instanceof Error&&e.message.length>0&&(t+=`: ${e.message}`),new Error(t)}return this}static fromBinary(e,t){return(new yn).fromBinary(e,t)}static fromJson(e,t){return(new yn).fromJson(e,t)}static fromJsonString(e,t){return(new yn).fromJsonString(e,t)}static equals(e,t){return tt.util.equals(yn,e,t)}}yn.runtime=tt,yn.typeName="google.protobuf.BoolValue",yn.fields=tt.util.newFieldList((()=>[{no:1,name:"value",kind:"scalar",T:8}])),yn.fieldWrapper={wrapField:e=>new yn({value:e}),unwrapField:e=>e.value};class bn extends M{constructor(e){super(),this.value="",tt.util.initPartial(e,this)}toJson(e){return tt.json.writeScalar(U.STRING,this.value,!0)}fromJson(e,t){try{this.value=tt.json.readScalar(U.STRING,e)}catch(e){let t='cannot decode message google.protobuf.StringValue from JSON"';throw e instanceof Error&&e.message.length>0&&(t+=`: ${e.message}`),new Error(t)}return this}static fromBinary(e,t){return(new bn).fromBinary(e,t)}static fromJson(e,t){return(new bn).fromJson(e,t)}static fromJsonString(e,t){return(new bn).fromJsonString(e,t)}static equals(e,t){return tt.util.equals(bn,e,t)}}bn.runtime=tt,bn.typeName="google.protobuf.StringValue",bn.fields=tt.util.newFieldList((()=>[{no:1,name:"value",kind:"scalar",T:9}])),bn.fieldWrapper={wrapField:e=>new bn({value:e}),unwrapField:e=>e.value};class wn extends M{constructor(e){super(),this.value=new Uint8Array(0),tt.util.initPartial(e,this)}toJson(e){return tt.json.writeScalar(U.BYTES,this.value,!0)}fromJson(e,t){try{this.value=tt.json.readScalar(U.BYTES,e)}catch(e){let t='cannot decode message google.protobuf.BytesValue from JSON"';throw e instanceof Error&&e.message.length>0&&(t+=`: ${e.message}`),new Error(t)}return this}static fromBinary(e,t){return(new wn).fromBinary(e,t)}static fromJson(e,t){return(new wn).fromJson(e,t)}static fromJsonString(e,t){return(new wn).fromJsonString(e,t)}static equals(e,t){return tt.util.equals(wn,e,t)}}wn.runtime=tt,wn.typeName="google.protobuf.BytesValue",wn.fields=tt.util.newFieldList((()=>[{no:1,name:"value",kind:"scalar",T:12}])),wn.fieldWrapper={wrapField:e=>new wn({value:e}),unwrapField:e=>e.value};P(nn);class xn extends M{constructor(e){super(),nt.util.initPartial(e,this)}static fromBinary(e,t){return(new xn).fromBinary(e,t)}static fromJson(e,t){return(new xn).fromJson(e,t)}static fromJsonString(e,t){return(new xn).fromJsonString(e,t)}static equals(e,t){return nt.util.equals(xn,e,t)}}xn.runtime=nt,xn.typeName="google.protobuf.compiler.Version",xn.fields=nt.util.newFieldList((()=>[{no:1,name:"major",kind:"scalar",T:5,opt:!0},{no:2,name:"minor",kind:"scalar",T:5,opt:!0},{no:3,name:"patch",kind:"scalar",T:5,opt:!0},{no:4,name:"suffix",kind:"scalar",T:9,opt:!0}]));class Sn extends M{constructor(e){super(),this.fileToGenerate=[],this.protoFile=[],this.sourceFileDescriptors=[],nt.util.initPartial(e,this)}static fromBinary(e,t){return(new Sn).fromBinary(e,t)}static fromJson(e,t){return(new Sn).fromJson(e,t)}static fromJsonString(e,t){return(new Sn).fromJsonString(e,t)}static equals(e,t){return nt.util.equals(Sn,e,t)}}Sn.runtime=nt,Sn.typeName="google.protobuf.compiler.CodeGeneratorRequest",Sn.fields=nt.util.newFieldList((()=>[{no:1,name:"file_to_generate",kind:"scalar",T:9,repeated:!0},{no:2,name:"parameter",kind:"scalar",T:9,opt:!0},{no:15,name:"proto_file",kind:"message",T:_t,repeated:!0},{no:17,name:"source_file_descriptors",kind:"message",T:_t,repeated:!0},{no:3,name:"compiler_version",kind:"message",T:xn,opt:!0}]));class _n extends M{constructor(e){super(),this.file=[],nt.util.initPartial(e,this)}static fromBinary(e,t){return(new _n).fromBinary(e,t)}static fromJson(e,t){return(new _n).fromJson(e,t)}static fromJsonString(e,t){return(new _n).fromJsonString(e,t)}static equals(e,t){return nt.util.equals(_n,e,t)}}var Cn,En,kn,zn;_n.runtime=nt,_n.typeName="google.protobuf.compiler.CodeGeneratorResponse",_n.fields=nt.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9,opt:!0},{no:2,name:"supported_features",kind:"scalar",T:4,opt:!0},{no:3,name:"minimum_edition",kind:"scalar",T:5,opt:!0},{no:4,name:"maximum_edition",kind:"scalar",T:5,opt:!0},{no:15,name:"file",kind:"message",T:Pn,repeated:!0}])),function(e){e[e.NONE=0]="NONE",e[e.PROTO3_OPTIONAL=1]="PROTO3_OPTIONAL",e[e.SUPPORTS_EDITIONS=2]="SUPPORTS_EDITIONS"}(Cn||(Cn={})),nt.util.setEnumType(Cn,"google.protobuf.compiler.CodeGeneratorResponse.Feature",[{no:0,name:"FEATURE_NONE"},{no:1,name:"FEATURE_PROTO3_OPTIONAL"},{no:2,name:"FEATURE_SUPPORTS_EDITIONS"}]);class Pn extends M{constructor(e){super(),nt.util.initPartial(e,this)}static fromBinary(e,t){return(new Pn).fromBinary(e,t)}static fromJson(e,t){return(new Pn).fromJson(e,t)}static fromJsonString(e,t){return(new Pn).fromJsonString(e,t)}static equals(e,t){return nt.util.equals(Pn,e,t)}}Pn.runtime=nt,Pn.typeName="google.protobuf.compiler.CodeGeneratorResponse.File",Pn.fields=nt.util.newFieldList((()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"insertion_point",kind:"scalar",T:9,opt:!0},{no:15,name:"content",kind:"scalar",T:9,opt:!0},{no:16,name:"generated_code_info",kind:"message",T:Qt,opt:!0}]));class An extends M{constructor(e){super(),this.fileName="",tt.util.initPartial(e,this)}static fromBinary(e,t){return(new An).fromBinary(e,t)}static fromJson(e,t){return(new An).fromJson(e,t)}static fromJsonString(e,t){return(new An).fromJsonString(e,t)}static equals(e,t){return tt.util.equals(An,e,t)}}An.runtime=tt,An.typeName="google.protobuf.SourceContext",An.fields=tt.util.newFieldList((()=>[{no:1,name:"file_name",kind:"scalar",T:9}])),function(e){e[e.PROTO2=0]="PROTO2",e[e.PROTO3=1]="PROTO3",e[e.EDITIONS=2]="EDITIONS"}(En||(En={})),tt.util.setEnumType(En,"google.protobuf.Syntax",[{no:0,name:"SYNTAX_PROTO2"},{no:1,name:"SYNTAX_PROTO3"},{no:2,name:"SYNTAX_EDITIONS"}]);class Dn extends M{constructor(e){super(),this.name="",this.fields=[],this.oneofs=[],this.options=[],this.syntax=En.PROTO2,this.edition="",tt.util.initPartial(e,this)}static fromBinary(e,t){return(new Dn).fromBinary(e,t)}static fromJson(e,t){return(new Dn).fromJson(e,t)}static fromJsonString(e,t){return(new Dn).fromJsonString(e,t)}static equals(e,t){return tt.util.equals(Dn,e,t)}}Dn.runtime=tt,Dn.typeName="google.protobuf.Type",Dn.fields=tt.util.newFieldList((()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"fields",kind:"message",T:Tn,repeated:!0},{no:3,name:"oneofs",kind:"scalar",T:9,repeated:!0},{no:4,name:"options",kind:"message",T:Nn,repeated:!0},{no:5,name:"source_context",kind:"message",T:An},{no:6,name:"syntax",kind:"enum",T:tt.getEnumType(En)},{no:7,name:"edition",kind:"scalar",T:9}]));class Tn extends M{constructor(e){super(),this.kind=kn.TYPE_UNKNOWN,this.cardinality=zn.UNKNOWN,this.number=0,this.name="",this.typeUrl="",this.oneofIndex=0,this.packed=!1,this.options=[],this.jsonName="",this.defaultValue="",tt.util.initPartial(e,this)}static fromBinary(e,t){return(new Tn).fromBinary(e,t)}static fromJson(e,t){return(new Tn).fromJson(e,t)}static fromJsonString(e,t){return(new Tn).fromJsonString(e,t)}static equals(e,t){return tt.util.equals(Tn,e,t)}}Tn.runtime=tt,Tn.typeName="google.protobuf.Field",Tn.fields=tt.util.newFieldList((()=>[{no:1,name:"kind",kind:"enum",T:tt.getEnumType(kn)},{no:2,name:"cardinality",kind:"enum",T:tt.getEnumType(zn)},{no:3,name:"number",kind:"scalar",T:5},{no:4,name:"name",kind:"scalar",T:9},{no:6,name:"type_url",kind:"scalar",T:9},{no:7,name:"oneof_index",kind:"scalar",T:5},{no:8,name:"packed",kind:"scalar",T:8},{no:9,name:"options",kind:"message",T:Nn,repeated:!0},{no:10,name:"json_name",kind:"scalar",T:9},{no:11,name:"default_value",kind:"scalar",T:9}])),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"}(kn||(kn={})),tt.util.setEnumType(kn,"google.protobuf.Field.Kind",[{no:0,name:"TYPE_UNKNOWN"},{no:1,name:"TYPE_DOUBLE"},{no:2,name:"TYPE_FLOAT"},{no:3,name:"TYPE_INT64"},{no:4,name:"TYPE_UINT64"},{no:5,name:"TYPE_INT32"},{no:6,name:"TYPE_FIXED64"},{no:7,name:"TYPE_FIXED32"},{no:8,name:"TYPE_BOOL"},{no:9,name:"TYPE_STRING"},{no:10,name:"TYPE_GROUP"},{no:11,name:"TYPE_MESSAGE"},{no:12,name:"TYPE_BYTES"},{no:13,name:"TYPE_UINT32"},{no:14,name:"TYPE_ENUM"},{no:15,name:"TYPE_SFIXED32"},{no:16,name:"TYPE_SFIXED64"},{no:17,name:"TYPE_SINT32"},{no:18,name:"TYPE_SINT64"}]),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.OPTIONAL=1]="OPTIONAL",e[e.REQUIRED=2]="REQUIRED",e[e.REPEATED=3]="REPEATED"}(zn||(zn={})),tt.util.setEnumType(zn,"google.protobuf.Field.Cardinality",[{no:0,name:"CARDINALITY_UNKNOWN"},{no:1,name:"CARDINALITY_OPTIONAL"},{no:2,name:"CARDINALITY_REQUIRED"},{no:3,name:"CARDINALITY_REPEATED"}]);class In extends M{constructor(e){super(),this.name="",this.enumvalue=[],this.options=[],this.syntax=En.PROTO2,this.edition="",tt.util.initPartial(e,this)}static fromBinary(e,t){return(new In).fromBinary(e,t)}static fromJson(e,t){return(new In).fromJson(e,t)}static fromJsonString(e,t){return(new In).fromJsonString(e,t)}static equals(e,t){return tt.util.equals(In,e,t)}}In.runtime=tt,In.typeName="google.protobuf.Enum",In.fields=tt.util.newFieldList((()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"enumvalue",kind:"message",T:Mn,repeated:!0},{no:3,name:"options",kind:"message",T:Nn,repeated:!0},{no:4,name:"source_context",kind:"message",T:An},{no:5,name:"syntax",kind:"enum",T:tt.getEnumType(En)},{no:6,name:"edition",kind:"scalar",T:9}]));class Mn extends M{constructor(e){super(),this.name="",this.number=0,this.options=[],tt.util.initPartial(e,this)}static fromBinary(e,t){return(new Mn).fromBinary(e,t)}static fromJson(e,t){return(new Mn).fromJson(e,t)}static fromJsonString(e,t){return(new Mn).fromJsonString(e,t)}static equals(e,t){return tt.util.equals(Mn,e,t)}}Mn.runtime=tt,Mn.typeName="google.protobuf.EnumValue",Mn.fields=tt.util.newFieldList((()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"number",kind:"scalar",T:5},{no:3,name:"options",kind:"message",T:Nn,repeated:!0}]));class Nn extends M{constructor(e){super(),this.name="",tt.util.initPartial(e,this)}static fromBinary(e,t){return(new Nn).fromBinary(e,t)}static fromJson(e,t){return(new Nn).fromJson(e,t)}static fromJsonString(e,t){return(new Nn).fromJsonString(e,t)}static equals(e,t){return tt.util.equals(Nn,e,t)}}Nn.runtime=tt,Nn.typeName="google.protobuf.Option",Nn.fields=tt.util.newFieldList((()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"value",kind:"message",T:an}]));class On extends M{constructor(e){super(),this.name="",this.methods=[],this.options=[],this.version="",this.mixins=[],this.syntax=En.PROTO2,tt.util.initPartial(e,this)}static fromBinary(e,t){return(new On).fromBinary(e,t)}static fromJson(e,t){return(new On).fromJson(e,t)}static fromJsonString(e,t){return(new On).fromJsonString(e,t)}static equals(e,t){return tt.util.equals(On,e,t)}}On.runtime=tt,On.typeName="google.protobuf.Api",On.fields=tt.util.newFieldList((()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"methods",kind:"message",T:jn,repeated:!0},{no:3,name:"options",kind:"message",T:Nn,repeated:!0},{no:4,name:"version",kind:"scalar",T:9},{no:5,name:"source_context",kind:"message",T:An},{no:6,name:"mixins",kind:"message",T:Rn,repeated:!0},{no:7,name:"syntax",kind:"enum",T:tt.getEnumType(En)}]));class jn extends M{constructor(e){super(),this.name="",this.requestTypeUrl="",this.requestStreaming=!1,this.responseTypeUrl="",this.responseStreaming=!1,this.options=[],this.syntax=En.PROTO2,tt.util.initPartial(e,this)}static fromBinary(e,t){return(new jn).fromBinary(e,t)}static fromJson(e,t){return(new jn).fromJson(e,t)}static fromJsonString(e,t){return(new jn).fromJsonString(e,t)}static equals(e,t){return tt.util.equals(jn,e,t)}}jn.runtime=tt,jn.typeName="google.protobuf.Method",jn.fields=tt.util.newFieldList((()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"request_type_url",kind:"scalar",T:9},{no:3,name:"request_streaming",kind:"scalar",T:8},{no:4,name:"response_type_url",kind:"scalar",T:9},{no:5,name:"response_streaming",kind:"scalar",T:8},{no:6,name:"options",kind:"message",T:Nn,repeated:!0},{no:7,name:"syntax",kind:"enum",T:tt.getEnumType(En)}]));class Rn extends M{constructor(e){super(),this.name="",this.root="",tt.util.initPartial(e,this)}static fromBinary(e,t){return(new Rn).fromBinary(e,t)}static fromJson(e,t){return(new Rn).fromJson(e,t)}static fromJsonString(e,t){return(new Rn).fromJsonString(e,t)}static equals(e,t){return tt.util.equals(Rn,e,t)}}Rn.runtime=tt,Rn.typeName="google.protobuf.Mixin",Rn.fields=tt.util.newFieldList((()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"root",kind:"scalar",T:9}]));const Fn=tt.makeMessageType("PDFC.CorePB.Generated.Matrix",(()=>[{no:1,name:"a",kind:"scalar",T:2},{no:2,name:"b",kind:"scalar",T:2},{no:3,name:"c",kind:"scalar",T:2},{no:4,name:"d",kind:"scalar",T:2},{no:5,name:"e",kind:"scalar",T:2},{no:6,name:"f",kind:"scalar",T:2}])),Bn=tt.makeMessageType("PDFC.CorePB.Generated.Rect",(()=>[{no:1,name:"x",kind:"scalar",T:2},{no:2,name:"y",kind:"scalar",T:2},{no:3,name:"width",kind:"scalar",T:2},{no:4,name:"height",kind:"scalar",T:2}])),Ln=tt.makeMessageType("PDFC.CorePB.Generated.PdfRect",(()=>[{no:1,name:"l",kind:"scalar",T:2},{no:2,name:"t",kind:"scalar",T:2},{no:3,name:"r",kind:"scalar",T:2},{no:4,name:"b",kind:"scalar",T:2}])),Vn=tt.makeMessageType("PDFC.CorePB.Generated.RawPdfBoxes",(()=>[{no:1,name:"mediaBox",kind:"message",T:Ln},{no:2,name:"cropBox",kind:"message",T:Ln},{no:3,name:"bleedBox",kind:"message",T:Ln},{no:4,name:"trimBox",kind:"message",T:Ln}])),Kn=tt.makeMessageType("PDFC.CorePB.Generated.PageInfo",(()=>[{no:1,name:"page_index",kind:"scalar",T:5},{no:2,name:"page_label",kind:"scalar",T:9,opt:!0},{no:3,name:"rotation",kind:"scalar",T:5},{no:4,name:"width",kind:"scalar",T:2},{no:5,name:"height",kind:"scalar",T:2},{no:6,name:"matrix",kind:"message",T:Fn},{no:7,name:"reverse_matrix",kind:"message",T:Fn},{no:8,name:"transformed_bbox",kind:"message",T:Bn},{no:9,name:"untransformed_bbox",kind:"message",T:Bn},{no:10,name:"raw_pdf_boxes",kind:"message",T:Vn}])),$n=tt.makeMessageType("PDFC.CorePB.Generated.PDFPermissions",(()=>[{no:1,name:"annotations_and_forms",kind:"scalar",T:8},{no:2,name:"assemble",kind:"scalar",T:8},{no:3,name:"extract",kind:"scalar",T:8},{no:4,name:"extract_accessibility",kind:"scalar",T:8},{no:5,name:"fill_forms",kind:"scalar",T:8},{no:6,name:"modification",kind:"scalar",T:8},{no:7,name:"print_high_quality",kind:"scalar",T:8},{no:8,name:"printing",kind:"scalar",T:8}])),Hn=tt.makeMessageType("PDFC.CorePB.Generated.Metadata",(()=>[{no:1,name:"author",kind:"scalar",T:9,opt:!0},{no:2,name:"creator",kind:"scalar",T:9,opt:!0},{no:3,name:"date_created",kind:"scalar",T:9,opt:!0},{no:4,name:"date_modified",kind:"scalar",T:9,opt:!0},{no:5,name:"producer",kind:"scalar",T:9,opt:!0},{no:6,name:"title",kind:"scalar",T:9,opt:!0},{no:7,name:"subject",kind:"scalar",T:9,opt:!0},{no:8,name:"keywords",kind:"scalar",T:9,opt:!0}])),Un=tt.makeMessageType("PDFC.CorePB.Generated.PDFID",(()=>[{no:1,name:"permanent",kind:"scalar",T:9},{no:2,name:"changing",kind:"scalar",T:9}])),qn=tt.makeMessageType("PDFC.CorePB.Generated.DocumentInfo",(()=>[{no:1,name:"page_count",kind:"scalar",T:5},{no:2,name:"title",kind:"scalar",T:9,opt:!0},{no:3,name:"permissions",kind:"message",T:$n,opt:!0},{no:4,name:"metadata",kind:"message",T:Hn},{no:5,name:"page_info",kind:"map",K:5,V:{kind:"message",T:Kn}},{no:6,name:"pdf_id",kind:"message",T:Un,opt:!0}])),Wn=tt.makeEnum("PDFC.CorePB.Generated.Availability",[{no:0,name:"ERROR"},{no:1,name:"AVAILABLE"},{no:2,name:"NOT_AVAILABLE_YET"}]),Gn=tt.makeEnum("PDFC.CorePB.Generated.IsLinearized",[{no:0,name:"UNKNOWN"},{no:1,name:"LINEARIZED"},{no:2,name:"NOT_LINEARIZED"}]),Yn=tt.makeEnum("PDFC.CorePB.Generated.PageEncoding",[{no:0,name:"JPEG"},{no:1,name:"PNG"},{no:2,name:"WEBP"},{no:3,name:"TIFF"},{no:4,name:"GIF"},{no:5,name:"BITMAP"}]),Zn=tt.makeMessageType("PDFC.CorePB.Generated.DownloadChunk",(()=>[{no:2,name:"offset",kind:"scalar",T:3},{no:3,name:"size",kind:"scalar",T:3}])),Jn=tt.makeMessageType("PDFC.CorePB.Generated.AvailabilityWithDownloads",(()=>[{no:1,name:"is_available",kind:"enum",T:tt.getEnumType(Wn)},{no:2,name:"downloads_required",kind:"message",T:Zn,repeated:!0}])),Xn=tt.makeMessageType("PDFC.CorePB.Generated.IsPageAvailableRequest",(()=>[{no:1,name:"linearized_instance_id",kind:"scalar",T:5},{no:2,name:"page_index",kind:"scalar",T:5}])),Qn=tt.makeMessageType("PDFC.CorePB.Generated.IsPageAvailableResponse",(()=>[{no:1,name:"is_page_available",kind:"message",T:Jn},{no:2,name:"page_info",kind:"message",T:Kn,opt:!0}])),er=tt.makeMessageType("PDFC.CorePB.Generated.GetDocumentInfoRequest",(()=>[{no:1,name:"linearized_instance_id",kind:"scalar",T:5}])),tr=tt.makeMessageType("PDFC.CorePB.Generated.GetDocumentInfoResponse",(()=>[{no:1,name:"is_available",kind:"message",T:Jn,oneof:"response"},{no:2,name:"document_info",kind:"message",T:qn,oneof:"response"}])),nr=tt.makeMessageType("PDFC.CorePB.Generated.IsDocumentAvailableRequest",(()=>[{no:1,name:"linearized_instance_id",kind:"scalar",T:5}])),rr=tt.makeMessageType("PDFC.CorePB.Generated.IsDocumentAvailableResponse",(()=>[{no:1,name:"is_available",kind:"message",T:Jn}])),or=tt.makeMessageType("PDFC.CorePB.Generated.OnDataWrittenRequest",(()=>[{no:1,name:"linearized_instance_id",kind:"scalar",T:5},{no:2,name:"offset",kind:"scalar",T:3},{no:3,name:"size",kind:"scalar",T:3}])),ir=tt.makeMessageType("PDFC.CorePB.Generated.OnDataWrittenResponse",[]),ar=tt.makeMessageType("PDFC.CorePB.Generated.IsLinearizedRequest",(()=>[{no:1,name:"linearized_instance_id",kind:"scalar",T:5}])),sr=tt.makeMessageType("PDFC.CorePB.Generated.IsLinearizedResponse",(()=>[{no:1,name:"is_linearized",kind:"enum",T:tt.getEnumType(Gn)},{no:2,name:"downloads_required",kind:"message",T:Zn,repeated:!0}])),lr=tt.makeMessageType("PDFC.CorePB.Generated.InitializeRequest",(()=>[{no:1,name:"filepath",kind:"scalar",T:9},{no:2,name:"full_file_size",kind:"scalar",T:3}])),cr=tt.makeMessageType("PDFC.CorePB.Generated.InitializeResponse",(()=>[{no:1,name:"linearized_instance_id",kind:"scalar",T:5}])),ur=tt.makeMessageType("PDFC.CorePB.Generated.GetContentTreeRequest",(()=>[{no:1,name:"linearized_instance_id",kind:"scalar",T:5},{no:2,name:"page_index",kind:"scalar",T:5}])),dr=tt.makeMessageType("PDFC.CorePB.Generated.GetContentTreeResponse",(()=>[{no:1,name:"is_available",kind:"message",T:Jn},{no:2,name:"content_tree_json",kind:"scalar",T:9}])),pr=tt.makeMessageType("PDFC.CorePB.Generated.EMBindRenderRequest",(()=>[{no:1,name:"linearized_instance_id",kind:"scalar",T:5},{no:2,name:"page_index",kind:"scalar",T:5},{no:3,name:"bitmap_width",kind:"scalar",T:5},{no:4,name:"bitmap_height",kind:"scalar",T:5},{no:5,name:"bitmap_x",kind:"scalar",T:5},{no:6,name:"bitmap_y",kind:"scalar",T:5},{no:7,name:"page_width",kind:"scalar",T:5},{no:8,name:"page_height",kind:"scalar",T:5},{no:9,name:"page_encoding",kind:"enum",T:tt.getEnumType(Yn)}])),hr=tt.makeMessageType("PDFC.CorePB.Generated.CloseRequest",(()=>[{no:1,name:"linearized_instance_id",kind:"scalar",T:5}])),fr=tt.makeMessageType("PDFC.CorePB.Generated.CloseResponse",[]);class mr{constructor(e,t,n){(0,c.A)(this,"identifier","LinearizedRenderingRequest"),this.coreClient=e,this.embindRequest=t,this.format=n}async request(){return{buffer:new Uint8Array(await this.coreClient.renderLinearized(this.embindRequest.toBinary())),format:this.format}}}async function gr(e,t,n,r){(0,u.v)(e.wasmCtx,"Wasm context is required for linearized rendering."),await r.whenPageAvailable(t.pageIndex,n),t.options.format=t.options.format??_r.Bitmap;const o=g(t.options.format,t.pageSize),i=new pr;i.linearizedInstanceId=r.linearizedInstanceId,i.pageIndex=t.pageIndex,i.bitmapWidth=t.tileRect.width,i.bitmapHeight=t.tileRect.height,i.bitmapX=t.tileRect.left,i.bitmapY=t.tileRect.top,i.pageWidth=t.pageSize.width,i.pageHeight=t.pageSize.height,i.pageEncoding=function(e){switch(e){case _r.Bitmap:return Yn.BITMAP;case _r.JPEG:return Yn.JPEG;case _r.PNG:return Yn.PNG;case _r.WebP:return Yn.WEBP;default:throw new s.Sx(`Unsupported image format: ${e}`)}}(o);const{promise:a,cancel:l}=e.requestQueue.enqueue(new mr(e.wasmCtx.engine.coreClient,i,o),t.options.priority??Sr.Normal);return n.addCancelFn(l),a}const vr=(e,t,n,r,o,i,l)=>{const c=new s.ql,d=(0,a.f)(e,(async a=>{const s={pageIndex:t,pageSize:n,tileRect:r,options:o,documentState:i},l=a.linearizedInstance?.deref();return l&&l.isRunning()?gr(e,s,c,l):async function(e,t,n){t.options.format=t.options.format??_r.Bitmap;const r=g(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??Sr.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,u.v)(1==a.values.length,"Should have exactly one image buffer in result."),(0,u.v)(a.values[0]instanceof Uint8Array),{buffer:a.values[0],format:r}}(a,s,c)}),(async a=>{(0,u.v)(!o.format,"Requesting image format is not supported on server.");const d=`page-${t}-dimensions-${n.width}-${n.height}-tile-${r.left}-${r.top}-${r.width}-${r.height}${o.renderForPrinting?"-print":""}`,p=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,u.v)(r,`Attachment data '${t}' could not be found.`),(0,u.v)(r.data,`Attachment '${t}' doesn't have any data.`),n.append(t,r.data)})),n})(i,l):void 0,g={method:p?"POST":"GET",body:p,headers:f!=h.Webkit||n.width<=m&&n.height<=m?{Accept:"image/webp,*/*"}:void 0},y=c.addPromise(S(e.requestQueue,a,d,o.priority,w.ImageToken,g)),b=await y;if(!b.ok){if("application/json"!==b.headers.get("content-type"))throw new s.Sx(`The image can not be rendered because of an unknown error (${b.status})`);{const a=await b.json();if(a.attachments_not_found){if(!i)throw new s.Sx("Document state is required when attachments are missing");for(const e of a.attachments_not_found)if(!i.attachments[e])throw new s.Sx(`Attachment ${e} not found in document state, but required by server.`);const l=vr(e,t,n,r,o,i,a.attachments_not_found);return c.addCancelFn((()=>{l.cancel()})),l.promise}if(a.error)throw new s.Sx(`The server could not render the requested image (${a.error})`)}}const x=await b.arrayBuffer();return{buffer:new Uint8Array(x),format:v(b.headers.get("content-type"))}}));return c.wrapPromise(d)};var yr=n(45605),br=n(27957);const wr=(e,t)=>{const n=new yr.q,r=(0,a.f)(e,(async e=>{const r=await n.addPromise(e.engine.executeCommand("page_info",Sr.Normal,{page:t,query:"text_lines"}));(0,u.v)(1==r.values.length,"Should have exactly one result.");const o=r.values[0];return(0,u.v)((0,br.Go)(o),"Should have a binary result."),JSON.parse((new TextDecoder).decode(o)).textLines}),(async r=>{const o=await n.addPromise(S(e.requestQueue,r,`page-${t}-text`,Sr.Normal,w.Token));return(await o.json()).textLines}));return n.wrapPromise(r)},xr=(e,t)=>{const n=new yr.q,r=(0,a.f)(e,(async e=>{const r=await n.addPromise(e.engine.executeCommand("get_content_tree",Sr.Normal,{pageIndex:t,version:1}));return(0,u.v)(1==r.values.length,"Should have exactly one result."),(0,u.v)((0,br.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(S(e.requestQueue,r,i,Sr.Normal,w.Token))).json()}),(async(e,r)=>(await r.whenPageAvailable(t,n),[await r.getContentTree(t)])));return n.wrapPromise(r)};let Sr=function(e){return e[e.Normal=0]="Normal",e[e.High=1]="High",e}({}),_r=function(e){return e.PNG="png",e.JPEG="jpeg",e.WebP="webp",e.Bitmap="bitmap",e}({});var Cr=n(44268),Er=n(13649);const kr=tt.makeEnum("PDFC.WASM.Protobuf.Generated.Code",[{no:0,name:"OK"},{no:2,name:"UNKNOWN"},{no:3,name:"INVALID_ARGUMENT"},{no:4,name:"DEADLINE_EXCEEDED"},{no:5,name:"NOT_FOUND"},{no:6,name:"ALREADY_EXISTS"},{no:7,name:"PERMISSION_DENIED"},{no:16,name:"UNAUTHENTICATED"},{no:8,name:"RESOURCE_EXHAUSTED"},{no:9,name:"FAILED_PRECONDITION"},{no:10,name:"ABORTED"},{no:11,name:"OUT_OF_RANGE"},{no:12,name:"UNIMPLEMENTED"},{no:13,name:"INTERNAL"},{no:14,name:"UNAVAILABLE"},{no:15,name:"DATA_LOSS"}]),zr=tt.makeMessageType("PDFC.WASM.Protobuf.Generated.Status",(()=>[{no:1,name:"code",kind:"enum",T:tt.getEnumType(kr)},{no:2,name:"message",kind:"scalar",T:9}]));class Pr{constructor(e){this.bridgeFn=e}async Initialize(e){let t=await this.bridgeFn("PDFC.CorePB.Generated.Linearized","Initialize",e.toBinary());if(!t.success){const e=zr.fromBinary(t.result.slice());throw new Error(e.message,{cause:e})}if(!t.result)throw new Error("No result returned - this should not happen.");return cr.fromBinary(t.result.slice())}async IsLinearized(e){let t=await this.bridgeFn("PDFC.CorePB.Generated.Linearized","IsLinearized",e.toBinary());if(!t.success){const e=zr.fromBinary(t.result.slice());throw new Error(e.message,{cause:e})}if(!t.result)throw new Error("No result returned - this should not happen.");return sr.fromBinary(t.result.slice())}async IsDocumentAvailable(e){let t=await this.bridgeFn("PDFC.CorePB.Generated.Linearized","IsDocumentAvailable",e.toBinary());if(!t.success){const e=zr.fromBinary(t.result.slice());throw new Error(e.message,{cause:e})}if(!t.result)throw new Error("No result returned - this should not happen.");return rr.fromBinary(t.result.slice())}async IsPageAvailable(e){let t=await this.bridgeFn("PDFC.CorePB.Generated.Linearized","IsPageAvailable",e.toBinary());if(!t.success){const e=zr.fromBinary(t.result.slice());throw new Error(e.message,{cause:e})}if(!t.result)throw new Error("No result returned - this should not happen.");return Qn.fromBinary(t.result.slice())}async GetDocumentInfo(e){let t=await this.bridgeFn("PDFC.CorePB.Generated.Linearized","GetDocumentInfo",e.toBinary());if(!t.success){const e=zr.fromBinary(t.result.slice());throw new Error(e.message,{cause:e})}if(!t.result)throw new Error("No result returned - this should not happen.");return tr.fromBinary(t.result.slice())}async OnDataWritten(e){let t=await this.bridgeFn("PDFC.CorePB.Generated.Linearized","OnDataWritten",e.toBinary());if(!t.success){const e=zr.fromBinary(t.result.slice());throw new Error(e.message,{cause:e})}if(!t.result)throw new Error("No result returned - this should not happen.");return ir.fromBinary(t.result.slice())}async GetContentTree(e){let t=await this.bridgeFn("PDFC.CorePB.Generated.Linearized","GetContentTree",e.toBinary());if(!t.success){const e=zr.fromBinary(t.result.slice());throw new Error(e.message,{cause:e})}if(!t.result)throw new Error("No result returned - this should not happen.");return dr.fromBinary(t.result.slice())}async Close(e){let t=await this.bridgeFn("PDFC.CorePB.Generated.Linearized","Close",e.toBinary());if(!t.success){const e=zr.fromBinary(t.result.slice());throw new Error(e.message,{cause:e})}if(!t.result)throw new Error("No result returned - this should not happen.");return fr.fromBinary(t.result.slice())}}class Ar{constructor(e,t){void 0===t?(this.start=e,this.end=e):(this.start=e,this.end=t)}static InvalidRange(){return new Ar(Number.MAX_SAFE_INTEGER)}isValid(){return!this.equals(Ar.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 Ar(t,n):Ar.InvalidRange()}toString(){return`[${this.start},${this.end})`}}function Dr(e){return e.isValid()&&e.isReversed()?new Ar(e.end+1,e.start+1):e}class Tr{constructor(e){this.ranges=[],e instanceof Ar?this.union(e):e instanceof Tr&&(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=Dr(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 Ar(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 Ar(o,i))}unionRangeSet(e){for(const t of e.ranges)this.union(t)}contains(e){if(e.isEmpty())return!1;const t=Dr(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=Dr(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 Ar(t.end));if(n==r)return;const o=[];for(let e=n;e!=r;e++){const n=new Ar(this.ranges[e].start,Math.min(this.ranges[e].end,t.start)),r=new Ar(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 Ir{constructor(e){(0,c.A)(this,"kChunkSize",65535),(0,c.A)(this,"eofPos",0),(0,c.A)(this,"filledChunks",new Tr),(0,c.A)(this,"filledChunksCount",0),e&&(this.kChunkSize=e)}setChunkData(e){this.filledChunks.union(new Ar(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 Ar(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 Ar(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 Ar(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 Mr=function(e){return e[e.Debug=3]="Debug",e[e.Info=2]="Info",e[e.Warn=1]="Warn",e}(Mr||{});const Nr=br.TH?Mr.Debug:Mr.Warn;function Or(e){if(!e)throw new Error("Matrix is required");return[e.a,e.b,e.c,e.d,e.e,e.f]}function jr(e){if(!e)throw new Error("Rect is required");return[e.x,e.y,e.width,e.height]}function Rr(e){return e?[e.l,e.t,e.r,e.b]:null}function Fr(e){if(!e)throw new Error("RawPdfBoxes is required");return{mediaBox:Rr(e.mediaBox),cropBox:Rr(e.cropBox),bleedBox:Rr(e.bleedBox),trimBox:Rr(e.trimBox)}}function Br(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:Or(e.matrix),reverseMatrix:Or(e.reverseMatrix),transformedBBox:jr(e.transformedBbox),untransformedBBox:jr(e.untransformedBbox),rawPdfBoxes:Fr(e.rawPdfBoxes)}}function Lr(e){if(e)return{author:e.author,creator:e.creator,dateCreated:e.dateCreated,dateModified:e.dateModified,producer:e.producer}}function Vr(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 Kr=function(e){let t=!0;return{debug(){if(!(Mr.Debug>Nr)&&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(!(Mr.Info>Nr)&&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(!(Mr.Warn>Nr)&&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 $r=function(e){return e.Yes="Yes",e.No="No",e.Unknown="Unknown",e}({}),Hr=function(e){return e.IsAvailable="IsAvailable",e.IsNotAvailableYet="IsNotAvailable",e.Error="Error",e}({});function Ur(e){return`Page-${e}`}let qr=function(e){return e[e.Progress=0]="Progress",e[e.Complete=1]="Complete",e[e.Error=2]="Error",e}({});const Wr=new FinalizationRegistry((e=>{try{Kr.debug("Finalizing linearized service with id "+e.linearizedInstanceId),e.coreClient.closeFile(e.fileDescriptor),e.linearizedService.Close(new hr({linearizedInstanceId:e.linearizedInstanceId}))}catch(e){}}));let Gr=function(e){return e.Uninitialized="Uninitialized",e.Initialized="Initialized",e.Downloading="Downloading",e.Complete="Complete",e.Destroyed="Destroyed",e.Error="Error",e}({});var Yr=new WeakMap,Zr=new WeakMap,Jr=new WeakMap,Xr=new WeakMap,Qr=new WeakMap,eo=new WeakMap,to=new WeakMap,no=new WeakMap,ro=new WeakMap,oo=new WeakMap,io=new WeakMap,ao=new WeakMap,so=new WeakMap,lo=new WeakMap;class co{constructor(e,t,n){Vr(this,Yr,{writable:!0,value:void 0}),Vr(this,Zr,{writable:!0,value:Gr.Uninitialized}),Vr(this,Jr,{writable:!0,value:new y}),Vr(this,Xr,{writable:!0,value:void 0}),Vr(this,Qr,{writable:!0,value:void 0}),Vr(this,eo,{writable:!0,value:void 0}),Vr(this,to,{writable:!0,value:void 0}),Vr(this,no,{writable:!0,value:void 0}),Vr(this,ro,{writable:!0,value:0}),Vr(this,oo,{writable:!0,value:new Ir}),Vr(this,io,{writable:!0,value:new Tr}),Vr(this,ao,{writable:!0,value:new Map}),Vr(this,so,{writable:!0,value:new Map}),Vr(this,lo,{writable:!0,value:new Map}),(0,Er.A)(this,Qr,e),(0,Er.A)(this,eo,n??new Pr(e.engine.coreClient.corePBProtoBridge.bind(e.engine.coreClient))),(0,Er.A)(this,to,t),(0,Cr.A)(this,Qr).engine.coreClient.writeFile(t,new Uint8Array),Kr.debug("initialized")}async destroy(){this.changeState(Gr.Destroyed)}on(e,t){(0,Cr.A)(this,Jr).on(e,t)}off(e,t){(0,Cr.A)(this,Jr).off(e,t)}get state(){return(0,Cr.A)(this,Zr)}get eventEmitter(){return(0,Cr.A)(this,Jr)}get linearizedInstanceId(){return(0,Cr.A)(this,Yr)}async initialize(e){(0,u.v)((0,Cr.A)(this,Zr)==Gr.Uninitialized),(0,Er.A)(this,no,await(0,Cr.A)(this,Qr).engine.coreClient.openFile((0,Cr.A)(this,to),"a")),(0,Er.A)(this,Xr,e);const t=new Headers({Range:"bytes=0-"}),n=await fetch((0,Cr.A)(this,Xr),{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,Cr.A)(this,oo).eofPos=r;if(!(206==n.status&&"application/pdf"===n.headers.get("content-type")))return!1;const o=new lr({fullFileSize:BigInt(r),filepath:(0,Cr.A)(this,to)}),i=await(0,Cr.A)(this,eo).Initialize(o);return(0,Er.A)(this,Yr,i.linearizedInstanceId),Wr.register(this,{linearizedService:(0,Cr.A)(this,eo),linearizedInstanceId:(0,Cr.A)(this,Yr),fileDescriptor:(0,Cr.A)(this,no),coreClient:(0,Cr.A)(this,Qr).engine.coreClient}),Kr.debug("Server supports streaming document."),this.changeState(Gr.Initialized),!0}async kickStartDownload(){this.assertNotUninitialized();const e=new nr({linearizedInstanceId:(0,Cr.A)(this,Yr)}),t=await(0,Cr.A)(this,eo).IsDocumentAvailable(e);(0,u.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,Cr.A)(this,lo).has(e)){const t=(0,Cr.A)(this,lo).get(e);return(0,u.v)(t),Promise.resolve(t)}let n,r;const o=new Promise((function(e,t){n=e,r=t}));return Kr.debug(`Waiting for page ${e} to be available`),this.trackDownload(Ur(e)),this.checkIsPageAvailable(e).then((i=>i.availability==Hr.IsAvailable?(Kr.debug(`Page ${e} is already available`),this.freeDownload(Ur(e)),Promise.resolve(i.pageInfo)):(Kr.debug(`Page ${e} is not available yet`),(0,Cr.A)(this,Jr).once(qr.Progress,(()=>{this.pageAvailabilityCheck(e,(e=>{(0,u.v)(e.availability==Hr.IsAvailable),n(e.pageInfo)}),r,t)})),o)))}async getContentTree(e){this.assertNotUninitialized();const t=await(0,Cr.A)(this,eo).GetContentTree(new ur({linearizedInstanceId:(0,Cr.A)(this,Yr),pageIndex:e}));if((0,u.v)(t.isAvailable),t.isAvailable.downloadsRequired.forEach((t=>{this.scheduleDownload(Number(t.offset),Number(t.size),`ContentTree-${e}`)})),t.isAvailable.isAvailable!=Wn.AVAILABLE)throw new Error("Content tree is not available");return JSON.parse(t.contentTreeJson)}isRunning(){return(0,Cr.A)(this,Zr)!==Gr.Uninitialized&&(0,Cr.A)(this,Zr)!==Gr.Destroyed&&(0,Cr.A)(this,Zr)!==Gr.Error}isDestroyed(){return(0,Cr.A)(this,Zr)===Gr.Destroyed}isComplete(){return(0,Cr.A)(this,Zr)===Gr.Complete}async waitUntilIsLinearizedIsKnown(){if((0,Cr.A)(this,Zr)===Gr.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!==$r.Unknown&&(o(),e(t===$r.Yes))},r=e=>{o(),t(e)},o=()=>{this.off(qr.Progress,n),(0,Cr.A)(this,Jr).off(qr.Error,r)};this.on(qr.Progress,n),(0,Cr.A)(this,Jr).once(qr.Error,r),n()}))}async waitUntilDocumentInfoAvailable(){if((0,Cr.A)(this,Zr)===Gr.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 Hr.IsAvailable:return this.getDocumentInfo();case Hr.IsNotAvailableYet:return null;case Hr.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(qr.Progress,r),(0,Cr.A)(this,Jr).off(qr.Error,o)};this.on(qr.Progress,r),(0,Cr.A)(this,Jr).once(qr.Error,o)}))}async waitUntilDownloaded(){if((0,Cr.A)(this,Zr)===Gr.Error||this.isDestroyed())throw new Error("Loader encountered an error or was destroyed before download could complete.");if((0,Cr.A)(this,Zr)!==Gr.Complete)return new Promise(((e,t)=>{const n=()=>{o(),e()},r=e=>{o(),t(e)},o=()=>{(0,Cr.A)(this,Jr).off(qr.Complete,n),(0,Cr.A)(this,Jr).off(qr.Error,r)};(0,Cr.A)(this,Jr).once(qr.Complete,n),(0,Cr.A)(this,Jr).once(qr.Error,r)}))}changeState(e){(0,Cr.A)(this,Zr)!==Gr.Destroyed&&(0,Er.A)(this,Zr,e)}assertNotUninitialized(){(0,u.v)((0,Cr.A)(this,Zr)!=Gr.Uninitialized,"Linearized instance not initialized, please call initialize first")}async pageAvailabilityCheck(e,t,n,r){if(r?.isCancelled()||this.isDestroyed()||this.isComplete())return Kr.debug(`Page ${e} availability check cancelled`),void this.freeDownload(Ur(e));const o=await this.checkIsPageAvailable(e);if(r?.isCancelled()||this.isDestroyed()||this.isComplete())return Kr.debug(`Page ${e} availability check cancelled`),void this.freeDownload(Ur(e));switch(o.availability){case Hr.IsAvailable:return Kr.debug(`Page ${e} availability changed to ${o}`),this.freeDownload(Ur(e)),void t(o);case Hr.Error:return Kr.debug(`Page ${e} availability changed to ${o}`),this.freeDownload(Ur(e)),void n("Error making page available");case Hr.IsNotAvailableYet:(0,Cr.A)(this,Jr).once(qr.Progress,(()=>{this.pageAvailabilityCheck(e,t,n,r)}))}}async nextDownload(){if((0,Cr.A)(this,oo).isComplete())return Kr.debug("All chunks downloaded, we're done."),this.changeState(Gr.Complete),void(0,Cr.A)(this,Jr).emit(qr.Complete);if((0,Cr.A)(this,Zr)===Gr.Destroyed)return;const e=(0,Cr.A)(this,io).isEmpty()?0:(0,Cr.A)(this,io).ranges[0].start,t=new Tr(new Ar(e,(0,Cr.A)(this,oo).totalChunksCount()));t.subtractRangeSet((0,Cr.A)(this,oo).filledChunks);const n=t.ranges[0];Kr.debug({pendingRequests:(0,Cr.A)(this,io).toString(),filledChunks:(0,Cr.A)(this,oo).filledChunks.toString(),nextRequest:n.toString()});const r=n.start*(0,Cr.A)(this,oo).kChunkSize,o=Math.min(n.length(),15)*(0,Cr.A)(this,oo).kChunkSize,i=new Headers;i.append("Range",`bytes=${r}-${r+o-1}`),fetch((0,Cr.A)(this,Xr),{headers:i}).then((e=>{this.receivedResponse(e,r).catch((e=>{Kr.debug(`Error downloading file ${e}`),this.maybeRetryDownload(e)}))})).catch((e=>{Kr.debug(`Error downloading file ${e}`),this.maybeRetryDownload(e)}))}maybeRetryDownload(e){var t;(0,Er.A)(this,ro,(t=(0,Cr.A)(this,ro),t++,t)),(0,Cr.A)(this,ro)>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,Er.A)(this,ro,0);const n=await e.arrayBuffer(),r=new Uint8Array(n);(0,u.v)(void 0!==(0,Cr.A)(this,no)),await(0,Cr.A)(this,Qr).engine.coreClient.writeData((0,Cr.A)(this,no),r,t).then((()=>{(0,Cr.A)(this,eo).OnDataWritten(new or({linearizedInstanceId:(0,Cr.A)(this,Yr),offset:BigInt(t),size:BigInt(r.length)}))}));let o=(0,Cr.A)(this,oo).getChunkIndex(t),i=n.byteLength;const a=(0,Cr.A)(this,oo).getChunksRange(t,i);for((0,Cr.A)(this,ao).forEach(((e,t)=>{e.subtract(a),e.isEmpty()&&(0,Cr.A)(this,ao).delete(t)}));i>0;)(0,Cr.A)(this,oo).setChunkData(o),(0,Cr.A)(this,io).subtract(new Ar(o,o+1)),i-=(0,Cr.A)(this,oo).kChunkSize,o++;(0,Cr.A)(this,Jr).emit(qr.Progress),this.nextDownload()}trackDownload(e){const t=(0,Cr.A)(this,so).get(e);t?t.refCount++:(0,Cr.A)(this,so).set(e,{refCount:1})}freeDownload(e){const t=(0,Cr.A)(this,so).get(e);if(t&&(t.refCount--,0==t.refCount)){(0,Cr.A)(this,so).delete(e);const t=(0,Cr.A)(this,ao).get(e);t&&(Kr.debug(`[${e}] Freeing download, Requested chunks: ${t.toString()}`),(0,Cr.A)(this,io).subtractRangeSet(t),(0,Cr.A)(this,ao).delete(e))}}scheduleDownload(e,t,n){const r=new Tr((0,Cr.A)(this,oo).getChunksRange(e,t));if(r.subtractRangeSet((0,Cr.A)(this,oo).filledChunks),r.subtractRangeSet((0,Cr.A)(this,io)),!r.isEmpty()){(0,Cr.A)(this,io).unionRangeSet(r);const o=(0,Cr.A)(this,ao).get(n);o?o.unionRangeSet(r):(0,Cr.A)(this,ao).set(n,r),Kr.debug(`[${n}] Scheduling download for offset ${e} and size ${t}, Requested chunks: ${r.toString()}`)}(0,Cr.A)(this,Zr)===Gr.Downloading||this.isDestroyed()||(this.changeState(Gr.Downloading),this.nextDownload())}emitUnrecoverableError(e){this.changeState(Gr.Error),(0,Cr.A)(this,Jr).emit(qr.Error,e)}async getDocumentInfo(){this.assertNotUninitialized();const e=await(0,Cr.A)(this,eo).GetDocumentInfo(new er({linearizedInstanceId:(0,Cr.A)(this,Yr)}));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:Lr(t.metadata),pages:Array.from({length:t.pageCount},(()=>Br(t.pageInfo[0]))).map(((e,t)=>(e.pageIndex=t,e.pageLabel=`${t+1}`,e)))}}return(0,u.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,Cr.A)(this,eo).IsLinearized(new ar({linearizedInstanceId:(0,Cr.A)(this,Yr)}));switch(e.downloadsRequired.forEach((e=>{this.scheduleDownload(Number(e.offset),Number(e.size),"isLinearized")})),e.isLinearized){case Gn.LINEARIZED:return $r.Yes;case Gn.NOT_LINEARIZED:return $r.No;case Gn.UNKNOWN:return $r.Unknown}}async checkIsPageAvailable(e){if(this.assertNotUninitialized(),(0,Cr.A)(this,lo).has(e)){const t=(0,Cr.A)(this,lo).get(e);return(0,u.v)(t),{availability:Hr.IsAvailable,pageInfo:t}}const t=new Xn({linearizedInstanceId:(0,Cr.A)(this,Yr),pageIndex:e}),n=await(0,Cr.A)(this,eo).IsPageAvailable(t);switch((0,u.v)(n.isPageAvailable),n.isPageAvailable.downloadsRequired.forEach((t=>{this.scheduleDownload(Number(t.offset),Number(t.size),Ur(e))})),n.isPageAvailable.isAvailable){case Wn.AVAILABLE:{(0,u.v)(n.pageInfo);const t=Br(n.pageInfo);return(0,Cr.A)(this,lo).set(e,t),{availability:Hr.IsAvailable,pageInfo:t}}case Wn.NOT_AVAILABLE_YET:return{availability:Hr.IsNotAvailableYet};case Wn.ERROR:return Kr.debug("Error while checking page availability"),{availability:Hr.Error}}}}var uo=n(97595);const po=async(e,t,n)=>{const r=await e.engine.executeCommand(t,Sr.High,n);return(0,u.v)(1===r.values.length,`expected only one response for ${t}: ${r.values}`),(0,u.v)(!(r.values[0]instanceof Uint8Array),"expected JSON response: "+r.values),r.values[0]},ho=e=>{e.serverCtx&&(0,u.v)((0,a.Eh)(e,uo.l),"Content Editing is available with Document Engine version "+uo.l)};async function fo(e){if(e.serverCtx){ho(e);const t=S(e.requestQueue,e.serverCtx,"pdf",Sr.High,w.QueryToken);if(!e.wasmCtx){(0,u.v)(e.getWasmDispatch);const t=await e.getWasmDispatch();e.wasmCtx||(0,a.L9)(e,t)}(0,u.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",Sr.Normal,{file_path:"/document.pdf"}),await e.wasmCtx.engine.executeCommand("content_editing/enter",Sr.High,{}),new mo(e.wasmCtx,e)}if(e.wasmCtx)return(0,u.v)(e.wasmCtx,"wasmCtx is required."),await(e.wasmCtx?.engine.executeCommand("content_editing/enter",Sr.High,{})),new mo(e.wasmCtx,e)}class mo{constructor(e,t){(0,u.v)(e,"wasmCtx is required."),this.wasmCtx=e,this.ctx=t}async closeContentEditor(){await this.wasmCtx.engine.executeCommand("content_editing/exit",Sr.High,{})}async getTextBlocks(e){return po(this.wasmCtx,"content_editing/get_text_blocks",{pageIndex:e})}async detectParagraphs(e){return po(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",Sr.High,{textBlockId:e,renderTextBlockParams:t,externalControlState:n});return(0,u.v)(2===r.values.length,"expected only two responses for renderTextBlock. ArrayBuffer and Size info."),(0,u.v)(!(r.values[0]instanceof Uint8Array),`expected JSON response: ${r.values}`),(0,u.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 po(this.wasmCtx,"content_editing/set_cursor",{textBlockId:e,offset:t,selectText:n,externalControlState:r})}async moveTextBlockCursor(e,t,n,r){return po(this.wasmCtx,"content_editing/move_cursor",{textBlockId:e,movement:t,selectText:n,externalControlState:r})}async insertTextBlockString(e,t,n,r){return po(this.wasmCtx,"content_editing/insert_text",{textBlockId:e,cluster:t,text:n,externalControlState:r})}async insertTextBlockContentRef(e,t,n,r){return po(this.wasmCtx,"content_editing/insert_content_ref",{textBlockId:e,cluster:t,contentRef:n,externalControlState:r})}async createTextBlock(e){return po(this.wasmCtx,"content_editing/create_text_block",{pageIndex:e})}async layoutTextBlock(e,t,n,r){return po(this.wasmCtx,"content_editing/layout",{textBlockId:e,cursor:t,selection:n,externalControlState:r})}async deleteTextBlockRange(e,t,n){return po(this.wasmCtx,"content_editing/delete_range",{textBlockId:e,range:t,externalControlState:n})}async deleteTextBlockString(e,t,n){return po(this.wasmCtx,"content_editing/delete_cluster",{textBlockId:e,direction:t,externalControlState:n})}async setTextBlockSelection(e,t,n){return po(this.wasmCtx,"content_editing/set_selection",{textBlockId:e,mode:t,externalControlState:n})}async setTextBlockSelectionRange(e,t,n,r,o){return po(this.wasmCtx,"content_editing/set_selection_range",{textBlockId:e,begin:t,end:n,mode:r,externalControlState:o})}async textBlockUndo(e,t){return po(this.wasmCtx,"content_editing/undo",{textBlockId:e,externalControlState:t})}async textBlockRedo(e,t){return po(this.wasmCtx,"content_editing/redo",{textBlockId:e,externalControlState:t})}async textBlockRestore(e,t,n){return po(this.wasmCtx,"content_editing/restore",{textBlockId:e,version:t,externalControlState:n})}async textBlockApplyFormat(e,t,n,r){return po(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){ho(this.ctx);const o=await po(this.wasmCtx,"content_editing/save_to_document",{path:e,textBlockSaveInfos:t,graphicBlockSaveInfos:n,alsoSaveUpdate:!0,updateSavePath:r});(0,u.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 S(this.ctx.requestQueue,this.ctx.serverCtx,"update-source-document",Sr.High,w.Token,{method:"POST",body:i})).ok)return;(0,u.v)(this.ctx.serverCtx,"serverCtx is required."),i=new FormData,i.append("file",new Blob([await this.wasmCtx.engine.coreClient.readFile(e)]),"file"),await S(this.ctx.requestQueue,this.ctx.serverCtx,"replace-source-document",Sr.High,w.Token,{method:"POST",body:i})}else await this.wasmCtx.engine.executeCommand("content_editing/save_to_document",Sr.High,{path:e,textBlockSaveInfos:t,graphicBlockSaveInfos:n})}catch(t){throw new Error(`Error saving to ${e}: ${t.message}`)}}async getAvailableFaces(){return po(this.wasmCtx,"content_editing/available_faces")}async detectPageElements(e){return po(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",Sr.High,{graphicBlockId:e,renderGraphicBlockParams:t});return(0,u.v)(2===n.values.length,"expected only two responses for renderGraphicBlock. ArrayBuffer and Size info."),(0,u.v)(!(n.values[0]instanceof Uint8Array),`expected JSON response: ${n.values}`),(0,u.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,u.v)("string"==typeof e.jsonCommand.type,"expected string type"),e.jsonCommand.type.startsWith("content_editing/"))))}}},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(49014),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}=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}]).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])}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",[])}compareDocuments(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("compareDocuments",[e])}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(97967),n(80658);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,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(t){const{default:t}=await n.e(8329).then(n.bind(n,11005));e=new t}else e=new Worker(new URL(n.p+n.u(5601),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)))]}const i=o.filter((n=>e[n]!==t[n]));return i.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;const r=t.slice(1).reduce(((e,t)=>i(e,t)),t[0]);return r||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://pspdfkit.com/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}},97425:(e,t,n)=>{"use strict";n.d(t,{$n:()=>d,e2:()=>p,pe:()=>vt,PY:()=>cn,so:()=>Yn,lT:()=>_t,XA:()=>St,gJ:()=>Ht,aF:()=>Bt,ke:()=>Wt,z6:()=>on,ks:()=>en,s6:()=>Mt,Dl:()=>r});var r={};n.r(r),n.d(r,{applyStyle:()=>Ln,cssStringToObject:()=>bn,deserialize:()=>vn,escapeHtml:()=>gn,getComputedStyleAll:()=>On,getInnerHTML:()=>kn,getLastNCharacters:()=>An,getSelectedNodesColor:()=>jn,getStyleString:()=>wn,getText:()=>_n,getWrapperTags:()=>En,isAtStartOfWordOrText:()=>Dn,isMarkActive:()=>xn,isRangeSelected:()=>Pn,isSelectionUnderlined:()=>Vn,parseHTML:()=>Cn,prepareHTML:()=>zn,serialize:()=>yn,setStyleOrToggleFormat:()=>In,toHex:()=>Mn,toggleMark:()=>Sn,unwrapNode:()=>Bn,wrapNode:()=>Fn});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,t){f(2,arguments);var n=m(e).getTime(),r=h(t);return new Date(n+r)}function v(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 y(e){f(1,arguments);var t=m(e);return!isNaN(t)}var b={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 w(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}const x={date:w({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:w({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:w({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var S={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function _(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 C={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:_({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:_({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:_({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:_({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:_({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 E(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)?z(l,(function(e){return e.test(s)})):k(l,(function(e){return e.test(s)}));a=e.valueCallback?e.valueCallback(c):c,a=n.valueCallback?n.valueCallback(a):a;var u=t.slice(s.length);return{value:a,rest:u}}}function k(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function z(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}var P,A={ordinalNumber:(P={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(P.matchPattern);if(!n)return null;var r=n[0],o=e.match(P.parsePattern);if(!o)return null;var i=P.valueCallback?P.valueCallback(o[0]):o[0];i=t.valueCallback?t.valueCallback(i):i;var a=e.slice(r.length);return{value:i,rest:a}}),era:E({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:E({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:E({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:E({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:E({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 D={code:"en-US",formatDistance:function(e,t,n){var r;return n=n||{},r="string"==typeof b[e]?b[e]:1===t?b[e].one:b[e].other.replace("{{count}}",t),n.addSuffix?n.comparison>0?"in "+r:r+" ago":r},formatLong:x,formatRelative:function(e,t,n,r){return S[e]},localize:C,match:A,options:{weekStartsOn:0,firstWeekContainsDate:1}};const T=D;function I(e,t){f(2,arguments);var n=h(t);return g(e,-n)}function M(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var N={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return M("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):M(n+1,2)},d:function(e,t){return M(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 M(e.getUTCHours()%12||12,t.length)},H:function(e,t){return M(e.getUTCHours(),t.length)},m:function(e,t){return M(e.getUTCMinutes(),t.length)},s:function(e,t){return M(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return M(Math.floor(r*Math.pow(10,n-3)),t.length)}};const O=N;var j=864e5;function R(e){f(1,arguments);var t=1,n=m(e),r=n.getUTCDay(),o=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-o),n.setUTCHours(0,0,0,0),n}function F(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=R(r),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var a=R(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function B(e){f(1,arguments);var t=F(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=R(n);return r}var L=6048e5;function V(e){f(1,arguments);var t=m(e),n=R(t).getTime()-B(t).getTime();return Math.round(n/L)+1}function K(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 $(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=K(c,t),d=new Date(0);d.setUTCFullYear(r,0,l),d.setUTCHours(0,0,0,0);var p=K(d,t);return n.getTime()>=u.getTime()?r+1:n.getTime()>=p.getTime()?r:r-1}function H(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=$(e,t),l=new Date(0);l.setUTCFullYear(s,0,a),l.setUTCHours(0,0,0,0);var c=K(l,t);return c}var U=6048e5;function q(e,t){f(1,arguments);var n=m(e),r=K(n,t).getTime()-H(n,t).getTime();return Math.round(r/U)+1}var W="midnight",G="noon",Y="morning",Z="afternoon",J="evening",X="night",Q={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 O.y(e,t)},Y:function(e,t,n,r){var o=$(e,r),i=o>0?o:1-o;return"YY"===t?M(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):M(i,t.length)},R:function(e,t){return M(F(e),t.length)},u:function(e,t){return M(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 M(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 M(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 O.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 M(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=q(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):M(o,t.length)},I:function(e,t,n){var r=V(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):M(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):O.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=t.getTime(),o=n-r;return Math.floor(o/j)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):M(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 M(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 M(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 M(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?G:0===o?W: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?J:o>=12?Z:o>=4?Y:X,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 O.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):O.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):M(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):M(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):O.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):O.s(e,t)},S:function(e,t){return O.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 te(o);case"XXXX":case"XX":return ne(o);default:return ne(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return te(o);case"xxxx":case"xx":return ne(o);default:return ne(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+ee(o,":");default:return"GMT"+ne(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+ee(o,":");default:return"GMT"+ne(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e;return M(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,n,r){return M((r._originalDate||e).getTime(),t.length)}};function ee(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+M(i,2)}function te(e,t){return e%60==0?(e>0?"-":"+")+M(Math.abs(e)/60,2):ne(e,t)}function ne(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+M(Math.floor(o/60),2)+n+M(o%60,2)}const re=Q;function oe(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 ie(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 ae={p:ie,P:function(e,t){var n,r=e.match(/(P+)(p+)?/),o=r[1],i=r[2];if(!i)return oe(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}}",oe(o,t)).replace("{{time}}",ie(i,t))}};const se=ae;var le=["D","DD"],ce=["YY","YYYY"];function ue(e){return-1!==le.indexOf(e)}function de(e){return-1!==ce.indexOf(e)}function pe(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 he=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,fe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,me=/^'([^]*?)'?$/,ge=/''/g,ve=/[a-zA-Z]/;function ye(e,t,n){f(2,arguments);var r=String(t),o=n||{},i=o.locale||T,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(!y(p))throw new RangeError("Invalid time value");var g=v(p),b=I(p,g),w={firstWeekContainsDate:l,weekStartsOn:d,locale:i,_originalDate:p},x=r.match(fe).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,se[t])(e,i.formatLong,w):e})).join("").match(he).map((function(n){if("''"===n)return"'";var r=n[0];if("'"===r)return be(n);var a=re[r];if(a)return!o.useAdditionalWeekYearTokens&&de(n)&&pe(n,t,e),!o.useAdditionalDayOfYearTokens&&ue(n)&&pe(n,t,e),a(b,n,i.localize,w);if(r.match(ve))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return n})).join("");return x}function be(e){return e.match(me)[1].replace(ge,"'")}function we(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 xe(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=l.getUTCDay(),d=c%7,p=(d+7)%7,g=(p<s?7:0)+c-u;return l.setUTCDate(l.getUTCDate()+g),l}var Se=/^(1[0-2]|0?\d)/,_e=/^(3[0-1]|[0-2]?\d)/,Ce=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,Ee=/^(5[0-3]|[0-4]?\d)/,ke=/^(2[0-3]|[0-1]?\d)/,ze=/^(2[0-4]|[0-1]?\d)/,Pe=/^(1[0-1]|0?\d)/,Ae=/^(1[0-2]|0?\d)/,De=/^[0-5]?\d/,Te=/^[0-5]?\d/,Ie=/^\d/,Me=/^\d{1,2}/,Ne=/^\d{1,3}/,Oe=/^\d{1,4}/,je=/^-?\d+/,Re=/^-?\d/,Fe=/^-?\d{1,2}/,Be=/^-?\d{1,3}/,Le=/^-?\d{1,4}/,Ve=/^([+-])(\d{2})(\d{2})?|Z/,Ke=/^([+-])(\d{2})(\d{2})|Z/,$e=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,He=/^([+-])(\d{2}):(\d{2})|Z/,Ue=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function qe(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 We(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 Ge(e,t){return qe(je,e,t)}function Ye(e,t,n){switch(e){case 1:return qe(Ie,t,n);case 2:return qe(Me,t,n);case 3:return qe(Ne,t,n);case 4:return qe(Oe,t,n);default:return qe(new RegExp("^\\d{1,"+e+"}"),t,n)}}function Ze(e,t,n){switch(e){case 1:return qe(Re,t,n);case 2:return qe(Fe,t,n);case 3:return qe(Be,t,n);case 4:return qe(Le,t,n);default:return qe(new RegExp("^-?\\d{1,"+e+"}"),t,n)}}function Je(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function Xe(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 Qe=[31,28,31,30,31,30,31,31,30,31,30,31],et=[31,29,31,30,31,30,31,31,30,31,30,31];function tt(e){return e%400==0||e%4==0&&e%100!=0}var nt={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 Ye(4,e,o);case"yo":return n.ordinalNumber(e,{unit:"year",valueCallback:o});default:return Ye(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=Xe(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 Ye(4,e,o);case"Yo":return n.ordinalNumber(e,{unit:"year",valueCallback:o});default:return Ye(t.length,e,o)}},validate:function(e,t,n){return t.isTwoDigitYear||t.year>0},set:function(e,t,n,r){var o=$(e,r);if(n.isTwoDigitYear){var i=Xe(n.year,o);return e.setUTCFullYear(i,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),K(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),K(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 Ze("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),R(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 Ze("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 Ye(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 Ye(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 qe(Se,e,o);case"MM":return Ye(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 qe(Se,e,o);case"LL":return Ye(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 qe(Ee,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return Ye(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=53},set:function(e,t,n,r){return K(function(e,t,n){f(2,arguments);var r=m(e),o=h(t),i=q(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 qe(Ee,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return Ye(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=53},set:function(e,t,n,r){return R(function(e,t){f(2,arguments);var n=m(e),r=h(t),o=V(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 qe(_e,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return Ye(t.length,e)}},validate:function(e,t,n){var r=tt(e.getUTCFullYear()),o=e.getUTCMonth();return r?t>=1&&t<=et[o]:t>=1&&t<=Qe[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 qe(Ce,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return Ye(t.length,e)}},validate:function(e,t,n){return tt(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=xe(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 Ye(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=xe(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 Ye(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=xe(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 Ye(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=1,o=m(e),i=o.getUTCDay(),a=((n%7+7)%7<r?7:0)+n-i;return o.setUTCDate(o.getUTCDate()+a),o}(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(Je(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(Je(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(Je(n),0,0,0),e},incompatibleTokens:["a","b","t","T"]},h:{priority:70,parse:function(e,t,n,r){switch(t){case"h":return qe(Ae,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return Ye(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 qe(ke,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return Ye(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 qe(Pe,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return Ye(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 qe(ze,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return Ye(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 qe(De,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return Ye(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 qe(Te,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return Ye(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 Ye(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 We(Ve,e);case"XX":return We(Ke,e);case"XXXX":return We($e,e);case"XXXXX":return We(Ue,e);default:return We(He,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 We(Ve,e);case"xx":return We(Ke,e);case"xxxx":return We($e,e);case"xxxxx":return We(Ue,e);default:return We(He,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 Ge(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 Ge(e)},set:function(e,t,n,r){return[new Date(n),{timestampIsSet:!0}]},incompatibleTokens:"*"}};const rt=nt;var ot=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,it=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,at=/^'([^]*?)'?$/,st=/''/g,lt=/\S/,ct=/[a-zA-Z]/;function ut(e,t,n,r){f(3,arguments);var o=String(e),i=String(t),a=r||{},s=a.locale||T;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),g=null==a.weekStartsOn?p:h(a.weekStartsOn);if(!(g>=0&&g<=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:g,locale:s},w=[{priority:10,subPriority:-1,set:dt,index:0}],x=i.match(it).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,se[t])(e,s.formatLong,b):e})).join("").match(ot),S=[];for(y=0;y<x.length;y++){var _=x[y];!a.useAdditionalWeekYearTokens&&de(_)&&pe(_,i,e),!a.useAdditionalDayOfYearTokens&&ue(_)&&pe(_,i,e);var C=_[0],E=rt[C];if(E){var k=E.incompatibleTokens;if(Array.isArray(k)){for(var z=void 0,P=0;P<S.length;P++){var A=S[P].token;if(-1!==k.indexOf(A)||A===C){z=S[P];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 D=E.parse(o,_,s.match,b);if(!D)return new Date(NaN);w.push({priority:E.priority,subPriority:E.subPriority||0,set:E.set,validate:E.validate,value:D.value,index:w.length}),o=D.rest}else{if(C.match(ct))throw new RangeError("Format string contains an unescaped latin alphabet character `"+C+"`");if("''"===_?_="'":"'"===C&&(_=pt(_)),0!==o.indexOf(_))return new Date(NaN);o=o.slice(_.length)}}if(o.length>0&&lt.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=I(N,v(N)),j={};for(y=0;y<M.length;y++){var R=M[y];if(R.validate&&!R.validate(O,R.value,b))return new Date(NaN);var F=R.set(O,j,R.value,b);F[0]?(O=F[0],we(j,F[1])):O=F}return O}function dt(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}function pt(e){return e.match(at)[1].replace(st,"'")}var ht=n(43100),ft=n.n(ht),mt=n(9627);const gt={date:"yyyy-MM-dd",time:"HH:mm","datetime-local":"yyyy-MM-dd'T'HH:mm"},vt=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=ut(n.value,d,new Date);y(t)?i.value=ye(t,gt[e.type]):i.value=""}}),[n,i,e.type,d]);const[p,h]=o.useState(!1);o.useImperativeHandle(t,(()=>n),[n]);const f=mt.H8||mt.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)},v=s()({[ft().picker]:!0,[ft().firefoxDatePicker]:mt.gm});return(0,u.jsxs)("div",{className:ft().wrapper,children:[(0,u.jsx)("input",{"data-testid":"input",ref:l,name:e.name,value:e.value,style:e.style,className:s()(ft().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=ut(n.value,d,new Date);!0===y(r)&&i&&(i.value=ye(r,gt[e.type])),e.onChange?.(t)}},onBlur:m,onFocus:g}),f?(0,u.jsx)("div",{style:{opacity:p?1:0},className:ft().pickerWidget,children:(0,u.jsx)("input",{"data-testid":"picker",ref:c,className:v,type:e.type,onChange:t=>{if(n&&i){if(""===i.value)n.value="";else{const t=ut(i.value,gt[e.type],new Date);y(t)&&i&&(n.value=ye(t,d))}e.onChange?.(t)}},onBlur:m,onFocus:g,disabled:e.disabled})}):null]})}));vt.defaultProps={};n(28841);n(50749),n(57141),n(49568),n(7737),n(46323);n(81457);var yt=n(67136),bt=n(85409);var wt=n(48673),xt=n.n(wt);const St=e=>{const{children:t,onPress:n,expanded:r,ariaControls:o,className:i,headingRef:a}=e,l=e.headingTag;return(0,u.jsx)(l,{className:s()("PSPDFKit-Expando-Control",xt().control,i),ref:a,children:(0,u.jsx)("button",{className:xt().controlButton,"aria-expanded":o?r:void 0,"aria-controls":o,onClick:n,autoFocus:e.autoFocus,children:t})})};St.defaultProps={headingTag:"div"};const _t=e=>{const{children:t,expanded:n,id:r}=e;return(0,u.jsx)("div",{id:r,className:s()("PSPDFKit-Expando-Content",!n&&xt().contentHidden,!n&&"PSPDFKit-Expando-Content-Hidden"),children:t})};var Ct=n(40249),Et=n(72162),kt=n(93476);class zt extends o.Component{constructor(){super(...arguments),(0,yt.A)(this,"rootRef",o.createRef()),(0,yt.A)(this,"activeItem",o.createRef()),(0,yt.A)(this,"state",{activeItemIndex:0,focusReason:"initial"}),(0,yt.A)(this,"didSetActiveItem",!1),(0,yt.A)(this,"onActiveItemIndexChange",(()=>{this.props.onActiveItemIndexChange&&this.props.onActiveItemIndexChange(this.state.activeItemIndex)})),(0,yt.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,Ct.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,yt.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(){Pt(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,Pt(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,kt.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,bt.V1)(n,"getItemProps must be called with `{ item }`");const r=this.props.items.findIndex((e=>e===n));(0,bt.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(kt.dV)||this.setState({activeItemIndex:r,focusReason:"focus"},this.onActiveItemIndexChange)}}}});return(0,bt.V1)(n,"Did not return valid children"),(0,bt.V1)(e,"Did not call getContainerProps"),(0,bt.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(kt.dV)||this.setState({activeItemIndex:t,focusReason:"focus"},this.onActiveItemIndexChange)},children:e},t)}))})}}function Pt(e,t){if(!e||!t)return;(0,kt.iq)(e).forEach((t=>{t.parentNode!==e&&t.setAttribute("tabindex","-1")})),Array.prototype.forEach.call(t.querySelectorAll('[tabindex="-1"]'),(e=>{e.removeAttribute("tabindex")}))}(0,yt.A)(zt,"defaultProps",{prevKey:Et.jE,nextKey:Et.IA,ignoreOnKeyPress:null});var At=n(45849),Dt=n(80018),Tt=n(68942),It=n.n(Tt);const Mt=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()(It().visuallyHidden,n),...a})}));class Nt extends o.Component{constructor(){super(...arguments),(0,yt.A)(this,"_handleRef",(e=>{this._el=e,this._document=e?e.ownerDocument:null})),(0,yt.A)(this,"_handleKeyDown",(e=>{const t=this._el,n=this._document;if(e.keyCode===Et.lK&&t&&n){const r=(0,kt.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,kt.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 Ot=n(15285),jt=n.n(Ot);const Rt=[];function Ft(){const e=Rt.length-1;Rt.forEach(((t,n)=>{t.setState({isOnTop:n==e})}))}class Bt extends o.Component{constructor(){super(...arguments),(0,yt.A)(this,"descriptionId",this.props.accessibilityDescription?`modal-description-${Dt.o4.encode(this.props.accessibilityDescription).substr(0,10)}`:null),(0,yt.A)(this,"restoreOnCloseElement",this.props.restoreOnCloseElement),(0,yt.A)(this,"useBorderRadius",!1!==this.props.useBorderRadius),(0,yt.A)(this,"state",{isShaking:!1,isOnTop:!0}),(0,yt.A)(this,"_preventPropagation",(e=>{e.stopPropagation(),e.nativeEvent&&e.nativeEvent.stopImmediatePropagation()})),(0,yt.A)(this,"_handleClick",(()=>{this.props.onDismiss&&this.props.onDismiss()})),(0,yt.A)(this,"onMount",(e=>{0===Rt.length&&e.setAttribute("aria-hidden","true"),Rt.push(this),Ft()})),(0,yt.A)(this,"onUnmount",(e=>{Rt.pop(),0===Rt.length&&e.removeAttribute("aria-hidden"),Ft(),this.restoreOnCloseElement&&this.restoreOnCloseElement.focus()})),(0,yt.A)(this,"_handleKeyDown",(e=>{e.keyCode!==Et.E1&&e.keyCode!==Et.u||e.nativeEvent.stopImmediatePropagation(),this.props.onEscape&&e.keyCode===Et.XS&&(this.props.onEscape(),e.preventDefault(),e.target.ownerDocument.addEventListener("keyup",this._preventPropagation,{capture:!0,once:!0})),this.props.onEnter&&e.keyCode===Et.E1&&(this.props.onEnter(),e.preventDefault())})),(0,yt.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?Nt:o.Fragment,l=r&&i?{position:"absolute",left:i.width/2,top:i.height/2,transform:"translate(-50%, -50%)"}:{};return(0,u.jsx)(At.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()(jt().backdropContainer,"PSPDFKit-Modal-Backdrop",r&&jt().backdropFixed),onClick:this._handleClick,onKeyDown:t?this._handleKeyDown:void 0,children:(0,u.jsxs)("div",{role:this.props.role,"aria-label":this.props.accessibilityLabel,"aria-describedby":this.props.accessibilityDescription?this.descriptionId??void 0:void 0,className:s()(jt().dialog,n,"PSPDFKit-Modal-Dialog",{[jt().shaking]:e,[jt().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)(Mt,{id:this.descriptionId??void 0,children:this.props.accessibilityDescription})]})})})})})}}function Lt(e){const{children:t,className:n,spaced:r,...o}=e,i=s()(jt().section,r&&jt().sectionSpaced,r&&"PSPDFKit-Modal-Section-Spaced",n,"PSPDFKit-Modal-Section");return(0,u.jsx)("div",{...o,className:i,children:t})}function Vt(e){const{className:t,spaced:n,...r}=e,o=s()(jt().divider,n&&jt().dividerSpaced,n&&"PSPDFKit-Modal-Divider-Spaced",t,"PSPDFKit-Modal-Divider");return(0,u.jsx)("div",{...r,className:o})}(0,yt.A)(Bt,"Section",Lt),(0,yt.A)(Bt,"Divider",Vt),(0,yt.A)(Bt,"defaultProps",{role:"dialog"}),Lt.displayName="Modal.Section",Lt.defaultProps={spaced:!1},Vt.displayName="Modal.Divider",Vt.defaultProps={spaced:!0};var Kt=n(21459),$t=n.n(Kt);const Ht=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",$t().wrapper,e.wrapperClass),onClose:e.onDismiss,children:(0,u.jsx)("form",{method:"dialog",className:e.formClass,children:e.children})})}));var Ut=n(70673),qt=n.n(Ut);const Wt=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",qt().progress),style:r,role:"progressbar","aria-valuenow":e,"aria-label":`${e}% complete`,children:[(0,u.jsx)("div",{className:qt().progressBar,children:(0,u.jsx)("div",{className:qt().progressFill,style:{width:`${e}%`}})}),t?(0,u.jsx)("div",{className:qt().progressText,children:t}):null]})}return(0,u.jsxs)("div",{className:s()("PSPDFKit-Progress",qt().loader),style:r,role:"progressbar","aria-valuenow":0,"aria-label":"0% complete",children:[(0,u.jsx)("div",{className:qt().loaderDot}),(0,u.jsx)("div",{className:qt().loaderDot}),(0,u.jsx)("div",{className:qt().loaderDot})]})};var Gt=n(39089),Yt=n.n(Gt);const Zt=e=>t=>{const{className:n,children:r,...i}=t,a={...i,className:s()(Yt()[e],n)};return o.createElement(e,a,r)};Zt("p").displayName="Text";Zt("h1").displayName="HeaderText";var Jt=n(58138),Xt=n.n(Jt);const Qt=(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()({[Xt().default]:!a&&!l,[Xt().error]:a,[Xt().success]:l},e.className),m=i?"password":"text";return(0,u.jsx)("input",{...h,className:f,type:m,ref:n,onFocus:r,onBlur:d})},en=o.memo(o.forwardRef(Qt));var tn=n(77868),nn=n(36570),rn=n.n(nn);function on(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()(rn().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()(rn().iconLabel,{[rn().iconLabelIsActive]:h,[`${a}-${n}`]:!0,[`${a}-active`]:h,[rn().focusedLabelFocusVisible]:h,[rn().selectedLabel]:h&&d,[rn().radioGroupLabel]:!h&&d,[rn().fullWidthRadio]:d});return(0,u.jsxs)("label",{className:f,children:[(0,u.jsx)(Mt,{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)(tn.A,{src:p,className:s()(rn().icon,{[rn().radioGroupIcon]:d})}),!d&&(0,u.jsx)(tn.A,{src:p,className:rn().icon}),c&&(0,u.jsx)("span",{children:r})]},n)}))})}var an=n(46492),sn=n.n(an);let ln=0;function cn(e){const t=o.useRef(ln++),{label:n,accessibilityLabel:r,onUpdate:i}=e,a=o.useCallback((e=>{i(e.target.checked)}),[i]);const l=s()(sn().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,sn().root),children:[(0,u.jsx)("input",{className:s()(sn().input,e.styles.input),type:"checkbox",id:`${sn().label}-${t.current}`,onChange:a,checked:e.value}),e.label?(0,u.jsx)("label",{htmlFor:`${sn().label}-${t.current}`,className:l,children:n}):r?(0,u.jsx)("label",{htmlFor:`${sn().label}-${t.current}`,className:l,children:(0,u.jsx)(Mt,{tag:"span",children:r})}):null]})})})}var un=n(70278),dn=n(69101),pn=n(59184),hn=n(56986),fn=n(20265);const mn=/["'&<>]/;function gn(e){const t=""+e,n=mn.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 vn(e,t){if(e.nodeType===Node.TEXT_NODE)return(0,fn.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"===bn(e.getAttribute("style")||"")["text-decoration"]){n.underline=!0;break}}const r=Array.from(e.childNodes).map((e=>vn(e,n))).flat();switch(0===r.length&&r.push((0,fn.Y)("text",n,"")),e.nodeName.toUpperCase()){case"BR":return(0,fn.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,fn.Y)("element",{type:"mention",userId:t,displayName:_n(yn(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=bn(e.getAttribute("style")||""),n=t.color?Mn(t.color):void 0,o=t["background-color"]?Mn(t["background-color"]):void 0;return(0,fn.Y)("element",{type:"style",fontColor:n,backgroundColor:o},r)}return r}case"P":return(0,fn.Y)("element",{type:"paragraph"},r);case"A":return(0,fn.Y)("element",{type:"link",url:e.getAttribute("href")},r);default:return r}}function yn(e){function t(e){if(function(e){return dn.EY.isText(e)}(e)){let t=gn(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=>yn(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=wn(e);return`<span${n?` style="${n}"`:""}>${t}</span>`}default:return t}}return Array.isArray(e)?e.map((e=>t(e))).join(""):t(e)}function bn(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 wn(e){let t="";return e.fontColor&&(t+=`color: ${e.fontColor};`),e.backgroundColor&&(t+=`background-color: ${e.backgroundColor};`),t}function xn(e,t){const n=dn.KE.marks(e);return!!n&&!0===n[t]}const Sn=(e,t)=>{xn(e,t)?dn.KE.removeMark(e,t):dn.KE.addMark(e,t,!0)};function _n(e){const t=document.createElement("div");return t.innerHTML=e,t.textContent||""}function Cn(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(new DOMParser).parseFromString(e,"text/html")}function En(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const t=(e||"").match(/(<[^<>]+>)/g)||[],n={pre:[],post:[]};return t.forEach((e=>{if(e.startsWith("<html"))return n.pre.push(e),void n.post.unshift("</html>");e.startsWith("<body")&&(n.pre.push(e),n.post.unshift("</body>"))})),n}function kn(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Cn(e).body.innerHTML}function zn(e){let{changeUnderlineCSStoHTML:t=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=Cn(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 Pn(e){if(!e)return!1;const{selection:t}=e;return!!t&&dn.Q6.isExpanded(t)&&""!==dn.KE.string(e,t)}function An(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const{selection:n}=e;if(n){const[r]=dn.Q6.edges(n),o=dn.KE.before(e,r,{distance:t,unit:"character"}),i=o&&dn.KE.range(e,o,r);return{text:i&&dn.KE.string(e,i),range:i}}return null}function Dn(e){return e&&(" "===e.text||!e.range)}function Tn(e,t,n){const r={...bn(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 In(e,t,n){const r=zn(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}=Nn(e);if("fontColor"===t){let t=!1;if(e.querySelectorAll("span[style]").forEach((e=>{o(e)?(t=!0,e.setAttribute("style",Tn(e,"fontColor",n))):(e.style.color="",""===e.style.cssText&&e.replaceWith(...e.childNodes))})),!t){const t=document.createElement("span");t.setAttribute("style",Tn(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 Mn(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 Nn(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?Mn(r[r.length-1].style.color):null,backgroundColor:o.length>0?Mn(o[o.length-1].style.backgroundColor):null,isUnderlined:i.length>0,isBold:s.length>0,isItalic:c.length>0}}function On(e){const t=zn(e,{changeUnderlineCSStoHTML:!1}).querySelectorAll("p"),n=Array.from(t).map((e=>Nn(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 jn(e,t){const{selection:n}=e;if(!n)return;const[...r]=Array.from(dn.KE.nodes(e,{at:dn.KE.unhangRange(e,n),match:e=>!dn.KE.isEditor(e)&&Rn(e)})),o=r.map((e=>{let[t]=e;return t}));if(!o)return;const i=o.map((e=>Mn(e[t])));return 1===new Set(i).size?i[0]??void 0:void 0}function Rn(e){return"style"===e.type}function Fn(e,t){const{selection:n}=e;n&&dn.Q6.isCollapsed(n)?dn.gB.insertNodes(e,t):(dn.gB.wrapNodes(e,t,{split:!0}),dn.gB.collapse(e,{edge:"end"}))}function Bn(e,t){dn.gB.unwrapNodes(e,{match:e=>!dn.KE.isEditor(e)&&dn.Hg.isElement(e)&&e.type===t})}function Ln(e,t,n){(0,bt.V1)(e,"Editor is not defined.");const[r]=dn.KE.nodes(e,{match:e=>!dn.KE.isEditor(e)&&dn.Hg.isElement(e)&&Rn(e)});r?dn.gB.setNodes(e,{[t]:n},{match:e=>Rn(e),split:!0}):Fn(e,{type:"style",[t]:n,children:[{text:""}]})}function Vn(e){const{selection:t}=e;if(!t)return!1;const[...n]=Array.from(dn.KE.nodes(e,{at:dn.KE.unhangRange(e,t),match:e=>!dn.KE.isEditor(e)&&Rn(e)}));return!!n.map((e=>{let[t]=e;return t}))?.[0]?.underline}function Kn(e,t){const n=vn(zn(e));dn.gB.insertFragment(t,n)}function $n(e){return"mention"===e.type}const Hn=e=>{const{insertData:t,isInline:n,markableVoid:r,isVoid:o}=e;return e.isInline=e=>"link"===e.type||$n(e)||"style"===e.type||n(e),e.isVoid=e=>$n(e)||o(e),e.markableVoid=e=>$n(e)||r(e),e.insertData=n=>{try{const r=n.getData("text/html");if(r)return void Kn(r,e);t(n)}catch(t){!function(e){let{html:t,editor:n}=e;try{dn.gB.insertNodes(n,{type:"style",contentEditable:!1,fontSize:0,children:[{text:"​"}]}),Kn(t,n)}catch(e){return!1}}({html:n.getData("text/html"),editor:e})}},e};var Un,qn;const Wn="undefined"!=typeof navigator&&/Android/.test(navigator.userAgent),Gn="undefined"!=typeof navigator&&/Chrome/.test(navigator.userAgent),Yn=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:En(n),value:kn(n)})),[n]),z=(0,o.useRef)(null),P=o.useRef(E),A=(0,o.useMemo)((()=>Hn((0,pn.$k)((0,un.o$)((0,dn.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)?.closest(".PSPDFKit-Text-Annotation-Toolbar, .PSPDFKit-Input-Dropdown-Items, .PSPDFKit-Input-Dropdown-Button");e?.contains(t.target)||l?.({isTextToolbarClicked:r,isNativeBlurEvent:!0})}return e?.ownerDocument.addEventListener("pointerdown",t,{capture:!0}),dn.gB.select(A,dn.KE.end(A,[])),()=>{e?.ownerDocument.removeEventListener("pointerdown",t,{capture:!0})}}),[A,l]);const T=(0,o.useMemo)((()=>vn(zn(E))),[E]),I=(0,o.useCallback)((e=>(0,u.jsx)(Xn,{...e})),[]),M=(0,o.useCallback)((e=>(0,u.jsx)(Zn,{...e})),[]);(0,o.useEffect)((()=>(f?.(A),()=>{f?.(null)})),[A,f]),(0,o.useEffect)((()=>{y&&(un.rL.focus(A),S?w||setTimeout((()=>{un.rL.blur(A)}),0):setTimeout((()=>{un.rL.blur(A),un.rL.focus(A),w||un.rL.blur(A)}),0))}),[w]),(0,o.useEffect)((()=>{setTimeout((()=>{if(h&&z.current){const e=(0,bt.pQ)(h,z.current.ownerDocument);if(!e)return;const t=un.rL.toSlatePoint(A,[e.startContainer,e.startOffset],{exactMatch:!0,suppressThrow:!0});t&&dn.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&&_n(P.current).length>=c&&e.preventDefault());p?.(e)}),[c,p,d]),O=(0,o.useCallback)((()=>{const{selection:e}=A;if(e&&dn.Q6.isCollapsed(e)){const[t]=dn.Q6.edges(e),n=An(A,2);if((n?.text?.startsWith(" ")||1===n?.text?.length)&&n?.text?.endsWith("@")){(0,bt.V1)(n,"lastTwoCharacters should be defined");const e=An(A)?.range;return e?{query:"",target:e}:null}{const e=dn.KE.before(A,t,{unit:"word"}),n=e&&dn.KE.before(A,e),r=n&&dn.KE.range(A,n,t),o=r&&dn.KE.string(A,r),i=o&&o.match(/^@(\w+)$/),a=dn.KE.after(A,t),s=dn.KE.range(A,t,a),l=dn.KE.string(A,s).match(/^(\s|$)/);return i&&l&&r?{query:i[1],target:r}:null}}return null}),[A]),j=(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=>yn(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()(hn.richTextEditor,"PSPDFKit-Rich-Text-Editor",m),style:r,ref:(0,bt.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)(un.A,{onChange:j,editor:A,value:T,children:(0,u.jsx)(un.Fo,{title:_,placeholder:g,renderLeaf:M,renderElement:I,onInput:i,className:hn.wrapper,onKeyDown:e=>{x?x(e):(N(e),(e.metaKey||e.ctrlKey)&&"b"===e.key?(e.preventDefault(),Sn(A,"bold")):(e.metaKey||e.ctrlKey)&&"i"===e.key?(e.preventDefault(),Sn(A,"italic")):(e.metaKey||e.ctrlKey)&&"u"===e.key&&(e.preventDefault(),Sn(A,"underline")),Wn&&!un.rL.isComposing(A)&&setTimeout(A.onChange,10),mt.gm&&C&&un.rL.focus(A))}})})})})),Zn=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})},Jn=()=>(0,u.jsxs)("span",{contentEditable:!1,style:{fontSize:0},children:["$",String.fromCodePoint(160)]}),Xn=e=>{const{attributes:t,children:n,element:r}=e;switch(r.type){case"link":return(0,u.jsxs)("a",{...t,href:r.url,children:[Un||(Un=(0,u.jsx)(Jn,{})),n,qn||(qn=(0,u.jsx)(Jn,{}))]});case"mention":return(0,u.jsxs)("span",{...t,contentEditable:Gn?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 Qn(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function er(...e){return(0,o.useCallback)(Qn(...e),e)}function tr(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}\``)}]},nr(r,...t)]}function nr(...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 rr(){return rr=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},rr.apply(this,arguments)}var or=n(40961);function ir(){return ir=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},ir.apply(this,arguments)}const ar=(0,o.forwardRef)(((e,t)=>{const{children:n,...r}=e,i=o.Children.toArray(n),a=i.find(cr);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)(sr,ir({},r,{ref:t}),(0,o.isValidElement)(e)?(0,o.cloneElement)(e,void 0,n):null)}return(0,o.createElement)(sr,ir({},r,{ref:t}),n)}));ar.displayName="Slot";const sr=(0,o.forwardRef)(((e,t)=>{const{children:n,...r}=e;return(0,o.isValidElement)(n)?(0,o.cloneElement)(n,{...ur(r,n.props),ref:Qn(t,n.ref)}):o.Children.count(n)>1?o.Children.only(null):null}));sr.displayName="SlotClone";const lr=({children:e})=>(0,o.createElement)(o.Fragment,null,e);function cr(e){return(0,o.isValidElement)(e)&&e.type===lr}function ur(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?ar:t;return(0,o.useEffect)((()=>{window[Symbol.for("radix-ui")]=!0}),[]),(0,o.createElement)(a,rr({},i,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function dr(e){const t=e+"CollectionProvider",[n,r]=tr(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=er(t,a(l,n).collectionRef);return o.createElement(ar,{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=er(t,s),c=a(u,n);return o.useEffect((()=>(c.itemMap.set(s,{ref:s,...i}),()=>{c.itemMap.delete(s)}))),o.createElement(ar,{[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 pr(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}const hr=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?o.useLayoutEffect:()=>{};i["useId".toString()];Math.min,Math.max;const fr=["top","right","bottom","left"];fr.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);Math.min,Math.max,Math.round;"undefined"!=typeof document?o.useLayoutEffect:o.useEffect;const mr="Popper",[gr,vr]=tr(mr),[yr,br]=gr(mr),wr="PopperContent",[xr,Sr]=gr(wr),[_r,Cr]=gr(wr,{hasParent:!1,positionUpdateFns:new Set});const Er=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=kr(r.current);a.current="mounted"===l?e:"none"}),[l]),hr((()=>{const t=r.current,n=i.current;if(n!==e){const r=a.current,o=kr(t);if(e)c("MOUNT");else if("none"===o||"none"===(null==t?void 0:t.display))c("UNMOUNT");else{const e=r!==o;c(n&&e?"ANIMATION_OUT":"UNMOUNT")}i.current=e}}),[e,c]),hr((()=>{if(t){const e=e=>{const n=kr(r.current).includes(e.animationName);e.target===t&&n&&(0,or.flushSync)((()=>c("ANIMATION_END")))},n=e=>{e.target===t&&(a.current=kr(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=er(r.ref,i.ref);return"function"==typeof n||r.isPresent?(0,o.cloneElement)(i,{ref:a}):null};function kr(e){return(null==e?void 0:e.animationName)||"none"}Er.displayName="Presence";const zr="RovingFocusGroup",[Pr,Ar,Dr]=dr(zr),[Tr,Ir]=tr(zr,[Dr]),[Mr,Nr]=Tr(zr);new WeakMap,new WeakMap;var Or=n(15215),jr="right-scroll-bar-position",Rr="width-before-scroll-bar";function Fr(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 Br(e){return e}function Lr(e,t){void 0===t&&(t=Br);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 Vr=function(e){var t=e.sideCar,n=(0,Or.Tt)(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,(0,Or.Cl)({},n))};Vr.isSideCarExport=!0;var Kr,$r=function(e){void 0===e&&(e={});var t=Lr(null);return t.options=(0,Or.Cl)({async:!0,ssr:!1},e),t}(),Hr=function(){},Ur=o.forwardRef((function(e,t){var n=o.useRef(null),r=o.useState({onScrollCapture:Hr,onWheelCapture:Hr,onTouchMoveCapture:Hr}),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=(0,Or.Tt)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=h,x=Fr([n,t]),S=(0,Or.Cl)((0,Or.Cl)({},b),i);return o.createElement(o.Fragment,null,d&&o.createElement(w,{sideCar:$r,removeScrollBar:u,shards:p,noIsolation:f,inert:m,setCallbacks:a,allowPinchZoom:!!g,lockRef:n}),s?o.cloneElement(o.Children.only(l),(0,Or.Cl)((0,Or.Cl)({},S),{ref:x})):o.createElement(y,(0,Or.Cl)({},S,{className:c,ref:x}),l))}));Ur.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ur.classNames={fullWidth:Rr,zeroRight:jr};function qr(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Kr||n.nc;return t&&e.setAttribute("nonce",t),e}var Wr=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=qr())&&(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)}}},Gr=function(){var e,t=(e=Wr(),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}},Yr={left:0,top:0,right:0,gap:0},Zr=function(e){return parseInt(e||"",10)||0},Jr=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return Yr;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[Zr(n),Zr(r),Zr(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])}},Xr=Gr(),Qr=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(jr," {\n    right: ").concat(s,"px ").concat(r,";\n  }\n  \n  .").concat(Rr," {\n    margin-right: ").concat(s,"px ").concat(r,";\n  }\n  \n  .").concat(jr," .").concat(jr," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(Rr," .").concat(Rr," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n  }\n")},eo=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r,a=o.useMemo((function(){return Jr(i)}),[i]);return o.createElement(Xr,{styles:Qr(a,!t,i,n?"":"!important")})},to=!1;if("undefined"!=typeof window)try{var no=Object.defineProperty({},"passive",{get:function(){return to=!0,!0}});window.addEventListener("test",no,no),window.removeEventListener("test",no,no)}catch(e){to=!1}var ro=!!to&&{passive:!1},oo=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])},io=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),ao(e,n)){var r=so(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},ao=function(e,t){return"v"===e?function(e){return oo(e,"overflowY")}(t):function(e){return oo(e,"overflowX")}(t)},so=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},lo=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},co=function(e){return[e.deltaX,e.deltaY]},uo=function(e){return e&&"current"in e?e.current:e},po=function(e){return"\n  .block-interactivity-".concat(e," {pointer-events: none;}\n  .allow-interactivity-").concat(e," {pointer-events: all;}\n")},ho=0,fo=[];const mo=(go=function(e){var t=o.useRef([]),n=o.useRef([0,0]),r=o.useRef(),i=o.useState(ho++)[0],a=o.useState((function(){return Gr()}))[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=(0,Or.fX)([e.lockRef.current],(e.shards||[]).map(uo),!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=lo(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=io(d,u);if(!p)return!0;if(p?o=d:(o="v"===d?"h":"v",p=io(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=so(e,s),f=h[0],m=h[1]-h[2]-i*f;(f||m)&&ao(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(fo.length&&fo[fo.length-1]===a){var r="deltaY"in n?co(n):lo(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(uo).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=lo(e),r.current=void 0}),[]),p=o.useCallback((function(t){u(t.type,co(t),t.target,l(t,e.lockRef.current))}),[]),h=o.useCallback((function(t){u(t.type,lo(t),t.target,l(t,e.lockRef.current))}),[]);o.useEffect((function(){return fo.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:h}),document.addEventListener("wheel",c,ro),document.addEventListener("touchmove",c,ro),document.addEventListener("touchstart",d,ro),function(){fo=fo.filter((function(e){return e!==a})),document.removeEventListener("wheel",c,ro),document.removeEventListener("touchmove",c,ro),document.removeEventListener("touchstart",d,ro)}}),[]);var f=e.removeScrollBar,m=e.inert;return o.createElement(o.Fragment,null,m?o.createElement(a,{styles:po(i)}):null,f?o.createElement(eo,{gapMode:"margin"}):null)},$r.useMedium(go),Vr);var go,vo=o.forwardRef((function(e,t){return o.createElement(Ur,(0,Or.Cl)({},e,{ref:t,sideCar:mo}))}));vo.classNames=Ur.classNames;const yo=["Enter"," "],bo=["ArrowUp","PageDown","End"],wo="Menu",[xo,So,_o]=dr(wo),[Co,Eo]=tr(wo,[_o,vr,Ir]),[ko,zo]=(vr(),Ir(),Co(wo)),[Po,Ao]=Co(wo),Do="MenuPortal",[To,Io]=Co(Do,{forceMount:void 0}),Mo="MenuContent",[No,Oo]=Co(Mo),jo="MenuRadioGroup",[Ro,Fo]=Co(jo,{value:void 0,onValueChange:()=>{}}),Bo="MenuItemIndicator",[Lo,Vo]=Co(Bo,{checked:!1}),Ko="MenuSub",[$o,Ho]=Co(Ko);const Uo="DropdownMenu",[qo,Wo]=tr(Uo,[Eo]),[Go,Yo]=(Eo(),qo(Uo));n(52781),n(55511)},90741:(e,t,n)=>{"use strict";n.d(t,{A:()=>He});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 j=n(22372);const R=(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),$=n(18248),H=n(83877);const U=(0,S.A)("Forms");var q=n(63638);var W=n(97444),G=n(92526);const Y=(0,S.A)("InkSignatures"),Z=["inkSignatures.create","inkSignatures.update","inkSignatures.delete","inkSignatures.change"],J=["storedSignatures.create","storedSignatures.update","storedSignatures.delete","storedSignatures.change"];var X=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<=X.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<=X.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; ${X.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(67761),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),je=n(2440),Re=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 j.A||e==j.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 R(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 $.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 $.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,H.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,H.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,q.vy)(t);await(0,q.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://pspdfkit.com/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)),Y(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(...Z,...J),t.getInkSignatures=async function(){return(0,W.eO)("instance.getInkSignatures","instance.getStoredSignatures"),n()},t.getStoredSignatures=n,t.setInkSignatures=async function(e){return(0,W.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.Ay],Ke="You need PSPDFKit Instant to use this method.",$e="You need to enable clients presence in your configuration (`instant: { clientsPresenceEnabled: true }`) to use this method.";class He{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)($e),(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(),$e),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(),$e);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(Re.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(Re.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 je.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}}},98269:(e,t,n)=>{"use strict";n.d(t,{default:()=>Ut});n(75417);"object"==typeof window&&(window._babelPolyfill=!1);var r=n(49568),o=n(85409),i=n(13837),a=n(13158),s=n(84010),l=n(70778),c=n(90820),u=n(51946),d=n(44268),p=n(13649),h=n(94010),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,j=new WeakSet;class R{constructor(e){g(this,j),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,$).call(this,e))),t.addEventListener(e,(0,d.A)(this,P));break;case"annotations.willChange":(0,p.A)(this,k,(e=>b(this,O,H).call(this,e))),t.addEventListener(e,(0,d.A)(this,k));break;case"annotations.willSave":(0,p.A)(this,z,(()=>b(this,j,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 $(e){(0,d.A)(this,w).invokeMethodAsync("annotationsUpdated",JSON.stringify(e))}function H(e){(0,d.A)(this,w).invokeMethodAsync("annotationsWillChange",JSON.stringify(e.annotations),e.reason)}function U(){(0,d.A)(this,w).invokeMethodAsync("annotationsWillSave")}var q=n(30830),W=n(97881);function G(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 Z{constructor(e){G(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,W.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,W.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,W.h8)(t.id,t);(0,d.A)(this,Y).update(n)}}function J(e,t){Q(e,t),t.add(e)}function X(e,t,n){Q(e,t),t.set(e,n)}function Q(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function ee(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}var te=new WeakMap,ne=new WeakMap,re=new WeakMap,oe=new WeakMap,ie=new WeakMap,ae=new WeakMap,se=new WeakMap,le=new WeakMap,ce=new WeakSet,ue=new WeakSet,de=new WeakSet,pe=new WeakSet,he=new WeakSet,fe=new WeakSet;async function me(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,te),document:e,theme:s?m.S.DARK:m.S.LIGHT,appName:o,productId:ee(this,de,ve).call(this,i),toolbarItems:c,toolbarPlacement:u,initialViewState:ee(this,he,be).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,re,new Z(this.currentDocument)),this.currentDocument.setToolbarItems((e=>(0,d.A)(this,ie)?(0,d.A)(this,ie):e)),this.currentDocument.setAnnotationToolbarItems(((e,t)=>{let{defaultAnnotationToolbarItems:n}=t;const r=ee(this,ue,ge).call(this,e),o=(0,d.A)(this,oe).get(r);return o||n})),ee(this,fe,we).call(this),l){const e={type:"custom",id:"file-picker",title:"Pick document",onPress:()=>{ee(this,pe,ye).call(this),(0,d.A)(this,le)||((0,p.A)(this,le,document.getElementById("filePicker")),(0,d.A)(this,le)?.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 ee(this,ce,me).call(this,n.buffer,t)},e.readAsArrayBuffer(n)}}))),(0,d.A)(this,le)?.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 ge(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 ve(e){return`Maui_${e}`}function ye(){if(!(0,d.A)(this,ae)){const e=document.getElementById("documentLoadingIndicator");if(!e)return;(0,p.A)(this,ae,e)}(0,d.A)(this,ae).style.visibility="collapse"}function be(e){const{interactionMode:t,sidebarMode:n,showToolbar:r}=JSON.parse(e);return new q.A({interactionMode:t,showToolbar:r,sidebarMode:n})}function we(){this.currentDocument.addEventListener("viewState.change",((e,t)=>{(0,d.A)(this,ne).viewStateUpdated(e,t)})),this.currentDocument.addEventListener("annotations.focus",(e=>{(0,d.A)(this,ne).annotationFocused(e.annotation.id)})),this.currentDocument.addEventListener("annotations.blur",(e=>{(0,d.A)(this,ne).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,ne).annotationSelected(t)}))})),this.currentDocument.addEventListener("annotations.press",(e=>{(0,d.A)(this,ne).annotationPressed(e)}))}new class{constructor(){J(this,fe),J(this,he),J(this,pe),J(this,de),J(this,ue),J(this,ce),X(this,te,{writable:!0,value:"#pspdfkit"}),X(this,ne,{writable:!0,value:void 0}),X(this,re,{writable:!0,value:void 0}),X(this,oe,{writable:!0,value:new Map}),X(this,ie,{writable:!0,value:void 0}),X(this,ae,{writable:!0,value:void 0}),X(this,se,{writable:!0,value:void 0}),X(this,le,{writable:!0,value:void 0})}initialize(e){(0,p.A)(this,ne,new R(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){ee(this,pe,ye).call(this),await ee(this,ce,me).call(this,e,t)}async loadDocumentFromBase64String(e,t){ee(this,pe,ye).call(this),await ee(this,ce,me).call(this,`data:application/pdf;base64,${e}`,t)}async loadDocumentFromBuffer(e,t){ee(this,pe,ye).call(this),await ee(this,ce,me).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,ie,t),(0,d.A)(this,ie).forEach((e=>{"custom"===e.type&&(e.onPress=(e,t)=>{(0,d.A)(this,ne).mainToolbarButtonClicked(t)})})),this.currentDocument?.setToolbarItems((e=>(0,d.A)(this,ie)?(0,d.A)(this,ie):e))}setAnnotationToolbarItems(e,t){const n=JSON.parse(t);(0,d.A)(this,oe).set(e,n),(0,d.A)(this,oe).get(e).forEach((t=>{"custom"===t.type&&(t.onPress=(t,n)=>{(0,d.A)(this,ne).annotationToolbarButtonClicked(e,n)})})),this.currentDocument?.setAnnotationToolbarItems(((e,t)=>{let{defaultAnnotationToolbarItems:n}=t;const r=ee(this,ue,ge).call(this,e),o=(0,d.A)(this,oe).get(r);return o||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,re).applyRedactions()}async createAnnotation(e){return await(0,d.A)(this,re).createAnnotation(e)}async exportInstantJSON(){return JSON.stringify(await(0,d.A)(this,re).exportInstantJSON())}async getAnnotations(e){return(0,d.A)(this,re).getAnnotations(e)}importInstantJSON(e){(0,d.A)(this,re).importInstantJSON(JSON.parse(e))}setSelectedAnnotations(e){(0,d.A)(this,re).setSelectedAnnotations(e)}deleteAnnotations(e){(0,d.A)(this,re).deleteAnnotations(e)}async flattenAnnotations(e){return await(0,d.A)(this,re).flattenAnnotations(e)}updateAnnotation(e){(0,d.A)(this,re).updateAnnotation(e)}subscribeToEvent(e){(0,d.A)(this,ne).subscribeToEvent(e,this.currentDocument)}unsubscribeFromEvent(e){(0,d.A)(this,ne).unsubscribeFromEvent(e,this.currentDocument)}showDocumentLoadingIndicator(){if(!(0,d.A)(this,ae)){const e=document.getElementById("documentLoadingIndicator");if(!e)return;(0,p.A)(this,ae,e)}(0,d.A)(this,ae).style.visibility="visible"}showGenericProcessingIndicator(){if(!(0,d.A)(this,se)){const e=document.getElementById("genericProcessingIndicator");if(!e)return;(0,p.A)(this,se,e)}(0,d.A)(this,se).style.visibility="visible"}hideGenericProcessingIndicator(){if(!(0,d.A)(this,se)){const e=document.getElementById("genericProcessingIndicator");if(!e)return;(0,p.A)(this,se,e)}(0,d.A)(this,se).style.visibility="collapse"}};var xe=n(36899),Se=n(53644),_e=n(43420),Ce=n(94308),Ee=n(30962),ke=n(24159),ze=n(32522),Pe=n(47612),Ae=n(29226),De=n(52002),Te=n(1889),Ie=n(85507),Me=n(90310),Ne=n(70631),Oe=n(5511),je=n(83647),Re=n(27522),Fe=n(85410),Be=n(30235),Le=n(61371),Ve=n(33091),Ke=n(8367),$e=n(78729),He=n(50960),Ue=n(7516),qe=n(27634),We=n(28567),Ge=n(25028),Ye=n(39168),Ze=n(30006),Je=n(21535);var Xe=n(14079),Qe=n(94045),et=n(495),tt=n(17796),nt=n(53793),rt=n(96754),ot=n(26635),it=n(24063),at=n(62362),st=n(4033),lt=n(10455),ct=n(81199),ut=n(1257),dt=n(88425),pt=n(63638),ht=n(90741),ft=n(3220),mt=n(45408),gt=n(69118),vt=n(37094),yt=n(46952),bt=n(47745),wt=n(46907),xt=n(29249),St=n(82747),_t=n(79595),Ct=n(91109),Et=n(67867),kt=n(89009),zt=n(23660),Pt=n(46395),At=n(45666),Dt=n(13825),Tt=n(35014),It=n(27959),Mt=n(54694),Nt=n(87374),Ot=n(68322),jt=n(35224),Rt=n(57892),Ft=n(20546),Bt=n(76117),Lt=n(82047),Vt=n(6914),Kt=n(32574);let $t;try{$t=(0,Fe.$_)(document)}catch(e){}const Ht=h.o3;const Ut={UI:{Core:a,createBlock:i.W,Recipes:Lt.M5,Decorators:Lt.N9,Interfaces:Lt.Rq,App:s},Immutable:{List:r.B8},version:"2024.8.0",Geometry:{Point:He.bR,DrawingPoint:He.LL,Rect:He.rw,Size:He.or,Inset:He.Yy},Actions:{Action:Se.rc,GoToAction:_e.ic,GoToEmbeddedAction:_e.yp,GoToRemoteAction:_e.sG,HideAction:_e.$i,JavaScriptAction:_e.ew,LaunchAction:_e.Ki,NamedAction:_e.mm,ResetFormAction:_e.kV,SubmitFormAction:_e.Dh,URIAction:_e.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:W.eq,fromSerializableObject:e=>(0,W.h8)(null,e),rotate:(e,t,n)=>{const r=(0,Rt.rK)(e,n);return(0,Rt.pE)(r.set("rotation",t))}},AnnotationPresets:{toSerializableObject:W.Um,fromSerializableObject:W.Zt},Comment:Me.Ay,Bookmark:Ee.A,CustomOverlayItem:ze.A,OutlineElement:Pe.A,FormFields:{FormField:xe.zB,ButtonFormField:xe.$h,CheckBoxFormField:xe.av,ChoiceFormField:xe.G_,ComboBoxFormField:xe.sh,ListBoxFormField:xe.O2,RadioButtonFormField:xe.Qk,TextFormField:xe.uS,SignatureFormField:xe.Vw,toSerializableObject:W.T7,fromSerializableObject:e=>(0,W.mh)(String(e.pdfObjectId),e)},FormFieldValue:xe.E2,FormOption:Ae.A,Callout:Bt.Pq,Color:ke.A,Instance:ht.A,preloadWorker:Ht,load:h.Hh,unload:f.G,loadTextComparison:Vt.Tw,convertToOffice:h.Hr,convertToPDF:h.nf,populateDocumentTemplate:h.Ib,Error:o.uE,SaveError:bt.d,ViewState:q.A,PageInfo:Te.A,TextLine:Ie.A,InstantClient:De.A,TextSelection:We.N,SearchResult:ft.A,SearchState:mt.A,HighlightState:Kt.A,AutoSaveMode:Oe.O,SignatureSaveMode:tt.v,LayoutMode:Ve.S,PrintMode:Ue.l,PrintQuality:qe.z,ScrollMode:Ge.V,ZoomMode:rt.d,InteractionMode:Be.O,unstable_InkEraserMode:Le.y,SidebarMode:Je.I,UIElement:{Sidebar:"Sidebar"},Alignment:kt.C,BlendMode:zt.N,BorderStyle:Pt.k,LineCap:At.$,SidebarPlacement:Qe.A,SignatureAppearanceMode:et.C,ShowSignatureValidationStatusMode:ot.y,NoteIcon:Ke.Qv,Theme:m.S,ToolbarPlacement:Ye.h,ElectronicSignatureCreationMode:Ze.F,I18n:pt.Ay,baseUrl:$t,DocumentIntegrityStatus:je.Pb,SignatureValidationStatus:je.w1,SignatureType:je.D7,SignatureContainerType:je.Yj,PAdESLevel:je.sX,CertificateChainValidationStatus:je.k5,DocumentValidationStatus:Re.J,AnnotationsWillChangeReason:Ce.x,DocumentComparisonSourceType:Xe.O,MeasurementScaleUnitFrom:Tt.b,MeasurementScaleUnitTo:It._,MeasurementPrecision:Mt.x,MeasurementScale:jt.A,ProductId:Ot.v,ProcessorEngine:Nt.j,Conformance:Ft.o,DocumentPermissions:wt.d,ComparisonOperation:Bt.zT,DocumentDescriptor:Bt.Hv,ComparisonOperationType:l.d,OfficeDocumentFormat:c.z,viewStateFromOpenParameters:nt.J,get defaultElectronicSignatureColorPresets(){return(0,r.ss)(ut.A).toJS().map((e=>{let{color:t,...n}=e;return{...n,color:new ke.A(t)}}))},get defaultToolbarItems(){return ct.Ay.toJS()},get defaultDocumentEditorFooterItems(){return xt.A.toJS()},get defaultDocumentEditorToolbarItems(){return St.A.toJS()},get defaultTextComparisonToolbarItems(){return Ct.A.toJS()},get defaultTextComparisonInnerToolbarItems(){return Et.A.toJS()},get defaultAnnotationPresets(){return it.Ay.toObject()},get defaultStampAnnotationTemplates(){return[...lt.Ay]},get defaultAnnotationsSidebarContent(){return _t.A.toJS()},defaultEditableAnnotationTypes:at.A,defaultElectronicSignatureCreationModes:st.A,defaultSigningFonts:dt.A,Options:$e.JY,SearchPattern:gt.N,SearchType:vt.n,UIDateTimeElement:Dt.E,generateInstantId:yt.A,Font:Ne.A}},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;return n?.[t]instanceof l.ew?g(n[t].script,t,e instanceof p.A?r:null):h(n?.[t])};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:()=>H,EH:()=>C,Iy:()=>D,J5:()=>ie,Kl:()=>B,L0:()=>F,M:()=>O,PY:()=>k,RE:()=>A,Rf:()=>R,Ud:()=>N,XV:()=>I,Xs:()=>T,ZL:()=>X,ax:()=>te,dH:()=>re,eS:()=>G,g_:()=>q,iE:()=>j,iN:()=>M,in:()=>ae,js:()=>ee,ke:()=>ne,li:()=>L,n$:()=>oe,n9:()=>Z,nG:()=>Y,nO:()=>E,pk:()=>se,vN:()=>J,vs:()=>P,wA:()=>z,yk:()=>Q,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(j("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(j("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})},j=e=>({type:x.xQ8,currentItemPreset:e}),R=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(j(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,(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),$[l.id]||($[l.id]=(0,g.h)(K,S.YF)),$[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 q=e=>(t,n)=>{const i=n();(0,o.vA)((()=>{U(t,i,(0,r.B8)([e]))}))};function W(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}))}$[n.id]&&delete $[n.id]}))}const G=e=>(t,n)=>{W(t,n(),(0,r.B8)([e]))},Y=(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&&W(n,i,s)}))};function Z(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 J=e=>({type:x.c5z,stampAnnotationTemplates:e}),X=e=>({type:x.ynV,lineWidth:e});function Q(){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(q(r))}}function ee(){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(q(r))}}const te=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{type:x.qml,value:e}},ne=e=>({type:x.qRc,ids:e}),re=e=>({type:x.jkd,ids:e}),oe=e=>({type:x.jAd,callback:e}),ie=(e,t)=>({type:x.dv5,variant:e,annotationObjectIds:t}),ae=e=>({type:x.m65,annotationId:e}),se=(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)=>{const o=new Date,i=e.set("createdAt",o).set("updatedAt",o);t(m((0,r.B8)([i]))),_(n(),{comment:i,action:"CREATE"});const{commentManager:a,annotations:s}=n();(0,h.V)(null!=a);const l=n().comments.toList().filter((e=>!(0,d.Jm)(e)));a.createObject(i,{comments:l,annotations:s})},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 r=o.commentThreads.get(e.rootId);if(r&&r.first()===e.id){const i=r.toList().get(1);if(i){const r=o.comments.get(i);r&&A(n,e.rootId,t,r.isAnonymous??!1)}}if(r&&(1===r.size||(0,d.aX)(r,o.comments)&&2===r.size)){const n=o.annotations.get(e.rootId);if(n)return void t((0,s.eS)(n))}}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:()=>Ze,A5:()=>I,A8:()=>pe,Ar:()=>Z,B4:()=>fe,BJ:()=>Me,BQ:()=>M,BZ:()=>Ee,CM:()=>ct,Cc:()=>lt,Cu:()=>Ae,D8:()=>m,D9:()=>f,DU:()=>Te,E7:()=>re,F:()=>L,FS:()=>st,Fl:()=>Xe,GV:()=>et,Gh:()=>D,Gm:()=>de,Gz:()=>Oe,H$:()=>xe,He:()=>T,Hj:()=>ze,I8:()=>Se,Ib:()=>se,In:()=>rt,JN:()=>oe,JR:()=>U,K:()=>wt,K3:()=>ee,K5:()=>ht,LD:()=>N,LG:()=>Mt,LV:()=>at,M1:()=>ge,NI:()=>Be,NP:()=>A,NW:()=>Q,Oh:()=>It,P4:()=>Ct,PP:()=>ce,QD:()=>tt,QG:()=>q,Qd:()=>Ue,R:()=>X,R8:()=>O,RX:()=>Fe,S_:()=>Nt,Sz:()=>zt,U$:()=>$e,Ue:()=>H,Vh:()=>xt,Vu:()=>ae,WB:()=>J,WG:()=>vt,WN:()=>R,Xh:()=>_e,Xp:()=>Dt,YL:()=>p,YZ:()=>mt,Yu:()=>le,ZY:()=>V,Zo:()=>nt,_Q:()=>k,_b:()=>Ce,_e:()=>B,aJ:()=>ke,b$:()=>G,b8:()=>ft,bK:()=>K,bT:()=>kt,bf:()=>gt,c1:()=>Ye,cS:()=>C,dJ:()=>Re,eH:()=>Ie,eW:()=>v,eZ:()=>Le,g8:()=>_t,gK:()=>be,gY:()=>d,gp:()=>it,gw:()=>S,hP:()=>Ke,i0:()=>we,i6:()=>Pe,iw:()=>g,jQ:()=>y,jt:()=>Ve,kJ:()=>P,kl:()=>$,l$:()=>te,l8:()=>ot,lA:()=>He,lD:()=>yt,lH:()=>dt,ll:()=>Y,m9:()=>w,mp:()=>z,mz:()=>Pt,nB:()=>b,nu:()=>je,nx:()=>ye,o8:()=>Tt,on:()=>pt,ot:()=>h,ql:()=>At,qx:()=>ut,r7:()=>he,rY:()=>ue,rf:()=>Qe,sI:()=>We,sx:()=>W,t4:()=>_,tE:()=>ne,tJ:()=>E,u7:()=>me,uT:()=>Je,vE:()=>St,w9:()=>j,wG:()=>Et,x4:()=>Ge,xS:()=>F,xg:()=>bt,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}),j=()=>({type:a.SB}),R=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 $(e){return{type:a.H0A,configurationCallback:e}}function H(e){return{type:a.ur2,scales:e}}function U(){return{type:a.GFn}}function q(){return{type:a.N00}}function W(){return{type:a.LPm}}function G(){return{type:a.sMs}}const Y=()=>({type:a.mOc}),Z=()=>({type:a.bD_}),J=()=>({type:a.Ot4}),X=()=>({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 je(){return De(l.I.BOOKMARKS)}const Re=()=>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.LAYERS)}function Ve(){return De(l.I.CUSTOM)}function Ke(){return{type:a.SlF,mode:null}}function $e(e){return{type:a.iGi,placement:e}}function He(e){return{type:a.FKq,sidebarOptions:e}}function Ue(e){return{type:a.h6f,locale:e}}function qe(){return{type:a.fAM}}function We(e){return{type:a.bUk,group:e}}function Ge(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}),Ze=()=>({type:a.R_L}),Je=e=>({type:a.q$5,interactionMode:e}),Xe=()=>({type:a.rw4});function Qe(){return{type:a.ZSp}}function et(){return{type:a.C1Z}}const tt=e=>({type:a.vjD,customRenderers:e});function nt(){return{type:a.Td6}}function rt(){return{type:a.Gsj}}function ot(){return{type:a.JMw}}function it(){return{type:a.ozB}}function at(e){return{type:a.QlR,previewRedactionMode:e}}function st(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(lt({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(lt(null))})),a.emit("documentComparisonUI.end")}catch(e){throw new r.uE(e.message)}}}}function lt(e){return{type:a.h0V,documentComparisonState:e}}function ct(e){return{type:a.dBd,a11yStatusMessage:e}}function ut(){return{type:a.vjS}}function dt(){return{type:a.qDC}}function pt(e){return{type:a.tJg,lastToolbarActionUsedKeyboard:e}}function ht(){return{type:a.tEU}}function ft(){return{type:a.AcT}}function mt(){return{type:a.loZ}}function gt(){return{type:a.s_A}}function vt(e){return{type:a.JFC,instance:e}}function yt(e){return{type:a.Q5I,customUIStore:e}}const bt=()=>({type:a.BmW}),wt=e=>({type:a.CdF,multiAnnotationsUsingShortcut:e}),xt=()=>({type:a.nN5}),St=e=>({type:a.FJm,annotationsIds:e}),_t=e=>({type:a.yT6,groupId:e}),Ct=(e,t)=>({type:a.mS9,annotationId:e,groupId:t}),Et=e=>({type:a.SwZ,customFontsReadableNames:e}),kt=()=>({type:a.TVi}),zt=()=>({type:a.IMM});function Pt(e){return{type:a.VWe,enableAlwaysScrollToZoom:e}}function At(e){return{type:a.Sb4,forceRenderWidgetsInAnnotationsOrder:e}}function Dt(e){return{type:a._z4,evaluation:e}}function Tt(e){return{type:a.hEI,prerenderedPageSpreads:e}}function It(e){return{type:a.Z$9,configuration:e}}function Mt(e){return{type:a.BV,showAIDocumentAssistant:e}}function Nt(e){return{type:a.SR7,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:()=>R,BB:()=>k,CY:()=>$,GM:()=>C,J4:()=>w,Lm:()=>z,O6:()=>M,OY:()=>K,Xd:()=>E,aU:()=>T,ab:()=>A,bU:()=>b,dV:()=>v,eR:()=>g,fg:()=>H,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 t=await(n.corePDFBridge.ctx.getWasmDispatch?.());(0,s.V1)(t),n.corePDFBridge.ctx.wasmCtx||await(0,a.L9)(n.corePDFBridge.ctx,t)}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(j());const{contentEditorSession:n}=t();(0,s.V1)(n.contentEditor);const r=await n.contentEditor.getAvailableFaces();e(L(r))},j=()=>({type:l.oJw}),R=(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})}))},$=e=>({type:l.qU5,mode:e}),H=(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,{_p:()=>u,bb:()=>h,eW:()=>p,ym:()=>d});var r=n(85409),o=n(33075),i=n(82500),a=n(83877),s=n(97881),l=n(46952),c=n(83145);function u(e,t,n){return async(i,l)=>{const{backend:u,features:d,pages:p,annotations:h,isAPStreamRendered:m}=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,m);await(0,o.SN)(i,l,{features:d,pageKeys:f(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 d(e){return{type:i.K2b,documentHandle:e}}function p(e){return{type:i.VmY,isDocumentHandleOutdated:e}}function h(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 f(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)}},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:()=>$,aJ:()=>D,GX:()=>M,Lg:()=>j,SM:()=>O,Ek:()=>B,vM:()=>H,tl:()=>U,ar:()=>G,$D:()=>A,mV:()=>R,xH:()=>z,nA:()=>N,j2:()=>q,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(60887),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 j(){return e=>{e((0,x._e)(!1)),e((0,x.Fl)())}}function R(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),p=l.filter((e=>e.change_type===d.JI&&"pspdfkit/form-field-value"===e.object.type)),f=p.map((e=>e.object.name)),v=(0,i.B8)(p.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})))),y=e.map((e=>e.name)).toArray().filter((e=>f.indexOf(e)<0)),{formFields:b}=r(),w=(0,h.UA)(b.filter(((e,t)=>y.indexOf(t)>=0))),x=b.filter((t=>e.find((e=>e.name===t.name))||w.find((e=>e.name===t.name))||f.includes(t.name))),S=e.map((e=>v.find((t=>t.name===e.name))||e)).concat(v.filter((t=>!e.find((e=>e.name===t.name)))));(0,h.hn)({getState:r,originalFormFields:x,formFieldValues:S,callback:t=>{e.size>0&&(0,a.flushSync)((function(){n(A(e))})),w.size>0&&(u=w,n(A(w))),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,backend:C,autoSaveMode:E}=y,k=y.formattedFormFieldValues;let z,P=(0,i.B8)(),D=y.editingFormFieldValues;(0,r.vA)((function(){C?.setFormJSONUpdateBatchMode(!0).catch((e=>{s?.(e)})),P=(0,i.B8)().withMutations((n=>{z=k.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&&(D=D.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($(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 T=C?.setFormJSONUpdateBatchMode(!1);let I=[];if(P.size>0){e(A(P)),z.size>0&&e(function(e){return{type:l.$uS,formattedFormFieldValues:e}}(z)),D.size>0&&e(function(e){return{type:l.J7t,editingFormFieldValues:e}}(D));const{formFieldValueManager:t}=g();(0,o.V1)(t);let r=(0,i.NZ)();I=P.filter((e=>!n.includes(e.name))).map((e=>{if(t.updateObject(e),m){const t=x.get(e.name);if(t){const e=t.annotationIds.map((e=>b.get(e))).filter(Boolean);r=r.concat((0,i.NZ)(e.map((e=>e.pageIndex))))}}return E===_.O.DISABLED?Promise.resolve():t.ensureObjectSaved(e)})).toArray(),m&&r.size>0&&e({type:l.LAB,pageIndexes:r})}Promise.all([T,...I]).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?.size>0&&f.forEach((e=>{a?.updateObject(e)}))}}function $(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 H(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=W(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 q(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)(W(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.");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 W(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,Ip:()=>x,Ir:()=>s,XP:()=>l,YQ:()=>c,Zj:()=>i,_m:()=>g,e$:()=>b,ed:()=>p,fX:()=>_,ke:()=>m,kw:()=>u,mI:()=>v,nF:()=>f,pH:()=>w,tV:()=>d,xT:()=>S});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.UWX,degCW:e}),w=()=>({type:r.Qti}),x=()=>({type:r.Z8}),S=e=>({type:r.lxe,width:e}),_=e=>({type:r.twv,shouldDisable:e})},53253:(e,t,n)=>{"use strict";n.d(t,{S9:()=>c,Sz:()=>m,Tm:()=>h,Y3:()=>u,d_:()=>d,ew:()=>f,gp:()=>g,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=>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,trident:!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=>{const t=Date.now();setTimeout((()=>{h(),y();const n=Date.now()-t>500?25:18e4;setTimeout(e,n)}))})))}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 s=e=>{e.dataset.pspdfkitPrint="true",e.style.position="absolute",e.style.bottom="0px",e.style.left="0px",e.style.width="0px",e.style.height="0px",e.style.border="none",e.setAttribute("type","application/pdf")},{promise:l,revoke:c}=e.generatePDFObjectURL({includeComments:!1,saveForPrinting:!0,excludeAnnotations:n});S=c;const u=await l;if("trident"===t){x=document.createElement("embed"),x.setAttribute("src",u),s(x),a.appendChild(x),x.focus();const e=Date.now();!function t(){const n=document.querySelector("embed[data-pspdfkit-print=true]");(0,b.V)(n,"element not found"),Date.now()-e>3e4&&(c(),o(new Error("timeout")));try{n.print(),r(),_=setTimeout(E,i)}catch(e){C=setTimeout(t,500)}}()}else try{x=document.createElement("iframe"),x.setAttribute("src",u),x.setAttribute("aria-hidden","true"),s(x),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()}}))}(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:()=>$,Vm:()=>P,WS:()=>D,Xd:()=>z,Zz:()=>j,_G:()=>M,kJ:()=>H,mm:()=>L,nb:()=>C,od:()=>_,pw:()=>V,wL:()=>R,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}),j=e=>({type:g.$kT,id:e}),R=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){if(_.get(S.first())?.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 j=!(0,w.Gg)(x,e)&&(!(e instanceof l.sb)||P);if(!j)return;const R=x.annotationsGroups.find((t=>{let{annotationsIds:n}=t;return n.has(e.id)}));if(!O&&j&&!N&&!R)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(R)return void(0,r.vA)((()=>{v(I(x.selectedAnnotationIds.merge(R.annotationsIds),n||null)),v(K(null))}));if(!O&&!R)return v(I(S.add(e.id),n||null)),void v(K(null))}if(!N){if(!O&&!R)return void(0,r.vA)((()=>{v(A()),v(I((0,o.NZ)([e.id]),n||null))}));O||!R||M||(0,r.vA)((()=>{v(I(R.annotationsIds,n||null)),v(K(R.groupKey))}))}}},K=e=>({type:g.Rql,groupId:e}),$=e=>({type:g.Xet,pullToRefreshNewState:e}),H=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.E),(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);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);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);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),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),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;return t=>{e||requestAnimationFrame((()=>{const t=e;e=null,t()})),e=t}}const k=(0,i.Ng)((e=>({getRelativePosition:t=>(0,b.gP)({event:t,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:()=>i});var r=n(96540),o=n(74848);function i(e){let{src:t,...n}=e;const i=r.useRef(null);return r.useEffect((function(){if(i.current){const e=i.current.childNodes[0];"function"==typeof e.setAttribute&&e.setAttribute("focusable","false")}}),[]),(0,o.jsx)("span",{...n,dangerouslySetInnerHTML:{__html:t},ref:i})}},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(17704),f=n(75675);const m=(0,h.Wf)(),g={onPinchStart:"pinchstart",onPinchIn:"pinchin",onPinchOut:"pinchout",onPinchCancel:"pinchcancel",onPinchEnd:"pinchend",onSwipeLeft:"swipeleft",onSwipeRight:"swiperight",onDoubleTap:"doubletap"};function v(e,t,n){t&&Object.keys(t).forEach((r=>{const o=g[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).forEach((r=>{const o=g[r];!o||"function"!=typeof n[r]||t&&"function"==typeof n[r]&&n[r]===t[r]||e.on(o,n[r])})))}class y extends i.Component{constructor(){super(...arguments),(0,r.A)(this,"_handleRef",(e=>{e&&((0,f.V)("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(),v(this._hammer,null,this.props)}initializeHammer(){this._hammer=new m(this._refElement,{touchAction:"pan-x pan-y"}),this._refElement.style.msTouchSelect="initial"}componentDidUpdate(e){this._hammer&&v(this._hammer,e,this.props)}componentWillUnmount(){v(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,f.V)(!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 b=n(15168),w=n(74848);const x=!b.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=>{if(!this.props.enableAlwaysScrollToZoom&&!e.ctrlKey)return;e.preventDefault(),e.stopPropagation(),this._currentWheelTimeout&&clearTimeout(this._currentWheelTimeout),this._currentWheelTimeout=setTimeout((()=>{this.props.onPinchEnd(),this._hasWheelEventStarted=!1,this._lastScale=1}),250);const t=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 n=1;n=t.scale>1?1.05*this._lastScale:.95*this._lastScale,t.scale=n,n*this.props.zoomLevel>this.props.minZoomLevel&&n*this.props.zoomLevel<this.props.maxZoomLevel&&(this._hasWheelEventStarted||(this.props.onPinchStart(t),this._hasWheelEventStarted=!0),this._lastScale=n,this.props.onPinch(t))})),(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._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 150ms 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,children:(0,w.jsx)(y,{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:()=>Z,getDocumentKeyForReferencePoints:()=>Y,messages:()=>J});var r,o,i,a,s,l,c,u,d=n(96540),p=n(40961),h=n(60887),f=n(51467),m=n(59924),g=n(66421),v=n(45849),y=n(32485),b=n.n(y),w=n(7737),x=n(3681),S=n(91497),_=n(77868),C=n(50960),E=n(40807),k=n(55950),z=n(30235),P=n(76426),A=n(80069),D=n.n(A),T=n(55236),I=n(74848);const M=e=>{const{viewportState:t,backend:r,scrollElement:o,styles:i,currentDocumentKey:a,referencePoints:s,addReferencePoint:l,page:c,isAutoCompare:u,interactionMode:p,usingTouch:f}=e,g=f?{x:31.5,y:63}:{x:13,y:-4},{formatMessage:y}=(0,h.tz)(),A=(0,E.aq)(),[M,N]=d.useState(!1),j=d.useRef(null),R=(0,E.Kw)((e=>{f?(M||N(!0),j.current&&clearTimeout(j.current),j.current=setTimeout((()=>{j.current=null,A()&&N(!1)}),300)):(e(),N(!1))})),F=a!==m.w.result?a===m.w.documentA?s.slice(0,3):s.slice(3,6):[],B=s.length<6&&F.filter(Boolean).length<3&&!u&&p!==z.O.PAN&&(a===m.w.documentA&&s.length<3||a===m.w.documentB&&s.length>=3),L={width:c.pageSize.width*t.zoomLevel,height:c.pageSize.height*t.zoomLevel},V=d.useRef(null),K=b()({"PSPDFKit-Page":!0,[`PSPDFKit-Page-Rotation-${t.pagesRotation}-degree`]:!0,[i.page]:!0,[i["deg-"+t.pagesRotation]]:!0}),$=(0,E.iV)(),H=(0,w.d4)((e=>e.showToolbar))?T.e4:0,U=(0,E.Kw)((()=>{l($(new C.LL({x:t.viewportRect.left+t.viewportRect.width/2+2,y:t.viewportRect.top+t.viewportRect.height/2+H})))})),q={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},W=(0,w.d4)((e=>e.scrollbarOffset)),G=F.map(((e,n)=>e?(0,I.jsx)("div",{className:b()({"PSPDFKit-DocumentComparison-ReferencePoint-Marker":!0,[i.referencePoint]:!0}),style:{left:e.x*t.zoomLevel-g.x+(f?W/2:0),top:e.y*t.zoomLevel-g.y},children:(0,I.jsx)(O,{usingTouch:f,className:i.comparisonPin,children:n+1})},`point_${n}`):null));return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)("div",{className:b()({[i.source]:!f,[i.sourceTouch]:!!f,"PSPDFKit-DocumentComparison-Source":!0,[`PSPDFKit-DocumentComparison-Source-${a}`]:!!a}),style:{cursor:B&&!f?`url('data:image/svg+xml,${D()}') 12 22, crosshair`:"auto"},children:[B&&f&&(0,I.jsx)(v.W,{children:(0,I.jsxs)("div",{className:i.crosshair,ref:V,children:[(0,I.jsx)("div",{className:b()(i.selectPoint,{[i.hidden]:M}),onClick:U,children:y(J.Comparison_selectPoint)}),(0,I.jsx)(_.A,{src:n(60652)})]})}),(0,I.jsx)(x.A,{dispatch:e.dispatch,viewportState:t,children:(0,I.jsxs)("section",{className:K,style:L,"data-page-index":c?c.pageIndex:"",children:[(0,I.jsx)(P.A,{...q}),G,f?null:(0,I.jsx)("div",{className:i.pointerLayer,children:B?(0,I.jsx)(S.A,{size:c.pageSize,onDrawEnd:l,transformPoint:$,interactionMode:p,scrollElement:o}):null})]})})]}),o&&!f?(0,I.jsx)(k.Q,{viewportState:t,scrollElement:o,onScroll:R,className:"PSPDFKit-DocumentComparison-Magnifier",pageIndex:c.pageIndex,pageRendererComponentProps:q,children:G}):null]})},N=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"},O=e=>{let{children:t,usingTouch:n,className:d}=e;return(0,I.jsx)("svg",{...N(n),className:d,children:n?(0,I.jsxs)("g",{stroke:"#f5281b",children:[r||(r=(0,I.jsx)("path",{d:"M44.0171 43.4142L72.3014 71.6985",strokeWidth:"4"})),o||(o=(0,I.jsx)("path",{d:"M12.9043 12.3015L41.1886 40.5858",strokeWidth:"4"})),i||(i=(0,I.jsx)("path",{d:"M72.3013 12.3015L44.017 40.5858",strokeWidth:"4"})),a||(a=(0,I.jsx)("path",{d:"M41.189 43.4142L12.9047 71.6985",strokeWidth:"4"})),(0,I.jsx)("text",{x:"-10",y:"82",fontSize:"28",fill:"#f5281b",dominantBaseline:"central",children:t})]}):(0,I.jsxs)("g",{stroke:"#f5281b",children:[s||(s=(0,I.jsx)("path",{d:"M26.0083 25.7072L40.1505 39.8493",strokeWidth:"1.99616"})),l||(l=(0,I.jsx)("path",{d:"M10.4521 10.1508L24.5943 24.2929",strokeWidth:"1.99616"})),c||(c=(0,I.jsx)("path",{d:"M40.1509 10.1508L26.0087 24.2929",strokeWidth:"1.99616"})),u||(u=(0,I.jsx)("path",{d:"M24.5952 25.7072L10.453 39.8493",strokeWidth:"1.99616"})),(0,I.jsx)("text",{x:"0",y:"44",fontSize:"14",fill:"#f5281b",dominantBaseline:"central",children:t})]})})};var j=n(97425);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,I.jsx)(j.s6,{tag:"div",children:(0,I.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 F,B=n(14079),L=n(97837),V=n(76943),K=n(16792),$=n(83176);const H=e=>{const{styles:t,currentDocumentKey:n,referencePoints:r,addReferencePoint:o,settings:i,completionConfiguration:a,setDocumentSources:s,documentSources:l,backend:c,viewportState:u,interactionMode:h,dispatch:v,isAutoCompare:y,renderPagePreview:b,usingTouch:w}=e,x=(0,E.aq)(),[S,_]=d.useState(null),[k,z]=d.useState(!1),P=(0,E.Kw)((()=>{S&&v((0,V.CN)((0,f.kR)(u,S)))}));d.useEffect((()=>{P()}),[S,P]);const[A,D]=(0,E.eR)();d.useEffect((()=>{D(!1)}),[y,D]);const T=(0,E.Kw)((e=>{e&&!l[e]&&i[e].source!==B.O.USE_OPEN_DOCUMENT||async function(){if(k)return;let t;e!==m.w.result&&e?(S&&_(null),t=await c.openComparisonDocument(e)):(S&&_(null),t=A?await c.openComparisonDocument(m.w.result):await U(r,i,c),D(!0));const n=i[m.w.documentA].pageIndex||0,o=new L.A({pageSize:new C.or(t.pages[n]),isPageSizeReal:!0,...t.pages[n]});x()&&_(o)}()})),N=d.useRef(null);d.useEffect((()=>{N.current!==n&&S&&_(null),N.current=n}),[n,S]),d.useEffect((()=>{S||k||T(n)}),[S,n,T,k,l]);const O=6===r.length||y;d.useEffect((()=>{O&&!y&&T(null)}),[T,O,y]),d.useEffect((()=>{!async function(){try{await a.start.promise,x()&&(0,p.unstable_batchedUpdates)((()=>{z(!0),_(null)}))}catch(e){a.start.reject(e)}}()}),[a,x]),d.useEffect((()=>{k&&async function(){try{await c.cleanupDocumentComparison(),a.end.resolve()}catch(e){a.end.reject(e)}}()}),[k,c,a]);const j=d.useCallback((async e=>{e&&(await c.setComparisonDocument(n,e),x()&&s({...l,[n]:e}))}),[n,l,s,c,x]);return S?(0,I.jsx)(M,{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:S,isAutoCompare:y,interactionMode:h,renderPagePreview:b,usingTouch:w}):O||l[n]||i[n].source!==B.O.USE_FILE_DIALOG?(0,I.jsx)("div",{className:t.documentComparisonPageLoading,children:F||(F=(0,I.jsx)(g.A,{scale:2}))}):(0,I.jsx)(R,{addSource:j})},U=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]]]:f.$N;return await n.documentCompareAndOpen({documentA:{pageIndex:t.documentA.pageIndex||0,strokeColor:t.strokeColors?.documentA?(0,K.J)(t.strokeColors?.documentA):(0,K.J)($.w3.strokeColors?.documentA)},documentB:{pageIndex:t.documentB.pageIndex||0,strokeColor:t.strokeColors?.documentB?(0,K.J)(t.strokeColors?.documentB):(0,K.J)($.w3.strokeColors?.documentB)},options:{type:"path",points:r,blendMode:t.blendMode||"darken"}})},q=e=>{const{onHide:t,styles:r}=e,{formatMessage:o}=(0,h.tz)();return(0,I.jsx)("div",{className:r.container,children:(0,I.jsxs)("div",{className:r.wrapper,children:[(0,I.jsx)(_.A,{src:n(84346),className:r.icon,style:{color:"#5E5CEB"}}),(0,I.jsx)("div",{className:r.header,children:o(W.UserHint_title)}),(0,I.jsx)("div",{className:r.hint,children:o(W.UserHint_description)}),(0,I.jsx)("div",{className:r.hideButton,children:(0,I.jsx)(j.$n,{onClick:t,children:o(W.UserHint_dismissMessage)})})]})})},W=(0,h.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 G=(0,n(9627).CN)(),Y=e=>e.length<3?m.w.documentA:e.length<6?m.w.documentB:m.w.result,Z=e=>{const[t,n]=d.useState(G),{interactionMode:r,initialDocumentSources:o,settings:i,backend:a}=e,{styles:s}=e.CSS_HACK,l=(0,E.aq)(),[c,u]=(0,E.I_)(),[h,g]=(0,E.e2)(),[v]=(0,E.YU)(),[y,b]=d.useState(!0),w=(0,f.Ut)(h),x=(0,E.Kw)((e=>{e!==w&&g(e||m.w.result)})),S=d.useCallback((e=>{const t=[...c,e];(0,p.unstable_batchedUpdates)((()=>{u(t),x(Y(t))}))}),[c,x,u]),[_,C]=d.useState(null);return d.useEffect((()=>{!async function(){const[e,t]=await Promise.all([o[m.w.documentA],o[m.w.documentB]]);(e&&e.byteLength>0||i[m.w.documentA].source===B.O.USE_OPEN_DOCUMENT)&&await a.setComparisonDocument(m.w.documentA,e),(t&&t.byteLength>0||i[m.w.documentB].source===B.O.USE_OPEN_DOCUMENT)&&await a.setComparisonDocument(m.w.documentB,t),l()&&C({[m.w.documentA]:e,[m.w.documentB]:t,[m.w.result]:{source:null}})}()}),[o,a,i,l]),(0,I.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:[_?(0,I.jsx)(H,{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:_,setDocumentSources:C,viewportWidth:e.viewportWidth,currentDocumentKey:w,addReferencePoint:S,referencePoints:c,isAutoCompare:v,renderPagePreview:e.renderPagePreview,usingTouch:t}):null,!t&&!(6===c.length)&&!v&&y&&(0,I.jsx)(q,{styles:s.userHintStyles,onHide:()=>b(!1)})]})},J=(0,h.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(97425),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(97425),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(60887),i=n(32485),a=n.n(i),s=n(97819),l=n(7737),c=n(93440),u=n(86918),d=n(77868),p=n(72570),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;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:r?.label?k(r.label)?e(k(r.label)):r.label: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]),j=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:j,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:j,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:()=>d});var r=n(67136),o=n(96540),i=n(40961),a=n(69371),s=n(76117),l=n(50652),c=n.n(l),u=n(74848);class d extends o.Component{constructor(){super(...arguments),(0,r.A)(this,"shouldComponentUpdate",a.E),(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;(0,i.unstable_batchedUpdates)((()=>{this.props.onResize(s.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,u.jsx)("iframe",{ref:this._handleRef,className:c().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}},72570:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(67136),o=n(96540),i=n(76117),a=n(78729),s=n(83145),l=n(89574),c=n(87170),u=n(93440),d=n(74848);const p=[i.Go,i.dh,i.Eo,s.A,i.ax,i.MU,i.ug,i.Si,i.Zx,i.sb];class h 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=>p.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:u.A.color};return(0,d.jsx)(c.A,{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)(h,"defaultProps",{className:"",removeTransparent:!1,lastToolbarActionUsedKeyboard:!1})},87170:(e,t,n)=>{"use strict";n.d(t,{A:()=>Z});var r=n(97819),o=n(96540),i=n(79308),a=n(85409),s=n(97425),l=n(32485),c=n.n(l),u=n(60887),d=n(28561),p=n.n(d),h=n(78729),f=n(76117),m=n(9083),g=n.n(m),v=n(1549),y=n.n(v),b=n(92862),w=n.n(b),x=n(71052),S=n.n(x),_=n(93440),C=n(13793),E=n(79938),k=n.n(E),z=n(9627),P=n(9939),A=n(51630),D=n(77868),T=n(24677),I=n(84809),M=n.n(I),N=n(74848);const O=o.memo((function(e){const{onCreateNewColor:t,onChange:n,disabled:r,isChoosingColor:i}=e,[a,s]=o.useState("#000000"),l={opacity:r?"40%":"100%",backgroundImage:i?"none":M().nativeColorInput.backgroundImage,backgroundColor:i?a:null,border:i?"1px solid var(--PSPDFKit-ColorDropdownPickerComponent-item-circle-border-stroke)":"none",width:i?"18px":"22px",height:i?"18px":"22px"};return(0,N.jsx)("label",{htmlFor:"input-color",children:(0,N.jsx)("div",{className:M().nativeColorInputWrapper,children:(0,N.jsx)(T.DebounceInput,{className:c()(M().nativeColorInput,"PSPDFKit-Custom-Color-Input"),style:l,type:"color",id:"input-color",debounceTimeout:200,value:a,onChange:e=>{const t=e.target.value;t&&(s(t),n(f.Q1.fromHex(t)))},onBlur:e=>{const n=e.target.value;n&&t(f.Q1.fromHex(n))},disabled:r})})})}));var j,R,F,B,L;const V=e=>{const t=e.colors??h.JY.COLOR_PRESETS,{formatMessage:n}=(0,u.tz)(),{removeTransparent:r=!1,customColorPresets:a=[],setCustomColorPresets:s,setStoredColors:l,lastToolbarActionUsedKeyboard:d=!1,opacity:p=1,innerRef:m,value:g,caretDirection:v,keepOpacity:y,frameWindow:b,accessibilityLabel:w,onChange:x,unavailableItemFallback:S={type:"label"},disabled:_=!1,styles:E,shouldShowCustomColorPicker:k=!1,isUsingCustomConfig:P=!1,menuClassName:A}=e,[D,T]=o.useState(),[I,M]=o.useState(),j=o.useRef(!1),R=o.useCallback((e=>{const n=[...t,...a].find((t=>(null!=t.color&&null!=e?.value?.color&&e.value.color?.equals(t.color))??(null==e?.value?.color&&null==t.color))),r=[...t,...a].find((e=>n?H(e)===H(n):null));x(r??null)}),[t,a,x]),F=o.useCallback((e=>{const t={color:e,localization:{id:`custom-${(0,i.v4)()}`,defaultMessage:"Custom",description:"Custom color"}},n=[...a,t];l?.(n),s&&(s(n),T(void 0)),g?.color?.equals(e)||x(t)}),[a,s,l,x,g]),B=o.useCallback((e=>{const n=a.filter((t=>t.localization.id!==e.localization.id));l?.(n),s&&(s(n),T(void 0)),e.color&&g?.color?.equals(e.color)&&x(t[0])}),[a,x,s,l,t,g]),L=o.useCallback((e=>{T(e);const t={color:e,localization:{id:`custom-${(0,i.v4)()}`,defaultMessage:"Custom",description:"Custom color"}};x(t)}),[x]),V=[...t,...a].filter((e=>!(r&&(null===e.color||e.color.transparent)))).map((e=>({label:e.localization.id,value:e,disabled:!1}))),$=G({caretDirection:v,colors:t,customColorPresets:a,colorItems:V,disabled:_,innerRef:m,keepOpacity:y,lastToolbarActionUsedKeyboard:d,opacity:p,unavailableItemFallback:S,styles:E,value:g,formatMessage:n,autoFocused:j}),U=Y({colors:t,customColorPresets:a,isDeleteButtonVisible:I,setIsDeleteButtonVisible:M,formatMessage:n,handleChange:R,handleDeleteColor:B,keepOpacity:y,opacity:p,styles:E});return(0,N.jsx)("div",{className:E.controlWrapper,children:(0,N.jsx)("div",{className:E.control,children:(0,N.jsx)(C.A,{items:V,value:null!=g?V.find((e=>H(e.value)===H(g)))??null:null,discreteDropdown:!1,isActive:!1,caretDirection:v,className:`${e.className} ${E.colorSelect}`,menuClassName:c()(E.dropdownMenu,E.colorPickerDropdownMenu,A),ButtonComponent:$,ItemComponent:U,onSelect:(0,z.CN)()?void 0:(e,t)=>{R(t)},frameWindow:b,accessibilityLabel:w,maxCols:6,itemWidth:30,appendAfter:k?{node:K,index:P?t.length-1:t.length-(r?2:1)}:null,children:k&&(0,N.jsx)(O,{onCreateNewColor:F,onChange:L,disabled:a.length>=17,isChoosingColor:D instanceof f.Q1})})})})},K=()=>{const{formatMessage:e}=(0,u.tz)();return(0,N.jsx)("label",{style:{width:"100%",paddingTop:"10px",paddingBottom:"10px",paddingLeft:"5px"},children:e(_.A.custom)})};function $(e){let{onClick:t}=e;return(0,N.jsx)(r.A,{onClick:t,is:"button",className:c()(`PSPDFKit-AnnotationToolbar-Custom-Color-Delete-Button ${g().colorDeleteButton}`),children:j||(j=(0,N.jsx)(D.A,{src:k(),"aria-hidden":"true"}))})}function H(e){return null!=e?null!=e.color?e.color.toCSSValue():"none":"N/A"}function U(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 q=()=>(0,N.jsxs)(o.Fragment,{children:[(0,N.jsx)("defs",{children:(0,N.jsxs)("pattern",{id:"PSPDFKit-Color-Background-Chessboard",width:"0.5",height:"0.5",patternContentUnits:"objectBoundingBox",children:[(0,N.jsx)("rect",{x:"0",y:"0",width:"0.25",height:"0.25",style:{fill:"rgba(0,0,0,.2)"}}),(0,N.jsx)("rect",{x:"0.25",y:"0.25",width:"0.25",height:"0.25",style:{fill:"rgba(0,0,0,.2)"}})]})}),(0,N.jsx)("circle",{cx:"12",cy:"12",r:"10",style:{fill:"url(#PSPDFKit-Color-Background-Chessboard)"}})]}),W=()=>(0,N.jsx)("g",{transform:"translate(5 5)",children:(0,N.jsx)("line",{x1:"2",x2:"12",y1:"12",y2:"2",style:{stroke:"#F00",strokeWidth:2},strokeLinecap:"round"})}),G=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?H(e)===H(r.value):e.color?.transparent)),a=i?H(i):null,l=e.formatMessage(i?i.localization:{id:"transparent",defaultMessage:"Transparent",description:"Transparent"}),u=e.value,d=(!u||!i||"transparent"===i.localization.id||!e.keepOpacity&&e.opacity<1)&&(R||(R=(0,N.jsx)(q,{})));return(0,N.jsxs)("button",{...n,className:c()("PSPDFKit-Input-Dropdown-Button","PSPDFKit-Input-Color-Dropdown",e.styles.colorSelectButton,{[w().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(S().focusedFocusVisible),t.addEventListener("blur",P.Yf)))},name:"clickableBox",disabled:e.disabled,children:[o&&"label"===e.unavailableItemFallback.type?(0,N.jsx)("span",{children:e.unavailableItemFallback.label??"N/A"}):(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(s.s6,{tag:"div",children:l}),(0,N.jsxs)("svg",{viewBox:"0 0 24 24",className:e.styles.colorSvg,title:l,value:a,"aria-hidden":!0,children:[d,(i&&"transparent"===i.localization.id||!u)&&(F||(F=(0,N.jsx)(W,{}))),(0,N.jsx)("circle",{cx:"12",cy:"12",r:"10",style:U(u?.color??null)})]},a)]}),(0,N.jsx)("div",{children:(0,A.A)({type:`caret-${e.caretDirection}`,style:{width:12,height:12,flexBasis:12},className:c()(y().dropdownIcon)})})]})},Y=e=>t=>{let{item:n,state:o,itemComponentProps:i}=t;const l=[...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)),u=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,a.V1)(l,"Couldn't find matching color.");const d=H(l),h=u?e.formatMessage(l.localization):e.formatMessage(_.A.newColor),f=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 m,v=0;const b=("transparent"===l.localization.id||!e.keepOpacity&&e.opacity<1)&&(B||(B=(0,N.jsx)(q,{})));return(0,N.jsxs)("div",{"data-testid":"color-swatch",className:g().colorItemContainer,children:[f&&(e.isDeleteButtonVisible===d||!(0,z.CN)())&&(0,N.jsx)($,{onClick:()=>e.handleDeleteColor(f)}),(0,N.jsxs)(r.A,{is:"div",className:c()(p().root,w().root,{[y().isSelected]:o?.includes("selected")||o?.includes("focused")},y().item,e.styles.colorItem),name:n?.value?.localization.id??"",...i,onPointerDown:(0,z.CN)()?()=>{v=Date.now(),m=setTimeout((()=>{e.setIsDeleteButtonVisible(d)}),300)}:void 0,onPointerUp:(0,z.CN)()?(t=>()=>{Date.now()-v<300&&(window.clearTimeout(m),e.setIsDeleteButtonVisible(void 0),e.handleChange(t))})(n):void 0,children:[(0,N.jsx)(s.s6,{tag:"div",children:h}),(0,N.jsxs)("svg",{viewBox:"0 0 24 24",className:`PSPDFKit-Input-Dropdown-Item ${e.styles.colorSvg}`,title:h,value:d,"aria-hidden":"true",children:[b,"transparent"===l.localization.id&&(L||(L=(0,N.jsx)(W,{}))),(0,N.jsx)("circle",{cx:"12",cy:"12",r:"10",style:U(l.color,e.keepOpacity)})]},d)]})]})},Z=o.memo(V)},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(97425),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.E),(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(),setTimeout((()=>{const e=this.controlRef.current,t=this.props.shadowRoot,n=t?t.activeElement:e&&e.ownerDocument&&e.ownerDocument.activeElement,r=e&&e.contains(n);this.state.isOpen&&!r&&this._hideItems()}),0)}))}_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)(),j=(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",j,!1),()=>{C?.removeEventListener("scroll",j,!1)})),[j,C]);const R=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,$=Math.floor(R/2-V),H=Math.floor(R/2-K),U=L/(w*x/L)+.5/w,q=w*x*.5*L,W=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:$,top:H},children:[(0,y.jsx)(f.A,{...t,contentState:n,viewportRect:new h.rw({left:V,top:K,width:R,height:R}),forceDetailView:!0}),e.children]}),(0,y.jsxs)("div",{className:v().magnifierGridContainer,children:[(0,y.jsxs)("svg",{width:R,height:R,viewBox:`0 0 ${R*L} ${R*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:q,height:q,patternUnits:"userSpaceOnUse",children:(0,y.jsx)("polyline",{points:`${q-.5},0 ${q-.5},${q-.5} 0,${q-.5}`,className:v().magnifierGridStroke,strokeWidth:1,strokeLinejoin:"miter",strokeLinecap:"butt",shapeRendering:"crispEdges"})})}),(0,y.jsxs)("g",{transform:`translate(-${1+q/2},-${1+q/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(R*L/2)+L*(b||u.gm&&L>1?0:.5),y:Math.floor(R*L/2)+(b?1:0),width:q,height:q,className:v().magnifierCenterStroke,strokeWidth:1,strokeLinejoin:"miter",strokeLinecap:"butt",shapeRendering:"crispEdges"}),(0,y.jsx)("rect",{x:Math.floor(R*L/2)-1,y:Math.floor(R*L/2)-1,width:q+3,height:q+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:W})]})]})})})}},25507:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>Y,DZ:()=>Z,cD:()=>X});var r,o,i,a,s=n(96540),l=n(32485),c=n.n(l),u=n(60887),d=n(49568),p=n(97425),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),j=n.n(O),R=n(69309),F=n.n(R),B=n(43907),L=n.n(B),V=n(1549),K=n.n(V),$=n(27959),H=n(35467),U=n(63865),q=n(95272),W=n.n(q),G=n(74848);const Y=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,R=(0,f.d4)((e=>e.backend)),B=(0,f.d4)((e=>e.measurementScales)),V=(0,f.d4)((e=>e.activeMeasurementScale)),[K,q]=(0,s.useState)(!1),[W,Y]=(0,s.useState)(!1),J=V&&!K?V.precision:i.measurementPrecision,[Q,ee]=(0,s.useState)((0,d.NZ)([])),[te,ne]=(0,s.useState)(O.toFixed(A.AK[J])),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:J}).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)),q(!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,H.bK)(J))}),[J]),(0,s.useEffect)((()=>{W&&oe||(ie((0,v.AK)({scale:re,precision:J}).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===J}));ee(e?Q.add("duplicate"):Q.delete("duplicate"))}),[ae,le,te,re,J]);const fe="startPoint"in i&&i.startPoint,me="endPoint"in i&&i.endPoint;(0,s.useEffect)((()=>{ne(i.getMeasurementDetails().value.toFixed(A.AK[J]))}),[fe,me,J]);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:J};(0,f.vA)((()=>{D((0,w.XL)(e)),D((0,w.NJ)(e))})),"SERVER"===R?.type?(0,f.vA)((()=>{D((0,k.eS)(i)),D((0,b.J9)()),D((0,H.uT)(y.O.MEASUREMENT)),D((0,w.Qc)(!1)),D((0,g.eW)(!0))})):de(!0)}),[de,D,ae,J,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("/")));return ue?(0,G.jsx)(p.aF,{onEscape:()=>{(0,f.vA)((()=>{D((0,k.eS)(i)),D((0,b.J9)()),D((0,H.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,H.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:_(Z.calibrationScaleSuccess)})}),(0,G.jsx)("div",{className:L().calibrationSuccessRow,children:(0,G.jsx)("p",{children:_(Z.calibrationScaleSubtitle)})})]})}):o?null:(0,G.jsxs)(S.A,{referenceRect:t,viewportState:r,className:"PSPDFKit-Measurement-Popover",wrapperClassName:"PSPDFKit-Measurement-Editor",title:_(Z.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,H.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:_(Z.calibrateLength)}),(0,G.jsxs)("div",{className:F().calibrateRight,children:[(0,G.jsx)(p.ks,{type:"number",value:te,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()(j().input,"PSPDFKit-Calibration-Input")}),(0,G.jsx)("div",{className:c()(C().nativeDropdown,F().nativeButton),children:(0,G.jsx)("select",{"aria-label":_(Z.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($._).map((e=>(0,G.jsx)("option",{value:$._[e],children:$._[e]},e)))})}),(0,G.jsx)(T.A,{items:A.zc,value:A.zc.find((e=>e.value===re?.unitTo))??null,accessibilityLabel:_(Z.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:_(Z.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),W||Y(!0)},required:!0,style:{height:32,width:"100%",borderColor:Q.has("scaleName")?"#FF0000":void 0},className:c()(j().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()(j().input,j().disabled)}),(0,G.jsx)("div",{className:c()(C().nativeDropdown,F().nativeButton),children:(0,G.jsx)("select",{"aria-label":_(Z.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:_(Z.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()(j().input,j().disabled)}),(0,G.jsx)("div",{className:c()(C().nativeDropdown,F().nativeButton),children:(0,G.jsx)("select",{"aria-label":_(Z.measurementScale),className:"PSPDFKit-Input-Dropdown-Select",value:i.measurementScale?.unitTo||"",disabled:!0,children:Object.keys($._).map((e=>(0,G.jsx)("option",{value:$._[e],children:$._[e]},e)))})}),(0,G.jsx)(T.A,{items:A.zc,value:A.zc.find((e=>e.value===re?.unitTo))??null,accessibilityLabel:_(Z.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:_(Z.measurementPrecision)}),(0,G.jsx)("div",{className:c()(C().nativeDropdown,F().nativeButton),children:(0,G.jsx)("select",{style:{height:30},"aria-label":_(Z.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:_(Z.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:X,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)})]})},Z=(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 J=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}),X=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:W(),className:F().icon}):(0,G.jsx)("span",{className:F().icon}),(0,G.jsx)(J,{label:t?.label})]})}},87515:(e,t,n)=>{"use strict";n.d(t,{A:()=>I,D:()=>M});var r=n(96540),o=n(60887),i=n(97425),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,j]=r.useState(y?.precision),[R,F]=r.useState(!1),[B,L]=r.useState([]),[V,K]=r.useState(null),[$,H]=r.useState(null),[U,q]=r.useState(!1),W=(0,l.d4)((e=>{const{selectedAnnotationIds:t,annotations:n}=e;return t.map((e=>n.get(e)))})),G=(0,l.wA)(),Y=r.useCallback((0,z.$n)(n,"measurement"),[n]),Z=r.useCallback((0,z.q7)(n),[n]),J=r.useCallback((()=>{G((0,h.Sz)()),G((0,p.J9)()),G((0,d.iE)("measurement")),G((0,h.zB)())}),[G]),X=r.useCallback((e=>{if(R&&B&&a){const{deleted:t}=(0,A.b4)(a,B);if(t.filter((e=>{const t=$?.find((t=>t.prevScale===e));return!t})).length>0&&!e)return void q(!0);(0,l.vA)((()=>{G((0,D.nt)(B,$)),G((0,D.NJ)(V))}))}x&&I&&O&&G((0,D.yL)({unitTo:I,precision:O})),!y||I||O||G((0,D.yL)(null)),W.size>0&&(0,l.vA)((()=>{W.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))}))})),J()}),[V,R,G,$,a,J,B,y,I,O,x]),Q=r.useMemo((()=>!!I&&(0,A.dD)(I)),[I]);return U?(0,T.jsx)(f.B,{onConfirm:()=>{X(!0)},onCancel:()=>{q(!1)},accessibilityLabel:n(M.scaleAnnotationsDeleteWarning),accessibilityDescription:n(M.scaleAnnotationsDeleteWarning),children:(0,T.jsx)("p",{children:n(M.scaleAnnotationsDeleteWarning)})}):(0,T.jsxs)(g.A,{onEscape:J,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:H}),(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),j(void 0)):(N(_._.INCHES),j(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:Y,ItemComponent:Z,onSelect:(e,t)=>{(0,A.dD)(t.value)&&(0,A.w4)(O)&&!Q&&j(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:j,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:J,className:s()("PSPDFKit-Confirm-Dialog-Button","PSPDFKit-Confirm-Dialog-Button-Cancel",b().button),children:n(v.A.cancel)}),(0,T.jsx)(i.$n,{onClick:()=>X(),primary:!0,disabled:x&&(!I||!O)||!R,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(60887),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(97425),o=n(32485),i=n.n(o),a=n(96540),s=n(60887),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)),j=(0,l.d4)((e=>e.activeMeasurementScale)),[R,F]=(0,a.useState)([]),[B,L]=(0,a.useState)(O),[V,K]=(0,a.useState)(j?O?.findIndex((e=>(0,C.tv)(e,j))):0),[$,H]=(0,a.useState)([]),[U,q]=(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([]),q([]),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($)}),[$]);const W=(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])))&&$&&!$.find((t=>t===e))&&H([...$,{index:e,prevScale:O[e]}]),U.includes(e)||q([...U,e])},G=a.useCallback((0,d.$n)(E,"measurement"),[E]),Y=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=R.find((e=>e.index===o)),M=y?.fields.includes(P),j=y?.fields.includes(A),F=y?.fields.includes(D),Z=y?.fields.includes(T),J=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)||q([...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])))&&$&&!$.find((t=>t===e))&&H([...$,{index:e,prevScale:O[e]}])})(o,e.target.value)},required:!0,style:{height:32,width:"100%",borderColor:j?"#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=>{W(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=>{W(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:Y,onSelect:(e,t)=>{W(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=>{W(o,"toValue",e.target.value)},required:!0,style:{height:32,width:54,borderColor:Z||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=>{W(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:Y,onSelect:(e,t)=>{W(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=>W(o,"precision",e),selectedPrecision:l,wrapperClass:i()({[k().error]:J}),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})),$){const t=$.filter((t=>t.index!==e)).map((e=>({...e,index:e.index-1})));H(t)}if(U){const t=U.filter((t=>t!==e)).map((e=>e-1));q(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||j)&&(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})),q([...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:()=>R,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(60887),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 j(e,t){const n=Math.round(e*t);return new(s())(n/t).toFraction(!0)}function R(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=j(e.scale.fromValue,o),n=j(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=>R(e)));return t?[...r,{label:n,value:n}]:r}(s,A,w(N.A.mixed))),[A,w,s]),j=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():j(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)=>j(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(60887),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"},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"}}),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(97425),o=n(60887),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]);return[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]),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?.connection?.saveData;"STANDALONE"===t.type&&y.LZ&&r>2&&(r=2),"SERVER"===t.type&&o&&(r=1);const i=e*r;return"all"===n?i:n.reduce(((e,t)=>e<i?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}=e;const[u,d]=r.useState({position:null,direction:null}),[f,m]=r.useState(null);r.useLayoutEffect((()=>{if(!f)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:f,scroll:i,onPositionConflict:c});t.position&&d(t)}),[o,n,f,c,i]),r.useEffect((()=>{a&&a(u)}),[u,a]);const{direction:g}=u,v=u.position&&u.position.translate(o.getLocation().scale(-1)),y={position:"absolute",...v?{top:v.y,left:v.x}:{top:-1e5,left:-1e5},visibility:v?void 0:"hidden"},b=e=>{(e.height||e.width||e.top||e.left)&&m(e)};return"function"==typeof t?t({style:y,direction:g,onResize:b}):(0,p.jsxs)("div",{style:y,children:[(0,p.jsx)(s.A,{onResize:b}),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}=e;const{viewportRect:w,zoomLevel:x,scrollPosition:S}=g;return(0,p.jsx)(f,{referenceRect:n.grow(y),viewportRect:w,scroll:S.scale(x),onPositionInfoChange:v,children:e=>{let{style:f,direction:g,onResize:v}=e;const x=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:w,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,x&&d()[`arrow${x}`],"PSPDFKit-Popover-Arrow",x&&"PSPDFKit-Popover-Arrow-"+x)})}),(0,p.jsxs)("div",{style:f,className:i()(d().root,"PSPDFKit-Popover",x&&"PSPDFKit-Popover-"+x),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(60887),s=n(75453),l=n(45849),c=n(72162),u=n(97425),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",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(),j=r.useMemo((()=>o.find((e=>e.value===g?.value))),[o,g])??g,R=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,j&&"string"==typeof j.icon?j.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:$,getItemProps:H,getLabelProps:U,isOpen:q,selectedItem:W,highlightedIndex:G,setHighlightedIndex:Y}=(0,s.WM)({...e.frameWindow?{...V?{environment:V}:null}:null,items:o,itemToString:D,selectedItem:j,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(){}}),Z=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"}),J=$({onKeyDown:t=>{if(t.keyCode===c.XS&&q&&!e.propagateEscPress)t.stopPropagation();else if((t.keyCode===c.E1||t.keyCode===c.u)&&G>-1&&"menu"===e.role&&q&&!o[G].disabled)M.current=t.nativeEvent,N({selectedItem:o[G]});else if(t.keyCode===c.Vn&&te>1)Y(0===G?o.length:G-1);else if(t.keyCode===c.gV&&te>1)Y(G===o.length-1?0:G+1);else if(t.keyCode===c.lK&&O.current){const e=O.current.querySelector(`#${Z.id}`);e&&e.focus()}}},{suppressRefError:!0}),X=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()(q&&"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",{...X,children:e.accessibilityLabel})}),(0,v.jsx)("div",{ref:O,className:i()(S().wrapper,W?.className||"",{[S().disabledWrapper]:e.disabled,[S().isDisabled]:e.disabled}),children:Q?Q({btnComponentProps:Z,selectedItem:W,ref:t,caretDirection:e.caretDirection,disabled:e.disabled??!1,isOpen:q}):(0,v.jsxs)(v.Fragment,{children:[R({item:W,isSelectedItem:!0,state:null,ref:t}),(0,v.jsxs)("button",{...Z,...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:W?.label})})]})]})}),(0,v.jsx)(l.W,{children:(0,v.jsx)(b,{referenceElement:O.current,measure:q,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",{...J,className:`${F.menu} ${i()({[C().hiddenMenu]:!q})}`,style:{...p,...ne},onMouseLeave:()=>Y(null),role:"menu"===e.role?"menu":"listbox","aria-labelledby":Z["aria-label"]?void 0:J["aria-labelledby"],"aria-label":Z["aria-label"],"aria-hidden":!q,children:[q&&o.map(((t,a)=>{const s=!!W&&(W.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=H({item:t,index:a,disabled:t.disabled??!1,onClick:n=>{let{nativeEvent:r}=n;t.disabled||(M.current=r,"menu"===e.role&&q&&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:R({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:()=>gr,$eX:()=>jr,$hc:()=>Z,$j9:()=>Hn,$kT:()=>je,$uS:()=>Ut,$zs:()=>lr,A39:()=>Vr,AN0:()=>to,ASR:()=>z,AcT:()=>er,Ajq:()=>En,B0K:()=>St,B3$:()=>Kr,B5:()=>Et,BV:()=>Eo,BmW:()=>wr,C1Z:()=>gt,C7_:()=>T,CD4:()=>Y,CdF:()=>qr,Cj7:()=>ct,DIz:()=>Cn,DSK:()=>st,DTK:()=>Rt,Df2:()=>Ce,ENJ:()=>we,Ep5:()=>Qr,ErL:()=>dn,FCx:()=>Pt,FJm:()=>Gr,FKq:()=>ee,Fe8:()=>zr,GFn:()=>B,GJD:()=>nt,Get:()=>Dt,GnU:()=>Ie,Gro:()=>De,Gsj:()=>zn,H0A:()=>Cr,HEW:()=>an,H_3:()=>H,How:()=>ut,IMM:()=>co,J7t:()=>qt,JFC:()=>or,JMw:()=>Dn,Jgj:()=>xe,K2b:()=>xn,K6V:()=>y,KaD:()=>kt,LAB:()=>no,LPR:()=>xr,LPm:()=>V,LvH:()=>We,M5B:()=>mr,MC9:()=>gn,MCf:()=>To,MPB:()=>$n,Msx:()=>Ot,N00:()=>L,N6A:()=>ye,NDB:()=>sn,NTB:()=>Ur,NZW:()=>$r,NjH:()=>A,O4b:()=>jt,OPR:()=>sr,OQ1:()=>Oe,Ot4:()=>ve,P5p:()=>U,PHl:()=>p,PMu:()=>un,POx:()=>J,Ps5:()=>fo,Q5I:()=>ir,QRJ:()=>ke,QVN:()=>q,QlR:()=>In,Qti:()=>R,Qvq:()=>Dr,RG9:()=>Ln,R_L:()=>ft,Rql:()=>Yr,Rv8:()=>xt,S$q:()=>_t,SA4:()=>j,SB:()=>it,SI:()=>Ge,SJ7:()=>wn,SR7:()=>ko,Sb4:()=>vo,SlF:()=>X,SmB:()=>uo,SuH:()=>be,SwZ:()=>io,Swp:()=>Tt,T7d:()=>ue,TBQ:()=>Pn,TN1:()=>Fr,TPz:()=>ne,TRW:()=>Wt,TTm:()=>w,TUU:()=>ro,TV2:()=>Qe,TVi:()=>lo,TY$:()=>fe,Td6:()=>kn,TpM:()=>Kn,TpQ:()=>_,UDq:()=>Gt,UWX:()=>de,Uas:()=>b,UrP:()=>ae,UvZ:()=>nn,V5X:()=>Rn,VGl:()=>Te,VWe:()=>go,Vat:()=>Or,VhV:()=>a,VmY:()=>Sn,Vrp:()=>ot,WwK:()=>Vt,XPU:()=>dr,XX9:()=>jn,XZE:()=>ce,Xet:()=>Xr,Xnw:()=>ie,Xpm:()=>Zt,Xt9:()=>O,Y8N:()=>tn,YHd:()=>pe,Z$9:()=>Co,Z8:()=>F,ZN_:()=>Sr,ZSp:()=>mt,ZTP:()=>yr,ZkK:()=>h,Zkn:()=>Kt,Ztu:()=>r,_XN:()=>D,_YG:()=>i,_w:()=>xo,_z4:()=>yo,a6C:()=>Xe,agm:()=>Ct,av_:()=>$,bD6:()=>yn,bD_:()=>ge,bQ9:()=>Mr,bUk:()=>g,bYc:()=>wt,beK:()=>Ee,bjH:()=>Ye,c5z:()=>cn,cG6:()=>Lt,cNc:()=>Ar,cX:()=>po,cmb:()=>Se,coD:()=>qe,dBd:()=>Wn,dLL:()=>oe,dVR:()=>S,dnz:()=>vn,dqA:()=>ao,dv5:()=>fr,dwm:()=>pr,e$c:()=>C,e1v:()=>$t,e7N:()=>Ae,eko:()=>f,evn:()=>_e,f5v:()=>Yt,fAM:()=>m,fPp:()=>en,fjq:()=>u,fmV:()=>Ue,fnC:()=>o,g1L:()=>Ve,gA3:()=>Ir,gKg:()=>ho,gr7:()=>fn,h0V:()=>Xn,h0k:()=>lt,h31:()=>te,h6f:()=>rn,hCl:()=>Bt,hEI:()=>So,hIA:()=>N,hNe:()=>bo,hUH:()=>se,iGi:()=>Q,iMO:()=>x,iU1:()=>le,iZ4:()=>at,ilz:()=>Rr,iry:()=>v,jAd:()=>Jn,j_B:()=>Vn,jkd:()=>On,jms:()=>Pe,k0y:()=>wo,k5x:()=>ht,kZs:()=>Po,kh8:()=>Be,kyl:()=>mo,l58:()=>W,lBj:()=>Nr,lfs:()=>Bn,loZ:()=>nr,lp_:()=>mn,lxe:()=>ar,lyT:()=>ln,m$:()=>He,m$$:()=>Me,m65:()=>eo,mIs:()=>zt,mOc:()=>me,mQT:()=>l,mS9:()=>Jr,mb6:()=>qn,nN5:()=>Wr,nXN:()=>Ze,n_I:()=>Re,ngf:()=>Jt,njw:()=>pn,nkN:()=>Pr,o1d:()=>I,oFF:()=>G,oJw:()=>Lr,oLR:()=>cr,oSb:()=>Ft,oiE:()=>Je,oj5:()=>on,ovX:()=>ur,ozB:()=>Tn,pAl:()=>Ne,pmk:()=>M,psz:()=>zo,q$5:()=>vt,q3n:()=>br,q6G:()=>hr,q7x:()=>Tr,qDC:()=>Zn,qNu:()=>Hr,qOc:()=>Qt,qRc:()=>Nn,qU5:()=>vr,qml:()=>Mn,qvB:()=>so,r9i:()=>pt,rJq:()=>s,re3:()=>c,rw4:()=>yt,sMs:()=>K,sWq:()=>he,s_A:()=>rr,tEU:()=>Qn,tII:()=>Fn,tJg:()=>Gn,tSE:()=>rt,tTM:()=>et,tpQ:()=>Un,twv:()=>oo,u8m:()=>Ke,uO1:()=>$e,uW3:()=>Ao,uWd:()=>tt,uby:()=>dt,ulm:()=>tr,uo5:()=>_o,uoR:()=>Ht,up7:()=>re,ur2:()=>Er,v9$:()=>It,vSr:()=>k,vh9:()=>Nt,vjD:()=>_n,vjS:()=>Yn,vmd:()=>At,wY4:()=>An,wYS:()=>P,xQ8:()=>ze,xWZ:()=>Mt,xjY:()=>Le,yI7:()=>E,yT6:()=>Zr,ydo:()=>Br,yiN:()=>bt,ynV:()=>bn,yoE:()=>Xt,zD7:()=>Do,zRM:()=>_r,zgv:()=>Fe,zjV:()=>kr,zvJ:()=>hn});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",j="SET_VIEWPORT_PADDING",R="ENABLE_PANNING",F="DISABLE_PANNING",B="ENABLE_PRINTING",L="DISABLE_PRINTING",V="ENABLE_EXPORT",K="DISABLE_EXPORT",$="ENABLE_READ_ONLY",H="DISABLE_READ_ONLY",U="SHOW_ANNOTATIONS",q="HIDE_ANNOTATIONS",W="SHOW_COMMENTS",G="HIDE_COMMENTS",Y="SHOW_ANNOTATION_NOTES",Z="HIDE_ANNOTATION_NOTES",J="SET_FEATURES",X="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="ROTATE",pe="ENABLE_DEBUG_MODE",he="SHOW_DEBUG_CONSOLE",fe="HIDE_DEBUG_CONSOLE",me="SHOW_TOOLBAR",ge="HIDE_TOOLBAR",ve="ENABLE_ANNOTATION_TOOLBAR",ye="DISABLE_ANNOTATION_TOOLBAR",be="SET_SCROLLBAR_OFFSET",we="SET_LAYOUT_MODE",xe="SET_SCROLL_MODE",Se="SET_SCROLL_ELEMENT",_e="SET_ANNOTATION_CREATOR",Ce="SET_ANNOTATION_TOOLBAR_HEIGHT",Ee="UPDATE_TOOLBAR_ITEMS",ke="UPDATE_CURRENT_PRESET",ze="SET_CURRENT_ITEM_PRESET",Pe="UPDATE_ANNOTATION_PRESETS",Ae="ADD_ANNOTATION_PRESET_ID",De="SET_CURRENT_ITEM_PRESET_FROM_ANNOTATION",Te="REMOVE_ANNOTATION_PRESET_ID",Ie="DESELECT",Me="TEXT_SELECTED",Ne="TEXT_DESELECTED",Oe="SET_ANNOTATION_HOVER",je="UNSET_ANNOTATION_HOVER",Re="SET_ANNOTATION_NOTE_HOVER",Fe="SET_ACTIVE_ANNOTATION_NOTE",Be="SET_SELECTED_ANNOTATIONS",Le="UNSET_SELECTED_ANNOTATION_SHOULD_DRAG",Ve="SET_SELECTED_TEXT_ON_EDIT",Ke="FETCH_CONTENT_BLOCKS_SUCCESS",$e="FETCH_PAGE_INFO_SUCCESS",He="ENABLE_TEXT_HIGHLIGHTER_MODE",Ue="DISABLE_TEXT_HIGHLIGHTER_MODE",qe="ENABLE_REDACT_TEXT_HIGHLIGHTER_MODE",We="DISABLE_REDACT_TEXT_HIGHLIGHTER_MODE",Ge="ENABLE_REDACT_SHAPE_RECTANGLE_MODE",Ye="DISABLE_REDACT_SHAPE_RECTANGLE_MODE",Ze="ENABLE_INK_MODE",Je="DISABLE_INK_MODE",Xe="ENABLE_INK_ERASER_MODE",Qe="DISABLE_INK_ERASER_MODE",et="ENABLE_SIGNATURE_MODE",tt="DISABLE_SIGNATURE_MODE",nt="ENABLE_SHAPE_MODE",rt="DISABLE_SHAPE_MODE",ot="ENABLE_NOTE_MODE",it="DISABLE_NOTE_MODE",at="ENABLE_TEXT_MODE",st="DISABLE_TEXT_MODE",lt="ENABLE_STAMP_PICKER_MODE",ct="ENABLE_STAMP_CUSTOM_MODE",ut="DISABLE_STAMP_MODE",dt="ENABLE_INTERACTIONS",pt="DISABLE_INTERACTIONS",ht="SHOW_DOCUMENT_EDITOR",ft="HIDE_DOCUMENT_EDITOR",mt="ENABLE_MARQUEE_ZOOM",gt="DISABLE_MARQUEE_ZOOM",vt="SET_INTERACTION_MODE",yt="RESET_INTERACTION_MODE",bt="CREATE_COMMENTS",wt="CREATE_COMMENT_DRAFT",xt="UPDATE_COMMENTS",St="DELETE_COMMENTS",_t="COMPUTE_COMMENT_MODE",Ct="CREATE_ANNOTATIONS",Et="CREATE_INK_ANNOTATION_ON_NEW_PAGE",kt="CREATE_SHAPE_ANNOTATION_ON_NEW_PAGE",zt="CREATE_REDACTION_ANNOTATION_ON_NEW_PAGE",Pt="UPDATE_ANNOTATIONS",At="DELETE_ANNOTATIONS",Dt="SET_ANNOTATIONS_TO_DELETE",Tt="SEARCH_FOR_TERM",It="FOCUS_NEXT_SEARCH_HIGHLIGHT",Mt="FOCUS_PREVIOUS_SEARCH_HIGHLIGHT",Nt="SHOW_SEARCH",Ot="HIDE_SEARCH",jt="FOCUS_SEARCH",Rt="BLUR_SEARCH",Ft="SET_SEARCH_IS_LOADING",Bt="SET_SEARCH_RESULTS",Lt="SET_SEARCH_STATE",Vt="SET_SEARCH_PROVIDER",Kt="SET_FORM_JSON",$t="CREATE_FORM_FIELD_VALUES",Ht="SET_FORM_FIELD_VALUES",Ut="SET_FORMATTED_FORM_FIELD_VALUES",qt="SET_EDITING_FORM_FIELD_VALUES",Wt="DELETE_FORM_FIELD_VALUES",Gt="CREATE_FORM_FIELDS",Yt="UPDATE_FORM_FIELDS",Zt="REPLACE_FORM_FIELD",Jt="DELETE_FORM_FIELDS",Xt="DELETE_FORM_FIELDS_BY_IDS",Qt="SET_DOCUMENT_OUTLINE",en="TOGGLE_DOCUMENT_OUTLINE_ELEMENT",tn="SET_CUSTOM_OVERLAY_ITEM",nn="REMOVE_CUSTOM_OVERLAY_ITEM",rn="I18N_SET_LOCALE",on="CREATE_SIGNATURE",an="STORE_SIGNATURE",sn="SET_STORED_SIGNATURES",ln="DELETE_STORED_SIGNATURE",cn="UPDATE_STAMP_ANNOTATION_TEMPLATES",un="SHOW_PASSWORD_PROMPT",dn="SET_HAS_PASSWORD",pn="UNLOCKED_VIA_MODAL",hn="SET_ALLOWED_TILE_SCALES",fn="UPDATE_SELECTED_MARKUP_ANNOTATIONS",mn="SET_IS_EDITABLE_ANNOTATION",gn="SET_EDITABLE_ANNOTATION_TYPES",vn="SET_IS_EDITABLE_COMMENT",yn="SET_FORM_DESIGN_MODE",bn="SET_INK_ERASER_WIDTH",wn="RESET_DOCUMENT_STATE",xn="SET_DOCUMENT_HANDLE",Sn="SET_DOCUMENT_HANDLE_OUTDATED",_n="UPDATE_CUSTOM_RENDERERS",Cn="ENABLE_COMMENT_MARKER",En="DISABLE_COMMENT_MARKER",kn="START_DIGITAL_SIGNATURE",zn="END_DIGITAL_SIGNATURE",Pn="SET_SHOW_SIGNATURE_VALIDATION_STATUS_MODE",An="SET_DIGITAL_SIGNATURES",Dn="START_REDACTION",Tn="END_REDACTION",In="SET_PREVIEW_REDACTION_MODE",Mn="SET_COLLAPSE_SELECTED_NOTE_CONTENT",Nn="INVALIDATE_AP_STREAMS",On="VALIDATE_AP_STREAMS",jn="HISTORY_UPDATE_FROM_UNDO",Rn="HISTORY_UPDATE_FROM_REDO",Fn="SET_HISTORY_CHANGE_CONTEXT",Bn="HISTORY_IDS_MAP_ADD",Ln="CLEAR_HISTORY",Vn="REMOVE_ANNOTATION_FROM_HISTORY",Kn="ENABLE_HISTORY",$n="DISABLE_HISTORY",Hn="UPDATE_DOCUMENT_EDITOR_FOOTER_ITEMS",Un="UPDATE_DOCUMENT_EDITOR_TOOLBAR_ITEMS",qn="SET_EDITABLE_ANNOTATION_STATE",Wn="SET_A11Y_STATUS_MESSAGE",Gn="SET_LAST_TOOLBAR_ACTION_USED_KEYBOARD",Yn="ENABLE_DOCUMENT_CROP_MODE",Zn="DISABLE_DOCUMENT_CROP_MODE",Jn="SET_ON_ANNOTATION_RESIZE_START",Xn="SET_DOCUMENT_COMPARISON_STATE",Qn="ENABLE_SCROLL_WHILE_DRAWING",er="DISABLE_SCROLL_WHILE_DRAWING",tr="SET_REUSE_STATE",nr="ENABLE_KEEP_SELECTED_TOOL",rr="DISABLE_KEEP_SELECTED_TOOL",or="SET_INSTANCE",ir="SET_CUSTOM_UI_STORE",ar="SET_SIDEBAR_WIDTH",sr="SET_READ_ONLY_ANNOTATION_FOCUS",lr="UNSET_READ_ONLY_ANNOTATION_FOCUS",cr="SET_ANNOTATION_TOOLBAR_ITEMS_CALLBACK",ur="TOGGLE_CLIPBOARD_ACTIONS",dr="SET_ON_WIDGET_CREATION_START_CALLBACK",pr="SET_FORM_DESIGNER_LOCAL_WIDGET_ANNOTATION",hr="SET_INLINE_TOOLBAR_ITEMS_CALLBACK",fr="ADD_ANNOTATION_VARIANTS",mr="ENABLE_CONTENT_EDITOR",gr="DISABLE_CONTENT_EDITOR",vr="CHANGE_CONTENT_EDITOR_SESSION_MODE",yr="ENABLE_LINK_MODE",br="DISABLE_LINK_MODE",wr="DISABLE_DRAWING_LINK_ANNOTATION_MODE",xr="SET_MEASUREMENT_SNAPPING",Sr="SET_MEASUREMENT_PRECISION",_r="SET_MEASUREMENT_SCALE",Cr="SET_MEASUREMENT_VALUE_CONFIGURATION_CALLBACK",Er="SET_MEASUREMENT_SCALES",kr="SET_MEASUREMENT_TOOL_STATE",zr="SET_HINT_LINES",Pr="CONTENT_EDITOR/PAGE/LOADING",Ar="CONTENT_EDITOR/PAGE/LOADED",Dr="CONTENT_EDITOR/TEXT_BLOCK/INTERACTION/ACTIVE",Tr="CONTENT_EDITOR/TEXT_BLOCK/INTERACTION/TOGGLE",Ir="CONTENT_EDITOR/TEXT_BLOCK/INTERACTION/SELECT",Mr="CONTENT_EDITOR/TEXT_BLOCK/CREATE",Nr="CONTENT_EDITOR/TEXT_BLOCK/UPDATE_INFO",Or="CONTENT_EDITOR/TEXT_BLOCK/SET_FORMAT",jr="CONTENT_EDITOR_/TEXT_BLOCK/RESIZE",Rr="CONTENT_EDITOR_/TEXT_BLOCK/MOVE",Fr="CONTENT_EDITOR/SAVING",Br="CONTENT_EDITOR/SET_DIRTY",Lr="CONTENT_EDITOR/FACE_LIST/LOADING",Vr="CONTENT_EDITOR/FACE_LIST/SET",Kr="CONTENT_EDITOR_SET_EXIT_DIALOG",$r="CONTENT_EDITOR_SHOW_FONT_MISMATCH_TOOLTIP",Hr="CONTENT_EDITOR_HIDE_FONT_MISMATCH_TOOLTIP",Ur="CONTENT_EDITOR_FONT_MISMATCH_TOOLTIP_ABORT_CONTROLLER",qr="ENABLE_MULTI_ANNOTATIONS_SELECTION_MODE",Wr="DISABLE_MULTI_ANNOTATIONS_SELECTION_MODE",Gr="CREATE_ANNOTATION_GROUP",Yr="SET_SELECTED_GROUP",Zr="DELETE_ANNOTATION_GROUP",Jr="REMOVE_ANNOTATION_FROM_GROUP",Xr="SET_PULL_TO_REFRESH_STATE",Qr="SET_RICH_EDITOR_REF",eo="FOCUS_WIDGET_ANNOTATION",to="SET_ON_COMMENT_CREATION_START_CALLBACK",no="INVALIDATE_PAGE_KEYS",ro="CONTENT_EDITOR_ACTIVE_TEXT_BLOCK_DELETE",oo="CHANGE_SCROLL_STATE",io="SET_CUSTOM_FONTS_READABLE_NAMES",ao="ENABLE_MEASUREMENT_MODE",so="DISABLE_MEASUREMENT_MODE",lo="SHOW_MEASUREMENT_SETTINGS",co="HIDE_MEASUREMENT_SETTINGS",uo="SET_SECONDARY_MEASUREMENT_UNIT",po="SET_ACTIVE_MEASUREMENT_SCALE",ho="SET_CALIBRATION_MODE",fo="UPDATE_PAGE_KEYS",mo="SET_DISABLE_POINT_SNAPPING",go="SET_ENABLE_ALWAYS_SCROLL_TO_ZOOM",vo="SET_FORCE_RENDER_WIDGETS_IN_ANNOTATIONS_ORDER",yo="SET_EVALUATION",bo="SELECT_IMPORT_ICON_IMAGE",wo="SET_OCG_LAYERS",xo="SET_OCG_VISIBILITY",So="SET_PRERENDERED_PAGE_SPREADS",_o="SET_PAGE_TAB_ORDER",Co="SET_DOCUMENT_ASSISTANT_CONFIGURATION",Eo="SET_SHOW_DOCUMENT_ASSISTANT",ko="SET_DOCUMENT_ASSISTANT_ADDITIONAL_CONTEXT",zo="CONTENT_EDITOR_SET_PROMPT_DOCUMENT_DOWNLOAD",Po="CONTENT_EDITOR_SET_PROMPT_CANNOT_SAVE_CHANGES",Ao="SET_IS_SERVER_MODE_DOWNLOADING_WASM",Do="SET_IS_SERVER_MODE_DOWNLOADING_DOCUMENT",To="SET_HIGHLIGHT_STATE"},37361:(e,t,n)=>{"use strict";n.d(t,{$V:()=>U,$_:()=>S,AN:()=>l,BX:()=>u,Bd:()=>y,Cy:()=>R,DK:()=>i,Dg:()=>N,FG:()=>d,Gz:()=>K,HI:()=>Z,J0:()=>H,Jf:()=>T,LB:()=>Y,Mp:()=>s,Nn:()=>J,Pw:()=>V,Ss:()=>W,TB:()=>c,UM:()=>a,Us:()=>x,V9:()=>h,W2:()=>g,Wp:()=>f,Xm:()=>p,YF:()=>q,Yy:()=>z,_M:()=>B,aD:()=>$,b4:()=>I,bL:()=>A,bg:()=>F,dO:()=>Q,dc:()=>O,eV:()=>o,gR:()=>_,hY:()=>P,jw:()=>M,lY:()=>G,mN:()=>w,oY:()=>r,pp:()=>X,s$:()=>j,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,j=1,R=96/72,F=5e3,B={LOW:75/72,MEDIUM:150/72,HIGH:300/72},L=2/3,V=595,K=842,$=50,H=96,U=300,q=1e3,W=4.25,G=2,Y=10,Z=16383,J=4,X=250,Q={thumbnailMinSize:X/2,thumbnailMaxSize:X+1.5*X,thumbnailDefaultSize:X}},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-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-document-assistant"]},72776:(e,t,n)=>{"use strict";n.d(t,{M:()=>d});var r=n(35175),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.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})})}},47608:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(7737),o=n(97425);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&&"function"==typeof r.activeElement.focus?r.activeElement:r.body: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"}},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",DOCUMENT_ASSISTANT:"document_assistant"}},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(35175),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,PasswordDialog:r.ug,DocumentEditor:r.pu,Thumbnails:r.q_,Annotations:r.rB,Outline:r.Rc},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},PasswordDialogDecorator:r.hO,DocumentEditorDecorator:r.k8,ThumbnailsDecorator:i.f,AnnotationsDecorator:a.w,DiffViewerDecorator:s.z,OutlineDecorator:l.Q},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",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"}},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:()=>h,G2:()=>p,vy:()=>d});var r=n(38849),o=n(90243),i=n.n(o),a=n(63049),s=n(85410),l=n(14511);const c=(0,r.A)("I18n"),u=e=>e.split("-")[0],d=e=>{let t=e;return i().includes(t)||(t=u(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 p(e){await(0,a.fH)(e),await(0,a.HC)(u(e))}const h={locales:i(),messages:a.Ay,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||(0,s.$_)(window.document);n.p=r;const o=d(e);await p(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"]},63049:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>l,HC:()=>u,fH:()=>c});var r=n(38849),o=n(93900);const i={cs:()=>n.e(7612).then(n.t.bind(n,61126,23)),cy:()=>n.e(2982).then(n.t.bind(n,66052,23)),da:()=>n.e(9055).then(n.t.bind(n,37239,23)),de:()=>n.e(43).then(n.t.bind(n,55827,23)),el:()=>n.e(2013).then(n.t.bind(n,92209,23)),en:()=>n.e(5407).then(n.t.bind(n,64335,23)),es:()=>n.e(5274).then(n.t.bind(n,22412,23)),fi:()=>n.e(2673).then(n.t.bind(n,70009,23)),fr:()=>n.e(2210).then(n.t.bind(n,47928,23)),hr:()=>n.e(9656).then(n.t.bind(n,19782,23)),id:()=>n.e(6961).then(n.t.bind(n,56717,23)),it:()=>n.e(6817).then(n.t.bind(n,25981,23)),ja:()=>n.e(8013).then(n.t.bind(n,72733,23)),ko:()=>n.e(568).then(n.t.bind(n,22074,23)),ms:()=>n.e(8914).then(n.t.bind(n,71140,23)),nb:()=>n.e(4154).then(n.t.bind(n,34752,23)),nl:()=>n.e(7940).then(n.t.bind(n,50558,23)),pl:()=>n.e(2142).then(n.t.bind(n,9392,23)),pt:()=>n.e(2518).then(n.t.bind(n,42760,23)),ru:()=>n.e(3441).then(n.t.bind(n,82121,23)),sk:()=>n.e(708).then(n.t.bind(n,59950,23)),sl:()=>n.e(7899).then(n.t.bind(n,97807,23)),sv:()=>n.e(5054).then(n.t.bind(n,33945,23)),th:()=>n.e(3406).then(n.t.bind(n,50616,23)),tr:()=>n.e(8036).then(n.t.bind(n,47978,23)),uk:()=>n.e(1506).then(n.t.bind(n,18932,23)),zh:()=>n.e(1612).then(n.t.bind(n,3974,23))},a=(0,r.A)("I18n"),s={},l=s;async function c(e){if(!(e in s))try{const t=await o.V[e]();s[e]=t.default}catch(t){a(!1,`Cannot find translations for "${e}". Please retry or add them manually to PSPDFKit.I18n.messages["${e}"]`)}return s[e]}async function u(e){if(i[e])try{await i[e]()}catch(t){a(!1,`Cannot find locale data for "${e}". Please retry or contact support for further assistance.`)}}},93900:(e,t,n)=>{"use strict";n.d(t,{V:()=>r});const r={cs:()=>n.e(7364).then(n.t.bind(n,59113,19)),cy:()=>n.e(2590).then(n.t.bind(n,60647,19)),da:()=>n.e(3751).then(n.t.bind(n,21424,19)),de:()=>n.e(931).then(n.t.bind(n,6060,19)),el:()=>n.e(4341).then(n.t.bind(n,53482,19)),"en-GB":()=>n.e(4351).then(n.t.bind(n,53010,19)),en:()=>n.e(1543).then(n.t.bind(n,5496,19)),es:()=>n.e(4866).then(n.t.bind(n,37503,19)),fi:()=>n.e(57).then(n.t.bind(n,50322,19)),"fr-CA":()=>n.e(9015).then(n.t.bind(n,19506,19)),fr:()=>n.e(3258).then(n.t.bind(n,46507,19)),hr:()=>n.e(8928).then(n.t.bind(n,13753,19)),id:()=>n.e(9529).then(n.t.bind(n,55782,19)),it:()=>n.e(969).then(n.t.bind(n,7638,19)),ja:()=>n.e(7285).then(n.t.bind(n,41974,19)),ko:()=>n.e(2576).then(n.t.bind(n,96765,19)),ms:()=>n.e(4874).then(n.t.bind(n,36871,19)),"nb-NO":()=>n.e(1234).then(n.t.bind(n,41533,19)),nl:()=>n.e(1948).then(n.t.bind(n,7841,19)),pl:()=>n.e(6870).then(n.t.bind(n,56339,19)),"pt-PT":()=>n.e(771).then(n.t.bind(n,90762,19)),pt:()=>n.e(7262).then(n.t.bind(n,85403,19)),ru:()=>n.e(6377).then(n.t.bind(n,95218,19)),sk:()=>n.e(2556).then(n.t.bind(n,39681,19)),sl:()=>n.e(8163).then(n.t.bind(n,75448,19)),sv:()=>n.e(4377).then(n.t.bind(n,36514,19)),th:()=>n.e(2902).then(n.t.bind(n,64955,19)),tr:()=>n.e(8972).then(n.t.bind(n,61357,19)),uk:()=>n.e(1930).then(n.t.bind(n,83575,19)),"zh-Hans":()=>n.e(8225).then(n.t.bind(n,25988,19)),"zh-Hant":()=>n.e(1630).then(n.t.bind(n,24645,19))}},46261:(e,t,n)=>{e.exports=n(98269).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)}}},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",function(){let e=null;return async function(){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=i({oldChanges:n,newChange:e})})),n}function i(){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=a(e,t.set("type","created"));break}if("updated"===e.type){n=a(e,t);break}case"deleted":if("created"===e.type){e.resolve(),t.resolve(),n=null;break}if("updated"===e.type){n=a(e,t);break}default:e.reject(new r.uE("Request was cleared because a more recent update was queued."))}return!1}return!0}));return n&&(o=o.push(n)),o}function a(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:()=>T,Z:()=>A,wf:()=>D});var r=n(85409),o=n(49568),i=n(7737),a=n(42838),s=n.n(a),l=n(51946),c=n(76117),u=n(83145),d=n(38849),p=n(53080),h=n(89574),f=n(75439),m=n(13217),g=n(14063),v=n(4939),y=n(42361),b=n(89055),w=n(36899),x=n(88140),S=n(46491),_=n(46395),C=n(39582),E=n(64337);const k=(0,d.A)("Annotations"),z="The API you're trying to use requires a annotation editing license. Annotation Editing is a component of PSPDFKit for Web and thus sold separately.\nhttps://pspdfkit.com/guides/web/current/annotations/introduction-to-annotations/",P="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.",A="The API you're trying to use requires a measurement license. Measurement is a component of PSPDFKit for Web and sold separately.";class D extends v.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=>{I(n,e,"create");const o=e.id;if("string"==typeof o&&k(!n.annotations.has(o),`Annotation id (${o}) is already used.`),e instanceof l.sb&&t){T(n,e)||k(t.some((t=>t instanceof w.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.");O(e);let s=e.withMutations((t=>{t.merge((0,h.mN)(n.set("currentItemPreset",null))),["name","id","creatorName","createdAt","updatedAt"].map((n=>e[n]&&t.set(n,e[n])))}));if(e instanceof l.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(s instanceof l.sb&&(s=s.delete("group")),e instanceof l.sb){const n=this.getState,o=t?.some((t=>t instanceof w.zB&&t.name===e.formFieldName));if(o&&!!T(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((()=>{k(s instanceof l.sb,"Expected widget annotation");null==T(n(),s)&&(this.dispatch((0,f.eS)(s)),(0,r.R8)(`Widget orphan: The widget annotation has been deleted because no form was field found with the name ${s.formFieldName} after 500ms. Please ensure that once instance.create() resolves, a corresponding form field is created with instance.create(). (See: https://pspdfkit.com/api/web/PSPDFKit.Instance.html#create)`))}),500)}return s=F(s),s}));return this.dispatch((0,f.Iy)(o.filter((e=>!(e instanceof Error))))),this.autoSave(),(0,C.U)(o)}async update(e){const t=this.getState(),n=e.map((e=>{I(t,e,"update"),k("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);k(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."),k(!(e instanceof l.vU&&e.imageAttachmentId!==t.annotations.get(e.id)?.imageAttachmentId),"Changing the imageAttachmentId of an annotation is not allowed."),k(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,x.q2)(n,t))throw new r.uE("You don't have permission to update this annotation.");if(e instanceof l.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,x.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=F(e)).set("updatedAt",new Date);return O(o),o}));return n.length>0&&(0,i.vA)((()=>{n.forEach((e=>{e instanceof Error||this.dispatch((0,f.g_)(e))})),this.autoSave()})),(0,C.U)(n)}async delete(e){const t=this.getState(),n=e.map((e=>{I(t,e,"delete");const n=t.annotations.get(e.id);if(k(n,`No annotation with id ${e.id} found.`),!(0,x.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,f.eS)(e))})),this.autoSave()})),(0,C.U)(n)}async ensureChangesSaved(e){k("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 k(t),await t.ensureObjectSaved(e)}async getObjectById(e){k("string"==typeof e,"The supplied id is not a valid id.");const{annotations:t,features:n}=this.getState();return(0,b.UX)(n)?t.get(e):null}}function T(e,t){const n=e.annotations.get(t.id);let r=t.formFieldName;return null!=n&&null!=n.formFieldName&&(r=n.formFieldName),null!=r?e.formFields.get(r):null}function I(e,t,n){const{features:o}=e;if(!(0,b.UX)(o)){if(!(t instanceof c.Eo||t instanceof l.vU))throw new r.uE(`Annotations: ${z}`);if(!0===t.isSignature&&!o.includes(E.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 PSPDFKit for Web and thus sold separately.\nhttps://pspdfkit.com/guides/web/current/annotations/introduction-to-annotations/");if(!t.isSignature||!o.includes(E.Y.ELECTRONIC_SIGNATURES))throw new r.uE(`Annotations: ${z}`)}let i="";t.id&&(i=` with id "${t.id}"`),t instanceof l.sb&&function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{features:n}=e;k(n.includes(E.Y.FORM_DESIGNER),(t||"")+y.Pf),k((0,b.ah)(e.backend),P)}(e,`Tried to ${n} a widget annotation${i}. Widget annotations are part of forms. `),k(!(t instanceof u.A)||o.includes(E.Y.REDACTIONS),`Tried to ${n} a redaction annotation${i}. ${p.K}`),k(!(t instanceof c.pP&&t.isMeasurement())||o.includes(E.Y.MEASUREMENT_TOOLS),`Tried to ${n} a measurement annotation${i}. ${A}`)}function M(e){k(e instanceof c.rw,"`boundingBox` must be an instance of PSPDFKit.Geometry.Rect");for(const[t,n]of e)k("number"==typeof n,`invalid value \`${n}\` for \`boundingBox.${t}\``)}function N(e){k(e instanceof c.bR,"`startPoint` and `endPoint` must be instances of PSPDFKit.Geometry.Point");for(const[t,n]of e)k("number"==typeof n,`invalid value \`${n}\` for \`point.${t}\``)}function O(e){if(k(e instanceof l.YH,"Invalid annotation"),k("number"==typeof e.pageIndex,"`pageIndex` must be a number"),k("number"==typeof e.opacity,"`opacity` must be a number"),k("boolean"==typeof e.noView,"`noView` must be a boolean"),k("boolean"==typeof e.noPrint,"`noPrint` must be a boolean"),k("boolean"==typeof e.noZoom,"`noZoom` must be a boolean"),k("boolean"==typeof e.hidden,"`hidden` must be a boolean"),k(null==e.customData||(0,r.Qd)(e.customData)&&(0,r.Wj)(e.customData),"`customData` must be a serializable object"),M(e.boundingBox),"text"in e&&null!=e.text&&(k("object"==typeof e.text&&null!==e.text,"`text` is not an object with properties `format` and `value`"),k("plain"===e.text.format||"xhtml"===e.text.format,"Invalid text format"),k("string"==typeof e.text.value,"`text.value` must be a string")),e instanceof c.s9&&k("plain"===e.text.format,"Invalid text format. Only `plain` format is supported"),e instanceof l.sb){if(e.additionalActions)for(const[t,n]of Object.entries(e.additionalActions))k("onBlur"===t||"onFocus"===t||"onInput"===t||"onFormat"===t||"onChange"===t,`Invalid attribute ${t} in \`additionalActions\`. Supported attributes: \`onBlur\`, \`onFocus\`, \`onInput\`, \`onFormat\`, \`onChange\``),k(n instanceof S.e,`Invalid attribute type of ${t} in \`additionalActions\`. ${t} must be of type \`PSPDFKit.Actions.JavaScriptAction\``);k("string"==typeof e.formFieldName&&e.formFieldName.length>0,"Annotation attribute `formFieldName` must be of type `string` and larger than 0 characters")}if((e instanceof l.sb||e instanceof l.dh)&&(null!=e.isItalic&&k("boolean"==typeof e.isItalic,"Annotation attribute `isItalic` must be of type `boolean`"),null!=e.isBold&&k("boolean"==typeof e.isBold,"Annotation attribute `isBold` must be of type `boolean`"),null!=e.verticalAlign&&k("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&&k("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&&k("number"==typeof e.borderWidth,"Annotation attribute `borderWidth` must be of type `number`"),null!=e.borderStyle&&k(e.borderStyle===_.k.solid||e.borderStyle===_.k.dashed||e.borderStyle===_.k.beveled||e.borderStyle===_.k.inset||e.borderStyle===_.k.underline,"Annotation attribute `borderStyle` must be one of `solid`, `dashed`, `beveled`, `inset`, `underline`"),null!=e.font&&k("string"==typeof e.font&&e.font.length>0,"Annotation attribute `font` must be of type `string` and larger than 0 characters."),null!=e.fontSize&&k("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)&&k(e.get(t)instanceof c.Q1,`\`${t}\` must be an instance of PSPDFKit.Color`)})),e.has("lines")&&(k("lines"in e&&e.lines instanceof o.B8,"lines must be an instance of PSPDFKit.Immutable.List"),e.lines.forEach(((e,t)=>{k(e instanceof o.B8,"line must be an instance of PSPDFKit.Immutable.List"),e.some(((e,n)=>{k(e instanceof m.A,`found an invalid DrawingPoint at index ${n} for line ${t}`)}))}))),e instanceof l.tr&&k(e.has("rects"),"Text markup annotations must have `rects`"),e instanceof l.xY&&k(g.qm[e.stampType],`Unknown stamp annotation stampType: \`${e.stampType}\``),e.has("rects")&&(k("rects"in e&&e.rects instanceof o.B8,"rects must be an instance of `PSPDFKit.Immutable.List`"),k(e.rects.size>0,"rects must be contain at least one rect"),e.rects.forEach(M)),e.has("startPoint")&&(k("startPoint"in e&&e.startPoint instanceof c.bR,"startPoint must be an instance of `PSPDFKit.Immutable.Point`"),N(e.startPoint)),e.has("endPoint")&&(k("endPoint"in e&&e.endPoint instanceof c.bR,"endPoint must be an instance of `PSPDFKit.Immutable.Point`"),N(e.endPoint)),e.has("rotation")){const t=e.rotation;e instanceof l.sb?k(0===t||90===t||180===t||270===t,"`rotation` must be of type `number` and one of 0, 90, 180, or 270."):(e instanceof l.dh||e instanceof l.xY||e instanceof l.vU)&&k(Math.abs(t)%1==0,"`rotation` must be an integer")}}function j(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 F(e){let t=e;if(e instanceof l.dh&&"xhtml"===e.text.format){let n,o,i;k(t instanceof l.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.");"#comment"===j(n)&&(n=n.nextSibling),"html"===j(n)&&(n=n.firstChild),"head"===j(n)&&(n=n.nextSibling),"body"===j(n)&&(n=n.childNodes.length>1?n.childNodes:n.firstChild,o=document.createElement("div")),"div"!==j(n)||n.length||(n=n.firstChild,o=document.createElement("div"));const a=n instanceof NodeList;"p"!==j(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):a?R(o,n):o=n,t=t.set("text",{format:"xhtml",value:s().sanitize(a?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 PSPDFKit for Web 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 PSPDFKit for Web 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:()=>w});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);const g=(0,p.A)("SaveModeQueue");class v{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(){g(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],(t=>t.push(e))):this._inFlightModifications=this._inFlightModifications.set(t,(0,o.B8)([e])),this._notifySaveStateChange(),()=>{this._inFlightModifications=this._inFlightModifications.updateIn([t],(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 y(e),e}))})).valueSeq().toArray();if(this._setModificationsAndNotifyChange(a,!1),e&&h.length>0&&h.push(this._syncChanges().catch((e=>{throw y(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=>{g(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 y(e){(0,i.z3)(e)}var b=n(78236);class w{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 v({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 r=this._callbacks.getObjectId(e);(0,i.V1)(r);const o=this._saveModeQueue.queuedObjectType(r),a=this._saveModeQueue.isSaved(r)||o===l,c=o===s;a||c?(this._callbacks.onUpdate&&this._callbacks.onUpdate(e,t),this._saveModeQueue.updateObject(this._createSaveQueueObject(r,e,t)),this._updatedObjects=this._updatedObjects.set(r,e)):(this._callbacks.onCreate&&this._callbacks.onCreate(e,t),this._saveModeQueue.createObject(this._createSaveQueueObject(r,e,t)),this._createdObjects=this._createdObjects.set(r,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 r=this._callbacks.getObjectId(e);(0,i.V1)(r);const o=this._saveModeQueue.queuedObjectType(r),a=this._saveModeQueue.isSaved(r)||o===l,c=o===s;this._callbacks.onDelete&&this._callbacks.onDelete(e,t),(a||c)&&this._saveModeQueue.deleteObject(this._createSaveQueueObject(r,e,t)),this._deletedObjects=this._deletedObjects.set(r,e)}finally{n()}}backendObjectsCreated(e,t,n){const r=t===b.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(0),updatedAt:t.updatedAt?new Date(t.updatedAt):new Date(0),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(0),updatedAt:t.updatedAt?new Date(t.updatedAt):new Date(0),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:()=>a,N2:()=>c,Wg:()=>u,_8:()=>s});var r=n(49568),o=n(85409),i=n(43420);function a(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?t.fields.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:l(t),...n};throw new Error(`Unknown action type: ${t.constructor.name}`)}(e)}function s(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):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 l(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 c(e){return Object.keys(e).reduce(((t,n)=>{const r=e[n];return r&&(t[n]=s(r)),t}),{})}function u(e){return Object.keys(e).reduce(((t,n)=>{const r=e[n];return r instanceof i.rc&&(t[n]=a(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]})}},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:()=>Y,XL:()=>X,mh:()=>Z,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:()=>J,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 j 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 R=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),$=n(78531);var H=n(83647),U=n(27522),q=n(45374);const W=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||W(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 R.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 j;case a.Ip:return T;case l.A:return F;default:throw new Error("Unsupported annotation type")}}(e.constructor))(e).toJSON();return W(t),t}function Y(e,t,n){return pe(t.type).fromJSON(e,t,n)}function Z(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,$.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,$.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 J(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,$.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 X(e,t,n){return(0,q._)(e,t,n)}function Q(e,t){return(0,q.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(H.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(H.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(H.k5).includes(e.certificateChainValidationStatus))throw new r.uE("Invalid `certificateChainValidationStatus` for signature info. Must be one of the `PSPDFKit.CertificateChainValidationStatus` values");if(!Object.values(H.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:H.Pb[e.documentIntegrityStatus],certificateChainValidationStatus:H.k5[e.certificateChainValidationStatus],signatureValidationStatus:H.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?H.D7.CAdES:H.D7.CMS)]||H.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 R.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 j;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 W(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 W(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)}))))}},94010:(e,t,n)=>{"use strict";n.d(t,{Uw:()=>Bk,Hr:()=>Jk,nf:()=>Zk,g$:()=>Hk,$4:()=>Uk,jU:()=>Rk,NY:()=>Xk,Hh:()=>$k,Sj:()=>Pk,Ib:()=>Qk,o3:()=>Kk,Pm:()=>Fk,lH:()=>zk});var r={};n.r(r),n.d(r,{Decoder:()=>Bw,Encoder:()=>Rw,PacketType:()=>jw,protocol:()=>Ow});var o=n(97425),i=n(45849),a=n(49568),s=n(7737),l=n(85409),c=n(40961),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(67136),y=n(98899);class b{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 w{constructor(e){(0,v.A)(this,"selection",new b),(0,v.A)(this,"isSelecting",!1),(0,v.A)(this,"initialPoint",null),(0,v.A)(this,"currentPoint",null),(0,v.A)(this,"clickCount",0),(0,v.A)(this,"clickTimer",null),(0,v.A)(this,"processing",!1),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.setupEventListeners(e),window.ShadowRoot.prototype.getSelection=()=>{const e=x();return(0,y.ly)(e)||e===document.body?document.getSelection():this.selection}}setupEventListeners(e){e.addEventListener("mousedown",this.boundHandleMouseDown),e.addEventListener("mousemove",this.boundHandleMouseMove),document.addEventListener("mouseup",this.boundHandleMouseUp),window.addEventListener("selectionchange",this.boundSelectionChange,!0),window.addEventListener("beforeinput",this.boundBeforeInput,!0)}cleanupEventListeners(e){e.removeEventListener("mousedown",this.boundHandleMouseDown),e.removeEventListener("mousemove",this.boundHandleMouseMove),document.removeEventListener("mouseup",this.boundHandleMouseUp),window.removeEventListener("selectionchange",this.boundSelectionChange,!0),window.removeEventListener("beforeinput",this.boundBeforeInput,!0)}windowSelectionChange(){if(!this.processing){this.processing=!0;const e=x();e&&"true"===e.getAttribute("contenteditable")&&document.execCommand("indent"),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,y.zG)(n,t.clientX,t.clientY);let o=0;if(r&&r.nodeType===Node.TEXT_NODE&&(o=(0,y.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,y.wg)(this.initialPoint,this.currentPoint);this.updateSelection(e.startNode,e.startOffset,e.endNode,e.endOffset)}}this.initialPoint=null,this.currentPoint=null}setupInitialSelectionPoint(e){let{e:t,target:n}=e;const r=(0,y.zG)(n,t.clientX,t.clientY),o=r&&r.nodeType===Node.TEXT_NODE?(0,y.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,y.zG)(t,e.clientX,e.clientY);if(n&&n.nodeType===Node.TEXT_NODE){const t=(0,y.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,y._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)}}function x(){let e=document.activeElement;for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}var S=n(41204);function _(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 C=n(30830),E=n(50960),k=n(76117),z=n(5511),P=n(77270),A=n(37433),D=n(44523),T=n(27959),I=n(35014),M=n(38849),N=n(29366);const O=(0,M.A)("MeasurementValueConfiguration");function j(e){let t=!1;e.forEach(((n,r)=>{var o;o=n,O((0,l.Qd)(o)&&!!o,"Expected item to be an object"),O((0,l.Qd)(o.scale)&&!!o.scale,"Expected scale to be an object"),O(void 0!==o.scale.unitFrom&&Object.values(I.b).includes(o.scale.unitFrom),`Scale ${o.name} does not have a valid 'unitFrom' value.`),O(void 0!==o.scale.unitTo&&Object.values(T._).includes(o.scale.unitTo),`Scale ${o.name} does not have a valid 'unitTo' value.`),O(void 0!==o.scale.fromValue&&(0,N.Et)(Number(o.scale.fromValue)),`Scale ${o.name} does not have a valid 'fromValue' value.`),O(void 0!==o.scale.toValue&&(0,N.Et)(Number(o.scale.toValue)),`Scale ${o.name} does not have a valid 'toValue' value.`),O("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,D.tv)(n,e[t]);O(!o,`Scale ${n.name||`at index ${r}`} is a duplicate of ${e[t].name||`at index ${t}`}.`)}n.selected&&(O(!t,"Only one scale can be selected at a time. Please check your configuration."),t=!0)}))}var R=n(89574),F=n(30235),B=n(71453),L=n(18738),V=n(82500);const K=new k.Uw,$={[V.agm]:(e,t)=>e.withMutations((e=>{t.annotations.forEach((t=>{(0,R.lC)(e,t)}))})),[V.B5]:(e,t)=>{const n=t.annotation.withMutations((n=>n.merge((0,R.mN)(e)).set("pageIndex",t.pageIndex)));return e.withMutations((e=>{e.set("selectedAnnotationIds",(0,a.NZ)([n.id])),e.set("interactionMode",F.O.INK),e.set("selectedAnnotationMode",B.Q.EDITING),(0,R.lC)(e,n)}))},[V.ynV]:(e,t)=>e.set("inkEraserCursorWidth",t.lineWidth),[V.KaD]:(e,t)=>{const n=t.annotation.withMutations((n=>n.merge((0,R.mN)(e)).set("pageIndex",t.pageIndex)));return e.withMutations((e=>{e.set("selectedAnnotationIds",(0,a.NZ)([n.id])),e.set("interactionMode",(0,L.e8)(t.annotation.constructor)),e.set("selectedAnnotationMode",B.Q.EDITING),(0,R.lC)(e,n)}))},[V.mIs]:(e,t)=>{const n=t.annotation.withMutations((n=>n.merge((0,R.mN)(e)).set("pageIndex",t.pageIndex)));return e.withMutations((e=>{e.set("selectedAnnotationIds",(0,a.NZ)([n.id])),e.set("interactionMode",F.O.REDACT_SHAPE_RECTANGLE),e.set("selectedAnnotationMode",B.Q.EDITING),(0,R.lC)(e,n)}))},[V.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},[V.xQ8]:(e,t)=>{let{currentItemPreset:n}=t;return e.set("currentItemPreset",n)},[V.jms]:(e,t)=>{let{annotationPresets:n}=t;return e.set("annotationPresets",n)},[V.e7N]:(e,t)=>{let{annotationID:n,annotationPresetID:r}=t;return e.setIn(["annotationPresetIds",n],r)},[V.VGl]:(e,t)=>{let{annotationID:n}=t;return e.delete("annotationPresetIds",n)},[V.Gro]:(e,t)=>{let{annotationID:n}=t;const r=e.annotationPresetIds.has(n)?e.annotationPresetIds.get(n):(0,R.tE)(e,n);return e.set("currentItemPreset",r)},[V.FCx]:(e,t)=>e.withMutations((e=>{t.annotations.forEach((t=>{(0,R.rJ)(e,t)}))})),[V.vmd]:(e,t)=>e.withMutations((e=>{t.ids.forEach((t=>{(0,R.Xm)(e,t)}))})),[V.Get]:(e,t)=>{let{annotationsIDs:n}=t;return e.set("annotationsIdsToDelete",n)},[V.c5z]:(e,t)=>{let{stampAnnotationTemplates:n}=t;return e.set("stampAnnotationTemplates",n)},[V.qml]:(e,t)=>e.set("collapseSelectedNoteContent",t.value),[V.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)))}))})),[V.jkd]:(e,t)=>e.withMutations((e=>{t.ids.forEach(((t,n)=>{e.invalidAPStreams.get(t)&&e.deleteIn(["invalidAPStreams",t],n)}))})),[V.jAd]:(e,t)=>e.set("onAnnotationResizeStart",t.callback),[V.zjV]:(e,t)=>{let{measurementToolState:n}=t;return e.set("measurementToolState",n?{...e.measurementToolState,...n}:null)},[V.Fe8]:(e,t)=>{let{hintLines:n}=t;return e.set("hintLines",n)},[V.H0A]:(e,t)=>{let{configurationCallback:n}=t;return e.set("measurementValueConfiguration",n)},[V.ur2]:(e,t)=>{let{scales:n}=t;const r=e.measurementValueConfiguration?.(n)??n;r&&j(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)}))},[V.SmB]:(e,t)=>e.set("secondaryMeasurementUnit",t.secondaryMeasurementUnit),[V.cX]:(e,t)=>e.set("activeMeasurementScale",t.activeMeasurementScale),[V.gKg]:(e,t)=>e.set("isCalibratingScale",t.isCalibratingScale),[V.dv5]:(e,t)=>e.withMutations((e=>{"down"===t.variant?e.updateIn(["APStreamVariantsDown"],(e=>e.concat(t.annotationObjectIds))):"rollover"===t.variant&&e.updateIn(["APStreamVariantsRollover"],(e=>e.concat(t.annotationObjectIds)))})),[V.m65]:(e,t)=>e.set("widgetAnnotationToFocus",t.annotationId),[V.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 k.sb){if(s=r.get(a.formFieldName),!s)return e;if(s instanceof k.Qk){if(o.includes(s.name))return e;const r=n.filter((e=>e instanceof k.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 H(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:K,t=arguments.length>1?arguments[1]:void 0;const n=$[t.type];return n?n(e,t):e}var U=n(5217),q=n(63939),W=n(83145),G=n(24063),Y=n(62362),Z=n(37513),J=n(94308),X=n(64337),Q=n(30919),ee=n(74848);const te=()=>()=>{};function ne(){const e=u.createContext(te);class t extends u.Component{constructor(){super(...arguments),(0,v.A)(this,"state",{instances:{}}),(0,v.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:{...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 c.createPortal(void 0===n?null:n,r,t)}));return(0,ee.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,ee.jsx)(e.Consumer,{children:e=>(0,ee.jsx)("div",{ref:e(n,r,o)})})}}}const re=ne(),oe=ne();ne();var ie=n(51946);function ae(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,ee.jsxs)("div",{style:{position:"relative"},children:[t&&r,n&&(0,ee.jsx)("div",{ref:s,style:o})]})}function se(e,t){return!e&&!t}const le={node:"object",append:"boolean",noZoom:"boolean",onDisappear:"function"};const ce=(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=ue[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!==le[t],`Render configuration '${t}' property is not supported`),(0,l.V1)(typeof e[t]===le[t],`Render configuration ${t} property has wrong '${typeof e[t]}' type, should be '${le[t]}'`))}(p);const{node:h,append:f,noZoom:m=!1,onDisappear:g}=p,v=de[r];(0,l.V1)("boolean"==typeof m);const y={pointerEvents:f?"none":"all",...v?v(s,m,i,o):null};return(0,ee.jsx)(ae,{node:h,append:f,onDisappear:g,rendererStyles:y,children:a})})),ue={Annotation:e=>({annotation:e.annotation}),CommentAvatar:e=>({comment:e.comment})},de={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,...se(t,n)?{transform:`scale(${r})`,transformOrigin:"0 0"}:null}}return{}},CommentAvatar:null};var pe=n(97819),he=n(60887),fe=n(9627),me=n(75675);class ge 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,me.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,ee.jsx)("div",{style:u,className:this.props.className,children:t})}}var ve=n(95171),ye=n(69371),be=n(93440),we=n(51630),xe=n(37361),Se=n(83106),_e=n.n(Se);class Ce extends u.Component{constructor(){super(...arguments),(0,v.A)(this,"shouldComponentUpdate",ye.E),(0,v.A)(this,"_onPointerDownUp",(e=>{e.isPrimary&&(!this.props.isReadOnly&&e.preventDefault(),this._handlePress(e,"touch"!==e.pointerType?new k.bR({x:e.clientX,y:e.clientY}):null))})),(0,v.A)(this,"_handlePress",((e,t)=>{const n=()=>{this.props.dispatch((0,ve.pw)(this.props.annotation,e,{selectedAnnotationShouldDrag:t,stopPropagation:!0,ignoreReadOnly:!0}))};fe.LZ?window.setTimeout(n,5):n()})),(0,v.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",_e().annotation);return(0,ee.jsx)(ge,{position:e.boundingBox.getLocation(),zoomLevel:t,currentPagesRotation:n,noRotate:!0,isMultiAnnotationsSelected:this.props.isMultiAnnotationsSelected,children:(0,ee.jsx)(pe.A,{...s,onClick:this._handleClick,style:{width:xe.jw,height:xe.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(be.A.annotation)}: ${o(be.A.comment)}`,tabIndex:-1,children:(0,ee.jsx)(we.A,{style:{width:xe.jw,height:xe.jw},className:p()(_e().icon,r&&_e().iconActive),type:"comment-indicator"})})})}}const Ee=(0,he.j4)(Ce,{forwardRef:!0});var ke,ze=n(78625),Pe=n(92078),Ae=n(77868),De=n(66421),Te=n(11899),Ie=n.n(Te),Me=n(83720),Ne=n(57892),Oe=n(26438),je=n(64104),Re=n.n(je);class Fe extends u.PureComponent{constructor(){super(...arguments),(0,v.A)(this,"isAlive",!0),(0,v.A)(this,"_shouldShowIndicators",this.props.annotation instanceof k.vU||this.props.annotation instanceof k.UL||this.props.annotation instanceof k.xY||this.props.annotation instanceof k.Ip||this.props.formField instanceof k.Vw),(0,v.A)(this,"_imageFetcherRef",(e=>{e&&!this._fetchImageComponentInstance&&(this._fetchImageComponentInstance=e)})),(0,v.A)(this,"_fetchImageComponentInstance",null),(0,v.A)(this,"state",{loadingState:"LOADING",showLoadingIndicator:!1,renderedAnnotation:null}),(0,v.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))));const i=this._lastZoomLevelUsed<n;return this._lastZoomLevelUsed=n,(0,ze.pw)({backend:e,blob:t?.data,annotation:o,isDetachedAnnotation:Boolean(r),zoomLevel:n,variant:this.props.variant,hasZoomedIn:i})})),(0,v.A)(this,"_renderFinished",(()=>{this.isAlive&&(this.props.annotation instanceof k.xY&&this.setState({renderedAnnotation:this.props.annotation}),this._shouldShowIndicators&&this.setState({loadingState:"LOADED"}),this.props.onRenderFinished?.())})),(0,v.A)(this,"_showError",(()=>{this.isAlive&&(this.props.annotation instanceof k.xY||this.props.annotation instanceof k.vU||this.props.annotation instanceof k.Ip?this._shouldShowIndicators&&this.setState({loadingState:"ERROR"}):this.props.onError?.())})),(0,v.A)(this,"_showLoadingIndicator",(()=>{this.isAlive&&this._shouldShowIndicators&&this.setState((e=>({showLoadingIndicator:"LOADING"===e.loadingState})))}))}componentDidUpdate(e){!this.props.isDragging&&this.isAlive&&Ke(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,xe.$V)}componentWillUnmount(){this.isAlive=!1;const{annotation:e,backend:t}=this.props;"imageAttachmentId"in e&&e.imageAttachmentId&&(t.attachmentsCache=t.attachmentsCache.delete((0,ze.fu)(e)))}render(){const{annotation:e,attachment:t,formField:n,label:r,zoomLevel:i}=this.props,a=e instanceof k.xY&&this.state.renderedAnnotation?.opacity!==e.opacity,s={...Be,...Ve({annotation:this.state.renderedAnnotation||e,attachment:t,zoomLevel:i}),...a?{opacity:e.opacity}:null},l=p()(Re().wrapper,"PSPDFKit-APStream-Wrapper",{[Re().loading]:this._shouldShowIndicators&&"LOADING"===this.state.loadingState&&this.state.showLoadingIndicator,[Re().error]:this._shouldShowIndicators&&"ERROR"===this.state.loadingState}),c=p()(e instanceof k.xY&&Re().stampAnnotation,e instanceof k.sb&&Re().widgetAnnotation,"PSPDFKit-APStream"),u=e instanceof k.xY||e instanceof k.vU||e instanceof k.Ip||e instanceof k.sb&&n instanceof k.Vw?null:0;return(0,ee.jsxs)("figure",{style:s,className:l,"data-name":n?.name,children:[(0,ee.jsx)(Pe.A,{className:c,fetchImage:this._fetchImage,label:r,visible:!0,onRenderFinished:this._renderFinished,onError:this._showError,throttleTimeout:u,rectStyle:Le,ref:this._imageFetcherRef}),"description"in e&&e.description&&(0,ee.jsx)(o.s6,{tag:"figcaption",children:e.description}),this._shouldShowIndicators&&"LOADING"===this.state.loadingState&&this.state.showLoadingIndicator?(0,ee.jsx)("div",{className:Re().placeholder,children:ke||(ke=(0,ee.jsx)(De.A,{}))}):this._shouldShowIndicators&&"ERROR"===this.state.loadingState?(0,ee.jsx)("div",{className:Re().placeholder,children:(0,ee.jsx)(Ae.A,{src:Ie(),className:Re().errorIcon})}):null]})}}const Be={position:"relative",overflow:"hidden",margin:0,pointerEvents:"none",width:"100%",height:"100%"},Le={pointerEvents:"none",width:"100%",height:"100%"};function Ve(e){let{annotation:t,attachment:n,zoomLevel:r}=e;if(t instanceof k.sb){return{position:"absolute",top:0,...90===(0,Oe.hR)(t.rotation)||270===(0,Oe.hR)(t.rotation)?{width:t.boundingBox.width*r,height:t.boundingBox.height*r}:null}}if(t instanceof k.UL)return{position:"absolute",top:0};if(t instanceof k.pP||t instanceof k.Eo)return{padding:fe.LZ?xe.Bd:xe.uo};if(t instanceof k.xY&&(0,Ne.Lz)(t)){const e=(0,Ne.rK)(t),n=(t.boundingBox.width-e.boundingBox.width)/2*r,o=(t.boundingBox.height-e.boundingBox.height)/2*r;return{transformOrigin:"50% 50%",transform:`translate(${-n}px, ${-o}px) rotate(${String(t.rotation)}deg)`,width:t.boundingBox.width*r,height:t.boundingBox.height*r}}if(t instanceof k.dh&&(0,Ne.Lz)(t)){const e=(0,Ne.rK)(t),n=(t.boundingBox.width-e.boundingBox.width)/2*r,o=(t.boundingBox.height-e.boundingBox.height)/2*r;return{transformOrigin:"50% 50%",transform:`translate(${-n}px, ${-o}px) rotate(${String(t.rotation)}deg)`,width:t.boundingBox.width*r,height:t.boundingBox.height*r}}return t instanceof k.vU&&n&&t.opacity<1?{opacity:t.opacity}:t instanceof k.UL||t instanceof k.dh||t instanceof k.tr||t instanceof k.s9||t instanceof k.Ip||t instanceof k.vU||t instanceof k.xY?{}:void(0,l.GQ)(t.constructor)}function Ke(e,t){return function(e,t){return!(0,R.yQ)(t.annotation,t.zoomLevel)&&t.zoomLevel>e.zoomLevel}(e,t)||(0,R.bN)(e.annotation,t.annotation)||(0,R.Mq)(e.formField,t.formField)||t.formField&&e.formField&&t.formField.formattedValue!==e.formField.formattedValue||!(0,Me.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 $e=n(88290),He=n(72254),Ue=n.n(He);class qe extends u.PureComponent{constructor(){super(...arguments),(0,v.A)(this,"_handlePointerDown",(e=>{e.isPrimary&&this.props.isSelectable&&this._handlePress(e,"touch"!==e.pointerType?new k.bR({x:e.clientX,y:e.clientY}):null)})),(0,v.A)(this,"_handlePress",((e,t)=>{this.props.dispatch((0,ve.pw)(this.props.annotation,e,{selectedAnnotationShouldDrag:t,stopPropagation:!0}))})),(0,v.A)(this,"_handleClick",(e=>{"keypress"===e.type&&this._handlePress(e,null)})),(0,v.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,R.Zr)(e,{isSelectable:i}),overflow:"hidden",width:c.width*o,height:c.height*o,display:"block",outline:this.props.isFocused?R.wp:null};return(0,ee.jsx)(re.Reparent,{id:`annotation-image-${u}`,children:(0,ee.jsx)(ge,{position:c.getLocation(),zoomLevel:o,isMultiAnnotationsSelected:this.props.isMultiAnnotationsSelected,children:(0,ee.jsx)($e.A,{onPointerUp:this._handlePointerUp,onPointerEnter:()=>{this.props.dispatch((0,ve.Si)(e.id))},onPointerLeave:()=>{this.props.dispatch((0,ve.Zz)(e.id))},children:(0,ee.jsx)(pe.A,{disabled:a,onPointerDown:this._handlePointerDown,onClick:this._handleClick,style:d,className:p()("PSPDFKit-Annotation PSPDFKit-Image-Annotation",{[Ue().readOnlyOutline]:e.readOnly||e.locked}),"data-annotation-id":e.id,"aria-label":`${l(be.A.annotation)}: ${l(be.A.imageAnnotation)}`,tabIndex:-1,children:(0,ee.jsx)(Fe,{annotation:e,attachment:t,backend:n,onRenderFinished:r,zoomLevel:o,label:l(be.A.imageAnnotation),isDragging:s,onError:this.props.onError})})})})})}}const We=(0,he.j4)(qe,{forwardRef:!0});var Ge=n(83047),Ye=n(78729),Ze=n(84937),Je=n.n(Ze);class Xe extends u.PureComponent{constructor(){super(...arguments),(0,v.A)(this,"precision",(0,Ge.Em)(this.props.zoomLevel)),(0,v.A)(this,"_handlePointerDown",(e=>{e.persist(),e.isPrimary&&(e.preventDefault(),this._handlePress(e,"touch"!==e.pointerType?new k.bR({x:e.clientX,y:e.clientY}):null))})),(0,v.A)(this,"_handlePress",((e,t)=>{this.precision=(0,Ge.Em)(this.props.zoomLevel),this.props.dispatch((0,ve.pw)(this.props.annotation,e,{selectedAnnotationShouldDrag:t,stopPropagation:!0}))})),(0,v.A)(this,"_handlePointerUp",(e=>{e.stopPropagation()})),(0,v.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(fe.LZ?xe.Bd:xe.uo),d=(0,R.Zr)(e,{isSelectable:n}),h={...u.toJS(),cursor:d},f=c&&"normal"!==c?{mixBlendMode:(0,R.rX)(c),...fe.nr?{transform:"translate3d(0,0,0)"}:null}:{};return(0,ee.jsx)("div",{style:f,children:(0,ee.jsx)(ge,{zoomLevel:this.props.zoomLevel,applyZoom:!0,isMultiAnnotationsSelected:this.props.isMultiAnnotationsSelected,children:(0,ee.jsx)($e.A,{onPointerEnter:()=>{this.props.dispatch((0,ve.Si)(e.id))},onPointerLeave:()=>{this.props.dispatch((0,ve.Zz)(e.id))},children:(0,ee.jsxs)(pe.A,{disabled:this.props.isDisabled,onPointerUp:s?this._handlePointerUp:void 0,className:p()(Je().container,{[Je().cursorNotAllowed]:e.readOnly||e.locked},"PSPDFKit-Ink-Annotation PSPDFKit-Annotation"),style:h,"data-annotation-id":e.id,"aria-label":`${t(be.A.annotation)}: ${t(be.A.inkAnnotation)}`,tabIndex:-1,children:[(0,ee.jsx)(et,{annotation:e,onPointerDown:this._handlePointerDown,isSelectable:this.props.isSelectable,viewBox:u,pathDataFromFragments:r,renderInvisibleClickPath:s,precision:this.precision}),s&&o&&(0,ee.jsx)(re.Reparent,{id:`annotation-ink-${e.id}`,children:(0,ee.jsx)(Fe,{annotation:e,backend:o,zoomLevel:i,label:t(be.A.inkAnnotation),isDragging:a,onError:this.props.onError})})]})})})})}}const Qe=(0,he.j4)(Xe,{forwardRef:!0}),et=function(e){let{annotation:t,isSelectable:n,viewBox:r,pathDataFromFragments:o=(()=>null),onPointerDown:i,renderInvisibleClickPath:s=!1,precision:l=(0,Ge.Em)(1)}=e;const{ENABLE_INK_SMOOTH_LINES:c}=Ye.JY,d=u.useMemo((()=>c?e=>(0,Ge.Hj)(e,l):Ge.F0),[l,c]),h=u.useRef([]),f=u.useCallback(((e,n,r)=>o(t.id,n,r)||(0,Ge.bv)(e).map(d).flat()),[o,d,t]);h.current=u.useMemo((()=>{t.lines.size!==h.current.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(fe.LZ?xe.Bd:xe.uo,r):0},u=p()({[Je().path]:!0,[Je().selectable]:!t.readOnly&&!t.locked,"PSPDFKit-Smooth-Lines":c}),d=o.map(((e,t)=>{const r=(0,Ge.bV)(h.current[t]);return(0,ee.jsxs)("g",{children:[!s&&(0,ee.jsx)("path",{className:u,style:a,d:r,"data-testid":"ink-path"}),n&&(0,ee.jsx)("path",{onPointerDown:i,className:u,style:l,stroke:"transparent",d:r,"data-testid":"clickable-path"})]},t)}));return(0,ee.jsx)("g",{children:d})}),[t,n,i,c,s]),g=u.useMemo((()=>{const{backgroundColor:e,boundingBox:n}=t,r=p()({[Je().rect]:!0,[Je().selectable]:!!e}),o={fill:e?.toCSSValue()||"transparent"},{width:a,height:s,top:l,left:c}=n;return(0,ee.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,ee.jsxs)("svg",{viewBox:v,style:y,className:Je().svg,focusable:!1,"data-testid":"ink-svg",children:[g,m]})};var tt=n(58433),nt=n.n(tt),rt=n(43420);const ot=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,he.tz)(),m=p()(nt().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?R.wp:null},x=(0,R.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 rt.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 rt.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 rt.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 rt.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,ee.jsx)(ge,{position:r.getLocation(),zoomLevel:o,disablePointerEvents:!0,isMultiAnnotationsSelected:h,children:(0,ee.jsxs)(pe.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(be.A.linkAnnotation),onMouseEnter:()=>{s((0,ve.Si)(t.id))},onMouseLeave:()=>{s((0,ve.Zz)(t.id))},tabIndex:-1,children:[(0,ee.jsx)(_.type,{..._.props,className:m,style:S,"data-annotation-id":t.id,tabIndex:n?-1:0,"aria-disabled":n?"true":"false"}),a&&c&&(0,ee.jsx)(re.Reparent,{id:`annotation-link-${t.id}`,children:(0,ee.jsx)(Fe,{annotation:t,backend:c,zoomLevel:o,label:f(be.A.linkAnnotation),isDragging:d,onError:e.onError})})]})})}));const it=ot;var at=n(75439),st=n(8367),lt=n(92661),ct=n.n(lt);class ut extends u.Component{constructor(){super(...arguments),(0,v.A)(this,"shouldComponentUpdate",ye.E),(0,v.A)(this,"onClick",(()=>{this.props.dispatch((0,at.ax)()),window.setTimeout((()=>{this.props.dispatch((0,ve._G)(this.props.annotation.id))}),0)})),(0,v.A)(this,"_onPointerDownUp",(e=>{e.isPrimary&&(this.props.isReadOnly||e.preventDefault(),this._handlePress(e,"touch"!==e.pointerType?new k.bR({x:e.clientX,y:e.clientY}):null),this.props.isOpen||this.props.dispatch((0,ve.Zz)(this.props.annotation.id)),e.stopPropagation())})),(0,v.A)(this,"_handlePress",((e,t)=>{this.props.dispatch((0,ve.pw)(this.props.annotation,e,{selectedAnnotationShouldDrag:t,stopPropagation:!0,ignoreReadOnly:!0}))})),(0,v.A)(this,"_handleClick",(e=>{"keypress"===e.type&&this._handlePress(e,null)})),(0,v.A)(this,"_onMouseEnter",(()=>{this.props.dispatch((0,ve.Si)(this.props.annotation.id))})),(0,v.A)(this,"_onMouseLeave",(()=>{this.props.dispatch((0,ve.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&&!fe.LZ,{annotation:l,zoomLevel:c,rotation:u}=this.props,{boundingBox:d,color:h,icon:f}=l,{width:m,height:g}=d,v=(0,R.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?R.wp:null,cursor:v},b=st.ac[f]||st.ac[st.Qv.COMMENT],w=(0,N.Ow)(b);let x;try{x=n(7915)(`./${b}.svg`)}catch(e){}const S=this.props.isReadOnly?{onPointerUp:this._onPointerDownUp}:{onPointerDown:this._onPointerDownUp},_=p()({"PSPDFKit-Annotation":!0,"PSPDFKit-Note-Annotation":!0,[`PSPDFKit-Note-Annotation-Icon-${w}`]:!0,[ct().annotation]:!0,[ct().noteIconInPage]:!0});return(0,ee.jsxs)(ee.Fragment,{children:[(0,ee.jsx)(ge,{position:d.getLocation(),zoomLevel:c,currentPagesRotation:u,noRotate:!0,isMultiAnnotationsSelected:this.props.isMultiAnnotationsSelected,children:(0,ee.jsx)(pe.A,{...S,onClick:this._handleClick,disabled:this.props.isDisabled,style:y,className:_,onPointerEnter:s?this._onMouseEnter:void 0,onPointerLeave:s?this._onMouseLeave:void 0,"data-annotation-id":l.id,"aria-label":`${e(be.A.annotation)}: ${e(be.A.noteAnnotation)}`,"aria-controls":`NoteAnnotationContent-${l.id}`,tabIndex:-1,children:r?(0,ee.jsx)(re.Reparent,{id:`annotation-note-${l.id}`,children:(0,ee.jsx)(Fe,{annotation:l,zoomLevel:c,backend:t,label:e(be.A.noteAnnotation),onError:this.props.onError})}):x?(0,ee.jsx)(Ae.A,{src:x,className:ct().icon,role:"presentation"}):b})}),!this.props.isOpen&&(0,ee.jsx)(o.s6,{id:`NoteAnnotationContent-${l.id}`})]})}}const dt=(0,he.j4)(ut,{forwardRef:!0});const pt=(0,s.Ng)((function(e,t){let{annotation:n}=t;return{annotation:n,isFullscreen:e.viewportState.viewportRect.width<=xe.BX,rotation:e.viewportState.pagesRotation,isOpen:e.selectedAnnotationIds.has(n.id)&&"number"==typeof n.pageIndex}}),null,null,{forwardRef:!0})(dt),ht=pt;var ft=n(6163),mt=n(41008);const gt=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<L.WA)return{markerScale:25-(e-1)*n,strokeScale:1/(L.WA-e)};if(t&&e>L.Ai-2)return{markerScale:n,strokeScale:L.Ai};return{markerScale:n,strokeScale:1}}(i,a);return(0,ee.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:mt.B[t][`${o}Element`]({...n,strokeWidth:l})})};var vt=n(62348),yt=n.n(vt);const bt=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,ft.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()({[yt().visible]:!0}),b=t?fe.LZ?Math.max(xe.Bd,i):Math.max(xe.uo,i):0,w=p()({[yt().selectable]:!m&&!f}),x={stroke:o?.toCSSValue()||"transparent",pointerEvents:"none",fill:u?.toCSSValue()||"transparent",strokeWidth:1},S=`${h}-StartLineCap`,_=`${h}-EndLineCap`,C=(0,L.PZ)((0,a.B8)([s,l]),i,c||{}),E=C.first(),k=C.get(1),z={x1:void 0!==E?E.x:s.x,y1:void 0!==E?E.y:s.y,x2:void 0!==k?k.x:l.x,y2:void 0!==k?k.y:l.y},P=z.x1!==s.x||z.y1!==s.y,A=z.x2!==l.x||z.y2!==l.y,D=c&&P?`url(#${S})`:void 0,T=c&&A?`url(#${_})`:void 0;return(0,ee.jsxs)("g",{style:{strokeWidth:i},children:[(P||A)&&(0,ee.jsxs)("defs",{children:[c&&P&&c.start&&(0,ee.jsx)(gt,{style:x,lineCap:c.start,id:S,strokeWidth:i,position:"start"}),c&&A&&c.end&&(0,ee.jsx)(gt,{style:x,lineCap:c.end,id:_,strokeWidth:i,position:"end"})]}),!g&&(0,ee.jsx)("line",{className:y,style:v,x1:z.x1,y1:z.y1,x2:z.x2,y2:z.y2,strokeDasharray:r?r.map((e=>e*i)).join(","):"",markerStart:D,markerEnd:T,strokeLinecap:"butt"}),t&&(0,ee.jsx)("line",{onPointerDown:n,className:w,stroke:"transparent",style:{fill:"none",strokeWidth:b},x1:s.x,y1:s.y,x2:l.x,y2:l.y})]})},wt=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:b}=d,w={stroke:a?.toCSSValue()||"transparent",strokeWidth:s,fill:l?.toCSSValue()||"transparent"},x=p()({[yt().visible]:!0,[yt().cloudy]:!!m,[yt().strokeDashArray]:!!i}),S=t?fe.LZ?Math.max(xe.Bd,s):Math.max(xe.uo,s):0,_={fill:l&&!l.equals(k.Q1.TRANSPARENT)?"transparent":"none",strokeWidth:S},C=p()({[yt().selectable]:!r.readOnly&&!r.locked,[yt().cloudy]:!!m}),E=g>s?g-s:g/4,z=v>s?v-s:v/4,P=i?i.map((e=>e*s)).join(","):"",A=m>0,D=A?xt(m,f,d):"";return(0,ee.jsxs)(u.Fragment,{children:[!o&&(A?(0,ee.jsx)("path",{d:D,className:x,style:w,strokeDasharray:P}):(0,ee.jsx)("rect",{className:x,style:w,strokeDasharray:P,x:b+s/2,y:y+s/2,width:E,height:z})),t&&(A?(0,ee.jsx)("path",{onPointerDown:n,d:D,className:C,style:_,stroke:"transparent"}):(0,ee.jsx)("rect",{onPointerDown:n,className:C,stroke:"transparent",style:_,x:b+s/2,y:y+s/2,width:E,height:z}))]})},xt=(e,t,n)=>{const{left:r,top:o,width:i,height:a}=t instanceof k.Yy?k.Yy.applyToRect(t,n):n;return(0,L.uq)({points:[[r,o],[r+i,o],[r+i,o+a],[r,o+a]],intensity:e})},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:b}=d,w={stroke:a?.toCSSValue()||"transparent",strokeWidth:s,fill:l?.toCSSValue()||"transparent"},x=p()({[yt().visible]:!0,[yt().cloudy]:!!m,[yt().strokeDashArray]:!!i}),S=t?fe.LZ?Math.max(xe.Bd,s):Math.max(xe.uo,s):0,_={fill:l&&!l.equals(k.Q1.TRANSPARENT)?"transparent":"none",strokeWidth:S},C=p()({[yt().selectable]:!r.readOnly&&!r.locked,[yt().cloudy]:!!m}),E=g>2*s?(g-s)/2:g/4,z=v>2*s?(v-s)/2:v/4,P=i?i.map((e=>e*s)).join(","):"",A=m>0,D=A?(0,L.y4)({boundingBox:d,cloudyBorderIntensity:m,cloudyBorderInset:f}):"";return(0,ee.jsxs)(u.Fragment,{children:[!o&&(A?(0,ee.jsx)("path",{className:x,style:w,strokeDasharray:P,d:D}):(0,ee.jsx)("ellipse",{className:x,style:w,strokeDasharray:P,cx:b+g/2,cy:y+v/2,rx:E,ry:z})),t&&(A?(0,ee.jsx)("path",{onPointerDown:n,className:C,style:_,d:D,stroke:"transparent"}):(0,ee.jsx)("ellipse",{onPointerDown:n,className:C,stroke:"transparent",style:_,cx:b+g/2,cy:y+v/2,rx:E,ry:z}))]})},_t=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(k.Q1.TRANSPARENT))&&!o)return null;const m={stroke:a?a.toCSSValue():"transparent",strokeWidth:s,fill:l?.toCSSValue()||"transparent"},g=p()({[yt().visible]:!0,[yt().cloudy]:!!f,[yt().strokeDashArray]:!!i}),v=t?fe.LZ?Math.max(xe.Bd,s):Math.max(xe.uo,s):0,y={fill:l&&!l.equals(k.Q1.TRANSPARENT)?"transparent":"none",strokeWidth:v},b=p()({[yt().selectable]:!r.readOnly&&!r.locked,[yt().cloudy]:!!f}),w=d.first();if(void 0===w)return null;const x=1===d.size||2===d.size?d.push(w):d,S=i?i.map((e=>e*s)).join(","):"",_=f>0&&x.size>2,C=_?Ct({annotation:r,intensity:f}):`${x.map((e=>`${e.x},${e.y}`)).join(" ")}`;return(0,ee.jsxs)(u.Fragment,{children:[!o&&(_?(0,ee.jsx)("path",{className:g,style:m,strokeDasharray:S,d:C}):(0,ee.jsx)("polygon",{className:g,style:m,strokeDasharray:S,points:C})),t&&(_?(0,ee.jsx)("path",{onPointerDown:n,className:b,style:y,stroke:"transparent",d:C}):(0,ee.jsx)("polygon",{onPointerDown:n,className:b,stroke:"transparent",style:y,points:C}))]})},Ct=e=>{let{intensity:t,annotation:n}=e;return(0,L.uq)({points:n.points.map((e=>[e.x,e.y])).toArray(),intensity:t})},Et=e=>{let{isSelectable:t,onPointerDown:n,annotation:{strokeDashArray:r,strokeColor:o,strokeWidth:i,lineCaps:a,fillColor:s,pageIndex:l,points:c,id:u=(0,ft.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()({[yt().visible]:!0}),b=t?fe.LZ?Math.max(xe.Bd,i):Math.max(xe.uo,i):0,w=p()({[yt().selectable]:!h&&!d}),x={stroke:o?.toCSSValue()||"transparent",pointerEvents:"none",fill:s?.toCSSValue()||"transparent",strokeWidth:1},S=`${u}-StartLineCap`,_=`${u}-EndLineCap`,C=1===c.size?` ${m.x},${m.y}`:"",E=(0,L.PZ)(c,i,a||{}),k=E.first(),z=E.last();if(!k||!z)return null;const P=a&&(k.x!==m.x||k.y!==m.y),A=a&&(z.x!==g.x||z.y!==g.y),D=`${E.map((e=>`${e.x},${e.y}`)).join(" ")}${C}`,T=a&&P?`url(#${S})`:void 0,I=a&&A?`url(#${_})`:void 0;return(0,ee.jsxs)("g",{style:{strokeWidth:i},children:[(P||A)&&(0,ee.jsxs)("defs",{children:[a&&P&&a.start&&(0,ee.jsx)(gt,{style:x,lineCap:a.start,strokeWidth:i,id:S,position:"start"}),a&&A&&a.end&&(0,ee.jsx)(gt,{style:x,lineCap:a.end,strokeWidth:i,id:_,position:"end"})]}),!f&&(0,ee.jsx)("polyline",{className:y,style:v,points:D,strokeDasharray:r?r.map((e=>e*i)).join(","):"",markerStart:T,markerEnd:I}),t&&(0,ee.jsx)("polyline",{onPointerDown:n,className:w,stroke:"transparent",style:{fill:"none",strokeWidth:b},points:D})]})},kt=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 k.MU:return bt;case k.Zx:return wt;case k.Go:return St;case k.Si:return _t;case k.ug:return Et;default:throw new Error("Unexpected shape annotation type")}})(t.constructor);return(0,ee.jsx)("svg",{viewBox:a,style:s,className:yt().svg,focusable:!1,children:(0,ee.jsx)(l,{isSelectable:r,onPointerDown:o,annotation:t,renderInvisibleClickPath:i})})};var zt=n(91497),Pt=n(35467);function At(e,t){return e.distance(t)>xe.gR}var Dt=n(8593),Tt=n(90651);function It(e){const{pageIndex:t,currentAnnotation:n,onAnnotationUpdate:r,keepSelectedTool:o,interactionMode:i,defaultAutoCloseThreshold:l,backend:c,disablePointSnapping:d}=e,p=u.useRef(null),h=(0,s.d4)((e=>e.eventEmitter)),f=(0,s.wA)(),[m,g]=u.useState(!1),[v,y]=u.useState(null),b=u.useMemo((()=>(0,L.s3)(n.constructor)),[n.constructor]),w=u.useCallback((function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];f((0,at.g_)(e)),t&&(f((0,Pt.NP)()),f((0,ve.TT)((0,a.NZ)([e.id]),null)),f((0,at.li)(e.id)),f((0,Dt.Al)(null)))}),[f]),x=u.useCallback((()=>{(n instanceof k.ug||n instanceof k.Si)&&w(n,!0)}),[n,w]),S=u.useCallback(((e,o)=>{(0,Tt.sC)(c,n,d)&&c.configureSnapper(t);let i=n;const s={annotations:(0,a.B8)([i]),reason:J.x.DRAW_START};h.emit("annotations.willChange",s);const l=new k.bR({x:e.x,y:e.y});if(i instanceof k.MU)i=i.merge({startPoint:l,endPoint:l});else if(i instanceof k.Zx||i instanceof k.Go){p.current=l;const e=i.cloudyBorderIntensity*xe.Ss+i.strokeWidth/2;i=i.merge({boundingBox:new k.rw({left:l.x,top:l.y,width:0,height:0}),cloudyBorderInset:i.cloudyBorderIntensity?i.cloudyBorderInset||k.Yy.fromValue(e):null})}else if(i instanceof W.A){p.current=l;const e=new k.rw({left:l.x,top:l.y,width:0,height:0});i=i.merge({boundingBox:e,rects:(0,a.B8)([e])})}else(i instanceof k.Si||i instanceof k.ug)&&(i=i.update("points",(e=>e.push(l))));i=i.set("boundingBox",b(i));const u=i.pageIndex;if(null===u)i=i.set("pageIndex",t);else if(u!==t){i=i.set("pageIndex",t);const e=i instanceof W.A?at.PY:at.nO;f(e(i,t))}i instanceof k.Go||!("isMeasurement"in i)||!i.isMeasurement?.()||f((0,Dt.Al)({magnifierLabel:i.getMeasurementDetails().label,drawnAnnotationID:i.id,drawnAnnotationPageIndex:i.pageIndex,magnifierCursorPosition:o})),r(i)}),[n,f,h,t,r,b]),_=u.useCallback((async(e,t)=>{let o=n,i=e[e.length-1];const s=t[t.length-1];if((0,Tt.sC)(c,o,d)){const e=await c.getClosestSnapPoint(new k.bR({x:i.x,y:i.y}));i=i.set("x",e.x).set("y",e.y)}const u=new k.bR({x:i.x,y:i.y});if(o instanceof k.MU)o=o.set("endPoint",u);else if(o instanceof k.Zx||o instanceof k.Go){(0,me.V)(null!=p.current);const e=p.current,t=new k.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 W.A){(0,me.V)(null!=p.current);const e=p.current,t=new k.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 k.Si||o instanceof k.ug){const e=o.points.size-1;if(v&&At(v,u))g(!1),y(null);else if(!m){const t=(0,Tt.RJ)(o,e,l),n=-1!==t;o=Mt(o,u,n,t),n&&(w(o),g(!0),y(o.points.get(e)))}o.isMeasurement()&&"isMeasurement"in o&&f((0,Dt.Al)({magnifierLabel:o.getMeasurementDetails().label,drawnAnnotationID:o.id,drawnAnnotationPageIndex:o.pageIndex,magnifierCursorPosition:s}))}o=o.set("boundingBox",b(o)),r(o),o instanceof k.Go||o instanceof k.ug||o instanceof k.Si||!("isMeasurement"in o)||!o.isMeasurement?.()||f((0,Dt.Al)({magnifierLabel:o.getMeasurementDetails().label,magnifierCursorPosition:t[t.length-1]}))}),[n,b,r,v,m,l,w,f]),C=u.useCallback((()=>{let e=n;const{left:t,top:s,width:c,height:u}=e.boundingBox,d={annotations:(0,a.B8)([e]),reason:J.x.DRAW_END};if(h.emit("annotations.willChange",d),e instanceof k.Go||!("isMeasurement"in e)||!e.isMeasurement?.()||f((0,Dt.Al)(null)),e instanceof k.MU)At(e.startPoint,e.endPoint)?(f((0,at.g_)(e)),f((0,Pt.NP)()),f((0,ve.TT)((0,a.NZ)([e.id]),null)),f((0,at.li)(e.id)),o&&f((0,Pt.kJ)(e.constructor,i))):(e=e.merge({startPoint:new k.bR,endPoint:new k.bR,boundingBox:new k.rw}),r(e));else if(e instanceof k.Zx||e instanceof k.Go||e instanceof W.A)if(At(new k.bR({x:t,y:s}),new k.bR({x:t+c,y:s+u})))f((0,at.g_)(e)),f((0,ve.TT)((0,a.NZ)([e.id]),null)),e instanceof W.A||f((0,Pt.NP)()),f((0,at.li)(e.id)),e instanceof W.A&&o&&f((0,Pt.Gh)()),o&&e instanceof k.pP&&f((0,Pt.kJ)(e.constructor,i));else{const t=new k.rw;e=e instanceof W.A?e.merge({boundingBox:t,rects:(0,a.B8)([t])}):e.merge({boundingBox:t}),r(e)}else if(e instanceof k.Si||e instanceof k.ug){const t=e.points.size-1,n=(0,Tt.RJ)(e,t,l),r=-1!==n,o=Mt(e,e.points.last(),r,n);r?w(o):f((0,at.g_)(o))}else f((0,at.g_)(e))}),[n,r,f,h,o,i]),E=(0,s.d4)((e=>(0,q.Jn)(e,t))),z=u.useCallback((e=>e.apply(E)),[E]);return(0,ee.jsx)(zt.A,{size:e.pageSize,onDrawStart:S,onDrawCoalesced:_,onDrawEnd:C,transformPoint:z,interactionMode:i,scrollElement:e.scrollElement,onDoubleClick:x,currentAnnotation:n,defaultAutoCloseThreshold:l})}const Mt=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0;if(n){const t=e.get("points")?.get(r);return e.update("points",(e=>e.set(e.size-1,t)))}return e.update("points",(e=>e.set(e.size-1,t)))};function Nt(e){return{calculateBoundingBox:(0,L.s3)(e.shapeAnnotation.constructor),currentShapeAnnotation:e.shapeAnnotation,shapeAnnotationFromCurrentProps:e.shapeAnnotation}}class Ot extends u.Component{constructor(){super(...arguments),(0,v.A)(this,"state",{isDrawing:!1,...Nt(this.props)}),(0,v.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:Nt(e)}componentDidMount(){this.props.dispatch((0,Pt.y7)())}componentWillUnmount(){this.props.dispatch((0,Pt.JN)())}render(){const e=this.state.currentShapeAnnotation,{pageSize:t,viewportState:{zoomLevel:n}}=this.props,{boundingBox:r}=e,o=p()({[yt().canvas]:!0});return(0,ee.jsxs)("div",{className:o,children:[(0,ee.jsxs)(ge,{zoomLevel:n,applyZoom:!0,children:[e.isMeasurement()&&this.state.isDrawing?(0,ee.jsx)("div",{className:"PSPDFKit-Measurement-Label",style:(0,D.T)(e),children:(0,ee.jsx)(Rt,{value:e.getMeasurementDetails().label})}):null,(0,ee.jsx)("div",{style:{...r.toJS(),position:"absolute"},children:(0,ee.jsx)(kt,{isSelectable:!1,annotation:e,viewBox:r})})]}),(0,ee.jsx)(It,{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 jt=(0,s.Ng)(((e,t)=>{let{pageIndex:n}=t;return{viewportState:e.viewportState,clientToPageTransformation:(0,q.Jn)(e,n),eventEmitter:e.eventEmitter,keepSelectedTool:e.keepSelectedTool,interactionMode:e.interactionMode,scrollElement:e.scrollElement,defaultAutoCloseThreshold:e.defaultAutoCloseThreshold}}))(Ot),Rt=e=>{let{value:t,isSecondaryMeasurement:n}=e;if(n&&t.includes("/")){const e=t.split("/");return(0,ee.jsxs)("span",{children:["  (",(0,ee.jsxs)("span",{children:[e[0],(0,ee.jsx)(ee.Fragment,{children:"⁄"}),e[1]]}),")"]})}if(n&&!t.includes("/"))return(0,ee.jsxs)("span",{children:["  (",(0,ee.jsx)("span",{children:t}),")"]});if(!n&&t.includes("/")){const e=t.split("/");return(0,ee.jsxs)("span",{children:[e[0],(0,ee.jsx)(ee.Fragment,{children:"⁄"}),e[1],";"]})}return(0,ee.jsx)("span",{children:t})};class Ft extends u.PureComponent{constructor(){super(...arguments),(0,v.A)(this,"handlePointerDown",(e=>{e.isPrimary&&this.props.isSelectable&&(e.preventDefault(),this.handlePress(e,"touch"!==e.pointerType?new k.bR({x:e.clientX,y:e.clientY}):null))})),(0,v.A)(this,"handlePress",((e,t)=>{this.props.dispatch((0,ve.pw)(this.props.annotation,e,{selectedAnnotationShouldDrag:t,stopPropagation:!0}))})),(0,v.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,D.w6)(e)&&!e.measurementBBox&&(a.width<100||a.height<100)||e.isMeasurement()&&!i);const l=a.grow(fe.LZ?xe.Bd:xe.uo),c={...l.toJS(),cursor:(0,R.Zr)(e)},u=e.constructor.readableName,d=u&&be.A[`${u.charAt(0).toLowerCase()+u.slice(1)}Annotation`],h=(0,R.rX)(e.blendMode),f=h?{mixBlendMode:h}:{},m=e.isMeasurement()&&this.props.secondaryMeasurementUnit&&(0,D.JC)(e,this.props.secondaryMeasurementUnit);return(0,ee.jsxs)(ge,{zoomLevel:n,additionalStyle:f,applyZoom:!0,isMultiAnnotationsSelected:this.props.isMultiAnnotationsSelected,children:[e.isMeasurement()&&s&&(0,ee.jsxs)("div",{className:"PSPDFKit-Measurement-Label",style:(0,D.T)(e,!!m),children:[(0,ee.jsx)(Rt,{value:e.getMeasurementDetails().label}),m?(0,ee.jsx)(Rt,{value:m.label,isSecondaryMeasurement:!0}):null]}),(0,ee.jsx)($e.A,{onPointerEnter:()=>{this.props.dispatch((0,ve.Si)(e.id))},onPointerLeave:()=>{this.props.dispatch((0,ve.Zz)(e.id))},children:(0,ee.jsxs)(pe.A,{disabled:this.props.isDisabled,className:p()(yt().container,`PSPDFKit-${Bt(e)}-Annotation`,"PSPDFKit-Shape-Annotation","PSPDFKit-Annotation",{[yt().cursorNotAllowed]:e.readOnly||e.locked}),style:c,onPointerUp:i?this.handlePointerUp:void 0,"data-annotation-id":e.id,"aria-label":`${t(be.A.annotation)}${u&&d?`: ${t(d)}`:""}`,tabIndex:-1,children:[(0,ee.jsx)(kt,{annotation:e,onPointerDown:this.handlePointerDown,isSelectable:this.props.isSelectable,viewBox:l,renderInvisibleClickPath:i}),i&&(0,ee.jsx)(re.Reparent,{id:`annotation-shape-${e.id}`,children:(0,ee.jsx)(Fe,{annotation:e,zoomLevel:n,backend:r,label:t(u&&d?d:be.A.annotation),isDragging:o,onError:this.props.onError})})]})})]})}}function Bt(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 Lt=(0,he.j4)(Ft,{forwardRef:!0});class Vt extends u.PureComponent{constructor(){super(...arguments),(0,v.A)(this,"_handlePointerDown",(e=>{e.isPrimary&&this.props.isSelectable&&this._handlePress(e,"touch"!==e.pointerType?new k.bR({x:e.clientX,y:e.clientY}):null)})),(0,v.A)(this,"_handlePress",((e,t)=>{this.props.dispatch((0,ve.pw)(this.props.annotation,e,{selectedAnnotationShouldDrag:t,stopPropagation:!0}))})),(0,v.A)(this,"_handleClick",(e=>{"keypress"===e.type&&this._handlePress(e,null)})),(0,v.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,R.oG)(e,r),m=d.width*f,g=d.height*f,v={cursor:(0,R.Zr)(e,{isSelectable:i,cursor:c}),overflow:"hidden",width:m,height:g,display:"block",...(0,Ne.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,ee.jsx)(re.Reparent,{id:`annotation-stamp-${h}`,children:(0,ee.jsx)(ge,{position:d.getLocation(),zoomLevel:r,isMultiAnnotationsSelected:this.props.isMultiAnnotationsSelected,children:(0,ee.jsx)($e.A,{onPointerUp:this._handlePointerUp,onPointerEnter:()=>{this.props.dispatch((0,ve.Si)(e.id))},onPointerLeave:()=>{this.props.dispatch((0,ve.Zz)(e.id))},children:(0,ee.jsx)(pe.A,{disabled:a,onPointerDown:this._handlePointerDown,onClick:this._handleClick,style:v,className:p()("PSPDFKit-Annotation PSPDFKit-Stamp-Annotation",{[Ue().readOnlyOutline]:e.readOnly||e.locked}),"data-annotation-id":e.id,"aria-label":`${u(be.A.annotation)}: ${u(be.A.stampAnnotation)}`,tabIndex:-1,children:(0,ee.jsx)(Fe,{annotation:b,zoomLevel:f,backend:o,onRenderFinished:n,label:u(be.A.stampAnnotation),isDragging:s,isDetachedAnnotation:y,onError:this.props.onError})})})})})}}const Kt=(0,he.j4)(Vt,{forwardRef:!0});var $t=n(42838),Ht=n.n($t),Ut=n(41811),qt=n(16192),Wt=n(17278),Gt=n.n(Wt),Yt=n(8521),Zt=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,Zt.TH)({annotation:g,rect:e,zoomLevel:x,callout:g.callout,text:g.text});t&&b((0,at.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:_?.right,bottom:_?.bottom,padding:`${4*x}px ${8*x}px ${4*x}px 0`,...y&&{fontSize:f*x,lineHeight:"normal",right:void 0,width:"max-content",bottom:void 0,height:"auto",outline:"1px solid rgba(60, 151, 254, 0.5)",outlineOffset:2}},E=`${d}-calloutLinecapId`,z=i.scale(x),P={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 k.bR({x:(e.x-t.left)*n,y:(e.y-t.top)*n})}(e,i,x))))),D=(0,L.PZ)(A,r?r*x:1,{start:n.cap,end:null}).map((e=>`${e.x},${e.y}`)).join(" ");return(0,ee.jsxs)(ee.Fragment,{children:[(0,ee.jsx)("svg",{style:{position:"absolute",inset:0},width:z.width,height:z.height,stroke:c?.toCSSValue(),viewBox:`0 0 ${z.width} ${z.height}`,focusable:!1,children:(0,ee.jsxs)("g",{children:[n.cap&&(0,ee.jsx)("defs",{children:(0,ee.jsx)(gt,{lineCap:n.cap,style:P,strokeWidth:r?r*x:1,id:E,position:"start",capAtMaxStroke:!0})}),(0,ee.jsx)("polyline",{fill:"none",points:D,stroke:c?.toCSSValue()||"black",strokeWidth:r?r*x:void 0,markerStart:`url(#${E})`})]})}),(0,ee.jsx)("div",{style:C,ref:t,className:"Callout",children:(0,ee.jsx)("div",{style:{verticalAlign:"center"===h?"middle":h,display:"inline-block"},ref:w,children:v})})]})}));class Xt extends u.Component{constructor(){super(...arguments),(0,v.A)(this,"shouldComponentUpdate",ye.E),(0,v.A)(this,"memoizedCalculateFittingFontSize",(0,Ut.A)(qt.A2)),(0,v.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,ve._G)(this.props.annotation.id))}),0)})),(0,v.A)(this,"_handlePointerDown",(e=>{e.isPrimary&&this.props.isSelectable&&(e.preventDefault(),this._handlePress(e,"touch"!==e.pointerType?new k.bR({x:e.clientX,y:e.clientY}):null))})),(0,v.A)(this,"_handlePress",((e,t)=>{"function"==typeof this.props.onClick||this.props.annotation.locked?this.onClick(e):this.props.dispatch((0,ve.pw)(this.props.annotation,e,{selectedAnnotationShouldDrag:t,stopPropagation:!0}))})),(0,v.A)(this,"_handlePointerUp",(e=>{e.stopPropagation()}))}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,R.oG)(t,r),f=(0,R.Zr)(t,{isSelectable:i,cursor:c});l||(this._lastFittingFontSizeAnnotation=this.memoizedCalculateFittingFontSize(t,h));const{backgroundColor:m,...g}={...(0,qt.Nv)(t.isFitting?this._lastFittingFontSizeAnnotation:t,h,u),cursor:f,...(0,Ne.Lz)(t)&&u?{transformOrigin:"50% 50%",transform:`rotate(${String(-t.rotation)}deg)`}:null},v="xhtml"===t.text.format;let y;return u||(y=v?(0,ee.jsx)("div",{dangerouslySetInnerHTML:{__html:t.text?.value}}):Ht().sanitize((0,qt.Wi)(t.text?.value)),v&&(g.color=void 0)),(0,ee.jsx)(ge,{position:e.getLocation(),zoomLevel:r,isMultiAnnotationsSelected:d,children:(0,ee.jsx)($e.A,{onPointerUp:u?this._handlePointerUp:void 0,onPointerEnter:()=>{this.props.dispatch((0,ve.Si)(t.id))},onPointerLeave:()=>{this.props.dispatch((0,ve.Zz)(t.id))},children:(0,ee.jsx)(pe.A,{disabled:o,onPointerDown:this._handlePointerDown,style:{...g,backgroundColor:(0,R.I2)(t)?void 0:m},className:p()(Gt().annotation,{[Gt().readOnlyOutline]:t.readOnly||t.locked},"PSPDFKit-Text-Annotation PSPDFKit-Annotation"),"data-annotation-id":t.id,"aria-label":`${a(be.A.annotation)}: ${a(be.A.textAnnotation)}`,tabIndex:-1,children:u?(0,ee.jsx)(re.Reparent,{id:`annotation-text-${t.id}`,children:(0,ee.jsx)(Fe,{annotation:n,zoomLevel:h,backend:s,label:a(be.A.textAnnotation),isDragging:l,onError:this.props.onError})}):t.callout?(0,ee.jsx)(Jt,{annotation:t,children:y}):y})})})}}const Qt=(0,he.j4)(Xt,{forwardRef:!0});var en=n(96277),tn=n(9776),nn=n.n(tn);function rn(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 en.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"],ye.l).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,Ne.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,R.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 k.Q1?`2px solid ${t.outlineColor.toCSSValue()}`:void 0,opacity:t.opacity},w={...y,border:0,color:t.color instanceof k.Q1?t.color.toCSSValue():void 0,backgroundColor:t.fillColor instanceof k.Q1?t.fillColor.toCSSValue():"black",opacity:t.opacity},x=p()({[nn().textContainer]:!0,[nn().selectable]:!0});return(0,ee.jsx)("div",{className:nn().rectContainer,style:v,children:(0,ee.jsx)("div",{className:x,style:n?w:b,children:n&&(t.repeatOverlayText||e.equals(h))&&(0,ee.jsx)("span",{className:nn().textSpan,style:m,children:u})})},s)}));return(0,ee.jsx)(u.Fragment,{children:f})}const on=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,ve.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,ee.jsx)(ge,{zoomLevel:e.zoomLevel,position:l.getLocation(),className:nn().wrapper,disablePointerEvents:!0,isMultiAnnotationsSelected:a,children:(0,ee.jsx)($e.A,{onPointerEnter:()=>{e.dispatch((0,ve.Si)(r.id))},onPointerLeave:()=>{e.dispatch((0,ve.Zz)(r.id))},children:(0,ee.jsxs)(pe.A,{is:"div",disabled:Boolean(e.isDisabled),className:p()(nn().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,ee.jsx)("div",{className:nn().active}):null,(0,ee.jsx)(rn,{annotation:r,previewRedactionMode:d,isSelectable:t,zoomLevel:o})]})})})};var an,sn=n(63622),ln=n.n(sn);class cn extends u.Component{constructor(){super(...arguments),(0,v.A)(this,"shouldComponentUpdate",ye.E)}render(){const{color:e,markupStyle:t,zoomLevel:n,pageRotation:r}=this.props,o=(0,ft.Z0)(),i=0!==r?{transform:`rotate(${90*r}deg)`}:{};return(0,ee.jsxs)("svg",{className:ln().markup,style:t,focusable:!1,children:[(0,ee.jsx)("defs",{children:(0,ee.jsx)("pattern",{id:o,width:"8",height:"3",patternUnits:"userSpaceOnUse",fill:e instanceof k.Q1?e.toCSSValue():"transparent",style:i,children:an||(an=(0,ee.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,ee.jsx)("rect",{fill:`url(#${o})`,width:"100%",height:"100%",transform:`scale(${n<1?`1, ${n}`:`${n}`})`})]})}}class un extends u.Component{constructor(){super(...arguments),(0,v.A)(this,"shouldComponentUpdate",ye.E),(0,v.A)(this,"_handlePress",(e=>{this.props.dispatch((0,ve.pw)(this.props.annotation,e))})),(0,v.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 k.ax,u=(0,R.Zr)(t,{isSelectable:r}),{boundingBox:d}=t,h=t.rects.map(((r,o)=>{const i=p()({[ln().annotationRect]:!0,[ln()[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,R.Zr)(t),a={width:n.width*r,height:n.height*r,backgroundColor:t.color instanceof k.Q1?t.color.toCSSValue():"transparent",cursor:i};if(t instanceof k.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 k.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 k.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 k.Q1?t.color.toCSSValue():"transparent"};return(0,ee.jsxs)("div",{className:i,style:a,children:[e?(0,ee.jsx)("div",{className:p()({[ln().active]:!c}),style:h}):null,t instanceof k.TI?(0,ee.jsx)(cn,{markupStyle:l,color:t.color,zoomLevel:n,pageRotation:s}):(0,ee.jsx)("div",{className:ln().markup,style:l})]},o)})).toArray(),f=(0,R.rX)(t.blendMode),m=f?{mixBlendMode:f}:void 0,g={width:d.width*n,height:d.height*n,cursor:u,...fe.nr?null:m},v=function(e){switch(e.constructor){case k.ax:return"Highlight";case k.sB:return"StrikeOut";case k.Yi:return"Underline";case k.TI:return"Squiggle";default:throw new l.uE(`Unknown text markup annotation type of annotation: ${JSON.stringify(e.toJS())}`)}}(t),y=be.A[`${v.charAt(0).toLowerCase()+v.slice(1)}Annotation`],b=p()(ln().annotation,"PSPDFKit-Annotation","PSPDFKit-Text-Markup-Annotation",`PSPDFKit-${v}-Annotation`,{[ln().activeTextMarkup]:e&&c,[ln().highlight]:c,"PSPDFKit-Text-Markup-Annotation-selected":e,"PSPDFKit-Text-Markup-Comment-Annotation":t.isCommentThreadRoot}),w={};return e&&(w["data-testid"]="selected annotation"),(0,ee.jsx)(ge,{position:d.getLocation(),zoomLevel:n,disablePointerEvents:!t.readOnly,additionalStyle:fe.nr?m:void 0,children:(0,ee.jsx)($e.A,{onPointerEnter:()=>{this.props.dispatch((0,ve.Si)(t.id))},onPointerLeave:()=>{this.props.dispatch((0,ve.Zz)(t.id))},children:(0,ee.jsx)(pe.A,{is:"div",style:g,className:b,onClick:this._handlePress,disabled:!!this.props.isDisabled,"data-annotation-id":t.id,"aria-label":`${o(be.A.annotation)}: ${o(y)}`,...w,tabIndex:-1,children:(0,ee.jsxs)(ee.Fragment,{children:[a&&(0,ee.jsx)(Fe,{annotation:t,zoomLevel:n,backend:i,label:o(y),onError:this.props.onError}),(!a||e)&&h]})})})})}}(0,v.A)(un,"defaultProps",{active:!1});const dn=(0,he.j4)(un,{forwardRef:!0});var pn=n(31807),hn=n.n(pn);function fn(e){let{annotation:t,zoomLevel:n,isDisabled:r,backend:o,isFocused:i,isMultiAnnotationsSelected:a}=e;const s=u.useRef(null),{formatMessage:l}=(0,he.tz)(),{boundingBox:c}=t,d={width:c.width*n,height:c.height*n};return u.useEffect((()=>{i&&s.current&&s.current.focus()}),[i]),(0,ee.jsx)(ge,{position:c.getLocation(),zoomLevel:n,applyZoom:!0,isMultiAnnotationsSelected:a,children:(0,ee.jsx)(pe.A,{disabled:r,className:p()(hn().annotation,"PSPDFKit-Annotation-Unknown PSPDFKit-Annotation-Unsupported PSPDFKit-Annotation"),style:d,"data-annotation-id":t.id,"aria-label":l(be.A.annotation),ref:s,tabIndex:-1,children:o&&(0,ee.jsx)(Fe,{annotation:t,backend:o,zoomLevel:n,label:l(be.A.annotation)})})})}var mn=n(89055),gn=n(90378),vn=n(75157),yn=n.n(vn),bn=n(30141),wn=n.n(bn);class xn extends u.Component{constructor(){super(...arguments),(0,v.A)(this,"shouldComponentUpdate",ye.E),(0,v.A)(this,"_inputRef",u.createRef()),(0,v.A)(this,"_handleClickAction",(e=>{this.props.dispatch((0,ve.pw)(this.props.annotation,e))})),(0,v.A)(this,"_handleFocus",(e=>{const{onFocus:t,annotation:n}=this.props;t&&t(n,e)})),(0,v.A)(this,"_handleBlur",(e=>{const{onBlur:t,annotation:n,annotationToFocus:r}=this.props;r===n.id&&this.props.dispatch((0,at.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,Me.i8)(e,i),fontSize:Math.ceil(c*i),justifyContent:e.verticalAlign&&_n[e.verticalAlign]||"center",alignItems:e.horizontalAlign&&Cn[e.horizontalAlign]||"center"}},d=l&&!n,h=!d||a,f=p()({[yn().widget]:!0,[yn().onFocus]:!0,[yn().readOnly]:!d,[yn().flexText]:!0,[wn().btn]:!h,[wn().btnFormDesigner]:a,"PSPDFKit-Annotation-Widget PSPDFKit-Annotation-Widget-Button":!0,"PSPDFKit-Annotation-Widget-read-only":!d});return(0,ee.jsx)("button",{ref:this._inputRef,className:f,disabled:h,name:t,type:Sn(e),style:u,onClick:this._handleClickAction,onFocus:this._handleFocus,onBlur:this._handleBlur,children:r||o||""})}}function Sn(e){const{action:t}=e;if(!t)return"button";switch(t.constructor){case rt.kV:return"reset";case rt.Dh:return"submit";default:return"button"}}const _n={top:"flex-start",center:"center",bottom:"flex-end"},Cn={left:"flex-start",center:"center",right:"flex-end"};var En=n(83877),kn=n(20985),zn=n.n(kn);class Pn extends u.Component{constructor(){super(...arguments),(0,v.A)(this,"shouldComponentUpdate",ye.E),(0,v.A)(this,"state",{checked:(0,Me.WJ)(this.props.formField,this.props.annotation)}),(0,v.A)(this,"UNSAFE_componentWillReceiveProps",(e=>{e.formField.values.equals(this.props.formField.values)||this.setState({checked:(0,Me.WJ)(e.formField,e.annotation)})})),(0,v.A)(this,"_inputRef",u.createRef()),(0,v.A)(this,"_onChange",(()=>{const{formField:e,annotation:t}=this.props,n=(0,Me.nE)(e,t),r=this.state.checked?(0,a.B8)(["Off"]):(0,a.B8)([n]),o=(0,Me.EA)(e,t,!this.state.checked);this.setState({checked:!this.state.checked}),this.props.dispatch((0,En.mV)([{name:e.name,value:r,optionIndexes:o}]))})),(0,v.A)(this,"_handleFocus",(e=>{const{onFocus:t,annotation:n}=this.props;t?.(n,e)})),(0,v.A)(this,"_handleBlur",(e=>{const{onBlur:t,annotation:n}=this.props;this.props.annotationToFocus===this.props.annotation.id&&this.props.dispatch((0,at.in)(null)),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:{id:e},annotation:t,zoomLevel:r,formField:o,formDesignMode:i,isRenderingAPStream:a,canFillFormFieldCP:s}=this.props,{readOnly:l}=o,c=(0,Me.nE)(o,t),u={width:Math.ceil(t.boundingBox.width*r),height:Math.ceil(t.boundingBox.height*r),...a?{opacity:0}:(0,Me.i8)(t,r)},d=s&&!l,h=p()({[zn().readOnly]:!d,[zn().input]:!0,[yn().widget]:!0,[yn().readOnly]:!d,"PSPDFKit-Annotation-Widget-CheckBox-Control":!0}),f=p()({[zn().checkradio]:!0,"PSPDFKit-Annotation-Widget PSPDFKit-Annotation-Widget-CheckBox":!0,"PSPDFKit-Annotation-Widget-read-only":!d});return(0,ee.jsxs)("label",{style:u,className:f,children:[(0,ee.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,ee.jsx)("span",{className:h,style:{borderWidth:Math.max(1,r)}}),this.state.checked&&(0,ee.jsx)("span",{className:zn().check,role:"presentation",children:(0,ee.jsx)(Ae.A,{src:n(90672)})})]})}}var An=n(75453),Dn=n(28301),Tn=n(27946),In=n.n(Tn);class Mn extends u.PureComponent{constructor(){super(...arguments),(0,v.A)(this,"_inputRef",u.createRef()),(0,v.A)(this,"_memoizedCalculateFontSize",(0,Ut.A)(Dn.Vr)),(0,v.A)(this,"latestKeystrokeDiff",null),(0,v.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,v.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,v.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,v.A)(this,"UNSAFE_componentWillReceiveProps",(e=>{e.formField.values!==this.props.formField.values&&this.setState({values:e.formField.values})})),(0,v.A)(this,"_onChange",(e=>{const t=e.currentTarget,{value:n}=t,{backend:r,formField:o,annotation:i}=this.props;if(!(0,Me.Q8)(r,i,o))return void this.setState({value:n,textSelected:!1});const{selectionStart:a,selectionEnd:s}=t,c=(0,N.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,N.ui)(c,n.change),o=e.slice(1);o.length&&this.props.dispatch((0,En.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,v.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,En.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,v.A)(this,"_handleBlur",(e=>{e.persist();const{currentTarget:t}=e;this.props.dispatch((0,at.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,En.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,v.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 k._B({label:this.state.value,value:this.state.value})):r})),(0,v.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()({[In().comboBoxTop]:!0,"PSPDFKit-Annotation-Widget-ComboBox-Button":!0,"PSPDFKit-Annotation-Widget-read-only":!l}),u=this._getSelectedLabel();return(0,ee.jsxs)("div",{className:c,onClick:this._openDropdownClick,ref:o,children:[(0,ee.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:In().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,ee.jsx)("div",{"aria-hidden":!r,className:In().arrowBtn,...t,children:(0,ee.jsx)(Ae.A,{src:n(62159)})})]})})),(0,v.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,v.A)(this,"_setContentElementRect",(e=>{this.props.handleComboxBoxRect(e)})),(0,v.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()({[In().comboBox]:!0,[In().expanded]:o,[yn().widget]:!0,[yn().focusedWidget]:o||this.state.isFocused,[yn().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,Me.i8)(l,v,!1)},I={...(0,Me.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 ${Dn.PC*v}px`,fontSize:z*v,[k?"width":"height"]:P,[k?"height":"width"]:A},N=p()({[In().menu]:!0,"PSPDFKit-Annotation-Widget-ComboBox-Menu":!0}),O=Math.ceil(20*b*v),j=Math.ceil(y.size*v);return(0,ee.jsx)("div",{className:C,style:{...I,...o?{position:"fixed"}:void 0},tabIndex:-1,onBlur:this._handleBlur,children:(0,ee.jsx)(Nn,{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,ee.jsxs)(ee.Fragment,{children:[this._renderComboBoxTop(M,_,o,t),o&&(0,ee.jsxs)("div",{className:N,ref:r,style:a,children:[(0,ee.jsx)("input",{...S,className:p()(In().comboBoxInput,"PSPDFKit-Annotation-Widget-ComboBox-SearchInput"),style:{textAlign:"center"},tabIndex:-1,required:d}),(0,ee.jsx)("div",{className:p()(In().comboBoxList,"PSPDFKit-Annotation-Widget-ComboBox-List"),id:`PSPDFKit-dd-${this.props.formField.name}-menu`,children:y.isEmpty()?(0,ee.jsx)("div",{className:In().comboBoxListItem,style:w,children:"No results found"}):(0,ee.jsx)("div",{className:In().listContainer,style:{height:O},children:(0,ee.jsx)("div",{className:In().list,style:{height:j},children:y.map(((e,t)=>{const r=i===t;(0,me.V)(e);const o=this.state.values.includes(e.get("value")),a=p()({[In().comboBoxListItem]:!0,[In().comboBoxListItemActive]:r,[In().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,ee.jsx)("span",{className:In().empty,children:"(empty)"}):e.label,(0,ee.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,v.A)(this,"_itemToString",(e=>e?e.label:""))}componentDidUpdate(e){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,ee.jsx)(An.Ay,{environment:e,onSelect:this._onSelect,itemToString:this._itemToString,isOpen:this.state.isOpen,defaultHighlightedIndex:0,children:this._downShiftRenderFn})}}const Nn=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 On=n(18888),jn=n.n(On);class Rn extends u.Component{constructor(){super(...arguments),(0,v.A)(this,"shouldComponentUpdate",ye.E),(0,v.A)(this,"state",{values:this.props.formField.values}),(0,v.A)(this,"UNSAFE_componentWillReceiveProps",(e=>{e.formField.values.equals(this.props.formField.values)||this.setState({values:e.formField.values})})),(0,v.A)(this,"_inputRef",u.createRef()),(0,v.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,En.mV)([{name:this.props.formField.name,value:n}])))})),(0,v.A)(this,"_onBlur",(e=>{this.props.annotationToFocus===this.props.annotation.id&&this.props.dispatch((0,at.in)(null)),this.props.formField.values.equals(this.state.values)||this.props.dispatch((0,En.mV)([{name:this.props.formField.name,value:this.state.values}]));const{onBlur:t,annotation:n}=this.props;t&&t(n,e)})),(0,v.A)(this,"_onFocus",(e=>{const{onFocus:t,annotation:n}=this.props;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:{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,Me.i8)(e,a),fontSize:Math.ceil(12*a),textAlign:e.horizontalAlign}},h=p()({[jn().listBox]:!0,[yn().widget]:!0,[yn().onFocus]:!0,[yn().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,ee.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,ee.jsx)("option",{value:e.value,children:e.label},e.value)))})}}var Fn=n(72162);class Bn extends u.Component{constructor(){super(...arguments),(0,v.A)(this,"shouldComponentUpdate",ye.E),(0,v.A)(this,"state",{checked:(0,Me.WJ)(this.props.formField,this.props.annotation)}),(0,v.A)(this,"UNSAFE_componentWillReceiveProps",(e=>{const t=(0,Me.WJ)(e.formField,e.annotation);this.setState({checked:t})})),(0,v.A)(this,"_inputRef",u.createRef()),(0,v.A)(this,"handleChange",(()=>{const{dispatch:e,formField:t,annotation:n}=this.props;if(this.state.checked&&t.noToggleToOff)return;const r=(0,Me.EA)(t,n,!this.state.checked);e((0,En.mV)([{name:t.name,value:this.state.checked?null:(0,Me.nE)(t,n),optionIndexes:r}])),this.setState((e=>{let{checked:t}=e;return{checked:!t}}))})),(0,v.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!==Fn.u)return;"keydown"===e.type&&e.preventDefault();const o=(0,Me.EA)(t,r,!1);n((0,En.mV)([{name:t.name,value:null,optionIndexes:o}]))})),(0,v.A)(this,"_handleFocus",(e=>{const{onFocus:t,annotation:n}=this.props;t&&t(n,e)})),(0,v.A)(this,"_handleBlur",(e=>{const{onBlur:t,annotation:n,annotationToFocus:r}=this.props;r===n.id&&this.props.dispatch((0,at.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:{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,Me.i8)(t,n,!1)},{transform:v,transformOrigin:y}=(0,Me.i8)(t,n);let b={width:h,height:d,opacity:f};(0,Ne.Lz)(t)&&(b={...b,transform:v,transformOrigin:y});const w=a&&!r.readOnly,x=p()({[zn().input]:!0,[zn().inputRadio]:!0,[yn().widget]:!0,[yn().readOnly]:!w,"PSPDFKit-Annotation-Widget-RadioButton-Control":!0}),S=p()({[zn().checkradio]:!0,"PSPDFKit-Annotation-Widget PSPDFKit-Annotation-Widget-RadioButton":!0,"PSPDFKit-Annotation-Widget-read-only":!w});return(0,ee.jsxs)("label",{style:b,className:S,children:[(0,ee.jsx)("input",{ref:this._inputRef,type:"radio",name:r.name,disabled:!w||o,defaultChecked:s,value:(0,Me.nE)(r,t),className:s?zn().checked:null,onChange:w?this.handleChange:void 0,onClick:this.uncheck,onKeyDown:this.uncheck,onFocus:this._handleFocus,onBlur:this._handleBlur,style:g},e),(0,ee.jsx)("span",{className:x,style:{borderColor:l,borderWidth:null!=c?c:Math.max(1,n),borderStyle:u,backgroundColor:m}})]})}}var Ln=n(97107),Vn=n.n(Ln),Kn=n(85553);class $n extends u.Component{constructor(){super(...arguments),(0,v.A)(this,"shouldComponentUpdate",ye.E),(0,v.A)(this,"state",{overlappingAnnotation:null}),(0,v.A)(this,"_focusableElement",null),(0,v.A)(this,"_onDOMElement",(e=>{this._focusableElement=e})),(0,v.A)(this,"_handlePress",(e=>{e.stopPropagation(),e.preventDefault();const t=this.props.features.includes(X.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,ve.pw)(r,e,{selectedAnnotationShouldDrag:"touch"!==e.pointerType?new k.bR({x:e.clientX,y:e.clientY}):null})):(this._focusableElement&&this._focusableElement.focus(),this.props.dispatch((0,at.iE)(t)),this.props.dispatch((0,Pt.tJ)({signatureRect:this.props.annotation.boundingBox,signaturePageIndex:this.props.annotation.pageIndex,formFieldName:this.props.formField.name})))})),(0,v.A)(this,"_handleFocus",(e=>{const{onFocus:t,annotation:n}=this.props;t&&t(n,e)})),(0,v.A)(this,"_handleBlur",(e=>{const{onBlur:t,annotation:n,annotationToFocus:r}=this.props;r===n.id&&this.props.dispatch((0,at.in)(null)),t&&t(n,e)})),(0,v.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(X.Y.ELECTRONIC_SIGNATURES)?"es-signature":"ink-signature";e?this.props.dispatch((0,ve.TT)((0,a.NZ)([e.id]),null)):(this._focusableElement&&this._focusableElement.focus(),this.props.dispatch((0,at.iE)(t)),this.props.dispatch((0,Pt.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,Me.i8)(t,s,!1),fontSize:(20<v?20:v)*s},b=f&&!i&&m!==Kn.g.NONE,w=p()({[yn().readOnly]:!b,[yn().widget]:!0,[yn().onFocus]:!0,"PSPDFKit-Annotation-Widget PSPDFKit-Annotation-Widget-Signature":!0,"PSPDFKit-Annotation-Widget-read-only":!b}),x=p()({[Vn().sign]:!0,[Vn().signReadOnly]:!b,"PSPDFKit-Annotation-Widget-Signature-Badge":!0}),S=(g||c)&&u&&(0,R.F)(n),_=p()({"PSPDFKit-Annotation-Widget":!0,"PSPDFKit-Annotation-Widget-Signature":!0,"PSPDFKit-Annotation-Widget-Signature-Signed":c}),C=(0,ee.jsxs)(ee.Fragment,{children:[(0,ee.jsx)("span",{className:x,"aria-hidden":"true",children:e(be.A.sign)}),(0,ee.jsx)(o.s6,{tag:"span",children:`${a}, ${e(be.A.sign)}`})]});return S?(0,ee.jsx)(re.Reparent,{id:`annotation-signature-widget-${r}`,children:(0,ee.jsx)($e.A,{onPointerUp:this._handlePointerUp,onPointerDown:b?this._handlePress:void 0,onDOMElement:this._onDOMElement,children:(0,ee.jsxs)(pe.A,{onFocus:this._handleFocus,onBlur:this._handleBlur,style:{...y,cursor:b||!c?"pointer":"auto"},className:_,"data-annotation-id":t.id,"aria-label":`${e(be.A.annotation)}: ${e(be.A.sign)}`,is:"div",children:[(0,ee.jsx)(Fe,{annotation:t,backend:d,zoomLevel:s,label:`${e(be.A.signed)}`,isDragging:h,isDigitallySigned:c,onError:this.props.onError}),c||this.state.overlappingAnnotation?null:C]})})}):(0,R.F)(n)?(0,ee.jsx)($e.A,{onPointerDown:b?this._handlePress:void 0,onDOMElement:this._onDOMElement,children:(0,ee.jsx)("button",{className:w,"data-name":a,style:y,disabled:!b||l,onFocus:this._handleFocus,onBlur:this._handleBlur,children:this.state.overlappingAnnotation?(0,ee.jsxs)(o.s6,{tag:"span",children:[a,", ",e(be.A.signed)]}):C})}):null}}const Hn=(0,he.j4)($n,{forwardRef:!0});var Un=n(37506);const qn=(0,gn.F)((function(e,t){const{annotation:n}=t,r=n.pageIndex,o=e.pages.get(r),i=e.features,a=e.signatureFeatureAvailability;(0,me.V)(o,"Cannot find page for widgetAnnotation with id ",n.id);const s=(0,R.T1)(e.annotations,o),l=s.filter((e=>e instanceof ie.Eo)).toList(),c=s.filter((e=>e instanceof ie.vU)).toList();return{isDigitallySigned:(0,Un.Gg)(e,n),inkAnnotations:l,imageAnnotations:c,isAnnotationPressPrevented:t=>(0,R.m5)(t,e.eventEmitter),backend:e.backend,features:i,signatureFeatureAvailability:a,hasSignatureLicenseComponent:i.includes(X.Y.DIGITAL_SIGNATURES)||i.includes(X.Y.ELECTRONIC_SIGNATURES)}}))(Hn),Wn=qn;var Gn=n(57916),Yn=n(9939),Zn=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"],Xn=["HH:MM","h:MM tt","HH:MM:ss","h:MM:ss tt"];function Qn(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 er extends u.PureComponent{constructor(){super(...arguments),(0,v.A)(this,"state",Qn(this.props)),(0,v.A)(this,"_usedHeight",0),(0,v.A)(this,"_latestKeystrokeDiff",null),(0,v.A)(this,"_memoizedGetTextareaUsedHeight",(0,Ut.A)(nr)),(0,v.A)(this,"_memoizedCalculateFontSize",(0,Ut.A)(Dn.Vr)),(0,v.A)(this,"_memoizedCalculateCombLetterSpacing",(0,Ut.A)(tr)),(0,v.A)(this,"_reusableRealmRemoveTimeout",null),(0,v.A)(this,"_reusableRealm",null),(0,v.A)(this,"_inputRef",u.createRef()),(0,v.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?Dn.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,Me.Q8)(u,p,d))return void this.setState({value:t});const{selectionStart:h}=e,f=(0,N.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,N.ui)(f,n.change),o=t.slice(1);o.length&&this.props.dispatch((0,En.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,v.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,v.A)(this,"_onBlur",(e=>{this.setState({isFocused:!1}),this.props.annotationToFocus===this.props.annotation.id&&this.props.dispatch((0,at.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?Qn(e,t):null}componentWillUnmount(){this._latestKeystrokeDiff=null,this._commitChanges();const{onBlur:e,annotation:t}=this.props;e&&e(t,(0,Zn.BL)("blur"))}_commitChanges(){this.props.formField.value!==this.state.value&&this.props.dispatch((0,En.mV)([{name:this.props.formField.name,value:this.state.value,...this.props.formField.multiLine&&{isFitting:(0,Dn.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 Xn[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,at.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,Me.i8)(r,m),overflow:c?"hidden":"auto",paddingTop:0,paddingBottom:0,paddingLeft:u?Dn.PC*m:0,paddingRight:u?Dn.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()({[yn().readOnly]:!E,[yn().widget]:!0,[yn().combNoPaddingLeftOnFocus]:h&&s,[yn().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=Dn.$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:Dn.PC*m,paddingRight:Dn.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,ee.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,ee.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,ee.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 tr(e,t,n,r,o){let i,s=e/2;try{i=new Gn.a(r,(0,a.B8)(["_"]),{fontSize:`${e}px`,width:`${t}px`,wordWrap:"break-word",whiteSpace:"pre-wrap",fontFamily:"monospace"},yn().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 nr(e,t,n,r,o){let i;try{const a={width:`${Math.ceil(t*n)}px`,fontSize:r*n+"px",padding:`0 ${Dn.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 Gn.a(o.window.document,e,a),i.wrapper?i.wrapper.scrollHeight:0}finally{i&&i.remove()}}var rr=n(1025);class or extends u.Component{constructor(){super(...arguments),(0,v.A)(this,"shouldComponentUpdate",ye.E),(0,v.A)(this,"state",{isFocused:!1,isComboboxOpen:!1,isRollover:!1,isDown:!1}),(0,v.A)(this,"_elementBoundingBox",null),(0,v.A)(this,"_pointerRecognizerRef",(e=>{this._pointerRecognizer=e})),(0,v.A)(this,"onFocus",((e,t)=>{const{onFocus:n,dispatch:r,annotation:{additionalActions:o,formFieldName:i}}=this.props;o&&o.onFocus&&r((0,rr.K_)(o.onFocus.script,"onFocus",i)),n&&n(e,t),this.setState({isFocused:!0})})),(0,v.A)(this,"onBlur",((e,t)=>{const{onBlur:n,dispatch:r,annotation:{additionalActions:o,formFieldName:i}}=this.props;o&&o.onBlur&&r((0,rr.K_)(o.onBlur.script,"onBlur",i)),n&&n(e,t),this.setState({isFocused:!1})})),(0,v.A)(this,"onPointerUp",(()=>{this.props.annotation.additionalActions?.onPointerUp&&this.props.dispatch((0,rr.xO)(this.props.annotation,"onPointerUp")),this.state.isDown&&this.setState({isDown:!1})})),(0,v.A)(this,"onPointerEnter",(()=>{this._elementBoundingBox=this._pointerRecognizer?.getBoundingClientRect(),this.props.annotation.additionalActions?.onPointerEnter&&this.props.dispatch((0,rr.xO)(this.props.annotation,"onPointerEnter")),this.props.hasRolloverVariantAPStream&&this.setState({isRollover:!0})})),(0,v.A)(this,"onPointerLeave",(()=>{this.props.annotation.additionalActions?.onPointerLeave&&this.props.dispatch((0,rr.xO)(this.props.annotation,"onPointerLeave")),this.state.isRollover&&this.setState({isRollover:!1,isDown:!1})})),(0,v.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,v.A)(this,"handlePointerUp",(e=>{e.stopPropagation()})),(0,v.A)(this,"handleOpenStateChange",(e=>{this.setState({isComboboxOpen:e}),this.props.isComboBoxOpen&&this.props.isComboBoxOpen(e),e||this.props.handleComboBoxRect?.(null)})),(0,v.A)(this,"handleComboBoxRect",(e=>{this.props.handleComboBoxRect?.(e)})),(0,v.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 k.$h&&!this.props.formDesignMode)return;const t={selectedAnnotationShouldDrag:"touch"!==e.pointerType?new k.bR({x:e.clientX,y:e.clientY}):null,stopPropagation:!0};this.props.dispatch((0,ve.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 k.uS)return(0,ee.jsx)(er,{...i,formField:t});if(t instanceof k.O2)return(0,ee.jsx)(Rn,{...i,formField:t});if(t instanceof k.av)return(0,ee.jsx)(Pn,{...i,formField:t});if(t instanceof k.sh)return(0,ee.jsx)(Mn,{...i,handleComboxBoxRect:this.handleComboBoxRect,onOpenStateChange:this.handleOpenStateChange,formField:t});if(t instanceof k.Qk)return(0,ee.jsx)(Bn,{...i,formField:t});if(t instanceof k.$h)return(0,ee.jsx)(xn,{...i,formField:t});if(t instanceof k.Vw)return(0,ee.jsx)(Wn,{...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 k.av||r instanceof k.Qk||r instanceof k.$h),l=(0,R.rX)(e.blendMode),c=l?{mixBlendMode:l}:{};let u;return this.state.isRollover&&(u="rollover"),this.state.isDown&&(u="down"),(0,ee.jsxs)("div",{style:c,children:[this.renderWidgetComponent(s),!s||r instanceof k.Vw?null:(0,ee.jsx)(re.Reparent,{id:`annotation-widget-${e.id}`,className:Re().APStreamParent,children:(0,ee.jsx)(Fe,{annotation:e,variant:u,zoomLevel:t,backend:n,formField:r,label:a(be.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,Oe.hR)(e)||270===(0,Oe.hR)(e);let l=ar,c=sr;s&&(l={...l,transformOrigin:"50% 50%",transform:(0,Me.Lu)({width:Math.ceil(t.width*r),height:Math.ceil(t.height*r),rotation:(0,Oe.hR)(e)})},c={...c,transformOrigin:"50% 50%",transform:(0,Me.Lu)({width:Math.ceil(t.width*r),height:Math.ceil(t.height*r),rotation:(0,Oe.hR)(e),reverse:!0})});const u=p()((i instanceof k.av||i instanceof k.Qk||i instanceof k.$h||i instanceof k.Vw)&&Re().focusWithinOutline,"PSPDFKit-Annotation");return(0,ee.jsx)(ge,{position:t.getLocation(),zoomLevel:r,isMultiAnnotationsSelected:this.props.isMultiAnnotationsSelected,children:(0,ee.jsx)($e.A,{onPointerDown:this.handlePointerDown,onPointerUp:this.onPointerUp,onPointerEnter:this.onPointerEnter,onPointerLeave:this.onPointerLeave,onRootPointerMove:this.onRootPointerMove,onDOMElement:this._pointerRecognizerRef,children:o&&a?(0,ee.jsx)("div",{style:l,className:"PSPDFKit-Annotation","data-annotation-id":n,children:(0,ee.jsx)("div",{style:c,children:this.renderWidgetMaybeWithAPStream()})}):(0,ee.jsx)("div",{className:u,"data-annotation-id":n,children:this.renderWidgetMaybeWithAPStream()})})})}}const ir=(0,he.j4)(or,{forwardRef:!0}),ar={cursor:"pointer"},sr={pointerEvents:"none"};var lr=n(88140);const cr=(0,gn.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,mn.DI)(r,n,e))||null,frameWindow:e.frameWindow,formDesignMode:e.formDesignMode,backend:e.backend,formattedValue:o,editingValue:i,canFillFormFieldCP:!!r&&(0,lr.wS)(r,e),viewportState:e.viewportState,isViewStateReadOnly:Q.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})(ir),ur=cr;var dr=n(87289),pr=n.n(dr),hr=n(43052);const fr=hr.GY;const mr=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,hr.IZ)(t,l?24:fr,l?24:fr)),[t,s,l,i]),d=c.position,h=(l||t.note||s)&&function(e){return!(e instanceof ie.s9||e instanceof ie.dh||e instanceof ie.dG||e instanceof ie.sb||e instanceof ie.UL||function(e){return e.creatorName&&/AutoCAD SHX Text/i.test(e.creatorName)}(e))}(t),f=!fe.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,R.Zr)(t,{isAnnotationNote:!0})},y=t.constructor.readableName,b=(0,R.Zr)(t);return(0,ee.jsx)(ee.Fragment,{children:h&&(0,ee.jsx)(ge,{position:d,zoomLevel:r,children:(0,ee.jsx)($e.A,{onPointerUp:e=>{l?n((0,ve.pw)(t,e)):(o||n((0,ve.pw)(c.parentAnnotation,e)),n((0,ve.mm)(c))),e&&e.stopPropagation()},children:(0,ee.jsx)("div",{className:p()({"PSPDFKit-Annotation-Note":!0,[pr().noteIndicator]:!0,[pr().noteIndicatorActive]:o||s,[`PSPDFKit-Annotation-Note-${y}Annotation`]:!!y}),onMouseEnter:f?e=>{n((0,ve.yK)(c)),e&&e.stopPropagation()}:void 0,onMouseLeave:f?e=>{n((0,ve.yK)(null)),e&&e.stopPropagation()}:void 0,style:{cursor:b},children:a?(0,ee.jsx)(we.A,{style:v,className:p()(pr().icon,s&&pr().iconActive),type:l?"comment-indicator":"note-indicator"}):(0,ee.jsx)("div",{style:v})})})})})},gr=u.memo((function(e){const{annotation:t,annotation:{boundingBox:n},zoomLevel:r,backend:o,isMultiAnnotationsSelected:i}=e,{formatMessage:a}=(0,he.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,ee.jsx)(ge,{position:n.getLocation(),zoomLevel:r,isMultiAnnotationsSelected:i,children:(0,ee.jsx)("div",{className:p()("PSPDFKit-MediaAnnotation","PSPDFKit-Annotation"),"data-annotation-id":t.id,children:(0,ee.jsx)("video",{src:m,controls:!0,width:s.width,height:s.height,poster:h,"aria-label":`${a(be.A.annotation)}: ${a(be.A.mediaAnnotation)} ${t.fileName}`,children:a(be.A.mediaFormatNotSupported)})})}):null})),vr=gr;var yr=n(40807);const br=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)),[]),j=(0,s.d4)((e=>"formFieldName"in n?e.formFields.get(n.formFieldName):void 0)),F=(0,s.d4)((e=>(0,Un.Gg)(e,n))),B=(0,yr.ZC)({annotation:n,formField:j,zoomLevel:g,isDigitallySignedWidget:F});u.useEffect((()=>{B&&Ke({annotation:n,formField:j,zoomLevel:g,isDigitallySigned:F},B)&&N(!1)}),[n,j,g,F]);const L=l(n),V={backend:i,dispatch:a,isDisabled:c,isSelectable:!L,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},K=(0,s.d4)((e=>e.secondaryMeasurementUnit));let $=null;return n instanceof ie.KR&&($=(0,ee.jsx)(vr,{...V,annotation:n})),n instanceof ie.vU?$=(0,ee.jsx)(We,{...V,attachment:n.imageAttachmentId?o.get(n.imageAttachmentId):null,annotation:n}):n instanceof ie.Eo?$=(0,ee.jsx)(Qe,{...V,annotation:n}):n instanceof ie.UL?$=(0,ee.jsx)(it,{...V,isHover:d,annotation:n}):n instanceof ie.s9?$=(0,ee.jsx)(ht,{...V,isReadOnly:L,annotation:n}):n instanceof ie.pP?$=(0,ee.jsx)(Lt,{...V,annotation:n,secondaryMeasurementUnit:K}):n instanceof ie.xY?$=(0,ee.jsx)(Kt,{...V,annotation:n,globalAnnotation:r,isAutoSaveDisabled:z}):n instanceof ie.dh?$=(0,ee.jsx)(Qt,{...V,pageSize:m,onClick:S,annotation:n,globalAnnotation:r}):n instanceof ie.h5?$=(0,ee.jsx)(on,{...V,active:b,annotation:n}):n instanceof ie.tr?$=(0,ee.jsx)(dn,{...V,active:b,pageRotation:y,annotation:n}):n instanceof ie.Ip?$=(0,ee.jsx)(fn,{...V,annotation:n}):n instanceof ie.sb?$=(0,ee.jsx)(ur,{...V,annotation:n}):n instanceof ie.dG&&($=(0,ee.jsx)(Ee,{...V,isReadOnly:L,active:b,annotation:n})),(0,ee.jsx)(ce,{zoomLevel:g,renderer:"Annotation",notCSSScaled:n instanceof ie.sb,children:(0,ee.jsxs)(xr,{annotation:n,children:[$,w&&(0,R.Cx)(n)&&(0,ee.jsx)(mr,{dispatch:a,annotation:n,zoomLevel:g,isAnnotationSelected:b,activeAnnotationNote:x,visible:!0})]})},n.id)})),wr=br;function xr(e){let{children:t}=e;return(0,ee.jsx)("div",{children:t})}const Sr=(0,s.Ng)(((e,t)=>{let{pageIndex:n}=t;return{viewportState:e.viewportState,transformClientToPage:function(t){return e.transformClientToPage(t,n)}}})),_r=(0,s.Ng)((e=>({transformClientToPage:e.transformClientToPage})));var Cr=n(41567),Er=n(70589),kr=n.n(Er);class zr extends u.PureComponent{constructor(e){let t,n,r;if(super(e),(0,v.A)(this,"layerRef",u.createRef()),(0,v.A)(this,"_handlePointerUp",(e=>{if(!e.isPrimary)return;const t=this._getNormalizedMousePosition(e);if(!t)return;const n=this._fitRectInPage(new k.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 k.s9?this.props.dispatch((0,at.g_)(r)):r instanceof k.dG&&(this.props.dispatch((0,at.iN)((0,a.B8)([r]))),this.props.dispatch((0,Cr.t6)(r.id)))})),e.annotation instanceof k.s9)t=n=r=xe.b4,this.cursor="context-menu";else{if(!(e.annotation instanceof k.dG))throw Error("Annotation type not supported.");t=n=r=xe.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);if(this.layerRef.current){const{defaultView:e}=this.layerRef.current.ownerDocument;if(t instanceof e.HTMLDivElement)return this.props.transformClientToPage(new k.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,ee.jsx)($e.A,{onPointerUp:this._handlePointerUp,children:(0,ee.jsx)("div",{"data-testid":"create-annotation-layer",children:(0,ee.jsx)("div",{className:kr().layer,style:{cursor:this.cursor||"auto"},ref:this.layerRef})})})}}const Pr=_r(zr);var Ar=n(89428),Dr=n.n(Ar);class Tr extends u.PureComponent{constructor(){super(...arguments),(0,v.A)(this,"state",{currentSelectableAnnotation:null}),(0,v.A)(this,"_handlePointerDownCapture",(e=>{this._pointerDownTime=Date.now();const t=this._transformToPagePoint(e);this._selectableAnnotation=this.findSelectableAnnotation(t);const n=(0,R.lF)(this.props.selectedAnnotations,this.props.zoomLevel);fe.LZ&&this.props.isMultiAnnotationsSelected&&!n?.isPointInside(t)&&!this.checkAnnotationAtPoint(t)&&this.props.dispatch((0,ve.J9)());const r=this._selectableAnnotation instanceof k.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.nativeEvent),this.props.dispatch((0,Pt.K)(!0))):this.props.setMultiAnnsInitialEvent?.(void 0)})),(0,v.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 k.UL;if(t&&!r)return void(this._selectableAnnotation=null);const o=n instanceof k.tr||r,i=!this._selectedAnnotationOnDown&&Boolean(this.findSelectedAnnotationAtPoint(this._transformToPagePoint(e)));this.props.dispatch((0,ve.pw)(n,e,{preventDefault:o,stopPropagation:o,clearSelection:i,longPress:t&&r}))})),(0,v.A)(this,"_handlePointerUp",(e=>{if(!this.getSelection().isCollapsed||!this._selectableAnnotation||this._selectedAnnotationOnDown)return;const t=this._selectableAnnotation,n=t instanceof k.tr;this.props.dispatch((0,ve.pw)(t,e,{preventDefault:n,stopPropagation:n}))})),(0,v.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,ve.Zz)(t.id)),!r||this.props.hoverAnnotationIds.has(r.id)||this.checkifHoverPointIsDefferedRegion(new k.bR({x:e.clientX,y:e.clientY}))||this.props.dispatch((0,ve.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){return this.props.transformClientToPage(new k.bR({x:e.clientX,y:e.clientY}),this.props.pageIndex)}_boundingBoxHitTest(e){const t=fe.LZ?xe.Bd:xe.uo;return n=>n instanceof k.UL?n.boundingBox.isPointInside(e):n.boundingBox.grow(t).isPointInside(e)}_findSelectableLinkAnnotation(e){return this.props.selectableLinkAnnotations.filter(R.gf).findLast(this._boundingBoxHitTest(e))}_findSelectableTextMarkupAnnotation(e){return this.props.selectableTextMarkupAnnotations.filter(R.gf).findLast((t=>t.rects.find((t=>t.grow(fe.LZ?xe.Bd:xe.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()({[Dr().layer]:!0,[Dr().cursorText]:this.props.keepSelectedTool&&"TEXT"===this.props.interactionMode,[Dr().cursorPointer]:e,"PSPDFKit-CursorPointer":e});return(0,ee.jsx)($e.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,ee.jsx)("div",{className:t,children:this.props.children})})}}const Ir=_r(Tr);var Mr=n(79900);class Nr extends u.PureComponent{constructor(){super(...arguments),(0,v.A)(this,"precision",(0,Ge.Em)(this.props.zoomLevel)),(0,v.A)(this,"pointsToPathArray",Ye.JY.ENABLE_INK_SMOOTH_LINES?e=>(0,Ge.Hj)(e,this.precision):Ge.F0),(0,v.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,v.A)(this,"_onDrawStart",(e=>{let{annotation:t,onDrawStart:n}=this.props;this.precision=(0,Ge.Em)(this.props.zoomLevel),t=t.update("lines",(t=>t.push((0,a.B8)([e,new k.LL({x:e.x,y:e.y,intensity:e.intensity})])))),t=t.set("boundingBox",(0,Ge.AJ)(t)),n(t)})),(0,v.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,Ge.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 k.rw({left:o,top:i,width:a,height:s})}(t,r)),n(t)})),(0,v.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,ee.jsxs)("div",{className:Je().canvas,style:{cursor:this.props.cursor,mixBlendMode:(0,R.rX)(e.blendMode)},"data-testid":"ink-canvas-outer-div",children:[(0,ee.jsx)(ge,{zoomLevel:n,applyZoom:!0,children:(0,ee.jsx)("div",{style:{position:"absolute",top:r.top,left:r.left,width:r.width,height:r.height},children:(0,ee.jsx)(et,{isSelectable:!1,annotation:e,viewBox:r,pathDataFromFragments:this._pathDataFromFragments,precision:this.precision})})}),(0,ee.jsx)(zt.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,v.A)(Nr,"defaultProps",{canvasSize:new k.or({width:300,height:200}),distanceBetweenPoints:0,cursor:"default",zoomLevel:1});const Or=(0,Ut.A)(Ge.Fe);function jr(e){const t=e.inkAnnotation.lineWidth/2*e.viewportState.zoomLevel;return{currentInkAnnotation:e.inkAnnotation,cursor:Or(t),zoomLevel:e.viewportState.zoomLevel,inkAnnotationFromCurrentProps:e.inkAnnotation}}class Rr extends u.Component{constructor(){super(...arguments),(0,v.A)(this,"state",jr(this.props)),(0,v.A)(this,"lastEndDrawingTime",Date.now()),(0,v.A)(this,"_transformClientToPage",(e=>e.apply(this.props.clientToPageTransformation))),(0,v.A)(this,"_onDrawStart",(e=>{const t=e.pageIndex,n={annotations:(0,a.B8)([e]),reason:J.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,at.EH)(e,this.props.pageIndex))):(0,Ge.Gi)(e,this.props.pageSize,this.lastEndDrawingTime)||(e=(e=e.update("lines",(e=>(0,a.B8)([e.last()])))).set("boundingBox",(0,Ge.AJ)(e)),this.props.dispatch((0,at.EH)(e,this.props.pageIndex))),this.setState({currentInkAnnotation:e})})),(0,v.A)(this,"_onDraw",(e=>{this.setState({currentInkAnnotation:e})})),(0,v.A)(this,"_onDrawEnd",(e=>{const t={annotations:(0,a.B8)([e]),reason:J.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,at.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,Pt.y7)())}componentWillUnmount(){this.props.dispatch((0,Pt.JN)())}render(){const e=this.state.currentInkAnnotation,{pageSize:t}=this.props,{INK_EPSILON_RANGE_OPTIMIZATION:n}=Ye.JY;return(0,ee.jsx)(Nr,{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,Mr.I)()),cursor:this.state.cursor,zoomLevel:this.props.viewportState.zoomLevel,interactionMode:this.props.interactionMode,canScrollWhileDrawing:this.props.canScrollWhileDrawing})}}const Fr=(0,s.Ng)(((e,t)=>{let{pageIndex:n}=t;return{viewportState:e.viewportState,clientToPageTransformation:(0,q.Jn)(e,n),eventEmitter:e.eventEmitter,interactionMode:e.interactionMode,canScrollWhileDrawing:e.canScrollWhileDrawing}}))(Rr);var Br=n(64959);const Lr=100;function Vr(e,t){const n=Math.floor(e.x/Lr);return Math.floor(e.y/Lr)*t+n}function Kr(e,t,n,r){const{lineWidth:o,id:i}=e,a=Math.ceil(r.width/Lr),s=t/2;return e.lines.forEach(((e,t)=>{e.forEach(((e,r)=>{if(null==e)return;const l=Math.floor(e.x/Lr),c=Math.floor(e.y/Lr),u={point:e,annotationId:i,lineIndex:t,pointIndex:r,strokeRadius:o/2},d=Math.ceil((s+u.strokeRadius)/Lr);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 Br.A({x:r<l?(r+1)*Lr:r===l?e.x:r*Lr,y:t<c?(t+1)*Lr:t===c?e.y:t*Lr}).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 Hr=(0,s.Ng)(((e,t)=>{let{pageIndex:n}=t;return{inkEraserCursorWidth:e.inkEraserCursorWidth,zoomLevel:e.viewportState.zoomLevel,clientToPageTransformation:(0,q.Jn)(e,n),scrollElement:e.scrollElement,interactionMode:e.interactionMode}}))((function(e){const{canvasSize:t=new k.or({width:300,height:200}),inkEraserCursorWidth:n,zoomLevel:r,dispatch:o,inkAnnotations:i,clientToPageTransformation:s}=e,l=u.useMemo((function(){return(0,Ge.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)=>Kr(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/Lr),s={};return t.forEach((e=>{const t=Vr(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,Ge.AJ)(e))))}(c.localAnnotations,i);o((0,at.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,Pt.y7)()),()=>{o((0,Pt.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&&Ur(e)){const e=n[r[2]+2];n[r[2]+1]=`${Ur(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(Ur(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,ee.jsxs)("div",{className:Je().canvas,style:{cursor:l},children:[c.localAnnotations.map((e=>(0,ee.jsx)(Qe,{dispatch:o,annotation:e,isSelectable:!1,isDisabled:!0,zoomLevel:r,pathDataFromFragments:g},e.id))),(0,ee.jsx)(zt.A,{size:t,onDrawStart:f,onDrawCoalesced:f,onDrawEnd:m,transformPoint:h,interactionMode:e.interactionMode,scrollElement:e.scrollElement})]})}));function Ur(e){return"string"==typeof e&&e.startsWith("C")}function qr(e){return"string"==typeof e&&e.startsWith("M")}const Wr=(0,s.Ng)(((e,t)=>{let{pageIndex:n}=t;return{inkEraserCursorWidth:e.inkEraserCursorWidth,zoomLevel:e.viewportState.zoomLevel,clientToPageTransformation:(0,q.Jn)(e,n),scrollElement:e.scrollElement,interactionMode:e.interactionMode}}))((function(e){const{canvasSize:t=new k.or({width:300,height:200}),inkEraserCursorWidth:n,zoomLevel:r,dispatch:o,inkAnnotations:i,clientToPageTransformation:s}=e,l=u.useMemo((function(){return(0,Ge.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)=>Kr(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/Lr),l={};return t.forEach((e=>{const t=Vr(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,Ge.AJ)(e))))}(c.localAnnotations,i);o((0,at.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,Pt.y7)()),()=>{o((0,Pt.JN)())})),[o]),(0,ee.jsxs)("div",{className:Je().canvas,style:{cursor:l},children:[c.localAnnotations.map((e=>(0,ee.jsx)(Qe,{dispatch:o,annotation:e,isSelectable:!1,isDisabled:!0,zoomLevel:r},e.id))),(0,ee.jsx)(zt.A,{size:t,onDrawStart:f,onDrawCoalesced:f,onDrawEnd:m,transformPoint:h,interactionMode:e.interactionMode,scrollElement:e.scrollElement})]})}));class Gr extends u.Component{constructor(e){super(e),(0,v.A)(this,"_handledBlur",!1),(0,v.A)(this,"editor",u.createRef()),(0,v.A)(this,"shouldComponentUpdate",ye.E),(0,v.A)(this,"clearText",(()=>{const{current:e}=this.editor;if(!e)return"";e.innerText="",setTimeout((()=>{this.props.valueDidUpdate&&this.props.valueDidUpdate()}),0),this.focus()})),(0,v.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"===fe.Hi&&this.setInitialSelection())}),0),this.setInitialSelection())})),(0,v.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"===fe.Hi?o.length-1:o.length,i.setStart(o,e?0:a),i.setEnd(o,a),this.setSelection(i)})),(0,v.A)(this,"_preventDeselect",(e=>{e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()})),(0,v.A)(this,"_handleKeyDown",(e=>{if(e.keyCode!==Fn.XS){if(e.keyCode===Fn.E1&&e.shiftKey)return this.props.onStopEditing(),void e.preventDefault();if(this.getPlainText().length>=this.props.maxLength)e.preventDefault();else if("blink"===fe.Hi&&e.keyCode===Fn.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"===fe.Hi&&e.keyCode===Fn.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,v.A)(this,"_handleInput",(()=>{const{current:e}=this.editor;if(e){if("gecko"===fe.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,v.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,Ht().sanitize(e.clipboardData?.getData("text/plain")))})),(0,v.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,v.A)(this,"_handleScroll",(e=>{const{current:t}=this.editor;t&&(t.scrollTop=0,t.scrollLeft=0,e.stopPropagation(),e.preventDefault())})),(0,v.A)(this,"_handlePointerDown",(e=>{this.editor.current&&((0,Zn.b4)({event:e,element:this.editor.current})||this._handleBlur())})),(0,v.A)(this,"_handleBlur",(()=>{this._handledBlur||(this._handledBlur=!0,this.props.onBlur())})),(0,v.A)(this,"_handleFocus",(()=>{this._handledBlur=!1,this.props.onFocus&&this.props.onFocus()})),this.innerText=this.props.defaultValue+"\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),k.rw.fromClientRect(e.getBoundingClientRect())}getPlainText(){const{current:e}=this.editor;return e?void 0===e.innerText?"":e.innerText.replace(/\n$/,""):""}setSelection(e){const{current:t}=this.editor;if(!t)return;const n=fe.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,ee.jsxs)(u.Fragment,{children:[(0,ee.jsx)("div",{style:this.props.style,className:Gt().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:Ht().sanitize(this.innerText)}),(0,ee.jsx)($e.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,v.A)(Gr,"defaultProps",{autoFocus:!0,autoSelect:!1});var Zr=n(81083),Jr=n(4255),Xr=n.n(Jr),Qr=n(81243);function eo(e){let{x:t,y:n,direction:r,startResizing:o,endResizing:i,onFitToSide:a,viewportSize:s,title:l,cursor:c}=e;const u=(0,Qr.vd)(Zr.E[r]),d=p()({[Xr().resizeAnchor]:!0,[Xr().nwseCursor]:r===Zr.E.TOP_LEFT||r===Zr.E.BOTTOM_RIGHT,[Xr().neswCursor]:r===Zr.E.TOP_RIGHT||r===Zr.E.BOTTOM_LEFT,[Xr().ewCursor]:r===Zr.E.LEFT||r===Zr.E.RIGHT,[Xr().nsCursor]:r===Zr.E.TOP||r===Zr.E.BOTTOM,"PSPDFKit-Resize-Anchor":!0,[`PSPDFKit-Resize-Anchor-${u}`]:!0}),{RESIZE_ANCHOR_RADIUS:h}=Ye.JY,f=h(s),m=c?{cursor:c}:void 0;return(0,ee.jsx)($e.A,{onPointerDown:o,onPointerUp:i,children:(0,ee.jsx)("circle",{cx:t,cy:n,r:f-xe.vq/2,strokeWidth:xe.vq,className:d,onDoubleClick:a,style:m,children:l?(0,ee.jsx)("title",{children:l}):null})})}function to(e){let{x:t,y:n,startModifying:r,endModifying:o,pointIndex:i,viewportSize:a,title:s,cursor:l}=e;const c=p()({[Xr().resizeAnchor]:!0}),{RESIZE_ANCHOR_RADIUS:u}=Ye.JY,d=u(a),h=l?{cursor:l}:void 0;return(0,ee.jsx)($e.A,{onPointerDown:r,onPointerUp:o,children:(0,ee.jsx)("circle",{cx:t,cy:n,r:d-xe.vq/2,strokeWidth:xe.vq,className:c,id:`pointIndex${i}`,style:h,title:s})})}function no(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}=Ye.JY,u=p()({"PSPDFKit-Annotations-Rotation-Anchor":!0,[Xr().rotateAnchor]:!0}),d=l(o);return(0,ee.jsxs)("svg",{"data-testid":"rotation-handle-ui",className:p()(Xr().rotationHandleSvg,"PSPDFKit-Annotations-Rotation-Handle"),children:[(0,ee.jsx)("line",{className:p()(Xr().rotationLine,"PSPDFKit-Annotations-Rotation-Line"),x1:t/2,y1:0,x2:t/2,y2:i,style:{strokeWidth:c}}),(0,ee.jsx)($e.A,{onPointerDown:n,onPointerUp:r,children:(0,ee.jsx)("circle",{cx:t/2,cy:i,r:d-xe.vq/2,strokeWidth:xe.vq,className:u,style:{cursor:(0,Ne._1)(a,"grab")},children:s?(0,ee.jsx)("title",{children:s}):null})})]})}var ro=n(21055);function oo(e){const{formatMessage:t}=(0,he.tz)(),n=(0,s.d4)((e=>e.selectedAnnotationIds)),r=(0,s.d4)((e=>e.isMultiSelectionEnabled));function o(n,r,o){const i=io(o),a=io(o+e.pagesRotation),s=`${t(be.A.resize)}, ${ao[a].split(",").map((e=>t(be.A[`resizeHandle${e.trim()}`]))).join(", ")}`;return(0,ee.jsx)(eo,{x:n,y:r,direction:a,title:s,startResizing:t=>{e.startResizing&&e.startResizing(t,i)},endResizing:so,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}=Ye.JY,g=(0,ro.m)({annotation:a,zoomScaledBoundingBox:l.scale(i),viewportSize:c}),{SELECTION_OUTLINE_PADDING:v}=Ye.JY,y=v(c),b=f(c),w=a?(0,Qr.M$)(a)+2*(0,ro.s)(c):0,x=Math.min(2*b,w),S=Math.max(g.width,x),_=Math.max(g.height,x),C=Math.max(b+m/2,m),E=2*C,z=Math.max(b,m/2),P=(0,R.kO)(a,l,i,c,C),A=p()({[Xr().selectionRect]:!0,[Xr().isDragging]:e.isDragging,"PSPDFKit-Selection-Outline-Rect":!0}),D=!a||(0,R.Kb)(a)?{strokeWidth:m,...h?{cursor:h}:null}:{stroke:"transparent",cursor:(0,R.Zr)(a,{cursor:h,isSelected:!0})},T=p()({[Xr().draggingRect]:!0,[Xr().isDragging]:e.isDragging,"PSPDFKit-Selection-Outline-Border":!0}),I=a?a.rotation:e.annotationRotation,M=35*(a?(0,R.oG)(a,i):i),N=u.useRef(g),O=a?(0,R.Zr)(a,{cursor:h,isSelected:!0}):void 0,j={left:g.left-C,top:g.top-C,width:S+E,height:_+E,overflow:"visible",...a||"number"!=typeof I||0===I?null:{transformOrigin:`${y+N.current.width/2}px ${y+N.current.height/2}px`},transform:"number"!=typeof I||0===I||a instanceof k.sb||a instanceof k.vU?void 0:`rotate(${-I}deg)`,zIndex:d??0,cursor:O},F=i*(f(c)-xe.vq/2),B={left:j.left+j.width/2-F,top:j.top+j.height,width:2*F,height:M+F,overflow:"visible",transformOrigin:`center -${j.height/2}px`,transform:"number"==typeof I&&0!==I?`rotate(${-I}deg)`:void 0};return(0,ee.jsxs)(u.Fragment,{children:[(0,ee.jsx)("svg",{style:j,className:Xr().svg,focusable:!1,children:a instanceof k.MU?(0,ee.jsx)("line",{className:A,x1:P[0].x,y1:P[0].y,x2:P[1].x,y2:P[1].y,style:{...D,strokeWidth:fe.LZ?Math.max(xe.Bd,a.strokeWidth)*i:Math.max(xe.uo,a.strokeWidth)*i,pointerEvents:"all"}}):(0,ee.jsx)("rect",{className:A,style:D,x:C-m/2,y:C-m/2,width:S+m,height:_+m})}),e.children||null,(0,ee.jsxs)("svg",{style:j,className:Xr().svg,focusable:!1,children:[(0,ee.jsx)($e.A,{onPointerDown:function(t){const o=r&&n.size>1&&fe.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 k.MU?(0,ee.jsx)("line",{className:T,x1:P[0].x,y1:P[0].y,x2:P[1].x,y2:P[1].y,style:{...D,strokeWidth:fe.LZ?Math.max(xe.Bd,a.strokeWidth)*i:Math.max(xe.uo,a.strokeWidth)*i,pointerEvents:"all"}}):(0,ee.jsx)("rect",{x:C-m/2,y:C-m/2,width:S+m,height:_+m,className:T,style:D})}),e.startResizing&&e.isResizable?[o(j.width/2,z,0),o(j.width-z,z,45),o(j.width-z,j.height/2,90),o(j.width-z,j.height-z,135),o(j.width/2,j.height-z,180),o(z,j.height-z,225),o(z,j.height/2,270),o(z,z,315)]:null,e.startModifying&&e.isModifiable?P.map(((t,n)=>function(t,n,r,o){return(0,ee.jsx)(to,{x:t,y:n,pointIndex:r,title:o,startModifying:t=>{e.startModifying&&e.startModifying(t,r)},endModifying:so,viewportSize:e.viewportSize,cursor:e.cursor},`modifyAnchor${r}`)}(t.x,t.y,n,"Modify point"))):null]}),e.startRotating&&e.isRotatable?(0,ee.jsx)("svg",{style:B,className:Xr().svg,focusable:!1,children:(0,ee.jsx)(no,{width:B.width,startRotating:t=>e.startRotating?.(t),endRotating:so,viewportSize:e.viewportSize,rotationHandleLength:M,rotation:I,title:t(be.A.rotation)},"rotateAnchor")}):null]})}function io(e){switch((0,l.V1)(e%45==0,"Only multiples of 45° allowed."),e%360){case 0:return Zr.E.TOP;case 45:return Zr.E.TOP_RIGHT;case 90:return Zr.E.RIGHT;case 135:return Zr.E.BOTTOM_RIGHT;case 180:return Zr.E.BOTTOM;case 225:return Zr.E.BOTTOM_LEFT;case 270:return Zr.E.LEFT;case 315:return Zr.E.TOP_LEFT;default:throw new Error("Unsupported resize degrees")}}const ao={[Zr.E.TOP]:"Top",[Zr.E.TOP_RIGHT]:"Top, Right",[Zr.E.RIGHT]:"Right",[Zr.E.BOTTOM_RIGHT]:"Bottom, Right",[Zr.E.BOTTOM]:"Bottom",[Zr.E.BOTTOM_LEFT]:"Bottom, Left",[Zr.E.LEFT]:"Left",[Zr.E.TOP_LEFT]:"Top, Left"};function so(e){e.stopPropagation()}var lo=n(23237);class co extends u.PureComponent{constructor(e){super(e),(0,v.A)(this,"editorRef",u.createRef()),(0,v.A)(this,"richTextEditorRef",u.createRef()),(0,v.A)(this,"updateSelectionBoundingBox",(()=>{const e=this._getNormalizedEditorBoundingBox(),t=Ye.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,R.oG)(n,this.props.viewportState.zoomLevel);k.rw.areRectsCloserThan((0,Ne.rK)(n).boundingBox,(0,Ne.rK)(n.set("boundingBox",this.state.selectionBoundingBox)).boundingBox,r)||(this.setState({selectionBoundingBox:n.boundingBox}),this.props.onChange?.(n.boundingBox,this.getText()))})),(0,v.A)(this,"shouldCleanupAnnotation",(()=>!((0,R.I2)(this.props.annotation)||!(0,R.or)(this.props.annotation))&&("xhtml"===this.props.annotation.text.format?""===(0,Zt.lb)(this.state.richTextContent):""===this.getText().value))),(0,v.A)(this,"handleEscape",(()=>{this.props.dispatch((0,ve.J9)()),this.props.onEditingDone()})),(0,v.A)(this,"handleBlur",(e=>{e?.isNativeBlurEvent&&this._triggerOnEditingDone(void 0,e?.isTextToolbarClicked,this.shouldCleanupAnnotation())})),(0,v.A)(this,"onStopEditing",(()=>{this._triggerOnEditingDone(!0)})),(0,v.A)(this,"onRichEditorInit",(e=>{this.props.dispatch((0,Pt.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,R.F)(t)||(t=t.set("width",Ye.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(k.rw.fromClientRect(po(t))):e?this.props.transformClientToPage(k.rw.fromClientRect(po(e.getElement()))):new k.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,R.oG)(i,this.props.viewportState.zoomLevel);if((0,R.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",k.Q1.BLACK)),Ye.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,R.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)}this.lastSavedAnnotation.equals(l)||(this.lastSavedAnnotation=l,this.props.onEditingDone((0,Qr.sS)(l,this.props.annotation.boundingBox),e,t,n))}componentWillUnmount(){this.shouldCleanupAnnotation()&&(this.props.dispatch((0,at.Ud)((0,a.NZ)([this.props.annotation.id]))),this.props.dispatch((0,lo.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,R.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,R.I2)(e),f={...!h&&{left:d,top:p},minWidth:Ye.JY.MIN_TEXT_ANNOTATION_SIZE*a,minHeight:e.fontSize*a,maxWidth:l,maxHeight:c},m=Ye.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,Ne.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=k.Q1.BLACK.toHex()),(0,ee.jsxs)(u.Fragment,{children:[!h&&(0,ee.jsx)(oo,{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()}),(0,ee.jsx)("div",{style:{...s,...!this.state.useRichText&&{wordBreak:h?void 0:s.wordBreak,overflowWrap:h?"break-word":s.overflowWrap}},className:Gt().editorWrapper,children:this.state.useRichText?(0,ee.jsx)(o.so,{text:this.state.text,style:{...m,color:k.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:xe.Mp,lastMousePoint:this.props.lastMousePoint,onEditorInit:this.onRichEditorInit,className:!h&&Gt().richEditor,autoFocus:!0,keepSelectedTool:this.props.keepSelectedTool,shadowRoot:this.props.shadowRoot}):(0,ee.jsx)(Gr,{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:xe.Mp,defaultValue:this.state.text,lastMousePoint:this.props.lastMousePoint,autoSelect:this.props.autoSelect})})]})}}(0,v.A)(co,"defaultProps",{autoSelect:!1});const uo=Sr(co);function po(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 ho=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,Zt.TH)({rect:a,annotation:t,zoomLevel:r,text:n,callout:s});l&&i((0,at.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,Zt.lb)(c.current.text.value):c.current.text.value)||"xhtml"!==c.current.text.format||i((0,at.eS)(c.current))}),[i]),(0,ee.jsx)("div",{style:{position:"absolute",left:a.left,top:a.top,minHeight:a.height,width:a.width},children:(0,ee.jsx)(Jt,{annotation:t,isEditing:!0,ref:o,children:n(l)})})};class fo extends u.PureComponent{constructor(){var e;super(...arguments),e=this,(0,v.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,Ne.pE)(t),s=i?(0,a.B8)([i]):(0,a.B8)([]),l={annotations:s,reason:J.x.TEXT_EDIT_END};e.props.eventEmitter.emit("annotations.willChange",l),i&&(o||e.props.dispatch((0,at.g_)(i)),n&&e.props.dispatch((0,ve.TT)((0,a.NZ)([e.props.annotation.id]),null)),e.props.keepSelectedTool&&!r&&e.props.dispatch((0,Pt.K3)()))}))}componentDidMount(){const e={annotations:(0,a.B8)([this.props.annotation]),reason:J.x.TEXT_EDIT_START};this.props.eventEmitter.emit("annotations.willChange",e),this.props.dispatch((0,Pt.y7)())}componentWillUnmount(){this.props.dispatch((0,Pt.JN)())}render(){const{annotation:e,autoSelect:t,dispatch:n,pageSize:r,lastMousePoint:o,pageIndex:i,enableRichText:a}=this.props,s=s=>(0,ee.jsx)(uo,{dispatch:n,annotation:(0,Ne.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});return(0,R.I2)(e)?(0,ee.jsx)(ho,{annotation:e,children:e=>s(e)}):s()}}(0,v.A)(fo,"defaultProps",{autoSelect:!1});class mo extends u.Component{constructor(e){super(e),(0,v.A)(this,"shouldComponentUpdate",ye.E),(0,v.A)(this,"_handlePointerUp",(e=>{if(!e.isPrimary)return;const t=this._getNormalizedMousePosition(e);if(!t)return;const{pagesRotation:n}=this.props.viewportState,r=(0,R.yQ)(this.props.annotation,this.props.zoomLevel)?this.props.annotation.fontSize/this.props.zoomLevel:this.props.annotation.fontSize,o=new k.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===F.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 k.bR({x:e.x,y:e.y}),i=new k.bR({x:r.includes("right")?e.x+50:e.x-50,y:r.includes("top")?e.y-50:e.y+50}),a=new k.bR({x:r.includes("right")?e.x+50:e.x-50,y:r.includes("top")?e.y-go:e.y+go}),s=new k.Yy({top:r.includes("top")?0:go,right:r.includes("right")?0:42,bottom:r.includes("top")?go:0,left:r.includes("right")?42:0}),l=new k.Pq({start:o,knee:i,end:a,innerRectInset:s,cap:"openArrow"}),c=new k.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||k.Q1.BLACK)}(t,this.props.pageSize,l)),this.props.dispatch((0,at.iN)((0,a.B8)([l]))),e.stopPropagation()})),this.state={bindPointerUpEvent:!0}}_getNormalizedMousePosition(e){const{target:t}=e;if("DIV"==t.tagName)return this.props.transformClientToPage(new k.bR({x:e.clientX,y:e.clientY}))}_fitRectInPage(e,t){const{width:n,height:r}=t,{MIN_TEXT_ANNOTATION_SIZE:o}=Ye.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()({[Gt().layer]:!0,"PSPDFKit-Text-Canvas":!0});return(0,ee.jsx)($e.A,{onPointerUpCapture:this.state.bindPointerUpEvent?this._handlePointerUp:void 0,children:(0,ee.jsx)("div",{className:e,style:{cursor:"text"}})})}}(0,v.A)(mo,"defaultProps",{autoSelect:!1});const go=80;const vo=Sr(mo);var yo=n(81309);const bo={ArrowUp:0,ArrowRight:90,ArrowDown:180,ArrowLeft:270};function wo(e){switch(e){case 0:return new E.bR({x:0,y:-1});case 90:return new E.bR({x:1,y:0});case 180:return new E.bR({x:0,y:1});case 270:return new E.bR({x:-1,y:0});default:throw Error()}}var xo=n(6329);function So(e){e.getSelection()?.isCollapsed||(0,xo.LL)(e)}const _o={isListening:!1,isDragging:!1,previousMousePosition:null,initialClickWithinAnnotation:null,translation:new k.bR,initialDragCompleted:!1};function Co(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{..._o,initialDragCompleted:!0};default:throw(0,l.GQ)(n.type)}}function Eo(e){return e.target?.classList.contains(Xr().selectionRect)}var ko=n(15653);const zo={pointIndex:null,startingMousePosition:null,isListening:!1};function Po(e,t,n){let r;return e instanceof k.MU?r=e[["startPoint","endPoint"][t]].apply(n):e instanceof k.ug&&(r=e.points.get(t).apply(n)),r}const Ao={startingMousePosition:null,startingResizeAnchor:null,isListening:!1};function Do(e,t,n){const r=e.boundingBox.apply(t);let o;return n===Zr.E.TOP_LEFT?o=new k.bR({x:r.left,y:r.top}):n===Zr.E.TOP_RIGHT?o=new k.bR({x:r.left+r.width,y:r.top}):n===Zr.E.BOTTOM_LEFT?o=new k.bR({x:r.left,y:r.top+r.height}):n===Zr.E.BOTTOM_RIGHT&&(o=new k.bR({x:r.left+r.width,y:r.top+r.height})),o}const To=Sr((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:z,restrictAnnotationToPageBounds:P,isEditableCP:A,shouldConstrainAspectRatio:T,setGlobalCursor:I,annotationDimensions:M,backend:N,disablePointSnapping:O}=e,j=(0,u.useRef)(!1),{formatMessage:F}=(0,he.tz)(),B=u.useMemo((()=>{let e;return(0,D.w6)(t)&&t.measurementBBox?(e=t.set("boundingBox",t.measurementBBox),e):t}),[t]),[L,V]=(0,yr.rI)(B),K=(0,s.d4)((e=>e.shadowRoot)),[$,H]=u.useState(null),[U,W]=function(e,t,n){const r=u.useRef(null);return[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]),r]}(0,0,j.current);(0,u.useEffect)((()=>{L&&z.emit("annotations.transform",{annotation:L})}),[L,z]);const G=u.useMemo((()=>(0,q.zo)(e.viewportState,t.pageIndex)),[e.viewportState,t.pageIndex]),Y=u.useMemo((()=>(0,R.hI)(L,r,i)),[L,r,i]),Z=u.useCallback((function(e){return e.scale(1/r).rotate(i)}),[r,i]),X=u.useCallback((e=>{H(e),I(e)}),[I]),Q=u.useCallback((function(e){const t=(0,Ne.pE)(e),n=(0,R.hI)(t,r,i);if(_&&P){if(!new k.rw({left:0,top:0,width:_.width,height:_.height}).isRectInside(n))return}x((0,at.g_)(t))}),[x,_,P,r,i]),{isDragging:te,cancelDrag:ne,startDraggingWithEvent:re,startDraggingAtPoint:oe,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(Co,_o),{isListening:S,isDragging:_}=w,C=u.useCallback((function(){return new k.bR({x:t().scrollLeft,y:t().scrollTop})}),[t]);u.useEffect((()=>()=>{_&&c&&d((0,Pt.JN)())}),[d,c,_]);const E=u.useRef(null),z=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]),P=u.useCallback((function(e){e.isPrimary&&z(new k.bR({x:e.clientX,y:e.clientY}))}),[z]),A=u.useCallback((function(){x({type:"stop"}),So(p),d((0,Pt.JN)())}),[p,d]),T=u.useCallback((function(e){if((_||Eo(e))&&e.stopPropagation(),r.equals(s)?w.initialDragCompleted&&f(e):i(r),x({type:"stop"}),_){const e={annotations:(0,a.B8)([r]),reason:J.x.MOVE_END};g.emit("annotations.willChange",e)}So(p),d((0,Pt.JN)())}),[s,p,d,_,f,w.initialDragCompleted,r,g,i]),I=u.useCallback((function(e){if(e.stopPropagation(),e.preventDefault(),_&&0===e.buttons)return void T(e);const{previousMousePosition:t,initialClickWithinAnnotation:n,translation:r}=w;(0,l.V1)(t),(0,l.V1)(n);const i=m(new k.bR({x:e.clientX,y:e.clientY})),u=At(n,t);!c&&u&&d((0,Pt.y7)());const f=i.translate(t.scale(-1)),y=r.translate(f),S=(0,yo.C)(s,y,h,n,v,b),C=(0,D.w6)(S)?S.set("measurementBBox",S.boundingBox):S;if(o(C),x({type:"drag",mousePosition:i,translation:y}),So(p),!_){const e={annotations:(0,a.B8)([s]),reason:J.x.MOVE_START};g.emit("annotations.willChange",e)}}),[s,p,d,c,h,o,w,_,m,g,T,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 k.bR);const u=(0,yo.C)(s,a,h,c,!1,b);o(u),x({type:"scroll",translation:a}),E.current=n,So(p)}),[s,p,t,C,h,o,w.initialClickWithinAnnotation,w.translation,m,b]);(0,yr.Uk)(S,t,M);const N=S&&(0,ee.jsx)($e.A,{onRootPointerDownCapture:T,onRootPointerMoveCapture:y&&!s.locked?I:void 0,onRootPointerUpCapture:T});return{isDragging:_,cancelDrag:A,startDraggingWithEvent:P,startDraggingAtPoint:z,dragListener:N}}({getScrollElement:v,transformClientToPage:y,transformedAnnotation:L,setTransformedAnnotation:V,setGlobalAnnotation:Q,annotation:t,interactionsDisabled:w,dispatch:x,frameWindow:b,pageSize:_,onClick:U,transformDeltaFromClientToPage:Z,eventEmitter:z,restrictAnnotationToPageBounds:P,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}=e;const[w,x]=u.useState(Ao),[S,_]=u.useState(!1),C=u.useRef(void 0),E=u.useRef(null),z=u.useRef(!1);u.useEffect((()=>()=>{S&&v&&i((0,Pt.JN)())}),[i,v,S]);const P=u.useCallback((function(e,n){if(!e.isPrimary)return;(0,Tt.sC)(y,o,b)&&y.configureSnapper(o.pageIndex);const r=new k.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:J.x.RESIZE_START};d.emit("annotations.willChange",u),o instanceof k.Zx&&![Zr.E.TOP,Zr.E.RIGHT,Zr.E.BOTTOM,Zr.E.LEFT].includes(n)&&o.isMeasurement?.()&&((0,l.V1)(t instanceof k.Zx),i((0,Dt.Al)({magnifierLabel:t.getMeasurementDetails().label,drawnAnnotationID:t.id,drawnAnnotationPageIndex:t.pageIndex,magnifierCursorPosition:Do(o,g,n)}))),i((0,Pt.y7)())}),[t,i,c,o,d,g]),A=u.useCallback((async function(e){e.preventDefault();const t=new k.bR({x:e.clientX,y:e.clientY});let r=c(t);if((0,Tt.sC)(y,o,b)){const e=await y.getClosestSnapPoint(new k.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||(z.current=f(d),C.current=m(d)),E.current=d;const x=r.translate(a.scale(-1)),S=(0,Qr.gn)(o,x,u,z.current,void 0,p,h,C.current),_=(0,D.w6)(S)?S.set("measurementBBox",S.boundingBox):S;n(_),So(s),o instanceof k.Zx&&![Zr.E.TOP,Zr.E.RIGHT,Zr.E.BOTTOM,Zr.E.LEFT].includes(u)&&o.isMeasurement?.()&&((0,l.V1)(S instanceof k.Zx),i((0,Dt.Al)({magnifierLabel:S.getMeasurementDetails().label,magnifierCursorPosition:Do(S,g,u)})))}),[i,o,s,n,g,f,w,c,p,h]),T=u.useCallback((function(e){e.stopPropagation(),_(!1),x(Ao),r(t),i((0,Pt.JN)()),So(s);const n={annotations:(0,a.B8)([t]),reason:J.x.RESIZE_END};d.emit("annotations.willChange",n),o instanceof k.Zx&&o.isMeasurement?.()&&i((0,Dt.Al)(null))}),[o,s,i,r,t,d]);return{startResizing:P,resizeListener:w.isListening&&(0,ee.jsx)($e.A,{onRootPointerMoveCapture:A,onRootPointerUpCapture:T}),isResizing:S}}({transformedAnnotation:L,setTransformedAnnotation:V,setGlobalAnnotation:Q,annotation:t,dispatch:x,frameWindow:b,transformDeltaFromClientToPage:Z,eventEmitter:z,pageSize:_,restrictAnnotationToPageBounds:P,shouldConstrainAspectRatio:T,annotationDimensions:M,clientTransformationMatrix:G,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,Pt.JN)())}),[i,f,b]);const x=u.useCallback((e=>{const t=new k.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:J.x.ROTATE_START};c.emit("annotations.willChange",t),i((0,Pt.y7)()),m((0,Ne._1)(x(e),"grabbing"))}),[i,o,c,x,m]),_=u.useCallback((function(e){const r=x(e),o=(0,Ne.zq)(t,r,d,p,g);n(o),So(s),m((0,Ne._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,Ne.zq)(o,t,d,p,g);r(n),i((0,Pt.JN)()),So(s),m("");const l={annotations:(0,a.B8)([n]),reason:J.x.ROTATE_END};c.emit("annotations.willChange",l)}),[s,i,r,o,x,c,d,p,m,g]);return{startRotating:S,rotateListener:v&&(0,ee.jsx)($e.A,{onRootPointerMoveCapture:_,onRootPointerUpCapture:C}),isRotating:b}}({transformedAnnotation:L,setTransformedAnnotation:V,setGlobalAnnotation:Q,annotation:t,dispatch:x,frameWindow:b,transformClientToPage:y,eventEmitter:z,pageSize:_,restrictAnnotationToPageBounds:P,centerPoint:Y.getCenter(),interactionsDisabled:w,setLocalAndGlobalCursor:X,zoomLevel:r}),pe=(0,yr.pO)(t,_,r,x),{startModifying:fe,modifyListener:me,isModifying:ge}=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,zoomLevel:y}=e;const[b,w]=u.useState(zo),[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 k.bR({x:e.clientX,y:e.clientY}),r=d(n);(0,Tt.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:J.x.RESIZE_START};p.emit("annotations.willChange",s),o instanceof k.pP&&o.isMeasurement?.()&&i((0,Dt.Al)({magnifierLabel:o.getMeasurementDetails().label,drawnAnnotationID:o.id,drawnAnnotationPageIndex:o.pageIndex,magnifierCursorPosition:Po(o,t,h)})),i((0,Pt.y7)())}),[i,d,o,p,h]),z=u.useCallback((async function(e){e.preventDefault();const t=new k.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,ko.Sp)(o,u,s);if((0,l.V1)(p),(0,Tt.sC)(g,o,v)){let e=new k.bR({x:0,y:0});p instanceof k.MU?e=p.get(["startPoint","endPoint"][s]):(p instanceof k.ug||p instanceof k.Si)&&(e=p.points.get(s));const t=await g.getClosestSnapPoint(new k.bR({x:e.x,y:e.y}));e=e.set("x",t.x).set("y",t.y),p instanceof k.MU?p=p.set(["startPoint","endPoint"][s],e):(p instanceof k.ug||p instanceof k.Si)&&(p=p.set("points",p.points.set(s,e)))}if(p instanceof k.ug||p instanceof k.Si){const e=(0,Tt.RJ)(p,s,_);-1!==e&&(p=(0,Tt.oC)(p,s,e))}n(p),So(c),"isMeasurement"in p&&p.isMeasurement?.()&&i((0,Dt.Al)({magnifierLabel:p.getMeasurementDetails().label,magnifierCursorPosition:Po(p,s,h)}))}),[i,o,c,n,b,d,h]),P=u.useCallback((function(e){if(e.stopPropagation(),S(!1),w(zo),f&&m){const e=new E.rw({left:0,top:0,width:f.width,height:f.height}),t=(0,R.hI)(o,y);if(!e.isRectInside(t))return}r(t),i((0,Pt.JN)()),So(c);const n={annotations:(0,a.B8)([t]),reason:J.x.RESIZE_END};p.emit("annotations.willChange",n),"isMeasurement"in o&&o.isMeasurement?.()&&i((0,Dt.Al)(null))}),[o,c,i,t,p,r,f,m,y]);return{startModifying:C,modifyListener:b.isListening&&(0,ee.jsx)($e.A,{onRootPointerMoveCapture:z,onRootPointerUpCapture:P}),isModifying:x}}({transformedAnnotation:L,setTransformedAnnotation:V,setGlobalAnnotation:Q,annotation:t,dispatch:x,frameWindow:b,transformDeltaFromClientToPage:Z,eventEmitter:z,clientTransformationMatrix:G,pageSize:_,restrictAnnotationToPageBounds:P,backend:N,disablePointSnapping:O,zoomLevel:r});(0,yr.Rv)(S,x,oe);const ye=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:ge,isDragging:te,isRotating:de,...$?{cursor:$}:null}),we=u.useRef(null);we.current=function(e){g&&g(t,e)};const xe=(0,yr.f3)(v);u.useEffect((function(){const{current:e}=xe;return function(){if(e&&e===e?.ownerDocument.activeElement){const e=we.current;e&&e((0,Zn.BL)("blur"))}}}),[]),u.useLayoutEffect((function(){te&&ne()}),[r,ne]),function(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,Oe.Kr)(bo[t.key]-s),u=wo(l),p=0===l||270===l?new E.bR:new E.bR({x:n.boundingBox.width,y:n.boundingBox.height}),f=(0,yo.C)(n,u.scale(e),i,p,d,h);if(r(f),!g.current){const e={annotations:(0,a.B8)([n]),reason:J.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:J.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])}(U,b,L,V,Q,_,i,z,P,K,r);const Se=(0,R.lW)(L,F);return(0,ee.jsx)($e.A,{onPointerDownCapture:function(e){e.isPrimary&&(j.current=C({annotation:t,nativeEvent:e.nativeEvent,selected:!0},z),j.current||x((0,ve.pw)(L,e,{selectedAnnotationShouldDrag:"touch"!==e.pointerType?new k.bR({x:e.clientX,y:e.clientY}):null,stopPropagation:!1,isAnnotationPressPrevented:!1})))},onPointerUp:Io,children:(0,ee.jsxs)("div",{style:{touchAction:"none"},role:"application",children:[(0,ee.jsx)(oo,{zoomLevel:r,viewportSize:o.getSize(),startModifying:fe,startResizing:ae,startDragging:re,startRotating:ce,onFitToSide:pe,isDragging:te,pagesRotation:i,annotation:L,isResizable:d&&A,isModifiable:h&&A,isRotatable:f&&A,isEditableCP:A,annotationBoundingBox:Y,window:b,cursor:$,children:(0,ee.jsx)("div",{tabIndex:0,ref:xe,role:"button","aria-label":L instanceof k.sb?F(be.A.selectedAnnotation,{arg0:Se}):L instanceof k.dh||L instanceof k.s9?F(be.A.selectedAnnotationWithText,{arg0:Se,arg1:L.text.value}):F(be.A.selectedAnnotation,{arg0:Se}),"data-testid":"selected annotation",onFocus:function(e){m&&m(t,e)},onBlur:we.current,className:p()("PSPDFKit-Annotation-Selected",L.constructor.readableName&&`PSPDFKit-${L.constructor.readableName}-Annotation-Selected`),children:ye})}),ie,se,me,ue]})})}));function Io(e){e.stopPropagation()}const Mo=(0,s.Ng)((function(e,t){let{annotation:n}=t;return{interactionsDisabled:e.interactionsDisabled,selectedAnnotationShouldDrag:e.selectedAnnotationShouldDrag,isAnnotationPressPrevented:t=>(0,R.m5)(t,e.eventEmitter),eventEmitter:e.eventEmitter,restrictAnnotationToPageBounds:e.restrictAnnotationToPageBounds,isEditableCP:(0,lr.q2)(n,e),shouldConstrainAspectRatio:t=>(0,R.DV)(t,e),annotationDimensions:t=>(0,R.my)(t,e)}}))(To),No={isListening:!1,isDragging:!1,previousMousePosition:null,initialClickWithinAnnotation:null,translation:new k.bR,initialDragCompleted:!1};const Oo=Sr((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,he.tz)(),[C,E]=(0,yr.rI)(n),z=(0,yr.f3)(h),P=(0,R.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,Ne.pE)(e),n=(0,R.hI)(t,i,c);if(v&&b){if(!new k.rw({left:0,top:0,width:v.width,height:v.height}).isRectInside(n))return null}return t})).filter(Boolean);o((0,at.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(Co,No),{isListening:x,isDragging:S}=b,_=u.useCallback((function(){return new k.bR({x:t().scrollLeft,y:t().scrollTop})}),[t]);u.useEffect((()=>()=>{S&&a&&s((0,Pt.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]),z=u.useCallback((function(e){e.isPrimary&&E(new k.bR({x:e.clientX,y:e.clientY}))}),[E]),P=u.useCallback((function(){w({type:"stop"}),So(c),s((0,Pt.JN)())}),[c,s]),A=u.useCallback((function(e){if((S||Eo(e))&&e.stopPropagation(),r&&S&&i(r),w({type:"stop"}),S){const e={annotations:r,reason:J.x.MOVE_END};h.emit("annotations.willChange",e)}So(c),s((0,Pt.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 k.bR({x:e.clientX,y:e.clientY})),u=At(n,t);!a&&u&&s((0,Pt.y7)());const m=i.translate(t.scale(-1)),g=r.translate(m),x=v.map((e=>(0,yo.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,R.lF)(x,y),d)||(o(x),w({type:"drag",mousePosition:i,translation:g})),So(c),!S){const e={annotations:x,reason:J.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 k.bR,u=v.map((e=>(0,yo.C)(e,a,d,s,!1,y)));o(u),w({type:"scroll",translation:a}),C.current=n,So(c)}),[c,t,_,d,o,b.initialClickWithinAnnotation,b.translation,p,v,y]);(0,yr.Uk)(x,t,T);const I=x&&(0,ee.jsx)($e.A,{onRootPointerDownCapture:A,onRootPointerMoveCapture:m?D:void 0,onRootPointerUpCapture:A});return{isDragging:S,cancelDrag:P,startDraggingWithEvent:z,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:P,selectedAnnotations:n,zoomLevel:i}),j=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,yr.Rv)(w,o,N),u.useLayoutEffect((function(){T&&I()}),[i,I]);const F=u.useRef(null);F.current=function(e,t){S&&S(e,t)};const B=j.filter((e=>Boolean(e.props.annotation))).length>1;return(0,ee.jsx)($e.A,{onPointerDownCapture:function(e){e.isPrimary},onPointerUp:jo,children:(0,ee.jsxs)("div",{style:{touchAction:"none",zIndex:1},children:[(0,ee.jsx)(oo,{zoomLevel:i,viewportSize:s.getSize(),startDragging:M,isDragging:T,pagesRotation:c,isResizable:!1,isModifiable:!1,isEditableCP:d,annotationBoundingBox:P,isRotatable:!1,children:j.filter((e=>Boolean(e.props.annotation))).map(((e,t)=>{const n=e.props.annotation,r=(0,R.lW)(n,_);return(0,ee.jsx)(oo,{zoomLevel:i,viewportSize:s.getSize(),startDragging:M,isDragging:T,pagesRotation:c,isResizable:!1,isModifiable:!1,isRotatable:!1,isEditableCP:d,annotationBoundingBox:(0,R.hI)(n,i,c),deselectAnnotation:e=>{o((0,ve.pw)(n,e))},annotationRotation:n.rotation,customZIndex:2,children:(0,ee.jsx)("div",{tabIndex:t,"aria-label":n instanceof ie.sb?_(be.A.selectedAnnotation,{arg0:r}):n instanceof ie.dh||n instanceof ie.s9?_(be.A.selectedAnnotationWithText,{arg0:r,arg1:n.text.value}):_(be.A.selectedAnnotation,{arg0:r}),ref:B?void 0:z,role:"button","data-testid":`selected annotation ${t}`,onFocus:e=>{return t=n,r=e,void(x&&x(t,r));var t,r},onBlur:e=>F.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 jo(e){e.stopPropagation()}const Ro=(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,lr.q2)(n,e),shouldConstrainAspectRatio:t=>(0,R.DV)(t,e)}}))(Oo);function Fo(e){const[t,n]=u.useState(new W.A),[r,o]=u.useState(new W.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,Pt.y7)()),()=>{i((0,Pt.JN)())})),[i]);const{pageIndex:d}=e,h=(0,s.d4)((e=>e.viewportState.zoomLevel)),f=p()([nn().canvas],"PSPDFKit-Redaction-Canvas"),{boundingBox:m}=r,g=(0,s.d4)((e=>e.scrollElement));return(0,ee.jsxs)("div",{className:f,children:[(0,ee.jsx)(ge,{zoomLevel:h,applyZoom:!0,children:(0,ee.jsx)("div",{style:{...m.toJS(),position:"absolute"},children:(0,ee.jsx)(rn,{annotation:r,zoomLevel:1,previewRedactionMode:!1,isSelectable:!1})})}),(0,ee.jsx)(It,{pageSize:l,pageIndex:d,currentAnnotation:r,onAnnotationUpdate:o,keepSelectedTool:c,scrollElement:g})]})}var Bo,Lo=n(61371),Vo=n(55794),Ko=n.n(Vo),$o=(Bo=function(e,t){return Bo=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])},Bo(e,t)},function(e,t){function n(){this.constructor=e}Bo(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Ho=function(){return Ho=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},Ho.apply(this,arguments)},Uo={top:{width:"100%",height:"10px",top:"-5px",left:"0px",cursor:"row-resize"},right:{width:"10px",height:"100%",top:"0px",right:"-5px",cursor:"col-resize"},bottom:{width:"100%",height:"10px",bottom:"-5px",left:"0px",cursor:"row-resize"},left:{width:"10px",height:"100%",top:"0px",left:"-5px",cursor:"col-resize"},topRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",top:"-10px",cursor:"ne-resize"},bottomRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",bottom:"-10px",cursor:"se-resize"},bottomLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",bottom:"-10px",cursor:"sw-resize"},topLeft:{width:"20px",height:"20px",position:"absolute",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 $o(t,e),t.prototype.render=function(){return u.createElement("div",{className:this.props.className||"",style:Ho(Ho({position:"absolute",userSelect:"none"},Uo[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(u.PureComponent),Wo=n(74987),Go=n.n(Wo),Yo=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)t.hasOwnProperty(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)}}(),Zo=function(){return Zo=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},Zo.apply(this,arguments)},Jo={width:"auto",height:"auto"},Xo=Go()((function(e,t,n){return Math.max(Math.min(e,n),t)})),Qo=Go()((function(e,t){return Math.round(e/t)*t})),ei=Go()((function(e,t){return new RegExp(e,"i").test(t)})),ti=function(e){return Boolean(e.touches&&e.touches.length)},ni=Go()((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})),ri=Go()((function(e,t){return e.substr(e.length-t.length,t.length)===t})),oi=Go()((function(e){return"auto"===(e=e.toString())||ri(e,"px")||ri(e,"%")||ri(e,"vh")||ri(e,"vw")||ri(e,"vmax")||ri(e,"vmin")?e:e+"px"})),ii=function(e,t,n,r){if(e&&"string"==typeof e){if(ri(e,"px"))return Number(e.replace("px",""));if(ri(e,"%"))return t*(Number(e.replace("%",""))/100);if(ri(e,"vw"))return n*(Number(e.replace("vw",""))/100);if(ri(e,"vh"))return r*(Number(e.replace("vh",""))/100)}return e},ai=Go()((function(e,t,n,r,o,i,a){return r=ii(r,e.width,t,n),o=ii(o,e.height,t,n),i=ii(i,e.width,t,n),a=ii(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)}})),si=["as","style","className","grid","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"],li="__resizable_base__",ci=function(e){function t(t){var n=e.call(this,t)||this;return n.ratio=1,n.resizable=null,n.parentLeft=0,n.parentTop=0,n.resizableLeft=0,n.resizableRight=0,n.resizableTop=0,n.resizableBottom=0,n.targetLeft=0,n.targetTop=0,n.appendBase=function(){if(!n.resizable||!n.window)return null;var e=n.parentNode;if(!e)return null;var t=n.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",t.classList?t.classList.add(li):t.className+=li,e.appendChild(t),t},n.removeBase=function(e){var t=n.parentNode;t&&t.removeChild(e)},n.ref=function(e){e&&(n.resizable=e)},n.state={isResizing:!1,width:void 0===(n.propsSize&&n.propsSize.width)?"auto":n.propsSize&&n.propsSize.width,height:void 0===(n.propsSize&&n.propsSize.height)?"auto":n.propsSize&&n.propsSize.height,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},n.onResizeStart=n.onResizeStart.bind(n),n.onMouseMove=n.onMouseMove.bind(n),n.onMouseUp=n.onMouseUp.bind(n),n}return Yo(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||Jo},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){if(void 0===e.state[t]||"auto"===e.state[t])return"auto";if(e.propsSize&&e.propsSize[t]&&ri(e.propsSize[t].toString(),"%")){if(ri(e.state[t].toString(),"%"))return e.state[t].toString();var n=e.getParentSize();return Number(e.state[t].toString().replace("px",""))/n[t]*100+"%"}return oi(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?oi(t.width):n("width"),height:t&&void 0!==t.height&&!this.state.isResizing?oi(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%";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&&ei("left",i),s=o&&ei("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=this.props.scale||1,r=this.props.resizeRatio||1,o=this.state,i=o.direction,a=o.original,s=this.props,l=s.lockAspectRatio,c=s.lockAspectRatioExtraHeight,u=s.lockAspectRatioExtraWidth,d=a.width,p=a.height,h=c||0,f=u||0;return ei("right",i)&&(d=a.width+(e-a.x)*r/n,l&&(p=(d-f)/this.ratio+h)),ei("left",i)&&(d=a.width-(e-a.x)*r/n,l&&(p=(d-f)/this.ratio+h)),ei("bottom",i)&&(p=a.height+(t-a.y)*r/n,l&&(d=(p-h)*this.ratio+f)),ei("top",i)&&(p=a.height-(t-a.y)*r/n,l&&(d=(p-h)*this.ratio+f)),{newWidth:d,newHeight:p}},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=Xo(e,y,b),t=Xo(t,w,x)}else e=Xo(e,l,c),t=Xo(t,u,d);return{newWidth:e,newHeight:t}},t.prototype.setBoundingClientRect=function(){if("parent"===this.props.bounds){var e=this.parentNode;if(e){var t=e.getBoundingClientRect();this.parentLeft=t.left,this.parentTop=t.top}}if(this.props.bounds&&"string"!=typeof this.props.bounds){var n=this.props.bounds.getBoundingClientRect();this.targetLeft=n.left,this.targetTop=n.top}if(this.resizable){var r=this.resizable.getBoundingClientRect(),o=r.left,i=r.top,a=r.right,s=r.bottom;this.resizableLeft=o,this.resizableRight=a,this.resizableTop=i,this.resizableBottom=s}},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)){if(r=e.nativeEvent.clientX,o=e.nativeEvent.clientY,3===e.nativeEvent.which)return}else e.nativeEvent&&ti(e.nativeEvent)&&(r=e.nativeEvent.touches[0].clientX,o=e.nativeEvent.touches[0].clientY);if(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:Zo(Zo({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(e.target).cursor||"auto"}),direction:t,flexBasis:n};this.setState(l)}},t.prototype.onMouseMove=function(e){if(this.state.isResizing&&this.resizable&&this.window){if(this.window.TouchEvent&&ti(e))try{e.preventDefault(),e.stopPropagation()}catch(e){}var t=this.props,n=t.maxWidth,r=t.maxHeight,o=t.minWidth,i=t.minHeight,a=ti(e)?e.touches[0].clientX:e.clientX,s=ti(e)?e.touches[0].clientY:e.clientY,l=this.state,c=l.direction,u=l.original,d=l.width,p=l.height,h=this.getParentSize(),f=ai(h,this.window.innerWidth,this.window.innerHeight,n,r,o,i);n=f.maxWidth,r=f.maxHeight,o=f.minWidth,i=f.minHeight;var m=this.calculateNewSizeFromDirection(a,s),g=m.newHeight,v=m.newWidth,y=this.calculateNewMaxFromBoundary(n,r),b=this.calculateNewSizeFromAspectRatio(v,g,{width:y.maxWidth,height:y.maxHeight},{width:o,height:i});if(v=b.newWidth,g=b.newHeight,this.props.grid){var w=Qo(v,this.props.grid[0]),x=Qo(g,this.props.grid[1]),S=this.props.snapGap||0;v=0===S||Math.abs(w-v)<=S?w:v,g=0===S||Math.abs(x-g)<=S?x:g}this.props.snap&&this.props.snap.x&&(v=ni(v,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(g=ni(g,this.props.snap.y,this.props.snapGap));var _={width:v-u.width,height:g-u.height};if(d&&"string"==typeof d)if(ri(d,"%"))v=v/h.width*100+"%";else if(ri(d,"vw")){v=v/this.window.innerWidth*100+"vw"}else if(ri(d,"vh")){v=v/this.window.innerHeight*100+"vh"}if(p&&"string"==typeof p)if(ri(p,"%"))g=g/h.height*100+"%";else if(ri(p,"vw")){g=g/this.window.innerWidth*100+"vw"}else if(ri(p,"vh")){g=g/this.window.innerHeight*100+"vh"}var C={width:this.createSizeForCssProperty(v,"width"),height:this.createSizeForCssProperty(g,"height")};"row"===this.flexDir?C.flexBasis=C.width:"column"===this.flexDir&&(C.flexBasis=C.height),this.setState(C),this.props.onResize&&this.props.onResize(e,c,this.resizable,_)}},t.prototype.onMouseUp=function(e){var t=this.state,n=t.isResizing,r=t.direction,o=t.original;if(n&&this.resizable){var i={width:this.size.width-o.width,height:this.size.height-o.height};this.props.onResizeStop&&this.props.onResizeStop(e,r,this.resizable,i),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:Zo(Zo({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(e){this.setState({width:e.width,height:e.height})},t.prototype.renderResizer=function(){var e=this,t=this.props,n=t.enable,r=t.handleStyles,o=t.handleClasses,i=t.handleWrapperStyle,a=t.handleWrapperClass,s=t.handleComponent;if(!n)return null;var l=Object.keys(n).map((function(t){return!1!==n[t]?u.createElement(qo,{key:t,direction:t,onResizeStart:e.onResizeStart,replaceStyles:r&&r[t],className:o&&o[t]},s&&s[t]?s[t]:null):null}));return u.createElement("div",{className:a,style:i},l)},t.prototype.render=function(){var e=this,t=Object.keys(this.props).reduce((function(t,n){return-1!==si.indexOf(n)||(t[n]=e.props[n]),t}),{}),n=Zo(Zo(Zo({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,Zo({ref:this.ref,style:n,className:this.props.className},t),this.state.isResizing&&u.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},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],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(u.PureComponent),ui=n(43609),di=n.n(ui);function pi(e){const t={position:"absolute",backgroundColor:"rgba(0,0,0,0.2)"};return e?(0,ee.jsxs)(ee.Fragment,{children:[(0,ee.jsx)("div",{style:{...t,left:0,top:0,bottom:0,width:e.left}}),(0,ee.jsx)("div",{style:{...t,left:e.left,top:0,right:0,height:e.top}}),(0,ee.jsx)("div",{style:{...t,left:e.left+e.width,top:e.top,right:0,bottom:0}}),(0,ee.jsx)("div",{style:{...t,left:e.left,top:e.top+e.height,bottom:0,width:e.width}})]}):null}const hi={top:p()(di().handles,di().handleTop,"PSPDFKit-Document-Crop-Resize-Anchor-Top"),right:p()(di().handles,di().handleRight,"PSPDFKit-Document-Crop-Resize-Anchor-Right"),bottom:p()(di().handles,di().handleBottom,"PSPDFKit-Document-Crop-Resize-Anchor-Bottom"),left:p()(di().handles,di().handleLeft,"PSPDFKit-Document-Crop-Resize-Anchor-Left"),topRight:p()(di().handles,di().handleTopRight,"PSPDFKit-Document-Crop-Resize-Anchor-Top-Right"),bottomRight:p()(di().handles,di().handleBottomRight,"PSPDFKit-Document-Crop-Resize-Anchor-Bottom-Right"),bottomLeft:p()(di().handles,di().handleBottomLeft,"PSPDFKit-Document-Crop-Resize-Anchor-Bottom-Left"),topLeft:p()(di().handles,di().handleTopLeft,"PSPDFKit-Document-Crop-Resize-Anchor-Top-Left")};function fi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.scale(1/t)}function mi(e){return"touches"in e?{clientX:e.touches[0].clientX,clientY:e.touches[0].clientY}:{clientX:e.clientX,clientY:e.clientY}}let gi=function(e){return e[e.NOT_CREATED=0]="NOT_CREATED",e[e.CREATING=1]="CREATING",e[e.CREATED=2]="CREATED",e}({});const vi=e=>{let{page:t,viewportState:n,onAreaChangeComplete:r,frameWindow:o,onAreaChangeStart:i,initialDraggingEvent:a}=e;const{zoomLevel:c}=n,d=(0,s.d4)((e=>e.shadowRoot)),[h,f]=(0,u.useState)(c),m=(0,u.useRef)(null),[g,v]=(0,u.useState)({left:0,top:0,height:0,width:0}),[y,b]=(0,u.useState)(!1),[w,x]=(0,u.useState)(null),[S,_]=(0,u.useState)(gi.NOT_CREATED),[C,E]=(0,u.useState)(!1),[z,P]=(0,u.useState)(void 0),[A,D]=(0,u.useState)(!1),T=(0,u.useRef)(null),I=(0,s.d4)((e=>e.scrollElement));(0,u.useEffect)((()=>{(0,Yn.sb)(I)&&(I.style.overflow=C?"hidden":"auto",d?d.host.ownerDocument.body.style.overscrollBehavior=C?"contain":"auto":o.document.body.style.overscrollBehavior=C?"contain":"auto")}),[o.document,C,d,I]),(0,u.useEffect)((()=>{function e(e){"Shift"===e.key&&D(!0)}function t(e){"Shift"===e.key&&D(!1)}const n=d||o.document;return n.addEventListener("keydown",e),n.addEventListener("keyup",t),()=>{n.removeEventListener("keydown",e),n.removeEventListener("keyup",t)}}),[o.document,d]),(0,u.useEffect)((()=>{if(z&&c!==h){const e=z.scale(c/h);P(e),f(c),S===gi.CREATING&&(_(gi.CREATED),r?.(fi(e,c)))}}),[h,c,z]);const M=(0,u.useCallback)(((e,t,n,r)=>{P((e=>{(0,l.V1)(e);let n=new k.rw({left:e.left,top:e.top,width:T.current?.width+r.width,height:T.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}))}),[P,t.pageSize,c,g]);function N(e){const t=e.composedPath().find((e=>e.classList?.contains("PSPDFKit-Page")));return t?parseInt(t.getAttribute("data-page-index"),10):null}const O=(0,yr.Kw)((e=>{"touches"in e&&2===e.touches.length&&b(!0);const n=N(e);if(t.pageIndex!==n)return;e.stopImmediatePropagation(),(0,l.V1)(m.current);const r=m.current.getBoundingClientRect(),{clientY:o,clientX:i}=mi(e);v(r),x(new k.bR({x:i-r.left,y:o-r.top}))}));(0,u.useEffect)((()=>{a&&O(a)}),[a,O]);const j=(0,yr.Kw)((e=>{if(!w||S===gi.CREATED)return;const{clientX:t,clientY:n}=mi(e);if(w.x!==t||w.y!==t){e.stopImmediatePropagation(),E(!0);const r=t-g.left,o=n-g.top,a=new k.rw({left:Math.max(0,Math.min(r,w.x)),top:Math.max(0,Math.min(o,w.y)),width:r<w.x?Math.min(w.x,w.x-r):Math.min(r-w.x,g.width-w.x),height:o<w.y?Math.min(w.y,w.y-o):Math.min(o-w.y,g.height-w.y)});P(a),_(gi.CREATING),S===gi.NOT_CREATED&&i?.(fi(a,c))}})),R=(0,yr.Kw)((e=>{if(S===gi.CREATED)return;b(!1);const n=N(e);t.pageIndex===n&&e.stopImmediatePropagation(),E(!1),x(null),z?(r?.(fi(z,c)),_(gi.CREATED)):_(gi.NOT_CREATED)}));(0,u.useEffect)((()=>{const e=d||o.document;return e.addEventListener("pointerdown",O),e.addEventListener("pointermove",j),e.addEventListener("pointerup",R,{capture:!0}),e.addEventListener("touchstart",O),e.addEventListener("touchmove",j),e.addEventListener("touchend",R),()=>{e.removeEventListener("pointerdown",O),e.removeEventListener("pointermove",j),e.removeEventListener("pointerup",R,{capture:!0}),e.removeEventListener("touchstart",O),e.removeEventListener("touchmove",j),e.removeEventListener("touchend",R)}}),[O,j,R]);const F=z&&{x:z.left,y:z.top,width:z.width,height:z.height};return(0,ee.jsx)("div",{ref:m,className:di().wrapper,onPointerUp:e=>e.stopPropagation(),role:"application",children:S!==gi.NOT_CREATED&&(0,ee.jsxs)(ee.Fragment,{children:[S===gi.CREATED&&pi(z),(0,ee.jsx)(Ko(),{position:F,onStart:()=>{(0,l.V1)(z),i?.(fi(z,c))},onDrag:(e,t)=>{if(y)return!1;P((e=>((0,l.V1)(e),e.merge({left:t.x,top:t.y}))))},onStop:()=>{(0,l.V1)(z),r?.(fi(z,c))},defaultPosition:F,cancel:`.${di().handles}`,bounds:"parent",children:(0,ee.jsx)(ci,{size:z?{width:z.width,height:z.height}:void 0,onResizeStart:()=>{E(!0),(0,l.V1)(m.current&&z),i?.(fi(z,c)),v(m.current.getBoundingClientRect()),T.current=z},onResize:M,onResizeStop:()=>{E(!1),(0,l.V1)(z),r?.(fi(z,c)),T.current=null},handleClasses:hi,bounds:"parent",boundsByDirection:!0,lockAspectRatio:A,children:(0,ee.jsx)("div",{style:z?{width:z.width,height:z.height}:void 0,className:p()(di().cropBox,"PSPDFKit-Document-Crop-Box")})})})]})})};function yi(e){const{dispatch:t,linkAnnotation:n,pageIndex:r}=e;u.useEffect((()=>()=>{t((0,Pt.xg)())}),[]);const o=p()({[nn().canvas]:!0});return(0,ee.jsx)("div",{className:o,children:(0,ee.jsx)(vi,{viewportState:e.viewportState,page:e.page,onAreaChangeComplete:function(e){const o=n.set("pageIndex",r).set("boundingBox",e);window.setTimeout((()=>{(0,s.vA)((()=>{t((0,at.g_)(o)),t((0,Pt.E7)()),t((0,ve.TT)((0,a.NZ)([o.id]),null)),t((0,at.li)(o.id)),t((0,Pt.xg)())}))}),10)},frameWindow:e.window})})}var bi=n(33806),wi=n.n(bi);const xi=e=>{let{viewportState:t,onAreaChangeComplete:n,frameWindow:r,onAreaChangeStart:o,initialDraggingEvent:i}=e;const a=(0,s.wA)(),{zoomLevel:c}=t,d=(0,u.useRef)(null),[h,f]=(0,u.useState)({left:0,top:0,height:0,width:0}),[m,g]=(0,u.useState)(!1),[v,y]=(0,u.useState)(null),[b,w]=(0,u.useState)(gi.NOT_CREATED),[x,S]=(0,u.useState)(void 0),_=(0,yr.Kw)((e=>{"touches"in e&&2===e.touches.length&&g(!0),a((0,ve.Vc)(!0)),e.stopImmediatePropagation(),(0,l.V1)(d.current);const t=d.current.getBoundingClientRect(),{clientY:n,clientX:r}=mi(e);f(t),y(new k.bR({x:r-t.left,y:n-t.top}))}));(0,u.useEffect)((()=>{i&&_(i)}),[i,_]);const C=(0,yr.Kw)((e=>{if(!v||b===gi.CREATED)return;const{clientX:t,clientY:n}=mi(e);if(v.x!==t||v.y!==t){e.stopImmediatePropagation();const r=t-h.left,i=n-h.top,a=new k.rw({left:Math.max(0,Math.min(r,v.x)),top:Math.max(0,Math.min(i,v.y)),width:r<v.x?Math.min(v.x,v.x-r):Math.min(r-v.x,h.width-v.x),height:i<v.y?Math.min(v.y,v.y-i):Math.min(i-v.y,h.height-v.y)});S(a),w(gi.CREATING),b===gi.NOT_CREATED&&o?.(fi(a,c))}})),E=(0,yr.aq)(),z=(0,yr.Kw)((()=>{b!==gi.CREATED&&(g(!1),a((0,ve.Vc)(!1)),y(null),x&&E()?(n?.(fi(x,c)),w(gi.CREATED)):w(gi.NOT_CREATED))}));(0,u.useEffect)((()=>(r.document.addEventListener("pointerdown",_),r.document.addEventListener("pointermove",C),r.document.addEventListener("pointerup",z,{capture:!0}),r.document.addEventListener("touchstart",_),r.document.addEventListener("touchmove",C),r.document.addEventListener("touchend",z,{capture:!0}),()=>{r.document.removeEventListener("pointerdown",_),r.document.removeEventListener("pointermove",C),r.document.removeEventListener("pointerup",z,{capture:!0}),r.document.removeEventListener("touchstart",_),r.document.removeEventListener("touchmove",C),r.document.removeEventListener("touchend",z,{capture:!0})})),[_,C,z]);const P=x&&{x:x.left,y:x.top,width:x.width,height:x.height};return(0,ee.jsx)("div",{ref:d,className:wi().wrapper,onPointerUp:e=>e.stopPropagation(),role:"application",children:b!==gi.NOT_CREATED&&(0,ee.jsx)(ee.Fragment,{children:(0,ee.jsx)(Ko(),{position:P,onStart:()=>{(0,l.V1)(x),o?.(fi(x,c))},onDrag:(e,t)=>{if(m)return!1;S((e=>((0,l.V1)(e),e.merge({left:t.x,top:t.y}))))},onStop:()=>{(0,l.V1)(x),n?.(fi(x,c))},defaultPosition:P,bounds:"parent",children:(0,ee.jsx)("div",{style:x?{width:x.width,height:x.height}:void 0,className:p()(wi().selectionBox,"PSPDFKit-Multiple-Selection-Box")})})})})};function Si(e){const t=(0,s.wA)(),n=(0,s.d4)((e=>e.annotations)),r=(0,s.d4)((e=>e.selectedAnnotationIds)),{pageIndex:o,viewportState:i,window:l,initialDraggingEvent:c,multiAnnotationsUsingShortcut:u}=e;return fe.LZ&&r.size>0?null:(0,ee.jsx)("div",{className:nn().canvas,children:(0,ee.jsx)(xi,{viewportState:i,onAreaChangeComplete:function(e){const r=n.filter((e=>e.pageIndex===o)).toArray(),i=[];r.forEach((t=>{let[n,r]=t;const o=r.boundingBox;e.isRectOverlapping(o)&&i.push(n)})),i.length?l.setTimeout((()=>{(0,s.vA)((()=>{fe.LZ||t((0,ve.J9)()),t((0,ve.TT)((0,a.NZ)(i),null))}))}),5):t((0,Pt.Vh)())},frameWindow:l,initialDraggingEvent:u?c:void 0})})}var _i=n(67748);const Ci=function(e){const{annotation:t,zoomLevel:n,isDisabled:r,isFocused:o,isSelected:i,onFocus:a,onBlur:l}=e,c=(0,he.tz)(),{formatMessage:d}=c,p=(0,s.wA)(),h=u.useCallback((e=>{if(t instanceof ie.dh&&t.locked){if(t.lockedContents)return;setTimeout((()=>{p((0,ve._G)(t.id))}),0)}else t instanceof ie.s9||t instanceof ie.dG?p((0,ve.pw)(t,e,{selectedAnnotationShouldDrag:null,stopPropagation:!0,ignoreReadOnly:!0})):t instanceof ie.tr&&t.isCommentThreadRoot?p((0,ve.pw)(t,e)):p((0,ve.pw)(t,e,{selectedAnnotationShouldDrag:null,stopPropagation:!0}))}),[p,t]),f=u.useCallback((e=>{(0,R.s_)(t)&&(a?.(t,e),(0,R.oH)(t,e)&&p((0,ve.wL)(t.id)))}),[p,a,t]),m=u.useCallback((e=>{l?.(t,e),(0,R.oH)(t,e)&&p((0,ve.xP)(t.id))}),[p,l,t]);let g="";t instanceof ie.dG&&(g=`CommentThread-${t.id}`);const v=u.useRef(null),y=function(e,t){return t&&(e instanceof ie.xY||e instanceof ie.Eo||e instanceof ie.pP||e instanceof ie.dh||e instanceof ie.tr)}(t,o);u.useEffect((()=>{y&&v.current?.focus()}),[y]);const b=(0,yr.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 ie.tr&&!w&&i?v.current?.focus():w&&!i&&r&&m((0,Zn.BL)("blur")))}),[t,m,i,r,w,x]);const S=(0,R.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",...Ei(t,o)},C=function(e,t){if(e instanceof ie.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 ie.s9)return e.text.value??void 0;if(e instanceof ie.xY)return(0,_i.AO)({annotation:e,intl:t})??void 0;return}(t,c);return(0,ee.jsx)(pe.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(be.A.annotation)}: ${d((0,R.e3)(t))}. ${C??""}`,tabIndex:0,className:"PSPDFKit-Annotation-Keyboard-Navigable",style:_})};function Ei(e,t){return e instanceof ie.xY||e instanceof ie.dh?t?{outline:R.wp,outlineOffset:"10px"}:{}:(e instanceof ie.pP||e instanceof ie.tr)&&t?{outline:R.wp}:{}}const ki=[F.O.SHAPE_LINE,F.O.SHAPE_RECTANGLE,F.O.SHAPE_ELLIPSE,F.O.SHAPE_POLYLINE,F.O.SHAPE_POLYGON],zi=[F.O.DISTANCE,F.O.PERIMETER,F.O.RECTANGLE_AREA,F.O.ELLIPSE_AREA,F.O.POLYGON_AREA];var Pi=n(46952),Ai=n(35224);const Di=new Z.A,Ti={[V.YHd]:e=>e.set("debugMode",!0),[V.fAM]:e=>e.set("hasFetchedInitialRecordsFromInstant",!0),[V.ovX]:(e,t)=>{let{enabled:n}=t;return e.set("areClipboardActionsEnabled",n)},[V.bUk]:(e,t)=>{let{group:n}=t;return e.set("group",n)},[V.sWq]:e=>e.set("isDebugConsoleVisible",!0),[V.TY$]:e=>e.set("isDebugConsoleVisible",!1),[V.m$]:(e,t)=>{let{preset:n="text-highlighter"}=t;const r=new k.ax((0,R.mN)(e.set("currentItemPreset",n)));return e.withMutations((e=>{e.set("currentItemPreset",n),e.set("interactionMode",F.O.TEXT_HIGHLIGHTER),e.set("selectedAnnotationIds",(0,a.NZ)([r.id])),e.set("selectedAnnotationMode",B.Q.EDITING),n&&!(n in G.rM)&&e.setIn(["annotationPresetIds",r.id],n),e.setIn(["annotations",r.id],r)}))},[V.fmV]:e=>e.withMutations((t=>{t.set("currentItemPreset",null),t.set("interactionMode",null),e.interactionMode===F.O.TEXT_HIGHLIGHTER&&(0,R.Nc)(t),t.set("selectedAnnotationIds",(0,a.NZ)())})),[V.coD]:(e,t)=>{let{preset:n="redaction"}=t;const r=new W.A((0,R.mN)(e.set("currentItemPreset",n)));return e.withMutations((e=>{e.set("currentItemPreset",n),e.set("interactionMode",F.O.REDACT_TEXT_HIGHLIGHTER),e.set("selectedAnnotationIds",(0,a.NZ)([r.id])),e.set("selectedAnnotationMode",B.Q.EDITING),n&&!(n in G.rM)&&e.setIn(["annotationPresetIds",r.id],n),e.setIn(["annotations",r.id],r)}))},[V.LvH]:e=>e.withMutations((t=>{t.set("currentItemPreset",null),t.set("interactionMode",null),e.interactionMode===F.O.REDACT_TEXT_HIGHLIGHTER&&(0,R.Nc)(t),t.set("selectedAnnotationIds",(0,a.NZ)())})),[V.Ep5]:(e,t)=>{let{editor:n}=t;return e.set("richTextEditorRef",n)},[V.dqA]:(e,t)=>{let{preset:n}=t;return e.withMutations((e=>{e.set("interactionMode",F.O.MEASUREMENT),void 0!==n&&e.set("currentItemPreset",n)}))},[V.qvB]:e=>e.set("interactionMode",null),[V.nXN]:(e,t)=>{let{preset:n}=t;const r=new k.Eo((0,R.mN)(e));return e.withMutations((t=>{t.set("interactionMode",F.O.INK),t.set("interactionsDisabled",!0),t.set("selectedAnnotationIds",(0,a.NZ)([r.id])),t.set("selectedAnnotationMode",B.Q.EDITING),void 0!==n&&t.set("currentItemPreset",n);const o=void 0!==n?n:e.currentItemPreset;o&&!G.rM[o]&&t.setIn(["annotationPresetIds",r.id],o),t.setIn(["annotations",r.id],r)}))},[V.oiE]:e=>e.set("interactionMode",null),[V.a6C]:e=>e.withMutations((e=>{e.set("interactionMode",F.O.INK_ERASER),e.set("selectedAnnotationIds",(0,a.NZ)()),e.set("interactionsDisabled",!0)})),[V.TV2]:e=>e.withMutations((e=>{e.set("interactionMode",null),e.set("interactionsDisabled",!1)})),[V.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 k.Eo({isSignature:!0,pageIndex:r})]),reason:J.x.SELECT_START};return e.eventEmitter.emit("annotations.willChange",i),e.withMutations((e=>{e.set("interactionMode",F.O.SIGNATURE),e.setIn(["signatureState","signatureRect"],n),e.setIn(["signatureState","signaturePageIndex"],r),e.setIn(["signatureState","formFieldName"],o)}))},[V.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)})),[V.h0k]:e=>{const t={annotations:(0,a.B8)([new k.xY({pageIndex:e.viewportState.currentPageIndex})]),reason:J.x.SELECT_START};return e.eventEmitter.emit("annotations.willChange",t),e.withMutations((e=>{e.set("interactionMode",F.O.STAMP_PICKER),e.set("currentItemPreset",null)}))},[V.Cj7]:e=>e.withMutations((e=>{e.set("interactionMode",F.O.STAMP_CUSTOM),e.set("currentItemPreset",null)})),[V.How]:e=>e.withMutations((e=>{e.set("interactionMode",null)})),[V.GJD]:(e,t)=>{const n=zi.includes(t.shapeInteractionMode),r=(0,R.mN)(e),{activeMeasurementScale:o,isCalibratingScale:i}=e;n&&(r.measurementScale=o?.scale?new Ai.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=k.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",B.Q.EDITING),void 0!==t.preset&&n.set("currentItemPreset",t.preset);const r=void 0!==t.preset?t.preset:e.currentItemPreset;r&&!G.rM[r]&&n.setIn(["annotationPresetIds",s.id],r),n.setIn(["annotations",s.id],s)}))},[V.tSE]:e=>e.withMutations((e=>{e.set("interactionMode",null)})),[V.SI]:(e,t)=>{let{preset:n="redaction"}=t;const r=new W.A((0,R.mN)(e.set("currentItemPreset",n)));return e.withMutations((e=>{e.set("currentItemPreset",n),e.set("interactionMode",F.O.REDACT_SHAPE_RECTANGLE),e.set("interactionsDisabled",!0),e.set("selectedAnnotationIds",(0,a.NZ)([r.id])),e.set("selectedAnnotationMode",B.Q.EDITING),n&&!(n in G.rM)&&e.setIn(["annotationPresetIds",r.id],n),e.setIn(["annotations",r.id],r)}))},[V.bjH]:e=>e.withMutations((t=>{t.set("interactionMode",null),t.set("currentItemPreset",null),e.interactionMode===F.O.REDACT_SHAPE_RECTANGLE&&(0,R.Nc)(t),t.set("selectedAnnotationIds",(0,a.NZ)())})),[V.Vrp]:(e,t)=>{const{annotation:n,preset:r}=t,o=n||new k.s9((0,R.mN)(e));return e.withMutations((t=>{t.set("interactionMode",F.O.NOTE),t.set("selectedAnnotationIds",(0,a.NZ)([o.id])),t.set("selectedAnnotationMode",B.Q.EDITING),void 0!==r&&t.set("currentItemPreset",r);const n=void 0!==r?r:e.currentItemPreset;n&&!G.rM[n]&&t.setIn(["annotationPresetIds",o.id],n),t.setIn(["annotations",o.id],o)}))},[V.SB]:e=>e.withMutations((e=>{e.set("interactionMode",null)})),[V.DIz]:(e,t)=>{const n=t.annotation?t.annotation:new k.dG((0,R.mN)(e));return e.withMutations((e=>{e.set("selectedAnnotationIds",(0,a.NZ)([n.id])),e.set("selectedAnnotationMode",B.Q.EDITING),e.setIn(["annotations",n.id],n),e.set("interactionMode",F.O.COMMENT_MARKER),e.set("currentItemPreset",null)}))},[V.Ajq]:e=>e.set("interactionMode",null),[V.iZ4]:(e,t)=>{const{annotation:n,preset:r}=t;let i=n;if(!i&&(i=new k.dh((0,R.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?F.O.CALLOUT:F.O.TEXT),void 0!==r&&n.set("currentItemPreset",r);const o=void 0!==r?r:e.currentItemPreset;o&&!G.rM[o]&&n.setIn(["annotationPresetIds",s],o),n.setIn(["annotations",s],i),n.set("selectedAnnotationIds",(0,a.NZ)([s])),n.set("selectedAnnotationMode",B.Q.EDITING)}))},[V.DSK]:e=>e.withMutations((e=>{e.set("interactionMode",null)})),[V.vjS]:e=>e.withMutations((e=>{e.set("interactionMode",F.O.DOCUMENT_CROP),e.set("interactionsDisabled",!0),e.set("currentItemPreset",null)})),[V.qDC]:e=>e.withMutations((e=>{e.set("interactionMode",null),e.set("interactionsDisabled",!1)})),[V.uby]:e=>e.set("interactionsDisabled",!1),[V.r9i]:e=>e.set("interactionsDisabled",!0),[V.mOc]:e=>e.set("showToolbar",!0),[V.bD_]:e=>e.set("showToolbar",!1),[V.Ot4]:e=>e.set("enableAnnotationToolbar",!0),[V.N6A]:e=>e.set("enableAnnotationToolbar",!1),[V.iry]:(e,t)=>e.set("clientsChangeCallback",t.callback),[V.K6V]:(e,t)=>e.set("transformClientToPage",t.transformClientToPage),[V.SuH]:(e,t)=>{const n=t.width>0?Math.abs(t.width-e.scrollbarOffset):-1*e.scrollbarOffset,r=(0,q.xd)(e.viewportState,e.viewportState.viewportRect,!1,n);return e.merge({viewportState:r,scrollbarOffset:t.width})},[V.ENJ]:(e,t)=>{let{layoutMode:n}=t;return e.update("viewportState",(e=>(0,q.A8)(e,n)))},[V.Jgj]:(e,t)=>{let{scrollMode:n}=t;return e.update("viewportState",(e=>(0,q.r7)(e,n)))},[V.cmb]:(e,t)=>{let{scrollElement:n}=t;return e.set("scrollElement",n)},[V.pmk]:(e,t)=>{let{spreadSpacing:n}=t;return e.set("viewportState",(0,q.tE)(e.viewportState,n))},[V.hIA]:(e,t)=>{let{pageSpacing:n}=t;return e.set("viewportState",(0,q.xw)(e.viewportState,n))},[V.Xt9]:(e,t)=>{let{keepFirstSpreadAsSinglePage:n}=t;return e.set("viewportState",(0,q.nx)(e.viewportState,n))},[V.SA4]:(e,t)=>{let{viewportPadding:n}=t;return e.set("viewportState",(0,q.gK)(e.viewportState,n))},[V.GFn]:e=>e.set("printingEnabled",!0),[V.N00]:e=>e.set("printingEnabled",!1),[V.LPm]:e=>e.set("exportEnabled",!0),[V.sMs]:e=>e.set("exportEnabled",!1),[V.av_]:(e,t)=>{let{readOnlyEnabled:n}=t;return e.set("readOnlyEnabled",n)},[V.P5p]:e=>e.set("showAnnotations",!0),[V.QVN]:e=>e.set("showAnnotations",!1),[V.l58]:e=>e.set("showComments",!0),[V.oFF]:e=>e.set("showComments",!1),[V.CD4]:e=>e.set("showAnnotationNotes",!0),[V.$hc]:e=>e.set("showAnnotationNotes",!1),[V.H_3]:e=>((0,l.V1)(!e.backendPermissions.readOnly,"Can not disable read only mode."),e.set("readOnlyEnabled",Q.g.NO)),[V.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(X.Y.FORMS)||(e=e.set("formsEnabled",!1)),(0,mn.UX)(n)||n.includes(X.Y.ELECTRONIC_SIGNATURES)||(e=(e=e.set("readOnlyEnabled",Q.g.LICENSE_RESTRICTED)).setIn(["backendPermissions","readOnly"],!0)),e.set("features",n)},[V.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)},[V.SlF]:(e,t)=>{let{mode:n}=t;return e.set("sidebarMode",n)},[V.iGi]:(e,t)=>{let{placement:n}=t;return e.set("sidebarPlacement",n)},[V.FKq]:(e,t)=>{let{sidebarOptions:n}=t;return e.set("sidebarOptions",n)},[V.TBQ]:(e,t)=>{let{showSignatureValidationStatus:n}=t;return e.set("showSignatureValidationStatus",n)},[V.h6f]:(e,t)=>{let{locale:n}=t;return e.set("locale",n)},[V.evn]:(e,t)=>{let{annotationCreatorName:n,immutable:r}=t;return e.set("annotationCreatorName",n).set("annotationCreatorNameReadOnly",r)},[V.MC9]:(e,t)=>{let{editableAnnotationTypes:n}=t;return e.set("editableAnnotationTypes",n).set("isEditableAnnotation",null)},[V.lp_]:(e,t)=>{let{isEditableAnnotation:n}=t;return e.set("isEditableAnnotation",n).set("editableAnnotationTypes",(0,a.NZ)(Y.A))},[V.mb6]:(e,t)=>{let{editableAnnotationTypes:n,isEditableAnnotation:r}=t;return e.set("isEditableAnnotation",r).set("editableAnnotationTypes",n)},[V.dnz]:(e,t)=>{let{isEditableComment:n}=t;return e.set("isEditableComment",n)},[V.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 k.sb))))}))},[V.k5x]:e=>e.set("interactionMode",F.O.DOCUMENT_EDITOR),[V.LPR]:(e,t)=>{let{measurementSnapping:n}=t;return e.set("measurementSnapping",n)},[V.ZN_]:(e,t)=>{let{measurementPrecision:n}=t;return e.set("measurementPrecision",n)},[V.zRM]:(e,t)=>{let{scale:n}=t;return e.set("measurementScale",n)},[V.R_L]:e=>e.set("interactionMode",null),[V.ZSp]:e=>e.set("interactionMode",F.O.MARQUEE_ZOOM),[V.q$5]:(e,t)=>{let{interactionMode:n}=t;return e.set("interactionMode",n)},[V.rw4]:e=>e.set("interactionMode",null),[V.C1Z]:e=>e.set("interactionMode",null),[V.vjD]:(e,t)=>e.set("customRenderers",t.customRenderers),[V.Td6]:e=>e.withMutations((e=>{e.set("isSigning",!0),e.set("interactionsDisabled",!0)})),[V.Gsj]:e=>e.withMutations((e=>{e.set("isSigning",!1),e.set("interactionsDisabled",!1)})),[V.JMw]:e=>e.withMutations((e=>{e.set("isApplyingRedactions",!0),e.set("interactionsDisabled",!0)})),[V.ozB]:e=>e.withMutations((e=>{e.set("isApplyingRedactions",!1),e.set("interactionsDisabled",!1)})),[V.QlR]:(e,t)=>{let{previewRedactionMode:n}=t;return e.set("previewRedactionMode",n)},[V.dBd]:(e,t)=>e.set("a11yStatusMessage",t.a11yStatusMessage),[V.tJg]:(e,t)=>{let{lastToolbarActionUsedKeyboard:n}=t;return e.set("lastToolbarActionUsedKeyboard",n)},[V.h0V]:(e,t)=>{let{documentComparisonState:n}=t;return e.set("documentComparisonState",n?{...e.documentComparisonState,...n}:null)},[V.tEU]:e=>e.set("canScrollWhileDrawing",!0),[V.AcT]:e=>e.set("canScrollWhileDrawing",!1),[V.loZ]:e=>e.set("keepSelectedTool",!0),[V.s_A]:e=>e.set("keepSelectedTool",!1),[V.kyl]:(e,t)=>{const n=e.viewportState.set("disablePointSnapping",t.disablePointSnapping);return e.set("viewportState",n)},[V.JFC]:(e,t)=>{let{instance:n}=t;return e.set("instance",n)},[V.Q5I]:(e,t)=>{let{customUIStore:n}=t;return e.set("customUIStore",n)},[V.ZTP]:e=>{const t=new k.UL((0,R.mN)(e)),n="link";return e.withMutations((e=>{e.set("linkAnnotationMode",!0),e.set("interactionMode",F.O.LINK),e.set("selectedAnnotationIds",(0,a.NZ)([t.id])),e.set("selectedAnnotationMode",B.Q.EDITING),e.setIn(["annotations",t.id],t),e.set("currentItemPreset",n);const r=n;!G.rM.link&&e.setIn(["annotationPresetIds",t.id],r)}))},[V.BmW]:e=>e.withMutations((e=>{e.set("linkAnnotationMode",!1)})),[V.CdF]:(e,t)=>{let{multiAnnotationsUsingShortcut:n}=t;return e.withMutations((t=>{e.isMultiSelectionEnabled&&(t.set("interactionMode",F.O.MULTI_ANNOTATIONS_SELECTION),t.set("selectedAnnotationIds",(0,a.NZ)()),t.set("selectedAnnotationMode",B.Q.SELECTED),t.set("multiAnnotationsUsingShortcut",n))}))},[V.nN5]:e=>e.withMutations((e=>{e.set("interactionMode",null),e.set("multiAnnotationsUsingShortcut",null)})),[V.TVi]:e=>e.set("interactionMode",F.O.MEASUREMENT_SETTINGS),[V.IMM]:e=>e.set("interactionMode",null),[V.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,Pi.A)();e.set("annotationsGroups",i.set(s,{groupKey:s,annotationsIds:(0,a.NZ)(n)})),e.set("selectedGroupId",s)}))},[V.Rql]:(e,t)=>{let{groupId:n}=t;return e.set("selectedGroupId",n)},[V.Xet]:(e,t)=>{let{pullToRefreshNewState:n}=t;return e.set("disablePullToRefresh",n)},[V.yT6]:(e,t)=>{let{groupId:n}=t;return e.withMutations((e=>{const{annotationsGroups:t}=e;e.set("annotationsGroups",t.delete(n)),e.set("selectedGroupId",null)}))},[V.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))}))},[V.SwZ]:(e,t)=>{let{customFontsReadableNames:n}=t;return e.set("customFontsReadableNames",n)},[V.VWe]:(e,t)=>{const n=e.viewportState.set("enableAlwaysScrollToZoom",t.enableAlwaysScrollToZoom);return e.set("viewportState",n)},[V.Sb4]:(e,t)=>{const n=e.viewportState.set("forceRenderWidgetsInAnnotationsOrder",t.forceRenderWidgetsInAnnotationsOrder);return e.set("viewportState",n)},[V._z4]:(e,t)=>e.set("evaluation",t.evaluation),[V.hEI]:(e,t)=>{const n=e.viewportState.set("prerenderedPageSpreads",t.prerenderedPageSpreads);return e.set("viewportState",n)},[V.Z$9]:(e,t)=>e.setIn(["aiDocumentAssistant","configuration"],t.configuration),[V.BV]:(e,t)=>e.setIn(["aiDocumentAssistant","show"],t.showAIDocumentAssistant),[V.SR7]:(e,t)=>t.currentTextSelection&&t.currentTextSelection.textRange?e.setIn(["aiDocumentAssistant","additionalContext"],{text:(0,xo.q4)(e,t.currentTextSelection),pageIndex:t.currentTextSelection.startPageIndex,boundingBox:(0,xo.Pm)(e,t.currentTextSelection.textRange,!0)}):e.setIn(["aiDocumentAssistant","additionalContext"],null),[V.uW3]:(e,t)=>e.set("isServerModeDownloadingWASM",t.isServerModeDownloadingWASM),[V.zD7]:(e,t)=>e.set("isServerModeDownloadingDocument",t.isServerModeDownloadingDocument)};function Ii(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Di,t=arguments.length>1?arguments[1]:void 0;const n=Ti[t.type];return n?n(e,t):e}var Mi=n(92314);const Ni=new k.Uw,Oi={[V.Ztu]:(e,t)=>e.set("connectionState",new k.KN({name:Mi.D.CONNECTING,reason:t.reason,progress:t.progress})),[V.fnC]:e=>e.set("connectionState",new k.KN({name:Mi.D.DOWNLOADING_DOCUMENT,reason:"Downloading...",progress:null})).set("wasLinearized",!0),[V._YG]:e=>e.set("connectionState",new k.KN({name:Mi.D.CONNECTED})),[V.VhV]:(e,t)=>e.set("connectionState",new k.KN({name:Mi.D.CONNECTION_FAILED,reason:t.reason})),[V.rJq]:(e,t)=>e.set("annotationManager",t.annotationManager),[V.mQT]:(e,t)=>e.set("bookmarkManager",t.bookmarkManager),[V.re3]:(e,t)=>e.set("formFieldValueManager",t.formFieldValueManager),[V.fjq]:(e,t)=>e.set("formFieldManager",t.formFieldManager),[V.$1_]:(e,t)=>e.set("commentManager",t.commentManager),[V.eko]:(e,t)=>e.set("changeManager",t.changeManager),[V.PMu]:(e,t)=>e.set("connectionState",new k.KN({name:Mi.D.PASSWORD_REQUIRED})).set("resolvePassword",t.resolvePassword),[V.njw]:e=>e.set("isUnlockedViaModal",!0).set("resolvePassword",null),[V.ErL]:(e,t)=>e.set("hasPassword",t.hasPassword),[V.zvJ]:(e,t)=>e.set("allowedTileScales",t.allowedTileScales)};function ji(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ni,t=arguments.length>1?arguments[1]:void 0;const n=Oi[t.type];return n?n(e,t):e}const Ri=new k.Uw,Fi={[V.Y8N]:(e,t)=>{const{item:n}=t;return(0,me.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"],(e=>e.add(n.id))).setIn(["customOverlayItems",n.id],n)}))},[V.UvZ]:(e,t)=>{const n=e.customOverlayItems.get(t.id);return(0,me.V)(n,"CustomOverlayItem not found"),e.withMutations((e=>{e.deleteIn(["pages",n.pageIndex,"customOverlayItemIds",n.id]).deleteIn(["customOverlayItems",n.id])}))}};function Bi(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ri,t=arguments.length>1?arguments[1]:void 0;const n=Fi[t.type];return n?n(e,t):e}const Li=new k.Uw,Vi={[V.wY4]:(e,t)=>e.set("digitalSignatures",t.digitalSignatures)};function Ki(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Li,t=arguments.length>1?arguments[1]:void 0;const n=Vi[t.type];return n?n(e,t):e}function $i(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?$i(o,i):void 0}})).toJS()}function Hi(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&&Hi(t,a,s),t}),e)}const Ui=new Z.A,qi={[V.qOc]:(e,t)=>{let{outline:n}=t;return e.withMutations((e=>{e.setIn(["documentOutlineState","elements"],n),e.setIn(["documentOutlineState","expanded"],Hi(new Set,n,""))}))},[V.fPp]:(e,t)=>{let{newState:n}=t;return e.setIn(["documentOutlineState","expanded"],n)}};function Wi(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ui,t=arguments.length>1?arguments[1]:void 0;const n=qi[t.type];return n?n(e,t):e}var Gi=n(63573),Yi=n(17053),Zi=n(69979),Ji=n(96754);const Xi=new k.Uw,Qi={[V.ASR]:e=>{const{viewportState:t}=e,n=(0,Gi.NZ)(t,t.currentPageIndex),r=(0,Gi.og)(t),o=n>=r-1?r-1:n+1,i=(0,Gi.dD)(t,o)[0];return(0,l.V1)("number"==typeof i,"Can not find the next pageIndex."),e.withMutations((t=>{t.set("viewportState",(0,Yi.X_)(e.viewportState,i)),t.set("hoverAnnotationIds",(0,a.NZ)())}))},[V.wYS]:e=>{const{viewportState:t}=e,n=(0,Gi.NZ)(t,t.currentPageIndex),r=n<=0?0:n-1,o=(0,Gi.dD)(t,r)[0];return(0,l.V1)("number"==typeof o,"Can not find the next pageIndex."),e.withMutations((n=>{n.set("viewportState",(0,Yi.X_)(e.viewportState,o)),o!==t.currentPageIndex&&n.set("hoverAnnotationIds",(0,a.NZ)())}))},[V.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,Yi.X_)(e.viewportState,n)),n!==e.viewportState.currentPageIndex&&t.set("hoverAnnotationIds",(0,a.NZ)())}))},[V.TpQ]:(e,t)=>{const{scrollPosition:n,lastScrollUsingKeyboard:r=!1}=t;return e.set("viewportState",(0,Yi.ZA)(e.viewportState,n).set("lastScrollUsingKeyboard",r))},[V.e$c]:(e,t)=>{let{pageIndex:n,rect:r}=t;return e.set("viewportState",(0,Yi.YQ)(e.viewportState,n,r))},[V.yI7]:(e,t)=>{let{pageIndex:n,rect:r}=t;return e.set("viewportState",(0,Yi.kw)(e.viewportState,n,r))},[V.vSr]:(e,t)=>{let{viewportRect:n,isTriggeredByOrientationChange:r}=t;const o=k.rw.fromClientRect(e.rootElement?.getBoundingClientRect()),i=(0,q.xd)(e.viewportState,n,r,e.scrollbarOffset);return e.withMutations((e=>{e.set("containerRect",o),e.set("viewportState",i)}))},[V._XN]:(e,t)=>{let n=(0,Zi.Qp)(e.viewportState,t.zoomLevel);return t.scrollPosition&&(n=n.set("scrollPosition",t.scrollPosition)),e.set("viewportState",n)},[V.C7_]:(e,t)=>{const n=e.viewportState.set("zoomStep",t.zoomStep);return e.set("viewportState",n)},[V.o1d]:(e,t)=>e.set("viewportState",t.viewportState),[V.UrP]:e=>e.set("viewportState",(0,Zi.Qp)(e.viewportState,e.viewportState.zoomLevel*e.viewportState.zoomStep)),[V.hUH]:e=>e.set("viewportState",(0,Zi.Qp)(e.viewportState,e.viewportState.zoomLevel/e.viewportState.zoomStep)),[V.iU1]:e=>e.set("viewportState",(0,Zi.Qp)(e.viewportState,Ji.d.AUTO)),[V.XZE]:e=>e.set("viewportState",(0,Zi.Qp)(e.viewportState,Ji.d.FIT_TO_VIEWPORT)),[V.T7d]:e=>e.set("viewportState",(0,Zi.Qp)(e.viewportState,Ji.d.FIT_TO_WIDTH)),[V.UWX]:(e,t)=>{let{degCW:n}=t;return e.update("viewportState",(e=>(0,Oe.e$)(e,n)))},[V.Qti]:e=>e.set("interactionMode",F.O.PAN),[V.Z8]:e=>e.set("interactionMode",null),[V.lxe]:(e,t)=>{let{width:n}=t;return e.set("sidebarWidth",n)},[V.twv]:(e,t)=>{let{shouldDisable:n}=t;return e.set("scrollDisabled",n)}};function ea(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Xi,t=arguments.length>1?arguments[1]:void 0;const n=Qi[t.type];return n?n(e,t):e}var ta=n(46907),na=n(25028),ra=n(32784),oa=n(45408);function ia(e){return(0,l.V1)(6===e.length,"Tried to deserialize matrix that does not have 6 entries"),new E.XF({a:e[0],b:e[1],c:e[2],d:e[3],e:e[4],f:e[5]})}var aa=n(5293),sa=n(1886),la=n.n(sa),ca=n(84318),ua=n(55236);const da=new k.Uw,pa={[V.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 k.or({width:t.width,height:t.height}),s=n.get(t.pageIndex)||(0,Pi.A)(),l=r.get(t.pageIndex)||null,c=o.get(t.pageIndex),u=e.pages.get(t.pageIndex)?.annotationIds||(0,a.CD)();return new k.YW({...t,matrix:ia(t.matrix),reverseMatrix:ia(t.reverseMatrix),untransformedRect:(0,aa.a)(t.untransformedBBox),transformedRect:(0,aa.a)(t.transformedBBox),rawPdfBoxes:t.rawPdfBoxes,pageKey:s,pageSize:i,isPageSizeReal:!0,annotationIds:u,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)}))},[V.uO1]:(e,t)=>{const n=e.pages.get(t.pageIndex),r=new k.or({width:t.pageInfo.width,height:t.pageInfo.height}),o=new k.YW({...t.pageInfo,pageIndex:t.pageIndex,matrix:ia(t.pageInfo.matrix),reverseMatrix:ia(t.pageInfo.reverseMatrix),untransformedRect:(0,aa.a)(t.pageInfo.untransformedBBox),transformedRect:(0,aa.a)(t.pageInfo.transformedBBox),rawPdfBoxes:t.pageInfo.rawPdfBoxes,pageKey:n?.pageKey||(0,Pi.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)}))},[V.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 k.or({width:n.width,height:n.height});return new k.YW({...n,pageIndex:n.pageIndex,matrix:ia(n.matrix),reverseMatrix:ia(n.reverseMatrix),untransformedRect:(0,aa.a)(n.untransformedBBox),transformedRect:(0,aa.a)(n.transformedBBox),rawPdfBoxes:n.rawPdfBoxes,pageKey:t.pageKeys?.get(n.pageIndex)||(0,Pi.A)(),pageSize:o,isPageSizeReal:!!e.arePageSizesLoaded,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 ta.A(Ye.JY.IGNORE_DOCUMENT_PERMISSIONS?void 0:t.payload.permissions)),i.currentPageIndex>=n.size&&(i=i.set("currentPageIndex",0)),i.zoomMode===Ji.d.CUSTOM){const e=(0,Zi.m0)(i),t=(0,Zi.m9)(i);(i.zoomLevel<e||i.zoomLevel>t)&&(i=i.set("zoomMode",Ji.d.AUTO))}if(i=i.zoomMode===Ji.d.CUSTOM?i.merge({zoomLevel:(0,Zi.eh)(i,i.zoomLevel)}):i.merge({zoomLevel:(0,Zi.eh)(i,i.zoomMode)}),i.scrollMode===na.V.PER_SPREAD&&(i=(0,q.r7)(i.set("scrollMode",na.V.CONTINUOUS),na.V.PER_SPREAD)),i.scrollMode===na.V.DISABLED&&(i=(0,q.r7)(i.set("scrollMode",na.V.CONTINUOUS),na.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",ua.e4).set("height",t.height-ua.e4)),i=i.set("viewportRect",t)}i=(0,Yi.X_)(i.set("currentPageIndex",0),i.currentPageIndex)}o.set("viewportState",i)}))},[V.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,ca.lg)((0,ca.IP)(t.hints));i&&(r={fontFamily:i},n[t.id]=i),o[t.id]={measurement:new Gn.a(e.frameWindow?.document,(0,a.B8)([(0,ra.O6)((0,mn.Xm)(e),t)]),r,la().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,me.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)},[V.dVR]:(e,t)=>{let{backendPermissions:n}=t;return e.withMutations((e=>{n.readOnly&&e.set("readOnlyEnabled",Q.g.VIA_BACKEND_PERMISSIONS),n.downloadingAllowed||(e.set("exportEnabled",!1),e.set("printingEnabled",!1)),e.set("backendPermissions",n)}))},[V.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 k.bU),e.set("comments",(0,a.T5)()),e.set("commentThreads",(0,a.T5)()),e.set("invalidAPStreams",(0,a.T5)()),e.set("searchState",new oa.A)})),[V.K2b]:(e,t)=>e.set("documentHandle",t.documentHandle).set("isDocumentHandleOutdated",!1),[V.VmY]:(e,t)=>e.set("isDocumentHandleOutdated",t.isDocumentHandleOutdated),[V.ulm]:(e,t)=>e.set("reuseState",t.state?new Z._(t.state):null),[V.LAB]:(e,t)=>e.withMutations((e=>{t.pageIndexes.forEach((t=>{e.setIn(["pages",t,"pageKey"],(0,Pi.A)())}))})),[V.Ps5]:(e,t)=>e.withMutations((e=>{t.pageKeysForPages.forEach((t=>{e.setIn(["pages",t.pageIndex,"pageKey"],t.pageKey)}))})),[V.k0y]:(e,t)=>e.set("OCGLayers",t.OCGLayers),[V._w]:(e,t)=>e.set("visibleOCGLayers",t.visibleLayerIds)};function ha(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:da,t=arguments.length>1?arguments[1]:void 0;const n=t.type===V.Uas,r=pa[n?V.TTm:t.type];return r?r(e,t):e}const fa=new Z.A,ma={[V.TPz]:e=>e.set("isPrinting",!0),[V.up7]:e=>e.set("isPrinting",!1),[V.dLL]:e=>e.set("isPrinting",!1),[V.Xnw]:(e,t)=>{let{currentPage:n}=t;return e.set("printLoadingIndicatorProgress",n)}};function ga(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:fa,t=arguments.length>1?arguments[1]:void 0;const n=ma[t.type];return n?n(e,t):e}function va(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,me.V)(a);const s=(0,Yi.YQ)(e.viewportState,a.pageIndex,k.rw.union(a?.rectsOnPage));return e.setIn(["searchState","focusedResultIndex"],i).set("viewportState",s)}const ya={[V.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),[V.v9$]:e=>va(e,1),[V.xWZ]:e=>va(e,-1),[V.vh9]:e=>e.set("interactionMode",F.O.SEARCH).setIn(["searchState","isFocused"],!0),[V.Msx]:e=>e.set("interactionMode",null).mergeIn(["searchState"],{isFocused:!1,term:"",results:(0,a.B8)(),focusedResultIndex:-1}),[V.O4b]:e=>e.setIn(["searchState","isFocused"],!0),[V.DTK]:e=>e.setIn(["searchState","isFocused"],!1),[V.oSb]:(e,t)=>{let{isLoading:n}=t;return e.setIn(["searchState","isLoading"],n)},[V.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,me.V)(t);const{pageIndex:r}=t,i=t.rectsOnPage.first();(0,me.V)(i);const{top:a,left:s}=i;o=n.findIndex((e=>{const t=e.rectsOnPage.first();return(0,me.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,me.V)(t),r=(0,Yi.YQ)(e.viewportState,t.pageIndex,k.rw.union(t.rectsOnPage))}return e.setIn(["searchState","results"],n).setIn(["searchState","focusedResultIndex"],o).set("viewportState",r)},[V.cG6]:(e,t)=>{let{state:n}=t;return e.set("searchState",n)},[V.WwK]:(e,t)=>{let{provider:n}=t;return e.set("searchProvider",n)}};function ba(e,t){const n=ya[t.type];return n?n(e,t):e}const wa=new k.Uw,xa={[V.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 k.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!==F.O.TEXT_HIGHLIGHTER&&e.interactionMode!==F.O.REDACT_TEXT_HIGHLIGHTER&&t.set("selectedAnnotationIds",(0,a.NZ)())}));return(0,mn.W3)(k.tr,e)?d:d.withMutations((e=>{e.set("inlineTextMarkupToolbar",t.inlineTextMarkupToolbar)}))},[V.pAl]:e=>e.delete("currentTextSelection"),[V.GnU]:e=>e.withMutations((t=>{t.delete("selectedAnnotationMode"),t.set("currentItemPreset",null),e.interactionMode===F.O.TEXT_HIGHLIGHTER&&(0,R.Nc)(t),t.set("selectedAnnotationIds",(0,a.NZ)()),t.set("widgetAnnotationToFocus",null),t.set("interactionMode",e.interactionMode===F.O.PAN||e.interactionMode===F.O.FORM_CREATOR?e.interactionMode:null),t.set("selectedTextOnEdit",!1),t.set("activeAnnotationNote",null),e.interactionMode===F.O.DISTANCE&&e.isCalibratingScale&&t.set("isCalibratingScale",!1)})),[V.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 k.s9||r.isCommentThreadRoot||!(0,mn.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"),fe.LZ&&1===r.size&&e.interactionMode===F.O.MULTI_ANNOTATIONS_SELECTION&&o.set("interactionMode",null)}))},[V.xjY]:e=>e.set("selectedAnnotationShouldDrag",null),[V.g1L]:e=>e.set("selectedTextOnEdit",!0),[V.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),[V.$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),[V.OQ1]:(e,t)=>{(0,l.V1)(e.annotations.has(t.id),"Annotation not found");const n=e.annotations.get(t.id);return e.readOnlyEnabled===Q.g.NO||n instanceof k.s9?e.updateIn(["hoverAnnotationIds"],(e=>e.has(t.id)?e:e.add(t.id))):e},[V.$kT]:(e,t)=>{(0,l.V1)(e.annotations.has(t.id),"Annotation not found");const n=e.annotations.get(t.id);return e.readOnlyEnabled===Q.g.NO||n instanceof k.s9?e.updateIn(["hoverAnnotationIds"],(e=>e.has(t.id)?e.delete(t.id):e)):e},[V.n_I]:(e,t)=>{const n=t.annotationNote;return e.set("hoverAnnotationNote",n)},[V.zgv]:(e,t)=>e.set("activeAnnotationNote",t.annotationNote),[V.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,R.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)}}})),[V.q6G]:(e,t)=>e.set("inlineTextSelectionToolbarItems",t.inlineTextSelectionToolbarItemsCallback)};function Sa(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:wa,t=arguments.length>1?arguments[1]:void 0;const n=xa[t.type];return n?n(e,t):e}const _a=new k.Uw,Ca={[V.oj5]:(e,t)=>{let{signature:n}=t;return e.withMutations((e=>{(0,R.lC)(e,n)}))},[V.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"],(e=>e.push(n)))},[V.NDB]:(e,t)=>{let{annotations:n}=t;return e.setIn(["signatureState","storedSignatures"],n)},[V.lyT]:(e,t)=>{let{annotation:n}=t;return e.updateIn(["signatureState","storedSignatures"],(e=>e.filter((e=>!e.equals(n)))))}};function Ea(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_a,t=arguments.length>1?arguments[1]:void 0;const n=Ca[t.type];return n?n(e,t):e}const ka=new k.Uw,za={[V.beK]:(e,t)=>e.set("toolbarItems",t.toolbarItems),[V.oLR]:(e,t)=>e.set("annotationToolbarItems",t.annotationToolbarItemsCallback),[V.Df2]:(e,t)=>e.set("annotationToolbarHeight",t.height)};function Pa(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ka,t=arguments.length>1?arguments[1]:void 0;const n=za[t.type];return n?n(e,t):e}const Aa=new k.Uw,Da={[V.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,Me.im)(n.fields),o=(0,Me.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"],(e=>e.add(n)))}))}))},[V.UDq]:(e,t)=>e.withMutations((e=>{t.formFields.forEach((t=>{e.setIn(["formFields",t.name],t)}))})),[V.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 k.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,Me.Fv)(r,e,n)}))})),[V.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,Me.Fv)(e.formFields.get(t.formField.name),e,r)}))},[V.ngf]:(e,t)=>e.withMutations((e=>{t.formFieldNames.forEach((t=>{e.formFields.get(t)&&e.deleteIn(["formFields",t])}))})),[V.yoE]:(e,t)=>e.withMutations((n=>{t.formFieldsIds.forEach((t=>{const r=(0,Me.aR)(e,t);r&&n.deleteIn(["formFields",r.name])}))})),[V.e1v]:(e,t)=>e.withMutations((n=>{(0,Me.zs)({state:e,mutableState:n,formFieldValues:t.formFieldValues,areFormFieldValuesNew:!0})})),[V.uoR]:(e,t)=>e.withMutations((n=>{(0,Me.zs)({state:e,mutableState:n,formFieldValues:t.formFieldValues,areFormFieldValuesNew:!1})})),[V.$uS]:(e,t)=>{let{formattedFormFieldValues:n}=t;return e.set("formattedFormFieldValues",e.formattedFormFieldValues.merge(n))},[V.J7t]:(e,t)=>{let{editingFormFieldValues:n}=t;return e.set("editingFormFieldValues",e.editingFormFieldValues.merge(n))},[V.TRW]:(e,t)=>e.withMutations((n=>{t.formFieldValuesIds.forEach((t=>{const r=t.split("/")[1],o=e.formFields.get(r);o&&(o instanceof k.uS?n.setIn(["formFields",r,"value"],""):o instanceof k.Qk?n.setIn(["formFields",r,"value"],null):o instanceof k.G_||o instanceof k.av?n.setIn(["formFields",r,"values"],(0,a.B8)()):o instanceof k.$h||o instanceof k.Vw||(0,l.V1)(!1,`DELETE_FORM_FIELD_VALUE not implemented for ${r}`))}))})),[V.XPU]:(e,t)=>{let{onWidgetCreationStartCallback:n}=t;return e.set("onWidgetAnnotationCreationStart",n)},[V.dwm]:(e,t)=>{let{annotationId:n}=t;return e.set("formDesignerUnsavedWidgetAnnotation",n)},[V.hNe]:(e,t)=>{let{annotation:n}=t;return e.set("buttonToImportIconFor",n)}};function Ta(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Aa,t=arguments.length>1?arguments[1]:void 0;const n=Da[t.type];return n?n(e,t):e}var Ia=n(63226);const Ma=new k.Uw,Na={[V.yiN]:(e,t)=>e.withMutations((e=>{t.comments.forEach((t=>{if((0,me.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,me.V)(t.rootId&&t.id),e.commentThreads.has(t.rootId)){const n=e.commentThreads.get(t.rootId);(0,me.V)(n),e.setIn(["commentThreads",t.rootId],n.add(t.id).sortBy((t=>{const n=e.comments.get(t);(0,me.V)(n);const r=n.createdAt.getTime();return[(0,Ia.Jm)(n)?1:0,r]}),ye.l))}else e.setIn(["commentThreads",t.rootId],(0,a.CD)([t.id]))}))})),[V.bYc]:(e,t)=>{const n=t.rootId,r=e.annotations.get(n),o=new Date;let i=new k.Mw({id:(0,Pi.A)(),rootId:n,creatorName:e.annotationCreatorName||null,createdAt:o,updatedAt:o,text:{format:"plain",value:""}});if(e.onCommentCreationStart){const t=e.onCommentCreationStart(i);(0,me.V)(t instanceof k.Mw,"`onCommentCreationStart` should return an instance of `Comment`"),i=t}(0,me.V)(e.backend),e.backend.isCollaborationPermissionsEnabled()&&e.group!==e.backend.getDefaultGroup()&&(i=i.set("group",e.group));return!(0,mn.kH)(i,e)&&r&&(0,lr.yF)(r,e)?e.withMutations((e=>{e.setIn(["comments",i.id],i),e.commentThreads.has(n)?e.updateIn(["commentThreads",n],(e=>e.add(i.id))):e.setIn(["commentThreads",n],(0,a.CD)([i.id]))})):e.set("interactionMode",null)},[V.Rv8]:(e,t)=>e.withMutations((e=>{t.comments.forEach((t=>{(0,me.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)}))})),[V.B0K]:(e,t)=>e.withMutations((e=>{t.ids.forEach((t=>{(0,me.V)(e.comments.has(t),`Comment with ID ${t} not found, so it cannot be deleted.`);const n=e.comments.get(t);(0,me.V)(null!=n,`Attempted to delete non-existent comment with ID ${t}`),(0,me.V)(n.rootId);const r=e.commentThreads.get(n.rootId);if((0,me.V)(null!=r,`Comment with ID ${t} has no corresponding thread with matching root ID ${n.rootId}`),(0,me.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,me.V)(null!=r),(0,Ia.Jm)(r)&&(e.removeIn(["commentThreads",n.rootId]),e.removeIn(["comments",r.id]))}}e.removeIn(["comments",t])}))})),[V.S$q]:e=>e.setIn(["viewportState","commentMode"],(0,Ia.Xu)(e)),[V.PHl]:(e,t)=>e.set("mentionableUsers",t.users),[V.ZkK]:(e,t)=>e.set("maxMentionSuggestions",t.maxSuggestions),[V.AN0]:(e,t)=>{let{onCommentCreationStartCallback:n}=t;return e.set("onCommentCreationStart",n)}};function Oa(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ma,t=arguments.length>1?arguments[1]:void 0;const n=Na[t.type];return n?n(e,t):e}const ja=new k.Uw,Ra={[V.$j9]:(e,t)=>e.set("documentEditorFooterItems",t.documentEditorFooterItems),[V.tpQ]:(e,t)=>e.set("documentEditorToolbarItems",t.documentEditorToolbarItems)};function Fa(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ja,t=arguments.length>1?arguments[1]:void 0;const n=Ra[t.type];return n?n(e,t):e}const Ba=new Z.A,La={[V.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())})),[V.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())})),[V.tII]:(e,t)=>e.set("historyChangeContext",t.historyChangeContext),[V.lfs]:(e,t)=>e.set("historyIdsMap",e.historyIdsMap.set(t.newId,t.oldId)),[V.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)))}))},[V.RG9]:e=>e.withMutations((t=>{t.set("undoActions",e.undoActions.clear()),t.set("redoActions",e.redoActions.clear()),t.set("historyIdsMap",e.historyIdsMap.clear())})),[V.TpM]:e=>e.set("isHistoryEnabled",!0),[V.MPB]:e=>e.set("isHistoryEnabled",!1)};function Va(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ba,t=arguments.length>1?arguments[1]:void 0;const n=La[t.type];return n?n(e,t):e}var Ka=n(81235);const $a=e=>new Ka.ZY(e),Ha=e=>new Ka.rw({offset:$a(e.offset),size:$a(e.size)}),Ua=e=>new Ka.z9(e),qa=e=>{let t=a.NZ.of();for(const n of e)t=t.add(Ua(n));return t},Wa=e=>new Ka.h2({family:e.family,variants:qa(e.variants)}),Ga=e=>new Ka.oI({family:e.family,variant:Ua(e.variant)}),Ya=e=>new Ka.AQ({faceRef:Ga(e.faceRef),size:e.size}),Za=e=>new Ka.Im(e),Ja=e=>new Ka.aF({fontRef:Ya(e.fontRef),color:e.color,effects:Za(e.effects)}),Xa=e=>new Ka.mo(e),Qa=e=>new Ka.Iy({family:e.family,faceMismatch:e.faceMismatch?Xa(e.faceMismatch):null,bold:e.bold,italic:e.italic,xScale:e.xScale,skew:e.skew,color:e.color,size:e.size}),es=e=>new Ka.Sy(e),ts=e=>new Ka.oR(e),ns=e=>new Ka.el({cluster:e.cluster,offset:$a(e.offset),advance:$a(e.advance),text:e.text,control:e.control,lastOfSegment:e.lastOfSegment,beginOfWord:e.beginOfWord,endOfWord:e.endOfWord}),rs=e=>new Ka.Wu({offset:$a(e.offset),lineSpacing:es(e.lineSpacing),elements:a.B8.of(...e.elements.map(ns))});var os=n(43195);const is=new Z.A,as=(e,t)=>{let n=!1;const r=Ha(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 Ka.bs({offset:$a(i.offset),lineSpacing:es(i.lineSpacing)}));var i;(0,a.is)(o,e.cursor)||(e=e.set("cursor",o),n=!0);const s=t.selection?(e=>new Ka.LN(e))(t.selection):null;(0,a.is)(s,e.selection)||(e=e.set("selection",s),n=!0);const l=(e=>new Ka.AU({lines:a.B8.of(...e.lines.map(rs))}))(t.layoutView);(0,a.is)(l,e.layoutView)||(e=e.set("layoutView",l));const c=(e=>new Ka.s3({selectionStyleInfo:e.selectionStyleInfo?Qa(e.selectionStyleInfo):null,modificationsCharacterStyle:e.modificationsCharacterStyle?Ja(e.modificationsCharacterStyle):null,modificationsCharacterStyleFaceMismatch:e.modificationsCharacterStyleFaceMismatch?Xa(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 Ka.Im({})),n&&!(0,a.is)(t,e.modificationsCharacterStyle)&&(e=e.set("modificationsCharacterStyle",t))}return e},ss={[V.M5B]:(e,t)=>e.withMutations((e=>{const n=e.contentEditorSession.sessionId+1;e.set("contentEditorSession",new Ka.jL({sessionId:n,active:!0,contentEditor:t.contentEditor})).set("interactionMode",F.O.CONTENT_EDITOR)})),[V.$Yt]:e=>e.withMutations((e=>{e.setIn(["contentEditorSession","active"],!1).setIn(["contentEditorSession","contentEditor"],null).set("interactionMode",null)})),[V.nkN]:(e,t)=>e.withMutations((e=>{(0,me.V)(!e.contentEditorSession.pageStates.has(t.pageIndex)),e.setIn(["contentEditorSession","pageStates",t.pageIndex],new Ka.H5({loading:!0}))})),[V.cNc]:(e,t)=>e.withMutations((e=>{(0,me.V)(e.contentEditorSession.pageStates.get(t.pageIndex)?.loading);let n=e.contentEditorSession.pageStates.get(t.pageIndex);(0,me.V)(n);const r=t.initialTextBlocks.map((e=>{const t=e.textBlock,n=$a(t.anchor),r=ts(t.globalEffects),o=new Ka.PE({maxWidth:t.maxWidth,alignment:t.alignment,lineSpacingFactor:t.lineSpacingFactor}),i=new Ka.Gg({id:e.id,initialAnchor:n,initialGlobalEffects:r,initialLayout:o,anchor:n,globalEffects:r,layout:o,modificationsCharacterStyle:Ja(t.modificationsCharacterStyle)});return as(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)})),[V.Qvq]:(e,t)=>e.withMutations((e=>{e.setIn(["contentEditorSession","textBlockInteractionState"],new Ka.Eu({pageIndex:t.pageIndex,textBlockId:t.textBlockId,state:Ka.mS.Active}))})),[V.q7x]:e=>e.withMutations((e=>{const t=e.contentEditorSession.textBlockInteractionState;if(t.state===Ka.mS.Active){let n=e.contentEditorSession.pageStates.get(t.pageIndex);(0,me.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===Ka.mS.Active?e.contentEditorSession.textBlockInteractionState.set("state",Ka.mS.Selected):new Ka.Eu)})),[V.lBj]:(e,t)=>e.withMutations((e=>{let n=e.contentEditorSession.pageStates.get(t.pageIndex);(0,me.V)(n),n=((e,t,n)=>{const r=e.textBlocks.map((e=>e.id!=t?e:as(e,n)));return e.set("textBlocks",r)})(n,t.textBlockId,t.updateInfo),e.setIn(["contentEditorSession","pageStates",t.pageIndex],n)})),[V.oJw]:e=>e.withMutations((e=>{e.setIn(["contentEditorSession","availableFaces","loading"],!0)})),[V.A39]:(e,t)=>e.withMutations((e=>{const n=(r=t.faceList,a.B8.of(...r.map(Wa)));var r;e.setIn(["contentEditorSession","availableFaces"],new Ka.e5({faceList:n,loading:!1}))})),[V.TN1]:(e,t)=>e.withMutations((e=>{e.setIn(["contentEditorSession","saving"],t.isSaving)})),[V.ydo]:e=>e.withMutations((e=>{e.setIn(["contentEditorSession","dirty"],!0)})),[V.B3$]:(e,t)=>e.set("showExitContentEditorDialog",t.isVisible),[V.NZW]:(e,t)=>e.set("contentEditorSession",e.contentEditorSession.set("fontMismatchTooltip",new Ka.Ho({fontFace:t.fontFace,rect:t.tooltipRect}))),[V.qNu]:e=>e.set("contentEditorSession",e.contentEditorSession.set("fontMismatchTooltip",null)),[V.NTB]:(e,t)=>e.contentEditorSession.fontMismatchTooltip?e.setIn(["contentEditorSession","fontMismatchTooltip","dismissAbortController"],t.abortController):e,[V.Vat]:(e,t)=>e.withMutations((e=>{let n=e.contentEditorSession.pageStates.get(t.pageIndex);(0,me.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)})),[V.$eX]:(e,t)=>e.withMutations((e=>{e.contentEditorSession.dirty||e.setIn(["contentEditorSession","dirty"],!0);let n=e.contentEditorSession.pageStates.get(t.pageIndex);(0,me.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,me.V)(o.maxWidth);const s=(0,os.FP)(o.alignment,i,n,r-o.maxWidth);return e=(e=e.set("anchor",new Ka.ZY({x:a.x+s.x,y:a.y+s.y}))).setIn(["layout","maxWidth"],r)}))),e.setIn(["contentEditorSession","pageStates",t.pageIndex],n)})),[V.ilz]:(e,t)=>e.withMutations((e=>{let n=e.contentEditorSession.pageStates.get(t.pageIndex);(0,me.V)(n),e.contentEditorSession.dirty||e.setIn(["contentEditorSession","dirty"],!0),t.isKeyboardMove||e.contentEditorSession.textBlockInteractionState.state===Ka.mS.Moving||e.setIn(["contentEditorSession","textBlockInteractionState"],new Ka.Eu({state:Ka.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 Ka.ZY({x:t.anchor.x,y:t.anchor.y}))))),e.setIn(["contentEditorSession","pageStates",t.pageIndex],n)})),[V.gA3]:(e,t)=>e.withMutations((e=>{e.setIn(["contentEditorSession","textBlockInteractionState"],new Ka.Eu({pageIndex:t.pageIndex,textBlockId:t.textBlockId,state:Ka.mS.Selected}))})),[V.TUU]:(e,t)=>e.withMutations((e=>{e.setIn(["contentEditorSession","textBlockInteractionState"],new Ka.Eu);let n=e.contentEditorSession.pageStates.get(t.pageIndex);(0,me.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"],Ka.g3.Edit)})),[V.qU5]:(e,t)=>e.withMutations((e=>{e.setIn(["contentEditorSession","mode"],t.mode)})),[V.bQ9]:(e,t)=>e.withMutations((e=>{let n=e.contentEditorSession.pageStates.get(t.pageIndex);const r=e.pages.get(t.pageIndex)?.pageSize?.width;(0,me.V)(n),(0,me.V)(r);const{pageIndex:o,initialTextBlock:i}=t,a=i.textBlock,s=ts(a.globalEffects),l=new Ka.PE({maxWidth:r-t.anchor.x,alignment:a.alignment,lineSpacingFactor:a.lineSpacingFactor});let c=new Ka.Gg({id:i.id,initialAnchor:t.anchor,initialGlobalEffects:s,initialLayout:l,anchor:t.anchor,globalEffects:s,layout:l,justCreated:!0,modificationsCharacterStyle:Ja(a.modificationsCharacterStyle)});return c=as(c,i.updateInfo),n=n.set("textBlocks",n.textBlocks.push(c)),e.setIn(["contentEditorSession","pageStates",o],n).setIn(["contentEditorSession","mode"],Ka.g3.Edit).setIn(["contentEditorSession","textBlockInteractionState"],new Ka.Eu({pageIndex:o,textBlockId:i.id,state:Ka.mS.Active}))})),[V.psz]:(e,t)=>e.set("promptContentEditorDocumentDownload",t.promptContentEditorDocumentDownload),[V.kZs]:(e,t)=>e.set("promptContentEditorCannotSaveChanges",t.promptContentEditorCannotSaveChanges)};function ls(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:is,t=arguments.length>1?arguments[1]:void 0;const n=ss[t.type];return n?n(e,t):e}const cs={[V.MCf]:(e,t)=>{let{state:n}=t;return e.set("highlightState",n)}};function us(e,t){const n=cs[t.type];return n?n(e,t):e}function ds(e,t){return[H,U.A,Ii,ji,Bi,Ki,Wi,ea,ha,ga,ba,us,Sa,Ea,Pa,Ta,Oa,Fa,Va,ls].reduce(((e,n)=>n(e,t)),e)}function ps(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,A.U1)({reducer:ds,preloadedState:new Z.A(e),middleware:e=>e({serializableCheck:!1,immutableCheck:!1})})}var hs=n(18835),fs=n(97881),ms=n(33075),gs=n(53253);async function vs(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,hs.jI)(t,n))},isPDFJavaScriptEnabled:Ye.JY.PDF_JAVASCRIPT})),(()=>(e=!0,new Promise((e=>r((0,hs.j)(e)))))));if(b){(0,l.V1)(x,"Document response must be provided when linearizedLoading is true"),r((0,gs.S9)(x)),r((0,hs.WP)());try{await n.waitUntilFullyLoaded(w),r((0,hs.aW)())}catch(e){return void r((0,hs.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))?.readableName||t.name;S.document.fonts.add(new FontFace((0,qt.gh)(n),await t.data.arrayBuffer())),_=_.add(n)}_.size>0&&r((0,Pt.wG)(_))}const C=b?o().pages.map((e=>e.pageKey)):void 0;await(0,ms.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,Pt.yT)()),n.isCollaborationPermissionsEnabled()&&r((0,Pt.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,En.f_)({changes:P,resolve:n,reject:i}))}if("STANDALONE"===n.type&&Ye.JY.PDF_JAVASCRIPT&&c&&r((0,En.Ek)((0,a.B8)(c.map(fs.R5)))),"STANDALONE"===n.type){const e=await n.getOCGs(),t=await n.getOCGVisibilityState();r((0,gs.ew)(e)),r((0,gs.Sz)(t.visibleLayerIds))}r((0,hs.aW)()),g&&r((0,Pt.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 PSPDFKit for Web or the PSPDFKit Document Engine: https://pspdfkit.com/guides/web/current/pspdfkit-for-web/troubleshooting/");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,hs.Up)(t.message)):r((0,hs.Up)()),t}return t}var ys=n(63638),bs=n(510),ws=n(17704),xs=n(87374),Ss=n(7516),_s=n(27634),Cs=n(42633),Es=n(84192);const ks=[10,20,50,100,200,500];class zs{constructor(e,t){(0,v.A)(this,"_activeSearches",[]),this.getState=e,this.dispatch=t,this.term="",this._debouncedSearchRequest=(0,Es.h)(this._searchRequest,xe.V9)}cancelSearch(){this._cancelSearchRequests(),this.searchTerm(""),this.dispatch((0,Cs.DP)())}clearSearch(){this._cancelSearchRequests(),this.searchTerm(""),this.dispatch((0,Cs.XS)((0,a.B8)()))}searchTerm(e){if("pspdfkit:info"===e.toLowerCase()||"pspdf:info"===e.toLowerCase()){const e="PSPDFKit for Web 2024.8.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,Pt.gY)()),void this._cancelSearchRequests();const t=this.getState();if(e.length<t.searchState.minSearchQueryLength)return this.term="",void this._cancelSearchRequests();this.dispatch((0,Cs.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:ks[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=ks[n],n+=n>=ks.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,Cs.XS)(i)),l-=r,s+=r}}this.dispatch((0,Cs.VE)(!1))}_cancelSearchRequests(e){for(const t of this._activeSearches.keys())null!=e&&t===e||(this._activeSearches[t]=!1)}}var Ps=n(72084),As=n(16692),Ds=n(88051),Ts=n(75838),Is=n(72320),Ms=n(8972),Ns=n(53793),Os=n(22372),js=n(70631);function Rs(){return Rs=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},Rs.apply(this,arguments)}function Fs(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 Bs(e,t){return Bs=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Bs(e,t)}function Ls(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Bs(e,t)}n(5556);function Vs(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}const Ks=!1;const $s=u.createContext(null);var Hs="unmounted",Us="exited",qs="entering",Ws="entered",Gs="exiting",Ys=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=Us,r.appearStatus=qs):o=Ws:o=t.unmountOnExit||t.mountOnEnter?Hs:Us,r.state={status:o},r.nextCallback=null,r}Ls(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Hs?{status:Us}: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!==qs&&n!==Ws&&(t=qs):n!==qs&&n!==Ws||(t=Gs)}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){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===qs?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===Us&&this.setState({status:Hs})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[c.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||Ks?this.safeSetState({status:Ws},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:qs},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:Ws},(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:c.findDOMNode(this);t&&!Ks?(this.props.onExit(r),this.safeSetState({status:Gs},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Us},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Us},(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:c.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===Hs)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,Fs(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return u.createElement($s.Provider,{value:null},"function"==typeof n?n(e,r):u.cloneElement(u.Children.only(n),r))},t}(u.Component);function Zs(){}Ys.contextType=$s,Ys.propTypes={},Ys.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Zs,onEntering:Zs,onEntered:Zs,onExit:Zs,onExiting:Zs,onExited:Zs},Ys.UNMOUNTED=Hs,Ys.EXITED=Us,Ys.ENTERING=qs,Ys.ENTERED=Ws,Ys.EXITING=Gs;const Js=Ys;var Xs=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=Vs(n.className,r):n.setAttribute("class",Vs(n.className&&n.className.baseVal||"",r)));var n,r}))},Qs=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}Ls(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&&e.scrollTop,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&&Xs(e,r),o&&Xs(e,o),i&&Xs(e,i)},n.render=function(){var e=this.props,t=(e.classNames,Fs(e,["classNames"]));return u.createElement(Js,Rs({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(u.Component);Qs.defaultProps={classNames:""},Qs.propTypes={};const el=Qs;function tl(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 nl(e,t,n){return null!=n[t]?n[t]:e.props[t]}function rl(e,t,n){var r=tl(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:nl(a,"exit",e),enter:nl(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:nl(a,"exit",e),enter:nl(a,"enter",e)})}})),o}var ol=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},il=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}Ls(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,tl(n.children,(function(e){return(0,u.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:nl(e,"appear",n),enter:nl(e,"enter",n),exit:nl(e,"exit",n)})}))):rl(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=tl(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Rs({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Fs(e,["component","childFactory"]),o=this.state.contextValue,i=ol(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?u.createElement($s.Provider,{value:o},i):u.createElement($s.Provider,{value:o},u.createElement(t,r,i))},t}(u.Component);il.propTypes={},il.defaultProps={component:"div",childFactory:function(e){return e}};const al=il;var sl=n(13158),ll=n(25681),cl=n(37555),ul=n(74111),dl=n(82047),pl=n(16019);function hl(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,he.tz)(),f=(0,s.d4)((e=>e.ui[dl.Rq.Bookmarks])),m=(0,s.d4)((e=>e.instance)),g=h(be.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(be.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,pl.Q)(dl.Rq.Bookmarks,f,y,m)}var fl;function ml(e){const{bookmarks:t,pages:n,currentPageIndex:r,bookmarkManager:i,closeOnPress:l}=e,[c,d]=u.useState(null);u.useEffect((()=>{c?.focus()}),[c]);const[h,f]=u.useState("read"),[m,g]=u.useState(null),v=(0,s.wA)(),{formatMessage:y}=(0,he.tz)(),[b,w]=u.useState(null),x=u.useRef(null),S=(0,cl.lb)();u.useEffect((()=>{if("edit"!==h&&b&&t){t.get(b)?.action.pageIndex!==r&&w(null)}}),[r,b,t,h]);const _=u.useCallback((e=>{if(e&&t){w(e);const n=t.get(e);n&&v((0,rr.DX)(n.action)),l&&"read"===h&&v((0,Pt.hP)())}else w(null)}),[t,v,l,h]),C=u.useCallback((async e=>{await i.ensureObjectSaved(e),x.current?.setFocusedKey(e.id)}),[i,x]),E=u.useCallback((e=>{const t=new k.Xh({action:new k.ic({pageIndex:r}),name:e||void 0,id:(0,ul.z)()});i.createObject(t),i.autoSave(),g(y(yl.bookmarkCreated)),"keyboard"===S&&C(t)}),[r,i,y,S,C]),z=u.useCallback((e=>{if(e&&t){const n=t.get(e);n&&(i.deleteObject(n),i.autoSave(),g(y(yl.bookmarkDeleted)))}}),[t,i,y]),P=u.useCallback(((e,n)=>{if(e&&t){const r=t.get(e);if(r){const e=r.set("name",n);i.updateObject(e),i.autoSave(),g(y(yl.bookmarkEdited))}}}),[t,i,y]),A=t?(0,a.B8)(vl(t)):t,D=(0,yr.d3)(c,A),T={className:p()(!A&&"PSPDFKit-Sidebar-Loading",A&&0===A.size&&"PSPDFKit-Sidebar-Empty","PSPDFKit-Sidebar-Bookmarks","_1yep5z6ld"),ref:d,style:{width:e.width},role:"region","aria-label":y(be.A.bookmarks)},I=(0,yr.jU)(D,(e=>e.id),(e=>A?.find((t=>t.id===e)))),M=u.useMemo((()=>I?(e,t)=>{if(e){const n=new k.Xh({action:new k.ic({pageIndex:t.pageNumber-1}),name:t.label,id:t.id});I(e,n)}}:void 0),[I]);return A?(0,ee.jsxs)("div",{...T,children:[(0,ee.jsx)(hl,{items:A,pages:n,selectedKey:b,onSelectionChange:_,onBookmarkAdd:E,onBookmarkDelete:z,onBookmarkUpdate:P,bookmarksHandle:x,onRenderBookmarkItem:M,onMobileModeChange:f}),(0,ee.jsx)(o.s6,{announce:"polite",children:m})]}):(0,ee.jsxs)("div",{...T,tabIndex:0,children:[(0,ee.jsx)(o.s6,{"aria-live":"polite",children:y(yl.loadingBookmarks)}),fl||(fl=(0,ee.jsx)(De.A,{}))]})}const gl=(0,ll.createSubscription)({getCurrentValue:()=>{},subscribe:(e,t)=>{let n=function(){};const r=()=>{const n=e.getBookmarks();return n.then(t),n};return r().then((()=>{e.eventEmitter.on("change",r),n=()=>{e.eventEmitter.off("change",r)}})),()=>n()}}),vl=(0,Ut.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})))),yl=(0,he.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 bl=n(35295),wl=n(35175),xl=n(65221);const Sl=e=>{let{onCancel:t,...n}=e;const r=(0,xl.Bi)(),o=(0,s.d4)((e=>e.ui[dl.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,pl.Q)(dl.Rq.DocumentEditor,o,a,i,l)};var _l;const Cl=e=>{const{styles:t,movePreview:n}=e;return(0,ee.jsx)("div",{className:p()(t.importedDocument,{[t.importedDocumentMovePreview]:n}),style:{width:e.width,height:e.height},children:_l||(_l=(0,ee.jsx)(bl.Vx3,{role:"presentation",size:20}))})};function El(e,t,n){return Math.min(n,Math.max(t,e))}const kl=(0,he.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"}}),zl="SET_OPERATIONS",Pl="PUSH_OPERATION",Al="SET_SELECTED_INDEXES",Dl="SET_UNDO_DEPTH",Tl="SET_IS_COMMITTING",Il="SET_THUMBNAIL_WIDTH",Ml="SET_DISABLE_ZOOM_FLAG",Nl="SET_MOVE_TARGET",Ol=e=>({type:Al,payload:e}),jl=e=>({type:Dl,payload:e}),Rl=e=>({type:Tl,payload:e}),Fl=e=>({type:Il,payload:e}),Bl=e=>({type:Ml,payload:e}),Ll=e=>({type:Nl,payload:e}),Vl="disable-zoom-in",Kl="disable-zoom-out",$l=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(jl(0))}),[d,s,c]),f=(0,u.useCallback)((()=>{h({type:"removePages",pageIndexes:[...p]}),s(Ol((0,a.NZ)()))}),[s,h,p]),m=(0,u.useCallback)((()=>{const e=t.get(0),n=e?e.pageSize:tc,r={type:"addPage",backgroundColor:k.Q1.WHITE,pageWidth:n.width,pageHeight:n.height,rotateBy:0,...1===p.size?{afterPageIndex:[...p][0]}:{beforePageIndex:0}};h(r),s(Ol((0,a.NZ)()))}),[t,p,h,s]),g=(0,u.useCallback)((()=>{h({type:"duplicatePages",pageIndexes:[...p]}),s(Ol((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(Ol(o))}),[p,h,s]),w=(0,u.useCallback)((()=>{s(Ol(n.keySeq().toSet()))}),[s,n]),x=(0,u.useCallback)((async()=>{s(Rl(!0)),(0,l.V1)(null!==r);try{const e=await r.exportPDFWithOperations(d.flatten().toArray().map(fs.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(Rl(!1))}}),[s,r,d,p,o]),S=(0,u.useCallback)((()=>{s(Ol((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);C(t,n)}),[C]),z=(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(Ol((0,a.NZ)(e.map((e=>e-1)))))}),[p,h,s]),P=(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(Ol((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(jl(0)),s(Ol((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(Ol((0,a.NZ)())),s(jl(i+1))}),[s,i]),T=(0,u.useCallback)((()=>{s(Ol((0,a.NZ)())),s(jl(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:z,handleMoveRightClick:P,handleImportClick:A,handleUndoClick:D,handleRedoClick:T}};function Hl(e,t){switch(t.type){case zl:return{...e,operations:t.payload};case Pl:return{...e,operations:e.operations.push(t.payload),undoDepth:0};case Al:return{...e,selectedIndexes:t.payload};case Dl:return{...e,undoDepth:t.payload};case Tl:return{...e,isCommitting:t.payload};case Il:return{...e,thumbnailWidth:t.payload};case Ml:return{...e,disableZoomFlag:t.payload};case Nl:return{...e,moveTarget:t.payload};default:return e}}function Ul(e){return{operations:(0,a.B8)(),selectedIndexes:(0,a.NZ)(),undoDepth:0,isCommitting:!1,thumbnailWidth:El(e.documentEditorConfig.thumbnailDefaultSize,e.documentEditorConfig.thumbnailMinSize,e.documentEditorConfig.thumbnailMaxSize),disableZoomFlag:"",moveTarget:void 0}}var ql=n(67926),Wl=n(74847),Gl=n.n(Wl),Yl=n(86885),Zl=n(2861),Jl=n.n(Zl);function Xl(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,Mr.I)()),c=Math.ceil(i*s*(0,Mr.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 Ql=(0,gn.F)((function(e,t){const{page:n}=t,{backend:r,annotations:o,attachments:i,formFields:s,showAnnotations:l,renderPageCallback:c}=e,u=l?(0,R.T1)(o,n):void 0,d=l?(0,Me.uk)(s,n):void 0,p=l&&d?(0,Me.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:_}=Xl(t,m,o,i),C=u.useMemo((function(){return new E.or({width:y,height:b})}),[b,y]),k=u.useMemo((function(){return new E.rw({width:y,height:b})}),[b,y]),z={width:w,height:x,transform:`\n      translateX(${S}px)\n      translateY(${_}px)\n      rotate(${m}deg)\n      scale(${g/v/(0,Mr.I)()})\n    `,transformOrigin:"top left"};return(0,ee.jsxs)("div",{style:z,ref:f,children:[(0,ee.jsx)("div",{className:Jl().tilePlaceholder,style:{width:y,height:b}}),(0,ee.jsx)(Yl.A,{backend:a,pageIndex:n,originalPageSize:t,scaledPageSize:C,rect:k,annotations:s,attachments:l,formFields:c,formFieldValues:d,renderPageCallback:p,digitalSignatures:h,pageKey:r,renderAsBackgroundImage:!0})]})})),ec=Ql,tc=new k.or({width:xe.Pw,height:xe.Gz}),nc=(0,A.Mz)([e=>e.documentEditorFooterItems],(e=>e.toJS())),rc=(0,A.Mz)([e=>e.documentEditorToolbarItems],(e=>e.toJS())),oc=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)(nc,s.bN),i=(0,s.d4)(rc,s.bN),c=(0,s.d4)((e=>e.documentEditorConfig)),d=(0,s.d4)((e=>e.viewportState.zoomStep)),{formatMessage:h}=(0,he.tz)(),[f,m]=(0,u.useReducer)(Hl,{documentEditorConfig:c},Ul),{thumbnailWidth:g,disableZoomFlag:v,isCommitting:y,undoDepth:b,selectedIndexes:w,moveTarget:x}=f,S=(0,s.wA)(),{handleZoomIn:_,handleZoomOut:C,handleResetZoom:E}=(e=>{let{dispatch:t,documentEditorConfig:n,thumbnailWidth:r,zoomStep:o,disableZoomFlag:i}=e;return{handleZoomIn:(0,u.useCallback)((()=>{const{thumbnailMaxSize:e}=n;if(i!==Vl){const n=r*o;t(n<e?{type:Ml,payload:""}:{type:Ml,payload:Vl}),t({type:Il,payload:n})}}),[i,t,n,r,o]),handleZoomOut:(0,u.useCallback)((()=>{const{thumbnailMinSize:e}=n;if(i!==Kl){let n=r/o;n<e?(t(Bl(Kl)),n=e):t(Bl("")),t(Fl(n))}}),[i,t,n,r,o]),handleResetZoom:(0,u.useCallback)((()=>{const{thumbnailDefaultSize:e,thumbnailMinSize:r,thumbnailMaxSize:o}=n;t(Fl(El(e,r,o))),t(Bl(""))}),[t,n])}})({dispatch:m,documentEditorConfig:c,thumbnailWidth:g,zoomStep:d,disableZoomFlag:v}),[z,P]=(0,u.useState)((0,a.B8)()),A=z.slice(0,z.size-b),D=(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;null!=e.afterPageIndex?t=e.afterPageIndex+1:((0,l.V1)(null!=e.beforePageIndex),t=e.beforePageIndex),++a,o=o.insert(t,{type:"newPage",label:`${n(kl.newPage)} ${a}`,rotation:0,size:new k.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,i;(0,l.V1)(null!=n),(0,l.V1)("page"===n.type||"newPage"===n.type);const a=n.rotation;if(i=90===e.rotateBy?270===a?0:a+e.rotateBy:90===a?0:180===a?90:270===a?180:a+e.rotateBy,(0,l.V1)(0===i||90===i||180===i||270===i),"page"===n.type)r={...n,rotation:i};else{if("newPage"!==n.type)throw new l.uE("Rotation is not allowed on imported documents");r={...n,rotation:i}}o=o.set(t,r)}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;null!=e.beforePageIndex?r=e.beforePageIndex:((0,l.V1)(null!=e.afterPageIndex),r=e.afterPageIndex+1);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(null!=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)(null!=e),o=o.delete(o.indexOf(e)),o=o.unshift(e)}else{(0,l.V1)(null!=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)(null!=e),o=o.delete(o.indexOf(e)),o=o.insert(o.indexOf(t)+1,e)}}break}case"importDocument":{let t,n;"beforePageIndex"in e&&null!=e.beforePageIndex?t=e.beforePageIndex:((0,l.V1)("afterPageIndex"in e&&null!=e.afterPageIndex),t=e.afterPageIndex+1),"string"!=typeof 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-b),h)),[t,z,b,h]),T=0!==w.size&&w.size!==D.size&&!y,I=0!==w.size&&![...w].includes(0),M=0!==w.size&&![...w].includes(D.size-1),N=b<z.size,O=b>0,j=w.size<D.size&&!y,R=0!==w.size&&!y,F=w.size>0&&w.size!==D.size&&!y,B=w.size>0&&void 0===[...w].find((e=>{const t=D.get(e);return null!=t&&("page"!==t.type&&"newPage"!==t.type)})),L=w.size>0&&void 0===[...w].find((e=>{const t=D.get(e);return null!=t&&"page"!==t.type})),V=(0,u.useMemo)((()=>w.map(String)),[w]),K=(0,u.useCallback)((e=>{let t;t="all"===e?D.keySeq().toSet():(0,a.NZ)(Array.from(e).map(Number)),m(Ol(t))}),[D,m]),{handleRemoveClick:$,handleAddClick:H,handleDuplicateClick:U,handleRotateLeftClick:q,handleRotateRightClick:W,movePagesTo:G,handleSelectAllClick:Y,handleExtractPagesClick:Z,handleSelectNoneClick:J,handleReorder:X,handleMoveLeftClick:Q,handleMoveRightClick:te,handleImportClick:ne,handleUndoClick:re,handleRedoClick:oe}=$l({pages:t,editorPages:D,backend:n,frameWindow:r,undoDepth:b,documentEditorDispatch:m,setOperations:P,undidOperations:A,selectedIndexes:w}),ie=(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)W();else if(o&&"arrowleft"===t)Q();else if(o&&"arrowright"===t)te();else if(n&&e.shiftKey&&!e.altKey&&"z"===t)oe();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)C();else if(r&&"0"===t)E();else if(i&&"n"===t)H();else if(i&&"d"===t)$();else if(i&&"c"===t)U();else if(i&&"l"===t)q();else if(i&&"r"===t)W();else{if(!i||"i"!==t)return;ne()}else _();e.preventDefault()}),[H,U,ne,Q,te,oe,$,E,q,W,Y,J,re,_,C]),ae=(0,u.useMemo)((()=>({add:{type:"ActionButton",props:{iconStart:bl.Wy4,label:h(kl.newPage),size:"md",variant:"toolbar",onPress:H}},remove:{type:"ActionButton",props:{iconStart:bl.tpl,label:h(kl.removePage),size:"md",variant:"toolbar",onPress:$,isDisabled:!F}},duplicate:{type:"ActionButton",props:{iconStart:bl.wQ8,label:h(kl.duplicatePage),size:"md",variant:"toolbar",onPress:U,isDisabled:!L}},"rotate-left":{type:"ActionButton",props:{iconStart:bl.HTp,label:h(kl.rotatePageLeft),size:"md",variant:"toolbar",onPress:q,isDisabled:!B}},"rotate-right":{type:"ActionButton",props:{iconStart:bl.h8W,label:h(kl.rotatePageRight),size:"md",variant:"toolbar",onPress:W,isDisabled:!B}},move:{type:"Popover",props:{popoverTriggerProps:{children:(0,ee.jsx)(sl.ActionButton,{iconStart:bl.ot,variant:"toolbar",label:h(kl.move),size:"md",isDisabled:!T},"move")},popoverContentProps:{children:(0,ee.jsx)(sl.Dialog,{variant:"ghost",size:"content","aria-label":h(kl.move),className:"PSPDFKit-DocumentEditor-MoveDialog",children:(0,ee.jsx)(wl.hY,{inputLabel:h(kl.insertAfterPage),description:h(kl.docEditorMoveBeginningHint),onMove:()=>{if(x){const e=Math.min(Number(x),D.size);G(e)}},onChange:e=>{m(Ll(e))}})})}}},"move-left":{type:"ActionButton",props:{iconStart:bl.dtV,label:h(kl.moveBefore),size:"md",variant:"toolbar",onPress:Q,isDisabled:!I}},"move-right":{type:"ActionButton",props:{iconStart:bl.UoP,label:h(kl.moveAfter),size:"md",variant:"toolbar",onPress:te,isDisabled:!M}},"import-document":{type:"ActionButton",props:{iconStart:bl.s5B,label:h(kl.mergeDocument),size:"md",variant:"toolbar",onPress:ne}},"extract-pages":{type:"ActionButton",props:{iconStart:bl.QSY,label:h(kl.extractPages),size:"md",variant:"toolbar",onPress:Z,isDisabled:0===w.size}},undo:{type:"ActionButton",props:{iconStart:bl.ejX,label:"Undo",size:"md",variant:"toolbar",onPress:re,isDisabled:!N}},redo:{type:"ActionButton",props:{iconStart:bl.UfX,label:"Redo",size:"md",variant:"toolbar",onPress:oe,isDisabled:!O}},"select-all":{type:"ActionButton",props:{iconStart:bl.nhX,label:h(kl.selectAll),size:"md",variant:"toolbar",onPress:Y,isDisabled:!j}},"select-none":{type:"ActionButton",props:{iconStart:bl.C8f,label:h(kl.selectNone),size:"md",variant:"toolbar",onPress:J,isDisabled:!R}},"zoom-out":{type:"ActionButton",props:{iconStart:bl.LoD,label:h(kl.zoomOut),size:"md",variant:"toolbar",onPress:C,isDisabled:v===Kl}},"zoom-in":{type:"ActionButton",props:{iconStart:bl.ADv,label:h(kl.zoomIn),size:"md",variant:"toolbar",onPress:_,isDisabled:v===Vl}}})),[L,T,I,M,O,F,B,j,R,N,v,D.size,h,H,U,Z,ne,Q,te,oe,$,q,W,Y,J,re,_,C,G,x,w.size]),se=(0,u.useCallback)((()=>{m(Rl(!0)),S((0,ql._p)(A.flatten().toArray(),(()=>{m(Rl(!1))}),(e=>{throw m(Rl(!1)),e})))}),[S,A]),le=(0,u.useCallback)((async()=>{m(Rl(!0));try{(0,l.V1)(null!==n);const e=await n.exportPDFWithOperations(A.flatten().toArray().map(fs.ty));(0,l.V1)(null!==r),(0,Yn.bc)(e,r)}catch(e){throw e}finally{m(Rl(!1))}}),[n,A,r]),ce=(0,u.useMemo)((()=>h(kl.pagesSelected,{arg0:w.size})),[h,w.size]),ue=u.useMemo((()=>({cancel:{name:"cancel",type:"ActionButton",props:{"data-block-id":"cancel",size:"md",label:h(be.A.cancel),className:"PSPDFKit-DocumentEditor-CancelButton",variant:"secondary",onPress:e.onCancel}},spacer:{type:"spacer"},"selected-pages":{name:"selected-pages",type:"TagGroup",props:{ariaLabel:ce,items:[{id:ce,label:ce}]}},"save-as":{name:"saveAs",type:"ActionButton",props:{"data-block-id":"save-as",size:"md",label:h(be.A.saveAs),className:"PSPDFKit-DocumentEditor-SaveAsButton",style:{marginInline:8},variant:"secondary",onPress:le}},save:{name:"save",type:"ActionButton",props:{"data-block-id":"save",size:"md",label:h(be.A.save),className:"PSPDFKit-DocumentEditor-SaveButton",variant:"primary",onPress:se}}})),[h,le,se,ce,e.onCancel]),de=(0,u.useCallback)(((e,t,n)=>{const r=D.get(e);let o;switch((0,l.V1)(null!=r),r.type){case"page":o=(0,ee.jsx)(ec,{page:r.page,size:t,maxSize:n,rotation:r.rotation,renderAsBackgroundImage:!0},`page-${r.label}`);break;case"importedDocument":{const{containerWidth:e,containerHeight:i}=Xl(tc,0,t,n);o=(0,ee.jsx)(Cl,{width:e,height:i,styles:Gl(),formatMessage:h},`importedDoc-${r.label}`);break}case"newPage":{const{rotatedWidth:e,rotatedHeight:i}=Xl(r.size,r.rotation,t,n);o=(0,ee.jsx)("div",{style:{width:e,height:i}},`newPage-${r.label}`);break}default:o=(0,ee.jsx)(ee.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}}),[D,h]),pe=(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(Ol((0,a.NZ)()))},getSelectedPageIndexes:()=>[...o]};n=async n=>{i(Rl(!0));try{await(e.onPress?.(n,t,e.id))}catch(n){throw n}finally{i(Rl(!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:ae,operations:z,selectedIndexes:w,documentEditorDispatch:m,setOperations:P}),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(Ol((0,a.NZ)()))},getSelectedPageIndexes:()=>[...o]};n=async n=>{i(Rl(!0));try{e.onPress?.(n,t,e.id)}catch(n){throw n}finally{i(Rl(!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:ue,operations:z,selectedIndexes:w,documentEditorDispatch:m,setOperations:P}),me=(0,u.useMemo)((()=>D.map(((e,t)=>({id:t.toString(),src:"",alt:e.label,label:e.label}))).toArray()),[D]),ge=(0,u.useCallback)((e=>{const{id:t}=e,n=de(Number(t),g,c.thumbnailMaxSize);return(0,ee.jsx)("div",{className:"PSPDFKit-DocumentEditor-Page-Thumbnail",children:n.item})}),[c.thumbnailMaxSize,de,g]),ve=(0,u.useCallback)((e=>{const{id:t}=e,n=D.get(Number(t));(0,l.V1)(null!=n);const r="newPage"===n.type,o="importedDocument"===n.type,i=r||o,a=i?tc:n.page?.pageSize,s=o?0:n.rotation,{rotatedWidth:c,rotatedHeight:u}=Xl(a,i?0:n.page?.rotation,g,g),d=90===s||270===s;return{width:d?u:c,height:d?c:u}}),[D,g]);return(0,ee.jsx)(Sl,{items:me,toolbarItems:pe,footerItems:fe,selectedKeys:V,onSelectionChange:K,imageDimensions:ve,imageContainerStyle:{width:g},onReorder:X,onKeyDown:ie,renderImage:ge,className:p()("PSPDFKit-DocumentEditor",Gl().imageGalleryContent),imageContainerClassName:p()("PSPDFKit-DocumentEditor-Thumbnails-Page"),...e})};var ic=n(25507);const ac=(0,u.createContext)((()=>{throw new Error}));var sc,lc=n(76943),cc=n(21535),uc=n(94045),dc=n(17796),pc=n(39168),hc=n(45666),fc=n(6833),mc=n(13793),gc=n(92862),vc=n.n(gc),yc=n(28561),bc=n.n(yc),wc=n(1549),xc=n.n(wc);function Sc(e){return zc[e]||be.A[e]}function _c(e){let{itemId:t,label:n,isEnd:r}=e;return(0,ee.jsxs)(u.Fragment,{children:[(0,ee.jsx)(o.s6,{tag:"div",children:n}),(0,ee.jsx)("svg",{viewBox:"0 0 8 4",style:{height:16,width:32},children:(0,ee.jsxs)("g",{transform:r?"rotate(180 4,2)":void 0,children:[mt.B[t].startElement({fill:"transparent"}),sc||(sc=(0,ee.jsx)("line",{x1:"3.5",y1:"2",x2:"8",y2:"2"}))]})})]})}function Cc(e){let{itemId:t,label:n}=e;const r=fc.A.find((e=>e.id===t));return(0,ee.jsxs)(u.Fragment,{children:[(0,ee.jsx)(o.s6,{tag:"div",children:n}),(0,ee.jsx)("svg",{viewBox:"0 0 16 4",style:{width:54,height:16},children:(0,ee.jsx)("line",{x1:"0",y1:"2",x2:"16",y2:"2",strokeDasharray:r?r.dashArray:void 0,fill:"transparent"})})]})}class Ec extends u.PureComponent{constructor(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];super(...n),e=this,(0,v.A)(this,"calculateBoundingBox",(0,Ut.A)((0,L.s3)(this.props.annotation.constructor))),(0,v.A)(this,"_onChangeStartLineCap",(e=>{const{annotation:t}=this.props,n={};return"none"!==e&&(n.start=e),"lineCaps"in t&&t.lineCaps&&null!=t.lineCaps.end&&(n.end=t.lineCaps.end),this.props.updateAnnotation({lineCaps:n,boundingBox:this.calculateBoundingBox(t.set("lineCaps",n))})})),(0,v.A)(this,"_onChangeDashArray",(e=>{const t=fc.A.find((t=>t.id===e));return this.props.updateAnnotation({strokeDashArray:void 0!==t?t.dashArray:null})})),(0,v.A)(this,"_onChangeEndLineCap",(e=>{const{annotation:t}=this.props,n={};return"lineCaps"in t&&t.lineCaps&&null!=t.lineCaps.start&&(n.start=t.lineCaps.start),"none"!==e&&(n.end=e),this.props.updateAnnotation({lineCaps:n,boundingBox:this.calculateBoundingBox(t.set("lineCaps",n))})})),(0,v.A)(this,"LineCapSelectButton",(function(t,n){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3?arguments[3]:void 0;return i=>{let{btnComponentProps:a,selectedItem:s}=i;const l=s?.label??"",c=t(Sc(l));return(0,ee.jsxs)(pe.A,{is:"div",...a,className:p()("PSPDFKit-Input-Dropdown-Button",xc().selectBox,e.props.styles.startLineCapSelect),name:"clickableBox",ref:e=>{a.ref(e),"function"==typeof o?o(e):o&&(o.current=e)},children:[(0,ee.jsx)(_c,{itemId:l,isEnd:r,label:c}),(0,ee.jsx)("div",{children:(0,we.A)({type:"caret-"+n,style:{width:12,height:12,flexBasis:12,marginLeft:3,strokeWidth:0},className:p()(xc().dropdownIcon)})})]})}})),(0,v.A)(this,"LineCapItem",(function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n=>{let{item:r,state:o,itemComponentProps:i,ref:a}=n;const s=r?.label??"",l=e(Sc(s));return(0,ee.jsx)(pe.A,{is:"div",className:p()(bc().root,vc().root,o?.includes("selected")&&xc().isSelected,o?.includes("focused")&&xc().isSelected),...i,ref:a,children:(0,ee.jsx)(_c,{label:l,isEnd:t,itemId:s})})}})),(0,v.A)(this,"DashArrayButton",((e,t)=>n=>{let{btnComponentProps:r,selectedItem:o}=n;const i=o?.label??"",a=e(Sc(i));return(0,ee.jsxs)(pe.A,{is:"div",...r,ref:r.ref,className:p()("PSPDFKit-Input-Dropdown-Button",xc().selectBox,this.props.styles.strokeDashArraySelect),name:"clickableBox",children:[(0,ee.jsx)(Cc,{label:a,itemId:i}),(0,ee.jsx)("div",{children:(0,we.A)({type:"caret-"+t,style:{width:12,height:12,flexBasis:12,marginLeft:3,strokeWidth:0},className:p()(xc().dropdownIcon)})})]})})),(0,v.A)(this,"DashArrayItem",(e=>t=>{let{item:n,state:r,itemComponentProps:o,ref:i}=t;const a=n?.label??"",s=e(Sc(a));return(0,ee.jsx)(pe.A,{is:"div",className:p()(bc().root,vc().root,r?.includes("selected")&&xc().isSelected,r?.includes("focused")&&xc().isSelected),ref:i,...o,children:(0,ee.jsx)(Cc,{label:s,itemId:a})})})),(0,v.A)(this,"_startButton",this.LineCapSelectButton(this.props.intl.formatMessage,this.props.caretDirection,!1,this.props.innerRef)),(0,v.A)(this,"_endButton",this.LineCapSelectButton(this.props.intl.formatMessage,this.props.caretDirection,!0)),(0,v.A)(this,"_startItem",this.LineCapItem(this.props.intl.formatMessage)),(0,v.A)(this,"_endItem",this.LineCapItem(this.props.intl.formatMessage,!0)),(0,v.A)(this,"_dashArrayButton",this.DashArrayButton(this.props.intl.formatMessage,this.props.caretDirection)),(0,v.A)(this,"_dashArrayItem",this.DashArrayItem(this.props.intl.formatMessage))}render(){const{intl:{formatMessage:e},styles:t,annotation:n,caretDirection:r}=this.props,{strokeDashArray:o}=n,i=Ye.JY.LINE_CAP_PRESETS,a={start:"none",end:"none"};"lineCaps"in n&&n.lineCaps&&(hc.b.includes(n.lineCaps.start)&&(a.start=n.lineCaps.start),hc.b.includes(n.lineCaps.end)&&(a.end=n.lineCaps.end)),i.includes(a.start)||(a.start="N/A"),i.includes(a.end)||(a.end="N/A");const s=i.map((e=>({value:e,label:e,className:`PSPDFKit-LineCap-${e.replace(" ","")}`}))),l=o instanceof Array&&2===o.length?fc.A.find((e=>2===e.dashArray.length&&e.dashArray[0]===o[0]&&e.dashArray[1]===o[1])):fc.A[0],c=fc.A.map((e=>({value:e.id,label:e.id,className:`PSPDFKit-DashArray-${e.id.replace(" ","")}`})));return(0,ee.jsx)("div",{className:t.controlWrapper,children:(0,ee.jsxs)("div",{className:t.control,children:[(0,ee.jsx)(mc.A,{items:s,value:{value:a.start,label:a.start},discreteDropdown:!1,isActive:!1,caretDirection:r,accessibilityLabel:e(be.A.startLineCap),className:p()("PSPDFKit-Annotation-Toolbar-StartLineCap",t.startLineCapSelect,"PSPDFKit-Toolbar-DropdownGroup","PSPDFKit-Toolbar-DropdownGroup-Toolbar"),menuClassName:p()(t.dropdownMenu,t.lineCapsDashArrayMenu),maxCols:5,itemWidth:54,ButtonComponent:this._startButton,ItemComponent:this._startItem,onSelect:(e,t)=>{t.value&&this._onChangeStartLineCap(t.value)},frameWindow:this.props.frameWindow}),(0,ee.jsx)(mc.A,{items:c,value:l?{label:l.id,value:l.id}:{label:"solid",value:"solid"},discreteDropdown:!1,isActive:!1,caretDirection:r,accessibilityLabel:e(be.A.strokeDashArray),className:p()("PSPDFKit-Annotation-Toolbar-DashArray",t.strokeDashArraySelect,"PSPDFKit-Toolbar-DropdownGroup","PSPDFKit-Toolbar-DropdownGroup-Toolbar"),menuClassName:p()(t.dropdownMenu,t.lineCapsDashArrayMenu),itemWidth:76,ButtonComponent:this._dashArrayButton,ItemComponent:this._dashArrayItem,onSelect:(e,t)=>{t.value&&this._onChangeDashArray(t.value)},frameWindow:this.props.frameWindow}),(0,ee.jsx)(mc.A,{items:s,value:{label:a.end,value:a.end},discreteDropdown:!1,isActive:!1,caretDirection:r,accessibilityLabel:e(be.A.endLineCap),className:p()("PSPDFKit-Annotation-Toolbar-EndLineCap",t.endLineCapSelect,"PSPDFKit-Toolbar-DropdownGroup","PSPDFKit-Toolbar-DropdownGroup-Toolbar"),menuClassName:p()(t.dropdownMenu,t.lineCapsDashArrayMenu),maxCols:5,itemWidth:54,ButtonComponent:this._endButton,ItemComponent:this._endItem,onSelect:(e,t)=>{t.value&&this._onChangeEndLineCap(t.value)},frameWindow:this.props.frameWindow})]})})}}const kc=Ec,zc=(0,he.YK)({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"}});var Pc;const Ac=74,Dc={width:54,height:13.5,fill:"transparent"};const Tc=xe.lY*xe.Ss;function Ic(e){let{label:t,element:n}=e;return(0,ee.jsxs)(u.Fragment,{children:[(0,ee.jsx)(o.s6,{tag:"div",children:t}),n]})}class Mc extends u.PureComponent{constructor(){super(...arguments),(0,v.A)(this,"state",{calculateShapeBoundingBox:(0,L.s3)(this.props.annotation.constructor)}),(0,v.A)(this,"DashArrayButton",(e=>{let{btnComponentProps:t,selectedItem:n}=e;const r=n?.label??"solid",o=this.props.intl.formatMessage(Oc[r]),i=this._lineStyleOptions.get(r);return(0,ee.jsxs)(pe.A,{is:"div",...t,className:p()("PSPDFKit-Input-Dropdown-Button",xc().selectBox,this.props.styles.strokeDashArraySelect),name:"clickableBox",ref:e=>{t.ref(e),"function"==typeof this.props.innerRef?this.props.innerRef(e):this.props.innerRef&&(this.props.innerRef.current=e)},children:[(0,ee.jsx)(Ic,{label:o,element:i}),(0,ee.jsx)("div",{children:(0,we.A)({type:"caret-"+this.props.caretDirection,style:{width:12,height:12,flexBasis:12,marginLeft:3,strokeWidth:0},className:p()(xc().dropdownIcon)})})]})})),(0,v.A)(this,"DashArrayItem",(e=>{let{item:t,state:n,itemComponentProps:r,ref:o}=e;const i=t?.label??"solid",a=this.props.intl.formatMessage(Oc[i]),s=this._lineStyleOptions.get(i);return(0,ee.jsx)(pe.A,{is:"div",className:p()(bc().root,vc().root,n?.includes("selected")&&xc().isSelected,n?.includes("focused")&&xc().isSelected),...r,ref:o,children:(0,ee.jsx)(Ic,{label:a,element:s})})})),(0,v.A)(this,"_onChange",((e,t)=>{const{value:n}=t,{annotation:r}=this.props,o="cloudy"===n?xe.lY:0,i=fc.A.find((e=>e.id===n)),a=((e,t,n)=>{if(e.constructor===ie.Go||e.constructor===ie.Zx){if(t>0&&!e.cloudyBorderIntensity)return e.boundingBox.grow(Tc+e.strokeWidth/2);if(!t&&e.cloudyBorderIntensity>0)return e.boundingBox.grow(-(Tc+e.strokeWidth/2))}return e.constructor===ie.Si?n(e.set("cloudyBorderIntensity",t)):n(e)})(r,o,this.state.calculateShapeBoundingBox);return this.props.updateAnnotation({strokeDashArray:void 0!==i&&Array.isArray(i.dashArray)&&2===i.dashArray.length?i.dashArray:null,cloudyBorderIntensity:o,cloudyBorderInset:o?k.Yy.fromValue(Tc+r.strokeWidth/2):r.cloudyBorderInset,boundingBox:a})})),(0,v.A)(this,"_lineStyleOptions",function(){const e=new Map;return fc.A.forEach((t=>{e.set(t.id,(0,ee.jsx)("svg",{viewBox:"0 0 16 4",style:Dc,children:(0,ee.jsx)("line",{x1:"0",y1:"2",x2:"16",y2:"2",strokeDasharray:t.dashArray})},t.id))})),e.set("cloudy",Pc||(Pc=(0,ee.jsx)("svg",{viewBox:"0 0 16 4",style:Dc,children:(0,ee.jsx)("path",{d:"M 1 2.23 A 2.125 2.125 0 0 1 4.67 1.68 A 2.125 2.125 0 0 0 4.35 2.23 A 2.125 2.125 0 0 1 8 1.68 A 2.125 2.125 0 0 0 7.68 2.23 A 2.125 2.125 0 0 1 11.33 1.68 A 2.125 2.125 0 0 0 11.02 2.23 A 2.125 2.125 0 1 1 14.14 4.80 A 2.125 2.125 0 0 0 13.55 4.54"})},"cloudy"))),e}(this.props.intl.formatMessage))}static getDerivedStateFromProps(e){return{calculateShapeBoundingBox:(0,L.s3)(e.annotation.constructor)}}render(){const{intl:{formatMessage:e},styles:t,annotation:n,frameWindow:r}=this.props,{strokeDashArray:o,cloudyBorderIntensity:i}=n,a=Array.isArray(o)&&2===o.length&&fc.A.find((e=>2===e.dashArray.length&&e.dashArray[0]===o[0]&&e.dashArray[1]===o[1])),s=i>0?a||i!==xe.lY?"":"cloudy":a?a.id:o?"":"solid",l=Array.from(this._lineStyleOptions.keys()).map((e=>({label:e,value:e,className:`PSPDFKit-LineStyle-${Oc[e??"solid"].id}`})));return(0,ee.jsx)("div",{className:t.controlWrapper,children:(0,ee.jsx)("div",{className:t.control,children:(0,ee.jsx)(mc.A,{items:l,value:{label:s||"solid",value:s||"solid"},discreteDropdown:!1,isActive:!1,caretDirection:this.props.caretDirection,accessibilityLabel:e(be.A.strokeDashArray),className:p()("PSPDFKit-Annotation-Toolbar-LineStyle",t.strokeDashArraySelect,"PSPDFKit-Toolbar-DropdownGroup","PSPDFKit-Toolbar-DropdownGroup-Toolbar"),menuClassName:p()(t.dropdownMenu,t.strokeDashArrayMenu),maxCols:1,itemWidth:Ac,ButtonComponent:this.DashArrayButton,ItemComponent:this.DashArrayItem,onSelect:this._onChange,frameWindow:r})})})}}const Nc=Mc,Oc=(0,he.YK)({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"}});var jc=n(60107);const Rc=u.forwardRef(((e,t)=>{const n=(0,s.d4)((e=>e.shadowRoot));let r=[],o=!1;Array.isArray(Ye.JY.LINE_WIDTH_PRESETS)&&(r=Ye.JY.LINE_WIDTH_PRESETS,o=!0);let i=!1,a=!1;e.annotation instanceof k.Eo&&(i=!0),e.annotation instanceof k.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,ee.jsx)("div",{className:c.controlWrapper,children:(0,ee.jsx)("div",{className:c.control,children:(0,ee.jsx)(jc.A,{name:"lineWidth",accessibilityLabel:e.accessibilityLabel||l(be.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(be.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 k.Zx||e.annotation instanceof k.Go){const t=n/2-e.annotation.strokeWidth/2,r=e.annotation.cloudyBorderInset?new k.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,L.s3)(e.annotation.constructor)(e.annotation.set("strokeWidth",n)),...r?{cloudyBorderInset:r}:null})}return e.updateAnnotation({strokeWidth:n,boundingBox:(0,L.s3)(e.annotation.constructor)(e.annotation.set("strokeWidth",n))})},caretDirection:h,innerRef:t,shadowRoot:n})})})})),Fc=Rc;class Bc extends u.PureComponent{constructor(){super(...arguments),(0,v.A)(this,"updateAnnotation",(e=>this.props.updateAnnotation({opacity:e/100}))),(0,v.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,ee.jsx)("div",{className:t.controlWrapper,children:(0,ee.jsx)("div",{className:t.control,children:(0,ee.jsx)(jc.A,{name:"opacity",accessibilityLabel:e(be.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 Lc={LineCapsDashArrayComponent:kc,LineStyleComponent:Nc,StrokeWidthComponent:Fc,OpacityComponent:Bc},Vc=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,we.A)({icon:a,type:n,className:p()(void 0!==e.children&&bc().withLabel,"PSPDFKit-Tool-Button-Icon",e.iconClassName)}),v=e.children||(g?null:l),y=p()(bc().root,r&&bc().isActive,o&&bc().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,ee.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,ee.jsx)("span",{children:v})]});return e.presentational?(0,ee.jsx)("div",{children:(0,ee.jsx)("div",{className:y,title:l,"aria-hidden":"true",role:"presentation",children:g})}):e.disabled?(0,ee.jsx)("div",{className:p()({[bc().disabledWrapper]:e.disabled}),children:b}):b}))),Kc=u.forwardRef((function(e,t){const{selected:n,disabled:r}=e,o=p()(vc().root,n&&vc().isActive,r&&vc().isDisabled,"string"==typeof e.className&&e.className,"PSPDFKit-Toolbar-Button",n&&"PSPDFKit-Toolbar-Button-active",r&&"PSPDFKit-Toolbar-Button-disabled");return(0,ee.jsx)(Vc,{...e,className:o,iconClassName:"PSPDFKit-Toolbar-Button-Icon",ref:t,itemComponentProps:e.itemComponentProps})}));var $c=n(72570),Hc=n(58619),Uc=n.n(Hc);let qc=0;const Wc=u.forwardRef((function(e,t){const n=u.useRef(qc++),{label:r,accessibilityLabel:i,onUpdate:a,onBlur:s,onFocus:l,onKeyDown:c,textStyles:d,disabled:h=!1,autoFocus:f=!0,name:m="name"}=e,g=u.useCallback((e=>{a&&a(e.target.value)}),[a]);return(0,ee.jsx)("div",{className:e.styles.controlWrapper,children:(0,ee.jsx)("div",{className:e.styles.control,children:(0,ee.jsxs)("div",{className:`PSPDFKit-Text-Input ${e.className||""} ${Uc().root}`,children:[e.label?(0,ee.jsx)("label",{htmlFor:`${Uc().root}-${n.current}`,className:Uc().label,children:r}):i?(0,ee.jsx)(o.s6,{tag:"label",htmlFor:`${Uc().root}-${n.current}`,children:i}):null,(0,ee.jsx)(o.ks,{className:p()(Uc().input,e.styles.input),value:e.value,onChange:g,onBlur:s,onFocus:l,onKeyDown:c,autoFocus:f,selectTextOnFocus:!0,name:m,placeholder:e.placeholder,autoComplete:"off",id:`${Uc().root}-${n.current}`,ref:t,style:d,disabled:h})]})})})}));var Gc=n(86601),Yc=n.n(Gc);const Zc=u.forwardRef((function(e,t){const{intl:n,isEditing:r,showAnnotationNotes:o,isAnnotationNoteActive:i,hasAnnotationNote:a,onAnnotationNotePress:s,disabled:l}=e,{formatMessage:c}=n;return(0,ee.jsx)(ee.Fragment,{children:o&&!r?(0,ee.jsx)(Kc,{type:a||i?"note":"note-add",title:c(be.A.noteAnnotation),className:p()(Yc().button,Yc().annotationNoteButton,{[Yc().disableEditing]:l}),onPress:l?void 0:s,selected:i,ref:t}):null})}));var Jc=n(59663),Xc=n(75401),Qc=n.n(Xc);const eu=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,Qc().root,{[Qc().disabled]:i,[Qc().annotationToolbar]:"annotationToolbar"===e.variant}),l=e.onPress?t=>{let{nativeEvent:n}=t;e.onPress&&e.onPress(n)}:void 0;return(0,ee.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})}))),tu=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,ee.jsx)(eu,{...e,className:o,ref:t,itemComponentProps:e.itemComponentProps})}));var nu=n(18891),ru=n.n(nu);function ou(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;return(0,ee.jsx)(al,{children:d&&(0,ee.jsx)(el,{timeout:{enter:window["PSPDFKit-disable-animations"]?0:150,exit:window["PSPDFKit-disable-animations"]?0:120},classNames:{enter:ru().slideRightEnter,enterActive:ru().slideRightEnterActive,enterDone:ru().slideRightEnterDone,exit:ru().slideRightExit,exitActive:ru().slideRightExitActive},onEntered:s,children:(0,ee.jsxs)("div",{className:p()({[ru().responsiveGroup]:!0,[ru().primary]:r,[ru().secondary]:!r,[ru().stickToBottom]:"bottom"===o,"PSPDFKit-Toolbar-Responsive-Group":!0},l),role:"dialog","aria-label":a,children:[(0,ee.jsx)(Kc,{type:"custom",title:c(be.A.close),className:ru().button,onPress:n,children:(0,ee.jsx)("div",{className:ru().animatedArrow})}),(0,ee.jsx)("div",{style:{flex:1}}),(0,ee.jsx)("div",{className:ru().items,children:t})]})})})}const iu=(0,he.j4)(ou);function au(e){return"custom"===e.type}function su(e){return au(e)?`custom-${e.id}`:e.group}const lu=e=>"icon"in e?"string"==typeof e.icon?/<svg/i.test(e.icon)?(0,ee.jsx)(Ae.A,{className:Yc().customIconSvg,src:e.icon,role:"presentation"}):(0,ee.jsx)("img",{alt:e.title,src:e.icon,role:"presentation"}):e.icon instanceof Node?(0,ee.jsx)(tu,{node:e.icon,className:e.iconClassName,onPress:t=>e.onIconPress?.(t,e.id),title:e.title,disabled:e.disabled},e.id):void 0:null,cu=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(au(e))return!1;if("spacer"===e.type)return!0;return!!n.find((t=>t.type===e.type))?.hidden}))),[n,t]),f=a?n.find((e=>su(e)===a))||t.filter(au).find((e=>su(e)===a)):void 0,m=(0,u.useMemo)((()=>((e,t,n)=>{if(n)return e.map((e=>{const n=!au(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===su(e)))})(t,n,a)),[t,a,n]);if(m)return(0,ee.jsx)("div",{className:Yc().right,children:(0,ee.jsx)(iu,{onClose:()=>o(null),isPrimary:!1,position:c,onEntered:l,accessibilityLabel:m?m.title:void 0,className:Yc().expanded,children:(0,Yn.sb)(m.node)?(0,ee.jsx)(tu,{node:m.node,className:m.className,onPress:m.onPress,title:m.title,disabled:m.disabled}):(0,ee.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,ee.jsx)("form",{className:Yc().form,onSubmit:Yn.wo,children:t.map(((e,t)=>{if("spacer"===e.type)return(0,ee.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(au(e)){const n="node"in e&&!!e.node&&(0,ee.jsx)("div",{role:"button",ref:r(su(e),f,0===t&&!a),children:(0,ee.jsx)(tu,{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,ee.jsx)("div",{role:"button",className:p()(Yc().button,vc().root,bc().root,`${e.className}-Icon`),onClick:t=>{"custom"===e.type&&e.node&&o(`custom-${e.id}`),e.onPress?.(t,e.id)},ref:r(su(e),f,c&&!a),title:e.title,children:lu(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,ee.jsxs)(u.Fragment,{children:[(0,ee.jsxs)("div",{className:p()(l.className,{[Yc().disableEditing]:l.disabled}),children:[(0,ee.jsx)(Kc,{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(su(l),f,c&&!a)}),l.node]}),!l.hideSeparator&&(0,ee.jsx)("div",{className:Yc().separator})]},l.type):(0,ee.jsx)("div",{className:p()(l.className,{[Yc().disableEditing]:l.disabled},e.className),onClick:t=>{e.onPress?.(t.nativeEvent,e.id)},title:e.title||l.title,children:l.node},l.type)}))})};var uu=n(3322);function du(e,t){return t===e}function pu(e,t,n){return n===e&&!t}const hu={[F.O.INK]:["ink","highlighter"],[F.O.SHAPE_LINE]:["line","arrow"],[F.O.INK_ERASER]:"ink-eraser",[F.O.TEXT_HIGHLIGHTER]:"text-highlighter",[F.O.SHAPE_RECTANGLE]:["rectangle","cloudy-rectangle","dashed-rectangle"],[F.O.SHAPE_ELLIPSE]:["ellipse","cloudy-ellipse","dashed-ellipse"],[F.O.SHAPE_POLYGON]:["polygon","cloudy-polygon","dashed-polygon"],[F.O.SHAPE_POLYLINE]:"polyline",[F.O.NOTE]:"note",[F.O.TEXT]:"text",[F.O.CALLOUT]:"callout",[F.O.LINK]:"link",[F.O.MEASUREMENT]:"measurement"};function fu(e){return e.find((e=>"delete"===e.type))?.icon}const mu=u.memo((function(e){const{annotation:t,isEditing:n,dispatch:r,canEditAnnotationCP:i,canDeleteSelectedAnnotationCP:a,expandedGroup:l,btnFocusRefIfFocusedGroup:c,btnFocusRefIfFocusedItem:u,lastToolbarActionUsedKeyboard:d,annotationToolbarItems:h,keepSelectedTool:f}=e,m=(0,s.d4)((e=>e.shadowRoot)),g=(0,yr.Kw)((o=>{i&&(t.rects.size>0&&n?(r((0,at.M)(o)),r((0,Pt.eW)()),r((0,ve.od)())):e.updateAnnotation(o,"redaction"))})),v=(0,yr.Kw)((()=>(r((0,Pt.l8)()),new Promise(((e,t)=>(r((0,Jc.g)((()=>{r((0,Pt.gp)()),e()}),(e=>{r((0,Pt.gp)()),t(e)}))),e)))))),{position:y,intl:b}=e,{formatMessage:w}=b,x={updateAnnotation:g,annotation:t,styles:Yc(),intl:b,caretDirection:"bottom"===y?"up":"down"},S=[{node:(0,ee.jsx)($c.A,{...x,record:t,colorProperty:"fillColor",onChange:g,className:"PSPDFKit-Redaction-Annotation-Toolbar-Fill-Color",accessibilityLabel:w(be.A.fillColor),removeTransparent:!0,keepOpacity:!0,frameWindow:e.frameWindow,innerRef:c("fillColor",!l),lastToolbarActionUsedKeyboard:d,annotationToolbarColorPresets:e.annotationToolbarColorPresets}),title:w(be.A.fillColor),type:"fill-color",className:p()(Yc().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-Fill-Color"),group:"fillColor",disabled:!i,hideSeparator:!0},{node:(0,ee.jsxs)("div",{style:{display:"flex"},children:[(0,ee.jsx)(Wc,{accessibilityLabel:w(be.A.overlayText),placeholder:w(be.A.insertOverlayText),className:Yc().overlayTextInput,value:t.overlayText||"",onUpdate:e=>{g({overlayText:e})},styles:{...Yc(),controlWrapper:Yc().controlWrapperAutoWidth,input:Yc().overlayInput},ref:c("overlayText")}),(0,ee.jsx)($c.A,{...x,record:t,colorProperty:"color",onChange:g,className:"PSPDFKit-Redaction-Annotation-Toolbar-Color",removeTransparent:!0,accessibilityLabel:w(be.A.color),keepOpacity:!0,styles:{...Yc(),controlWrapper:Yc().controlWrapperAutoWidth},frameWindow:e.frameWindow,annotationToolbarColorPresets:e.annotationToolbarColorPresets}),(0,ee.jsx)(o.PY,{label:w(be.A.repeatText),value:Boolean(t.repeatOverlayText),onUpdate:e=>{g({repeatOverlayText:e})},styles:{...Yc(),controlWrapper:Yc().controlWrapperAutoWidth}})]}),title:w(be.A.overlayText),group:"overlayText",className:p()(Yc().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-Overlay-Text",Yc().overlayTextMargin),disabled:!e.canEditAnnotationCP,type:"overlay-text"},{node:(0,ee.jsx)($c.A,{...x,record:t,colorProperty:"outlineColor",onChange:g,className:"PSPDFKit-Redaction-Annotation-Toolbar-Outline-Color",accessibilityLabel:w(be.A.outlineColor),frameWindow:e.frameWindow,innerRef:c("outlineColor"),annotationToolbarColorPresets:e.annotationToolbarColorPresets}),title:w(be.A.outlineColor),group:"outlineColor",className:p()(Yc().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-Outline-Color"),disabled:!e.canEditAnnotationCP,type:"outline-color"},{node:(0,ee.jsx)(Lc.OpacityComponent,{...x,innerRef:c("opacity"),shadowRoot:m}),title:w(be.A.opacity),group:"opacity",className:p()(Yc().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-Opacity"),disabled:!e.canEditAnnotationCP,type:"opacity"},{node:(0,ee.jsx)(Kc,{type:"delete",icon:fu(h),title:w(be.A.delete),className:p()("PSPDFKit-Redaction-Annotation-Toolbar-Button-Delete",Yc().button,Yc().deleteButton,{[Yc().disabledButton]:!a}),onPress:a?()=>e.deleteAnnotation():()=>{}}),type:"delete",hidden:null===t.pageIndex||!!l||f},{node:(0,ee.jsx)("div",{className:p()(Yc().applyRedactionsWrapper),children:(0,ee.jsx)(Kc,{type:"applyRedaction",title:w(be.A.applyRedactions),className:p()("PSPDFKit-Redaction-Annotation-Toolbar-Button-Apply-Redactions",Yc().button,Yc().buttonNoBorder,Yc().applyRedactionsButton),onPress:v})}),type:"apply-redactions",hidden:null===t.pageIndex||!!l||f},{node:(0,ee.jsx)(Zc,{intl:b,isEditing:e.isEditing,showAnnotationNotes:e.showAnnotationNotes,hasAnnotationNote:e.hasAnnotationNote,isAnnotationNoteActive:e.isAnnotationNoteActive,onAnnotationNotePress:e.onAnnotationNotePress,disabled:!e.canEditAnnotationCP}),disabled:!e.canEditAnnotationCP,hidden:!e.showAnnotationNotes||n,type:"annotation-note"}],_={"overlay-text":t.repeatOverlayText?"redaction-text-repeating":"redaction-text-single","outline-color":"border-color"},C={presentational:e.viewportWidth>xe.eV,disabled:Boolean(l),className:p()(Yc().button,Yc().buttonNoBorder)};return(0,ee.jsx)("div",{className:p()("PSPDFKit-Redaction-Annotation-Toolbar",Yc().content),children:(0,ee.jsx)(cu,{annotationToolbarItems:h,builtInItems:S,btnFocusRefIfFocusedItem:u,onGroupExpansion:e.onGroupExpansion,builtInToolbarProps:C,hasDesktopLayout:e.hasDesktopLayout,expandedGroup:l,onGroupTransitionEnded:e.onGroupTransitionEnded,position:y,typeMap:_})})}));const gu=mu,vu=u.memo((function(e){const{annotation:t,intl:n,position:r,expandedGroup:o,btnFocusRefIfFocusedGroup:i,btnFocusRefIfFocusedItem:a,canDeleteSelectedAnnotationCP:l,annotationToolbarItems:c}=e,u=(0,s.d4)((e=>e.shadowRoot)),d=(0,yr.Kw)((t=>e.updateAnnotation(t,"stamp"))),{formatMessage:h}=n,f=[{node:(0,ee.jsx)(Lc.OpacityComponent,{intl:n,type:"Image",styles:Yc(),annotation:t,updateAnnotation:d,caretDirection:"bottom"===r?"up":"down",innerRef:i("opacity",!o),shadowRoot:u}),title:h(be.A.opacity),type:"opacity",disabled:!e.canEditAnnotationCP,group:"opacity",className:p()(Yc().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-Opacity")},{node:(0,ee.jsx)(Kc,{type:"delete",icon:fu(c),title:h(be.A.delete),className:p()("PSPDFKit-Stamp-Annotation-Toolbar-Button-Delete",Yc().button,Yc().deleteButton,{[Yc().disabledButton]:!l}),onPress:l?()=>e.deleteAnnotation():()=>{}}),type:"delete",disabled:null===e.annotation.pageIndex},{node:(0,ee.jsx)(Zc,{intl:e.intl,showAnnotationNotes:e.showAnnotationNotes,hasAnnotationNote:e.hasAnnotationNote,isAnnotationNoteActive:e.isAnnotationNoteActive,onAnnotationNotePress:e.onAnnotationNotePress,disabled:!e.canEditAnnotationCP}),type:"annotation-note",disabled:!e.showAnnotationNotes}];return(0,ee.jsx)("div",{className:p()("PSPDFKit-Stamp-Annotation-Toolbar",Yc().content),children:(0,ee.jsx)(cu,{annotationToolbarItems:c,builtInItems:f,btnFocusRefIfFocusedItem:a,onGroupExpansion:e.onGroupExpansion,builtInToolbarProps:{className:Yc().button},hasDesktopLayout:e.hasDesktopLayout,expandedGroup:o,onGroupTransitionEnded:e.onGroupTransitionEnded,position:r})})}));const yu=vu,bu=u.memo((function(e){const{annotation:t,intl:n,position:r,expandedGroup:o,btnFocusRefIfFocusedGroup:i,btnFocusRefIfFocusedItem:a,canDeleteSelectedAnnotationCP:l,annotationToolbarItems:c}=e,u=(0,s.d4)((e=>e.shadowRoot)),d=(0,yr.Kw)((t=>e.updateAnnotation(t,"image"))),{formatMessage:h}=n,f=[{node:(0,ee.jsx)(Lc.OpacityComponent,{intl:n,type:"Image",styles:Yc(),annotation:t,updateAnnotation:d,caretDirection:"bottom"===r?"up":"down",innerRef:i("opacity",!o),shadowRoot:u}),title:h(be.A.opacity),type:"opacity",group:"opacity",disabled:!e.canEditAnnotationCP,hidden:e.areOnlyElectronicSignaturesEnabled,className:p()(Yc().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-Opacity")},{node:(0,ee.jsx)(Kc,{type:"counterclockwise",title:h(be.A.rotateCounterclockwise),className:`PSPDFKit-Image-Annotation-Toolbar-Button-Rotate PSPDFKit-Image-Annotation-Toolbar-Button-Rotate-Counterclockwise ${Yc().button} ${Yc().rotateButton}`,onPress:()=>{e.selectedAnnotationPageSize&&e.updateAnnotation((0,R._w)(e.annotation,e.selectedAnnotationPageSize,R.Y5.COUNTERCLOCKWISE))}}),type:"counterclockwise-rotation",disabled:!e.canEditAnnotationCP,hidden:e.areOnlyElectronicSignaturesEnabled},{node:(0,ee.jsx)(Kc,{type:"clockwise",title:h(be.A.rotateClockwise),className:`PSPDFKit-Image-Annotation-Toolbar-Button-Rotate PSPDFKit-Image-Annotation-Toolbar-Button-Rotate-Clockwise ${Yc().button} ${Yc().rotateButton}`,onPress:()=>{e.selectedAnnotationPageSize&&e.updateAnnotation((0,R._w)(e.annotation,e.selectedAnnotationPageSize,R.Y5.CLOCKWISE))}}),type:"clockwise-rotation",disabled:!e.canEditAnnotationCP,hidden:e.areOnlyElectronicSignaturesEnabled},{node:(0,ee.jsx)(Kc,{type:"delete",icon:fu(c),title:h(be.A.delete),className:p()("PSPDFKit-Image-Annotation-Toolbar-Button-Delete",Yc().button,Yc().deleteButton,{[Yc().disabledButton]:!l}),onPress:l?()=>e.deleteAnnotation():()=>{}}),type:"delete",hidden:null===e.annotation.pageIndex||!!o},{node:(0,ee.jsx)(Zc,{intl:e.intl,showAnnotationNotes:e.showAnnotationNotes,hasAnnotationNote:e.hasAnnotationNote,isAnnotationNoteActive:e.isAnnotationNoteActive,onAnnotationNotePress:e.onAnnotationNotePress,disabled:!e.canEditAnnotationCP}),type:"annotation-note",hidden:!e.showAnnotationNotes||e.areOnlyElectronicSignaturesEnabled}];return(0,ee.jsx)("div",{className:p()("PSPDFKit-Image-Annotation-Toolbar",Yc().content),children:(0,ee.jsx)(cu,{annotationToolbarItems:c,builtInItems:f,btnFocusRefIfFocusedItem:a,onGroupExpansion:e.onGroupExpansion,builtInToolbarProps:{className:Yc().button},hasDesktopLayout:e.hasDesktopLayout,expandedGroup:o,onGroupTransitionEnded:e.onGroupTransitionEnded,position:r})})}));const wu=bu;var xu=n(97328),Su=n.n(xu);const _u=["Tab","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"];class Cu extends u.Component{constructor(){super(...arguments),(0,v.A)(this,"state",{keyboardFocus:!!this.props.lastToolbarActionUsedKeyboard}),(0,v.A)(this,"_handleKeyUp",(e=>{_u.includes(e.key)&&this.setState({keyboardFocus:!0})})),(0,v.A)(this,"_handlePointerUp",(()=>{this.setState({keyboardFocus:!1})})),(0,v.A)(this,"shouldComponentUpdate",ye.E)}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,ee.jsx)("div",{className:p()("PSPDFKit-Input-ColorPicker",this.props.className,Su().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()({[Su().input]:!0,[Su().inputIsActive]:a,"PSPDFKit-Input-ColorPicker-Label":!0,"PSPDFKit-Input-ColorPicker-Label-active":a,[Su().focusRing]:this.state.keyboardFocus&&a}),l=p()({[Su().swatch]:!0,[Su().swatchIsTransparent]:!e.color,[Su().swatchIsWhite]:!e.color||e.color.equals(k.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!=be.A[c]&&(u=r(be.A[c])));const d=e.color&&e.color.toCSSValue();return(0,ee.jsxs)("label",{className:s,title:u,"aria-label":u,children:[(0,ee.jsx)("span",{className:l,style:{backgroundColor:d||"transparent"}}),(0,ee.jsxs)(o.s6,{children:[" ",u," "]}),(0,ee.jsx)(o.s6,{tag:"input",type:"radio",name:Su().root,value:i,checked:!!a,onChange:t=>{t.target.checked&&this.props.onClick(e.color)},ref:a&&n?n:void 0})]},i)}))})}}(0,v.A)(Cu,"defaultProps",{className:""});const Eu=(0,he.j4)(Cu);var ku=n(23660);const zu=u.forwardRef((function(e,t){let{value:n="normal",onChange:r,className:o,caretDirection:i,frameWindow:a}=e;const{formatMessage:s}=(0,he.tz)(),l=Object.keys(ku.N).map((e=>({value:e,label:e}))),c=u.useCallback(Pu(s,i),[s,i]),d=u.useCallback(Au(s),[s]);return(0,ee.jsxs)(u.Fragment,{children:[(0,ee.jsx)(mc.A,{items:l,value:{label:n,value:n},discreteDropdown:!1,isActive:!1,caretDirection:i,accessibilityLabel:s(be.A.blendMode),className:p()(Yc().blendModeSelect,o,"PSPDFKit-Toolbar-DropdownGroup","PSPDFKit-Toolbar-DropdownGroup-Toolbar"),menuClassName:Yc().dropdownMenu,ButtonComponent:c,ItemComponent:d,onSelect:(e,t)=>{if(t.value){const e=ku.N[t.value];r(e)}},frameWindow:a,ref:t}),(0,ee.jsx)("div",{className:p()(Yc().fontSizeNativeFlexbox),children:(0,ee.jsx)("div",{className:Yc().nativeDropdown,children:(0,ee.jsx)("select",{"aria-label":s(be.A.blendMode),className:"PSPDFKit-Input-Dropdown-Select",value:n,onChange:e=>{if(void 0!==e.target.value){const t=ku.N[e.target.value];r(t)}},ref:t,children:l.map((e=>(0,ee.jsx)("option",{value:e.value,disabled:e.disabled,children:s(Du[e.label])},e.value)))})})})]})})),Pu=(e,t)=>n=>{let{btnComponentProps:r,selectedItem:o}=n;return(0,ee.jsxs)(pe.A,{is:"div",...r,ref:r.ref,className:p()("PSPDFKit-Input-Dropdown-Button ",xc().selectBox,Yc().selectBox),style:{minWidth:"100px"},children:[(0,ee.jsx)("span",{children:o?.label?e(Du[o.label]):null}),(0,ee.jsx)("div",{children:(0,we.A)({type:"caret-"+t,style:{width:12,height:12,flexBasis:12},className:p()(xc().dropdownIcon)})})]})},Au=e=>t=>{let{item:n,state:r,itemComponentProps:o,ref:i}=t;return(0,ee.jsx)(pe.A,{is:"div",ref:i,className:p()(xc().item,{[xc().isSelected]:r?.includes("selected")||r?.includes("focused")}),name:n?.label,...o,children:n?.label?e(Du[n.label]):null})},Du=(0,he.YK)({normal:{id:"normal",defaultMessage:"Normal",description:"Blend Mode Normal"},multiply:{id:"multiply",defaultMessage:"Multiply",description:"Blend Mode Multiply"},screen:{id:"screenBlend",defaultMessage:"Screen",description:"Blend Mode Screen"},overlay:{id:"overlay",defaultMessage:"Overlay",description:"Blend Mode Overlay"},darken:{id:"darken",defaultMessage:"Darken",description:"Blend Mode Darken"},lighten:{id:"lighten",defaultMessage:"Lighten",description:"Blend Mode Lighten"},colorDodge:{id:"colorDodge",defaultMessage:"Color Dodge",description:"Blend Mode Color Dodge"},colorBurn:{id:"colorBurn",defaultMessage:"Color Burn",description:"Blend Mode Color Burn"},hardLight:{id:"hardLight",defaultMessage:"Hard Light",description:"Blend Mode Hard Light"},softLight:{id:"softLight",defaultMessage:"Soft Light",description:"Blend Mode Soft Light"},difference:{id:"difference",defaultMessage:"Difference",description:"Blend Mode Difference"},exclusion:{id:"exclusion",defaultMessage:"Exclusion",description:"Blend Mode Exclusion"},hue:{id:"hue",defaultMessage:"Hue",description:"Blend Mode Hue"},saturation:{id:"saturation",defaultMessage:"Saturation",description:"Blend Mode Saturation"},color:{id:"color",defaultMessage:"Color",description:"Blend Mode Color"},luminosity:{id:"luminosity",defaultMessage:"Luminosity",description:"Blend Mode Luminosity"}}),Tu=u.memo((function(e){const t=(0,yr.Kw)((t=>{const{annotation:n,isEditing:r,dispatch:o,variantAnnotationPresetID:i,canEditAnnotationCP:a}=e;if(a)if(n.rects.size>0&&r)o((0,at.M)(t)),o((0,Pt.D8)()),o((0,ve.od)());else{const r=i||G.Q4.get(n.constructor);e.updateAnnotation(t,r)}})),{position:n,annotation:r,expandedGroup:o,btnFocusRefIfFocusedGroup:i,btnFocusRefIfFocusedItem:a,canDeleteSelectedAnnotationCP:l,lastToolbarActionUsedKeyboard:c,annotationToolbarItems:u}=e,d=(0,s.d4)((e=>e.shadowRoot)),{formatMessage:h}=e.intl,f=Ye.JY.TEXT_MARKUP_COLOR_PRESETS,m=Ye.JY.HIGHLIGHT_COLOR_PRESETS,g=r instanceof k.ax?m:f,v=[{node:(0,ee.jsx)("div",{className:Yc().controlWrapper,children:(0,ee.jsx)("div",{className:Yc().control,children:(0,ee.jsx)(Eu,{className:"PSPDFKit-Text-Markup-Annotation-Toolbar-Color",accessibilityLabel:h(be.A.color),colorPresets:g,activeColor:r.color,onClick:e=>t({color:e}),innerRef:i("color",!o),lastToolbarActionUsedKeyboard:c})})}),title:h(be.A.color),group:"color",type:"color",disabled:!e.canEditAnnotationCP,className:p()(Yc().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-Color")},{node:(0,ee.jsx)(Lc.OpacityComponent,{intl:e.intl,type:"Text-Markup",styles:Yc(),annotation:r,updateAnnotation:e=>t(e),caretDirection:"bottom"===n?"up":"down",innerRef:i("opacity"),shadowRoot:d}),title:h(be.A.opacity),group:"opacity",type:"opacity",disabled:!e.canEditAnnotationCP,className:p()(Yc().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-Opacity")},{node:(0,ee.jsx)("div",{className:Yc().controlWrapper,children:(0,ee.jsx)("div",{className:Yc().control,children:(0,ee.jsx)(zu,{value:r.blendMode,className:"PSPDFKit-Text-Markup-Annotation-Toolbar-Blend-Mode",onChange:e=>t({blendMode:e}),caretDirection:"bottom"===n?"up":"down",frameWindow:e.frameWindow,ref:i("blendMode")})})}),title:h(be.A.blendMode),group:"blendMode",type:"blend-mode",disabled:!e.canEditAnnotationCP,className:p()(Yc().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-BlendMode")},{node:(0,ee.jsx)(Kc,{type:"delete",icon:fu(u),title:h(be.A.delete),className:p()("PSPDFKit-Text-Markup-Annotation-Toolbar-Button-Delete",Yc().button,Yc().deleteButton,{[Yc().disabledButton]:!l}),onPress:l?()=>e.deleteAnnotation():()=>{}}),type:"delete",hidden:null===e.annotation.pageIndex||!!o||e.isEditing||e.isTextComparison},{node:(0,ee.jsx)(Zc,{intl:e.intl,isEditing:e.isEditing,showAnnotationNotes:e.showAnnotationNotes,hasAnnotationNote:e.hasAnnotationNote,isAnnotationNoteActive:e.isAnnotationNoteActive,onAnnotationNotePress:e.onAnnotationNotePress,disabled:!e.canEditAnnotationCP}),type:"annotation-note",hidden:!e.showAnnotationNotes||e.isEditing}],y={className:Yc().button,presentational:e.viewportWidth>=xe.eV,disabled:!!o};return(0,ee.jsx)("div",{className:p()("PSPDFKit-Text-Markup-Annotation-Toolbar",Yc().content),children:(0,ee.jsx)(cu,{annotationToolbarItems:u,builtInItems:v,btnFocusRefIfFocusedItem:a,onGroupExpansion:e.onGroupExpansion,builtInToolbarProps:y,hasDesktopLayout:e.hasDesktopLayout,expandedGroup:o,onGroupTransitionEnded:e.onGroupTransitionEnded,position:n,typeMap:{color:"border-color"}})})}));const Iu=Tu,Mu=u.forwardRef((function(e,t){const{annotation:n,updateAnnotation:r,intl:i}=e,{formatMessage:a}=i,[s,l]=u.useState(!1),c=u.useCallback((e=>{"Tab"===e.key&&l(!0)}),[l]),d=u.useCallback((()=>{l(!1)}),[l]);return(0,ee.jsx)("div",{className:Yc().controlWrapper,children:(0,ee.jsx)("div",{className:`${Yc().control} PSPDFKit-Note-Annotation-Toolbar-Icons`,role:"radiogroup","aria-label":a(be.A.icon),onKeyUp:c,onPointerUp:d,onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||l(!1)},children:Object.keys(st.Qv).map(((e,i)=>{const l=st.ac[e],c=(0,N.Ow)(l),u=n.icon===e,d=p()(bc().root,Yc().noteIconLabel,Yc().button,Yc().icon,"PSPDFKit-Tool-Button",u&&"PSPDFKit-Tool-Button-active",`PSPDFKit-Note-Annotation-Icon-${c}`,{[Yc().isActive]:u,[Yc().focusRing]:u&&s});return(0,ee.jsxs)("label",{"aria-label":a(Nu[`icon${(0,Zt.ZH)(l)}`]),className:d,children:[(0,ee.jsx)(we.A,{type:`note/${l}`}),(0,ee.jsx)(o.s6,{tag:"input",type:"radio",name:Yc().radioInput,value:i,checked:u,onChange:t=>{t.target.checked&&r({icon:e})},ref:u&&t?t:void 0})]},`NoteAnnotationToolbarIcon-${e}`)}))})})})),Nu=(0,he.YK)({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"}}),Ou=u.memo((function(e){let{annotation:t,intl:n,updateAnnotation:r,isAnnotationReadOnly:o,deleteAnnotation:i,position:a,viewportWidth:s,expandedGroup:l,btnFocusRefIfFocusedGroup:c,btnFocusRefIfFocusedItem:u,canEditAnnotationCP:d,canDeleteSelectedAnnotationCP:h,keepSelectedTool:f,interactionMode:m,annotationToolbarItems:g,onGroupExpansion:v,hasDesktopLayout:y,onGroupTransitionEnded:b}=e;const{formatMessage:w}=n,x=Ye.JY.NOTE_COLOR_PRESETS,S=o(t)||t.locked,_=S||t instanceof hr.iU,C=null!==t.pageIndex&&!S,E=f&&m===F.O.NOTE,k=[{node:(0,ee.jsx)("div",{className:Yc().controlWrapper,children:(0,ee.jsx)("div",{className:Yc().control,children:(0,ee.jsx)(Eu,{className:"PSPDFKit-Note-Annotation-Toolbar-Color",accessibilityLabel:w(be.A.color),colorPresets:x,activeColor:t.color,onClick:e=>r({color:e}),innerRef:c("color")})})}),title:w(be.A.color),className:`${Yc().formGroup} PSPDFKit-Toolbox PSPDFKit-Toolbox-FillColor`,hidden:_,disabled:!d,onPress:()=>{},type:"color",group:"color",hideSeparator:!0},{node:(0,ee.jsx)(Mu,{annotation:t,updateAnnotation:r,intl:n,ref:c("note")}),title:w(be.A.icon),hidden:_,onPress:()=>{},disabled:!d,className:p()(Yc().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-NoteIcon"),type:"note-icon",group:"note"},{node:(0,ee.jsx)(Kc,{type:"delete",icon:fu(g),title:w(be.A.delete),className:p()("PSPDFKit-Note-Annotation-Toolbar-Button-Delete",Yc().button,Yc().deleteButton,{[Yc().disabledButton]:!h}),onPress:h?()=>i():()=>{}}),disabled:!h,hidden:E||!(C&&"note"!==l&&"color"!==l),type:"delete",onPress:()=>{},className:""}],z={className:Yc().button,presentational:s>xe.eV,disabled:!!l};return(0,ee.jsx)("div",{className:p()("PSPDFKit-Note-Annotation-Toolbar",Yc().content),children:(0,ee.jsx)(cu,{annotationToolbarItems:g,builtInItems:k,btnFocusRefIfFocusedItem:u,onGroupExpansion:v,builtInToolbarProps:()=>z,hasDesktopLayout:y,expandedGroup:l,onGroupTransitionEnded:b,position:a,typeMap:{"note-icon":"note",color:"fill-color"}})})}));const ju=Ou;var Ru=n(82142),Fu=n(81457);function Bu(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 Lu=a.ss({[ie.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"]},[ie.Zx.readableName]:Bu(!1),[ie.Go.readableName]:Bu(!1),[ie.MU.readableName]:Bu(!0),[ie.ug.readableName]:Bu(!0),[ie.Si.readableName]:Bu(!1),[ie.tr.readableName]:{desktop:["color","opacity","blend-mode","spacer","annotation-note","delete"],mobile:["delete","annotation-note","spacer","color","opacity","blend-mode"]},[ie.vU.readableName]:{desktop:["opacity","counterclockwise-rotation","clockwise-rotation","spacer","annotation-note","delete"],mobile:["delete","annotation-note","spacer","opacity","counterclockwise-rotation","clockwise-rotation"]},[ie.xY.readableName]:{desktop:["opacity","spacer","annotation-note","delete"],mobile:["delete","annotation-note","spacer","opacity"]},[ie.sb.readableName]:{desktop:["opacity","counterclockwise-rotation","clockwise-rotation","spacer","annotation-note","delete"],mobile:["delete","counterclockwise-rotation","clockwise-rotation","annotation-note","spacer","opacity"]},[ie.dh.readableName]:{desktop:["color","background-color","border-color","opacity","font","spacer","delete"],mobile:["delete","spacer","color","background-color","border-color","opacity","font"]},[W.A.readableName]:{desktop:["fill-color","overlay-text","outline-color","opacity","spacer","annotation-note","delete","apply-redactions"],mobile:["delete","apply-redactions","annotation-note","spacer","fill-color","overlay-text","outline-color","opacity"]},[ie.s9.readableName]:{desktop:["color","note-icon","spacer","delete"],mobile:["delete","spacer","color","note-icon"]},[ie.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"]}}),Vu=(0,M.A)("AnnotationToolbarItem");function Ku(e,t){const n=Lu.get(t);Vu(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()??[]]);Vu((0,l.Qd)(e)&&!!e,"Expected item to be an object"),e.icon&&"custom"!==e.type?Vu((0,N.Kg)(e.icon),"Expected icon to be a string"):e.icon&&Vu((0,N.Kg)(e.icon)||e.icon instanceof Node,"Expected icon to be a string or a Node");const{icon:o,...i}=e;(0,Ds.t)({...i,type:"custom"}),Vu("type"in e&&(0,N.Kg)(e.type)&&[...r,"spacer","custom"].includes(e.type),`Expected item.type to one of ${[...r,"spacer","custom"].join(", ")}`),"custom"===e.type&&(Vu("id"in e&&(0,N.Kg)(e.id),"Expected item.id to be a string"),Vu("node"in e||"icon"in e,"Expected item to have either a `node` or `icon` property for custom element"))}const $u=function(e){const{intl:t,position:n,annotation:r,expandedGroup:o,btnFocusRefIfFocusedItem:i,annotationToolbarItems:a,hasDesktopLayout:l,btnFocusRefIfFocusedGroup:c,lastToolbarActionUsedKeyboard:u,name:d,canDeleteSelectedAnnotationCP:h}=e,f=(0,s.d4)((e=>e.shadowRoot)),m=(0,yr.Kw)((t=>{const{annotation:n,canEditAnnotationCP:r}=e;r&&(t.strokeWidth&&(t.boundingBox=n.boundingBox.grow((t.strokeWidth-n.strokeWidth)/2)),e.updateAnnotation(t))})),g=r instanceof k.Zx||r instanceof k.Go?e.updateAnnotation:m,v=r instanceof k.MU||r instanceof k.ug,{formatMessage:y}=t,b={updateAnnotation:g,annotation:r,styles:Yc(),intl:t,caretDirection:"bottom"===n?"up":"down"},w=[{node:(0,ee.jsx)($c.A,{...b,record:e.annotation,colorProperty:"strokeColor",onChange:e.updateAnnotation,className:`PSPDFKit-${d}-Annotation-Toolbar-Stroke-Color`,removeTransparent:!0,frameWindow:e.frameWindow,accessibilityLabel:y(be.A.color),innerRef:c("color",!o),lastToolbarActionUsedKeyboard:u,annotationToolbarColorPresets:e.annotationToolbarColorPresets}),title:y(be.A.color),group:"color",type:"stroke-color",disabled:!e.canEditAnnotationCP,className:p()(Yc().formGroup,"PSPDFKit-Toolbox",{"PSPDFKit-Toolbox-BorderColor":!v,"PSPDFKit-Toolbox-StrokeColor":v})},{node:(0,ee.jsx)($c.A,{...b,record:r,colorProperty:"fillColor",onChange:e.updateAnnotation,className:`PSPDFKit-${d}-Annotation-Toolbar-Fill-Color`,frameWindow:e.frameWindow,accessibilityLabel:y(be.A.fillColor),innerRef:c("fillColor"),annotationToolbarColorPresets:e.annotationToolbarColorPresets}),title:y(be.A.fillColor),group:"fillColor",type:"fill-color",disabled:!e.canEditAnnotationCP,className:p()(Yc().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-FillColor")},{node:(0,ee.jsx)(Lc.OpacityComponent,{...b,type:d,innerRef:c("opacity"),shadowRoot:f}),title:y(be.A.opacity),group:"opacity",type:"opacity",disabled:!e.canEditAnnotationCP,className:p()(Yc().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-Opacity")},{node:(0,ee.jsx)(Lc.StrokeWidthComponent,{...b,type:d,accessibilityLabel:y(be.A.thickness),ref:c("line-width")}),title:y(be.A.thickness),group:"line-width",type:"line-width",disabled:!e.canEditAnnotationCP,className:p()(Yc().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-LineWidth")},...r instanceof k.MU||r instanceof k.ug?[{node:(0,ee.jsx)(Lc.LineCapsDashArrayComponent,{...b,frameWindow:e.frameWindow,innerRef:c("linecaps-dasharray")}),title:y(be.A["linecaps-dasharray"]),group:"linecaps-dasharray",type:"linecaps-dasharray",disabled:!e.canEditAnnotationCP,className:p()(Yc().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-LineCaps-DashArray")}]:[{node:(0,ee.jsx)(Lc.LineStyleComponent,{...b,frameWindow:e.frameWindow,innerRef:c("linestyle")}),title:y(be.A.linestyle),group:"linestyle",type:"line-style",disabled:!e.canEditAnnotationCP,className:p()(Yc().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-LineStyle")}],{node:(0,ee.jsx)(Kc,{type:"delete",icon:fu(a),title:y(be.A.delete),className:p()(`PSPDFKit-${d}-Annotation-Toolbar-Button-Delete`,Yc().button,Yc().deleteButton,{[Yc().disabledButton]:!h}),onPress:h?()=>e.deleteAnnotation():()=>{}}),type:"delete",hidden:null===e.annotation.pageIndex||!!o},{node:(0,ee.jsx)(Zc,{intl:e.intl,isEditing:e.isEditing,showAnnotationNotes:e.showAnnotationNotes,hasAnnotationNote:e.hasAnnotationNote,isAnnotationNoteActive:e.isAnnotationNoteActive,onAnnotationNotePress:e.onAnnotationNotePress,disabled:!e.canEditAnnotationCP}),type:"annotation-note",hidden:!e.showAnnotationNotes||e.isEditing}],x={className:Yc().button,presentational:e.viewportWidth>xe.eV,disabled:!!o},S={"line-style":"linestyle"};return r instanceof k.MU||r instanceof k.ug||(S["stroke-color"]="border-color"),(0,ee.jsx)("div",{className:p()(`PSPDFKit-${d}-Annotation-Toolbar`,Yc().content),children:(0,ee.jsx)(cu,{annotationToolbarItems:a,builtInItems:w,btnFocusRefIfFocusedItem:i,onGroupExpansion:e.onGroupExpansion,builtInToolbarProps:x,hasDesktopLayout:l,expandedGroup:o,onGroupTransitionEnded:e.onGroupTransitionEnded,position:n,typeMap:S})})},Hu=u.memo((function(e){const{formatMessage:t}=e.intl,n=[{node:(0,ee.jsx)(Kc,{type:"widget_ccw",title:t(be.A.rotateCounterclockwise),className:`PSPDFKit-Widget-Annotation-Toolbar-Button-Rotate PSPDFKit-Widget-Annotation-Toolbar-Button-Rotate-Counterclockwise ${Yc().button} ${Yc().rotateButton}`,onPress:()=>{e.selectedAnnotationPageSize&&e.updateAnnotation((0,R._w)(e.annotation,e.selectedAnnotationPageSize,R.Y5.COUNTERCLOCKWISE))}}),type:"counterclockwise-rotation",disabled:!e.canEditAnnotationCP},{node:(0,ee.jsx)(Kc,{type:"widget_cw",title:t(be.A.rotateClockwise),className:`PSPDFKit-Widget-Annotation-Toolbar-Button-Rotate PSPDFKit-Widget-Toolbar-Button-Rotate-Clockwise ${Yc().button} ${Yc().rotateButton}`,onPress:()=>{e.selectedAnnotationPageSize&&e.updateAnnotation((0,R._w)(e.annotation,e.selectedAnnotationPageSize,R.Y5.CLOCKWISE))}}),type:"clockwise-rotation",disabled:!e.canEditAnnotationCP},{node:(0,ee.jsx)(Kc,{type:"delete",icon:fu(e.annotationToolbarItems),title:t(be.A.delete),className:p()("PSPDFKit-Widget-Annotation-Toolbar-Button-Delete",Yc().button,Yc().deleteButton,{[Yc().disabledButton]:!e.canDeleteSelectedAnnotationCP}),onPress:e.canDeleteSelectedAnnotationCP?()=>e.deleteAnnotation():()=>{}}),type:"delete",hidden:null===e.annotation.pageIndex}];return(0,ee.jsx)("div",{className:`PSPDFKit-Widget-Annotation-Toolbar ${Yc().content}`,children:(0,ee.jsx)(cu,{annotationToolbarItems:e.annotationToolbarItems,builtInItems:n,btnFocusRefIfFocusedItem:e.btnFocusRefIfFocusedItem,onGroupExpansion:e.onGroupExpansion,hasDesktopLayout:e.hasDesktopLayout,expandedGroup:e.expandedGroup,onGroupTransitionEnded:e.onGroupTransitionEnded,position:e.position})})}));var Uu=n(46395);const qu=u.memo((function(e){const t=(0,he.tz)(),n=(0,s.d4)((e=>e.shadowRoot)),r=(0,yr.Kw)((t=>{const{canEditAnnotationCP:n}=e;if(!n)return;const r=function(e,t){if(!t.borderStyle&&("number"==typeof e.borderWidth||e.borderColor instanceof k.Q1))return{...e,borderStyle:Uu.k.solid};return e}(t,e.annotation);e.updateAnnotation(r)})),{annotation:o,position:i,expandedGroup:a,canDeleteSelectedAnnotationCP:l,btnFocusRefIfFocusedGroup:c,annotationToolbarItems:u,btnFocusRefIfFocusedItem:d,lastToolbarActionUsedKeyboard:h}=e,f={onChange:r,record:o,styles:Yc(),intl:t,caretDirection:"bottom"===i?"up":"down",frameWindow:e.frameWindow},m=e.annotation.isSignature,g=[{node:(0,ee.jsx)("div",{className:Yc().controlWrapper,children:(0,ee.jsx)("div",{className:Yc().control,children:(0,ee.jsx)($c.A,{...f,className:"PSPDFKit-Link-Annotation-Toolbar-Border-Color",colorProperty:"borderColor",accessibilityLabel:t.formatMessage(be.A.color),innerRef:c("color",!a),lastToolbarActionUsedKeyboard:h,annotationToolbarColorPresets:e.annotationToolbarColorPresets})})}),title:t.formatMessage(be.A.borderColor),className:p()(Yc().formGroup,"PSPDFKit-Toolbox","PSPDFKit-Toolbox-BorderColor"),hidden:m,disabled:!e.canEditAnnotationCP,type:"stroke-color",group:"color"},{node:(0,ee.jsx)(Lc.OpacityComponent,{intl:e.intl,type:"Link",styles:Yc(),annotation:o,updateAnnotation:r,caretDirection:"bottom"===i?"up":"down",innerRef:c("opacity"),shadowRoot:n}),title:t.formatMessage(be.A.opacity),className:p()(Yc().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-Opacity"),hidden:m,disabled:!e.canEditAnnotationCP,type:"opacity",group:"opacity"},{node:(0,ee.jsx)(Lc.StrokeWidthComponent,{intl:e.intl,type:"Link",styles:Yc(),annotation:o,updateAnnotation:r,caretDirection:"bottom"===i?"up":"down",accessibilityLabel:t.formatMessage(be.A.thickness),ref:c("lineWidth")}),title:t.formatMessage(be.A.thickness),className:p()(Yc().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-LineWidth"),hidden:m,disabled:!e.canEditAnnotationCP,type:"line-width",group:"lineWidth"},{node:(0,ee.jsx)(Kc,{type:"delete",icon:fu(u),title:t.formatMessage(be.A.delete),className:p()("PSPDFKit-Link-Annotation-Toolbar-Button-Delete",Yc().button,Yc().deleteButton,{[Yc().disabledButton]:!l}),onPress:l?()=>e.deleteAnnotation():()=>{}}),disabled:!l,hidden:null===e.annotation.pageIndex||!!a,type:"delete"}],v={className:Yc().button,presentational:e.viewportWidth>xe.eV,disabled:!!a};return(0,ee.jsx)("div",{className:p()("PSPDFKit-Link-Annotation-Toolbar",Yc().content),children:(0,ee.jsx)(cu,{annotationToolbarItems:u,builtInItems:g,btnFocusRefIfFocusedItem:d,onGroupExpansion:e.onGroupExpansion,builtInToolbarProps:v,hasDesktopLayout:e.hasDesktopLayout,expandedGroup:a,onGroupTransitionEnded:e.onGroupTransitionEnded,position:i})})}));const Wu=qu;var Gu=n(77153),Yu=n(76156),Zu=n(88375),Ju=n.n(Zu);const Xu=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,D.p9)(f)),[f]),w=u.useMemo((()=>(0,D.pq)(r)),[r]),x=(0,yr.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 k.Zx||r instanceof k.Go?e.updateAnnotation:x,_=r instanceof k.MU||r instanceof k.ug,{formatMessage:C}=t,E={updateAnnotation:S,annotation:r,styles:Yc(),intl:t,caretDirection:"bottom"===n?"up":"down"},z=D.Kh.find((e=>e.title===w)),P=u.useMemo((()=>(0,D.JC)(r,v)),[r,v]),A=[{node:(0,ee.jsx)(Kc,{type:"back",title:C(be.A.back),className:p()(`PSPDFKit-${w}-Annotation-Toolbar-Button-Back`,Yc().button,Yc().measurementBackButton),onPress:()=>{(0,s.vA)((()=>{m((0,ve.J9)()),m((0,at.iE)("measurement")),m((0,Pt.zB)())}))}}),type:"back"},{node:b?(0,ee.jsx)(Vc,{type:"measure",title:C(be.A.mixedMeasurements),className:p()(z.className,Ju().measurementValue,Yc().measurementToolbarButton,"PSPDFKit-Annotation-Toolbar-Measurement"),children:r&&r?.note?(0,ee.jsx)(ee.Fragment,{children:C(be.A.mixedMeasurements)}):null},C(be.A.mixedMeasurements)):(0,ee.jsx)(Vc,{type:z.icon,title:C(be.A[z.localeKey]),className:p()(z.className,Ju().measurementValue,Yc().measurementToolbarButton,"PSPDFKit-Annotation-Toolbar-Measurement"),children:r&&r?.note?y?(0,ee.jsx)(ee.Fragment,{children:z.title}):(0,ee.jsxs)(ee.Fragment,{children:[z.title,":"," ",(0,ee.jsxs)("b",{children:[r.note,P?` (${P.label})`:""]})]}):null},z.interactionMode),title:C(be.A[z.localeKey]),type:"measurementType",className:p()(Yc().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-MeasurementType")},{node:(0,ee.jsxs)(ee.Fragment,{children:[(0,ee.jsx)(Vc,{type:"scale",title:C(ic.DZ.measurementScale),className:p()(Yc().measurementToolbarButton)},"scale"),(0,ee.jsx)(Yu.Ay,{frameWindow:e.frameWindow,selectedAnnotation:r,onAnnotationScaleUpdate:e.updateAnnotation,selectedAnnotations:e.selectedAnnotations})]}),title:C(ic.DZ.measurementScale),type:"measurementScale",className:p()(Yc().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-MeasurementScale")},{node:(0,ee.jsx)($c.A,{...E,record:e.annotation,colorProperty:"strokeColor",onChange:e.updateAnnotation,className:`PSPDFKit-${w}-Annotation-Toolbar-Stroke-Color`,frameWindow:e.frameWindow,accessibilityLabel:C(be.A.color),innerRef:c("color",!o),lastToolbarActionUsedKeyboard:d,annotationToolbarColorPresets:e.annotationToolbarColorPresets}),title:C(be.A.color),group:"color",type:"stroke-color",disabled:!e.canEditAnnotationCP,className:p()(Yc().formGroup,"PSPDFKit-Toolbox",{"PSPDFKit-Toolbox-BorderColor":!_,"PSPDFKit-Toolbox-StrokeColor":_})},{node:(0,ee.jsx)(Lc.OpacityComponent,{...E,type:w,innerRef:c("opacity"),shadowRoot:g}),title:C(be.A.opacity),group:"opacity",type:"opacity",disabled:!e.canEditAnnotationCP,className:p()(Yc().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-Opacity")},{node:(0,ee.jsx)(Lc.StrokeWidthComponent,{...E,type:w,accessibilityLabel:C(be.A.thickness),ref:c("line-width")}),title:C(be.A.thickness),group:"line-width",type:"line-width",disabled:!e.canEditAnnotationCP,className:p()(Yc().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-LineWidth")},{node:(0,ee.jsx)(Kc,{type:"delete",icon:fu(a),title:C(be.A.delete),className:p()(`PSPDFKit-${w}-Annotation-Toolbar-Button-Delete`,Yc().button,Yc().deleteButton,{[Yc().disabledButton]:!h}),onPress:h?()=>e.deleteAnnotation():()=>{}}),type:"delete",hidden:null===e.annotation.pageIndex||!!o},{node:(0,ee.jsx)(Zc,{intl:e.intl,isEditing:e.isEditing,showAnnotationNotes:e.showAnnotationNotes,hasAnnotationNote:e.hasAnnotationNote,isAnnotationNoteActive:e.isAnnotationNoteActive,onAnnotationNotePress:e.onAnnotationNotePress,disabled:!e.canEditAnnotationCP||y}),type:"annotation-note",hidden:!e.showAnnotationNotes||e.isEditing}],T={className:Yc().button,presentational:e.viewportWidth>xe.eV,disabled:!!o},I={"line-style":"linestyle"};return r instanceof k.MU||r instanceof k.ug||(I["stroke-color"]="border-color"),(0,ee.jsx)("div",{className:p()(`PSPDFKit-${w}-Annotation-Toolbar`,Yc().content,Yc().measurementToolbar),children:(0,ee.jsx)(cu,{annotationToolbarItems:a,builtInItems:A,btnFocusRefIfFocusedItem:i,onGroupExpansion:e.onGroupExpansion,builtInToolbarProps:T,hasDesktopLayout:l,expandedGroup:o,onGroupTransitionEnded:e.onGroupTransitionEnded,position:n,typeMap:I})})};function Qu(){const{formatMessage:e}=(0,sl.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===B.Q.EDITING)),i=(0,s.d4)((e=>e.annotationToolbarColorPresets)),l=(0,s.d4)((e=>e.showAnnotationNotes)),c=(0,u.useMemo)((()=>r.map((e=>n.get(e)))),[r,n]),d=(0,s.d4)((e=>e.eventEmitter)),p=(0,s.wA)(),h=(0,s.d4)((e=>e.activeAnnotationNote)),f=(0,u.useCallback)((()=>{const e=c&&c?.size>1;t&&!e?p((0,at.n9)((0,a.NZ)([t.id]))):e&&c&&p((0,at.n9)(c.map((e=>e?.id))))}),[t,c,p]),m=(0,u.useCallback)((()=>Boolean(h&&t&&t instanceof k.s9)),[h,t]),g=(0,u.useCallback)((()=>{p((0,ve.mm)(null))}),[p]),v=(0,u.useCallback)((()=>{t&&(p((0,at.g_)(t.delete("note"))),g())}),[p,t,g]),y=(0,u.useCallback)((()=>{if(m())g();else if(t){const e=(0,hr.IZ)(t);p((0,ve.mm)(e))}}),[m,t,g,p]),b=(0,s.d4)((e=>t&&(0,lr.db)(t,e))),w=(0,s.d4)((e=>t&&(0,lr.q2)(t,e))),x=(0,u.useCallback)(((e,t,n)=>{if(!e||!w)return;e=e.merge(t);const r={annotations:(0,a.B8)([e]),reason:J.x.PROPERTY_CHANGE};d.emit("annotations.willChange",r),n&&p((0,at.iE)(n));const{text:o,...i}=t;p((0,at.M)(i)),p((0,at.g_)(e))}),[w,d,p]),S=(0,u.useCallback)(((e,n)=>{t&&x(t,e,n)}),[t,x]),_=(0,u.useCallback)(((e,t)=>{c&&c?.size>1&&(0,s.vA)((()=>{c?.toList().forEach(((n,r)=>{n&&(Array.isArray(e)?x(n,e[r],t):x(n,e,t))}))}))}),[c,x]),C=(0,u.useCallback)((t=>{const n=i?.({propertyName:(()=>{for(const[e,n]of R.S1.entries())if(n===t)return e})(),defaultAnnotationToolbarColorPresets:Ye.JY.COLOR_PRESETS})??{presets:Ye.JY.COLOR_PRESETS};return{...n,presets:n.presets.map((t=>((0,me.V)(t.color,"Preset color is null"),{color:t.color.toHex(),label:e(t.localization)})))}}),[i,e]),E=(0,u.useMemo)((()=>{const e=C("strokeColor");return{...e,presets:e.presets.filter((e=>"#00000000"!==e.color))}}),[C]),z=(0,u.useMemo)((()=>{const e=C("backgroundColor");return{...e,presets:e.presets.filter((e=>"#00000000"!==e.color))}}),[C]),P=(0,u.useMemo)((()=>{const e=C("fontColor");return{...e,presets:e.presets.filter((e=>"#00000000"!==e.color))}}),[C]),A=(0,u.useMemo)((()=>{const e=C("borderColor");return{...e,presets:e.presets.filter((e=>"#00000000"!==e.color))}}),[C]);return{selectedAnnotation:t,deleteAnnotation:f,closeAnnotationNote:g,deleteAnnotationNote:v,onAnnotationNotePress:y,canDeleteSelectedAnnotationCP:b,canEditAnnotationCP:w,isAnnotationNoteActive:m(),hasAnnotationNote:Boolean(t?.note),updateAnnotation:c&&c?.size>1?_:S,isEditing:o,showAnnotationNotes:l,strokeColorDropdownConfig:E,backgroundColorDropdownConfig:z,fontColorDropdownConfig:P,borderColorDropdownConfig:A}}var ed=n(2543),td=n(91842),nd=n(20576),rd=n(40027),od=n(33091),id=n(41105);const ad=`page-layout-${crypto.getRandomValues(new Uint32Array(20))}`,sd=`transition-label-${crypto.getRandomValues(new Uint32Array(20))}`,ld=`page-rotation-${crypto.getRandomValues(new Uint32Array(20))}`,cd=e=>{let{formatMessage:t,layoutMode:n,dispatch:r,scrollMode:o}=e;const i=(e,t)=>{let{isSelected:n,isDisabled:r}=t;(0,rd.V1)(e.value&&"icon"in e.value&&e.value.icon,"Item value is required.");return(0,id.Y)(sl.ToggleIconButton,{"aria-label":e.textValue,icon:e.value.icon,isSelected:n,isDisabled:r,size:"sm",variant:"primary"}).createComponent()},a=[{id:od.S.SINGLE,label:t(ud.pageModeSingle),icon:bl.zf_},{id:od.S.DOUBLE,label:t(ud.pageModeDouble),icon:bl.opr},{id:od.S.AUTO,label:t(ud.pageModeAutomatic),icon:bl.tM$}],s=[{id:na.V.CONTINUOUS,label:t(ud.pageTransitionContinuous),icon:bl.M$J},{id:na.V.PER_SPREAD,label:t(ud.pageTransitionJump),icon:bl.zf_}],l=[{id:"-90",label:t(ud.pageRotationLeft),icon:bl.HTp},{id:"90",label:t(ud.pageRotationRight),icon:bl.h8W}];return(0,id.FD)(sl.Popover,{type:"dialog",children:[(0,id.Y)(sl.PopoverTrigger,{children:(0,id.Y)(sl.Tooltip,{text:t(ud.pageLayout),variant:"inverse",size:"sm",includeArrow:!1,placement:"bottom start",children:(0,id.Y)(sl.ActionIconButton,{size:"lg",variant:"toolbar","aria-label":t(ud.pageLayout),icon:bl.Zes,className:"PSPDFKit-Toolbar-Button-Layout-Config"})})}),(0,id.Y)(sl.PopoverContent,{placement:"bottom start",className:(0,nd.UV)({boxShadow:"medium"}),children:(0,id.Y)(sl.Dialog,{size:"content",className:(0,nd.UV)({paddingY:"sm"}),style:{minWidth:215},children:(0,id.FD)(xl.n1,{autoFocus:!0,children:[(0,id.FD)(sl.Box,{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingY:"sm",paddingLeft:"lg",paddingRight:"sm",children:[(0,id.Y)(sl.Text,{type:"label",size:"sm",id:ad,children:t(ud.pageMode)}),(0,id.Y)(sl.ActionGroup,{tooltipProps:{isDisabled:!0},"aria-labelledby":ad,items:a,selectionMode:"single",selectedKeys:[n],onSelectionChange:e=>{e instanceof Set&&!e.size||r((0,Pt.A8)([...e][0]))},renderActionItem:i})]}),(0,id.FD)(sl.Box,{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingY:"sm",paddingLeft:"lg",paddingRight:"sm",children:[(0,id.Y)(sl.Text,{type:"label",size:"sm",id:sd,children:t(ud.pageTransition)}),(0,id.Y)(sl.ActionGroup,{tooltipProps:{isDisabled:!0},"aria-labelledby":sd,items:s,selectionMode:"single",selectedKeys:[o],onSelectionChange:e=>{e instanceof Set&&!e.size||r((0,Pt.r7)([...e][0]))},renderActionItem:i})]}),(0,id.FD)(sl.Box,{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingY:"sm",paddingLeft:"lg",paddingRight:"sm",children:[(0,id.Y)(sl.Text,{type:"label",size:"sm",id:ld,children:t(ud.pageRotation)}),(0,id.Y)(sl.ActionGroup,{tooltipProps:{isDisabled:!0},"aria-labelledby":ld,items:l,onAction:e=>{r((0,lc.e$)(parseInt(e,10)))},renderActionItem:i})]})]})})})]},"page-layout-popover")},ud=(0,he.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 dd=n(55026),pd="_1v0a0o31";const hd=`search-document-${crypto.getRandomValues(new Uint32Array(20))}`;function fd(e){let{formatMessage:t,searchState:n,dispatch:r,searchProvider:o,isOpen:i,isDisabled:a}=e;return(0,id.FD)(sl.Popover,{type:"dialog",isOpen:i,onOpenChange:e=>{r(e?(0,Pt.uT)(F.O.SEARCH):(0,Pt.Fl)())},children:[(0,id.Y)(sl.PopoverTrigger,{children:(0,id.Y)(sl.Tooltip,{text:t(be.A.searchDocument),variant:"inverse",size:"sm",includeArrow:!1,placement:"bottom start",children:(0,id.Y)(sl.ActionIconButton,{icon:bl.WIv,size:"lg",variant:"toolbar","aria-label":t(be.A.searchDocument),id:hd,isDisabled:a,className:"PSPDFKit-Toolbar-Button-Search"})})}),(0,id.Y)(sl.PopoverContent,{style:{display:"contents"},isNonModal:!0,placement:"bottom start",className:(0,nd.UV)({boxShadow:"medium"}),children:(0,id.Y)(sl.Dialog,{className:(0,rd.xW)((0,nd.UV)({paddingY:"md"}),"_1v0a0o30"),"aria-labelledby":hd,children:(0,id.FD)(sl.Box,{display:"flex",flexDirection:"row",justifyContent:"space-between",paddingX:"lg",paddingY:"sm",children:[(0,id.FD)(sl.Box,{gap:"lg",display:"flex",flexDirection:"row",alignItems:"center",children:[(0,id.Y)("div",{className:pd,children:(0,id.Y)(sl.SearchInput,{size:"sm",autoFocus:!0,variant:"primary","aria-label":t(be.A.searchDocument),placeholder:t(be.A.searchDocument),className:(0,rd.xW)("PSPDFKit-Search-Form-Input",pd),defaultValue:o?.term,onClear:()=>{o?.clearSearch()},onChange:e=>{o?.searchTerm(e);o?.[""===e?"clearSearch":"searchTerm"](e)},onKeyDown:e=>{e.shiftKey&&("Enter"===e.key||e.metaKey&&"g"===e.key)?(e.preventDefault(),r((0,Cs.md)())):"Enter"===e.key||e.metaKey&&"g"===e.key?(e.preventDefault(),r((0,Cs._H)())):"Escape"===e.key&&(e.preventDefault(),o?.cancelSearch())}})}),(0,id.Y)(sl.Text,{type:"value",size:"sm",style:{whiteSpace:"nowrap"},children:t(td.G.searchResultOf,{arg0:n.results.size>0?n.focusedResultIndex+1:0,arg1:n.results.size})})]}),(0,id.FD)(sl.Box,{display:"flex",flexDirection:"row",justifyContent:"space-between",gap:"sm",children:[(0,id.Y)(sl.ActionIconButton,{icon:dd.eC,size:"sm",variant:"secondary","aria-label":t(md.searchPreviousMatch),onPress:()=>r((0,Cs.md)()),isDisabled:0===n.results.size,className:"PSPDFKit-Search-Control"}),(0,id.Y)(sl.ActionIconButton,{icon:dd.JJ,size:"sm",variant:"secondary","aria-label":t(md.searchNextMatch),onPress:()=>r((0,Cs._H)()),isDisabled:0===n.results.size,className:"PSPDFKit-Search-Control"}),(0,id.Y)(sl.ActionIconButton,{className:"PSPDFKit-Search-Button-Close",icon:dd.uv,size:"sm",variant:"secondary","aria-label":t(be.A.cancel),onPress:()=>o?.cancelSearch()})]})]})})})]},"search")}const md=(0,he.YK)({searchPreviousMatch:{id:"searchPreviousMatch",defaultMessage:"Previous",description:"Go to the previous search result"},searchNextMatch:{id:"searchNextMatch",defaultMessage:"Next",description:"Go to the next search result"}});var gd=n(86977);const{createToggleIconButtonToolbarItem:vd,createActionIconButtonToolbarItem:yd,createBlockToolbarItem:bd}=wl.XD;var wd=n(91190);function xd(e){let{items:t,className:n}=e;const r=(0,s.d4)((e=>e.toolbarPlacement)),o=(0,s.wA)(),i=(0,s.d4)((e=>e.ui?.[dl.Rq.PrimaryToolbar])),l=(0,s.d4)((e=>e.instance)),{processedItems:c,expanded:d,setExpanded:p}=function(e){let{items:t}=e;const{selectedAnnotation:n}=Qu(),r=(0,s.d4)((e=>e.containerRect.width)),o=(0,s.d4)((e=>e.annotationToolbarItems)),i=(0,u.useMemo)((()=>{if(!n||!Lu.get(yp(n)))return(0,a.B8)();const e=r>xe.eV,t=Lu.get(yp(n))?.get(e?"desktop":"mobile")?.map((e=>({type:e})));if((0,rd.V1)(t,`No default toolbar items found for annotation type: ${yp(n)}`),o){const r=o(n,{hasDesktopLayout:e,defaultAnnotationToolbarItems:t.toJS()});if(r)return r.forEach((e=>{Ku(e,yp(n))})),(0,a.B8)(r)}return t}),[o,n,r]),l=(0,u.useMemo)((()=>{const e=(0,wd.mZ)(i,t);return Object.fromEntries(Object.entries(e).filter((e=>{let[,t]=e;return!t.isHidden})).map((e=>{let[t,n]=e;return[t,n.toolbarItem]})))}),[i,t]),c=wl.XD.useResponsiveToolbarItems({itemsStore:l,mobileItems:Object.keys(l),emulateMobileBehaviourInTablet:!0});return{processedItems:c.items,setExpanded:c.setExpanded,expanded:c.expanded}}({items:t}),h=(0,s.d4)((e=>e.selectedAnnotationIds.size>0?e.annotations.get(e.selectedAnnotationIds.first()):null)),f=(0,u.useMemo)((()=>({name:"secondary-toolbar","aria-label":"Secondary Toolbar",type:"secondary",autoFocus:null===h?.pageIndex||!h,items:c,style:{...r===pc.h.TOP?{borderBottom:`1px solid ${nd.G6.color.border.medium}`}:{borderTop:`1px solid ${nd.G6.color.border.medium}`},zIndex:3},className:n,onEscape:()=>{p(null),d||o((0,ve.J9)())}})),[c,r,n,p,d,o]);return(0,pl.Q)(dl.Rq.PrimaryToolbar,i,f,l)}const{createToggleIconButtonToolbarItem:Sd,createActionIconButtonToolbarItem:_d}=wl.XD;function Cd(){const{formatMessage:e}=(0,sl.useI18n)(),t=(0,s.d4)((e=>e.keepSelectedTool)),n=(0,s.d4)((e=>e.interactionMode)),r=t&&n===F.O.TEXT,{selectedAnnotation:o,hasAnnotationNote:i,isAnnotationNoteActive:a,canEditAnnotationCP:l,onAnnotationNotePress:c,showAnnotationNotes:d,isEditing:p,deleteAnnotation:h,canDeleteSelectedAnnotationCP:f}=Qu();(0,rd.V1)(o);const m=(0,u.useMemo)((()=>o instanceof k.Eo?!(null!=o?.pageIndex&&!p):o instanceof k.dh&&(r||null===o.pageIndex)),[o,p,r]),g=(0,u.useMemo)((()=>o instanceof k.Eo?"Ink-Annotation-Toolbar":o instanceof k.dh?"Text-Annotation-Toolbar":""),[o]);return{"annotation-note":{toolbarItem:Sd("annotation-note",{className:`PSPDFKit-${g}-Annotation-Note`,"aria-label":e(be.A.noteAnnotation),icon:i||a?bl.ncu:bl.sB7,isDisabled:!l,isSelected:a,onPress:c}),isHidden:!d||p},delete:{toolbarItem:_d("delete",{className:`PSPDFKit-${g}-Button-Delete`,"aria-label":e(be.A.delete),icon:bl.ucK,onPress:h,isDisabled:!f}),isHidden:m}}}const{createIconColorInputToolbarItem:Ed,createIconSliderToolbarItem:kd,createIconSelectToolbarItem:zd}=wl.XD;function Pd(){const{formatMessage:e}=(0,sl.useI18n)(),t=(0,s.wA)(),{canEditAnnotationCP:n,selectedAnnotation:r,updateAnnotation:o,isEditing:i,strokeColorDropdownConfig:a,backgroundColorDropdownConfig:l}=Qu(),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,at.M)(r)),t((0,Pt.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=Cd(),p={"stroke-color":{toolbarItem:Ed("stroke-color",{className:"PSPDFKit-Ink-Annotation-Toolbar-Stroke-Color PSPDFKit-Toolbox PSPDFKit-Toolbox-StrokeColor",allowAlpha:!1,"aria-label":e(be.A.color),icon:bl.hRt,value:r?.strokeColor?.toHex(),presets:a.presets,includePicker:a.showColorPicker,pickerMode:"lazy",onChangeEnd:e=>{c({strokeColor:e?new k.Q1({r:e.getChannelValue("red"),g:e.getChannelValue("green"),b:e.getChannelValue("blue")}):null})}})},"fill-color":{toolbarItem:Ed("fill-color",{className:"PSPDFKit-Ink-Annotation-Toolbar-Fill-Color PSPDFKit-Toolbox PSPDFKit-Toolbox-FillColor",allowAlpha:!1,"aria-label":e(be.A.fillColor),icon:bl.s8N,value:r?.backgroundColor?.toHex(),includePicker:l.showColorPicker,presets:l.presets,allowRemoval:!0,pickerMode:"lazy",onChangeEnd:e=>{c({backgroundColor:e?new k.Q1({r:e.getChannelValue("red"),g:e.getChannelValue("green"),b:e.getChannelValue("blue"),transparent:0===e.getChannelValue("alpha")}):null})}})},opacity:{toolbarItem:kd("opacity",{className:"PSPDFKit-Ink-Annotation-Toolbar-Opacity PSPDFKit-Toolbox PSPDFKit-Toolbox-Opacity","aria-label":e(be.A.opacity),icon:bl.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:kd("line-width",{className:"PSPDFKit-Ink-Annotation-Toolbar-Line-Width PSPDFKit-Toolbox PSPDFKit-Toolbox-LineWidth","aria-label":e(be.A.thickness),icon:bl.QBs,formatValue:e=>`${e} pt`,minValue:1,maxValue:40,onChange:e=>{c({lineWidth:e})},value:Math.round(r?.lineWidth??1)})},"blend-mode":{toolbarItem:zd("blend-mode",{className:"PSPDFKit-Ink-Annotation-Toolbar-Blend-Mode PSPDFKit-Toolbox PSPDFKit-Toolbox-BlendMode PSPDFKit-Input-Dropdown-Select","aria-label":e(be.A.blendMode),icon:bl.MK5,items:Object.keys(ku.N).map((e=>({label:(0,ed.startCase)(e),id:e}))),defaultSelectedKey:r?.blendMode??ku.N.normal,isDisabled:!n,onSelectionChange:e=>{c({blendMode:e})}})},...d};return(0,ee.jsx)(xd,{items:p,className:"PSPDFKit-Ink-Annotation-Toolbar"})}var Ad,Dd=n(70278);function Td(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function Id(e,t,n=10){const r=Math.pow(n,t);return Math.round(e*r)/r}Ad={"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 Md=n(5533);let Nd=new Map,Od=!1;try{Od="exceptZero"===new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay}catch(e){}let jd=!1;try{jd="unit"===new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style}catch(e){}const Rd={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class Fd{format(e){let t="";if(t=Od||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&&!jd){var n;let{unit:e,unitDisplay:r="short",locale:o}=this.resolvedOptions();if(!e)return t;let i=null===(n=Rd[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 Od||null==this.options.signDisplay||(e={...e,signDisplay:this.options.signDisplay}),jd||"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&&!jd){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=Rd[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(Nd.has(o))return Nd.get(o);let i=new Intl.NumberFormat(e,t);return Nd.set(o,i),i}(e,t),this.options=t}}new Map;new Set(["decimal","fraction","integer","minusSign","plusSign","group"]);let Bd=new(0,Md.B)((Ld=Ad)&&Ld.__esModule?Ld.default:Ld);var Ld;function Vd(e){let t=Ud.parse(e)||Wd.parse(e)||Yd.parse(e);if(t)return t;throw new Error("Invalid color value: "+e)}function Kd(e){return 360===e?e:(e%360+360)%360}const $d=[[0,"pink"],[15,"red"],[48,"orange"],[94,"yellow"],[135,"green"],[175,"cyan"],[264,"blue"],[284,"purple"],[320,"magenta"],[349,"pink"]];class Hd{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(Md.B.getGlobalDictionaryForPackage("@react-stately/color")||Bd).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]=Zd(this),i=Md.B.getGlobalDictionaryForPackage("@react-stately/color")||Bd;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,Md.J)(e,i);if(l<1){let n=new Fd(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=Md.B.getGlobalDictionaryForPackage("@react-stately/color")||Bd;if(t<.001)return[o.getStringForLocale("gray",r),e];for(let t=0;t<$d.length;t++){let[i,a]=$d[t],[s,l]=$d[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]=Zd(this),[o]=this.getOklchHue(t,n,r,e);return o}}class Ud extends Hd{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)=>Td(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 Ud(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 Wd(Id(360*s,2),Id(100*a,2),Id(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 Yd(Id(360*s,2),Id(100*l,2),Id(100*i,2),this.alpha)}clone(){return new Ud(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 Fd(t,n).format(r)}getColorSpace(){return"rgb"}getColorChannels(){return Ud.colorChannels}constructor(e,t,n,r){super(),this.red=e,this.green=t,this.blue=n,this.alpha=r}}Ud.colorChannels=["red","green","blue"];const qd=/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 Wd extends Hd{static parse(e){let t;if(t=e.match(qd)){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 Wd(Kd(e),Td(r,0,100),Td(o,0,100),Td(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}, ${Id(this.saturation,2)}%, ${Id(this.brightness,2)}%)`;case"hsba":return`hsba(${this.hue}, ${Id(this.saturation,2)}%, ${Id(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 Yd(Id(this.hue,2),Id(100*e,2),Id(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 Ud(Math.round(255*r(5)),Math.round(255*r(3)),Math.round(255*r(1)),this.alpha)}clone(){return new Wd(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 Fd(t,n).format(r)}getColorSpace(){return"hsb"}getColorChannels(){return Wd.colorChannels}constructor(e,t,n,r){super(),this.hue=e,this.saturation=t,this.brightness=n,this.alpha=r}}Wd.colorChannels=["hue","saturation","brightness"];const Gd=/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 Yd extends Hd{static parse(e){let t;if(t=e.match(Gd)){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 Yd(Kd(e),Td(r,0,100),Td(o,0,100),Td(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}, ${Id(this.saturation,2)}%, ${Id(this.lightness,2)}%)`;case"css":case"hsla":return`hsla(${this.hue}, ${Id(this.saturation,2)}%, ${Id(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 Wd(Id(this.hue,2),Id(100*e,2),Id(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 Ud(Math.round(255*o(0)),Math.round(255*o(8)),Math.round(255*o(4)),this.alpha)}clone(){return new Yd(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 Fd(t,n).format(r)}getColorSpace(){return"hsl"}getColorChannels(){return Yd.colorChannels}constructor(e,t,n,r){super(),this.hue=e,this.saturation=t,this.lightness=n,this.alpha=r}}function Zd(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[Jd(e),Jd(t),Jd(n)]}(n,r,o);let[i,a,s]=function(e,t,n){return Xd([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]=Xd(r,e,t,n);return Xd(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 Jd(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 Xd(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]}Yd.colorChannels=["hue","saturation","lightness"];Vd("#ffffff");Vd("hsl(0, 100%, 50%)");const Qd={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 ep=Vd("#000000"),tp=Vd("#FFFFFF");ep.toHexInt(),tp.toHexInt();const np=new k.Q1({r:.5,g:.5,b:.5});const{createIconColorInputToolbarItem:rp,createIconSliderToolbarItem:op,createIconSelectToolbarItem:ip,createComboBoxToolbarItem:ap,createActionGroupToolbarItem:sp}=wl.XD;function lp(){const{formatMessage:e}=(0,sl.useI18n)(),{canEditAnnotationCP:t,selectedAnnotation:n,updateAnnotation:r,fontColorDropdownConfig:i,backgroundColorDropdownConfig:a,borderColorDropdownConfig:l}=Qu(),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,yr.Kw)((e=>{if(!t||!n)return;let o=n.merge(e);if((0,R.I2)(o))r(e);else if(c&&(e.fontSize||e.font||e.text&&"xhtml"===e.text.format)){const{rotation:t}=n;let i=(0,Ne.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 k.bR({x:i.boundingBox.getCenter().x-a.x,y:i.boundingBox.getCenter().y-a.y}),l=s.rotate(t),u=new k.bR({x:l.x-s.x,y:l.y-s.y});i=i.update("boundingBox",(e=>e?.translate(u))),o=(0,Ne.pE)(i.set("rotation",t)),r({...e,isFitting:o.isFitting,boundingBox:o.boundingBox})}else{const{isFitting:t}=(0,qt.fk)((0,Ne.rK)(o).set("rotation",0),p);r({...e,isFitting:t})}f&&Dd.rL.focus(f)})),v=(0,s.d4)((e=>e.frameWindow));(0,rd.V1)(v&&n);const y="xhtml"===n?.text.format,{updateAnnotationOrEditorText:b,selectedIsUnderline:w,selectedIsBold:x,selectedIsItalic:S,activeTextStyle:_}=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,Zt.jG)(o.Dl.getSelectedNodesColor(t,"fontColor")),n=(0,Zt.jG)(o.Dl.getSelectedNodesColor(t,"backgroundColor"));l({fontColor:e?k.Q1.fromHex(e):np,backgroundColor:n?k.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(k.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]);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?k.Q1.fromHex(e):void 0,backgroundColor:s?.backgroundColor},updateAnnotationOrEditorText:y,selectedIsBold:r,selectedIsItalic:n,selectedIsUnderline:t}}}return{updateAnnotationOrEditorText:r}}({editor:f,frameWindow:v,updateAnnotation:g,text:n?.text?.value||"",isRichText:y}),C=Math.round(n.fontSize),{fontFamilyItems:E,unsupportedFontIds:z}=(0,u.useMemo)((()=>{(0,rd.V1)(n,"selectedAnnotation is required");const t=ca.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(!ca.iL.has(n.font)&&!m.has(n.font)&&""!==n.font.trim()){const t=e(be.A.fontFamilyUnsupported,{arg0:n.font});r.push({label:t,id:t}),o.push(t)}return{fontFamilyItems:r,unsupportedFontIds:o}}),[m,e,n]),P=(0,u.useMemo)((()=>(-1===k.dh.fontSizePresets.indexOf(C)?k.dh.fontSizePresets.concat(C).sort(((e,t)=>e-t)):k.dh.fontSizePresets).map((e=>({label:e?.toString(10),id:e?.toString()})))),[C]),A=(0,u.useMemo)((()=>ip("font-family",{icon:bl.TL,className:"PSPDFKit-Text-Annotation-Toolbar-Font-Family",items:E,"aria-label":e(be.A.font),optionStyle:e=>({fontFamily:e.id}),selectedKey:n.font,onSelectionChange:e=>{g({font:e})},isDisabled:!t,disabledKeys:z})),[t,E,e,n.font,g,z]),D=(0,u.useRef)(!1),T=u.useRef(null),I=(0,u.useRef)(!1),M=(0,u.useMemo)((()=>ap("font-size",{items:P,className:"PSPDFKit-Text-Annotation-Toolbar-Font-Size",allowsCustomValue:!0,inputType:"number",defaultInputValue:C.toString(),onInputSubmit:e=>{e&&(D.current||I.current||b({fontSize:parseInt(e,10)}))},selectedKey:P.find((e=>e.id===C.toString()))?.id||null,onOpenChange:e=>{I.current=e},onSelectionChange:e=>{e&&(D.current=!0,T.current&&clearTimeout(T.current),T.current=setTimeout((()=>{D.current=!1}),1e3),b({fontSize:parseInt(e,10)}))},variant:"ghost",isDisabled:!t,"aria-label":e(be.A.fontSize)})),[P,C,t,e,b]),N=(0,u.useMemo)((()=>[{id:"bold",icon:dd.$o,label:e(be.A.bold)},{id:"italic",icon:dd.yO,label:e(be.A.italic)},{id:"underline",icon:dd.qp,label:e(be.A.underline)}]),[e]),O=(0,u.useMemo)((()=>[...x?["bold"]:[],...S?["italic"]:[],...w?["underline"]:[]]),[x,S,w]),j=(0,u.useMemo)((()=>sp("font-formatting",{items:N,tooltipProps:{isDisabled:!1},selectionMode:"multiple",selectedKeys:O,className:"PSPDFKit-Text-Annotation-Toolbar-Inline-Style",onSelectionChange:e=>{var t,n,r;b((t=[...e],n=O,r=N.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,O,N,b]),B=sp("font-horizontal-alignment",{items:[{id:"left",icon:dd.VN,label:e(be.A.alignmentLeft)},{id:"center",icon:dd.L0,label:e(be.A.alignmentCenter)},{id:"right",icon:dd.Ui,label:e(be.A.alignmentRight)}],className:"PSPDFKit-Text-Annotation-Toolbar-Alignment",tooltipProps:{isDisabled:!1},selectedKeys:[n.horizontalAlign],selectionMode:"single",onSelectionChange:e=>{b({horizontalAlign:[...e][0]})}}),L=sp("font-vertical-alignment",{items:[{id:"top",icon:dd.mi,label:e(be.A.top)},{id:"center",icon:dd.oq,label:e(be.A.alignmentCenter)},{id:"bottom",icon:dd.uY,label:e(be.A.bottom)}],tooltipProps:{isDisabled:!1},className:"PSPDFKit-Text-Annotation-Toolbar-Vertical-Alignment",selectedKeys:[n?.verticalAlign],selectionMode:"single",onSelectionChange:e=>{b({verticalAlign:[...e][0]})}}),V=Cd(),K={color:{toolbarItem:rp("color",{className:"PSPDFKit-Text-Annotation-Toolbar-Font-Color PSPDFKit-Toolbox PSPDFKit-Toolbox-TextColor","aria-label":e(up.fontColor),icon:bl.gvh,value:cp(y?_?.fontColor:n.fontColor),allowAlpha:!1,pickerMode:"lazy",includePicker:i.showColorPicker,presets:i.presets,isDisabled:!t,onChangeEnd:e=>b({fontColor:e?new k.Q1({r:e.getChannelValue("red"),g:e.getChannelValue("green"),b:e.getChannelValue("blue")}):null})})},"background-color":{toolbarItem:rp("background-color",{className:"PSPDFKit-Text-Annotation-Toolbar-Background-Color PSPDFKit-Toolbox PSPDFKit-Toolbox-BackgroundColor ","aria-label":e(be.A.fillColor),icon:bl.s8N,value:cp(y&&f?_?.backgroundColor:n.backgroundColor),allowAlpha:!1,allowRemoval:!0,pickerMode:"lazy",includePicker:a.showColorPicker,presets:a.presets,isDisabled:!t,onChangeEnd:e=>{b({backgroundColor:e?new k.Q1({r:e.getChannelValue("red"),g:e.getChannelValue("green"),b:e.getChannelValue("blue")}):null})}})},"border-color":{toolbarItem:rp("border-color",{className:"PSPDFKit-Text-Annotation-Toolbar-Border-Color","aria-label":e(be.A.borderColor),icon:bl.hRt,value:cp(n.borderColor),allowAlpha:!1,allowRemoval:!0,pickerMode:"lazy",includePicker:l.showColorPicker,presets:l.presets,isDisabled:!t,onChange:e=>{r({borderColor:e?new k.Q1({r:e.getChannelValue("red"),g:e.getChannelValue("green"),b:e.getChannelValue("blue")}):null})}}),isHidden:!(d===F.O.CALLOUT||(0,R.I2)(n))},opacity:{toolbarItem:op("opacity",{className:"PSPDFKit-Toolbox PSPDFKit-Toolbox-Opacity",icon:bl.FNe,minValue:.1,maxValue:1,step:.01,formatValue:e=>`${Math.round(100*e)}%`,value:n.opacity??1,"aria-label":e(be.A.opacity),isDisabled:!t,onChange:e=>g({opacity:e}),numberFormatOptions:{style:"percent"}})},font:{toolbarItem:{name:"font",icon:bl.TL,"aria-label":e(be.A.font),children:[A,M,j,B,L]}},...V};return(0,ee.jsx)(xd,{items:K,className:"PSPDFKit-Text-Annotation-Toolbar"})}function cp(e){return e?Vd(`rgba(${e.r}, ${e.g}, ${e.b}, ${e.transparent?0:1})`):null}const up=(0,sl.defineMessages)({fontColor:{id:"fontColor",defaultMessage:"Font Color"}});var dp,pp,hp,fp;function mp(){const{selectedAnnotation:e}=Qu();return e instanceof k.Eo?dp||(dp=(0,ee.jsx)(Pd,{})):e instanceof k.dh?pp||(pp=(0,ee.jsx)(lp,{})):null}class gp extends u.PureComponent{constructor(){super(...arguments),(0,v.A)(this,"state",{showConfirmDelete:!1,expandedGroup:null,transitionFinished:!1,prevActiveGroup:null}),(0,v.A)(this,"focusRef",u.createRef()),(0,v.A)(this,"deleteAnnotation",(()=>{const e=this.props.annotation,t=this.props.selectedAnnotations&&this.props.selectedAnnotations?.size>1;e&&!t?this.props.dispatch((0,at.n9)((0,a.NZ)([e.id]))):t&&this.props.selectedAnnotations&&this.props.dispatch((0,at.n9)(this.props.selectedAnnotations.map((e=>e.id))))})),(0,v.A)(this,"handleEntered",(()=>{this.setState({transitionFinished:!0})})),(0,v.A)(this,"handleGroupExpansion",(e=>{e?this.setState({prevActiveGroup:e,expandedGroup:e}):this.setState({expandedGroup:e,transitionFinished:!1})})),(0,v.A)(this,"_handleKeyPress",(e=>{e.keyCode===Fn.XS&&this.state.expandedGroup&&this.handleGroupExpansion()})),(0,v.A)(this,"updateAnnotation",((e,t,n)=>{if(!e||!this.props.canEditAnnotationCP)return;e=e.merge(t);const r={annotations:(0,a.B8)([e]),reason:J.x.PROPERTY_CHANGE};this.props.eventEmitter.emit("annotations.willChange",r),n&&this.props.dispatch((0,at.iE)(n));const{text:o,...i}=t;this.props.dispatch((0,at.M)(i)),this.props.dispatch((0,at.g_)(e))})),(0,v.A)(this,"updateSingleAnnotation",((e,t)=>{const n=this.props.annotation;this.updateAnnotation(n,e,t)})),(0,v.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,v.A)(this,"onAnnotationNotePress",(()=>{const e=this.props.annotation;if(this.isActiveAnnotationNote())this.closeAnnotationNote();else if(e){const t=(0,hr.IZ)(e);this.props.dispatch((0,ve.mm)(t))}})),(0,v.A)(this,"deleteAnnotationNote",(()=>{const e=this.props.annotation;e&&(this.props.dispatch((0,at.g_)(e.delete("note"))),this.closeAnnotationNote())})),(0,v.A)(this,"closeAnnotationNote",(()=>{this.props.dispatch((0,ve.mm)(null))})),(0,v.A)(this,"_handleResize",(e=>{this.props.dispatch((0,Ru.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,viewportWidth:n}=this.props;if((0,l.V1)(e),!Lu.get(yp(e)))return(0,a.B8)();const r=n>xe.eV,o=Lu.get(yp(e))?.get(r?"desktop":"mobile")?.map((e=>({type:e})));if((0,l.V1)(o,`No default toolbar items found for annotation type: ${yp(e)}`),t){const n=t(e,{hasDesktopLayout:r,defaultAnnotationToolbarItems:o.toJS()});if(n)return n.forEach((t=>{Ku(t,yp(e))})),(0,a.B8)(n)}return o}renderContent(){var e=this;const{annotation:t,variantAnnotationPresetID:n,position:r,viewportWidth:o,frameWindow:i,intl:a,showAnnotationNotes:s,canEditAnnotationCP:c,canDeleteSelectedAnnotationCP:u,lastToolbarActionUsedKeyboard:d,interactionMode:p,keepSelectedTool:h,annotationToolbarColorPresets:f,isCalibratingScale:m}=this.props;if(!t)return null;const g={deleteAnnotation:this.deleteAnnotation,updateAnnotation:this.props.selectedAnnotations&&this.props.selectedAnnotations?.size>1?this.updateAnnotations:this.updateSingleAnnotation,intl:a,position:r,viewportWidth:o,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 du(t,e.state.expandedGroup)||n&&null!==p&&o>xe.eV?e.focusRef:void 0},btnFocusRefIfFocusedItem:function(t,n){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return pu(t,n,e.state.prevActiveGroup)||r&&null!==p&&o<xe.eV?e.focusRef:void 0},frameWindow:i,canEditAnnotationCP:c,canDeleteSelectedAnnotationCP:u,annotation:t,lastToolbarActionUsedKeyboard:d,annotationToolbarColorPresets:f,annotationToolbarItems:this.defaultToolbarItems(),hasDesktopLayout:o>xe.eV,customFontsReadableNames:this.props.customFontsReadableNames,isTextComparison:this.props.isTextComparison},v={onAnnotationNotePress:this.onAnnotationNotePress,showAnnotationNotes:s&&!t.isCommentThreadRoot,hasAnnotationNote:Boolean(t.note),isAnnotationNoteActive:this.isActiveAnnotationNote()};return t instanceof W.A?(0,ee.jsx)(gu,{...g,...v,annotation:t,isEditing:this.props.selectedAnnotationMode===B.Q.EDITING,dispatch:this.props.dispatch,keepSelectedTool:h}):t instanceof k.UL?(0,ee.jsx)(Wu,{...g,...v,annotation:t}):t instanceof k.tr?(0,ee.jsx)(Iu,{...g,...v,annotation:t,isEditing:this.props.selectedAnnotationMode===B.Q.EDITING,dispatch:this.props.dispatch,variantAnnotationPresetID:n}):t instanceof k.Eo?hp||(hp=(0,ee.jsx)(mp,{})):t instanceof Gu.A&&t.isMeasurement()?m?null:(0,ee.jsx)(Xu,{...g,...v,annotation:t,dispatch:this.props.dispatch,isEditing:this.props.selectedAnnotationMode===B.Q.EDITING,selectedAnnotations:this.props.selectedAnnotations}):t instanceof k.MU?(0,ee.jsx)($u,{...g,...v,annotation:t,isEditing:this.props.selectedAnnotationMode===B.Q.EDITING,name:"Line"}):t instanceof k.Zx?(0,ee.jsx)($u,{...g,...v,annotation:t,isEditing:this.props.selectedAnnotationMode===B.Q.EDITING,name:"Rectangle"}):t instanceof k.Go?(0,ee.jsx)($u,{...g,...v,annotation:t,isEditing:this.props.selectedAnnotationMode===B.Q.EDITING,name:"Ellipse"}):t instanceof k.Si?(0,ee.jsx)($u,{...g,...v,annotation:t,isEditing:this.props.selectedAnnotationMode===B.Q.EDITING,name:"Polygon"}):t instanceof k.ug?(0,ee.jsx)($u,{...g,...v,annotation:t,isEditing:this.props.selectedAnnotationMode===B.Q.EDITING,name:"Polyline"}):t instanceof k.dh?fp||(fp=(0,ee.jsx)(mp,{})):t instanceof k.s9?(0,ee.jsx)(ju,{...g,annotation:t,dispatch:this.props.dispatch,isAnnotationReadOnly:this.props.isAnnotationReadOnly,keepSelectedTool:h,interactionMode:p}):t instanceof k.vU?(0,ee.jsx)(wu,{...g,...v,annotation:t,areOnlyElectronicSignaturesEnabled:this.props.areOnlyElectronicSignaturesEnabled,selectedAnnotationPageSize:this.props.selectedAnnotationPageSize}):t instanceof k.xY?(0,ee.jsx)(yu,{...g,...v,annotation:t}):t instanceof k.sb?(0,ee.jsx)(Hu,{...g,annotation:t,selectedAnnotationPageSize:this.props.selectedAnnotationPageSize}):t instanceof k.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,ee.jsxs)("div",{className:p()("PSPDFKit-Annotation-Toolbar",Yc().root,{[Yc().stickToBottom]:"bottom"===this.props.position}),onKeyDown:this._handleKeyPress,children:[(0,ee.jsx)(Fu.A,{onResize:this._handleResize}),this.renderContent()]})}}const vp=(0,he.j4)(gp);function yp(e){return"isMeasurement"in e&&e.isMeasurement?.()?"Measurement":Lu.get(e.constructor.readableName)?e.constructor.readableName:e instanceof k.tr?k.tr.readableName:e instanceof k.sb?k.sb.readableName:void new l.uE("AnnotationToolbarComponent: getReadableName: Annotation type not handled")}function bp(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}const wp=u.memo((function(e){let{intl:t,dispatch:n,inkEraserCursorWidth:r,position:o,viewportWidth:i}=e;const a=(0,s.d4)((e=>e.shadowRoot)),{handleGroupExpansion:l,handleEntered:c,expandedGroup:d,prevActiveGroup:h,btnFocusRef:f}=(0,yr.s_)(),[m,g]=u.useState(r);u.useEffect((()=>{n((0,at.ZL)(m))}),[m,n]),u.useEffect((()=>{g(r)}),[r]);const v=u.useCallback((e=>{n((0,at.M)({inkEraserWidth:e})),g(e)}),[n]),y=u.useCallback((e=>{e.keyCode===Fn.XS&&d&&l()}),[d,l]),{formatMessage:b}=t,w={lineWidth:{node:(0,ee.jsx)("div",{className:Yc().controlWrapper,children:(0,ee.jsx)("div",{className:Yc().control,children:(0,ee.jsx)(jc.A,{name:"lineWidth",accessibilityLabel:b(be.A.size),className:"PSPDFKit-Ink-Eraser-Toolbar-Line-Width",value:m,valueLabel:e=>b(be.A.numberInPt,{arg0:e.toFixed(0)}),min:1,max:40,step:1,onChange:v,caretDirection:"bottom"===o?"up":"down",innerRef:du("lineWidth",d)?f:void 0,shadowRoot:a})})}),title:b(be.A.thickness)}};return(0,ee.jsx)("div",{className:p()("PSPDFKit-Annotation-Toolbar",Yc().root,{[Yc().stickToBottom]:"bottom"===o}),onMouseUp:bp,onTouchEnd:bp,onPointerUp:bp,onKeyDown:y,children:(0,ee.jsxs)("div",{className:`\n        PSPDFKit-Ink-Eraser-Toolbar\n        ${Yc().content}\n\n      `,children:[(0,ee.jsx)("div",{className:Yc().left,children:(0,ee.jsx)("form",{className:Yc().form,onSubmit:Yn.wo,children:(0,ee.jsxs)("div",{className:`${Yc().formGroup} PSPDFKit-Toolbox PSPDFKit-Toolbox-LineWidth`,children:[(0,ee.jsx)(Kc,{type:"line-width",title:w.lineWidth.title,className:Yc().button,onPress:()=>l("lineWidth"),disabled:Boolean(d),presentational:i>xe.eV,ref:pu("lineWidth",d,h)?f:void 0}),w.lineWidth.node]})})}),(0,ee.jsx)("div",{className:Yc().right,children:(0,ee.jsx)(iu,{position:o,onClose:()=>l(null),isPrimary:!1,onEntered:c,accessibilityLabel:d?w[d].title:void 0,children:d?w[d].node:void 0})})]})})})),xp=(0,he.j4)(wp);var Sp=n(3624),_p=n.n(Sp);const Cp=(0,s.Ng)((e=>({connectionFailureReason:e.connectionFailureReason})),(()=>({})))((e=>(0,ee.jsx)("div",{className:`PSPDFKit-Error ${_p().root}`,children:(0,ee.jsxs)("div",{className:`PSPDFKit-Error-Box ${_p().box}`,children:[(0,ee.jsx)("div",{className:_p().error,children:(0,ee.jsx)(Ae.A,{src:n(11899),className:_p().icon})}),(0,ee.jsx)("div",{className:`PSPDFKit-Error-Message ${_p().errorMessage}`,children:(0,ee.jsx)("p",{children:null!=e.connectionFailureReason?e.connectionFailureReason:(0,ee.jsxs)(ee.Fragment,{children:["An error occurred while loading the document. Try"," ",(0,ee.jsx)("a",{href:"#",onClick:()=>window.location.reload(),children:"reloading the page"}),"."]})})})]})})));var Ep=n(13178),kp=n.n(Ep);function zp(){const e=(0,s.d4)((e=>e.ui[dl.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,he.tz)(),i=(0,sl.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(Pp.password),"aria-label":o(Pp.password),onInput:e=>{l(e.target.value)},validationState:c?"error":"valid",errorMessage:c?o(Pp.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(Pp.passwordRequired),message:o(Pp.unlockDocumentDescription),icon:bl.fYD,iconColor:nd.G6.color.support.info.medium,primaryActionLabel:o(Pp.unlock),onPrimaryAction:f,textInputProps:m,isPrimaryActionDisabled:p})),[f,o,m,p]);return(0,pl.Q)(dl.Rq.PasswordDialog,e,g,r)}const Pp=(0,he.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 Ap,Dp;class Tp 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 Mi.D.CONNECTING:{const e=a?Ip[a]??a:null,t=e?n(e):"";return(0,ee.jsx)("div",{className:kp().loader,children:(0,ee.jsx)(o.ke,{message:t,progress:i??0})})}case Mi.D.CONNECTION_FAILED:return Ap||(Ap=(0,ee.jsx)(Cp,{}));case Mi.D.PASSWORD_REQUIRED:return Dp||(Dp=(0,ee.jsx)(zp,{}));default:return void 0===e?null:e}}}const Ip=(0,he.YK)({loading:{id:"loading",defaultMessage:"Loading...",description:"Shown while the document is being fetched"}}),Mp=(0,he.j4)(Tp),Np=(0,Ut.A)(((e,t,n)=>{const r=(0,R.T1)(e,t);return n?r.sort(Lp):r.sort(Bp)}));const Op=(0,gn.F)((function(e,t){let{page:n}=t;const r=!!e.reuseState,o=Np(e.annotations,n,e.viewportState.forceRenderWidgetsInAnnotationsOrder);let i=(0,a.B8)(),s=null;switch(e.selectedAnnotationMode){case B.Q.SELECTED:i=o.filter((t=>e.selectedAnnotationIds.has(t.id)));break;case B.Q.EDITING:s=e.selectedAnnotationIds.map((t=>{const n=e.annotations.get(t);return(0,l.V1)(n),n})).first(),(s instanceof k.s9||s instanceof k.dG)&&s.pageIndex===n.pageIndex&&(i=(0,a.B8)([s]))}return{backend:e.backend,hoverAnnotationIds:e.hoverAnnotationIds,interactionMode:e.interactionMode,isAnnotationReadOnly:t=>(0,mn.Qe)(t,e),selectedAnnotationIds:e.selectedAnnotationIds,activeAnnotationNote:e.activeAnnotationNote,selectedTextOnEdit:e.selectedTextOnEdit,showAnnotations:e.showAnnotations,window:e.frameWindow,zoomLevel:e.viewportState.zoomLevel,rotation:e.viewportState.pagesRotation,onFocusAnnotation:Rp(e.eventEmitter),onBlurAnnotation:Fp(e.eventEmitter),formDesignMode:e.formDesignMode,annotations:o,isReloadingDocument:r,attachments:e.attachments,selectedAnnotations:i,editingAnnotation:s,showComments:(0,Ia.ai)(e),showAnnotationNotes:e.showAnnotationNotes,eventEmitter:e.eventEmitter,isAPStreamRendered:e.isAPStreamRendered,pageInvalidAPStreams:e.invalidAPStreams.get(n.pageIndex),canEditAnnotationCP:t=>(0,lr.q2)(t,e),canDeleteAnnotationCP:t=>(0,lr.db)(t,e),keepSelectedTool:e.keepSelectedTool,scrollElement:e.scrollElement,focusedAnnotationIds:e.focusedAnnotationIds,inkEraserMode:e.inkEraserMode,viewportState:e.viewportState,page:n,enableRichText:e.enableRichText,multiAnnotationsUsingShortcut:e.multiAnnotationsUsingShortcut,isMultiSelectionEnabled:e.isMultiSelectionEnabled,comments:e.comments,isAutoSaveDisabled:e.autoSaveMode===z.O.DISABLED,getRelativePosition:t=>(0,y.gP)({event:t,shadowRoot:e.shadowRoot,rootElement:e.rootElement,containerRect:e.containerRect})}}))((function(e){const{annotations:t,isReloadingDocument:n,showAnnotations:r,zoomLevel:o,rotation:i,attachments:c,backend:d,dispatch:p,hoverAnnotationIds:h,page:f,isAnnotationReadOnly:m,canEditAnnotationCP:g,canDeleteAnnotationCP:v,getScrollElement:y,onFocusAnnotation:b,onBlurAnnotation:w,formDesignMode:x,selectedTextOnEdit:S,selectedAnnotationIds:_,selectedAnnotations:C,activeAnnotationNote:E,interactionMode:z,editingAnnotation:P,window:A,children:D,showComments:T,showAnnotationNotes:I,eventEmitter:M,isAPStreamRendered:N,pageInvalidAPStreams:O=(0,a.NZ)(),keepSelectedTool:j,focusedAnnotationIds:B,inkEraserMode:V,enableRichText:K,multiAnnotationsUsingShortcut:$,setGlobalCursor:H,isMultiSelectionEnabled:U,comments:q,isAutoSaveDisabled:G,getRelativePosition:Y}=e,Z=(0,s.d4)((e=>e.isTextComparison));(0,l.V1)(O);const{pageSize:J,pageIndex:X}=f,Q=u.useCallback((e=>e instanceof k.dG?!!q.some((t=>t.rootId===e.id))&&T:!(e instanceof k.tr&&e.isCommentThreadRoot)||T),[T,q]),[te,ne]=u.useState(null),[oe,ie]=u.useState(void 0),[ae,se]=u.useState(!1),[le,ce]=u.useState(Array()),ue=(0,s.d4)((e=>e.shadowRoot)),de=u.useCallback((function(e){"number"==typeof e.clientX&&"number"==typeof e.clientY&&ne(new k.bR({x:e.clientX,y:e.clientY}))}),[]),pe=_.size>0,he=t.filter((e=>e instanceof k.tr&&(e.isCommentThreadRoot||!m(e)))),fe=u.useMemo((()=>t.filter((e=>e instanceof k.UL))),[t]),me=u.useMemo((()=>t.filter((e=>e instanceof k.Eo))),[t]),ge=(0,yr.Kw)((e=>e instanceof k.Eo&&(0,R.gf)(e)&&!m(e)&&g(e)&&v(e))),ve=u.useMemo((()=>me.filter(ge)),[me,ge]);function ye(e){const t=_.has(e.id);return e instanceof W.A?t&&z!==F.O.REDACT_TEXT_HIGHLIGHTER:t}function be(e){ce(e?[...le,e]:[])}const we=P instanceof k.Eo?P:null,xe=P instanceof k.pP?P:null,Se=P instanceof k.dh&&null===P.pageIndex?P:null,_e=P instanceof k.dh&&P.pageIndex===X?P:null,Ce=P instanceof k.s9&&null===P.pageIndex?P:null,Ee=P instanceof k.dG&&null===P.pageIndex?P:null,ke=P instanceof W.A&&null===P.pageIndex?P:null,ze=P instanceof k.UL&&null===P.pageIndex?P:null,[Pe,Ae]=u.useState(!1),De=u.useRef(!1),Te=e=>(Pe&&(0,R.nH)(e)||"number"==typeof e.buttonIconUpdatedAt)&&!O?.has(e.id)&&(0,R.F)(e.boundingBox)&&N(e),Ie=u.useRef(o),Me=u.useRef(X),Oe=(0,yr.aq)();u.useEffect((()=>{if(n)return void(De.current=!1);(o>Ie.current||Me.current!==X)&&(De.current=!1,Me.current=X),Ie.current=o;const e=t.filter((e=>!O?.has(e.id)&&(0,R.nH)(e)&&(0,R.F)(e.boundingBox)&&N(e)));e.size>0&&!De.current&&(De.current=!0,d.renderPageAnnotations(X,e,o*(0,Mr.I)()).then((()=>{Oe()&&Ae(!0)})))}),[X,o,N,d,O,t,Ae,Pe,n,Oe]),u.useEffect((()=>{Pe&&d.clearPageAPStreams(X,O)}),[Pe,d,X,O]),u.useEffect((()=>{if(Pe)return()=>{d.clearAllPageAPStreams(X)}}),[d,X,Pe]);const je=(0,yr.ZC)({zoomLevel:o}),Re=!!je?.zoomLevel&&je.zoomLevel<o;u.useEffect((()=>{Re&&d.clearAllPageAPStreams(X)}));const Fe=V===Lo.y.POINT?Hr:Wr,Be=C.filter((e=>Q(e)&&(0,R.gf)(e)&&(0,R.bu)(e)&&(!m(e)||e instanceof k.s9)&&(!(e instanceof k.dG)||null==P))),Le=Be.size>1,Ve=t.filter((e=>Q(e)&&(0,R.gf)(e)&&function(e){return!(z===F.O.INK_ERASER&&ge(e))}(e)&&(!ye(e)||!(0,R.bu)(e)||m(e)||e instanceof k.dG&&P&&P.equals(e))&&!function(e){return e instanceof k.sb&&ye(e)&&x}(e))),Ke=Ve.filter((e=>(0,R.oZ)(e))),$e=Ve.filter((e=>!(0,R.oZ)(e)));return(0,ee.jsxs)(re.Provider,{children:[(0,ee.jsxs)(Ir,{dispatch:p,selectableTextMarkupAnnotations:he,selectableLinkAnnotations:fe,hoverAnnotationIds:h,zoomLevel:o,window:A,pageIndex:X,selectedAnnotations:C,keepSelectedTool:j,interactionMode:z,setMultiAnnsInitialEvent:ie,isMultiSelectionEnabled:U,isHitCaptureDeferred:ae,hitCaptureDeferredRect:le,currentPageAnnotations:t,isMultiAnnotationsSelected:Le,isTextComparison:Z,children:[D,r?(0,ee.jsxs)("div",{children:[$e.map((e=>e instanceof k.sb?null:(0,ee.jsx)(wr,{annotation:(0,Ne.rK)(e),globalAnnotation:e,attachments:c,backend:d,dispatch:p,isAnnotationReadOnly:m,isDisabled:pe&&!ye(e),isHover:h.has(e.id),isSelected:ye(e),activeAnnotationNote:E,showAnnotationNotes:I,onBlur:w,onFocus:b,pageSize:J,zoomLevel:o,rotation:i,pageRotation:f.rotation,shouldRenderAPStream:Te(e),isFocused:B.has(e.id),isMultiAnnotationsSelected:Le,isComboBoxOpen:se,handleComboBoxRect:be,isAutoSaveDisabled:G},e.id))),$e.sort(((e,t)=>{if(!f.tabOrder||"string"!=typeof e.id||"string"!=typeof t.id)return 0;const n=f.tabOrder.indexOf(e.id),r=f.tabOrder.indexOf(t.id);return-1===n&&-1===r?0:-1===n?1:-1===r?-1:n-r})).map((e=>e instanceof k.sb?(0,ee.jsx)(wr,{annotation:(0,Ne.rK)(e),globalAnnotation:e,attachments:c,backend:d,dispatch:p,isAnnotationReadOnly:m,isDisabled:pe&&!ye(e),isHover:h.has(e.id),isSelected:ye(e),activeAnnotationNote:E,showAnnotationNotes:I,onBlur:w,onFocus:b,pageSize:J,zoomLevel:o,rotation:i,pageRotation:f.rotation,shouldRenderAPStream:Te(e),isFocused:B.has(e.id),isMultiAnnotationsSelected:Le,isComboBoxOpen:se,handleComboBoxRect:be,isAutoSaveDisabled:G},e.id):(0,ee.jsx)(Ci,{annotation:e,isDisabled:pe&&!ye(e),zoomLevel:o,onBlur:w,onFocus:b,isFocused:B.has(e.id),isSelected:ye(e)},e.id))),Ke.map((e=>(0,ee.jsx)(wr,{annotation:(0,Ne.rK)(e),globalAnnotation:e,attachments:c,backend:d,dispatch:p,isAnnotationReadOnly:m,isDisabled:pe&&!ye(e),isHover:h.has(e.id),isSelected:ye(e),activeAnnotationNote:E,showAnnotationNotes:I,onBlur:w,onFocus:b,pageSize:J,zoomLevel:o,rotation:i,pageRotation:f.rotation,shouldRenderAPStream:Te(e),isFocused:B.has(e.id),isMultiAnnotationsSelected:Le,isComboBoxOpen:se,handleComboBoxRect:be,isAutoSaveDisabled:G},e.id))),Le&&(0,ee.jsx)(u.Fragment,{children:(0,ee.jsx)(Ro,{dispatch:p,pageIndex:X,pageSize:J,window:A,getScrollElement:y,selectedAnnotations:Be.map((e=>(0,Ne.rK)(e))),selectedGlobalAnnotations:Be,children:Be.map((e=>(0,ee.jsx)(wr,{annotation:(0,Ne.rK)(e),globalAnnotation:e,attachments:c,backend:d,dispatch:p,isAnnotationReadOnly:m,isDisabled:!1,isHover:h.has(e.id),isSelected:!0,activeAnnotationNote:E,showAnnotationNotes:I,onBlur:w,onFocus:b,pageSize:J,zoomLevel:o,rotation:i,pageRotation:f.rotation,onClick:e instanceof k.dh?de:void 0,shouldRenderAPStream:Te(e),isFocused:!1,isComboBoxOpen:se,handleComboBoxRect:be,isAutoSaveDisabled:G},e.id)))})},"multi-annotations-selection"),!Le&&Be.map((t=>(0,ee.jsxs)(u.Fragment,{children:[(0,ee.jsx)(Mo,{pageIndex:X,pageSize:J,annotation:(0,Ne.rK)(t),globalAnnotation:t,window:A,getScrollElement:y,onFocus:b,onBlur:w,isResizable:(0,R.BU)(t),isModifiable:(0,R.o4)(t),isRotatable:(0,R.KQ)(t),setGlobalCursor:H,backend:d,disablePointSnapping:e.viewportState.disablePointSnapping,isAnnotationLocked:t.locked,children:(0,ee.jsx)(wr,{annotation:(0,Ne.rK)(t),globalAnnotation:t,attachments:c,backend:d,dispatch:p,isAnnotationReadOnly:m,isDisabled:!1,isHover:h.has(t.id),isSelected:!0,isFocused:!1,activeAnnotationNote:E,showAnnotationNotes:I,onBlur:w,onFocus:b,pageSize:J,zoomLevel:o,rotation:i,pageRotation:f.rotation,onClick:t instanceof k.dh?de:void 0,shouldRenderAPStream:Te(t),isComboBoxOpen:se,handleComboBoxRect:be,isAutoSaveDisabled:G})}),I&&(0,R.Cx)(t)&&(0,ee.jsx)(mr,{dispatch:p,annotation:t,zoomLevel:o,isAnnotationSelected:!0,activeAnnotationNote:E,visible:!1})]},t.id)))]}):null]}),z===F.O.INK&&null!==we&&(0,R.gf)(we)?(0,ee.jsx)(Fr,{dispatch:p,pageSize:J,pageIndex:X,inkAnnotation:we.pageIndex===X?we:we.delete("lines").delete("boundingBox"),scrollElement:e.scrollElement}):null,z===F.O.INK_ERASER&&me.size>0?(0,ee.jsx)(Fe,{inkAnnotations:ve,canvasSize:J,pageIndex:X}):null,xe&&[...ki,...zi].includes(z)&&(0,R.gf)(xe)?(0,ee.jsx)(jt,{dispatch:p,pageSize:J,pageIndex:X,shapeAnnotation:xe.pageIndex===X?xe:(0,L.YC)(xe),isAnnotationMeasurement:[...zi].includes(z),backend:d,disablePointSnapping:e.viewportState.disablePointSnapping}):null,z!==F.O.TEXT&&z!==F.O.CALLOUT||!Se?null:(0,ee.jsx)(vo,{annotation:Se,interactionMode:z,dispatch:p,pageSize:J,pageIndex:X,autoSelect:S,eventEmitter:M,zoomLevel:o}),_e&&(0,R.gf)(_e)?(0,ee.jsx)(fo,{dispatch:p,annotation:_e,pageIndex:X,pageSize:J,autoSelect:S,lastMousePoint:null===te?void 0:te,eventEmitter:M,keepSelectedTool:j,enableRichText:K,shadowRoot:ue}):null,(Ce||Ee)&&(0,ee.jsx)(Pr,{dispatch:p,annotation:Ce||Ee,pageSize:J,pageIndex:X,zoomLevel:o,getRelativePosition:Y}),ke&&z===F.O.REDACT_SHAPE_RECTANGLE&&(0,R.gf)(ke)?(0,ee.jsx)(Fo,{dispatch:p,pageSize:J,pageIndex:X,redactionAnnotation:ke.pageIndex===X?ke:ke.delete("boundingBox"),keepSelectedTool:j}):null,z===F.O.LINK&&ze?(0,ee.jsx)(yi,{dispatch:p,linkAnnotation:ze,viewportState:e.viewportState,page:e.page,window:e.window,pageIndex:X,keepSelectedTool:j}):null,z===F.O.MULTI_ANNOTATIONS_SELECTION?(0,ee.jsx)(Si,{viewportState:e.viewportState,window:e.window,pageIndex:X,initialDraggingEvent:oe,multiAnnotationsUsingShortcut:$}):null]})})),jp=Op,Rp=(0,Ut.A)((e=>(t,n)=>{e.emit("annotations.focus",{annotation:t,nativeEvent:void 0!==n.nativeEvent?n.nativeEvent:n})})),Fp=(0,Ut.A)((e=>(t,n)=>{e.emit("annotations.blur",{annotation:t,nativeEvent:void 0!==n.nativeEvent?n.nativeEvent:n})}));function Bp(e,t){const n=Vp(e),r=Vp(t);return n>r?1:n<r?-1:0}function Lp(e,t){const n=Kp(e),r=Kp(t);return n>r?1:n<r?-1:0}function Vp(e){return e instanceof k.sb?3:e instanceof k.ax||e instanceof k.sB||e instanceof k.Yi||e instanceof k.TI?2:e instanceof k.UL?1:0}function Kp(e){return e.isSignature?3:e instanceof k.ax||e instanceof k.sB||e instanceof k.Yi||e instanceof k.TI?2:e instanceof k.UL?1:0}var $p=n(31428),Hp=n.n($p);const Up=["keyup","selectionchange","touchend","mouseup","pointerup"];class qp extends u.PureComponent{constructor(){super(...arguments),(0,v.A)(this,"_hostElement",u.createRef()),(0,v.A)(this,"_onAppearInvoked",!1),(0,v.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;Up.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;Up.forEach((e=>{t.removeEventListener(e,this._preventTextSelection,!0)})),this._onAppearInvoked=!1;const{onDisappear:n}=this.props.item;"function"==typeof n&&n()}render(){return(0,ee.jsx)(ge,{applyZoom:!this.props.item.disableAutoZoom,position:this.props.item.position,noRotate:this.props.item.noRotate,currentPagesRotation:this.props.rotation,zoomLevel:this.props.zoomLevel,children:(0,ee.jsx)("div",{className:Hp().selectable,ref:this._hostElement})})}}var Wp=n(76426);class Gp extends u.PureComponent{constructor(){super(...arguments),(0,v.A)(this,"_handlePointerUp",(e=>{const{transformClientToPage:t,onEmit:n,pageIndex:r}=this.props;n(e,t(new E.bR({x:e.clientX,y:e.clientY}),r))}))}render(){return(0,ee.jsx)($e.A,{onPointerUp:this._handlePointerUp,children:u.createElement(this.props.element,{className:this.props.className},this.props.children)})}}const Yp=_r(Gp);var Zp=n(79260),Jp=n.n(Zp);function Xp(e){return{type:V.MCf,state:e}}var Qp=n(32574);const eh=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,ee.jsx)("div",{style:o,className:r})};let th=function(e){return e.PULSE="pulse",e}({});const nh=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(Xp(Qp.B))}),300)),()=>{r&&clearTimeout(r)}}),[e,t,n])}(a,o);const l=(0,u.useMemo)((()=>p()(Jp().highlight,{[Jp().focused]:r,[Jp()["fade-out"]]:!a,[Jp().pulse]:i===th.PULSE&&a,"PSPDFKit-Highlight":!0,"PSPDFKit-Highlight-focused":r})),[r,a,i]),c=(0,u.useMemo)((()=>t.map(((e,t)=>(0,ee.jsx)(eh,{rect:e,zoomLevel:n,className:l},t)))),[t,n,l]);return(0,ee.jsx)("div",{"data-testid":"Highlight","aria-live":"polite",children:c})},rh=u.memo(nh);function oh(e){let{focused:t,searchResult:n,zoomLevel:r}=e;return(0,ee.jsxs)("div",{"data-testid":"SearchHighlight","aria-live":"polite",children:[t?(0,ee.jsxs)(o.s6,{announce:"polite",children:["Search Result: ",n.previewText]}):null,(0,ee.jsx)(rh,{focused:t,rectsOnPage:n.rectsOnPage,zoomLevel:r})]})}var ih=n(44660),ah=n.n(ih);const sh=(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,ee.jsx)("div",{className:ah().layer,"data-testid":"SearchHighlightLayer",children:t.map(((e,t)=>(0,ee.jsx)(oh,{focused:e===n,searchResult:e,zoomLevel:r},t)))})})),lh=e=>{let{textLine:t,eventEmitter:n,enableTextSelection:r,scaling:o,vertical:i,isTextCopyingAllowed:a,isPanModeEnabled:l,contentBlockId:c,pageIndex:d,parentBoundingBoxes:h,fontFamily:f}=e;const m=(0,yr.Kw)((0,Ut.A)(R.F7)),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,ve.od)())}),[]),b=p()({[la().line]:!0,[la().lineTextCursor]:!l,[la().debug]:!1,[la().enableTextSelection]:r,"PSPDFKit-Text":!0,[la().vertical]:!!i,[la().selectableText]:!0}),{left:w,top:x}=h.reduce(((e,t)=>({left:e.left-t.left,top:e.top-t.top})),{left:t.boundingBox.left,top:t.boundingBox.top}),S={left:w,top:x,transform:o&&o.scaleX>0&&o.scaleY>0?`scale(${o.scaleX}, ${o.scaleY})`:"",fontFamily:f},_=(0,ra.O6)(a,t),C=(0,s.d4)((e=>m(e.annotations,t.pageIndex))),E=C.find((e=>e.boundingBox.isRectInside(t.boundingBox)));return(0,ee.jsxs)(Yp,{pageIndex:d,className:p()({[la().lineSelection]:!0}),onEmit:g,element:"span",children:[!fe.gm&&(0,ee.jsx)("span",{className:p()({[la().linePadding]:!0,[la().preventUserSelect]:fe.nr||fe.Qg}),style:{top:x,left:w-20,transform:"none"},onClick:fe.nr||fe.Qg?y:void 0}),(0,ee.jsx)("span",{className:b,style:S,"data-contentblock-id":c,"data-textline-id":t.id,"data-page-index":d,...E&&E.note?{title:E.note}:void 0,children:_},t.id||void 0)]})},ch=u.memo(lh);var uh=n(25508),dh=n(92726),ph=n.n(dh);function hh(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,ee.jsx)("img",{src:ze.Uu,alt:o,title:o,style:c,"data-contentblock-id":r,"data-contentelement-id":t.id,"data-page-index":n,className:ph().element,onDragStart:()=>!1}):(0,ee.jsx)("span",{style:c,"data-contentblock-id":r,"data-contentelement-id":t.id,"data-page-index":n,title:o})}var fh=n(37271),mh=n.n(fh);const gh=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=fe.gm?{}:{...l?null:{zIndex:-1}},r.boundingBox&&(0,ra.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 k.rw(t))}return u&&u in uh.O&&(c=a?uh.O[u]:"span",0===r.contentElements.size&&0===r.textLines.size&&r.contentTreeElementMetadata?.alt&&(d.title=r.contentTreeElementMetadata?.alt),"span"===c&&uh.L[u]&&(d.role=uh.L[u]),d.style={...d.style,...(0,ra.cE)(c)}),(0,ee.jsxs)(c,{className:r.boundingBox&&"Figure"===u?mh().blockContainer:void 0,...d,children:[r.contentBlocks.map((s=>(0,ee.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))),r.textLines.map((e=>(0,ee.jsx)(ch,{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,ee.jsx)(hh,{pageIndex:t.pageIndex,contentBlockId:(l??"")+r.id,contentElement:e,alt:r.contentTreeElementMetadata?.alt,parentBoundingBoxes:p},e.id)))]})};var vh;class yh extends u.PureComponent{constructor(){super(...arguments),(0,v.A)(this,"layerRef",u.createRef()),(0,v.A)(this,"state",{needsTextSelectionOverlay:"gecko"===fe.Hi,overlayHeight:0}),(0,v.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,v.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,ee.jsxs)("div",{className:p()(la().layer,{[la().panModeEnabledInWindows]:this.props.isPanModeEnabled&&"windows"===fe.qU},"PSPDFKit-Content-Layer"),onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,style:{transform:`scale(${t})`,transformOrigin:"0 0"},ref:this.layerRef,role:"webkit"===fe.Hi?"text":void 0,children:[vh||(vh=(0,ee.jsx)("div",{})),o?.map((t=>(0,ee.jsx)(gh,{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 E.rw(c)])},t.id))),this.state.needsTextSelectionOverlay&&this.state.overlayHeight>0?(0,ee.jsx)("div",{className:la().overlay,style:{top:this.state.overlayHeight}}):null]})}}var bh=n(20774),wh=n.n(bh);const xh={rect:null,startingPoint:null};const Sh=(0,s.Ng)((function(e,t){let{pageIndex:n}=t;return{clientToPageTransformation:(0,q.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(xh),l=u.useCallback((e=>e.apply(r)),[r]);u.useEffect((function(){return t((0,Pt.y7)()),function(){t((0,Pt.JN)())}}),[t]);const{rect:c}=a;return(0,ee.jsxs)("div",{className:wh().canvas,children:[null!==c?(0,ee.jsxs)("svg",{className:wh().svg,style:{left:c.left*i,top:c.top*i,width:c.width*i,height:c.height*i},focusable:!1,children:[(0,ee.jsx)("rect",{className:wh().rect,height:c.height*i,width:c.width*i,x:0,y:0}),(0,ee.jsx)("rect",{className:wh().rectStrokeBetween,height:c.height*i,width:c.width*i,x:0,y:0})]}):null,(0,ee.jsx)(zt.A,{size:n,onDrawStart:function(e){s((t=>({...t,startingPoint:e})))},onDrawCoalesced:function(e){const{startingPoint:t}=a;(0,me.V)(t);const n=e[e.length-1];s((e=>({...e,rect:_h(t,n)})))},onDrawEnd:function(){const{rect:e}=a,n=5/i;null===e||e.width<n&&e.height<n||t((0,lc.kw)(o,e)),s(xh)},transformPoint:l,interactionMode:e.interactionMode,scrollElement:e.scrollElement})]})}));function _h(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 k.rw({left:n,top:r,width:o-n,height:i-r})}var Ch=n(21856),Eh=n.n(Ch);function kh(e){let{frameWindow:t,pageRef:r,interactionMode:o,onCreate:i,pageIndex:a,intl:c}=e;const[d,h]=(0,u.useState)([0,0]),[f,m]=(0,u.useState)((0,fe.CN)()),g=(0,s.d4)((e=>e.shadowRoot));return(0,u.useEffect)((()=>{if((0,fe.CN)())return;function e(e){const{pageX:t,pageY:n}=e,o=e.target.closest(".PSPDFKit-Page");if(!o)return void m(!1);const i=o.getAttribute("data-page-index");if((0,l.V1)("string"==typeof i,"Page number is not a string"),+i===a){m(!0),(0,l.V1)(r.current);const{left:e,top:o}=r.current.getBoundingClientRect();h([t-e,n-o])}else m(!1)}const n=g||t;return n.addEventListener("mousemove",e),()=>{(0,fe.CN)()||n.removeEventListener("mousemove",e)}}),[r,t,a,g]),f?(0,ee.jsx)("div",{className:p()({[Eh().wrapper]:(0,fe.CN)()},"PSPDFKit-Form-Creator-Guides"),onPointerUp:i,role:"application",children:!(0,fe.CN)()&&(0,ee.jsxs)(ee.Fragment,{children:[(0,ee.jsx)("div",{className:Eh().hGuide,style:{transform:`translate(0, ${d[1]}px)`}}),(0,ee.jsx)("div",{className:Eh().vGuide,style:{transform:`translate(${d[0]}px,0)`}}),(0,ee.jsxs)("div",{className:p()({[Eh().buttonWidget]:o===F.O.BUTTON_WIDGET,[Eh().textWidget]:o===F.O.TEXT_WIDGET,[Eh().radioWidget]:o===F.O.RADIO_BUTTON_WIDGET,[Eh().checkboxWidget]:o===F.O.CHECKBOX_WIDGET,[Eh().signWidget]:o===F.O.SIGNATURE_WIDGET,[Eh().listBoxWidget]:o===F.O.LIST_BOX_WIDGET,[Eh().comboBoxWidget]:o===F.O.COMBO_BOX_WIDGET,[Eh().dateWidget]:o===F.O.DATE_WIDGET}),style:{transform:`translate(${d[0]}px,${d[1]}px)`},children:[(0,ee.jsx)("div",{children:c.formatMessage(be.A.sign)}),(0,ee.jsx)(Ae.A,{src:n(62159)})]})]})}):null}var zh=n(47679);const Ph=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,Es.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,zh.TJ)(h,m),n=(0,Mr.I)(),i=await p({pixelAnchor:{x:r.x*o*n,y:r.y*o*n},globalEffects:(0,zh.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/(fe.nr?1:n)+"px",l.width=s.size.x),u.size.y!=s.size.y&&(l.style.height=s.size.y/(fe.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=fe.nr?{transformOrigin:"top left",transform:`scale(${1/devicePixelRatio})`}:{};return(0,ee.jsx)("canvas",{ref:c,style:{position:"absolute",left:0,top:0,...g}})},Ah=u.memo(Ph);var Dh=n(58341);const Th={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)}};var Ih=n(3602),Mh=n.n(Ih),Nh=n(40411);const Oh=(0,he.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:"ceDownloadRequiredTitle",defaultMessage:"Download Required",description:"Title for the Download Required dialog"},ceDownloadRequiredMessage:{id:"ceDownloadRequiredMessage",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:"ceDownloadRequiredButton",defaultMessage:"Download Document",description:"Button text for the Download Required dialog"},ceCannotSaveChangesTitle:{id:"ceCannotSaveChangesTitle",defaultMessage:"Cannot Save Changes",description:"Title for the Cannot Save Changes dialog"},ceCannotSaveChangesMessage:{id:"ceCannotSaveChangesMessage",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:"ceCannotSaveChangesButton",defaultMessage:"Discard",description:"Button text for the Cannot Save Changes primary button"},ceCannotSaveChangesReviewButton:{id:"ceCannotSaveChangesReviewButton",defaultMessage:"Review",description:"Button text for the Cannot Save Changes primary cancel button"},ceDownloadingDocument:{id:"ceDownloadingDocument",defaultMessage:"Preparing document for editing...",description:"Message displayed when the document is being downloaded for Server-backed content editing."},ceSaving:{id:"ceSaving",defaultMessage:"Saving the document...",description:"Message displayed when the content edited document is being saved."}});function jh(e){let{faceMismatch:t,relativePixelContentRect:r,textBlockState:i,zoomLevel:a,anchor:l,geometricStyleAttributes:c,positionAttributes:d}=e;const{formatMessage:p}=(0,he.tz)(),h=(0,s.wA)(),{contentRect:f,globalEffects:m,layout:g}=i,v=u.useMemo((()=>{const e=E.XF.IDENTITY.rotateRad(m.rotation).scale(1,m.flipY?-1:1),t=r.offset.x+c.width,n=new k.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 k.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,ee.jsxs)("button",{style:y,className:Mh().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 k.bR({x:e,y:n}),i=E.XF.IDENTITY.rotateRad(m.rotation).scale(1,m.flipY?-1:1),s=o.apply(i);h((0,Dh.Az)(new k.rw({left:l.x+(g.maxWidth??s.x),top:v.y/a,width:16,height:16}),t))},onPointerLeave:()=>{if(!fe.LZ){const e=new AbortController;h((0,Dh.xe)(e)),h((0,Dh.le)(e.signal))}},children:[(0,ee.jsx)(Ae.A,{src:n(23597),className:Mh().tooltipSVG}),(0,ee.jsx)(o.s6,{children:p(Oh.toggleFontMismatchTooltip)})]})}const Rh=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,b]=u.useState(!1),w=u.useRef(!1),x=(0,s.d4)((e=>(0,Ka.yQ)(n,r)(e))),S=(0,s.d4)((e=>(0,Ka.JW)(n,r)(e)));u.useEffect((()=>{if(!l){const e=new AbortController;d((0,Dh.xe)(e)),d((0,Dh.le)(e.signal))}}),[l,d]);const _=u.useRef(null),C=u.useMemo((()=>l?null!=m.selectionStyleInfo?.faceMismatch?m.selectionStyleInfo.faceMismatch.unavailableFaceName:m.modificationsCharacterStyleFaceMismatch?.unavailableFaceName??null:null),[m.selectionStyleInfo?.faceMismatch,m.modificationsCharacterStyleFaceMismatch?.unavailableFaceName,l]),E=u.useRef(null),z=u.useRef(null),P=e=>{(0,me.V)(e.currentTarget);return new k.bR({x:(e.nativeEvent.offsetX??0)/i+h.offset.x,y:(e.nativeEvent.offsetY??0)/i+h.offset.y})},A=()=>(0,zh.TJ)(a.layout,a.modificationsCharacterStyle),D=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,Dh.J4)(r,n,null,e,o()))},c=fe.m0||fe.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:_,textBlockId:r,pageIndex:n,makeExternalState:A}),T=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,Dh.J4)(r,n,null,"",o())))},onPaste:e=>{e.preventDefault();const t=e.clipboardData.getData("text/plain");i((0,Dh.J4)(r,n,null,t,o()))}}}({textBlockId:r,pageIndex:n,textBlockState:a,makeExternalState:A}),I=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=fe.cX&&e.altKey||!fe.cX&&e.ctrlKey;if(l)switch(e.key){case"ArrowRight":c((0,Dh.uV)(i,t,s?"forwardWord":"forward",e.shiftKey,n()));break;case"ArrowLeft":c((0,Dh.uV)(i,t,s?"backwardWord":"backward",e.shiftKey,n()));break;case"ArrowDown":c((0,Dh.uV)(i,t,"nextLine",e.shiftKey,n()));break;case"ArrowUp":c((0,Dh.uV)(i,t,"previousLine",e.shiftKey,n()));break;case"Home":c((0,Dh.uV)(i,t,"first",e.shiftKey,n()));break;case"End":c((0,Dh.uV)(i,t,"last",e.shiftKey,n()));break;case"Backspace":c((0,Dh.lp)(i,t,"backward",n()));break;case"Delete":c((0,Dh.lp)(i,t,"forward",n()));break;case"a":case"A":if(!(fe.cX&&e.metaKey||!fe.cX&&e.ctrlKey))break;c((0,Dh.tC)(i,t,"everything",n()));break;case"z":case"Z":if(!(fe.cX&&e.metaKey||!fe.cX&&e.ctrlKey))break;e.shiftKey?c((0,Dh.BB)(i,t,n())):c((0,Dh.Xd)(i,t,n()));break;case"y":case"Y":if(!(fe.cX&&e.metaKey||!fe.cX&&e.ctrlKey))break;c((0,Dh.BB)(i,t,n()));break;case"Escape":c(Dh.zH),e.preventDefault()}else if(a){let n=1;switch(e.shiftKey&&(n=10),e.key){case"ArrowRight":{e.preventDefault();const t=new k.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,Dh.O6)({anchor:t,isKeyboardMove:!0}));break}case"ArrowLeft":{e.preventDefault();const t=new k.bR({x:r.anchor.x-n,y:r.anchor.y});if(t.x+r.contentRect.offset.x<=0)break;c((0,Dh.O6)({anchor:t,isKeyboardMove:!0}));break}case"ArrowDown":{e.preventDefault();const t=new k.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,Dh.O6)({anchor:t,isKeyboardMove:!0}));break}case"ArrowUp":{e.preventDefault();const t=new k.bR({x:r.anchor.x,y:r.anchor.y-n});if(t.y+r.contentRect.offset.y<=0)break;c((0,Dh.O6)({anchor:t,isKeyboardMove:!0}));break}case"Enter":c((0,Dh.zv)(i,t)),e.preventDefault();break;case"Escape":c(Dh.zH),e.preventDefault();break;case"Backspace":case"Delete":case"Del":c((0,Dh.CY)(Ka.g3.Delete)),e.preventDefault(),e.stopPropagation();break;default:e.preventDefault()}}else switch(e.key){case"Enter":c((0,Dh.ab)(i,t)),e.preventDefault();break;case"Escape":c(Dh.zH),e.preventDefault()}}}({textBlockId:r,textBlockState:a,makeExternalState:A,pageSize:t,pageIndex:n,isActive:l,isSelected:x});function M(e){const t=P(e),o={x:t.x,y:t.y};_.current?.focus(),d((0,Dh.bU)(n,r,o,e.shiftKey,A())),E.current={mode:"characters",begin:o}}function N(e){e.stopPropagation(),e.stopImmediatePropagation();const n={x:e.clientX,y:e.clientY};if(!z.current)return[null,null];const r=new k.rw({width:t.width,height:t.height});let o=new k.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((()=>{w.current&&x&&(w.current=!1)}),[x]);const O=u.useCallback((0,Nh.A)((e=>{const[t,o]=N(e);if(null===t||null===o||!z.current)return;const i=new k.bR({x:z.current.anchor.x+t,y:z.current.anchor.y+o});z.current.changed=!0,d((0,Dh.O6)({anchor:i,pageIndex:n,textBlockId:r}))}),20),[]),j=u.useCallback((()=>{c.document.removeEventListener("pointermove",O,{capture:!0}),c.document.removeEventListener("pointerup",j,{capture:!0}),d((0,lc.fX)(!1)),z.current?.changed&&(z.current.previousInteractionState===Ka.mS.Selected?d((0,Dh.ab)(n,r)):d(Dh.zH)),z.current=null}),[]);u.useEffect((()=>{l&&a.justCreated&&_.current?.focus()}),[l,a.justCreated]);const R=()=>l&&_.current?.focus();u.useEffect((()=>(Th.on("content-editing:re-focus",R),()=>Th.remove("content-editing:re-focus",R))));const F=a.layout;(0,me.V)(null!==F.maxWidth);const B={offset:{x:(0,os.mj)(F.alignment,os.i0,F.maxWidth),y:h.offset.y},size:{x:F.maxWidth,y:h.size.y}},L=(0,os.oF)(Ha(B),i),V=(0,os.Re)(L,o,i),K={position:"absolute",left:V.offset.x,top:V.offset.y},$={...K,width:V.size.x,height:V.size.y,transformOrigin:`${-L.offset.x}px ${-L.offset.y}px`,transform:`rotate(${f.rotation}rad) scaleY(${f.flipY?-1:1})`};a.justCreated&&($.width=Math.max(h.size.x,10)*i);const H=(0,s.d4)((e=>(0,q.Jn)(e,n))),U=(e,t)=>o=>{o.stopPropagation(),o.isPrimary&&0===o.button&&(o.nativeEvent.stopImmediatePropagation(),o.preventDefault(),c.document.addEventListener("pointermove",W,{passive:!0,capture:!0}),c.document.addEventListener("pointerup",G,{passive:!0,capture:!0}),d((0,lc.fX)(!0)),x||l||d((0,Dh.zv)(n,r)),(0,me.V)(null!==F.maxWidth),z.current={fixpoint:e,scale:t,zoomLevel:i,start:{x:o.clientX,y:o.clientY},anchor:a.anchor,maxWidth:F.maxWidth,transformation:H,previousInteractionState:x?Ka.mS.Selected:Ka.mS.None})},W=u.useCallback((0,Nh.A)((e=>{const[t]=N(e);null!==t&&z.current&&d((0,Dh.fq)({fixpointValue:z.current.fixpoint,newWidth:z.current.maxWidth+t}))}),20),[]),G=u.useCallback((()=>{z.current=null,c.document.removeEventListener("pointermove",W,{capture:!0}),c.document.removeEventListener("pointerup",G,{capture:!0}),d((0,lc.fX)(!1))}),[]);return u.useEffect((()=>{x&&_.current?.focus()}),[x]),(0,ee.jsxs)(u.Fragment,{children:[C?(0,ee.jsx)(jh,{faceMismatch:C,relativePixelContentRect:L,textBlockState:a,zoomLevel:i,anchor:o,geometricStyleAttributes:$,positionAttributes:K}):null,(0,ee.jsxs)("div",{style:{...$,position:"fixed",zIndex:2},className:p()(Mh().textBlock,{[Mh().selectedTextBlock]:x,[Mh().movingTextBlock]:S,[Mh().activeTextBlock]:l,[Mh().focusIn]:y}),onFocus:()=>{v.current=!0},onBlur:()=>{v.current=!1,b(!1)},onKeyUp:e=>{const t=e.target.ownerDocument.defaultView&&e.target instanceof e.target.ownerDocument.defaultView.HTMLTextAreaElement;v.current&&"Tab"===e.key&&t&&(b(!0),d((0,Dh.uV)(n,r,"first",!1,A())))},children:[(0,ee.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:`${h.offset.x*i} ${L.offset.y} ${L.size.x} ${L.size.y}`,style:{...$,width:V.size.x,position:"absolute",left:0,top:0,transform:void 0,transformOrigin:void 0,display:l?"block":"none"},className:Mh().blinkingCaret,children:(0,ee.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,ee.jsx)("textarea",{ref:_,onPointerDown:e=>{e.stopPropagation(),l?M(e):(e.preventDefault(),e.isPrimary&&(c.document.addEventListener("pointermove",O,{passive:!0,capture:!0}),c.document.addEventListener("pointerup",j,{passive:!0,capture:!0}),d((0,lc.fX)(!0)),(0,me.V)(null!==F.maxWidth),z.current={fixpoint:0,scale:1,zoomLevel:i,start:{x:e.clientX,y:e.clientY},anchor:a.anchor,maxWidth:F.maxWidth,transformation:H,previousInteractionState:x?Ka.mS.Selected:Ka.mS.None}))},onPointerMove:e=>{if(z.current)return;if(e.preventDefault(),!(l&&1&e.buttons))return;e.stopPropagation();const t=P(e),o={x:t.x,y:t.y},i=E.current;(0,me.V)(i),d((0,Dh.GM)(n,r,i.begin,o,i.mode,A()))},onPointerUp:e=>{z.current?.changed||(e.preventDefault(),e.stopPropagation(),x||l?l||(d((0,Dh.zv)(n,r)),M(e)):(d((0,Dh.ab)(n,r)),w.current=!0))},onMouseUp:e=>{if(e.detail>=2){e.preventDefault(),e.stopPropagation();const t=P(e),o={x:t.x,y:t.y};E.current={mode:"words",begin:o},d((0,Dh.GM)(n,r,o,o,"words",A())),e.detail>=3&&d((0,Dh.tC)(n,r,"everything",A()))}},onClick:e=>{e.preventDefault(),e.stopPropagation()},onKeyDown:I,...D,...T,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,os.jg)(e.elements))).join(" ")}),x?(0,ee.jsxs)(ee.Fragment,{children:[(0,ee.jsx)("div",{draggable:!0,onPointerDown:U(os.q_,-1),className:p()(Mh().resizeHandle,Mh().resizeHandleLeft),children:(0,ee.jsx)("div",{className:Mh().resizeHandleCircle})}),(0,ee.jsx)("div",{draggable:!0,onPointerDown:U(os.i0,1),className:p()(Mh().resizeHandle,Mh().resizeHandleRight),children:(0,ee.jsx)("div",{className:Mh().resizeHandleCircle})})]}):null]})]})},Fh=u.memo(Rh),Bh=e=>{const{page:t,textBlockId:n,zoomLevel:r,frameWindow:o}=e,i=(0,s.d4)((e=>{const r=(0,Ka.kE)(t.pageIndex,n)(e);return(0,me.V)(r),r.anchor})),a=(0,s.d4)((e=>(0,Ka.kE)(t.pageIndex,n)(e)));(0,me.V)(a);const l=(0,s.d4)((e=>(0,Ka.TD)(t.pageIndex,n)(e))),c=(0,s.d4)((e=>e.contentEditorSession.contentEditor));return(0,ee.jsxs)("div",{className:"PSPDFKit-Content-Editing-Text-Block",children:[(0,ee.jsx)(Ah,{page:t,textBlockId:n,anchor:i,zoomLevel:r,textBlockState:a,isActive:l,contentEditor:c}),(0,ee.jsx)(Fh,{page:t,textBlockId:n,anchor:i,zoomLevel:r,isActive:l,textBlockState:a,frameWindow:o})]})},Lh=u.memo(Bh);var Vh=n(66200);const Kh=e=>{const t=(0,s.wA)(),{formatMessage:n}=(0,he.tz)(),{page:r,zoomLevel:o,backend:i,frameWindow:a}=e;u.useEffect((()=>{var e;t((e=r.pageIndex,async(t,n)=>{if((0,Ka.VD)(e)(n())!=Ka.TG.Uninitialized)return;t({type:V.nkN,pageIndex:e});const r=n().contentEditorSession;(0,l.V1)(r.contentEditor);const o=await r.contentEditor.detectParagraphs(e);t({type:V.cNc,pageIndex:e,initialTextBlocks:o})}))}),[t,r.pageIndex]);const c=r.pageSize.height*o,d=r.pageSize.width*o,p=(0,s.d4)((0,Ka.di)(r.pageIndex),s.bN),h=(0,s.d4)((e=>e.contentEditorSession.mode)),f=h===Ka.g3.Create,m=h===Ka.g3.Delete,g=(0,s.d4)((e=>(0,q.Jn)(e,r.pageIndex))),v=(0,s.d4)((e=>e.contentEditorSession.textBlockInteractionState.state)),y=v===Ka.mS.Active,b=v===Ka.mS.Moving;return(0,ee.jsxs)("div",{tabIndex:0,onPointerDown:e=>{if(f){const n=new k.bR({x:e.clientX,y:e.clientY}).apply(g),o=new Ka.ZY({x:n.x,y:n.y});t((0,Dh.fg)(r.pageIndex,o))}else m||(y&&(e.preventDefault(),e.stopPropagation()),t(Dh.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,ee.jsx)(Vh.A,{onConfirm:()=>t(Dh.OY),onCancel:()=>t((0,Dh.CY)(Ka.g3.Edit)),accessibilityLabel:n(Oh.deleteTextBlockConfirmAccessibilityLabel),accessibilityDescription:n(Oh.deleteTextBlockConfirmAccessibilityDescription),"aria-atomic":!0,restoreOnClose:!1,children:(0,ee.jsx)("p",{children:n(Oh.deleteTextBlockConfirmMessage)})}),p.map((e=>(0,ee.jsx)(Lh,{backend:i,textBlockId:e,page:r,zoomLevel:o,frameWindow:a},e)))]})},$h=u.memo(Kh),Hh={[F.O.BUTTON_WIDGET]:[120,40],[F.O.CHECKBOX_WIDGET]:[32,32],[F.O.COMBO_BOX_WIDGET]:[220,40],[F.O.LIST_BOX_WIDGET]:[220,150],[F.O.RADIO_BUTTON_WIDGET]:[32,32],[F.O.SIGNATURE_WIDGET]:[220,150],[F.O.TEXT_WIDGET]:[220,40],[F.O.DATE_WIDGET]:[220,40]};let Uh=0;var qh=n(10442),Wh=n.n(qh),Gh=n(32291),Yh=n.n(Gh);const Zh=e=>{let{pageSize:t}=e;const n=(0,s.d4)((e=>e.hintLines));return n?(0,ee.jsx)("svg",{id:"hint-lines",viewBox:`0 0 ${t.width} ${t.height}`,className:Yh().hintLineSvg,children:n.lines.map(((e,t)=>(0,ee.jsx)("line",{x1:e.start.x,y1:e.start.y,x2:e.end.x,y2:e.end.y,className:Yh().line},t)))}):null};const Jh=(0,s.Ng)((function(e,t){const{highlightState:n}=e;return{highlightResults:n.pageIndex===t.pageIndex?{rectsOnPage:n.rectsOnPage,pageIndex:t.pageIndex}:Qp.B,focused:!0,highlightDuration:1,animation:th.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,ee.jsx)("div",{className:ah().layer,"data-testid":"SearchHighlightLayer",children:(0,ee.jsx)(rh,{focused:r,rectsOnPage:t.rectsOnPage,zoomLevel:n,highlightDuration:o,animation:i})})}));class Xh extends u.Component{constructor(e){super(e),(0,v.A)(this,"pageRef",u.createRef()),(0,v.A)(this,"_handleOverviewRenderFinished",(()=>{this.setState({isOverviewRendered:!0}),this.props.onInitialOverviewRenderFinished&&this.props.onInitialOverviewRenderFinished(this.props.page.pageIndex)})),(0,v.A)(this,"_handleScroll",(e=>{this.pageRef.current&&(this.pageRef.current.scrollTop=0,this.pageRef.current.scrollLeft=0),e.stopPropagation(),e.preventDefault()})),(0,v.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,v.A)(this,"onCropAreaChangeComplete",(e=>{const t=(0,Oe.X5)(e,this.props.page.pageSize,this.props.viewportState.pagesRotation),n={cropBox:t,pageIndex:this.props.page.pageIndex};this.props.eventEmitter.emit("cropArea.changeStop",n),this.props.onCropChange(t,this.props.page.pageIndex)})),(0,v.A)(this,"onCropAreaChangeStart",(e=>{const t=(0,Oe.X5)(e,this.props.page.pageSize,this.props.viewportState.pagesRotation),n={cropBox:t,pageIndex:this.props.page.pageIndex};this.props.eventEmitter.emit("cropArea.changeStart",n),this.props.onCropChange(t,this.props.page.pageIndex)})),(0,v.A)(this,"createWidgetAnnotation",(e=>{var t,n,r;e.stopPropagation(),this.props.dispatch((t=this.props.page.pageIndex,n=[e.pageX,e.pageY],r=this.props.intl,async(e,o)=>{const{interactionMode:i,viewportState:s,onWidgetAnnotationCreationStart:c,changeManager:u}=o();Uh++;const d=(0,q.NJ)(s,t),p=(0,R.K1)();(0,l.V1)(i,"interactionMode is not defined");const h=Hh[i],f=new Date;let m,g=new k.sb({id:p,formFieldName:`${i}_${(0,Pi.A)()}`,boundingBox:new k.rw({left:n[0],top:n[1],width:h[0],height:h[1]}).apply(d),pageIndex:t,createdAt:f,updatedAt:f,fontSize:12,...i===F.O.BUTTON_WIDGET?{backgroundColor:k.Q1.BLUE,fontColor:k.Q1.WHITE}:{},...i===F.O.DATE_WIDGET?{additionalActions:{onFormat:new k.ew({script:'AFDate_FormatEx("yyyy-mm-dd")'})}}:{}});switch(i){case F.O.BUTTON_WIDGET:m=new k.$h({annotationIds:(0,a.B8)([g.id]),name:g.formFieldName,buttonLabel:"Button"});break;case F.O.TEXT_WIDGET:case F.O.DATE_WIDGET:m=new k.uS({annotationIds:(0,a.B8)([g.id]),name:g.formFieldName});break;case F.O.RADIO_BUTTON_WIDGET:m=new k.Qk({annotationIds:(0,a.B8)([g.id]),name:g.formFieldName,options:(0,a.B8)([new k._B({label:r.formatMessage(ef.labelX,{arg0:1}),value:`Value ${Uh}`})])});break;case F.O.CHECKBOX_WIDGET:m=new k.av({annotationIds:(0,a.B8)([g.id]),name:g.formFieldName,options:(0,a.B8)([new k._B({label:r.formatMessage(ef.labelX,{arg0:1}),value:`Value ${Uh}`})])});break;case F.O.SIGNATURE_WIDGET:m=new k.Vw({annotationIds:(0,a.B8)([g.id]),name:g.formFieldName});break;case F.O.LIST_BOX_WIDGET:m=new k.O2({annotationIds:(0,a.B8)([g.id]),name:g.formFieldName,options:(0,a.B8)([new k._B({label:"Option 1",value:`Value ${Uh}`})])});break;case F.O.COMBO_BOX_WIDGET:m=new k.sh({annotationIds:(0,a.B8)([g.id]),name:g.formFieldName,options:(0,a.B8)([new k._B({label:"Option 1",value:"Option 1"}),new k._B({label:"Option 2",value:"Option 2"})])});break;default:throw new Error(`Unknown interaction mode: ${i}`)}if(m=m.set("id",(0,Pi.A)()),c){const e=c(g,m);g=e.annotation||g,m=e.formField||m,(0,l.V1)(g instanceof k.sb,"widgetAnnotation must be an instance of WidgetAnnotation"),(0,l.V1)(m instanceof k.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)(t===g.pageIndex,"You are not allowed to change the pageIndex")}e({type:V.dwm,annotationId:g.id}),u?.create([g,m]),e((0,En.SM)()),e((0,ve.WS)((0,a.NZ)([g.id]),B.Q.SELECTED))}))})),this._contentBlocksPromise=null,this._cancelTextPromise=null,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?ye.E.call(this,e,t):this.props.interactionMode===F.O.CONTENT_EDITOR&&e.interactionMode!==F.O.CONTENT_EDITOR||this.props.viewportState.zoomLevel!==e.viewportState.zoomLevel))))))}UNSAFE_componentWillReceiveProps(e){e.inViewport&&!this.state.hasBeenInViewport&&this.setState({hasBeenInViewport:!0})}UNSAFE_componentWillMount(){(this.props.inViewport||this.props.shouldPrerender)&&this.componentWillEnterViewport(this.props),this.props.inViewport&&this.setState({hasBeenInViewport:!0})}UNSAFE_componentWillUpdate(e){this.props.isReused?(this._resetTextLines(),this._fetchPageContent(e)):!this.props.inViewport&&e.inViewport||e.shouldPrerender?this.componentWillEnterViewport(e):this.props.inViewport&&!e.inViewport&&this.componentWillExitViewport()}componentDidUpdate(e){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!==Mi.D.CONNECTED&&e.connectionState.name!==Mi.D.DOWNLOADING_DOCUMENT||null==e.page.contentBlocks&&null==this._contentBlocksPromise&&this.fetchTextLinesForProps(e),e.connectionState.name!==Mi.D.DOWNLOADING_DOCUMENT||e.page.isPageSizeReal||e.backend.corePDFBridge.fetchPageInfoWhileDownloading(e.page.pageIndex).then((t=>{e.dispatch((0,gs.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===F.O.CONTENT_EDITOR)return void e.dispatch((0,gs.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,gs.d_)(e.page.pageIndex,t))}catch(e){if(e&&!e.aborted)throw e}}isWithinRange(){const{page:{pageIndex:e},viewportState:{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,viewportState:i,frameWindow:a,cropInfo:s}=e,{formatMessage:l}=n,c={width:t.pageSize.width*i.zoomLevel,height:t.pageSize.height*i.zoomLevel};let d={height:c.height,width:c.width,transform:E.XF.IDENTITY.rotate(-i.pagesRotation).toCssValue()};if(90===i.pagesRotation||270===i.pagesRotation){const e=(c.height-c.width)/2;d={height:c.width,width:c.height,transform:E.XF.IDENTITY.rotate(i.pagesRotation).translate({x:-e,y:e}).toCssValue()}}const h=p()({"PSPDFKit-Page":!0,[`PSPDFKit-Page-Rotation-${i.pagesRotation}-degree`]:!0,[Wh().root]:!0,[Wh()["deg-"+i.pagesRotation]]:!0,[Wh().textHighlighterMode]:e.interactionMode===F.O.TEXT_HIGHLIGHTER||e.interactionMode===F.O.REDACT_TEXT_HIGHLIGHTER,[Wh().hideCursor]:(0,Me.qi)(e.interactionMode)});return t?(0,ee.jsxs)("section",{className:h,style:c,ref:this.pageRef,"data-page-index":t.pageIndex,"data-page-is-loaded":null!==t.contentBlocks&&this.state.isOverviewRendered,onScroll:this._handleScroll,"aria-label":l(be.A.pageX,{arg0:t.pageLabel||t.pageIndex+1}),tabIndex:e.documentHasActiveAnnotation?-1:0,children:[(0,ee.jsx)("div",{className:Wh().focusPage,ref:r}),this.state.hasBeenInViewport&&this.state.isOverviewRendered&&t.contentBlocks?null:(0,ee.jsx)(o.s6,{children:l(be.A.loading)}),(0,ee.jsxs)(Yp,{pageIndex:t.pageIndex,onEmit:this._handleOnPressEmit,element:"div",children:[(this.state.hasBeenInViewport||this.state.isOverviewRendered||e.shouldPrerender)&&(0,ee.jsx)(Wp.A,{inViewport:e.inViewport,shouldPrerender:!e.inViewport&&e.shouldPrerender,page:t,backend:e.backend,zoomLevel:i.zoomLevel,rotation:i.pagesRotation,renderPageCallback:e.renderPageCallback,onInitialOverviewRenderFinished:this._handleOverviewRenderFinished,allowedTileScales:e.allowedTileScales,viewportRect:i.viewportRect,forceDetailView:!1,renderPagePreview:e.renderPagePreview,inContentEditorMode:e.interactionMode===F.O.CONTENT_EDITOR}),e.interactionMode===F.O.CONTENT_EDITOR&&e.inViewport&&!!e.contentEditor&&(0,ee.jsx)($h,{backend:e.backend,zoomLevel:i.zoomLevel,page:t,frameWindow:a}),this.props.hintLinesPageIndex===t.pageIndex?(0,ee.jsx)(Zh,{pageSize:t.pageSize}):null,this.state.hasBeenInViewport&&this.state.isOverviewRendered&&(0,ee.jsxs)(u.Fragment,{children:[(0,ee.jsx)(sh,{pageIndex:t.pageIndex,zoomLevel:i.zoomLevel}),(0,ee.jsx)(Jh,{pageIndex:t.pageIndex,zoomLevel:i.zoomLevel}),(0,ee.jsx)(ac.Consumer,{children:n=>(0,ee.jsx)(jp,{page:t,getScrollElement:n,setGlobalCursor:this.props.setGlobalCursor,children:t.contentBlocks?(0,ee.jsx)(yh,{dispatch:e.dispatch,enableTextSelection:e.enableTextSelection,zoomLevel:i.zoomLevel,rotation:i.pagesRotation,eventEmitter:e.eventEmitter,isTextCopyingAllowed:e.isTextCopyingAllowed,isPanModeEnabled:e.isPanModeEnabled,pageIndex:t.pageIndex,contentBlocks:t.contentBlocks,textLineScales:t.textLineScales,pageSize:t.pageSize,textElementFonts:t.textElementFonts}):null})}),e.interactionMode===F.O.MARQUEE_ZOOM?(0,ee.jsx)(Sh,{pageIndex:t.pageIndex,pageSize:t.pageSize,scrollElement:e.scrollElement}):null,e.customOverlayItems.size>0&&(0,ee.jsx)("div",{children:e.customOverlayItems.map((e=>(0,ee.jsx)(qp,{item:e,rotation:i.pagesRotation,zoomLevel:i.zoomLevel},e.id)))})]})]}),e.interactionMode===F.O.DOCUMENT_CROP&&(null===s&&this.isWithinRange()||s?.pageIndex===t.pageIndex)&&(0,ee.jsx)("div",{style:d,children:(0,ee.jsx)(vi,{viewportState:i,page:this.props.page,onAreaChangeComplete:this.onCropAreaChangeComplete,frameWindow:a,onAreaChangeStart:this.onCropAreaChangeStart})}),(0,Me.qi)(e.interactionMode)&&(0,ee.jsx)("div",{style:d,children:(0,ee.jsx)(kh,{frameWindow:a,pageRef:this.pageRef,interactionMode:e.interactionMode,pageIndex:t.pageIndex,onCreate:this.createWidgetAnnotation,intl:e.intl})})]},t.pageKey):null}}const Qh=(0,he.j4)(Xh),ef=(0,he.YK)({labelX:{id:"labelX",defaultMessage:"Label {arg0}",description:"Label"}});const tf=(0,gn.F)((function(e,t){const n=e.pages.get(t.pageIndex),r=n?.customOverlayItemIds.map((t=>e.customOverlayItems.get(t))).toList()||null;return{frameWindow:e.frameWindow,enableTextLoading:(0,mn.cP)(e),enableTextSelection:e.interactionMode!==F.O.PAN,annotationManager:e.annotationManager,backend:e.backend,customOverlayItems:r,eventEmitter:e.eventEmitter,page:n,isTextCopyingAllowed:(0,mn.Xm)(e),renderPageCallback:e.renderPageCallback,interactionMode:e.interactionMode,documentHasActiveAnnotation:e.selectedAnnotationIds.size>0,allowedTileScales:e.allowedTileScales,isPanModeEnabled:e.interactionMode===F.O.PAN&&!fe.LZ,viewportState:e.viewportState,scrollElement:e.scrollElement,isReused:!!e.reuseState,renderPagePreview:e.renderPagePreview,hintLinesPageIndex:e.hintLines?.pageIndex,contentEditor:e.contentEditorSession.contentEditor}}))(Qh);class nf extends u.Component{constructor(){super(...arguments),(0,v.A)(this,"spreadRef",u.createRef()),(0,v.A)(this,"shouldComponentUpdate",ye.E),(0,v.A)(this,"pageIndexesWaitingForRender",(0,Gi.dD)(this.props.viewportState,this.props.spreadIndex)),(0,v.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,onCropChange:o,cropInfo:i}=this.props,a=(0,Gi.Bu)(t,e);return(0,ee.jsx)("div",{style:{width:a.width*t.zoomLevel,height:a.height*t.zoomLevel},hidden:this.props.hidden,children:(0,Gi.dD)(t,e).map((a=>{const s=(0,q.JC)(E.XF.IDENTITY,t,a,e,t.zoomLevel),l=this.props.pageKeys.get(a);return(0,ee.jsx)("div",{style:{transform:s.toCssValue(!0),transformOrigin:"0 0",position:"absolute"},children:(0,ee.jsx)(oe.Reparent,{id:`page-${l}`,children:(0,ee.jsx)(tf,{pageIndex:a,inViewport:n,shouldPrerender:r,viewportRect:t.viewportRect,onInitialOverviewRenderFinished:this._handleOverviewRenderFinished,innerRef:this.props.innerRef,parent:this.spreadRef,onCropChange:o,cropInfo:i,setGlobalCursor:this.props.setGlobalCursor,connectionState:this.props.connectionState})})},l)}))})}}var rf=n(3681);const of=u.memo((function(e){const{viewportState:t,connectionState:n}=e,{lastScrollUsingKeyboard:r}=t,o=u.useRef(null),i=(0,Gi.NZ)(t,t.currentPageIndex),[a,s]=(0,Gi.rY)(t,i,n.name);return u.useEffect((()=>{const e=(0,Gi.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,ee.jsx)(rf.A,{dispatch:e.dispatch,viewportState:t,children:(0,ee.jsx)("div",{children:function(){const{viewportState:t,viewportState:{viewportRect:n,scrollPosition:r,zoomLevel:l},onCropChange:c,cropInfo:u}=e,d=(0,Gi.og)(t),p=r.y,h=r.y+n.height/l,f=(0,Gi.Ym)(t);let m=0,g=0;const v=[];for(let n=0;n<d;n++){const r=(0,Gi.Bu)(t,n);g=m+r.height;const y=m<h&&g>p,b=(f-r.width)/2,w=new E.rw({left:b,top:m,width:r.width,height:r.height}).scale(l),x={left:w.left,top:w.top,width:w.width,height:w.height,position:"absolute"};g+=t.spreadSpacing,m=g;const S=t.prerenderedPageSpreads??d;if((0,Gi.lw)(n,i,S)){const r=n===i,l=(0,Gi.uM)(t)===od.S.DOUBLE?n.toString():e.pageKeys.get(n);v.push((0,ee.jsx)("div",{className:"PSPDFKit-Spread",style:x,"data-spread-index":n,children:(0,ee.jsx)(nf,{spreadIndex:n,viewportState:t,inViewport:y,shouldPrerender:!r&&"number"==typeof a&&i===a,onOverviewRenderFinished:s,innerRef:r?o:void 0,onCropChange:c,cropInfo:u,pageKeys:e.pageKeys,setGlobalCursor:e.setGlobalCursor,connectionState:e.connectionState})},l))}}return v}()})})}));var af,sf,lf=n(4213),cf=n.n(lf),uf=n(47608),df=n(98763),pf=n.n(df);class hf extends u.Component{constructor(){super(...arguments),(0,v.A)(this,"rootRef",u.createRef()),(0,v.A)(this,"shouldComponentUpdate",ye.E),(0,v.A)(this,"_handleOnClose",(()=>{this.props.dispatch((0,Pt.D9)())})),(0,v.A)(this,"_download",(()=>{cf().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: 2024.8.0 (f18793a6d4)\n  PSPDFKit Document Engine Version: 2024.8.0\n  -----END VERSION-----\n\n  -----BEGIN CLIENT INFO-----\n  User Agent: ${navigator.userAgent}\n  Language: ${navigator.language}\n  Engine: ${fe.Hi}\n  System: ${fe.qU}\n  Pixel ratio: ${(0,Mr.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,ee.jsx)(uf.A,{onDismiss:this._handleOnClose,children:(0,ee.jsx)("div",{className:pf().root,ref:this.rootRef,children:(0,ee.jsxs)("div",{className:pf().header,children:[af||(af=(0,ee.jsx)("h2",{children:"Debug Output"})),sf||(sf=(0,ee.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,ee.jsx)("a",{target:"_blank",href:"https://pspdfkit.com/support/request",children:"support form"}),"."]})),(0,ee.jsx)(o.$n,{onClick:this._download,children:"Download Debug Output"})]})})})}}class ff extends u.Component{constructor(){var e;super(...arguments),e=this,(0,v.A)(this,"onConfirm",(()=>{if(this.props.setA11yStatusMessage){const{formatMessage:e}=this.props.intl;this.props.setA11yStatusMessage(e(gf.annotationDeleted))}const e={annotations:(0,a.B8)(this.props.annotations),reason:J.x.DELETE_END};this.props.eventEmitter.emit("annotations.willChange",e),this.props.annotations.forEach((e=>{this.props.dispatch((0,at.eS)(e))})),this.onCancel(!1),this.props.dispatch((0,ve.J9)())})),(0,v.A)(this,"onCancel",(function(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(e.props.dispatch((0,at.n9)(null)),t){const t={annotations:(0,a.B8)(),reason:J.x.DELETE_END};e.props.eventEmitter.emit("annotations.willChange",t)}}))}render(){const{formatMessage:e}=this.props.intl;return(0,ee.jsx)(Vh.A,{onConfirm:this.onConfirm,onCancel:this.onCancel,accessibilityLabel:e(gf.deleteAnnotationConfirmAccessibilityLabel),accessibilityDescription:e(gf.deleteAnnotationConfirmAccessibilityDescription),"aria-atomic":!0,restoreOnClose:!1,children:(0,ee.jsx)("p",{children:e(gf.deleteAnnotationConfirmMessage)})})}}const mf=(0,he.j4)(ff),gf=(0,he.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 vf(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,ee.jsx)("div",{ref:n})}class yf extends u.Component{constructor(){super(...arguments),(0,v.A)(this,"shouldComponentUpdate",ye.E),(0,v.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===Fn.Vn&&this._handleKeyLeft(),e.keyCode===Fn.gV&&this._handleKeyRight())})),(0,v.A)(this,"_handleKeyRight",(()=>{const e=(0,Yi.nr)(this.props.viewportState);Math.ceil(this.props.viewportState.scrollPosition.x)>=Math.floor(e.x)&&this.props.dispatch((0,lc.Zj)())})),(0,v.A)(this,"_handleKeyLeft",(()=>{Math.floor(this.props.viewportState.scrollPosition.x)<=0&&this.props.dispatch((0,lc.$w)())}))}componentDidMount(){(this.props.shadowRoot?.ownerDocument||this.props.document).addEventListener("keydown",this._handleKeydown)}componentWillUnmount(){(this.props.shadowRoot?.ownerDocument||this.props.document).removeEventListener("keydown",this._handleKeydown)}render(){const{children:e}=this.props;return void 0===e?null:e}}var bf=n(40249);function wf(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 k.bR({x:20,y:20}):t.offset;if(e instanceof k.sb){const t=s.get(e.formFieldName)||o;(0,l.V1)(t,`Form field with name "${e.formFieldName}" not found`);const d=(0,R.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,Pi.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,at.Xs)(m)),r((0,En.iJ)(g)),u.push(g)}else{const t=(0,R.K1)(),o=e.id===e.name;let a=e.set("id",t).delete("pdfObjectId");if(p&&(a=(0,yo.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,ze.gj)(e),n=new k.o3({data:e});r((0,U.c)({hash:t,attachment:n})),a=a.set("imageAttachmentId",t)}c.push(a),r((0,at.Xs)(a))}}const d={annotations:c,formFields:u,previousAction:n,originalAnnotations:e.map((e=>e.annotation)),originalFormFields:s};t(d)}}class xf extends u.Component{constructor(){super(...arguments),(0,v.A)(this,"state",{copiedOrCutAnnotations:null}),(0,v.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 k.vU&&e.imageAttachmentId&&(t=n?.getAttachment(e.imageAttachmentId)),{annotation:e,attachmentBlobPromise:t}}))})),(0,v.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===Fn.WM||e.metaKey&&e.keyCode===Fn.WM)&&(t((0,ve.J9)()),t((0,Cs.yK)()),e.preventDefault()),(e.metaKey||e.ctrlKey)&&e.keyCode===Fn.WJ&&(!o&&i&&t((0,gd.yy)()),e.preventDefault(),e.stopImmediatePropagation()),(e.metaKey||e.ctrlKey)&&e.keyCode===Fn.I4&&(t((0,lc.nF)()),e.preventDefault()),(e.metaKey||e.ctrlKey)&&e.keyCode===Fn.qN&&(t((0,lc.ke)()),e.preventDefault()),(e.metaKey||e.ctrlKey)&&e.keyCode===Fn.uD&&(t((0,lc._m)()),e.preventDefault()),x)return;if(this.props.canUndo&&(e.metaKey||e.ctrlKey)&&!e.shiftKey&&e.keyCode===Fn.Wu&&!(0,Yn.kM)(S))return t((0,lo.tN)()),void e.preventDefault();if(this.props.canRedo&&!(0,Yn.kM)(S)&&(e.metaKey||e.ctrlKey)&&e.shiftKey&&e.keyCode===Fn.Wu)return t((0,lo.ZS)()),void e.preventDefault();if(f&&(e.metaKey||e.ctrlKey)&&e.keyCode===Fn.P_&&e.shiftKey&&n&&n.size>0&&(e.preventDefault(),this.props.selectedGroupId?t((0,Pt.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,Pt.P4)(e,n.groupKey))}))}))),e.shiftKey)return;f&&(e.metaKey||e.ctrlKey)&&e.keyCode===Fn.P_&&n&&n.size>0&&(e.preventDefault(),t((0,Pt.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(wf(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,ve.J9)()),t((0,ve.TT)(i.toSet(),null))}))}if(b.active&&b.textBlockInteractionState.state===Ka.mS.Selected&&["Del","Delete","Backspace"].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),t((0,Dh.CY)(Ka.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,lr.db)(E,t()))))return;e.preventDefault(),e.stopPropagation();const n=this.getSelectedAnnotations()?.map((e=>{const t=e.annotation;return{...e,formField:t instanceof k.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,at.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(wf(e,(e=>{r.emit("annotations.duplicate",e)}))),t((0,ve.WS)((0,a.NZ)(e.map((e=>e.annotation.id))),B.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,ve.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,at.n9)(n));"Esc"!==e.key&&"Escape"!==e.key||w!==F.O.MEASUREMENT||(0,s.vA)((()=>{t((0,at.iE)(null)),t((0,Pt.gw)())})),e.keyCode!==Fn.JG||(0,Yn.kM)(S)||(e.preventDefault(),e.stopPropagation())})),(0,v.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",Sf)}componentWillUnmount(){this._document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keydown",this.handleKeyDown),this.props.isTextCopyingAllowed||this._document.removeEventListener("copy",Sf)}render(){return(0,ee.jsx)("div",{ref:this._handleRef})}}function Sf(e){const{target:t}=e;(0,bf.B)(t)||e.preventDefault()}const _f=["highlight","strikeout","underline","squiggle","redact-text-highlighter","comment","ai-document-assistant"],Cf=(0,M.A)("InlineTextSelectionToolbarItem ");var Ef=n(86585),kf=n.n(Ef);const zf=new Map([["highlight",k.ax],["strikeout",k.sB],["underline",k.Yi],["squiggle",k.TI],["redact-text-highlighter",W.A],["comment",k.dG]]);function Pf(e){return e.node?(0,ee.jsx)(tu,{node:e.node,title:e.title,className:e.className,icon:e.icon,onPress:e.onPress,selected:e.selected,disabled:e.disabled}):(0,ee.jsx)(Kc,{type:e.type,title:e.title,className:e.className,icon:e.icon,onPress:e.onPress,selected:e.selected,disabled:e.disabled})}function Af(e){const t=(0,he.tz)(),{dispatch:n,isAnnotationTypeReadOnly:r,showComments:o,showRedactions:i,showAIDocumentAssistant:a,hasMobileLayout:s,inlineTextSelectionToolbarItems:c,currentTextSelection:d}=e,h=t.formatMessage,f=u.useCallback(((e,t)=>{n((0,at.ze)(e,t)),n((0,ve.J9)())}),[n]),m=u.useCallback((()=>{n((0,Cr.Rq)())}),[n]),g=u.useCallback((()=>{d&&(n((0,Pt.LG)(!0)),n((0,Pt.S_)(d)))}),[n,d]),v=p()({[kf().button]:!s},{[Yc().button]:s}),y=u.useMemo((()=>{const e=[{type:"highlight",title:h(be.A.highlightAnnotation),className:p()("PSPDFKit-Text-Markup-Inline-Toolbar-Highlight",v),onPress:()=>{f(k.ax,"highlight")}},{type:"strikeout",title:h(be.A.strikeOutAnnotation),className:p()("PSPDFKit-Text-Markup-Inline-Toolbar-Strike-Out",v),onPress:()=>{f(k.sB,"strikeout")}},{type:"underline",title:h(be.A.underlineAnnotation),className:p()("PSPDFKit-Text-Markup-Inline-Toolbar-Underline",v),onPress:()=>{f(k.Yi,"underline")}},{type:"squiggle",title:h(be.A.squiggleAnnotation),className:p()("PSPDFKit-Text-Markup-Inline-Toolbar-Squiggle",v),onPress:()=>{f(k.TI,"squiggle")}}];return o&&e.push({type:"comment",title:h(be.A.comment),className:p()("PSPDFKit-Text-Markup-Inline-Toolbar-Comment",v),onPress:()=>{m()}}),i&&e.push({type:"redact-text-highlighter",title:h(be.A.redactionAnnotation),className:p()("PSPDFKit-Text-Markup-Inline-Toolbar-Redaction",v),onPress:()=>{f(W.A,"redaction")}}),a&&e.unshift({type:"ai-document-assistant",title:h(be.A.documentAI),className:p()("PSPDFKit-Text-Markup-Inline-Toolbar-Document-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){Cf((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;Cf("type"in e&&(0,N.Kg)(t)&&[..._f,"custom"].includes(t),`Expected item.type to be one of ${[..._f,"custom"].join(", ")}`),r&&Cf((0,N.Kg)(r),"Expected `title` to be a string"),o&&Cf((0,N.Kg)(o),"Expected `icon` to be a string"),n&&Cf((0,N.Kg)(n),"Expected `id` to be a string"),i&&Cf((0,N.Kg)(i),"Expected `className` to be a string"),a&&Cf("function"==typeof a,"`onPress` must be a `function`"),"disabled"in e&&Cf("boolean"==typeof s,"`disabled` must be a `boolean`"),e.node&&Cf(Ds.S.includes(e.node.nodeType),"`node.nodeType` is invalid. Expected one of "+Ds.S.join(", "))}(e)}));return e.map((e=>"custom"===e.type&&null!==e.onPress?{...e,onPress:()=>{e.onPress(),n((0,ve.J9)())}}:e)).map((e=>({node:Pf(e),type:e.type})))}return y.map((e=>({node:Pf(e),type:e.type})))}),[y,d,s,c,Pf,n]),w=p()({[Yc().content]:s,[Yc().mobileTextMarkup]:s,[kf().inner]:!s});return(0,ee.jsx)("div",{className:p()("PSPDFKit-Text-Markup-Inline-Toolbar",{[kf().root]:!s}),role:"dialog","aria-label":h(be.A.markupToolbar),children:(0,ee.jsx)("div",{className:w,children:b.map(((e,t)=>"custom"!==e.type&&"ai-document-assistant"!==e.type&&r(zf.get(e.type))?null:"custom"===e.type?(0,ee.jsx)("div",{children:e.node},`custom-${t}`):(0,ee.jsx)("div",{children:e.node},e.type)))})})}class Df extends u.Component{constructor(){super(...arguments),(0,v.A)(this,"shouldComponentUpdate",ye.E)}render(){const{position:e,dispatch:t,showComments:n,showRedactions:r,currentTextSelection:o,isAnnotationTypeReadOnly:i,inlineTextSelectionToolbarItems:a,showAIDocumentAssistant:s}=this.props;return(0,ee.jsx)("div",{className:p()("PSPDFKit-Annotation-Toolbar",Yc().root,{[Yc().stickToBottom]:"bottom"===e}),children:(0,ee.jsx)(Af,{dispatch:t,isAnnotationTypeReadOnly:i,showComments:n,showRedactions:r,hasMobileLayout:!0,inlineTextSelectionToolbarItems:a,currentTextSelection:o,showAIDocumentAssistant:s})})}}var Tf=n(45755),If=n(84584),Mf=n(56157),Nf=n.n(Mf);const Of=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,ee.jsx)(eu,{node:t.node,className:p()("PSPDFKit-Annotation-Tool-Node",e.itemClassName,r,Nf().node),onPress:l,title:s,disabled:o,selected:i},`AnnotationTools-tool-${n}`):(0,ee.jsx)(Vc,{type:"custom",className:p()("PSPDFKit-Annotation-Tool-Button",e.itemClassName,r,Nf().button),disabled:o,selected:i,icon:a,title:s,onPress:l},`AnnotationTools-tool-${n}`)}));return(0,ee.jsx)("div",{role:"toolbar",className:p()(Nf().root,e.rootClassName),children:t})}));function jf(e){e.stopPropagation()}const Rf=(0,he.j4)((e=>{const{children:t,fullScreen:n,hover:r,tools:o,intl:i,closeNote:a,clearNote:s,isLocked:l,isReadOnly:c,hasLockedContents:d,...h}=e,{formatMessage:f}=i,m=u.useRef(null);u.useEffect((function(){const e=m.current;if(e)return e.addEventListener("wheel",jf,!0),()=>e.removeEventListener("wheel",jf,!0)}),[]);const g=(0,we.A)({type:"close"}),v=(0,we.A)({type:"delete"}),y=(0,we.A)({type:"lock",style:{width:12,height:12,flexBasis:12},className:ct().icon}),b=[c?f(be.A.readOnlyAnnotationFlag):"",l?f(be.A.locked):"",d?f(be.A.lockedContents):""].filter((e=>""!==e)).join(", ");return(0,ee.jsxs)("div",{className:`PSPDFKit-Note-Annotation-Content ${ct().wrapper}${n?" "+ct().fullScreen:""}`,...h,ref:m,children:[(0,ee.jsxs)("div",{className:ct().header,children:[(0,ee.jsx)("h3",{className:ct().title,children:f(be.A.noteAnnotation)}),(0,ee.jsx)("button",{className:p()(ct().button,r?ct().hidden:null),title:f(be.A.close),"aria-label":f(be.A.close),onClick:a||void 0,role:"button",type:"button",children:g})]}),(0,ee.jsx)("div",{className:ct().content,children:t}),s&&(0,ee.jsx)("button",{className:p()(ct().button,r?ct().hidden:null),title:f(be.A.clear),"aria-label":f(be.A.clear),onClick:s,role:"button",type:"button",children:v}),o&&!n&&(0,ee.jsx)("div",{className:ct().tools,children:(0,ee.jsx)(Of,{items:o,rootClassName:ct().tools,itemClassName:ct().tool})}),(0,ee.jsx)("div",{className:ct().footer,children:(l||c||d)&&(0,ee.jsxs)(ee.Fragment,{children:[y,(0,ee.jsx)("div",{className:ct().label,"aria-label":b,children:b})]})})]})})),Ff={left:0,top:0,maxWidth:"100%",maxHeight:"auto",minWidth:"100%",minHeight:"100%"};class Bf extends u.Component{constructor(){super(...arguments),(0,v.A)(this,"_didUpdate",!1),(0,v.A)(this,"_didEditorFocus",!1),(0,v.A)(this,"shouldComponentUpdate",ye.E),(0,v.A)(this,"state",{value:this.props.annotation.text.value}),(0,v.A)(this,"focus",(()=>{this._isFocused||(this._isFocused=!0,this._editor&&this._editor.focus())})),(0,v.A)(this,"clearText",(()=>{this._editor&&this._editor.clearText()})),(0,v.A)(this,"_isFocused",!1),(0,v.A)(this,"_lastSavedAnnotation",this.props.annotation),(0,v.A)(this,"_onRef",(e=>{this._editor=e})),(0,v.A)(this,"_valueDidUpdate",(()=>{this._didUpdate=!0})),(0,v.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 hr.iU){const t=e.parentAnnotation?.set("note",e.text.value);(0,l.V1)(t),this.props.dispatch((0,at.g_)(t))}else this.props.dispatch((0,at.g_)(e)),this.props.keepSelectedTool&&this.props.dispatch((0,Pt.R8)())}else this.props.keepSelectedTool&&this.props.dispatch((0,Pt.R8)())})),(0,v.A)(this,"_onBlur",(()=>{this._updateAnnotation()})),(0,v.A)(this,"_onStopEditing",(()=>{this._updateAnnotation(),this.props.dispatch((0,at.ax)(!0))})),(0,v.A)(this,"_onEscape",(()=>{this.props.dispatch((0,ve.J9)()),this._updateAnnotation()})),(0,v.A)(this,"_handleEditorFocus",(()=>{if(!this._didEditorFocus){const e={annotations:(0,a.B8)([this.props.annotation]),reason:J.x.TEXT_EDIT_START};this.props.eventEmitter.emit("annotations.willChange",e)}this._didEditorFocus=!0}))}UNSAFE_componentWillReceiveProps(e){e.annotation.text.value!==this.props.annotation.text.value&&(this._editor&&(this._editor.innerText=e.annotation.text.value),this.setState({value:e.annotation.text.value}))}componentWillUnmount(){if(this._didEditorFocus){const e={annotations:(0,a.B8)([this.props.annotation]),reason:J.x.TEXT_EDIT_END};this.props.eventEmitter.emit("annotations.willChange",e)}this._updateAnnotation()}render(){return(0,ee.jsx)(Gr,{autoFocus:!1,autoSelect:this.props.autoSelect,onBlur:this._onBlur,onStopEditing:this._onStopEditing,onEscape:this._onEscape,ref:this._onRef,maxLength:xe.Mp,defaultValue:this.state.value,lastMousePoint:this.props.lastMousePoint,style:{...Ff,cursor:this.props.uneditableContentCursor||"inherit"},valueDidUpdate:this._valueDidUpdate,onFocus:this._handleEditorFocus})}}(0,v.A)(Bf,"defaultProps",{autoSelect:!1});var Lf=n(14150);class Vf extends u.Component{constructor(){super(...arguments),(0,v.A)(this,"state",{}),(0,v.A)(this,"shouldComponentUpdate",ye.E),(0,v.A)(this,"_closeNote",(()=>{this.props.noteAnnotation instanceof hr.iU?this.props.dispatch((0,ve.mm)(null)):this.props.dispatch((0,ve.J9)())})),(0,v.A)(this,"_clearNote",(()=>{this._editor&&this._editor.clearText()})),(0,v.A)(this,"_preventDeselect",(e=>{e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()})),(0,v.A)(this,"_makeHandleMouseUpAndTouchEnd",(e=>(0,Tf.Q)((t=>{this.setState({lastMousePoint:new k.bR({x:t.clientX,y:t.clientY})},(()=>{this.props.dispatch((0,ve._G)(e))}))})))),(0,v.A)(this,"_onRef",(e=>{this._editor=e,this.props.isFullscreen&&this._editor&&this._editor.focus()})),(0,v.A)(this,"_getGradient",(0,Ut.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(k.Q1.BLACK)<4.5;e++)t=t.lighter((255-n)/25.5);return{top:t.lighter(30),bottom:t}}))),(0,v.A)(this,"isPopoverPositioned",!1),(0,v.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 hr.iU,{color:c}=t,u=$f[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,R.Zr)(t);return(0,ee.jsx)(Rf,{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,children:p?t.text.value:(0,ee.jsx)(Bf,{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,q.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,R.Zr)(t,{isExpandedNote:!0});return(0,ee.jsx)(Lf.A,{referenceRect:(0,R.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,children:(0,ee.jsx)(Rf,{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,ee.jsx)(Bf,{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,v.A)(Vf,"defaultProps",{autoSelect:!1});const Kf={yellow:{top:new k.Q1({r:245,g:240,b:158}),bottom:new k.Q1({r:250,g:247,b:106})},orange:{top:new k.Q1({r:250,g:213,b:161}),bottom:new k.Q1({r:255,g:184,b:112})},red:{top:new k.Q1({r:255,g:181,b:178}),bottom:new k.Q1({r:255,g:134,b:126})},fuchsia:{top:new k.Q1({r:255,g:186,b:255}),bottom:new k.Q1({r:240,g:139,b:233})},blue:{top:new k.Q1({r:164,g:211,b:255}),bottom:new k.Q1({r:113,g:166,b:244})},green:{top:new k.Q1({r:190,g:255,b:161}),bottom:new k.Q1({r:130,g:227,b:111})}},$f={};for(const e of If.p)null!=e.color&&null!=e.localization.id&&($f[e.color.toCSSValue()]=Kf[e.localization.id]);var Hf=n(77788),Uf=n(13587),qf=n.n(Uf);class Wf extends u.PureComponent{constructor(){super(...arguments),(0,v.A)(this,"elementRef",u.createRef()),(0,v.A)(this,"state",{isPanning:!1}),(0,v.A)(this,"initialPosition",null),(0,v.A)(this,"previousPosition",null),(0,v.A)(this,"_handleDragStart",(e=>{this.props.enabled&&(0,Hf.e)(e)&&(this.initialPosition=this.previousPosition=new E.bR({x:e.clientX,y:e.clientY}),this.setState({isPanning:!0}),this._addEventListeners())})),(0,v.A)(this,"_handleDragMove",(e=>{if(!(0,Hf.s)(e))return void this._handleDragEnd(e);if(!this.props.enabled||!this.previousPosition)return;const t=new E.bR({x:e.clientX,y:e.clientY}),n=this.previousPosition.translate(t.scale(-1)),r=this._getScrollElement(),{scrollLeft:o,scrollTop:i}=r;r.scrollLeft=o+n.x,r.scrollTop=i+n.y,this.previousPosition=t,e.stopPropagation()})),(0,v.A)(this,"_handleDragEnd",(e=>{this.initialPosition&&this.previousPosition&&(At(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()({[qf().layer]:e,[qf().isPanning]:t});return(0,ee.jsx)("div",{className:n,ref:this.elementRef,children:this.props.children})}_addEventListeners(){const{defaultView:e}=this._getScrollElement().ownerDocument;e?.addEventListener("mouseup",this._handleDragEnd,!0),e?.addEventListener("mousemove",this._handleDragMove)}_removeEventListeners(){const e=this._getScrollElement();if(!e)return;const{defaultView:t}=e.ownerDocument;t&&(t.removeEventListener("mouseup",this._handleDragEnd,!0),t.removeEventListener("mousemove",this._handleDragMove))}_getScrollElement(){return this.context()}}(0,v.A)(Wf,"contextType",ac);const Gf=u.memo((function(e){const{dispatch:t,viewportState:n,interactionMode:r,spreadIndex:o,onCropChange:i,cropInfo:a,connectionState:s}=e,l=u.useRef(null);u.useEffect((()=>{null!==l.current&&l.current!==o&&(r===F.O.SEARCH?t((0,ve.od)()):t((0,ve.J9)())),l.current=o}),[t,o,r]);const[c,d]=(0,Gi.rY)(n,o,s.name);if(0===n.viewportRect.width||0===n.viewportRect.height)return null;function p(t,r,o){const s={transform:(0,q.s4)(E.XF.IDENTITY,n,t).toCssValue(),transformOrigin:"0 0"},l=(0,Gi.uM)(n)===od.S.DOUBLE?t.toString():e.pageKeys.get(t);return(0,ee.jsx)("div",{className:"PSPDFKit-Spread",style:s,"data-spread-index":t,children:(0,ee.jsx)(nf,{spreadIndex:t,viewportState:n,inViewport:r,shouldPrerender:o,hidden:!r,onOverviewRenderFinished:d,onCropChange:i,cropInfo:a,pageKeys:e.pageKeys,setGlobalCursor:e.setGlobalCursor,connectionState:e.connectionState},l)},l)}return(0,ee.jsx)(rf.A,{dispatch:e.dispatch,viewportState:n,children:(0,ee.jsx)("div",{children:function(e){const t=[];if(t.push(p(e,!0,!1)),n.scrollMode===na.V.DISABLED)return t;const r=(0,Gi.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(p(n,!1,"number"==typeof c&&e===c));return t}(o)})})}));var Yf=n(15168),Zf=n(91715),Jf=n.n(Zf),Xf=n(45306);const Qf=!(!Yf.fS||"edge"==fe.Hi)&&{passive:!0};class em extends u.Component{constructor(){super(),(0,v.A)(this,"_elementRef",u.createRef()),(0,v.A)(this,"_handleWheel",(e=>{const{viewportState:t,scrollElement:n}=this.props,r=t.zoomLevel<=(0,Zi.bo)(t);let o=!0;if(n){const{clientHeight:e,scrollHeight:r}=n;o=t.commentMode!==Xf.X.SIDEBAR||t.scrollMode!==na.V.PER_SPREAD||t.scrollPosition.y+e>=r}if(!(r&&o))return;const i=(0,q.z1)(t);e.clientX>Math.ceil(i.left)+i.width+t.viewportPadding.x||(e.deltaY<0?this.props.dispatch((0,lc.$w)()):e.deltaY>0&&this.props.dispatch((0,lc.Zj)()))})),(0,v.A)(this,"_handleSwipeLeft",(()=>{const e=(0,Yi.nr)(this.props.viewportState);Math.ceil(this.props.viewportState.scrollPosition.x)>=Math.floor(e.x)&&this.props.dispatch((0,lc.Zj)())})),(0,v.A)(this,"_handleSwipeRight",(()=>{Math.floor(this.props.viewportState.scrollPosition.x)<=0&&this.props.dispatch((0,lc.$w)())})),(0,v.A)(this,"_handleTouchStart",(e=>{const t=this._elementRef.current;t&&null===this._touchStart&&(0,ws.KK)(e)&&(this._touchStart=rm(e),t.ownerDocument.addEventListener("touchend",this._handleTouchEnd,!0))})),(0,v.A)(this,"_handleTouchEnd",(e=>{const t=this._elementRef.current;if(!t)return;const n=this._touchStart;if(!n)return;const r=rm(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 0;if(Math.abs(e)>=Math.abs(t))return e<0?tm:nm;return t<0?3:4}(o,i);if(s>10&&Math.abs(a)>.3&&!this.props.interactionsDisabled)switch(l){case tm:this._handleSwipeLeft();break;case nm:this._handleSwipeRight()}t.ownerDocument.removeEventListener("touchend",this._handleTouchEnd,!0),this._touchStart=null})),(0,v.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,bf.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,Nh.A)(this._handleWheel,250),this._touchStart=null}componentDidMount(){const e=this._elementRef.current;e&&(e.addEventListener("touchstart",this._handleTouchStart),e.addEventListener("wheel",this._handleWheel,Qf))}componentWillUnmount(){const e=this._elementRef.current;e&&(e.removeEventListener("touchstart",this._handleTouchStart),e.removeEventListener("wheel",this._handleWheel,Qf),e.ownerDocument.removeEventListener("touchend",this._handleTouchEnd,!0))}render(){return(0,ee.jsx)("div",{className:Jf().root,onClick:this._handleClick,ref:this._elementRef,children:this.props.children})}}const tm=1,nm=2;function rm(e){const t=e.touches[0]||e.changedTouches[0];return{x:t.clientX,y:t.clientY,timestamp:Date.now()}}var om=n(8431),im=n.n(om);const am=function(e){let{progress:t,totalPages:n}=e;const{formatMessage:r}=(0,he.tz)(),i=(0,s.wA)(),a=u.useCallback((()=>{(0,s.vA)((()=>{i((0,Pt.JN)()),i((0,gd.be)())}))}),[i]);return(0,ee.jsx)(uf.A,{onEscape:a,accessibilityLabel:r(sm.printProgressModal),accessibilityDescription:r(sm.printProgressModalDesc),children:(0,ee.jsxs)("div",{className:im().root,children:[(0,ee.jsx)("div",{children:r(sm.printPrepare)}),"number"==typeof t&&(0,ee.jsxs)(u.Fragment,{children:[(0,ee.jsxs)("div",{className:im().progressWrapper,children:[(0,ee.jsx)("div",{className:im().progress,"aria-label":`${t}% complete`,role:"progressbar","aria-valuenow":t,children:(0,ee.jsx)("div",{className:im().progressBar,style:{width:`${Math.floor(100*t/n)}%`}})}),(0,ee.jsx)("div",{className:im().progressText,children:r(sm.pageXofY,{arg0:t,arg1:n})})]}),(0,ee.jsx)(o.$n,{title:r(be.A.cancel),onClick:a,children:r(be.A.cancel)})]})]})})},sm=(0,he.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 lm,cm=n(60941),um=n.n(cm);const dm=function(){const{formatMessage:e}=(0,he.tz)();return(0,ee.jsx)(uf.A,{accessibilityLabel:e(pm.signingModal),accessibilityDescription:e(pm.signingModalDescription),children:(0,ee.jsxs)("div",{className:um().root,children:[(0,ee.jsx)(Ae.A,{src:n(92733),className:um().icon,role:"presentation"}),(0,ee.jsxs)("div",{className:um().message,children:[e(pm.signing),lm||(lm=(0,ee.jsx)(De.A,{}))]})]})})},pm=(0,he.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,fm=n(16821),mm=n.n(fm);function gm(){const{formatMessage:e}=(0,he.tz)();return(0,ee.jsx)(uf.A,{accessibilityLabel:e(vm.redactionsModal),accessibilityDescription:e(vm.redactionModalDescription),children:(0,ee.jsxs)("div",{className:mm().root,children:[(0,ee.jsx)(Ae.A,{src:n(79784),className:mm().icon,role:"presentation"}),(0,ee.jsxs)("div",{className:mm().message,children:[e(vm.applyingRedactions),hm||(hm=(0,ee.jsx)(De.A,{}))]})]})})}const vm=(0,he.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 ym=n(51230),bm=n.n(ym);const wm={WebkitOverflowScrolling:"touch",overflow:"auto"},xm=[Fn.IA,Fn.jE,Fn.hH,Fn.Qm];class Sm extends u.PureComponent{constructor(e){super(e),(0,v.A)(this,"usingNavigationKeys",!1),(0,v.A)(this,"handleScroll",(0,Nh.A)(this.handleScroll.bind(this),100,!0)),(0,v.A)(this,"handleKeyDown",(e=>{xm.indexOf(e.keyCode)>=0&&!this.usingNavigationKeys&&(this.usingNavigationKeys=!0)})),(0,v.A)(this,"handleKeyUp",(e=>{xm.indexOf(e.keyCode)>=0&&this.usingNavigationKeys&&(this.usingNavigationKeys=!1)})),(0,v.A)(this,"_handleRef",(e=>{e&&(this.element=e,this.props.onScrollElementChange(e))})),this.previousKnownScrollPosition=new k.bR,this.previousKnownZoomLevel=1}updateScrollbarOffset(e){const t=this.element.offsetWidth-this.element.clientWidth,n="hidden"!==this.element.style.overflow;"number"==typeof t&&e!=t&&n&&this.props.dispatch((0,Pt.Ib)(t))}componentDidUpdate(e){requestAnimationFrame((()=>this.updateScrollbarOffset(e.scrollbarOffset))),this.updateScrollPosition()}componentDidMount(){this.updateScrollbarOffset(),this.updateScrollPosition(),this.props.dispatch((0,Pt.u7)(this.element)),this.element.ownerDocument.addEventListener("keydown",this.handleKeyDown),this.element.ownerDocument.addEventListener("keyup",this.handleKeyUp)}componentWillUnmount(){this.props.dispatch((0,Pt.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 k.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,lc.XP)(i,this.usingNavigationKeys)))}render(){const{children:e,scrollDisabled:t}=this.props;return(0,ee.jsx)("div",{ref:this._handleRef,className:`PSPDFKit-Scroll ${bm().root}`,style:{...wm,overflow:t?"hidden":"auto"},onScroll:this.handleScroll,children:e})}}class _m{constructor(e,t,n){const r=e.getRangeAt(0);let o=new k.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.parentNode;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.parentNode;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.parentNode;for(;t;){if(t instanceof this.window.HTMLElement&&t.classList.contains(this.className))return!0;if(t instanceof this.window.ShadowRoot)break;t=t.parentNode}return!1}_isBeforeOrSame(e,t){const n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=0==e.compareDocumentPosition(t);return n||r}}var Cm=n(41143),Em=n.n(Cm);let km=null,zm=null;const Pm=(e,t)=>e.container===t.container&&e.offset===t.offset,Am={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 Dm extends u.PureComponent{constructor(){super(...arguments),(0,v.A)(this,"isMouseSelection",!1),(0,v.A)(this,"pointerMadeSelection",!1),(0,v.A)(this,"isShiftPressed",!1),(0,v.A)(this,"isPrimaryPointerGesture",!1),(0,v.A)(this,"isSelecting",!1),(0,v.A)(this,"selectionRange",document.createRange()),(0,v.A)(this,"preventDefaultPointerUpAction",!1),(0,v.A)(this,"_handleSelectStart",(()=>{this.props.interactionMode!==F.O.TEXT_HIGHLIGHTER&&this.props.interactionMode!==F.O.REDACT_TEXT_HIGHLIGHTER||(this.isShiftPressed?this._processTextSelection(fe.LZ?"touch":"mouse"):this.props.dispatch((0,ve.nb)((0,a.NZ)(),this.props.interactionMode===F.O.TEXT_HIGHLIGHTER?k.ax:W.A)))})),(0,v.A)(this,"_handleSelectionChange",(()=>{const{interactionMode:e,shadowRoot:t,rootElement:n}=this.props,{defaultView:r}=n.ownerDocument;let o,i;if(fe.nr&&t)o=t?.getSelection();else{const{selection:e,isFalseCollapse:n}=t?(0,y.lY)(t):(0,y.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===km||null===zm||!(Pm(km,a)||Pm(zm,s)||Pm(km,s)||Pm(zm,a)),km=a,zm=s,l})(o)&&(this._handleSelectStart(),this.pointerMadeSelection=!0),this.isMouseSelection&&e!==F.O.TEXT_HIGHLIGHTER&&e!==F.O.REDACT_TEXT_HIGHLIGHTER||(o&&!o.isCollapsed||i)&&this._processTextSelection(fe.LZ?"touch":"mouse")})),(0,v.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||fe.LZ&&i||window.setTimeout((()=>{this._checkForTextSelection(t)}),0)})),(0,v.A)(this,"_handlePointerDown",(e=>{let{pointerType:t,shiftKey:n,isPrimary:r}=e;this.isPrimaryPointerGesture=r,"mouse"===t&&(this.isMouseSelection=!0,this.isShiftPressed=n)})),(0,v.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(!Am.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)),km=null,zm=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(Em().shakeEffect),void setTimeout((()=>{e?.classList.remove(Em().shakeEffect)}),200)}if(!l)return;const{selection:u,isFalseCollapse:d}=s?(0,y.lY)(s):(0,y.tb)(l);u&&(!u.isCollapsed||d?this._processTextSelection(e):(n||r.size>0||o)&&(a===F.O.TEXT_HIGHLIGHTER||a===F.O.REDACT_TEXT_HIGHLIGHTER||a===F.O.CONTENT_EDITOR?(this.isShiftPressed&&t((0,ve.F6)(a===F.O.TEXT_HIGHLIGHTER?k.ax:W.A)),t((0,ve.od)())):t((0,ve.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(fe.nr&&o)a=o.getSelection();else{const{selection:e}=o?(0,y.lY)(o):(0,y.tb)(i);a=e}if(!a)return;const l=a.rangeCount>0?((e,t,n)=>new _m(e,t,n).getTextRange())(a,o||n,la().selectableText):null;null!=l&&(0,s.vA)((()=>{t((0,ve.$G)(l,"mouse"===e&&r!==F.O.TEXT_HIGHLIGHTER&&r!==F.O.REDACT_TEXT_HIGHLIGHTER)),r===F.O.TEXT_HIGHLIGHTER?t((0,ve.Xd)(k.ax)):r===F.O.REDACT_TEXT_HIGHLIGHTER&&t((0,ve.Xd)(W.A))}))}render(){return(0,ee.jsx)($e.A,{onPointerUp:this._handlePointerUp,onPointerDown:this._handlePointerDown,onPointerDownCapture:e=>{e.target.closest(".BaselineUI-Dialog")&&(this.preventDefaultPointerUpAction=!0)},children:(0,ee.jsx)("div",{children:this.props.children})})}}const Tm=(0,u.createContext)(null),Im={didCatch:!1,error:null};class Mm extends u.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=Im}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(Im)}}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(Im))}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)(Tm.Provider,{value:{didCatch:o,error:i,resetErrorBoundary:this.resetErrorBoundary}},a)}}var Nm=n(27678),Om=n.n(Nm);function jm(e,t){return e>t?t/1.5:e}class Rm extends u.Component{constructor(){super(...arguments),(0,v.A)(this,"sidebarRef",u.createRef()),(0,v.A)(this,"state",{size:Math.min(this.props.initialSize,this.props.maxWidth),prevSize:Math.min(this.props.initialSize,this.props.maxWidth)}),(0,v.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,v.A)(this,"onResizeFinish",(e=>{e!==this.props.initialSize&&this.props.dispatch((0,lc.xT)(e))})),(0,v.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,v.A)(this,"onDoubleClick",(()=>{const{maxWidth:e}=this.props;this.setState((t=>{let{size:n,prevSize:r}=t;return n===e?{size:jm(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:jm(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,ee.jsx)("div",{ref:this.sidebarRef,children:(0,ee.jsx)(Fm,{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,ee.jsx)(Mm,{fallbackRender:e=>{let{error:t}=e;return t(t.message)},children:this.props.children(e-t,t)})})})}}class Fm extends u.Component{constructor(){super(...arguments),(0,v.A)(this,"state",{isDragging:!1,previousPosition:null}),(0,v.A)(this,"_handlePointerDown",(e=>{const{isPrimary:t}=e;if(!t)return;const n=new E.bR({x:e.clientX,y:e.clientY});this.setState({isDragging:!0,previousPosition:n})})),(0,v.A)(this,"_handlePointerMove",(e=>{if(!this.state.isDragging)return;const t=new E.bR({x:e.clientX,y:e.clientY});this._handleDrag(t)})),(0,v.A)(this,"_handlePointerUp",(e=>{if(!this.state.isDragging)return;this.setState({isDragging:!1});const{previousPosition:t}=this.state;if(!t)return;const n=new E.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,v.A)(this,"_handleDoubleClick",(()=>{this.props.onDoubleClick()})),(0,v.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,v.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,ee.jsxs)("div",{className:`${Om().sidebar} ${(0,nd.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,ee.jsx)("div",{onDoubleClick:this._handleDoubleClick,children:(0,ee.jsx)($e.A,{onPointerDown:this._handlePointerDown,onRootPointerMoveCapture:this._handlePointerMove,onRootPointerUpCapture:this._handlePointerUp,children:(0,ee.jsx)("div",{style:{[e?"left":"right"]:0,width:t},className:`${Om().dragger} PSPDFKit-Sidebar-Dragger`,children:(0,ee.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:`${Om().draggerHandle} PSPDFKit-Sidebar-DraggerHandle`})})})})]})}}class Bm extends u.PureComponent{render(){const{formatMessage:e}=this.props.intl;return(0,ee.jsx)(uf.A,{role:"dialog",onEscape:this.props.onEscape,background:"rgba(0,0,0,.1)",className:Vn().modal,accessibilityLabel:e(Lm.signatureDialog),accessibilityDescription:e(Lm.signatureDialogDescription),children:this.props.children})}}const Lm={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"}},Vm=(0,he.j4)(Bm);var Km=n(24159),$m=n(89398),Hm=n(2440);const Um=$m.A.filter((e=>[Km.A.BLACK,Km.A.BLUE,Km.A.RED].includes(e.color)));class qm extends u.Component{constructor(){super(...arguments),(0,v.A)(this,"shouldComponentUpdate",ye.E),(0,v.A)(this,"state",{annotation:new Hm.A({...this.props.preset,isSignature:!0}),zoomLevel:1}),(0,v.A)(this,"_onAnnotationColorChange",(e=>{const t=this.state.annotation.withMutations((t=>{t.set("strokeColor",e)}));this._onChange(t)})),(0,v.A)(this,"_clear",(()=>{this.setState({annotation:new Hm.A({...this.props.preset,isSignature:!0})},this._callOnChange)})),(0,v.A)(this,"_onChange",(e=>{this.setState({annotation:e},this._callOnChange)})),(0,v.A)(this,"_callOnChange",(()=>{const{onChange:e}=this.props;if(!e)return;e((0,yo.C)(this.state.annotation,this.state.annotation.boundingBox.getLocation().scale(-1),this.props.canvasSize,new E.bR))})),(0,v.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,ee.jsxs)(u.Fragment,{children:[(0,ee.jsxs)("div",{className:Vn().header,children:[(0,ee.jsx)(Eu,{colorPresets:Um,activeColor:e.strokeColor,onClick:this._onAnnotationColorChange,className:p()(Vn().colorPicker,"PSPDFKit-Signature-Dialog-Color-Picker")}),(0,ee.jsx)(o.$n,{onClick:this._clear,inverted:!0,disabled:r,className:p()(Vn().button,"PSPDFKit-Signature-Dialog-Clear-Signature-Button"),children:n(be.A.clearSignature)})]}),(0,ee.jsx)("div",{className:Vn().editorCanvasContainer,children:(0,ee.jsxs)("div",{className:p()(Vn().editorCanvas,"PSPDFKit-Signature-Dialog-Canvas","PSPDFKit-Signature-Canvas","interactions-disabled"),children:[(0,ee.jsx)(Fu.A,{onResize:this._onResize}),(0,ee.jsx)("div",{className:p()(Vn().signHere,"PSPDFKit-Signature-Dialog-Sign-Here-Label",{[Vn().signHereHidden]:!e.lines.isEmpty()}),children:n(Wm.pleaseSignHere)}),(0,ee.jsx)(Nr,{annotation:e,canvasSize:t,onDrawStart:this._onChange,onDraw:this._onChange,onDrawEnd:this._onChange,zoomLevel:this.state.zoomLevel,cursor:"crosshair"})]})})]})}}(0,v.A)(qm,"defaultProps",{canvasSize:new E.or({width:600,height:260}),preset:{}});const Wm=(0,he.YK)({pleaseSignHere:{id:"pleaseSignHere",defaultMessage:"Please sign here",description:"Message on the signature canvas"}}),Gm=(0,he.j4)(qm);var Ym,Zm=n(38660),Jm=n.n(Zm);class Xm extends u.Component{constructor(){super(...arguments),(0,v.A)(this,"imageFetcherRef",u.createRef()),(0,v.A)(this,"loadingIndicatorTimeout",null),(0,v.A)(this,"unmounted",!1),(0,v.A)(this,"state",{loadingState:"LOADING",showLoadingIndicator:!1}),(0,v.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,ze.pw)({backend:e,blob:t?.data,annotation:r,isDetachedAnnotation:!0,zoomLevel:1})})),(0,v.A)(this,"_renderFinished",(e=>{this.unmounted||(this.setState({loadingState:"LOADED"}),this.props.onRenderFinished&&this.props.onRenderFinished(e))})),(0,v.A)(this,"_showError",(()=>{this.setState({loadingState:"ERROR"})})),(0,v.A)(this,"_showLoadingIndicator",(()=>{this.setState((e=>({showLoadingIndicator:"LOADING"===e.loadingState})))}))}componentDidUpdate(e){if(!(0,a.is)((0,R.X4)(this.props.annotation),(0,R.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,xe.$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?Jm().wideImg:Jm().highImg,c=p()(e instanceof k.vU?Jm().imageAnnotation:Jm().stampAnnotation,r?Jm().containedImg:Jm().notContainedImg,l),u=p()(Jm().wrapper,{[Jm()["imageAnnotation-loading"]]:"LOADING"===this.state.loadingState&&this.state.showLoadingIndicator,[Jm()["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,ee.jsxs)("div",{style:d,className:u,children:[(0,ee.jsx)(Pe.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,ee.jsx)("div",{className:Jm().placeHolder,children:Ym||(Ym=(0,ee.jsx)(De.A,{}))}):"ERROR"===this.state.loadingState?(0,ee.jsx)("div",{className:Jm().placeHolder,children:(0,ee.jsx)(Ae.A,{src:Ie(),className:Jm().errorIcon})}):null]})}}class Qm extends u.Component{constructor(){super(...arguments),(0,v.A)(this,"shouldComponentUpdate",ye.E)}render(){const{formatMessage:e}=this.props.intl,t=null==this.props.showDeleteBtn||this.props.showDeleteBtn;return(0,ee.jsx)("ul",{className:p()(Vn().signaturePickerList,"PSPDFKit-Signature-Dialog-Picker","PSPDFKit-Signature-Picker"),children:this.props.signatures.map(((r,i)=>(0,ee.jsxs)("li",{className:p()(Vn().signaturePickerListItem,"PSPDFKit-Signature-Dialog-Picker-Item"),"data-signature":i,children:[(0,ee.jsx)(o.$n,{className:p()(Vn().selectSignatureButton,"PSPDFKit-Signature-Dialog-Picker-Item-Button",{[Vn().imageAnnotation]:r instanceof k.vU}),onClick:()=>{this.props.onSelect(r)},autoFocus:0===i,children:r instanceof k.Eo?(0,ee.jsx)(et,{isSelectable:!1,annotation:r,viewBox:r.boundingBox}):(0,ee.jsx)(Xm,{annotation:r,backend:this.props.backend,label:r.description||e(be.A.imageAnnotation),attachment:r.imageAttachmentId?this.props.attachments.get(r.imageAttachmentId):null,templateWidth:153.5})}),t?(0,ee.jsx)("button",{className:p()(Vn().deleteSignatureButton,"PSPDFKit-Signature-Dialog-Picker-Item-Delete-Button"),onClick:()=>{this.props.onDelete(r)},"aria-label":e(be.A.delete),children:(0,ee.jsx)(Ae.A,{src:n(53992)})}):null]},i)))})}}const eg=(0,he.j4)(Qm);var tg;function ng(e){let{children:t,hasDivider:n}=e;return n?(0,ee.jsxs)(u.Fragment,{children:[tg||(tg=(0,ee.jsx)(o.aF.Divider,{spaced:!1})),(0,ee.jsx)(o.aF.Section,{children:t})]}):(0,ee.jsx)("div",{className:Vn().footer,children:t})}class rg extends u.Component{constructor(){super(...arguments),(0,v.A)(this,"state",{annotation:null,hideSignaturePicker:!1,storeSignature:!!this.props.canStoreSignature}),(0,v.A)(this,"_hideSignaturePicker",(()=>{this.setState({hideSignaturePicker:!0,annotation:null})})),(0,v.A)(this,"_onSignatureChange",(e=>{this.setState({annotation:e})})),(0,v.A)(this,"_onDone",(()=>{const{onCreate:e,onCancel:t}=this.props,{annotation:n,storeSignature:r}=this.state;n?e?.(n,r,!0):t?.()})),(0,v.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}=Ye.JY,m=f===dc.v.USING_UI;return(0,ee.jsxs)("div",{className:p()(Vn().viewRoot,"PSPDFKit-Signature-Dialog",{[Vn().viewSignaturePicker]:s}),children:[s&&n?(0,ee.jsxs)(u.Fragment,{children:[(0,ee.jsxs)("div",{className:Vn().header,children:[(0,ee.jsx)("div",{className:p()(Vn().title,"PSPDFKit-Signature-Dialog-Signature-Heading"),role:"heading","aria-level":"1",children:l(be.A.signatures)}),(0,ee.jsx)(o.$n,{className:"PSPDFKit-Signature-Dialog-Add-Signature-Button",onClick:this._hideSignaturePicker,inverted:!0,children:l(be.A.addSignature)})]}),(0,ee.jsx)("div",{className:Vn().signaturePickerContainer,children:(0,ee.jsx)(eg,{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,ee.jsx)(Gm,{onChange:this._onSignatureChange,preset:r}),(0,ee.jsxs)(ng,{hasDivider:s&&i,children:[!s&&i&&m&&(0,ee.jsxs)("label",{className:p()(Vn().checkbox,"PSPDFKit-Signature-Dialog-Store-Signature-Checkbox"),children:[(0,ee.jsx)("input",{type:"checkbox",name:"store",checked:d,onChange:this._toggleStoreSignature}),(0,ee.jsx)("span",{className:Vn().checkboxLabel,children:l(be.A.storeSignature)})]}),(0,ee.jsxs)(o.e2,{className:Vn().group,align:"end",children:[(0,ee.jsx)(o.$n,{onClick:this.props.onCancel,className:p()(Vn().button,"PSPDFKit-Signature-Dialog-Cancel-Button"),autoFocus:!s,children:l(be.A.cancel)}),!s&&(0,ee.jsx)(o.$n,{primary:!0,disabled:!h,onClick:h?this._onDone:null,className:p()(Vn().button,"PSPDFKit-Signature-Dialog-Done-Button"),children:l(be.A.done)})]})]})]})}}(0,v.A)(rg,"defaultProps",{canStoreSignature:!0});const og=(0,he.j4)(rg);var ig=n(22118),ag=n.n(ig);function sg(e){let{position:t,children:n}=e;return(0,ee.jsx)("div",{children:(0,ee.jsx)("div",{className:p()("PSPDFKit-Toolbars",ag().root,{[ag().stickToBottom]:"bottom"===t}),children:n})})}var lg=n(27522),cg=n(46822),ug=n.n(cg);function dg(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,Un.gX)(e.digitalSignatures,e.showSignatureValidationStatus);a(t)}()}),[e.showSignatureValidationStatus,e.digitalSignatures]);const{formatMessage:l}=(0,he.tz)(),{status:c,messageId:d,iconPath:h}=e.digitalSignatures?function(e){let{documentModifiedSinceSignature:t,status:n}=e;if(n===lg.J.valid)return t?{status:"warning",messageId:"digitalSignaturesDocModified",iconPath:"warning-2.svg"}:{status:"valid",messageId:"digitalSignaturesAllValid",iconPath:"digital-signatures/signature-valid.svg"};if(n===lg.J.warning)return{status:"warning",messageId:t?"digitalSignaturesSignatureWarningDocModified":"digitalSignaturesSignatureWarning",iconPath:"warning-2.svg"};if(n===lg.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()(ug().root,ug()[`status-${c}`],"PSPDFKit-Digital-Signatures-Status",`PSPDFKit-Digital-Signatures-Status-${(0,Zt.ZH)(c)}`),m=p()(ug().signatureValidationStatusIcon,ug()[`status-${c}-icon`],"PSPDFKit-Digital-Signatures-Status-Icon");return i?(0,ee.jsxs)("div",{className:f,children:[(0,ee.jsxs)("div",{className:ug().signatureInfoContainer,children:[(0,ee.jsx)("div",{className:ug().signatureValidationStatusIconContainer,children:(0,ee.jsx)(Ae.A,{className:m,src:n(33488)(`./${h}`)})}),(0,ee.jsx)("span",{className:p()(ug().signatureValidationStatusText,"PSPDFKit-Digital-Signatures-Status-Text"),children:l(pg[d])})]}),(0,ee.jsx)(o.$n,{className:p()(ug().signatureValidationCloseButton,"PSPDFKit-Digital-Signatures-Status-Close-Button"),onClick:()=>{r(!0)},"aria-label":"Close digital signatures status bar",children:(0,ee.jsx)(Ae.A,{className:ug().signatureValidationCloseIcon,src:n(95072)})})]}):null}const pg=(0,he.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 hg=n(20482),fg=n.n(hg);const mg=u.memo((function(e){return(0,ee.jsx)(Of,{itemClassName:fg().item,rootClassName:p()("PSPDFKit-Annotation-Tooltip",fg().root),items:e.items})}));var gg=n(22265),vg=n.n(gg);function yg(e){let{viewportState:{viewportRect:t},children:n,scrollbarOffset:r}=e;const o={width:t.width+r,height:t.height};return(0,ee.jsx)("div",{className:`PSPDFKit-Viewport ${vg().root}`,style:o,children:n})}var bg=n(53455),wg=n.n(bg);const xg=(0,he.j4)((function(e){const{formatMessage:t}=e.intl;return(0,ee.jsxs)(uf.A,{role:"alertdialog",onEscape:e.onCancel,background:"rgba(0,0,0,.1)",className:"PSPDFKit-Confirm-Dialog PSPDFKit-Reload-Document-Confirm-Dialog",accessibilityLabel:t(Sg.reloadDocumentDialog),accessibilityDescription:t(Sg.reloadDocumentDialogDesc),children:[(0,ee.jsx)(uf.A.Section,{style:{paddingBottom:0},children:(0,ee.jsx)("div",{className:`${wg().content} PSPDFKit-Confirm-Dialog-Content`,children:(0,ee.jsx)("div",{children:t(Sg.instantModifiedWarning)})})}),(0,ee.jsx)(uf.A.Section,{children:(0,ee.jsxs)(o.e2,{className:"PSPDFKit-Confirm-Dialog-Buttons",align:"end",children:[(0,ee.jsx)(o.$n,{autoFocus:!0,onClick:e.onCancel,className:"PSPDFKit-Confirm-Dialog-Button PSPDFKit-Confirm-Dialog-Button-Cancel",children:t(be.A.cancel)}),(0,ee.jsx)(o.$n,{onClick:e.onConfirm,primary:!0,className:"PSPDFKit-Confirm-Dialog-Button PSPDFKit-Confirm-Dialog-Button-Confirm",children:t(Sg.reloadDocument)})]})})]})})),Sg=(0,he.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 _g=n(47750),Cg=n(26635);function Eg(){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,yr.d3)(e,null);const i=p()(Om().container,"PSPDFKit-Sidebar-Custom");return r?(0,ee.jsx)("div",{role:"region",tabIndex:-1,ref:t,className:i}):null}var kg=n(92526),zg=n(43215),Pg=n.n(zg);const Ag=(0,he.j4)((e=>{let{position:t,onCropApply:r,onCropCancel:o,isCropAreaSelected:i,frameWindow:a,intl:{formatMessage:s}}=e;return u.useEffect((()=>{function e(e){"Enter"===e.key?i&&r(!1):"Escape"===e.key&&o()}return a.document.addEventListener("keydown",e),()=>{a.document.removeEventListener("keydown",e)}}),[i]),(0,ee.jsxs)("div",{className:p()("PSPDFKit-Annotation-Toolbar","PSPDFKit-Document-Crop-Toolbar",Yc().root,Pg().container,{[Yc().stickToBottom]:"bottom"===t}),onMouseUp:Dg,onTouchEnd:Dg,onPointerUp:Dg,children:[(0,ee.jsxs)("div",{className:Pg().buttonContainer,children:[(0,ee.jsxs)("div",{role:"button",className:p()(Pg().cropButton,{[Pg().cropButtonDisabled]:!i}),onClick:i?()=>r(!1):void 0,title:s(be.A.cropCurrentPage),"aria-disabled":!i,children:[(0,ee.jsx)(Ae.A,{src:n(7787)})," ",(0,ee.jsx)("span",{className:Pg().desktopButtonText,children:s(be.A.cropCurrentPage)}),(0,ee.jsx)("span",{className:Pg().mobileButtonText,children:s(be.A.cropCurrent)})]}),(0,ee.jsxs)("div",{role:"button",className:p()(Pg().cropButton,{[Pg().cropButtonDisabled]:!i}),onClick:i?()=>r(!0):void 0,title:s(be.A.cropAllPages),"aria-disabled":!i,children:[(0,ee.jsx)(Ae.A,{src:n(45625)}),(0,ee.jsx)("span",{className:Pg().desktopButtonText,children:s(be.A.cropAllPages)}),(0,ee.jsx)("span",{className:Pg().mobileButtonText,children:s(be.A.cropAll)})]})]}),(0,ee.jsx)("div",{role:"button",className:`${Pg().cancelButton} ${Pg().cancelDesktop}`,onClick:()=>o(),title:s(be.A.cancel),children:(0,ee.jsx)("span",{children:s(be.A.cancel)})}),(0,ee.jsx)("div",{role:"button",className:`${Pg().cropButton} ${Pg().cancelMobile}`,onClick:()=>o(),title:s(be.A.cancel),children:(0,ee.jsx)(Ae.A,{src:n(11899)})})]})}));function Dg(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}var Tg=n(83672),Ig=n.n(Tg),Mg=n(87170),Ng=n(35083),Og=n.n(Ng),jg=n(95272),Rg=n.n(jg);const Fg=e=>{let{item:t,state:n,itemComponentProps:r,ref:o}=e;return(0,ee.jsx)(Bg,{item:t,state:n,fontFamily:void 0,itemComponentProps:r,ref:o})},Bg=u.forwardRef(((e,t)=>{let{item:n,state:r,fontFamily:o,itemComponentProps:i,width:a}=e;return(0,ee.jsxs)(pe.A,{is:"div",className:p()(xc().item,Og().item,{[xc().isSelected]:r?.includes("selected")||r?.includes("focused")}),name:n?.value??n?.label,style:{fontFamily:o,width:a},ref:t,...i,children:[r?.includes("selected")?(0,ee.jsx)(Ae.A,{src:Rg(),className:Og().icon}):(0,ee.jsx)("span",{className:Og().icon}),n?.label]})})),Lg=e=>function(t){let{btnComponentProps:n,selectedItem:r,caretDirection:i,disabled:a,isOpen:s}=t;const l=u.useRef(),{formatMessage:c}=(0,he.tz)();u.useLayoutEffect((()=>{l.current&&(l.current.value=r?.label||"")}),[r]);const d=u.useCallback((()=>{const t=l.current?.value;if(t&&l.current&&t!==r?.label){const n=parseFloat(t);Number.isNaN(n)?l.current.value=r?.label??"":e({selectedItem:{label:n.toString()??"",value:n.toString()??""},preventFocusShift:!1})}}),[r?.label]);return(0,ee.jsxs)("div",{className:p()(Og().wrapper),children:[(0,ee.jsx)(Wc,{accessibilityLabel:c(be.A.fontSize),className:Og().textInput,onBlur:d,onKeyDown:t=>{const n=l.current?.value??"0";if("ArrowUp"===t.key){const t=parseFloat(n)+1;e({selectedItem:{label:t.toString()??"",value:t.toString()??""},preventFocusShift:!0})}else if("ArrowDown"===t.key){const t=Math.max(0,parseFloat(n)-1);e({selectedItem:{label:t.toString()??"",value:t.toString()??""},preventFocusShift:!0})}else"Enter"===t.key&&(t.preventDefault(),d())},onFocus:()=>{fe.nr&&setTimeout((()=>{l.current&&l.current.setSelectionRange(0,l.current.value.length)}),100)},name:"fontSize",styles:{input:p()({[Og().inputDisabled]:a},Og().textInputField)},disabled:a,ref:l,autoFocus:!1}),(0,u.createElement)("button",{...n,ref:n.ref,key:r?.value??r?.label,className:p()("PSPDFKit-Input-Dropdown-Button",xc().selectBox,Og().arrowDropdownBtn,Og().fontSizeDropdownBtn,{[Og().inputDisabled]:a,[xc().disabled]:a}),disabled:a},(0,ee.jsx)(o.s6,{children:c(be.A.fontSize)}),(0,ee.jsx)("div",{children:(0,we.A)({type:`caret-${i}`,style:{width:12,height:12,flexBasis:12},className:p()(xc().dropdownIcon,{[xc().isOpen]:s})})}))]})},Vg=function(e){const{disabled:t=!1}=e;return(0,ee.jsx)(mc.A,{frameWindow:e.frameWindow,items:e.items,value:e.value,className:e.className,maxCols:1,isActive:!1,caretDirection:e.caretDirection,disabled:t,menuClassName:p()(e.menuClass,Og().dropdownMenu),ButtonComponent:Lg(e.onSelect),ItemComponent:Fg,onSelect:(t,n)=>{e.onSelect({selectedItem:n,preventFocusShift:!1})},menuPositionOffsets:{top:-1}})},Kg=u.forwardRef((function(e,t){const{caretDirection:r,onChange:i,frameWindow:a,intl:s,styles:l,fontSizes:c,fontFamilyItems:d,isBold:h=!1,isItalic:f=!1,isUnderline:m=!1,currentFontFamily:g,currentFontSize:v,currentHorizontalAlign:y,currentVerticalAlign:b,showAlignmentOptions:w,showFontStyleOptions:x,disabled:S=!1,showUnderline:_=!1}=e,{formatMessage:C}=s,E=u.useCallback(Ug(150,r,l,S,l.fontFamily),[r,l,S]),k=c.map((e=>({label:e.toString(),value:e.toString(),disabled:!1}))),z=d.map((e=>(0,ee.jsx)("option",{value:e.value??e.label,disabled:e.disabled,children:e.label},e.value??e.label)));return(0,ee.jsx)("div",{className:l.controlWrapper,children:(0,ee.jsxs)("div",{className:p()(l.control,l.textFormatControls),children:[(0,ee.jsx)("div",{className:p()(l.fontFamilyNativeFlexbox),children:(0,ee.jsx)("div",{className:l.nativeDropdown,children:(0,ee.jsxs)("select",{"aria-label":C(be.A.font),className:"PSPDFKit-Input-Dropdown-Select",value:g??"",onChange:e=>{void 0!==e.target.value&&i({modification:{font:e.target.value}})},ref:t,disabled:S,children:[z,d.some((e=>e.value===g))?null:(0,ee.jsx)("option",{style:{display:"none"},children:g})]})})}),(0,ee.jsx)(mc.A,{items:d,value:g?{label:g,value:g}:null,accessibilityLabel:C(be.A.font),discreteDropdown:!1,isActive:!1,caretDirection:r,className:p()(e.fontFamilyClasses,l.fontFamilySelect),menuClassName:p()(l.dropdownMenu,e.fontFamilyMenuClasses),ButtonComponent:E,ItemComponent:Hg,onSelect:(e,t)=>{null!=t.value&&i({modification:{font:t.value}})},frameWindow:a,disabled:S}),(0,ee.jsx)(Vg,{items:k,value:{label:v?v.toString():"",value:(v??"").toString()||""},frameWindow:a,className:p()(l.fontSizeSelect,e.fontSizeClasses),menuClass:p()(e.fontSizeMenuClasses),caretDirection:r,disabled:S,onSelect:e=>{let{selectedItem:t,preventFocusShift:n}=e;null!=t.value&&i({modification:{fontSize:Number(t.value)},preventFocusShift:n})}}),x?(0,ee.jsxs)(ee.Fragment,{children:[(0,ee.jsxs)(o.$n,{className:p()(l.fontStyleBtn,l.fontStyleBtnBorderless,{[l.activeFontStyleBtn]:h}),style:{marginRight:8},title:C(be.A.bold),onClick:()=>{i({modification:{bold:!h}})},disabled:S,"aria-pressed":h,children:[(0,ee.jsx)(Ae.A,{src:n(11772)}),(0,ee.jsx)(o.s6,{children:C(be.A.bold)})]}),(0,ee.jsxs)(o.$n,{className:p()(l.fontStyleBtn,l.fontStyleBtnBorderless,{[l.activeFontStyleBtn]:f}),onClick:()=>{i({modification:{italic:!f}})},disabled:S,title:C(be.A.italic),"aria-pressed":f,children:[(0,ee.jsx)(Ae.A,{src:n(87405)}),(0,ee.jsx)(o.s6,{children:C(be.A.italic)})]}),_&&(0,ee.jsxs)(o.$n,{className:p()(l.fontStyleBtn,l.fontStyleBtnBorderless,{[l.activeFontStyleBtn]:m}),style:{marginLeft:8},onClick:()=>{i({modification:{underline:!m}})},disabled:S,title:C(be.A.underline),"aria-pressed":m,children:[(0,ee.jsx)(Ae.A,{src:n(23175)}),(0,ee.jsx)(o.s6,{children:C(be.A.underline)})]})]}):null,w?(0,ee.jsxs)(ee.Fragment,{children:[(0,ee.jsx)("span",{className:l.radioGroupWrapper,children:(0,ee.jsx)(o.z6,{inputName:"horizontalAlign",label:C(be.A.horizontalAlignment),selectedOption:y??"",labelClassNamePrefix:e.horizontalAlignClasses??"",options:["left","center","right"].map((e=>({value:e,label:C(be.A[`alignment${(0,Zt.ZH)(e)}`]),iconPath:n(77809)(`./text-align-horizontal-${e}.svg`)}))),onChange:e=>i({modification:{horizontalAlign:e}}),disabled:S})}),(0,ee.jsx)(o.z6,{inputName:"verticalAlign",label:C(be.A.verticalAlignment),selectedOption:b??"",labelClassNamePrefix:e.verticalAlignClasses??"",options:["top","center","bottom"].map((e=>({value:e,label:C(be.A["center"===e?"alignmentCenter":e]),iconPath:n(32255)(`./text-align-vertical-${e}.svg`)}))),onChange:e=>i({modification:{verticalAlign:e}}),disabled:S})]}):null]})})})),$g=u.forwardRef(((e,t)=>{let{item:n,state:r,fontFamily:o,itemComponentProps:i,width:a}=e;return(0,ee.jsx)(pe.A,{is:"div",className:p()(xc().item,{[xc().isSelected]:r?.includes("selected")||r?.includes("focused")}),name:n?.value??n?.label,style:{fontFamily:o,width:a},ref:t,...i,children:n?.label})})),Hg=e=>{let{item:t,state:n,itemComponentProps:r}=e;return(0,ee.jsx)($g,{item:t,state:n,fontFamily:t?.label,itemComponentProps:r})},Ug=(e,t,n,r,o)=>i=>{let{btnComponentProps:a,selectedItem:s}=i;return(0,u.createElement)("button",{...a,ref:a.ref,key:s?.value??s?.label,className:p()("PSPDFKit-Input-Dropdown-Button",xc().selectBox,n.selectBox,{[vc().isDisabled]:r,[n.controlIsDisabled]:r,[xc().disabled]:r}),style:{width:e},disabled:r},(0,ee.jsx)("span",{className:o,children:s?.label}),(0,ee.jsx)("div",{children:(0,we.A)({type:`caret-${t}`,style:{width:12,height:12,flexBasis:12},className:p()(xc().dropdownIcon)})}))},qg=os.ex,Wg=e=>{const t=(0,he.tz)(),{formatMessage:r}=t,o=(0,s.wA)(),{frameWindow:i,position:a,viewportWidth:l,creationMode:c}=e,d=(0,s.d4)(Ka.Ay),{handleGroupExpansion:h,handleEntered:f,expandedGroup:m,prevActiveGroup:g,btnFocusRef:v}=(0,yr.s_)(),y=(0,s.d4)(Ka.wI),b=(0,s.d4)((e=>e.contentEditorSession.textBlockInteractionState.state)),w=(0,s.d4)((e=>e.contentEditorSession.dirty)),x=null===y||b!==Ka.mS.Active;u.useEffect((()=>{d.faceList||d.loading||o(Dh.iK)}),[d.faceList,d.loading,o]);const S=[...(d.faceList||[new Ka.h2({family:""})]).map((e=>({label:e.family,value:e.family})))],_=u.useCallback((e=>{let{modification:t,preventFocusShift:n=!1}=e;const[[r,i]]=Object.entries(t);switch(r){case"fontSize":o((0,Dh.oi)({size:i})),n||Th.dispatch("content-editing:re-focus",null);break;case"font":o((0,Dh.oi)({family:i})),n||Th.dispatch("content-editing:re-focus",null);break;case"bold":o((0,Dh.oi)({bold:i})),n||Th.dispatch("content-editing:re-focus",null);break;case"italic":o((0,Dh.oi)({italic:i})),n||Th.dispatch("content-editing:re-focus",null)}}),[o]),C=u.useCallback((()=>o((0,Dh.CY)(c?Ka.g3.Edit:Ka.g3.Create))),[o,c]),E=u.useCallback((()=>{o((0,Dh.CY)(Ka.g3.Delete))}),[o]),z=y?(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?k.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:k.Q1.fromHex(o),size:i}})(y):null,P=z?.family??void 0,A=z?.size??void 0,D=z?.bold,T=z?.italic;let I=null;if(null!=z?.color){const e=z.color;I=Ye.JY.COLOR_PRESETS.find((t=>t.color?.equals(e)))??{color:e,localization:be.A.color}}const M=Boolean(y?.detectedStyle.selectionStyleInfo&&null==I),N={"text-color":{node:(0,ee.jsx)(Mg.A,{onChange:e=>{e&&o((0,Dh.oi)({color:e.color?.toHex()})),Th.dispatch("content-editing:re-focus",null)},styles:Ig(),value:I??(M?null:Ye.JY.COLOR_PRESETS.find((e=>e.color===k.Q1.BLACK))??null),caretDirection:"down",className:"PSPDFKit-Content-Editing-Toolbar-Font-Color",menuClassName:"PSPDFKit-Content-Editing-Toolbar-Font-Color-Menu",removeTransparent:!0,frameWindow:i,colors:Ye.JY.COLOR_PRESETS,innerRef:du("text-color",m)?v:void 0,unavailableItemFallback:M?{type:"label",label:""}:{type:"swatch"},disabled:x,accessibilityLabel:r(be.A.color)}),title:r(be.A.color)},font:{node:(0,ee.jsx)(Kg,{onChange:_,caretDirection:"down",frameWindow:i,intl:t,styles:Ig(),fontSizes:qg,fontFamilyItems:S,showAlignmentOptions:!1,showFontStyleOptions:!0,currentFontFamily:P,currentFontSize:A,isBold:D,isItalic:T,fontFamilyClasses:"PSPDFKit-Content-Editing-Toolbar-Font-Family",fontFamilyMenuClasses:"PSPDFKit-Content-Editing-Toolbar-Font-Family-Menu",fontSizeClasses:"PSPDFKit-Content-Editing-Toolbar-Font-Size",fontSizeMenuClasses:"PSPDFKit-Content-Editing-Toolbar-Font-Size-Menu",horizontalAlignClasses:"PSPDFKit-Content-Editing-Toolbar-Alignment",verticalAlignClasses:"PSPDFKit-Content-Editing-Toolbar-Vertical-Alignment",disabled:x,ref:du("font",m)?v:void 0}),title:r(be.A.font)}};return(0,ee.jsx)("div",{className:p()("PSPDFKit-Content-Editing-Toolbar",Ig().root,{[Ig().stickToBottom]:"bottom"===a}),children:(0,ee.jsx)("div",{className:Ig().content,children:m?(0,ee.jsx)("div",{className:Ig().right,children:(0,ee.jsx)(ou,{position:a,onClose:()=>h(null),isPrimary:!1,onEntered:f,intl:t,className:Ig().expanded,children:m?N[m].node:void 0})}):(0,ee.jsxs)("form",{className:Ig().form,onSubmit:Yn.wo,children:[(0,ee.jsxs)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:[(0,ee.jsx)("div",{className:p()(Ig().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-Add-Text"),children:(0,ee.jsx)(Kc,{type:"add-text-box",icon:n(41278),title:r(Gg.addTextBox),className:p()("PSPDFKit-Content-Editing-Toolbar-Add-Text-Box",Ig().iconButton,{[Ig().iconButtonActive]:c}),onPress:C,selected:c})}),(0,ee.jsxs)("div",{className:p()(Ig().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-TextColor"),children:[(0,ee.jsx)(Kc,{type:"text-color",title:N["text-color"].title,className:Ig().button,onPress:()=>h("text-color"),disabled:Boolean(m)||x,presentational:l>xe.eV,ref:pu("text-color",m,g)?v:void 0}),N["text-color"].node]}),(0,ee.jsxs)("div",{className:p()(Ig().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-Font"),children:[(0,ee.jsx)(Kc,{type:"font",title:N.font.title,className:Ig().button,onPress:()=>h("font"),disabled:x,presentational:l>xe.eV,ref:pu("font",m,g)?v:void 0}),N.font.node]})]}),(0,ee.jsx)("div",{className:"PSPDFKit-Toolbar-Spacer",style:{display:"flex",flex:1}}),l>=xe.eV?(0,ee.jsxs)("div",{className:Ig().buttonContainer,children:[(0,ee.jsx)(Kc,{type:"delete",title:t.formatMessage(be.A.delete),className:p()("PSPDFKit-Content-Editor-Toolbar-Button-Delete",Ig().iconButton),onPress:E,disabled:!y}),(0,ee.jsx)("button",{className:Ig().contentEditorButton,type:"button",onClick:()=>o(Dh.hi),title:t.formatMessage(be.A.cancel),children:(0,ee.jsx)("span",{children:t.formatMessage(be.A.cancel)})}),(0,ee.jsx)("button",{className:p()(Ig().contentEditorButton,Ig().saveButton,{[Ig().disabledButton]:!w}),type:"button",onClick:()=>o(Dh.aU),title:t.formatMessage(be.A.saveAndClose),disabled:!w,children:(0,ee.jsx)("span",{children:t.formatMessage(be.A.saveAndClose)})})]}):(0,ee.jsxs)(ee.Fragment,{children:[(0,ee.jsx)(Kc,{type:"delete",title:t.formatMessage(be.A.delete),className:p()("PSPDFKit-Content-Editor-Toolbar-Button-Delete",Ig().iconButton),onPress:E,disabled:!y}),(0,ee.jsx)(Kc,{type:"close",title:t.formatMessage(be.A.close),className:Ig().button,onPress:()=>{o(w?(0,Dh.Lm)(!0):Dh.hi)}})]})]})})})},Gg=(0,he.YK)({addTextBox:{id:"addTextBox",defaultMessage:"Add Text Box",description:"Label for the add text box button"}});var Yg,Zg,Jg,Xg=n(83176),Qg=n(9926),ev=n(51467),tv=n(59924),nv=n(47010),rv=n.n(nv);function ov(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}const iv={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},av=(0,fe.CN)(),sv=u.memo((function(e){let{position:t}=e;const{formatMessage:n}=(0,he.tz)(),[r,o]=(0,yr.YU)(),[i,a]=(0,yr.I_)(),s=(0,yr.Kw)((()=>{(0,c.unstable_batchedUpdates)((()=>{a([]),d===tv.w.result&&h(tv.w.documentA)}))})),[l,u]=(0,yr.e2)(),d=(0,ev.Ut)(l),h=(0,yr.Kw)((e=>{e!==d&&u(e||tv.w.result)})),f=()=>{(0,c.unstable_batchedUpdates)((()=>{a([]),o(!1),h(tv.w.documentA)}))},[,m]=(0,yr.eR)(),g=(0,yr.Kw)((()=>{s(),h(tv.w.documentA),m(!1)}));return(0,ee.jsx)("div",{className:p()(rv().root,{"PSPDFKit-DocumentComparison-Toolbar":!0,[rv().stickToBottom]:"bottom"===t}),onMouseUp:ov,onTouchEnd:ov,onPointerUp:ov,children:(0,ee.jsx)("div",{className:rv().content,children:(0,ee.jsx)("div",{className:rv().left,children:(0,ee.jsxs)("form",{className:rv().form,onSubmit:Yn.wo,children:[(0,ee.jsxs)("div",{className:rv().tabsContainer,children:[(0,ee.jsxs)("div",{className:p()(rv().documentTab,{[rv().documentTabActive]:d===tv.w.documentA,[rv().autoCompareTab]:r,[rv().mobileTab]:av}),onPointerUp:()=>h(tv.w.documentA),onTouchEnd:()=>h(tv.w.documentA),children:[(0,ee.jsx)("span",{className:p()(rv().documentText,{[rv().mobileText]:!!av,[rv().documentTabActiveText]:d===tv.w.documentA}),children:n(av?Qg.messages.Comparison_documentOldTouch:Qg.messages.Comparison_documentOld)}),!r&&i.length<3&&(0,ee.jsx)(lv,{referencePoints:i,startIndex:0,styles:rv(),touchDevice:av}),!r&&i.length>=3&&(0,ee.jsx)("span",{className:p()([rv().toolbarReferencePoints,rv().toolbarReferencePointsSet]),children:(0,ee.jsx)("div",{className:rv().toolbarReferencePoint,children:(0,ee.jsxs)("svg",{...iv,className:rv().documentCheckMark,children:[Yg||(Yg=(0,ee.jsx)("circle",{cx:"10",cy:"10",r:"10"})),uv]})})})]}),(0,ee.jsxs)("div",{className:p()(rv().documentTab,{[rv().documentTabActive]:d===tv.w.documentB,[rv().autoCompareTab]:r,[rv().mobileTab]:av}),onPointerUp:()=>h(tv.w.documentB),onTouchEnd:()=>h(tv.w.documentB),children:[(0,ee.jsx)("span",{className:p()(rv().documentText,{[rv().mobileText]:!!av,[rv().documentTabActiveText]:d===tv.w.documentB}),children:n(av?Qg.messages.Comparison_documentNewTouch:Qg.messages.Comparison_documentNew)}),!r&&i.length<6&&(0,ee.jsx)(lv,{referencePoints:i,startIndex:3,styles:rv(),touchDevice:av}),!r&&6===i.length&&(0,ee.jsx)("span",{className:p()([rv().toolbarReferencePoints,rv().toolbarReferencePointsSet]),children:(0,ee.jsx)("div",{className:rv().toolbarReferencePoint,children:(0,ee.jsxs)("svg",{...iv,className:rv().documentCheckMark,children:[Zg||(Zg=(0,ee.jsx)("circle",{cx:"10",cy:"10",r:"10"})),uv]})})})]}),(r||6===i.length)&&(0,ee.jsx)("div",{className:p()(rv().documentTab,rv().resultTab,{[rv().documentTabActive]:d===tv.w.result,[rv().autoCompareTab]:r}),onPointerUp:()=>h(null),onTouchEnd:()=>h(null),children:(0,ee.jsx)("span",{className:p()(rv().documentText,{[rv().mobileText]:!!av,[rv().documentTabActiveText]:d===tv.w.result}),children:n(Qg.messages.Comparison_result)})})]}),(0,ee.jsxs)("div",{className:rv().controlButtonContainer,children:[!r&&i.length>0&&(0,ee.jsx)("div",{className:p()(rv().buttonReset,rv().buttonResetActive,{[rv().mobileButton]:av}),onPointerUp:g,onTouchEnd:g,children:n(Qg.messages.Comparison_resetButton)}),r&&(0,ee.jsx)("div",{className:p()({[rv().buttonAlignDocuments]:!0,[rv().mobileButton]:av}),onPointerUp:f,onTouchEnd:f,children:n(av?Qg.messages.Comparison_alignButtonTouch:Qg.messages.Comparison_alignButton)})]})]})})})})}));const lv=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,ee.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,ee.jsxs)("div",{className:p()(t.referencePointParent,"PSPDFKit-DocumentComparison-ReferencePoint-State",`PSPDFKit-DocumentComparison-ReferencePoint-State-${(0,Zt.ZH)(a)}`),children:[o>0?(0,ee.jsx)("div",{className:t.separator}):null,(0,ee.jsx)("div",{className:t.toolbarReferencePoint,children:(0,ee.jsxs)("svg",{...iv,className:t[cv[a]],children:[Jg||(Jg=(0,ee.jsx)("circle",{cx:"10",cy:"10",r:"10"})),e?uv:(0,ee.jsx)(dv,{children:o+1})]})})]},`point_${o+r}`)}))})},cv={set:"checkMark",current:"referencePointSet",empty:"referencePoint"},uv=(0,ee.jsx)("path",{d:"M5.45508 10.1125L8.53758 12.94L14.5451 6.25",strokeWidth:"1.875",strokeMiterlimit:"10",strokeLinecap:"round"}),dv=e=>{let{children:t}=e;return(0,ee.jsx)("text",{x:"10",y:"11",textAnchor:"middle",dominantBaseline:"middle",dy:"",children:t})};var pv=n(98238),hv=n.n(pv),fv=n(91897),mv=n.n(fv),gv=n(49118);const vv=[{interactionMode:F.O.BUTTON_WIDGET,icon:"form-button",title:"Create Button Widget",className:"PSPDFKit-Form-Creator-Toolbar-ButtonWidget"},{interactionMode:F.O.TEXT_WIDGET,icon:"form-text",title:"Create Text Widget",className:"PSPDFKit-Form-Creator-Toolbar-TextWidget"},{interactionMode:F.O.RADIO_BUTTON_WIDGET,icon:"form-radio",title:"Create Radio Widget",className:"PSPDFKit-Form-Creator-Toolbar-RadioWidget"},{interactionMode:F.O.CHECKBOX_WIDGET,icon:"form-checkbox",title:"Create Checkbox Widget",className:"PSPDFKit-Form-Creator-Toolbar-CheckboxWidget"},{interactionMode:F.O.COMBO_BOX_WIDGET,icon:"form-combobox",title:"Create Combobox widget",className:"PSPDFKit-Form-Creator-Toolbar-ComboboxWidget"},{interactionMode:F.O.LIST_BOX_WIDGET,icon:"form-listbox",title:"Create List Box Widget",className:"PSPDFKit-Form-Creator-Toolbar-ListBoxWidget"},{interactionMode:F.O.SIGNATURE_WIDGET,icon:"form-signature",title:"Create Signature Widget",className:"PSPDFKit-Form-Creator-Toolbar-SignatureWidget"},{interactionMode:F.O.DATE_WIDGET,icon:"form-date",title:"Create Date Widget",className:"PSPDFKit-Form-Creator-Toolbar-DateWidget"}];var yv=n(1559);const bv=e=>{let{position:t,dispatch:n,interactionMode:r,frameWindow:o,modalClosurePreventionError:i,selectedAnnotation:a}=e;return u.useEffect((()=>{function e(e){"Escape"!==e.key||i&&i?.error===yv.K.FORM_DESIGNER_ERROR||a||n((0,Pt.Fl)())}return o.document.addEventListener("keydown",e),()=>{o.document.removeEventListener("keydown",e)}}),[n,i,a]),(0,ee.jsxs)("div",{className:p()("PSPDFKit-Form-Creator-Toolbar",Yc().root,Ju().formDesignerContainer,{[Yc().stickToBottom]:"bottom"===t}),onMouseUp:Dg,onTouchEnd:Dg,onPointerUp:Dg,children:[(0,ee.jsx)("div",{children:vv.map((e=>(0,ee.jsx)(Vc,{type:e.icon,title:e.title,className:p()(Ju().formDesignerButton,{[Ju().formDesignerButtonActive]:r===e.interactionMode},e.className),onPress:()=>{r===e.interactionMode?n((0,En.SM)()):(n((0,En.Lg)()),n((0,Pt.uT)(e.interactionMode)))},selected:r===e.interactionMode},e.interactionMode)))}),(0,ee.jsx)("div",{className:Ju().spacer})]})};var wv=n(67992),xv=n(57394),Sv=n(86918),_v=n(11559),Cv=n.n(_v);function Ev(e){let{btnComponentProps:t,selectedItem:n}=e;return(0,ee.jsxs)(pe.A,{is:"div",...t,className:p()("PSPDFKit-Input-Dropdown-Button ",xc().selectBox,Cv().selectBox),style:{minWidth:"100px"},children:[(0,ee.jsx)("span",{children:n?.label}),(0,ee.jsx)("div",{children:(0,we.A)({type:"caret-down",style:{width:12,height:12,flexBasis:12},className:p()(xc().dropdownIcon)})})]})}function kv(e){let{item:t,state:n,itemComponentProps:r}=e;return(0,ee.jsx)(pe.A,{is:"div",className:p()(xc().item,{[xc().isSelected]:n?.includes("selected")||n?.includes("focused")}),name:t?.value,...r,children:t?.label})}function zv(e,t){return e.horizontalAlign?e.horizontalAlign:t instanceof k.$h?"center":"left"}function Pv(e,t){return e.verticalAlign?e.verticalAlign:t instanceof k.$h?"center":t instanceof k.uS&&t.multiLine?"top":"center"}const Av=(0,he.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"}}),Dv=function(e){let{annotation:t,updateAnnotation:r,intl:i,frameWindow:a,formField:s,customFontsReadableNames:l}=e;const c=ca.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&&!ca.iL.has(t.font||"")&&!l.some((e=>e===t.font))&&""!==t.font.trim()){const e=i.formatMessage(be.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,ee.jsxs)(Sv.q,{title:i.formatMessage(Av.textStyle),children:[(0,ee.jsxs)("div",{className:Cv().item,children:[(0,ee.jsx)(Ae.A,{src:n(87198),className:Cv().itemIcon,role:"presentation"}),(0,ee.jsx)("div",{className:Cv().itemLabel,children:i.formatMessage(be.A.font)}),(0,ee.jsx)("div",{className:Cv().nativeDropdown,children:(0,ee.jsx)("select",{"aria-label":i.formatMessage(be.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,ee.jsx)("option",{value:e.value,disabled:e.disabled,children:e.label},e.value)))})}),(0,ee.jsx)(mc.A,{items:d,value:{label:t.font??d[0].label,value:t.font??d[0].value},accessibilityLabel:i.formatMessage(be.A.font),discreteDropdown:!1,isActive:!1,caretDirection:"down",className:Cv().dropdownGroupComponent,menuClassName:Cv().dropdownGroupMenu,ButtonComponent:Ev,ItemComponent:kv,onSelect:(e,t)=>{void 0!==t.value&&r({font:t.value})},frameWindow:a})]}),(0,ee.jsxs)("div",{className:Cv().item,children:[(0,ee.jsx)(Ae.A,{src:n(67572),className:Cv().itemIcon,role:"presentation"}),(0,ee.jsx)("div",{className:Cv().itemLabel,children:i.formatMessage(Av.fontSize)}),(0,ee.jsx)("div",{className:Cv().nativeDropdown,children:(0,ee.jsx)("select",{"aria-label":i.formatMessage(Av.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,ee.jsx)("option",{value:e.value,disabled:e.disabled,children:e.label},e.value)))})}),(0,ee.jsx)(mc.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(Av.fontSize),discreteDropdown:!1,isActive:!1,caretDirection:"down",className:Cv().dropdownGroupComponent,menuClassName:Cv().dropdownGroupMenu,ButtonComponent:Ev,ItemComponent:kv,onSelect:(e,t)=>{null==t.value||"auto"!==t.value&&isNaN(t.value)||r({fontSize:t.value})},frameWindow:a})]}),(0,ee.jsxs)("div",{className:Cv().item,children:[(0,ee.jsx)(Ae.A,{src:n(90312),className:Cv().itemIcon,role:"presentation"}),(0,ee.jsx)("div",{className:Cv().itemLabel,children:i.formatMessage(be.A.color)}),(0,ee.jsx)($c.A,{record:t,onChange:r,styles:{...Yc(),colorSvg:Cv().colorSvg,colorItem:Cv().colorItem,dropdownMenu:Cv().colorDropdownMenu,controlWrapper:{...Yc().controlWrapper,width:"auto"}},accessibilityLabel:i.formatMessage(be.A.fillColor),caretDirection:"down",colorProperty:"fontColor",frameWindow:a,className:Cv().colorDropdown})]}),(0,ee.jsxs)("div",{className:Cv().item,children:[(0,ee.jsx)(Ae.A,{src:n(80209),className:Cv().itemIcon,role:"presentation"}),(0,ee.jsx)("div",{className:Cv().itemLabel,children:i.formatMessage(be.A.horizontalAlignment)}),(0,ee.jsx)(o.z6,{inputName:"horizontalAlign",label:i.formatMessage(be.A.horizontalAlignment),selectedOption:zv(t,s),labelClassNamePrefix:"PSPDFKit-Form-Creator-Editor-Horizontal-Alignment",options:["left","center","right"].map((e=>({value:e,label:i.formatMessage(be.A[`alignment${(0,Zt.ZH)(e)}`]),iconPath:n(77809)(`./text-align-horizontal-${e}.svg`)}))),onChange:h})]}),!(s instanceof k.O2)&&(0,ee.jsxs)("div",{className:Cv().item,children:[(0,ee.jsx)(Ae.A,{src:n(52869),className:Cv().itemIcon,role:"presentation"}),(0,ee.jsx)("div",{className:Cv().itemLabel,children:i.formatMessage(be.A.verticalAlignment)}),(0,ee.jsx)(o.z6,{inputName:"verticalAlign",label:i.formatMessage(be.A.verticalAlignment),selectedOption:Pv(t,s),labelClassNamePrefix:"PSPDFKit-Form-Creator-Editor-Vertical-Alignment",options:["top","center","bottom"].map((e=>({value:e,label:i.formatMessage(be.A["center"===e?"alignmentCenter":e]),iconPath:n(32255)(`./text-align-vertical-${e}.svg`)}))),onChange:f})]})]})};var Tv=n(65615),Iv=n.n(Tv);function Mv(e){let{label:t,errorMessage:n,inputClassName:r,className:i,disablePadding:a,...s}=e;return(0,ee.jsxs)("div",{className:p()(!a&&Iv().wrapper,i),children:[(0,ee.jsxs)("label",{className:p()(Iv().label,"PSPDFKit-Form-Creator-Editor-Text-Input-Label"),children:[t,s.required&&"*",(0,ee.jsx)(o.ks,{...s,className:p()(Iv().input,{[Iv().inputError]:!!n},r)})]}),n&&(0,ee.jsx)("span",{className:Iv().errorLabel,children:n})]})}var Nv=n(51640);const Ov=(0,he.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"}}),jv=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(Ov.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,yr.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,ee.jsx)("div",{className:"PSPDFKit-Form-Creator-Editor-Advanved-Section",children:(0,ee.jsxs)(Sv.q,{title:t.formatMessage(Ov.advanced),children:[(0,ee.jsx)(Mv,{label:t.formatMessage(Ov.creatorName),value:n.creatorName||"",onChange:p}),(0,ee.jsx)(Mv,{label:t.formatMessage(Ov.note),value:n.note||"",onChange:h}),(0,ee.jsx)(Mv,{label:t.formatMessage(Ov.customData),value:l.value,onChange:f,onBlur:m,errorMessage:l.error,className:Cv().lastInputField}),(0,ee.jsxs)("div",{className:Cv().advancedItem,children:[(0,ee.jsx)("div",{className:Cv().advancedItemLabel,children:t.formatMessage(Ov.required)}),(0,ee.jsx)(Nv.M,{value:!!o?.required,onUpdate:g,accessibilityLabel:t.formatMessage(Ov.required)})]}),(0,ee.jsxs)("div",{className:Cv().advancedItem,children:[(0,ee.jsx)("div",{className:Cv().advancedItemLabel,children:t.formatMessage(Ov.readOnly)}),(0,ee.jsx)(Nv.M,{value:!!o?.readOnly,onUpdate:v,accessibilityLabel:t.formatMessage(Ov.readOnly)})]}),o instanceof k.G_&&(0,ee.jsxs)("div",{className:Cv().advancedItem,children:[(0,ee.jsx)("div",{className:Cv().advancedItemLabel,children:t.formatMessage(Ov.multiSelect)}),(0,ee.jsx)(Nv.M,{value:!!o?.multiSelect,onUpdate:y,accessibilityLabel:t.formatMessage(Ov.multiSelect)})]}),o instanceof k.uS&&(0,ee.jsxs)("div",{className:Cv().advancedItem,children:[(0,ee.jsx)("div",{className:Cv().advancedItemLabel,children:t.formatMessage(Ov.multiLine)}),(0,ee.jsx)(Nv.M,{value:!!o?.multiLine,onUpdate:b,accessibilityLabel:t.formatMessage(Ov.multiLine)})]}),(0,ee.jsxs)("div",{className:Cv().advancedItem,children:[(0,ee.jsx)("div",{className:Cv().advancedItemLabel,children:"ID"}),(0,ee.jsx)("div",{className:Cv().advancedItemValue,children:n.id})]}),(0,ee.jsxs)("div",{className:Cv().advancedItem,children:[(0,ee.jsx)("div",{className:Cv().advancedItemLabel,children:t.formatMessage(Ov.createdAt)}),(0,ee.jsx)("div",{className:Cv().advancedItemValue,children:n.createdAt.toLocaleDateString(a)})]}),(0,ee.jsxs)("div",{className:Cv().advancedItem,children:[(0,ee.jsx)("div",{className:Cv().advancedItemLabel,children:t.formatMessage(Ov.updatedAt)}),(0,ee.jsx)("div",{className:Cv().advancedItemValue,children:n.updatedAt.toLocaleDateString(a)})]})]})})};var Rv=n(50749),Fv=n(57141),Bv=n(51587),Lv=n.n(Bv);const Vv=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),Kv=(e,t)=>{const n=e.getClientOffset();if(null===n)return null;if(!t.current||!t.current.getBoundingClientRect)return Vv(n,(e=>{const t=e.getInitialClientOffset(),n=e.getInitialSourceClientOffset();return null===t||null===n?{x:0,y:0}:Vv(t,n)})(e));const r=t.current.getBoundingClientRect(),o={x:r.width/2,y:r.height/2};return Vv(n,o)},$v=e=>{const t="translate(".concat(e.x.toFixed(1),"px, ").concat(e.y.toFixed(1),"px)");return{pointerEvents:"none",position:"fixed",top:0,left:0,transform:t,WebkitTransform:t}},Hv=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,Rv.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}=(()=>{const e=(0,u.useRef)(null),t=(0,Rv.V7)((t=>({currentOffset:Kv(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:$v(t.currentOffset),monitor:t.monitor,ref:e}:{display:!1}})(),[{isDragging:m,id:g},v]=(0,Rv.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,ee.jsxs)("div",{style:e?{...f,width:332}:{opacity:y},className:p()(Lv().option,{[Lv().preview]:e}),ref:e?void 0:l,children:[(0,ee.jsx)("button",{type:"button",className:Lv().hamburger,...e?void 0:{ref:s,"data-handler-id":c},children:(0,ee.jsx)(Ae.A,{src:n(98614),role:"presentation"})}),(0,ee.jsx)("div",{className:Lv().optionContent,children:i.label}),(0,ee.jsx)("button",{className:p()(Lv().button,Lv().deleteButton),type:"button",onClick:()=>a(r),children:(0,ee.jsx)(Ae.A,{src:n(95072),className:p()(Lv().icon,Lv().deleteIcon),role:"presentation"})})]});return(0,ee.jsxs)(ee.Fragment,{children:[b(!1),h&&g===t&&b(!0)]})};const Uv=(0,he.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"}}),qv=(0,he.j4)((function(e){let{intl:t,options:n,onChange:r,ownerDocument:o}=e;const{formatMessage:i}=t,[a,s]=u.useState(!0);return(0,ee.jsx)(Rv.QP,{backend:Fv.TouchBackend,options:{enableMouseEvents:!0,delayTouchStart:500,touchSlop:10,ignoreContextMenu:!0,ownerDocument:o},children:(0,ee.jsxs)("form",{className:Lv().wrapper,onSubmit:e=>{e.preventDefault();const t=e.target,{value:o}=t.newOption;o?(t.reset(),r(n.push(new k._B({value:o,label:o})))):s(!1)},children:[(0,ee.jsx)("div",{className:Lv().title,children:i(Uv.options)}),(0,ee.jsxs)("div",{children:[n.map(((e,t)=>(0,ee.jsx)(Hv,{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,ee.jsx)("div",{className:p()(Lv().option,Lv().addOptionInputWrapper,{[Lv().addOptionInputWrapperInvalid]:!a}),children:(0,ee.jsx)("input",{autoFocus:!0,className:p()(Lv().optionContent,Lv().addOptionInput),name:"newOption",type:"text",placeholder:i(Uv.enterDescriptionHere),onBlur:()=>s(!0),onChange:e=>{!a&&e.target.value.trim()&&s(!0)}})})]}),!a&&(0,ee.jsx)("div",{className:Lv().invalidOptionInput,children:t.formatMessage(Uv.emptyInput)}),(0,ee.jsx)("button",{className:p()(Lv().button,Lv().addOptionButton),type:"submit",children:i(Uv.addOption)})]})})}));var Wv,Gv,Yv,Zv,Jv;function Xv(e,t){return t?be.A.dateField:e instanceof k.$h?be.A.button:e instanceof k.uS?be.A.textField:e instanceof k.Qk?be.A.radioField:e instanceof k.av?be.A.checkboxField:e instanceof k.sh?be.A.comboBoxField:e instanceof k.O2?be.A.listBoxField:be.A.signatureField}const Qv=(0,he.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"}}),ey=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,he.tz)(),S=(0,u.useMemo)((()=>{if(d instanceof k.Qk||d instanceof k.av)return d.annotationIds.findIndex((0,R.iT)(c))}),[d,c]),[_,C]=(0,u.useState)(d.name),[E,z]=(0,u.useState)(),[P,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:J.x.PROPERTY_CHANGE};f.emit("annotations.willChange",n),s((0,at.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,En.rl)(t));const n=i(_);if(!n){const e=d.annotationIds.map((()=>(0,R.K1)()));s((0,En.vM)(t.set("name",d.name),_,e));const n=d.annotationIds.findIndex((0,R.iT)(c)),r=e.get(n);return(0,l.V1)(r),s((0,ve.WS)((0,a.NZ)([r]))),void s((0,En.jE)(d))}t=t.set("name",_);const r=c.merge({id:(0,R.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,at.Xs)(r)),s((0,En.rl)(t)),s((0,ve.WS)((0,a.NZ)([r.id]))),s((0,En.jE)(d))}),[d,s,_,c,i,S]);(0,Yt.useGranularEffect)((()=>{C(d.name),z(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 k.Qk?(z(void 0),P||v(null)):(z(x.formatMessage(Qv.formFieldNameExists,{formFieldName:t})),v({annotationId:c.id,error:yv.K.FORM_DESIGNER_ERROR})):(z(x.formatMessage(Qv.formFieldNameNotEmpty)),v({annotationId:c.id,error:yv.K.FORM_DESIGNER_ERROR}))}),[x,c,d,i,v,P]),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]),j=u.useCallback((e=>{A(e),e?v({annotationId:c.id,error:yv.K.FORM_DESIGNER_ERROR}):y&&!E&&v(null)}),[v,y,E,c]),F=(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]),B=u.useMemo((()=>d instanceof k.$h?(0,ee.jsx)(Mv,{label:x.formatMessage(Qv.buttonText),value:d?.buttonLabel||"",onChange:M,className:Cv().lastInputField}):d instanceof k.Qk?((0,l.V1)(void 0!==S),(0,ee.jsxs)(ee.Fragment,{children:[(0,ee.jsxs)("div",{className:Cv().radioButtonWarning,children:[(0,ee.jsx)(Ae.A,{src:n(33335),role:"presentation",className:Cv().radioButtonWarningIcon,style:{color:"#EB7F00"}}),(0,ee.jsx)("span",{className:Cv().radioButtonWarningLabel,children:x.formatMessage(Qv.radioButtonFormFieldNameWarning)})]}),(0,ee.jsx)(Mv,{label:x.formatMessage(Qv.label),value:d?.options.get(S)?.label||"",onChange:O,required:!0}),(0,ee.jsx)(Mv,{label:x.formatMessage(Qv.value),value:d?.options.get(S)?.value||"",onChange:F,required:!0,className:Cv().lastInputField})]})):d instanceof k.av?((0,l.V1)(void 0!==S),(0,ee.jsxs)(ee.Fragment,{children:[(0,ee.jsx)(Mv,{label:x.formatMessage(Qv.label),value:d?.options.get(S)?.label||"",onChange:O,required:!0}),(0,ee.jsx)(Mv,{label:x.formatMessage(Qv.value),value:d?.options.get(S)?.value||"",onChange:F,required:!0,className:Cv().lastInputField})]})):d instanceof k.O2||d instanceof k.sh?(0,ee.jsx)(qv,{options:d.options,onChange:N,ownerDocument:h.document}):null),[h.document,d,x,M,N,O,F,S]),L=d instanceof k.uS&&!!c.additionalActions?.onFormat;return(0,ee.jsx)(wv.A,{referenceRect:t,viewportState:r,isHidden:o||!d,className:"PSPDFKit-Form-Creator-Popover",wrapperClassName:"PSPDFKit-Form-Creator-Editor",title:x.formatMessage(Qv.formDesignerPopoverTitle,{formFieldType:d?x.formatMessage(Xv(d,L)):""}),footer:(0,ee.jsxs)(ee.Fragment,{children:[(0,ee.jsx)(wv.O,{className:p()(Cv().footerButton,Cv().deleteButton,"PSPDFKit-Form-Creator-Editor-Delete"),onClick:()=>{v(null),s((0,at.n9)((0,a.NZ)([c.id])))},children:x.formatMessage(be.A.delete)}),(0,ee.jsx)(wv.O,{className:p()(Cv().footerButton,Cv().doneButton,"PSPDFKit-Form-Creator-Editor-Done"),onClick:()=>{y||s((0,ve.J9)())},children:x.formatMessage(be.A.done)})]}),children:(0,ee.jsxs)(ee.Fragment,{children:[(0,ee.jsxs)("div",{className:g?void 0:Cv().formFieldNameReadOnly,children:[(0,ee.jsx)("div",{children:(0,ee.jsx)(Mv,{label:x.formatMessage(Qv.formFieldName),value:_,onChange:I,onKeyDown:e=>e.stopPropagation(),required:!0,errorMessage:E,className:p()({[Cv().lastInputField]:!B&&!L}),inputClassName:"PSPDFKit-Form-Creator-Editor-Form-Field-Name",onBlur:()=>{E||T({name:_})}})}),B]}),L&&(0,ee.jsx)("div",{className:p()(Iv().wrapper,Cv().lastInputField),children:(0,ee.jsxs)("label",{className:Iv().label,htmlFor:"dateTimeFormat",children:["Format",(0,ee.jsx)("div",{className:Iv().formatSelectWrapper,role:"button",children:(0,ee.jsxs)("select",{className:Iv().dateSelect,name:"dateTimeFormat",id:"dateTimeFormat",onChange:e=>{const t=e.target.value;D({additionalActions:{onFormat:new k.ew({script:`AFDate_FormatEx("${t}")`})}})},children:[Wv||(Wv=(0,ee.jsx)("option",{value:"yyyy-mm-dd",children:"yyyy-mm-dd"})),Gv||(Gv=(0,ee.jsx)("option",{value:"mm/dd/yyyy",children:"mm/dd/yyyy"})),Yv||(Yv=(0,ee.jsx)("option",{value:"dd/mm/yyyy",children:"dd/mm/yyyy"})),Zv||(Zv=(0,ee.jsx)("option",{value:"m/d/yyyy HH:MM",children:"m/d/yyyy HH:MM"})),Jv||(Jv=(0,ee.jsx)("option",{value:"d/m/yyyy HH:MM",children:"d/m/yyyy HH:MM"}))]})})]})}),(0,ee.jsx)(xv.Ay,{intl:x,annotation:c,label:x.formatMessage(Qv.styleSectionLabel,{formFieldType:d?x.formatMessage(Xv(d,L)):""}),updateAnnotation:D,frameWindow:h,pageSize:b}),!(d instanceof k.Vw)&&!(d instanceof k.Qk)&&!(d instanceof k.av)&&(0,ee.jsx)(Dv,{intl:x,annotation:c,updateAnnotation:D,frameWindow:h,formField:d,customFontsReadableNames:w}),(0,ee.jsx)(jv,{intl:x,annotation:c,updateAnnotation:D,formField:d,updateFormField:T,locale:m,onCustomDataError:j},c.id)]})})};var ty,ny,ry=n(6273),oy=n.n(ry);const iy=fe.LZ?()=>{const e=(0,s.wA)();return(0,ee.jsx)(o.gJ,{wrapperClass:p()(oy().mobileWrapper,"PSPDFKit-ContentEditor-Exit-Dialog"),formClass:oy().formWrapper,onDismiss:()=>{e((0,Dh.Lm)(!1))},children:ny||(ny=(0,ee.jsx)(ay,{}))})}:()=>{const{formatMessage:e}=(0,he.tz)(),t=(0,s.wA)();return(0,ee.jsx)(uf.A,{role:"alertdialog",background:"rgba(0,0,0,.1)",className:p()(oy().modalRoot,"PSPDFKit-ContentEditor-Exit-Dialog"),accessibilityLabel:e(sy.contentEditorSavePromptAccessibilityLabel),accessibilityDescription:e(sy.contentEditorSavePromptAccessibilityDescription),restoreOnClose:!0,onEscape:()=>{t((0,Dh.Lm)(!1))},children:ty||(ty=(0,ee.jsx)(ay,{}))})},ay=()=>{const{formatMessage:e}=(0,he.tz)(),t=(0,s.wA)();return(0,ee.jsxs)(u.Fragment,{children:[(0,ee.jsxs)(uf.A.Section,{className:p()(oy().dropdownSection,oy().mainSection),children:[(0,ee.jsx)(o.$n,{className:p()(oy().closeButton,"PSPDFKit-ContentEditor-Exit-Dialog-Close-Button"),onClick:()=>{t((0,Dh.Lm)(!1))},"aria-label":e(be.A.close),children:(0,ee.jsx)(Ae.A,{className:oy().closeIcon,src:n(95072)})}),(0,ee.jsxs)("div",{className:p()(oy().container,"PSPDFKit-ContentEditor-Exit-Dialog-Content"),children:[(0,ee.jsx)(Ae.A,{className:oy().warningIcon,src:n(84418)}),(0,ee.jsx)("h2",{className:oy().heading,children:e(sy.contentEditorSavePromptHeading)}),(0,ee.jsx)("p",{className:oy().description,children:e(sy.contentEditorSavePromptMessage)})]})]}),(0,ee.jsx)(uf.A.Section,{className:p()(oy().buttonsGroupSection,oy().dropdownSection),children:(0,ee.jsxs)(o.e2,{className:p()(oy().buttonsGroup,"PSPDFKit-ContentEditor-Exit-Dialog-Buttons"),align:"end",children:[(0,ee.jsx)(o.$n,{autoFocus:!0,onClick:()=>{t(Dh.hi)},className:p()("PSPDFKit-ContentEditor-Exit-Dialog-Button","PSPDFKit-ContentEditor-Exit-Dialog-Button-Discard-Changes",oy().button),children:"Don't Save"}),(0,ee.jsx)(o.$n,{onClick:()=>{t(Dh.aU)},primary:!0,className:p()("PSPDFKit-ContentEditor-Exit-Dialog-Button","PSPDFKit-ContentEditor-Exit-Dialog-Button-Save-Changes",oy().button),children:"Save"})]})})]})},sy=(0,he.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 ly=n(76830),cy=n.n(ly);const uy={uri:"uri",page:"page"},dy="edit",py="hover",hy="open";function fy(e){if(!e.action)return null;const t=e.action;return t instanceof k.tt?t.uri:t.pageIndex+1}function my(e){return(0,ee.jsx)("div",{className:p()(cy().container),children:(0,ee.jsx)("div",{className:cy().innerContainer,children:(0,ee.jsx)("div",{className:cy().content,children:(0,ee.jsx)(gy,{...e})})})})}function gy(e){let{pages:t,dispatch:r,annotation:i}=e;const a=(0,he.tz)(),s=i.action instanceof k.ic,l=i.action instanceof k.tt;let c;s&&(c=i.action),l&&(c=i.action);const d=(0,u.useMemo)((()=>!l&&!s||l?uy.uri:uy.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===uy.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 k.ic({pageIndex:e-1}),n=i.set("action",t);r((0,at.g_)(n))}else b(a.formatMessage(yy.invalidPageNumber));else b(a.formatMessage(yy.invalidPageNumber))}),[i,r,g,x]),_=(0,u.useCallback)((()=>{if(!f)return void b(a.formatMessage(yy.invalidPageLink));const e=new k.tt({uri:f}),t=i.set("action",e);r((0,at.g_)(t))}),[i,r,f]),C=(0,u.useCallback)((()=>{if(w)return(0,ee.jsx)(Mv,{label:a.formatMessage(be.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,ee.jsx)(Mv,{disablePadding:!0,label:a.formatMessage(yy.targetPageLink),value:g,onChange:e=>{v(e.target.value),y&&b("")},onBlur:S,placeholder:"1",errorMessage:y})}),[y,a,w,g,S]);return(0,ee.jsxs)(ee.Fragment,{children:[(0,ee.jsxs)("label",{className:cy().label,children:[a.formatMessage(yy.linkTo),(0,ee.jsx)(o.z6,{inputName:"LinkTo",label:a.formatMessage(be.A.horizontalAlignment),selectedOption:p,labelClassNamePrefix:"PSPDFKit-Link-Popover-Editor-LinkTo",wrapperClasses:cy().radioGroupWrapper,options:Object.keys(uy).map((e=>({value:e,label:a.formatMessage(yy[`${e}Link`]),iconPath:n(9447)}))),onChange:e=>{h(uy[e]),y&&b("")},isButton:!0,showLabel:!0})]}),C(),E()]})}function vy(e){const{viewportState:t,isHidden:n,annotation:r,isHover:i,dispatch:a}=e,s=(0,he.tz)(),[l,c]=(0,u.useState)(!1),d=(0,u.useMemo)((()=>(0,ro.m)({annotation:r,zoomScaledBoundingBox:(0,R.O_)(r,t.pagesRotation,t.viewportRect.getSize(),t.zoomLevel).apply((0,q.zo)(t,r.pageIndex).translate(t.scrollPosition.scale(t.zoomLevel))),viewportSize:t.viewportRect.getSize()})),[r,t]),h=(0,u.useMemo)((()=>r&&i?py:r&&!r.action||l?dy:hy),[r,i,l]),f=r?.action instanceof k.tt,m=(0,u.useMemo)((()=>h===dy?s.formatMessage(yy.linkSettingsPopoverTitle):f?fy(r):`${s.formatMessage(yy.linkToPage,{arg0:fy(r)})}: ${fy(r)}`),[r,h,s]),g=(0,u.useCallback)((t=>{if(t){const e=r.action instanceof k.tt;return(0,ee.jsx)("div",{className:p()(cy().container),children:(0,ee.jsxs)("div",{className:cy().contentRow,children:[(0,ee.jsx)(o.$n,{className:p()("PSPDFKit-Link-Popover-Editor-Edit-Button"),onClick:()=>c(!0),children:s.formatMessage(be.A.edit)}),(0,ee.jsx)(o.$n,{className:p()("PSPDFKit-Link-Popover-Editor-Open-Button"),onClick:()=>{a((0,ve.J9)()),a((0,rr.Wy)(r))},primary:!0,children:s.formatMessage(e?yy.openLink:yy.goToPageLink)})]})})}return(0,ee.jsx)(my,{...e})}),[r,a,s,e]),v=(0,u.useCallback)((()=>{switch(h){case dy:return g();case hy:return g(!0);default:return null}}),[h,g]);return(0,ee.jsx)(wv.A,{referenceRect:d,viewportState:t,isHidden:n,className:"PSPDFKit-Link-Editor-Popover",wrapperClassName:"PSPDFKit-Link-Editor",title:m,centeredTitle:h!==dy,children:v()})}const yy=(0,he.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 by=n(55950),wy=n(89054),xy=n.n(wy);const Sy=function(e){const{referenceRect:t,viewportState:n,activeTextBlock:r,fontFace:o}=e,i=(0,s.wA)(),{formatMessage:a}=(0,he.tz)(),l=(0,s.d4)((e=>e.contentEditorSession.fontMismatchTooltip?.dismissAbortController??null));return(0,ee.jsx)(Lf.A,{referenceRect:t.apply((0,q.zo)(n,r.pageIndex)).translate(n.scrollPosition.scale(n.zoomLevel)),viewportState:n,className:p()(xy().container,"PSPDFKit-Font-Mismatch-Notification-Container"),color:[new k.Q1({r:255,g:199,b:143})],arrowSize:0,arrowClassName:xy().arrow,children:(0,ee.jsx)("div",{className:p()(xy().wrapper,"PSPDFKit-Font-Mismatch-Notification"),onPointerOver:()=>{l&&l.abort()},onPointerLeave:()=>{const e=new AbortController;i((0,Dh.xe)(e)),i((0,Dh.le)(e.signal))},children:(0,ee.jsx)("span",{className:xy().tooltipFont,children:a(Oh.fontMismatch,{arg0:o})})})})},_y=u.memo((function(e){const t=(0,he.tz)(),n=(0,s.wA)(),r=(0,s.d4)((e=>e.selectedGroupId)),{selectedAnnotationIds:o}=e;return(0,ee.jsxs)("div",{className:p()("PSPDFKit-Multi-Annotations-Selection-Toolbar",Yc().root,Yc().content,Yc().reverseRow),children:[(0,ee.jsx)(Kc,{type:"delete",title:t.formatMessage(be.A.delete),className:Yc().button,onPress:()=>{n((0,at.n9)(o))}}),r?null:(0,ee.jsx)(Kc,{type:"group",title:t.formatMessage(be.A.group),className:Yc().button,onPress:()=>{n((0,Pt.vE)(o))}}),r?(0,ee.jsx)(Kc,{type:"ungroup",title:t.formatMessage(be.A.ungroup),className:Yc().button,onPress:()=>{n((0,Pt.g8)(r))}}):null]})}));const Cy=_y,Ey=e=>{const t=(0,s.wA)(),{formatMessage:n}=(0,he.tz)(),{interactionMode:r,currentItemPreset:o,frameWindow:i,backend:a}=e;function l(e,n,i){t((0,ve.J9)()),r===n&&i===o?(0,s.vA)((()=>{t((0,at.iE)(null)),t((0,Pt.NP)())})):(0,s.vA)((()=>{t((0,at.iE)(i)),t((0,Pt.kJ)(e,n))}))}return(0,ee.jsxs)("div",{className:p()("PSPDFKit-Measurement-Toolbar",Yc().root,Yc().content,Yc().measurementToolbar),onMouseUp:Dg,onTouchEnd:Dg,onPointerUp:Dg,children:[D.Kh.map((e=>(0,ee.jsx)(Vc,{type:e.icon,title:n(be.A[e.localeKey]),className:p()(Ju().formDesignerButton,{[Ju().formDesignerButtonActive]:r===e.interactionMode},e.className),onPress:()=>{l(e.class,e.interactionMode,e.preset)},selected:r===e.interactionMode},e.interactionMode))),(0,ee.jsx)("div",{className:Ju().spacer}),(0,ee.jsxs)("div",{className:Yc().right,children:[(0,ee.jsx)(Yu.Ay,{frameWindow:i}),(0,ee.jsx)(Vc,{type:"scale",title:n(ic.DZ.measurementScale),className:p()(Yc().measurementToolbarButton)},"scale"),(0,ee.jsx)(Vc,{type:"calibrate",title:n(ic.DZ.calibrate),className:p()(Ju().formDesignerButton,"PSPDFKit-Scale-Calibration"),onPress:()=>{const e=D.Kh.find((e=>e.interactionMode===F.O.DISTANCE));e&&(t((0,Dt.Qc)(!0)),l(e.class,e.interactionMode,e.preset))}},"calibrate"),"STANDALONE"===a?.type&&(0,ee.jsx)("button",{className:p()(Yc().pointSnappingToggleButtonWrapper,"PSPDFKit-Measurement-Snapping-Toggle"),children:(0,ee.jsx)("div",{className:p()(Yc().pointSnappingToggleButton),children:(0,ee.jsxs)("label",{className:p()(Yc().checkbox),children:[(0,ee.jsx)("input",{type:"checkbox",name:"toggle-point-snapping",checked:!e.disablePointSnapping,onChange:()=>{t((0,Pt.PP)(!e.disablePointSnapping))}}),(0,ee.jsx)("span",{className:Yc().checkboxLabel,children:n(be.A.Snapping)})]})})})]})]})};var ky=n(87515),zy=n(42866),Py=n.n(zy);const Ay=function(e){const{referenceRect:t,viewportState:n,isReadOnly:r,isLocked:o,hasLockedContents:i}=e,{formatMessage:a}=(0,he.tz)(),s=[r?a(be.A.readOnlyAnnotationFlag):"",o?a(be.A.locked):"",i?a(be.A.lockedContents):""].filter((e=>""!==e)).join(", "),l=t.grow(10);return(0,ee.jsx)(Lf.A,{referenceRect:l,viewportState:n,className:"PSPDFKit-Annotation-Flags-Popover",arrowClassName:Py().arrow,children:(0,ee.jsx)("span",{className:Py().tooltip,"aria-label":s,children:s})})},Dy=e=>{let{showComments:t,showRedactions:n,showAIDocumentAssistant: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-document-assistant"}),o};var Ty=n(13800),Iy=n.n(Ty);function My(e){let{text:t,anchorClassName:n,textClassName:r,tag:o}=e;return(0,ee.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,ee.jsxs)(ee.Fragment,{children:[(0,ee.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 Ny(e){const t=u.useCallback((()=>{e.evaluationUrl&&(window.location.href=e.evaluationUrl)}),[e.evaluationUrl]);return(0,ee.jsxs)(uf.A,{role:"alertdialog",restoreOnClose:!1,className:p()("PSPDFKit-NoLicenseTimeout-Dialog",Iy().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,ee.jsxs)(uf.A.Section,{className:Iy().topSection,children:[(0,ee.jsx)(Ae.A,{src:n(30226),className:Iy().icon}),(0,ee.jsx)("h2",{className:Iy().header,children:"Your evaluation period has expired"}),(0,ee.jsx)("hr",{className:Iy().modalSeparator}),(0,ee.jsx)(My,{tag:"p",text:e.evaluationMessage||"",textClassName:Iy().text,anchorClassName:Iy().link})]}),(0,ee.jsx)(uf.A.Section,{className:Iy().bottomSection,children:(0,ee.jsx)(o.$n,{autoFocus:!0,onClick:t,className:p()("PSPDFKit-NoLicenseTimeout-Dialog-Button",Iy().button,Iy().signUpButton),primary:!0,children:"Contact Support"})})]})}var Oy=n(36899),jy=n(92180),Ry=n.n(jy);const Fy=(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,he.tz)(),h=(0,s.wA)(),f=(0,yr.Kw)((e=>{const n=o.find((t=>t instanceof ie.sb&&t.formFieldName===e));(0,me.V)(n),h((0,lc.YQ)(n.pageIndex,n.boundingBox)),t&&h((0,Pt.hP)())})),m=(0,u.useMemo)((()=>o.filter((e=>{if(e instanceof ie.sb){(0,me.V)(n);const t=n.get(e.formFieldName);if(t instanceof Oy.Vw)return!r?.signatures?.some((e=>e.signatureFormFQN===t.name))}return!1})).sortBy((e=>[e.pageIndex,e.boundingBox.top]),ye.l).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,yr.d3)(l,m),v=(0,yr.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,ee.jsxs)("div",{className:p()(Ry().container,"PSPDFKit-Sidebar-Signatures"),role:"region","aria-label":d(be.A.signatures),ref:c,children:[(0,ee.jsx)("div",{className:p()(Ry().header,"PSPDFKit-Sidebar-Header"),children:d(be.A.signatures)}),m.size>0?(0,ee.jsx)("ul",{className:p()(Ry().itemList,"PSPDFKit-Sidebar-Signatures-Container"),children:m.map((e=>{const t=(0,we.A)({type:`${e.type}${"signature"===e.type?`-${e.signature?.signatureValidationStatus}`:""}`,className:p()(Ry().icon,"signature"===e.type?Ry().iconSigned:Ry().iconUnsigned,{[Ry().iconValid]:"signature"===e.type&&"valid"===e.signature?.signatureValidationStatus,[Ry().iconWarning]:"signature"===e.type&&"warning"===e.signature?.signatureValidationStatus,[Ry().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,ee.jsxs)("li",{ref:v?t=>{v&&t&&v(t,e)}:void 0,onClick:()=>{i||f(n)},className:p()(Ry().item,"PSPDFKit-Sidebar-Signatures-Item"),children:[t,(0,ee.jsx)("span",{className:p()(Ry().title,"PSPDFKit-Sidebar-Signatures-Title"),title:r,children:r})]},`${e.type}-${n}`)}))}):(0,ee.jsx)("div",{className:p()(Ry().container,Ry().empty,"PSPDFKit-Sidebar-Empty"),role:"region","aria-label":d(be.A.signatures),children:d(By.noSignatures)})]})})),By=(0,he.YK)({noSignatures:{id:"noSignatures",defaultMessage:"No Signatures",description:"Message shown when there are no signatures"}});function Ly(e){let{onSelectImage:t}=e;const n=u.useCallback((e=>{e&&(e.click(),function(e,t){(0,fe.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,he.tz)();return(0,ee.jsx)(o.s6,{tag:"div",children:(0,ee.jsx)("input",{"aria-label":r(be.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 Vy=n(74373),Ky=(n(19663),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)),$y=(n(46473),n(48602),n(29279),n(18486),n(94825),n(96879),n(72114),n(33939)),Hy=(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)),Uy=n.n(Hy),qy=n(89009),Wy=n(23709),Gy=n.n(Wy);const Yy=n(51630).A,Zy=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,cl.dD)({onPress:()=>{a?.({action:"toggleSelection",key:r})}}),{pressProps:v}=(0,cl.dD)({onPress:()=>{a?.({action:"toggleExpanded",key:r})}}),{pressProps:y}=(0,cl.dD)({onPress:()=>{x||h||C||a?.({action:"toggleVisibility",key:r})}}),{pressProps:b}=(0,cl.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,ee.jsxs)(ee.Fragment,{children:[S?(0,ee.jsx)(Jy,{indentUnit:d,level:1,className:`${f}-TreeItem-Spacer`}):(0,ee.jsx)("div",{role:"button",...b,children:(0,ee.jsx)(Yy,{type:k,className:Uy()(Gy().icon,Gy().iconContainer,`${f}-TreeItem-LockIcon`,`${f}-TreeItem-LockIcon-${k}`,{[Gy().notLocked]:!x&&!h&&!C})})}),E?(0,ee.jsx)("div",{role:"button",...y,children:(0,ee.jsx)(Yy,{type:E,className:Uy()(Gy().icon,Gy().iconContainer,Gy()[`icon-${E}`],`${f}-TreeItem-VisibilityIcon`,`${f}-TreeItem-VisibilityIcon-${E}`,{[Gy().visibilityIconLocked]:(x||h)&&!z})})}):(0,ee.jsx)(Jy,{indentUnit:d,level:1,className:`${f}-TreeItem-Spacer`})]});return(0,ee.jsxs)("div",{className:Uy()(Gy().treeItem,`${f}-TreeItem`,{[Gy().hidden]:z,[Gy().selected]:o,[Gy().locked]:x}),children:[m===qy.C.START&&P,c?(0,ee.jsx)("div",{...v,children:(0,ee.jsx)(Yy,{type:w,className:Uy()(Gy().arrowIcon,Gy().iconContainer,`${f}-TreeItem-ExpandIcon`)})}):(0,ee.jsx)(Jy,{indentUnit:d,level:u}),(0,ee.jsx)("p",{...g,className:Uy()(Gy().treeItem,Gy().visibilityIcon,Gy().title,`${f}-TreeItem-Title`,{[Gy().noOcgId]:S}),style:{width:`calc(100% - ${(u+2)*d}px)`},children:(0,ee.jsx)("span",{className:Gy().textWithOverflowEllipsis,children:n})}),m===qy.C.END&&P]})};function Jy(e){let{level:t,indentUnit:n,className:r}=e;return(0,ee.jsx)("div",{className:Uy()(Gy().noChildrenSpacer,r),style:{width:t*n}})}Zy.displayName="TreeItem";const Xy=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,Ky.Bi)(),g=(0,Vy.H8)();(0,l.V1)(g);const[v,y]=u.useState((0,a.NZ)(o||[])),[b,w]=u.useState(null),{focusWithinProps:x}=(0,cl.Rb)({onFocusWithin:()=>{null===b&&(g.focusFirst(),w(n.items[0].key))}}),{keyboardProps:S}=(0,cl.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,isAncestorLocked:o}=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,ee.jsxs)("li",{className:Uy()(Gy().list,Gy().parentArrow,Gy().treeItemContainer,Gy().itemContentContainer,{[Gy().selected]:l,[Gy().locked]:f}),role:"treeitem","aria-selected":l,tabIndex:0,"data-key":e.key,"aria-expanded":u,"aria-owns":g,children:[(0,ee.jsx)(Zy,{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,ee.jsx)("ul",{className:Uy()(Gy().childRoot,{[Gy().hiddenChildRoot]:!v.has(e.key)}),id:g,role:"group",children:E(e.children,t+1,{isAncestorHidden:!a,isAncestorLocked:f})})]},e.key):(0,ee.jsx)("li",{className:Uy()(Gy().treeItemContainer,Gy().list,Gy().itemWithNoChildren,{[Gy().selected]:l}),role:"treeitem","aria-selected":l,tabIndex:0,"data-key":e.key,"aria-expanded":u,"aria-owns":g,children:(0,ee.jsx)(Zy,{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,ee.jsx)("ul",{...(0,Ky.v6)(S,x,f),role:"tree",ref:t,className:Gy().treeView,children:k})}));Xy.displayName="TreeViewBase";const Qy=u.forwardRef(((e,t)=>{let{items:n,defaultExpandedKeys:r,visibleOCGs:o,lockedOCGs:i,radioGroupsIDs:a,componentClassName:s,...l}=e;const c=(0,$y.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,ee.jsx)(Vy.n1,{children:(0,ee.jsx)(Xy,{...l,defaultExpandedKeys:p,tree:c,visibleOCGs:o,ref:t,radioGroupsIDs:a,lockedOCGs:i,componentClassName:s||"TreeView"})})}));Qy.displayName="TreeView";var eb,tb=n(33785),nb=n.n(tb),rb=n(65473),ob=n.n(rb);function ib(e){const{sidebarOptions:t,setSidebarOptions:n,visibleLayers:r,OCGLayers:o}=e,{lockedLayers:i,iconsAlignment:c}=t,d=(0,s.wA)(),{formatMessage:h}=(0,he.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=>!hb(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=mb(o,Number(a));if(!e)return;const t=f.toArray();if(f.includes(a))if(e&&hb(e)){const t=lb(e,a,f,i);d((0,gs.gp)({visibleLayerIds:t.toArray().map((e=>Number(e)))}))}else{const{currentVisibleOCGs:e}=cb(t,a);d((0,gs.gp)(e));const n=f.delete(a);m(n)}else if(e&&hb(e)){const{currentVisibleOCGs:t,newVisibleOCGs:n}=ub(e,a,f,o);m(n),d((0,gs.gp)(t))}else if(y?.includes(Number(a))){const{currentVisibleOCGs:e,newVisibleOCGs:t}=pb(a,y,f);m(t),d((0,gs.gp)(e))}else{const e=db(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,gs.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,ee.jsx)("div",{className:p()(nb().OCGsContainer,"PSPDFKit-Sidebar-Layers"),children:eb||(eb=(0,ee.jsx)(De.A,{}))});if(0===o.length)return(0,ee.jsx)("div",{className:p()(nb().OCGsContainer,"PSPDFKit-Sidebar-Layers"),children:(0,ee.jsx)("div",{className:p()("PSPDFKit-Sidebar-Layers-Header"),children:(0,ee.jsx)("div",{className:p()(rb.empty,"PSPDFKit-Sidebar-Empty"),children:h(be.A.noLayers)})})});const w=ab(o);return(0,ee.jsxs)("div",{className:p()(nb().OCGsContainer,"PSPDFKit-Sidebar-Layers"),children:[(0,ee.jsx)("div",{className:p()(nb().title,"PSPDFKit-Sidebar-Layers-Header"),children:h(be.A.layers)}),(0,ee.jsx)(Qy,{items:w,visibleOCGs:f,onAction:b,lockedOCGs:g,radioGroupsIDs:y,indentUnit:32,componentClassName:"PSPDFKit-Layers",iconsAlignment:c})]})}const ab=e=>e.map((e=>sb(e)));function sb(e){return{id:e.ocgId?.toString()||`noid-${(0,Pi.A)()}`,title:e.name||"",description:e.name,children:hb(e)?e.layers.map((e=>sb(e))):[]}}const lb=(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())),a=n.filter((e=>!i.includes(e)));return a},cb=(e,t)=>({currentVisibleOCGs:{visibleLayerIds:e.map((e=>Number(e))).filter((e=>e!==Number(t)))}}),ub=(e,t,n,r)=>{const o=e?.layers.map((e=>e.ocgId?.toString())),i=[...o,t],s=(0,a.NZ)([...i,...n,...db(r,Number(t))]);return{currentVisibleOCGs:fb(s),newVisibleOCGs:s}},db=(e,t)=>{if(!e)return[];const n=[];return e.forEach((e=>{hb(e)&&("number"==typeof e.ocgId&&e.layers.some((e=>e.ocgId===t))?n.push(e.ocgId.toString()):n.push(...db(e.layers,t)))})),n},pb=(e,t,n)=>{const r=n.find((e=>t.includes(Number(e)))),o=r?n.add(e).delete(r):n.add(e);return{currentVisibleOCGs:fb(o),newVisibleOCGs:o}};function hb(e){return"layers"in e}const fb=e=>({visibleLayerIds:e.toArray().map((e=>Number(e)))});function mb(e,t){const n=e.find((e=>e.ocgId===t));if(n)return n;for(const n of e)if(hb(n)){const e=mb(n.layers,t);if(e)return e}return null}var gb=n(9945);const vb=e=>{let{onCreate:t,onDelete:n,onCancel:r,storedSignatures:o,setIsSignaturePickerHidden:i}=e;const a=(0,Ky.Bi)(),{formatMessage:l}=(0,he.tz)(),c=(0,s.d4)((e=>e.ui[dl.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 ie.Eo?(0,ee.jsx)(et,{isSelectable:!1,annotation:e,viewBox:e.boundingBox}):(0,ee.jsx)(Xm,{annotation:e,backend:p,label:e.description||l(be.A.imageAnnotation),attachment:e.imageAttachmentId?h.get(e.imageAttachmentId):null,templateWidth:200}),id:e.id||(0,Pi.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,rd.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,rd.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,pl.Q)(dl.Rq.SignaturesList,c,y,d,b)},yb=e=>{let{onCreate:t,preset:n,onCancel:r,colorPresets:o,frameWindow:i,signingFonts:l,hasSignaturesCreationListener:c,creationModes:d}=e;const p=(0,Ky.Bi)(),h=(0,s.wA)(),f=(0,s.d4)((e=>e.ui?.[dl.Rq.CreateSignature])),m=(0,s.d4)((e=>e.instance)),{formatMessage:g}=(0,he.tz)();u.useEffect((()=>{i?.document.fonts&&(0,ca.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===wl.Gs.DRAW){(0,rd.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 E.LL({x:t,y:n,intensity:r})}))))));let o=new ie.Eo({...n,lines:r,isSignature:!0,strokeColor:k.Q1.fromHex(e.color)});o=o.set("boundingBox",(0,Ge.AJ)(o));const i=(0,yo.C)(o,o.boundingBox.getLocation().scale(-1),new E.or(e.canvasSize),new E.bR);t(i,e.shouldStoreSignature,!1)}else if(e.signature?.type===wl.Gs.IMAGE)(0,rd.V1)(e.signature.value,"Signature value is required"),t(e.signature.value,e.shouldStoreSignature,!1);else{const r=new ie.dh({...n,font:e.selectedFont,fontSize:16,text:{format:"plain",value:e.signature?.value||v},fontColor:k.Q1.fromHex(e.color)}),o=await(0,ze.Yr)(r.text.value,{font:r.font,fontColor:r.fontColor},i);h((0,at.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,pl.Q)(dl.Rq.CreateSignature,f,b,m,w)},bb=e=>{let{storedSignatures:t,...n}=e;const[r,o]=u.useState(!1);return!r&&Boolean(t&&t.size>0)?(0,ee.jsx)(vb,{...n,setIsSignaturePickerHidden:o,storedSignatures:t}):(0,ee.jsx)(yb,{...n})};var wb=n(14063);var xb=n(40556);function Sb(e){let{onCancel:t,onCreate:n,dispatch:r,backend:o,stampAnnotationTemplates:i,viewportWidth:a,attachments:l}=e;const c=(0,Ky.Bi)(),d=(0,s.d4)((e=>e.ui[dl.Rq.StampsList])),p=(0,s.d4)((e=>e.instance)),h=function(e){let{stampAnnotationTemplates:t}=e;const n=(0,he.tz)();return(0,u.useMemo)((()=>{const e=t.map((e=>(e instanceof k.xY&&(null==e.title&&(e=e.set("title",(0,_i.AO)({annotation:e,intl:n}))),e.subtitle&&"Custom"===e.stampType||(e=e.set("subtitle",(0,_i.j5)(wb.qm[e.stampType],new Date,n))),void 0!==wb.Rv[e.stampType]&&(e=e.set("stampType",wb.Rv[e.stampType]))),e)));return Object.fromEntries(e.map((e=>[(0,R.K1)(),e])))}),[n,t])}({stampAnnotationTemplates:i}),f=function(e){let{viewportWidth:t,backend:n,attachments:r,annotations:o}=e;const i=(0,he.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,_i.AO)({annotation:a,intl:i}),svgSrc:(0,ee.jsx)("div",{className:(0,nd.UV)({display:"flex",justifyContent:"center",backgroundColor:"background.primary.medium",paddingX:"xl",height:"full",flex:1}),children:(0,ee.jsx)(Xm,{annotation:a,backend:n,label:a instanceof k.vU?e(be.A.imageAnnotation):a.title||e(xb.A[(0,N.$h)((0,wb.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,Pt.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,pl.Q)(dl.Rq.StampsList,d,g,p,v)}function _b(e){let{onCancel:t,onCreate:n,dispatch:r}=e;const o=(0,Ky.Bi)(),i=(0,s.d4)((e=>e.ui[dl.Rq.CreateStamp])),a=(0,s.d4)((e=>e.instance)),l=(0,u.useCallback)((e=>{let{text:t,subText:r,color:o,width:i}=e;const a=new k.xY({stampType:"Custom",title:t??"",subtitle:r,color:k.Q1.fromHex(o),boundingBox:new k.rw({left:0,top:0,width:i,height:xe.J0})});n(a)}),[n]),c=(0,u.useMemo)((()=>({titleId:o,colorPresets:_i.d0,onCreate:l,onCloseRequest:t,getLighterVariant:e=>k.Q1.fromHex(e).lighter(xe.aD).toHex(),onExistingStampPress:()=>{r((0,Pt.A5)())}})),[o,t,r,l]),d=(0,u.useMemo)((()=>({dialogProps:{"aria-labelledby":o},modalProps:{onOpenChange:t}})),[o,t]);return(0,pl.Q)(dl.Rq.CreateStamp,i,c,a,d)}function Cb(e){let{onCancel:t,onCreate:n,mode:r,dispatch:o,backend:i,stampAnnotationTemplates:a,viewportWidth:s,attachments:l}=e;return(0,ee.jsxs)(ee.Fragment,{children:[r===F.O.STAMP_PICKER&&(0,ee.jsx)(Sb,{attachments:l,onCreate:n,onCancel:t,stampAnnotationTemplates:a,backend:i,dispatch:o,viewportWidth:s}),r===F.O.STAMP_CUSTOM&&(0,ee.jsx)(_b,{onCreate:n,onCancel:t,dispatch:o})]})}var Eb=n(79308);var kb=n(37094);const zb=Object.create(null);zb.open="0",zb.close="1",zb.ping="2",zb.pong="3",zb.message="4",zb.upgrade="5",zb.noop="6";const Pb=Object.create(null);Object.keys(zb).forEach((e=>{Pb[zb[e]]=e}));const Ab={type:"error",data:"parser error"},Db="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),Tb="function"==typeof ArrayBuffer,Ib=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Mb=({type:e,data:t},n,r)=>Db&&t instanceof Blob?n?r(t):Nb(t,r):Tb&&(t instanceof ArrayBuffer||Ib(t))?n?r(t):Nb(new Blob([t]),r):r(zb[e]+(t||"")),Nb=(e,t)=>{const n=new FileReader;return n.onload=function(){const e=n.result.split(",")[1];t("b"+(e||""))},n.readAsDataURL(e)};function Ob(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let jb;const Rb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Fb="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e<Rb.length;e++)Fb[Rb.charCodeAt(e)]=e;const Bb="function"==typeof ArrayBuffer,Lb=(e,t)=>{if("string"!=typeof e)return{type:"message",data:Kb(e,t)};const n=e.charAt(0);if("b"===n)return{type:"message",data:Vb(e.substring(1),t)};return Pb[n]?e.length>1?{type:Pb[n],data:e.substring(1)}:{type:Pb[n]}:Ab},Vb=(e,t)=>{if(Bb){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=Fb[e.charCodeAt(t)],r=Fb[e.charCodeAt(t+1)],o=Fb[e.charCodeAt(t+2)],i=Fb[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 Kb(n,t)}return{base64:!0,data:e}},Kb=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,$b=String.fromCharCode(30);function Hb(){return new TransformStream({transform(e,t){!function(e,t){Db&&e.data instanceof Blob?e.data.arrayBuffer().then(Ob).then(t):Tb&&(e.data instanceof ArrayBuffer||Ib(e.data))?t(Ob(e.data)):Mb(e,!1,(e=>{jb||(jb=new TextEncoder),t(jb.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 Ub;function qb(e){return e.reduce(((e,t)=>e+t.length),0)}function Wb(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 Gb(e){if(e)return function(e){for(var t in Gb.prototype)e[t]=Gb.prototype[t];return e}(e)}Gb.prototype.on=Gb.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},Gb.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},Gb.prototype.off=Gb.prototype.removeListener=Gb.prototype.removeAllListeners=Gb.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},Gb.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},Gb.prototype.emitReserved=Gb.prototype.emit,Gb.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},Gb.prototype.hasListeners=function(e){return!!this.listeners(e).length};const Yb="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")();function Zb(e,...t){return t.reduce(((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t)),{})}const Jb=Yb.setTimeout,Xb=Yb.clearTimeout;function Qb(e,t){t.useNativeTimers?(e.setTimeoutFn=Jb.bind(Yb),e.clearTimeoutFn=Xb.bind(Yb)):(e.setTimeoutFn=Yb.setTimeout.bind(Yb),e.clearTimeoutFn=Yb.clearTimeout.bind(Yb))}class ew extends Error{constructor(e,t,n){super(e),this.description=t,this.context=n,this.type="TransportError"}}class tw extends Gb{constructor(e){super(),this.writable=!1,Qb(this,e),this.opts=e,this.query=e.query,this.socket=e.socket}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=Lb(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:""}}const nw="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),rw={};let ow,iw=0,aw=0;function sw(e){let t="";do{t=nw[e%64]+t,e=Math.floor(e/64)}while(e>0);return t}function lw(){const e=sw(+new Date);return e!==ow?(iw=0,ow=e):e+"."+sw(iw++)}for(;aw<64;aw++)rw[nw[aw]]=aw;let cw=!1;try{cw="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}const uw=cw;function dw(e){const t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||uw))return new XMLHttpRequest}catch(e){}if(!t)try{return new(Yb[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(e){}}function pw(){}const hw=null!=new dw({xdomain:!1}).responseType;class fw extends Gb{constructor(e,t){super(),Qb(this,t),this.opts=t,this.method=t.method||"GET",this.uri=e,this.data=void 0!==t.data?t.data:null,this.create()}create(){var e;const t=Zb(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd;const n=this.xhr=new dw(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)),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=fw.requestsCount++,fw.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=pw,e)try{this.xhr.abort()}catch(e){}"undefined"!=typeof document&&delete fw.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(fw.requestsCount=0,fw.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",mw);else if("function"==typeof addEventListener){addEventListener("onpagehide"in Yb?"pagehide":"unload",mw,!1)}function mw(){for(let e in fw.requests)fw.requests.hasOwnProperty(e)&&fw.requests[e].abort()}const gw="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),vw=Yb.WebSocket||Yb.MozWebSocket,yw="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();const bw={websocket:class extends tw{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),t=this.opts.protocols,n=yw?{}:Zb(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=yw?new vw(e,t,n):t?new vw(e,t):new vw(e)}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;Mb(n,this.supportsBinary,(e=>{try{this.ws.send(e)}catch(e){}r&&gw((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){void 0!==this.ws&&(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]=lw()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}check(){return!!vw}},webtransport:class extends tw{get name(){return"webtransport"}doOpen(){"function"==typeof WebTransport&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),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){Ub||(Ub=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(qb(n)<1)break;const e=Wb(n,1);i=128==(128&e[0]),o=127&e[0],r=o<126?3:126===o?1:2}else if(1===r){if(qb(n)<2)break;const e=Wb(n,2);o=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),r=3}else if(2===r){if(qb(n)<8)break;const e=Wb(n,8),t=new DataView(e.buffer,e.byteOffset,e.length),i=t.getUint32(0);if(i>Math.pow(2,21)-1){s.enqueue(Ab);break}o=i*Math.pow(2,32)+t.getUint32(4),r=3}else{if(qb(n)<o)break;const e=Wb(n,o);s.enqueue(Lb(i?e:Ub.decode(e),t)),r=0}if(0===o||o>e){s.enqueue(Ab);break}}}})}(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(t).getReader(),r=Hb();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&&gw((()=>{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){if(super(e),this.polling=!1,"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}const t=e&&e.forceBase64;this.supportsBinary=hw&&!t,this.opts.withCredentials&&(this.cookieJar=void 0)}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($b),r=[];for(let e=0;e<n.length;e++){const o=Lb(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)=>{Mb(e,!1,(e=>{r[i]=e,++o===n&&t(r.join($b))}))}))})(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]=lw()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new fw(this.uri(),e)}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}}},ww=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,xw=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Sw(e){if(e.length>2e3)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=ww.exec(e||""),i={},a=14;for(;a--;)i[xw[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}class _w extends Gb{constructor(e,t={}){super(),this.binaryType="arraybuffer",this.writeBuffer=[],e&&"object"==typeof e&&(t=e,e=null),e?(e=Sw(e),t.hostname=e.host,t.secure="https"===e.protocol||"wss"===e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=Sw(t.host).host),Qb(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=t.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,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)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,"function"==typeof addEventListener&&(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"})},addEventListener("offline",this.offlineEventListener,!1))),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 bw[e](n)}open(){let e;if(this.opts.rememberUpgrade&&_w.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn((()=>{this.emitReserved("error","No transports available")}),0);e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(e){return this.transports.shift(),void this.open()}e.open(),this.setTransport(e)}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)))}probe(e){let t=this.createTransport(e),n=!1;_w.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;_w.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()}onOpen(){if(this.readyState="open",_w.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade){let e=0;const t=this.upgrades.length;for(;e<t;e++)this.probe(this.upgrades[e])}}onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),this.resetPingTimeout(),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");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.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn((()=>{this.onClose("ping timeout")}),this.pingInterval+this.pingTimeout),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}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){_w.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,t){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"==typeof removeEventListener&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const t=[];let n=0;const r=e.length;for(;n<r;n++)~this.transports.indexOf(e[n])&&t.push(e[n]);return t}}_w.protocol=4;_w.protocol;const Cw="function"==typeof ArrayBuffer,Ew=Object.prototype.toString,kw="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Ew.call(Blob),zw="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===Ew.call(File);function Pw(e){return Cw&&(e instanceof ArrayBuffer||(e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer)(e))||kw&&e instanceof Blob||zw&&e instanceof File}function Aw(e,t){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e)){for(let t=0,n=e.length;t<n;t++)if(Aw(e[t]))return!0;return!1}if(Pw(e))return!0;if(e.toJSON&&"function"==typeof e.toJSON&&1===arguments.length)return Aw(e.toJSON(),!0);for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&Aw(e[t]))return!0;return!1}function Dw(e){const t=[],n=e.data,r=e;return r.data=Tw(n,t),r.attachments=t.length,{packet:r,buffers:t}}function Tw(e,t){if(!e)return e;if(Pw(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]=Tw(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]=Tw(e[r],t));return n}return e}function Iw(e,t){return e.data=Mw(e.data,t),delete e.attachments,e}function Mw(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]=Mw(e[n],t);else if("object"==typeof e)for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=Mw(e[n],t));return e}const Nw=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],Ow=5;var jw;!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"}(jw||(jw={}));class Rw{constructor(e){this.replacer=e}encode(e){return e.type!==jw.EVENT&&e.type!==jw.ACK||!Aw(e)?[this.encodeAsString(e)]:this.encodeAsBinary({type:e.type===jw.EVENT?jw.BINARY_EVENT:jw.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id})}encodeAsString(e){let t=""+e.type;return e.type!==jw.BINARY_EVENT&&e.type!==jw.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=Dw(e),n=this.encodeAsString(t.packet),r=t.buffers;return r.unshift(n),r}}function Fw(e){return"[object Object]"===Object.prototype.toString.call(e)}class Bw extends Gb{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===jw.BINARY_EVENT;n||t.type===jw.BINARY_ACK?(t.type=n?jw.EVENT:jw.ACK,this.reconstructor=new Lw(t),0===t.attachments&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else{if(!Pw(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===jw[n.type])throw new Error("unknown packet type "+n.type);if(n.type===jw.BINARY_EVENT||n.type===jw.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(!Bw.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 jw.CONNECT:return Fw(t);case jw.DISCONNECT:return void 0===t;case jw.CONNECT_ERROR:return"string"==typeof t||Fw(t);case jw.EVENT:case jw.BINARY_EVENT:return Array.isArray(t)&&("number"==typeof t[0]||"string"==typeof t[0]&&-1===Nw.indexOf(t[0]));case jw.ACK:case jw.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class Lw{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=Iw(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function Vw(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const Kw=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class $w extends Gb{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=[Vw(e,"open",this.onopen.bind(this)),Vw(e,"packet",this.onpacket.bind(this)),Vw(e,"error",this.onerror.bind(this)),Vw(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){if(Kw.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 n={type:jw.EVENT,data:t,options:{}};if(n.options.compress=!1!==this.flags.compress,"function"==typeof t[t.length-1]){const e=this.ids++,r=t.pop();this._registerAckCallback(e,r),n.id=e}const r=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!r||!this.connected)||(this.connected?(this.notifyOutgoingListeners(n),this.packet(n)):this.sendBuffer.push(n)),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:jw.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 jw.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 jw.EVENT:case jw.BINARY_EVENT:this.onevent(e);break;case jw.ACK:case jw.BINARY_ACK:this.onack(e);break;case jw.DISCONNECT:this.ondisconnect();break;case jw.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:jw.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:jw.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 Hw(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}Hw.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=0==(1&Math.floor(10*t))?e-n:e+n}return 0|Math.min(e,this.max)},Hw.prototype.reset=function(){this.attempts=0},Hw.prototype.setMin=function(e){this.ms=e},Hw.prototype.setMax=function(e){this.max=e},Hw.prototype.setJitter=function(e){this.jitter=e};class Uw extends Gb{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,Qb(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 Hw({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,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 _w(this.uri,this.opts);const t=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;const r=Vw(t,"open",(function(){n.onopen(),e&&e()})),o=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},i=Vw(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(Vw(e,"ping",this.onping.bind(this)),Vw(e,"data",this.ondata.bind(this)),Vw(e,"error",this.onerror.bind(this)),Vw(e,"close",this.onclose.bind(this)),Vw(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){gw((()=>{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 $w(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"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,t){this.cleanup(),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 qw={};function Ww(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=Sw(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=qw[o]&&i in qw[o].nsps;let s;return t.forceNew||t["force new connection"]||!1===t.multiplex||a?s=new Uw(r,t):(qw[o]||(qw[o]=new Uw(r,t)),s=qw[o]),n.query&&!t.query&&(t.query=n.queryKey),s.socket(n.path,t)}Object.assign(Ww,{Manager:Uw,Socket:$w,io:Ww,connect:Ww});class Gw{constructor(){(0,v.A)(this,"ongoingRequests",new Map)}create(){const e=(0,Eb.v4)();return this.ongoingRequests.set(e,{lastChunkIndex:null,outOfOrderChunks:[]}),e}update(e,t,n){const r=this.ongoingRequests.get(e);if((0,rd.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()}}let Yw=function(e){return e.Connected="connected",e.Disconnected="disconnected",e.Reconnect_failed="reconnect_failed",e}({});class Zw{constructor(e,t,n,r,o,i){const{backendUrl:a,jwt:s,userId:l,sessionId:c}=e;this.backendUrl=function(e){return e.endsWith("/")&&(e=e.slice(0,-1)),e}(a),this.jwt=s,this.userId=l,this.sessionId=c,this.features=t,this.documentId=n,this.layerName=r,this.sourcePdfSha256=o,this.ongoingRequestManager=new Gw;const u=new URL(a).pathname;this.socket=Ww(`${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(Yw.Connected)})),this.socket.on("disconnect",(()=>{i(Yw.Disconnected)})),this.socket.io.on("reconnect_failed",(()=>{i(Yw.Reconnect_failed)}))}async initialize(){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()=>{const t=await fetch(`${this.backendUrl}/client/api/v1/sessions/${this.sessionId}`,{headers:{Authorization:`Token token=${this.jwt}`}}),n=await t.json();e(n)})),this.socket.emit("initialize",{sessionId:this.sessionId,userId:this.userId,clientFeatures:this.features})}))}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,rd.V1)(a),this.ongoingRequestManager.delete(n.requestId),i&&((0,l.z3)("[Error in AI Document 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,rd.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()}}const Jw=(0,he.YK)({chat:{id:"chat",defaultMessage:"Chat"},close:{id:"close",defaultMessage:"Close"},goToSelection:{id:"goToSelection",defaultMessage:"Go to selection"}}),Xw="PLAIN",Qw="SUGGESTIONS",ex="QUERY_RESULT",tx="ERROR",nx="ACTIONS",rx="ADDITIONAL_CONTEXT";function ox(e){let{onSendMessage:t,onTemplateAction:n,dispatch:r,formatMessage:o}=e;return(0,yr.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(be.A.applyRedactions),onPress:()=>{r((0,Pt.l8)()),r((0,Jc.g)((()=>r((0,Pt.gp)())),(()=>r((0,Pt.gp)()))))}}];return s&&!s.isEmpty()&&n.unshift({text:o(be.A.discard),onPress:()=>{r((0,at.n9)(s?.toSet())),n.shift()}}),{...e,type:nx,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(Jw.goToSelection),onPress:()=>r((0,lc.YQ)(c.pageIndex,new k.rw(c.boundingBox)))}},type:rx,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:Qw,suggestions:l.map((e=>{let{text:n,agent:r,parameters:o}=e;return{onPress:()=>t(n,r,o),text:n}}))}:{...e,type:nx,actions:l.map((e=>{let{type:r,text:o,agent:i,template:a,parameters:s}=e;return"request"===r?{onPress:()=>t(o,i,s),text:o}:{text:o,onPress:()=>n({text:a??"",agent:i,parameters:s})}}))}:Array.isArray(u)&&u.length>0?{...e,type:ex,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=k.rw.union((0,a.B8)(o.map((e=>new k.rw(e)))));return{text:t,onPress:()=>{r(Xp(Qp.B)),r((0,lc.YQ)(parseInt(e),i)),r(Xp({pageIndex:e,rectsOnPage:(0,a.B8)([i])}))}}}return{text:t,onPress:()=>window.location.assign(n)}})),actionsText:"",actions:[]}:e}))}function ix(e){let{configuration:t,layerName:n,sourcePdfSha256:r,documentId:o,additionalContext:i,onTemplateAction:l,onMessageSubmit:c}=e;const{formatMessage:d}=(0,sl.useI18n)(),[p,h]=(0,u.useState)(null),[f,m]=(0,u.useState)(!0),[g,v]=(0,u.useState)(!1),[y,b]=(0,u.useState)([]),[w,x]=(0,u.useState)(null),S=(0,s.wA)(),_=(0,s.d4)((e=>e.instance)),C=(0,s.d4)((e=>e.features)),E=(0,yr.Kw)(((e,t,n)=>{if(p!==Yw.Connected||g||!w)return;const{agent:r,parameters:o}=c();let i;v(!0);const a={input:e,...n,...o};i=r||t?w.emitAgentCompletion(r??t,"user",a):w.emitCompletion("user",a),b((t=>[...t,{type:Xw,id:`request-${i}`,text:e,sender:"You",isComplete:!0},{type:Xw,id:`response-${i}`,text:"",sender:"AI",isComplete:!1}]))})),z=ox({onSendMessage:E,onTemplateAction:l,dispatch:S,formatMessage:d}),P=(0,yr.Kw)((e=>{b(e.map((e=>{let{content:t,sender:n,...r}=e;const o={type:Xw,id:(0,Eb.v4)(),text:t,sender:"ai"===n?"AI":"You",isComplete:!0};return z(o,r)})));if(0===e.filter((e=>{let{requestId:t}=e;return"evaluation-license"!==t})).length&&!i){v(!0);const e=w?.emitAgentCompletion("SuggestedQuestions","system",{input:""});b((t=>[...t,{type:Qw,suggestions:[],id:`response-${e}`,text:"",sender:"AI",isComplete:!1}]))}m(!1)}));return(0,u.useEffect)((()=>{const e=new Zw(t,C,o,n,r,(e=>{h(e),"disconnected"===e?m(!0):"reconnect_failed"===e&&(m(!1),b((e=>[...e,{type:tx,id:"error",text:"",error:{title:"Connection error",description:"Failed to connect to the AI Document Assistant. Please try again later."},sender:"AI",isComplete:!0}])))}));e.addErrorListener((e=>{let{request:t,message:n,code:r}=e;b((e=>e.map((e=>e.id===`response-${t.requestId}`?{...e,type:tx,error:{title:r,description:n},isComplete:!0}:e))))})),e.addChatBlockListener((async e=>{let t,{requestId:n,end:r,content:o,actions:i,...s}=e;if(r&&v(!1),Array.isArray(s.stagedActions)&&s.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(_?.createRedactionsBySearch(Array.from(e).join("|"),{searchType:kb.n.REGEX,caseSensitive:!1,searchInAnnotations:!1,startPageIndex:r,pageRange:o}));n&&n.size>0&&(t=(t||(0,a.B8)()).concat(n))}}}b((e=>e.map((e=>{if(e.id===`response-${n}`){const n={...e,text:e.text+o,isComplete:r};return z(n,s,t)}return e}))))})),x(e)}),[]),(0,u.useEffect)((()=>{if(w)return w.initialize().then(P),()=>{w.destroy()}}),[w,P]),(0,u.useEffect)((()=>{w&&(m(!0),w.setSessionId(t.sessionId).then(P))}),[t.sessionId]),(0,u.useEffect)((()=>{w&&(m(!0),w.setSourcePdfSha256(r).then(P))}),[r]),(0,u.useEffect)((()=>{if(w&&!f&&i){const e=w.emitAgentCompletion("SelectedTextSuggestedActions","system",{context:i});l({text:"",agent:"ContextSpecificQA",parameters:{context:i}}),b((t=>[...t,{type:rx,id:`response-${e}`,text:"",sender:"AI",additionalContext:i.text,isComplete:!1,actions:[],linkToAdditionalContext:{text:d(Jw.goToSelection),onPress:()=>S((0,lc.YQ)(i.pageIndex,new k.rw(i.boundingBox)))}}])),S((0,Pt.S_)(null))}}),[w,S,f,i,d]),{messages:y,onSendMessage:E,isLoading:f,isConnected:p===Yw.Connected,isGenerating:g}}const ax={value:"",agent:null,parameters:null};function sx(e){let{toolbarsHeight:t,configuration:n,documentId:r,isOpen:o,layerName:i,sourcePdfSha256:a}=e;const l=(0,Ky.Bi)(),c=(0,s.d4)((e=>e.instance)),d=(0,s.d4)((e=>e.aiDocumentAssistant.additionalContext)),[p,h]=(0,u.useState)(ax),f=(0,u.useRef)(null),m=(0,yr.Kw)((()=>(n.onMessageSubmit?.(),{agent:p.agent,parameters:p.parameters}))),g=(0,u.useCallback)((e=>{let{text:t,...n}=e;f.current&&(h({value:t,...n}),f.current.setCaretPosition(t.lastIndexOf('"')??-1))}),[]),{messages:v,onSendMessage:y,isLoading:b,isConnected:w,isGenerating:x}=ix({configuration:n,layerName:i,sourcePdfSha256:a,documentId:r,additionalContext:d,onTemplateAction:g,onMessageSubmit:m}),S=(0,s.wA)(),_=(0,u.useCallback)((()=>{S((0,Pt.LG)(!1))}),[S]),C=(0,s.d4)((e=>e.ui[dl.Rq.ChatDialog])),E=(0,u.useCallback)((e=>{y(e),h(ax)}),[y]),k=(0,u.useMemo)((()=>({editorHandle:f,isLoading:b,isSubmitDisabled:!w||x||b,messages:v,onMessageSubmit:E,onInputChanged:e=>h((t=>({...t,value:e}))),titleId:l,style:{height:"calc(100vh - 49px)",minHeight:"40vh"},inputValue:p.value})),[x,w,l,p,h,E,b,v]),z=(0,u.useMemo)((()=>({titleId:l,onCloseRequest:_,showHeaderOnMobile:!0,mobileHeaderTitle:"Chat",topOffset:t,isOpen:o})),[l,_,t,o]);return(0,pl.Q)(dl.Rq.ChatDialog,C,k,c,z)}function lx(e){let{isOpen:t,configuration:n,toolbarsHeight:r,documentId:o,layerName:i,sourcePdfSha256:a}=e;const s=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});return s?(0,ee.jsx)(sx,{configuration:n,toolbarsHeight:r,documentId:o,layerName:i,sourcePdfSha256:a,isOpen:t}):null}var cx=Object.defineProperty,ux={};((e,t)=>{for(var n in t)cx(e,n,{get:t[n],enumerable:!0})})(ux,{assign:()=>$x,colors:()=>Lx,createStringInterpolator:()=>jx,skipAnimation:()=>Vx,to:()=>Rx,willAdvance:()=>Kx});var dx=zx(),px=e=>_x(e,dx),hx=zx();px.write=e=>_x(e,hx);var fx=zx();px.onStart=e=>_x(e,fx);var mx=zx();px.onFrame=e=>_x(e,mx);var gx=zx();px.onFinish=e=>_x(e,gx);var vx=[];px.setTimeout=(e,t)=>{const n=px.now()+t,r=()=>{const e=vx.findIndex((e=>e.cancel==r));~e&&vx.splice(e,1),xx-=~e?1:0},o={time:n,handler:e,cancel:r};return vx.splice(yx(n),0,o),xx+=1,Cx(),o};var yx=e=>~(~vx.findIndex((t=>t.time>e))||~vx.length);px.cancel=e=>{fx.delete(e),mx.delete(e),gx.delete(e),dx.delete(e),hx.delete(e)},px.sync=e=>{Sx=!0,px.batchedUpdates(e),Sx=!1},px.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,px.onStart(n)}return r.handler=e,r.cancel=()=>{fx.delete(n),t=null},r};var bx="undefined"!=typeof window?window.requestAnimationFrame:()=>{};px.use=e=>bx=e,px.now="undefined"!=typeof performance?()=>performance.now():Date.now,px.batchedUpdates=e=>e(),px.catch=console.error,px.frameLoop="always",px.advance=()=>{"demand"!==px.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):kx()};var wx=-1,xx=0,Sx=!1;function _x(e,t){Sx?(t.delete(e),e(0)):(t.add(e),Cx())}function Cx(){wx<0&&(wx=0,"demand"!==px.frameLoop&&bx(Ex))}function Ex(){~wx&&(bx(Ex),px.batchedUpdates(kx))}function kx(){const e=wx;wx=px.now();const t=yx(wx);t&&(Px(vx.splice(0,t),(e=>e.handler())),xx-=t),xx?(fx.flush(),dx.flush(e?Math.min(64,wx-e):16.667),mx.flush(),hx.flush(),gx.flush()):wx=-1}function zx(){let e=new Set,t=e;return{add(n){xx+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(xx-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,xx-=t.size,Px(t,(t=>t(n)&&e.add(t))),xx+=e.size,t=e)}}}function Px(e,t){e.forEach((e=>{try{t(e)}catch(e){px.catch(e)}}))}function Ax(){}var Dx={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 Tx(e,t){if(Dx.arr(e)){if(!Dx.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 Ix=(e,t)=>e.forEach(t);function Mx(e,t,n){if(Dx.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 Nx=e=>Dx.und(e)?[]:Dx.arr(e)?e:[e];function Ox(e,t){if(e.size){const n=Array.from(e);e.clear(),Ix(n,t)}}var jx,Rx,Fx=(e,...t)=>Ox(e,(e=>e(...t))),Bx=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Lx=null,Vx=!1,Kx=Ax,$x=e=>{e.to&&(Rx=e.to),e.now&&(px.now=e.now),void 0!==e.colors&&(Lx=e.colors),null!=e.skipAnimation&&(Vx=e.skipAnimation),e.createStringInterpolator&&(jx=e.createStringInterpolator),e.requestAnimationFrame&&px.use(e.requestAnimationFrame),e.batchedUpdates&&(px.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Kx=e.willAdvance),e.frameLoop&&(px.frameLoop=e.frameLoop)},Hx=new Set,Ux=[],qx=[],Wx=0,Gx={get idle(){return!Hx.size&&!Ux.length},start(e){Wx>e.priority?(Hx.add(e),px.onStart(Yx)):(Zx(e),px(Xx))},advance:Xx,sort(e){if(Wx)px.onFrame((()=>Gx.sort(e)));else{const t=Ux.indexOf(e);~t&&(Ux.splice(t,1),Jx(e))}},clear(){Ux=[],Hx.clear()}};function Yx(){Hx.forEach(Zx),Hx.clear(),px(Xx)}function Zx(e){Ux.includes(e)||Jx(e)}function Jx(e){Ux.splice(function(e,t){const n=e.findIndex(t);return n<0?e.length:n}(Ux,(t=>t.priority>e.priority)),0,e)}function Xx(e){const t=qx;for(let n=0;n<Ux.length;n++){const r=Ux[n];Wx=r.priority,r.idle||(Kx(r),r.advance(e),r.idle||t.push(r))}return Wx=0,(qx=Ux).length=0,(Ux=t).length>0}var Qx="[-+]?\\d*\\.?\\d+",eS=Qx+"%";function tS(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var nS=new RegExp("rgb"+tS(Qx,Qx,Qx)),rS=new RegExp("rgba"+tS(Qx,Qx,Qx,Qx)),oS=new RegExp("hsl"+tS(Qx,eS,eS)),iS=new RegExp("hsla"+tS(Qx,eS,eS,Qx)),aS=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,sS=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,lS=/^#([0-9a-fA-F]{6})$/,cS=/^#([0-9a-fA-F]{8})$/;function uS(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 dS(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=uS(o,r,e+1/3),a=uS(o,r,e),s=uS(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function pS(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function hS(e){return(parseFloat(e)%360+360)%360/360}function fS(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 gS(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=lS.exec(e))?parseInt(t[1]+"ff",16)>>>0:Lx&&void 0!==Lx[e]?Lx[e]:(t=nS.exec(e))?(pS(t[1])<<24|pS(t[2])<<16|pS(t[3])<<8|255)>>>0:(t=rS.exec(e))?(pS(t[1])<<24|pS(t[2])<<16|pS(t[3])<<8|fS(t[4]))>>>0:(t=aS.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=cS.exec(e))?parseInt(t[1],16)>>>0:(t=sS.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=oS.exec(e))?(255|dS(hS(t[1]),mS(t[2]),mS(t[3])))>>>0:(t=iS.exec(e))?(dS(hS(t[1]),mS(t[2]),mS(t[3]))|fS(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 vS=(e,t,n)=>{if(Dx.fun(e))return e;if(Dx.arr(e))return vS({range:e,output:t,extrapolate:n});if(Dx.str(e.output[0]))return jx(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 yS=1.70158,bS=1.525*yS,wS=yS+1,xS=2*Math.PI/3,SS=2*Math.PI/4.5,_S=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},CS={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=>wS*e*e*e-yS*e*e,easeOutBack:e=>1+wS*Math.pow(e-1,3)+yS*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-bS)/2:(Math.pow(2*e-2,2)*((bS+1)*(2*e-2)+bS)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*xS),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*xS)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*SS)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*SS)/2+1,easeInBounce:e=>1-_S(1-e),easeOutBounce:_S,easeInOutBounce:e=>e<.5?(1-_S(1-2*e))/2:(1+_S(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)}},ES=Symbol.for("FluidValue.get"),kS=Symbol.for("FluidValue.observers"),zS=e=>Boolean(e&&e[ES]),PS=e=>e&&e[ES]?e[ES]():e,AS=e=>e[kS]||null;function DS(e,t){const n=e[kS];n&&n.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}var TS=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");IS(this,e)}},IS=(e,t)=>jS(e,ES,t);function MS(e,t){if(e[ES]){let n=e[kS];n||jS(e,kS,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function NS(e,t){const n=e[kS];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[kS]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var OS,jS=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),RS=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,FS=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,BS=new RegExp(`(${RS.source})(%|[a-z]+)`,"i"),LS=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,VS=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,KS=e=>{const[t,n]=$S(e);if(!t||Bx())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&&VS.test(n)?KS(n):n||e},$S=e=>{const t=VS.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},HS=(e,t,n,r,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`,US=e=>{OS||(OS=Lx?new RegExp(`(${Object.keys(Lx).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>PS(e).replace(VS,KS).replace(FS,gS).replace(OS,gS))),n=t.map((e=>e.match(RS).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=>vS({...e,output:t})));return e=>{const n=!BS.test(t[0])&&t.find((e=>BS.test(e)))?.replace(RS,"");let r=0;return t[0].replace(RS,(()=>`${o[r++](e)}${n||""}`)).replace(LS,HS)}},qS="react-spring: ",WS=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(`${qS}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},GS=WS(console.warn);var YS=WS(console.warn);function ZS(e){return Dx.str(e)&&("#"==e[0]||/\d/.test(e)||!Bx()&&VS.test(e)||e in(Lx||{}))}var JS=Bx()?u.useEffect:u.useLayoutEffect;function XS(){const e=(0,u.useState)()[1],t=(()=>{const e=(0,u.useRef)(!1);return JS((()=>(e.current=!0,()=>{e.current=!1})),[]),e})();return()=>{t.current&&e(Math.random())}}var QS=e=>(0,u.useEffect)(e,e_),e_=[];function t_(e){const t=(0,u.useRef)();return(0,u.useEffect)((()=>{t.current=e})),t.current}var n_=Symbol.for("Animated:node"),r_=e=>e&&e[n_],o_=(e,t)=>((e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}))(e,n_,t),i_=e=>e&&e[n_]&&e[n_].getPayload(),a_=class{constructor(){o_(this,this)}getPayload(){return this.payload||[]}},s_=class extends a_{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,Dx.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new s_(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return Dx.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,Dx.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},l_=class extends s_{constructor(e){super(0),this._string=null,this._toString=vS({output:[e,e]})}static create(e){return new l_(e)}getValue(){const e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(Dx.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=vS({output:[this.getValue(),e]})),this._value=0,super.reset()}},c_={dependencies:null},u_=class extends a_{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Mx(this.source,((n,r)=>{(e=>!!e&&e[n_]===e)(n)?t[r]=n.getValue(e):zS(n)?t[r]=PS(n):e||(t[r]=n)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Ix(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return Mx(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){c_.dependencies&&zS(e)&&c_.dependencies.add(e);const t=i_(e);t&&Ix(t,(e=>this.add(e)))}},d_=class extends u_{constructor(e){super(e)}static create(e){return new d_(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(p_)),!0)}};function p_(e){return(ZS(e)?l_:s_).create(e)}function h_(e){const t=r_(e);return t?t.constructor:Dx.arr(e)?d_:ZS(e)?l_:s_}var f_=(e,t)=>{const n=!Dx.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&&(Dx.fun(e)?e(t):e.current=t);return t}(o,e)}),[o]),[s,l]=function(e,t){const n=new Set;c_.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)});return e=new u_(e),c_.dependencies=null,[e,n]}(r,t),c=XS(),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)();JS((()=>(h.current=p,Ix(l,(e=>MS(e,p))),()=>{h.current&&(Ix(h.current.deps,(e=>NS(e,h.current))),px.cancel(h.current.update))}))),(0,u.useEffect)(d,[]),QS((()=>()=>{const e=h.current;Ix(e.deps,(t=>NS(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&&px.write(this.update)}};var g_=Symbol.for("AnimatedComponent"),v_=e=>Dx.str(e)?e:e&&Dx.str(e.displayName)?e.displayName:Dx.fun(e)&&e.name||null;function y_(e,...t){return Dx.fun(e)?e(...t):e}var b_=(e,t)=>!0===e||!!(t&&e&&(Dx.fun(e)?e(t):Nx(e).includes(t))),w_=(e,t)=>Dx.obj(e)?t&&e[t]:e,x_=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,S_=e=>e,__=(e,t=S_)=>{let n=C_;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);Dx.und(n)||(r[o]=n)}return r},C_=["config","onProps","onStart","onChange","onPause","onResume","onRest"],E_={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 k_(e){const t=function(e){const t={};let n=0;if(Mx(e,((e,r)=>{E_[r]||(t[r]=e,n++)})),n)return t}(e);if(t){const n={to:t};return Mx(e,((e,r)=>r in t||(n[r]=e))),n}return{...e}}function z_(e){return e=PS(e),Dx.arr(e)?e.map(z_):ZS(e)?ux.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function P_(e){for(const t in e)return!0;return!1}function A_(e){return Dx.fun(e)||Dx.arr(e)&&Dx.obj(e[0])}function D_(e,t){e.ref?.delete(e),t?.delete(e)}function T_(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var I_={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}},M_={...I_.default,mass:1,damping:1,easing:CS.linear,clamp:!1};function N_(e,t){if(Dx.und(t.decay)){const n=!Dx.und(t.tension)||!Dx.und(t.friction);!n&&Dx.und(t.frequency)&&Dx.und(t.damping)&&Dx.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var O_=[];function j_(e,{key:t,props:n,defaultProps:r,state:o,actions:i}){return new Promise(((a,s)=>{let l,c,u=b_(n.cancel??r?.cancel,t);if(u)h();else{Dx.und(n.pause)||(o.paused=b_(n.pause,t));let e=r?.pause;!0!==e&&(e=o.paused||b_(e,t)),l=y_(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-px.now()}function p(){l>0&&!ux.skipAnimation?(o.delayed=!0,c=px.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 R_=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?L_(e.get()):t.every((e=>e.noop))?F_(e.get()):B_(e.get(),t.every((e=>e.finished))),F_=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),B_=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),L_=e=>({value:e,cancelled:!0,finished:!1});function V_(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=__(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)&&L_(r)||o!==n.asyncId&&B_(r,!1);if(t)throw e.result=t,d(e),e},f=(e,t)=>{const i=new $_,a=new H_;return(async()=>{if(ux.skipAnimation)throw K_(n),a.result=B_(r,!1),d(a),a;h(i);const s=Dx.obj(e)?{...e}:{...t,to:e};s.parentId=o,Mx(c,((e,t)=>{Dx.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(ux.skipAnimation)return K_(n),B_(r,!1);try{let t;t=Dx.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=B_(r.get(),!0,!1)}catch(e){if(e instanceof $_)m=e.result;else{if(!(e instanceof H_))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 Dx.fun(a)&&px.batchedUpdates((()=>{a(m,r,r.item)})),m})():l}function K_(e,t){Ox(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var $_=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.")}},H_=class extends Error{constructor(){super("SkipAnimationSignal")}},U_=e=>e instanceof W_,q_=1,W_=class extends TS{constructor(){super(...arguments),this.id=q_++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=r_(this);return e&&e.getValue()}to(...e){return ux.to(this,e)}interpolate(...e){return GS(`${qS}The "interpolate" function is deprecated in v9 (use "to" instead)`),ux.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){DS(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Gx.sort(this),DS(this,{type:"priority",parent:this,priority:e})}},G_=Symbol.for("SpringPhase"),Y_=e=>(1&e[G_])>0,Z_=e=>(2&e[G_])>0,J_=e=>(4&e[G_])>0,X_=(e,t)=>t?e[G_]|=3:e[G_]&=-3,Q_=(e,t)=>t?e[G_]|=4:e[G_]&=-5,eC=class extends W_{constructor(e,t){if(super(),this.animation=new class{constructor(){this.changed=!1,this.values=O_,this.toValues=null,this.fromValues=O_,this.config=new class{constructor(){this.velocity=0,Object.assign(this,M_)}},this.immediate=!1}},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,!Dx.und(e)||!Dx.und(t)){const n=Dx.obj(e)?{...e}:{...t,from:e};Dx.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Z_(this)||this._state.asyncTo)||J_(this)}get goal(){return PS(this.animation.to)}get velocity(){const e=r_(this);return e instanceof s_?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return Y_(this)}get isAnimating(){return Z_(this)}get isPaused(){return J_(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=i_(r.to);!a&&zS(r.to)&&(o=Nx(PS(r.to))),r.values.forEach(((s,l)=>{if(s.done)return;const c=s.constructor==l_?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=Dx.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(Dx.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=!Dx.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=r_(this),l=s.getValue();if(t){const e=PS(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 px.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Z_(this)){const{to:e,config:t}=this.animation;px.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 Dx.und(e)?(n=this.queue||[],this.queue=[]):n=[Dx.obj(e)?e:{...t,to:e}],Promise.all(n.map((e=>this._update(e)))).then((e=>R_(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),K_(this._state,e&&this._lastCallId),px.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=Dx.obj(n)?n[t]:n,(null==n||A_(n))&&(n=void 0),r=Dx.obj(r)?r[t]:r,null==r&&(r=void 0);const o={to:n,from:r};return Y_(this)||(e.reverse&&([n,r]=[r,n]),r=PS(r),Dx.und(r)?r_(this)||this._set(n):this._set(r)),o}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,__(e,((e,t)=>/^on/.test(t)?w_(e,n):e))),sC(this,e,"onProps"),lC(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 j_(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{J_(this)||(Q_(this,!0),Fx(i.pauseQueue),lC(this,"onPause",B_(this,tC(this,this.animation.to)),this))},resume:()=>{J_(this)&&(Q_(this,!1),Z_(this)&&this._resume(),Fx(i.resumeQueue),lC(this,"onResume",B_(this,tC(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then((n=>{if(e.loop&&n.finished&&(!t||!n.noop)){const t=nC(e);if(t)return this._update(t,!0)}return n}))}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(L_(this));const r=!Dx.und(e.to),o=!Dx.und(e.from);if(r||o){if(!(t.callId>this._lastToId))return n(L_(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&&!Dx.und(u)||(u=d),t.reverse&&([u,d]=[d,u]);const p=!Tx(d,c);p&&(s.from=d),d=PS(d);const h=!Tx(u,l);h&&this._focus(u);const f=A_(t.to),{config:m}=s,{decay:g,velocity:v}=m;(r||o)&&(m.velocity=0),t.config&&!f&&function(e,t,n){n&&(N_(n={...n},t),t={...n,...t}),N_(e,t),Object.assign(e,t);for(const t in M_)null==e[t]&&(e[t]=M_[t]);let{frequency:r,damping:o}=e;const{mass:i}=e;Dx.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,y_(t.config,i),t.config!==a.config?y_(a.config,i):void 0);let y=r_(this);if(!y||Dx.und(u))return n(B_(this,!0));const b=Dx.und(t.reset)?o&&!t.default:!Dx.und(d)&&b_(t.reset,i),w=b?d:this.get(),x=z_(u),S=Dx.num(x)||Dx.arr(x)||ZS(x),_=!f&&(!S||b_(a.immediate||t.immediate,i));if(h){const e=h_(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=zS(u),k=!1;if(!E){const e=b||!Y_(this)&&p;(h||e)&&(k=Tx(z_(w),x),E=!k),(Tx(s.immediate,_)||_)&&Tx(m.decay,g)&&Tx(m.velocity,v)||(E=!0)}if(k&&Z_(this)&&(s.changed&&!b?E=!0:E||this._stop(l)),!f&&((E||zS(l))&&(s.values=y.getPayload(),s.toValues=zS(u)?null:C==l_?[1]:Nx(x)),s.immediate!=_&&(s.immediate=_,_||b||this._set(l)),E)){const{onRest:e}=s;Ix(aC,(e=>sC(this,t,e)));const r=B_(this,tC(this,l));Fx(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&px.batchedUpdates((()=>{s.changed=!b,e?.(r,this),b?y_(a.onRest,r):s.onStart?.(r,this)}))}b&&this._set(w),f?n(V_(t.to,t,this._state,this)):E?this._start():Z_(this)&&!h?this._pendingCalls.add(n):n(F_(w))}_focus(e){const t=this.animation;e!==t.to&&(AS(this)&&this._detach(),t.to=e,AS(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;zS(t)&&(MS(t,this),U_(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;zS(e)&&NS(e,this)}_set(e,t=!0){const n=PS(e);if(!Dx.und(n)){const e=r_(this);if(!e||!Tx(n,e.getValue())){const r=h_(n);e&&e.constructor==r?e.setValue(n):o_(this,r.create(n)),e&&px.batchedUpdates((()=>{this._onChange(n,t)}))}}return r_(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,lC(this,"onStart",B_(this,tC(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),y_(this.animation.onChange,e,this)),y_(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;r_(this).reset(PS(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),Z_(this)||(X_(this,!0),J_(this)||this._resume())}_resume(){ux.skipAnimation?this.finish():Gx.start(this)}_stop(e,t){if(Z_(this)){X_(this,!1);const n=this.animation;Ix(n.values,(e=>{e.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),DS(this,{type:"idle",parent:this});const r=t?L_(this.get()):B_(this.get(),tC(this,e??n.to));Fx(this._pendingCalls,r),n.changed&&(n.changed=!1,lC(this,"onRest",r,this))}}};function tC(e,t){const n=z_(t);return Tx(z_(e.get()),n)}function nC(e,t=e.loop,n=e.to){const r=y_(t);if(r){const o=!0!==r&&k_(r),i=(o||e).reverse,a=!o||o.reset;return rC({...e,loop:t,default:!1,pause:void 0,to:!i||A_(n)?n:void 0,from:a?e.from:void 0,reset:a,...o})}}function rC(e){const{to:t,from:n}=e=k_(e),r=new Set;return Dx.obj(t)&&iC(t,r),Dx.obj(n)&&iC(n,r),e.keys=r.size?Array.from(r):null,e}function oC(e){const t=rC(e);return Dx.und(t.default)&&(t.default=__(t)),t}function iC(e,t){Mx(e,((e,n)=>null!=e&&t.add(n)))}var aC=["onStart","onRest","onChange","onPause","onResume"];function sC(e,t,n){e.animation[n]=t[n]!==x_(t,n)?w_(t[n],e.key):void 0}function lC(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var cC=["onStart","onChange","onRest"],uC=1,dC=class{constructor(e,t){this.id=uC++,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];Dx.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(rC(e)),this}start(e){let{queue:t}=this;return e?t=Nx(e).map(rC):this.queue=[],this._flush?this._flush(this,t):(yC(this,t),pC(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Ix(Nx(t),(t=>n[t].stop(!!e)))}else K_(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(Dx.und(e))this.start({pause:!0});else{const t=this.springs;Ix(Nx(e),(e=>t[e].pause()))}return this}resume(e){if(Dx.und(e))this.start({pause:!1});else{const t=this.springs;Ix(Nx(e),(e=>t[e].resume()))}return this}each(e){Mx(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,Ox(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&&Ox(t,(([e,t])=>{t.value=a,e(t,this,this._item)})),i&&(this._started=!1,Ox(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)}px.onFrame(this._onFrame)}};function pC(e,t){return Promise.all(t.map((t=>hC(e,t)))).then((t=>R_(e,t)))}async function hC(e,t,n){const{keys:r,to:o,from:i,loop:a,onRest:s,onResolve:l}=t,c=Dx.obj(t.default)&&t.default;a&&(t.loop=!1),!1===o&&(t.to=null),!1===i&&(t.from=null);const u=Dx.arr(o)||Dx.fun(o)?o:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):Ix(cC,(n=>{const r=t[n];if(Dx.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,Fx(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===x_(t,"cancel");(u||h&&d.asyncId)&&p.push(j_(++e._lastAsyncId,{props:t,state:d,actions:{pause:Ax,resume:Ax,start(t,n){h?(K_(d,e._lastAsyncId),n(L_(e))):(t.onRest=s,n(V_(u,t,d,e)))}}})),d.paused&&await new Promise((e=>{d.resumeQueue.add(e)}));const f=R_(e,await Promise.all(p));if(a&&f.finished&&(!n||!f.noop)){const n=nC(t,a,o);if(n)return yC(e,[n]),hC(e,n,!0)}return l&&px.batchedUpdates((()=>l(f,e,e.item))),f}function fC(e,t){const n={...e.springs};return t&&Ix(Nx(t),(e=>{Dx.und(e.keys)&&(e=rC(e)),Dx.obj(e.to)||(e={...e,to:void 0}),vC(n,e,(e=>gC(e)))})),mC(e,n),n}function mC(e,t){Mx(t,((t,n)=>{e.springs[n]||(e.springs[n]=t,MS(t,e))}))}function gC(e,t){const n=new eC;return n.key=e,t&&MS(n,t),n}function vC(e,t,n){t.keys&&Ix(t.keys,(r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)}))}function yC(e,t){Ix(t,(t=>{vC(e.springs,t,(t=>gC(t,e)))}))}var bC,wC,xC=({children:e,...t})=>{const n=(0,u.useContext)(SC),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}=SC;return u.createElement(i,{value:t},e)},SC=(bC=xC,wC={},Object.assign(bC,u.createContext(wC)),bC.Provider._context=bC,bC.Consumer._context=bC,bC);xC.Provider=SC.Provider,xC.Consumer=SC.Consumer;var _C=()=>{const e=[],t=function(t){YS(`${qS}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 Ix(e,((e,o)=>{if(Dx.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 Ix(e,(e=>e.pause(...arguments))),this},t.resume=function(){return Ix(e,(e=>e.resume(...arguments))),this},t.set=function(t){Ix(e,((e,n)=>{const r=Dx.fun(t)?t(n,e):t;r&&e.set(r)}))},t.start=function(t){const n=[];return Ix(e,((e,r)=>{if(Dx.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 Ix(e,(e=>e.stop(...arguments))),this},t.update=function(t){return Ix(e,((e,n)=>e.update(this._getProps(t,e,n)))),this};const n=function(e,t,n){return Dx.fun(e)?e(n,t):e};return t._getProps=n,t};function CC(e,t,n){const r=Dx.fun(t)&&t;r&&!n&&(n=[]);const o=(0,u.useMemo)((()=>r||3==arguments.length?_C():void 0),[]),i=(0,u.useRef)(0),a=XS(),s=(0,u.useMemo)((()=>({ctrls:[],queue:[],flush(e,t){const n=fC(e,t);return i.current>0&&!s.queue.length&&!Object.keys(n).some((t=>!e.springs[t]))?pC(e,t):new Promise((r=>{mC(e,n),s.queue.push((()=>{r(pC(e,t))})),a()}))}})),[]),l=(0,u.useRef)([...s.ctrls]),c=[],d=t_(e)||0;function p(e,n){for(let o=e;o<n;o++){const e=l.current[o]||(l.current[o]=new dC(null,s.flush)),n=r?r(o,e):t[o];n&&(c[o]=oC(n))}}(0,u.useMemo)((()=>{Ix(l.current.slice(e,d),(e=>{D_(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)=>fC(e,c[t]))),f=(0,u.useContext)(xC),m=t_(f),g=f!==m&&P_(f);JS((()=>{i.current++,s.ctrls=l.current;const{queue:e}=s;e.length&&(s.queue=[],Ix(e,(e=>e()))),Ix(l.current,((e,t)=>{o?.add(e),g&&e.start({default:f});const n=c[t];n&&(T_(e,n.ref),e.ref?e.queue.push(n):e.start(n))}))})),QS((()=>()=>{Ix(s.ctrls,(e=>e.stop(!0)))}));const v=h.map((e=>({...e})));return o?[v,o]:v}function EC(e,t){const n=Dx.fun(e),[[r],o]=CC(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,o]:r}var kC=class extends W_{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=vS(...t);const n=this._get(),r=h_(n);o_(this,r.create(n))}advance(e){const t=this._get();Tx(t,this.get())||(r_(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&PC(this._active)&&AC(this)}_get(){const e=Dx.arr(this.source)?this.source.map(PS):Nx(PS(this.source));return this.calc(...e)}_start(){this.idle&&!PC(this._active)&&(this.idle=!1,Ix(i_(this),(e=>{e.done=!1})),ux.skipAnimation?(px.batchedUpdates((()=>this.advance())),AC(this)):Gx.start(this))}_attach(){let e=1;Ix(Nx(this.source),(t=>{zS(t)&&MS(t,this),U_(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){Ix(Nx(this.source),(e=>{zS(e)&&NS(e,this)})),this._active.clear(),AC(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=Nx(this.source).reduce(((e,t)=>Math.max(e,(U_(t)?t.priority:0)+1)),0))}};function zC(e){return!1!==e.idle}function PC(e){return!e.size||Array.from(e).every(zC)}function AC(e){e.idle||(e.idle=!0,Ix(i_(e),(e=>{e.done=!0})),DS(e,{type:"idle",parent:e}))}ux.assign({createStringInterpolator:US,to:(e,t)=>new kC(e,t)});Gx.advance;var DC=/^--/;function TC(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||DC.test(e)||MC.hasOwnProperty(e)&&MC[e]?(""+t).trim():t+"px"}var IC={};var MC={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},NC=["Webkit","Ms","Moz","O"];MC=Object.keys(MC).reduce(((e,t)=>(NC.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),MC);var OC=/^(matrix|translate|scale|rotate|skew)/,jC=/^(translate)/,RC=/^(rotate|skew)/,FC=(e,t)=>Dx.num(e)&&0!==e?e+t:e,BC=(e,t)=>Dx.arr(e)?e.every((e=>BC(e,t))):Dx.num(e)?e===t:parseFloat(e)===t,LC=class extends u_{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=>FC(e,"px"))).join(",")})`,BC(e,0)]))),Mx(r,((e,t)=>{if("transform"===t)o.push([e||""]),i.push((e=>[e,""===e]));else if(OC.test(t)){if(delete r[t],Dx.und(e))return;const n=jC.test(t)?"px":RC.test(t)?"deg":"";o.push(Nx(e)),i.push("rotate3d"===t?([e,t,r,o])=>[`rotate3d(${e},${t},${r},${FC(o,n)})`,BC(o,0)]:e=>[`${t}(${e.map((e=>FC(e,n))).join(",")})`,BC(e,t.startsWith("scale")?1:0)])}})),o.length&&(r.transform=new VC(o,i)),super(r)}},VC=class extends TS{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 Ix(this.inputs,((n,r)=>{const o=PS(n[0]),[i,a]=this.transforms[r](Dx.arr(o)?o:n.map(PS));e+=" "+i,t=t&&a})),t?"none":e}observerAdded(e){1==e&&Ix(this.inputs,(e=>Ix(e,(e=>zS(e)&&MS(e,this)))))}observerRemoved(e){0==e&&Ix(this.inputs,(e=>Ix(e,(e=>zS(e)&&NS(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),DS(this,e)}};ux.assign({batchedUpdates:c.unstable_batchedUpdates,createStringInterpolator:US,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 KC=((e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:n=(e=>new u_(e)),getComponentProps:r=(e=>e)}={})=>{const o={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=e=>{const t=v_(e)||"Anonymous";return(e=Dx.str(e)?i[e]||(i[e]=f_(e,o)):e[g_]||(e[g_]=f_(e,o))).displayName=`Animated(${t})`,e};return Mx(e,((t,n)=>{Dx.arr(e)&&(n=v_(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:IC[t]||(IC[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=TC(t,r[t]);DC.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 LC(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),$C=KC.animated,HC=n(13825);function UC(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 qC(e){let{onResize:t,commentThread:n,comments:r}=e;const o=(0,s.d4)((e=>e)),{maxMentionSuggestions:i,anonymousComments:l,keepSelectedTool:c,mentionableUsers:d}=o,p=(0,Ky.Bi)(),{formatMessage:h}=(0,sl.useI18n)(),f=(0,s.wA)(),m=(0,u.useRef)(null);(0,u.useEffect)((()=>{const e=m.current;if(!e||!t)return;const n=new ResizeObserver((e=>t?.(e[0])));return n.observe(e),()=>n.disconnect()}),[t]);const g=n.map((e=>{const t=r.get(e);return(0,rd.V1)(t),t})).toList(),v=g?.find((e=>(0,Ia.Jm)(e))),y=(0,u.useMemo)((()=>g.filter((e=>!(0,Ia.Jm)(e))).map(((e,t,n)=>function(e,t,n,r,o){const i=(0,mn.kH)(e,r),a=!!(0,lr.Kt)(e,r),s=!!(0,lr.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,rd.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:HC.E.COMMENT_THREAD,object:e})||(0,ee.jsx)(sl.DateFormat,{date:e.createdAt,hour12:!0,hour:"numeric",minute:"numeric",month:"short",day:"numeric"}),...(p||0===t)&&{name:e.isAnonymous?o(be.A.anonymous):e.creatorName||o(be.A.anonymous),avatarProps:{name:e.isAnonymous?"?":e.creatorName||"?",className:"PSPDFKit-Comment-Avatar"}}}}(e,t,n,o,h))).toJS()),[g,o,h]),b=u.useCallback((e=>{if(!(0,Zt.lb)(e))return;const t=0===y.length;(0,rd.V1)(v);const n=v.set("text",{format:"xhtml",value:UC(e)}),r=n.rootId;(0,rd.V1)(r),f((0,Cr.Sd)(n)),f((0,Cr.t6)(r)),t&&f((0,ve.TT)((0,a.NZ)([r]),null)),c&&f((0,Pt.WN)())}),[y,v,f,c]),w=(0,u.useCallback)(((e,t)=>{const n=r.get(e);(0,rd.V1)(n);const o=n.set("isAnonymous",t);f((0,Cr.m5)((0,a.B8)([o])))}),[r,f]),x=(0,u.useCallback)((e=>{const t=r.get(e);(0,rd.V1)(t),f((0,Cr.qu)(t))}),[r,f]),S=(0,u.useCallback)(((e,t)=>{const n=r.get(e);(0,rd.V1)(n);const o=n.set("text",{format:"xhtml",value:UC(t)});f((0,Cr.Sd)(o,n)),c&&f((0,Pt.WN)())}),[r,f,c]),_=(0,u.useMemo)((()=>l?[{type:"toggle",props:{"aria-label":h(be.A.anonymous),icon:dd.hx,onPress:()=>w(v?.id||"",!0),isSelected:!!v?.isAnonymous}}]:[]),[l,v?.id,v?.isAnonymous,h,w]);return{comments:y,titleId:p,mentionableUsers:d,maxMentionableUsersSuggestions:i,onAnonymousToggle:w,onDelete:x,onCommentUpdate:S,onCommentAdd:b,editorFooterButtons:_,ref:m,className:"PSPDFKit-Comment-Thread",allowCommentCreation:!!v,defaultEditorValue:v?.text.value||void 0,renderAvatar:o.customRenderers?.CommentAvatar}}function WC(e,t){if(!e)return!1;let n=!1;if((0,Ia.aX)(e,t)){const r=e?.last();(0,rd.V1)(null!=r);const o=t.get(r);(0,rd.V1)(null!=o),n=o.text.value.length>0}return n}const GC="PSPDFKit-CommentThread-Root";const YC=e=>{let{annotation:t,commentThread:n,comments:r}=e;const o=(0,s.wA)(),i=(0,s.d4)((e=>e.instance)),a=(0,s.d4)((e=>e.ui?.[dl.Rq.CommentThread])),l=(0,s.d4)((e=>e.viewportState)),c=(0,s.d4)((e=>e.rootElement)),d=qC({commentThread:n,comments:r}),h=(0,u.useMemo)((()=>{const e=c?.getBoundingClientRect(),n=(0,q.zo)(l,t.pageIndex);return t.boundingBox.apply(n).translate(new k.bR({y:-e.top,x:-e.left}))}),[t.boundingBox,t.pageIndex,c,l]),f=(0,u.useMemo)((()=>({...d,variant:"popover",className:p()(d.className,{"PSPDFKit-Comment-Thread-Selected":!0,"PSPDFKit-Comment-Thread-Expanded":!0})})),[d]),m=(0,u.useMemo)((()=>({dialogTitleId:d.titleId,variant:"popover",referenceRect:h.toJS(),onOutsideClick:()=>{o((0,ve.J9)())},boundaryElement:c??void 0})),[d.titleId,o,h,c]);return(0,pl.Q)(dl.Rq.CommentThread,a,f,i,m)},ZC=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?.[dl.Rq.CommentThread])),h=qC({onResize:n,commentThread:i,comments:l}),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,Ia.rO)(i,l),w=y?.id===t.id||WC(i,l),x=(0,u.useCallback)((()=>{w||(f((0,Cr.tT)()),f((0,ve.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,ve.J9)()):(f((0,Cr.tT)()),f((0,ve.TT)((0,a.NZ)([t.id]),null))))},onEditorValueChange:e=>{b&&f((0,Cr.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,pl.Q)(dl.Rq.CommentThread,d,S,m,_)};const JC=()=>{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=u.useRef(null),a=u.useMemo((()=>{const e=(0,q.z1)(n);return Math.ceil(e.left)+e.width+n.viewportPadding.x}),[n]),{threadInfo:c,updatePosition:d,totalHeight:h}=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===od.S.SINGLE?2:4,p=u.useMemo((()=>{if(c===na.V.PER_SPREAD||c===na.V.DISABLED){const e=(0,Gi.dD)(r,(0,Gi.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,Ia.D_)(o,r):-1})).toJSON()).sort(((e,t)=>e[1]-t[1]))),[t,p,r]),[f,m]=u.useState(p.map(((e,t)=>({rootId:t,top:0,isVisible:!1}))).toList().toJS()),g=t.get(o.first()),v=(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,rd.V1)(s);const c=e.current?.querySelector(`.${GC}[data-root-id="${o}"]`)?.clientHeight||0,u=Math.max(s,i.current);return g?.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})));m(r)}),[t,h,a,d,e,g]);return(0,u.useLayoutEffect)(v,[v,p]),{threadInfo:f,updatePosition:v,totalHeight:i.current}}(i),f=e.get(t.first()),m=f&&r.get(f?.id);return n.commentMode===Xf.X.PANE||n.zoomMode===Ji.d.FIT_TO_WIDTH?f&&m?(0,ee.jsx)(YC,{annotation:f,commentThread:m,comments:o}):null:(0,ee.jsx)("aside",{style:{transform:`translate(${a}px)`,height:h+2*n.viewportPadding.y},ref:i,className:p()((0,nd.UV)({position:"absolute"}),"_1gtjs4n0","PSPDFKit-Comment-Threads"),children:c?.filter(Boolean).map((e=>((0,l.V1)(e),(0,ee.jsx)(XC,{...e,updatePosition:d},e.rootId))))})},XC=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,he.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=WC(h,a),m=u.useRef(!0),g=c.every((e=>null===e.id)),v=!(!d||d.id!==i?.id),y=v||f,[b,w]=EC((()=>({transform:`translate(${v&&g&&!m?-40:0}px, ${n}px)`,opacity:g?0:1,immediate:!r,config:I_.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(QC.commentThread):l(QC.commentDialogClosed,{arg0:x.first()?.creatorName,arg1:x.first()?.text.value}),_=(0,u.useRef)(null);return i&&"number"==typeof i.pageIndex&&h?(0,ee.jsx)($C.div,{className:p()("_1gtjs4n1",GC),"data-root-id":t,style:{visibility:r?void 0:"hidden",zIndex:v?999:0,...b},ref:_,children:(0,ee.jsx)(ZC,{annotation:i,"aria-label":S,onResize:o,commentThread:h,comments:a,containerRef:_})},t):null},QC=(0,he.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 eE=n(52971);function tE(){const e=(0,s.wA)(),{formatMessage:t}=(0,he.tz)();return(0,ee.jsx)(sl.Modal,{isOpen:!0,children:(0,ee.jsx)(sl.ModalContent,{children:(0,ee.jsx)(sl.AlertDialog,{title:t(Oh.ceDownloadRequiredTitle),message:t(Oh.ceDownloadRequiredMessage),primaryActionLabel:t(Oh.ceDownloadRequiredButton),cancelLabel:t(be.A.cancel),icon:eE.S_,iconColor:"var(--bui-color-support-info-medium)",onPrimaryAction:()=>{(0,s.vA)((()=>{e({type:V.psz,promptContentEditorDocumentDownload:!1}),e({type:V.zD7,isServerModeDownloadingDocument:!0})})),e(Dh.dV)},onCancel:()=>{e({type:V.psz,promptContentEditorDocumentDownload:!1})},showCloseButton:!1})})})}var nE=n(85410);function rE(){const e=(0,s.wA)(),{formatMessage:t}=(0,he.tz)();return(0,ee.jsx)(sl.Modal,{isOpen:!0,children:(0,ee.jsx)(sl.ModalContent,{children:(0,ee.jsx)(sl.AlertDialog,{title:t(Oh.ceCannotSaveChangesTitle),message:t(Oh.ceCannotSaveChangesMessage),primaryActionLabel:t(Oh.ceCannotSaveChangesButton),cancelLabel:t(Oh.ceCannotSaveChangesReviewButton),icon:eE.AK,iconColor:"var(--bui-color-support-warning-medium)",onPrimaryAction:()=>{e({type:V.kZs,promptContentEditorCannotSaveChanges:!1}),e(Dh.hi)},onCancel:()=>{e({type:V.kZs,promptContentEditorCannotSaveChanges:!1})},showCloseButton:!0})})})}function oE(e){let{intlMessageDescriptor:t}=e;const{formatMessage:n}=(0,he.tz)();return(0,ee.jsx)(sl.Modal,{isOpen:!0,children:(0,ee.jsx)(sl.ModalContent,{children:(0,ee.jsx)(sl.ProgressSpinner,{label:n(t),className:hv().progressSpinner})})})}const{createToggleIconButtonToolbarItem:iE,createActionIconButtonToolbarItem:aE}=wl.XD;const{createToggleIconButtonToolbarItem:sE}=wl.XD;const{createTaggedPaginationToolbarItem:lE,createReactElementToolbarItem:cE}=wl.XD;function uE(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:dE,createActionIconButtonToolbarItem:pE}=wl.XD;function hE(){const{formatMessage:e}=(0,sl.useI18n)(),t=(0,s.wA)(),n=(0,s.d4)((e=>e.interactionMode)),r=(0,s.d4)((e=>(0,mn.Ko)(e))),o=(0,s.d4)((e=>e.aiDocumentAssistant.show)),i=(0,s.d4)((e=>e.contentEditorSession.dirty)),a=(0,s.d4)((e=>e.connectionState.name===Mi.D.DOWNLOADING_DOCUMENT)),c=n===F.O.CONTENT_EDITOR||a,d=(0,s.d4)((e=>(0,ev.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 k.Eo||e instanceof k.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=uE(e,p);h=()=>{t(),window.URL.revokeObjectURL(e)}}else{const e=new FileReader;e.onloadend=()=>{h=uE(e.result,u)},e.readAsDataURL(d)}window.setTimeout(h,1e3)}}())}),[t]),f=(0,u.useCallback)((()=>{t(o?(0,Pt.LG)(!1):(0,Pt.LG)(!0))}),[t,o]),m=(0,u.useCallback)((()=>{t((0,ve.J9)()),n===F.O.DOCUMENT_CROP?t((0,Pt.lH)()):t((0,Pt.qx)())}),[t,n]),g=(0,u.useCallback)((()=>{t((0,ve.J9)()),t(p?(0,Pt.FS)(null):(0,Pt.FS)(Xg.w3))}),[t,p]);return{[ua.rh.EXPORT_PDF]:{toolbarItem:pE(ua.rh.EXPORT_PDF,{className:"PSPDFKit-Toolbar-Button-Export-PDF","aria-label":e(be.A.export),isDisabled:c||!r,onPress:h,icon:bl.s3U})},[ua.rh.CONTENT_EDITOR]:{toolbarItem:dE(ua.rh.CONTENT_EDITOR,{className:"PSPDFKit-Toolbar-Button-Content-Editor",icon:bl.rKj,onPress:()=>{n===F.O.CONTENT_EDITOR?t(i?(0,Dh.Lm)(!0):Dh.hi):t(Dh.eR)},isSelected:n===F.O.CONTENT_EDITOR,"aria-label":e(be.A.contentEditor)})},[ua.rh.DOCUMENT_ASSISTANT]:{toolbarItem:dE(ua.rh.DOCUMENT_ASSISTANT,{className:"PSPDFKit-Toolbar-Button-Document-Assistant",isSelected:o,onPress:f,"aria-label":"Document AI",icon:bl.KHA})},[ua.rh.DOCUMENT_EDITOR]:{toolbarItem:dE(ua.rh.DOCUMENT_EDITOR,{className:"PSPDFKit-Toolbar-Button-Document-Editor PSPDFKit-Toolbar-Button PSPDFKit-Tool-Button","aria-label":e(be.A.documentEditor),isSelected:n===F.O.DOCUMENT_EDITOR,icon:bl.N2p,isDisabled:c,onPress:()=>{t((0,ve.J9)()),t((0,Pt.c1)())}}),dropdownGroup:ua.gL.EDITOR},[ua.rh.DOCUMENT_CROP]:{toolbarItem:dE(ua.rh.DOCUMENT_CROP,{className:"PSPDFKit-Toolbar-Button-Document-Crop PSPDFKit-Toolbar-Button PSPDFKit-Tool-Button","aria-label":e(be.A.documentCrop),icon:bl.K1E,isSelected:n===F.O.DOCUMENT_CROP,isDisabled:c,onPress:m}),dropdownGroup:ua.gL.EDITOR},[ua.rh.DOCUMENT_COMPARISON]:{toolbarItem:dE(ua.rh.DOCUMENT_COMPARISON,{className:"PSPDFKit-Toolbar-Button-Document-Comparison","aria-label":e(be.A.documentComparison),icon:bl.Z$6,isDisabled:c,onPress:g,isSelected:p}),isHidden:!d,dropdownGroup:ua.gL.EDITOR}}}var fE;const{createReactElementToolbarItem:mE}=wl.XD;function gE(){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=uu._.includes(e.get("type")),t):"document-editor"===e.get("type")||"document-crop"===e.get("type")?(t=(0,mn.SH)({features:n,backendPermissions:o,documentPermissions:i,readOnlyEnabled:a}),!t&&n.size>0&&(n.includes(X.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,mn.Wm)({features:n,backendPermissions:o,documentPermissions:i,readOnlyEnabled:a}),!t&&n.size>0&&(n.includes(X.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!==Q.g.VIA_VIEW_STATE&&a!==Q.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,mn.kl)({features:n,backend:r})&&(0,Ia.mx)({showComments:s,features:n,backend:r}),!t&&n.size>0&&(n.includes(X.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(X.Y.MEASUREMENT_TOOLS),!t&&n.size>0&&(n.includes(X.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):"ai-document-assistant"!==e.get("type")||(t=n.includes(X.Y.DOCUMENT_ASSISTANT),!t&&n.size>0&&(n.includes(X.Y.DOCUMENT_ASSISTANT)||(0,l.R8)(`The '${e.get("type")}' toolbar item type is not allowed without the Document Assistant 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:vE,createButtonSelectToolbarItem:yE,createActionIconButtonToolbarItem:bE}=wl.XD,wE=`(max-width: ${Ye.JY.BREAKPOINT_MD_TOOLBAR}px)`,xE=["pan","zoom-in","zoom-out","fit-page","fit-width","spacer","export-pdf","document-comparison"];function SE(e){const t=gE(),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===Mi.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,mn.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)),v=(0,s.d4)((e=>e.connectionState.name===Mi.D.DOWNLOADING_DOCUMENT)),y=(0,u.useCallback)(((e,t)=>(0,mn.W3)(e,{features:d,backend:p,backendPermissions:h,documentPermissions:f,readOnlyEnabled:m,editableAnnotationTypes:g},t)),[p,h,f,g,d,m]),b=(0,s.d4)((e=>e.shadowRoot)),w=(0,s.d4)((e=>e.eventEmitter)),x=(0,s.d4)((e=>e.viewportState.currentPageIndex)),{formatMessage:S}=(0,sl.useI18n)(),_=o===F.O.CONTENT_EDITOR||v,C=(0,u.useCallback)((e=>{"keyboard"===e.pointerType?(l((0,ve.J9)()),l((0,at.yk)())):(l((0,ve.J9)()),o===F.O.NOTE&&ua.fG.NOTE===r?(l((0,at.iE)(null)),l((0,Pt.w9)())):(l((0,at.iE)(ua.fG.NOTE)),l((0,Pt.R8)())))}),[r,l,o]),E=(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",S(td.G.selectImage)),e.onchange=t=>{t.target.files?.[0]&&(l((0,ve.J9)()),l((0,at.iE)("image")),l((0,at.vs)(t.target.files?.[0])),l((0,Pt.CM)(S(td.G.newAnnotationCreated,{arg0:"image"}))),t.target.value="",e.remove())},b?.appendChild(e);try{const t={annotations:(0,a.B8)([new k.vU({pageIndex:x})]),reason:J.x.SELECT_START};w.emit("annotations.willChange",t),l((0,Pt.CM)(S(td.G.selectAFileForImage))),e.click()}catch{e.setAttribute("aria-hidden","true");const t={annotations:(0,a.B8)(),reason:J.x.SELECT_END};w.emit("annotations.willChange",t)}}),[x,l,w,S,b]),z=(0,u.useCallback)(((e,t,n)=>{l((0,ve.J9)()),o===t&&n===r?(l((0,at.iE)(null)),l((0,Pt.NP)())):(l((0,at.iE)(n)),l((0,Pt.kJ)(e,t)))}),[r,l,o]),P=(0,u.useCallback)((()=>{l((0,ve.J9)()),o===F.O.STAMP_PICKER?l((0,Pt.LD)()):l((0,Pt.A5)())}),[l,o]),A=(0,u.useCallback)((()=>{l((0,ve.J9)()),o===F.O.INK_SIGNATURE||o===F.O.SIGNATURE?(l((0,at.iE)(null)),l((0,Pt._Q)())):(l((0,at.iE)(i===Kn.g.ELECTRONIC_SIGNATURES?ua.fG.ES_SIGNATURE:ua.fG.INK_SIGNATURE)),l((0,Pt.tJ)()))}),[l,o,i]),D=(0,u.useCallback)((()=>{l((0,ve.J9)()),o===F.O.LINK&&ua.fG.LINK===r?(l((0,at.iE)(null)),l((0,Pt.E7)())):(l((0,at.iE)(ua.fG.LINK)),l((0,Pt.tE)()))}),[l,o,r]),T=(0,u.useCallback)((()=>{l((0,ve.J9)()),o===F.O.INK&&ua.fG.INK===r?(l((0,at.iE)(null)),l((0,Pt.m9)())):(l((0,at.iE)(ua.fG.INK)),l((0,Pt.nB)()))}),[l,o,r]),I=(0,u.useCallback)((()=>{l((0,ve.J9)()),o===F.O.INK_ERASER?(l((0,at.iE)(null)),l((0,Pt.cS)())):(l((0,at.iE)(ua.fG.INK)),l((0,Pt.t4)()))}),[l,o]),M=(0,u.useCallback)((()=>{l((0,ve.J9)()),o===F.O.INK&&ua.fG.HIGHLIGHTER===r?(l((0,at.iE)(null)),l((0,Pt.m9)())):(l((0,at.iE)(ua.fG.HIGHLIGHTER)),l((0,Pt.nB)()))}),[l,o,r]),N=(0,u.useCallback)((()=>{l((0,ve.J9)()),o===F.O.TEXT_HIGHLIGHTER&&ua.fG.TEXT_HIGHLIGHTER===r?l((0,Pt.iw)()):l((0,Pt.D8)(ua.fG.TEXT_HIGHLIGHTER))}),[l,o,r]);return{[ua.rh.ANNOTATE]:{toolbarItem:aE(ua.rh.ANNOTATE,{className:"PSPDFKit-Toolbar-Button-Annotate",icon:bl.G8h,"aria-label":S(be.A.annotations),isDisabled:_,onPress:()=>t(ua.rh.ANNOTATE)}),mediaQueries:[`(max-width: ${Ye.JY.BREAKPOINT_MD_TOOLBAR}px)`],isHidden:y(k.YH)},[ua.rh.NOTE]:{toolbarItem:iE(ua.rh.NOTE,{className:"PSPDFKit-Toolbar-Button-Note-Annotation",isSelected:o===F.O.NOTE&&"note"===n,onPress:C,icon:bl.ncu,"aria-label":S(be.A.noteAnnotation),isDisabled:_}),preset:ua.fG.NOTE,responsiveGroup:"annotate",isHidden:y(k.s9)},[ua.rh.SIGNATURE]:{toolbarItem:iE(ua.rh.SIGNATURE,{className:"PSPDFKit-Toolbar-Button-InkSignature-Annotation PSPDFKit-Toolbar-Button-Signature",isSelected:o===F.O.INK_SIGNATURE||o===F.O.SIGNATURE,"aria-label":S(be.A.sign),icon:bl.kTg,isDisabled:_,onPress:A}),isHidden:i===Kn.g.NONE||c||y(k.Eo)&&i!==Kn.g.ELECTRONIC_SIGNATURES,responsiveGroup:"annotate",preset:i===Kn.g.ELECTRONIC_SIGNATURES?ua.fG.ES_SIGNATURE:ua.fG.INK_SIGNATURE},[ua.rh.IMAGE]:{toolbarItem:aE(ua.rh.IMAGE,{className:"PSPDFKit-Toolbar-Button-Image-Annotation","aria-label":S(be.A.imageAnnotation),icon:bl.xfq,isDisabled:_,onPress:E}),preset:ua.fG.IMAGE,responsiveGroup:"annotate",dropdownGroup:ua.gL.IMAGE,isHidden:y(k.vU)},[ua.rh.STAMP]:{toolbarItem:iE(ua.rh.STAMP,{className:"PSPDFKit-Toolbar-Button-Stamp-Annotation","aria-label":S(be.A.stampAnnotation),icon:bl.LV2,isDisabled:_,onPress:P,isSelected:o===F.O.STAMP_PICKER||o===F.O.STAMP_CUSTOM}),preset:ua.fG.STAMP,responsiveGroup:"annotate",dropdownGroup:ua.gL.IMAGE,isHidden:y(k.xY)},[ua.rh.LINK]:{toolbarItem:iE(ua.rh.LINK,{isSelected:o===F.O.LINK&&n===ua.rh.LINK,onPress:D,icon:bl.qYV,isDisabled:_,"aria-label":S(be.A.linkAnnotation),className:"PSPDFKit-Toolbar-Button PSPDFKit-Tool-Button PSPDFKit-Toolbar-Button-Link-Annotation"}),isHidden:y(k.UL),preset:ua.fG.LINK,responsiveGroup:"annotate",dropdownGroup:ua.gL.IMAGE},[ua.rh.INK]:{toolbarItem:iE(ua.rh.INK,{className:"PSPDFKit-Toolbar-Button-Ink-Annotation PSPDFKit-Toolbar-Button PSPDFKit-Tool-Button",isSelected:o===F.O.INK&&n===ua.rh.INK,"aria-label":S(be.A.pen),isDisabled:_,onPress:T,icon:bl.rZj}),isHidden:y(k.Eo),responsiveGroup:"annotate",dropdownGroup:ua.gL.INK,preset:ua.fG.INK},[ua.rh.INK_ERASER]:{toolbarItem:iE(ua.rh.INK_ERASER,{className:"PSPDFKit-Toolbar-Button-Ink-Eraser PSPDFKit-Toolbar-Button PSPDFKit-Tool-Button",isSelected:o===F.O.INK_ERASER,icon:bl.A5W,"aria-label":S(be.A.eraser),isDisabled:_,onPress:I}),isHidden:y(k.Eo),responsiveGroup:"annotate",dropdownGroup:ua.gL.INK,preset:ua.fG.INK},[ua.rh.HIGHLIGHTER]:{toolbarItem:iE(ua.rh.HIGHLIGHTER,{className:"PSPDFKit-Toolbar-Button-Ink-Annotation PSPDFKit-Toolbar-Button-Variant-Highlighter PSPDFKit-Toolbar-Button PSPDFKit-Tool-Button",isSelected:o===F.O.INK&&n===ua.rh.HIGHLIGHTER,icon:bl.evl,onPress:M,"aria-label":S(be.A.highlighter),isDisabled:_}),preset:ua.fG.HIGHLIGHTER,dropdownGroup:ua.gL.INK,responsiveGroup:"annotate",isHidden:y(k.Eo)},[ua.rh.TEXT_HIGHLIGHTER]:{toolbarItem:iE(ua.rh.TEXT_HIGHLIGHTER,{className:"PSPDFKit-Toolbar-Button-TextHighlighter-Annotation PSPDFKit-Toolbar-Button PSPDFKit-Tool-Button",isSelected:o===F.O.TEXT_HIGHLIGHTER&&n===ua.rh.TEXT_HIGHLIGHTER,onPress:N,icon:bl.VUW,"aria-label":S(be.A.textHighlighter),isDisabled:_}),preset:ua.fG.TEXT_HIGHLIGHTER,responsiveGroup:"annotate",isHidden:y(k.ax),dropdownGroup:ua.gL.INK},[ua.rh.LINE]:{toolbarItem:iE(ua.rh.LINE,{className:"PSPDFKit-Toolbar-Button-Shape-Annotation PSPDFKit-Toolbar-Button-Line-Annotation PSPDFKit-Toolbar-Button PSPDFKit-Tool-Button",isSelected:o===F.O.SHAPE_LINE&&n===ua.rh.LINE,onPress:()=>{z(k.MU,F.O.SHAPE_LINE,ua.fG.LINE)},icon:bl.s4F,"aria-label":S(be.A.lineAnnotation),isDisabled:_}),isHidden:y(k.MU),responsiveGroup:"annotate",dropdownGroup:ua.gL.SHAPES,preset:ua.fG.LINE},[ua.rh.ARROW]:{toolbarItem:iE(ua.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===F.O.SHAPE_LINE&&n===ua.rh.ARROW,onPress:()=>{z(k.MU,F.O.SHAPE_LINE,ua.fG.ARROW)},"aria-label":S(be.A.arrow),isDisabled:_,icon:bl.HKb}),isHidden:y(k.MU),responsiveGroup:"annotate",dropdownGroup:ua.gL.SHAPES,preset:ua.fG.ARROW},[ua.rh.RECTANGLE]:{toolbarItem:iE(ua.rh.RECTANGLE,{className:"PSPDFKit-Toolbar-Button-Shape-Annotation PSPDFKit-Toolbar-Button-Rectangle-Annotation PSPDFKit-Toolbar-Button PSPDFKit-Tool-Button",isSelected:o===F.O.SHAPE_RECTANGLE&&n===ua.rh.RECTANGLE,onPress:()=>{z(k.Zx,F.O.SHAPE_RECTANGLE,ua.fG.RECTANGLE)},"aria-label":S(be.A.rectangleAnnotation),isDisabled:_,icon:bl.$s7}),isHidden:y(k.Zx),responsiveGroup:"annotate",dropdownGroup:ua.gL.SHAPES,preset:ua.fG.RECTANGLE},[ua.rh.CLOUDY_RECTANGLE]:{toolbarItem:iE(ua.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===F.O.SHAPE_RECTANGLE&&n===ua.rh.CLOUDY_RECTANGLE,onPress:()=>{z(k.Zx,F.O.SHAPE_RECTANGLE,ua.fG.CLOUDY_RECTANGLE)},"aria-label":S(be.A.cloudyRectangleAnnotation),isDisabled:_,icon:bl.Lg9}),isHidden:y(k.Zx),responsiveGroup:"annotate",dropdownGroup:ua.gL.SHAPES,preset:ua.fG.CLOUDY_RECTANGLE},[ua.rh.DASHED_RECTANGLE]:{toolbarItem:iE(ua.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===F.O.SHAPE_RECTANGLE&&n===ua.rh.DASHED_RECTANGLE,onPress:()=>{z(k.Zx,F.O.SHAPE_RECTANGLE,ua.fG.DASHED_RECTANGLE)},"aria-label":S(be.A.dashedRectangleAnnotation),isDisabled:_,icon:bl.ip0}),isHidden:y(k.Zx),responsiveGroup:"annotate",dropdownGroup:ua.gL.SHAPES,preset:ua.fG.DASHED_RECTANGLE},[ua.rh.ELLIPSE]:{toolbarItem:iE(ua.rh.ELLIPSE,{className:"PSPDFKit-Toolbar-Button-Shape-Annotation PSPDFKit-Toolbar-Button-Ellipse-Annotation PSPDFKit-Toolbar-Button PSPDFKit-Tool-Button",isSelected:o===F.O.SHAPE_ELLIPSE&&n===ua.rh.ELLIPSE,onPress:()=>{z(k.Go,F.O.SHAPE_ELLIPSE,ua.fG.ELLIPSE)},"aria-label":S(be.A.ellipseAnnotation),isDisabled:_,icon:bl.YlR}),isHidden:y(k.Go),responsiveGroup:"annotate",dropdownGroup:ua.gL.SHAPES,preset:ua.fG.ELLIPSE},[ua.rh.CLOUDY_ELLIPSE]:{toolbarItem:iE(ua.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===F.O.SHAPE_ELLIPSE&&n===ua.rh.CLOUDY_ELLIPSE,onPress:()=>{z(k.Go,F.O.SHAPE_ELLIPSE,ua.fG.CLOUDY_ELLIPSE)},"aria-label":S(be.A.cloudyEllipseAnnotation),isDisabled:_,icon:bl.ErD}),isHidden:y(k.Go),responsiveGroup:"annotate",dropdownGroup:ua.gL.SHAPES,preset:ua.fG.CLOUDY_ELLIPSE},[ua.rh.DASHED_ELLIPSE]:{toolbarItem:iE(ua.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===F.O.SHAPE_ELLIPSE&&n===ua.rh.DASHED_ELLIPSE,onPress:()=>{z(k.Go,F.O.SHAPE_ELLIPSE,ua.fG.DASHED_ELLIPSE)},"aria-label":S(be.A.dashedEllipseAnnotation),isDisabled:_,icon:bl.bt$}),isHidden:y(k.Go),responsiveGroup:"annotate",dropdownGroup:ua.gL.SHAPES,preset:ua.fG.DASHED_ELLIPSE},[ua.rh.POLYGON]:{toolbarItem:iE(ua.rh.POLYGON,{className:"PSPDFKit-Toolbar-Button-Shape-Annotation PSPDFKit-Toolbar-Button-Polygon-Annotation PSPDFKit-Toolbar-Button PSPDFKit-Tool-Button",isSelected:o===F.O.SHAPE_POLYGON&&n===ua.rh.POLYGON,onPress:()=>{z(k.Si,F.O.SHAPE_POLYGON,ua.fG.POLYGON)},"aria-label":S(be.A.polygonAnnotation),isDisabled:_,icon:bl.qcG}),isHidden:y(k.Si),responsiveGroup:"annotate",dropdownGroup:ua.gL.SHAPES,preset:ua.fG.POLYGON},[ua.rh.CLOUDY_POLYGON]:{toolbarItem:iE(ua.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===F.O.SHAPE_POLYGON&&n===ua.rh.CLOUDY_POLYGON,onPress:()=>{z(k.Si,F.O.SHAPE_POLYGON,ua.fG.CLOUDY_POLYGON)},"aria-label":S(be.A.cloudyPolygonAnnotation),isDisabled:_,icon:bl.gXF}),isHidden:y(k.Si),responsiveGroup:"annotate",dropdownGroup:ua.gL.SHAPES,preset:ua.fG.CLOUDY_POLYGON},[ua.rh.DASHED_POLYGON]:{toolbarItem:iE(ua.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===F.O.SHAPE_POLYGON&&n===ua.rh.DASHED_POLYGON,onPress:()=>{z(k.Si,F.O.SHAPE_POLYGON,ua.fG.DASHED_POLYGON)},"aria-label":S(be.A.dashedPolygonAnnotation),isDisabled:_,icon:bl.b$9}),isHidden:y(k.Si),responsiveGroup:"annotate",dropdownGroup:ua.gL.SHAPES,preset:ua.fG.DASHED_POLYGON},[ua.rh.POLYLINE]:{toolbarItem:iE(ua.rh.POLYLINE,{className:"PSPDFKit-Toolbar-Button-Shape-Annotation PSPDFKit-Toolbar-Button-Polyline-Annotation PSPDFKit-Toolbar-Button PSPDFKit-Tool-Button",isSelected:o===F.O.SHAPE_POLYLINE&&n===ua.rh.POLYLINE,onPress:()=>{z(k.ug,F.O.SHAPE_POLYLINE,ua.fG.POLYLINE)},"aria-label":S(be.A.polylineAnnotation),isDisabled:_,icon:bl.QPM}),isHidden:y(k.ug),responsiveGroup:"annotate",dropdownGroup:ua.gL.SHAPES,preset:ua.fG.POLYLINE},[ua.rh.COMMENT]:{toolbarItem:iE(ua.rh.COMMENT,{className:"PSPDFKit-Toolbar-Button-Comment-Marker-Annotation",isSelected:o===F.O.COMMENT_MARKER,"aria-label":S(be.A.comment),icon:bl.Twg,isDisabled:_,onPress:e=>{"keyboard"===e.pointerType?(l((0,ve.J9)()),l((0,Cr.zQ)())):(l((0,ve.J9)()),o===F.O.COMMENT_MARKER?l((0,Pt.xS)()):l((0,Pt.WN)()))}}),responsiveGroup:"annotate",isHidden:y(k.dG)},[ua.rh.REDACT_TEXT_HIGHLIGHTER]:{toolbarItem:iE(ua.rh.REDACT_TEXT_HIGHLIGHTER,{className:"PSPDFKit-Toolbar-Button-RedactTextHighlighter-Annotation PSPDFKit-Toolbar-Button PSPDFKit-Tool-Button",isSelected:o===F.O.REDACT_TEXT_HIGHLIGHTER,icon:bl.nMq,"aria-label":S(be.A.textRedaction),isDisabled:_,onPress:()=>{l((0,ve.J9)()),o===F.O.REDACT_TEXT_HIGHLIGHTER&&"redaction"===r?l((0,Pt.jQ)()):l((0,Pt.eW)("redaction"))}}),responsiveGroup:"annotate",dropdownGroup:ua.gL.REDACTION,preset:ua.fG.REDACTION,isHidden:y(ie.h5)},[ua.rh.REDACT_RECTANGLE]:{toolbarItem:iE(ua.rh.REDACT_RECTANGLE,{className:"PSPDFKit-Toolbar-Button-Redaction-Annotation PSPDFKit-Toolbar-Button-Rectangle-Redaction-Annotation PSPDFKit-Toolbar-Button PSPDFKit-Tool-Button",isSelected:o===F.O.REDACT_SHAPE_RECTANGLE,icon:bl.e_J,"aria-label":S(be.A.areaRedaction),isDisabled:_,onPress:()=>{l((0,ve.J9)()),o===F.O.REDACT_SHAPE_RECTANGLE&&"redaction"===r?l((0,Pt.He)()):l((0,Pt.Gh)("redaction"))}}),responsiveGroup:"annotate",dropdownGroup:ua.gL.REDACTION,preset:ua.fG.REDACTION,isHidden:y(ie.h5)},[ua.rh.FORM_CREATOR]:{toolbarItem:iE(ua.rh.FORM_CREATOR,{className:"PSPDFKit-Toolbar-Button-Form-Creator","aria-label":S(be.A.formCreator),icon:bl.X5L,isSelected:(0,Me.$_)(o),isDisabled:_,preventFocusOnPress:!0,onPress:()=>{l((0,ve.J9)()),(0,Me.$_)(o)?l((0,En.Lg)()):l((0,En.SM)())}}),isHidden:y(k.sb)},[ua.rh.TEXT]:{toolbarItem:iE(ua.rh.TEXT,{className:"PSPDFKit-Toolbar-Button-Text-Annotation","aria-label":S(be.A.textAnnotation),icon:bl.$o6,isDisabled:_,isSelected:o===F.O.TEXT,onPress:e=>{"keyboard"===e.pointerType?(l((0,ve.J9)()),l((0,at.js)())):(l((0,ve.J9)()),o===F.O.TEXT&&ua.fG.TEXT===r?(l((0,at.iE)(null)),l((0,Pt.l$)())):(l((0,at.iE)(ua.fG.TEXT)),l((0,Pt.K3)())))}}),dropdownGroup:ua.gL.TEXT,preset:ua.fG.TEXT,responsiveGroup:"annotate",isHidden:y(k.dh)},[ua.rh.CALLOUT]:{toolbarItem:iE(ua.rh.CALLOUT,{className:"PSPDFKit-Toolbar-Button-Callout-Annotation","aria-label":S(be.A.calloutAnnotation),icon:bl.RnU,isDisabled:_,isSelected:o===F.O.CALLOUT,onPress:()=>{l((0,ve.J9)()),o===F.O.CALLOUT&&ua.fG.CALLOUT===r?(l((0,at.iE)(null)),l((0,Pt.l$)())):(l((0,at.iE)(ua.fG.CALLOUT)),l((0,Pt.NW)()))}}),responsiveGroup:"annotate",preset:ua.fG.CALLOUT,dropdownGroup:ua.gL.TEXT,isHidden:y(k.dh)},[ua.rh.MEASURE]:{toolbarItem:iE(ua.rh.MEASURE,{className:"PSPDFKit-Toolbar-Button-Measurement-Annotation","aria-label":S(be.A.measurement),icon:bl.soG,isDisabled:_,isSelected:o===F.O.MEASUREMENT||o===F.O.DISTANCE||o===F.O.PERIMETER||o===F.O.RECTANGLE_AREA||o===F.O.POLYGON_AREA||o===F.O.ELLIPSE_AREA,onPress:()=>{l((0,ve.J9)()),o===F.O.MEASUREMENT&&ua.fG.MEASUREMENT===r?(l((0,at.iE)(null)),l((0,Pt.gw)())):(l((0,at.iE)(ua.fG.MEASUREMENT)),l((0,Pt.zB)()))}}),responsiveGroup:"annotate",preset:ua.fG.MEASUREMENT,isHidden:y(k.YH)}}}({setExpandedResponsiveGroup:d,lastSelectedToolbarItemType:p}),m=function(){const e=(0,s.wA)(),{formatMessage:t}=(0,sl.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===Mi.D.DOWNLOADING_DOCUMENT)),a=r===F.O.CONTENT_EDITOR;return{[ua.rh.SIDEBAR_THUMBNAILS]:{toolbarItem:sE(ua.rh.SIDEBAR_THUMBNAILS,{className:"PSPDFKit-Toolbar-Button-Sidebar PSPDFKit-Toolbar-Button-Sidebar-Thumbnails","aria-label":t(td.G.thumbnails),icon:bl.LtU,isSelected:n===cc.I.THUMBNAILS,isDisabled:a,onPress:()=>{e(n===cc.I.THUMBNAILS?(0,Pt.hP)():(0,Pt.RX)())}}),dropdownGroup:ua.gL.SIDEBAR},[ua.rh.SIDEBAR_DOCUMENT_OUTLINE]:{toolbarItem:sE(ua.rh.SIDEBAR_DOCUMENT_OUTLINE,{className:"PSPDFKit-Toolbar-Button-Sidebar PSPDFKit-Toolbar-Button-Sidebar-Document-Outline","aria-label":t(td.G.outline),icon:bl.m_y,isSelected:n===cc.I.DOCUMENT_OUTLINE,isDisabled:a||i,onPress:()=>{e(n===cc.I.DOCUMENT_OUTLINE?(0,Pt.hP)():(0,Pt.dJ)())}}),dropdownGroup:ua.gL.SIDEBAR},[ua.rh.SIDEBAR_ANNOTATIONS]:{toolbarItem:sE(ua.rh.SIDEBAR_ANNOTATIONS,{className:"PSPDFKit-Toolbar-Button-Sidebar PSPDFKit-Toolbar-Button-Sidebar-Annotations","aria-label":t(be.A.annotations),icon:bl.G8h,isSelected:n===cc.I.ANNOTATIONS,isDisabled:a||i,onPress:()=>{e(n===cc.I.ANNOTATIONS?(0,Pt.hP)():(0,Pt.Gz)())}}),dropdownGroup:ua.gL.SIDEBAR},[ua.rh.SIDEBAR_BOOKMARKS]:{toolbarItem:sE(ua.rh.SIDEBAR_BOOKMARKS,{className:"PSPDFKit-Toolbar-Button-Bookmarks PSPDFKit-Toolbar-Button-Sidebar-Bookmarks","aria-label":t(be.A.bookmarks),icon:bl.cFy,isSelected:n===cc.I.BOOKMARKS,isDisabled:a||i,onPress:()=>{e(n===cc.I.BOOKMARKS?(0,Pt.hP)():(0,Pt.nu)())}}),dropdownGroup:ua.gL.SIDEBAR},[ua.rh.SIDEBAR_SIGNATURES]:{toolbarItem:sE(ua.rh.SIDEBAR_SIGNATURES,{className:"PSPDFKit-Toolbar-Button-Sidebar PSPDFKit-Toolbar-Button-Sidebar-Signatures","aria-label":t(be.A.signatures),icon:bl.kTg,isSelected:n===cc.I.SIGNATURES,isDisabled:a||i,onPress:()=>{e(n===cc.I.SIGNATURES?(0,Pt.hP)():(0,Pt.NI)())}}),dropdownGroup:ua.gL.SIDEBAR},[ua.rh.SIDEBAR_LAYERS]:{toolbarItem:sE(ua.rh.SIDEBAR_LAYERS,{className:"PSPDFKit-Toolbar-Button-Sidebar PSPDFKit-Toolbar-Button-Sidebar-Layers","aria-label":t(be.A.layers),icon:bl.mLz,isSelected:n===cc.I.LAYERS,isDisabled:a||i,onPress:()=>{e(n===cc.I.LAYERS?(0,Pt.hP)():(0,Pt.eZ)())}}),dropdownGroup:ua.gL.SIDEBAR,isHidden:!o}}}(),g=function(){const e=(0,s.d4)((e=>e.pages)),t=(0,s.wA)(),n=(0,s.d4)((e=>e.pages.size)),r=(0,s.d4)((e=>e.viewportState.layoutMode)),o=(0,s.d4)((e=>e.viewportState.scrollMode===na.V.DISABLED)),{formatMessage:i}=(0,sl.useI18n)(),a=(0,s.d4)((e=>e.pages.get(e.viewportState.currentPageIndex))),l=(0,s.d4)((e=>e.interactionMode)),c=(0,s.d4)((e=>e.viewportState.currentPageIndex+1)),d=l===F.O.CONTENT_EDITOR,p=(0,s.d4)((e=>e.pages.some((e=>e.pageLabel!==(e.pageIndex+1).toString())))),h=(0,u.useCallback)((r=>{if(p){const n=e.findIndex((e=>e.pageIndex+1===r));if(n>=0)return void t((0,lc.Ir)(n))}1<=r&&r<=n&&!o&&t((0,lc.Ir)(r-1))}),[t,p,o,e,n]),f=(0,sl.useDevice)(),m=(0,u.useMemo)((()=>p?Object.fromEntries(e.filter((e=>""!==e.pageLabel&&parseInt(e.pageLabel)!==e.pageIndex+1)).map((e=>[e.pageIndex+1,e.pageLabel])).toJS()):void 0),[e,p]);return{[ua.rh.PAGER]:{toolbarItem:"desktop"===f?lE(ua.rh.PAGER,{value:a?.pageIndex?a.pageIndex+1:1,onChangeSuccess:h,label:i(be.A.pageX,{arg0:""}),decrementAriaLabel:i(td.G.prevPage),incrementAriaLabel:i(td.G.nextPage),style:{width:"fit-content"},isReadOnly:o,description:`${c} / ${n}`,descriptionAriaLabel:i(be.A.pageXofY,{arg0:c,arg1:n}),minValue:1,maxValue:n,valueToLabelMap:m,size:"sm",step:r===od.S.DOUBLE?2:1,type:p?"text":"number",isDisabled:d,"data-block-class":"pager","data-block-id":"pager-tagged",className:"PSPDFKit-Page-Indicator"}):cE("pager",(0,ee.jsxs)(sl.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:[(0,ee.jsx)(sl.Box,{typography:"label.lg.medium",color:"text.primary",children:c}),(0,ee.jsxs)(sl.Box,{typography:"label.lg.medium",color:"text.secondary",children:[" ","/ ",n]})]},"pager-compact"))}}}(),v=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,mn.$n)(e))),{formatMessage:i}=(0,sl.useI18n)(),a=t===F.O.CONTENT_EDITOR,l=(0,s.d4)((e=>e.connectionState.name===Mi.D.DOWNLOADING_DOCUMENT)),c=(0,u.useCallback)((()=>{e((0,ve.J9)()),e(t===F.O.PAN?(0,lc.Ip)():(0,lc.pH)())}),[e,t]),d=(0,s.d4)((e=>e.viewportState.zoomLevel<=(0,Zi.m0)(e.viewportState))),p=(0,s.d4)((e=>e.viewportState.zoomLevel>=(0,Zi.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)),v=(0,s.d4)((e=>e.searchState)),y=(0,s.d4)((e=>e.searchProvider)),b=(0,s.d4)((e=>e.debugMode)),w=(0,s.d4)((e=>(0,mn.we)(e)));return{[ua.rh.PAN]:{toolbarItem:vd(ua.rh.PAN,{className:"PSPDFKit-Toolbar-Button-Pan",icon:bl.jNf,onPress:c,isSelected:t===F.O.PAN,"aria-label":i(td.G.panMode),isDisabled:a})},[ua.rh.ZOOM_OUT]:{toolbarItem:yd(ua.rh.ZOOM_OUT,{className:"PSPDFKit-Toolbar-Button-Zoom-Out",isDisabled:d,"aria-label":i(td.G.zoomOut),onPress:()=>{e((0,lc.ke)())},icon:bl.LoD}),mediaQueries:[fe.LZ?`(min-width: ${Ye.JY.BREAKPOINT_MD_TOOLBAR}px)`:"all"]},[ua.rh.ZOOM_IN]:{toolbarItem:yd(ua.rh.ZOOM_IN,{className:"PSPDFKit-Toolbar-Button-Zoom-In",isDisabled:p,"aria-label":i(td.G.zoomIn),onPress:()=>{e((0,lc.nF)())},icon:bl.ADv}),mediaQueries:[fe.LZ?`(min-width: ${Ye.JY.BREAKPOINT_MD_TOOLBAR}px)`:"all"]},[ua.rh.MULTI_ANNOTATIONS_SELECTION]:{toolbarItem:vd(ua.rh.MULTI_ANNOTATIONS_SELECTION,{className:"PSPDFKit-Toolbar-Button-Multiple-Annotations-Selection",icon:bl.efu,onPress:()=>{t===F.O.MULTI_ANNOTATIONS_SELECTION?e((0,Pt.Vh)()):e((0,Pt.K)())},isSelected:t===F.O.MULTI_ANNOTATIONS_SELECTION,"aria-label":i(be.A.multiAnnotationsSelection),isDisabled:!n||a||l})},[ua.rh.ZOOM_MODE]:{toolbarItem:yd(ua.rh.ZOOM_MODE,r===Ji.d.FIT_TO_VIEWPORT?{className:"PSPDFKit-Toolbar-Button-Fit-To-Width",icon:bl.tOd,onPress:()=>{e((0,lc.GL)())},isDisabled:a,"aria-label":i(td.G.fitWidth)}:{icon:bl.Hno,onPress:()=>{e((0,lc.mI)())},isDisabled:a,"aria-label":i(td.G.fitPage)}),mediaQueries:[fe.LZ?`(min-width: ${Ye.JY.BREAKPOINT_MD_TOOLBAR}px)`:"all"]},[ua.rh.MARQUEE_ZOOM]:{toolbarItem:vd(ua.rh.MARQUEE_ZOOM,{className:"PSPDFKit-Toolbar-Button-Marquee-Zoom",icon:bl.ADv,"aria-label":i(td.G.marqueeZoom),isDisabled:a,isSelected:t===F.O.MARQUEE_ZOOM,onPress:()=>{e((0,ve.J9)()),t===F.O.MARQUEE_ZOOM?e((0,Pt.GV)()):e((0,Pt.rf)())}})},[ua.rh.UNDO]:{toolbarItem:yd(ua.rh.UNDO,{className:"PSPDFKit-Toolbar-Button-Undo",icon:bl.ejX,onPress:()=>{e((0,lo.tN)())},isDisabled:a||!h||l,"aria-label":i(td.G.undo)}),isHidden:w,responsiveGroup:"annotate"},[ua.rh.REDO]:{toolbarItem:yd(ua.rh.REDO,{className:"PSPDFKit-Toolbar-Button-Redo",icon:bl.UfX,onPress:()=>{e((0,lo.ZS)())},isDisabled:a||!f||l,"aria-label":i(td.G.redo)}),isHidden:w,responsiveGroup:"annotate"},[ua.rh.LAYOUT_CONFIG]:{toolbarItem:bd(ua.rh.LAYOUT_CONFIG,cd({formatMessage:i,layoutMode:m,dispatch:e,scrollMode:g})),mediaQueries:[`(min-width: ${Ye.JY.BREAKPOINT_SM_TOOLBAR+1}px)`]},[ua.rh.SEARCH]:{toolbarItem:bd(ua.rh.SEARCH,fd({formatMessage:i,searchState:v,dispatch:e,searchProvider:y,isOpen:t===F.O.SEARCH,isDisabled:a||l}))},[ua.rh.PRINT]:{toolbarItem:yd(ua.rh.PRINT,{className:"PSPDFKit-Toolbar-Button-Print",icon:bl.hM0,"aria-label":i(td.G.print),isDisabled:a||!o||l,onPress:()=>{o&&e((0,gd.yy)())}})},[ua.rh.DEBUG]:{toolbarItem:yd(ua.rh.DEBUG,{onPress:()=>{e((0,Pt.YL)())},"aria-label":"Debug Info",icon:bl.XpJ}),isHidden:!b}}}(),y=hE(),b=function(){const{formatMessage:e}=(0,sl.useI18n)(),t=(0,s.d4)((e=>e.connectionState.name===Mi.D.DOWNLOADING_DOCUMENT));return t?{[ua.rh.LINEARIZED_DOWNLOAD_INDICATOR]:{toolbarItem:mE("linearized-download-indicator",(0,ee.jsx)(sl.Box,{display:"flex",flexDirection:"row",paddingX:"lg",gap:"sm",style:{whiteSpace:"nowrap"},className:"PSPDFKit-Linearized-Download-Indicator",title:e(td.G.documentDownloading),children:fE||(fE=(0,ee.jsx)(sl.ProgressSpinner,{}))}))}}:{}}(),w=(0,s.wA)();(0,u.useEffect)((()=>{if(r&&r in hu){const e=hu[r];Array.isArray(e)?o&&e.includes(o)?h(o):h(e[0]):"string"==typeof e&&h(e)}}),[r,o]);const x=(0,u.useMemo)((()=>({...f,...m,...g,...v,...b,...y})),[f,m,g,b,v,y]),{formatMessage:S}=(0,sl.useI18n)(),[_,C]=u.useState({}),E=e??n,z=(0,u.useMemo)((()=>(0,wd.mZ)(t,x,i,((e,t)=>{t&&function(e){const t=Object.entries(hu).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;w((0,Pt.on)(n))}))),[t,x,i,w]),P=(0,u.useMemo)((()=>{const e=l?function(e){return Object.fromEntries(Object.entries(e).filter((e=>{let[t]=e;return xE.includes(t)})))}(z):z;return Object.fromEntries(Object.entries(e).filter((e=>{let[,t]=e;return!t.isHidden&&(t.mediaQueries||[]).every((e=>E?.matchMedia(e).matches))})))}),[z,_,E,l]);(0,Yt.useGranularEffect)((()=>{const e=Object.values(P).flatMap((e=>e.mediaQueries)).filter(Boolean).filter((e=>"all"!==e?.trim())).concat(wE);if(e.length){const t=E?.matchMedia(e.join(", ")),n=()=>{C({})};return t?.addEventListener("change",n),n(),()=>{t?.removeEventListener("change",n)}}}),[t,E],[P]);const A=(0,cl.lb)(),[D,T]=(0,u.useState)({}),I=(0,u.useCallback)(((e,t)=>{const n=P[e].toolbarItem;"props"in n&&n.props.onPress({pointerType:A}),T((n=>({...n,[t]:e})))}),[P,A]),M=(0,u.useMemo)((()=>{let e=Object.values(P);const t=(0,ed.groupBy)(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||D[n],a=r.filter((e=>!e.isHidden)).map((e=>{(0,rd.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,rd.V1)(i,"Toolbar item must have a label or aria-label"),{id:t,icon:n,label:i}})),s=yE(n,{items:a,isDisabled:r.every((e=>"props"in e.toolbarItem&&e.toolbarItem.props.isDisabled)),selectedKey:i||a[0].id,className:(0,rd.xW)("PSPDFKit-Toolbar-Dropdown PSPDFKit-Toolbar-DropdownGroup",`PSPDFKit-Toolbar-DropdownGroup-${(0,Zt.ZH)(n)}`),onButtonSelectionChange:e=>{let{selectedKey:t}=e;return I(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,rd.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=>I(e,n),hideLabel:!0,moreAriaLabel:S(td.G.accessibilityLabelDropdownGroupToggle,{arg0:(0,wd.NO)(n)}),triggerClassName:"PSPDFKit-Input-Dropdown-Button","aria-label":(0,wd.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=(0,ed.groupBy)(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:bE("back",{icon:bl.JJd,onPress:()=>{w((0,ve.J9)()),d(null)},className:"PSPDFKit-Tool-Button","aria-label":S(be.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])))}),[w,c,P,S,I,D]),{items:N}=vE({itemsStore:Object.fromEntries(Object.entries(M).map((e=>{let[t,n]=e;return[t,n.toolbarItem]}))),mobileItems:Object.keys(M),emulateMobileBehaviourInTablet:!0,device:E?.matchMedia(wE).matches?"mobile":"desktop"});return{items:N,setExpandedResponsiveGroup:d}}const _E=e=>{let{resizeWatchFrameWindow:t}=e;const n=(0,s.d4)((e=>e.ui?.[dl.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}=SE(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===pc.h.TOP?{borderBottom:`1px solid ${nd.G6.color.border.medium}`}:{borderTop:`1px solid ${nd.G6.color.border.medium}`},zIndex:3},"data-block-id":"primary-toolbar",ref:i,onEscape:()=>{c(null)}})),[a,c,o]);return(0,pl.Q)(dl.Rq.PrimaryToolbar,n,d,r)};var CE=n(1889);function EE(e){let{itemList:t,renderImage:n,selectedPageIndex:r,onSelectionChange:o,setElement:i,thumbnailsDimensions:a}=e;const{formatMessage:l}=(0,he.tz)(),c=u.createRef(),d=(0,s.d4)((e=>e.ui[dl.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(kE.thumbnails),ref:i,style:{overflowY:"auto",scrollPaddingTop:nd.G6.spacing["2xl"],scrollPaddingBottom:nd.G6.spacing["2xl"]},className:p()((0,nd.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,pl.Q)(dl.Rq.Thumbnails,d,f,h)}const kE=(0,he.YK)({thumbnails:{id:"thumbnails",defaultMessage:"Thumbnails",description:"Thumbnails"}});function zE(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<=xe.DK?.55:1,selectedPageIndex:r}}),s.bN),[a,l]=u.useState(null);u.useEffect((()=>{a?.focus()}),[a]);const c=u.useMemo((()=>r.map(CE.K)),[r]),d=(0,yr.d3)(a,c),p=(0,yr.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,lc.Ir)(o)),h((0,Pt.hP)())):o!==i&&h((0,lc.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,ee.jsx)(ee.Fragment,{});const n=p?e=>{p(e,(0,CE.K)(t))}:void 0;return(0,ee.jsx)(ec,{page:t,size:xe.pp*o,maxSize:xe.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,xe.pp);return e[String(t.pageIndex)]={height:r,width:n},e}),{})),[r]);return(0,ee.jsx)(EE,{itemList:c,thumbnailsDimensions:g,renderImage:m,selectedPageIndex:i,onSelectionChange:f,setElement:l})}function PE(e,t){let n;const r=Number(e.cloudyBorderIntensity)>0,o=e.strokeDashArray?.length;return e instanceof ie.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 ie.dh?e.callout?"callout":"text":e instanceof ie.s9?"note":e instanceof ie.vU?"image":e instanceof ie.xY?"stamp":e instanceof ie.ax?"highlight":e instanceof ie.Yi?"underline":e instanceof ie.sB?"strikeOut":e instanceof ie.TI?"squiggle":e instanceof ie.UL?"link":e instanceof ie.Zx?e.isMeasurement()?"rectangle-area":r?"cloudy-rectangle":o?"dashed-rectangle":"rectangle":e instanceof ie.Go?e.isMeasurement()?"ellipse-area":r?"cloudy-ellipse":o?"dashed-ellipse":"ellipse":e instanceof ie.Si?e.isMeasurement()?"polygon-area":r?"cloudy-polygon":o?"dashed-polygon":"polygon":e instanceof ie.ug?e.isMeasurement()?"perimeter":"polyline":e instanceof ie.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 ie.sb?((0,me.V)(t),n=t.get(e.formFieldName),n instanceof Oy.uS||n instanceof Oy.O2||n instanceof Oy.sh?"form-text":n instanceof Oy.av?"form-checkbox":n instanceof Oy.Qk||n instanceof Oy.$h?"form-button":n instanceof Oy.Vw?"form-signature":null):e instanceof W.A?"redaction":e instanceof ie.KR?"media":null}const AE={text:bl.$o6,callout:eE.S$,ink:bl.rZj,highlighter:bl.evl,note:bl.ncu,highlight:dd.VU,underline:dd.qp,strikeOut:bl.dxj,squiggle:bl.So3,link:dd.qY,rectangle:bl.$s7,"cloudy-rectangle":bl.Lg9,"dashed-rectangle":bl.ip0,ellipse:dd.Yl,"cloudy-ellipse":bl.ErD,"dashed-ellipse":bl.bt$,polygon:bl.qcG,"cloudy-polygon":bl.gXF,"dashed-polygon":bl.b$9,polyline:bl.QPM,line:bl.s4F,arrow:bl.HKb,image:eE.xf,stamp:bl.LV2,redaction:bl.jZS,media:bl.npA,perimeter:bl.nlG,distance:eE.h5,"ellipse-area":bl.LPH,"rectangle-area":bl.cAn,"polygon-area":bl.XBh,"form-button":bl.Kf,"form-text":eE.fR,"form-checkbox":dd.Nr,"form-signature":eE._x},DE={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 TE(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,N.EJ)("xhtml"===e.text.format?(0,Zt.lb)(o):o);const a=DE[n]||"textAnnotation";return 0===i.length&&(i=r(be.A[a])),i}case"ink":case"highlighter":{const e=DE[n]||`${n}Annotation`;return`${r(be.A[e])}, ${r(be.A.linesCount,{arg0:t.lines.size})}`}case"note":{let e=(0,N.EJ)(t.text.value||"");return 0===e.length&&(e=r(be.A.noteAnnotation)),e}case"highlight":case"underline":case"strikeOut":case"squiggle":return r(be.A[`${n}Annotation`]);case"link":return t.action?.uri||r(be.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=DE[n]||`${n}Annotation`;return r(be.A[e])}case"image":{const{fileName:e,description:o}=t,i=(0,N.EJ)(o||"");return`${r(be.A[`${n}Annotation`])} ${e&&!i?e:""} ${i}`}case"stamp":{const e=t,{fileName:o}=e,i=(0,N.EJ)((0,_i.AO)({annotation:e,intl:{formatMessage:r}})||"");return r(be.A[`${n}Annotation`])+(o&&!i?` ${r(be.A.stampText)}: ${r(be.A[e.stampType])}`:"")+(i?` ${i}`:"")}case"form-text":case"form-checkbox":case"form-button":case"form-signature":return t.formFieldName;case"redaction":return r(be.A.redactionAnnotation);case"media":{const{fileName:e,description:n}=t,o=(0,N.EJ)(n||"");return r(be.A.mediaAnnotation)+(e&&!o?` ${e}`:"")+(o?` ${o}`:"")}}return n}function IE(e){let{annotation:t,date:n}=e;if(t instanceof k.sb)return;const r=t.creatorName;let o="";return o+=r?`${r}`:"",n&&(o+=r?n?`, ${n}`:"":n),o.length?o:void 0}function ME(e){let{annotation:t,commentThreads:n,comments:r}=e;const o=n.get(t.id)?.first();if(!o)return null;return r.get(o)}function NE(e){let{annotation:t,formatMessage:n}=e;const r=[];return t.readOnly&&r.push({className:"PSPDFKit-Sidebar-Annotations-ReadOnly",label:n(be.A.readOnlyAnnotationFlag),ariaLabel:n(be.A.readOnlyAnnotationFlag)}),t.locked&&r.push({className:"PSPDFKit-Sidebar-Annotations-Locked",label:n(be.A.locked),ariaLabel:n(be.A.locked)}),t.lockedContents&&r.push({className:"PSPDFKit-Sidebar-Annotations-LockedContents",label:n(be.A.lockedContents),ariaLabel:n(be.A.lockedContents)}),r}function OE(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,he.tz)(),S=(0,s.d4)((e=>e.ui[dl.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,me.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,Ia.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(be.A.anonymous):s.creatorName??w(be.A.anonymous);let u=null;s.createdAt.getTime()&&(c&&(u=c({dateTime:s.createdAt,element:HC.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(be.A.nMoreComments,{arg0:a-1})),{id:String(t.id),label:(0,N.EJ)((0,Zt.lb)(s?.text.value||"")),description:`${l}${u?", ":""}${u}`,icon:eE.Tw,data:{actionText:t.isCommentThreadRoot&&d?d:null,annotationItemClassName:"PSPDFKit-Sidebar-Annotations-Comment",annotationItemSelectedClassName:"PSPDFKit-Sidebar-Annotations-Comment-Selected",extraAttributes:NE({annotation:t,formatMessage:w})}}}}}const n=PE(t,a);if(!n)return null;return!(t instanceof k.sb)&&!(t instanceof k.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=AE[n];let s=null;return t.updatedAt.getTime()&&(r&&(s=r({dateTime:t.updatedAt,element:HC.E.ANNOTATIONS_SIDEBAR,object:t})),null==s&&(s=o(t.updatedAt))),{id:String(t.id),label:TE({annotation:t,annotationType:n,formatMessage:i}),description:IE({annotation:t,date:s}),icon:a,data:{annotationItemClassName:`PSPDFKit-Sidebar-Annotations-Annotation PSPDFKit-Sidebar-Annotations-Annotation-${(0,Zt.OI)(n)}`,annotationItemSelectedClassName:"PSPDFKit-Sidebar-Annotations-Annotation-Selected",extraAttributes:NE({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(be.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,pl.Q)(dl.Rq.Annotations,S,E,_)}const jE=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[b,w]=u.useState(null),[x,S]=u.useState(null),[_,C]=u.useState("read"),E=(0,s.wA)(),z=u.useCallback((e=>{E((0,lc.YQ)(e.pageIndex,e.boundingBox));const t=ME({annotation:e,commentThreads:i,comments:o});if(t)return h(t)?setTimeout((()=>{E((0,ve.wL)(e.id))}),100):void E((0,ve.TT)((0,a.NZ)([e.id]),null))}),[i,o,h,E]),P=u.useCallback((e=>{if(E((0,lc.YQ)(e.pageIndex,e.boundingBox)),d(e)||!(e instanceof k.sb)&&(e.readOnly||e.lockedContents||e.locked))return y&&y.size>0&&E((0,ve.xP)(y?.first())),setTimeout((()=>{E((0,ve.wL)(e.id))}),100);e instanceof k.sb?E((0,ve.J9)()):fe.LZ&&e instanceof k.s9&&"read"===_?E((0,ve._G)(e.id)):E((0,ve.TT)((0,a.NZ)([e.id]),null))}),[E,y,d,_]),A=u.useCallback((e=>{const t=ME({annotation:e,commentThreads:i,comments:o});t&&E((0,Cr.qu)(t))}),[E,i,o]),D=u.useCallback((e=>{E((0,at.eS)(e))}),[E]),T=(0,yr.Kw)((()=>{n||"edit"===_||t&&E((0,Pt.hP)())})),I=u.useCallback((e=>{if(!n){if(e){const t=r.get(String(e));if(t){S(String(e));t.isCommentThreadRoot?z(t):P(t)}else S(null)}else S(null);T()}}),[r,n,z,T,P]),M=u.useCallback((e=>{const t=r.get(e);if(!t)return;t.isCommentThreadRoot?A(t):D(t)}),[r,A,D]);u.useEffect((()=>{b?.focus()}),[b]);const{includeContent:N}=v,O=(0,s.d4)((e=>e.dateTimeString)),j=N.some((e=>e===k.Mw)),F=p()(ob().container,"PSPDFKit-Sidebar-Annotations"),B=u.useMemo((()=>r.filter((e=>null!==e.pageIndex&&(j&&e.isCommentThreadRoot||!e.isCommentThreadRoot&&null!==PE(e,l)&&N.some((t=>e instanceof t)))))),[r,l,N,j]),L=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,R.T1)(B,t));return 0===n.size?e:e.push(n)}),(0,a.B8)())),[c,B]),V=(0,yr.d3)(b,L),K=(0,yr.jU)(V,(e=>e.id),(e=>B.get(e))),$=u.useMemo((()=>K?(e,t)=>{if(e){const n=B.get(t.id);n&&K(e,n)}}:void 0),[K,B]);return(0,ee.jsx)("div",{className:F,ref:w,children:(0,ee.jsx)(OE,{items:L,pages:c,shouldRenderComments:j,commentThreads:i,comments:o,formFields:l,onSelectionChange:I,dateTimeStringCallback:O,selectedKey:x,onRenderAnnotationItem:$,canDeleteCommentCP:g,isCommentReadOnly:h,onAnnotationDelete:M,isAnnotationReadOnly:d,canDeleteAnnotationCP:m,selectedAnnotationIds:f,onMobileModeChange:C})})}));var RE,FE,BE,LE,VE,KE,$E,HE=n(62116);function UE(e){let{navigationDisabled:t,closeOnPress:n}=e;const[r,o]=u.useState(null),i=(0,s.wA)(),a=(0,s.d4)((e=>e.ui[dl.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,yr.Kw)((e=>{if(t)return;const r=m.get(e)?.action;setTimeout((()=>{r&&i((0,rr.DX)(r))})),n&&i((0,Pt.hP)())})),v=(0,yr.Kw)((e=>{i((0,HE.m)(e))}));(0,u.useEffect)((()=>{r?.focus()}),[r]),(0,u.useEffect)((()=>{d||((0,l.V1)(h),h.getDocumentOutline().then((e=>{i((0,HE.K)(e))})))}),[h,i,d]);const y=(0,yr.ZC)(f);(0,u.useEffect)((()=>{f===y||d||((0,l.V1)(h),h.getDocumentOutline().then((e=>{i((0,HE.K)(e))})))}));const b=(0,yr.d3)(r,d),w=(0,yr.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,ee.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:$i(d,"")}:null,onPress:g,defaultExpandedItems:p,onExpandedChange:v,onRenderItem:x})),[g,p,v,d,x]);return(0,pl.Q)(dl.Rq.Outline,a,S,c)}function qE(e){return Ye.JY.DISABLE_KEYBOARD_SHORTCUTS||e.viewportState.scrollMode===na.V.DISABLED?e.children:(0,ee.jsx)(yf,{...e})}const WE=function(e){switch(e.theme){case gb.S.AUTO:return e.frameWindow?.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";case gb.S.DARK:return"dark";case gb.S.LIGHT:return"light"}};class GE extends u.Component{constructor(){super(...arguments),(0,v.A)(this,"state",{isResizingSidebar:!1,scrollElement:null,silenceOutdatedDocumentPromptForHandle:null,isAnnotationTypeReadOnlyMemoized:(0,Ut.A)(((e,t)=>(0,mn.W3)(e,this.props.state,t))),crop:null,modalClosurePreventionError:null,noLicenseKeyTimeoutFinished:!1,resizeWatchFrameWindow:null,theme:WE(this.props.state)}),(0,v.A)(this,"_memoizedMapPagesToPageKeys",(0,Ut.A)((e=>e.map((e=>e.pageKey))))),(0,v.A)(this,"handleScrollElementChange",(e=>{this.setState({scrollElement:e})})),(0,v.A)(this,"getScrollElement",(()=>{const{scrollElement:e}=this.state;return(0,l.V1)(e),e})),(0,v.A)(this,"setGlobalCursor",(e=>{this.getScrollElement().style.cursor=e})),(0,v.A)(this,"getThumbnailScale",(()=>this.props.state.containerRect.width<=xe.DK?.55:1)),(0,v.A)(this,"isAnnotationReadOnly",(e=>(0,mn.Qe)(e,this.props.state)||!(0,lr.q2)(e,this.props.state))),(0,v.A)(this,"isCommentReadOnly",(e=>(0,mn.kH)(e,this.props.state)||!(0,lr.Kt)(e,this.props.state))),(0,v.A)(this,"reloadDocument",(()=>{const e=this.props.state.documentHandle;this.props.dispatch((0,ql.bb)((()=>this.closeReloadDocumentModal(e)),(e=>{throw e})))})),(0,v.A)(this,"closeReloadDocumentModal",(e=>{this.setState({silenceOutdatedDocumentPromptForHandle:e})})),(0,v.A)(this,"_canDeleteAnnotationCP",(e=>(0,lr.db)(e,this.props.state))),(0,v.A)(this,"_canDeleteCommentCP",(e=>(0,lr.Fz)(e,this.props.state))),(0,v.A)(this,"renderSidebar",((e,t)=>{const n=this.props.state,r=this.props.state.containerRect.width-e<=t,o=n.viewportState.scrollMode===na.V.DISABLED,i=n.sidebarOptions;if(e<=0)return null;switch(n.sidebarMode){case cc.I.THUMBNAILS:return(0,ee.jsx)(zE,{closeOnPress:r,navigationDisabled:o});case cc.I.DOCUMENT_OUTLINE:return(0,ee.jsx)(UE,{closeOnPress:r,navigationDisabled:o});case cc.I.ANNOTATIONS:return(0,ee.jsx)(jE,{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:i[cc.I.ANNOTATIONS],closeOnPress:r,navigationDisabled:o,canDeleteAnnotationCP:this._canDeleteAnnotationCP,canDeleteCommentCP:this._canDeleteCommentCP,focusedAnnotationIds:n.focusedAnnotationIds});case cc.I.BOOKMARKS:return(0,ee.jsx)(gl,{source:n.bookmarkManager,children:t=>(0,ee.jsx)(ml,{bookmarks:t,bookmarkManager:n.bookmarkManager,currentPageIndex:n.viewportState.currentPageIndex,pages:n.pages,width:e,closeOnPress:r})});case cc.I.SIGNATURES:return(0,ee.jsx)(Fy,{annotations:n.annotations,formFields:n.formFields,signaturesInfo:n.digitalSignatures,closeOnPress:r,navigationDisabled:o});case cc.I.LAYERS:return(0,ee.jsx)(ib,{sidebarOptions:i[cc.I.LAYERS],setSidebarOptions:e=>this.setSidebarOptions(cc.I.LAYERS,e),OCGLayers:n.OCGLayers,visibleLayers:n.visibleOCGLayers});case cc.I.CUSTOM:return RE||(RE=(0,ee.jsx)(Eg,{}));default:return null}})),(0,v.A)(this,"_viewportEl",null),(0,v.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,v.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,y.lY)(t).selection:n?.getSelection();e.clipboardData?.setData("text/plain",r?.toString()??""),e.preventDefault()})),(0,v.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,ee.jsx)(Dm,{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,ee.jsx)("div",{style:{position:"relative",height:"100%"},children:(0,ee.jsxs)(yg,{viewportState:o,scrollbarOffset:n.scrollbarOffset,children:[(0,ee.jsx)(qE,{dispatch:r,viewportState:o,hasSelectedAnnotations:this.props.state.selectedAnnotationIds.size>0,document:n.frameWindow?.document,shadowRoot:n.shadowRoot,children:(0,ee.jsx)(oe.Provider,{children:o.scrollMode===na.V.PER_SPREAD?(0,ee.jsx)(em,{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.renderExpandendNoteAnnotations(i)]})})})})),(0,v.A)(this,"_handleDocumentEditorCancel",(()=>{this.props.dispatch((0,Pt.$x)())})),(0,v.A)(this,"_closeSignatureModal",(()=>{const e={annotations:(0,a.B8)(),reason:J.x.SELECT_END};this.props.state.eventEmitter.emit("annotations.willChange",e),this.props.dispatch((0,Pt._Q)())})),(0,v.A)(this,"_createSignatureFromAnnotation",((e,t,n)=>{e instanceof ie.Eo&&this.props.dispatch((0,at.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,kg.Vi)(e,{signatureRect:r,signaturePageIndex:o},a)),t&&this.props.dispatch((0,kg.WY)(e,n)),this.props.dispatch((0,Pt._Q)())})),(0,v.A)(this,"_createSignatureFromFile",(async(e,t,n)=>{const{signatureRect:r,signaturePageIndex:o}=this.props.state.signatureState;this.props.dispatch((0,Pt._Q)());const{hash:i,dimensions:a,attachment:s}=await(0,at.wA)(e);this.props.dispatch((0,kg.Ux)({hash:i,dimensions:a,attachment:s,file:e},t,n,{signatureRect:r,signaturePageIndex:o}))})),(0,v.A)(this,"_createSignature",((e,t,n)=>{e instanceof ie.YH?this._createSignatureFromAnnotation(e,t,n):this._createSignatureFromFile(e,t,n)})),(0,v.A)(this,"_deleteStoredSignature",((e,t)=>{this.props.dispatch((0,kg.Ro)(e,t))})),(0,v.A)(this,"_closeStampModal",(()=>{const e={annotations:(0,a.B8)(),reason:J.x.SELECT_END};this.props.state.eventEmitter.emit("annotations.willChange",e),this.props.dispatch((0,Pt.LD)())})),(0,v.A)(this,"_createAnnotationFromTemplate",(e=>{this.props.dispatch((0,Pt.LD)()),this.props.dispatch((0,at.RE)(e))})),(0,v.A)(this,"_getAttachments",(()=>this.props.state.attachments)),(0,v.A)(this,"_fetchDigitalSignaturesInfo",(()=>{this.props.state.backend?.getSignaturesInfo().then((e=>{this.props.dispatch((0,_g.K)(e))})).catch(l.z3)})),(0,v.A)(this,"_setA11yStatusMessage",(e=>{this.props.dispatch((0,Pt.CM)("")),window.setTimeout((()=>{this.props.dispatch((0,Pt.CM)(e))}),200)})),(0,v.A)(this,"handleCrop",(e=>{(0,l.V1)(this.state.crop),this.props.dispatch((0,ql._p)([{type:"cropPages",cropBox:this.state.crop.area,pageIndexes:e?void 0:[this.state.crop.pageIndex]}],(()=>{}),(()=>{}))),this.props.dispatch((0,Pt.lH)())})),(0,v.A)(this,"setCropDetails",((e,t)=>{this.setState({crop:{area:e,pageIndex:t}})})),(0,v.A)(this,"onCropCancel",(()=>{const{dispatch:e}=this.props;e((0,Pt.lH)())})),(0,v.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,En.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,En.ar)(null)),r.clearPageAPStreams(n?.pageIndex,(0,a.NZ)([n.id])),t((0,at.iN)((0,a.B8)([n.set("buttonIconUpdatedAt",Date.now())])))},o.readAsArrayBuffer(e)})),(0,v.A)(this,"getToolbarComponent",(()=>{const{selectedAnnotation:e,activeAnnotationNote:t,state:n,currentTextSelection:r}=this.props,{viewportState:o,selectedAnnotationIds:i}=n,a=n.toolbarPlacement===pc.h.TOP?"top":"bottom",s=n.selectedAnnotationIds.every((e=>{const t=n.annotations.get(e);return!!t&&("isMeasurement"in t&&t.isMeasurement())}));if(n.selectedAnnotationIds.size>1&&!s)return(0,ee.jsx)(Cy,{selectedAnnotationIds:i});if(e&&!(0,Me.$_)(n.interactionMode)||t){const r=e?n.pages.get(e.pageIndex):null,a=r&&r.pageSize,s=e&&n.annotationPresetIds.get(e.id),l=!(!e||!(0,lr.q2)(e,n)),c=(0,mn.p9)(this.props.state),u=!(!e||!(0,lr.db)(e,n)),d=i.map((e=>n.annotations.get(e)));return(0,ee.jsx)(vp,{dispatch:this.props.dispatch,annotation:e,selectedAnnotationPageSize:a,isAnnotationReadOnly:this.isAnnotationReadOnly,variantAnnotationPresetID:s,selectedAnnotationMode:this.props.state.selectedAnnotationMode,zoomLevel:o.zoomLevel,position:n.toolbarPlacement===pc.h.TOP?"top":"bottom",eventEmitter:n.eventEmitter,frameWindow:n.frameWindow,viewportWidth:n.containerRect.width,activeAnnotationNote:t,showAnnotationNotes:this.props.state.showAnnotationNotes,canEditAnnotationCP:l,canDeleteSelectedAnnotationCP:u,areOnlyElectronicSignaturesEnabled:c,lastToolbarActionUsedKeyboard:n.lastToolbarActionUsedKeyboard,interactionMode:n.interactionMode,keepSelectedTool:this.props.state.keepSelectedTool,annotationToolbarColorPresets:n.annotationToolbarColorPresets,annotationToolbarItems:n.annotationToolbarItems,customFontsReadableNames:n.customFontsReadableNames,isCalibratingScale:n.isCalibratingScale,selectedAnnotations:d,isTextComparison:n.isTextComparison})}return n.interactionMode===F.O.INK_ERASER?(0,ee.jsx)(xp,{dispatch:this.props.dispatch,inkEraserCursorWidth:n.annotationPresets.get("ink")?.inkEraserWidth??Ye.JY.DEFAULT_INK_ERASER_CURSOR_WIDTH,position:a,viewportWidth:n.containerRect.width}):n.interactionMode===F.O.DOCUMENT_CROP?(0,ee.jsx)(Ag,{onCropApply:this.handleCrop,onCropCancel:this.onCropCancel,position:a,isCropAreaSelected:!!this.state.crop,frameWindow:n.frameWindow}):(0,Me.$_)(n.interactionMode)?(0,ee.jsx)(bv,{position:a,interactionMode:n.interactionMode,dispatch:this.props.dispatch,frameWindow:n.frameWindow,modalClosurePreventionError:this.state.modalClosurePreventionError,selectedAnnotation:!!n.selectedAnnotationIds.size}):n.interactionMode===F.O.CONTENT_EDITOR&&n.contentEditorSession.contentEditor?(0,ee.jsx)(Wg,{position:a,viewportWidth:n.containerRect.width,frameWindow:n.frameWindow,creationMode:n.contentEditorSession.mode===Ka.g3.Create}):n.interactionMode===F.O.MEASUREMENT?(0,ee.jsx)(Ey,{position:a,interactionMode:n.interactionMode,viewportWidth:n.containerRect.width,frameWindow:n.frameWindow,disablePointSnapping:n.viewportState.disablePointSnapping,backend:n.backend}):(0,ee.jsx)(Df,{dispatch:this.props.dispatch,isAnnotationTypeReadOnly:this.state.isAnnotationTypeReadOnlyMemoized,position:n.toolbarPlacement===pc.h.TOP?"top":"bottom",showComments:(0,Ia.mx)(n),showRedactions:this.props.state.features.includes(X.Y.REDACTIONS),showAIDocumentAssistant:this.props.state.features.includes(X.Y.DOCUMENT_ASSISTANT)&&!!this.props.state.aiDocumentAssistant.configuration,inlineTextSelectionToolbarItems:n.inlineTextSelectionToolbarItems,currentTextSelection:r})})),(0,v.A)(this,"handleSidebarResize",(e=>{let{sidebarRect:t,isDragging:n,size:r}=e;const o=(0,gv.v)(this.props.state,t,r);this.props.dispatch((0,lc.tV)(o,!1)),this.setState({isResizingSidebar:n})})),(0,v.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,lc.xT)(r))):s=e.set("width",r-n.sidebarWidth).set("left",(n.sidebarPlacement===uc.A.START?n.sidebarWidth:0)+o):(s=e,n.sidebarMode&&a&&this.props.dispatch((0,Pt.hP)())),this.props.dispatch((0,lc.tV)(s,t))})),(0,v.A)(this,"_updateResizeWatchFrameWindow",(e=>{this.setState({resizeWatchFrameWindow:e})}))}setSidebarOptions(e,t){const{state:n}=this.props;this.props.dispatch((0,Pt.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:b,connectionState:w,isTextComparison:x}=o;let S=null;if(o.interactionMode!==F.O.TEXT_HIGHLIGHTER&&!o.interactionsDisabled&&s&&!t(ie.tr)&&o.inlineTextMarkupToolbar&&w.name!==Mi.D.DOWNLOADING_DOCUMENT){const e=(0,Ia.mx)(this.props.state),n=this.props.state.features.includes(X.Y.REDACTIONS),r=this.props.state.features.includes(X.Y.DOCUMENT_ASSISTANT)&&!!this.props.state.aiDocumentAssistant.configuration,a=this.props.state.inlineTextSelectionToolbarItems?this.props.state.inlineTextSelectionToolbarItems({defaultItems:Dy({showComments:e,showRedactions:n,showAIDocumentAssistant:r}),hasDesktopLayout:!1},s):Dy({showComments:e,showRedactions:n,showAIDocumentAssistant:r}),c=(0,xo.Pm)(o,s.textRange);S=a.length>0&&c&&!x?(0,ee.jsx)(Lf.A,{referenceRect:c,viewportState:l,className:"PSPDFKit-Popover-Text-Markup-Toolbar",children:(0,ee.jsx)(Af,{dispatch:i,isAnnotationTypeReadOnly:t,showComments:e,showRedactions:n,showAIDocumentAssistant:r,inlineTextSelectionToolbarItems:this.props.state.inlineTextSelectionToolbarItems,currentTextSelection:s})}):null}let _=null;const C=o.annotations.filter((e=>e.readOnly||e.locked||e.lockedContents)),E=o.hoverAnnotationIds.find((e=>C.has(e))),z=o.focusedAnnotationIds.find((e=>C.has(e))),P=E?C.get(E):void 0,A=z?C.get(z):void 0;let D=(0,a.B8)();const T=!!P&&(P instanceof k.s9||(P instanceof ie.dG||P instanceof ie.ax)&&P.isCommentThreadRoot);let I,M;if(P&&!T&&(D=D.push(P)),A&&(D=D.push(A)),D.size>0&&D.map((e=>{const t=(0,R.hI)(e,l.zoomLevel,l.pagesRotation).apply((0,q.zo)(l,e.pageIndex).translate(l.scrollPosition.scale(l.zoomLevel)));return _=(0,ee.jsx)(Ay,{referenceRect:t,viewportState:l,isReadOnly:e.readOnly,isLocked:e.locked,hasLockedContents:e.lockedContents})})),I=o.viewportState.documentComparisonMode&&o.backend?(0,ee.jsx)(Xg.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===na.V.PER_SPREAD||l.scrollMode===na.V.DISABLED?(0,ee.jsx)(Gf,{onCropChange:this.setCropDetails,dispatch:i,spreadIndex:(0,Gi.NZ)(l,l.currentPageIndex),viewportState:l,interactionMode:o.interactionMode,cropInfo:this.state.crop,pageKeys:this._memoizedMapPagesToPageKeys(o.pages),setGlobalCursor:this.setGlobalCursor,connectionState:o.connectionState}):(0,ee.jsx)(of,{onCropChange:this.setCropDetails,dispatch:i,viewportState:l,cropInfo:this.state.crop,pageKeys:this._memoizedMapPagesToPageKeys(o.pages),setGlobalCursor:this.setGlobalCursor,connectionState:o.connectionState}),g&&o.backend&&(0,N.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,Gi.Ym)(l),r=(0,Gi.NZ)(l,g.drawnAnnotationPageIndex),i=(0,Gi.Bu)(l,r);let a=(n-i.width)/2*l.zoomLevel;o.sidebarMode&&(a+=o.sidebarWidth);let s=0;if((0,Gi.uM)(l)===od.S.DOUBLE){const e=(0,Gi.DF)(l,g.drawnAnnotationPageIndex);if(i.height!==e.height&&(s=(i.height-e.height)/2*l.zoomLevel),g.drawnAnnotationPageIndex%2!=0){a+=(0,Gi.DF)(l,g.drawnAnnotationPageIndex-1).width*l.zoomLevel}}t=g.magnifierCursorPosition?.merge({x:g.magnifierCursorPosition.x-a,y:g.magnifierCursorPosition.y-s}),M=(0,ee.jsx)(by.Q,{pageRendererComponentProps:e,viewportState:l,scrollElement:m,className:"PSPDFKit-Measurement-Magnifier",label:g.magnifierLabel,pageIndex:g.drawnAnnotationPageIndex,cursorPosition:t,isMobile:o.containerRect.width<=xe.DK})}const O=n?o.pages.get(n.pageIndex):null,j=O&&O.pageSize;return(0,ee.jsx)(Sm,{dispatch:i,viewportState:l,scrollbarOffset:o.scrollbarOffset,onScrollElementChange:this.handleScrollElementChange,scrollDisabled:o.scrollDisabled,children:(0,ee.jsxs)(Wf,{enabled:o.interactionMode===F.O.PAN&&!fe.LZ&&!o.interactionsDisabled&&!!o.scrollElement,children:[(0,ee.jsxs)("div",{className:hv().viewportContent,ref:this._viewportRef,"data-testid":"viewport",children:[I,(0,Ia.ai)(o)&&l.commentMode&&(FE||(FE=(0,ee.jsx)(JC,{})))]}),S,_,n&&!(n instanceof k.s9)&&e.length>0&&!this.props.noteAnnotationToModify&&(0,ee.jsx)(Lf.A,{referenceRect:(0,ro.m)({annotation:n,zoomScaledBoundingBox:(0,R.O_)(n,l.pagesRotation,l.viewportRect.getSize(),l.zoomLevel).apply((0,q.zo)(l,n.pageIndex).translate(l.scrollPosition.scale(l.zoomLevel))),viewportSize:l.viewportRect.getSize()}),viewportState:l,className:"PSPDFKit-Popover-Annotation-Tooltip",children:(0,ee.jsx)(mg,{items:e})}),n&&null!==n.pageIndex&&n instanceof k.pP&&n.isMeasurement()&&o.isCalibratingScale&&(0,ee.jsx)(ic.Ay,{annotation:n,isHidden:c,referenceRect:(0,ro.m)({annotation:n,zoomScaledBoundingBox:(0,R.O_)(n,l.pagesRotation,l.viewportRect.getSize(),l.zoomLevel).apply((0,q.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===b.size&&(0,Me.$_)(u)&&n instanceof k.sb&&(0,ee.jsx)(ey,{modalClosurePreventionError:this.state.modalClosurePreventionError,setModalClosurePreventionError:e=>this.setState({modalClosurePreventionError:e}),annotation:n,formField:r,getExistingFormFieldByName:e=>d.get(e),isHidden:c,referenceRect:(0,ro.m)({annotation:n,zoomScaledBoundingBox:(0,R.O_)(n,l.pagesRotation,l.viewportRect.getSize(),l.zoomLevel).apply((0,q.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:j,customFontsReadableNames:this.props.state.customFontsReadableNames||(0,a.NZ)()}),this.renderLinkAnnotationPopover(),M,this.renderAnimatedExpandendNoteAnnotations(e),v?.fontFace&&y?.state===Ka.mS.Active&&v?.rect?(0,ee.jsx)(Sy,{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}renderAnimatedExpandendNoteAnnotations(e){const t=this._isFullscreen?null:this.renderExpandendNoteAnnotations(e);return this._animateNoteAnnotation&&null!==t?(0,ee.jsx)(al,{children:t.map((e=>(0,ee.jsx)(el,{timeout:{enter:window["PSPDFKit-disable-animations"]?0:100,exit:window["PSPDFKit-disable-animations"]?0:150},classNames:{enter:mv().fadeEnter,enterActive:mv().fadeEnterActive,exit:mv().fadeExit,exitActive:mv().fadeExitActive},children:e},`NoteAnnotationPopopver-${e.props.noteAnnotation.id}`)))}):(0,ee.jsx)("div",{children:t})}renderExpandendNoteAnnotations(e){if(!this.props.state.showAnnotations||this.props.state.interactionsDisabled&&!this._isFullscreen||this.props.state.selectedAnnotationIds.size>1)return(0,a.NZ)();const t=[];if(this.props.activeAnnotationNote&&(0,R.Cx)(this.props.activeAnnotationNote?.parentAnnotation)){const e=this.props.activeAnnotationNote;t.push((0,ee.jsx)(Vf,{noteAnnotation:e,noteAnnotationToModify:e,viewportState:this.props.state.viewportState,dispatch:this.props.dispatch,isFullscreen:this._isFullscreen,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},`NoteAnnotationPopopver-${e.id}`))}if(this.props.hoverAnnotationNote&&(0,R.Cx)(this.props.hoverAnnotationNote?.parentAnnotation)&&(!this.props.activeAnnotationNote||this.props.hoverAnnotationNote?.parentAnnotation?.id!==this.props.activeAnnotationNote?.parentAnnotation?.id)){const e=this.props.hoverAnnotationNote;t.push((0,ee.jsx)(Vf,{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},`NoteAnnotationPopopver-${e.id}`))}return this.props.selectedNoteAnnotations&&0!==this.props.selectedNoteAnnotations.size?this.props.selectedNoteAnnotations.filter((e=>null!==e.pageIndex)).map((t=>{const n=!!this.props.selectedAnnotation&&t.id===this.props.selectedAnnotation.id;return(0,ee.jsx)(Vf,{noteAnnotation:t,noteAnnotationToModify:this.props.noteAnnotationToModify,viewportState:this.props.state.viewportState,dispatch:this.props.dispatch,isFullscreen:this._isFullscreen,isHover:!n,annotationToolbarHeight:this.props.state.annotationToolbarHeight,isAnnotationReadOnly:this.isAnnotationReadOnly,tools:n?e:[],collapseSelectedNoteContent:this.props.state.collapseSelectedNoteContent,autoSelect:this.props.state.selectedTextOnEdit,eventEmitter:this.props.state.eventEmitter,keepSelectedTool:this.props.state.keepSelectedTool},`NoteAnnotationPopopver-${t.id}`)})).concat(t):(0,a.NZ)(t)}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 ie.UL&&!l,u=!!r?.action&&!c;if(!u&&!c)return null;const d=u?r:e;return(0,ee.jsx)(vy,{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){this.props.state.interactionMode!==F.O.DOCUMENT_CROP&&e.state.interactionMode===F.O.DOCUMENT_CROP&&this.setState({crop:null}),(0,Me.$_)(e.state.interactionMode)&&!(0,Me.$_)(this.props.state.interactionMode)&&this.props.dispatch((0,Pt._e)(!1)),this.props.state.interactionMode!==F.O.INK_SIGNATURE&&this.props.state.interactionMode!==F.O.SIGNATURE||this.props.state.signatureState.storedSignatures||this.props.dispatch((0,kg.XC)());(this.props.state.features.includes(X.Y.DIGITAL_SIGNATURES)&&!this.props.state.digitalSignatures&&this.props.state.connectionState.name===Mi.D.CONNECTED||(e.state.documentHandle!==this.props.state.documentHandle||!this.props.state.digitalSignatures)&&this.props.state.connectionState.name===Mi.D.CONNECTED&&this.props.state.features.includes(X.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,Ut.A)((e=>(0,mn.W3)(e,this.props.state)))}),this.props.selectedAnnotation&&this.props.dispatch((0,ve.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<=xe.BX;const i=n.containerRect.width<=xe.DK?n.containerRect.width:200,a=e instanceof k.s9&&this.isAnnotationReadOnly(e)&&!this._isFullscreen,s=n.currentItemPreset&&n.annotationPresets.get(n.currentItemPreset)||{},{SIGNATURE_SAVE_MODE:l,DISABLE_KEYBOARD_SHORTCUTS:c}=Ye.JY,u=n.sidebarMode&&(0,ee.jsx)(Rm,{initialSize:n.sidebarWidth,minWidth:i,maxWidth:n.containerRect.width,draggerSize:n.containerRect.width<=xe.DK?0:6,onResize:this.handleSidebarResize,isRTL:n.sidebarPlacement===uc.A.END,dispatch:this.props.dispatch,shadowRoot:n.shadowRoot,children:this.renderSidebar}),d=(e||t)&&!a||!n.interactionsDisabled&&(n.currentTextSelection||n.interactionMode===F.O.TEXT_HIGHLIGHTER)&&!n.inlineTextMarkupToolbar||n.interactionMode===F.O.INK_ERASER||n.interactionMode===F.O.DOCUMENT_CROP||n.interactionMode===F.O.CONTENT_EDITOR||n.interactionMode===F.O.MEASUREMENT||(0,Me.$_)(n.interactionMode),h=!(!e||!(0,lr.db)(e,n)),f=r.documentComparisonMode&&(0,ee.jsx)(sv,{position:n.toolbarPlacement===pc.h.TOP?"top":"bottom"}),m=!f&&n.enableAnnotationToolbar&&!(e&&this.props.state.commentThreads.has(e.id))&&!n.isTextComparison&&(0,ee.jsx)(al,{children:d?(0,ee.jsx)(el,{timeout:{exit:window["PSPDFKit-disable-animations"]?0:120,enter:window["PSPDFKit-disable-animations"]?0:100},classNames:n.toolbarPlacement===pc.h.TOP?{enter:mv().slideDownEnter,enterActive:mv().slideDownEnterActive,exit:mv().slideDownExit,exitActive:mv().slideDownExitActive}:{enter:mv().slideUpEnter,enterActive:mv().slideUpEnterActive,exit:mv().slideUpExit,exitActive:mv().slideUpExitActive},children:this.getToolbarComponent()}):null}),g=n.digitalSignatures&&n.showSignatureValidationStatus!==Cg.y.NEVER?(0,ee.jsx)(el,{in:!!d,timeout:{exit:window["PSPDFKit-disable-animations"]?0:120,enter:window["PSPDFKit-disable-animations"]?0:100},classNames:n.toolbarPlacement===pc.h.TOP?{enter:mv().moveDownSignatureBarEnter,enterActive:mv().moveDownSignatureBarEnterActive,exit:mv().moveDownExit,exitActive:mv().moveDownSignatureBarExitActive}:{enter:mv().moveUpSignatureBarEnter,enterActive:mv().moveUpSignatureBarEnterActive,exit:mv().moveUpSignatureBarExit,exitActive:mv().moveUpSignatureBarExitActive},children:(0,ee.jsx)(dg,{digitalSignatures:n.digitalSignatures,showSignatureValidationStatus:n.showSignatureValidationStatus})}):null,v=n.signatureFeatureAvailability,y=(0,ee.jsxs)(ee.Fragment,{children:[n.showToolbar&&(0,ee.jsx)(_E,{resizeWatchFrameWindow:this.state.resizeWatchFrameWindow}),(0,ee.jsx)(sg,{position:n.toolbarPlacement===pc.h.TOP?"top":"bottom",children:n.toolbarPlacement===pc.h.TOP?(0,ee.jsxs)(ee.Fragment,{children:[f||m,g]}):(0,ee.jsxs)(ee.Fragment,{children:[g,f||m]})})]});let b;return(0,nE.Sb)(n.backend)&&(n.promptContentEditorDocumentDownload||!n.isServerModeDownloadingDocument&&!n.isServerModeDownloadingWASM?n.contentEditorSession.saving&&(b=Oh.ceSaving):b=Oh.ceDownloadingDocument),(0,ee.jsx)(ac.Provider,{value:this.getScrollElement,children:(0,ee.jsx)(ZE,{children:(0,ee.jsx)(sl.ThemeProvider,{theme:this.state.theme,children:(0,ee.jsx)(sl.I18nProvider,{locale:n.locale,messages:{...ys.Ay.messages},children:(0,ee.jsx)(sl.PortalContainerProvider,{portalContainer:n.shadowRoot?.querySelector(`.${xe.Jf}`)||n.frameWindow?.document.body||void 0,children:(0,ee.jsxs)("div",{className:`PSPDFKit-Container PSPDFKit-browser-engine-${fe.Hi} PSPDFKit-browser-system-${fe.qU} ${fe.LZ?"PSPDFKit-mobile-os":""} PSPDFKit-${(0,Gi.RQ)(n.containerRect)} ${hv().root} ${n.interactionsDisabled?"interactions-disabled":""} ${null!=n.backend?"PSPDFKit-backend-"+("STANDALONE"===n.backend.type?"standalone":"server"):""} ${n.disablePullToRefresh?"overscrollDisabled":""}`,children:[n.isDebugConsoleVisible&&(0,ee.jsx)(hf,{dispatch:this.props.dispatch}),(n.interactionMode===F.O.STAMP_PICKER||n.interactionMode===F.O.STAMP_CUSTOM)&&(0,ee.jsx)(Cb,{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===F.O.INK_SIGNATURE||n.interactionMode===F.O.SIGNATURE)&&n.signatureState.storedSignatures&&v===Kn.g.LEGACY_SIGNATURES&&(0,ee.jsx)(Vm,{onEscape:this._closeSignatureModal,children:(0,ee.jsx)(og,{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))&&l!==dc.v.NEVER,backend:n.backend,attachments:n.attachments,viewportWidth:n.containerRect.width})}),!(n.interactionMode!==F.O.INK_SIGNATURE&&n.interactionMode!==F.O.SIGNATURE||!n.signatureState.storedSignatures||v!==Kn.g.ELECTRONIC_SIGNATURES)&&(0,ee.jsx)(bb,{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===F.O.MEASUREMENT_SETTINGS&&(0,ee.jsx)(ky.A,{frameWindow:n.frameWindow}),n.interactionMode===F.O.DOCUMENT_EDITOR&&(0,ee.jsx)(oc,{onCancel:this._handleDocumentEditorCancel}),n.isPrinting&&(0,ee.jsx)(am,{progress:n.printLoadingIndicatorProgress,totalPages:n.totalPages}),n.features.includes(X.Y.DOCUMENT_ASSISTANT)&&(0,nE.Sb)(n.backend)&&!!n.aiDocumentAssistant.configuration&&(0,ee.jsx)(lx,{isOpen:n.aiDocumentAssistant.show,configuration:n.aiDocumentAssistant.configuration,toolbarsHeight:n.annotationToolbarHeight+ua.e4,documentId:n.documentId,layerName:n.backend?._state.layerName,sourcePdfSha256:n.backend?._state.sourcePdfSha256}),n.isSigning&&(BE||(BE=(0,ee.jsx)(dm,{}))),n.isApplyingRedactions&&(LE||(LE=(0,ee.jsx)(gm,{}))),(0,ee.jsxs)(Mp,{connectionState:n.connectionState,children:[n.toolbarPlacement===pc.h.TOP&&y,(0,ee.jsxs)("div",{className:hv().main,children:[!u&&(0,ee.jsx)(Fu.A,{onResize:this.handleResizeHelperResize,onRefUpdate:this._updateResizeWatchFrameWindow}),n.sidebarPlacement===uc.A.START&&u,(0,ee.jsx)("div",{className:p()(hv().mainContent,this.state.isResizingSidebar&&hv().mainContentResizing),children:this.renderViewport(this.state.isAnnotationTypeReadOnlyMemoized)}),n.sidebarPlacement===uc.A.END&&u,u&&(0,ee.jsx)(Fu.A,{onResize:this.handleResizeHelperResize,onRefUpdate:this._updateResizeWatchFrameWindow})]}),n.toolbarPlacement===pc.h.BOTTOM&&y,n.annotationsIdsToDelete&&(0,ee.jsx)(mf,{dispatch:this.props.dispatch,annotations:n.annotationsIdsToDelete.map((e=>n.annotations.get(e))).filter(Boolean),eventEmitter:n.eventEmitter,setA11yStatusMessage:this._setA11yStatusMessage}),n.showExitContentEditorDialog&&(VE||(VE=(0,ee.jsx)(iy,{}))),!c&&(0,ee.jsx)(xf,{dispatch:this.props.dispatch,printingEnabled:(0,mn.$n)(n),isPrinting:n.isPrinting,isTextCopyingAllowed:(0,mn.Xm)(n),selectedAnnotationsIds:this.props.editableSelectedAnnotationIds,commentThreads:this.props.state.commentThreads,getScrollElement:this.getScrollElement,canDeleteSelectedAnnotationCP:h,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:e=>{this.setState({modalClosurePreventionError:e})},annotations:n.annotations,selectedGroupId:n.selectedGroupId,annotationsGroups:n.annotationsGroups,isMultiSelectionEnabled:n.isMultiSelectionEnabled,contentEditorSession:n.contentEditorSession,interactionMode:n.interactionMode,shadowRoot:n.shadowRoot,isTextComparison:n.isTextComparison}),o&&this.state.silenceOutdatedDocumentPromptForHandle!==n.documentHandle&&(0,ee.jsx)(xg,{onConfirm:this.reloadDocument,onCancel:()=>this.closeReloadDocumentModal(n.documentHandle)})]}),(0,ee.jsx)(vf,{locale:n.locale}),(0,ee.jsx)(YE,{message:n.a11yStatusMessage}),this.state.noLicenseKeyTimeoutFinished&&this.props.state.noLicenseKey&&(0,ee.jsx)(Ny,{evaluationMessage:this.props.state.evaluation?.message,evaluationUrl:this.props.state.evaluation?.url}),n.buttonToImportIconFor&&(0,ee.jsx)(Ly,{onSelectImage:this.onSelectButtonImportIconImage}),(0,nE.Sb)(n.backend)&&n.promptContentEditorDocumentDownload&&(KE||(KE=(0,ee.jsx)(tE,{}))),(0,nE.Sb)(n.backend)&&n.promptContentEditorCannotSaveChanges&&($E||($E=(0,ee.jsx)(rE,{}))),!!b&&(0,ee.jsx)(oE,{intlMessageDescriptor:b})]})})})})})})}}const YE=u.memo((e=>(0,ee.jsx)(o.s6,{announce:"polite",role:"status",tag:"div",children:(0,ee.jsx)("div",{children:e.message})}))),ZE=u.memo((e=>{let{children:t}=e;const n=(0,sl.useDevice)();return u.cloneElement(t,{className:"mobile"!==n?"non-mobile":void 0})})),JE=(0,s.Ng)((e=>{const{annotations:t,formFields:n,hoverAnnotationIds:r,hoverAnnotationNote:o,activeAnnotationNote:i,selectedAnnotationIds:a}=e,s=a.concat(r).map((e=>t.get(e))).filter((e=>e&&e instanceof k.s9)),l=r.concat(r).map((e=>t.get(e))).filter((e=>e&&e instanceof k.UL)).first(),c=s.first(),u=c&&e.selectedAnnotationMode===B.Q.EDITING?c:null,d=e.selectedAnnotationIds.size>0?e.annotations.get(e.selectedAnnotationIds.first()):null,p=d&&d instanceof k.sb?n.get(d.formFieldName):null;return{state:e,selectedNoteAnnotations:s,noteAnnotationToModify:u,selectedAnnotation:d,selectedFormField:p,activeAnnotationNote:i,hoverAnnotationNote:o,editableSelectedAnnotationIds:a.filter((t=>{const n=e.annotations.get(t);return n&&!(0,mn.Qe)(n,e)})),currentTextSelection:e.currentTextSelection,hoveredLinkAnnotation:l}}))(GE);var XE=n(10455),QE=n(88425),ek=n(81199),tk=n(29249),nk=n(38119),rk=n(90741),ok=n(63049);const ik=(0,s.Ng)((function(e){return{locale:e.locale,messages:ok.Ay[e.locale]}}))(he.Dk),ak=["Annotation","CommentAvatar"];var sk=n(17293),lk=n(34554),ck=n(21559),uk=n(14511),dk=n(30006),pk=n(4033),hk=n(82747),fk=n(1257),mk=n(42361),gk=n(46692),vk=(n(50994),n(36431),n(90310)),yk=n(68322),bk=n(20546),wk=n(14631);var xk,Sk,_k=n(90820),Ck=n(72776),Ek=n(67761),kk=n(76164);const zk={current:(0,a.T5)()},Pk={current:(0,a.T5)()},Ak=new Promise((function(){})),Dk="pspdfkit-lib/pspdfkit-2024.8.0.css",Tk=`\n<style data-pspdfkit="true">\nbody, html, .${xe.ti} {\n  margin: 0;\n  padding: 0;\n  overflow: hidden;\n  height: 100%;\n  width: 100%;\n  box-sizing: border-box;\n}\n.${xe.ti} {\n  container: pspdfkit / size;\n}\n</style>\n`,Ik=["baseUrl","baseCoreUrl","baseProcessorEngineUrl","licenseKey","disableWebAssemblyStreaming","enableAutomaticLinkExtraction","overrideMemoryLimit","customFonts","isSharePoint","isSalesforce","productId","processorEngine"];let Mk,Nk=null,Ok=null,jk=null;function Rk(){return Mk}function Fk(e){Mk=e}function Bk(e){n.p=e}function Lk(e){return e.baseCoreUrl?e.baseCoreUrl:(0,wk.Nh)(e)}function Vk(e){return e.baseProcessorEngineUrl?e.baseProcessorEngineUrl:(0,wk.Nh)(e)}async function Kk(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"),Nk instanceof Promise)try{return void await Nk}catch(t){if(Ok&&0===(0,l.xz)(e,Ok).length)throw t;Ok=null}Ok=e,"string"==typeof e.baseUrl&&(0,uk.f4)(e.baseUrl);Bk((0,wk.Nh)(e));const t=e.appName||e.electronAppName||(0,S.D5)()||window.location.origin,r=Vk(e);e.processorEngine&&(Mk=Xk({baseUrl:r,mainThreadOrigin:t,licenseKey:e.licenseKey,processorEngine:e.processorEngine,customFonts:e.customFonts,dynamicFonts:e.dynamicFonts,fontSubstitutions:e.fontSubstitutions,inlineWorkers:e.inlineWorkers})),Nk=async function(e){const t=(0,wk.Nh)(e),r=Lk(e),o=Vk(e),i={...e,baseUrl:t,baseCoreUrl:r,baseProcessorEngineUrl:o};Bk(t),jk||(jk=await Promise.all([n.e(9042),n.e(5362)]).then(n.bind(n,63993)));const{corePool:a,validateStandaloneConfiguration:s,normalizeCoreOptions:l,loadModule:c}=jk;s(i);const u=l(i),{object:d,checkIn:p}=a.checkOut();await c(d,u),p()}(e),await Promise.all([Nk,Mk])}async function $k(e){if(fe.lw)throw new l.uE("Starting 2022.5.0, we no longer support Internet Explorer 11.");if(fe.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,wk.p0)(e.container),(0,l.V1)(!zk.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;zk.current=zk.current.set(r,(function(){t.current=!1,zk.current=zk.current.delete(n)}))}try{if(Nk instanceof Promise)try{await Nk}catch(t){if(Ok&&0===(0,l.xz)(e,Ok).length)throw t;Ok=null}else Nk=Promise.resolve();let r;const u=(0,wk.Nh)(e);if(Bk(u),!t.current)return Ak;if("document"in e&&e.document){if(!e.processorEngine&&Ok?.processorEngine&&(e.processorEngine=xs.j.fasterProcessing),null!=Ok){const t=(0,l.xz)(Ok,e,{keys:Ik});(0,l.V1)(0===t.length,"The configuration object passed to PSPDFKit is different from the one given previously\n"+(0,l.PQ)(t))}Ok=e,jk||(jk=await Promise.all([n.e(9042),n.e(5362)]).then(n.bind(n,63993)));const t=jk?.default;r=new t({...e,baseCoreUrl:Lk(e)}),e.autoSaveMode||(e.autoSaveMode=z.O.IMMEDIATE),(e.appName&&(0,S.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,S.b8)(),"`electronAppName` should only be set when using Electron.")),(0,wk.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(9042),n.e(5750)]).then(n.bind(n,1033))).default;r=new t(e),e.autoSaveMode||(e.autoSaveMode=e.instant?z.O.IMMEDIATE:z.O.INTELLIGENT)}if(!t.current)return r&&r.destroy(),Ak;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 PSPDFKit Document Engine and render the document server-side.\n");if(e.autoSaveMode&&e.autoSaveMode!==z.O.INTELLIGENT&&e.autoSaveMode!==z.O.IMMEDIATE&&e.autoSaveMode!==z.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(Ss.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(_s.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(Ss.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."),qk(e,"disableHighQualityPrinting"),e.disableHighQualityPrinting&&"boolean"==typeof e.disableHighQualityPrinting&&!e.printOptions.quality&&("STANDALONE"!==r.type||"ios"!==fe.qU&&"android"!==fe.qU?e.printOptions.quality=e.disableHighQualityPrinting?_s.z.MEDIUM:_s.z.HIGH:e.printOptions.quality=_s.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(dk.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 js.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}}}qk(e,"disableForms"),Wk(e,"annotationTooltipCallback"),qk(e,"disableTextSelection"),qk(e,"preventTextCopy"),Wk(e,"renderPageCallback"),function(e,t){if(e[t]){if(!Array.isArray(e[t]))throw new l.uE(`${t} must be an array of annotation types.`);if(!e[t].every((e=>e&&e.prototype&&(e.prototype instanceof Os.A||e==Os.A))))throw new l.uE(`${t} must be an array of annotation types.`)}}(e,"editableAnnotationTypes"),Wk(e,"isEditableAnnotation"),Wk(e,"isEditableComment"),Wk(e,"dateTimeString"),Wk(e,"annotationToolbarColorPresets"),Wk(e,"annotationToolbarItems"),Wk(e,"onWidgetAnnotationCreationStart"),Wk(e,"inlineTextSelectionToolbarItems"),Wk(e,"onCommentCreationStart"),Wk(e,"measurementValueConfiguration"),"mentionableUsers"in e&&((0,l.V1)(Array.isArray(e.mentionableUsers),"mentionableUsers must be an array"),e.mentionableUsers.forEach(vk.wj)),(0,l.pq)(`PSPDFKit for ${(0,S.b8)()?"Electron":"Web"} 2024.8.0 (https://pspdfkit.com/web)`);try{d=(0,ys.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,b,x=new C.A;e.disableOpenParameters||(x=(0,Ns.J)(x)),e.initialViewState&&(x=e.initialViewState,x=(0,Ms.hz)(x,null)),e.customRenderers&&(v=function(e){for(const t in e)e.hasOwnProperty(t)&&((0,l.V1)(ak.includes(t),`'${t}' is not a custom renderable entity. Custom renderable entities are: ${ak.join(", ")}`),(0,l.V1)("function"==typeof e[t],`'${t}' custom renderer must be a function.`));return e}(e.customRenderers)),e.customUI&&(y=(0,sk.I)(e.customUI)),(0,l.V1)("number"==typeof Ye.JY.DEFAULT_INK_ERASER_CURSOR_WIDTH&&Ye.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(Lo.y).includes(e.unstable_inkEraserMode),"`unstable_inkEraserMode` must be one of: `PSPDFKit.unstable_InkEraserMode.POINT` or `PSPDFKit.unstable_InkEraserMode.STROKE`"),b=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 Ai.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 PSPDFKit 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,rd.V1)("object"==typeof e,"The provided UI must be an object.");for(const[t,n]of Object.entries(e))(0,rd.V1)(Object.keys(dl.Rq).includes(t),`'${t}' is not a valid UI element. Valid UI elements are: ${Object.keys(dl.Rq).join(", ")}`),(0,rd.V1)("function"==typeof n,`The provided UI for "${t}" must be a function.`)}(e.ui);const P={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?Q.g.VIA_VIEW_STATE:Q.g.NO,formsEnabled:!e.disableForms,formDesignMode:!e.disableForms&&x.formDesignMode,showAnnotations:x.showAnnotations,eventEmitter:new nk.A,locale:d,clientPermissions:new k.sy({extract:!e.disableTextSelection,preventTextCopy:!!e.preventTextCopy,printHighQuality:e.printOptions?.quality===_s.z.HIGH}),signatureState:new k.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,Ds.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||Cg.y.NEVER,previewRedactionMode:x.previewRedactionMode,keepSelectedTool:x.keepSelectedTool,isAPStreamRendered:e.isAPStreamRendered,restrictAnnotationToPageBounds:e.restrictAnnotationToPageBounds,electronicSignatureCreationModes:(0,a.CD)(e.electronicSignatures&&e.electronicSignatures.creationModes||pk.A),signingFonts:(0,a.CD)(e.electronicSignatures&&e.electronicSignatures.fonts||QE.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:b,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?{...Ck.M,...e.ui}:void 0,aiDocumentAssistant:new kk.A({configuration:e.aiDocumentAssistant,show:x.showAIDocumentAssistant}),documentId:"STANDALONE"===r.type?null:e.documentId,isTextComparison:"STANDALONE"===r.type&&e.isTextComparison,textComparisonSharedState:"STANDALONE"!==r.type?void 0:e.textComparisonSharedState};let A,T,I=Promise.resolve();if(!0===e.headless)A=ps({...P,frameWindow:window});else if([A,I,T]=await async function(e,t,n,r,u){const d=(0,wk.r$)(r),h=(0,wk.h1)(r,t,g());let m=xe.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=xe.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=E.rw.fromClientRect(d.getBoundingClientRect()).setLocation(new E.bR),b=new k.W6({currentPageIndex:u.currentPageIndex,disablePointSnapping:u.disablePointSnapping,zoomLevel:"number"==typeof u.zoom?u.zoom:1,zoomMode:"number"==typeof u.zoom?Ji.d.CUSTOM:u.zoom,pagesRotation:(0,Oe.Kr)(u.pagesRotation),layoutMode:u.layoutMode,scrollMode:u.scrollMode,pageSpacing:u.pageSpacing,spreadSpacing:u.spreadSpacing,keepFirstSpreadAsSinglePage:u.keepFirstSpreadAsSinglePage,viewportPadding:new E.bR({x:u.viewportPadding.horizontal,y:u.viewportPadding.vertical}),minDefaultZoomLevel:m,maxDefaultZoomLevel:v,enableAlwaysScrollToZoom:u.enableAlwaysScrollToZoom,forceRenderWidgetsInAnnotationsOrder:u.forceRenderWidgetsInAnnotationsOrder,prerenderedPageSpreads:u.prerenderedPageSpreads});let x=ek.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(As.t));let S=tk.A.toJS();r.documentEditorFooterItems&&(S=r.documentEditorFooterItems,S.forEach(Ts.t));let _=hk.A.toJS();r.documentEditorToolbarItems&&(_=r.documentEditorToolbarItems,_.forEach(Is.t));if(r.aiDocumentAssistant){if("SERVER"!==n.backend?.type)throw new l.uE("AI Document Assistant is only available with the PSPDFKit Document Engine");if(!r.aiDocumentAssistant.backendUrl||"string"!=typeof r.aiDocumentAssistant.backendUrl)throw new l.uE("aiDocumentAssistant.backendUrl is required and must be a string");if(!r.aiDocumentAssistant.sessionId||"string"!=typeof r.aiDocumentAssistant.sessionId)throw new l.uE("aiDocumentAssistant.sessionId is required and must be a string");if(!r.aiDocumentAssistant.jwt||"string"!=typeof r.aiDocumentAssistant.jwt)throw new l.uE("aiDocumentAssistant.jwt is required and must be a string");if(r.aiDocumentAssistant.onMessageSubmit&&"function"!=typeof r.aiDocumentAssistant.onMessageSubmit)throw new l.uE("aiDocumentAssistant.onMessageSubmit must be a function")}let C=xe.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")),C={...C,...r.documentEditorConfiguration}}let z=G.Ay.toObject();z.ink.inkEraserWidth=Ye.JY.DEFAULT_INK_ERASER_CURSOR_WIDTH,r.annotationPresets&&(z=r.annotationPresets,Object.values(z).forEach(Ps.t));let P=XE.Ay;r.stampAnnotationTemplates&&Array.isArray(r.stampAnnotationTemplates)&&(P=r.stampAnnotationTemplates,P.forEach(_i.nn));"mentionableUsers"in r&&((0,l.V1)(Array.isArray(r.mentionableUsers),"mentionableUsers must be an array"),r.mentionableUsers.forEach(vk.wj));"maxMentionSuggestions"in r&&(0,l.V1)("number"==typeof r.maxMentionSuggestions&&r.maxMentionSuggestions>0,"maxMentionSuggestions must be a number greater than 0");Object.isFrozen(Ye.JY)||(Ye.pN!==Ye.JY.COLOR_PRESETS&&(0,f.eO)("Options.COLOR_PRESETS","PSPDFKit#Customisation.AnnotationToolbarColorPresets",!0),(0,Ye.Lm)(Ye.JY),Object.freeze(Ye.JY));const A=Hk();d.appendChild(A),Gk(d,(function(){const{parentNode:e}=A;e&&e.removeChild(A)}));const D=void 0===r.useIframe||!r.useIframe,[T,I]=await Uk(A,t,h,r.enableServiceWorkerSupport||!1,D);if((0,wk.Of)(T),!e.current)return Ak;(0,bs.A)(T);const M=(0,ws.LI)(T);"function"==typeof M&&Gk(d,(function(){M()}));const N=r.electronicSignatures?.colorPresets||fk.A;if(0===N.length)throw new l.uE("PSPDFKit.Configuration.electronicSignatures#colorPresets should have at least one preset.");let O=null;if("customFonts"in r&&r.customFonts){const e=n.backend.getCustomFontsPromise();e.current||(e.current=(0,ca.eY)(r.customFonts)),O=await e.current}if(fe.nr&&D&&T instanceof ShadowRoot){const e=new w(T);Gk(d,(function(){e.cleanupEventListeners(T)}))}const j=ps({...n,rootElement:d,containerRect:y,showToolbar:u.showToolbar,disablePointSnapping:u.disablePointSnapping,enableAnnotationToolbar:u.enableAnnotationToolbar,toolbarItems:(0,a.ss)(x),electronicSignatureColorPresets:N,annotationPresets:(0,a.T5)(z),stampAnnotationTemplates:Object.freeze(P),currentItemPreset:null,viewportState:b,interactionMode:null,documentEditorFooterItems:(0,a.ss)(S),documentEditorToolbarItems:(0,a.ss)(_),frameWindow:D?window:T.defaultView,shadowRoot:D?T:null,sidebarWidth:y.width<=xe.DK?y.width:Ye.JY.INITIAL_DESKTOP_SIDEBAR_WIDTH,renderPagePreview:"boolean"!=typeof r.renderPagePreview||r.renderPagePreview,enableAlwaysScrollToZoom:u.enableAlwaysScrollToZoom,documentEditorConfig:C,theme:r.theme});if(await(0,ys.G2)(j.getState().locale),!e.current)return Ak;j.dispatch((0,Cs.iP)(new zs(j.getState,j.dispatch))),j.dispatch((0,Pt.Gm)((0,q.g2)(j.getState)));const R=D?T.querySelector(`.${xe.ti}`):T.defaultView?.document.querySelector(`.${xe.ti}`);return(0,l.V1)(R,"Internal PSPDFKit Error: Mount Target could not be found in contentDocument. Please contact support@pspdfkit.com"),(0,c.render)((0,ee.jsxs)(s.Kq,{store:j,children:[D?xk||(xk=(0,ee.jsx)(o.s6,{id:"a11y-status-message",role:"status","aria-live":"polite","aria-relevant":"additions text"})):null,(0,ee.jsx)(ik,{onError:e=>(e.code,e),children:(0,ee.jsx)("div",{className:p()(Hp().withLayers,D&&Hp().relativeContainer,(!("CSS"in window)||!window.CSS.supports?.("isolation: isolate"))&&Hp().withLayersFallback),children:(0,ee.jsx)(i.S,{children:Sk||(Sk=(0,ee.jsx)(JE,{}))})})})]}),R),Gk(d,(function(){(0,c.unmountComponentAtNode)(R)})),[j,I,O]}(t,u,P,e,x),!t.current)return Ak;const M=A.getState(),{eventEmitter:N,rootElement:O}=M;O&&Gk(O,(function(){r&&r.destroy()}));const j=new rk.A({store:A,backend:r,eventEmitter:N});if(await vs({dispatch:A.dispatch,backend:r,getState:A.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:I}),!t.current)return r&&r.destroy(),Ak;let R=function(){j._destroy(),!0===e.headless&&r&&r.destroy(),Pk.current=Pk.current.delete(j)};O&&(R=Gk(O,R)),Pk.current=Pk.current.set(j,R);const{features:B,formDesignMode:L,previewRedactionMode:K,documentPermissions:$,frameWindow:H}=A.getState();if(k.pP.prototype.getMeasurementDetails=function(){if(!B.includes(X.Y.MEASUREMENT_TOOLS))throw new l.uE(gk.Z);return(0,D._7)(this)},e.fontSubstitutions&&((0,l.V1)(_(e.fontSubstitutions),"Invalid fontSubstitutions"),r.setFontSubstitutions(e.fontSubstitutions)),$.fillForms||$.annotationsAndForms||Ye.JY.IGNORE_DOCUMENT_PERMISSIONS?A.dispatch((0,Pt.BJ)(e.editableAnnotationTypes?(0,a.NZ)(e.editableAnnotationTypes):(0,a.NZ)(Y.A),e.isEditableAnnotation)):A.dispatch((0,Pt.DU)((0,a.NZ)([]))),B.includes(X.Y.ELECTRONIC_SIGNATURES)&&function(e,t){const n=e.document.createRange(),r=ca.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}pspdfkit-lib/${e.file}.woff2) format('woff2'),\n         url(${t}pspdfkit-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)}(H,u),L&&!(0,mn.ru)(A.getState()))throw A.dispatch((0,Pt._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(X.Y.REDACTIONS))throw A.dispatch((0,Pt.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===F.O.DOCUMENT_EDITOR&&!B.includes(X.Y.DOCUMENT_EDITING))throw A.dispatch((0,Pt.$x)()),new l.uE(lk.Q);if(e.initialViewState&&e.initialViewState.interactionMode===F.O.CONTENT_EDITOR&&!B.includes(X.Y.CONTENT_EDITING))throw A.dispatch({type:V.$Yt}),new l.uE(os.Vb);if((0,Me.$_)(e.initialViewState?.interactionMode)&&!B.includes(X.Y.FORM_DESIGNER))throw A.dispatch((0,Pt.Fl)()),new l.uE(mk.Pf);if(e.initialViewState&&e.initialViewState.showSignatureValidationStatus!==Cg.y.NEVER&&!B.includes(X.Y.DIGITAL_SIGNATURES))throw new l.uE(ck._);if((e.documentEditorFooterItems||e.documentEditorToolbarItems||e.documentEditorConfiguration)&&!B.includes(X.Y.DOCUMENT_EDITING))throw new l.uE(lk.Q);if(e.aiDocumentAssistant&&!B.includes(X.Y.DOCUMENT_ASSISTANT))throw A.dispatch((0,Pt.Oh)(null)),new l.uE(Ek.DR);if(e.initialViewState&&!0===e.initialViewState.showAIDocumentAssistant&&!B.includes(X.Y.DOCUMENT_ASSISTANT))throw A.dispatch((0,Pt.LG)(!1)),new l.uE(Ek.DR);if(!0!==e.headless&&!B.includes(X.Y.UI))throw A.dispatch((0,hs.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,Ms.Lj)(x.interactionMode,M);A.dispatch(e.onEnterAction())}return A.dispatch((0,Pt.WG)(j)),j}catch(e){const{type:t,request:n}=e;throw"error"===t&&n&&/\/pspdfkit-lib\//.test(n)&&e("Failed to load pspdfkit-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 Hk(){const e=document.createElement("div");return e.className="PSPDFKit-Container",e.style.width="100%",e.style.height="100%",e}async function Uk(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,P.AV)([t+Dk].concat(n).map((e=>{const n=n=>{const r=n instanceof Error;return{filename:e,css:r?null:n,isCustom:e!==t+Dk}};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=Tk+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+Dk}" data-pspdfkit="true">\n${n.map((e=>`<link rel="stylesheet" href="${e}">`)).join("\n")}\n${Tk}\n`;return new Promise((t=>{if(o){const n=e.attachShadow({mode:"open"}),r=document.createElement("div");r.className=xe.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=xe.Jf,n.appendChild(o);const c=document.createRange().createContextualFragment(l);n.prepend(c),Yk(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="${xe.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),Yk(i,a,r),t([r,s])}}}))}function qk(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 Wk(e,t){if(e[t]&&"function"!=typeof e[t])throw new l.uE(`The type for ${t} is not valid. Must be \`function\`.`)}function Gk(e,t){const n=zk.current.get(e);function r(){t(),n?.()}return(0,l.V1)(n),zk.current=zk.current.set(e,r),r}function Yk(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 Zk(e,t){const{licenseKey:n,electronAppName:r,productId:o,appName:i}=e;ez(e);const a=(0,wk.Nh)(e);(0,l.V1)(o!==yk.v.Salesforce,"Document conversion is not currently supported in Salesforce."),t&&(0,l.V1)(t&&Object.values(bk.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(bk.o).join(", PSPDFKit.Conformance."));const s=await(0,ms.sl)(a,e.document,o),c=i||r||(0,S.D5)()||window.location.origin,u=Vk(e);Mk||(Mk=Xk({baseUrl:u,mainThreadOrigin:c,customFonts:e.customFonts,dynamicFonts:e.dynamicFonts,fontSubstitutions:e.fontSubstitutions,licenseKey:n,processorEngine:e.processorEngine,inlineWorkers:e.inlineWorkers}));const d=await Mk;return(0,l.V1)(d),await d.toPdf(s,t)}async function Jk(e,t){const{licenseKey:n,electronAppName:r,productId:o,appName:i}=e;ez(e);const a=(0,wk.Nh)(e);(0,l.V1)(o!==yk.v.Salesforce,"Document conversion is not currently supported in Salesforce."),(0,l.V1)(t&&Object.values(_k.z).includes(t),`The provided conversion output format ${t} is not supported. Supported output formats are ${Object.values(_k.z).map((e=>`PSPDFKit.OfficeDocumentFormat.${e}`)).join(", ")}.`);const s=await(0,ms.sl)(a,e.document,o),c=i||r||(0,S.D5)()||window.location.origin,u=Vk(e);Mk||(Mk=Xk({baseUrl:u,mainThreadOrigin:c,customFonts:e.customFonts,dynamicFonts:e.dynamicFonts,fontSubstitutions:e.fontSubstitutions,licenseKey:n,processorEngine:e.processorEngine,inlineWorkers:e.inlineWorkers}));const d=await Mk;return(0,l.V1)(d),await d.toOffice(s,t)}async function Xk(e){let{baseUrl:t,mainThreadOrigin:r,customFonts:o,dynamicFonts:i,fontSubstitutions:a,licenseKey:s,processorEngine:l,inlineWorkers:c}=e;const u=await n.e(1860).then(n.bind(n,60919));try{const e=!l||l===xs.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,ca.eY)(o)}:null,...i?{dynamicFonts:i}:null,...a?{fontSubstitutions:_(a)?a:null}:null})}catch(e){throw e}}async function Qk(e,t){const{licenseKey:n,electronAppName:r,productId:o,appName:i}=e;ez(e),(0,l.V1)(o!==yk.v.Salesforce,"Document template populate is not currently supported in Salesforce.");const a=(0,wk.Nh)(e),s=await(0,ms.sl)(a,e.document,o),c=i||r||(0,S.D5)()||window.location.origin,u=Vk(e);let d;try{return Mk||(Mk=Xk({baseUrl:u,mainThreadOrigin:c,customFonts:e.customFonts,dynamicFonts:e.dynamicFonts,fontSubstitutions:e.fontSubstitutions,licenseKey:n,processorEngine:e.processorEngine,inlineWorkers:e.inlineWorkers})),d=await Mk,(0,l.V1)(d),await d.populateDocumentTemplate(s,t,e.licenseKey)}catch(e){throw e}finally{d?.destroy(),Fk(null)}}function ez(e){const{licenseKey:t,electronAppName:n,productId:r,appName:o}=e;"string"==typeof e.baseUrl&&(0,uk.f4)(e.baseUrl);Bk((0,wk.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,S.b8)()||n)&&((0,l.V1)(n,"The `electronAppName` option is deprecated and will be removed in a future version. Please use `appName` instead."),(0,wk.Jw)(o||n,r))}},76164:(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,Ay:()=>B,Eu:()=>A,Gg:()=>z,H5:()=>P,Ho:()=>I,Im:()=>d,Iy:()=>E,JW:()=>V,LN:()=>w,PE:()=>v,Sy:()=>y,TD:()=>F,TG:()=>i,VD:()=>N,Wu:()=>_,ZY:()=>l,aF:()=>g,bs:()=>b,di:()=>O,e5:()=>T,el:()=>S,g3:()=>s,h2:()=>D,jL:()=>M,kE:()=>j,mS:()=>a,mo:()=>x,oI:()=>f,oR:()=>u,rw:()=>c,s3:()=>k,wI:()=>R,yQ:()=>L,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))]:[]},j=(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},R=e=>{const{textBlockInteractionState:t}=e.contentEditorSession;return!t||t.state!==a.Active&&t.state!==a.Selected?null:j(t.pageIndex,t.textBlockId)(e)},F=(e,t)=>n=>{const{textBlockInteractionState:r}=n.contentEditorSession;return r&&r.state===a.Active&&r.pageIndex===e&&r.textBlockId===t},B=e=>e.contentEditorSession.availableFaces,L=(e,t)=>n=>{const{textBlockInteractionState:r}=n.contentEditorSession;return r&&r.state===a.Selected&&r.pageIndex===e&&r.textBlockId===t},V=(e,t)=>n=>{const{textBlockInteractionState:r}=n.contentEditorSession;return r&&r.state===a.Moving&&r.pageIndex===e&&r.textBlockId===t};class K extends((0,o.mS)({x:new l,y:new l})){}class $ extends((0,o.mS)({rotation:0,baseSize:new l,skew:0,flip:!1})){}class H extends((0,o.mS)({params:new $,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:[]},{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:(0,r.T5)(),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),j=n(76164),R=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 R.A,clientPermissions:new d.A,backendPermissions:new u.A,documentPermissions:new p.A,inkEraserCursorWidth:0,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.AUTO,ui:O.M,aiDocumentAssistant:new j.A,promptContentEditorDocumentDownload:!1,promptContentEditorCannotSaveChanges:!1,isServerModeDownloadingWASM:!1,isServerModeDownloadingDocument:!1,isTextComparison:!1,textComparisonSharedState:void 0,wasLinearized:!1},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(96754),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.d.AUTO,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,showAIDocumentAssistant:!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(96754),l=n(50960);const c={zoomLevel:1,zoomMode:s.d.AUTO,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)){}},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(0),updatedAt:new Date(0),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=p(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})}function p(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});return r||(r=new a.bR({x:e.boundingBox.getCenter().x,y:e.boundingBox.top})),r.set("x",r.x-t/2).set("y",r.y-n/2)}(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(0),updatedAt:new Date(0),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:()=>R,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.parentNode,t=this.endNode.parentNode;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"),j={type:N.d.TEXT,options:{numberOfContextWords:0}};class R extends((0,s.mS)(j)){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:{...j.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:()=>a});var r=n(75675),o=n(21535);const i={Sidebar:Object.values(o.I)};function a(e){for(const t in e)if(e.hasOwnProperty(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}},67761:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>l,DR:()=>a,oE:()=>s});var r=n(85409),o=n(35467),i=n(64337);const a="The API you're trying to use requires a license that includes the Document Assistant component. This is a separate component and thus sold separately.",s="Document Assistant configuration object is required before this feature can be used.";function l(e,t){t.setAIDocumentAssistantsessionId=function(t){const{features:n,aiDocumentAssistant:{configuration:l}}=e.getState();(0,r.V1)(t&&"string"==typeof t,"sessionId is required and must be a string."),(0,r.V1)(n.includes(i.Y.DOCUMENT_ASSISTANT),a),(0,r.V1)(l,s),e.dispatch((0,o.Oh)({...l,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 PSPDFKit for Web 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 PSPDFKit for Web 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 PSPDFKit for Web 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:()=>F,Lj:()=>B,hz:()=>L});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(67761);const j=["viewState.change","viewState.currentPageIndex.change","viewState.zoom.change"],R=["cropArea.changeStart","cropArea.changeStop"];function F(e,t){const{eventEmitter:n}=e.getState();let l=!0,c=b();function g(){if(!l)return;const e=b(),t=c;c=e;const r=t.delete("instance"),o=e.delete("instance");r.equals(o)||(t.currentPageIndex!==e.currentPageIndex&&n.emit("viewState.currentPageIndex.change",e.currentPageIndex),t.zoom!==e.zoom&&n.emit("viewState.zoom.change",e.zoom),n.emit("viewState.change",e,t))}n.events.push(...j),n.events.push(...R);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=L(n,e),function(e,t,n){t.zoom!==n.zoom&&(n.zoom===u.d.AUTO?e.dispatch((0,k._m)()):n.zoom===u.d.FIT_TO_VIEWPORT?e.dispatch((0,k.mI)()):n.zoom===u.d.FIT_TO_WIDTH?e.dispatch((0,k.GL)()):"number"==typeof n.zoom&&e.dispatch((0,k.ed)(n.zoom)));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 l=e.getState();t.showSignatureValidationStatus!==n.showSignatureValidationStatus&&((0,o.V1)(l.features.includes(I.Y.DIGITAL_SIGNATURES),h._),e.dispatch((0,E.B4)(n.showSignatureValidationStatus)));(!0===n.formDesignMode||(0,A.$_)(n.interactionMode))&&((0,o.V1)(l.features.includes(I.Y.FORM_DESIGNER),m.Pf),(0,o.V1)(l.backend&&(0,f.ah)(l.backend),m.z8));!0===n.previewRedactionMode&&(0,o.V1)(l.features.includes(I.Y.REDACTIONS),"The API you're trying to use requires a redactions license. Redactions is a component of PSPDFKit for Web and sold separately.");n.interactionMode===w.O.DOCUMENT_EDITOR&&(0,o.V1)(l.features.includes(I.Y.DOCUMENT_EDITING),d.Q);n.interactionMode===w.O.CONTENT_EDITOR&&(0,o.V1)(l.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=B(n.interactionMode,l),i=t.interactionMode?B(t.interactionMode,l):null;(n.interactionMode===w.O.DOCUMENT_EDITOR&&(0,f.SH)({features:l.features,backendPermissions:l.backendPermissions,documentPermissions:l.documentPermissions,readOnlyEnabled:l.readOnlyEnabled})||n.interactionMode===w.O.CONTENT_EDITOR&&(0,f.Wm)({features:l.features,backendPermissions:l.backendPermissions,documentPermissions:l.documentPermissions,readOnlyEnabled:l.readOnlyEnabled})||!n.readOnly||o.allowWhenInReadOnlyMode)&&(0,r.vA)((()=>{i&&e.dispatch(i.onLeaveAction()),e.dispatch(o.onEnterAction())}))}else if(null!=t.interactionMode){const n=B(t.interactionMode,l);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)(l.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 c={[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.LAYERS]:E.eZ,[s.I.CUSTOM]:E.jt};t.sidebarMode!==n.sidebarMode&&(null===n.sidebarMode?e.dispatch((0,E.hP)()):e.dispatch(c[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&&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.showAIDocumentAssistant&&((0,o.V1)(l.features.includes(I.Y.DOCUMENT_ASSISTANT),O.DR),(0,o.V1)(l.aiDocumentAssistant.configuration,O.oE));t.showAIDocumentAssistant!==n.showAIDocumentAssistant&&e.dispatch((0,E.LG)(n.showAIDocumentAssistant))}(e,b(),n),l=!0,g()},v}function B(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}}[e]}function L(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(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.\nValid 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=B(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.showAIDocumentAssistant)throw new o.uE(`Expected \`showAIDocumentAssistant\` to be a boolean but instead got: ${e.showAIDocumentAssistant}.`);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:()=>f,P5:()=>d});var r=n(85409),o=n(49568),i=n(40961),a=n(79154),s=n(37361),l=n(36558),c=n(38849),u=n(25789);const d={SELECTION_CHANGE:"textComparison.selectionChange",SCROLL_LOCK:"textComparison.scrollLock",COMPARISON_SIDEBAR_VISIBILITY_CHANGE:"textComparison.comparisonSidebarVisibilityChange"},p=Object.values(d),h=(0,c.A)();class f{constructor(e){const t=e.dispatch,n=e.stateRef,c=e.instanceA,f=e.instanceB,m=e.stateRef.current.eventEmitter;m.events.push(...p);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{m.on(e,t)}catch(e){throw new r.uE(e)}},this.removeEventListener=(e,t)=>{try{m.off(e,t)}catch(e){throw new r.uE(e)}},this.unload=()=>{const{mainShadowRoot:e,container:t}=n.current,r=e.querySelector(`.${s.ti}`),o=e.querySelector(".PSPDFKit-DocumentA-Container"),l=e.querySelector(".PSPDFKit-DocumentB-Container");o&&(0,a.G)(o),l&&(0,a.G)(l),r&&(0,i.unmountComponentAtNode)(r);const{parentNode:c}=t;c&&c.removeChild(t)},this.setComparisonSidebarConfig=async e=>{t(l.A.setComparisonSidebarConfig(e));const{insertionColor:n,deletionColor:r}=e?.diffColors||{};r&&await g(c,r),n&&await g(f,n)},this.setScrollLock=e=>{h("boolean"==typeof e,"`setScrollLock` expects a boolean as an argument"),t(l.A.setScrollLock(e)),m.emit(d.SCROLL_LOCK,e)},this.setComparisonVisibility=e=>{h("boolean"==typeof e,"`setComparisonVisibility` expects a boolean as an argument"),t(l.A.setComparisonVisibility(e)),m.emit(d.COMPARISON_SIDEBAR_VISIBILITY_CHANGE,e)},this.setCurrentChangeIndex=e=>{h("number"==typeof e,"`setCurrentChangeIndex` expects a number as an argument");const r=n.current.textComparisonChanges,o=(0,u.a_)({textComparisonChanges:r,changeIndex:e,instanceA:c,instanceB:f,eventEmitter:m});t(l.A.setCurrentChangeIndex(o))},this.setToolbarItems=e=>{let r;"function"==typeof e?r=e(n.current.toolbarItems.toJS()):Array.isArray(e)?r=e:h(!1,"`setToolbarItems` expects an array or a function as an argument");const i=(0,u.M5)(r).toArray();t(l.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:h(!1,"`setInnerToolbarItems` expects an array or a function as an argument");const i=(0,u.cU)(r).toArray();c.setToolbarItems(i),f.setToolbarItems(i),t(l.A.setInnerToolbarItems((0,o.B8)(i)))},this.jumpToChange=e=>{h("number"==typeof e,"`jumpToChange` expects a number as an argument");const r=n.current.textComparisonChanges,o=(0,u.a_)({textComparisonChanges:r,changeIndex:e,instanceA:c,instanceB:f,eventEmitter:m});return t(l.A.setCurrentChangeIndex(o)),o},this.goToPreviousChange=()=>{const e=n.current,r=e.textComparisonChanges,o=e.currentChangeIndex,i=(0,u.d3)({textComparisonChanges:r,changeIndex:o,instanceA:c,instanceB:f,eventEmitter:m});return t(l.A.setCurrentChangeIndex(i)),i},this.goToNextChange=()=>{const e=n.current,r=e.textComparisonChanges,o=e.currentChangeIndex,i=(0,u.Vf)({textComparisonChanges:r,changeIndex:o,instanceA:c,instanceB:f,eventEmitter:m});return t(l.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(97425),i=n(45849),a=n(96540),s=n(40961),l=n(32485),c=n.n(l),u=n(13158),d=n(29843),p=n.n(d),h=n(49568),f=n(9945),m=n(20576),g=n(56907),v=n(35175),y=n(40027),b=n(2543),w=n(35295),x=n(8521),S=n(37555),_=n(60887);const C=(e,t)=>{const{instanceA:n,instanceB:r}=(0,g.jT)(),o=(0,a.useRef)(!1);(0,x.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 E=n(61712),k=n(36558);const z=e=>e.contentDocument.querySelector(".PSPDFKit-Scroll"),P=(e,t)=>{e.addEventListener("scroll",t)},A=(e,t)=>{e.removeEventListener("scroll",t)};var D=n(55236),T=n(25789);const{createToggleIconButtonToolbarItem:I,createActionIconButtonToolbarItem:M}=v.XD;function N(){const{isScrollLockEnabled:e,isComparisonVisible:t,instancesLoaded:n,instanceA:r,instanceB:o,textComparisonChanges:i,currentChangeIndex:s,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,a.useRef)(null),s=(0,a.useRef)(!1),l=(0,a.useCallback)(((e,t)=>{if(!e||!t||!n)return;const r=z(e),o=z(t);if(!r||!o)return;const i=r.scrollHeight-r.clientHeight,a=r.scrollWidth-r.clientWidth,l=o.scrollHeight-o.clientHeight,c=o.scrollWidth-o.clientWidth,u=i>0?r.scrollTop/i:0,d=a>0?r.scrollLeft/a:0;s.current=!0,requestAnimationFrame((()=>{o.scrollTo({left:d*c,top:u*l,behavior:"auto"})}))}),[n]);return(0,a.useEffect)((()=>{if(!e||!t)return;const r=z(e),o=z(t);if(!r||!o)return;const a=()=>{s.current?s.current=!1:n?l(e,t):i.current=e},c=()=>{s.current?s.current=!1:n?l(t,e):i.current=t};return P(r,a),P(o,c),n&&i.current&&(i.current===e?l(e,t):l(t,e)),()=>{A(r,a),A(o,c)}}),[e,t,n,l]),(0,a.useCallback)((()=>{const a=!n;r(k.A.setScrollLock(a)),o.emit(E.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,_.tz)();return C("zoom",e),C("interactionMode",e),(0,a.useMemo)((()=>({[D.rh.COMPARISON_CHANGES]:{toolbarItem:I(D.rh.COMPARISON_CHANGES,{icon:w.CPw,className:"PSPDFKit-Toolbar-Button-Comparison-Changes","aria-label":p(t?O.hideComparisonChanges:O.showComparisonChanges),isSelected:t,isDisabled:!n,onPress:()=>{c(k.A.setComparisonVisibility(!t)),u.emit(E.P5.COMPARISON_SIDEBAR_VISIBILITY_CHANGE,!t)}})},[D.rh.SCROLL_LOCK]:{toolbarItem:I(D.rh.SCROLL_LOCK,{className:"PSPDFKit-Toolbar-Button-Scroll-Lock","aria-label":p(e?O.scrollUnlock:O.scrollLock),icon:w.XAi,isSelected:e,isDisabled:!n,onPress:()=>{d()}})},[D.rh.PREV_CHANGE]:{toolbarItem:M(D.rh.PREV_CHANGE,{icon:w.A60,className:"PSPDFKit-Toolbar-Button-Previous-Change","aria-label":p(O.previousChange),isDisabled:!n,onPress:()=>{const e=(0,T.d3)({textComparisonChanges:i,changeIndex:-1===s&&l?l:s,instanceA:r,instanceB:o,eventEmitter:u});c(k.A.setCurrentChangeIndex(e))}})},[D.rh.NEXT_CHANGE]:{toolbarItem:M(D.rh.NEXT_CHANGE,{icon:w.flY,className:"PSPDFKit-Toolbar-Button-Next-Change","aria-label":p(O.nextChange),isDisabled:!n,onPress:()=>{const e=(0,T.Vf)({textComparisonChanges:i,changeIndex:-1===s&&l?l:s,instanceA:r,instanceB:o,eventEmitter:u});c(k.A.setCurrentChangeIndex(e))}})}})),[t,p,n,e,c,u,d,i,s,l,r,o])}const O=(0,_.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),R=n(93440),F=n(78729),B=n(91190),L=n(97028);const{useResponsiveToolbarItems:V,createButtonSelectToolbarItem:K,createActionIconButtonToolbarItem:$}=v.XD,H=`(max-width: ${F.JY.BREAKPOINT_MD_TOOLBAR}px)`;var U=n(82047),q=n(16019);const W=()=>{const{ui:e}=(0,g.jT)(),t=e?.[U.Rq.PrimaryToolbar],n=(0,a.useRef)(null),{items:o,setExpandedResponsiveGroup:i}=function(){const{toolbarItems:e,frameWindow:t}=(0,g.jT)(),[n,r]=(0,a.useState)(null),o=N(),{formatMessage:i}=(0,u.useI18n)(),[s,l]=a.useState({}),c=t,d=(0,a.useMemo)((()=>(0,B.mZ)(e,o,!1,(()=>{}))),[o,e]),p=(0,a.useMemo)((()=>Object.fromEntries(Object.entries(d).filter((e=>{let[,t]=e;return!t.isHidden&&(t.mediaQueries||[]).every((e=>c?.matchMedia(e).matches))})))),[d,s,c]);(0,x.useGranularEffect)((()=>{const e=Object.values(p).flatMap((e=>e.mediaQueries)).filter(Boolean).filter((e=>"all"!==e?.trim())).concat(H);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,S.lb)(),[f,m]=(0,a.useState)({}),v=(0,a.useCallback)(((e,t)=>{const n=p[e].toolbarItem;"props"in n&&n.props.onPress({pointerType:h}),m((n=>({...n,[t]:e})))}),[p,h]),_=(0,a.useMemo)((()=>{let e=Object.values(p);const t=(0,b.groupBy)(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=K(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,L.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,B.NO)(n)}),triggerClassName:"PSPDFKit-Input-Dropdown-Button","aria-label":(0,B.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=(0,b.groupBy)(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:w.JJd,onPress:()=>{r(null)},className:"PSPDFKit-Tool-Button","aria-label":i(R.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}=V({itemsStore:Object.fromEntries(Object.entries(_).map((e=>{let[t,n]=e;return[t,n.toolbarItem]}))),mobileItems:Object.keys(_),emulateMobileBehaviourInTablet:!0,device:c?.matchMedia(H).matches?"mobile":"desktop"});return{items:[...C,{type:"separator",name:"separator-last"}],setExpandedResponsiveGroup:r}}();(0,a.useEffect)((()=>{const e=n.current,t=e=>{(0,r.B6)(e.target)||e.preventDefault()};return e?.addEventListener("pointerdown",t),()=>{e?.removeEventListener("pointerdown",t)}}),[]);const s=(0,a.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)(U.Rq.PrimaryToolbar,t,s,null)};var G=n(4046),Y=n(27913),Z=n.n(Y),J=n(74848);const X=function(){const{textComparisonChanges:e,currentChangeIndex:t,lastSelectedChangeIndex:n,dispatch:r,instanceA:o,instanceB:i,comparisonSidebarConfig:s}=(0,g.jT)(),l=a.useCallback((()=>{const a=(0,T.d3)({textComparisonChanges:e,changeIndex:-1===t&&n?n:t,instanceA:o,instanceB:i});return r(k.A.setCurrentChangeIndex(a)),String(a)}),[r,t,o,i,e,n]),u=a.useCallback((()=>{const a=(0,T.Vf)({textComparisonChanges:e,changeIndex:-1===t&&n?n:t,instanceA:o,instanceB:i});return r(k.A.setCurrentChangeIndex(a)),String(a)}),[r,t,o,i,e,n]),d=a.useCallback((t=>((0,T.a_)({textComparisonChanges:e,changeIndex:t,instanceA:o,instanceB:i}),r(k.A.setCurrentChangeIndex(Number(t))),t)),[r,o,i,e]);return(0,J.jsx)("div",{className:c()(Z().innerDocumentContainer,Z().diffViewer,"PSPDFKit-Text-Comparison-Sidebar"),children:(0,J.jsx)(G.U5,{items:e,onJumpToChange:d,onPreviousChange:l,onNextChange:u,selectedKey:t,diffColors:s?.diffColors})})};var Q;const ee=()=>{const{isComparisonVisible:e}=(0,g.jT)();return(0,J.jsxs)(u.PanelGroup,{direction:"horizontal",children:[e&&(0,J.jsxs)(J.Fragment,{children:[Q||(Q=(0,J.jsx)(u.Panel,{defaultSize:25,order:1,children:(0,J.jsx)(X,{})})),(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()(Z().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()(Z().innerDocumentContainer,we)})})]})};var te=n(510),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(94010);function de(e){let{loadDispatch:t}=e;const{dispatch:n,stateRef:r}=(0,g.jT)();return a.useEffect((()=>{t({dispatch:n,stateRef:r})}),[n,t,r]),null}var pe=n(63049);function he(e){let{locale:t,onError:n,children:r}=e;return(0,J.jsx)(_.Dk,{locale:t,messages:pe.Ay[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,T.bB)(e);const t=(0,T.M5)(e.toolbarItems),n=(0,T.cU)(e.innerToolbarItems);let a;const l=new Promise((e=>{a=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,T.Xq)(e.locale),(0,ue.$4)(v,f,m,!1,!0)]);await w,(0,ve.Of)(b),(0,te.A)(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@pspdfkit.com");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};(0,s.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)(W,{})),(0,J.jsx)(de,{loadDispatch:e=>{let{dispatch:t,stateRef:n}=e;a({dispatch:t,stateRef:n})}}),(0,J.jsx)("div",{className:Z().container,children:ge||(ge=(0,J.jsx)(ee,{}))})]})})})})})]}),x);const{dispatch:C,stateRef:z}=await l,{instanceA:P,instanceB:A}=await(0,T.XB)(e,y,n,b,{dispatch:C,getTextComparisonState:()=>z.current}),D=new oe.Hv({filePath:e.documentA,pageIndexes:[0,P.totalPageCount-1]}),I=new oe.Hv({filePath:e.documentB,pageIndexes:[0,A.totalPageCount-1]}),M=new oe.zT(re.d.TEXT,{numberOfContextWords:2}),N=await P.compareDocuments({originalDocument:D,changedDocument:I},M),O=await(0,T.Lk)(N?.[0],P,A,e.comparisonSidebarConfig?.diffColors),j=P._store.getState().features,R=P._store.getState().backend;return(0,r.V1)("STANDALONE"===R?.type,ne.xo),(0,r.V1)(j.includes(ye.Y.TEXT_COMPARISON),ne.Uo),C(k.A.setInstances({instanceA:P,instanceB:A})),C(k.A.setTextComparisonChanges(O.changes)),new E.Ay({dispatch:C,stateRef:z,instanceA:P,instanceB:A})}},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(94010),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 r of e?.documentComparisonResults||[]){const{originalPageIndex:e,changedPageIndex:d,comparisonResults:p}=r,h=t.pageInfoForIndex(e),f=n.pageInfoForIndex(d);for(const t of p)if("text"===t.type)for(const n of t.hunks){const t=[],r=[];let p,m="",g="",b=0,w=0,S=(0,o.NZ)();for(const l of n.operations)switch(l.type){case"delete":{const t=new v.rw({left:l.originalTextBlocks[0].rect[0],top:(h?.height||0)-l.originalTextBlocks[0].rect[1]-l.originalTextBlocks[0].rect[3],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),r.push(n),g+=l.text,w++,S=S.add("delete");break}case"insert":{const e=new v.rw({left:l.changedTextBlocks[0].rect[0],top:(f?.height||0)-l.changedTextBlocks[0].rect[1]-l.changedTextBlocks[0].rect[3],width:l.changedTextBlocks[0].rect[2],height:l.changedTextBlocks[0].rect[3]}),n=new v.ax({id:(0,y.A)(),pageIndex:d,rects:(0,o.B8)([e]),boundingBox:e,color:c||i.eG});a.push(n),t.push(n),m+=l.text,b++,S=S.add("insert");break}case"equal":S=S.add("equal")}p=S.has("insert")&&S.has("delete")?x.replaced:S.has("insert")?x.inserted:S.has("delete")?x.deleted:"equal",(t.length>0||r.length>0)&&l.push({insertionAnnotations:(0,o.B8)(t),deletionAnnotations:(0,o.B8)(r),pages:(0,o.NZ)([...t.map((e=>e.pageIndex)),...r.map((e=>e.pageIndex))]),insertedText:m,deletedText:g,insertionCount:b,deletionCount:w,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:()=>d,eG:()=>c,h_:()=>l});var r=n(96540),o=n(76117),i=n(82047),a=n(16019),s=n(56907);const l=new o.Q1({r:255,g:201,b:203}),c=new o.Q1({r:192,g:216,b:239}),u={insertionColor:c,deletionColor:l,insertionBackgroundColor:c.darker(50),deletionBackgroundColor:l.darker(50)};function d(e){let{items:t,onPreviousChange:n,onNextChange:o,onJumpToChange:l,selectedKey:c,diffColors:d}=e;const{ui:p}=(0,s.jT)(),h=p?.[i.Rq.DiffViewer],f=(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}}(d||u);return Object.keys(e).reduce(((t,n)=>(t[n]=e[n]?.toHex()||u[n].toHex(),t)),{})}),[d]),m=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]),g=(0,r.useMemo)((()=>({"aria-label":"Changes",changeSectionHeaderClassName:"PSPDFKit-Sidebar-DiffViewer-Page-Number",changeSectionClassName:"PSPDFKit-Sidebar-DiffViewer-Container",shouldShowChangesCount:!0,onJumpToChange:l,onNextChange:o,onPreviousChange:n,selectedKey:String(c),changes:m,diffColors:f})),[m,f,l,o,n,c]);return(0,a.Q)(i.Rq.DiffViewer,h,g,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.DOCUMENT_ASSISTANT="ai-document-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.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(13158).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"}})},91190:(e,t,n)=>{"use strict";n.d(t,{NO:()=>v,mZ:()=>g});var r=n(96540),o=n(40027),i=n(42838),a=n.n(i),s=n(65221),l=n(74848),c=e=>{var t;return null!==(t=e?.ownerDocument)&&void 0!==t?t:document};function u(...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 d=r.forwardRef((({size:e,title:t,className:n,style:i,color:d,...p},h)=>{let f=(0,s.Bi)(),m=r.useRef(null),g="svg"in p?p.svg:void 0,v=r.useMemo((()=>{if(g){let r=c(m.current),i=((e,t)=>{let n=t.createElement("span");n.innerHTML=a().sanitize(e);let r=n.querySelector("svg");return(0,o.V1)(r,"Icon: svg prop must be a valid svg string"),r})(g,r);return e&&((e,t)=>{e.setAttribute("height","number"==typeof t?`${t}px`:t),e.setAttribute("width","number"==typeof t?`${t}px`:t)})(i,e),t&&((e,t,n)=>{let r=e.querySelector("title"),o=c(e);if(r)r.textContent=t,r.setAttribute("id",n);else{let r=o.createElement("title");r.textContent=t,r.setAttribute("id",n),e.prepend(r)}})(i,t,f),((e,t)=>{t&&e.classList.add(t)})(i,n),i.outerHTML}}),[g,e,t,n,f]);return(0,l.jsx)("span",{className:n,ref:u(h,m),style:{display:"contents",...i,color:d},dangerouslySetInnerHTML:v?{__html:v}:void 0})}));d.displayName="Icon";var p=n(32485),h=n.n(p),f=n(2543);function m(e,t,n){const r="props"in e?e.props:{};if(["ReactElement","Block"].includes(e.type))return r;const i=t.icon?()=>((0,o.V1)(t.icon,"Icon must be provided"),(0,l.jsx)(d,{svg:t.icon})):r.icon;return{...r,id:t.id||r.id,className:h()(r.className,t.className),"aria-label":t.title||r["aria-label"],onPress:e=>{t.onPress?.(e),r.onPress?.(e),n(e)},isSelected:t.selected||r.isSelected,isDisabled:t.disabled||r.isDisabled,icon:i}}function g(e,t,n,r){const i={};for(const s of e.toJS()){var a;if("custom"===s.type){const e=`custom-${s.id||(0,f.kebabCase)(s.title)}`;if(s.node){const{className:t,node:n,onPress:r,icon:c}=s,u=c?()=>((0,o.V1)(c,"Icon must be provided"),a||(a=(0,l.jsx)(d,{svg:c}))):void 0;i[e]={dropdownGroup:s.dropdownGroup,toolbarItem:{name:e,type:"DomNodeRenderer",props:{className:t,node:n,onPress:r,icon:u}}}}else{const t={className:s.className,isDisabled:s.disabled||n,onPress:t=>{"keyboard"===t.pointerType&&s.onKeyPress?s.onKeyPress(t,e,void 0,!0):s.onPress?.(t,e,void 0,"keyboard"===t.pointerType)}};s.icon?i[e]={dropdownGroup:s.dropdownGroup,toolbarItem:{name:e,type:"ActionIconButton",props:{...t,icon:()=>((0,o.V1)(s.icon,"Icon must be provided"),(0,l.jsx)(d,{svg:s.icon})),"aria-label":s.title}}}:i[e]={dropdownGroup:s.dropdownGroup,toolbarItem:{name:e,type:"ActionButton",props:{...t,label:s.title}}}}}else if("spacer"===s.type)i.spacer={toolbarItem:{name:"spacer",type:"spacer"}};else{const e=t[s.type];e&&(i[s.type]=(0,f.merge)({},e,s,{toolbarItem:{props:m(e.toolbarItem,s,(t=>{r?.(t,e.toolbarItem.name)}))}}))}}return i}function v(){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(60887).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(94010),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,{BU:()=>U,Bv:()=>V,C5:()=>b,Cx:()=>ge,DV:()=>q,F:()=>Q,F7:()=>Se,I2:()=>H,K1:()=>I,KQ:()=>$,Kb:()=>Y,Mq:()=>ne,Nc:()=>J,O_:()=>E,RG:()=>B,S1:()=>O,Sk:()=>ue,T1:()=>M,WT:()=>z,X4:()=>N,Xm:()=>_,Y5:()=>pe,YM:()=>ke,Z6:()=>A,Zr:()=>ve,_w:()=>he,bN:()=>te,bu:()=>G,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:()=>Z,mH:()=>D,mN:()=>j,my:()=>W,nH:()=>X,o4:()=>K,oG:()=>_e,oH:()=>we,oZ:()=>xe,or:()=>Ee,r3:()=>L,rJ:()=>x,rU:()=>se,rX:()=>T,sS:()=>ze,s_:()=>be,sz:()=>ie,tE:()=>R,wp:()=>le,yQ:()=>Ce});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=>({color:new h.A({r:e.color.r,g:e.color.g,b:e.color.b}),localization:e.localization})))}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)&&!X(t)&&e.updateIn(["invalidAPStreams",t.pageIndex],(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,r.NZ)();return e.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(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,r.NZ)();return e.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(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,r.NZ)();return e.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(Ce(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=e instanceof a.YH&&("points"in e&&e.points?.toJS()||"startPoint"in e&&e.startPoint&&e.endPoint&&[e.startPoint.toJS(),e.endPoint.toJS()]);if(H(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()))}const c=(0,l.s)(r);return Array.isArray(s)?s.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 j(e){const t=I(),n=function(e){const t=e.currentItemPreset;return t&&e.annotationPresets.get(t)||{}}(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 R(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({...j(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({...j(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||H(e)}function $(e){if(e.locked)return!e.locked;switch(e.constructor){case a.dh:return!H(e);case a.xY:return!0;default:return!1}}function H(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&&!H(e)||e instanceof a.sb||e instanceof a.UL}function q(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 W(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 Y(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 Z(e,t){let n=!1;return t.emit("annotations.press",{...e,preventDefault:()=>{e.nativeEvent.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),n=!0}}),n}function J(e){e.selectedAnnotationIds.forEach((t=>{e.deleteIn(["annotationPresetIds"],t)}))}function X(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.filter((e=>e.pageIndex===t&&e instanceof a.UL)).toList()}function _e(e,t){return Ce(e,t)?1:t}function Ce(e,t){return(e instanceof a.xY||e instanceof a.dh&&!H(e))&&e.noZoom&&t>=1}function Ee(e){return e.createdAt.getTime()===e.updatedAt.getTime()}function ke(e){return e instanceof a.dh?"xhtml"===e.text.format?(0,m.lb)(e.text.value):e.text.value:""}function ze(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}):JSON.stringify(t)}},93564:(e,t,n)=>{"use strict";function r(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){return(0,r.V1)(t.backend),!t.backend.isCollaborationPermissionsEnabled()||null==e.pageIndex||"boolean"!=typeof e.isEditable||e.isEditable}function a(e,t){return(0,r.V1)(t.backend),!t.backend.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){return(0,r.V1)(t.backend),!t.backend.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:()=>u,cE:()=>f,l1:()=>c,pH:()=>h});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,h=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,++h)))),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(p),contentBlocks:(0,r.B8)(t.contentBlocks.map(e)),allowsBlockTypeChildren:t.allowsBlockTypeChildren,boundingBox:d(t)})}))}function u(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?" x".repeat(n/2):" ".repeat(n)}function d(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(d).filter(Boolean));return 0===a.length?null:o.rw.union((0,r.B8)(a))}function p(e){return"path"!==e.elementType}function h(e){return"Figure"===e||"L"===e||"LI"===e}function f(e){return"li"===e?{listStyleType:"none"}:null}},43195:(e,t,n)=>{"use strict";n.d(t,{Ci:()=>l,FP:()=>b,Re:()=>p,Vb:()=>c,ex:()=>u,i0:()=>f,jg:()=>h,mj:()=>y,oF:()=>d,q_:()=>m});var r=n(49568),o=n(81235),i=n(50960),a=n(47679);n(64337);function s(e){return{textBlockId:e.id,anchor:(0,a.Bm)(e.anchor),globalEffects:(0,a.Qp)(e.globalEffects),externalControlState:(0,a.jr)(e)}}function l(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(s(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(s(e))}}return t}const c="The API you're trying to use requires a content editor license. The Content Editor component is sold separately.";const u=[4,6,8,10,12,14,16,18,20,24,32,36,48,64,72,96,144,192,200];function d(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 p(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 h(e){let t="";for(const n of e)t+=n.text;return t}const f=0,m=1,g=e=>{switch(e){case"begin":case"justified":return f;case"end":return m;case"center":return.5}},v=(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]})},y=(e,t,n)=>(t-g(e))*n,b=(e,t,n,r)=>{const o=g(e)-n;return v(t,o,r)}},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)();function i(e){const t=o;o=o.clear(),e.then((e=>{t.forEach((t=>{t.resolve(e)}))})).catch((e=>{t.forEach((t=>{t.reject(e)}))}))}return function(){for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];const l=this;return t&&clearTimeout(t),t=setTimeout((()=>{t=null,i(e.apply(l,a))}),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:()=>Se,sl:()=>_e,SN:()=>be});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",function(){let e=null;return async function(){return 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),j=n(23237),R=n(38119),F=n(77270),B=n(46692),L=n(42361),V=n(38849),K=n(4939),$=n(88140),H=n(64337);const U=(0,V.A)("Forms"),q=(0,a.$5)("Forms");class W extends K.i{constructor(e,t){super(t().formFieldValueManager),this.dispatch=e,this.getState=t}async create(e){throw q(`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(H.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,$.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 q(`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),Y=n(39582);const Z=(0,V.A)("Bookmarks");class J 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;Z(n),"string"==typeof t&&n.getLocalBookmarks()&&Z(!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,Y.U)(r)}async update(e){const{bookmarkManager:t}=this.getState();Z(t);const n=e.map((e=>(Z("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,Y.U)(n)}async delete(e){const t=this.getState(),{bookmarkManager:n}=t,r=await(n?.getBookmarks());Z(n);const o=e.map((e=>{Z("string"==typeof e.id,"The supplied bookmark id is not a valid id.");const t=r?.get(e.id);return Z(t,`No bookmark with id ${e.id} found.`),n.deleteObject(e),n.autoSave(),t}));return(0,Y.U)(o)}async getObjectById(e){const{bookmarkManager:t}=this.getState();if(!t)return null;return(await t.getBookmarks()).get(e)}async ensureChangesSaved(e){Z("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 Z(t),await t.ensureObjectSaved(e)}}var X=n(6163),Q=n(63226);const ee=(0,V.A)("Comments"),te=X.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){return e.find((e=>e instanceof v.YH&&e.id===t))}(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,$.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,Y.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,$.Kt)(n,t))throw new a.uE("You don't have permission to update this comment.");if(e.group!==n.group&&!(0,$.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,Y.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,$.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,Y.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(H.Y.COMMENTS)?t.get(e):null}}function re(e){const{features:t,backend:n}=e;ee(t.includes(H.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 R.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 J(this._dispatch,this._getState),e.formField=new L.fu(this._dispatch,this._getState),e.formFieldValue=new W(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",me="down";var ge=n(68322),ve=n(35467),ye=n(8593);async function be(e,t,n){if(n.pageKeys)try{e(xe(t())),await we(e,t,n)}finally{e(xe(null))}else await we(e,t,n)}async function we(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:R}=t();(0,a.V1)(k);const{provider:F}=k,[B,L]=await Promise.all([k.permissions(),k.documentInfo()]),V=g&&g.includes(H.Y.FORMS),K=(N.JY.IGNORE_DOCUMENT_PERMISSIONS||L.permissions&&(L.permissions.annotationsAndForms||L.permissions.fillForms))&&V&&R,$=K&&(0,M.ah)(k)&&g&&g.includes(H.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(R),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,ve.Xp)(E));const q={refreshSignaturesInfo:async()=>{const{digitalSignatures:n}=t();g&&g.includes(H.Y.DIGITAL_SIGNATURES)&&n&&n&&n.status!==ue.J.not_signed&&!1===n.documentModifiedSinceSignature&&(await k.refreshSignaturesInfo(),e((0,I.K)(await k.getSignaturesInfo())))}},W={...q,createAnnotations:(t,n)=>{n&&n.forEach(((t,n)=>{e((0,p.c)({hash:n,attachment:t}))})),e((0,j._v)(de.I.EXTERNAL,(()=>{e((0,T.XV)(t))})))},updateAnnotations:t=>{e((0,j._v)(de.I.EXTERNAL,(()=>{e((0,T.iN)(t))})))},deleteAnnotations:t=>{e((0,j._v)(de.I.EXTERNAL,(()=>{e((0,T.Ud)(t))})))},getAnnotationById:e=>t().annotations.get(e)},G=V&&(0,M.ah)(k)?{...q,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,Y={...q,createFormFieldValues:t=>e((0,c.l$)(t)),setFormFieldValues:t=>e((0,c.$D)(t)),deleteFormFieldValues:t=>e((0,c.aJ)(t))},Z=(0,M.oj)(k),J=Z?{...q,createComments:t=>{e((0,O.TW)(t))},updateComments:t=>{e((0,O.m5)(t))},deleteComments:t=>{e((0,O.wn)(t))}}:null,X={...q},Q=t(),ee=new b(F,W,P,Q.annotationManager&&Q.annotationManager.eventEmitter),te=new _(F,X,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,Y,P,Q.formFieldValueManager&&Q.formFieldValueManager.eventEmitter);let oe;Z&&((0,a.V1)(null!=J),oe=new z(F,J,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),r.has(e.pdfObjectId)&&o.push(me),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))}},ge={createBookmarks:te.backendObjectsCreated.bind(te),updateBookmarks:te.backendObjectsUpdated.bind(te),deleteBookmarks:te.backendObjectsDeleted.bind(te)},be=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,we={createFormFieldValues:(e,t)=>{t===d.n?V&&re.backendObjectsCreated(e,t):t===d.N&&$&&re.backendObjectsCreated(e,t)},setFormFieldValues:e=>{K&&re.backendObjectsUpdated(e)},deleteFormFieldValues:e=>{$&&re.backendObjectsDeleted(e)}};let xe;Z&&((0,a.V1)(null!=oe),xe={createComments:oe.backendObjectsCreated.bind(oe),updateComments:oe.backendObjectsUpdated.bind(oe),deleteComments:oe.backendObjectsDeleted.bind(oe)});const Se=new se(e,t,null,Q.changeManager&&Q.changeManager.eventEmitter),_e={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:Se,minSearchQueryLength:w,documentHandle:k.getDocumentHandle(),allowedTileScales:x,pageKeys:S};let Ce=null;(0,o.vA)((function(){e((0,l.uF)(_e)),F.setReadStateCallbacks(le),F.setAnnotationCallbacks(pe),F.setBookmarkCallbacks(ge),F.setFormFieldValueCallbacks(we),Z&&((0,a.V1)(null!=xe),F.setCommentCallbacks(xe)),V&&(0,M.ah)(k)&&((0,a.V1)(be),F.setFormFieldCallbacks(be)),Se.connect(),Ce=F.load()}));try{await Ce,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,ye.rs)(r));const o=await t.getMeasurementScales();o&&n((0,ve.Ue)(o?(0,s.qG)(o):null))}({backend:k,dispatch:e})),o.length>0?Promise.all(o).then((()=>t())).catch(n):t()})).catch((e=>{n(e)}))}))}))}catch(e){throw e}}function xe(e){return{type:pe.ulm,state:e}}function Se(e,t,n){if(n===ge.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===ge.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 _e(e,t,n,r){let o;return"string"==typeof t?(Se(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,PG:()=>E,RL:()=>c,UN:()=>y,X6:()=>b,Xx:()=>p,Yf:()=>P,_i:()=>z,bc:()=>_,in:()=>w,jU:()=>v,kM:()=>g,sb:()=>D,u7:()=>S,vB:()=>h,wo:()=>k});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 E(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 z(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");return([...t.querySelectorAll('[role="toolbar"]')]?.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){const n=t.HTMLAnchorElement.prototype.hasOwnProperty("download"),r=new Blob([e],{type:"application/pdf"});if("function"==typeof navigator.msSaveOrOpenBlob)navigator.msSaveOrOpenBlob(r,"download.pdf");else if(n){const e=window.URL.createObjectURL(r);C(e),t.URL.revokeObjectURL(e)}else{const e=new FileReader;e.onloadend=function(){const t=e.result;"string"==typeof t&&C(t)},e.readAsDataURL(r)}}function C(e){(0,r.V1)(null!=document.body);const t=document.createElement("a");t.href=e,t.style.display="none",t.download="download.pdf",t.setAttribute("download","download.pdf"),document.body&&document.body.appendChild(t),t.click(),document.body&&document.body.removeChild(t)}function E(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 k(e){e.preventDefault()}async function z(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 P(e){e.target?.classList.remove(l().focusedFocusVisible),e.target?.removeEventListener("blur",P)}const A="HTMLElement";function D(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,A)}},85410:(e,t,n)=>{"use strict";n.d(t,{$_:()=>l,Sb:()=>u,_q:()=>i,f:()=>c,uc:()=>a});var r=n(85409),o=n(41204);function i(){return"protocol=5, client=2024.8.0, client-git=f18793a6d4"}function a(){return"production"}const s=new Map;function l(e){const t=(0,o.NE)();if(t)return t;const n=document.createElement("a");n.href=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Error;const n=s.get(e);if("string"==typeof n)return n;if(e.currentScript){const t=e.currentScript.src;return s.set(e,t),t}{let n;try{throw new t("PSPDFKit document.currentScript.src detection")}catch(e){e.stack&&(n=e.stack.match(/(?:file|https?):[^)]+/i))}(0,r.V1)(n,"Failed to automatically determine baseUrl. Please specify the base url as an option.");const o=n[0].split(":").slice(0,-2).join(":");return s.set(e,o),o}}(e);const i=n.pathname.split("/").filter(Boolean).slice(0,-1);return[`${n.protocol}/`,n.host,...i].join("/")+"/"}function c(e){return e||(0,o.D5)()||window.location.origin}function u(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,fK:()=>s,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=()=>"bitmap";let s=!1;try{const e=new FormData;e.append("key","value");const t=new Response(e);"formData"in t&&!fetch.polyfill&&t.formData().then((()=>{s=!0})).catch((()=>{s=!1}))}catch{s=!1}},510:(e,t,n)=>{"use strict";function r(e){try{e.querySelector(":focus-visible");const t=e.documentElement||e;return void(t&&t.setAttribute("data-focusvisible-supported","true"))}catch(e){}const t="data-focusvisible-polyfill";let n=!0,r=!1,o=null;const i={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function a(t){return!!(t&&t!==e&&"HTML"!==t.nodeName&&"BODY"!==t.nodeName&&"classList"in t&&"contains"in t.classList)}function s(e){e.hasAttribute(t)||e.setAttribute(t,!0)}function l(e){e.removeAttribute(t)}function c(){!0===n&&function(){const t=e.querySelectorAll("[data-focusvisible-polyfill]");for(let e=0;e<t.length;e+=1)l(t[e])}(),n=!1}function u(){e.addEventListener("mousemove",d),e.addEventListener("mousedown",d),e.addEventListener("mouseup",d),e.addEventListener("pointermove",d),e.addEventListener("pointerdown",d),e.addEventListener("pointerup",d),e.addEventListener("touchmove",d),e.addEventListener("touchstart",d),e.addEventListener("touchend",d)}function d(t){"HTML"!==t.target?.nodeName&&(n=!1,e.removeEventListener("mousemove",d),e.removeEventListener("mousedown",d),e.removeEventListener("mouseup",d),e.removeEventListener("pointermove",d),e.removeEventListener("pointerdown",d),e.removeEventListener("pointerup",d),e.removeEventListener("touchmove",d),e.removeEventListener("touchstart",d),e.removeEventListener("touchend",d))}e.addEventListener("keydown",(function(t){"Tab"!==t.key&&(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)||(a(e.activeElement)&&s(e.activeElement),n=!0)}),!0),e.addEventListener("mousedown",c,!0),e.addEventListener("pointerdown",c,!0),e.addEventListener("touchstart",c,!0),e.addEventListener("focus",(function(e){const t=e.target;a(t)&&(n||function(e){const t=e.type,n=e.tagName,r=e.readOnly;return!("INPUT"!==n||!i[t]||r)||"TEXTAREA"===n&&!r||!!e.isContentEditable}(t))&&s(t)}),!0),e.addEventListener("blur",(function(e){const n=e.target;a(n)&&n?.hasAttribute(t)&&(r=!0,window.clearTimeout(o),o=window.setTimeout((function(){r=!1,window.clearTimeout(o)}),100),l(n))}),!0),e.addEventListener("visibilitychange",(function(){"hidden"===function(e){return e instanceof ShadowRoot?e.host.ownerDocument:e}(e).visibilityState&&(r&&(n=!0),u())}),!0),u()}n.d(t,{A:()=>r})},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,{$_:()=>N,A5:()=>z,Af:()=>M,EA:()=>A,FI:()=>R,Fv:()=>P,Iu:()=>F,Lu:()=>w,Ny:()=>m,Q8:()=>k,UA:()=>f,W5:()=>v,WJ:()=>j,Wn:()=>b,aR:()=>C,hn:()=>I,i8:()=>x,im:()=>g,nE:()=>y,qi:()=>O,uY:()=>B,uk:()=>E,zs:()=>T});var r=n(49568),o=n(85409),i=n(36899),a=n(76117),s=n(53644),l=n(84230),c=n(78729),u=n(89574),d=n(30235),p=n(26438),h=n(16192);function f(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 m(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 g(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:_(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:_(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:_(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 v(e){return e.map((e=>l.A.fromJSON(e.pdfObjectId?e.pdfObjectId.toString():e.id,e)))}function y(e,t){const n=e.annotationIds.findIndex((0,u.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 b(e,t){let{rotation:n,boundingBox:r}=e;if(!n)return{};const o=90===(0,p.hR)(n)||270===(0,p.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=w({width:s,height:a,rotation:n})),i}function w(e){let{width:t,height:n,rotation:r,reverse:o=!1}=e;const i=90===(0,p.hR)(r)||270===(0,p.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 x(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:f},opacity:m}=e,g=Math.ceil(p*t),v=Math.ceil(f*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,h.gh)(o)}:null,borderWidth:l||0,borderStyle:null!=c?S[c]:"none",width:g,height:v,...n?b(e,t):{}}}const S={solid:"solid",dashed:"dashed",beveled:"groove",inset:"inset",underline:"none none solid"};function _(e){return(0,r.B8)(e.map((e=>new a._B(e))))}function C(e,t){return e.formFields.find((e=>e.id===t))}function E(e,t){return e.filter((e=>e.annotationIds.some((e=>t.annotationIds.has(e))))).toList()}function k(e,t,n){return"STANDALONE"===e.type&&c.JY.PDF_JAVASCRIPT&&"function"==typeof e.onKeystrokeEvent&&(Boolean(t.additionalActions?.onInput)||Boolean(n.additionalActions?.onInput)||Boolean(t.additionalActions?.onChange)||Boolean(n.additionalActions?.onChange))}function z(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===s.Us||e.change_type===s.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 P(e,t,n){const o=e&&n.formFields.get(e.name);if(e&&o&&!m(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],(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 A(e,t,n){const o=e.annotationIds.findIndex((0,u.iT)(t)),i=y(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 D(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 T(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=D(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=D(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||P(u,t,n)}else(0,o.R8)(`No form field found with name ${a}`)}))}function I(e){let{getState:t,originalFormFields:n,formFieldValues:i,callback:a,resolve:s}=e;const{formFields:l,annotations:c,backend:u}=t(),d=[],p=[];n.forEach(((e,t)=>{if(!e)return;(0,o.V1)(u);let n=l.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))),m(e,n))p.push(t);else{c.filter((e=>e.points===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)=>{d.push({pageIndex:t,pageWidgetIds:e})}))}})),a(p),d.forEach((e=>{let{pageIndex:t,pageWidgetIds:n}=e;u?.clearPageAPStreams(t,n)})),s?.()}function M(e){return new a.E2({name:e.name,value:e.values||e.value,...e.optionIndexes?{optionIndexes:e.optionIndexes}:null})}function N(e){return e===d.O.CHECKBOX_WIDGET||e===d.O.RADIO_BUTTON_WIDGET||e===d.O.SIGNATURE_WIDGET||e===d.O.TEXT_WIDGET||e===d.O.BUTTON_WIDGET||e===d.O.COMBO_BOX_WIDGET||e===d.O.LIST_BOX_WIDGET||e===d.O.FORM_CREATOR||e===d.O.DATE_WIDGET}function O(e){return N(e)&&e!==d.O.FORM_CREATOR}function j(e,t){const n=y(e,t),r=!e.optionIndexes||e.optionIndexes.includes(e.annotationIds.findIndex((0,u.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 R="Invalid date/time: please ensure that the date/time exists. Field [",F="The value entered does not match the format of the field [",B="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:()=>f,_3:()=>v,d0:()=>m,hH:()=>b,mE:()=>y,oS:()=>p,pS:()=>h,x3:()=>g});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);function p(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 h(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 f(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 m(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:b(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],(e=>"update"===e.type?{...e,payload:b(n,t.merge(e.payload)),restoreAPStream:e.restoreAPStream}:"delete"===e.type?{...e,payload:{...b(n,t),...e.payload}}:e))}}function g(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=v(t,r,e.commentThreads,e.comments),i=y(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],(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 v(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 y(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 b(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:()=>T,Rv:()=>E,Uk:()=>A,Xm:()=>D,YU:()=>v,ZC:()=>x,aq:()=>w,d3:()=>S,e2:()=>g,eR:()=>y,f3:()=>z,iV:()=>b,jU:()=>_,pO:()=>k,rI:()=>P,s_:()=>C});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,i]);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,a]),e?s:null}function C(){const[e,t]=r.useState(null),[n,o]=r.useState(null),[i,a]=r.useState(null),s=r.useRef(),l=r.useRef(),c=r.useRef(null);r.useEffect((()=>{l.current=n,s.current=i})),r.useEffect((()=>{const t=e&&n&&!l.current,r=!e&&s.current&&i;(t||r)&&c.current&&c.current.focus()}),[n,i,e]);const u=r.useCallback((()=>{o(!0)}),[o]);return{handleGroupExpansion:r.useCallback((e=>{t(e),e?a(e):o(!1)}),[a,t,o]),handleEntered:u,expandedGroup:e,prevActiveGroup:i,btnFocusRef:c}}function E(e,t,n){r.useLayoutEffect((function(){null!==e&&(t((0,s.BT)()),n(e))}),[n,e,t])}function k(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 z(e){const t=r.useRef(null);return r.useEffect((function(){const{current:n}=t;n&&(0,p.u7)(e(),n)}),[e]),t}function P(e){const[t,n]=r.useState(e),[o,i]=r.useState(e);return t!==e&&(i(e),n(e)),[o,i]}function A(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 D=(e,t)=>{const n=r.useRef(!1);r.useEffect((()=>()=>{n.current=!0}),[]),r.useEffect((()=>()=>{n.current&&e()}),[...t,e])};function T(){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});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/pspdfkit-lib/), but it is set to ${e}.\nProtocol relative URLs (e.g. //example.com/pspdfkit-lib/) are not supported.`);const n="/"===e.substr(-1);(0,r.V)(n,`The baseUrl must have a trailing slash in the URL (e.g. https://example.com/pspdfkit-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}.`)}},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(1396).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,{E:()=>i,l:()=>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}},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)=>{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=>{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;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://pspdfkit.com/support/request`)}},14631:(e,t,n)=>{"use strict";n.d(t,{Gm:()=>c,Jw:()=>d,Nh:()=>p,Of:()=>h,P1:()=>u,h1:()=>g,p0:()=>f,r$:()=>m});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:"authPayload"in e&&"object"==typeof e.authPayload&&"string"==typeof e.authPayload?.accessToken?"https://cdn.cloud.pspdfkit.com/pspdfkit-web@2024.8.0/":(0,a.$_)(window.document)}function h(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">\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</style>');t?e.appendChild(r):n?.head.appendChild(r)}function f(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 m(e){const t=f(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 g(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}pspdfkit-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:()=>k,Cu:()=>F,JC:()=>N,KQ:()=>U,Kh:()=>x,MF:()=>B,ON:()=>j,Py:()=>H,T:()=>S,_7:()=>T,b4:()=>V,dD:()=>Z,hm:()=>q,on:()=>R,p9:()=>W,pZ:()=>I,pq:()=>G,qG:()=>K,tv:()=>O,w4:()=>Y,w6:()=>M,zc:()=>L});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);const x=[{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 S(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 _(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?_(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 _(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 C={[p.x.WHOLE]:0,[p.x.ONE]:1,[p.x.TWO]:2,[p.x.THREE]:3,[p.x.FOUR]:4},E={[p.x.HALVES]:.5,[p.x.QUARTERS]:1/4,[p.x.EIGHTHS]:1/8,[p.x.SIXTEENTHS]:1/16},k={...C,...E};function z(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 P(e){return Math.abs(e)<=Number.EPSILON}var A=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}(A||{});const D=[[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 T(e){const{measurementPrecision:t,measurementScale:n}=e;(0,r.V1)(t,"measurementPrecision is required"),(0,r.V1)(n,"measurementScale is required");const o=P(n.toValue)||P(n.fromValue)?0:n.toValue/n.fromValue;let s,l,c=D[A[h.b.POINTS]][A[n.unitFrom]];if(e instanceof g.A){const{startPoint:t,endPoint:n}=e;s=z((0,a.B8)([t,n])),c*=o}else if(e instanceof y.A){const{points:t}=e;s=z(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(k[t]);return{value:s*c,label:`${l} ${e instanceof g.A||e instanceof y.A?"":"sq "}${n.unitTo}`}}function I(e,t){const{measurementScale:n}=e;(0,r.V1)(n,"measurementScale is required");const o=t/(z(e instanceof y.A?e.points:(0,a.B8)([e.startPoint,e.endPoint]))*D[A[h.b.POINTS]][A[n.unitFrom]])*n.fromValue;return n?.set?.("toValue",o)}function M(e){return(e instanceof m.A||e instanceof b.A)&&e.isMeasurement()}function N(e,t){if(t&&e.measurementScale){const n=e.measurementScale.set("unitTo",t.unitTo);return T(e.set("measurementScale",n).set("measurementPrecision",t.precision))}return""}function O(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=Object.keys(h.b).map((e=>({label:h.b[e],value:h.b[e],disabled:!1}))),R=function(){const e=[];for(const t in p.x){const n=Object.keys(p.x).find((e=>e===t));if(n&&C.hasOwnProperty(p.x[t]))e.push((1/Math.pow(10,k[p.x[n]])).toString());else if(n&&E.hasOwnProperty(p.x[t])){const t=new(i())(k[p.x[n]]);e.push(t.toFraction(!0).toString())}}return e}(),F=Object.keys(p.x).map(((e,t)=>({label:R[t],value:p.x[e]}))),B=Object.keys(p.x).filter((e=>!Y(p.x[e]))).map(((e,t)=>({label:R[t],value:p.x[e]}))),L=Object.keys(f._).map((e=>({value:f._[e],label:f._[e]}))),V=(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 K(e){return e.map(((e,t)=>{const n={...e,scale:{...e.scale,fromValue:e.scale.from,toValue:e.scale.to}};return delete n.scale.from,delete n.scale.to,n.name&&""!==n.name.trim()||(n.name=(0,l.AK)(n)?.label||`Scale ${t}`),u.d[n.precision]&&(n.precision=u.d[n.precision]),n}))}async function $(e){let{operation:t,scale:n,getState:r,measurementUpdate:o,dispatch:i}=e;const l=r(),{backend:u,annotations:d,annotationManager:p}=l;const h=async(e,o)=>{const a=await(async e=>(await(p?.loadAnnotationsForPageIndex(e)),r().annotations))(o);!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);i((0,c.g_)(e));break}case"delete":i((0,c.eS)(o))}}))}(e,a,t)},f="STANDALONE"===u.type?await u.getAnnotationsByScale(n):function(e,t){return t.filter((t=>{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,d),m=[];if(f.forEach((e=>{const n=d.find((t=>t.pdfObjectId?t.pdfObjectId===e.pdfObjectId:t.id===e.id));if(n&&"edit"===t&&o){const e=n.set("measurementScale",o.scale).set("measurementPrecision",o.precision);i((0,c.g_)(e))}else n&&"delete"===t?i((0,c.eS)(n)):m.push(e)})),m.length>0){const e=(0,a.NZ)(m.map((e=>e.pageIndex)));await Promise.all(e.map((async e=>{await h(m,e)})))}}async function H(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 U(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(!O(r,{scale:n.measurementScale,precision:n.measurementPrecision}))return!0}return!1}function W(e){if(e.size<2)return!1;const t=e.toList(),n=G(e.first());for(let e=1;e<t.size;e++){if(n!==G(t.get(e)))return!0}return!1}function G(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 Z(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:()=>j,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 n=!1;if((0,r.V1)(t.backend),t.backend.isCollaborationPermissionsEnabled()&&e instanceof o.sb){const r=(0,c.Wd)(t,e);n=!!r&&(0,s.wS)(r,t)}const i=!n&&!(0,s.q2)(e,t)&&!(0,s.db)(e,t);if(M(t)&&(!("isSignature"in e)||!e.isSignature))return!0;if(_(t)||i)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(t.isEditableAnnotation)return!t.isEditableAnnotation(e);if(!C(t)||!b(t)){if(0===t.editableAnnotationTypes.size)return!0;if(t.editableAnnotationTypes.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(t)&&!_(t)&&!n)||(t.isEditableComment?!t.isEditableComment(e):!!C(t)&&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){return e.backendPermissions.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!j(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 j(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/pspdfkit/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$:()=>v,TQ:()=>_,gn:()=>x,sS:()=>S,vd:()=>C});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,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}}function d(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})}}function p(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 h(e,t,n,r){let o=e.lines;const i=p(e,r);return o=o.map((e=>e.map((e=>e.translate(i.scale(-1)).scale(t,n).translate(i))))),o}function f(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=p(e,o);return i=i.map((e=>e.translate(a.scale(-1)).scale(t,n).translate(a))),i}function m(e,t,n){const r=v(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?y("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?y("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}function g(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?y("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?y("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}function v(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 y(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 b={0:a.E.BOTTOM_RIGHT,90:a.E.TOP_RIGHT,180:a.E.TOP_LEFT,270:a.E.BOTTOM_LEFT},w={[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 x(e,t,n,r){let o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=arguments.length>5?arguments[5]:void 0,p=arguments.length>6?arguments[6]:void 0,x=arguments.length>7?arguments[7]:void 0;const _=e.boundingBox;let C;if((0,l.nU)(e)&&!(0,l.U7)(e)){const r=c(n),o=new s.bR({x:_.width/2*r.mx,y:_.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);C=new s.bR({x:a.x-o.x,y:a.y-o.y})}else C=t;const E=u(_,n,C,i,p);let k=E.rect;if(r&&(k=y(E.keepToSide,_,k)),o&&x&&(x?.maxHeight||x?.maxWidth||x?.minHeight||x?.minWidth)){const t=v(e);x.minHeight=x.minHeight?x.minHeight:t,x.minWidth=x.minWidth?x.minWidth:t}else o&&(k=m(e,k,r));const z=0!==_.width?k.width/_.width:0,P=0!==_.height?k.height/_.height:0,{translation:A,dragDifference:D}=d(_,n,z,P,p);k=k.set("width",k.width+D.x).set("height",k.height+D.y),k=k.translate(A),(x?.maxHeight||x?.maxWidth||x?.minHeight||x?.minWidth)&&(k=g(e,k,r,x));const T=function(){const t=e.set("boundingBox",k),o=Math.sqrt(z*P);let i;return t instanceof s.dh?(0,l.U7)(e)&&n===b[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",h(t,z,P,r?w[n]:n)),e.set("lineWidth",t.lineWidth*o)})):t instanceof s.MU?(i=f(t,z,P,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=f(t,z,P,n),t.withMutations((e=>{e.set("boundingBox",k),e.set("points",i)}))):t}();return S(T,_)}function S(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)))}return e}function _(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 C(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&&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&&f.textElementFonts[n.id],x=m.textLineScales&&m.textLineScales.get(y.id),S=m.textElementFonts&&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){return v(e,s,n,i)?.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,{Ly:()=>u,Qn:()=>i,S7:()=>m,_M:()=>f,gP:()=>g,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}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&&e.classList.contains("PSPDFKit-Rich-Text-Editor")||e.classList&&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)),{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;const a=u(e,t,n);for(let t=a;t>=0;t--)if(" "===e.textContent[t]||0===t){o=0===t?0:t+1;break}for(let t=a;t<e.textContent.length;t++)if(" "===e.textContent[t]||t===e.textContent.length-1){i=t;break}return r.setStart(e,o),r.setEnd(e,i),r}function g(e){let{event:t,shadowRoot:n,rootElement:r,containerRect:o}=e;if(!(n instanceof ShadowRoot))return{x:t.clientX,y:t.clientY};const i=r?r.getBoundingClientRect():null,a=o.left-(i?i.left:0),s=o.top-(i?i.top:0);return{x:t.clientX+a,y:t.clientY+s}}},18738:(e,t,n)=>{"use strict";n.d(t,{Ai:()=>y,FG:()=>f,PZ:()=>b,WA:()=>v,YC:()=>w,e8:()=>x,s3:()=>h,uq:()=>S,y4:()=>E});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=a?s.B[a].width:0,u=l?s.B[l].width:0;if(e.size<2||!c&&!u)return e;const d=e.get(0),p=e.get(e.size-1);if(!(d instanceof i.bR&&p instanceof i.bR))return e;const h=a?(()=>{const t=d,n=e.get(1)||t;if(!(n instanceof i.bR))return g;const r=n.x-t.x,a=n.y-t.y;return{xOffset:r,yOffset:a,weightedStrokeWidthLineRatio:0!==r||0!==a?c*o/Math.sqrt(r**2+a**2):0}})():g,f=l&&e.get(e.size-2)instanceof i.bR?(()=>{const t=p,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?u*o/Math.sqrt(r**2+i**2):0}})():g;return e.size>2||!a||!l?e.map(((t,n)=>0===n?h.weightedStrokeWidthLineRatio<=1?m(t,h):t:n===e.size-1&&f.weightedStrokeWidthLineRatio<=1?m(t,f):t)):h.weightedStrokeWidthLineRatio+f.weightedStrokeWidthLineRatio<=1?(0,r.B8)([m(d,h),m(p,f)]):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}}function S(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(P(n,i,.01))return e;const a=z(n,i),s=Math.floor(a/(1.75*r));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=k(t),a=i?"1":"0",s="1"===a?"0":"1",l=i?-.3:.3;return o.reduce(((e,t,n)=>{const c=o[n>0?n-1:o.length-1];if(P(t,c))return e;let u=o[(n+1)%o.length],d=n+1;for(;P(t,u);){if(d%o.length===n)return[];u=o[(1+ ++d)%o.length]}let p=A(t,c,r,i),h=A(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+(_-h)>Math.PI?"1":"0":p-h>Math.PI?"1":"0":h>p?p+(_-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 _=2*Math.PI,C=_/360;function E(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:360},((e,t)=>{const n=C*t;return[p+u*Math.cos(n),h+d*Math.sin(n)]})),m=f.length;let g=1.75*l;const v=D(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=z(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=A(t,r,l,!0),a=A(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-=.3;const s=a>i?i+(_-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 k=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,z=(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)},P=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},A=(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+=_),r?s-i:s+i},D=e=>e.reduce(((t,n,r)=>t+z(n,r<e.length-1?e[r+1]:e[0])),0)},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:()=>v,bp:()=>w,d0:()=>y,j5:()=>g,nn:()=>m});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),p=n(9627),h=n(89574);const f=(0,o.A)("StampAnnotationTemplate"),m=e=>{f(e instanceof i.xY||e instanceof i.vU,"`annotationTemplate` is not an instance of `PSPDFKit.Annotations.StampAnnotation` or ``PSPDFKit.Annotations.ImageAnnotation`")},g=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");let a=t||n?o.formatDate(r,i):null;return a&&p.n8&&(a=a.replace(/[^A-Za-z 0-9 .,?""!@#$%^&*()-_=+;:<>/\\|}{[\]`~]*/g,"")),a??null},v=e=>{let{annotation:t,intl:n}=e;const{formatMessage:r}=n,{stampType:o,title:s,description:l,fileName:c}=t;return t instanceof i.xY?"Custom"===o&&s?u.A[(0,d.$h)(s)]?r(u.A[(0,d.$h)(s)]):s:u.A[(0,d.$h)((0,a.rC)(o))]?r(u.A[(0,d.$h)((0,a.rC)(o))]):o:l||c||" "},y=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(b(e.color))[0].color.toHex()??"#000000"}}(e)));function b(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}}}function w(e){let{annotation:t,annotationVisualPropertiesString:n,width:r,height:o,secondAnnotationVisualPropertiesString:i,secondAnnotationWidth:a,secondAnnotationHeight:s}=e;return n===i&&(t.noZoom||a>=r&&s>=o)&&!(0,h.nH)(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,{A2:()=>d,Fz:()=>g,Nv:()=>h,VN:()=>p,Wi:()=>m,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;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}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){const r={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:e.fontSize*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*e.fontSize+"px":"normal",flexDirection:"column",justifyContent:f(e.verticalAlign),display:"flex"};return(0,c.Lz)(e)&&!n&&(r.transformOrigin="50% 50%",r.transform=`rotate(${String(-e.rotation)}deg)`),r}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))))):(0,a.I2)(e)?n.update("callout",(e=>(e.knee&&(e=e.update("knee",(e=>e.translate(t)))),e.update("start",(e=>e.translate(t))).update("end",(e=>e.translate(t)))))):n}function l(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1;const a=c(e,t,n,r,o,i);return s(e,a)}function c(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);return 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)))),t}},16019:(e,t,n)=>{"use strict";n.d(t,{Q:()=>s});n(96540);var r=n(13158),o=n(40027),i=n(72776),a=n(74848);function s(e,t,n,s,l){const{content:c,decorator:u}=i.M[e]({props:n,instance:s});(0,o.V1)(c,"defaultContent is required"),(0,o.V1)(u,"defaultDecorator is required");const{content:d,decorator:p}=t({props:n,instance:s}),h=d||c,f={...l??{},content:h instanceof Node?(0,a.jsx)(r.DomNodeRenderer,{node:h}):h},m=p?p(f):u(f);return m instanceof Node?(0,a.jsx)(r.DomNodeRenderer,{node:m}):m}},53793:(e,t,n)=>{"use strict";n.d(t,{J:()=>l,s:()=>c});var r=n(76117),o=n(96754),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;const n=t.replace("#","").split("&").map((e=>{const t=e.split("=");if(2===t.length)return[t[0],t[1]]})).filter(Boolean);return n.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:e.viewportState.zoomMode===o.d.CUSTOM?e.viewportState.zoomLevel:e.viewportState.zoomMode,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,showAIDocumentAssistant:e.aiDocumentAssistant.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});n.scrollPosition.equals(e)||(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){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!n&&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){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!r&&(0,o.ZT)(e,t,n))return e;const i=(0,o.zo)(e,t),a=n.apply(i),s=e.viewportRect.getCenter(),l=a.getCenter().translate(s.scale(-1)),c=e.scrollPosition.translate(l.scale(1/e.zoomLevel));return e.merge({scrollPosition:u(e,c),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:()=>E,og:()=>b,rY:()=>C,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)}function C(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)}),500)):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=>E(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 E(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:()=>v,bo:()=>f,cb:()=>h,eh:()=>g,lD:()=>y,m0:()=>d,m9:()=>p,qw:()=>m});var r=n(63573),o=n(37361),i=n(17053),a=n(25028),s=n(96754),l=n(75675);let c=Number.POSITIVE_INFINITY,u=Number.NEGATIVE_INFINITY;function d(e){const t=Math.min(h(e),f(e),e.minDefaultZoomLevel,c);return c>t&&(c=t),t}function p(e){const t=Math.max(h(e),f(e),e.maxDefaultZoomLevel,u);return u<t&&(u=t),t}function h(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 f(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 m(e){const t=h(e),n=f(e);return Math.min(t,n)}function g(e,t){switch(t){case s.d.AUTO:return function(e){const t=f(e),n=h(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 m(e);case s.d.FIT_TO_WIDTH:return h(e);default:return(0,l.V)("number"==typeof t,"Unknown zoom mode"),t}}function v(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=g(e,t);const a="number"==typeof t?s.d.CUSTOM:t,l=d(e),c=p(e);if(o>=c)if(n.unbounded){const e=b((o-c)/25);o=c*(1+.5*e)}else o=c;else if(o<=l)if(n.unbounded){const e=b(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 y(e){const{zoomLevel:t}=e,n=d(e);return t>p(e)||t<n}function b(e){const t=Math.exp(+e),n=Math.exp(-e);return t==1/0?1:n==1/0?-1:(t-n)/(t+n)}},28301:(e,t,n)=>{"use strict";n.d(t,{$v:()=>u,PC:()=>d,Ss:()=>p,Vr:()=>f,vS:()=>g});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=2,d=2,p=[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],h=p.slice(0,Math.floor(p.length/4));function f(e,t,n,a,s,c,f){if(s&&e&&10===e.charCodeAt(e.length-1)&&(e+="\n"),"auto"!==a)return a||Math.max(4,Math.min(.7*n,12));let g,v;if(f){const e=window.getComputedStyle(f);g=e.getPropertyValue("font-family"),s||(v=e.getPropertyValue("line-height"))}if(s){const a=n-2*u,s=(0,r.B8)([e]),p=m(h,(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:g,availableWidth:t-2*d,element:f});let r=u;const p=a-e;return p-2*u<0&&(r=p>0?p/2:0),n+2*r+2*c>a?0:1}));return p}{const a=(0,r.B8)([e]),s=m(p,(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:g,lineHeight:v,element:f});return r>t||e>n?0:1}));return s}}function m(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 g(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"},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),i=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e]):r[e]&&r[e][t]}},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.writable){var r=u(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:p in n?n.configurable:r.configurable,enumerable:d in n?n.enumerable:r.enumerable,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")).onreadystatechange=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})},65661:(e,t,n)=>{"use strict";var r=n(96540);t.createSubscription=function(e){var t=e.getCurrentValue,n=e.subscribe;return function(e){function r(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return(n=e.call.apply(e,[this].concat(r))||this).state={source:n.props.source,value:null!=n.props.source?t(n.props.source):void 0},n._hasUnmounted=!1,n._unsubscribe=null,n}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}(r,e),r.getDerivedStateFromProps=function(e,n){return e.source!==n.source?{source:e.source,value:null!=e.source?t(e.source):void 0}:null};var o=r.prototype;return o.componentDidMount=function(){this.subscribe()},o.componentDidUpdate=function(e,t){this.state.source!==t.source&&(this.unsubscribe(),this.subscribe())},o.componentWillUnmount=function(){this.unsubscribe(),this._hasUnmounted=!0},o.render=function(){return this.props.children(this.state.value)},o.subscribe=function(){var e=this,r=this.state.source;if(null!=r){var o=n(r,(function(t){e._hasUnmounted||e.setState((function(e){return t===e.value||r!==e.source?null:{value:t}}))}));if("function"!=typeof o)throw Error(function(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."}(266));this._unsubscribe=o,(o=t(this.props.source))!==this.state.value&&this.setState({value:o})}},o.unsubscribe=function(){"function"==typeof this._unsubscribe&&this._unsubscribe(),this._unsubscribe=null},r}(r.Component)}},25681:(e,t,n)=>{"use strict";e.exports=n(65661)},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+"]")},42838:function(e){e.exports=function(){"use strict";const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:r,getOwnPropertyDescriptor:o}=Object;let{freeze:i,seal:a,create:s}=Object,{apply:l,construct:c}="undefined"!=typeof Reflect&&Reflect;i||(i=function(e){return e}),a||(a=function(e){return e}),l||(l=function(e,t,n){return e.apply(t,n)}),c||(c=function(e,t){return new e(...t)});const u=S(Array.prototype.forEach),d=S(Array.prototype.pop),p=S(Array.prototype.push),h=S(String.prototype.toLowerCase),f=S(String.prototype.toString),m=S(String.prototype.match),g=S(String.prototype.replace),v=S(String.prototype.indexOf),y=S(String.prototype.trim),b=S(Object.prototype.hasOwnProperty),w=S(RegExp.prototype.test),x=_(TypeError);function S(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 l(e,t,r)}}function _(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return c(e,n)}}function C(e,r){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h;t&&t(e,null);let i=r.length;for(;i--;){let t=r[i];if("string"==typeof t){const e=o(t);e!==t&&(n(r)||(r[i]=e),t=e)}e[t]=!0}return e}function E(e){for(let t=0;t<e.length;t++)b(e,t)||(e[t]=null);return e}function k(t){const n=s(null);for(const[r,o]of e(t))b(t,r)&&(Array.isArray(o)?n[r]=E(o):o&&"object"==typeof o&&o.constructor===Object?n[r]=k(o):n[r]=o);return n}function z(e,t){for(;null!==e;){const n=o(e,t);if(n){if(n.get)return S(n.get);if("function"==typeof n.value)return S(n.value)}e=r(e)}function n(){return null}return n}const P=i(["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"]),A=i(["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"]),D=i(["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"]),T=i(["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"]),I=i(["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"]),M=i(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),N=i(["#text"]),O=i(["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"]),j=i(["accent-height","accumulate","additive","alignment-baseline","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","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","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","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","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"]),R=i(["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"]),F=i(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),B=a(/\{\{[\w\W]*|[\w\W]*\}\}/gm),L=a(/<%[\w\W]*|[\w\W]*%>/gm),V=a(/\${[\w\W]*}/gm),K=a(/^data-[\-\w.\u00B7-\uFFFF]/),$=a(/^aria-[\-\w]+$/),H=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),U=a(/^(?:\w+script|data):/i),q=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),W=a(/^html$/i),G=a(/^[a-z][.\w]*(-[.\w]+)+$/i);var Y=Object.freeze({__proto__:null,MUSTACHE_EXPR:B,ERB_EXPR:L,TMPLIT_EXPR:V,DATA_ATTR:K,ARIA_ATTR:$,IS_ALLOWED_URI:H,IS_SCRIPT_OR_DATA:U,ATTR_WHITESPACE:q,DOCTYPE_NAME:W,CUSTOM_ELEMENT:G});const Z={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},J=function(){return"undefined"==typeof window?null:window},X=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}};function Q(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:J();const n=e=>Q(e);if(n.version="3.1.6",n.removed=[],!t||!t.document||t.document.nodeType!==Z.document)return n.isSupported=!1,n;let{document:r}=t;const o=r,a=o.currentScript,{DocumentFragment:l,HTMLTemplateElement:c,Node:S,Element:_,NodeFilter:E,NamedNodeMap:B=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:L,DOMParser:V,trustedTypes:K}=t,$=_.prototype,U=z($,"cloneNode"),q=z($,"remove"),G=z($,"nextSibling"),ee=z($,"childNodes"),te=z($,"parentNode");if("function"==typeof c){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let ne,re="";const{implementation:oe,createNodeIterator:ie,createDocumentFragment:ae,getElementsByTagName:se}=r,{importNode:le}=o;let ce={};n.isSupported="function"==typeof e&&"function"==typeof te&&oe&&void 0!==oe.createHTMLDocument;const{MUSTACHE_EXPR:ue,ERB_EXPR:de,TMPLIT_EXPR:pe,DATA_ATTR:he,ARIA_ATTR:fe,IS_SCRIPT_OR_DATA:me,ATTR_WHITESPACE:ge,CUSTOM_ELEMENT:ve}=Y;let{IS_ALLOWED_URI:ye}=Y,be=null;const we=C({},[...P,...A,...D,...I,...N]);let xe=null;const Se=C({},[...O,...j,...R,...F]);let _e=Object.seal(s(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}})),Ce=null,Ee=null,ke=!0,ze=!0,Pe=!1,Ae=!0,De=!1,Te=!0,Ie=!1,Me=!1,Ne=!1,Oe=!1,je=!1,Re=!1,Fe=!0,Be=!1;const Le="user-content-";let Ve=!0,Ke=!1,$e={},He=null;const Ue=C({},["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 qe=null;const We=C({},["audio","video","img","source","image","track"]);let Ge=null;const Ye=C({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ze="http://www.w3.org/1998/Math/MathML",Je="http://www.w3.org/2000/svg",Xe="http://www.w3.org/1999/xhtml";let Qe=Xe,et=!1,tt=null;const nt=C({},[Ze,Je,Xe],f);let rt=null;const ot=["application/xhtml+xml","text/html"],it="text/html";let at=null,st=null;const lt=r.createElement("form"),ct=function(e){return e instanceof RegExp||e instanceof Function},ut=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!st||st!==e){if(e&&"object"==typeof e||(e={}),e=k(e),rt=-1===ot.indexOf(e.PARSER_MEDIA_TYPE)?it:e.PARSER_MEDIA_TYPE,at="application/xhtml+xml"===rt?f:h,be=b(e,"ALLOWED_TAGS")?C({},e.ALLOWED_TAGS,at):we,xe=b(e,"ALLOWED_ATTR")?C({},e.ALLOWED_ATTR,at):Se,tt=b(e,"ALLOWED_NAMESPACES")?C({},e.ALLOWED_NAMESPACES,f):nt,Ge=b(e,"ADD_URI_SAFE_ATTR")?C(k(Ye),e.ADD_URI_SAFE_ATTR,at):Ye,qe=b(e,"ADD_DATA_URI_TAGS")?C(k(We),e.ADD_DATA_URI_TAGS,at):We,He=b(e,"FORBID_CONTENTS")?C({},e.FORBID_CONTENTS,at):Ue,Ce=b(e,"FORBID_TAGS")?C({},e.FORBID_TAGS,at):{},Ee=b(e,"FORBID_ATTR")?C({},e.FORBID_ATTR,at):{},$e=!!b(e,"USE_PROFILES")&&e.USE_PROFILES,ke=!1!==e.ALLOW_ARIA_ATTR,ze=!1!==e.ALLOW_DATA_ATTR,Pe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ae=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,De=e.SAFE_FOR_TEMPLATES||!1,Te=!1!==e.SAFE_FOR_XML,Ie=e.WHOLE_DOCUMENT||!1,Oe=e.RETURN_DOM||!1,je=e.RETURN_DOM_FRAGMENT||!1,Re=e.RETURN_TRUSTED_TYPE||!1,Ne=e.FORCE_BODY||!1,Fe=!1!==e.SANITIZE_DOM,Be=e.SANITIZE_NAMED_PROPS||!1,Ve=!1!==e.KEEP_CONTENT,Ke=e.IN_PLACE||!1,ye=e.ALLOWED_URI_REGEXP||H,Qe=e.NAMESPACE||Xe,_e=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&ct(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(_e.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ct(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(_e.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(_e.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),De&&(ze=!1),je&&(Oe=!0),$e&&(be=C({},N),xe=[],!0===$e.html&&(C(be,P),C(xe,O)),!0===$e.svg&&(C(be,A),C(xe,j),C(xe,F)),!0===$e.svgFilters&&(C(be,D),C(xe,j),C(xe,F)),!0===$e.mathMl&&(C(be,I),C(xe,R),C(xe,F))),e.ADD_TAGS&&(be===we&&(be=k(be)),C(be,e.ADD_TAGS,at)),e.ADD_ATTR&&(xe===Se&&(xe=k(xe)),C(xe,e.ADD_ATTR,at)),e.ADD_URI_SAFE_ATTR&&C(Ge,e.ADD_URI_SAFE_ATTR,at),e.FORBID_CONTENTS&&(He===Ue&&(He=k(He)),C(He,e.FORBID_CONTENTS,at)),Ve&&(be["#text"]=!0),Ie&&C(be,["html","head","body"]),be.table&&(C(be,["tbody"]),delete Ce.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw x('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw x('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ne=e.TRUSTED_TYPES_POLICY,re=ne.createHTML("")}else void 0===ne&&(ne=X(K,a)),null!==ne&&"string"==typeof re&&(re=ne.createHTML(""));i&&i(e),st=e}},dt=C({},["mi","mo","mn","ms","mtext"]),pt=C({},["foreignobject","annotation-xml"]),ht=C({},["title","style","font","a","script"]),ft=C({},[...A,...D,...T]),mt=C({},[...I,...M]),gt=function(e){let t=te(e);t&&t.tagName||(t={namespaceURI:Qe,tagName:"template"});const n=h(e.tagName),r=h(t.tagName);return!!tt[e.namespaceURI]&&(e.namespaceURI===Je?t.namespaceURI===Xe?"svg"===n:t.namespaceURI===Ze?"svg"===n&&("annotation-xml"===r||dt[r]):Boolean(ft[n]):e.namespaceURI===Ze?t.namespaceURI===Xe?"math"===n:t.namespaceURI===Je?"math"===n&&pt[r]:Boolean(mt[n]):e.namespaceURI===Xe?!(t.namespaceURI===Je&&!pt[r])&&!(t.namespaceURI===Ze&&!dt[r])&&!mt[n]&&(ht[n]||!ft[n]):!("application/xhtml+xml"!==rt||!tt[e.namespaceURI]))},vt=function(e){p(n.removed,{element:e});try{te(e).removeChild(e)}catch(t){q(e)}},yt=function(e,t){try{p(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){p(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!xe[e])if(Oe||je)try{vt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},bt=function(e){let t=null,n=null;if(Ne)e="<remove></remove>"+e;else{const t=m(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===rt&&Qe===Xe&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=ne?ne.createHTML(e):e;if(Qe===Xe)try{t=(new V).parseFromString(o,rt)}catch(e){}if(!t||!t.documentElement){t=oe.createDocument(Qe,"template",null);try{t.documentElement.innerHTML=et?re:o}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),Qe===Xe?se.call(t,Ie?"html":"body")[0]:Ie?t.documentElement:i},wt=function(e){return ie.call(e.ownerDocument||e,e,E.SHOW_ELEMENT|E.SHOW_COMMENT|E.SHOW_TEXT|E.SHOW_PROCESSING_INSTRUCTION|E.SHOW_CDATA_SECTION,null)},xt=function(e){return e instanceof L&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof B)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},St=function(e){return"function"==typeof S&&e instanceof S},_t=function(e,t,r){ce[e]&&u(ce[e],(e=>{e.call(n,t,r,st)}))},Ct=function(e){let t=null;if(_t("beforeSanitizeElements",e,null),xt(e))return vt(e),!0;const r=at(e.nodeName);if(_t("uponSanitizeElement",e,{tagName:r,allowedTags:be}),e.hasChildNodes()&&!St(e.firstElementChild)&&w(/<[/\w]/g,e.innerHTML)&&w(/<[/\w]/g,e.textContent))return vt(e),!0;if(e.nodeType===Z.progressingInstruction)return vt(e),!0;if(Te&&e.nodeType===Z.comment&&w(/<[/\w]/g,e.data))return vt(e),!0;if(!be[r]||Ce[r]){if(!Ce[r]&&kt(r)){if(_e.tagNameCheck instanceof RegExp&&w(_e.tagNameCheck,r))return!1;if(_e.tagNameCheck instanceof Function&&_e.tagNameCheck(r))return!1}if(Ve&&!He[r]){const t=te(e)||e.parentNode,n=ee(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r){const o=U(n[r],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,G(e))}}return vt(e),!0}return e instanceof _&&!gt(e)?(vt(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!w(/<\/no(script|embed|frames)/i,e.innerHTML)?(De&&e.nodeType===Z.text&&(t=e.textContent,u([ue,de,pe],(e=>{t=g(t,e," ")})),e.textContent!==t&&(p(n.removed,{element:e.cloneNode()}),e.textContent=t)),_t("afterSanitizeElements",e,null),!1):(vt(e),!0)},Et=function(e,t,n){if(Fe&&("id"===t||"name"===t)&&(n in r||n in lt))return!1;if(ze&&!Ee[t]&&w(he,t));else if(ke&&w(fe,t));else if(!xe[t]||Ee[t]){if(!(kt(e)&&(_e.tagNameCheck instanceof RegExp&&w(_e.tagNameCheck,e)||_e.tagNameCheck instanceof Function&&_e.tagNameCheck(e))&&(_e.attributeNameCheck instanceof RegExp&&w(_e.attributeNameCheck,t)||_e.attributeNameCheck instanceof Function&&_e.attributeNameCheck(t))||"is"===t&&_e.allowCustomizedBuiltInElements&&(_e.tagNameCheck instanceof RegExp&&w(_e.tagNameCheck,n)||_e.tagNameCheck instanceof Function&&_e.tagNameCheck(n))))return!1}else if(Ge[t]);else if(w(ye,g(n,ge,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==v(n,"data:")||!qe[e])if(Pe&&!w(me,g(n,ge,"")));else if(n)return!1;return!0},kt=function(e){return"annotation-xml"!==e&&m(e,ve)},zt=function(e){_t("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:xe};let o=t.length;for(;o--;){const i=t[o],{name:a,namespaceURI:s,value:l}=i,c=at(a);let p="value"===a?l:y(l);if(r.attrName=c,r.attrValue=p,r.keepAttr=!0,r.forceKeepAttr=void 0,_t("uponSanitizeAttribute",e,r),p=r.attrValue,Te&&w(/((--!?|])>)|<\/(style|title)/i,p)){yt(a,e);continue}if(r.forceKeepAttr)continue;if(yt(a,e),!r.keepAttr)continue;if(!Ae&&w(/\/>/i,p)){yt(a,e);continue}De&&u([ue,de,pe],(e=>{p=g(p,e," ")}));const h=at(e.nodeName);if(Et(h,c,p)){if(!Be||"id"!==c&&"name"!==c||(yt(a,e),p=Le+p),ne&&"object"==typeof K&&"function"==typeof K.getAttributeType)if(s);else switch(K.getAttributeType(h,c)){case"TrustedHTML":p=ne.createHTML(p);break;case"TrustedScriptURL":p=ne.createScriptURL(p)}try{s?e.setAttributeNS(s,a,p):e.setAttribute(a,p),xt(e)?vt(e):d(n.removed)}catch(e){}}}_t("afterSanitizeAttributes",e,null)},Pt=function e(t){let n=null;const r=wt(t);for(_t("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)_t("uponSanitizeShadowNode",n,null),Ct(n)||(n.content instanceof l&&e(n.content),zt(n));_t("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=null,a=null,s=null;if(et=!e,et&&(e="\x3c!--\x3e"),"string"!=typeof e&&!St(e)){if("function"!=typeof e.toString)throw x("toString is not a function");if("string"!=typeof(e=e.toString()))throw x("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Me||ut(t),n.removed=[],"string"==typeof e&&(Ke=!1),Ke){if(e.nodeName){const t=at(e.nodeName);if(!be[t]||Ce[t])throw x("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof S)r=bt("\x3c!----\x3e"),i=r.ownerDocument.importNode(e,!0),i.nodeType===Z.element&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i);else{if(!Oe&&!De&&!Ie&&-1===e.indexOf("<"))return ne&&Re?ne.createHTML(e):e;if(r=bt(e),!r)return Oe?null:Re?re:""}r&&Ne&&vt(r.firstChild);const c=wt(Ke?e:r);for(;a=c.nextNode();)Ct(a)||(a.content instanceof l&&Pt(a.content),zt(a));if(Ke)return e;if(Oe){if(je)for(s=ae.call(r.ownerDocument);r.firstChild;)s.appendChild(r.firstChild);else s=r;return(xe.shadowroot||xe.shadowrootmode)&&(s=le.call(o,s,!0)),s}let d=Ie?r.outerHTML:r.innerHTML;return Ie&&be["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&w(W,r.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+d),De&&u([ue,de,pe],(e=>{d=g(d,e," ")})),ne&&Re?ne.createHTML(d):d},n.setConfig=function(){ut(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Me=!0},n.clearConfig=function(){st=null,Me=!1},n.isValidAttribute=function(e,t,n){st||ut({});const r=at(e),o=at(t);return Et(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&(ce[e]=ce[e]||[],p(ce[e],t))},n.removeHook=function(e){if(ce[e])return d(ce[e])},n.removeHooks=function(e){ce[e]&&(ce[e]=[])},n.removeAllHooks=function(){ce={}},n}return Q()}()},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:()=>q,WM:()=>Ce});var s=n(5556),l=n.n(s),c=n(96540);n(44363);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,j=T.bottom,R=T.left;if("if-needed"===r&&S>=0&&E>=0&&C<=g&&_<=m&&S>=N&&C<=j&&E>=R&&_<=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),$=0,H=0,U="offsetWidth"in D?D.offsetWidth-D.clientWidth-B-V:0,q="offsetHeight"in D?D.offsetHeight-D.clientHeight-L-K:0;if(c===D)$="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,H="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),$=Math.max(0,$+y),H=Math.max(0,H+v);else{$="start"===o?k-N-L:"end"===o?k-j+K+q:"nearest"===o?h(N,j,I,L,K+q,k,k+w,w):k-(N+I/2)+q/2,H="start"===i?z-R-B:"center"===i?z-(R+M/2)+U/2:"end"===i?z-O+V+U:h(R,O,M,B,V+U,z,z+x,x);var W=D.scrollLeft,G=D.scrollTop;k+=G-($=Math.max(0,Math.min(G+$,D.scrollHeight-I+q))),z+=W-(H=Math.max(0,Math.min(W+H,D.scrollWidth-M+U)))}P.push({el:D,top:$,left:H})}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 j=w((function(e){F(e).textContent=""}),500);function R(e,t){var n=F(t);e&&(n.textContent=e,j(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"],$=["refKey","ref"],H=["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,$),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,H);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,R(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}(),q=U;var W=["isInitialMount","highlightedIndex","items","environment"],G={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function Y(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 Z=w((function(e,t){R(e(),t)}),200),J="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?c.useLayoutEffect:c.useEffect;function X(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&&Y(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,W);(0,c.useEffect)((function(){i||Z((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 J((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=Object.freeze({__proto__:null,MenuKeyDownArrowDown:0,MenuKeyDownArrowUp:1,MenuKeyDownEscape:2,MenuKeyDownHome:3,MenuKeyDownEnd:4,MenuKeyDownEnter:5,MenuKeyDownSpaceButton:6,MenuKeyDownCharacter:7,MenuBlur:8,MenuMouseLeave:9,ItemMouseMove:10,ItemClick:11,ToggleButtonClick:12,ToggleButtonKeyDownArrowDown:13,ToggleButtonKeyDownArrowUp:14,ToggleButtonKeyDownCharacter:15,FunctionToggleMenu:16,FunctionOpenMenu:17,FunctionCloseMenu:18,FunctionSetHighlightedIndex:19,FunctionSelectItem:20,FunctionSetInputValue:21,FunctionReset:22});function we(e,t){var n,r=t.type,i=t.props,a=t.shiftKey;switch(r){case 11:n={isOpen:ae(i,"isOpen"),highlightedIndex:ae(i,"highlightedIndex"),selectedItem:i.items[t.index]};break;case 15: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 13:n={highlightedIndex:ce(i,e,1,t.getItemNodeFromIndex),isOpen:!0};break;case 14:n={highlightedIndex:ce(i,e,-1,t.getItemNodeFromIndex),isOpen:!0};break;case 5:case 6:n=o({isOpen:ae(i,"isOpen"),highlightedIndex:ae(i,"highlightedIndex")},e.highlightedIndex>=0&&{selectedItem:i.items[e.highlightedIndex]});break;case 3:n={highlightedIndex:N(1,0,i.items.length,t.getItemNodeFromIndex,!1)};break;case 4:n={highlightedIndex:N(-1,i.items.length-1,i.items.length,t.getItemNodeFromIndex,!1)};break;case 2:case 8:n={isOpen:!1,highlightedIndex:-1};break;case 7: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 0:n={highlightedIndex:M(a?5:1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,i.circularNavigation)};break;case 1:n={highlightedIndex:M(a?-5:-1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,i.circularNavigation)};break;case 20:n={selectedItem:t.selectedItem};break;default:return me(e,t,be)}return o({},e,n)}var xe=["onMouseLeave","refKey","onKeyDown","onBlur","ref"],Se=["onClick","onKeyDown","refKey","ref"],_e=["item","index","onMouseMove","onClick","refKey","ref"];function Ce(e){void 0===e&&(e={}),ye(e,Ce);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(we,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=X(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:21,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:8})})),j=de();(0,c.useEffect)((function(){D.current=!1}),[]),(0,c.useEffect)((function(){g||(E.current={})}),[g]);var R=(0,c.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),m({type:13,getItemNodeFromIndex:M,shiftKey:e.shiftKey})},ArrowUp:function(e){e.preventDefault(),m({type:14,getItemNodeFromIndex:M,shiftKey:e.shiftKey})}}}),[m,M]),F=(0,c.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),m({type:0,getItemNodeFromIndex:M,shiftKey:e.shiftKey})},ArrowUp:function(e){e.preventDefault(),m({type:1,getItemNodeFromIndex:M,shiftKey:e.shiftKey})},Home:function(e){e.preventDefault(),m({type:3,getItemNodeFromIndex:M})},End:function(e){e.preventDefault(),m({type:4,getItemNodeFromIndex:M})},Escape:function(){m({type:2})},Enter:function(e){e.preventDefault(),m({type:5})}," ":function(e){e.preventDefault(),m({type:6})}}}),[m,M]),B=(0,c.useCallback)((function(){m({type:16})}),[m]),L=(0,c.useCallback)((function(){m({type:18})}),[m]),V=(0,c.useCallback)((function(){m({type:17})}),[m]),K=(0,c.useCallback)((function(e){m({type:19,highlightedIndex:e})}),[m]),$=(0,c.useCallback)((function(e){m({type:20,selectedItem:e})}),[m]),H=(0,c.useCallback)((function(){m({type:22})}),[m]),U=(0,c.useCallback)((function(e){m({type:21,inputValue:e})}),[m]),q=(0,c.useCallback)((function(e){return o({id:P.labelId,htmlFor:P.toggleButtonId},e)}),[P]),W=(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,xe),h=(void 0===t?{}:t).suppressRefError,f=void 0!==h&&h,g=T.current.state;return j("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:9})})),onKeyDown:x(c,(function(e){var t=I(e);t&&F[t]?F[t](e):ee(t)&&m({type:7,key:t,getItemNodeFromIndex:M})})),onBlur:x(u,(function(){!1!==k.current?!O.current.isMouseDown&&m({type:8}):k.current=!0}))},p)}),[m,T,F,O,j,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,Se),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:12})})),f.onKeyDown=x(s,(function(e){var t=I(e);t&&R[t]?R[t](e):ee(t)&&m({type:15,key:t,getItemNodeFromIndex:M})}))),j("getToggleButtonProps",h,c,_),f}),[m,T,R,j,P,M]),getLabelProps:q,getMenuProps:W,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,_e),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:10,index:a}))})),y.onClick=x(l,(function(){m({type:11,index:a})}))),y}),[m,T,N,P]),toggleMenu:B,openMenu:V,closeMenu:L,setHighlightedIndex:K,selectItem:$,reset:H,setInputValue:U,highlightedIndex:v,isOpen:g,selectedItem:y,inputValue:b}}Ce.stateChangeTypes=be;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})})},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},74987:e=>{function t(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 n(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 r(e,t,n,r,o){return n.bind(t,e,r,o)}function o(e,o){return r(e,this,1===e.length?t:n,o.cache.create(),o.serializer)}function i(){return JSON.stringify(arguments)}function a(){this.cache=Object.create(null)}a.prototype.has=function(e){return e in this.cache},a.prototype.get=function(e){return this.cache[e]},a.prototype.set=function(e,t){this.cache[e]=t};var s={create:function(){return new a}};e.exports=function(e,t){var n=t&&t.cache?t.cache:s,r=t&&t.serializer?t.serializer:i;return(t&&t.strategy?t.strategy:o)(e,{cache:n,serializer:r})},e.exports.strategies={variadic:function(e,t){return r(e,this,n,t.cache.create(),t.serializer)},monadic:function(e,n){return r(e,this,t,n.cache.create(),n.serializer)}}},4213:function(e,t,n){var r,o,i;o=[],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},void 0===(i="function"==typeof r?r.apply(t,o):r)||(e.exports=i)},53996:function(e,t){var n;!function(r){"use strict";var o={s:1,n:0,d:1};function i(e,t){if(isNaN(e=parseInt(e,10)))throw u.InvalidParameter;return e*t}function a(e,t){if(0===t)throw u.DivisionByZero;var n=Object.create(u.prototype);n.s=e<0?-1:1;var r=c(e=e<0?-e:e,t);return n.n=e/r,n.d=t/r,n}function s(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 l=function(e,t){var n,r=0,a=1,s=1,l=0,c=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=(r=e)*(a=t),r%1!=0||a%1!=0)throw u.NonIntegerParameter}else switch(typeof e){case"object":if("d"in e&&"n"in e)r=e.n,a=e.d,"s"in e&&(r*=e.s);else{if(!(0 in e))throw u.InvalidParameter;r=e[0],1 in e&&(a=e[1])}s=r*a;break;case"number":if(e<0&&(s=e,e=-e),e%1==0)r=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?(r=f+g,a=m+v):v>m?(r=g,a=v):(r=f,a=m);break}e>n?(f+=g,m+=v):(g+=f,v+=m),m>y?(r=g,a=v):(r=f,a=m)}r*=h}else(isNaN(e)||isNaN(t))&&(a=r=NaN);break;case"string":if(null===(m=e.match(/\d+|./g)))throw u.InvalidParameter;if("-"===m[f]?(s=-1,f++):"+"===m[f]&&f++,m.length===f+1?c=i(m[f++],s):"."===m[f+1]||"."===m[f]?("."!==m[f]&&(l=i(m[f++],s)),(++f+1===m.length||"("===m[f+1]&&")"===m[f+3]||"'"===m[f+1]&&"'"===m[f+3])&&(c=i(m[f],s),p=Math.pow(10,m[f].length),f++),("("===m[f]&&")"===m[f+2]||"'"===m[f]&&"'"===m[f+2])&&(d=i(m[f+1],s),h=Math.pow(10,m[f+1].length)-1,f+=3)):"/"===m[f+1]||":"===m[f+1]?(c=i(m[f],s),p=i(m[f+2],1),f+=3):"/"===m[f+3]&&" "===m[f+1]&&(l=i(m[f],s),c=i(m[f+2],s),p=i(m[f+4],1),f+=5),m.length<=f){s=r=d+(a=p*h)*l+h*c;break}default:throw u.InvalidParameter}if(0===a)throw u.DivisionByZero;o.s=s<0?-1:1,o.n=Math.abs(r),o.d=Math.abs(a)};function c(e,t){if(!e)return t;if(!t)return e;for(;;){if(!(e%=t))return t;if(!(t%=e))return e}}function u(e,t){if(l(e,t),!(this instanceof u))return a(o.s*o.n,o.d);e=c(o.d,o.n),this.s=o.s,this.n=o.n/e,this.d=o.d/e}u.DivisionByZero=new Error("Division by Zero"),u.InvalidParameter=new Error("Invalid argument"),u.NonIntegerParameter=new Error("Parameters must be integer"),u.prototype={s:1,n:0,d:1,abs:function(){return a(this.n,this.d)},neg:function(){return a(-this.s*this.n,this.d)},add:function(e,t){return l(e,t),a(this.s*this.n*o.d+o.s*this.d*o.n,this.d*o.d)},sub:function(e,t){return l(e,t),a(this.s*this.n*o.d-o.s*this.d*o.n,this.d*o.d)},mul:function(e,t){return l(e,t),a(this.s*o.s*this.n*o.n,this.d*o.d)},div:function(e,t){return l(e,t),a(this.s*o.s*this.n*o.d,this.d*o.n)},clone:function(){return a(this.s*this.n,this.d)},mod:function(e,t){if(isNaN(this.n)||isNaN(this.d))return new u(NaN);if(void 0===e)return a(this.s*this.n%this.d,1);if(l(e,t),0===o.n&&0===this.d)throw u.DivisionByZero;return a(this.s*(o.d*this.n)%(o.n*this.d),o.d*this.d)},gcd:function(e,t){return l(e,t),a(c(o.n,this.n)*c(o.d,this.d),o.d*this.d)},lcm:function(e,t){return l(e,t),0===o.n&&0===this.n?a(0,1):a(o.n*this.n,c(o.n,this.n)*c(o.d,this.d))},ceil:function(e){return e=Math.pow(10,e||0),isNaN(this.n)||isNaN(this.d)?new u(NaN):a(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 u(NaN):a(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 u(NaN):a(Math.round(e*this.s*this.n/this.d),e)},inverse:function(){return a(this.s*this.d,this.n)},pow:function(e,t){if(l(e,t),1===o.d)return o.s<0?a(Math.pow(this.s*this.d,o.n),Math.pow(this.n,o.n)):a(Math.pow(this.s*this.n,o.n),Math.pow(this.d,o.n));if(this.s<0)return null;var n=s(this.n),r=s(this.d),i=1,c=1;for(var u in n)if("1"!==u){if("0"===u){i=0;break}if(n[u]*=o.n,n[u]%o.d!=0)return null;n[u]/=o.d,i*=Math.pow(u,n[u])}for(var u in r)if("1"!==u){if(r[u]*=o.n,r[u]%o.d!=0)return null;r[u]/=o.d,c*=Math.pow(u,r[u])}return o.s<0?a(c,i):a(i,c)},equals:function(e,t){return l(e,t),this.s*this.n*o.d==o.s*o.n*this.d},compare:function(e,t){l(e,t);var n=this.s*this.n*o.d-o.s*o.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=a(n[r-1],1),i=r-2;i>=0;i--)o=o.inverse().add(n[i]);if(o.sub(t).abs().valueOf()<e)return o.mul(this.s)}return this},divisible:function(e,t){return l(e,t),!(!(o.n*this.d)||this.n*o.d%(o.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 u}.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(73404),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}},3072:(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},73404:(e,t,n)=>{"use strict";e.exports=n(3072)},73575:(e,t,n)=>{"use strict";n.d(t,{IP:()=>q,Qx:()=>l,a6:()=>c,ht:()=>Y,jM:()=>G,mq:()=>Z,ss:()=>H,vD:()=>J});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_||j(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 j(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))),j(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_||j(e,o)}}function j(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&w(t,n)}var R={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]=$(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(R,((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 R.set.call(this,e[0],t,n,e[0])};function $(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=R;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 H(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 q(){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=$(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=$(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 W=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=$(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=H(e));const t=T(this),n=$(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=W.produce,Y=(W.produceWithPatches.bind(W),W.setAutoFreeze.bind(W)),Z=(W.setUseStrictShallowCopy.bind(W),W.applyPatches.bind(W),W.createDraft.bind(W)),J=W.finishDraft.bind(W)},49568:(e,t,n)=>{"use strict";n.d(t,{B8:()=>Yt,CD:()=>Zn,G2:()=>q,NZ:()=>zn,T5:()=>Et,hZ:()=>nt,is:()=>le,mS:()=>tr,ss:()=>lr,uY:()=>un});var r=32,o=31,i={};function a(e){e&&(e.value=!0)}function s(){}function l(e){return void 0===e.size&&(e.size=e.__iterate(u)),e.size}function c(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?l(e)+t:t}function u(){return!0}function d(e,t,n){return(0===e&&!m(e)||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function p(e,t){return f(e,t,0)}function h(e,t){return f(e,t,t)}function f(e,t,n){return void 0===e?n:m(e)?t===1/0?t:0|Math.max(0,t+e):void 0===t||t===e?e:0|Math.min(t,e)}function m(e){return e<0||0===e&&1/e==-1/0}var g="@@__IMMUTABLE_ITERABLE__@@";function v(e){return Boolean(e&&e[g])}var y="@@__IMMUTABLE_KEYED__@@";function b(e){return Boolean(e&&e[y])}var w="@@__IMMUTABLE_INDEXED__@@";function x(e){return Boolean(e&&e[w])}function S(e){return b(e)||x(e)}var _=function(e){return v(e)?e:q(e)},C=function(e){function t(e){return b(e)?e:W(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(_),E=function(e){function t(e){return x(e)?e:G(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(_),k=function(e){function t(e){return v(e)&&!S(e)?e:Y(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(_);_.Keyed=C,_.Indexed=E,_.Set=k;var z="@@__IMMUTABLE_SEQ__@@";function P(e){return Boolean(e&&e[z])}var A="@@__IMMUTABLE_RECORD__@@";function D(e){return Boolean(e&&e[A])}function T(e){return v(e)||D(e)}var I="@@__IMMUTABLE_ORDERED__@@";function M(e){return Boolean(e&&e[I])}var N="function"==typeof Symbol&&Symbol.iterator,O="@@iterator",j=N||O,R=function(e){this.next=e};function F(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 B(){return{value:void 0,done:!0}}function L(e){return!!$(e)}function V(e){return e&&"function"==typeof e.next}function K(e){var t=$(e);return t&&t.call(e)}function $(e){var t=e&&(N&&e[N]||e["@@iterator"]);if("function"==typeof t)return t}R.prototype.toString=function(){return"[Iterator]"},R.KEYS=0,R.VALUES=1,R.ENTRIES=2,R.prototype.inspect=R.prototype.toSource=function(){return this.toString()},R.prototype[j]=function(){return this};var H=Object.prototype.hasOwnProperty;function U(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?ee():T(e)?e.toSeq():function(e){var t=re(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 R((function(){if(o===r)return{value:void 0,done:!0};var i=n[t?r-++o:o++];return F(e,i[0],i[1])}))}return this.__iteratorUncached(e,t)},t}(_),W=function(e){function t(e){return null==e?ee().toKeyedSeq():v(e)?b(e)?e.toSeq():e.fromEntrySeq():D(e)?e.toSeq():te(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),G=function(e){function t(e){return null==e?ee():v(e)?b(e)?e.entrySeq():e.toIndexedSeq():D(e)?e.toSeq().entrySeq():ne(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(v(e)&&!S(e)?e:G(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=P,q.Keyed=W,q.Set=Y,q.Indexed=G,q.prototype[z]=!0;var Z=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[c(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 R((function(){if(o===r)return{value:void 0,done:!0};var i=t?r-++o:o++;return F(e,i,n[i])}))},t}(G),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 H.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 R((function(){if(i===o)return{value:void 0,done:!0};var a=r[t?o-++i:i++];return F(e,a,n[a])}))},t}(W);J.prototype[I]=!0;var X,Q=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=K(this._collection),r=0;if(V(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=K(this._collection);if(!V(n))return new R(B);var r=0;return new R((function(){var t=n.next();return t.done?t:F(e,r++,t.value)}))},t}(G);function ee(){return X||(X=new Z([]))}function te(e){var t=Array.isArray(e)?new Z(e):L(e)?new Q(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 ne(e){var t=re(e);if(t)return t;throw new TypeError("Expected Array or collection object of values: "+e)}function re(e){return U(e)?new Z(e):L(e)?new Q(e):void 0}var oe="@@__IMMUTABLE_MAP__@@";function ie(e){return Boolean(e&&e[oe])}function ae(e){return ie(e)&&M(e)}function se(e){return Boolean(e&&"function"==typeof e.equals&&"function"==typeof e.hashCode)}function le(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!!(se(e)&&se(t)&&e.equals(t))}var ce="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 ue(e){return e>>>1&1073741824|3221225471&e}function de(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 ue(n)}if("string"===t)return e.length>be?function(e){var t=Se[e];void 0===t&&(t=pe(e),xe===we&&(xe=0,Se={}),xe++,Se[e]=t);return t}(e):pe(e);if("function"==typeof e.hashCode)return ue(e.hashCode());if("object"===t||"function"===t)return function(e){var t;if(ge&&void 0!==(t=me.get(e)))return t;if(void 0!==(t=e[ye]))return t;if(!fe){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[ye]))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=++ve,1073741824&ve&&(ve=0);if(ge)me.set(e,t);else{if(void 0!==he&&!1===he(e))throw new Error("Non-extensible objects are not allowed as keys.");if(fe)Object.defineProperty(e,ye,{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[ye]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[ye]=t}}return t}(e);if("function"==typeof e.toString)return pe(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function pe(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return ue(t)}var he=Object.isExtensible,fe=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();var me,ge="function"==typeof WeakMap;ge&&(me=new WeakMap);var ve=0,ye="__immutablehash__";"function"==typeof Symbol&&(ye=Symbol(ye));var be=16,we=255,xe=0,Se={},_e=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=Ae(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},t.prototype.map=function(e,t){var n=this,r=Pe(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}(W);_e.prototype[I]=!0;var Ce=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&&l(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&&l(this),new R((function(){var i=r.next();return i.done?i:F(e,t?n.size-++o:o++,i.value,i)}))},t}(G),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.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 R((function(){var t=n.next();return t.done?t:F(e,t.value,t.value,t)}))},t}(Y),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.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=v(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 R((function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){Le(r);var o=v(r);return F(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}}))},t}(W);function ze(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=$e,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 R((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 Pe(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 a=e.get(r,i);return a===i?o:t.call(n,a,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 R((function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return F(r,s,t.call(n,a[1],s,e),o)}))},r}function Ae(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=ze(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=$e,r.__iterate=function(n,r){var o=this,i=0;return r&&l(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&&l(e);var a=e.__iterator(2,!o);return new R((function(){var e=a.next();if(e.done)return e;var s=e.value;return F(r,t?s[0]:o?n.size-++i:i++,s[1],e)}))},r}function De(e,t,n,r){var o=Ke(e);return r&&(o.has=function(r){var o=e.get(r,i);return o!==i&&!!t.call(n,o,r,e)},o.get=function(r,o){var a=e.get(r,i);return a!==i&&t.call(n,a,r,e)?a: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 R((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 F(o,r?c:s++,u,i)}}))},o}function Te(e,t,n,r){var o=e.size;if(d(t,n,o))return e;var i=p(t,o),a=h(n,o);if(i!=i||a!=a)return Te(e.toSeq().cacheResult(),t,n,r);var s,l=a-i;l==l&&(s=l<0?0:l);var u=Ke(e);return u.size=0===s?s:e.size&&s||void 0,!r&&P(e)&&s>=0&&(u.get=function(t,n){return(t=c(this,t))>=0&&t<s?e.get(t+i,n):n}),u.__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},u.__iteratorUncached=function(t,n){if(0!==s&&n)return this.cacheResult().__iterator(t,n);if(0===s)return new R(B);var o=e.__iterator(t,n),a=0,l=0;return new R((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:F(t,l-1,0===t?void 0:e.value[1],e)}))},u}function Ie(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 R((function(){var e,i,u;do{if((e=s.next()).done)return r||1===o?e:F(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:F(o,i,u,e)}))},o}function Me(e,t){var n=b(e),r=[e].concat(t).map((function(e){return v(e)?n&&(e=C(e)):e=n?te(e):ne(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&&b(o)||x(e)&&x(o))return o}var i=new Z(r);return n?i=i.toKeyedSeq():x(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}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)&&v(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 R((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)||!v(l))return n?e:F(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=He);var r=b(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?W(i):x(e)?G(i):Y(i)}function je(e,t,n){if(t||(t=He),n){var r=e.toSeq().map((function(t,r){return[t,n(t,r,e)]})).reduce((function(e,n){return Re(t,e[1],n[1])?n:e}));return r&&r[0]}return e.reduce((function(e,n){return Re(t,e,n)?n:e}))}function Re(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 Z(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=_(e),K(o?e.reverse():e)})),a=0,s=!1;return new R((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}:F(e,a++,t.apply(null,n.map((function(e){return e.value}))))}))},o}function Be(e,t){return e===t?e:P(e)?t:e.constructor(t)}function Le(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Ve(e){return b(e)?C:x(e)?E:k}function Ke(e){return Object.create((b(e)?W:x(e)?G:Y).prototype)}function $e(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):q.prototype.cacheResult.call(this)}function He(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 qe(e,t){if(!e)throw new Error(t)}function We(e){qe(e!==1/0,"Cannot perform this action with an infinite size.")}function Ge(e){if(U(e)&&"string"!=typeof e)return e;if(M(e))return e.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+e)}function Ye(e){return e&&(e.constructor&&"Object"===e.constructor.name||void 0===e.constructor)}function Ze(e){return"object"==typeof e&&(T(e)||Array.isArray(e)||Ye(e))}function Je(e){try{return"string"==typeof e?JSON.stringify(e):String(e)}catch(t){return JSON.stringify(e)}}function Xe(e,t){return T(e)?e.has(t):Ze(e)&&H.call(e,t)}function Qe(e,t,n){return T(e)?e.get(t,n):Xe(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)H.call(e,n)&&(t[n]=e[n]);return t}function tt(e,t){if(!Ze(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(T(e)){if(!e.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+e);return e.remove(t)}if(!H.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(!Ze(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(T(e)){if(!e.set)throw new TypeError("Cannot update immutable value without .set() method: "+e);return e.set(t,n)}if(H.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(T(e),e,Ge(t),0,n,r);return o===i?n:o}function ot(e,t,n,r,o,a){var s=t===i;if(r===n.length){var l=s?o:t,c=a(l);return c===l?t:c}if(!s&&!Ze(t))throw new TypeError("Cannot update within non-data-structure value in path ["+n.slice(0,r).map(Je)+"]: "+t);var u=n[r],d=s?i:Qe(t,u,i),p=ot(d===i?e:T(d),d,n,r+1,o,a);return p===d?t:p===i?tt(t,u):nt(s?e?Rt():{}:t,u,p)}function it(e,t,n){return rt(e,t,i,(function(){return n}))}function at(e,t){return it(this,e,t)}function st(e,t){return rt(e,t,(function(){return i}))}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 a=C(t[o]);0!==a.size&&r.push(a)}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,i,(function(e){return e===i?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 Ze(n)&&Ze(r)?gt(n,[r],t):e?e(n,r,o):r}return t}(n))}function gt(e,t,n){if(!Ze(e))throw new TypeError("Cannot merge into non-data-structure value: "+e);if(T(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?E:C,a=r?function(t){o===e&&(o=et(o)),o.push(t)}:function(t,r){var i=H.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,Rt(),(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,Rt(),(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 s)}function _t(){return this.__ensureOwner()}function Ct(){return this.__altered}Ce.prototype.cacheResult=_e.prototype.cacheResult=Ee.prototype.cacheResult=ke.prototype.cacheResult=$e;var Et=function(e){function t(t){return null==t?Rt():ie(t)&&!M(t)?t:Rt().withMutations((function(n){var r=e(t);We(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 Rt().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,i)},t.prototype.deleteAll=function(e){var t=_(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):Rt()},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?jt(this.size,this._root,e,this.__hash):0===this.size?Rt():(this.__ownerID=e,this.__altered=!1,this)},t}(C);Et.isMap=ie;var kt=Et.prototype;kt[oe]=!0,kt.delete=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(le(n,o[i][0]))return o[i][1];return r},zt.prototype.update=function(e,t,n,r,o,l,c){for(var u=o===i,d=this.entries,p=0,h=d.length;p<h&&!le(r,d[p][0]);p++);var f=p<h;if(f?d[p][1]===o:u)return this;if(a(c),(u||!f)&&a(l),!u||1!==d.length){if(!f&&!u&&d.length>=Ht)return function(e,t,n,r){e||(e=new s);for(var o=new Tt(e,de(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=de(n));var i=1<<((0===e?t:t>>>e)&o),a=this.bitmap;return 0==(a&i)?r:this.nodes[Kt(a&i-1)].get(e+5,t,n,r)},Pt.prototype.update=function(e,t,n,a,s,l,c){void 0===n&&(n=de(a));var u=(0===t?n:n>>>t)&o,d=1<<u,p=this.bitmap,h=0!=(p&d);if(!h&&s===i)return this;var f=Kt(p&d-1),m=this.nodes,g=h?m[f]:void 0,v=Bt(g,e,t+5,n,a,s,l,c);if(v===g)return this;if(!h&&v&&m.length>=Ut)return function(e,t,n,o,i){for(var a=0,s=new Array(r),l=0;0!==n;l++,n>>>=1)s[l]=1&n?t[a++]:void 0;return s[o]=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?$t(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=de(n));var i=(0===e?t:t>>>e)&o,a=this.nodes[i];return a?a.get(e+5,t,n,r):r},At.prototype.update=function(e,t,n,r,a,s,l){void 0===n&&(n=de(r));var c=(0===t?n:n>>>t)&o,u=a===i,d=this.nodes,p=d[c];if(u&&!p)return this;var h=Bt(p,e,t+5,n,r,a,s,l);if(h===p)return this;var f=this.count;if(p){if(!h&&--f<qt)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=$t(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(le(n,o[i][0]))return o[i][1];return r},Dt.prototype.update=function(e,t,n,r,o,s,l){void 0===n&&(n=de(r));var c=o===i;if(n!==this.keyHash)return c?this:(a(l),a(s),Vt(this,e,t,n,[r,o]));for(var u=this.entries,d=0,p=u.length;d<p&&!le(r,u[d][0]);d++);var h=d<p;if(h?u[d][1]===o:c)return this;if(a(l),(c||!h)&&a(s),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 le(n,this.entry[0])?this.entry[1]:r},Tt.prototype.update=function(e,t,n,r,o,s,l){var c=o===i,u=le(r,this.entry[0]);return(u?o===this.entry[1]:c)?this:(a(l),c?void a(s):u?e&&e===this.ownerID?(this.entry[1]=o,this):new Tt(e,this.keyHash,[r,o]):(a(s),Vt(this,e,t,de(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}(R);function Nt(e,t){return F(e,t[0],t[1])}function Ot(e,t){return{node:e,index:0,__prev:t}}function jt(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 Rt(){return It||(It=jt(0))}function Ft(e,t,n){var r,o;if(e._root){var a={value:!1},s={value:!1};if(r=Bt(e._root,e.__ownerID,0,void 0,t,n,a,s),!s.value)return e;o=e.size+(a.value?n===i?-1:1:0)}else{if(n===i)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?jt(o,r):Rt()}function Bt(e,t,n,r,o,s,l,c){return e?e.update(t,n,r,o,s,l,c):s===i?e:(a(c),a(l),new Tt(t,r,[o,s]))}function Lt(e){return e.constructor===Tt||e.constructor===Dt}function Vt(e,t,n,r,i){if(e.keyHash===r)return new Dt(t,r,[e.entry,i]);var a,s=(0===n?e.keyHash:e.keyHash>>>n)&o,l=(0===n?r:r>>>n)&o,c=s===l?[Vt(e,t,n+5,r,i)]:(a=new Tt(t,r,i),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 $t(e,t,n,r){var o=r?e:Ue(e);return o[t]=n,o}var Ht=8,Ut=16,qt=8,Wt="@@__IMMUTABLE_LIST__@@";function Gt(e){return Boolean(e&&e[Wt])}var Yt=function(e){function t(t){var n=nn();if(null==t)return n;if(Gt(t))return t;var o=e(t),i=o.size;return 0===i?n:(We(i),i>0&&i<r?tn(0,i,5,null,new Jt(o.toArray())):n.withMutations((function(e){e.setSize(i),o.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=c(this,e))>=0&&e<this.size){var n=an(this,e+=this._origin);return n&&n.array[e&o]}return t},t.prototype.set=function(e,t){return function(e,t,n){if((t=c(e,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&&L(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 d(e,t,n)?this:sn(this,p(e,n),h(t,n))},t.prototype.__iterator=function(e,t){var n=t?this.size:0,r=en(this,t);return new R((function(){var o=r();return o===Qt?{value:void 0,done:!0}:F(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}(E);Yt.isList=Gt;var Zt=Yt.prototype;Zt[Wt]=!0,Zt.delete=Zt.remove,Zt.merge=Zt.concat,Zt.setIn=at,Zt.deleteIn=Zt.removeIn=lt,Zt.update=ut,Zt.updateIn=dt,Zt.mergeIn=bt,Zt.mergeDeepIn=wt,Zt.withMutations=xt,Zt.wasAltered=Ct,Zt.asImmutable=_t,Zt["@@transducer/init"]=Zt.asMutable=St,Zt["@@transducer/step"]=function(e,t){return e.push(t)},Zt["@@transducer/result"]=function(e){return e.asImmutable()};var Jt=function(e,t){this.array=e,this.ownerID=t};Jt.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&o;if(r>=this.array.length)return new Jt([],e);var i,a=0===r;if(t>0){var s=this.array[r];if((i=s&&s.removeBefore(e,t-5,n))===s&&a)return this}if(a&&!i)return this;var l=on(this,e);if(!a)for(var c=0;c<r;c++)l.array[c]=void 0;return i&&(l.array[r]=i),l},Jt.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,i=n-1>>>t&o;if(i>=this.array.length)return this;if(t>0){var a=this.array[i];if((r=a&&a.removeAfter(e,t-5,n))===a&&i===this.array.length-1)return this}var s=on(this,e);return s.array.splice(i+1),r&&(s.array[i]=r),s};var Xt,Qt={};function en(e,t){var n=e._origin,o=e._capacity,i=ln(o),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=o-s;u>r&&(u=r);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+(o-a>>i);d>r&&(d=r);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(Zt);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 Xt||(Xt=tn(0,0,5))}function rn(e,t,n,r,i,s){var l,c=r>>>n&o,u=e&&c<e.array.length;if(!u&&void 0===i)return e;if(n>0){var d=e&&e.array[c],p=rn(d,t,n-5,r,i,s);return p===d?e:((l=on(e,t)).array[c]=p,l)}return u&&e.array[c]===i?e:(s&&a(s),l=on(e,t),void 0===i&&c===l.array.length-1?l.array.pop():l.array[c]=i,l)}function on(e,t){return t&&e&&t===e.ownerID?e:new Jt(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&o],r-=5;return n}}function sn(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new s,i=e._origin,a=e._capacity,l=i+t,c=void 0===n?a:n<0?a+n:i+n;if(l===i&&c===a)return e;if(l>=c)return e.clear();for(var u=e._level,d=e._root,p=0;l+p<0;)d=new Jt(d&&d.array.length?[void 0,d]:[],r),p+=1<<(u+=5);p&&(l+=p,i+=p,c+=p,a+=p);for(var h=ln(a),f=ln(c);f>=1<<u+5;)d=new Jt(d&&d.array.length?[d]:[],r),u+=5;var m=e._tail,g=f<h?an(e,c-1):f>h?new Jt([],r):m;if(m&&f>h&&l<a&&m.array.length){for(var v=d=on(d,r),y=u;y>5;y-=5){var b=h>>>y&o;v=v.array[b]=on(v.array[b],r)}v.array[h>>>5&o]=m}if(c<a&&(g=g&&g.removeAfter(r,0,c)),l>=f)l-=f,c-=f,u=5,d=null,g=g&&g.removeBefore(r,0,l);else if(l>i||f<h){for(p=0;d;){var w=l>>>u&o;if(w!==f>>>u&o)break;w&&(p+=(1<<u)*w),u-=5,d=d.array[w]}d&&l>i&&(d=d.removeBefore(r,u,l-p)),d&&f<h&&(d=d.removeAfter(r,u,f-p)),p&&(l-=p,c-=p)}return e.__ownerID?(e.size=c-l,e._origin=l,e._capacity=c,e._level=u,e._root=d,e._tail=g,e.__hash=void 0,e.__altered=!0,e):tn(l,c,u,d,g)}function ln(e){return e<r?0:e-1>>>5<<5}var cn,un=function(e){function t(e){return null==e?pn():ae(e)?e:pn().withMutations((function(t){var n=C(e);We(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,i)},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(Rt(),nn()))}function hn(e,t,n){var o,a,s=e._map,l=e._list,c=s.get(t),u=void 0!==c;if(n===i){if(!u)return e;l.size>=r&&l.size>=2*s.size?(o=(a=l.filter((function(e,t){return void 0!==e&&c!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(o.__ownerID=a.__ownerID=e.__ownerID)):(o=s.remove(t),a=c===l.size-1?l.pop():l.set(c,void 0))}else if(u){if(n===l.get(c)[1])return e;o=s,a=l.set(c,[t,n])}else o=s.set(t,l.size),a=l.set(l.size,[t,n]);return e.__ownerID?(e.size=o.size,e._map=o,e._list=a,e.__hash=void 0,e):dn(o,a)}un.isOrderedMap=ae,un.prototype[I]=!0,un.prototype.delete=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=c(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;We(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(d(t,n,this.size))return this;var r=p(t,this.size);if(h(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 Z(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 Z(this.toArray()).__iterator(e,t);var n=0,r=this._head;return new R((function(){if(r){var t=r.value;return r=r.next,F(e,n++,t)}return{value:void 0,done:!0}}))},t}(E);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)&&M(e)}function Cn(e,t){if(e===t)return!0;if(!v(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||b(e)!==b(t)||x(e)!==x(t)||M(e)!==M(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!S(e);if(M(e)){var r=e.entries();return t.every((function(e,t){var o=r.next().value;return o&&le(o[1],e)&&(n||le(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 a=e;e=t,t=a}var s=!0,l=t.__iterate((function(t,r){if(n?!e.has(t):o?!le(t,e.get(r,i)):!le(e.get(r,i),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(!v(e)){if(!Ze(e))return e;e=q(e)}if(b(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)&&!M(t)?t:In().withMutations((function(n){var r=e(t);We(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(C(e).keySeq())},t.intersect=function(e){return(e=_(e).toArray()).length?An.intersect.apply(t(e.pop()),e):In()},t.union=function(e){return(e=_(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 Zn(Oe(this,e))},t.prototype.sortBy=function(e,t){return Zn(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}(k);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(Rt()))}An[xn]=!0,An.delete=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(qe(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+c(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 d(e,n,this.size)?this:(e=p(e,this.size),(n=h(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 R((function(){if(i===n)return{value:void 0,done:!0};var a=o;return o+=t?-r:r,F(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}(G);function On(e,t,n){for(var r=Ge(t),o=0;o!==r.length;)if((e=Qe(e,r[o++],i))===i)return n;return e}function jn(e,t){return On(this,e,t)}function Rn(e,t){return On(e,t,i)!==i}function Fn(){We(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e}_.isIterable=v,_.isKeyed=b,_.isIndexed=x,_.isAssociative=S,_.isOrdered=M,_.Iterator=R,En(_,{toArray:function(){We(this.size);var e=new Array(this.size||0),t=b(this),n=0;return this.__iterate((function(r,o){e[n++]=t?[o,r]:r})),e},toIndexedSeq:function(){return new Ce(this)},toJS:function(){return kn(this)},toKeyedSeq:function(){return new _e(this,!0)},toMap:function(){return Et(this.toKeyedSeq())},toObject:Fn,toOrderedMap:function(){return un(this.toKeyedSeq())},toOrderedSet:function(){return Zn(b(this)?this.valueSeq():this)},toSet:function(){return zn(b(this)?this.valueSeq():this)},toSetSeq:function(){return new Ee(this)},toSeq:function(){return x(this)?this.toIndexedSeq():b(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return gn(b(this)?this.valueSeq():this)},toList:function(){return Yt(b(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,Me(this,e))},includes:function(e){return this.some((function(t){return le(t,e)}))},entries:function(){return this.__iterator(2)},every:function(e,t){We(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,De(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 We(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){We(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,Pe(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,Ae(this,!0))},slice:function(e,t){return Be(this,Te(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 l(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 Z(e._cache);var t=e.toSeq().map(Hn).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(u,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 ke(this)},get:function(e,t){return this.find((function(t,n){return le(n,e)}),void 0,t)},getIn:jn,groupBy:function(e,t){return function(e,t,n){var r=b(e),o=(M(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,i)!==i},hasIn:function(e){return Rn(this,e)},isSubset:function(e){return e="function"==typeof e.includes?e:_(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:_(e)).isSubset(this)},keyOf:function(e){return this.findKey((function(t){return le(t,e)}))},keySeq:function(){return this.toSeq().map($n).toIndexedSeq()},last:function(e){return this.toSeq().reverse().first(e)},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return je(this,e)},maxBy:function(e,t){return je(this,t,e)},min:function(e){return je(this,e?qn(e):Gn)},minBy:function(e,t){return je(this,t?qn(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,Ie(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 R((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:F(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=M(e),n=b(e),r=t?1:0;return function(e,t){return t=ce(t,3432918353),t=ce(t<<15|t>>>-15,461845907),t=ce(t<<13|t>>>-13,5),t=ce((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=ue((t=ce(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(n?t?function(e,t){r=31*r+Yn(de(e),de(t))|0}:function(e,t){r=r+Yn(de(e),de(t))|0}:t?function(e){r=31*r+de(e)|0}:function(e){r=r+de(e)|0}),r)}(this))}});var Bn=_.prototype;Bn[g]=!0,Bn[j]=Bn.values,Bn.toJSON=Bn.toArray,Bn.__toStringMapper=Je,Bn.inspect=Bn.toSource=function(){return this.toString()},Bn.chain=Bn.flatMap,Bn.contains=Bn.includes,En(C,{flip:function(){return Be(this,ze(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=C.prototype;Ln[y]=!0,Ln[j]=Bn.entries,Ln.toJSON=Fn,Ln.__toStringMapper=function(e,t){return Je(t)+": "+Je(e)},En(E,{toKeyedSeq:function(){return new _e(this,!1)},filter:function(e,t){return Be(this,De(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,Ae(this,!1))},slice:function(e,t){return Be(this,Te(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=p(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=c(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=c(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 R((function(){return(!o||a%2)&&(o=i.next()).done?o:a%2?F(n,a++,t):F(n,a++,o.value,o)}))},n}(this,e))},interleave:function(){var e=[this].concat(Ue(arguments)),t=Fe(this.toSeq(),G.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,Ie(this,e,t,!1))},zip:function(){var e=[this].concat(Ue(arguments));return Be(this,Fe(this,Wn,e))},zipAll:function(){var e=[this].concat(Ue(arguments));return Be(this,Fe(this,Wn,e,!0))},zipWith:function(e){var t=Ue(arguments);return t[0]=this,Be(this,Fe(this,e,t))}});var Vn=E.prototype;function Kn(e,t,n,r,o,i){return We(e.size),e.__iterate((function(e,i,a){o?(o=!1,n=e):n=t.call(r,n,e,i,a)}),i),n}function $n(e,t){return t}function Hn(e,t){return[t,e]}function Un(e){return function(){return!e.apply(this,arguments)}}function qn(e){return function(){return-e.apply(this,arguments)}}function Wn(){return Ue(arguments)}function Gn(e,t){return e<t?1:e>t?-1:0}function Yn(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}Vn[w]=!0,Vn[I]=!0,En(k,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),k.prototype.has=Bn.includes,k.prototype.contains=k.prototype.includes,En(W,C.prototype),En(G,E.prototype),En(Y,k.prototype);var Zn=function(e){function t(e){return null==e?er():_n(e)?e:er().withMutations((function(t){var n=k(e);We(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(C(e).keySeq())},t.prototype.toString=function(){return this.__toString("OrderedSet {","}")},t}(zn);Zn.isOrderedSet=_n;var Jn,Xn=Zn.prototype;function Qn(e,t){var n=Object.create(Xn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function er(){return Jn||(Jn=Qn(pn()))}Xn[I]=!0,Xn.zip=Vn.zip,Xn.zipWith=Vn.zipWith,Xn.__empty=er,Xn.__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=Yt().withMutations((function(e){e.setSize(a._keys.length),C(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])+": "+Je(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=D,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 te(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){qe(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}catch(e){}}nr[A]=!0,nr.delete=nr.remove,nr.deleteIn=nr.removeIn=lt,nr.getIn=jn,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 le(this._value,e)},t.prototype.slice=function(e,n){var r=this.size;return d(e,n,r)?this:new t(this._value,h(n,r)-p(e,r))},t.prototype.reverse=function(){return this},t.prototype.indexOf=function(e){return le(this._value,e)?0:-1},t.prototype.lastIndexOf=function(e){return le(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 R((function(){return o===r?{value:void 0,done:!0}:F(e,t?r-++o:o++,n._value)}))},t.prototype.equals=function(e){return e instanceof t?le(this._value,e._value):Cn(e)}}(G);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)?G:Ye(n)?W: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 b(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:()=>R});const r="3.7.7",o="function"==typeof Buffer,i="function"==typeof TextDecoder?new TextDecoder:void 0,a="function"==typeof TextEncoder?new TextEncoder:void 0,s=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),l=(e=>{let t={};return e.forEach(((e,n)=>t[e]=n)),t})(s),c=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,u=String.fromCharCode.bind(String),d="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),p=e=>e.replace(/=/g,"").replace(/[+\/]/g,(e=>"+"==e?"-":"_")),h=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),f=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+=s[t>>18&63]+s[t>>12&63]+s[t>>6&63]+s[63&t]}return a?i.slice(0,a-3)+"===".substring(a):i},m="function"==typeof btoa?e=>btoa(e):o?e=>Buffer.from(e,"binary").toString("base64"):f,g=o?e=>Buffer.from(e).toString("base64"):e=>{let t=[];for(let n=0,r=e.length;n<r;n+=4096)t.push(u.apply(null,e.subarray(n,n+4096)));return m(t.join(""))},v=(e,t=!1)=>t?p(g(e)):g(e),y=e=>{if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?u(192|t>>>6)+u(128|63&t):u(224|t>>>12&15)+u(128|t>>>6&63)+u(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return u(240|t>>>18&7)+u(128|t>>>12&63)+u(128|t>>>6&63)+u(128|63&t)},b=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,w=e=>e.replace(b,y),x=o?e=>Buffer.from(e,"utf8").toString("base64"):a?e=>g(a.encode(e)):e=>m(w(e)),S=(e,t=!1)=>t?p(x(e)):x(e),_=e=>S(e,!0),C=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,E=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 u(55296+(t>>>10))+u(56320+(1023&t));case 3:return u((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return u((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},k=e=>e.replace(C,E),z=e=>{if(e=e.replace(/\s+/g,""),!c.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=l[e.charAt(i++)]<<18|l[e.charAt(i++)]<<12|(n=l[e.charAt(i++)])<<6|(r=l[e.charAt(i++)]),o+=64===n?u(t>>16&255):64===r?u(t>>16&255,t>>8&255):u(t>>16&255,t>>8&255,255&t);return o},P="function"==typeof atob?e=>atob(h(e)):o?e=>Buffer.from(e,"base64").toString("binary"):z,A=o?e=>d(Buffer.from(e,"base64")):e=>d(P(e).split("").map((e=>e.charCodeAt(0)))),D=e=>A(I(e)),T=o?e=>Buffer.from(e,"base64").toString("utf8"):i?e=>i.decode(A(e)):e=>k(P(e)),I=e=>h(e.replace(/[-_]/g,(e=>"-"==e?"+":"/"))),M=e=>T(I(e)),N=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),O=function(){const e=(e,t)=>Object.defineProperty(String.prototype,e,N(t));e("fromBase64",(function(){return M(this)})),e("toBase64",(function(e){return S(this,e)})),e("toBase64URI",(function(){return S(this,!0)})),e("toBase64URL",(function(){return S(this,!0)})),e("toUint8Array",(function(){return D(this)}))},j=function(){const e=(e,t)=>Object.defineProperty(Uint8Array.prototype,e,N(t));e("toBase64",(function(e){return v(this,e)})),e("toBase64URI",(function(){return v(this,!0)})),e("toBase64URL",(function(){return v(this,!0)}))},R={version:r,VERSION:"3.7.7",atob:P,atobPolyfill:z,btoa:m,btoaPolyfill:f,fromBase64:M,toBase64:S,encode:S,encodeURI:_,encodeURL:_,utob:w,btou:k,decode:M,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:v,toUint8Array:D,extendString:O,extendUint8Array:j,extendBuiltins:()=>{O(),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){return c=e,s=setTimeout(x,t),u?y(e):a}function w(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=i}function x(){var e=f();if(w(e))return S(e);s=setTimeout(x,function(e){var n=t-(e-l);return d?h(n,i-(e-c)):n}(e))}function S(e){return s=void 0,v&&r?y(e):(r=o=void 0,a)}function _(){var e=f(),n=w(e);if(r=arguments,o=this,l=e,n){if(void 0===s)return b(l);if(d)return s=setTimeout(x,t),y(l)}return void 0===s&&(s=setTimeout(x,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),_.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=o=s=void 0},_.flush=function(){return void 0===s?a:S(f())},_}},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,j=function(){try{return O&&O.binding("util")}catch(e){}}(),R=j&&j.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,U=Array.prototype,q=Function.prototype,W=Object.prototype,G=I["__core-js_shared__"],Y=(K=/[^.]+$/.exec(G&&G.keys&&G.keys.IE_PROTO||""))?"Symbol(src)_1."+K:"",Z=q.toString,J=W.hasOwnProperty,X=W.toString,Q=RegExp("^"+Z.call(J).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ee=I.Symbol,te=I.Uint8Array,ne=W.propertyIsEnumerable,re=U.splice,oe=($=Object.keys,H=Object,function(e){return $(H(e))}),ie=Re(I,"DataView"),ae=Re(I,"Map"),se=Re(I,"Promise"),le=Re(I,"Set"),ce=Re(I,"WeakMap"),ue=Re(Object,"create"),de=Ue(ie),pe=Ue(ae),he=Ue(se),fe=Ue(le),me=Ue(ce),ge=ee?ee.prototype:void 0,ve=ge?ge.valueOf:void 0,ye=ge?ge.toString:void 0;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.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function xe(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 Se(e){var t=-1,n=e?e.length:0;for(this.__data__=new xe;++t<n;)this.add(e[t])}function _e(e){this.__data__=new we(e)}function Ce(e,t){var n=Ye(e)||Ge(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&&!J.call(e,i)||o&&("length"==i||Be(i,r))||n.push(i);return n}function Ee(e,t){for(var n=e.length;n--;)if(We(e[n][0],t))return n;return-1}be.prototype.clear=function(){this.__data__=ue?ue(null):{}},be.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},be.prototype.get=function(e){var t=this.__data__;if(ue){var n=t[e];return n===r?void 0:n}return J.call(t,e)?t[e]:void 0},be.prototype.has=function(e){var t=this.__data__;return ue?void 0!==t[e]:J.call(t,e)},be.prototype.set=function(e,t){return this.__data__[e]=ue&&void 0===t?r:t,this},we.prototype.clear=function(){this.__data__=[]},we.prototype.delete=function(e){var t=this.__data__,n=Ee(t,e);return!(n<0)&&(n==t.length-1?t.pop():re.call(t,n,1),!0)},we.prototype.get=function(e){var t=this.__data__,n=Ee(t,e);return n<0?void 0:t[n][1]},we.prototype.has=function(e){return Ee(this.__data__,e)>-1},we.prototype.set=function(e,t){var n=this.__data__,r=Ee(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},xe.prototype.clear=function(){this.__data__={hash:new be,map:new(ae||we),string:new be}},xe.prototype.delete=function(e){return je(this,e).delete(e)},xe.prototype.get=function(e){return je(this,e).get(e)},xe.prototype.has=function(e){return je(this,e).has(e)},xe.prototype.set=function(e,t){return je(this,e).set(e,t),this},Se.prototype.add=Se.prototype.push=function(e){return this.__data__.set(e,r),this},Se.prototype.has=function(e){return this.__data__.has(e)},_e.prototype.clear=function(){this.__data__=new we},_e.prototype.delete=function(e){return this.__data__.delete(e)},_e.prototype.get=function(e){return this.__data__.get(e)},_e.prototype.has=function(e){return this.__data__.has(e)},_e.prototype.set=function(e,t){var n=this.__data__;if(n instanceof we){var r=n.__data__;if(!ae||r.length<199)return r.push([e,t]),this;n=this.__data__=new xe(r)}return n.set(e,t),this};var ke,ze=function(e,t,n){for(var r=-1,o=Object(e),i=n(e),a=i.length;a--;){var s=i[ke?a:++r];if(!1===t(o[s],s,o))break}return e};function Pe(e,t){for(var n=0,r=(t=Le(t,e)?[t]:Ne(t)).length;null!=e&&n<r;)e=e[He(t[n++])];return n&&n==r?e:void 0}function Ae(e,t){return null!=e&&t in Object(e)}function De(e,t,n,r,o){return e===t||(null==e||null==t||!Qe(e)&&!et(t)?e!=e&&t!=t:function(e,t,n,r,o,u){var f=Ye(e),b=Ye(t),S=a,_=a;f||(S=(S=Fe(e))==i?h:S);b||(_=(_=Fe(t))==i?h:_);var C=S==h&&!B(e),E=_==h&&!B(t),k=S==_;if(k&&!C)return u||(u=new _e),f||nt(e)?Oe(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 te(e),new te(t)));case s:case l:case p:return We(+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=Oe(u(e),u(t),r,o,i,a);return a.delete(e),b;case y:if(ve)return ve.call(e)==ve.call(t)}return!1}(e,t,S,n,r,o,u);if(!(2&o)){var z=C&&J.call(e,"__wrapped__"),P=E&&J.call(t,"__wrapped__");if(z||P){var A=z?e.value():e,D=P?t.value():t;return u||(u=new _e),n(A,D,r,o,u)}}if(!k)return!1;return u||(u=new _e),function(e,t,n,r,o,i){var a=2&o,s=rt(e),l=s.length,c=rt(t).length;if(l!=c&&!a)return!1;var u=l;for(;u--;){var d=s[u];if(!(a?d in t:J.call(t,d)))return!1}var p=i.get(e);if(p&&i.get(t))return p==t;var h=!0;i.set(e,t),i.set(t,e);var f=a;for(;++u<l;){var m=e[d=s[u]],g=t[d];if(r)var v=a?r(g,m,d,t,e,i):r(m,g,d,e,t,i);if(!(void 0===v?m===g||n(m,g,r,o,i):v)){h=!1;break}f||(f="constructor"==d)}if(h&&!f){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(h=!1)}return i.delete(e),i.delete(t),h}(e,t,n,r,o,u)}(e,t,De,n,r,o))}function Te(e){return!(!Qe(e)||function(e){return!!Y&&Y in e}(e))&&(Je(e)||B(e)?Q:z).test(Ue(e))}function Ie(e){return"function"==typeof e?e:null==e?ot:"object"==typeof e?Ye(e)?function(e,t){if(Le(e)&&Ve(t))return Ke(He(e),t);return function(n){var r=function(e,t,n){var r=null==e?void 0:Pe(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=Le(t,e)?[t]:Ne(t);var r,o=-1,i=t.length;for(;++o<i;){var a=He(t[o]);if(!(r=null!=e&&n(e,a)))break;e=e[a]}if(r)return r;return!!(i=e?e.length:0)&&Xe(i)&&Be(a,i)&&(Ye(e)||Ge(e))}(e,t,Ae)}(n,e):De(t,r,void 0,3)}}(e[0],e[1]):function(e){var t=function(e){var t=rt(e),n=t.length;for(;n--;){var r=t[n],o=e[r];t[n]=[r,o,Ve(o)]}return t}(e);if(1==t.length&&t[0][2])return Ke(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 _e;if(r)var p=r(c,u,l,e,t,d);if(!(void 0===p?De(u,c,r,3,d):p))return!1}}return!0}(n,e,t)}}(e):Le(t=e)?(n=He(t),function(e){return null==e?void 0:e[n]}):function(e){return function(t){return Pe(t,e)}}(t);var t,n}function Me(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||W,t!==r)return oe(e);var t,n,r,o=[];for(var i in Object(e))J.call(e,i)&&"constructor"!=i&&o.push(i);return o}function Ne(e){return Ye(e)?e:$e(e)}function Oe(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 Se: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 je(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 Re(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Te(n)?n:void 0}var Fe=function(e){return X.call(e)};function Be(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||P.test(e))&&e>-1&&e%1==0&&e<t}function Le(e,t){if(Ye(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!tt(e))||(_.test(e)||!S.test(e)||null!=t&&e in Object(t))}function Ve(e){return e==e&&!Qe(e)}function Ke(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}(ie&&Fe(new ie(new ArrayBuffer(1)))!=x||ae&&Fe(new ae)!=d||se&&Fe(se.resolve())!=f||le&&Fe(new le)!=g||ce&&Fe(new ce)!=b)&&(Fe=function(e){var t=X.call(e),n=t==h?e.constructor:void 0,r=n?Ue(n):void 0;if(r)switch(r){case de:return x;case pe:return d;case he:return f;case fe:return g;case me:return b}return t});var $e=qe((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(tt(e))return ye?ye.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 He(e){if("string"==typeof e||tt(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ue(e){if(null!=e){try{return Z.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function qe(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(qe.Cache||xe),n}function We(e,t){return e===t||e!=e&&t!=t}function Ge(e){return function(e){return et(e)&&Ze(e)}(e)&&J.call(e,"callee")&&(!ne.call(e,"callee")||X.call(e)==i)}qe.Cache=xe;var Ye=Array.isArray;function Ze(e){return null!=e&&Xe(e.length)&&!Je(e)}function Je(e){var t=Qe(e)?X.call(e):"";return t==u||"[object GeneratorFunction]"==t}function Xe(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function Qe(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function et(e){return!!e&&"object"==typeof e}function tt(e){return"symbol"==typeof e||et(e)&&X.call(e)==y}var nt=R?function(e){return function(t){return e(t)}}(R):function(e){return et(e)&&Xe(e.length)&&!!A[X.call(e)]};function rt(e){return Ze(e)?Ce(e):Me(e)}function ot(e){return e}e.exports=function(e,t){var n={};return t=Ie(t),function(e,t){e&&ze(e,t,rt)}(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}},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}},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,j=4&n;if(A&&(M=T?A(t,D,T,I):A(t)),void 0!==M)return M;if(!x(t))return t;var R=y(t);if(R){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=R?void 0:(j?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)}}},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==-Infinity?"-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))}},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}}},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}},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))}},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}},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==-Infinity?"-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}},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){return f=e,p=setTimeout(x,t),m?y(e):d}function w(e){var n=e-h;return void 0===h||n>=t||n<0||g&&e-f>=u}function x(){var e=o();if(w(e))return S(e);p=setTimeout(x,function(e){var n=t-(e-h);return g?s(n,u-(e-f)):n}(e))}function S(e){return p=void 0,v&&l?y(e):(l=c=void 0,d)}function _(){var e=o(),n=w(e);if(l=arguments,c=this,h=e,n){if(void 0===p)return b(h);if(g)return clearTimeout(p),p=setTimeout(x,t),y(h)}return void 0===p&&(p=setTimeout(x,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),_.cancel=function(){void 0!==p&&clearTimeout(p),f=0,l=h=c=p=void 0},_.flush=function(){return void 0===p?d:S(o())},_}},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}},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},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]",j="[object Float32Array]",R="[object Float64Array]",F="[object Int8Array]",B="[object Int16Array]",L="[object Int32Array]",V="[object Uint8Array]",K="[object Uint8ClampedArray]",$="[object Uint16Array]",H="[object Uint32Array]",U=/\b__p \+= '';/g,q=/\b(__p \+=) '' \+/g,W=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,Y=/[&<>"']/g,Z=RegExp(G.source),J=RegExp(Y.source),X=/<%-([\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="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ee="\\u2700-\\u27bf",ke="a-z\\xdf-\\xf6\\xf8-\\xff",ze="A-Z\\xc0-\\xd6\\xd8-\\xde",Pe="\\ufe0e\\ufe0f",Ae="\\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",De="['’]",Te="[\\ud800-\\udfff]",Ie="["+Ae+"]",Me="["+Ce+"]",Ne="\\d+",Oe="[\\u2700-\\u27bf]",je="["+ke+"]",Re="[^\\ud800-\\udfff"+Ae+Ne+Ee+ke+ze+"]",Fe="\\ud83c[\\udffb-\\udfff]",Be="[^\\ud800-\\udfff]",Le="(?:\\ud83c[\\udde6-\\uddff]){2}",Ve="[\\ud800-\\udbff][\\udc00-\\udfff]",Ke="["+ze+"]",$e="(?:"+je+"|"+Re+")",He="(?:"+Ke+"|"+Re+")",Ue="(?:['’](?:d|ll|m|re|s|t|ve))?",qe="(?:['’](?:D|LL|M|RE|S|T|VE))?",We="(?:"+Me+"|"+Fe+")"+"?",Ge="[\\ufe0e\\ufe0f]?",Ye=Ge+We+("(?:\\u200d(?:"+[Be,Le,Ve].join("|")+")"+Ge+We+")*"),Ze="(?:"+[Oe,Le,Ve].join("|")+")"+Ye,Je="(?:"+[Be+Me+"?",Me,Le,Ve,Te].join("|")+")",Xe=RegExp(De,"g"),Qe=RegExp(Me,"g"),et=RegExp(Fe+"(?="+Fe+")|"+Je+Ye,"g"),tt=RegExp([Ke+"?"+je+"+"+Ue+"(?="+[Ie,Ke,"$"].join("|")+")",He+"+"+qe+"(?="+[Ie,Ke+$e,"$"].join("|")+")",Ke+"?"+$e+"+"+Ue,Ke+"+"+qe,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ne,Ze].join("|"),"g"),nt=RegExp("[\\u200d\\ud800-\\udfff"+Ce+Pe+"]"),rt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ot=["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"],it=-1,at={};at[j]=at[R]=at[F]=at[B]=at[L]=at[V]=at[K]=at[$]=at[H]=!0,at[y]=at[b]=at[N]=at[w]=at[O]=at[x]=at[S]=at[_]=at[E]=at[k]=at[z]=at[A]=at[D]=at[T]=at[M]=!1;var st={};st[y]=st[b]=st[N]=st[O]=st[w]=st[x]=st[j]=st[R]=st[F]=st[B]=st[L]=st[E]=st[k]=st[z]=st[A]=st[D]=st[T]=st[I]=st[V]=st[K]=st[$]=st[H]=!0,st[S]=st[_]=st[M]=!1;var lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ct=parseFloat,ut=parseInt,dt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,pt="object"==typeof self&&self&&self.Object===Object&&self,ht=dt||pt||Function("return this")(),ft=t&&!t.nodeType&&t,mt=ft&&e&&!e.nodeType&&e,gt=mt&&mt.exports===ft,vt=gt&&dt.process,yt=function(){try{var e=mt&&mt.require&&mt.require("util").types;return e||vt&&vt.binding&&vt.binding("util")}catch(e){}}(),bt=yt&&yt.isArrayBuffer,wt=yt&&yt.isDate,xt=yt&&yt.isMap,St=yt&&yt.isRegExp,_t=yt&&yt.isSet,Ct=yt&&yt.isTypedArray;function Et(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 kt(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 zt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Pt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function At(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 Dt(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 Tt(e,t){return!!(null==e?0:e.length)&&Vt(e,t,0)>-1}function It(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 Mt(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 Nt(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function Ot(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 jt(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 Rt(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 Ft=Ut("length");function Bt(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function Lt(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 Vt(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):Lt(e,$t,n)}function Kt(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function $t(e){return e!=e}function Ht(e,t){var n=null==e?0:e.length;return n?Gt(e,t)/n:m}function Ut(e){return function(t){return null==t?o:t[e]}}function qt(e){return function(t){return null==e?o:e[t]}}function Wt(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function Gt(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 Yt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Zt(e){return e?e.slice(0,mn(e)+1).replace(ae,""):e}function Jt(e){return function(t){return e(t)}}function Xt(e,t){return Mt(t,(function(t){return e[t]}))}function Qt(e,t){return e.has(t)}function en(e,t){for(var n=-1,r=e.length;++n<r&&Vt(t,e[n],0)>-1;);return n}function tn(e,t){for(var n=e.length;n--&&Vt(t,e[n],0)>-1;);return n}function nn(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var rn=qt({À:"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"}),on=qt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function an(e){return"\\"+lt[e]}function sn(e){return nt.test(e)}function ln(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function cn(e,t){return function(n){return e(t(n))}}function un(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 dn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function pn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function hn(e){return sn(e)?function(e){var t=et.lastIndex=0;for(;et.test(e);)++t;return t}(e):Ft(e)}function fn(e){return sn(e)?function(e){return e.match(et)||[]}(e):function(e){return e.split("")}(e)}function mn(e){for(var t=e.length;t--&&se.test(e.charAt(t)););return t}var gn=qt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var vn=function e(t){var n,r=(t=null==t?ht:vn.defaults(ht.Object(),t,vn.pick(ht,ot))).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,je=Me.hasOwnProperty,Re=0,Fe=(n=/[^.]+$/.exec(Ne&&Ne.keys&&Ne.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Be=Me.toString,Le=Oe.call(ze),Ve=ht._,Ke=Pe("^"+Oe.call(je).replace(oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$e=gt?t.Buffer:o,He=t.Symbol,Ue=t.Uint8Array,qe=$e?$e.allocUnsafe:o,We=cn(ze.getPrototypeOf,ze),Ge=ze.create,Ye=Me.propertyIsEnumerable,Ze=Te.splice,Je=He?He.isConcatSpreadable:o,et=He?He.iterator:o,nt=He?He.toStringTag:o,lt=function(){try{var e=fi(ze,"defineProperty");return e({},"",{}),e}catch(e){}}(),dt=t.clearTimeout!==ht.clearTimeout&&t.clearTimeout,pt=se&&se.now!==ht.Date.now&&se.now,ft=t.setTimeout!==ht.setTimeout&&t.setTimeout,mt=ke.ceil,vt=ke.floor,yt=ze.getOwnPropertySymbols,Ft=$e?$e.isBuffer:o,qt=t.isFinite,yn=Te.join,bn=cn(ze.keys,ze),wn=ke.max,xn=ke.min,Sn=se.now,_n=t.parseInt,Cn=ke.random,En=Te.reverse,kn=fi(t,"DataView"),zn=fi(t,"Map"),Pn=fi(t,"Promise"),An=fi(t,"Set"),Dn=fi(t,"WeakMap"),Tn=fi(ze,"create"),In=Dn&&new Dn,Mn={},Nn=Vi(kn),On=Vi(zn),jn=Vi(Pn),Rn=Vi(An),Fn=Vi(Dn),Bn=He?He.prototype:o,Ln=Bn?Bn.valueOf:o,Vn=Bn?Bn.toString:o;function Kn(e){if(os(e)&&!Wa(e)&&!(e instanceof qn)){if(e instanceof Un)return e;if(je.call(e,"__wrapped__"))return Ki(e)}return new Un(e)}var $n=function(){function e(){}return function(t){if(!rs(t))return{};if(Ge)return Ge(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function Hn(){}function Un(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function qn(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 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 Yn(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 Yn;++t<n;)this.add(e[t])}function Jn(e){var t=this.__data__=new Gn(e);this.size=t.size}function Xn(e,t){var n=Wa(e),r=!n&&qa(e),o=!n&&!r&&Ja(e),i=!n&&!r&&!o&&ps(e),a=n||r||o||i,s=a?Yt(e.length,Ae):[],l=s.length;for(var c in e)!t&&!je.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||xi(c,l))||s.push(c);return s}function Qn(e){var t=e.length;return t?e[Zr(0,t-1)]:o}function er(e,t){return Fi(Io(e),cr(t,0,e.length))}function tr(e){return Fi(Io(e))}function nr(e,t,n){(n!==o&&!$a(e[t],n)||n===o&&!(t in e))&&sr(e,t,n)}function rr(e,t,n){var r=e[t];je.call(e,t)&&$a(r,n)&&(n!==o||t in e)||sr(e,t,n)}function or(e,t){for(var n=e.length;n--;)if($a(e[n][0],t))return n;return-1}function ir(e,t,n,r){return fr(e,(function(e,o,i){t(r,e,n(e),i)})),r}function ar(e,t){return e&&Mo(t,Ns(t),e)}function sr(e,t,n){"__proto__"==t&&lt?lt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function lr(e,t){for(var n=-1,i=t.length,a=r(i),s=null==e;++n<i;)a[n]=s?o:As(e,t[n]);return a}function cr(e,t,n){return e==e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function ur(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(!rs(e))return e;var d=Wa(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&je.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return Io(e,s)}else{var p=vi(e),h=p==_||p==C;if(Ja(e))return ko(e,l);if(p==z||p==y||h&&!i){if(s=c||h?{}:bi(e),!l)return c?function(e,t){return Mo(e,gi(e),t)}(e,function(e,t){return e&&Mo(t,Os(t),e)}(s,e)):function(e,t){return Mo(e,mi(e),t)}(e,ar(s,e))}else{if(!st[p])return i?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case N:return zo(e);case w:case x:return new r(+e);case O:return function(e,t){var n=t?zo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case j:case R:case F:case B:case L:case V:case K:case $:case H:return Po(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,Ln?ze(Ln.call(o)):{}}var o}(e,p,l)}}a||(a=new Jn);var f=a.get(e);if(f)return f;a.set(e,s),cs(e)?e.forEach((function(r){s.add(ur(r,t,n,r,e,a))})):is(e)&&e.forEach((function(r,o){s.set(o,ur(r,t,n,o,e,a))}));var m=d?o:(u?c?si:ai:c?Os:Ns)(e);return zt(m||e,(function(r,o){m&&(r=e[o=r]),rr(s,o,ur(r,t,n,o,e,a))})),s}function dr(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 pr(e,t,n){if("function"!=typeof e)throw new De(i);return Ni((function(){e.apply(o,n)}),t)}function hr(e,t,n,r){var o=-1,i=Tt,a=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=Mt(t,Jt(n))),r?(i=It,a=!1):t.length>=200&&(i=Qt,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}Kn.templateSettings={escape:X,evaluate:Q,interpolate:ee,variable:"",imports:{_:Kn}},Kn.prototype=Hn.prototype,Kn.prototype.constructor=Kn,Un.prototype=$n(Hn.prototype),Un.prototype.constructor=Un,qn.prototype=$n(Hn.prototype),qn.prototype.constructor=qn,Wn.prototype.clear=function(){this.__data__=Tn?Tn(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(Tn){var n=t[e];return n===a?o:n}return je.call(t,e)?t[e]:o},Wn.prototype.has=function(e){var t=this.__data__;return Tn?t[e]!==o:je.call(t,e)},Wn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Tn&&t===o?a:t,this},Gn.prototype.clear=function(){this.__data__=[],this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=or(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ze.call(t,n,1),--this.size,!0)},Gn.prototype.get=function(e){var t=this.__data__,n=or(t,e);return n<0?o:t[n][1]},Gn.prototype.has=function(e){return or(this.__data__,e)>-1},Gn.prototype.set=function(e,t){var n=this.__data__,r=or(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Yn.prototype.clear=function(){this.size=0,this.__data__={hash:new Wn,map:new(zn||Gn),string:new Wn}},Yn.prototype.delete=function(e){var t=pi(this,e).delete(e);return this.size-=t?1:0,t},Yn.prototype.get=function(e){return pi(this,e).get(e)},Yn.prototype.has=function(e){return pi(this,e).has(e)},Yn.prototype.set=function(e,t){var n=pi(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)},Jn.prototype.clear=function(){this.__data__=new Gn,this.size=0},Jn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Jn.prototype.get=function(e){return this.__data__.get(e)},Jn.prototype.has=function(e){return this.__data__.has(e)},Jn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Gn){var r=n.__data__;if(!zn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Yn(r)}return n.set(e,t),this.size=n.size,this};var fr=jo(Sr),mr=jo(_r,!0);function gr(e,t){var n=!0;return fr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function vr(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&&!ds(s):n(s,l)))var l=s,c=a}return c}function yr(e,t){var n=[];return fr(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function br(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=wi),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?br(s,t-1,n,r,o):Nt(o,s):r||(o[o.length]=s)}return o}var wr=Ro(),xr=Ro(!0);function Sr(e,t){return e&&wr(e,t,Ns)}function _r(e,t){return e&&xr(e,t,Ns)}function Cr(e,t){return Dt(t,(function(t){return es(e[t])}))}function Er(e,t){for(var n=0,r=(t=So(t,e)).length;null!=e&&n<r;)e=e[Li(t[n++])];return n&&n==r?e:o}function kr(e,t,n){var r=t(e);return Wa(e)?r:Nt(r,n(e))}function zr(e){return null==e?e===o?"[object Undefined]":"[object Null]":nt&&nt in ze(e)?function(e){var t=je.call(e,nt),n=e[nt];try{e[nt]=o;var r=!0}catch(e){}var i=Be.call(e);r&&(t?e[nt]=n:delete e[nt]);return i}(e):function(e){return Be.call(e)}(e)}function Pr(e,t){return e>t}function Ar(e,t){return null!=e&&je.call(e,t)}function Dr(e,t){return null!=e&&t in ze(e)}function Tr(e,t,n){for(var i=n?It:Tt,a=e[0].length,s=e.length,l=s,c=r(s),u=1/0,d=[];l--;){var p=e[l];l&&t&&(p=Mt(p,Jt(t))),u=xn(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?Qt(f,g):i(d,g,n))){for(l=s;--l;){var v=c[l];if(!(v?Qt(v,g):i(e[l],g,n)))continue e}f&&f.push(g),d.push(m)}}return d}function Ir(e,t,n){var r=null==(e=Di(e,t=So(t,e)))?e:e[Li(Qi(t))];return null==r?o:Et(r,e,n)}function Mr(e){return os(e)&&zr(e)==y}function Nr(e,t,n,r,i){return e===t||(null==e||null==t||!os(e)&&!os(t)?e!=e&&t!=t:function(e,t,n,r,i,a){var s=Wa(e),l=Wa(t),c=s?b:vi(e),u=l?b:vi(t),d=(c=c==y?z:c)==z,p=(u=u==y?z:u)==z,h=c==u;if(h&&Ja(e)){if(!Ja(t))return!1;s=!0,d=!1}if(h&&!d)return a||(a=new Jn),s||ps(e)?oi(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 $a(+e,+t);case S:return e.name==t.name&&e.message==t.message;case A:case T:return e==t+"";case E:var s=ln;case D:var l=1&r;if(s||(s=dn),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=oi(s(e),s(t),r,o,i,a);return a.delete(e),u;case I:if(Ln)return Ln.call(e)==Ln.call(t)}return!1}(e,t,c,n,r,i,a);if(!(1&n)){var f=d&&je.call(e,"__wrapped__"),m=p&&je.call(t,"__wrapped__");if(f||m){var g=f?e.value():e,v=m?t.value():t;return a||(a=new Jn),i(g,v,n,r,a)}}if(!h)return!1;return a||(a=new Jn),function(e,t,n,r,i,a){var s=1&n,l=ai(e),c=l.length,u=ai(t).length;if(c!=u&&!s)return!1;var d=c;for(;d--;){var p=l[d];if(!(s?p in t:je.call(t,p)))return!1}var h=a.get(e),f=a.get(t);if(h&&f)return h==t&&f==e;var m=!0;a.set(e,t),a.set(t,e);var g=s;for(;++d<c;){var v=e[p=l[d]],y=t[p];if(r)var b=s?r(y,v,p,t,e,a):r(v,y,p,e,t,a);if(!(b===o?v===y||i(v,y,n,r,a):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 a.delete(e),a.delete(t),m}(e,t,n,r,i,a)}(e,t,n,r,Nr,i))}function Or(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 Jn;if(r)var h=r(u,d,c,e,t,p);if(!(h===o?Nr(d,u,3,r,p):h))return!1}}return!0}function jr(e){return!(!rs(e)||(t=e,Fe&&Fe in t))&&(es(e)?Ke:ye).test(Vi(e));var t}function Rr(e){return"function"==typeof e?e:null==e?al:"object"==typeof e?Wa(e)?$r(e[0],e[1]):Kr(e):ml(e)}function Fr(e){if(!ki(e))return bn(e);var t=[];for(var n in ze(e))je.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Br(e){if(!rs(e))return function(e){var t=[];if(null!=e)for(var n in ze(e))t.push(n);return t}(e);var t=ki(e),n=[];for(var r in e)("constructor"!=r||!t&&je.call(e,r))&&n.push(r);return n}function Lr(e,t){return e<t}function Vr(e,t){var n=-1,o=Ya(e)?r(e.length):[];return fr(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}function Kr(e){var t=hi(e);return 1==t.length&&t[0][2]?Pi(t[0][0],t[0][1]):function(n){return n===e||Or(n,e,t)}}function $r(e,t){return _i(e)&&zi(t)?Pi(Li(e),t):function(n){var r=As(n,e);return r===o&&r===t?Ds(n,e):Nr(t,r,3)}}function Hr(e,t,n,r,i){e!==t&&wr(t,(function(a,s){if(i||(i=new Jn),rs(a))!function(e,t,n,r,i,a,s){var l=Ii(e,n),c=Ii(t,n),u=s.get(c);if(u)return void nr(e,n,u);var d=a?a(l,c,n+"",e,t,s):o,p=d===o;if(p){var h=Wa(c),f=!h&&Ja(c),m=!h&&!f&&ps(c);d=c,h||f||m?Wa(l)?d=l:Za(l)?d=Io(l):f?(p=!1,d=ko(c,!0)):m?(p=!1,d=Po(c,!0)):d=[]:ss(c)||qa(c)?(d=l,qa(l)?d=ws(l):rs(l)&&!es(l)||(d=bi(c))):p=!1}p&&(s.set(c,d),i(d,c,r,a,s),s.delete(c));nr(e,n,d)}(e,t,s,n,Hr,r,i);else{var l=r?r(Ii(e,s),a,s+"",e,t,i):o;l===o&&(l=a),nr(e,s,l)}}),Os)}function Ur(e,t){var n=e.length;if(n)return xi(t+=t<0?n:0,n)?e[t]:o}function qr(e,t,n){t=t.length?Mt(t,(function(e){return Wa(e)?function(t){return Er(t,1===e.length?e[0]:e)}:e})):[al];var r=-1;t=Mt(t,Jt(di()));var o=Vr(e,(function(e,n,o){var i=Mt(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=Ao(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=Er(e,a);n(s,a)&&to(i,So(a,e),s)}return i}function Gr(e,t,n,r){var o=r?Kt:Vt,i=-1,a=t.length,s=e;for(e===t&&(t=Io(t)),n&&(s=Mt(e,Jt(n)));++i<a;)for(var l=0,c=t[i],u=n?n(c):c;(l=o(s,u,l,r))>-1;)s!==e&&Ze.call(s,l,1),Ze.call(e,l,1);return e}function Yr(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;xi(o)?Ze.call(e,o,1):fo(e,o)}}return e}function Zr(e,t){return e+vt(Cn()*(t-e+1))}function Jr(e,t){var n="";if(!e||t<1||t>f)return n;do{t%2&&(n+=e),(t=vt(t/2))&&(e+=e)}while(t);return n}function Xr(e,t){return Oi(Ai(e,t,al),e+"")}function Qr(e){return Qn($s(e))}function eo(e,t){var n=$s(e);return Fi(n,cr(t,0,n.length))}function to(e,t,n,r){if(!rs(e))return e;for(var i=-1,a=(t=So(t,e)).length,s=a-1,l=e;null!=l&&++i<a;){var c=Li(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=rs(d)?d:xi(t[i+1])?[]:{})}rr(l,c,u),l=l[c]}return e}var no=In?function(e,t){return In.set(e,t),e}:al,ro=lt?function(e,t){return lt(e,"toString",{configurable:!0,enumerable:!1,value:rl(t),writable:!0})}:al;function oo(e){return Fi($s(e))}function io(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 ao(e,t){var n;return fr(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function so(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&&!ds(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return lo(e,t,al,n)}function lo(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=ds(t),u=t===o;i<a;){var d=vt((i+a)/2),p=n(e[d]),h=p!==o,f=null===p,m=p==p,g=ds(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 xn(a,4294967294)}function co(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||!$a(s,l)){var l=s;i[o++]=0===a?0:a}}return i}function uo(e){return"number"==typeof e?e:ds(e)?m:+e}function po(e){if("string"==typeof e)return e;if(Wa(e))return Mt(e,po)+"";if(ds(e))return Vn?Vn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ho(e,t,n){var r=-1,o=Tt,i=e.length,a=!0,s=[],l=s;if(n)a=!1,o=It;else if(i>=200){var c=t?null:Xo(e);if(c)return dn(c);a=!1,o=Qt,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 fo(e,t){return null==(e=Di(e,t=So(t,e)))||delete e[Li(Qi(t))]}function mo(e,t,n,r){return to(e,t,n(Er(e,t)),r)}function go(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?io(e,r?0:i,r?i+1:o):io(e,r?i+1:0,r?o:i)}function vo(e,t){var n=e;return n instanceof qn&&(n=n.value()),Ot(t,(function(e,t){return t.func.apply(t.thisArg,Nt([e],t.args))}),n)}function yo(e,t,n){var o=e.length;if(o<2)return o?ho(e[0]):[];for(var i=-1,a=r(o);++i<o;)for(var s=e[i],l=-1;++l<o;)l!=i&&(a[i]=hr(a[i]||s,e[l],t,n));return ho(br(a,1),t,n)}function bo(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 wo(e){return Za(e)?e:[]}function xo(e){return"function"==typeof e?e:al}function So(e,t){return Wa(e)?e:_i(e,t)?[e]:Bi(xs(e))}var _o=Xr;function Co(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:io(e,t,n)}var Eo=dt||function(e){return ht.clearTimeout(e)};function ko(e,t){if(t)return e.slice();var n=e.length,r=qe?qe(n):new e.constructor(n);return e.copy(r),r}function zo(e){var t=new e.constructor(e.byteLength);return new Ue(t).set(new Ue(e)),t}function Po(e,t){var n=t?zo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ao(e,t){if(e!==t){var n=e!==o,r=null===e,i=e==e,a=ds(e),s=t!==o,l=null===t,c=t==t,u=ds(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 Do(e,t,n,o){for(var i=-1,a=e.length,s=n.length,l=-1,c=t.length,u=wn(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 To(e,t,n,o){for(var i=-1,a=e.length,s=-1,l=n.length,c=-1,u=t.length,d=wn(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 Io(e,t){var n=-1,o=e.length;for(t||(t=r(o));++n<o;)t[n]=e[n];return t}function Mo(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?sr(n,l,c):rr(n,l,c)}return n}function No(e,t){return function(n,r){var o=Wa(n)?kt:ir,i=t?t():{};return o(n,e,di(r,2),i)}}function Oo(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&&Si(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 jo(e,t){return function(n,r){if(null==n)return n;if(!Ya(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 Fo(e){return function(t){var n=sn(t=xs(t))?fn(t):o,r=n?n[0]:t.charAt(0),i=n?Co(n,1).join(""):t.slice(1);return r[e]()+i}}function Bo(e){return function(t){return Ot(el(qs(t).replace(Xe,"")),e,"")}}function Lo(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=$n(e.prototype),r=e.apply(n,t);return rs(r)?r:n}}function Vo(e){return function(t,n,r){var i=ze(t);if(!Ya(t)){var a=di(n,3);t=Ns(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 Ko(e){return ii((function(t){var n=t.length,r=n,a=Un.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new De(i);if(a&&!l&&"wrapper"==ci(s))var l=new Un([],!0)}for(r=l?r:n;++r<n;){var c=ci(s=t[r]),u="wrapper"==c?li(s):o;l=u&&Ci(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?l[ci(u[0])].apply(l,u[3]):1==s.length&&Ci(s)?l[c]():l.thru(s)}return function(){var e=arguments,r=e[0];if(l&&1==e.length&&Wa(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 $o(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:Lo(e);return function o(){for(var d=arguments.length,b=r(d),w=d;w--;)b[w]=arguments[w];if(g)var x=ui(o),S=nn(b,x);if(i&&(b=Do(b,i,a,g)),s&&(b=To(b,s,l,g)),d-=S,g&&d<p){var _=un(b,x);return Zo(e,t,$o,o.placeholder,n,b,_,c,u,p-d)}var C=f?n:this,E=m?C[e]:e;return d=b.length,c?b=Ti(b,c):v&&d>1&&b.reverse(),h&&u<d&&(b.length=u),this&&this!==ht&&this instanceof o&&(E=y||Lo(E)),E.apply(C,b)}}function Ho(e,t){return function(n,r){return function(e,t,n,r){return Sr(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function Uo(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=po(n),r=po(r)):(n=uo(n),r=uo(r)),i=e(n,r)}return i}}function qo(e){return ii((function(t){return t=Mt(t,Jt(di())),Xr((function(n){var r=this;return e(t,(function(e){return Et(e,r,n)}))}))}))}function Wo(e,t){var n=(t=t===o?" ":po(t)).length;if(n<2)return n?Jr(t,e):t;var r=Jr(t,mt(e/hn(t)));return sn(t)?Co(fn(r),0,e).join(""):r.slice(0,e)}function Go(e){return function(t,n,i){return i&&"number"!=typeof i&&Si(t,n,i)&&(n=i=o),t=gs(t),n===o?(n=t,t=0):n=gs(n),function(e,t,n,o){for(var i=-1,a=wn(mt((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:gs(i),e)}}function Yo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=bs(t),n=bs(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 Ci(e)&&Mi(m,f),m.placeholder=r,ji(m,e,t)}function Jo(e){var t=ke[e];return function(e,n){if(e=bs(e),(n=null==n?0:xn(vs(n),292))&&qt(e)){var r=(xs(e)+"e").split("e");return+((r=(xs(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Xo=An&&1/dn(new An([,-0]))[1]==h?function(e){return new An(e)}:dl;function Qo(e){return function(t){var n=vi(t);return n==E?ln(t):n==D?pn(t):function(e,t){return Mt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function ei(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:wn(vs(m),0),g=g===o?g:vs(g),y-=h?h.length:0,t&u){var b=a,w=h;a=h=o}var x=v?o:li(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?Do(c,l,t[4]):l,e[4]=c?un(e[3],s):t[4]}(l=t[5])&&(c=e[5],e[5]=c?To(c,l,t[6]):l,e[6]=c?un(e[5],s):t[6]);(l=t[7])&&(e[7]=l);r&d&&(e[8]=null==e[8]?t[8]:xn(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:wn(S[9]-y,0))&&24&t&&(t&=-25),t&&1!=t)_=8==t||t==l?function(e,t,n){var i=Lo(e);return function a(){for(var s=arguments.length,l=r(s),c=s,u=ui(a);c--;)l[c]=arguments[c];var d=s<3&&l[0]!==u&&l[s-1]!==u?[]:un(l,u);return(s-=d.length)<n?Zo(e,t,$o,a.placeholder,o,l,d,o,o,n-s):Et(this&&this!==ht&&this instanceof a?i:e,this,l)}}(e,t,g):t!=c&&33!=t||h.length?$o.apply(o,S):function(e,t,n,o){var i=1&t,a=Lo(e);return function t(){for(var s=-1,l=arguments.length,c=-1,u=o.length,d=r(u+l),p=this&&this!==ht&&this instanceof t?a:e;++c<u;)d[c]=o[c];for(;l--;)d[c++]=arguments[++s];return Et(p,i?n:this,d)}}(e,t,n,a);else var _=function(e,t,n){var r=1&t,o=Lo(e);return function t(){return(this&&this!==ht&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,n);return ji((x?no:Mi)(_,S),e,t)}function ti(e,t,n,r){return e===o||$a(e,Me[n])&&!je.call(r,n)?t:e}function ni(e,t,n,r,i,a){return rs(e)&&rs(t)&&(a.set(t,e),Hr(e,t,o,ni,a),a.delete(t)),e}function ri(e){return ss(e)?o:e}function oi(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(!Rt(t,(function(e,t){if(!Qt(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 ii(e){return Oi(Ai(e,o,Gi),e+"")}function ai(e){return kr(e,Ns,mi)}function si(e){return kr(e,Os,gi)}var li=In?function(e){return In.get(e)}:dl;function ci(e){for(var t=e.name+"",n=Mn[t],r=je.call(Mn,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function ui(e){return(je.call(Kn,"placeholder")?Kn:e).placeholder}function di(){var e=Kn.iteratee||sl;return e=e===sl?Rr:e,arguments.length?e(arguments[0],arguments[1]):e}function pi(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 hi(e){for(var t=Ns(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,zi(o)]}return t}function fi(e,t){var n=function(e,t){return null==e?o:e[t]}(e,t);return jr(n)?n:o}var mi=yt?function(e){return null==e?[]:(e=ze(e),Dt(yt(e),(function(t){return Ye.call(e,t)})))}:yl,gi=yt?function(e){for(var t=[];e;)Nt(t,mi(e)),e=We(e);return t}:yl,vi=zr;function yi(e,t,n){for(var r=-1,o=(t=So(t,e)).length,i=!1;++r<o;){var a=Li(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&ns(o)&&xi(a,o)&&(Wa(e)||qa(e))}function bi(e){return"function"!=typeof e.constructor||ki(e)?{}:$n(We(e))}function wi(e){return Wa(e)||qa(e)||!!(Je&&e&&e[Je])}function xi(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 Si(e,t,n){if(!rs(n))return!1;var r=typeof t;return!!("number"==r?Ya(n)&&xi(t,n.length):"string"==r&&t in n)&&$a(n[t],e)}function _i(e,t){if(Wa(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ds(e))||(ne.test(e)||!te.test(e)||null!=t&&e in ze(t))}function Ci(e){var t=ci(e),n=Kn[t];if("function"!=typeof n||!(t in qn.prototype))return!1;if(e===n)return!0;var r=li(n);return!!r&&e===r[0]}(kn&&vi(new kn(new ArrayBuffer(1)))!=O||zn&&vi(new zn)!=E||Pn&&vi(Pn.resolve())!=P||An&&vi(new An)!=D||Dn&&vi(new Dn)!=M)&&(vi=function(e){var t=zr(e),n=t==z?e.constructor:o,r=n?Vi(n):"";if(r)switch(r){case Nn:return O;case On:return E;case jn:return P;case Rn:return D;case Fn:return M}return t});var Ei=Ne?es:bl;function ki(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Me)}function zi(e){return e==e&&!rs(e)}function Pi(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==o||e in ze(n)))}}function Ai(e,t,n){return t=wn(t===o?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=wn(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),Et(e,this,l)}}function Di(e,t){return t.length<2?e:Er(e,io(t,0,-1))}function Ti(e,t){for(var n=e.length,r=xn(t.length,n),i=Io(e);r--;){var a=t[r];e[r]=xi(a,n)?i[a]:o}return e}function Ii(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Mi=Ri(no),Ni=ft||function(e,t){return ht.setTimeout(e,t)},Oi=Ri(ro);function ji(e,t,n){var r=t+"";return Oi(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 zt(v,(function(n){var r="_."+n[0];t&n[1]&&!Tt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ce);return t?t[1].split(ue):[]}(r),n)))}function Ri(e){var t=0,n=0;return function(){var r=Sn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Fi(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 Bi=function(e){var t=Ra(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 Li(e){if("string"==typeof e||ds(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Vi(e){if(null!=e){try{return Oe.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ki(e){if(e instanceof qn)return e.clone();var t=new Un(e.__wrapped__,e.__chain__);return t.__actions__=Io(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var $i=Xr((function(e,t){return Za(e)?hr(e,br(t,1,Za,!0)):[]})),Hi=Xr((function(e,t){var n=Qi(t);return Za(n)&&(n=o),Za(e)?hr(e,br(t,1,Za,!0),di(n,2)):[]})),Ui=Xr((function(e,t){var n=Qi(t);return Za(n)&&(n=o),Za(e)?hr(e,br(t,1,Za,!0),o,n):[]}));function qi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:vs(n);return o<0&&(o=wn(r+o,0)),Lt(e,di(t,3),o)}function Wi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==o&&(i=vs(n),i=n<0?wn(r+i,0):xn(i,r-1)),Lt(e,di(t,3),i,!0)}function Gi(e){return(null==e?0:e.length)?br(e,1):[]}function Yi(e){return e&&e.length?e[0]:o}var Zi=Xr((function(e){var t=Mt(e,wo);return t.length&&t[0]===e[0]?Tr(t):[]})),Ji=Xr((function(e){var t=Qi(e),n=Mt(e,wo);return t===Qi(n)?t=o:n.pop(),n.length&&n[0]===e[0]?Tr(n,di(t,2)):[]})),Xi=Xr((function(e){var t=Qi(e),n=Mt(e,wo);return(t="function"==typeof t?t:o)&&n.pop(),n.length&&n[0]===e[0]?Tr(n,o,t):[]}));function Qi(e){var t=null==e?0:e.length;return t?e[t-1]:o}var ea=Xr(ta);function ta(e,t){return e&&e.length&&t&&t.length?Gr(e,t):e}var na=ii((function(e,t){var n=null==e?0:e.length,r=lr(e,t);return Yr(e,Mt(t,(function(e){return xi(e,n)?+e:e})).sort(Ao)),r}));function ra(e){return null==e?e:En.call(e)}var oa=Xr((function(e){return ho(br(e,1,Za,!0))})),ia=Xr((function(e){var t=Qi(e);return Za(t)&&(t=o),ho(br(e,1,Za,!0),di(t,2))})),aa=Xr((function(e){var t=Qi(e);return t="function"==typeof t?t:o,ho(br(e,1,Za,!0),o,t)}));function sa(e){if(!e||!e.length)return[];var t=0;return e=Dt(e,(function(e){if(Za(e))return t=wn(e.length,t),!0})),Yt(t,(function(t){return Mt(e,Ut(t))}))}function la(e,t){if(!e||!e.length)return[];var n=sa(e);return null==t?n:Mt(n,(function(e){return Et(t,o,e)}))}var ca=Xr((function(e,t){return Za(e)?hr(e,t):[]})),ua=Xr((function(e){return yo(Dt(e,Za))})),da=Xr((function(e){var t=Qi(e);return Za(t)&&(t=o),yo(Dt(e,Za),di(t,2))})),pa=Xr((function(e){var t=Qi(e);return t="function"==typeof t?t:o,yo(Dt(e,Za),o,t)})),ha=Xr(sa);var fa=Xr((function(e){var t=e.length,n=t>1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,la(e,n)}));function ma(e){var t=Kn(e);return t.__chain__=!0,t}function ga(e,t){return t(e)}var va=ii((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return lr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof qn&&xi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ga,args:[i],thisArg:o}),new Un(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)}));var ya=No((function(e,t,n){je.call(e,n)?++e[n]:sr(e,n,1)}));var ba=Vo(qi),wa=Vo(Wi);function xa(e,t){return(Wa(e)?zt:fr)(e,di(t,3))}function Sa(e,t){return(Wa(e)?Pt:mr)(e,di(t,3))}var _a=No((function(e,t,n){je.call(e,n)?e[n].push(t):sr(e,n,[t])}));var Ca=Xr((function(e,t,n){var o=-1,i="function"==typeof t,a=Ya(e)?r(e.length):[];return fr(e,(function(e){a[++o]=i?Et(t,e,n):Ir(e,t,n)})),a})),Ea=No((function(e,t,n){sr(e,n,t)}));function ka(e,t){return(Wa(e)?Mt:Vr)(e,di(t,3))}var za=No((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Pa=Xr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&Si(e,t[0],t[1])?t=[]:n>2&&Si(t[0],t[1],t[2])&&(t=[t[0]]),qr(e,br(t,1),[])})),Aa=pt||function(){return ht.Date.now()};function Da(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,ei(e,d,o,o,o,o,t)}function Ta(e,t){var n;if("function"!=typeof t)throw new De(i);return e=vs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var Ia=Xr((function(e,t,n){var r=1;if(n.length){var o=un(n,ui(Ia));r|=c}return ei(e,r,t,n,o)})),Ma=Xr((function(e,t,n){var r=3;if(n.length){var o=un(n,ui(Ma));r|=c}return ei(t,r,e,n,o)}));function Na(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){return d=e,c=Ni(y,t),p?m(e):l}function v(e){var n=e-u;return u===o||n>=t||n<0||h&&e-d>=s}function y(){var e=Aa();if(v(e))return b(e);c=Ni(y,function(e){var n=t-(e-u);return h?xn(n,s-(e-d)):n}(e))}function b(e){return c=o,f&&r?m(e):(r=a=o,l)}function w(){var e=Aa(),n=v(e);if(r=arguments,a=this,u=e,n){if(c===o)return g(u);if(h)return Eo(c),c=Ni(y,t),m(u)}return c===o&&(c=Ni(y,t)),l}return t=bs(t)||0,rs(n)&&(p=!!n.leading,s=(h="maxWait"in n)?wn(bs(n.maxWait)||0,t):s,f="trailing"in n?!!n.trailing:f),w.cancel=function(){c!==o&&Eo(c),d=0,r=u=a=c=o},w.flush=function(){return c===o?l:b(Aa())},w}var Oa=Xr((function(e,t){return pr(e,1,t)})),ja=Xr((function(e,t,n){return pr(e,bs(t)||0,n)}));function Ra(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(Ra.Cache||Yn),n}function Fa(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)}}Ra.Cache=Yn;var Ba=_o((function(e,t){var n=(t=1==t.length&&Wa(t[0])?Mt(t[0],Jt(di())):Mt(br(t,1),Jt(di()))).length;return Xr((function(r){for(var o=-1,i=xn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return Et(e,this,r)}))})),La=Xr((function(e,t){var n=un(t,ui(La));return ei(e,c,o,t,n)})),Va=Xr((function(e,t){var n=un(t,ui(Va));return ei(e,u,o,t,n)})),Ka=ii((function(e,t){return ei(e,p,o,o,o,t)}));function $a(e,t){return e===t||e!=e&&t!=t}var Ha=Yo(Pr),Ua=Yo((function(e,t){return e>=t})),qa=Mr(function(){return arguments}())?Mr:function(e){return os(e)&&je.call(e,"callee")&&!Ye.call(e,"callee")},Wa=r.isArray,Ga=bt?Jt(bt):function(e){return os(e)&&zr(e)==N};function Ya(e){return null!=e&&ns(e.length)&&!es(e)}function Za(e){return os(e)&&Ya(e)}var Ja=Ft||bl,Xa=wt?Jt(wt):function(e){return os(e)&&zr(e)==x};function Qa(e){if(!os(e))return!1;var t=zr(e);return t==S||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ss(e)}function es(e){if(!rs(e))return!1;var t=zr(e);return t==_||t==C||"[object AsyncFunction]"==t||"[object Proxy]"==t}function ts(e){return"number"==typeof e&&e==vs(e)}function ns(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function rs(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function os(e){return null!=e&&"object"==typeof e}var is=xt?Jt(xt):function(e){return os(e)&&vi(e)==E};function as(e){return"number"==typeof e||os(e)&&zr(e)==k}function ss(e){if(!os(e)||zr(e)!=z)return!1;var t=We(e);if(null===t)return!0;var n=je.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Oe.call(n)==Le}var ls=St?Jt(St):function(e){return os(e)&&zr(e)==A};var cs=_t?Jt(_t):function(e){return os(e)&&vi(e)==D};function us(e){return"string"==typeof e||!Wa(e)&&os(e)&&zr(e)==T}function ds(e){return"symbol"==typeof e||os(e)&&zr(e)==I}var ps=Ct?Jt(Ct):function(e){return os(e)&&ns(e.length)&&!!at[zr(e)]};var hs=Yo(Lr),fs=Yo((function(e,t){return e<=t}));function ms(e){if(!e)return[];if(Ya(e))return us(e)?fn(e):Io(e);if(et&&e[et])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[et]());var t=vi(e);return(t==E?ln:t==D?dn:$s)(e)}function gs(e){return e?(e=bs(e))===h||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function vs(e){var t=gs(e),n=t%1;return t==t?n?t-n:t:0}function ys(e){return e?cr(vs(e),0,g):0}function bs(e){if("number"==typeof e)return e;if(ds(e))return m;if(rs(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=rs(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Zt(e);var n=ve.test(e);return n||be.test(e)?ut(e.slice(2),n?2:8):ge.test(e)?m:+e}function ws(e){return Mo(e,Os(e))}function xs(e){return null==e?"":po(e)}var Ss=Oo((function(e,t){if(ki(t)||Ya(t))Mo(t,Ns(t),e);else for(var n in t)je.call(t,n)&&rr(e,n,t[n])})),_s=Oo((function(e,t){Mo(t,Os(t),e)})),Cs=Oo((function(e,t,n,r){Mo(t,Os(t),e,r)})),Es=Oo((function(e,t,n,r){Mo(t,Ns(t),e,r)})),ks=ii(lr);var zs=Xr((function(e,t){e=ze(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&Si(t[0],t[1],i)&&(r=1);++n<r;)for(var a=t[n],s=Os(a),l=-1,c=s.length;++l<c;){var u=s[l],d=e[u];(d===o||$a(d,Me[u])&&!je.call(e,u))&&(e[u]=a[u])}return e})),Ps=Xr((function(e){return e.push(o,ni),Et(Rs,o,e)}));function As(e,t,n){var r=null==e?o:Er(e,t);return r===o?n:r}function Ds(e,t){return null!=e&&yi(e,t,Dr)}var Ts=Ho((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Be.call(t)),e[t]=n}),rl(al)),Is=Ho((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Be.call(t)),je.call(e,t)?e[t].push(n):e[t]=[n]}),di),Ms=Xr(Ir);function Ns(e){return Ya(e)?Xn(e):Fr(e)}function Os(e){return Ya(e)?Xn(e,!0):Br(e)}var js=Oo((function(e,t,n){Hr(e,t,n)})),Rs=Oo((function(e,t,n,r){Hr(e,t,n,r)})),Fs=ii((function(e,t){var n={};if(null==e)return n;var r=!1;t=Mt(t,(function(t){return t=So(t,e),r||(r=t.length>1),t})),Mo(e,si(e),n),r&&(n=ur(n,7,ri));for(var o=t.length;o--;)fo(n,t[o]);return n}));var Bs=ii((function(e,t){return null==e?{}:function(e,t){return Wr(e,t,(function(t,n){return Ds(e,n)}))}(e,t)}));function Ls(e,t){if(null==e)return{};var n=Mt(si(e),(function(e){return[e]}));return t=di(t),Wr(e,n,(function(e,n){return t(e,n[0])}))}var Vs=Qo(Ns),Ks=Qo(Os);function $s(e){return null==e?[]:Xt(e,Ns(e))}var Hs=Bo((function(e,t,n){return t=t.toLowerCase(),e+(n?Us(t):t)}));function Us(e){return Qs(xs(e).toLowerCase())}function qs(e){return(e=xs(e))&&e.replace(xe,rn).replace(Qe,"")}var Ws=Bo((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Gs=Bo((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ys=Fo("toLowerCase");var Zs=Bo((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Js=Bo((function(e,t,n){return e+(n?" ":"")+Qs(t)}));var Xs=Bo((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Qs=Fo("toUpperCase");function el(e,t,n){return e=xs(e),(t=n?o:t)===o?function(e){return rt.test(e)}(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var tl=Xr((function(e,t){try{return Et(e,o,t)}catch(e){return Qa(e)?e:new Ce(e)}})),nl=ii((function(e,t){return zt(t,(function(t){t=Li(t),sr(e,t,Ia(e[t],e))})),e}));function rl(e){return function(){return e}}var ol=Ko(),il=Ko(!0);function al(e){return e}function sl(e){return Rr("function"==typeof e?e:ur(e,1))}var ll=Xr((function(e,t){return function(n){return Ir(n,e,t)}})),cl=Xr((function(e,t){return function(n){return Ir(e,n,t)}}));function ul(e,t,n){var r=Ns(t),o=Cr(t,r);null!=n||rs(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=Cr(t,Ns(t)));var i=!(rs(n)&&"chain"in n&&!n.chain),a=es(e);return zt(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__),o=n.__actions__=Io(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Nt([this.value()],arguments))})})),e}function dl(){}var pl=qo(Mt),hl=qo(At),fl=qo(Rt);function ml(e){return _i(e)?Ut(Li(e)):function(e){return function(t){return Er(t,e)}}(e)}var gl=Go(),vl=Go(!0);function yl(){return[]}function bl(){return!1}var wl=Uo((function(e,t){return e+t}),0),xl=Jo("ceil"),Sl=Uo((function(e,t){return e/t}),1),_l=Jo("floor");var Cl,El=Uo((function(e,t){return e*t}),1),kl=Jo("round"),zl=Uo((function(e,t){return e-t}),0);return Kn.after=function(e,t){if("function"!=typeof t)throw new De(i);return e=vs(e),function(){if(--e<1)return t.apply(this,arguments)}},Kn.ary=Da,Kn.assign=Ss,Kn.assignIn=_s,Kn.assignInWith=Cs,Kn.assignWith=Es,Kn.at=ks,Kn.before=Ta,Kn.bind=Ia,Kn.bindAll=nl,Kn.bindKey=Ma,Kn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Wa(e)?e:[e]},Kn.chain=ma,Kn.chunk=function(e,t,n){t=(n?Si(e,t,n):t===o)?1:wn(vs(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,s=0,l=r(mt(i/t));a<i;)l[s++]=io(e,a,a+=t);return l},Kn.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},Kn.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 Nt(Wa(n)?Io(n):[n],br(t,1))},Kn.cond=function(e){var t=null==e?0:e.length,n=di();return e=t?Mt(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(Et(o[0],this,n))return Et(o[1],this,n)}}))},Kn.conforms=function(e){return function(e){var t=Ns(e);return function(n){return dr(n,e,t)}}(ur(e,1))},Kn.constant=rl,Kn.countBy=ya,Kn.create=function(e,t){var n=$n(e);return null==t?n:ar(n,t)},Kn.curry=function e(t,n,r){var i=ei(t,8,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Kn.curryRight=function e(t,n,r){var i=ei(t,l,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Kn.debounce=Na,Kn.defaults=zs,Kn.defaultsDeep=Ps,Kn.defer=Oa,Kn.delay=ja,Kn.difference=$i,Kn.differenceBy=Hi,Kn.differenceWith=Ui,Kn.drop=function(e,t,n){var r=null==e?0:e.length;return r?io(e,(t=n||t===o?1:vs(t))<0?0:t,r):[]},Kn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?io(e,0,(t=r-(t=n||t===o?1:vs(t)))<0?0:t):[]},Kn.dropRightWhile=function(e,t){return e&&e.length?go(e,di(t,3),!0,!0):[]},Kn.dropWhile=function(e,t){return e&&e.length?go(e,di(t,3),!0):[]},Kn.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&Si(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=vs(n))<0&&(n=-n>i?0:i+n),(r=r===o||r>i?i:vs(r))<0&&(r+=i),r=n>r?0:ys(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Kn.filter=function(e,t){return(Wa(e)?Dt:yr)(e,di(t,3))},Kn.flatMap=function(e,t){return br(ka(e,t),1)},Kn.flatMapDeep=function(e,t){return br(ka(e,t),h)},Kn.flatMapDepth=function(e,t,n){return n=n===o?1:vs(n),br(ka(e,t),n)},Kn.flatten=Gi,Kn.flattenDeep=function(e){return(null==e?0:e.length)?br(e,h):[]},Kn.flattenDepth=function(e,t){return(null==e?0:e.length)?br(e,t=t===o?1:vs(t)):[]},Kn.flip=function(e){return ei(e,512)},Kn.flow=ol,Kn.flowRight=il,Kn.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},Kn.functions=function(e){return null==e?[]:Cr(e,Ns(e))},Kn.functionsIn=function(e){return null==e?[]:Cr(e,Os(e))},Kn.groupBy=_a,Kn.initial=function(e){return(null==e?0:e.length)?io(e,0,-1):[]},Kn.intersection=Zi,Kn.intersectionBy=Ji,Kn.intersectionWith=Xi,Kn.invert=Ts,Kn.invertBy=Is,Kn.invokeMap=Ca,Kn.iteratee=sl,Kn.keyBy=Ea,Kn.keys=Ns,Kn.keysIn=Os,Kn.map=ka,Kn.mapKeys=function(e,t){var n={};return t=di(t,3),Sr(e,(function(e,r,o){sr(n,t(e,r,o),e)})),n},Kn.mapValues=function(e,t){var n={};return t=di(t,3),Sr(e,(function(e,r,o){sr(n,r,t(e,r,o))})),n},Kn.matches=function(e){return Kr(ur(e,1))},Kn.matchesProperty=function(e,t){return $r(e,ur(t,1))},Kn.memoize=Ra,Kn.merge=js,Kn.mergeWith=Rs,Kn.method=ll,Kn.methodOf=cl,Kn.mixin=ul,Kn.negate=Fa,Kn.nthArg=function(e){return e=vs(e),Xr((function(t){return Ur(t,e)}))},Kn.omit=Fs,Kn.omitBy=function(e,t){return Ls(e,Fa(di(t)))},Kn.once=function(e){return Ta(2,e)},Kn.orderBy=function(e,t,n,r){return null==e?[]:(Wa(t)||(t=null==t?[]:[t]),Wa(n=r?o:n)||(n=null==n?[]:[n]),qr(e,t,n))},Kn.over=pl,Kn.overArgs=Ba,Kn.overEvery=hl,Kn.overSome=fl,Kn.partial=La,Kn.partialRight=Va,Kn.partition=za,Kn.pick=Bs,Kn.pickBy=Ls,Kn.property=ml,Kn.propertyOf=function(e){return function(t){return null==e?o:Er(e,t)}},Kn.pull=ea,Kn.pullAll=ta,Kn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Gr(e,t,di(n,2)):e},Kn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Gr(e,t,o,n):e},Kn.pullAt=na,Kn.range=gl,Kn.rangeRight=vl,Kn.rearg=Ka,Kn.reject=function(e,t){return(Wa(e)?Dt:yr)(e,Fa(di(t,3)))},Kn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=di(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return Yr(e,o),n},Kn.rest=function(e,t){if("function"!=typeof e)throw new De(i);return Xr(e,t=t===o?t:vs(t))},Kn.reverse=ra,Kn.sampleSize=function(e,t,n){return t=(n?Si(e,t,n):t===o)?1:vs(t),(Wa(e)?er:eo)(e,t)},Kn.set=function(e,t,n){return null==e?e:to(e,t,n)},Kn.setWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:to(e,t,n,r)},Kn.shuffle=function(e){return(Wa(e)?tr:oo)(e)},Kn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&Si(e,t,n)?(t=0,n=r):(t=null==t?0:vs(t),n=n===o?r:vs(n)),io(e,t,n)):[]},Kn.sortBy=Pa,Kn.sortedUniq=function(e){return e&&e.length?co(e):[]},Kn.sortedUniqBy=function(e,t){return e&&e.length?co(e,di(t,2)):[]},Kn.split=function(e,t,n){return n&&"number"!=typeof n&&Si(e,t,n)&&(t=n=o),(n=n===o?g:n>>>0)?(e=xs(e))&&("string"==typeof t||null!=t&&!ls(t))&&!(t=po(t))&&sn(e)?Co(fn(e),0,n):e.split(t,n):[]},Kn.spread=function(e,t){if("function"!=typeof e)throw new De(i);return t=null==t?0:wn(vs(t),0),Xr((function(n){var r=n[t],o=Co(n,0,t);return r&&Nt(o,r),Et(e,this,o)}))},Kn.tail=function(e){var t=null==e?0:e.length;return t?io(e,1,t):[]},Kn.take=function(e,t,n){return e&&e.length?io(e,0,(t=n||t===o?1:vs(t))<0?0:t):[]},Kn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?io(e,(t=r-(t=n||t===o?1:vs(t)))<0?0:t,r):[]},Kn.takeRightWhile=function(e,t){return e&&e.length?go(e,di(t,3),!1,!0):[]},Kn.takeWhile=function(e,t){return e&&e.length?go(e,di(t,3)):[]},Kn.tap=function(e,t){return t(e),e},Kn.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new De(i);return rs(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Na(e,t,{leading:r,maxWait:t,trailing:o})},Kn.thru=ga,Kn.toArray=ms,Kn.toPairs=Vs,Kn.toPairsIn=Ks,Kn.toPath=function(e){return Wa(e)?Mt(e,Li):ds(e)?[e]:Io(Bi(xs(e)))},Kn.toPlainObject=ws,Kn.transform=function(e,t,n){var r=Wa(e),o=r||Ja(e)||ps(e);if(t=di(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:rs(e)&&es(i)?$n(We(e)):{}}return(o?zt:Sr)(e,(function(e,r,o){return t(n,e,r,o)})),n},Kn.unary=function(e){return Da(e,1)},Kn.union=oa,Kn.unionBy=ia,Kn.unionWith=aa,Kn.uniq=function(e){return e&&e.length?ho(e):[]},Kn.uniqBy=function(e,t){return e&&e.length?ho(e,di(t,2)):[]},Kn.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?ho(e,o,t):[]},Kn.unset=function(e,t){return null==e||fo(e,t)},Kn.unzip=sa,Kn.unzipWith=la,Kn.update=function(e,t,n){return null==e?e:mo(e,t,xo(n))},Kn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:mo(e,t,xo(n),r)},Kn.values=$s,Kn.valuesIn=function(e){return null==e?[]:Xt(e,Os(e))},Kn.without=ca,Kn.words=el,Kn.wrap=function(e,t){return La(xo(t),e)},Kn.xor=ua,Kn.xorBy=da,Kn.xorWith=pa,Kn.zip=ha,Kn.zipObject=function(e,t){return bo(e||[],t||[],rr)},Kn.zipObjectDeep=function(e,t){return bo(e||[],t||[],to)},Kn.zipWith=fa,Kn.entries=Vs,Kn.entriesIn=Ks,Kn.extend=_s,Kn.extendWith=Cs,ul(Kn,Kn),Kn.add=wl,Kn.attempt=tl,Kn.camelCase=Hs,Kn.capitalize=Us,Kn.ceil=xl,Kn.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=bs(n))==n?n:0),t!==o&&(t=(t=bs(t))==t?t:0),cr(bs(e),t,n)},Kn.clone=function(e){return ur(e,4)},Kn.cloneDeep=function(e){return ur(e,5)},Kn.cloneDeepWith=function(e,t){return ur(e,5,t="function"==typeof t?t:o)},Kn.cloneWith=function(e,t){return ur(e,4,t="function"==typeof t?t:o)},Kn.conformsTo=function(e,t){return null==t||dr(e,t,Ns(t))},Kn.deburr=qs,Kn.defaultTo=function(e,t){return null==e||e!=e?t:e},Kn.divide=Sl,Kn.endsWith=function(e,t,n){e=xs(e),t=po(t);var r=e.length,i=n=n===o?r:cr(vs(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Kn.eq=$a,Kn.escape=function(e){return(e=xs(e))&&J.test(e)?e.replace(Y,on):e},Kn.escapeRegExp=function(e){return(e=xs(e))&&ie.test(e)?e.replace(oe,"\\$&"):e},Kn.every=function(e,t,n){var r=Wa(e)?At:gr;return n&&Si(e,t,n)&&(t=o),r(e,di(t,3))},Kn.find=ba,Kn.findIndex=qi,Kn.findKey=function(e,t){return Bt(e,di(t,3),Sr)},Kn.findLast=wa,Kn.findLastIndex=Wi,Kn.findLastKey=function(e,t){return Bt(e,di(t,3),_r)},Kn.floor=_l,Kn.forEach=xa,Kn.forEachRight=Sa,Kn.forIn=function(e,t){return null==e?e:wr(e,di(t,3),Os)},Kn.forInRight=function(e,t){return null==e?e:xr(e,di(t,3),Os)},Kn.forOwn=function(e,t){return e&&Sr(e,di(t,3))},Kn.forOwnRight=function(e,t){return e&&_r(e,di(t,3))},Kn.get=As,Kn.gt=Ha,Kn.gte=Ua,Kn.has=function(e,t){return null!=e&&yi(e,t,Ar)},Kn.hasIn=Ds,Kn.head=Yi,Kn.identity=al,Kn.includes=function(e,t,n,r){e=Ya(e)?e:$s(e),n=n&&!r?vs(n):0;var o=e.length;return n<0&&(n=wn(o+n,0)),us(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Vt(e,t,n)>-1},Kn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:vs(n);return o<0&&(o=wn(r+o,0)),Vt(e,t,o)},Kn.inRange=function(e,t,n){return t=gs(t),n===o?(n=t,t=0):n=gs(n),function(e,t,n){return e>=xn(t,n)&&e<wn(t,n)}(e=bs(e),t,n)},Kn.invoke=Ms,Kn.isArguments=qa,Kn.isArray=Wa,Kn.isArrayBuffer=Ga,Kn.isArrayLike=Ya,Kn.isArrayLikeObject=Za,Kn.isBoolean=function(e){return!0===e||!1===e||os(e)&&zr(e)==w},Kn.isBuffer=Ja,Kn.isDate=Xa,Kn.isElement=function(e){return os(e)&&1===e.nodeType&&!ss(e)},Kn.isEmpty=function(e){if(null==e)return!0;if(Ya(e)&&(Wa(e)||"string"==typeof e||"function"==typeof e.splice||Ja(e)||ps(e)||qa(e)))return!e.length;var t=vi(e);if(t==E||t==D)return!e.size;if(ki(e))return!Fr(e).length;for(var n in e)if(je.call(e,n))return!1;return!0},Kn.isEqual=function(e,t){return Nr(e,t)},Kn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:o)?n(e,t):o;return r===o?Nr(e,t,o,n):!!r},Kn.isError=Qa,Kn.isFinite=function(e){return"number"==typeof e&&qt(e)},Kn.isFunction=es,Kn.isInteger=ts,Kn.isLength=ns,Kn.isMap=is,Kn.isMatch=function(e,t){return e===t||Or(e,t,hi(t))},Kn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:o,Or(e,t,hi(t),n)},Kn.isNaN=function(e){return as(e)&&e!=+e},Kn.isNative=function(e){if(Ei(e))throw new Ce("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return jr(e)},Kn.isNil=function(e){return null==e},Kn.isNull=function(e){return null===e},Kn.isNumber=as,Kn.isObject=rs,Kn.isObjectLike=os,Kn.isPlainObject=ss,Kn.isRegExp=ls,Kn.isSafeInteger=function(e){return ts(e)&&e>=-9007199254740991&&e<=f},Kn.isSet=cs,Kn.isString=us,Kn.isSymbol=ds,Kn.isTypedArray=ps,Kn.isUndefined=function(e){return e===o},Kn.isWeakMap=function(e){return os(e)&&vi(e)==M},Kn.isWeakSet=function(e){return os(e)&&"[object WeakSet]"==zr(e)},Kn.join=function(e,t){return null==e?"":yn.call(e,t)},Kn.kebabCase=Ws,Kn.last=Qi,Kn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=vs(n))<0?wn(r+i,0):xn(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):Lt(e,$t,i,!0)},Kn.lowerCase=Gs,Kn.lowerFirst=Ys,Kn.lt=hs,Kn.lte=fs,Kn.max=function(e){return e&&e.length?vr(e,al,Pr):o},Kn.maxBy=function(e,t){return e&&e.length?vr(e,di(t,2),Pr):o},Kn.mean=function(e){return Ht(e,al)},Kn.meanBy=function(e,t){return Ht(e,di(t,2))},Kn.min=function(e){return e&&e.length?vr(e,al,Lr):o},Kn.minBy=function(e,t){return e&&e.length?vr(e,di(t,2),Lr):o},Kn.stubArray=yl,Kn.stubFalse=bl,Kn.stubObject=function(){return{}},Kn.stubString=function(){return""},Kn.stubTrue=function(){return!0},Kn.multiply=El,Kn.nth=function(e,t){return e&&e.length?Ur(e,vs(t)):o},Kn.noConflict=function(){return ht._===this&&(ht._=Ve),this},Kn.noop=dl,Kn.now=Aa,Kn.pad=function(e,t,n){e=xs(e);var r=(t=vs(t))?hn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Wo(vt(o),n)+e+Wo(mt(o),n)},Kn.padEnd=function(e,t,n){e=xs(e);var r=(t=vs(t))?hn(e):0;return t&&r<t?e+Wo(t-r,n):e},Kn.padStart=function(e,t,n){e=xs(e);var r=(t=vs(t))?hn(e):0;return t&&r<t?Wo(t-r,n)+e:e},Kn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),_n(xs(e).replace(ae,""),t||0)},Kn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&Si(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=gs(e),t===o?(t=e,e=0):t=gs(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=Cn();return xn(e+i*(t-e+ct("1e-"+((i+"").length-1))),t)}return Zr(e,t)},Kn.reduce=function(e,t,n){var r=Wa(e)?Ot:Wt,o=arguments.length<3;return r(e,di(t,4),n,o,fr)},Kn.reduceRight=function(e,t,n){var r=Wa(e)?jt:Wt,o=arguments.length<3;return r(e,di(t,4),n,o,mr)},Kn.repeat=function(e,t,n){return t=(n?Si(e,t,n):t===o)?1:vs(t),Jr(xs(e),t)},Kn.replace=function(){var e=arguments,t=xs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Kn.result=function(e,t,n){var r=-1,i=(t=So(t,e)).length;for(i||(i=1,e=o);++r<i;){var a=null==e?o:e[Li(t[r])];a===o&&(r=i,a=n),e=es(a)?a.call(e):a}return e},Kn.round=kl,Kn.runInContext=e,Kn.sample=function(e){return(Wa(e)?Qn:Qr)(e)},Kn.size=function(e){if(null==e)return 0;if(Ya(e))return us(e)?hn(e):e.length;var t=vi(e);return t==E||t==D?e.size:Fr(e).length},Kn.snakeCase=Zs,Kn.some=function(e,t,n){var r=Wa(e)?Rt:ao;return n&&Si(e,t,n)&&(t=o),r(e,di(t,3))},Kn.sortedIndex=function(e,t){return so(e,t)},Kn.sortedIndexBy=function(e,t,n){return lo(e,t,di(n,2))},Kn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=so(e,t);if(r<n&&$a(e[r],t))return r}return-1},Kn.sortedLastIndex=function(e,t){return so(e,t,!0)},Kn.sortedLastIndexBy=function(e,t,n){return lo(e,t,di(n,2),!0)},Kn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=so(e,t,!0)-1;if($a(e[n],t))return n}return-1},Kn.startCase=Js,Kn.startsWith=function(e,t,n){return e=xs(e),n=null==n?0:cr(vs(n),0,e.length),t=po(t),e.slice(n,n+t.length)==t},Kn.subtract=zl,Kn.sum=function(e){return e&&e.length?Gt(e,al):0},Kn.sumBy=function(e,t){return e&&e.length?Gt(e,di(t,2)):0},Kn.template=function(e,t,n){var r=Kn.templateSettings;n&&Si(e,t,n)&&(t=o),e=xs(e),t=Cs({},t,r,ti);var i,a,s=Cs({},t.imports,r.imports,ti),l=Ns(s),c=Xt(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="+(je.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++it+"]")+"\n";e.replace(h,(function(t,n,r,o,s,l){return r||(r=o),p+=e.slice(u,l).replace(_e,an),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=je.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(q,"$1").replace(W,"$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=tl((function(){return Ee(l,f+"return "+p).apply(o,c)}));if(g.source=p,Qa(g))throw g;return g},Kn.times=function(e,t){if((e=vs(e))<1||e>f)return[];var n=g,r=xn(e,g);t=di(t),e-=g;for(var o=Yt(r,t);++n<e;)t(n);return o},Kn.toFinite=gs,Kn.toInteger=vs,Kn.toLength=ys,Kn.toLower=function(e){return xs(e).toLowerCase()},Kn.toNumber=bs,Kn.toSafeInteger=function(e){return e?cr(vs(e),-9007199254740991,f):0===e?e:0},Kn.toString=xs,Kn.toUpper=function(e){return xs(e).toUpperCase()},Kn.trim=function(e,t,n){if((e=xs(e))&&(n||t===o))return Zt(e);if(!e||!(t=po(t)))return e;var r=fn(e),i=fn(t);return Co(r,en(r,i),tn(r,i)+1).join("")},Kn.trimEnd=function(e,t,n){if((e=xs(e))&&(n||t===o))return e.slice(0,mn(e)+1);if(!e||!(t=po(t)))return e;var r=fn(e);return Co(r,0,tn(r,fn(t))+1).join("")},Kn.trimStart=function(e,t,n){if((e=xs(e))&&(n||t===o))return e.replace(ae,"");if(!e||!(t=po(t)))return e;var r=fn(e);return Co(r,en(r,fn(t))).join("")},Kn.truncate=function(e,t){var n=30,r="...";if(rs(t)){var i="separator"in t?t.separator:i;n="length"in t?vs(t.length):n,r="omission"in t?po(t.omission):r}var a=(e=xs(e)).length;if(sn(e)){var s=fn(e);a=s.length}if(n>=a)return e;var l=n-hn(r);if(l<1)return r;var c=s?Co(s,0,l).join(""):e.slice(0,l);if(i===o)return c+r;if(s&&(l+=c.length-l),ls(i)){if(e.slice(l).search(i)){var u,d=c;for(i.global||(i=Pe(i.source,xs(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(po(i),l)!=l){var h=c.lastIndexOf(i);h>-1&&(c=c.slice(0,h))}return c+r},Kn.unescape=function(e){return(e=xs(e))&&Z.test(e)?e.replace(G,gn):e},Kn.uniqueId=function(e){var t=++Re;return xs(e)+t},Kn.upperCase=Xs,Kn.upperFirst=Qs,Kn.each=xa,Kn.eachRight=Sa,Kn.first=Yi,ul(Kn,(Cl={},Sr(Kn,(function(e,t){je.call(Kn.prototype,t)||(Cl[t]=e)})),Cl),{chain:!1}),Kn.VERSION="4.17.21",zt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Kn[e].placeholder=Kn})),zt(["drop","take"],(function(e,t){qn.prototype[e]=function(n){n=n===o?1:wn(vs(n),0);var r=this.__filtered__&&!t?new qn(this):this.clone();return r.__filtered__?r.__takeCount__=xn(n,r.__takeCount__):r.__views__.push({size:xn(n,g),type:e+(r.__dir__<0?"Right":"")}),r},qn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),zt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;qn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:di(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),zt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");qn.prototype[e]=function(){return this[n](1).value()[0]}})),zt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");qn.prototype[e]=function(){return this.__filtered__?new qn(this):this[n](1)}})),qn.prototype.compact=function(){return this.filter(al)},qn.prototype.find=function(e){return this.filter(e).head()},qn.prototype.findLast=function(e){return this.reverse().find(e)},qn.prototype.invokeMap=Xr((function(e,t){return"function"==typeof e?new qn(this):this.map((function(n){return Ir(n,e,t)}))})),qn.prototype.reject=function(e){return this.filter(Fa(di(e)))},qn.prototype.slice=function(e,t){e=vs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new qn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=vs(t))<0?n.dropRight(-t):n.take(t-e)),n)},qn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},qn.prototype.toArray=function(){return this.take(g)},Sr(qn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Kn[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);i&&(Kn.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,l=t instanceof qn,c=s[0],u=l||Wa(t),d=function(e){var t=i.apply(Kn,Nt([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 qn(this);var g=e.apply(t,s);return g.__actions__.push({func:ga,args:[d],thisArg:o}),new Un(g,p)}return f&&m?e.apply(this,s):(g=this.thru(d),f?r?g.value()[0]:g.value():g)})})),zt(["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);Kn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Wa(o)?o:[],e)}return this[n]((function(n){return t.apply(Wa(n)?n:[],e)}))}})),Sr(qn.prototype,(function(e,t){var n=Kn[t];if(n){var r=n.name+"";je.call(Mn,r)||(Mn[r]=[]),Mn[r].push({name:t,func:n})}})),Mn[$o(o,2).name]=[{name:"wrapper",func:o}],qn.prototype.clone=function(){var e=new qn(this.__wrapped__);return e.__actions__=Io(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Io(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Io(this.__views__),e},qn.prototype.reverse=function(){if(this.__filtered__){var e=new qn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},qn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Wa(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=xn(t,e+a);break;case"takeRight":e=wn(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=xn(l,this.__takeCount__);if(!n||!r&&o==l&&h==l)return vo(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},Kn.prototype.at=va,Kn.prototype.chain=function(){return ma(this)},Kn.prototype.commit=function(){return new Un(this.value(),this.__chain__)},Kn.prototype.next=function(){this.__values__===o&&(this.__values__=ms(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},Kn.prototype.plant=function(e){for(var t,n=this;n instanceof Hn;){var r=Ki(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},Kn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof qn){var t=e;return this.__actions__.length&&(t=new qn(this)),(t=t.reverse()).__actions__.push({func:ga,args:[ra],thisArg:o}),new Un(t,this.__chain__)}return this.thru(ra)},Kn.prototype.toJSON=Kn.prototype.valueOf=Kn.prototype.value=function(){return vo(this.__wrapped__,this.__actions__)},Kn.prototype.first=Kn.prototype.head,et&&(Kn.prototype[et]=function(){return this}),Kn}();ht._=vn,(r=function(){return vn}.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)}},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)}},35880:(e,t,n)=>{var r=n(30514),o=n(95950);e.exports=function(e){return null==e?[]:r(e,o(e))}},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"}},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"}},35083:e=>{e.exports={root:"PSPDFKit-8yyas95udks18p394fepzz4n9c",expanded:"PSPDFKit-4a4w8vxdz3qm2pcgsdreydv72t",content:"PSPDFKit-4xrf431ss37nqh76k5db3ja96w",left:"PSPDFKit-7s5tce8pp2hsk5huzfuxez1gr9",right:"PSPDFKit-53fgdvrhz6gw1hw6bdctgq1t9y",mobileTextMarkup:"PSPDFKit-5cjsnmyjcke6b1v12yfgbz41gg",stickToBottom:"PSPDFKit-6kfdt35ea6cx8yeepx58n36vmj",fixedHeight:"PSPDFKit-5f5bztx4e8cyvfqegfp7b8wthw",control:"PSPDFKit-443h9wb93vz3ncxwx1m5fdwczf",selectBox:"PSPDFKit-7m8dfjh7avxk6eweakkjyh6xyd",textFormatControls:"PSPDFKit-713qj5u5gbp169rww4vvs3uac",controlWrapper:"PSPDFKit-4h4nb13c68hupg148pgyvzqd9f",controlWrapperAutoWidth:"PSPDFKit-6xaanvujukmusu5r1tv594b12u",separator:"PSPDFKit-3vb4yamdnmg7g9xnhd6yk22phr",form:"PSPDFKit-4cdb93w5e9ug2gjhtp66ummy9y",formGroup:"PSPDFKit-5wuw8bj8khzgeg84fnwh7kh6sn",button:"PSPDFKit-nwjc4czbh63dp4kvymek1fa3e",rotateButton:"PSPDFKit-sja59fxys18kkmu18xy6hph1s",measurementToolbarButton:"PSPDFKit-c3779mg2s6295w7bzec9269ub",iconOnlyMobile:"PSPDFKit-3xypkvwg7p8nvzw3r5s1buz9ej",blendModeSelect:"PSPDFKit-7gmgduz1enf1gxbhyfgf6e75hf",fontFamilySelect:"PSPDFKit-5r3wt2zcuevj4sv3duqd61jwmv",fontSizeSelect:"PSPDFKit-6wmznmmpnx14v21nf84mdrgcjn",colorSelect:"PSPDFKit-s6seujr5t4rukk7rxf3xkz55e",endLineCapSelect:"PSPDFKit-3g7scgbk9uy7r46ajp7k1jjfbv",startLineCapSelect:"PSPDFKit-4h8xfhv4hcmbz7pprrj5g8dddv",strokeDashArraySelect:"PSPDFKit-c55swym84na3uj8cbws3nfkvk",colorSelectButton:"PSPDFKit-7eqxqzsm46bunvt6wn6a96cph7",controlIsDisabled:"PSPDFKit-54dwj7qcngkpxsybb6fqkr7y51",textAnnotationOpacitySlider:"PSPDFKit-2mcx41qn64buedadzqmun4x439",annotationNoteButton:"PSPDFKit-8ax4j3a47u9hsgjmxfqh4s4b59",deleteButton:"PSPDFKit-64vjbtpmt1hrduq893ygvk8vse",buttonNoBorder:"PSPDFKit-v8tqx1qvfp1vbwuttpp622dr3",noteIconLabel:"PSPDFKit-4cag238pz8y3y7dh5jbngjmrzs",applyRedactionsButton:"PSPDFKit-2hdx47smz78g3s16p3r4j4dgty",formDesignerButton:"PSPDFKit-2annhwtak67ncv4t85ctg2y3mz",isActive:"PSPDFKit-2vn1euub4mwbphwqwgfs1891h9",disableEditing:"PSPDFKit-p1au3zb7x12z2rhdhxt23urrf",disabledButton:"PSPDFKit-3jfra6hbvv4uav6ycenbqaya53",icon:"PSPDFKit-4qyrxjw4v89xuqdkqa4k8ztzzu",focusRing:"PSPDFKit-21r1nktvgb352rd4c4yy57pz9g",fontFamily:"PSPDFKit-7gzw1kmadbfq1tnmw7d1w7zxd1",dropdownMenu:"PSPDFKit-3ytv364gpnrm7x19bnbmeyg8f8",warningButton:"PSPDFKit-46sarmfrc8jg6s66bqgfefbjjh",warningButtonIcon:"PSPDFKit-4zhmsmuwkhtpwtruurtrcn2q8j",radioButtonWarningLabel:"PSPDFKit-54kg6hjakpubj7vt368nk674tz",colorPickerDropdownMenu:"PSPDFKit-2nazf4z9xd7xjtyhnbhe7rqgep",colorItem:"PSPDFKit-2kf3vca84fgs4vq9s7zs1gpcmp",deleteButtonIsVisibleInTouchDevices:"PSPDFKit-8gqc3tnvh9jka9muq4a9t5ahej",colorSvg:"PSPDFKit-5c7qnuw3hacprzg2xwyca31kpu",lineCapsDashArrayMenu:"PSPDFKit-46k4525rumt3dyxruh7yn6ftbe",strokeDashArrayMenu:"PSPDFKit-2ujy7afe1awfhuh9ymbm6bme7t",nativeDropdown:"PSPDFKit-4prbc6dhxp9ma6y7x5bw6vwpyu",fontFamilyNativeFlexbox:"PSPDFKit-2kq3mk8tfsg87ukm5zvcxchay3",fontSizeNativeFlexbox:"PSPDFKit-77brcq5bxx44kv6p84cffgnrfh",fontColorControl:"PSPDFKit-5frf4ykayzzn33hp3c5h7em7an",overlayTextInput:"PSPDFKit-2skb7mhe9t63pg2ukxcsw49xsr",overlayTextMargin:"PSPDFKit-3rsn1zkbd3dgwrjegb8g9hvhhg",groupWrapper:"PSPDFKit-2jq33zcqjvm19mjme567rvfrrm",groupDescription:"PSPDFKit-3xk6qkbjafwv7228ck9bx347w6",overlayInput:"PSPDFKit-7jwg5rgcerucffvtbsmxvfb7zk",radioInput:"PSPDFKit-4e75mg661j3ax96qwbdmpzpsb4",applyRedactionsWrapper:"PSPDFKit-2u9q2pe1ftds2f7qj2g4w622vw",customIconSvg:"PSPDFKit-6jesjcs8hzf3yy3bqdg9kv3hk7",snappingCheckbox:"PSPDFKit-7bm2dwvsr17e373y82u42rsemg",radioGroupWrapper:"PSPDFKit-2x6urux4z76dkhv9azjrwtw1r6",reverseRow:"PSPDFKit-41f3k1r3a4wcjyvwb632qbpsar",measurementToolbar:"PSPDFKit-8an6xzj8dczndqf5kkqj5bmdbb",measurementBackButton:"PSPDFKit-5zh4b5sq7ky7hj92aqd24n3cec",pointSnappingToggleButtonWrapper:"PSPDFKit-5y5uj8j53b14ftvfmra5n2fyyy",pointSnappingToggleButton:"PSPDFKit-6rhfuqge1pjsww21nyns7uzwz3",textInput:"PSPDFKit-28p9qe5v9wa12h9abqanj7759r",textInputField:"PSPDFKit-2dbzger7c772nf61kqx2yj1snn",inputDisabled:"PSPDFKit-37jqdeb6j87paw3ang9yrcet45",wrapper:"PSPDFKit-6pxk5ky2kj8jh4j1mw616vg41d",arrowDropdownBtn:"PSPDFKit-pynbrvdg7hats6u5gzc58czkp",fontSizeDropdownBtn:"PSPDFKit-8uffc57cupxw72ujvccyd5u75q",item:"PSPDFKit-4v7qu3gbmmmxc2v2hdycthse1t"}},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"}},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"}},58619:e=>{e.exports={root:"PSPDFKit-6pk75qzdg2ukj6fscjncywz97r",input:"PSPDFKit-5nhvbbak97n275vs6wmzzmeuwc"}},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",chromeSelectionWorkaround:"PSPDFKit-55tte6u6fczpks4kxqrywvkhcv",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"}},83672:e=>{e.exports={root:"PSPDFKit-369qag2kn88x7fd7hzmy37u7jj",expanded:"PSPDFKit-s88hmm2u6mr4p6a34q6p5x97j",content:"PSPDFKit-2xkt2dmssjrt1zt3392unparpj",left:"PSPDFKit-22vuhdxbyg68mzx1mpbw51te8s",right:"PSPDFKit-8yz513hepw5dtea8yuyyc36z3g",mobileTextMarkup:"PSPDFKit-7p5sgv4my75nm8c7s61pavhw9k",stickToBottom:"PSPDFKit-4s922kjq16ky2tuz2stu8cmevf",fixedHeight:"PSPDFKit-3yctv5gp7m63pzzfqmcn2vwzsu",control:"PSPDFKit-5c3edpftcxt25778bnf8dge8wm",selectBox:"PSPDFKit-2td3u6fzb1juvzark5t2sx4q2k",textFormatControls:"PSPDFKit-5aqdkx2cvj2jkgvavhn63b9ng2",controlWrapper:"PSPDFKit-56wa92tpx7h9ndndf4p4ntj594",controlWrapperAutoWidth:"PSPDFKit-7yq1g1auatabjgr9redkv9mw4z",separator:"PSPDFKit-4dbdwzw5vf7q7u9tzye7tg1nrb",form:"PSPDFKit-6k49n5ndgcc66dsatpj5sjmvzv",formGroup:"PSPDFKit-6daq73jrkrpvw8as2bjg158s14",button:"PSPDFKit-fcgb4uy1g1393vcttkd834zya",rotateButton:"PSPDFKit-6yuyamdwf1rrwnzc2w8fqr4pjd",measurementToolbarButton:"PSPDFKit-29bp4qx2ar9g3bkzyq9mtha47h",iconOnlyMobile:"PSPDFKit-57jstkypwesnde2vkmqgh9jdhc",blendModeSelect:"PSPDFKit-8925upm91judwppvv9p55bukww",fontFamilySelect:"PSPDFKit-6j8484gf6zuru867h7zbjhwpsr",fontSizeSelect:"PSPDFKit-47dkg274amuhtuvgmphaa3qbp8",colorSelect:"PSPDFKit-6kf14wyby256uusycuansuqden",endLineCapSelect:"PSPDFKit-496rvwdezqxaryf6ba6wew6ysj",startLineCapSelect:"PSPDFKit-628jqdm82emd3wd8ywct68fvp2",strokeDashArraySelect:"PSPDFKit-6fdkgc1bgv67zv1wegm6hsq355",colorSelectButton:"PSPDFKit-58854re4pgbwg56mdaznmjjscz",controlIsDisabled:"PSPDFKit-5z4at4466ca8t6dkug1bqpq81",textAnnotationOpacitySlider:"PSPDFKit-8uywmag1h1x3ypdz5b98crr775",annotationNoteButton:"PSPDFKit-8tn5aruncqkpg83c6e9e6yv53r",deleteButton:"PSPDFKit-59bjkj2c9dfb828xaun8u4uq5q",buttonNoBorder:"PSPDFKit-5gsachaj1r6ar3h4ru679tq718",noteIconLabel:"PSPDFKit-4bkwv3nn67k2hqt55w19s4dvs4",applyRedactionsButton:"PSPDFKit-4bdfdwv6dxjwygm9tw1zmjrta9",formDesignerButton:"PSPDFKit-3pymza1pztyu17t83dfx3cmmsm",isActive:"PSPDFKit-382u1rdjb1tf6tnk2q2g7kgvgp",disableEditing:"PSPDFKit-48d85wg1rgb1utxa2a4fvw2vth",disabledButton:"PSPDFKit-cmgrqrz9uxy4sb9vg43t341c1",icon:"PSPDFKit-8xb3dqw6xuht2n573uhuknfp2k",focusRing:"PSPDFKit-52c5dtm21r4933mu2fkpjpe6uk",fontFamily:"PSPDFKit-5kgz7sh1trs8k2a4xw51qvusej",dropdownMenu:"PSPDFKit-psd9e4tcte8ac4k6jmkt1wfeu",warningButton:"PSPDFKit-8zkbczvhbtdyv5utgdt42896wt",warningButtonIcon:"PSPDFKit-2bmrfq7hm8z4thd49fdtpzxewe",radioButtonWarningLabel:"PSPDFKit-6q2rpnx5br9xmymy4hxdvc9atg",colorPickerDropdownMenu:"PSPDFKit-mjt1a3qgrvvxan7b2eet56kkt",colorItem:"PSPDFKit-3radjttaddx7fe6dnnreugbam2",deleteButtonIsVisibleInTouchDevices:"PSPDFKit-7uud28jq3crfqs4f4edufdekkf",colorSvg:"PSPDFKit-5jpt4x4a9kj7rf7d24shsfp48k",lineCapsDashArrayMenu:"PSPDFKit-3fweswjpkq7dt55fw6t438rgun",strokeDashArrayMenu:"PSPDFKit-3hmu51e1ur6hrmfyzz2cru1c48",nativeDropdown:"PSPDFKit-5fwcr59aaugp5fp73hthrqwxw9",fontFamilyNativeFlexbox:"PSPDFKit-5p5hpd3y1t7kjkjpn6cyqaqptj",fontSizeNativeFlexbox:"PSPDFKit-3v6m9ae9v1gsx87x46mg6kjmzf",fontColorControl:"PSPDFKit-67wu3hjpwubg5cqg8c94vydj5a",overlayTextInput:"PSPDFKit-41gfyk1yj6dkqvg8px6c7j3sec",overlayTextMargin:"PSPDFKit-43q9sy7pzu933w9kdbph2ahftx",groupWrapper:"PSPDFKit-77hntfhrv9fmz6c5684u5bkz7s",groupDescription:"PSPDFKit-7kmmurpd341ujzyvezu9ecj88h",overlayInput:"PSPDFKit-3fu4z9m4y47mmezmqbsmsg6u6f",radioInput:"PSPDFKit-8pbq1nn2qbdp1czxjuu7bjw2ks",applyRedactionsWrapper:"PSPDFKit-6w6h956ezp7gtq4cmy2r5mkyhu",customIconSvg:"PSPDFKit-6ep9xddvqffd53nu5e72pbdbgj",snappingCheckbox:"PSPDFKit-717y4rg4qa1pc652h8cg793m4d",radioGroupWrapper:"PSPDFKit-4xdm97phakaezcxf6wpdxn2tjm",reverseRow:"PSPDFKit-62hyggwkdx954k8f821btn7zeh",measurementToolbar:"PSPDFKit-2wv2dfhgdk3dpbha4mv9u16vs",measurementBackButton:"PSPDFKit-6dpm8fme3awumu6c44rktfucs2",pointSnappingToggleButtonWrapper:"PSPDFKit-4y4mzezsayhjmmtm9qqkgywcsh",pointSnappingToggleButton:"PSPDFKit-8grpnn6cc1r855m2st438et1tg",container:"PSPDFKit-zmwf99thxv6fcrc5fedznzzbf",buttonContainer:"PSPDFKit-5xkwu35z1pdufxyge2fpn149wt",contentEditorButton:"PSPDFKit-8p5cvevhmuv7u5wjndvwnbnu5w",saveButton:"PSPDFKit-2aekynqmf5d2unsgpe2a63pqe7",fontStyleBtn:"PSPDFKit-tb2p4fkm5haam7ptsvqb6c982",fontStyleBtnBorderless:"PSPDFKit-5hv5vgzkpzspks749ufhhvfz1k",activeFontStyleBtn:"PSPDFKit-3y1g2avp88swge652xu9nj312z",iconButton:"PSPDFKit-792vfa9s6t83dgghq4y7ghk2fj"}},43215:e=>{e.exports={root:"PSPDFKit-6wj1ne12vnarkud1xme1m8q59e",expanded:"PSPDFKit-8dvj6jpqdurcexw9s38nyrdusm",content:"PSPDFKit-ng2p7yzx55dk3e8yd33ucyq3w",left:"PSPDFKit-2nxj8qm7t143fbftj5wc5fkpmh",right:"PSPDFKit-8hmxpj5ufr2dmugsrzsfj5w24w",mobileTextMarkup:"PSPDFKit-5whgpdfnjnj445bw24d7d2eepu",stickToBottom:"PSPDFKit-qg3hbxzy2wa7d7kn2kyb5hfg6",fixedHeight:"PSPDFKit-fw1d4hymsqsunxnj7htn2vejg",control:"PSPDFKit-cvx8h4gvhqzqc8bb9wcmvaxnc",selectBox:"PSPDFKit-8p1jwd1vdxc1uu5kv9x8p6kgp5",textFormatControls:"PSPDFKit-4tf1hj3ua2348x3vfjq2ckjdzj",controlWrapper:"PSPDFKit-698j5mv28ddfb1zzrmuuvu4bgt",controlWrapperAutoWidth:"PSPDFKit-8rw1bsyhe4kbrshjzkbxn2pxt9",separator:"PSPDFKit-2p1w8qyfeab7u2r61e5xm9basn",form:"PSPDFKit-7x5nveetga7f3u3eyhc2y9z693",formGroup:"PSPDFKit-4m86pvrmtk7xh9sv3z47hqfan",button:"PSPDFKit-8sgpeb7apq77q6pg14srm485gf",rotateButton:"PSPDFKit-67pvyt6s62cm85bnpjx6pbnnxh",cancelButton:"PSPDFKit-8cc6ksf43ant6wkp5gxwmyn376",measurementToolbarButton:"PSPDFKit-5pby2mjv6be8mvvy41rpp7dkwn",iconOnlyMobile:"PSPDFKit-2rtyr394stgbvv5j9jd2mrzx4w",blendModeSelect:"PSPDFKit-56zf8cu97f7wx6varc1jbjbc1t",fontFamilySelect:"PSPDFKit-322qz987bpbdyu82atqpttzvvy",fontSizeSelect:"PSPDFKit-3spwsrcuq4a58mafezc2hew2hm",colorSelect:"PSPDFKit-4evwmwkh2v68zx97dy8htnw1he",endLineCapSelect:"PSPDFKit-5g195rx1hwggkduwfaghaguwp8",startLineCapSelect:"PSPDFKit-4h81esfk99wjjw1j1e4evv86k6",strokeDashArraySelect:"PSPDFKit-8vcucy3gdsu18nrccy3sfz6e8e",colorSelectButton:"PSPDFKit-47tvrbutrws584y86zkht7ugrh",controlIsDisabled:"PSPDFKit-3z6z4mnx2mybf2dduwbnu4ghbx",textAnnotationOpacitySlider:"PSPDFKit-7dcpygp7ucqsxtt8jqu8wqaek8",annotationNoteButton:"PSPDFKit-2ztmuxhn7vkbcnujg5fjs2nxk6",deleteButton:"PSPDFKit-74uqksjtt33kw457gbgm6cjhar",buttonNoBorder:"PSPDFKit-wnrcu53f16qwbavnhtrcsrvtt",noteIconLabel:"PSPDFKit-3j7ttk21fapf4hjzymwfaax2pp",applyRedactionsButton:"PSPDFKit-4jweuxb68jk1sdm8kfuh5e2v3b",formDesignerButton:"PSPDFKit-26sazeqcf3gq4uzpnpv7rxy5tc",isActive:"PSPDFKit-36xa88kvhztmqf3w9bw4r5ux2b",disableEditing:"PSPDFKit-7ksmq2q9vqb2a84h6pknr59vq",disabledButton:"PSPDFKit-4frspfy8ydaf2dspz1w2fe24sm",icon:"PSPDFKit-6a17y1zq5nmhnd7rsvvnnp3u82",focusRing:"PSPDFKit-2kd6b54vbgtjvjpw1vfjnz3gxa",fontFamily:"PSPDFKit-5ju67k328yc7tj3jx5vxn2tn9q",dropdownMenu:"PSPDFKit-4rm6x2vr78j36rwf82x8zcfxaf",warningButton:"PSPDFKit-2jdyb25hw79fahb16kjd7nuauu",warningButtonIcon:"PSPDFKit-6gnk29arwa3bmx79suwfyneh29",radioButtonWarningLabel:"PSPDFKit-76w7jmjqqnsz53a6hk7gjuqjfv",colorPickerDropdownMenu:"PSPDFKit-7xact8a8nm7egrfqd6jm8dexja",colorItem:"PSPDFKit-5swkhzjuhg7a1yzus1srcazf4",deleteButtonIsVisibleInTouchDevices:"PSPDFKit-6j136ndjfdbtgth4w1223r3b8v",colorSvg:"PSPDFKit-53pmrz6mhqkv25rduwt3r74tdf",lineCapsDashArrayMenu:"PSPDFKit-6kht9xjauanscqhyehtvh2m7kf",strokeDashArrayMenu:"PSPDFKit-64qwd21qw14a1hs2qywq9dktfv",nativeDropdown:"PSPDFKit-51ppvqecyde7wtftnkhpvreywa",fontFamilyNativeFlexbox:"PSPDFKit-47ujkffabzpr19w6jed6s7rn8s",fontSizeNativeFlexbox:"PSPDFKit-79wa34vt8h1dey55mwshznckvh",fontColorControl:"PSPDFKit-59kfug1yak6p54pbhwzyzp8nqv",overlayTextInput:"PSPDFKit-2bv4uu555xwcfzm4cbz9xw1575",overlayTextMargin:"PSPDFKit-7y73pgnyhcbyab2r86s5wpf3tq",groupWrapper:"PSPDFKit-3n3jywv8np58aypaxcq1dxaka4",groupDescription:"PSPDFKit-7h2nqj8dz99huxsdvz85vzqtkv",overlayInput:"PSPDFKit-3sskmdn9q2pttd7gnbgtfx1svm",radioInput:"PSPDFKit-5161whx8v77nvzdxwn92nren7h",applyRedactionsWrapper:"PSPDFKit-35zv6qfn2dk55st59jvbvkebe4",customIconSvg:"PSPDFKit-6zcvxqm7p1fu6peaqcvy1ggxur",snappingCheckbox:"PSPDFKit-87rtaenbkbsa4vh76fdk49yn3",radioGroupWrapper:"PSPDFKit-7n79z1dfc6drdkd4q859desfw4",reverseRow:"PSPDFKit-7h73prxvatb9v6feg135wrgpnu",measurementToolbar:"PSPDFKit-7ftvxz7pwnjfrf9p9bvx4kdaem",measurementBackButton:"PSPDFKit-5zxmaq2rs3z7z1ycb76vnfp8s7",pointSnappingToggleButtonWrapper:"PSPDFKit-54tjnzkmwp6xxxj9x2w181zxyx",pointSnappingToggleButton:"PSPDFKit-4jxexvux8xqt39asa2n5j1bhaz",container:"PSPDFKit-2zcrcumxc9rs6exf4ygg6wxhud",buttonContainer:"PSPDFKit-4su7z3fj53danm9m8sfmsun6mh",cropButton:"PSPDFKit-3fqbszrmhfm53fj9m672rspbb9",cropButtonDisabled:"PSPDFKit-3yfe86869dr14nnq3hdqmpstt3",cancelDesktop:"PSPDFKit-5q4w3drt2wva22st2m2zv3jdy9",cancelMobile:"PSPDFKit-46c99tbpsdnq21yere2qsvz9cs",desktopButtonText:"PSPDFKit-5uhy32eduhqeagjxsx8v1dsupn",mobileButtonText:"PSPDFKit-89hzg3dmpqdp1bb33by963n2me"}},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"}},88375:e=>{e.exports={root:"PSPDFKit-8mw7cgx9nrd1yg35kkhqyhksqy",expanded:"PSPDFKit-3e1ymauppttrz41jzw3mzc2t65",content:"PSPDFKit-2eu14kmrb8nn2j13et7k8kxgy2",left:"PSPDFKit-768zuvadpfp2s99ztcwnaee5jp",right:"PSPDFKit-263brxaxc464ym7sfe4phds8ah",mobileTextMarkup:"PSPDFKit-39d47rs5fq7kcjer959hp5rx8d",stickToBottom:"PSPDFKit-8y6ce6n5884k7zrpr3uqnz7htb",fixedHeight:"PSPDFKit-pqz79rmnz1jk37ra4q9jr8t33",control:"PSPDFKit-628h193kd9qu5d9hhsg3cdnuza",selectBox:"PSPDFKit-6nbc7qagvqu9yd6yet13hb6rhj",textFormatControls:"PSPDFKit-48x8nkebmfpqss6a3u7rs8g9q5",controlWrapper:"PSPDFKit-5m1cnawh6718mpdfvfzbb11abd",controlWrapperAutoWidth:"PSPDFKit-7ntyew6gjjyyu8e3azuddfrhnp",separator:"PSPDFKit-6c1mz88rtks35wu1xhbrekd71a",form:"PSPDFKit-t6r39wvb2q9vjm8wcyu4ean8",formGroup:"PSPDFKit-5nvf2c6yp9b7ynxetxyjq8ejcn",button:"PSPDFKit-39fu85k99jh2maw1gkthhh4pas",rotateButton:"PSPDFKit-6usxmcuq89wy8smur4v8ryhswg",cancelButton:"PSPDFKit-3dr4ygvb5bf362jg5fmzym38e3",formDesignerButton:"PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj",measurementToolbarButton:"PSPDFKit-8tz941rhqxq9a7km8terwandnm",iconOnlyMobile:"PSPDFKit-21jwyumejben4aqq13bksg3xh8",blendModeSelect:"PSPDFKit-75ttad8xww9mpzzprak2aac974",fontFamilySelect:"PSPDFKit-6ft5xhbubs9uamqn8s4zfnq4b4",fontSizeSelect:"PSPDFKit-w47nwqgy1154yrmztu2mnwzpm",colorSelect:"PSPDFKit-2bnqvejyfcr2xpnvmzxrzqhapp",endLineCapSelect:"PSPDFKit-zxa6uqty5r8s91cyrkfmxkc93",startLineCapSelect:"PSPDFKit-275wshr5dpqatccw8ux11qqk9s",strokeDashArraySelect:"PSPDFKit-3hxmaadpfcejwvjvjd3srb4nq4",colorSelectButton:"PSPDFKit-7ub6g8tsdw1g86bt2kvn83wa7p",controlIsDisabled:"PSPDFKit-48byv3uppm1nzjqfybkzwnzjf",textAnnotationOpacitySlider:"PSPDFKit-8j3bg3d3dbcpkjba4qpgt6mtwx",annotationNoteButton:"PSPDFKit-7ryrry1x131tjsax7f4kwd8zfz",deleteButton:"PSPDFKit-4fg19pph8cyagbqvnfr8fms11",buttonNoBorder:"PSPDFKit-769hazgdc7wc335k78212j8emp",noteIconLabel:"PSPDFKit-73qv358utjtrzr85ky96uevmtg",applyRedactionsButton:"PSPDFKit-5uud5zxk4ybq2mv2nt3caxrq3g",isActive:"PSPDFKit-3z1atvkwb5ng185njjj5rz7xbz",disableEditing:"PSPDFKit-fts7hzse3qdkgfmxd89z1sxgg",disabledButton:"PSPDFKit-4q6ah6p4esufmffveqzpjh47b",icon:"PSPDFKit-2s797jk128ay8vfscex2bv7kfe",focusRing:"PSPDFKit-4nuygfwr1ru425pyg3yjydvr61",fontFamily:"PSPDFKit-3fzefd39fwgk1qdbxv6jdjs8f7",dropdownMenu:"PSPDFKit-5cn9vbp8wrnrmnk914jdmynjve",warningButton:"PSPDFKit-88kdpafyrs8h3rj4zjbrrted2p",warningButtonIcon:"PSPDFKit-6yj82gkzhm3npm9qtbttnwhvqs",radioButtonWarningLabel:"PSPDFKit-5kx5x5nrf9ffzpw127n7tdvrqw",colorPickerDropdownMenu:"PSPDFKit-6m8awubd892h2q7bxq6ucu9yx5",colorItem:"PSPDFKit-5z24bvabee7axqkv39se95kj79",deleteButtonIsVisibleInTouchDevices:"PSPDFKit-5uu5r98quqvpyqqvmhf7eqx6n8",colorSvg:"PSPDFKit-7sx7anuampjzrt9mnvv7zccdny",lineCapsDashArrayMenu:"PSPDFKit-84hychtak5eqe99svt8mp3g7gq",strokeDashArrayMenu:"PSPDFKit-3wpt6233mxj93ajtgz97kkfp95",nativeDropdown:"PSPDFKit-75syshz3pwrn5szey2w1zrbwhq",fontFamilyNativeFlexbox:"PSPDFKit-5wjc8qvxn2shc717ghes4hwe4r",fontSizeNativeFlexbox:"PSPDFKit-4axb3jsn3p35zcvz2qkf1627s1",fontColorControl:"PSPDFKit-3gbc7z42ncvpe6ecjsfvekn6bf",overlayTextInput:"PSPDFKit-25fpzkeppwbvrayjgduw8retb5",overlayTextMargin:"PSPDFKit-8q8cpk21u1e4cgjxkuetq25ac5",groupWrapper:"PSPDFKit-2syhxbxpfgp19jpz3z5x49q224",groupDescription:"PSPDFKit-7eua9n76z6wh9hyqtrgxabwhyp",overlayInput:"PSPDFKit-8san6jac5e16c3cmp3udzsyzq9",radioInput:"PSPDFKit-2bhr7dx4y8a6z7s598sms29ggb",applyRedactionsWrapper:"PSPDFKit-uqsh2mfe72fsz9emybm4vb6u9",customIconSvg:"PSPDFKit-6s24914j26xzdhgmaqjbdae7a8",snappingCheckbox:"PSPDFKit-7kdp2eku1rven1vm3eug4x6su9",radioGroupWrapper:"PSPDFKit-5mud2pd31puwn1df9zjr639yy4",reverseRow:"PSPDFKit-84kcnetmpfg2e64pd3wmwkkbud",measurementToolbar:"PSPDFKit-2f6g3rm6gpedqtnwpk94cu5b6q",measurementBackButton:"PSPDFKit-2q1r39e1v2u5ekry3v7vbc9yr7",pointSnappingToggleButtonWrapper:"PSPDFKit-4g2ngud8r3s5zduhf5fa58c69y",pointSnappingToggleButton:"PSPDFKit-7bbcwaht73ggqqhpqdhb435dan",container:"PSPDFKit-48mktwcp2g29yu9eg22p2pbvmh",formDesignerContainer:"PSPDFKit-8dznuywttgafn2v7zy61c6ctg4",buttonContainer:"PSPDFKit-5t9fk8ex9uwch2qhza7wa1pacw",cropButton:"PSPDFKit-2x4tn85f3krgk9xb8r993atjue",cropButtonDisabled:"PSPDFKit-6uhymu5y17pjr47gp9zdvgf3bd",cancelDesktop:"PSPDFKit-4wcvaawwq3jw743mwnp8vtf9df",cancelMobile:"PSPDFKit-7tretxh1ue798paef14ryrb6q6",desktopButtonText:"PSPDFKit-649k7389pwcsgmvwdt2yuhu7n3",mobileButtonText:"PSPDFKit-3uxhzwe7ph1xrpb89482k7hrd",formDesignerButtonActive:"PSPDFKit-7dgtuxjugwv9wr6k94pfvchgzt",spacer:"PSPDFKit-3nf3mgqa1mk6xs968ztk8n1ped",measurementValue:"PSPDFKit-7kz6k3947em3q3sp47s5cd3u3m"}},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"}},55480:()=>{},45228:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,s,l=o(e),c=1;c<arguments.length;c++){for(var u in a=Object(arguments[c]))n.call(a,u)&&(l[u]=a[u]);if(t){s=t(a);for(var d=0;d<s.length;d++)r.call(a,s[d])&&(l[s[d]]=a[s[d]])}}return l}},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,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,fD:()=>u.fD,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(19663),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";Object.defineProperty(t,"__esModule",{value:!0}),t.DebounceInput=void 0;var r=i(n(96540)),o=i(n(20181));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return a="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},a(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}function l(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 c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(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 d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function p(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?f(e):t}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}}),t&&d(e,t)}(l,e);var t,n,i,a=p(l);function l(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),g(f(t=a.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(c(c({},e),{},{target:c(c({},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,o.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(){var e=t.props.onChange;e.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(c(c({},e),{},{target:c(c({},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=l,(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,o=n.element,i=(n.onChange,n.value,n.minLength,n.debounceTimeout,n.forceNotifyByEnter),a=n.forceNotifyOnBlur,l=n.onKeyDown,u=n.onBlur,d=n.inputRef,p=s(n,["element","onChange","value","minLength","debounceTimeout","forceNotifyByEnter","forceNotifyOnBlur","onKeyDown","onBlur","inputRef"]),h=this.state.value;e=i?{onKeyDown:this.onKeyDown}:l?{onKeyDown:l}:{},t=a?{onBlur:this.onBlur}:u?{onBlur:u}:{};var f=d?{ref:d}:{};return r.default.createElement(o,c(c(c(c({},p),{},{onChange:this.onChange,value:h},e),t),f))}}])&&u(t.prototype,n),i&&u(t,i),l}(r.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},50749:(e,t,n)=>{"use strict";n.d(t,{QP:()=>ve,i3:()=>Ke,V7:()=>We,Hd:()=>qe});var r=n(96540);const o=(0,r.createContext)({dragDropManager:void 0});var i,a=n(74848);function s(e,t,...n){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 r=0;e=new Error(t.replace(/%s/g,(function(){return n[r++]}))),e.name="Invariant Violation"}throw e.framesToPop=1,e}}!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(i||(i={}));const l="dnd-core/INIT_COORDS",c="dnd-core/BEGIN_DRAG",u="dnd-core/PUBLISH_DRAG_SOURCE",d="dnd-core/HOVER",p="dnd-core/DROP",h="dnd-core/END_DRAG";function f(e,t){return{type:l,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}function m(e){return"object"==typeof e}const g={type:l,payload:{clientOffset:null,sourceClientOffset:null}};function v(e){return function(t=[],n={publishSource:!0}){const{publishSource:r=!0,clientOffset:o,getSourceClientOffset:i}=n,a=e.getMonitor(),l=e.getRegistry();e.dispatch(f(o)),function(e,t,n){s(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach((function(e){s(n.getSource(e),"Expected sourceIds to be registered.")}))}(t,a,l);const u=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==u)return void e.dispatch(g);let d=null;if(o){if(!i)throw new Error("getSourceClientOffset must be defined");!function(e){s("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(i),d=i(u)}e.dispatch(f(o,d));const p=l.getSource(u).beginDrag(a,u);if(null==p)return;!function(e){s(m(e),"Item must be an object.")}(p),l.pinSource(u);const h=l.getSourceType(u);return{type:c,payload:{itemType:h,item:p,sourceId:u,clientOffset:o||null,sourceClientOffset:d||null,isSourcePublic:!!r}}}}function y(e){return function(){if(e.getMonitor().isDragging())return{type:u}}}function b(e,t){return null===t?null===e:Array.isArray(e)?e.some((e=>e===t)):e===t}function w(e){return function(t,{clientOffset:n}={}){!function(e){s(Array.isArray(e),"Expected targetIds to be an array.")}(t);const r=t.slice(0),o=e.getMonitor(),i=e.getRegistry();!function(e,t,n){s(t.isDragging(),"Cannot call hover while not dragging."),s(!t.didDrop(),"Cannot call hover after drop.");for(let t=0;t<e.length;t++){const r=e[t];s(e.lastIndexOf(r)===t,"Expected targetIds to be unique in the passed array.");s(n.getTarget(r),"Expected targetIds to be registered.")}}(r,o,i);return function(e,t,n){for(let r=e.length-1;r>=0;r--){const o=e[r];b(t.getTargetType(o),n)||e.splice(r,1)}}(r,i,o.getItemType()),function(e,t,n){e.forEach((function(e){n.getTarget(e).hover(t,e)}))}(r,o,i),{type:d,payload:{targetIds:r,clientOffset:n||null}}}}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){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){x(e,t,n[t])}))}return e}function _(e){return function(t={}){const n=e.getMonitor(),r=e.getRegistry();!function(e){s(e.isDragging(),"Cannot call drop while not dragging."),s(!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){s(void 0===e||m(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),l={type:p,payload:{dropResult:S({},t,a)}};e.dispatch(l)}))}}function C(e){return function(){const t=e.getMonitor(),n=e.getRegistry();!function(e){s(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:h}}}class E{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:v(e),publishDragSource:y(e),hover:w(e),drop:_(e),endDrag:C(e)}}(this);return Object.keys(n).reduce(((r,o)=>{const i=n[o];var a;return r[o]=(a=i,(...n)=>{const r=a.apply(e,n);void 0!==r&&t(r)}),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 k(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 z="function"==typeof Symbol&&Symbol.observable||"@@observable",P=function(){return Math.random().toString(36).substring(7).split("").join(".")},A={INIT:"@@redux/INIT"+P(),REPLACE:"@@redux/REPLACE"+P(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+P()}};function D(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 T(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(k(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(k(1));return n(T)(e,t)}if("function"!=typeof e)throw new Error(k(2));var o=e,i=t,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function u(){if(l)throw new Error(k(3));return i}function d(e){if("function"!=typeof e)throw new Error(k(4));if(l)throw new Error(k(5));var t=!0;return c(),s.push(e),function(){if(t){if(l)throw new Error(k(6));t=!1,c();var n=s.indexOf(e);s.splice(n,1),a=null}}}function p(e){if(!D(e))throw new Error(k(7));if(void 0===e.type)throw new Error(k(8));if(l)throw new Error(k(9));try{l=!0,i=o(i,e)}finally{l=!1}for(var t=a=s,n=0;n<t.length;n++){(0,t[n])()}return e}return p({type:A.INIT}),(r={dispatch:p,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(k(10));o=e,p({type:A.REPLACE})}})[z]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(k(11));function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}})[z]=function(){return this},e},r}const I=(e,t)=>e===t;function M(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const N={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function O(e=N,t){const{payload:n}=t;switch(t.type){case l:case c:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case d: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){M(e,t,n[t])}))}return e}({},e,{clientOffset:n.clientOffset});case h:case p:return N;default:return e}var r,o}const j="dnd-core/ADD_SOURCE",R="dnd-core/ADD_TARGET",F="dnd-core/REMOVE_SOURCE",B="dnd-core/REMOVE_TARGET";function L(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function V(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){L(e,t,n[t])}))}return e}const K={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function $(e=K,t){const{payload:n}=t;switch(t.type){case c:return V({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case u:return V({},e,{isSourcePublic:!0});case d:return V({},e,{targetIds:n.targetIds});case B:return-1===e.targetIds.indexOf(n.targetId)?e:V({},e,{targetIds:(r=e.targetIds,o=n.targetId,r.filter((e=>e!==o)))});case p:return V({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case h:return V({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}var r,o}function H(e=0,t){switch(t.type){case j:case R:return e+1;case F:case B:return e-1;default:return e}}const U=[],q=[];function W(e=U,t){switch(t.type){case d:break;case j:case R:case B:case F:return U;default:return q}const{targetIds:n=[],prevTargetIds:r=[]}=t.payload,o=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}(n,r);if(!(o.length>0||!function(e,t,n=I){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}(n,r)))return U;const i=r[r.length-1],a=n[n.length-1];return i!==a&&(i&&o.push(i),a&&o.push(a)),o}function G(e=0){return e+1}function Y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z(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){Y(e,t,n[t])}))}return e}function J(e={},t){return{dirtyHandlerIds:W(e.dirtyHandlerIds,{type:t.type,payload:Z({},t.payload,{prevTargetIds:(n=e,r="dragOperation.targetIds",o=[],r.split(".").reduce(((e,t)=>e&&e[t]?e[t]:o||null),n))})}),dragOffset:O(e.dragOffset,t),refCount:H(e.refCount,t),dragOperation:$(e.dragOperation,t),stateId:G(e.stateId)};var n,r,o}function X(e,t){return{x:e.x-t.x,y:e.y-t.y}}U.__IS_NONE__=!0,q.__IS_ALL__=!0;class Q{subscribeToStateChange(e,t={}){const{handlerIds:n}=t;s("function"==typeof e,"listener must be a function."),s(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!==U&&(e===q||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){s("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 s(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(s(t,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;return b(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(s(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,t={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&&!b(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?X((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?X(t,n):null}(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}}let ee=0;function te(e,t){t&&Array.isArray(e)?e.forEach((e=>te(e,!1))):s("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.")}const ne=void 0!==n.g?n.g:self,re=ne.MutationObserver||ne.WebKitMutationObserver;function oe(e){return function(){const t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}const ie="function"==typeof re?function(e){let t=1;const n=new re(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}:oe;class ae{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 se=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=ie(this.flush),this.requestErrorThrow=oe((()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()}))}},le=new class{create(e){const t=this.freeTasks,n=t.length?t.pop():new ae(this.onError,(e=>t[t.length]=e));return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}}(se.registerPendingError);function ce(e){const t=(ee++).toString();switch(e){case i.SOURCE:return`S${t}`;case i.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function ue(e){switch(e[0]){case"S":return i.SOURCE;case"T":return i.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function de(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 pe{addSource(e,t){te(e),function(e){s("function"==typeof e.canDrag,"Expected canDrag to be a function."),s("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),s("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);const n=this.addHandler(i.SOURCE,e,t);return this.store.dispatch(function(e){return{type:j,payload:{sourceId:e}}}(n)),n}addTarget(e,t){te(e,!0),function(e){s("function"==typeof e.canDrop,"Expected canDrop to be a function."),s("function"==typeof e.hover,"Expected hover to be a function."),s("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);const n=this.addHandler(i.TARGET,e,t);return this.store.dispatch(function(e){return{type:R,payload:{targetId:e}}}(n)),n}containsHandler(e){return de(this.dragSources,e)||de(this.dropTargets,e)}getSource(e,t=!1){s(this.isSourceId(e),"Expected a valid source ID.");return t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return s(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return s(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return s(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return ue(e)===i.SOURCE}isTargetId(e){return ue(e)===i.TARGET}removeSource(e){var t;s(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:F,payload:{sourceId:e}}}(e)),t=()=>{this.dragSources.delete(e),this.types.delete(e)},se.enqueueTask(le.create(t))}removeTarget(e){s(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:B,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const t=this.getSource(e);s(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){s(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,n){const r=ce(e);return this.types.set(r,t),e===i.SOURCE?this.dragSources.set(r,n):e===i.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}}function he(e,t,n={},r=!1){const o=function(e){const t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return T(J,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(r),i=new Q(o,new pe(o)),a=new E(o,i),s=e(a,t,n);return a.receiveBackend(s),a}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[i,s]=function(e){if("manager"in e){return[{dragDropManager:e.manager},!1]}const t=function(e,t=ye(),n,r){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,a.jsx)(o.Provider,{value:i,children:t})}));function ye(){return void 0!==n.g?n.g:window}(0,r.memo)((function({connect:e,src:t}){return(0,r.useEffect)((()=>{if("undefined"==typeof Image)return;let n=!1;const r=new Image;return r.src=t,r.onload=()=>{e(r),n=!0},()=>{n&&e(null)}})),null}));let be=!1,we=!1;class xe{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){s(!be,"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 be=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{be=!1}}isDragging(){if(!this.sourceId)return!1;s(!we,"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 we=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{we=!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 Se=!1;class _e{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}canDrop(){if(!this.targetId)return!1;s(!Se,"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 Se=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{Se=!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 Ce(e){return(t=null,n=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 s("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=>{ke(n,e),ke(t,e)}}):(0,r.cloneElement)(e,{ref:t})}(o,n?t=>e(t,n):e)}}function Ee(e){const t={};return Object.keys(e).forEach((n=>{const r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{const e=Ce(r);t[n]=()=>e}})),t}function ke(e,t){"function"==typeof e?e(t):e.current=t}function ze(e){return null!==e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Pe(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}class Ae{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(e=!1){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!Pe(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!Pe(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=Ee({dragSource:(e,t)=>{this.clearDragSource(),this.dragSourceOptions=t||null,ze(e)?this.dragSourceRef=e:this.dragSourceNode=e,this.reconnectDragSource()},dragPreview:(e,t)=>{this.clearDragPreview(),this.dragPreviewOptions=t||null,ze(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 De{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!Pe(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=Ee({dropTarget:(e,t)=>{this.clearDropTarget(),this.dropTargetOptions=t,ze(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}}const Te="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;class Ie{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 Me(){const{dragDropManager:e}=(0,r.useContext)(o);return s(null!=e,"Expected drag drop context"),e}function Ne(e,t,n){const o=Me(),i=function(e,t,n){const o=(0,r.useMemo)((()=>new Ie(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 s(null!=t,"spec.type must be defined"),t}),[e])}(e);Te((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 Oe(e,t){const n=[...t||[]];return null==t&&"function"!=typeof e&&n.push(e),(0,r.useMemo)((()=>"function"==typeof e?e():e),n)}var je=n(32017),Re=n.n(je);function Fe(e,t,n){const[o,i]=(0,r.useState)((()=>t(e))),a=(0,r.useCallback)((()=>{const r=t(e);Re()(o,r)||(i(r),n&&n())}),[o,e,n]);return Te(a),[o,a]}function Be(e,t,n){return function(e,t,n){const[r,o]=Fe(e,t,n);return Te((function(){const t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(o,{handlerIds:[t]})}),[e,o]),r}(t,e||(()=>({})),(()=>n.reconnect()))}function Le(e){return(0,r.useMemo)((()=>e.hooks.dragSource()),[e])}function Ve(e){return(0,r.useMemo)((()=>e.hooks.dragPreview()),[e])}function Ke(e,t){const n=Oe(e,t);s(!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=Me();return(0,r.useMemo)((()=>new xe(e)),[e])}(),i=function(e,t){const n=Me(),o=(0,r.useMemo)((()=>new Ae(n.getBackend())),[n]);return Te((()=>(o.dragSourceOptions=e||null,o.reconnect(),()=>o.disconnectDragSource())),[o,e]),Te((()=>(o.dragPreviewOptions=t||null,o.reconnect(),()=>o.disconnectDragPreview())),[o,t]),o}(n.options,n.previewOptions);return Ne(n,o,i),[Be(n.collect,o,i),Le(i),Ve(i)]}class $e{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 He(e,t,n){const o=Me(),i=function(e,t){const n=(0,r.useMemo)((()=>new $e(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)((()=>(s(null!=e.accept,"accept must be defined"),Array.isArray(t)?t:[t])),[t])}(e);Te((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 Ue(e){return(0,r.useMemo)((()=>e.hooks.dropTarget()),[e])}function qe(e,t){const n=Oe(e,t),o=function(){const e=Me();return(0,r.useMemo)((()=>new _e(e)),[e])}(),i=function(e){const t=Me(),n=(0,r.useMemo)((()=>new De(t.getBackend())),[t]);return Te((()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget())),[e]),n}(n.options);return He(n,o,i),[Be(n.collect,o,i),Ue(i)]}function We(e){const t=Me().getMonitor(),[n,o]=Fe(t,e);return(0,r.useEffect)((()=>t.subscribeToOffsetChange(o))),(0,r.useEffect)((()=>t.subscribeToStateChange(o))),n}},22551:(e,t,n)=>{"use strict";var r=n(96540),o=n(45228),i=n(20194);function a(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."}if(!r)throw Error(a(227));var s=new Set,l={};function c(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(l[e]=t,e=0;e<t.length;e++)s.add(t[e])}var d=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),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=Object.prototype.hasOwnProperty,f={},m={};function g(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 v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){v[e]=new g(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];v[t]=new g(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){v[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){v[e]=new g(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){v[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){v[e]=new g(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){v[e]=new g(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){v[e]=new g(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){v[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function w(e,t,n,r){var o=v.hasOwnProperty(t)?v[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!!h.call(m,e)||!h.call(f,e)&&(p.test(e)?m[e]=!0:(f[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(y,b);v[t]=new g(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(y,b);v[t]=new g(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(y,b);v[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){v[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)})),v.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){v[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)}));var x=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,S=60103,_=60106,C=60107,E=60108,k=60114,z=60109,P=60110,A=60112,D=60113,T=60120,I=60115,M=60116,N=60121,O=60128,j=60129,R=60130,F=60131;if("function"==typeof Symbol&&Symbol.for){var B=Symbol.for;S=B("react.element"),_=B("react.portal"),C=B("react.fragment"),E=B("react.strict_mode"),k=B("react.profiler"),z=B("react.provider"),P=B("react.context"),A=B("react.forward_ref"),D=B("react.suspense"),T=B("react.suspense_list"),I=B("react.memo"),M=B("react.lazy"),N=B("react.block"),B("react.scope"),O=B("react.opaque.id"),j=B("react.debug_trace_mode"),R=B("react.offscreen"),F=B("react.legacy_hidden")}var L,V="function"==typeof Symbol&&Symbol.iterator;function K(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=V&&e[V]||e["@@iterator"])?e:null}function $(e){if(void 0===L)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);L=t&&t[1]||""}return"\n"+L+e}var H=!1;function U(e,t){if(!e||H)return"";H=!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(e){if(e&&r&&"string"==typeof e.stack){for(var o=e.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])return"\n"+o[a].replace(" at new "," at ")}while(1<=a&&0<=s);break}}}finally{H=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?$(e):""}function q(e){switch(e.tag){case 5:return $(e.type);case 16:return $("Lazy");case 13:return $("Suspense");case 19:return $("SuspenseList");case 0:case 2:case 15:return e=U(e.type,!1);case 11:return e=U(e.type.render,!1);case 22:return e=U(e.type._render,!1);case 1:return e=U(e.type,!0);default:return""}}function W(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 C:return"Fragment";case _:return"Portal";case k:return"Profiler";case E:return"StrictMode";case D:return"Suspense";case T:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case P:return(e.displayName||"Context")+".Consumer";case z:return(e._context.displayName||"Context")+".Provider";case A:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case I:return W(e.type);case N:return W(e._render);case M:t=e._payload,e=e._init;try{return W(e(t))}catch(e){}}return null}function G(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Y(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Z(e){e._valueTracker||(e._valueTracker=function(e){var t=Y(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 J(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Y(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function X(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 Q(e,t){var n=t.checked;return o({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=G(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 te(e,t){null!=(t=t.checked)&&w(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=G(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")?oe(e,t.type,n):t.hasOwnProperty("defaultValue")&&oe(e,t.type,G(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(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 oe(e,t,n){"number"===t&&X(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ie(e,t){return e=o({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function ae(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=""+G(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 se(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function le(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:G(n)}}function ce(e,t){var n=G(t.value),r=G(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 ue(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var de="http://www.w3.org/1999/xhtml",pe="http://www.w3.org/2000/svg";function he(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 fe(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?he(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var me,ge,ve=(ge=function(e,t){if(e.namespaceURI!==pe||"innerHTML"in e)e.innerHTML=t;else{for((me=me||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=me.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 ge(e,t)}))}:ge);function ye(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 be={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},we=["Webkit","ms","Moz","O"];function xe(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||be.hasOwnProperty(e)&&be[e]?(""+t).trim():t+"px"}function Se(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=xe(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(be).forEach((function(e){we.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),be[t]=be[e]}))}));var _e=o({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 Ce(e,t){if(t){if(_e[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62))}}function Ee(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}}function ke(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ze=null,Pe=null,Ae=null;function De(e){if(e=ro(e)){if("function"!=typeof ze)throw Error(a(280));var t=e.stateNode;t&&(t=io(t),ze(e.stateNode,e.type,t))}}function Te(e){Pe?Ae?Ae.push(e):Ae=[e]:Pe=e}function Ie(){if(Pe){var e=Pe,t=Ae;if(Ae=Pe=null,De(e),t)for(e=0;e<t.length;e++)De(t[e])}}function Me(e,t){return e(t)}function Ne(e,t,n,r,o){return e(t,n,r,o)}function Oe(){}var je=Me,Re=!1,Fe=!1;function Be(){null===Pe&&null===Ae||(Oe(),Ie())}function Le(e,t){var n=e.stateNode;if(null===n)return null;var r=io(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(a(231,t,typeof n));return n}var Ve=!1;if(d)try{var Ke={};Object.defineProperty(Ke,"passive",{get:function(){Ve=!0}}),window.addEventListener("test",Ke,Ke),window.removeEventListener("test",Ke,Ke)}catch(ge){Ve=!1}function $e(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 He=!1,Ue=null,qe=!1,We=null,Ge={onError:function(e){He=!0,Ue=e}};function Ye(e,t,n,r,o,i,a,s,l){He=!1,Ue=null,$e.apply(Ge,arguments)}function Ze(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Je(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 Xe(e){if(Ze(e)!==e)throw Error(a(188))}function Qe(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ze(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Xe(o),e;if(i===r)return Xe(o),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s){for(l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function et(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var tt,nt,rt,ot,it=!1,at=[],st=null,lt=null,ct=null,ut=new Map,dt=new Map,pt=[],ht="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 ft(e,t,n,r,o){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:o,targetContainers:[r]}}function mt(e,t){switch(e){case"focusin":case"focusout":st=null;break;case"dragenter":case"dragleave":lt=null;break;case"mouseover":case"mouseout":ct=null;break;case"pointerover":case"pointerout":ut.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":dt.delete(t.pointerId)}}function gt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e=ft(t,n,r,o,i),null!==t&&(null!==(t=ro(t))&&nt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function vt(e){var t=no(e.target);if(null!==t){var n=Ze(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Je(n)))return e.blockedOn=t,void ot(e.lanePriority,(function(){i.unstable_runWithPriority(e.priority,(function(){rt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function yt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=ro(n))&&nt(t),e.blockedOn=n,!1;t.shift()}return!0}function bt(e,t,n){yt(e)&&n.delete(t)}function wt(){for(it=!1;0<at.length;){var e=at[0];if(null!==e.blockedOn){null!==(e=ro(e.blockedOn))&&tt(e);break}for(var t=e.targetContainers;0<t.length;){var n=Qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&at.shift()}null!==st&&yt(st)&&(st=null),null!==lt&&yt(lt)&&(lt=null),null!==ct&&yt(ct)&&(ct=null),ut.forEach(bt),dt.forEach(bt)}function xt(e,t){e.blockedOn===t&&(e.blockedOn=null,it||(it=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,wt)))}function St(e){function t(t){return xt(t,e)}if(0<at.length){xt(at[0],e);for(var n=1;n<at.length;n++){var r=at[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==st&&xt(st,e),null!==lt&&xt(lt,e),null!==ct&&xt(ct,e),ut.forEach(t),dt.forEach(t),n=0;n<pt.length;n++)(r=pt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<pt.length&&null===(n=pt[0]).blockedOn;)vt(n),null===n.blockedOn&&pt.shift()}function _t(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ct={animationend:_t("Animation","AnimationEnd"),animationiteration:_t("Animation","AnimationIteration"),animationstart:_t("Animation","AnimationStart"),transitionend:_t("Transition","TransitionEnd")},Et={},kt={};function zt(e){if(Et[e])return Et[e];if(!Ct[e])return e;var t,n=Ct[e];for(t in n)if(n.hasOwnProperty(t)&&t in kt)return Et[e]=n[t];return e}d&&(kt=document.createElement("div").style,"AnimationEvent"in window||(delete Ct.animationend.animation,delete Ct.animationiteration.animation,delete Ct.animationstart.animation),"TransitionEvent"in window||delete Ct.transitionend.transition);var Pt=zt("animationend"),At=zt("animationiteration"),Dt=zt("animationstart"),Tt=zt("transitionend"),It=new Map,Mt=new Map,Nt=["abort","abort",Pt,"animationEnd",At,"animationIteration",Dt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Tt,"transitionEnd","waiting","waiting"];function Ot(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],o=e[n+1];o="on"+(o[0].toUpperCase()+o.slice(1)),Mt.set(r,t),It.set(r,o),c(o,[r])}}(0,i.unstable_now)();var jt=8;function Rt(e){if(0!=(1&e))return jt=15,1;if(0!=(2&e))return jt=14,2;if(0!=(4&e))return jt=13,4;var t=24&e;return 0!==t?(jt=12,t):0!=(32&e)?(jt=11,32):0!==(t=192&e)?(jt=10,t):0!=(256&e)?(jt=9,256):0!==(t=3584&e)?(jt=8,t):0!=(4096&e)?(jt=7,4096):0!==(t=4186112&e)?(jt=6,t):0!==(t=62914560&e)?(jt=5,t):67108864&e?(jt=4,67108864):0!=(134217728&e)?(jt=3,134217728):0!==(t=805306368&e)?(jt=2,t):0!=(1073741824&e)?(jt=1,1073741824):(jt=8,e)}function Ft(e,t){var n=e.pendingLanes;if(0===n)return jt=0;var r=0,o=0,i=e.expiredLanes,a=e.suspendedLanes,s=e.pingedLanes;if(0!==i)r=i,o=jt=15;else if(0!==(i=134217727&n)){var l=i&~a;0!==l?(r=Rt(l),o=jt):0!==(s&=i)&&(r=Rt(s),o=jt)}else 0!==(i=n&~a)?(r=Rt(i),o=jt):0!==s&&(r=Rt(s),o=jt);if(0===r)return 0;if(r=n&((0>(r=31-Ht(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0==(t&a)){if(Rt(t),o<=jt)return t;jt=o}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-Ht(t)),r|=e[n],t&=~o;return r}function Bt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Lt(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Vt(24&~t))?Lt(10,t):e;case 10:return 0===(e=Vt(192&~t))?Lt(8,t):e;case 8:return 0===(e=Vt(3584&~t))&&(0===(e=Vt(4186112&~t))&&(e=512)),e;case 2:return 0===(t=Vt(805306368&~t))&&(t=268435456),t}throw Error(a(358,e))}function Vt(e){return e&-e}function Kt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function $t(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Ht(t)]=n}var Ht=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Ut(e)/qt|0)|0},Ut=Math.log,qt=Math.LN2;var Wt=i.unstable_UserBlockingPriority,Gt=i.unstable_runWithPriority,Yt=!0;function Zt(e,t,n,r){Re||Oe();var o=Xt,i=Re;Re=!0;try{Ne(o,e,t,n,r)}finally{(Re=i)||Be()}}function Jt(e,t,n,r){Gt(Wt,Xt.bind(null,e,t,n,r))}function Xt(e,t,n,r){var o;if(Yt)if((o=0==(4&t))&&0<at.length&&-1<ht.indexOf(e))e=ft(null,e,t,n,r),at.push(e);else{var i=Qt(e,t,n,r);if(null===i)o&&mt(e,r);else{if(o){if(-1<ht.indexOf(e))return e=ft(i,e,t,n,r),void at.push(e);if(function(e,t,n,r,o){switch(t){case"focusin":return st=gt(st,e,t,n,r,o),!0;case"dragenter":return lt=gt(lt,e,t,n,r,o),!0;case"mouseover":return ct=gt(ct,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return ut.set(i,gt(ut.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,dt.set(i,gt(dt.get(i)||null,e,t,n,r,o)),!0}return!1}(i,e,t,n,r))return;mt(e,r)}Or(e,t,r,null,n)}}}function Qt(e,t,n,r){var o=ke(r);if(null!==(o=no(o))){var i=Ze(o);if(null===i)o=null;else{var a=i.tag;if(13===a){if(null!==(o=Je(i)))return o;o=null}else if(3===a){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;o=null}else i!==o&&(o=null)}}return Or(e,t,r,o,n),null}var en=null,tn=null,nn=null;function rn(){if(nn)return nn;var e,t,n=tn,r=n.length,o="value"in en?en.value:en.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 nn=o.slice(e,1<t?1-t:void 0)}function on(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 an(){return!0}function sn(){return!1}function ln(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)?an:sn,this.isPropagationStopped=sn,this}return o(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=an)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=an)},persist:function(){},isPersistent:an}),t}var cn,un,dn,pn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hn=ln(pn),fn=o({},pn,{view:0,detail:0}),mn=ln(fn),gn=o({},fn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Pn,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!==dn&&(dn&&"mousemove"===e.type?(cn=e.screenX-dn.screenX,un=e.screenY-dn.screenY):un=cn=0,dn=e),cn)},movementY:function(e){return"movementY"in e?e.movementY:un}}),vn=ln(gn),yn=ln(o({},gn,{dataTransfer:0})),bn=ln(o({},fn,{relatedTarget:0})),wn=ln(o({},pn,{animationName:0,elapsedTime:0,pseudoElement:0})),xn=o({},pn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Sn=ln(xn),_n=ln(o({},pn,{data:0})),Cn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},En={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"},kn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function zn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=kn[e])&&!!t[e]}function Pn(){return zn}var An=o({},fn,{key:function(e){if(e.key){var t=Cn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=on(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?En[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Pn,charCode:function(e){return"keypress"===e.type?on(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?on(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Dn=ln(An),Tn=ln(o({},gn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),In=ln(o({},fn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Pn})),Mn=ln(o({},pn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Nn=o({},gn,{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}),On=ln(Nn),jn=[9,13,27,32],Rn=d&&"CompositionEvent"in window,Fn=null;d&&"documentMode"in document&&(Fn=document.documentMode);var Bn=d&&"TextEvent"in window&&!Fn,Ln=d&&(!Rn||Fn&&8<Fn&&11>=Fn),Vn=String.fromCharCode(32),Kn=!1;function $n(e,t){switch(e){case"keyup":return-1!==jn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Un=!1;var qn={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 Wn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!qn[e.type]:"textarea"===t}function Gn(e,t,n,r){Te(r),0<(t=Rr(t,"onChange")).length&&(n=new hn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Yn=null,Zn=null;function Jn(e){Ar(e,0)}function Xn(e){if(J(oo(e)))return e}function Qn(e,t){if("change"===e)return t}var er=!1;if(d){var tr;if(d){var nr="oninput"in document;if(!nr){var rr=document.createElement("div");rr.setAttribute("oninput","return;"),nr="function"==typeof rr.oninput}tr=nr}else tr=!1;er=tr&&(!document.documentMode||9<document.documentMode)}function or(){Yn&&(Yn.detachEvent("onpropertychange",ir),Zn=Yn=null)}function ir(e){if("value"===e.propertyName&&Xn(Zn)){var t=[];if(Gn(t,Zn,e,ke(e)),e=Jn,Re)e(t);else{Re=!0;try{Me(e,t)}finally{Re=!1,Be()}}}}function ar(e,t,n){"focusin"===e?(or(),Zn=n,(Yn=t).attachEvent("onpropertychange",ir)):"focusout"===e&&or()}function sr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Xn(Zn)}function lr(e,t){if("click"===e)return Xn(t)}function cr(e,t){if("input"===e||"change"===e)return Xn(t)}var ur="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},dr=Object.prototype.hasOwnProperty;function pr(e,t){if(ur(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++)if(!dr.call(t,n[r])||!ur(e[n[r]],t[n[r]]))return!1;return!0}function hr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function fr(e,t){var n,r=hr(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=hr(r)}}function mr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?mr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function gr(){for(var e=window,t=X();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=X((e=t.contentWindow).document)}return t}function vr(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)}var yr=d&&"documentMode"in document&&11>=document.documentMode,br=null,wr=null,xr=null,Sr=!1;function _r(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;Sr||null==br||br!==X(r)||("selectionStart"in(r=br)&&vr(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},xr&&pr(xr,r)||(xr=r,0<(r=Rr(wr,"onSelect")).length&&(t=new hn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=br)))}Ot("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Ot("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Ot(Nt,2);for(var Cr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Er=0;Er<Cr.length;Er++)Mt.set(Cr[Er],0);u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var kr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),zr=new Set("cancel close invalid load scroll toggle".split(" ").concat(kr));function Pr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,s,l,c){if(Ye.apply(this,arguments),He){if(!He)throw Error(a(198));var u=Ue;He=!1,Ue=null,qe||(qe=!0,We=u)}}(r,t,void 0,e),e.currentTarget=null}function Ar(e,t){t=0!=(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;Pr(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;Pr(o,s,c),i=l}}}if(qe)throw e=We,qe=!1,We=null,e}function Dr(e,t){var n=ao(t),r=e+"__bubble";n.has(r)||(Nr(t,e,2,!1),n.add(r))}var Tr="_reactListening"+Math.random().toString(36).slice(2);function Ir(e){e[Tr]||(e[Tr]=!0,s.forEach((function(t){zr.has(t)||Mr(t,!1,e,null),Mr(t,!0,e,null)})))}function Mr(e,t,n,r){var o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,i=n;if("selectionchange"===e&&9!==n.nodeType&&(i=n.ownerDocument),null!==r&&!t&&zr.has(e)){if("scroll"!==e)return;o|=2,i=r}var a=ao(i),s=e+"__"+(t?"capture":"bubble");a.has(s)||(t&&(o|=4),Nr(i,e,o,t),a.add(s))}function Nr(e,t,n,r){var o=Mt.get(t);switch(void 0===o?2:o){case 0:o=Zt;break;case 1:o=Jt;break;default:o=Xt}n=o.bind(null,t,n,e),o=void 0,!Ve||"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 Or(e,t,n,r,o){var i=r;if(0==(1&t)&&0==(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=no(s)))return;if(5===(l=a.tag)||6===l){r=i=a;continue e}s=s.parentNode}}r=r.return}!function(e,t,n){if(Fe)return e(t,n);Fe=!0;try{je(e,t,n)}finally{Fe=!1,Be()}}((function(){var r=i,o=ke(n),a=[];e:{var s=It.get(e);if(void 0!==s){var l=hn,c=e;switch(e){case"keypress":if(0===on(n))break e;case"keydown":case"keyup":l=Dn;break;case"focusin":c="focus",l=bn;break;case"focusout":c="blur",l=bn;break;case"beforeblur":case"afterblur":l=bn;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=vn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=yn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=In;break;case Pt:case At:case Dt:l=wn;break;case Tt:l=Mn;break;case"scroll":l=mn;break;case"wheel":l=On;break;case"copy":case"cut":case"paste":l=Sn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Tn}var u=0!=(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=Le(f,p))&&u.push(jr(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(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||0!=(16&t)||!(c=n.relatedTarget||n.fromElement)||!no(c)&&!c[eo])&&(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)?no(c):null)&&(c!==(d=Ze(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=vn,m="onMouseLeave",p="onMouseEnter",f="mouse","pointerout"!==e&&"pointerover"!==e||(u=Tn,m="onPointerLeave",p="onPointerEnter",f="pointer"),d=null==l?s:oo(l),h=null==c?s:oo(c),(s=new u(m,f+"leave",l,n,o)).target=d,s.relatedTarget=h,m=null,no(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=Fr(h))f++;for(h=0,m=p;m;m=Fr(m))h++;for(;0<f-h;)u=Fr(u),f--;for(;0<h-f;)p=Fr(p),h--;for(;f--;){if(u===p||null!==p&&u===p.alternate)break e;u=Fr(u),p=Fr(p)}u=null}else u=null;null!==l&&Br(a,s,l,u,!1),null!==c&&null!==d&&Br(a,d,c,u,!0)}if("select"===(l=(s=r?oo(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Qn;else if(Wn(s))if(er)g=cr;else{g=sr;var v=ar}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=lr);switch(g&&(g=g(e,r))?Gn(a,g,n,o):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&oe(s,"number",s.value)),v=r?oo(r):window,e){case"focusin":(Wn(v)||"true"===v.contentEditable)&&(br=v,wr=r,xr=null);break;case"focusout":xr=wr=br=null;break;case"mousedown":Sr=!0;break;case"contextmenu":case"mouseup":case"dragend":Sr=!1,_r(a,n,o);break;case"selectionchange":if(yr)break;case"keydown":case"keyup":_r(a,n,o)}var y;if(Rn)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 Un?$n(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Ln&&"ko"!==n.locale&&(Un||"onCompositionStart"!==b?"onCompositionEnd"===b&&Un&&(y=rn()):(tn="value"in(en=o)?en.value:en.textContent,Un=!0)),0<(v=Rr(r,b)).length&&(b=new _n(b,e,null,n,o),a.push({event:b,listeners:v}),y?b.data=y:null!==(y=Hn(n))&&(b.data=y))),(y=Bn?function(e,t){switch(e){case"compositionend":return Hn(t);case"keypress":return 32!==t.which?null:(Kn=!0,Vn);case"textInput":return(e=t.data)===Vn&&Kn?null:e;default:return null}}(e,n):function(e,t){if(Un)return"compositionend"===e||!Rn&&$n(e,t)?(e=rn(),nn=tn=en=null,Un=!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 Ln&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Rr(r,"onBeforeInput")).length&&(o=new _n("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=y))}Ar(a,t)}))}function jr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Rr(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=Le(e,n))&&r.unshift(jr(e,i,o)),null!=(i=Le(e,t))&&r.push(jr(e,i,o))),e=e.return}return r}function Fr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Br(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=Le(n,i))&&a.unshift(jr(n,l,s)):o||null!=(l=Le(n,i))&&a.push(jr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}function Lr(){}var Vr=null,Kr=null;function $r(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Hr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Ur="function"==typeof setTimeout?setTimeout:void 0,qr="function"==typeof clearTimeout?clearTimeout:void 0;function Wr(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function Gr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Yr(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 Zr=0;var Jr=Math.random().toString(36).slice(2),Xr="__reactFiber$"+Jr,Qr="__reactProps$"+Jr,eo="__reactContainer$"+Jr,to="__reactEvents$"+Jr;function no(e){var t=e[Xr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[eo]||n[Xr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Yr(e);null!==e;){if(n=e[Xr])return n;e=Yr(e)}return t}n=(e=n).parentNode}return null}function ro(e){return!(e=e[Xr]||e[eo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function oo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function io(e){return e[Qr]||null}function ao(e){var t=e[to];return void 0===t&&(t=e[to]=new Set),t}var so=[],lo=-1;function co(e){return{current:e}}function uo(e){0>lo||(e.current=so[lo],so[lo]=null,lo--)}function po(e,t){lo++,so[lo]=e.current,e.current=t}var ho={},fo=co(ho),mo=co(!1),go=ho;function vo(e,t){var n=e.type.contextTypes;if(!n)return ho;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 yo(e){return null!=(e=e.childContextTypes)}function bo(){uo(mo),uo(fo)}function wo(e,t,n){if(fo.current!==ho)throw Error(a(168));po(fo,t),po(mo,n)}function xo(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(a(108,W(t)||"Unknown",i));return o({},n,r)}function So(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ho,go=fo.current,po(fo,e),po(mo,mo.current),!0}function _o(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=xo(e,t,go),r.__reactInternalMemoizedMergedChildContext=e,uo(mo),uo(fo),po(fo,e)):uo(mo),po(mo,n)}var Co=null,Eo=null,ko=i.unstable_runWithPriority,zo=i.unstable_scheduleCallback,Po=i.unstable_cancelCallback,Ao=i.unstable_shouldYield,Do=i.unstable_requestPaint,To=i.unstable_now,Io=i.unstable_getCurrentPriorityLevel,Mo=i.unstable_ImmediatePriority,No=i.unstable_UserBlockingPriority,Oo=i.unstable_NormalPriority,jo=i.unstable_LowPriority,Ro=i.unstable_IdlePriority,Fo={},Bo=void 0!==Do?Do:function(){},Lo=null,Vo=null,Ko=!1,$o=To(),Ho=1e4>$o?To:function(){return To()-$o};function Uo(){switch(Io()){case Mo:return 99;case No:return 98;case Oo:return 97;case jo:return 96;case Ro:return 95;default:throw Error(a(332))}}function qo(e){switch(e){case 99:return Mo;case 98:return No;case 97:return Oo;case 96:return jo;case 95:return Ro;default:throw Error(a(332))}}function Wo(e,t){return e=qo(e),ko(e,t)}function Go(e,t,n){return e=qo(e),zo(e,t,n)}function Yo(){if(null!==Vo){var e=Vo;Vo=null,Po(e)}Zo()}function Zo(){if(!Ko&&null!==Lo){Ko=!0;var e=0;try{var t=Lo;Wo(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Lo=null}catch(t){throw null!==Lo&&(Lo=Lo.slice(e+1)),zo(Mo,Yo),t}finally{Ko=!1}}}var Jo=x.ReactCurrentBatchConfig;function Xo(e,t){if(e&&e.defaultProps){for(var n in t=o({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Qo=co(null),ei=null,ti=null,ni=null;function ri(){ni=ti=ei=null}function oi(e){var t=Qo.current;uo(Qo),e.type._context._currentValue=t}function ii(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function ai(e,t){ei=e,ni=ti=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Ra=!0),e.firstContext=null)}function si(e,t){if(ni!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(ni=e,t=1073741823),t={context:e,observedBits:t,next:null},null===ti){if(null===ei)throw Error(a(308));ti=t,ei.dependencies={lanes:0,firstContext:t,responders:null}}else ti=ti.next=t;return e._currentValue}var li=!1;function ci(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function ui(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 di(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function pi(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function hi(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 fi(e,t,n,r){var i=e.updateQueue;li=!1;var a=i.firstBaseUpdate,s=i.lastBaseUpdate,l=i.shared.pending;if(null!==l){i.shared.pending=null;var c=l,u=c.next;c.next=null,null===s?a=u:s.next=u,s=c;var d=e.alternate;if(null!==d){var p=(d=d.updateQueue).lastBaseUpdate;p!==s&&(null===p?d.firstBaseUpdate=u:p.next=u,d.lastBaseUpdate=c)}}if(null!==a){for(p=i.baseState,s=0,d=u=c=null;;){l=a.lane;var h=a.eventTime;if((r&l)===l){null!==d&&(d=d.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var f=e,m=a;switch(l=t,h=n,m.tag){case 1:if("function"==typeof(f=m.payload)){p=f.call(h,p,l);break e}p=f;break e;case 3:f.flags=-4097&f.flags|64;case 0:if(null==(l="function"==typeof(f=m.payload)?f.call(h,p,l):f))break e;p=o({},p,l);break e;case 2:li=!0}}null!==a.callback&&(e.flags|=32,null===(l=i.effects)?i.effects=[a]:l.push(a))}else h={eventTime:h,lane:l,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===d?(u=d=h,c=p):d=d.next=h,s|=l;if(null===(a=a.next)){if(null===(l=i.shared.pending))break;a=l.next,l.next=null,i.lastBaseUpdate=l,i.shared.pending=null}}null===d&&(c=p),i.baseState=c,i.firstBaseUpdate=u,i.lastBaseUpdate=d,Vs|=s,e.lanes=s,e.memoizedState=p}}function mi(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(a(191,o));o.call(r)}}}var gi=(new r.Component).refs;function vi(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:o({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var yi={isMounted:function(e){return!!(e=e._reactInternals)&&Ze(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=pl(),o=hl(e),i=di(r,o);i.payload=t,null!=n&&(i.callback=n),pi(e,i),fl(e,o,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=pl(),o=hl(e),i=di(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),pi(e,i),fl(e,o,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=pl(),r=hl(e),o=di(n,r);o.tag=2,null!=t&&(o.callback=t),pi(e,o),fl(e,r,n)}};function bi(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!pr(n,r)||!pr(o,i))}function wi(e,t,n){var r=!1,o=ho,i=t.contextType;return"object"==typeof i&&null!==i?i=si(i):(o=yo(t)?go:fo.current,i=(r=null!=(r=t.contextTypes))?vo(e,o):ho),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=yi,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function xi(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&&yi.enqueueReplaceState(t,t.state,null)}function Si(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=gi,ci(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=si(i):(i=yo(t)?go:fo.current,o.context=vo(e,i)),fi(e,n,o,r),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(vi(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&&yi.enqueueReplaceState(o,o.state,null),fi(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4)}var _i=Array.isArray;function Ci(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(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=r.refs;t===gi&&(t=r.refs={}),null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function Ei(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function ki(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}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=ql(e,t)).index=0,e.sibling=null,e}function i(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):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=Zl(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){return null!==t&&t.elementType===n.type?((r=o(t,n.props)).ref=Ci(e,t,n),r.return=e,r):((r=Wl(n.type,n.key,n.props,null,e.mode,r)).ref=Ci(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=Jl(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=Gl(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Zl(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case S:return(n=Wl(t.type,t.key,t.props,null,e.mode,n)).ref=Ci(e,null,t),n.return=e,n;case _:return(t=Jl(t,e.mode,n)).return=e,t}if(_i(t)||K(t))return(t=Gl(t,e.mode,n,null)).return=e,t;Ei(e,t)}return null}function h(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case S:return n.key===o?n.type===C?d(e,t,n.props.children,r,o):c(e,t,n,r):null;case _:return n.key===o?u(e,t,n,r):null}if(_i(n)||K(n))return null!==o?null:d(e,t,n,r,null);Ei(e,n)}return null}function f(e,t,n,r,o){if("string"==typeof r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case S:return e=e.get(null===r.key?n:r.key)||null,r.type===C?d(t,e,r.props.children,o,r.key):c(t,e,r,o);case _:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(_i(r)||K(r))return d(t,e=e.get(n)||null,r,o,null);Ei(t,r)}return null}function m(o,a,s,l){for(var c=null,u=null,d=a,m=a=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),a=i(v,a,m),null===u?c=v:u.sibling=v,u=v,d=g}if(m===s.length)return n(o,d),c;if(null===d){for(;m<s.length;m++)null!==(d=p(o,s[m],l))&&(a=i(d,a,m),null===u?c=d:u.sibling=d,u=d);return 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),a=i(g,a,m),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(o,e)})),c}function g(o,s,l,c){var u=K(l);if("function"!=typeof u)throw Error(a(150));if(null==(l=u.call(l)))throw Error(a(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=i(b,s,g),null===d?u=b:d.sibling=b,d=b,m=v}if(y.done)return n(o,m),u;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=p(o,y.value,c))&&(s=i(y,s,g),null===d?u=y:d.sibling=y,d=y);return 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=i(y,s,g),null===d?u=y:d.sibling=y,d=y);return e&&m.forEach((function(e){return t(o,e)})),u}return function(e,r,i,l){var c="object"==typeof i&&null!==i&&i.type===C&&null===i.key;c&&(i=i.props.children);var u="object"==typeof i&&null!==i;if(u)switch(i.$$typeof){case S:e:{for(u=i.key,c=r;null!==c;){if(c.key===u){if(7===c.tag){if(i.type===C){n(e,c.sibling),(r=o(c,i.props.children)).return=e,e=r;break e}}else if(c.elementType===i.type){n(e,c.sibling),(r=o(c,i.props)).ref=Ci(e,c,i),r.return=e,e=r;break e}n(e,c);break}t(e,c),c=c.sibling}i.type===C?((r=Gl(i.props.children,e.mode,l,i.key)).return=e,e=r):((l=Wl(i.type,i.key,i.props,null,e.mode,l)).ref=Ci(e,r,i),l.return=e,e=l)}return s(e);case _:e:{for(c=i.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),(r=o(r,i.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Jl(i,e.mode,l)).return=e,e=r}return s(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),(r=o(r,i)).return=e,e=r):(n(e,r),(r=Zl(i,e.mode,l)).return=e,e=r),s(e);if(_i(i))return m(e,r,i,l);if(K(i))return g(e,r,i,l);if(u&&Ei(e,i),void 0===i&&!c)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(a(152,W(e.type)||"Component"))}return n(e,r)}}var zi=ki(!0),Pi=ki(!1),Ai={},Di=co(Ai),Ti=co(Ai),Ii=co(Ai);function Mi(e){if(e===Ai)throw Error(a(174));return e}function Ni(e,t){switch(po(Ii,t),po(Ti,e),po(Di,Ai),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:fe(null,"");break;default:t=fe(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}uo(Di),po(Di,t)}function Oi(){uo(Di),uo(Ti),uo(Ii)}function ji(e){Mi(Ii.current);var t=Mi(Di.current),n=fe(t,e.type);t!==n&&(po(Ti,e),po(Di,n))}function Ri(e){Ti.current===e&&(uo(Di),uo(Ti))}var Fi=co(0);function Bi(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(0!=(64&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 Li=null,Vi=null,Ki=!1;function $i(e,t){var n=Hl(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Hi(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,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function Ui(e){if(Ki){var t=Vi;if(t){var n=t;if(!Hi(e,t)){if(!(t=Gr(n.nextSibling))||!Hi(e,t))return e.flags=-1025&e.flags|2,Ki=!1,void(Li=e);$i(Li,n)}Li=e,Vi=Gr(t.firstChild)}else e.flags=-1025&e.flags|2,Ki=!1,Li=e}}function qi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Li=e}function Wi(e){if(e!==Li)return!1;if(!Ki)return qi(e),Ki=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Hr(t,e.memoizedProps))for(t=Vi;t;)$i(e,t),t=Gr(t.nextSibling);if(qi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Vi=Gr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Vi=null}}else Vi=Li?Gr(e.stateNode.nextSibling):null;return!0}function Gi(){Vi=Li=null,Ki=!1}var Yi=[];function Zi(){for(var e=0;e<Yi.length;e++)Yi[e]._workInProgressVersionPrimary=null;Yi.length=0}var Ji=x.ReactCurrentDispatcher,Xi=x.ReactCurrentBatchConfig,Qi=0,ea=null,ta=null,na=null,ra=!1,oa=!1;function ia(){throw Error(a(321))}function aa(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ur(e[n],t[n]))return!1;return!0}function sa(e,t,n,r,o,i){if(Qi=i,ea=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ji.current=null===e||null===e.memoizedState?Ma:Na,e=n(r,o),oa){i=0;do{if(oa=!1,!(25>i))throw Error(a(301));i+=1,na=ta=null,t.updateQueue=null,Ji.current=Oa,e=n(r,o)}while(oa)}if(Ji.current=Ia,t=null!==ta&&null!==ta.next,Qi=0,na=ta=ea=null,ra=!1,t)throw Error(a(300));return e}function la(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===na?ea.memoizedState=na=e:na=na.next=e,na}function ca(){if(null===ta){var e=ea.alternate;e=null!==e?e.memoizedState:null}else e=ta.next;var t=null===na?ea.memoizedState:na.next;if(null!==t)na=t,ta=e;else{if(null===e)throw Error(a(310));e={memoizedState:(ta=e).memoizedState,baseState:ta.baseState,baseQueue:ta.baseQueue,queue:ta.queue,next:null},null===na?ea.memoizedState=na=e:na=na.next=e}return na}function ua(e,t){return"function"==typeof t?t(e):t}function da(e){var t=ca(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=ta,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(null!==o){o=o.next,r=r.baseState;var l=s=i=null,c=o;do{var u=c.lane;if((Qi&u)===u)null!==l&&(l=l.next={lane:0,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),r=c.eagerReducer===e?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===l?(s=l=d,i=r):l=l.next=d,ea.lanes|=u,Vs|=u}c=c.next}while(null!==c&&c!==o);null===l?i=r:l.next=s,ur(r,t.memoizedState)||(Ra=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function pa(e){var t=ca(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{i=e(i,s.action),s=s.next}while(s!==o);ur(i,t.memoizedState)||(Ra=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function ha(e,t,n){var r=t._getVersion;r=r(t._source);var o=t._workInProgressVersionPrimary;if(null!==o?e=o===r:(e=e.mutableReadLanes,(e=(Qi&e)===e)&&(t._workInProgressVersionPrimary=r,Yi.push(t))),e)return n(t._source);throw Yi.push(t),Error(a(350))}function fa(e,t,n,r){var o=Ms;if(null===o)throw Error(a(349));var i=t._getVersion,s=i(t._source),l=Ji.current,c=l.useState((function(){return ha(o,t,n)})),u=c[1],d=c[0];c=na;var p=e.memoizedState,h=p.refs,f=h.getSnapshot,m=p.source;p=p.subscribe;var g=ea;return e.memoizedState={refs:h,source:t,subscribe:r},l.useEffect((function(){h.getSnapshot=n,h.setSnapshot=u;var e=i(t._source);if(!ur(s,e)){e=n(t._source),ur(d,e)||(u(e),e=hl(g),o.mutableReadLanes|=e&o.pendingLanes),e=o.mutableReadLanes,o.entangledLanes|=e;for(var r=o.entanglements,a=e;0<a;){var l=31-Ht(a),c=1<<l;r[l]|=e,a&=~c}}}),[n,t,r]),l.useEffect((function(){return r(t._source,(function(){var e=h.getSnapshot,n=h.setSnapshot;try{n(e(t._source));var r=hl(g);o.mutableReadLanes|=r&o.pendingLanes}catch(e){n((function(){throw e}))}}))}),[t,r]),ur(f,n)&&ur(m,t)&&ur(p,r)||((e={pending:null,dispatch:null,lastRenderedReducer:ua,lastRenderedState:d}).dispatch=u=Ta.bind(null,ea,e),c.queue=e,c.baseQueue=null,d=ha(o,t,n),c.memoizedState=c.baseState=d),d}function ma(e,t,n){return fa(ca(),e,t,n)}function ga(e){var t=la();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:ua,lastRenderedState:e}).dispatch=Ta.bind(null,ea,e),[t.memoizedState,e]}function va(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ea.updateQueue)?(t={lastEffect:null},ea.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 ya(e){return e={current:e},la().memoizedState=e}function ba(){return ca().memoizedState}function wa(e,t,n,r){var o=la();ea.flags|=e,o.memoizedState=va(1|t,n,void 0,void 0===r?null:r)}function xa(e,t,n,r){var o=ca();r=void 0===r?null:r;var i=void 0;if(null!==ta){var a=ta.memoizedState;if(i=a.destroy,null!==r&&aa(r,a.deps))return void va(t,n,i,r)}ea.flags|=e,o.memoizedState=va(1|t,n,i,r)}function Sa(e,t){return wa(516,4,e,t)}function _a(e,t){return xa(516,4,e,t)}function Ca(e,t){return xa(4,2,e,t)}function Ea(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 ka(e,t,n){return n=null!=n?n.concat([e]):null,xa(4,2,Ea.bind(null,t,e),n)}function za(){}function Pa(e,t){var n=ca();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&aa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Aa(e,t){var n=ca();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&aa(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Da(e,t){var n=Uo();Wo(98>n?98:n,(function(){e(!0)})),Wo(97<n?97:n,(function(){var n=Xi.transition;Xi.transition=1;try{e(!1),t()}finally{Xi.transition=n}}))}function Ta(e,t,n){var r=pl(),o=hl(e),i={lane:o,action:n,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(null===a?i.next=i:(i.next=a.next,a.next=i),t.pending=i,a=e.alternate,e===ea||null!==a&&a===ea)oa=ra=!0;else{if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var s=t.lastRenderedState,l=a(s,n);if(i.eagerReducer=a,i.eagerState=l,ur(l,s))return}catch(e){}fl(e,o,r)}}var Ia={readContext:si,useCallback:ia,useContext:ia,useEffect:ia,useImperativeHandle:ia,useLayoutEffect:ia,useMemo:ia,useReducer:ia,useRef:ia,useState:ia,useDebugValue:ia,useDeferredValue:ia,useTransition:ia,useMutableSource:ia,useOpaqueIdentifier:ia,unstable_isNewReconciler:!1},Ma={readContext:si,useCallback:function(e,t){return la().memoizedState=[e,void 0===t?null:t],e},useContext:si,useEffect:Sa,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,wa(4,2,Ea.bind(null,t,e),n)},useLayoutEffect:function(e,t){return wa(4,2,e,t)},useMemo:function(e,t){var n=la();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=la();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Ta.bind(null,ea,e),[r.memoizedState,e]},useRef:ya,useState:ga,useDebugValue:za,useDeferredValue:function(e){var t=ga(e),n=t[0],r=t[1];return Sa((function(){var t=Xi.transition;Xi.transition=1;try{r(e)}finally{Xi.transition=t}}),[e]),n},useTransition:function(){var e=ga(!1),t=e[0];return ya(e=Da.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=la();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},fa(r,e,t,n)},useOpaqueIdentifier:function(){if(Ki){var e=!1,t=function(e){return{$$typeof:O,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Zr++).toString(36))),Error(a(355))})),n=ga(t)[1];return 0==(2&ea.mode)&&(ea.flags|=516,va(5,(function(){n("r:"+(Zr++).toString(36))}),void 0,null)),t}return ga(t="r:"+(Zr++).toString(36)),t},unstable_isNewReconciler:!1},Na={readContext:si,useCallback:Pa,useContext:si,useEffect:_a,useImperativeHandle:ka,useLayoutEffect:Ca,useMemo:Aa,useReducer:da,useRef:ba,useState:function(){return da(ua)},useDebugValue:za,useDeferredValue:function(e){var t=da(ua),n=t[0],r=t[1];return _a((function(){var t=Xi.transition;Xi.transition=1;try{r(e)}finally{Xi.transition=t}}),[e]),n},useTransition:function(){var e=da(ua)[0];return[ba().current,e]},useMutableSource:ma,useOpaqueIdentifier:function(){return da(ua)[0]},unstable_isNewReconciler:!1},Oa={readContext:si,useCallback:Pa,useContext:si,useEffect:_a,useImperativeHandle:ka,useLayoutEffect:Ca,useMemo:Aa,useReducer:pa,useRef:ba,useState:function(){return pa(ua)},useDebugValue:za,useDeferredValue:function(e){var t=pa(ua),n=t[0],r=t[1];return _a((function(){var t=Xi.transition;Xi.transition=1;try{r(e)}finally{Xi.transition=t}}),[e]),n},useTransition:function(){var e=pa(ua)[0];return[ba().current,e]},useMutableSource:ma,useOpaqueIdentifier:function(){return pa(ua)[0]},unstable_isNewReconciler:!1},ja=x.ReactCurrentOwner,Ra=!1;function Fa(e,t,n,r){t.child=null===e?Pi(t,null,n,r):zi(t,e.child,n,r)}function Ba(e,t,n,r,o){n=n.render;var i=t.ref;return ai(t,o),r=sa(e,t,n,r,i,o),null===e||Ra?(t.flags|=1,Fa(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,is(e,t,o))}function La(e,t,n,r,o,i){if(null===e){var a=n.type;return"function"!=typeof a||Ul(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Wl(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Va(e,t,a,r,o,i))}return a=e.child,0==(o&i)&&(o=a.memoizedProps,(n=null!==(n=n.compare)?n:pr)(o,r)&&e.ref===t.ref)?is(e,t,i):(t.flags|=1,(e=ql(a,r)).ref=t.ref,e.return=t,t.child=e)}function Va(e,t,n,r,o,i){if(null!==e&&pr(e.memoizedProps,r)&&e.ref===t.ref){if(Ra=!1,0==(i&o))return t.lanes=e.lanes,is(e,t,i);0!=(16384&e.flags)&&(Ra=!0)}return Ha(e,t,n,r,i)}function Ka(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0==(4&t.mode))t.memoizedState={baseLanes:0},Sl(t,n);else{if(0==(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},Sl(t,e),null;t.memoizedState={baseLanes:0},Sl(t,null!==i?i.baseLanes:n)}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Sl(t,r);return Fa(e,t,o,n),t.child}function $a(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Ha(e,t,n,r,o){var i=yo(n)?go:fo.current;return i=vo(t,i),ai(t,o),n=sa(e,t,n,r,i,o),null===e||Ra?(t.flags|=1,Fa(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,is(e,t,o))}function Ua(e,t,n,r,o){if(yo(n)){var i=!0;So(t)}else i=!1;if(ai(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),wi(t,n,r),Si(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=si(c):c=vo(t,c=yo(n)?go:fo.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)&&xi(t,a,r,c),li=!1;var p=t.memoizedState;a.state=p,fi(t,r,a,o),l=t.memoizedState,s!==r||p!==l||mo.current||li?("function"==typeof u&&(vi(t,n,u,r),l=t.memoizedState),(s=li||bi(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|=4)):("function"==typeof a.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4),r=!1)}else{a=t.stateNode,ui(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:Xo(t.type,s),a.props=c,d=t.pendingProps,p=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=si(l):l=vo(t,l=yo(n)?go:fo.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)&&xi(t,a,r,l),li=!1,p=t.memoizedState,a.state=p,fi(t,r,a,o);var f=t.memoizedState;s!==d||p!==f||mo.current||li?("function"==typeof h&&(vi(t,n,h,r),f=t.memoizedState),(c=li||bi(t,n,c,r,p,f,l))?(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|=256)):("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|=256),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|=256),r=!1)}return qa(e,t,n,r,i,o)}function qa(e,t,n,r,o,i){$a(e,t);var a=0!=(64&t.flags);if(!r&&!a)return o&&_o(t,n,!1),is(e,t,i);r=t.stateNode,ja.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=zi(t,e.child,null,i),t.child=zi(t,null,s,i)):Fa(e,t,s,i),t.memoizedState=r.state,o&&_o(t,n,!0),t.child}function Wa(e){var t=e.stateNode;t.pendingContext?wo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&wo(0,t.context,!1),Ni(e,t.containerInfo)}var Ga,Ya,Za,Ja={dehydrated:null,retryLane:0};function Xa(e,t,n){var r,o=t.pendingProps,i=Fi.current,a=!1;return(r=0!=(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!=(2&i)),r?(a=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(i|=1),po(Fi,1&i),null===e?(void 0!==o.fallback&&Ui(t),e=o.children,i=o.fallback,a?(e=Qa(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Ja,e):"number"==typeof o.unstable_expectedLoadTime?(e=Qa(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Ja,t.lanes=33554432,e):((n=Yl({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,a?(o=ts(e,t,o.children,o.fallback,n),a=t.child,i=e.child.memoizedState,a.memoizedState=null===i?{baseLanes:n}:{baseLanes:i.baseLanes|n},a.childLanes=e.childLanes&~n,t.memoizedState=Ja,o):(n=es(e,t,o.children,n),t.memoizedState=null,n))}function Qa(e,t,n,r){var o=e.mode,i=e.child;return t={mode:"hidden",children:t},0==(2&o)&&null!==i?(i.childLanes=0,i.pendingProps=t):i=Yl(t,o,0,null),n=Gl(n,o,r,null),i.return=e,n.return=e,i.sibling=n,e.child=i,n}function es(e,t,n,r){var o=e.child;return e=o.sibling,n=ql(o,{mode:"visible",children:n}),0==(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function ts(e,t,n,r,o){var i=t.mode,a=e.child;e=a.sibling;var s={mode:"hidden",children:n};return 0==(2&i)&&t.child!==a?((n=t.child).childLanes=0,n.pendingProps=s,null!==(a=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null):n=ql(a,s),null!==e?r=ql(e,r):(r=Gl(r,i,o,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function ns(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),ii(e.return,t)}function rs(e,t,n,r,o,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o,lastEffect:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o,a.lastEffect=i)}function os(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Fa(e,t,r.children,n),0!=(2&(r=Fi.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!=(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&ns(e,n);else if(19===e.tag)ns(e,n);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(po(Fi,r),0==(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Bi(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),rs(t,!1,o,n,i,t.lastEffect);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Bi(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}rs(t,!0,n,null,i,t.lastEffect);break;case"together":rs(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function is(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Vs|=t.lanes,0!=(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=ql(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=ql(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function as(e,t){if(!Ki)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 ss(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return yo(t.type)&&bo(),null;case 3:return Oi(),uo(mo),uo(fo),Zi(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Wi(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:Ri(t);var i=Mi(Ii.current);if(n=t.type,null!==e&&null!=t.stateNode)Ya(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Mi(Di.current),Wi(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Xr]=t,r[Qr]=s,n){case"dialog":Dr("cancel",r),Dr("close",r);break;case"iframe":case"object":case"embed":Dr("load",r);break;case"video":case"audio":for(e=0;e<kr.length;e++)Dr(kr[e],r);break;case"source":Dr("error",r);break;case"img":case"image":case"link":Dr("error",r),Dr("load",r);break;case"details":Dr("toggle",r);break;case"input":ee(r,s),Dr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Dr("invalid",r);break;case"textarea":le(r,s),Dr("invalid",r)}for(var c in Ce(n,s),e=null,s)s.hasOwnProperty(c)&&(i=s[c],"children"===c?"string"==typeof i?r.textContent!==i&&(e=["children",i]):"number"==typeof i&&r.textContent!==""+i&&(e=["children",""+i]):l.hasOwnProperty(c)&&null!=i&&"onScroll"===c&&Dr("scroll",r));switch(n){case"input":Z(r),re(r,s,!0);break;case"textarea":Z(r),ue(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=Lr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(c=9===i.nodeType?i:i.ownerDocument,e===de&&(e=he(n)),e===de?"script"===n?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=c.createElement(n,{is:r.is}):(e=c.createElement(n),"select"===n&&(c=e,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):e=c.createElementNS(e,n),e[Xr]=t,e[Qr]=r,Ga(e,t),t.stateNode=e,c=Ee(n,r),n){case"dialog":Dr("cancel",e),Dr("close",e),i=r;break;case"iframe":case"object":case"embed":Dr("load",e),i=r;break;case"video":case"audio":for(i=0;i<kr.length;i++)Dr(kr[i],e);i=r;break;case"source":Dr("error",e),i=r;break;case"img":case"image":case"link":Dr("error",e),Dr("load",e),i=r;break;case"details":Dr("toggle",e),i=r;break;case"input":ee(e,r),i=Q(e,r),Dr("invalid",e);break;case"option":i=ie(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=o({},r,{value:void 0}),Dr("invalid",e);break;case"textarea":le(e,r),i=se(e,r),Dr("invalid",e);break;default:i=r}Ce(n,i);var u=i;for(s in u)if(u.hasOwnProperty(s)){var d=u[s];"style"===s?Se(e,d):"dangerouslySetInnerHTML"===s?null!=(d=d?d.__html:void 0)&&ve(e,d):"children"===s?"string"==typeof d?("textarea"!==n||""!==d)&&ye(e,d):"number"==typeof d&&ye(e,""+d):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(l.hasOwnProperty(s)?null!=d&&"onScroll"===s&&Dr("scroll",e):null!=d&&w(e,s,d,c))}switch(n){case"input":Z(e),re(e,r,!1);break;case"textarea":Z(e),ue(e);break;case"option":null!=r.value&&e.setAttribute("value",""+G(r.value));break;case"select":e.multiple=!!r.multiple,null!=(s=r.value)?ae(e,!!r.multiple,s,!1):null!=r.defaultValue&&ae(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Lr)}$r(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Za(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));n=Mi(Ii.current),Mi(Di.current),Wi(t)?(r=t.stateNode,n=t.memoizedProps,r[Xr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Xr]=t,t.stateNode=r)}return null;case 13:return uo(Fi),r=t.memoizedState,0!=(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Wi(t):n=null!==e.memoizedState,r&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Fi.current)?0===Fs&&(Fs=3):(0!==Fs&&3!==Fs||(Fs=4),null===Ms||0==(134217727&Vs)&&0==(134217727&Ks)||yl(Ms,Os))),(r||n)&&(t.flags|=4),null);case 4:return Oi(),null===e&&Ir(t.stateNode.containerInfo),null;case 10:return oi(t),null;case 19:if(uo(Fi),null===(r=t.memoizedState))return null;if(s=0!=(64&t.flags),null===(c=r.rendering))if(s)as(r,!1);else{if(0!==Fs||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(c=Bi(e))){for(t.flags|=64,as(r,!1),null!==(s=c.updateQueue)&&(t.updateQueue=s,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(s=n).flags&=2,s.nextEffect=null,s.firstEffect=null,s.lastEffect=null,null===(c=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,e=c.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return po(Fi,1&Fi.current|2),t.child}e=e.sibling}null!==r.tail&&Ho()>qs&&(t.flags|=64,s=!0,as(r,!1),t.lanes=33554432)}else{if(!s)if(null!==(e=Bi(c))){if(t.flags|=64,s=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),as(r,!0),null===r.tail&&"hidden"===r.tailMode&&!c.alternate&&!Ki)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Ho()-r.renderingStartTime>qs&&1073741824!==n&&(t.flags|=64,s=!0,as(r,!1),t.lanes=33554432);r.isBackwards?(c.sibling=t.child,t.child=c):(null!==(n=r.last)?n.sibling=c:t.child=c,r.last=c)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Ho(),n.sibling=null,t=Fi.current,po(Fi,s?1&t|2:1&t),n):null;case 23:case 24:return _l(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(a(156,t.tag))}function ls(e){switch(e.tag){case 1:yo(e.type)&&bo();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Oi(),uo(mo),uo(fo),Zi(),0!=(64&(t=e.flags)))throw Error(a(285));return e.flags=-4097&t|64,e;case 5:return Ri(e),null;case 13:return uo(Fi),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return uo(Fi),null;case 4:return Oi(),null;case 10:return oi(e),null;case 23:case 24:return _l(),null;default:return null}}function cs(e,t){try{var n="",r=t;do{n+=q(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}}function us(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}Ga=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}},Ya=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Mi(Di.current);var a,s=null;switch(n){case"input":i=Q(e,i),r=Q(e,r),s=[];break;case"option":i=ie(e,i),r=ie(e,r),s=[];break;case"select":i=o({},i,{value:void 0}),r=o({},r,{value:void 0}),s=[];break;case"textarea":i=se(e,i),r=se(e,r),s=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Lr)}for(d in Ce(n,r),n=null,i)if(!r.hasOwnProperty(d)&&i.hasOwnProperty(d)&&null!=i[d])if("style"===d){var c=i[d];for(a in c)c.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==d&&"children"!==d&&"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&"autoFocus"!==d&&(l.hasOwnProperty(d)?s||(s=[]):(s=s||[]).push(d,null));for(d in r){var u=r[d];if(c=null!=i?i[d]:void 0,r.hasOwnProperty(d)&&u!==c&&(null!=u||null!=c))if("style"===d)if(c){for(a in c)!c.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&c[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(s||(s=[]),s.push(d,n)),n=u;else"dangerouslySetInnerHTML"===d?(u=u?u.__html:void 0,c=c?c.__html:void 0,null!=u&&c!==u&&(s=s||[]).push(d,u)):"children"===d?"string"!=typeof u&&"number"!=typeof u||(s=s||[]).push(d,""+u):"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&(l.hasOwnProperty(d)?(null!=u&&"onScroll"===d&&Dr("scroll",e),s||c===u||(s=[])):"object"==typeof u&&null!==u&&u.$$typeof===O?u.toString():(s=s||[]).push(d,u))}n&&(s=s||[]).push("style",n);var d=s;(t.updateQueue=d)&&(t.flags|=4)}},Za=function(e,t,n,r){n!==r&&(t.flags|=4)};var ds="function"==typeof WeakMap?WeakMap:Map;function ps(e,t,n){(n=di(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Zs||(Zs=!0,Js=r),us(0,t)},n}function hs(e,t,n){(n=di(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return us(0,t),r(o)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Xs?Xs=new Set([this]):Xs.add(this),us(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var fs="function"==typeof WeakSet?WeakSet:Set;function ms(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Ll(e,t)}else t.current=null}function gs(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Xo(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Wr(t.stateNode.containerInfo))}throw Error(a(163))}function vs(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var o=e;r=o.next,0!=(4&(o=o.tag))&&0!=(1&o)&&(Rl(n,e),jl(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Xo(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&mi(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}mi(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&$r(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&St(n)))))}throw Error(a(163))}function ys(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"==typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var o=n.memoizedProps.style;o=null!=o&&o.hasOwnProperty("display")?o.display:null,r.style.display=xe("display",o)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function bs(e,t){if(Eo&&"function"==typeof Eo.onCommitFiberUnmount)try{Eo.onCommitFiberUnmount(Co,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,o=r.destroy;if(r=r.tag,void 0!==o)if(0!=(4&r))Rl(t,n);else{r=t;try{o()}catch(e){Ll(r,e)}}n=n.next}while(n!==e)}break;case 1:if(ms(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Ll(t,e)}break;case 5:ms(t);break;case 4:Es(e,t)}}function ws(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function xs(e){return 5===e.tag||3===e.tag||4===e.tag}function Ss(e){e:{for(var t=e.return;null!==t;){if(xs(t))break e;t=t.return}throw Error(a(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.flags&&(ye(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||xs(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?_s(e,n,t):Cs(e,n,t)}function _s(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,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=Lr));else if(4!==r&&null!==(e=e.child))for(_s(e,t,n),e=e.sibling;null!==e;)_s(e,t,n),e=e.sibling}function Cs(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(Cs(e,t,n),e=e.sibling;null!==e;)Cs(e,t,n),e=e.sibling}function Es(e,t){for(var n,r,o=t,i=!1;;){if(!i){i=o.return;e:for(;;){if(null===i)throw Error(a(160));switch(n=i.stateNode,i.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}i=i.return}i=!0}if(5===o.tag||6===o.tag){e:for(var s=e,l=o,c=l;;)if(bs(s,c),null!==c.child&&4!==c.tag)c.child.return=c,c=c.child;else{if(c===l)break e;for(;null===c.sibling;){if(null===c.return||c.return===l)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}r?(s=n,l=o.stateNode,8===s.nodeType?s.parentNode.removeChild(l):s.removeChild(l)):n.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){n=o.stateNode.containerInfo,r=!0,o.child.return=o,o=o.child;continue}}else if(bs(e,o),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(i=!1)}o.sibling.return=o.return,o=o.sibling}}function ks(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3==(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:case 12:case 17:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var o=null!==e?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[Qr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),Ee(e,o),t=Ee(e,r),o=0;o<i.length;o+=2){var s=i[o],l=i[o+1];"style"===s?Se(n,l):"dangerouslySetInnerHTML"===s?ve(n,l):"children"===s?ye(n,l):w(n,s,l,t)}switch(e){case"input":ne(n,r);break;case"textarea":ce(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(i=r.value)?ae(n,!!r.multiple,i,!1):e!==!!r.multiple&&(null!=r.defaultValue?ae(n,!!r.multiple,r.defaultValue,!0):ae(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,St(n.containerInfo)));case 13:return null!==t.memoizedState&&(Us=Ho(),ys(t.child,!0)),void zs(t);case 19:return void zs(t);case 23:case 24:return void ys(t,null!==t.memoizedState)}throw Error(a(163))}function zs(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new fs),t.forEach((function(t){var r=Kl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Ps(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var As=Math.ceil,Ds=x.ReactCurrentDispatcher,Ts=x.ReactCurrentOwner,Is=0,Ms=null,Ns=null,Os=0,js=0,Rs=co(0),Fs=0,Bs=null,Ls=0,Vs=0,Ks=0,$s=0,Hs=null,Us=0,qs=1/0;function Ws(){qs=Ho()+500}var Gs,Ys=null,Zs=!1,Js=null,Xs=null,Qs=!1,el=null,tl=90,nl=[],rl=[],ol=null,il=0,al=null,sl=-1,ll=0,cl=0,ul=null,dl=!1;function pl(){return 0!=(48&Is)?Ho():-1!==sl?sl:sl=Ho()}function hl(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===Uo()?1:2;if(0===ll&&(ll=Ls),0!==Jo.transition){0!==cl&&(cl=null!==Hs?Hs.pendingLanes:0),e=ll;var t=4186112&~cl;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=Uo(),0!=(4&Is)&&98===e?e=Lt(12,ll):e=Lt(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),ll),e}function fl(e,t,n){if(50<il)throw il=0,al=null,Error(a(185));if(null===(e=ml(e,t)))return null;$t(e,t,n),e===Ms&&(Ks|=t,4===Fs&&yl(e,Os));var r=Uo();1===t?0!=(8&Is)&&0==(48&Is)?bl(e):(gl(e,n),0===Is&&(Ws(),Yo())):(0==(4&Is)||98!==r&&99!==r||(null===ol?ol=new Set([e]):ol.add(e)),gl(e,n)),Hs=e}function ml(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}function gl(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,o=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var l=31-Ht(s),c=1<<l,u=i[l];if(-1===u){if(0==(c&r)||0!=(c&o)){u=t,Rt(c);var d=jt;i[l]=10<=d?u+250:6<=d?u+5e3:-1}}else u<=t&&(e.expiredLanes|=c);s&=~c}if(r=Ft(e,e===Ms?Os:0),t=jt,0===r)null!==n&&(n!==Fo&&Po(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Fo&&Po(n)}15===t?(n=bl.bind(null,e),null===Lo?(Lo=[n],Vo=zo(Mo,Zo)):Lo.push(n),n=Fo):14===t?n=Go(99,bl.bind(null,e)):(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(a(358,e))}}(t),n=Go(n,vl.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function vl(e){if(sl=-1,cl=ll=0,0!=(48&Is))throw Error(a(327));var t=e.callbackNode;if(Ol()&&e.callbackNode!==t)return null;var n=Ft(e,e===Ms?Os:0);if(0===n)return null;var r=n,o=Is;Is|=16;var i=kl();for(Ms===e&&Os===r||(Ws(),Cl(e,r));;)try{Al();break}catch(t){El(e,t)}if(ri(),Ds.current=i,Is=o,null!==Ns?r=0:(Ms=null,Os=0,r=Fs),0!=(Ls&Ks))Cl(e,0);else if(0!==r){if(2===r&&(Is|=64,e.hydrate&&(e.hydrate=!1,Wr(e.containerInfo)),0!==(n=Bt(e))&&(r=zl(e,n))),1===r)throw t=Bs,Cl(e,0),yl(e,n),gl(e,Ho()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(a(345));case 2:case 5:Il(e);break;case 3:if(yl(e,n),(62914560&n)===n&&10<(r=Us+500-Ho())){if(0!==Ft(e,0))break;if(((o=e.suspendedLanes)&n)!==n){pl(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Ur(Il.bind(null,e),r);break}Il(e);break;case 4:if(yl(e,n),(4186112&n)===n)break;for(r=e.eventTimes,o=-1;0<n;){var s=31-Ht(n);i=1<<s,(s=r[s])>o&&(o=s),n&=~i}if(n=o,10<(n=(120>(n=Ho()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*As(n/1960))-n)){e.timeoutHandle=Ur(Il.bind(null,e),n);break}Il(e);break;default:throw Error(a(329))}}return gl(e,Ho()),e.callbackNode===t?vl.bind(null,e):null}function yl(e,t){for(t&=~$s,t&=~Ks,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ht(t),r=1<<n;e[n]=-1,t&=~r}}function bl(e){if(0!=(48&Is))throw Error(a(327));if(Ol(),e===Ms&&0!=(e.expiredLanes&Os)){var t=Os,n=zl(e,t);0!=(Ls&Ks)&&(n=zl(e,t=Ft(e,t)))}else n=zl(e,t=Ft(e,0));if(0!==e.tag&&2===n&&(Is|=64,e.hydrate&&(e.hydrate=!1,Wr(e.containerInfo)),0!==(t=Bt(e))&&(n=zl(e,t))),1===n)throw n=Bs,Cl(e,0),yl(e,t),gl(e,Ho()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Il(e),gl(e,Ho()),null}function wl(e,t){var n=Is;Is|=1;try{return e(t)}finally{0===(Is=n)&&(Ws(),Yo())}}function xl(e,t){var n=Is;Is&=-2,Is|=8;try{return e(t)}finally{0===(Is=n)&&(Ws(),Yo())}}function Sl(e,t){po(Rs,js),js|=t,Ls|=t}function _l(){js=Rs.current,uo(Rs)}function Cl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,qr(n)),null!==Ns)for(n=Ns.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&bo();break;case 3:Oi(),uo(mo),uo(fo),Zi();break;case 5:Ri(r);break;case 4:Oi();break;case 13:case 19:uo(Fi);break;case 10:oi(r);break;case 23:case 24:_l()}n=n.return}Ms=e,Ns=ql(e.current,null),Os=js=Ls=t,Fs=0,Bs=null,$s=Ks=Vs=0}function El(e,t){for(;;){var n=Ns;try{if(ri(),Ji.current=Ia,ra){for(var r=ea.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ra=!1}if(Qi=0,na=ta=ea=null,oa=!1,Ts.current=null,null===n||null===n.return){Fs=1,Bs=t,Ns=null;break}e:{var i=e,a=n.return,s=n,l=t;if(t=Os,s.flags|=2048,s.firstEffect=s.lastEffect=null,null!==l&&"object"==typeof l&&"function"==typeof l.then){var c=l;if(0==(2&s.mode)){var u=s.alternate;u?(s.updateQueue=u.updateQueue,s.memoizedState=u.memoizedState,s.lanes=u.lanes):(s.updateQueue=null,s.memoizedState=null)}var d=0!=(1&Fi.current),p=a;do{var h;if(h=13===p.tag){var f=p.memoizedState;if(null!==f)h=null!==f.dehydrated;else{var m=p.memoizedProps;h=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!d)}}if(h){var g=p.updateQueue;if(null===g){var v=new Set;v.add(c),p.updateQueue=v}else g.add(c);if(0==(2&p.mode)){if(p.flags|=64,s.flags|=16384,s.flags&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var y=di(-1,1);y.tag=2,pi(s,y)}s.lanes|=1;break e}l=void 0,s=t;var b=i.pingCache;if(null===b?(b=i.pingCache=new ds,l=new Set,b.set(c,l)):void 0===(l=b.get(c))&&(l=new Set,b.set(c,l)),!l.has(s)){l.add(s);var w=Vl.bind(null,i,c,s);c.then(w,w)}p.flags|=4096,p.lanes=t;break e}p=p.return}while(null!==p);l=Error((W(s.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Fs&&(Fs=2),l=cs(l,s),p=a;do{switch(p.tag){case 3:i=l,p.flags|=4096,t&=-t,p.lanes|=t,hi(p,ps(0,i,t));break e;case 1:i=l;var x=p.type,S=p.stateNode;if(0==(64&p.flags)&&("function"==typeof x.getDerivedStateFromError||null!==S&&"function"==typeof S.componentDidCatch&&(null===Xs||!Xs.has(S)))){p.flags|=4096,t&=-t,p.lanes|=t,hi(p,hs(p,i,t));break e}}p=p.return}while(null!==p)}Tl(n)}catch(e){t=e,Ns===n&&null!==n&&(Ns=n=n.return);continue}break}}function kl(){var e=Ds.current;return Ds.current=Ia,null===e?Ia:e}function zl(e,t){var n=Is;Is|=16;var r=kl();for(Ms===e&&Os===t||Cl(e,t);;)try{Pl();break}catch(t){El(e,t)}if(ri(),Is=n,Ds.current=r,null!==Ns)throw Error(a(261));return Ms=null,Os=0,Fs}function Pl(){for(;null!==Ns;)Dl(Ns)}function Al(){for(;null!==Ns&&!Ao();)Dl(Ns)}function Dl(e){var t=Gs(e.alternate,e,js);e.memoizedProps=e.pendingProps,null===t?Tl(e):Ns=t,Ts.current=null}function Tl(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=ss(n,t,js)))return void(Ns=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&js)||0==(4&n.mode)){for(var r=0,o=n.child;null!==o;)r|=o.lanes|o.childLanes,o=o.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=ls(t)))return n.flags&=2047,void(Ns=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Ns=t);Ns=t=e}while(null!==t);0===Fs&&(Fs=5)}function Il(e){var t=Uo();return Wo(99,Ml.bind(null,e,t)),null}function Ml(e,t){do{Ol()}while(null!==el);if(0!=(48&Is))throw Error(a(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null;var r=n.lanes|n.childLanes,o=r,i=e.pendingLanes&~o;e.pendingLanes=o,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=o,e.mutableReadLanes&=o,e.entangledLanes&=o,o=e.entanglements;for(var s=e.eventTimes,l=e.expirationTimes;0<i;){var c=31-Ht(i),u=1<<c;o[c]=0,s[c]=-1,l[c]=-1,i&=~u}if(null!==ol&&0==(24&r)&&ol.has(e)&&ol.delete(e),e===Ms&&(Ns=Ms=null,Os=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(o=Is,Is|=32,Ts.current=null,Vr=Yt,vr(s=gr())){if("selectionStart"in s)l={start:s.selectionStart,end:s.selectionEnd};else e:if(l=(l=s.ownerDocument)&&l.defaultView||window,(u=l.getSelection&&l.getSelection())&&0!==u.rangeCount){l=u.anchorNode,i=u.anchorOffset,c=u.focusNode,u=u.focusOffset;try{l.nodeType,c.nodeType}catch(e){l=null;break e}var d=0,p=-1,h=-1,f=0,m=0,g=s,v=null;t:for(;;){for(var y;g!==l||0!==i&&3!==g.nodeType||(p=d+i),g!==c||0!==u&&3!==g.nodeType||(h=d+u),3===g.nodeType&&(d+=g.nodeValue.length),null!==(y=g.firstChild);)v=g,g=y;for(;;){if(g===s)break t;if(v===l&&++f===i&&(p=d),v===c&&++m===u&&(h=d),null!==(y=g.nextSibling))break;v=(g=v).parentNode}g=y}l=-1===p||-1===h?null:{start:p,end:h}}else l=null;l=l||{start:0,end:0}}else l=null;Kr={focusedElem:s,selectionRange:l},Yt=!1,ul=null,dl=!1,Ys=r;do{try{Nl()}catch(e){if(null===Ys)throw Error(a(330));Ll(Ys,e),Ys=Ys.nextEffect}}while(null!==Ys);ul=null,Ys=r;do{try{for(s=e;null!==Ys;){var b=Ys.flags;if(16&b&&ye(Ys.stateNode,""),128&b){var w=Ys.alternate;if(null!==w){var x=w.ref;null!==x&&("function"==typeof x?x(null):x.current=null)}}switch(1038&b){case 2:Ss(Ys),Ys.flags&=-3;break;case 6:Ss(Ys),Ys.flags&=-3,ks(Ys.alternate,Ys);break;case 1024:Ys.flags&=-1025;break;case 1028:Ys.flags&=-1025,ks(Ys.alternate,Ys);break;case 4:ks(Ys.alternate,Ys);break;case 8:Es(s,l=Ys);var S=l.alternate;ws(l),null!==S&&ws(S)}Ys=Ys.nextEffect}}catch(e){if(null===Ys)throw Error(a(330));Ll(Ys,e),Ys=Ys.nextEffect}}while(null!==Ys);if(x=Kr,w=gr(),b=x.focusedElem,s=x.selectionRange,w!==b&&b&&b.ownerDocument&&mr(b.ownerDocument.documentElement,b)){null!==s&&vr(b)&&(w=s.start,void 0===(x=s.end)&&(x=w),"selectionStart"in b?(b.selectionStart=w,b.selectionEnd=Math.min(x,b.value.length)):(x=(w=b.ownerDocument||document)&&w.defaultView||window).getSelection&&(x=x.getSelection(),l=b.textContent.length,S=Math.min(s.start,l),s=void 0===s.end?S:Math.min(s.end,l),!x.extend&&S>s&&(l=s,s=S,S=l),l=fr(b,S),i=fr(b,s),l&&i&&(1!==x.rangeCount||x.anchorNode!==l.node||x.anchorOffset!==l.offset||x.focusNode!==i.node||x.focusOffset!==i.offset)&&((w=w.createRange()).setStart(l.node,l.offset),x.removeAllRanges(),S>s?(x.addRange(w),x.extend(i.node,i.offset)):(w.setEnd(i.node,i.offset),x.addRange(w))))),w=[];for(x=b;x=x.parentNode;)1===x.nodeType&&w.push({element:x,left:x.scrollLeft,top:x.scrollTop});for("function"==typeof b.focus&&b.focus(),b=0;b<w.length;b++)(x=w[b]).element.scrollLeft=x.left,x.element.scrollTop=x.top}Yt=!!Vr,Kr=Vr=null,e.current=n,Ys=r;do{try{for(b=e;null!==Ys;){var _=Ys.flags;if(36&_&&vs(b,Ys.alternate,Ys),128&_){w=void 0;var C=Ys.ref;if(null!==C){var E=Ys.stateNode;Ys.tag,w=E,"function"==typeof C?C(w):C.current=w}}Ys=Ys.nextEffect}}catch(e){if(null===Ys)throw Error(a(330));Ll(Ys,e),Ys=Ys.nextEffect}}while(null!==Ys);Ys=null,Bo(),Is=o}else e.current=n;if(Qs)Qs=!1,el=e,tl=t;else for(Ys=r;null!==Ys;)t=Ys.nextEffect,Ys.nextEffect=null,8&Ys.flags&&((_=Ys).sibling=null,_.stateNode=null),Ys=t;if(0===(r=e.pendingLanes)&&(Xs=null),1===r?e===al?il++:(il=0,al=e):il=0,n=n.stateNode,Eo&&"function"==typeof Eo.onCommitFiberRoot)try{Eo.onCommitFiberRoot(Co,n,void 0,64==(64&n.current.flags))}catch(e){}if(gl(e,Ho()),Zs)throw Zs=!1,e=Js,Js=null,e;return 0!=(8&Is)||Yo(),null}function Nl(){for(;null!==Ys;){var e=Ys.alternate;dl||null===ul||(0!=(8&Ys.flags)?et(Ys,ul)&&(dl=!0):13===Ys.tag&&Ps(e,Ys)&&et(Ys,ul)&&(dl=!0));var t=Ys.flags;0!=(256&t)&&gs(e,Ys),0==(512&t)||Qs||(Qs=!0,Go(97,(function(){return Ol(),null}))),Ys=Ys.nextEffect}}function Ol(){if(90!==tl){var e=97<tl?97:tl;return tl=90,Wo(e,Fl)}return!1}function jl(e,t){nl.push(t,e),Qs||(Qs=!0,Go(97,(function(){return Ol(),null})))}function Rl(e,t){rl.push(t,e),Qs||(Qs=!0,Go(97,(function(){return Ol(),null})))}function Fl(){if(null===el)return!1;var e=el;if(el=null,0!=(48&Is))throw Error(a(331));var t=Is;Is|=32;var n=rl;rl=[];for(var r=0;r<n.length;r+=2){var o=n[r],i=n[r+1],s=o.destroy;if(o.destroy=void 0,"function"==typeof s)try{s()}catch(e){if(null===i)throw Error(a(330));Ll(i,e)}}for(n=nl,nl=[],r=0;r<n.length;r+=2){o=n[r],i=n[r+1];try{var l=o.create;o.destroy=l()}catch(e){if(null===i)throw Error(a(330));Ll(i,e)}}for(l=e.current.firstEffect;null!==l;)e=l.nextEffect,l.nextEffect=null,8&l.flags&&(l.sibling=null,l.stateNode=null),l=e;return Is=t,Yo(),!0}function Bl(e,t,n){pi(e,t=ps(0,t=cs(n,t),1)),t=pl(),null!==(e=ml(e,1))&&($t(e,1,t),gl(e,t))}function Ll(e,t){if(3===e.tag)Bl(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Bl(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Xs||!Xs.has(r))){var o=hs(n,e=cs(t,e),1);if(pi(n,o),o=pl(),null!==(n=ml(n,1)))$t(n,1,o),gl(n,o);else if("function"==typeof r.componentDidCatch&&(null===Xs||!Xs.has(r)))try{r.componentDidCatch(t,e)}catch(e){}break}}n=n.return}}function Vl(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=pl(),e.pingedLanes|=e.suspendedLanes&n,Ms===e&&(Os&n)===n&&(4===Fs||3===Fs&&(62914560&Os)===Os&&500>Ho()-Us?Cl(e,0):$s|=n),gl(e,t)}function Kl(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===Uo()?1:2:(0===ll&&(ll=Ls),0===(t=Vt(62914560&~ll))&&(t=4194304))),n=pl(),null!==(e=ml(e,t))&&($t(e,t,n),gl(e,n))}function $l(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.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Hl(e,t,n,r){return new $l(e,t,n,r)}function Ul(e){return!(!(e=e.prototype)||!e.isReactComponent)}function ql(e,t){var n=e.alternate;return null===n?((n=Hl(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.nextEffect=null,n.firstEffect=null,n.lastEffect=null),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 Wl(e,t,n,r,o,i){var s=2;if(r=e,"function"==typeof e)Ul(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case C:return Gl(n.children,o,i,t);case j:s=8,o|=16;break;case E:s=8,o|=1;break;case k:return(e=Hl(12,n,t,8|o)).elementType=k,e.type=k,e.lanes=i,e;case D:return(e=Hl(13,n,t,o)).type=D,e.elementType=D,e.lanes=i,e;case T:return(e=Hl(19,n,t,o)).elementType=T,e.lanes=i,e;case R:return Yl(n,o,i,t);case F:return(e=Hl(24,n,t,o)).elementType=F,e.lanes=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case z:s=10;break e;case P:s=9;break e;case A:s=11;break e;case I:s=14;break e;case M:s=16,r=null;break e;case N:s=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Hl(s,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Gl(e,t,n,r){return(e=Hl(7,e,r,t)).lanes=n,e}function Yl(e,t,n,r){return(e=Hl(23,e,r,t)).elementType=R,e.lanes=n,e}function Zl(e,t,n){return(e=Hl(6,e,null,t)).lanes=n,e}function Jl(e,t,n){return(t=Hl(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Xl(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Kt(0),this.expirationTimes=Kt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Kt(0),this.mutableSourceEagerHydrationData=null}function Ql(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:_,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function ec(e,t,n,r){var o=t.current,i=pl(),s=hl(o);e:if(n){t:{if(Ze(n=n._reactInternals)!==n||1!==n.tag)throw Error(a(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(yo(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(a(171))}if(1===n.tag){var c=n.type;if(yo(c)){n=xo(n,c,l);break e}}n=l}else n=ho;return null===t.context?t.context=n:t.pendingContext=n,(t=di(i,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),pi(o,t),fl(o,s,i),s}function tc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function nc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function rc(e,t){nc(e,t),(e=e.alternate)&&nc(e,t)}function oc(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Xl(e,t,null!=n&&!0===n.hydrate),t=Hl(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,ci(t),e[eo]=n.current,Ir(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var o=(t=r[e])._getVersion;o=o(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,o]:n.mutableSourceEagerHydrationData.push(t,o)}this._internalRoot=n}function ic(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function ac(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i._internalRoot;if("function"==typeof o){var s=o;o=function(){var e=tc(a);s.call(e)}}ec(t,a,e,o)}else{if(i=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new oc(e,0,t?{hydrate:!0}:void 0)}(n,r),a=i._internalRoot,"function"==typeof o){var l=o;o=function(){var e=tc(a);l.call(e)}}xl((function(){ec(t,a,e,o)}))}return tc(a)}function sc(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!ic(t))throw Error(a(200));return Ql(e,t,null,n)}Gs=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||mo.current)Ra=!0;else{if(0==(n&r)){switch(Ra=!1,t.tag){case 3:Wa(t),Gi();break;case 5:ji(t);break;case 1:yo(t.type)&&So(t);break;case 4:Ni(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var o=t.type._context;po(Qo,o._currentValue),o._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!=(n&t.child.childLanes)?Xa(e,t,n):(po(Fi,1&Fi.current),null!==(t=is(e,t,n))?t.sibling:null);po(Fi,1&Fi.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return os(e,t,n);t.flags|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),po(Fi,Fi.current),r)break;return null;case 23:case 24:return t.lanes=0,Ka(e,t,n)}return is(e,t,n)}Ra=0!=(16384&e.flags)}else Ra=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=vo(t,fo.current),ai(t,n),o=sa(null,t,r,e,o,n),t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,yo(r)){var i=!0;So(t)}else i=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,ci(t);var s=r.getDerivedStateFromProps;"function"==typeof s&&vi(t,r,s,e),o.updater=yi,t.stateNode=o,o._reactInternals=t,Si(t,r,e,n),t=qa(null,t,r,!0,i,n)}else t.tag=0,Fa(null,t,o,n),t=t.child;return t;case 16:o=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=(i=o._init)(o._payload),t.type=o,i=t.tag=function(e){if("function"==typeof e)return Ul(e)?1:0;if(null!=e){if((e=e.$$typeof)===A)return 11;if(e===I)return 14}return 2}(o),e=Xo(o,e),i){case 0:t=Ha(null,t,o,e,n);break e;case 1:t=Ua(null,t,o,e,n);break e;case 11:t=Ba(null,t,o,e,n);break e;case 14:t=La(null,t,o,Xo(o.type,e),r,n);break e}throw Error(a(306,o,""))}return t;case 0:return r=t.type,o=t.pendingProps,Ha(e,t,r,o=t.elementType===r?o:Xo(r,o),n);case 1:return r=t.type,o=t.pendingProps,Ua(e,t,r,o=t.elementType===r?o:Xo(r,o),n);case 3:if(Wa(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,o=null!==(o=t.memoizedState)?o.element:null,ui(e,t),fi(t,r,null,n),(r=t.memoizedState.element)===o)Gi(),t=is(e,t,n);else{if((i=(o=t.stateNode).hydrate)&&(Vi=Gr(t.stateNode.containerInfo.firstChild),Li=t,i=Ki=!0),i){if(null!=(e=o.mutableSourceEagerHydrationData))for(o=0;o<e.length;o+=2)(i=e[o])._workInProgressVersionPrimary=e[o+1],Yi.push(i);for(n=Pi(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Fa(e,t,r,n),Gi();t=t.child}return t;case 5:return ji(t),null===e&&Ui(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,s=o.children,Hr(r,o)?s=null:null!==i&&Hr(r,i)&&(t.flags|=16),$a(e,t),Fa(e,t,s,n),t.child;case 6:return null===e&&Ui(t),null;case 13:return Xa(e,t,n);case 4:return Ni(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=zi(t,null,r,n):Fa(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Ba(e,t,r,o=t.elementType===r?o:Xo(r,o),n);case 7:return Fa(e,t,t.pendingProps,n),t.child;case 8:case 12:return Fa(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,o=t.pendingProps,s=t.memoizedProps,i=o.value;var l=t.type._context;if(po(Qo,l._currentValue),l._currentValue=i,null!==s)if(l=s.value,0===(i=ur(l,i)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(l,i):1073741823))){if(s.children===o.children&&!mo.current){t=is(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var c=l.dependencies;if(null!==c){s=l.child;for(var u=c.firstContext;null!==u;){if(u.context===r&&0!=(u.observedBits&i)){1===l.tag&&((u=di(-1,n&-n)).tag=2,pi(l,u)),l.lanes|=n,null!==(u=l.alternate)&&(u.lanes|=n),ii(l.return,n),c.lanes|=n;break}u=u.next}}else s=10===l.tag&&l.type===t.type?null:l.child;if(null!==s)s.return=l;else for(s=l;null!==s;){if(s===t){s=null;break}if(null!==(l=s.sibling)){l.return=s.return,s=l;break}s=s.return}l=s}Fa(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=(i=t.pendingProps).children,ai(t,n),r=r(o=si(o,i.unstable_observedBits)),t.flags|=1,Fa(e,t,r,n),t.child;case 14:return i=Xo(o=t.type,t.pendingProps),La(e,t,o,i=Xo(o.type,i),r,n);case 15:return Va(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xo(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,yo(r)?(e=!0,So(t)):e=!1,ai(t,n),wi(t,r,o),Si(t,r,o,n),qa(null,t,r,!0,e,n);case 19:return os(e,t,n);case 23:case 24:return Ka(e,t,n)}throw Error(a(156,t.tag))},oc.prototype.render=function(e){ec(e,this._internalRoot,null,null)},oc.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;ec(null,e,null,(function(){t[eo]=null}))},tt=function(e){13===e.tag&&(fl(e,4,pl()),rc(e,4))},nt=function(e){13===e.tag&&(fl(e,67108864,pl()),rc(e,67108864))},rt=function(e){if(13===e.tag){var t=pl(),n=hl(e);fl(e,n,t),rc(e,n)}},ot=function(e,t){return t()},ze=function(e,t,n){switch(t){case"input":if(ne(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=io(r);if(!o)throw Error(a(90));J(r),ne(r,o)}}}break;case"textarea":ce(e,n);break;case"select":null!=(t=n.value)&&ae(e,!!n.multiple,t,!1)}},Me=wl,Ne=function(e,t,n,r,o){var i=Is;Is|=4;try{return Wo(98,e.bind(null,t,n,r,o))}finally{0===(Is=i)&&(Ws(),Yo())}},Oe=function(){0==(49&Is)&&(function(){if(null!==ol){var e=ol;ol=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,gl(e,Ho())}))}Yo()}(),Ol())},je=function(e,t){var n=Is;Is|=2;try{return e(t)}finally{0===(Is=n)&&(Ws(),Yo())}};var lc={Events:[ro,oo,io,Te,Ie,Ol,{current:!1}]},cc={findFiberByHostInstance:no,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},uc={bundleType:cc.bundleType,version:cc.version,rendererPackageName:cc.rendererPackageName,rendererConfig:cc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Qe(e))?null:e.stateNode},findFiberByHostInstance:cc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(void 0!=={isDisabled:!0}){var dc={isDisabled:!0};if(!dc.isDisabled&&dc.supportsFiber)try{Co=dc.inject(uc),Eo=dc}catch(ge){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=lc,t.createPortal=sc,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(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=Qe(t))?null:e.stateNode},t.flushSync=function(e,t){var n=Is;if(0!=(48&n))return e(t);Is|=1;try{if(e)return Wo(99,e.bind(null,t))}finally{Is=n,Yo()}},t.hydrate=function(e,t,n){if(!ic(t))throw Error(a(200));return ac(null,e,t,!0,n)},t.render=function(e,t,n){if(!ic(t))throw Error(a(200));return ac(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!ic(e))throw Error(a(40));return!!e._reactRootContainer&&(xl((function(){ac(null,null,e,!1,(function(){e._reactRootContainer=null,e[eo]=null}))})),!0)},t.unstable_batchedUpdates=wl,t.unstable_createPortal=function(e,t){return sc(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ic(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return ac(e,t,n,!1,r)},t.version="17.0.2"},40961:(e,t,n)=>{"use strict";!function e(){if(void 0!=={isDisabled:!0}&&"function"==typeof{isDisabled:!0}.checkDCE)try{({isDisabled:!0}).checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(22551)},98731:(e,t)=>{"use strict";var n,r,o,i;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}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var c=null,u=null,d=function(){if(null!==c)try{var e=t.unstable_now();c(!0,e),c=null}catch(e){throw setTimeout(d,0),e}};n=function(e){null!==c?setTimeout(n,0,e):(c=e,setTimeout(d,0))},r=function(e,t){u=setTimeout(e,t)},o=function(){clearTimeout(u)},t.unstable_shouldYield=function(){return!1},i=t.unstable_forceFrameRate=function(){}}else{var p=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var f=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof f&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var m=!1,g=null,v=-1,y=5,b=0;t.unstable_shouldYield=function(){return t.unstable_now()>=b},i=function(){},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"):y=0<e?Math.floor(1e3/e):5};var w=new MessageChannel,x=w.port2;w.port1.onmessage=function(){if(null!==g){var e=t.unstable_now();b=e+y;try{g(!0,e)?x.postMessage(null):(m=!1,g=null)}catch(e){throw x.postMessage(null),e}}else m=!1},n=function(e){g=e,m||(m=!0,x.postMessage(null))},r=function(e,n){v=p((function(){e(t.unstable_now())}),n)},o=function(){h(v),v=-1}}function S(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<E(o,t)))break e;e[r]=t,e[n]=o,n=r}}function _(e){return void 0===(e=e[0])?null:e}function C(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var i=2*(r+1)-1,a=e[i],s=i+1,l=e[s];if(void 0!==a&&0>E(a,n))void 0!==l&&0>E(l,a)?(e[r]=l,e[s]=n,r=s):(e[r]=a,e[i]=n,r=i);else{if(!(void 0!==l&&0>E(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function E(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var k=[],z=[],P=1,A=null,D=3,T=!1,I=!1,M=!1;function N(e){for(var t=_(z);null!==t;){if(null===t.callback)C(z);else{if(!(t.startTime<=e))break;C(z),t.sortIndex=t.expirationTime,S(k,t)}t=_(z)}}function O(e){if(M=!1,N(e),!I)if(null!==_(k))I=!0,n(j);else{var t=_(z);null!==t&&r(O,t.startTime-e)}}function j(e,n){I=!1,M&&(M=!1,o()),T=!0;var i=D;try{for(N(n),A=_(k);null!==A&&(!(A.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=A.callback;if("function"==typeof a){A.callback=null,D=A.priorityLevel;var s=a(A.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?A.callback=s:A===_(k)&&C(k),N(n)}else C(k);A=_(k)}if(null!==A)var l=!0;else{var c=_(z);null!==c&&r(O,c.startTime-n),l=!1}return l}finally{A=null,D=i,T=!1}}var R=i;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(){I||T||(I=!0,n(j))},t.unstable_getCurrentPriorityLevel=function(){return D},t.unstable_getFirstCallbackNode=function(){return _(k)},t.unstable_next=function(e){switch(D){case 1:case 2:case 3:var t=3;break;default:t=D}var n=D;D=t;try{return e()}finally{D=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=R,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=D;D=e;try{return t()}finally{D=n}},t.unstable_scheduleCallback=function(e,i,a){var s=t.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0<a?s+a:s:a=s,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:P++,callback:i,priorityLevel:e,startTime:a,expirationTime:l=a+l,sortIndex:-1},a>s?(e.sortIndex=a,S(z,e),null===_(k)&&e===_(z)&&(M?o():M=!0,r(O,a-s))):(e.sortIndex=l,S(k,e),I||T||(I=!0,n(j))),e},t.unstable_wrapCallback=function(e){var t=D;return function(){var n=D;D=t;try{return e.apply(this,arguments)}finally{D=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){if(e&&e.__esModule)return e;if(null===e||"object"!==f(e)&&"function"!=typeof e)return{default:e};var t=h();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(96540)),o=p(n(5556)),i=p(n(40961)),a=p(n(49022)),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(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return h=function(){return e},e}function f(e){return f="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},f(e)}function m(){return m=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},m.apply(this,arguments)}function g(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 v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}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){P(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){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 S(e,t,n){return t&&x(e.prototype,t),n&&x(e,n),e}function _(e,t){return _=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_(e,t)}function C(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=z(e);if(t){var o=z(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return E(this,n)}}function E(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?k(e):t}function k(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function z(e){return z=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},z(e)}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 A=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}}),t&&_(e,t)}(n,e);var t=C(n);function n(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),P(k(r=t.call(this,e)),"onDragStart",(function(e,t){if((0,d.default)("Draggable: onDragStart: %j",t),!1===r.props.onStart(e,(0,l.createDraggableData)(k(r),t)))return!1;r.setState({dragging:!0,dragged:!0})})),P(k(r),"onDrag",(function(e,t){if(!r.state.dragging)return!1;(0,d.default)("Draggable: onDrag: %j",t);var n=(0,l.createDraggableData)(k(r),t),o={x:n.x,y:n.y};if(r.props.bounds){var i=o.x,a=o.y;o.x+=r.state.slackX,o.y+=r.state.slackY;var s=v((0,l.getBoundPosition)(k(r),o.x,o.y),2),c=s[0],u=s[1];o.x=c,o.y=u,o.slackX=r.state.slackX+(i-o.x),o.slackY=r.state.slackY+(a-o.y),n.x=o.x,n.y=o.y,n.deltaX=o.x-r.state.x,n.deltaY=o.y-r.state.y}if(!1===r.props.onDrag(e,n))return!1;r.setState(o)})),P(k(r),"onDragStop",(function(e,t){if(!r.state.dragging)return!1;if(!1===r.props.onStop(e,(0,l.createDraggableData)(k(r),t)))return!1;(0,d.default)("Draggable: onDragStop: %j",t);var n={dragging:!1,slackX:0,slackY:0};if(Boolean(r.props.position)){var o=r.props.position,i=o.x,a=o.y;n.x=i,n.y=a}r.setState(n)})),r.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:w({},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."),r}return S(n,null,[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.position,r=t.prevPropsPosition;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:w({},n)})}}]),S(n,[{key:"componentDidMount",value:function(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}},{key:"componentWillUnmount",value:function(){this.setState({dragging:!1})}},{key:"findDOMNode",value:function(){return this.props.nodeRef?this.props.nodeRef.current:i.default.findDOMNode(this)}},{key:"render",value:function(){var e,t=this.props,n=(t.axis,t.bounds,t.children),o=t.defaultPosition,i=t.defaultClassName,c=t.defaultClassNameDragging,d=t.defaultClassNameDragged,p=t.position,h=t.positionOffset,f=(t.scale,g(t,["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"])),v={},y=null,b=!Boolean(p)||this.state.dragging,x=p||o,S={x:(0,l.canDragX)(this)&&b?this.state.x:x.x,y:(0,l.canDragY)(this)&&b?this.state.y:x.y};this.state.isElementSVG?y=(0,s.createSVGTransform)(S,h):v=(0,s.createCSSTransform)(S,h);var _=(0,a.default)(n.props.className||"",i,(P(e={},c,this.state.dragging),P(e,d,this.state.dragged),e));return r.createElement(u.default,m({},f,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),r.cloneElement(r.Children.only(n),{className:_,style:w(w({},n.props.style),v),transform:y}))}}]),n}(r.Component);t.default=A,P(A,"displayName","Draggable"),P(A,"propTypes",w(w({},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})),P(A,"defaultProps",w(w({},u.default.defaultProps),{},{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},position:null,scale:1}))},6888:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==p(e)&&"function"!=typeof e)return{default:e};var t=d();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(96540)),o=u(n(5556)),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(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return d=function(){return e},e}function p(e){return p="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},p(e)}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(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 v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}function y(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=x(e);if(t){var o=x(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?w(e):t}function w(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x(e){return x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},x(e)}function S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _={start:"touchstart",move:"touchmove",stop:"touchend"},C={start:"mousedown",move:"mousemove",stop:"mouseup"},E=C,k=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}}),t&&v(e,t)}(u,e);var t,n,o,l=y(u);function u(){var e;m(this,u);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return S(w(e=l.call.apply(l,[this].concat(n))),"state",{dragging:!1,lastX:NaN,lastY:NaN,touchIdentifier:null}),S(w(e),"mounted",!1),S(w(e),"handleDragStart",(function(t){if(e.props.onMouseDown(t),!e.props.allowAnyClick&&"number"==typeof t.button&&0!==t.button)return!1;var n=e.findDOMNode();if(!n||!n.ownerDocument||!n.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");var r=n.ownerDocument;if(!(e.props.disabled||!(t.target instanceof r.defaultView.Node)||e.props.handle&&!(0,a.matchesSelectorAndParentsTo)(t.target,e.props.handle,n)||e.props.cancel&&(0,a.matchesSelectorAndParentsTo)(t.target,e.props.cancel,n))){"touchstart"===t.type&&t.preventDefault();var o=(0,a.getTouchIdentifier)(t);e.setState({touchIdentifier:o});var i=(0,s.getControlPosition)(t,o,w(e));if(null!=i){var l=i.x,u=i.y,d=(0,s.createCoreData)(w(e),l,u);(0,c.default)("DraggableCore: handleDragStart: %j",d),(0,c.default)("calling",e.props.onStart),!1!==e.props.onStart(t,d)&&!1!==e.mounted&&(e.props.enableUserSelectHack&&(0,a.addUserSelectStyles)(r),e.setState({dragging:!0,lastX:l,lastY:u}),(0,a.addEvent)(r,E.move,e.handleDrag),(0,a.addEvent)(r,E.stop,e.handleDragStop))}}})),S(w(e),"handleDrag",(function(t){var n=(0,s.getControlPosition)(t,e.state.touchIdentifier,w(e));if(null!=n){var r=n.x,o=n.y;if(Array.isArray(e.props.grid)){var i=r-e.state.lastX,a=o-e.state.lastY,l=h((0,s.snapToGrid)(e.props.grid,i,a),2);if(i=l[0],a=l[1],!i&&!a)return;r=e.state.lastX+i,o=e.state.lastY+a}var u=(0,s.createCoreData)(w(e),r,o);if((0,c.default)("DraggableCore: handleDrag: %j",u),!1!==e.props.onDrag(t,u)&&!1!==e.mounted)e.setState({lastX:r,lastY:o});else try{e.handleDragStop(new MouseEvent("mouseup"))}catch(t){var d=document.createEvent("MouseEvents");d.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),e.handleDragStop(d)}}})),S(w(e),"handleDragStop",(function(t){if(e.state.dragging){var n=(0,s.getControlPosition)(t,e.state.touchIdentifier,w(e));if(null!=n){var r=n.x,o=n.y,i=(0,s.createCoreData)(w(e),r,o);if(!1===e.props.onStop(t,i)||!1===e.mounted)return!1;var l=e.findDOMNode();l&&e.props.enableUserSelectHack&&(0,a.removeUserSelectStyles)(l.ownerDocument),(0,c.default)("DraggableCore: handleDragStop: %j",i),e.setState({dragging:!1,lastX:NaN,lastY:NaN}),l&&((0,c.default)("DraggableCore: Removing handlers"),(0,a.removeEvent)(l.ownerDocument,E.move,e.handleDrag),(0,a.removeEvent)(l.ownerDocument,E.stop,e.handleDragStop))}}})),S(w(e),"onMouseDown",(function(t){return E=C,e.handleDragStart(t)})),S(w(e),"onMouseUp",(function(t){return E=C,e.handleDragStop(t)})),S(w(e),"onTouchStart",(function(t){return E=_,e.handleDragStart(t)})),S(w(e),"onTouchEnd",(function(t){return E=_,e.handleDragStop(t)})),e}return t=u,(n=[{key:"componentDidMount",value:function(){this.mounted=!0;var e=this.findDOMNode();e&&(0,a.addEvent)(e,_.start,this.onTouchStart,{passive:!1})}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var e=this.findDOMNode();if(e){var t=e.ownerDocument;(0,a.removeEvent)(t,C.move,this.handleDrag),(0,a.removeEvent)(t,_.move,this.handleDrag),(0,a.removeEvent)(t,C.stop,this.handleDragStop),(0,a.removeEvent)(t,_.stop,this.handleDragStop),(0,a.removeEvent)(e,_.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,a.removeUserSelectStyles)(t)}}},{key:"findDOMNode",value:function(){return this.props.nodeRef?this.props.nodeRef.current:i.default.findDOMNode(this)}},{key:"render",value:function(){return r.cloneElement(r.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}])&&g(t.prototype,n),o&&g(t,o),u}(r.Component);t.default=k,S(k,"displayName","DraggableCore"),S(k,"propTypes",{allowAnyClick:o.default.bool,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}),S(k,"defaultProps",{allowAnyClick:!1,cancel:null,disabled:!1,enableUserSelectHack:!0,offsetParent:null,handle:null,grid:null,transform:null,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},55794:(e,t,n)=>{"use strict";var r=n(86027),o=r.default,i=r.DraggableCore;e.exports=o,e.exports.default=o,e.exports.DraggableCore=i},71089:(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.matchesSelector=d,t.matchesSelectorAndParentsTo=function(e,t,n){var r=e;do{if(d(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1},t.addEvent=function(e,t,n,r){if(!e)return;var o=l({capture:!0},r);e.addEventListener?e.addEventListener(t,n,o):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n},t.removeEvent=function(e,t,n,r){if(!e)return;var o=l({capture:!0},r);e.removeEventListener?e.removeEventListener(t,n,o):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null},t.outerHeight=function(e){var t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,o.int)(n.borderTopWidth),t+=(0,o.int)(n.borderBottomWidth)},t.outerWidth=function(e){var t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,o.int)(n.borderLeftWidth),t+=(0,o.int)(n.borderRightWidth)},t.innerHeight=function(e){var t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,o.int)(n.paddingTop),t-=(0,o.int)(n.paddingBottom)},t.innerWidth=function(e){var t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,o.int)(n.paddingLeft),t-=(0,o.int)(n.paddingRight)},t.offsetXYFromParent=function(e,t,n){var 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.createCSSTransform=function(e,t){var n=p(e,t,"px");return c({},(0,i.browserPrefixToKey)("transform",i.default),n)},t.createSVGTransform=function(e,t){return p(e,t,"")},t.getTranslation=p,t.getTouch=function(e,t){return e.targetTouches&&(0,o.findInArray)(e.targetTouches,(function(e){return t===e.identifier}))||e.changedTouches&&(0,o.findInArray)(e.changedTouches,(function(e){return 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.addUserSelectStyles=function(e){if(!e)return;var t=e.getElementById("react-draggable-style-el");t||((t=e.createElement("style")).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&&h(e.body,"react-draggable-transparent-selection")},t.removeUserSelectStyles=function(e){if(!e)return;try{if(e.body&&f(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{var t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch(e){}},t.addClassName=h,t.removeClassName=f;var o=n(77056),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(33514));function a(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(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 l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u="";function d(e,t){return u||(u=(0,o.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],(function(t){return(0,o.isFunction)(e[t])}))),!!(0,o.isFunction)(e[u])&&e[u](t)}function p(e,t,n){var r=e.x,o=e.y,i="translate(".concat(r).concat(n,",").concat(o).concat(n,")");if(t){var a="".concat("string"==typeof t.x?t.x:t.x+n),s="".concat("string"==typeof t.y?t.y:t.y+n);i="translate(".concat(a,", ").concat(s,")")+i}return i}function h(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(e.className+=" ".concat(t))}function f(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.getPrefix=r,t.browserPrefixToKey=o,t.browserPrefixToStyle=function(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e},t.default=void 0;var n=["Moz","Webkit","O","ms"];function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window||void 0===window.document)return"";var t=window.document.documentElement.style;if(e in t)return"";for(var r=0;r<n.length;r++)if(o(e,n[r])in t)return n[r];return""}function o(e,t){return t?"".concat(t).concat(function(e){for(var t="",n=!0,r=0;r<e.length;r++)n?(t+=e[r].toUpperCase(),n=!1):"-"===e[r]?n=!0:t+=e[r];return t}(e)):e}var i=r();t.default=i},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.getBoundPosition=function(e,t,n){if(!e.props.bounds)return[t,n];var a=e.props.bounds;a="string"==typeof a?a:function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}(a);var s=i(e);if("string"==typeof a){var l,c=s.ownerDocument,u=c.defaultView;if(!((l="parent"===a?s.parentNode:c.querySelector(a))instanceof u.HTMLElement))throw new Error('Bounds selector "'+a+'" could not find an element.');var d=u.getComputedStyle(s),p=u.getComputedStyle(l);a={left:-s.offsetLeft+(0,r.int)(p.paddingLeft)+(0,r.int)(d.marginLeft),top:-s.offsetTop+(0,r.int)(p.paddingTop)+(0,r.int)(d.marginTop),right:(0,o.innerWidth)(l)-(0,o.outerWidth)(s)-s.offsetLeft+(0,r.int)(p.paddingRight)-(0,r.int)(d.marginRight),bottom:(0,o.innerHeight)(l)-(0,o.outerHeight)(s)-s.offsetTop+(0,r.int)(p.paddingBottom)-(0,r.int)(d.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.snapToGrid=function(e,t,n){var r=Math.round(t/e[0])*e[0],o=Math.round(n/e[1])*e[1];return[r,o]},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.getControlPosition=function(e,t,n){var r="number"==typeof t?(0,o.getTouch)(e,t):null;if("number"==typeof t&&!r)return null;var a=i(n),s=n.props.offsetParent||a.offsetParent||a.ownerDocument.body;return(0,o.offsetXYFromParent)(r||e,s,n.props.scale)},t.createCoreData=function(e,t,n){var o=e.state,a=!(0,r.isNum)(o.lastX),s=i(e);return a?{node:s,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:s,deltaX:t-o.lastX,deltaY:n-o.lastY,lastX:o.lastX,lastY:o.lastY,x:t,y:n}},t.createDraggableData=function(e,t){var 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}};var r=n(77056),o=n(71089);function i(e){var 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.findInArray=function(e,t){for(var n=0,r=e.length;n<r;n++)if(t.apply(t,[e[n],n,e]))return e[n]},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)},t.int=function(e){return parseInt(e,10)},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."))}},49022:(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)for(var s in n)r.call(n,s)&&n[s]&&e.push(s);else e.push(n.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},22799:(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}}}},44363:(e,t,n)=>{"use strict";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:()=>$,vA:()=>i.unstable_batchedUpdates,Ng:()=>K,bN:()=>j,wA:()=>W,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 j(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 R=["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=j,areStatePropsEqual:a=j,areMergedPropsEqual:s=j,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,R);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,j;let V;I=L,O=[S,b,z,i,_,v],N((()=>I(...O)),j);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 $=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 H(e=p){const t=e===p?f:h(e);return function(){const{store:e}=t();return e}}const U=H();function q(e=p){const t=e===p?U:H(e);return function(){return t().dispatch}}const W=q();var G,Y;G=o.useSyncExternalStoreWithSelector,g=G,(e=>{F=e})(r.useSyncExternalStore),Y=i.unstable_batchedUpdates,a=Y},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)},21020:(e,t,n)=>{"use strict";n(45228);var r=n(96540),o=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),t.Fragment=i("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,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)s.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:a.current}}t.jsx=c,t.jsxs=c},15287:(e,t,n)=>{"use strict";var r=n(45228),o=60103,i=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,s=60110,l=60112;t.Suspense=60113;var c=60115,u=60116;if("function"==typeof Symbol&&Symbol.for){var d=Symbol.for;o=d("react.element"),i=d("react.portal"),t.Fragment=d("react.fragment"),t.StrictMode=d("react.strict_mode"),t.Profiler=d("react.profiler"),a=d("react.provider"),s=d("react.context"),l=d("react.forward_ref"),t.Suspense=d("react.suspense"),c=d("react.memo"),u=d("react.lazy")}var p="function"==typeof Symbol&&Symbol.iterator;function h(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 f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m={};function g(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||f}function v(){}function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||f}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(h(85));this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=g.prototype;var b=y.prototype=new v;b.constructor=y,r(b,g.prototype),b.isPureReactComponent=!0;var w={current:null},x=Object.prototype.hasOwnProperty,S={key:!0,ref:!0,__self:!0,__source:!0};function _(e,t,n){var r,i={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)x.call(t,r)&&!S.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(1===l)i.children=n;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(r in l=e.defaultProps)void 0===i[r]&&(i[r]=l[r]);return{$$typeof:o,type:e,key:a,ref:s,props:i,_owner:w.current}}function C(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var E=/\/+/g;function k(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 z(e,t,n,r,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 o:case i:l=!0}}if(l)return a=a(l=e),e=""===r?"."+k(l,0):r,Array.isArray(a)?(n="",null!=e&&(n=e.replace(E,"$&/")+"/"),z(a,t,n,"",(function(e){return e}))):null!=a&&(C(a)&&(a=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(E,"$&/")+"/")+e)),t.push(a)),1;if(l=0,r=""===r?".":r+":",Array.isArray(e))for(var c=0;c<e.length;c++){var u=r+k(s=e[c],c);l+=z(s,t,n,u,a)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=z(s=s.value,t,n,u=r+k(s,c++),a);else if("object"===s)throw t=""+e,Error(h(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return l}function P(e,t,n){if(null==e)return e;var r=[],o=0;return z(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function A(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var D={current:null};function T(){var e=D.current;if(null===e)throw Error(h(321));return e}var I={ReactCurrentDispatcher:D,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:P,forEach:function(e,t,n){P(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return P(e,(function(){t++})),t},toArray:function(e){return P(e,(function(e){return e}))||[]},only:function(e){if(!C(e))throw Error(h(143));return e}},t.Component=g,t.PureComponent=y,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=I,t.cloneElement=function(e,t,n){if(null==e)throw Error(h(267,e));var i=r({},e.props),a=e.key,s=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=w.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in t)x.call(t,u)&&!S.hasOwnProperty(u)&&(i[u]=void 0===t[u]&&void 0!==c?c[u]:t[u])}var u=arguments.length-2;if(1===u)i.children=n;else if(1<u){c=Array(u);for(var d=0;d<u;d++)c[d]=arguments[d+2];i.children=c}return{$$typeof:o,type:e.type,key:a,ref:s,props:i,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:s,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=_,t.createFactory=function(e){var t=_.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:A}},t.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return T().useCallback(e,t)},t.useContext=function(e,t){return T().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return T().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return T().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return T().useLayoutEffect(e,t)},t.useMemo=function(e,t){return T().useMemo(e,t)},t.useReducer=function(e,t,n){return T().useReducer(e,t,n)},t.useRef=function(e){return T().useRef(e)},t.useState=function(e){return T().useState(e)},t.version="17.0.2"},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)},70278:(e,t,n)=>{"use strict";n.d(t,{Fo:()=>Ct,rL:()=>we,A:()=>Mt,o$:()=>Bt});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,j=M.top,R=M.right,F=M.bottom,B=M.left;if("if-needed"===r&&C>=0&&z>=0&&k<=y&&E<=v&&C>=j&&k<=F&&z>=B&&E<=R)return D;var L=getComputedStyle(I),V=parseInt(L.borderLeftWidth,10),K=parseInt(L.borderTopWidth,10),$=parseInt(L.borderRightWidth,10),H=parseInt(L.borderBottomWidth,10),U=0,q=0,W="offsetWidth"in I?I.offsetWidth-I.clientWidth-V-$:0,G="offsetHeight"in I?I.offsetHeight-I.clientHeight-K-H:0,Y="offsetWidth"in I?0===I.offsetWidth?0:O/I.offsetWidth:0,Z="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,H,w+P,w+P+S,S):P-y/2,q="start"===i?A:"center"===i?A-v/2:"end"===i?A-v:h(b,b+v,v,V,$,b+A,b+A+_,_),U=Math.max(0,U+w),q=Math.max(0,q+b);else{U="start"===o?P-j-K:"end"===o?P-F+H+G:"nearest"===o?h(j,F,N,K,H+G,P,P+S,S):P-(j+N/2)+G/2,q="start"===i?A-B-V:"center"===i?A-(B+O/2)+W/2:"end"===i?A-R+$+W:h(B,R,O,V,$+W,A,A+_,_);var J=I.scrollLeft,X=I.scrollTop;P+=X-(U=Math.max(0,Math.min(X+U/Z,I.scrollHeight-N/Z+G))),A+=J-(q=Math.max(0,Math.min(J+q/Y,I.scrollWidth-O/Y+W)))}D.push({el:I,top:U,left:q})}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,j=new WeakMap,R=new WeakMap,F=new WeakMap,B=new WeakMap,L=new WeakMap,V=new WeakMap,K=new WeakMap,$=new WeakMap,H=new WeakMap,U=new WeakMap,q=Symbol("placeholder"),W=Symbol("mark-placeholder"),G=globalThis.Text,Y=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView||null,Z=e=>J(e)&&1===e.nodeType,J=e=>{var t=Y(e);return!!t&&e instanceof t.Node},X=e=>!!(e&&e.anchorNode&&Y(e.anchorNode)),Q=e=>J(e)&&3===e.nodeType,ee=(e,t,n)=>{for(var r,{childNodes:o}=e,i=o[t],a=t,s=!1,l=!1;(J(r=i)&&8===r.nodeType||Z(i)&&0===i.childNodes.length||Z(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(Z(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=>{var t=e.getData("text/html"),[,n]=t.match(re)||[];return n},ie=(e,t,n)=>{var{target:r}=t;if(Z(r)&&r.matches('[contentEditable="false"]'))return!1;var{document:o}=we.getWindow(e);if(o.contains(r))return we.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)&&ie(e,i,n)};var ae=parseInt(c.version.split(".")[0],10)>=17,se="undefined"!=typeof navigator&&"undefined"!=typeof window&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,le="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),ce="undefined"!=typeof navigator&&/Android/.test(navigator.userAgent),ue="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),de="undefined"!=typeof navigator&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),pe="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),he="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent),fe="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),me="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent),ge="undefined"!=typeof navigator&&/.*UCBrowser/.test(navigator.userAgent),ve="undefined"!=typeof navigator&&/.*Wechat/.test(navigator.userAgent),ye=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),be=!fe&&!pe&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,we={isComposing:e=>!!j.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=we.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=we.toDOMNode(e,e),n=we.findDocumentOrShadowRoot(e);O.set(e,!1),n.activeElement===t&&t.blur()},focus(e){var t=we.toDOMNode(e,e),n=we.findDocumentOrShadowRoot(e);O.set(e,!0),n.activeElement!==t&&t.focus({preventScroll:!0})},deselect(e){var{selection:t}=e,n=we.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=we.toDOMNode(e,e);try{n=Z(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(we.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=we.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=we.toDOMPoint(e,n),a=v.Q6.isCollapsed(t)?i:we.toDOMPoint(e,r),s=we.getWindow(e).document.createRange(),[l,c]=o?a:i,[u,d]=o?i:a,p=!!(Z(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),h=!!(Z(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=Z(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=we.toSlateNode(e,t.target),s=we.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}=we.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 we.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(Z(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;Z(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=we.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=we.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=>{ce&&!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(we.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&&ce&&"z"===g.getAttribute("data-slate-zero-width")&&null!==(u=g.textContent)&&void 0!==u&&u.startsWith("\ufeff")&&(s.hasAttribute("data-slate-zero-width")||ue&&null!==(d=g.textContent)&&void 0!==d&&d.endsWith("\n\n"))&&c--}if(ce&&!l&&!r){var _=s.hasAttribute("data-slate-node")?s:s.closest("[data-slate-node]");if(_&&we.hasDOMNode(e,_,{editable:!0})){var C=we.toSlateNode(e,_),{path:E,offset:k}=v.KE.start(e,we.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=we.toSlateNode(e,l);return{path:we.findPath(e,z),offset:c}},toSlateRange(e,t,n){var r,o,i,a,s,{exactMatch:l,suppressThrow:c}=n;if((X(t)?t.anchorNode:t.startContainer)&&(X(t)?(r=t.anchorNode,o=t.anchorOffset,i=t.focusNode,a=t.focusOffset,s=he&&(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=we.toSlatePoint(e,[r,o],{exactMatch:l,suppressThrow:c});if(!u)return null;var d=s?u:we.toSlatePoint(e,[i,a],{exactMatch:l,suppressThrow:c});if(!d)return null;if(ue&&!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)&&Z(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)=>J(t)&&we.hasDOMNode(e,t),hasEditableTarget:(e,t)=>J(t)&&we.hasDOMNode(e,t,{editable:!0}),hasSelectableTarget:(e,t)=>we.hasEditableTarget(e,t)||we.isTargetInsideNonReadonlyVoid(e,t),isTargetInsideNonReadonlyVoid(e,t){if(N.get(e))return!1;var n=we.hasTarget(e,t)&&we.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)},xe=ye?c.useLayoutEffect:c.useEffect,Se=["anchor","focus"],_e=["anchor","focus"],Ce=(e,t)=>{var n,r,o=S(e,Se),i=S(t,_e);return e[q]===t[q]&&(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 Ee(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 ke=e=>{var{isLast:t,leaf:n,parent:r,text:o}=e,i=De(),a=we.findPath(i,o),s=v.wA.parent(a),l=!0===n[W];return i.isVoid(r)?c.createElement(Pe,{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(Pe,{isMarkPlaceholder:l}):t&&"\n"===n.text.slice(-1)?c.createElement(ze,{isTrailing:!0,text:n.text}):c.createElement(ze,{text:n.text}):c.createElement(Pe,{isLineBreak:!0,isMarkPlaceholder:l})},ze=e=>{var{text:t,isTrailing:n=!1}=e,r=(0,c.useRef)(null),o=()=>"".concat(null!=t?t:"").concat(n?"\n":"");return xe((()=>{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())},Pe=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?Ee(Object(n),!0).forEach((function(t){x(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},o),ce&&n?null:"\ufeff",n?c.createElement("br",null):null)},Ae=(0,c.createContext)(null),De=()=>{var e=(0,c.useContext)(Ae);if(!e)throw new Error("The `useSlateStatic` hook must be used inside the <Slate> component's context.");return e};function Te(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 Ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Te(Object(n),!0).forEach((function(t){x(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Te(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Me=e=>{var{leaf:t,isLast:n,text:r,parent:o,renderPlaceholder:i,renderLeaf:a=(e=>c.createElement(Oe,Ie({},e)))}=e,s=(0,c.useRef)(null),l=(0,c.useRef)(null),u=De(),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(ke,{isLast:n,leaf:t,parent:o,text:r});if(t[q]){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})},Ne=c.memo(Me,((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[q]===e.leaf[q])),Oe=e=>{var{attributes:t,children:n}=e;return c.createElement("span",Ie({},t),n)},je=e=>{for(var{decorations:t,isLast:n,parent:r,renderPlaceholder:o,renderLeaf:i,text:a}=e,s=De(),l=(0,c.useRef)(null),u=v.EY.decorations(a,t),d=we.findKey(s,a),p=[],h=0;h<u.length;h++){var f=u[h];p.push(c.createElement(Ne,{isLast:n&&h===u.length-1,key:"".concat(d.id,"-").concat(h),renderPlaceholder:o,leaf:f,text:a,parent:r,renderLeaf:i}))}return xe((()=>{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(je,((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||!Ce(r,o))return!1}return!0})(t.decorations,e.decorations)));function Fe(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 Be(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fe(Object(n),!0).forEach((function(t){x(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Le=e=>{var{decorations:t,element:n,renderElement:r=(e=>c.createElement(Ke,Be({},e))),renderPlaceholder:i,renderLeaf:a,selection:s}=e,l=De(),u=We(),d=l.isInline(n),p=we.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=Ue({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})},Ve=c.memo(Le,((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)||!Ce(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)))),Ke=e=>{var{attributes:t,children:n,element:r}=e,o=De().isInline(r)?"span":"div";return c.createElement(o,Be(Be({},t),{},{style:{position:"relative"}}),n)},$e=(0,c.createContext)((()=>[])),He=(0,c.createContext)(!1),Ue=e=>{for(var{decorations:t,node:n,renderElement:r,renderPlaceholder:o,renderLeaf:i,selection:a}=e,s=(0,c.useContext)($e),l=De(),u=we.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=we.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(Ve,{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},qe=(0,c.createContext)(!1),We=()=>(0,c.useContext)(qe),Ge=(0,c.createContext)(null),Ye={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"},Je={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},Xe=e=>{var t=Ye[e],n=Ze[e],r=Je[e],o=t&&(0,b.Sn)(t),i=n&&(0,b.Sn)(n),a=r&&(0,b.Sn)(r);return e=>!(!o||!o(e))||(!!(le&&i&&i(e))||!(le||!a||!a(e)))},Qe={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")},et={subtree:!0,childList:!0,characterData:!0,characterDataOldValue:!0};class tt 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,et)}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=>ie(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(tt,"contextType",Ae);var nt=ce?tt:e=>{var{children:t}=e;return c.createElement(c.Fragment,null,t)};function rt(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 ot(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 it(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 ot(e,{start:r,end:Math.max(t.end,n.end-t.text.length+(t.end-t.start)),text:s})}function at(e){var{path:t,diff:n}=e;return{anchor:{path:t,offset:n.start},focus:{path:t,offset:n.end}}}function st(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 lt(e,t){var n=st(e,t.anchor);if(!n)return null;if(v.Q6.isCollapsed(t))return{anchor:n,focus:n};var r=st(e,t.focus);return r?{anchor:n,focus:r}:null}function ct(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 ut(e,t,n){var r=ct(e,t.anchor,n);if(!r)return null;if(v.Q6.isCollapsed(t))return{anchor:r,focus:r};var o=ct(e,t.focus,n);return o?{anchor:r,focus:o}:null}function dt(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}function pt(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 ht(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pt(Object(n),!0).forEach((function(t){x(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ft(e){var{editor:t,scheduleOnDOMSelectionChange:n,onDOMSelectionChange:r}=e,o=!1,i=null,a=null,s=null,l=0,c=!1,u=()=>{var e=H.get(t);if(H.delete(t),e){var{selection:n}=t,r=lt(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),$.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=at(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}))),rt(t,l)||(d=!1,$.delete(t),V.delete(t),o="action",H.delete(t),n.cancel(),r.cancel(),null==i||i.unref())}var b=null==i?void 0:i.unref();if(!b||H.get(t)||t.selection&&v.Q6.equals(b,t.selection)||v.gB.select(t,b),m())(()=>{var e=$.get(t);if($.delete(t),e){if(e.at){var n=v.bR.isPoint(e.at)?st(t,e.at):lt(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 ot(i.text,n)&&o.push({path:e,diff:n,id:l++}),void p();var s=it(i.text,o[a].diff,n);if(!s)return o.splice(a,1),void p();o[a]=ht(ht({},o[a]),{},{diff:s})},f=function(e){var{at:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c=!1,H.delete(t),n.cancel(),r.cancel(),m()&&d(),$.set(t,{at:o,run:e}),s=setTimeout(d)},m=()=>!!$.get(t),g=()=>{var e;return!(null===(e=K.get(t))||void 0===e||!e.length)},y=e=>{H.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((()=>{j.set(t,!1),d()}),25)},handleCompositionStart:e=>{j.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=we.toSlateRange(t,s,{exactMatch:!1,suppressThrow:!0}));var l=we.getWindow(t).getSelection();if(!o&&l&&(s=l,o=we.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(X(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((()=>we.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)&&ht(ht({},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=>ie(t,n,e)))&&(null===(n=U.get(t))||void 0===n||n())},handleInput:()=>{!m()&&g()||d()}}}var mt=["node"];function gt(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 vt={subtree:!0,childList:!0,characterData:!0};function yt(e){var{node:t}=e,n=S(e,mt);if(!ce)return null;var r,o=De(),i=(r=(0,c.useRef)(!1),(0,c.useEffect)((()=>(r.current=!0,()=>{r.current=!1})),[]),r.current),[a]=(0,c.useState)((()=>ft(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gt(Object(n),!0).forEach((function(t){x(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gt(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)));xe((()=>{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,vt),B.set(o,a.scheduleFlush),i&&a.flush(),a}var bt=["autoFocus","decorate","onDOMBeforeInput","placeholder","readOnly","renderElement","renderLeaf","renderPlaceholder","scrollSelectionIntoView","style","as","disableDefaultStyles"],wt=["text"];function xt(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?xt(Object(n),!0).forEach((function(t){x(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _t=e=>c.createElement(c.Fragment,null,Ue(e)),Ct=e=>{var t,n,{autoFocus:r,decorate:i=kt,onDOMBeforeInput:s,placeholder:u,readOnly:d=!1,renderElement:p,renderLeaf:h,renderPlaceholder:f=(e=>c.createElement(Et,St({},e))),scrollSelectionIntoView:m=zt,style:g={},as:y="div",disableDefaultStyles:b=!1}=e,w=S(e,bt),x=(()=>{var e=(0,c.useContext)(Ge);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=De(),t=(0,c.useRef)(!1),n=(0,c.useRef)(0),r=(0,c.useCallback)((()=>{if(!t.current){t.current=!0;var r=we.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 $=(0,c.useCallback)(l()((()=>{var e=we.findDocumentOrShadowRoot(x),t=navigator.userAgent.match(/Version\/(\d+\.\d+)/),n=de&&t&&parseFloat(t[1])<17;if(!I.current&&de&&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((ce||!we.isComposing(x))&&(!K.isUpdatingSelection||null!=G&&G.isFlushing())&&!K.isDraggingInternally){var r=we.findDocumentOrShadowRoot(x),{activeElement:o}=r,i=we.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=we.hasEditableTarget(x,s)||we.isTargetInsideNonReadonlyVoid(x,s),u=we.hasEditableTarget(x,l)||we.isTargetInsideNonReadonlyVoid(x,l);if(c&&u){var p=we.toSlateRange(x,a,{exactMatch:!1,suppressThrow:!0});p&&(we.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]),H=(0,c.useMemo)((()=>a()($,0)),[$]),G=yt({node:E,onDOMSelectionChange:$,scheduleOnDOMSelectionChange:H});xe((()=>{var e;E.current&&(e=Y(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=we.findDocumentOrShadowRoot(x).getSelection();if(n&&we.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=we.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||we.hasRange(x,t)){K.isUpdatingSelection=!0;var c=t&&we.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=we.toSlateRange(x,n,{exactMatch:!1,suppressThrow:!0})}},o=r(),i="action"===(null==G?void 0:G.isFlushing());if(ce&&i){var a=null,s=requestAnimationFrame((()=>{if(i){var e=e=>{try{we.toDOMNode(x,x).focus(),r(e)}catch(e){}};e(),a=setTimeout((()=>{e(!0),K.isUpdatingSelection=!1}))}}));return()=>{cancelAnimationFrame(s),a&&clearTimeout(a)}}setTimeout((()=>{o&&ue&&we.toDOMNode(x,x).focus();K.isUpdatingSelection=!1}))}}));var X=(0,c.useCallback)((e=>{var t=we.findDocumentOrShadowRoot(x),n=navigator.userAgent.match(/Version\/(\d+\.\d+)/),r=de&&n&&parseFloat(n[1])<17;if(null!=I&&I.current&&de&&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=we.toSlateRange(x,i,{exactMatch:!1,suppressThrow:!1});return v.gB.select(x,a),e.preventDefault(),void e.stopImmediatePropagation()}if(M(),!d&&we.hasEditableTarget(x,e.target)&&!At(e,s)){var l;if(G)return G.handleDOMBeforeInput(e);H.flush(),$.flush();var{selection:c}=x,{inputType:u}=e,p=e.dataTransfer||e.data||void 0,h="insertCompositionText"===u||"deleteCompositionText"===u;if(h&&we.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]=we.toDOMPoint(x,y),S=null===(m=b.parentElement)||void 0===m?void 0:m.closest("a"),_=we.getWindow(x);if(f&&S&&we.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=we.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&&R.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&&we.isComposing(x)&&(C(!1),j.set(x,!1)),"DataTransfer"===(null==p?void 0:p.constructor.name)?we.insertData(x,p):"string"==typeof p&&(f?k.current.push((()=>v.KE.insertText(x,p))):v.KE.insertText(x,p))}var O=null===(l=R.get(x))||void 0===l?void 0:l.unref();R.delete(x),!O||x.selection&&v.Q6.equals(x.selection,O)||v.gB.select(x,O)}}),[d,s]);xe((()=>(E.current&&be&&E.current.addEventListener("beforeinput",X),()=>{E.current&&be&&E.current.removeEventListener("beforeinput",X)})),[X]),xe((()=>{var e=we.getWindow(x);return e.document.addEventListener("selectionchange",H),()=>{e.document.removeEventListener("selectionchange",H)}}),[H]);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({[q]:!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,wt);if(!v.EY.equals(re,te,{loose:!0})){K.hasMarkPlaceholder=!0;var ie=Object.fromEntries(Object.keys(oe).map((e=>[e,null])));Q.push(St(St(St({[W]:!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 ae=null===(t=A.get(x))||void 0===t||null===(n=t.getBoundingClientRect())||void 0===n?void 0:n.height;return c.createElement(qe.Provider,{value:d},c.createElement($e.Provider,{value:i},c.createElement(nt,{node:E,receivedUserInput:F},c.createElement(y,St(St({role:d?void 0:"textbox","aria-multiline":!d||void 0},w),{},{spellCheck:!(!be&&ye)&&w.spellCheck,autoCorrect:be||!ye?w.autoCorrect:"false",autoCapitalize:be||!ye?w.autoCapitalize:"false","data-slate-editor":!0,"data-slate-node":"value",contentEditable:!d,zindex:-1,suppressContentEditableWarning:!0,ref:E,style:St(St({},b?{}:St({position:"relative",outline:"none",whiteSpace:"pre-wrap",wordWrap:"break-word"},ae?{minHeight:ae}:{})),g),onBeforeInput:(0,c.useCallback)((e=>{if(!be&&!d&&!Pt(e,w.onBeforeInput)&&we.hasSelectableTarget(x,e.target)&&(e.preventDefault(),!we.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&&we.hasSelectableTarget(x,e.target)&&!Pt(e,w.onBlur)){var t=we.findDocumentOrShadowRoot(x);if(K.latestElement!==t.activeElement){var{relatedTarget:n}=e;if(!(n===we.toDOMNode(x,x)||Z(n)&&n.hasAttribute("data-slate-spacer"))){if(null!=n&&J(n)&&we.hasDOMNode(x,n)){var r=we.toSlateNode(x,n);if(v.Hg.isElement(r)&&!x.isVoid(r))return}if(de){var o=t.getSelection();null==o||o.removeAllRanges()}O.delete(x)}}}}),[d,w.onBlur]),onClick:(0,c.useCallback)((e=>{if(we.hasTarget(x,e.target)&&!Pt(e,w.onClick)&&J(e.target)){var t=we.toSlateNode(x,e.target),n=we.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(we.hasSelectableTarget(x,e.target)){if(we.isComposing(x)&&(C(!1),j.set(x,!1)),null==G||G.handleCompositionEnd(e),Pt(e,w.onCompositionEnd)||ce)return;if(!de&&!me&&!se&&!ve&&!ge&&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=>{we.hasSelectableTarget(x,e.target)&&!Pt(e,w.onCompositionUpdate)&&(we.isComposing(x)||(C(!0),j.set(x,!0)))}),[w.onCompositionUpdate]),onCompositionStart:(0,c.useCallback)((e=>{if(we.hasSelectableTarget(x,e.target)){if(null==G||G.handleCompositionStart(e),Pt(e,w.onCompositionStart)||ce)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=>{we.hasSelectableTarget(x,e.target)&&!Pt(e,w.onCopy)&&(e.preventDefault(),we.setFragmentData(x,e.clipboardData,"copy"))}),[w.onCopy]),onCut:(0,c.useCallback)((e=>{if(!d&&we.hasSelectableTarget(x,e.target)&&!Pt(e,w.onCut)){e.preventDefault(),we.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(we.hasTarget(x,e.target)&&!Pt(e,w.onDragOver)){var t=we.toSlateNode(x,e.target);v.Hg.isElement(t)&&v.KE.isVoid(x,t)&&e.preventDefault()}}),[w.onDragOver]),onDragStart:(0,c.useCallback)((e=>{if(!d&&we.hasTarget(x,e.target)&&!Pt(e,w.onDragStart)){var t=we.toSlateNode(x,e.target),n=we.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,we.setFragmentData(x,e.dataTransfer,"drag")}}),[d,w.onDragStart]),onDrop:(0,c.useCallback)((e=>{if(!d&&we.hasTarget(x,e.target)&&!Pt(e,w.onDrop)){e.preventDefault();var t=x.selection,n=we.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})),we.insertData(x,r),we.isFocused(x)||we.focus(x)}K.isDraggingInternally=!1}),[d,w.onDrop]),onDragEnd:(0,c.useCallback)((e=>{!d&&K.isDraggingInternally&&w.onDragEnd&&we.hasTarget(x,e.target)&&w.onDragEnd(e),K.isDraggingInternally=!1}),[d,w.onDragEnd]),onFocus:(0,c.useCallback)((e=>{if(!d&&!K.isUpdatingSelection&&we.hasEditableTarget(x,e.target)&&!Pt(e,w.onFocus)){var t=we.toDOMNode(x,x),n=we.findDocumentOrShadowRoot(x);if(K.latestElement=n.activeElement,ue&&e.target!==t)return void t.focus();O.set(x,!0)}}),[d,w.onFocus]),onKeyDown:(0,c.useCallback)((e=>{if(!d&&we.hasEditableTarget(x,e.target)){null==G||G.handleKeyDown(e);var{nativeEvent:t}=e;if(we.isComposing(x)&&!1===t.isComposing&&(j.set(x,!1),C(!1)),Pt(e,w.onKeyDown)||we.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(Qe.isRedo(t)){e.preventDefault();var a=x;return void("function"==typeof a.redo&&a.redo())}if(Qe.isUndo(t)){e.preventDefault();var s=x;return void("function"==typeof s.undo&&s.undo())}if(Qe.isMoveLineBackward(t))return e.preventDefault(),void v.gB.move(x,{unit:"line",reverse:!0});if(Qe.isMoveLineForward(t))return e.preventDefault(),void v.gB.move(x,{unit:"line"});if(Qe.isExtendLineBackward(t))return e.preventDefault(),void v.gB.move(x,{unit:"line",edge:"focus",reverse:!0});if(Qe.isExtendLineForward(t))return e.preventDefault(),void v.gB.move(x,{unit:"line",edge:"focus"});if(Qe.isMoveBackward(t))return e.preventDefault(),void(n&&v.Q6.isCollapsed(n)?v.gB.move(x,{reverse:!i}):v.gB.collapse(x,{edge:"start"}));if(Qe.isMoveForward(t))return e.preventDefault(),void(n&&v.Q6.isCollapsed(n)?v.gB.move(x,{reverse:i}):v.gB.collapse(x,{edge:"end"}));if(Qe.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(Qe.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(be){if((he||de)&&n&&(Qe.isDeleteBackward(t)||Qe.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(Qe.isBold(t)||Qe.isItalic(t)||Qe.isTransposeCharacter(t))return void e.preventDefault();if(Qe.isSoftBreak(t))return e.preventDefault(),void v.KE.insertSoftBreak(x);if(Qe.isSplitBlock(t))return e.preventDefault(),void v.KE.insertBreak(x);if(Qe.isDeleteBackward(t))return e.preventDefault(),void(n&&v.Q6.isExpanded(n)?v.KE.deleteFragment(x,{direction:"backward"}):v.KE.deleteBackward(x));if(Qe.isDeleteForward(t))return e.preventDefault(),void(n&&v.Q6.isExpanded(n)?v.KE.deleteFragment(x,{direction:"forward"}):v.KE.deleteForward(x));if(Qe.isDeleteLineBackward(t))return e.preventDefault(),void(n&&v.Q6.isExpanded(n)?v.KE.deleteFragment(x,{direction:"backward"}):v.KE.deleteBackward(x,{unit:"line"}));if(Qe.isDeleteLineForward(t))return e.preventDefault(),void(n&&v.Q6.isExpanded(n)?v.KE.deleteFragment(x,{direction:"forward"}):v.KE.deleteForward(x,{unit:"line"}));if(Qe.isDeleteWordBackward(t))return e.preventDefault(),void(n&&v.Q6.isExpanded(n)?v.KE.deleteFragment(x,{direction:"backward"}):v.KE.deleteBackward(x,{unit:"word"}));if(Qe.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||!we.hasSelectableTarget(x,e.target)||Pt(e,w.onPaste)||be&&!(e=>e.clipboardData&&""!==e.clipboardData.getData("text/plain")&&1===e.clipboardData.types.length)(e.nativeEvent)||(e.preventDefault(),we.insertData(x,e.clipboardData))}),[d,w.onPaste])}),c.createElement(_t,{decorations:Q,node:x,renderElement:p,renderPlaceholder:f,renderLeaf:h,selection:x.selection})))))},Et=e=>{var{attributes:t,children:n}=e;return c.createElement("span",St({},t),n,ce&&c.createElement("br",null))},kt=()=>[],zt=(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}},Pt=(e,t)=>{if(!t)return!1;var n=t(e);return null!=n?n:e.isDefaultPrevented()||e.isPropagationStopped()},At=(e,t)=>{if(!t)return!1;var n=t(e);return null!=n?n:e.defaultPrevented},Dt=(0,c.createContext)(!1);var Tt=(0,c.createContext)({});var It=["editor","children","onChange","value"],Mt=e=>{var{editor:t,children:n,onChange:r,value:o}=e,i=S(e,It),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)(we.isFocused(t));return(0,c.useEffect)((()=>{f(we.isFocused(t))})),xe((()=>{var e=()=>f(we.isFocused(t));return ae?(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(Tt.Provider,{value:u},c.createElement(Ge.Provider,{value:s},c.createElement(Ae.Provider,{value:s.editor},c.createElement(Dt.Provider,{value:h},n))))},Nt=(e,t)=>{var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},Ot=(e,t,n)=>{var r=we.toDOMRange(e,t).getBoundingClientRect(),o=we.toDOMRange(e,n).getBoundingClientRect();return Nt(r,o)&&Nt(o,r)},jt=(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(Ot(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;)Ot(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)};function Rt(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 Ft(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rt(Object(n),!0).forEach((function(t){x(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Bt=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=jt(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=>dt(t,e))).filter(Boolean);K.set(n,i)}var a=H.get(n);a&&H.set(n,ut(n,a,e));var s=$.get(n);if(null!=s&&s.at){var l=v.bR.isPoint(null==s?void 0:s.at)?ct(n,s.at,e):ut(n,s.at,e);$.set(n,l?Ft(Ft({},s),{},{at:l}):null)}switch(e.type){case"insert_text":case"remove_text":case"set_node":case"split_node":t.push(...Lt(n,e.path));break;case"set_selection":var c;null===(c=R.get(n))||void 0===c||c.unref(),R.delete(n);break;case"insert_node":case"remove_node":t.push(...Lt(n,v.wA.parent(e.path)));break;case"merge_node":var u=v.wA.previous(e.path);t.push(...Lt(n,u));break;case"move_node":var d=v.wA.common(v.wA.parent(e.path),v.wA.parent(e.newPath));t.push(...Lt(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=we.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=we.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))||oe(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},Lt=(e,t)=>{var n=[];for(var[r,o]of v.KE.levels(e,{at:t})){var i=we.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,">"));null==n&&(n={}),(0,r.Q)(n)||(i=[n].concat(i),n={});var l=s(t,n,i=i.filter((e=>Boolean(e))).flat());return l},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),o=_(r);return o}()},69101:(e,t,n)=>{"use strict";n.d(t,{EY:()=>J,Hg:()=>D,I:()=>R,KE:()=>B,Q6:()=>P,bP:()=>N,bR:()=>$,gB:()=>De,h6:()=>U,ie:()=>zn,if:()=>yn,rx:()=>Xt,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=$.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]=$.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]=$.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(J.isText(b)&&J.isText(S))S.text+=b.text;else{if(J.isText(b)||J.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]=$.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)),j=M[M.length-1];if(O.children.splice(j,0,D),t)for(var[R,F]of P.points(t))t[F]=$.transform(R,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!=H)t[K]=H;else{var q=void 0,W=void 0;for(var[G,Y]of N.texts(e)){if(-1!==m.compare(Y,B)){W=[G,Y];break}q=[G,Y]}var Z=!1;q&&W&&(Z=m.equals(W[1],B)?!m.hasPrevious(W[1]):m.common(q[1],B).length<m.common(W[1],B).length),q&&!Z?(V.path=q[1],V.offset=q[0].text.length):W?(V.path=W[1],V.offset=0):t=null}}break;case"remove_text":var{path:X,offset:Q,text:ee}=n;if(0===ee.length)break;var te=N.leaf(e,X),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]=$.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(J.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]=$.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)=>$.equals(e.anchor,t.anchor)&&$.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 $.isBefore(n,o)&&$.isAfter(r,i)}var[a,s]=P.edges(e),l=!1,c=!1;return $.isPoint(t)?(l=$.compare(t,a)>=0,c=$.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=$.isBefore(r,i)?i:r,l=$.isBefore(o,a)?o:a;return $.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 $.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return $.equals(t,n)},isExpanded:e=>!P.isCollapsed(e),isForward:e=>!P.isBackward(e),isRange:e=>(0,r.Q)(e)&&$.isPoint(e.anchor)&&$.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=$.transform(e.anchor,t,{affinity:r}),l=$.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(J.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(J.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&&!J.isText(r)&&0!==r.children.length;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(J.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(J.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(J.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode:e=>J.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&&!J.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(!J.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)||J.isText(e)&&J.isTextProps(t)&&J.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)||J.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(J.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=>J.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))J.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 j(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 R={isNodeOperation:e=>R.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=>R.isOperation(e))),isSelectionOperation:e=>R.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>R.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return j(j({},e),{},{type:"remove_node"});case"insert_text":return j(j({},e),{},{type:"remove_text"});case"merge_node":return j(j({},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 j(j({},e),{},{path:t,newPath:n});var r=m.transform(n,e),o=m.transform(m.next(n),e);return j(j({},e),{},{path:r,newPath:o});case"remove_node":return j(j({},e),{},{type:"insert_node"});case"remove_text":return j(j({},e),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=e;return j(j({},e),{},{properties:a,newProperties:i});case"set_selection":var{properties:s,newProperties:l}=e;return j(j({},e),{},null==s?{properties:l,newProperties:null}:null==l?{properties:null,newProperties:s}:{properties:l,newProperties:s});case"split_node":return j(j({},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)&&R.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 $={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===$.compare(e,t),isBefore:(e,t)=>-1===$.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)}}))}},H=void 0,U={setScrubber(e){H=e},stringify:e=>JSON.stringify(e,H)},q=["text"],W=["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 Y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?G(Object(n),!0).forEach((function(t){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 Z,J={equals(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{loose:r=!1}=n;function o(e){return E(e,q)}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=>J.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=[Y({},e)];for(var r of t){var o=E(r,W),[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=Y(Y({},f),{},{text:f.text.slice(v)}),f=Y(Y({},f),{},{text:f.text.slice(0,v)})}if(c>h){var y=c-h;m=Y(Y({},f),{},{text:f.text.slice(0,y)}),f=Y(Y({},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}},X=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?se(e):e,o=Z.None,i=Z.None,a=0,s=null;for(var l of r){var c=l.codePointAt(0);if(!c)break;var u=be(l,c);if([o,i]=n?[i,u]:[u,o],we(o,Z.ZWJ)&&we(i,Z.ExtPict)&&!Ce(n?e.substring(0,a):e.substring(0,e.length-a)))break;if(we(o,Z.RI)&&we(i,Z.RI)&&!(s=null!==s?!s:!!n||ke(e.substring(0,e.length-a))))break;if(o!==Z.None&&i!==Z.None&&Se(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=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]=ie(e,o,t);if(ae(i,a,t))r=!0,n+=o;else{if(r)break;n+=o}e=a}return n},ie=(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)]},ae=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]=ie(n,o,r);if(e(i,a,r))return!0}return!ne.test(t)},se=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var r=e.charAt(t-n);if(ce(r.charCodeAt(0))){var o=e.charAt(t-n-1);if(le(o.charCodeAt(0))){yield o+r,n++;continue}}yield r}},le=e=>e>=55296&&e<=56319,ce=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"}(Z||(Z={}));var ue=/^(?:[\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])$/,de=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,pe=/^(?:[\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])$/,he=/^[\u1100-\u115F\uA960-\uA97C]$/,fe=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,me=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,ge=/^[\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]$/,ve=/^[\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]$/,ye=/^(?:[\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])$/,be=(e,t)=>{var n=Z.Any;return-1!==e.search(ue)&&(n|=Z.Extend),8205===t&&(n|=Z.ZWJ),t>=127462&&t<=127487&&(n|=Z.RI),-1!==e.search(de)&&(n|=Z.Prepend),-1!==e.search(pe)&&(n|=Z.SpacingMark),-1!==e.search(he)&&(n|=Z.L),-1!==e.search(fe)&&(n|=Z.V),-1!==e.search(me)&&(n|=Z.T),-1!==e.search(ge)&&(n|=Z.LV),-1!==e.search(ve)&&(n|=Z.LVT),-1!==e.search(ye)&&(n|=Z.ExtPict),n};function we(e,t){return 0!=(e&t)}var xe=[[Z.L,Z.L|Z.V|Z.LV|Z.LVT],[Z.LV|Z.V,Z.V|Z.T],[Z.LVT|Z.T,Z.T],[Z.Any,Z.Extend|Z.ZWJ],[Z.Any,Z.SpacingMark],[Z.Prepend,Z.Any],[Z.ZWJ,Z.ExtPict],[Z.RI,Z.RI]];function Se(e,t){return-1===xe.findIndex((n=>we(e,n[0])&&we(t,n[1])))}var _e=/(?:[\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$/,Ce=e=>-1!==e.search(_e),Ee=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,ke=e=>{var t=e.match(Ee);return null!==t&&t[0].length/2%2==1},ze={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=X(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);De.delete(e,{at:o,voids:r});var c=s.unref(),u=l.unref();o=c||u,De.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 Pe(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 Ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pe(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var De=Ae(Ae(Ae(Ae({},x),S),_),ze),Te=new WeakMap,Ie=(e,t,n)=>{var r=Te.get(e)||!1;Te.set(e,!0);try{t(),n()}finally{Te.set(e,r)}};function Me(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 Ne=(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=>Te.get(e)||!1)(e)){var l=m.operationCanTransformPath(t)?e=>m.transform(e,t):void 0;Me(e,e.getDirtyPaths(t),l)}De.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=[]})))},Oe=(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=J.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[]}},je=e=>{var{selection:t}=e;return t?N.fragment(e,t):[]},Re=(e,t)=>{var[n,r]=t;if(!J.isText(n))if(D.isElement(n)&&0===n.children.length){De.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||J.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(!J.isText(s)){var l=s.children[i],c=s.children[i-1],u=a===n.children.length-1;if((J.isText(l)||D.isElement(l)&&e.isInline(l))!==o)De.removeNodes(e,{at:r.concat(i),voids:!0}),i--;else if(D.isElement(l)){if(e.isInline(l))if(null!=c&&J.isText(c)){if(u){De.insertNodes(e,{text:""},{at:r.concat(i+1),voids:!0}),i++}}else{De.insertNodes(e,{text:""},{at:r.concat(i),voids:!0}),i++}}else{if(!J.isText(l)&&!("children"in l))l.children=[];null!=c&&J.isText(c)&&(J.equals(l,c,{loose:!0})?(De.mergeNodes(e,{at:r.concat(i),voids:!0}),i--):""===c.text?(De.removeNodes(e,{at:r.concat(i-1),voids:!0}),i--):""===l.text&&(De.removeNodes(e,{at:r.concat(i),voids:!0}),i--))}}}},Fe=(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},Be=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(!J.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]}};function Le(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 Ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Le(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Le(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ke=(e,t,n)=>{var{selection:r}=e;if(r){var o=(t,n)=>{if(!J.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)De.setNodes(e,{[t]:n},{match:o,split:!0,voids:!0});else{var d=Ve(Ve({},B.marks(e)||{}),{},{[t]:n});e.marks=d,u.get(e)||e.onChange()}}};function $e(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 He(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$e(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$e(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ue=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=B.point(e,t,{edge:"end"}),i=B.end(e,[]),a={anchor:o,focus:i},{distance:s=1}=r,l=0;for(var c of B.positions(e,He(He({},r),{},{at:a}))){if(l>s)break;0!==l&&(n=c),l++}return n};function qe(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 We(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qe(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ge=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=B.start(e,[]),i=B.point(e,t,{edge:"start"}),a={anchor:o,focus:i},{distance:s=1}=r,l=0;for(var c of B.positions(e,We(We({},r),{},{at:a,reverse:!0}))){if(l>s)break;0!==l&&(n=c),l++}return n},Ye=(e,t)=>{var{selection:n}=e;n&&P.isCollapsed(n)&&De.delete(e,{unit:t,reverse:!0})},Ze=(e,t)=>{var{selection:n}=e;n&&P.isCollapsed(n)&&De.delete(e,{unit:t})},Je=function(e){var{direction:t="forward"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{selection:n}=e;n&&P.isExpanded(n)&&De.delete(e,{reverse:"backward"===t})},Xe=(e,t)=>[B.start(e,t),B.end(e,t)];function Qe(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 et(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qe(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var tt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return B.above(e,et(et({},t),{},{match:t=>D.isElement(t)&&B.isElementReadOnly(e,t)}))},nt=(e,t)=>B.point(e,t,{edge:"end"}),rt=(e,t)=>{var n=B.path(e,t,{edge:"start"});return B.node(e,n)},ot=(e,t)=>{var n=B.range(e,t);return N.fragment(e,n)};function it(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 at(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?it(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):it(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var st=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return B.above(e,at(at({},t),{},{match:t=>D.isElement(t)&&B.isVoid(e,t)}))},lt=(e,t)=>t.children.some((t=>D.isElement(t)&&B.isBlock(e,t))),ct=(e,t)=>t.children.some((t=>J.isText(t)||B.isInline(e,t))),ut=(e,t)=>N.has(e,t),dt=(e,t)=>t.children.every((e=>J.isText(e))),pt=e=>{De.splitNodes(e,{always:!0})},ht=(e,t,n)=>{De.insertNodes(e,t,n)},ft=e=>{De.splitNodes(e,{always:!0})};function mt(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 gt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mt(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var vt=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=gt({text:t},o);De.insertNodes(e,i,{at:n.at,voids:n.voids})}else De.insertText(e,t,n);e.marks=null}},yt=(e,t)=>!e.isInline(t),bt=(e,t,n)=>B.isStart(e,t,n)||B.isEnd(e,t,n),wt=(e,t)=>{var{children:n}=t,[r]=n;return 0===n.length||1===n.length&&J.isText(r)&&""===r.text&&!e.isVoid(t)},xt=(e,t,n)=>{var r=B.end(e,n);return $.equals(t,r)},St=e=>{var t=d.get(e);return void 0===t||t},_t=(e,t,n)=>{if(0!==t.offset)return!1;var r=B.start(e,n);return $.equals(t,r)},Ct=(e,t)=>{var n=B.path(e,t,{edge:"end"});return B.node(e,n)},Et=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=B.path(e,t,n),o=N.leaf(e,r);return[o,r]};function kt(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}}()}var zt=["text"],Pt=["text"],At=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:J.isText,at:{anchor:r,focus:o}});if(a){var[s]=a;return E(s,zt)}return{}}var{path:l}=r,[c]=B.leaf(e,l);if(0===r.offset){var u=B.previous(e,{at:l,match:J.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,Pt)},Dt=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}}},Tt=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]};function It(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&&J.isText(v))return}"lowest"===r&&h&&(o?g.push(h):yield h),o&&(yield*g)}}()}var Mt=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=>c.get(e)||new Set,a=e=>{var t=o(e).pop(),n=t.join(",");return i(e).delete(n),t};if(B.isNormalizing(e)){if(n){var s=Array.from(N.nodes(e),(e=>{var[,t]=e;return t})),u=new Set(s.map((e=>e.join(","))));l.set(e,s),c.set(e,u)}0!==o(e).length&&B.withoutNormalizing(e,(()=>{for(var t of o(e))if(N.has(e,t)){var n=B.node(e,t),[i,s]=n;D.isElement(i)&&0===i.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=a(e);if(N.has(e,d)){var p=B.node(e,d);e.normalizeNode(p,{operation:r})}u++,l=o(e)}}))}},Nt=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=B.path(e,t,n),o=m.parent(r),i=B.node(e,o);return i},Ot=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}},i=B.pathRefs(e);return i.add(o),o},jt=e=>{var t=p.get(e);return t||(t=new Set,p.set(e,t)),t},Rt=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)),$.isPoint(t)&&(t=t.path),null!=r&&(t=t.slice(0,r)),t},Ft=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}},i=B.pointRefs(e);return i.add(o),o},Bt=e=>{var t=h.get(e);return t||(t=new Set,h.set(e,t)),t},Lt=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(!J.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};function Vt(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(J.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=ie(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?oe(e,n):"line"===t||"block"===t?e.length:1}}()}var Kt=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}}},$t=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}},i=B.rangeRefs(e);return i.add(o),o},Ht=e=>{var t=f.get(e);return t||(t=new Set,f.set(e,t)),t},Ut=(e,t,n)=>P.isRange(t)&&!n?t:{anchor:B.start(e,t),focus:B.end(e,n||t)};function qt(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 Wt=(e,t)=>{var{selection:n}=e;if(n){var r=(t,n)=>{if(!J.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)De.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?qt(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qt(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()}}},Gt=(e,t)=>{d.set(e,t)},Yt=(e,t)=>B.point(e,t,{edge:"start"}),Zt=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:J.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},Jt=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=B.start(e,o),c={anchor:l,focus:i},u=!0;for(var[d,p]of B.nodes(e,{at:c,match:J.isText,reverse:!0,voids:r}))if(u)u=!1;else if(""!==d.text||m.isBefore(p,s)){i={path:p,offset:d.text.length};break}return{anchor:o,focus:i}},Xt=(e,t)=>{var n=B.isNormalizing(e);B.setNormalizing(e,!1);try{t()}finally{B.setNormalizing(e,n)}B.normalize(e)},Qt=(e,t,n)=>{var[r,o]=t;return D.isElement(r)&&B.isEmpty(e,r)||J.isText(r)&&""===r.text&&0!==o[o.length-1]},en=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),$.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))De.removeNodes(e,{at:l,voids:s});else if(!P.isCollapsed(l)){if(!c){var[,f]=P.edges(l),g=B.end(e,[]);$.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),j=B.pointRef(e,y),R="";if(!S&&!_){var F=O.current,[L]=B.leaf(e,F),{path:V}=F,{offset:K}=v,H=L.text.slice(K);H.length>0&&(e.apply({type:"remove_text",path:V,offset:K,text:H}),R=H)}if(N.reverse().map((e=>e.unref())).filter((e=>null!==e)).forEach((t=>De.removeNodes(e,{at:t,voids:s}))),!C){var U=j.current,[q]=B.leaf(e,U),{path:W}=U,G=S?v.offset:0,Y=q.text.slice(G,y.offset);Y.length>0&&(e.apply({type:"remove_text",path:W,offset:G,text:Y}),R=Y)}!S&&x&&j.current&&O.current&&De.mergeNodes(e,{at:j.current,hanging:!0,voids:s}),u&&o&&"character"===i&&R.length>1&&R.match(/[\u0E00-\u0E7F]+/)&&De.insertText(e,R.slice(0,R.length-a));var Z=O.unref(),J=j.unref(),X=o?Z||J:J||Z;null==t.at&&X&&De.select(e,X)}}}))},tn=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=X(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);De.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;if(B.isEnd(e,i,u))i=B.after(e,u);else if(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=>J.isText(t)||B.isInline(e,t),mode:"highest",voids:o}),[,M]=I,O=B.isStart(e,i,M),j=B.isEnd(e,i,M),R=B.pathRef(e,f&&!k.length?m.next(p):p),F=B.pathRef(e,j?m.next(M):M);De.splitNodes(e,{at:i,match:t=>A?D.isElement(t)&&B.isBlock(e,t):J.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&&j?m.next(M):M);if(De.insertNodes(e,C,{at:V.current,match:t=>J.isText(t)||B.isInline(e,t),mode:"highest",voids:o,batchDirty:a}),g&&!C.length&&E.length&&!k.length&&De.delete(e,{at:p,voids:o}),De.insertNodes(e,E,{at:R.current,match:t=>D.isElement(t)&&B.isBlock(e,t),mode:"lowest",voids:o,batchDirty:a}),De.insertNodes(e,k,{at:F.current,match:t=>J.isText(t)||B.isInline(e,t),mode:"highest",voids:o,batchDirty:a}),!n.at)if(k.length>0&&F.current?L=m.previous(F.current):E.length>0&&R.current?L=m.previous(R.current):V.current&&(L=m.previous(V.current)),L){var K=B.end(e,L);De.select(e,K)}V.unref(),R.unref(),F.unref()}}}))},nn=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)De.select(e,r.anchor);else if("focus"===n)De.select(e,r.focus);else if("start"===n){var[o]=P.edges(r);De.select(e,o)}else if("end"===n){var[,i]=P.edges(r);De.select(e,i)}},rn=e=>{var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},on=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)}De.setSelection(e,u)}},an=(e,t)=>{var{selection:n}=e;if(t=B.range(e,t),n)De.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})}};function sn(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 ln(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sn(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var cn=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;De.setSelection(e,{["anchor"===o?"anchor":"focus"]:ln(ln({},s),t)})}},un=(e,t)=>{var{selection:n}=e,r={},o={};if(n){for(var i in t)("anchor"===i&&null!=t.anchor&&!$.equals(t.anchor,n.anchor)||"focus"===i&&null!=t.focus&&!$.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})}},dn=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=X(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);De.delete(e,{at:s}),s=p.unref()}if($.isPoint(s)){null==l&&(l=J.isText(u)?e=>J.isText(e):e.isInline(u)?t=>J.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);De.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);Ie(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),J.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()}),(()=>{Me(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&&De.select(e,E)}}}}))},pn=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);De.moveNodes(e,{at:c,to:g,voids:o}),De.removeNodes(e,{at:p,voids:o})}else if(0===h)De.moveNodes(e,{at:c,to:p,voids:o});else if(h===f-1){var v=m.next(p);De.moveNodes(e,{at:c,to:v,voids:o})}else{var y=m.next(c),b=m.next(p);De.splitNodes(e,{at:y,voids:o}),De.moveNodes(e,{at:c,to:b,voids:o})}}}}))},hn=["text"],fn=["children"],mn=(e,t)=>{if(D.isElement(t)){var n=t;return!!B.isVoid(e,t)||1===n.children.length&&mn(e,n.children[0])}return!B.isEditor(t)},gn=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);De.delete(e,{at:r}),r=c.unref(),null==t.at&&De.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)&&mn(e,t)}),C=_&&B.pathRef(e,_[1]);if(J.isText(p)&&J.isText(f)){var k=E(p,hn);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,fn);y=f.children.length,v=k}x||De.moveNodes(e,{at:h,to:b,voids:i}),C&&De.removeNodes(e,{at:C.current,voids:i}),B.shouldMergeNodesRemovePrevNode(e,d,u)?De.removeNodes(e,{at:g,voids:i}):e.apply({type:"merge_node",path:b,position:y,properties:v}),C&&C.unref()}}}}))},vn=(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()}}))},yn=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})}}}}))},bn=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);De.splitNodes(e,{at:h,match:r,mode:f,voids:u,always:!g});var v=B.isStart(e,p,p.path);De.splitNodes(e,{at:p,match:r,mode:f,voids:u,always:!v}),o=d.unref(),null==n.at&&De.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})}}}}))},wn=(e,t)=>{if(P.isCollapsed(t))return t.anchor;var[,n]=P.edges(t),r=B.pointRef(e,n);return De.delete(e,{at:t}),r.unref()},xn=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=wn(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);De.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,[]);De.select(e,I)}}finally{var M;p.unref(),null===(M=d)||void 0===M||M.unref()}}}))},Sn=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;De.setNodes(e,r,n)},_n=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)),De.liftNodes(e,{at:i,match:e=>D.isAncestor(n)&&n.children.includes(e),voids:o})};for(var d of c)u();s&&s.unref()}}))};function Cn(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 En(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cn(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var kn=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)||J.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"});De.splitNodes(e,{at:c,match:a,voids:i}),De.splitNodes(e,{at:l,match:a,voids:i}),s=u.unref(),null==n.at&&De.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=En(En({},t),{},{children:[]});De.insertNodes(e,w,{at:b,voids:i}),De.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()}}))},zn=()=>{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 Ne(e,...n)},addMark:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Ke(e,...n)},deleteBackward:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Ye(e,...n)},deleteForward:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Ze(e,...n)},deleteFragment:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Je(e,...n)},getFragment:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return je(e,...n)},insertBreak:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return pt(e,...n)},insertSoftBreak:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return ft(e,...n)},insertFragment:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return tn(e,...n)},insertNode:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return ht(e,...n)},insertText:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return vt(e,...n)},normalizeNode:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Re(e,...n)},removeMark:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Wt(e,...n)},getDirtyPaths:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Oe(e,...n)},shouldNormalize:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Fe(e,...n)},above:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Be(e,...n)},after:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Ue(e,...n)},before:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Ge(e,...n)},collapse:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return nn(e,...n)},delete:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return en(e,...n)},deselect:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return rn(e,...n)},edges:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Xe(e,...n)},elementReadOnly:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return tt(e,...n)},end:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return nt(e,...n)},first:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return rt(e,...n)},fragment:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return ot(e,...n)},getMarks:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return At(e,...n)},hasBlocks:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return lt(e,...n)},hasInlines:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return ct(e,...n)},hasPath:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return ut(e,...n)},hasTexts:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return dt(e,...n)},insertNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return dn(e,...n)},isBlock:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return yt(e,...n)},isEdge:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return bt(e,...n)},isEmpty:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return wt(e,...n)},isEnd:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return xt(e,...n)},isNormalizing:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return St(e,...n)},isStart:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return _t(e,...n)},last:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Ct(e,...n)},leaf:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Et(e,...n)},levels:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return kt(e,...n)},liftNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return pn(e,...n)},mergeNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return gn(e,...n)},move:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return on(e,...n)},moveNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return vn(e,...n)},next:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Dt(e,...n)},node:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Tt(e,...n)},nodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return It(e,...n)},normalize:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Mt(e,...n)},parent:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Nt(e,...n)},path:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Rt(e,...n)},pathRef:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Ot(e,...n)},pathRefs:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return jt(e,...n)},point:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Lt(e,...n)},pointRef:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Ft(e,...n)},pointRefs:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Bt(e,...n)},positions:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Vt(e,...n)},previous:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Kt(e,...n)},range:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Ut(e,...n)},rangeRef:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return $t(e,...n)},rangeRefs:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Ht(e,...n)},removeNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return yn(e,...n)},select:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return an(e,...n)},setNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return bn(e,...n)},setNormalizing:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Gt(e,...n)},setPoint:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return cn(e,...n)},setSelection:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return un(e,...n)},splitNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return xn(e,...n)},start:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Yt(e,...n)},string:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Zt(e,...n)},unhangRange:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Jt(e,...n)},unsetNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Sn(e,...n)},unwrapNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return _n(e,...n)},void:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return st(e,...n)},withoutNormalizing:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Xt(e,...n)},wrapNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return kn(e,...n)},shouldMergeNodesRemovePrevNode:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Qt(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>'},51188: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}},15215:(e,t,n)=>{"use strict";n.d(t,{C6:()=>o,Cl:()=>i,Tt:()=>a,fX:()=>s});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||t)}Object.create},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=o.length,a=Math.pow(2,48)-1;function s(e){var t=Math.floor(e()*i);return t===i&&(t=i-1),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="c5c95431617b362e"},97967:e=>{e.exports="0ed51ff3a2b7c33e"},80658:e=>{e.exports="ddcc88b7de1cd562"},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-document-assistant.svg":51188,"./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-document-assistant.svg":51188,"./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,j=I(o,"PointerEvent")!==s,R=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 $(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 H(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=q(r);t.timeStamp=h(),t.deltaTime=t.timeStamp-i.timeStamp,t.angle=Z(l,c),t.distance=Y(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=W(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,Y(f[0],f[1],K)/Y(d[0],d[1],K)):1,t.rotation=a?function(e,t){return Z(t[1],t[0],K)+Z(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=W(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:q(t),deltaX:e.deltaX,deltaY:e.deltaY}}function q(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 W(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 Y(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 Z(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}$.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 J={mousedown:1,mousemove:2,mouseup:4},X="mousedown",Q="mousemove mouseup";function ee(){this.evEl=X,this.evWin=Q,this.pressed=!1,$.apply(this,arguments)}w(ee,$,{handler:function(e){var t=J[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,$.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}o.MSPointerEvent&&!o.PointerEvent&&(re="MSPointerDown",oe="MSPointerMove MSPointerUp MSPointerCancel"),w(ie,$,{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},se="touchstart",le="touchstart touchmove touchend touchcancel";function ce(){this.evTarget=se,this.evWin=le,this.started=!1,$.apply(this,arguments)}function ue(e,t){var n=D(e.touches),r=D(e.changedTouches);return 12&t&&(n=T(n.concat(r),"identifier",!0)),[n,r]}w(ce,$,{handler:function(e){var t=ae[e.type];if(1===t&&(this.started=!0),this.started){var n=ue.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 de={touchstart:1,touchmove:2,touchend:4,touchcancel:8},pe="touchstart touchmove touchend touchcancel";function he(){this.evTarget=pe,this.targetIds={},$.apply(this,arguments)}function fe(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(he,$,{handler:function(e){var t=de[e.type],n=fe.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:F,srcEvent:e})}});function me(){$.apply(this,arguments);var e=x(this.handler,this);this.touch=new he(this.manager,e),this.mouse=new ee(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function ge(e,t){1&e?(this.primaryTouch=t.changedPointers[0].identifier,ve.call(this,t)):12&e&&ve.call(this,t)}function ve(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 ye(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(me,$,{handler:function(e,t,n){var r=n.pointerType==F,o=n.pointerType==B;if(!(o&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(r)ge.call(this,t,n);else if(o&&ye.call(this,n))return;this.callback(e,t,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var be=I(u.style,"touchAction"),we=be!==s,xe="compute",Se="auto",_e="manipulation",Ce="none",Ee="pan-x",ke="pan-y",ze=function(){if(!we)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 Pe(e,t){this.manager=e,this.set(t)}Pe.prototype={set:function(e){e==xe&&(e=this.compute()),we&&this.manager.element.style&&ze[e]&&(this.manager.element.style[be]=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,Ce))return Ce;var t=z(e,Ee),n=z(e,ke);if(t&&n)return Ce;if(t||n)return t?Ee:ke;if(z(e,_e))return _e;return Se}(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,Ce)&&!ze.none,i=z(r,ke)&&!ze["pan-y"],a=z(r,Ee)&&!ze["pan-x"];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 Ae=32;function De(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 Te(e){return 16&e?"cancel":8&e?"end":4&e?"move":2&e?"start":""}function Ie(e){return 16==e?"down":8==e?"up":2==e?"left":4==e?"right":""}function Me(e,t){var n=t.manager;return n?n.get(e):e}function Ne(){De.apply(this,arguments)}function Oe(){Ne.apply(this,arguments),this.pX=null,this.pY=null}function je(){Ne.apply(this,arguments)}function Re(){De.apply(this,arguments),this._timer=null,this._input=null}function Fe(){Ne.apply(this,arguments)}function Be(){Ne.apply(this,arguments)}function Le(){De.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Ve(e,t){return(t=t||{}).recognizers=_(t.recognizers,Ve.defaults.preset),new Ke(e,t)}De.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=Me(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return m(e,"dropRecognizeWith",this)||(e=Me(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=Me(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(m(e,"dropRequireFailure",this))return this;e=Me(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+Te(n)),r(t.options.event),e.additionalEvent&&r(e.additionalEvent),n>=8&&r(t.options.event+Te(n))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=Ae},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=Ae);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(Ne,De,{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:Ae}}),w(Oe,Ne,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var e=this.options.direction,t=[];return 6&e&&t.push(ke),e&L&&t.push(Ee),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 Ne.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=Ie(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),w(je,Ne,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Ce]},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(Re,De,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Se]},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 Ae},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(Fe,Ne,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Ce]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)}}),w(Be,Ne,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return Oe.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=Ie(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),w(Le,De,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[_e]},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||Y(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 Ae},failTimeout:function(){return this._timer=f((function(){this.state=Ae}),this.options.interval,this),Ae},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Ve.VERSION="2.0.7",Ve.defaults={domEvents:!1,touchAction:xe,enable:!0,inputTarget:null,inputClass:null,preset:[[Fe,{enable:!1}],[je,{enable:!1},["rotate"]],[Be,{direction:6}],[Oe,{direction:6},["swipe"]],[Le],[Le,{event:"doubletap",taps:2},["tap"]],[Re]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function Ke(e,t){var n;this.options=l({},Ve.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||(j?ie:R?he:O?me:ee))(n,H),this.touchAction=new Pe(this,this.options.touchAction),$e(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 $e(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={}))}Ke.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 De)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&&$e(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},l(Ve,{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:Ae,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:Ke,Input:$,TouchAction:Pe,TouchInput:he,MouseInput:ee,PointerEventInput:ie,TouchMouseInput:me,SingleTouchInput:ce,Recognizer:De,AttrRecognizer:Ne,Tap:Le,Pan:Oe,Swipe:Be,Pinch:je,Rotate:Fe,Press:Re,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=Ve,(r=function(){return Ve}.call(t,n,t,e))===s||(e.exports=r)}(window,document)}},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=>5601===e?"pspdfkit-lib/core-worker.js":387===e?"pspdfkit-lib/gdpicture-worker.js":"pspdfkit-lib/chunk-"+{11:"gdpicture-worker",43:"localedata-de",57:"locale-fi",568:"localedata-ko",708:"localedata-sk",771:"locale-pt-PT",931:"locale-de",969:"locale-it",1234:"locale-nb-NO",1396:"lazy-sha",1506:"localedata-uk",1543:"locale-en",1612:"localedata-zh",1630:"locale-zh-Hant",1860:"gdpicture",1930:"locale-uk",1948:"locale-nl",2013:"localedata-el",2142:"localedata-pl",2210:"localedata-fr",2518:"localedata-pt",2556:"locale-sk",2576:"locale-ko",2590:"locale-cy",2673:"localedata-fi",2902:"locale-th",2982:"localedata-cy",3258:"locale-fr",3406:"localedata-th",3441:"localedata-ru",3751:"locale-da",4154:"localedata-nb",4341:"locale-el",4351:"locale-en-GB",4377:"locale-sv",4866:"locale-es",4874:"locale-ms",5054:"localedata-sv",5274:"localedata-es",5362:"standalone",5407:"localedata-en",5534:"server-instant",5750:"server",6269:"server-rest",6377:"locale-ru",6817:"localedata-it",6870:"locale-pl",6961:"localedata-id",7262:"locale-pt",7285:"locale-ja",7364:"locale-cs",7612:"localedata-cs",7899:"localedata-sl",7940:"localedata-nl",8013:"localedata-ja",8036:"localedata-tr",8163:"locale-sl",8225:"locale-zh-Hans",8329:"core-worker",8914:"localedata-ms",8928:"locale-hr",8972:"locale-tr",9015:"locale-fr-CA",9042:"standalone-server",9055:"localedata-da",9529:"locale-id",9656:"localedata-hr"}[e]+"-"+{11:"1d40569ba61f3969",43:"1cbbae642c99b202",57:"63d020f4aa19f279",568:"8e87eb784c956af3",708:"d5322db5d62221e8",771:"e41def9ca0229777",931:"fc98d891e664f0ad",969:"21a131d711656cea",1234:"b661a7a0dfd2443d",1396:"888eb11326ed2dcc",1506:"7fb83b8cdc797f61",1543:"0c36b615d611d642",1612:"5f67c2f8bfeb1166",1630:"11c9610bc676db35",1860:"ddb9f347d8c7d8c1",1930:"fdab08d072d7f4b5",1948:"c739d170943b48a9",2013:"f53800035055d0cf",2142:"e0750ac17f4f0f46",2210:"14f36317289e9c58",2518:"44b9f418a751e3ae",2556:"545e0402016c019a",2576:"f17fedccd4fdf110",2590:"33488f654cccf480",2673:"861af3f788811e99",2902:"6e750f778b7d63c8",2982:"a0977d9066df9d37",3258:"a96894489f2906f5",3406:"c75b534a5c5c1691",3441:"d06cfc2284de182c",3751:"0c930f2b764f329a",4154:"9ea5778a0eb023d4",4341:"fa26d9ca92ae396c",4351:"93562a20cc625465",4377:"c922e78b14e2408f",4866:"8ceee19c5a08d7e2",4874:"431e81baab590b86",5054:"4ff4c428d712a588",5274:"af7db20d3e6e2de0",5362:"8fb8aa072dea2279",5407:"6cb518ae7f2131c9",5534:"955016905a3f6896",5750:"e7025c06ff125bbc",6269:"b71df21594992f14",6377:"198b9ce67ae36813",6817:"17cb08be3f3c01f8",6870:"4763efcd6d125342",6961:"b287ff303e633b2f",7262:"f62d55f3e36b4ed3",7285:"ba0d4f99ff959d10",7364:"86cd6bbbaa3b75ed",7612:"2729c725e8c4dcda",7899:"a00d5ab28aa222d4",7940:"bfb21976ec0f1ba1",8013:"164f0b6dacb65ba2",8036:"ecab31a4e1167e78",8163:"0e5e1e1d07ba28ff",8225:"4ed2c3bb43937dd6",8329:"dd6f249801f2f21b",8914:"b28266d96bdb54a2",8928:"5b0b26f953a763b5",8972:"effd58a3eb014ed5",9015:"46279db5d916044c",9042:"27f1a8a0b5ee11f9",9055:"5b0cee93efb859fc",9529:"ceded549da89c092",9656:"6e4feec689db07ef"}[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="PSPDFKit:",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={3690: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.webpackChunkPSPDFKit=globalThis.webpackChunkPSPDFKit||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),a.nc=void 0,a(46261)})()));