PageSourceSearch

https://faf-eight.vercel.app/assets/vendor-react-core-_0sZDOLQ.js

js faf-eight.vercel.app collected 2026-10-03 06:55:20 UTC 741,786 bytes, 183 lines download raw bytes

vendor: 11,054 bytes, lines 1-25
1var My=e=>{throw TypeError(e)};var Xf=(e,t,n)=>t.has(e)||My("Cannot "+n);var ne=(e,t,n)=>(Xf(e,t,"read from private field"),n?n.call(e):t.get(e)),je=(e,t,n)=>t.has(e)?My("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Ce=(e,t,n,i)=>(Xf(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),Ke=(e,t,n)=>(Xf(e,t,"access private method"),n);var Ys=(e,t,n,i)=>({set _(l){Ce(e,t,l,n)},get _(){return ne(e,t,i)}});import{c as Ae,a as Ud}from"./vendor-radix-CFmJ1img.js";import{r as Q_}from"./vendor-utils-BRu4i-LD.js";function G_(e,t){for(var n=0;n<t.length;n++){const i=t[n];if(typeof i!="string"&&!Array.isArray(i)){for(const l in i)if(l!=="default"&&!(l in e)){const a=Object.getOwnPropertyDescriptor(i,l);a&&Object.defineProperty(e,l,a.get?a:{enumerable:!0,get:()=>i[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var ID=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ei(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Zf={exports:{}},ra={},Jf={exports:{}},Qe={};/**
2 * @license React
3 * react.production.min.js
4 *
5 * Copyright (c) Facebook, Inc. and its affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var Dy;function Y_(){if(Dy)return Qe;Dy=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.iterator;function d(A){return A===null||typeof A!="object"?null:(A=f&&A[f]||A["@@iterator"],typeof A=="function"?A:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,y={};function g(A,q,M){this.props=A,this.context=q,this.refs=y,this.updater=M||m}g.prototype.isReactComponent={},g.prototype.setState=function(A,q){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,q,"setState")},g.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function b(){}b.prototype=g.prototype;function x(A,q,M){this.props=A,this.context=q,this.refs=y,this.updater=M||m}var _=x.prototype=new b;_.constructor=x,S(_,g.prototype),_.isPureReactComponent=!0;var E=Array.isArray,O=Object.prototype.hasOwnProperty,R={current:null},I={key:!0,ref:!0,__self:!0,__source:!0};function j(A,q,M){var ee,te={},V=null,K=null;if(q!=null)for(ee in q.ref!==void 0&&(K=q.ref),q.key!==void 0&&(V=""+q.key),q)O.call(q,ee)&&!I.hasOwnProperty(ee)&&(te[ee]=q[ee]);var ie=arguments.length-2;if(ie===1)te.children=M;else if(1<ie){for(var le=Array(ie),ce=0;ce<ie;ce++)le[ce]=arguments[ce+2];te.children=le}if(A&&A.defaultProps)for(ee in ie=A.defaultProps,ie)te[ee]===void 0&&(te[ee]=ie[ee]);return{$$typeof:e,type:A,key:V,ref:K,props:te,_owner:R.current}}function B(A,q){return{$$typeof:e,type:A.type,key:q,ref:A.ref,props:A.props,_owner:A._owner}}function L(A){return typeof A=="object"&&A!==null&&A.$$typeof===e}function P(A){var q={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(M){return q[M]})}var N=/\/+/g;function F(A,q){return typeof A=="object"&&A!==null&&A.key!=null?P(""+A.key):q.toString(36)}function z(A,q,M,ee,te){var V=typeof A;(V==="undefined"||V==="boolean")&&(A=null);var K=!1;if(A===null)K=!0;else switch(V){case"string":case"number":K=!0;break;case"object":switch(A.$$typeof){case e:case t:K=!0}}if(K)return K=A,te=te(K),A=ee===""?"."+F(K,0):ee,E(te)?(M="",A!=null&&(M=A.replace(N,"$&/")+"/"),z(te,q,M,"",function(ce){return ce})):te!=null&&(L(te)&&(te=B(te,M+(!te.key||K&&K.key===te.key?"":(""+te.key).replace(N,"$&/")+"/")+A)),q.push(te)),1;if(K=0,ee=ee===""?".":ee+":",E(A))for(var ie=0;ie<A.length;ie++){V=A[ie];var le=ee+F(V,ie);K+=z(V,q,M,le,te)}else if(le=d(A),typeof le=="function")for(A=le.call(A),ie=0;!(V=A.next()).done;)V=V.value,le=ee+F(V,ie++),K+=z(V,q,M,le,te);else if(V==="object")throw q=String(A),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.");return K}function H(A,q,M){if(A==null)return A;var ee=[],te=0;return z(A,ee,"","",function(V){return q.call(M,V,te++)}),ee}function Q(A){if(A._status===-1){var q=A._result;q=q(),q.then(function(M){(A._status===0||A._status===-1)&&(A._status=1,A._result=M)},function(M){(A._status===0||A._status===-1)&&(A._status=2,A._result=M)}),A._status===-1&&(A._status=0,A._result=q)}if(A._status===1)return A._result.default;throw A._result}var Y={current:null},X={transition:null},$={ReactCurrentDispatcher:Y,ReactCurrentBatchConfig:X,ReactCurrentOwner:R};function T(){throw Error("act(...) is not supported in production builds of React.")}return Qe.Children={map:H,forEach:function(A,q,M){H(A,function(){q.apply(this,arguments)},M)},count:function(A){var q=0;return H(A,function(){q++}),q},toArray:function(A){return H(A,function(q){return q})||[]},only:function(A){if(!L(A))throw Error("React.Children.only expected to receive a single React element child.");return A}},Qe.Component=g,Qe.Fragment=n,Qe.Profiler=l,Qe.PureComponent=x,Qe.StrictMode=i,Qe.Suspense=h,Qe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$,Qe.act=T,Qe.cloneElement=function(A,q,M){if(A==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+A+".");var ee=S({},A.props),te=A.key,V=A.ref,K=A._owner;if(q!=null){if(q.ref!==void 0&&(V=q.ref,K=R.current),q.key!==void 0&&(te=""+q.key),A.type&&A.type.defaultProps)var ie=A.type.defaultProps;for(le in q)O.call(q,le)&&!I.hasOwnProperty(le)&&(ee[le]=q[le]===void 0&&ie!==void 0?ie[le]:q[le])}var le=arguments.length-2;if(le===1)ee.children=M;else if(1<le){ie=Array(le);for(var ce=0;ce<le;ce++)ie[ce]=arguments[ce+2];ee.children=ie}return{$$typeof:e,type:A.type,key:te,ref:V,props:ee,_owner:K}},Qe.createContext=function(A){return A={$$typeof:s,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},A.Provider={$$typeof:a,_context:A},A.Consumer=A},Qe.createElement=j,Qe.createFactory=function(A){var q=j.bind(null,A);return q.type=A,q},Qe.createRef=function(){return{current:null}},Qe.forwardRef=function(A){return{$$typeof:u,render:A}},Qe.isValidElement=L,Qe.lazy=function(A){return{$$typeof:p,_payload:{_status:-1,_result:A},_init:Q}},Qe.memo=function(A,q){return{$$typeof:v,type:A,compare:q===void 0?null:q}},Qe.startTransition=function(A){var q=X.transition;X.transition={};try{A()}finally{X.transition=q}},Qe.unstable_act=T,Qe.useCallback=function(A,q){return Y.current.useCallback(A,q)},Qe.useContext=function(A){return Y.current.useContext(A)},Qe.useDebugValue=function(){},Qe.useDeferredValue=function(A){return Y.current.useDeferredValue(A)},Qe.useEffect=function(A,q){return Y.current.useEffect(A,q)},Qe.useId=function(){return Y.current.useId()},Qe.useImperativeHandle=function(A,q,M){return Y.current.useImperativeHandle(A,q,M)},Qe.useInsertionEffect=function(A,q){return Y.current.useInsertionEffect(A,q)},Qe.useLayoutEffect=function(A,q){return Y.current.useLayoutEffect(A,q)},Qe.useMemo=function(A,q){return Y.current.useMemo(A,q)},Qe.useReducer=function(A,q,M){return Y.current.useReducer(A,q,M)},Qe.useRef=function(A){return Y.current.useRef(A)},Qe.useState=function(A){return Y.current.useState(A)},Qe.useSyncExternalStore=function(A,q,M){return Y.current.useSyncExternalStore(A,q,M)},Qe.useTransition=function(){return Y.current.useTransition()},Qe.version="18.3.1",Qe}var jy;function ul(){return jy||(jy=1,Jf.exports=Y_()),Jf.exports}/**
10 * @license React
11 * react-jsx-runtime.production.min.js
12 *
13 * Copyright (c) Facebook, Inc. and its affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var Fy;function X_(){if(Fy)return ra;Fy=1;var e=ul(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,l=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function s(u,h,v){var p,f={},d=null,m=null;v!==void 0&&(d=""+v),h.key!==void 0&&(d=""+h.key),h.ref!==void 0&&(m=h.ref);for(p in h)i.call(h,p)&&!a.hasOwnProperty(p)&&(f[p]=h[p]);if(u&&u.defaultProps)for(p in h=u.defaultProps,h)f[p]===void 0&&(f[p]=h[p]);return{$$typeof:t,type:u,key:d,ref:m,props:f,_owner:l.current}}return ra.Fragment=n,ra.jsx=s,ra.jsxs=s,ra}var By;function Z_(){return By||(By=1,Zf.exports=X_()),Zf.exports}var re=Z_(),D=ul();const gt=Ei(D),qh=G_({__proto__:null,default:gt},[D]);var Xs={},ed={exports:{}},an={},td={exports:{}},nd={};/**
18 * @license React
19 * scheduler.production.min.js
20 *
21 * Copyright (c) Facebook, Inc. and its affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */var zy;function J_(){return zy||(zy=1,(function(e){function t(X,$){var T=X.length;X.push($);e:for(;0<T;){var A=T-1>>>1,q=X[A];if(0<l(q,$))X[A]=$,X[T]=q,T=A;else break e}}function n(X){return X.length===0?null:X[0]}function i(X){if(X.length===0)return null;var $=X[0],T=X.pop();if(T!==$){X[0]=T;e:for(var A=0,q=X.length,M=q>>>1;A<M;){var ee=2*(A+1)-1,te=X[ee],V=ee+1,K=X[V];if(0>l(te,T))V<q&&0>l(K,te)?(X[A]=K,X[V]=T,A=V):(X[A]=te,X[ee]=T,A=ee);else if(V<q&&0>l(K,T))X[A]=K,X[V]=T,A=V;else break e}}return $}function l(X,$){var T=X.sortIndex-$.sortIndex;return T!==0?T:X.id-$.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var s=Date,u=s.now();e.unstable_now=function(){return s.now()-u}}var h=[],v=[],p=1,f=null,d=3,m=!1,S=!1,y=!1,g=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _(X){for(var $=n(v);$!==null;){if($.callback===null)i(v);else if($.startTime<=X)i(v),$.sortIndex=$.expirationTime,t(h,$);else break;$=n(v)}}function E(X){if(y=!1,_(X),!S)if(n(h)!==null)S=!0,Q(O);else{var $=n(v);$!==null&&Y(E,$.startTime-X)}}function O(X,$){S=!1,y&&(y=!1,b(j),j=-1),m=!0;var T=d;try{for(_($),f=n(h);f!==null&&(!(f.expirationTime>$)||X&&!P());){var A=f.callback;if(typeof A=="function"){f.callback=null,d=f.priorityLevel;var q=A(f.expirationTime<=$);$=e.unstable_now(),typeof q=="function"?f.callback=q:f===n(h)&&i(h),_($)}
vendor: 17,443 bytes, lines 25-37
25else i(h);f=n(h)}if(f!==null)var M=!0;else{var ee=n(v);ee!==null&&Y(E,ee.startTime-$),M=!1}return M}finally{f=null,d=T,m=!1}}var R=!1,I=null,j=-1,B=5,L=-1;function P(){return!(e.unstable_now()-L<B)}function N(){if(I!==null){var X=e.unstable_now();L=X;var $=!0;try{$=I(!0,X)}finally{$?F():(R=!1,I=null)}}else R=!1}var F;if(typeof x=="function")F=function(){x(N)};else if(typeof MessageChannel<"u"){var z=new MessageChannel,H=z.port2;z.port1.onmessage=N,F=function(){H.postMessage(null)}}else F=function(){g(N,0)};function Q(X){I=X,R||(R=!0,F())}function Y(X,$){j=g(function(){X(e.unstable_now())},$)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(X){X.callback=null},e.unstable_continueExecution=function(){S||m||(S=!0,Q(O))},e.unstable_forceFrameRate=function(X){0>X||125<X?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):B=0<X?Math.floor(1e3/X):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(h)},e.unstable_next=function(X){switch(d){case 1:case 2:case 3:var $=3;break;default:$=d}var T=d;d=$;try{return X()}finally{d=T}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(X,$){switch(X){case 1:case 2:case 3:case 4:case 5:break;default:X=3}var T=d;d=X;try{return $()}finally{d=T}},e.unstable_scheduleCallback=function(X,$,T){var A=e.unstable_now();switch(typeof T=="object"&&T!==null?(T=T.delay,T=typeof T=="number"&&0<T?A+T:A):T=A,X){case 1:var q=-1;break;case 2:q=250;break;case 5:q=1073741823;break;case 4:q=1e4;break;default:q=5e3}return q=T+q,X={id:p++,callback:$,priorityLevel:X,startTime:T,expirationTime:q,sortIndex:-1},T>A?(X.sortIndex=T,t(v,X),n(h)===null&&X===n(v)&&(y?(b(j),j=-1):y=!0,Y(E,T-A))):(X.sortIndex=q,t(h,X),S||m||(S=!0,Q(O))),X},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(X){var $=d;return function(){var T=d;d=$;try{return X.apply(this,arguments)}finally{d=T}}}})(nd)),nd}var qy;function ek(){return qy||(qy=1,td.exports=J_()),td.exports}/**
26 * @license React
27 * react-dom.production.min.js
28 *
29 * Copyright (c) Facebook, Inc. and its affiliates.
30 *
31 * This source code is licensed under the MIT license found in the
32 * LICENSE file in the root directory of this source tree.
33 */var Uy;function tk(){if(Uy)return an;Uy=1;var e=ul(),t=ek();function n(r){for(var o="https://reactjs.org/docs/error-decoder.html?invariant="+r,c=1;c<arguments.length;c++)o+="&args[]="+encodeURIComponent(arguments[c]);return"Minified React error #"+r+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,l={};function a(r,o){s(r,o),s(r+"Capture",o)}function s(r,o){for(l[r]=o,r=0;r<o.length;r++)i.add(o[r])}var u=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),h=Object.prototype.hasOwnProperty,v=/^[: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]*$/,p={},f={};function d(r){return h.call(f,r)?!0:h.call(p,r)?!1:v.test(r)?f[r]=!0:(p[r]=!0,!1)}function m(r,o,c,w){if(c!==null&&c.type===0)return!1;switch(typeof o){case"function":case"symbol":return!0;case"boolean":return w?!1:c!==null?!c.acceptsBooleans:(r=r.toLowerCase().slice(0,5),r!=="data-"&&r!=="aria-");default:return!1}}function S(r,o,c,w){if(o===null||typeof o>"u"||m(r,o,c,w))return!0;if(w)return!1;if(c!==null)switch(c.type){case 3:return!o;case 4:return o===!1;case 5:return isNaN(o);case 6:return isNaN(o)||1>o}return!1}function y(r,o,c,w,k,C,U){this.acceptsBooleans=o===2||o===3||o===4,this.attributeName=w,this.attributeNamespace=k,this.mustUseProperty=c,this.propertyName=r,this.type=o,this.sanitizeURL=C,this.removeEmptyString=U}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(r){g[r]=new y(r,0,!1,r,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(r){var o=r[0];g[o]=new y(o,1,!1,r[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(r){g[r]=new y(r,2,!1,r.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(r){g[r]=new y(r,2,!1,r,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(r){g[r]=new y(r,3,!1,r.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(r){g[r]=new y(r,3,!0,r,null,!1,!1)}),["capture","download"].forEach(function(r){g[r]=new y(r,4,!1,r,null,!1,!1)}),["cols","rows","size","span"].forEach(function(r){g[r]=new y(r,6,!1,r,null,!1,!1)}),["rowSpan","start"].forEach(function(r){g[r]=new y(r,5,!1,r.toLowerCase(),null,!1,!1)});var b=/[\-:]([a-z])/g;function x(r){return r[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(r){var o=r.replace(b,x);g[o]=new y(o,1,!1,r,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(r){var o=r.replace(b,x);g[o]=new y(o,1,!1,r,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(r){var o=r.replace(b,x);g[o]=new y(o,1,!1,r,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(r){g[r]=new y(r,1,!1,r.toLowerCase(),null,!1,!1)}),g.xlinkHref=new y("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(r){g[r]=new y(r,1,!1,r.toLowerCase(),null,!0,!0)});function _(r,o,c,w){var k=g.hasOwnProperty(o)?g[o]:null;(k!==null?k.type!==0:w||!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(S(o,c,k,w)&&(c=null),w||k===null?d(o)&&(c===null?r.removeAttribute(o):r.setAttribute(o,""+c)):k.mustUseProperty?r[k.propertyName]=c===null?k.type===3?!1:"":c:(o=k.attributeName,w=k.attributeNamespace,c===null?r.removeAttribute(o):(k=k.type,c=k===3||k===4&&c===!0?"":""+c,w?r.setAttributeNS(w,o,c):r.setAttribute(o,c))))}var E=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,O=Symbol.for("react.element"),R=Symbol.for("react.portal"),I=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),L=Symbol.for("react.provider"),P=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),z=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),Q=Symbol.for("react.lazy"),Y=Symbol.for("react.offscreen"),X=Symbol.iterator;function $(r){return r===null||typeof r!="object"?null:(r=X&&r[X]||r["@@iterator"],typeof r=="function"?r:null)}var T=Object.assign,A;function q(r){if(A===void 0)try{throw Error()}catch(c){var o=c.stack.trim().match(/\n( *(at )?)/);A=o&&o[1]||""}return`
34`+A+r}var M=!1;function ee(r,o){if(!r||M)return"";M=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(o)if(o=function(){throw Error()},Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(de){var w=de}Reflect.construct(r,[],o)}else{try{o.call()}catch(de){w=de}r.call(o.prototype)}else{try{throw Error()}catch(de){w=de}r()}}catch(de){if(de&&w&&typeof de.stack=="string"){for(var k=de.stack.split(`
35`),C=w.stack.split(`
36`),U=k.length-1,G=C.length-1;1<=U&&0<=G&&k[U]!==C[G];)G--;for(;1<=U&&0<=G;U--,G--)if(k[U]!==C[G]){if(U!==1||G!==1)do if(U--,G--,0>G||k[U]!==C[G]){var oe=`
37`+k[U].replace(" at new "," at ");return r.displayName&&oe.includes("<anonymous>")&&(oe=oe.replace("<anonymous>",r.displayName)),oe}while(1<=U&&0<=G);break}}}finally{M=!1,Error.prepareStackTrace=c}return(r=r?r.displayName||r.name:"")?q(r):""}function te(r){switch(r.tag){case 5:return q(r.type);case 16:return q("Lazy");case 13:return q("Suspense");case 19:return q("SuspenseList");case 0:case 2:case 15:return r=ee(r.type,!1),r;case 11:return r=ee(r.type.render,!1),r;case 1:return r=ee(r.type,!0),r;default:return""}}function V(r){if(r==null)return null;if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case I:return"Fragment";case R:return"Portal";case B:return"Profiler";case j:return"StrictMode";case F:return"Suspense";case z:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case P:return(r.displayName||"Context")+".Consumer";case L:return(r._context.displayName||"Context")+".Provider";case N:var o=r.render;return r=r.displayName,r||(r=o.displayName||o.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case H:return o=r.displayName||null,o!==null?o:V(r.type)||"Memo";case Q:o=r._payload,r=r._init;try{return V(r(o))}catch{}}return null}function K(r){var o=r.type;switch(r.tag){case 24:return"Cache";case 9:return(o.displayName||"Context")+".Consumer";case 10:return(o._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return r=o.render,r=r.displayName||r.name||"",o.displayName||(r!==""?"ForwardRef("+r+")":"ForwardRef");case 7:return"Fragment";case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return V(o);case 8:return o===j?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o}return null}function ie(r){switch(typeof r){case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function le(r){var o=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function ce(r){var o=le(r)?"checked":"value",c=Object.getOwnPropertyDescriptor(r.constructor.prototype,o),w=""+r[o];if(!r.hasOwnProperty(o)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var k=c.get,C=c.set;return Object.defineProperty(r,o,{configurable:!0,get:function(){return k.call(this)},set:function(U){w=""+U,C.call(this,U)}}),Object.defineProperty(r,o,{enumerable:c.enumerable}),{getValue:function(){return w},setValue:function(U){w=""+U},stopTracking:function(){r._valueTracker=null,delete r[o]}}}}function we(r){r._valueTracker||(r._valueTracker=ce(r))}function Oe(r){if(!r)return!1;var o=r._valueTracker;if(!o)return!0;var c=o.getValue(),w="";return r&&(w=le(r)?r.checked?"true":"false":r.value),r=w,r!==c?(o.setValue(r),!0):!1}function Re(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}function Fe(r,o){var c=o.checked;return T({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:c??r._wrapperState.initialChecked})}function $e(r,o){var c=o.defaultValue==null?"":o.defaultValue,w=o.checked!=null?o.checked:o.defaultChecked;c=ie(o.value!=null?o.value:c),r._wrapperState={initialChecked:w,initialValue:c,controlled:o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null}}function lt(r,o){o=o.checked,o!=null&&_(r,"checked",o,!1)}function Ze(r,o){lt(r,o);var c=ie(o.value),w=o.type;if(c!=null)w==="number"?(c===0&&r.value===""||r.value!=c)&&(r.value=""+c):r.value!==""+c&&(r.value=""+c);else if(w==="submit"||w==="reset"){r.removeAttribute("value");return}o.hasOwnProperty("value")?pe(r,o.type,c):o.hasOwnProperty("defaultValue")&&pe(r,o.type,ie(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(r.defaultChecked=!!o.defaultChecked)}function he(r,o,c){if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var w=o.type;if(!(w!=="submit"&&w!=="reset"||o.value!==void 0&&o.value!==null))return;o=""+r._wrapperState.initialValue,c||o===r.value||(r.value=o),r.defaultValue=o}c=r.name,c!==""&&(r.name=""),r.defaultChecked=!!r._wrapperState.initialChecked,c!==""&&(r.name=c)}function pe(r,o,c){(o!=="number"||Re(r.ownerDocument)!==r)&&(c==null?r.defaultValue=""+r._wrapperState.initialValue:r.defaultValue!==""+c&&(r.defaultValue=""+c))}var W=Array.isArray;function Z(r,o,c,w){if(r=r.options,o){o={};for(var k=0;k<c.length;k++)o["$"+c[k]]=!0;for(c=0;c<r.length;c++)k=o.hasOwnProperty("$"+r[c].value),r[c].selected!==k&&(r[c].selected=k),k&&w&&(r[c].defaultSelected=!0)}else{for(c=""+ie(c),o=null,k=0;k<r.length;k++){if(r[k].value===c){r[k].selected=!0,w&&(r[k].defaultSelected=!0);return}o!==null||r[k].disabled||(o=r[k])}o!==null&&(o.selected=!0)}}function J(r,o){if(o.dangerouslySetInnerHTML!=null)throw Error(n(91));return T({},o,{value:void 0,defaultValue:void 0,children:""+r._wrapperState.initialValue})}function ge(r,o){var c=o.value;if(c==null){if(c=o.children,o=o.defaultValue,c!=null){if(o!=null)throw Error(n(92));if(W(c)){if(1<c.length)throw Error(n(93));c=c[0]}o=c}o==null&&(o=""),c=o}r._wrapperState={initialValue:ie(c)}}function ye(r,o){var c=ie(o.value),w=ie(o.defaultValue);c!=null&&(c=""+c,c!==r.value&&(r.value=c),o.defaultValue==null&&r.defaultValue!==c&&(r.defaultValue=c)),w!=null&&(r.defaultValue=""+w)}function me(r){var o=r.textContent;o===r._wrapperState.initialValue&&o!==""&&o!==null&&(r.value=o)}function se(r){switch(r){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 ve(r,o){return r==null||r==="http://www.w3.org/1999/xhtml"?se(o):r==="http://www.w3.org/2000/svg"&&o==="foreignObject"?"http://www.w3.org/1999/xhtml":r}var xe,Be=(function(r){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(o,c,w,k){MSApp.execUnsafeLocalFunction(function(){return r(o,c,w,k)})}:r})(function(r,o){if(r.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in r)r.innerHTML=o;else{for(xe=xe||document.createElement("div"),xe.innerHTML="<svg>"+o.valueOf().toString()+"</svg>",o=xe.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;o.firstChild;)r.appendChild(o.firstChild)}});function De(r,o){if(o){var c=r.firstChild;if(c&&c===r.lastChild&&c.nodeType===3){c.nodeValue=o;return}}r.textContent=o}var Ye={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Fn=["Webkit","ms","Moz","O"];Object.keys(Ye).forEach(function(r){Fn.forEach(function(o){o=o+r.charAt(0).toUpperCase()+r.substring(1),Ye[o]=Ye[r]})});function qt(r,o,c){return o==null||typeof o=="boolean"||o===""?"":c||typeof o!="number"||o===0||Ye.hasOwnProperty(r)&&Ye[r]?(""+o).trim():o+"px"}function kn(r,o){r=r.style;for(var c in o)if(o.hasOwnProperty(c)){var w=c.indexOf("--")===0,k=qt(c,o[c],w);c==="float"&&(c="cssFloat"),w?r.setProperty(c,k):r[c]=k}}var Sr=T({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 xt(r,o){if(o){if(Sr[r]&&(o.children!=null||o.dangerouslySetInnerHTML!=null))throw Error(n(137,r));if(o.dangerouslySetInnerHTML!=null){if(o.children!=null)throw Error(n(60));if(typeof o.dangerouslySetInnerHTML!="object"||!("__html"in o.dangerouslySetInnerHTML))throw Error(n(61))}if(o.style!=null&&typeof o.style!="object")throw Error(n(62))}}function On(r,o){if(r.indexOf("-")===-1)return typeof o.is=="str
37ing";switch(r){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ut=null;function fc(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var dc=null,fo=null,ho=null;function Zp(r){if(r=Ul(r)){if(typeof dc!="function")throw Error(n(280));var o=r.stateNode;o&&(o=fs(o),dc(r.stateNode,r.type,o))}}function Jp(r){fo?ho?ho.push(r):ho=[r]:fo=r}function em(){if(fo){var r=fo,o=ho;if(ho=fo=null,Zp(r),o)for(r=0;r<o.length;r++)Zp(o[r])}}function tm(r,o){return r(o)}function nm(){}var hc=!1;function rm(r,o,c){if(hc)return r(o,c);hc=!0;try{return tm(r,o,c)}finally{hc=!1,(fo!==null||ho!==null)&&(nm(),em())}}function Sl(r,o){var c=r.stateNode;if(c===null)return null;var w=fs(c);if(w===null)return null;c=w[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(w=!w.disabled)||(r=r.type,w=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!w;break e;default:r=!1}if(r)return null;if(c&&typeof c!="function")throw Error(n(231,o,typeof c));return c}var pc=!1;if(u)try{var xl={};Object.defineProperty(xl,"passive",{get:function(){pc=!0}}),window.addEventListener("test",xl,xl),window.removeEventListener("test",xl,xl)}catch{pc=!1}function eE(r,o,c,w,k,C,U,G,oe){var de=Array.prototype.slice.call(arguments,3);try{o.apply(c,de)}catch(Se){this.onError(Se)}}var El=!1,Va=null,Ha=!1,mc=null,tE={onError:function(r){El=!0,Va=r}};function nE(r,o,c,w,k,C,U,G,oe){El=!1,Va=null,eE.apply(tE,arguments)}function rE(r,o,c,w,k,C,U,G,oe){if(nE.apply(this,arguments),El){if(El){var de=Va;El=!1,Va=null}else throw Error(n(198));Ha||(Ha=!0,mc=de)}}function Ti(r){var o=r,c=r;if(r.alternate)for(;o.return;)o=o.return;else{r=o;do o=r,(o.flags&4098)!==0&&(c=o.return),r=o.return;while(r)}return o.tag===3?c:null}function im(r){if(r.tag===13){var o=r.memoizedState;if(o===null&&(r=r.alternate,r!==null&&(o=r.memoizedState)),o!==null)return o.dehydrated}return null}function om(r){if(Ti(r)!==r)throw Error(n(188))}function iE(r){var o=r.alternate;if(!o){if(o=Ti(r),o===null)throw Error(n(188));return o!==r?null:r}for(var c=r,w=o;;){var k=c.return;if(k===null)break;var C=k.alternate;if(C===null){if(w=k.return,w!==null){c=w;continue}break}if(k.child===C.child){for(C=k.child;C;){if(C===c)return om(k),r;if(C===w)return om(k),o;C=C.sibling}throw Error(n(188))}if(c.return!==w.return)c=k,w=C;else{for(var U=!1,G=k.child;G;){if(G===c){U=!0,c=k,w=C;break}if(G===w){U=!0,w=k,c=C;break}G=G.sibling}if(!U){for(G=C.child;G;){if(G===c){U=!0,c=C,w=k;break}if(G===w){U=!0,w=C,c=k;break}G=G.sibling}if(!U)throw Error(n(189))}}if(c.alternate!==w)throw Error(n(190))}if(c.tag!==3)throw Error(n(188));return c.stateNode.current===c?r:o}function lm(r){return r=iE(r),r!==null?am(r):null}function am(r){if(r.tag===5||r.tag===6)return r;for(r=r.child;r!==null;){var o=am(r);if(o!==null)return o;r=r.sibling}return null}var sm=t.unstable_scheduleCallback,um=t.unstable_cancelCallback,oE=t.unstable_shouldYield,lE=t.unstable_requestPaint,wt=t.unstable_now,aE=t.unstable_getCurrentPriorityLevel,vc=t.unstable_ImmediatePriority,cm=t.unstable_UserBlockingPriority,$a=t.unstable_NormalPriority,sE=t.unstable_LowPriority,fm=t.unstable_IdlePriority,Wa=null,nr=null;function uE(r){if(nr&&typeof nr.onCommitFiberRoot=="function")try{nr.onCommitFiberRoot(Wa,r,void 0,(r.current.flags&128)===128)}catch{}}var Bn=Math.clz32?Math.clz32:dE,cE=Math.log,fE=Math.LN2;function dE(r){return r>>>=0,r===0?32:31-(cE(r)/fE|0)|0}var Ka=64,Qa=4194304;function _l(r){switch(r&-r){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return r&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return r}}
vendor: 31,003 bytes, lines 37-38
37function Ga(r,o){var c=r.pendingLanes;if(c===0)return 0;var w=0,k=r.suspendedLanes,C=r.pingedLanes,U=c&268435455;if(U!==0){var G=U&~k;G!==0?w=_l(G):(C&=U,C!==0&&(w=_l(C)))}else U=c&~k,U!==0?w=_l(U):C!==0&&(w=_l(C));if(w===0)return 0;if(o!==0&&o!==w&&(o&k)===0&&(k=w&-w,C=o&-o,k>=C||k===16&&(C&4194240)!==0))return o;if((w&4)!==0&&(w|=c&16),o=r.entangledLanes,o!==0)for(r=r.entanglements,o&=w;0<o;)c=31-Bn(o),k=1<<c,w|=r[c],o&=~k;return w}function hE(r,o){switch(r){case 1:case 2:case 4:return o+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return o+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function pE(r,o){for(var c=r.suspendedLanes,w=r.pingedLanes,k=r.expirationTimes,C=r.pendingLanes;0<C;){var U=31-Bn(C),G=1<<U,oe=k[U];oe===-1?((G&c)===0||(G&w)!==0)&&(k[U]=hE(G,o)):oe<=o&&(r.expiredLanes|=G),C&=~G}}function yc(r){return r=r.pendingLanes&-1073741825,r!==0?r:r&1073741824?1073741824:0}function dm(){var r=Ka;return Ka<<=1,(Ka&4194240)===0&&(Ka=64),r}function gc(r){for(var o=[],c=0;31>c;c++)o.push(r);return o}function kl(r,o,c){r.pendingLanes|=o,o!==536870912&&(r.suspendedLanes=0,r.pingedLanes=0),r=r.eventTimes,o=31-Bn(o),r[o]=c}function mE(r,o){var c=r.pendingLanes&~o;r.pendingLanes=o,r.suspendedLanes=0,r.pingedLanes=0,r.expiredLanes&=o,r.mutableReadLanes&=o,r.entangledLanes&=o,o=r.entanglements;var w=r.eventTimes;for(r=r.expirationTimes;0<c;){var k=31-Bn(c),C=1<<k;o[k]=0,w[k]=-1,r[k]=-1,c&=~C}}function wc(r,o){var c=r.entangledLanes|=o;for(r=r.entanglements;c;){var w=31-Bn(c),k=1<<w;k&o|r[w]&o&&(r[w]|=o),c&=~k}}var ot=0;function hm(r){return r&=-r,1<r?4<r?(r&268435455)!==0?16:536870912:4:1}var pm,bc,mm,vm,ym,Sc=!1,Ya=[],Br=null,zr=null,qr=null,Ol=new Map,Cl=new Map,Ur=[],vE="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 gm(r,o){switch(r){case"focusin":case"focusout":Br=null;break;case"dragenter":case"dragleave":zr=null;break;case"mouseover":case"mouseout":qr=null;break;case"pointerover":case"pointerout":Ol.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":Cl.delete(o.pointerId)}}function Pl(r,o,c,w,k,C){return r===null||r.nativeEvent!==C?(r={blockedOn:o,domEventName:c,eventSystemFlags:w,nativeEvent:C,targetContainers:[k]},o!==null&&(o=Ul(o),o!==null&&bc(o)),r):(r.eventSystemFlags|=w,o=r.targetContainers,k!==null&&o.indexOf(k)===-1&&o.push(k),r)}function yE(r,o,c,w,k){switch(o){case"focusin":return Br=Pl(Br,r,o,c,w,k),!0;case"dragenter":return zr=Pl(zr,r,o,c,w,k),!0;case"mouseover":return qr=Pl(qr,r,o,c,w,k),!0;case"pointerover":var C=k.pointerId;return Ol.set(C,Pl(Ol.get(C)||null,r,o,c,w,k)),!0;case"gotpointercapture":return C=k.pointerId,Cl.set(C,Pl(Cl.get(C)||null,r,o,c,w,k)),!0}return!1}function wm(r){var o=Ri(r.target);if(o!==null){var c=Ti(o);if(c!==null){if(o=c.tag,o===13){if(o=im(c),o!==null){r.blockedOn=o,ym(r.priority,function(){mm(c)});return}}else if(o===3&&c.stateNode.current.memoizedState.isDehydrated){r.blockedOn=c.tag===3?c.stateNode.containerInfo:null;return}}}r.blockedOn=null}function Xa(r){if(r.blockedOn!==null)return!1;for(var o=r.targetContainers;0<o.length;){var c=Ec(r.domEventName,r.eventSystemFlags,o[0],r.nativeEvent);if(c===null){c=r.nativeEvent;var w=new c.constructor(c.type,c);Ut=w,c.target.dispatchEvent(w),Ut=null}else return o=Ul(c),o!==null&&bc(o),r.blockedOn=c,!1;o.shift()}return!0}function bm(r,o,c){Xa(r)&&c.delete(o)}function gE(){Sc=!1,Br!==null&&Xa(Br)&&(Br=null),zr!==null&&Xa(zr)&&(zr=null),qr!==null&&Xa(qr)&&(qr=null),Ol.forEach(bm),Cl.forEach(bm)}function Al(r,o){r.blockedOn===o&&(r.blockedOn=null,Sc||(Sc=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,gE)))}function Tl(r){function o(k){return Al(k,r)}if(0<Ya.length){Al(Ya[0],r);for(var c=1;c<Ya.length;c++){var w=Ya[c];w.blockedOn===r&&(w.blockedOn=null)}}for(Br!==null&&Al(Br,r),zr!==null&&Al(zr,r),qr!==null&&Al(qr,r),Ol.forEach(o),Cl.forEach(o),c=0;c<Ur.length;c++)w=Ur[c],w.blockedOn===r&&(w.blockedOn=null);for(;0<Ur.length&&(c=Ur[0],c.blockedOn===null);)wm(c),c.blockedOn===null&&Ur.shift()}var po=E.ReactCurrentBatchConfig,Za=!0;function wE(r,o,c,w){var k=ot,C=po.transition;po.transition=null;try{ot=1,xc(r,o,c,w)}finally{ot=k,po.transition=C}}function bE(r,o,c,w){var k=ot,C=po.transition;po.transition=null;try{ot=4,xc(r,o,c,w)}finally{ot=k,po.transition=C}}function xc(r,o,c,w){if(Za){var k=Ec(r,o,c,w);if(k===null)zc(r,o,w,Ja,c),gm(r,w);else if(yE(k,r,o,c,w))w.stopPropagation();else if(gm(r,w),o&4&&-1<vE.indexOf(r)){for(;k!==null;){var C=Ul(k);if(C!==null&&pm(C),C=Ec(r,o,c,w),C===null&&zc(r,o,w,Ja,c),C===k)break;k=C}k!==null&&w.stopPropagation()}else zc(r,o,w,null,c)}}var Ja=null;function Ec(r,o,c,w){if(Ja=null,r=fc(w),r=Ri(r),r!==null)if(o=Ti(r),o===null)r=null;else if(c=o.tag,c===13){if(r=im(o),r!==null)return r;r=null}else if(c===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;r=null}else o!==r&&(r=null);return Ja=r,null}function Sm(r){switch(r){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(aE()){case vc:return 1;case cm:return 4;case $a:case sE:return 16;case fm:return 536870912;default:return 16}default:return 16}}var Vr=null,_c=null,es=null;function xm(){if(es)return es;var r,o=_c,c=o.length,w,k="value"in Vr?Vr.value:Vr.textContent,C=k.length;for(r=0;r<c&&o[r]===k[r];r++);var U=c-r;for(w=1;w<=U&&o[c-w]===k[C-w];w++);return es=k.slice(r,1<w?1-w:void 0)}function ts(r){var o=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&o===13&&(r=13)):r=o,r===10&&(r=13),32<=r||r===13?r:0}function ns(){return!0}function Em(){return!1}function mn(r){function o(c,w,k,C,U){this._reactName=c,this._targetInst=k,this.type=w,this.nativeEvent=C,this.target=U,this.currentTarget=null;for(var G in r)r.hasOwnProperty(G)&&(c=r[G],this[G]=c?c(C):C[G]);return this.isDefaultPrevented=(C.defaultPrevented!=null?C.defaultPrevented:C.returnValue===!1)?ns:Em,this.isPropagationStopped=Em,this}return T(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var c=this.nativeEvent;c&&(c.preventDefault?c.preventDefault():typeof c.returnValue!="unknown"&&(c.returnValue=!1),this.isDefaultPrevented=ns)},stopPropagation:function(){var c=this.nativeEvent;c&&(c.stopPropagation?c.stopPropagation():typeof c.cancelBubble!="unknown"&&(c.cancelBubble=!0),this.isPropagationStopped=ns)},persist:function(){},isPersistent:ns}),o}var mo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},kc=mn(mo),Rl=T({},mo,{view:0,detail:0}),SE=mn(Rl),Oc,Cc,Nl,rs=T({},Rl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ac,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==Nl&&(Nl&&r.type==="mousemove"?(Oc=r.screenX-Nl.screenX,Cc=r.screenY-Nl.screenY):Cc=Oc=0,Nl=r),Oc)},movementY:function(r){return"movementY"in r?r.movementY:Cc}}),_m=mn(rs),xE=T({},rs,{dataTransfer:0}),EE=mn(xE),_E=T({},Rl,{relatedTarget:0}),Pc=mn(_E),kE=T({},mo,{animationName:0,elapsedTime:0,pseudoElement:0}),OE=mn(kE),CE=T({},mo,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),PE=mn(CE),AE=T({},mo,{data:0}),km=mn(AE),TE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},RE={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"},NE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function IE(r){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(r):(r=NE[r])?!!o[r]:!1}function Ac(){return IE}var LE=T({},Rl,{key:function(r){if(r.key){var o=TE[r.key]||r.key;if(o!=="Unidentified")return o}return r.type==="keypress"?(r=ts(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?RE[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ac,charCode:function(r){return r.type==="keypress"?ts(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?ts(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),ME=mn(LE),DE=T({},rs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Om=mn(DE),jE=T({},Rl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ac}),FE=mn(jE),BE=T({},mo,{propertyName:0,elapsedTime:0,pseudoElement:0}),zE=mn(BE),qE=T({},rs,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),UE=mn(qE),VE=[9,13,27,32],Tc=u&&"CompositionEvent"in window,Il=null;u&&"documentMode"in document&&(Il=document.documentMode);var HE=u&&"TextEvent"in window&&!Il,Cm=u&&(!Tc||Il&&8<Il&&11>=Il),Pm=" ",Am=!1;function Tm(r,o){switch(r){case"keyup":return VE.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Rm(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var vo=!1;function $E(r,o){switch(r){case"compositionend":return Rm(o);case"keypress":return o.which!==32?null:(Am=!0,Pm);case"textInput":return r=o.data,r===Pm&&Am?null:r;default:return null}}function WE(r,o){if(vo)return r==="compositionend"||!Tc&&Tm(r,o)?(r=xm(),es=_c=Vr=null,vo=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return Cm&&o.locale!=="ko"?null:o.data;default:return null}}var KE={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 Nm(r){var o=r&&r.nodeName&&r.nodeName.toLowerCase();return o==="input"?!!KE[r.type]:o==="textarea"}function Im(r,o,c,w){Jp(w),o=ss(o,"onChange"),0<o.length&&(c=new kc("onChange","change",null,c,w),r.push({event:c,listeners:o}))}var Ll=null,Ml=null;function QE(r){Xm(r,0)}function is(r){var o=So(r);if(Oe(o))return r}function GE(r,o){if(r==="change")return o}var Lm=!1;if(u){var Rc;if(u){var Nc="oninput"in document;if(!Nc){var Mm=document.createElement("div");Mm.setAttribute("oninput","return;"),Nc=typeof Mm.oninput=="function"}Rc=Nc}else Rc=!1;Lm=Rc&&(!document.documentMode||9<document.documentMode)}function Dm(){Ll&&(Ll.detachEvent("onpropertychange",jm),Ml=Ll=null)}function jm(r){if(r.propertyName==="value"&&is(Ml)){var o=[];Im(o,Ml,r,fc(r)),rm(QE,o)}}function YE(r,o,c){r==="focusin"?(Dm(),Ll=o,Ml=c,Ll.attachEvent("onpropertychange",jm)):r==="focusout"&&Dm()}function XE(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return is(Ml)}function ZE(r,o){if(r==="click")return is(o)}function JE(r,o){if(r==="input"||r==="change")return is(o)}function e_(r,o){return r===o&&(r!==0||1/r===1/o)||r!==r&&o!==o}var zn=typeof Object.is=="function"?Object.is:e_;function Dl(r,o){if(zn(r,o))return!0;if(typeof r!="object"||r===null||typeof o!="object"||o===null)return!1;var c=Object.keys(r),w=Object.keys(o);if(c.length!==w.length)return!1;for(w=0;w<c.length;w++){var k=c[w];if(!h.call(o,k)||!zn(r[k],o[k]))return!1}return!0}function Fm(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function Bm(r,o){var c=Fm(r);r=0;for(var w;c;){if(c.nodeType===3){if(w=r+c.textContent.length,r<=o&&w>=o)return{node:c,offset:o-r};r=w}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=Fm(c)}}function zm(r,o){return r&&o?r===o?!0:r&&r.nodeType===3?!1:o&&o.nodeType===3?zm(r,o.parentNode):"contains"in r?r.contains(o):r.compareDocumentPosition?!!(r.compareDocumentPosition(o)&16):!1:!1}function qm(){for(var r=window,o=Re();o instanceof r.HTMLIFrameElement;){try{var c=typeof o.contentWindow.location.href=="string"}catch{c=!1}if(c)r=o.contentWindow;else break;o=Re(r.document)}return o}function Ic(r){var o=r&&r.nodeName&&r.nodeName.toLowerCase();return o&&(o==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||o==="textarea"||r.contentEditable==="true")}function t_(r){var o=qm(),c=r.focusedElem,w=r.selectionRange;if(o!==c&&c&&c.ownerDocument&&zm(c.ownerDocument.documentElement,c)){if(w!==null&&Ic(c)){if(o=w.start,r=w.end,r===void 0&&(r=o),"selectionStart"in c)c.selectionStart=o,c.selectionEnd=Math.min(r,c.value.length);else if(r=(o=c.ownerDocument||document)&&o.defaultView||window,r.getSelection){r=r.getSelection();var k=c.textContent.length,C=Math.min(w.start,k);w=w.end===void 0?C:Math.min(w.end,k),!r.extend&&C>w&&(k=w,w=C,C=k),k=Bm(c,C);var U=Bm(c,w);k&&U&&(r.rangeCount!==1||r.anchorNode!==k.node||r.anchorOffset!==k.offset||r.focusNode!==U.node||r.focusOffset!==U.offset)&&(o=o.createRange(),o.setStart(k.node,k.offset),r.removeAllRanges(),C>w?(r.addRange(o),r.extend(U.node,U.offset)):(o.setEnd(U.node,U.offset),r.addRange(o)))}}for(o=[],r=c;r=r.parentNode;)r.nodeType===1&&o.push({element:r,left:r.scrollLeft,top:r.scrollTop});for(typeof c.focus=="function"&&c.focus(),c=0;c<o.length;c++)r=o[c],r.element.scrollLeft=r.left,r.element.scrollTop=r.top}}var n_=u&&"documentMode"in document&&11>=document.documentMode,yo=null,Lc=null,jl=null,Mc=!1;function Um(r,o,c){var w=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;Mc||yo==null||yo!==Re(w)||(w=yo,"selectionStart"in w&&Ic(w)?w={start:w.selectionStart,end:w.selectionEnd}:(w=(w.ownerDocument&&w.ownerDocument.defaultView||window).getSelection(),w={anchorNode:w.anchorNode,anchorOffset:w.anchorOffset,focusNode:w.focusNode,focusOffset:w.focusOffset}),jl&&Dl(jl,w)||(jl=w,w=ss(Lc,"onSelect"),0<w.length&&(o=new kc("onSelect","select",null,o,c),r.push({event:o,listeners:w}),o.target=yo)))}function os(r,o){var c={};return c[r.toLowerCase()]=o.toLowerCase(),c["Webkit"+r]="webkit"+o,c["Moz"+r]="moz"+o,c}var go={animationend:os("Animation","AnimationEnd"),animationiteration:os("Animation","AnimationIteration"),animationstart:os("Animation","AnimationStart"),transitionend:os("Transition","TransitionEnd")},Dc={},Vm={};u&&(Vm=document.createElement("div").style,"AnimationEvent"in window||(delete go.animationend.animation,delete go.animationiteration.animation,delete go.animationstart.animation),"TransitionEvent"in window||delete go.transitionend.transition);function ls(r){if(Dc[r])return Dc[r];if(!go[r])return r;var o=go[r],c;for(c in o)if(o.hasOwnProperty(c)&&c in Vm)return Dc[r]=o[c];return r}var Hm=ls("animationend"),$m=ls("animationiteration"),Wm=ls("animationstart"),Km=ls("transitionend"),Qm=new Map,Gm="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Hr(r,o){Qm.set(r,o),a(o,[r])}for(var jc=0;jc<Gm.length;jc++){var Fc=Gm[jc],r_=Fc.toLowerCase(),i_=Fc[0].toUpperCase()+Fc.slice(1);Hr(r_,"on"+i_)}Hr(Hm,"onAnimationEnd"),Hr($m,"onAnimationIteration"),Hr(Wm,"onAnimationStart"),Hr("dblclick","onDoubleClick"),Hr("focusin","onFocus"),Hr("focusout","onBlur"),Hr(Km,"onTransitionEnd"),s("onMouseEnter",["mouseout","mouseover"]),s("onMouseLeave",["mouseout","mouseover"]),s("onPointerEnter",["pointerout","pointerover"]),s("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),o_=new Set("cancel close invalid load scroll toggle".split(" ").concat(Fl));function Ym(r,o,c){var w=r.type||"unknown-event";r.currentTarget=c,rE(w,o,void 0,r),r.currentTarget=null}function Xm(r,o){o=(o&4)!==0;for(var c=0;c<r.length;c++){var w=r[c],k=w.event;w=w.listeners;e:{var C=void 0;if(o)for(var U=w.length-1;0<=U;U--){var G=w[U],oe=G.instance,de=G.currentTarget;if(G=G.listener,oe!==C&&k.isPropagationStopped())break e;Ym(k,G,de),C=oe}else for(U=0;U<w.length;U++){if(G=w[U],oe=G.instance,de=G.currentTarget,G=G.listener,oe!==C&&k.isPropagationStopped())break e;Ym(k,G,de),C=oe}}}if(Ha)throw r=mc,Ha=!1,mc=null,r}function ct(r,o){var c=o[Wc];c===void 0&&(c=o[Wc]=new Set);var w=r+"__bubble";c.has(w)||(Zm(o,r,2,!1),c.add(w))}function Bc(r,o,c){var w=0;o&&(w|=4),Zm(c,r,w,o)}var as="_reactListening"+Math.random().toString(36).slice(2);function Bl(r){if(!r[as]){r[as]=!0,i.forEach(function(c){c!=="selectionchange"&&(o_.has(c)||Bc(c,!1,r),Bc(c,!0,r))});var o=r.nodeType===9?r:r.ownerDocument;o===null||o[as]||(o[as]=!0,Bc("selectionchange",!1,o))}}function Zm(r,o,c,w){switch(Sm(o)){case 1:var k=wE;break;case 4:k=bE;break;default:k=xc}c=k.bind(null,o,c,r),k=void 0,!pc||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(k=!0),w?k!==void 0?r.addEventListener(o,c,{capture:!0,passive:k}):r.addEventListener(o,c,!0):k!==void 0?r.addEventListener(o,c,{passive:k}):r.addEventListener(o,c,!1)}function zc(r,o,c,w,k){var C=w;if((o&1)===0&&(o&2)===0&&w!==null)e:for(;;){if(w===null)return;var U=w.tag;if(U===3||U===4){var G=w.stateNode.containerInfo;if(G===k||G.nodeType===8&&G.parentNode===k)break;if(U===4)for(U=w.return;U!==null;){var oe=U.tag;if((oe===3||oe===4)&&(oe=U.stateNode.containerInfo,oe===k||oe.nodeType===8&&oe.parentNode===k))return;U=U.return}for(;G!==null;){if(U=Ri(G),U===null)return;if(oe=U.tag,oe===5||oe===6){w=C=U;continue e}G=G.parentNode}}w=w.return}rm(function(){var de=C,Se=fc(c),Ee=[];e:{var be=Qm.get(r);if(be!==void 0){var Pe=kc,Ne=r;switch(r){case"keypress":if(ts(c)===0)break e;case"keydown":case"keyup":Pe=ME;break;case"focusin":Ne="focus",Pe=Pc;break;case"focusout":Ne="blur",Pe=Pc;break;case"beforeblur":case"afterblur":Pe=Pc;break;case"click":if(c.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Pe=_m;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Pe=EE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Pe=FE;break;case Hm:case $m:case Wm:Pe=OE;break;case Km:Pe=zE;break;case"scroll":Pe=SE;break;case"wheel":Pe=UE;break;case"copy":case"cut":case"paste":Pe=PE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Pe=Om}var Ie=(o&4)!==0,bt=!Ie&&r==="scroll",ue=Ie?be!==null?be+"Capture":null:be;Ie=[];for(var ae=de,fe;ae!==null;){fe=ae;var ke=fe.stateNode;if(fe.tag===5&&ke!==null&&(fe=ke,ue!==null&&(ke=Sl(ae,ue),ke!=null&&Ie.push(zl(ae,ke,fe)))),bt)break;ae=ae.return}0<Ie.length&&(be=new Pe(be,Ne,null,c,Se),Ee.push({event:be,listeners:Ie}))}}if((o&7)===0){e:{if(be=r==="mouseover"||r==="pointerover",Pe=r==="mouseout"||r==="pointerout",be&&c!==Ut&&(Ne=c.relatedTarget||c.fromElement)&&(Ri(Ne)||Ne[xr]))break e;if((Pe||be)&&(be=Se.window===Se?Se:(be=Se.ownerDocument)?be.defaultView||be.parentWindow:window,Pe?(Ne=c.relatedTarget||c.toElement,Pe=de,Ne=Ne?Ri(Ne):null,Ne!==null&&(bt=Ti(Ne),Ne!==bt||Ne.tag!==5&&Ne.tag!==6)&&(Ne=null)):(Pe=null,Ne=de),Pe!==Ne)){if(Ie=_m,ke="onMouseLeave",ue="onMouseEnter",ae="mouse",(r==="pointerout"||r==="pointerover")&&(Ie=Om,ke="onPointerLeave",ue="onPointerEnter",ae="pointer"),bt=Pe==null?be:So(Pe),fe=Ne==null?be:So(Ne),be=new Ie(ke,ae+"leave",Pe,c,Se),be.target=bt,be.relatedTarget=fe,ke=null,Ri(Se)===de&&(Ie=new Ie(ue,ae+"enter",Ne,c,Se),Ie.target=fe,Ie.relatedTarget=bt,ke=Ie),bt=ke,Pe&&Ne)t:{for(Ie=Pe,ue=Ne,ae=0,fe=Ie;fe;fe=wo(fe))ae++;for(fe=0,ke=ue;ke;ke=wo(ke))fe++;for(;0<ae-fe;)Ie=wo(Ie),ae--;for(;0<fe-ae;)ue=wo(ue),fe--;for(;ae--;){if(Ie===ue||ue!==null&&Ie===ue.alternate)break t;Ie=wo(Ie),ue=wo(ue)}Ie=null}else Ie=null;Pe!==null&&Jm(Ee,be,Pe,Ie,!1),Ne!==null&&bt!==null&&Jm(Ee,bt,Ne,Ie,!0)}}e:{if(be=de?So(de):window,Pe=be.nodeName&&be.nodeName.toLowerCase(),Pe==="select"||Pe==="input"&&be.type==="file")var Me=GE;else if(Nm(be))if(Lm)Me=JE;else{Me=XE;var ze=YE}else(Pe=be.nodeName)&&Pe.toLowerCase()==="input"&&(be.type==="checkbox"||be.type==="radio")&&(Me=ZE);if(Me&&(Me=Me(r,de))){Im(Ee,Me,c,Se);break e}ze&&ze(r,be,de),r==="focusout"&&(ze=be._wrapperState)&&ze.controlled&&be.type==="number"&&pe(be,"number",be.value)}switch(ze=de?So(de):window,r){case"focusin":(Nm(ze)||ze.contentEditable==="true")&&(yo=ze,Lc=de,jl=null);break;case"focusout":jl=Lc=yo=null;break;case"mousedown":Mc=!0;break;case"contextmenu":case"mouseup":case"dragend":Mc=!1,Um(Ee,c,Se);break;case"selectionchange":if(n_)break;case"keydown":case"keyup":Um(Ee,c,Se)}var qe;if(Tc)e:{switch(r){case"compositionstart":var Ve="onCompositionStart";break e;case"compositionend":Ve="onCompositionEnd";break e;case"compositionupdate":Ve="onCompositionUpdate";break e}Ve=void 0}else vo?Tm(r,c)&&(Ve="onCompositionEnd"):r==="keydown"&&c.keyCode===229&&(Ve="onCompositionStart");Ve&&(Cm&&c.locale!=="ko"&&(vo||Ve!=="onCompositionStart"?Ve==="onCompositionEnd"&&vo&&(qe=xm()):(Vr=Se,_c="value"in Vr?Vr.value:Vr.textContent,vo=!0)),ze=ss(de,Ve),0<ze.length&&(Ve=new km(Ve,r,null,c,Se),Ee.push({event:Ve,listeners:ze}),qe?Ve.data=qe:(qe=Rm(c),qe!==null&&(Ve.data=qe)))),(qe=HE?$E(r,c):WE(r,c))&&(de=ss(de,"onBeforeInput"),0<de.length&&(Se=new km("onBeforeInput","beforeinput",null,c,Se),Ee.push({event:Se,listeners:de}),Se.data=qe))}Xm(Ee,o)})}function zl(r,o,c){return{instance:r,listener:o,currentTarget:c}}function ss(r,o){for(var c=o+"Capture",w=[];r!==null;){var k=r,C=k.stateNode;k.tag===5&&C!==null&&(k=C,C=Sl(r,c),C!=null&&w.unshift(zl(r,C,k)),C=Sl(r,o),C!=null&&w.push(zl(r,C,k))),r=r.return}return w}function wo(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5);return r||null}function Jm(r,o,c,w,k){for(var C=o._reactName,U=[];c!==null&&c!==w;){var G=c,oe=G.alternate,de=G.stateNode;if(oe!==null&&oe===w)break;G.tag===5&&de!==null&&(G=de,k?(oe=Sl(c,C),oe!=null&&U.unshift(zl(c,oe,G))):k||(oe=Sl(c,C),oe!=null&&U.push(zl(c,oe,G)))),c=c.return}U.length!==0&&r.push({event:o,listeners:U})}var l_=/\r\n?/g,a_=/\u0000|\uFFFD/g;function ev(r){return(typeof r=="string"?r:""+r).replace(l_,`
38`).replace(a_,"")}function us(r,o,c){if(o=ev(o),ev(r)!==o&&c)throw Error(n(425))}function cs(){}var qc=null,Uc=null;function Vc(r,o){return r==="textarea"||r==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var Hc=typeof setTimeout=="function"?setTimeout:void 0,s_=typeof clearTimeout=="function"?clearTimeout:void 0,tv=typeof Promise=="function"?Promise:void 0,u_=typeof queueMicrotask=="function"?queueMicrotask:typeof tv<"u"?function(r){return tv.resolve(null).then(r).catch(c_)}:Hc;function c_(r){setTimeout(function(){throw r})}function $c(r,o){var c=o,w=0;do{var k=c.nextSibling;if(r.removeChild(c),k&&k.nodeType===8)if(c=k.data,c==="/$"){if(w===0){r.removeChild(k),Tl(o);return}w--}else c!=="$"&&c!=="$?"&&c!=="$!"||w++;c=k}while(c);Tl(o)}function $r(r){for(;r!=null;r=r.nextSibling){var o=r.nodeType;if(o===1||o===3)break;if(o===8){if(o=r.data,o==="$"||o==="$!"||o==="$?")break;if(o==="/$")return null}}return r}function nv(r){r=r.previousSibling;for(var o=0;r;){if(r.nodeType===8){var c=r.data;if(c==="$"||c==="$!"||c==="$?"){if(o===0)return r;o--}else c==="/$"&&o++}r=r.previousSibling}return null}var bo=Math.random().toString(36).slice(2),rr="__reactFiber$"+bo,ql="__reactProps$"+bo,xr="__reactContainer$"+bo,Wc="__reactEvents$"+bo,f_="__reactListeners$"+bo,d_="__reactHandles$"+bo;function Ri(r){var o=r[rr];if(o)return o;for(var c=r.parentNode;c;){if(o=c[xr]||c[rr]){if(c=o.alternate,o.child!==null||c!==null&&c.child!==null)for(r=nv(r);r!==null;){if(c=r[rr])return c;r=nv(r)}return o}r=c,c=r.parentNode}return null}function Ul(r){return r=r[rr]||r[xr],!r||r.tag!==5&&r.tag!==6&&r.tag!==13&&r.tag!==3?null:r}function So(r){if(r.tag===5||r.tag===6)return r.stateNode;throw Error(n(33))}function fs(r){return r[ql]||null}var Kc=[],xo=-1;function Wr(r){return{current:r}}function ft(r){0>xo||(r.current=Kc[xo],Kc[xo]=null,xo--)}function at(r,o){xo++,Kc[xo]=r.current,r.current=o}var Kr={},Vt=Wr(Kr),tn=Wr(!1),Ni=Kr;function Eo(r,o){var c=r.type.contextTypes;if(!c)return Kr;var w=r.stateNode;if(w&&w.__reactInternalMemoizedUnmaskedChildContext===o)return w.__reactInternalMemoizedMaskedChildContext;var k={},C;for(C in c)k[C]=o[C];return w&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=o,r.__reactInternalMemoizedMaskedChildContext=k),k}function nn(r){return r=r.childContextTypes,r!=null}function ds(){ft(tn),ft(Vt)}function rv(r,o,c){if(Vt.current!==Kr)throw Error(n(168));at(Vt,o),at(tn,c)}function iv(r,o,c){var w=r.stateNode;if(o=o.childContextTypes,typeof w.getChildContext!="function")return c;w=w.getChildContext();for(var k in w)if(!(k in o))throw Error(n(108,K(r)||"Unknown",k));return T({},c,w)}function hs(r){return r=(r=r.stateNode)&&r.__reactInternalMemoizedMergedChildContext||Kr,Ni=Vt.current,at(Vt,r),at(tn,tn.current),!0}function ov(r,o,c){var w=r.stateNode;if(!w)throw Error(n(169));c?(r=iv(r,o,Ni),w.__reactInternalMemoizedMergedChildContext=r,ft(tn),ft(Vt),at(Vt,r)):ft(tn),at(tn,c)}var Er=null,ps=!1,Qc=!1;function lv(r){Er===null?Er=[r]:Er.push(r)}function h_(r){ps=!0,lv(r)}function Qr(){if(!Qc&&Er!==null){Qc=!0;var r=0,o=ot;try{var c=Er;for(ot=1;r<c.length;r++){var w=c[r];do w=w(!0);while(w!==null)}Er=null,ps=!1}catch(k){throw Er!==null&&(Er=Er.slice(r+1)),sm(vc,Qr),k}finally{ot=o,Qc=!1}}return null}var _o=[],ko=0,ms=null,vs=0,Cn=[],Pn=0,Ii=null,_r=1,kr="";function Li(r,o){_o[ko++]=vs,_o[ko++]=ms,ms=r,vs=o}function av(r,o,c){Cn[Pn++]=_r,Cn[Pn++]=kr,Cn[Pn++]=Ii,Ii=r;var w=_r;r=kr;var k=32-Bn(w)-1;w&=~(1<<k),c+=1;var C=32-Bn(o)+k;if(30<C){var U=k-k%5;C=(w&(1<<U)-1).toString(32),w>>=U,k-=U,_r=1<<32-Bn(o)+k|c<<k|w,kr=C+r}else _r=1<<C|c<<k|w,kr=r}function Gc(r){r.return!==null&&(Li(r,1),av(r,1,0))}function Yc(r){for(;r===ms;)ms=_o[--ko],_o[ko]=null,vs=_o[--ko],_o[ko]=null;for(;r===Ii;)Ii=Cn[--Pn],Cn[Pn]=null,kr=Cn[--Pn],Cn[Pn]=null,_r=Cn[--Pn],Cn[Pn]=null}var vn=null,yn=null,dt=!1,qn=null;function sv(r,o){var c=Nn(5,null,null,0);c.elementType="DELETED",c.stateNode=o,c.return=r,o=r.deletions,o===null?(r.deletions=[c],r.flags|=16):o.push(c)}function uv(r,o){switch(r.tag){case 5:var c=r.type;return o=o.nodeType!==1||c.toLowerCase()!==o.nodeName.toLowerCase()?null:o,o!==null?(r.stateNode=o,vn=r,yn=$r(o.firstChild),!0):!1;case 6:return o=r.pendingProps===""||o.nodeType!==3?null:o,o!==null?(r.stateNode=o,vn=r,yn=null,!0):!1;case 13:return o=o.nodeType!==8?null:o,o!==null?(c=Ii!==null?{id:_r,overflow:kr}:null,r.memoizedState={dehydrated:o,treeContext:c,retryLane:1073741824},c=Nn(18,null,null,0),c.stateNode=o,c.return=r,r.child=c,vn=r,yn=null,!0):!1;default:return!1}}function Xc(r){return(r.mode&1)!==0&&(r.flags&128)===0}function Zc(r){if(dt){var o=yn;if(o){var c=o;if(!uv(r,o)){if(Xc(r))throw Error(n(418));o=$r(c.nextSibling);var w=vn;o&&uv(r,o)?sv(w,c):(r.flags=r.flags&-4097|2,dt=!1,vn=r)}}else{if(Xc(r))throw Error(n(418));r.flags=r.flags&-4097|2,dt=!1,vn=r}}}function cv(r){for(r=r.return;r!==null&&r.tag!==5&&r.tag!==3&&r.tag!==13;)r=r.return;vn=r}function ys(r){if(r!==vn)return!1;if(!dt)return cv(r),dt=!0,!1;var o;if((o=r.tag!==3)&&!(o=r.tag!==5)&&(o=r.type,o=o!=="head"&&o!=="body"&&!Vc(r.type,r.memoizedProps)),o&&(o=yn)){if(Xc(r))throw fv(),Error(n(418));for(;o;)sv(r,o),o=$r(o.nextSibling)}if(cv(r),r.tag===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(n(317));e:{for(r=r.nextSibling,o=0;r;){if(r.nodeType===8){var c=r.data;if(c==="/$"){if(o===0){yn=$r(r.nextSibling);break e}o--}else c!=="$"&&c!=="$!"&&c!=="$?"||o++}r=r.nextSibling}yn=null}}else yn=vn?$r(r.stateNode.nextSibling):null;return!0}function fv(){for(var r=yn;r;)r=$r(r.nextSibling)}function Oo(){yn=vn=null,dt=!1}
vendor: 4,499 bytes, line 38
38function Jc(r){qn===null?qn=[r]:qn.push(r)}var p_=E.ReactCurrentBatchConfig;function Vl(r,o,c){if(r=c.ref,r!==null&&typeof r!="function"&&typeof r!="object"){if(c._owner){if(c=c._owner,c){if(c.tag!==1)throw Error(n(309));var w=c.stateNode}if(!w)throw Error(n(147,r));var k=w,C=""+r;return o!==null&&o.ref!==null&&typeof o.ref=="function"&&o.ref._stringRef===C?o.ref:(o=function(U){var G=k.refs;U===null?delete G[C]:G[C]=U},o._stringRef=C,o)}if(typeof r!="string")throw Error(n(284));if(!c._owner)throw Error(n(290,r))}return r}function gs(r,o){throw r=Object.prototype.toString.call(o),Error(n(31,r==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":r))}function dv(r){var o=r._init;return o(r._payload)}function hv(r){function o(ue,ae){if(r){var fe=ue.deletions;fe===null?(ue.deletions=[ae],ue.flags|=16):fe.push(ae)}}function c(ue,ae){if(!r)return null;for(;ae!==null;)o(ue,ae),ae=ae.sibling;return null}function w(ue,ae){for(ue=new Map;ae!==null;)ae.key!==null?ue.set(ae.key,ae):ue.set(ae.index,ae),ae=ae.sibling;return ue}function k(ue,ae){return ue=ni(ue,ae),ue.index=0,ue.sibling=null,ue}function C(ue,ae,fe){return ue.index=fe,r?(fe=ue.alternate,fe!==null?(fe=fe.index,fe<ae?(ue.flags|=2,ae):fe):(ue.flags|=2,ae)):(ue.flags|=1048576,ae)}function U(ue){return r&&ue.alternate===null&&(ue.flags|=2),ue}function G(ue,ae,fe,ke){return ae===null||ae.tag!==6?(ae=$f(fe,ue.mode,ke),ae.return=ue,ae):(ae=k(ae,fe),ae.return=ue,ae)}function oe(ue,ae,fe,ke){var Me=fe.type;return Me===I?Se(ue,ae,fe.props.children,ke,fe.key):ae!==null&&(ae.elementType===Me||typeof Me=="object"&&Me!==null&&Me.$$typeof===Q&&dv(Me)===ae.type)?(ke=k(ae,fe.props),ke.ref=Vl(ue,ae,fe),ke.return=ue,ke):(ke=Us(fe.type,fe.key,fe.props,null,ue.mode,ke),ke.ref=Vl(ue,ae,fe),ke.return=ue,ke)}function de(ue,ae,fe,ke){return ae===null||ae.tag!==4||ae.stateNode.containerInfo!==fe.containerInfo||ae.stateNode.implementation!==fe.implementation?(ae=Wf(fe,ue.mode,ke),ae.return=ue,ae):(ae=k(ae,fe.children||[]),ae.return=ue,ae)}function Se(ue,ae,fe,ke,Me){return ae===null||ae.tag!==7?(ae=Ui(fe,ue.mode,ke,Me),ae.return=ue,ae):(ae=k(ae,fe),ae.return=ue,ae)}function Ee(ue,ae,fe){if(typeof ae=="string"&&ae!==""||typeof ae=="number")return ae=$f(""+ae,ue.mode,fe),ae.return=ue,ae;if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case O:return fe=Us(ae.type,ae.key,ae.props,null,ue.mode,fe),fe.ref=Vl(ue,null,ae),fe.return=ue,fe;case R:return ae=Wf(ae,ue.mode,fe),ae.return=ue,ae;case Q:var ke=ae._init;return Ee(ue,ke(ae._payload),fe)}if(W(ae)||$(ae))return ae=Ui(ae,ue.mode,fe,null),ae.return=ue,ae;gs(ue,ae)}return null}function be(ue,ae,fe,ke){var Me=ae!==null?ae.key:null;if(typeof fe=="string"&&fe!==""||typeof fe=="number")return Me!==null?null:G(ue,ae,""+fe,ke);if(typeof fe=="object"&&fe!==null){switch(fe.$$typeof){case O:return fe.key===Me?oe(ue,ae,fe,ke):null;case R:return fe.key===Me?de(ue,ae,fe,ke):null;case Q:return Me=fe._init,be(ue,ae,Me(fe._payload),ke)}if(W(fe)||$(fe))return Me!==null?null:Se(ue,ae,fe,ke,null);gs(ue,fe)}return null}function Pe(ue,ae,fe,ke,Me){if(typeof ke=="string"&&ke!==""||typeof ke=="number")return ue=ue.get(fe)||null,G(ae,ue,""+ke,Me);if(typeof ke=="object"&&ke!==null){switch(ke.$$typeof){case O:return ue=ue.get(ke.key===null?fe:ke.key)||null,oe(ae,ue,ke,Me);case R:return ue=ue.get(ke.key===null?fe:ke.key)||null,de(ae,ue,ke,Me);case Q:var ze=ke._init;return Pe(ue,ae,fe,ze(ke._payload),Me)}if(W(ke)||$(ke))return ue=ue.get(fe)||null,Se(ae,ue,ke,Me,null);gs(ae,ke)}return null}function Ne(ue,ae,fe,ke){for(var Me=null,ze=null,qe=ae,Ve=ae=0,It=null;qe!==null&&Ve<fe.length;Ve++){qe.index>Ve?(It=qe,qe=null):It=qe.sibling;var et=be(ue,qe,fe[Ve],ke);if(et===null){qe===null&&(qe=It);break}r&&qe&&et.alternate===null&&o(ue,qe),ae=C(et,ae,Ve),ze===null?Me=et:ze.sibling=et,ze=et,qe=It}if(Ve===fe.length)return c(ue,qe),dt&&Li(ue,Ve),Me;if(qe===null){for(;Ve<fe.length;Ve++)qe=Ee(ue,fe[Ve],ke),qe!==null&&(ae=C(qe,ae,Ve),ze===null?Me=qe:ze.sibling=qe,ze=qe);return dt&&Li(ue,Ve),Me}for(qe=w(ue,qe);Ve<fe.length;Ve++)It=Pe(qe,ue,Ve,fe[Ve],ke),It!==null&&(r&&It.alternate!==null&&qe.delete(It.key===null?Ve:It.key),ae=C(It,ae,Ve),ze===null?Me=It:ze.sibling=It,ze=It);return r&&qe.forEach(function(ri){return o(ue,ri)}),dt&&Li(ue,Ve),Me}function Ie(ue,ae,fe,ke){var Me=$(fe);if(typeof Me!="function")throw Error(n(150));if(fe=Me.call(fe),fe==null)throw Error(n(151));for(var ze=Me=null,qe=ae,Ve=ae=0,It=null,et=fe.next();qe!==null&&!et.done;Ve++,et=fe.next()){qe.index>
vendor: 11,331 bytes, line 38
38Ve?(It=qe,qe=null):It=qe.sibling;var ri=be(ue,qe,et.value,ke);if(ri===null){qe===null&&(qe=It);break}r&&qe&&ri.alternate===null&&o(ue,qe),ae=C(ri,ae,Ve),ze===null?Me=ri:ze.sibling=ri,ze=ri,qe=It}if(et.done)return c(ue,qe),dt&&Li(ue,Ve),Me;if(qe===null){for(;!et.done;Ve++,et=fe.next())et=Ee(ue,et.value,ke),et!==null&&(ae=C(et,ae,Ve),ze===null?Me=et:ze.sibling=et,ze=et);return dt&&Li(ue,Ve),Me}for(qe=w(ue,qe);!et.done;Ve++,et=fe.next())et=Pe(qe,ue,Ve,et.value,ke),et!==null&&(r&&et.alternate!==null&&qe.delete(et.key===null?Ve:et.key),ae=C(et,ae,Ve),ze===null?Me=et:ze.sibling=et,ze=et);return r&&qe.forEach(function(K_){return o(ue,K_)}),dt&&Li(ue,Ve),Me}function bt(ue,ae,fe,ke){if(typeof fe=="object"&&fe!==null&&fe.type===I&&fe.key===null&&(fe=fe.props.children),typeof fe=="object"&&fe!==null){switch(fe.$$typeof){case O:e:{for(var Me=fe.key,ze=ae;ze!==null;){if(ze.key===Me){if(Me=fe.type,Me===I){if(ze.tag===7){c(ue,ze.sibling),ae=k(ze,fe.props.children),ae.return=ue,ue=ae;break e}}else if(ze.elementType===Me||typeof Me=="object"&&Me!==null&&Me.$$typeof===Q&&dv(Me)===ze.type){c(ue,ze.sibling),ae=k(ze,fe.props),ae.ref=Vl(ue,ze,fe),ae.return=ue,ue=ae;break e}c(ue,ze);break}else o(ue,ze);ze=ze.sibling}fe.type===I?(ae=Ui(fe.props.children,ue.mode,ke,fe.key),ae.return=ue,ue=ae):(ke=Us(fe.type,fe.key,fe.props,null,ue.mode,ke),ke.ref=Vl(ue,ae,fe),ke.return=ue,ue=ke)}return U(ue);case R:e:{for(ze=fe.key;ae!==null;){if(ae.key===ze)if(ae.tag===4&&ae.stateNode.containerInfo===fe.containerInfo&&ae.stateNode.implementation===fe.implementation){c(ue,ae.sibling),ae=k(ae,fe.children||[]),ae.return=ue,ue=ae;break e}else{c(ue,ae);break}else o(ue,ae);ae=ae.sibling}ae=Wf(fe,ue.mode,ke),ae.return=ue,ue=ae}return U(ue);case Q:return ze=fe._init,bt(ue,ae,ze(fe._payload),ke)}if(W(fe))return Ne(ue,ae,fe,ke);if($(fe))return Ie(ue,ae,fe,ke);gs(ue,fe)}return typeof fe=="string"&&fe!==""||typeof fe=="number"?(fe=""+fe,ae!==null&&ae.tag===6?(c(ue,ae.sibling),ae=k(ae,fe),ae.return=ue,ue=ae):(c(ue,ae),ae=$f(fe,ue.mode,ke),ae.return=ue,ue=ae),U(ue)):c(ue,ae)}return bt}var Co=hv(!0),pv=hv(!1),ws=Wr(null),bs=null,Po=null,ef=null;function tf(){ef=Po=bs=null}function nf(r){var o=ws.current;ft(ws),r._currentValue=o}function rf(r,o,c){for(;r!==null;){var w=r.alternate;if((r.childLanes&o)!==o?(r.childLanes|=o,w!==null&&(w.childLanes|=o)):w!==null&&(w.childLanes&o)!==o&&(w.childLanes|=o),r===c)break;r=r.return}}function Ao(r,o){bs=r,ef=Po=null,r=r.dependencies,r!==null&&r.firstContext!==null&&((r.lanes&o)!==0&&(rn=!0),r.firstContext=null)}function An(r){var o=r._currentValue;if(ef!==r)if(r={context:r,memoizedValue:o,next:null},Po===null){if(bs===null)throw Error(n(308));Po=r,bs.dependencies={lanes:0,firstContext:r}}else Po=Po.next=r;return o}var Mi=null;function of(r){Mi===null?Mi=[r]:Mi.push(r)}function mv(r,o,c,w){var k=o.interleaved;return k===null?(c.next=c,of(o)):(c.next=k.next,k.next=c),o.interleaved=c,Or(r,w)}function Or(r,o){r.lanes|=o;var c=r.alternate;for(c!==null&&(c.lanes|=o),c=r,r=r.return;r!==null;)r.childLanes|=o,c=r.alternate,c!==null&&(c.childLanes|=o),c=r,r=r.return;return c.tag===3?c.stateNode:null}var Gr=!1;function lf(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function vv(r,o){r=r.updateQueue,o.updateQueue===r&&(o.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,effects:r.effects})}function Cr(r,o){return{eventTime:r,lane:o,tag:0,payload:null,callback:null,next:null}}function Yr(r,o,c){var w=r.updateQueue;if(w===null)return null;if(w=w.shared,(Je&2)!==0){var k=w.pending;return k===null?o.next=o:(o.next=k.next,k.next=o),w.pending=o,Or(r,c)}return k=w.interleaved,k===null?(o.next=o,of(w)):(o.next=k.next,k.next=o),w.interleaved=o,Or(r,c)}function Ss(r,o,c){if(o=o.updateQueue,o!==null&&(o=o.shared,(c&4194240)!==0)){var w=o.lanes;w&=r.pendingLanes,c|=w,o.lanes=c,wc(r,c)}}function yv(r,o){var c=r.updateQueue,w=r.alternate;if(w!==null&&(w=w.updateQueue,c===w)){var k=null,C=null;if(c=c.firstBaseUpdate,c!==null){do{var U={eventTime:c.eventTime,lane:c.lane,tag:c.tag,payload:c.payload,callback:c.callback,next:null};C===null?k=C=U:C=C.next=U,c=c.next}while(c!==null);C===null?k=C=o:C=C.next=o}else k=C=o;c={baseState:w.baseState,firstBaseUpdate:k,lastBaseUpdate:C,shared:w.shared,effects:w.effects},r.updateQueue=c;return}r=c.lastBaseUpdate,r===null?c.firstBaseUpdate=o:r.next=o,c.lastBaseUpdate=o}function xs(r,o,c,w){var k=r.updateQueue;Gr=!1;var C=k.firstBaseUpdate,U=k.lastBaseUpdate,G=k.shared.pending;if(G!==null){k.shared.pending=null;var oe=G,de=oe.next;oe.next=null,U===null?C=de:U.next=de,U=oe;var Se=r.alternate;Se!==null&&(Se=Se.updateQueue,G=Se.lastBaseUpdate,G!==U&&(G===null?Se.firstBaseUpdate=de:G.next=de,Se.lastBaseUpdate=oe))}if(C!==null){var Ee=k.baseState;U=0,Se=de=oe=null,G=C;do{var be=G.lane,Pe=G.eventTime;if((w&be)===be){Se!==null&&(Se=Se.next={eventTime:Pe,lane:0,tag:G.tag,payload:G.payload,callback:G.callback,next:null});e:{var Ne=r,Ie=G;switch(be=o,Pe=c,Ie.tag){case 1:if(Ne=Ie.payload,typeof Ne=="function"){Ee=Ne.call(Pe,Ee,be);break e}Ee=Ne;break e;case 3:Ne.flags=Ne.flags&-65537|128;case 0:if(Ne=Ie.payload,be=typeof Ne=="function"?Ne.call(Pe,Ee,be):Ne,be==null)break e;Ee=T({},Ee,be);break e;case 2:Gr=!0}}G.callback!==null&&G.lane!==0&&(r.flags|=64,be=k.effects,be===null?k.effects=[G]:be.push(G))}else Pe={eventTime:Pe,lane:be,tag:G.tag,payload:G.payload,callback:G.callback,next:null},Se===null?(de=Se=Pe,oe=Ee):Se=Se.next=Pe,U|=be;if(G=G.next,G===null){if(G=k.shared.pending,G===null)break;be=G,G=be.next,be.next=null,k.lastBaseUpdate=be,k.shared.pending=null}}while(!0);if(Se===null&&(oe=Ee),k.baseState=oe,k.firstBaseUpdate=de,k.lastBaseUpdate=Se,o=k.shared.interleaved,o!==null){k=o;do U|=k.lane,k=k.next;while(k!==o)}else C===null&&(k.shared.lanes=0);Fi|=U,r.lanes=U,r.memoizedState=Ee}}function gv(r,o,c){if(r=o.effects,o.effects=null,r!==null)for(o=0;o<r.length;o++){var w=r[o],k=w.callback;if(k!==null){if(w.callback=null,w=c,typeof k!="function")throw Error(n(191,k));k.call(w)}}}var Hl={},ir=Wr(Hl),$l=Wr(Hl),Wl=Wr(Hl);function Di(r){if(r===Hl)throw Error(n(174));return r}function af(r,o){switch(at(Wl,o),at($l,r),at(ir,Hl),r=o.nodeType,r){case 9:case 11:o=(o=o.documentElement)?o.namespaceURI:ve(null,"");break;default:r=r===8?o.parentNode:o,o=r.namespaceURI||null,r=r.tagName,o=ve(o,r)}ft(ir),at(ir,o)}function To(){ft(ir),ft($l),ft(Wl)}function wv(r){Di(Wl.current);var o=Di(ir.current),c=ve(o,r.type);o!==c&&(at($l,r),at(ir,c))}function sf(r){$l.current===r&&(ft(ir),ft($l))}var pt=Wr(0);function Es(r){for(var o=r;o!==null;){if(o.tag===13){var c=o.memoizedState;if(c!==null&&(c=c.dehydrated,c===null||c.data==="$?"||c.data==="$!"))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!==void 0){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===r)break;for(;o.sibling===null;){if(o.return===null||o.return===r)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var uf=[];function cf(){for(var r=0;r<uf.length;r++)uf[r]._workInProgressVersionPrimary=null;uf.length=0}var _s=E.ReactCurrentDispatcher,ff=E.ReactCurrentBatchConfig,ji=0,mt=null,Pt=null,Rt=null,ks=!1,Kl=!1,Ql=0,m_=0;function Ht(){throw Error(n(321))}function df(r,o){if(o===null)return!1;for(var c=0;c<o.length&&c<r.length;c++)if(!zn(r[c],o[c]))return!1;return!0}function hf(r,o,c,w,k,C){if(ji=C,mt=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,_s.current=r===null||r.memoizedState===null?w_:b_,r=c(w,k),Kl){C=0;do{if(Kl=!1,Ql=0,25<=C)throw Error(n(301));C+=1,Rt=Pt=null,o.updateQueue=null,_s.current=S_,r=c(w,k)}while(Kl)}if(_s.current=Ps,o=Pt!==null&&Pt.next!==null,ji=0,Rt=Pt=mt=null,ks=!1,o)throw Error(n(300));return r}function pf(){var r=Ql!==0;return Ql=0,r}function or(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Rt===null?mt.memoizedState=Rt=r:Rt=Rt.next=r,Rt}function Tn(){if(Pt===null){var r=mt.alternate;r=r!==null?r.memoizedState:null}else r=Pt.next;var o=Rt===null?mt.memoizedState:Rt.next;if(o!==null)Rt=o,Pt=r;else{if(r===null)throw Error(n(310));Pt=r,r={memoizedState:Pt.memoizedState,baseState:Pt.baseState,baseQueue:Pt.baseQueue,queue:Pt.queue,next:null},Rt===null?mt.memoizedState=Rt=r:Rt=Rt.next=r}return Rt}function Gl(r,o){return typeof o=="function"?o(r):o}function mf(r){var o=Tn(),c=o.queue;if(c===null)throw Error(n(311));c.lastRenderedReducer=r;var w=Pt,k=w.baseQueue,C=c.pending;if(C!==null){if(k!==null){var U=k.next;k.next=C.next,C.next=U}w.baseQueue=k=C,c.pending=null}if(k!==null){C=k.next,w=w.baseState;var G=U=null,oe=null,de=C;do{var Se=de.lane;if((ji&Se)===Se)oe!==null&&(oe=oe.next={lane:0,action:de.action,hasEagerState:de.hasEagerState,eagerState:de.eagerState,next:null}),w=de.hasEagerState?de.eagerState:r(w,de.action);else{var Ee={lane:Se,action:de.action,hasEagerState:de.hasEagerState,eagerState:de.eagerState,next:null};oe===null?(G=oe=Ee,U=w):oe=oe.next=Ee,mt.lanes|=Se,Fi|=Se}de=de.next}while(de!==null&&de!==C);oe===null?U=w:oe.next=G,zn(w,o.memoizedState)||(rn=!0),o.memoizedState=w,o.baseState=U,o.baseQueue=oe,c.lastRenderedState=w}if(r=c.interleaved,r!==null){k=r;do C=k.lane,mt.lanes|=C,Fi|=C,k=k.next;while(k!==r)}else k===null&&(c.lanes=0);return[o.memoizedState,c.dispatch]}function vf(r){var o=Tn(),c=o.queue;if(c===null)throw Error(n(311));c.lastRenderedReducer=r;var w=c.dispatch,k=c.pending,C=o.memoizedState;if(k!==null){c.pending=null;var U=k=k.next;do C=r(C,U.action),U=U.next;while(U!==k);zn(C,o.memoizedState)||(rn=!0),o.memoizedState=C,o.baseQueue===null&&(o.baseState=C),c.lastRenderedState=C}return[C,w]}function bv(){}function Sv(r,o){var c=mt,w=Tn(),k=o(),C=!zn(w.memoizedState,k);if(C&&(w.memoizedState=k,rn=!0),w=w.queue,yf(_v.bind(null,c,w,r),[r]),w.getSnapshot!==o||C||Rt!==null&&Rt.memoizedState.tag&1){if(c.flags|=2048,Yl(9,Ev.bind(null,c,w,k,o),void 0,null),Nt===null)throw Error(n(349));(ji&30)!==0||xv(c,o,k)}return k}function xv(r,o,c){r.flags|=16384,r={getSnapshot:o,value:c},o=mt.updateQueue,o===null?(o={lastEffect:null,stores:null},mt.updateQueue=o,o.stores=[r]):(c=o.stores,c===null?o.stores=[r]:c.push(r))}function Ev(r,o,c,w){o.value=c,o.getSnapshot=w,kv(o)&&Ov(r)}function _v(r,o,c){return c(function(){kv(o)&&Ov(r)})}function kv(r){var o=r.getSnapshot;r=r.value;try{var c=o();return!zn(r,c)}catch{return!0}}function Ov(r){var o=Or(r,1);o!==null&&$n(o,r,1,-1)}function Cv(r){var o=or();return typeof r=="function"&&(r=r()),o.memoizedState=o.baseState=r,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Gl,lastRenderedState:r},o.queue=r,r=r.dispatch=g_.bind(null,mt,r),[o.memoizedState,r]}function Yl(r,o,c,w){return r={tag:r,create:o,destroy:c,deps:w,next:null},o=mt.updateQueue,o===null?(o={lastEffect:null,stores:null},mt.updateQueue=o,o.lastEffect=r.next=r):(c=o.lastEffect,c===null?o.lastEffect=r.next=r:(w=c.next,c.next=r,r.next=w,o.lastEffect=r)),r}function Pv(){return Tn().memoizedState}function Os(r,o,c,w){var k=or();mt.flags|=r,k.memoizedState=Yl(1|o,c,void 0,w===void 0?null:w)}function Cs(r,o,c,w){var k=Tn();w=w===void 0?null:w;var C=void 0;if(Pt!==null){var U=Pt.memoizedState;if(C=U.destroy,w!==null&&df(w,U.deps)){k.memoizedState=Yl(o,c,C,w);return}}
vendor: 8,029 bytes, lines 38-40
38mt.flags|=r,k.memoizedState=Yl(1|o,c,C,w)}function Av(r,o){return Os(8390656,8,r,o)}function yf(r,o){return Cs(2048,8,r,o)}function Tv(r,o){return Cs(4,2,r,o)}function Rv(r,o){return Cs(4,4,r,o)}function Nv(r,o){if(typeof o=="function")return r=r(),o(r),function(){o(null)};if(o!=null)return r=r(),o.current=r,function(){o.current=null}}function Iv(r,o,c){return c=c!=null?c.concat([r]):null,Cs(4,4,Nv.bind(null,o,r),c)}function gf(){}function Lv(r,o){var c=Tn();o=o===void 0?null:o;var w=c.memoizedState;return w!==null&&o!==null&&df(o,w[1])?w[0]:(c.memoizedState=[r,o],r)}function Mv(r,o){var c=Tn();o=o===void 0?null:o;var w=c.memoizedState;return w!==null&&o!==null&&df(o,w[1])?w[0]:(r=r(),c.memoizedState=[r,o],r)}function Dv(r,o,c){return(ji&21)===0?(r.baseState&&(r.baseState=!1,rn=!0),r.memoizedState=c):(zn(c,o)||(c=dm(),mt.lanes|=c,Fi|=c,r.baseState=!0),o)}function v_(r,o){var c=ot;ot=c!==0&&4>c?c:4,r(!0);var w=ff.transition;ff.transition={};try{r(!1),o()}finally{ot=c,ff.transition=w}}function jv(){return Tn().memoizedState}function y_(r,o,c){var w=ei(r);if(c={lane:w,action:c,hasEagerState:!1,eagerState:null,next:null},Fv(r))Bv(o,c);else if(c=mv(r,o,c,w),c!==null){var k=Gt();$n(c,r,w,k),zv(c,o,w)}}function g_(r,o,c){var w=ei(r),k={lane:w,action:c,hasEagerState:!1,eagerState:null,next:null};if(Fv(r))Bv(o,k);else{var C=r.alternate;if(r.lanes===0&&(C===null||C.lanes===0)&&(C=o.lastRenderedReducer,C!==null))try{var U=o.lastRenderedState,G=C(U,c);if(k.hasEagerState=!0,k.eagerState=G,zn(G,U)){var oe=o.interleaved;oe===null?(k.next=k,of(o)):(k.next=oe.next,oe.next=k),o.interleaved=k;return}}catch{}finally{}c=mv(r,o,k,w),c!==null&&(k=Gt(),$n(c,r,w,k),zv(c,o,w))}}function Fv(r){var o=r.alternate;return r===mt||o!==null&&o===mt}function Bv(r,o){Kl=ks=!0;var c=r.pending;c===null?o.next=o:(o.next=c.next,c.next=o),r.pending=o}function zv(r,o,c){if((c&4194240)!==0){var w=o.lanes;w&=r.pendingLanes,c|=w,o.lanes=c,wc(r,c)}}var Ps={readContext:An,useCallback:Ht,useContext:Ht,useEffect:Ht,useImperativeHandle:Ht,useInsertionEffect:Ht,useLayoutEffect:Ht,useMemo:Ht,useReducer:Ht,useRef:Ht,useState:Ht,useDebugValue:Ht,useDeferredValue:Ht,useTransition:Ht,useMutableSource:Ht,useSyncExternalStore:Ht,useId:Ht,unstable_isNewReconciler:!1},w_={readContext:An,useCallback:function(r,o){return or().memoizedState=[r,o===void 0?null:o],r},useContext:An,useEffect:Av,useImperativeHandle:function(r,o,c){return c=c!=null?c.concat([r]):null,Os(4194308,4,Nv.bind(null,o,r),c)},useLayoutEffect:function(r,o){return Os(4194308,4,r,o)},useInsertionEffect:function(r,o){return Os(4,2,r,o)},useMemo:function(r,o){var c=or();return o=o===void 0?null:o,r=r(),c.memoizedState=[r,o],r},useReducer:function(r,o,c){var w=or();return o=c!==void 0?c(o):o,w.memoizedState=w.baseState=o,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:o},w.queue=r,r=r.dispatch=y_.bind(null,mt,r),[w.memoizedState,r]},useRef:function(r){var o=or();return r={current:r},o.memoizedState=r},useState:Cv,useDebugValue:gf,useDeferredValue:function(r){return or().memoizedState=r},useTransition:function(){var r=Cv(!1),o=r[0];return r=v_.bind(null,r[1]),or().memoizedState=r,[o,r]},useMutableSource:function(){},useSyncExternalStore:function(r,o,c){var w=mt,k=or();if(dt){if(c===void 0)throw Error(n(407));c=c()}else{if(c=o(),Nt===null)throw Error(n(349));(ji&30)!==0||xv(w,o,c)}k.memoizedState=c;var C={value:c,getSnapshot:o};return k.queue=C,Av(_v.bind(null,w,C,r),[r]),w.flags|=2048,Yl(9,Ev.bind(null,w,C,c,o),void 0,null),c},useId:function(){var r=or(),o=Nt.identifierPrefix;if(dt){var c=kr,w=_r;c=(w&~(1<<32-Bn(w)-1)).toString(32)+c,o=":"+o+"R"+c,c=Ql++,0<c&&(o+="H"+c.toString(32)),o+=":"}else c=m_++,o=":"+o+"r"+c.toString(32)+":";return r.memoizedState=o},unstable_isNewReconciler:!1},b_={readContext:An,useCallback:Lv,useContext:An,useEffect:yf,useImperativeHandle:Iv,useInsertionEffect:Tv,useLayoutEffect:Rv,useMemo:Mv,useReducer:mf,useRef:Pv,useState:function(){return mf(Gl)},useDebugValue:gf,useDeferredValue:function(r){var o=Tn();return Dv(o,Pt.memoizedState,r)},useTransition:function(){var r=mf(Gl)[0],o=Tn().memoizedState;return[r,o]},useMutableSource:bv,useSyncExternalStore:Sv,useId:jv,unstable_isNewReconciler:!1},S_={readContext:An,useCallback:Lv,useContext:An,useEffect:yf,useImperativeHandle:Iv,useInsertionEffect:Tv,useLayoutEffect:Rv,useMemo:Mv,useReducer:vf,useRef:Pv,useState:function(){return vf(Gl)},useDebugValue:gf,useDeferredValue:function(r){var o=Tn();return Pt===null?o.memoizedState=r:Dv(o,Pt.memoizedState,r)},useTransition:function(){var r=vf(Gl)[0],o=Tn().memoizedState;return[r,o]},useMutableSource:bv,useSyncExternalStore:Sv,useId:jv,unstable_isNewReconciler:!1};function Un(r,o){if(r&&r.defaultProps){o=T({},o),r=r.defaultProps;for(var c in r)o[c]===void 0&&(o[c]=r[c]);return o}return o}function wf(r,o,c,w){o=r.memoizedState,c=c(w,o),c=c==null?o:T({},o,c),r.memoizedState=c,r.lanes===0&&(r.updateQueue.baseState=c)}var As={isMounted:function(r){return(r=r._reactInternals)?Ti(r)===r:!1},enqueueSetState:function(r,o,c){r=r._reactInternals;var w=Gt(),k=ei(r),C=Cr(w,k);C.payload=o,c!=null&&(C.callback=c),o=Yr(r,C,k),o!==null&&($n(o,r,k,w),Ss(o,r,k))},enqueueReplaceState:function(r,o,c){r=r._reactInternals;var w=Gt(),k=ei(r),C=Cr(w,k);C.tag=1,C.payload=o,c!=null&&(C.callback=c),o=Yr(r,C,k),o!==null&&($n(o,r,k,w),Ss(o,r,k))},enqueueForceUpdate:function(r,o){r=r._reactInternals;var c=Gt(),w=ei(r),k=Cr(c,w);k.tag=2,o!=null&&(k.callback=o),o=Yr(r,k,w),o!==null&&($n(o,r,w,c),Ss(o,r,w))}};function qv(r,o,c,w,k,C,U){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(w,C,U):o.prototype&&o.prototype.isPureReactComponent?!Dl(c,w)||!Dl(k,C):!0}function Uv(r,o,c){var w=!1,k=Kr,C=o.contextType;return typeof C=="object"&&C!==null?C=An(C):(k=nn(o)?Ni:Vt.current,w=o.contextTypes,C=(w=w!=null)?Eo(r,k):Kr),o=new o(c,C),r.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=As,r.stateNode=o,o._reactInternals=r,w&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=k,r.__reactInternalMemoizedMaskedChildContext=C),o}function Vv(r,o,c,w){r=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(c,w),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(c,w),o.state!==r&&As.enqueueReplaceState(o,o.state,null)}function bf(r,o,c,w){var k=r.stateNode;k.props=c,k.state=r.memoizedState,k.refs={},lf(r);var C=o.contextType;typeof C=="object"&&C!==null?k.context=An(C):(C=nn(o)?Ni:Vt.current,k.context=Eo(r,C)),k.state=r.memoizedState,C=o.getDerivedStateFromProps,typeof C=="function"&&(wf(r,o,C,c),k.state=r.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof k.getSnapshotBeforeUpdate=="function"||typeof k.UNSAFE_componentWillMount!="function"&&typeof k.componentWillMount!="function"||(o=k.state,typeof k.componentWillMount=="function"&&k.componentWillMount(),typeof k.UNSAFE_componentWillMount=="function"&&k.UNSAFE_componentWillMount(),o!==k.state&&As.enqueueReplaceState(k,k.state,null),xs(r,c,k,w),k.state=r.memoizedState),typeof k.componentDidMount=="function"&&(r.flags|=4194308)}function Ro(r,o){try{var c="",w=o;do c+=te(w),w=w.return;while(w);var k=c}catch(C){k=`
39Error generating stack: `+C.message+`
40`+C.stack}return{value:r,source:o,stack:k,digest:null}}function Sf(r,o,c){return{value:r,source:null,stack:c??null,digest:o??null}}function xf(r,o){try{console.error(o.value)}catch(c){setTimeout(function(){throw c})}}var x_=typeof WeakMap=="function"?WeakMap:Map;function Hv(r,o,c){c=Cr(-1,c),c.tag=3,c.payload={element:null};var w=o.value;return c.callback=function(){Ds||(Ds=!0,jf=w),xf(r,o)},c}function $v(r,o,c){c=Cr(-1,c),c.tag=3;var w=r.type.getDerivedStateFromError;if(typeof w=="function"){var k=o.value;c.payload=function(){return w(k)},c.callback=function(){xf(r,o)}}var C=r.stateNode;return C!==null&&typeof C.componentDidCatch=="function"&&(c.callback=function(){xf(r,o),typeof w!="function"&&(Zr===null?Zr=ne
vendor: 39,244 bytes, line 40
40w Set([this]):Zr.add(this));var U=o.stack;this.componentDidCatch(o.value,{componentStack:U!==null?U:""})}),c}function Wv(r,o,c){var w=r.pingCache;if(w===null){w=r.pingCache=new x_;var k=new Set;w.set(o,k)}else k=w.get(o),k===void 0&&(k=new Set,w.set(o,k));k.has(c)||(k.add(c),r=D_.bind(null,r,o,c),o.then(r,r))}function Kv(r){do{var o;if((o=r.tag===13)&&(o=r.memoizedState,o=o!==null?o.dehydrated!==null:!0),o)return r;r=r.return}while(r!==null);return null}function Qv(r,o,c,w,k){return(r.mode&1)===0?(r===o?r.flags|=65536:(r.flags|=128,c.flags|=131072,c.flags&=-52805,c.tag===1&&(c.alternate===null?c.tag=17:(o=Cr(-1,1),o.tag=2,Yr(c,o,1))),c.lanes|=1),r):(r.flags|=65536,r.lanes=k,r)}var E_=E.ReactCurrentOwner,rn=!1;function Qt(r,o,c,w){o.child=r===null?pv(o,null,c,w):Co(o,r.child,c,w)}function Gv(r,o,c,w,k){c=c.render;var C=o.ref;return Ao(o,k),w=hf(r,o,c,w,C,k),c=pf(),r!==null&&!rn?(o.updateQueue=r.updateQueue,o.flags&=-2053,r.lanes&=~k,Pr(r,o,k)):(dt&&c&&Gc(o),o.flags|=1,Qt(r,o,w,k),o.child)}function Yv(r,o,c,w,k){if(r===null){var C=c.type;return typeof C=="function"&&!Hf(C)&&C.defaultProps===void 0&&c.compare===null&&c.defaultProps===void 0?(o.tag=15,o.type=C,Xv(r,o,C,w,k)):(r=Us(c.type,null,w,o,o.mode,k),r.ref=o.ref,r.return=o,o.child=r)}if(C=r.child,(r.lanes&k)===0){var U=C.memoizedProps;if(c=c.compare,c=c!==null?c:Dl,c(U,w)&&r.ref===o.ref)return Pr(r,o,k)}return o.flags|=1,r=ni(C,w),r.ref=o.ref,r.return=o,o.child=r}function Xv(r,o,c,w,k){if(r!==null){var C=r.memoizedProps;if(Dl(C,w)&&r.ref===o.ref)if(rn=!1,o.pendingProps=w=C,(r.lanes&k)!==0)(r.flags&131072)!==0&&(rn=!0);else return o.lanes=r.lanes,Pr(r,o,k)}return Ef(r,o,c,w,k)}function Zv(r,o,c){var w=o.pendingProps,k=w.children,C=r!==null?r.memoizedState:null;if(w.mode==="hidden")if((o.mode&1)===0)o.memoizedState={baseLanes:0,cachePool:null,transitions:null},at(Io,gn),gn|=c;else{if((c&1073741824)===0)return r=C!==null?C.baseLanes|c:c,o.lanes=o.childLanes=1073741824,o.memoizedState={baseLanes:r,cachePool:null,transitions:null},o.updateQueue=null,at(Io,gn),gn|=r,null;o.memoizedState={baseLanes:0,cachePool:null,transitions:null},w=C!==null?C.baseLanes:c,at(Io,gn),gn|=w}else C!==null?(w=C.baseLanes|c,o.memoizedState=null):w=c,at(Io,gn),gn|=w;return Qt(r,o,k,c),o.child}function Jv(r,o){var c=o.ref;(r===null&&c!==null||r!==null&&r.ref!==c)&&(o.flags|=512,o.flags|=2097152)}function Ef(r,o,c,w,k){var C=nn(c)?Ni:Vt.current;return C=Eo(o,C),Ao(o,k),c=hf(r,o,c,w,C,k),w=pf(),r!==null&&!rn?(o.updateQueue=r.updateQueue,o.flags&=-2053,r.lanes&=~k,Pr(r,o,k)):(dt&&w&&Gc(o),o.flags|=1,Qt(r,o,c,k),o.child)}function ey(r,o,c,w,k){if(nn(c)){var C=!0;hs(o)}else C=!1;if(Ao(o,k),o.stateNode===null)Rs(r,o),Uv(o,c,w),bf(o,c,w,k),w=!0;else if(r===null){var U=o.stateNode,G=o.memoizedProps;U.props=G;var oe=U.context,de=c.contextType;typeof de=="object"&&de!==null?de=An(de):(de=nn(c)?Ni:Vt.current,de=Eo(o,de));var Se=c.getDerivedStateFromProps,Ee=typeof Se=="function"||typeof U.getSnapshotBeforeUpdate=="function";Ee||typeof U.UNSAFE_componentWillReceiveProps!="function"&&typeof U.componentWillReceiveProps!="function"||(G!==w||oe!==de)&&Vv(o,U,w,de),Gr=!1;var be=o.memoizedState;U.state=be,xs(o,w,U,k),oe=o.memoizedState,G!==w||be!==oe||tn.current||Gr?(typeof Se=="function"&&(wf(o,c,Se,w),oe=o.memoizedState),(G=Gr||qv(o,c,G,w,be,oe,de))?(Ee||typeof U.UNSAFE_componentWillMount!="function"&&typeof U.componentWillMount!="function"||(typeof U.componentWillMount=="function"&&U.componentWillMount(),typeof U.UNSAFE_componentWillMount=="function"&&U.UNSAFE_componentWillMount()),typeof U.componentDidMount=="function"&&(o.flags|=4194308)):(typeof U.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=w,o.memoizedState=oe),U.props=w,U.state=oe,U.context=de,w=G):(typeof U.componentDidMount=="function"&&(o.flags|=4194308),w=!1)}else{U=o.stateNode,vv(r,o),G=o.memoizedProps,de=o.type===o.elementType?G:Un(o.type,G),U.props=de,Ee=o.pendingProps,be=U.context,oe=c.contextType,typeof oe=="object"&&oe!==null?oe=An(oe):(oe=nn(c)?Ni:Vt.current,oe=Eo(o,oe));var Pe=c.getDerivedStateFromProps;(Se=typeof Pe=="function"||typeof U.getSnapshotBeforeUpdate=="function")||typeof U.UNSAFE_componentWillReceiveProps!="function"&&typeof U.componentWillReceiveProps!="function"||(G!==Ee||be!==oe)&&Vv(o,U,w,oe),Gr=!1,be=o.memoizedState,U.state=be,xs(o,w,U,k);var Ne=o.memoizedState;G!==Ee||be!==Ne||tn.current||Gr?(typeof Pe=="function"&&(wf(o,c,Pe,w),Ne=o.memoizedState),(de=Gr||qv(o,c,de,w,be,Ne,oe)||!1)?(Se||typeof U.UNSAFE_componentWillUpdate!="function"&&typeof U.componentWillUpdate!="function"||(typeof U.componentWillUpdate=="function"&&U.componentWillUpdate(w,Ne,oe),typeof U.UNSAFE_componentWillUpdate=="function"&&U.UNSAFE_componentWillUpdate(w,Ne,oe)),typeof U.componentDidUpdate=="function"&&(o.flags|=4),typeof U.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof U.componentDidUpdate!="function"||G===r.memoizedProps&&be===r.memoizedState||(o.flags|=4),typeof U.getSnapshotBeforeUpdate!="function"||G===r.memoizedProps&&be===r.memoizedState||(o.flags|=1024),o.memoizedProps=w,o.memoizedState=Ne),U.props=w,U.state=Ne,U.context=oe,w=de):(typeof U.componentDidUpdate!="function"||G===r.memoizedProps&&be===r.memoizedState||(o.flags|=4),typeof U.getSnapshotBeforeUpdate!="function"||G===r.memoizedProps&&be===r.memoizedState||(o.flags|=1024),w=!1)}return _f(r,o,c,w,C,k)}function _f(r,o,c,w,k,C){Jv(r,o);var U=(o.flags&128)!==0;if(!w&&!U)return k&&ov(o,c,!1),Pr(r,o,C);w=o.stateNode,E_.current=o;var G=U&&typeof c.getDerivedStateFromError!="function"?null:w.render();return o.flags|=1,r!==null&&U?(o.child=Co(o,r.child,null,C),o.child=Co(o,null,G,C)):Qt(r,o,G,C),o.memoizedState=w.state,k&&ov(o,c,!0),o.child}function ty(r){var o=r.stateNode;o.pendingContext?rv(r,o.pendingContext,o.pendingContext!==o.context):o.context&&rv(r,o.context,!1),af(r,o.containerInfo)}function ny(r,o,c,w,k){return Oo(),Jc(k),o.flags|=256,Qt(r,o,c,w),o.child}var kf={dehydrated:null,treeContext:null,retryLane:0};function Of(r){return{baseLanes:r,cachePool:null,transitions:null}}function ry(r,o,c){var w=o.pendingProps,k=pt.current,C=!1,U=(o.flags&128)!==0,G;if((G=U)||(G=r!==null&&r.memoizedState===null?!1:(k&2)!==0),G?(C=!0,o.flags&=-129):(r===null||r.memoizedState!==null)&&(k|=1),at(pt,k&1),r===null)return Zc(o),r=o.memoizedState,r!==null&&(r=r.dehydrated,r!==null)?((o.mode&1)===0?o.lanes=1:r.data==="$!"?o.lanes=8:o.lanes=1073741824,null):(U=w.children,r=w.fallback,C?(w=o.mode,C=o.child,U={mode:"hidden",children:U},(w&1)===0&&C!==null?(C.childLanes=0,C.pendingProps=U):C=Vs(U,w,0,null),r=Ui(r,w,c,null),C.return=o,r.return=o,C.sibling=r,o.child=C,o.child.memoizedState=Of(c),o.memoizedState=kf,r):Cf(o,U));if(k=r.memoizedState,k!==null&&(G=k.dehydrated,G!==null))return __(r,o,U,w,G,k,c);if(C){C=w.fallback,U=o.mode,k=r.child,G=k.sibling;var oe={mode:"hidden",children:w.children};return(U&1)===0&&o.child!==k?(w=o.child,w.childLanes=0,w.pendingProps=oe,o.deletions=null):(w=ni(k,oe),w.subtreeFlags=k.subtreeFlags&14680064),G!==null?C=ni(G,C):(C=Ui(C,U,c,null),C.flags|=2),C.return=o,w.return=o,w.sibling=C,o.child=w,w=C,C=o.child,U=r.child.memoizedState,U=U===null?Of(c):{baseLanes:U.baseLanes|c,cachePool:null,transitions:U.transitions},C.memoizedState=U,C.childLanes=r.childLanes&~c,o.memoizedState=kf,w}return C=r.child,r=C.sibling,w=ni(C,{mode:"visible",children:w.children}),(o.mode&1)===0&&(w.lanes=c),w.return=o,w.sibling=null,r!==null&&(c=o.deletions,c===null?(o.deletions=[r],o.flags|=16):c.push(r)),o.child=w,o.memoizedState=null,w}function Cf(r,o){return o=Vs({mode:"visible",children:o},r.mode,0,null),o.return=r,r.child=o}function Ts(r,o,c,w){return w!==null&&Jc(w),Co(o,r.child,null,c),r=Cf(o,o.pendingProps.children),r.flags|=2,o.memoizedState=null,r}function __(r,o,c,w,k,C,U){if(c)return o.flags&256?(o.flags&=-257,w=Sf(Error(n(422))),Ts(r,o,U,w)):o.memoizedState!==null?(o.child=r.child,o.flags|=128,null):(C=w.fallback,k=o.mode,w=Vs({mode:"visible",children:w.children},k,0,null),C=Ui(C,k,U,null),C.flags|=2,w.return=o,C.return=o,w.sibling=C,o.child=w,(o.mode&1)!==0&&Co(o,r.child,null,U),o.child.memoizedState=Of(U),o.memoizedState=kf,C);if((o.mode&1)===0)return Ts(r,o,U,null);if(k.data==="$!"){if(w=k.nextSibling&&k.nextSibling.dataset,w)var G=w.dgst;return w=G,C=Error(n(419)),w=Sf(C,w,void 0),Ts(r,o,U,w)}if(G=(U&r.childLanes)!==0,rn||G){if(w=Nt,w!==null){switch(U&-U){case 4:k=2;break;case 16:k=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:k=32;break;case 536870912:k=268435456;break;default:k=0}k=(k&(w.suspendedLanes|U))!==0?0:k,k!==0&&k!==C.retryLane&&(C.retryLane=k,Or(r,k),$n(w,r,k,-1))}return Vf(),w=Sf(Error(n(421))),Ts(r,o,U,w)}return k.data==="$?"?(o.flags|=128,o.child=r.child,o=j_.bind(null,r),k._reactRetry=o,null):(r=C.treeContext,yn=$r(k.nextSibling),vn=o,dt=!0,qn=null,r!==null&&(Cn[Pn++]=_r,Cn[Pn++]=kr,Cn[Pn++]=Ii,_r=r.id,kr=r.overflow,Ii=o),o=Cf(o,w.children),o.flags|=4096,o)}function iy(r,o,c){r.lanes|=o;var w=r.alternate;w!==null&&(w.lanes|=o),rf(r.return,o,c)}function Pf(r,o,c,w,k){var C=r.memoizedState;C===null?r.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:w,tail:c,tailMode:k}:(C.isBackwards=o,C.rendering=null,C.renderingStartTime=0,C.last=w,C.tail=c,C.tailMode=k)}function oy(r,o,c){var w=o.pendingProps,k=w.revealOrder,C=w.tail;if(Qt(r,o,w.children,c),w=pt.current,(w&2)!==0)w=w&1|2,o.flags|=128;else{if(r!==null&&(r.flags&128)!==0)e:for(r=o.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&iy(r,c,o);else if(r.tag===19)iy(r,c,o);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===o)break e;for(;r.sibling===null;){if(r.return===null||r.return===o)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}w&=1}if(at(pt,w),(o.mode&1)===0)o.memoizedState=null;else switch(k){case"forwards":for(c=o.child,k=null;c!==null;)r=c.alternate,r!==null&&Es(r)===null&&(k=c),c=c.sibling;c=k,c===null?(k=o.child,o.child=null):(k=c.sibling,c.sibling=null),Pf(o,!1,k,c,C);break;case"backwards":for(c=null,k=o.child,o.child=null;k!==null;){if(r=k.alternate,r!==null&&Es(r)===null){o.child=k;break}r=k.sibling,k.sibling=c,c=k,k=r}Pf(o,!0,c,null,C);break;case"together":Pf(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function Rs(r,o){(o.mode&1)===0&&r!==null&&(r.alternate=null,o.alternate=null,o.flags|=2)}function Pr(r,o,c){if(r!==null&&(o.dependencies=r.dependencies),Fi|=o.lanes,(c&o.childLanes)===0)return null;if(r!==null&&o.child!==r.child)throw Error(n(153));if(o.child!==null){for(r=o.child,c=ni(r,r.pendingProps),o.child=c,c.return=o;r.sibling!==null;)r=r.sibling,c=c.sibling=ni(r,r.pendingProps),c.return=o;c.sibling=null}return o.child}function k_(r,o,c){switch(o.tag){case 3:ty(o),Oo();break;case 5:wv(o);break;case 1:nn(o.type)&&hs(o);break;case 4:af(o,o.stateNode.containerInfo);break;case 10:var w=o.type._context,k=o.memoizedProps.value;at(ws,w._currentValue),w._currentValue=k;break;case 13:if(w=o.memoizedState,w!==null)return w.dehydrated!==null?(at(pt,pt.current&1),o.flags|=128,null):(c&o.child.childLanes)!==0?ry(r,o,c):(at(pt,pt.current&1),r=Pr(r,o,c),r!==null?r.sibling:null);at(pt,pt.current&1);break;case 19:if(w=(c&o.childLanes)!==0,(r.flags&128)!==0){if(w)return oy(r,o,c);o.flags|=128}if(k=o.memoizedState,k!==null&&(k.rendering=null,k.tail=null,k.lastEffect=null),at(pt,pt.current),w)break;return null;case 22:case 23:return o.lanes=0,Zv(r,o,c)}return Pr(r,o,c)}var ly,Af,ay,sy;ly=function(r,o){for(var c=o.child;c!==null;){if(c.tag===5||c.tag===6)r.appendChild(c.stateNode);else if(c.tag!==4&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===o)break;for(;c.sibling===null;){if(c.return===null||c.return===o)return;c=c.return}c.sibling.return=c.return,c=c.sibling}},Af=function(){},ay=function(r,o,c,w){var k=r.memoizedProps;if(k!==w){r=o.stateNode,Di(ir.current);var C=null;switch(c){case"input":k=Fe(r,k),w=Fe(r,w),C=[];break;case"select":k=T({},k,{value:void 0}),w=T({},w,{value:void 0}),C=[];break;case"textarea":k=J(r,k),w=J(r,w),C=[];break;default:typeof k.onClick!="function"&&typeof w.onClick=="function"&&(r.onclick=cs)}xt(c,w);var U;c=null;for(de in k)if(!w.hasOwnProperty(de)&&k.hasOwnProperty(de)&&k[de]!=null)if(de==="style"){var G=k[de];for(U in G)G.hasOwnProperty(U)&&(c||(c={}),c[U]="")}else de!=="dangerouslySetInnerHTML"&&de!=="children"&&de!=="suppressContentEditableWarning"&&de!=="suppressHydrationWarning"&&de!=="autoFocus"&&(l.hasOwnProperty(de)?C||(C=[]):(C=C||[]).push(de,null));for(de in w){var oe=w[de];if(G=k!=null?k[de]:void 0,w.hasOwnProperty(de)&&oe!==G&&(oe!=null||G!=null))if(de==="style")if(G){for(U in G)!G.hasOwnProperty(U)||oe&&oe.hasOwnProperty(U)||(c||(c={}),c[U]="");for(U in oe)oe.hasOwnProperty(U)&&G[U]!==oe[U]&&(c||(c={}),c[U]=oe[U])}else c||(C||(C=[]),C.push(de,c)),c=oe;else de==="dangerouslySetInnerHTML"?(oe=oe?oe.__html:void 0,G=G?G.__html:void 0,oe!=null&&G!==oe&&(C=C||[]).push(de,oe)):de==="children"?typeof oe!="string"&&typeof oe!="number"||(C=C||[]).push(de,""+oe):de!=="suppressContentEditableWarning"&&de!=="suppressHydrationWarning"&&(l.hasOwnProperty(de)?(oe!=null&&de==="onScroll"&&ct("scroll",r),C||G===oe||(C=[])):(C=C||[]).push(de,oe))}c&&(C=C||[]).push("style",c);var de=C;(o.updateQueue=de)&&(o.flags|=4)}},sy=function(r,o,c,w){c!==w&&(o.flags|=4)};function Xl(r,o){if(!dt)switch(r.tailMode){case"hidden":o=r.tail;for(var c=null;o!==null;)o.alternate!==null&&(c=o),o=o.sibling;c===null?r.tail=null:c.sibling=null;break;case"collapsed":c=r.tail;for(var w=null;c!==null;)c.alternate!==null&&(w=c),c=c.sibling;w===null?o||r.tail===null?r.tail=null:r.tail.sibling=null:w.sibling=null}}function $t(r){var o=r.alternate!==null&&r.alternate.child===r.child,c=0,w=0;if(o)for(var k=r.child;k!==null;)c|=k.lanes|k.childLanes,w|=k.subtreeFlags&14680064,w|=k.flags&14680064,k.return=r,k=k.sibling;else for(k=r.child;k!==null;)c|=k.lanes|k.childLanes,w|=k.subtreeFlags,w|=k.flags,k.return=r,k=k.sibling;return r.subtreeFlags|=w,r.childLanes=c,o}function O_(r,o,c){var w=o.pendingProps;switch(Yc(o),o.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return $t(o),null;case 1:return nn(o.type)&&ds(),$t(o),null;case 3:return w=o.stateNode,To(),ft(tn),ft(Vt),cf(),w.pendingContext&&(w.context=w.pendingContext,w.pendingContext=null),(r===null||r.child===null)&&(ys(o)?o.flags|=4:r===null||r.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,qn!==null&&(zf(qn),qn=null))),Af(r,o),$t(o),null;case 5:sf(o);var k=Di(Wl.current);if(c=o.type,r!==null&&o.stateNode!=null)ay(r,o,c,w,k),r.ref!==o.ref&&(o.flags|=512,o.flags|=2097152);else{if(!w){if(o.stateNode===null)throw Error(n(166));return $t(o),null}if(r=Di(ir.current),ys(o)){w=o.stateNode,c=o.type;var C=o.memoizedProps;switch(w[rr]=o,w[ql]=C,r=(o.mode&1)!==0,c){case"dialog":ct("cancel",w),ct("close",w);break;case"iframe":case"object":case"embed":ct("load",w);break;case"video":case"audio":for(k=0;k<Fl.length;k++)ct(Fl[k],w);break;case"source":ct("error",w);break;case"img":case"image":case"link":ct("error",w),ct("load",w);break;case"details":ct("toggle",w);break;case"input":$e(w,C),ct("invalid",w);break;case"select":w._wrapperState={wasMultiple:!!C.multiple},ct("invalid",w);break;case"textarea":ge(w,C),ct("invalid",w)}xt(c,C),k=null;for(var U in C)if(C.hasOwnProperty(U)){var G=C[U];U==="children"?typeof G=="string"?w.textContent!==G&&(C.suppressHydrationWarning!==!0&&us(w.textContent,G,r),k=["children",G]):typeof G=="number"&&w.textContent!==""+G&&(C.suppressHydrationWarning!==!0&&us(w.textContent,G,r),k=["children",""+G]):l.hasOwnProperty(U)&&G!=null&&U==="onScroll"&&ct("scroll",w)}switch(c){case"input":we(w),he(w,C,!0);break;case"textarea":we(w),me(w);break;case"select":case"option":break;default:typeof C.onClick=="function"&&(w.onclick=cs)}w=k,o.updateQueue=w,w!==null&&(o.flags|=4)}else{U=k.nodeType===9?k:k.ownerDocument,r==="http://www.w3.org/1999/xhtml"&&(r=se(c)),r==="http://www.w3.org/1999/xhtml"?c==="script"?(r=U.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild)):typeof w.is=="string"?r=U.createElement(c,{is:w.is}):(r=U.createElement(c),c==="select"&&(U=r,w.multiple?U.multiple=!0:w.size&&(U.size=w.size))):r=U.createElementNS(r,c),r[rr]=o,r[ql]=w,ly(r,o,!1,!1),o.stateNode=r;e:{switch(U=On(c,w),c){case"dialog":ct("cancel",r),ct("close",r),k=w;break;case"iframe":case"object":case"embed":ct("load",r),k=w;break;case"video":case"audio":for(k=0;k<Fl.length;k++)ct(Fl[k],r);k=w;break;case"source":ct("error",r),k=w;break;case"img":case"image":case"link":ct("error",r),ct("load",r),k=w;break;case"details":ct("toggle",r),k=w;break;case"input":$e(r,w),k=Fe(r,w),ct("invalid",r);break;case"option":k=w;break;case"select":r._wrapperState={wasMultiple:!!w.multiple},k=T({},w,{value:void 0}),ct("invalid",r);break;case"textarea":ge(r,w),k=J(r,w),ct("invalid",r);break;default:k=w}xt(c,k),G=k;for(C in G)if(G.hasOwnProperty(C)){var oe=G[C];C==="style"?kn(r,oe):C==="dangerouslySetInnerHTML"?(oe=oe?oe.__html:void 0,oe!=null&&Be(r,oe)):C==="children"?typeof oe=="string"?(c!=="textarea"||oe!=="")&&De(r,oe):typeof oe=="number"&&De(r,""+oe):C!=="suppressContentEditableWarning"&&C!=="suppressHydrationWarning"&&C!=="autoFocus"&&(l.hasOwnProperty(C)?oe!=null&&C==="onScroll"&&ct("scroll",r):oe!=null&&_(r,C,oe,U))}switch(c){case"input":we(r),he(r,w,!1);break;case"textarea":we(r),me(r);break;case"option":w.value!=null&&r.setAttribute("value",""+ie(w.value));break;case"select":r.multiple=!!w.multiple,C=w.value,C!=null?Z(r,!!w.multiple,C,!1):w.defaultValue!=null&&Z(r,!!w.multiple,w.defaultValue,!0);break;default:typeof k.onClick=="function"&&(r.onclick=cs)}switch(c){case"button":case"input":case"select":case"textarea":w=!!w.autoFocus;break e;case"img":w=!0;break e;default:w=!1}}w&&(o.flags|=4)}o.ref!==null&&(o.flags|=512,o.flags|=2097152)}return $t(o),null;case 6:if(r&&o.stateNode!=null)sy(r,o,r.memoizedProps,w);else{if(typeof w!="string"&&o.stateNode===null)throw Error(n(166));if(c=Di(Wl.current),Di(ir.current),ys(o)){if(w=o.stateNode,c=o.memoizedProps,w[rr]=o,(C=w.nodeValue!==c)&&(r=vn,r!==null))switch(r.tag){case 3:us(w.nodeValue,c,(r.mode&1)!==0);break;case 5:r.memoizedProps.suppressHydrationWarning!==!0&&us(w.nodeValue,c,(r.mode&1)!==0)}C&&(o.flags|=4)}else w=(c.nodeType===9?c:c.ownerDocument).createTextNode(w),w[rr]=o,o.stateNode=w}return $t(o),null;case 13:if(ft(pt),w=o.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(dt&&yn!==null&&(o.mode&1)!==0&&(o.flags&128)===0)fv(),Oo(),o.flags|=98560,C=!1;else if(C=ys(o),w!==null&&w.dehydrated!==null){if(r===null){if(!C)throw Error(n(318));if(C=o.memoizedState,C=C!==null?C.dehydrated:null,!C)throw Error(n(317));C[rr]=o}else Oo(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;$t(o),C=!1}else qn!==null&&(zf(qn),qn=null),C=!0;if(!C)return o.flags&65536?o:null}return(o.flags&128)!==0?(o.lanes=c,o):(w=w!==null,w!==(r!==null&&r.memoizedState!==null)&&w&&(o.child.flags|=8192,(o.mode&1)!==0&&(r===null||(pt.current&1)!==0?At===0&&(At=3):Vf())),o.updateQueue!==null&&(o.flags|=4),$t(o),null);case 4:return To(),Af(r,o),r===null&&Bl(o.stateNode.containerInfo),$t(o),null;case 10:return nf(o.type._context),$t(o),null;case 17:return nn(o.type)&&ds(),$t(o),null;case 19:if(ft(pt),C=o.memoizedState,C===null)return $t(o),null;if(w=(o.flags&128)!==0,U=C.rendering,U===null)if(w)Xl(C,!1);else{if(At!==0||r!==null&&(r.flags&128)!==0)for(r=o.child;r!==null;){if(U=Es(r),U!==null){for(o.flags|=128,Xl(C,!1),w=U.updateQueue,w!==null&&(o.updateQueue=w,o.flags|=4),o.subtreeFlags=0,w=c,c=o.child;c!==null;)C=c,r=w,C.flags&=14680066,U=C.alternate,U===null?(C.childLanes=0,C.lanes=r,C.child=null,C.subtreeFlags=0,C.memoizedProps=null,C.memoizedState=null,C.updateQueue=null,C.dependencies=null,C.stateNode=null):(C.childLanes=U.childLanes,C.lanes=U.lanes,C.child=U.child,C.subtreeFlags=0,C.deletions=null,C.memoizedProps=U.memoizedProps,C.memoizedState=U.memoizedState,C.updateQueue=U.updateQueue,C.type=U.type,r=U.dependencies,C.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),c=c.sibling;return at(pt,pt.current&1|2),o.child}r=r.sibling}C.tail!==null&&wt()>Lo&&(o.flags|=128,w=!0,Xl(C,!1),o.lanes=4194304)}else{if(!w)if(r=Es(U),r!==null){if(o.flags|=128,w=!0,c=r.updateQueue,c!==null&&(o.updateQueue=c,o.flags|=4),Xl(C,!0),C.tail===null&&C.tailMode==="hidden"&&!U.alternate&&!dt)return $t(o),null}else 2*wt()-C.renderingStartTime>Lo&&c!==1073741824&&(o.flags|=128,w=!0,Xl(C,!1),o.lanes=4194304);C.isBackwards?(U.sibling=o.child,o.child=U):(c=C.last,c!==null?c.sibling=U:o.child=U,C.last=U)}return C.tail!==null?(o=C.tail,C.rendering=o,C.tail=o.sibling,C.renderingStartTime=wt(),o.sibling=null,c=pt.current,at(pt,w?c&1|2:c&1),o):($t(o),null);case 22:case 23:return Uf(),w=o.memoizedState!==null,r!==null&&r.memoizedState!==null!==w&&(o.flags|=8192),w&&(o.mode&1)!==0?(gn&1073741824)!==0&&($t(o),o.subtreeFlags&6&&(o.flags|=8192)):$t(o),null;case 24:return null;case 25:return null}throw Error(n(156,o.tag))}function C_(r,o){switch(Yc(o),o.tag){case 1:return nn(o.type)&&ds(),r=o.flags,r&65536?(o.flags=r&-65537|128,o):null;case 3:return To(),ft(tn),ft(Vt),cf(),r=o.flags,(r&65536)!==0&&(r&128)===0?(o.flags=r&-65537|128,o):null;case 5:return sf(o),null;case 13:if(ft(pt),r=o.memoizedState,r!==null&&r.dehydrated!==null){if(o.alternate===null)throw Error(n(340));Oo()}return r=o.flags,r&65536?(o.flags=r&-65537|128,o):null;case 19:return ft(pt),null;case 4:return To(),null;case 10:return nf(o.type._context),null;case 22:case 23:return Uf(),null;case 24:return null;default:return null}}var Ns=!1,Wt=!1,P_=typeof WeakSet=="function"?WeakSet:Set,Te=null;function No(r,o){var c=r.ref;if(c!==null)if(typeof c=="function")try{c(null)}catch(w){vt(r,o,w)}else c.current=null}function Tf(r,o,c){try{c()}catch(w){vt(r,o,w)}}var uy=!1;function A_(r,o){if(qc=Za,r=qm(),Ic(r)){if("selectionStart"in r)var c={start:r.selectionStart,end:r.selectionEnd};else e:{c=(c=r.ownerDocument)&&c.defaultView||window;var w=c.getSelection&&c.getSelection();if(w&&w.rangeCount!==0){c=w.anchorNode;var k=w.anchorOffset,C=w.focusNode;w=w.focusOffset;try{c.nodeType,C.nodeType}catch{c=null;break e}var U=0,G=-1,oe=-1,de=0,Se=0,Ee=r,be=null;t:for(;;){for(var Pe;Ee!==c||k!==0&&Ee.nodeType!==3||(G=U+k),Ee!==C||w!==0&&Ee.nodeType!==3||(oe=U+w),Ee.nodeType===3&&(U+=Ee.nodeValue.length),(Pe=Ee.firstChild)!==null;)be=Ee,Ee=Pe;for(;;){if(Ee===r)break t;if(be===c&&++de===k&&(G=U),be===C&&++Se===w&&(oe=U),(Pe=Ee.nextSibling)!==null)break;Ee=be,be=Ee.parentNode}Ee=Pe}c=G===-1||oe===-1?null:{start:G,end:oe}}else c=null}c=c||{start:0,end:0}}else c=null;for(Uc={focusedElem:r,selectionRange:c},Za=!1,Te=o;Te!==null;)if(o=Te,r=o.child,(o.subtreeFlags&1028)!==0&&r!==null)r.return=o,Te=r;else for(;Te!==null;){o=Te;try{var Ne=o.alternate;if((o.flags&1024)!==0)switch(o.tag){case 0:case 11:case 15:break;case 1:if(Ne!==null){var Ie=Ne.memoizedProps,bt=Ne.memoizedState,ue=o.stateNode,ae=ue.getSnapshotBeforeUpdate(o.elementType===o.type?Ie:Un(o.type,Ie),bt);ue.__reactInternalSnapshotBeforeUpdate=ae}break;case 3:var fe=o.stateNode.containerInfo;fe.nodeType===1?fe.textContent="":fe.nodeType===9&&fe.documentElement&&fe.removeChild(fe.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(ke){vt(o,o.return,ke)}if(r=o.sibling,r!==null){r.return=o.return,Te=r;break}Te=o.return}return Ne=uy,uy=!1,Ne}function Zl(r,o,c){var w=o.updateQueue;if(w=w!==null?w.lastEffect:null,w!==null){var k=w=w.next;do{if((k.tag&r)===r){var C=k.destroy;k.destroy=void 0,C!==void 0&&Tf(o,c,C)}k=k.next}while(k!==w)}}function Is(r,o){if(o=o.updateQueue,o=o!==null?o.lastEffect:null,o!==null){var c=o=o.next;do{if((c.tag&r)===r){var w=c.create;c.destroy=w()}c=c.next}while(c!==o)}}function Rf(r){var o=r.ref;if(o!==null){var c=r.stateNode;switch(r.tag){case 5:r=c;break;default:r=c}typeof o=="function"?o(r):o.current=r}}function cy(r){var o=r.alternate;o!==null&&(r.alternate=null,cy(o)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(o=r.stateNode,o!==null&&(delete o[rr],delete o[ql],delete o[Wc],delete o[f_],delete o[d_])),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}function fy(r){return r.tag===5||r.tag===3||r.tag===4}function dy(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||fy(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function Nf(r,o,c){var w=r.tag;if(w===5||w===6)r=r.stateNode,o?c.nodeType===8?c.parentNode.insertBefore(r,o):c.insertBefore(r,o):(c.nodeType===8?(o=c.parentNode,o.insertBefore(r,c)):(o=c,o.appendChild(r)),c=c._reactRootContainer,c!=null||o.onclick!==null||(o.onclick=cs));else if(w!==4&&(r=r.child,r!==null))for(Nf(r,o,c),r=r.sibling;r!==null;)Nf(r,o,c),r=r.sibling}function If(r,o,c){var w=r.tag;if(w===5||w===6)r=r.stateNode,o?c.insertBefore(r,o):c.appendChild(r);else if(w!==4&&(r=r.child,r!==null))for(If(r,o,c),r=r.sibling;r!==null;)If(r,o,c),r=r.sibling}var Dt=null,Vn=!1;function Xr(r,o,c){for(c=c.child;c!==null;)hy(r,o,c),c=c.sibling}function hy(r,o,c){if(nr&&typeof nr.onCommitFiberUnmount=="function")try{nr.onCommitFiberUnmount(Wa,c)}catch{}switch(c.tag){case 5:Wt||No(c,o);case 6:var w=Dt,k=Vn;Dt=null,Xr(r,o,c),Dt=w,Vn=k,Dt!==null&&(Vn?(r=Dt,c=c.stateNode,r.nodeType===8?r.parentNode.removeChild(c):r.removeChild(c)):Dt.removeChild(c.stateNode));break;case 18:Dt!==null&&(Vn?(r=Dt,c=c.stateNode,r.nodeType===8?$c(r.parentNode,c):r.nodeType===1&&$c(r,c),Tl(r)):$c(Dt,c.stateNode));break;case 4:w=Dt,k=Vn,Dt=c.stateNode.containerInfo,Vn=!0,Xr(r,o,c),Dt=w,Vn=k;break;case 0:case 11:case 14:case 15:if(!Wt&&(w=c.updateQueue,w!==null&&(w=w.lastEffect,w!==null))){k=w=w.next;do{var C=k,U=C.destroy;C=C.tag,U!==void 0&&((C&2)!==0||(C&4)!==0)&&Tf(c,o,U),k=k.next}while(k!==w)}Xr(r,o,c);break;case 1:if(!Wt&&(No(c,o),w=c.stateNode,typeof w.componentWillUnmount=="function"))try{w.props=c.memoizedProps,w.state=c.memoizedState,w.componentWillUnmount()}catch(G){vt(c,o,G)}Xr(r,o,c);break;case 21:Xr(r,o,c);break;case 22:c.mode&1?(Wt=(w=Wt)||c.memoizedState!==null,Xr(r,o,c),Wt=w):Xr(r,o,c);break;default:Xr(r,o,c)}}function py(r){var o=r.updateQueue;if(o!==null){r.updateQueue=null;var c=r.stateNode;c===null&&(c=r.stateNode=new P_),o.forEach(function(w){var k=F_.bind(null,r,w);c.has(w)||(c.add(w),w.then(k,k))})}}function Hn(r,o){var c=o.deletions;if(c!==null)for(var w=0;w<c.length;w++){var k=c[w];try{var C=r,U=o,G=U;e:for(;G!==null;){switch(G.tag){case 5:Dt=G.stateNode,Vn=!1;break e;case 3:Dt=G.stateNode.containerInfo,Vn=!0;break e;case 4:Dt=G.stateNode.containerInfo,Vn=!0;break e}G=G.return}if(Dt===null)throw Error(n(160));hy(C,U,k),Dt=null,Vn=!1;var oe=k.alternate;oe!==null&&(oe.return=null),k.return=null}catch(de){vt(k,o,de)}}if(o.subtreeFlags&12854)for(o=o.child;o!==null;)my(o,r),o=o.sibling}function my(r,o){var c=r.alternate,w=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:if(Hn(o,r),lr(r),w&4){try{Zl(3,r,r.return),Is(3,r)}catch(Ie){vt(r,r.return,Ie)}try{Zl(5,r,r.return)}catch(Ie){vt(r,r.return,Ie)}}break;case 1:Hn(o,r),lr(r),w&512&&c!==null&&No(c,c.return);break;case 5:if(Hn(o,r),lr(r),w&512&&c!==null&&No(c,c.return),r.flags&32){var k=r.stateNode;try{De(k,"")}catch(Ie){vt(r,r.return,Ie)}}if(w&4&&(k=r.stateNode,k!=null)){var C=r.memoizedProps,U=c!==null?c.memoizedProps:C,G=r.type,oe=r.updateQueue;if(r.updateQueue=null,oe!==null)try{G==="input"&&C.type==="radio"&&C.name!=null&&lt(k,C),On(G,U);var de=On(G,C);for(U=0;U<oe.length;U+=2){var Se=oe[U],Ee=oe[U+1];Se==="style"?kn(k,Ee):Se==="dangerouslySetInnerHTML"?Be(k,Ee):Se==="children"?De(k,Ee):_(k,Se,Ee,de)}switch(G){case"input":Ze(k,C);break;case"textarea":ye(k,C);break;case"select":var be=k._wrapperState.wasMultiple;k._wrapperState.wasMultiple=!!C.multiple;var Pe=C.value;Pe!=null?Z(k,!!C.multiple,Pe,!1):be!==!!C.multiple&&(C.defaultValue!=null?Z(k,!!C.multiple,C.defaultValue,!0):Z(k,!!C.multiple,C.multiple?[]:"",!1))}k[ql]=C}catch(Ie){vt(r,r.return,Ie)}}break;case 6:if(Hn(o,r),lr(r),w&4){if(r.stateNode===null)throw Error(n(162));k=r.stateNode,C=r.memoizedProps;try{k.nodeValue=C}catch(Ie){vt(r,r.return,Ie)}}break;case 3:if(Hn(o,r),lr(r),w&4&&c!==null&&c.memoizedState.isDehydrated)try{Tl(o.containerInfo)}catch(Ie){vt(r,r.return,Ie)}break;case 4:Hn(o,r),lr(r);break;case 13:Hn(o,r),lr(r),k=r.child,k.flags&8192&&(C=k.memoizedState!==null,k.stateNode.isHidden=C,!C||k.alternate!==null&&k.alternate.memoizedState!==null||(Df=wt())),w&4&&py(r);break;case 22:if(Se=c!==null&&c.memoizedState!==null,r.mode&1?(Wt=(de=Wt)||Se,Hn(o,r),Wt=de):Hn(o,r),lr(r),w&8192){if(de=r.memoizedState!==null,(r.stateNode.isHidden=de)&&!Se&&(r.mode&1)!==0)for(Te=r,Se=r.child;Se!==null;){for(Ee=Te=Se;Te!==null;){switch(be=Te,Pe=be.child,be.tag){case 0:case 11:case 14:case 15:Zl(4,be,be.return);break;case 1:No(be,be.return);var Ne=be.stateNode;if(typeof Ne.componentWillUnmount=="function"){w=be,c=be.return;try{o=w,Ne.props=o.memoizedProps,Ne.state=o.memoizedState,Ne.componentWillUnmount()}catch(Ie){vt(w,c,Ie)}}break;case 5:No(be,be.return);break;case 22:if(be.memoizedState!==null){gy(Ee);continue}}Pe!==null?(Pe.return=be,Te=Pe):gy(Ee)}Se=Se.sibling}e:for(Se=null,Ee=r;;){if(Ee.tag===5){if(Se===null){Se=Ee;try{k=Ee.stateNode,de?(C=k.style,typeof C.setProperty=="function"?C.setProperty("display","none","important"):C.display="none"):(G=Ee.stateNode,oe=Ee.memoizedProps.style,U=oe!=null&&oe.hasOwnProperty("display")?oe.display:null,G.style.display=qt("display",U))}catch(Ie){vt(r,r.return,Ie)}}}else if(Ee.tag===6){if(Se===null)try{Ee.stateNode.nodeValue=de?"":Ee.memoizedProps}catch(Ie){vt(r,r.return,Ie)}}else if((Ee.tag!==22&&Ee.tag!==23||Ee.memoizedState===null||Ee===r)&&Ee.child!==null){Ee.child.return=Ee,Ee=Ee.child;continue}if(Ee===r)break e;for(;Ee.sibling===null;){if(Ee.return===null||Ee.return===r)break e;Se===Ee&&(Se=null),Ee=Ee.return}Se===Ee&&(Se=null),Ee.sibling.return=Ee.return,Ee=Ee.sibling}}break;case 19:Hn(o,r),lr(r),w&4&&py(r);break;case 21:break;default:Hn(o,r),lr(r)}}function lr(r){var o=r.flags;if(o&2){try{e:{for(var c=r.return;c!==null;){if(fy(c)){var w=c;break e}c=c.return}throw Error(n(160))}switch(w.tag){case 5:var k=w.stateNode;w.flags&32&&(De(k,""),w.flags&=-33);var C=dy(r);If(r,C,k);break;case 3:case 4:var U=w.stateNode.containerInfo,G=dy(r);Nf(r,G,U);break;default:throw Error(n(161))}}catch(oe){vt(r,r.return,oe)}r.flags&=-3}o&4096&&(r.flags&=-4097)}function T_(r,o,c){Te=r,vy(r)}function vy(r,o,c){for(var w=(r.mode&1)!==0;Te!==null;){var k=Te,C=k.child;if(k.tag===22&&w){var U=k.memoizedState!==null||Ns;if(!U){var G=k.alternate,oe=G!==null&&G.memoizedState!==null||Wt;G=Ns;var de=Wt;if(Ns=U,(Wt=oe)&&!de)for(Te=k;Te!==null;)U=Te,oe=U.child,U.tag===22&&U.memoizedState!==null?wy(k):oe!==null?(oe.return=U,Te=oe):wy(k);for(;C!==null;)Te=C,vy(C),C=C.sibling;Te=k,Ns=G,Wt=de}yy(r)}else(k.subtreeFlags&8772)!==0&&C!==null?(C.return=k,Te=C):yy(r)}}function yy(r){for(;Te!==null;){var o=Te;if((o.flags&8772)!==0){var c=o.alternate;try{if((o.flags&8772)!==0)switch(o.tag){case 0:case 11:case 15:Wt||Is(5,o);break;case 1:var w=o.stateNode;if(o.flags&4&&!Wt)if(c===null)w.componentDidMount();else{var k=o.elementType===o.type?c.memoizedProps:Un(o.type,c.memoizedProps);w.componentDidUpdate(k,c.memoizedState,w.__reactInternalSnapshotBeforeUpdate)}var C=o.updateQueue;C!==null&&gv(o,C,w);break;case 3:var U=o.updateQueue;if(U!==null){if(c=null,o.child!==null)switch(o.child.tag){case 5:c=o.child.stateNode;break;case 1:c=o.child.stateNode}gv(o,U,c)}break;case 5:var G=o.stateNode;if(c===null&&o.flags&4){c=G;var oe=o.memoizedProps;switch(o.type){case"button":case"input":case"select":case"textarea":oe.autoFocus&&c.focus();break;case"img":oe.src&&(c.src=oe.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(o.memoizedState===null){var de=o.alternate;if(de!==null){var Se=de.memoizedState;if(Se!==null){var Ee=Se.dehydrated;Ee!==null&&Tl(Ee)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}Wt||o.flags&512&&Rf(o)}catch(be){vt(o,o.return,be)}}if(o===r){Te=null;break}if(c=o.sibling,c!==null){c.return=o.return,Te=c;break}Te=o.return}}function gy(r){for(;Te!==null;){var o=Te;if(o===r){Te=null;break}var c=o.sibling;if(c!==null){c.return=o.return,Te=c;break}Te=o.return}}function wy(r){for(;Te!==null;){var o=Te;try{switch(o.tag){case 0:case 11:case 15:var c=o.return;try{Is(4,o)}catch(oe){vt(o,c,oe)}break;case 1:var w=o.stateNode;if(typeof w.componentDidMount=="function"){var k=o.return;try{w.componentDidMount()}catch(oe){vt(o,k,oe)}}var C=o.return;try{Rf(o)}catch(oe){vt(o,C,oe)}break;case 5:var U=o.return;try{Rf(o)}catch(oe){vt(o,U,oe)}}}catch(oe){vt(o,o.return,oe)}if(o===r){Te=null;break}var G=o.sibling;if(G!==null){G.return=o.return,Te=G;break}Te=o.return}}var R_=Math.ceil,Ls=E.ReactCurrentDispatcher,Lf=E.ReactCurrentOwner,Rn=E.ReactCurrentBatchConfig,Je=0,Nt=null,Et=null,jt=0,gn=0,Io=Wr(0),At=0,Jl=null,Fi=0,Ms=0,Mf=0,ea=null,on=null,Df=0,Lo=1/0,Ar=null,Ds=!1,jf=null,Zr=null,js=!1,Jr=null,Fs=0,ta=0,Ff=null,Bs=-1,zs=0;function Gt(){return(Je&6)!==0?wt():Bs!==-1?Bs:Bs=wt()}function ei(r){return(r.mode&1)===0?1:(Je&2)!==0&&jt!==0?jt&-jt:p_.transition!==null?(zs===0&&(zs=dm()),zs):(r=ot,r!==0||(r=window.event,r=r===void 0?16:Sm(r.type)),r)}function $n(r,o,c,w){if(50<ta)throw ta=0,Ff=null,Error(n(185));kl(r,c,w),((Je&2)===0||r!==Nt)&&(r===Nt&&((Je&2)===0&&(Ms|=c),At===4&&ti(r,jt)),ln(r,w),c===1&&Je===0&&(o.mode&1)===0&&(Lo=wt()+500,ps&&Qr()))}function ln(r,o){var c=r.callbackNode;pE(r,o);var w=Ga(r,r===Nt?jt:0);if(w===0)c!==null&&um(c),r.callbackNode=null,r.callbackPriority=0;else if(o=w&-w,r.callbackPriority!==o){if(c!=null&&um(c),o===1)r.tag===0?h_(Sy.bind(null,r)):lv(Sy.bind(null,r)),u_(function(){(Je&6)===0&&Qr()}),c=null;else{switch(hm(w)){case 1:c=vc;break;case 4:c=cm;break;case 16:c=$a;break;case 536870912:c=fm;break;default:c=$a}c=Ay(c,by.bind(null,r))}r.callbackPriority=o,r.callbackNode=c}}function by(r,o){if(Bs=-1,zs=0,(Je&6)!==0)throw Error(n(327));var c=r.callbackNode;if(Mo()&&r.callbackNode!==c)return null;var w=Ga(r,r===Nt?jt:0);if(w===0)return null;if((w&30)!==0||(w&r.expiredLanes)!==0||o)o=qs(r,w);else{o=w;var k=Je;Je|=2;var C=Ey();(Nt!==r||jt!==o)&&(Ar=null,Lo=wt()+500,zi(r,o));do try{L_();break}catch(G){xy(r,G)}while(!0);tf(),Ls.current=C,Je=k,Et!==null?o=0:(Nt=null,jt=0,o=At)}if(o!==0){if(o===2&&(k=yc(r),k!==0&&(w=k,o=Bf(r,k))),o===1)throw c=Jl,zi(r,0),ti(r,w),ln(r,wt()),c;if(o===6)ti(r,w);else{if(k=r.current.alternate,(w&30)===0&&!N_(k)&&(o=qs(r,w),o===2&&(C=yc(r),C!==0&&(w=C,o=Bf(r,C))),o===1))throw c=Jl,zi(r,0),ti(r,w),ln(r,wt()),c;switch(r.finishedWork=k,r.finishedLanes=w,o){case 0:case 1:throw Error(n(345));case 2:qi(r,on,Ar);break;case 3:if(ti(r,w),(w&130023424)===w&&(o=Df+500-wt(),10<o)){if(Ga(r,0)!==0)break;if(k=r.suspendedLanes,(k&w)!==w){Gt(),r.pingedLanes|=r.suspendedLanes&k;break}r.timeoutHandle=Hc(qi.bind(null,r,on,Ar),o);break}qi(r,on,Ar);break;case 4:if(ti(r,w),(w&4194240)===w)break;for(o=r.eventTimes,k=-1;0<w;){var U=31-Bn(w);C=1<<U,U=o[U],U>k&&(k=U),w&=~C}if(w=k,w=wt()-w,w=(120>w?120:480>w?480:1080>w?1080:1920>w?1920:3e3>w?3e3:4320>w?4320:1960*R_(w/1960))-w,10<w){r.timeoutHandle=Hc(qi.bind(null,r,on,Ar),w);break}qi(r,on,Ar);break;case 5:qi(r,on,Ar);break;default:throw Error(n(329))}}}return ln(r,wt()),r.callbackNode===c?by.bind(null,r):null}function Bf(r,o){var c=ea;return r.current.memoizedState.isDehydrated&&(zi(r,o).flags|=256),r=qs(r,o),r!==2&&(o=on,on=c,o!==null&&zf(o)),r}function zf(r){on===null?on=r:on.push.apply(on,r)}function N_(r){for(var o=r;;){if(o.flags&16384){var c=o.updateQueue;if(c!==null&&(c=c.stores,c!==null))for(var w=0;w<c.length;w++){var k=c[w],C=k.getSnapshot;k=k.value;try{if(!zn(C(),k))return!1}catch{return!1}}}if(c=o.child,o.subtreeFlags&16384&&c!==null)c.return=o,o=c;else{if(o===r)break;for(;o.sibling===null;){if(o.return===null||o.return===r)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function ti(r,o){for(o&=~Mf,o&=~Ms,r.suspendedLanes|=o,r.pingedLanes&=~o,r=r.expirationTimes;0<o;){var c=31-Bn(o),w=1<<c;r[c]=-1,o&=~w}}function Sy(r){if((Je&6)!==0)throw Error(n(327));Mo();var o=Ga(r,0);if((o&1)===0)return ln(r,wt()),null;var c=qs(r,o);if(r.tag!==0&&c===2){var w=yc(r);w!==0&&(o=w,c=Bf(r,w))}if(c===1)throw c=Jl,zi(r,0),ti(r,o),ln(r,wt()),c;if(c===6)throw Error(n(345));return r.finishedWork=r.current.alternate,r.finishedLanes=o,qi(r,on,Ar),ln(r,wt()),null}function qf(r,o){var c=Je;Je|=1;try{return r(o)}finally{Je=c,Je===0&&(Lo=wt()+500,ps&&Qr())}}function Bi(r){Jr!==null&&Jr.tag===0&&(Je&6)===0&&Mo();var o=Je;Je|=1;var c=Rn.transition,w=ot;try{if(Rn.transition=null,ot=1,r)return r()}finally{ot=w,Rn.transition=c,Je=o,(Je&6)===0&&Qr()}}function Uf(){gn=Io.current,ft(Io)}function zi(r,o){r.finishedWork=null,r.finishedLanes=0;var c=r.timeoutHandle;if(c!==-1&&(r.timeoutHandle=-1,s_(c)),Et!==null)for(c=Et.return;c!==null;){var w=c;switch(Yc(w),w.tag){case 1:w=w.type.childContextTypes,w!=null&&ds();break;case 3:To(),ft(tn),ft(Vt),cf();break;case 5:sf(w);break;case 4:To();break;case 13:ft(pt);break;case 19:ft(pt);break;case 10:nf(w.type._context);break;case 22:case 23:Uf()}c=c.return}if(Nt=r,Et=r=ni(r.current,null),jt=gn=o,At=0,Jl=null,Mf=Ms=Fi=0,on=ea=null,Mi!==null){for(o=0;o<Mi.length;o++)if(c=Mi[o],w=c.interleaved,w!==null){c.interleaved=null;var k=w.next,C=c.pending;if(C!==null){var U=C.next;C.next=k,w.next=U}c.pending=w}Mi=null}return r}function xy(r,o){do{var c=Et;try{if(tf(),_s.current=Ps,ks){for(var w=mt.memoizedState;w!==null;){var k=w.queue;k!==null&&(k.pending=null),w=w.next}ks=!1}if(ji=0,Rt=Pt=mt=null,Kl=!1,Ql=0,Lf.current=null,c===null||c.return===null){At=1,Jl=o,Et=null;break}e:{var C=r,U=c.return,G=c,oe=o;if(o=jt,G.flags|=32768,oe!==null&&typeof oe=="object"&&typeof oe.then=="function"){var de=oe,Se=G,Ee=Se.tag;if((Se.mode&1)===0&&(Ee===0||Ee===11||Ee===15)){var be=Se.alternate;be?(Se.updateQueue=be.updateQueue,Se.memoizedState=be.memoizedState,Se.lanes=be.lanes):(Se.updateQueue=null,Se.memoizedState=null)}var Pe=Kv(U);if(Pe!==null){Pe.flags&=-257,Qv(Pe,U,G,C,o),Pe.mode&1&&Wv(C,de,o),o=Pe,oe=de;var Ne=o.updateQueue;if(Ne===null){var Ie=new Set;Ie.add(oe),o.updateQueue=Ie}else Ne.add(oe);break e}else{if((o&1)===0){Wv(C,de,o),Vf();break e}oe=Error(n(426))}}else if(dt&&G.mode&1){var bt=Kv(U);if(bt!==null){(bt.flags&65536)===0&&(bt.flags|=256),Qv(bt,U,G,C,o),Jc(Ro(oe,G));break e}}C=oe=Ro(oe,G),At!==4&&(At=2),ea===null?ea=[C]:ea.push(C),C=U;do{switch(C.tag){case 3:C.flags|=65536,o&=-o,C.lanes|=o;var ue=Hv(C,oe,o);yv(C,ue);break e;case 1:G=oe;var ae=C.type,fe=C.stateNode;if((C.flags&128)===0&&(typeof ae.getDerivedStateFromError=="function"||fe!==null&&typeof fe.componentDidCatch=="function"&&(Zr===null||!Zr.has(fe)))){C.flags|=65536,o&=-o,C.lanes|=o;var ke=$v(C,G,o);yv(C,ke);break e}}C=C.return}while(C!==null)}ky(c)}catch(Me){o=Me,Et===c&&c!==null&&(Et=c=c.return);continue}break}while(!0)}
vendor: 4,563 bytes, line 40
40function Ey(){var r=Ls.current;return Ls.current=Ps,r===null?Ps:r}function Vf(){(At===0||At===3||At===2)&&(At=4),Nt===null||(Fi&268435455)===0&&(Ms&268435455)===0||ti(Nt,jt)}function qs(r,o){var c=Je;Je|=2;var w=Ey();(Nt!==r||jt!==o)&&(Ar=null,zi(r,o));do try{I_();break}catch(k){xy(r,k)}while(!0);if(tf(),Je=c,Ls.current=w,Et!==null)throw Error(n(261));return Nt=null,jt=0,At}function I_(){for(;Et!==null;)_y(Et)}function L_(){for(;Et!==null&&!oE();)_y(Et)}function _y(r){var o=Py(r.alternate,r,gn);r.memoizedProps=r.pendingProps,o===null?ky(r):Et=o,Lf.current=null}function ky(r){var o=r;do{var c=o.alternate;if(r=o.return,(o.flags&32768)===0){if(c=O_(c,o,gn),c!==null){Et=c;return}}else{if(c=C_(c,o),c!==null){c.flags&=32767,Et=c;return}if(r!==null)r.flags|=32768,r.subtreeFlags=0,r.deletions=null;else{At=6,Et=null;return}}if(o=o.sibling,o!==null){Et=o;return}Et=o=r}while(o!==null);At===0&&(At=5)}function qi(r,o,c){var w=ot,k=Rn.transition;try{Rn.transition=null,ot=1,M_(r,o,c,w)}finally{Rn.transition=k,ot=w}return null}function M_(r,o,c,w){do Mo();while(Jr!==null);if((Je&6)!==0)throw Error(n(327));c=r.finishedWork;var k=r.finishedLanes;if(c===null)return null;if(r.finishedWork=null,r.finishedLanes=0,c===r.current)throw Error(n(177));r.callbackNode=null,r.callbackPriority=0;var C=c.lanes|c.childLanes;if(mE(r,C),r===Nt&&(Et=Nt=null,jt=0),(c.subtreeFlags&2064)===0&&(c.flags&2064)===0||js||(js=!0,Ay($a,function(){return Mo(),null})),C=(c.flags&15990)!==0,(c.subtreeFlags&15990)!==0||C){C=Rn.transition,Rn.transition=null;var U=ot;ot=1;var G=Je;Je|=4,Lf.current=null,A_(r,c),my(c,r),t_(Uc),Za=!!qc,Uc=qc=null,r.current=c,T_(c),lE(),Je=G,ot=U,Rn.transition=C}else r.current=c;if(js&&(js=!1,Jr=r,Fs=k),C=r.pendingLanes,C===0&&(Zr=null),uE(c.stateNode),ln(r,wt()),o!==null)for(w=r.onRecoverableError,c=0;c<o.length;c++)k=o[c],w(k.value,{componentStack:k.stack,digest:k.digest});if(Ds)throw Ds=!1,r=jf,jf=null,r;return(Fs&1)!==0&&r.tag!==0&&Mo(),C=r.pendingLanes,(C&1)!==0?r===Ff?ta++:(ta=0,Ff=r):ta=0,Qr(),null}function Mo(){if(Jr!==null){var r=hm(Fs),o=Rn.transition,c=ot;try{if(Rn.transition=null,ot=16>r?16:r,Jr===null)var w=!1;else{if(r=Jr,Jr=null,Fs=0,(Je&6)!==0)throw Error(n(331));var k=Je;for(Je|=4,Te=r.current;Te!==null;){var C=Te,U=C.child;if((Te.flags&16)!==0){var G=C.deletions;if(G!==null){for(var oe=0;oe<G.length;oe++){var de=G[oe];for(Te=de;Te!==null;){var Se=Te;switch(Se.tag){case 0:case 11:case 15:Zl(8,Se,C)}var Ee=Se.child;if(Ee!==null)Ee.return=Se,Te=Ee;else for(;Te!==null;){Se=Te;var be=Se.sibling,Pe=Se.return;if(cy(Se),Se===de){Te=null;break}if(be!==null){be.return=Pe,Te=be;break}Te=Pe}}}var Ne=C.alternate;if(Ne!==null){var Ie=Ne.child;if(Ie!==null){Ne.child=null;do{var bt=Ie.sibling;Ie.sibling=null,Ie=bt}while(Ie!==null)}}Te=C}}if((C.subtreeFlags&2064)!==0&&U!==null)U.return=C,Te=U;else e:for(;Te!==null;){if(C=Te,(C.flags&2048)!==0)switch(C.tag){case 0:case 11:case 15:Zl(9,C,C.return)}var ue=C.sibling;if(ue!==null){ue.return=C.return,Te=ue;break e}Te=C.return}}var ae=r.current;for(Te=ae;Te!==null;){U=Te;var fe=U.child;if((U.subtreeFlags&2064)!==0&&fe!==null)fe.return=U,Te=fe;else e:for(U=ae;Te!==null;){if(G=Te,(G.flags&2048)!==0)try{switch(G.tag){case 0:case 11:case 15:Is(9,G)}}catch(Me){vt(G,G.return,Me)}if(G===U){Te=null;break e}var ke=G.sibling;if(ke!==null){ke.return=G.return,Te=ke;break e}Te=G.return}}if(Je=k,Qr(),nr&&typeof nr.onPostCommitFiberRoot=="function")try{nr.onPostCommitFiberRoot(Wa,r)}catch{}w=!0}return w}finally{ot=c,Rn.transition=o}}return!1}function Oy(r,o,c){o=Ro(c,o),o=Hv(r,o,1),r=Yr(r,o,1),o=Gt(),r!==null&&(kl(r,1,o),ln(r,o))}function vt(r,o,c){if(r.tag===3)Oy(r,r,c);else for(;o!==null;){if(o.tag===3){Oy(o,r,c);break}else if(o.tag===1){var w=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof w.componentDidCatch=="function"&&(Zr===null||!Zr.has(w))){r=Ro(c,r),r=$v(o,r,1),o=Yr(o,r,1),r=Gt(),o!==null&&(kl(o,1,r),ln(o,r));break}}o=o.return}}function D_(r,o,c){var w=r.pingCache;w!==null&&w.delete(o),o=Gt(),r.pingedLanes|=r.suspendedLanes&c,Nt===r&&(jt&c)===c&&(At===4||At===3&&(jt&130023424)===jt&&500>wt()-Df?zi(r,0):Mf|=c),ln(r,o)}function Cy(r,o){o===0&&((r.mode&1)===0?o=1:(o=Qa,Qa<<=1,(Qa&130023424)===0&&(Qa=4194304)));var c=Gt();r=Or(r,o),r!==null&&(kl(r,o,c),ln(r,c))}function j_(r){var o=r.memoizedState,c=0;o!==null&&(c=o.retryLane),Cy(r,c)}function F_(r,o){var c=0;switch(r.tag){case 13:var w=r.stateNode,k=r.memoizedState;k!==null&&(c=k.retryLane);break;case 19:w=r.stateNode;break;default:throw Error(n(314))}w!==null&&w.delete(o),Cy(r,c)}var Py;
vendor: 10,363 bytes, line 40
40Py=function(r,o,c){if(r!==null)if(r.memoizedProps!==o.pendingProps||tn.current)rn=!0;else{if((r.lanes&c)===0&&(o.flags&128)===0)return rn=!1,k_(r,o,c);rn=(r.flags&131072)!==0}else rn=!1,dt&&(o.flags&1048576)!==0&&av(o,vs,o.index);switch(o.lanes=0,o.tag){case 2:var w=o.type;Rs(r,o),r=o.pendingProps;var k=Eo(o,Vt.current);Ao(o,c),k=hf(null,o,w,r,k,c);var C=pf();return o.flags|=1,typeof k=="object"&&k!==null&&typeof k.render=="function"&&k.$$typeof===void 0?(o.tag=1,o.memoizedState=null,o.updateQueue=null,nn(w)?(C=!0,hs(o)):C=!1,o.memoizedState=k.state!==null&&k.state!==void 0?k.state:null,lf(o),k.updater=As,o.stateNode=k,k._reactInternals=o,bf(o,w,r,c),o=_f(null,o,w,!0,C,c)):(o.tag=0,dt&&C&&Gc(o),Qt(null,o,k,c),o=o.child),o;case 16:w=o.elementType;e:{switch(Rs(r,o),r=o.pendingProps,k=w._init,w=k(w._payload),o.type=w,k=o.tag=z_(w),r=Un(w,r),k){case 0:o=Ef(null,o,w,r,c);break e;case 1:o=ey(null,o,w,r,c);break e;case 11:o=Gv(null,o,w,r,c);break e;case 14:o=Yv(null,o,w,Un(w.type,r),c);break e}throw Error(n(306,w,""))}return o;case 0:return w=o.type,k=o.pendingProps,k=o.elementType===w?k:Un(w,k),Ef(r,o,w,k,c);case 1:return w=o.type,k=o.pendingProps,k=o.elementType===w?k:Un(w,k),ey(r,o,w,k,c);case 3:e:{if(ty(o),r===null)throw Error(n(387));w=o.pendingProps,C=o.memoizedState,k=C.element,vv(r,o),xs(o,w,null,c);var U=o.memoizedState;if(w=U.element,C.isDehydrated)if(C={element:w,isDehydrated:!1,cache:U.cache,pendingSuspenseBoundaries:U.pendingSuspenseBoundaries,transitions:U.transitions},o.updateQueue.baseState=C,o.memoizedState=C,o.flags&256){k=Ro(Error(n(423)),o),o=ny(r,o,w,c,k);break e}else if(w!==k){k=Ro(Error(n(424)),o),o=ny(r,o,w,c,k);break e}else for(yn=$r(o.stateNode.containerInfo.firstChild),vn=o,dt=!0,qn=null,c=pv(o,null,w,c),o.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling;else{if(Oo(),w===k){o=Pr(r,o,c);break e}Qt(r,o,w,c)}o=o.child}return o;case 5:return wv(o),r===null&&Zc(o),w=o.type,k=o.pendingProps,C=r!==null?r.memoizedProps:null,U=k.children,Vc(w,k)?U=null:C!==null&&Vc(w,C)&&(o.flags|=32),Jv(r,o),Qt(r,o,U,c),o.child;case 6:return r===null&&Zc(o),null;case 13:return ry(r,o,c);case 4:return af(o,o.stateNode.containerInfo),w=o.pendingProps,r===null?o.child=Co(o,null,w,c):Qt(r,o,w,c),o.child;case 11:return w=o.type,k=o.pendingProps,k=o.elementType===w?k:Un(w,k),Gv(r,o,w,k,c);case 7:return Qt(r,o,o.pendingProps,c),o.child;case 8:return Qt(r,o,o.pendingProps.children,c),o.child;case 12:return Qt(r,o,o.pendingProps.children,c),o.child;case 10:e:{if(w=o.type._context,k=o.pendingProps,C=o.memoizedProps,U=k.value,at(ws,w._currentValue),w._currentValue=U,C!==null)if(zn(C.value,U)){if(C.children===k.children&&!tn.current){o=Pr(r,o,c);break e}}else for(C=o.child,C!==null&&(C.return=o);C!==null;){var G=C.dependencies;if(G!==null){U=C.child;for(var oe=G.firstContext;oe!==null;){if(oe.context===w){if(C.tag===1){oe=Cr(-1,c&-c),oe.tag=2;var de=C.updateQueue;if(de!==null){de=de.shared;var Se=de.pending;Se===null?oe.next=oe:(oe.next=Se.next,Se.next=oe),de.pending=oe}}C.lanes|=c,oe=C.alternate,oe!==null&&(oe.lanes|=c),rf(C.return,c,o),G.lanes|=c;break}oe=oe.next}}else if(C.tag===10)U=C.type===o.type?null:C.child;else if(C.tag===18){if(U=C.return,U===null)throw Error(n(341));U.lanes|=c,G=U.alternate,G!==null&&(G.lanes|=c),rf(U,c,o),U=C.sibling}else U=C.child;if(U!==null)U.return=C;else for(U=C;U!==null;){if(U===o){U=null;break}if(C=U.sibling,C!==null){C.return=U.return,U=C;break}U=U.return}C=U}Qt(r,o,k.children,c),o=o.child}return o;case 9:return k=o.type,w=o.pendingProps.children,Ao(o,c),k=An(k),w=w(k),o.flags|=1,Qt(r,o,w,c),o.child;case 14:return w=o.type,k=Un(w,o.pendingProps),k=Un(w.type,k),Yv(r,o,w,k,c);case 15:return Xv(r,o,o.type,o.pendingProps,c);case 17:return w=o.type,k=o.pendingProps,k=o.elementType===w?k:Un(w,k),Rs(r,o),o.tag=1,nn(w)?(r=!0,hs(o)):r=!1,Ao(o,c),Uv(o,w,k),bf(o,w,k,c),_f(null,o,w,!0,r,c);case 19:return oy(r,o,c);case 22:return Zv(r,o,c)}throw Error(n(156,o.tag))};function Ay(r,o){return sm(r,o)}function B_(r,o,c,w){this.tag=r,this.key=c,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=w,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Nn(r,o,c,w){return new B_(r,o,c,w)}function Hf(r){return r=r.prototype,!(!r||!r.isReactComponent)}function z_(r){if(typeof r=="function")return Hf(r)?1:0;if(r!=null){if(r=r.$$typeof,r===N)return 11;if(r===H)return 14}return 2}function ni(r,o){var c=r.alternate;return c===null?(c=Nn(r.tag,o,r.key,r.mode),c.elementType=r.elementType,c.type=r.type,c.stateNode=r.stateNode,c.alternate=r,r.alternate=c):(c.pendingProps=o,c.type=r.type,c.flags=0,c.subtreeFlags=0,c.deletions=null),c.flags=r.flags&14680064,c.childLanes=r.childLanes,c.lanes=r.lanes,c.child=r.child,c.memoizedProps=r.memoizedProps,c.memoizedState=r.memoizedState,c.updateQueue=r.updateQueue,o=r.dependencies,c.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},c.sibling=r.sibling,c.index=r.index,c.ref=r.ref,c}function Us(r,o,c,w,k,C){var U=2;if(w=r,typeof r=="function")Hf(r)&&(U=1);else if(typeof r=="string")U=5;else e:switch(r){case I:return Ui(c.children,k,C,o);case j:U=8,k|=8;break;case B:return r=Nn(12,c,o,k|2),r.elementType=B,r.lanes=C,r;case F:return r=Nn(13,c,o,k),r.elementType=F,r.lanes=C,r;case z:return r=Nn(19,c,o,k),r.elementType=z,r.lanes=C,r;case Y:return Vs(c,k,C,o);default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case L:U=10;break e;case P:U=9;break e;case N:U=11;break e;case H:U=14;break e;case Q:U=16,w=null;break e}throw Error(n(130,r==null?r:typeof r,""))}return o=Nn(U,c,o,k),o.elementType=r,o.type=w,o.lanes=C,o}function Ui(r,o,c,w){return r=Nn(7,r,w,o),r.lanes=c,r}function Vs(r,o,c,w){return r=Nn(22,r,w,o),r.elementType=Y,r.lanes=c,r.stateNode={isHidden:!1},r}function $f(r,o,c){return r=Nn(6,r,null,o),r.lanes=c,r}function Wf(r,o,c){return o=Nn(4,r.children!==null?r.children:[],r.key,o),o.lanes=c,o.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},o}function q_(r,o,c,w,k){this.tag=o,this.containerInfo=r,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gc(0),this.expirationTimes=gc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gc(0),this.identifierPrefix=w,this.onRecoverableError=k,this.mutableSourceEagerHydrationData=null}function Kf(r,o,c,w,k,C,U,G,oe){return r=new q_(r,o,c,G,oe),o===1?(o=1,C===!0&&(o|=8)):o=0,C=Nn(3,null,null,o),r.current=C,C.stateNode=r,C.memoizedState={element:w,isDehydrated:c,cache:null,transitions:null,pendingSuspenseBoundaries:null},lf(C),r}function U_(r,o,c){var w=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:R,key:w==null?null:""+w,children:r,containerInfo:o,implementation:c}}function Ty(r){if(!r)return Kr;r=r._reactInternals;e:{if(Ti(r)!==r||r.tag!==1)throw Error(n(170));var o=r;do{switch(o.tag){case 3:o=o.stateNode.context;break e;case 1:if(nn(o.type)){o=o.stateNode.__reactInternalMemoizedMergedChildContext;break e}}o=o.return}while(o!==null);throw Error(n(171))}if(r.tag===1){var c=r.type;if(nn(c))return iv(r,c,o)}return o}function Ry(r,o,c,w,k,C,U,G,oe){return r=Kf(c,w,!0,r,k,C,U,G,oe),r.context=Ty(null),c=r.current,w=Gt(),k=ei(c),C=Cr(w,k),C.callback=o??null,Yr(c,C,k),r.current.lanes=k,kl(r,k,w),ln(r,w),r}function Hs(r,o,c,w){var k=o.current,C=Gt(),U=ei(k);return c=Ty(c),o.context===null?o.context=c:o.pendingContext=c,o=Cr(C,U),o.payload={element:r},w=w===void 0?null:w,w!==null&&(o.callback=w),r=Yr(k,o,U),r!==null&&($n(r,k,U,C),Ss(r,k,U)),U}function $s(r){if(r=r.current,!r.child)return null;switch(r.child.tag){case 5:return r.child.stateNode;default:return r.child.stateNode}}function Ny(r,o){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var c=r.retryLane;r.retryLane=c!==0&&c<o?c:o}}function Qf(r,o){Ny(r,o),(r=r.alternate)&&Ny(r,o)}function V_(){return null}var Iy=typeof reportError=="function"?reportError:function(r){console.error(r)};function Gf(r){this._internalRoot=r}Ws.prototype.render=Gf.prototype.render=function(r){var o=this._internalRoot;if(o===null)throw Error(n(409));Hs(r,o,null,null)},Ws.prototype.unmount=Gf.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var o=r.containerInfo;Bi(function(){Hs(null,r,null,null)}),o[xr]=null}};function Ws(r){this._internalRoot=r}Ws.prototype.unstable_scheduleHydration=function(r){if(r){var o=vm();r={blockedOn:null,target:r,priority:o};for(var c=0;c<Ur.length&&o!==0&&o<Ur[c].priority;c++);Ur.splice(c,0,r),c===0&&wm(r)}};function Yf(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function Ks(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11&&(r.nodeType!==8||r.nodeValue!==" react-mount-point-unstable "))}function Ly(){}function H_(r,o,c,w,k){if(k){if(typeof w=="function"){var C=w;w=function(){var de=$s(U);C.call(de)}}var U=Ry(o,w,r,0,null,!1,!1,"",Ly);return r._reactRootContainer=U,r[xr]=U.current,Bl(r.nodeType===8?r.parentNode:r),Bi(),U}for(;k=r.lastChild;)r.removeChild(k);if(typeof w=="function"){var G=w;w=function(){var de=$s(oe);G.call(de)}}var oe=Kf(r,0,!1,null,null,!1,!1,"",Ly);return r._reactRootContainer=oe,r[xr]=oe.current,Bl(r.nodeType===8?r.parentNode:r),Bi(function(){Hs(o,oe,c,w)}),oe}function Qs(r,o,c,w,k){var C=c._reactRootContainer;if(C){var U=C;if(typeof k=="function"){var G=k;k=function(){var oe=$s(U);G.call(oe)}}Hs(o,U,r,k)}else U=H_(c,o,r,k,w);return $s(U)}pm=function(r){switch(r.tag){case 3:var o=r.stateNode;if(o.current.memoizedState.isDehydrated){var c=_l(o.pendingLanes);c!==0&&(wc(o,c|1),ln(o,wt()),(Je&6)===0&&(Lo=wt()+500,Qr()))}break;case 13:Bi(function(){var w=Or(r,1);if(w!==null){var k=Gt();$n(w,r,1,k)}}),Qf(r,1)}},bc=function(r){if(r.tag===13){var o=Or(r,134217728);if(o!==null){var c=Gt();$n(o,r,134217728,c)}Qf(r,134217728)}},mm=function(r){if(r.tag===13){var o=ei(r),c=Or(r,o);if(c!==null){var w=Gt();$n(c,r,o,w)}Qf(r,o)}},vm=function(){return ot},ym=function(r,o){var c=ot;try{return ot=r,o()}finally{ot=c}}
40,dc=function(r,o,c){switch(o){case"input":if(Ze(r,c),o=c.name,c.type==="radio"&&o!=null){for(c=r;c.parentNode;)c=c.parentNode;for(c=c.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),o=0;o<c.length;o++){var w=c[o];if(w!==r&&w.form===r.form){var k=fs(w);if(!k)throw Error(n(90));Oe(w),Ze(w,k)}}}break;case"textarea":ye(r,c);break;case"select":o=c.value,o!=null&&Z(r,!!c.multiple,o,!1)}},tm=qf,nm=Bi;var $_={usingClientEntryPoint:!1,Events:[Ul,So,fs,Jp,em,qf]},na={findFiberByHostInstance:Ri,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},W_={bundleType:na.bundleType,version:na.version,rendererPackageName:na.rendererPackageName,rendererConfig:na.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:E.ReactCurrentDispatcher,findHostInstanceByFiber:function(r){return r=lm(r),r===null?null:r.stateNode},findFiberByHostInstance:na.findFiberByHostInstance||V_,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Gs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Gs.isDisabled&&Gs.supportsFiber)try{Wa=Gs.inject(W_),nr=Gs}catch{}}return an.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$_,an.createPortal=function(r,o){var c=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Yf(o))throw Error(n(200));return U_(r,o,null,c)},an.createRoot=function(r,o){if(!Yf(r))throw Error(n(299));var c=!1,w="",k=Iy;return o!=null&&(o.unstable_strictMode===!0&&(c=!0),o.identifierPrefix!==void 0&&(w=o.identifierPrefix),o.onRecoverableError!==void 0&&(k=o.onRecoverableError)),o=Kf(r,1,!1,null,null,c,!1,w,k),r[xr]=o.current,Bl(r.nodeType===8?r.parentNode:r),new Gf(o)},an.findDOMNode=function(r){if(r==null)return null;if(r.nodeType===1)return r;var o=r._reactInternals;if(o===void 0)throw typeof r.render=="function"?Error(n(188)):(r=Object.keys(r).join(","),Error(n(268,r)));return r=lm(o),r=r===null?null:r.stateNode,r},an.flushSync=function(r){return Bi(r)},an.hydrate=function(r,o,c){if(!Ks(o))throw Error(n(200));return Qs(null,r,o,!0,c)},an.hydrateRoot=function(r,o,c){if(!Yf(r))throw Error(n(405));var w=c!=null&&c.hydratedSources||null,k=!1,C="",U=Iy;if(c!=null&&(c.unstable_strictMode===!0&&(k=!0),c.identifierPrefix!==void 0&&(C=c.identifierPrefix),c.onRecoverableError!==void 0&&(U=c.onRecoverableError)),o=Ry(o,null,r,1,c??null,k,!1,C,U),r[xr]=o.current,Bl(r),w)for(r=0;r<w.length;r++)c=w[r],k=c._getVersion,k=k(c._source),o.mutableSourceEagerHydrationData==null?o.mutableSourceEagerHydrationData=[c,k]:o.mutableSourceEagerHydrationData.push(c,k);return new Ws(o)},an.render=function(r,o,c){if(!Ks(o))throw Error(n(200));return Qs(null,r,o,!1,c)},an.unmountComponentAtNode=function(r){if(!Ks(r))throw Error(n(40));return r._reactRootContainer?(Bi(function(){Qs(null,null,r,!1,function(){r._reactRootContainer=null,r[xr]=null})}),!0):!1},an.unstable_batchedUpdates=qf,an.unstable_renderSubtreeIntoContainer=function(r,o,c,w){if(!Ks(c))throw Error(n(200));if(r==null||r._reactInternals===void 0)throw Error(n(38));return Qs(r,o,c,!1,w)},an.version="18.3.1-next-f1338f8080-20240426",an}var Vy;function Uh(){if(Vy)return ed.exports;Vy=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),ed.exports=tk(),ed.exports}var Hy;function nk(){if(Hy)return Xs;Hy=1;var e=Uh();return Xs.createRoot=e.createRoot,Xs.hydrateRoot=e.hydrateRoot,Xs}var rk=nk();const LD=Ei(rk);var cl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},ik={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},si,zh,m0,ok=(m0=class{constructor(){je(this,si,ik);je(this,zh,!1)}setTimeoutProvider(e){Ce(this,si,e)}setTimeout(e,t){return ne(this,si).setTimeout(e,t)}clearTimeout(e){ne(this,si).clearTimeout(e)}setInterval(e,t){return ne(this,si).setInterval(e,t)}clearInterval(e){ne(this,si).clearInterval(e)}},si=new WeakMap,zh=new WeakMap,m0),Vi=new ok;function lk(e){setTimeout(e,0)}var eo=typeof window>"u"||"Deno"in globalThis;function Zt(){}function ak(e,t){return typeof e=="function"?e(t):e}function Vd(e){return typeof e=="number"&&e>=0&&e!==1/0}function O0(e,t){return Math.max(e+(t||0)-Date.now(),0)}function gi(e,t){return typeof e=="function"?e(t):e}function Ln(e,t){return typeof e=="function"?e(t):e}function $y(e,t){const{type:n="all",exact:i,fetchStatus:l,predicate:a,queryKey:s,stale:u}=e;if(s){if(i){if(t.queryHash!==Vh(s,t.options))return!1}else if(!ba(t.queryKey,s))return!1}if(n!=="all"){const h=t.isActive();if(n==="active"&&!h||n==="inactive"&&h)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||l&&l!==t.state.fetchStatus||a&&!a(t))}function Wy(e,t){const{exact:n,status:i,predicate:l,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(to(t.options.mutationKey)!==to(a))return!1}else if(!ba(t.options.mutationKey,a))return!1}return!(i&&t.state.status!==i||l&&!l(t))}function Vh(e,t){return((t==null?void 0:t.queryKeyHashFn)||to)(e)}function to(e){return JSON.stringify(e,(t,n)=>Hd(n)?Object.keys(n).sort().reduce((i,l)=>(i[l]=n[l],i),{}):n)}function ba(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>ba(e[n],t[n])):!1}var sk=Object.prototype.hasOwnProperty;function C0(e,t){if(e===t)return e;const n=Ky(e)&&Ky(t);if(!n&&!(Hd(e)&&Hd(t)))return t;const l=(n?e:Object.keys(e)).length,a=n?t:Object.keys(t),s=a.length,u=n?new Array(s):{};let h=0;for(let v=0;v<s;v++){const p=n?v:a[v],f=e[p],d=t[p];if(f===d){u[p]=f,(n?v<l:sk.call(e,p))&&h++;continue}if(f===null||d===null||typeof f!="object"||typeof d!="object"){u[p]=d;continue}const m=C0(f,d);u[p]=m,m===f&&h++}return l===s&&h===l?e:u}function vu(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Ky(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Hd(e){if(!Qy(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;
vendor: 4,213 bytes, line 40
40return!(!Qy(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Qy(e){return Object.prototype.toString.call(e)==="[object Object]"}function uk(e){return new Promise(t=>{Vi.setTimeout(t,e)})}function $d(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?C0(e,t):t}function ck(e,t,n=0){const i=[...e,t];return n&&i.length>n?i.slice(1):i}function fk(e,t,n=0){const i=[t,...e];return n&&i.length>n?i.slice(0,-1):i}var Hh=Symbol();function P0(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Hh?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function A0(e,t){return typeof e=="function"?e(...t):!!e}var $i,ui,Qo,v0,dk=(v0=class extends cl{constructor(){super();je(this,$i);je(this,ui);je(this,Qo);Ce(this,Qo,t=>{if(!eo&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){ne(this,ui)||this.setEventListener(ne(this,Qo))}onUnsubscribe(){var t;this.hasListeners()||((t=ne(this,ui))==null||t.call(this),Ce(this,ui,void 0))}setEventListener(t){var n;Ce(this,Qo,t),(n=ne(this,ui))==null||n.call(this),Ce(this,ui,t(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(t){ne(this,$i)!==t&&(Ce(this,$i,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof ne(this,$i)=="boolean"?ne(this,$i):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},$i=new WeakMap,ui=new WeakMap,Qo=new WeakMap,v0),$h=new dk;function Wd(){let e,t;const n=new Promise((l,a)=>{e=l,t=a});n.status="pending",n.catch(()=>{});function i(l){Object.assign(n,l),delete n.resolve,delete n.reject}return n.resolve=l=>{i({status:"fulfilled",value:l}),e(l)},n.reject=l=>{i({status:"rejected",reason:l}),t(l)},n}var hk=lk;function pk(){let e=[],t=0,n=u=>{u()},i=u=>{u()},l=hk;const a=u=>{t?e.push(u):l(()=>{n(u)})},s=()=>{const u=e;e=[],u.length&&l(()=>{i(()=>{u.forEach(h=>{n(h)})})})};return{batch:u=>{let h;t++;try{h=u()}finally{t--,t||s()}return h},batchCalls:u=>(...h)=>{a(()=>{u(...h)})},schedule:a,setNotifyFunction:u=>{n=u},setBatchNotifyFunction:u=>{i=u},setScheduler:u=>{l=u}}}var Tt=pk(),Go,ci,Yo,y0,mk=(y0=class extends cl{constructor(){super();je(this,Go,!0);je(this,ci);je(this,Yo);Ce(this,Yo,t=>{if(!eo&&window.addEventListener){const n=()=>t(!0),i=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",i)}}})}onSubscribe(){ne(this,ci)||this.setEventListener(ne(this,Yo))}onUnsubscribe(){var t;this.hasListeners()||((t=ne(this,ci))==null||t.call(this),Ce(this,ci,void 0))}setEventListener(t){var n;Ce(this,Yo,t),(n=ne(this,ci))==null||n.call(this),Ce(this,ci,t(this.setOnline.bind(this)))}setOnline(t){ne(this,Go)!==t&&(Ce(this,Go,t),this.listeners.forEach(i=>{i(t)}))}isOnline(){return ne(this,Go)}},Go=new WeakMap,ci=new WeakMap,Yo=new WeakMap,y0),yu=new mk;function vk(e){return Math.min(1e3*2**e,3e4)}function T0(e){return(e??"online")==="online"?yu.isOnline():!0}var Kd=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function R0(e){let t=!1,n=0,i;const l=Wd(),a=()=>l.status!=="pending",s=y=>{var g;if(!a()){const b=new Kd(y);d(b),(g=e.onCancel)==null||g.call(e,b)}},u=()=>{t=!0},h=()=>{t=!1},v=()=>$h.isFocused()&&(e.networkMode==="always"||yu.isOnline())&&e.canRun(),p=()=>T0(e.networkMode)&&e.canRun(),f=y=>{a()||(i==null||i(),l.resolve(y))},d=y=>{a()||(i==null||i(),l.reject(y))},m=()=>new Promise(y=>{var g;i=b=>{(a()||v())&&y(b)},(g=e.onPause)==null||g.call(e)}).then(()=>{var y;i=void 0,a()||(y=e.onContinue)==null||y.call(e)}),S=()=>{if(a())return;let y;const g=n===0?e.initialPromise:void 0;try{y=g??e.fn()}catch(b){y=Promise.reject(b)}Promise.resolve(y).then(f).catch(b=>{var R;if(a())return;const x=e.retry??(eo?0:3),_=e.retryDelay??vk,E=typeof _=="function"?_(n,b):_,O=x===!0||typeof x=="number"&&n<x||typeof x=="function"&&x(n,b);
vendor: 4,096 bytes, line 40
40if(t||!O){d(b);return}n++,(R=e.onFail)==null||R.call(e,n,b),uk(E).then(()=>v()?void 0:m()).then(()=>{t?d(b):S()})})};return{promise:l,status:()=>l.status,cancel:s,continue:()=>(i==null||i(),l),cancelRetry:u,continueRetry:h,canStart:p,start:()=>(p()?S():m().then(S),l)}}var Wi,g0,N0=(g0=class{constructor(){je(this,Wi)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Vd(this.gcTime)&&Ce(this,Wi,Vi.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(eo?1/0:300*1e3))}clearGcTimeout(){ne(this,Wi)&&(Vi.clearTimeout(ne(this,Wi)),Ce(this,Wi,void 0))}},Wi=new WeakMap,g0),Ki,Xo,In,Qi,Mt,Ta,Gi,Gn,Rr,w0,yk=(w0=class extends N0{constructor(t){super();je(this,Gn);je(this,Ki);je(this,Xo);je(this,In);je(this,Qi);je(this,Mt);je(this,Ta);je(this,Gi);Ce(this,Gi,!1),Ce(this,Ta,t.defaultOptions),this.setOptions(t.options),this.observers=[],Ce(this,Qi,t.client),Ce(this,In,ne(this,Qi).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Ce(this,Ki,Gy(this.options)),this.state=t.state??ne(this,Ki),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=ne(this,Mt))==null?void 0:t.promise}setOptions(t){if(this.options={...ne(this,Ta),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=Gy(this.options);n.data!==void 0&&(this.setData(n.data,{updatedAt:n.dataUpdatedAt,manual:!0}),Ce(this,Ki,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&ne(this,In).remove(this)}setData(t,n){const i=$d(this.state.data,t,this.options);return Ke(this,Gn,Rr).call(this,{data:i,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),i}setState(t,n){Ke(this,Gn,Rr).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var i,l;const n=(i=ne(this,Mt))==null?void 0:i.promise;return(l=ne(this,Mt))==null||l.cancel(t),n?n.then(Zt).catch(Zt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(ne(this,Ki))}isActive(){return this.observers.some(t=>Ln(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Hh||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>gi(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!O0(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(i=>i.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=ne(this,Mt))==null||n.continue()}onOnline(){var n;const t=this.observers.find(i=>i.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=ne(this,Mt))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),ne(this,In).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(ne(this,Mt)&&(ne(this,Gi)?ne(this,Mt).cancel({revert:!0}):ne(this,Mt).cancelRetry()),this.scheduleGc()),ne(this,In).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ke(this,Gn,Rr).call(this,{type:"invalidate"})}async fetch(t,n){var h,v,p,f,d,m,S,y,g,b,x,_;if(this.state.fetchStatus!=="idle"&&((h=ne(this,Mt))==null?void 0:h.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(ne(this,Mt))return ne(this,Mt).continueRetry(),ne(this,Mt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const E=this.observers.find(O=>O.options.queryFn);E&&this.setOptions(E.options)}const i=new AbortController,l=E=>{Object.defineProperty(E,"signal",{enumerable:!0,get:()=>(Ce(this,Gi,!0),i.signal)}
vendor: 4,534 bytes, line 40
40)},a=()=>{const E=P0(this.options,n),R=(()=>{const I={client:ne(this,Qi),queryKey:this.queryKey,meta:this.meta};return l(I),I})();return Ce(this,Gi,!1),this.options.persister?this.options.persister(E,R,this):E(R)},u=(()=>{const E={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:ne(this,Qi),state:this.state,fetchFn:a};return l(E),E})();(v=this.options.behavior)==null||v.onFetch(u,this),Ce(this,Xo,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((p=u.fetchOptions)==null?void 0:p.meta))&&Ke(this,Gn,Rr).call(this,{type:"fetch",meta:(f=u.fetchOptions)==null?void 0:f.meta}),Ce(this,Mt,R0({initialPromise:n==null?void 0:n.initialPromise,fn:u.fetchFn,onCancel:E=>{E instanceof Kd&&E.revert&&this.setState({...ne(this,Xo),fetchStatus:"idle"}),i.abort()},onFail:(E,O)=>{Ke(this,Gn,Rr).call(this,{type:"failed",failureCount:E,error:O})},onPause:()=>{Ke(this,Gn,Rr).call(this,{type:"pause"})},onContinue:()=>{Ke(this,Gn,Rr).call(this,{type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0}));try{const E=await ne(this,Mt).start();if(E===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(E),(m=(d=ne(this,In).config).onSuccess)==null||m.call(d,E,this),(y=(S=ne(this,In).config).onSettled)==null||y.call(S,E,this.state.error,this),E}catch(E){if(E instanceof Kd){if(E.silent)return ne(this,Mt).promise;if(E.revert){if(this.state.data===void 0)throw E;return this.state.data}}throw Ke(this,Gn,Rr).call(this,{type:"error",error:E}),(b=(g=ne(this,In).config).onError)==null||b.call(g,E,this),(_=(x=ne(this,In).config).onSettled)==null||_.call(x,this.state.data,E,this),E}finally{this.scheduleGc()}}},Ki=new WeakMap,Xo=new WeakMap,In=new WeakMap,Qi=new WeakMap,Mt=new WeakMap,Ta=new WeakMap,Gi=new WeakMap,Gn=new WeakSet,Rr=function(t){const n=i=>{switch(t.type){case"failed":return{...i,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...I0(i.data,this.options),fetchMeta:t.meta??null};case"success":const l={...i,data:t.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return Ce(this,Xo,t.manual?l:void 0),l;case"error":const a=t.error;return{...i,error:a,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...t.state}}};this.state=n(this.state),Tt.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),ne(this,In).notify({query:this,type:"updated",action:t})})},w0);function I0(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:T0(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Gy(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,i=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var un,Xe,Ra,Yt,Yi,Zo,Nr,fi,Na,Jo,el,Xi,Zi,di,tl,it,ca,Qd,Gd,Yd,Xd,Zd,Jd,eh,L0,b0,gk=(b0=class extends cl{constructor(t,n){super();je(this,it);je(this,un);je(this,Xe);je(this,Ra);je(this,Yt);je(this,Yi);je(this,Zo);je(this,Nr);je(this,fi);je(this,Na);je(this,Jo);je(this,el);je(this,Xi);je(this,Zi);je(this,di);je(this,tl,new Set);this.options=n,Ce(this,un,t),Ce(this,fi,null),Ce(this,Nr,Wd()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(ne(this,Xe).addObserver(this),Yy(ne(this,Xe),this.options)?Ke(this,it,ca).call(this):this.updateResult(),Ke(this,it,Xd).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return th(ne(this,Xe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return th(ne(this,Xe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Ke(this,it,Zd).call(this),Ke(this,it,Jd).call(this),ne(this,Xe).removeObserver(this)}setOptions(t){const n=this.options,i=ne(this,Xe);
vendor: 28,561 bytes, lines 40-49
40if(this.options=ne(this,un).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ln(this.options.enabled,ne(this,Xe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Ke(this,it,eh).call(this),ne(this,Xe).setOptions(this.options),n._defaulted&&!vu(this.options,n)&&ne(this,un).getQueryCache().notify({type:"observerOptionsUpdated",query:ne(this,Xe),observer:this});const l=this.hasListeners();l&&Xy(ne(this,Xe),i,this.options,n)&&Ke(this,it,ca).call(this),this.updateResult(),l&&(ne(this,Xe)!==i||Ln(this.options.enabled,ne(this,Xe))!==Ln(n.enabled,ne(this,Xe))||gi(this.options.staleTime,ne(this,Xe))!==gi(n.staleTime,ne(this,Xe)))&&Ke(this,it,Qd).call(this);const a=Ke(this,it,Gd).call(this);l&&(ne(this,Xe)!==i||Ln(this.options.enabled,ne(this,Xe))!==Ln(n.enabled,ne(this,Xe))||a!==ne(this,di))&&Ke(this,it,Yd).call(this,a)}getOptimisticResult(t){const n=ne(this,un).getQueryCache().build(ne(this,un),t),i=this.createResult(n,t);return bk(this,i)&&(Ce(this,Yt,i),Ce(this,Zo,this.options),Ce(this,Yi,ne(this,Xe).state)),i}getCurrentResult(){return ne(this,Yt)}trackResult(t,n){return new Proxy(t,{get:(i,l)=>(this.trackProp(l),n==null||n(l),l==="promise"&&!this.options.experimental_prefetchInRender&&ne(this,Nr).status==="pending"&&ne(this,Nr).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(i,l))})}trackProp(t){ne(this,tl).add(t)}getCurrentQuery(){return ne(this,Xe)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=ne(this,un).defaultQueryOptions(t),i=ne(this,un).getQueryCache().build(ne(this,un),n);return i.fetch().then(()=>this.createResult(i,n))}fetch(t){return Ke(this,it,ca).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),ne(this,Yt)))}createResult(t,n){var B;const i=ne(this,Xe),l=this.options,a=ne(this,Yt),s=ne(this,Yi),u=ne(this,Zo),v=t!==i?t.state:ne(this,Ra),{state:p}=t;let f={...p},d=!1,m;if(n._optimisticResults){const L=this.hasListeners(),P=!L&&Yy(t,n),N=L&&Xy(t,i,n,l);(P||N)&&(f={...f,...I0(p.data,t.options)}),n._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:S,errorUpdatedAt:y,status:g}=f;m=f.data;let b=!1;if(n.placeholderData!==void 0&&m===void 0&&g==="pending"){let L;a!=null&&a.isPlaceholderData&&n.placeholderData===(u==null?void 0:u.placeholderData)?(L=a.data,b=!0):L=typeof n.placeholderData=="function"?n.placeholderData((B=ne(this,el))==null?void 0:B.state.data,ne(this,el)):n.placeholderData,L!==void 0&&(g="success",m=$d(a==null?void 0:a.data,L,n),d=!0)}if(n.select&&m!==void 0&&!b)if(a&&m===(s==null?void 0:s.data)&&n.select===ne(this,Na))m=ne(this,Jo);else try{Ce(this,Na,n.select),m=n.select(m),m=$d(a==null?void 0:a.data,m,n),Ce(this,Jo,m),Ce(this,fi,null)}catch(L){Ce(this,fi,L)}ne(this,fi)&&(S=ne(this,fi),m=ne(this,Jo),y=Date.now(),g="error");const x=f.fetchStatus==="fetching",_=g==="pending",E=g==="error",O=_&&x,R=m!==void 0,j={status:g,fetchStatus:f.fetchStatus,isPending:_,isSuccess:g==="success",isError:E,isInitialLoading:O,isLoading:O,data:m,dataUpdatedAt:f.dataUpdatedAt,error:S,errorUpdatedAt:y,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>v.dataUpdateCount||f.errorUpdateCount>v.errorUpdateCount,isFetching:x,isRefetching:x&&!_,isLoadingError:E&&!R,isPaused:f.fetchStatus==="paused",isPlaceholderData:d,isRefetchError:E&&R,isStale:Wh(t,n),refetch:this.refetch,promise:ne(this,Nr),isEnabled:Ln(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const L=F=>{j.status==="error"?F.reject(j.error):j.data!==void 0&&F.resolve(j.data)},P=()=>{const F=Ce(this,Nr,j.promise=Wd());L(F)},N=ne(this,Nr);switch(N.status){case"pending":t.queryHash===i.queryHash&&L(N);break;case"fulfilled":(j.status==="error"||j.data!==N.value)&&P();break;case"rejected":(j.status!=="error"||j.error!==N.reason)&&P();break}}return j}updateResult(){const t=ne(this,Yt),n=this.createResult(ne(this,Xe),this.options);if(Ce(this,Yi,ne(this,Xe).state),Ce(this,Zo,this.options),ne(this,Yi).data!==void 0&&Ce(this,el,ne(this,Xe)),vu(n,t))return;Ce(this,Yt,n);const i=()=>{if(!t)return!0;const{notifyOnChangeProps:l}=this.options,a=typeof l=="function"?l():l;if(a==="all"||!a&&!ne(this,tl).size)return!0;const s=new Set(a??ne(this,tl));return this.options.throwOnError&&s.add("error"),Object.keys(ne(this,Yt)).some(u=>{const h=u;return ne(this,Yt)[h]!==t[h]&&s.has(h)})};Ke(this,it,L0).call(this,{listeners:i()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Ke(this,it,Xd).call(this)}},un=new WeakMap,Xe=new WeakMap,Ra=new WeakMap,Yt=new WeakMap,Yi=new WeakMap,Zo=new WeakMap,Nr=new WeakMap,fi=new WeakMap,Na=new WeakMap,Jo=new WeakMap,el=new WeakMap,Xi=new WeakMap,Zi=new WeakMap,di=new WeakMap,tl=new WeakMap,it=new WeakSet,ca=function(t){Ke(this,it,eh).call(this);let n=ne(this,Xe).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Zt)),n},Qd=function(){Ke(this,it,Zd).call(this);const t=gi(this.options.staleTime,ne(this,Xe));if(eo||ne(this,Yt).isStale||!Vd(t))return;const i=O0(ne(this,Yt).dataUpdatedAt,t)+1;Ce(this,Xi,Vi.setTimeout(()=>{ne(this,Yt).isStale||this.updateResult()},i))},Gd=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(ne(this,Xe)):this.options.refetchInterval)??!1},Yd=function(t){Ke(this,it,Jd).call(this),Ce(this,di,t),!(eo||Ln(this.options.enabled,ne(this,Xe))===!1||!Vd(ne(this,di))||ne(this,di)===0)&&Ce(this,Zi,Vi.setInterval(()=>{(this.options.refetchIntervalInBackground||$h.isFocused())&&Ke(this,it,ca).call(this)},ne(this,di)))},Xd=function(){Ke(this,it,Qd).call(this),Ke(this,it,Yd).call(this,Ke(this,it,Gd).call(this))},Zd=function(){ne(this,Xi)&&(Vi.clearTimeout(ne(this,Xi)),Ce(this,Xi,void 0))},Jd=function(){ne(this,Zi)&&(Vi.clearInterval(ne(this,Zi)),Ce(this,Zi,void 0))},eh=function(){const t=ne(this,un).getQueryCache().build(ne(this,un),this.options);if(t===ne(this,Xe))return;const n=ne(this,Xe);Ce(this,Xe,t),Ce(this,Ra,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},L0=function(t){Tt.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(ne(this,Yt))}),ne(this,un).getQueryCache().notify({query:ne(this,Xe),type:"observerResultsUpdated"})})},b0);function wk(e,t){return Ln(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Yy(e,t){return wk(e,t)||e.state.data!==void 0&&th(e,t,t.refetchOnMount)}function th(e,t,n){if(Ln(t.enabled,e)!==!1&&gi(t.staleTime,e)!=="static"){const i=typeof n=="function"?n(e):n;return i==="always"||i!==!1&&Wh(e,t)}return!1}function Xy(e,t,n,i){return(e!==t||Ln(i.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Wh(e,n)}function Wh(e,t){return Ln(t.enabled,e)!==!1&&e.isStaleByTime(gi(t.staleTime,e))}function bk(e,t){return!vu(e.getCurrentResult(),t)}function Zy(e){return{onFetch:(t,n)=>{var p,f,d,m,S;const i=t.options,l=(d=(f=(p=t.fetchOptions)==null?void 0:p.meta)==null?void 0:f.fetchMore)==null?void 0:d.direction,a=((m=t.state.data)==null?void 0:m.pages)||[],s=((S=t.state.data)==null?void 0:S.pageParams)||[];let u={pages:[],pageParams:[]},h=0;const v=async()=>{let y=!1;const g=_=>{Object.defineProperty(_,"signal",{enumerable:!0,get:()=>(t.signal.aborted?y=!0:t.signal.addEventListener("abort",()=>{y=!0}),t.signal)})},b=P0(t.options,t.fetchOptions),x=async(_,E,O)=>{if(y)return Promise.reject();if(E==null&&_.pages.length)return Promise.resolve(_);const I=(()=>{const P={client:t.client,queryKey:t.queryKey,pageParam:E,direction:O?"backward":"forward",meta:t.options.meta};return g(P),P})(),j=await b(I),{maxPages:B}=t.options,L=O?fk:ck;return{pages:L(_.pages,j,B),pageParams:L(_.pageParams,E,B)}};if(l&&a.length){const _=l==="backward",E=_?Sk:Jy,O={pages:a,pageParams:s},R=E(i,O);u=await x(O,R,_)}else{const _=e??a.length;do{const E=h===0?s[0]??i.initialPageParam:Jy(i,u);if(h>0&&E==null)break;u=await x(u,E),h++}while(h<_)}return u};t.options.persister?t.fetchFn=()=>{var y,g;return(g=(y=t.options).persister)==null?void 0:g.call(y,v,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=v}}}function Jy(e,{pages:t,pageParams:n}){const i=t.length-1;return t.length>0?e.getNextPageParam(t[i],t,n[i],n):void 0}function Sk(e,{pages:t,pageParams:n}){var i;return t.length>0?(i=e.getPreviousPageParam)==null?void 0:i.call(e,t[0],t,n[0],n):void 0}var Ia,ur,Xt,Ji,cr,oi,S0,xk=(S0=class extends N0{constructor(t){super();je(this,cr);je(this,Ia);je(this,ur);je(this,Xt);je(this,Ji);Ce(this,Ia,t.client),this.mutationId=t.mutationId,Ce(this,Xt,t.mutationCache),Ce(this,ur,[]),this.state=t.state||M0(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){ne(this,ur).includes(t)||(ne(this,ur).push(t),this.clearGcTimeout(),ne(this,Xt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Ce(this,ur,ne(this,ur).filter(n=>n!==t)),this.scheduleGc(),ne(this,Xt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){ne(this,ur).length||(this.state.status==="pending"?this.scheduleGc():ne(this,Xt).remove(this))}continue(){var t;return((t=ne(this,Ji))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,u,h,v,p,f,d,m,S,y,g,b,x,_,E,O,R,I,j,B;const n=()=>{Ke(this,cr,oi).call(this,{type:"continue"})},i={client:ne(this,Ia),meta:this.options.meta,mutationKey:this.options.mutationKey};Ce(this,Ji,R0({fn:()=>this.options.mutationFn?this.options.mutationFn(t,i):Promise.reject(new Error("No mutationFn found")),onFail:(L,P)=>{Ke(this,cr,oi).call(this,{type:"failed",failureCount:L,error:P})},onPause:()=>{Ke(this,cr,oi).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>ne(this,Xt).canRun(this)}));const l=this.state.status==="pending",a=!ne(this,Ji).canStart();try{if(l)n();else{Ke(this,cr,oi).call(this,{type:"pending",variables:t,isPaused:a}),await((u=(s=ne(this,Xt).config).onMutate)==null?void 0:u.call(s,t,this,i));const P=await((v=(h=this.options).onMutate)==null?void 0:v.call(h,t,i));P!==this.state.context&&Ke(this,cr,oi).call(this,{type:"pending",context:P,variables:t,isPaused:a})}const L=await ne(this,Ji).start();return await((f=(p=ne(this,Xt).config).onSuccess)==null?void 0:f.call(p,L,t,this.state.context,this,i)),await((m=(d=this.options).onSuccess)==null?void 0:m.call(d,L,t,this.state.context,i)),await((y=(S=ne(this,Xt).config).onSettled)==null?void 0:y.call(S,L,null,this.state.variables,this.state.context,this,i)),await((b=(g=this.options).onSettled)==null?void 0:b.call(g,L,null,t,this.state.context,i)),Ke(this,cr,oi).call(this,{type:"success",data:L}),L}catch(L){try{throw await((_=(x=ne(this,Xt).config).onError)==null?void 0:_.call(x,L,t,this.state.context,this,i)),await((O=(E=this.options).onError)==null?void 0:O.call(E,L,t,this.state.context,i)),await((I=(R=ne(this,Xt).config).onSettled)==null?void 0:I.call(R,void 0,L,this.state.variables,this.state.context,this,i)),await((B=(j=this.options).onSettled)==null?void 0:B.call(j,void 0,L,t,this.state.context,i)),L}finally{Ke(this,cr,oi).call(this,{type:"error",error:L})}}finally{ne(this,Xt).runNext(this)}}},Ia=new WeakMap,ur=new WeakMap,Xt=new WeakMap,Ji=new WeakMap,cr=new WeakSet,oi=function(t){const n=i=>{switch(t.type){case"failed":return{...i,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...i,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:t.error,failureCount:i.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Tt.batch(()=>{ne(this,ur).forEach(i=>{i.onMutationUpdate(t)}),ne(this,Xt).notify({mutation:this,type:"updated",action:t})})},S0);function M0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ir,Yn,La,x0,Ek=(x0=class extends cl{constructor(t={}){super();je(this,Ir);je(this,Yn);je(this,La);this.config=t,Ce(this,Ir,new Set),Ce(this,Yn,new Map),Ce(this,La,0)}build(t,n,i){const l=new xk({client:t,mutationCache:this,mutationId:++Ys(this,La)._,options:t.defaultMutationOptions(n),state:i});return this.add(l),l}add(t){ne(this,Ir).add(t);const n=Zs(t);if(typeof n=="string"){const i=ne(this,Yn).get(n);i?i.push(t):ne(this,Yn).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(ne(this,Ir).delete(t)){const n=Zs(t);if(typeof n=="string"){const i=ne(this,Yn).get(n);if(i)if(i.length>1){const l=i.indexOf(t);l!==-1&&i.splice(l,1)}else i[0]===t&&ne(this,Yn).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Zs(t);if(typeof n=="string"){const i=ne(this,Yn).get(n),l=i==null?void 0:i.find(a=>a.state.status==="pending");return!l||l===t}else return!0}runNext(t){var i;const n=Zs(t);if(typeof n=="string"){const l=(i=ne(this,Yn).get(n))==null?void 0:i.find(a=>a!==t&&a.state.isPaused);return(l==null?void 0:l.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Tt.batch(()=>{ne(this,Ir).forEach(t=>{this.notify({type:"removed",mutation:t})}),ne(this,Ir).clear(),ne(this,Yn).clear()})}getAll(){return Array.from(ne(this,Ir))}find(t){const n={exact:!0,...t};return this.getAll().find(i=>Wy(n,i))}findAll(t={}){return this.getAll().filter(n=>Wy(t,n))}notify(t){Tt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Tt.batch(()=>Promise.all(t.map(n=>n.continue().catch(Zt))))}},Ir=new WeakMap,Yn=new WeakMap,La=new WeakMap,x0);function Zs(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Lr,hi,cn,Mr,Dr,cu,nh,E0,_k=(E0=class extends cl{constructor(n,i){super();je(this,Dr);je(this,Lr);je(this,hi);je(this,cn);je(this,Mr);Ce(this,Lr,n),this.setOptions(i),this.bindMethods(),Ke(this,Dr,cu).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var l;const i=this.options;this.options=ne(this,Lr).defaultMutationOptions(n),vu(this.options,i)||ne(this,Lr).getMutationCache().notify({type:"observerOptionsUpdated",mutation:ne(this,cn),observer:this}),i!=null&&i.mutationKey&&this.options.mutationKey&&to(i.mutationKey)!==to(this.options.mutationKey)?this.reset():((l=ne(this,cn))==null?void 0:l.state.status)==="pending"&&ne(this,cn).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=ne(this,cn))==null||n.removeObserver(this)}onMutationUpdate(n){Ke(this,Dr,cu).call(this),Ke(this,Dr,nh).call(this,n)}getCurrentResult(){return ne(this,hi)}reset(){var n;(n=ne(this,cn))==null||n.removeObserver(this),Ce(this,cn,void 0),Ke(this,Dr,cu).call(this),Ke(this,Dr,nh).call(this)}mutate(n,i){var l;return Ce(this,Mr,i),(l=ne(this,cn))==null||l.removeObserver(this),Ce(this,cn,ne(this,Lr).getMutationCache().build(ne(this,Lr),this.options)),ne(this,cn).addObserver(this),ne(this,cn).execute(n)}},Lr=new WeakMap,hi=new WeakMap,cn=new WeakMap,Mr=new WeakMap,Dr=new WeakSet,cu=function(){var i;const n=((i=ne(this,cn))==null?void 0:i.state)??M0();Ce(this,hi,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},nh=function(n){Tt.batch(()=>{var i,l,a,s,u,h,v,p;if(ne(this,Mr)&&this.hasListeners()){const f=ne(this,hi).variables,d=ne(this,hi).context,m={client:ne(this,Lr),meta:this.options.meta,mutationKey:this.options.mutationKey};(n==null?void 0:n.type)==="success"?((l=(i=ne(this,Mr)).onSuccess)==null||l.call(i,n.data,f,d,m),(s=(a=ne(this,Mr)).onSettled)==null||s.call(a,n.data,null,f,d,m)):(n==null?void 0:n.type)==="error"&&((h=(u=ne(this,Mr)).onError)==null||h.call(u,n.error,f,d,m),(p=(v=ne(this,Mr)).onSettled)==null||p.call(v,void 0,n.error,f,d,m))}this.listeners.forEach(f=>{f(ne(this,hi))})})},E0),fr,_0,kk=(_0=class extends cl{constructor(t={}){super();je(this,fr);this.config=t,Ce(this,fr,new Map)}build(t,n,i){const l=n.queryKey,a=n.queryHash??Vh(l,n);let s=this.get(a);return s||(s=new yk({client:t,queryKey:l,queryHash:a,options:t.defaultQueryOptions(n),state:i,defaultOptions:t.getQueryDefaults(l)}),this.add(s)),s}add(t){ne(this,fr).has(t.queryHash)||(ne(this,fr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=ne(this,fr).get(t.queryHash);n&&(t.destroy(),n===t&&ne(this,fr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Tt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return ne(this,fr).get(t)}getAll(){return[...ne(this,fr).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(i=>$y(n,i))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(i=>$y(t,i)):n}notify(t){Tt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Tt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Tt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},fr=new WeakMap,_0),yt,pi,mi,nl,rl,vi,il,ol,k0,DD=(k0=class{constructor(e={}){je(this,yt);je(this,pi);je(this,mi);je(this,nl);je(this,rl);je(this,vi);je(this,il);je(this,ol);Ce(this,yt,e.queryCache||new kk),Ce(this,pi,e.mutationCache||new Ek),Ce(this,mi,e.defaultOptions||{}),Ce(this,nl,new Map),Ce(this,rl,new Map),Ce(this,vi,0)}mount(){Ys(this,vi)._++,ne(this,vi)===1&&(Ce(this,il,$h.subscribe(async e=>{e&&(await this.resumePausedMutations(),ne(this,yt).onFocus())})),Ce(this,ol,yu.subscribe(async e=>{e&&(await this.resumePausedMutations(),ne(this,yt).onOnline())})))}unmount(){var e,t;Ys(this,vi)._--,ne(this,vi)===0&&((e=ne(this,il))==null||e.call(this),Ce(this,il,void 0),(t=ne(this,ol))==null||t.call(this),Ce(this,ol,void 0))}isFetching(e){return ne(this,yt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return ne(this,pi).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=ne(this,yt).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=ne(this,yt).build(this,t),i=n.state.data;return i===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(gi(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(i))}getQueriesData(e){return ne(this,yt).findAll(e).map(({queryKey:t,state:n})=>{const i=n.data;return[t,i]})}setQueryData(e,t,n){const i=this.defaultQueryOptions({queryKey:e}),l=ne(this,yt).get(i.queryHash),a=l==null?void 0:l.state.data,s=ak(t,a);if(s!==void 0)return ne(this,yt).build(this,i).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return Tt.batch(()=>ne(this,yt).findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=ne(this,yt).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=ne(this,yt);Tt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=ne(this,yt);return Tt.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},i=Tt.batch(()=>ne(this,yt).findAll(e).map(l=>l.cancel(n)));return Promise.all(i).then(Zt).catch(Zt)}invalidateQueries(e,t={}){return Tt.batch(()=>(ne(this,yt).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},i=Tt.batch(()=>ne(this,yt).findAll(e).filter(l=>!l.isDisabled()&&!l.isStatic()).map(l=>{let a=l.fetch(void 0,n);return n.throwOnError||(a=a.catch(Zt)),l.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(i).then(Zt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=ne(this,yt).build(this,t);return n.isStaleByTime(gi(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Zt).catch(Zt)}fetchInfiniteQuery(e){return e.behavior=Zy(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Zt).catch(Zt)}ensureInfiniteQueryData(e){return e.behavior=Zy(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return yu.isOnline()?ne(this,pi).resumePausedMutations():Promise.resolve()}getQueryCache(){return ne(this,yt)}getMutationCache(){return ne(this,pi)}getDefaultOptions(){return ne(this,mi)}setDefaultOptions(e){Ce(this,mi,e)}setQueryDefaults(e,t){ne(this,nl).set(to(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...ne(this,nl).values()],n={};return t.forEach(i=>{ba(e,i.queryKey)&&Object.assign(n,i.defaultOptions)}),n}setMutationDefaults(e,t){ne(this,rl).set(to(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...ne(this,rl).values()],n={};return t.forEach(i=>{ba(e,i.mutationKey)&&Object.assign(n,i.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...ne(this,mi).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Vh(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Hh&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...ne(this,mi).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){ne(this,yt).clear(),ne(this,pi).clear()}},yt=new WeakMap,pi=new WeakMap,mi=new WeakMap,nl=new WeakMap,rl=new WeakMap,vi=new WeakMap,il=new WeakMap,ol=new WeakMap,k0),D0=D.createContext(void 0),j0=e=>{const t=D.useContext(D0);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},jD=({client:e,children:t})=>(D.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),re.jsx(D0.Provider,{value:e,children:t})),F0=D.createContext(!1),Ok=()=>D.useContext(F0);F0.Provider;function Ck(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Pk=D.createContext(Ck()),Ak=()=>D.useContext(Pk),Tk=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},Rk=e=>{D.useEffect(()=>{e.clearReset()},[e])},Nk=({result:e,errorResetBoundary:t,throwOnError:n,query:i,suspense:l})=>e.isError&&!t.isReset()&&!e.isFetching&&i&&(l&&e.data===void 0||A0(n,[e.error,i])),Ik=e=>{if(e.suspense){const n=l=>l==="static"?l:Math.max(l??1e3,1e3),i=e.staleTime;e.staleTime=typeof i=="function"?(...l)=>n(i(...l)):n(i),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},Lk=(e,t)=>e.isLoading&&e.isFetching&&!t,Mk=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,eg=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Dk(e,t,n){var f,d,m,S,y;const i=Ok(),l=Ak(),a=j0(),s=a.defaultQueryOptions(e);(d=(f=a.getDefaultOptions().queries)==null?void 0:f._experimental_beforeQuery)==null||d.call(f,s),s._optimisticResults=i?"isRestoring":"optimistic",Ik(s),Tk(s,l),Rk(l);const u=!a.getQueryCache().get(s.queryHash),[h]=D.useState(()=>new t(a,s)),v=h.getOptimisticResult(s),p=!i&&e.subscribed!==!1;if(D.useSyncExternalStore(D.useCallback(g=>{const b=p?h.subscribe(Tt.batchCalls(g)):Zt;return h.updateResult(),b},[h,p]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),D.useEffect(()=>{h.setOptions(s)},[s,h]),Mk(s,v))throw eg(s,h,l);if(Nk({result:v,errorResetBoundary:l,throwOnError:s.throwOnError,query:a.getQueryCache().get(s.queryHash),suspense:s.suspense}))throw v.error;if((S=(m=a.getDefaultOptions().queries)==null?void 0:m._experimental_afterQuery)==null||S.call(m,s,v),s.experimental_prefetchInRender&&!eo&&Lk(v,i)){const g=u?eg(s,h,l):(y=a.getQueryCache().get(s.queryHash))==null?void 0:y.promise;g==null||g.catch(Zt).finally(()=>{h.updateResult()})}return s.notifyOnChangeProps?v:h.trackResult(v)}function FD(e,t){return Dk(e,gk)}function BD(e,t){const n=j0(),[i]=D.useState(()=>new _k(n,e));D.useEffect(()=>{i.setOptions(e)},[i,e]);const l=D.useSyncExternalStore(D.useCallback(s=>i.subscribe(Tt.batchCalls(s)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),a=D.useCallback((s,u)=>{i.mutate(s,u).catch(Zt)},[i]);if(l.error&&A0(i.options.throwOnError,[l.error]))throw l.error;return{...l,mutate:a,mutateAsync:l.mutate}}var Ma=Uh();const jk=Ei(Ma);/**
41 * @remix-run/router v1.23.0
42 *
43 * Copyright (c) Remix Software Inc.
44 *
45 * This source code is licensed under the MIT license found in the
46 * LICENSE.md file in the root directory of this source tree.
47 *
48 * @license MIT
49 */function Sa(){return Sa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Sa.apply(this,arguments)}var yi;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(yi||(yi={}));const tg="popstate";function Fk(e){e===void 0&&(e={});function t(i,l){let{pathname:a,search:s,hash:u}=i.location;return rh("",{pathname:a,search:s,hash:u},l.state&&l.state.usr||null,l.state&&l.state.key||"default")}function n(i,l){return typeof l=="string"?l:gu(l)}return zk(t,n,null,e)}function St(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function B0(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Bk(){return Math.random().toString(36).substr(2,8)}function ng(e,t){return{usr:e.state,key:e.key,idx:t}}function rh(e,t,n,i){return n===void 0&&(n=null),Sa({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?fl(t):t,{state:n,key:t&&t.key||i||Bk()})}function gu(e){let{pathname:t="/",search:n="",hash:i=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),i&&i!=="#"&&(t+=i.charAt(0)==="#"?i:"#"+i),t}function fl(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let i=e.indexOf("?");i>=0&&(t.search=e.substr(i),e=e.substr(0,i)),e&&(t.pathname=e)}return t}function zk(e,t,n,i){i===void 0&&(i={});let{window:l=document.defaultView,v5Compat:a=!1}=i,s=l.history,u=yi.Pop,h=null,v=p();v==null&&(v=0,s.replaceState(Sa({},s.state,{idx:v}),""));function p(){return(s.state||{idx:null}).idx}function f(){u=yi.Pop;let g=p(),b=g==null?null:g-v;v=g,h&&h({action:u,location:y.location,delta:b})}function d(g,b){u=yi.Push;let x=rh(y.location,g,b);v=p()+1;let _=ng(x,v),E=y.createHref(x);try{s.pushState(_,"",E)}catch(O){if(O instanceof DOMException&&O.name==="DataCloneError")throw O;l.location.assign(E)}a&&h&&h({action:u,location:y.location,delta:1})}function m(g,b){u=yi.Replace;let x=rh(y.location,g,b);v=p();let _=ng(x,v),E=y.createHref(x);s.replaceState(_,"",E),a&&h&&h({action:u,location:y.location,delta:0})}function S(g){let b=l.location.origin!=="null"?l.location.origin:l.location.href,x=typeof g=="string"?g:gu(g);return x=x.replace(/ $/,"%20"),St(b,"No window.location.(origin|href) available to create URL for href: "+x),new URL(x,b)}let y={get action(){return u},get location(){return e(l,s)},listen(g){if(h)throw new Error("A history only accepts one active listener");return l.addEventListener(tg,f),h=g,()=>{l.removeEventListener(tg,f),h=null}},createHref(g){return t(l,g)},createURL:S,encodeLocation(g){let b=S(g);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:d,replace:m,go(g){return s.go(g)}};return y}var rg;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(rg||(rg={}));function qk(e,t,n){return n===void 0&&(n="/"),Uk(e,t,n)}function Uk(e,t,n,i){let l=typeof t=="string"?fl(t):t,a=Kh(l.pathname||"/",n);if(a==null)return null;let s=z0(e);Vk(s);let u=null;for(let h=0;u==null&&h<s.length;++h){let v=tO(a);u=Zk(s[h],v)}return u}function z0(e,t,n,i){t===void 0&&(t=[]),n===void 0&&(n=[]),i===void 0&&(i="");let l=(a,s,u)=>{let h={relativePath:u===void 0?a.path||"":u,caseSensitive:a.caseSensitive===!0,childrenIndex:s,route:a};h.relativePath.startsWith("/")&&(St(h.relativePath.startsWith(i),'Absolute route path "'+h.relativePath+'" nested under path '+('"'+i+'" is not val
49id. An absolute child route path ')+"must start with the combined path of all its parent routes."),h.relativePath=h.relativePath.slice(i.length));let v=wi([i,h.relativePath]),p=n.concat(h);a.children&&a.children.length>0&&(St(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+v+'".')),z0(a.children,t,p,v)),!(a.path==null&&!a.index)&&t.push({path:v,score:Yk(v,a.index),routesMeta:p})};return e.forEach((a,s)=>{var u;if(a.path===""||!((u=a.path)!=null&&u.includes("?")))l(a,s);else for(let h of q0(a.path))l(a,s,h)}),t}function q0(e){let t=e.split("/");if(t.length===0)return[];let[n,...i]=t,l=n.endsWith("?"),a=n.replace(/\?$/,"");if(i.length===0)return l?[a,""]:[a];let s=q0(i.join("/")),u=[];return u.push(...s.map(h=>h===""?a:[a,h].join("/"))),l&&u.push(...s),u.map(h=>e.startsWith("/")&&h===""?"/":h)}function Vk(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Xk(t.routesMeta.map(i=>i.childrenIndex),n.routesMeta.map(i=>i.childrenIndex)))}const Hk=/^:[\w-]+$/,$k=3,Wk=2,Kk=1,Qk=10,Gk=-2,ig=e=>e==="*";function Yk(e,t){let n=e.split("/"),i=n.length;return n.some(ig)&&(i+=Gk),t&&(i+=Wk),n.filter(l=>!ig(l)).reduce((l,a)=>l+(Hk.test(a)?$k:a===""?Kk:Qk),i)}function Xk(e,t){return e.length===t.length&&e.slice(0,-1).every((i,l)=>i===t[l])?e[e.length-1]-t[t.length-1]:0}function Zk(e,t,n){let{routesMeta:i}=e,l={},a="/",s=[];for(let u=0;u<i.length;++u){let h=i[u],v=u===i.length-1,p=a==="/"?t:t.slice(a.length)||"/",f=Jk({path:h.relativePath,caseSensitive:h.caseSensitive,end:v},p),d=h.route;if(!f)return null;
vendor: 6,834 bytes, lines 49-58
49Object.assign(l,f.params),s.push({params:l,pathname:wi([a,f.pathname]),pathnameBase:oO(wi([a,f.pathnameBase])),route:d}),f.pathnameBase!=="/"&&(a=wi([a,f.pathnameBase]))}return s}function Jk(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,i]=eO(e.path,e.caseSensitive,e.end),l=t.match(n);if(!l)return null;let a=l[0],s=a.replace(/(.)\/+$/,"$1"),u=l.slice(1);return{params:i.reduce((v,p,f)=>{let{paramName:d,isOptional:m}=p;if(d==="*"){let y=u[f]||"";s=a.slice(0,a.length-y.length).replace(/(.)\/+$/,"$1")}const S=u[f];return m&&!S?v[d]=void 0:v[d]=(S||"").replace(/%2F/g,"/"),v},{}),pathname:a,pathnameBase:s,pattern:e}}function eO(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),B0(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let i=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,u,h)=>(i.push({paramName:u,isOptional:h!=null}),h?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(i.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),i]}function tO(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return B0(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Kh(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,i=e.charAt(n);return i&&i!=="/"?null:e.slice(n)||"/"}function nO(e,t){t===void 0&&(t="/");let{pathname:n,search:i="",hash:l=""}=typeof e=="string"?fl(e):e;return{pathname:n?n.startsWith("/")?n:rO(n,t):t,search:lO(i),hash:aO(l)}}function rO(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?n.length>1&&n.pop():l!=="."&&n.push(l)}),n.length>1?n.join("/"):"/"}function rd(e,t,n,i){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(i)+"].  Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function iO(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Qh(e,t){let n=iO(e);return t?n.map((i,l)=>l===n.length-1?i.pathname:i.pathnameBase):n.map(i=>i.pathnameBase)}function Gh(e,t,n,i){i===void 0&&(i=!1);let l;typeof e=="string"?l=fl(e):(l=Sa({},e),St(!l.pathname||!l.pathname.includes("?"),rd("?","pathname","search",l)),St(!l.pathname||!l.pathname.includes("#"),rd("#","pathname","hash",l)),St(!l.search||!l.search.includes("#"),rd("#","search","hash",l)));let a=e===""||l.pathname==="",s=a?"/":l.pathname,u;if(s==null)u=n;else{let f=t.length-1;if(!i&&s.startsWith("..")){let d=s.split("/");for(;d[0]==="..";)d.shift(),f-=1;l.pathname=d.join("/")}u=f>=0?t[f]:"/"}let h=nO(l,u),v=s&&s!=="/"&&s.endsWith("/"),p=(a||s===".")&&n.endsWith("/");return!h.pathname.endsWith("/")&&(v||p)&&(h.pathname+="/"),h}const wi=e=>e.join("/").replace(/\/\/+/g,"/"),oO=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),lO=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,aO=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function sO(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const U0=["post","put","patch","delete"];new Set(U0);const uO=["get",...U0];new Set(uO);/**
50 * React Router v6.30.1
51 *
52 * Copyright (c) Remix Software Inc.
53 *
54 * This source code is licensed under the MIT license found in the
55 * LICENSE.md file in the root directory of this source tree.
56 *
57 * @license MIT
58 */function xa(){return xa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},xa.apply(this,arguments)}const Yh=D.createContext(null),cO=D.createContext(null),_i=D.createContext(null),ju=D.createContext(null),ki=D.createContext({outlet:null,matches:[],isDataRoute:!1}),V0=D.createContext(null);function fO(e,t){let{relative:n}=t===void 0?{}:t;dl()||St(!1);let{basename:i,navigator:l}=D.useContext(_i),{hash:a,pathname:s,search:u}=$0(e,{relative:n}),h=s;return i!=="/"&&(h=s==="/"?i:wi([i,s])),l.createHref({pathname:h,search:u,hash:a})}function dl(){return D.useContext(ju)!=null}function hl(){return dl()||St(!1),D.useContext(ju).location}function H0(e){D.useContext(_i).static||D.useLayoutEffect(e)}function Xh(){let{isDataRoute:e}=D.useContext(ki);return e?_O():dO()}function dO(){dl()||St(!1);let e=D.useContext(Yh),{basename:t,future:n,navigator:i}=D.useContext(_i),{matches:l}=D.useContext(ki),{pathname:a}=hl(),s=JSON.stringify(Qh(l,n.v7_relativeSplatPath)),u=D.useRef(!1);return H0(()=>{u.current=!0}),D.useCallback(function(v,p){if(p===void 0&&(p={}),!u.current)return;if(typeof v=="number"){i.go(v);return}let f=Gh(v,JSON.parse(s),a,p.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:wi([t,f.pathname])),(p.replace?i.replace:i.push)(f,p.state,p)},[t,i,s,a,e])}function $0(e,t){let{relative:n}=t===void 0?{}:t,{future:i}=D.useContext(_i),{matches:l}=D.useContext(ki),{pathname:a}=hl(),s=JSON.stringify(Qh(l,i.v7_relativeSplatPath));return D.useMemo(()=>Gh(e,JSON.parse(s),a,n==="path"),[e,s,a,n])}function hO(e,t){return pO(e,t)}function pO(e,t,n,i){dl()||St(!1);let{navigator:l}=D.useContext(_i),{matches:a}=D.useContext(ki),s=a[a.length-1],u=s?s.params:{};s&&s.pathname;let h=s?s.pathnameBase:"/";s&&s.route;let v=hl(),p;if(t){var f;let g=typeof t=="string"?fl(t):t;h==="/"||(f=g.pathname)!=null&&f.startsWith(h)||St(!1),p=g}else p=v;let d=p.pathname||"/",m=d;if(h!=="/"){let g=h.replace(/^\//,"").split("/");m="/"+d.replace(/^\//,"").split("/").slice(g.length).join("/")}let S=qk(e,{pathname:m}),y=wO(S&&S.map(g=>Object.assign({},g,{params:Object.assign({},u,g.params),pathname:wi([h,l.encodeLocation?l.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?h:wi([h,l.encodeLocation?l.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),a,n,i);return t&&y?D.createElement(ju.Provider,{value:{location:xa({pathname:"/",search:"",hash:"",state:null,key:"default"},p),navigationType:yi.Pop}},y):y}function mO(){let e=EO(),t=sO(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,l={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return D.createElement(D.Fragment,null,D.createElement("h2",null,"Unexpected Application 
58Error!"),D.createElement("h3",{style:{fontStyle:"italic"}},t),n?D.createElement("pre",{style:l},n):null,null)}const vO=D.createElement(mO,null);class yO extends D.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?D.createElement(ki.Provider,{value:this.props.routeContext},D.createElement(V0.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function gO(e){let{routeContext:t,match:n,children:i}=e,l=D.useContext(Yh);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id),D.createElement(ki.Provider,{value:t},i)}function wO(e,t,n,i){var l;if(t===void 0&&(t=[]),n===void 0&&(n=null),i===void 0&&(i=null),e==null){var a;if(!n)return null;if(n.errors)e=n.matches;else if((a=i)!=null&&a.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,u=(l=n)==null?void 0:l.errors;if(u!=null){let p=s.findIndex(f=>f.route.id&&(u==null?void 0:u[f.route.id])!==void 0);p>=0||St(!1),s=s.slice(0,Math.min(s.length,p+1))}let h=!1,v=-1;if(n&&i&&i.v7_partialHydration)for(let p=0;p<s.length;p++){let f=s[p];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(v=p),f.route.id){let{loaderData:d,errors:m}=n,S=f.route.loader&&d[f.route.id]===void 0&&(!m||m[f.route.id]===void 0);if(f.route.lazy||S){h=!0,v>=0?s=s.slice(0,v+1):s=[s[0]];break}}}return s.reduceRight((p,f,d)=>{let m,S=!1,y=null,g=null;n&&(m=u&&f.route.id?u[f.route.id]:void 0,y=f.route.errorElement||vO,h&&(v<0&&d===0?(kO("route-fallback"),S=!0,g=null):v===d&&(S=!0,g=f.route.hydrateFallbackElement||null)));let b=t.concat(s.slice(0,d+1)),x=()=>{let _;return m?_=y:S?_=g:f.route.Component?_=D.createElement(f.route.Component,null):f.route.element?_=f.route.element:_=p,D.createElement(gO,{match:f,routeContext:{outlet:p,matches:b,isDataRoute:n!=null},children:_})};return n&&(f.route.ErrorBoundary||f.route.errorElement||d===0)?D.createElement(yO,{location:n.location,revalidation:n.revalidation,component:y,error:m,children:x(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):x()},null)}var W0=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(W0||{}),K0=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(K0||{});function bO(e){let t=D.useContext(Yh);return t||St(!1),t}function SO(e){let t=D.useContext(cO);return t||St(!1),t}function xO(e){let t=D.useContext(ki);return t||St(!1),t}function Q0(e){let t=xO(),n=t.matches[t.matches.length-1];return n.route.id||St(!1),n.route.id}function EO(){var e;let t=D.useContext(V0),n=SO(),i=Q0();return t!==void 0?t:(e=n.errors)==null?void 0:e[i]}function _O(){let{router:e}=bO(W0.UseNavigateStable),t=Q0(K0.UseNavigateStable),n=D.useRef(!1);return H0(()=>{n.current=!0}),D.useCallback(function(l,a){a===void 0&&(a={}),n.current&&(typeof l=="number"?e.navigate(l):e.navigate(l,xa({fromRouteId:t},a)))},[e,t])}const og={};function kO(e,t,n){og[e]||(og[e]=!0)}function OO(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function zD(e){let{to:t,replace:n,state:i,relative:l}=e;dl()||St(!1);let{future:a,static:s}=D.useContext(_i),{matches:u}=D.useContext(ki),{pathname:h}=hl(),v=Xh(),p=Gh(t,Qh(u,a.v7_relativeSplatPath),h,l==="path"),f=JSON.stringify(p);return D.useEffect(()=>v(JSON.parse(f),{replace:n,state:i,relative:l}),[v,f,l,n,i]),null}function CO(e){St(!1)}function PO(e){let{basename:t="/",children:n=null,location:i,navigationType:l=yi.Pop,navigator:a,static:s=!1,future:u}=e;dl()&&St(!1);let h=t.replace(/^\/*/,"/"),v=D.useMemo(()=>({basename:h,navigator:a,static:s,future:xa({v7_relativeSplatPath:!1},u)}),[h,u,a,s]);typeof i=="string"&&(i=fl(i));let{pathname:p="/",search:f="",hash:d="",state:m=null,key:S="default"}=i,y=D.useMemo(()=>{let g=Kh(p,h);return g==null?null:{location:{pathname:g,search:f,hash:d,state:m,ke
58y:S},navigationType:l}},[h,p,f,d,m,S,l]);return y==null?null:D.createElement(_i.Provider,{value:v},D.createElement(ju.Provider,{children:n,value:y}))}function qD(e){let{children:t,location:n}=e;return hO(ih(t),n)}new Promise(()=>{});function ih(e,t){t===void 0&&(t=[]);let n=[];return D.Children.forEach(e,(i,l)=>{if(!D.isValidElement(i))return;let a=[...t,l];if(i.type===D.Fragment){n.push.apply(n,ih(i.props.children,a));return}i.type!==CO&&St(!1),!i.props.index||!i.props.children||St(!1);let s={id:i.props.id||a.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,loader:i.props.loader,action:i.props.action,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(s.children=ih(i.props.children,a)),n.push(s)}),n}/**
59 * React Router DOM v6.30.1
60 *
61 * Copyright (c) Remix Software Inc.
62 *
63 * This source code is licensed under the MIT license found in the
64 * LICENSE.md file in the root directory of this source tree.
65 *
66 * @license MIT
67 */function oh(){return oh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},oh.apply(this,arguments)}function AO(e,t){if(e==null)return{};var n={},i=Object.keys(e),l,a;for(a=0;a<i.length;a++)l=i[a],!(t.indexOf(l)>=0)&&(n[l]=e[l]);return n}function TO(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function RO(e,t){return e.button===0&&(!t||t==="_self")&&!TO(e)}function lh(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let i=e[n];return t.concat(Array.isArray(i)?i.map(l=>[n,l]):[[n,i]])},[]))}function NO(e,t){let n=lh(e);return t&&t.forEach((i,l)=>{n.has(l)||t.getAll(l).forEach(a=>{n.append(l,a)})}),n}const IO=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],LO="6";try{window.__reactRouterVersion=LO}catch{}const MO="startTransition",lg=qh[MO];function UD(e){let{basename:t,children:n,future:i,window:l}=e,a=D.useRef();a.current==null&&(a.current=Fk({window:l,v5Compat:!0}));let s=a.current,[u,h]=D.useState({action:s.action,location:s.location}),{v7_startTransition:v}=i||{},p=D.useCallback(f=>{v&&lg?lg(()=>h(f)):h(f)},[h,v]);return D.useLayoutEffect(()=>s.listen(p),[s,p]),D.useEffect(()=>OO(i),[i]),D.createElement(PO,{basename:t,children:n,location:u.location,navigationType:u.action,navigator:s,future:i})}const DO=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",jO=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,VD=D.forwardRef(function(t,n){let{onClick:i,relative:l,reloadDocument:a,replace:s,state:u,target:h,to:v,preventScrollReset:p,viewTransition:f}=t,d=AO(t,IO),{basename:m}=D.useContext(_i),S,y=!1;if(typeof v=="string"&&jO.test(v)&&(S=v,DO))try{let _=new URL(window.location.href),E=v.startsWith("//")?new URL(_.protocol+v):new URL(v),O=Kh(E.pathname,m);E.origin===_.origin&&O!=null?v=O+E.search+E.hash:y=!0}catch{}let g=fO(v,{relative:l}),b=FO(v,{replace:s,state:u,target:h,preventScrollReset:p,relative:l,viewTransition:f});function x(_){i&&i(_),_.defaultPrevented||b(_)}return D.createElement("a",oh({},d,{href:S||g,onClick:y||a?i:x,ref:n,target:h}))});var ag;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ag||(ag={}));var sg;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(sg||(sg={}));function FO(e,t){let{target:n,replace:i,state:l,preventScrollReset:a,relative:s,viewTransition:u}=t===void 0?{}:t,h=Xh(),v=hl(),p=$0(e,{relative:s});return D.useCallback(f=>{if(RO(f,n)){f.preventDefault();let d=i!==void 0?i:gu(v)===gu(p);h(e,{replace:d,state:l,preventScrollReset:a,relative:s,viewTransition:u})}},[v,h,p,i,l,n,e,a,s,u])}function HD(e){let t=D.useRef(lh(e)),n=D.useRef(!1),i=hl(),l=D.useMemo(()=>NO(i.search,n.current?null:t.current),[i.search]),a=Xh(),s=D.useCallback((u,h)=>{const v=lh(typeof u=="function"?u(l):u);n.current=!0,a("?"+v,h)},[a,l]);return[l,s]}var dr=function(){return dr=Object.assign||function(t){for(var n,i=1,l=arguments.length;i<l;i++){n=arguments[i];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},dr.apply(this,arguments)};function G0(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,i=Object.getOwnPropertySymbols(e);l<i.length;l++)t.indexOf(i[l])<0&&Object.prototype.propertyIsEnumerable.call(e,i[l])&&(n[i[l]]=e[i[l]]);return n}function $D(e,t,n,i){function l(a){return a instanceof n?a:new n(function(s){s(a)})}
vendor: 43,490 bytes, line 67
67return new(n||(n=Promise))(function(a,s){function u(p){try{v(i.next(p))}catch(f){s(f)}}function h(p){try{v(i.throw(p))}catch(f){s(f)}}function v(p){p.done?a(p.value):l(p.value).then(u,h)}v((i=i.apply(e,t||[])).next())})}function BO(e,t,n){if(n||arguments.length===2)for(var i=0,l=t.length,a;i<l;i++)(a||!(i in t))&&(a||(a=Array.prototype.slice.call(t,0,i)),a[i]=t[i]);return e.concat(a||Array.prototype.slice.call(t))}function ug(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Fu(...e){return t=>{let n=!1;const i=e.map(l=>{const a=ug(l,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let l=0;l<i.length;l++){const a=i[l];typeof a=="function"?a():ug(e[l],null)}}}}function Ge(...e){return D.useCallback(Fu(...e),e)}function no(e){const t=zO(e),n=D.forwardRef((i,l)=>{const{children:a,...s}=i,u=D.Children.toArray(a),h=u.find(UO);if(h){const v=h.props.children,p=u.map(f=>f===h?D.Children.count(v)>1?D.Children.only(null):D.isValidElement(v)?v.props.children:null:f);return re.jsx(t,{...s,ref:l,children:D.isValidElement(v)?D.cloneElement(v,void 0,p):null})}return re.jsx(t,{...s,ref:l,children:a})});return n.displayName=`${e}.Slot`,n}var WD=no("Slot");function zO(e){const t=D.forwardRef((n,i)=>{const{children:l,...a}=n;if(D.isValidElement(l)){const s=HO(l),u=VO(a,l.props);return l.type!==D.Fragment&&(u.ref=i?Fu(i,s):s),D.cloneElement(l,u)}return D.Children.count(l)>1?D.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var qO=Symbol("radix.slottable");function UO(e){return D.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===qO}function VO(e,t){const n={...t};for(const i in t){const l=e[i],a=t[i];/^on[A-Z]/.test(i)?l&&a?n[i]=(...u)=>{const h=a(...u);return l(...u),h}:l&&(n[i]=l):i==="style"?n[i]={...l,...a}:i==="className"&&(n[i]=[l,a].filter(Boolean).join(" "))}return{...e,...n}}function HO(e){var i,l;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(l=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:l.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var $O=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ue=$O.reduce((e,t)=>{const n=no(`Primitive.${t}`),i=D.forwardRef((l,a)=>{const{asChild:s,...u}=l,h=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),re.jsx(h,{...u,ref:a})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function Y0(e,t){e&&Ma.flushSync(()=>e.dispatchEvent(t))}var WO="Label",X0=D.forwardRef((e,t)=>re.jsx(Ue.label,{...e,ref:t,onMouseDown:n=>{var l;n.target.closest("button, input, select, textarea")||((l=e.onMouseDown)==null||l.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));X0.displayName=WO;var KD=X0;function KO(e,t){const n=D.createContext(t),i=a=>{const{children:s,...u}=a,h=D.useMemo(()=>u,Object.values(u));return re.jsx(n.Provider,{value:h,children:s})};i.displayName=e+"Provider";function l(a){const s=D.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[i,l]}function _n(e,t=[]){let n=[];function i(a,s){const u=D.createContext(s),h=n.length;n=[...n,s];const v=f=>{var b;const{scope:d,children:m,...S}=f,y=((b=d==null?void 0:d[e])==null?void 0:b[h])||u,g=D.useMemo(()=>S,Object.values(S));return re.jsx(y.Provider,{value:g,children:m})};v.displayName=a+"Provider";function p(f,d){var y;const m=((y=d==null?void 0:d[e])==null?void 0:y[h])||u,S=D.useContext(m);if(S)return S;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${a}\``)}return[v,p]}const l=()=>{const a=n.map(s=>D.createContext(s));return function(u){const h=(u==null?void 0:u[e])||a;return D.useMemo(()=>({[`__scope${e}`]:{...u,[e]:h}}),[u,h])}};return l.scopeName=e,[i,QO(l,...t)]}function QO(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const i=e.map(l=>({useScope:l(),scopeName:l.scopeName}));return function(a){const s=i.reduce((u,{useScope:h,scopeName:v})=>{const f=h(a)[`__scope${v}`];return{...u,...f}},{});return D.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function Zh(e){const t=e+"CollectionProvider",[n,i]=_n(t),[l,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=y=>{const{scope:g,children:b}=y,x=gt.useRef(null),_=gt.useRef(new Map).current;return re.jsx(l,{scope:g,itemMap:_,collectionRef:x,children:b})};s.displayName=t;const u=e+"CollectionSlot",h=no(u),v=gt.forwardRef((y,g)=>{const{scope:b,children:x}=y,_=a(u,b),E=Ge(g,_.collectionRef);return re.jsx(h,{ref:E,children:x})});v.displayName=u;const p=e+"CollectionItemSlot",f="data-radix-collection-item",d=no(p),m=gt.forwardRef((y,g)=>{const{scope:b,children:x,..._}=y,E=gt.useRef(null),O=Ge(g,E),R=a(p,b);return gt.useEffect(()=>(R.itemMap.set(E,{ref:E,..._}),()=>void R.itemMap.delete(E))),re.jsx(d,{[f]:"",ref:O,children:x})});m.displayName=p;function S(y){const g=a(e+"CollectionConsumer",y);return gt.useCallback(()=>{const x=g.collectionRef.current;if(!x)return[];const _=Array.from(x.querySelectorAll(`[${f}]`));return Array.from(g.itemMap.values()).sort((R,I)=>_.indexOf(R.ref.current)-_.indexOf(I.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:s,Slot:v,ItemSlot:m},S,i]}var GO=D.createContext(void 0);function pl(e){const t=D.useContext(GO);return e||t||"ltr"}function Bt(e){const t=D.useRef(e);return D.useEffect(()=>{t.current=e}),D.useMemo(()=>(...n)=>{var i;return(i=t.current)==null?void 0:i.call(t,...n)},[])}function YO(e,t=globalThis==null?void 0:globalThis.document){const n=Bt(e);D.useEffect(()=>{const i=l=>{l.key==="Escape"&&n(l)};return t.addEventListener("keydown",i,{capture:!0}),()=>t.removeEventListener("keydown",i,{capture:!0})},[n,t])}var XO="DismissableLayer",ah="dismissableLayer.update",ZO="dismissableLayer.pointerDownOutside",JO="dismissableLayer.focusOutside",cg,Z0=D.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Bu=D.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:a,onInteractOutside:s,onDismiss:u,...h}=e,v=D.useContext(Z0),[p,f]=D.useState(null),d=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=D.useState({}),S=Ge(t,I=>f(I)),y=Array.from(v.layers),[g]=[...v.layersWithOutsidePointerEventsDisabled].slice(-1),b=y.indexOf(g),x=p?y.indexOf(p):-1,_=v.layersWithOutsidePointerEventsDisabled.size>0,E=x>=b,O=nC(I=>{const j=I.target,B=[...v.branches].some(L=>L.contains(j));!E||B||(l==null||l(I),s==null||s(I),I.defaultPrevented||u==null||u())},d),R=rC(I=>{const j=I.target;[...v.branches].some(L=>L.contains(j))||(a==null||a(I),s==null||s(I),I.defaultPrevented||u==null||u())},d);return YO(I=>{x===v.layers.size-1&&(i==null||i(I),!I.defaultPrevented&&u&&(I.preventDefault(),u()))},d),D.useEffect(()=>{if(p)return n&&(v.layersWithOutsidePointerEventsDisabled.size===0&&(cg=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),v.layersWithOutsidePointerEventsDisabled.add(p)),v.layers.add(p),fg(),()=>{n&&v.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=cg)}},[p,d,n,v]),D.useEffect(()=>()=>{p&&(v.layers.delete(p),v.layersWithOutsidePointerEventsDisabled.delete(p),fg())},[p,v]),D.useEffect(()=>{const I=()=>m({});return document.addEventListener(ah,I),()=>document.removeEventListener(ah,I)},[]),re.jsx(Ue.div,{...h,ref:S,style:{pointerEvents:_?E?"auto":"none":void 0,...e.style},onFocusCapture:Ae(e.onFocusCapture,R.onFocusCapture),onBlurCapture:Ae(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:Ae(e.onPointerDownCapture,O.onPointerDownCapture)})});Bu.displayName=XO;var eC="DismissableLayerBranch",tC=D.forwardRef((e,t)=>{const n=D.useContext(Z0),i=D.useRef(null),l=Ge(t,i);return D.useEffect(()=>{const a=i.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),re.jsx(Ue.div,{...e,ref:l})});tC.displayName=eC;function nC(e,t=globalThis==null?void 0:globalThis.document){const n=Bt(e),i=D.useRef(!1),l=D.useRef(()=>{});return D.useEffect(()=>{const a=u=>{if(u.target&&!i.current){let h=function(){J0(ZO,n,v,{discrete:!0})};const v={originalEvent:u};u.pointerType==="touch"?(t.removeEventListener("click",l.current),l.current=h,t.addEventListener("click",l.current,{once:!0})):h()}else t.removeEventListener("click",l.current);i.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",l.current)}},[t,n]),{onPointerDownCapture:()=>i.current=!0}}function rC(e,t=globalThis==null?void 0:globalThis.document){const n=Bt(e),i=D.useRef(!1);return D.useEffect(()=>{const l=a=>{a.target&&!i.current&&J0(JO,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",l),()=>t.removeEventListener("focusin",l)},[t,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function fg(){const e=new CustomEvent(ah);document.dispatchEvent(e)}function J0(e,t,n,{discrete:i}){const l=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&l.addEventListener(e,t,{once:!0}),i?Y0(l,a):l.dispatchEvent(a)}var id=0;function Jh(){D.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??dg()),document.body.insertAdjacentElement("beforeend",e[1]??dg()),id++,()=>{id===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),id--}},[])}function dg(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var od="focusScope.autoFocusOnMount",ld="focusScope.autoFocusOnUnmount",hg={bubbles:!1,cancelable:!0},iC="FocusScope",zu=D.forwardRef((e,t)=>{const{loop:n=!1,trapped:i=!1,onMountAutoFocus:l,onUnmountAutoFocus:a,...s}=e,[u,h]=D.useState(null),v=Bt(l),p=Bt(a),f=D.useRef(null),d=Ge(t,y=>h(y)),m=D.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;D.useEffect(()=>{if(i){let y=function(_){if(m.paused||!u)return;const E=_.target;u.contains(E)?f.current=E:li(f.current,{select:!0})},g=function(_){if(m.paused||!u)return;const E=_.relatedTarget;E!==null&&(u.contains(E)||li(f.current,{select:!0}))},b=function(_){if(document.activeElement===document.body)for(const O of _)O.removedNodes.length>0&&li(u)};document.addEventListener("focusin",y),document.addEventListener("focusout",g);const x=new MutationObserver(b);return u&&x.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",g),x.disconnect()}}},[i,u,m.paused]),D.useEffect(()=>{if(u){mg.add(m);const y=document.activeElement;if(!u.contains(y)){const b=new CustomEvent(od,hg);u.addEventListener(od,v),u.dispatchEvent(b),b.defaultPrevented||(oC(cC(ew(u)),{select:!0}),document.activeElement===y&&li(u))}return()=>{u.removeEventListener(od,v),setTimeout(()=>{const b=new CustomEvent(ld,hg);u.addEventListener(ld,p),u.dispatchEvent(b),b.defaultPrevented||li(y??document.body,{select:!0}),u.removeEventListener(ld,p),mg.remove(m)},0)}}},[u,v,p,m]);const S=D.useCallback(y=>{if(!n&&!i||m.paused)return;const g=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,b=document.activeElement;if(g&&b){const x=y.currentTarget,[_,E]=lC(x);_&&E?!y.shiftKey&&b===E?(y.preventDefault(),n&&li(_,{select:!0})):y.shiftKey&&b===_&&(y.preventDefault(),n&&li(E,{select:!0})):b===x&&y.preventDefault()}},[n,i,m.paused]);return re.jsx(Ue.div,{tabIndex:-1,...s,ref:d,onKeyDown:S})});zu.displayName=iC;function oC(e,{select:t=!1}={}){const n=document.activeElement;for(const i of e)if(li(i,{select:t}),document.activeElement!==n)return}function lC(e){const t=ew(e),n=pg(t,e),i=pg(t.reverse(),e);return[n,i]}function ew(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const l=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||l?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function pg(e,t){for(const n of e)if(!aC(n,{upTo:t}))return n}function aC(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function sC(e){return e instanceof HTMLInputElement&&"select"in e}function li(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&sC(e)&&t&&e.select()}}var mg=uC();function uC(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=vg(e,t),e.unshift(t)},remove(t){var n;e=vg(e,t),(n=e[0])==null||n.resume()}}}function vg(e,t){const n=[...e],i=n.indexOf(t);return i!==-1&&n.splice(i,1),n}function cC(e){return e.filter(t=>t.tagName!=="A")}var zt=globalThis!=null&&globalThis.document?D.useLayoutEffect:()=>{},fC=qh[" useId ".trim().toString()]||(()=>{}),dC=0;function mr(e){const[t,n]=D.useState(fC());return zt(()=>{n(i=>i??String(dC++))},[e]),e||(t?`radix-${t}`:"")}const hC=["top","right","bottom","left"],bi=Math.min,bn=Math.max,wu=Math.round,Js=Math.floor,vr=e=>({x:e,y:e}),pC={left:"right",right:"left",bottom:"top",top:"bottom"},mC={start:"end",end:"start"};function sh(e,t,n){return bn(e,bi(t,n))}function jr(e,t){return typeof e=="function"?e(t):e}function Fr(e){return e.split("-")[0]}function ml(e){return e.split("-")[1]}function ep(e){return e==="x"?"y":"x"}function tp(e){return e==="y"?"height":"width"}const vC=new Set(["top","bottom"]);function pr(e){return vC.has(Fr(e))?"y":"x"}function np(e){return ep(pr(e))}function yC(e,t,n){n===void 0&&(n=!1);const i=ml(e),l=np(e),a=tp(l);let s=l==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=bu(s)),[s,bu(s)]}function gC(e){const t=bu(e);return[uh(e),t,uh(t)]}function uh(e){return e.replace(/start|end/g,t=>mC[t])}const yg=["left","right"],gg=["right","left"],wC=["top","bottom"],bC=["bottom","top"];function SC(e,t,n){switch(e){case"top":case"bottom":return n?t?gg:yg:t?yg:gg;case"left":case"right":return t?wC:bC;default:return[]}}function xC(e,t,n,i){const l=ml(e);let a=SC(Fr(e),n==="start",i);return l&&(a=a.map(s=>s+"-"+l),t&&(a=a.concat(a.map(uh)))),a}function bu(e){return e.replace(/left|right|bottom|top/g,t=>pC[t])}function EC(e){return{top:0,right:0,bottom:0,left:0,...e}}function tw(e){return typeof e!="number"?EC(e):{top:e,right:e,bottom:e,left:e}}function Su(e){const{x:t,y:n,width:i,height:l}=e;return{width:i,height:l,top:n,left:t,right:t+i,bottom:n+l,x:t,y:n}}function wg(e,t,n){let{reference:i,floating:l}=e;const a=pr(t),s=np(t),u=tp(s),h=Fr(t),v=a==="y",p=i.x+i.width/2-l.width/2,f=i.y+i.height/2-l.height/2,d=i[u]/2-l[u]/2;let m;switch(h){case"top":m={x:p,y:i.y-l.height};break;case"bottom":m={x:p,y:i.y+i.height};break;case"right":m={x:i.x+i.width,y:f};break;case"left":m={x:i.x-l.width,y:f};break;default:m={x:i.x,y:i.y}}switch(ml(t)){case"start":m[s]-=d*(n&&v?-1:1);break;case"end":m[s]+=d*(n&&v?-1:1);break}return m}const _C=async(e,t,n)=>{const{placement:i="bottom",strategy:l="absolute",middleware:a=[],platform:s}=n,u=a.filter(Boolean),h=await(s.isRTL==null?void 0:s.isRTL(t));let v=await s.getElementRects({reference:e,floating:t,strategy:l}),{x:p,y:f}=wg(v,i,h),d=i,m={},S=0;for(let y=0;y<u.length;y++){const{name:g,fn:b}=u[y],{x,y:_,data:E,reset:O}=await b({x:p,y:f,initialPlacement:i,placement:d,strategy:l,middlewareData:m,rects:v,platform:s,elements:{reference:e,floating:t}});p=x??p,f=_??f,m={...m,[g]:{...m[g],...E}},O&&S<=50&&(S++,typeof O=="object"&&(O.placement&&(d=O.placement),O.rects&&(v=O.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:l}):O.rects),{x:p,y:f}=wg(v,d,h)),y=-1)}return{x:p,y:f,placement:d,strategy:l,middlewareData:m}};async function Ea(e,t){var n;t===void 0&&(t={});const{x:i,y:l,platform:a,rects:s,elements:u,strategy:h}=e,{boundary:v="clippingAncestors",rootBoundary:p="viewport",elementContext:f="floating",altBoundary:d=!1,padding:m=0}=jr(t,e),S=tw(m),g=u[d?f==="floating"?"reference":"floating":f],b=Su(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(g)))==null||n?g:g.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(u.floating)),boundary:v,rootBoundary:p,strategy:h})),x=f==="floating"?{x:i,y:l,width:s.floating.width,height:s.floating.height}:s.reference,_=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u.floating)),E=await(a.isElement==null?void 0:a.isElement(_))?await(a.getScale==null?void 0:a.getScale(_))||{x:1,y:1}:{x:1,y:1},O=Su(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:x,offsetParent:_,strategy:h}):x);return{top:(b.top-O.top+S.top)/E.y,bottom:(O.bottom-b.bottom+S.bottom)/E.y,left:(b.left-O.left+S.left)/E.x,right:(O.right-b.right+S.right)/E.x}}const kC=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:l,rects:a,platform:s,elements:u,middlewareData:h}=t,{element:v,padding:p=0}=jr(e,t)||{};if(v==null)return{};const f=tw(p),d={x:n,y:i},m=np(l),S=tp(m),y=await s.getDimensions(v),g=m==="y",b=g?"top":"left",x=g?"bottom":"right",_=g?"clientHeight":"clientWidth",E=a.reference[S]+a.reference[m]-d[m]-a.floating[S],O=d[m]-a.reference[m],R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(v));let I=R?R[_]:0;(!I||!await(s.isElement==null?void 0:s.isElement(R)))&&(I=u.floating[_]||a.floating[S]);const j=E/2-O/2,B=I/2-y[S]/2-1,L=bi(f[b],B),P=bi(f[x],B),N=L,F=I-y[S]-P,z=I/2-y[S]/2+j,H=sh(N,z,F),Q=!h.arrow&&ml(l)!=null&&z!==H&&a.reference[S]/2-(z<N?L:P)-y[S]/2<0,Y=Q?z<N?z-N:z-F:0;return{[m]:d[m]+Y,data:{[m]:H,centerOffset:z-H-Y,...Q&&{alignmentOffset:Y}},reset:Q}}}),OC=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:l,middlewareData:a,rects:s,initialPlacement:u,platform:h,elements:v}=t,{mainAxis:p=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:y=!0,...g}=jr(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const b=Fr(l),x=pr(u),_=Fr(u)===u,E=await(h.isRTL==null?void 0:h.isRTL(v.floating)),O=d||(_||!y?[bu(u)]:gC(u)),R=S!=="none";!d&&R&&O.push(...xC(u,y,S,E));const I=[u,...O],j=await Ea(t,g),B=[];let L=((i=a.flip)==null?void 0:i.overflows)||[];if(p&&B.push(j[b]),f){const z=yC(l,s,E);B.push(j[z[0]],j[z[1]])}if(L=[...L,{placement:l,overflows:B}],!B.every(z=>z<=0)){var P,N;const z=(((P=a.flip)==null?void 0:P.index)||0)+1,H=I[z];if(H&&(!(f==="alignment"?x!==pr(H):!1)||L.every(X=>pr(X.placement)===x?X.overflows[0]>0:!0)))return{data:{index:z,overflows:L},reset:{placement:H}};let Q=(N=L.filter(Y=>Y.overflows[0]<=0).sort((Y,X)=>Y.overflows[1]-X.overflows[1])[0])==null?void 0:N.placement;if(!Q)switch(m){case"bestFit":{var F;const Y=(F=L.filter(X=>{if(R){const $=pr(X.placement);return $===x||$==="y"}return!0}).map(X=>[X.placement,X.overflows.filter($=>$>0).reduce(($,T)=>$+T,0)]).sort((X,$)=>X[1]-$[1])[0])==null?void 0:F[0];Y&&(Q=Y);break}case"initialPlacement":Q=u;break}if(l!==Q)return{reset:{placement:Q}}}return{}}}};function bg(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Sg(e){return hC.some(t=>e[t]>=0)}const CC=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:i="referenceHidden",...l}=jr(e,t);switch(i){case"referenceHidden":{const a=await Ea(t,{...l,elementContext:"reference"}),s=bg(a,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Sg(s)}}}case"escaped":{const a=await Ea(t,{...l,altBoundary:!0}),s=bg(a,n.floating);return{data:{escapedOffsets:s,escaped:Sg(s)}}}default:return{}}}}},nw=new Set(["left","top"]);async function PC(e,t){const{placement:n,platform:i,elements:l}=e,a=await(i.isRTL==null?void 0:i.isRTL(l.floating)),s=Fr(n),u=ml(n),h=pr(n)==="y",v=nw.has(s)?-1:1,p=a&&h?-1:1,f=jr(t,e);let{mainAxis:d,crossAxis:m,alignmentAxis:S}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return u&&typeof S=="number"&&(m=u==="end"?S*-1:S),h?{x:m*p,y:d*v}:{x:d*v,y:m*p}}const AC=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:l,y:a,placement:s,middlewareData:u}=t,h=await PC(t,e);return s===((n=u.offset)==null?void 0:n.placement)&&(i=u.arrow)!=null&&i.alignmentOffset?{}:{x:l+h.x,y:a+h.y,data:{...h,placement:s}}}}},TC=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:l}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:u={fn:g=>{let{x:b,y:x}=g;return{x:b,y:x}}},...h}=jr(e,t),v={x:n,y:i},p=await Ea(t,h),f=pr(Fr(l)),d=ep(f);let m=v[d],S=v[f];if(a){const g=d==="y"?"top":"left",b=d==="y"?"bottom":"right",x=m+p[g],_=m-p[b];m=sh(x,m,_)}if(s){const g=f==="y"?"top":"left",b=f==="y"?"bottom":"right",x=S+p[g],_=S-p[b];S=sh(x,S,_)}const y=u.fn({...t,[d]:m,[f]:S});return{...y,data:{x:y.x-n,y:y.y-i,enabled:{[d]:a,[f]:s}}}}}},RC=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:i,placement:l,rects:a,middlewareData:s}=t,{offset:u=0,mainAxis:h=!0,crossAxis:v=!0}=jr(e,t),p={x:n,y:i},f=pr(l),d=ep(f);let m=p[d],S=p[f];const y=jr(u,t),g=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(h){const _=d==="y"?"height":"width",E=a.reference[d]-a.floating[_]+g.mainAxis,O=a.reference[d]+a.reference[_]-g.mainAxis;m<E?m=E:m>O&&(m=O)}if(v){var b,x;const _=d==="y"?"width":"height",E=nw.has(Fr(l)),O=a.reference[f]-a.floating[_]+(E&&((b=s.offset)==null?void 0:b[f])||0)+(E?0:g.crossAxis),R=a.reference[f]+a.reference[_]+(E?0:((x=s.offset)==null?void 0:x[f])||0)-(E?g.crossAxis:0);S<O?S=O:S>R&&(S=R)}return{[d]:m,[f]:S}}}},NC=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,i;const{placement:l,rects:a,platform:s,elements:u}=t,{apply:h=()=>{},...v}=jr(e,t),p=await Ea(t,v),f=Fr(l),d=ml(l),m=pr(l)==="y",{width:S,height:y}=a.floating;let g,b;f==="top"||f==="bottom"?(g=f,b=d===(await(s.isRTL==null?void 0:s.isRTL(u.floating))?"start":"end")?"left":"right"):(b=f,g=d==="end"?"top":"bottom");const x=y-p.top-p.bottom,_=S-p.left-p.right,E=bi(y-p[g],x),O=bi(S-p[b],_),R=!t.middlewareData.shift;let I=E,j=O;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(j=_),(i=t.middlewareData.shift)!=null&&i.enabled.y&&(I=x),R&&!d){const L=bn(p.left,0),P=bn(p.right,0),N=bn(p.top,0),F=bn(p.bottom,0);m?j=S-2*(L!==0||P!==0?L+P:bn(p.left,p.right)):I=y-2*(N!==0||F!==0?N+F:bn(p.top,p.bottom))}await h({...t,availableWidth:j,availableHeight:I});const B=await s.getDimensions(u.floating);return S!==B.width||y!==B.height?{reset:{rects:!0}}:{}}}};function qu(){return typeof window<"u"}function vl(e){return rw(e)?(e.nodeName||"").toLowerCase():"#document"}function En(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function wr(e){var t;return(t=(rw(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function rw(e){return qu()?e instanceof Node||e instanceof En(e).Node:!1}function Jn(e){return qu()?e instanceof Element||e instanceof En(e).Element:!1}function yr(e){return qu()?e instanceof HTMLElement||e instanceof En(e).HTMLElement:!1}function xg(e){return!qu()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof En(e).ShadowRoot}const IC=new Set(["inline","contents"]);function Da(e){const{overflow:t,overflowX:n,overflowY:i,display:l}=er(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!IC.has(l)}const LC=new Set(["table","td","th"]);function MC(e){return LC.has(vl(e))}const DC=[":popover-open",":modal"];function Uu(e){return DC.some(t=>{try{return e.matches(t)}catch{return!1}})}const jC=["transform","translate","scale","rotate","perspective"],FC=["transform","translate","scale","rotate","perspective","filter"],BC=["paint","layout","strict","content"];function rp(e){const t=ip(),n=Jn(e)?er(e):e;return jC.some(i=>n[i]?n[i]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||FC.some(i=>(n.willChange||"").includes(i))||BC.some(i=>(n.contain||"").includes(i))}function zC(e){let t=Si(e);for(;yr(t)&&!ll(t);){if(rp(t))return t;if(Uu(t))return null;t=Si(t)}return null}function ip(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const qC=new Set(["html","body","#document"]);function ll(e){return qC.has(vl(e))}function er(e){return En(e).getComputedStyle(e)}function Vu(e){return Jn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Si(e){if(vl(e)==="html")return e;const t=e.assignedSlot||e.parentNode||xg(e)&&e.host||wr(e);return xg(t)?t.host:t}function iw(e){const t=Si(e);return ll(t)?e.ownerDocument?e.ownerDocument.body:e.body:yr(t)&&Da(t)?t:iw(t)}function _a(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const l=iw(e),a=l===((i=e.ownerDocument)==null?void 0:i.body),s=En(l);if(a){const u=ch(s);return t.concat(s,s.visualViewport||[],Da(l)?l:[],u&&n?_a(u):[])}return t.concat(l,_a(l,[],n))}function ch(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ow(e){const t=er(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const l=yr(e),a=l?e.offsetWidth:n,s=l?e.offsetHeight:i,u=wu(n)!==a||wu(i)!==s;return u&&(n=a,i=s),{width:n,height:i,$:u}}function op(e){return Jn(e)?e:e.contextElement}function Ho(e){const t=op(e);if(!yr(t))return vr(1);const n=t.getBoundingClientRect(),{width:i,height:l,$:a}=ow(t);let s=(a?wu(n.width):n.width)/i,u=(a?wu(n.height):n.height)/l;return(!s||!Number.isFinite(s))&&(s=1),(!u||!Number.isFinite(u))&&(u=1),{x:s,y:u}}const UC=vr(0);function lw(e){const t=En(e);return!ip()||!t.visualViewport?UC:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function VC(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==En(e)?!1:t}function ro(e,t,n,i){t===void 0&&(t=!1),n===void 0&&(n=!1);const l=e.getBoundingClientRect(),a=op(e);let s=vr(1);t&&(i?Jn(i)&&(s=Ho(i)):s=Ho(e));const u=VC(a,n,i)?lw(a):vr(0);let h=(l.left+u.x)/s.x,v=(l.top+u.y)/s.y,p=l.width/s.x,f=l.height/s.y;if(a){const d=En(a),m=i&&Jn(i)?En(i):i;let S=d,y=ch(S);for(;y&&i&&m!==S;){const g=Ho(y),b=y.getBoundingClientRect(),x=er(y),_=b.left+(y.clientLeft+parseFloat(x.paddingLeft))*g.x,E=b.top+(y.clientTop+parseFloat(x.paddingTop))*g.y;h*=g.x,v*=g.y,p*=g.x,f*=g.y,h+=_,v+=E,S=En(y),y=ch(S)}}return Su({width:p,height:f,x:h,y:v})}function Hu(e,t){const n=Vu(e).scrollLeft;return t?t.left+n:ro(wr(e)).left+n}function aw(e,t){const n=e.getBoundingClientRect(),i=n.left+t.scrollLeft-Hu(e,n),l=n.top+t.scrollTop;return{x:i,y:l}}function HC(e){let{elements:t,rect:n,offsetParent:i,strategy:l}=e;const a=l==="fixed",s=wr(i),u=t?Uu(t.floating):!1;if(i===s||u&&a)return n;let h={scrollLeft:0,scrollTop:0},v=vr(1);const p=vr(0),f=yr(i);if((f||!f&&!a)&&((vl(i)!=="body"||Da(s))&&(h=Vu(i)),yr(i))){const m=ro(i);v=Ho(i),p.x=m.x+i.clientLeft,p.y=m.y+i.clientTop}const d=s&&!f&&!a?aw(s,h):vr(0);return{width:n.width*v.x,height:n.height*v.y,x:n.x*v.x-h.scrollLeft*v.x+p.x+d.x,y:n.y*v.y-h.scrollTop*v.y+p.y+d.y}}function $C(e){return Array.from(e.getClientRects())}function WC(e){const t=wr(e),n=Vu(e),i=e.ownerDocument.body,l=bn(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),a=bn(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let s=-n.scrollLeft+Hu(e);const u=-n.scrollTop;return er(i).direction==="rtl"&&(s+=bn(t.clientWidth,i.clientWidth)-l),{width:l,height:a,x:s,y:u}}const Eg=25;function KC(e,t){const n=En(e),i=wr(e),l=n.visualViewport;let a=i.clientWidth,s=i.clientHeight,u=0,h=0;if(l){a=l.width,s=l.height;const p=ip();(!p||p&&t==="fixed")&&(u=l.offsetLeft,h=l.offsetTop)}const v=Hu(i);if(v<=0){const p=i.ownerDocument,f=p.body,d=getComputedStyle(f),m=p.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,S=Math.abs(i.clientWidth-f.clientWidth-m);S<=Eg&&(a-=S)}else v<=Eg&&(a+=v);return{width:a,height:s,x:u,y:h}}const QC=new Set(["absolute","fixed"]);function GC(e,t){const n=ro(e,!0,t==="fixed"),i=n.top+e.clientTop,l=n.left+e.clientLeft,a=yr(e)?Ho(e):vr(1),s=e.clientWidth*a.x,u=e.clientHeight*a.y,h=l*a.x,v=i*a.y;return{width:s,height:u,x:h,y:v}}function _g(e,t,n){let i;if(t==="viewport")i=KC(e,n);else if(t==="document")i=WC(wr(e));else if(Jn(t))i=GC(t,n);else{const l=lw(e);i={x:t.x-l.x,y:t.y-l.y,width:t.width,height:t.height}}return Su(i)}function sw(e,t){const n=Si(e);return n===t||!Jn(n)||ll(n)?!1:er(n).position==="fixed"||sw(n,t)}function YC(e,t){const n=t.get(e);if(n)return n;let i=_a(e,[],!1).filter(u=>Jn(u)&&vl(u)!=="body"),l=null;const a=er(e).position==="fixed";let s=a?Si(e):e;for(;Jn(s)&&!ll(s);){const u=er(s),h=rp(s);!h&&u.position==="fixed"&&(l=null),(a?!h&&!l:!h&&u.position==="static"&&!!l&&QC.has(l.position)||Da(s)&&!h&&sw(e,s))?i=i.filter(p=>p!==s):l=u,s=Si(s)}return t.set(e,i),i}function XC(e){let{element:t,boundary:n,rootBoundary:i,strategy:l}=e;const s=[...n==="clippingAncestors"?Uu(t)?[]:YC(t,this._c):[].concat(n),i],u=s[0],h=s.reduce((v,p)=>{const f=_g(t,p,l);return v.top=bn(f.top,v.top),v.right=bi(f.right,v.right),v.bottom=bi(f.bottom,v.bottom),v.left=bn(f.left,v.left),v},_g(t,u,l));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}function ZC(e){const{width:t,height:n}=ow(e);return{width:t,height:n}}function JC(e,t,n){const i=yr(t),l=wr(t),a=n==="fixed",s=ro(e,!0,a,t);let u={scrollLeft:0,scrollTop:0};const h=vr(0);function v(){h.x=Hu(l)}if(i||!i&&!a)if((vl(t)!=="body"||Da(l))&&(u=Vu(t)),i){const m=ro(t,!0,a,t);h.x=m.x+t.clientLeft,h.y=m.y+t.clientTop}else l&&v();a&&!i&&l&&v();const p=l&&!i&&!a?aw(l,u):vr(0),f=s.left+u.scrollLeft-h.x-p.x,d=s.top+u.scrollTop-h.y-p.y;return{x:f,y:d,width:s.width,height:s.height}}function ad(e){return er(e).position==="static"}function kg(e,t){if(!yr(e)||er(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return wr(e)===n&&(n=n.ownerDocument.body),n}function uw(e,t){const n=En(e);if(Uu(e))return n;if(!yr(e)){let l=Si(e);for(;l&&!ll(l);){if(Jn(l)&&!ad(l))return l;l=Si(l)}return n}let i=kg(e,t);for(;i&&MC(i)&&ad(i);)i=kg(i,t);return i&&ll(i)&&ad(i)&&!rp(i)?n:i||zC(e)||n}const eP=async function(e){const t=this.getOffsetParent||uw,n=this.getDimensions,i=await n(e.floating);return{reference:JC(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function tP(e){return er(e).direction==="rtl"}const nP={convertOffsetParentRelativeRectToViewportRelativeRect:HC,getDocumentElement:wr,getClippingRect:XC,getOffsetParent:uw,getElementRects:eP,getClientRects:$C,getDimensions:ZC,getScale:Ho,isElement:Jn,isRTL:tP};function cw(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function rP(e,t){let n=null,i;const l=wr(e);function a(){var u;clearTimeout(i),(u=n)==null||u.disconnect(),n=null}function s(u,h){u===void 0&&(u=!1),h===void 0&&(h=1),a();const v=e.getBoundingClientRect(),{left:p,top:f,width:d,height:m}=v;if(u||t(),!d||!m)return;const S=Js(f),y=Js(l.clientWidth-(p+d)),g=Js(l.clientHeight-(f+m)),b=Js(p),_={rootMargin:-S+"px "+-y+"px "+-g+"px "+-b+"px",threshold:bn(0,bi(1,h))||1};let E=!0;function O(R){const I=R[0].intersectionRatio;if(I!==h){if(!E)return s();I?s(!1,I):i=setTimeout(()=>{s(!1,1e-7)},1e3)}I===1&&!cw(v,e.getBoundingClientRect())&&s(),E=!1}try{n=new IntersectionObserver(O,{..._,root:l.ownerDocument})}catch{n=new IntersectionObserver(O,_)}n.observe(e)}return s(!0),a}function iP(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:l=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:h=!1}=i,v=op(e),p=l||a?[...v?_a(v):[],..._a(t)]:[];p.forEach(b=>{l&&b.addEventListener("scroll",n,{passive:!0}),a&&b.addEventListener("resize",n)});const f=v&&u?rP(v,n):null;let d=-1,m=null;s&&(m=new ResizeObserver(b=>{let[x]=b;x&&x.target===v&&m&&(m.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var _;(_=m)==null||_.observe(t)})),n()}),v&&!h&&m.observe(v),m.observe(t));let S,y=h?ro(e):null;h&&g();function g(){const b=ro(e);y&&!cw(y,b)&&n(),y=b,S=requestAnimationFrame(g)}return n(),()=>{var b;p.forEach(x=>{l&&x.removeEventListener("scroll",n),a&&x.removeEventListener("resize",n)}),f==null||f(),(b=m)==null||b.disconnect(),m=null,h&&cancelAnimationFrame(S)}}const oP=AC,lP=TC,aP=OC,sP=NC,uP=CC,Og=kC,cP=RC,fP=(e,t,n)=>{const i=new Map,l={platform:nP,...n},a={...l.platform,_c:i};return _C(e,t,{...l,platform:a})};var dP=typeof document<"u",hP=function(){},fu=dP?D.useLayoutEffect:hP;function xu(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,i,l;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(i=n;i--!==0;)if(!xu(e[i],t[i]))return!1;return!0}if(l=Object.keys(e),n=l.length,n!==Object.keys(t).length)return!1;for(i=n;i--!==0;)if(!{}.hasOwnProperty.call(t,l[i]))return!1;for(i=n;i--!==0;){const a=l[i];if(!(a==="_owner"&&e.$$typeof)&&!xu(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function fw(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Cg(e,t){const n=fw(e);return Math.round(t*n)/n}function sd(e){const t=D.useRef(e);return fu(()=>{t.current=e}),t}function pP(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:l,elements:{reference:a,floating:s}={},transform:u=!0,whileElementsMounted:h,open:v}=e,[p,f]=D.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,m]=D.useState(i);xu(d,i)||m(i);const[S,y]=D.useState(null),[g,b]=D.useState(null),x=D.useCallback(X=>{X!==R.current&&(R.current=X,y(X))},[]),_=D.useCallback(X=>{X!==I.current&&(I.current=X,b(X))},[]),E=a||S,O=s||g,R=D.useRef(null),I=D.useRef(null),j=D.useRef(p),B=h!=null,L=sd(h),P=sd(l),N=sd(v),F=D.useCallback(()=>{if(!R.current||!I.current)return;const X={placement:t,strategy:n,middleware:d};P.current&&(X.platform=P.current),fP(R.current,I.current,X).then($=>{const T={...$,isPositioned:N.current!==!1};z.current&&!xu(j.current,T)&&(j.current=T,Ma.flushSync(()=>{f(T)}))})},[d,t,n,P,N]);fu(()=>{v===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,f(X=>({...X,isPositioned:!1})))},[v]);const z=D.useRef(!1);fu(()=>(z.current=!0,()=>{z.current=!1}),[]),fu(()=>{if(E&&(R.current=E),O&&(I.current=O),E&&O){if(L.current)return L.current(E,O,F);F()}},[E,O,F,L,B]);const H=D.useMemo(()=>({reference:R,floating:I,setReference:x,setFloating:_}),[x,_]),Q=D.useMemo(()=>({reference:E,floating:O}),[E,O]),Y=D.useMemo(()=>{const X={position:n,left:0,top:0};if(!Q.floating)return X;const $=Cg(Q.floating,p.x),T=Cg(Q.floating,p.y);return u?{...X,transform:"translate("+$+"px, "+T+"px)",...fw(Q.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:$,top:T}},[n,u,Q.floating,p.x,p.y]);return D.useMemo(()=>({...p,update:F,refs:H,elements:Q,floatingStyles:Y}),[p,F,H,Q,Y])}const mP=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:i,padding:l}=typeof e=="function"?e(n):e;return i&&t(i)?i.current!=null?Og({element:i.current,padding:l}).fn(n):{}:i?Og({element:i,padding:l}).fn(n):{}}}},vP=(e,t)=>({...oP(e),options:[e,t]}),yP=(e,t)=>({...lP(e),options:[e,t]}),gP=(e,t)=>({...cP(e),options:[e,t]}),wP=(e,t)=>({...aP(e),options:[e,t]}),bP=(e,t)=>({...sP(e),options:[e,t]}),SP=(e,t)=>({...uP(e),options:[e,t]}),xP=(e,t)=>({...mP(e),options:[e,t]});var EP="Arrow",dw=D.forwardRef((e,t)=>{const{children:n,width:i=10,height:l=5,...a}=e;return re.jsx(Ue.svg,{...a,ref:t,width:i,height:l,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:re.jsx("polygon",{points:"0,0 30,0 15,10"})})});dw.displayName=EP;var _P=dw;function lp(e){const[t,n]=D.useState(void 0);return zt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(l=>{if(!Array.isArray(l)||!l.length)return;const a=l[0];let s,u;if("borderBoxSize"in a){const h=a.borderBoxSize,v=Array.isArray(h)?h[0]:h;s=v.inlineSize,u=v.blockSize}else s=e.offsetWidth,u=e.offsetHeight;n({width:s,height:u})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else n(void 0)},[e]),t}var ap="Popper",[hw,$u]=_n(ap),[kP,pw]=hw(ap),mw=e=>{const{__scopePopper:t,children:n}=e,[i,l]=D.useState(null);return re.jsx(kP,{scope:t,anchor:i,onAnchorChange:l,children:n})};mw.displayName=ap;var vw="PopperAnchor",yw=D.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:i,...l}=e,a=pw(vw,n),s=D.useRef(null),u=Ge(t,s),h=D.useRef(null);return D.useEffect(()=>{const v=h.current;h.current=(i==null?void 0:i.current)||s.current,v!==h.current&&a.onAnchorChange(h.current)}),i?null:re.jsx(Ue.div,{...l,ref:u})});yw.displayName=vw;var sp="PopperContent",[OP,CP]=hw(sp),gw=D.forwardRef((e,t)=>{var K,ie,le,ce,we,Oe;const{__scopePopper:n,side:i="bottom",sideOffset:l=0,align:a="center",alignOffset:s=0,arrowPadding:u=0,avoidCollisions:h=!0,collisionBoundary:v=[],collisionPadding:p=0,sticky:f="partial",hideWhenDetached:d=!1,updatePositionStrategy:m="optimized",onPlaced:S,...y}=e,g=pw(sp,n),[b,x]=D.useState(null),_=Ge(t,Re=>x(Re)),[E,O]=D.useState(null),R=lp(E),I=(R==null?void 0:R.width)??0,j=(R==null?void 0:R.height)??0,B=i+(a!=="center"?"-"+a:""),L=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},P=Array.isArray(v)?v:[v],N=P.length>0,F={padding:L,boundary:P.filter(AP),altBoundary:N},{refs:z,floatingStyles:H,placement:Q,isPositioned:Y,middlewareData:X}=pP({strategy:"fixed",placement:B,whileElementsMounted:(...Re)=>iP(...Re,{animationFrame:m==="always"}),elements:{reference:g.anchor},middleware:[vP({mainAxis:l+j,alignmentAxis:s}),h&&yP({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?gP():void 0,...F}),h&&wP({...F}),bP({...F,apply:({elements:Re,rects:Fe,availableWidth:$e,availableHeight:lt})=>{const{width:Ze,height:he}=Fe.reference,pe=Re.floating.style;pe.setProperty("--radix-popper-available-width",`${$e}px`),pe.setProperty("--radix-popper-available-height",`${lt}px`),pe.setProperty("--radix-popper-anchor-width",`${Ze}px`),pe.setProperty("--radix-popper-anchor-height",`${he}px`)}}),E&&xP({element:E,padding:u}),TP({arrowWidth:I,arrowHeight:j}),d&&SP({strategy:"referenceHidden",...F})]}),[$,T]=Sw(Q),A=Bt(S);zt(()=>{Y&&(A==null||A())},[Y,A]);const q=(K=X.arrow)==null?void 0:K.x,M=(ie=X.arrow)==null?void 0:ie.y,ee=((le=X.arrow)==null?void 0:le.centerOffset)!==0,[te,V]=D.useState();return zt(()=>{b&&V(window.getComputedStyle(b).zIndex)},[b]),re.jsx("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...H,transform:Y?H.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:te,"--radix-popper-transform-origin":[(ce=X.transformOrigin)==null?void 0:ce.x,(we=X.transformOrigin)==null?void 0:we.y].join(" "),...((Oe=X.hide)==null?void 0:Oe.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:re.jsx(OP,{scope:n,placedSide:$,onArrowChange:O,arrowX:q,arrowY:M,shouldHideArrow:ee,children:re.jsx(Ue.div,{"data-side":$,"data-align":T,...y,ref:_,style:{...y.style,animation:Y?void 0:"none"}})})})});gw.displayName=sp;var ww="PopperArrow",PP={top:"bottom",right:"left",bottom:"top",left:"right"},bw=D.forwardRef(function(t,n){const{__scopePopper:i,...l}=t,a=CP(ww,i),s=PP[a.placedSide];return re.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:re.jsx(_P,{...l,ref:n,style:{...l.style,display:"block"}})})});bw.displayName=ww;function AP(e){return e!==null}var TP=e=>({name:"transformOrigin",options:e,fn(t){var g,b,x;const{placement:n,rects:i,middlewareData:l}=t,s=((g=l.arrow)==null?void 0:g.centerOffset)!==0,u=s?0:e.arrowWidth,h=s?0:e.arrowHeight,[v,p]=Sw(n),f={start:"0%",center:"50%",end:"100%"}[p],d=(((b=l.arrow)==null?void 0:b.x)??0)+u/2,m=(((x=l.arrow)==null?void 0:x.y)??0)+h/2;let S="",y="";return v==="bottom"?(S=s?f:`${d}px`,y=`${-h}px`):v==="top"?(S=s?f:`${d}px`,y=`${i.floating.height+h}px`):v==="right"?(S=`${-h}px`,y=s?f:`${m}px`):v==="left"&&(S=`${i.floating.width+h}px`,y=s?f:`${m}px`),{data:{x:S,y}}}});function Sw(e){const[t,n="center"]=e.split("-");return[t,n]}var xw=mw,Ew=yw,_w=gw,kw=bw,RP="Portal",Wu=D.forwardRef((e,t)=>{var u;const{container:n,...i}=e,[l,a]=D.useState(!1);zt(()=>a(!0),[]);const s=n||l&&((u=globalThis==null?void 0:globalThis.document)==null?void 0:u.body);return s?jk.createPortal(re.jsx(Ue.div,{...i,ref:t}),s):null});Wu.displayName=RP;var NP=qh[" useInsertionEffect ".trim().toString()]||zt;function xi({prop:e,defaultProp:t,onChange:n=()=>{},caller:i}){const[l,a,s]=IP({defaultProp:t,onChange:n}),u=e!==void 0,h=u?e:l;{const p=D.useRef(e!==void 0);D.useEffect(()=>{const f=p.current;f!==u&&console.warn(`${i} is changing from ${f?"controlled":"uncontrolled"} to ${u?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),p.current=u},[u,i])}const v=D.useCallback(p=>{var f;if(u){const d=LP(p)?p(e):p;d!==e&&((f=s.current)==null||f.call(s,d))}else a(p)},[u,e,a,s]);return[h,v]}function IP({defaultProp:e,onChange:t}){const[n,i]=D.useState(e),l=D.useRef(n),a=D.useRef(t);return NP(()=>{a.current=t},[t]),D.useEffect(()=>{var s;l.current!==n&&((s=a.current)==null||s.call(a,n),l.current=n)},[n,l]),[n,i,a]}function LP(e){return typeof e=="function"}function up(e){const t=D.useRef({value:e,previous:e});return D.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Ow=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),MP="VisuallyHidden",DP=D.forwardRef((e,t)=>re.jsx(Ue.span,{...e,ref:t,style:{...Ow,...e.style}}));DP.displayName=MP;var jP=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Do=new WeakMap,eu=new WeakMap,tu={},ud=0,Cw=function(e){return e&&(e.host||Cw(e.parentNode))},FP=function(e,t){return t.map(function(n){if(e.contains(n))return n;var i=Cw(n);return i&&e.contains(i)?i:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},BP=function(e,t,n,i){var l=FP(t,Array.isArray(e)?e:[e]);tu[n]||(tu[n]=new WeakMap);var a=tu[n],s=[],u=new Set,h=new Set(l),v=function(f){!f||u.has(f)||(u.add(f),v(f.parentNode))};l.forEach(v);var p=function(f){!f||h.has(f)||Array.prototype.forEach.call(f.children,function(d){if(u.has(d))p(d);else try{var m=d.getAttribute(i),S=m!==null&&m!=="false",y=(Do.get(d)||0)+1,g=(a.get(d)||0)+1;Do.set(d,y),a.set(d,g),s.push(d),y===1&&S&&eu.set(d,!0),g===1&&d.setAttribute(n,"true"),S||d.setAttribute(i,"true")}catch(b){console.error("aria-hidden: cannot operate on ",d,b)}})};
vendor: 5,333 bytes, lines 67-82
67return p(t),u.clear(),ud++,function(){s.forEach(function(f){var d=Do.get(f)-1,m=a.get(f)-1;Do.set(f,d),a.set(f,m),d||(eu.has(f)||f.removeAttribute(i),eu.delete(f)),m||f.removeAttribute(n)}),ud--,ud||(Do=new WeakMap,Do=new WeakMap,eu=new WeakMap,tu={})}},cp=function(e,t,n){n===void 0&&(n="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),l=jP(e);return l?(i.push.apply(i,Array.from(l.querySelectorAll("[aria-live], script"))),BP(i,l,n,"aria-hidden")):function(){return null}},du="right-scroll-bar-position",hu="width-before-scroll-bar",zP="with-scroll-bars-hidden",qP="--removed-body-scroll-bar-size";function cd(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function UP(e,t){var n=D.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(i){var l=n.value;l!==i&&(n.value=i,n.callback(i,l))}}}})[0];return n.callback=t,n.facade}var VP=typeof window<"u"?D.useLayoutEffect:D.useEffect,Pg=new WeakMap;function HP(e,t){var n=UP(null,function(i){return e.forEach(function(l){return cd(l,i)})});return VP(function(){var i=Pg.get(n);if(i){var l=new Set(i),a=new Set(e),s=n.current;l.forEach(function(u){a.has(u)||cd(u,null)}),a.forEach(function(u){l.has(u)||cd(u,s)})}Pg.set(n,e)},[e]),n}function $P(e){return e}function WP(e,t){t===void 0&&(t=$P);var n=[],i=!1,l={read:function(){if(i)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(a){var s=t(a,i);return n.push(s),function(){n=n.filter(function(u){return u!==s})}},assignSyncMedium:function(a){for(i=!0;n.length;){var s=n;n=[],s.forEach(a)}n={push:function(u){return a(u)},filter:function(){return n}}},assignMedium:function(a){i=!0;var s=[];if(n.length){var u=n;n=[],u.forEach(a),s=n}var h=function(){var p=s;s=[],p.forEach(a)},v=function(){return Promise.resolve().then(h)};v(),n={push:function(p){s.push(p),v()},filter:function(p){return s=s.filter(p),n}}}};return l}function KP(e){e===void 0&&(e={});var t=WP(null);return t.options=dr({async:!0,ssr:!1},e),t}var Pw=function(e){var t=e.sideCar,n=G0(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return D.createElement(i,dr({},n))};Pw.isSideCarExport=!0;function QP(e,t){return e.useMedium(t),Pw}var Aw=KP(),fd=function(){},Ku=D.forwardRef(function(e,t){var n=D.useRef(null),i=D.useState({onScrollCapture:fd,onWheelCapture:fd,onTouchMoveCapture:fd}),l=i[0],a=i[1],s=e.forwardProps,u=e.children,h=e.className,v=e.removeScrollBar,p=e.enabled,f=e.shards,d=e.sideCar,m=e.noRelative,S=e.noIsolation,y=e.inert,g=e.allowPinchZoom,b=e.as,x=b===void 0?"div":b,_=e.gapMode,E=G0(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=d,R=HP([n,t]),I=dr(dr({},E),l);return D.createElement(D.Fragment,null,p&&D.createElement(O,{sideCar:Aw,removeScrollBar:v,shards:f,noRelative:m,noIsolation:S,inert:y,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:_}),s?D.cloneElement(D.Children.only(u),dr(dr({},I),{ref:R})):D.createElement(x,dr({},I,{className:h,ref:R}),u))});Ku.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ku.classNames={fullWidth:hu,zeroRight:du};var GP=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function YP(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=GP();return t&&e.setAttribute("nonce",t),e}function XP(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ZP(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var JP=function(){var e=0,t=null;return{add:function(n){e==0&&(t=YP())&&(XP(t,n),ZP(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},eA=function(){var e=JP();return function(t,n){D.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Tw=function(){var e=eA(),t=function(n){var i=n.styles,l=n.dynamic;return e(i,l),null};return t},tA={left:0,top:0,right:0,gap:0},dd=function(e){return parseInt(e||"",10)||0},nA=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],i=t[e==="padding"?"paddingTop":"marginTop"],l=t[e==="padding"?"paddingRight":"marginRight"];return[dd(n),dd(i),dd(l)]},rA=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return tA;var t=nA(e),n=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-n+t[2]-t[0])}},iA=Tw(),$o="data-scroll-locked",oA=function(e,t,n,i){var l=e.left,a=e.top,s=e.right,u=e.gap;return n===void 0&&(n="margin"),`
68  .`.concat(zP,` {
69   overflow: hidden `).concat(i,`;
70   padding-right: `).concat(u,"px ").concat(i,`;
71  }
72  body[`).concat($o,`] {
73    overflow: hidden `).concat(i,`;
74    overscroll-behavior: contain;
75    `).concat([t&&"position: relative ".concat(i,";"),n==="margin"&&`
76    padding-left: `.concat(l,`px;
77    padding-top: `).concat(a,`px;
78    padding-right: `).concat(s,`px;
79    margin-left:0;
80    margin-top:0;
81    margin-right: `).concat(u,"px ").concat(i,`;
82    `),n==="padding"&&"padding-right: ".concat(u,"px ").concat(i,";
82")].filter(Boolean).join(""),`
83  }
84  
85  .`).concat(du,` {
86    right: `).concat(u,"px ").concat(i,`;
87  }
88  
89  .`).concat(hu,` {
90    margin-right: `).concat(u,"px ").concat(i,`;
91  }
92  
93  .`).concat(du," .").concat(du,` {
94    right: 0 `).concat(i,`;
95  }
96  
97  .`).concat(hu," .").concat(hu,` {
98    margin-right: 0 `).concat(i,`;
99  }
100  
101  body[`).concat($o,`] {
102    `).concat(qP,": ").concat(u,`px;
103  }
104`)},Ag=function(){var e=parseInt(document.body.getAttribute($o)||"0",10);return isFinite(e)?e:0},lA=function(){D.useEffect(function(){return document.body.setAttribute($o,(Ag()+1).toString()),function(){var e=Ag()-1;e<=0?document.body.removeAttribute($o):document.body.setAttribute($o,e.toString())}},[])},aA=function(e){var t=e.noRelative,n=e.noImportant,i=e.gapMode,l=i===void 0?"margin":i;lA();var a=D.useMemo(function(){return rA(l)},[l]);return D.createElement(iA,{styles:oA(a,!t,l,n?"":"!important")})},fh=!1;if(typeof window<"u")try{var nu=Object.defineProperty({},"passive",{get:function(){return fh=!0,!0}});window.addEventListener("test",nu,nu),window.removeEventListener("test",nu,nu)}catch{fh=!1}var jo=fh?{passive:!1}:!1,sA=function(e){return e.tagName==="TEXTAREA"},Rw=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!sA(e)&&n[t]==="visible")},uA=function(e){return Rw(e,"overflowY")},cA=function(e){return Rw(e,"overflowX")},Tg=function(e,t){var n=t.ownerDocument,i=t;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var l=Nw(e,i);if(l){var a=Iw(e,i),s=a[1],u=a[2];if(s>u)return!0}i=i.parentNode}while(i&&i!==n.body);return!1},fA=function(e){var t=e.scrollTop,n=e.scrollHeight,i=e.clientHeight;return[t,n,i]},dA=function(e){var t=e.scrollLeft,n=e.scrollWidth,i=e.clientWidth;return[t,n,i]},Nw=function(e,t){return e==="v"?uA(t):cA(t)},Iw=function(e,t){return e==="v"?fA(t):dA(t)},hA=function(e,t){return e==="h"&&t==="rtl"?-1:1},pA=function(e,t,n,i,l){var a=hA(e,window.getComputedStyle(t).direction),s=a*i,u=n.target,h=t.contains(u),v=!1,p=s>0,f=0,d=0;do{if(!u)break;var m=Iw(e,u),S=m[0],y=m[1],g=m[2],b=y-g-a*S;(S||b)&&Nw(e,u)&&(f+=b,d+=S);var x=u.parentNode;u=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!h&&u!==document.body||h&&(t.contains(u)||t===u));return(p&&Math.abs(f)<1||!p&&Math.abs(d)<1)&&(v=!0),v},ru=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Rg=function(e){return[e.deltaX,e.deltaY]},Ng=function(e){return e&&"current"in e?e.current:e},mA=function(e,t){return e[0]===t[0]&&e[1]===t[1]},vA=function(e){return`
105  .block-interactivity-`.concat(e,` {pointer-events: none;}
106  .allow-interactivity-`).concat(e,` {pointer-events: all;}
107`)},yA=0,Fo=[];function gA(e){var t=D.useRef([]),n=D.useRef([0,0]),i=D.useRef(),l=D.useState(yA++)[0],a=D.useState(Tw)[0],s=D.useRef(e);D.useEffect(function(){s.current=e},[e]),D.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(l));var y=BO([e.lockRef.current],(e.shards||[]).map(Ng),!0).filter(Boolean);return y.forEach(function(g){return g.classList.add("allow-interactivity-".concat(l))}),function(){document.body.classList.remove("block-interactivity-".concat(l)),y.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(l))})}}},[e.inert,e.lockRef.current,e.shards]);var u=D.useCallback(function(y,g){if("touches"in y&&y.touches.length===2||y.type==="wheel"&&y.ctrlKey)return!s.current.allowPinchZoom;var b=ru(y),x=n.current,_="deltaX"in y?y.deltaX:x[0]-b[0],E="deltaY"in y?y.deltaY:x[1]-b[1],O,R=y.target,I=Math.abs(_)>Math.abs(E)?"h":"v";if("touches"in y&&I==="h"&&R.type==="range")return!1;var j=Tg(I,R);if(!j)return!0;if(j?O=I:(O=I==="v"?"h":"v",j=Tg(I,R)),!j)return!1;if(!i.current&&"changedTouches"in y&&(_||E)&&(i.current=O),!O)return!0;var B=i.current||O;return pA(B,g,y,B==="h"?_:E)},[]),h=D.useCallback(function(y){var g=y;if(!(!Fo.length||Fo[Fo.length-1]!==a)){var b="deltaY"in g?Rg(g):ru(g),x=t.current.filter(function(O){return O.name===g.type&&(O.target===g.target||g.target===O.shadowParent)&&mA(O.delta,b)})[0];if(x&&x.should){g.cancelable&&g.preventDefault();return}
vendor: 4,225 bytes, line 107
107if(!x){var _=(s.current.shards||[]).map(Ng).filter(Boolean).filter(function(O){return O.contains(g.target)}),E=_.length>0?u(g,_[0]):!s.current.noIsolation;E&&g.cancelable&&g.preventDefault()}}},[]),v=D.useCallback(function(y,g,b,x){var _={name:y,delta:g,target:b,should:x,shadowParent:wA(b)};t.current.push(_),setTimeout(function(){t.current=t.current.filter(function(E){return E!==_})},1)},[]),p=D.useCallback(function(y){n.current=ru(y),i.current=void 0},[]),f=D.useCallback(function(y){v(y.type,Rg(y),y.target,u(y,e.lockRef.current))},[]),d=D.useCallback(function(y){v(y.type,ru(y),y.target,u(y,e.lockRef.current))},[]);D.useEffect(function(){return Fo.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:d}),document.addEventListener("wheel",h,jo),document.addEventListener("touchmove",h,jo),document.addEventListener("touchstart",p,jo),function(){Fo=Fo.filter(function(y){return y!==a}),document.removeEventListener("wheel",h,jo),document.removeEventListener("touchmove",h,jo),document.removeEventListener("touchstart",p,jo)}},[]);var m=e.removeScrollBar,S=e.inert;return D.createElement(D.Fragment,null,S?D.createElement(a,{styles:vA(l)}):null,m?D.createElement(aA,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function wA(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const bA=QP(Aw,gA);var Qu=D.forwardRef(function(e,t){return D.createElement(Ku,dr({},e,{ref:t,sideCar:bA}))});Qu.classNames=Ku.classNames;var SA=[" ","Enter","ArrowUp","ArrowDown"],xA=[" ","Enter"],io="Select",[Gu,Yu,EA]=Zh(io),[yl]=_n(io,[EA,$u]),Xu=$u(),[_A,Oi]=yl(io),[kA,OA]=yl(io),Lw=e=>{const{__scopeSelect:t,children:n,open:i,defaultOpen:l,onOpenChange:a,value:s,defaultValue:u,onValueChange:h,dir:v,name:p,autoComplete:f,disabled:d,required:m,form:S}=e,y=Xu(t),[g,b]=D.useState(null),[x,_]=D.useState(null),[E,O]=D.useState(!1),R=pl(v),[I,j]=xi({prop:i,defaultProp:l??!1,onChange:a,caller:io}),[B,L]=xi({prop:s,defaultProp:u,onChange:h,caller:io}),P=D.useRef(null),N=g?S||!!g.closest("form"):!0,[F,z]=D.useState(new Set),H=Array.from(F).map(Q=>Q.props.value).join(";");return re.jsx(xw,{...y,children:re.jsxs(_A,{required:m,scope:t,trigger:g,onTriggerChange:b,valueNode:x,onValueNodeChange:_,valueNodeHasChildren:E,onValueNodeHasChildrenChange:O,contentId:mr(),value:B,onValueChange:L,open:I,onOpenChange:j,dir:R,triggerPointerDownPosRef:P,disabled:d,children:[re.jsx(Gu.Provider,{scope:t,children:re.jsx(kA,{scope:e.__scopeSelect,onNativeOptionAdd:D.useCallback(Q=>{z(Y=>new Set(Y).add(Q))},[]),onNativeOptionRemove:D.useCallback(Q=>{z(Y=>{const X=new Set(Y);return X.delete(Q),X})},[]),children:n})}),N?re.jsxs(ib,{"aria-hidden":!0,required:m,tabIndex:-1,name:p,autoComplete:f,value:B,onChange:Q=>L(Q.target.value),disabled:d,form:S,children:[B===void 0?re.jsx("option",{value:""}):null,Array.from(F)]},H):null]})})};Lw.displayName=io;var Mw="SelectTrigger",Dw=D.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:i=!1,...l}=e,a=Xu(n),s=Oi(Mw,n),u=s.disabled||i,h=Ge(t,s.onTriggerChange),v=Yu(n),p=D.useRef("touch"),[f,d,m]=lb(y=>{const g=v().filter(_=>!_.disabled),b=g.find(_=>_.value===s.value),x=ab(g,y,b);x!==void 0&&s.onValueChange(x.value)}),S=y=>{u||(s.onOpenChange(!0),m()),y&&(s.triggerPointerDownPosRef.current={x:Math.round(y.pageX),y:Math.round(y.pageY)})};return re.jsx(Ew,{asChild:!0,...a,children:re.jsx(Ue.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:u,"data-disabled":u?"":void 0,"data-placeholder":ob(s.value)?"":void 0,...l,ref:h,onClick:Ae(l.onClick,y=>{y.currentTarget.focus(),p.current!=="mouse"&&S(y)}),onPointerDown:Ae(l.onPointerDown,y=>{p.current=y.pointerType;const g=y.target;g.hasPointerCapture(y.pointerId)&&g.releasePointerCapture(y.pointerId),y.button===0&&y.ctrlKey===!1&&y.pointerType==="mouse"&&(S(y),y.preventDefault())}),onKeyDown:Ae(l.onKeyDown,y=>{const g=f.current!=="";!(y.ctrlKey||y.altKey||y.metaKey)&&y.key.length===1&&d(y.key),!(g&&y.key===" ")&&SA.includes(y.key)&&(S(),y.preventDefault())})})})});Dw.displayName=Mw;var jw="SelectValue",Fw=D.forwardRef((e,t)=>
vendor: 13,405 bytes, line 107
107{const{__scopeSelect:n,className:i,style:l,children:a,placeholder:s="",...u}=e,h=Oi(jw,n),{onValueNodeHasChildrenChange:v}=h,p=a!==void 0,f=Ge(t,h.onValueNodeChange);return zt(()=>{v(p)},[v,p]),re.jsx(Ue.span,{...u,ref:f,style:{pointerEvents:"none"},children:ob(h.value)?re.jsx(re.Fragment,{children:s}):a})});Fw.displayName=jw;var CA="SelectIcon",Bw=D.forwardRef((e,t)=>{const{__scopeSelect:n,children:i,...l}=e;return re.jsx(Ue.span,{"aria-hidden":!0,...l,ref:t,children:i||"▼"})});Bw.displayName=CA;var PA="SelectPortal",zw=e=>re.jsx(Wu,{asChild:!0,...e});zw.displayName=PA;var oo="SelectContent",qw=D.forwardRef((e,t)=>{const n=Oi(oo,e.__scopeSelect),[i,l]=D.useState();if(zt(()=>{l(new DocumentFragment)},[]),!n.open){const a=i;return a?Ma.createPortal(re.jsx(Uw,{scope:e.__scopeSelect,children:re.jsx(Gu.Slot,{scope:e.__scopeSelect,children:re.jsx("div",{children:e.children})})}),a):null}return re.jsx(Vw,{...e,ref:t})});qw.displayName=oo;var Qn=10,[Uw,Ci]=yl(oo),AA="SelectContentImpl",TA=no("SelectContent.RemoveScroll"),Vw=D.forwardRef((e,t)=>{const{__scopeSelect:n,position:i="item-aligned",onCloseAutoFocus:l,onEscapeKeyDown:a,onPointerDownOutside:s,side:u,sideOffset:h,align:v,alignOffset:p,arrowPadding:f,collisionBoundary:d,collisionPadding:m,sticky:S,hideWhenDetached:y,avoidCollisions:g,...b}=e,x=Oi(oo,n),[_,E]=D.useState(null),[O,R]=D.useState(null),I=Ge(t,K=>E(K)),[j,B]=D.useState(null),[L,P]=D.useState(null),N=Yu(n),[F,z]=D.useState(!1),H=D.useRef(!1);D.useEffect(()=>{if(_)return cp(_)},[_]),Jh();const Q=D.useCallback(K=>{const[ie,...le]=N().map(Oe=>Oe.ref.current),[ce]=le.slice(-1),we=document.activeElement;for(const Oe of K)if(Oe===we||(Oe==null||Oe.scrollIntoView({block:"nearest"}),Oe===ie&&O&&(O.scrollTop=0),Oe===ce&&O&&(O.scrollTop=O.scrollHeight),Oe==null||Oe.focus(),document.activeElement!==we))return},[N,O]),Y=D.useCallback(()=>Q([j,_]),[Q,j,_]);D.useEffect(()=>{F&&Y()},[F,Y]);const{onOpenChange:X,triggerPointerDownPosRef:$}=x;D.useEffect(()=>{if(_){let K={x:0,y:0};const ie=ce=>{var we,Oe;K={x:Math.abs(Math.round(ce.pageX)-(((we=$.current)==null?void 0:we.x)??0)),y:Math.abs(Math.round(ce.pageY)-(((Oe=$.current)==null?void 0:Oe.y)??0))}},le=ce=>{K.x<=10&&K.y<=10?ce.preventDefault():_.contains(ce.target)||X(!1),document.removeEventListener("pointermove",ie),$.current=null};return $.current!==null&&(document.addEventListener("pointermove",ie),document.addEventListener("pointerup",le,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ie),document.removeEventListener("pointerup",le,{capture:!0})}}},[_,X,$]),D.useEffect(()=>{const K=()=>X(!1);return window.addEventListener("blur",K),window.addEventListener("resize",K),()=>{window.removeEventListener("blur",K),window.removeEventListener("resize",K)}},[X]);const[T,A]=lb(K=>{const ie=N().filter(we=>!we.disabled),le=ie.find(we=>we.ref.current===document.activeElement),ce=ab(ie,K,le);ce&&setTimeout(()=>ce.ref.current.focus())}),q=D.useCallback((K,ie,le)=>{const ce=!H.current&&!le;(x.value!==void 0&&x.value===ie||ce)&&(B(K),ce&&(H.current=!0))},[x.value]),M=D.useCallback(()=>_==null?void 0:_.focus(),[_]),ee=D.useCallback((K,ie,le)=>{const ce=!H.current&&!le;(x.value!==void 0&&x.value===ie||ce)&&P(K)},[x.value]),te=i==="popper"?dh:Hw,V=te===dh?{side:u,sideOffset:h,align:v,alignOffset:p,arrowPadding:f,collisionBoundary:d,collisionPadding:m,sticky:S,hideWhenDetached:y,avoidCollisions:g}:{};return re.jsx(Uw,{scope:n,content:_,viewport:O,onViewportChange:R,itemRefCallback:q,selectedItem:j,onItemLeave:M,itemTextRefCallback:ee,focusSelectedItem:Y,selectedItemText:L,position:i,isPositioned:F,searchRef:T,children:re.jsx(Qu,{as:TA,allowPinchZoom:!0,children:re.jsx(zu,{asChild:!0,trapped:x.open,onMountAutoFocus:K=>{K.preventDefault()},onUnmountAutoFocus:Ae(l,K=>{var ie;(ie=x.trigger)==null||ie.focus({preventScroll:!0}),K.preventDefault()}),children:re.jsx(Bu,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:K=>K.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:re.jsx(te,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:K=>K.preventDefault(),...b,...V,onPlaced:()=>z(!0),ref:I,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:Ae(b.onKeyDown,K=>{const ie=K.ctrlKey||K.altKey||K.metaKey;if(K.key==="Tab"&&K.preventDefault(),!ie&&K.key.length===1&&A(K.key),["ArrowUp","ArrowDown","Home","End"].includes(K.key)){let ce=N().filter(we=>!we.disabled).map(we=>we.ref.current);if(["ArrowUp","End"].includes(K.key)&&(ce=ce.slice().reverse()),["ArrowUp","ArrowDown"].includes(K.key)){const we=K.target,Oe=ce.indexOf(we);ce=ce.slice(Oe+1)}setTimeout(()=>Q(ce)),K.preventDefault()}})})})})})})});Vw.displayName=AA;var RA="SelectItemAlignedPosition",Hw=D.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:i,...l}=e,a=Oi(oo,n),s=Ci(oo,n),[u,h]=D.useState(null),[v,p]=D.useState(null),f=Ge(t,I=>p(I)),d=Yu(n),m=D.useRef(!1),S=D.useRef(!0),{viewport:y,selectedItem:g,selectedItemText:b,focusSelectedItem:x}=s,_=D.useCallback(()=>{if(a.trigger&&a.valueNode&&u&&v&&y&&g&&b){const I=a.trigger.getBoundingClientRect(),j=v.getBoundingClientRect(),B=a.valueNode.getBoundingClientRect(),L=b.getBoundingClientRect();if(a.dir!=="rtl"){const we=L.left-j.left,Oe=B.left-we,Re=I.left-Oe,Fe=I.width+Re,$e=Math.max(Fe,j.width),lt=window.innerWidth-Qn,Ze=Ud(Oe,[Qn,Math.max(Qn,lt-$e)]);u.style.minWidth=Fe+"px",u.style.left=Ze+"px"}else{const we=j.right-L.right,Oe=window.innerWidth-B.right-we,Re=window.innerWidth-I.right-Oe,Fe=I.width+Re,$e=Math.max(Fe,j.width),lt=window.innerWidth-Qn,Ze=Ud(Oe,[Qn,Math.max(Qn,lt-$e)]);u.style.minWidth=Fe+"px",u.style.right=Ze+"px"}const P=d(),N=window.innerHeight-Qn*2,F=y.scrollHeight,z=window.getComputedStyle(v),H=parseInt(z.borderTopWidth,10),Q=parseInt(z.paddingTop,10),Y=parseInt(z.borderBottomWidth,10),X=parseInt(z.paddingBottom,10),$=H+Q+F+X+Y,T=Math.min(g.offsetHeight*5,$),A=window.getComputedStyle(y),q=parseInt(A.paddingTop,10),M=parseInt(A.paddingBottom,10),ee=I.top+I.height/2-Qn,te=N-ee,V=g.offsetHeight/2,K=g.offsetTop+V,ie=H+Q+K,le=$-ie;if(ie<=ee){const we=P.length>0&&g===P[P.length-1].ref.current;u.style.bottom="0px";const Oe=v.clientHeight-y.offsetTop-y.offsetHeight,Re=Math.max(te,V+(we?M:0)+Oe+Y),Fe=ie+Re;u.style.height=Fe+"px"}else{const we=P.length>0&&g===P[0].ref.current;u.style.top="0px";const Re=Math.max(ee,H+y.offsetTop+(we?q:0)+V)+le;u.style.height=Re+"px",y.scrollTop=ie-ee+y.offsetTop}u.style.margin=`${Qn}px 0`,u.style.minHeight=T+"px",u.style.maxHeight=N+"px",i==null||i(),requestAnimationFrame(()=>m.current=!0)}},[d,a.trigger,a.valueNode,u,v,y,g,b,a.dir,i]);zt(()=>_(),[_]);const[E,O]=D.useState();zt(()=>{v&&O(window.getComputedStyle(v).zIndex)},[v]);const R=D.useCallback(I=>{I&&S.current===!0&&(_(),x==null||x(),S.current=!1)},[_,x]);return re.jsx(IA,{scope:n,contentWrapper:u,shouldExpandOnScrollRef:m,onScrollButtonChange:R,children:re.jsx("div",{ref:h,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E},children:re.jsx(Ue.div,{...l,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...l.style}})})})});Hw.displayName=RA;var NA="SelectPopperPosition",dh=D.forwardRef((e,t)=>{const{__scopeSelect:n,align:i="start",collisionPadding:l=Qn,...a}=e,s=Xu(n);return re.jsx(_w,{...s,...a,ref:t,align:i,collisionPadding:l,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});dh.displayName=NA;var[IA,fp]=yl(oo,{}),hh="SelectViewport",$w=D.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:i,...l}=e,a=Ci(hh,n),s=fp(hh,n),u=Ge(t,a.onViewportChange),h=D.useRef(0);return re.jsxs(re.Fragment,{children:[re.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),re.jsx(Gu.Slot,{scope:n,children:re.jsx(Ue.div,{"data-radix-select-viewport":"",role:"presentation",...l,ref:u,style:{position:"relative",flex:1,overflow:"hidden auto",...l.style},onScroll:Ae(l.onScroll,v=>{const p=v.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:d}=s;if(d!=null&&d.current&&f){const m=Math.abs(h.current-p.scrollTop);if(m>0){const S=window.innerHeight-Qn*2,y=parseFloat(f.style.minHeight),g=parseFloat(f.style.height),b=Math.max(y,g);if(b<S){const x=b+m,_=Math.min(S,x),E=x-_;f.style.height=_+"px",f.style.bottom==="0px"&&(p.scrollTop=E>0?E:0,f.style.justifyContent="flex-end")}}}h.current=p.scrollTop})})})]})});$w.displayName=hh;var Ww="SelectGroup",[LA,MA]=yl(Ww),DA=D.forwardRef((e,t)=>{const{__scopeSelect:n,...i}=e,l=mr();return re.jsx(LA,{scope:n,id:l,children:re.jsx(Ue.div,{role:"group","aria-labelledby":l,...i,ref:t})})});DA.displayName=Ww;var Kw="SelectLabel",Qw=D.forwardRef((e,t)=>{const{__scopeSelect:n,...i}=e,l=MA(Kw,n);return re.jsx(Ue.div,{id:l.id,...i,ref:t})});Qw.displayName=Kw;var Eu="SelectItem",[jA,Gw]=yl(Eu),Yw=D.forwardRef((e,t)=>{const{__scopeSelect:n,value:i,disabled:l=!1,textValue:a,...s}=e,u=Oi(Eu,n),h=Ci(Eu,n),v=u.value===i,[p,f]=D.useState(a??""),[d,m]=D.useState(!1),S=Ge(t,x=>{var _;return(_=h.itemRefCallback)==null?void 0:_.call(h,x,i,l)}),y=mr(),g=D.useRef("touch"),b=()=>{l||(u.onValueChange(i),u.onOpenChange(!1))};if(i==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return re.jsx(jA,{scope:n,value:i,disabled:l,textId:y,isSelected:v,onItemTextChange:D.useCallback(x=>{f(_=>_||((x==null?void 0:x.textContent)??"").trim())},[]),children:re.jsx(Gu.ItemSlot,{scope:n,value:i,disabled:l,textValue:p,children:re.jsx(Ue.div,{role:"option","aria-labelledby":y,"data-highlighted":d?"":void 0,"aria-selected":v&&d,"data-state":v?"checked":"unchecked","aria-disabled":l||void 0,"data-disabled":l?"":void 0,tabIndex:l?void 0:-1,...s,ref:S,onFocus:Ae(s.onFocus,()=>m(!0)),onBlur:Ae(s.onBlur,()=>m(!1)),onClick:Ae(s.onClick,()=>{g.current!=="mouse"&&b()}),onPointerUp:Ae(s.onPointerUp,()=>{g.current==="mouse"&&b()}),onPointerDown:Ae(s.onPointerDown,x=>{g.current=x.pointerType}),onPointerMove:Ae(s.onPointerMove,x=>{var _;g.current=x.pointerType,l?(_=h.onItemLeave)==null||_.call(h):g.current==="mouse"&&x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Ae(s.onPointerLeave,x=>{var _;x.currentTarget===document.activeElement&&((_=h.onItemLeave)==null||_.call(h))}),onKeyDown:Ae(s.onKeyDown,x=>{var E;((E=h.searchRef)==null?void 0:E.current)!==""&&x.key===" "||(xA.includes(x.key)&&b(),x.key===" "&&x.preventDefault())})})})})});Yw.displayName=Eu;var fa="SelectItemText",Xw=D.forwardRef((e,t)=>{const{__scopeSelect:n,className:i,style:l,...a}=e,s=Oi(fa,n),u=Ci(fa,n),h=Gw(fa,n),v=OA(fa,n),[p,f]=D.useState(null),d=Ge(t,b=>f(b),h.onItemTextChange,b=>{var x;return(x=u.itemTextRefCallback)==null?void 0:x.call(u,b,h.value,h.disabled)}),m=p==null?void 0:p.textContent,S=D.useMemo(()=>re.jsx("option",{value:h.value,disabled:h.disabled,children:m},h.value),[h.disabled,h.value,m]),{onNativeOptionAdd:y,onNativeOptionRemove:g}=v;return zt(()=>(y(S),()=>g(S)),[y,g,S]),re.jsxs(re.Fragment,{children:[re.jsx(Ue.span,{id:h.textId,...a,ref:d}),h.isSelected&&s.valueNode&&!s.valueNodeHasChildren?Ma.createPortal(a.children,s.valueNode):null]})});Xw.displayName=fa;var Zw="SelectItemIndicator",Jw=D.forwardRef((e,t)=>{const{__scopeSelect:n,...i}=e;return Gw(Zw,n).isSelected?re.jsx(Ue.span,{"aria-hidden":!0,...i,ref:t}):null});Jw.displayName=Zw;var ph="SelectScrollUpButton",eb=D.forwardRef((e,t)=>{const n=Ci(ph,e.__scopeSelect),i=fp(ph,e.__scopeSelect),[l,a]=D.useState(!1),s=Ge(t,i.onScrollButtonChange);return zt(()=>{if(n.viewport&&n.isPositioned){let u=function(){const v=h.scrollTop>0;a(v)};const h=n.viewport;return u(),h.addEventListener("scroll",u),()=>h.removeEventListener("scroll",u)}},[n.viewport,n.isPositioned]),l?re.jsx(nb,{...e,ref:s,onAutoScroll:()=>{const{viewport:u,selectedItem:h}=n;u&&h&&(u.scrollTop=u.scrollTop-h.offsetHeight)}}):null});eb.displayName=ph;var mh="SelectScrollDownButton",tb=D.forwardRef((e,t)=>{const n=Ci(mh,e.__scopeSelect),i=fp(mh,e.__scopeSelect),[l,a]=D.useState(!1),s=Ge(t,i.onScrollButtonChange);return zt(()=>{if(n.viewport&&n.isPositioned){let u=function(){const v=h.scrollHeight-h.clientHeight,p=Math.ceil(h.scrollTop)<v;a(p)};const h=n.viewport;return u(),h.addEventListener("scroll",u),()=>h.removeEventListener("scroll",u)}},[n.viewport,n.isPositioned]),l?re.jsx(nb,{...e,ref:s,onAutoScroll:()=>{const{viewport:u,selectedItem:h}=n;u&&h&&(u.scrollTop=u.scrollTop+h.offsetHeight)}}):null});tb.displayName=mh;var nb=D.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:i,...l}=e,a=Ci("SelectScrollButton",n),s=D.useRef(null),u=Yu(n),h=D.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return D.useEffect(()=>()=>h(),[h]),zt(()=>{var p;const v=u().find(f=>f.ref.current===document.activeElement);(p=v==null?void 0:v.ref.current)==null||p.scrollIntoView({block:"nearest"})}
vendor: 2,602 bytes, line 107
107,[u]),re.jsx(Ue.div,{"aria-hidden":!0,...l,ref:t,style:{flexShrink:0,...l.style},onPointerDown:Ae(l.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(i,50))}),onPointerMove:Ae(l.onPointerMove,()=>{var v;(v=a.onItemLeave)==null||v.call(a),s.current===null&&(s.current=window.setInterval(i,50))}),onPointerLeave:Ae(l.onPointerLeave,()=>{h()})})}),FA="SelectSeparator",rb=D.forwardRef((e,t)=>{const{__scopeSelect:n,...i}=e;return re.jsx(Ue.div,{"aria-hidden":!0,...i,ref:t})});rb.displayName=FA;var vh="SelectArrow",BA=D.forwardRef((e,t)=>{const{__scopeSelect:n,...i}=e,l=Xu(n),a=Oi(vh,n),s=Ci(vh,n);return a.open&&s.position==="popper"?re.jsx(kw,{...l,...i,ref:t}):null});BA.displayName=vh;var zA="SelectBubbleInput",ib=D.forwardRef(({__scopeSelect:e,value:t,...n},i)=>{const l=D.useRef(null),a=Ge(i,l),s=up(t);return D.useEffect(()=>{const u=l.current;if(!u)return;const h=window.HTMLSelectElement.prototype,p=Object.getOwnPropertyDescriptor(h,"value").set;if(s!==t&&p){const f=new Event("change",{bubbles:!0});p.call(u,t),u.dispatchEvent(f)}},[s,t]),re.jsx(Ue.select,{...n,style:{...Ow,...n.style},ref:a,defaultValue:t})});ib.displayName=zA;function ob(e){return e===""||e===void 0}function lb(e){const t=Bt(e),n=D.useRef(""),i=D.useRef(0),l=D.useCallback(s=>{const u=n.current+s;t(u),(function h(v){n.current=v,window.clearTimeout(i.current),v!==""&&(i.current=window.setTimeout(()=>h(""),1e3))})(u)},[t]),a=D.useCallback(()=>{n.current="",window.clearTimeout(i.current)},[]);return D.useEffect(()=>()=>window.clearTimeout(i.current),[]),[n,l,a]}function ab(e,t,n){const l=t.length>1&&Array.from(t).every(v=>v===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let s=qA(e,Math.max(a,0));l.length===1&&(s=s.filter(v=>v!==n));const h=s.find(v=>v.textValue.toLowerCase().startsWith(l.toLowerCase()));return h!==n?h:void 0}function qA(e,t){return e.map((n,i)=>e[(t+i)%e.length])}var QD=Lw,GD=Dw,YD=Fw,XD=Bw,ZD=zw,JD=qw,e3=$w,t3=Qw,n3=Yw,r3=Xw,i3=Jw,o3=eb,l3=tb,a3=rb,hd="rovingFocusGroup.onEntryFocus",UA={bubbles:!1,cancelable:!0},ja="RovingFocusGroup",[yh,sb,VA]=Zh(ja),[HA,gl]=_n(ja,[VA]),[$A,WA]=HA(ja),ub=D.forwardRef((e,t)=>re.jsx(yh.Provider,{scope:e.__scopeRovingFocusGroup,children:re.jsx(yh.Slot,{scope:e.__scopeRovingFocusGroup,children:re.jsx(KA,{...e,ref:t})})}));ub.displayName=ja;var KA=D.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:i,loop:l=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:u,onCurrentTabStopIdChange:h,onEntryFocus:v,preventScrollOnEntryFocus:p=!1,...f}=e,d=D.useRef(null),m=Ge(t,d),S=pl(a),[y,g]=xi({prop:s,defaultProp:u??null,onChange:h,caller:ja}
vendor: 4,855 bytes, line 107
107),[b,x]=D.useState(!1),_=Bt(v),E=sb(n),O=D.useRef(!1),[R,I]=D.useState(0);return D.useEffect(()=>{const j=d.current;if(j)return j.addEventListener(hd,_),()=>j.removeEventListener(hd,_)},[_]),re.jsx($A,{scope:n,orientation:i,dir:S,loop:l,currentTabStopId:y,onItemFocus:D.useCallback(j=>g(j),[g]),onItemShiftTab:D.useCallback(()=>x(!0),[]),onFocusableItemAdd:D.useCallback(()=>I(j=>j+1),[]),onFocusableItemRemove:D.useCallback(()=>I(j=>j-1),[]),children:re.jsx(Ue.div,{tabIndex:b||R===0?-1:0,"data-orientation":i,...f,ref:m,style:{outline:"none",...e.style},onMouseDown:Ae(e.onMouseDown,()=>{O.current=!0}),onFocus:Ae(e.onFocus,j=>{const B=!O.current;if(j.target===j.currentTarget&&B&&!b){const L=new CustomEvent(hd,UA);if(j.currentTarget.dispatchEvent(L),!L.defaultPrevented){const P=E().filter(Q=>Q.focusable),N=P.find(Q=>Q.active),F=P.find(Q=>Q.id===y),H=[N,F,...P].filter(Boolean).map(Q=>Q.ref.current);db(H,p)}}O.current=!1}),onBlur:Ae(e.onBlur,()=>x(!1))})})}),cb="RovingFocusGroupItem",fb=D.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:i=!0,active:l=!1,tabStopId:a,children:s,...u}=e,h=mr(),v=a||h,p=WA(cb,n),f=p.currentTabStopId===v,d=sb(n),{onFocusableItemAdd:m,onFocusableItemRemove:S,currentTabStopId:y}=p;return D.useEffect(()=>{if(i)return m(),()=>S()},[i,m,S]),re.jsx(yh.ItemSlot,{scope:n,id:v,focusable:i,active:l,children:re.jsx(Ue.span,{tabIndex:f?0:-1,"data-orientation":p.orientation,...u,ref:t,onMouseDown:Ae(e.onMouseDown,g=>{i?p.onItemFocus(v):g.preventDefault()}),onFocus:Ae(e.onFocus,()=>p.onItemFocus(v)),onKeyDown:Ae(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){p.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const b=YA(g,p.orientation,p.dir);if(b!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let _=d().filter(E=>E.focusable).map(E=>E.ref.current);if(b==="last")_.reverse();else if(b==="prev"||b==="next"){b==="prev"&&_.reverse();const E=_.indexOf(g.currentTarget);_=p.loop?XA(_,E+1):_.slice(E+1)}setTimeout(()=>db(_))}}),children:typeof s=="function"?s({isCurrentTabStop:f,hasTabStop:y!=null}):s})})});fb.displayName=cb;var QA={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function GA(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function YA(e,t,n){const i=GA(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return QA[i]}function db(e,t=!1){const n=document.activeElement;for(const i of e)if(i===n||(i.focus({preventScroll:t}),document.activeElement!==n))return}function XA(e,t){return e.map((n,i)=>e[(t+i)%e.length])}var dp=ub,hp=fb;function ZA(e,t){return D.useReducer((n,i)=>t[n][i]??n,e)}var hn=e=>{const{present:t,children:n}=e,i=JA(t),l=typeof n=="function"?n({present:i.isPresent}):D.Children.only(n),a=Ge(i.ref,eT(l));return typeof n=="function"||i.isPresent?D.cloneElement(l,{ref:a}):null};hn.displayName="Presence";function JA(e){const[t,n]=D.useState(),i=D.useRef(null),l=D.useRef(e),a=D.useRef("none"),s=e?"mounted":"unmounted",[u,h]=ZA(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return D.useEffect(()=>{const v=iu(i.current);a.current=u==="mounted"?v:"none"},[u]),zt(()=>{const v=i.current,p=l.current;if(p!==e){const d=a.current,m=iu(v);e?h("MOUNT"):m==="none"||(v==null?void 0:v.display)==="none"?h("UNMOUNT"):h(p&&d!==m?"ANIMATION_OUT":"UNMOUNT"),l.current=e}},[e,h]),zt(()=>{if(t){let v;const p=t.ownerDocument.defaultView??window,f=m=>{const y=iu(i.current).includes(CSS.escape(m.animationName));if(m.target===t&&y&&(h("ANIMATION_END"),!l.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",v=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},d=m=>{m.target===t&&(a.current=iu(i.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{p.clearTimeout(v),t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else h("ANIMATION_END")},[t,h]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:D.useCallback(v=>{i.current=v?getComputedStyle(v):null,n(v)},[])}}function iu(e){return(e==null?void 0:e.animationName)||"none"}function eT(e){var i,l;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(l=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:l.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Zu="Tabs",[tT]=_n(Zu,[gl]),hb=gl(),[nT,pp]=tT(Zu),pb=D.forwardRef((e,t)=>
vendor: 5,623 bytes, lines 107-115
107{const{__scopeTabs:n,value:i,onValueChange:l,defaultValue:a,orientation:s="horizontal",dir:u,activationMode:h="automatic",...v}=e,p=pl(u),[f,d]=xi({prop:i,onChange:l,defaultProp:a??"",caller:Zu});return re.jsx(nT,{scope:n,baseId:mr(),value:f,onValueChange:d,orientation:s,dir:p,activationMode:h,children:re.jsx(Ue.div,{dir:p,"data-orientation":s,...v,ref:t})})});pb.displayName=Zu;var mb="TabsList",vb=D.forwardRef((e,t)=>{const{__scopeTabs:n,loop:i=!0,...l}=e,a=pp(mb,n),s=hb(n);return re.jsx(dp,{asChild:!0,...s,orientation:a.orientation,dir:a.dir,loop:i,children:re.jsx(Ue.div,{role:"tablist","aria-orientation":a.orientation,...l,ref:t})})});vb.displayName=mb;var yb="TabsTrigger",gb=D.forwardRef((e,t)=>{const{__scopeTabs:n,value:i,disabled:l=!1,...a}=e,s=pp(yb,n),u=hb(n),h=Sb(s.baseId,i),v=xb(s.baseId,i),p=i===s.value;return re.jsx(hp,{asChild:!0,...u,focusable:!l,active:p,children:re.jsx(Ue.button,{type:"button",role:"tab","aria-selected":p,"aria-controls":v,"data-state":p?"active":"inactive","data-disabled":l?"":void 0,disabled:l,id:h,...a,ref:t,onMouseDown:Ae(e.onMouseDown,f=>{!l&&f.button===0&&f.ctrlKey===!1?s.onValueChange(i):f.preventDefault()}),onKeyDown:Ae(e.onKeyDown,f=>{[" ","Enter"].includes(f.key)&&s.onValueChange(i)}),onFocus:Ae(e.onFocus,()=>{const f=s.activationMode!=="manual";!p&&!l&&f&&s.onValueChange(i)})})})});gb.displayName=yb;var wb="TabsContent",bb=D.forwardRef((e,t)=>{const{__scopeTabs:n,value:i,forceMount:l,children:a,...s}=e,u=pp(wb,n),h=Sb(u.baseId,i),v=xb(u.baseId,i),p=i===u.value,f=D.useRef(p);return D.useEffect(()=>{const d=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(d)},[]),re.jsx(hn,{present:l||p,children:({present:d})=>re.jsx(Ue.div,{"data-state":p?"active":"inactive","data-orientation":u.orientation,role:"tabpanel","aria-labelledby":h,hidden:!d,id:v,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:f.current?"0s":void 0},children:d&&a})})});bb.displayName=wb;function Sb(e,t){return`${e}-trigger-${t}`}function xb(e,t){return`${e}-content-${t}`}var s3=pb,u3=vb,c3=gb,f3=bb,pd={exports:{}},nt={};/**
108 * @license React
109 * react-is.production.min.js
110 *
111 * Copyright (c) Facebook, Inc. and its affiliates.
112 *
113 * This source code is licensed under the MIT license found in the
114 * LICENSE file in the root directory of this source tree.
115 */var Ig;function rT(){if(Ig)return nt;Ig=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.server_context"),h=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),S;S=Symbol.for("react.module.reference");function y(g){if(typeof g=="object"&&g!==null){var b=g.$$typeof;switch(b){case e:switch(g=g.type,g){case n:case l:case i:case v:case p:return g;default:switch(g=g&&g.$$typeof,g){case u:case s:case h:case d:case f:case a:return g;default:return b}}case t:return b}}}return nt.ContextConsumer=s,nt.ContextProvider=a,nt.Element=e,nt.ForwardRef=h,nt.Fragment=n,nt.Lazy=d,nt.Memo=f,nt.Portal=t,nt.Profiler=l,nt.StrictMode=i,nt.Suspense=v,nt.SuspenseList=p,nt.isAsyncMode=function(){return!1},nt.isConcurrentMode=function(){return!1},nt.isContextConsumer=function(g){return y(g)===s},nt.isContextProvider=function(g){return y(g)===a},nt.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},nt.isForwardRef=function(g){return y(g)===h},nt.isFragment=function(g){return y(g)===n},nt.isLazy=function(g){return y(g)===d},nt.isMemo=function(g){return y(g)===f},nt.isPortal=function(g){return y(g)===t},nt.isProfiler=function(g){return y(g)===l},nt.isStrictMode=function(g){return y(g)===i},nt.isSuspense=function(g){return y(g)===v},nt.isSuspenseList=function(g){return y(g)===p},nt.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===n||g===l||g===i||g===v||g===p||g===m||typeof g=="object"&&g!==null&&(g.$$typeof===d||g.$$typeof===f||g.$$typeof===a||g.$$typeof===s||g.$$typeof===h||g.$$typeof===S||g.getModuleId!==void 0)},nt.typeOf=y,nt}var Lg;function iT(){return Lg||(Lg=1,pd.exports=rT()),pd.exports}var d3=iT(),md={exports:{}},vd,Mg;function oT(){if(Mg)return vd;Mg=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return vd=e,vd}var yd,Dg;function lT(){if(Dg)return yd;Dg=1;var e=oT();function t(){}function n(){}return n.resetWarningCache=t,yd=function(){function i(s,u,h,v,p,f){if(f!==e){var d=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 d.name="Invariant Violation",d}}i.isRequired=i;function l(){return i}var a={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:l,element:i,elementType:i,instanceOf:l,node:i,objectOf:l,oneOf:l,oneOfType:l,shape:l,exact:l,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},yd}var jg;function mp(){return jg||(jg=1,md.exports=lT()()),md.exports}var aT=mp();const rt=Ei(aT);var sT=Object.getOwnPropertyNames,uT=Object.getOwnPropertySymbols,cT=Object.prototype.hasOwnProperty;function Fg(e,t){return function(i,l,a){return e(i,l,a)&&t(i,l,a)}}function ou(e){return function(n,i,l){if(!n||!i||typeof n!="object"||typeof i!="object")return e(n,i,l);var a=l.cache,s=a.get(n),u=a.get(i);if(s&&u)return s===i&&u===n;a.set(n,i),a.set(i,n);var h=e(n,i,l);return a.delete(n),a.delete(i),h}}
115function Bg(e){return sT(e).concat(uT(e))}var fT=Object.hasOwn||(function(e,t){return cT.call(e,t)});function ao(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var dT="__v",hT="__o",pT="_owner",zg=Object.getOwnPropertyDescriptor,qg=Object.keys;function mT(e,t,n){var i=e.length;if(t.length!==i)return!1;for(;i-- >0;)if(!n.equals(e[i],t[i],i,i,e,t,n))return!1;return!0}function vT(e,t){return ao(e.getTime(),t.getTime())}function yT(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function gT(e,t){return e===t}function Ug(e,t,n){var i=e.size;if(i!==t.size)return!1;if(!i)return!0;for(var l=new Array(i),a=e.entries(),s,u,h=0;(s=a.next())&&!s.done;){for(var v=t.entries(),p=!1,f=0;(u=v.next())&&!u.done;){if(l[f]){f++;continue}var d=s.value,m=u.value;if(n.equals(d[0],m[0],h,f,e,t,n)&&n.equals(d[1],m[1],d[0],m[0],e,t,n)){p=l[f]=!0;break}f++}if(!p)return!1;h++}return!0}var wT=ao;function bT(e,t,n){var i=qg(e),l=i.length;if(qg(t).length!==l)return!1;for(;l-- >0;)if(!Eb(e,t,n,i[l]))return!1;return!0}function ia(e,t,n){var i=Bg(e),l=i.length;if(Bg(t).length!==l)return!1;for(var a,s,u;l-- >0;)if(a=i[l],!Eb(e,t,n,a)||(s=zg(e,a),u=zg(t,a),(s||u)&&(!s||!u||s.configurable!==u.configurable||s.enumerable!==u.enumerable||s.writable!==u.writable)))return!1;return!0}function ST(e,t){return ao(e.valueOf(),t.valueOf())}function xT(e,t){return e.source===t.source&&e.flags===t.flags}function Vg(e,t,n){var i=e.size;if(i!==t.size)return!1;if(!i)return!0;for(var l=new Array(i),a=e.values(),s,u;(s=a.next())&&!s.done;){for(var h=t.values(),v=!1,p=0;(u=h.next())&&!u.done;){if(!l[p]&&n.equals(s.value,u.value,s.value,u.value,e,t,n)){v=l[p]=!0;break}p++}if(!v)return!1}return!0}function ET(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function _T(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function Eb(e,t,n,i){return(i===pT||i===hT||i===dT)&&(e.$$typeof||t.$$typeof)?!0:fT(t,i)&&n.equals(e[i],t[i],i,i,e,t,n)}var kT="[object Arguments]",OT="[object Boolean]",CT="[object Date]",PT="[object Error]",AT="[object Map]",TT="[object Number]",RT="[object Object]",NT="[object RegExp]",IT="[object Set]",LT="[object String]",MT="[object URL]",DT=Array.isArray,Hg=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,$g=Object.assign,jT=Object.prototype.toString.call.bind(Object.prototype.toString);function FT(e){var t=e.areArraysEqual,n=e.areDatesEqual,i=e.areErrorsEqual,l=e.areFunctionsEqual,a=e.areMapsEqual,s=e.areNumbersEqual,u=e.areObjectsEqual,h=e.arePrimitiveWrappersEqual,v=e.areRegExpsEqual,p=e.areSetsEqual,f=e.areTypedArraysEqual,d=e.areUrlsEqual;return function(S,y,g){if(S===y)return!0;if(S==null||y==null)return!1;var b=typeof S;if(b!==typeof y)return!1;if(b!=="object")return b==="number"?s(S,y,g):b==="function"?l(S,y,g):!1;var x=S.constructor;if(x!==y.constructor)return!1;if(x===Object)return u(S,y,g);if(DT(S))return t(S,y,g);if(Hg!=null&&Hg(S))return f(S,y,g);if(x===Date)return n(S,y,g);if(x===RegExp)return v(S,y,g);if(x===Map)return a(S,y,g);if(x===Set)return p(S,y,g);var _=jT(S);return _===CT?n(S,y,g):_===NT?v(S,y,g):_===AT?a(S,y,g):_===IT?p(S,y,g):_===RT?typeof S.then!="function"&&typeof y.then!="function"&&u(S,y,g):_===MT?d(S,y,g):_===PT?i(S,y,g):_===kT?u(S,y,g):_===OT||_===TT||_===LT?h(S,y,g):!1}}function BT(e){var t=e.circular,n=e.createCustomConfig,i=e.strict,l={areArraysEqual:i?ia:mT,areDatesEqual:vT,areErrorsEqual:yT,areFunctionsEqual:gT,areMapsEqual:i?Fg(Ug,ia):Ug,areNumbersEqual:wT,areObjectsEqual:i?ia:bT,arePrimitiveWrappersEqual:ST,areRegExpsEqual:xT,areSetsEqual:i?Fg(Vg,ia):Vg,areTypedArraysEqual:i?ia:ET,areUrlsEqual:_T};if(n&&(l=$g({},l,n(l))),t){var a=ou(l.areArraysEqual),s=ou(l.areMapsEqual),u=ou(l.areObjectsEqual),h=ou(l.areSetsEqual);l=$g({},l,{areArraysEqual:a,areMapsEqual:s,areObjectsEqual:u,areSetsEqual:h})}return l}function zT(e){return function(t,n,i,l,a,s,u){return e(t,n,u)}}function qT(e){var t=e.circular,n=e.comparator,i=e.createState,l=e.equals,a=e.strict;if(i)return function(h,v){var p=i(),f=p.cache,d=f===void 0?t?new WeakMap:void 0:f,m=p.meta;return n(h,v,{cache:d,equals:l,meta:m,strict:a})};if(t)return function(h,v){return n(h,v,{cache:new WeakMap,equals:l,meta:void 0,strict:a})};var s={cache:void 0,equals:l,meta:void 0,strict:a};return function(h,v){return n(h,v,s)}}var UT=Pi();Pi({strict:!0});Pi({circular:!0});Pi({circular:!0,strict:!0});Pi({createInternalComparator:function(){return ao}});Pi({strict:!0,createInternalComparator:function(){return ao}});Pi({circular:!0,createInternalComparator:function(){return ao}});Pi({circular:!0,createInternalComparator:function(){return ao}
vendor: 17,146 bytes, lines 115-121
115,strict:!0});function Pi(e){e===void 0&&(e={});var t=e.circular,n=t===void 0?!1:t,i=e.createInternalComparator,l=e.createState,a=e.strict,s=a===void 0?!1:a,u=BT(e),h=FT(u),v=i?i(h):zT(h);return qT({circular:n,comparator:h,createState:l,equals:v,strict:s})}function VT(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function Wg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,i=function l(a){n<0&&(n=a),a-n>t?(e(a),n=-1):VT(l)};requestAnimationFrame(i)}function gh(e){"@babel/helpers - typeof";return gh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gh(e)}function HT(e){return QT(e)||KT(e)||WT(e)||$T()}function $T(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
116In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WT(e,t){if(e){if(typeof e=="string")return Kg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Kg(e,t)}}function Kg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function KT(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function QT(e){if(Array.isArray(e))return e}function GT(){var e={},t=function(){return null},n=!1,i=function l(a){if(!n){if(Array.isArray(a)){if(!a.length)return;var s=a,u=HT(s),h=u[0],v=u.slice(1);if(typeof h=="number"){Wg(l.bind(null,v),h);return}l(h),Wg(l.bind(null,v));return}gh(a)==="object"&&(e=a,t(e)),typeof a=="function"&&a()}};return{stop:function(){n=!0},start:function(a){n=!1,i(a)},subscribe:function(a){return t=a,function(){t=function(){return null}}}}}function ka(e){"@babel/helpers - typeof";return ka=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ka(e)}function Qg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,i)}return n}function Gg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Qg(Object(n),!0).forEach(function(i){_b(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qg(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function _b(e,t,n){return t=YT(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YT(e){var t=XT(e,"string");return ka(t)==="symbol"?t:String(t)}function XT(e,t){if(ka(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(ka(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ZT=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(i,l){return i.filter(function(a){return l.includes(a)})})},JT=function(t){return t},eR=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},pa=function(t,n){return Object.keys(n).reduce(function(i,l){return Gg(Gg({},i),{},_b({},l,t(l,n[l])))},{})},Yg=function(t,n,i){return t.map(function(l){return"".concat(eR(l)," ").concat(n,"ms ").concat(i)}).join(",")};function tR(e,t){return iR(e)||rR(e,t)||kb(e,t)||nR()}function nR(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
117In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rR(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i,l,a,s,u=[],h=!0,v=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(h=(i=a.call(n)).done)&&(u.push(i.value),u.length!==t);h=!0);}catch(p){v=!0,l=p}finally{try{if(!h&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(v)throw l}}return u}}function iR(e){if(Array.isArray(e))return e}function oR(e){return sR(e)||aR(e)||kb(e)||lR()}function lR(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
118In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kb(e,t){if(e){if(typeof e=="string")return wh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wh(e,t)}}function aR(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function sR(e){if(Array.isArray(e))return wh(e)}function wh(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var _u=1e-4,Ob=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},Cb=function(t,n){return t.map(function(i,l){return i*Math.pow(n,l)}).reduce(function(i,l){return i+l})},Xg=function(t,n){return function(i){var l=Ob(t,n);return Cb(l,i)}},uR=function(t,n){return function(i){var l=Ob(t,n),a=[].concat(oR(l.map(function(s,u){return s*u}).slice(1)),[0]);return Cb(a,i)}},Zg=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var l=n[0],a=n[1],s=n[2],u=n[3];if(n.length===1)switch(n[0]){case"linear":l=0,a=0,s=1,u=1;break;case"ease":l=.25,a=.1,s=.25,u=1;break;case"ease-in":l=.42,a=0,s=1,u=1;break;case"ease-out":l=.42,a=0,s=.58,u=1;break;case"ease-in-out":l=0,a=0,s=.58,u=1;break;default:{var h=n[0].split("(");if(h[0]==="cubic-bezier"&&h[1].split(")")[0].split(",").length===4){var v=h[1].split(")")[0].split(",").map(function(g){return parseFloat(g)}),p=tR(v,4);l=p[0],a=p[1],s=p[2],u=p[3]}}}var f=Xg(l,s),d=Xg(a,u),m=uR(l,s),S=function(b){return b>1?1:b<0?0:b},y=function(b){for(var x=b>1?1:b,_=x,E=0;E<8;++E){var O=f(_)-x,R=m(_);if(Math.abs(O-x)<_u||R<_u)return d(_);_=S(_-O/R)}return d(_)};return y.isStepper=!1,y},cR=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,i=n===void 0?100:n,l=t.damping,a=l===void 0?8:l,s=t.dt,u=s===void 0?17:s,h=function(p,f,d){var m=-(p-f)*i,S=d*a,y=d+(m-S)*u/1e3,g=d*u/1e3+p;return Math.abs(g-f)<_u&&Math.abs(y)<_u?[f,0]:[g,y]};return h.isStepper=!0,h.dt=u,h},fR=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var l=n[0];if(typeof l=="string")switch(l){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return Zg(l);case"spring":return cR();default:if(l.split("(")[0]==="cubic-bezier")return Zg(l)}return typeof l=="function"?l:null};function Oa(e){"@babel/helpers - typeof";return Oa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oa(e)}function Jg(e){return pR(e)||hR(e)||Pb(e)||dR()}function dR(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
119In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hR(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function pR(e){if(Array.isArray(e))return Sh(e)}function e1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,i)}return n}function Ft(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?e1(Object(n),!0).forEach(function(i){bh(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):e1(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function bh(e,t,n){return t=mR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mR(e){var t=vR(e,"string");return Oa(t)==="symbol"?t:String(t)}function vR(e,t){if(Oa(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(Oa(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yR(e,t){return bR(e)||wR(e,t)||Pb(e,t)||gR()}function gR(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
120In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pb(e,t){if(e){if(typeof e=="string")return Sh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Sh(e,t)}}function Sh(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function wR(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i,l,a,s,u=[],h=!0,v=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(h=(i=a.call(n)).done)&&(u.push(i.value),u.length!==t);h=!0);}catch(p){v=!0,l=p}finally{try{if(!h&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(v)throw l}}return u}}function bR(e){if(Array.isArray(e))return e}var ku=function(t,n,i){return t+(n-t)*i},xh=function(t){var n=t.from,i=t.to;return n!==i},SR=function e(t,n,i){var l=pa(function(a,s){if(xh(s)){var u=t(s.from,s.to,s.velocity),h=yR(u,2),v=h[0],p=h[1];return Ft(Ft({},s),{},{from:v,velocity:p})}return s},n);return i<1?pa(function(a,s){return xh(s)?Ft(Ft({},s),{},{velocity:ku(s.velocity,l[a].velocity,i),from:ku(s.from,l[a].from,i)}):s},n):e(t,l,i-1)};const xR=(function(e,t,n,i,l){var a=ZT(e,t),s=a.reduce(function(g,b){return Ft(Ft({},g),{},bh({},b,[e[b],t[b]]))},{}),u=a.reduce(function(g,b){return Ft(Ft({},g),{},bh({},b,{from:e[b],velocity:0,to:t[b]}))},{}),h=-1,v,p,f=function(){return null},d=function(){return pa(function(b,x){return x.from},u)},m=function(){return!Object.values(u).filter(xh).length},S=function(b){v||(v=b);var x=b-v,_=x/n.dt;u=SR(n,u,_),l(Ft(Ft(Ft({},e),t),d())),v=b,m()||(h=requestAnimationFrame(f))},y=function(b){p||(p=b);var x=(b-p)/i,_=pa(function(O,R){return ku.apply(void 0,Jg(R).concat([n(x)]))},s);if(l(Ft(Ft(Ft({},e),t),_)),x<1)h=requestAnimationFrame(f);else{var E=pa(function(O,R){return ku.apply(void 0,Jg(R).concat([n(1)]))},s);l(Ft(Ft(Ft({},e),t),E))}};return f=n.isStepper?S:y,function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(h)}}});function al(e){"@babel/helpers - typeof";return al=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},al(e)}var ER=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function _R(e,t){if(e==null)return{};var n=kR(e,t),i,l;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(l=0;l<a.length;l++)i=a[l],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function kR(e,t){if(e==null)return{};var n={},i=Object.keys(e),l,a;for(a=0;a<i.length;a++)l=i[a],!(t.indexOf(l)>=0)&&(n[l]=e[l]);return n}function gd(e){return AR(e)||PR(e)||CR(e)||OR()}function OR(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
121In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function CR(e,t){if(e){if(typeof e=="string")return Eh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Eh(e,t)}}function PR(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function AR(e){if(Array.isArray(e))return Eh(e)}function Eh(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function t1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,i)}return n}function Wn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?t1(Object(n),!0).forEach(function(i){da(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t1(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function da(e,t,n){return t=Ab(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function RR(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Ab(i.key),i)}}function NR(e,t,n){return t&&RR(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ab(e){var t=IR(e,"string");return al(t)==="symbol"?t:String(t)}function IR(e,t){if(al(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(al(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function LR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_h(e,t)}function _h(e,t){return _h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,l){return i.__proto__=l,i},_h(e,t)}function MR(e){var t=DR();return function(){var i=Ou(e),l;if(t){var a=Ou(this).constructor;l=Reflect.construct(i,arguments,a)}else l=i.apply(this,arguments);return kh(this,l)}}function kh(e,t){if(t&&(al(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Oh(e)}function Oh(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function DR(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ou(e){return Ou=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ou(e)}var vp=(function(e){LR(n,e);var t=MR(n);function n(i,l){var a;TR(this,n),a=t.call(this,i,l);var s=a.props,u=s.isActive,h=s.attributeName,v=s.from,p=s.to,f=s.steps,d=s.children,m=s.duration;if(a.handleStyleChange=a.handleStyleChange.bind(Oh(a)),a.changeStyle=a.changeStyle.bind(Oh(a)),!u||m<=0)return a.state={style:{}},typeof d=="function"&&(a.state={style:p}),kh(a);if(f&&f.length)a.state={style:f[0].style};else if(v){if(typeof d=="function")return a.state={style:v},kh(a);a.state={style:h?da({},h,v):v}}else a.state={style:{}};return a}return NR(n,[{key:"componentDidMount",value:function(){var l=this.props,a=l.isActive,s=l.canBegin;this.mounted=!0,!(!a||!s)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(l){var a=this.props,s=a.isActive,u=a.canBegin,h=a.attributeName,v=a.shouldReAnimate,p=a.to,f=a.from,d=this.state.style;if(u){if(!s){var m={style:h?da({},h,p):p};this.state&&d&&(h&&d[h]!==p||!h&&d!==p)&&this.setState(m);return}if(!(UT(l.to,p)&&l.canBegin&&l.isActive)){var S=!l.canBegin||!l.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var y=S||v?f:l.to;if(this.state&&d){var g={style:h?da({},h,y):y};(h&&d[h]!==y||!h&&d!==y)&&this.setState(g)}this.runAnimation(Wn(Wn({},this.props),{},{from:y,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var l=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),l&&l()}},{key:"handleStyleChange",value:function(l){this.changeStyle(l)}},{key:"changeStyle",value:function(l){this.mounted&&this.setState({style:l})}},{key:"runJSAnimation",value:function(l){var a=this,s=l.from,u=l.to,h=l.duration,v=l.easing,p=l.begin,f=l.onAnimationEnd,d=l.onAnimationStart,m=xR(s,u,fR(v),h,this.changeStyle),S=function(){a.stopJSAnimation=m()};this.manager.start([d,p,S,h,f])}},{key:"runStepAnimation",value:function(l){var a=this,s=l.steps,u=l.begin,h=l.onAnimationStart,v=s[0],p=v.style,f=v.duration,d=f===void 0?0:f,m=function(y,g,b){if(b===0)return y;
vendor: 4,321 bytes, line 121
121var x=g.duration,_=g.easing,E=_===void 0?"ease":_,O=g.style,R=g.properties,I=g.onAnimationEnd,j=b>0?s[b-1]:g,B=R||Object.keys(O);if(typeof E=="function"||E==="spring")return[].concat(gd(y),[a.runJSAnimation.bind(a,{from:j.style,to:O,duration:x,easing:E}),x]);var L=Yg(B,x,E),P=Wn(Wn(Wn({},j.style),O),{},{transition:L});return[].concat(gd(y),[P,x,I]).filter(JT)};return this.manager.start([h].concat(gd(s.reduce(m,[p,Math.max(d,u)])),[l.onAnimationEnd]))}},{key:"runAnimation",value:function(l){this.manager||(this.manager=GT());var a=l.begin,s=l.duration,u=l.attributeName,h=l.to,v=l.easing,p=l.onAnimationStart,f=l.onAnimationEnd,d=l.steps,m=l.children,S=this.manager;if(this.unSubscribe=S.subscribe(this.handleStyleChange),typeof v=="function"||typeof m=="function"||v==="spring"){this.runJSAnimation(l);return}if(d.length>1){this.runStepAnimation(l);return}var y=u?da({},u,h):h,g=Yg(Object.keys(y),s,v);S.start([p,a,Wn(Wn({},y),{},{transition:g}),s,f])}},{key:"render",value:function(){var l=this.props,a=l.children;l.begin;var s=l.duration;l.attributeName,l.easing;var u=l.isActive;l.steps,l.from,l.to,l.canBegin,l.onAnimationEnd,l.shouldReAnimate,l.onAnimationReStart;var h=_R(l,ER),v=D.Children.count(a),p=this.state.style;if(typeof a=="function")return a(p);if(!u||v===0||s<=0)return a;var f=function(m){var S=m.props,y=S.style,g=y===void 0?{}:y,b=S.className,x=D.cloneElement(m,Wn(Wn({},h),{},{style:Wn(Wn({},g),p),className:b}));return x};return v===1?f(D.Children.only(a)):gt.createElement("div",null,D.Children.map(a,function(d){return f(d)}))}}]),n})(D.PureComponent);vp.displayName="Animate";vp.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};vp.propTypes={from:rt.oneOfType([rt.object,rt.string]),to:rt.oneOfType([rt.object,rt.string]),attributeName:rt.string,duration:rt.number,begin:rt.number,easing:rt.oneOfType([rt.string,rt.func]),steps:rt.arrayOf(rt.shape({duration:rt.number.isRequired,style:rt.object.isRequired,easing:rt.oneOfType([rt.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),rt.func]),properties:rt.arrayOf("string"),onAnimationEnd:rt.func})),children:rt.oneOfType([rt.node,rt.func]),isActive:rt.bool,canBegin:rt.bool,onAnimationEnd:rt.func,shouldReAnimate:rt.bool,onAnimationStart:rt.func,onAnimationReStart:rt.func};var Ch=["Enter"," "],jR=["ArrowDown","PageUp","Home"],Tb=["ArrowUp","PageDown","End"],FR=[...jR,...Tb],BR={ltr:[...Ch,"ArrowRight"],rtl:[...Ch,"ArrowLeft"]},zR={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Fa="Menu",[Ca,qR,UR]=Zh(Fa),[so,Rb]=_n(Fa,[UR,$u,gl]),Ju=$u(),Nb=gl(),[VR,uo]=so(Fa),[HR,Ba]=so(Fa),Ib=e=>{const{__scopeMenu:t,open:n=!1,children:i,dir:l,onOpenChange:a,modal:s=!0}=e,u=Ju(t),[h,v]=D.useState(null),p=D.useRef(!1),f=Bt(a),d=pl(l);return D.useEffect(()=>{const m=()=>{p.current=!0,document.addEventListener("pointerdown",S,{capture:!0,once:!0}),document.addEventListener("pointermove",S,{capture:!0,once:!0})},S=()=>p.current=!1;return document.addEventListener("keydown",m,{capture:!0}),()=>{document.removeEventListener("keydown",m,{capture:!0}),document.removeEventListener("pointerdown",S,{capture:!0}),document.removeEventListener("pointermove",S,{capture:!0})}},[]),re.jsx(xw,{...u,children:re.jsx(VR,{scope:t,open:n,onOpenChange:f,content:h,onContentChange:v,children:re.jsx(HR,{scope:t,onClose:D.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:p,dir:d,modal:s,children:i})})})};Ib.displayName=Fa;var $R="MenuAnchor",yp=D.forwardRef((e,t)=>{const{__scopeMenu:n,...i}=e,l=Ju(n);return re.jsx(Ew,{...l,...i,ref:t})});yp.displayName=$R;var gp="MenuPortal",[WR,Lb]=so(gp,{forceMount:void 0}),Mb=e=>{const{__scopeMenu:t,forceMount:n,children:i,container:l}=e,a=uo(gp,t);return re.jsx(WR,{scope:t,forceMount:n,children:re.jsx(hn,{present:n||a.open,children:re.jsx(Wu,{asChild:!0,container:l,children:i})})})};Mb.displayName=gp;var Dn="MenuContent",[KR,wp]=so(Dn),Db=D.forwardRef((e,t)=>{const n=Lb(Dn,e.__scopeMenu),{forceMount:i=n.forceMount,...l}=e,a=uo(Dn,e.__scopeMenu),s=Ba(Dn,e.__scopeMenu);return re.jsx(Ca.Provider,{scope:e.__scopeMenu,children:re.jsx(hn,{present:i||a.open,children:re.jsx(Ca.Slot,{scope:e.__scopeMenu,children:s.modal?re.jsx(QR,{...l,ref:t}):re.jsx(GR,{...l,ref:t})})})})}),QR=D.forwardRef((e,t)=>
vendor: 23,540 bytes, lines 121-130
121{const n=uo(Dn,e.__scopeMenu),i=D.useRef(null),l=Ge(t,i);return D.useEffect(()=>{const a=i.current;if(a)return cp(a)},[]),re.jsx(bp,{...e,ref:l,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Ae(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),GR=D.forwardRef((e,t)=>{const n=uo(Dn,e.__scopeMenu);return re.jsx(bp,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),YR=no("MenuContent.ScrollLock"),bp=D.forwardRef((e,t)=>{const{__scopeMenu:n,loop:i=!1,trapFocus:l,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:u,onEntryFocus:h,onEscapeKeyDown:v,onPointerDownOutside:p,onFocusOutside:f,onInteractOutside:d,onDismiss:m,disableOutsideScroll:S,...y}=e,g=uo(Dn,n),b=Ba(Dn,n),x=Ju(n),_=Nb(n),E=qR(n),[O,R]=D.useState(null),I=D.useRef(null),j=Ge(t,I,g.onContentChange),B=D.useRef(0),L=D.useRef(""),P=D.useRef(0),N=D.useRef(null),F=D.useRef("right"),z=D.useRef(0),H=S?Qu:D.Fragment,Q=S?{as:YR,allowPinchZoom:!0}:void 0,Y=$=>{var K,ie;const T=L.current+$,A=E().filter(le=>!le.disabled),q=document.activeElement,M=(K=A.find(le=>le.ref.current===q))==null?void 0:K.textValue,ee=A.map(le=>le.textValue),te=s2(ee,T,M),V=(ie=A.find(le=>le.textValue===te))==null?void 0:ie.ref.current;(function le(ce){L.current=ce,window.clearTimeout(B.current),ce!==""&&(B.current=window.setTimeout(()=>le(""),1e3))})(T),V&&setTimeout(()=>V.focus())};D.useEffect(()=>()=>window.clearTimeout(B.current),[]),Jh();const X=D.useCallback($=>{var A,q;return F.current===((A=N.current)==null?void 0:A.side)&&c2($,(q=N.current)==null?void 0:q.area)},[]);return re.jsx(KR,{scope:n,searchRef:L,onItemEnter:D.useCallback($=>{X($)&&$.preventDefault()},[X]),onItemLeave:D.useCallback($=>{var T;X($)||((T=I.current)==null||T.focus(),R(null))},[X]),onTriggerLeave:D.useCallback($=>{X($)&&$.preventDefault()},[X]),pointerGraceTimerRef:P,onPointerGraceIntentChange:D.useCallback($=>{N.current=$},[]),children:re.jsx(H,{...Q,children:re.jsx(zu,{asChild:!0,trapped:l,onMountAutoFocus:Ae(a,$=>{var T;$.preventDefault(),(T=I.current)==null||T.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:re.jsx(Bu,{asChild:!0,disableOutsidePointerEvents:u,onEscapeKeyDown:v,onPointerDownOutside:p,onFocusOutside:f,onInteractOutside:d,onDismiss:m,children:re.jsx(dp,{asChild:!0,..._,dir:b.dir,orientation:"vertical",loop:i,currentTabStopId:O,onCurrentTabStopIdChange:R,onEntryFocus:Ae(h,$=>{b.isUsingKeyboardRef.current||$.preventDefault()}),preventScrollOnEntryFocus:!0,children:re.jsx(_w,{role:"menu","aria-orientation":"vertical","data-state":Zb(g.open),"data-radix-menu-content":"",dir:b.dir,...x,...y,ref:j,style:{outline:"none",...y.style},onKeyDown:Ae(y.onKeyDown,$=>{const A=$.target.closest("[data-radix-menu-content]")===$.currentTarget,q=$.ctrlKey||$.altKey||$.metaKey,M=$.key.length===1;A&&($.key==="Tab"&&$.preventDefault(),!q&&M&&Y($.key));const ee=I.current;if($.target!==ee||!FR.includes($.key))return;$.preventDefault();const V=E().filter(K=>!K.disabled).map(K=>K.ref.current);Tb.includes($.key)&&V.reverse(),l2(V)}),onBlur:Ae(e.onBlur,$=>{$.currentTarget.contains($.target)||(window.clearTimeout(B.current),L.current="")}),onPointerMove:Ae(e.onPointerMove,Pa($=>{const T=$.target,A=z.current!==$.clientX;if($.currentTarget.contains(T)&&A){const q=$.clientX>z.current?"right":"left";F.current=q,z.current=$.clientX}}))})})})})})})});Db.displayName=Dn;var XR="MenuGroup",Sp=D.forwardRef((e,t)=>{const{__scopeMenu:n,...i}=e;return re.jsx(Ue.div,{role:"group",...i,ref:t})});Sp.displayName=XR;var ZR="MenuLabel",jb=D.forwardRef((e,t)=>{const{__scopeMenu:n,...i}=e;return re.jsx(Ue.div,{...i,ref:t})});jb.displayName=ZR;var Cu="MenuItem",n1="menu.itemSelect",ec=D.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:i,...l}=e,a=D.useRef(null),s=Ba(Cu,e.__scopeMenu),u=wp(Cu,e.__scopeMenu),h=Ge(t,a),v=D.useRef(!1),p=()=>{const f=a.current;if(!n&&f){const d=new CustomEvent(n1,{bubbles:!0,cancelable:!0});f.addEventListener(n1,m=>i==null?void 0:i(m),{once:!0}),Y0(f,d),d.defaultPrevented?v.current=!1:s.onClose()}};return re.jsx(Fb,{...l,ref:h,disabled:n,onClick:Ae(e.onClick,p),onPointerDown:f=>{var d;(d=e.onPointerDown)==null||d.call(e,f),v.current=!0},onPointerUp:Ae(e.onPointerUp,f=>{var d;v.current||(d=f.currentTarget)==null||d.click()}),onKeyDown:Ae(e.onKeyDown,f=>{const d=u.searchRef.current!=="";n||d&&f.key===" "||Ch.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})});ec.displayName=Cu;var Fb=D.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:i=!1,textValue:l,...a}=e,s=wp(Cu,n),u=Nb(n),h=D.useRef(null),v=Ge(t,h),[p,f]=D.useState(!1),[d,m]=D.useState("");return D.useEffect(()=>{const S=h.current;S&&m((S.textContent??"").trim())},[a.children]),re.jsx(Ca.ItemSlot,{scope:n,disabled:i,textValue:l??d,children:re.jsx(hp,{asChild:!0,...u,focusable:!i,children:re.jsx(Ue.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0,...a,ref:v,onPointerMove:Ae(e.onPointerMove,Pa(S=>{i?s.onItemLeave(S):(s.onItemEnter(S),S.defaultPrevented||S.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Ae(e.onPointerLeave,Pa(S=>s.onItemLeave(S))),onFocus:Ae(e.onFocus,()=>f(!0)),onBlur:Ae(e.onBlur,()=>f(!1))})})})}),JR="MenuCheckboxItem",Bb=D.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:i,...l}=e;return re.jsx(Hb,{scope:e.__scopeMenu,checked:n,children:re.jsx(ec,{role:"menuitemcheckbox","aria-checked":Pu(n)?"mixed":n,...l,ref:t,"data-state":Ep(n),onSelect:Ae(l.onSelect,()=>i==null?void 0:i(Pu(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Bb.displayName=JR;var zb="MenuRadioGroup",[e2,t2]=so(zb,{value:void 0,onValueChange:()=>{}}),qb=D.forwardRef((e,t)=>{const{value:n,onValueChange:i,...l}=e,a=Bt(i);return re.jsx(e2,{scope:e.__scopeMenu,value:n,onValueChange:a,children:re.jsx(Sp,{...l,ref:t})})});qb.displayName=zb;var Ub="MenuRadioItem",Vb=D.forwardRef((e,t)=>{const{value:n,...i}=e,l=t2(Ub,e.__scopeMenu),a=n===l.value;return re.jsx(Hb,{scope:e.__scopeMenu,checked:a,children:re.jsx(ec,{role:"menuitemradio","aria-checked":a,...i,ref:t,"data-state":Ep(a),onSelect:Ae(i.onSelect,()=>{var s;return(s=l.onValueChange)==null?void 0:s.call(l,n)},{checkForDefaultPrevented:!1})})})});Vb.displayName=Ub;var xp="MenuItemIndicator",[Hb,n2]=so(xp,{checked:!1}),$b=D.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:i,...l}=e,a=n2(xp,n);return re.jsx(hn,{present:i||Pu(a.checked)||a.checked===!0,children:re.jsx(Ue.span,{...l,ref:t,"data-state":Ep(a.checked)})})});$b.displayName=xp;var r2="MenuSeparator",Wb=D.forwardRef((e,t)=>{const{__scopeMenu:n,...i}=e;return re.jsx(Ue.div,{role:"separator","aria-orientation":"horizontal",...i,ref:t})});Wb.displayName=r2;var i2="MenuArrow",Kb=D.forwardRef((e,t)=>{const{__scopeMenu:n,...i}=e,l=Ju(n);return re.jsx(kw,{...l,...i,ref:t})});Kb.displayName=i2;var o2="MenuSub",[h3,Qb]=so(o2),ha="MenuSubTrigger",Gb=D.forwardRef((e,t)=>{const n=uo(ha,e.__scopeMenu),i=Ba(ha,e.__scopeMenu),l=Qb(ha,e.__scopeMenu),a=wp(ha,e.__scopeMenu),s=D.useRef(null),{pointerGraceTimerRef:u,onPointerGraceIntentChange:h}=a,v={__scopeMenu:e.__scopeMenu},p=D.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return D.useEffect(()=>p,[p]),D.useEffect(()=>{const f=u.current;return()=>{window.clearTimeout(f),h(null)}},[u,h]),re.jsx(yp,{asChild:!0,...v,children:re.jsx(Fb,{id:l.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":l.contentId,"data-state":Zb(n.open),...e,ref:Fu(t,l.onTriggerChange),onClick:f=>{var d;(d=e.onClick)==null||d.call(e,f),!(e.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:Ae(e.onPointerMove,Pa(f=>{a.onItemEnter(f),!f.defaultPrevented&&!e.disabled&&!n.open&&!s.current&&(a.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),p()},100))})),onPointerLeave:Ae(e.onPointerLeave,Pa(f=>{var m,S;p();const d=(m=n.content)==null?void 0:m.getBoundingClientRect();if(d){const y=(S=n.content)==null?void 0:S.dataset.side,g=y==="right",b=g?-5:5,x=d[g?"left":"right"],_=d[g?"right":"left"];a.onPointerGraceIntentChange({area:[{x:f.clientX+b,y:f.clientY},{x,y:d.top},{x:_,y:d.top},{x:_,y:d.bottom},{x,y:d.bottom}],side:y}),window.clearTimeout(u.current),u.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(f),f.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:Ae(e.onKeyDown,f=>{var m;const d=a.searchRef.current!=="";e.disabled||d&&f.key===" "||BR[i.dir].includes(f.key)&&(n.onOpenChange(!0),(m=n.content)==null||m.focus(),f.preventDefault())})})})});Gb.displayName=ha;var Yb="MenuSubContent",Xb=D.forwardRef((e,t)=>{const n=Lb(Dn,e.__scopeMenu),{forceMount:i=n.forceMount,...l}=e,a=uo(Dn,e.__scopeMenu),s=Ba(Dn,e.__scopeMenu),u=Qb(Yb,e.__scopeMenu),h=D.useRef(null),v=Ge(t,h);return re.jsx(Ca.Provider,{scope:e.__scopeMenu,children:re.jsx(hn,{present:i||a.open,children:re.jsx(Ca.Slot,{scope:e.__scopeMenu,children:re.jsx(bp,{id:u.contentId,"aria-labelledby":u.triggerId,...l,ref:v,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:p=>{var f;s.isUsingKeyboardRef.current&&((f=h.current)==null||f.focus()),p.preventDefault()},onCloseAutoFocus:p=>p.preventDefault(),onFocusOutside:Ae(e.onFocusOutside,p=>{p.target!==u.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:Ae(e.onEscapeKeyDown,p=>{s.onClose(),p.preventDefault()}),onKeyDown:Ae(e.onKeyDown,p=>{var m;const f=p.currentTarget.contains(p.target),d=zR[s.dir].includes(p.key);f&&d&&(a.onOpenChange(!1),(m=u.trigger)==null||m.focus(),p.preventDefault())})})})})})});Xb.displayName=Yb;function Zb(e){return e?"open":"closed"}function Pu(e){return e==="indeterminate"}function Ep(e){return Pu(e)?"indeterminate":e?"checked":"unchecked"}function l2(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function a2(e,t){return e.map((n,i)=>e[(t+i)%e.length])}function s2(e,t,n){const l=t.length>1&&Array.from(t).every(v=>v===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let s=a2(e,Math.max(a,0));l.length===1&&(s=s.filter(v=>v!==n));const h=s.find(v=>v.toLowerCase().startsWith(l.toLowerCase()));return h!==n?h:void 0}function u2(e,t){const{x:n,y:i}=e;let l=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const u=t[a],h=t[s],v=u.x,p=u.y,f=h.x,d=h.y;p>i!=d>i&&n<(f-v)*(i-p)/(d-p)+v&&(l=!l)}return l}function c2(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return u2(n,t)}function Pa(e){return t=>t.pointerType==="mouse"?e(t):void 0}var f2=Ib,d2=yp,h2=Mb,p2=Db,m2=Sp,v2=jb,y2=ec,g2=Bb,w2=qb,b2=Vb,S2=$b,x2=Wb,E2=Kb,_2=Gb,k2=Xb,tc="DropdownMenu",[O2]=_n(tc,[Rb]),en=Rb(),[C2,Jb]=O2(tc),eS=e=>{const{__scopeDropdownMenu:t,children:n,dir:i,open:l,defaultOpen:a,onOpenChange:s,modal:u=!0}=e,h=en(t),v=D.useRef(null),[p,f]=xi({prop:l,defaultProp:a??!1,onChange:s,caller:tc});return re.jsx(C2,{scope:t,triggerId:mr(),triggerRef:v,contentId:mr(),open:p,onOpenChange:f,onOpenToggle:D.useCallback(()=>f(d=>!d),[f]),modal:u,children:re.jsx(f2,{...h,open:p,onOpenChange:f,dir:i,modal:u,children:n})})};eS.displayName=tc;var tS="DropdownMenuTrigger",nS=D.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:i=!1,...l}=e,a=Jb(tS,n),s=en(n);return re.jsx(d2,{asChild:!0,...s,children:re.jsx(Ue.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":i?"":void 0,disabled:i,...l,ref:Fu(t,a.triggerRef),onPointerDown:Ae(e.onPointerDown,u=>{!i&&u.button===0&&u.ctrlKey===!1&&(a.onOpenToggle(),a.open||u.preventDefault())}),onKeyDown:Ae(e.onKeyDown,u=>{i||(["Enter"," "].includes(u.key)&&a.onOpenToggle(),u.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(u.key)&&u.preventDefault())})})})});nS.displayName=tS;var P2="DropdownMenuPortal",rS=e=>{const{__scopeDropdownMenu:t,...n}=e,i=en(t);return re.jsx(h2,{...i,...n})};rS.displayName=P2;var iS="DropdownMenuContent",oS=D.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,l=Jb(iS,n),a=en(n),s=D.useRef(!1);return re.jsx(p2,{id:l.contentId,"aria-labelledby":l.triggerId,...a,...i,ref:t,onCloseAutoFocus:Ae(e.onCloseAutoFocus,u=>{var h;s.current||(h=l.triggerRef.current)==null||h.focus(),s.current=!1,u.preventDefault()}),onInteractOutside:Ae(e.onInteractOutside,u=>{const h=u.detail.originalEvent,v=h.button===0&&h.ctrlKey===!0,p=h.button===2||v;(!l.modal||p)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});oS.displayName=iS;var A2="DropdownMenuGroup",T2=D.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,l=en(n);return re.jsx(m2,{...l,...i,ref:t})});T2.displayName=A2;var R2="DropdownMenuLabel",lS=D.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,l=en(n);return re.jsx(v2,{...l,...i,ref:t})});lS.displayName=R2;var N2="DropdownMenuItem",aS=D.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,l=en(n);return re.jsx(y2,{...l,...i,ref:t})});aS.displayName=N2;var I2="DropdownMenuCheckboxItem",sS=D.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,l=en(n);return re.jsx(g2,{...l,...i,ref:t})});sS.displayName=I2;var L2="DropdownMenuRadioGroup",M2=D.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,l=en(n);return re.jsx(w2,{...l,...i,ref:t})});M2.displayName=L2;var D2="DropdownMenuRadioItem",uS=D.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,l=en(n);return re.jsx(b2,{...l,...i,ref:t})});uS.displayName=D2;var j2="DropdownMenuItemIndicator",cS=D.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,l=en(n);return re.jsx(S2,{...l,...i,ref:t})});cS.displayName=j2;var F2="DropdownMenuSeparator",fS=D.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,l=en(n);return re.jsx(x2,{...l,...i,ref:t})});fS.displayName=F2;var B2="DropdownMenuArrow",z2=D.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,l=en(n);return re.jsx(E2,{...l,...i,ref:t})});z2.displayName=B2;var q2="DropdownMenuSubTrigger",dS=D.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,l=en(n);return re.jsx(_2,{...l,...i,ref:t})});dS.displayName=q2;var U2="DropdownMenuSubContent",hS=D.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,l=en(n);return re.jsx(k2,{...l,...i,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});hS.displayName=U2;var p3=eS,m3=nS,v3=rS,y3=oS,g3=lS,w3=aS,b3=sS,S3=uS,x3=cS,E3=fS,_3=dS,k3=hS,nc="Dialog",[pS]=_n(nc),[V2,tr]=pS(nc),mS=e=>{const{__scopeDialog:t,children:n,open:i,defaultOpen:l,onOpenChange:a,modal:s=!0}=e,u=D.useRef(null),h=D.useRef(null),[v,p]=xi({prop:i,defaultProp:l??!1,onChange:a,caller:nc});return re.jsx(V2,{scope:t,triggerRef:u,contentRef:h,contentId:mr(),titleId:mr(),descriptionId:mr(),open:v,onOpenChange:p,onOpenToggle:D.useCallback(()=>p(f=>!f),[p]),modal:s,children:n})};mS.displayName=nc;var vS="DialogTrigger",yS=D.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,l=tr(vS,n),a=Ge(t,l.triggerRef);return re.jsx(Ue.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.contentId,"data-state":Op(l.open),...i,ref:a,onClick:Ae(e.onClick,l.onOpenToggle)})});yS.displayName=vS;var _p="DialogPortal",[H2,gS]=pS(_p,{forceMount:void 0}),wS=e=>{const{__scopeDialog:t,forceMount:n,children:i,container:l}=e,a=tr(_p,t);return re.jsx(H2,{scope:t,forceMount:n,children:D.Children.map(i,s=>re.jsx(hn,{present:n||a.open,children:re.jsx(Wu,{asChild:!0,container:l,children:s})}))})};wS.displayName=_p;var Au="DialogOverlay",bS=D.forwardRef((e,t)=>{const n=gS(Au,e.__scopeDialog),{forceMount:i=n.forceMount,...l}=e,a=tr(Au,e.__scopeDialog);return a.modal?re.jsx(hn,{present:i||a.open,children:re.jsx(W2,{...l,ref:t})}):null});bS.displayName=Au;var $2=no("DialogOverlay.RemoveScroll"),W2=D.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,l=tr(Au,n);return re.jsx(Qu,{as:$2,allowPinchZoom:!0,shards:[l.contentRef],children:re.jsx(Ue.div,{"data-state":Op(l.open),...i,ref:t,style:{pointerEvents:"auto",...i.style}})})}),lo="DialogContent",SS=D.forwardRef((e,t)=>{const n=gS(lo,e.__scopeDialog),{forceMount:i=n.forceMount,...l}=e,a=tr(lo,e.__scopeDialog);return re.jsx(hn,{present:i||a.open,children:a.modal?re.jsx(K2,{...l,ref:t}):re.jsx(Q2,{...l,ref:t})})});SS.displayName=lo;var K2=D.forwardRef((e,t)=>{const n=tr(lo,e.__scopeDialog),i=D.useRef(null),l=Ge(t,n.contentRef,i);return D.useEffect(()=>{const a=i.current;if(a)return cp(a)},[]),re.jsx(xS,{...e,ref:l,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ae(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:Ae(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,u=s.button===0&&s.ctrlKey===!0;(s.button===2||u)&&a.preventDefault()}),onFocusOutside:Ae(e.onFocusOutside,a=>a.preventDefault())})}),Q2=D.forwardRef((e,t)=>{const n=tr(lo,e.__scopeDialog),i=D.useRef(!1),l=D.useRef(!1);return re.jsx(xS,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,u;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(i.current||(u=n.triggerRef.current)==null||u.focus(),a.preventDefault()),i.current=!1,l.current=!1},onInteractOutside:a=>{var h,v;(h=e.onInteractOutside)==null||h.call(e,a),a.defaultPrevented||(i.current=!0,a.detail.originalEvent.type==="pointerdown"&&(l.current=!0));const s=a.target;((v=n.triggerRef.current)==null?void 0:v.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&l.current&&a.preventDefault()}})}),xS=D.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:i,onOpenAutoFocus:l,onCloseAutoFocus:a,...s}=e,u=tr(lo,n),h=D.useRef(null),v=Ge(t,h);return Jh(),re.jsxs(re.Fragment,{children:[re.jsx(zu,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:l,onUnmountAutoFocus:a,children:re.jsx(Bu,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":Op(u.open),...s,ref:v,onDismiss:()=>u.onOpenChange(!1)})}),re.jsxs(re.Fragment,{children:[re.jsx(G2,{titleId:u.titleId}),re.jsx(X2,{contentRef:h,descriptionId:u.descriptionId})]})]})}),kp="DialogTitle",ES=D.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,l=tr(kp,n);return re.jsx(Ue.h2,{id:l.titleId,...i,ref:t})});ES.displayName=kp;var _S="DialogDescription",kS=D.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,l=tr(_S,n);return re.jsx(Ue.p,{id:l.descriptionId,...i,ref:t})});kS.displayName=_S;var OS="DialogClose",CS=D.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,l=tr(OS,n);return re.jsx(Ue.button,{type:"button",...i,ref:t,onClick:Ae(e.onClick,()=>l.onOpenChange(!1))})});CS.displayName=OS;function Op(e){return e?"open":"closed"}var PS="DialogTitleWarning",[O3,AS]=KO(PS,{contentName:lo,titleName:kp,docsSlug:"dialog"}),G2=({titleId:e})=>{const t=AS(PS),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
122
123If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
124
125For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return D.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Y2="DialogDescriptionWarning",X2=({contentRef:e,descriptionId:t})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${AS(Y2).contentName}}.`;return D.useEffect(()=>{var a;const l=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&l&&(document.getElementById(t)||console.warn(i))},[i,e,t]),null},C3=mS,P3=yS,A3=wS,T3=bS,R3=SS,N3=ES,I3=kS,L3=CS,rc="Switch",[Z2]=_n(rc),[J2,eN]=Z2(rc),TS=D.forwardRef((e,t)=>{const{__scopeSwitch:n,name:i,checked:l,defaultChecked:a,required:s,disabled:u,value:h="on",onCheckedChange:v,form:p,...f}=e,[d,m]=D.useState(null),S=Ge(t,_=>m(_)),y=D.useRef(!1),g=d?p||!!d.closest("form"):!0,[b,x]=xi({prop:l,defaultProp:a??!1,onChange:v,caller:rc});return re.jsxs(J2,{scope:n,checked:b,disabled:u,children:[re.jsx(Ue.button,{type:"button",role:"switch","aria-checked":b,"aria-required":s,"data-state":LS(b),"data-disabled":u?"":void 0,disabled:u,value:h,...f,ref:S,onClick:Ae(e.onClick,_=>{x(E=>!E),g&&(y.current=_.isPropagationStopped(),y.current||_.stopPropagation())})}),g&&re.jsx(IS,{control:d,bubbles:!y.current,name:i,value:h,checked:b,required:s,disabled:u,form:p,style:{transform:"translateX(-100%)"}})]})});TS.displayName=rc;var RS="SwitchThumb",NS=D.forwardRef((e,t)=>{const{__scopeSwitch:n,...i}=e,l=eN(RS,n);return re.jsx(Ue.span,{"data-state":LS(l.checked),"data-disabled":l.disabled?"":void 0,...i,ref:t})});NS.displayName=RS;var tN="SwitchBubbleInput",IS=D.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:i=!0,...l},a)=>{const s=D.useRef(null),u=Ge(s,a),h=up(n),v=lp(t);return D.useEffect(()=>{const p=s.current;if(!p)return;const f=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(f,"checked").set;if(h!==n&&m){const S=new Event("click",{bubbles:i});m.call(p,n),p.dispatchEvent(S)}},[h,n,i]),re.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...l,tabIndex:-1,ref:u,style:{...l.style,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});IS.displayName=tN;function LS(e){return e?"checked":"unchecked"}var M3=TS,D3=NS,pu={exports:{}};/*!
126 * Quill Editor v1.3.7
127 * https://quilljs.com/
128 * Copyright (c) 2014, Jason Chen
129 * Copyright (c) 2013, salesforce.com
130 */var nN=pu.exports,r1;function rN(){return r1||(r1=1,(function(e,t){(function(i,l){e.exports=l()})(typeof self<"u"?self:nN,function(){return(function(n){var i={};function l(a){if(i[a])return i[a].exports;var s=i[a]={i:a,l:!1,exports:{}};return n[a].call(s.exports,s,s.exports,l),s.l=!0,s.exports}return l.m=n,l.c=i,l.d=function(a,s,u){l.o(a,s)||Object.defineProperty(a,s,{configurable:!1,enumerable:!0,get:u})},l.n=function(a){var s=a&&a.__esModule?function(){return a.default}:function(){return a};return l.d(s,"a",s),s},l.o=function(a,s){return Object.prototype.hasOwnProperty.call(a,s)},l.p="",l(l.s=109)})([(function(n,i,l){Object.defineProperty(i,"__esModule",{value:!0});var a=l(17),s=l(18),u=l(19),h=l(45),v=l(46),p=l(47),f=l(48),d=l(49),m=l(12),S=l(32),y=l(33),g=l(31),b=l(1),x={Scope:b.Scope,create:b.create,find:b.find,query:b.query,register:b.register,Container:a.default,Format:s.default,Leaf:u.default,Embed:f.default,Scroll:h.default,Block:p.default,Inline:v.default,Text:d.default,Attributor:{Attribute:m.default,Class:S.default,Style:y.default,Store:g.default}};i.default=x}),(function(n,i,l){var a=this&&this.__extends||(function(){var g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,x){b.__proto__=x}||function(b,x){for(var _ in x)x.hasOwnProperty(_)&&(b[_]=x[_])};return function(b,x){g(b,x);function _(){this.constructor=b}
vendor: 197,526 bytes, lines 130-165
130b.prototype=x===null?Object.create(x):(_.prototype=x.prototype,new _)}})();Object.defineProperty(i,"__esModule",{value:!0});var s=(function(g){a(b,g);function b(x){var _=this;return x="[Parchment] "+x,_=g.call(this,x)||this,_.message=x,_.name=_.constructor.name,_}return b})(Error);i.ParchmentError=s;var u={},h={},v={},p={};i.DATA_KEY="__blot";var f;(function(g){g[g.TYPE=3]="TYPE",g[g.LEVEL=12]="LEVEL",g[g.ATTRIBUTE=13]="ATTRIBUTE",g[g.BLOT=14]="BLOT",g[g.INLINE=7]="INLINE",g[g.BLOCK=11]="BLOCK",g[g.BLOCK_BLOT=10]="BLOCK_BLOT",g[g.INLINE_BLOT=6]="INLINE_BLOT",g[g.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",g[g.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",g[g.ANY=15]="ANY"})(f=i.Scope||(i.Scope={}));function d(g,b){var x=S(g);if(x==null)throw new s("Unable to create "+g+" blot");var _=x,E=g instanceof Node||g.nodeType===Node.TEXT_NODE?g:_.create(b);return new _(E,b)}i.create=d;function m(g,b){return b===void 0&&(b=!1),g==null?null:g[i.DATA_KEY]!=null?g[i.DATA_KEY].blot:b?m(g.parentNode,b):null}i.find=m;function S(g,b){b===void 0&&(b=f.ANY);var x;if(typeof g=="string")x=p[g]||u[g];else if(g instanceof Text||g.nodeType===Node.TEXT_NODE)x=p.text;else if(typeof g=="number")g&f.LEVEL&f.BLOCK?x=p.block:g&f.LEVEL&f.INLINE&&(x=p.inline);else if(g instanceof HTMLElement){var _=(g.getAttribute("class")||"").split(/\s+/);for(var E in _)if(x=h[_[E]],x)break;x=x||v[g.tagName]}return x==null?null:b&f.LEVEL&x.scope&&b&f.TYPE&x.scope?x:null}i.query=S;function y(){for(var g=[],b=0;b<arguments.length;b++)g[b]=arguments[b];if(g.length>1)return g.map(function(E){return y(E)});var x=g[0];if(typeof x.blotName!="string"&&typeof x.attrName!="string")throw new s("Invalid definition");if(x.blotName==="abstract")throw new s("Cannot register abstract class");if(p[x.blotName||x.attrName]=x,typeof x.keyName=="string")u[x.keyName]=x;else if(x.className!=null&&(h[x.className]=x),x.tagName!=null){Array.isArray(x.tagName)?x.tagName=x.tagName.map(function(E){return E.toUpperCase()}):x.tagName=x.tagName.toUpperCase();var _=Array.isArray(x.tagName)?x.tagName:[x.tagName];_.forEach(function(E){(v[E]==null||x.className==null)&&(v[E]=x)})}return x}i.register=y}),(function(n,i,l){var a=l(51),s=l(11),u=l(3),h=l(20),v="\0",p=function(f){Array.isArray(f)?this.ops=f:f!=null&&Array.isArray(f.ops)?this.ops=f.ops:this.ops=[]};p.prototype.insert=function(f,d){var m={};return f.length===0?this:(m.insert=f,d!=null&&typeof d=="object"&&Object.keys(d).length>0&&(m.attributes=d),this.push(m))},p.prototype.delete=function(f){return f<=0?this:this.push({delete:f})},p.prototype.retain=function(f,d){if(f<=0)return this;var m={retain:f};return d!=null&&typeof d=="object"&&Object.keys(d).length>0&&(m.attributes=d),this.push(m)},p.prototype.push=function(f){var d=this.ops.length,m=this.ops[d-1];if(f=u(!0,{},f),typeof m=="object"){if(typeof f.delete=="number"&&typeof m.delete=="number")return this.ops[d-1]={delete:m.delete+f.delete},this;if(typeof m.delete=="number"&&f.insert!=null&&(d-=1,m=this.ops[d-1],typeof m!="object"))return this.ops.unshift(f),this;if(s(f.attributes,m.attributes)){if(typeof f.insert=="string"&&typeof m.insert=="string")return this.ops[d-1]={insert:m.insert+f.insert},typeof f.attributes=="object"&&(this.ops[d-1].attributes=f.attributes),this;if(typeof f.retain=="number"&&typeof m.retain=="number")return this.ops[d-1]={retain:m.retain+f.retain},typeof f.attributes=="object"&&(this.ops[d-1].attributes=f.attributes),this}}return d===this.ops.length?this.ops.push(f):this.ops.splice(d,0,f),this},p.prototype.chop=function(){var f=this.ops[this.ops.length-1];return f&&f.retain&&!f.attributes&&this.ops.pop(),this},p.prototype.filter=function(f){return this.ops.filter(f)},p.prototype.forEach=function(f){this.ops.forEach(f)},p.prototype.map=function(f){return this.ops.map(f)},p.prototype.partition=function(f){var d=[],m=[];return this.forEach(function(S){var y=f(S)?d:m;y.push(S)}),[d,m]},p.prototype.reduce=function(f,d){return this.ops.reduce(f,d)},p.prototype.changeLength=function(){return this.reduce(function(f,d){return d.insert?f+h.length(d):d.delete?f-d.delete:f},0)},p.prototype.length=function(){return this.reduce(function(f,d){return f+h.length(d)},0)},p.prototype.slice=function(f,d){f=f||0,typeof d!="number"&&(d=1/0);for(var m=[],S=h.iterator(this.ops),y=0;y<d&&S.hasNext();){var g;y<f?g=S.next(f-y):(g=S.next(d-y),m.push(g)),y+=h.length(g)}return new p(m)},p.prototype.compose=function(f){var d=h.iterator(this.ops),m=h.iterator(f.ops),S=[],y=m.peek();if(y!=null&&typeof y.retain=="number"&&y.attributes==null){for(var g=y.retain;d.peekType()==="insert"&&d.peekLength()<=g;)g-=d.peekLength(),S.push(d.next());y.retain-g>0&&m.next(y.retain-g)}for(var b=new p(S);d.hasNext()||m.hasNext();)if(m.peekType()==="insert")b.push(m.next());else if(d.peekType()==="delete")b.push(d.next());else{var x=Math.min(d.peekLength(),m.peekLength()),_=d.next(x),E=m.next(x);if(typeof E.retain=="number"){var O={};typeof _.retain=="number"?O.retain=x:O.insert=_.insert;var R=h.attributes.compose(_.attributes,E.attributes,typeof _.retain=="number");if(R&&(O.attributes=R),b.push(O),!m.hasNext()&&s(b.ops[b.ops.length-1],O)){var I=new p(d.rest());return b.concat(I).chop()}}else typeof E.delete=="number"&&typeof _.retain=="number"&&b.push(E)}return b.chop()},p.prototype.concat=function(f){var d=new p(this.ops.slice());return f.ops.length>0&&(d.push(f.ops[0]),d.ops=d.ops.concat(f.ops.slice(1))),d},p.prototype.diff=function(f,d){if(this.ops===f.ops)return new p;var m=[this,f].map(function(x){return x.map(function(_){if(_.insert!=null)return typeof _.insert=="string"?_.insert:v;var E=x===f?"on":"with";throw new Error("diff() called "+E+" non-document")}).join("")}),S=new p,y=a(m[0],m[1],d),g=h.iterator(this.ops),b=h.iterator(f.ops);return y.forEach(function(x){for(var _=x[1].length;_>0;){var E=0;switch(x[0]){case a.INSERT:E=Math.min(b.peekLength(),_),S.push(b.next(E));break;case a.DELETE:E=Math.min(_,g.peekLength()),g.next(E),S.delete(E);break;case a.EQUAL:E=Math.min(g.peekLength(),b.peekLength(),_);var O=g.next(E),R=b.next(E);s(O.insert,R.insert)?S.retain(E,h.attributes.diff(O.attributes,R.attributes)):S.push(R).delete(E);break}_-=E}}),S.chop()},p.prototype.eachLine=function(f,d){d=d||`
131`;for(var m=h.iterator(this.ops),S=new p,y=0;m.hasNext();){if(m.peekType()!=="insert")return;var g=m.peek(),b=h.length(g)-m.peekLength(),x=typeof g.insert=="string"?g.insert.indexOf(d,b)-b:-1;if(x<0)S.push(m.next());else if(x>0)S.push(m.next(x));else{if(f(S,m.next(1).attributes||{},y)===!1)return;y+=1,S=new p}}S.length()>0&&f(S,{},y)},p.prototype.transform=function(f,d){if(d=!!d,typeof f=="number")return this.transformPosition(f,d);for(var m=h.iterator(this.ops),S=h.iterator(f.ops),y=new p;m.hasNext()||S.hasNext();)if(m.peekType()==="insert"&&(d||S.peekType()!=="insert"))y.retain(h.length(m.next()));else if(S.peekType()==="insert")y.push(S.next());else{var g=Math.min(m.peekLength(),S.peekLength()),b=m.next(g),x=S.next(g);if(b.delete)continue;x.delete?y.push(x):y.retain(g,h.attributes.transform(b.attributes,x.attributes,d))}return y.chop()},p.prototype.transformPosition=function(f,d){d=!!d;for(var m=h.iterator(this.ops),S=0;m.hasNext()&&S<=f;){var y=m.peekLength(),g=m.peekType();if(m.next(),g==="delete"){f-=Math.min(y,f-S);continue}else g==="insert"&&(S<f||!d)&&(f+=y);S+=y}return f},n.exports=p}),(function(n,i){var l=Object.prototype.hasOwnProperty,a=Object.prototype.toString,s=Object.defineProperty,u=Object.getOwnPropertyDescriptor,h=function(m){return typeof Array.isArray=="function"?Array.isArray(m):a.call(m)==="[object Array]"},v=function(m){if(!m||a.call(m)!=="[object Object]")return!1;var S=l.call(m,"constructor"),y=m.constructor&&m.constructor.prototype&&l.call(m.constructor.prototype,"isPrototypeOf");if(m.constructor&&!S&&!y)return!1;var g;for(g in m);return typeof g>"u"||l.call(m,g)},p=function(m,S){s&&S.name==="__proto__"?s(m,S.name,{enumerable:!0,configurable:!0,value:S.newValue,writable:!0}):m[S.name]=S.newValue},f=function(m,S){if(S==="__proto__")if(l.call(m,S)){if(u)return u(m,S).value}else return;return m[S]};n.exports=function d(){var m,S,y,g,b,x,_=arguments[0],E=1,O=arguments.length,R=!1;for(typeof _=="boolean"&&(R=_,_=arguments[1]||{},E=2),(_==null||typeof _!="object"&&typeof _!="function")&&(_={});E<O;++E)if(m=arguments[E],m!=null)for(S in m)y=f(_,S),g=f(m,S),_!==g&&(R&&g&&(v(g)||(b=h(g)))?(b?(b=!1,x=y&&h(y)?y:[]):x=y&&v(y)?y:{},p(_,{name:S,newValue:d(R,x,g)})):typeof g<"u"&&p(_,{name:S,newValue:g}));return _}}),(function(n,i,l){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.BlockEmbed=i.bubbleFormats=void 0;var a=(function(){function P(N,F){for(var z=0;z<F.length;z++){var H=F[z];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(N,H.key,H)}}return function(N,F,z){return F&&P(N.prototype,F),z&&P(N,z),N}})(),s=function P(N,F,z){N===null&&(N=Function.prototype);var H=Object.getOwnPropertyDescriptor(N,F);if(H===void 0){var Q=Object.getPrototypeOf(N);return Q===null?void 0:P(Q,F,z)}else{if("value"in H)return H.value;var Y=H.get;return Y===void 0?void 0:Y.call(z)}},u=l(3),h=_(u),v=l(2),p=_(v),f=l(0),d=_(f),m=l(16),S=_(m),y=l(6),g=_(y),b=l(7),x=_(b);function _(P){return P&&P.__esModule?P:{default:P}}function E(P,N){if(!(P instanceof N))throw new TypeError("Cannot call a class as a function")}function O(P,N){if(!P)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N&&(typeof N=="object"||typeof N=="function")?N:P}function R(P,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof N);P.prototype=Object.create(N&&N.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}}),N&&(Object.setPrototypeOf?Object.setPrototypeOf(P,N):P.__proto__=N)}var I=1,j=(function(P){R(N,P);function N(){return E(this,N),O(this,(N.__proto__||Object.getPrototypeOf(N)).apply(this,arguments))}return a(N,[{key:"attach",value:function(){s(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"attach",this).call(this),this.attributes=new d.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new p.default().insert(this.value(),(0,h.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(z,H){var Q=d.default.query(z,d.default.Scope.BLOCK_ATTRIBUTE);Q!=null&&this.attributes.attribute(Q,H)}},{key:"formatAt",value:function(z,H,Q,Y){this.format(Q,Y)}},{key:"insertAt",value:function(z,H,Q){if(typeof H=="string"&&H.endsWith(`
132`)){var Y=d.default.create(B.blotName);this.parent.insertBefore(Y,z===0?this:this.next),Y.insertAt(0,H.slice(0,-1))}else s(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"insertAt",this).call(this,z,H,Q)}}]),N})(d.default.Embed);j.scope=d.default.Scope.BLOCK_BLOT;var B=(function(P){R(N,P);function N(F){E(this,N);var z=O(this,(N.__proto__||Object.getPrototypeOf(N)).call(this,F));return z.cache={},z}return a(N,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(d.default.Leaf).reduce(function(z,H){return H.length()===0?z:z.insert(H.value(),L(H))},new p.default).insert(`
133`,L(this))),this.cache.delta}},{key:"deleteAt",value:function(z,H){s(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"deleteAt",this).call(this,z,H),this.cache={}}},{key:"formatAt",value:function(z,H,Q,Y){H<=0||(d.default.query(Q,d.default.Scope.BLOCK)?z+H===this.length()&&this.format(Q,Y):s(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"formatAt",this).call(this,z,Math.min(H,this.length()-z-1),Q,Y),this.cache={})}},{key:"insertAt",value:function(z,H,Q){if(Q!=null)return s(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"insertAt",this).call(this,z,H,Q);if(H.length!==0){var Y=H.split(`
134`),X=Y.shift();X.length>0&&(z<this.length()-1||this.children.tail==null?s(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"insertAt",this).call(this,Math.min(z,this.length()-1),X):this.children.tail.insertAt(this.children.tail.length(),X),this.cache={});var $=this;Y.reduce(function(T,A){return $=$.split(T,!0),$.insertAt(0,A),A.length},z+X.length)}}},{key:"insertBefore",value:function(z,H){var Q=this.children.head;s(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"insertBefore",this).call(this,z,H),Q instanceof S.default&&Q.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=s(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"length",this).call(this)+I),this.cache.length}},{key:"moveChildren",value:function(z,H){s(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"moveChildren",this).call(this,z,H),this.cache={}}},{key:"optimize",value:function(z){s(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"optimize",this).call(this,z),this.cache={}}},{key:"path",value:function(z){return s(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"path",this).call(this,z,!0)}},{key:"removeChild",value:function(z){s(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"removeChild",this).call(this,z),this.cache={}}},{key:"split",value:function(z){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(H&&(z===0||z>=this.length()-I)){var Q=this.clone();return z===0?(this.parent.insertBefore(Q,this),this):(this.parent.insertBefore(Q,this.next),Q)}else{var Y=s(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"split",this).call(this,z,H);return this.cache={},Y}}}]),N})(d.default.Block);B.blotName="block",B.tagName="P",B.defaultChild="break",B.allowedChildren=[g.default,d.default.Embed,x.default];function L(P){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return P==null||(typeof P.formats=="function"&&(N=(0,h.default)(N,P.formats())),P.parent==null||P.parent.blotName=="scroll"||P.parent.statics.scope!==P.statics.scope)?N:L(P.parent,N)}i.bubbleFormats=L,i.BlockEmbed=j,i.default=B}),(function(n,i,l){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.overload=i.expandConfig=void 0;var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},s=(function(){function $(T,A){var q=[],M=!0,ee=!1,te=void 0;try{for(var V=T[Symbol.iterator](),K;!(M=(K=V.next()).done)&&(q.push(K.value),!(A&&q.length===A));M=!0);}catch(ie){ee=!0,te=ie}finally{try{!M&&V.return&&V.return()}finally{if(ee)throw te}}return q}return function(T,A){if(Array.isArray(T))return T;if(Symbol.iterator in Object(T))return $(T,A);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),u=(function(){function $(T,A){for(var q=0;q<A.length;q++){var M=A[q];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(T,M.key,M)}}return function(T,A,q){return A&&$(T.prototype,A),q&&$(T,q),T}})();l(50);var h=l(2),v=L(h),p=l(14),f=L(p),d=l(8),m=L(d),S=l(9),y=L(S),g=l(0),b=L(g),x=l(15),_=L(x),E=l(3),O=L(E),R=l(10),I=L(R),j=l(34),B=L(j);function L($){return $&&$.__esModule?$:{default:$}}function P($,T,A){return T in $?Object.defineProperty($,T,{value:A,enumerable:!0,configurable:!0,writable:!0}):$[T]=A,$}function N($,T){if(!($ instanceof T))throw new TypeError("Cannot call a class as a function")}var F=(0,I.default)("quill"),z=(function(){u($,null,[{key:"debug",value:function(A){A===!0&&(A="log"),I.default.level(A)}},{key:"find",value:function(A){return A.__quill||b.default.find(A)}},{key:"import",value:function(A){return this.imports[A]==null&&F.error("Cannot import "+A+". Are you sure it was registered?"),this.imports[A]}},{key:"register",value:function(A,q){var M=this,ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof A!="string"){var te=A.attrName||A.blotName;typeof te=="string"?this.register("formats/"+te,A,q):Object.keys(A).forEach(function(V){M.register(V,A[V],q)})}else this.imports[A]!=null&&!ee&&F.warn("Overwriting "+A+" with",q),this.imports[A]=q,(A.startsWith("blots/")||A.startsWith("formats/"))&&q.blotName!=="abstract"?b.default.register(q):A.startsWith("modules")&&typeof q.register=="function"&&q.register()}}]);function $(T){var A=this,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(N(this,$),this.options=H(T,q),this.container=this.options.container,this.container==null)return F.error("Invalid Quill container",T);this.options.debug&&$.debug(this.options.debug);var M=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new m.default,this.scroll=b.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new f.default(this.scroll),this.selection=new _.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(m.default.events.EDITOR_CHANGE,function(te){te===m.default.events.TEXT_CHANGE&&A.root.classList.toggle("ql-blank",A.editor.isBlank())}),this.emitter.on(m.default.events.SCROLL_UPDATE,function(te,V){var K=A.selection.lastRange,ie=K&&K.length===0?K.index:void 0;Q.call(A,function(){return A.editor.update(null,V,ie)},te)});var ee=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+M+"<p><br></p></div>");this.setContents(ee),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return u($,[{key:"addContainer",value:function(A){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof A=="string"){var M=A;A=document.createElement("div"),A.classList.add(M)}return this.container.insertBefore(A,q),A}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(A,q,M){var ee=this,te=Y(A,q,M),V=s(te,4);return A=V[0],q=V[1],M=V[3],Q.call(this,function(){return ee.editor.deleteText(A,q)},M,A,-1*q)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(A),this.container.classList.toggle("ql-disabled",!A)}},{key:"focus",value:function(){var A=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=A,this.scrollIntoView()}},{key:"format",value:function(A,q){var M=this,ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:m.default.sources.API;return Q.call(this,function(){var te=M.getSelection(!0),V=new v.default;if(te==null)return V;if(b.default.query(A,b.default.Scope.BLOCK))V=M.editor.formatLine(te.index,te.length,P({},A,q));else{if(te.length===0)return M.selection.format(A,q),V;V=M.editor.formatText(te.index,te.length,P({},A,q))}return M.setSelection(te,m.default.sources.SILENT),V},ee)}},{key:"formatLine",value:function(A,q,M,ee,te){var V=this,K=void 0,ie=Y(A,q,M,ee,te),le=s(ie,4);return A=le[0],q=le[1],K=le[2],te=le[3],Q.call(this,function(){return V.editor.formatLine(A,q,K)},te,A,0)}},{key:"formatText",value:function(A,q,M,ee,te){var V=this,K=void 0,ie=Y(A,q,M,ee,te),le=s(ie,4);return A=le[0],q=le[1],K=le[2],te=le[3],Q.call(this,function(){return V.editor.formatText(A,q,K)},te,A,0)}},{key:"getBounds",value:function(A){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,M=void 0;typeof A=="number"?M=this.selection.getBounds(A,q):M=this.selection.getBounds(A.index,A.length);var ee=this.container.getBoundingClientRect();return{bottom:M.bottom-ee.top,height:M.height,left:M.left-ee.left,right:M.right-ee.left,top:M.top-ee.top,width:M.width}}},{key:"getContents",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-A,M=Y(A,q),ee=s(M,2);return A=ee[0],q=ee[1],this.editor.getContents(A,q)}},{key:"getFormat",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof A=="number"?this.editor.getFormat(A,q):this.editor.getFormat(A.index,A.length)}},{key:"getIndex",value:function(A){return A.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(A){return this.scroll.leaf(A)}},{key:"getLine",value:function(A){return this.scroll.line(A)}},{key:"getLines",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof A!="number"?this.scroll.lines(A.index,A.length):this.scroll.lines(A,q)}},{key:"getModule",value:function(A){return this.theme.modules[A]}},{key:"getSelection",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return A&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-A,M=Y(A,q),ee=s(M,2);return A=ee[0],q=ee[1],this.editor.getText(A,q)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(A,q,M){var ee=this,te=arguments.length>3&&arguments[3]!==void 0?arguments[3]:$.sources.API;return Q.call(this,function(){return ee.editor.insertEmbed(A,q,M)},te,A)}},{key:"insertText",value:function(A,q,M,ee,te){var V=this,K=void 0,ie=Y(A,0,M,ee,te),le=s(ie,4);return A=le[0],K=le[2],te=le[3],Q.call(this,function(){return V.editor.insertText(A,q,K)},te,A,q.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(A,q,M){this.clipboard.dangerouslyPasteHTML(A,q,M)}},{key:"removeFormat",value:function(A,q,M){var ee=this,te=Y(A,q,M),V=s(te,4);return A=V[0],q=V[1],M=V[3],Q.call(this,function(){return ee.editor.removeFormat(A,q)},M,A)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(A){var q=this,M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:m.default.sources.API;return Q.call(this,function(){A=new v.default(A);var ee=q.getLength(),te=q.editor.deleteText(0,ee),V=q.editor.applyDelta(A),K=V.ops[V.ops.length-1];K!=null&&typeof K.insert=="string"&&K.insert[K.insert.length-1]===`
135`&&(q.editor.deleteText(q.getLength()-1,1),V.delete(1));var ie=te.compose(V);return ie},M)}},{key:"setSelection",value:function(A,q,M){if(A==null)this.selection.setRange(null,q||$.sources.API);else{var ee=Y(A,q,M),te=s(ee,4);A=te[0],q=te[1],M=te[3],this.selection.setRange(new x.Range(A,q),M),M!==m.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(A){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:m.default.sources.API,M=new v.default().insert(A);return this.setContents(M,q)}},{key:"update",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:m.default.sources.USER,q=this.scroll.update(A);return this.selection.update(A),q}},{key:"updateContents",value:function(A){var q=this,M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:m.default.sources.API;return Q.call(this,function(){return A=new v.default(A),q.editor.applyDelta(A,M)},M,!0)}}]),$})();z.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},z.events=m.default.events,z.sources=m.default.sources,z.version="1.3.7",z.imports={delta:v.default,parchment:b.default,"core/module":y.default,"core/theme":B.default};function H($,T){if(T=(0,O.default)(!0,{container:$,modules:{clipboard:!0,keyboard:!0,history:!0}},T),!T.theme||T.theme===z.DEFAULTS.theme)T.theme=B.default;else if(T.theme=z.import("themes/"+T.theme),T.theme==null)throw new Error("Invalid theme "+T.theme+". Did you register it?");var A=(0,O.default)(!0,{},T.theme.DEFAULTS);[A,T].forEach(function(ee){ee.modules=ee.modules||{},Object.keys(ee.modules).forEach(function(te){ee.modules[te]===!0&&(ee.modules[te]={})})});var q=Object.keys(A.modules).concat(Object.keys(T.modules)),M=q.reduce(function(ee,te){var V=z.import("modules/"+te);return V==null?F.error("Cannot load "+te+" module. Are you sure you registered it?"):ee[te]=V.DEFAULTS||{},ee},{});return T.modules!=null&&T.modules.toolbar&&T.modules.toolbar.constructor!==Object&&(T.modules.toolbar={container:T.modules.toolbar}),T=(0,O.default)(!0,{},z.DEFAULTS,{modules:M},A,T),["bounds","container","scrollingContainer"].forEach(function(ee){typeof T[ee]=="string"&&(T[ee]=document.querySelector(T[ee]))}),T.modules=Object.keys(T.modules).reduce(function(ee,te){return T.modules[te]&&(ee[te]=T.modules[te]),ee},{}),T}function Q($,T,A,q){if(this.options.strict&&!this.isEnabled()&&T===m.default.sources.USER)return new v.default;var M=A==null?null:this.getSelection(),ee=this.editor.delta,te=$();if(M!=null&&(A===!0&&(A=M.index),q==null?M=X(M,te,T):q!==0&&(M=X(M,A,q,T)),this.setSelection(M,m.default.sources.SILENT)),te.length()>0){var V,K=[m.default.events.TEXT_CHANGE,te,ee,T];if((V=this.emitter).emit.apply(V,[m.default.events.EDITOR_CHANGE].concat(K)),T!==m.default.sources.SILENT){var ie;(ie=this.emitter).emit.apply(ie,K)}}return te}function Y($,T,A,q,M){var ee={};return typeof $.index=="number"&&typeof $.length=="number"?typeof T!="number"?(M=q,q=A,A=T,T=$.length,$=$.index):(T=$.length,$=$.index):typeof T!="number"&&(M=q,q=A,A=T,T=0),(typeof A>"u"?"undefined":a(A))==="object"?(ee=A,M=q):typeof A=="string"&&(q!=null?ee[A]=q:M=A),M=M||m.default.sources.API,[$,T,ee,M]}function X($,T,A,q){if($==null)return null;var M=void 0,ee=void 0;if(T instanceof v.default){var te=[$.index,$.index+$.length].map(function(le){return T.transformPosition(le,q!==m.default.sources.USER)}),V=s(te,2);M=V[0],ee=V[1]}else{var K=[$.index,$.index+$.length].map(function(le){return le<T||le===T&&q===m.default.sources.USER?le:A>=0?le+A:Math.max(T,le+A)}),ie=s(K,2);M=ie[0],ee=ie[1]}return new x.Range(M,ee-M)}i.expandConfig=H,i.overload=Y,i.default=z}),(function(n,i,l){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function g(b,x){for(var _=0;_<x.length;_++){var E=x[_];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(b,E.key,E)}}return function(b,x,_){return x&&g(b.prototype,x),_&&g(b,_),b}})(),s=function g(b,x,_){b===null&&(b=Function.prototype);var E=Object.getOwnPropertyDescriptor(b,x);if(E===void 0){var O=Object.getPrototypeOf(b);return O===null?void 0:g(O,x,_)}else{if("value"in E)return E.value;var R=E.get;return R===void 0?void 0:R.call(_)}},u=l(7),h=f(u),v=l(0),p=f(v);function f(g){return g&&g.__esModule?g:{default:g}}function d(g,b){if(!(g instanceof b))throw new TypeError("Cannot call a class as a function")}function m(g,b){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:g}function S(g,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);g.prototype=Object.create(b&&b.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(g,b):g.__proto__=b)}var y=(function(g){S(b,g);function b(){return d(this,b),m(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return a(b,[{key:"formatAt",value:function(_,E,O,R){if(b.compare(this.statics.blotName,O)<0&&p.default.query(O,p.default.Scope.BLOT)){var I=this.isolate(_,E);R&&I.wrap(O,R)}else s(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"formatAt",this).call(this,_,E,O,R)}},{key:"optimize",value:function(_){if(s(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"optimize",this).call(this,_),this.parent instanceof b&&b.compare(this.statics.blotName,this.parent.statics.blotName)>0){var E=this.parent.isolate(this.offset(),this.length());this.moveChildren(E),E.wrap(this)}}}],[{key:"compare",value:function(_,E){var O=b.order.indexOf(_),R=b.order.indexOf(E);return O>=0||R>=0?O-R:_===E?0:_<E?-1:1}}]),b})(p.default.Inline);y.allowedChildren=[y,p.default.Embed,h.default],y.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],i.default=y}),(function(n,i,l){Object.defineProperty(i,"__esModule",{value:!0});var a=l(0),s=u(a);function u(d){return d&&d.__esModule?d:{default:d}}function h(d,m){if(!(d instanceof m))throw new TypeError("Cannot call a class as a function")}function v(d,m){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:d}function p(d,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);d.prototype=Object.create(m&&m.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(d,m):d.__proto__=m)}var f=(function(d){p(m,d);function m(){return h(this,m),v(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return m})(s.default.Text);i.default=f}),(function(n,i,l){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function x(_,E){for(var O=0;O<E.length;O++){var R=E[O];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(_,R.key,R)}}return function(_,E,O){return E&&x(_.prototype,E),O&&x(_,O),_}})(),s=function x(_,E,O){_===null&&(_=Function.prototype);var R=Object.getOwnPropertyDescriptor(_,E);if(R===void 0){var I=Object.getPrototypeOf(_);return I===null?void 0:x(I,E,O)}else{if("value"in R)return R.value;var j=R.get;return j===void 0?void 0:j.call(O)}},u=l(54),h=f(u),v=l(10),p=f(v);function f(x){return x&&x.__esModule?x:{default:x}}function d(x,_){if(!(x instanceof _))throw new TypeError("Cannot call a class as a function")}function m(x,_){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:x}function S(x,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);x.prototype=Object.create(_&&_.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(x,_):x.__proto__=_)}var y=(0,p.default)("quill:events"),g=["selectionchange","mousedown","mouseup","click"];g.forEach(function(x){document.addEventListener(x,function(){for(var _=arguments.length,E=Array(_),O=0;O<_;O++)E[O]=arguments[O];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(R){if(R.__quill&&R.__quill.emitter){var I;(I=R.__quill.emitter).handleDOM.apply(I,E)}})})});var b=(function(x){S(_,x);function _(){d(this,_);var E=m(this,(_.__proto__||Object.getPrototypeOf(_)).call(this));return E.listeners={},E.on("error",y.error),E}return a(_,[{key:"emit",value:function(){y.log.apply(y,arguments),s(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(O){for(var R=arguments.length,I=Array(R>1?R-1:0),j=1;j<R;j++)I[j-1]=arguments[j];(this.listeners[O.type]||[]).forEach(function(B){var L=B.node,P=B.handler;(O.target===L||L.contains(O.target))&&P.apply(void 0,[O].concat(I))})}},{key:"listenDOM",value:function(O,R,I){this.listeners[O]||(this.listeners[O]=[]),this.listeners[O].push({node:R,handler:I})}}]),_})(h.default);b.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},b.sources={API:"api",SILENT:"silent",USER:"user"},i.default=b}),(function(n,i,l){Object.defineProperty(i,"__esModule",{value:!0});function a(u,h){if(!(u instanceof h))throw new TypeError("Cannot call a class as a function")}var s=function u(h){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};a(this,u),this.quill=h,this.options=v};s.DEFAULTS={},i.default=s}),(function(n,i,l){Object.defineProperty(i,"__esModule",{value:!0});var a=["error","warn","log","info"],s="warn";function u(v){if(a.indexOf(v)<=a.indexOf(s)){for(var p,f=arguments.length,d=Array(f>1?f-1:0),m=1;m<f;m++)d[m-1]=arguments[m];(p=console)[v].apply(p,d)}}function h(v){return a.reduce(function(p,f){return p[f]=u.bind(console,f,v),p},{})}u.level=h.level=function(v){s=v},i.default=h}),(function(n,i,l){var a=Array.prototype.slice,s=l(52),u=l(53),h=n.exports=function(d,m,S){return S||(S={}),d===m?!0:d instanceof Date&&m instanceof Date?d.getTime()===m.getTime():!d||!m||typeof d!="object"&&typeof m!="object"?S.strict?d===m:d==m:f(d,m,S)};function v(d){return d==null}function p(d){return!(!d||typeof d!="object"||typeof d.length!="number"||typeof d.copy!="function"||typeof d.slice!="function"||d.length>0&&typeof d[0]!="number")}function f(d,m,S){var y,g;if(v(d)||v(m)||d.prototype!==m.prototype)return!1;if(u(d))return u(m)?(d=a.call(d),m=a.call(m),h(d,m,S)):!1;if(p(d)){if(!p(m)||d.length!==m.length)return!1;for(y=0;y<d.length;y++)if(d[y]!==m[y])return!1;return!0}try{var b=s(d),x=s(m)}catch{return!1}if(b.length!=x.length)return!1;for(b.sort(),x.sort(),y=b.length-1;y>=0;y--)if(b[y]!=x[y])return!1;for(y=b.length-1;y>=0;y--)if(g=b[y],!h(d[g],m[g],S))return!1;return typeof d==typeof m}}),(function(n,i,l){Object.defineProperty(i,"__esModule",{value:!0});var a=l(1),s=(function(){function u(h,v,p){p===void 0&&(p={}),this.attrName=h,this.keyName=v;var f=a.Scope.TYPE&a.Scope.ATTRIBUTE;p.scope!=null?this.scope=p.scope&a.Scope.LEVEL|f:this.scope=a.Scope.ATTRIBUTE,p.whitelist!=null&&(this.whitelist=p.whitelist)}return u.keys=function(h){return[].map.call(h.attributes,function(v){return v.name})},u.prototype.add=function(h,v){return this.canAdd(h,v)?(h.setAttribute(this.keyName,v),!0):!1},u.prototype.canAdd=function(h,v){var p=a.query(h,a.Scope.BLOT&(this.scope|a.Scope.TYPE));return p==null?!1:this.whitelist==null?!0:typeof v=="string"?this.whitelist.indexOf(v.replace(/["']/g,""))>-1:this.whitelist.indexOf(v)>-1},u.prototype.remove=function(h){h.removeAttribute(this.keyName)},u.prototype.value=function(h){var v=h.getAttribute(this.keyName);return this.canAdd(h,v)&&v?v:""},u})();i.default=s}),(function(n,i,l){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.Code=void 0;var a=(function(){function j(B,L){var P=[],N=!0,F=!1,z=void 0;try{for(var H=B[Symbol.iterator](),Q;!(N=(Q=H.next()).done)&&(P.push(Q.value),!(L&&P.length===L));N=!0);}catch(Y){F=!0,z=Y}finally{try{!N&&H.return&&H.return()}finally{if(F)throw z}}return P}return function(B,L){if(Array.isArray(B))return B;if(Symbol.iterator in Object(B))return j(B,L);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),s=(function(){function j(B,L){for(var P=0;P<L.length;P++){var N=L[P];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(B,N.key,N)}}return function(B,L,P){return L&&j(B.prototype,L),P&&j(B,P),B}})(),u=function j(B,L,P){B===null&&(B=Function.prototype);var N=Object.getOwnPropertyDescriptor(B,L);if(N===void 0){var F=Object.getPrototypeOf(B);return F===null?void 0:j(F,L,P)}else{if("value"in N)return N.value;var z=N.get;return z===void 0?void 0:z.call(P)}},h=l(2),v=x(h),p=l(0),f=x(p),d=l(4),m=x(d),S=l(6),y=x(S),g=l(7),b=x(g);function x(j){return j&&j.__esModule?j:{default:j}}function _(j,B){if(!(j instanceof B))throw new TypeError("Cannot call a class as a function")}function E(j,B){if(!j)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return B&&(typeof B=="object"||typeof B=="function")?B:j}function O(j,B){if(typeof B!="function"&&B!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof B);j.prototype=Object.create(B&&B.prototype,{constructor:{value:j,enumerable:!1,writable:!0,configurable:!0}}),B&&(Object.setPrototypeOf?Object.setPrototypeOf(j,B):j.__proto__=B)}var R=(function(j){O(B,j);function B(){return _(this,B),E(this,(B.__proto__||Object.getPrototypeOf(B)).apply(this,arguments))}return B})(y.default);R.blotName="code",R.tagName="CODE";var I=(function(j){O(B,j);function B(){return _(this,B),E(this,(B.__proto__||Object.getPrototypeOf(B)).apply(this,arguments))}return s(B,[{key:"delta",value:function(){var P=this,N=this.domNode.textContent;return N.endsWith(`
136`)&&(N=N.slice(0,-1)),N.split(`
137`).reduce(function(F,z){return F.insert(z).insert(`
138`,P.formats())},new v.default)}},{key:"format",value:function(P,N){if(!(P===this.statics.blotName&&N)){var F=this.descendant(b.default,this.length()-1),z=a(F,1),H=z[0];H!=null&&H.deleteAt(H.length()-1,1),u(B.prototype.__proto__||Object.getPrototypeOf(B.prototype),"format",this).call(this,P,N)}}},{key:"formatAt",value:function(P,N,F,z){if(N!==0&&!(f.default.query(F,f.default.Scope.BLOCK)==null||F===this.statics.blotName&&z===this.statics.formats(this.domNode))){var H=this.newlineIndex(P);if(!(H<0||H>=P+N)){var Q=this.newlineIndex(P,!0)+1,Y=H-Q+1,X=this.isolate(Q,Y),$=X.next;X.format(F,z),$ instanceof B&&$.formatAt(0,P-Q+N-Y,F,z)}}}},{key:"insertAt",value:function(P,N,F){if(F==null){var z=this.descendant(b.default,P),H=a(z,2),Q=H[0],Y=H[1];Q.insertAt(Y,N)}}},{key:"length",value:function(){var P=this.domNode.textContent.length;return this.domNode.textContent.endsWith(`
139`)?P:P+1}},{key:"newlineIndex",value:function(P){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(N)return this.domNode.textContent.slice(0,P).lastIndexOf(`
140`);var F=this.domNode.textContent.slice(P).indexOf(`
141`);return F>-1?P+F:-1}},{key:"optimize",value:function(P){this.domNode.textContent.endsWith(`
142`)||this.appendChild(f.default.create("text",`
143`)),u(B.prototype.__proto__||Object.getPrototypeOf(B.prototype),"optimize",this).call(this,P);var N=this.next;N!=null&&N.prev===this&&N.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===N.statics.formats(N.domNode)&&(N.optimize(P),N.moveChildren(this),N.remove())}},{key:"replace",value:function(P){u(B.prototype.__proto__||Object.getPrototypeOf(B.prototype),"replace",this).call(this,P),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(N){var F=f.default.find(N);F==null?N.parentNode.removeChild(N):F instanceof f.default.Embed?F.remove():F.unwrap()})}}],[{key:"create",value:function(P){var N=u(B.__proto__||Object.getPrototypeOf(B),"create",this).call(this,P);return N.setAttribute("spellcheck",!1),N}},{key:"formats",value:function(){return!0}}]),B})(m.default);I.blotName="code-block",I.tagName="PRE",I.TAB="  ",i.Code=R,i.default=I}),(function(n,i,l){Object.defineProperty(i,"__esModule",{value:!0});var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},s=(function(){function $(T,A){var q=[],M=!0,ee=!1,te=void 0;try{for(var V=T[Symbol.iterator](),K;!(M=(K=V.next()).done)&&(q.push(K.value),!(A&&q.length===A));M=!0);}catch(ie){ee=!0,te=ie}finally{try{!M&&V.return&&V.return()}finally{if(ee)throw te}}return q}return function(T,A){if(Array.isArray(T))return T;if(Symbol.iterator in Object(T))return $(T,A);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),u=(function(){function $(T,A){for(var q=0;q<A.length;q++){var M=A[q];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(T,M.key,M)}}return function(T,A,q){return A&&$(T.prototype,A),q&&$(T,q),T}})(),h=l(2),v=N(h),p=l(20),f=N(p),d=l(0),m=N(d),S=l(13),y=N(S),g=l(24),b=N(g),x=l(4),_=N(x),E=l(16),O=N(E),R=l(21),I=N(R),j=l(11),B=N(j),L=l(3),P=N(L);function N($){return $&&$.__esModule?$:{default:$}}function F($,T,A){return T in $?Object.defineProperty($,T,{value:A,enumerable:!0,configurable:!0,writable:!0}):$[T]=A,$}function z($,T){if(!($ instanceof T))throw new TypeError("Cannot call a class as a function")}var H=/^[ -~]*$/,Q=(function(){function $(T){z(this,$),this.scroll=T,this.delta=this.getDelta()}return u($,[{key:"applyDelta",value:function(A){var q=this,M=!1;this.scroll.update();var ee=this.scroll.length();return this.scroll.batchStart(),A=X(A),A.reduce(function(te,V){var K=V.retain||V.delete||V.insert.length||1,ie=V.attributes||{};if(V.insert!=null){if(typeof V.insert=="string"){var le=V.insert;le.endsWith(`
144`)&&M&&(M=!1,le=le.slice(0,-1)),te>=ee&&!le.endsWith(`
145`)&&(M=!0),q.scroll.insertAt(te,le);var ce=q.scroll.line(te),we=s(ce,2),Oe=we[0],Re=we[1],Fe=(0,P.default)({},(0,x.bubbleFormats)(Oe));if(Oe instanceof _.default){var $e=Oe.descendant(m.default.Leaf,Re),lt=s($e,1),Ze=lt[0];Fe=(0,P.default)(Fe,(0,x.bubbleFormats)(Ze))}ie=f.default.attributes.diff(Fe,ie)||{}}else if(a(V.insert)==="object"){var he=Object.keys(V.insert)[0];if(he==null)return te;q.scroll.insertAt(te,he,V.insert[he])}ee+=K}return Object.keys(ie).forEach(function(pe){q.scroll.formatAt(te,K,pe,ie[pe])}),te+K},0),A.reduce(function(te,V){return typeof V.delete=="number"?(q.scroll.deleteAt(te,V.delete),te):te+(V.retain||V.insert.length||1)},0),this.scroll.batchEnd(),this.update(A)}},{key:"deleteText",value:function(A,q){return this.scroll.deleteAt(A,q),this.update(new v.default().retain(A).delete(q))}},{key:"formatLine",value:function(A,q){var M=this,ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(ee).forEach(function(te){if(!(M.scroll.whitelist!=null&&!M.scroll.whitelist[te])){var V=M.scroll.lines(A,Math.max(q,1)),K=q;V.forEach(function(ie){var le=ie.length();if(!(ie instanceof y.default))ie.format(te,ee[te]);else{var ce=A-ie.offset(M.scroll),we=ie.newlineIndex(ce+K)-ce+1;ie.formatAt(ce,we,te,ee[te])}K-=le})}}),this.scroll.optimize(),this.update(new v.default().retain(A).retain(q,(0,I.default)(ee)))}},{key:"formatText",value:function(A,q){var M=this,ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(ee).forEach(function(te){M.scroll.formatAt(A,q,te,ee[te])}),this.update(new v.default().retain(A).retain(q,(0,I.default)(ee)))}},{key:"getContents",value:function(A,q){return this.delta.slice(A,A+q)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(A,q){return A.concat(q.delta())},new v.default)}},{key:"getFormat",value:function(A){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,M=[],ee=[];q===0?this.scroll.path(A).forEach(function(V){var K=s(V,1),ie=K[0];ie instanceof _.default?M.push(ie):ie instanceof m.default.Leaf&&ee.push(ie)}):(M=this.scroll.lines(A,q),ee=this.scroll.descendants(m.default.Leaf,A,q));var te=[M,ee].map(function(V){if(V.length===0)return{};for(var K=(0,x.bubbleFormats)(V.shift());Object.keys(K).length>0;){var ie=V.shift();if(ie==null)return K;K=Y((0,x.bubbleFormats)(ie),K)}return K});return P.default.apply(P.default,te)}},{key:"getText",value:function(A,q){return this.getContents(A,q).filter(function(M){return typeof M.insert=="string"}).map(function(M){return M.insert}).join("")}},{key:"insertEmbed",value:function(A,q,M){return this.scroll.insertAt(A,q,M),this.update(new v.default().retain(A).insert(F({},q,M)))}},{key:"insertText",value:function(A,q){var M=this,ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return q=q.replace(/\r\n/g,`
146`).replace(/\r/g,`
147`),this.scroll.insertAt(A,q),Object.keys(ee).forEach(function(te){M.scroll.formatAt(A,q.length,te,ee[te])}),this.update(new v.default().retain(A).insert(q,(0,I.default)(ee)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var A=this.scroll.children.head;return A.statics.blotName!==_.default.blotName||A.children.length>1?!1:A.children.head instanceof O.default}},{key:"removeFormat",value:function(A,q){var M=this.getText(A,q),ee=this.scroll.line(A+q),te=s(ee,2),V=te[0],K=te[1],ie=0,le=new v.default;V!=null&&(V instanceof y.default?ie=V.newlineIndex(K)-K+1:ie=V.length()-K,le=V.delta().slice(K,K+ie-1).insert(`
148`));var ce=this.getContents(A,q+ie),we=ce.diff(new v.default().insert(M).concat(le)),Oe=new v.default().retain(A).concat(we);return this.applyDelta(Oe)}},{key:"update",value:function(A){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,ee=this.delta;if(q.length===1&&q[0].type==="characterData"&&q[0].target.data.match(H)&&m.default.find(q[0].target)){var te=m.default.find(q[0].target),V=(0,x.bubbleFormats)(te),K=te.offset(this.scroll),ie=q[0].oldValue.replace(b.default.CONTENTS,""),le=new v.default().insert(ie),ce=new v.default().insert(te.value()),we=new v.default().retain(K).concat(le.diff(ce,M));A=we.reduce(function(Oe,Re){return Re.insert?Oe.insert(Re.insert,V):Oe.push(Re)},new v.default),this.delta=ee.compose(A)}else this.delta=this.getDelta(),(!A||!(0,B.default)(ee.compose(A),this.delta))&&(A=ee.diff(this.delta,M));return A}}]),$})();function Y($,T){return Object.keys(T).reduce(function(A,q){return $[q]==null||(T[q]===$[q]?A[q]=T[q]:Array.isArray(T[q])?T[q].indexOf($[q])<0&&(A[q]=T[q].concat([$[q]])):A[q]=[T[q],$[q]]),A},{})}function X($){return $.reduce(function(T,A){if(A.insert===1){var q=(0,I.default)(A.attributes);return delete q.image,T.insert({image:A.attributes.image},q)}if(A.attributes!=null&&(A.attributes.list===!0||A.attributes.bullet===!0)&&(A=(0,I.default)(A),A.attributes.list?A.attributes.list="ordered":(A.attributes.list="bullet",delete A.attributes.bullet)),typeof A.insert=="string"){var M=A.insert.replace(/\r\n/g,`
149`).replace(/\r/g,`
150`);return T.insert(M,A.attributes)}return T.push(A)},new v.default)}i.default=Q}),(function(n,i,l){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.Range=void 0;var a=(function(){function j(B,L){var P=[],N=!0,F=!1,z=void 0;try{for(var H=B[Symbol.iterator](),Q;!(N=(Q=H.next()).done)&&(P.push(Q.value),!(L&&P.length===L));N=!0);}catch(Y){F=!0,z=Y}finally{try{!N&&H.return&&H.return()}finally{if(F)throw z}}return P}return function(B,L){if(Array.isArray(B))return B;if(Symbol.iterator in Object(B))return j(B,L);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),s=(function(){function j(B,L){for(var P=0;P<L.length;P++){var N=L[P];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(B,N.key,N)}}return function(B,L,P){return L&&j(B.prototype,L),P&&j(B,P),B}})(),u=l(0),h=b(u),v=l(21),p=b(v),f=l(11),d=b(f),m=l(8),S=b(m),y=l(10),g=b(y);function b(j){return j&&j.__esModule?j:{default:j}}function x(j){if(Array.isArray(j)){for(var B=0,L=Array(j.length);B<j.length;B++)L[B]=j[B];return L}else return Array.from(j)}function _(j,B){if(!(j instanceof B))throw new TypeError("Cannot call a class as a function")}var E=(0,g.default)("quill:selection"),O=function j(B){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;_(this,j),this.index=B,this.length=L},R=(function(){function j(B,L){var P=this;_(this,j),this.emitter=L,this.scroll=B,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=h.default.create("cursor",this),this.lastRange=this.savedRange=new O(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){P.mouseDown||setTimeout(P.update.bind(P,S.default.sources.USER),1)}),this.emitter.on(S.default.events.EDITOR_CHANGE,function(N,F){N===S.default.events.TEXT_CHANGE&&F.length()>0&&P.update(S.default.sources.SILENT)}),this.emitter.on(S.default.events.SCROLL_BEFORE_UPDATE,function(){if(P.hasFocus()){var N=P.getNativeRange();N!=null&&N.start.node!==P.cursor.textNode&&P.emitter.once(S.default.events.SCROLL_UPDATE,function(){try{P.setNativeRange(N.start.node,N.start.offset,N.end.node,N.end.offset)}catch{}})}}),this.emitter.on(S.default.events.SCROLL_OPTIMIZE,function(N,F){if(F.range){var z=F.range,H=z.startNode,Q=z.startOffset,Y=z.endNode,X=z.endOffset;P.setNativeRange(H,Q,Y,X)}}),this.update(S.default.sources.SILENT)}return s(j,[{key:"handleComposition",value:function(){var L=this;this.root.addEventListener("compositionstart",function(){L.composing=!0}),this.root.addEventListener("compositionend",function(){if(L.composing=!1,L.cursor.parent){var P=L.cursor.restore();if(!P)return;setTimeout(function(){L.setNativeRange(P.startNode,P.startOffset,P.endNode,P.endOffset)},1)}})}},{key:"handleDragging",value:function(){var L=this;this.emitter.listenDOM("mousedown",document.body,function(){L.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){L.mouseDown=!1,L.update(S.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(L,P){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[L])){this.scroll.update();var N=this.getNativeRange();if(!(N==null||!N.native.collapsed||h.default.query(L,h.default.Scope.BLOCK))){if(N.start.node!==this.cursor.textNode){var F=h.default.find(N.start.node,!1);if(F==null)return;if(F instanceof h.default.Leaf){var z=F.split(N.start.offset);F.parent.insertBefore(this.cursor,z)}else F.insertBefore(this.cursor,N.start.node);this.cursor.attach()}this.cursor.format(L,P),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(L){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,N=this.scroll.length();L=Math.min(L,N-1),P=Math.min(L+P,N-1)-L;var F=void 0,z=this.scroll.leaf(L),H=a(z,2),Q=H[0],Y=H[1];if(Q==null)return null;var X=Q.position(Y,!0),$=a(X,2);F=$[0],Y=$[1];var T=document.createRange();if(P>0){T.setStart(F,Y);var A=this.scroll.leaf(L+P),q=a(A,2);if(Q=q[0],Y=q[1],Q==null)return null;var M=Q.position(Y,!0),ee=a(M,2);return F=ee[0],Y=ee[1],T.setEnd(F,Y),T.getBoundingClientRect()}else{var te="left",V=void 0;return F instanceof Text?(Y<F.data.length?(T.setStart(F,Y),T.setEnd(F,Y+1)):(T.setStart(F,Y-1),T.setEnd(F,Y),te="right"),V=T.getBoundingClientRect()):(V=Q.domNode.getBoundingClientRect(),Y>0&&(te="right")),{bottom:V.top+V.height,height:V.height,left:V[te],right:V[te],top:V.top,width:0}}}},{key:"getNativeRange",value:function(){var L=document.getSelection();if(L==null||L.rangeCount<=0)return null;var P=L.getRangeAt(0);if(P==null)return null;var N=this.normalizeNative(P);return E.info("getNativeRange",N),N}},{key:"getRange",value:function(){var L=this.getNativeRange();if(L==null)return[null,null];var P=this.normalizedToRange(L);return[P,L]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(L){var P=this,N=[[L.start.node,L.start.offset]];L.native.collapsed||N.push([L.end.node,L.end.offset]);var F=N.map(function(Q){var Y=a(Q,2),X=Y[0],$=Y[1],T=h.default.find(X,!0),A=T.offset(P.scroll);return $===0?A:T instanceof h.default.Container?A+T.length():A+T.index(X,$)}),z=Math.min(Math.max.apply(Math,x(F)),this.scroll.length()-1),H=Math.min.apply(Math,[z].concat(x(F)));return new O(H,z-H)}},{key:"normalizeNative",value:function(L){if(!I(this.root,L.startContainer)||!L.collapsed&&!I(this.root,L.endContainer))return null;var P={start:{node:L.startContainer,offset:L.startOffset},end:{node:L.endContainer,offset:L.endOffset},native:L};return[P.start,P.end].forEach(function(N){for(var F=N.node,z=N.offset;!(F instanceof Text)&&F.childNodes.length>0;)if(F.childNodes.length>z)F=F.childNodes[z],z=0;else if(F.childNodes.length===z)F=F.lastChild,z=F instanceof Text?F.data.length:F.childNodes.length+1;else break;N.node=F,N.offset=z}),P}},{key:"rangeToNative",value:function(L){var P=this,N=L.collapsed?[L.index]:[L.index,L.index+L.length],F=[],z=this.scroll.length();return N.forEach(function(H,Q){H=Math.min(z-1,H);var Y=void 0,X=P.scroll.leaf(H),$=a(X,2),T=$[0],A=$[1],q=T.position(A,Q!==0),M=a(q,2);Y=M[0],A=M[1],F.push(Y,A)}),F.length<2&&(F=F.concat(F)),F}},{key:"scrollIntoView",value:function(L){var P=this.lastRange;if(P!=null){var N=this.getBounds(P.index,P.length);if(N!=null){var F=this.scroll.length()-1,z=this.scroll.line(Math.min(P.index,F)),H=a(z,1),Q=H[0],Y=Q;if(P.length>0){var X=this.scroll.line(Math.min(P.index+P.length,F)),$=a(X,1);Y=$[0]}if(!(Q==null||Y==null)){var T=L.getBoundingClientRect();N.top<T.top?L.scrollTop-=T.top-N.top:N.bottom>T.bottom&&(L.scrollTop+=N.bottom-T.bottom)}}}}},{key:"setNativeRange",value:function(L,P){var N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:L,F=arguments.length>3&&arguments[3]!==void 0?arguments[3]:P,z=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(E.info("setNativeRange",L,P,N,F),!(L!=null&&(this.root.parentNode==null||L.parentNode==null||N.parentNode==null))){var H=document.getSelection();if(H!=null)if(L!=null){this.hasFocus()||this.root.focus();var Q=(this.getNativeRange()||{}).native;if(Q==null||z||L!==Q.startContainer||P!==Q.startOffset||N!==Q.endContainer||F!==Q.endOffset){L.tagName=="BR"&&(P=[].indexOf.call(L.parentNode.childNodes,L),L=L.parentNode),N.tagName=="BR"&&(F=[].indexOf.call(N.parentNode.childNodes,N),N=N.parentNode);var Y=document.createRange();Y.setStart(L,P),Y.setEnd(N,F),H.removeAllRanges(),H.addRange(Y)}}else H.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(L){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:S.default.sources.API;if(typeof P=="string"&&(N=P,P=!1),E.info("setRange",L),L!=null){var F=this.rangeToNative(L);this.setNativeRange.apply(this,x(F).concat([P]))}else this.setNativeRange(null);this.update(N)}},{key:"update",value:function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:S.default.sources.USER,P=this.lastRange,N=this.getRange(),F=a(N,2),z=F[0],H=F[1];if(this.lastRange=z,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,d.default)(P,this.lastRange)){var Q;!this.composing&&H!=null&&H.native.collapsed&&H.start.node!==this.cursor.textNode&&this.cursor.restore();var Y=[S.default.events.SELECTION_CHANGE,(0,p.default)(this.lastRange),(0,p.default)(P),L];if((Q=this.emitter).emit.apply(Q,[S.default.events.EDITOR_CHANGE].concat(Y)),L!==S.default.sources.SILENT){var X;(X=this.emitter).emit.apply(X,Y)}}}}]),j})();function I(j,B){try{B.parentNode}catch{return!1}return B instanceof Text&&(B=B.parentNode),j.contains(B)}i.Range=O,i.default=R}),(function(n,i,l){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function S(y,g){for(var b=0;b<g.length;b++){var x=g[b];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(y,x.key,x)}}return function(y,g,b){return g&&S(y.prototype,g),b&&S(y,b),y}})(),s=function S(y,g,b){y===null&&(y=Function.prototype);var x=Object.getOwnPropertyDescriptor(y,g);if(x===void 0){var _=Object.getPrototypeOf(y);return _===null?void 0:S(_,g,b)}else{if("value"in x)return x.value;var E=x.get;return E===void 0?void 0:E.call(b)}},u=l(0),h=v(u);function v(S){return S&&S.__esModule?S:{default:S}}function p(S,y){if(!(S instanceof y))throw new TypeError("Cannot call a class as a function")}function f(S,y){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:S}function d(S,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);S.prototype=Object.create(y&&y.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(S,y):S.__proto__=y)}var m=(function(S){d(y,S);function y(){return p(this,y),f(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return a(y,[{key:"insertInto",value:function(b,x){b.children.length===0?s(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"insertInto",this).call(this,b,x):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),y})(h.default.Embed);m.blotName="break",m.tagName="BR",i.default=m}),(function(n,i,l){var a=this&&this.__extends||(function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,m){d.__proto__=m}||function(d,m){for(var S in m)m.hasOwnProperty(S)&&(d[S]=m[S])};return function(d,m){f(d,m);function S(){this.constructor=d}d.prototype=m===null?Object.create(m):(S.prototype=m.prototype,new S)}})();Object.defineProperty(i,"__esModule",{value:!0});var s=l(44),u=l(30),h=l(1),v=(function(f){a(d,f);function d(m){var S=f.call(this,m)||this;return S.build(),S}return d.prototype.appendChild=function(m){this.insertBefore(m)},d.prototype.attach=function(){f.prototype.attach.call(this),this.children.forEach(function(m){m.attach()})},d.prototype.build=function(){var m=this;this.children=new s.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(S){try{var y=p(S);m.insertBefore(y,m.children.head||void 0)}catch(g){if(g instanceof h.ParchmentError)return;throw g}})},d.prototype.deleteAt=function(m,S){if(m===0&&S===this.length())return this.remove();this.children.forEachAt(m,S,function(y,g,b){y.deleteAt(g,b)})},d.prototype.descendant=function(m,S){var y=this.children.find(S),g=y[0],b=y[1];return m.blotName==null&&m(g)||m.blotName!=null&&g instanceof m?[g,b]:g instanceof d?g.descendant(m,b):[null,-1]},d.prototype.descendants=function(m,S,y){S===void 0&&(S=0),y===void 0&&(y=Number.MAX_VALUE);var g=[],b=y;return this.children.forEachAt(S,y,function(x,_,E){(m.blotName==null&&m(x)||m.blotName!=null&&x instanceof m)&&g.push(x),x instanceof d&&(g=g.concat(x.descendants(m,_,b))),b-=E}),g},d.prototype.detach=function(){this.children.forEach(function(m){m.detach()}),f.prototype.detach.call(this)},d.prototype.formatAt=function(m,S,y,g){this.children.forEachAt(m,S,function(b,x,_){b.formatAt(x,_,y,g)})},d.prototype.insertAt=function(m,S,y){var g=this.children.find(m),b=g[0],x=g[1];if(b)b.insertAt(x,S,y);else{var _=y==null?h.create("text",S):h.create(S,y);this.appendChild(_)}},d.prototype.insertBefore=function(m,S){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(y){return m instanceof y}))throw new h.ParchmentError("Cannot insert "+m.statics.blotName+" into "+this.statics.blotName);m.insertInto(this,S)},d.prototype.length=function(){return this.children.reduce(function(m,S){return m+S.length()},0)},d.prototype.moveChildren=function(m,S){this.children.forEach(function(y){m.insertBefore(y,S)})},d.prototype.optimize=function(m){if(f.prototype.optimize.call(this,m),this.children.length===0)if(this.statics.defaultChild!=null){var S=h.create(this.statics.defaultChild);this.appendChild(S),S.optimize(m)}else this.remove()},d.prototype.path=function(m,S){S===void 0&&(S=!1);var y=this.children.find(m,S),g=y[0],b=y[1],x=[[this,m]];return g instanceof d?x.concat(g.path(b,S)):(g!=null&&x.push([g,b]),x)},d.prototype.removeChild=function(m){this.children.remove(m)},d.prototype.replace=function(m){m instanceof d&&m.moveChildren(this),f.prototype.replace.call(this,m)},d.prototype.split=function(m,S){if(S===void 0&&(S=!1),!S){if(m===0)return this;if(m===this.length())return this.next}var y=this.clone();return this.parent.insertBefore(y,this.next),this.children.forEachAt(m,this.length(),function(g,b,x){g=g.split(b,S),y.appendChild(g)}),y},d.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},d.prototype.update=function(m,S){var y=this,g=[],b=[];m.forEach(function(x){x.target===y.domNode&&x.type==="childList"&&(g.push.apply(g,x.addedNodes),b.push.apply(b,x.removedNodes))}),b.forEach(function(x){if(!(x.parentNode!=null&&x.tagName!=="IFRAME"&&document.body.compareDocumentPosition(x)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var _=h.find(x);_!=null&&(_.domNode.parentNode==null||_.domNode.parentNode===y.domNode)&&_.detach()}}),g.filter(function(x){return x.parentNode==y.domNode}).sort(function(x,_){return x===_?0:x.compareDocumentPosition(_)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(x){var _=null;x.nextSibling!=null&&(_=h.find(x.nextSibling));var E=p(x);(E.next!=_||E.next==null)&&(E.parent!=null&&E.parent.removeChild(y),y.insertBefore(E,_||void 0))})},d})(u.default);function p(f){var d=h.find(f);if(d==null)try{d=h.create(f)}catch{d=h.create(h.Scope.INLINE),[].slice.call(f.childNodes).forEach(function(S){d.domNode.appendChild(S)}),f.parentNode&&f.parentNode.replaceChild(d.domNode,f),d.attach()}return d}i.default=v}),(function(n,i,l){var a=this&&this.__extends||(function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,m){d.__proto__=m}||function(d,m){for(var S in m)m.hasOwnProperty(S)&&(d[S]=m[S])};return function(d,m){f(d,m);function S(){this.constructor=d}d.prototype=m===null?Object.create(m):(S.prototype=m.prototype,new S)}})();Object.defineProperty(i,"__esModule",{value:!0});var s=l(12),u=l(31),h=l(17),v=l(1),p=(function(f){a(d,f);function d(m){var S=f.call(this,m)||this;return S.attributes=new u.default(S.domNode),S}return d.formats=function(m){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return m.tagName.toLowerCase()},d.prototype.format=function(m,S){var y=v.query(m);y instanceof s.default?this.attributes.attribute(y,S):S&&y!=null&&(m!==this.statics.blotName||this.formats()[m]!==S)&&this.replaceWith(m,S)},d.prototype.formats=function(){var m=this.attributes.values(),S=this.statics.formats(this.domNode);return S!=null&&(m[this.statics.blotName]=S),m},d.prototype.replaceWith=function(m,S){var y=f.prototype.replaceWith.call(this,m,S);return this.attributes.copy(y),y},d.prototype.update=function(m,S){var y=this;f.prototype.update.call(this,m,S),m.some(function(g){return g.target===y.domNode&&g.type==="attributes"})&&this.attributes.build()},d.prototype.wrap=function(m,S){var y=f.prototype.wrap.call(this,m,S);return y instanceof d&&y.statics.scope===this.statics.scope&&this.attributes.move(y),y},d})(h.default);i.default=p}),(function(n,i,l){var a=this&&this.__extends||(function(){var v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,f){p.__proto__=f}||function(p,f){for(var d in f)f.hasOwnProperty(d)&&(p[d]=f[d])};return function(p,f){v(p,f);function d(){this.constructor=p}p.prototype=f===null?Object.create(f):(d.prototype=f.prototype,new d)}})();Object.defineProperty(i,"__esModule",{value:!0});var s=l(30),u=l(1),h=(function(v){a(p,v);function p(){return v!==null&&v.apply(this,arguments)||this}return p.value=function(f){return!0},p.prototype.index=function(f,d){return this.domNode===f||this.domNode.compareDocumentPosition(f)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(d,1):-1},p.prototype.position=function(f,d){var m=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return f>0&&(m+=1),[this.parent.domNode,m]},p.prototype.value=function(){var f;return f={},f[this.statics.blotName]=this.statics.value(this.domNode)||!0,f},p.scope=u.Scope.INLINE_BLOT,p})(s.default);i.default=h}),(function(n,i,l){var a=l(11),s=l(3),u={attributes:{compose:function(v,p,f){typeof v!="object"&&(v={}),typeof p!="object"&&(p={});var d=s(!0,{},p);f||(d=Object.keys(d).reduce(function(S,y){return d[y]!=null&&(S[y]=d[y]),S},{}));for(var m in v)v[m]!==void 0&&p[m]===void 0&&(d[m]=v[m]);return Object.keys(d).length>0?d:void 0},diff:function(v,p){typeof v!="object"&&(v={}),typeof p!="object"&&(p={});var f=Object.keys(v).concat(Object.keys(p)).reduce(function(d,m){return a(v[m],p[m])||(d[m]=p[m]===void 0?null:p[m]),d},{});return Object.keys(f).length>0?f:void 0},transform:function(v,p,f){if(typeof v!="object")return p;if(typeof p=="object"){if(!f)return p;var d=Object.keys(p).reduce(function(m,S){return v[S]===void 0&&(m[S]=p[S]),m},{});return Object.keys(d).length>0?d:void 0}}},iterator:function(v){return new h(v)},length:function(v){return typeof v.delete=="number"?v.delete:typeof v.retain=="number"?v.retain:typeof v.insert=="string"?v.insert.length:1}};function h(v){this.ops=v,this.index=0,this.offset=0}h.prototype.hasNext=function(){return this.peekLength()<1/0},h.prototype.next=function(v){v||(v=1/0);var p=this.ops[this.index];if(p){var f=this.offset,d=u.length(p);if(v>=d-f?(v=d-f,this.index+=1,this.offset=0):this.offset+=v,typeof p.delete=="number")return{delete:v};var m={};return p.attributes&&(m.attributes=p.attributes),typeof p.retain=="number"?m.retain=v:typeof p.insert=="string"?m.insert=p.insert.substr(f,v):m.insert=p.insert,m}else return{retain:1/0}},h.prototype.peek=function(){return this.ops[this.index]},h.prototype.peekLength=function(){return this.ops[this.index]?u.length(this.ops[this.index])-this.offset:1/0},h.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},h.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var v=this.offset,p=this.index,f=this.next(),d=this.ops.slice(this.index);return this.offset=v,this.index=p,[f].concat(d)}else return[]},n.exports=u}),(function(n,i){var l=(function(){function a(y,g){return g!=null&&y instanceof g}var s;try{s=Map}catch{s=function(){}}var u;try{u=Set}catch{u=function(){}}var h;try{h=Promise}catch{h=function(){}}function v(y,g,b,x,_){typeof g=="object"&&(b=g.depth,x=g.prototype,_=g.includeNonEnumerable,g=g.circular);var E=[],O=[],R=typeof Buffer<"u";typeof g>"u"&&(g=!0),typeof b>"u"&&(b=1/0);function I(j,B){if(j===null)return null;if(B===0)return j;var L,P;if(typeof j!="object")return j;if(a(j,s))L=new s;else if(a(j,u))L=new u;else if(a(j,h))L=new h(function(T,A){j.then(function(q){T(I(q,B-1))},function(q){A(I(q,B-1))})});else if(v.__isArray(j))L=[];else if(v.__isRegExp(j))L=new RegExp(j.source,S(j)),j.lastIndex&&(L.lastIndex=j.lastIndex);else if(v.__isDate(j))L=new Date(j.getTime());else{if(R&&Buffer.isBuffer(j))return Buffer.allocUnsafe?L=Buffer.allocUnsafe(j.length):L=new Buffer(j.length),j.copy(L),L;a(j,Error)?L=Object.create(j):typeof x>"u"?(P=Object.getPrototypeOf(j),L=Object.create(P)):(L=Object.create(x),P=x)}if(g){var N=E.indexOf(j);if(N!=-1)return O[N];E.push(j),O.push(L)}a(j,s)&&j.forEach(function(T,A){var q=I(A,B-1),M=I(T,B-1);L.set(q,M)}),a(j,u)&&j.forEach(function(T){var A=I(T,B-1);L.add(A)});for(var F in j){var z;P&&(z=Object.getOwnPropertyDescriptor(P,F)),!(z&&z.set==null)&&(L[F]=I(j[F],B-1))}if(Object.getOwnPropertySymbols)for(var H=Object.getOwnPropertySymbols(j),F=0;F<H.length;F++){var Q=H[F],Y=Object.getOwnPropertyDescriptor(j,Q);Y&&!Y.enumerable&&!_||(L[Q]=I(j[Q],B-1),Y.enumerable||Object.defineProperty(L,Q,{enumerable:!1}))}if(_)for(var X=Object.getOwnPropertyNames(j),F=0;F<X.length;F++){var $=X[F],Y=Object.getOwnPropertyDescriptor(j,$);Y&&Y.enumerable||(L[$]=I(j[$],B-1),Object.defineProperty(L,$,{enumerable:!1}))}return L}return I(y,b)}v.clonePrototype=function(g){if(g===null)return null;var b=function(){};return b.prototype=g,new b};function p(y){return Object.prototype.toString.call(y)}v.__objToStr=p;function f(y){return typeof y=="object"&&p(y)==="[object Date]"}v.__isDate=f;function d(y){return typeof y=="object"&&p(y)==="[object Array]"}v.__isArray=d;function m(y){return typeof y=="object"&&p(y)==="[object RegExp]"}v.__isRegExp=m;function S(y){var g="";return y.global&&(g+="g"),y.ignoreCase&&(g+="i"),y.multiline&&(g+="m"),g}return v.__getRegExpFlags=S,v})();typeof n=="object"&&n.exports&&(n.exports=l)}),(function(n,i,l){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function L(P,N){var F=[],z=!0,H=!1,Q=void 0;try{for(var Y=P[Symbol.iterator](),X;!(z=(X=Y.next()).done)&&(F.push(X.value),!(N&&F.length===N));z=!0);}catch($){H=!0,Q=$}finally{try{!z&&Y.return&&Y.return()}finally{if(H)throw Q}}return F}return function(P,N){if(Array.isArray(P))return P;if(Symbol.iterator in Object(P))return L(P,N);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),s=(function(){function L(P,N){for(var F=0;F<N.length;F++){var z=N[F];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(P,z.key,z)}}return function(P,N,F){return N&&L(P.prototype,N),F&&L(P,F),P}})(),u=function L(P,N,F){P===null&&(P=Function.prototype);var z=Object.getOwnPropertyDescriptor(P,N);if(z===void 0){var H=Object.getPrototypeOf(P);return H===null?void 0:L(H,N,F)}else{if("value"in z)return z.value;var Q=z.get;return Q===void 0?void 0:Q.call(F)}},h=l(0),v=E(h),p=l(8),f=E(p),d=l(4),m=E(d),S=l(16),y=E(S),g=l(13),b=E(g),x=l(25),_=E(x);function E(L){return L&&L.__esModule?L:{default:L}}function O(L,P){if(!(L instanceof P))throw new TypeError("Cannot call a class as a function")}function R(L,P){if(!L)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P&&(typeof P=="object"||typeof P=="function")?P:L}function I(L,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof P);L.prototype=Object.create(P&&P.prototype,{constructor:{value:L,enumerable:!1,writable:!0,configurable:!0}}),P&&(Object.setPrototypeOf?Object.setPrototypeOf(L,P):L.__proto__=P)}function j(L){return L instanceof m.default||L instanceof d.BlockEmbed}var B=(function(L){I(P,L);function P(N,F){O(this,P);var z=R(this,(P.__proto__||Object.getPrototypeOf(P)).call(this,N));return z.emitter=F.emitter,Array.isArray(F.whitelist)&&(z.whitelist=F.whitelist.reduce(function(H,Q){return H[Q]=!0,H},{})),z.domNode.addEventListener("DOMNodeInserted",function(){}),z.optimize(),z.enable(),z}return s(P,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(F,z){var H=this.line(F),Q=a(H,2),Y=Q[0],X=Q[1],$=this.line(F+z),T=a($,1),A=T[0];if(u(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"deleteAt",this).call(this,F,z),A!=null&&Y!==A&&X>0){if(Y instanceof d.BlockEmbed||A instanceof d.BlockEmbed){this.optimize();return}if(Y instanceof b.default){var q=Y.newlineIndex(Y.length(),!0);if(q>-1&&(Y=Y.split(q+1),Y===A)){this.optimize();return}}else if(A instanceof b.default){var M=A.newlineIndex(0);M>-1&&A.split(M+1)}var ee=A.children.head instanceof y.default?null:A.children.head;Y.moveChildren(A,ee),Y.remove()}this.optimize()}},{key:"enable",value:function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",F)}},{key:"formatAt",value:function(F,z,H,Q){this.whitelist!=null&&!this.whitelist[H]||(u(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"formatAt",this).call(this,F,z,H,Q),this.optimize())}},{key:"insertAt",value:function(F,z,H){if(!(H!=null&&this.whitelist!=null&&!this.whitelist[z])){if(F>=this.length())if(H==null||v.default.query(z,v.default.Scope.BLOCK)==null){var Q=v.default.create(this.statics.defaultChild);this.appendChild(Q),H==null&&z.endsWith(`
151`)&&(z=z.slice(0,-1)),Q.insertAt(0,z,H)}else{var Y=v.default.create(z,H);this.appendChild(Y)}else u(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"insertAt",this).call(this,F,z,H);this.optimize()}}},{key:"insertBefore",value:function(F,z){if(F.statics.scope===v.default.Scope.INLINE_BLOT){var H=v.default.create(this.statics.defaultChild);H.appendChild(F),F=H}u(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"insertBefore",this).call(this,F,z)}},{key:"leaf",value:function(F){return this.path(F).pop()||[null,-1]}},{key:"line",value:function(F){return F===this.length()?this.line(F-1):this.descendant(j,F)}},{key:"lines",value:function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,H=function Q(Y,X,$){var T=[],A=$;return Y.children.forEachAt(X,$,function(q,M,ee){j(q)?T.push(q):q instanceof v.default.Container&&(T=T.concat(Q(q,M,A))),A-=ee}),T};return H(this,F,z)}},{key:"optimize",value:function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(u(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"optimize",this).call(this,F,z),F.length>0&&this.emitter.emit(f.default.events.SCROLL_OPTIMIZE,F,z))}},{key:"path",value:function(F){return u(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"path",this).call(this,F).slice(1)}},{key:"update",value:function(F){if(this.batch!==!0){var z=f.default.sources.USER;typeof F=="string"&&(z=F),Array.isArray(F)||(F=this.observer.takeRecords()),F.length>0&&this.emitter.emit(f.default.events.SCROLL_BEFORE_UPDATE,z,F),u(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"update",this).call(this,F.concat([])),F.length>0&&this.emitter.emit(f.default.events.SCROLL_UPDATE,z,F)}}}]),P})(v.default.Scroll);B.blotName="scroll",B.className="ql-editor",B.tagName="DIV",B.defaultChild="block",B.allowedChildren=[m.default,d.BlockEmbed,_.default],i.default=B}),(function(n,i,l){Object.defineProperty(i,"__esModule",{value:!0}),i.SHORTKEY=i.default=void 0;var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(V){return typeof V}:function(V){return V&&typeof Symbol=="function"&&V.constructor===Symbol&&V!==Symbol.prototype?"symbol":typeof V},s=(function(){function V(K,ie){var le=[],ce=!0,we=!1,Oe=void 0;try{for(var Re=K[Symbol.iterator](),Fe;!(ce=(Fe=Re.next()).done)&&(le.push(Fe.value),!(ie&&le.length===ie));ce=!0);}catch($e){we=!0,Oe=$e}finally{try{!ce&&Re.return&&Re.return()}finally{if(we)throw Oe}}return le}return function(K,ie){if(Array.isArray(K))return K;if(Symbol.iterator in Object(K))return V(K,ie);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),u=(function(){function V(K,ie){for(var le=0;le<ie.length;le++){var ce=ie[le];ce.enumerable=ce.enumerable||!1,ce.configurable=!0,"value"in ce&&(ce.writable=!0),Object.defineProperty(K,ce.key,ce)}}return function(K,ie,le){return ie&&V(K.prototype,ie),le&&V(K,le),K}})(),h=l(21),v=L(h),p=l(11),f=L(p),d=l(3),m=L(d),S=l(2),y=L(S),g=l(20),b=L(g),x=l(0),_=L(x),E=l(5),O=L(E),R=l(10),I=L(R),j=l(9),B=L(j);function L(V){return V&&V.__esModule?V:{default:V}}function P(V,K,ie){return K in V?Object.defineProperty(V,K,{value:ie,enumerable:!0,configurable:!0,writable:!0}):V[K]=ie,V}function N(V,K){if(!(V instanceof K))throw new TypeError("Cannot call a class as a function")}function F(V,K){if(!V)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return K&&(typeof K=="object"||typeof K=="function")?K:V}function z(V,K){if(typeof K!="function"&&K!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof K);V.prototype=Object.create(K&&K.prototype,{constructor:{value:V,enumerable:!1,writable:!0,configurable:!0}}),K&&(Object.setPrototypeOf?Object.setPrototypeOf(V,K):V.__proto__=K)}var H=(0,I.default)("quill:keyboard"),Q=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",Y=(function(V){z(K,V),u(K,null,[{key:"match",value:function(le,ce){return ce=te(ce),["altKey","ctrlKey","metaKey","shiftKey"].some(function(we){return!!ce[we]!==le[we]&&ce[we]!==null})?!1:ce.key===(le.which||le.keyCode)}}]);function K(ie,le){N(this,K);var ce=F(this,(K.__proto__||Object.getPrototypeOf(K)).call(this,ie,le));return ce.bindings={},Object.keys(ce.options.bindings).forEach(function(we){we==="list autofill"&&ie.scroll.whitelist!=null&&!ie.scroll.whitelist.list||ce.options.bindings[we]&&ce.addBinding(ce.options.bindings[we])}),ce.addBinding({key:K.keys.ENTER,shiftKey:null},q),ce.addBinding({key:K.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(ce.addBinding({key:K.keys.BACKSPACE},{collapsed:!0},$),ce.addBinding({key:K.keys.DELETE},{collapsed:!0},T)):(ce.addBinding({key:K.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},$),ce.addBinding({key:K.keys.DELETE},{collapsed:!0,suffix:/^.?$/},T)),ce.addBinding({key:K.keys.BACKSPACE},{collapsed:!1},A),ce.addBinding({key:K.keys.DELETE},{collapsed:!1},A),ce.addBinding({key:K.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},$),ce.listen(),ce}return u(K,[{key:"addBinding",value:function(le){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},we=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Oe=te(le);if(Oe==null||Oe.key==null)return H.warn("Attempted to add invalid keyboard binding",Oe);typeof ce=="function"&&(ce={handler:ce}),typeof we=="function"&&(we={handler:we}),Oe=(0,m.default)(Oe,ce,we),this.bindings[Oe.key]=this.bindings[Oe.key]||[],this.bindings[Oe.key].push(Oe)}},{key:"listen",value:function(){var le=this;this.quill.root.addEventListener("keydown",function(ce){if(!ce.defaultPrevented){var we=ce.which||ce.keyCode,Oe=(le.bindings[we]||[]).filter(function(De){return K.match(ce,De)});if(Oe.length!==0){var Re=le.quill.getSelection();if(!(Re==null||!le.quill.hasFocus())){var Fe=le.quill.getLine(Re.index),$e=s(Fe,2),lt=$e[0],Ze=$e[1],he=le.quill.getLeaf(Re.index),pe=s(he,2),W=pe[0],Z=pe[1],J=Re.length===0?[W,Z]:le.quill.getLeaf(Re.index+Re.length),ge=s(J,2),ye=ge[0],me=ge[1],se=W instanceof _.default.Text?W.value().slice(0,Z):"",ve=ye instanceof _.default.Text?ye.value().slice(me):"",xe={collapsed:Re.length===0,empty:Re.length===0&&lt.length()<=1,format:le.quill.getFormat(Re),offset:Ze,prefix:se,suffix:ve},Be=Oe.some(function(De){if(De.collapsed!=null&&De.collapsed!==xe.collapsed||De.empty!=null&&De.empty!==xe.empty||De.offset!=null&&De.offset!==xe.offset)return!1;if(Array.isArray(De.format)){if(De.format.every(function(Ye){return xe.format[Ye]==null}))return!1}else if(a(De.format)==="object"&&!Object.keys(De.format).every(function(Ye){return De.format[Ye]===!0?xe.format[Ye]!=null:De.format[Ye]===!1?xe.format[Ye]==null:(0,f.default)(De.format[Ye],xe.format[Ye])}))return!1;return De.prefix!=null&&!De.prefix.test(xe.prefix)||De.suffix!=null&&!De.suffix.test(xe.suffix)?!1:De.handler.call(le,Re,xe)!==!0});Be&&ce.preventDefault()}}}})}}]),K})(B.default);Y.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},Y.DEFAULTS={bindings:{bold:ee("bold"),italic:ee("italic"),underline:ee("underline"),indent:{key:Y.keys.TAB,format:["blockquote","indent","list"],handler:function(K,ie){if(ie.collapsed&&ie.offset!==0)return!0;this.quill.format("indent","+1",O.default.sources.USER)}},outdent:{key:Y.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(K,ie){if(ie.collapsed&&ie.offset!==0)return!0;this.quill.format("indent","-1",O.default.sources.USER)}},"outdent backspace":{key:Y.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(K,ie){ie.format.indent!=null?this.quill.format("indent","-1",O.default.sources.USER):ie.format.list!=null&&this.quill.format("list",!1,O.default.sources.USER)}},"indent code-block":M(!0),"outdent code-block":M(!1),"remove tab":{key:Y.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(K){this.quill.deleteText(K.index-1,1,O.default.sources.USER)}},tab:{key:Y.keys.TAB,handler:function(K){this.quill.history.cutoff();var ie=new y.default().retain(K.index).delete(K.length).insert("	");this.quill.updateContents(ie,O.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(K.index+1,O.default.sources.SILENT)}},"list empty enter":{key:Y.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(K,ie){this.quill.format("list",!1,O.default.sources.USER),ie.format.indent&&this.quill.format("indent",!1,O.default.sources.USER)}},"checklist enter":{key:Y.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(K){var ie=this.quill.getLine(K.index),le=s(ie,2),ce=le[0],we=le[1],Oe=(0,m.default)({},ce.formats(),{list:"checked"}),Re=new y.default().retain(K.index).insert(`
152`,Oe).retain(ce.length()-we-1).retain(1,{list:"unchecked"});this.quill.updateContents(Re,O.default.sources.USER),this.quill.setSelection(K.index+1,O.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:Y.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(K,ie){var le=this.quill.getLine(K.index),ce=s(le,2),we=ce[0],Oe=ce[1],Re=new y.default().retain(K.index).insert(`
153`,ie.format).retain(we.length()-Oe-1).retain(1,{header:null});this.quill.updateContents(Re,O.default.sources.USER),this.quill.setSelection(K.index+1,O.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(K,ie){var le=ie.prefix.length,ce=this.quill.getLine(K.index),we=s(ce,2),Oe=we[0],Re=we[1];if(Re>le)return!0;var Fe=void 0;switch(ie.prefix.trim()){case"[]":case"[ ]":Fe="unchecked";break;case"[x]":Fe="checked";break;case"-":case"*":Fe="bullet";break;default:Fe="ordered"}this.quill.insertText(K.index," ",O.default.sources.USER),this.quill.history.cutoff();var $e=new y.default().retain(K.index-Re).delete(le+1).retain(Oe.length()-2-Re).retain(1,{list:Fe});this.quill.updateContents($e,O.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(K.index-le,O.default.sources.SILENT)}},"code exit":{key:Y.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(K){var ie=this.quill.getLine(K.index),le=s(ie,2),ce=le[0],we=le[1],Oe=new y.default().retain(K.index+ce.length()-we-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(Oe,O.default.sources.USER)}},"embed left":X(Y.keys.LEFT,!1),"embed left shift":X(Y.keys.LEFT,!0),"embed right":X(Y.keys.RIGHT,!1),"embed right shift":X(Y.keys.RIGHT,!0)}};function X(V,K){var ie,le=V===Y.keys.LEFT?"prefix":"suffix";return ie={key:V,shiftKey:K,altKey:null},P(ie,le,/^$/),P(ie,"handler",function(we){var Oe=we.index;V===Y.keys.RIGHT&&(Oe+=we.length+1);var Re=this.quill.getLeaf(Oe),Fe=s(Re,1),$e=Fe[0];return $e instanceof _.default.Embed?(V===Y.keys.LEFT?K?this.quill.setSelection(we.index-1,we.length+1,O.default.sources.USER):this.quill.setSelection(we.index-1,O.default.sources.USER):K?this.quill.setSelection(we.index,we.length+1,O.default.sources.USER):this.quill.setSelection(we.index+we.length+1,O.default.sources.USER),!1):!0}),ie}function $(V,K){if(!(V.index===0||this.quill.getLength()<=1)){var ie=this.quill.getLine(V.index),le=s(ie,1),ce=le[0],we={};if(K.offset===0){var Oe=this.quill.getLine(V.index-1),Re=s(Oe,1),Fe=Re[0];if(Fe!=null&&Fe.length()>1){var $e=ce.formats(),lt=this.quill.getFormat(V.index-1,1);we=b.default.attributes.diff($e,lt)||{}}}var Ze=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(K.prefix)?2:1;this.quill.deleteText(V.index-Ze,Ze,O.default.sources.USER),Object.keys(we).length>0&&this.quill.formatLine(V.index-Ze,Ze,we,O.default.sources.USER),this.quill.focus()}}function T(V,K){var ie=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(K.suffix)?2:1;if(!(V.index>=this.quill.getLength()-ie)){var le={},ce=0,we=this.quill.getLine(V.index),Oe=s(we,1),Re=Oe[0];if(K.offset>=Re.length()-1){var Fe=this.quill.getLine(V.index+1),$e=s(Fe,1),lt=$e[0];if(lt){var Ze=Re.formats(),he=this.quill.getFormat(V.index,1);le=b.default.attributes.diff(Ze,he)||{},ce=lt.length()}}this.quill.deleteText(V.index,ie,O.default.sources.USER),Object.keys(le).length>0&&this.quill.formatLine(V.index+ce-1,ie,le,O.default.sources.USER)}}function A(V){var K=this.quill.getLines(V),ie={};if(K.length>1){var le=K[0].formats(),ce=K[K.length-1].formats();ie=b.default.attributes.diff(ce,le)||{}}this.quill.deleteText(V,O.default.sources.USER),Object.keys(ie).length>0&&this.quill.formatLine(V.index,1,ie,O.default.sources.USER),this.quill.setSelection(V.index,O.default.sources.SILENT),this.quill.focus()}function q(V,K){var ie=this;V.length>0&&this.quill.scroll.deleteAt(V.index,V.length);var le=Object.keys(K.format).reduce(function(ce,we){return _.default.query(we,_.default.Scope.BLOCK)&&!Array.isArray(K.format[we])&&(ce[we]=K.format[we]),ce},{});this.quill.insertText(V.index,`
154`,le,O.default.sources.USER),this.quill.setSelection(V.index+1,O.default.sources.SILENT),this.quill.focus(),Object.keys(K.format).forEach(function(ce){le[ce]==null&&(Array.isArray(K.format[ce])||ce!=="link"&&ie.quill.format(ce,K.format[ce],O.default.sources.USER))})}function M(V){return{key:Y.keys.TAB,shiftKey:!V,format:{"code-block":!0},handler:function(ie){var le=_.default.query("code-block"),ce=ie.index,we=ie.length,Oe=this.quill.scroll.descendant(le,ce),Re=s(Oe,2),Fe=Re[0],$e=Re[1];if(Fe!=null){var lt=this.quill.getIndex(Fe),Ze=Fe.newlineIndex($e,!0)+1,he=Fe.newlineIndex(lt+$e+we),pe=Fe.domNode.textContent.slice(Ze,he).split(`
155`);$e=0,pe.forEach(function(W,Z){V?(Fe.insertAt(Ze+$e,le.TAB),$e+=le.TAB.length,Z===0?ce+=le.TAB.length:we+=le.TAB.length):W.startsWith(le.TAB)&&(Fe.deleteAt(Ze+$e,le.TAB.length),$e-=le.TAB.length,Z===0?ce-=le.TAB.length:we-=le.TAB.length),$e+=W.length+1}),this.quill.update(O.default.sources.USER),this.quill.setSelection(ce,we,O.default.sources.SILENT)}}}}function ee(V){return{key:V[0].toUpperCase(),shortKey:!0,handler:function(ie,le){this.quill.format(V,!le.format[V],O.default.sources.USER)}}}function te(V){if(typeof V=="string"||typeof V=="number")return te({key:V});if((typeof V>"u"?"undefined":a(V))==="object"&&(V=(0,v.default)(V,!1)),typeof V.key=="string")if(Y.keys[V.key.toUpperCase()]!=null)V.key=Y.keys[V.key.toUpperCase()];else if(V.key.length===1)V.key=V.key.toUpperCase().charCodeAt(0);else return null;return V.shortKey&&(V[Q]=V.shortKey,delete V.shortKey),V}i.default=Y,i.SHORTKEY=Q}),(function(n,i,l){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function b(x,_){var E=[],O=!0,R=!1,I=void 0;try{for(var j=x[Symbol.iterator](),B;!(O=(B=j.next()).done)&&(E.push(B.value),!(_&&E.length===_));O=!0);}catch(L){R=!0,I=L}finally{try{!O&&j.return&&j.return()}finally{if(R)throw I}}return E}return function(x,_){if(Array.isArray(x))return x;if(Symbol.iterator in Object(x))return b(x,_);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),s=function b(x,_,E){x===null&&(x=Function.prototype);var O=Object.getOwnPropertyDescriptor(x,_);if(O===void 0){var R=Object.getPrototypeOf(x);return R===null?void 0:b(R,_,E)}else{if("value"in O)return O.value;var I=O.get;return I===void 0?void 0:I.call(E)}},u=(function(){function b(x,_){for(var E=0;E<_.length;E++){var O=_[E];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(x,O.key,O)}}return function(x,_,E){return _&&b(x.prototype,_),E&&b(x,E),x}})(),h=l(0),v=d(h),p=l(7),f=d(p);function d(b){return b&&b.__esModule?b:{default:b}}function m(b,x){if(!(b instanceof x))throw new TypeError("Cannot call a class as a function")}function S(b,x){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:b}function y(b,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);b.prototype=Object.create(x&&x.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(b,x):b.__proto__=x)}var g=(function(b){y(x,b),u(x,null,[{key:"value",value:function(){}}]);function x(_,E){m(this,x);var O=S(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,_));return O.selection=E,O.textNode=document.createTextNode(x.CONTENTS),O.domNode.appendChild(O.textNode),O._length=0,O}return u(x,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(E,O){if(this._length!==0)return s(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"format",this).call(this,E,O);for(var R=this,I=0;R!=null&&R.statics.scope!==v.default.Scope.BLOCK_BLOT;)I+=R.offset(R.parent),R=R.parent;R!=null&&(this._length=x.CONTENTS.length,R.optimize(),R.formatAt(I,x.CONTENTS.length,E,O),this._length=0)}},{key:"index",value:function(E,O){return E===this.textNode?0:s(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"index",this).call(this,E,O)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){s(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var E=this.textNode,O=this.selection.getNativeRange(),R=void 0,I=void 0,j=void 0;if(O!=null&&O.start.node===E&&O.end.node===E){var B=[E,O.start.offset,O.end.offset];R=B[0],I=B[1],j=B[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==x.CONTENTS){var L=this.textNode.data.split(x.CONTENTS).join("");this.next instanceof f.default?(R=this.next.domNode,this.next.insertAt(0,L),this.textNode.data=x.CONTENTS):(this.textNode.data=L,this.parent.insertBefore(v.default.create(this.textNode),this),this.textNode=document.createTextNode(x.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),I!=null){var P=[I,j].map(function(F){return Math.max(0,Math.min(R.data.length,F-1))}),N=a(P,2);return I=N[0],j=N[1],{startNode:R,startOffset:I,endNode:R,endOffset:j}}}}},{key:"update",value:function(E,O){var R=this;if(E.some(function(j){return j.type==="characterData"&&j.target===R.textNode})){var I=this.restore();I&&(O.range=I)}}},{key:"value",value:function(){return""}}]),x})(v.default.Embed);g.blotName="cursor",g.className="ql-cursor",g.tagName="span",g.CONTENTS="\uFEFF",i.default=g}),(function(n,i,l){Object.defineProperty(i,"__esModule",{value:!0});var a=l(0),s=v(a),u=l(4),h=v(u);function v(S){return S&&S.__esModule?S:{default:S}}function p(S,y){if(!(S instanceof y))throw new TypeError("Cannot call a class as a function")}function f(S,y){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:S}function d(S,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);S.prototype=Object.create(y&&y.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(S,y):S.__proto__=y)}var m=(function(S){d(y,S);function y(){return p(this,y),f(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return y})(s.default.Container);m.allowedChildren=[h.default,u.BlockEmbed,m],i.default=m}),(function(n,i,l){Object.defineProperty(i,"__esModule",{value:!0}),i.ColorStyle=i.ColorClass=i.ColorAttributor=void 0;var a=(function(){function g(b,x){for(var _=0;_<x.length;_++){var E=x[_];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(b,E.key,E)}}return function(b,x,_){return x&&g(b.prototype,x),_&&g(b,_),b}})(),s=function g(b,x,_){b===null&&(b=Function.prototype);var E=Object.getOwnPropertyDescriptor(b,x);if(E===void 0){var O=Object.getPrototypeOf(b);return O===null?void 0:g(O,x,_)}else{if("value"in E)return E.value;var R=E.get;return R===void 0?void 0:R.call(_)}},u=l(0),h=v(u);function v(g){return g&&g.__esModule?g:{default:g}}function p(g,b){if(!(g instanceof b))throw new TypeError("Cannot call a class as a function")}function f(g,b){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:g}function d(g,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);g.prototype=Object.create(b&&b.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(g,b):g.__proto__=b)}var m=(function(g){d(b,g);function b(){return p(this,b),f(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return a(b,[{key:"value",value:function(_){var E=s(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"value",this).call(this,_);return E.startsWith("rgb(")?(E=E.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+E.split(",").map(function(O){return("00"+parseInt(O).toString(16)).slice(-2)}).join("")):E}}]),b})(h.default.Attributor.Style),S=new h.default.Attributor.Class("color","ql-color",{scope:h.default.Scope.INLINE}),y=new m("color","color",{scope:h.default.Scope.INLINE});i.ColorAttributor=m,i.ColorClass=S,i.ColorStyle=y}),(function(n,i,l){Object.defineProperty(i,"__esModule",{value:!0}),i.sanitize=i.default=void 0;var a=(function(){function y(g,b){for(var x=0;x<b.length;x++){var _=b[x];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(g,_.key,_)}}return function(g,b,x){return b&&y(g.prototype,b),x&&y(g,x),g}})(),s=function y(g,b,x){g===null&&(g=Function.prototype);var _=Object.getOwnPropertyDescriptor(g,b);if(_===void 0){var E=Object.getPrototypeOf(g);return E===null?void 0:y(E,b,x)}else{if("value"in _)return _.value;var O=_.get;return O===void 0?void 0:O.call(x)}},u=l(6),h=v(u);function v(y){return y&&y.__esModule?y:{default:y}}function p(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")}function f(y,g){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:y}function d(y,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);y.prototype=Object.create(g&&g.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(y,g):y.__proto__=g)}var m=(function(y){d(g,y);function g(){return p(this,g),f(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return a(g,[{key:"format",value:function(x,_){if(x!==this.statics.blotName||!_)return s(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"format",this).call(this,x,_);_=this.constructor.sanitize(_),this.domNode.setAttribute("href",_)}}],[{key:"create",value:function(x){var _=s(g.__proto__||Object.getPrototypeOf(g),"create",this).call(this,x);return x=this.sanitize(x),_.setAttribute("href",x),_.setAttribute("rel","noopener noreferrer"),_.setAttribute("target","_blank"),_}},{key:"formats",value:function(x){return x.getAttribute("href")}},{key:"sanitize",value:function(x){return S(x,this.PROTOCOL_WHITELIST)?x:this.SANITIZED_URL}}]),g})(h.default);m.blotName="link",m.tagName="A",m.SANITIZED_URL="about:blank",m.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function S(y,g){var b=document.createElement("a");b.href=y;var x=b.href.slice(0,b.href.indexOf(":"));return g.indexOf(x)>-1}i.default=m,i.sanitize=S}),(function(n,i,l){Object.defineProperty(i,"__esModule",{value:!0});var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},s=(function(){function g(b,x){for(var _=0;_<x.length;_++){var E=x[_];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(b,E.key,E)}}return function(b,x,_){return x&&g(b.prototype,x),_&&g(b,_),b}})(),u=l(23),h=f(u),v=l(107),p=f(v);function f(g){return g&&g.__esModule?g:{default:g}}function d(g,b){if(!(g instanceof b))throw new TypeError("Cannot call a class as a function")}var m=0;function S(g,b){g.setAttribute(b,g.getAttribute(b)!=="true")}var y=(function(){function g(b){var x=this;d(this,g),this.select=b,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){x.togglePicker()}),this.label.addEventListener("keydown",function(_){switch(_.keyCode){case h.default.keys.ENTER:x.togglePicker();break;case h.default.keys.ESCAPE:x.escape(),_.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return s(g,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),S(this.label,"aria-expanded"),S(this.options,"aria-hidden")}},{key:"buildItem",value:function(x){var _=this,E=document.createElement("span");return E.tabIndex="0",E.setAttribute("role","button"),E.classList.add("ql-picker-item"),x.hasAttribute("value")&&E.setAttribute("data-value",x.getAttribute("value")),x.textContent&&E.setAttribute("data-label",x.textContent),E.addEventListener("click",function(){_.selectItem(E,!0)}),E.addEventListener("keydown",function(O){switch(O.keyCode){case h.default.keys.ENTER:_.selectItem(E,!0),O.preventDefault();break;case h.default.keys.ESCAPE:_.escape(),O.preventDefault();break}}),E}},{key:"buildLabel",value:function(){var x=document.createElement("span");return x.classList.add("ql-picker-label"),x.innerHTML=p.default,x.tabIndex="0",x.setAttribute("role","button"),x.setAttribute("aria-expanded","false"),this.container.appendChild(x),x}},{key:"buildOptions",value:function(){var x=this,_=document.createElement("span");_.classList.add("ql-picker-options"),_.setAttribute("aria-hidden","true"),_.tabIndex="-1",_.id="ql-picker-options-"+m,m+=1,this.label.setAttribute("aria-controls",_.id),this.options=_,[].slice.call(this.select.options).forEach(function(E){var O=x.buildItem(E);_.appendChild(O),E.selected===!0&&x.selectItem(O)}),this.container.appendChild(_)}},{key:"buildPicker",value:function(){var x=this;[].slice.call(this.select.attributes).forEach(function(_){x.container.setAttribute(_.name,_.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var x=this;this.close(),setTimeout(function(){return x.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(x){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,E=this.container.querySelector(".ql-selected");if(x!==E&&(E!=null&&E.classList.remove("ql-selected"),x!=null&&(x.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(x.parentNode.children,x),x.hasAttribute("data-value")?this.label.setAttribute("data-value",x.getAttribute("data-value")):this.label.removeAttribute("data-value"),x.hasAttribute("data-label")?this.label.setAttribute("data-label",x.getAttribute("data-label")):this.label.removeAttribute("data-label"),_))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event>"u"?"undefined":a(Event))==="object"){var O=document.createEvent("Event");O.initEvent("change",!0,!0),this.select.dispatchEvent(O)}this.close()}}},{key:"update",value:function(){var x=void 0;if(this.select.selectedIndex>-1){var _=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];x=this.select.options[this.select.selectedIndex],this.selectItem(_)}else this.selectItem(null);var E=x!=null&&x!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",E)}}]),g})();i.default=y}),(function(n,i,l){Object.defineProperty(i,"__esModule",{value:!0});var a=l(0),s=H(a),u=l(5),h=H(u),v=l(4),p=H(v),f=l(16),d=H(f),m=l(25),S=H(m),y=l(24),g=H(y),b=l(35),x=H(b),_=l(6),E=H(_),O=l(22),R=H(O),I=l(7),j=H(I),B=l(55),L=H(B),P=l(42),N=H(P),F=l(23),z=H(F);function H(Q){return Q&&Q.__esModule?Q:{default:Q}}h.default.register({"blots/block":p.default,"blots/block/embed":v.BlockEmbed,"blots/break":d.default,"blots/container":S.default,"blots/cursor":g.default,"blots/embed":x.default,"blots/inline":E.default,"blots/scroll":R.default,"blots/text":j.default,"modules/clipboard":L.default,"modules/history":N.default,"modules/keyboard":z.default}),s.default.register(p.default,d.default,g.default,E.default,R.default,j.default),i.default=h.default}),(function(n,i,l){Object.defineProperty(i,"__esModule",{value:!0});var a=l(1),s=(function(){function u(h){this.domNode=h,this.domNode[a.DATA_KEY]={blot:this}}return Object.defineProperty(u.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),u.create=function(h){if(this.tagName==null)throw new a.ParchmentError("Blot definition missing tagName");var v;return Array.isArray(this.tagName)?(typeof h=="string"&&(h=h.toUpperCase(),parseInt(h).toString()===h&&(h=parseInt(h))),typeof h=="number"?v=document.createElement(this.tagName[h-1]):this.tagName.indexOf(h)>-1?v=document.createElement(h):v=document.createElement(this.tagName[0])):v=document.createElement(this.tagName),this.className&&v.classList.add(this.className),v},u.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},u.prototype.clone=function(){var h=this.domNode.cloneNode(!1);return a.create(h)},u.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[a.DATA_KEY]},u.prototype.deleteAt=function(h,v){var p=this.isolate(h,v);p.remove()},u.prototype.formatAt=function(h,v,p,f){var d=this.isolate(h,v);if(a.query(p,a.Scope.BLOT)!=null&&f)d.wrap(p,f);else if(a.query(p,a.Scope.ATTRIBUTE)!=null){var m=a.create(this.statics.scope);d.wrap(m),m.format(p,f)}},u.prototype.insertAt=function(h,v,p){var f=p==null?a.create("text",v):a.create(v,p),d=this.split(h);this.parent.insertBefore(f,d)},u.prototype.insertInto=function(h,v){v===void 0&&(v=null),this.parent!=null&&this.parent.children.remove(this);var p=null;h.children.insertBefore(this,v),v!=null&&(p=v.domNode),(this.domNode.parentNode!=h.domNode||this.domNode.nextSibling!=p)&&h.domNode.insertBefore(this.domNode,p),this.parent=h,this.attach()},u.prototype.isolate=function(h,v){var p=this.split(h);return p.split(v),p},u.prototype.length=function(){return 1},u.prototype.offset=function(h){return h===void 0&&(h=this.parent),this.parent==null||this==h?0:this.parent.children.offset(this)+this.parent.offset(h)},u.prototype.optimize=function(h){this.domNode[a.DATA_KEY]!=null&&delete this.domNode[a.DATA_KEY].mutations},u.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},u.prototype.replace=function(h){h.parent!=null&&(h.parent.insertBefore(this,h.next),h.remove())},u.prototype.replaceWith=function(h,v){var p=typeof h=="string"?a.create(h,v):h;return p.replace(this),p},u.prototype.split=function(h,v){return h===0?this:this.next},u.prototype.update=function(h,v){},u.prototype.wrap=function(h,v){var p=typeof h=="string"?a.create(h,v):h;return this.parent!=null&&this.parent.insertBefore(p,this.next),p.appendChild(this),p},u.blotName="abstract",u})();i.default=s}),(function(n,i,l){Object.defineProperty(i,"__esModule",{value:!0});var a=l(12),s=l(32),u=l(33),h=l(1),v=(function(){function p(f){this.attributes={},this.domNode=f,this.build()}return p.prototype.attribute=function(f,d){d?f.add(this.domNode,d)&&(f.value(this.domNode)!=null?this.attributes[f.attrName]=f:delete this.attributes[f.attrName]):(f.remove(this.domNode),delete this.attributes[f.attrName])},p.prototype.build=function(){var f=this;this.attributes={};var d=a.default.keys(this.domNode),m=s.default.keys(this.domNode),S=u.default.keys(this.domNode);d.concat(m).concat(S).forEach(function(y){var g=h.query(y,h.Scope.ATTRIBUTE);g instanceof a.default&&(f.attributes[g.attrName]=g)})},p.prototype.copy=function(f){var d=this;Object.keys(this.attributes).forEach(function(m){var S=d.attributes[m].value(d.domNode);f.format(m,S)})},p.prototype.move=function(f){var d=this;this.copy(f),Object.keys(this.attributes).forEach(function(m){d.attributes[m].remove(d.domNode)}),this.attributes={}},p.prototype.values=function(){var f=this;return Object.keys(this.attributes).reduce(function(d,m){return d[m]=f.attributes[m].value(f.domNode),d},{})},p})();i.default=v}),(function(n,i,l){var a=this&&this.__extends||(function(){var v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,f){p.__proto__=f}||function(p,f){for(var d in f)f.hasOwnProperty(d)&&(p[d]=f[d])};return function(p,f){v(p,f);function d(){this.constructor=p}p.prototype=f===null?Object.create(f):(d.prototype=f.prototype,new d)}})();Object.defineProperty(i,"__esModule",{value:!0});var s=l(12);function u(v,p){var f=v.getAttribute("class")||"";return f.split(/\s+/).filter(function(d){return d.indexOf(p+"-")===0})}var h=(function(v){a(p,v);function p(){return v!==null&&v.apply(this,arguments)||this}return p.keys=function(f){return(f.getAttribute("class")||"").split(/\s+/).map(function(d){return d.split("-").slice(0,-1).join("-")})},p.prototype.add=function(f,d){return this.canAdd(f,d)?(this.remove(f),f.classList.add(this.keyName+"-"+d),!0):!1},p.prototype.remove=function(f){var d=u(f,this.keyName);d.forEach(function(m){f.classList.remove(m)}),f.classList.length===0&&f.removeAttribute("class")},p.prototype.value=function(f){var d=u(f,this.keyName)[0]||"",m=d.slice(this.keyName.length+1);return this.canAdd(f,m)?m:""},p})(s.default);i.default=h}),(function(n,i,l){var a=this&&this.__extends||(function(){var v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,f){p.__proto__=f}||function(p,f){for(var d in f)f.hasOwnProperty(d)&&(p[d]=f[d])};return function(p,f){v(p,f);function d(){this.constructor=p}p.prototype=f===null?Object.create(f):(d.prototype=f.prototype,new d)}})();Object.defineProperty(i,"__esModule",{value:!0});var s=l(12);function u(v){var p=v.split("-"),f=p.slice(1).map(function(d){return d[0].toUpperCase()+d.slice(1)}).join("");return p[0]+f}var h=(function(v){a(p,v);function p(){return v!==null&&v.apply(this,arguments)||this}return p.keys=function(f){return(f.getAttribute("style")||"").split(";").map(function(d){var m=d.split(":");return m[0].trim()})},p.prototype.add=function(f,d){return this.canAdd(f,d)?(f.style[u(this.keyName)]=d,!0):!1},p.prototype.remove=function(f){f.style[u(this.keyName)]="",f.getAttribute("style")||f.removeAttribute("style")},p.prototype.value=function(f){var d=f.style[u(this.keyName)];return this.canAdd(f,d)?d:""},p})(s.default);i.default=h}),(function(n,i,l){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function h(v,p){for(var f=0;f<p.length;f++){var d=p[f];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(v,d.key,d)}}return function(v,p,f){return p&&h(v.prototype,p),f&&h(v,f),v}})();function s(h,v){if(!(h instanceof v))throw new TypeError("Cannot call a class as a function")}var u=(function(){function h(v,p){s(this,h),this.quill=v,this.options=p,this.modules={}}return a(h,[{key:"init",value:function(){var p=this;Object.keys(this.options.modules).forEach(function(f){p.modules[f]==null&&p.addModule(f)})}},{key:"addModule",value:function(p){var f=this.quill.constructor.import("modules/"+p);return this.modules[p]=new f(this.quill,this.options.modules[p]||{}),this.modules[p]}}]),h})();u.DEFAULTS={modules:{}},u.themes={default:u},i.default=u}),(function(n,i,l){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function b(x,_){for(var E=0;E<_.length;E++){var O=_[E];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(x,O.key,O)}}return function(x,_,E){return _&&b(x.prototype,_),E&&b(x,E),x}})(),s=function b(x,_,E){x===null&&(x=Function.prototype);var O=Object.getOwnPropertyDescriptor(x,_);if(O===void 0){var R=Object.getPrototypeOf(x);return R===null?void 0:b(R,_,E)}else{if("value"in O)return O.value;var I=O.get;return I===void 0?void 0:I.call(E)}},u=l(0),h=f(u),v=l(7),p=f(v);function f(b){return b&&b.__esModule?b:{default:b}}function d(b,x){if(!(b instanceof x))throw new TypeError("Cannot call a class as a function")}function m(b,x){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:b}function S(b,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);b.prototype=Object.create(x&&x.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(b,x):b.__proto__=x)}var y="\uFEFF",g=(function(b){S(x,b);function x(_){d(this,x);var E=m(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,_));return E.contentNode=document.createElement("span"),E.contentNode.setAttribute("contenteditable",!1),[].slice.call(E.domNode.childNodes).forEach(function(O){E.contentNode.appendChild(O)}),E.leftGuard=document.createTextNode(y),E.rightGuard=document.createTextNode(y),E.domNode.appendChild(E.leftGuard),E.domNode.appendChild(E.contentNode),E.domNode.appendChild(E.rightGuard),E}return a(x,[{key:"index",value:function(E,O){return E===this.leftGuard?0:E===this.rightGuard?1:s(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"index",this).call(this,E,O)}},{key:"restore",value:function(E){var O=void 0,R=void 0,I=E.data.split(y).join("");if(E===this.leftGuard)if(this.prev instanceof p.default){var j=this.prev.length();this.prev.insertAt(j,I),O={startNode:this.prev.domNode,startOffset:j+I.length}}else R=document.createTextNode(I),this.parent.insertBefore(h.default.create(R),this),O={startNode:R,startOffset:I.length};else E===this.rightGuard&&(this.next instanceof p.default?(this.next.insertAt(0,I),O={startNode:this.next.domNode,startOffset:I.length}):(R=document.createTextNode(I),this.parent.insertBefore(h.default.create(R),this.next),O={startNode:R,startOffset:I.length}));return E.data=y,O}},{key:"update",value:function(E,O){var R=this;E.forEach(function(I){if(I.type==="characterData"&&(I.target===R.leftGuard||I.target===R.rightGuard)){var j=R.restore(I.target);j&&(O.range=j)}})}}]),x})(h.default.Embed);i.default=g}),(function(n,i,l){Object.defineProperty(i,"__esModule",{value:!0}),i.AlignStyle=i.AlignClass=i.AlignAttribute=void 0;var a=l(0),s=u(a);function u(d){return d&&d.__esModule?d:{default:d}}var h={scope:s.default.Scope.BLOCK,whitelist:["right","center","justify"]},v=new s.default.Attributor.Attribute("align","align",h),p=new s.default.Attributor.Class("align","ql-align",h),f=new s.default.Attributor.Style("align","text-align",h);i.AlignAttribute=v,i.AlignClass=p,i.AlignStyle=f}),(function(n,i,l){Object.defineProperty(i,"__esModule",{value:!0}),i.BackgroundStyle=i.BackgroundClass=void 0;var a=l(0),s=h(a),u=l(26);function h(f){return f&&f.__esModule?f:{default:f}}var v=new s.default.Attributor.Class("background","ql-bg",{scope:s.default.Scope.INLINE}),p=new u.ColorAttributor("background","background-color",{scope:s.default.Scope.INLINE});i.BackgroundClass=v,i.BackgroundStyle=p}),(function(n,i,l){Object.defineProperty(i,"__esModule",{value:!0}),i.DirectionStyle=i.DirectionClass=i.DirectionAttribute=void 0;var a=l(0),s=u(a);function u(d){return d&&d.__esModule?d:{default:d}}var h={scope:s.default.Scope.BLOCK,whitelist:["rtl"]},v=new s.default.Attributor.Attribute("direction","dir",h),p=new s.default.Attributor.Class("direction","ql-direction",h),f=new s.default.Attributor.Style("direction","direction",h);i.DirectionAttribute=v,i.DirectionClass=p,i.DirectionStyle=f}),(function(n,i,l){Object.defineProperty(i,"__esModule",{value:!0}),i.FontClass=i.FontStyle=void 0;var a=(function(){function b(x,_){for(var E=0;E<_.length;E++){var O=_[E];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(x,O.key,O)}}return function(x,_,E){return _&&b(x.prototype,_),E&&b(x,E),x}})(),s=function b(x,_,E){x===null&&(x=Function.prototype);var O=Object.getOwnPropertyDescriptor(x,_);if(O===void 0){var R=Object.getPrototypeOf(x);return R===null?void 0:b(R,_,E)}else{if("value"in O)return O.value;var I=O.get;return I===void 0?void 0:I.call(E)}},u=l(0),h=v(u);function v(b){return b&&b.__esModule?b:{default:b}}function p(b,x){if(!(b instanceof x))throw new TypeError("Cannot call a class as a function")}function f(b,x){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:b}function d(b,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);b.prototype=Object.create(x&&x.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(b,x):b.__proto__=x)}var m={scope:h.default.Scope.INLINE,whitelist:["serif","monospace"]},S=new h.default.Attributor.Class("font","ql-font",m),y=(function(b){d(x,b);function x(){return p(this,x),f(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return a(x,[{key:"value",value:function(E){return s(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"value",this).call(this,E).replace(/["']/g,"")}}]),x})(h.default.Attributor.Style),g=new y("font","font-family",m);i.FontStyle=g,i.FontClass=S}),(function(n,i,l){Object.defineProperty(i,"__esModule",{value:!0}),i.SizeStyle=i.SizeClass=void 0;var a=l(0),s=u(a);function u(p){return p&&p.__esModule?p:{default:p}}var h=new s.default.Attributor.Class("size","ql-size",{scope:s.default.Scope.INLINE,whitelist:["small","large","huge"]}),v=new s.default.Attributor.Style("size","font-size",{scope:s.default.Scope.INLINE,whitelist:["10px","18px","32px"]});i.SizeClass=h,i.SizeStyle=v}),(function(n,i,l){n.exports={align:{"":l(76),center:l(77),right:l(78),justify:l(79)},background:l(80),blockquote:l(81),bold:l(82),clean:l(83),code:l(58),"code-block":l(58),color:l(84),direction:{"":l(85),rtl:l(86)},float:{center:l(87),full:l(88),left:l(89),right:l(90)},formula:l(91),header:{1:l(92),2:l(93)},italic:l(94),image:l(95),indent:{"+1":l(96),"-1":l(97)},link:l(98),list:{ordered:l(99),bullet:l(100),check:l(101)},script:{sub:l(102),super:l(103)},strike:l(104),underline:l(105),video:l(106)}}),(function(n,i,l){Object.defineProperty(i,"__esModule",{value:!0}),i.getLastChangeIndex=i.default=void 0;var a=(function(){function _(E,O){for(var R=0;R<O.length;R++){var I=O[R];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(E,I.key,I)}}return function(E,O,R){return O&&_(E.prototype,O),R&&_(E,R),E}})(),s=l(0),u=d(s),h=l(5),v=d(h),p=l(9),f=d(p);function d(_){return _&&_.__esModule?_:{default:_}}function m(_,E){if(!(_ instanceof E))throw new TypeError("Cannot call a class as a function")}function S(_,E){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:_}function y(_,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);_.prototype=Object.create(E&&E.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(_,E):_.__proto__=E)}var g=(function(_){y(E,_);function E(O,R){m(this,E);var I=S(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,O,R));return I.lastRecorded=0,I.ignoreChange=!1,I.clear(),I.quill.on(v.default.events.EDITOR_CHANGE,function(j,B,L,P){j!==v.default.events.TEXT_CHANGE||I.ignoreChange||(!I.options.userOnly||P===v.default.sources.USER?I.record(B,L):I.transform(B))}),I.quill.keyboard.addBinding({key:"Z",shortKey:!0},I.undo.bind(I)),I.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},I.redo.bind(I)),/Win/i.test(navigator.platform)&&I.quill.keyboard.addBinding({key:"Y",shortKey:!0},I.redo.bind(I)),I}return a(E,[{key:"change",value:function(R,I){if(this.stack[R].length!==0){var j=this.stack[R].pop();this.stack[I].push(j),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(j[R],v.default.sources.USER),this.ignoreChange=!1;var B=x(j[R]);this.quill.setSelection(B)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(R,I){if(R.ops.length!==0){this.stack.redo=[];var j=this.quill.getContents().diff(I),B=Date.now();if(this.lastRecorded+this.options.delay>B&&this.stack.undo.length>0){var L=this.stack.undo.pop();j=j.compose(L.undo),R=L.redo.compose(R)}else this.lastRecorded=B;this.stack.undo.push({redo:R,undo:j}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(R){this.stack.undo.forEach(function(I){I.undo=R.transform(I.undo,!0),I.redo=R.transform(I.redo,!0)}),this.stack.redo.forEach(function(I){I.undo=R.transform(I.undo,!0),I.redo=R.transform(I.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),E})(f.default);g.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function b(_){var E=_.ops[_.ops.length-1];return E==null?!1:E.insert!=null?typeof E.insert=="string"&&E.insert.endsWith(`
156`):E.attributes!=null?Object.keys(E.attributes).some(function(O){return u.default.query(O,u.default.Scope.BLOCK)!=null}):!1}function x(_){var E=_.reduce(function(R,I){return R+=I.delete||0,R},0),O=_.length()-E;return b(_)&&(O-=1),O}i.default=g,i.getLastChangeIndex=x}),(function(n,i,l){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.BaseTooltip=void 0;var a=(function(){function q(M,ee){for(var te=0;te<ee.length;te++){var V=ee[te];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(M,V.key,V)}}return function(M,ee,te){return ee&&q(M.prototype,ee),te&&q(M,te),M}})(),s=function q(M,ee,te){M===null&&(M=Function.prototype);var V=Object.getOwnPropertyDescriptor(M,ee);if(V===void 0){var K=Object.getPrototypeOf(M);return K===null?void 0:q(K,ee,te)}else{if("value"in V)return V.value;var ie=V.get;return ie===void 0?void 0:ie.call(te)}},u=l(3),h=B(u),v=l(2),p=B(v),f=l(8),d=B(f),m=l(23),S=B(m),y=l(34),g=B(y),b=l(59),x=B(b),_=l(60),E=B(_),O=l(28),R=B(O),I=l(61),j=B(I);function B(q){return q&&q.__esModule?q:{default:q}}function L(q,M){if(!(q instanceof M))throw new TypeError("Cannot call a class as a function")}function P(q,M){if(!q)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M&&(typeof M=="object"||typeof M=="function")?M:q}function N(q,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof M);q.prototype=Object.create(M&&M.prototype,{constructor:{value:q,enumerable:!1,writable:!0,configurable:!0}}),M&&(Object.setPrototypeOf?Object.setPrototypeOf(q,M):q.__proto__=M)}var F=[!1,"center","right","justify"],z=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],H=[!1,"serif","monospace"],Q=["1","2","3",!1],Y=["small",!1,"large","huge"],X=(function(q){N(M,q);function M(ee,te){L(this,M);var V=P(this,(M.__proto__||Object.getPrototypeOf(M)).call(this,ee,te)),K=function ie(le){if(!document.body.contains(ee.root))return document.body.removeEventListener("click",ie);V.tooltip!=null&&!V.tooltip.root.contains(le.target)&&document.activeElement!==V.tooltip.textbox&&!V.quill.hasFocus()&&V.tooltip.hide(),V.pickers!=null&&V.pickers.forEach(function(ce){ce.container.contains(le.target)||ce.close()})};return ee.emitter.listenDOM("click",document.body,K),V}return a(M,[{key:"addModule",value:function(te){var V=s(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"addModule",this).call(this,te);return te==="toolbar"&&this.extendToolbar(V),V}},{key:"buildButtons",value:function(te,V){te.forEach(function(K){var ie=K.getAttribute("class")||"";ie.split(/\s+/).forEach(function(le){if(le.startsWith("ql-")&&(le=le.slice(3),V[le]!=null))if(le==="direction")K.innerHTML=V[le][""]+V[le].rtl;else if(typeof V[le]=="string")K.innerHTML=V[le];else{var ce=K.value||"";ce!=null&&V[le][ce]&&(K.innerHTML=V[le][ce])}})})}},{key:"buildPickers",value:function(te,V){var K=this;this.pickers=te.map(function(le){if(le.classList.contains("ql-align"))return le.querySelector("option")==null&&A(le,F),new E.default(le,V.align);if(le.classList.contains("ql-background")||le.classList.contains("ql-color")){var ce=le.classList.contains("ql-background")?"background":"color";return le.querySelector("option")==null&&A(le,z,ce==="background"?"#ffffff":"#000000"),new x.default(le,V[ce])}else return le.querySelector("option")==null&&(le.classList.contains("ql-font")?A(le,H):le.classList.contains("ql-header")?A(le,Q):le.classList.contains("ql-size")&&A(le,Y)),new R.default(le)});var ie=function(){K.pickers.forEach(function(ce){ce.update()})};this.quill.on(d.default.events.EDITOR_CHANGE,ie)}}]),M})(g.default);X.DEFAULTS=(0,h.default)(!0,{},g.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var M=this,ee=this.container.querySelector("input.ql-image[type=file]");ee==null&&(ee=document.createElement("input"),ee.setAttribute("type","file"),ee.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),ee.classList.add("ql-image"),ee.addEventListener("change",function(){if(ee.files!=null&&ee.files[0]!=null){var te=new FileReader;te.onload=function(V){var K=M.quill.getSelection(!0);M.quill.updateContents(new p.default().retain(K.index).delete(K.length).insert({image:V.target.result}),d.default.sources.USER),M.quill.setSelection(K.index+1,d.default.sources.SILENT),ee.value=""},te.readAsDataURL(ee.files[0])}}),this.container.appendChild(ee)),ee.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var $=(function(q){N(M,q);function M(ee,te){L(this,M);var V=P(this,(M.__proto__||Object.getPrototypeOf(M)).call(this,ee,te));return V.textbox=V.root.querySelector('input[type="text"]'),V.listen(),V}return a(M,[{key:"listen",value:function(){var te=this;this.textbox.addEventListener("keydown",function(V){S.default.match(V,"enter")?(te.save(),V.preventDefault()):S.default.match(V,"escape")&&(te.cancel(),V.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),V!=null?this.textbox.value=V:te!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+te)||""),this.root.setAttribute("data-mode",te)}},{key:"restoreFocus",value:function(){var te=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=te}},{key:"save",value:function(){var te=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var V=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",te,d.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",te,d.default.sources.USER)),this.quill.root.scrollTop=V;break}case"video":te=T(te);case"formula":{if(!te)break;var K=this.quill.getSelection(!0);if(K!=null){var ie=K.index+K.length;this.quill.insertEmbed(ie,this.root.getAttribute("data-mode"),te,d.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(ie+1," ",d.default.sources.USER),this.quill.setSelection(ie+2,d.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),M})(j.default);function T(q){var M=q.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||q.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return M?(M[1]||"https")+"://www.youtube.com/embed/"+M[2]+"?showinfo=0":(M=q.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(M[1]||"https")+"://player.vimeo.com/video/"+M[2]+"/":q}function A(q,M){var ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;M.forEach(function(te){var V=document.createElement("option");te===ee?V.setAttribute("selected","selected"):V.setAttribute("value",te),q.appendChild(V)})}i.BaseTooltip=$,i.default=X}),(function(n,i,l){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function s(){this.head=this.tail=null,this.length=0}return s.prototype.append=function(){for(var u=[],h=0;h<arguments.length;h++)u[h]=arguments[h];this.insertBefore(u[0],null),u.length>1&&this.append.apply(this,u.slice(1))},s.prototype.contains=function(u){for(var h,v=this.iterator();h=v();)if(h===u)return!0;return!1},s.prototype.insertBefore=function(u,h){u&&(u.next=h,h!=null?(u.prev=h.prev,h.prev!=null&&(h.prev.next=u),h.prev=u,h===this.head&&(this.head=u)):this.tail!=null?(this.tail.next=u,u.prev=this.tail,this.tail=u):(u.prev=null,this.head=this.tail=u),this.length+=1)},s.prototype.offset=function(u){for(var h=0,v=this.head;v!=null;){if(v===u)return h;h+=v.length(),v=v.next}return-1},s.prototype.remove=function(u){this.contains(u)&&(u.prev!=null&&(u.prev.next=u.next),u.next!=null&&(u.next.prev=u.prev),u===this.head&&(this.head=u.next),u===this.tail&&(this.tail=u.prev),this.length-=1)},s.prototype.iterator=function(u){return u===void 0&&(u=this.head),function(){var h=u;return u!=null&&(u=u.next),h}},s.prototype.find=function(u,h){h===void 0&&(h=!1);for(var v,p=this.iterator();v=p();){var f=v.length();if(u<f||h&&u===f&&(v.next==null||v.next.length()!==0))return[v,u];u-=f}return[null,0]},s.prototype.forEach=function(u){for(var h,v=this.iterator();h=v();)u(h)},s.prototype.forEachAt=function(u,h,v){if(!(h<=0))for(var p=this.find(u),f=p[0],d=p[1],m,S=u-d,y=this.iterator(f);(m=y())&&S<u+h;){var g=m.length();u>S?v(m,u-S,Math.min(h,S+g-u)):v(m,0,Math.min(g,u+h-S)),S+=g}},s.prototype.map=function(u){return this.reduce(function(h,v){return h.push(u(v)),h},[])},s.prototype.reduce=function(u,h){for(var v,p=this.iterator();v=p();)h=u(h,v);return h},s})();i.default=a}),(function(n,i,l){var a=this&&this.__extends||(function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,m){d.__proto__=m}||function(d,m){for(var S in m)m.hasOwnProperty(S)&&(d[S]=m[S])};return function(d,m){f(d,m);function S(){this.constructor=d}d.prototype=m===null?Object.create(m):(S.prototype=m.prototype,new S)}})();Object.defineProperty(i,"__esModule",{value:!0});var s=l(17),u=l(1),h={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},v=100,p=(function(f){a(d,f);function d(m){var S=f.call(this,m)||this;return S.scroll=S,S.observer=new MutationObserver(function(y){S.update(y)}),S.observer.observe(S.domNode,h),S.attach(),S}return d.prototype.detach=function(){f.prototype.detach.call(this),this.observer.disconnect()},d.prototype.deleteAt=function(m,S){this.update(),m===0&&S===this.length()?this.children.forEach(function(y){y.remove()}):f.prototype.deleteAt.call(this,m,S)},d.prototype.formatAt=function(m,S,y,g){this.update(),f.prototype.formatAt.call(this,m,S,y,g)},d.prototype.insertAt=function(m,S,y){this.update(),f.prototype.insertAt.call(this,m,S,y)},d.prototype.optimize=function(m,S){var y=this;m===void 0&&(m=[]),S===void 0&&(S={}),f.prototype.optimize.call(this,S);for(var g=[].slice.call(this.observer.takeRecords());g.length>0;)m.push(g.pop());for(var b=function(O,R){R===void 0&&(R=!0),!(O==null||O===y)&&O.domNode.parentNode!=null&&(O.domNode[u.DATA_KEY].mutations==null&&(O.domNode[u.DATA_KEY].mutations=[]),R&&b(O.parent))},x=function(O){O.domNode[u.DATA_KEY]==null||O.domNode[u.DATA_KEY].mutations==null||(O instanceof s.default&&O.children.forEach(x),O.optimize(S))},_=m,E=0;_.length>0;E+=1){if(E>=v)throw new Error("[Parchment] Maximum optimize iterations reached");for(_.forEach(function(O){var R=u.find(O.target,!0);R!=null&&(R.domNode===O.target&&(O.type==="childList"?(b(u.find(O.previousSibling,!1)),[].forEach.call(O.addedNodes,function(I){var j=u.find(I,!1);b(j,!1),j instanceof s.default&&j.children.forEach(function(B){b(B,!1)})})):O.type==="attributes"&&b(R.prev)),b(R))}),this.children.forEach(x),_=[].slice.call(this.observer.takeRecords()),g=_.slice();g.length>0;)m.push(g.pop())}},d.prototype.update=function(m,S){var y=this;S===void 0&&(S={}),m=m||this.observer.takeRecords(),m.map(function(g){var b=u.find(g.target,!0);return b==null?null:b.domNode[u.DATA_KEY].mutations==null?(b.domNode[u.DATA_KEY].mutations=[g],b):(b.domNode[u.DATA_KEY].mutations.push(g),null)}).forEach(function(g){g==null||g===y||g.domNode[u.DATA_KEY]==null||g.update(g.domNode[u.DATA_KEY].mutations||[],S)}),this.domNode[u.DATA_KEY].mutations!=null&&f.prototype.update.call(this,this.domNode[u.DATA_KEY].mutations,S),this.optimize(m,S)},d.blotName="scroll",d.defaultChild="block",d.scope=u.Scope.BLOCK_BLOT,d.tagName="DIV",d})(s.default);i.default=p}),(function(n,i,l){var a=this&&this.__extends||(function(){var p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,d){f.__proto__=d}||function(f,d){for(var m in d)d.hasOwnProperty(m)&&(f[m]=d[m])};return function(f,d){p(f,d);function m(){this.constructor=f}f.prototype=d===null?Object.create(d):(m.prototype=d.prototype,new m)}})();Object.defineProperty(i,"__esModule",{value:!0});var s=l(18),u=l(1);function h(p,f){if(Object.keys(p).length!==Object.keys(f).length)return!1;for(var d in p)if(p[d]!==f[d])return!1;return!0}var v=(function(p){a(f,p);function f(){return p!==null&&p.apply(this,arguments)||this}return f.formats=function(d){if(d.tagName!==f.tagName)return p.formats.call(this,d)},f.prototype.format=function(d,m){var S=this;d===this.statics.blotName&&!m?(this.children.forEach(function(y){y instanceof s.default||(y=y.wrap(f.blotName,!0)),S.attributes.copy(y)}),this.unwrap()):p.prototype.format.call(this,d,m)},f.prototype.formatAt=function(d,m,S,y){if(this.formats()[S]!=null||u.query(S,u.Scope.ATTRIBUTE)){var g=this.isolate(d,m);g.format(S,y)}else p.prototype.formatAt.call(this,d,m,S,y)},f.prototype.optimize=function(d){p.prototype.optimize.call(this,d);var m=this.formats();if(Object.keys(m).length===0)return this.unwrap();var S=this.next;S instanceof f&&S.prev===this&&h(m,S.formats())&&(S.moveChildren(this),S.remove())},f.blotName="inline",f.scope=u.Scope.INLINE_BLOT,f.tagName="SPAN",f})(s.default);i.default=v}),(function(n,i,l){var a=this&&this.__extends||(function(){var v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,f){p.__proto__=f}||function(p,f){for(var d in f)f.hasOwnProperty(d)&&(p[d]=f[d])};return function(p,f){v(p,f);function d(){this.constructor=p}p.prototype=f===null?Object.create(f):(d.prototype=f.prototype,new d)}})();Object.defineProperty(i,"__esModule",{value:!0});var s=l(18),u=l(1),h=(function(v){a(p,v);function p(){return v!==null&&v.apply(this,arguments)||this}return p.formats=function(f){var d=u.query(p.blotName).tagName;if(f.tagName!==d)return v.formats.call(this,f)},p.prototype.format=function(f,d){u.query(f,u.Scope.BLOCK)!=null&&(f===this.statics.blotName&&!d?this.replaceWith(p.blotName):v.prototype.format.call(this,f,d))},p.prototype.formatAt=function(f,d,m,S){u.query(m,u.Scope.BLOCK)!=null?this.format(m,S):v.prototype.formatAt.call(this,f,d,m,S)},p.prototype.insertAt=function(f,d,m){if(m==null||u.query(d,u.Scope.INLINE)!=null)v.prototype.insertAt.call(this,f,d,m);else{var S=this.split(f),y=u.create(d,m);S.parent.insertBefore(y,S)}},p.prototype.update=function(f,d){navigator.userAgent.match(/Trident/)?this.build():v.prototype.update.call(this,f,d)},p.blotName="block",p.scope=u.Scope.BLOCK_BLOT,p.tagName="P",p})(s.default);i.default=h}),(function(n,i,l){var a=this&&this.__extends||(function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,p){v.__proto__=p}||function(v,p){for(var f in p)p.hasOwnProperty(f)&&(v[f]=p[f])};return function(v,p){h(v,p);function f(){this.constructor=v}v.prototype=p===null?Object.create(p):(f.prototype=p.prototype,new f)}})();Object.defineProperty(i,"__esModule",{value:!0});var s=l(19),u=(function(h){a(v,h);function v(){return h!==null&&h.apply(this,arguments)||this}return v.formats=function(p){},v.prototype.format=function(p,f){h.prototype.formatAt.call(this,0,this.length(),p,f)},v.prototype.formatAt=function(p,f,d,m){p===0&&f===this.length()?this.format(d,m):h.prototype.formatAt.call(this,p,f,d,m)},v.prototype.formats=function(){return this.statics.formats(this.domNode)},v})(s.default);i.default=u}),(function(n,i,l){var a=this&&this.__extends||(function(){var v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,f){p.__proto__=f}||function(p,f){for(var d in f)f.hasOwnProperty(d)&&(p[d]=f[d])};return function(p,f){v(p,f);function d(){this.constructor=p}p.prototype=f===null?Object.create(f):(d.prototype=f.prototype,new d)}})();Object.defineProperty(i,"__esModule",{value:!0});var s=l(19),u=l(1),h=(function(v){a(p,v);function p(f){var d=v.call(this,f)||this;return d.text=d.statics.value(d.domNode),d}return p.create=function(f){return document.createTextNode(f)},p.value=function(f){var d=f.data;return d.normalize&&(d=d.normalize()),d},p.prototype.deleteAt=function(f,d){this.domNode.data=this.text=this.text.slice(0,f)+this.text.slice(f+d)},p.prototype.index=function(f,d){return this.domNode===f?d:-1},p.prototype.insertAt=function(f,d,m){m==null?(this.text=this.text.slice(0,f)+d+this.text.slice(f),this.domNode.data=this.text):v.prototype.insertAt.call(this,f,d,m)},p.prototype.length=function(){return this.text.length},p.prototype.optimize=function(f){v.prototype.optimize.call(this,f),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof p&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},p.prototype.position=function(f,d){return[this.domNode,f]},p.prototype.split=function(f,d){if(d===void 0&&(d=!1),!d){if(f===0)return this;if(f===this.length())return this.next}var m=u.create(this.domNode.splitText(f));return this.parent.insertBefore(m,this.next),this.text=this.statics.value(this.domNode),m},p.prototype.update=function(f,d){var m=this;f.some(function(S){return S.type==="characterData"&&S.target===m.domNode})&&(this.text=this.statics.value(this.domNode))},p.prototype.value=function(){return this.text},p.blotName="text",p.scope=u.Scope.INLINE_BLOT,p})(s.default);i.default=h}),(function(n,i,l){var a=document.createElement("div");if(a.classList.toggle("test-class",!1),a.classList.contains("test-class")){var s=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(u,h){return arguments.length>1&&!this.contains(u)==!h?h:s.call(this,u)}}String.prototype.startsWith||(String.prototype.startsWith=function(u,h){return h=h||0,this.substr(h,u.length)===u}),String.prototype.endsWith||(String.prototype.endsWith=function(u,h){var v=this.toString();(typeof h!="number"||!isFinite(h)||Math.floor(h)!==h||h>v.length)&&(h=v.length),h-=u.length;var p=v.indexOf(u,h);return p!==-1&&p===h}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(h){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof h!="function")throw new TypeError("predicate must be a function");for(var v=Object(this),p=v.length>>>0,f=arguments[1],d,m=0;m<p;m++)if(d=v[m],h.call(f,d,m,v))return d}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})}),(function(n,i){var l=-1,a=1,s=0;function u(E,O,R){if(E==O)return E?[[s,E]]:[];(R<0||E.length<R)&&(R=null);var I=f(E,O),j=E.substring(0,I);E=E.substring(I),O=O.substring(I),I=d(E,O);var B=E.substring(E.length-I);E=E.substring(0,E.length-I),O=O.substring(0,O.length-I);var L=h(E,O);return j&&L.unshift([s,j]),B&&L.push([s,B]),S(L),R!=null&&(L=b(L,R)),L=x(L),L}function h(E,O){var R;if(!E)return[[a,O]];if(!O)return[[l,E]];var I=E.length>O.length?E:O,j=E.length>O.length?O:E,B=I.indexOf(j);if(B!=-1)return R=[[a,I.substring(0,B)],[s,j],[a,I.substring(B+j.length)]],E.length>O.length&&(R[0][0]=R[2][0]=l),R;if(j.length==1)return[[l,E],[a,O]];var L=m(E,O);if(L){var P=L[0],N=L[1],F=L[2],z=L[3],H=L[4],Q=u(P,F),Y=u(N,z);return Q.concat([[s,H]],Y)}return v(E,O)}function v(E,O){for(var R=E.length,I=O.length,j=Math.ceil((R+I)/2),B=j,L=2*j,P=new Array(L),N=new Array(L),F=0;F<L;F++)P[F]=-1,N[F]=-1;P[B+1]=0,N[B+1]=0;for(var z=R-I,H=z%2!=0,Q=0,Y=0,X=0,$=0,T=0;T<j;T++){for(var A=-T+Q;A<=T-Y;A+=2){var q=B+A,M;A==-T||A!=T&&P[q-1]<P[q+1]?M=P[q+1]:M=P[q-1]+1;for(var ee=M-A;M<R&&ee<I&&E.charAt(M)==O.charAt(ee);)M++,ee++;if(P[q]=M,M>R)Y+=2;else if(ee>I)Q+=2;else if(H){var te=B+z-A;if(te>=0&&te<L&&N[te]!=-1){var V=R-N[te];if(M>=V)return p(E,O,M,ee)}}}for(var K=-T+X;K<=T-$;K+=2){var te=B+K,V;K==-T||K!=T&&N[te-1]<N[te+1]?V=N[te+1]:V=N[te-1]+1;for(var ie=V-K;V<R&&ie<I&&E.charAt(R-V-1)==O.charAt(I-ie-1);)V++,ie++;if(N[te]=V,V>R)$+=2;else if(ie>I)X+=2;else if(!H){var q=B+z-K;if(q>=0&&q<L&&P[q]!=-1){var M=P[q],ee=B+M-q;if(V=R-V,M>=V)return p(E,O,M,ee)}}}}return[[l,E],[a,O]]}function p(E,O,R,I){var j=E.substring(0,R),B=O.substring(0,I),L=E.substring(R),P=O.substring(I),N=u(j,B),F=u(L,P);return N.concat(F)}function f(E,O){if(!E||!O||E.charAt(0)!=O.charAt(0))return 0;for(var R=0,I=Math.min(E.length,O.length),j=I,B=0;R<j;)E.substring(B,j)==O.substring(B,j)?(R=j,B=R):I=j,j=Math.floor((I-R)/2+R);return j}function d(E,O){if(!E||!O||E.charAt(E.length-1)!=O.charAt(O.length-1))return 0;for(var R=0,I=Math.min(E.length,O.length),j=I,B=0;R<j;)E.substring(E.length-j,E.length-B)==O.substring(O.length-j,O.length-B)?(R=j,B=R):I=j,j=Math.floor((I-R)/2+R);return j}function m(E,O){var R=E.length>O.length?E:O,I=E.length>O.length?O:E;if(R.length<4||I.length*2<R.length)return null;function j(Y,X,$){for(var T=Y.substring($,$+Math.floor(Y.length/4)),A=-1,q="",M,ee,te,V;(A=X.indexOf(T,A+1))!=-1;){var K=f(Y.substring($),X.substring(A)),ie=d(Y.substring(0,$),X.substring(0,A));q.length<ie+K&&(q=X.substring(A-ie,A)+X.substring(A,A+K),M=Y.substring(0,$-ie),ee=Y.substring($+K),te=X.substring(0,A-ie),V=X.substring(A+K))}return q.length*2>=Y.length?[M,ee,te,V,q]:null}var B=j(R,I,Math.ceil(R.length/4)),L=j(R,I,Math.ceil(R.length/2)),P;if(!B&&!L)return null;L?B?P=B[4].length>L[4].length?B:L:P=L:P=B;var N,F,z,H;E.length>O.length?(N=P[0],F=P[1],z=P[2],H=P[3]):(z=P[0],H=P[1],N=P[2],F=P[3]);var Q=P[4];return[N,F,z,H,Q]}function S(E){E.push([s,""]);for(var O=0,R=0,I=0,j="",B="",L;O<E.length;)switch(E[O][0]){case a:I++,B+=E[O][1],O++;break;case l:R++,j+=E[O][1],O++;break;case s:R+I>1?(R!==0&&I!==0&&(L=f(B,j),L!==0&&(O-R-I>0&&E[O-R-I-1][0]==s?E[O-R-I-1][1]+=B.substring(0,L):(E.splice(0,0,[s,B.substring(0,L)]),O++),B=B.substring(L),j=j.substring(L)),L=d(B,j),L!==0&&(E[O][1]=B.substring(B.length-L)+E[O][1],B=B.substring(0,B.length-L),j=j.substring(0,j.length-L))),R===0?E.splice(O-I,R+I,[a,B]):I===0?E.splice(O-R,R+I,[l,j]):E.splice(O-R-I,R+I,[l,j],[a,B]),O=O-R-I+(R?1:0)+(I?1:0)+1):O!==0&&E[O-1][0]==s?(E[O-1][1]+=E[O][1],E.splice(O,1)):O++,I=0,R=0,j="",B="";break}E[E.length-1][1]===""&&E.pop();var P=!1;for(O=1;O<E.length-1;)E[O-1][0]==s&&E[O+1][0]==s&&(E[O][1].substring(E[O][1].length-E[O-1][1].length)==E[O-1][1]?(E[O][1]=E[O-1][1]+E[O][1].substring(0,E[O][1].length-E[O-1][1].length),E[O+1][1]=E[O-1][1]+E[O+1][1],E.splice(O-1,1),P=!0):E[O][1].substring(0,E[O+1][1].length)==E[O+1][1]&&(E[O-1][1]+=E[O+1][1],E[O][1]=E[O][1].substring(E[O+1][1].length)+E[O+1][1],E.splice(O+1,1),P=!0)),O++;P&&S(E)}var y=u;y.INSERT=a,y.DELETE=l,y.EQUAL=s,n.exports=y;function g(E,O){if(O===0)return[s,E];for(var R=0,I=0;I<E.length;I++){var j=E[I];if(j[0]===l||j[0]===s){var B=R+j[1].length;if(O===B)return[I+1,E];if(O<B){E=E.slice();var L=O-R,P=[j[0],j[1].slice(0,L)],N=[j[0],j[1].slice(L)];return E.splice(I,1,P,N),[I+1,E]}else R=B}}throw new Error("cursor_pos is out of bounds!")}function b(E,O){var R=g(E,O),I=R[1],j=R[0],B=I[j],L=I[j+1];if(B==null)return E;if(B[0]!==s)return E;if(L!=null&&B[1]+L[1]===L[1]+B[1])return I.splice(j,2,L,B),_(I,j,2);if(L!=null&&L[1].indexOf(B[1])===0){I.splice(j,2,[L[0],B[1]],[0,B[1]]);var P=L[1].slice(B[1].length);return P.length>0&&I.splice(j+2,0,[L[0],P]),_(I,j,3)}else return E}function x(E){for(var O=!1,R=function(L){return L.charCodeAt(0)>=56320&&L.charCodeAt(0)<=57343},I=function(L){return L.charCodeAt(L.length-1)>=55296&&L.charCodeAt(L.length-1)<=56319},j=2;j<E.length;j+=1)E[j-2][0]===s&&I(E[j-2][1])&&E[j-1][0]===l&&R(E[j-1][1])&&E[j][0]===a&&R(E[j][1])&&(O=!0,E[j-1][1]=E[j-2][1].slice(-1)+E[j-1][1],E[j][1]=E[j-2][1].slice(-1)+E[j][1],E[j-2][1]=E[j-2][1].slice(0,-1));if(!O)return E;for(var B=[],j=0;j<E.length;j+=1)E[j][1].length>0&&B.push(E[j]);return B}function _(E,O,R){for(var I=O+R-1;I>=0&&I>=O-1;I--)if(I+1<E.length){var j=E[I],B=E[I+1];j[0]===B[1]&&E.splice(I,2,[j[0],j[1]+B[1]])}return E}}),(function(n,i){i=n.exports=typeof Object.keys=="function"?Object.keys:l,i.shim=l;function l(a){var s=[];for(var u in a)s.push(u);return s}}),(function(n,i){var l=(function(){return Object.prototype.toString.call(arguments)})()=="[object Arguments]";i=n.exports=l?a:s,i.supported=a;function a(u){return Object.prototype.toString.call(u)=="[object Arguments]"}i.unsupported=s;function s(u){return u&&typeof u=="object"&&typeof u.length=="number"&&Object.prototype.hasOwnProperty.call(u,"callee")&&!Object.prototype.propertyIsEnumerable.call(u,"callee")||!1}}),(function(n,i){var l=Object.prototype.hasOwnProperty,a="~";function s(){}Object.create&&(s.prototype=Object.create(null),new s().__proto__||(a=!1));function u(v,p,f){this.fn=v,this.context=p,this.once=f||!1}function h(){this._events=new s,this._eventsCount=0}h.prototype.eventNames=function(){var p=[],f,d;if(this._eventsCount===0)return p;for(d in f=this._events)l.call(f,d)&&p.push(a?d.slice(1):d);return Object.getOwnPropertySymbols?p.concat(Object.getOwnPropertySymbols(f)):p},h.prototype.listeners=function(p,f){var d=a?a+p:p,m=this._events[d];if(f)return!!m;if(!m)return[];if(m.fn)return[m.fn];for(var S=0,y=m.length,g=new Array(y);S<y;S++)g[S]=m[S].fn;return g},h.prototype.emit=function(p,f,d,m,S,y){var g=a?a+p:p;if(!this._events[g])return!1;var b=this._events[g],x=arguments.length,_,E;if(b.fn){switch(b.once&&this.removeListener(p,b.fn,void 0,!0),x){case 1:return b.fn.call(b.context),!0;case 2:return b.fn.call(b.context,f),!0;case 3:return b.fn.call(b.context,f,d),!0;case 4:return b.fn.call(b.context,f,d,m),!0;case 5:return b.fn.call(b.context,f,d,m,S),!0;case 6:return b.fn.call(b.context,f,d,m,S,y),!0}for(E=1,_=new Array(x-1);E<x;E++)_[E-1]=arguments[E];b.fn.apply(b.context,_)}else{var O=b.length,R;for(E=0;E<O;E++)switch(b[E].once&&this.removeListener(p,b[E].fn,void 0,!0),x){case 1:b[E].fn.call(b[E].context);break;case 2:b[E].fn.call(b[E].context,f);break;case 3:b[E].fn.call(b[E].context,f,d);break;case 4:b[E].fn.call(b[E].context,f,d,m);break;default:if(!_)for(R=1,_=new Array(x-1);R<x;R++)_[R-1]=arguments[R];b[E].fn.apply(b[E].context,_)}}return!0},h.prototype.on=function(p,f,d){var m=new u(f,d||this),S=a?a+p:p;return this._events[S]?this._events[S].fn?this._events[S]=[this._events[S],m]:this._events[S].push(m):(this._events[S]=m,this._eventsCount++),this},h.prototype.once=function(p,f,d){var m=new u(f,d||this,!0),S=a?a+p:p;return this._events[S]?this._events[S].fn?this._events[S]=[this._events[S],m]:this._events[S].push(m):(this._events[S]=m,this._eventsCount++),this},h.prototype.removeListener=function(p,f,d,m){var S=a?a+p:p;if(!this._events[S])return this;if(!f)return--this._eventsCount===0?this._events=new s:delete this._events[S],this;var y=this._events[S];if(y.fn)y.fn===f&&(!m||y.once)&&(!d||y.context===d)&&(--this._eventsCount===0?this._events=new s:delete this._events[S]);else{for(var g=0,b=[],x=y.length;g<x;g++)(y[g].fn!==f||m&&!y[g].once||d&&y[g].context!==d)&&b.push(y[g]);b.length?this._events[S]=b.length===1?b[0]:b:--this._eventsCount===0?this._events=new s:delete this._events[S]}return this},h.prototype.removeAllListeners=function(p){var f;return p?(f=a?a+p:p,this._events[f]&&(--this._eventsCount===0?this._events=new s:delete this._events[f])):(this._events=new s,this._eventsCount=0),this},h.prototype.off=h.prototype.removeListener,h.prototype.addListener=h.prototype.on,h.prototype.setMaxListeners=function(){return this},h.prefixed=a,h.EventEmitter=h,typeof n<"u"&&(n.exports=h)}),(function(n,i,l){Object.defineProperty(i,"__esModule",{value:!0}),i.matchText=i.matchSpacing=i.matchNewline=i.matchBlot=i.matchAttributor=i.default=void 0;var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(he){return typeof he}:function(he){return he&&typeof Symbol=="function"&&he.constructor===Symbol&&he!==Symbol.prototype?"symbol":typeof he},s=(function(){function he(pe,W){var Z=[],J=!0,ge=!1,ye=void 0;try{for(var me=pe[Symbol.iterator](),se;!(J=(se=me.next()).done)&&(Z.push(se.value),!(W&&Z.length===W));J=!0);}catch(ve){ge=!0,ye=ve}finally{try{!J&&me.return&&me.return()}finally{if(ge)throw ye}}return Z}return function(pe,W){if(Array.isArray(pe))return pe;if(Symbol.iterator in Object(pe))return he(pe,W);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),u=(function(){function he(pe,W){for(var Z=0;Z<W.length;Z++){var J=W[Z];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(pe,J.key,J)}}return function(pe,W,Z){return W&&he(pe.prototype,W),Z&&he(pe,Z),pe}})(),h=l(3),v=N(h),p=l(2),f=N(p),d=l(0),m=N(d),S=l(5),y=N(S),g=l(10),b=N(g),x=l(9),_=N(x),E=l(36),O=l(37),R=l(13),I=N(R),j=l(26),B=l(38),L=l(39),P=l(40);function N(he){return he&&he.__esModule?he:{default:he}}function F(he,pe,W){return pe in he?Object.defineProperty(he,pe,{value:W,enumerable:!0,configurable:!0,writable:!0}):he[pe]=W,he}function z(he,pe){if(!(he instanceof pe))throw new TypeError("Cannot call a class as a function")}function H(he,pe){if(!he)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return pe&&(typeof pe=="object"||typeof pe=="function")?pe:he}function Q(he,pe){if(typeof pe!="function"&&pe!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof pe);he.prototype=Object.create(pe&&pe.prototype,{constructor:{value:he,enumerable:!1,writable:!0,configurable:!0}}),pe&&(Object.setPrototypeOf?Object.setPrototypeOf(he,pe):he.__proto__=pe)}var Y=(0,b.default)("quill:clipboard"),X="__ql-matcher",$=[[Node.TEXT_NODE,Ze],[Node.TEXT_NODE,Fe],["br",we],[Node.ELEMENT_NODE,Fe],[Node.ELEMENT_NODE,ce],[Node.ELEMENT_NODE,$e],[Node.ELEMENT_NODE,le],[Node.ELEMENT_NODE,lt],["li",Re],["b",ie.bind(ie,"bold")],["i",ie.bind(ie,"italic")],["style",Oe]],T=[E.AlignAttribute,B.DirectionAttribute].reduce(function(he,pe){return he[pe.keyName]=pe,he},{}),A=[E.AlignStyle,O.BackgroundStyle,j.ColorStyle,B.DirectionStyle,L.FontStyle,P.SizeStyle].reduce(function(he,pe){return he[pe.keyName]=pe,he},{}),q=(function(he){Q(pe,he);function pe(W,Z){z(this,pe);var J=H(this,(pe.__proto__||Object.getPrototypeOf(pe)).call(this,W,Z));return J.quill.root.addEventListener("paste",J.onPaste.bind(J)),J.container=J.quill.addContainer("ql-clipboard"),J.container.setAttribute("contenteditable",!0),J.container.setAttribute("tabindex",-1),J.matchers=[],$.concat(J.options.matchers).forEach(function(ge){var ye=s(ge,2),me=ye[0],se=ye[1];!Z.matchVisual&&se===$e||J.addMatcher(me,se)}),J}return u(pe,[{key:"addMatcher",value:function(Z,J){this.matchers.push([Z,J])}},{key:"convert",value:function(Z){if(typeof Z=="string")return this.container.innerHTML=Z.replace(/\>\r?\n +\</g,"><"),this.convert();var J=this.quill.getFormat(this.quill.selection.savedRange.index);if(J[I.default.blotName]){var ge=this.container.innerText;return this.container.innerHTML="",new f.default().insert(ge,F({},I.default.blotName,J[I.default.blotName]))}var ye=this.prepareMatching(),me=s(ye,2),se=me[0],ve=me[1],xe=K(this.container,se,ve);return te(xe,`
157`)&&xe.ops[xe.ops.length-1].attributes==null&&(xe=xe.compose(new f.default().retain(xe.length()-1).delete(1))),Y.log("convert",this.container.innerHTML,xe),this.container.innerHTML="",xe}},{key:"dangerouslyPasteHTML",value:function(Z,J){var ge=arguments.length>2&&arguments[2]!==void 0?arguments[2]:y.default.sources.API;if(typeof Z=="string")this.quill.setContents(this.convert(Z),J),this.quill.setSelection(0,y.default.sources.SILENT);else{var ye=this.convert(J);this.quill.updateContents(new f.default().retain(Z).concat(ye),ge),this.quill.setSelection(Z+ye.length(),y.default.sources.SILENT)}}},{key:"onPaste",value:function(Z){var J=this;if(!(Z.defaultPrevented||!this.quill.isEnabled())){var ge=this.quill.getSelection(),ye=new f.default().retain(ge.index),me=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(y.default.sources.SILENT),setTimeout(function(){ye=ye.concat(J.convert()).delete(ge.length),J.quill.updateContents(ye,y.default.sources.USER),J.quill.setSelection(ye.length()-ge.length,y.default.sources.SILENT),J.quill.scrollingContainer.scrollTop=me,J.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var Z=this,J=[],ge=[];return this.matchers.forEach(function(ye){var me=s(ye,2),se=me[0],ve=me[1];switch(se){case Node.TEXT_NODE:ge.push(ve);break;case Node.ELEMENT_NODE:J.push(ve);break;default:[].forEach.call(Z.container.querySelectorAll(se),function(xe){xe[X]=xe[X]||[],xe[X].push(ve)});break}}),[J,ge]}}]),pe})(_.default);q.DEFAULTS={matchers:[],matchVisual:!0};function M(he,pe,W){return(typeof pe>"u"?"undefined":a(pe))==="object"?Object.keys(pe).reduce(function(Z,J){return M(Z,J,pe[J])},he):he.reduce(function(Z,J){return J.attributes&&J.attributes[pe]?Z.push(J):Z.insert(J.insert,(0,v.default)({},F({},pe,W),J.attributes))},new f.default)}function ee(he){if(he.nodeType!==Node.ELEMENT_NODE)return{};var pe="__ql-computed-style";return he[pe]||(he[pe]=window.getComputedStyle(he))}function te(he,pe){for(var W="",Z=he.ops.length-1;Z>=0&&W.length<pe.length;--Z){var J=he.ops[Z];if(typeof J.insert!="string")break;W=J.insert+W}return W.slice(-1*pe.length)===pe}function V(he){if(he.childNodes.length===0)return!1;var pe=ee(he);return["block","list-item"].indexOf(pe.display)>-1}function K(he,pe,W){return he.nodeType===he.TEXT_NODE?W.reduce(function(Z,J){return J(he,Z)},new f.default):he.nodeType===he.ELEMENT_NODE?[].reduce.call(he.childNodes||[],function(Z,J){var ge=K(J,pe,W);return J.nodeType===he.ELEMENT_NODE&&(ge=pe.reduce(function(ye,me){return me(J,ye)},ge),ge=(J[X]||[]).reduce(function(ye,me){return me(J,ye)},ge)),Z.concat(ge)},new f.default):new f.default}function ie(he,pe,W){return M(W,he,!0)}function le(he,pe){var W=m.default.Attributor.Attribute.keys(he),Z=m.default.Attributor.Class.keys(he),J=m.default.Attributor.Style.keys(he),ge={};return W.concat(Z).concat(J).forEach(function(ye){var me=m.default.query(ye,m.default.Scope.ATTRIBUTE);me!=null&&(ge[me.attrName]=me.value(he),ge[me.attrName])||(me=T[ye],me!=null&&(me.attrName===ye||me.keyName===ye)&&(ge[me.attrName]=me.value(he)||void 0),me=A[ye],me!=null&&(me.attrName===ye||me.keyName===ye)&&(me=A[ye],ge[me.attrName]=me.value(he)||void 0))}),Object.keys(ge).length>0&&(pe=M(pe,ge)),pe}function ce(he,pe){var W=m.default.query(he);if(W==null)return pe;if(W.prototype instanceof m.default.Embed){var Z={},J=W.value(he);J!=null&&(Z[W.blotName]=J,pe=new f.default().insert(Z,W.formats(he)))}else typeof W.formats=="function"&&(pe=M(pe,W.blotName,W.formats(he)));return pe}function we(he,pe){return te(pe,`
158`)||pe.insert(`
159`),pe}function Oe(){return new f.default}function Re(he,pe){var W=m.default.query(he);if(W==null||W.blotName!=="list-item"||!te(pe,`
160`))return pe;for(var Z=-1,J=he.parentNode;!J.classList.contains("ql-clipboard");)(m.default.query(J)||{}).blotName==="list"&&(Z+=1),J=J.parentNode;return Z<=0?pe:pe.compose(new f.default().retain(pe.length()-1).retain(1,{indent:Z}))}function Fe(he,pe){return te(pe,`
161`)||(V(he)||pe.length()>0&&he.nextSibling&&V(he.nextSibling))&&pe.insert(`
162`),pe}function $e(he,pe){if(V(he)&&he.nextElementSibling!=null&&!te(pe,`
163
164`)){var W=he.offsetHeight+parseFloat(ee(he).marginTop)+parseFloat(ee(he).marginBottom);he.nextElementSibling.offsetTop>he.offsetTop+W*1.5&&pe.insert(`
165`)}return pe}function lt(he,pe){var W={},Z=he.style||{};return Z.fontStyle&&ee(he).fontStyle==="italic"&&(W.italic=!0),Z.fontWeight&&(ee(he).fontWeight.startsWith("bold")||parseInt(ee(he).fontWeight)>=700)&&(W.bold=!0),Object.keys(W).length>0&&(pe=M(pe,W)),parseFloat(Z.textIndent||0)>0&&(pe=new f.default().insert("	").concat(pe)),pe}function Ze(he,pe){var W=he.data;if(he.parentNode.tagName==="O:P")return pe.insert(W.trim());if(W.trim().length===0&&he.parentNode.classList.contains("ql-clipboard"))return pe;if(!ee(he.parentNode).whiteSpace.startsWith("pre")){var Z=function(ge,ye){return ye=ye.replace(/[^\u00a0]/g,""),ye.length<1&&ge?" ":ye};W=W.replace(/\r\n/g," ").replace(/\n/g," "),W=W.replace(/\s\s+/g,Z.bind(Z,!0)),(he.previousSibling==null&&V(he.parentNode)||he.previousSibling!=null&&V(he.previousSibling))&&(W=W.replace(/^\s+/,Z.bind(Z,!1))),(he.nextSibling==null&&V(he.parentNode)||he.nextSibling!=null&&V(he.nextSibling))&&(W=W.replace(/\s+$/,Z.bind(Z,!1)))}return pe.insert(W)}i.default=q,i.matchAttributor=le,i.matchBlot=ce,i.matchNewline=Fe,i.matchSpacing=$e,i.matchText=Ze}),(function(n,i,l){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function S(y,g){for(var b=0;b<g.length;b++){var x=g[b];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(y,x.key,x)}}return function(y,g,b){return g&&S(y.prototype,g),b&&S(y,b),y}})(),s=function S(y,g,b){y===null&&(y=Function.prototype);var x=Object.getOwnPropertyDescriptor(y,g);if(x===void 0){var _=Object.getPrototypeOf(y);return _===null?void 0:S(_,g,b)}else{if("value"in x)return x.value;var E=x.get;return E===void 0?void 0:E.call(b)}},u=l(6),h=v(u);function v(S){return S&&S.__esModule?S:{default:S}}function p(S,y){if(!(S instanceof y))throw new TypeError("Cannot call a class as a function")}function f(S,y){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:S}function d(S,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);S.prototype=Object.create(y&&y.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(S,y):S.__proto__=y)}var m=(function(S){d(y,S);function y(){return p(this,y),f(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return a(y,[{key:"optimize",value:function(b){s(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"optimize",this).call(this,b),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return s(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),y})(h.default);m.blotName="bold",m.tagName=["STRONG","B"],i.default=m}),(function(n,i,l){Object.defineProperty(i,"__esModule",{value:!0}),i.addControls=i.default=void 0;var a=(function(){function P(N,F){var z=[],H=!0,Q=!1,Y=void 0;try{for(var X=N[Symbol.iterator](),$;!(H=($=X.next()).done)&&(z.push($.value),!(F&&z.length===F));H=!0);}catch(T){Q=!0,Y=T}finally{try{!H&&X.return&&X.return()}finally{if(Q)throw Y}}return z}return function(N,F){if(Array.isArray(N))return N;if(Symbol.iterator in Object(N))return P(N,F);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),s=(function(){function P(N,F){for(var z=0;z<F.length;z++){var H=F[z];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(N,H.key,H)}}return function(N,F,z){return F&&P(N.prototype,F),z&&P(N,z),N}})(),u=l(2),h=b(u),v=l(0),p=b(v),f=l(5),d=b(f),m=l(10),S=b(m),y=l(9),g=b(y);function b(P){return P&&P.__esModule?P:{default:P}}function x(P,N,F){return N in P?Object.defineProperty(P,N,{value:F,enumerable:!0,configurable:!0,writable:!0}):P[N]=F,P}function _(P,N){if(!(P instanceof N))throw new TypeError("Cannot call a class as a function")}function E(P,N){if(!P)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N&&(typeof N=="object"||typeof N=="function")?N:P}function O(P,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof N);P.prototype=Object.create(N&&N.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}}),N&&(Object.setPrototypeOf?Object.setPrototypeOf(P,N):P.__proto__=N)}var R=(0,S.default)("quill:toolbar"),I=(function(P){O(N,P);function N(F,z){_(this,N);var H=E(this,(N.__proto__||Object.getPrototypeOf(N)).call(this,F,z));if(Array.isArray(H.options.container)){var Q=document.createElement("div");B(Q,H.options.container),F.container.parentNode.insertBefore(Q,F.container),H.container=Q}else typeof H.options.container=="string"?H.container=document.querySelector(H.options.container):H.container=H.options.container;if(!(H.container instanceof HTMLElement)){var Y;return Y=R.error("Container required for toolbar",H.options),E(H,Y)}return H.container.classList.add("ql-toolbar"),H.controls=[],H.handlers={},Object.keys(H.options.handlers).forEach(function(X){H.addHandler(X,H.options.handlers[X])}),[].forEach.call(H.container.querySelectorAll("button, select"),function(X){H.attach(X)}),H.quill.on(d.default.events.EDITOR_CHANGE,function(X,$){X===d.default.events.SELECTION_CHANGE&&H.update($)}),H.quill.on(d.default.events.SCROLL_OPTIMIZE,function(){var X=H.quill.selection.getRange(),$=a(X,1),T=$[0];H.update(T)}),H}return s(N,[{key:"addHandler",value:function(z,H){this.handlers[z]=H}},{key:"attach",value:function(z){var H=this,Q=[].find.call(z.classList,function(X){return X.indexOf("ql-")===0});if(Q){if(Q=Q.slice(3),z.tagName==="BUTTON"&&z.setAttribute("type","button"),this.handlers[Q]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[Q]==null){R.warn("ignoring attaching to disabled format",Q,z);return}if(p.default.query(Q)==null){R.warn("ignoring attaching to nonexistent format",Q,z);return}}var Y=z.tagName==="SELECT"?"change":"click";z.addEventListener(Y,function(X){var $=void 0;if(z.tagName==="SELECT"){if(z.selectedIndex<0)return;var T=z.options[z.selectedIndex];T.hasAttribute("selected")?$=!1:$=T.value||!1}else z.classList.contains("ql-active")?$=!1:$=z.value||!z.hasAttribute("value"),X.preventDefault();H.quill.focus();var A=H.quill.selection.getRange(),q=a(A,1),M=q[0];if(H.handlers[Q]!=null)H.handlers[Q].call(H,$);else if(p.default.query(Q).prototype instanceof p.default.Embed){if($=prompt("Enter "+Q),!$)return;H.quill.updateContents(new h.default().retain(M.index).delete(M.length).insert(x({},Q,$)),d.default.sources.USER)}else H.quill.format(Q,$,d.default.sources.USER);H.update(M)}),this.controls.push([Q,z])}}},{key:"update",value:function(z){var H=z==null?{}:this.quill.getFormat(z);this.controls.forEach(function(Q){var Y=a(Q,2),X=Y[0],$=Y[1];if($.tagName==="SELECT"){var T=void 0;if(z==null)T=null;else if(H[X]==null)T=$.querySelector("option[selected]");else if(!Array.isArray(H[X])){var A=H[X];typeof A=="string"&&(A=A.replace(/\"/g,'\\"')),T=$.querySelector('option[value="'+A+'"]')}T==null?($.value="",$.selectedIndex=-1):T.selected=!0}else if(z==null)$.classList.remove("ql-active");else if($.hasAttribute("value")){var q=H[X]===$.getAttribute("value")||H[X]!=null&&H[X].toString()===$.getAttribute("value")||H[X]==null&&!$.getAttribute("value");$.classList.toggle("ql-active",q)}else $.classList.toggle("ql-active",H[X]!=null)})}}]),N})(g.default);I.DEFAULTS={};function j(P,N,F){var z=document.createElement("button");z.setAttribute("type","button"),z.classList.add("ql-"+N),F!=null&&(z.value=F),P.appendChild(z)}function B(P,N){Array.isArray(N[0])||(N=[N]),N.forEach(function(F){var z=document.createElement("span");z.classList.add("ql-formats"),F.forEach(function(H){if(typeof H=="string")j(z,H);else{var Q=Object.keys(H)[0],Y=H[Q];Array.isArray(Y)?L(z,Q,Y):j(z,Q,Y)}}),P.appendChild(z)})}function L(P,N,F){var z=document.createElement("select");z.classList.add("ql-"+N),F.forEach(function(H){var Q=document.createElement("option");H!==!1?Q.setAttribute("value",H):Q.setAttribute("selected","selected"),z.appendChild(Q)}),P.appendChild(z)}I.DEFAULTS={container:null,handlers:{clean:function(){var N=this,F=this.quill.getSelection();if(F!=null)if(F.length==0){var z=this.quill.getFormat();Object.keys(z).forEach(function(H){p.default.query(H,p.default.Scope.INLINE)!=null&&N.quill.format(H,!1)})}else this.quill.removeFormat(F,d.default.sources.USER)},direction:function(N){var F=this.quill.getFormat().align;N==="rtl"&&F==null?this.quill.format("align","right",d.default.sources.USER):!N&&F==="right"&&this.quill.format("align",!1,d.default.sources.USER),this.quill.format("direction",N,d.default.sources.USER)},indent:function(N){var F=this.quill.getSelection(),z=this.quill.getFormat(F),H=parseInt(z.indent||0);if(N==="+1"||N==="-1"){var Q=N==="+1"?1:-1;z.direction==="rtl"&&(Q*=-1),this.quill.format("indent",H+Q,d.default.sources.USER)}},link:function(N){N===!0&&(N=prompt("Enter link URL:")),this.quill.format("link",N,d.default.sources.USER)},list:function(N){var F=this.quill.getSelection(),z=this.quill.getFormat(F);N==="check"?z.list==="checked"||z.list==="unchecked"?this.quill.format("list",!1,d.default.sources.USER):this.quill.format("list","unchecked",d.default.sources.USER):this.quill.format("list",N,d.default.sources.USER)}}},i.default=I,i.addControls=B}),(function(n,i){n.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'}),(function(n,i,l){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function S(y,g){for(var b=0;b<g.length;b++){var x=g[b];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(y,x.key,x)}}return function(y,g,b){return g&&S(y.prototype,g),b&&S(y,b),y}})(),s=function S(y,g,b){y===null&&(y=Function.prototype);var x=Object.getOwnPropertyDescriptor(y,g);if(x===void 0){var _=Object.getPrototypeOf(y);return _===null?void 0:S(_,g,b)}else{if("value"in x)return x.value;var E=x.get;return E===void 0?void 0:E.call(b)}},u=l(28),h=v(u);function v(S){return S&&S.__esModule?S:{default:S}}function p(S,y){if(!(S instanceof y))throw new TypeError("Cannot call a class as a function")}function f(S,y){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:S}function d(S,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);S.prototype=Object.create(y&&y.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(S,y):S.__proto__=y)}var m=(function(S){d(y,S);function y(g,b){p(this,y);var x=f(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,g));return x.label.innerHTML=b,x.container.classList.add("ql-color-picker"),[].slice.call(x.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(_){_.classList.add("ql-primary")}),x}return a(y,[{key:"buildItem",value:function(b){var x=s(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"buildItem",this).call(this,b);return x.style.backgroundColor=b.getAttribute("value")||"",x}},{key:"selectItem",value:function(b,x){s(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"selectItem",this).call(this,b,x);var _=this.label.querySelector(".ql-color-label"),E=b&&b.getAttribute("data-value")||"";_&&(_.tagName==="line"?_.style.stroke=E:_.style.fill=E)}}]),y})(h.default);i.default=m}),(function(n,i,l){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function S(y,g){for(var b=0;b<g.length;b++){var x=g[b];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(y,x.key,x)}}return function(y,g,b){return g&&S(y.prototype,g),b&&S(y,b),y}})(),s=function S(y,g,b){y===null&&(y=Function.prototype);var x=Object.getOwnPropertyDescriptor(y,g);if(x===void 0){var _=Object.getPrototypeOf(y);return _===null?void 0:S(_,g,b)}else{if("value"in x)return x.value;var E=x.get;return E===void 0?void 0:E.call(b)}},u=l(28),h=v(u);function v(S){return S&&S.__esModule?S:{default:S}}function p(S,y){if(!(S instanceof y))throw new TypeError("Cannot call a class as a function")}function f(S,y){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:S}function d(S,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);S.prototype=Object.create(y&&y.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(S,y):S.__proto__=y)}var m=(function(S){d(y,S);function y(g,b){p(this,y);var x=f(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,g));return x.container.classList.add("ql-icon-picker"),[].forEach.call(x.container.querySelectorAll(".ql-picker-item"),function(_){_.innerHTML=b[_.getAttribute("data-value")||""]}),x.defaultItem=x.container.querySelector(".ql-selected"),x.selectItem(x.defaultItem),x}return a(y,[{key:"selectItem",value:function(b,x){s(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"selectItem",this).call(this,b,x),b=b||this.defaultItem,this.label.innerHTML=b.innerHTML}}]),y})(h.default);i.default=m}),(function(n,i,l){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function h(v,p){for(var f=0;f<p.length;f++){var d=p[f];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(v,d.key,d)}}return function(v,p,f){return p&&h(v.prototype,p),f&&h(v,f),v}})();function s(h,v){if(!(h instanceof v))throw new TypeError("Cannot call a class as a function")}var u=(function(){function h(v,p){var f=this;s(this,h),this.quill=v,this.boundsContainer=p||document.body,this.root=v.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){f.root.style.marginTop=-1*f.quill.root.scrollTop+"px"}),this.hide()}return a(h,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(p){var f=p.left+p.width/2-this.root.offsetWidth/2,d=p.bottom+this.quill.root.scrollTop;this.root.style.left=f+"px",this.root.style.top=d+"px",this.root.classList.remove("ql-flip");var m=this.boundsContainer.getBoundingClientRect(),S=this.root.getBoundingClientRect(),y=0;if(S.right>m.right&&(y=m.right-S.right,this.root.style.left=f+y+"px"),S.left<m.left&&(y=m.left-S.left,this.root.style.left=f+y+"px"),S.bottom>m.bottom){var g=S.bottom-S.top,b=p.bottom-p.top+g;this.root.style.top=d-b+"px",this.root.classList.add("ql-flip")}return y}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),h})();i.default=u}),(function(n,i,l){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function L(P,N){var F=[],z=!0,H=!1,Q=void 0;try{for(var Y=P[Symbol.iterator](),X;!(z=(X=Y.next()).done)&&(F.push(X.value),!(N&&F.length===N));z=!0);}catch($){H=!0,Q=$}finally{try{!z&&Y.return&&Y.return()}finally{if(H)throw Q}}return F}return function(P,N){if(Array.isArray(P))return P;if(Symbol.iterator in Object(P))return L(P,N);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),s=function L(P,N,F){P===null&&(P=Function.prototype);var z=Object.getOwnPropertyDescriptor(P,N);if(z===void 0){var H=Object.getPrototypeOf(P);return H===null?void 0:L(H,N,F)}else{if("value"in z)return z.value;var Q=z.get;return Q===void 0?void 0:Q.call(F)}},u=(function(){function L(P,N){for(var F=0;F<N.length;F++){var z=N[F];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(P,z.key,z)}}return function(P,N,F){return N&&L(P.prototype,N),F&&L(P,F),P}})(),h=l(3),v=_(h),p=l(8),f=_(p),d=l(43),m=_(d),S=l(27),y=_(S),g=l(15),b=l(41),x=_(b);function _(L){return L&&L.__esModule?L:{default:L}}function E(L,P){if(!(L instanceof P))throw new TypeError("Cannot call a class as a function")}function O(L,P){if(!L)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P&&(typeof P=="object"||typeof P=="function")?P:L}function R(L,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof P);L.prototype=Object.create(P&&P.prototype,{constructor:{value:L,enumerable:!1,writable:!0,configurable:!0}}),P&&(Object.setPrototypeOf?Object.setPrototypeOf(L,P):L.__proto__=P)}var I=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],j=(function(L){R(P,L);function P(N,F){E(this,P),F.modules.toolbar!=null&&F.modules.toolbar.container==null&&(F.modules.toolbar.container=I);var z=O(this,(P.__proto__||Object.getPrototypeOf(P)).call(this,N,F));return z.quill.container.classList.add("ql-snow"),z}return u(P,[{key:"extendToolbar",value:function(F){F.container.classList.add("ql-snow"),this.buildButtons([].slice.call(F.container.querySelectorAll("button")),x.default),this.buildPickers([].slice.call(F.container.querySelectorAll("select")),x.default),this.tooltip=new B(this.quill,this.options.bounds),F.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(z,H){F.handlers.link.call(F,!H.format.link)})}}]),P})(m.default);j.DEFAULTS=(0,v.default)(!0,{},m.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(P){if(P){var N=this.quill.getSelection();if(N==null||N.length==0)return;var F=this.quill.getText(N);/^\S+@\S+\.\S+$/.test(F)&&F.indexOf("mailto:")!==0&&(F="mailto:"+F);var z=this.quill.theme.tooltip;z.edit("link",F)}else this.quill.format("link",!1)}}}}});var B=(function(L){R(P,L);function P(N,F){E(this,P);var z=O(this,(P.__proto__||Object.getPrototypeOf(P)).call(this,N,F));return z.preview=z.root.querySelector("a.ql-preview"),z}return u(P,[{key:"listen",value:function(){var F=this;s(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(z){F.root.classList.contains("ql-editing")?F.save():F.edit("link",F.preview.textContent),z.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(z){if(F.linkRange!=null){var H=F.linkRange;F.restoreFocus(),F.quill.formatText(H,"link",!1,f.default.sources.USER),delete F.linkRange}z.preventDefault(),F.hide()}),this.quill.on(f.default.events.SELECTION_CHANGE,function(z,H,Q){if(z!=null){if(z.length===0&&Q===f.default.sources.USER){var Y=F.quill.scroll.descendant(y.default,z.index),X=a(Y,2),$=X[0],T=X[1];if($!=null){F.linkRange=new g.Range(z.index-T,$.length());var A=y.default.formats($.domNode);F.preview.textContent=A,F.preview.setAttribute("href",A),F.show(),F.position(F.quill.getBounds(F.linkRange));return}}else delete F.linkRange;F.hide()}})}},{key:"show",value:function(){s(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),P})(d.BaseTooltip);B.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),i.default=j}),(function(n,i,l){Object.defineProperty(i,"__esModule",{value:!0});var a=l(29),s=J(a),u=l(36),h=l(38),v=l(64),p=l(65),f=J(p),d=l(66),m=J(d),S=l(67),y=J(S),g=l(37),b=l(26),x=l(39),_=l(40),E=l(56),O=J(E),R=l(68),I=J(R),j=l(27),B=J(j),L=l(69),P=J(L),N=l(70),F=J(N),z=l(71),H=J(z),Q=l(72),Y=J(Q),X=l(73),$=J(X),T=l(13),A=J(T),q=l(74),M=J(q),ee=l(75),te=J(ee),V=l(57),K=J(V),ie=l(41),le=J(ie),ce=l(28),we=J(ce),Oe=l(59),Re=J(Oe),Fe=l(60),$e=J(Fe),lt=l(61),Ze=J(lt),he=l(108),pe=J(he),W=l(62),Z=J(W);function J(ge){return ge&&ge.__esModule?ge:{default:ge}}s.default.register({"attributors/attribute/direction":h.DirectionAttribute,"attributors/class/align":u.AlignClass,"attributors/class/background":g.BackgroundClass,"attributors/class/color":b.ColorClass,"attributors/class/direction":h.DirectionClass,"attributors/class/font":x.FontClass,"attributors/class/size":_.SizeClass,"attributors/style/align":u.AlignStyle,"attributors/style/background":g.BackgroundStyle,"attributors/style/color":b.ColorStyle,"attributors/style/direction":h.DirectionStyle,"attributors/style/font":x.FontStyle,"attributors/style/size":_.SizeStyle},!0),s.default.register({"formats/align":u.AlignClass,"formats/direction":h.DirectionClass,"formats/indent":v.IndentClass,"formats/background":g.BackgroundStyle,"formats/color":b.ColorStyle,"formats/font":x.FontClass,"formats/size":_.SizeClass,"formats/blockquote":f.default,"formats/code-block":A.default,"formats/header":m.default,"formats/list":y.default,"formats/bold":O.default,"formats/code":T.Code,"formats/italic":I.default,"formats/link":B.default,"formats/script":P.default,"formats/strike":F.default,"formats/underline":H.default,"formats/image":Y.default,"formats/video":$.default,"formats/list/item":S.ListItem,"modules/formula":M.default,"modules/syntax":te.default,"modules/toolbar":K.default,"themes/bubble":pe.default,"themes/snow":Z.default,"ui/icons":le.default,"ui/picker":we.default,"ui/icon-picker":$e.default,"ui/color-picker":Re.default,"ui/tooltip":Ze.default},!0),i.default=s.default}),(function(n,i,l){Object.defineProperty(i,"__esModule",{value:!0}),i.IndentClass=void 0;var a=(function(){function y(g,b){for(var x=0;x<b.length;x++){var _=b[x];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(g,_.key,_)}}return function(g,b,x){return b&&y(g.prototype,b),x&&y(g,x),g}})(),s=function y(g,b,x){g===null&&(g=Function.prototype);var _=Object.getOwnPropertyDescriptor(g,b);if(_===void 0){var E=Object.getPrototypeOf(g);return E===null?void 0:y(E,b,x)}else{if("value"in _)return _.value;var O=_.get;return O===void 0?void 0:O.call(x)}},u=l(0),h=v(u);function v(y){return y&&y.__esModule?y:{default:y}}function p(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")}function f(y,g){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:y}function d(y,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);y.prototype=Object.create(g&&g.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(y,g):y.__proto__=g)}var m=(function(y){d(g,y);function g(){return p(this,g),f(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return a(g,[{key:"add",value:function(x,_){if(_==="+1"||_==="-1"){var E=this.value(x)||0;_=_==="+1"?E+1:E-1}return _===0?(this.remove(x),!0):s(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"add",this).call(this,x,_)}},{key:"canAdd",value:function(x,_){return s(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"canAdd",this).call(this,x,_)||s(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"canAdd",this).call(this,x,parseInt(_))}},{key:"value",value:function(x){return parseInt(s(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"value",this).call(this,x))||void 0}}]),g})(h.default.Attributor.Class),S=new m("indent","ql-indent",{scope:h.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});i.IndentClass=S}),(function(n,i,l){Object.defineProperty(i,"__esModule",{value:!0});var a=l(4),s=u(a);function u(d){return d&&d.__esModule?d:{default:d}}function h(d,m){if(!(d instanceof m))throw new TypeError("Cannot call a class as a function")}function v(d,m){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:d}function p(d,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);d.prototype=Object.create(m&&m.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(d,m):d.__proto__=m)}var f=(function(d){p(m,d);function m(){return h(this,m),v(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return m})(s.default);f.blotName="blockquote",f.tagName="blockquote",i.default=f}),(function(n,i,l){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function m(S,y){for(var g=0;g<y.length;g++){var b=y[g];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(S,b.key,b)}}return function(S,y,g){return y&&m(S.prototype,y),g&&m(S,g),S}})(),s=l(4),u=h(s);function h(m){return m&&m.__esModule?m:{default:m}}function v(m,S){if(!(m instanceof S))throw new TypeError("Cannot call a class as a function")}function p(m,S){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S&&(typeof S=="object"||typeof S=="function")?S:m}function f(m,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof S);m.prototype=Object.create(S&&S.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(m,S):m.__proto__=S)}var d=(function(m){f(S,m);function S(){return v(this,S),p(this,(S.__proto__||Object.getPrototypeOf(S)).apply(this,arguments))}return a(S,null,[{key:"formats",value:function(g){return this.tagName.indexOf(g.tagName)+1}}]),S})(u.default);d.blotName="header",d.tagName=["H1","H2","H3","H4","H5","H6"],i.default=d}),(function(n,i,l){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.ListItem=void 0;var a=(function(){function E(O,R){for(var I=0;I<R.length;I++){var j=R[I];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(O,j.key,j)}}return function(O,R,I){return R&&E(O.prototype,R),I&&E(O,I),O}})(),s=function E(O,R,I){O===null&&(O=Function.prototype);var j=Object.getOwnPropertyDescriptor(O,R);if(j===void 0){var B=Object.getPrototypeOf(O);return B===null?void 0:E(B,R,I)}else{if("value"in j)return j.value;var L=j.get;return L===void 0?void 0:L.call(I)}},u=l(0),h=m(u),v=l(4),p=m(v),f=l(25),d=m(f);function m(E){return E&&E.__esModule?E:{default:E}}function S(E,O,R){return O in E?Object.defineProperty(E,O,{value:R,enumerable:!0,configurable:!0,writable:!0}):E[O]=R,E}function y(E,O){if(!(E instanceof O))throw new TypeError("Cannot call a class as a function")}function g(E,O){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:E}function b(E,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);E.prototype=Object.create(O&&O.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(E,O):E.__proto__=O)}var x=(function(E){b(O,E);function O(){return y(this,O),g(this,(O.__proto__||Object.getPrototypeOf(O)).apply(this,arguments))}return a(O,[{key:"format",value:function(I,j){I===_.blotName&&!j?this.replaceWith(h.default.create(this.statics.scope)):s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"format",this).call(this,I,j)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(I,j){return this.parent.isolate(this.offset(this.parent),this.length()),I===this.parent.statics.blotName?(this.parent.replaceWith(I,j),this):(this.parent.unwrap(),s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"replaceWith",this).call(this,I,j))}}],[{key:"formats",value:function(I){return I.tagName===this.tagName?void 0:s(O.__proto__||Object.getPrototypeOf(O),"formats",this).call(this,I)}}]),O})(p.default);x.blotName="list-item",x.tagName="LI";var _=(function(E){b(O,E),a(O,null,[{key:"create",value:function(I){var j=I==="ordered"?"OL":"UL",B=s(O.__proto__||Object.getPrototypeOf(O),"create",this).call(this,j);return(I==="checked"||I==="unchecked")&&B.setAttribute("data-checked",I==="checked"),B}},{key:"formats",value:function(I){if(I.tagName==="OL")return"ordered";if(I.tagName==="UL")return I.hasAttribute("data-checked")?I.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function O(R){y(this,O);var I=g(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,R)),j=function(L){if(L.target.parentNode===R){var P=I.statics.formats(R),N=h.default.find(L.target);P==="checked"?N.format("list","unchecked"):P==="unchecked"&&N.format("list","checked")}};return R.addEventListener("touchstart",j),R.addEventListener("mousedown",j),I}return a(O,[{key:"format",value:function(I,j){this.children.length>0&&this.children.tail.format(I,j)}},{key:"formats",value:function(){return S({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(I,j){if(I instanceof x)s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertBefore",this).call(this,I,j);else{var B=j==null?this.length():j.offset(this),L=this.split(B);L.parent.insertBefore(I,L)}}},{key:"optimize",value:function(I){s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"optimize",this).call(this,I);var j=this.next;j!=null&&j.prev===this&&j.statics.blotName===this.statics.blotName&&j.domNode.tagName===this.domNode.tagName&&j.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(j.moveChildren(this),j.remove())}},{key:"replace",value:function(I){if(I.statics.blotName!==this.statics.blotName){var j=h.default.create(this.statics.defaultChild);I.moveChildren(j),this.appendChild(j)}s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"replace",this).call(this,I)}}]),O})(d.default);_.blotName="list",_.scope=h.default.Scope.BLOCK_BLOT,_.tagName=["OL","UL"],_.defaultChild="list-item",_.allowedChildren=[x],i.ListItem=x,i.default=_}),(function(n,i,l){Object.defineProperty(i,"__esModule",{value:!0});var a=l(56),s=u(a);function u(d){return d&&d.__esModule?d:{default:d}}function h(d,m){if(!(d instanceof m))throw new TypeError("Cannot call a class as a function")}function v(d,m){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:d}function p(d,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);d.prototype=Object.create(m&&m.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(d,m):d.__proto__=m)}var f=(function(d){p(m,d);function m(){return h(this,m),v(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return m})(s.default);f.blotName="italic",f.tagName=["EM","I"],i.default=f}),(function(n,i,l){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function S(y,g){for(var b=0;b<g.length;b++){var x=g[b];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(y,x.key,x)}}return function(y,g,b){return g&&S(y.prototype,g),b&&S(y,b),y}})(),s=function S(y,g,b){y===null&&(y=Function.prototype);var x=Object.getOwnPropertyDescriptor(y,g);if(x===void 0){var _=Object.getPrototypeOf(y);return _===null?void 0:S(_,g,b)}else{if("value"in x)return x.value;var E=x.get;return E===void 0?void 0:E.call(b)}},u=l(6),h=v(u);function v(S){return S&&S.__esModule?S:{default:S}}function p(S,y){if(!(S instanceof y))throw new TypeError("Cannot call a class as a function")}function f(S,y){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:S}function d(S,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);S.prototype=Object.create(y&&y.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(S,y):S.__proto__=y)}var m=(function(S){d(y,S);function y(){return p(this,y),f(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return a(y,null,[{key:"create",value:function(b){return b==="super"?document.createElement("sup"):b==="sub"?document.createElement("sub"):s(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,b)}},{key:"formats",value:function(b){if(b.tagName==="SUB")return"sub";if(b.tagName==="SUP")return"super"}}]),y})(h.default);m.blotName="script",m.tagName=["SUB","SUP"],i.default=m}),(function(n,i,l){Object.defineProperty(i,"__esModule",{value:!0});var a=l(6),s=u(a);function u(d){return d&&d.__esModule?d:{default:d}}function h(d,m){if(!(d instanceof m))throw new TypeError("Cannot call a class as a function")}function v(d,m){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:d}function p(d,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);d.prototype=Object.create(m&&m.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(d,m):d.__proto__=m)}var f=(function(d){p(m,d);function m(){return h(this,m),v(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return m})(s.default);f.blotName="strike",f.tagName="S",i.default=f}),(function(n,i,l){Object.defineProperty(i,"__esModule",{value:!0});var a=l(6),s=u(a);function u(d){return d&&d.__esModule?d:{default:d}}function h(d,m){if(!(d instanceof m))throw new TypeError("Cannot call a class as a function")}function v(d,m){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:d}function p(d,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);d.prototype=Object.create(m&&m.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(d,m):d.__proto__=m)}var f=(function(d){p(m,d);function m(){return h(this,m),v(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return m})(s.default);f.blotName="underline",f.tagName="U",i.default=f}),(function(n,i,l){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function g(b,x){for(var _=0;_<x.length;_++){var E=x[_];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(b,E.key,E)}}return function(b,x,_){return x&&g(b.prototype,x),_&&g(b,_),b}})(),s=function g(b,x,_){b===null&&(b=Function.prototype);var E=Object.getOwnPropertyDescriptor(b,x);if(E===void 0){var O=Object.getPrototypeOf(b);return O===null?void 0:g(O,x,_)}else{if("value"in E)return E.value;var R=E.get;return R===void 0?void 0:R.call(_)}},u=l(0),h=p(u),v=l(27);function p(g){return g&&g.__esModule?g:{default:g}}function f(g,b){if(!(g instanceof b))throw new TypeError("Cannot call a class as a function")}function d(g,b){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:g}function m(g,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);g.prototype=Object.create(b&&b.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(g,b):g.__proto__=b)}var S=["alt","height","width"],y=(function(g){m(b,g);function b(){return f(this,b),d(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return a(b,[{key:"format",value:function(_,E){S.indexOf(_)>-1?E?this.domNode.setAttribute(_,E):this.domNode.removeAttribute(_):s(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"format",this).call(this,_,E)}}],[{key:"create",value:function(_){var E=s(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this,_);return typeof _=="string"&&E.setAttribute("src",this.sanitize(_)),E}},{key:"formats",value:function(_){return S.reduce(function(E,O){return _.hasAttribute(O)&&(E[O]=_.getAttribute(O)),E},{})}},{key:"match",value:function(_){return/\.(jpe?g|gif|png)$/.test(_)||/^data:image\/.+;base64/.test(_)}},{key:"sanitize",value:function(_){return(0,v.sanitize)(_,["http","https","data"])?_:"//:0"}},{key:"value",value:function(_){return _.getAttribute("src")}}]),b})(h.default.Embed);y.blotName="image",y.tagName="IMG",i.default=y}),(function(n,i,l){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function g(b,x){for(var _=0;_<x.length;_++){var E=x[_];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(b,E.key,E)}}return function(b,x,_){return x&&g(b.prototype,x),_&&g(b,_),b}})(),s=function g(b,x,_){b===null&&(b=Function.prototype);var E=Object.getOwnPropertyDescriptor(b,x);if(E===void 0){var O=Object.getPrototypeOf(b);return O===null?void 0:g(O,x,_)}else{if("value"in E)return E.value;var R=E.get;return R===void 0?void 0:R.call(_)}},u=l(4),h=l(27),v=p(h);function p(g){return g&&g.__esModule?g:{default:g}}function f(g,b){if(!(g instanceof b))throw new TypeError("Cannot call a class as a function")}function d(g,b){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:g}function m(g,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);g.prototype=Object.create(b&&b.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(g,b):g.__proto__=b)}var S=["height","width"],y=(function(g){m(b,g);function b(){return f(this,b),d(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return a(b,[{key:"format",value:function(_,E){S.indexOf(_)>-1?E?this.domNode.setAttribute(_,E):this.domNode.removeAttribute(_):s(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"format",this).call(this,_,E)}}],[{key:"create",value:function(_){var E=s(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this,_);return E.setAttribute("frameborder","0"),E.setAttribute("allowfullscreen",!0),E.setAttribute("src",this.sanitize(_)),E}},{key:"formats",value:function(_){return S.reduce(function(E,O){return _.hasAttribute(O)&&(E[O]=_.getAttribute(O)),E},{})}},{key:"sanitize",value:function(_){return v.default.sanitize(_)}},{key:"value",value:function(_){return _.getAttribute("src")}}]),b})(u.BlockEmbed);y.blotName="video",y.className="ql-video",y.tagName="IFRAME",i.default=y}),(function(n,i,l){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.FormulaBlot=void 0;var a=(function(){function _(E,O){for(var R=0;R<O.length;R++){var I=O[R];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(E,I.key,I)}}return function(E,O,R){return O&&_(E.prototype,O),R&&_(E,R),E}})(),s=function _(E,O,R){E===null&&(E=Function.prototype);var I=Object.getOwnPropertyDescriptor(E,O);if(I===void 0){var j=Object.getPrototypeOf(E);return j===null?void 0:_(j,O,R)}else{if("value"in I)return I.value;var B=I.get;return B===void 0?void 0:B.call(R)}},u=l(35),h=m(u),v=l(5),p=m(v),f=l(9),d=m(f);function m(_){return _&&_.__esModule?_:{default:_}}function S(_,E){if(!(_ instanceof E))throw new TypeError("Cannot call a class as a function")}function y(_,E){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:_}function g(_,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);_.prototype=Object.create(E&&E.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(_,E):_.__proto__=E)}var b=(function(_){g(E,_);function E(){return S(this,E),y(this,(E.__proto__||Object.getPrototypeOf(E)).apply(this,arguments))}return a(E,null,[{key:"create",value:function(R){var I=s(E.__proto__||Object.getPrototypeOf(E),"create",this).call(this,R);return typeof R=="string"&&(window.katex.render(R,I,{throwOnError:!1,errorColor:"#f00"}),I.setAttribute("data-value",R)),I}},{key:"value",value:function(R){return R.getAttribute("data-value")}}]),E})(h.default);b.blotName="formula",b.className="ql-formula",b.tagName="SPAN";var x=(function(_){g(E,_),a(E,null,[{key:"register",value:function(){p.default.register(b,!0)}}]);function E(){S(this,E);var O=y(this,(E.__proto__||Object.getPrototypeOf(E)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return O}return E})(d.default);i.FormulaBlot=b,i.default=x}),(function(n,i,l){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.CodeToken=i.CodeBlock=void 0;var a=(function(){function R(I,j){for(var B=0;B<j.length;B++){var L=j[B];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(I,L.key,L)}}return function(I,j,B){return j&&R(I.prototype,j),B&&R(I,B),I}})(),s=function R(I,j,B){I===null&&(I=Function.prototype);var L=Object.getOwnPropertyDescriptor(I,j);if(L===void 0){var P=Object.getPrototypeOf(I);return P===null?void 0:R(P,j,B)}else{if("value"in L)return L.value;var N=L.get;return N===void 0?void 0:N.call(B)}},u=l(0),h=y(u),v=l(5),p=y(v),f=l(9),d=y(f),m=l(13),S=y(m);function y(R){return R&&R.__esModule?R:{default:R}}function g(R,I){if(!(R instanceof I))throw new TypeError("Cannot call a class as a function")}function b(R,I){if(!R)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I&&(typeof I=="object"||typeof I=="function")?I:R}function x(R,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof I);R.prototype=Object.create(I&&I.prototype,{constructor:{value:R,enumerable:!1,writable:!0,configurable:!0}}),I&&(Object.setPrototypeOf?Object.setPrototypeOf(R,I):R.__proto__=I)}var _=(function(R){x(I,R);function I(){return g(this,I),b(this,(I.__proto__||Object.getPrototypeOf(I)).apply(this,arguments))}return a(I,[{key:"replaceWith",value:function(B){this.domNode.textContent=this.domNode.textContent,this.attach(),s(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"replaceWith",this).call(this,B)}},{key:"highlight",value:function(B){var L=this.domNode.textContent;this.cachedText!==L&&((L.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=B(L),this.domNode.normalize(),this.attach()),this.cachedText=L)}}]),I})(S.default);_.className="ql-syntax";var E=new h.default.Attributor.Class("token","hljs",{scope:h.default.Scope.INLINE}),O=(function(R){x(I,R),a(I,null,[{key:"register",value:function(){p.default.register(E,!0),p.default.register(_,!0)}}]);function I(j,B){g(this,I);var L=b(this,(I.__proto__||Object.getPrototypeOf(I)).call(this,j,B));if(typeof L.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var P=null;return L.quill.on(p.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(P),P=setTimeout(function(){L.highlight(),P=null},L.options.interval)}),L.highlight(),L}return a(I,[{key:"highlight",value:function(){var B=this;if(!this.quill.selection.composing){this.quill.update(p.default.sources.USER);var L=this.quill.getSelection();this.quill.scroll.descendants(_).forEach(function(P){P.highlight(B.options.highlight)}),this.quill.update(p.default.sources.SILENT),L!=null&&this.quill.setSelection(L,p.default.sources.SILENT)}}}]),I})(d.default);O.DEFAULTS={highlight:(function(){return window.hljs==null?null:function(R){var I=window.hljs.highlightAuto(R);return I.value}})(),interval:1e3},i.CodeBlock=_,i.CodeToken=E,i.default=O}),(function(n,i){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'}),(function(n,i){n.exports='<svg viewbox="0 0 18 18">
165 <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'}),(function(n,i){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'}),(function(n,i){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'}),(function(n,i){n.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'}),(function(n,i){n.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'}),(function(n,i){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'}),(function(n,i){n.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'}),(function(n,i){n.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'}),(function(n,i){n.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'}),(function(n,i){n.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'}),(function(n,i){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'}),(function(n,i){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'}),(function(n,i){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'}),(function(n,i){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'}),(function(n,i){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.
165177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'}),(function(n,i){n.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'}),(function(n,i){n.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'}),(function(n,i){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'}),(function(n,i){n.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'}),(function(n,i){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'}),(function(n,i){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'}),(function(n,i){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'}),(function(n,i){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'}),(function(n,i){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'}),(function(n,i){n.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'}),(function(n,i){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'}),(function(n,i){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'}),(function(n,i){n.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'}),(function(n,i){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'}),(function(n,i){n.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'}),(function(n,i){n.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'}),(function(n,i,l){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.BubbleTooltip=void 0;var a=function I(j,B,L){j===null&&(j=Function.prototype);var P=Object.getOwnPropertyDescriptor(j,B);if(P===void 0){var N=Object.getPrototypeOf(j);return N===null?void 0:I(N,B,L)}else{if("value"in P)return P.value;var F=P.get;return F===void 0?void 0:F.call(L)}},s=(function(){function I(j,B){for(var L=0;L<B.length;L++){var P=B[L];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(j,P.key,P)}}return function(j,B,L){return B&&I(j.prototype,B),L&&I(j,L),j}})(),u=l(3),h=g(u),v=l(8),p=g(v),f=l(43),d=g(f),m=l(15),S=l(41),y=g(S);function g(I){return I&&I.__esModule?I:{default:I}}function b(I,j){if(!(I instanceof j))throw new TypeError("Cannot call a class as a function")}function x(I,j){if(!I)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j&&(typeof j=="object"||typeof j=="function")?j:I}function _(I,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof j);I.prototype=Object.create(j&&j.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),j&&(Object.setPrototypeOf?Object.setPrototypeOf(I,j):I.__proto__=j)}var E=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],O=(function(I){_(j,I);function j(B,L){b(this,j),L.modules.toolbar!=null&&L.modules.toolbar.container==null&&(L.modules.toolbar.container=E);var P=x(this,(j.__proto__||Object.getPrototypeOf(j)).call(this,B,L));return P.quill.container.classList.add("ql-bubble"),P}return s(j,[{key:"extendToolbar",value:function(L){this.tooltip=new R(this.quill,this.options.bounds),this.tooltip.root.appendChild(L.container),this.buildButtons([].slice.call(L.container.querySelectorAll("button")),y.default),this.buildPickers([].slice.call(L.container.querySelectorAll("select")),y.default)}}]),j})(d.default);O.DEFAULTS=(0,h.default)(!0,{},d.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(j){j?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var R=(function(I){_(j,I);function j(B,L){b(this,j);var P=x(this,(j.__proto__||Object.getPrototypeOf(j)).call(this,B,L));return P.quill.on(p.default.events.EDITOR_CHANGE,function(N,F,z,H){if(N===p.default.events.SELECTION_CHANGE)if(F!=null&&F.length>0&&H===p.default.sources.USER){P.show(),P.root.style.left="0px",P.root.style.width="",P.root.style.width=P.root.offsetWidth+"px";var Q=P.quill.getLines(F.index,F.length);if(Q.length===1)P.position(P.quill.getBounds(F));else{var Y=Q[Q.length-1],X=P.quill.getIndex(Y),$=Math.min(Y.length()-1,F.index+F.length-X),T=P.quill.getBounds(new m.Range(X,$));P.position(T)}}else document.activeElement!==P.textbox&&P.quill.hasFocus()&&P.hide()}),P}return s(j,[{key:"listen",value:function(){var L=this;a(j.prototype.__proto__||Object.getPrototypeOf(j.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){L.root.classList.remove("ql-editing")}),this.quill.on(p.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!L.root.classList.contains("ql-hidden")){var P=L.quill.getSelection();P!=null&&L.position(L.quill.getBounds(P))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(L){var P=a(j.prototype.__proto__||Object.getPrototypeOf(j.prototype),"position",this).call(this,L),N=this.root.querySelector(".ql-tooltip-arrow");if(N.style.marginLeft="",P===0)return P;N.style.marginLeft=-1*P-N.offsetWidth/2+"px"}}]),j})(f.BaseTooltip);R.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),i.BubbleTooltip=R,i.default=O}),(function(n,i,l){n.exports=l(63)})]).default})})(pu)),pu.exports}var Kn,i1;function iN(){if(i1)return Kn;i1=1;var e=Kn&&Kn.__extends||(function(){var p=function(f,d){return p=Object.
vendor: 5,432 bytes, line 165
165setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,S){m.__proto__=S}||function(m,S){for(var y in S)S.hasOwnProperty(y)&&(m[y]=S[y])},p(f,d)};return function(f,d){p(f,d);function m(){this.constructor=f}f.prototype=d===null?Object.create(d):(m.prototype=d.prototype,new m)}})(),t=Kn&&Kn.__assign||function(){return t=Object.assign||function(p){for(var f,d=1,m=arguments.length;d<m;d++){f=arguments[d];for(var S in f)Object.prototype.hasOwnProperty.call(f,S)&&(p[S]=f[S])}return p},t.apply(this,arguments)},n=Kn&&Kn.__spreadArrays||function(){for(var p=0,f=0,d=arguments.length;f<d;f++)p+=arguments[f].length;for(var m=Array(p),S=0,f=0;f<d;f++)for(var y=arguments[f],g=0,b=y.length;g<b;g++,S++)m[S]=y[g];return m},i=Kn&&Kn.__importDefault||function(p){return p&&p.__esModule?p:{default:p}},l=i(ul()),a=i(Uh()),s=i(Q_()),u=i(rN()),h=(function(p){e(f,p);function f(d){var m=p.call(this,d)||this;m.dirtyProps=["modules","formats","bounds","theme","children"],m.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],m.state={generation:0},m.selection=null,m.onEditorChange=function(y,g,b,x){var _,E,O,R;y==="text-change"?(E=(_=m).onEditorChangeText)===null||E===void 0||E.call(_,m.editor.root.innerHTML,g,x,m.unprivilegedEditor):y==="selection-change"&&((R=(O=m).onEditorChangeSelection)===null||R===void 0||R.call(O,g,x,m.unprivilegedEditor))};var S=m.isControlled()?d.value:d.defaultValue;return m.value=S??"",m}return f.prototype.validateProps=function(d){var m;if(l.default.Children.count(d.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(l.default.Children.count(d.children)){var S=l.default.Children.only(d.children);if(((m=S)===null||m===void 0?void 0:m.type)==="textarea")throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.")}if(this.lastDeltaChangeSet&&d.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")},f.prototype.shouldComponentUpdate=function(d,m){var S=this,y;if(this.validateProps(d),!this.editor||this.state.generation!==m.generation)return!0;if("value"in d){var g=this.getEditorContents(),b=(y=d.value,y??"");this.isEqualValue(b,g)||this.setEditorContents(this.editor,b)}return d.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,d.readOnly),n(this.cleanProps,this.dirtyProps).some(function(x){return!s.default(d[x],S.props[x])})},f.prototype.shouldComponentRegenerate=function(d){var m=this;return this.dirtyProps.some(function(S){return!s.default(d[S],m.props[S])})},f.prototype.componentDidMount=function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())},f.prototype.componentWillUnmount=function(){this.destroyEditor()},f.prototype.componentDidUpdate=function(d,m){var S=this;if(this.editor&&this.shouldComponentRegenerate(d)){var y=this.editor.getContents(),g=this.editor.getSelection();this.regenerationSnapshot={delta:y,selection:g},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==m.generation){var b=this.regenerationSnapshot,y=b.delta,x=b.selection;delete this.regenerationSnapshot,this.instantiateEditor();var _=this.editor;_.setContents(y),v(function(){return S.setEditorSelection(_,x)})}},f.prototype.instantiateEditor=function(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())},f.prototype.destroyEditor=function(){this.editor&&this.unhookEditor(this.editor)},f.prototype.isControlled=function(){return"value"in this.props},f.prototype.getEditorConfig=function(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,scrollingContainer:this.props.scrollingContainer,tabIndex:this.props.tabIndex,theme:this.props.theme}},f.prototype.getEditor=function(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor},f.prototype.createEditor=function(d,m){var S=new u.default(d,m);return m.tabIndex!=null&&this.setEditorTabIndex(S,m.tabIndex),this.hookEditor(S),S},f.prototype.hookEditor=function(d){this.unprivilegedEditor=this.makeUnprivilegedEditor(d),d.on("editor-change",this.onEditorChange)},f.prototype.unhookEditor=function(d){d.off("editor-change",this.onEditorChange)},f.prototype.getEditorContents=function(){return this.value},f.prototype.getEditorSelection=function(){return this.selection},f.prototype.isDelta=function(d){return d&&d.ops},f.prototype.isEqualValue=function(d,m){return this.isDelta(d)&&this.isDelta(m)?s.default(d.ops,m.ops):s.default(d,m)},f.prototype.setEditorContents=function(d,m){var S=this;this.value=m;var y=this.getEditorSelection();typeof m=="string"?d.setContents(d.clipboard.convert(m)):d.setContents(m),v(function(){return S.setEditorSelection(d,y)})},f.prototype.setEditorSelection=function(d,m){if(this.selection=m,m){var S=d.getLength();m.index=Math.max(0,Math.min(m.index,S-1)),m.length=Math.max(0,Math.min(m.length,S-1-m.index)),d.setSelection(m)}},f.prototype.setEditorTabIndex=function(d,m){var S,y;!((y=(S=d)===null||S===void 0?void 0:S.scroll)===null||y===void 0)&&y.domNo
165de&&(d.scroll.domNode.tabIndex=m)},f.prototype.setEditorReadOnly=function(d,m){m?d.disable():d.enable()},f.prototype.makeUnprivilegedEditor=function(d){var m=d;return{getHTML:function(){return m.root.innerHTML},getLength:m.getLength.bind(m),getText:m.getText.bind(m),getContents:m.getContents.bind(m),getSelection:m.getSelection.bind(m),getBounds:m.getBounds.bind(m)}},f.prototype.getEditingArea=function(){if(!this.editingArea)throw new Error("Instantiating on missing editing area");var d=a.default.findDOMNode(this.editingArea);if(!d)throw new Error("Cannot find element for editing area");if(d.nodeType===3)throw new Error("Editing area cannot be a text node");return d},f.prototype.renderEditingArea=function(){var d=this,m=this.props,S=m.children,y=m.preserveWhitespace,g=this.state.generation,b={key:g,ref:function(x){d.editingArea=x}};return l.default.Children.count(S)?l.default.cloneElement(l.default.Children.only(S),b):y?l.default.createElement("pre",t({},b)):l.default.createElement("div",t({},b))},f.prototype.render=function(){var d;return l.default.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:"quill "+(d=this.props.className,d??""),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())},f.prototype.onEditorChangeText=function(d,m,S,y){var g,b;if(this.editor){var x=this.isDelta(this.value)?y.getContents():y.getHTML();x!==this.getEditorContents()&&(this.lastDeltaChangeSet=m,this.value=x,(b=(g=this.props).onChange)===null||b===void 0||b.call(g,d,m,S,y))}},f.prototype.onEditorChangeSelection=function(d,m,S){var y,g,b,x,_,E;if(this.editor){var O=this.getEditorSelection(),R=!O&&d,I=O&&!d;s.default(d,O)||(this.selection=d,(g=(y=this.props).onChangeSelection)===null||g===void 0||g.call(y,d,m,S),R?(x=(b=this.props).onFocus)===null||x===void 0||x.call(b,d,m,S):I&&((E=(_=this.props).onBlur)===null||E===void 0||E.call(_,O,m,S)))}},f.prototype.focus=function(){this.editor&&this.editor.focus()},f.prototype.blur=function(){this.editor&&(this.selection=null,this.editor.blur())},f.displayName="React Quill",f.Quill=u.default,f.defaultProps={theme:"snow",modules:{},readOnly:!1},f})(l.default.Component);function v(p){Promise.resolve().then(p)}return Kn=h,Kn}var oN=iN();const j3=Ei(oN);function lN(e,t){return D.useReducer((n,i)=>t[n][i]??n,e)}var Cp="ScrollArea",[MS]=_n(Cp),[aN,jn]=MS(Cp),DS=D.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:i="hover",dir:l,scrollHideDelay:a=600,...s}=e,[u,h]=D.useState(null),[v,p]=D.useState(null),[f,d]=D.useState(null),[m,S]=D.useState(null),[y,g]=D.useState(null),[b,x]=D.useState(0),[_,E]=D.useState(0),[O,R]=D.useState(!1),[I,j]=D.useState(!1),B=Ge(t,P=>h(P)),L=pl(l);return re.jsx(aN,{scope:n,type:i,dir:L,scrollHideDelay:a,scrollArea:u,viewport:v,onViewportChange:p,content:f,onContentChange:d,scrollbarX:m,onScrollbarXChange:S,scrollbarXEnabled:O,onScrollbarXEnabledChange:R,scrollbarY:y,onScrollbarYChange:g,scrollbarYEnabled:I,onScrollbarYEnabledChange:j,onCornerWidthChange:x,onCornerHeightChange:E,children:re.jsx(Ue.div,{dir:L,...s,ref:B,style:{position:"relative","--radix-scroll-area-corner-width":b+"px","--radix-scroll-area-corner-height":_+"px",...e.style}})})});DS.displayName=Cp;var jS="ScrollAreaViewport",FS=D.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:i,nonce:l,...a}=e,s=jn(jS,n),u=D.useRef(null),h=Ge(t,u,s.onViewportChange);return re.jsxs(re.Fragment,{children:[re.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:l}),re.jsx(Ue.div,{"data-radix-scroll-area-viewport":"",...a,ref:h,style:{overflowX:s.scrollbarXEnabled?"scroll":"hidden",overflowY:s.scrollbarYEnabled?"scroll":"hidden",...e.style},children:re.jsx("div",{ref:s.onContentChange,style:{minWidth:"100%",display:"table"},children:i})})]})});FS.displayName=jS;var br="ScrollAreaScrollbar",sN=D.forwardRef((e,t)=>{const{forceMount:n,...i}=e,l=jn(br,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:s}=l,u=e.orientation==="horizontal";return D.useEffect(()=>(u?a(!0):s(!0),()=>{u?a(!1):s(!1)}),[u,a,s]),l.type==="hover"?re.jsx(uN,{...i,ref:t,forceMount:n}):l.type==="scroll"?re.jsx(cN,{...i,ref:t,forceMount:n}):l.type==="auto"?re.jsx(BS,{...i,ref:t,forceMount:n}):l.type==="always"?re.jsx(Pp,{...i,ref:t}):null});sN.displayName=br;var uN=D.forwardRef((e,t)=>
vendor: 4,166 bytes, line 165
165{const{forceMount:n,...i}=e,l=jn(br,e.__scopeScrollArea),[a,s]=D.useState(!1);return D.useEffect(()=>{const u=l.scrollArea;let h=0;if(u){const v=()=>{window.clearTimeout(h),s(!0)},p=()=>{h=window.setTimeout(()=>s(!1),l.scrollHideDelay)};return u.addEventListener("pointerenter",v),u.addEventListener("pointerleave",p),()=>{window.clearTimeout(h),u.removeEventListener("pointerenter",v),u.removeEventListener("pointerleave",p)}}},[l.scrollArea,l.scrollHideDelay]),re.jsx(hn,{present:n||a,children:re.jsx(BS,{"data-state":a?"visible":"hidden",...i,ref:t})})}),cN=D.forwardRef((e,t)=>{const{forceMount:n,...i}=e,l=jn(br,e.__scopeScrollArea),a=e.orientation==="horizontal",s=oc(()=>h("SCROLL_END"),100),[u,h]=lN("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return D.useEffect(()=>{if(u==="idle"){const v=window.setTimeout(()=>h("HIDE"),l.scrollHideDelay);return()=>window.clearTimeout(v)}},[u,l.scrollHideDelay,h]),D.useEffect(()=>{const v=l.viewport,p=a?"scrollLeft":"scrollTop";if(v){let f=v[p];const d=()=>{const m=v[p];f!==m&&(h("SCROLL"),s()),f=m};return v.addEventListener("scroll",d),()=>v.removeEventListener("scroll",d)}},[l.viewport,a,h,s]),re.jsx(hn,{present:n||u!=="hidden",children:re.jsx(Pp,{"data-state":u==="hidden"?"hidden":"visible",...i,ref:t,onPointerEnter:Ae(e.onPointerEnter,()=>h("POINTER_ENTER")),onPointerLeave:Ae(e.onPointerLeave,()=>h("POINTER_LEAVE"))})})}),BS=D.forwardRef((e,t)=>{const n=jn(br,e.__scopeScrollArea),{forceMount:i,...l}=e,[a,s]=D.useState(!1),u=e.orientation==="horizontal",h=oc(()=>{if(n.viewport){const v=n.viewport.offsetWidth<n.viewport.scrollWidth,p=n.viewport.offsetHeight<n.viewport.scrollHeight;s(u?v:p)}},10);return sl(n.viewport,h),sl(n.content,h),re.jsx(hn,{present:i||a,children:re.jsx(Pp,{"data-state":a?"visible":"hidden",...l,ref:t})})}),Pp=D.forwardRef((e,t)=>{const{orientation:n="vertical",...i}=e,l=jn(br,e.__scopeScrollArea),a=D.useRef(null),s=D.useRef(0),[u,h]=D.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),v=VS(u.viewport,u.content),p={...i,sizes:u,onSizesChange:h,hasThumb:v>0&&v<1,onThumbChange:d=>a.current=d,onThumbPointerUp:()=>s.current=0,onThumbPointerDown:d=>s.current=d};function f(d,m){return yN(d,s.current,u,m)}return n==="horizontal"?re.jsx(fN,{...p,ref:t,onThumbPositionChange:()=>{if(l.viewport&&a.current){const d=l.viewport.scrollLeft,m=o1(d,u,l.dir);a.current.style.transform=`translate3d(${m}px, 0, 0)`}},onWheelScroll:d=>{l.viewport&&(l.viewport.scrollLeft=d)},onDragScroll:d=>{l.viewport&&(l.viewport.scrollLeft=f(d,l.dir))}}):n==="vertical"?re.jsx(dN,{...p,ref:t,onThumbPositionChange:()=>{if(l.viewport&&a.current){const d=l.viewport.scrollTop,m=o1(d,u);a.current.style.transform=`translate3d(0, ${m}px, 0)`}},onWheelScroll:d=>{l.viewport&&(l.viewport.scrollTop=d)},onDragScroll:d=>{l.viewport&&(l.viewport.scrollTop=f(d))}}):null}),fN=D.forwardRef((e,t)=>{const{sizes:n,onSizesChange:i,...l}=e,a=jn(br,e.__scopeScrollArea),[s,u]=D.useState(),h=D.useRef(null),v=Ge(t,h,a.onScrollbarXChange);return D.useEffect(()=>{h.current&&u(getComputedStyle(h.current))},[h]),re.jsx(qS,{"data-orientation":"horizontal",...l,ref:v,sizes:n,style:{bottom:0,left:a.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:a.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":ic(n)+"px",...e.style},onThumbPointerDown:p=>e.onThumbPointerDown(p.x),onDragScroll:p=>e.onDragScroll(p.x),onWheelScroll:(p,f)=>{if(a.viewport){const d=a.viewport.scrollLeft+p.deltaX;e.onWheelScroll(d),$S(d,f)&&p.preventDefault()}},onResize:()=>{h.current&&a.viewport&&s&&i({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:h.current.clientWidth,paddingStart:Ru(s.paddingLeft),paddingEnd:Ru(s.paddingRight)}})}})}),dN=D.forwardRef((e,t)=>{const{sizes:n,onSizesChange:i,...l}=e,a=jn(br,e.__scopeScrollArea),[s,u]=D.useState(),h=D.useRef(null),v=Ge(t,h,a.onScrollbarYChange);return D.useEffect(()=>{h.current&&u(getComputedStyle(h.current))}
vendor: 4,950 bytes, line 165
165,[h]),re.jsx(qS,{"data-orientation":"vertical",...l,ref:v,sizes:n,style:{top:0,right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":ic(n)+"px",...e.style},onThumbPointerDown:p=>e.onThumbPointerDown(p.y),onDragScroll:p=>e.onDragScroll(p.y),onWheelScroll:(p,f)=>{if(a.viewport){const d=a.viewport.scrollTop+p.deltaY;e.onWheelScroll(d),$S(d,f)&&p.preventDefault()}},onResize:()=>{h.current&&a.viewport&&s&&i({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:h.current.clientHeight,paddingStart:Ru(s.paddingTop),paddingEnd:Ru(s.paddingBottom)}})}})}),[hN,zS]=MS(br),qS=D.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:i,hasThumb:l,onThumbChange:a,onThumbPointerUp:s,onThumbPointerDown:u,onThumbPositionChange:h,onDragScroll:v,onWheelScroll:p,onResize:f,...d}=e,m=jn(br,n),[S,y]=D.useState(null),g=Ge(t,B=>y(B)),b=D.useRef(null),x=D.useRef(""),_=m.viewport,E=i.content-i.viewport,O=Bt(p),R=Bt(h),I=oc(f,10);function j(B){if(b.current){const L=B.clientX-b.current.left,P=B.clientY-b.current.top;v({x:L,y:P})}}return D.useEffect(()=>{const B=L=>{const P=L.target;(S==null?void 0:S.contains(P))&&O(L,E)};return document.addEventListener("wheel",B,{passive:!1}),()=>document.removeEventListener("wheel",B,{passive:!1})},[_,S,E,O]),D.useEffect(R,[i,R]),sl(S,I),sl(m.content,I),re.jsx(hN,{scope:n,scrollbar:S,hasThumb:l,onThumbChange:Bt(a),onThumbPointerUp:Bt(s),onThumbPositionChange:R,onThumbPointerDown:Bt(u),children:re.jsx(Ue.div,{...d,ref:g,style:{position:"absolute",...d.style},onPointerDown:Ae(e.onPointerDown,B=>{B.button===0&&(B.target.setPointerCapture(B.pointerId),b.current=S.getBoundingClientRect(),x.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",m.viewport&&(m.viewport.style.scrollBehavior="auto"),j(B))}),onPointerMove:Ae(e.onPointerMove,j),onPointerUp:Ae(e.onPointerUp,B=>{const L=B.target;L.hasPointerCapture(B.pointerId)&&L.releasePointerCapture(B.pointerId),document.body.style.webkitUserSelect=x.current,m.viewport&&(m.viewport.style.scrollBehavior=""),b.current=null})})})}),Tu="ScrollAreaThumb",pN=D.forwardRef((e,t)=>{const{forceMount:n,...i}=e,l=zS(Tu,e.__scopeScrollArea);return re.jsx(hn,{present:n||l.hasThumb,children:re.jsx(mN,{ref:t,...i})})}),mN=D.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:i,...l}=e,a=jn(Tu,n),s=zS(Tu,n),{onThumbPositionChange:u}=s,h=Ge(t,f=>s.onThumbChange(f)),v=D.useRef(void 0),p=oc(()=>{v.current&&(v.current(),v.current=void 0)},100);return D.useEffect(()=>{const f=a.viewport;if(f){const d=()=>{if(p(),!v.current){const m=gN(f,u);v.current=m,u()}};return u(),f.addEventListener("scroll",d),()=>f.removeEventListener("scroll",d)}},[a.viewport,p,u]),re.jsx(Ue.div,{"data-state":s.hasThumb?"visible":"hidden",...l,ref:h,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...i},onPointerDownCapture:Ae(e.onPointerDownCapture,f=>{const m=f.target.getBoundingClientRect(),S=f.clientX-m.left,y=f.clientY-m.top;s.onThumbPointerDown({x:S,y})}),onPointerUp:Ae(e.onPointerUp,s.onThumbPointerUp)})});pN.displayName=Tu;var Ap="ScrollAreaCorner",US=D.forwardRef((e,t)=>{const n=jn(Ap,e.__scopeScrollArea),i=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&i?re.jsx(vN,{...e,ref:t}):null});US.displayName=Ap;var vN=D.forwardRef((e,t)=>{const{__scopeScrollArea:n,...i}=e,l=jn(Ap,n),[a,s]=D.useState(0),[u,h]=D.useState(0),v=!!(a&&u);return sl(l.scrollbarX,()=>{var f;const p=((f=l.scrollbarX)==null?void 0:f.offsetHeight)||0;l.onCornerHeightChange(p),h(p)}),sl(l.scrollbarY,()=>{var f;const p=((f=l.scrollbarY)==null?void 0:f.offsetWidth)||0;l.onCornerWidthChange(p),s(p)}),v?re.jsx(Ue.div,{...i,ref:t,style:{width:a,height:u,position:"absolute",right:l.dir==="ltr"?0:void 0,left:l.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function Ru(e){return e?parseInt(e,10):0}function VS(e,t){const n=e/t;return isNaN(n)?0:n}function ic(e){const t=VS(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,i=(e.scrollbar.size-n)*t;return Math.max(i,18)}function yN(e,t,n,i="ltr"){const l=ic(n),a=l/2,s=t||a,u=l-s,h=n.scrollbar.paddingStart+s,v=n.scrollbar.size-n.scrollbar.paddingEnd-u,p=n.content-n.viewport,f=i==="ltr"?[0,p]:[p*-1,0];return HS([h,v],f)(e)}function o1(e,t,n="ltr"){const i=ic(t),l=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-l,s=t.content-t.viewport,u=a-i,h=n==="ltr"?[0,s]:[s*-1,0],v=Ud(e,h);return HS([0,s],[0,u])(v)}function HS(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const i=(t[1]-t[0])/(e[1]-e[0]);return t[0]+i*(n-e[0])}}function $S(e,t){return e>0&&e<t}var gN=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},i=0;return(function l(){const a={left:e.scrollLeft,top:e.scrollTop},s=n.left!==a.left,u=n.top!==a.top;(s||u)&&t(),n=a,i=window.requestAnimationFrame(l)})(),()=>window.cancelAnimationFrame(i)};
165function oc(e,t){const n=Bt(e),i=D.useRef(0);return D.useEffect(()=>()=>window.clearTimeout(i.current),[]),D.useCallback(()=>{window.clearTimeout(i.current),i.current=window.setTimeout(n,t)},[n,t])}function sl(e,t){const n=Bt(t);zt(()=>{let i=0;if(e){const l=new ResizeObserver(()=>{cancelAnimationFrame(i),i=window.requestAnimationFrame(n)});return l.observe(e),()=>{window.cancelAnimationFrame(i),l.unobserve(e)}}},[e,n])}var F3=DS,B3=FS,z3=US,Tp="Progress",Rp=100,[wN]=_n(Tp),[bN,SN]=wN(Tp),WS=D.forwardRef((e,t)=>{const{__scopeProgress:n,value:i=null,max:l,getValueLabel:a=xN,...s}=e;(l||l===0)&&!l1(l)&&console.error(EN(`${l}`,"Progress"));const u=l1(l)?l:Rp;i!==null&&!a1(i,u)&&console.error(_N(`${i}`,"Progress"));const h=a1(i,u)?i:null,v=Nu(h)?a(h,u):void 0;return re.jsx(bN,{scope:n,value:h,max:u,children:re.jsx(Ue.div,{"aria-valuemax":u,"aria-valuemin":0,"aria-valuenow":Nu(h)?h:void 0,"aria-valuetext":v,role:"progressbar","data-state":GS(h,u),"data-value":h??void 0,"data-max":u,...s,ref:t})})});WS.displayName=Tp;var KS="ProgressIndicator",QS=D.forwardRef((e,t)=>{const{__scopeProgress:n,...i}=e,l=SN(KS,n);return re.jsx(Ue.div,{"data-state":GS(l.value,l.max),"data-value":l.value??void 0,"data-max":l.max,...i,ref:t})});QS.displayName=KS;function xN(e,t){return`${Math.round(e/t*100)}%`}function GS(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function Nu(e){return typeof e=="number"}function l1(e){return Nu(e)&&!isNaN(e)&&e>0}function a1(e,t){return Nu(e)&&!isNaN(e)&&e<=t&&e>=0}function EN(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Rp}\`.`}function _N(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
166  - a positive number
167  - less than the value passed to \`max\` (or ${Rp} if no \`max\` prop is set)
168  - \`null\` or \`undefined\` if the progress is indeterminate.
169
170Defaulting to \`null\`.`}var q3=WS,U3=QS,za=e=>e.type==="checkbox",Hi=e=>e instanceof Date,Jt=e=>e==null;const YS=e=>typeof e=="object";var Ct=e=>!Jt(e)&&!Array.isArray(e)&&YS(e)&&!Hi(e),kN=e=>Ct(e)&&e.target?za(e.target)?e.target.checked:e.target.value:e,ON=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,CN=(e,t)=>e.has(ON(t)),PN=e=>{const t=e.constructor&&e.constructor.prototype;return Ct(t)&&t.hasOwnProperty("isPrototypeOf")},Np=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Lt(e){let t;const n=Array.isArray(e),i=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(Np&&(e instanceof Blob||i))&&(n||Ct(e)))if(t=n?[]:Object.create(Object.getPrototypeOf(e)),!n&&!PN(e))t=e;else for(const l in e)e.hasOwnProperty(l)&&(t[l]=Lt(e[l]));else return e;return t}var lc=e=>/^\w*$/.test(e),Ot=e=>e===void 0,Ip=e=>Array.isArray(e)?e.filter(Boolean):[],Lp=e=>Ip(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Le=(e,t,n)=>{if(!t||!Ct(e))return n;const i=(lc(t)?[t]:Lp(t)).reduce((l,a)=>Jt(l)?l:l[a],e);return Ot(i)||i===e?Ot(e[t])?n:e[t]:i},sr=e=>typeof e=="boolean",ht=(e,t,n)=>{let i=-1;const l=lc(t)?[t]:Lp(t),a=l.length,s=a-1;for(;++i<a;){const u=l[i];let h=n;if(i!==s){const v=e[u];h=Ct(v)||Array.isArray(v)?v:isNaN(+l[i+1])?{}:[]}if(u==="__proto__"||u==="constructor"||u==="prototype")return;e[u]=h,e=e[u]}};const s1={BLUR:"blur",FOCUS_OUT:"focusout"},Xn={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Tr={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},AN=gt.createContext(null);AN.displayName="HookFormContext";var TN=(e,t,n,i=!0)=>{const l={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(l,a,{get:()=>{const s=a;return t._proxyFormState[s]!==Xn.all&&(t._proxyFormState[s]=!i||Xn.all),e[s]}});return l};const RN=typeof window<"u"?gt.useLayoutEffect:gt.useEffect;var Sn=e=>typeof e=="string",NN=(e,t,n,i,l)=>Sn(e)?(i&&t.watch.add(e),Le(n,e,l)):Array.isArray(e)?e.map(a=>(i&&t.watch.add(a),Le(n,a))):(i&&(t.watchAll=!0),n),Ph=e=>Jt(e)||!YS(e);function ai(e,t,n=new WeakSet){if(Ph(e)||Ph(t))return e===t;if(Hi(e)&&Hi(t))return e.getTime()===t.getTime();const i=Object.keys(e),l=Object.keys(t);if(i.length!==l.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const a of i){const s=e[a];if(!l.includes(a))return!1;if(a!=="ref"){const u=t[a];if(Hi(s)&&Hi(u)||Ct(s)&&Ct(u)||Array.isArray(s)&&Array.isArray(u)?!ai(s,u,n):s!==u)return!1}}return!0}var IN=(e,t,n,i,l)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[i]:l||!0}}:{},ma=e=>Array.isArray(e)?e:[e],u1=()=>{let e=[];return{get observers(){return e},next:l=>{for(const a of e)a.next&&a.next(l)},subscribe:l=>(e.push(l),{unsubscribe:()=>{e=e.filter(a=>a!==l)}}),unsubscribe:()=>{e=[]}}};function XS(e,t){const n={};for(const i in e)if(e.hasOwnProperty(i)){const l=e[i],a=t[i];if(l&&Ct(l)&&a){const s=XS(l,a);Ct(s)&&(n[i]=s)}else e[i]&&(n[i]=a)}return n}var fn=e=>Ct(e)&&!Object.keys(e).length,Mp=e=>e.type==="file",Zn=e=>typeof e=="function",Iu=e=>{if(!Np)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},ZS=e=>e.type==="select-multiple",Dp=e=>e.type==="radio",LN=e=>Dp(e)||za(e),wd=e=>Iu(e)&&e.isConnected;function MN(e,t){const n=t.slice(0,-1).length;let i=0;for(;i<n;)e=Ot(e)?i++:e[t[i++]];return e}function DN(e){for(const t in e)if(e.hasOwnProperty(t)&&!Ot(e[t]))return!1;return!0}function _t(e,t){const n=Array.isArray(t)?t:lc(t)?[t]:Lp(t),i=n.length===1?e:MN(e,n),l=n.length-1,a=n[l];return i&&delete i[a],l!==0&&(Ct(i)&&fn(i)||Array.isArray(i)&&DN(i))&&_t(e,n.slice(0,-1)),e}var jN=e=>{for(const t in e)if(Zn(e[t]))return!0;return!1};function JS(e){return Array.isArray(e)||Ct(e)&&!jN(e)}function Ah(e,t={}){for(const n in e)JS(e[n])?(t[n]=Array.isArray(e[n])?[]:{},Ah(e[n],t[n])):Jt(e[n])||(t[n]=!0);return t}function Vo(e,t,n){n||(n=Ah(t));for(const i in e)JS(e[i])?Ot(t)||Ph(n[i])?n[i]=Ah(e[i],Array.isArray(e[i])?[]:{}):Vo(e[i],Jt(t)?{}:t[i],n[i]):n[i]=!ai(e[i],t[i]);return n}const c1={value:!1,isValid:!1},f1={value:!0,isValid:!0};var ex=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Ot(e[0].attributes.value)?Ot(e[0].value)||e[0].value===""?f1:{value:e[0].value,isValid:!0}:f1:c1}return c1},tx=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:i})=>Ot(e)?e:t?e===""?NaN:e&&+e:n&&Sn(e)?new Date(e):i?i(e):e;const d1={isValid:!1,value:null};var nx=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,d1):d1;function h1(e){const t=e.ref;return Mp(t)?t.files:Dp(t)?nx(e.refs).value:ZS(t)?[...t.selectedOptions].map(({value:n})=>n):za(t)?ex(e.refs).value:tx(Ot(t.value)?e.ref.value:t.value,e)}var FN=(e,t,n,i)=>{const l={};for(const a of e){const s=Le(t,a);s&&ht(l,a,s._f)}return{criteriaMode:n,names:[...e],fields:l,shouldUseNativeValidation:i}},Lu=e=>e instanceof RegExp,oa=e=>Ot(e)?e:Lu(e)?e.source:Ct(e)?Lu(e.value)?e.value.source:e.value:e,p1=e=>({isOnSubmit:!e||e===Xn.onSubmit,isOnBlur:e===Xn.onBlur,isOnChange:e===Xn.onChange,isOnAll:e===Xn.all,isOnTouch:e===Xn.onTouched});const m1="AsyncFunction";var BN=e=>!!e&&!!e.validate&&!!(Zn(e.validate)&&e.validate.constructor.name===m1||Ct(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===m1)),zN=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),v1=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(i=>e.startsWith(i)&&/^\.\w+/.test(e.slice(i.length))));const va=(e,t,n,i)=>{for(const l of n||Object.keys(e)){const a=Le(e,l);if(a){const{_f:s,...u}=a;if(s){if(s.refs&&s.refs[0]&&t(s.refs[0],l)&&!i)return!0;
vendor: 4,279 bytes, line 170
170if(s.ref&&t(s.ref,s.name)&&!i)return!0;if(va(u,t))break}else if(Ct(u)&&va(u,t))break}}};function y1(e,t,n){const i=Le(e,n);if(i||lc(n))return{error:i,name:n};const l=n.split(".");for(;l.length;){const a=l.join("."),s=Le(t,a),u=Le(e,a);if(s&&!Array.isArray(s)&&n!==a)return{name:n};if(u&&u.type)return{name:a,error:u};if(u&&u.root&&u.root.type)return{name:`${a}.root`,error:u.root};l.pop()}return{name:n}}var qN=(e,t,n,i)=>{n(e);const{name:l,...a}=e;return fn(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(s=>t[s]===(!i||Xn.all))},UN=(e,t,n)=>!e||!t||e===t||ma(e).some(i=>i&&(n?i===t:i.startsWith(t)||t.startsWith(i))),VN=(e,t,n,i,l)=>l.isOnAll?!1:!n&&l.isOnTouch?!(t||e):(n?i.isOnBlur:l.isOnBlur)?!e:(n?i.isOnChange:l.isOnChange)?e:!0,HN=(e,t)=>!Ip(Le(e,t)).length&&_t(e,t),$N=(e,t,n)=>{const i=ma(Le(e,n));return ht(i,"root",t[n]),ht(e,n,i),e};function g1(e,t,n="validate"){if(Sn(e)||Array.isArray(e)&&e.every(Sn)||sr(e)&&!e)return{type:n,message:Sn(e)?e:"",ref:t}}var Bo=e=>Ct(e)&&!Lu(e)?e:{value:e,message:""},w1=async(e,t,n,i,l,a)=>{const{ref:s,refs:u,required:h,maxLength:v,minLength:p,min:f,max:d,pattern:m,validate:S,name:y,valueAsNumber:g,mount:b}=e._f,x=Le(n,y);if(!b||t.has(y))return{};const _=u?u[0]:s,E=N=>{l&&_.reportValidity&&(_.setCustomValidity(sr(N)?"":N||""),_.reportValidity())},O={},R=Dp(s),I=za(s),j=R||I,B=(g||Mp(s))&&Ot(s.value)&&Ot(x)||Iu(s)&&s.value===""||x===""||Array.isArray(x)&&!x.length,L=IN.bind(null,y,i,O),P=(N,F,z,H=Tr.maxLength,Q=Tr.minLength)=>{const Y=N?F:z;O[y]={type:N?H:Q,message:Y,ref:s,...L(N?H:Q,Y)}};if(a?!Array.isArray(x)||!x.length:h&&(!j&&(B||Jt(x))||sr(x)&&!x||I&&!ex(u).isValid||R&&!nx(u).isValid)){const{value:N,message:F}=Sn(h)?{value:!!h,message:h}:Bo(h);if(N&&(O[y]={type:Tr.required,message:F,ref:_,...L(Tr.required,F)},!i))return E(F),O}if(!B&&(!Jt(f)||!Jt(d))){let N,F;const z=Bo(d),H=Bo(f);if(!Jt(x)&&!isNaN(x)){const Q=s.valueAsNumber||x&&+x;Jt(z.value)||(N=Q>z.value),Jt(H.value)||(F=Q<H.value)}else{const Q=s.valueAsDate||new Date(x),Y=T=>new Date(new Date().toDateString()+" "+T),X=s.type=="time",$=s.type=="week";Sn(z.value)&&x&&(N=X?Y(x)>Y(z.value):$?x>z.value:Q>new Date(z.value)),Sn(H.value)&&x&&(F=X?Y(x)<Y(H.value):$?x<H.value:Q<new Date(H.value))}if((N||F)&&(P(!!N,z.message,H.message,Tr.max,Tr.min),!i))return E(O[y].message),O}if((v||p)&&!B&&(Sn(x)||a&&Array.isArray(x))){const N=Bo(v),F=Bo(p),z=!Jt(N.value)&&x.length>+N.value,H=!Jt(F.value)&&x.length<+F.value;if((z||H)&&(P(z,N.message,F.message),!i))return E(O[y].message),O}if(m&&!B&&Sn(x)){const{value:N,message:F}=Bo(m);if(Lu(N)&&!x.match(N)&&(O[y]={type:Tr.pattern,message:F,ref:s,...L(Tr.pattern,F)},!i))return E(F),O}if(S){if(Zn(S)){const N=await S(x,n),F=g1(N,_);if(F&&(O[y]={...F,...L(Tr.validate,F.message)},!i))return E(F.message),O}else if(Ct(S)){let N={};for(const F in S){if(!fn(N)&&!i)break;const z=g1(await S[F](x,n),_,F);z&&(N={...z,...L(F,z.message)},E(z.message),i&&(O[y]=N))}if(!fn(N)&&(O[y]={ref:_,...N},!i))return O}}return E(!0),O};const WN={mode:Xn.onSubmit,reValidateMode:Xn.onChange,shouldFocusError:!0};function KN(e={}){let t={...WN,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:Zn(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},i={},l=Ct(t.defaultValues)||Ct(t.values)?Lt(t.defaultValues||t.values)||{}:{},a=t.shouldUnregister?{}:Lt(l),s={action:!1,mount:!1,watch:!1},u={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},h,v=0;const p={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let f={...p};const d={array:u1(),state:u1()},m=t.criteriaMode===Xn.all,S=W=>Z=>{clearTimeout(v),v=setTimeout(W,Z)},y=async W=>{if(!t.disabled&&(p.isValid||f.isValid||W)){const Z=t.resolver?fn((await I()).errors):await B(i,!0);Z!==n.isValid&&d.state.next({isValid:Z})}},g=(W,Z)=>{!t.disabled&&(p.isValidating||p.validatingFields||f.isValidating||f.validatingFields)&&((W||Array.from(u.mount)).forEach(J=>{J&&(Z?ht(n.validatingFields,J,Z):_t(n.validatingFields,J))}),d.state.next({validatingFields:n.validatingFields,isValidating:!fn(n.validatingFields)}))},b=(W,Z=[],J,ge,ye=!0,me=!0)=>
vendor: 10,576 bytes, line 170
170{if(ge&&J&&!t.disabled){if(s.action=!0,me&&Array.isArray(Le(i,W))){const se=J(Le(i,W),ge.argA,ge.argB);ye&&ht(i,W,se)}if(me&&Array.isArray(Le(n.errors,W))){const se=J(Le(n.errors,W),ge.argA,ge.argB);ye&&ht(n.errors,W,se),HN(n.errors,W)}if((p.touchedFields||f.touchedFields)&&me&&Array.isArray(Le(n.touchedFields,W))){const se=J(Le(n.touchedFields,W),ge.argA,ge.argB);ye&&ht(n.touchedFields,W,se)}(p.dirtyFields||f.dirtyFields)&&(n.dirtyFields=Vo(l,a)),d.state.next({name:W,isDirty:P(W,Z),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else ht(a,W,Z)},x=(W,Z)=>{ht(n.errors,W,Z),d.state.next({errors:n.errors})},_=W=>{n.errors=W,d.state.next({errors:n.errors,isValid:!1})},E=(W,Z,J,ge)=>{const ye=Le(i,W);if(ye){const me=Le(a,W,Ot(J)?Le(l,W):J);Ot(me)||ge&&ge.defaultChecked||Z?ht(a,W,Z?me:h1(ye._f)):z(W,me),s.mount&&y()}},O=(W,Z,J,ge,ye)=>{let me=!1,se=!1;const ve={name:W};if(!t.disabled){if(!J||ge){(p.isDirty||f.isDirty)&&(se=n.isDirty,n.isDirty=ve.isDirty=P(),me=se!==ve.isDirty);const xe=ai(Le(l,W),Z);se=!!Le(n.dirtyFields,W),xe?_t(n.dirtyFields,W):ht(n.dirtyFields,W,!0),ve.dirtyFields=n.dirtyFields,me=me||(p.dirtyFields||f.dirtyFields)&&se!==!xe}if(J){const xe=Le(n.touchedFields,W);xe||(ht(n.touchedFields,W,J),ve.touchedFields=n.touchedFields,me=me||(p.touchedFields||f.touchedFields)&&xe!==J)}me&&ye&&d.state.next(ve)}return me?ve:{}},R=(W,Z,J,ge)=>{const ye=Le(n.errors,W),me=(p.isValid||f.isValid)&&sr(Z)&&n.isValid!==Z;if(t.delayError&&J?(h=S(()=>x(W,J)),h(t.delayError)):(clearTimeout(v),h=null,J?ht(n.errors,W,J):_t(n.errors,W)),(J?!ai(ye,J):ye)||!fn(ge)||me){const se={...ge,...me&&sr(Z)?{isValid:Z}:{},errors:n.errors,name:W};n={...n,...se},d.state.next(se)}},I=async W=>{g(W,!0);const Z=await t.resolver(a,t.context,FN(W||u.mount,i,t.criteriaMode,t.shouldUseNativeValidation));return g(W),Z},j=async W=>{const{errors:Z}=await I(W);if(W)for(const J of W){const ge=Le(Z,J);ge?ht(n.errors,J,ge):_t(n.errors,J)}else n.errors=Z;return Z},B=async(W,Z,J={valid:!0})=>{for(const ge in W){const ye=W[ge];if(ye){const{_f:me,...se}=ye;if(me){const ve=u.array.has(me.name),xe=ye._f&&BN(ye._f);xe&&p.validatingFields&&g([me.name],!0);const Be=await w1(ye,u.disabled,a,m,t.shouldUseNativeValidation&&!Z,ve);if(xe&&p.validatingFields&&g([me.name]),Be[me.name]&&(J.valid=!1,Z))break;!Z&&(Le(Be,me.name)?ve?$N(n.errors,Be,me.name):ht(n.errors,me.name,Be[me.name]):_t(n.errors,me.name))}!fn(se)&&await B(se,Z,J)}}return J.valid},L=()=>{for(const W of u.unMount){const Z=Le(i,W);Z&&(Z._f.refs?Z._f.refs.every(J=>!wd(J)):!wd(Z._f.ref))&&K(W)}u.unMount=new Set},P=(W,Z)=>!t.disabled&&(W&&Z&&ht(a,W,Z),!ai(T(),l)),N=(W,Z,J)=>NN(W,u,{...s.mount?a:Ot(Z)?l:Sn(W)?{[W]:Z}:Z},J,Z),F=W=>Ip(Le(s.mount?a:l,W,t.shouldUnregister?Le(l,W,[]):[])),z=(W,Z,J={})=>{const ge=Le(i,W);let ye=Z;if(ge){const me=ge._f;me&&(!me.disabled&&ht(a,W,tx(Z,me)),ye=Iu(me.ref)&&Jt(Z)?"":Z,ZS(me.ref)?[...me.ref.options].forEach(se=>se.selected=ye.includes(se.value)):me.refs?za(me.ref)?me.refs.forEach(se=>{(!se.defaultChecked||!se.disabled)&&(Array.isArray(ye)?se.checked=!!ye.find(ve=>ve===se.value):se.checked=ye===se.value||!!ye)}):me.refs.forEach(se=>se.checked=se.value===ye):Mp(me.ref)?me.ref.value="":(me.ref.value=ye,me.ref.type||d.state.next({name:W,values:Lt(a)})))}(J.shouldDirty||J.shouldTouch)&&O(W,ye,J.shouldTouch,J.shouldDirty,!0),J.shouldValidate&&$(W)},H=(W,Z,J)=>{for(const ge in Z){if(!Z.hasOwnProperty(ge))return;const ye=Z[ge],me=W+"."+ge,se=Le(i,me);(u.array.has(W)||Ct(ye)||se&&!se._f)&&!Hi(ye)?H(me,ye,J):z(me,ye,J)}},Q=(W,Z,J={})=>{const ge=Le(i,W),ye=u.array.has(W),me=Lt(Z);ht(a,W,me),ye?(d.array.next({name:W,values:Lt(a)}),(p.isDirty||p.dirtyFields||f.isDirty||f.dirtyFields)&&J.shouldDirty&&d.state.next({name:W,dirtyFields:Vo(l,a),isDirty:P(W,me)})):ge&&!ge._f&&!Jt(me)?H(W,me,J):z(W,me,J),v1(W,u)&&d.state.next({...n,name:W}),d.state.next({name:s.mount?W:void 0,values:Lt(a)})},Y=async W=>{s.mount=!0;const Z=W.target;let J=Z.name,ge=!0;const ye=Le(i,J),me=xe=>{ge=Number.isNaN(xe)||Hi(xe)&&isNaN(xe.getTime())||ai(xe,Le(a,J,xe))},se=p1(t.mode),ve=p1(t.reValidateMode);if(ye){let xe,Be;const De=Z.type?h1(ye._f):kN(W),Ye=W.type===s1.BLUR||W.type===s1.FOCUS_OUT,Fn=!zN(ye._f)&&!t.resolver&&!Le(n.errors,J)&&!ye._f.deps||VN(Ye,Le(n.touchedFields,J),n.isSubmitted,ve,se),qt=v1(J,u,Ye);ht(a,J,De),Ye?(!Z||!Z.readOnly)&&(ye._f.onBlur&&ye._f.onBlur(W),h&&h(0)):ye._f.onChange&&ye._f.onChange(W);const kn=O(J,De,Ye),Sr=!fn(kn)||qt;if(!Ye&&d.state.next({name:J,type:W.type,values:Lt(a)}),Fn)return(p.isValid||f.isValid)&&(t.mode==="onBlur"?Ye&&y():Ye||y()),Sr&&d.state.next({name:J,...qt?{}:kn});if(!Ye&&qt&&d.state.next({...n}),t.resolver){const{errors:xt}=await I([J]);if(me(De),ge){const On=y1(n.errors,i,J),Ut=y1(xt,i,On.name||J);xe=Ut.error,J=Ut.name,Be=fn(xt)}}else g([J],!0),xe=(await w1(ye,u.disabled,a,m,t.shouldUseNativeValidation))[J],g([J]),me(De),ge&&(xe?Be=!1:(p.isValid||f.isValid)&&(Be=await B(i,!0)));ge&&(ye._f.deps&&(!Array.isArray(ye._f.deps)||ye._f.deps.length>0)&&$(ye._f.deps),R(J,Be,xe,kn))}},X=(W,Z)=>{if(Le(n.errors,Z)&&W.focus)return W.focus(),1},$=async(W,Z={})=>{let J,ge;const ye=ma(W);if(t.resolver){const me=await j(Ot(W)?W:ye);J=fn(me),ge=W?!ye.some(se=>Le(me,se)):J}else W?(ge=(await Promise.all(ye.map(async me=>{const se=Le(i,me);return await B(se&&se._f?{[me]:se}:se)}))).every(Boolean),!(!ge&&!n.isValid)&&y()):ge=J=await B(i);return d.state.next({...!Sn(W)||(p.isValid||f.isValid)&&J!==n.isValid?{}:{name:W},...t.resolver||!W?{isValid:J}:{},errors:n.errors}),Z.shouldFocus&&!ge&&va(i,X,W?ye:u.mount),ge},T=(W,Z)=>{let J={...s.mount?a:l};return Z&&(J=XS(Z.dirtyFields?n.dirtyFields:n.touchedFields,J)),Ot(W)?J:Sn(W)?Le(J,W):W.map(ge=>Le(J,ge))},A=(W,Z)=>({invalid:!!Le((Z||n).errors,W),isDirty:!!Le((Z||n).dirtyFields,W),error:Le((Z||n).errors,W),isValidating:!!Le(n.validatingFields,W),isTouched:!!Le((Z||n).touchedFields,W)}),q=W=>{W&&ma(W).forEach(Z=>_t(n.errors,Z)),d.state.next({errors:W?n.errors:{}})},M=(W,Z,J)=>{const ge=(Le(i,W,{_f:{}})._f||{}).ref,ye=Le(n.errors,W)||{},{ref:me,message:se,type:ve,...xe}=ye;ht(n.errors,W,{...xe,...Z,ref:ge}),d.state.next({name:W,errors:n.errors,isValid:!1}),J&&J.shouldFocus&&ge&&ge.focus&&ge.focus()},ee=(W,Z)=>Zn(W)?d.state.subscribe({next:J=>"values"in J&&W(N(void 0,Z),J)}):N(W,Z,!0),te=W=>d.state.subscribe({next:Z=>{UN(W.name,Z.name,W.exact)&&qN(Z,W.formState||p,Ze,W.reRenderRoot)&&W.callback({values:{...a},...n,...Z,defaultValues:l})}}).unsubscribe,V=W=>(s.mount=!0,f={...f,...W.formState},te({...W,formState:f})),K=(W,Z={})=>{for(const J of W?ma(W):u.mount)u.mount.delete(J),u.array.delete(J),Z.keepValue||(_t(i,J),_t(a,J)),!Z.keepError&&_t(n.errors,J),!Z.keepDirty&&_t(n.dirtyFields,J),!Z.keepTouched&&_t(n.touchedFields,J),!Z.keepIsValidating&&_t(n.validatingFields,J),!t.shouldUnregister&&!Z.keepDefaultValue&&_t(l,J);d.state.next({values:Lt(a)}),d.state.next({...n,...Z.keepDirty?{isDirty:P()}:{}}),!Z.keepIsValid&&y()},ie=({disabled:W,name:Z})=>{(sr(W)&&s.mount||W||u.disabled.has(Z))&&(W?u.disabled.add(Z):u.disabled.delete(Z))},le=(W,Z={})=>{let J=Le(i,W);const ge=sr(Z.disabled)||sr(t.disabled);return ht(i,W,{...J||{},_f:{...J&&J._f?J._f:{ref:{name:W}},name:W,mount:!0,...Z}}),u.mount.add(W),J?ie({disabled:sr(Z.disabled)?Z.disabled:t.disabled,name:W}):E(W,!0,Z.value),{...ge?{disabled:Z.disabled||t.disabled}:{},...t.progressive?{required:!!Z.required,min:oa(Z.min),max:oa(Z.max),minLength:oa(Z.minLength),maxLength:oa(Z.maxLength),pattern:oa(Z.pattern)}:{},name:W,onChange:Y,onBlur:Y,ref:ye=>{if(ye){le(W,Z),J=Le(i,W);const me=Ot(ye.value)&&ye.querySelectorAll&&ye.querySelectorAll("input,select,textarea")[0]||ye,se=LN(me),ve=J._f.refs||[];if(se?ve.find(xe=>xe===me):me===J._f.ref)return;ht(i,W,{_f:{...J._f,...se?{refs:[...ve.filter(wd),me,...Array.isArray(Le(l,W))?[{}]:[]],ref:{type:me.type,name:W}}:{ref:me}}}),E(W,!1,void 0,me)}else J=Le(i,W,{}),J._f&&(J._f.mount=!1),(t.shouldUnregister||Z.shouldUnregister)&&!(CN(u.array,W)&&s.action)&&u.unMount.add(W)}}},ce=()=>t.shouldFocusError&&va(i,X,u.mount),we=W=>{sr(W)&&(d.state.next({disabled:W}),va(i,(Z,J)=>{const ge=Le(i,J);ge&&(Z.disabled=ge._f.disabled||W,Array.isArray(ge._f.refs)&&ge._f.refs.forEach(ye=>{ye.disabled=ge._f.disabled||W}))},0,!1))},Oe=(W,Z)=>async J=>{let ge;J&&(J.preventDefault&&J.preventDefault(),J.persist&&J.persist());let ye=Lt(a);if(d.state.next({isSubmitting:!0}),t.resolver){const{errors:me,values:se}=await I();n.errors=me,ye=Lt(se)}else await B(i);if(u.disabled.size)for(const me of u.disabled)_t(ye,me);if(_t(n.errors,"root"),fn(n.errors)){d.state.next({errors:{}});try{await W(ye,J)}catch(me){ge=me}}else Z&&await Z({...n.errors},J),ce(),setTimeout(ce);if(d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:fn(n.errors)&&!ge,submitCount:n.submitCount+1,errors:n.errors}),ge)throw ge},Re=(W,Z={})=>{Le(i,W)&&(Ot(Z.defaultValue)?Q(W,Lt(Le(l,W))):(Q(W,Z.defaultValue),ht(l,W,Lt(Z.defaultValue))),Z.keepTouched||_t(n.touchedFields,W),Z.keepDirty||(_t(n.dirtyFields,W),n.isDirty=Z.defaultValue?P(W,Lt(Le(l,W))):P()),Z.keepError||(_t(n.errors,W),p.isValid&&y()),d.state.next({...n}))},Fe=(W,Z={})=>{const J=W?Lt(W):l,ge=Lt(J),ye=fn(W),me=ye?l:ge;if(Z.keepDefaultValues||(l=J),!Z.keepValues){if(Z.keepDirtyValues){const se=new Set([...u.mount,...Object.keys(Vo(l,a))]);for(const ve of Array.from(se))Le(n.dirtyFields,ve)?ht(me,ve,Le(a,ve)):Q(ve,Le(me,ve))}else{if(Np&&Ot(W))for(const se of u.mount){const ve=Le(i,se);if(ve&&ve._f){const xe=Array.isArray(ve._f.refs)?ve._f.refs[0]:ve._f.ref;if(Iu(xe)){const Be=xe.closest("form");if(Be){Be.reset();break}}}}if(Z.keepFieldsRef)for(const se of u.mount)Q(se,Le(me,se));else i={}}a=t.shouldUnregister?Z.keepDefaultValues?Lt(l):{}:Lt(me),d.array.next({values:{...me}}),d.state.next({values:{...me}})}u={mount:Z.keepDirtyValues?u.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!p.isValid||!!Z.keepIsValid||!!Z.keepDirtyValues,s.watch=!!t.shouldUnregister,d.state.next({submitCount:Z.keepSubmitCount?n.submitCount:0,isDirty:ye?!1:Z.keepDirty?n.isDirty:!!(Z.keepDefaultValues&&!ai(W,l)),isSubmitted:Z.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:ye?{}:Z.keepDirtyValues?Z.keepDefaultValues&&a?Vo(l,a):n.dirtyFields:Z.keepDefaultValues&&W?Vo(l,W):Z.keepDirty?n.dirtyFields:{},touchedFields:Z.keepTouched?n.touchedFields:{},errors:Z.keepErrors?n.errors:{},isSubmitSuccessful:Z.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:l})},$e=(W,Z)=>Fe(Zn(W)?W(a):W,Z),lt=(W,Z={})=>{const J=Le(i,W),ge=J&&J._f;if(ge){const ye=ge.refs?ge.refs[0]:ge.ref;
vendor: 4,507 bytes, line 170
170ye.focus&&(ye.focus(),Z.shouldSelect&&Zn(ye.select)&&ye.select())}},Ze=W=>{n={...n,...W}},pe={control:{register:le,unregister:K,getFieldState:A,handleSubmit:Oe,setError:M,_subscribe:te,_runSchema:I,_focusError:ce,_getWatch:N,_getDirty:P,_setValid:y,_setFieldArray:b,_setDisabledField:ie,_setErrors:_,_getFieldArray:F,_reset:Fe,_resetDefaultValues:()=>Zn(t.defaultValues)&&t.defaultValues().then(W=>{$e(W,t.resetOptions),d.state.next({isLoading:!1})}),_removeUnmounted:L,_disableForm:we,_subjects:d,_proxyFormState:p,get _fields(){return i},get _formValues(){return a},get _state(){return s},set _state(W){s=W},get _defaultValues(){return l},get _names(){return u},set _names(W){u=W},get _formState(){return n},get _options(){return t},set _options(W){t={...t,...W}}},subscribe:V,trigger:$,register:le,handleSubmit:Oe,watch:ee,setValue:Q,getValues:T,reset:$e,resetField:Re,clearErrors:q,unregister:K,setError:M,setFocus:lt,getFieldState:A};return{...pe,formControl:pe}}function V3(e={}){const t=gt.useRef(void 0),n=gt.useRef(void 0),[i,l]=gt.useState({isDirty:!1,isValidating:!1,isLoading:Zn(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:Zn(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:i},e.defaultValues&&!Zn(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:s,...u}=KN(e);t.current={...u,formState:i}}const a=t.current.control;return a._options=e,RN(()=>{const s=a._subscribe({formState:a._proxyFormState,callback:()=>l({...a._formState}),reRenderRoot:!0});return l(u=>({...u,isReady:!0})),a._formState.isReady=!0,s},[a]),gt.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),gt.useEffect(()=>{e.mode&&(a._options.mode=e.mode),e.reValidateMode&&(a._options.reValidateMode=e.reValidateMode)},[a,e.mode,e.reValidateMode]),gt.useEffect(()=>{e.errors&&(a._setErrors(e.errors),a._focusError())},[a,e.errors]),gt.useEffect(()=>{e.shouldUnregister&&a._subjects.state.next({values:a._getWatch()})},[a,e.shouldUnregister]),gt.useEffect(()=>{if(a._proxyFormState.isDirty){const s=a._getDirty();s!==i.isDirty&&a._subjects.state.next({isDirty:s})}},[a,i.isDirty]),gt.useEffect(()=>{e.values&&!ai(e.values,n.current)?(a._reset(e.values,{keepFieldsRef:!0,...a._options.resetOptions}),n.current=e.values,l(s=>({...s}))):a._resetDefaultValues()},[a,e.values]),gt.useEffect(()=>{a._state.mount||(a._setValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),t.current.formState=TN(i,a),t.current}var jp="Radio",[QN,rx]=_n(jp),[GN,YN]=QN(jp),ix=D.forwardRef((e,t)=>{const{__scopeRadio:n,name:i,checked:l=!1,required:a,disabled:s,value:u="on",onCheck:h,form:v,...p}=e,[f,d]=D.useState(null),m=Ge(t,g=>d(g)),S=D.useRef(!1),y=f?v||!!f.closest("form"):!0;return re.jsxs(GN,{scope:n,checked:l,disabled:s,children:[re.jsx(Ue.button,{type:"button",role:"radio","aria-checked":l,"data-state":sx(l),"data-disabled":s?"":void 0,disabled:s,value:u,...p,ref:m,onClick:Ae(e.onClick,g=>{l||h==null||h(),y&&(S.current=g.isPropagationStopped(),S.current||g.stopPropagation())})}),y&&re.jsx(ax,{control:f,bubbles:!S.current,name:i,value:u,checked:l,required:a,disabled:s,form:v,style:{transform:"translateX(-100%)"}})]})});ix.displayName=jp;var ox="RadioIndicator",lx=D.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:i,...l}=e,a=YN(ox,n);return re.jsx(hn,{present:i||a.checked,children:re.jsx(Ue.span,{"data-state":sx(a.checked),"data-disabled":a.disabled?"":void 0,...l,ref:t})})});lx.displayName=ox;var XN="RadioBubbleInput",ax=D.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:i=!0,...l},a)=>{const s=D.useRef(null),u=Ge(s,a),h=up(n),v=lp(t);return D.useEffect(()=>{const p=s.current;if(!p)return;const f=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(f,"checked").set;if(h!==n&&m){const S=new Event("click",{bubbles:i});m.call(p,n),p.dispatchEvent(S)}},[h,n,i]),re.jsx(Ue.input,{type:"radio","aria-hidden":!0,defaultChecked:n,...l,tabIndex:-1,ref:u,style:{...l.style,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});ax.displayName=XN;function sx(e){return e?"checked":"unchecked"}var ZN=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],ac="RadioGroup",[JN]=_n(ac,[gl,rx]),ux=gl(),cx=rx(),[eI,tI]=JN(ac),fx=D.forwardRef((e,t)=>
vendor: 15,614 bytes, line 170
170{const{__scopeRadioGroup:n,name:i,defaultValue:l,value:a,required:s=!1,disabled:u=!1,orientation:h,dir:v,loop:p=!0,onValueChange:f,...d}=e,m=ux(n),S=pl(v),[y,g]=xi({prop:a,defaultProp:l??null,onChange:f,caller:ac});return re.jsx(eI,{scope:n,name:i,required:s,disabled:u,value:y,onValueChange:g,children:re.jsx(dp,{asChild:!0,...m,orientation:h,dir:S,loop:p,children:re.jsx(Ue.div,{role:"radiogroup","aria-required":s,"aria-orientation":h,"data-disabled":u?"":void 0,dir:S,...d,ref:t})})})});fx.displayName=ac;var dx="RadioGroupItem",hx=D.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:i,...l}=e,a=tI(dx,n),s=a.disabled||i,u=ux(n),h=cx(n),v=D.useRef(null),p=Ge(t,v),f=a.value===l.value,d=D.useRef(!1);return D.useEffect(()=>{const m=y=>{ZN.includes(y.key)&&(d.current=!0)},S=()=>d.current=!1;return document.addEventListener("keydown",m),document.addEventListener("keyup",S),()=>{document.removeEventListener("keydown",m),document.removeEventListener("keyup",S)}},[]),re.jsx(hp,{asChild:!0,...u,focusable:!s,active:f,children:re.jsx(ix,{disabled:s,required:a.required,checked:f,...h,...l,name:a.name,ref:p,onCheck:()=>a.onValueChange(l.value),onKeyDown:Ae(m=>{m.key==="Enter"&&m.preventDefault()}),onFocus:Ae(l.onFocus,()=>{var m;d.current&&((m=v.current)==null||m.click())})})})});hx.displayName=dx;var nI="RadioGroupIndicator",px=D.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...i}=e,l=cx(n);return re.jsx(lx,{...l,...i,ref:t})});px.displayName=nI;var H3=fx,$3=hx,W3=px,zo={},bd,b1;function mx(){return b1||(b1=1,bd={L:1,M:0,Q:3,H:2}),bd}var Sd,S1;function vx(){return S1||(S1=1,Sd={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8}),Sd}var xd,x1;function rI(){if(x1)return xd;x1=1;var e=vx();function t(n){this.mode=e.MODE_8BIT_BYTE,this.data=n}return t.prototype={getLength:function(n){return this.data.length},write:function(n){for(var i=0;i<this.data.length;i++)n.put(this.data.charCodeAt(i),8)}},xd=t,xd}var Ed,E1;function iI(){if(E1)return Ed;E1=1;var e=mx();function t(n,i){this.totalCount=n,this.dataCount=i}return t.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],t.getRSBlocks=function(n,i){var l=t.getRsBlockTable(n,i);if(l==null)throw new Error("bad rs block @ typeNumber:"+n+"/errorCorrectLevel:"+i);for(var a=l.length/3,s=new Array,u=0;u<a;u++)for(var h=l[u*3+0],v=l[u*3+1],p=l[u*3+2],f=0;f<h;f++)s.push(new t(v,p));return s},t.getRsBlockTable=function(n,i){switch(i){case e.L:return t.RS_BLOCK_TABLE[(n-1)*4+0];case e.M:return t.RS_BLOCK_TABLE[(n-1)*4+1];case e.Q:return t.RS_BLOCK_TABLE[(n-1)*4+2];case e.H:return t.RS_BLOCK_TABLE[(n-1)*4+3];default:return}},Ed=t,Ed}var _d,_1;function oI(){if(_1)return _d;_1=1;function e(){this.buffer=new Array,this.length=0}return e.prototype={get:function(t){var n=Math.floor(t/8);return(this.buffer[n]>>>7-t%8&1)==1},put:function(t,n){for(var i=0;i<n;i++)this.putBit((t>>>n-i-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(t){var n=Math.floor(this.length/8);this.buffer.length<=n&&this.buffer.push(0),t&&(this.buffer[n]|=128>>>this.length%8),this.length++}},_d=e,_d}var kd,k1;function yx(){if(k1)return kd;k1=1;for(var e={glog:function(n){if(n<1)throw new Error("glog("+n+")");return e.LOG_TABLE[n]},gexp:function(n){for(;n<0;)n+=255;for(;n>=256;)n-=255;return e.EXP_TABLE[n]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},t=0;t<8;t++)e.EXP_TABLE[t]=1<<t;for(var t=8;t<256;t++)e.EXP_TABLE[t]=e.EXP_TABLE[t-4]^e.EXP_TABLE[t-5]^e.EXP_TABLE[t-6]^e.EXP_TABLE[t-8];for(var t=0;t<255;t++)e.LOG_TABLE[e.EXP_TABLE[t]]=t;return kd=e,kd}var Od,O1;function gx(){if(O1)return Od;O1=1;var e=yx();function t(n,i){if(n.length==null)throw new Error(n.length+"/"+i);for(var l=0;l<n.length&&n[l]==0;)l++;this.num=new Array(n.length-l+i);for(var a=0;a<n.length-l;a++)this.num[a]=n[a+l]}return t.prototype={get:function(n){return this.num[n]},getLength:function(){return this.num.length},multiply:function(n){for(var i=new Array(this.getLength()+n.getLength()-1),l=0;l<this.getLength();l++)for(var a=0;a<n.getLength();a++)i[l+a]^=e.gexp(e.glog(this.get(l))+e.glog(n.get(a)));return new t(i,0)},mod:function(n){if(this.getLength()-n.getLength()<0)return this;for(var i=e.glog(this.get(0))-e.glog(n.get(0)),l=new Array(this.getLength()),a=0;a<this.getLength();a++)l[a]=this.get(a);for(var a=0;a<n.getLength();a++)l[a]^=e.gexp(e.glog(n.get(a))+i);return new t(l,0).mod(n)}},Od=t,Od}var Cd,C1;function lI(){if(C1)return Cd;C1=1;var e=vx(),t=gx(),n=yx(),i={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},l={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(a){for(var s=a<<10;l.getBCHDigit(s)-l.getBCHDigit(l.G15)>=0;)s^=l.G15<<l.getBCHDigit(s)-l.getBCHDigit(l.G15);return(a<<10|s)^l.G15_MASK},getBCHTypeNumber:function(a){for(var s=a<<12;l.getBCHDigit(s)-l.getBCHDigit(l.G18)>=0;)s^=l.G18<<l.getBCHDigit(s)-l.getBCHDigit(l.G18);return a<<12|s},getBCHDigit:function(a){for(var s=0;a!=0;)s++,a>>>=1;return s},getPatternPosition:function(a){return l.PATTERN_POSITION_TABLE[a-1]},getMask:function(a,s,u){switch(a){case i.PATTERN000:return(s+u)%2==0;case i.PATTERN001:return s%2==0;case i.PATTERN010:return u%3==0;case i.PATTERN011:return(s+u)%3==0;case i.PATTERN100:return(Math.floor(s/2)+Math.floor(u/3))%2==0;case i.PATTERN101:return s*u%2+s*u%3==0;case i.PATTERN110:return(s*u%2+s*u%3)%2==0;case i.PATTERN111:return(s*u%3+(s+u)%2)%2==0;default:throw new Error("bad maskPattern:"+a)}},getErrorCorrectPolynomial:function(a){for(var s=new t([1],0),u=0;u<a;u++)s=s.multiply(new t([1,n.gexp(u)],0));return s},getLengthInBits:function(a,s){if(1<=s&&s<10)switch(a){case e.MODE_NUMBER:return 10;case e.MODE_ALPHA_NUM:return 9;case e.MODE_8BIT_BYTE:return 8;case e.MODE_KANJI:return 8;default:throw new Error("mode:"+a)}else if(s<27)switch(a){case e.MODE_NUMBER:return 12;case e.MODE_ALPHA_NUM:return 11;case e.MODE_8BIT_BYTE:return 16;case e.MODE_KANJI:return 10;default:throw new Error("mode:"+a)}else if(s<41)switch(a){case e.MODE_NUMBER:return 14;case e.MODE_ALPHA_NUM:return 13;case e.MODE_8BIT_BYTE:return 16;case e.MODE_KANJI:return 12;default:throw new Error("mode:"+a)}else throw new Error("type:"+s)},getLostPoint:function(a){for(var s=a.getModuleCount(),u=0,h=0;h<s;h++)for(var v=0;v<s;v++){for(var p=0,f=a.isDark(h,v),d=-1;d<=1;d++)if(!(h+d<0||s<=h+d))for(var m=-1;m<=1;m++)v+m<0||s<=v+m||d==0&&m==0||f==a.isDark(h+d,v+m)&&p++;p>5&&(u+=3+p-5)}for(var h=0;h<s-1;h++)for(var v=0;v<s-1;v++){var S=0;a.isDark(h,v)&&S++,a.isDark(h+1,v)&&S++,a.isDark(h,v+1)&&S++,a.isDark(h+1,v+1)&&S++,(S==0||S==4)&&(u+=3)}for(var h=0;h<s;h++)for(var v=0;v<s-6;v++)a.isDark(h,v)&&!a.isDark(h,v+1)&&a.isDark(h,v+2)&&a.isDark(h,v+3)&&a.isDark(h,v+4)&&!a.isDark(h,v+5)&&a.isDark(h,v+6)&&(u+=40);for(var v=0;v<s;v++)for(var h=0;h<s-6;h++)a.isDark(h,v)&&!a.isDark(h+1,v)&&a.isDark(h+2,v)&&a.isDark(h+3,v)&&a.isDark(h+4,v)&&!a.isDark(h+5,v)&&a.isDark(h+6,v)&&(u+=40);for(var y=0,v=0;v<s;v++)for(var h=0;h<s;h++)a.isDark(h,v)&&y++;var g=Math.abs(100*y/s/s-50)/5;return u+=g*10,u}};return Cd=l,Cd}var Pd,P1;function aI(){if(P1)return Pd;P1=1;var e=rI(),t=iI(),n=oI(),i=lI(),l=gx();function a(u,h){this.typeNumber=u,this.errorCorrectLevel=h,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}var s=a.prototype;return s.addData=function(u){var h=new e(u);this.dataList.push(h),this.dataCache=null},s.isDark=function(u,h){if(u<0||this.moduleCount<=u||h<0||this.moduleCount<=h)throw new Error(u+","+h);return this.modules[u][h]},s.getModuleCount=function(){return this.moduleCount},s.make=function(){if(this.typeNumber<1){var u=1;for(u=1;u<40;u++){for(var h=t.getRSBlocks(u,this.errorCorrectLevel),v=new n,p=0,f=0;f<h.length;f++)p+=h[f].dataCount;for(var f=0;f<this.dataList.length;f++){var d=this.dataList[f];v.put(d.mode,4),v.put(d.getLength(),i.getLengthInBits(d.mode,u)),d.write(v)}if(v.getLengthInBits()<=p*8)break}this.typeNumber=u}this.makeImpl(!1,this.getBestMaskPattern())},s.makeImpl=function(u,h){this.moduleCount=this.typeNumber*4+17,this.modules=new Array(this.moduleCount);for(var v=0;v<this.moduleCount;v++){this.modules[v]=new Array(this.moduleCount);for(var p=0;p<this.moduleCount;p++)this.modules[v][p]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(u,h),this.typeNumber>=7&&this.setupTypeNumber(u),this.dataCache==null&&(this.dataCache=a.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,h)},s.setupPositionProbePattern=function(u,h){for(var v=-1;v<=7;v++)if(!(u+v<=-1||this.moduleCount<=u+v))for(var p=-1;p<=7;p++)h+p<=-1||this.moduleCount<=h+p||(0<=v&&v<=6&&(p==0||p==6)||0<=p&&p<=6&&(v==0||v==6)||2<=v&&v<=4&&2<=p&&p<=4?this.modules[u+v][h+p]=!0:this.modules[u+v][h+p]=!1)},s.getBestMaskPattern=function(){for(var u=0,h=0,v=0;v<8;v++){this.makeImpl(!0,v);var p=i.getLostPoint(this);(v==0||u>p)&&(u=p,h=v)}return h},s.createMovieClip=function(u,h,v){var p=u.createEmptyMovieClip(h,v),f=1;this.make();for(var d=0;d<this.modules.length;d++)for(var m=d*f,S=0;S<this.modules[d].length;S++){var y=S*f,g=this.modules[d][S];g&&(p.beginFill(0,100),p.moveTo(y,m),p.lineTo(y+f,m),p.lineTo(y+f,m+f),p.lineTo(y,m+f),p.endFill())}return p},s.setupTimingPattern=function(){for(var u=8;u<this.moduleCount-8;u++)this.modules[u][6]==null&&(this.modules[u][6]=u%2==0);for(var h=8;h<this.moduleCount-8;h++)this.modules[6][h]==null&&(this.modules[6][h]=h%2==0)},s.setupPositionAdjustPattern=function(){for(var u=i.getPatternPosition(this.typeNumber),h=0;h<u.length;h++)for(var v=0;v<u.length;v++){var p=u[h],f=u[v];if(this.modules[p][f]==null)for(var d=-2;d<=2;d++)for(var m=-2;m<=2;m++)d==-2||d==2||m==-2||m==2||d==0&&m==0?this.modules[p+d][f+m]=!0:this.modules[p+d][f+m]=!1}},s.setupTypeNumber=function(u){for(var h=i.getBCHTypeNumber(this.typeNumber),v=0;v<18;v++){var p=!u&&(h>>v&1)==1;this.modules[Math.floor(v/3)][v%3+this.moduleCount-8-3]=p}for(var v=0;v<18;v++){var p=!u&&(h>>v&1)==1;this.modules[v%3+this.moduleCount-8-3][Math.floor(v/3)]=p}},s.setupTypeInfo=function(u,h){for(var v=this.errorCorrectLevel<<3|h,p=i.getBCHTypeInfo(v),f=0;f<15;f++){var d=!u&&(p>>f&1)==1;f<6?this.modules[f][8]=d:f<8?this.modules[f+1][8]=d:this.modules[this.moduleCount-15+f][8]=d}for(var f=0;f<15;f++){var d=!u&&(p>>f&1)==1;f<8?this.modules[8][this.moduleCount-f-1]=d:f<9?this.modules[8][15-f-1+1]=d:this.modules[8][15-f-1]=d}this.modules[this.moduleCount-8][8]=!u},s.mapData=function(u,h){for(var v=-1,p=this.moduleCount-1,f=7,d=0,m=this.moduleCount-1;m>0;m-=2)for(m==6&&m--;;){for(var S=0;S<2;S++)if(this.modules[p][m-S]==null){var y=!1;d<u.length&&(y=(u[d]>>>f&1)==1);var g=i.getMask(h,p,m-S);g&&(y=!y),this.modules[p][m-S]=y,f--,f==-1&&(d++,f=7)}if(p+=v,p<0||this.moduleCount<=p){p-=v,v=-v;break}}},a.PAD0=236,a.PAD1=17,a.createData=function(u,h,v){for(var p=t.getRSBlocks(u,h),f=new n,d=0;d<v.length;d++){var m=v[d];f.put(m.mode,4),f.put(m.getLength(),i.getLengthInBits(m.mode,u)),m.write(f)}for(var S=0,d=0;d<p.length;d++)S+=p[d].dataCount;if(f.getLengthInBits()>S*8)throw new Error("code length overflow. ("+f.getLengthInBits()+">"+S*8+")");for(f.getLengthInBits()+4<=S*8&&f.put(0,4);f.getLengthInBits()%8!=0;)f.putBit(!1);for(;!(f.getLengthInBits()>=S*8||(f.put(a.PAD0,8),f.getLengthInBits()>=S*8));)f.put(a.PAD1,8);return a.createBytes(f,p)},a.createBytes=function(u,h){for(var v=0,p=0,f=0,d=new Array(h.length),m=new Array(h.length),S=0;S<h.length;S++){var y=h[S].dataCount,g=h[S].totalCount-y;p=Math.max(p,y),f=Math.max(f,g),d[S]=new Array(y);for(var b=0;b<d[S].length;b++)d[S][b]=255&u.buffer[b+v];v+=y;var x=i.getErrorCorrectPolynomial(g),_=new l(d[S],x.getLength()-1),E=_.mod(x);m[S]=new Array(x.getLength()-1);for(var b=0;b<m[S].length;b++){var O=b+E.getLength()-m[S].length;m[S][b]=O>=0?E.get(O):0}}for(var R=0,b=0;b<h.length;b++)R+=h[b].totalCount;for(var I=new Array(R),j=0,b=0;b<p;b++)for(var S=0;S<h.length;S++)b<d[S].length&&(I[j++]=d[S][b]);for(var b=0;b<f;b++)for(var S=0;S<h.length;S++)b<m[S].length&&(I[j++]=m[S][b]);return I},Pd=a,Pd}var lu={},A1;function sI(){if(A1)return lu;
170A1=1,Object.defineProperty(lu,"__esModule",{value:!0});var e=Object.assign||function(v){for(var p=1;p<arguments.length;p++){var f=arguments[p];for(var d in f)Object.prototype.hasOwnProperty.call(f,d)&&(v[d]=f[d])}return v},t=mp(),n=a(t),i=ul(),l=a(i);function a(v){return v&&v.__esModule?v:{default:v}}function s(v,p){var f={};for(var d in v)p.indexOf(d)>=0||Object.prototype.hasOwnProperty.call(v,d)&&(f[d]=v[d]);return f}var u={bgColor:n.default.oneOfType([n.default.object,n.default.string]).isRequired,bgD:n.default.string.isRequired,fgColor:n.default.oneOfType([n.default.object,n.default.string]).isRequired,fgD:n.default.string.isRequired,size:n.default.number.isRequired,title:n.default.string,viewBoxSize:n.default.number.isRequired,xmlns:n.default.string},h=(0,i.forwardRef)(function(v,p){var f=v.bgColor,d=v.bgD,m=v.fgD,S=v.fgColor,y=v.size,g=v.title,b=v.viewBoxSize,x=v.xmlns,_=x===void 0?"http://www.w3.org/2000/svg":x,E=s(v,["bgColor","bgD","fgD","fgColor","size","title","viewBoxSize","xmlns"]);return l.default.createElement("svg",e({},E,{height:y,ref:p,viewBox:"0 0 "+b+" "+b,width:y,xmlns:_}),g?l.default.createElement("title",null,g):null,l.default.createElement("path",{d,fill:f}),l.default.createElement("path",{d:m,fill:S}))});return h.displayName="QRCodeSvg",h.propTypes=u,lu.default=h,lu}var T1;function uI(){if(T1)return zo;T1=1,Object.defineProperty(zo,"__esModule",{value:!0}),zo.QRCode=void 0;var e=Object.assign||function(y){for(var g=1;g<arguments.length;g++){var b=arguments[g];for(var x in b)Object.prototype.hasOwnProperty.call(b,x)&&(y[x]=b[x])}return y},t=mp(),n=f(t),i=mx(),l=f(i),a=aI(),s=f(a),u=ul(),h=f(u),v=sI(),p=f(v);function f(y){return y&&y.__esModule?y:{default:y}}function d(y,g){var b={};for(var x in y)g.indexOf(x)>=0||Object.prototype.hasOwnProperty.call(y,x)&&(b[x]=y[x]);return b}var m={bgColor:n.default.oneOfType([n.default.object,n.default.string]),fgColor:n.default.oneOfType([n.default.object,n.default.string]),level:n.default.string,size:n.default.number,value:n.default.string.isRequired},S=(0,u.forwardRef)(function(y,g){var b=y.bgColor,x=b===void 0?"#FFFFFF":b,_=y.fgColor,E=_===void 0?"#000000":_,O=y.level,R=O===void 0?"L":O,I=y.size,j=I===void 0?256:I,B=y.value,L=d(y,["bgColor","fgColor","level","size","value"]),P=new s.default(-1,l.default[R]);P.addData(B),P.make();var N=P.modules;return h.default.createElement(p.default,e({},L,{bgColor:x,bgD:N.map(function(F,z){return F.map(function(H,Q){return H?"":"M "+Q+" "+z+" l 1 0 0 1 -1 0 Z"}).join(" ")}).join(" "),fgColor:E,fgD:N.map(function(F,z){return F.map(function(H,Q){return H?"M "+Q+" "+z+" l 1 0 0 1 -1 0 Z":""}).join(" ")}).join(" "),ref:g,size:j,viewBoxSize:N.length}))});return zo.QRCode=S,S.displayName="QRCode",S.propTypes=m,zo.default=S,zo}var cI=uI();const K3=Ei(cI);function fI(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const dI=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,hI=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,pI={};function R1(e,t){return(pI.jsx?hI:dI).test(e)}const mI=/[ \t\n\f\r]/g;function vI(e){return typeof e=="object"?e.type==="text"?N1(e.value):!1:N1(e)}function N1(e){return e.replace(mI,"")===""}class qa{constructor(t,n,i){this.normal=n,this.property=t,i&&(this.space=i)}}qa.prototype.normal={};qa.prototype.property={};qa.prototype.space=void 0;function wx(e,t){const n={},i={};for(const l of e)Object.assign(n,l.property),Object.assign(i,l.normal);return new qa(n,i,t)}function Th(e){return e.toLowerCase()}class pn{constructor(t,n){this.attribute=n,this.property=t}}pn.prototype.attribute="";pn.prototype.booleanish=!1;pn.prototype.boolean=!1;pn.prototype.commaOrSpaceSeparated=!1;pn.prototype.commaSeparated=!1;pn.prototype.defined=!1;pn.prototype.mustUseProperty=!1;pn.prototype.number=!1;pn.prototype.overloadedBoolean=!1;pn.prototype.property="";pn.prototype.spaceSeparated=!1;pn.prototype.space=void 0;let yI=0;const We=co(),kt=co(),Rh=co(),_e=co(),st=co(),Wo=co(),wn=co();function co(){return 2**++yI}const Nh=Object.freeze(Object.defineProperty({__proto__:null,boolean:We,booleanish:kt,commaOrSpaceSeparated:wn,commaSeparated:Wo,number:_e,overloadedBoolean:Rh,spaceSeparated:st},Symbol.toStringTag,{value:"Module"}
vendor: 4,335 bytes, line 170
170)),Ad=Object.keys(Nh);class Fp extends pn{constructor(t,n,i,l){let a=-1;if(super(t,n),I1(this,"space",l),typeof i=="number")for(;++a<Ad.length;){const s=Ad[a];I1(this,Ad[a],(i&Nh[s])===Nh[s])}}}Fp.prototype.defined=!0;function I1(e,t,n){n&&(e[t]=n)}function wl(e){const t={},n={};for(const[i,l]of Object.entries(e.properties)){const a=new Fp(i,e.transform(e.attributes||{},i),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(a.mustUseProperty=!0),t[i]=a,n[Th(i)]=i,n[Th(a.attribute)]=i}return new qa(t,n,e.space)}const bx=wl({properties:{ariaActiveDescendant:null,ariaAtomic:kt,ariaAutoComplete:null,ariaBusy:kt,ariaChecked:kt,ariaColCount:_e,ariaColIndex:_e,ariaColSpan:_e,ariaControls:st,ariaCurrent:null,ariaDescribedBy:st,ariaDetails:null,ariaDisabled:kt,ariaDropEffect:st,ariaErrorMessage:null,ariaExpanded:kt,ariaFlowTo:st,ariaGrabbed:kt,ariaHasPopup:null,ariaHidden:kt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:st,ariaLevel:_e,ariaLive:null,ariaModal:kt,ariaMultiLine:kt,ariaMultiSelectable:kt,ariaOrientation:null,ariaOwns:st,ariaPlaceholder:null,ariaPosInSet:_e,ariaPressed:kt,ariaReadOnly:kt,ariaRelevant:null,ariaRequired:kt,ariaRoleDescription:st,ariaRowCount:_e,ariaRowIndex:_e,ariaRowSpan:_e,ariaSelected:kt,ariaSetSize:_e,ariaSort:null,ariaValueMax:_e,ariaValueMin:_e,ariaValueNow:_e,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Sx(e,t){return t in e?e[t]:t}function xx(e,t){return Sx(e,t.toLowerCase())}const gI=wl({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Wo,acceptCharset:st,accessKey:st,action:null,allow:null,allowFullScreen:We,allowPaymentRequest:We,allowUserMedia:We,alt:null,as:null,async:We,autoCapitalize:null,autoComplete:st,autoFocus:We,autoPlay:We,blocking:st,capture:null,charSet:null,checked:We,cite:null,className:st,cols:_e,colSpan:null,content:null,contentEditable:kt,controls:We,controlsList:st,coords:_e|Wo,crossOrigin:null,data:null,dateTime:null,decoding:null,default:We,defer:We,dir:null,dirName:null,disabled:We,download:Rh,draggable:kt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:We,formTarget:null,headers:st,height:_e,hidden:Rh,high:_e,href:null,hrefLang:null,htmlFor:st,httpEquiv:st,id:null,imageSizes:null,imageSrcSet:null,inert:We,inputMode:null,integrity:null,is:null,isMap:We,itemId:null,itemProp:st,itemRef:st,itemScope:We,itemType:st,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:We,low:_e,manifest:null,max:null,maxLength:_e,media:null,method:null,min:null,minLength:_e,multiple:We,muted:We,name:null,nonce:null,noModule:We,noValidate:We,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:We,optimum:_e,pattern:null,ping:st,placeholder:null,playsInl
170ine:We,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:We,referrerPolicy:null,rel:st,required:We,reversed:We,rows:_e,rowSpan:_e,sandbox:st,scope:null,scoped:We,seamless:We,selected:We,shadowRootClonable:We,shadowRootDelegatesFocus:We,shadowRootMode:null,shape:null,size:_e,sizes:null,slot:null,span:_e,spellCheck:kt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:_e,step:null,style:null,tabIndex:_e,target:null,title:null,translate:null,type:null,typeMustMatch:We,useMap:null,value:kt,width:_e,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:st,axis:null,background:null,bgColor:null,border:_e,borderColor:null,bottomMargin:_e,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:We,declare:We,event:null,face:null,frame:null,frameBorder:null,hSpace:_e,leftMargin:_e,link:null,longDesc:null,lowSrc:null,marginHeight:_e,marginWidth:_e,noResize:We,noHref:We,noShade:We,noWrap:We,object:null,profile:null,prompt:null,rev:null,rightMargin:_e,rules:null,scheme:null,scrolling:kt,standby:null,summary:null,text:null,topMargin:_e,valueType:null,version:null,vAlign:null,vLink:null,vSpace:_e,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:We,disableRemotePlayback:We,prefix:null,property:null,results:_e,security:null,unselectable:null},space:"html",transform:xx}),wI=wl({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav
170-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:wn,accentHeight:_e,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:_e,amplitude:_e,arabicForm:null,ascent:_e,attributeName:null,attributeType:null,azimuth:_e,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:_e,by:null,calcMode:null,capHeight:_e,className:st,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:_e,diffuseConstant:_e,direction:null,display:null,dur:null,divisor:_e,dominantBaseline:null,download:We,dx:null,dy:null,edgeMode:null,editable:null,elevation:_e,enableBackground:null,end:null,event:null,exponent:_e,externalResourcesRequired:null,fill:null,fillOpacity:_e,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Wo,g2:Wo,glyphName:Wo,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:_e,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:_e,horizOriginX:_e,horizOriginY:_e,id:null,ideographic:_e,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:_e,k:_e,k1:_e,k2:_e,k3:_e,k4:_e,kernelMatrix:wn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:_e,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:_e,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,on
vendor: 4,866 bytes, lines 170-171
170Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:_e,overlineThickness:_e,paintOrder:null,panose1:null,path:null,pathLength:_e,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:st,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:_e,pointsAtY:_e,pointsAtZ:_e,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:wn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:wn,rev:wn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:wn,requiredFeatures:wn,requiredFonts:wn,requiredFormats:wn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:_e,specularExponent:_e,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:_e,strikethroughThickness:_e,string:null,stroke:null,strokeDashArray:wn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:_e,strokeOpacity:_e,strokeWidth:null,style:null,surfaceScale:_e,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:wn,tabIndex:_e,tableValues:null,target:null,targetX:_e,targetY:_e,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:wn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:_e,underlineThickness:_e,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:_e,values:null,vAlphabetic:_e,vMathematical:_e,vectorEffect:null,vHanging:_e,vIdeographic:_e,version:null,vertAdvY:_e,vertOriginX:_e,vertOriginY:_e,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:_e,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Sx}),Ex=wl({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),_x=wl({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:xx}),kx=wl({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),bI={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},SI=/[A-Z]/g,L1=/-[a-z]/g,xI=/^data[-\w.:]+$/i;function EI(e,t){const n=Th(t);let i=t,l=pn;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&xI.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(L1,kI);i="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!L1.test(a)){let s=a.replace(SI,_I);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}l=Fp}return new l(i,t)}function _I(e){return"-"+e.toLowerCase()}function kI(e){return e.charAt(1).toUpperCase()}const OI=wx([bx,gI,Ex,_x,kx],"html"),Bp=wx([bx,wI,Ex,_x,kx],"svg");function CI(e){return e.join(" ").trim()}var qo={},Td,M1;function PI(){if(M1)return Td;M1=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,l=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,u=/^\s+|\s+$/g,h=`
171`,v="/",p="*",f="",d="comment",m="declaration";Td=function(y,g){if(typeof y!="string")throw new TypeError("First argument must be a string");if(!y)return[];g=g||{};var b=1,x=1;function _(F){var z=F.match(t);z&&(b+=z.length);var H=F.lastIndexOf(h);x=~H?F.length-H:x+F.length}function E(){var F={line:b,column:x};return function(z){return z.position=new O(F),j(),z}}function O(F){this.start=F,this.end={line:b,column:x},this.source=g.source}O.prototype.content=y;function R(F){var z=new Error(g.source+":"+b+":"+x+": "+F);if(z.reason=F,z.filename=g.source,z.line=b,z.column=x,z.source=y,!g.silent)throw z}function I(F){var z=F.exec(y);if(z){var H=z[0];return _(H),y=y.slice(H.length),z}}function j(){I(n)}function B(F){var z;for(F=F||[];z=L();)z!==!1&&F.push(z);return F}function L(){var F=E();if(!(v!=y.charAt(0)||p!=y.charAt(1))){for(var z=2;f!=y.charAt(z)&&(p!=y.charAt(z)||v!=y.charAt(z+1));)++z;if(z+=2,f===y.charAt(z-1))return R("End of comment missing");var H=y.slice(2,z-2);
vendor: 4,219 bytes, line 171
171return x+=2,_(H),y=y.slice(z),x+=2,F({type:d,comment:H})}}function P(){var F=E(),z=I(i);if(z){if(L(),!I(l))return R("property missing ':'");var H=I(a),Q=F({type:m,property:S(z[0].replace(e,f)),value:H?S(H[0].replace(e,f)):f});return I(s),Q}}function N(){var F=[];B(F);for(var z;z=P();)z!==!1&&(F.push(z),B(F));return F}return j(),N()};function S(y){return y?y.replace(u,f):f}return Td}var D1;function AI(){if(D1)return qo;D1=1;var e=qo&&qo.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(qo,"__esModule",{value:!0}),qo.default=n;var t=e(PI());function n(i,l){var a=null;if(!i||typeof i!="string")return a;var s=(0,t.default)(i),u=typeof l=="function";return s.forEach(function(h){if(h.type==="declaration"){var v=h.property,p=h.value;u?l(v,p,h):p&&(a=a||{},a[v]=p)}}),a}return qo}var la={},j1;function TI(){if(j1)return la;j1=1,Object.defineProperty(la,"__esModule",{value:!0}),la.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,l=/^-(ms)-/,a=function(v){return!v||n.test(v)||e.test(v)},s=function(v,p){return p.toUpperCase()},u=function(v,p){return"".concat(p,"-")},h=function(v,p){return p===void 0&&(p={}),a(v)?v:(v=v.toLowerCase(),p.reactCompat?v=v.replace(l,u):v=v.replace(i,u),v.replace(t,s))};return la.camelCase=h,la}var aa,F1;function RI(){if(F1)return aa;F1=1;var e=aa&&aa.__importDefault||function(l){return l&&l.__esModule?l:{default:l}},t=e(AI()),n=TI();function i(l,a){var s={};return!l||typeof l!="string"||(0,t.default)(l,function(u,h){u&&h&&(s[(0,n.camelCase)(u,a)]=h)}),s}return i.default=i,aa=i,aa}var NI=RI();const II=Ei(NI),Ox=Cx("end"),zp=Cx("start");function Cx(e){return t;function t(n){const i=n&&n.position&&n.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function LI(e){const t=zp(e),n=Ox(e);if(t&&n)return{start:t,end:n}}function ya(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?B1(e.position):"start"in e||"end"in e?B1(e):"line"in e||"column"in e?Ih(e):""}function Ih(e){return z1(e&&e.line)+":"+z1(e&&e.column)}function B1(e){return Ih(e&&e.start)+"-"+Ih(e&&e.end)}function z1(e){return e&&typeof e=="number"?e:1}class Kt extends Error{constructor(t,n,i){super(),typeof n=="string"&&(i=n,n=void 0);let l="",a={},s=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?l=t:!a.cause&&t&&(s=!0,l=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof i=="string"){const h=i.indexOf(":");h===-1?a.ruleId=i:(a.source=i.slice(0,h),a.ruleId=i.slice(h+1))}if(!a.place&&a.ancestors&&a.ancestors){const h=a.ancestors[a.ancestors.length-1];h&&(a.place=h.position)}const u=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=u?u.column:void 0,this.fatal=void 0,this.file="",this.message=l,this.line=u?u.line:void 0,this.name=ya(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=s&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Kt.prototype.file="";Kt.prototype.name="";Kt.prototype.reason="";Kt.prototype.message="";Kt.prototype.stack="";Kt.prototype.column=void 0;Kt.prototype.line=void 0;Kt.prototype.ancestors=void 0;Kt.prototype.cause=void 0;Kt.prototype.fatal=void 0;Kt.prototype.place=void 0;Kt.prototype.ruleId=void 0;Kt.prototype.source=void 0;const qp={}.hasOwnProperty,MI=new Map,DI=/[A-Z]/g,jI=new Set(["table","tbody","thead","tfoot","tr"]),FI=new Set(["td","th"]),Px="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function BI(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let i;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=KI(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");
vendor: 9,519 bytes, line 171
171if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=WI(n,t.jsx,t.jsxs)}const l={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Bp:OI,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=Ax(l,e,void 0);return a&&typeof a!="string"?a:l.create(e,l.Fragment,{children:a||void 0},void 0)}function Ax(e,t,n){if(t.type==="element")return zI(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return qI(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return VI(e,t,n);if(t.type==="mdxjsEsm")return UI(e,t);if(t.type==="root")return HI(e,t,n);if(t.type==="text")return $I(e,t)}function zI(e,t,n){const i=e.schema;let l=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(l=Bp,e.schema=l),e.ancestors.push(t);const a=Rx(e,t.tagName,!1),s=QI(e,t);let u=Vp(e,t);return jI.has(t.tagName)&&(u=u.filter(function(h){return typeof h=="string"?!vI(h):!0})),Tx(e,s,a,t),Up(s,u),e.ancestors.pop(),e.schema=i,e.create(t,a,s,n)}function qI(e,t){if(t.data&&t.data.estree&&e.evaluater){const i=t.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}Aa(e,t.position)}function UI(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Aa(e,t.position)}function VI(e,t,n){const i=e.schema;let l=i;t.name==="svg"&&i.space==="html"&&(l=Bp,e.schema=l),e.ancestors.push(t);const a=t.name===null?e.Fragment:Rx(e,t.name,!0),s=GI(e,t),u=Vp(e,t);return Tx(e,s,a,t),Up(s,u),e.ancestors.pop(),e.schema=i,e.create(t,a,s,n)}function HI(e,t,n){const i={};return Up(i,Vp(e,t)),e.create(t,e.Fragment,i,n)}function $I(e,t){return t.value}function Tx(e,t,n,i){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=i)}function Up(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function WI(e,t,n){return i;function i(l,a,s,u){const v=Array.isArray(s.children)?n:t;return u?v(a,s,u):v(a,s)}}function KI(e,t){return n;function n(i,l,a,s){const u=Array.isArray(a.children),h=zp(i);return t(l,a,s,u,{columnNumber:h?h.column-1:void 0,fileName:e,lineNumber:h?h.line:void 0},void 0)}}function QI(e,t){const n={};let i,l;for(l in t.properties)if(l!=="children"&&qp.call(t.properties,l)){const a=YI(e,l,t.properties[l]);if(a){const[s,u]=a;e.tableCellAlignToStyle&&s==="align"&&typeof u=="string"&&FI.has(t.tagName)?i=u:n[s]=u}}if(i){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return n}function GI(e,t){const n={};for(const i of t.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const a=i.data.estree.body[0];a.type;const s=a.expression;s.type;const u=s.properties[0];u.type,Object.assign(n,e.evaluater.evaluateExpression(u.argument))}else Aa(e,t.position);else{const l=i.name;let a;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const u=i.value.data.estree.body[0];u.type,a=e.evaluater.evaluateExpression(u.expression)}else Aa(e,t.position);else a=i.value===null?!0:i.value;n[l]=a}return n}function Vp(e,t){const n=[];let i=-1;const l=e.passKeys?new Map:MI;for(;++i<t.children.length;){const a=t.children[i];let s;if(e.passKeys){const h=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(h){const v=l.get(h)||0;s=h+"-"+v,l.set(h,v+1)}}const u=Ax(e,a,s);u!==void 0&&n.push(u)}return n}function YI(e,t,n){const i=EI(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?fI(n):CI(n)),i.property==="style"){let l=typeof n=="object"?n:XI(e,String(n));return e.stylePropertyNameCase==="css"&&(l=ZI(l)),["style",l]}return[e.elementAttributeNameCase==="react"&&i.space?bI[i.property]||i.property:i.attribute,n]}}function XI(e,t){try{return II(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const i=n,l=new Kt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw l.file=e.filePath||void 0,l.url=Px+"#cannot-parse-style-attribute",l}}function Rx(e,t,n){let i;if(!n)i={type:"Literal",value:t};else if(t.includes(".")){const l=t.split(".");let a=-1,s;for(;++a<l.length;){const u=R1(l[a])?{type:"Identifier",name:l[a]}:{type:"Literal",value:l[a]};s=s?{type:"MemberExpression",object:s,property:u,computed:!!(a&&u.type==="Literal"),optional:!1}:u}i=s}else i=R1(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const l=i.value;return qp.call(e.components,l)?e.components[l]:l}if(e.evaluater)return e.evaluater.evaluateExpression(i);Aa(e)}function Aa(e,t){const n=new Kt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Px+"#cannot-handle-mdx-estrees-without-createevaluater",n}function ZI(e){const t={};let n;for(n in e)qp.call(e,n)&&(t[JI(n)]=e[n]);return t}function JI(e){let t=e.replace(DI,eL);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function eL(e){return"-"+e.toLowerCase()}const Rd={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},tL={};function nL(e,t){const n=tL,i=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,l=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Nx(e,i,l)}function Nx(e,t,n){if(rL(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return q1(e.children,t,n)}return Array.isArray(e)?q1(e,t,n):""}function q1(e,t,n){const i=[];let l=-1;for(;++l<e.length;)i[l]=Nx(e[l],t,n);return i.join("")}function rL(e){return!!(e&&typeof e=="object")}const U1=document.createElement("i");function Hp(e){const t="&"+e+";";U1.innerHTML=t;const n=U1.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function gr(e,t,n,i){const l=e.length;let a=0,s;if(t<0?t=-t>l?0:l+t:t=t>l?l:t,n=n>0?n:0,i.length<1e4)s=Array.from(i),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);a<i.length;)s=i.slice(a,a+1e4),s.unshift(t,0),e.splice(...s),a+=1e4,t+=1e4}function Mn(e,t){return e.length>0?(gr(e,e.length,0,t),e):t}const V1={}.hasOwnProperty;function iL(e){const t={};let n=-1;for(;++n<e.length;)oL(t,e[n]);return t}function oL(e,t){let n;for(n in t){const l=(V1.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let s;if(a)for(s in a){V1.call(l,s)||(l[s]=[]);const u=a[s];lL(l[s],Array.isArray(u)?u:u?[u]:[])}}}function lL(e,t){let n=-1;const i=[];for(;++n<t.length;)(t[n].add==="after"?e:i).push(t[n]);gr(e,0,0,i)}function Ix(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Ko(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const hr=Ai(/[A-Za-z]/),xn=Ai(/[\dA-Za-z]/),aL=Ai(/[#-'*+\--9=?A-Z^-~]/);function Lh(e){return e!==null&&(e<32||e===127)}const Mh=Ai(/\d/),sL=Ai(/[\dA-Fa-f]/),uL=Ai(/[!-/:-@[-`{-~]/);function He(e){return e!==null&&e<-2}function dn(e){return e!==null&&(e<0||e===32)}function tt(e){return e===-2||e===-1||e===32}const cL=Ai(new RegExp("\\p{P}|\\p{S}","u")),fL=Ai(/\s/);function Ai(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function bl(e){const t=[];let n=-1,i=0,l=0;for(;++n<e.length;){const a=e.charCodeAt(n);let s="";if(a===37&&xn(e.charCodeAt(n+1))&&xn(e.charCodeAt(n+2)))l=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(s=String.fromCharCode(a));else if(a>55295&&a<57344){const u=e.charCodeAt(n+1);a<56320&&u>56319&&u<57344?(s=String.fromCharCode(a,u),l=1):s="�"}else s=String.fromCharCode(a);s&&(t.push(e.slice(i,n),encodeURIComponent(s)),i=n+l+1,s=""),l&&(n+=l,l=0)}return t.join("")+e.slice(i)}function ut(e,t,n,i){const l=i?i-1:Number.POSITIVE_INFINITY;let a=0;return s;function s(h){return tt(h)?(e.enter(n),u(h)):t(h)}function u(h){return tt(h)&&a++<l?(e.consume(h),u):(e.exit(n),t(h))}}const dL={tokenize:hL};function hL(e){const t=e.attempt(this.parser.constructs.contentInitial,i,l);let n;return t;function i(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),ut(e,t,"linePrefix")}function l(u){return e.enter("paragraph"),a(u)}function a(u){const h=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=h),n=h,s(u)}function s(u){if(u===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(u);return}return He(u)?(e.consume(u),e.exit("chunkText"),a):(e.consume(u),s)}}const pL={tokenize:mL},H1={tokenize:vL};function mL(e){const t=this,n=[];let i=0,l,a,s;return u;function u(_){if(i<n.length){const E=n[i];return t.containerState=E[1],e.attempt(E[0].continuation,h,v)(_)}return v(_)}function h(_){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,l&&x();const E=t.events.length;let O=E,R;for(;O--;)if(t.events[O][0]==="exit"&&t.events[O][1].type==="chunkFlow"){R=t.events[O][1].end;break}
vendor: 7,663 bytes, line 171
171b(i);let I=E;for(;I<t.events.length;)t.events[I][1].end={...R},I++;return gr(t.events,O+1,0,t.events.slice(E)),t.events.length=I,v(_)}return u(_)}function v(_){if(i===n.length){if(!l)return d(_);if(l.currentConstruct&&l.currentConstruct.concrete)return S(_);t.interrupt=!!(l.currentConstruct&&!l._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(H1,p,f)(_)}function p(_){return l&&x(),b(i),d(_)}function f(_){return t.parser.lazy[t.now().line]=i!==n.length,s=t.now().offset,S(_)}function d(_){return t.containerState={},e.attempt(H1,m,S)(_)}function m(_){return i++,n.push([t.currentConstruct,t.containerState]),d(_)}function S(_){if(_===null){l&&x(),b(0),e.consume(_);return}return l=l||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:l,contentType:"flow",previous:a}),y(_)}function y(_){if(_===null){g(e.exit("chunkFlow"),!0),b(0),e.consume(_);return}return He(_)?(e.consume(_),g(e.exit("chunkFlow")),i=0,t.interrupt=void 0,u):(e.consume(_),y)}function g(_,E){const O=t.sliceStream(_);if(E&&O.push(null),_.previous=a,a&&(a.next=_),a=_,l.defineSkip(_.start),l.write(O),t.parser.lazy[_.start.line]){let R=l.events.length;for(;R--;)if(l.events[R][1].start.offset<s&&(!l.events[R][1].end||l.events[R][1].end.offset>s))return;const I=t.events.length;let j=I,B,L;for(;j--;)if(t.events[j][0]==="exit"&&t.events[j][1].type==="chunkFlow"){if(B){L=t.events[j][1].end;break}B=!0}for(b(i),R=I;R<t.events.length;)t.events[R][1].end={...L},R++;gr(t.events,j+1,0,t.events.slice(I)),t.events.length=R}}function b(_){let E=n.length;for(;E-- >_;){const O=n[E];t.containerState=O[1],O[0].exit.call(t,e)}n.length=_}function x(){l.write([null]),a=void 0,l=void 0,t.containerState._closeFlow=void 0}}function vL(e,t,n){return ut(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function $1(e){if(e===null||dn(e)||fL(e))return 1;if(cL(e))return 2}function $p(e,t,n){const i=[];let l=-1;for(;++l<e.length;){const a=e[l].resolveAll;a&&!i.includes(a)&&(t=a(t,n),i.push(a))}return t}const Dh={name:"attention",resolveAll:yL,tokenize:gL};function yL(e,t){let n=-1,i,l,a,s,u,h,v,p;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(i=n;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;h=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f={...e[i][1].end},d={...e[n][1].start};W1(f,-h),W1(d,h),s={type:h>1?"strongSequence":"emphasisSequence",start:f,end:{...e[i][1].end}},u={type:h>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:d},a={type:h>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[n][1].start}},l={type:h>1?"strong":"emphasis",start:{...s.start},end:{...u.end}},e[i][1].end={...s.start},e[n][1].start={...u.end},v=[],e[i][1].end.offset-e[i][1].start.offset&&(v=Mn(v,[["enter",e[i][1],t],["exit",e[i][1],t]])),v=Mn(v,[["enter",l,t],["enter",s,t],["exit",s,t],["enter",a,t]]),v=Mn(v,$p(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),v=Mn(v,[["exit",a,t],["enter",u,t],["exit",u,t],["exit",l,t]]),e[n][1].end.offset-e[n][1].start.offset?(p=2,v=Mn(v,[["enter",e[n][1],t],["exit",e[n][1],t]])):p=0,gr(e,i-1,n-i+3,v),n=i+v.length-p-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function gL(e,t){const n=this.parser.constructs.attentionMarkers.null,i=this.previous,l=$1(i);let a;return s;function s(h){return a=h,e.enter("attentionSequence"),u(h)}function u(h){if(h===a)return e.consume(h),u;const v=e.exit("attentionSequence"),p=$1(h),f=!p||p===2&&l||n.includes(h),d=!l||l===2&&p||n.includes(i);return v._open=!!(a===42?f:f&&(l||!d)),v._close=!!(a===42?d:d&&(p||!f)),t(h)}}function W1(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const wL={name:"autolink",tokenize:bL};function bL(e,t,n){let i=0;return l;function l(m){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(m){return hr(m)?(e.consume(m),s):m===64?n(m):v(m)}function s(m){return m===43||m===45||m===46||xn(m)?(i=1,u(m)):v(m)}function u(m){return m===58?(e.consume(m),i=0,h):(m===43||m===45||m===46||xn(m))&&i++<32?(e.consume(m),u):(i=0,v(m))}function h(m){return m===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):m===null||m===32||m===60||Lh(m)?n(m):(e.consume(m),h)}function v(m){return m===64?(e.consume(m),p):aL(m)?(e.consume(m),v):n(m)}function p(m){return xn(m)?f(m):n(m)}function f(m){return m===46?(e.consume(m),i=0,p):m===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):d(m)}function d(m){if((m===45||xn(m))&&i++<63){const S=m===45?d:f;return e.consume(m),S}return n(m)}}const sc={partial:!0,tokenize:SL};function SL(e,t,n){return i;function i(a){return tt(a)?ut(e,l,"linePrefix")(a):l(a)}function l(a){return a===null||He(a)?t(a):n(a)}}const Lx={continuation:{tokenize:EL},exit:_L,name:"blockQuote",tokenize:xL};function xL(e,t,n){const i=this;return l;function l(s){if(s===62){const u=i.containerState;return u.open||(e.enter("blockQuote",{_container:!0}),u.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),a}return n(s)}function a(s){return tt(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function EL(e,t,n){const i=this;return l;function l(s){return tt(s)?ut(e,a,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):a(s)}function a(s){return e.attempt(Lx,t,n)(s)}}function _L(e){e.exit("blockQuote")}const Mx={name:"characterEscape",tokenize:kL};function kL(e,t,n){return i;function i(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),l}function l(a){return uL(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(a)}}const Dx={name:"characterReference",tokenize:OL};function OL(e,t,n){const i=this;let l=0,a,s;return u;function u(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),h}function h(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),v):(e.enter("characterReferenceValue"),a=31,s=xn,p(f))}function v(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,s=sL,p):(e.enter("characterReferenceValue"),a=7,s=Mh,p(f))}function p(f){if(f===59&&l){const d=e.exit("characterReferenceValue");return s===xn&&!Hp(i.sliceSerialize(d))?n(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(f)&&l++<a?(e.consume(f),p):n(f)}}const K1={partial:!0,tokenize:PL},Q1={concrete:!0,name:"codeFenced",tokenize:CL};function CL(e,t,n){const i=this,l={partial:!0,tokenize:O};let a=0,s=0,u;return h;function h(R){return v(R)}function v(R){const I=i.events[i.events.length-1];return a=I&&I[1].type==="linePrefix"?I[2].sliceSerialize(I[1],!0).length:0,u=R,e.enter("co
171deFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),p(R)}function p(R){return R===u?(s++,e.consume(R),p):s<3?n(R):(e.exit("codeFencedFenceSequence"),tt(R)?ut(e,f,"whitespace")(R):f(R))}function f(R){return R===null||He(R)?(e.exit("codeFencedFence"),i.interrupt?t(R):e.check(K1,y,E)(R)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(R))}function d(R){return R===null||He(R)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(R)):tt(R)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ut(e,m,"whitespace")(R)):R===96&&R===u?n(R):(e.consume(R),d)}function m(R){return R===null||He(R)?f(R):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),S(R))}function S(R){return R===null||He(R)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(R)):R===96&&R===u?n(R):(e.consume(R),S)}function y(R){return e.attempt(l,E,g)(R)}function g(R){return e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),b}function b(R){return a>0&&tt(R)?ut(e,x,"linePrefix",a+1)(R):x(R)}function x(R){return R===null||He(R)?e.check(K1,y,E)(R):(e.enter("codeFlowValue"),_(R))}function _(R){return R===null||He(R)?(e.exit("codeFlowValue"),x(R)):(e.consume(R),_)}function E(R){return e.exit("codeFenced"),t(R)}function O(R,I,j){let B=0;return L;function L(H){return R.enter("lineEnding"),R.consume(H),R.exit("lineEnding"),P}function P(H){return R.enter("codeFencedFence"),tt(H)?ut(R,N,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(H):N(H)}function N(H){return H===u?(R.enter("codeFencedFenceSequence"),F(H)):j(H)}function F(H){return H===u?(B++,R.consume(H),F):B>=s?(R.exit("codeFencedFenceSequence"),tt(H)?ut(R,z,"whitespace")(H):z(H)):j(H)}function z(H){return H===null||He(H)?(R.exit("codeFencedFence"),I(H)):j(H)}}}function PL(e,t,n){const i=this;return l;function l(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a)}function a(s){return i.parser.lazy[i.now().line]?n(s):t(s)}}const Nd={name:"codeIndented",tokenize:TL},AL={partial:!0,tokenize:RL};function TL(e,t,n){const i=this;return l;function l(v){return e.enter("codeIndented"),ut(e,a,"linePrefix",5)(v)}function a(v){const p=i.events[i.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?s(v):n(v)}function s(v){return v===null?h(v):He(v)?e.attempt(AL,s,h)(v):(e.enter("codeFlowValue"),u(v))}function u(v){return v===null||He(v)?(e.exit("codeFlowValue"),s(v)):(e.consume(v),u)}function h(v){return e.exit("codeIndented"),t(v)}}function RL(e,t,n){const i=this;return l;function l(s){return i.parser.lazy[i.now().line]?n(s):He(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),l):ut(e,a,"linePrefix",5)(s)}function a(s){const u=i.events[i.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(s):He(s)?l(s):n(s)}}const NL={name:"codeText",previous:LL,resolve:IL,tokenize:ML};function IL(e){let t=e.length-4,n=3,i,l;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=n;++i<t;)if(e[i][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(i=n-1,t++;++i<=t;)l===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(l=i):(i===t||e[i][1].type==="lineEnding")&&(e[l][1].type="codeTextData",i!==l+2&&(e[l][1].end=e[i-1][1].end,e.splice(l+2,i-l-2),t-=i-l-2,i=l+2),l=void 0);return e}function LL(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ML(e,t,n){let i=0,l,a;return s;function s(f){return e.enter("codeText"),e.enter("codeTextSequence"),u(f)}function u(f){return f===96?(e.consume(f),i++,u):(e.exit("codeTextSequence"),h(f))}function h(f){return f===null?n(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),h):f===96?(a=e.enter("codeTextSequence"),l=0,p(f)):He(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),h):(e.enter("codeTextData"),v(f))}function v(f){return f===null||f===32||f===96||He(f)?(e.exit("codeTextData"),h(f)):(e.consume(f),v)}function p(f){return f===96?(e.consume(f),l++,p):l===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(a.type="codeTextData",v(f))}}class DL{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const i=n??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,n,i){const l=n||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-l,Number.POSITIVE_INFINITY);return i&&sa(this.left,i),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),sa(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),sa(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);sa(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);sa(this.left,n.reverse())}}}function sa(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function jx(e){const t={};let n=-1,i,l,a,s,u,h,v;const p=new DL(e);for(;++n<p.length;){for(;n in t;)n=t[n];if(i=p.get(n),n&&i[1].type==="chunkFlow"&&p.get(n-1)[1].type==="listItemPrefix"&&(h=i[1]._tokenizer.events,a=0,a<h.length&&h[a][1].type==="lineEndingBlank"&&(a+=2),a<h.length&&h[a][1].type==="content"))for(;++a<h.length&&h[a][1].type!=="content";)h[a][1].type==="chunkText"&&(h[a][1]._isInFirstContentOfListItem=!0,a++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,jL(p,n)),n=t[n],v=!0);else if(i[1]._container){for(a=n,l=void 0;a--;)if(s=p.get(a),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(l&&(p.get(l)[1].type="lineEndingBlank"),s[1].type="lineEnding",l=a);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;l&&(i[1].end={...p.get(l)[1].start},u=p.slice(l,n),u.unshift(i),p.splice(l,n-l+1,u))}}return gr(e,0,Number.POSITIVE_INFINITY,p.slice(0)),!v}function jL(e,t){const n=e.get(t)[1],i=e.get(t)[2];let l=t-1;const a=[];let s=n._tokenizer;s||(s=i.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._c
vendor: 7,964 bytes, line 171
171ontentTypeTextTrailing=!0));const u=s.events,h=[],v={};let p,f,d=-1,m=n,S=0,y=0;const g=[y];for(;m;){for(;e.get(++l)[1]!==m;);a.push(l),m._tokenizer||(p=i.sliceStream(m),m.next||p.push(null),f&&s.defineSkip(m.start),m._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(p),m._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),f=m,m=m.next}for(m=n;++d<u.length;)u[d][0]==="exit"&&u[d-1][0]==="enter"&&u[d][1].type===u[d-1][1].type&&u[d][1].start.line!==u[d][1].end.line&&(y=d+1,g.push(y),m._tokenizer=void 0,m.previous=void 0,m=m.next);for(s.events=[],m?(m._tokenizer=void 0,m.previous=void 0):g.pop(),d=g.length;d--;){const b=u.slice(g[d],g[d+1]),x=a.pop();h.push([x,x+b.length-1]),e.splice(x,2,b)}for(h.reverse(),d=-1;++d<h.length;)v[S+h[d][0]]=S+h[d][1],S+=h[d][1]-h[d][0]-1;return v}const FL={resolve:zL,tokenize:qL},BL={partial:!0,tokenize:UL};function zL(e){return jx(e),e}function qL(e,t){let n;return i;function i(u){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),l(u)}function l(u){return u===null?a(u):He(u)?e.check(BL,s,a)(u):(e.consume(u),l)}function a(u){return e.exit("chunkContent"),e.exit("content"),t(u)}function s(u){return e.consume(u),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,l}}function UL(e,t,n){const i=this;return l;function l(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),ut(e,a,"linePrefix")}function a(s){if(s===null||He(s))return n(s);const u=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(s):e.interrupt(i.parser.constructs.flow,n,t)(s)}}function Fx(e,t,n,i,l,a,s,u,h){const v=h||Number.POSITIVE_INFINITY;let p=0;return f;function f(b){return b===60?(e.enter(i),e.enter(l),e.enter(a),e.consume(b),e.exit(a),d):b===null||b===32||b===41||Lh(b)?n(b):(e.enter(i),e.enter(s),e.enter(u),e.enter("chunkString",{contentType:"string"}),y(b))}function d(b){return b===62?(e.enter(a),e.consume(b),e.exit(a),e.exit(l),e.exit(i),t):(e.enter(u),e.enter("chunkString",{contentType:"string"}),m(b))}function m(b){return b===62?(e.exit("chunkString"),e.exit(u),d(b)):b===null||b===60||He(b)?n(b):(e.consume(b),b===92?S:m)}function S(b){return b===60||b===62||b===92?(e.consume(b),m):m(b)}function y(b){return!p&&(b===null||b===41||dn(b))?(e.exit("chunkString"),e.exit(u),e.exit(s),e.exit(i),t(b)):p<v&&b===40?(e.consume(b),p++,y):b===41?(e.consume(b),p--,y):b===null||b===32||b===40||Lh(b)?n(b):(e.consume(b),b===92?g:y)}function g(b){return b===40||b===41||b===92?(e.consume(b),y):y(b)}}function Bx(e,t,n,i,l,a){const s=this;let u=0,h;return v;function v(m){return e.enter(i),e.enter(l),e.consume(m),e.exit(l),e.enter(a),p}function p(m){return u>999||m===null||m===91||m===93&&!h||m===94&&!u&&"_hiddenFootnoteSupport"in s.parser.constructs?n(m):m===93?(e.exit(a),e.enter(l),e.consume(m),e.exit(l),e.exit(i),t):He(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),f(m))}function f(m){return m===null||m===91||m===93||He(m)||u++>999?(e.exit("chunkString"),p(m)):(e.consume(m),h||(h=!tt(m)),m===92?d:f)}function d(m){return m===91||m===92||m===93?(e.consume(m),u++,f):f(m)}}function zx(e,t,n,i,l,a){let s;return u;function u(d){return d===34||d===39||d===40?(e.enter(i),e.enter(l),e.consume(d),e.exit(l),s=d===40?41:d,h):n(d)}function h(d){return d===s?(e.enter(l),e.consume(d),e.exit(l),e.exit(i),t):(e.enter(a),v(d))}function v(d){return d===s?(e.exit(a),h(s)):d===null?n(d):He(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),ut(e,v,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(d))}function p(d){return d===s||d===null||He(d)?(e.exit("chunkString"),v(d)):(e.consume(d),d===92?f:p)}function f(d){return d===s||d===92?(e.consume(d),p):p(d)}}function ga(e,t){let n;return i;function i(l){return He(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n=!0,i):tt(l)?ut(e,i,n?"linePrefix":"lineSuffix")(l):t(l)}}const VL={name:"definition",tokenize:$L},HL={partial:!0,tokenize:WL};function $L(e,t,n){const i=this;let l;return a;function a(m){return e.enter("definition"),s(m)}function s(m){return Bx.call(i,e,u,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(m)}function u(m){return l=Ko(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),h):n(m)}function h(m){return dn(m)?ga(e,v)(m):v(m)}function v(m){return Fx(e,p,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(m)}function p(m){return e.attempt(HL,f,f)(m)}function f(m){return tt(m)?ut(e,d,"whitespace")(m):d(m)}function d(m){return m===null||He(m)?(e.exit("definition"),i.parser.defined.push(l),t(m)):n(m)}}function WL(e,t,n){return i;function i(u){return dn(u)?ga(e,l)(u):n(u)}function l(u){return zx(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function a(u){return tt(u)?ut(e,s,"whitespace")(u):s(u)}function s(u){return u===null||He(u)?t(u):n(u)}}const KL={name:"hardBreakEscape",tokenize:QL};function QL(e,t,n){return i;function i(a){return e.enter("hardBreakEscape"),e.consume(a),l}function l(a){return He(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const GL={name:"headingAtx",resolve:YL,tokenize:XL};function YL(e,t){let n=e.length-2,i=3,l,a;return e[i][1].type==="whitespace"&&(i+=2),n-2>i&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(i===n-1||n-4>i&&e[n-2][1].type==="whitespace")&&(n-=i+1===n?2:4),n>i&&(l={type:"atxHeadingText",start:e[i][1].start,end:e[n][1].end},a={type:"chunkText",start:e[i][1].start,end:e[n][1].end,contentType:"text"},gr(e,i,n-i+1,[["enter",l,t],["enter",a,t],["exit",a,t],["exit",l,t]])),e}function XL(e,t,n){let i=0;return l;function l(p){return e.enter("atxHeading"),a(p)}function a(p){return e.enter("atxHeadingSequence"),s(p)}function s(p){return p===35&&i++<6?(e.consume(p),s):p===null||dn(p)?(e.exit("atxHeadingSequence"),u(p)):n(p)}function u(p){return p===35?(e.enter("atxHeadingSequence"),h(p)):p===null||He(p)?(e.exit("atxHeading"),t(p)):tt(p)?ut(e,u,"whitespace")(p):(e.enter("atxHeadingText"),v(p))}function h(p){return p===35?(e.consume(p),h):(e.exit("atxHeadingSequence"),u(p))}function v(p){return p===null||p===35||dn(p)?(e.exit("atxHeadingText"),u(p)):(e.consume(p),v)}}const ZL=["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"],G1=["pre","script","style","textarea"],JL={concrete:!0,name:"htmlFlow",resolveTo:nM,tokenize:rM},eM={partial:!0,tokenize:oM},tM={partial:!0,tokenize:iM};function nM(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function rM(e,t,n){const i=this;let l,a,s,u,h;return v;function v(M){return p(M)}function p(M){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(M),f}function f(M){return M===33?(e.consume(M),d):M===47?(e.consume(M),a=!0,y):M===63?(e.consume(M),l=3,i.interrupt?t:T):hr(M)?(e.consume(M),s=String.fromCharCode(M),g):n(M)}function d(M){return M===45?(e.consume(M),l=2,m):M===91?(e.consume(M),l=5,u=0,S):hr(M)?(e.consume(M),l=4,i.interrupt?t:T):n(M)}function m(M){return M===45?(e.consume(M),i.interrupt?t:T):n(M)}function S(M){const ee="CDATA[";
vendor: 10,801 bytes, line 171
171return M===ee.charCodeAt(u++)?(e.consume(M),u===ee.length?i.interrupt?t:N:S):n(M)}function y(M){return hr(M)?(e.consume(M),s=String.fromCharCode(M),g):n(M)}function g(M){if(M===null||M===47||M===62||dn(M)){const ee=M===47,te=s.toLowerCase();return!ee&&!a&&G1.includes(te)?(l=1,i.interrupt?t(M):N(M)):ZL.includes(s.toLowerCase())?(l=6,ee?(e.consume(M),b):i.interrupt?t(M):N(M)):(l=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(M):a?x(M):_(M))}return M===45||xn(M)?(e.consume(M),s+=String.fromCharCode(M),g):n(M)}function b(M){return M===62?(e.consume(M),i.interrupt?t:N):n(M)}function x(M){return tt(M)?(e.consume(M),x):L(M)}function _(M){return M===47?(e.consume(M),L):M===58||M===95||hr(M)?(e.consume(M),E):tt(M)?(e.consume(M),_):L(M)}function E(M){return M===45||M===46||M===58||M===95||xn(M)?(e.consume(M),E):O(M)}function O(M){return M===61?(e.consume(M),R):tt(M)?(e.consume(M),O):_(M)}function R(M){return M===null||M===60||M===61||M===62||M===96?n(M):M===34||M===39?(e.consume(M),h=M,I):tt(M)?(e.consume(M),R):j(M)}function I(M){return M===h?(e.consume(M),h=null,B):M===null||He(M)?n(M):(e.consume(M),I)}function j(M){return M===null||M===34||M===39||M===47||M===60||M===61||M===62||M===96||dn(M)?O(M):(e.consume(M),j)}function B(M){return M===47||M===62||tt(M)?_(M):n(M)}function L(M){return M===62?(e.consume(M),P):n(M)}function P(M){return M===null||He(M)?N(M):tt(M)?(e.consume(M),P):n(M)}function N(M){return M===45&&l===2?(e.consume(M),Q):M===60&&l===1?(e.consume(M),Y):M===62&&l===4?(e.consume(M),A):M===63&&l===3?(e.consume(M),T):M===93&&l===5?(e.consume(M),$):He(M)&&(l===6||l===7)?(e.exit("htmlFlowData"),e.check(eM,q,F)(M)):M===null||He(M)?(e.exit("htmlFlowData"),F(M)):(e.consume(M),N)}function F(M){return e.check(tM,z,q)(M)}function z(M){return e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),H}function H(M){return M===null||He(M)?F(M):(e.enter("htmlFlowData"),N(M))}function Q(M){return M===45?(e.consume(M),T):N(M)}function Y(M){return M===47?(e.consume(M),s="",X):N(M)}function X(M){if(M===62){const ee=s.toLowerCase();return G1.includes(ee)?(e.consume(M),A):N(M)}return hr(M)&&s.length<8?(e.consume(M),s+=String.fromCharCode(M),X):N(M)}function $(M){return M===93?(e.consume(M),T):N(M)}function T(M){return M===62?(e.consume(M),A):M===45&&l===2?(e.consume(M),T):N(M)}function A(M){return M===null||He(M)?(e.exit("htmlFlowData"),q(M)):(e.consume(M),A)}function q(M){return e.exit("htmlFlow"),t(M)}}function iM(e,t,n){const i=this;return l;function l(s){return He(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):n(s)}function a(s){return i.parser.lazy[i.now().line]?n(s):t(s)}}function oM(e,t,n){return i;function i(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),e.attempt(sc,t,n)}}const lM={name:"htmlText",tokenize:aM};function aM(e,t,n){const i=this;let l,a,s;return u;function u(T){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(T),h}function h(T){return T===33?(e.consume(T),v):T===47?(e.consume(T),O):T===63?(e.consume(T),_):hr(T)?(e.consume(T),j):n(T)}function v(T){return T===45?(e.consume(T),p):T===91?(e.consume(T),a=0,S):hr(T)?(e.consume(T),x):n(T)}function p(T){return T===45?(e.consume(T),m):n(T)}function f(T){return T===null?n(T):T===45?(e.consume(T),d):He(T)?(s=f,Y(T)):(e.consume(T),f)}function d(T){return T===45?(e.consume(T),m):f(T)}function m(T){return T===62?Q(T):T===45?d(T):f(T)}function S(T){const A="CDATA[";return T===A.charCodeAt(a++)?(e.consume(T),a===A.length?y:S):n(T)}function y(T){return T===null?n(T):T===93?(e.consume(T),g):He(T)?(s=y,Y(T)):(e.consume(T),y)}function g(T){return T===93?(e.consume(T),b):y(T)}function b(T){return T===62?Q(T):T===93?(e.consume(T),b):y(T)}function x(T){return T===null||T===62?Q(T):He(T)?(s=x,Y(T)):(e.consume(T),x)}function _(T){return T===null?n(T):T===63?(e.consume(T),E):He(T)?(s=_,Y(T)):(e.consume(T),_)}function E(T){return T===62?Q(T):_(T)}function O(T){return hr(T)?(e.consume(T),R):n(T)}function R(T){return T===45||xn(T)?(e.consume(T),R):I(T)}function I(T){return He(T)?(s=I,Y(T)):tt(T)?(e.consume(T),I):Q(T)}function j(T){return T===45||xn(T)?(e.consume(T),j):T===47||T===62||dn(T)?B(T):n(T)}function B(T){return T===47?(e.consume(T),Q):T===58||T===95||hr(T)?(e.consume(T),L):He(T)?(s=B,Y(T)):tt(T)?(e.consume(T),B):Q(T)}function L(T){return T===45||T===46||T===58||T===95||xn(T)?(e.consume(T),L):P(T)}function P(T){return T===61?(e.consume(T),N):He(T)?(s=P,Y(T)):tt(T)?(e.consume(T),P):B(T)}function N(T){return T===null||T===60||T===61||T===62||T===96?n(T):T===34||T===39?(e.consume(T),l=T,F):He(T)?(s=N,Y(T)):tt(T)?(e.consume(T),N):(e.consume(T),z)}function F(T){return T===l?(e.consume(T),l=void 0,H):T===null?n(T):He(T)?(s=F,Y(T)):(e.consume(T),F)}function z(T){return T===null||T===34||T===39||T===60||T===61||T===96?n(T):T===47||T===62||dn(T)?B(T):(e.consume(T),z)}function H(T){return T===47||T===62||dn(T)?B(T):n(T)}function Q(T){return T===62?(e.consume(T),e.exit("htmlTextData"),e.exit("htmlText"),t):n(T)}function Y(T){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),X}function X(T){return tt(T)?ut(e,$,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(T):$(T)}function $(T){return e.enter("htmlTextData"),s(T)}}const Wp={name:"labelEnd",resolveAll:fM,resolveTo:dM,tokenize:hM},sM={tokenize:pM},uM={tokenize:mM},cM={tokenize:vM};function fM(e){let t=-1;const n=[];for(;++t<e.length;){const i=e[t][1];if(n.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const l=i.type==="labelImage"?4:2;i.type="data",t+=l}}return e.length!==n.length&&gr(e,0,e.length,n),e}function dM(e,t){let n=e.length,i=0,l,a,s,u;for(;n--;)if(l=e[n][1],a){if(l.type==="link"||l.type==="labelLink"&&l._inactive)break;e[n][0]==="enter"&&l.type==="labelLink"&&(l._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(l.type==="labelImage"||l.type==="labelLink")&&!l._balanced&&(a=n,l.type!=="labelLink")){i=2;break}}else l.type==="labelEnd"&&(s=n);const h={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},v={type:"label",start:{...e[a][1].start},end:{...e[s][1].end}},p={type:"labelText",start:{...e[a+i+2][1].end},end:{...e[s-2][1].start}};return u=[["enter",h,t],["enter",v,t]],u=Mn(u,e.slice(a+1,a+i+3)),u=Mn(u,[["enter",p,t]]),u=Mn(u,$p(t.parser.constructs.insideSpan.null,e.slice(a+i+4,s-3),t)),u=Mn(u,[["exit",p,t],e[s-2],e[s-1],["exit",v,t]]),u=Mn(u,e.slice(s+1)),u=Mn(u,[["exit",h,t]]),gr(e,a,e.length,u),e}function hM(e,t,n){const i=this;let l=i.events.length,a,s;for(;l--;)if((i.events[l][1].type==="labelImage"||i.events[l][1].type==="labelLink")&&!i.events[l][1]._balanced){a=i.events[l][1];break}return u;function u(d){return a?a._inactive?f(d):(s=i.parser.defined.includes(Ko(i.sliceSerialize({start:a.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelEnd"),h):n(d)}function h(d){return d===40?e.attempt(sM,p,s?p:f)(d):d===91?e.attempt(uM,p,s?v:f)(d):s?p(d):f(d)}function v(d){return e.attempt(cM,p,f)(d)}function p(d){return t(d)}function f(d){return a._balanced=!0,n(d)}}function pM(e,t,n){return i;function i(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),l}function l(f){return dn(f)?ga(e,a)(f):a(f)}function a(f){return f===41?p(f):Fx(e,s,u,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function s(f){return dn(f)?ga(e,h)(f):p(f)}function u(f){return n(f)}function h(f){return f===34||f===39||f===40?zx(e,v,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):p(f)}function v(f){return dn(f)?ga(e,p)(f):p(f)}function p(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):n(f)}}function mM(e,t,n){const i=this;return l;function l(u){return Bx.call(i,e,a,s,"reference","referenceMarker","referenceString")(u)}function a(u){return i.parser.defined.includes(Ko(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(u):n(u)}function s(u){return n(u)}}function vM(e,t,n){return i;function i(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),l}function l(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):n(a)}}const yM={name:"labelStartImage",resolveAll:Wp.resolveAll,tokenize:gM};function gM(e,t,n){const i=this;return l;function l(u){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(u),e.exit("labelImageMarker"),a}function a(u){return u===91?(e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelImage"),s):n(u)}function s(u){return u===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(u):t(u)}}const wM={name:"labelStartLink",resolveAll:Wp.resolveAll,tokenize:bM};function bM(e,t,n){const i=this;return l;function l(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),a}function a(s){return s===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(s):t(s)}}const Id={name:"lineEnding",tokenize:SM};function SM(e,t){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),ut(e,t,"linePrefix")}}const mu={name:"thematicBreak",tokenize:xM};function xM(e,t,n){let i=0,l;return a;function a(v){return e.enter("thematicBreak"),s(v)}function s(v){return l=v,u(v)}function u(v){return v===l?(e.enter("thematicBreakSequence"),h(v)):i>=3&&(v===null||He(v))?(e.exit("thematicBreak"),t(v)):n(v)}function h(v){return v===l?(e.consume(v),i++,h):(e.exit("thematicBreakSequence"),tt(v)?ut(e,u,"whitespace")(v):u(v))}}const sn={continuation:{tokenize:OM},exit:PM,name:"list",tokenize:kM},EM={partial:!0,tokenize:AM},_M={partial:!0,tokenize:CM};function kM(e,t,n){const i=this,l=i.events[i.events.length-1];let a=l&&l[1].type==="linePrefix"?l[2].sliceSerialize(l[1],!0).length:0,s=0;return u;function u(m){const S=i.containerState.type||(m===42||m===43||m===45?"listUnordered":"listOrdered");if(S==="listUnordered"?!i.containerState.marker||m===i.containerState.marker:Mh(m)){if(i.containerState.type||(i.containerState.type=S,e.enter(S,{_container:!0})),S==="listUnordered")return e.enter("listItemPrefix"),m===42||m===45?e.check(mu,n,v)(m):v(m);if(!i.interrupt||m===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),h(m)}return n(m)}function h(m){return Mh(m)&&++s<10?(e.consume(m),h):(!i.interrupt||s<2)&&(i.containerState.marker?m===i.containerState.marker:m===41||m===46)?(e.exit("listItemValue"),v(m)):n(m)}function v(m){return e.enter("listItemMarker"),e.consume(m),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||m,e.check(sc,i.interrupt?n:p,e.attempt(EM,d,f))}
vendor: 5,289 bytes, line 171
171function p(m){return i.containerState.initialBlankLine=!0,a++,d(m)}function f(m){return tt(m)?(e.enter("listItemPrefixWhitespace"),e.consume(m),e.exit("listItemPrefixWhitespace"),d):n(m)}function d(m){return i.containerState.size=a+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(m)}}function OM(e,t,n){const i=this;return i.containerState._closeFlow=void 0,e.check(sc,l,a);function l(u){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,ut(e,t,"listItemIndent",i.containerState.size+1)(u)}function a(u){return i.containerState.furtherBlankLines||!tt(u)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,s(u)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(_M,t,s)(u))}function s(u){return i.containerState._closeFlow=!0,i.interrupt=void 0,ut(e,e.attempt(sn,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function CM(e,t,n){const i=this;return ut(e,l,"listItemIndent",i.containerState.size+1);function l(a){const s=i.events[i.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===i.containerState.size?t(a):n(a)}}function PM(e){e.exit(this.containerState.type)}function AM(e,t,n){const i=this;return ut(e,l,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function l(a){const s=i.events[i.events.length-1];return!tt(a)&&s&&s[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const Y1={name:"setextUnderline",resolveTo:TM,tokenize:RM};function TM(e,t){let n=e.length,i,l,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){i=n;break}e[n][1].type==="paragraph"&&(l=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const s={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[l][1].type="setextHeadingText",a?(e.splice(l,0,["enter",s,t]),e.splice(a+1,0,["exit",e[i][1],t]),e[i][1].end={...e[a][1].end}):e[i][1]=s,e.push(["exit",s,t]),e}function RM(e,t,n){const i=this;let l;return a;function a(v){let p=i.events.length,f;for(;p--;)if(i.events[p][1].type!=="lineEnding"&&i.events[p][1].type!=="linePrefix"&&i.events[p][1].type!=="content"){f=i.events[p][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||f)?(e.enter("setextHeadingLine"),l=v,s(v)):n(v)}function s(v){return e.enter("setextHeadingLineSequence"),u(v)}function u(v){return v===l?(e.consume(v),u):(e.exit("setextHeadingLineSequence"),tt(v)?ut(e,h,"lineSuffix")(v):h(v))}function h(v){return v===null||He(v)?(e.exit("setextHeadingLine"),t(v)):n(v)}}const NM={tokenize:IM};function IM(e){const t=this,n=e.attempt(sc,i,e.attempt(this.parser.constructs.flowInitial,l,ut(e,e.attempt(this.parser.constructs.flow,l,e.attempt(FL,l)),"linePrefix")));return n;function i(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function l(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const LM={resolveAll:Ux()},MM=qx("string"),DM=qx("text");function qx(e){return{resolveAll:Ux(e==="text"?jM:void 0),tokenize:t};function t(n){const i=this,l=this.parser.constructs[e],a=n.attempt(l,s,u);return s;function s(p){return v(p)?a(p):u(p)}function u(p){if(p===null){n.consume(p);return}return n.enter("data"),n.consume(p),h}function h(p){return v(p)?(n.exit("data"),a(p)):(n.consume(p),h)}function v(p){if(p===null)return!0;const f=l[p];let d=-1;if(f)for(;++d<f.length;){const m=f[d];if(!m.previous||m.previous.call(i,i.previous))return!0}return!1}}}function Ux(e){return t;function t(n,i){let l=-1,a;for(;++l<=n.length;)a===void 0?n[l]&&n[l][1].type==="data"&&(a=l,l++):(!n[l]||n[l][1].type!=="data")&&(l!==a+2&&(n[a][1].end=n[l-1][1].end,n.splice(a+2,l-a-2),l=a+2),a=void 0);return e?e(n,i):n}}function jM(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const i=e[n-1][1],l=t.sliceStream(i);let a=l.length,s=-1,u=0,h;for(;a--;){const v=l[a];if(typeof v=="string"){for(s=v.length;v.charCodeAt(s-1)===32;)u++,s--;if(s)break;s=-1}else if(v===-2)h=!0,u++;else if(v!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(u=0),u){const v={type:n===e.length||h||u<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?s:i.start._bufferIndex+s,_index:i.start._index+a,line:i.end.line,column:i.end.column-u,offset:i.end.offset-u},end:{...i.end}};i.end={...v.start},i.start.offset===i.end.offset?Object.assign(i,v):(e.splice(n,0,["enter",v,t],["exit",v,t]),n+=2)}n++}return e}const FM={42:sn,43:sn,45:sn,48:sn,49:sn,50:sn,51:sn,52:sn,53:sn,54:sn,55:sn,56:sn,57:sn,62:Lx},BM={91:VL},zM={[-2]:Nd,[-1]:Nd,32:Nd},qM={35:GL,42:mu,45:[Y1,mu],60:JL,61:Y1,95:mu,96:Q1,126:Q1},UM={38:Dx,92:Mx},VM={[-5]:Id,[-4]:Id,[-3]:Id,33:yM,38:Dx,42:Dh,60:[wL,lM],91:wM,92:[KL,Mx],93:Wp,95:Dh,96:NL},HM={null:[Dh,LM]},$M={null:[42,95]},WM={null:[]},KM=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:$M,contentInitial:BM,disable:WM,document:FM,flow:qM,flowInitial:zM,insideSpan:HM,string:UM,text:VM},Symbol.toStringTag,{value:"Module"}));
vendor: 19,966 bytes, lines 171-177
171function QM(e,t,n){let i={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const l={},a=[];let s=[],u=[];const h={attempt:I(O),check:I(R),consume:x,enter:_,exit:E,interrupt:I(R,{interrupt:!0})},v={code:null,containerState:{},defineSkip:y,events:[],now:S,parser:e,previous:null,sliceSerialize:d,sliceStream:m,write:f};let p=t.tokenize.call(v,h);return t.resolveAll&&a.push(t),v;function f(P){return s=Mn(s,P),g(),s[s.length-1]!==null?[]:(j(t,0),v.events=$p(a,v.events,v),v.events)}function d(P,N){return YM(m(P),N)}function m(P){return GM(s,P)}function S(){const{_bufferIndex:P,_index:N,line:F,column:z,offset:H}=i;return{_bufferIndex:P,_index:N,line:F,column:z,offset:H}}function y(P){l[P.line]=P.column,L()}function g(){let P;for(;i._index<s.length;){const N=s[i._index];if(typeof N=="string")for(P=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===P&&i._bufferIndex<N.length;)b(N.charCodeAt(i._bufferIndex));else b(N)}}function b(P){p=p(P)}function x(P){He(P)?(i.line++,i.column=1,i.offset+=P===-3?2:1,L()):P!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===s[i._index].length&&(i._bufferIndex=-1,i._index++)),v.previous=P}function _(P,N){const F=N||{};return F.type=P,F.start=S(),v.events.push(["enter",F,v]),u.push(F),F}function E(P){const N=u.pop();return N.end=S(),v.events.push(["exit",N,v]),N}function O(P,N){j(P,N.from)}function R(P,N){N.restore()}function I(P,N){return F;function F(z,H,Q){let Y,X,$,T;return Array.isArray(z)?q(z):"tokenize"in z?q([z]):A(z);function A(V){return K;function K(ie){const le=ie!==null&&V[ie],ce=ie!==null&&V.null,we=[...Array.isArray(le)?le:le?[le]:[],...Array.isArray(ce)?ce:ce?[ce]:[]];return q(we)(ie)}}function q(V){return Y=V,X=0,V.length===0?Q:M(V[X])}function M(V){return K;function K(ie){return T=B(),$=V,V.partial||(v.currentConstruct=V),V.name&&v.parser.constructs.disable.null.includes(V.name)?te():V.tokenize.call(N?Object.assign(Object.create(v),N):v,h,ee,te)(ie)}}function ee(V){return P($,T),H}function te(V){return T.restore(),++X<Y.length?M(Y[X]):Q}}}function j(P,N){P.resolveAll&&!a.includes(P)&&a.push(P),P.resolve&&gr(v.events,N,v.events.length-N,P.resolve(v.events.slice(N),v)),P.resolveTo&&(v.events=P.resolveTo(v.events,v))}function B(){const P=S(),N=v.previous,F=v.currentConstruct,z=v.events.length,H=Array.from(u);return{from:z,restore:Q};function Q(){i=P,v.previous=N,v.currentConstruct=F,v.events.length=z,u=H,L()}}function L(){i.line in l&&i.column<2&&(i.column=l[i.line],i.offset+=l[i.line]-1)}}function GM(e,t){const n=t.start._index,i=t.start._bufferIndex,l=t.end._index,a=t.end._bufferIndex;let s;if(n===l)s=[e[n].slice(i,a)];else{if(s=e.slice(n,l),i>-1){const u=s[0];typeof u=="string"?s[0]=u.slice(i):s.shift()}a>0&&s.push(e[l].slice(0,a))}return s}function YM(e,t){let n=-1;const i=[];let l;for(;++n<e.length;){const a=e[n];let s;if(typeof a=="string")s=a;else switch(a){case-5:{s="\r";break}case-4:{s=`
172`;break}case-3:{s=`\r
173`;break}case-2:{s=t?" ":"	";break}case-1:{if(!t&&l)continue;s=" ";break}default:s=String.fromCharCode(a)}l=a===-2,i.push(s)}return i.join("")}function XM(e){const i={constructs:iL([KM,...(e||{}).extensions||[]]),content:l(dL),defined:[],document:l(pL),flow:l(NM),lazy:{},string:l(MM),text:l(DM)};return i;function l(a){return s;function s(u){return QM(i,a,u)}}}function ZM(e){for(;!jx(e););return e}const X1=/[\0\t\n\r]/g;function JM(){let e=1,t="",n=!0,i;return l;function l(a,s,u){const h=[];let v,p,f,d,m;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(s||void 0).decode(a)),f=0,t="",n&&(a.charCodeAt(0)===65279&&f++,n=void 0);f<a.length;){if(X1.lastIndex=f,v=X1.exec(a),d=v&&v.index!==void 0?v.index:a.length,m=a.charCodeAt(d),!v){t=a.slice(f);break}if(m===10&&f===d&&i)h.push(-3),i=void 0;else switch(i&&(h.push(-5),i=void 0),f<d&&(h.push(a.slice(f,d)),e+=d-f),m){case 0:{h.push(65533),e++;break}case 9:{for(p=Math.ceil(e/4)*4,h.push(-2);e++<p;)h.push(-1);break}case 10:{h.push(-4),e=1;break}default:i=!0,e=1}f=d+1}return u&&(i&&h.push(-5),t&&h.push(t),h.push(null)),h}}const e4=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function t4(e){return e.replace(e4,n4)}function n4(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const l=n.charCodeAt(1),a=l===120||l===88;return Ix(n.slice(a?2:1),a?16:10)}return Hp(n)||e}const Vx={}.hasOwnProperty;function r4(e,t,n){return typeof t!="string"&&(n=t,t=void 0),i4(n)(ZM(XM(n).document().write(JM()(e,t,!0))))}function i4(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(pe),autolinkProtocol:B,autolinkEmail:B,atxHeading:a($e),blockQuote:a(ce),characterEscape:B,characterReference:B,codeFenced:a(we),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:a(we,s),codeText:a(Oe,s),codeTextData:B,data:B,codeFlowValue:B,definition:a(Re),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:a(Fe),hardBreakEscape:a(lt),hardBreakTrailing:a(lt),htmlFlow:a(Ze,s),htmlFlowData:B,htmlText:a(Ze,s),htmlTextData:B,image:a(he),label:s,link:a(pe),listItem:a(Z),listItemValue:d,listOrdered:a(W,f),listUnordered:a(W),paragraph:a(J),reference:M,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:a($e),strong:a(ge),thematicBreak:a(me)},exit:{atxHeading:h(),atxHeadingSequence:O,autolink:h(),autolinkEmail:le,autolinkProtocol:ie,blockQuote:h(),characterEscapeValue:L,characterReferenceMarkerHexadecimal:te,characterReferenceMarkerNumeric:te,characterReferenceValue:V,characterReference:K,codeFenced:h(g),codeFencedFence:y,codeFencedFenceInfo:m,codeFencedFenceMeta:S,codeFlowValue:L,codeIndented:h(b),codeText:h(H),codeTextData:L,data:L,definition:h(),definitionDestinationString:E,definitionLabelString:x,definitionTitleString:_,emphasis:h(),hardBreakEscape:h(N),hardBreakTrailing:h(N),htmlFlow:h(F),htmlFlowData:L,htmlText:h(z),htmlTextData:L,image:h(Y),label:$,labelText:X,lineEnding:P,link:h(Q),listItem:h(),listOrdered:h(),listUnordered:h(),paragraph:h(),referenceString:ee,resourceDestinationString:T,resourceTitleString:A,resource:q,setextHeading:h(j),setextHeadingLineSequence:I,setextHeadingText:R,strong:h(),thematicBreak:h()}};Hx(t,(e||{}).mdastExtensions||[]);const n={};return i;function i(se){let ve={type:"root",children:[]};const xe={stack:[ve],tokenStack:[],config:t,enter:u,exit:v,buffer:s,resume:p,data:n},Be=[];let De=-1;for(;++De<se.length;)if(se[De][1].type==="listOrdered"||se[De][1].type==="listUnordered")if(se[De][0]==="enter")Be.push(De);else{const Ye=Be.pop();De=l(se,Ye,De)}for(De=-1;++De<se.length;){const Ye=t[se[De][0]];Vx.call(Ye,se[De][1].type)&&Ye[se[De][1].type].call(Object.assign({sliceSerialize:se[De][2].sliceSerialize},xe),se[De][1])}if(xe.tokenStack.length>0){const Ye=xe.tokenStack[xe.tokenStack.length-1];(Ye[1]||Z1).call(xe,void 0,Ye[0])}for(ve.position={start:ii(se.length>0?se[0][1].start:{line:1,column:1,offset:0}),end:ii(se.length>0?se[se.length-2][1].end:{line:1,column:1,offset:0})},De=-1;++De<t.transforms.length;)ve=t.transforms[De](ve)||ve;return ve}function l(se,ve,xe){let Be=ve-1,De=-1,Ye=!1,Fn,qt,kn,Sr;for(;++Be<=xe;){const xt=se[Be];switch(xt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{xt[0]==="enter"?De++:De--,Sr=void 0;break}case"lineEndingBlank":{xt[0]==="enter"&&(Fn&&!Sr&&!De&&!kn&&(kn=Be),Sr=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Sr=void 0}if(!De&&xt[0]==="enter"&&xt[1].type==="listItemPrefix"||De===-1&&xt[0]==="exit"&&(xt[1].type==="listUnordered"||xt[1].type==="listOrdered")){if(Fn){let On=Be;for(qt=void 0;On--;){const Ut=se[On];if(Ut[1].type==="lineEnding"||Ut[1].type==="lineEndingBlank"){if(Ut[0]==="exit")continue;qt&&(se[qt][1].type="lineEndingBlank",Ye=!0),Ut[1].type="lineEnding",qt=On}else if(!(Ut[1].type==="linePrefix"||Ut[1].type==="blockQuotePrefix"||Ut[1].type==="blockQuotePrefixWhitespace"||Ut[1].type==="blockQuoteMarker"||Ut[1].type==="listItemIndent"))break}kn&&(!qt||kn<qt)&&(Fn._spread=!0),Fn.end=Object.assign({},qt?se[qt][1].start:xt[1].end),se.splice(qt||Be,0,["exit",Fn,xt[2]]),Be++,xe++}if(xt[1].type==="listItemPrefix"){const On={type:"listItem",_spread:!1,start:Object.assign({},xt[1].start),end:void 0};Fn=On,se.splice(Be,0,["enter",On,xt[2]]),Be++,xe++,kn=void 0,Sr=!0}}}return se[ve][1]._spread=Ye,xe}function a(se,ve){return xe;function xe(Be){u.call(this,se(Be),Be),ve&&ve.call(this,Be)}}function s(){this.stack.push({type:"fragment",children:[]})}function u(se,ve,xe){this.stack[this.stack.length-1].children.push(se),this.stack.push(se),this.tokenStack.push([ve,xe||void 0]),se.position={start:ii(ve.start),end:void 0}}function h(se){return ve;function ve(xe){se&&se.call(this,xe),v.call(this,xe)}}function v(se,ve){const xe=this.stack.pop(),Be=this.tokenStack.pop();if(Be)Be[0].type!==se.type&&(ve?ve.call(this,se,Be[0]):(Be[1]||Z1).call(this,se,Be[0]));else throw new Error("Cannot close `"+se.type+"` ("+ya({start:se.start,end:se.end})+"): it’s not open");xe.position.end=ii(se.end)}function p(){return nL(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function d(se){if(this.data.expectingFirstListItemValue){const ve=this.stack[this.stack.length-2];ve.start=Number.parseInt(this.sliceSerialize(se),10),this.data.expectingFirstListItemValue=void 0}}function m(){const se=this.resume(),ve=this.stack[this.stack.length-1];ve.lang=se}function S(){const se=this.resume(),ve=this.stack[this.stack.length-1];ve.meta=se}function y(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){const se=this.resume(),ve=this.stack[this.stack.length-1];ve.value=se.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function b(){const se=this.resume(),ve=this.stack[this.stack.length-1];ve.value=se.replace(/(\r?\n|\r)$/g,"")}function x(se){const ve=this.resume(),xe=this.stack[this.stack.length-1];xe.label=ve,xe.identifier=Ko(this.sliceSerialize(se)).toLowerCase()}function _(){const se=this.resume(),ve=this.stack[this.stack.length-1];ve.title=se}function E(){const se=this.resume(),ve=this.stack[this.stack.length-1];ve.url=se}function O(se){const ve=this.stack[this.stack.length-1];if(!ve.depth){const xe=this.sliceSerialize(se).length;ve.depth=xe}}function R(){this.data.setextHeadingSlurpLineEnding=!0}function I(se){const ve=this.stack[this.stack.length-1];ve.depth=this.sliceSerialize(se).codePointAt(0)===61?1:2}function j(){this.data.setextHeadingSlurpLineEnding=void 0}function B(se){const xe=this.stack[this.stack.length-1].children;let Be=xe[xe.length-1];(!Be||Be.type!=="text")&&(Be=ye(),Be.position={start:ii(se.start),end:void 0},xe.push(Be)),this.stack.push(Be)}function L(se){const ve=this.stack.pop();ve.value+=this.sliceSerialize(se),ve.position.end=ii(se.end)}function P(se){const ve=this.stack[this.stack.length-1];if(this.data.atHardBreak){const xe=ve.children[ve.children.length-1];xe.position.end=ii(se.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ve.type)&&(B.call(this,se),L.call(this,se))}function N(){this.data.atHardBreak=!0}function F(){const se=this.resume(),ve=this.stack[this.stack.length-1];ve.value=se}function z(){const se=this.resume(),ve=this.stack[this.stack.length-1];ve.value=se}function H(){const se=this.resume(),ve=this.stack[this.stack.length-1];ve.value=se}function Q(){const se=this.stack[this.stack.length-1];if(this.data.inReference){const ve=this.data.referenceType||"shortcut";se.type+="Reference",se.referenceType=ve,delete se.url,delete se.title}else delete se.identifier,delete se.label;this.data.referenceType=void 0}function Y(){const se=this.stack[this.stack.length-1];if(this.data.inReference){const ve=this.data.referenceType||"shortcut";se.type+="Reference",se.referenceType=ve,delete se.url,delete se.title}else delete se.identifier,delete se.label;this.data.referenceType=void 0}function X(se){const ve=this.sliceSerialize(se),xe=this.stack[this.stack.length-2];xe.label=t4(ve),xe.identifier=Ko(ve).toLowerCase()}function $(){const se=this.stack[this.stack.length-1],ve=this.resume(),xe=this.stack[this.stack.length-1];if(this.data.inReference=!0,xe.type==="link"){const Be=se.children;xe.children=Be}else xe.alt=ve}function T(){const se=this.resume(),ve=this.stack[this.stack.length-1];ve.url=se}function A(){const se=this.resume(),ve=this.stack[this.stack.length-1];ve.title=se}function q(){this.data.inReference=void 0}function M(){this.data.referenceType="collapsed"}function ee(se){const ve=this.resume(),xe=this.stack[this.stack.length-1];xe.label=ve,xe.identifier=Ko(this.sliceSerialize(se)).toLowerCase(),this.data.referenceType="full"}function te(se){this.data.characterReferenceType=se.type}function V(se){const ve=this.sliceSerialize(se),xe=this.data.characterReferenceType;let Be;xe?(Be=Ix(ve,xe==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Be=Hp(ve);const De=this.stack[this.stack.length-1];De.value+=Be}function K(se){const ve=this.stack.pop();ve.position.end=ii(se.end)}function ie(se){L.call(this,se);const ve=this.stack[this.stack.length-1];ve.url=this.sliceSerialize(se)}function le(se){L.call(this,se);const ve=this.stack[this.stack.length-1];ve.url="mailto:"+this.sliceSerialize(se)}function ce(){return{type:"blockquote",children:[]}}function we(){return{type:"code",lang:null,meta:null,value:""}}function Oe(){return{type:"inlineCode",value:""}}function Re(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Fe(){return{type:"emphasis",children:[]}}function $e(){return{type:"heading",depth:0,children:[]}}function lt(){return{type:"break"}}function Ze(){return{type:"html",value:""}}function he(){return{type:"image",title:null,url:"",alt:null}}function pe(){return{type:"link",title:null,url:"",children:[]}}function W(se){return{type:"list",ordered:se.type==="listOrdered",start:null,spread:se._spread,children:[]}}function Z(se){return{type:"listItem",spread:se._spread,checked:null,children:[]}}function J(){return{type:"paragraph",children:[]}}function ge(){return{type:"strong",children:[]}}function ye(){return{type:"text",value:""}}function me(){return{type:"thematicBreak"}}}function ii(e){return{line:e.line,column:e.column,offset:e.offset}}function Hx(e,t){let n=-1;for(;++n<t.length;){const i=t[n];Array.isArray(i)?Hx(e,i):o4(e,i)}}function o4(e,t){let n;for(n in t)if(Vx.call(t,n))switch(n){case"canContainEols":{const i=t[n];i&&e[n].push(...i);break}case"transforms":{const i=t[n];i&&e[n].push(...i);break}case"enter":case"exit":{const i=t[n];i&&Object.assign(e[n],i);break}}}function Z1(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+ya({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+ya({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+ya({start:t.start,end:t.end})+") is still open")}function l4(e){const t=this;t.parser=n;function n(i){return r4(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function a4(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function s4(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
174`}]}function u4(e,t){const n=t.value?t.value+`
175`:"",i={};t.lang&&(i.className=["language-"+t.lang]);let l={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(l.data={meta:t.meta}),e.patch(t,l),l=e.applyData(t,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(t,l),l}function c4(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function f4(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function d4(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),l=bl(i.toLowerCase()),a=e.footnoteOrder.indexOf(i);let s,u=e.footnoteCounts.get(i);u===void 0?(u=0,e.footnoteOrder.push(i),s=e.footnoteOrder.length):s=a+1,u+=1,e.footnoteCounts.set(i,u);const h={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+l,id:n+"fnref-"+l+(u>1?"-"+u:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,h);const v={type:"element",tagName:"sup",properties:{},children:[h]};return e.patch(t,v),e.applyData(t,v)}function h4(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function p4(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function $x(e,t){const n=t.referenceType;let i="]";if(n==="collapsed"?i+="[]":n==="full"&&(i+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+i}];const l=e.all(t),a=l[0];a&&a.type==="text"?a.value="["+a.value:l.unshift({type:"text",value:"["});const s=l[l.length-1];return s&&s.type==="text"?s.value+=i:l.push({type:"text",value:i}),l}function m4(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return $x(e,t);const l={src:bl(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(l.title=i.title);const a={type:"element",tagName:"img",properties:l,children:[]};return e.patch(t,a),e.applyData(t,a)}function v4(e,t){const n={src:bl(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const i={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,i),e.applyData(t,i)}function y4(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const i={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,i),e.applyData(t,i)}function g4(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return $x(e,t);const l={href:bl(i.url||"")};i.title!==null&&i.title!==void 0&&(l.title=i.title);const a={type:"element",tagName:"a",properties:l,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function w4(e,t){const n={href:bl(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const i={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function b4(e,t,n){const i=e.all(t),l=n?S4(n):Wx(t),a={},s=[];if(typeof t.checked=="boolean"){const p=i[0];let f;p&&p.type==="element"&&p.tagName==="p"?f=p:(f={type:"element",tagName:"p",properties:{},children:[]},i.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let u=-1;for(;++u<i.length;){const p=i[u];(l||u!==0||p.type!=="element"||p.tagName!=="p")&&s.push({type:"text",value:`
176`}),p.type==="element"&&p.tagName==="p"&&!l?s.push(...p.children):s.push(p)}const h=i[i.length-1];h&&(l||h.type!=="element"||h.tagName!=="p")&&s.push({type:"text",value:`
177`});const v={type:"element",tagName:"li",properties:a,children:s};return e.patch(t,v),e.applyData(t,v)}function S4(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let i=-1;for(;!t&&++i<n.length;)t=Wx(n[i])}return t}function Wx(e){const t=e.spread;return t??e.children.length>1}function x4(e,t){const n={},i=e.all(t);let l=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++l<i.length;){const s=i[l];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(i,
vendor: 4,380 bytes, line 177
177!0)};return e.patch(t,a),e.applyData(t,a)}function E4(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function _4(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function k4(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function O4(e,t){const n=e.all(t),i=n.shift(),l=[];if(i){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],s),l.push(s)}if(n.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},u=zp(t.children[1]),h=Ox(t.children[t.children.length-1]);u&&h&&(s.position={start:u,end:h}),l.push(s)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(l,!0)};return e.patch(t,a),e.applyData(t,a)}function C4(e,t,n){const i=n?n.children:void 0,a=(i?i.indexOf(t):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,u=s?s.length:t.children.length;let h=-1;const v=[];for(;++h<u;){const f=t.children[h],d={},m=s?s[h]:void 0;m&&(d.align=m);let S={type:"element",tagName:a,properties:d,children:[]};f&&(S.children=e.all(f),e.patch(f,S),S=e.applyData(f,S)),v.push(S)}const p={type:"element",tagName:"tr",properties:{},children:e.wrap(v,!0)};return e.patch(t,p),e.applyData(t,p)}function P4(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const J1=9,e0=32;function A4(e){const t=String(e),n=/\r?\n|\r/g;let i=n.exec(t),l=0;const a=[];for(;i;)a.push(t0(t.slice(l,i.index),l>0,!0),i[0]),l=i.index+i[0].length,i=n.exec(t);return a.push(t0(t.slice(l),l>0,!1)),a.join("")}function t0(e,t,n){let i=0,l=e.length;if(t){let a=e.codePointAt(i);for(;a===J1||a===e0;)i++,a=e.codePointAt(i)}if(n){let a=e.codePointAt(l-1);for(;a===J1||a===e0;)l--,a=e.codePointAt(l-1)}return l>i?e.slice(i,l):""}function T4(e,t){const n={type:"text",value:A4(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function R4(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const N4={blockquote:a4,break:s4,code:u4,delete:c4,emphasis:f4,footnoteReference:d4,heading:h4,html:p4,imageReference:m4,image:v4,inlineCode:y4,linkReference:g4,link:w4,listItem:b4,list:x4,paragraph:E4,root:_4,strong:k4,table:O4,tableCell:P4,tableRow:C4,text:T4,thematicBreak:R4,toml:au,yaml:au,definition:au,footnoteDefinition:au};function au(){}const Kx=-1,uc=0,wa=1,Mu=2,Kp=3,Qp=4,Gp=5,Yp=6,Qx=7,Gx=8,n0=typeof self=="object"?self:globalThis,I4=(e,t)=>{const n=(l,a)=>(e.set(a,l),l),i=l=>{if(e.has(l))return e.get(l);const[a,s]=t[l];switch(a){case uc:case Kx:return n(s,l);case wa:{const u=n([],l);for(const h of s)u.push(i(h));return u}case Mu:{const u=n({},l);for(const[h,v]of s)u[i(h)]=i(v);return u}case Kp:return n(new Date(s),l);case Qp:{const{source:u,flags:h}=s;return n(new RegExp(u,h),l)}case Gp:{const u=n(new Map,l);for(const[h,v]of s)u.set(i(h),i(v));return u}case Yp:{const u=n(new Set,l);for(const h of s)u.add(i(h));return u}case Qx:{const{name:u,message:h}=s;return n(new n0[u](h),l)}case Gx:return n(BigInt(s),l);case"BigInt":return n(Object(BigInt(s)),l);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:u}=new Uint8Array(s);return n(new DataView(u),s)}}return n(new n0[a](s),l)};return i},r0=e=>I4(new Map,e)(0),Uo="",{toString:L4}={},{keys:M4}=Object,ua=e=>{const t=typeof e;if(t!=="object"||!e)return[uc,t];const n=L4.call(e).slice(8,-1);switch(n){case"Array":return[wa,Uo];case"Object":return[Mu,Uo];case"Date":return[Kp,Uo];case"RegExp":return[Qp,Uo];case"Map":return[Gp,Uo];case"Set":return[Yp,Uo];case"DataView":return[wa,n]}return n.includes("Array")?[wa,n]:n.includes("Error")?[Qx,n]:[Mu,n]},su=([e,t])=>e===uc&&(t==="function"||t==="symbol"),D4=(e,t,n,i)=>{const l=(s,u)=>{const h=i.push(s)-1;return n.set(u,h),h},a=s=>{if(n.has(s))return n.get(s);let[u,h]=ua(s);switch(u){case uc:{let p=s;switch(h){case"bigint":u=Gx,p=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+h);p=null;break;case"undefined":return l([Kx],s)}return l([u,p],s)}case wa:{if(h){let d=s;return h==="DataView"?d=new Uint8Array(s.buffer):h==="ArrayBuffer"&&(d=new Uint8Array(s)),l([h,[...d]],s)}const p=[],f=l([u,p],s);for(const d of s)p.push(a(d));return f}
vendor: 8,185 bytes, lines 177-183
177case Mu:{if(h)switch(h){case"BigInt":return l([h,s.toString()],s);case"Boolean":case"Number":case"String":return l([h,s.valueOf()],s)}if(t&&"toJSON"in s)return a(s.toJSON());const p=[],f=l([u,p],s);for(const d of M4(s))(e||!su(ua(s[d])))&&p.push([a(d),a(s[d])]);return f}case Kp:return l([u,s.toISOString()],s);case Qp:{const{source:p,flags:f}=s;return l([u,{source:p,flags:f}],s)}case Gp:{const p=[],f=l([u,p],s);for(const[d,m]of s)(e||!(su(ua(d))||su(ua(m))))&&p.push([a(d),a(m)]);return f}case Yp:{const p=[],f=l([u,p],s);for(const d of s)(e||!su(ua(d)))&&p.push(a(d));return f}}const{message:v}=s;return l([u,{name:h,message:v}],s)};return a},i0=(e,{json:t,lossy:n}={})=>{const i=[];return D4(!(t||n),!!t,new Map,i)(e),i},Du=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?r0(i0(e,t)):structuredClone(e):(e,t)=>r0(i0(e,t));function j4(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function F4(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function B4(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||j4,i=e.options.footnoteBackLabel||F4,l=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},u=[];let h=-1;for(;++h<e.footnoteOrder.length;){const v=e.footnoteById.get(e.footnoteOrder[h]);if(!v)continue;const p=e.all(v),f=String(v.identifier).toUpperCase(),d=bl(f.toLowerCase());let m=0;const S=[],y=e.footnoteCounts.get(f);for(;y!==void 0&&++m<=y;){S.length>0&&S.push({type:"text",value:" "});let x=typeof n=="string"?n:n(h,m);typeof x=="string"&&(x={type:"text",value:x}),S.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+d+(m>1?"-"+m:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(h,m),className:["data-footnote-backref"]},children:Array.isArray(x)?x:[x]})}const g=p[p.length-1];if(g&&g.type==="element"&&g.tagName==="p"){const x=g.children[g.children.length-1];x&&x.type==="text"?x.value+=" ":g.children.push({type:"text",value:" "}),g.children.push(...S)}else p.push(...S);const b={type:"element",tagName:"li",properties:{id:t+"fn-"+d},children:e.wrap(p,!0)};e.patch(v,b),u.push(b)}if(u.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...Du(s),id:"footnote-label"},children:[{type:"text",value:l}]},{type:"text",value:`
178`},{type:"element",tagName:"ol",properties:{},children:e.wrap(u,!0)},{type:"text",value:`
179`}]}}const Yx=(function(e){if(e==null)return V4;if(typeof e=="function")return cc(e);if(typeof e=="object")return Array.isArray(e)?z4(e):q4(e);if(typeof e=="string")return U4(e);throw new Error("Expected function, string, or object as test")});function z4(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Yx(e[n]);return cc(i);function i(...l){let a=-1;for(;++a<t.length;)if(t[a].apply(this,l))return!0;return!1}}function q4(e){const t=e;return cc(n);function n(i){const l=i;let a;for(a in e)if(l[a]!==t[a])return!1;return!0}}function U4(e){return cc(t);function t(n){return n&&n.type===e}}function cc(e){return t;function t(n,i,l){return!!(H4(n)&&e.call(this,n,typeof i=="number"?i:void 0,l||void 0))}}function V4(){return!0}function H4(e){return e!==null&&typeof e=="object"&&"type"in e}const Xx=[],$4=!0,o0=!1,W4="skip";function K4(e,t,n,i){let l;typeof t=="function"&&typeof n!="function"?(i=n,n=t):l=t;const a=Yx(l),s=i?-1:1;u(e,void 0,[])();function u(h,v,p){const f=h&&typeof h=="object"?h:{};if(typeof f.type=="string"){const m=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(d,"name",{value:"node ("+(h.type+(m?"<"+m+">":""))+")"})}return d;function d(){let m=Xx,S,y,g;if((!t||a(h,v,p[p.length-1]||void 0))&&(m=Q4(n(h,p)),m[0]===o0))return m;if("children"in h&&h.children){const b=h;if(b.children&&m[0]!==W4)for(y=(i?b.children.length:-1)+s,g=p.concat(b);y>-1&&y<b.children.length;){const x=b.children[y];if(S=u(x,y,g)(),S[0]===o0)return S;y=typeof S[1]=="number"?S[1]:y+s}}return m}}}function Q4(e){return Array.isArray(e)?e:typeof e=="number"?[$4,e]:e==null?Xx:[e]}function Zx(e,t,n,i){let l,a,s;typeof t=="function"&&typeof n!="function"?(a=void 0,s=t,l=n):(a=t,s=n,l=i),K4(e,a,u,l);function u(h,v){const p=v[v.length-1],f=p?p.children.indexOf(h):void 0;return s(h,f,p)}}const jh={}.hasOwnProperty,G4={};function Y4(e,t){const n=t||G4,i=new Map,l=new Map,a=new Map,s={...N4,...n.handlers},u={all:v,applyData:Z4,definitionById:i,footnoteById:l,footnoteCounts:a,footnoteOrder:[],handlers:s,one:h,options:n,patch:X4,wrap:eD};return Zx(e,function(p){if(p.type==="definition"||p.type==="footnoteDefinition"){const f=p.type==="definition"?i:l,d=String(p.identifier).toUpperCase();f.has(d)||f.set(d,p)}}),u;function h(p,f){const d=p.type,m=u.handlers[d];if(jh.call(u.handlers,d)&&m)return m(u,p,f);if(u.options.passThrough&&u.options.passThrough.includes(d)){if("children"in p){const{children:y,...g}=p,b=Du(g);return b.children=u.all(p),b}return Du(p)}return(u.options.unknownHandler||J4)(u,p,f)}function v(p){const f=[];if("children"in p){const d=p.children;let m=-1;for(;++m<d.length;){const S=u.one(d[m],p);if(S){if(m&&d[m-1].type==="break"&&(!Array.isArray(S)&&S.type==="text"&&(S.value=l0(S.value)),!Array.isArray(S)&&S.type==="element")){const y=S.children[0];y&&y.type==="text"&&(y.value=l0(y.value))}Array.isArray(S)?f.push(...S):f.push(S)}}}return f}}function X4(e,t){e.position&&(t.position=LI(e))}function Z4(e,t){let n=t;if(e&&e.data){const i=e.data.hName,l=e.data.hChildren,a=e.data.hProperties;if(typeof i=="string")if(n.type==="element")n.tagName=i;else{const s="children"in n?n.children:[n];n={type:"element",tagName:i,properties:{},children:s}}n.type==="element"&&a&&Object.assign(n.properties,Du(a)),"children"in n&&n.children&&l!==null&&l!==void 0&&(n.children=l)}return n}function J4(e,t){const n=t.data||{},i="value"in t&&!(jh.call(n,"hProperties")||jh.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function eD(e,t){const n=[];let i=-1;for(t&&n.push({type:"text",value:`
180`});++i<e.length;)i&&n.push({type:"text",value:`
181`}),n.push(e[i]);return t&&e.length>0&&n.push({type:"text",value:`
182`}),n}function l0(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function a0(e,t){const n=Y4(e,t),i=n.one(e,void 0),l=B4(n),a=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return l&&a.children.push({type:"text",value:`
183`},l),a}function tD(e,t){return e&&"run"in e?async function(n,i){const l=a0(n,{file:i,...t});await e.run(l,i)}:function(n,i){return a0(n,{file:i,...e||t})}}function s0(e){if(e)throw e}var Ld,u0;function nD(){if(u0)return Ld;u0=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,l=function(v){return typeof Array.isArray=="function"?Array.isArray(v):t.call(v)==="[object Array]"},a=function(v){if(!v||t.call(v)!=="[object Object]")return!1;var p=e.call(v,"constructor"),f=v.constructor&&v.constructor.prototype&&e.call(v.constructor.prototype,"isPrototypeOf");if(v.constructor&&!p&&!f)return!1;var d;for(d in v);return typeof d>"u"||e.call(v,d)},s=function(v,p){n&&p.name==="__proto__"?n(v,p.name,{enumerable:!0,configurable:!0,value:p.newValue,writable:!0}):v[p.name]=p.newValue},u=function(v,p){if(p==="__proto__")if(e.call(v,p)){if(i)return i(v,p).value}else return;return v[p]};return Ld=function h(){var v,p,f,d,m,S,y=arguments[0],g=1,b=arguments.length,x=!1;for(typeof y=="boolean"&&(x=y,y=arguments[1]||{},g=2),(y==null||typeof y!="object"&&typeof y!="function")&&(y={});g<b;++g)if(v=arguments[g],v!=null)for(p in v)f=u(y,p),d=u(v,p),y!==d&&(x&&d&&(a(d)||(m=l(d)))?(m?(m=!1,S=f&&l(f)?f:[]):S=f&&a(f)?f:{},s(y,{name:p,newValue:h(x,S,d)})):typeof d<"u"&&s(y,{name:p,newValue:d}));return y},Ld}var rD=nD();const Md=Ei(rD);function Fh(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);
vendor: 4,451 bytes, line 183
183return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function iD(){const e=[],t={run:n,use:i};return t;function n(...l){let a=-1;const s=l.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);u(null,...l);function u(h,...v){const p=e[++a];let f=-1;if(h){s(h);return}for(;++f<l.length;)(v[f]===null||v[f]===void 0)&&(v[f]=l[f]);l=v,p?oD(p,u)(...v):s(null,...v)}}function i(l){if(typeof l!="function")throw new TypeError("Expected `middelware` to be a function, not "+l);return e.push(l),t}}function oD(e,t){let n;return i;function i(...s){const u=e.length>s.length;let h;u&&s.push(l);try{h=e.apply(this,s)}catch(v){const p=v;if(u&&n)throw p;return l(p)}u||(h&&h.then&&typeof h.then=="function"?h.then(a,l):h instanceof Error?l(h):a(h))}function l(s,...u){n||(n=!0,t(s,...u))}function a(s){l(null,s)}}const ar={basename:lD,dirname:aD,extname:sD,join:uD,sep:"/"};function lD(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Ua(e);let n=0,i=-1,l=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;l--;)if(e.codePointAt(l)===47){if(a){n=l+1;break}}else i<0&&(a=!0,i=l+1);return i<0?"":e.slice(n,i)}if(t===e)return"";let s=-1,u=t.length-1;for(;l--;)if(e.codePointAt(l)===47){if(a){n=l+1;break}}else s<0&&(a=!0,s=l+1),u>-1&&(e.codePointAt(l)===t.codePointAt(u--)?u<0&&(i=l):(u=-1,i=s));return n===i?i=s:i<0&&(i=e.length),e.slice(n,i)}function aD(e){if(Ua(e),e.length===0)return".";let t=-1,n=e.length,i;for(;--n;)if(e.codePointAt(n)===47){if(i){t=n;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function sD(e){Ua(e);let t=e.length,n=-1,i=0,l=-1,a=0,s;for(;t--;){const u=e.codePointAt(t);if(u===47){if(s){i=t+1;break}continue}n<0&&(s=!0,n=t+1),u===46?l<0?l=t:a!==1&&(a=1):l>-1&&(a=-1)}return l<0||n<0||a===0||a===1&&l===n-1&&l===i+1?"":e.slice(l,n)}function uD(...e){let t=-1,n;for(;++t<e.length;)Ua(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":cD(n)}function cD(e){Ua(e);const t=e.codePointAt(0)===47;let n=fD(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function fD(e,t){let n="",i=0,l=-1,a=0,s=-1,u,h;for(;++s<=e.length;){if(s<e.length)u=e.codePointAt(s);else{if(u===47)break;u=47}if(u===47){if(!(l===s-1||a===1))if(l!==s-1&&a===2){if(n.length<2||i!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(h=n.lastIndexOf("/"),h!==n.length-1){h<0?(n="",i=0):(n=n.slice(0,h),i=n.length-1-n.lastIndexOf("/")),l=s,a=0;continue}}else if(n.length>0){n="",i=0,l=s,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",i=2)}else n.length>0?n+="/"+e.slice(l+1,s):n=e.slice(l+1,s),i=s-l-1;l=s,a=0}else u===46&&a>-1?a++:a=-1}return n}function Ua(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const dD={cwd:hD};function hD(){return"/"}function Bh(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function pD(e){if(typeof e=="string")e=new URL(e);else if(!Bh(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return mD(e)}function mD(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const i=t.codePointAt(n+2);if(i===70||i===102){const l=new TypeError("File URL path must not include encoded / characters");throw l.code="ERR_INVALID_FILE_URL_PATH",l}}return decodeURIComponent(t)}const Dd=["history","path","basename","stem","extname","dirname"];class Jx{constructor(t){let n;t?Bh(t)?n={path:t}:typeof t=="string"||vD(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":dD.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<Dd.length;){const a=Dd[i];a in n&&n[a]!==void 0&&n[a]!==null&&(this[a]=a==="history"?[...n[a]]:n[a])}let l;for(l in n)Dd.includes(l)||(this[l]=n[l])}get basename(){return typeof this.path=="string"?ar.basename(this.path):void 0}
vendor: 7,255 bytes, line 183
183set basename(t){Fd(t,"basename"),jd(t,"basename"),this.path=ar.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?ar.dirname(this.path):void 0}set dirname(t){c0(this.basename,"dirname"),this.path=ar.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?ar.extname(this.path):void 0}set extname(t){if(jd(t,"extname"),c0(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ar.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Bh(t)&&(t=pD(t)),Fd(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?ar.basename(this.path,this.extname):void 0}set stem(t){Fd(t,"stem"),jd(t,"stem"),this.path=ar.join(this.dirname||"",t+(this.extname||""))}fail(t,n,i){const l=this.message(t,n,i);throw l.fatal=!0,l}info(t,n,i){const l=this.message(t,n,i);return l.fatal=void 0,l}message(t,n,i){const l=new Kt(t,n,i);return this.path&&(l.name=this.path+":"+l.name,l.file=this.path),l.fatal=!1,this.messages.push(l),l}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function jd(e,t){if(e&&e.includes(ar.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+ar.sep+"`")}function Fd(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function c0(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function vD(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const yD=(function(e){const i=this.constructor.prototype,l=i[e],a=function(){return l.apply(a,arguments)};return Object.setPrototypeOf(a,i),a}),gD={}.hasOwnProperty;class Xp extends yD{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=iD()}copy(){const t=new Xp;let n=-1;for(;++n<this.attachers.length;){const i=this.attachers[n];t.use(...i)}return t.data(Md(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(qd("data",this.frozen),this.namespace[t]=n,this):gD.call(this.namespace,t)&&this.namespace[t]||void 0:t?(qd("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const l=n.call(t,...i);typeof l=="function"&&this.transformers.use(l)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=uu(t),i=this.parser||this.Parser;return Bd("parse",i),i(String(n),n)}process(t,n){const i=this;return this.freeze(),Bd("process",this.parser||this.Parser),zd("process",this.compiler||this.Compiler),n?l(void 0,n):new Promise(l);function l(a,s){const u=uu(t),h=i.parse(u);i.run(h,u,function(p,f,d){if(p||!f||!d)return v(p);const m=f,S=i.stringify(m,d);SD(S)?d.value=S:d.result=S,v(p,d)});function v(p,f){p||!f?s(p):a?a(f):n(void 0,f)}}}processSync(t){let n=!1,i;return this.freeze(),Bd("processSync",this.parser||this.Parser),zd("processSync",this.compiler||this.Compiler),this.process(t,l),d0("processSync","process",n),i;function l(a,s){n=!0,s0(a),i=s}}run(t,n,i){f0(t),this.freeze();const l=this.transformers;return!i&&typeof n=="function"&&(i=n,n=void 0),i?a(void 0,i):new Promise(a);function a(s,u){const h=uu(n);l.run(t,h,v);function v(p,f,d){const m=f||t;p?u(p):s?s(m):i(void 0,m,d)}}}runSync(t,n){let i=!1,l;return this.run(t,n,a),d0("runSync","run",i),l;function a(s,u){s0(s),l=u,i=!0}}stringify(t,n){this.freeze();const i=uu(n),l=this.compiler||this.Compiler;return zd("stringify",l),f0(t),l(t,i)}use(t,...n){const i=this.attachers,l=this.namespace;if(qd("use",this.frozen),t!=null)if(typeof t=="function")h(t,n);else if(typeof t=="object")Array.isArray(t)?u(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(v){if(typeof v=="function")h(v,[]);else if(typeof v=="object")if(Array.isArray(v)){const[p,...f]=v;h(p,f)}else s(v);else throw new TypeError("Expected usable value, not `"+v+"`")}function s(v){if(!("plugins"in v)&&!("settings"in v))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");u(v.plugins),v.settings&&(l.settings=Md(!0,l.settings,v.settings))}function u(v){let p=-1;if(v!=null)if(Array.isArray(v))for(;++p<v.length;){const f=v[p];a(f)}else throw new TypeError("Expected a list of plugins, not `"+v+"`")}function h(v,p){let f=-1,d=-1;for(;++f<i.length;)if(i[f][0]===v){d=f;break}if(d===-1)i.push([v,...p]);else if(p.length>0){let[m,...S]=p;const y=i[d][1];Fh(y)&&Fh(m)&&(m=Md(!0,y,m)),i[d]=[v,m,...S]}}}}const wD=new Xp().freeze();function Bd(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function zd(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function qd(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function f0(e){if(!Fh(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function d0(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function uu(e){return bD(e)?e:new Jx(e)}function bD(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function SD(e){return typeof e=="string"||xD(e)}function xD(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const ED="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",h0=[],p0={allowDangerousHtml:!0},_D=/^(https?|ircs?|mailto|xmpp)$/i,kD=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Q3(e){const t=OD(e),n=CD(e);return PD(t.runSync(t.parse(n),n),e)}function OD(e){const t=e.rehypePlugins||h0,n=e.remarkPlugins||h0,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...p0}
vendor: 2,061 bytes, line 183
183:p0;return wD().use(l4).use(n).use(tD,i).use(t)}function CD(e){const t=e.children||"",n=new Jx;return typeof t=="string"&&(n.value=t),n}function PD(e,t){const n=t.allowedElements,i=t.allowElement,l=t.components,a=t.disallowedElements,s=t.skipHtml,u=t.unwrapDisallowed,h=t.urlTransform||AD;for(const p of kD)Object.hasOwn(t,p.from)&&(""+p.from+(p.to?"use `"+p.to+"` instead":"remove it")+ED+p.id,void 0);return t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:e.type==="root"?e.children:[e]}),Zx(e,v),BI(e,{Fragment:re.Fragment,components:l,ignoreInvalidStyle:!0,jsx:re.jsx,jsxs:re.jsxs,passKeys:!0,passNode:!0});function v(p,f,d){if(p.type==="raw"&&d&&typeof f=="number")return s?d.children.splice(f,1):d.children[f]={type:"text",value:p.value},f;if(p.type==="element"){let m;for(m in Rd)if(Object.hasOwn(Rd,m)&&Object.hasOwn(p.properties,m)){const S=p.properties[m],y=Rd[m];(y===null||y.includes(p.tagName))&&(p.properties[m]=h(String(S||""),m,p))}}if(p.type==="element"){let m=n?!n.includes(p.tagName):a?a.includes(p.tagName):!1;if(!m&&i&&typeof f=="number"&&(m=!i(p,f,d)),m&&d&&typeof f=="number")return u&&p.children?d.children.splice(f,1,...p.children):d.children.splice(f,1),f}}}function AD(e){const t=e.indexOf(":"),n=e.indexOf("?"),i=e.indexOf("#"),l=e.indexOf("/");return t===-1||l!==-1&&t>l||n!==-1&&t>n||i!==-1&&t>i||_D.test(e.slice(0,t))?e:""}export{s3 as $,vp as A,UD as B,y3 as C,KD as D,QD as E,GD as F,XD as G,ZD as H,w3 as I,JD as J,e3 as K,VD as L,n3 as M,zD as N,i3 as O,v3 as P,DD as Q,gt as R,WD as S,m3 as T,r3 as U,YD as V,o3 as W,l3 as X,t3 as Y,a3 as Z,$D as _,G0 as a,u3 as a0,c3 as a1,f3 as a2,d3 as a3,C3 as a4,P3 as a5,A3 as a6,R3 as a7,L3 as a8,N3 as a9,T3 as aa,I3 as ab,F3 as ac,B3 as ad,z3 as ae,sN as af,pN as ag,q3 as ah,U3 as ai,H3 as aj,$3 as ak,W3 as al,K3 as am,Q3 as an,HD as ao,FD as b,ID as c,jD as d,qD as e,CO as f,Ei as g,LD as h,p3 as i,re as j,_3 as k,k3 as l,b3 as m,x3 as n,S3 as o,g3 as p,E3 as q,D as r,j0 as s,BD as t,hl as u,M3 as v,D3 as w,j3 as x,Xh as y,V3 as z};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.