const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/PDFHighligther.CZH3Qgdh.js","assets/PDFHighligther.CxI7Y5IB.css","assets/CodeViewer.Bz0UUVF7.js","assets/toggleHighContrast.DCmCuJMz.js","assets/toggleHighContrast.DDEWoxeA.css","assets/CodeViewer.B6PZXurr.css","assets/DocumentsPreview.caLkNwS1.js","assets/DocumentsPreview.BDVRwI1h.css","assets/YamlEditor.CB5Tkggl.js","assets/YamlEditor.CK5GXWeu.css","assets/LogViewer.Dco_we8b.js","assets/LogViewer.DNU2LfMG.css","assets/YamlVisualizer.aBQZ_TcA.js","assets/main.DDzfi4z-.js","assets/YamlVisualizer.Cls9AArZ.css","assets/PromptEditor.BJjGiR8V.js","assets/PromptEditor.CYghvgDL.css","assets/ObservabilityDashboard.LAIKP7vL.js","assets/ObservabilityDashboard.T3RgCgiU.css","assets/JobsPage.C9iEZ8ud.js","assets/jobsPage.module.Ba9gLElL.js","assets/jobsPage.C8x2caV5.css","assets/JobsPage.BXh3bT-q.css","assets/JobDetailsPage.BHHnAhmM.js","assets/JobDetailsPage.BBHntBmz.css","assets/SharedPrototype.DlnS4e6g.js","assets/useSharedPrototype.n_X2gJKU.js","assets/useSharedPrototype.Bwy3GTWJ.css","assets/SharedPrototype.DRy1eCc3.css","assets/jobReportPage.Brnpfpon.js","assets/jobReportPage.BJLuahdJ.css","assets/pipelineStudioPage.6K_n-2Kg.js","assets/pipelineStudioPage.C6HsENPB.css"])))=>i.map(i=>d[i]);
function a9e(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const a=Object.getOwnPropertyDescriptor(r,i);a&&Object.defineProperty(e,i,a.get?a:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();var ns=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function qo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function jle(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var o9e={exports:{}},MB={},s9e={exports:{}},Vi={};/**
 * @license React
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var B6=Symbol.for("react.element"),jmt=Symbol.for("react.portal"),zmt=Symbol.for("react.fragment"),Umt=Symbol.for("react.strict_mode"),Hmt=Symbol.for("react.profiler"),Vmt=Symbol.for("react.provider"),Gmt=Symbol.for("react.context"),qmt=Symbol.for("react.forward_ref"),Wmt=Symbol.for("react.suspense"),Ymt=Symbol.for("react.memo"),Kmt=Symbol.for("react.lazy"),H1e=Symbol.iterator;function Xmt(e){return e===null||typeof e!="object"?null:(e=H1e&&e[H1e]||e["@@iterator"],typeof e=="function"?e:null)}var l9e={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},c9e=Object.assign,u9e={};function Y3(e,t,n){this.props=e,this.context=t,this.refs=u9e,this.updater=n||l9e}Y3.prototype.isReactComponent={};Y3.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};Y3.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function d9e(){}d9e.prototype=Y3.prototype;function zle(e,t,n){this.props=e,this.context=t,this.refs=u9e,this.updater=n||l9e}var Ule=zle.prototype=new d9e;Ule.constructor=zle;c9e(Ule,Y3.prototype);Ule.isPureReactComponent=!0;var V1e=Array.isArray,f9e=Object.prototype.hasOwnProperty,Hle={current:null},p9e={key:!0,ref:!0,__self:!0,__source:!0};function h9e(e,t,n){var r,i={},a=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)f9e.call(t,r)&&!p9e.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var l=Array(s),c=0;c<s;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return{$$typeof:B6,type:e,key:a,ref:o,props:i,_owner:Hle.current}}function Zmt(e,t){return{$$typeof:B6,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Vle(e){return typeof e=="object"&&e!==null&&e.$$typeof===B6}function Qmt(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var G1e=/\/+/g;function FV(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Qmt(""+e.key):t.toString(36)}function x9(e,t,n,r,i){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(a){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case B6:case jmt:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+FV(o,0):r,V1e(i)?(n="",e!=null&&(n=e.replace(G1e,"$&/")+"/"),x9(i,t,n,"",function(c){return c})):i!=null&&(Vle(i)&&(i=Zmt(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(G1e,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",V1e(e))for(var s=0;s<e.length;s++){a=e[s];var l=r+FV(a,s);o+=x9(a,t,n,l,i)}else if(l=Xmt(e),typeof l=="function")for(e=l.call(e),s=0;!(a=e.next()).done;)a=a.value,l=r+FV(a,s++),o+=x9(a,t,n,l,i);else if(a==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function gL(e,t,n){if(e==null)return e;var r=[],i=0;return x9(e,r,"","",function(a){return t.call(n,a,i++)}),r}function Jmt(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var $u={current:null},T9={transition:null},egt={ReactCurrentDispatcher:$u,ReactCurrentBatchConfig:T9,ReactCurrentOwner:Hle};function m9e(){throw Error("act(...) is not supported in production builds of React.")}Vi.Children={map:gL,forEach:function(e,t,n){gL(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return gL(e,function(){t++}),t},toArray:function(e){return gL(e,function(t){return t})||[]},only:function(e){if(!Vle(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Vi.Component=Y3;Vi.Fragment=zmt;Vi.Profiler=Hmt;Vi.PureComponent=zle;Vi.StrictMode=Umt;Vi.Suspense=Wmt;Vi.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=egt;Vi.act=m9e;Vi.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=c9e({},e.props),i=e.key,a=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,o=Hle.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)f9e.call(t,l)&&!p9e.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&s!==void 0?s[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){s=Array(l);for(var c=0;c<l;c++)s[c]=arguments[c+2];r.children=s}return{$$typeof:B6,type:e.type,key:i,ref:a,props:r,_owner:o}};Vi.createContext=function(e){return e={$$typeof:Gmt,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Vmt,_context:e},e.Consumer=e};Vi.createElement=h9e;Vi.createFactory=function(e){var t=h9e.bind(null,e);return t.type=e,t};Vi.createRef=function(){return{current:null}};Vi.forwardRef=function(e){return{$$typeof:qmt,render:e}};Vi.isValidElement=Vle;Vi.lazy=function(e){return{$$typeof:Kmt,_payload:{_status:-1,_result:e},_init:Jmt}};Vi.memo=function(e,t){return{$$typeof:Ymt,type:e,compare:t===void 0?null:t}};Vi.startTransition=function(e){var t=T9.transition;T9.transition={};try{e()}finally{T9.transition=t}};Vi.unstable_act=m9e;Vi.useCallback=function(e,t){return $u.current.useCallback(e,t)};Vi.useContext=function(e){return $u.current.useContext(e)};Vi.useDebugValue=function(){};Vi.useDeferredValue=function(e){return $u.current.useDeferredValue(e)};Vi.useEffect=function(e,t){return $u.current.useEffect(e,t)};Vi.useId=function(){return $u.current.useId()};Vi.useImperativeHandle=function(e,t,n){return $u.current.useImperativeHandle(e,t,n)};Vi.useInsertionEffect=function(e,t){return $u.current.useInsertionEffect(e,t)};Vi.useLayoutEffect=function(e,t){return $u.current.useLayoutEffect(e,t)};Vi.useMemo=function(e,t){return $u.current.useMemo(e,t)};Vi.useReducer=function(e,t,n){return $u.current.useReducer(e,t,n)};Vi.useRef=function(e){return $u.current.useRef(e)};Vi.useState=function(e){return $u.current.useState(e)};Vi.useSyncExternalStore=function(e,t,n){return $u.current.useSyncExternalStore(e,t,n)};Vi.useTransition=function(){return $u.current.useTransition()};Vi.version="18.3.1";s9e.exports=Vi;var b=s9e.exports;const se=qo(b),j6=a9e({__proto__:null,default:se},[b]);/**
 * @license React
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var tgt=b,ngt=Symbol.for("react.element"),rgt=Symbol.for("react.fragment"),igt=Object.prototype.hasOwnProperty,agt=tgt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ogt={key:!0,ref:!0,__self:!0,__source:!0};function g9e(e,t,n){var r,i={},a=null,o=null;n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)igt.call(t,r)&&!ogt.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:ngt,type:e,key:a,ref:o,props:i,_owner:agt.current}}MB.Fragment=rgt;MB.jsx=g9e;MB.jsxs=g9e;o9e.exports=MB;var E=o9e.exports,v9e={exports:{}},sgt="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",lgt=sgt,cgt=lgt;function y9e(){}function b9e(){}b9e.resetWarningCache=y9e;var ugt=function(){function e(r,i,a,o,s,l){if(l!==cgt){var c=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 c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:b9e,resetWarningCache:y9e};return n.PropTypes=n,n};v9e.exports=ugt();var dgt=v9e.exports;const ai=qo(dgt);var qb=se.createContext(null);function fgt(e){e()}var _9e=fgt,pgt=function(t){return _9e=t},hgt=function(){return _9e};function mgt(){var e=hgt(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e(function(){for(var i=t;i;)i.callback(),i=i.next})},get:function(){for(var i=[],a=t;a;)i.push(a),a=a.next;return i},subscribe:function(i){var a=!0,o=n={callback:i,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){!a||t===null||(a=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}var q1e={notify:function(){},get:function(){return[]}};function S9e(e,t){var n,r=q1e;function i(d){return l(),r.subscribe(d)}function a(){r.notify()}function o(){u.onStateChange&&u.onStateChange()}function s(){return!!n}function l(){n||(n=t?t.addNestedSub(o):e.subscribe(o),r=mgt())}function c(){n&&(n(),n=void 0,r.clear(),r=q1e)}var u={addNestedSub:i,notifyNestedSubs:a,handleChangeWrapper:o,isSubscribed:s,trySubscribe:l,tryUnsubscribe:c,getListeners:function(){return r}};return u}var Fte=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?b.useLayoutEffect:b.useEffect;function ggt(e){var t=e.store,n=e.context,r=e.children,i=b.useMemo(function(){var s=S9e(t);return{store:t,subscription:s}},[t]),a=b.useMemo(function(){return t.getState()},[t]);Fte(function(){var s=i.subscription;return s.onStateChange=s.notifyNestedSubs,s.trySubscribe(),a!==t.getState()&&s.notifyNestedSubs(),function(){s.tryUnsubscribe(),s.onStateChange=null}},[i,a]);var o=n||qb;return se.createElement(o.Provider,{value:i},r)}function Xe(){return Xe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xe.apply(null,arguments)}function vgt(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}var E9e={exports:{}},Za={};/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var ec=typeof Symbol=="function"&&Symbol.for,Gle=ec?Symbol.for("react.element"):60103,qle=ec?Symbol.for("react.portal"):60106,DB=ec?Symbol.for("react.fragment"):60107,$B=ec?Symbol.for("react.strict_mode"):60108,FB=ec?Symbol.for("react.profiler"):60114,BB=ec?Symbol.for("react.provider"):60109,jB=ec?Symbol.for("react.context"):60110,Wle=ec?Symbol.for("react.async_mode"):60111,zB=ec?Symbol.for("react.concurrent_mode"):60111,UB=ec?Symbol.for("react.forward_ref"):60112,HB=ec?Symbol.for("react.suspense"):60113,ygt=ec?Symbol.for("react.suspense_list"):60120,VB=ec?Symbol.for("react.memo"):60115,GB=ec?Symbol.for("react.lazy"):60116,bgt=ec?Symbol.for("react.block"):60121,_gt=ec?Symbol.for("react.fundamental"):60117,Sgt=ec?Symbol.for("react.responder"):60118,Egt=ec?Symbol.for("react.scope"):60119;function Pf(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Gle:switch(e=e.type,e){case Wle:case zB:case DB:case FB:case $B:case HB:return e;default:switch(e=e&&e.$$typeof,e){case jB:case UB:case GB:case VB:case BB:return e;default:return t}}case qle:return t}}}function C9e(e){return Pf(e)===zB}Za.AsyncMode=Wle;Za.ConcurrentMode=zB;Za.ContextConsumer=jB;Za.ContextProvider=BB;Za.Element=Gle;Za.ForwardRef=UB;Za.Fragment=DB;Za.Lazy=GB;Za.Memo=VB;Za.Portal=qle;Za.Profiler=FB;Za.StrictMode=$B;Za.Suspense=HB;Za.isAsyncMode=function(e){return C9e(e)||Pf(e)===Wle};Za.isConcurrentMode=C9e;Za.isContextConsumer=function(e){return Pf(e)===jB};Za.isContextProvider=function(e){return Pf(e)===BB};Za.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Gle};Za.isForwardRef=function(e){return Pf(e)===UB};Za.isFragment=function(e){return Pf(e)===DB};Za.isLazy=function(e){return Pf(e)===GB};Za.isMemo=function(e){return Pf(e)===VB};Za.isPortal=function(e){return Pf(e)===qle};Za.isProfiler=function(e){return Pf(e)===FB};Za.isStrictMode=function(e){return Pf(e)===$B};Za.isSuspense=function(e){return Pf(e)===HB};Za.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===DB||e===zB||e===FB||e===$B||e===HB||e===ygt||typeof e=="object"&&e!==null&&(e.$$typeof===GB||e.$$typeof===VB||e.$$typeof===BB||e.$$typeof===jB||e.$$typeof===UB||e.$$typeof===_gt||e.$$typeof===Sgt||e.$$typeof===Egt||e.$$typeof===bgt)};Za.typeOf=Pf;E9e.exports=Za;var Cgt=E9e.exports,w9e=Cgt,wgt={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},xgt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},x9e={};x9e[w9e.ForwardRef]=wgt;x9e[w9e.Memo]=xgt;var Ao={};/** @license React v17.0.2
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var qB=60103,WB=60106,z6=60107,U6=60108,H6=60114,V6=60109,G6=60110,q6=60112,W6=60113,Yle=60120,Y6=60115,K6=60116,T9e=60121,I9e=60122,A9e=60117,R9e=60129,N9e=60131;if(typeof Symbol=="function"&&Symbol.for){var oc=Symbol.for;qB=oc("react.element"),WB=oc("react.portal"),z6=oc("react.fragment"),U6=oc("react.strict_mode"),H6=oc("react.profiler"),V6=oc("react.provider"),G6=oc("react.context"),q6=oc("react.forward_ref"),W6=oc("react.suspense"),Yle=oc("react.suspense_list"),Y6=oc("react.memo"),K6=oc("react.lazy"),T9e=oc("react.block"),I9e=oc("react.server.block"),A9e=oc("react.fundamental"),R9e=oc("react.debug_trace_mode"),N9e=oc("react.legacy_hidden")}function Sm(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case qB:switch(e=e.type,e){case z6:case H6:case U6:case W6:case Yle:return e;default:switch(e=e&&e.$$typeof,e){case G6:case q6:case K6:case Y6:case V6:return e;default:return t}}case WB:return t}}}var Tgt=V6,Igt=qB,Agt=q6,Rgt=z6,Ngt=K6,Ogt=Y6,Lgt=WB,Pgt=H6,kgt=U6,Mgt=W6;Ao.ContextConsumer=G6;Ao.ContextProvider=Tgt;Ao.Element=Igt;Ao.ForwardRef=Agt;Ao.Fragment=Rgt;Ao.Lazy=Ngt;Ao.Memo=Ogt;Ao.Portal=Lgt;Ao.Profiler=Pgt;Ao.StrictMode=kgt;Ao.Suspense=Mgt;Ao.isAsyncMode=function(){return!1};Ao.isConcurrentMode=function(){return!1};Ao.isContextConsumer=function(e){return Sm(e)===G6};Ao.isContextProvider=function(e){return Sm(e)===V6};Ao.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===qB};Ao.isForwardRef=function(e){return Sm(e)===q6};Ao.isFragment=function(e){return Sm(e)===z6};Ao.isLazy=function(e){return Sm(e)===K6};Ao.isMemo=function(e){return Sm(e)===Y6};Ao.isPortal=function(e){return Sm(e)===WB};Ao.isProfiler=function(e){return Sm(e)===H6};Ao.isStrictMode=function(e){return Sm(e)===U6};Ao.isSuspense=function(e){return Sm(e)===W6};Ao.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===z6||e===H6||e===R9e||e===U6||e===W6||e===Yle||e===N9e||typeof e=="object"&&e!==null&&(e.$$typeof===K6||e.$$typeof===Y6||e.$$typeof===V6||e.$$typeof===G6||e.$$typeof===q6||e.$$typeof===A9e||e.$$typeof===T9e||e[0]===I9e)};Ao.typeOf=Sm;function O9e(){var e=b.useContext(qb);return e}function L9e(e){e===void 0&&(e=qb);var t=e===qb?O9e:function(){return b.useContext(e)};return function(){var r=t(),i=r.store;return i}}var Dgt=L9e();function $gt(e){e===void 0&&(e=qb);var t=e===qb?Dgt:L9e(e);return function(){var r=t();return r.dispatch}}var ir=$gt(),Fgt=function(t,n){return t===n};function Bgt(e,t,n,r){var i=b.useReducer(function(h){return h+1},0),a=i[1],o=b.useMemo(function(){return S9e(n,r)},[n,r]),s=b.useRef(),l=b.useRef(),c=b.useRef(),u=b.useRef(),d=n.getState(),f;try{if(e!==l.current||d!==c.current||s.current){var p=e(d);u.current===void 0||!t(p,u.current)?f=p:f=u.current}else f=u.current}catch(h){throw s.current&&(h.message+=`
The error may be correlated with this previous error:
`+s.current.stack+`

`),h}return Fte(function(){l.current=e,c.current=d,u.current=f,s.current=void 0}),Fte(function(){function h(){try{var m=n.getState();if(m===c.current)return;var g=l.current(m);if(t(g,u.current))return;u.current=g,c.current=m}catch(v){s.current=v}a()}return o.onStateChange=h,o.trySubscribe(),h(),function(){return o.tryUnsubscribe()}},[n,o]),f}function jgt(e){e===void 0&&(e=qb);var t=e===qb?O9e:function(){return b.useContext(e)};return function(r,i){i===void 0&&(i=Fgt);var a=t(),o=a.store,s=a.subscription,l=Bgt(r,i,o,s);return b.useDebugValue(l),l}}var st=jgt(),P9e={exports:{}},kf={},k9e={exports:{}},M9e={};/**
 * @license React
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */(function(e){function t(U,H){var M=U.length;U.push(H);e:for(;0<M;){var B=M-1>>>1,k=U[B];if(0<i(k,H))U[B]=H,U[M]=k,M=B;else break e}}function n(U){return U.length===0?null:U[0]}function r(U){if(U.length===0)return null;var H=U[0],M=U.pop();if(M!==H){U[0]=M;e:for(var B=0,k=U.length,F=k>>>1;B<F;){var G=2*(B+1)-1,q=U[G],W=G+1,K=U[W];if(0>i(q,M))W<k&&0>i(K,q)?(U[B]=K,U[W]=M,B=W):(U[B]=q,U[G]=M,B=G);else if(W<k&&0>i(K,M))U[B]=K,U[W]=M,B=W;else break e}}return H}function i(U,H){var M=U.sortIndex-H.sortIndex;return M!==0?M:U.id-H.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],c=[],u=1,d=null,f=3,p=!1,h=!1,m=!1,g=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _(U){for(var H=n(c);H!==null;){if(H.callback===null)r(c);else if(H.startTime<=U)r(c),H.sortIndex=H.expirationTime,t(l,H);else break;H=n(c)}}function S(U){if(m=!1,_(U),!h)if(n(l)!==null)h=!0,D(C);else{var H=n(c);H!==null&&z(S,H.startTime-U)}}function C(U,H){h=!1,m&&(m=!1,v(T),T=-1),p=!0;var M=f;try{for(_(H),d=n(l);d!==null&&(!(d.expirationTime>H)||U&&!R());){var B=d.callback;if(typeof B=="function"){d.callback=null,f=d.priorityLevel;var k=B(d.expirationTime<=H);H=e.unstable_now(),typeof k=="function"?d.callback=k:d===n(l)&&r(l),_(H)}else r(l);d=n(l)}if(d!==null)var F=!0;else{var G=n(c);G!==null&&z(S,G.startTime-H),F=!1}return F}finally{d=null,f=M,p=!1}}var w=!1,x=null,T=-1,A=5,I=-1;function R(){return!(e.unstable_now()-I<A)}function N(){if(x!==null){var U=e.unstable_now();I=U;var H=!0;try{H=x(!0,U)}finally{H?P():(w=!1,x=null)}}else w=!1}var P;if(typeof y=="function")P=function(){y(N)};else if(typeof MessageChannel<"u"){var L=new MessageChannel,$=L.port2;L.port1.onmessage=N,P=function(){$.postMessage(null)}}else P=function(){g(N,0)};function D(U){x=U,w||(w=!0,P())}function z(U,H){T=g(function(){U(e.unstable_now())},H)}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(U){U.callback=null},e.unstable_continueExecution=function(){h||p||(h=!0,D(C))},e.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<U?Math.floor(1e3/U):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(U){switch(f){case 1:case 2:case 3:var H=3;break;default:H=f}var M=f;f=H;try{return U()}finally{f=M}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(U,H){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var M=f;f=U;try{return H()}finally{f=M}},e.unstable_scheduleCallback=function(U,H,M){var B=e.unstable_now();switch(typeof M=="object"&&M!==null?(M=M.delay,M=typeof M=="number"&&0<M?B+M:B):M=B,U){case 1:var k=-1;break;case 2:k=250;break;case 5:k=1073741823;break;case 4:k=1e4;break;default:k=5e3}return k=M+k,U={id:u++,callback:H,priorityLevel:U,startTime:M,expirationTime:k,sortIndex:-1},M>B?(U.sortIndex=M,t(c,U),n(l)===null&&U===n(c)&&(m?(v(T),T=-1):m=!0,z(S,M-B))):(U.sortIndex=k,t(l,U),h||p||(h=!0,D(C))),U},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(U){var H=f;return function(){var M=f;f=H;try{return U.apply(this,arguments)}finally{f=M}}}})(M9e);k9e.exports=M9e;var zgt=k9e.exports;/**
 * @license React
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Ugt=b,If=zgt;function In(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var D9e=new Set,KR={};function dC(e,t){t3(e,t),t3(e+"Capture",t)}function t3(e,t){for(KR[e]=t,e=0;e<t.length;e++)D9e.add(t[e])}var Z1=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Bte=Object.prototype.hasOwnProperty,Hgt=/^[: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]*$/,W1e={},Y1e={};function Vgt(e){return Bte.call(Y1e,e)?!0:Bte.call(W1e,e)?!1:Hgt.test(e)?Y1e[e]=!0:(W1e[e]=!0,!1)}function Ggt(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function qgt(e,t,n,r){if(t===null||typeof t>"u"||Ggt(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Fu(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var Cc={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Cc[e]=new Fu(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Cc[t]=new Fu(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Cc[e]=new Fu(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Cc[e]=new Fu(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Cc[e]=new Fu(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Cc[e]=new Fu(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Cc[e]=new Fu(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Cc[e]=new Fu(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Cc[e]=new Fu(e,5,!1,e.toLowerCase(),null,!1,!1)});var Kle=/[\-:]([a-z])/g;function Xle(e){return e[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(e){var t=e.replace(Kle,Xle);Cc[t]=new Fu(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Kle,Xle);Cc[t]=new Fu(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Kle,Xle);Cc[t]=new Fu(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Cc[e]=new Fu(e,1,!1,e.toLowerCase(),null,!1,!1)});Cc.xlinkHref=new Fu("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Cc[e]=new Fu(e,1,!1,e.toLowerCase(),null,!0,!0)});function Zle(e,t,n,r){var i=Cc.hasOwnProperty(t)?Cc[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(qgt(t,n,i,r)&&(n=null),r||i===null?Vgt(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var h0=Ugt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,vL=Symbol.for("react.element"),Ax=Symbol.for("react.portal"),Rx=Symbol.for("react.fragment"),Qle=Symbol.for("react.strict_mode"),jte=Symbol.for("react.profiler"),$9e=Symbol.for("react.provider"),F9e=Symbol.for("react.context"),Jle=Symbol.for("react.forward_ref"),zte=Symbol.for("react.suspense"),Ute=Symbol.for("react.suspense_list"),ece=Symbol.for("react.memo"),zy=Symbol.for("react.lazy"),B9e=Symbol.for("react.offscreen"),K1e=Symbol.iterator;function N4(e){return e===null||typeof e!="object"?null:(e=K1e&&e[K1e]||e["@@iterator"],typeof e=="function"?e:null)}var vs=Object.assign,BV;function oA(e){if(BV===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);BV=t&&t[1]||""}return`
`+BV+e}var jV=!1;function zV(e,t){if(!e||jV)return"";jV=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var i=c.stack.split(`
`),a=r.stack.split(`
`),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(o!==1||s!==1)do if(o--,s--,0>s||i[o]!==a[s]){var l=`
`+i[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=o&&0<=s);break}}}finally{jV=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?oA(e):""}function Wgt(e){switch(e.tag){case 5:return oA(e.type);case 16:return oA("Lazy");case 13:return oA("Suspense");case 19:return oA("SuspenseList");case 0:case 2:case 15:return e=zV(e.type,!1),e;case 11:return e=zV(e.type.render,!1),e;case 1:return e=zV(e.type,!0),e;default:return""}}function Hte(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Rx:return"Fragment";case Ax:return"Portal";case jte:return"Profiler";case Qle:return"StrictMode";case zte:return"Suspense";case Ute:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case F9e:return(e.displayName||"Context")+".Consumer";case $9e:return(e._context.displayName||"Context")+".Provider";case Jle:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ece:return t=e.displayName||null,t!==null?t:Hte(e.type)||"Memo";case zy:t=e._payload,e=e._init;try{return Hte(e(t))}catch{}}return null}function Ygt(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Hte(t);case 8:return t===Qle?"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 t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Wb(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function j9e(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Kgt(e){var t=j9e(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function yL(e){e._valueTracker||(e._valueTracker=Kgt(e))}function z9e(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=j9e(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function fD(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Vte(e,t){var n=t.checked;return vs({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function X1e(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Wb(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function U9e(e,t){t=t.checked,t!=null&&Zle(e,"checked",t,!1)}function Gte(e,t){U9e(e,t);var n=Wb(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?qte(e,t.type,n):t.hasOwnProperty("defaultValue")&&qte(e,t.type,Wb(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Z1e(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function qte(e,t,n){(t!=="number"||fD(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var sA=Array.isArray;function f5(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Wb(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Wte(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(In(91));return vs({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Q1e(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(In(92));if(sA(n)){if(1<n.length)throw Error(In(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Wb(n)}}function H9e(e,t){var n=Wb(t.value),r=Wb(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function J1e(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function V9e(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Yte(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?V9e(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var bL,G9e=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(bL=bL||document.createElement("div"),bL.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=bL.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function XR(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var VA={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},Xgt=["Webkit","ms","Moz","O"];Object.keys(VA).forEach(function(e){Xgt.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),VA[t]=VA[e]})});function q9e(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||VA.hasOwnProperty(e)&&VA[e]?(""+t).trim():t+"px"}function W9e(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=q9e(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Zgt=vs({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 Kte(e,t){if(t){if(Zgt[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(In(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(In(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(In(61))}if(t.style!=null&&typeof t.style!="object")throw Error(In(62))}}function Xte(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Zte=null;function tce(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Qte=null,p5=null,h5=null;function e0e(e){if(e=Q6(e)){if(typeof Qte!="function")throw Error(In(280));var t=e.stateNode;t&&(t=QB(t),Qte(e.stateNode,e.type,t))}}function Y9e(e){p5?h5?h5.push(e):h5=[e]:p5=e}function K9e(){if(p5){var e=p5,t=h5;if(h5=p5=null,e0e(e),t)for(e=0;e<t.length;e++)e0e(t[e])}}function X9e(e,t){return e(t)}function Z9e(){}var UV=!1;function Q9e(e,t,n){if(UV)return e(t,n);UV=!0;try{return X9e(e,t,n)}finally{UV=!1,(p5!==null||h5!==null)&&(Z9e(),K9e())}}function ZR(e,t){var n=e.stateNode;if(n===null)return null;var r=QB(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(In(231,t,typeof n));return n}var Jte=!1;if(Z1)try{var O4={};Object.defineProperty(O4,"passive",{get:function(){Jte=!0}}),window.addEventListener("test",O4,O4),window.removeEventListener("test",O4,O4)}catch{Jte=!1}function Qgt(e,t,n,r,i,a,o,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var GA=!1,pD=null,hD=!1,ene=null,Jgt={onError:function(e){GA=!0,pD=e}};function evt(e,t,n,r,i,a,o,s,l){GA=!1,pD=null,Qgt.apply(Jgt,arguments)}function tvt(e,t,n,r,i,a,o,s,l){if(evt.apply(this,arguments),GA){if(GA){var c=pD;GA=!1,pD=null}else throw Error(In(198));hD||(hD=!0,ene=c)}}function fC(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function J9e(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function t0e(e){if(fC(e)!==e)throw Error(In(188))}function nvt(e){var t=e.alternate;if(!t){if(t=fC(e),t===null)throw Error(In(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var a=i.alternate;if(a===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return t0e(i),e;if(a===r)return t0e(i),t;a=a.sibling}throw Error(In(188))}if(n.return!==r.return)n=i,r=a;else{for(var o=!1,s=i.child;s;){if(s===n){o=!0,n=i,r=a;break}if(s===r){o=!0,r=i,n=a;break}s=s.sibling}if(!o){for(s=a.child;s;){if(s===n){o=!0,n=a,r=i;break}if(s===r){o=!0,r=a,n=i;break}s=s.sibling}if(!o)throw Error(In(189))}}if(n.alternate!==r)throw Error(In(190))}if(n.tag!==3)throw Error(In(188));return n.stateNode.current===n?e:t}function e7e(e){return e=nvt(e),e!==null?t7e(e):null}function t7e(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=t7e(e);if(t!==null)return t;e=e.sibling}return null}var n7e=If.unstable_scheduleCallback,n0e=If.unstable_cancelCallback,rvt=If.unstable_shouldYield,ivt=If.unstable_requestPaint,Gs=If.unstable_now,avt=If.unstable_getCurrentPriorityLevel,nce=If.unstable_ImmediatePriority,r7e=If.unstable_UserBlockingPriority,mD=If.unstable_NormalPriority,ovt=If.unstable_LowPriority,i7e=If.unstable_IdlePriority,YB=null,jg=null;function svt(e){if(jg&&typeof jg.onCommitFiberRoot=="function")try{jg.onCommitFiberRoot(YB,e,void 0,(e.current.flags&128)===128)}catch{}}var Xh=Math.clz32?Math.clz32:uvt,lvt=Math.log,cvt=Math.LN2;function uvt(e){return e>>>=0,e===0?32:31-(lvt(e)/cvt|0)|0}var _L=64,SL=4194304;function lA(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function gD(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s!==0?r=lA(s):(a&=o,a!==0&&(r=lA(a)))}else o=n&~i,o!==0?r=lA(o):a!==0&&(r=lA(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Xh(t),i=1<<n,r|=e[n],t&=~i;return r}function dvt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;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 fvt(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-Xh(a),s=1<<o,l=i[o];l===-1?(!(s&n)||s&r)&&(i[o]=dvt(s,t)):l<=t&&(e.expiredLanes|=s),a&=~s}}function tne(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function a7e(){var e=_L;return _L<<=1,!(_L&4194240)&&(_L=64),e}function HV(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function X6(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Xh(t),e[t]=n}function pvt(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-Xh(n),a=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~a}}function rce(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Xh(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var Ya=0;function o7e(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var s7e,ice,l7e,c7e,u7e,nne=!1,EL=[],wb=null,xb=null,Tb=null,QR=new Map,JR=new Map,eb=[],hvt="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 r0e(e,t){switch(e){case"focusin":case"focusout":wb=null;break;case"dragenter":case"dragleave":xb=null;break;case"mouseover":case"mouseout":Tb=null;break;case"pointerover":case"pointerout":QR.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":JR.delete(t.pointerId)}}function L4(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Q6(t),t!==null&&ice(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function mvt(e,t,n,r,i){switch(t){case"focusin":return wb=L4(wb,e,t,n,r,i),!0;case"dragenter":return xb=L4(xb,e,t,n,r,i),!0;case"mouseover":return Tb=L4(Tb,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return QR.set(a,L4(QR.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,JR.set(a,L4(JR.get(a)||null,e,t,n,r,i)),!0}return!1}function d7e(e){var t=NS(e.target);if(t!==null){var n=fC(t);if(n!==null){if(t=n.tag,t===13){if(t=J9e(n),t!==null){e.blockedOn=t,u7e(e.priority,function(){l7e(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function I9(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=rne(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Zte=r,n.target.dispatchEvent(r),Zte=null}else return t=Q6(n),t!==null&&ice(t),e.blockedOn=n,!1;t.shift()}return!0}function i0e(e,t,n){I9(e)&&n.delete(t)}function gvt(){nne=!1,wb!==null&&I9(wb)&&(wb=null),xb!==null&&I9(xb)&&(xb=null),Tb!==null&&I9(Tb)&&(Tb=null),QR.forEach(i0e),JR.forEach(i0e)}function P4(e,t){e.blockedOn===t&&(e.blockedOn=null,nne||(nne=!0,If.unstable_scheduleCallback(If.unstable_NormalPriority,gvt)))}function eN(e){function t(i){return P4(i,e)}if(0<EL.length){P4(EL[0],e);for(var n=1;n<EL.length;n++){var r=EL[n];r.blockedOn===e&&(r.blockedOn=null)}}for(wb!==null&&P4(wb,e),xb!==null&&P4(xb,e),Tb!==null&&P4(Tb,e),QR.forEach(t),JR.forEach(t),n=0;n<eb.length;n++)r=eb[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<eb.length&&(n=eb[0],n.blockedOn===null);)d7e(n),n.blockedOn===null&&eb.shift()}var m5=h0.ReactCurrentBatchConfig,vD=!0;function vvt(e,t,n,r){var i=Ya,a=m5.transition;m5.transition=null;try{Ya=1,ace(e,t,n,r)}finally{Ya=i,m5.transition=a}}function yvt(e,t,n,r){var i=Ya,a=m5.transition;m5.transition=null;try{Ya=4,ace(e,t,n,r)}finally{Ya=i,m5.transition=a}}function ace(e,t,n,r){if(vD){var i=rne(e,t,n,r);if(i===null)JV(e,t,r,yD,n),r0e(e,r);else if(mvt(i,e,t,n,r))r.stopPropagation();else if(r0e(e,r),t&4&&-1<hvt.indexOf(e)){for(;i!==null;){var a=Q6(i);if(a!==null&&s7e(a),a=rne(e,t,n,r),a===null&&JV(e,t,r,yD,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else JV(e,t,r,null,n)}}var yD=null;function rne(e,t,n,r){if(yD=null,e=tce(r),e=NS(e),e!==null)if(t=fC(e),t===null)e=null;else if(n=t.tag,n===13){if(e=J9e(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return yD=e,null}function f7e(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(avt()){case nce:return 1;case r7e:return 4;case mD:case ovt:return 16;case i7e:return 536870912;default:return 16}default:return 16}}var ob=null,oce=null,A9=null;function p7e(){if(A9)return A9;var e,t=oce,n=t.length,r,i="value"in ob?ob.value:ob.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return A9=i.slice(e,1<r?1-r:void 0)}function R9(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function CL(){return!0}function a0e(){return!1}function Mf(e){function t(n,r,i,a,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=a,this.target=o,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(a):a[s]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?CL:a0e,this.isPropagationStopped=a0e,this}return vs(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=CL)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=CL)},persist:function(){},isPersistent:CL}),t}var K3={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},sce=Mf(K3),Z6=vs({},K3,{view:0,detail:0}),bvt=Mf(Z6),VV,GV,k4,KB=vs({},Z6,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:lce,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==k4&&(k4&&e.type==="mousemove"?(VV=e.screenX-k4.screenX,GV=e.screenY-k4.screenY):GV=VV=0,k4=e),VV)},movementY:function(e){return"movementY"in e?e.movementY:GV}}),o0e=Mf(KB),_vt=vs({},KB,{dataTransfer:0}),Svt=Mf(_vt),Evt=vs({},Z6,{relatedTarget:0}),qV=Mf(Evt),Cvt=vs({},K3,{animationName:0,elapsedTime:0,pseudoElement:0}),wvt=Mf(Cvt),xvt=vs({},K3,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Tvt=Mf(xvt),Ivt=vs({},K3,{data:0}),s0e=Mf(Ivt),Avt={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Rvt={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"},Nvt={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ovt(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Nvt[e])?!!t[e]:!1}function lce(){return Ovt}var Lvt=vs({},Z6,{key:function(e){if(e.key){var t=Avt[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=R9(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Rvt[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:lce,charCode:function(e){return e.type==="keypress"?R9(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?R9(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Pvt=Mf(Lvt),kvt=vs({},KB,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),l0e=Mf(kvt),Mvt=vs({},Z6,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:lce}),Dvt=Mf(Mvt),$vt=vs({},K3,{propertyName:0,elapsedTime:0,pseudoElement:0}),Fvt=Mf($vt),Bvt=vs({},KB,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),jvt=Mf(Bvt),zvt=[9,13,27,32],cce=Z1&&"CompositionEvent"in window,qA=null;Z1&&"documentMode"in document&&(qA=document.documentMode);var Uvt=Z1&&"TextEvent"in window&&!qA,h7e=Z1&&(!cce||qA&&8<qA&&11>=qA),c0e=" ",u0e=!1;function m7e(e,t){switch(e){case"keyup":return zvt.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function g7e(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Nx=!1;function Hvt(e,t){switch(e){case"compositionend":return g7e(t);case"keypress":return t.which!==32?null:(u0e=!0,c0e);case"textInput":return e=t.data,e===c0e&&u0e?null:e;default:return null}}function Vvt(e,t){if(Nx)return e==="compositionend"||!cce&&m7e(e,t)?(e=p7e(),A9=oce=ob=null,Nx=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return h7e&&t.locale!=="ko"?null:t.data;default:return null}}var Gvt={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 d0e(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Gvt[e.type]:t==="textarea"}function v7e(e,t,n,r){Y9e(r),t=bD(t,"onChange"),0<t.length&&(n=new sce("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var WA=null,tN=null;function qvt(e){A7e(e,0)}function XB(e){var t=Px(e);if(z9e(t))return e}function Wvt(e,t){if(e==="change")return t}var y7e=!1;if(Z1){var WV;if(Z1){var YV="oninput"in document;if(!YV){var f0e=document.createElement("div");f0e.setAttribute("oninput","return;"),YV=typeof f0e.oninput=="function"}WV=YV}else WV=!1;y7e=WV&&(!document.documentMode||9<document.documentMode)}function p0e(){WA&&(WA.detachEvent("onpropertychange",b7e),tN=WA=null)}function b7e(e){if(e.propertyName==="value"&&XB(tN)){var t=[];v7e(t,tN,e,tce(e)),Q9e(qvt,t)}}function Yvt(e,t,n){e==="focusin"?(p0e(),WA=t,tN=n,WA.attachEvent("onpropertychange",b7e)):e==="focusout"&&p0e()}function Kvt(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return XB(tN)}function Xvt(e,t){if(e==="click")return XB(t)}function Zvt(e,t){if(e==="input"||e==="change")return XB(t)}function Qvt(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var am=typeof Object.is=="function"?Object.is:Qvt;function nN(e,t){if(am(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Bte.call(t,i)||!am(e[i],t[i]))return!1}return!0}function h0e(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function m0e(e,t){var n=h0e(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=h0e(n)}}function _7e(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?_7e(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function S7e(){for(var e=window,t=fD();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=fD(e.document)}return t}function uce(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Jvt(e){var t=S7e(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&_7e(n.ownerDocument.documentElement,n)){if(r!==null&&uce(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=m0e(n,a);var o=m0e(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var e1t=Z1&&"documentMode"in document&&11>=document.documentMode,Ox=null,ine=null,YA=null,ane=!1;function g0e(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ane||Ox==null||Ox!==fD(r)||(r=Ox,"selectionStart"in r&&uce(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),YA&&nN(YA,r)||(YA=r,r=bD(ine,"onSelect"),0<r.length&&(t=new sce("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Ox)))}function wL(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Lx={animationend:wL("Animation","AnimationEnd"),animationiteration:wL("Animation","AnimationIteration"),animationstart:wL("Animation","AnimationStart"),transitionend:wL("Transition","TransitionEnd")},KV={},E7e={};Z1&&(E7e=document.createElement("div").style,"AnimationEvent"in window||(delete Lx.animationend.animation,delete Lx.animationiteration.animation,delete Lx.animationstart.animation),"TransitionEvent"in window||delete Lx.transitionend.transition);function ZB(e){if(KV[e])return KV[e];if(!Lx[e])return e;var t=Lx[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in E7e)return KV[e]=t[n];return e}var C7e=ZB("animationend"),w7e=ZB("animationiteration"),x7e=ZB("animationstart"),T7e=ZB("transitionend"),I7e=new Map,v0e="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 v_(e,t){I7e.set(e,t),dC(t,[e])}for(var XV=0;XV<v0e.length;XV++){var ZV=v0e[XV],t1t=ZV.toLowerCase(),n1t=ZV[0].toUpperCase()+ZV.slice(1);v_(t1t,"on"+n1t)}v_(C7e,"onAnimationEnd");v_(w7e,"onAnimationIteration");v_(x7e,"onAnimationStart");v_("dblclick","onDoubleClick");v_("focusin","onFocus");v_("focusout","onBlur");v_(T7e,"onTransitionEnd");t3("onMouseEnter",["mouseout","mouseover"]);t3("onMouseLeave",["mouseout","mouseover"]);t3("onPointerEnter",["pointerout","pointerover"]);t3("onPointerLeave",["pointerout","pointerover"]);dC("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));dC("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));dC("onBeforeInput",["compositionend","keypress","textInput","paste"]);dC("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));dC("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));dC("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var cA="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(" "),r1t=new Set("cancel close invalid load scroll toggle".split(" ").concat(cA));function y0e(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,tvt(r,t,void 0,e),e.currentTarget=null}function A7e(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==a&&i.isPropagationStopped())break e;y0e(i,s,c),a=l}else for(o=0;o<r.length;o++){if(s=r[o],l=s.instance,c=s.currentTarget,s=s.listener,l!==a&&i.isPropagationStopped())break e;y0e(i,s,c),a=l}}}if(hD)throw e=ene,hD=!1,ene=null,e}function Po(e,t){var n=t[une];n===void 0&&(n=t[une]=new Set);var r=e+"__bubble";n.has(r)||(R7e(t,e,2,!1),n.add(r))}function QV(e,t,n){var r=0;t&&(r|=4),R7e(n,e,r,t)}var xL="_reactListening"+Math.random().toString(36).slice(2);function rN(e){if(!e[xL]){e[xL]=!0,D9e.forEach(function(n){n!=="selectionchange"&&(r1t.has(n)||QV(n,!1,e),QV(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[xL]||(t[xL]=!0,QV("selectionchange",!1,t))}}function R7e(e,t,n,r){switch(f7e(t)){case 1:var i=vvt;break;case 4:i=yvt;break;default:i=ace}n=i.bind(null,t,n,e),i=void 0,!Jte||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function JV(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;o=o.return}for(;s!==null;){if(o=NS(s),o===null)return;if(l=o.tag,l===5||l===6){r=a=o;continue e}s=s.parentNode}}r=r.return}Q9e(function(){var c=a,u=tce(n),d=[];e:{var f=I7e.get(e);if(f!==void 0){var p=sce,h=e;switch(e){case"keypress":if(R9(n)===0)break e;case"keydown":case"keyup":p=Pvt;break;case"focusin":h="focus",p=qV;break;case"focusout":h="blur",p=qV;break;case"beforeblur":case"afterblur":p=qV;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=o0e;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=Svt;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=Dvt;break;case C7e:case w7e:case x7e:p=wvt;break;case T7e:p=Fvt;break;case"scroll":p=bvt;break;case"wheel":p=jvt;break;case"copy":case"cut":case"paste":p=Tvt;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=l0e}var m=(t&4)!==0,g=!m&&e==="scroll",v=m?f!==null?f+"Capture":null:f;m=[];for(var y=c,_;y!==null;){_=y;var S=_.stateNode;if(_.tag===5&&S!==null&&(_=S,v!==null&&(S=ZR(y,v),S!=null&&m.push(iN(y,S,_)))),g)break;y=y.return}0<m.length&&(f=new p(f,h,null,n,u),d.push({event:f,listeners:m}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",f&&n!==Zte&&(h=n.relatedTarget||n.fromElement)&&(NS(h)||h[Q1]))break e;if((p||f)&&(f=u.window===u?u:(f=u.ownerDocument)?f.defaultView||f.parentWindow:window,p?(h=n.relatedTarget||n.toElement,p=c,h=h?NS(h):null,h!==null&&(g=fC(h),h!==g||h.tag!==5&&h.tag!==6)&&(h=null)):(p=null,h=c),p!==h)){if(m=o0e,S="onMouseLeave",v="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(m=l0e,S="onPointerLeave",v="onPointerEnter",y="pointer"),g=p==null?f:Px(p),_=h==null?f:Px(h),f=new m(S,y+"leave",p,n,u),f.target=g,f.relatedTarget=_,S=null,NS(u)===c&&(m=new m(v,y+"enter",h,n,u),m.target=_,m.relatedTarget=g,S=m),g=S,p&&h)t:{for(m=p,v=h,y=0,_=m;_;_=fw(_))y++;for(_=0,S=v;S;S=fw(S))_++;for(;0<y-_;)m=fw(m),y--;for(;0<_-y;)v=fw(v),_--;for(;y--;){if(m===v||v!==null&&m===v.alternate)break t;m=fw(m),v=fw(v)}m=null}else m=null;p!==null&&b0e(d,f,p,m,!1),h!==null&&g!==null&&b0e(d,g,h,m,!0)}}e:{if(f=c?Px(c):window,p=f.nodeName&&f.nodeName.toLowerCase(),p==="select"||p==="input"&&f.type==="file")var C=Wvt;else if(d0e(f))if(y7e)C=Zvt;else{C=Kvt;var w=Yvt}else(p=f.nodeName)&&p.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(C=Xvt);if(C&&(C=C(e,c))){v7e(d,C,n,u);break e}w&&w(e,f,c),e==="focusout"&&(w=f._wrapperState)&&w.controlled&&f.type==="number"&&qte(f,"number",f.value)}switch(w=c?Px(c):window,e){case"focusin":(d0e(w)||w.contentEditable==="true")&&(Ox=w,ine=c,YA=null);break;case"focusout":YA=ine=Ox=null;break;case"mousedown":ane=!0;break;case"contextmenu":case"mouseup":case"dragend":ane=!1,g0e(d,n,u);break;case"selectionchange":if(e1t)break;case"keydown":case"keyup":g0e(d,n,u)}var x;if(cce)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else Nx?m7e(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(h7e&&n.locale!=="ko"&&(Nx||T!=="onCompositionStart"?T==="onCompositionEnd"&&Nx&&(x=p7e()):(ob=u,oce="value"in ob?ob.value:ob.textContent,Nx=!0)),w=bD(c,T),0<w.length&&(T=new s0e(T,e,null,n,u),d.push({event:T,listeners:w}),x?T.data=x:(x=g7e(n),x!==null&&(T.data=x)))),(x=Uvt?Hvt(e,n):Vvt(e,n))&&(c=bD(c,"onBeforeInput"),0<c.length&&(u=new s0e("onBeforeInput","beforeinput",null,n,u),d.push({event:u,listeners:c}),u.data=x))}A7e(d,t)})}function iN(e,t,n){return{instance:e,listener:t,currentTarget:n}}function bD(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=ZR(e,n),a!=null&&r.unshift(iN(e,a,i)),a=ZR(e,t),a!=null&&r.push(iN(e,a,i))),e=e.return}return r}function fw(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function b0e(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(l!==null&&l===r)break;s.tag===5&&c!==null&&(s=c,i?(l=ZR(n,a),l!=null&&o.unshift(iN(n,l,s))):i||(l=ZR(n,a),l!=null&&o.push(iN(n,l,s)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var i1t=/\r\n?/g,a1t=/\u0000|\uFFFD/g;function _0e(e){return(typeof e=="string"?e:""+e).replace(i1t,`
`).replace(a1t,"")}function TL(e,t,n){if(t=_0e(t),_0e(e)!==t&&n)throw Error(In(425))}function _D(){}var one=null,sne=null;function lne(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var cne=typeof setTimeout=="function"?setTimeout:void 0,o1t=typeof clearTimeout=="function"?clearTimeout:void 0,S0e=typeof Promise=="function"?Promise:void 0,s1t=typeof queueMicrotask=="function"?queueMicrotask:typeof S0e<"u"?function(e){return S0e.resolve(null).then(e).catch(l1t)}:cne;function l1t(e){setTimeout(function(){throw e})}function eG(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),eN(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);eN(t)}function Ib(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function E0e(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var X3=Math.random().toString(36).slice(2),Ag="__reactFiber$"+X3,aN="__reactProps$"+X3,Q1="__reactContainer$"+X3,une="__reactEvents$"+X3,c1t="__reactListeners$"+X3,u1t="__reactHandles$"+X3;function NS(e){var t=e[Ag];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Q1]||n[Ag]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=E0e(e);e!==null;){if(n=e[Ag])return n;e=E0e(e)}return t}e=n,n=e.parentNode}return null}function Q6(e){return e=e[Ag]||e[Q1],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Px(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(In(33))}function QB(e){return e[aN]||null}var dne=[],kx=-1;function y_(e){return{current:e}}function zo(e){0>kx||(e.current=dne[kx],dne[kx]=null,kx--)}function xo(e,t){kx++,dne[kx]=e.current,e.current=t}var Yb={},eu=y_(Yb),Sd=y_(!1),SE=Yb;function n3(e,t){var n=e.type.contextTypes;if(!n)return Yb;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ed(e){return e=e.childContextTypes,e!=null}function SD(){zo(Sd),zo(eu)}function C0e(e,t,n){if(eu.current!==Yb)throw Error(In(168));xo(eu,t),xo(Sd,n)}function N7e(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(In(108,Ygt(e)||"Unknown",i));return vs({},n,r)}function ED(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Yb,SE=eu.current,xo(eu,e),xo(Sd,Sd.current),!0}function w0e(e,t,n){var r=e.stateNode;if(!r)throw Error(In(169));n?(e=N7e(e,t,SE),r.__reactInternalMemoizedMergedChildContext=e,zo(Sd),zo(eu),xo(eu,e)):zo(Sd),xo(Sd,n)}var b1=null,JB=!1,tG=!1;function O7e(e){b1===null?b1=[e]:b1.push(e)}function d1t(e){JB=!0,O7e(e)}function b_(){if(!tG&&b1!==null){tG=!0;var e=0,t=Ya;try{var n=b1;for(Ya=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}b1=null,JB=!1}catch(i){throw b1!==null&&(b1=b1.slice(e+1)),n7e(nce,b_),i}finally{Ya=t,tG=!1}}return null}var Mx=[],Dx=0,CD=null,wD=0,pp=[],hp=0,EE=null,I1=1,A1="";function oS(e,t){Mx[Dx++]=wD,Mx[Dx++]=CD,CD=e,wD=t}function L7e(e,t,n){pp[hp++]=I1,pp[hp++]=A1,pp[hp++]=EE,EE=e;var r=I1;e=A1;var i=32-Xh(r)-1;r&=~(1<<i),n+=1;var a=32-Xh(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,I1=1<<32-Xh(t)+i|n<<i|r,A1=a+e}else I1=1<<a|n<<i|r,A1=e}function dce(e){e.return!==null&&(oS(e,1),L7e(e,1,0))}function fce(e){for(;e===CD;)CD=Mx[--Dx],Mx[Dx]=null,wD=Mx[--Dx],Mx[Dx]=null;for(;e===EE;)EE=pp[--hp],pp[hp]=null,A1=pp[--hp],pp[hp]=null,I1=pp[--hp],pp[hp]=null}var Cf=null,_f=null,Jo=!1,Bh=null;function P7e(e,t){var n=bp(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function x0e(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Cf=e,_f=Ib(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Cf=e,_f=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=EE!==null?{id:I1,overflow:A1}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=bp(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Cf=e,_f=null,!0):!1;default:return!1}}function fne(e){return(e.mode&1)!==0&&(e.flags&128)===0}function pne(e){if(Jo){var t=_f;if(t){var n=t;if(!x0e(e,t)){if(fne(e))throw Error(In(418));t=Ib(n.nextSibling);var r=Cf;t&&x0e(e,t)?P7e(r,n):(e.flags=e.flags&-4097|2,Jo=!1,Cf=e)}}else{if(fne(e))throw Error(In(418));e.flags=e.flags&-4097|2,Jo=!1,Cf=e}}}function T0e(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Cf=e}function IL(e){if(e!==Cf)return!1;if(!Jo)return T0e(e),Jo=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!lne(e.type,e.memoizedProps)),t&&(t=_f)){if(fne(e))throw k7e(),Error(In(418));for(;t;)P7e(e,t),t=Ib(t.nextSibling)}if(T0e(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(In(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){_f=Ib(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}_f=null}}else _f=Cf?Ib(e.stateNode.nextSibling):null;return!0}function k7e(){for(var e=_f;e;)e=Ib(e.nextSibling)}function r3(){_f=Cf=null,Jo=!1}function pce(e){Bh===null?Bh=[e]:Bh.push(e)}var f1t=h0.ReactCurrentBatchConfig;function M4(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(In(309));var r=n.stateNode}if(!r)throw Error(In(147,e));var i=r,a=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===a?t.ref:(t=function(o){var s=i.refs;o===null?delete s[a]:s[a]=o},t._stringRef=a,t)}if(typeof e!="string")throw Error(In(284));if(!n._owner)throw Error(In(290,e))}return e}function AL(e,t){throw e=Object.prototype.toString.call(t),Error(In(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function I0e(e){var t=e._init;return t(e._payload)}function M7e(e){function t(v,y){if(e){var _=v.deletions;_===null?(v.deletions=[y],v.flags|=16):_.push(y)}}function n(v,y){if(!e)return null;for(;y!==null;)t(v,y),y=y.sibling;return null}function r(v,y){for(v=new Map;y!==null;)y.key!==null?v.set(y.key,y):v.set(y.index,y),y=y.sibling;return v}function i(v,y){return v=Ob(v,y),v.index=0,v.sibling=null,v}function a(v,y,_){return v.index=_,e?(_=v.alternate,_!==null?(_=_.index,_<y?(v.flags|=2,y):_):(v.flags|=2,y)):(v.flags|=1048576,y)}function o(v){return e&&v.alternate===null&&(v.flags|=2),v}function s(v,y,_,S){return y===null||y.tag!==6?(y=lG(_,v.mode,S),y.return=v,y):(y=i(y,_),y.return=v,y)}function l(v,y,_,S){var C=_.type;return C===Rx?u(v,y,_.props.children,S,_.key):y!==null&&(y.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===zy&&I0e(C)===y.type)?(S=i(y,_.props),S.ref=M4(v,y,_),S.return=v,S):(S=D9(_.type,_.key,_.props,null,v.mode,S),S.ref=M4(v,y,_),S.return=v,S)}function c(v,y,_,S){return y===null||y.tag!==4||y.stateNode.containerInfo!==_.containerInfo||y.stateNode.implementation!==_.implementation?(y=cG(_,v.mode,S),y.return=v,y):(y=i(y,_.children||[]),y.return=v,y)}function u(v,y,_,S,C){return y===null||y.tag!==7?(y=JS(_,v.mode,S,C),y.return=v,y):(y=i(y,_),y.return=v,y)}function d(v,y,_){if(typeof y=="string"&&y!==""||typeof y=="number")return y=lG(""+y,v.mode,_),y.return=v,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case vL:return _=D9(y.type,y.key,y.props,null,v.mode,_),_.ref=M4(v,null,y),_.return=v,_;case Ax:return y=cG(y,v.mode,_),y.return=v,y;case zy:var S=y._init;return d(v,S(y._payload),_)}if(sA(y)||N4(y))return y=JS(y,v.mode,_,null),y.return=v,y;AL(v,y)}return null}function f(v,y,_,S){var C=y!==null?y.key:null;if(typeof _=="string"&&_!==""||typeof _=="number")return C!==null?null:s(v,y,""+_,S);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case vL:return _.key===C?l(v,y,_,S):null;case Ax:return _.key===C?c(v,y,_,S):null;case zy:return C=_._init,f(v,y,C(_._payload),S)}if(sA(_)||N4(_))return C!==null?null:u(v,y,_,S,null);AL(v,_)}return null}function p(v,y,_,S,C){if(typeof S=="string"&&S!==""||typeof S=="number")return v=v.get(_)||null,s(y,v,""+S,C);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case vL:return v=v.get(S.key===null?_:S.key)||null,l(y,v,S,C);case Ax:return v=v.get(S.key===null?_:S.key)||null,c(y,v,S,C);case zy:var w=S._init;return p(v,y,_,w(S._payload),C)}if(sA(S)||N4(S))return v=v.get(_)||null,u(y,v,S,C,null);AL(y,S)}return null}function h(v,y,_,S){for(var C=null,w=null,x=y,T=y=0,A=null;x!==null&&T<_.length;T++){x.index>T?(A=x,x=null):A=x.sibling;var I=f(v,x,_[T],S);if(I===null){x===null&&(x=A);break}e&&x&&I.alternate===null&&t(v,x),y=a(I,y,T),w===null?C=I:w.sibling=I,w=I,x=A}if(T===_.length)return n(v,x),Jo&&oS(v,T),C;if(x===null){for(;T<_.length;T++)x=d(v,_[T],S),x!==null&&(y=a(x,y,T),w===null?C=x:w.sibling=x,w=x);return Jo&&oS(v,T),C}for(x=r(v,x);T<_.length;T++)A=p(x,v,T,_[T],S),A!==null&&(e&&A.alternate!==null&&x.delete(A.key===null?T:A.key),y=a(A,y,T),w===null?C=A:w.sibling=A,w=A);return e&&x.forEach(function(R){return t(v,R)}),Jo&&oS(v,T),C}function m(v,y,_,S){var C=N4(_);if(typeof C!="function")throw Error(In(150));if(_=C.call(_),_==null)throw Error(In(151));for(var w=C=null,x=y,T=y=0,A=null,I=_.next();x!==null&&!I.done;T++,I=_.next()){x.index>T?(A=x,x=null):A=x.sibling;var R=f(v,x,I.value,S);if(R===null){x===null&&(x=A);break}e&&x&&R.alternate===null&&t(v,x),y=a(R,y,T),w===null?C=R:w.sibling=R,w=R,x=A}if(I.done)return n(v,x),Jo&&oS(v,T),C;if(x===null){for(;!I.done;T++,I=_.next())I=d(v,I.value,S),I!==null&&(y=a(I,y,T),w===null?C=I:w.sibling=I,w=I);return Jo&&oS(v,T),C}for(x=r(v,x);!I.done;T++,I=_.next())I=p(x,v,T,I.value,S),I!==null&&(e&&I.alternate!==null&&x.delete(I.key===null?T:I.key),y=a(I,y,T),w===null?C=I:w.sibling=I,w=I);return e&&x.forEach(function(N){return t(v,N)}),Jo&&oS(v,T),C}function g(v,y,_,S){if(typeof _=="object"&&_!==null&&_.type===Rx&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case vL:e:{for(var C=_.key,w=y;w!==null;){if(w.key===C){if(C=_.type,C===Rx){if(w.tag===7){n(v,w.sibling),y=i(w,_.props.children),y.return=v,v=y;break e}}else if(w.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===zy&&I0e(C)===w.type){n(v,w.sibling),y=i(w,_.props),y.ref=M4(v,w,_),y.return=v,v=y;break e}n(v,w);break}else t(v,w);w=w.sibling}_.type===Rx?(y=JS(_.props.children,v.mode,S,_.key),y.return=v,v=y):(S=D9(_.type,_.key,_.props,null,v.mode,S),S.ref=M4(v,y,_),S.return=v,v=S)}return o(v);case Ax:e:{for(w=_.key;y!==null;){if(y.key===w)if(y.tag===4&&y.stateNode.containerInfo===_.containerInfo&&y.stateNode.implementation===_.implementation){n(v,y.sibling),y=i(y,_.children||[]),y.return=v,v=y;break e}else{n(v,y);break}else t(v,y);y=y.sibling}y=cG(_,v.mode,S),y.return=v,v=y}return o(v);case zy:return w=_._init,g(v,y,w(_._payload),S)}if(sA(_))return h(v,y,_,S);if(N4(_))return m(v,y,_,S);AL(v,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,y!==null&&y.tag===6?(n(v,y.sibling),y=i(y,_),y.return=v,v=y):(n(v,y),y=lG(_,v.mode,S),y.return=v,v=y),o(v)):n(v,y)}return g}var i3=M7e(!0),D7e=M7e(!1),xD=y_(null),TD=null,$x=null,hce=null;function mce(){hce=$x=TD=null}function gce(e){var t=xD.current;zo(xD),e._currentValue=t}function hne(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function g5(e,t){TD=e,hce=$x=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(gd=!0),e.firstContext=null)}function Ap(e){var t=e._currentValue;if(hce!==e)if(e={context:e,memoizedValue:t,next:null},$x===null){if(TD===null)throw Error(In(308));$x=e,TD.dependencies={lanes:0,firstContext:e}}else $x=$x.next=e;return t}var OS=null;function vce(e){OS===null?OS=[e]:OS.push(e)}function $7e(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,vce(t)):(n.next=i.next,i.next=n),t.interleaved=n,J1(e,r)}function J1(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Uy=!1;function yce(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function F7e(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function z1(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ab(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,pa&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,J1(e,n)}return i=r.interleaved,i===null?(t.next=t,vce(r)):(t.next=i.next,i.next=t),r.interleaved=t,J1(e,n)}function N9(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,rce(e,n)}}function A0e(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ID(e,t,n,r){var i=e.updateQueue;Uy=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,c=l.next;l.next=null,o===null?a=c:o.next=c,o=l;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(a!==null){var d=i.baseState;o=0,u=c=l=null,s=a;do{var f=s.lane,p=s.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(f=t,p=n,m.tag){case 1:if(h=m.payload,typeof h=="function"){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=h.flags&-65537|128;case 0:if(h=m.payload,f=typeof h=="function"?h.call(p,d,f):h,f==null)break e;d=vs({},d,f);break e;case 2:Uy=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(c=u=p,l=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;f=s,s=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(u===null&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);wE|=o,e.lanes=o,e.memoizedState=d}}function R0e(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(In(191,i));i.call(r)}}}var J6={},zg=y_(J6),oN=y_(J6),sN=y_(J6);function LS(e){if(e===J6)throw Error(In(174));return e}function bce(e,t){switch(xo(sN,t),xo(oN,e),xo(zg,J6),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Yte(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Yte(t,e)}zo(zg),xo(zg,t)}function a3(){zo(zg),zo(oN),zo(sN)}function B7e(e){LS(sN.current);var t=LS(zg.current),n=Yte(t,e.type);t!==n&&(xo(oN,e),xo(zg,n))}function _ce(e){oN.current===e&&(zo(zg),zo(oN))}var fs=y_(0);function AD(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var nG=[];function Sce(){for(var e=0;e<nG.length;e++)nG[e]._workInProgressVersionPrimary=null;nG.length=0}var O9=h0.ReactCurrentDispatcher,rG=h0.ReactCurrentBatchConfig,CE=0,ms=null,xl=null,Gl=null,RD=!1,KA=!1,lN=0,p1t=0;function Pc(){throw Error(In(321))}function Ece(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!am(e[n],t[n]))return!1;return!0}function Cce(e,t,n,r,i,a){if(CE=a,ms=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,O9.current=e===null||e.memoizedState===null?v1t:y1t,e=n(r,i),KA){a=0;do{if(KA=!1,lN=0,25<=a)throw Error(In(301));a+=1,Gl=xl=null,t.updateQueue=null,O9.current=b1t,e=n(r,i)}while(KA)}if(O9.current=ND,t=xl!==null&&xl.next!==null,CE=0,Gl=xl=ms=null,RD=!1,t)throw Error(In(300));return e}function wce(){var e=lN!==0;return lN=0,e}function gg(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Gl===null?ms.memoizedState=Gl=e:Gl=Gl.next=e,Gl}function Rp(){if(xl===null){var e=ms.alternate;e=e!==null?e.memoizedState:null}else e=xl.next;var t=Gl===null?ms.memoizedState:Gl.next;if(t!==null)Gl=t,xl=e;else{if(e===null)throw Error(In(310));xl=e,e={memoizedState:xl.memoizedState,baseState:xl.baseState,baseQueue:xl.baseQueue,queue:xl.queue,next:null},Gl===null?ms.memoizedState=Gl=e:Gl=Gl.next=e}return Gl}function cN(e,t){return typeof t=="function"?t(e):t}function iG(e){var t=Rp(),n=t.queue;if(n===null)throw Error(In(311));n.lastRenderedReducer=e;var r=xl,i=r.baseQueue,a=n.pending;if(a!==null){if(i!==null){var o=i.next;i.next=a.next,a.next=o}r.baseQueue=i=a,n.pending=null}if(i!==null){a=i.next,r=r.baseState;var s=o=null,l=null,c=a;do{var u=c.lane;if((CE&u)===u)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(s=l=d,o=r):l=l.next=d,ms.lanes|=u,wE|=u}c=c.next}while(c!==null&&c!==a);l===null?o=r:l.next=s,am(r,t.memoizedState)||(gd=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do a=i.lane,ms.lanes|=a,wE|=a,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function aG(e){var t=Rp(),n=t.queue;if(n===null)throw Error(In(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do a=e(a,o.action),o=o.next;while(o!==i);am(a,t.memoizedState)||(gd=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function j7e(){}function z7e(e,t){var n=ms,r=Rp(),i=t(),a=!am(r.memoizedState,i);if(a&&(r.memoizedState=i,gd=!0),r=r.queue,xce(V7e.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||Gl!==null&&Gl.memoizedState.tag&1){if(n.flags|=2048,uN(9,H7e.bind(null,n,r,i,t),void 0,null),Xl===null)throw Error(In(349));CE&30||U7e(n,t,i)}return i}function U7e(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ms.updateQueue,t===null?(t={lastEffect:null,stores:null},ms.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function H7e(e,t,n,r){t.value=n,t.getSnapshot=r,G7e(t)&&q7e(e)}function V7e(e,t,n){return n(function(){G7e(t)&&q7e(e)})}function G7e(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!am(e,n)}catch{return!0}}function q7e(e){var t=J1(e,1);t!==null&&Zh(t,e,1,-1)}function N0e(e){var t=gg();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:cN,lastRenderedState:e},t.queue=e,e=e.dispatch=g1t.bind(null,ms,e),[t.memoizedState,e]}function uN(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ms.updateQueue,t===null?(t={lastEffect:null,stores:null},ms.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function W7e(){return Rp().memoizedState}function L9(e,t,n,r){var i=gg();ms.flags|=e,i.memoizedState=uN(1|t,n,void 0,r===void 0?null:r)}function ej(e,t,n,r){var i=Rp();r=r===void 0?null:r;var a=void 0;if(xl!==null){var o=xl.memoizedState;if(a=o.destroy,r!==null&&Ece(r,o.deps)){i.memoizedState=uN(t,n,a,r);return}}ms.flags|=e,i.memoizedState=uN(1|t,n,a,r)}function O0e(e,t){return L9(8390656,8,e,t)}function xce(e,t){return ej(2048,8,e,t)}function Y7e(e,t){return ej(4,2,e,t)}function K7e(e,t){return ej(4,4,e,t)}function X7e(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Z7e(e,t,n){return n=n!=null?n.concat([e]):null,ej(4,4,X7e.bind(null,t,e),n)}function Tce(){}function Q7e(e,t){var n=Rp();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ece(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function J7e(e,t){var n=Rp();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ece(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function eMe(e,t,n){return CE&21?(am(n,t)||(n=a7e(),ms.lanes|=n,wE|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,gd=!0),e.memoizedState=n)}function h1t(e,t){var n=Ya;Ya=n!==0&&4>n?n:4,e(!0);var r=rG.transition;rG.transition={};try{e(!1),t()}finally{Ya=n,rG.transition=r}}function tMe(){return Rp().memoizedState}function m1t(e,t,n){var r=Nb(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},nMe(e))rMe(t,n);else if(n=$7e(e,t,n,r),n!==null){var i=Au();Zh(n,e,r,i),iMe(n,t,r)}}function g1t(e,t,n){var r=Nb(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(nMe(e))rMe(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,am(s,o)){var l=t.interleaved;l===null?(i.next=i,vce(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=$7e(e,t,i,r),n!==null&&(i=Au(),Zh(n,e,r,i),iMe(n,t,r))}}function nMe(e){var t=e.alternate;return e===ms||t!==null&&t===ms}function rMe(e,t){KA=RD=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function iMe(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,rce(e,n)}}var ND={readContext:Ap,useCallback:Pc,useContext:Pc,useEffect:Pc,useImperativeHandle:Pc,useInsertionEffect:Pc,useLayoutEffect:Pc,useMemo:Pc,useReducer:Pc,useRef:Pc,useState:Pc,useDebugValue:Pc,useDeferredValue:Pc,useTransition:Pc,useMutableSource:Pc,useSyncExternalStore:Pc,useId:Pc,unstable_isNewReconciler:!1},v1t={readContext:Ap,useCallback:function(e,t){return gg().memoizedState=[e,t===void 0?null:t],e},useContext:Ap,useEffect:O0e,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,L9(4194308,4,X7e.bind(null,t,e),n)},useLayoutEffect:function(e,t){return L9(4194308,4,e,t)},useInsertionEffect:function(e,t){return L9(4,2,e,t)},useMemo:function(e,t){var n=gg();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=gg();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=m1t.bind(null,ms,e),[r.memoizedState,e]},useRef:function(e){var t=gg();return e={current:e},t.memoizedState=e},useState:N0e,useDebugValue:Tce,useDeferredValue:function(e){return gg().memoizedState=e},useTransition:function(){var e=N0e(!1),t=e[0];return e=h1t.bind(null,e[1]),gg().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ms,i=gg();if(Jo){if(n===void 0)throw Error(In(407));n=n()}else{if(n=t(),Xl===null)throw Error(In(349));CE&30||U7e(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,O0e(V7e.bind(null,r,a,e),[e]),r.flags|=2048,uN(9,H7e.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=gg(),t=Xl.identifierPrefix;if(Jo){var n=A1,r=I1;n=(r&~(1<<32-Xh(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=lN++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=p1t++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},y1t={readContext:Ap,useCallback:Q7e,useContext:Ap,useEffect:xce,useImperativeHandle:Z7e,useInsertionEffect:Y7e,useLayoutEffect:K7e,useMemo:J7e,useReducer:iG,useRef:W7e,useState:function(){return iG(cN)},useDebugValue:Tce,useDeferredValue:function(e){var t=Rp();return eMe(t,xl.memoizedState,e)},useTransition:function(){var e=iG(cN)[0],t=Rp().memoizedState;return[e,t]},useMutableSource:j7e,useSyncExternalStore:z7e,useId:tMe,unstable_isNewReconciler:!1},b1t={readContext:Ap,useCallback:Q7e,useContext:Ap,useEffect:xce,useImperativeHandle:Z7e,useInsertionEffect:Y7e,useLayoutEffect:K7e,useMemo:J7e,useReducer:aG,useRef:W7e,useState:function(){return aG(cN)},useDebugValue:Tce,useDeferredValue:function(e){var t=Rp();return xl===null?t.memoizedState=e:eMe(t,xl.memoizedState,e)},useTransition:function(){var e=aG(cN)[0],t=Rp().memoizedState;return[e,t]},useMutableSource:j7e,useSyncExternalStore:z7e,useId:tMe,unstable_isNewReconciler:!1};function Lh(e,t){if(e&&e.defaultProps){t=vs({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function mne(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:vs({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var tj={isMounted:function(e){return(e=e._reactInternals)?fC(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Au(),i=Nb(e),a=z1(r,i);a.payload=t,n!=null&&(a.callback=n),t=Ab(e,a,i),t!==null&&(Zh(t,e,i,r),N9(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Au(),i=Nb(e),a=z1(r,i);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=Ab(e,a,i),t!==null&&(Zh(t,e,i,r),N9(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Au(),r=Nb(e),i=z1(n,r);i.tag=2,t!=null&&(i.callback=t),t=Ab(e,i,r),t!==null&&(Zh(t,e,r,n),N9(t,e,r))}};function L0e(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!nN(n,r)||!nN(i,a):!0}function aMe(e,t,n){var r=!1,i=Yb,a=t.contextType;return typeof a=="object"&&a!==null?a=Ap(a):(i=Ed(t)?SE:eu.current,r=t.contextTypes,a=(r=r!=null)?n3(e,i):Yb),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=tj,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function P0e(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&tj.enqueueReplaceState(t,t.state,null)}function gne(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},yce(e);var a=t.contextType;typeof a=="object"&&a!==null?i.context=Ap(a):(a=Ed(t)?SE:eu.current,i.context=n3(e,a)),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(mne(e,t,a,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&tj.enqueueReplaceState(i,i.state,null),ID(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function o3(e,t){try{var n="",r=t;do n+=Wgt(r),r=r.return;while(r);var i=n}catch(a){i=`
Error generating stack: `+a.message+`
`+a.stack}return{value:e,source:t,stack:i,digest:null}}function oG(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function vne(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var _1t=typeof WeakMap=="function"?WeakMap:Map;function oMe(e,t,n){n=z1(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){LD||(LD=!0,Ine=r),vne(e,t)},n}function sMe(e,t,n){n=z1(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){vne(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(n.callback=function(){vne(e,t),typeof r!="function"&&(Rb===null?Rb=new Set([this]):Rb.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function k0e(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new _1t;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=k1t.bind(null,e,t,n),t.then(e,e))}function M0e(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function D0e(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=z1(-1,1),t.tag=2,Ab(n,t,1))),n.lanes|=1),e)}var S1t=h0.ReactCurrentOwner,gd=!1;function vu(e,t,n,r){t.child=e===null?D7e(t,null,n,r):i3(t,e.child,n,r)}function $0e(e,t,n,r,i){n=n.render;var a=t.ref;return g5(t,i),r=Cce(e,t,n,r,a,i),n=wce(),e!==null&&!gd?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,e0(e,t,i)):(Jo&&n&&dce(t),t.flags|=1,vu(e,t,r,i),t.child)}function F0e(e,t,n,r,i){if(e===null){var a=n.type;return typeof a=="function"&&!kce(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,lMe(e,t,a,r,i)):(e=D9(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!(e.lanes&i)){var o=a.memoizedProps;if(n=n.compare,n=n!==null?n:nN,n(o,r)&&e.ref===t.ref)return e0(e,t,i)}return t.flags|=1,e=Ob(a,r),e.ref=t.ref,e.return=t,t.child=e}function lMe(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(nN(a,r)&&e.ref===t.ref)if(gd=!1,t.pendingProps=r=a,(e.lanes&i)!==0)e.flags&131072&&(gd=!0);else return t.lanes=e.lanes,e0(e,t,i)}return yne(e,t,n,r,i)}function cMe(e,t,n){var r=t.pendingProps,i=r.children,a=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},xo(Bx,pf),pf|=n;else{if(!(n&1073741824))return e=a!==null?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,xo(Bx,pf),pf|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a!==null?a.baseLanes:n,xo(Bx,pf),pf|=r}else a!==null?(r=a.baseLanes|n,t.memoizedState=null):r=n,xo(Bx,pf),pf|=r;return vu(e,t,i,n),t.child}function uMe(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function yne(e,t,n,r,i){var a=Ed(n)?SE:eu.current;return a=n3(t,a),g5(t,i),n=Cce(e,t,n,r,a,i),r=wce(),e!==null&&!gd?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,e0(e,t,i)):(Jo&&r&&dce(t),t.flags|=1,vu(e,t,n,i),t.child)}function B0e(e,t,n,r,i){if(Ed(n)){var a=!0;ED(t)}else a=!1;if(g5(t,i),t.stateNode===null)P9(e,t),aMe(t,n,r),gne(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var l=o.context,c=n.contextType;typeof c=="object"&&c!==null?c=Ap(c):(c=Ed(n)?SE:eu.current,c=n3(t,c));var u=n.getDerivedStateFromProps,d=typeof u=="function"||typeof o.getSnapshotBeforeUpdate=="function";d||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==r||l!==c)&&P0e(t,o,r,c),Uy=!1;var f=t.memoizedState;o.state=f,ID(t,r,o,i),l=t.memoizedState,s!==r||f!==l||Sd.current||Uy?(typeof u=="function"&&(mne(t,n,u,r),l=t.memoizedState),(s=Uy||L0e(t,n,s,r,f,l,c))?(d||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=c,r=s):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,F7e(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:Lh(t.type,s),o.props=c,d=t.pendingProps,f=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=Ap(l):(l=Ed(n)?SE:eu.current,l=n3(t,l));var p=n.getDerivedStateFromProps;(u=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==d||f!==l)&&P0e(t,o,r,l),Uy=!1,f=t.memoizedState,o.state=f,ID(t,r,o,i);var h=t.memoizedState;s!==d||f!==h||Sd.current||Uy?(typeof p=="function"&&(mne(t,n,p,r),h=t.memoizedState),(c=Uy||L0e(t,n,c,r,f,h,l)||!1)?(u||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,h,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,h,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),o.props=r,o.state=h,o.context=l,r=c):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return bne(e,t,n,r,a,i)}function bne(e,t,n,r,i,a){uMe(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&w0e(t,n,!1),e0(e,t,a);r=t.stateNode,S1t.current=t;var s=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=i3(t,e.child,null,a),t.child=i3(t,null,s,a)):vu(e,t,s,a),t.memoizedState=r.state,i&&w0e(t,n,!0),t.child}function dMe(e){var t=e.stateNode;t.pendingContext?C0e(e,t.pendingContext,t.pendingContext!==t.context):t.context&&C0e(e,t.context,!1),bce(e,t.containerInfo)}function j0e(e,t,n,r,i){return r3(),pce(i),t.flags|=256,vu(e,t,n,r),t.child}var _ne={dehydrated:null,treeContext:null,retryLane:0};function Sne(e){return{baseLanes:e,cachePool:null,transitions:null}}function fMe(e,t,n){var r=t.pendingProps,i=fs.current,a=!1,o=(t.flags&128)!==0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),xo(fs,i&1),e===null)return pne(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,a?(r=t.mode,a=t.child,o={mode:"hidden",children:o},!(r&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=ij(o,r,0,null),e=JS(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Sne(n),t.memoizedState=_ne,e):Ice(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return E1t(e,t,o,r,s,i,n);if(a){a=r.fallback,o=t.mode,i=e.child,s=i.sibling;var l={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Ob(i,l),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?a=Ob(s,a):(a=JS(a,o,n,null),a.flags|=2),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,o=e.child.memoizedState,o=o===null?Sne(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~n,t.memoizedState=_ne,r}return a=e.child,e=a.sibling,r=Ob(a,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Ice(e,t){return t=ij({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function RL(e,t,n,r){return r!==null&&pce(r),i3(t,e.child,null,n),e=Ice(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function E1t(e,t,n,r,i,a,o){if(n)return t.flags&256?(t.flags&=-257,r=oG(Error(In(422))),RL(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=ij({mode:"visible",children:r.children},i,0,null),a=JS(a,i,o,null),a.flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,t.mode&1&&i3(t,e.child,null,o),t.child.memoizedState=Sne(o),t.memoizedState=_ne,a);if(!(t.mode&1))return RL(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,a=Error(In(419)),r=oG(a,r,void 0),RL(e,t,o,r)}if(s=(o&e.childLanes)!==0,gd||s){if(r=Xl,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==a.retryLane&&(a.retryLane=i,J1(e,i),Zh(r,e,i,-1))}return Pce(),r=oG(Error(In(421))),RL(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=M1t.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,_f=Ib(i.nextSibling),Cf=t,Jo=!0,Bh=null,e!==null&&(pp[hp++]=I1,pp[hp++]=A1,pp[hp++]=EE,I1=e.id,A1=e.overflow,EE=t),t=Ice(t,r.children),t.flags|=4096,t)}function z0e(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),hne(e.return,t,n)}function sG(e,t,n,r,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function pMe(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(vu(e,t,r.children,n),r=fs.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&z0e(e,n,t);else if(e.tag===19)z0e(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(xo(fs,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&AD(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),sG(t,!1,i,n,a);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&AD(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}sG(t,!0,n,null,a);break;case"together":sG(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function P9(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function e0(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),wE|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(In(153));if(t.child!==null){for(e=t.child,n=Ob(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ob(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function C1t(e,t,n){switch(t.tag){case 3:dMe(t),r3();break;case 5:B7e(t);break;case 1:Ed(t.type)&&ED(t);break;case 4:bce(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;xo(xD,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(xo(fs,fs.current&1),t.flags|=128,null):n&t.child.childLanes?fMe(e,t,n):(xo(fs,fs.current&1),e=e0(e,t,n),e!==null?e.sibling:null);xo(fs,fs.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return pMe(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),xo(fs,fs.current),r)break;return null;case 22:case 23:return t.lanes=0,cMe(e,t,n)}return e0(e,t,n)}var hMe,Ene,mMe,gMe;hMe=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Ene=function(){};mMe=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,LS(zg.current);var a=null;switch(n){case"input":i=Vte(e,i),r=Vte(e,r),a=[];break;case"select":i=vs({},i,{value:void 0}),r=vs({},r,{value:void 0}),a=[];break;case"textarea":i=Wte(e,i),r=Wte(e,r),a=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=_D)}Kte(n,r);var o;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var s=i[c];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(KR.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var l=r[c];if(s=i?.[c],r.hasOwnProperty(c)&&l!==s&&(l!=null||s!=null))if(c==="style")if(s){for(o in s)!s.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&s[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(a||(a=[]),a.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(a=a||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(a=a||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(KR.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&Po("scroll",e),a||s===l||(a=[])):(a=a||[]).push(c,l))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}};gMe=function(e,t,n,r){n!==r&&(t.flags|=4)};function D4(e,t){if(!Jo)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function kc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function w1t(e,t,n){var r=t.pendingProps;switch(fce(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return kc(t),null;case 1:return Ed(t.type)&&SD(),kc(t),null;case 3:return r=t.stateNode,a3(),zo(Sd),zo(eu),Sce(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(IL(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Bh!==null&&(Nne(Bh),Bh=null))),Ene(e,t),kc(t),null;case 5:_ce(t);var i=LS(sN.current);if(n=t.type,e!==null&&t.stateNode!=null)mMe(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(In(166));return kc(t),null}if(e=LS(zg.current),IL(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[Ag]=t,r[aN]=a,e=(t.mode&1)!==0,n){case"dialog":Po("cancel",r),Po("close",r);break;case"iframe":case"object":case"embed":Po("load",r);break;case"video":case"audio":for(i=0;i<cA.length;i++)Po(cA[i],r);break;case"source":Po("error",r);break;case"img":case"image":case"link":Po("error",r),Po("load",r);break;case"details":Po("toggle",r);break;case"input":X1e(r,a),Po("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Po("invalid",r);break;case"textarea":Q1e(r,a),Po("invalid",r)}Kte(n,a),i=null;for(var o in a)if(a.hasOwnProperty(o)){var s=a[o];o==="children"?typeof s=="string"?r.textContent!==s&&(a.suppressHydrationWarning!==!0&&TL(r.textContent,s,e),i=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(a.suppressHydrationWarning!==!0&&TL(r.textContent,s,e),i=["children",""+s]):KR.hasOwnProperty(o)&&s!=null&&o==="onScroll"&&Po("scroll",r)}switch(n){case"input":yL(r),Z1e(r,a,!0);break;case"textarea":yL(r),J1e(r);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(r.onclick=_D)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=V9e(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Ag]=t,e[aN]=r,hMe(e,t,!1,!1),t.stateNode=e;e:{switch(o=Xte(n,r),n){case"dialog":Po("cancel",e),Po("close",e),i=r;break;case"iframe":case"object":case"embed":Po("load",e),i=r;break;case"video":case"audio":for(i=0;i<cA.length;i++)Po(cA[i],e);i=r;break;case"source":Po("error",e),i=r;break;case"img":case"image":case"link":Po("error",e),Po("load",e),i=r;break;case"details":Po("toggle",e),i=r;break;case"input":X1e(e,r),i=Vte(e,r),Po("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=vs({},r,{value:void 0}),Po("invalid",e);break;case"textarea":Q1e(e,r),i=Wte(e,r),Po("invalid",e);break;default:i=r}Kte(n,i),s=i;for(a in s)if(s.hasOwnProperty(a)){var l=s[a];a==="style"?W9e(e,l):a==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&G9e(e,l)):a==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&XR(e,l):typeof l=="number"&&XR(e,""+l):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(KR.hasOwnProperty(a)?l!=null&&a==="onScroll"&&Po("scroll",e):l!=null&&Zle(e,a,l,o))}switch(n){case"input":yL(e),Z1e(e,r,!1);break;case"textarea":yL(e),J1e(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Wb(r.value));break;case"select":e.multiple=!!r.multiple,a=r.value,a!=null?f5(e,!!r.multiple,a,!1):r.defaultValue!=null&&f5(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=_D)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return kc(t),null;case 6:if(e&&t.stateNode!=null)gMe(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(In(166));if(n=LS(sN.current),LS(zg.current),IL(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ag]=t,(a=r.nodeValue!==n)&&(e=Cf,e!==null))switch(e.tag){case 3:TL(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&TL(r.nodeValue,n,(e.mode&1)!==0)}a&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ag]=t,t.stateNode=r}return kc(t),null;case 13:if(zo(fs),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Jo&&_f!==null&&t.mode&1&&!(t.flags&128))k7e(),r3(),t.flags|=98560,a=!1;else if(a=IL(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(In(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(In(317));a[Ag]=t}else r3(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;kc(t),a=!1}else Bh!==null&&(Nne(Bh),Bh=null),a=!0;if(!a)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||fs.current&1?Al===0&&(Al=3):Pce())),t.updateQueue!==null&&(t.flags|=4),kc(t),null);case 4:return a3(),Ene(e,t),e===null&&rN(t.stateNode.containerInfo),kc(t),null;case 10:return gce(t.type._context),kc(t),null;case 17:return Ed(t.type)&&SD(),kc(t),null;case 19:if(zo(fs),a=t.memoizedState,a===null)return kc(t),null;if(r=(t.flags&128)!==0,o=a.rendering,o===null)if(r)D4(a,!1);else{if(Al!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=AD(e),o!==null){for(t.flags|=128,D4(a,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)a=n,e=r,a.flags&=14680066,o=a.alternate,o===null?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=o.childLanes,a.lanes=o.lanes,a.child=o.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=o.memoizedProps,a.memoizedState=o.memoizedState,a.updateQueue=o.updateQueue,a.type=o.type,e=o.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return xo(fs,fs.current&1|2),t.child}e=e.sibling}a.tail!==null&&Gs()>s3&&(t.flags|=128,r=!0,D4(a,!1),t.lanes=4194304)}else{if(!r)if(e=AD(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),D4(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!Jo)return kc(t),null}else 2*Gs()-a.renderingStartTime>s3&&n!==1073741824&&(t.flags|=128,r=!0,D4(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(n=a.last,n!==null?n.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Gs(),t.sibling=null,n=fs.current,xo(fs,r?n&1|2:n&1),t):(kc(t),null);case 22:case 23:return Lce(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?pf&1073741824&&(kc(t),t.subtreeFlags&6&&(t.flags|=8192)):kc(t),null;case 24:return null;case 25:return null}throw Error(In(156,t.tag))}function x1t(e,t){switch(fce(t),t.tag){case 1:return Ed(t.type)&&SD(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return a3(),zo(Sd),zo(eu),Sce(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return _ce(t),null;case 13:if(zo(fs),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(In(340));r3()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return zo(fs),null;case 4:return a3(),null;case 10:return gce(t.type._context),null;case 22:case 23:return Lce(),null;case 24:return null;default:return null}}var NL=!1,Kc=!1,T1t=typeof WeakSet=="function"?WeakSet:Set,or=null;function Fx(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){As(e,t,r)}else n.current=null}function Cne(e,t,n){try{n()}catch(r){As(e,t,r)}}var U0e=!1;function I1t(e,t){if(one=vD,e=S7e(),uce(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var o=0,s=-1,l=-1,c=0,u=0,d=e,f=null;t:for(;;){for(var p;d!==n||i!==0&&d.nodeType!==3||(s=o+i),d!==a||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break t;if(f===n&&++c===i&&(s=o),f===a&&++u===r&&(l=o),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(sne={focusedElem:e,selectionRange:n},vD=!1,or=t;or!==null;)if(t=or,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,or=e;else for(;or!==null;){t=or;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var m=h.memoizedProps,g=h.memoizedState,v=t.stateNode,y=v.getSnapshotBeforeUpdate(t.elementType===t.type?m:Lh(t.type,m),g);v.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var _=t.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(In(163))}}catch(S){As(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,or=e;break}or=t.return}return h=U0e,U0e=!1,h}function XA(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&Cne(t,n,a)}i=i.next}while(i!==r)}}function nj(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function wne(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function vMe(e){var t=e.alternate;t!==null&&(e.alternate=null,vMe(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ag],delete t[aN],delete t[une],delete t[c1t],delete t[u1t])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function yMe(e){return e.tag===5||e.tag===3||e.tag===4}function H0e(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||yMe(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function xne(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=_D));else if(r!==4&&(e=e.child,e!==null))for(xne(e,t,n),e=e.sibling;e!==null;)xne(e,t,n),e=e.sibling}function Tne(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Tne(e,t,n),e=e.sibling;e!==null;)Tne(e,t,n),e=e.sibling}var cc=null,kh=!1;function ry(e,t,n){for(n=n.child;n!==null;)bMe(e,t,n),n=n.sibling}function bMe(e,t,n){if(jg&&typeof jg.onCommitFiberUnmount=="function")try{jg.onCommitFiberUnmount(YB,n)}catch{}switch(n.tag){case 5:Kc||Fx(n,t);case 6:var r=cc,i=kh;cc=null,ry(e,t,n),cc=r,kh=i,cc!==null&&(kh?(e=cc,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):cc.removeChild(n.stateNode));break;case 18:cc!==null&&(kh?(e=cc,n=n.stateNode,e.nodeType===8?eG(e.parentNode,n):e.nodeType===1&&eG(e,n),eN(e)):eG(cc,n.stateNode));break;case 4:r=cc,i=kh,cc=n.stateNode.containerInfo,kh=!0,ry(e,t,n),cc=r,kh=i;break;case 0:case 11:case 14:case 15:if(!Kc&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&Cne(n,t,o),i=i.next}while(i!==r)}ry(e,t,n);break;case 1:if(!Kc&&(Fx(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){As(n,t,s)}ry(e,t,n);break;case 21:ry(e,t,n);break;case 22:n.mode&1?(Kc=(r=Kc)||n.memoizedState!==null,ry(e,t,n),Kc=r):ry(e,t,n);break;default:ry(e,t,n)}}function V0e(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new T1t),t.forEach(function(r){var i=D1t.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function ph(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var a=e,o=t,s=o;e:for(;s!==null;){switch(s.tag){case 5:cc=s.stateNode,kh=!1;break e;case 3:cc=s.stateNode.containerInfo,kh=!0;break e;case 4:cc=s.stateNode.containerInfo,kh=!0;break e}s=s.return}if(cc===null)throw Error(In(160));bMe(a,o,i),cc=null,kh=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(c){As(i,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)_Me(t,e),t=t.sibling}function _Me(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ph(t,e),ng(e),r&4){try{XA(3,e,e.return),nj(3,e)}catch(m){As(e,e.return,m)}try{XA(5,e,e.return)}catch(m){As(e,e.return,m)}}break;case 1:ph(t,e),ng(e),r&512&&n!==null&&Fx(n,n.return);break;case 5:if(ph(t,e),ng(e),r&512&&n!==null&&Fx(n,n.return),e.flags&32){var i=e.stateNode;try{XR(i,"")}catch(m){As(e,e.return,m)}}if(r&4&&(i=e.stateNode,i!=null)){var a=e.memoizedProps,o=n!==null?n.memoizedProps:a,s=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{s==="input"&&a.type==="radio"&&a.name!=null&&U9e(i,a),Xte(s,o);var c=Xte(s,a);for(o=0;o<l.length;o+=2){var u=l[o],d=l[o+1];u==="style"?W9e(i,d):u==="dangerouslySetInnerHTML"?G9e(i,d):u==="children"?XR(i,d):Zle(i,u,d,c)}switch(s){case"input":Gte(i,a);break;case"textarea":H9e(i,a);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var p=a.value;p!=null?f5(i,!!a.multiple,p,!1):f!==!!a.multiple&&(a.defaultValue!=null?f5(i,!!a.multiple,a.defaultValue,!0):f5(i,!!a.multiple,a.multiple?[]:"",!1))}i[aN]=a}catch(m){As(e,e.return,m)}}break;case 6:if(ph(t,e),ng(e),r&4){if(e.stateNode===null)throw Error(In(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(m){As(e,e.return,m)}}break;case 3:if(ph(t,e),ng(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{eN(t.containerInfo)}catch(m){As(e,e.return,m)}break;case 4:ph(t,e),ng(e);break;case 13:ph(t,e),ng(e),i=e.child,i.flags&8192&&(a=i.memoizedState!==null,i.stateNode.isHidden=a,!a||i.alternate!==null&&i.alternate.memoizedState!==null||(Nce=Gs())),r&4&&V0e(e);break;case 22:if(u=n!==null&&n.memoizedState!==null,e.mode&1?(Kc=(c=Kc)||u,ph(t,e),Kc=c):ph(t,e),ng(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!u&&e.mode&1)for(or=e,u=e.child;u!==null;){for(d=or=u;or!==null;){switch(f=or,p=f.child,f.tag){case 0:case 11:case 14:case 15:XA(4,f,f.return);break;case 1:Fx(f,f.return);var h=f.stateNode;if(typeof h.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(m){As(r,n,m)}}break;case 5:Fx(f,f.return);break;case 22:if(f.memoizedState!==null){q0e(d);continue}}p!==null?(p.return=f,or=p):q0e(d)}u=u.sibling}e:for(u=null,d=e;;){if(d.tag===5){if(u===null){u=d;try{i=d.stateNode,c?(a=i.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"):(s=d.stateNode,l=d.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=q9e("display",o))}catch(m){As(e,e.return,m)}}}else if(d.tag===6){if(u===null)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(m){As(e,e.return,m)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:ph(t,e),ng(e),r&4&&V0e(e);break;case 21:break;default:ph(t,e),ng(e)}}function ng(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(yMe(n)){var r=n;break e}n=n.return}throw Error(In(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(XR(i,""),r.flags&=-33);var a=H0e(e);Tne(e,a,i);break;case 3:case 4:var o=r.stateNode.containerInfo,s=H0e(e);xne(e,s,o);break;default:throw Error(In(161))}}catch(l){As(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function A1t(e,t,n){or=e,SMe(e)}function SMe(e,t,n){for(var r=(e.mode&1)!==0;or!==null;){var i=or,a=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||NL;if(!o){var s=i.alternate,l=s!==null&&s.memoizedState!==null||Kc;s=NL;var c=Kc;if(NL=o,(Kc=l)&&!c)for(or=i;or!==null;)o=or,l=o.child,o.tag===22&&o.memoizedState!==null?W0e(i):l!==null?(l.return=o,or=l):W0e(i);for(;a!==null;)or=a,SMe(a),a=a.sibling;or=i,NL=s,Kc=c}G0e(e)}else i.subtreeFlags&8772&&a!==null?(a.return=i,or=a):G0e(e)}}function G0e(e){for(;or!==null;){var t=or;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Kc||nj(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Kc)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Lh(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;a!==null&&R0e(t,a,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}R0e(t,o,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var u=c.memoizedState;if(u!==null){var d=u.dehydrated;d!==null&&eN(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(In(163))}Kc||t.flags&512&&wne(t)}catch(f){As(t,t.return,f)}}if(t===e){or=null;break}if(n=t.sibling,n!==null){n.return=t.return,or=n;break}or=t.return}}function q0e(e){for(;or!==null;){var t=or;if(t===e){or=null;break}var n=t.sibling;if(n!==null){n.return=t.return,or=n;break}or=t.return}}function W0e(e){for(;or!==null;){var t=or;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{nj(4,t)}catch(l){As(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){As(t,i,l)}}var a=t.return;try{wne(t)}catch(l){As(t,a,l)}break;case 5:var o=t.return;try{wne(t)}catch(l){As(t,o,l)}}}catch(l){As(t,t.return,l)}if(t===e){or=null;break}var s=t.sibling;if(s!==null){s.return=t.return,or=s;break}or=t.return}}var R1t=Math.ceil,OD=h0.ReactCurrentDispatcher,Ace=h0.ReactCurrentOwner,xp=h0.ReactCurrentBatchConfig,pa=0,Xl=null,fl=null,bc=0,pf=0,Bx=y_(0),Al=0,dN=null,wE=0,rj=0,Rce=0,ZA=null,od=null,Nce=0,s3=1/0,g1=null,LD=!1,Ine=null,Rb=null,OL=!1,sb=null,PD=0,QA=0,Ane=null,k9=-1,M9=0;function Au(){return pa&6?Gs():k9!==-1?k9:k9=Gs()}function Nb(e){return e.mode&1?pa&2&&bc!==0?bc&-bc:f1t.transition!==null?(M9===0&&(M9=a7e()),M9):(e=Ya,e!==0||(e=window.event,e=e===void 0?16:f7e(e.type)),e):1}function Zh(e,t,n,r){if(50<QA)throw QA=0,Ane=null,Error(In(185));X6(e,n,r),(!(pa&2)||e!==Xl)&&(e===Xl&&(!(pa&2)&&(rj|=n),Al===4&&tb(e,bc)),Cd(e,r),n===1&&pa===0&&!(t.mode&1)&&(s3=Gs()+500,JB&&b_()))}function Cd(e,t){var n=e.callbackNode;fvt(e,t);var r=gD(e,e===Xl?bc:0);if(r===0)n!==null&&n0e(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&n0e(n),t===1)e.tag===0?d1t(Y0e.bind(null,e)):O7e(Y0e.bind(null,e)),s1t(function(){!(pa&6)&&b_()}),n=null;else{switch(o7e(r)){case 1:n=nce;break;case 4:n=r7e;break;case 16:n=mD;break;case 536870912:n=i7e;break;default:n=mD}n=RMe(n,EMe.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function EMe(e,t){if(k9=-1,M9=0,pa&6)throw Error(In(327));var n=e.callbackNode;if(v5()&&e.callbackNode!==n)return null;var r=gD(e,e===Xl?bc:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=kD(e,r);else{t=r;var i=pa;pa|=2;var a=wMe();(Xl!==e||bc!==t)&&(g1=null,s3=Gs()+500,QS(e,t));do try{L1t();break}catch(s){CMe(e,s)}while(!0);mce(),OD.current=a,pa=i,fl!==null?t=0:(Xl=null,bc=0,t=Al)}if(t!==0){if(t===2&&(i=tne(e),i!==0&&(r=i,t=Rne(e,i))),t===1)throw n=dN,QS(e,0),tb(e,r),Cd(e,Gs()),n;if(t===6)tb(e,r);else{if(i=e.current.alternate,!(r&30)&&!N1t(i)&&(t=kD(e,r),t===2&&(a=tne(e),a!==0&&(r=a,t=Rne(e,a))),t===1))throw n=dN,QS(e,0),tb(e,r),Cd(e,Gs()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(In(345));case 2:sS(e,od,g1);break;case 3:if(tb(e,r),(r&130023424)===r&&(t=Nce+500-Gs(),10<t)){if(gD(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Au(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=cne(sS.bind(null,e,od,g1),t);break}sS(e,od,g1);break;case 4:if(tb(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-Xh(r);a=1<<o,o=t[o],o>i&&(i=o),r&=~a}if(r=i,r=Gs()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*R1t(r/1960))-r,10<r){e.timeoutHandle=cne(sS.bind(null,e,od,g1),r);break}sS(e,od,g1);break;case 5:sS(e,od,g1);break;default:throw Error(In(329))}}}return Cd(e,Gs()),e.callbackNode===n?EMe.bind(null,e):null}function Rne(e,t){var n=ZA;return e.current.memoizedState.isDehydrated&&(QS(e,t).flags|=256),e=kD(e,t),e!==2&&(t=od,od=n,t!==null&&Nne(t)),e}function Nne(e){od===null?od=e:od.push.apply(od,e)}function N1t(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!am(a(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function tb(e,t){for(t&=~Rce,t&=~rj,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Xh(t),r=1<<n;e[n]=-1,t&=~r}}function Y0e(e){if(pa&6)throw Error(In(327));v5();var t=gD(e,0);if(!(t&1))return Cd(e,Gs()),null;var n=kD(e,t);if(e.tag!==0&&n===2){var r=tne(e);r!==0&&(t=r,n=Rne(e,r))}if(n===1)throw n=dN,QS(e,0),tb(e,t),Cd(e,Gs()),n;if(n===6)throw Error(In(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,sS(e,od,g1),Cd(e,Gs()),null}function Oce(e,t){var n=pa;pa|=1;try{return e(t)}finally{pa=n,pa===0&&(s3=Gs()+500,JB&&b_())}}function xE(e){sb!==null&&sb.tag===0&&!(pa&6)&&v5();var t=pa;pa|=1;var n=xp.transition,r=Ya;try{if(xp.transition=null,Ya=1,e)return e()}finally{Ya=r,xp.transition=n,pa=t,!(pa&6)&&b_()}}function Lce(){pf=Bx.current,zo(Bx)}function QS(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,o1t(n)),fl!==null)for(n=fl.return;n!==null;){var r=n;switch(fce(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&SD();break;case 3:a3(),zo(Sd),zo(eu),Sce();break;case 5:_ce(r);break;case 4:a3();break;case 13:zo(fs);break;case 19:zo(fs);break;case 10:gce(r.type._context);break;case 22:case 23:Lce()}n=n.return}if(Xl=e,fl=e=Ob(e.current,null),bc=pf=t,Al=0,dN=null,Rce=rj=wE=0,od=ZA=null,OS!==null){for(t=0;t<OS.length;t++)if(n=OS[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,a=n.pending;if(a!==null){var o=a.next;a.next=i,r.next=o}n.pending=r}OS=null}return e}function CMe(e,t){do{var n=fl;try{if(mce(),O9.current=ND,RD){for(var r=ms.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}RD=!1}if(CE=0,Gl=xl=ms=null,KA=!1,lN=0,Ace.current=null,n===null||n.return===null){Al=1,dN=t,fl=null;break}e:{var a=e,o=n.return,s=n,l=t;if(t=bc,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,u=s,d=u.tag;if(!(u.mode&1)&&(d===0||d===11||d===15)){var f=u.alternate;f?(u.updateQueue=f.updateQueue,u.memoizedState=f.memoizedState,u.lanes=f.lanes):(u.updateQueue=null,u.memoizedState=null)}var p=M0e(o);if(p!==null){p.flags&=-257,D0e(p,o,s,a,t),p.mode&1&&k0e(a,c,t),t=p,l=c;var h=t.updateQueue;if(h===null){var m=new Set;m.add(l),t.updateQueue=m}else h.add(l);break e}else{if(!(t&1)){k0e(a,c,t),Pce();break e}l=Error(In(426))}}else if(Jo&&s.mode&1){var g=M0e(o);if(g!==null){!(g.flags&65536)&&(g.flags|=256),D0e(g,o,s,a,t),pce(o3(l,s));break e}}a=l=o3(l,s),Al!==4&&(Al=2),ZA===null?ZA=[a]:ZA.push(a),a=o;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t;var v=oMe(a,l,t);A0e(a,v);break e;case 1:s=l;var y=a.type,_=a.stateNode;if(!(a.flags&128)&&(typeof y.getDerivedStateFromError=="function"||_!==null&&typeof _.componentDidCatch=="function"&&(Rb===null||!Rb.has(_)))){a.flags|=65536,t&=-t,a.lanes|=t;var S=sMe(a,s,t);A0e(a,S);break e}}a=a.return}while(a!==null)}TMe(n)}catch(C){t=C,fl===n&&n!==null&&(fl=n=n.return);continue}break}while(!0)}function wMe(){var e=OD.current;return OD.current=ND,e===null?ND:e}function Pce(){(Al===0||Al===3||Al===2)&&(Al=4),Xl===null||!(wE&268435455)&&!(rj&268435455)||tb(Xl,bc)}function kD(e,t){var n=pa;pa|=2;var r=wMe();(Xl!==e||bc!==t)&&(g1=null,QS(e,t));do try{O1t();break}catch(i){CMe(e,i)}while(!0);if(mce(),pa=n,OD.current=r,fl!==null)throw Error(In(261));return Xl=null,bc=0,Al}function O1t(){for(;fl!==null;)xMe(fl)}function L1t(){for(;fl!==null&&!rvt();)xMe(fl)}function xMe(e){var t=AMe(e.alternate,e,pf);e.memoizedProps=e.pendingProps,t===null?TMe(e):fl=t,Ace.current=null}function TMe(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=x1t(n,t),n!==null){n.flags&=32767,fl=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Al=6,fl=null;return}}else if(n=w1t(n,t,pf),n!==null){fl=n;return}if(t=t.sibling,t!==null){fl=t;return}fl=t=e}while(t!==null);Al===0&&(Al=5)}function sS(e,t,n){var r=Ya,i=xp.transition;try{xp.transition=null,Ya=1,P1t(e,t,n,r)}finally{xp.transition=i,Ya=r}return null}function P1t(e,t,n,r){do v5();while(sb!==null);if(pa&6)throw Error(In(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(In(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(pvt(e,a),e===Xl&&(fl=Xl=null,bc=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||OL||(OL=!0,RMe(mD,function(){return v5(),null})),a=(n.flags&15990)!==0,n.subtreeFlags&15990||a){a=xp.transition,xp.transition=null;var o=Ya;Ya=1;var s=pa;pa|=4,Ace.current=null,I1t(e,n),_Me(n,e),Jvt(sne),vD=!!one,sne=one=null,e.current=n,A1t(n),ivt(),pa=s,Ya=o,xp.transition=a}else e.current=n;if(OL&&(OL=!1,sb=e,PD=i),a=e.pendingLanes,a===0&&(Rb=null),svt(n.stateNode),Cd(e,Gs()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(LD)throw LD=!1,e=Ine,Ine=null,e;return PD&1&&e.tag!==0&&v5(),a=e.pendingLanes,a&1?e===Ane?QA++:(QA=0,Ane=e):QA=0,b_(),null}function v5(){if(sb!==null){var e=o7e(PD),t=xp.transition,n=Ya;try{if(xp.transition=null,Ya=16>e?16:e,sb===null)var r=!1;else{if(e=sb,sb=null,PD=0,pa&6)throw Error(In(331));var i=pa;for(pa|=4,or=e.current;or!==null;){var a=or,o=a.child;if(or.flags&16){var s=a.deletions;if(s!==null){for(var l=0;l<s.length;l++){var c=s[l];for(or=c;or!==null;){var u=or;switch(u.tag){case 0:case 11:case 15:XA(8,u,a)}var d=u.child;if(d!==null)d.return=u,or=d;else for(;or!==null;){u=or;var f=u.sibling,p=u.return;if(vMe(u),u===c){or=null;break}if(f!==null){f.return=p,or=f;break}or=p}}}var h=a.alternate;if(h!==null){var m=h.child;if(m!==null){h.child=null;do{var g=m.sibling;m.sibling=null,m=g}while(m!==null)}}or=a}}if(a.subtreeFlags&2064&&o!==null)o.return=a,or=o;else e:for(;or!==null;){if(a=or,a.flags&2048)switch(a.tag){case 0:case 11:case 15:XA(9,a,a.return)}var v=a.sibling;if(v!==null){v.return=a.return,or=v;break e}or=a.return}}var y=e.current;for(or=y;or!==null;){o=or;var _=o.child;if(o.subtreeFlags&2064&&_!==null)_.return=o,or=_;else e:for(o=y;or!==null;){if(s=or,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:nj(9,s)}}catch(C){As(s,s.return,C)}if(s===o){or=null;break e}var S=s.sibling;if(S!==null){S.return=s.return,or=S;break e}or=s.return}}if(pa=i,b_(),jg&&typeof jg.onPostCommitFiberRoot=="function")try{jg.onPostCommitFiberRoot(YB,e)}catch{}r=!0}return r}finally{Ya=n,xp.transition=t}}return!1}function K0e(e,t,n){t=o3(n,t),t=oMe(e,t,1),e=Ab(e,t,1),t=Au(),e!==null&&(X6(e,1,t),Cd(e,t))}function As(e,t,n){if(e.tag===3)K0e(e,e,n);else for(;t!==null;){if(t.tag===3){K0e(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Rb===null||!Rb.has(r))){e=o3(n,e),e=sMe(t,e,1),t=Ab(t,e,1),e=Au(),t!==null&&(X6(t,1,e),Cd(t,e));break}}t=t.return}}function k1t(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Au(),e.pingedLanes|=e.suspendedLanes&n,Xl===e&&(bc&n)===n&&(Al===4||Al===3&&(bc&130023424)===bc&&500>Gs()-Nce?QS(e,0):Rce|=n),Cd(e,t)}function IMe(e,t){t===0&&(e.mode&1?(t=SL,SL<<=1,!(SL&130023424)&&(SL=4194304)):t=1);var n=Au();e=J1(e,t),e!==null&&(X6(e,t,n),Cd(e,n))}function M1t(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),IMe(e,n)}function D1t(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(In(314))}r!==null&&r.delete(t),IMe(e,n)}var AMe;AMe=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Sd.current)gd=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return gd=!1,C1t(e,t,n);gd=!!(e.flags&131072)}else gd=!1,Jo&&t.flags&1048576&&L7e(t,wD,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;P9(e,t),e=t.pendingProps;var i=n3(t,eu.current);g5(t,n),i=Cce(null,t,r,e,i,n);var a=wce();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ed(r)?(a=!0,ED(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,yce(t),i.updater=tj,t.stateNode=i,i._reactInternals=t,gne(t,r,e,n),t=bne(null,t,r,!0,a,n)):(t.tag=0,Jo&&a&&dce(t),vu(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(P9(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=F1t(r),e=Lh(r,e),i){case 0:t=yne(null,t,r,e,n);break e;case 1:t=B0e(null,t,r,e,n);break e;case 11:t=$0e(null,t,r,e,n);break e;case 14:t=F0e(null,t,r,Lh(r.type,e),n);break e}throw Error(In(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Lh(r,i),yne(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Lh(r,i),B0e(e,t,r,i,n);case 3:e:{if(dMe(t),e===null)throw Error(In(387));r=t.pendingProps,a=t.memoizedState,i=a.element,F7e(e,t),ID(t,r,null,n);var o=t.memoizedState;if(r=o.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=o3(Error(In(423)),t),t=j0e(e,t,r,n,i);break e}else if(r!==i){i=o3(Error(In(424)),t),t=j0e(e,t,r,n,i);break e}else for(_f=Ib(t.stateNode.containerInfo.firstChild),Cf=t,Jo=!0,Bh=null,n=D7e(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(r3(),r===i){t=e0(e,t,n);break e}vu(e,t,r,n)}t=t.child}return t;case 5:return B7e(t),e===null&&pne(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,lne(r,i)?o=null:a!==null&&lne(r,a)&&(t.flags|=32),uMe(e,t),vu(e,t,o,n),t.child;case 6:return e===null&&pne(t),null;case 13:return fMe(e,t,n);case 4:return bce(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=i3(t,null,r,n):vu(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Lh(r,i),$0e(e,t,r,i,n);case 7:return vu(e,t,t.pendingProps,n),t.child;case 8:return vu(e,t,t.pendingProps.children,n),t.child;case 12:return vu(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,xo(xD,r._currentValue),r._currentValue=o,a!==null)if(am(a.value,o)){if(a.children===i.children&&!Sd.current){t=e0(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(a.tag===1){l=z1(-1,n&-n),l.tag=2;var c=a.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),hne(a.return,n,t),s.lanes|=n;break}l=l.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(In(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),hne(o,n,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}vu(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,g5(t,n),i=Ap(i),r=r(i),t.flags|=1,vu(e,t,r,n),t.child;case 14:return r=t.type,i=Lh(r,t.pendingProps),i=Lh(r.type,i),F0e(e,t,r,i,n);case 15:return lMe(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Lh(r,i),P9(e,t),t.tag=1,Ed(r)?(e=!0,ED(t)):e=!1,g5(t,n),aMe(t,r,i),gne(t,r,i,n),bne(null,t,r,!0,e,n);case 19:return pMe(e,t,n);case 22:return cMe(e,t,n)}throw Error(In(156,t.tag))};function RMe(e,t){return n7e(e,t)}function $1t(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function bp(e,t,n,r){return new $1t(e,t,n,r)}function kce(e){return e=e.prototype,!(!e||!e.isReactComponent)}function F1t(e){if(typeof e=="function")return kce(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Jle)return 11;if(e===ece)return 14}return 2}function Ob(e,t){var n=e.alternate;return n===null?(n=bp(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function D9(e,t,n,r,i,a){var o=2;if(r=e,typeof e=="function")kce(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Rx:return JS(n.children,i,a,t);case Qle:o=8,i|=8;break;case jte:return e=bp(12,n,t,i|2),e.elementType=jte,e.lanes=a,e;case zte:return e=bp(13,n,t,i),e.elementType=zte,e.lanes=a,e;case Ute:return e=bp(19,n,t,i),e.elementType=Ute,e.lanes=a,e;case B9e:return ij(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case $9e:o=10;break e;case F9e:o=9;break e;case Jle:o=11;break e;case ece:o=14;break e;case zy:o=16,r=null;break e}throw Error(In(130,e==null?e:typeof e,""))}return t=bp(o,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function JS(e,t,n,r){return e=bp(7,e,r,t),e.lanes=n,e}function ij(e,t,n,r){return e=bp(22,e,r,t),e.elementType=B9e,e.lanes=n,e.stateNode={isHidden:!1},e}function lG(e,t,n){return e=bp(6,e,null,t),e.lanes=n,e}function cG(e,t,n){return t=bp(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function B1t(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=HV(0),this.expirationTimes=HV(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=HV(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Mce(e,t,n,r,i,a,o,s,l){return e=new B1t(e,t,n,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=bp(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},yce(a),e}function j1t(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ax,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function NMe(e){if(!e)return Yb;e=e._reactInternals;e:{if(fC(e)!==e||e.tag!==1)throw Error(In(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ed(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(In(171))}if(e.tag===1){var n=e.type;if(Ed(n))return N7e(e,n,t)}return t}function OMe(e,t,n,r,i,a,o,s,l){return e=Mce(n,r,!0,e,i,a,o,s,l),e.context=NMe(null),n=e.current,r=Au(),i=Nb(n),a=z1(r,i),a.callback=t??null,Ab(n,a,i),e.current.lanes=i,X6(e,i,r),Cd(e,r),e}function aj(e,t,n,r){var i=t.current,a=Au(),o=Nb(i);return n=NMe(n),t.context===null?t.context=n:t.pendingContext=n,t=z1(a,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Ab(i,t,o),e!==null&&(Zh(e,i,o,a),N9(e,i,o)),o}function MD(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function X0e(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Dce(e,t){X0e(e,t),(e=e.alternate)&&X0e(e,t)}function z1t(){return null}var LMe=typeof reportError=="function"?reportError:function(e){console.error(e)};function $ce(e){this._internalRoot=e}oj.prototype.render=$ce.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(In(409));aj(e,t,null,null)};oj.prototype.unmount=$ce.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;xE(function(){aj(null,e,null,null)}),t[Q1]=null}};function oj(e){this._internalRoot=e}oj.prototype.unstable_scheduleHydration=function(e){if(e){var t=c7e();e={blockedOn:null,target:e,priority:t};for(var n=0;n<eb.length&&t!==0&&t<eb[n].priority;n++);eb.splice(n,0,e),n===0&&d7e(e)}};function Fce(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function sj(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Z0e(){}function U1t(e,t,n,r,i){if(i){if(typeof r=="function"){var a=r;r=function(){var c=MD(o);a.call(c)}}var o=OMe(t,r,e,0,null,!1,!1,"",Z0e);return e._reactRootContainer=o,e[Q1]=o.current,rN(e.nodeType===8?e.parentNode:e),xE(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var s=r;r=function(){var c=MD(l);s.call(c)}}var l=Mce(e,0,!1,null,null,!1,!1,"",Z0e);return e._reactRootContainer=l,e[Q1]=l.current,rN(e.nodeType===8?e.parentNode:e),xE(function(){aj(t,l,n,r)}),l}function lj(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a;if(typeof i=="function"){var s=i;i=function(){var l=MD(o);s.call(l)}}aj(t,o,e,i)}else o=U1t(n,t,e,i,r);return MD(o)}s7e=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=lA(t.pendingLanes);n!==0&&(rce(t,n|1),Cd(t,Gs()),!(pa&6)&&(s3=Gs()+500,b_()))}break;case 13:xE(function(){var r=J1(e,1);if(r!==null){var i=Au();Zh(r,e,1,i)}}),Dce(e,1)}};ice=function(e){if(e.tag===13){var t=J1(e,134217728);if(t!==null){var n=Au();Zh(t,e,134217728,n)}Dce(e,134217728)}};l7e=function(e){if(e.tag===13){var t=Nb(e),n=J1(e,t);if(n!==null){var r=Au();Zh(n,e,t,r)}Dce(e,t)}};c7e=function(){return Ya};u7e=function(e,t){var n=Ya;try{return Ya=e,t()}finally{Ya=n}};Qte=function(e,t,n){switch(t){case"input":if(Gte(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=QB(r);if(!i)throw Error(In(90));z9e(r),Gte(r,i)}}}break;case"textarea":H9e(e,n);break;case"select":t=n.value,t!=null&&f5(e,!!n.multiple,t,!1)}};X9e=Oce;Z9e=xE;var H1t={usingClientEntryPoint:!1,Events:[Q6,Px,QB,Y9e,K9e,Oce]},$4={findFiberByHostInstance:NS,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},V1t={bundleType:$4.bundleType,version:$4.version,rendererPackageName:$4.rendererPackageName,rendererConfig:$4.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:h0.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=e7e(e),e===null?null:e.stateNode},findFiberByHostInstance:$4.findFiberByHostInstance||z1t,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 LL=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!LL.isDisabled&&LL.supportsFiber)try{YB=LL.inject(V1t),jg=LL}catch{}}kf.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=H1t;kf.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Fce(t))throw Error(In(200));return j1t(e,t,null,n)};kf.createRoot=function(e,t){if(!Fce(e))throw Error(In(299));var n=!1,r="",i=LMe;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Mce(e,1,!1,null,null,n,!1,r,i),e[Q1]=t.current,rN(e.nodeType===8?e.parentNode:e),new $ce(t)};kf.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(In(188)):(e=Object.keys(e).join(","),Error(In(268,e)));return e=e7e(t),e=e===null?null:e.stateNode,e};kf.flushSync=function(e){return xE(e)};kf.hydrate=function(e,t,n){if(!sj(t))throw Error(In(200));return lj(null,e,t,!0,n)};kf.hydrateRoot=function(e,t,n){if(!Fce(e))throw Error(In(405));var r=n!=null&&n.hydratedSources||null,i=!1,a="",o=LMe;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=OMe(t,null,e,1,n??null,i,!1,a,o),e[Q1]=t.current,rN(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new oj(t)};kf.render=function(e,t,n){if(!sj(t))throw Error(In(200));return lj(null,e,t,!1,n)};kf.unmountComponentAtNode=function(e){if(!sj(e))throw Error(In(40));return e._reactRootContainer?(xE(function(){lj(null,null,e,!1,function(){e._reactRootContainer=null,e[Q1]=null})}),!0):!1};kf.unstable_batchedUpdates=Oce;kf.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!sj(n))throw Error(In(200));if(e==null||e._reactInternals===void 0)throw Error(In(38));return lj(e,t,n,!1,r)};kf.version="18.3.1-next-f1338f8080-20240426";function PMe(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(PMe)}catch(e){console.error(e)}}PMe(),P9e.exports=kf;var Ou=P9e.exports;const fN=qo(Ou),G1t=a9e({__proto__:null,default:fN},[Ou]);pgt(Ou.unstable_batchedUpdates);/**
 * @remix-run/router v1.19.0
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function pN(){return pN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pN.apply(this,arguments)}var lb;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(lb||(lb={}));const Q0e="popstate";function q1t(e){e===void 0&&(e={});function t(r,i){let{pathname:a,search:o,hash:s}=r.location;return One("",{pathname:a,search:o,hash:s},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:DD(i)}return Y1t(t,n,null,e)}function gs(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function kMe(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function W1t(){return Math.random().toString(36).substr(2,8)}function J0e(e,t){return{usr:e.state,key:e.key,idx:t}}function One(e,t,n,r){return n===void 0&&(n=null),pN({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Z3(t):t,{state:n,key:t&&t.key||r||W1t()})}function DD(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Z3(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Y1t(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=lb.Pop,l=null,c=u();c==null&&(c=0,o.replaceState(pN({},o.state,{idx:c}),""));function u(){return(o.state||{idx:null}).idx}function d(){s=lb.Pop;let g=u(),v=g==null?null:g-c;c=g,l&&l({action:s,location:m.location,delta:v})}function f(g,v){s=lb.Push;let y=One(m.location,g,v);c=u()+1;let _=J0e(y,c),S=m.createHref(y);try{o.pushState(_,"",S)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;i.location.assign(S)}a&&l&&l({action:s,location:m.location,delta:1})}function p(g,v){s=lb.Replace;let y=One(m.location,g,v);c=u();let _=J0e(y,c),S=m.createHref(y);o.replaceState(_,"",S),a&&l&&l({action:s,location:m.location,delta:0})}function h(g){let v=i.location.origin!=="null"?i.location.origin:i.location.href,y=typeof g=="string"?g:DD(g);return y=y.replace(/ $/,"%20"),gs(v,"No window.location.(origin|href) available to create URL for href: "+y),new URL(y,v)}let m={get action(){return s},get location(){return e(i,o)},listen(g){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(Q0e,d),l=g,()=>{i.removeEventListener(Q0e,d),l=null}},createHref(g){return t(i,g)},createURL:h,encodeLocation(g){let v=h(g);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:f,replace:p,go(g){return o.go(g)}};return m}var eye;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(eye||(eye={}));function Bce(e,t,n){return n===void 0&&(n="/"),K1t(e,t,n,!1)}function K1t(e,t,n,r){let i=typeof t=="string"?Z3(t):t,a=l3(i.pathname||"/",n);if(a==null)return null;let o=MMe(e);X1t(o);let s=null;for(let l=0;s==null&&l<o.length;++l){let c=s0t(a);s=a0t(o[l],c,r)}return s}function MMe(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(a,o,s)=>{let l={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};l.relativePath.startsWith("/")&&(gs(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=Lb([r,l.relativePath]),u=n.concat(l);a.children&&a.children.length>0&&(gs(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),MMe(a.children,t,u,c)),!(a.path==null&&!a.index)&&t.push({path:c,score:r0t(c,a.index),routesMeta:u})};return e.forEach((a,o)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))i(a,o);else for(let l of DMe(a.path))i(a,o,l)}),t}function DMe(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let o=DMe(r.join("/")),s=[];return s.push(...o.map(l=>l===""?a:[a,l].join("/"))),i&&s.push(...o),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function X1t(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:i0t(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Z1t=/^:[\w-]+$/,Q1t=3,J1t=2,e0t=1,t0t=10,n0t=-2,tye=e=>e==="*";function r0t(e,t){let n=e.split("/"),r=n.length;return n.some(tye)&&(r+=n0t),t&&(r+=J1t),n.filter(i=>!tye(i)).reduce((i,a)=>i+(Z1t.test(a)?Q1t:a===""?e0t:t0t),r)}function i0t(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function a0t(e,t,n){let{routesMeta:r}=e,i={},a="/",o=[];for(let s=0;s<r.length;++s){let l=r[s],c=s===r.length-1,u=a==="/"?t:t.slice(a.length)||"/",d=$D({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},u),f=l.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=$D({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!d)return null;Object.assign(i,d.params),o.push({params:i,pathname:Lb([a,d.pathname]),pathnameBase:d0t(Lb([a,d.pathnameBase])),route:f}),d.pathnameBase!=="/"&&(a=Lb([a,d.pathnameBase]))}return o}function $D(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=o0t(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:r.reduce((c,u,d)=>{let{paramName:f,isOptional:p}=u;if(f==="*"){let m=s[d]||"";o=a.slice(0,a.length-m.length).replace(/(.)\/+$/,"$1")}const h=s[d];return p&&!h?c[f]=void 0:c[f]=(h||"").replace(/%2F/g,"/"),c},{}),pathname:a,pathnameBase:o,pattern:e}}function o0t(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),kMe(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 r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function s0t(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return kMe(!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 l3(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function l0t(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Z3(e):e;return{pathname:n?n.startsWith("/")?n:c0t(n,t):t,search:f0t(r),hash:p0t(i)}}function c0t(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function uG(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"].  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 u0t(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function jce(e,t){let n=u0t(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function zce(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Z3(e):(i=pN({},e),gs(!i.pathname||!i.pathname.includes("?"),uG("?","pathname","search",i)),gs(!i.pathname||!i.pathname.includes("#"),uG("#","pathname","hash",i)),gs(!i.search||!i.search.includes("#"),uG("#","search","hash",i)));let a=e===""||i.pathname==="",o=a?"/":i.pathname,s;if(o==null)s=n;else{let d=t.length-1;if(!r&&o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),d-=1;i.pathname=f.join("/")}s=d>=0?t[d]:"/"}let l=l0t(i,s),c=o&&o!=="/"&&o.endsWith("/"),u=(a||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const Lb=e=>e.join("/").replace(/\/\/+/g,"/"),d0t=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),f0t=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,p0t=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function h0t(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const $Me=["post","put","patch","delete"];new Set($Me);const m0t=["get",...$Me];new Set(m0t);/**
 * React Router v6.26.0
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function hN(){return hN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hN.apply(this,arguments)}const cj=b.createContext(null),FMe=b.createContext(null),lv=b.createContext(null),eO=b.createContext(null),cv=b.createContext({outlet:null,matches:[],isDataRoute:!1}),BMe=b.createContext(null);function g0t(e,t){let{relative:n}=t===void 0?{}:t;Q3()||gs(!1);let{basename:r,navigator:i}=b.useContext(lv),{hash:a,pathname:o,search:s}=uj(e,{relative:n}),l=o;return r!=="/"&&(l=o==="/"?r:Lb([r,o])),i.createHref({pathname:l,search:s,hash:a})}function Q3(){return b.useContext(eO)!=null}function uv(){return Q3()||gs(!1),b.useContext(eO).location}function v0t(){return b.useContext(eO).navigationType}function jMe(e){b.useContext(lv).static||b.useLayoutEffect(e)}function ys(){let{isDataRoute:e}=b.useContext(cv);return e?L0t():y0t()}function y0t(){Q3()||gs(!1);let e=b.useContext(cj),{basename:t,future:n,navigator:r}=b.useContext(lv),{matches:i}=b.useContext(cv),{pathname:a}=uv(),o=JSON.stringify(jce(i,n.v7_relativeSplatPath)),s=b.useRef(!1);return jMe(()=>{s.current=!0}),b.useCallback(function(c,u){if(u===void 0&&(u={}),!s.current)return;if(typeof c=="number"){r.go(c);return}let d=zce(c,JSON.parse(o),a,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Lb([t,d.pathname])),(u.replace?r.replace:r.push)(d,u.state,u)},[t,r,o,a,e])}const b0t=b.createContext(null);function _0t(e){let t=b.useContext(cv).outlet;return t&&b.createElement(b0t.Provider,{value:e},t)}function dv(){let{matches:e}=b.useContext(cv),t=e[e.length-1];return t?t.params:{}}function uj(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=b.useContext(lv),{matches:i}=b.useContext(cv),{pathname:a}=uv(),o=JSON.stringify(jce(i,r.v7_relativeSplatPath));return b.useMemo(()=>zce(e,JSON.parse(o),a,n==="path"),[e,o,a,n])}function S0t(e,t){return E0t(e,t)}function E0t(e,t,n,r){Q3()||gs(!1);let{navigator:i}=b.useContext(lv),{matches:a}=b.useContext(cv),o=a[a.length-1],s=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let c=uv(),u;if(t){var d;let g=typeof t=="string"?Z3(t):t;l==="/"||(d=g.pathname)!=null&&d.startsWith(l)||gs(!1),u=g}else u=c;let f=u.pathname||"/",p=f;if(l!=="/"){let g=l.replace(/^\//,"").split("/");p="/"+f.replace(/^\//,"").split("/").slice(g.length).join("/")}let h=Bce(e,{pathname:p}),m=I0t(h&&h.map(g=>Object.assign({},g,{params:Object.assign({},s,g.params),pathname:Lb([l,i.encodeLocation?i.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?l:Lb([l,i.encodeLocation?i.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),a,n,r);return t&&m?b.createElement(eO.Provider,{value:{location:hN({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:lb.Pop}},m):m}function C0t(){let e=O0t(),t=h0t(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},t),n?b.createElement("pre",{style:i},n):null,null)}const w0t=b.createElement(C0t,null);class x0t extends b.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?b.createElement(cv.Provider,{value:this.props.routeContext},b.createElement(BMe.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function T0t(e){let{routeContext:t,match:n,children:r}=e,i=b.useContext(cj);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),b.createElement(cv.Provider,{value:t},r)}function I0t(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var a;if(!n)return null;if(n.errors)e=n.matches;else if((a=r)!=null&&a.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,s=(i=n)==null?void 0:i.errors;if(s!=null){let u=o.findIndex(d=>d.route.id&&s?.[d.route.id]!==void 0);u>=0||gs(!1),o=o.slice(0,Math.min(o.length,u+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u<o.length;u++){let d=o[u];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(c=u),d.route.id){let{loaderData:f,errors:p}=n,h=d.route.loader&&f[d.route.id]===void 0&&(!p||p[d.route.id]===void 0);if(d.route.lazy||h){l=!0,c>=0?o=o.slice(0,c+1):o=[o[0]];break}}}return o.reduceRight((u,d,f)=>{let p,h=!1,m=null,g=null;n&&(p=s&&d.route.id?s[d.route.id]:void 0,m=d.route.errorElement||w0t,l&&(c<0&&f===0?(h=!0,g=null):c===f&&(h=!0,g=d.route.hydrateFallbackElement||null)));let v=t.concat(o.slice(0,f+1)),y=()=>{let _;return p?_=m:h?_=g:d.route.Component?_=b.createElement(d.route.Component,null):d.route.element?_=d.route.element:_=u,b.createElement(T0t,{match:d,routeContext:{outlet:u,matches:v,isDataRoute:n!=null},children:_})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?b.createElement(x0t,{location:n.location,revalidation:n.revalidation,component:m,error:p,children:y(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):y()},null)}var zMe=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(zMe||{}),FD=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}(FD||{});function A0t(e){let t=b.useContext(cj);return t||gs(!1),t}function R0t(e){let t=b.useContext(FMe);return t||gs(!1),t}function N0t(e){let t=b.useContext(cv);return t||gs(!1),t}function UMe(e){let t=N0t(),n=t.matches[t.matches.length-1];return n.route.id||gs(!1),n.route.id}function O0t(){var e;let t=b.useContext(BMe),n=R0t(FD.UseRouteError),r=UMe(FD.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function L0t(){let{router:e}=A0t(zMe.UseNavigateStable),t=UMe(FD.UseNavigateStable),n=b.useRef(!1);return jMe(()=>{n.current=!0}),b.useCallback(function(i,a){a===void 0&&(a={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,hN({fromRouteId:t},a)))},[e,t])}function ky(e){let{to:t,replace:n,state:r,relative:i}=e;Q3()||gs(!1);let{future:a,static:o}=b.useContext(lv),{matches:s}=b.useContext(cv),{pathname:l}=uv(),c=ys(),u=zce(t,jce(s,a.v7_relativeSplatPath),l,i==="path"),d=JSON.stringify(u);return b.useEffect(()=>c(JSON.parse(d),{replace:n,state:r,relative:i}),[c,d,i,n,r]),null}function P0t(e){return _0t(e.context)}function jr(e){gs(!1)}function k0t(e){let{basename:t="/",children:n=null,location:r,navigationType:i=lb.Pop,navigator:a,static:o=!1,future:s}=e;Q3()&&gs(!1);let l=t.replace(/^\/*/,"/"),c=b.useMemo(()=>({basename:l,navigator:a,static:o,future:hN({v7_relativeSplatPath:!1},s)}),[l,s,a,o]);typeof r=="string"&&(r=Z3(r));let{pathname:u="/",search:d="",hash:f="",state:p=null,key:h="default"}=r,m=b.useMemo(()=>{let g=l3(u,l);return g==null?null:{location:{pathname:g,search:d,hash:f,state:p,key:h},navigationType:i}},[l,u,d,f,p,h,i]);return m==null?null:b.createElement(lv.Provider,{value:c},b.createElement(eO.Provider,{children:n,value:m}))}function M0t(e){let{children:t,location:n}=e;return S0t(BD(t),n)}new Promise(()=>{});function BD(e,t){t===void 0&&(t=[]);let n=[];return b.Children.forEach(e,(r,i)=>{if(!b.isValidElement(r))return;let a=[...t,i];if(r.type===b.Fragment){n.push.apply(n,BD(r.props.children,a));return}r.type!==jr&&gs(!1),!r.props.index||!r.props.children||gs(!1);let o={id:r.props.id||a.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=BD(r.props.children,a)),n.push(o)}),n}/**
 * React Router DOM v6.26.0
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function jD(){return jD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jD.apply(this,arguments)}function HMe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function D0t(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function $0t(e,t){return e.button===0&&(!t||t==="_self")&&!D0t(e)}function Lne(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 r=e[n];return t.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function F0t(e,t){let n=Lne(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(a=>{n.append(i,a)})}),n}const B0t=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],j0t=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],z0t="6";try{window.__reactRouterVersion=z0t}catch{}const U0t=b.createContext({isTransitioning:!1}),H0t="startTransition",nye=j6[H0t];function V0t(e){let{basename:t,children:n,future:r,window:i}=e,a=b.useRef();a.current==null&&(a.current=q1t({window:i,v5Compat:!0}));let o=a.current,[s,l]=b.useState({action:o.action,location:o.location}),{v7_startTransition:c}=r||{},u=b.useCallback(d=>{c&&nye?nye(()=>l(d)):l(d)},[l,c]);return b.useLayoutEffect(()=>o.listen(u),[o,u]),b.createElement(k0t,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:o,future:r})}const G0t=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",q0t=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Jg=b.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:a,replace:o,state:s,target:l,to:c,preventScrollReset:u,unstable_viewTransition:d}=t,f=HMe(t,B0t),{basename:p}=b.useContext(lv),h,m=!1;if(typeof c=="string"&&q0t.test(c)&&(h=c,G0t))try{let _=new URL(window.location.href),S=c.startsWith("//")?new URL(_.protocol+c):new URL(c),C=l3(S.pathname,p);S.origin===_.origin&&C!=null?c=C+S.search+S.hash:m=!0}catch{}let g=g0t(c,{relative:i}),v=K0t(c,{replace:o,state:s,target:l,preventScrollReset:u,relative:i,unstable_viewTransition:d});function y(_){r&&r(_),_.defaultPrevented||v(_)}return b.createElement("a",jD({},f,{href:h||g,onClick:m||a?r:y,ref:n,target:l}))}),W0t=b.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:a="",end:o=!1,style:s,to:l,unstable_viewTransition:c,children:u}=t,d=HMe(t,j0t),f=uj(l,{relative:d.relative}),p=uv(),h=b.useContext(FMe),{navigator:m,basename:g}=b.useContext(lv),v=h!=null&&X0t(f)&&c===!0,y=m.encodeLocation?m.encodeLocation(f).pathname:f.pathname,_=p.pathname,S=h&&h.navigation&&h.navigation.location?h.navigation.location.pathname:null;i||(_=_.toLowerCase(),S=S?S.toLowerCase():null,y=y.toLowerCase()),S&&g&&(S=l3(S,g)||S);const C=y!=="/"&&y.endsWith("/")?y.length-1:y.length;let w=_===y||!o&&_.startsWith(y)&&_.charAt(C)==="/",x=S!=null&&(S===y||!o&&S.startsWith(y)&&S.charAt(y.length)==="/"),T={isActive:w,isPending:x,isTransitioning:v},A=w?r:void 0,I;typeof a=="function"?I=a(T):I=[a,w?"active":null,x?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let R=typeof s=="function"?s(T):s;return b.createElement(Jg,jD({},d,{"aria-current":A,className:I,ref:n,style:R,to:l,unstable_viewTransition:c}),typeof u=="function"?u(T):u)});var Pne;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Pne||(Pne={}));var rye;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(rye||(rye={}));function Y0t(e){let t=b.useContext(cj);return t||gs(!1),t}function K0t(e,t){let{target:n,replace:r,state:i,preventScrollReset:a,relative:o,unstable_viewTransition:s}=t===void 0?{}:t,l=ys(),c=uv(),u=uj(e,{relative:o});return b.useCallback(d=>{if($0t(d,n)){d.preventDefault();let f=r!==void 0?r:DD(c)===DD(u);l(e,{replace:f,state:i,preventScrollReset:a,relative:o,unstable_viewTransition:s})}},[c,l,u,r,i,n,e,a,o,s])}function dj(e){let t=b.useRef(Lne(e)),n=b.useRef(!1),r=uv(),i=b.useMemo(()=>F0t(r.search,n.current?null:t.current),[r.search]),a=ys(),o=b.useCallback((s,l)=>{const c=Lne(typeof s=="function"?s(i):s);n.current=!0,a("?"+c,l)},[a,i]);return[i,o]}function X0t(e,t){t===void 0&&(t={});let n=b.useContext(U0t);n==null&&gs(!1);let{basename:r}=Y0t(Pne.useViewTransitionState),i=uj(e,{relative:t.relative});if(!n.isTransitioning)return!1;let a=l3(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=l3(n.nextLocation.pathname,r)||n.nextLocation.pathname;return $D(i.pathname,o)!=null||$D(i.pathname,a)!=null}var fj=b.createContext({});function VMe(e){if(Array.isArray(e))return e}function Z0t(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function kne(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Uce(e,t){if(e){if(typeof e=="string")return kne(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?kne(e,t):void 0}}function GMe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fe(e,t){return VMe(e)||Z0t(e,t)||Uce(e,t)||GMe()}function cn(e){"@babel/helpers - typeof";return cn=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},cn(e)}const Q0t=Object.freeze(Object.defineProperty({__proto__:null,get default(){return cn}},Symbol.toStringTag,{value:"Module"}));function J0t(e,t){if(cn(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(cn(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qMe(e){var t=J0t(e,"string");return cn(t)=="symbol"?t:t+""}function be(e,t,n){return(t=qMe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $n(e,t){if(e==null)return{};var n,r,i=vgt(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var WMe={exports:{}};/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var a="",o=0;o<arguments.length;o++){var s=arguments[o];s&&(a=i(a,r(s)))}return a}function r(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return n.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var o="";for(var s in a)t.call(a,s)&&a[s]&&(o=i(o,s));return o}function i(a,o){return o?a?a+" "+o:a+o:a}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(WMe);var YMe=WMe.exports;const Oe=qo(YMe);function _c(e,t){eyt(e)&&(e="100%");var n=tyt(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function PL(e){return Math.min(1,Math.max(0,e))}function eyt(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function tyt(e){return typeof e=="string"&&e.indexOf("%")!==-1}function KMe(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function kL(e){return e<=1?"".concat(Number(e)*100,"%"):e}function PS(e){return e.length===1?"0"+e:String(e)}function nyt(e,t,n){return{r:_c(e,255)*255,g:_c(t,255)*255,b:_c(n,255)*255}}function iye(e,t,n){e=_c(e,255),t=_c(t,255),n=_c(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a=0,o=0,s=(r+i)/2;if(r===i)o=0,a=0;else{var l=r-i;switch(o=s>.5?l/(2-r-i):l/(r+i),r){case e:a=(t-n)/l+(t<n?6:0);break;case t:a=(n-e)/l+2;break;case n:a=(e-t)/l+4;break}a/=6}return{h:a,s:o,l:s}}function dG(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ryt(e,t,n){var r,i,a;if(e=_c(e,360),t=_c(t,100),n=_c(n,100),t===0)i=n,a=n,r=n;else{var o=n<.5?n*(1+t):n+t-n*t,s=2*n-o;r=dG(s,o,e+1/3),i=dG(s,o,e),a=dG(s,o,e-1/3)}return{r:r*255,g:i*255,b:a*255}}function Mne(e,t,n){e=_c(e,255),t=_c(t,255),n=_c(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a=0,o=r,s=r-i,l=r===0?0:s/r;if(r===i)a=0;else{switch(r){case e:a=(t-n)/s+(t<n?6:0);break;case t:a=(n-e)/s+2;break;case n:a=(e-t)/s+4;break}a/=6}return{h:a,s:l,v:o}}function iyt(e,t,n){e=_c(e,360)*6,t=_c(t,100),n=_c(n,100);var r=Math.floor(e),i=e-r,a=n*(1-t),o=n*(1-i*t),s=n*(1-(1-i)*t),l=r%6,c=[n,o,a,a,s,n][l],u=[s,n,n,o,a,a][l],d=[a,a,s,n,n,o][l];return{r:c*255,g:u*255,b:d*255}}function Dne(e,t,n,r){var i=[PS(Math.round(e).toString(16)),PS(Math.round(t).toString(16)),PS(Math.round(n).toString(16))];return r&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function ayt(e,t,n,r,i){var a=[PS(Math.round(e).toString(16)),PS(Math.round(t).toString(16)),PS(Math.round(n).toString(16)),PS(oyt(r))];return i&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function oyt(e){return Math.round(parseFloat(e)*255).toString(16)}function aye(e){return cf(e)/255}function cf(e){return parseInt(e,16)}function syt(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var $ne={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function hx(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,a=null,o=!1,s=!1;return typeof e=="string"&&(e=uyt(e)),typeof e=="object"&&(Uv(e.r)&&Uv(e.g)&&Uv(e.b)?(t=nyt(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Uv(e.h)&&Uv(e.s)&&Uv(e.v)?(r=kL(e.s),i=kL(e.v),t=iyt(e.h,r,i),o=!0,s="hsv"):Uv(e.h)&&Uv(e.s)&&Uv(e.l)&&(r=kL(e.s),a=kL(e.l),t=ryt(e.h,r,a),o=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=KMe(n),{ok:o,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var lyt="[-\\+]?\\d+%?",cyt="[-\\+]?\\d*\\.\\d+%?",cb="(?:".concat(cyt,")|(?:").concat(lyt,")"),fG="[\\s|\\(]+(".concat(cb,")[,|\\s]+(").concat(cb,")[,|\\s]+(").concat(cb,")\\s*\\)?"),pG="[\\s|\\(]+(".concat(cb,")[,|\\s]+(").concat(cb,")[,|\\s]+(").concat(cb,")[,|\\s]+(").concat(cb,")\\s*\\)?"),wh={CSS_UNIT:new RegExp(cb),rgb:new RegExp("rgb"+fG),rgba:new RegExp("rgba"+pG),hsl:new RegExp("hsl"+fG),hsla:new RegExp("hsla"+pG),hsv:new RegExp("hsv"+fG),hsva:new RegExp("hsva"+pG),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function uyt(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if($ne[e])e=$ne[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=wh.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=wh.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=wh.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=wh.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=wh.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=wh.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=wh.hex8.exec(e),n?{r:cf(n[1]),g:cf(n[2]),b:cf(n[3]),a:aye(n[4]),format:t?"name":"hex8"}:(n=wh.hex6.exec(e),n?{r:cf(n[1]),g:cf(n[2]),b:cf(n[3]),format:t?"name":"hex"}:(n=wh.hex4.exec(e),n?{r:cf(n[1]+n[1]),g:cf(n[2]+n[2]),b:cf(n[3]+n[3]),a:aye(n[4]+n[4]),format:t?"name":"hex8"}:(n=wh.hex3.exec(e),n?{r:cf(n[1]+n[1]),g:cf(n[2]+n[2]),b:cf(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Uv(e){return!!wh.CSS_UNIT.exec(String(e))}var ti=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=syt(t)),this.originalInput=t;var i=hx(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:i.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=i.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,i,a=t.r/255,o=t.g/255,s=t.b/255;return a<=.03928?n=a/12.92:n=Math.pow((a+.055)/1.055,2.4),o<=.03928?r=o/12.92:r=Math.pow((o+.055)/1.055,2.4),s<=.03928?i=s/12.92:i=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*i},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=KMe(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=Mne(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Mne(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=iye(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=iye(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Dne(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),ayt(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(_c(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(_c(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Dne(this.r,this.g,this.b,!1),n=0,r=Object.entries($ne);n<r.length;n++){var i=r[n],a=i[0],o=i[1];if(t===o)return a}return!1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var r=!1,i=this.a<1&&this.a>=0,a=!n&&i&&(t.startsWith("hex")||t==="name");return a?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=PL(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=PL(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=PL(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=PL(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),i=new e(t).toRgb(),a=n/100,o={r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b,a:(i.a-r.a)*a+r.a};return new e(o)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),i=360/n,a=[this];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,a.push(new e(r));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,i=n.s,a=n.v,o=[],s=1/t;t--;)o.push(new e({h:r,s:i,v:a})),a=(a+s)%1;return o},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),i=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/i,g:(n.g*n.a+r.g*r.a*(1-n.a))/i,b:(n.b*n.a+r.b*r.a*(1-n.a))/i,a:i})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,i=[this],a=360/t,o=1;o<t;o++)i.push(new e({h:(r+o*a)%360,s:n.s,l:n.l}));return i},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),ML=2,oye=.16,dyt=.05,fyt=.05,pyt=.15,XMe=5,ZMe=4,hyt=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function sye(e){var t=e.r,n=e.g,r=e.b,i=Mne(t,n,r);return{h:i.h*360,s:i.s,v:i.v}}function DL(e){var t=e.r,n=e.g,r=e.b;return"#".concat(Dne(t,n,r,!1))}function myt(e,t,n){var r=n/100,i={r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b};return i}function lye(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-ML*t:Math.round(e.h)+ML*t:r=n?Math.round(e.h)+ML*t:Math.round(e.h)-ML*t,r<0?r+=360:r>=360&&(r-=360),r}function cye(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-oye*t:t===ZMe?r=e.s+oye:r=e.s+dyt*t,r>1&&(r=1),n&&t===XMe&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function uye(e,t,n){var r;return n?r=e.v+fyt*t:r=e.v-pyt*t,r>1&&(r=1),Number(r.toFixed(2))}function Kb(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=hx(e),i=XMe;i>0;i-=1){var a=sye(r),o=DL(hx({h:lye(a,i,!0),s:cye(a,i,!0),v:uye(a,i,!0)}));n.push(o)}n.push(DL(r));for(var s=1;s<=ZMe;s+=1){var l=sye(r),c=DL(hx({h:lye(l,s),s:cye(l,s),v:uye(l,s)}));n.push(c)}return t.theme==="dark"?hyt.map(function(u){var d=u.index,f=u.opacity,p=DL(myt(hx(t.backgroundColor||"#141414"),hx(n[d]),f*100));return p}):n}var eE={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},zD=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];zD.primary=zD[5];var UD=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];UD.primary=UD[5];var HD=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];HD.primary=HD[5];var VD=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];VD.primary=VD[5];var GD=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];GD.primary=GD[5];var qD=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];qD.primary=qD[5];var WD=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];WD.primary=WD[5];var YD=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];YD.primary=YD[5];var TE=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];TE.primary=TE[5];var KD=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];KD.primary=KD[5];var XD=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];XD.primary=XD[5];var ZD=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];ZD.primary=ZD[5];var mN=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];mN.primary=mN[5];var gyt=mN,$9={red:zD,volcano:UD,orange:HD,gold:VD,yellow:GD,lime:qD,green:WD,cyan:YD,blue:TE,geekblue:KD,purple:XD,magenta:ZD,grey:mN},QD=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];QD.primary=QD[5];var JD=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];JD.primary=JD[5];var e$=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];e$.primary=e$[5];var t$=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];t$.primary=t$[5];var n$=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];n$.primary=n$[5];var r$=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];r$.primary=r$[5];var i$=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];i$.primary=i$[5];var a$=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];a$.primary=a$[5];var o$=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];o$.primary=o$[5];var s$=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];s$.primary=s$[5];var l$=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];l$.primary=l$[5];var c$=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];c$.primary=c$[5];var u$=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];u$.primary=u$[5];var vyt={red:QD,volcano:JD,orange:e$,gold:t$,yellow:n$,lime:r$,green:i$,cyan:a$,blue:o$,geekblue:s$,purple:l$,magenta:c$,grey:u$};const yyt=Object.freeze(Object.defineProperty({__proto__:null,blue:TE,blueDark:o$,cyan:YD,cyanDark:a$,geekblue:KD,geekblueDark:s$,generate:Kb,gold:VD,goldDark:t$,gray:gyt,green:WD,greenDark:i$,grey:mN,greyDark:u$,lime:qD,limeDark:r$,magenta:ZD,magentaDark:c$,orange:HD,orangeDark:e$,presetDarkPalettes:vyt,presetPalettes:$9,presetPrimaryColors:eE,purple:XD,purpleDark:l$,red:zD,redDark:QD,volcano:UD,volcanoDark:JD,yellow:GD,yellowDark:n$},Symbol.toStringTag,{value:"Module"}));function dye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function we(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dye(Object(n),!0).forEach(function(r){be(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dye(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Zl(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Fne(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var fye="data-rc-order",pye="data-rc-priority",byt="rc-util-key",Bne=new Map;function QMe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):byt}function pj(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function _yt(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Hce(e){return Array.from((Bne.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function JMe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Zl())return null;var n=t.csp,r=t.prepend,i=t.priority,a=i===void 0?0:i,o=_yt(r),s=o==="prependQueue",l=document.createElement("style");l.setAttribute(fye,o),s&&a&&l.setAttribute(pye,"".concat(a)),n!=null&&n.nonce&&(l.nonce=n?.nonce),l.innerHTML=e;var c=pj(t),u=c.firstChild;if(r){if(s){var d=(t.styles||Hce(c)).filter(function(f){if(!["prepend","prependQueue"].includes(f.getAttribute(fye)))return!1;var p=Number(f.getAttribute(pye)||0);return a>=p});if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function eDe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=pj(t);return(t.styles||Hce(n)).find(function(r){return r.getAttribute(QMe(t))===e})}function gN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=eDe(e,t);if(n){var r=pj(t);r.removeChild(n)}}function Syt(e,t){var n=Bne.get(e);if(!n||!Fne(document,n)){var r=JMe("",t),i=r.parentNode;Bne.set(e,i),e.removeChild(r)}}function U1(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=pj(n),i=Hce(r),a=we(we({},n),{},{styles:i});Syt(r,a);var o=eDe(t,a);if(o){var s,l;if((s=a.csp)!==null&&s!==void 0&&s.nonce&&o.nonce!==((l=a.csp)===null||l===void 0?void 0:l.nonce)){var c;o.nonce=(c=a.csp)===null||c===void 0?void 0:c.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}var u=JMe(e,a);return u.setAttribute(QMe(a),t),u}function tDe(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function Eyt(e){return tDe(e)instanceof ShadowRoot}function d$(e){return Eyt(e)?tDe(e):null}var jne={},Cyt=function(t){};function wyt(e,t){}function xyt(e,t){}function Tyt(){jne={}}function nDe(e,t,n){!t&&!jne[n]&&(e(!1,n),jne[n]=!0)}function Ra(e,t){nDe(wyt,e,t)}function rDe(e,t){nDe(xyt,e,t)}Ra.preMessage=Cyt;Ra.resetWarned=Tyt;Ra.noteOnce=rDe;function Iyt(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function zne(e,t){Ra(e,"[@ant-design/icons] ".concat(t))}function hye(e){return cn(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(cn(e.icon)==="object"||typeof e.icon=="function")}function mye(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[Iyt(n)]=r}return t},{})}function Une(e,t,n){return n?se.createElement(e.tag,we(we({key:t},mye(e.attrs)),n),(e.children||[]).map(function(r,i){return Une(r,"".concat(t,"-").concat(e.tag,"-").concat(i))})):se.createElement(e.tag,we({key:t},mye(e.attrs)),(e.children||[]).map(function(r,i){return Une(r,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function iDe(e){return Kb(e)[0]}function aDe(e){return e?Array.isArray(e)?e:[e]:[]}var Ayt={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},Ryt=`
.anticon {
  display: inline-flex;
  align-items: center;
  color: inherit;
  font-style: normal;
  line-height: 0;
  text-align: center;
  text-transform: none;
  vertical-align: -0.125em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.anticon > * {
  line-height: 1;
}

.anticon svg {
  display: inline-block;
}

.anticon::before {
  display: none;
}

.anticon .anticon-icon {
  display: block;
}

.anticon[tabindex] {
  cursor: pointer;
}

.anticon-spin::before,
.anticon-spin {
  display: inline-block;
  -webkit-animation: loadingCircle 1s infinite linear;
  animation: loadingCircle 1s infinite linear;
}

@-webkit-keyframes loadingCircle {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes loadingCircle {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
`,oDe=function(t){var n=b.useContext(fj),r=n.csp,i=n.prefixCls,a=Ryt;i&&(a=a.replace(/anticon/g,i)),b.useEffect(function(){var o=t.current,s=d$(o);U1(a,"@ant-design-icons",{prepend:!0,csp:r,attachTo:s})},[])},Nyt=["icon","className","onClick","style","primaryColor","secondaryColor"],JA={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Oyt(e){var t=e.primaryColor,n=e.secondaryColor;JA.primaryColor=t,JA.secondaryColor=n||iDe(t),JA.calculated=!!n}function Lyt(){return we({},JA)}var J3=function(t){var n=t.icon,r=t.className,i=t.onClick,a=t.style,o=t.primaryColor,s=t.secondaryColor,l=$n(t,Nyt),c=b.useRef(),u=JA;if(o&&(u={primaryColor:o,secondaryColor:s||iDe(o)}),oDe(c),zne(hye(n),"icon should be icon definiton, but got ".concat(n)),!hye(n))return null;var d=n;return d&&typeof d.icon=="function"&&(d=we(we({},d),{},{icon:d.icon(u.primaryColor,u.secondaryColor)})),Une(d.icon,"svg-".concat(d.name),we(we({className:r,onClick:i,style:a,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};J3.displayName="IconReact";J3.getTwoToneColors=Lyt;J3.setTwoToneColors=Oyt;function Vce(e){var t=aDe(e),n=Fe(t,2),r=n[0],i=n[1];return J3.setTwoToneColors({primaryColor:r,secondaryColor:i})}function Pyt(){var e=J3.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var kyt=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Vce(TE.primary);var dn=b.forwardRef(function(e,t){var n=e.className,r=e.icon,i=e.spin,a=e.rotate,o=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=$n(e,kyt),u=b.useContext(fj),d=u.prefixCls,f=d===void 0?"anticon":d,p=u.rootClassName,h=Oe(p,f,be(be({},"".concat(f,"-").concat(r.name),!!r.name),"".concat(f,"-spin"),!!i||r.name==="loading"),n),m=o;m===void 0&&s&&(m=-1);var g=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,v=aDe(l),y=Fe(v,2),_=y[0],S=y[1];return b.createElement("span",Xe({role:"img","aria-label":r.name},c,{ref:t,tabIndex:m,onClick:s,className:h}),b.createElement(J3,{icon:r,primaryColor:_,secondaryColor:S,style:g}))});dn.displayName="AntdIcon";dn.getTwoToneColor=Pyt;dn.setTwoToneColor=Vce;var Myt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zm52 132H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200zM424 712H296V584c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v128H104c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h128v128c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V776h128c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}}]},name:"appstore-add",theme:"outlined"},Dyt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:Myt}))},$yt=b.forwardRef(Dyt),Fyt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-616-64h536c4.4 0 8-3.6 8-8V284c0-7.2-8.7-10.7-13.7-5.7L592 488.6l-125.4-124a8.03 8.03 0 00-11.3 0l-189 189.6a7.87 7.87 0 00-2.3 5.6V720c0 4.4 3.6 8 8 8z"}}]},name:"area-chart",theme:"outlined"},Byt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:Fyt}))},hj=b.forwardRef(Byt),jyt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},zyt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:jyt}))},eT=b.forwardRef(zyt),Uyt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"},Hyt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:Uyt}))},mj=b.forwardRef(Hyt),Vyt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M855 160.1l-189.2 23.5c-6.6.8-9.3 8.8-4.7 13.5l54.7 54.7-153.5 153.5a8.03 8.03 0 000 11.3l45.1 45.1c3.1 3.1 8.2 3.1 11.3 0l153.6-153.6 54.7 54.7a7.94 7.94 0 0013.5-4.7L863.9 169a7.9 7.9 0 00-8.9-8.9zM416.6 562.3a8.03 8.03 0 00-11.3 0L251.8 715.9l-54.7-54.7a7.94 7.94 0 00-13.5 4.7L160.1 855c-.6 5.2 3.7 9.5 8.9 8.9l189.2-23.5c6.6-.8 9.3-8.8 4.7-13.5l-54.7-54.7 153.6-153.6c3.1-3.1 3.1-8.2 0-11.3l-45.2-45z"}}]},name:"arrows-alt",theme:"outlined"},Gyt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:Vyt}))},gye=b.forwardRef(Gyt),qyt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-600-80h56c4.4 0 8-3.6 8-8V560c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V384c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v320c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V462c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v242c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V304c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v400c0 4.4 3.6 8 8 8z"}}]},name:"bar-chart",theme:"outlined"},Wyt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:qyt}))},sDe=b.forwardRef(Wyt),Yyt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},Kyt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:Yyt}))},Xyt=b.forwardRef(Kyt),Zyt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M766.4 744.3c43.7 0 79.4-36.2 79.4-80.5 0-53.5-79.4-140.8-79.4-140.8S687 610.3 687 663.8c0 44.3 35.7 80.5 79.4 80.5zm-377.1-44.1c7.1 7.1 18.6 7.1 25.6 0l256.1-256c7.1-7.1 7.1-18.6 0-25.6l-256-256c-.6-.6-1.3-1.2-2-1.7l-78.2-78.2a9.11 9.11 0 00-12.8 0l-48 48a9.11 9.11 0 000 12.8l67.2 67.2-207.8 207.9c-7.1 7.1-7.1 18.6 0 25.6l255.9 256zm12.9-448.6l178.9 178.9H223.4l178.8-178.9zM904 816H120c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8z"}}]},name:"bg-colors",theme:"outlined"},Qyt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:Zyt}))},Jyt=b.forwardRef(Qyt),ebt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-260 72h96v209.9L621.5 312 572 347.4V136zm220 752H232V136h280v296.9c0 3.3 1 6.6 3 9.3a15.9 15.9 0 0022.3 3.7l83.8-59.9 81.4 59.4c2.7 2 6 3.1 9.4 3.1 8.8 0 16-7.2 16-16V136h64v752z"}}]},name:"book",theme:"outlined"},tbt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:ebt}))},nbt=b.forwardRef(tbt),rbt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M916 210H376c-17.7 0-32 14.3-32 32v236H108c-17.7 0-32 14.3-32 32v272c0 17.7 14.3 32 32 32h540c17.7 0 32-14.3 32-32V546h236c17.7 0 32-14.3 32-32V242c0-17.7-14.3-32-32-32zm-504 68h200v200H412V278zm-68 468H144V546h200v200zm268 0H412V546h200v200zm268-268H680V278h200v200z"}}]},name:"build",theme:"outlined"},ibt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:rbt}))},abt=b.forwardRef(ibt),obt={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 136c-141.4 0-256 114.6-256 256 0 92.5 49.4 176.3 128.1 221.8l35.9 20.8V752h184V634.6l35.9-20.8C718.6 568.3 768 484.5 768 392c0-141.4-114.6-256-256-256z",fill:n}},{tag:"path",attrs:{d:"M632 888H392c-4.4 0-8 3.6-8 8v32c0 17.7 14.3 32 32 32h192c17.7 0 32-14.3 32-32v-32c0-4.4-3.6-8-8-8zM512 64c-181.1 0-328 146.9-328 328 0 121.4 66 227.4 164 284.1V792c0 17.7 14.3 32 32 32h264c17.7 0 32-14.3 32-32V676.1c98-56.7 164-162.7 164-284.1 0-181.1-146.9-328-328-328zm127.9 549.8L604 634.6V752H420V634.6l-35.9-20.8C305.4 568.3 256 484.5 256 392c0-141.4 114.6-256 256-256s256 114.6 256 256c0 92.5-49.4 176.3-128.1 221.8z",fill:t}}]}},name:"bulb",theme:"twotone"},sbt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:obt}))},lbt=b.forwardRef(sbt),cbt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},ubt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:cbt}))},lDe=b.forwardRef(ubt),dbt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},fbt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:dbt}))},pbt=b.forwardRef(fbt),hbt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},mbt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:hbt}))},gbt=b.forwardRef(mbt),vbt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},ybt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:vbt}))},bbt=b.forwardRef(ybt),_bt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},Sbt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:_bt}))},pC=b.forwardRef(Sbt),Ebt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"},Cbt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:Ebt}))},gj=b.forwardRef(Cbt),wbt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},xbt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:wbt}))},IE=b.forwardRef(xbt),Tbt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm176.5 585.7l-28.6 39a7.99 7.99 0 01-11.2 1.7L483.3 569.8a7.92 7.92 0 01-3.3-6.5V288c0-4.4 3.6-8 8-8h48.1c4.4 0 8 3.6 8 8v247.5l142.6 103.1c3.6 2.5 4.4 7.5 1.8 11.1z"}}]},name:"clock-circle",theme:"filled"},Ibt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:Tbt}))},Abt=b.forwardRef(Ibt),Rbt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},Nbt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:Rbt}))},Gce=b.forwardRef(Nbt),Obt={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},Lbt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:Obt}))},fv=b.forwardRef(Lbt),Pbt={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},kbt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:Pbt}))},Ic=b.forwardRef(kbt),Mbt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M518.3 459a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z"}},{tag:"path",attrs:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}}]},name:"cloud-upload",theme:"outlined"},Dbt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:Mbt}))},$bt=b.forwardRef(Dbt),Fbt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M516 673c0 4.4 3.4 8 7.5 8h185c4.1 0 7.5-3.6 7.5-8v-48c0-4.4-3.4-8-7.5-8h-185c-4.1 0-7.5 3.6-7.5 8v48zm-194.9 6.1l192-161c3.8-3.2 3.8-9.1 0-12.3l-192-160.9A7.95 7.95 0 00308 351v62.7c0 2.4 1 4.6 2.9 6.1L420.7 512l-109.8 92.2a8.1 8.1 0 00-2.9 6.1V673c0 6.8 7.9 10.5 13.1 6.1zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"code",theme:"outlined"},Bbt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:Fbt}))},cDe=b.forwardRef(Bbt),jbt={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z",fill:t}},{tag:"path",attrs:{d:"M184 840h656V184H184v656zm339.5-223h185c4.1 0 7.5 3.6 7.5 8v48c0 4.4-3.4 8-7.5 8h-185c-4.1 0-7.5-3.6-7.5-8v-48c0-4.4 3.4-8 7.5-8zM308 610.3c0-2.3 1.1-4.6 2.9-6.1L420.7 512l-109.8-92.2a7.63 7.63 0 01-2.9-6.1V351c0-6.8 7.9-10.5 13.1-6.1l192 160.9c3.9 3.2 3.9 9.1 0 12.3l-192 161c-5.2 4.4-13.1.7-13.1-6.1v-62.7z",fill:n}},{tag:"path",attrs:{d:"M321.1 679.1l192-161c3.9-3.2 3.9-9.1 0-12.3l-192-160.9A7.95 7.95 0 00308 351v62.7c0 2.4 1 4.6 2.9 6.1L420.7 512l-109.8 92.2a8.1 8.1 0 00-2.9 6.1V673c0 6.8 7.9 10.5 13.1 6.1zM516 673c0 4.4 3.4 8 7.5 8h185c4.1 0 7.5-3.6 7.5-8v-48c0-4.4-3.4-8-7.5-8h-185c-4.1 0-7.5 3.6-7.5 8v48z",fill:t}}]}},name:"code",theme:"twotone"},zbt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:jbt}))},Ubt=b.forwardRef(zbt),Hbt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M326 664H104c-8.8 0-16 7.2-16 16v48c0 8.8 7.2 16 16 16h174v176c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16V696c0-17.7-14.3-32-32-32zm16-576h-48c-8.8 0-16 7.2-16 16v176H104c-8.8 0-16 7.2-16 16v48c0 8.8 7.2 16 16 16h222c17.7 0 32-14.3 32-32V104c0-8.8-7.2-16-16-16zm578 576H698c-17.7 0-32 14.3-32 32v224c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16V744h174c8.8 0 16-7.2 16-16v-48c0-8.8-7.2-16-16-16zm0-384H746V104c0-8.8-7.2-16-16-16h-48c-8.8 0-16 7.2-16 16v224c0 17.7 14.3 32 32 32h222c8.8 0 16-7.2 16-16v-48c0-8.8-7.2-16-16-16z"}}]},name:"compress",theme:"outlined"},Vbt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:Hbt}))},Gbt=b.forwardRef(Vbt),qbt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},Wbt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:qbt}))},tO=b.forwardRef(Wbt),Ybt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},Kbt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:Ybt}))},m0=b.forwardRef(Kbt),Xbt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.9 490.3c3.6-12 5.4-24.4 5.4-37 0-28.3-9.3-55.5-26.1-77.7 3.6-12 5.4-24.4 5.4-37 0-28.3-9.3-55.5-26.1-77.7 3.6-12 5.4-24.4 5.4-37 0-51.6-30.7-98.1-78.3-118.4a66.1 66.1 0 00-26.5-5.4H273v428h.3l85.8 310.8C372.9 889 418.9 924 470.9 924c29.7 0 57.4-11.8 77.9-33.4 20.5-21.5 31-49.7 29.5-79.4l-6-122.9h239.9c12.1 0 23.9-3.2 34.3-9.3 40.4-23.5 65.5-66.1 65.5-111 0-28.3-9.3-55.5-26.1-77.7zM112 132v364c0 17.7 14.3 32 32 32h65V100h-65c-17.7 0-32 14.3-32 32z"}}]},name:"dislike",theme:"filled"},Zbt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:Xbt}))},qce=b.forwardRef(Zbt),Qbt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.9 490.3c3.6-12 5.4-24.4 5.4-37 0-28.3-9.3-55.5-26.1-77.7 3.6-12 5.4-24.4 5.4-37 0-28.3-9.3-55.5-26.1-77.7 3.6-12 5.4-24.4 5.4-37 0-51.6-30.7-98.1-78.3-118.4a66.1 66.1 0 00-26.5-5.4H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h129.3l85.8 310.8C372.9 889 418.9 924 470.9 924c29.7 0 57.4-11.8 77.9-33.4 20.5-21.5 31-49.7 29.5-79.4l-6-122.9h239.9c12.1 0 23.9-3.2 34.3-9.3 40.4-23.5 65.5-66.1 65.5-111 0-28.3-9.3-55.5-26.1-77.7zM184 456V172h81v284h-81zm627.2 160.4H496.8l9.6 198.4c.6 11.9-4.7 23.1-14.6 30.5-6.1 4.5-13.6 6.8-21.1 6.7a44.28 44.28 0 01-42.2-32.3L329 459.2V172h415.4a56.85 56.85 0 0133.6 51.8c0 9.7-2.3 18.9-6.9 27.3l-13.9 25.4 21.9 19a56.76 56.76 0 0119.6 43c0 9.7-2.3 18.9-6.9 27.3l-13.9 25.4 21.9 19a56.76 56.76 0 0119.6 43c0 9.7-2.3 18.9-6.9 27.3l-14 25.5 21.9 19a56.76 56.76 0 0119.6 43c0 19.1-11 37.5-28.8 48.4z"}}]},name:"dislike",theme:"outlined"},Jbt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:Qbt}))},f$=b.forwardRef(Jbt),e_t={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M273 100.1v428h.3l-.3-428zM820.4 525l-21.9-19 14-25.5a56.2 56.2 0 006.9-27.3c0-16.5-7.1-32.2-19.6-43l-21.9-19 13.9-25.4a56.2 56.2 0 006.9-27.3c0-16.5-7.1-32.2-19.6-43l-21.9-19 13.9-25.4a56.2 56.2 0 006.9-27.3c0-22.4-13.2-42.6-33.6-51.8H345v345.2c18.6 67.2 46.4 168 83.5 302.5a44.28 44.28 0 0042.2 32.3c7.5.1 15-2.2 21.1-6.7 9.9-7.4 15.2-18.6 14.6-30.5l-9.6-198.4h314.4C829 605.5 840 587.1 840 568c0-16.5-7.1-32.2-19.6-43z",fill:n}},{tag:"path",attrs:{d:"M112 132v364c0 17.7 14.3 32 32 32h65V100h-65c-17.7 0-32 14.3-32 32zm773.9 358.3c3.6-12 5.4-24.4 5.4-37 0-28.3-9.3-55.5-26.1-77.7 3.6-12 5.4-24.4 5.4-37 0-28.3-9.3-55.5-26.1-77.7 3.6-12 5.4-24.4 5.4-37 0-51.6-30.7-98.1-78.3-118.4a66.1 66.1 0 00-26.5-5.4H273l.3 428 85.8 310.8C372.9 889 418.9 924 470.9 924c29.7 0 57.4-11.8 77.9-33.4 20.5-21.5 31-49.7 29.5-79.4l-6-122.9h239.9c12.1 0 23.9-3.2 34.3-9.3 40.4-23.5 65.5-66.1 65.5-111 0-28.3-9.3-55.5-26.1-77.7zm-74.7 126.1H496.8l9.6 198.4c.6 11.9-4.7 23.1-14.6 30.5-6.1 4.5-13.6 6.8-21.1 6.7a44.28 44.28 0 01-42.2-32.3c-37.1-134.4-64.9-235.2-83.5-302.5V172h399.4a56.85 56.85 0 0133.6 51.8c0 9.7-2.3 18.9-6.9 27.3l-13.9 25.4 21.9 19a56.76 56.76 0 0119.6 43c0 9.7-2.3 18.9-6.9 27.3l-13.9 25.4 21.9 19a56.76 56.76 0 0119.6 43c0 9.7-2.3 18.9-6.9 27.3l-14 25.5 21.9 19a56.76 56.76 0 0119.6 43c0 19.1-11 37.5-28.8 48.4z",fill:t}}]}},name:"dislike",theme:"twotone"},t_t=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:e_t}))},n_t=b.forwardRef(t_t),r_t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},i_t=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:r_t}))},a_t=b.forwardRef(i_t),o_t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},s_t=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:o_t}))},Hne=b.forwardRef(s_t),l_t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},c_t=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:l_t}))},Vne=b.forwardRef(c_t),u_t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},d_t=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:u_t}))},pv=b.forwardRef(d_t),f_t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},p_t=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:f_t}))},nO=b.forwardRef(p_t),h_t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},m_t=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:h_t}))},vj=b.forwardRef(m_t),g_t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},v_t=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:g_t}))},Wce=b.forwardRef(v_t),y_t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},b_t=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:y_t}))},__=b.forwardRef(b_t),__t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},S_t=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:__t}))},c3=b.forwardRef(S_t),E_t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M855 160.1l-189.2 23.5c-6.6.8-9.3 8.8-4.7 13.5l54.7 54.7-153.5 153.5a8.03 8.03 0 000 11.3l45.1 45.1c3.1 3.1 8.2 3.1 11.3 0l153.6-153.6 54.7 54.7a7.94 7.94 0 0013.5-4.7L863.9 169a7.9 7.9 0 00-8.9-8.9zM416.6 562.3a8.03 8.03 0 00-11.3 0L251.8 715.9l-54.7-54.7a7.94 7.94 0 00-13.5 4.7L160.1 855c-.6 5.2 3.7 9.5 8.9 8.9l189.2-23.5c6.6-.8 9.3-8.8 4.7-13.5l-54.7-54.7 153.6-153.6c3.1-3.1 3.1-8.2 0-11.3l-45.2-45z"}}]},name:"expand-alt",theme:"outlined"},C_t=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:E_t}))},w_t=b.forwardRef(C_t),x_t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M342 88H120c-17.7 0-32 14.3-32 32v224c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16V168h174c8.8 0 16-7.2 16-16v-48c0-8.8-7.2-16-16-16zm578 576h-48c-8.8 0-16 7.2-16 16v176H682c-8.8 0-16 7.2-16 16v48c0 8.8 7.2 16 16 16h222c17.7 0 32-14.3 32-32V680c0-8.8-7.2-16-16-16zM342 856H168V680c0-8.8-7.2-16-16-16h-48c-8.8 0-16 7.2-16 16v224c0 17.7 14.3 32 32 32h222c8.8 0 16-7.2 16-16v-48c0-8.8-7.2-16-16-16zM904 88H682c-8.8 0-16 7.2-16 16v48c0 8.8 7.2 16 16 16h174v176c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16V120c0-17.7-14.3-32-32-32z"}}]},name:"expand",theme:"outlined"},T_t=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:x_t}))},I_t=b.forwardRef(T_t),A_t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 472a40 40 0 1080 0 40 40 0 10-80 0zm367 352.9L696.3 352V178H768v-68H256v68h71.7v174L145 824.9c-2.8 7.4-4.3 15.2-4.3 23.1 0 35.3 28.7 64 64 64h614.6c7.9 0 15.7-1.5 23.1-4.3 33-12.7 49.4-49.8 36.6-82.8zM395.7 364.7V180h232.6v184.7L719.2 600c-20.7-5.3-42.1-8-63.9-8-61.2 0-119.2 21.5-165.3 60a188.78 188.78 0 01-121.3 43.9c-32.7 0-64.1-8.3-91.8-23.7l118.8-307.5zM210.5 844l41.7-107.8c35.7 18.1 75.4 27.8 116.6 27.8 61.2 0 119.2-21.5 165.3-60 33.9-28.2 76.3-43.9 121.3-43.9 35 0 68.4 9.5 97.6 27.1L813.5 844h-603z"}}]},name:"experiment",theme:"outlined"},R_t=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:A_t}))},N_t=b.forwardRef(R_t),O_t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M396 512a112 112 0 10224 0 112 112 0 10-224 0zm546.2-25.8C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM508 688c-97.2 0-176-78.8-176-176s78.8-176 176-176 176 78.8 176 176-78.8 176-176 176z"}}]},name:"eye",theme:"filled"},L_t=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:O_t}))},P_t=b.forwardRef(L_t),k_t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M508 624a112 112 0 00112-112c0-3.28-.15-6.53-.43-9.74L498.26 623.57c3.21.28 6.45.43 9.74.43zm370.72-458.44L836 122.88a8 8 0 00-11.31 0L715.37 232.23Q624.91 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.7 119.43 136.55 191.45L112.56 835a8 8 0 000 11.31L155.25 889a8 8 0 0011.31 0l712.16-712.12a8 8 0 000-11.32zM332 512a176 176 0 01258.88-155.28l-48.62 48.62a112.08 112.08 0 00-140.92 140.92l-48.62 48.62A175.09 175.09 0 01332 512z"}},{tag:"path",attrs:{d:"M942.2 486.2Q889.4 375 816.51 304.85L672.37 449A176.08 176.08 0 01445 676.37L322.74 798.63Q407.82 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5z"}}]},name:"eye-invisible",theme:"filled"},M_t=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:k_t}))},D_t=b.forwardRef(M_t),$_t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},F_t=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:$_t}))},B_t=b.forwardRef(F_t),j_t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},z_t=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:j_t}))},Yce=b.forwardRef(z_t),U_t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M945 412H689c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h256c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM811 548H689c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h122c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM477.3 322.5H434c-6.2 0-11.2 5-11.2 11.2v248c0 3.6 1.7 6.9 4.6 9l148.9 108.6c5 3.6 12 2.6 15.6-2.4l25.7-35.1v-.1c3.6-5 2.5-12-2.5-15.6l-126.7-91.6V333.7c.1-6.2-5-11.2-11.1-11.2z"}},{tag:"path",attrs:{d:"M804.8 673.9H747c-5.6 0-10.9 2.9-13.9 7.7a321 321 0 01-44.5 55.7 317.17 317.17 0 01-101.3 68.3c-39.3 16.6-81 25-124 25-43.1 0-84.8-8.4-124-25-37.9-16-72-39-101.3-68.3s-52.3-63.4-68.3-101.3c-16.6-39.2-25-80.9-25-124 0-43.1 8.4-84.7 25-124 16-37.9 39-72 68.3-101.3 29.3-29.3 63.4-52.3 101.3-68.3 39.2-16.6 81-25 124-25 43.1 0 84.8 8.4 124 25 37.9 16 72 39 101.3 68.3a321 321 0 0144.5 55.7c3 4.8 8.3 7.7 13.9 7.7h57.8c6.9 0 11.3-7.2 8.2-13.3-65.2-129.7-197.4-214-345-215.7-216.1-2.7-395.6 174.2-396 390.1C71.6 727.5 246.9 903 463.2 903c149.5 0 283.9-84.6 349.8-215.8a9.18 9.18 0 00-8.2-13.3z"}}]},name:"field-time",theme:"outlined"},H_t=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:U_t}))},V_t=b.forwardRef(H_t),G_t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm376 116c-119.3 0-216 96.7-216 216s96.7 216 216 216 216-96.7 216-216-96.7-216-216-216zm107.5 323.5C750.8 868.2 712.6 884 672 884s-78.8-15.8-107.5-44.5C535.8 810.8 520 772.6 520 732s15.8-78.8 44.5-107.5C593.2 595.8 631.4 580 672 580s78.8 15.8 107.5 44.5C808.2 653.2 824 691.4 824 732s-15.8 78.8-44.5 107.5zM761 656h-44.3c-2.6 0-5 1.2-6.5 3.3l-63.5 87.8-23.1-31.9a7.92 7.92 0 00-6.5-3.3H573c-6.5 0-10.3 7.4-6.5 12.7l73.8 102.1c3.2 4.4 9.7 4.4 12.9 0l114.2-158c3.9-5.3.1-12.7-6.4-12.7zM440 852H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"file-done",theme:"outlined"},q_t=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:G_t}))},W_t=b.forwardRef(q_t),Y_t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},K_t=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:Y_t}))},uDe=b.forwardRef(K_t),X_t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM320 482a8 8 0 00-8 8v48a8 8 0 008 8h384a8 8 0 008-8v-48a8 8 0 00-8-8H320zm0 136a8 8 0 00-8 8v48a8 8 0 008 8h184a8 8 0 008-8v-48a8 8 0 00-8-8H320z"}}]},name:"file-text",theme:"filled"},Z_t=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:X_t}))},dDe=b.forwardRef(Z_t),Q_t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"},J_t=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:Q_t}))},e2t=b.forwardRef(J_t),t2t={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:n}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"},n2t=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:t2t}))},fDe=b.forwardRef(n2t),r2t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},i2t=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:r2t}))},a2t=b.forwardRef(i2t),o2t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z"}}]},name:"filter",theme:"outlined"},s2t=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:o2t}))},yj=b.forwardRef(s2t),l2t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 305H624V192c0-17.7-14.3-32-32-32H184v-40c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v784c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V640h248v113c0 17.7 14.3 32 32 32h416c17.7 0 32-14.3 32-32V337c0-17.7-14.3-32-32-32z"}}]},name:"flag",theme:"filled"},c2t=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:l2t}))},u2t=b.forwardRef(c2t),d2t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 305H624V192c0-17.7-14.3-32-32-32H184v-40c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v784c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V640h248v113c0 17.7 14.3 32 32 32h416c17.7 0 32-14.3 32-32V337c0-17.7-14.3-32-32-32zM184 568V232h368v336H184zm656 145H504v-73h112c4.4 0 8-3.6 8-8V377h216v336z"}}]},name:"flag",theme:"outlined"},f2t=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:d2t}))},p2t=b.forwardRef(f2t),h2t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},m2t=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:h2t}))},g2t=b.forwardRef(m2t),v2t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},y2t=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:v2t}))},b2t=b.forwardRef(y2t),_2t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M926 164H94c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V196c0-17.7-14.3-32-32-32zm-40 632H134V236h752v560zm-658.9-82.3c3.1 3.1 8.2 3.1 11.3 0l172.5-172.5 114.4 114.5c3.1 3.1 8.2 3.1 11.3 0l297-297.2c3.1-3.1 3.1-8.2 0-11.3l-36.8-36.8a8.03 8.03 0 00-11.3 0L531 565 416.6 450.5a8.03 8.03 0 00-11.3 0l-214.9 215a8.03 8.03 0 000 11.3l36.7 36.9z"}}]},name:"fund",theme:"outlined"},S2t=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:_2t}))},E2t=b.forwardRef(S2t),C2t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0010-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 003.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 00-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 01887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 01-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 01115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 01540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 00540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 01-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 00-81.5 55.9A373.86 373.86 0 01137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 01-107.6 69.2z"}}]},name:"global",theme:"outlined"},w2t=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:C2t}))},x2t=b.forwardRef(w2t),T2t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M536.1 273H488c-4.4 0-8 3.6-8 8v275.3c0 2.6 1.2 5 3.3 6.5l165.3 120.7c3.6 2.6 8.6 1.9 11.2-1.7l28.6-39c2.7-3.7 1.9-8.7-1.7-11.2L544.1 528.5V281c0-4.4-3.6-8-8-8zm219.8 75.2l156.8 38.3c5 1.2 9.9-2.6 9.9-7.7l.8-161.5c0-6.7-7.7-10.5-12.9-6.3L752.9 334.1a8 8 0 003 14.1zm167.7 301.1l-56.7-19.5a8 8 0 00-10.1 4.8c-1.9 5.1-3.9 10.1-6 15.1-17.8 42.1-43.3 80-75.9 112.5a353 353 0 01-112.5 75.9 352.18 352.18 0 01-137.7 27.8c-47.8 0-94.1-9.3-137.7-27.8a353 353 0 01-112.5-75.9c-32.5-32.5-58-70.4-75.9-112.5A353.44 353.44 0 01171 512c0-47.8 9.3-94.2 27.8-137.8 17.8-42.1 43.3-80 75.9-112.5a353 353 0 01112.5-75.9C430.6 167.3 477 158 524.8 158s94.1 9.3 137.7 27.8A353 353 0 01775 261.7c10.2 10.3 19.8 21 28.6 32.3l59.8-46.8C784.7 146.6 662.2 81.9 524.6 82 285 82.1 92.6 276.7 95 516.4 97.4 751.9 288.9 942 524.8 942c185.5 0 343.5-117.6 403.7-282.3 1.5-4.2-.7-8.9-4.9-10.4z"}}]},name:"history",theme:"outlined"},I2t=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:T2t}))},Kce=b.forwardRef(I2t),A2t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},R2t=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:A2t}))},N2t=b.forwardRef(R2t),O2t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M946.5 505L560.1 118.8l-25.9-25.9a31.5 31.5 0 00-44.4 0L77.5 505a63.9 63.9 0 00-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0018.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z"}}]},name:"home",theme:"outlined"},L2t=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:O2t}))},pDe=b.forwardRef(L2t),P2t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},k2t=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:P2t}))},rO=b.forwardRef(k2t),M2t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},D2t=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:M2t}))},om=b.forwardRef(D2t),$2t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-696 72h136v656H184V184zm656 656H384V384h456v456zM384 320V184h456v136H384z"}}]},name:"layout",theme:"outlined"},F2t=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:$2t}))},hDe=b.forwardRef(F2t),B2t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},j2t=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:B2t}))},AE=b.forwardRef(j2t),z2t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 00-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4A106.62 106.62 0 00471 99.9c-52 0-98 35-111.8 85.1l-85.9 311h-.3v428h472.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-.2-12.6-2-25.1-5.6-37.1zM112 528v364c0 17.7 14.3 32 32 32h65V496h-65c-17.7 0-32 14.3-32 32z"}}]},name:"like",theme:"filled"},U2t=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:z2t}))},vN=b.forwardRef(U2t),H2t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 00-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4A106.62 106.62 0 00471 99.9c-52 0-98 35-111.8 85.1l-85.9 311H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h601.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-.2-12.6-2-25.1-5.6-37.1zM184 852V568h81v284h-81zm636.4-353l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 22.4-13.2 42.6-33.6 51.8H329V564.8l99.5-360.5a44.1 44.1 0 0142.2-32.3c7.6 0 15.1 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.2 32.1-19.6 43z"}}]},name:"like",theme:"outlined"},V2t=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:H2t}))},yN=b.forwardRef(V2t),G2t={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M273 495.9v428l.3-428zm538.2-88.3H496.8l9.6-198.4c.6-11.9-4.7-23.1-14.6-30.5-6.1-4.5-13.6-6.8-21.1-6.7-19.6.1-36.9 13.4-42.2 32.3-37.1 134.4-64.9 235.2-83.5 302.5V852h399.4a56.85 56.85 0 0033.6-51.8c0-9.7-2.3-18.9-6.9-27.3l-13.9-25.4 21.9-19a56.76 56.76 0 0019.6-43c0-9.7-2.3-18.9-6.9-27.3l-13.9-25.4 21.9-19a56.76 56.76 0 0019.6-43c0-9.7-2.3-18.9-6.9-27.3l-14-25.5 21.9-19a56.76 56.76 0 0019.6-43c0-19.1-11-37.5-28.8-48.4z",fill:n}},{tag:"path",attrs:{d:"M112 528v364c0 17.7 14.3 32 32 32h65V496h-65c-17.7 0-32 14.3-32 32zm773.9 5.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.5-65.5-111a67.67 67.67 0 00-34.3-9.3H572.3l6-122.9c1.5-29.7-9-57.9-29.5-79.4a106.4 106.4 0 00-77.9-33.4c-52 0-98 35-111.8 85.1l-85.8 310.8-.3 428h472.1c9.3 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37zM820.4 499l-21.9 19 14 25.5a56.2 56.2 0 016.9 27.3c0 16.5-7.1 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.1 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 22.4-13.2 42.6-33.6 51.8H345V506.8c18.6-67.2 46.4-168 83.5-302.5a44.28 44.28 0 0142.2-32.3c7.5-.1 15 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.1 32.2-19.6 43z",fill:t}}]}},name:"like",theme:"twotone"},q2t=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:G2t}))},W2t=b.forwardRef(q2t),Y2t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM305.8 637.7c3.1 3.1 8.1 3.1 11.3 0l138.3-137.6L583 628.5c3.1 3.1 8.2 3.1 11.3 0l275.4-275.3c3.1-3.1 3.1-8.2 0-11.3l-39.6-39.6a8.03 8.03 0 00-11.3 0l-230 229.9L461.4 404a8.03 8.03 0 00-11.3 0L266.3 586.7a8.03 8.03 0 000 11.3l39.5 39.7z"}}]},name:"line-chart",theme:"outlined"},K2t=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:Y2t}))},X2t=b.forwardRef(K2t),Z2t={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 1024c-69.1 0-136.2-13.5-199.3-40.2C251.7 958 197 921 150 874c-47-47-84-101.7-109.8-162.7C13.5 648.2 0 581.1 0 512c0-19.9 16.1-36 36-36s36 16.1 36 36c0 59.4 11.6 117 34.6 171.3 22.2 52.4 53.9 99.5 94.3 139.9 40.4 40.4 87.5 72.2 139.9 94.3C395 940.4 452.6 952 512 952c59.4 0 117-11.6 171.3-34.6 52.4-22.2 99.5-53.9 139.9-94.3 40.4-40.4 72.2-87.5 94.3-139.9C940.4 629 952 571.4 952 512c0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.2C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3s-13.5 136.2-40.2 199.3C958 772.3 921 827 874 874c-47 47-101.8 83.9-162.7 109.7-63.1 26.8-130.2 40.3-199.3 40.3z"}}]},name:"loading-3-quarters",theme:"outlined"},Q2t=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:Z2t}))},J2t=b.forwardRef(Q2t),eSt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},tSt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:eSt}))},Np=b.forwardRef(tSt),nSt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 01-112.7 75.9A352.8 352.8 0 01512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 01-112.7-75.9 353.28 353.28 0 01-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 000-12.6z"}}]},name:"logout",theme:"outlined"},rSt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:nSt}))},iSt=b.forwardRef(rSt),aSt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 110.8V792H136V270.8l-27.6-21.5 39.3-50.5 42.8 33.3h643.1l42.8-33.3 39.3 50.5-27.7 21.5zM833.6 232L512 482 190.4 232l-42.8-33.3-39.3 50.5 27.6 21.5 341.6 265.6a55.99 55.99 0 0068.7 0L888 270.8l27.6-21.5-39.3-50.5-42.7 33.2z"}}]},name:"mail",theme:"outlined"},oSt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:aSt}))},sSt=b.forwardRef(oSt),lSt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 512a48 48 0 1096 0 48 48 0 10-96 0zm200 0a48 48 0 1096 0 48 48 0 10-96 0zm-400 0a48 48 0 1096 0 48 48 0 10-96 0zm661.2-173.6c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z"}}]},name:"message",theme:"outlined"},cSt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:lSt}))},uSt=b.forwardRef(cSt),dSt={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M775.3 248.9a369.62 369.62 0 00-119-80A370.2 370.2 0 00512.1 140h-1.7c-99.7.4-193 39.4-262.8 109.9-69.9 70.5-108 164.1-107.6 263.8.3 60.3 15.3 120.2 43.5 173.1l4.5 8.4V836h140.8l8.4 4.5c52.9 28.2 112.8 43.2 173.1 43.5h1.7c99 0 192-38.2 262.1-107.6 70.4-69.8 109.5-163.1 110.1-262.7.2-50.6-9.5-99.6-28.9-145.8a370.15 370.15 0 00-80-119zM312 560a48.01 48.01 0 010-96 48.01 48.01 0 010 96zm200 0a48.01 48.01 0 010-96 48.01 48.01 0 010 96zm200 0a48.01 48.01 0 010-96 48.01 48.01 0 010 96z",fill:n}},{tag:"path",attrs:{d:"M664 512a48 48 0 1096 0 48 48 0 10-96 0zm-400 0a48 48 0 1096 0 48 48 0 10-96 0z",fill:t}},{tag:"path",attrs:{d:"M925.2 338.4c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z",fill:t}},{tag:"path",attrs:{d:"M464 512a48 48 0 1096 0 48 48 0 10-96 0z",fill:t}}]}},name:"message",theme:"twotone"},fSt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:dSt}))},pSt=b.forwardRef(fSt),hSt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"},mSt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:hSt}))},gSt=b.forwardRef(mSt),vSt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"minus",theme:"outlined"},ySt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:vSt}))},bSt=b.forwardRef(ySt),_St={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},SSt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:_St}))},ESt=b.forwardRef(SSt),CSt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M456 231a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"more",theme:"outlined"},wSt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:CSt}))},Xb=b.forwardRef(wSt),xSt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M843.5 737.4c-12.4-75.2-79.2-129.1-155.3-125.4S550.9 676 546 752c-153.5-4.8-208-40.7-199.1-113.7 3.3-27.3 19.8-41.9 50.1-49 18.4-4.3 38.8-4.9 57.3-3.2 1.7.2 3.5.3 5.2.5 11.3 2.7 22.8 5 34.3 6.8 34.1 5.6 68.8 8.4 101.8 6.6 92.8-5 156-45.9 159.2-132.7 3.1-84.1-54.7-143.7-147.9-183.6-29.9-12.8-61.6-22.7-93.3-30.2-14.3-3.4-26.3-5.7-35.2-7.2-7.9-75.9-71.5-133.8-147.8-134.4-76.3-.6-140.9 56.1-150.1 131.9s40 146.3 114.2 163.9c74.2 17.6 149.9-23.3 175.7-95.1 9.4 1.7 18.7 3.6 28 5.8 28.2 6.6 56.4 15.4 82.4 26.6 70.7 30.2 109.3 70.1 107.5 119.9-1.6 44.6-33.6 65.2-96.2 68.6-27.5 1.5-57.6-.9-87.3-5.8-8.3-1.4-15.9-2.8-22.6-4.3-3.9-.8-6.6-1.5-7.8-1.8l-3.1-.6c-2.2-.3-5.9-.8-10.7-1.3-25-2.3-52.1-1.5-78.5 4.6-55.2 12.9-93.9 47.2-101.1 105.8-15.7 126.2 78.6 184.7 276 188.9 29.1 70.4 106.4 107.9 179.6 87 73.3-20.9 119.3-93.4 106.9-168.6zM329.1 345.2a83.3 83.3 0 11.01-166.61 83.3 83.3 0 01-.01 166.61zM695.6 845a83.3 83.3 0 11.01-166.61A83.3 83.3 0 01695.6 845z"}}]},name:"node-index",theme:"outlined"},TSt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:xSt}))},ISt=b.forwardRef(TSt),ASt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},RSt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:ASt}))},mDe=b.forwardRef(RSt),NSt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M640.6 429.8h257.1c7.9 0 14.3-6.4 14.3-14.3V158.3c0-7.9-6.4-14.3-14.3-14.3H640.6c-7.9 0-14.3 6.4-14.3 14.3v92.9H490.6c-3.9 0-7.1 3.2-7.1 7.1v221.5h-85.7v-96.5c0-7.9-6.4-14.3-14.3-14.3H126.3c-7.9 0-14.3 6.4-14.3 14.3v257.2c0 7.9 6.4 14.3 14.3 14.3h257.1c7.9 0 14.3-6.4 14.3-14.3V544h85.7v221.5c0 3.9 3.2 7.1 7.1 7.1h135.7v92.9c0 7.9 6.4 14.3 14.3 14.3h257.1c7.9 0 14.3-6.4 14.3-14.3v-257c0-7.9-6.4-14.3-14.3-14.3h-257c-7.9 0-14.3 6.4-14.3 14.3v100h-78.6v-393h78.6v100c0 7.9 6.4 14.3 14.3 14.3zm53.5-217.9h150V362h-150V211.9zM329.9 587h-150V437h150v150zm364.2 75.1h150v150.1h-150V662.1z"}}]},name:"partition",theme:"outlined"},OSt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:NSt}))},gDe=b.forwardRef(OSt),LSt={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:n}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:n}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:n}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"},PSt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:LSt}))},kSt=b.forwardRef(PSt),MSt={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M316.2 920.5c-47.6-20.1-90.4-49-127.1-85.7a398.19 398.19 0 01-85.7-127.1A397.12 397.12 0 0172 552.2v.2a398.57 398.57 0 00117 282.5c36.7 36.7 79.4 65.5 127 85.6A396.64 396.64 0 00471.6 952c27 0 53.6-2.7 79.7-7.9-25.9 5.2-52.4 7.8-79.3 7.8-54 .1-106.4-10.5-155.8-31.4zM560 472c-4.4 0-8-3.6-8-8V79.9c0-1.3.3-2.5.9-3.6-.9 1.3-1.5 2.9-1.5 4.6v383.7c0 4.4 3.6 8 8 8l383.6-1c1.6 0 3.1-.5 4.4-1.3-1 .5-2.2.7-3.4.7l-384 1z",fill:n}},{tag:"path",attrs:{d:"M619.8 147.6v256.6l256.4-.7c-13-62.5-44.3-120.5-90-166.1a332.24 332.24 0 00-166.4-89.8z",fill:n}},{tag:"path",attrs:{d:"M438 221.7c-75.9 7.6-146.2 40.9-200.8 95.5C174.5 379.9 140 463.3 140 552s34.5 172.1 97.2 234.8c62.3 62.3 145.1 96.8 233.2 97.2 88.2.4 172.7-34.1 235.3-96.2C761 733 794.6 662.3 802.3 586H438V221.7z",fill:n}},{tag:"path",attrs:{d:"M864 518H506V160c0-4.4-3.6-8-8-8h-26a398.46 398.46 0 00-282.8 117.1 398.19 398.19 0 00-85.7 127.1A397.61 397.61 0 0072 552v.2c0 53.9 10.6 106.2 31.4 155.5 20.1 47.6 49 90.4 85.7 127.1 36.7 36.7 79.5 65.6 127.1 85.7A397.61 397.61 0 00472 952c26.9 0 53.4-2.6 79.3-7.8 26.1-5.3 51.7-13.1 76.4-23.6 47.6-20.1 90.4-49 127.1-85.7 36.7-36.7 65.6-79.5 85.7-127.1A397.61 397.61 0 00872 552v-26c0-4.4-3.6-8-8-8zM705.7 787.8A331.59 331.59 0 01470.4 884c-88.1-.4-170.9-34.9-233.2-97.2C174.5 724.1 140 640.7 140 552s34.5-172.1 97.2-234.8c54.6-54.6 124.9-87.9 200.8-95.5V586h364.3c-7.7 76.3-41.3 147-96.6 201.8z",fill:t}},{tag:"path",attrs:{d:"M952 462.4l-2.6-28.2c-8.5-92.1-49.4-179-115.2-244.6A399.4 399.4 0 00589 74.6L560.7 72c-3.4-.3-6.4 1.5-7.8 4.3a8.7 8.7 0 00-.9 3.6V464c0 4.4 3.6 8 8 8l384-1c1.2 0 2.3-.3 3.4-.7a8.1 8.1 0 004.6-7.9zm-332.2-58.2V147.6a332.24 332.24 0 01166.4 89.8c45.7 45.6 77 103.6 90 166.1l-256.4.7z",fill:t}}]}},name:"pie-chart",theme:"twotone"},DSt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:MSt}))},$St=b.forwardRef(DSt),FSt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M719.4 499.1l-296.1-215A15.9 15.9 0 00398 297v430c0 13.1 14.8 20.5 25.3 12.9l296.1-215a15.9 15.9 0 000-25.8zm-257.6 134V390.9L628.5 512 461.8 633.1z"}}]},name:"play-circle",theme:"outlined"},BSt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:FSt}))},jSt=b.forwardRef(BSt),zSt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},USt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:zSt}))},HSt=b.forwardRef(USt),VSt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},GSt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:VSt}))},Td=b.forwardRef(GSt),qSt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},WSt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:qSt}))},YSt=b.forwardRef(WSt),KSt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M280 752h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8zm192-280h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v184c0 4.4 3.6 8 8 8zm192 72h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v256c0 4.4 3.6 8 8 8zm216-432H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"project",theme:"outlined"},XSt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:KSt}))},ZSt=b.forwardRef(XSt),QSt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},JSt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:QSt}))},p$=b.forwardRef(JSt),eEt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M764 280.9c-14-30.6-33.9-58.1-59.3-81.6C653.1 151.4 584.6 125 512 125s-141.1 26.4-192.7 74.2c-25.4 23.6-45.3 51-59.3 81.7-14.6 32-22 65.9-22 100.9v27c0 6.2 5 11.2 11.2 11.2h54c6.2 0 11.2-5 11.2-11.2v-27c0-99.5 88.6-180.4 197.6-180.4s197.6 80.9 197.6 180.4c0 40.8-14.5 79.2-42 111.2-27.2 31.7-65.6 54.4-108.1 64-24.3 5.5-46.2 19.2-61.7 38.8a110.85 110.85 0 00-23.9 68.6v31.4c0 6.2 5 11.2 11.2 11.2h54c6.2 0 11.2-5 11.2-11.2v-31.4c0-15.7 10.9-29.5 26-32.9 58.4-13.2 111.4-44.7 149.3-88.7 19.1-22.3 34-47.1 44.3-74 10.7-27.9 16.1-57.2 16.1-87 0-35-7.4-69-22-100.9zM512 787c-30.9 0-56 25.1-56 56s25.1 56 56 56 56-25.1 56-56-25.1-56-56-56z"}}]},name:"question",theme:"outlined"},tEt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:eEt}))},nEt=b.forwardRef(tEt),rEt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 161H699.2c-49.1 0-97.1 14.1-138.4 40.7L512 233l-48.8-31.3A255.2 255.2 0 00324.8 161H96c-17.7 0-32 14.3-32 32v568c0 17.7 14.3 32 32 32h228.8c49.1 0 97.1 14.1 138.4 40.7l44.4 28.6c1.3.8 2.8 1.3 4.3 1.3s3-.4 4.3-1.3l44.4-28.6C602 807.1 650.1 793 699.2 793H928c17.7 0 32-14.3 32-32V193c0-17.7-14.3-32-32-32zM324.8 721H136V233h188.8c35.4 0 69.8 10.1 99.5 29.2l48.8 31.3 6.9 4.5v462c-47.6-25.6-100.8-39-155.2-39zm563.2 0H699.2c-54.4 0-107.6 13.4-155.2 39V298l6.9-4.5 48.8-31.3c29.7-19.1 64.1-29.2 99.5-29.2H888v488zM396.9 361H211.1c-3.9 0-7.1 3.4-7.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c.1-4.1-3.1-7.5-7-7.5zm223.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c0-4.1-3.2-7.5-7.1-7.5H627.1c-3.9 0-7.1 3.4-7.1 7.5zM396.9 501H211.1c-3.9 0-7.1 3.4-7.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c.1-4.1-3.1-7.5-7-7.5zm416 0H627.1c-3.9 0-7.1 3.4-7.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c.1-4.1-3.1-7.5-7-7.5z"}}]},name:"read",theme:"outlined"},iEt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:rEt}))},aEt=b.forwardRef(iEt),oEt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"},sEt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:oEt}))},h$=b.forwardRef(sEt),lEt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},cEt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:lEt}))},Zb=b.forwardRef(cEt),uEt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M917 211.1l-199.2 24c-6.6.8-9.4 8.9-4.7 13.6l59.3 59.3-226 226-101.8-101.7c-6.3-6.3-16.4-6.2-22.6 0L100.3 754.1a8.03 8.03 0 000 11.3l45 45.2c3.1 3.1 8.2 3.1 11.3 0L433.3 534 535 635.7c6.3 6.2 16.4 6.2 22.6 0L829 364.5l59.3 59.3a8.01 8.01 0 0013.6-4.7l24-199.2c.7-5.1-3.7-9.5-8.9-8.8z"}}]},name:"rise",theme:"outlined"},dEt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:uEt}))},fEt=b.forwardRef(dEt),pEt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},hEt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:pEt}))},mEt=b.forwardRef(hEt),gEt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},vEt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:gEt}))},yEt=b.forwardRef(vEt),bEt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},_Et=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:bEt}))},bj=b.forwardRef(_Et),SEt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2a15.99 15.99 0 00-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-.9 3.7-.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 .7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-.8 4.2-2.6 5-5 1.4-4.2-.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"}}]},name:"send",theme:"outlined"},EEt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:SEt}))},Xce=b.forwardRef(EEt),CEt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512.5 390.6c-29.9 0-57.9 11.6-79.1 32.8-21.1 21.2-32.8 49.2-32.8 79.1 0 29.9 11.7 57.9 32.8 79.1 21.2 21.1 49.2 32.8 79.1 32.8 29.9 0 57.9-11.7 79.1-32.8 21.1-21.2 32.8-49.2 32.8-79.1 0-29.9-11.7-57.9-32.8-79.1a110.96 110.96 0 00-79.1-32.8zm412.3 235.5l-65.4-55.9c3.1-19 4.7-38.4 4.7-57.7s-1.6-38.8-4.7-57.7l65.4-55.9a32.03 32.03 0 009.3-35.2l-.9-2.6a442.5 442.5 0 00-79.6-137.7l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.2 28.9c-30-24.6-63.4-44-99.6-57.5l-15.7-84.9a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52-9.4-106.8-9.4-158.8 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.3a353.44 353.44 0 00-98.9 57.3l-81.8-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a445.93 445.93 0 00-79.6 137.7l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.2 56.5c-3.1 18.8-4.6 38-4.6 57 0 19.2 1.5 38.4 4.6 57l-66 56.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.3 44.8 96.8 79.6 137.7l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.8-29.1c29.8 24.5 63 43.9 98.9 57.3l15.8 85.3a32.05 32.05 0 0025.8 25.7l2.7.5a448.27 448.27 0 00158.8 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-84.9c36.2-13.6 69.6-32.9 99.6-57.5l81.2 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.5-87.4 79.6-137.7l.9-2.6c4.3-12.4.6-26.3-9.5-35zm-412.3 52.2c-97.1 0-175.8-78.7-175.8-175.8s78.7-175.8 175.8-175.8 175.8 78.7 175.8 175.8-78.7 175.8-175.8 175.8z"}}]},name:"setting",theme:"filled"},wEt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:CEt}))},xEt=b.forwardRef(wEt),TEt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M881.7 187.4l-45.1-45.1a8.03 8.03 0 00-11.3 0L667.8 299.9l-54.7-54.7a7.94 7.94 0 00-13.5 4.7L576.1 439c-.6 5.2 3.7 9.5 8.9 8.9l189.2-23.5c6.6-.8 9.3-8.8 4.7-13.5l-54.7-54.7 157.6-157.6c3-3 3-8.1-.1-11.2zM439 576.1l-189.2 23.5c-6.6.8-9.3 8.9-4.7 13.5l54.7 54.7-157.5 157.5a8.03 8.03 0 000 11.3l45.1 45.1c3.1 3.1 8.2 3.1 11.3 0l157.6-157.6 54.7 54.7a7.94 7.94 0 0013.5-4.7L447.9 585a7.9 7.9 0 00-8.9-8.9z"}}]},name:"shrink",theme:"outlined"},IEt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:TEt}))},Gne=b.forwardRef(IEt),AEt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},REt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:AEt}))},qne=b.forwardRef(REt),NEt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},OEt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:NEt}))},LEt=b.forwardRef(OEt),PEt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 01755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 01512.1 856a342.24 342.24 0 01-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 00-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 00-8-8.2z"}}]},name:"sync",theme:"outlined"},kEt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:PEt}))},F9=b.forwardRef(kEt),MEt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 208H676V232h212v136zm0 224H676V432h212v160zM412 432h200v160H412V432zm200-64H412V232h200v136zm-476 64h212v160H136V432zm0-200h212v136H136V232zm0 424h212v136H136V656zm276 0h200v136H412V656zm476 136H676V656h212v136z"}}]},name:"table",theme:"outlined"},DEt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:MEt}))},$Et=b.forwardRef(DEt),FEt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M483.2 790.3L861.4 412c1.7-1.7 2.5-4 2.3-6.3l-25.5-301.4c-.7-7.8-6.8-13.9-14.6-14.6L522.2 64.3c-2.3-.2-4.7.6-6.3 2.3L137.7 444.8a8.03 8.03 0 000 11.3l334.2 334.2c3.1 3.2 8.2 3.2 11.3 0zm62.6-651.7l224.6 19 19 224.6L477.5 694 233.9 450.5l311.9-311.9zm60.16 186.23a48 48 0 1067.88-67.89 48 48 0 10-67.88 67.89zM889.7 539.8l-39.6-39.5a8.03 8.03 0 00-11.3 0l-362 361.3-237.6-237a8.03 8.03 0 00-11.3 0l-39.6 39.5a8.03 8.03 0 000 11.3l243.2 242.8 39.6 39.5c3.1 3.1 8.2 3.1 11.3 0l407.3-406.6c3.1-3.1 3.1-8.2 0-11.3z"}}]},name:"tags",theme:"outlined"},BEt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:FEt}))},jEt=b.forwardRef(BEt),zEt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},UEt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:zEt}))},vDe=b.forwardRef(UEt),HEt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},VEt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:HEt}))},m$=b.forwardRef(VEt),GEt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M678.3 642.4c24.2-13 51.9-20.4 81.4-20.4h.1c3 0 4.4-3.6 2.2-5.6a371.67 371.67 0 00-103.7-65.8c-.4-.2-.8-.3-1.2-.5C719.2 505 759.6 431.7 759.6 349c0-137-110.8-248-247.5-248S264.7 212 264.7 349c0 82.7 40.4 156 102.6 201.1-.4.2-.8.3-1.2.5-44.7 18.9-84.8 46-119.3 80.6a373.42 373.42 0 00-80.4 119.5A373.6 373.6 0 00137 888.8a8 8 0 008 8.2h59.9c4.3 0 7.9-3.5 8-7.8 2-77.2 32.9-149.5 87.6-204.3C357 628.2 432.2 597 512.2 597c56.7 0 111.1 15.7 158 45.1a8.1 8.1 0 008.1.3zM512.2 521c-45.8 0-88.9-17.9-121.4-50.4A171.2 171.2 0 01340.5 349c0-45.9 17.9-89.1 50.3-121.6S466.3 177 512.2 177s88.9 17.9 121.4 50.4A171.2 171.2 0 01683.9 349c0 45.9-17.9 89.1-50.3 121.6C601.1 503.1 558 521 512.2 521zM880 759h-84v-84c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v84h-84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h84v84c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-84h84c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"user-add",theme:"outlined"},qEt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:GEt}))},WEt=b.forwardRef(qEt),YEt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M678.3 655.4c24.2-13 51.9-20.4 81.4-20.4h.1c3 0 4.4-3.6 2.2-5.6a371.67 371.67 0 00-103.7-65.8c-.4-.2-.8-.3-1.2-.5C719.2 518 759.6 444.7 759.6 362c0-137-110.8-248-247.5-248S264.7 225 264.7 362c0 82.7 40.4 156 102.6 201.1-.4.2-.8.3-1.2.5-44.7 18.9-84.8 46-119.3 80.6a373.42 373.42 0 00-80.4 119.5A373.6 373.6 0 00137 901.8a8 8 0 008 8.2h59.9c4.3 0 7.9-3.5 8-7.8 2-77.2 32.9-149.5 87.6-204.3C357 641.2 432.2 610 512.2 610c56.7 0 111.1 15.7 158 45.1a8.1 8.1 0 008.1.3zM512.2 534c-45.8 0-88.9-17.9-121.4-50.4A171.2 171.2 0 01340.5 362c0-45.9 17.9-89.1 50.3-121.6S466.3 190 512.2 190s88.9 17.9 121.4 50.4A171.2 171.2 0 01683.9 362c0 45.9-17.9 89.1-50.3 121.6C601.1 516.1 558 534 512.2 534zM880 772H640c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h240c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"user-delete",theme:"outlined"},KEt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:YEt}))},XEt=b.forwardRef(KEt),ZEt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"},QEt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:ZEt}))},Zce=b.forwardRef(QEt),JEt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M759 335c0-137-111-248-248-248S263 198 263 335c0 82.8 40.6 156.2 103 201.2-.4.2-.7.3-.9.4-44.7 18.9-84.8 46-119.3 80.6a373.42 373.42 0 00-80.4 119.5A373.6 373.6 0 00136 874.8a8 8 0 008 8.2h59.9c4.3 0 7.9-3.5 8-7.8 2-77.2 32.9-149.5 87.6-204.3C356 614.2 431 583 511 583c137 0 248-111 248-248zM511 507c-95 0-172-77-172-172s77-172 172-172 172 77 172 172-77 172-172 172zm105 221h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H703.5l47.2-60.1a8.1 8.1 0 001.7-4.9c0-4.4-3.6-8-8-8h-72.6c-4.9 0-9.5 2.3-12.6 6.1l-68.5 87.1c-4.4 5.6-6.8 12.6-6.8 19.8.1 17.7 14.4 32 32.1 32zm240 64H592c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h176.5l-47.2 60.1a8.1 8.1 0 00-1.7 4.9c0 4.4 3.6 8 8 8h72.6c4.9 0 9.5-2.3 12.6-6.1l68.5-87.1c4.4-5.6 6.8-12.6 6.8-19.8-.1-17.7-14.4-32-32.1-32z"}}]},name:"user-switch",theme:"outlined"},eCt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:JEt}))},vye=b.forwardRef(eCt),tCt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"},nCt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:tCt}))},_j=b.forwardRef(nCt),rCt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z"}}]},name:"warning",theme:"outlined"},iCt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:rCt}))},Qce=b.forwardRef(iCt),aCt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},oCt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:aCt}))},sCt=b.forwardRef(oCt),lCt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},cCt=function(t,n){return b.createElement(dn,Xe({},t,{ref:n,icon:lCt}))},uCt=b.forwardRef(cCt),yDe={exports:{}},Qa={};/**
 * @license React
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Jce=Symbol.for("react.element"),eue=Symbol.for("react.portal"),Sj=Symbol.for("react.fragment"),Ej=Symbol.for("react.strict_mode"),Cj=Symbol.for("react.profiler"),wj=Symbol.for("react.provider"),xj=Symbol.for("react.context"),dCt=Symbol.for("react.server_context"),Tj=Symbol.for("react.forward_ref"),Ij=Symbol.for("react.suspense"),Aj=Symbol.for("react.suspense_list"),Rj=Symbol.for("react.memo"),Nj=Symbol.for("react.lazy"),fCt=Symbol.for("react.offscreen"),bDe;bDe=Symbol.for("react.module.reference");function jp(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Jce:switch(e=e.type,e){case Sj:case Cj:case Ej:case Ij:case Aj:return e;default:switch(e=e&&e.$$typeof,e){case dCt:case xj:case Tj:case Nj:case Rj:case wj:return e;default:return t}}case eue:return t}}}Qa.ContextConsumer=xj;Qa.ContextProvider=wj;Qa.Element=Jce;Qa.ForwardRef=Tj;Qa.Fragment=Sj;Qa.Lazy=Nj;Qa.Memo=Rj;Qa.Portal=eue;Qa.Profiler=Cj;Qa.StrictMode=Ej;Qa.Suspense=Ij;Qa.SuspenseList=Aj;Qa.isAsyncMode=function(){return!1};Qa.isConcurrentMode=function(){return!1};Qa.isContextConsumer=function(e){return jp(e)===xj};Qa.isContextProvider=function(e){return jp(e)===wj};Qa.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Jce};Qa.isForwardRef=function(e){return jp(e)===Tj};Qa.isFragment=function(e){return jp(e)===Sj};Qa.isLazy=function(e){return jp(e)===Nj};Qa.isMemo=function(e){return jp(e)===Rj};Qa.isPortal=function(e){return jp(e)===eue};Qa.isProfiler=function(e){return jp(e)===Cj};Qa.isStrictMode=function(e){return jp(e)===Ej};Qa.isSuspense=function(e){return jp(e)===Ij};Qa.isSuspenseList=function(e){return jp(e)===Aj};Qa.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Sj||e===Cj||e===Ej||e===Ij||e===Aj||e===fCt||typeof e=="object"&&e!==null&&(e.$$typeof===Nj||e.$$typeof===Rj||e.$$typeof===wj||e.$$typeof===xj||e.$$typeof===Tj||e.$$typeof===bDe||e.getModuleId!==void 0)};Qa.typeOf=jp;yDe.exports=Qa;var tE=yDe.exports;const pCt=qo(tE);function hC(e,t,n){var r=b.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var bN=function(t,n){typeof t=="function"?t(n):cn(t)==="object"&&t&&"current"in t&&(t.current=n)},Ll=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n.filter(Boolean);return i.length<=1?i[0]:function(a){n.forEach(function(o){bN(o,a)})}},hv=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return hC(function(){return Ll.apply(void 0,n)},n,function(i,a){return i.length!==a.length||i.every(function(o,s){return o!==a[s]})})},sm=function(t){var n,r,i=tE.isMemo(t)?t.type.type:t.type;return!(typeof i=="function"&&!((n=i.prototype)!==null&&n!==void 0&&n.render)&&i.$$typeof!==tE.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==tE.ForwardRef)};function Wne(e){return b.isValidElement(e)&&!tE.isFragment(e)}var hCt=function(t){return Wne(t)&&sm(t)};Number(b.version.split(".")[0])>=19;var mCt=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],g$=b.forwardRef(function(e,t){var n=e.className,r=e.component,i=e.viewBox,a=e.spin,o=e.rotate,s=e.tabIndex,l=e.onClick,c=e.children,u=$n(e,mCt),d=b.useRef(),f=hv(d,t);zne(!!(r||c),"Should have `component` prop or `children`."),oDe(d);var p=b.useContext(fj),h=p.prefixCls,m=h===void 0?"anticon":h,g=p.rootClassName,v=Oe(g,m,be({},"".concat(m,"-spin"),!!a&&!!r),n),y=Oe(be({},"".concat(m,"-spin"),!!a)),_=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,S=we(we({},Ayt),{},{className:y,style:_,viewBox:i});i||delete S.viewBox;var C=function(){return r?b.createElement(r,S,c):c?(zne(!!i||b.Children.count(c)===1&&b.isValidElement(c)&&b.Children.only(c).type==="use","Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),b.createElement("svg",Xe({},S,{viewBox:i}),c)):null},w=s;return w===void 0&&l&&(w=-1),b.createElement("span",Xe({role:"img"},u,{ref:f,tabIndex:w,onClick:l,className:v}),C())});g$.displayName="AntdIcon";var Yne=function(e,t){return Yne=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},Yne(e,t)};function gCt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Yne(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var ds=function(){return ds=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},ds.apply(this,arguments)};function vCt(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Hy(e,t,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{c(r.next(u))}catch(d){o(d)}}function l(u){try{c(r.throw(u))}catch(d){o(d)}}function c(u){u.done?a(u.value):i(u.value).then(s,l)}c((r=r.apply(e,[])).next())})}function Vy(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(c){return function(u){return l([c,u])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(n=0)),n;)try{if(r=1,i&&(a=c[0]&2?i.return:c[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,c[1])).done)return a;switch(i=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){n.label=c[1];break}if(c[0]===6&&n.label<a[1]){n.label=a[1],a=c;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(c);break}a[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(u){c=[6,u],i=0}finally{r=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function Cg(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function"){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}var ES=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function tue(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function nue(e,t){return e(t={exports:{}},t.exports),t.exports}var lS=nue(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function r(){var i=this;this.locked=new Map,this.addToLocked=function(a,o){var s=i.locked.get(a);s===void 0?o===void 0?i.locked.set(a,[]):i.locked.set(a,[o]):o!==void 0&&(s.unshift(o),i.locked.set(a,s))},this.isLocked=function(a){return i.locked.has(a)},this.lock=function(a){return new Promise(function(o,s){i.isLocked(a)?i.addToLocked(a,o):(i.addToLocked(a),o())})},this.unlock=function(a){var o=i.locked.get(a);if(o!==void 0&&o.length!==0){var s=o.pop();i.locked.set(a,o),s!==void 0&&setTimeout(s,0)}else i.locked.delete(a)}}return r.getInstance=function(){return r.instance===void 0&&(r.instance=new r),r.instance},r}();t.default=function(){return n.getInstance()}});tue(lS);var yCt=tue(nue(function(e,t){var n=ES&&ES.__awaiter||function(u,d,f,p){return new(f||(f=Promise))(function(h,m){function g(_){try{y(p.next(_))}catch(S){m(S)}}function v(_){try{y(p.throw(_))}catch(S){m(S)}}function y(_){_.done?h(_.value):new f(function(S){S(_.value)}).then(g,v)}y((p=p.apply(u,d||[])).next())})},r=ES&&ES.__generator||function(u,d){var f,p,h,m,g={label:0,sent:function(){if(1&h[0])throw h[1];return h[1]},trys:[],ops:[]};return m={next:v(0),throw:v(1),return:v(2)},typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function v(y){return function(_){return function(S){if(f)throw new TypeError("Generator is already executing.");for(;g;)try{if(f=1,p&&(h=2&S[0]?p.return:S[0]?p.throw||((h=p.return)&&h.call(p),0):p.next)&&!(h=h.call(p,S[1])).done)return h;switch(p=0,h&&(S=[2&S[0],h.value]),S[0]){case 0:case 1:h=S;break;case 4:return g.label++,{value:S[1],done:!1};case 5:g.label++,p=S[1],S=[0];continue;case 7:S=g.ops.pop(),g.trys.pop();continue;default:if(h=g.trys,!((h=h.length>0&&h[h.length-1])||S[0]!==6&&S[0]!==2)){g=0;continue}if(S[0]===3&&(!h||S[1]>h[0]&&S[1]<h[3])){g.label=S[1];break}if(S[0]===6&&g.label<h[1]){g.label=h[1],h=S;break}if(h&&g.label<h[2]){g.label=h[2],g.ops.push(S);break}h[2]&&g.ops.pop(),g.trys.pop();continue}S=d.call(u,g)}catch(C){S=[6,C],p=0}finally{f=h=0}if(5&S[0])throw S[1];return{value:S[0]?S[1]:void 0,done:!0}}([y,_])}}},i=ES;Object.defineProperty(t,"__esModule",{value:!0});var a="browser-tabs-lock-key",o={key:function(u){return n(i,void 0,void 0,function(){return r(this,function(d){throw new Error("Unsupported")})})},getItem:function(u){return n(i,void 0,void 0,function(){return r(this,function(d){throw new Error("Unsupported")})})},clear:function(){return n(i,void 0,void 0,function(){return r(this,function(u){return[2,window.localStorage.clear()]})})},removeItem:function(u){return n(i,void 0,void 0,function(){return r(this,function(d){throw new Error("Unsupported")})})},setItem:function(u,d){return n(i,void 0,void 0,function(){return r(this,function(f){throw new Error("Unsupported")})})},keySync:function(u){return window.localStorage.key(u)},getItemSync:function(u){return window.localStorage.getItem(u)},clearSync:function(){return window.localStorage.clear()},removeItemSync:function(u){return window.localStorage.removeItem(u)},setItemSync:function(u,d){return window.localStorage.setItem(u,d)}};function s(u){return new Promise(function(d){return setTimeout(d,u)})}function l(u){for(var d="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",f="",p=0;p<u;p++)f+=d[Math.floor(Math.random()*d.length)];return f}var c=function(){function u(d){this.acquiredIatSet=new Set,this.storageHandler=void 0,this.id=Date.now().toString()+l(15),this.acquireLock=this.acquireLock.bind(this),this.releaseLock=this.releaseLock.bind(this),this.releaseLock__private__=this.releaseLock__private__.bind(this),this.waitForSomethingToChange=this.waitForSomethingToChange.bind(this),this.refreshLockWhileAcquired=this.refreshLockWhileAcquired.bind(this),this.storageHandler=d,u.waiters===void 0&&(u.waiters=[])}return u.prototype.acquireLock=function(d,f){return f===void 0&&(f=5e3),n(this,void 0,void 0,function(){var p,h,m,g,v,y,_;return r(this,function(S){switch(S.label){case 0:p=Date.now()+l(4),h=Date.now()+f,m=a+"-"+d,g=this.storageHandler===void 0?o:this.storageHandler,S.label=1;case 1:return Date.now()<h?[4,s(30)]:[3,8];case 2:return S.sent(),g.getItemSync(m)!==null?[3,5]:(v=this.id+"-"+d+"-"+p,[4,s(Math.floor(25*Math.random()))]);case 3:return S.sent(),g.setItemSync(m,JSON.stringify({id:this.id,iat:p,timeoutKey:v,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,s(30)];case 4:return S.sent(),(y=g.getItemSync(m))!==null&&(_=JSON.parse(y)).id===this.id&&_.iat===p?(this.acquiredIatSet.add(p),this.refreshLockWhileAcquired(m,p),[2,!0]):[3,7];case 5:return u.lockCorrector(this.storageHandler===void 0?o:this.storageHandler),[4,this.waitForSomethingToChange(h)];case 6:S.sent(),S.label=7;case 7:return p=Date.now()+l(4),[3,1];case 8:return[2,!1]}})})},u.prototype.refreshLockWhileAcquired=function(d,f){return n(this,void 0,void 0,function(){var p=this;return r(this,function(h){return setTimeout(function(){return n(p,void 0,void 0,function(){var m,g,v;return r(this,function(y){switch(y.label){case 0:return[4,lS.default().lock(f)];case 1:return y.sent(),this.acquiredIatSet.has(f)?(m=this.storageHandler===void 0?o:this.storageHandler,(g=m.getItemSync(d))===null?(lS.default().unlock(f),[2]):((v=JSON.parse(g)).timeRefreshed=Date.now(),m.setItemSync(d,JSON.stringify(v)),lS.default().unlock(f),this.refreshLockWhileAcquired(d,f),[2])):(lS.default().unlock(f),[2])}})})},1e3),[2]})})},u.prototype.waitForSomethingToChange=function(d){return n(this,void 0,void 0,function(){return r(this,function(f){switch(f.label){case 0:return[4,new Promise(function(p){var h=!1,m=Date.now(),g=!1;function v(){if(g||(window.removeEventListener("storage",v),u.removeFromWaiting(v),clearTimeout(y),g=!0),!h){h=!0;var _=50-(Date.now()-m);_>0?setTimeout(p,_):p(null)}}window.addEventListener("storage",v),u.addToWaiting(v);var y=setTimeout(v,Math.max(0,d-Date.now()))})];case 1:return f.sent(),[2]}})})},u.addToWaiting=function(d){this.removeFromWaiting(d),u.waiters!==void 0&&u.waiters.push(d)},u.removeFromWaiting=function(d){u.waiters!==void 0&&(u.waiters=u.waiters.filter(function(f){return f!==d}))},u.notifyWaiters=function(){u.waiters!==void 0&&u.waiters.slice().forEach(function(d){return d()})},u.prototype.releaseLock=function(d){return n(this,void 0,void 0,function(){return r(this,function(f){switch(f.label){case 0:return[4,this.releaseLock__private__(d)];case 1:return[2,f.sent()]}})})},u.prototype.releaseLock__private__=function(d){return n(this,void 0,void 0,function(){var f,p,h,m;return r(this,function(g){switch(g.label){case 0:return f=this.storageHandler===void 0?o:this.storageHandler,p=a+"-"+d,(h=f.getItemSync(p))===null?[2]:(m=JSON.parse(h)).id!==this.id?[3,2]:[4,lS.default().lock(m.iat)];case 1:g.sent(),this.acquiredIatSet.delete(m.iat),f.removeItemSync(p),lS.default().unlock(m.iat),u.notifyWaiters(),g.label=2;case 2:return[2]}})})},u.lockCorrector=function(d){for(var f=Date.now()-5e3,p=d,h=[],m=0;;){var g=p.keySync(m);if(g===null)break;h.push(g),m++}for(var v=!1,y=0;y<h.length;y++){var _=h[y];if(_.includes(a)){var S=p.getItemSync(_);if(S!==null){var C=JSON.parse(S);(C.timeRefreshed===void 0&&C.timeAcquired<f||C.timeRefreshed!==void 0&&C.timeRefreshed<f)&&(p.removeItemSync(_),v=!0)}}}v&&u.notifyWaiters()},u.waiters=void 0,u}();t.default=c}));const bCt={timeoutInSeconds:60},_De={name:"auth0-spa-js",version:"2.1.3"},SDe=()=>Date.now();let hf=class Kne extends Error{constructor(t,n){super(n),this.error=t,this.error_description=n,Object.setPrototypeOf(this,Kne.prototype)}static fromPayload({error:t,error_description:n}){return new Kne(t,n)}},_Ct=class EDe extends hf{constructor(t,n,r,i=null){super(t,n),this.state=r,this.appState=i,Object.setPrototypeOf(this,EDe.prototype)}},Xne=class CDe extends hf{constructor(){super("timeout","Timeout"),Object.setPrototypeOf(this,CDe.prototype)}},SCt=class wDe extends Xne{constructor(t){super(),this.popup=t,Object.setPrototypeOf(this,wDe.prototype)}},ECt=class xDe extends hf{constructor(t){super("cancelled","Popup closed"),this.popup=t,Object.setPrototypeOf(this,xDe.prototype)}},CCt=class TDe extends hf{constructor(t,n,r){super(t,n),this.mfa_token=r,Object.setPrototypeOf(this,TDe.prototype)}},IDe=class ADe extends hf{constructor(t,n){super("missing_refresh_token",`Missing Refresh Token (audience: '${yye(t,["default"])}', scope: '${yye(n)}')`),this.audience=t,this.scope=n,Object.setPrototypeOf(this,ADe.prototype)}};function yye(e,t=[]){return e&&!t.includes(e)?e:""}const B9=()=>window.crypto,hG=()=>{const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.";let t="";return Array.from(B9().getRandomValues(new Uint8Array(43))).forEach(n=>t+=e[n%e.length]),t},bye=e=>btoa(e),Zne=e=>{var{clientId:t}=e,n=Cg(e,["clientId"]);return new URLSearchParams((r=>Object.keys(r).filter(i=>r[i]!==void 0).reduce((i,a)=>Object.assign(Object.assign({},i),{[a]:r[a]}),{}))(Object.assign({client_id:t},n))).toString()},_ye=e=>(t=>decodeURIComponent(atob(t).split("").map(n=>"%"+("00"+n.charCodeAt(0).toString(16)).slice(-2)).join("")))(e.replace(/_/g,"/").replace(/-/g,"+")),wCt=async(e,t)=>{const n=await fetch(e,t);return{ok:n.ok,json:await n.json()}},xCt=async(e,t,n)=>{const r=new AbortController;let i;return t.signal=r.signal,Promise.race([wCt(e,t),new Promise((a,o)=>{i=setTimeout(()=>{r.abort(),o(new Error("Timeout when executing 'fetch'"))},n)})]).finally(()=>{clearTimeout(i)})},TCt=async(e,t,n,r,i,a,o)=>{return s={auth:{audience:t,scope:n},timeout:i,fetchUrl:e,fetchOptions:r,useFormData:o},l=a,new Promise(function(c,u){const d=new MessageChannel;d.port1.onmessage=function(f){f.data.error?u(new Error(f.data.error)):c(f.data),d.port1.close()},l.postMessage(s,[d.port2])});var s,l},ICt=async(e,t,n,r,i,a,o=1e4)=>i?TCt(e,t,n,r,o,i,a):xCt(e,r,o);async function ACt(e,t){var{baseUrl:n,timeout:r,audience:i,scope:a,auth0Client:o,useFormData:s}=e,l=Cg(e,["baseUrl","timeout","audience","scope","auth0Client","useFormData"]);const c=s?Zne(l):JSON.stringify(l);return await async function(u,d,f,p,h,m,g){let v,y=null;for(let T=0;T<3;T++)try{v=await ICt(u,f,p,h,m,g,d),y=null;break}catch(A){y=A}if(y)throw y;const _=v.json,{error:S,error_description:C}=_,w=Cg(_,["error","error_description"]),{ok:x}=v;if(!x){const T=C||`HTTP error. Unable to fetch ${u}`;throw S==="mfa_required"?new CCt(S,T,w.mfa_token):S==="missing_refresh_token"?new IDe(f,p):new hf(S||"request_error",T)}return w}(`${n}/oauth/token`,r,i||"default",a,{method:"POST",body:c,headers:{"Content-Type":s?"application/x-www-form-urlencoded":"application/json","Auth0-Client":btoa(JSON.stringify(o||_De))}},t,s)}const $L=(...e)=>{return(t=e.filter(Boolean).join(" ").trim().split(/\s+/),Array.from(new Set(t))).join(" ");var t};let kS=class Qne{constructor(t,n="@@auth0spajs@@",r){this.prefix=n,this.suffix=r,this.clientId=t.clientId,this.scope=t.scope,this.audience=t.audience}toKey(){return[this.prefix,this.clientId,this.audience,this.scope,this.suffix].filter(Boolean).join("::")}static fromKey(t){const[n,r,i,a]=t.split("::");return new Qne({clientId:r,scope:a,audience:i},n)}static fromCacheEntry(t){const{scope:n,audience:r,client_id:i}=t;return new Qne({scope:n,audience:r,clientId:i})}},RCt=class{set(t,n){localStorage.setItem(t,JSON.stringify(n))}get(t){const n=window.localStorage.getItem(t);if(n)try{return JSON.parse(n)}catch{return}}remove(t){localStorage.removeItem(t)}allKeys(){return Object.keys(window.localStorage).filter(t=>t.startsWith("@@auth0spajs@@"))}},RDe=class{constructor(){this.enclosedCache=function(){let t={};return{set(n,r){t[n]=r},get(n){const r=t[n];if(r)return r},remove(n){delete t[n]},allKeys:()=>Object.keys(t)}}()}},NCt=class{constructor(t,n,r){this.cache=t,this.keyManifest=n,this.nowProvider=r||SDe}async setIdToken(t,n,r){var i;const a=this.getIdTokenCacheKey(t);await this.cache.set(a,{id_token:n,decodedToken:r}),await((i=this.keyManifest)===null||i===void 0?void 0:i.add(a))}async getIdToken(t){const n=await this.cache.get(this.getIdTokenCacheKey(t.clientId));if(!n&&t.scope&&t.audience){const r=await this.get(t);return!r||!r.id_token||!r.decodedToken?void 0:{id_token:r.id_token,decodedToken:r.decodedToken}}if(n)return{id_token:n.id_token,decodedToken:n.decodedToken}}async get(t,n=0){var r;let i=await this.cache.get(t.toKey());if(!i){const s=await this.getCacheKeys();if(!s)return;const l=this.matchExistingCacheKey(t,s);l&&(i=await this.cache.get(l))}if(!i)return;const a=await this.nowProvider(),o=Math.floor(a/1e3);return i.expiresAt-n<o?i.body.refresh_token?(i.body={refresh_token:i.body.refresh_token},await this.cache.set(t.toKey(),i),i.body):(await this.cache.remove(t.toKey()),void await((r=this.keyManifest)===null||r===void 0?void 0:r.remove(t.toKey()))):i.body}async set(t){var n;const r=new kS({clientId:t.client_id,scope:t.scope,audience:t.audience}),i=await this.wrapCacheEntry(t);await this.cache.set(r.toKey(),i),await((n=this.keyManifest)===null||n===void 0?void 0:n.add(r.toKey()))}async clear(t){var n;const r=await this.getCacheKeys();r&&(await r.filter(i=>!t||i.includes(t)).reduce(async(i,a)=>{await i,await this.cache.remove(a)},Promise.resolve()),await((n=this.keyManifest)===null||n===void 0?void 0:n.clear()))}async wrapCacheEntry(t){const n=await this.nowProvider();return{body:t,expiresAt:Math.floor(n/1e3)+t.expires_in}}async getCacheKeys(){var t;return this.keyManifest?(t=await this.keyManifest.get())===null||t===void 0?void 0:t.keys:this.cache.allKeys?this.cache.allKeys():void 0}getIdTokenCacheKey(t){return new kS({clientId:t},"@@auth0spajs@@","@@user@@").toKey()}matchExistingCacheKey(t,n){return n.filter(r=>{var i;const a=kS.fromKey(r),o=new Set(a.scope&&a.scope.split(" ")),s=((i=t.scope)===null||i===void 0?void 0:i.split(" "))||[],l=a.scope&&s.reduce((c,u)=>c&&o.has(u),!0);return a.prefix==="@@auth0spajs@@"&&a.clientId===t.clientId&&a.audience===t.audience&&l})[0]}},OCt=class{constructor(t,n,r){this.storage=t,this.clientId=n,this.cookieDomain=r,this.storageKey=`a0.spajs.txs.${this.clientId}`}create(t){this.storage.save(this.storageKey,t,{daysUntilExpire:1,cookieDomain:this.cookieDomain})}get(){return this.storage.get(this.storageKey)}remove(){this.storage.remove(this.storageKey,{cookieDomain:this.cookieDomain})}};const F4=e=>typeof e=="number",LCt=["iss","aud","exp","nbf","iat","jti","azp","nonce","auth_time","at_hash","c_hash","acr","amr","sub_jwk","cnf","sip_from_tag","sip_date","sip_callid","sip_cseq_num","sip_via_branch","orig","dest","mky","events","toe","txn","rph","sid","vot","vtm"],PCt=e=>{if(!e.id_token)throw new Error("ID token is required but missing");const t=(a=>{const o=a.split("."),[s,l,c]=o;if(o.length!==3||!s||!l||!c)throw new Error("ID token could not be decoded");const u=JSON.parse(_ye(l)),d={__raw:a},f={};return Object.keys(u).forEach(p=>{d[p]=u[p],LCt.includes(p)||(f[p]=u[p])}),{encoded:{header:s,payload:l,signature:c},header:JSON.parse(_ye(s)),claims:d,user:f}})(e.id_token);if(!t.claims.iss)throw new Error("Issuer (iss) claim must be a string present in the ID token");if(t.claims.iss!==e.iss)throw new Error(`Issuer (iss) claim mismatch in the ID token; expected "${e.iss}", found "${t.claims.iss}"`);if(!t.user.sub)throw new Error("Subject (sub) claim must be a string present in the ID token");if(t.header.alg!=="RS256")throw new Error(`Signature algorithm of "${t.header.alg}" is not supported. Expected the ID token to be signed with "RS256".`);if(!t.claims.aud||typeof t.claims.aud!="string"&&!Array.isArray(t.claims.aud))throw new Error("Audience (aud) claim must be a string or array of strings present in the ID token");if(Array.isArray(t.claims.aud)){if(!t.claims.aud.includes(e.aud))throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${e.aud}" but was not one of "${t.claims.aud.join(", ")}"`);if(t.claims.aud.length>1){if(!t.claims.azp)throw new Error("Authorized Party (azp) claim must be a string present in the ID token when Audience (aud) claim has multiple values");if(t.claims.azp!==e.aud)throw new Error(`Authorized Party (azp) claim mismatch in the ID token; expected "${e.aud}", found "${t.claims.azp}"`)}}else if(t.claims.aud!==e.aud)throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${e.aud}" but found "${t.claims.aud}"`);if(e.nonce){if(!t.claims.nonce)throw new Error("Nonce (nonce) claim must be a string present in the ID token");if(t.claims.nonce!==e.nonce)throw new Error(`Nonce (nonce) claim mismatch in the ID token; expected "${e.nonce}", found "${t.claims.nonce}"`)}if(e.max_age&&!F4(t.claims.auth_time))throw new Error("Authentication Time (auth_time) claim must be a number present in the ID token when Max Age (max_age) is specified");if(t.claims.exp==null||!F4(t.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!F4(t.claims.iat))throw new Error("Issued At (iat) claim must be a number present in the ID token");const n=e.leeway||60,r=new Date(e.now||Date.now()),i=new Date(0);if(i.setUTCSeconds(t.claims.exp+n),r>i)throw new Error(`Expiration Time (exp) claim error in the ID token; current time (${r}) is after expiration time (${i})`);if(t.claims.nbf!=null&&F4(t.claims.nbf)){const a=new Date(0);if(a.setUTCSeconds(t.claims.nbf-n),r<a)throw new Error(`Not Before time (nbf) claim in the ID token indicates that this token can't be used just yet. Current time (${r}) is before ${a}`)}if(t.claims.auth_time!=null&&F4(t.claims.auth_time)){const a=new Date(0);if(a.setUTCSeconds(parseInt(t.claims.auth_time)+e.max_age+n),r>a)throw new Error(`Authentication Time (auth_time) claim in the ID token indicates that too much time has passed since the last end-user authentication. Current time (${r}) is after last auth at ${a}`)}if(e.organization){const a=e.organization.trim();if(a.startsWith("org_")){const o=a;if(!t.claims.org_id)throw new Error("Organization ID (org_id) claim must be a string present in the ID token");if(o!==t.claims.org_id)throw new Error(`Organization ID (org_id) claim mismatch in the ID token; expected "${o}", found "${t.claims.org_id}"`)}else{const o=a.toLowerCase();if(!t.claims.org_name)throw new Error("Organization Name (org_name) claim must be a string present in the ID token");if(o!==t.claims.org_name)throw new Error(`Organization Name (org_name) claim mismatch in the ID token; expected "${o}", found "${t.claims.org_name}"`)}}return t};var MS=nue(function(e,t){var n=ES&&ES.__assign||function(){return n=Object.assign||function(l){for(var c,u=1,d=arguments.length;u<d;u++)for(var f in c=arguments[u])Object.prototype.hasOwnProperty.call(c,f)&&(l[f]=c[f]);return l},n.apply(this,arguments)};function r(l,c){if(!c)return"";var u="; "+l;return c===!0?u:u+"="+c}function i(l,c,u){return encodeURIComponent(l).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"="+encodeURIComponent(c).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+function(d){if(typeof d.expires=="number"){var f=new Date;f.setMilliseconds(f.getMilliseconds()+864e5*d.expires),d.expires=f}return r("Expires",d.expires?d.expires.toUTCString():"")+r("Domain",d.domain)+r("Path",d.path)+r("Secure",d.secure)+r("SameSite",d.sameSite)}(u)}function a(l){for(var c={},u=l?l.split("; "):[],d=/(%[\dA-F]{2})+/gi,f=0;f<u.length;f++){var p=u[f].split("="),h=p.slice(1).join("=");h.charAt(0)==='"'&&(h=h.slice(1,-1));try{c[p[0].replace(d,decodeURIComponent)]=h.replace(d,decodeURIComponent)}catch{}}return c}function o(){return a(document.cookie)}function s(l,c,u){document.cookie=i(l,c,n({path:"/"},u))}t.__esModule=!0,t.encode=i,t.parse=a,t.getAll=o,t.get=function(l){return o()[l]},t.set=s,t.remove=function(l,c){s(l,"",n(n({},c),{expires:-1}))}});tue(MS),MS.encode,MS.parse,MS.getAll;var kCt=MS.get,NDe=MS.set,ODe=MS.remove;const mx={get(e){const t=kCt(e);if(t!==void 0)return JSON.parse(t)},save(e,t,n){let r={};window.location.protocol==="https:"&&(r={secure:!0,sameSite:"none"}),n?.daysUntilExpire&&(r.expires=n.daysUntilExpire),n?.cookieDomain&&(r.domain=n.cookieDomain),NDe(e,JSON.stringify(t),r)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),ODe(e,n)}},MCt={get(e){return mx.get(e)||mx.get(`_legacy_${e}`)},save(e,t,n){let r={};window.location.protocol==="https:"&&(r={secure:!0}),n?.daysUntilExpire&&(r.expires=n.daysUntilExpire),n?.cookieDomain&&(r.domain=n.cookieDomain),NDe(`_legacy_${e}`,JSON.stringify(t),r),mx.save(e,t,n)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),ODe(e,n),mx.remove(e,t),mx.remove(`_legacy_${e}`,t)}},DCt={get(e){if(typeof sessionStorage>"u")return;const t=sessionStorage.getItem(e);return t!=null?JSON.parse(t):void 0},save(e,t){sessionStorage.setItem(e,JSON.stringify(t))},remove(e){sessionStorage.removeItem(e)}};function $Ct(e,t,n){var r=t===void 0?null:t,i=function(l,c){var u=atob(l);if(c){for(var d=new Uint8Array(u.length),f=0,p=u.length;f<p;++f)d[f]=u.charCodeAt(f);return String.fromCharCode.apply(null,new Uint16Array(d.buffer))}return u}(e,n!==void 0&&n),a=i.indexOf(`
`,10)+1,o=i.substring(a)+(r?"//# sourceMappingURL="+r:""),s=new Blob([o],{type:"application/javascript"});return URL.createObjectURL(s)}var Sye,Eye,Cye,mG,FCt=(Sye="Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Y2xhc3MgZSBleHRlbmRzIEVycm9ye2NvbnN0cnVjdG9yKHQscil7c3VwZXIociksdGhpcy5lcnJvcj10LHRoaXMuZXJyb3JfZGVzY3JpcHRpb249cixPYmplY3Quc2V0UHJvdG90eXBlT2YodGhpcyxlLnByb3RvdHlwZSl9c3RhdGljIGZyb21QYXlsb2FkKHtlcnJvcjp0LGVycm9yX2Rlc2NyaXB0aW9uOnJ9KXtyZXR1cm4gbmV3IGUodCxyKX19Y2xhc3MgdCBleHRlbmRzIGV7Y29uc3RydWN0b3IoZSxzKXtzdXBlcigibWlzc2luZ19yZWZyZXNoX3Rva2VuIixgTWlzc2luZyBSZWZyZXNoIFRva2VuIChhdWRpZW5jZTogJyR7cihlLFsiZGVmYXVsdCJdKX0nLCBzY29wZTogJyR7cihzKX0nKWApLHRoaXMuYXVkaWVuY2U9ZSx0aGlzLnNjb3BlPXMsT2JqZWN0LnNldFByb3RvdHlwZU9mKHRoaXMsdC5wcm90b3R5cGUpfX1mdW5jdGlvbiByKGUsdD1bXSl7cmV0dXJuIGUmJiF0LmluY2x1ZGVzKGUpP2U6IiJ9ImZ1bmN0aW9uIj09dHlwZW9mIFN1cHByZXNzZWRFcnJvciYmU3VwcHJlc3NlZEVycm9yO2NvbnN0IHM9ZT0+e3ZhcntjbGllbnRJZDp0fT1lLHI9ZnVuY3Rpb24oZSx0KXt2YXIgcj17fTtmb3IodmFyIHMgaW4gZSlPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwoZSxzKSYmdC5pbmRleE9mKHMpPDAmJihyW3NdPWVbc10pO2lmKG51bGwhPWUmJiJmdW5jdGlvbiI9PXR5cGVvZiBPYmplY3QuZ2V0T3duUHJvcGVydHlTeW1ib2xzKXt2YXIgbz0wO2ZvcihzPU9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMoZSk7bzxzLmxlbmd0aDtvKyspdC5pbmRleE9mKHNbb10pPDAmJk9iamVjdC5wcm90b3R5cGUucHJvcGVydHlJc0VudW1lcmFibGUuY2FsbChlLHNbb10pJiYocltzW29dXT1lW3Nbb11dKX1yZXR1cm4gcn0oZSxbImNsaWVudElkIl0pO3JldHVybiBuZXcgVVJMU2VhcmNoUGFyYW1zKChlPT5PYmplY3Qua2V5cyhlKS5maWx0ZXIoKHQ9PnZvaWQgMCE9PWVbdF0pKS5yZWR1Y2UoKCh0LHIpPT5PYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30sdCkse1tyXTplW3JdfSkpLHt9KSkoT2JqZWN0LmFzc2lnbih7Y2xpZW50X2lkOnR9LHIpKSkudG9TdHJpbmcoKX07bGV0IG89e307Y29uc3Qgbj0oZSx0KT0+YCR7ZX18JHt0fWA7YWRkRXZlbnRMaXN0ZW5lcigibWVzc2FnZSIsKGFzeW5jKHtkYXRhOnt0aW1lb3V0OmUsYXV0aDpyLGZldGNoVXJsOmksZmV0Y2hPcHRpb25zOmMsdXNlRm9ybURhdGE6YX0scG9ydHM6W3BdfSk9PntsZXQgZjtjb25zdHthdWRpZW5jZTp1LHNjb3BlOmx9PXJ8fHt9O3RyeXtjb25zdCByPWE/KGU9Pntjb25zdCB0PW5ldyBVUkxTZWFyY2hQYXJhbXMoZSkscj17fTtyZXR1cm4gdC5mb3JFYWNoKCgoZSx0KT0+e3JbdF09ZX0pKSxyfSkoYy5ib2R5KTpKU09OLnBhcnNlKGMuYm9keSk7aWYoIXIucmVmcmVzaF90b2tlbiYmInJlZnJlc2hfdG9rZW4iPT09ci5ncmFudF90eXBlKXtjb25zdCBlPSgoZSx0KT0+b1tuKGUsdCldKSh1LGwpO2lmKCFlKXRocm93IG5ldyB0KHUsbCk7Yy5ib2R5PWE/cyhPYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30scikse3JlZnJlc2hfdG9rZW46ZX0pKTpKU09OLnN0cmluZ2lmeShPYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30scikse3JlZnJlc2hfdG9rZW46ZX0pKX1sZXQgaCxnOyJmdW5jdGlvbiI9PXR5cGVvZiBBYm9ydENvbnRyb2xsZXImJihoPW5ldyBBYm9ydENvbnRyb2xsZXIsYy5zaWduYWw9aC5zaWduYWwpO3RyeXtnPWF3YWl0IFByb21pc2UucmFjZShbKGQ9ZSxuZXcgUHJvbWlzZSgoZT0+c2V0VGltZW91dChlLGQpKSkpLGZldGNoKGksT2JqZWN0LmFzc2lnbih7fSxjKSldKX1jYXRjaChlKXtyZXR1cm4gdm9pZCBwLnBvc3RNZXNzYWdlKHtlcnJvcjplLm1lc3NhZ2V9KX1pZighZylyZXR1cm4gaCYmaC5hYm9ydCgpLHZvaWQgcC5wb3N0TWVzc2FnZSh7ZXJyb3I6IlRpbWVvdXQgd2hlbiBleGVjdXRpbmcgJ2ZldGNoJyJ9KTtmPWF3YWl0IGcuanNvbigpLGYucmVmcmVzaF90b2tlbj8oKChlLHQscik9PntvW24odCxyKV09ZX0pKGYucmVmcmVzaF90b2tlbix1LGwpLGRlbGV0ZSBmLnJlZnJlc2hfdG9rZW4pOigoZSx0KT0+e2RlbGV0ZSBvW24oZSx0KV19KSh1LGwpLHAucG9zdE1lc3NhZ2Uoe29rOmcub2ssanNvbjpmfSl9Y2F0Y2goZSl7cC5wb3N0TWVzc2FnZSh7b2s6ITEsanNvbjp7ZXJyb3I6ZS5lcnJvcixlcnJvcl9kZXNjcmlwdGlvbjplLm1lc3NhZ2V9fSl9dmFyIGR9KSl9KCk7Cgo=",Eye=null,Cye=!1,function(e){return mG=mG||$Ct(Sye,Eye,Cye),new Worker(mG,e)});const gG={};let BCt=class{constructor(t,n){this.cache=t,this.clientId=n,this.manifestKey=this.createManifestKeyFrom(this.clientId)}async add(t){var n;const r=new Set(((n=await this.cache.get(this.manifestKey))===null||n===void 0?void 0:n.keys)||[]);r.add(t),await this.cache.set(this.manifestKey,{keys:[...r]})}async remove(t){const n=await this.cache.get(this.manifestKey);if(n){const r=new Set(n.keys);return r.delete(t),r.size>0?await this.cache.set(this.manifestKey,{keys:[...r]}):await this.cache.remove(this.manifestKey)}}get(){return this.cache.get(this.manifestKey)}clear(){return this.cache.remove(this.manifestKey)}createManifestKeyFrom(t){return`@@auth0spajs@@::${t}`}};const jCt={memory:()=>new RDe().enclosedCache,localstorage:()=>new RCt},wye=e=>jCt[e],xye=e=>{const{openUrl:t,onRedirect:n}=e,r=Cg(e,["openUrl","onRedirect"]);return Object.assign(Object.assign({},r),{openUrl:t===!1||t?t:n})},vG=new yCt;let zCt=class{constructor(t){let n,r;if(this.userCache=new RDe().enclosedCache,this.defaultOptions={authorizationParams:{scope:"openid profile email"},useRefreshTokensFallback:!1,useFormData:!0},this._releaseLockOnPageHide=async()=>{await vG.releaseLock("auth0.lock.getTokenSilently"),window.removeEventListener("pagehide",this._releaseLockOnPageHide)},this.options=Object.assign(Object.assign(Object.assign({},this.defaultOptions),t),{authorizationParams:Object.assign(Object.assign({},this.defaultOptions.authorizationParams),t.authorizationParams)}),typeof window<"u"&&(()=>{if(!B9())throw new Error("For security reasons, `window.crypto` is required to run `auth0-spa-js`.");if(B9().subtle===void 0)throw new Error(`
      auth0-spa-js must run on a secure origin. See https://github.com/auth0/auth0-spa-js/blob/main/FAQ.md#why-do-i-get-auth0-spa-js-must-run-on-a-secure-origin for more information.
    `)})(),t.cache&&t.cacheLocation&&console.warn("Both `cache` and `cacheLocation` options have been specified in the Auth0Client configuration; ignoring `cacheLocation` and using `cache`."),t.cache)r=t.cache;else{if(n=t.cacheLocation||"memory",!wye(n))throw new Error(`Invalid cache location "${n}"`);r=wye(n)()}this.httpTimeoutMs=t.httpTimeoutInSeconds?1e3*t.httpTimeoutInSeconds:1e4,this.cookieStorage=t.legacySameSiteCookie===!1?mx:MCt,this.orgHintCookieName=`auth0.${this.options.clientId}.organization_hint`,this.isAuthenticatedCookieName=(o=>`auth0.${o}.is.authenticated`)(this.options.clientId),this.sessionCheckExpiryDays=t.sessionCheckExpiryDays||1;const i=t.useCookiesForTransactions?this.cookieStorage:DCt;var a;this.scope=$L("openid",this.options.authorizationParams.scope,this.options.useRefreshTokens?"offline_access":""),this.transactionManager=new OCt(i,this.options.clientId,this.options.cookieDomain),this.nowProvider=this.options.nowProvider||SDe,this.cacheManager=new NCt(r,r.allKeys?void 0:new BCt(r,this.options.clientId),this.nowProvider),this.domainUrl=(a=this.options.domain,/^https?:\/\//.test(a)?a:`https://${a}`),this.tokenIssuer=((o,s)=>o?o.startsWith("https://")?o:`https://${o}/`:`${s}/`)(this.options.issuer,this.domainUrl),typeof window<"u"&&window.Worker&&this.options.useRefreshTokens&&n==="memory"&&(this.options.workerUrl?this.worker=new Worker(this.options.workerUrl):this.worker=new FCt)}_url(t){const n=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||_De)));return`${this.domainUrl}${t}&auth0Client=${n}`}_authorizeUrl(t){return this._url(`/authorize?${Zne(t)}`)}async _verifyIdToken(t,n,r){const i=await this.nowProvider();return PCt({iss:this.tokenIssuer,aud:this.options.clientId,id_token:t,nonce:n,organization:r,leeway:this.options.leeway,max_age:(a=this.options.authorizationParams.max_age,typeof a!="string"?a:parseInt(a,10)||void 0),now:i});var a}_processOrgHint(t){t?this.cookieStorage.save(this.orgHintCookieName,t,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}):this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain})}async _prepareAuthorizeUrl(t,n,r){const i=bye(hG()),a=bye(hG()),o=hG(),s=(u=>{const d=new Uint8Array(u);return(f=>{const p={"+":"-","/":"_","=":""};return f.replace(/[+/=]/g,h=>p[h])})(window.btoa(String.fromCharCode(...Array.from(d))))})(await(async u=>await B9().subtle.digest({name:"SHA-256"},new TextEncoder().encode(u)))(o)),l=((u,d,f,p,h,m,g,v)=>Object.assign(Object.assign(Object.assign({client_id:u.clientId},u.authorizationParams),f),{scope:$L(d,f.scope),response_type:"code",response_mode:v||"query",state:p,nonce:h,redirect_uri:g||u.authorizationParams.redirect_uri,code_challenge:m,code_challenge_method:"S256"}))(this.options,this.scope,t,i,a,s,t.redirect_uri||this.options.authorizationParams.redirect_uri||r,n?.response_mode),c=this._authorizeUrl(l);return{nonce:a,code_verifier:o,scope:l.scope,audience:l.audience||"default",redirect_uri:l.redirect_uri,state:i,url:c}}async loginWithPopup(t,n){var r;if(t=t||{},!(n=n||{}).popup&&(n.popup=(s=>{const l=window.screenX+(window.innerWidth-400)/2,c=window.screenY+(window.innerHeight-600)/2;return window.open(s,"auth0:authorize:popup",`left=${l},top=${c},width=400,height=600,resizable,scrollbars=yes,status=1`)})(""),!n.popup))throw new Error("Unable to open a popup for loginWithPopup - window.open returned `null`");const i=await this._prepareAuthorizeUrl(t.authorizationParams||{},{response_mode:"web_message"},window.location.origin);n.popup.location.href=i.url;const a=await(s=>new Promise((l,c)=>{let u;const d=setInterval(()=>{s.popup&&s.popup.closed&&(clearInterval(d),clearTimeout(f),window.removeEventListener("message",u,!1),c(new ECt(s.popup)))},1e3),f=setTimeout(()=>{clearInterval(d),c(new SCt(s.popup)),window.removeEventListener("message",u,!1)},1e3*(s.timeoutInSeconds||60));u=function(p){if(p.data&&p.data.type==="authorization_response"){if(clearTimeout(f),clearInterval(d),window.removeEventListener("message",u,!1),s.popup.close(),p.data.response.error)return c(hf.fromPayload(p.data.response));l(p.data.response)}},window.addEventListener("message",u)}))(Object.assign(Object.assign({},n),{timeoutInSeconds:n.timeoutInSeconds||this.options.authorizeTimeoutInSeconds||60}));if(i.state!==a.state)throw new hf("state_mismatch","Invalid state");const o=((r=t.authorizationParams)===null||r===void 0?void 0:r.organization)||this.options.authorizationParams.organization;await this._requestToken({audience:i.audience,scope:i.scope,code_verifier:i.code_verifier,grant_type:"authorization_code",code:a.code,redirect_uri:i.redirect_uri},{nonceIn:i.nonce,organization:o})}async getUser(){var t;const n=await this._getIdTokenFromCache();return(t=n?.decodedToken)===null||t===void 0?void 0:t.user}async getIdTokenClaims(){var t;const n=await this._getIdTokenFromCache();return(t=n?.decodedToken)===null||t===void 0?void 0:t.claims}async loginWithRedirect(t={}){var n;const r=xye(t),{openUrl:i,fragment:a,appState:o}=r,s=Cg(r,["openUrl","fragment","appState"]),l=((n=s.authorizationParams)===null||n===void 0?void 0:n.organization)||this.options.authorizationParams.organization,c=await this._prepareAuthorizeUrl(s.authorizationParams||{}),{url:u}=c,d=Cg(c,["url"]);this.transactionManager.create(Object.assign(Object.assign(Object.assign({},d),{appState:o}),l&&{organization:l}));const f=a?`${u}#${a}`:u;i?await i(f):window.location.assign(f)}async handleRedirectCallback(t=window.location.href){const n=t.split("?").slice(1);if(n.length===0)throw new Error("There are no query params available for parsing.");const{state:r,code:i,error:a,error_description:o}=(d=>{d.indexOf("#")>-1&&(d=d.substring(0,d.indexOf("#")));const f=new URLSearchParams(d);return{state:f.get("state"),code:f.get("code")||void 0,error:f.get("error")||void 0,error_description:f.get("error_description")||void 0}})(n.join("")),s=this.transactionManager.get();if(!s)throw new hf("missing_transaction","Invalid state");if(this.transactionManager.remove(),a)throw new _Ct(a,o||a,r,s.appState);if(!s.code_verifier||s.state&&s.state!==r)throw new hf("state_mismatch","Invalid state");const l=s.organization,c=s.nonce,u=s.redirect_uri;return await this._requestToken(Object.assign({audience:s.audience,scope:s.scope,code_verifier:s.code_verifier,grant_type:"authorization_code",code:i},u?{redirect_uri:u}:{}),{nonceIn:c,organization:l}),{appState:s.appState}}async checkSession(t){if(!this.cookieStorage.get(this.isAuthenticatedCookieName)){if(!this.cookieStorage.get("auth0.is.authenticated"))return;this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove("auth0.is.authenticated")}try{await this.getTokenSilently(t)}catch{}}async getTokenSilently(t={}){var n;const r=Object.assign(Object.assign({cacheMode:"on"},t),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),t.authorizationParams),{scope:$L(this.scope,(n=t.authorizationParams)===null||n===void 0?void 0:n.scope)})}),i=await((a,o)=>{let s=gG[o];return s||(s=a().finally(()=>{delete gG[o],s=null}),gG[o]=s),s})(()=>this._getTokenSilently(r),`${this.options.clientId}::${r.authorizationParams.audience}::${r.authorizationParams.scope}`);return t.detailedResponse?i:i?.access_token}async _getTokenSilently(t){const{cacheMode:n}=t,r=Cg(t,["cacheMode"]);if(n!=="off"){const i=await this._getEntryFromCache({scope:r.authorizationParams.scope,audience:r.authorizationParams.audience||"default",clientId:this.options.clientId});if(i)return i}if(n!=="cache-only"){if(!await(async(i,a=3)=>{for(let o=0;o<a;o++)if(await i())return!0;return!1})(()=>vG.acquireLock("auth0.lock.getTokenSilently",5e3),10))throw new Xne;try{if(window.addEventListener("pagehide",this._releaseLockOnPageHide),n!=="off"){const c=await this._getEntryFromCache({scope:r.authorizationParams.scope,audience:r.authorizationParams.audience||"default",clientId:this.options.clientId});if(c)return c}const i=this.options.useRefreshTokens?await this._getTokenUsingRefreshToken(r):await this._getTokenFromIFrame(r),{id_token:a,access_token:o,oauthTokenScope:s,expires_in:l}=i;return Object.assign(Object.assign({id_token:a,access_token:o},s?{scope:s}:null),{expires_in:l})}finally{await vG.releaseLock("auth0.lock.getTokenSilently"),window.removeEventListener("pagehide",this._releaseLockOnPageHide)}}}async getTokenWithPopup(t={},n={}){var r;const i=Object.assign(Object.assign({},t),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),t.authorizationParams),{scope:$L(this.scope,(r=t.authorizationParams)===null||r===void 0?void 0:r.scope)})});return n=Object.assign(Object.assign({},bCt),n),await this.loginWithPopup(i,n),(await this.cacheManager.get(new kS({scope:i.authorizationParams.scope,audience:i.authorizationParams.audience||"default",clientId:this.options.clientId}))).access_token}async isAuthenticated(){return!!await this.getUser()}_buildLogoutUrl(t){t.clientId!==null?t.clientId=t.clientId||this.options.clientId:delete t.clientId;const n=t.logoutParams||{},{federated:r}=n,i=Cg(n,["federated"]),a=r?"&federated":"";return this._url(`/v2/logout?${Zne(Object.assign({clientId:t.clientId},i))}`)+a}async logout(t={}){const n=xye(t),{openUrl:r}=n,i=Cg(n,["openUrl"]);t.clientId===null?await this.cacheManager.clear():await this.cacheManager.clear(t.clientId||this.options.clientId),this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove(this.isAuthenticatedCookieName,{cookieDomain:this.options.cookieDomain}),this.userCache.remove("@@user@@");const a=this._buildLogoutUrl(i);r?await r(a):r!==!1&&window.location.assign(a)}async _getTokenFromIFrame(t){const n=Object.assign(Object.assign({},t.authorizationParams),{prompt:"none"}),r=this.cookieStorage.get(this.orgHintCookieName);r&&!n.organization&&(n.organization=r);const{url:i,state:a,nonce:o,code_verifier:s,redirect_uri:l,scope:c,audience:u}=await this._prepareAuthorizeUrl(n,{response_mode:"web_message"},window.location.origin);try{if(window.crossOriginIsolated)throw new hf("login_required","The application is running in a Cross-Origin Isolated context, silently retrieving a token without refresh token is not possible.");const d=t.timeoutInSeconds||this.options.authorizeTimeoutInSeconds,f=await((h,m,g=60)=>new Promise((v,y)=>{const _=window.document.createElement("iframe");_.setAttribute("width","0"),_.setAttribute("height","0"),_.style.display="none";const S=()=>{window.document.body.contains(_)&&(window.document.body.removeChild(_),window.removeEventListener("message",C,!1))};let C;const w=setTimeout(()=>{y(new Xne),S()},1e3*g);C=function(x){if(x.origin!=m||!x.data||x.data.type!=="authorization_response")return;const T=x.source;T&&T.close(),x.data.response.error?y(hf.fromPayload(x.data.response)):v(x.data.response),clearTimeout(w),window.removeEventListener("message",C,!1),setTimeout(S,2e3)},window.addEventListener("message",C,!1),window.document.body.appendChild(_),_.setAttribute("src",h)}))(i,this.domainUrl,d);if(a!==f.state)throw new hf("state_mismatch","Invalid state");const p=await this._requestToken(Object.assign(Object.assign({},t.authorizationParams),{code_verifier:s,code:f.code,grant_type:"authorization_code",redirect_uri:l,timeout:t.authorizationParams.timeout||this.httpTimeoutMs}),{nonceIn:o,organization:n.organization});return Object.assign(Object.assign({},p),{scope:c,oauthTokenScope:p.scope,audience:u})}catch(d){throw d.error==="login_required"&&this.logout({openUrl:!1}),d}}async _getTokenUsingRefreshToken(t){const n=await this.cacheManager.get(new kS({scope:t.authorizationParams.scope,audience:t.authorizationParams.audience||"default",clientId:this.options.clientId}));if(!(n&&n.refresh_token||this.worker)){if(this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(t);throw new IDe(t.authorizationParams.audience||"default",t.authorizationParams.scope)}const r=t.authorizationParams.redirect_uri||this.options.authorizationParams.redirect_uri||window.location.origin,i=typeof t.timeoutInSeconds=="number"?1e3*t.timeoutInSeconds:null;try{const a=await this._requestToken(Object.assign(Object.assign(Object.assign({},t.authorizationParams),{grant_type:"refresh_token",refresh_token:n&&n.refresh_token,redirect_uri:r}),i&&{timeout:i}));return Object.assign(Object.assign({},a),{scope:t.authorizationParams.scope,oauthTokenScope:a.scope,audience:t.authorizationParams.audience||"default"})}catch(a){if((a.message.indexOf("Missing Refresh Token")>-1||a.message&&a.message.indexOf("invalid refresh token")>-1)&&this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(t);throw a}}async _saveEntryInCache(t){const{id_token:n,decodedToken:r}=t,i=Cg(t,["id_token","decodedToken"]);this.userCache.set("@@user@@",{id_token:n,decodedToken:r}),await this.cacheManager.setIdToken(this.options.clientId,t.id_token,t.decodedToken),await this.cacheManager.set(i)}async _getIdTokenFromCache(){const t=this.options.authorizationParams.audience||"default",n=await this.cacheManager.getIdToken(new kS({clientId:this.options.clientId,audience:t,scope:this.scope})),r=this.userCache.get("@@user@@");return n&&n.id_token===r?.id_token?r:(this.userCache.set("@@user@@",n),n)}async _getEntryFromCache({scope:t,audience:n,clientId:r}){const i=await this.cacheManager.get(new kS({scope:t,audience:n,clientId:r}),60);if(i&&i.access_token){const{access_token:a,oauthTokenScope:o,expires_in:s}=i,l=await this._getIdTokenFromCache();return l&&Object.assign(Object.assign({id_token:l.id_token,access_token:a},o?{scope:o}:null),{expires_in:s})}}async _requestToken(t,n){const{nonceIn:r,organization:i}=n||{},a=await ACt(Object.assign({baseUrl:this.domainUrl,client_id:this.options.clientId,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:this.httpTimeoutMs},t),this.worker),o=await this._verifyIdToken(a.id_token,r,i);return await this._saveEntryInCache(Object.assign(Object.assign(Object.assign(Object.assign({},a),{decodedToken:o,scope:t.scope,audience:t.audience||"default"}),a.scope?{oauthTokenScope:a.scope}:null),{client_id:this.options.clientId})),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this._processOrgHint(i||o.claims.org_id),Object.assign(Object.assign({},a),{decodedToken:o})}};var LDe={isAuthenticated:!1,isLoading:!0},Hv=function(){throw new Error("You forgot to wrap your component in <Auth0Provider>.")},UCt=ds(ds({},LDe),{buildAuthorizeUrl:Hv,buildLogoutUrl:Hv,getAccessTokenSilently:Hv,getAccessTokenWithPopup:Hv,getIdTokenClaims:Hv,loginWithRedirect:Hv,loginWithPopup:Hv,logout:Hv,handleRedirectCallback:Hv}),rue=b.createContext(UCt),Tye=function(e){gCt(t,e);function t(n,r){var i=e.call(this,r||n)||this;return i.error=n,i.error_description=r,Object.setPrototypeOf(i,t.prototype),i}return t}(Error),HCt=/[?&]code=[^&]+/,VCt=/[?&]state=[^&]+/,GCt=/[?&]error=[^&]+/,qCt=function(e){return e===void 0&&(e=window.location.search),(HCt.test(e)||GCt.test(e))&&VCt.test(e)},PDe=function(e){return function(t){return t instanceof Error?t:t!==null&&typeof t=="object"&&"error"in t&&typeof t.error=="string"?"error_description"in t&&typeof t.error_description=="string"?new Tye(t.error,t.error_description):new Tye(t.error):new Error(e)}},Iye=PDe("Login failed"),yG=PDe("Get access token failed"),kDe=function(e){var t;e?.redirectUri&&(console.warn("Using `redirectUri` has been deprecated, please use `authorizationParams.redirect_uri` instead as `redirectUri` will be no longer supported in a future version"),e.authorizationParams=e.authorizationParams||{},e.authorizationParams.redirect_uri=e.redirectUri,delete e.redirectUri),!((t=e?.authorizationParams)===null||t===void 0)&&t.redirectUri&&(console.warn("Using `authorizationParams.redirectUri` has been deprecated, please use `authorizationParams.redirect_uri` instead as `authorizationParams.redirectUri` will be removed in a future version"),e.authorizationParams.redirect_uri=e.authorizationParams.redirectUri,delete e.authorizationParams.redirectUri)},WCt=function(e,t){switch(t.type){case"LOGIN_POPUP_STARTED":return ds(ds({},e),{isLoading:!0});case"LOGIN_POPUP_COMPLETE":case"INITIALISED":return ds(ds({},e),{isAuthenticated:!!t.user,user:t.user,isLoading:!1,error:void 0});case"HANDLE_REDIRECT_COMPLETE":case"GET_ACCESS_TOKEN_COMPLETE":return e.user===t.user?e:ds(ds({},e),{isAuthenticated:!!t.user,user:t.user});case"LOGOUT":return ds(ds({},e),{isAuthenticated:!1,user:void 0});case"ERROR":return ds(ds({},e),{isLoading:!1,error:t.error})}},YCt=function(e){return kDe(e),ds(ds({},e),{auth0Client:{name:"auth0-react",version:"2.2.4"}})},KCt=function(e){window.history.replaceState({},document.title,e?.returnTo||window.location.pathname)},XCt=function(e){var t=e.children,n=e.skipRedirectCallback,r=e.onRedirectCallback,i=r===void 0?KCt:r,a=e.context,o=a===void 0?rue:a,s=vCt(e,["children","skipRedirectCallback","onRedirectCallback","context"]),l=b.useState(function(){return new zCt(YCt(s))})[0],c=b.useReducer(WCt,LDe),u=c[0],d=c[1],f=b.useRef(!1);b.useEffect(function(){f.current||(f.current=!0,function(){return Hy(void 0,void 0,void 0,function(){var C,w,x;return Vy(this,function(T){switch(T.label){case 0:return T.trys.push([0,7,,8]),C=void 0,qCt()&&!n?[4,l.handleRedirectCallback()]:[3,3];case 1:return w=T.sent().appState,[4,l.getUser()];case 2:return C=T.sent(),i(w,C),[3,6];case 3:return[4,l.checkSession()];case 4:return T.sent(),[4,l.getUser()];case 5:C=T.sent(),T.label=6;case 6:return d({type:"INITIALISED",user:C}),[3,8];case 7:return x=T.sent(),d({type:"ERROR",error:Iye(x)}),[3,8];case 8:return[2]}})})}())},[l,i,n]);var p=b.useCallback(function(C){return kDe(C),l.loginWithRedirect(C)},[l]),h=b.useCallback(function(C,w){return Hy(void 0,void 0,void 0,function(){var x,T;return Vy(this,function(A){switch(A.label){case 0:d({type:"LOGIN_POPUP_STARTED"}),A.label=1;case 1:return A.trys.push([1,3,,4]),[4,l.loginWithPopup(C,w)];case 2:return A.sent(),[3,4];case 3:return x=A.sent(),d({type:"ERROR",error:Iye(x)}),[2];case 4:return[4,l.getUser()];case 5:return T=A.sent(),d({type:"LOGIN_POPUP_COMPLETE",user:T}),[2]}})})},[l]),m=b.useCallback(function(C){return C===void 0&&(C={}),Hy(void 0,void 0,void 0,function(){return Vy(this,function(w){switch(w.label){case 0:return[4,l.logout(C)];case 1:return w.sent(),(C.openUrl||C.openUrl===!1)&&d({type:"LOGOUT"}),[2]}})})},[l]),g=b.useCallback(function(C){return Hy(void 0,void 0,void 0,function(){var w,x,T,A;return Vy(this,function(I){switch(I.label){case 0:return I.trys.push([0,2,3,5]),[4,l.getTokenSilently(C)];case 1:return w=I.sent(),[3,5];case 2:throw x=I.sent(),yG(x);case 3:return T=d,A={type:"GET_ACCESS_TOKEN_COMPLETE"},[4,l.getUser()];case 4:return T.apply(void 0,[(A.user=I.sent(),A)]),[7];case 5:return[2,w]}})})},[l]),v=b.useCallback(function(C,w){return Hy(void 0,void 0,void 0,function(){var x,T,A,I;return Vy(this,function(R){switch(R.label){case 0:return R.trys.push([0,2,3,5]),[4,l.getTokenWithPopup(C,w)];case 1:return x=R.sent(),[3,5];case 2:throw T=R.sent(),yG(T);case 3:return A=d,I={type:"GET_ACCESS_TOKEN_COMPLETE"},[4,l.getUser()];case 4:return A.apply(void 0,[(I.user=R.sent(),I)]),[7];case 5:return[2,x]}})})},[l]),y=b.useCallback(function(){return l.getIdTokenClaims()},[l]),_=b.useCallback(function(C){return Hy(void 0,void 0,void 0,function(){var w,x,T;return Vy(this,function(A){switch(A.label){case 0:return A.trys.push([0,2,3,5]),[4,l.handleRedirectCallback(C)];case 1:return[2,A.sent()];case 2:throw w=A.sent(),yG(w);case 3:return x=d,T={type:"HANDLE_REDIRECT_COMPLETE"},[4,l.getUser()];case 4:return x.apply(void 0,[(T.user=A.sent(),T)]),[7];case 5:return[2]}})})},[l]),S=b.useMemo(function(){return ds(ds({},u),{getAccessTokenSilently:g,getAccessTokenWithPopup:v,getIdTokenClaims:y,loginWithRedirect:p,loginWithPopup:h,logout:m,handleRedirectCallback:_})},[u,g,v,y,p,h,m,_]);return se.createElement(o.Provider,{value:S},t)},iO=function(e){return e===void 0&&(e=rue),b.useContext(e)},ZCt=function(){return se.createElement(se.Fragment,null)},QCt=function(){return Hy(void 0,void 0,void 0,function(){return Vy(this,function(e){return[2]})})},JCt=function(){return"".concat(window.location.pathname).concat(window.location.search)},ewt=function(e,t){return t===void 0&&(t={}),function(r){var i=this,a=t.returnTo,o=a===void 0?JCt:a,s=t.onRedirecting,l=s===void 0?ZCt:s,c=t.onBeforeAuthentication,u=c===void 0?QCt:c,d=t.loginOptions,f=t.context,p=f===void 0?rue:f,h=iO(p),m=h.isAuthenticated,g=h.isLoading,v=h.loginWithRedirect;return b.useEffect(function(){if(!(g||m)){var y=ds(ds({},d),{appState:ds(ds({},d&&d.appState),{returnTo:typeof o=="function"?o():o})});(function(){return Hy(i,void 0,void 0,function(){return Vy(this,function(_){switch(_.label){case 0:return[4,u()];case 1:return _.sent(),[4,v(y)];case 2:return _.sent(),[2]}})})})()}},[g,m,v,u,d,o]),m?se.createElement(e,ds({},r)):l()}};const MDe=Object.prototype.toString;function iue(e){switch(MDe.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return t0(e,Error)}}function tT(e,t){return MDe.call(e)===`[object ${t}]`}function aue(e){return tT(e,"ErrorEvent")}function Aye(e){return tT(e,"DOMError")}function twt(e){return tT(e,"DOMException")}function Ug(e){return tT(e,"String")}function oue(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function sue(e){return e===null||oue(e)||typeof e!="object"&&typeof e!="function"}function u3(e){return tT(e,"Object")}function Oj(e){return typeof Event<"u"&&t0(e,Event)}function nwt(e){return typeof Element<"u"&&t0(e,Element)}function rwt(e){return tT(e,"RegExp")}function Lj(e){return!!(e&&e.then&&typeof e.then=="function")}function iwt(e){return u3(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function DDe(e){return typeof e=="number"&&e!==e}function t0(e,t){try{return e instanceof t}catch{return!1}}function $De(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function y5(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Rye(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const i=e[r];try{$De(i)?n.push("[VueViewModel]"):n.push(String(i))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function awt(e,t,n=!1){return Ug(e)?rwt(t)?t.test(e):Ug(t)?n?e===t:e.includes(t):!1:!1}function nT(e,t=[],n=!1){return t.some(r=>awt(e,r,n))}function owt(e,t,n=250,r,i,a,o){if(!a.exception||!a.exception.values||!o||!t0(o.originalException,Error))return;const s=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;s&&(a.exception.values=swt(Jne(e,t,i,o.originalException,r,a.exception.values,s,0),n))}function Jne(e,t,n,r,i,a,o,s){if(a.length>=n+1)return a;let l=[...a];if(t0(r[i],Error)){Nye(o,s);const c=e(t,r[i]),u=l.length;Oye(c,i,u,s),l=Jne(e,t,n,r[i],i,[c,...l],c,u)}return Array.isArray(r.errors)&&r.errors.forEach((c,u)=>{if(t0(c,Error)){Nye(o,s);const d=e(t,c),f=l.length;Oye(d,`errors[${u}]`,f,s),l=Jne(e,t,n,c,i,[d,...l],d,f)}}),l}function Nye(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function Oye(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function swt(e,t){return e.map(n=>(n.value&&(n.value=y5(n.value,t)),n))}function FL(e){return e&&e.Math==Math?e:void 0}const ca=typeof globalThis=="object"&&FL(globalThis)||typeof window=="object"&&FL(window)||typeof self=="object"&&FL(self)||typeof global=="object"&&FL(global)||function(){return this}()||{};function lue(){return ca}function FDe(e,t,n){const r=n||ca,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}const b5=lue(),lwt=80;function Qb(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,i=[];let a=0,o=0;const s=" > ",l=s.length;let c;const u=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||lwt;for(;n&&a++<r&&(c=cwt(n,u),!(c==="html"||a>1&&o+i.length*l+c.length>=d));)i.push(c),o+=c.length,n=n.parentNode;return i.reverse().join(s)}catch{return"<unknown>"}}function cwt(e,t){const n=e,r=[];let i,a,o,s,l;if(!n||!n.tagName)return"";if(b5.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;r.push(n.tagName.toLowerCase());const c=t&&t.length?t.filter(d=>n.getAttribute(d)).map(d=>[d,n.getAttribute(d)]):null;if(c&&c.length)c.forEach(d=>{r.push(`[${d[0]}="${d[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),i=n.className,i&&Ug(i))for(a=i.split(/\s+/),l=0;l<a.length;l++)r.push(`.${a[l]}`);const u=["aria-label","type","name","title","alt"];for(l=0;l<u.length;l++)o=u[l],s=n.getAttribute(o),s&&r.push(`[${o}="${s}"]`);return r.join("")}function uwt(){try{return b5.document.location.href}catch{return""}}function dwt(e){return b5.document&&b5.document.querySelector?b5.document.querySelector(e):null}function BDe(e){if(!b5.HTMLElement)return null;let t=e;const n=5;for(let r=0;r<n;r++){if(!t)return null;if(t instanceof HTMLElement&&t.dataset.sentryComponent)return t.dataset.sentryComponent;t=t.parentNode}return null}const rT=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,fwt="Sentry Logger ",ere=["debug","info","warn","error","log","assert","trace"],v$={};function RE(e){if(!("console"in ca))return e();const t=ca.console,n={},r=Object.keys(v$);r.forEach(i=>{const a=v$[i];n[i]=t[i],t[i]=a});try{return e()}finally{r.forEach(i=>{t[i]=n[i]})}}function pwt(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return rT?ere.forEach(n=>{t[n]=(...r)=>{e&&RE(()=>{ca.console[n](`${fwt}[${n}]:`,...r)})}}):ere.forEach(n=>{t[n]=()=>{}}),t}const en=pwt(),hwt=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function mwt(e){return e==="http"||e==="https"}function mC(e,t=!1){const{host:n,path:r,pass:i,port:a,projectId:o,protocol:s,publicKey:l}=e;return`${s}://${l}${t&&i?`:${i}`:""}@${n}${a?`:${a}`:""}/${r&&`${r}/`}${o}`}function gwt(e){const t=hwt.exec(e);if(!t){RE(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,i="",a,o="",s]=t.slice(1);let l="",c=s;const u=c.split("/");if(u.length>1&&(l=u.slice(0,-1).join("/"),c=u.pop()),c){const d=c.match(/^\d+/);d&&(c=d[0])}return jDe({host:a,pass:i,path:l,projectId:c,port:o,protocol:n,publicKey:r})}function jDe(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function vwt(e){if(!rT)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(o=>e[o]?!1:(en.error(`Invalid Sentry Dsn: ${o} missing`),!0))?!1:n.match(/^\d+$/)?mwt(r)?t&&isNaN(parseInt(t,10))?(en.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(en.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(en.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function zDe(e){const t=typeof e=="string"?gwt(e):jDe(e);if(!(!t||!vwt(t)))return t}class Rg extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}function Yl(e,t,n){if(!(t in e))return;const r=e[t],i=n(r);typeof i=="function"&&UDe(i,r),e[t]=i}function NE(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{rT&&en.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function UDe(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,NE(e,"__sentry_original__",t)}catch{}}function cue(e){return e.__sentry_original__}function ywt(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function HDe(e){if(iue(e))return{message:e.message,name:e.name,stack:e.stack,...Pye(e)};if(Oj(e)){const t={type:e.type,target:Lye(e.target),currentTarget:Lye(e.currentTarget),...Pye(e)};return typeof CustomEvent<"u"&&t0(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function Lye(e){try{return nwt(e)?Qb(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function Pye(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function bwt(e,t=40){const n=Object.keys(HDe(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return y5(n[0],t);for(let r=n.length;r>0;r--){const i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length?i:y5(i,t)}return""}function Tu(e){return tre(e,new Map)}function tre(e,t){if(_wt(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const i of Object.keys(e))typeof e[i]<"u"&&(r[i]=tre(e[i],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(i=>{r.push(tre(i,t))}),r}return e}function _wt(e){if(!u3(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const VDe=50,kye=/\(error: (.*)\)/,Mye=/captureMessage|captureException/;function GDe(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0)=>{const i=[],a=n.split(`
`);for(let o=r;o<a.length;o++){const s=a[o];if(s.length>1024)continue;const l=kye.test(s)?s.replace(kye,"$1"):s;if(!l.match(/\S*Error: /)){for(const c of t){const u=c(l);if(u){i.push(u);break}}if(i.length>=VDe)break}}return Ewt(i)}}function Swt(e){return Array.isArray(e)?GDe(...e):e}function Ewt(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),Mye.test(t[t.length-1].function||"")&&(t.pop(),Mye.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,VDe).map(n=>({...n,filename:n.filename||t[t.length-1].filename,function:n.function||"?"}))}const bG="<anonymous>";function n0(e){try{return!e||typeof e!="function"?bG:e.name||bG}catch{return bG}}const j9={},Dye={};function gC(e,t){j9[e]=j9[e]||[],j9[e].push(t)}function vC(e,t){Dye[e]||(t(),Dye[e]=!0)}function Qh(e,t){const n=e&&j9[e];if(n)for(const r of n)try{r(t)}catch(i){rT&&en.error(`Error while triggering instrumentation handler.
Type: ${e}
Name: ${n0(r)}
Error:`,i)}}function Cwt(e){const t="console";gC(t,e),vC(t,wwt)}function wwt(){"console"in ca&&ere.forEach(function(e){e in ca.console&&Yl(ca.console,e,function(t){return v$[e]=t,function(...n){Qh("console",{args:n,level:e});const i=v$[e];i&&i.apply(ca.console,n)}})})}function Rs(){const e=ca,t=e.crypto||e.msCrypto;let n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const r=new Uint8Array(1);return t.getRandomValues(r),r[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function qDe(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function nb(e){const{message:t,event_id:n}=e;if(t)return t;const r=qDe(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function nre(e,t,n){const r=e.exception=e.exception||{},i=r.values=r.values||[],a=i[0]=i[0]||{};a.value||(a.value=t||""),a.type||(a.type="Error")}function _N(e,t){const n=qDe(e);if(!n)return;const r={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...t},t&&"data"in t){const a={...i&&i.data,...t.data};n.mechanism.data=a}}function $ye(e){if(e&&e.__sentry_captured__)return!0;try{NE(e,"__sentry_captured__",!0)}catch{}return!1}function WDe(e){return Array.isArray(e)?e:[e]}const gx=ca,xwt=1e3;let Fye,rre,ire;function YDe(e){const t="dom";gC(t,e),vC(t,Twt)}function Twt(){if(!gx.document)return;const e=Qh.bind(null,"dom"),t=Bye(e,!0);gx.document.addEventListener("click",t,!1),gx.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const r=gx[n]&&gx[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(Yl(r,"addEventListener",function(i){return function(a,o,s){if(a==="click"||a=="keypress")try{const l=this,c=l.__sentry_instrumentation_handlers__=l.__sentry_instrumentation_handlers__||{},u=c[a]=c[a]||{refCount:0};if(!u.handler){const d=Bye(e);u.handler=d,i.call(this,a,d,s)}u.refCount++}catch{}return i.call(this,a,o,s)}}),Yl(r,"removeEventListener",function(i){return function(a,o,s){if(a==="click"||a=="keypress")try{const l=this,c=l.__sentry_instrumentation_handlers__||{},u=c[a];u&&(u.refCount--,u.refCount<=0&&(i.call(this,a,u.handler,s),u.handler=void 0,delete c[a]),Object.keys(c).length===0&&delete l.__sentry_instrumentation_handlers__)}catch{}return i.call(this,a,o,s)}}))})}function Iwt(e){if(e.type!==rre)return!1;try{if(!e.target||e.target._sentryId!==ire)return!1}catch{}return!0}function Awt(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function Bye(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=Rwt(n);if(Awt(n.type,r))return;NE(n,"_sentryCaptured",!0),r&&!r._sentryId&&NE(r,"_sentryId",Rs());const i=n.type==="keypress"?"input":n.type;Iwt(n)||(e({event:n,name:i,global:t}),rre=n.type,ire=r?r._sentryId:void 0),clearTimeout(Fye),Fye=gx.setTimeout(()=>{ire=void 0,rre=void 0},xwt)}}function Rwt(e){try{return e.target}catch{return null}}const are=lue();function KDe(){if(!("fetch"in are))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function ore(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Nwt(){if(typeof EdgeRuntime=="string")return!0;if(!KDe())return!1;if(ore(are.fetch))return!0;let e=!1;const t=are.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=ore(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){rT&&en.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function uue(e){const t="fetch";gC(t,e),vC(t,Owt)}function Owt(){Nwt()&&Yl(ca,"fetch",function(e){return function(...t){const{method:n,url:r}=Lwt(t),i={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return Qh("fetch",{...i}),e.apply(ca,t).then(a=>{const o={...i,endTimestamp:Date.now(),response:a};return Qh("fetch",o),a},a=>{const o={...i,endTimestamp:Date.now(),error:a};throw Qh("fetch",o),a})}})}function sre(e,t){return!!e&&typeof e=="object"&&!!e[t]}function jye(e){return typeof e=="string"?e:e?sre(e,"url")?e.url:e.toString?e.toString():"":""}function Lwt(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:jye(n),method:sre(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:jye(t),method:sre(t,"method")?String(t.method).toUpperCase():"GET"}}let BL=null;function XDe(e){const t="error";gC(t,e),vC(t,Pwt)}function Pwt(){BL=ca.onerror,ca.onerror=function(e,t,n,r,i){return Qh("error",{column:r,error:i,line:n,msg:e,url:t}),BL&&!BL.__SENTRY_LOADER__?BL.apply(this,arguments):!1},ca.onerror.__SENTRY_INSTRUMENTED__=!0}let jL=null;function ZDe(e){const t="unhandledrejection";gC(t,e),vC(t,kwt)}function kwt(){jL=ca.onunhandledrejection,ca.onunhandledrejection=function(e){return Qh("unhandledrejection",e),jL&&!jL.__SENTRY_LOADER__?jL.apply(this,arguments):!0},ca.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const zL=lue();function Mwt(){const e=zL.chrome,t=e&&e.app&&e.app.runtime,n="history"in zL&&!!zL.history.pushState&&!!zL.history.replaceState;return!t&&n}const B4=ca;let UL;function Pj(e){const t="history";gC(t,e),vC(t,Dwt)}function Dwt(){if(!Mwt())return;const e=B4.onpopstate;B4.onpopstate=function(...n){const r=B4.location.href,i=UL;if(UL=r,Qh("history",{from:i,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){const i=r.length>2?r[2]:void 0;if(i){const a=UL,o=String(i);UL=o,Qh("history",{from:a,to:o})}return n.apply(this,r)}}Yl(B4.history,"pushState",t),Yl(B4.history,"replaceState",t)}const $wt=ca,ub="__sentry_xhr_v3__";function due(e){const t="xhr";gC(t,e),vC(t,Fwt)}function Fwt(){if(!$wt.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;Yl(e,"open",function(t){return function(...n){const r=Date.now(),i=Ug(n[0])?n[0].toUpperCase():void 0,a=Bwt(n[1]);if(!i||!a)return t.apply(this,n);this[ub]={method:i,url:a,request_headers:{}},i==="POST"&&a.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const o=()=>{const s=this[ub];if(s&&this.readyState===4){try{s.status_code=this.status}catch{}const l={args:[i,a],endTimestamp:Date.now(),startTimestamp:r,xhr:this};Qh("xhr",l)}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?Yl(this,"onreadystatechange",function(s){return function(...l){return o(),s.apply(this,l)}}):this.addEventListener("readystatechange",o),Yl(this,"setRequestHeader",function(s){return function(...l){const[c,u]=l,d=this[ub];return d&&Ug(c)&&Ug(u)&&(d.request_headers[c.toLowerCase()]=u),s.apply(this,l)}}),t.apply(this,n)}}),Yl(e,"send",function(t){return function(...n){const r=this[ub];if(!r)return t.apply(this,n);n[0]!==void 0&&(r.body=n[0]);const i={args:[r.method,r.url],startTimestamp:Date.now(),xhr:this};return Qh("xhr",i),t.apply(this,n)}})}function Bwt(e){if(Ug(e))return e;try{return e.toString()}catch{}}function jwt(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function zwt(){return"npm"}function Uwt(){return!jwt()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function zye(){return typeof window<"u"&&(!Uwt()||Hwt())}function Hwt(){return ca.process!==void 0&&ca.process.type==="renderer"}function Vwt(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(i){if(e)return t.has(i)?!0:(t.add(i),!1);for(let a=0;a<t.length;a++)if(t[a]===i)return!0;return t.push(i),!1}function r(i){if(e)t.delete(i);else for(let a=0;a<t.length;a++)if(t[a]===i){t.splice(a,1);break}}return[n,r]}function wg(e,t=100,n=1/0){try{return lre("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function QDe(e,t=3,n=100*1024){const r=wg(e,t);return Ywt(r)>n?QDe(e,t-1,n):r}function lre(e,t,n=1/0,r=1/0,i=Vwt()){const[a,o]=i;if(t==null||["number","boolean","string"].includes(typeof t)&&!DDe(t))return t;const s=Gwt(e,t);if(!s.startsWith("[object "))return s;if(t.__sentry_skip_normalization__)return t;const l=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(l===0)return s.replace("object ","");if(a(t))return"[Circular ~]";const c=t;if(c&&typeof c.toJSON=="function")try{const p=c.toJSON();return lre("",p,l-1,r,i)}catch{}const u=Array.isArray(t)?[]:{};let d=0;const f=HDe(t);for(const p in f){if(!Object.prototype.hasOwnProperty.call(f,p))continue;if(d>=r){u[p]="[MaxProperties ~]";break}const h=f[p];u[p]=lre(p,h,l-1,r,i),d++}return o(t),u}function Gwt(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if($De(t))return"[VueViewModel]";if(iwt(t))return"[SyntheticEvent]";if(typeof t=="number"&&t!==t)return"[NaN]";if(typeof t=="function")return`[Function: ${n0(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=qwt(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function qwt(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function Wwt(e){return~-encodeURI(e).split(/%..|./).length}function Ywt(e){return Wwt(JSON.stringify(e))}var v1;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(v1||(v1={}));function d3(e){return new gf(t=>{t(e)})}function fue(e){return new gf((t,n)=>{n(e)})}class gf{constructor(t){gf.prototype.__init.call(this),gf.prototype.__init2.call(this),gf.prototype.__init3.call(this),gf.prototype.__init4.call(this),this._state=v1.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new gf((r,i)=>{this._handlers.push([!1,a=>{if(!t)r(a);else try{r(t(a))}catch(o){i(o)}},a=>{if(!n)i(a);else try{r(n(a))}catch(o){i(o)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new gf((n,r)=>{let i,a;return this.then(o=>{a=!1,i=o,t&&t()},o=>{a=!0,i=o,t&&t()}).then(()=>{if(a){r(i);return}n(i)})})}__init(){this._resolve=t=>{this._setResult(v1.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(v1.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===v1.PENDING){if(Lj(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===v1.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===v1.RESOLVED&&n[1](this._value),this._state===v1.REJECTED&&n[2](this._value),n[0]=!0)})}}}function Kwt(e){const t=[];function n(){return e===void 0||t.length<e}function r(o){return t.splice(t.indexOf(o),1)[0]}function i(o){if(!n())return fue(new Rg("Not adding Promise because buffer limit was reached."));const s=o();return t.indexOf(s)===-1&&t.push(s),s.then(()=>r(s)).then(null,()=>r(s).then(null,()=>{})),s}function a(o){return new gf((s,l)=>{let c=t.length;if(!c)return s(!0);const u=setTimeout(()=>{o&&o>0&&s(!1)},o);t.forEach(d=>{d3(d).then(()=>{--c||(clearTimeout(u),s(!0))},l)})})}return{$:t,add:i,drain:a}}function nE(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}const Xwt=["fatal","error","warning","log","info","debug"];function Zwt(e){return e==="warn"?"warning":Xwt.includes(e)?e:"log"}const JDe=1e3;function aO(){return Date.now()/JDe}function Qwt(){const{performance:e}=ca;if(!e||!e.now)return aO;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/JDe}const oO=Qwt(),Af=(()=>{const{performance:e}=ca;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,a=i<t,o=e.timing&&e.timing.navigationStart,l=typeof o=="number"?Math.abs(o+n-r):t,c=l<t;return a||c?i<=l?e.timeOrigin:o:r})(),cre="baggage",e$e="sentry-",Jwt=/^sentry-/,ext=8192;function txt(e){if(!Ug(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce((r,i)=>{const a=Uye(i);for(const o of Object.keys(a))r[o]=a[o];return r},{});else{if(!e)return;t=Uye(e)}const n=Object.entries(t).reduce((r,[i,a])=>{if(i.match(Jwt)){const o=i.slice(e$e.length);r[o]=a}return r},{});if(Object.keys(n).length>0)return n}function t$e(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,i])=>(i&&(n[`${e$e}${r}`]=i),n),{});return nxt(t)}function Uye(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,r])=>(t[n]=r,t),{})}function nxt(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],i)=>{const a=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,o=i===0?a:`${t},${a}`;return o.length>ext?(rT&&en.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):o},"")}const rxt=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function ixt(e){if(!e)return;const t=e.match(rxt);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function axt(e,t){const n=ixt(e),r=txt(t),{traceId:i,parentSpanId:a,parentSampled:o}=n||{};return n?{traceId:i||Rs(),parentSpanId:a||Rs().substring(16),spanId:Rs().substring(16),sampled:o,dsc:r||{}}:{traceId:i||Rs(),spanId:Rs().substring(16)}}function pue(e=Rs(),t=Rs().substring(16),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function S_(e,t=[]){return[e,t]}function oxt(e,t){const[n,r]=e;return[n,[...r,t]]}function Hye(e,t){const n=e[1];for(const r of n){const i=r[0].type;if(t(r,i))return!0}return!1}function ure(e,t){return(t||new TextEncoder).encode(e)}function sxt(e,t){const[n,r]=e;let i=JSON.stringify(n);function a(o){typeof i=="string"?i=typeof o=="string"?i+o:[ure(i,t),o]:i.push(typeof o=="string"?ure(o,t):o)}for(const o of r){const[s,l]=o;if(a(`
${JSON.stringify(s)}
`),typeof l=="string"||l instanceof Uint8Array)a(l);else{let c;try{c=JSON.stringify(l)}catch{c=JSON.stringify(wg(l))}a(c)}}return typeof i=="string"?i:lxt(i)}function lxt(e){const t=e.reduce((i,a)=>i+a.length,0),n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}function cxt(e,t){const n=typeof e.data=="string"?ure(e.data,t):e.data;return[Tu({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const uxt={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function Vye(e){return uxt[e]}function hue(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function n$e(e,t,n,r){const i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:mC(r)},...i&&{trace:Tu({...i})}}}function dxt(e,t,n){const r=[{type:"client_report"},{timestamp:aO(),discarded_events:e}];return S_(t?{dsn:t}:{},[r])}const fxt=60*1e3;function pxt(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?fxt:r-t}function hxt(e,t){return e[t]||e.all||0}function r$e(e,t,n=Date.now()){return hxt(e,t)>n}function i$e(e,{statusCode:t,headers:n},r=Date.now()){const i={...e},a=n&&n["x-sentry-rate-limits"],o=n&&n["retry-after"];if(a)for(const s of a.trim().split(",")){const[l,c,,,u]=s.split(":",5),d=parseInt(l,10),f=(isNaN(d)?60:d)*1e3;if(!c)i.all=r+f;else for(const p of c.split(";"))p==="metric_bucket"?(!u||u.split(";").includes("custom"))&&(i[p]=r+f):i[p]=r+f}else o?i.all=r+pxt(o,r):t===429&&(i.all=r+60*1e3);return i}function mxt(e,t){return e??t()}function _G(e){let t,n=e[0],r=1;for(;r<e.length;){const i=e[r],a=e[r+1];if(r+=2,(i==="optionalAccess"||i==="optionalCall")&&n==null)return;i==="access"||i==="optionalAccess"?(t=n,n=a(n)):(i==="call"||i==="optionalCall")&&(n=a((...o)=>n.call(t,...o)),t=void 0)}return n}const wr=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,kj="production";function mue(){return FDe("globalEventProcessors",()=>[])}function gxt(e){mue().push(e)}function y$(e,t,n,r=0){return new gf((i,a)=>{const o=e[r];if(t===null||typeof o!="function")i(t);else{const s=o({...t},n);wr&&o.id&&s===null&&en.log(`Event processor "${o.id}" dropped event`),Lj(s)?s.then(l=>y$(e,l,n,r+1).then(i)).then(null,a):y$(e,s,n,r+1).then(i).then(null,a)}})}function a$e(e){const t=oO(),n={sid:Rs(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>vxt(n)};return e&&OE(n,e),n}function OE(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||oO(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:Rs()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function o$e(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),OE(e,n)}function vxt(e){return Tu({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}const yxt=0,s$e=1;function gue(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:a,status:o,tags:s,origin:l}=Js(e);return Tu({data:r,op:i,parent_span_id:a,span_id:t,status:o,tags:s,trace_id:n,origin:l})}function Mj(e){const{traceId:t,spanId:n}=e.spanContext(),r=vue(e);return pue(t,n,r)}function Dj(e){return typeof e=="number"?Gye(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Gye(e.getTime()):oO()}function Gye(e){return e>9999999999?e/1e3:e}function Js(e){return bxt(e)?e.getSpanJSON():typeof e.toJSON=="function"?e.toJSON():{}}function bxt(e){return typeof e.getSpanJSON=="function"}function vue(e){const{traceFlags:t}=e.spanContext();return!!(t&s$e)}function l$e(e,t,n,r,i,a){const{normalizeDepth:o=3,normalizeMaxBreadth:s=1e3}=e,l={...t,event_id:t.event_id||n.event_id||Rs(),timestamp:t.timestamp||aO()},c=n.integrations||e.integrations.map(g=>g.name);_xt(l,e),Cxt(l,c),t.type===void 0&&Sxt(l,e.stackParser);const u=xxt(r,n.captureContext);n.mechanism&&_N(l,n.mechanism);const d=i&&i.getEventProcessors?i.getEventProcessors():[],f=$xt().getScopeData();if(a){const g=a.getScopeData();Kye(f,g)}if(u){const g=u.getScopeData();Kye(f,g)}const p=[...n.attachments||[],...f.attachments];p.length&&(n.attachments=p),p$e(l,f);const h=[...d,...mue(),...f.eventProcessors];return y$(h,l,n).then(g=>(g&&Ext(g),typeof o=="number"&&o>0?wxt(g,o,s):g))}function _xt(e,t){const{environment:n,release:r,dist:i,maxValueLength:a=250}=t;"environment"in e||(e.environment="environment"in t?n:kj),e.release===void 0&&r!==void 0&&(e.release=r),e.dist===void 0&&i!==void 0&&(e.dist=i),e.message&&(e.message=y5(e.message,a));const o=e.exception&&e.exception.values&&e.exception.values[0];o&&o.value&&(o.value=y5(o.value,a));const s=e.request;s&&s.url&&(s.url=y5(s.url,a))}const qye=new WeakMap;function Sxt(e,t){const n=ca._sentryDebugIds;if(!n)return;let r;const i=qye.get(t);i?r=i:(r=new Map,qye.set(t,r));const a=Object.keys(n).reduce((o,s)=>{let l;const c=r.get(s);c?l=c:(l=t(s),r.set(s,l));for(let u=l.length-1;u>=0;u--){const d=l[u];if(d.filename){o[d.filename]=n[s];break}}return o},{});try{e.exception.values.forEach(o=>{o.stacktrace.frames.forEach(s=>{s.filename&&(s.debug_id=a[s.filename])})})}catch{}}function Ext(e){const t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(i=>{i.debug_id&&(i.abs_path?t[i.abs_path]=i.debug_id:i.filename&&(t[i.filename]=i.debug_id),delete i.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.keys(t).forEach(r=>{n.push({type:"sourcemap",code_file:r,debug_id:t[r]})})}function Cxt(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function wxt(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(i=>({...i,...i.data&&{data:wg(i.data,t,n)}}))},...e.user&&{user:wg(e.user,t,n)},...e.contexts&&{contexts:wg(e.contexts,t,n)},...e.extra&&{extra:wg(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=wg(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(i=>{const a=Js(i).data;return a&&(i.data=wg(a,t,n)),i})),r}function xxt(e,t){if(!t)return e;const n=e?e.clone():new H1;return n.update(t),n}function Txt(e){if(e)return Ixt(e)?{captureContext:e}:Rxt(e)?{captureContext:e}:e}function Ixt(e){return e instanceof H1||typeof e=="function"}const Axt=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function Rxt(e){return Object.keys(e).some(t=>Axt.includes(t))}function $j(e,t){return iu().captureException(e,Txt(t))}function c$e(e,t){return iu().captureEvent(e,t)}function Jb(e,t){iu().addBreadcrumb(e,t)}function Nxt(e,t){iu().setContext(e,t)}function u$e(...e){const t=iu();if(e.length===2){const[n,r]=e;return n?t.withScope(()=>(t.getStackTop().scope=n,r(n))):t.withScope(r)}return t.withScope(e[0])}function Ha(){return iu().getClient()}function Df(){return iu().getScope()}function Wye(e){const t=Ha(),n=E_(),r=Df(),{release:i,environment:a=kj}=t&&t.getOptions()||{},{userAgent:o}=ca.navigator||{},s=a$e({release:i,environment:a,user:r.getUser()||n.getUser(),...o&&{userAgent:o},...e}),l=n.getSession();return l&&l.status==="ok"&&OE(l,{status:"exited"}),d$e(),n.setSession(s),r.setSession(s),s}function d$e(){const e=E_(),t=Df(),n=t.getSession()||e.getSession();n&&o$e(n),f$e(),e.setSession(),t.setSession()}function f$e(){const e=E_(),t=Df(),n=Ha(),r=t.getSession()||e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}function Yye(e=!1){if(e){d$e();return}f$e()}function b$(e){return e.transaction}function Fj(e,t,n){const r=t.getOptions(),{publicKey:i}=t.getDsn()||{},{segment:a}=n&&n.getUser()||{},o=Tu({environment:r.environment||kj,release:r.release,user_segment:a,public_key:i,trace_id:e});return t.emit&&t.emit("createDsc",o),o}function f3(e){const t=Ha();if(!t)return{};const n=Fj(Js(e).trace_id||"",t,Df()),r=b$(e);if(!r)return n;const i=r&&r._frozenDynamicSamplingContext;if(i)return i;const{sampleRate:a,source:o}=r.metadata;a!=null&&(n.sample_rate=`${a}`);const s=Js(r);return o&&o!=="url"&&(n.transaction=s.description),n.sampled=String(vue(r)),t.emit&&t.emit("createDsc",n),n}function p$e(e,t){const{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:a}=t;Oxt(e,t),r&&kxt(e,r),Mxt(e,n),Lxt(e,i),Pxt(e,a)}function Kye(e,t){const{extra:n,tags:r,user:i,contexts:a,level:o,sdkProcessingMetadata:s,breadcrumbs:l,fingerprint:c,eventProcessors:u,attachments:d,propagationContext:f,transactionName:p,span:h}=t;j4(e,"extra",n),j4(e,"tags",r),j4(e,"user",i),j4(e,"contexts",a),j4(e,"sdkProcessingMetadata",s),o&&(e.level=o),p&&(e.transactionName=p),h&&(e.span=h),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),c.length&&(e.fingerprint=[...e.fingerprint,...c]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...f}}function j4(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}function Oxt(e,t){const{extra:n,tags:r,user:i,contexts:a,level:o,transactionName:s}=t,l=Tu(n);l&&Object.keys(l).length&&(e.extra={...l,...e.extra});const c=Tu(r);c&&Object.keys(c).length&&(e.tags={...c,...e.tags});const u=Tu(i);u&&Object.keys(u).length&&(e.user={...u,...e.user});const d=Tu(a);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts}),o&&(e.level=o),s&&(e.transaction=s)}function Lxt(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function Pxt(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function kxt(e,t){e.contexts={trace:gue(t),...e.contexts};const n=b$(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:f3(t),...e.sdkProcessingMetadata};const r=Js(n).description;r&&(e.tags={transaction:r,...e.tags})}}function Mxt(e,t){e.fingerprint=e.fingerprint?WDe(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}const Dxt=100;let SG;class H1{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=Xye()}static clone(t){return t?t.clone():new H1}clone(){const t=new H1;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._span=this._span,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t}setClient(t){this._client=t}getClient(){return this._client}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&OE(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this._span;return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t;if(n instanceof H1){const r=n.getScopeData();this._tags={...this._tags,...r.tags},this._extra={...this._extra,...r.extra},this._contexts={...this._contexts,...r.contexts},r.user&&Object.keys(r.user).length&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint.length&&(this._fingerprint=r.fingerprint),n.getRequestSession()&&(this._requestSession=n.getRequestSession()),r.propagationContext&&(this._propagationContext=r.propagationContext)}else if(u3(n)){const r=t;this._tags={...this._tags,...r.tags},this._extra={...this._extra,...r.extra},this._contexts={...this._contexts,...r.contexts},r.user&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint&&(this._fingerprint=r.fingerprint),r.requestSession&&(this._requestSession=r.requestSession),r.propagationContext&&(this._propagationContext=r.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=Xye(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:Dxt;if(r<=0)return this;const i={timestamp:aO(),...t},a=this._breadcrumbs;return a.push(i),this._breadcrumbs=a.length>r?a.slice(-r):a,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:t,_attachments:n,_contexts:r,_tags:i,_extra:a,_user:o,_level:s,_fingerprint:l,_eventProcessors:c,_propagationContext:u,_sdkProcessingMetadata:d,_transactionName:f,_span:p}=this;return{breadcrumbs:t,attachments:n,contexts:r,tags:i,extra:a,user:o,level:s,fingerprint:l||[],eventProcessors:c,propagationContext:u,sdkProcessingMetadata:d,transactionName:f,span:p}}applyToEvent(t,n={},r=[]){p$e(t,this.getScopeData());const i=[...r,...mue(),...this._eventProcessors];return y$(i,t,n)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n&&n.event_id?n.event_id:Rs();if(!this._client)return en.warn("No client configured on scope - will not capture exception!"),r;const i=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:i,...n,event_id:r},this),r}captureMessage(t,n,r){const i=r&&r.event_id?r.event_id:Rs();if(!this._client)return en.warn("No client configured on scope - will not capture message!"),i;const a=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:a,...r,event_id:i},this),i}captureEvent(t,n){const r=n&&n.event_id?n.event_id:Rs();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(en.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}function $xt(){return SG||(SG=new H1),SG}function Xye(){return{traceId:Rs(),spanId:Rs().substring(16)}}const dre="7.119.1",h$e=parseFloat(dre),Fxt=100;class m$e{constructor(t,n,r,i=h$e){this._version=i;let a;n?a=n:(a=new H1,a.setClient(t));let o;r?o=r:(o=new H1,o.setClient(t)),this._stack=[{scope:a}],t&&this.bindClient(t),this._isolationScope=o}isOlderThan(t){return this._version<t}bindClient(t){const n=this.getStackTop();n.client=t,n.scope.setClient(t),t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){const t=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:t}),t}popScope(){return this.getStack().length<=1?!1:!!this.getStack().pop()}withScope(t){const n=this.pushScope();let r;try{r=t(n)}catch(i){throw this.popScope(),i}return Lj(r)?r.then(i=>(this.popScope(),i),i=>{throw this.popScope(),i}):(this.popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:Rs(),i=new Error("Sentry syntheticException");return this.getScope().captureException(t,{originalException:t,syntheticException:i,...n,event_id:r}),r}captureMessage(t,n,r){const i=this._lastEventId=r&&r.event_id?r.event_id:Rs(),a=new Error(t);return this.getScope().captureMessage(t,n,{originalException:t,syntheticException:a,...r,event_id:i}),i}captureEvent(t,n){const r=n&&n.event_id?n.event_id:Rs();return t.type||(this._lastEventId=r),this.getScope().captureEvent(t,{...n,event_id:r}),r}lastEventId(){return this._lastEventId}addBreadcrumb(t,n){const{scope:r,client:i}=this.getStackTop();if(!i)return;const{beforeBreadcrumb:a=null,maxBreadcrumbs:o=Fxt}=i.getOptions&&i.getOptions()||{};if(o<=0)return;const l={timestamp:aO(),...t},c=a?RE(()=>a(l,n)):l;c!==null&&(i.emit&&i.emit("beforeAddBreadcrumb",c,n),r.addBreadcrumb(c,o))}setUser(t){this.getScope().setUser(t),this.getIsolationScope().setUser(t)}setTags(t){this.getScope().setTags(t),this.getIsolationScope().setTags(t)}setExtras(t){this.getScope().setExtras(t),this.getIsolationScope().setExtras(t)}setTag(t,n){this.getScope().setTag(t,n),this.getIsolationScope().setTag(t,n)}setExtra(t,n){this.getScope().setExtra(t,n),this.getIsolationScope().setExtra(t,n)}setContext(t,n){this.getScope().setContext(t,n),this.getIsolationScope().setContext(t,n)}configureScope(t){const{scope:n,client:r}=this.getStackTop();r&&t(n)}run(t){const n=Zye(this);try{t(this)}finally{Zye(n)}}getIntegration(t){const n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch{return wr&&en.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,n){const r=this._callExtensionMethod("startTransaction",t,n);return wr&&!r&&(this.getClient()?en.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':
Sentry.addTracingExtensions();
Sentry.init({...});
`):en.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),r}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const n=this.getStackTop().scope,r=n.getSession();r&&o$e(r),this._sendSessionUpdate(),n.setSession()}startSession(t){const{scope:n,client:r}=this.getStackTop(),{release:i,environment:a=kj}=r&&r.getOptions()||{},{userAgent:o}=ca.navigator||{},s=a$e({release:i,environment:a,user:n.getUser(),...o&&{userAgent:o},...t}),l=n.getSession&&n.getSession();return l&&l.status==="ok"&&OE(l,{status:"exited"}),this.endSession(),n.setSession(s),s}shouldSendDefaultPii(){const t=this.getClient(),n=t&&t.getOptions();return!!(n&&n.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:n}=this.getStackTop(),r=t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}_callExtensionMethod(t,...n){const i=sO().__SENTRY__;if(i&&i.extensions&&typeof i.extensions[t]=="function")return i.extensions[t].apply(this,n);wr&&en.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function sO(){return ca.__SENTRY__=ca.__SENTRY__||{extensions:{},hub:void 0},ca}function Zye(e){const t=sO(),n=fre(t);return g$e(t,e),n}function iu(){const e=sO();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return Bxt(e)}function E_(){return iu().getIsolationScope()}function Bxt(e=sO()){return(!jxt(e)||fre(e).isOlderThan(h$e))&&g$e(e,new m$e),fre(e)}function jxt(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function fre(e){return FDe("hub",()=>new m$e,e)}function g$e(e,t){if(!e)return!1;const n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}function yC(e){return iu().getScope().getTransaction()}let Qye=!1;function zxt(){Qye||(Qye=!0,XDe(pre),ZDe(pre))}function pre(){const e=yC();if(e){const t="internal_error";wr&&en.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}pre.tag="sentry_tracingErrorCallback";var Jye;(function(e){const t="ok";e.Ok=t;const n="deadline_exceeded";e.DeadlineExceeded=n;const r="unauthenticated";e.Unauthenticated=r;const i="permission_denied";e.PermissionDenied=i;const a="not_found";e.NotFound=a;const o="resource_exhausted";e.ResourceExhausted=o;const s="invalid_argument";e.InvalidArgument=s;const l="unimplemented";e.Unimplemented=l;const c="unavailable";e.Unavailable=c;const u="internal_error";e.InternalError=u;const d="unknown_error";e.UnknownError=d;const f="cancelled";e.Cancelled=f;const p="already_exists";e.AlreadyExists=p;const h="failed_precondition";e.FailedPrecondition=h;const m="aborted";e.Aborted=m;const g="out_of_range";e.OutOfRange=g;const v="data_loss";e.DataLoss=v})(Jye||(Jye={}));function Uxt(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}function yue(e,t){e.setTag("http.status_code",String(t)),e.setData("http.response.status_code",t);const n=Uxt(t);n!=="unknown_error"&&e.setStatus(n)}function iT(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=Ha(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}function v$e(e){if(!iT())return;const t=Vxt(e),n=iu(),r=e.scope?e.scope.getSpan():bue();if(e.onlyIfParent&&!r)return;const o=(e.scope||Df()).clone();return Hxt(n,{parentSpan:r,spanContext:t,forceTransaction:e.forceTransaction,scope:o})}function bue(){return Df().getSpan()}function Hxt(e,{parentSpan:t,spanContext:n,forceTransaction:r,scope:i}){if(!iT())return;const a=E_();let o;if(t&&!r)o=t.startChild(n);else if(t){const s=f3(t),{traceId:l,spanId:c}=t.spanContext(),u=vue(t);o=e.startTransaction({traceId:l,parentSpanId:c,parentSampled:u,...n,metadata:{dynamicSamplingContext:s,...n.metadata}})}else{const{traceId:s,dsc:l,parentSpanId:c,sampled:u}={...a.getPropagationContext(),...i.getPropagationContext()};o=e.startTransaction({traceId:s,parentSpanId:c,parentSampled:u,...n,metadata:{dynamicSamplingContext:l,...n.metadata}})}return i.setSpan(o),Gxt(o,i,a),o}function Vxt(e){if(e.startTime){const t={...e};return t.startTimestamp=Dj(e.startTime),delete t.startTime,t}return e}const y$e="_sentryScope",b$e="_sentryIsolationScope";function Gxt(e,t,n){e&&(NE(e,b$e,n),NE(e,y$e,t))}function qxt(e){return{scope:e[y$e],isolationScope:e[b$e]}}const Hg="sentry.source",jx="sentry.sample_rate",uA="sentry.op",DS="sentry.origin",Wxt="profile_id";class _$e{constructor(t=1e3){this._maxlen=t,this.spans=[]}add(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)}}class Bj{constructor(t={}){this._traceId=t.traceId||Rs(),this._spanId=t.spanId||Rs().substring(16),this._startTime=t.startTimestamp||oO(),this.tags=t.tags?{...t.tags}:{},this.data=t.data?{...t.data}:{},this.instrumenter=t.instrumenter||"sentry",this._attributes={},this.setAttributes({[DS]:t.origin||"manual",[uA]:t.op,...t.attributes}),this._name=t.name||t.description,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.status&&(this._status=t.status),t.endTimestamp&&(this._endTime=t.endTimestamp),t.exclusiveTime!==void 0&&(this._exclusiveTime=t.exclusiveTime),this._measurements=t.measurements?{...t.measurements}:{}}get name(){return this._name||""}set name(t){this.updateName(t)}get description(){return this._name}set description(t){this._name=t}get traceId(){return this._traceId}set traceId(t){this._traceId=t}get spanId(){return this._spanId}set spanId(t){this._spanId=t}set parentSpanId(t){this._parentSpanId=t}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(t){this._sampled=t}get attributes(){return this._attributes}set attributes(t){this._attributes=t}get startTimestamp(){return this._startTime}set startTimestamp(t){this._startTime=t}get endTimestamp(){return this._endTime}set endTimestamp(t){this._endTime=t}get status(){return this._status}set status(t){this._status=t}get op(){return this._attributes[uA]}set op(t){this.setAttribute(uA,t)}get origin(){return this._attributes[DS]}set origin(t){this.setAttribute(DS,t)}spanContext(){const{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?s$e:yxt}}startChild(t){const n=new Bj({...t,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n);const r=b$(this);if(n.transaction=r,wr&&r){const i=t&&t.op||"< unknown op >",a=Js(n).description||"< unknown name >",o=r.spanContext().spanId,s=`[Tracing] Starting '${i}' span on transaction '${a}' (${o}).`;en.log(s),this._logMessage=s}return n}setTag(t,n){return this.tags={...this.tags,[t]:n},this}setData(t,n){return this.data={...this.data,[t]:n},this}setAttribute(t,n){n===void 0?delete this._attributes[t]:this._attributes[t]=n}setAttributes(t){Object.keys(t).forEach(n=>this.setAttribute(n,t[n]))}setStatus(t){return this._status=t,this}setHttpStatus(t){return yue(this,t),this}setName(t){this.updateName(t)}updateName(t){return this._name=t,this}isSuccess(){return this._status==="ok"}finish(t){return this.end(t)}end(t){if(this._endTime)return;const n=b$(this);if(wr&&n&&n.spanContext().spanId!==this._spanId){const r=this._logMessage;r&&en.log(r.replace("Starting","Finishing"))}this._endTime=Dj(t)}toTraceparent(){return Mj(this)}toContext(){return Tu({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(t){return this.data=t.data||{},this._name=t.name||t.description,this._endTime=t.endTimestamp,this.op=t.op,this._parentSpanId=t.parentSpanId,this._sampled=t.sampled,this._spanId=t.spanId||this._spanId,this._startTime=t.startTimestamp||this._startTime,this._status=t.status,this.tags=t.tags||{},this._traceId=t.traceId||this._traceId,this}getTraceContext(){return gue(this)}getSpanJSON(){return Tu({data:this._getData(),description:this._name,op:this._attributes[uA],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[DS],_metrics_summary:void 0,profile_id:this._attributes[Wxt],exclusive_time:this._exclusiveTime,measurements:Object.keys(this._measurements).length>0?this._measurements:void 0})}isRecording(){return!this._endTime&&!!this._sampled}toJSON(){return this.getSpanJSON()}_getData(){const{data:t,_attributes:n}=this,r=Object.keys(t).length>0,i=Object.keys(n).length>0;if(!(!r&&!i))return r&&i?{...t,...n}:r?t:n}}class S$e extends Bj{constructor(t,n){super(t),this._contexts={},this._hub=n||iu(),this._name=t.name||"",this._metadata={...t.metadata},this._trimEnd=t.trimEnd,this.transaction=this;const r=this._metadata.dynamicSamplingContext;r&&(this._frozenDynamicSamplingContext={...r})}get name(){return this._name}set name(t){this.setName(t)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes[Hg]&&{source:this._attributes[Hg]},...this._attributes[jx]&&{sampleRate:this._attributes[jx]}}}set metadata(t){this._metadata=t}setName(t,n="custom"){this._name=t,this.setAttribute(Hg,n)}updateName(t){return this._name=t,this}initSpanRecorder(t=1e3){this.spanRecorder||(this.spanRecorder=new _$e(t)),this.spanRecorder.add(this)}setContext(t,n){n===null?delete this._contexts[t]:this._contexts[t]=n}setMeasurement(t,n,r=""){this._measurements[t]={value:n,unit:r}}setMetadata(t){this._metadata={...this._metadata,...t}}end(t){const n=Dj(t),r=this._finishTransaction(n);if(r)return this._hub.captureEvent(r)}toContext(){const t=super.toContext();return Tu({...t,name:this._name,trimEnd:this._trimEnd})}updateWithContext(t){return super.updateWithContext(t),this._name=t.name||"",this._trimEnd=t.trimEnd,this}getDynamicSamplingContext(){return f3(this)}setHub(t){this._hub=t}getProfileId(){if(this._contexts!==void 0&&this._contexts.profile!==void 0)return this._contexts.profile.profile_id}_finishTransaction(t){if(this._endTime!==void 0)return;this._name||(wr&&en.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>"),super.end(t);const n=this._hub.getClient();if(n&&n.emit&&n.emit("finishTransaction",this),this._sampled!==!0){wr&&en.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),n&&n.recordDroppedEvent("sample_rate","transaction");return}const r=this.spanRecorder?this.spanRecorder.spans.filter(u=>u!==this&&Js(u).timestamp):[];if(this._trimEnd&&r.length>0){const u=r.map(d=>Js(d).timestamp).filter(Boolean);this._endTime=u.reduce((d,f)=>d>f?d:f)}const{scope:i,isolationScope:a}=qxt(this),{metadata:o}=this,{source:s}=o,l={contexts:{...this._contexts,trace:gue(this)},spans:r,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...o,capturedSpanScope:i,capturedSpanIsolationScope:a,...Tu({dynamicSamplingContext:f3(this)})},_metrics_summary:void 0,...s&&{transaction_info:{source:s}}};return Object.keys(this._measurements).length>0&&(wr&&en.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),l.measurements=this._measurements),wr&&en.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),l}}const z9={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},Yxt="finishReason",pw=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class Kxt extends _$e{constructor(t,n,r,i){super(i),this._pushActivity=t,this._popActivity=n,this.transactionSpanId=r}add(t){if(t.spanContext().spanId!==this.transactionSpanId){const n=t.end;t.end=(...r)=>(this._popActivity(t.spanContext().spanId),n.apply(t,r)),Js(t).timestamp===void 0&&this._pushActivity(t.spanContext().spanId)}super.add(t)}}class Xxt extends S$e{constructor(t,n,r=z9.idleTimeout,i=z9.finalTimeout,a=z9.heartbeatInterval,o=!1,s=!1){super(t,n),this._idleHub=n,this._idleTimeout=r,this._finalTimeout=i,this._heartbeatInterval=a,this._onScope=o,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=pw[4],this._autoFinishAllowed=!s,o&&(wr&&en.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),n.getScope().setSpan(this)),s||this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=pw[3],this.end())},this._finalTimeout)}end(t){const n=Dj(t);if(this._finished=!0,this.activities={},this.op==="ui.action.click"&&this.setAttribute(Yxt,this._finishReason),this.spanRecorder){wr&&en.log("[Tracing] finishing IdleTransaction",new Date(n*1e3).toISOString(),this.op);for(const r of this._beforeFinishCallbacks)r(this,n);this.spanRecorder.spans=this.spanRecorder.spans.filter(r=>{if(r.spanContext().spanId===this.spanContext().spanId)return!0;Js(r).timestamp||(r.setStatus("cancelled"),r.end(n),wr&&en.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(r,void 0,2)));const{start_timestamp:i,timestamp:a}=Js(r),o=i&&i<n,s=(this._finalTimeout+this._idleTimeout)/1e3,l=a&&i&&a-i<s;if(wr){const c=JSON.stringify(r,void 0,2);o?l||en.log("[Tracing] discarding Span since it finished after Transaction final timeout",c):en.log("[Tracing] discarding Span since it happened after Transaction was finished",c)}return o&&l}),wr&&en.log("[Tracing] flushing IdleTransaction")}else wr&&en.log("[Tracing] No active IdleTransaction");if(this._onScope){const r=this._idleHub.getScope();r.getTransaction()===this&&r.setSpan(void 0)}return super.end(t)}registerBeforeFinishCallback(t){this._beforeFinishCallbacks.push(t)}initSpanRecorder(t){if(!this.spanRecorder){const n=i=>{this._finished||this._pushActivity(i)},r=i=>{this._finished||this._popActivity(i)};this.spanRecorder=new Kxt(n,r,this.spanContext().spanId,t),wr&&en.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(t,{restartOnChildSpanChange:n}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=n===!1,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,Object.keys(this.activities).length===0&&this._idleTimeoutCanceledPermanently&&(this._finishReason=pw[5],this.end(t)))}setFinishReason(t){this._finishReason=t}sendAutoFinishSignal(){this._autoFinishAllowed||(wr&&en.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(t){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{!this._finished&&Object.keys(this.activities).length===0&&(this._finishReason=pw[1],this.end(t))},this._idleTimeout)}_pushActivity(t){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),wr&&en.log(`[Tracing] pushActivity: ${t}`),this.activities[t]=!0,wr&&en.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(t){if(this.activities[t]&&(wr&&en.log(`[Tracing] popActivity ${t}`),delete this.activities[t],wr&&en.log("[Tracing] new activities count",Object.keys(this.activities).length)),Object.keys(this.activities).length===0){const n=oO();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason=pw[5],this.end(n)):this._restartIdleTimeout(n+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const t=Object.keys(this.activities).join("");t===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=t,this._heartbeatCounter>=3?this._autoFinishAllowed&&(wr&&en.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=pw[0],this.end()):this._pingHeartbeat()}_pingHeartbeat(){wr&&en.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}}function E$e(e,t,n){if(!iT(t))return e.sampled=!1,e;if(e.sampled!==void 0)return e.setAttribute(jx,Number(e.sampled)),e;let r;return typeof t.tracesSampler=="function"?(r=t.tracesSampler(n),e.setAttribute(jx,Number(r))):n.parentSampled!==void 0?r=n.parentSampled:typeof t.tracesSampleRate<"u"?(r=t.tracesSampleRate,e.setAttribute(jx,Number(r))):(r=1,e.setAttribute(jx,r)),C$e(r)?r?(e.sampled=Math.random()<r,e.sampled?(wr&&en.log(`[Tracing] starting ${e.op} transaction - ${Js(e).description}`),e):(wr&&en.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`),e)):(wr&&en.log(`[Tracing] Discarding transaction because ${typeof t.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),e.sampled=!1,e):(wr&&en.warn("[Tracing] Discarding transaction because of invalid sample rate."),e.sampled=!1,e)}function C$e(e){return DDe(e)||!(typeof e=="number"||typeof e=="boolean")?(wr&&en.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):e<0||e>1?(wr&&en.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function Zxt(){const t=this.getScope().getSpan();return t?{"sentry-trace":Mj(t)}:{}}function Qxt(e,t){const n=this.getClient(),r=n&&n.getOptions()||{},i=r.instrumenter||"sentry",a=e.instrumenter||"sentry";i!==a&&(wr&&en.error(`A transaction was started with instrumenter=\`${a}\`, but the SDK is configured with the \`${i}\` instrumenter.
The transaction will not be sampled. Please use the ${i} instrumentation to start transactions.`),e.sampled=!1);let o=new S$e(e,this);return o=E$e(o,r,{name:e.name,parentSampled:e.parentSampled,transactionContext:e,attributes:{...e.data,...e.attributes},...t}),o.isRecording()&&o.initSpanRecorder(r._experiments&&r._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",o),o}function w$e(e,t,n,r,i,a,o,s=!1){const l=e.getClient(),c=l&&l.getOptions()||{};let u=new Xxt(t,e,n,r,o,i,s);return u=E$e(u,c,{name:t.name,parentSampled:t.parentSampled,transactionContext:t,attributes:{...t.data,...t.attributes},...a}),u.isRecording()&&u.initSpanRecorder(c._experiments&&c._experiments.maxSpans),l&&l.emit&&l.emit("startTransaction",u),u}function Jxt(){const e=sO();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=Qxt),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=Zxt),zxt())}function e5t(e,t,n){const r=yC();r&&r.setMeasurement(e,t,n)}function t5t(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function n5t(e,t,n,r){const i=hue(n),a={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:mC(t)}},o="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return S_(a,[o])}function r5t(e,t,n,r){const i=hue(n),a=e.type&&e.type!=="replay_event"?e.type:"event";t5t(e,n&&n.sdk);const o=n$e(e,i,r,t);return delete e.sdkProcessingMetadata,S_(o,[[{type:a},e]])}const i5t="7";function x$e(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function a5t(e){return`${x$e(e)}${e.projectId}/envelope/`}function o5t(e,t){return ywt({sentry_key:e.publicKey,sentry_version:i5t,...t&&{sentry_client:`${t.name}/${t.version}`}})}function s5t(e,t={}){const n=typeof t=="string"?t:t.tunnel,r=typeof t=="string"||!t._metadata?void 0:t._metadata.sdk;return n||`${a5t(e)}?${o5t(e,r)}`}function l5t(e,t){const n=zDe(e);if(!n)return"";const r=`${x$e(n)}embed/error-page/`;let i=`dsn=${mC(n)}`;for(const a in t)if(a!=="dsn"&&a!=="onClose")if(a==="user"){const o=t.user;if(!o)continue;o.name&&(i+=`&name=${encodeURIComponent(o.name)}`),o.email&&(i+=`&email=${encodeURIComponent(o.email)}`)}else i+=`&${encodeURIComponent(a)}=${encodeURIComponent(t[a])}`;return`${r}?${i}`}const ebe=[];function c5t(e){const t={};return e.forEach(n=>{const{name:r}=n,i=t[r];i&&!i.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.keys(t).map(n=>t[n])}function u5t(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(o=>{o.isDefaultInstance=!0});let r;Array.isArray(n)?r=[...t,...n]:typeof n=="function"?r=WDe(n(t)):r=t;const i=c5t(r),a=f5t(i,o=>o.name==="Debug");if(a!==-1){const[o]=i.splice(a,1);i.push(o)}return i}function d5t(e,t){const n={};return t.forEach(r=>{r&&T$e(e,r,n)}),n}function tbe(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function T$e(e,t,n){if(n[t.name]){wr&&en.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,ebe.indexOf(t.name)===-1&&(t.setupOnce(gxt,iu),ebe.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),e.on&&typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(i,a)=>r(i,a,e))}if(e.addEventProcessor&&typeof t.processEvent=="function"){const r=t.processEvent.bind(t),i=Object.assign((a,o)=>r(a,o,e),{id:t.name});e.addEventProcessor(i)}wr&&en.log(`Integration installed: ${t.name}`)}function f5t(e,t){for(let n=0;n<e.length;n++)if(t(e[n])===!0)return n;return-1}function C_(e,t){return Object.assign(function(...r){return t(...r)},{id:e})}function p5t(e){let t="";for(const n of e){const r=Object.entries(n.tags),i=r.length>0?`|#${r.map(([a,o])=>`${a}:${o}`).join(",")}`:"";t+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${i}|T${n.timestamp}
`}return t}function h5t(e,t,n,r){const i={sent_at:new Date().toISOString()};n&&n.sdk&&(i.sdk={name:n.sdk.name,version:n.sdk.version}),r&&t&&(i.dsn=mC(t));const a=m5t(e);return S_(i,[a])}function m5t(e){const t=p5t(e);return[{type:"statsd",length:t.length},t]}const nbe="Not capturing exception because it's already been captured.";class g5t{constructor(t){if(this._options=t,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=zDe(t.dsn):wr&&en.warn("No DSN provided, client will not send events."),this._dsn){const n=s5t(this._dsn,t);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}}captureException(t,n,r){if($ye(t)){wr&&en.log(nbe);return}let i=n&&n.event_id;return this._process(this.eventFromException(t,n).then(a=>this._captureEvent(a,n,r)).then(a=>{i=a})),i}captureMessage(t,n,r,i){let a=r&&r.event_id;const o=oue(t)?t:String(t),s=sue(t)?this.eventFromMessage(o,n,r):this.eventFromException(t,r);return this._process(s.then(l=>this._captureEvent(l,r,i)).then(l=>{a=l})),a}captureEvent(t,n,r){if(n&&n.originalException&&$ye(n.originalException)){wr&&en.log(nbe);return}let i=n&&n.event_id;const o=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,n,o||r).then(s=>{i=s})),i}captureSession(t){typeof t.release!="string"?wr&&en.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),OE(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(t).then(r=>n.flush(t).then(i=>r&&i))):d3(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}setupIntegrations(t){(t&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(t){return this.getIntegrationByName(t)}getIntegrationByName(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch{return wr&&en.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}addIntegration(t){const n=this._integrations[t.name];T$e(this,t,this._integrations),n||tbe(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=r5t(t,this._dsn,this._options._metadata,this._options.tunnel);for(const a of n.attachments||[])r=oxt(r,cxt(a,this._options.transportOptions&&this._options.transportOptions.textEncoder));const i=this._sendEnvelope(r);i&&i.then(a=>this.emit("afterSendEvent",t,a),null)}sendSession(t){const n=n5t(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}recordDroppedEvent(t,n,r){if(this._options.sendClientReports){const i=typeof r=="number"?r:1,a=`${t}:${n}`;wr&&en.log(`Recording outcome: "${a}"${i>1?` (${i} times)`:""}`),this._outcomes[a]=(this._outcomes[a]||0)+i}}captureAggregateMetrics(t){wr&&en.log(`Flushing aggregated metrics, number of metrics: ${t.length}`);const n=h5t(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}on(t,n){this._hooks[t]||(this._hooks[t]=[]),this._hooks[t].push(n)}emit(t,...n){this._hooks[t]&&this._hooks[t].forEach(r=>r(...n))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=d5t(this,t),tbe(this,t),this._integrationsInitialized=!0}_updateSessionFromEvent(t,n){let r=!1,i=!1;const a=n.exception&&n.exception.values;if(a){i=!0;for(const l of a){const c=l.mechanism;if(c&&c.handled===!1){r=!0;break}}}const o=t.status==="ok";(o&&t.errors===0||o&&r)&&(OE(t,{...r&&{status:"crashed"},errors:t.errors||Number(i||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new gf(n=>{let r=0;const i=1,a=setInterval(()=>{this._numProcessing==0?(clearInterval(a),n(!0)):(r+=i,t&&r>=t&&(clearInterval(a),n(!1)))},i)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,i=E_()){const a=this.getOptions(),o=Object.keys(this._integrations);return!n.integrations&&o.length>0&&(n.integrations=o),this.emit("preprocessEvent",t,n),l$e(a,t,n,r,this,i).then(s=>{if(s===null)return s;const l={...i.getPropagationContext(),...r?r.getPropagationContext():void 0};if(!(s.contexts&&s.contexts.trace)&&l){const{traceId:u,spanId:d,parentSpanId:f,dsc:p}=l;s.contexts={trace:{trace_id:u,span_id:d,parent_span_id:f},...s.contexts};const h=p||Fj(u,this,r);s.sdkProcessingMetadata={dynamicSamplingContext:h,...s.sdkProcessingMetadata}}return s})}_captureEvent(t,n={},r){return this._processEvent(t,n,r).then(i=>i.event_id,i=>{if(wr){const a=i;a.logLevel==="log"?en.log(a.message):en.warn(a)}})}_processEvent(t,n,r){const i=this.getOptions(),{sampleRate:a}=i,o=A$e(t),s=I$e(t),l=t.type||"error",c=`before send for type \`${l}\``;if(s&&typeof a=="number"&&Math.random()>a)return this.recordDroppedEvent("sample_rate","error",t),fue(new Rg(`Discarding event because it's not included in the random sample (sampling rate = ${a})`,"log"));const u=l==="replay_event"?"replay":l,f=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,n,r,f).then(p=>{if(p===null)throw this.recordDroppedEvent("event_processor",u,t),new Rg("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return p;const m=y5t(i,p,n);return v5t(m,c)}).then(p=>{if(p===null){if(this.recordDroppedEvent("before_send",u,t),o){const v=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",v)}throw new Rg(`${c} returned \`null\`, will not send event.`,"log")}const h=r&&r.getSession();if(!o&&h&&this._updateSessionFromEvent(h,p),o){const g=p.sdkProcessingMetadata&&p.sdkProcessingMetadata.spanCountBeforeProcessing||0,v=p.spans?p.spans.length:0,y=g-v;y>0&&this.recordDroppedEvent("before_send","span",y)}const m=p.transaction_info;if(o&&m&&p.transaction!==t.transaction){const g="custom";p.transaction_info={...m,source:g}}return this.sendEvent(p,n),p}).then(null,p=>{throw p instanceof Rg?p:(this.captureException(p,{data:{__sentry__:!0},originalException:p}),new Rg(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
Reason: ${p}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)return this._transport.send(t).then(null,n=>{wr&&en.error("Error while sending event:",n)});wr&&en.error("Transport disabled")}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.keys(t).map(n=>{const[r,i]=n.split(":");return{reason:r,category:i,quantity:t[n]}})}}function v5t(e,t){const n=`${t} must return \`null\` or a valid event.`;if(Lj(e))return e.then(r=>{if(!u3(r)&&r!==null)throw new Rg(n);return r},r=>{throw new Rg(`${t} rejected with ${r}`)});if(!u3(e)&&e!==null)throw new Rg(n);return e}function y5t(e,t,n){const{beforeSend:r,beforeSendTransaction:i}=e;if(I$e(t)&&r)return r(t,n);if(A$e(t)&&i){if(t.spans){const a=t.spans.length;t.sdkProcessingMetadata={...t.sdkProcessingMetadata,spanCountBeforeProcessing:a}}return i(t,n)}return t}function I$e(e){return e.type===void 0}function A$e(e){return e.type==="transaction"}function b5t(e){const t=Ha();!t||!t.addEventProcessor||t.addEventProcessor(e)}function _5t(e,t){t.debug===!0&&(wr?en.enable():RE(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),Df().update(t.initialScope);const r=new e(t);S5t(r),E5t(r)}function S5t(e){const n=iu().getStackTop();n.client=e,n.scope.setClient(e)}function E5t(e){e.init?e.init():e.setupIntegrations&&e.setupIntegrations()}const C5t=30;function R$e(e,t,n=Kwt(e.bufferSize||C5t)){let r={};const i=o=>n.drain(o);function a(o){const s=[];if(Hye(o,(d,f)=>{const p=Vye(f);if(r$e(r,p)){const h=rbe(d,f);e.recordDroppedEvent("ratelimit_backoff",p,h)}else s.push(d)}),s.length===0)return d3();const l=S_(o[0],s),c=d=>{Hye(l,(f,p)=>{const h=rbe(f,p);e.recordDroppedEvent(d,Vye(p),h)})},u=()=>t({body:sxt(l,e.textEncoder)}).then(d=>(d.statusCode!==void 0&&(d.statusCode<200||d.statusCode>=300)&&wr&&en.warn(`Sentry responded with status code ${d.statusCode} to sent event.`),r=i$e(r,d),d),d=>{throw c("network_error"),d});return n.add(u).then(d=>d,d=>{if(d instanceof Rg)return wr&&en.error("Skipped sending event because buffer is full."),c("queue_overflow"),d3();throw d})}return a.__sentry__baseTransport__=!0,{send:a,flush:i}}function rbe(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function w5t(e,t){const n={sent_at:new Date().toISOString()};t&&(n.dsn=mC(t));const r=e.map(x5t);return S_(n,r)}function x5t(e){return[{type:"span"},e]}function T5t(e,t){const n=t&&R5t(t)?t.getClient():t,r=n&&n.getDsn(),i=n&&n.getOptions().tunnel;return A5t(e,r)||I5t(e,i)}function I5t(e,t){return t?ibe(e)===ibe(t):!1}function A5t(e,t){return t?e.includes(t.host):!1}function ibe(e){return e[e.length-1]==="/"?e.slice(0,-1):e}function R5t(e){return e.getClient!==void 0}function N$e(e,t,n=[t],r="npm"){const i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:n.map(a=>({name:`${r}:@sentry/${a}`,version:dre})),version:dre}),e._metadata=i}const N5t=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],O5t=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],O$e="InboundFilters",L5t=(e={})=>({name:O$e,setupOnce(){},processEvent(t,n,r){const i=r.getOptions(),a=P5t(e,i);return k5t(t,a)?null:t}}),L$e=L5t;C_(O$e,L$e);function P5t(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:N5t],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:O5t],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function k5t(e,t){return t.ignoreInternal&&j5t(e)?(wr&&en.warn(`Event dropped due to being internal Sentry Error.
Event: ${nb(e)}`),!0):M5t(e,t.ignoreErrors)?(wr&&en.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
Event: ${nb(e)}`),!0):D5t(e,t.ignoreTransactions)?(wr&&en.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
Event: ${nb(e)}`),!0):$5t(e,t.denyUrls)?(wr&&en.warn(`Event dropped due to being matched by \`denyUrls\` option.
Event: ${nb(e)}.
Url: ${_$(e)}`),!0):F5t(e,t.allowUrls)?!1:(wr&&en.warn(`Event dropped due to not being matched by \`allowUrls\` option.
Event: ${nb(e)}.
Url: ${_$(e)}`),!0)}function M5t(e,t){return e.type||!t||!t.length?!1:B5t(e).some(n=>nT(n,t))}function D5t(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?nT(n,t):!1}function $5t(e,t){if(!t||!t.length)return!1;const n=_$(e);return n?nT(n,t):!1}function F5t(e,t){if(!t||!t.length)return!0;const n=_$(e);return n?nT(n,t):!0}function B5t(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),wr&&t.length===0&&en.error(`Could not extract message for event ${nb(e)}`),t}function j5t(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function z5t(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function _$(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?z5t(t):null}catch{return wr&&en.error(`Cannot extract url for event ${nb(e)}`),null}}let abe;const P$e="FunctionToString",obe=new WeakMap,U5t=()=>({name:P$e,setupOnce(){abe=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=cue(this),n=obe.has(Ha())&&t!==void 0?t:this;return abe.apply(n,e)}}catch{}},setup(e){obe.set(e,!0)}}),k$e=U5t;C_(P$e,k$e);const es=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,fi=ca;function H5t(){fi.document?fi.document.addEventListener("visibilitychange",()=>{const e=yC();if(fi.document.hidden&&e){const t="cancelled",{op:n,status:r}=Js(e);es&&en.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${n}`),r||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.end()}}):es&&en.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const lO=(e,t,n)=>{let r,i;return a=>{t.value>=0&&(a||n)&&(i=t.value-(r||0),(i||r===void 0)&&(r=t.value,t.delta=i,e(t)))}},V5t=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,G5t=()=>{const e=fi.performance.timing,t=fi.performance.navigation.type,n={entryType:"navigation",startTime:0,type:t==2?"back_forward":t===1?"reload":"navigate"};for(const r in e)r!=="navigationStart"&&r!=="toJSON"&&(n[r]=Math.max(e[r]-e.navigationStart,0));return n},jj=()=>fi.__WEB_VITALS_POLYFILL__?fi.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||G5t()):fi.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],_ue=()=>{const e=jj();return e&&e.activationStart||0},cO=(e,t)=>{const n=jj();let r="navigate";return n&&(fi.document&&fi.document.prerendering||_ue()>0?r="prerender":r=n.type.replace(/_/g,"-")),{name:e,value:typeof t>"u"?-1:t,rating:"good",delta:0,entries:[],id:V5t(),navigationType:r}},aT=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(i=>{t(i.getEntries())});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch{}},uO=(e,t)=>{const n=r=>{(r.type==="pagehide"||fi.document.visibilityState==="hidden")&&(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};fi.document&&(addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0))},q5t=(e,t={})=>{const n=cO("CLS",0);let r,i=0,a=[];const o=l=>{l.forEach(c=>{if(!c.hadRecentInput){const u=a[0],d=a[a.length-1];i&&a.length!==0&&c.startTime-d.startTime<1e3&&c.startTime-u.startTime<5e3?(i+=c.value,a.push(c)):(i=c.value,a=[c]),i>n.value&&(n.value=i,n.entries=a,r&&r())}})},s=aT("layout-shift",o);if(s){r=lO(e,n,t.reportAllChanges);const l=()=>{o(s.takeRecords()),r(!0)};return uO(l),l}};let S$=-1;const W5t=()=>{fi.document&&fi.document.visibilityState&&(S$=fi.document.visibilityState==="hidden"&&!fi.document.prerendering?0:1/0)},Y5t=()=>{uO(({timeStamp:e})=>{S$=e},!0)},Sue=()=>(S$<0&&(W5t(),Y5t()),{get firstHiddenTime(){return S$}}),K5t=e=>{const t=Sue(),n=cO("FID");let r;const i=s=>{s.startTime<t.firstHiddenTime&&(n.value=s.processingStart-s.startTime,n.entries.push(s),r(!0))},a=s=>{s.forEach(i)},o=aT("first-input",a);r=lO(e,n),o&&uO(()=>{a(o.takeRecords()),o.disconnect()},!0)};let M$e=0,EG=1/0,HL=0;const X5t=e=>{e.forEach(t=>{t.interactionId&&(EG=Math.min(EG,t.interactionId),HL=Math.max(HL,t.interactionId),M$e=HL?(HL-EG)/7+1:0)})};let hre;const Z5t=()=>hre?M$e:performance.interactionCount||0,Q5t=()=>{"interactionCount"in performance||hre||(hre=aT("event",X5t,{type:"event",buffered:!0,durationThreshold:0}))},D$e=()=>Z5t(),sbe=10,_1=[],CG={},lbe=e=>{const t=_1[_1.length-1],n=CG[e.interactionId];if(n||_1.length<sbe||e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{const r={id:e.interactionId,latency:e.duration,entries:[e]};CG[r.id]=r,_1.push(r)}_1.sort((r,i)=>i.latency-r.latency),_1.splice(sbe).forEach(r=>{delete CG[r.id]})}},J5t=()=>{const e=Math.min(_1.length-1,Math.floor(D$e()/50));return _1[e]},e3t=(e,t)=>{t=t||{},Q5t();const n=cO("INP");let r;const i=o=>{o.forEach(l=>{l.interactionId&&lbe(l),l.entryType==="first-input"&&!_1.some(u=>u.entries.some(d=>l.duration===d.duration&&l.startTime===d.startTime))&&lbe(l)});const s=J5t();s&&s.latency!==n.value&&(n.value=s.latency,n.entries=s.entries,r())},a=aT("event",i,{durationThreshold:t.durationThreshold||40});r=lO(e,n,t.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),uO(()=>{i(a.takeRecords()),n.value<0&&D$e()>0&&(n.value=0,n.entries=[]),r(!0)}))},cbe={},t3t=e=>{const t=Sue(),n=cO("LCP");let r;const i=o=>{const s=o[o.length-1];if(s){const l=Math.max(s.startTime-_ue(),0);l<t.firstHiddenTime&&(n.value=l,n.entries=[s],r())}},a=aT("largest-contentful-paint",i);if(a){r=lO(e,n);const o=()=>{cbe[n.id]||(i(a.takeRecords()),a.disconnect(),cbe[n.id]=!0,r(!0))};return["keydown","click"].forEach(s=>{fi.document&&addEventListener(s,o,{once:!0,capture:!0})}),uO(o,!0),o}},mre=e=>{fi.document&&(fi.document.prerendering?addEventListener("prerenderingchange",()=>mre(e),!0):fi.document.readyState!=="complete"?addEventListener("load",()=>mre(e),!0):setTimeout(e,0))},n3t=(e,t)=>{t=t||{};const n=cO("TTFB"),r=lO(e,n,t.reportAllChanges);mre(()=>{const i=jj();if(i){if(n.value=Math.max(i.responseStart-_ue(),0),n.value<0||n.value>performance.now())return;n.entries=[i],r(!0)}})},eR={},E$={};let $$e,F$e,B$e,j$e,z$e;function r3t(e,t=!1){return dO("cls",e,s3t,$$e,t)}function U$e(e,t=!1){return dO("lcp",e,c3t,B$e,t)}function i3t(e){return dO("ttfb",e,u3t,j$e)}function a3t(e){return dO("fid",e,l3t,F$e)}function o3t(e){return dO("inp",e,d3t,z$e)}function p3(e,t){return H$e(e,t),E$[e]||(f3t(e),E$[e]=!0),V$e(e,t)}function oT(e,t){const n=eR[e];if(!(!n||!n.length))for(const r of n)try{r(t)}catch(i){es&&en.error(`Error while triggering instrumentation handler.
Type: ${e}
Name: ${n0(r)}
Error:`,i)}}function s3t(){return q5t(e=>{oT("cls",{metric:e}),$$e=e},{reportAllChanges:!0})}function l3t(){return K5t(e=>{oT("fid",{metric:e}),F$e=e})}function c3t(){return t3t(e=>{oT("lcp",{metric:e}),B$e=e})}function u3t(){return n3t(e=>{oT("ttfb",{metric:e}),j$e=e})}function d3t(){return e3t(e=>{oT("inp",{metric:e}),z$e=e})}function dO(e,t,n,r,i=!1){H$e(e,t);let a;return E$[e]||(a=n(),E$[e]=!0),r&&t({metric:r}),V$e(e,t,i?a:void 0)}function f3t(e){const t={};e==="event"&&(t.durationThreshold=0),aT(e,n=>{oT(e,{entries:n})},t)}function H$e(e,t){eR[e]=eR[e]||[],eR[e].push(t)}function V$e(e,t,n){return()=>{n&&n();const r=eR[e];if(!r)return;const i=r.indexOf(t);i!==-1&&r.splice(i,1)}}function wG(e){return typeof e=="number"&&isFinite(e)}function h3(e,{startTimestamp:t,...n}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...n})}const p3t=2147483647;function Il(e){return e/1e3}function Eue(){return fi&&fi.addEventListener&&fi.performance}let ube=0,ws={},vg,tR;function h3t(){const e=Eue();if(e&&Af){e.mark&&fi.performance.mark("sentry-tracing-init");const t=_3t(),n=y3t(),r=b3t(),i=S3t();return()=>{t(),n(),r(),i()}}return()=>{}}function m3t(){p3("longtask",({entries:e})=>{for(const t of e){const n=yC();if(!n)return;const r=Il(Af+t.startTime),i=Il(t.duration);n.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+i})}})}function g3t(){p3("event",({entries:e})=>{for(const t of e){const n=yC();if(!n)return;if(t.name==="click"){const r=Il(Af+t.startTime),i=Il(t.duration),a={description:Qb(t.target),op:`ui.interaction.${t.name}`,origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+i},o=BDe(t.target);o&&(a.attributes={"ui.component_name":o}),n.startChild(a)}}})}function v3t(e,t){if(Eue()&&Af){const r=E3t(e,t);return()=>{r()}}return()=>{}}function y3t(){return r3t(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(es&&en.log("[Measurements] Adding CLS"),ws.cls={value:e.value,unit:""},tR=t)},!0)}function b3t(){return U$e(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(es&&en.log("[Measurements] Adding LCP"),ws.lcp={value:e.value,unit:"millisecond"},vg=t)},!0)}function _3t(){return a3t(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=Il(Af),r=Il(t.startTime);es&&en.log("[Measurements] Adding FID"),ws.fid={value:e.value,unit:"millisecond"},ws["mark.fid"]={value:n+r,unit:"second"}})}function S3t(){return i3t(({metric:e})=>{e.entries[e.entries.length-1]&&(es&&en.log("[Measurements] Adding TTFB"),ws.ttfb={value:e.value,unit:"millisecond"})})}const dbe={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function E3t(e,t){return o3t(({metric:n})=>{if(n.value===void 0)return;const r=n.entries.find(_=>_.duration===n.value&&dbe[_.name]!==void 0),i=Ha();if(!r||!i)return;const a=dbe[r.name],o=i.getOptions(),s=Il(Af+r.startTime),l=Il(n.value),c=r.interactionId!==void 0?e[r.interactionId]:void 0;if(c===void 0)return;const{routeName:u,parentContext:d,activeTransaction:f,user:p,replayId:h}=c,m=p!==void 0?p.email||p.id||p.ip_address:void 0,g=f!==void 0?f.getProfileId():void 0,v=new Bj({startTimestamp:s,endTimestamp:s+l,op:`ui.interaction.${a}`,name:Qb(r.target),attributes:{release:o.release,environment:o.environment,transaction:u,...m!==void 0&&m!==""?{user:m}:{},...g!==void 0?{profile_id:g}:{},...h!==void 0?{replay_id:h}:{}},exclusiveTime:n.value,measurements:{inp:{value:n.value,unit:"millisecond"}}}),y=O3t(d,o,t);if(y&&Math.random()<y){const _=v?w5t([v],i.getDsn()):void 0,S=i&&i.getTransport();S&&_&&S.send(_).then(null,C=>{es&&en.error("Error while sending interaction:",C)});return}})}function C3t(e){const t=Eue();if(!t||!fi.performance.getEntries||!Af)return;es&&en.log("[Tracing] Adding & adjusting spans using Performance API");const n=Il(Af),r=t.getEntries(),{op:i,start_timestamp:a}=Js(e);if(r.slice(ube).forEach(o=>{const s=Il(o.startTime),l=Il(o.duration);if(!(e.op==="navigation"&&a&&n+s<a))switch(o.entryType){case"navigation":{x3t(e,o,n);break}case"mark":case"paint":case"measure":{w3t(e,o,s,l,n);const c=Sue(),u=o.startTime<c.firstHiddenTime;o.name==="first-paint"&&u&&(es&&en.log("[Measurements] Adding FP"),ws.fp={value:o.startTime,unit:"millisecond"}),o.name==="first-contentful-paint"&&u&&(es&&en.log("[Measurements] Adding FCP"),ws.fcp={value:o.startTime,unit:"millisecond"});break}case"resource":{I3t(e,o,o.name,s,l,n);break}}}),ube=Math.max(r.length-1,0),A3t(e),i==="pageload"){N3t(ws),["fcp","fp","lcp"].forEach(s=>{if(!ws[s]||!a||n>=a)return;const l=ws[s].value,c=n+Il(l),u=Math.abs((c-a)*1e3),d=u-l;es&&en.log(`[Measurements] Normalized ${s} from ${l} to ${u} (${d})`),ws[s].value=u});const o=ws["mark.fid"];o&&ws.fid&&(h3(e,{description:"first input delay",endTimestamp:o.value+Il(ws.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:o.value}),delete ws["mark.fid"]),"fcp"in ws||delete ws.cls,Object.keys(ws).forEach(s=>{e5t(s,ws[s].value,ws[s].unit)}),R3t(e)}vg=void 0,tR=void 0,ws={}}function w3t(e,t,n,r,i){const a=i+n,o=a+r;return h3(e,{description:t.name,endTimestamp:o,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:a}),a}function x3t(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{VL(e,t,r,n)}),VL(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),VL(e,t,"fetch",n,"cache","domainLookupStart"),VL(e,t,"domainLookup",n,"DNS"),T3t(e,t,n)}function VL(e,t,n,r,i,a){const o=a?t[a]:t[`${n}End`],s=t[`${n}Start`];!s||!o||h3(e,{op:"browser",origin:"auto.browser.browser.metrics",description:i||n,startTimestamp:r+Il(s),endTimestamp:r+Il(o)})}function T3t(e,t,n){t.responseEnd&&(h3(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+Il(t.requestStart),endTimestamp:n+Il(t.responseEnd)}),h3(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+Il(t.responseStart),endTimestamp:n+Il(t.responseEnd)}))}function I3t(e,t,n,r,i,a){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const o=nE(n),s={};xG(s,t,"transferSize","http.response_transfer_size"),xG(s,t,"encodedBodySize","http.response_content_length"),xG(s,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(s["resource.render_blocking_status"]=t.renderBlockingStatus),o.protocol&&(s["url.scheme"]=o.protocol.split(":").pop()),o.host&&(s["server.address"]=o.host),s["url.same_origin"]=n.includes(fi.location.origin);const l=a+r,c=l+i;h3(e,{description:n.replace(fi.location.origin,""),endTimestamp:c,op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:l,data:s})}function A3t(e){const t=fi.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),wG(n.rtt)&&(ws["connection.rtt"]={value:n.rtt,unit:"millisecond"})),wG(t.deviceMemory)&&e.setTag("deviceMemory",`${t.deviceMemory} GB`),wG(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}function R3t(e){vg&&(es&&en.log("[Measurements] Adding LCP Data"),vg.element&&e.setTag("lcp.element",Qb(vg.element)),vg.id&&e.setTag("lcp.id",vg.id),vg.url&&e.setTag("lcp.url",vg.url.trim().slice(0,200)),e.setTag("lcp.size",vg.size)),tR&&tR.sources&&(es&&en.log("[Measurements] Adding CLS Data"),tR.sources.forEach((t,n)=>e.setTag(`cls.source.${n+1}`,Qb(t.node))))}function xG(e,t,n,r){const i=t[n];i!=null&&i<p3t&&(e[r]=i)}function N3t(e){const t=jj();if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(es&&en.log("[Measurements] Adding TTFB Request Time"),e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}function O3t(e,t,n){if(!iT(t))return!1;let r;return e!==void 0&&typeof t.tracesSampler=="function"?r=t.tracesSampler({transactionContext:e,name:e.name,parentSampled:e.parentSampled,attributes:{...e.data,...e.attributes},location:fi.location}):e!==void 0&&e.sampled!==void 0?r=e.sampled:typeof t.tracesSampleRate<"u"?r=t.tracesSampleRate:r=1,C$e(r)?r===!0?n:r===!1?0:r*n:(es&&en.warn("[Tracing] Discarding interaction span because of invalid sample rate."),!1)}function L3t(e,t,n,r,i="auto.http.browser"){if(!iT()||!e.fetchData)return;const a=t(e.fetchData.url);if(e.endTimestamp&&a){const p=e.fetchData.__span;if(!p)return;const h=r[p];h&&(M3t(h,e),delete r[p]);return}const o=Df(),s=Ha(),{method:l,url:c}=e.fetchData,u=k3t(c),d=u?nE(u).host:void 0,f=a?v$e({name:`${l} ${c}`,onlyIfParent:!0,attributes:{url:c,type:"fetch","http.method":l,"http.url":u,"server.address":d,[DS]:i},op:"http.client"}):void 0;if(f&&(e.fetchData.__span=f.spanContext().spanId,r[f.spanContext().spanId]=f),n(e.fetchData.url)&&s){const p=e.args[0];e.args[1]=e.args[1]||{};const h=e.args[1];h.headers=P3t(p,s,o,h,f)}return f}function P3t(e,t,n,r,i){const a=i||n.getSpan(),o=E_(),{traceId:s,spanId:l,sampled:c,dsc:u}={...o.getPropagationContext(),...n.getPropagationContext()},d=a?Mj(a):pue(s,l,c),f=t$e(u||(a?f3(a):Fj(s,t,n))),p=r.headers||(typeof Request<"u"&&t0(e,Request)?e.headers:void 0);if(p)if(typeof Headers<"u"&&t0(p,Headers)){const h=new Headers(p);return h.append("sentry-trace",d),f&&h.append(cre,f),h}else if(Array.isArray(p)){const h=[...p,["sentry-trace",d]];return f&&h.push([cre,f]),h}else{const h="baggage"in p?p.baggage:void 0,m=[];return Array.isArray(h)?m.push(...h):h&&m.push(h),f&&m.push(f),{...p,"sentry-trace":d,baggage:m.length>0?m.join(","):void 0}}else return{"sentry-trace":d,baggage:f}}function k3t(e){try{return new URL(e).href}catch{return}}function M3t(e,t){if(t.response){yue(e,t.response.status);const n=t.response&&t.response.headers&&t.response.headers.get("content-length");if(n){const r=parseInt(n);r>0&&e.setAttribute("http.response_content_length",r)}}else t.error&&e.setStatus("internal_error");e.end()}const gre=["localhost",/^\/(?!\/)/],vre={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:gre,tracePropagationTargets:gre};function D3t(e){const{traceFetch:t,traceXHR:n,tracePropagationTargets:r,tracingOrigins:i,shouldCreateSpanForRequest:a,enableHTTPTimings:o}={traceFetch:vre.traceFetch,traceXHR:vre.traceXHR,...e},s=typeof a=="function"?a:u=>!0,l=u=>j3t(u,r||i),c={};t&&uue(u=>{const d=L3t(u,s,l,c);if(d){const f=G$e(u.fetchData.url),p=f?nE(f).host:void 0;d.setAttributes({"http.url":f,"server.address":p})}o&&d&&fbe(d)}),n&&due(u=>{const d=z3t(u,s,l,c);o&&d&&fbe(d)})}function $3t(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function fbe(e){const{url:t}=Js(e).data||{};if(!t||typeof t!="string")return;const n=p3("resource",({entries:r})=>{r.forEach(i=>{$3t(i)&&i.name.endsWith(t)&&(B3t(i).forEach(o=>e.setAttribute(...o)),setTimeout(n))})})}function F3t(e){let t="unknown",n="unknown",r="";for(const i of e){if(i==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}function rg(e=0){return((Af||performance.timeOrigin)+e)/1e3}function B3t(e){const{name:t,version:n}=F3t(e.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",t]),Af?[...r,["http.request.redirect_start",rg(e.redirectStart)],["http.request.fetch_start",rg(e.fetchStart)],["http.request.domain_lookup_start",rg(e.domainLookupStart)],["http.request.domain_lookup_end",rg(e.domainLookupEnd)],["http.request.connect_start",rg(e.connectStart)],["http.request.secure_connection_start",rg(e.secureConnectionStart)],["http.request.connection_end",rg(e.connectEnd)],["http.request.request_start",rg(e.requestStart)],["http.request.response_start",rg(e.responseStart)],["http.request.response_end",rg(e.responseEnd)]]:r}function j3t(e,t){return nT(e,t||gre)}function z3t(e,t,n,r){const i=e.xhr,a=i&&i[ub];if(!iT()||!i||i.__sentry_own_request__||!a)return;const o=t(a.url);if(e.endTimestamp&&o){const p=i.__sentry_xhr_span_id__;if(!p)return;const h=r[p];h&&a.status_code!==void 0&&(yue(h,a.status_code),h.end(),delete r[p]);return}const s=Df(),l=E_(),c=G$e(a.url),u=c?nE(c).host:void 0,d=o?v$e({name:`${a.method} ${a.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":a.method,"http.url":c,url:a.url,"server.address":u,[DS]:"auto.http.browser"},op:"http.client"}):void 0;d&&(i.__sentry_xhr_span_id__=d.spanContext().spanId,r[i.__sentry_xhr_span_id__]=d);const f=Ha();if(i.setRequestHeader&&n(a.url)&&f){const{traceId:p,spanId:h,sampled:m,dsc:g}={...l.getPropagationContext(),...s.getPropagationContext()},v=d?Mj(d):pue(p,h,m),y=t$e(g||(d?f3(d):Fj(p,f,s)));U3t(i,v,y)}return d}function U3t(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(cre,n)}catch{}}function G$e(e){try{return new URL(e,fi.location.origin).href}catch{return}}const H3t="BrowserTracing",V3t={...z9,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...vre},q$e=(e={})=>{const t=es?!!(e.tracePropagationTargets||e.tracingOrigins):!1;Jxt(),!e.tracePropagationTargets&&e.tracingOrigins&&(e.tracePropagationTargets=e.tracingOrigins);const n={...V3t,...e},r=h3t(),i={};n.enableInp&&v3t(i,n.interactionsSampleRate),n.enableLongTask&&m3t(),n._experiments.enableInteractions&&g3t();const a={name:void 0,context:void 0};function o(s){const l=iu(),{beforeStartSpan:c,idleTimeout:u,finalTimeout:d,heartbeatInterval:f}=n,p=s.op==="pageload";let h;if(p){const y=p?pbe("sentry-trace"):"",_=p?pbe("baggage"):void 0,{traceId:S,dsc:C,parentSpanId:w,sampled:x}=axt(y,_);h={traceId:S,parentSpanId:w,parentSampled:x,...s,metadata:{...s.metadata,dynamicSamplingContext:C},trimEnd:!0}}else h={trimEnd:!0,...s};const m=c?c(h):h;m.metadata=m.name!==h.name?{...m.metadata,source:"custom"}:m.metadata,a.name=m.name,a.context=m,m.sampled===!1&&es&&en.log(`[Tracing] Will not send ${m.op} transaction because of beforeNavigate.`),es&&en.log(`[Tracing] Starting ${m.op} transaction on scope`);const{location:g}=fi,v=w$e(l,m,u,d,!0,{location:g},f,p);return p&&fi.document&&(fi.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(fi.document.readyState)&&v.sendAutoFinishSignal()}),["interactive","complete"].includes(fi.document.readyState)&&v.sendAutoFinishSignal()),v.registerBeforeFinishCallback(y=>{r(),C3t(y)}),v}return{name:H3t,setupOnce:()=>{},afterAllSetup(s){const l=s.getOptions(),{markBackgroundSpan:c,traceFetch:u,traceXHR:d,shouldCreateSpanForRequest:f,enableHTTPTimings:p,_experiments:h}=n,m=l&&l.tracePropagationTargets,g=m||n.tracePropagationTargets;es&&t&&m&&en.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used.");let v,y=fi.location&&fi.location.href;if(s.on&&(s.on("startNavigationSpan",_=>{v&&(es&&en.log(`[Tracing] Finishing current transaction with op: ${Js(v).op}`),v.end()),v=o({op:"navigation",..._})}),s.on("startPageLoadSpan",_=>{v&&(es&&en.log(`[Tracing] Finishing current transaction with op: ${Js(v).op}`),v.end()),v=o({op:"pageload",..._})})),n.instrumentPageLoad&&s.emit&&fi.location){const _={name:fi.location.pathname,startTimestamp:Af?Af/1e3:void 0,origin:"auto.pageload.browser",attributes:{[Hg]:"url"}};W$e(s,_)}n.instrumentNavigation&&s.emit&&fi.location&&Pj(({to:_,from:S})=>{if(S===void 0&&y&&y.indexOf(_)!==-1){y=void 0;return}if(S!==_){y=void 0;const C={name:fi.location.pathname,origin:"auto.navigation.browser",attributes:{[Hg]:"url"}};G3t(s,C)}}),c&&H5t(),h.enableInteractions&&q3t(n,a),n.enableInp&&Y3t(i,a),D3t({traceFetch:u,traceXHR:d,tracePropagationTargets:g,shouldCreateSpanForRequest:f,enableHTTPTimings:p})},options:n}};function W$e(e,t){if(!e.emit)return;e.emit("startPageLoadSpan",t);const n=bue();return(n&&Js(n).op)==="pageload"?n:void 0}function G3t(e,t){if(!e.emit)return;e.emit("startNavigationSpan",t);const n=bue();return(n&&Js(n).op)==="navigation"?n:void 0}function pbe(e){const t=dwt(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}function q3t(e,t){let n;const r=()=>{const{idleTimeout:i,finalTimeout:a,heartbeatInterval:o}=e,s="ui.action.click",l=yC();if(l&&l.op&&["navigation","pageload"].includes(l.op)){es&&en.warn(`[Tracing] Did not create ${s} transaction because a pageload or navigation transaction is in progress.`);return}if(n&&(n.setFinishReason("interactionInterrupted"),n.end(),n=void 0),!t.name){es&&en.warn(`[Tracing] Did not create ${s} transaction because _latestRouteName is missing.`);return}const{location:c}=fi,u={name:t.name,op:s,trimEnd:!0,data:{[Hg]:t.context?K3t(t.context):"url"}};n=w$e(iu(),u,i,a,!0,{location:c},o)};["click"].forEach(i=>{fi.document&&addEventListener(i,r,{once:!1,capture:!0})})}function W3t(e){return"duration"in e}const hbe=10;function Y3t(e,t){const n=({entries:r})=>{const i=Ha(),a=i!==void 0&&i.getIntegrationByName!==void 0?i.getIntegrationByName("Replay"):void 0,o=a!==void 0?a.getReplayId():void 0,s=yC(),l=Df(),c=l!==void 0?l.getUser():void 0;r.forEach(u=>{if(W3t(u)){const d=u.interactionId;if(d===void 0)return;const f=e[d],p=u.duration,h=u.startTime,m=Object.keys(e),g=m.length>0?m.reduce((v,y)=>e[v].duration<e[y].duration?v:y):void 0;if(u.entryType==="first-input"&&m.map(y=>e[y]).some(y=>y.duration===p&&y.startTime===h)||!d)return;if(f)f.duration=Math.max(f.duration,p);else if(m.length<hbe||g===void 0||p>e[g].duration){const v=t.name,y=t.context;v&&y&&(g&&Object.keys(e).length>=hbe&&delete e[g],e[d]={routeName:v,duration:p,parentContext:y,user:c,activeTransaction:s,replayId:o,startTime:h})}}})};p3("event",n),p3("first-input",n)}function K3t(e){const t=e.attributes&&e.attributes[Hg],n=e.data&&e.data[Hg],r=e.metadata&&e.metadata.source;return t||n||r}const Yi=ca;let yre=0;function Y$e(){return yre>0}function X3t(){yre++,setTimeout(()=>{yre--})}function m3(e,t={},n){if(typeof e!="function")return e;try{const i=e.__sentry_wrapped__;if(i)return typeof i=="function"?i:e;if(cue(e))return e}catch{return e}const r=function(){const i=Array.prototype.slice.call(arguments);try{const a=i.map(o=>m3(o,t));return e.apply(this,a)}catch(a){throw X3t(),u$e(o=>{o.addEventProcessor(s=>(t.mechanism&&(nre(s,void 0),_N(s,t.mechanism)),s.extra={...s.extra,arguments:i},s)),$j(a)}),a}};try{for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch{}UDe(r,e),NE(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}const _p=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function K$e(e,t){const n=Cue(e,t),r={type:t&&t.name,value:eTt(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function Z3t(e,t,n,r){const i=Ha(),a=i&&i.getOptions().normalizeDepth,o={exception:{values:[{type:Oj(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:rTt(t,{isUnhandledRejection:r})}]},extra:{__serialized__:QDe(t,a)}};if(n){const s=Cue(e,n);s.length&&(o.exception.values[0].stacktrace={frames:s})}return o}function TG(e,t){return{exception:{values:[K$e(e,t)]}}}function Cue(e,t){const n=t.stacktrace||t.stack||"",r=J3t(t);try{return e(n,r)}catch{}return[]}const Q3t=/Minified React error #\d+;/i;function J3t(e){if(e){if(typeof e.framesToPop=="number")return e.framesToPop;if(Q3t.test(e.message))return 1}return 0}function eTt(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function tTt(e,t,n,r){const i=n&&n.syntheticException||void 0,a=wue(e,t,i,r);return _N(a),a.level="error",n&&n.event_id&&(a.event_id=n.event_id),d3(a)}function nTt(e,t,n="info",r,i){const a=r&&r.syntheticException||void 0,o=bre(e,t,a,i);return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),d3(o)}function wue(e,t,n,r,i){let a;if(aue(t)&&t.error)return TG(e,t.error);if(Aye(t)||twt(t)){const o=t;if("stack"in t)a=TG(e,t);else{const s=o.name||(Aye(o)?"DOMError":"DOMException"),l=o.message?`${s}: ${o.message}`:s;a=bre(e,l,n,r),nre(a,l)}return"code"in o&&(a.tags={...a.tags,"DOMException.code":`${o.code}`}),a}return iue(t)?TG(e,t):u3(t)||Oj(t)?(a=Z3t(e,t,n,i),_N(a,{synthetic:!0}),a):(a=bre(e,t,n,r),nre(a,`${t}`),_N(a,{synthetic:!0}),a)}function bre(e,t,n,r){const i={};if(r&&n){const a=Cue(e,n);a.length&&(i.exception={values:[{value:t,stacktrace:{frames:a}}]})}if(oue(t)){const{__sentry_template_string__:a,__sentry_template_values__:o}=t;return i.logentry={message:a,params:o},i}return i.message=t,i}function rTt(e,{isUnhandledRejection:t}){const n=bwt(e),r=t?"promise rejection":"exception";return aue(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:Oj(e)?`Event \`${iTt(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function iTt(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function aTt(e,{metadata:t,tunnel:n,dsn:r}){const i={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:mC(r)}},a=oTt(e);return S_(i,[a])}function oTt(e){return[{type:"user_report"},e]}class sTt extends g5t{constructor(t){const n=Yi.SENTRY_SDK_SOURCE||zwt();N$e(t,"browser",["browser"],n),super(t),t.sendClientReports&&Yi.document&&Yi.document.addEventListener("visibilitychange",()=>{Yi.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return tTt(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return nTt(this._options.stackParser,t,n,r,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){_p&&en.warn("SDK not enabled, will not capture user feedback.");return}const n=aTt(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(n)}_prepareEvent(t,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r)}_flushOutcomes(){const t=this._clearOutcomes();if(t.length===0){_p&&en.log("No outcomes to send");return}if(!this._dsn){_p&&en.log("No dsn provided, will not send outcomes");return}_p&&en.log("Sending outcomes:",t);const n=dxt(t,this._options.tunnel&&mC(this._dsn));this._sendEnvelope(n)}}let dA;function lTt(){if(dA)return dA;if(ore(Yi.fetch))return dA=Yi.fetch.bind(Yi);const e=Yi.document;let t=Yi.fetch;if(e&&typeof e.createElement=="function")try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(n){_p&&en.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return dA=t.bind(Yi)}function cTt(){dA=void 0}function uTt(e,t=lTt()){let n=0,r=0;function i(a){const o=a.body.length;n+=o,r++;const s={body:a.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,s).then(l=>(n-=o,r--,{statusCode:l.status,headers:{"x-sentry-rate-limits":l.headers.get("X-Sentry-Rate-Limits"),"retry-after":l.headers.get("Retry-After")}}))}catch(l){return cTt(),n-=o,r--,fue(l)}}return R$e(e,i)}const dTt=4;function fTt(e){function t(n){return new gf((r,i)=>{const a=new XMLHttpRequest;a.onerror=i,a.onreadystatechange=()=>{a.readyState===dTt&&r({statusCode:a.status,headers:{"x-sentry-rate-limits":a.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":a.getResponseHeader("Retry-After")}})},a.open("POST",e.url);for(const o in e.headers)Object.prototype.hasOwnProperty.call(e.headers,o)&&a.setRequestHeader(o,e.headers[o]);a.send(n.body)})}return R$e(e,t)}const zj="?",pTt=30,hTt=40,mTt=50;function xue(e,t,n,r){const i={filename:e,function:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}const gTt=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,vTt=/\((\S*)(?::(\d+))(?::(\d+))\)/,yTt=e=>{const t=gTt.exec(e);if(t){if(t[2]&&t[2].indexOf("eval")===0){const a=vTt.exec(t[2]);a&&(t[2]=a[1],t[3]=a[2],t[4]=a[3])}const[r,i]=X$e(t[1]||zj,t[2]);return xue(i,r,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}},bTt=[pTt,yTt],_Tt=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,STt=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,ETt=e=>{const t=_Tt.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const a=STt.exec(t[3]);a&&(t[1]=t[1]||"eval",t[3]=a[1],t[4]=a[2],t[5]="")}let r=t[3],i=t[1]||zj;return[i,r]=X$e(i,r),xue(r,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},CTt=[mTt,ETt],wTt=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,xTt=e=>{const t=wTt.exec(e);return t?xue(t[2],t[1]||zj,+t[3],t[4]?+t[4]:void 0):void 0},TTt=[hTt,xTt],ITt=[bTt,CTt,TTt],ATt=GDe(...ITt),X$e=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:zj,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},GL=1024,Z$e="Breadcrumbs",RTt=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:Z$e,setupOnce(){},setup(n){t.console&&Cwt(LTt(n)),t.dom&&YDe(OTt(n,t.dom)),t.xhr&&due(PTt(n)),t.fetch&&uue(kTt(n)),t.history&&Pj(MTt(n)),t.sentry&&n.on&&n.on("beforeSendEvent",NTt(n))}}},Q$e=RTt;C_(Z$e,Q$e);function NTt(e){return function(n){Ha()===e&&Jb({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:nb(n)},{event:n})}}function OTt(e,t){return function(r){if(Ha()!==e)return;let i,a,o=typeof t=="object"?t.serializeAttribute:void 0,s=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;s&&s>GL&&(_p&&en.warn(`\`dom.maxStringLength\` cannot exceed ${GL}, but a value of ${s} was configured. Sentry will use ${GL} instead.`),s=GL),typeof o=="string"&&(o=[o]);try{const c=r.event,u=DTt(c)?c.target:c;i=Qb(u,{keyAttrs:o,maxStringLength:s}),a=BDe(u)}catch{i="<unknown>"}if(i.length===0)return;const l={category:`ui.${r.name}`,message:i};a&&(l.data={"ui.component_name":a}),Jb(l,{event:r.event,name:r.name,global:r.global})}}function LTt(e){return function(n){if(Ha()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:Zwt(n.level),message:Rye(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${Rye(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;Jb(r,{input:n.args,level:n.level})}}function PTt(e){return function(n){if(Ha()!==e)return;const{startTimestamp:r,endTimestamp:i}=n,a=n.xhr[ub];if(!r||!i||!a)return;const{method:o,url:s,status_code:l,body:c}=a,u={method:o,url:s,status_code:l},d={xhr:n.xhr,input:c,startTimestamp:r,endTimestamp:i};Jb({category:"xhr",data:u,type:"http"},d)}}function kTt(e){return function(n){if(Ha()!==e)return;const{startTimestamp:r,endTimestamp:i}=n;if(i&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const a=n.fetchData,o={data:n.error,input:n.args,startTimestamp:r,endTimestamp:i};Jb({category:"fetch",data:a,level:"error",type:"http"},o)}else{const a=n.response,o={...n.fetchData,status_code:a&&a.status},s={input:n.args,response:a,startTimestamp:r,endTimestamp:i};Jb({category:"fetch",data:o,type:"http"},s)}}}function MTt(e){return function(n){if(Ha()!==e)return;let r=n.from,i=n.to;const a=nE(Yi.location.href);let o=r?nE(r):void 0;const s=nE(i);(!o||!o.path)&&(o=a),a.protocol===s.protocol&&a.host===s.host&&(i=s.relative),a.protocol===o.protocol&&a.host===o.host&&(r=o.relative),Jb({category:"navigation",data:{from:r,to:i}})}}function DTt(e){return!!e&&!!e.target}const J$e="Dedupe",$Tt=()=>{let e;return{name:J$e,setupOnce(){},processEvent(t){if(t.type)return t;try{if(FTt(t,e))return _p&&en.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},eFe=$Tt;C_(J$e,eFe);function FTt(e,t){return t?!!(BTt(e,t)||jTt(e,t)):!1}function BTt(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!nFe(e,t)||!tFe(e,t))}function jTt(e,t){const n=mbe(t),r=mbe(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!nFe(e,t)||!tFe(e,t))}function tFe(e,t){let n=gbe(e),r=gbe(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let i=0;i<r.length;i++){const a=r[i],o=n[i];if(a.filename!==o.filename||a.lineno!==o.lineno||a.colno!==o.colno||a.function!==o.function)return!1}return!0}function nFe(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function mbe(e){return e.exception&&e.exception.values&&e.exception.values[0]}function gbe(e){const t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch{return}}const rFe="GlobalHandlers",zTt=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:rFe,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(UTt(n),vbe("onerror")),t.onunhandledrejection&&(HTt(n),vbe("onunhandledrejection"))}}},iFe=zTt;C_(rFe,iFe);function UTt(e){XDe(t=>{const{stackParser:n,attachStacktrace:r}=oFe();if(Ha()!==e||Y$e())return;const{msg:i,url:a,line:o,column:s,error:l}=t,c=l===void 0&&Ug(i)?qTt(i,a,o,s):aFe(wue(n,l||i,void 0,r,!1),a,o,s);c.level="error",c$e(c,{originalException:l,mechanism:{handled:!1,type:"onerror"}})})}function HTt(e){ZDe(t=>{const{stackParser:n,attachStacktrace:r}=oFe();if(Ha()!==e||Y$e())return;const i=VTt(t),a=sue(i)?GTt(i):wue(n,i,void 0,r,!0);a.level="error",c$e(a,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function VTt(e){if(sue(e))return e;const t=e;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return e}function GTt(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function qTt(e,t,n,r){const i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let a=aue(e)?e.message:e,o="Error";const s=a.match(i);return s&&(o=s[1],a=s[2]),aFe({exception:{values:[{type:o,value:a}]}},t,n,r)}function aFe(e,t,n,r){const i=e.exception=e.exception||{},a=i.values=i.values||[],o=a[0]=a[0]||{},s=o.stacktrace=o.stacktrace||{},l=s.frames=s.frames||[],c=isNaN(parseInt(r,10))?void 0:r,u=isNaN(parseInt(n,10))?void 0:n,d=Ug(t)&&t.length>0?t:uwt();return l.length===0&&l.push({colno:c,filename:d,function:"?",in_app:!0,lineno:u}),e}function vbe(e){_p&&en.log(`Global Handler attached: ${e}`)}function oFe(){const e=Ha();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const sFe="HttpContext",WTt=()=>({name:sFe,setupOnce(){},preprocessEvent(e){if(!Yi.navigator&&!Yi.location&&!Yi.document)return;const t=e.request&&e.request.url||Yi.location&&Yi.location.href,{referrer:n}=Yi.document||{},{userAgent:r}=Yi.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},a={...e.request,...t&&{url:t},headers:i};e.request=a}}),lFe=WTt;C_(sFe,lFe);const YTt="cause",KTt=5,cFe="LinkedErrors",XTt=(e={})=>{const t=e.limit||KTt,n=e.key||YTt;return{name:cFe,setupOnce(){},preprocessEvent(r,i,a){const o=a.getOptions();owt(K$e,o.stackParser,o.maxValueLength,n,t,r,i)}}},uFe=XTt;C_(cFe,uFe);const ZTt=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],dFe="TryCatch",QTt=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:dFe,setupOnce(){t.setTimeout&&Yl(Yi,"setTimeout",ybe),t.setInterval&&Yl(Yi,"setInterval",ybe),t.requestAnimationFrame&&Yl(Yi,"requestAnimationFrame",JTt),t.XMLHttpRequest&&"XMLHttpRequest"in Yi&&Yl(XMLHttpRequest.prototype,"send",e4t);const n=t.eventTarget;n&&(Array.isArray(n)?n:ZTt).forEach(t4t)}}},fFe=QTt;C_(dFe,fFe);function ybe(e){return function(...t){const n=t[0];return t[0]=m3(n,{mechanism:{data:{function:n0(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function JTt(e){return function(t){return e.apply(this,[m3(t,{mechanism:{data:{function:"requestAnimationFrame",handler:n0(e)},handled:!1,type:"instrument"}})])}}function e4t(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in n&&typeof n[i]=="function"&&Yl(n,i,function(a){const o={mechanism:{data:{function:i,handler:n0(a)},handled:!1,type:"instrument"}},s=cue(a);return s&&(o.mechanism.data.handler=n0(s)),m3(a,o)})}),e.apply(this,t)}}function t4t(e){const t=Yi,n=t[e]&&t[e].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(Yl(n,"addEventListener",function(r){return function(i,a,o){try{typeof a.handleEvent=="function"&&(a.handleEvent=m3(a.handleEvent,{mechanism:{data:{function:"handleEvent",handler:n0(a),target:e},handled:!1,type:"instrument"}}))}catch{}return r.apply(this,[i,m3(a,{mechanism:{data:{function:"addEventListener",handler:n0(a),target:e},handled:!1,type:"instrument"}}),o])}}),Yl(n,"removeEventListener",function(r){return function(i,a,o){const s=a;try{const l=s&&s.__sentry_wrapped__;l&&r.call(this,i,l,o)}catch{}return r.call(this,i,s,o)}}))}const n4t=[L$e(),k$e(),fFe(),Q$e(),iFe(),uFe(),eFe(),lFe()];function r4t(e){return[...n4t]}function i4t(e={}){e.defaultIntegrations===void 0&&(e.defaultIntegrations=r4t()),e.release===void 0&&(typeof __SENTRY_RELEASE__=="string"&&(e.release=__SENTRY_RELEASE__),Yi.SENTRY_RELEASE&&Yi.SENTRY_RELEASE.id&&(e.release=Yi.SENTRY_RELEASE.id)),e.autoSessionTracking===void 0&&(e.autoSessionTracking=!0),e.sendClientReports===void 0&&(e.sendClientReports=!0);const t={...e,stackParser:Swt(e.stackParser||ATt),integrations:u5t(e),transport:e.transport||(KDe()?uTt:fTt)};_5t(sTt,t),e.autoSessionTracking&&a4t()}const bbe=(e={},t=iu())=>{if(!Yi.document){_p&&en.error("Global document not defined in showReportDialog call");return}const{client:n,scope:r}=t.getStackTop(),i=e.dsn||n&&n.getDsn();if(!i){_p&&en.error("DSN not configured for showReportDialog call");return}r&&(e.user={...r.getUser(),...e.user}),e.eventId||(e.eventId=t.lastEventId());const a=Yi.document.createElement("script");a.async=!0,a.crossOrigin="anonymous",a.src=l5t(i,e),e.onLoad&&(a.onload=e.onLoad);const{onClose:o}=e;if(o){const l=c=>{if(c.data==="__sentry_reportdialog_closed__")try{o()}finally{Yi.removeEventListener("message",l)}};Yi.addEventListener("message",l)}const s=Yi.document.head||Yi.document.body;s?s.appendChild(a):_p&&en.error("Not injecting report dialog. No injection point found in HTML")};function a4t(){if(typeof Yi.document>"u"){_p&&en.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}Wye({ignoreDuration:!0}),Yye(),Pj(({from:e,to:t})=>{e!==void 0&&e!==t&&(Wye({ignoreDuration:!0}),Yye())})}const wo=ca,Tue="sentryReplaySession",o4t="replay_event",Iue="Unable to send Replay",s4t=3e5,l4t=9e5,c4t=5e3,u4t=5500,d4t=6e4,f4t=5e3,p4t=3,_be=15e4,qL=5e3,h4t=3e3,m4t=300,Aue=2e7,g4t=4999,v4t=15e3,Sbe=36e5;function y4t(e,t){return e??t()}function C$(e){let t,n=e[0],r=1;for(;r<e.length;){const i=e[r],a=e[r+1];if(r+=2,(i==="optionalAccess"||i==="optionalCall")&&n==null)return;i==="access"||i==="optionalAccess"?(t=n,n=a(n)):(i==="call"||i==="optionalCall")&&(n=a((...o)=>n.call(t,...o)),t=void 0)}return n}var Tl;(function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"})(Tl||(Tl={}));function b4t(e){return e.nodeType===e.ELEMENT_NODE}function nR(e){const t=C$([e,"optionalAccess",n=>n.host]);return C$([t,"optionalAccess",n=>n.shadowRoot])===e}function rR(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function _4t(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),e}function S4t(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function w$(e){try{const t=e.rules||e.cssRules;return t?_4t(Array.from(t,pFe).join("")):null}catch{return null}}function pFe(e){let t;if(C4t(e))try{t=w$(e.styleSheet)||S4t(e)}catch{}else if(w4t(e)&&e.selectorText.includes(":"))return E4t(e.cssText);return t||e.cssText}function E4t(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function C4t(e){return"styleSheet"in e}function w4t(e){return"selectorText"in e}class hFe{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(t){if(!t)return-1;const n=C$([this,"access",r=>r.getMeta,"call",r=>r(t),"optionalAccess",r=>r.id]);return y4t(n,()=>-1)}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){const r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n)}replace(t,n){const r=this.getNode(t);if(r){const i=this.nodeMetaMap.get(r);i&&this.nodeMetaMap.set(n,i)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function x4t(){return new hFe}function Uj({maskInputOptions:e,tagName:t,type:n}){return t==="OPTION"&&(t="SELECT"),!!(e[t.toLowerCase()]||n&&e[n]||n==="password"||t==="INPUT"&&!n&&e.text)}function SN({isMasked:e,element:t,value:n,maskInputFn:r}){let i=n||"";return e?(r&&(i=r(i,t)),"*".repeat(i.length)):i}function g3(e){return e.toLowerCase()}function _re(e){return e.toUpperCase()}const Ebe="__rrweb_original__";function T4t(e){const t=e.getContext("2d");if(!t)return!0;const n=50;for(let r=0;r<e.width;r+=n)for(let i=0;i<e.height;i+=n){const a=t.getImageData,o=Ebe in a?a[Ebe]:a;if(new Uint32Array(o.call(t,r,i,Math.min(n,e.width-r),Math.min(n,e.height-i)).data.buffer).some(l=>l!==0))return!1}return!0}function Rue(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?g3(t):null}function x$(e,t,n){return t==="INPUT"&&(n==="radio"||n==="checkbox")?e.getAttribute("value")||"":e.value}let I4t=1;const A4t=new RegExp("[^a-z0-9-_:]"),EN=-2;function Nue(){return I4t++}function R4t(e){if(e instanceof HTMLFormElement)return"form";const t=g3(e.tagName);return A4t.test(t)?"div":t}function N4t(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}let hw,Cbe;const O4t=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,L4t=/^(?:[a-z+]+:)?\/\//i,P4t=/^www\..*/i,k4t=/^(data:)([^,]*),(.*)/i;function T$(e,t){return(e||"").replace(O4t,(n,r,i,a,o,s)=>{const l=i||o||s,c=r||a||"";if(!l)return n;if(L4t.test(l)||P4t.test(l))return`url(${c}${l}${c})`;if(k4t.test(l))return`url(${c}${l}${c})`;if(l[0]==="/")return`url(${c}${N4t(t)+l}${c})`;const u=t.split("/"),d=l.split("/");u.pop();for(const f of d)f!=="."&&(f===".."?u.pop():u.push(f));return`url(${c}${u.join("/")}${c})`})}const M4t=/^[^ \t\n\r\u000c]+/,D4t=/^[, \t\n\r\u000c]+/;function $4t(e,t){if(t.trim()==="")return t;let n=0;function r(a){let o;const s=a.exec(t.substring(n));return s?(o=s[0],n+=o.length,o):""}const i=[];for(;r(D4t),!(n>=t.length);){let a=r(M4t);if(a.slice(-1)===",")a=zx(e,a.substring(0,a.length-1)),i.push(a);else{let o="";a=zx(e,a);let s=!1;for(;;){const l=t.charAt(n);if(l===""){i.push((a+o).trim());break}else if(s)l===")"&&(s=!1);else if(l===","){n+=1,i.push((a+o).trim());break}else l==="("&&(s=!0);o+=l,n+=1}}}return i.join(", ")}function zx(e,t){if(!t||t.trim()==="")return t;const n=e.createElement("a");return n.href=t,n.href}function F4t(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Oue(){const e=document.createElement("a");return e.href="",e.href}function mFe(e,t,n,r,i,a){return r&&(n==="src"||n==="href"&&!(t==="use"&&r[0]==="#")||n==="xlink:href"&&r[0]!=="#"||n==="background"&&(t==="table"||t==="td"||t==="th")?zx(e,r):n==="srcset"?$4t(e,r):n==="style"?T$(r,Oue()):t==="object"&&n==="data"?zx(e,r):typeof a=="function"?a(n,r,i):r)}function gFe(e,t,n){return(e==="video"||e==="audio")&&t==="autoplay"}function B4t(e,t,n,r){try{if(r&&e.matches(r))return!1;if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let i=e.classList.length;i--;){const a=e.classList[i];if(t.test(a))return!0}if(n)return e.matches(n)}catch{}return!1}function j4t(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function $S(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:$S(e.parentNode,t,n,r+1)}function Ux(e,t){return n=>{const r=n;if(r===null)return!1;try{if(e){if(typeof e=="string"){if(r.matches(`.${e}`))return!0}else if(j4t(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}function v3(e,t,n,r,i,a){try{const o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(o===null)return!1;if(o.tagName==="INPUT"){const c=o.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(c))return!0}let s=-1,l=-1;if(a){if(l=$S(o,Ux(r,i)),l<0)return!0;s=$S(o,Ux(t,n),l>=0?l:1/0)}else{if(s=$S(o,Ux(t,n)),s<0)return!1;l=$S(o,Ux(r,i),s>=0?s:1/0)}return s>=0?l>=0?s<=l:!0:l>=0?!1:!!a}catch{}return!!a}function z4t(e,t,n){const r=e.contentWindow;if(!r)return;let i=!1,a;try{a=r.document.readyState}catch{return}if(a!=="complete"){const s=setTimeout(()=>{i||(t(),i=!0)},n);e.addEventListener("load",()=>{clearTimeout(s),i=!0,t()});return}const o="about:blank";if(r.location.href!==o||e.src===o||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function U4t(e,t,n){let r=!1,i;try{i=e.sheet}catch{return}if(i)return;const a=setTimeout(()=>{r||(t(),r=!0)},n);e.addEventListener("load",()=>{clearTimeout(a),r=!0,t()})}function H4t(e,t){const{doc:n,mirror:r,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:s,maskAttributeFn:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,inlineStylesheet:p,maskInputOptions:h={},maskTextFn:m,maskInputFn:g,dataURLOptions:v={},inlineImages:y,recordCanvas:_,keepIframeSrcFn:S,newlyAddedElement:C=!1}=t,w=V4t(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:Tl.Document,childNodes:[],compatMode:e.compatMode}:{type:Tl.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Tl.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:w};case e.ELEMENT_NODE:return q4t(e,{doc:n,blockClass:i,blockSelector:a,unblockSelector:o,inlineStylesheet:p,maskAttributeFn:l,maskInputOptions:h,maskInputFn:g,dataURLOptions:v,inlineImages:y,recordCanvas:_,keepIframeSrcFn:S,newlyAddedElement:C,rootId:w,maskAllText:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f});case e.TEXT_NODE:return G4t(e,{maskAllText:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,maskTextFn:m,maskInputOptions:h,maskInputFn:g,rootId:w});case e.CDATA_SECTION_NODE:return{type:Tl.CDATA,textContent:"",rootId:w};case e.COMMENT_NODE:return{type:Tl.Comment,textContent:e.textContent||"",rootId:w};default:return!1}}function V4t(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return n===1?void 0:n}function G4t(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:i,maskTextSelector:a,unmaskTextSelector:o,maskTextFn:s,maskInputOptions:l,maskInputFn:c,rootId:u}=t,d=e.parentNode&&e.parentNode.tagName;let f=e.textContent;const p=d==="STYLE"?!0:void 0,h=d==="SCRIPT"?!0:void 0,m=d==="TEXTAREA"?!0:void 0;if(p&&f){try{e.nextSibling||e.previousSibling||C$([e,"access",v=>v.parentNode,"access",v=>v.sheet,"optionalAccess",v=>v.cssRules])&&(f=w$(e.parentNode.sheet))}catch(v){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${v}`,e)}f=T$(f,Oue())}h&&(f="SCRIPT_PLACEHOLDER");const g=v3(e,r,a,i,o,n);if(!p&&!h&&!m&&f&&g&&(f=s?s(f,e.parentElement):f.replace(/[\S]/g,"*")),m&&f&&(l.textarea||g)&&(f=c?c(f,e.parentNode):f.replace(/[\S]/g,"*")),d==="OPTION"&&f){const v=Uj({type:null,tagName:d,maskInputOptions:l});f=SN({isMasked:v3(e,r,a,i,o,v),element:e,value:f,maskInputFn:c})}return{type:Tl.Text,textContent:f||"",isStyle:p,rootId:u}}function q4t(e,t){const{doc:n,blockClass:r,blockSelector:i,unblockSelector:a,inlineStylesheet:o,maskInputOptions:s={},maskAttributeFn:l,maskInputFn:c,dataURLOptions:u={},inlineImages:d,recordCanvas:f,keepIframeSrcFn:p,newlyAddedElement:h=!1,rootId:m,maskAllText:g,maskTextClass:v,unmaskTextClass:y,maskTextSelector:_,unmaskTextSelector:S}=t,C=B4t(e,r,i,a),w=R4t(e);let x={};const T=e.attributes.length;for(let I=0;I<T;I++){const R=e.attributes[I];R.name&&!gFe(w,R.name,R.value)&&(x[R.name]=mFe(n,w,g3(R.name),R.value,e,l))}if(w==="link"&&o){const I=Array.from(n.styleSheets).find(N=>N.href===e.href);let R=null;I&&(R=w$(I)),R&&(delete x.rel,delete x.href,x._cssText=T$(R,I.href))}if(w==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const I=w$(e.sheet);I&&(x._cssText=T$(I,Oue()))}if(w==="input"||w==="textarea"||w==="select"||w==="option"){const I=e,R=Rue(I),N=x$(I,_re(w),R),P=I.checked;if(R!=="submit"&&R!=="button"&&N){const L=v3(I,v,_,y,S,Uj({type:R,tagName:_re(w),maskInputOptions:s}));x.value=SN({isMasked:L,element:I,value:N,maskInputFn:c})}P&&(x.checked=P)}if(w==="option"&&(e.selected&&!s.select?x.selected=!0:delete x.selected),w==="canvas"&&f){if(e.__context==="2d")T4t(e)||(x.rr_dataURL=e.toDataURL(u.type,u.quality));else if(!("__context"in e)){const I=e.toDataURL(u.type,u.quality),R=document.createElement("canvas");R.width=e.width,R.height=e.height;const N=R.toDataURL(u.type,u.quality);I!==N&&(x.rr_dataURL=I)}}if(w==="img"&&d){hw||(hw=n.createElement("canvas"),Cbe=hw.getContext("2d"));const I=e,R=I.crossOrigin;I.crossOrigin="anonymous";const N=()=>{I.removeEventListener("load",N);try{hw.width=I.naturalWidth,hw.height=I.naturalHeight,Cbe.drawImage(I,0,0),x.rr_dataURL=hw.toDataURL(u.type,u.quality)}catch(P){console.warn(`Cannot inline img src=${I.currentSrc}! Error: ${P}`)}R?x.crossOrigin=R:I.removeAttribute("crossorigin")};I.complete&&I.naturalWidth!==0?N():I.addEventListener("load",N)}if((w==="audio"||w==="video")&&(x.rr_mediaState=e.paused?"paused":"played",x.rr_mediaCurrentTime=e.currentTime),h||(e.scrollLeft&&(x.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(x.rr_scrollTop=e.scrollTop)),C){const{width:I,height:R}=e.getBoundingClientRect();x={class:x.class,rr_width:`${I}px`,rr_height:`${R}px`}}w==="iframe"&&!p(x.src)&&(e.contentDocument||(x.rr_src=x.src),delete x.src);let A;try{customElements.get(w)&&(A=!0)}catch{}return{type:Tl.Element,tagName:w,attributes:x,childNodes:[],isSVG:F4t(e)||void 0,needBlock:C,rootId:m,isCustom:A}}function Eo(e){return e==null?"":e.toLowerCase()}function W4t(e,t){if(t.comment&&e.type===Tl.Comment)return!0;if(e.type===Tl.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")&&e.attributes.as==="script"||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&e.attributes.href.endsWith(".js")))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(Eo(e.attributes.name).match(/^msapplication-tile(image|color)$/)||Eo(e.attributes.name)==="application-name"||Eo(e.attributes.rel)==="icon"||Eo(e.attributes.rel)==="apple-touch-icon"||Eo(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&Eo(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Eo(e.attributes.property).match(/^(og|twitter|fb):/)||Eo(e.attributes.name).match(/^(og|twitter):/)||Eo(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(Eo(e.attributes.name)==="robots"||Eo(e.attributes.name)==="googlebot"||Eo(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(Eo(e.attributes.name)==="author"||Eo(e.attributes.name)==="generator"||Eo(e.attributes.name)==="framework"||Eo(e.attributes.name)==="publisher"||Eo(e.attributes.name)==="progid"||Eo(e.attributes.property).match(/^article:/)||Eo(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(Eo(e.attributes.name)==="google-site-verification"||Eo(e.attributes.name)==="yandex-verification"||Eo(e.attributes.name)==="csrf-token"||Eo(e.attributes.name)==="p:domain_verify"||Eo(e.attributes.name)==="verify-v1"||Eo(e.attributes.name)==="verification"||Eo(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Hx(e,t){const{doc:n,mirror:r,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:s,maskTextClass:l,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:d,skipChild:f=!1,inlineStylesheet:p=!0,maskInputOptions:h={},maskAttributeFn:m,maskTextFn:g,maskInputFn:v,slimDOMOptions:y,dataURLOptions:_={},inlineImages:S=!1,recordCanvas:C=!1,onSerialize:w,onIframeLoad:x,iframeLoadTimeout:T=5e3,onStylesheetLoad:A,stylesheetLoadTimeout:I=5e3,keepIframeSrcFn:R=()=>!1,newlyAddedElement:N=!1}=t;let{preserveWhiteSpace:P=!0}=t;const L=H4t(e,{doc:n,mirror:r,blockClass:i,blockSelector:a,maskAllText:s,unblockSelector:o,maskTextClass:l,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:d,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:v,dataURLOptions:_,inlineImages:S,recordCanvas:C,keepIframeSrcFn:R,newlyAddedElement:N});if(!L)return console.warn(e,"not serialized"),null;let $;r.hasNode(e)?$=r.getId(e):W4t(L,y)||!P&&L.type===Tl.Text&&!L.isStyle&&!L.textContent.replace(/^\s+|\s+$/gm,"").length?$=EN:$=Nue();const D=Object.assign(L,{id:$});if(r.add(e,D),$===EN)return null;w&&w(e);let z=!f;if(D.type===Tl.Element){z=z&&!D.needBlock,delete D.needBlock;const U=e.shadowRoot;U&&rR(U)&&(D.isShadowHost=!0)}if((D.type===Tl.Document||D.type===Tl.Element)&&z){y.headWhitespace&&D.type===Tl.Element&&D.tagName==="head"&&(P=!1);const U={doc:n,mirror:r,blockClass:i,blockSelector:a,maskAllText:s,unblockSelector:o,maskTextClass:l,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:d,skipChild:f,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:v,slimDOMOptions:y,dataURLOptions:_,inlineImages:S,recordCanvas:C,preserveWhiteSpace:P,onSerialize:w,onIframeLoad:x,iframeLoadTimeout:T,onStylesheetLoad:A,stylesheetLoadTimeout:I,keepIframeSrcFn:R};for(const H of Array.from(e.childNodes)){const M=Hx(H,U);M&&D.childNodes.push(M)}if(b4t(e)&&e.shadowRoot)for(const H of Array.from(e.shadowRoot.childNodes)){const M=Hx(H,U);M&&(rR(e.shadowRoot)&&(M.isShadow=!0),D.childNodes.push(M))}}return e.parentNode&&nR(e.parentNode)&&rR(e.parentNode)&&(D.isShadow=!0),D.type===Tl.Element&&D.tagName==="iframe"&&z4t(e,()=>{const U=e.contentDocument;if(U&&x){const H=Hx(U,{doc:U,mirror:r,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:s,maskTextClass:l,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:v,slimDOMOptions:y,dataURLOptions:_,inlineImages:S,recordCanvas:C,preserveWhiteSpace:P,onSerialize:w,onIframeLoad:x,iframeLoadTimeout:T,onStylesheetLoad:A,stylesheetLoadTimeout:I,keepIframeSrcFn:R});H&&x(e,H)}},T),D.type===Tl.Element&&D.tagName==="link"&&D.attributes.rel==="stylesheet"&&U4t(e,()=>{if(A){const U=Hx(e,{doc:n,mirror:r,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:s,maskTextClass:l,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:v,slimDOMOptions:y,dataURLOptions:_,inlineImages:S,recordCanvas:C,preserveWhiteSpace:P,onSerialize:w,onIframeLoad:x,iframeLoadTimeout:T,onStylesheetLoad:A,stylesheetLoadTimeout:I,keepIframeSrcFn:R});U&&A(e,U)}},I),D}function Y4t(e,t){const{mirror:n=new hFe,blockClass:r="rr-block",blockSelector:i=null,unblockSelector:a=null,maskAllText:o=!1,maskTextClass:s="rr-mask",unmaskTextClass:l=null,maskTextSelector:c=null,unmaskTextSelector:u=null,inlineStylesheet:d=!0,inlineImages:f=!1,recordCanvas:p=!1,maskAllInputs:h=!1,maskAttributeFn:m,maskTextFn:g,maskInputFn:v,slimDOM:y=!1,dataURLOptions:_,preserveWhiteSpace:S,onSerialize:C,onIframeLoad:w,iframeLoadTimeout:x,onStylesheetLoad:T,stylesheetLoadTimeout:A,keepIframeSrcFn:I=()=>!1}=t||{};return Hx(e,{doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,maskAllText:o,maskTextClass:s,unmaskTextClass:l,maskTextSelector:c,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:d,maskInputOptions:h===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:h===!1?{}:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:v,slimDOMOptions:y===!0||y==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:y==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:y===!1?{}:y,dataURLOptions:_,inlineImages:f,recordCanvas:p,preserveWhiteSpace:S,onSerialize:C,onIframeLoad:w,iframeLoadTimeout:x,onStylesheetLoad:T,stylesheetLoadTimeout:A,keepIframeSrcFn:I,newlyAddedElement:!1})}function Gy(e){let t,n=e[0],r=1;for(;r<e.length;){const i=e[r],a=e[r+1];if(r+=2,(i==="optionalAccess"||i==="optionalCall")&&n==null)return;i==="access"||i==="optionalAccess"?(t=n,n=a(n)):(i==="call"||i==="optionalCall")&&(n=a((...o)=>n.call(t,...o)),t=void 0)}return n}function Cu(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const vx=`Please stop import mirror directly. Instead of that,\r
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
or you can use record.mirror to access the mirror instance during recording.`;let wbe={map:{},getId(){return console.error(vx),-1},getNode(){return console.error(vx),null},removeNodeFromMap(){console.error(vx)},has(){return console.error(vx),!1},reset(){console.error(vx)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(wbe=new Proxy(wbe,{get(e,t,n){return t==="map"&&console.error(vx),Reflect.get(e,t,n)}}));function CN(e,t,n={}){let r=null,i=0;return function(...a){const o=Date.now();!i&&n.leading===!1&&(i=o);const s=t-(o-i),l=this;s<=0||s>t?(r&&(tIt(r),r=null),i=o,e.apply(l,a)):!r&&n.trailing!==!1&&(r=Hj(()=>{i=n.leading===!1?0:Date.now(),r=null,e.apply(l,a)},s))}}function vFe(e,t,n,r,i=window){const a=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?n:{set(o){Hj(()=>{n.set.call(this,o)},0),a&&a.set&&a.set.call(this,o)}}),()=>vFe(e,t,a||{},!0)}function Lue(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],i=n(r);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}let I$=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(I$=()=>new Date().getTime());function yFe(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:Gy([t,"optionalAccess",n=>n.documentElement,"access",n=>n.scrollLeft])||Gy([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.parentElement,"optionalAccess",n=>n.scrollLeft])||Gy([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:Gy([t,"optionalAccess",n=>n.documentElement,"access",n=>n.scrollTop])||Gy([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.parentElement,"optionalAccess",n=>n.scrollTop])||Gy([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.scrollTop])||0}}function bFe(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function _Fe(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function SFe(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function zh(e,t,n,r,i){if(!e)return!1;const a=SFe(e);if(!a)return!1;const o=Ux(t,n);if(!i){const c=r&&a.matches(r);return o(a)&&!c}const s=$S(a,o);let l=-1;return s<0?!1:(r&&(l=$S(a,Ux(null,r))),s>-1&&l<0?!0:s<l)}function K4t(e,t){return t.getId(e)!==-1}function IG(e,t){return t.getId(e)===EN}function EFe(e,t){if(nR(e))return!1;const n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?EFe(e.parentNode,t):!0:!0}function Sre(e){return!!e.changedTouches}function X4t(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...t)=>{let n=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do if(this===n)return!0;while(n=n&&n.parentNode);return!1})}function CFe(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function wFe(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function Ere(e){return!!Gy([e,"optionalAccess",t=>t.shadowRoot])}class Z4t{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){return mxt(this.styleIDMap.get(t),()=>-1)}has(t){return this.styleIDMap.has(t)}add(t,n){if(this.has(t))return this.getId(t);let r;return n===void 0?r=this.id++:r=n,this.styleIDMap.set(t,r),this.idStyleMap.set(r,t),r}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function xFe(e){let t=null;return Gy([e,"access",n=>n.getRootNode,"optionalCall",n=>n(),"optionalAccess",n=>n.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function Q4t(e){let t=e,n;for(;n=xFe(t);)t=n;return t}function J4t(e){const t=e.ownerDocument;if(!t)return!1;const n=Q4t(e);return t.contains(n)}function TFe(e){const t=e.ownerDocument;return t?t.contains(e)||J4t(e):!1}const xbe={};function Pue(e){const t=xbe[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const i=n.createElement("iframe");i.hidden=!0,n.head.appendChild(i);const a=i.contentWindow;a&&a[e]&&(r=a[e]),n.head.removeChild(i)}catch{}return xbe[e]=r.bind(window)}function eIt(...e){return Pue("requestAnimationFrame")(...e)}function Hj(...e){return Pue("setTimeout")(...e)}function tIt(...e){return Pue("clearTimeout")(...e)}var Ni=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(Ni||{}),Oi=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(Oi||{}),gu=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(gu||{}),d1=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(d1||{});function nIt(e){let t,n=e[0],r=1;for(;r<e.length;){const i=e[r],a=e[r+1];if(r+=2,(i==="optionalAccess"||i==="optionalCall")&&n==null)return;i==="access"||i==="optionalAccess"?(t=n,n=a(n)):(i==="call"||i==="optionalCall")&&(n=a((...o)=>n.call(t,...o)),t=void 0)}return n}function Tbe(e){return"__ln"in e}class rIt{constructor(){this.length=0,this.head=null,this.tail=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let r=0;r<t;r++)n=nIt([n,"optionalAccess",i=>i.next])||null;return n}addNode(t){const n={value:t,previous:null,next:null};if(t.__ln=n,t.previousSibling&&Tbe(t.previousSibling)){const r=t.previousSibling.__ln.next;n.next=r,n.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=n,r&&(r.previous=n)}else if(t.nextSibling&&Tbe(t.nextSibling)&&t.nextSibling.__ln.previous){const r=t.nextSibling.__ln.previous;n.previous=r,n.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=n,r&&(r.next=n)}else this.head&&(this.head.previous=n),n.next=this.head,this.head=n;n.next===null&&(this.tail=n),this.length++}removeNode(t){const n=t.__ln;this.head&&(n.previous?(n.previous.next=n.next,n.next?n.next.previous=n.previous:this.tail=n.previous):(this.head=n.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}const Ibe=(e,t)=>`${e}@${t}`;class iIt{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],n=new Set,r=new rIt,i=l=>{let c=l,u=EN;for(;u===EN;)c=c&&c.nextSibling,u=c&&this.mirror.getId(c);return u},a=l=>{if(!l.parentNode||!TFe(l))return;const c=nR(l.parentNode)?this.mirror.getId(xFe(l)):this.mirror.getId(l.parentNode),u=i(l);if(c===-1||u===-1)return r.addNode(l);const d=Hx(l,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:f=>{CFe(f,this.mirror)&&this.iframeManager.addIframe(f),wFe(f,this.mirror)&&this.stylesheetManager.trackLinkElement(f),Ere(l)&&this.shadowDomManager.addShadowRoot(l.shadowRoot,this.doc)},onIframeLoad:(f,p)=>{this.iframeManager.attachIframe(f,p),this.shadowDomManager.observeAttachShadow(f)},onStylesheetLoad:(f,p)=>{this.stylesheetManager.attachLinkElement(f,p)}});d&&(t.push({parentId:c,nextId:u,node:d}),n.add(d.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const l of this.movedSet)Abe(this.removes,l,this.mirror)&&!this.movedSet.has(l.parentNode)||a(l);for(const l of this.addedSet)!Rbe(this.droppedSet,l)&&!Abe(this.removes,l,this.mirror)||Rbe(this.movedSet,l)?a(l):this.droppedSet.add(l);let o=null;for(;r.length;){let l=null;if(o){const c=this.mirror.getId(o.value.parentNode),u=i(o.value);c!==-1&&u!==-1&&(l=o)}if(!l){let c=r.tail;for(;c;){const u=c;if(c=c.previous,u){const d=this.mirror.getId(u.value.parentNode);if(i(u.value)===-1)continue;if(d!==-1){l=u;break}else{const p=u.value;if(p.parentNode&&p.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const h=p.parentNode.host;if(this.mirror.getId(h)!==-1){l=u;break}}}}}}if(!l){for(;r.head;)r.removeNode(r.head.value);break}o=l.previous,r.removeNode(l.value),a(l.value)}const s={texts:this.texts.map(l=>({id:this.mirror.getId(l.node),value:l.value})).filter(l=>!n.has(l.id)).filter(l=>this.mirror.has(l.id)),attributes:this.attributes.map(l=>{const{attributes:c}=l;if(typeof c.style=="string"){const u=JSON.stringify(l.styleDiff),d=JSON.stringify(l._unchangedStyles);u.length<c.style.length&&(u+d).split("var(").length===c.style.split("var(").length&&(c.style=l.styleDiff)}return{id:this.mirror.getId(l.node),attributes:c}}).filter(l=>!n.has(l.id)).filter(l=>this.mirror.has(l.id)),removes:this.removes,adds:t};!s.texts.length&&!s.attributes.length&&!s.removes.length&&!s.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(s))},this.processMutation=t=>{if(!IG(t.target,this.mirror))switch(t.type){case"characterData":{const n=t.target.textContent;!zh(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&n!==t.oldValue&&this.texts.push({value:v3(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&n?this.maskTextFn?this.maskTextFn(n,SFe(t.target)):n.replace(/[\S]/g,"*"):n,node:t.target});break}case"attributes":{const n=t.target;let r=t.attributeName,i=t.target.getAttribute(r);if(r==="value"){const o=Rue(n),s=n.tagName;i=x$(n,s,o);const l=Uj({maskInputOptions:this.maskInputOptions,tagName:s,type:o}),c=v3(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,l);i=SN({isMasked:c,element:n,value:i,maskInputFn:this.maskInputFn})}if(zh(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||i===t.oldValue)return;let a=this.attributeMap.get(t.target);if(n.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(i))if(!n.contentDocument)r="rr_src";else return;if(a||(a={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(a),this.attributeMap.set(t.target,a)),r==="type"&&n.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!gFe(n.tagName,r)&&(a.attributes[r]=mFe(this.doc,g3(n.tagName),g3(r),i,n,this.maskAttributeFn),r==="style")){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const o=this.unattachedDoc.createElement("span");t.oldValue&&o.setAttribute("style",t.oldValue);for(const s of Array.from(n.style)){const l=n.style.getPropertyValue(s),c=n.style.getPropertyPriority(s);l!==o.style.getPropertyValue(s)||c!==o.style.getPropertyPriority(s)?c===""?a.styleDiff[s]=l:a.styleDiff[s]=[l,c]:a._unchangedStyles[s]=[l,c]}for(const s of Array.from(o.style))n.style.getPropertyValue(s)===""&&(a.styleDiff[s]=!1)}break}case"childList":{if(zh(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach(n=>this.genAdds(n,t.target)),t.removedNodes.forEach(n=>{const r=this.mirror.getId(n),i=nR(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);zh(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||IG(n,this.mirror)||!K4t(n,this.mirror)||(this.addedSet.has(n)?(Cre(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(t.target)&&r===-1||EFe(t.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[Ibe(r,i)]?Cre(this.movedSet,n):this.removes.push({parentId:i,id:r,isShadow:nR(t.target)&&rR(t.target)?!0:void 0})),this.mapRemoves.push(n))});break}}},this.genAdds=(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(IG(t,this.mirror))return;this.movedSet.add(t);let r=null;n&&this.mirror.hasNode(n)&&(r=this.mirror.getId(n)),r&&r!==-1&&(this.movedMap[Ibe(this.mirror.getId(t),r)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);zh(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes.forEach(r=>this.genAdds(r)),Ere(t)&&t.shadowRoot.childNodes.forEach(r=>{this.processedNodeManager.add(r,this),this.genAdds(r,t)}))}}}init(t){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(n=>{this[n]=t[n]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function Cre(e,t){e.delete(t),t.childNodes.forEach(n=>Cre(e,n))}function Abe(e,t,n){return e.length===0?!1:IFe(e,t,n)}function IFe(e,t,n){const{parentNode:r}=t;if(!r)return!1;const i=n.getId(r);return e.some(a=>a.id===i)?!0:IFe(e,r,n)}function Rbe(e,t){return e.size===0?!1:AFe(e,t)}function AFe(e,t){const{parentNode:n}=t;return n?e.has(n)?!0:AFe(e,n):!1}let iR;function aIt(e){iR=e}function oIt(){iR=void 0}const sa=e=>iR?(...n)=>{try{return e(...n)}catch(r){if(iR&&iR(r)===!0)return()=>{};throw r}}:e;function xg(e){let t,n=e[0],r=1;for(;r<e.length;){const i=e[r],a=e[r+1];if(r+=2,(i==="optionalAccess"||i==="optionalCall")&&n==null)return;i==="access"||i==="optionalAccess"?(t=n,n=a(n)):(i==="call"||i==="optionalCall")&&(n=a((...o)=>n.call(t,...o)),t=void 0)}return n}const Vx=[];function fO(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function RFe(e,t){const n=new iIt;Vx.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const i=xg([window,"optionalAccess",o=>o.Zone,"optionalAccess",o=>o.__symbol__,"optionalCall",o=>o("MutationObserver")]);i&&window[i]&&(r=window[i]);const a=new r(sa(o=>{e.onMutation&&e.onMutation(o)===!1||n.processMutations.bind(n)(o)}));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function sIt({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(t.mousemove===!1)return()=>{};const i=typeof t.mousemove=="number"?t.mousemove:50,a=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let o=[],s;const l=CN(sa(d=>{const f=Date.now()-s;e(o.map(p=>(p.timeOffset-=f,p)),d),o=[],s=null}),a),c=sa(CN(sa(d=>{const f=fO(d),{clientX:p,clientY:h}=Sre(d)?d.changedTouches[0]:d;s||(s=I$()),o.push({x:p,y:h,id:r.getId(f),timeOffset:I$()-s}),l(typeof DragEvent<"u"&&d instanceof DragEvent?Oi.Drag:d instanceof MouseEvent?Oi.MouseMove:Oi.TouchMove)}),i,{trailing:!1})),u=[Cu("mousemove",c,n),Cu("touchmove",c,n),Cu("drag",c,n)];return sa(()=>{u.forEach(d=>d())})}function lIt({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,sampling:o}){if(o.mouseInteraction===!1)return()=>{};const s=o.mouseInteraction===!0||o.mouseInteraction===void 0?{}:o.mouseInteraction,l=[];let c=null;const u=d=>f=>{const p=fO(f);if(zh(p,r,i,a,!0))return;let h=null,m=d;if("pointerType"in f){switch(f.pointerType){case"mouse":h=d1.Mouse;break;case"touch":h=d1.Touch;break;case"pen":h=d1.Pen;break}h===d1.Touch?gu[d]===gu.MouseDown?m="TouchStart":gu[d]===gu.MouseUp&&(m="TouchEnd"):d1.Pen}else Sre(f)&&(h=d1.Touch);h!==null?(c=h,(m.startsWith("Touch")&&h===d1.Touch||m.startsWith("Mouse")&&h===d1.Mouse)&&(h=null)):gu[d]===gu.Click&&(h=c,c=null);const g=Sre(f)?f.changedTouches[0]:f;if(!g)return;const v=n.getId(p),{clientX:y,clientY:_}=g;sa(e)({type:gu[m],id:v,x:y,y:_,...h!==null&&{pointerType:h}})};return Object.keys(gu).filter(d=>Number.isNaN(Number(d))&&!d.endsWith("_Departed")&&s[d]!==!1).forEach(d=>{let f=g3(d);const p=u(d);if(window.PointerEvent)switch(gu[d]){case gu.MouseDown:case gu.MouseUp:f=f.replace("mouse","pointer");break;case gu.TouchStart:case gu.TouchEnd:return}l.push(Cu(f,p,t))}),sa(()=>{l.forEach(d=>d())})}function NFe({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,sampling:o}){const s=sa(CN(sa(l=>{const c=fO(l);if(!c||zh(c,r,i,a,!0))return;const u=n.getId(c);if(c===t&&t.defaultView){const d=yFe(t.defaultView);e({id:u,x:d.left,y:d.top})}else e({id:u,x:c.scrollLeft,y:c.scrollTop})}),o.scroll||100));return Cu("scroll",s,t)}function cIt({viewportResizeCb:e},{win:t}){let n=-1,r=-1;const i=sa(CN(sa(()=>{const a=bFe(),o=_Fe();(n!==a||r!==o)&&(e({width:Number(o),height:Number(a)}),n=a,r=o)}),200));return Cu("resize",i,t)}const uIt=["INPUT","TEXTAREA","SELECT"],Nbe=new WeakMap;function dIt({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,ignoreClass:o,ignoreSelector:s,maskInputOptions:l,maskInputFn:c,sampling:u,userTriggeredOnInput:d,maskTextClass:f,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:m}){function g(x){let T=fO(x);const A=x.isTrusted,I=T&&_re(T.tagName);if(I==="OPTION"&&(T=T.parentElement),!T||!I||uIt.indexOf(I)<0||zh(T,r,i,a,!0))return;const R=T;if(R.classList.contains(o)||s&&R.matches(s))return;const N=Rue(T);let P=x$(R,I,N),L=!1;const $=Uj({maskInputOptions:l,tagName:I,type:N}),D=v3(T,f,h,p,m,$);(N==="radio"||N==="checkbox")&&(L=T.checked),P=SN({isMasked:D,element:T,value:P,maskInputFn:c}),v(T,d?{text:P,isChecked:L,userTriggered:A}:{text:P,isChecked:L});const z=T.name;N==="radio"&&z&&L&&t.querySelectorAll(`input[type="radio"][name="${z}"]`).forEach(U=>{if(U!==T){const H=SN({isMasked:D,element:U,value:x$(U,I,N),maskInputFn:c});v(U,d?{text:H,isChecked:!L,userTriggered:!1}:{text:H,isChecked:!L})}})}function v(x,T){const A=Nbe.get(x);if(!A||A.text!==T.text||A.isChecked!==T.isChecked){Nbe.set(x,T);const I=n.getId(x);sa(e)({...T,id:I})}}const _=(u.input==="last"?["change"]:["input","change"]).map(x=>Cu(x,sa(g),t)),S=t.defaultView;if(!S)return()=>{_.forEach(x=>x())};const C=S.Object.getOwnPropertyDescriptor(S.HTMLInputElement.prototype,"value"),w=[[S.HTMLInputElement.prototype,"value"],[S.HTMLInputElement.prototype,"checked"],[S.HTMLSelectElement.prototype,"value"],[S.HTMLTextAreaElement.prototype,"value"],[S.HTMLSelectElement.prototype,"selectedIndex"],[S.HTMLOptionElement.prototype,"selected"]];return C&&C.set&&_.push(...w.map(x=>vFe(x[0],x[1],{set(){sa(g)({target:this,isTrusted:!1})}},!1,S))),sa(()=>{_.forEach(x=>x())})}function A$(e){const t=[];function n(r,i){if(WL("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||WL("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||WL("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||WL("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){const o=Array.from(r.parentRule.cssRules).indexOf(r);i.unshift(o)}else if(r.parentStyleSheet){const o=Array.from(r.parentStyleSheet.cssRules).indexOf(r);i.unshift(o)}return i}return n(e,t)}function qy(e,t,n){let r,i;return e?(e.ownerNode?r=t.getId(e.ownerNode):i=n.getId(e),{styleId:i,id:r}):{}}function fIt({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const i=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:sa((u,d,f)=>{const[p,h]=f,{id:m,styleId:g}=qy(d,t,n.styleMirror);return(m&&m!==-1||g&&g!==-1)&&e({id:m,styleId:g,adds:[{rule:p,index:h}]}),u.apply(d,f)})});const a=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:sa((u,d,f)=>{const[p]=f,{id:h,styleId:m}=qy(d,t,n.styleMirror);return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,removes:[{index:p}]}),u.apply(d,f)})});let o;r.CSSStyleSheet.prototype.replace&&(o=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(o,{apply:sa((u,d,f)=>{const[p]=f,{id:h,styleId:m}=qy(d,t,n.styleMirror);return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,replace:p}),u.apply(d,f)})}));let s;r.CSSStyleSheet.prototype.replaceSync&&(s=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(s,{apply:sa((u,d,f)=>{const[p]=f,{id:h,styleId:m}=qy(d,t,n.styleMirror);return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,replaceSync:p}),u.apply(d,f)})}));const l={};YL("CSSGroupingRule")?l.CSSGroupingRule=r.CSSGroupingRule:(YL("CSSMediaRule")&&(l.CSSMediaRule=r.CSSMediaRule),YL("CSSConditionRule")&&(l.CSSConditionRule=r.CSSConditionRule),YL("CSSSupportsRule")&&(l.CSSSupportsRule=r.CSSSupportsRule));const c={};return Object.entries(l).forEach(([u,d])=>{c[u]={insertRule:d.prototype.insertRule,deleteRule:d.prototype.deleteRule},d.prototype.insertRule=new Proxy(c[u].insertRule,{apply:sa((f,p,h)=>{const[m,g]=h,{id:v,styleId:y}=qy(p.parentStyleSheet,t,n.styleMirror);return(v&&v!==-1||y&&y!==-1)&&e({id:v,styleId:y,adds:[{rule:m,index:[...A$(p),g||0]}]}),f.apply(p,h)})}),d.prototype.deleteRule=new Proxy(c[u].deleteRule,{apply:sa((f,p,h)=>{const[m]=h,{id:g,styleId:v}=qy(p.parentStyleSheet,t,n.styleMirror);return(g&&g!==-1||v&&v!==-1)&&e({id:g,styleId:v,removes:[{index:[...A$(p),m]}]}),f.apply(p,h)})})}),sa(()=>{r.CSSStyleSheet.prototype.insertRule=i,r.CSSStyleSheet.prototype.deleteRule=a,o&&(r.CSSStyleSheet.prototype.replace=o),s&&(r.CSSStyleSheet.prototype.replaceSync=s),Object.entries(l).forEach(([u,d])=>{d.prototype.insertRule=c[u].insertRule,d.prototype.deleteRule=c[u].deleteRule})})}function OFe({mirror:e,stylesheetManager:t},n){let r=null;n.nodeName==="#document"?r=e.getId(n):r=e.getId(n.host);const i=n.nodeName==="#document"?xg([n,"access",o=>o.defaultView,"optionalAccess",o=>o.Document]):xg([n,"access",o=>o.ownerDocument,"optionalAccess",o=>o.defaultView,"optionalAccess",o=>o.ShadowRoot]),a=xg([i,"optionalAccess",o=>o.prototype])?Object.getOwnPropertyDescriptor(xg([i,"optionalAccess",o=>o.prototype]),"adoptedStyleSheets"):void 0;return r===null||r===-1||!i||!a?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get(){return xg([a,"access",o=>o.get,"optionalAccess",o=>o.call,"call",o=>o(this)])},set(o){const s=xg([a,"access",l=>l.set,"optionalAccess",l=>l.call,"call",l=>l(this,o)]);if(r!==null&&r!==-1)try{t.adoptStyleSheets(o,r)}catch{}return s}}),sa(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})}))}function pIt({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:i}){const a=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:sa((s,l,c)=>{const[u,d,f]=c;if(n.has(u))return a.apply(l,[u,d,f]);const{id:p,styleId:h}=qy(xg([l,"access",m=>m.parentRule,"optionalAccess",m=>m.parentStyleSheet]),t,r.styleMirror);return(p&&p!==-1||h&&h!==-1)&&e({id:p,styleId:h,set:{property:u,value:d,priority:f},index:A$(l.parentRule)}),s.apply(l,c)})});const o=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:sa((s,l,c)=>{const[u]=c;if(n.has(u))return o.apply(l,[u]);const{id:d,styleId:f}=qy(xg([l,"access",p=>p.parentRule,"optionalAccess",p=>p.parentStyleSheet]),t,r.styleMirror);return(d&&d!==-1||f&&f!==-1)&&e({id:d,styleId:f,remove:{property:u},index:A$(l.parentRule)}),s.apply(l,c)})}),sa(()=>{i.CSSStyleDeclaration.prototype.setProperty=a,i.CSSStyleDeclaration.prototype.removeProperty=o})}function hIt({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:i,sampling:a,doc:o}){const s=sa(c=>CN(sa(u=>{const d=fO(u);if(!d||zh(d,t,n,r,!0))return;const{currentTime:f,volume:p,muted:h,playbackRate:m}=d;e({type:c,id:i.getId(d),currentTime:f,volume:p,muted:h,playbackRate:m})}),a.media||500)),l=[Cu("play",s(0),o),Cu("pause",s(1),o),Cu("seeked",s(2),o),Cu("volumechange",s(3),o),Cu("ratechange",s(4),o)];return sa(()=>{l.forEach(c=>c())})}function mIt({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],i=new WeakMap,a=n.FontFace;n.FontFace=function(l,c,u){const d=new a(l,c,u);return i.set(d,{family:l,buffer:typeof c!="string",descriptors:u,fontSource:typeof c=="string"?c:JSON.stringify(Array.from(new Uint8Array(c)))}),d};const o=Lue(t.fonts,"add",function(s){return function(l){return Hj(sa(()=>{const c=i.get(l);c&&(e(c),i.delete(l))}),0),s.apply(this,[l])}});return r.push(()=>{n.FontFace=a}),r.push(o),sa(()=>{r.forEach(s=>s())})}function gIt(e){const{doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,selectionCb:o}=e;let s=!0;const l=sa(()=>{const c=t.getSelection();if(!c||s&&xg([c,"optionalAccess",f=>f.isCollapsed]))return;s=c.isCollapsed||!1;const u=[],d=c.rangeCount||0;for(let f=0;f<d;f++){const p=c.getRangeAt(f),{startContainer:h,startOffset:m,endContainer:g,endOffset:v}=p;zh(h,r,i,a,!0)||zh(g,r,i,a,!0)||u.push({start:n.getId(h),startOffset:m,end:n.getId(g),endOffset:v})}o({ranges:u})});return l(),Cu("selectionchange",l)}function vIt({doc:e,customElementCb:t}){const n=e.defaultView;return!n||!n.customElements?()=>{}:Lue(n.customElements,"define",function(i){return function(a,o,s){try{t({define:{name:a}})}catch{}return i.apply(this,[a,o,s])}})}function yIt(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};const r=RFe(e,e.doc),i=sIt(e),a=lIt(e),o=NFe(e),s=cIt(e,{win:n}),l=dIt(e),c=hIt(e),u=fIt(e,{win:n}),d=OFe(e,e.doc),f=pIt(e,{win:n}),p=e.collectFonts?mIt(e):()=>{},h=gIt(e),m=vIt(e),g=[];for(const v of e.plugins)g.push(v.observer(v.callback,n,v.options));return sa(()=>{Vx.forEach(v=>v.reset()),r.disconnect(),i(),a(),o(),s(),l(),c(),u(),d(),f(),p(),h(),m(),g.forEach(v=>v())})}function WL(e){return typeof window[e]<"u"}function YL(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class wre{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,n,r,i){const a=r||this.getIdToRemoteIdMap(t),o=i||this.getRemoteIdToIdMap(t);let s=a.get(n);return s||(s=this.generateIdFn(),a.set(n,s),o.set(s,n)),s}getIds(t,n){const r=this.getIdToRemoteIdMap(t),i=this.getRemoteIdToIdMap(t);return n.map(a=>this.getId(t,a,r,i))}getRemoteId(t,n,r){const i=r||this.getRemoteIdToIdMap(t);if(typeof n!="number")return n;const a=i.get(n);return a||-1}getRemoteIds(t,n){const r=this.getRemoteIdToIdMap(t);return n.map(i=>this.getRemoteId(t,i,r))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let n=this.iframeIdToRemoteIdMap.get(t);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(t,n)),n}getRemoteIdToIdMap(t){let n=this.iframeRemoteIdToIdMap.get(t);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(t,n)),n}}function Obe(e){let t,n=e[0],r=1;for(;r<e.length;){const i=e[r],a=e[r+1];if(r+=2,(i==="optionalAccess"||i==="optionalCall")&&n==null)return;i==="access"||i==="optionalAccess"?(t=n,n=a(n)):(i==="call"||i==="optionalCall")&&(n=a((...o)=>n.call(t,...o)),t=void 0)}return n}class bIt{constructor(){this.crossOriginIframeMirror=new wre(Nue),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class _It{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new wre(Nue),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new wre(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,n){this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),Obe([this,"access",r=>r.loadListener,"optionalCall",r=>r(t)]),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&t.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))}handleMessage(t){const n=t;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!t.source)return;const i=this.crossOriginIframeMap.get(t.source);if(!i)return;const a=this.transformCrossOriginEvent(i,n.data.event);a&&this.wrappedEmit(a,n.data.isCheckout)}transformCrossOriginEvent(t,n){switch(n.type){case Ni.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(n.data.node,t);const r=n.data.node.id;return this.crossOriginIframeRootIdMap.set(t,r),this.patchRootIdOnNode(n.data.node,r),{timestamp:n.timestamp,type:Ni.IncrementalSnapshot,data:{source:Oi.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Ni.Meta:case Ni.Load:case Ni.DomContentLoaded:return!1;case Ni.Plugin:return n;case Ni.Custom:return this.replaceIds(n.data.payload,t,["id","parentId","previousId","nextId"]),n;case Ni.IncrementalSnapshot:switch(n.data.source){case Oi.Mutation:return n.data.adds.forEach(r=>{this.replaceIds(r,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(r.node,t);const i=this.crossOriginIframeRootIdMap.get(t);i&&this.patchRootIdOnNode(r.node,i)}),n.data.removes.forEach(r=>{this.replaceIds(r,t,["parentId","id"])}),n.data.attributes.forEach(r=>{this.replaceIds(r,t,["id"])}),n.data.texts.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case Oi.Drag:case Oi.TouchMove:case Oi.MouseMove:return n.data.positions.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case Oi.ViewportResize:return!1;case Oi.MediaInteraction:case Oi.MouseInteraction:case Oi.Scroll:case Oi.CanvasMutation:case Oi.Input:return this.replaceIds(n.data,t,["id"]),n;case Oi.StyleSheetRule:case Oi.StyleDeclaration:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleId"]),n;case Oi.Font:return n;case Oi.Selection:return n.data.ranges.forEach(r=>{this.replaceIds(r,t,["start","end"])}),n;case Oi.AdoptedStyleSheet:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleIds"]),Obe([n,"access",r=>r.data,"access",r=>r.styles,"optionalAccess",r=>r.forEach,"call",r=>r(i=>{this.replaceStyleIds(i,t,["styleId"])})]),n}}return!1}replace(t,n,r,i){for(const a of i)!Array.isArray(n[a])&&typeof n[a]!="number"||(Array.isArray(n[a])?n[a]=t.getIds(r,n[a]):n[a]=t.getId(r,n[a]));return n}replaceIds(t,n,r){return this.replace(this.crossOriginIframeMirror,t,n,r)}replaceStyleIds(t,n,r){return this.replace(this.crossOriginIframeStyleMirror,t,n,r)}replaceIdOnNode(t,n){this.replaceIds(t,n,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(r=>{this.replaceIdOnNode(r,n)})}patchRootIdOnNode(t,n){t.type!==Tl.Document&&!t.rootId&&(t.rootId=n),"childNodes"in t&&t.childNodes.forEach(r=>{this.patchRootIdOnNode(r,n)})}}class SIt{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class EIt{constructor(t){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,n){if(!rR(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t);const r=RFe({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(NFe({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),Hj(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(OFe({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){!t.contentWindow||!t.contentDocument||this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)}patchAttachShadow(t,n){const r=this;this.restoreHandlers.push(Lue(t.prototype,"attachShadow",function(i){return function(a){const o=i.call(this,a);return this.shadowRoot&&TFe(this)&&r.addShadowRoot(this.shadowRoot,n),o}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}class Lbe{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}}class CIt{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new Z4t,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,n){if(t.length===0)return;const r={id:n,styleIds:[]},i=[];for(const a of t){let o;this.styleMirror.has(a)?o=this.styleMirror.getId(a):(o=this.styleMirror.add(a),i.push({styleId:o,rules:Array.from(a.rules||CSSRule,(s,l)=>({rule:pFe(s),index:l}))})),r.styleIds.push(o)}i.length>0&&(r.styles=i),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class wIt{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){eIt(()=>{this.clear(),this.loop&&this.periodicallyClear()})}inOtherBuffer(t,n){const r=this.nodeMap.get(t);return r&&Array.from(r).some(i=>i!==n)}add(t,n){this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(n))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}let Es,R$;const xh=x4t();function Pb(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:i="rr-block",blockSelector:a=null,unblockSelector:o=null,ignoreClass:s="rr-ignore",ignoreSelector:l=null,maskAllText:c=!1,maskTextClass:u="rr-mask",unmaskTextClass:d=null,maskTextSelector:f=null,unmaskTextSelector:p=null,inlineStylesheet:h=!0,maskAllInputs:m,maskInputOptions:g,slimDOMOptions:v,maskAttributeFn:y,maskInputFn:_,maskTextFn:S,maxCanvasSize:C=null,packFn:w,sampling:x={},dataURLOptions:T={},mousemoveWait:A,recordCanvas:I=!1,recordCrossOriginIframes:R=!1,recordAfter:N=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:P=!1,collectFonts:L=!1,inlineImages:$=!1,plugins:D,keepIframeSrcFn:z=()=>!1,ignoreCSSAttributes:U=new Set([]),errorHandler:H,onMutation:M,getCanvasManager:B}=e;aIt(H);const k=R?window.parent===window:!0;let F=!1;if(!k)try{window.parent.document&&(F=!1)}catch{F=!0}if(k&&!t)throw new Error("emit function is required");A!==void 0&&x.mousemove===void 0&&(x.mousemove=A),xh.reset();const G=m===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:g!==void 0?g:{},q=v===!0||v==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:v==="all",headMetaDescKeywords:v==="all"}:v||{};X4t();let W,K=0;const J=he=>{for(const ye of D||[])ye.eventProcessor&&(he=ye.eventProcessor(he));return w&&!F&&(he=w(he)),he};Es=(he,ye)=>{const me=he;if(me.timestamp=I$(),_G([Vx,"access",_e=>_e[0],"optionalAccess",_e=>_e.isFrozen,"call",_e=>_e()])&&me.type!==Ni.FullSnapshot&&!(me.type===Ni.IncrementalSnapshot&&me.data.source===Oi.Mutation)&&Vx.forEach(_e=>_e.unfreeze()),k)_G([t,"optionalCall",_e=>_e(J(me),ye)]);else if(F){const _e={type:"rrweb",event:J(me),origin:window.location.origin,isCheckout:ye};window.parent.postMessage(_e,"*")}if(me.type===Ni.FullSnapshot)W=me,K=0;else if(me.type===Ni.IncrementalSnapshot){if(me.data.source===Oi.Mutation&&me.data.isAttachIframe)return;K++;const _e=r&&K>=r,Te=n&&W&&me.timestamp-W.timestamp>n;(_e||Te)&&ce(!0)}};const te=he=>{Es({type:Ni.IncrementalSnapshot,data:{source:Oi.Mutation,...he}})},ae=he=>Es({type:Ni.IncrementalSnapshot,data:{source:Oi.Scroll,...he}}),re=he=>Es({type:Ni.IncrementalSnapshot,data:{source:Oi.CanvasMutation,...he}}),ue=he=>Es({type:Ni.IncrementalSnapshot,data:{source:Oi.AdoptedStyleSheet,...he}}),de=new CIt({mutationCb:te,adoptedStyleSheetCb:ue}),fe=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new bIt:new _It({mirror:xh,mutationCb:te,stylesheetManager:de,recordCrossOriginIframes:R,wrappedEmit:Es});for(const he of D||[])he.getMirror&&he.getMirror({nodeMirror:xh,crossOriginIframeMirror:fe.crossOriginIframeMirror,crossOriginIframeStyleMirror:fe.crossOriginIframeStyleMirror});const ge=new wIt,oe=TIt(B,{mirror:xh,win:window,mutationCb:he=>Es({type:Ni.IncrementalSnapshot,data:{source:Oi.CanvasMutation,...he}}),recordCanvas:I,blockClass:i,blockSelector:a,unblockSelector:o,maxCanvasSize:C,sampling:x.canvas,dataURLOptions:T,errorHandler:H}),Ee=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new SIt:new EIt({mutationCb:te,scrollCb:ae,bypassOptions:{onMutation:M,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:c,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:h,maskInputOptions:G,dataURLOptions:T,maskAttributeFn:y,maskTextFn:S,maskInputFn:_,recordCanvas:I,inlineImages:$,sampling:x,slimDOMOptions:q,iframeManager:fe,stylesheetManager:de,canvasManager:oe,keepIframeSrcFn:z,processedNodeManager:ge},mirror:xh}),ce=(he=!1)=>{Es({type:Ni.Meta,data:{href:window.location.href,width:_Fe(),height:bFe()}},he),de.reset(),Ee.init(),Vx.forEach(me=>me.lock());const ye=Y4t(document,{mirror:xh,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:c,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:h,maskAllInputs:G,maskAttributeFn:y,maskInputFn:_,maskTextFn:S,slimDOM:q,dataURLOptions:T,recordCanvas:I,inlineImages:$,onSerialize:me=>{CFe(me,xh)&&fe.addIframe(me),wFe(me,xh)&&de.trackLinkElement(me),Ere(me)&&Ee.addShadowRoot(me.shadowRoot,document)},onIframeLoad:(me,_e)=>{fe.attachIframe(me,_e),Ee.observeAttachShadow(me)},onStylesheetLoad:(me,_e)=>{de.attachLinkElement(me,_e)},keepIframeSrcFn:z});if(!ye)return console.warn("Failed to snapshot the document");Es({type:Ni.FullSnapshot,data:{node:ye,initialOffset:yFe(window)}}),Vx.forEach(me=>me.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&de.adoptStyleSheets(document.adoptedStyleSheets,xh.getId(document))};R$=ce;try{const he=[],ye=_e=>sa(yIt)({onMutation:M,mutationCb:te,mousemoveCb:(Te,xe)=>Es({type:Ni.IncrementalSnapshot,data:{source:xe,positions:Te}}),mouseInteractionCb:Te=>Es({type:Ni.IncrementalSnapshot,data:{source:Oi.MouseInteraction,...Te}}),scrollCb:ae,viewportResizeCb:Te=>Es({type:Ni.IncrementalSnapshot,data:{source:Oi.ViewportResize,...Te}}),inputCb:Te=>Es({type:Ni.IncrementalSnapshot,data:{source:Oi.Input,...Te}}),mediaInteractionCb:Te=>Es({type:Ni.IncrementalSnapshot,data:{source:Oi.MediaInteraction,...Te}}),styleSheetRuleCb:Te=>Es({type:Ni.IncrementalSnapshot,data:{source:Oi.StyleSheetRule,...Te}}),styleDeclarationCb:Te=>Es({type:Ni.IncrementalSnapshot,data:{source:Oi.StyleDeclaration,...Te}}),canvasMutationCb:re,fontCb:Te=>Es({type:Ni.IncrementalSnapshot,data:{source:Oi.Font,...Te}}),selectionCb:Te=>{Es({type:Ni.IncrementalSnapshot,data:{source:Oi.Selection,...Te}})},customElementCb:Te=>{Es({type:Ni.IncrementalSnapshot,data:{source:Oi.CustomElement,...Te}})},blockClass:i,ignoreClass:s,ignoreSelector:l,maskAllText:c,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,maskInputOptions:G,inlineStylesheet:h,sampling:x,recordCanvas:I,inlineImages:$,userTriggeredOnInput:P,collectFonts:L,doc:_e,maskAttributeFn:y,maskInputFn:_,maskTextFn:S,keepIframeSrcFn:z,blockSelector:a,unblockSelector:o,slimDOMOptions:q,dataURLOptions:T,mirror:xh,iframeManager:fe,stylesheetManager:de,shadowDomManager:Ee,processedNodeManager:ge,canvasManager:oe,ignoreCSSAttributes:U,plugins:_G([D,"optionalAccess",Te=>Te.filter,"call",Te=>Te(xe=>xe.observer),"optionalAccess",Te=>Te.map,"call",Te=>Te(xe=>({observer:xe.observer,options:xe.options,callback:De=>Es({type:Ni.Plugin,data:{plugin:xe.name,payload:De}})}))])||[]},{});fe.addLoadListener(_e=>{try{he.push(ye(_e.contentDocument))}catch(Te){console.warn(Te)}});const me=()=>{ce(),he.push(ye(document))};return document.readyState==="interactive"||document.readyState==="complete"?me():(he.push(Cu("DOMContentLoaded",()=>{Es({type:Ni.DomContentLoaded,data:{}}),N==="DOMContentLoaded"&&me()})),he.push(Cu("load",()=>{Es({type:Ni.Load,data:{}}),N==="load"&&me()},window))),()=>{he.forEach(_e=>_e()),ge.destroy(),R$=void 0,oIt()}}catch(he){console.warn(he)}}function xIt(e){if(!R$)throw new Error("please take full snapshot after start recording");R$(e)}Pb.mirror=xh;Pb.takeFullSnapshot=xIt;function TIt(e,t){try{return e?e(t):new Lbe}catch{return console.warn("Unable to initialize CanvasManager"),new Lbe}}const IIt=3,AIt=5;function kue(e){return e>9999999999?e:e*1e3}function AG(e){return e>9999999999?e/1e3:e}function pO(e,t){t.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:Ni.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:wg(t,10,1e3)}}),t.category==="console")))}const RIt="button,a";function LFe(e){return e.closest(RIt)||e}function PFe(e){const t=kFe(e);return!t||!(t instanceof Element)?t:LFe(t)}function kFe(e){return NIt(e)?e.target:e}function NIt(e){return typeof e=="object"&&!!e&&"target"in e}let Wy;function OIt(e){return Wy||(Wy=[],LIt()),Wy.push(e),()=>{const t=Wy?Wy.indexOf(e):-1;t>-1&&Wy.splice(t,1)}}function LIt(){Yl(wo,"open",function(e){return function(...t){if(Wy)try{Wy.forEach(n=>n())}catch{}return e.apply(wo,t)}})}function PIt(e,t,n){e.handleClick(t,n)}class kIt{constructor(t,n,r=pO){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=n.timeout/1e3,this._threshold=n.threshold/1e3,this._scollTimeout=n.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=n.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){const t=OIt(()=>{this._lastMutation=Pbe()});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(t,n){if(DIt(n,this._ignoreSelector)||!$It(t))return;const r={timestamp:AG(t.timestamp),clickBreadcrumb:t,clickCount:0,node:n};this._clicks.some(i=>i.node===r.node&&Math.abs(i.timestamp-r.timestamp)<1)||(this._clicks.push(r),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(t=Date.now()){this._lastMutation=AG(t)}registerScroll(t=Date.now()){this._lastScroll=AG(t)}registerClick(t){const n=LFe(t);this._handleMultiClick(n)}_handleMultiClick(t){this._getClicks(t).forEach(n=>{n.clickCount++})}_getClicks(t){return this._clicks.filter(n=>n.node===t)}_checkClicks(){const t=[],n=Pbe();this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=n&&t.push(r)});for(const r of t){const i=this._clicks.indexOf(r);i>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(i,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){const n=this._replay,r=t.scrollAfter&&t.scrollAfter<=this._scollTimeout,i=t.mutationAfter&&t.mutationAfter<=this._threshold,a=!r&&!i,{clickCount:o,clickBreadcrumb:s}=t;if(a){const l=Math.min(t.mutationAfter||this._timeout,this._timeout)*1e3,c=l<this._timeout*1e3?"mutation":"timeout",u={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.slowClickDetected",data:{...s.data,url:wo.location.href,route:n.getCurrentRoute(),timeAfterClickMs:l,endReason:c,clickCount:o||1}};this._addBreadcrumbEvent(n,u);return}if(o>1){const l={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.multiClick",data:{...s.data,url:wo.location.href,route:n.getCurrentRoute(),clickCount:o,metric:!0}};this._addBreadcrumbEvent(n,l)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=setTimeout(()=>this._checkClicks(),1e3)}}const MIt=["A","BUTTON","INPUT"];function DIt(e,t){return!!(!MIt.includes(e.tagName)||e.tagName==="INPUT"&&!["submit","button"].includes(e.getAttribute("type")||"")||e.tagName==="A"&&(e.hasAttribute("download")||e.hasAttribute("target")&&e.getAttribute("target")!=="_self")||t&&e.matches(t))}function $It(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function Pbe(){return Date.now()/1e3}function FIt(e,t){try{if(!BIt(t))return;const{source:n}=t.data;if(n===Oi.Mutation&&e.registerMutation(t.timestamp),n===Oi.Scroll&&e.registerScroll(t.timestamp),jIt(t)){const{type:r,id:i}=t.data,a=Pb.mirror.getNode(i);a instanceof HTMLElement&&r===gu.Click&&e.registerClick(a)}}catch{}}function BIt(e){return e.type===IIt}function jIt(e){return e.data.source===Oi.MouseInteraction}function Lg(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var N$;(function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"})(N$||(N$={}));const zIt=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function UIt(e){const t={};for(const n in e)if(zIt.has(n)){let r=n;(n==="data-testid"||n==="data-test-id")&&(r="testId"),t[r]=e[n]}return t}const HIt=e=>t=>{if(!e.isEnabled())return;const n=VIt(t);if(!n)return;const r=t.name==="click",i=r?t.event:void 0;r&&e.clickDetector&&i&&i.target&&!i.altKey&&!i.metaKey&&!i.ctrlKey&&!i.shiftKey&&PIt(e.clickDetector,n,PFe(t.event)),pO(e,n)};function MFe(e,t){const n=Pb.mirror.getId(e),r=n&&Pb.mirror.getNode(n),i=r&&Pb.mirror.getMeta(r),a=i&&qIt(i)?i:null;return{message:t,data:a?{nodeId:n,node:{id:n,tagName:a.tagName,textContent:Array.from(a.childNodes).map(o=>o.type===N$.Text&&o.textContent).filter(Boolean).map(o=>o.trim()).join(""),attributes:UIt(a.attributes)}}:{}}}function VIt(e){const{target:t,message:n}=GIt(e);return Lg({category:`ui.${e.name}`,...MFe(t,n)})}function GIt(e){const t=e.name==="click";let n,r=null;try{r=t?PFe(e.event):kFe(e.event),n=Qb(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}function qIt(e){return e.type===N$.Element}function WIt(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=YIt(t);n&&pO(e,n)}function YIt(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:i,key:a,target:o}=e;if(!o||KIt(o)||!a)return null;const s=t||r||i,l=a.length===1;if(!s&&l)return null;const c=Qb(o,{maxStringLength:200})||"<unknown>",u=MFe(o,c);return Lg({category:"ui.keyDown",message:c,data:{...u.data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:i,key:a}})}function KIt(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}const kbe={resource:eAt,paint:QIt,navigation:JIt};function XIt(e){return e.map(ZIt).filter(Boolean)}function ZIt(e){return kbe[e.entryType]?kbe[e.entryType](e):null}function y3(e){return((Af||wo.performance.timeOrigin)+e)/1e3}function QIt(e){const{duration:t,entryType:n,name:r,startTime:i}=e,a=y3(i);return{type:n,name:r,start:a,end:a+t,data:void 0}}function JIt(e){const{entryType:t,name:n,decodedBodySize:r,duration:i,domComplete:a,encodedBodySize:o,domContentLoadedEventStart:s,domContentLoadedEventEnd:l,domInteractive:c,loadEventStart:u,loadEventEnd:d,redirectCount:f,startTime:p,transferSize:h,type:m}=e;return i===0?null:{type:`${t}.${m}`,start:y3(p),end:y3(a),name:n,data:{size:h,decodedBodySize:r,encodedBodySize:o,duration:i,domInteractive:c,domContentLoadedEventStart:s,domContentLoadedEventEnd:l,loadEventStart:u,loadEventEnd:d,domComplete:a,redirectCount:f}}}function eAt(e){const{entryType:t,initiatorType:n,name:r,responseEnd:i,startTime:a,decodedBodySize:o,encodedBodySize:s,responseStatus:l,transferSize:c}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:y3(a),end:y3(i),name:r,data:{size:c,statusCode:l,decodedBodySize:o,encodedBodySize:s}}}function tAt(e){const t=e.entries,n=t[t.length-1],r=n?n.element:void 0,i=e.value,a=y3(i);return{type:"largest-contentful-paint",name:"largest-contentful-paint",start:a,end:a,data:{value:i,size:i,nodeId:r?Pb.mirror.getId(r):void 0}}}function nAt(e){function t(i){e.performanceEntries.includes(i)||e.performanceEntries.push(i)}function n({entries:i}){i.forEach(t)}const r=[];return["navigation","paint","resource"].forEach(i=>{r.push(p3(i,n))}),r.push(U$e(({metric:i})=>{e.replayPerformanceEntries.push(tAt(i))})),()=>{r.forEach(i=>i())}}const yo=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,rAt='var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==r||r<0)&&(r=0),(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},A=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},_=function(r,e){for(var i=[],a=0;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var s=i.length,o=i.slice();if(!s)return{t:F,l:0};if(1==s){var f=new t(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:h.f+l.f,l:h,r:l};c!=s-1;)h=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:h.f+l.f,l:h,r:l};var d=o[0].s;for(a=1;a<s;++a)o[a].s>d&&(d=o[a].s);var g=new n(d+1),w=x(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<<y;for(o.sort((function(t,n){return g[n.s]-g[t.s]||t.f-n.f}));a<s;++a){var b=o[a].s;if(!(g[b]>e))break;p+=m-(1<<w-g[b]),g[b]=e}for(p>>=y;p>0;){var M=o[a].s;g[M]<e?p-=1<<e-g[M]++-1:++a}for(;a>=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},x=function(t,n,r){return-1==t.s?Math.max(x(t.l,n,r+1),x(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},C=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=_(f,15),M=b.t,E=b.l,x=_(h,15),C=x.t,U=x.l,F=D(M),I=F.c,S=F.n,L=D(C),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=_(q,7),H=G.t,J=G.l,K=19;K>4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,C)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(C,U,0),R=C;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[a[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B<u;++B){var rt=o[B];if(rt>255){A(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;A(r,m,Q[et]),m+=R[et],et>3&&(A(r,m,rt>>5&8191),m+=i[et])}else A(r,m,N[rt]),m+=P[rt]}return A(r,m,N[256]),m+P[256]},U=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=U[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,A=c.p||new n(32768),_=c.h||new n(z+1),x=Math.ceil(o/3),D=2*x,T=function(t){return(a[t]^a[t+1]<<x^a[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=_[H];if(A[J]=K,_[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=C(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$<Z&&a[j+$]==a[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-A[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=A[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=a[j],++I[a[j]];p=C(a,g,w,F,I,S,O,q,G,j-G,p),w||(c.r=7&p|g[p/8|0]<<3,p-=7,c.h=_,c.p=A,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,a=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),s=a.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(a,n),O(a,s-8,r.d()),O(a,s-4,e),a}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(r){for(var e=new t(n.length),i=0;i<n.length;++i)e[i]=n.charCodeAt(i);return e}if(G)return G.encode(n);var a=n.length,s=new t(n.length+(n.length>>1)),o=0,f=function(t){s[o++]=t};for(i=0;i<a;++i){if(o+5>s.length){var h=new t(o+8+(a-i<<1));h.set(s),s=h}var l=n.charCodeAt(i);l<128||r?f(l):l<2048?(f(192|l>>6),f(128|63&l)):l>55295&&l<57344?(f(240|(l=65536+(1047552&l)|1023&n.charCodeAt(++i))>>18),f(128|l>>12&63),f(128|l>>6&63),f(128|63&l)):(f(224|l>>12),f(128|l>>6&63),f(128|63&l))}return b(s,0,o)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(let r=0,e=t.length;r<e;r++)n+=t[r].length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});';function iAt(){const e=new Blob([rAt]);return URL.createObjectURL(e)}function _u(e,t){yo&&(en.info(e),t&&DFe(e))}function _5(e,t){yo&&(en.info(e),t&&setTimeout(()=>{DFe(e)},0))}function DFe(e){Jb({category:"console",data:{logger:"replay"},level:"info",message:e},{level:"info"})}class Mue extends Error{constructor(){super(`Event buffer exceeded maximum size of ${Aue}.`)}}class $Fe{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){const n=JSON.stringify(t).length;if(this._totalSize+=n,this._totalSize>Aue)throw new Mue;this.events.push(t)}finish(){return new Promise(t=>{const n=this.events;this.clear(),t(JSON.stringify(n))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const t=this.events.map(n=>n.timestamp).sort()[0];return t?kue(t):null}}class aAt{constructor(t){this._worker=t,this._id=0}ensureReady(){return this._ensureReadyPromise?this._ensureReadyPromise:(this._ensureReadyPromise=new Promise((t,n)=>{this._worker.addEventListener("message",({data:r})=>{r.success?t():n()},{once:!0}),this._worker.addEventListener("error",r=>{n(r)},{once:!0})}),this._ensureReadyPromise)}destroy(){_u("[Replay] Destroying compression worker"),this._worker.terminate()}postMessage(t,n){const r=this._getAndIncrementId();return new Promise((i,a)=>{const o=({data:s})=>{const l=s;if(l.method===t&&l.id===r){if(this._worker.removeEventListener("message",o),!l.success){yo&&en.error("[Replay]",l.response),a(new Error("Error in compression worker"));return}i(l.response)}};this._worker.addEventListener("message",o),this._worker.postMessage({id:r,method:t,arg:n})})}_getAndIncrementId(){return this._id++}}class oAt{constructor(t){this._worker=new aAt(t),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){const n=kue(t.timestamp);(!this._earliestTimestamp||n<this._earliestTimestamp)&&(this._earliestTimestamp=n);const r=JSON.stringify(t);return this._totalSize+=r.length,this._totalSize>Aue?Promise.reject(new Mue):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,t=>{yo&&en.warn('[Replay] Sending "clear" message to worker failed',t)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}async _finishRequest(){const t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,t}}class sAt{constructor(t){this._fallback=new $Fe,this._compression=new oAt(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(t){this._used.hasCheckout=t}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch{_u("[Replay] Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t,hasCheckout:n}=this._fallback,r=[];for(const i of t)r.push(this._compression.addEvent(i));this._compression.hasCheckout=n,this._used=this._compression;try{await Promise.all(r)}catch(i){yo&&en.warn("[Replay] Failed to add events when switching buffers.",i)}}}function lAt({useCompression:e,workerUrl:t}){if(e&&window.Worker){const n=cAt(t);if(n)return n}return _u("[Replay] Using simple buffer"),new $Fe}function cAt(e){try{const t=e||uAt();if(!t)return;_u(`[Replay] Using compression worker${e?` from ${e}`:""}`);const n=new Worker(t);return new sAt(n)}catch{_u("[Replay] Failed to create compression worker")}}function uAt(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?iAt():""}function Due(){try{return"sessionStorage"in wo&&!!wo.sessionStorage}catch{return!1}}function dAt(e){fAt(),e.session=void 0}function fAt(){if(Due())try{wo.sessionStorage.removeItem(Tue)}catch{}}function FFe(e){return e===void 0?!1:Math.random()<e}function BFe(e){const t=Date.now(),n=e.id||Rs(),r=e.started||t,i=e.lastActivity||t,a=e.segmentId||0,o=e.sampled,s=e.previousSessionId;return{id:n,started:r,lastActivity:i,segmentId:a,sampled:o,previousSessionId:s}}function $ue(e){if(Due())try{wo.sessionStorage.setItem(Tue,JSON.stringify(e))}catch{}}function pAt(e,t){return FFe(e)?"session":t?"buffer":!1}function Mbe({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const i=pAt(e,t),a=BFe({sampled:i,previousSessionId:r});return n&&$ue(a),a}function hAt(e){if(!Due())return null;try{const t=wo.sessionStorage.getItem(Tue);if(!t)return null;const n=JSON.parse(t);return _5("[Replay] Loading existing session",e),BFe(n)}catch{return null}}function xre(e,t,n=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=n}function jFe(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return xre(e.started,t,r)||xre(e.lastActivity,n,r)}function zFe(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!jFe(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled==="buffer"&&e.segmentId===0)}function RG({traceInternals:e,sessionIdleExpire:t,maxReplayDuration:n,previousSessionId:r},i){const a=i.stickySession&&hAt(e);return a?zFe(a,{sessionIdleExpire:t,maxReplayDuration:n})?(_5("[Replay] Session in sessionStorage is expired, creating new one..."),Mbe(i,{previousSessionId:a.id})):a:(_5("[Replay] Creating new session",e),Mbe(i,{previousSessionId:r}))}function mAt(e){return e.type===Ni.Custom}function Fue(e,t,n){return HFe(e,t)?(UFe(e,t,n),!0):!1}function gAt(e,t,n){return HFe(e,t)?UFe(e,t,n):Promise.resolve(null)}async function UFe(e,t,n){if(!e.eventBuffer)return null;try{n&&e.recordingMode==="buffer"&&e.eventBuffer.clear(),n&&(e.eventBuffer.hasCheckout=!0);const r=e.getOptions(),i=vAt(t,r.beforeAddRecordingEvent);return i?await e.eventBuffer.addEvent(i):void 0}catch(r){const i=r&&r instanceof Mue?"addEventSizeExceeded":"addEvent";yo&&en.error(r),await e.stop({reason:i});const a=Ha();a&&a.recordDroppedEvent("internal_sdk_error","replay")}}function HFe(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=kue(t.timestamp);return n+e.timeouts.sessionIdlePause<Date.now()?!1:n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(_u(`[Replay] Skipping event with timestamp ${n} because it is after maxReplayDuration`,e.getOptions()._experiments.traceInternals),!1):!0}function vAt(e,t){try{if(typeof t=="function"&&mAt(e))return t(e)}catch(n){return yo&&en.error("[Replay] An error occured in the `beforeAddRecordingEvent` callback, skipping the event...",n),null}return e}function Bue(e){return!e.type}function Tre(e){return e.type==="transaction"}function yAt(e){return e.type==="replay_event"}function Dbe(e){return e.type==="feedback"}function VFe(e){const t=SAt();return(n,r)=>{if(!e.isEnabled()||!Bue(n)&&!Tre(n))return;const i=r&&r.statusCode;if(!(t&&(!i||i<200||i>=300))){if(Tre(n)){bAt(e,n);return}_At(e,n)}}}function bAt(e,t){const n=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}function _At(e,t){const n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),e.recordingMode!=="buffer"||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:r}=e.getOptions();typeof r=="function"&&!r(t)||setTimeout(()=>{e.sendBufferedReplayOrFlush()})}function SAt(){const e=Ha();if(!e)return!1;const t=e.getTransport();return t&&t.send.__sentry__baseTransport__||!1}function EAt(e){return t=>{!e.isEnabled()||!Bue(t)||CAt(e,t)}}function CAt(e,t){const n=t.exception&&t.exception.values&&t.exception.values[0].value;if(typeof n=="string"&&(n.match(/reactjs\.org\/docs\/error-decoder\.html\?invariant=(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))){const r=Lg({category:"replay.hydrate-error"});pO(e,r)}}function wAt(e,t){return e.type||!e.exception||!e.exception.values||!e.exception.values.length?!1:!!(t.originalException&&t.originalException.__rrweb__)}function xAt(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:Ni.Custom,timestamp:t.timestamp*1e3,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1):!0)}function TAt(e,t){return e.recordingMode!=="buffer"||t.message===Iue||!t.exception||t.type?!1:FFe(e.getOptions().errorSampleRate)}function IAt(e,t=!1){const n=t?VFe(e):void 0;return Object.assign((r,i)=>e.isEnabled()?yAt(r)?(delete r.breadcrumbs,r):!Bue(r)&&!Tre(r)&&!Dbe(r)||!e.checkAndHandleExpiredSession()?r:Dbe(r)?(e.flush(),r.contexts.feedback.replay_id=e.getSessionId(),xAt(e,r),r):wAt(r,i)&&!e.getOptions()._experiments.captureExceptions?(yo&&en.log("[Replay] Ignoring error from rrweb internals",r),null):((TAt(e,r)||e.recordingMode==="session")&&(r.tags={...r.tags,replayId:e.getSessionId()}),n&&n(r,{statusCode:200}),r):r,{id:"Replay"})}function Vj(e,t){return t.map(({type:n,start:r,end:i,name:a,data:o})=>{const s=e.throttledAddEvent({type:Ni.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:a,startTimestamp:r,endTimestamp:i,data:o}}});return typeof s=="string"?Promise.resolve(null):s})}function AAt(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}function RAt(e){return t=>{if(!e.isEnabled())return;const n=AAt(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(Vj(e,[n]),!1)))}}function NAt(e,t){return yo&&e.getOptions()._experiments.traceInternals?!1:T5t(t,Ha())}function Gj(e,t){e.isEnabled()&&t!==null&&(NAt(e,t.name)||e.addUpdate(()=>(Vj(e,[t]),!0)))}function OAt(e){const{startTimestamp:t,endTimestamp:n,fetchData:r,response:i}=e;if(!n)return null;const{method:a,url:o}=r;return{type:"resource.fetch",start:t/1e3,end:n/1e3,name:o,data:{method:a,statusCode:i?i.status:void 0}}}function LAt(e){return t=>{if(!e.isEnabled())return;const n=OAt(t);Gj(e,n)}}function PAt(e){const{startTimestamp:t,endTimestamp:n,xhr:r}=e,i=r[ub];if(!t||!n||!i)return null;const{method:a,url:o,status_code:s}=i;return o===void 0?null:{type:"resource.xhr",name:o,start:t/1e3,end:n/1e3,data:{method:a,statusCode:s}}}function kAt(e){return t=>{if(!e.isEnabled())return;const n=PAt(t);Gj(e,n)}}function qj(e,t){if(e)try{if(typeof e=="string")return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=YFe(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function GFe(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function qFe(e){try{if(typeof e=="string")return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[YFe(e)];if(!e)return[void 0]}catch{return yo&&en.warn("[Replay] Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return yo&&en.info("[Replay] Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function O$(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function WFe(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:i,method:a,statusCode:o,request:s,response:l}=t;return{type:e,start:n/1e3,end:r/1e3,name:i,data:Tu({method:a,statusCode:o,request:s,response:l})}}function wN(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function kb(e,t,n){if(!t&&Object.keys(e).length===0)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:i,warnings:a}=MAt(n);return r.body=i,a&&a.length>0&&(r._meta={warnings:a}),r}function Ire(e,t){return Object.keys(e).reduce((n,r)=>{const i=r.toLowerCase();return t.includes(i)&&e[r]&&(n[i]=e[r]),n},{})}function YFe(e){return new URLSearchParams(e).toString()}function MAt(e){if(!e||typeof e!="string")return{body:e};const t=e.length>_be,n=DAt(e);if(t){const r=e.slice(0,_be);return n?{body:r,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${r}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function DAt(e){const t=e[0],n=e[e.length-1];return t==="["&&n==="]"||t==="{"&&n==="}"}function L$(e,t){const n=$At(e);return nT(n,t)}function $At(e,t=wo.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(wo.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}async function FAt(e,t,n){try{const r=await jAt(e,t,n),i=WFe("resource.fetch",r);Gj(n.replay,i)}catch(r){yo&&en.error("[Replay] Failed to capture fetch breadcrumb",r)}}function BAt(e,t,n){const{input:r,response:i}=t,a=r?KFe(r):void 0,o=qj(a,n.textEncoder),s=i?GFe(i.headers.get("content-length")):void 0;o!==void 0&&(e.data.request_body_size=o),s!==void 0&&(e.data.response_body_size=s)}async function jAt(e,t,n){const r=Date.now(),{startTimestamp:i=r,endTimestamp:a=r}=t,{url:o,method:s,status_code:l=0,request_body_size:c,response_body_size:u}=e.data,d=L$(o,n.networkDetailAllowUrls)&&!L$(o,n.networkDetailDenyUrls),f=d?zAt(n,t.input,c):wN(c),p=await UAt(d,n,t.response,u);return{startTimestamp:i,endTimestamp:a,url:o,method:s,statusCode:l,request:f,response:p}}function zAt({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const i=n?GAt(n,t):{};if(!e)return kb(i,r,void 0);const a=KFe(n),[o,s]=qFe(a),l=kb(i,r,o);return s?O$(l,s):l}async function UAt(e,{networkCaptureBodies:t,textEncoder:n,networkResponseHeaders:r},i,a){if(!e&&a!==void 0)return wN(a);const o=i?XFe(i.headers,r):{};if(!i||!t&&a!==void 0)return kb(o,a,void 0);const[s,l]=await VAt(i),c=HAt(s,{networkCaptureBodies:t,textEncoder:n,responseBodySize:a,captureDetails:e,headers:o});return l?O$(c,l):c}function HAt(e,{networkCaptureBodies:t,textEncoder:n,responseBodySize:r,captureDetails:i,headers:a}){try{const o=e&&e.length&&r===void 0?qj(e,n):r;return i?t?kb(a,o,e):kb(a,o,void 0):wN(o)}catch(o){return yo&&en.warn("[Replay] Failed to serialize response body",o),kb(a,r,void 0)}}async function VAt(e){const t=qAt(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await WAt(t)]}catch(n){return yo&&en.warn("[Replay] Failed to get text body from response",n),[void 0,"BODY_PARSE_ERROR"]}}function KFe(e=[]){if(!(e.length!==2||typeof e[1]!="object"))return e[1].body}function XFe(e,t){const n={};return t.forEach(r=>{e.get(r)&&(n[r]=e.get(r))}),n}function GAt(e,t){return e.length===1&&typeof e[0]!="string"?$be(e[0],t):e.length===2?$be(e[1],t):{}}function $be(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?XFe(n,t):Array.isArray(n)?{}:Ire(n,t):{}}function qAt(e){try{return e.clone()}catch(t){yo&&en.warn("[Replay] Failed to clone response body",t)}}function WAt(e){return new Promise((t,n)=>{const r=setTimeout(()=>n(new Error("Timeout while trying to read response body")),500);YAt(e).then(i=>t(i),i=>n(i)).finally(()=>clearTimeout(r))})}async function YAt(e){return await e.text()}async function KAt(e,t,n){try{const r=ZAt(e,t,n),i=WFe("resource.xhr",r);Gj(n.replay,i)}catch(r){yo&&en.error("[Replay] Failed to capture xhr breadcrumb",r)}}function XAt(e,t,n){const{xhr:r,input:i}=t;if(!r)return;const a=qj(i,n.textEncoder),o=r.getResponseHeader("content-length")?GFe(r.getResponseHeader("content-length")):tRt(r.response,r.responseType,n.textEncoder);a!==void 0&&(e.data.request_body_size=a),o!==void 0&&(e.data.response_body_size=o)}function ZAt(e,t,n){const r=Date.now(),{startTimestamp:i=r,endTimestamp:a=r,input:o,xhr:s}=t,{url:l,method:c,status_code:u=0,request_body_size:d,response_body_size:f}=e.data;if(!l)return null;if(!s||!L$(l,n.networkDetailAllowUrls)||L$(l,n.networkDetailDenyUrls)){const w=wN(d),x=wN(f);return{startTimestamp:i,endTimestamp:a,url:l,method:c,statusCode:u,request:w,response:x}}const p=s[ub],h=p?Ire(p.request_headers,n.networkRequestHeaders):{},m=Ire(QAt(s),n.networkResponseHeaders),[g,v]=n.networkCaptureBodies?qFe(o):[void 0],[y,_]=n.networkCaptureBodies?JAt(s):[void 0],S=kb(h,d,g),C=kb(m,f,y);return{startTimestamp:i,endTimestamp:a,url:l,method:c,statusCode:u,request:v?O$(S,v):S,response:_?O$(C,_):C}}function QAt(e){const t=e.getAllResponseHeaders();return t?t.split(`\r
`).reduce((n,r)=>{const[i,a]=r.split(": ");return n[i.toLowerCase()]=a,n},{}):{}}function JAt(e){const t=[];try{return[e.responseText]}catch(n){t.push(n)}try{return eRt(e.response,e.responseType)}catch(n){t.push(n)}return yo&&en.warn("[Replay] Failed to get xhr response body",...t),[void 0]}function eRt(e,t){try{if(typeof e=="string")return[e];if(e instanceof Document)return[e.body.outerHTML];if(t==="json"&&e&&typeof e=="object")return[JSON.stringify(e)];if(!e)return[void 0]}catch{return yo&&en.warn("[Replay] Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return yo&&en.info("[Replay] Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function tRt(e,t,n){try{const r=t==="json"&&e&&typeof e=="object"?JSON.stringify(e):e;return qj(r,n)}catch{return}}function nRt(e){const t=Ha();try{const n=new TextEncoder,{networkDetailAllowUrls:r,networkDetailDenyUrls:i,networkCaptureBodies:a,networkRequestHeaders:o,networkResponseHeaders:s}=e.getOptions(),l={replay:e,textEncoder:n,networkDetailAllowUrls:r,networkDetailDenyUrls:i,networkCaptureBodies:a,networkRequestHeaders:o,networkResponseHeaders:s};t&&t.on?t.on("beforeAddBreadcrumb",(c,u)=>rRt(l,c,u)):(uue(LAt(e)),due(kAt(e)))}catch{}}function rRt(e,t,n){if(t.data)try{iRt(t)&&oRt(n)&&(XAt(t,n,e),KAt(t,n,e)),aRt(t)&&sRt(n)&&(BAt(t,n,e),FAt(t,n,e))}catch{yo&&en.warn("Error when enriching network breadcrumb")}}function iRt(e){return e.category==="xhr"}function aRt(e){return e.category==="fetch"}function oRt(e){return e&&e.xhr}function sRt(e){return e&&e.response}let Fbe=null;function lRt(e){return!!e.category}const cRt=e=>t=>{if(!e.isEnabled())return;const n=uRt(t);n&&pO(e,n)};function uRt(e){const t=e.getLastBreadcrumb&&e.getLastBreadcrumb();return Fbe===t||!t||(Fbe=t,!lRt(t)||["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui."))?null:t.category==="console"?dRt(t):Lg(t)}function dRt(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||t.length===0)return Lg(e);let n=!1;const r=t.map(i=>{if(!i)return i;if(typeof i=="string")return i.length>qL?(n=!0,`${i.slice(0,qL)}…`):i;if(typeof i=="object")try{const a=wg(i,7);return JSON.stringify(a).length>qL?(n=!0,`${JSON.stringify(a,null,2).slice(0,qL)}…`):a}catch{}return i});return Lg({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function fRt(e){const t=Df(),n=Ha();t.addScopeListener(cRt(e)),YDe(HIt(e)),Pj(RAt(e)),nRt(e);const r=IAt(e,!Bbe(n));n&&n.addEventProcessor?n.addEventProcessor(r):b5t(r),Bbe(n)&&(n.on("beforeSendEvent",EAt(e)),n.on("afterSendEvent",VFe(e)),n.on("createDsc",i=>{const a=e.getSessionId();a&&e.isEnabled()&&e.recordingMode==="session"&&e.checkAndHandleExpiredSession()&&(i.replay_id=a)}),n.on("startTransaction",i=>{e.lastTransaction=i}),n.on("finishTransaction",i=>{e.lastTransaction=i}),n.on("beforeSendFeedback",(i,a)=>{const o=e.getSessionId();a&&a.includeReplay&&e.isEnabled()&&o&&i.contexts&&i.contexts.feedback&&(i.contexts.feedback.replay_id=o)}))}function Bbe(e){return!!(e&&e.on)}async function pRt(e){try{return Promise.all(Vj(e,[hRt(wo.performance.memory)]))}catch{return[]}}function hRt(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function mRt(e,t,n){let r,i,a;const o=n&&n.maxWait?Math.max(n.maxWait,t):0;function s(){return l(),r=e(),r}function l(){i!==void 0&&clearTimeout(i),a!==void 0&&clearTimeout(a),i=a=void 0}function c(){return i!==void 0||a!==void 0?s():r}function u(){return i&&clearTimeout(i),i=setTimeout(s,t),o&&a===void 0&&(a=setTimeout(s,o)),r}return u.cancel=l,u.flush=c,u}function gRt(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession()){yo&&en.warn("[Replay] Received replay event after session expired.");return}const i=r||!t;t=!0,e.clickDetector&&FIt(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode==="buffer"&&i&&e.setInitialState(),!Fue(e,n,i))return!0;if(!i)return!1;if(yRt(e,i),e.session&&e.session.previousSessionId)return!0;if(e.recordingMode==="buffer"&&e.session&&e.eventBuffer){const a=e.eventBuffer.getEarliestTimestamp();a&&(_u(`[Replay] Updating session start time to earliest event in buffer to ${new Date(a)}`,e.getOptions()._experiments.traceInternals),e.session.started=a,e.getOptions().stickySession&&$ue(e.session))}return e.recordingMode==="session"&&e.flush(),!0})}}function vRt(e){const t=e.getOptions();return{type:Ni.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:e.eventBuffer?e.eventBuffer.type==="worker":!1,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}function yRt(e,t){!t||!e.session||e.session.segmentId!==0||Fue(e,vRt(e),!1)}function bRt(e,t,n,r){return S_(n$e(e,hue(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function _Rt({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)}
`;if(typeof e=="string")n=`${r}${e}`;else{const a=new TextEncoder().encode(r);n=new Uint8Array(a.length+e.length),n.set(a),n.set(e,a.length)}return n}async function SRt({client:e,scope:t,replayId:n,event:r}){const i=typeof e._integrations=="object"&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0,a={event_id:n,integrations:i};e.emit&&e.emit("preprocessEvent",r,a);const o=await l$e(e.getOptions(),r,a,t,e,E_());if(!o)return null;o.platform=o.platform||"javascript";const s=e.getSdkMetadata&&e.getSdkMetadata(),{name:l,version:c}=s&&s.sdk||{};return o.sdk={...o.sdk,name:l||"sentry.javascript.unknown",version:c||"0.0.0"},o}async function ERt({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:i,session:a}){const o=_Rt({recordingData:e,headers:{segment_id:n}}),{urls:s,errorIds:l,traceIds:c,initialTimestamp:u}=r,d=Ha(),f=Df(),p=d&&d.getTransport(),h=d&&d.getDsn();if(!d||!p||!h||!a.sampled)return;const m={type:o4t,replay_start_timestamp:u/1e3,timestamp:i/1e3,error_ids:l,trace_ids:c,urls:s,replay_id:t,segment_id:n,replay_type:a.sampled},g=await SRt({scope:f,client:d,replayId:t,event:m});if(!g){d.recordDroppedEvent("event_processor","replay",m),_u("An event processor returned `null`, will not send event.");return}delete g.sdkProcessingMetadata;const v=bRt(g,o,h,d.getOptions().tunnel);let y;try{y=await p.send(v)}catch(S){const C=new Error(Iue);try{C.cause=S}catch{}throw C}if(!y)return y;if(typeof y.statusCode=="number"&&(y.statusCode<200||y.statusCode>=300))throw new ZFe(y.statusCode);const _=i$e({},y);if(r$e(_,"replay"))throw new QFe(_);return y}class ZFe extends Error{constructor(t){super(`Transport returned status code ${t}`)}}class QFe extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}async function JFe(e,t={count:0,interval:f4t}){const{recordingData:n,options:r}=e;if(n.length)try{return await ERt(e),!0}catch(i){if(i instanceof ZFe||i instanceof QFe)throw i;if(Nxt("Replays",{_retryCount:t.count}),yo&&r._experiments&&r._experiments.captureExceptions&&$j(i),t.count>=p4t){const a=new Error(`${Iue} - max retries exceeded`);try{a.cause=i}catch{}throw a}return t.interval*=++t.count,new Promise((a,o)=>{setTimeout(async()=>{try{await JFe(e,t),a(!0)}catch(s){o(s)}},t.interval)})}}const eBe="__THROTTLED",CRt="__SKIPPED";function wRt(e,t,n){const r=new Map,i=s=>{const l=s-n;r.forEach((c,u)=>{u<l&&r.delete(u)})},a=()=>[...r.values()].reduce((s,l)=>s+l,0);let o=!1;return(...s)=>{const l=Math.floor(Date.now()/1e3);if(i(l),a()>=t){const u=o;return o=!0,u?CRt:eBe}o=!1;const c=r.get(l)||0;return r.set(l,c+1),e(...s)}}class Yy{constructor({options:t,recordingOptions:n}){Yy.prototype.__init.call(this),Yy.prototype.__init2.call(this),Yy.prototype.__init3.call(this),Yy.prototype.__init4.call(this),Yy.prototype.__init5.call(this),Yy.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:s4t,sessionIdleExpire:l4t},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=n,this._options=t,this._debouncedFlush=mRt(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=wRt((o,s)=>gAt(this,o,s),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:i}=this.getOptions(),a=r?{threshold:Math.min(h4t,r),timeout:r,scrollTimeout:m4t,ignoreSelector:i?i.join(","):""}:void 0;a&&(this.clickDetector=new kIt(this,a))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}initializeSampling(t){const{errorSampleRate:n,sessionSampleRate:r}=this._options;if(!(n<=0&&r<=0)){if(this._initializeSessionForSampling(t),!this.session){this._handleException(new Error("Unable to initialize and create session"));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled==="buffer"&&this.session.segmentId===0?"buffer":"session",_5(`[Replay] Starting replay in ${this.recordingMode} mode`,this._options._experiments.traceInternals),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session")throw new Error("Replay recording is already in progress");if(this._isEnabled&&this.recordingMode==="buffer")throw new Error("Replay buffering is in progress, call `flush()` to save the replay");_5("[Replay] Starting replay in session mode",this._options._experiments.traceInternals),this._updateUserActivity();const t=RG({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this._initializeRecording()}startBuffering(){if(this._isEnabled)throw new Error("Replay recording is already in progress");_5("[Replay] Starting replay in buffer mode",this._options._experiments.traceInternals);const t=RG({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const t=this._canvas;this._stopRecording=Pb({...this._recordingOptions,...this.recordingMode==="buffer"&&{checkoutEveryNms:d4t},emit:gRt(this),onMutation:this._onMutationHandler,...t?{recordCanvas:t.recordCanvas,getCanvasManager:t.getCanvasManager,sampling:t.sampling,dataURLOptions:t.dataURLOptions}:{}})}catch(t){this._handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this._handleException(t),!1}}async stop({forceFlush:t=!1,reason:n}={}){if(this._isEnabled){this._isEnabled=!1;try{_u(`[Replay] Stopping Replay${n?` triggered by ${n}`:""}`,this._options._experiments.traceInternals),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,dAt(this)}catch(r){this._handleException(r)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),_u("[Replay] Pausing replay",this._options._experiments.traceInternals))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),_u("[Replay] Resuming replay",this._options._experiments.traceInternals))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const n=Date.now();_u("[Replay] Converting buffer to session",this._options._experiments.traceInternals),await this.flushImmediate();const r=this.stopRecording();!t||!r||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this._updateUserActivity(n),this._updateSessionActivity(n),this._maybeSaveSession()),this.startRecording())}addUpdate(t){const n=t();this.recordingMode!=="buffer"&&n!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode==="buffer"?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(this._lastActivity&&xre(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const t=`${wo.location.pathname}${wo.location.hash}${wo.location.search}`,n=`${wo.location.origin}${t}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=n,this._context.initialTimestamp=Date.now(),this._context.urls.push(n)}throttledAddEvent(t,n){const r=this._throttledAddEvent(t,n);if(r===eBe){const i=Lg({category:"replay.throttled"});this.addUpdate(()=>!Fue(this,{type:AIt,timestamp:i.timestamp||0,data:{tag:"breadcrumb",payload:i,metric:!0}}))}return r}getCurrentRoute(){const t=this.lastTransaction||Df().getTransaction(),r=(t&&Js(t).data||{})[Hg];if(!(!t||!r||!["route","custom"].includes(r)))return Js(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=lAt({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_handleException(t){yo&&en.error("[Replay]",t),yo&&this._options._experiments&&this._options._experiments.captureExceptions&&$j(t)}_initializeSessionForSampling(t){const n=this._options.errorSampleRate>0,r=RG({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:n});this.session=r}_checkSession(){if(!this.session)return!1;const t=this.session;return zFe(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(t),!1):!0}async _refreshSession(t){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(t.id))}_addListeners(){try{wo.document.addEventListener("visibilitychange",this._handleVisibilityChange),wo.addEventListener("blur",this._handleWindowBlur),wo.addEventListener("focus",this._handleWindowFocus),wo.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(fRt(this),this._hasInitializedCoreListeners=!0)}catch(t){this._handleException(t)}this._performanceCleanupCallback=nAt(this)}_removeListeners(){try{wo.document.removeEventListener("visibilitychange",this._handleVisibilityChange),wo.removeEventListener("blur",this._handleWindowBlur),wo.removeEventListener("focus",this._handleWindowFocus),wo.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this._handleException(t)}}__init(){this._handleVisibilityChange=()=>{wo.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const t=Lg({category:"ui.blur"});this._doChangeToBackgroundTasks(t)}}__init3(){this._handleWindowFocus=()=>{const t=Lg({category:"ui.focus"});this._doChangeToForegroundTasks(t)}}__init4(){this._handleKeyboardEvent=t=>{WIt(this,t)}}_doChangeToBackgroundTasks(t){!this.session||jFe(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(t&&this._createCustomBreadcrumb(t),this.conditionalFlush())}_doChangeToForegroundTasks(t){if(!this.session)return;if(!this.checkAndHandleExpiredSession()){_u("[Replay] Document has become active, but session has expired");return}t&&this._createCustomBreadcrumb(t)}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate(()=>{this.throttledAddEvent({type:Ni.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){const t=XIt(this.performanceEntries).concat(this.replayPerformanceEntries);return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all(Vj(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:n}=this;if(!t||!n||t.segmentId)return;const r=n.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}_popEventContext(){const t={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),t}async _runFlush(){const t=this.getSessionId();if(!this.session||!this.eventBuffer||!t){yo&&en.error("[Replay] No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!(!this.eventBuffer||!this.eventBuffer.hasEvents)&&(await pRt(this),!!this.eventBuffer&&t===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const n=Date.now();if(n-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const r=this._popEventContext(),i=this.session.segmentId++;this._maybeSaveSession();const a=await this.eventBuffer.finish();await JFe({replayId:t,recordingData:a,segmentId:i,eventContext:r,session:this.session,options:this.getOptions(),timestamp:n})}catch(n){this._handleException(n),this.stop({reason:"sendReplay"});const r=Ha();r&&r.recordDroppedEvent("send_error","replay")}}__init5(){this._flush=async({force:t=!1}={})=>{if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){yo&&en.error("[Replay] Attempting to finish replay event after session expired.");return}if(!this.session)return;const n=this.session.started,i=Date.now()-n;this._debouncedFlush.cancel();const a=i<this._options.minReplayDuration,o=i>this._options.maxReplayDuration+5e3;if(a||o){_u(`[Replay] Session duration (${Math.floor(i/1e3)}s) is too ${a?"short":"long"}, not sending replay.`,this._options._experiments.traceInternals),a&&this._debouncedFlush();return}const s=this.eventBuffer;if(s&&this.session.segmentId===0&&!s.hasCheckout&&_u("[Replay] Flushing initial segment without checkout.",this._options._experiments.traceInternals),!this._flushLock){this._flushLock=this._runFlush(),await this._flushLock,this._flushLock=void 0;return}try{await this._flushLock}catch(l){yo&&en.error(l)}finally{this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&$ue(this.session)}__init6(){this._onMutationHandler=t=>{const n=t.length,r=this._options.mutationLimit,i=this._options.mutationBreadcrumbLimit,a=r&&n>r;if(n>i||a){const o=Lg({category:"replay.mutations",data:{count:n,limit:a}});this._createCustomBreadcrumb(o)}return a?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}}function z4(e,t,n,r){const i=typeof r=="string"?r.split(","):[],a=[...e,...i,...t];return typeof n<"u"&&(typeof n=="string"&&a.push(`.${n}`),RE(()=>{console.warn("[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.")})),a.join(",")}function xRt({mask:e,unmask:t,block:n,unblock:r,ignore:i,blockClass:a,blockSelector:o,maskTextClass:s,maskTextSelector:l,ignoreClass:c}){const u=['base[href="/"]'],d=z4(e,[".sentry-mask","[data-sentry-mask]"],s,l),f=z4(t,[".sentry-unmask","[data-sentry-unmask]"]),p={maskTextSelector:d,unmaskTextSelector:f,blockSelector:z4(n,[".sentry-block","[data-sentry-block]",...u],a,o),unblockSelector:z4(r,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:z4(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'],c)};return a instanceof RegExp&&(p.blockClass=a),s instanceof RegExp&&(p.maskTextClass=s),p}function TRt({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:i,value:a}){return!r||i.unmaskTextSelector&&e.matches(i.unmaskTextSelector)?a:n.includes(t)||t==="value"&&e.tagName==="INPUT"&&["submit","button"].includes(e.getAttribute("type")||"")?a.replace(/[\S]/g,"*"):a}const jbe='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',IRt=["content-length","content-type","accept"];let zbe=!1;const ARt=e=>new Wj(e);class Wj{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:t=c4t,flushMaxDelay:n=u4t,minReplayDuration:r=g4t,maxReplayDuration:i=Sbe,stickySession:a=!0,useCompression:o=!0,workerUrl:s,_experiments:l={},sessionSampleRate:c,errorSampleRate:u,maskAllText:d=!0,maskAllInputs:f=!0,blockAllMedia:p=!0,mutationBreadcrumbLimit:h=750,mutationLimit:m=1e4,slowClickTimeout:g=7e3,slowClickIgnoreSelectors:v=[],networkDetailAllowUrls:y=[],networkDetailDenyUrls:_=[],networkCaptureBodies:S=!0,networkRequestHeaders:C=[],networkResponseHeaders:w=[],mask:x=[],maskAttributes:T=["title","placeholder"],unmask:A=[],block:I=[],unblock:R=[],ignore:N=[],maskFn:P,beforeAddRecordingEvent:L,beforeErrorSampling:$,blockClass:D,blockSelector:z,maskInputOptions:U,maskTextClass:H,maskTextSelector:M,ignoreClass:B}={}){this.name=Wj.id;const k=xRt({mask:x,unmask:A,block:I,unblock:R,ignore:N,blockClass:D,blockSelector:z,maskTextClass:H,maskTextSelector:M,ignoreClass:B});if(this._recordingOptions={maskAllInputs:f,maskAllText:d,maskInputOptions:{...U||{},password:!0},maskTextFn:P,maskInputFn:P,maskAttributeFn:(F,G,q)=>TRt({maskAttributes:T,maskAllText:d,privacyOptions:k,key:F,value:G,el:q}),...k,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:F=>{try{F.__rrweb__=!0}catch{}}},this._initialOptions={flushMinDelay:t,flushMaxDelay:n,minReplayDuration:Math.min(r,v4t),maxReplayDuration:Math.min(i,Sbe),stickySession:a,sessionSampleRate:c,errorSampleRate:u,useCompression:o,workerUrl:s,blockAllMedia:p,maskAllInputs:f,maskAllText:d,mutationBreadcrumbLimit:h,mutationLimit:m,slowClickTimeout:g,slowClickIgnoreSelectors:v,networkDetailAllowUrls:y,networkDetailDenyUrls:_,networkCaptureBodies:S,networkRequestHeaders:Ube(C),networkResponseHeaders:Ube(w),beforeAddRecordingEvent:L,beforeErrorSampling:$,_experiments:l},typeof c=="number"&&(console.warn(`[Replay] You are passing \`sessionSampleRate\` to the Replay integration.
This option is deprecated and will be removed soon.
Instead, configure \`replaysSessionSampleRate\` directly in the SDK init options, e.g.:
Sentry.init({ replaysSessionSampleRate: ${c} })`),this._initialOptions.sessionSampleRate=c),typeof u=="number"&&(console.warn(`[Replay] You are passing \`errorSampleRate\` to the Replay integration.
This option is deprecated and will be removed soon.
Instead, configure \`replaysOnErrorSampleRate\` directly in the SDK init options, e.g.:
Sentry.init({ replaysOnErrorSampleRate: ${u} })`),this._initialOptions.errorSampleRate=u),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${jbe}`:jbe),this._isInitialized&&zye())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return zbe}set _isInitialized(t){zbe=t}setupOnce(){zye()&&(this._setup(),setTimeout(()=>this._initialize()))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode==="session"}):Promise.resolve()}flush(t){return!this._replay||!this._replay.isEnabled()?Promise.resolve():this._replay.sendBufferedReplayOrFlush(t)}getReplayId(){if(!(!this._replay||!this._replay.isEnabled()))return this._replay.getSessionId()}_initialize(){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(),this._replay.initializeSampling())}_setup(){const t=RRt(this._initialOptions);this._replay=new Yy({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(){try{const n=Ha().getIntegrationByName("ReplayCanvas");if(!n)return;this._replay._canvas=n.getOptions()}catch{}}}Wj.__initStatic();function RRt(e){const t=Ha(),n=t&&t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...Tu(e)};return n?(e.sessionSampleRate==null&&e.errorSampleRate==null&&n.replaysSessionSampleRate==null&&n.replaysOnErrorSampleRate==null&&RE(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),typeof n.replaysSessionSampleRate=="number"&&(r.sessionSampleRate=n.replaysSessionSampleRate),typeof n.replaysOnErrorSampleRate=="number"&&(r.errorSampleRate=n.replaysOnErrorSampleRate),r):(RE(()=>{console.warn("SDK client is not available.")}),r)}function Ube(e){return[...IRt,...e.map(t=>t.toLowerCase())]}function NRt(e){const t={...e};N$e(t,"react"),i4t(t)}const ORt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function LRt(e){const t=e.match(/^([^.]+)/);return t!==null&&parseInt(t[0])>=17}const Hbe={componentStack:null,error:null,eventId:null};function PRt(e,t){const n=new WeakMap;function r(i,a){if(!n.has(i)){if(i.cause)return n.set(i,!0),r(i.cause,a);i.cause=a}}r(e,t)}let kRt=class tBe extends b.Component{constructor(t){super(t),tBe.prototype.__init.call(this),this.state=Hbe,this._openFallbackReportDialog=!0;const n=Ha();n&&n.on&&t.showDialog&&(this._openFallbackReportDialog=!1,n.on("afterSendEvent",r=>{!r.type&&r.event_id===this._lastEventId&&bbe({...t.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(t,{componentStack:n}){const{beforeCapture:r,onError:i,showDialog:a,dialogOptions:o}=this.props;u$e(s=>{if(LRt(b.version)&&iue(t)){const c=new Error(t.message);c.name=`React ErrorBoundary ${t.name}`,c.stack=n,PRt(t,c)}r&&r(s,t,n);const l=$j(t,{captureContext:{contexts:{react:{componentStack:n}}},mechanism:{handled:!!this.props.fallback}});i&&i(t,n,l),a&&(this._lastEventId=l,this._openFallbackReportDialog&&bbe({...o,eventId:l})),this.setState({error:t,componentStack:n,eventId:l})})}componentDidMount(){const{onMount:t}=this.props;t&&t()}componentWillUnmount(){const{error:t,componentStack:n,eventId:r}=this.state,{onUnmount:i}=this.props;i&&i(t,n,r)}__init(){this.resetErrorBoundary=()=>{const{onReset:t}=this.props,{error:n,componentStack:r,eventId:i}=this.state;t&&t(n,r,i),this.setState(Hbe)}}render(){const{fallback:t,children:n}=this.props,r=this.state;if(r.error){let i;return typeof t=="function"?i=t({error:r.error,componentStack:r.componentStack,resetError:this.resetErrorBoundary,eventId:r.eventId}):i=t,b.isValidElement(i)?i:(t&&ORt&&en.warn("fallback did not produce a valid ReactElement"),null)}return typeof n=="function"?n():n}};function MRt(e){const t=q$e({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{useEffect:n,useLocation:r,useNavigationType:i,createRoutesFromChildren:a,matchRoutes:o,stripBasename:s,instrumentPageLoad:l=!0,instrumentNavigation:c=!0}=e;return{...t,afterAllSetup(u){t.afterAllSetup(u);const d=Yi&&Yi.location&&Yi.location.pathname;l&&d&&W$e(u,{name:d,attributes:{[Hg]:"url",[uA]:"pageload",[DS]:"auto.pageload.react.reactrouter_v6"}})}}}function _l(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return se.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(_l(r)):tE.isFragment(r)&&r.props?n=n.concat(_l(r.props.children,t)):n.push(r))}),n}function xN(e){return e instanceof HTMLElement||e instanceof SVGElement}function nBe(e){return e&&cn(e)==="object"&&xN(e.nativeElement)?e.nativeElement:xN(e)?e:null}function aR(e){var t=nBe(e);if(t)return t;if(e instanceof se.Component){var n;return(n=fN.findDOMNode)===null||n===void 0?void 0:n.call(fN,e)}return null}var Are=b.createContext(null);function DRt(e){var t=e.children,n=e.onBatchResize,r=b.useRef(0),i=b.useRef([]),a=b.useContext(Are),o=b.useCallback(function(s,l,c){r.current+=1;var u=r.current;i.current.push({size:s,element:l,data:c}),Promise.resolve().then(function(){u===r.current&&(n?.(i.current),i.current=[])}),a?.(s,l,c)},[n,a]);return b.createElement(Are.Provider,{value:o},t)}var rBe=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(i,a){return i[0]===n?(r=a,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),i=this.__entries__[r];return i&&i[1]},t.prototype.set=function(n,r){var i=e(this.__entries__,n);~i?this.__entries__[i][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,i=e(r,n);~i&&r.splice(i,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var i=0,a=this.__entries__;i<a.length;i++){var o=a[i];n.call(r,o[1],o[0])}},t}()}(),Rre=typeof window<"u"&&typeof document<"u"&&window.document===document,P$=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),$Rt=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(P$):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),FRt=2;function BRt(e,t){var n=!1,r=!1,i=0;function a(){n&&(n=!1,e()),r&&s()}function o(){$Rt(a)}function s(){var l=Date.now();if(n){if(l-i<FRt)return;r=!0}else n=!0,r=!1,setTimeout(o,t);i=l}return s}var jRt=20,zRt=["top","right","bottom","left","width","height","size","weight"],URt=typeof MutationObserver<"u",HRt=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=BRt(this.refresh.bind(this),jRt)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!Rre||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),URt?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Rre||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,i=zRt.some(function(a){return!!~r.indexOf(a)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),iBe=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},b3=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||P$},aBe=Yj(0,0,0,0);function k$(e){return parseFloat(e)||0}function Vbe(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,i){var a=e["border-"+i+"-width"];return r+k$(a)},0)}function VRt(e){for(var t=["top","right","bottom","left"],n={},r=0,i=t;r<i.length;r++){var a=i[r],o=e["padding-"+a];n[a]=k$(o)}return n}function GRt(e){var t=e.getBBox();return Yj(0,0,t.width,t.height)}function qRt(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return aBe;var r=b3(e).getComputedStyle(e),i=VRt(r),a=i.left+i.right,o=i.top+i.bottom,s=k$(r.width),l=k$(r.height);if(r.boxSizing==="border-box"&&(Math.round(s+a)!==t&&(s-=Vbe(r,"left","right")+a),Math.round(l+o)!==n&&(l-=Vbe(r,"top","bottom")+o)),!YRt(e)){var c=Math.round(s+a)-t,u=Math.round(l+o)-n;Math.abs(c)!==1&&(s-=c),Math.abs(u)!==1&&(l-=u)}return Yj(i.left,i.top,s,l)}var WRt=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof b3(e).SVGGraphicsElement}:function(e){return e instanceof b3(e).SVGElement&&typeof e.getBBox=="function"}}();function YRt(e){return e===b3(e).document.documentElement}function KRt(e){return Rre?WRt(e)?GRt(e):qRt(e):aBe}function XRt(e){var t=e.x,n=e.y,r=e.width,i=e.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,o=Object.create(a.prototype);return iBe(o,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),o}function Yj(e,t,n,r){return{x:e,y:t,width:n,height:r}}var ZRt=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Yj(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=KRt(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),QRt=function(){function e(t,n){var r=XRt(n);iBe(this,{target:t,contentRect:r})}return e}(),JRt=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new rBe,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof b3(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new ZRt(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof b3(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new QRt(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),oBe=typeof WeakMap<"u"?new WeakMap:new rBe,sBe=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=HRt.getInstance(),r=new JRt(t,n,this);oBe.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){sBe.prototype[e]=function(){var t;return(t=oBe.get(this))[e].apply(t,arguments)}});var eNt=function(){return typeof P$.ResizeObserver<"u"?P$.ResizeObserver:sBe}(),db=new Map;function tNt(e){e.forEach(function(t){var n,r=t.target;(n=db.get(r))===null||n===void 0||n.forEach(function(i){return i(r)})})}var lBe=new eNt(tNt);function nNt(e,t){db.has(e)||(db.set(e,new Set),lBe.observe(e)),db.get(e).add(t)}function rNt(e,t){db.has(e)&&(db.get(e).delete(t),db.get(e).size||(lBe.unobserve(e),db.delete(e)))}function co(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gbe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,qMe(r.key),r)}}function uo(e,t,n){return t&&Gbe(e.prototype,t),n&&Gbe(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function TN(e,t){return TN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},TN(e,t)}function Md(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&&TN(e,t)}function LE(e){return LE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},LE(e)}function Kj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Kj=function(){return!!e})()}function Qt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cBe(e,t){if(t&&(cn(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Qt(e)}function $f(e){var t=Kj();return function(){var n,r=LE(e);if(t){var i=LE(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return cBe(this,n)}}var iNt=function(e){Md(n,e);var t=$f(n);function n(){return co(this,n),t.apply(this,arguments)}return uo(n,[{key:"render",value:function(){return this.props.children}}]),n}(b.Component);function aNt(e,t){var n=e.children,r=e.disabled,i=b.useRef(null),a=b.useRef(null),o=b.useContext(Are),s=typeof n=="function",l=s?n(i):n,c=b.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&b.isValidElement(l)&&sm(l),d=u?l.ref:null,f=hv(d,i),p=function(){var v;return aR(i.current)||(i.current&&cn(i.current)==="object"?aR((v=i.current)===null||v===void 0?void 0:v.nativeElement):null)||aR(a.current)};b.useImperativeHandle(t,function(){return p()});var h=b.useRef(e);h.current=e;var m=b.useCallback(function(g){var v=h.current,y=v.onResize,_=v.data,S=g.getBoundingClientRect(),C=S.width,w=S.height,x=g.offsetWidth,T=g.offsetHeight,A=Math.floor(C),I=Math.floor(w);if(c.current.width!==A||c.current.height!==I||c.current.offsetWidth!==x||c.current.offsetHeight!==T){var R={width:A,height:I,offsetWidth:x,offsetHeight:T};c.current=R;var N=x===Math.round(C)?C:x,P=T===Math.round(w)?w:T,L=we(we({},R),{},{offsetWidth:N,offsetHeight:P});o?.(L,g,_),y&&Promise.resolve().then(function(){y(L,g)})}},[]);return b.useEffect(function(){var g=p();return g&&!r&&nNt(g,m),function(){return rNt(g,m)}},[i.current,r]),b.createElement(iNt,{ref:a},u?b.cloneElement(l,{ref:f}):l)}var oNt=b.forwardRef(aNt),sNt="rc-observer-key";function lNt(e,t){var n=e.children,r=typeof n=="function"?[n]:_l(n);return r.map(function(i,a){var o=i?.key||"".concat(sNt,"-").concat(a);return b.createElement(oNt,Xe({},e,{key:o,ref:a===0?t:void 0}),i)})}var Sc=b.forwardRef(lNt);Sc.Collection=DRt;function Xa(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}function cNt(e){if(Array.isArray(e))return kne(e)}function uBe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function uNt(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Tt(e){return cNt(e)||uBe(e)||Uce(e)||uNt()}var dBe=function(t){return+setTimeout(t,16)},fBe=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(dBe=function(t){return window.requestAnimationFrame(t)},fBe=function(t){return window.cancelAnimationFrame(t)});var qbe=0,jue=new Map;function pBe(e){jue.delete(e)}var Tr=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;qbe+=1;var r=qbe;function i(a){if(a===0)pBe(r),t();else{var o=dBe(function(){i(a-1)});jue.set(r,o)}}return i(n),r};Tr.cancel=function(e){var t=jue.get(e);return pBe(e),fBe(t)};function IN(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function Op(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(a,o){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(a);if(Ra(!l,"Warning: There may be circular references"),l)return!1;if(a===o)return!0;if(n&&s>1)return!1;r.add(a);var c=s+1;if(Array.isArray(a)){if(!Array.isArray(o)||a.length!==o.length)return!1;for(var u=0;u<a.length;u++)if(!i(a[u],o[u],c))return!1;return!0}if(a&&o&&cn(a)==="object"&&cn(o)==="object"){var d=Object.keys(a);return d.length!==Object.keys(o).length?!1:d.every(function(f){return i(a[f],o[f],c)})}return!1}return i(e,t)}var dNt="%";function Nre(e){return e.join(dNt)}var fNt=function(){function e(t){co(this,e),be(this,"instanceId",void 0),be(this,"cache",new Map),this.instanceId=t}return uo(e,[{key:"get",value:function(n){return this.opGet(Nre(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(Nre(n),r)}},{key:"opUpdate",value:function(n,r){var i=this.cache.get(n),a=r(i);a===null?this.cache.delete(n):this.cache.set(n,a)}}]),e}(),_3="data-token-hash",Jh="data-css-hash",fb="__cssinjs_instance__";function pNt(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Jh,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(i){i[fb]=i[fb]||e,i[fb]===e&&document.head.insertBefore(i,n)});var r={};Array.from(document.querySelectorAll("style[".concat(Jh,"]"))).forEach(function(i){var a=i.getAttribute(Jh);if(r[a]){if(i[fb]===e){var o;(o=i.parentNode)===null||o===void 0||o.removeChild(i)}}else r[a]=!0})}return new fNt(e)}var Xj=b.createContext({hashPriority:"low",cache:pNt(),defaultCache:!0});function hNt(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var zue=function(){function e(){co(this,e),be(this,"cache",void 0),be(this,"keys",void 0),be(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return uo(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,i,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o={map:this.cache};return n.forEach(function(s){if(!o)o=void 0;else{var l;o=(l=o)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(s)}}),(r=o)!==null&&r!==void 0&&r.value&&a&&(o.value[1]=this.cacheCallTimes++),(i=o)===null||i===void 0?void 0:i.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var i=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var a=this.keys.reduce(function(c,u){var d=Fe(c,2),f=d[1];return i.internalGet(u)[1]<f?[u,i.internalGet(u)[1]]:c},[this.keys[0],this.cacheCallTimes]),o=Fe(a,1),s=o[0];this.delete(s)}this.keys.push(n)}var l=this.cache;n.forEach(function(c,u){if(u===n.length-1)l.set(c,{value:[r,i.cacheCallTimes++]});else{var d=l.get(c);d?d.map||(d.map=new Map):l.set(c,{map:new Map}),l=l.get(c).map}})}},{key:"deleteByPath",value:function(n,r){var i=n.get(r[0]);if(r.length===1){var a;return i.map?n.set(r[0],{map:i.map}):n.delete(r[0]),(a=i.value)===null||a===void 0?void 0:a[0]}var o=this.deleteByPath(i.map,r.slice(1));return(!i.map||i.map.size===0)&&!i.value&&n.delete(r[0]),o}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!hNt(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();be(zue,"MAX_CACHE_SIZE",20);be(zue,"MAX_CACHE_OFFSET",5);var Wbe=0,hBe=function(){function e(t){co(this,e),be(this,"derivatives",void 0),be(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Wbe,t.length===0&&(t.length>0,void 0),Wbe+=1}return uo(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,i){return i(n,r)},void 0)}}]),e}(),NG=new zue;function AN(e){var t=Array.isArray(e)?e:[e];return NG.has(t)||NG.set(t,new hBe(t)),NG.get(t)}var mNt=new WeakMap,OG={};function gNt(e,t){for(var n=mNt,r=0;r<t.length;r+=1){var i=t[r];n.has(i)||n.set(i,new WeakMap),n=n.get(i)}return n.has(OG)||n.set(OG,e()),n.get(OG)}var Ybe=new WeakMap;function oR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Ybe.get(e)||"";return n||(Object.keys(e).forEach(function(r){var i=e[r];n+=r,i instanceof hBe?n+=i.id:i&&cn(i)==="object"?n+=oR(i,t):n+=i}),t&&(n=IN(n)),Ybe.set(e,n)),n}function Kbe(e,t){return IN("".concat(t,"_").concat(oR(e,!0)))}var Ore=Zl();function Ce(e){return typeof e=="number"?"".concat(e,"px"):e}function M$(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(i)return e;var a=we(we({},r),{},be(be({},_3,t),Jh,n)),o=Object.keys(a).map(function(s){var l=a[s];return l?"".concat(s,'="').concat(l,'"'):null}).filter(function(s){return s}).join(" ");return"<style ".concat(o,">").concat(e,"</style>")}var U9=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},vNt=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(i){var a=Fe(i,2),o=a[0],s=a[1];return"".concat(o,":").concat(s,";")}).join(""),"}"):""},mBe=function(t,n,r){var i={},a={};return Object.entries(t).forEach(function(o){var s,l,c=Fe(o,2),u=c[0],d=c[1];if(r!=null&&(s=r.preserve)!==null&&s!==void 0&&s[u])a[u]=d;else if((typeof d=="string"||typeof d=="number")&&!(r!=null&&(l=r.ignore)!==null&&l!==void 0&&l[u])){var f,p=U9(u,r?.prefix);i[p]=typeof d=="number"&&!(r!=null&&(f=r.unitless)!==null&&f!==void 0&&f[u])?"".concat(d,"px"):String(d),a[u]="var(".concat(p,")")}}),[a,vNt(i,n,{scope:r?.scope})]},Xbe=Zl()?b.useLayoutEffect:b.useEffect,kr=function(t,n){var r=b.useRef(!0);Xbe(function(){return t(r.current)},n),Xbe(function(){return r.current=!1,function(){r.current=!0}},[])},rE=function(t,n){kr(function(r){if(!r)return t()},n)},yNt=we({},j6),Zbe=yNt.useInsertionEffect,bNt=function(t,n,r){b.useMemo(t,r),kr(function(){return n(!0)},r)},_Nt=Zbe?function(e,t,n){return Zbe(function(){return e(),t()},n)}:bNt,SNt=we({},j6),ENt=SNt.useInsertionEffect,CNt=function(t){var n=[],r=!1;function i(a){r||n.push(a)}return b.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(a){return a()})}},t),i},wNt=function(){return function(t){t()}},xNt=typeof ENt<"u"?CNt:wNt;function Uue(e,t,n,r,i){var a=b.useContext(Xj),o=a.cache,s=[e].concat(Tt(t)),l=Nre(s),c=xNt([l]),u=function(h){o.opUpdate(l,function(m){var g=m||[void 0,void 0],v=Fe(g,2),y=v[0],_=y===void 0?0:y,S=v[1],C=S,w=C||n(),x=[_,w];return h?h(x):x})};b.useMemo(function(){u()},[l]);var d=o.opGet(l),f=d[1];return _Nt(function(){i?.(f)},function(p){return u(function(h){var m=Fe(h,2),g=m[0],v=m[1];return p&&g===0&&i?.(f),[g+1,v]}),function(){o.opUpdate(l,function(h){var m=h||[],g=Fe(m,2),v=g[0],y=v===void 0?0:v,_=g[1],S=y-1;return S===0?(c(function(){(p||!o.opGet(l))&&r?.(_,!1)}),null):[y-1,_]})}},[l]),f}var TNt={},INt="css",CS=new Map;function ANt(e){CS.set(e,(CS.get(e)||0)+1)}function RNt(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(_3,'="').concat(e,'"]'));n.forEach(function(r){if(r[fb]===t){var i;(i=r.parentNode)===null||i===void 0||i.removeChild(r)}})}}var NNt=0;function ONt(e,t){CS.set(e,(CS.get(e)||0)-1);var n=Array.from(CS.keys()),r=n.filter(function(i){var a=CS.get(i)||0;return a<=0});n.length-r.length>NNt&&r.forEach(function(i){RNt(i,t),CS.delete(i)})}var gBe=function(t,n,r,i){var a=r.getDerivativeToken(t),o=we(we({},a),n);return i&&(o=i(o)),o},vBe="token";function LNt(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=b.useContext(Xj),i=r.cache.instanceId,a=r.container,o=n.salt,s=o===void 0?"":o,l=n.override,c=l===void 0?TNt:l,u=n.formatToken,d=n.getComputedToken,f=n.cssVar,p=gNt(function(){return Object.assign.apply(Object,[{}].concat(Tt(t)))},t),h=oR(p),m=oR(c),g=f?oR(f):"",v=Uue(vBe,[s,e.id,h,m,g],function(){var y,_=d?d(p,c,e):gBe(p,c,e,u),S=we({},_),C="";if(f){var w=mBe(_,f.key,{prefix:f.prefix,ignore:f.ignore,unitless:f.unitless,preserve:f.preserve}),x=Fe(w,2);_=x[0],C=x[1]}var T=Kbe(_,s);_._tokenKey=T,S._tokenKey=Kbe(S,s);var A=(y=f?.key)!==null&&y!==void 0?y:T;_._themeKey=A,ANt(A);var I="".concat(INt,"-").concat(IN(T));return _._hashId=I,[_,I,S,C,f?.key||""]},function(y){ONt(y[0]._themeKey,i)},function(y){var _=Fe(y,4),S=_[0],C=_[3];if(f&&C){var w=U1(C,IN("css-variables-".concat(S._themeKey)),{mark:Jh,prepend:"queue",attachTo:a,priority:-999});w[fb]=i,w.setAttribute(_3,S._themeKey)}});return v}var PNt=function(t,n,r){var i=Fe(t,5),a=i[2],o=i[3],s=i[4],l=r||{},c=l.plain;if(!o)return null;var u=a._tokenKey,d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},p=M$(o,s,u,f,c);return[d,u,p]},kNt={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},yBe="comm",bBe="rule",_Be="decl",MNt="@import",DNt="@keyframes",$Nt="@layer",SBe=Math.abs,Hue=String.fromCharCode;function EBe(e){return e.trim()}function H9(e,t,n){return e.replace(t,n)}function FNt(e,t,n){return e.indexOf(t,n)}function RN(e,t){return e.charCodeAt(t)|0}function NN(e,t,n){return e.slice(t,n)}function S1(e){return e.length}function BNt(e){return e.length}function KL(e,t){return t.push(e),e}var Zj=1,S3=1,CBe=0,Lp=0,dl=0,sT="";function Vue(e,t,n,r,i,a,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:Zj,column:S3,length:o,return:"",siblings:s}}function jNt(){return dl}function zNt(){return dl=Lp>0?RN(sT,--Lp):0,S3--,dl===10&&(S3=1,Zj--),dl}function em(){return dl=Lp<CBe?RN(sT,Lp++):0,S3++,dl===10&&(S3=1,Zj++),dl}function iE(){return RN(sT,Lp)}function V9(){return Lp}function Qj(e,t){return NN(sT,e,t)}function Lre(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function UNt(e){return Zj=S3=1,CBe=S1(sT=e),Lp=0,[]}function HNt(e){return sT="",e}function LG(e){return EBe(Qj(Lp-1,Pre(e===91?e+2:e===40?e+1:e)))}function VNt(e){for(;(dl=iE())&&dl<33;)em();return Lre(e)>2||Lre(dl)>3?"":" "}function GNt(e,t){for(;--t&&em()&&!(dl<48||dl>102||dl>57&&dl<65||dl>70&&dl<97););return Qj(e,V9()+(t<6&&iE()==32&&em()==32))}function Pre(e){for(;em();)switch(dl){case e:return Lp;case 34:case 39:e!==34&&e!==39&&Pre(dl);break;case 40:e===41&&Pre(e);break;case 92:em();break}return Lp}function qNt(e,t){for(;em()&&e+dl!==57;)if(e+dl===84&&iE()===47)break;return"/*"+Qj(t,Lp-1)+"*"+Hue(e===47?e:em())}function WNt(e){for(;!Lre(iE());)em();return Qj(e,Lp)}function YNt(e){return HNt(G9("",null,null,null,[""],e=UNt(e),0,[0],e))}function G9(e,t,n,r,i,a,o,s,l){for(var c=0,u=0,d=o,f=0,p=0,h=0,m=1,g=1,v=1,y=0,_="",S=i,C=a,w=r,x=_;g;)switch(h=y,y=em()){case 40:if(h!=108&&RN(x,d-1)==58){FNt(x+=H9(LG(y),"&","&\f"),"&\f",SBe(c?s[c-1]:0))!=-1&&(v=-1);break}case 34:case 39:case 91:x+=LG(y);break;case 9:case 10:case 13:case 32:x+=VNt(h);break;case 92:x+=GNt(V9()-1,7);continue;case 47:switch(iE()){case 42:case 47:KL(KNt(qNt(em(),V9()),t,n,l),l);break;default:x+="/"}break;case 123*m:s[c++]=S1(x)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:v==-1&&(x=H9(x,/\f/g,"")),p>0&&S1(x)-d&&KL(p>32?Jbe(x+";",r,n,d-1,l):Jbe(H9(x," ","")+";",r,n,d-2,l),l);break;case 59:x+=";";default:if(KL(w=Qbe(x,t,n,c,u,i,s,_,S=[],C=[],d,a),a),y===123)if(u===0)G9(x,t,w,w,S,a,d,s,C);else switch(f===99&&RN(x,3)===110?100:f){case 100:case 108:case 109:case 115:G9(e,w,w,r&&KL(Qbe(e,w,w,0,0,i,s,_,i,S=[],d,C),C),i,C,d,s,r?S:C);break;default:G9(x,w,w,w,[""],C,0,s,C)}}c=u=p=0,m=v=1,_=x="",d=o;break;case 58:d=1+S1(x),p=h;default:if(m<1){if(y==123)--m;else if(y==125&&m++==0&&zNt()==125)continue}switch(x+=Hue(y),y*m){case 38:v=u>0?1:(x+="\f",-1);break;case 44:s[c++]=(S1(x)-1)*v,v=1;break;case 64:iE()===45&&(x+=LG(em())),f=iE(),u=d=S1(_=x+=WNt(V9())),y++;break;case 45:h===45&&S1(x)==2&&(m=0)}}return a}function Qbe(e,t,n,r,i,a,o,s,l,c,u,d){for(var f=i-1,p=i===0?a:[""],h=BNt(p),m=0,g=0,v=0;m<r;++m)for(var y=0,_=NN(e,f+1,f=SBe(g=o[m])),S=e;y<h;++y)(S=EBe(g>0?p[y]+" "+_:H9(_,/&\f/g,p[y])))&&(l[v++]=S);return Vue(e,t,n,i===0?bBe:s,l,c,u,d)}function KNt(e,t,n,r){return Vue(e,t,n,yBe,Hue(jNt()),NN(e,2,-2),0,r)}function Jbe(e,t,n,r,i){return Vue(e,t,n,_Be,NN(e,0,r),NN(e,r+1,-1),r,i)}function kre(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function XNt(e,t,n,r){switch(e.type){case $Nt:if(e.children.length)break;case MNt:case _Be:return e.return=e.return||e.value;case yBe:return"";case DNt:return e.return=e.value+"{"+kre(e.children,r)+"}";case bBe:if(!S1(e.value=e.props.join(",")))return""}return S1(n=kre(e.children,r))?e.return=e.value+"{"+n+"}":""}var e_e="data-ant-cssinjs-cache-path",wBe="_FILE_STYLE__",aE,xBe=!0;function ZNt(){if(!aE&&(aE={},Zl())){var e=document.createElement("div");e.className=e_e,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(i){var a=i.split(":"),o=Fe(a,2),s=o[0],l=o[1];aE[s]=l});var n=document.querySelector("style[".concat(e_e,"]"));if(n){var r;xBe=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function QNt(e){return ZNt(),!!aE[e]}function JNt(e){var t=aE[e],n=null;if(t&&Zl())if(xBe)n=wBe;else{var r=document.querySelector("style[".concat(Jh,'="').concat(aE[e],'"]'));r?n=r.innerHTML:delete aE[e]}return[n,t]}var e6t="_skip_check_",TBe="_multi_value_";function q9(e){var t=kre(YNt(e),XNt);return t.replace(/\{%%%\:[^;];}/g,";")}function t6t(e){return cn(e)==="object"&&e&&(e6t in e||TBe in e)}function n6t(e,t,n){if(!t)return e;var r=".".concat(t),i=n==="low"?":where(".concat(r,")"):r,a=e.split(",").map(function(o){var s,l=o.trim().split(/\s+/),c=l[0]||"",u=((s=c.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return c="".concat(u).concat(i).concat(c.slice(u.length)),[c].concat(Tt(l.slice(1))).join(" ")});return a.join(",")}var r6t=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},i=r.root,a=r.injectHash,o=r.parentSelectors,s=n.hashId,l=n.layer;n.path;var c=n.hashPriority,u=n.transformers,d=u===void 0?[]:u;n.linters;var f="",p={};function h(v){var y=v.getName(s);if(!p[y]){var _=e(v.style,n,{root:!1,parentSelectors:o}),S=Fe(_,1),C=S[0];p[y]="@keyframes ".concat(v.getName(s)).concat(C)}}function m(v){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return v.forEach(function(_){Array.isArray(_)?m(_,y):_&&y.push(_)}),y}var g=m(Array.isArray(t)?t:[t]);return g.forEach(function(v){var y=typeof v=="string"&&!i?{}:v;if(typeof y=="string")f+="".concat(y,`
`);else if(y._keyframe)h(y);else{var _=d.reduce(function(S,C){var w;return(C==null||(w=C.visit)===null||w===void 0?void 0:w.call(C,S))||S},y);Object.keys(_).forEach(function(S){var C=_[S];if(cn(C)==="object"&&C&&(S!=="animationName"||!C._keyframe)&&!t6t(C)){var w=!1,x=S.trim(),T=!1;(i||a)&&s?x.startsWith("@")?w=!0:x=n6t(S,s,c):i&&!s&&(x==="&"||x==="")&&(x="",T=!0);var A=e(C,n,{root:T,injectHash:w,parentSelectors:[].concat(Tt(o),[x])}),I=Fe(A,2),R=I[0],N=I[1];p=we(we({},p),N),f+="".concat(x).concat(R)}else{let $=function(D,z){var U=D.replace(/[A-Z]/g,function(M){return"-".concat(M.toLowerCase())}),H=z;!kNt[D]&&typeof H=="number"&&H!==0&&(H="".concat(H,"px")),D==="animationName"&&z!==null&&z!==void 0&&z._keyframe&&(h(z),H=z.getName(s)),f+="".concat(U,":").concat(H,";")};var P,L=(P=C?.value)!==null&&P!==void 0?P:C;cn(C)==="object"&&C!==null&&C!==void 0&&C[TBe]&&Array.isArray(L)?L.forEach(function(D){$(S,D)}):$(S,L)}})}}),i?l&&(f="@layer ".concat(l.name," {").concat(f,"}"),l.dependencies&&(p["@layer ".concat(l.name)]=l.dependencies.map(function(v){return"@layer ".concat(v,", ").concat(l.name,";")}).join(`
`))):f="{".concat(f,"}"),[f,p]};function IBe(e,t){return IN("".concat(e.join("%")).concat(t))}function i6t(){return null}var ABe="style";function Mre(e,t){var n=e.token,r=e.path,i=e.hashId,a=e.layer,o=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=b.useContext(Xj),d=u.autoClear;u.mock;var f=u.defaultCache,p=u.hashPriority,h=u.container,m=u.ssrInline,g=u.transformers,v=u.linters,y=u.cache,_=u.layer,S=n._tokenKey,C=[S];_&&C.push("layer"),C.push.apply(C,Tt(r));var w=Ore,x=Uue(ABe,C,function(){var N=C.join("|");if(QNt(N)){var P=JNt(N),L=Fe(P,2),$=L[0],D=L[1];if($)return[$,S,D,{},s,c]}var z=t(),U=r6t(z,{hashId:i,hashPriority:p,layer:_?a:void 0,path:r.join("-"),transformers:g,linters:v}),H=Fe(U,2),M=H[0],B=H[1],k=q9(M),F=IBe(C,k);return[k,S,F,B,s,c]},function(N,P){var L=Fe(N,3),$=L[2];(P||d)&&Ore&&gN($,{mark:Jh})},function(N){var P=Fe(N,4),L=P[0];P[1];var $=P[2],D=P[3];if(w&&L!==wBe){var z={mark:Jh,prepend:_?!1:"queue",attachTo:h,priority:c},U=typeof o=="function"?o():o;U&&(z.csp={nonce:U});var H=[],M=[];Object.keys(D).forEach(function(k){k.startsWith("@layer")?H.push(k):M.push(k)}),H.forEach(function(k){U1(q9(D[k]),"_layer-".concat(k),we(we({},z),{},{prepend:!0}))});var B=U1(L,$,z);B[fb]=y.instanceId,B.setAttribute(_3,S),M.forEach(function(k){U1(q9(D[k]),"_effect-".concat(k),z)})}}),T=Fe(x,3),A=T[0],I=T[1],R=T[2];return function(N){var P;return!m||w||!f?P=b.createElement(i6t,null):P=b.createElement("style",Xe({},be(be({},_3,I),Jh,R),{dangerouslySetInnerHTML:{__html:A}})),b.createElement(b.Fragment,null,P,N)}}var a6t=function(t,n,r){var i=Fe(t,6),a=i[0],o=i[1],s=i[2],l=i[3],c=i[4],u=i[5],d=r||{},f=d.plain;if(c)return null;var p=a,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return p=M$(a,o,s,h,f),l&&Object.keys(l).forEach(function(m){if(!n[m]){n[m]=!0;var g=q9(l[m]),v=M$(g,o,"_effect-".concat(m),h,f);m.startsWith("@layer")?p=v+p:p+=v}}),[u,s,p]},RBe="cssVar",o6t=function(t,n){var r=t.key,i=t.prefix,a=t.unitless,o=t.ignore,s=t.token,l=t.scope,c=l===void 0?"":l,u=b.useContext(Xj),d=u.cache.instanceId,f=u.container,p=s._tokenKey,h=[].concat(Tt(t.path),[r,c,p]),m=Uue(RBe,h,function(){var g=n(),v=mBe(g,r,{prefix:i,unitless:a,ignore:o,scope:c}),y=Fe(v,2),_=y[0],S=y[1],C=IBe(h,S);return[_,S,C,r]},function(g){var v=Fe(g,3),y=v[2];Ore&&gN(y,{mark:Jh})},function(g){var v=Fe(g,3),y=v[1],_=v[2];if(y){var S=U1(y,_,{mark:Jh,prepend:"queue",attachTo:f,priority:-999});S[fb]=d,S.setAttribute(_3,r)}});return m},s6t=function(t,n,r){var i=Fe(t,4),a=i[1],o=i[2],s=i[3],l=r||{},c=l.plain;if(!a)return null;var u=-999,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},f=M$(a,s,o,d,c);return[u,o,f]};be(be(be({},ABe,a6t),vBe,PNt),RBe,s6t);var Dr=function(){function e(t,n){co(this,e),be(this,"name",void 0),be(this,"style",void 0),be(this,"_keyframe",!0),this.name=t,this.style=n}return uo(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}();function mw(e){return e.notSplit=!0,e}mw(["borderTop","borderBottom"]),mw(["borderTop"]),mw(["borderBottom"]),mw(["borderLeft","borderRight"]),mw(["borderLeft"]),mw(["borderRight"]);function NBe(e){return VMe(e)||uBe(e)||Uce(e)||GMe()}function Sf(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function OBe(e,t,n,r){if(!t.length)return n;var i=NBe(t),a=i[0],o=i.slice(1),s;return!e&&typeof a=="number"?s=[]:Array.isArray(e)?s=Tt(e):s=we({},e),r&&n===void 0&&o.length===1?delete s[a][o[0]]:s[a]=OBe(s[a],o,n,r),s}function Mh(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Sf(e,t.slice(0,-1))?e:OBe(e,t,n,r)}function l6t(e){return cn(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function t_e(e){return Array.isArray(e)?[]:{}}var c6t=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Gx(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t_e(t[0]);return t.forEach(function(i){function a(o,s){var l=new Set(s),c=Sf(i,o),u=Array.isArray(c);if(u||l6t(c)){if(!l.has(c)){l.add(c);var d=Sf(r,o);u?r=Mh(r,o,[]):(!d||cn(d)!=="object")&&(r=Mh(r,o,t_e(c))),c6t(c).forEach(function(f){a([].concat(Tt(o),[f]),l)})}}else r=Mh(r,o,c)}a([])}),r}function u6t(){}const d6t=b.createContext({}),g0=()=>{const e=()=>{};return e.deprecated=u6t,e},LBe=b.createContext(void 0);var PBe={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},f6t={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},p6t=we(we({},f6t),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const kBe={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},D$={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},p6t),timePickerLocale:Object.assign({},kBe)},tf="${label} is not a valid ${type}",Id={locale:"en",Pagination:PBe,DatePicker:D$,TimePicker:kBe,Calendar:D$,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:tf,method:tf,array:tf,object:tf,number:tf,date:tf,boolean:tf,integer:tf,float:tf,regexp:tf,email:tf,url:tf,hex:tf},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};let W9=Object.assign({},Id.Modal),Y9=[];const n_e=()=>Y9.reduce((e,t)=>Object.assign(Object.assign({},e),t),Id.Modal);function h6t(e){if(e){const t=Object.assign({},e);return Y9.push(t),W9=n_e(),()=>{Y9=Y9.filter(n=>n!==t),W9=n_e()}}W9=Object.assign({},Id.Modal)}function MBe(){return W9}const Gue=b.createContext(void 0),Dd=(e,t)=>{const n=b.useContext(Gue),r=b.useMemo(()=>{var a;const o=t||Id[e],s=(a=n?.[e])!==null&&a!==void 0?a:{};return Object.assign(Object.assign({},typeof o=="function"?o():o),s||{})},[e,t,n]),i=b.useMemo(()=>{const a=n?.locale;return n?.exist&&!a?Id.locale:a},[n]);return[r,i]},m6t="internalMark",g6t=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;b.useEffect(()=>h6t(t?.Modal),[t]);const i=b.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return b.createElement(Gue.Provider,{value:i},n)},que={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},E3=Object.assign(Object.assign({},que),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});function DBe(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:i,colorWarning:a,colorError:o,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,d=n(l),f=n(i),p=n(a),h=n(o),m=n(s),g=r(c,u),v=e.colorLink||e.colorInfo,y=n(v);return Object.assign(Object.assign({},g),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:h[1],colorErrorBgHover:h[2],colorErrorBgActive:h[3],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorLinkHover:y[4],colorLink:y[6],colorLinkActive:y[7],colorBgMask:new ti("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const v6t=e=>{let t=e,n=e,r=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:i}};function y6t(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:i}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:i+1},v6t(r))}const $Be=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function K9(e){return(e+8)/e}function b6t(e){const t=new Array(10).fill(null).map((n,r)=>{const i=r-1,a=e*Math.pow(Math.E,i/5),o=r>1?Math.floor(a):Math.ceil(a);return Math.floor(o/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:K9(n)}))}const FBe=e=>{const t=b6t(e),n=t.map(u=>u.size),r=t.map(u=>u.lineHeight),i=n[1],a=n[0],o=n[2],s=r[1],l=r[0],c=r[2];return{fontSizeSM:a,fontSize:i,fontSizeLG:o,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*i),fontHeightLG:Math.round(c*o),fontHeightSM:Math.round(l*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function _6t(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const Vv=(e,t)=>new ti(e).setAlpha(t).toRgbString(),U4=(e,t)=>new ti(e).darken(t).toHexString(),S6t=e=>{const t=Kb(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},E6t=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Vv(r,.88),colorTextSecondary:Vv(r,.65),colorTextTertiary:Vv(r,.45),colorTextQuaternary:Vv(r,.25),colorFill:Vv(r,.15),colorFillSecondary:Vv(r,.06),colorFillTertiary:Vv(r,.04),colorFillQuaternary:Vv(r,.02),colorBgLayout:U4(n,4),colorBgContainer:U4(n,0),colorBgElevated:U4(n,0),colorBgSpotlight:Vv(r,.85),colorBgBlur:"transparent",colorBorder:U4(n,15),colorBorderSecondary:U4(n,6)}};function hO(e){eE.pink=eE.magenta,$9.pink=$9.magenta;const t=Object.keys(que).map(n=>{const r=e[n]===eE[n]?$9[n]:Kb(e[n]);return new Array(10).fill(1).reduce((i,a,o)=>(i[`${n}-${o+1}`]=r[o],i[`${n}${o+1}`]=r[o],i),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),DBe(e,{generateColorPalettes:S6t,generateNeutralColorPalettes:E6t})),FBe(e.fontSize)),_6t(e)),$Be(e)),y6t(e))}const BBe=AN(hO),ON={token:E3,override:{override:E3},hashed:!0},jBe=se.createContext(ON),LN="ant",Wue="anticon",C6t=["outlined","borderless","filled"],w6t=(e,t)=>t||(e?`${LN}-${e}`:LN),Sn=b.createContext({getPrefixCls:w6t,iconPrefixCls:Wue}),x6t=`-ant-${Date.now()}-${Math.random()}`;function T6t(e,t){const n={},r=(o,s)=>{let l=o.clone();return l=s?.(l)||l,l.toRgbString()},i=(o,s)=>{const l=new ti(o),c=Kb(l.toRgbString());n[`${s}-color`]=r(l),n[`${s}-color-disabled`]=c[1],n[`${s}-color-hover`]=c[4],n[`${s}-color-active`]=c[6],n[`${s}-color-outline`]=l.clone().setAlpha(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=c[0],n[`${s}-color-deprecated-border`]=c[2]};if(t.primaryColor){i(t.primaryColor,"primary");const o=new ti(t.primaryColor),s=Kb(o.toRgbString());s.forEach((c,u)=>{n[`primary-${u+1}`]=c}),n["primary-color-deprecated-l-35"]=r(o,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(o,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(o,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(o,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(o,c=>c.setAlpha(c.getAlpha()*.12));const l=new ti(s[0]);n["primary-color-active-deprecated-f-30"]=r(l,c=>c.setAlpha(c.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(l,c=>c.darken(2))}return t.successColor&&i(t.successColor,"success"),t.warningColor&&i(t.warningColor,"warning"),t.errorColor&&i(t.errorColor,"error"),t.infoColor&&i(t.infoColor,"info"),`
  :root {
    ${Object.keys(n).map(o=>`--${e}-${o}: ${n[o]};`).join(`
`)}
  }
  `.trim()}function I6t(e,t){const n=T6t(e,t);Zl()&&U1(n,`${x6t}-dynamic-theme`)}const wc=b.createContext(!1),Yue=e=>{let{children:t,disabled:n}=e;const r=b.useContext(wc);return b.createElement(wc.Provider,{value:n??r},t)},PE=b.createContext(void 0),A6t=e=>{let{children:t,size:n}=e;const r=b.useContext(PE);return b.createElement(PE.Provider,{value:n||r},t)};function R6t(){const e=b.useContext(wc),t=b.useContext(PE);return{componentDisabled:e,componentSize:t}}var zBe=uo(function e(){co(this,e)}),UBe="CALC_UNIT",N6t=new RegExp(UBe,"g");function PG(e){return typeof e=="number"?"".concat(e).concat(UBe):e}var O6t=function(e){Md(n,e);var t=$f(n);function n(r,i){var a;co(this,n),a=t.call(this),be(Qt(a),"result",""),be(Qt(a),"unitlessCssVar",void 0),be(Qt(a),"lowPriority",void 0);var o=cn(r);return a.unitlessCssVar=i,r instanceof n?a.result="(".concat(r.result,")"):o==="number"?a.result=PG(r):o==="string"&&(a.result=r),a}return uo(n,[{key:"add",value:function(i){return i instanceof n?this.result="".concat(this.result," + ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," + ").concat(PG(i))),this.lowPriority=!0,this}},{key:"sub",value:function(i){return i instanceof n?this.result="".concat(this.result," - ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," - ").concat(PG(i))),this.lowPriority=!0,this}},{key:"mul",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof n?this.result="".concat(this.result," * ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," * ").concat(i)),this.lowPriority=!1,this}},{key:"div",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof n?this.result="".concat(this.result," / ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," / ").concat(i)),this.lowPriority=!1,this}},{key:"getResult",value:function(i){return this.lowPriority||i?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(i){var a=this,o=i||{},s=o.unit,l=!0;return typeof s=="boolean"?l=s:Array.from(this.unitlessCssVar).some(function(c){return a.result.includes(c)})&&(l=!1),this.result=this.result.replace(N6t,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(zBe),L6t=function(e){Md(n,e);var t=$f(n);function n(r){var i;return co(this,n),i=t.call(this),be(Qt(i),"result",0),r instanceof n?i.result=r.result:typeof r=="number"&&(i.result=r),i}return uo(n,[{key:"add",value:function(i){return i instanceof n?this.result+=i.result:typeof i=="number"&&(this.result+=i),this}},{key:"sub",value:function(i){return i instanceof n?this.result-=i.result:typeof i=="number"&&(this.result-=i),this}},{key:"mul",value:function(i){return i instanceof n?this.result*=i.result:typeof i=="number"&&(this.result*=i),this}},{key:"div",value:function(i){return i instanceof n?this.result/=i.result:typeof i=="number"&&(this.result/=i),this}},{key:"equal",value:function(){return this.result}}]),n}(zBe),P6t=function(t,n){var r=t==="css"?O6t:L6t;return function(i){return new r(i,n)}},r_e=function(t,n){return"".concat([n,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function gr(e){var t=b.useRef();t.current=e;var n=b.useCallback(function(){for(var r,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(a))},[]);return n}function kE(e){var t=b.useRef(!1),n=b.useState(e),r=Fe(n,2),i=r[0],a=r[1];b.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function o(s,l){l&&t.current||a(s)}return[i,o]}function kG(e){return e!==void 0}function qr(e,t){var n=t||{},r=n.defaultValue,i=n.value,a=n.onChange,o=n.postState,s=kE(function(){return kG(i)?i:kG(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),l=Fe(s,2),c=l[0],u=l[1],d=i!==void 0?i:c,f=o?o(d):d,p=gr(a),h=kE([d]),m=Fe(h,2),g=m[0],v=m[1];rE(function(){var _=g[0];c!==_&&p(c,_)},[g]),rE(function(){kG(i)||u(i)},[i]);var y=gr(function(_,S){u(_,S),v([d],S)});return[f,y]}function i_e(e,t,n,r){var i=we({},t[e]);if(r!=null&&r.deprecatedTokens){var a=r.deprecatedTokens;a.forEach(function(s){var l=Fe(s,2),c=l[0],u=l[1];if(i!=null&&i[c]||i!=null&&i[u]){var d;(d=i[u])!==null&&d!==void 0||(i[u]=i?.[c])}})}var o=we(we({},n),i);return Object.keys(o).forEach(function(s){o[s]===t[s]&&delete o[s]}),o}var HBe=typeof CSSINJS_STATISTIC<"u",Dre=!0;function br(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!HBe)return Object.assign.apply(Object,[{}].concat(t));Dre=!1;var r={};return t.forEach(function(i){if(cn(i)==="object"){var a=Object.keys(i);a.forEach(function(o){Object.defineProperty(r,o,{configurable:!0,enumerable:!0,get:function(){return i[o]}})})}}),Dre=!0,r}var a_e={};function k6t(){}var M6t=function(t){var n,r=t,i=k6t;return HBe&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(o,s){return Dre&&n.add(s),o[s]}}),i=function(o,s){var l;a_e[o]={global:Array.from(n),component:we(we({},(l=a_e[o])===null||l===void 0?void 0:l.component),s)}}),{token:r,keys:n,flush:i}};function o_e(e,t,n){if(typeof n=="function"){var r;return n(br(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function D6t(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return"max(".concat(r.map(function(a){return Ce(a)}).join(","),")")},min:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return"min(".concat(r.map(function(a){return Ce(a)}).join(","),")")}}}var $6t=1e3*60*10,F6t=function(){function e(){co(this,e),be(this,"map",new Map),be(this,"objectIDMap",new WeakMap),be(this,"nextID",0),be(this,"lastAccessBeat",new Map),be(this,"accessBeat",0)}return uo(e,[{key:"set",value:function(n,r){this.clear();var i=this.getCompositeKey(n);this.map.set(i,r),this.lastAccessBeat.set(i,Date.now())}},{key:"get",value:function(n){var r=this.getCompositeKey(n),i=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,i}},{key:"getCompositeKey",value:function(n){var r=this,i=n.map(function(a){return a&&cn(a)==="object"?"obj_".concat(r.getObjectID(a)):"".concat(cn(a),"_").concat(a)});return i.join("|")}},{key:"getObjectID",value:function(n){if(this.objectIDMap.has(n))return this.objectIDMap.get(n);var r=this.nextID;return this.objectIDMap.set(n,r),this.nextID+=1,r}},{key:"clear",value:function(){var n=this;if(this.accessBeat>1e4){var r=Date.now();this.lastAccessBeat.forEach(function(i,a){r-i>$6t&&(n.map.delete(a),n.lastAccessBeat.delete(a))}),this.accessBeat=0}}}]),e}(),s_e=new F6t;function B6t(e,t){return se.useMemo(function(){var n=s_e.get(t);if(n)return n;var r=e();return s_e.set(t,r),r},t)}var j6t=function(){return{}};function z6t(e){var t=e.useCSP,n=t===void 0?j6t:t,r=e.useToken,i=e.usePrefix,a=e.getResetStyles,o=e.getCommonStyle,s=e.getCompUnitless;function l(f,p,h,m){var g=Array.isArray(f)?f[0]:f;function v(T){return"".concat(String(g)).concat(T.slice(0,1).toUpperCase()).concat(T.slice(1))}var y=m?.unitless||{},_=typeof s=="function"?s(f):{},S=we(we({},_),{},be({},v("zIndexPopup"),!0));Object.keys(y).forEach(function(T){S[v(T)]=y[T]});var C=we(we({},m),{},{unitless:S,prefixToken:v}),w=u(f,p,h,C),x=c(g,h,C);return function(T){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:T,I=w(T,A),R=Fe(I,2),N=R[1],P=x(A),L=Fe(P,2),$=L[0],D=L[1];return[$,N,D]}}function c(f,p,h){var m=h.unitless,g=h.injectStyle,v=g===void 0?!0:g,y=h.prefixToken,_=h.ignore,S=function(x){var T=x.rootCls,A=x.cssVar,I=A===void 0?{}:A,R=r(),N=R.realToken;return o6t({path:[f],prefix:I.prefix,key:I.key,unitless:m,ignore:_,token:N,scope:T},function(){var P=o_e(f,N,p),L=i_e(f,N,P,{deprecatedTokens:h?.deprecatedTokens});return Object.keys(P).forEach(function($){L[y($)]=L[$],delete L[$]}),L}),null},C=function(x){var T=r(),A=T.cssVar;return[function(I){return v&&A?se.createElement(se.Fragment,null,se.createElement(S,{rootCls:x,cssVar:A,component:f}),I):I},A?.key]};return C}function u(f,p,h){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},g=Array.isArray(f)?f:[f,f],v=Fe(g,1),y=v[0],_=g.join("-");return function(S){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:S,w=r(),x=w.theme,T=w.realToken,A=w.hashId,I=w.token,R=w.cssVar,N=i(),P=N.rootPrefixCls,L=N.iconPrefixCls,$=n(),D=R?"css":"js",z=B6t(function(){var F=new Set;return R&&Object.keys(m.unitless||{}).forEach(function(G){F.add(U9(G,R.prefix)),F.add(U9(G,r_e(y,R.prefix)))}),P6t(D,F)},[D,y,R?.prefix]),U=D6t(D),H=U.max,M=U.min,B={theme:x,token:I,hashId:A,nonce:function(){return $.nonce},clientOnly:m.clientOnly,layer:{name:"antd"},order:m.order||-999};Mre(we(we({},B),{},{clientOnly:!1,path:["Shared",P]}),function(){return typeof a=="function"?a(I):[]});var k=Mre(we(we({},B),{},{path:[_,S,L]}),function(){if(m.injectStyle===!1)return[];var F=M6t(I),G=F.token,q=F.flush,W=o_e(y,T,h),K=".".concat(S),J=i_e(y,T,W,{deprecatedTokens:m.deprecatedTokens});R&&cn(W)==="object"&&Object.keys(W).forEach(function(ue){W[ue]="var(".concat(U9(ue,r_e(y,R.prefix)),")")});var te=br(G,{componentCls:K,prefixCls:S,iconCls:".".concat(L),antCls:".".concat(P),calc:z,max:H,min:M},R?W:J),ae=p(te,{hashId:A,prefixCls:S,rootPrefixCls:P,iconPrefixCls:L});q(y,J);var re=typeof o=="function"?o(te,S,C,m.resetFont):null;return[m.resetStyle===!1?null:re,ae]});return[k,A]}}function d(f,p,h){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},g=u(f,p,h,we({resetStyle:!1,order:-998},m)),v=function(_){var S=_.prefixCls,C=_.rootCls,w=C===void 0?S:C;return g(S,w),null};return v}return{genStyleHooks:l,genSubStyleComponent:d,genComponentStyleHook:u}}const PN=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],U6t="5.20.0";function MG(e){return e>=0&&e<=255}function XL(e,t){const{r:n,g:r,b:i,a}=new ti(e).toRgb();if(a<1)return e;const{r:o,g:s,b:l}=new ti(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-o*(1-c))/c),d=Math.round((r-s*(1-c))/c),f=Math.round((i-l*(1-c))/c);if(MG(u)&&MG(d)&&MG(f))return new ti({r:u,g:d,b:f,a:Math.round(c*100)/100}).toRgbString()}return new ti({r:n,g:r,b:i,a:1}).toRgbString()}var H6t=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function Kue(e){const{override:t}=e,n=H6t(e,["override"]),r=Object.assign({},t);Object.keys(E3).forEach(f=>{delete r[f]});const i=Object.assign(Object.assign({},n),r),a=480,o=576,s=768,l=992,c=1200,u=1600;if(i.motion===!1){const f="0s";i.motionDurationFast=f,i.motionDurationMid=f,i.motionDurationSlow=f}return Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:XL(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:XL(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:XL(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*4,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:XL(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:`
      0 6px 16px 0 rgba(0, 0, 0, 0.08),
      0 3px 6px -4px rgba(0, 0, 0, 0.12),
      0 9px 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowSecondary:`
      0 6px 16px 0 rgba(0, 0, 0, 0.08),
      0 3px 6px -4px rgba(0, 0, 0, 0.12),
      0 9px 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowTertiary:`
      0 1px 2px 0 rgba(0, 0, 0, 0.03),
      0 1px 6px -1px rgba(0, 0, 0, 0.02),
      0 2px 4px 0 rgba(0, 0, 0, 0.02)
    `,screenXS:a,screenXSMin:a,screenXSMax:o-1,screenSM:o,screenSMMin:o,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
      0 1px 2px -2px ${new ti("rgba(0, 0, 0, 0.16)").toRgbString()},
      0 3px 6px 0 ${new ti("rgba(0, 0, 0, 0.12)").toRgbString()},
      0 5px 12px 4px ${new ti("rgba(0, 0, 0, 0.09)").toRgbString()}
    `,boxShadowDrawerRight:`
      -6px 0 16px 0 rgba(0, 0, 0, 0.08),
      -3px 0 6px -4px rgba(0, 0, 0, 0.12),
      -9px 0 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowDrawerLeft:`
      6px 0 16px 0 rgba(0, 0, 0, 0.08),
      3px 0 6px -4px rgba(0, 0, 0, 0.12),
      9px 0 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowDrawerUp:`
      0 6px 16px 0 rgba(0, 0, 0, 0.08),
      0 3px 6px -4px rgba(0, 0, 0, 0.12),
      0 9px 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowDrawerDown:`
      0 -6px 16px 0 rgba(0, 0, 0, 0.08),
      0 -3px 6px -4px rgba(0, 0, 0, 0.12),
      0 -9px 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var l_e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const VBe={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},V6t={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},G6t={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},GBe=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:i}=t,a=l_e(t,["override"]);let o=Object.assign(Object.assign({},r),{override:i});return o=Kue(o),a&&Object.entries(a).forEach(s=>{let[l,c]=s;const{theme:u}=c,d=l_e(c,["theme"]);let f=d;u&&(f=GBe(Object.assign(Object.assign({},o),d),{override:d},u)),o[l]=f}),o};function nl(){const{token:e,hashed:t,theme:n,override:r,cssVar:i}=se.useContext(jBe),a=`${U6t}-${t||""}`,o=n||BBe,[s,l,c]=LNt(o,[E3,e],{salt:a,override:r,getComputedToken:GBe,formatToken:Kue,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:VBe,ignore:V6t,preserve:G6t}});return[o,c,t?l:"",s,i]}const q6t=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),Pp={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Wr=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},lT=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),ME=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),W6t=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),Y6t=(e,t,n,r)=>{const i=`[class^="${t}"], [class*=" ${t}"]`,a=n?`.${n}`:i,o={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:Object.assign(Object.assign(Object.assign({},s),o),{[i]:o})}},r0=e=>({outline:`${Ce(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),kp=e=>({"&:focus-visible":Object.assign({},r0(e))}),qBe=(e,t)=>{const[n,r]=nl();return Mre({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>[{[`.${e}`]:Object.assign(Object.assign({},lT()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},{genStyleHooks:Kr,genComponentStyleHook:K6t,genSubStyleComponent:bC}=z6t({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=b.useContext(Sn);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,i]=nl();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i}},useCSP:()=>{const{csp:e,iconPrefixCls:t}=b.useContext(Sn);return qBe(t,e),e??{}},getResetStyles:e=>[{"&":W6t(e)}],getCommonStyle:Y6t,getCompUnitless:()=>VBe});function Jj(e,t){return PN.reduce((n,r)=>{const i=e[`${r}1`],a=e[`${r}3`],o=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:i,lightBorderColor:a,darkColor:o,textColor:s}))},{})}const X6t=Object.assign({},j6),{useId:c_e}=X6t,Z6t=()=>"",Q6t=typeof c_e>"u"?Z6t:c_e;function J6t(e,t,n){var r;g0();const i=e||{},a=i.inherit===!1||!t?Object.assign(Object.assign({},ON),{hashed:(r=t?.hashed)!==null&&r!==void 0?r:ON.hashed,cssVar:t?.cssVar}):t,o=Q6t();return hC(()=>{var s,l;if(!e)return t;const c=Object.assign({},a.components);Object.keys(e.components||{}).forEach(f=>{c[f]=Object.assign(Object.assign({},c[f]),e.components[f])});const u=`css-var-${o.replace(/:/g,"")}`,d=((s=i.cssVar)!==null&&s!==void 0?s:a.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n?.prefixCls},typeof a.cssVar=="object"?a.cssVar:{}),typeof i.cssVar=="object"?i.cssVar:{}),{key:typeof i.cssVar=="object"&&((l=i.cssVar)===null||l===void 0?void 0:l.key)||u});return Object.assign(Object.assign(Object.assign({},a),i),{token:Object.assign(Object.assign({},a.token),i.token),components:c,cssVar:d})},[i,a],(s,l)=>s.some((c,u)=>{const d=l[u];return!Op(c,d,!0)}))}var eOt=["children"],WBe=b.createContext({});function tOt(e){var t=e.children,n=$n(e,eOt);return b.createElement(WBe.Provider,{value:n},t)}var nOt=function(e){Md(n,e);var t=$f(n);function n(){return co(this,n),t.apply(this,arguments)}return uo(n,[{key:"render",value:function(){return this.props.children}}]),n}(b.Component);function rOt(e){var t=b.useReducer(function(s){return s+1},0),n=Fe(t,2),r=n[1],i=b.useRef(e),a=gr(function(){return i.current}),o=gr(function(s){i.current=typeof s=="function"?s(i.current):s,r()});return[a,o]}var My="none",ZL="appear",QL="enter",JL="leave",u_e="none",Dh="prepare",qx="start",Wx="active",Xue="end",YBe="prepared";function d_e(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function iOt(e,t){var n={animationend:d_e("Animation","AnimationEnd"),transitionend:d_e("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var aOt=iOt(Zl(),typeof window<"u"?window:{}),KBe={};if(Zl()){var oOt=document.createElement("div");KBe=oOt.style}var eP={};function XBe(e){if(eP[e])return eP[e];var t=aOt[e];if(t)for(var n=Object.keys(t),r=n.length,i=0;i<r;i+=1){var a=n[i];if(Object.prototype.hasOwnProperty.call(t,a)&&a in KBe)return eP[e]=t[a],eP[e]}return""}var ZBe=XBe("animationend"),QBe=XBe("transitionend"),JBe=!!(ZBe&&QBe),f_e=ZBe||"animationend",p_e=QBe||"transitionend";function h_e(e,t){if(!e)return null;if(cn(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const sOt=function(e){var t=b.useRef();function n(i){i&&(i.removeEventListener(p_e,e),i.removeEventListener(f_e,e))}function r(i){t.current&&t.current!==i&&n(t.current),i&&i!==t.current&&(i.addEventListener(p_e,e),i.addEventListener(f_e,e),t.current=i)}return b.useEffect(function(){return function(){n(t.current)}},[]),[r,n]};var eje=Zl()?b.useLayoutEffect:b.useEffect;const lOt=function(){var e=b.useRef(null);function t(){Tr.cancel(e.current)}function n(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var a=Tr(function(){i<=1?r({isCanceled:function(){return a!==e.current}}):n(r,i-1)});e.current=a}return b.useEffect(function(){return function(){t()}},[]),[n,t]};var cOt=[Dh,qx,Wx,Xue],uOt=[Dh,YBe],tje=!1,dOt=!0;function nje(e){return e===Wx||e===Xue}const fOt=function(e,t,n){var r=kE(u_e),i=Fe(r,2),a=i[0],o=i[1],s=lOt(),l=Fe(s,2),c=l[0],u=l[1];function d(){o(Dh,!0)}var f=t?uOt:cOt;return eje(function(){if(a!==u_e&&a!==Xue){var p=f.indexOf(a),h=f[p+1],m=n(a);m===tje?o(h,!0):h&&c(function(g){function v(){g.isCanceled()||o(h,!0)}m===!0?v():Promise.resolve(m).then(v)})}},[e,a]),b.useEffect(function(){return function(){u()}},[]),[d,a]};function pOt(e,t,n,r){var i=r.motionEnter,a=i===void 0?!0:i,o=r.motionAppear,s=o===void 0?!0:o,l=r.motionLeave,c=l===void 0?!0:l,u=r.motionDeadline,d=r.motionLeaveImmediately,f=r.onAppearPrepare,p=r.onEnterPrepare,h=r.onLeavePrepare,m=r.onAppearStart,g=r.onEnterStart,v=r.onLeaveStart,y=r.onAppearActive,_=r.onEnterActive,S=r.onLeaveActive,C=r.onAppearEnd,w=r.onEnterEnd,x=r.onLeaveEnd,T=r.onVisibleChanged,A=kE(),I=Fe(A,2),R=I[0],N=I[1],P=rOt(My),L=Fe(P,2),$=L[0],D=L[1],z=kE(null),U=Fe(z,2),H=U[0],M=U[1],B=$(),k=b.useRef(!1),F=b.useRef(null);function G(){return n()}var q=b.useRef(!1);function W(){D(My),M(null,!0)}var K=gr(function(ye){var me=$();if(me!==My){var _e=G();if(!(ye&&!ye.deadline&&ye.target!==_e)){var Te=q.current,xe;me===ZL&&Te?xe=C?.(_e,ye):me===QL&&Te?xe=w?.(_e,ye):me===JL&&Te&&(xe=x?.(_e,ye)),Te&&xe!==!1&&W()}}}),J=sOt(K),te=Fe(J,1),ae=te[0],re=function(me){switch(me){case ZL:return be(be(be({},Dh,f),qx,m),Wx,y);case QL:return be(be(be({},Dh,p),qx,g),Wx,_);case JL:return be(be(be({},Dh,h),qx,v),Wx,S);default:return{}}},ue=b.useMemo(function(){return re(B)},[B]),de=fOt(B,!e,function(ye){if(ye===Dh){var me=ue[Dh];return me?me(G()):tje}if(oe in ue){var _e;M(((_e=ue[oe])===null||_e===void 0?void 0:_e.call(ue,G(),null))||null)}return oe===Wx&&B!==My&&(ae(G()),u>0&&(clearTimeout(F.current),F.current=setTimeout(function(){K({deadline:!0})},u))),oe===YBe&&W(),dOt}),fe=Fe(de,2),ge=fe[0],oe=fe[1],Ee=nje(oe);q.current=Ee,eje(function(){N(t);var ye=k.current;k.current=!0;var me;!ye&&t&&s&&(me=ZL),ye&&t&&a&&(me=QL),(ye&&!t&&c||!ye&&d&&!t&&c)&&(me=JL);var _e=re(me);me&&(e||_e[Dh])?(D(me),ge()):D(My)},[t]),b.useEffect(function(){(B===ZL&&!s||B===QL&&!a||B===JL&&!c)&&D(My)},[s,a,c]),b.useEffect(function(){return function(){k.current=!1,clearTimeout(F.current)}},[]);var ce=b.useRef(!1);b.useEffect(function(){R&&(ce.current=!0),R!==void 0&&B===My&&((ce.current||R)&&T?.(R),ce.current=!0)},[R,B]);var he=H;return ue[Dh]&&oe===qx&&(he=we({transition:"none"},he)),[B,oe,he,R??t]}function hOt(e){var t=e;cn(e)==="object"&&(t=e.transitionSupport);function n(i,a){return!!(i.motionName&&t&&a!==!1)}var r=b.forwardRef(function(i,a){var o=i.visible,s=o===void 0?!0:o,l=i.removeOnLeave,c=l===void 0?!0:l,u=i.forceRender,d=i.children,f=i.motionName,p=i.leavedClassName,h=i.eventProps,m=b.useContext(WBe),g=m.motion,v=n(i,g),y=b.useRef(),_=b.useRef();function S(){try{return y.current instanceof HTMLElement?y.current:aR(_.current)}catch{return null}}var C=pOt(v,s,S,i),w=Fe(C,4),x=w[0],T=w[1],A=w[2],I=w[3],R=b.useRef(I);I&&(R.current=!0);var N=b.useCallback(function(H){y.current=H,bN(a,H)},[a]),P,L=we(we({},h),{},{visible:s});if(!d)P=null;else if(x===My)I?P=d(we({},L),N):!c&&R.current&&p?P=d(we(we({},L),{},{className:p}),N):u||!c&&!p?P=d(we(we({},L),{},{style:{display:"none"}}),N):P=null;else{var $;T===Dh?$="prepare":nje(T)?$="active":T===qx&&($="start");var D=h_e(f,"".concat(x,"-").concat($));P=d(we(we({},L),{},{className:Oe(h_e(f,x),be(be({},D,D&&$),f,typeof f=="string")),style:A}),N)}if(b.isValidElement(P)&&sm(P)){var z=P,U=z.ref;U||(P=b.cloneElement(P,{ref:N}))}return b.createElement(nOt,{ref:_},P)});return r.displayName="CSSMotion",r}const Sl=hOt(JBe);var $re="add",Fre="keep",Bre="remove",DG="removed";function mOt(e){var t;return e&&cn(e)==="object"&&"key"in e?t=e:t={key:e},we(we({},t),{},{key:String(t.key)})}function jre(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(mOt)}function gOt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,i=t.length,a=jre(e),o=jre(t);a.forEach(function(c){for(var u=!1,d=r;d<i;d+=1){var f=o[d];if(f.key===c.key){r<d&&(n=n.concat(o.slice(r,d).map(function(p){return we(we({},p),{},{status:$re})})),r=d),n.push(we(we({},f),{},{status:Fre})),r+=1,u=!0;break}}u||n.push(we(we({},c),{},{status:Bre}))}),r<i&&(n=n.concat(o.slice(r).map(function(c){return we(we({},c),{},{status:$re})})));var s={};n.forEach(function(c){var u=c.key;s[u]=(s[u]||0)+1});var l=Object.keys(s).filter(function(c){return s[c]>1});return l.forEach(function(c){n=n.filter(function(u){var d=u.key,f=u.status;return d!==c||f!==Bre}),n.forEach(function(u){u.key===c&&(u.status=Fre)})}),n}var vOt=["component","children","onVisibleChanged","onAllRemoved"],yOt=["status"],bOt=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function _Ot(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Sl,n=function(r){Md(a,r);var i=$f(a);function a(){var o;co(this,a);for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return o=i.call.apply(i,[this].concat(l)),be(Qt(o),"state",{keyEntities:[]}),be(Qt(o),"removeKey",function(u){var d=o.state.keyEntities,f=d.map(function(p){return p.key!==u?p:we(we({},p),{},{status:DG})});return o.setState({keyEntities:f}),f.filter(function(p){var h=p.status;return h!==DG}).length}),o}return uo(a,[{key:"render",value:function(){var s=this,l=this.state.keyEntities,c=this.props,u=c.component,d=c.children,f=c.onVisibleChanged,p=c.onAllRemoved,h=$n(c,vOt),m=u||b.Fragment,g={};return bOt.forEach(function(v){g[v]=h[v],delete h[v]}),delete h.keys,b.createElement(m,h,l.map(function(v,y){var _=v.status,S=$n(v,yOt),C=_===$re||_===Fre;return b.createElement(t,Xe({},g,{key:S.key,visible:C,eventProps:S,onVisibleChanged:function(x){if(f?.(x,{key:S.key}),!x){var T=s.removeKey(S.key);T===0&&p&&p()}}}),function(w,x){return d(we(we({},w),{},{index:y}),x)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var c=s.keys,u=l.keyEntities,d=jre(c),f=gOt(u,d);return{keyEntities:f.filter(function(p){var h=u.find(function(m){var g=m.key;return p.key===g});return!(h&&h.status===DG&&p.status===Bre)})}}}]),a}(b.Component);return be(n,"defaultProps",{component:"div"}),n}const Zue=_Ot(JBe);function SOt(e){const{children:t}=e,[,n]=nl(),{motion:r}=n,i=b.useRef(!1);return i.current=i.current||r===!1,i.current?b.createElement(tOt,{motion:r},t):t}const EOt=()=>null;var COt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const wOt=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let $$,rje,ije,aje;function X9(){return $$||LN}function xOt(){return rje||Wue}function TOt(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const IOt=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:i}=e;t!==void 0&&($$=t),n!==void 0&&(rje=n),"holderRender"in e&&(aje=i),r&&(TOt(r)?I6t(X9(),r):ije=r)},Que=()=>({getPrefixCls:(e,t)=>t||(e?`${X9()}-${e}`:X9()),getIconPrefixCls:xOt,getRootPrefixCls:()=>$$||X9(),getTheme:()=>ije,holderRender:aje}),AOt=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:i,anchor:a,form:o,locale:s,componentSize:l,direction:c,space:u,virtual:d,dropdownMatchSelectWidth:f,popupMatchSelectWidth:p,popupOverflow:h,legacyLocale:m,parentContext:g,iconPrefixCls:v,theme:y,componentDisabled:_,segmented:S,statistic:C,spin:w,calendar:x,carousel:T,cascader:A,collapse:I,typography:R,checkbox:N,descriptions:P,divider:L,drawer:$,skeleton:D,steps:z,image:U,layout:H,list:M,mentions:B,modal:k,progress:F,result:G,slider:q,breadcrumb:W,menu:K,pagination:J,input:te,textArea:ae,empty:re,badge:ue,radio:de,rate:fe,switch:ge,transfer:oe,avatar:Ee,message:ce,tag:he,table:ye,card:me,tabs:_e,timeline:Te,timePicker:xe,upload:De,notification:Pe,tree:Le,colorPicker:ze,datePicker:Be,rangePicker:je,flex:Ye,wave:Ze,dropdown:Ke,warning:qe,tour:nt,floatButtonGroup:Qe,variant:it,inputNumber:yt,treeSelect:Wt}=e,Mt=b.useCallback((dt,Et)=>{const{prefixCls:St}=e;if(Et)return Et;const zt=St||g.getPrefixCls("");return dt?`${zt}-${dt}`:zt},[g.getPrefixCls,e.prefixCls]),tn=v||g.iconPrefixCls||Wue,Rt=n||g.csp;qBe(tn,Rt);const Dt=J6t(y,g.theme,{prefixCls:Mt("")}),Pt={csp:Rt,autoInsertSpaceInButton:r,alert:i,anchor:a,locale:s||m,direction:c,space:u,virtual:d,popupMatchSelectWidth:p??f,popupOverflow:h,getPrefixCls:Mt,iconPrefixCls:tn,theme:Dt,segmented:S,statistic:C,spin:w,calendar:x,carousel:T,cascader:A,collapse:I,typography:R,checkbox:N,descriptions:P,divider:L,drawer:$,skeleton:D,steps:z,image:U,input:te,textArea:ae,layout:H,list:M,mentions:B,modal:k,progress:F,result:G,slider:q,breadcrumb:W,menu:K,pagination:J,empty:re,badge:ue,radio:de,rate:fe,switch:ge,transfer:oe,avatar:Ee,message:ce,tag:he,table:ye,card:me,tabs:_e,timeline:Te,timePicker:xe,upload:De,notification:Pe,tree:Le,colorPicker:ze,datePicker:Be,rangePicker:je,flex:Ye,wave:Ze,dropdown:Ke,warning:qe,tour:nt,floatButtonGroup:Qe,variant:it,inputNumber:yt,treeSelect:Wt},Ot=Object.assign({},g);Object.keys(Pt).forEach(dt=>{Pt[dt]!==void 0&&(Ot[dt]=Pt[dt])}),wOt.forEach(dt=>{const Et=e[dt];Et&&(Ot[dt]=Et)}),typeof r<"u"&&(Ot.button=Object.assign({autoInsertSpace:r},Ot.button));const sn=hC(()=>Ot,Ot,(dt,Et)=>{const St=Object.keys(dt),zt=Object.keys(Et);return St.length!==zt.length||St.some(nn=>dt[nn]!==Et[nn])}),Jt=b.useMemo(()=>({prefixCls:tn,csp:Rt}),[tn,Rt]);let Vt=b.createElement(b.Fragment,null,b.createElement(EOt,{dropdownMatchSelectWidth:f}),t);const pt=b.useMemo(()=>{var dt,Et,St,zt;return Gx(((dt=Id.Form)===null||dt===void 0?void 0:dt.defaultValidateMessages)||{},((St=(Et=sn.locale)===null||Et===void 0?void 0:Et.Form)===null||St===void 0?void 0:St.defaultValidateMessages)||{},((zt=sn.form)===null||zt===void 0?void 0:zt.validateMessages)||{},o?.validateMessages||{})},[sn,o?.validateMessages]);Object.keys(pt).length>0&&(Vt=b.createElement(LBe.Provider,{value:pt},Vt)),s&&(Vt=b.createElement(g6t,{locale:s,_ANT_MARK__:m6t},Vt)),(tn||Rt)&&(Vt=b.createElement(fj.Provider,{value:Jt},Vt)),l&&(Vt=b.createElement(A6t,{size:l},Vt)),Vt=b.createElement(SOt,null,Vt);const tt=b.useMemo(()=>{const dt=Dt||{},{algorithm:Et,token:St,components:zt,cssVar:nn}=dt,wn=COt(dt,["algorithm","token","components","cssVar"]),kn=Et&&(!Array.isArray(Et)||Et.length>0)?AN(Et):BBe,fn={};Object.entries(zt||{}).forEach(Ht=>{let[mn,Tn]=Ht;const An=Object.assign({},Tn);"algorithm"in An&&(An.algorithm===!0?An.theme=kn:(Array.isArray(An.algorithm)||typeof An.algorithm=="function")&&(An.theme=AN(An.algorithm)),delete An.algorithm),fn[mn]=An});const an=Object.assign(Object.assign({},E3),St);return Object.assign(Object.assign({},wn),{theme:kn,token:an,components:fn,override:Object.assign({override:an},fn),cssVar:nn})},[Dt]);return y&&(Vt=b.createElement(jBe.Provider,{value:tt},Vt)),sn.warning&&(Vt=b.createElement(d6t.Provider,{value:sn.warning},Vt)),_!==void 0&&(Vt=b.createElement(Yue,{disabled:_},Vt)),b.createElement(Sn.Provider,{value:sn},Vt)},zp=e=>{const t=b.useContext(Sn),n=b.useContext(Gue);return b.createElement(AOt,Object.assign({parentContext:t,legacyLocale:n},e))};zp.ConfigContext=Sn;zp.SizeContext=PE;zp.config=IOt;zp.useConfig=R6t;Object.defineProperty(zp,"SizeContext",{get:()=>PE});var ROt=`accept acceptCharset accessKey action allowFullScreen allowTransparency
    alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
    charSet checked classID className colSpan cols content contentEditable contextMenu
    controls coords crossOrigin data dateTime default defer dir disabled download draggable
    encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
    headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
    is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
    mediaGroup method min minLength multiple muted name noValidate nonce open
    optimum pattern placeholder poster preload radioGroup readOnly rel required
    reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
    shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
    summary tabIndex target title type useMap value width wmode wrap`,NOt=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
    onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
    onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
    onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
    onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
    onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
    onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,OOt="".concat(ROt," ").concat(NOt).split(/[\s\n]+/),LOt="aria-",POt="data-";function m_e(e,t){return e.indexOf(t)===0}function lo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=we({},t);var r={};return Object.keys(e).forEach(function(i){(n.aria&&(i==="role"||m_e(i,LOt))||n.data&&m_e(i,POt)||n.attr&&OOt.includes(i))&&(r[i]=e[i])}),r}function oje(e){return e&&se.isValidElement(e)&&e.type===se.Fragment}const Jue=(e,t,n)=>se.isValidElement(e)?se.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function as(e,t){return Jue(e,e,t)}const tP=(e,t,n,r,i)=>({background:e,border:`${Ce(r.lineWidth)} ${r.lineType} ${t}`,[`${i}-icon`]:{color:n}}),kOt=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:i,fontSize:a,fontSizeLG:o,lineHeight:s,borderRadiusLG:l,motionEaseInOutCirc:c,withDescriptionIconSize:u,colorText:d,colorTextHeading:f,withDescriptionPadding:p,defaultPadding:h}=e;return{[t]:Object.assign(Object.assign({},Wr(e)),{position:"relative",display:"flex",alignItems:"center",padding:h,wordWrap:"break-word",borderRadius:l,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:a,lineHeight:s},"&-message":{color:f},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${c}, opacity ${n} ${c},
        padding-top ${n} ${c}, padding-bottom ${n} ${c},
        margin-bottom ${n} ${c}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:p,[`${t}-icon`]:{marginInlineEnd:i,fontSize:u,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:f,fontSize:o},[`${t}-description`]:{display:"block",color:d}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},MOt=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:i,colorWarning:a,colorWarningBorder:o,colorWarningBg:s,colorError:l,colorErrorBorder:c,colorErrorBg:u,colorInfo:d,colorInfoBorder:f,colorInfoBg:p}=e;return{[t]:{"&-success":tP(i,r,n,e,t),"&-info":tP(p,f,d,e,t),"&-warning":tP(s,o,a,e,t),"&-error":Object.assign(Object.assign({},tP(u,c,l,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},DOt=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:i,fontSizeIcon:a,colorIcon:o,colorIconHover:s}=e;return{[t]:{"&-action":{marginInlineStart:i},[`${t}-close-icon`]:{marginInlineStart:i,padding:0,overflow:"hidden",fontSize:a,lineHeight:Ce(a),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:o,transition:`color ${r}`,"&:hover":{color:s}}},"&-close-text":{color:o,transition:`color ${r}`,"&:hover":{color:s}}}}},$Ot=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),FOt=Kr("Alert",e=>[kOt(e),MOt(e),DOt(e)],$Ot);var g_e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const BOt={success:pC,info:rO,error:fv,warning:__},jOt=e=>{const{icon:t,prefixCls:n,type:r}=e,i=BOt[r]||null;return t?Jue(t,b.createElement("span",{className:`${n}-icon`},t),()=>({className:Oe(`${n}-icon`,{[t.props.className]:t.props.className})})):b.createElement(i,{className:`${n}-icon`})},zOt=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:i,ariaProps:a}=e,o=r===!0||r===void 0?b.createElement(Ic,null):r;return t?b.createElement("button",Object.assign({type:"button",onClick:i,className:`${n}-close-icon`,tabIndex:0},a),o):null},sje=b.forwardRef((e,t)=>{const{description:n,prefixCls:r,message:i,banner:a,className:o,rootClassName:s,style:l,onMouseEnter:c,onMouseLeave:u,onClick:d,afterClose:f,showIcon:p,closable:h,closeText:m,closeIcon:g,action:v,id:y}=e,_=g_e(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[S,C]=b.useState(!1),w=b.useRef(null);b.useImperativeHandle(t,()=>({nativeElement:w.current}));const{getPrefixCls:x,direction:T,alert:A}=b.useContext(Sn),I=x("alert",r),[R,N,P]=FOt(I),L=k=>{var F;C(!0),(F=e.onClose)===null||F===void 0||F.call(e,k)},$=b.useMemo(()=>e.type!==void 0?e.type:a?"warning":"info",[e.type,a]),D=b.useMemo(()=>typeof h=="object"&&h.closeIcon||m?!0:typeof h=="boolean"?h:g!==!1&&g!==null&&g!==void 0?!0:!!A?.closable,[m,g,h,A?.closable]),z=a&&p===void 0?!0:p,U=Oe(I,`${I}-${$}`,{[`${I}-with-description`]:!!n,[`${I}-no-icon`]:!z,[`${I}-banner`]:!!a,[`${I}-rtl`]:T==="rtl"},A?.className,o,s,P,N),H=lo(_,{aria:!0,data:!0}),M=b.useMemo(()=>{var k,F;return typeof h=="object"&&h.closeIcon?h.closeIcon:m||(g!==void 0?g:typeof A?.closable=="object"&&(!((k=A?.closable)===null||k===void 0)&&k.closeIcon)?(F=A?.closable)===null||F===void 0?void 0:F.closeIcon:A?.closeIcon)},[g,h,m,A?.closeIcon]),B=b.useMemo(()=>{const k=h??A?.closable;return typeof k=="object"?g_e(k,["closeIcon"]):{}},[h,A?.closable]);return R(b.createElement(Sl,{visible:!S,motionName:`${I}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:k=>({maxHeight:k.offsetHeight}),onLeaveEnd:f},(k,F)=>{let{className:G,style:q}=k;return b.createElement("div",Object.assign({id:y,ref:Ll(w,F),"data-show":!S,className:Oe(U,G),style:Object.assign(Object.assign(Object.assign({},A?.style),l),q),onMouseEnter:c,onMouseLeave:u,onClick:d,role:"alert"},H),z?b.createElement(jOt,{description:n,icon:e.icon,prefixCls:I,type:$}):null,b.createElement("div",{className:`${I}-content`},i?b.createElement("div",{className:`${I}-message`},i):null,n?b.createElement("div",{className:`${I}-description`},n):null),v?b.createElement("div",{className:`${I}-action`},v):null,b.createElement(zOt,{isClosable:D,prefixCls:I,closeIcon:M,handleClose:L,ariaProps:B}))}))});function UOt(e,t,n){return t=LE(t),cBe(e,Kj()?Reflect.construct(t,n||[],LE(e).constructor):t.apply(e,n))}let HOt=function(e){function t(){var n;return co(this,t),n=UOt(this,t,arguments),n.state={error:void 0,info:{componentStack:""}},n}return Md(t,e),uo(t,[{key:"componentDidCatch",value:function(r,i){this.setState({error:r,info:i})}},{key:"render",value:function(){const{message:r,description:i,id:a,children:o}=this.props,{error:s,info:l}=this.state,c=l?.componentStack||null,u=typeof r>"u"?(s||"").toString():r,d=typeof i>"u"?c:i;return s?b.createElement(sje,{id:a,type:"error",message:u,description:b.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},d)}):o}}])}(b.Component);const Ka=sje;Ka.ErrorBoundary=HOt;const v_e=e=>typeof e=="object"&&e!=null&&e.nodeType===1,y_e=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",$G=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return y_e(n.overflowY,t)||y_e(n.overflowX,t)||(r=>{const i=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!i&&(i.clientHeight<r.scrollHeight||i.clientWidth<r.scrollWidth)})(e)}return!1},nP=(e,t,n,r,i,a,o,s)=>a<e&&o>t||a>e&&o<t?0:a<=e&&s<=n||o>=t&&s>=n?a-e-r:o>t&&s<n||a<e&&s>n?o-t+i:0,VOt=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},b_e=(e,t)=>{var n,r,i,a;if(typeof document>"u")return[];const{scrollMode:o,block:s,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,d=typeof c=="function"?c:D=>D!==c;if(!v_e(e))throw new TypeError("Invalid target");const f=document.scrollingElement||document.documentElement,p=[];let h=e;for(;v_e(h)&&d(h);){if(h=VOt(h),h===f){p.push(h);break}h!=null&&h===document.body&&$G(h)&&!$G(document.documentElement)||h!=null&&$G(h,u)&&p.push(h)}const m=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,g=(a=(i=window.visualViewport)==null?void 0:i.height)!=null?a:innerHeight,{scrollX:v,scrollY:y}=window,{height:_,width:S,top:C,right:w,bottom:x,left:T}=e.getBoundingClientRect(),{top:A,right:I,bottom:R,left:N}=(D=>{const z=window.getComputedStyle(D);return{top:parseFloat(z.scrollMarginTop)||0,right:parseFloat(z.scrollMarginRight)||0,bottom:parseFloat(z.scrollMarginBottom)||0,left:parseFloat(z.scrollMarginLeft)||0}})(e);let P=s==="start"||s==="nearest"?C-A:s==="end"?x+R:C+_/2-A+R,L=l==="center"?T+S/2-N+I:l==="end"?w+I:T-N;const $=[];for(let D=0;D<p.length;D++){const z=p[D],{height:U,width:H,top:M,right:B,bottom:k,left:F}=z.getBoundingClientRect();if(o==="if-needed"&&C>=0&&T>=0&&x<=g&&w<=m&&C>=M&&x<=k&&T>=F&&w<=B)return $;const G=getComputedStyle(z),q=parseInt(G.borderLeftWidth,10),W=parseInt(G.borderTopWidth,10),K=parseInt(G.borderRightWidth,10),J=parseInt(G.borderBottomWidth,10);let te=0,ae=0;const re="offsetWidth"in z?z.offsetWidth-z.clientWidth-q-K:0,ue="offsetHeight"in z?z.offsetHeight-z.clientHeight-W-J:0,de="offsetWidth"in z?z.offsetWidth===0?0:H/z.offsetWidth:0,fe="offsetHeight"in z?z.offsetHeight===0?0:U/z.offsetHeight:0;if(f===z)te=s==="start"?P:s==="end"?P-g:s==="nearest"?nP(y,y+g,g,W,J,y+P,y+P+_,_):P-g/2,ae=l==="start"?L:l==="center"?L-m/2:l==="end"?L-m:nP(v,v+m,m,q,K,v+L,v+L+S,S),te=Math.max(0,te+y),ae=Math.max(0,ae+v);else{te=s==="start"?P-M-W:s==="end"?P-k+J+ue:s==="nearest"?nP(M,k,U,W,J+ue,P,P+_,_):P-(M+U/2)+ue/2,ae=l==="start"?L-F-q:l==="center"?L-(F+H/2)+re/2:l==="end"?L-B+K+re:nP(F,B,H,q,K+re,L,L+S,S);const{scrollLeft:ge,scrollTop:oe}=z;te=fe===0?0:Math.max(0,Math.min(oe+te/fe,z.scrollHeight-U/fe+ue)),ae=de===0?0:Math.max(0,Math.min(ge+ae/de,z.scrollWidth-H/de+re)),P+=oe-te,L+=ge-ae}$.push({el:z,top:te,left:ae})}return $},GOt=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function qOt(e,t){if(!e.isConnected||!(i=>{let a=i;for(;a&&a.parentNode;){if(a.parentNode===document)return!0;a=a.parentNode instanceof ShadowRoot?a.parentNode.host:a.parentNode}return!1})(e))return;const n=(i=>{const a=window.getComputedStyle(i);return{top:parseFloat(a.scrollMarginTop)||0,right:parseFloat(a.scrollMarginRight)||0,bottom:parseFloat(a.scrollMarginBottom)||0,left:parseFloat(a.scrollMarginLeft)||0}})(e);if((i=>typeof i=="object"&&typeof i.behavior=="function")(t))return t.behavior(b_e(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:i,top:a,left:o}of b_e(e,GOt(t))){const s=a-n.top+n.bottom,l=o-n.left+n.right;i.scroll({top:s,left:l,behavior:r})}}function zre(e){return e!=null&&e===e.window}const WOt=e=>{var t,n;if(typeof window>"u")return 0;let r=0;return zre(e)?r=e.pageYOffset:e instanceof Document?r=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(r=e.scrollTop),e&&!zre(e)&&typeof r!="number"&&(r=(n=((t=e.ownerDocument)!==null&&t!==void 0?t:e).documentElement)===null||n===void 0?void 0:n.scrollTop),r};function YOt(e,t,n,r){const i=n-t;return e/=r/2,e<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t}function KOt(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:n=()=>window,callback:r,duration:i=450}=t,a=n(),o=WOt(a),s=Date.now(),l=()=>{const u=Date.now()-s,d=YOt(u>i?i:u,o,e,i);zre(a)?a.scrollTo(window.pageXOffset,d):a instanceof Document||a.constructor.name==="HTMLDocument"?a.documentElement.scrollTop=d:a.scrollTop=d,u<i?Tr(l):typeof r=="function"&&r()};Tr(l)}const Ja=e=>{const[,,,,t]=nl();return t?`${e}-css-var`:""};var Bt={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=Bt.F1&&n<=Bt.F12)return!1;switch(n){case Bt.ALT:case Bt.CAPS_LOCK:case Bt.CONTEXT_MENU:case Bt.CTRL:case Bt.DOWN:case Bt.END:case Bt.ESC:case Bt.HOME:case Bt.INSERT:case Bt.LEFT:case Bt.MAC_FF_META:case Bt.META:case Bt.NUMLOCK:case Bt.NUM_CENTER:case Bt.PAGE_DOWN:case Bt.PAGE_UP:case Bt.PAUSE:case Bt.PRINT_SCREEN:case Bt.RIGHT:case Bt.SHIFT:case Bt.UP:case Bt.WIN_KEY:case Bt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=Bt.ZERO&&t<=Bt.NINE||t>=Bt.NUM_ZERO&&t<=Bt.NUM_MULTIPLY||t>=Bt.A&&t<=Bt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case Bt.SPACE:case Bt.QUESTION_MARK:case Bt.NUM_PLUS:case Bt.NUM_MINUS:case Bt.NUM_PERIOD:case Bt.NUM_DIVISION:case Bt.SEMICOLON:case Bt.DASH:case Bt.EQUALS:case Bt.COMMA:case Bt.PERIOD:case Bt.SLASH:case Bt.APOSTROPHE:case Bt.SINGLE_QUOTE:case Bt.OPEN_SQUARE_BRACKET:case Bt.BACKSLASH:case Bt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},ede=b.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,i=e.className,a=e.duration,o=a===void 0?4.5:a,s=e.showProgress,l=e.pauseOnHover,c=l===void 0?!0:l,u=e.eventKey,d=e.content,f=e.closable,p=e.closeIcon,h=p===void 0?"x":p,m=e.props,g=e.onClick,v=e.onNoticeClose,y=e.times,_=e.hovering,S=b.useState(!1),C=Fe(S,2),w=C[0],x=C[1],T=b.useState(0),A=Fe(T,2),I=A[0],R=A[1],N=b.useState(0),P=Fe(N,2),L=P[0],$=P[1],D=_||w,z=o>0&&s,U=function(){v(u)},H=function(q){(q.key==="Enter"||q.code==="Enter"||q.keyCode===Bt.ENTER)&&U()};b.useEffect(function(){if(!D&&o>0){var G=Date.now()-L,q=setTimeout(function(){U()},o*1e3-L);return function(){c&&clearTimeout(q),$(Date.now()-G)}}},[o,D,y]),b.useEffect(function(){if(!D&&z&&(c||L===0)){var G=performance.now(),q,W=function K(){cancelAnimationFrame(q),q=requestAnimationFrame(function(J){var te=J+L-G,ae=Math.min(te/(o*1e3),1);R(ae*100),ae<1&&K()})};return W(),function(){c&&cancelAnimationFrame(q)}}},[o,L,D,z,y]);var M=b.useMemo(function(){return cn(f)==="object"&&f!==null?f:f?{closeIcon:h}:{}},[f,h]),B=lo(M,!0),k=100-(!I||I<0?0:I>100?100:I),F="".concat(n,"-notice");return b.createElement("div",Xe({},m,{ref:t,className:Oe(F,i,be({},"".concat(F,"-closable"),f)),style:r,onMouseEnter:function(q){var W;x(!0),m==null||(W=m.onMouseEnter)===null||W===void 0||W.call(m,q)},onMouseLeave:function(q){var W;x(!1),m==null||(W=m.onMouseLeave)===null||W===void 0||W.call(m,q)},onClick:g}),b.createElement("div",{className:"".concat(F,"-content")},d),f&&b.createElement("a",Xe({tabIndex:0,className:"".concat(F,"-close"),onKeyDown:H,"aria-label":"Close"},B,{onClick:function(q){q.preventDefault(),q.stopPropagation(),U()}}),M.closeIcon),z&&b.createElement("progress",{className:"".concat(F,"-progress"),max:"100",value:k},k+"%"))}),lje=se.createContext({}),cje=function(t){var n=t.children,r=t.classNames;return se.createElement(lje.Provider,{value:{classNames:r}},n)},__e=8,S_e=3,E_e=16,XOt=function(t){var n={offset:__e,threshold:S_e,gap:E_e};if(t&&cn(t)==="object"){var r,i,a;n.offset=(r=t.offset)!==null&&r!==void 0?r:__e,n.threshold=(i=t.threshold)!==null&&i!==void 0?i:S_e,n.gap=(a=t.gap)!==null&&a!==void 0?a:E_e}return[!!t,n]},ZOt=["className","style","classNames","styles"],QOt=function(t){var n=t.configList,r=t.placement,i=t.prefixCls,a=t.className,o=t.style,s=t.motion,l=t.onAllNoticeRemoved,c=t.onNoticeClose,u=t.stack,d=b.useContext(lje),f=d.classNames,p=b.useRef({}),h=b.useState(null),m=Fe(h,2),g=m[0],v=m[1],y=b.useState([]),_=Fe(y,2),S=_[0],C=_[1],w=n.map(function(D){return{config:D,key:String(D.key)}}),x=XOt(u),T=Fe(x,2),A=T[0],I=T[1],R=I.offset,N=I.threshold,P=I.gap,L=A&&(S.length>0||w.length<=N),$=typeof s=="function"?s(r):s;return b.useEffect(function(){A&&S.length>1&&C(function(D){return D.filter(function(z){return w.some(function(U){var H=U.key;return z===H})})})},[S,w,A]),b.useEffect(function(){var D;if(A&&p.current[(D=w[w.length-1])===null||D===void 0?void 0:D.key]){var z;v(p.current[(z=w[w.length-1])===null||z===void 0?void 0:z.key])}},[w,A]),se.createElement(Zue,Xe({key:r,className:Oe(i,"".concat(i,"-").concat(r),f?.list,a,be(be({},"".concat(i,"-stack"),!!A),"".concat(i,"-stack-expanded"),L)),style:o,keys:w,motionAppear:!0},$,{onAllRemoved:function(){l(r)}}),function(D,z){var U=D.config,H=D.className,M=D.style,B=D.index,k=U,F=k.key,G=k.times,q=String(F),W=U,K=W.className,J=W.style,te=W.classNames,ae=W.styles,re=$n(W,ZOt),ue=w.findIndex(function(xe){return xe.key===q}),de={};if(A){var fe=w.length-1-(ue>-1?ue:B-1),ge=r==="top"||r==="bottom"?"-50%":"0";if(fe>0){var oe,Ee,ce;de.height=L?(oe=p.current[q])===null||oe===void 0?void 0:oe.offsetHeight:g?.offsetHeight;for(var he=0,ye=0;ye<fe;ye++){var me;he+=((me=p.current[w[w.length-1-ye].key])===null||me===void 0?void 0:me.offsetHeight)+P}var _e=(L?he:fe*R)*(r.startsWith("top")?1:-1),Te=!L&&g!==null&&g!==void 0&&g.offsetWidth&&(Ee=p.current[q])!==null&&Ee!==void 0&&Ee.offsetWidth?(g?.offsetWidth-R*2*(fe<3?fe:3))/((ce=p.current[q])===null||ce===void 0?void 0:ce.offsetWidth):1;de.transform="translate3d(".concat(ge,", ").concat(_e,"px, 0) scaleX(").concat(Te,")")}else de.transform="translate3d(".concat(ge,", 0, 0)")}return se.createElement("div",{ref:z,className:Oe("".concat(i,"-notice-wrapper"),H,te?.wrapper),style:we(we(we({},M),de),ae?.wrapper),onMouseEnter:function(){return C(function(De){return De.includes(q)?De:[].concat(Tt(De),[q])})},onMouseLeave:function(){return C(function(De){return De.filter(function(Pe){return Pe!==q})})}},se.createElement(ede,Xe({},re,{ref:function(De){ue>-1?p.current[q]=De:delete p.current[q]},prefixCls:i,classNames:te,styles:ae,className:Oe(K,f?.notice),style:J,times:G,key:F,eventKey:F,onNoticeClose:c,hovering:A&&S.length>0})))})},JOt=b.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,i=e.container,a=e.motion,o=e.maxCount,s=e.className,l=e.style,c=e.onAllRemoved,u=e.stack,d=e.renderNotifications,f=b.useState([]),p=Fe(f,2),h=p[0],m=p[1],g=function(A){var I,R=h.find(function(N){return N.key===A});R==null||(I=R.onClose)===null||I===void 0||I.call(R),m(function(N){return N.filter(function(P){return P.key!==A})})};b.useImperativeHandle(t,function(){return{open:function(A){m(function(I){var R=Tt(I),N=R.findIndex(function($){return $.key===A.key}),P=we({},A);if(N>=0){var L;P.times=(((L=I[N])===null||L===void 0?void 0:L.times)||0)+1,R[N]=P}else P.times=0,R.push(P);return o>0&&R.length>o&&(R=R.slice(-o)),R})},close:function(A){g(A)},destroy:function(){m([])}}});var v=b.useState({}),y=Fe(v,2),_=y[0],S=y[1];b.useEffect(function(){var T={};h.forEach(function(A){var I=A.placement,R=I===void 0?"topRight":I;R&&(T[R]=T[R]||[],T[R].push(A))}),Object.keys(_).forEach(function(A){T[A]=T[A]||[]}),S(T)},[h]);var C=function(A){S(function(I){var R=we({},I),N=R[A]||[];return N.length||delete R[A],R})},w=b.useRef(!1);if(b.useEffect(function(){Object.keys(_).length>0?w.current=!0:w.current&&(c?.(),w.current=!1)},[_]),!i)return null;var x=Object.keys(_);return Ou.createPortal(b.createElement(b.Fragment,null,x.map(function(T){var A=_[T],I=b.createElement(QOt,{key:T,configList:A,placement:T,prefixCls:r,className:s?.(T),style:l?.(T),motion:a,onNoticeClose:g,onAllNoticeRemoved:C,stack:u});return d?d(I,{prefixCls:r,key:T}):I})),i)}),e8t=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],t8t=function(){return document.body},C_e=0;function n8t(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(i){i&&Object.keys(i).forEach(function(a){var o=i[a];o!==void 0&&(e[a]=o)})}),e}function uje(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?t8t:t,r=e.motion,i=e.prefixCls,a=e.maxCount,o=e.className,s=e.style,l=e.onAllRemoved,c=e.stack,u=e.renderNotifications,d=$n(e,e8t),f=b.useState(),p=Fe(f,2),h=p[0],m=p[1],g=b.useRef(),v=b.createElement(JOt,{container:h,ref:g,prefixCls:i,motion:r,maxCount:a,className:o,style:s,onAllRemoved:l,stack:c,renderNotifications:u}),y=b.useState([]),_=Fe(y,2),S=_[0],C=_[1],w=b.useMemo(function(){return{open:function(T){var A=n8t(d,T);(A.key===null||A.key===void 0)&&(A.key="rc-notification-".concat(C_e),C_e+=1),C(function(I){return[].concat(Tt(I),[{type:"open",config:A}])})},close:function(T){C(function(A){return[].concat(Tt(A),[{type:"close",key:T}])})},destroy:function(){C(function(T){return[].concat(Tt(T),[{type:"destroy"}])})}}},[]);return b.useEffect(function(){m(n())}),b.useEffect(function(){g.current&&S.length&&(S.forEach(function(x){switch(x.type){case"open":g.current.open(x.config);break;case"close":g.current.close(x.key);break;case"destroy":g.current.destroy();break}}),C(function(x){return x.filter(function(T){return!S.includes(T)})}))},[S]),[w,v]}const cT=se.createContext(void 0),cS=100,r8t=10,tde=cS*r8t,dje={Modal:cS,Drawer:cS,Popover:cS,Popconfirm:cS,Tooltip:cS,Tour:cS},i8t={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function a8t(e){return e in dje}function Em(e,t){const[,n]=nl(),r=se.useContext(cT),i=a8t(e);let a;if(t!==void 0)a=[t,t];else{let o=r??0;i?o+=(r?0:n.zIndexPopupBase)+dje[e]:o+=i8t[e],a=[r===void 0?t:o,o]}return a}const o8t=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:i,colorSuccess:a,colorError:o,colorWarning:s,colorInfo:l,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:d,marginXS:f,paddingXS:p,borderRadiusLG:h,zIndexPopup:m,contentPadding:g,contentBg:v}=e,y=`${t}-notice`,_=new Dr("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:p,transform:"translateY(0)",opacity:1}}),S=new Dr("MessageMoveOut",{"0%":{maxHeight:e.height,padding:p,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),C={padding:p,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:f,fontSize:c},[`${y}-content`]:{display:"inline-block",padding:g,background:v,borderRadius:h,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:a},[`${t}-error > ${n}`]:{color:o},[`${t}-warning > ${n}`]:{color:s},[`${t}-info > ${n},
      ${t}-loading > ${n}`]:{color:l}};return[{[t]:Object.assign(Object.assign({},Wr(e)),{color:i,position:"fixed",top:f,width:"100%",pointerEvents:"none",zIndex:m,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
        ${t}-move-up-appear,
        ${t}-move-up-enter
      `]:{animationName:_,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`
        ${t}-move-up-appear${t}-move-up-appear-active,
        ${t}-move-up-enter${t}-move-up-enter-active
      `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:S,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${y}-wrapper`]:Object.assign({},C)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},C),{padding:0,textAlign:"start"})}]},s8t=e=>({zIndexPopup:e.zIndexPopupBase+tde+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),fje=Kr("Message",e=>{const t=br(e,{height:150});return[o8t(t)]},s8t);var l8t=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const c8t={info:b.createElement(rO,null),success:b.createElement(pC,null),error:b.createElement(fv,null),warning:b.createElement(__,null),loading:b.createElement(Np,null)},pje=e=>{let{prefixCls:t,type:n,icon:r,children:i}=e;return b.createElement("div",{className:Oe(`${t}-custom-content`,`${t}-${n}`)},r||c8t[n],b.createElement("span",null,i))},u8t=e=>{const{prefixCls:t,className:n,type:r,icon:i,content:a}=e,o=l8t(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=b.useContext(Sn),l=t||s("message"),c=Ja(l),[u,d,f]=fje(l,c);return u(b.createElement(ede,Object.assign({},o,{prefixCls:l,className:Oe(n,d,`${l}-notice-pure-panel`,f,c),eventKey:"pure",duration:null,content:b.createElement(pje,{prefixCls:l,type:r,icon:i},a)})))};function d8t(e,t){return{motionName:t??`${e}-move-up`}}function nde(e){let t;const n=new Promise(i=>{t=e(()=>{i(!0)})}),r=()=>{t?.()};return r.then=(i,a)=>n.then(i,a),r.promise=n,r}var f8t=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const p8t=8,h8t=3,m8t=e=>{let{children:t,prefixCls:n}=e;const r=Ja(n),[i,a,o]=fje(n,r);return i(b.createElement(cje,{classNames:{list:Oe(a,o,r)}},t))},g8t=(e,t)=>{let{prefixCls:n,key:r}=t;return b.createElement(m8t,{prefixCls:n,key:r},e)},v8t=b.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:i,maxCount:a,duration:o=h8t,rtl:s,transitionName:l,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:d,message:f,direction:p}=b.useContext(Sn),h=r||u("message"),m=()=>({left:"50%",transform:"translateX(-50%)",top:n??p8t}),g=()=>Oe({[`${h}-rtl`]:s??p==="rtl"}),v=()=>d8t(h,l),y=b.createElement("span",{className:`${h}-close-x`},b.createElement(Ic,{className:`${h}-close-icon`})),[_,S]=uje({prefixCls:h,style:m,className:g,motion:v,closable:!1,closeIcon:y,duration:o,getContainer:()=>i?.()||d?.()||document.body,maxCount:a,onAllRemoved:c,renderNotifications:g8t});return b.useImperativeHandle(t,()=>Object.assign(Object.assign({},_),{prefixCls:h,message:f})),S});let w_e=0;function hje(e){const t=b.useRef(null);return g0(),[b.useMemo(()=>{const r=l=>{var c;(c=t.current)===null||c===void 0||c.close(l)},i=l=>{if(!t.current){const w=()=>{};return w.then=()=>{},w}const{open:c,prefixCls:u,message:d}=t.current,f=`${u}-notice`,{content:p,icon:h,type:m,key:g,className:v,style:y,onClose:_}=l,S=f8t(l,["content","icon","type","key","className","style","onClose"]);let C=g;return C==null&&(w_e+=1,C=`antd-message-${w_e}`),nde(w=>(c(Object.assign(Object.assign({},S),{key:C,content:b.createElement(pje,{prefixCls:u,type:m,icon:h},p),placement:"top",className:Oe(m&&`${f}-${m}`,v,d?.className),style:Object.assign(Object.assign({},d?.style),y),onClose:()=>{_?.(),w()}})),()=>{r(C)}))},o={open:i,destroy:l=>{var c;l!==void 0?r(l):(c=t.current)===null||c===void 0||c.destroy()}};return["info","success","warning","error","loading"].forEach(l=>{const c=(u,d,f)=>{let p;u&&typeof u=="object"&&"content"in u?p=u:p={content:u};let h,m;typeof d=="function"?m=d:(h=d,m=f);const g=Object.assign(Object.assign({onClose:m,duration:h},p),{type:l});return i(g)};o[l]=c}),o},[]),b.createElement(v8t,Object.assign({key:"message-holder"},e,{ref:t}))]}function y8t(e){return hje(e)}function b8t(){const[e,t]=b.useState([]),n=b.useCallback(r=>(t(i=>[].concat(Tt(i),[r])),()=>{t(i=>i.filter(a=>a!==r))}),[]);return[e,n]}function xc(){xc=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(D,z,U){D[z]=U.value},a=typeof Symbol=="function"?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function c(D,z,U){return Object.defineProperty(D,z,{value:U,enumerable:!0,configurable:!0,writable:!0}),D[z]}try{c({},"")}catch{c=function(U,H,M){return U[H]=M}}function u(D,z,U,H){var M=z&&z.prototype instanceof v?z:v,B=Object.create(M.prototype),k=new L(H||[]);return i(B,"_invoke",{value:I(D,U,k)}),B}function d(D,z,U){try{return{type:"normal",arg:D.call(z,U)}}catch(H){return{type:"throw",arg:H}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",g={};function v(){}function y(){}function _(){}var S={};c(S,o,function(){return this});var C=Object.getPrototypeOf,w=C&&C(C($([])));w&&w!==n&&r.call(w,o)&&(S=w);var x=_.prototype=v.prototype=Object.create(S);function T(D){["next","throw","return"].forEach(function(z){c(D,z,function(U){return this._invoke(z,U)})})}function A(D,z){function U(M,B,k,F){var G=d(D[M],D,B);if(G.type!=="throw"){var q=G.arg,W=q.value;return W&&cn(W)=="object"&&r.call(W,"__await")?z.resolve(W.__await).then(function(K){U("next",K,k,F)},function(K){U("throw",K,k,F)}):z.resolve(W).then(function(K){q.value=K,k(q)},function(K){return U("throw",K,k,F)})}F(G.arg)}var H;i(this,"_invoke",{value:function(B,k){function F(){return new z(function(G,q){U(B,k,G,q)})}return H=H?H.then(F,F):F()}})}function I(D,z,U){var H=f;return function(M,B){if(H===h)throw Error("Generator is already running");if(H===m){if(M==="throw")throw B;return{value:e,done:!0}}for(U.method=M,U.arg=B;;){var k=U.delegate;if(k){var F=R(k,U);if(F){if(F===g)continue;return F}}if(U.method==="next")U.sent=U._sent=U.arg;else if(U.method==="throw"){if(H===f)throw H=m,U.arg;U.dispatchException(U.arg)}else U.method==="return"&&U.abrupt("return",U.arg);H=h;var G=d(D,z,U);if(G.type==="normal"){if(H=U.done?m:p,G.arg===g)continue;return{value:G.arg,done:U.done}}G.type==="throw"&&(H=m,U.method="throw",U.arg=G.arg)}}}function R(D,z){var U=z.method,H=D.iterator[U];if(H===e)return z.delegate=null,U==="throw"&&D.iterator.return&&(z.method="return",z.arg=e,R(D,z),z.method==="throw")||U!=="return"&&(z.method="throw",z.arg=new TypeError("The iterator does not provide a '"+U+"' method")),g;var M=d(H,D.iterator,z.arg);if(M.type==="throw")return z.method="throw",z.arg=M.arg,z.delegate=null,g;var B=M.arg;return B?B.done?(z[D.resultName]=B.value,z.next=D.nextLoc,z.method!=="return"&&(z.method="next",z.arg=e),z.delegate=null,g):B:(z.method="throw",z.arg=new TypeError("iterator result is not an object"),z.delegate=null,g)}function N(D){var z={tryLoc:D[0]};1 in D&&(z.catchLoc=D[1]),2 in D&&(z.finallyLoc=D[2],z.afterLoc=D[3]),this.tryEntries.push(z)}function P(D){var z=D.completion||{};z.type="normal",delete z.arg,D.completion=z}function L(D){this.tryEntries=[{tryLoc:"root"}],D.forEach(N,this),this.reset(!0)}function $(D){if(D||D===""){var z=D[o];if(z)return z.call(D);if(typeof D.next=="function")return D;if(!isNaN(D.length)){var U=-1,H=function M(){for(;++U<D.length;)if(r.call(D,U))return M.value=D[U],M.done=!1,M;return M.value=e,M.done=!0,M};return H.next=H}}throw new TypeError(cn(D)+" is not iterable")}return y.prototype=_,i(x,"constructor",{value:_,configurable:!0}),i(_,"constructor",{value:y,configurable:!0}),y.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(D){var z=typeof D=="function"&&D.constructor;return!!z&&(z===y||(z.displayName||z.name)==="GeneratorFunction")},t.mark=function(D){return Object.setPrototypeOf?Object.setPrototypeOf(D,_):(D.__proto__=_,c(D,l,"GeneratorFunction")),D.prototype=Object.create(x),D},t.awrap=function(D){return{__await:D}},T(A.prototype),c(A.prototype,s,function(){return this}),t.AsyncIterator=A,t.async=function(D,z,U,H,M){M===void 0&&(M=Promise);var B=new A(u(D,z,U,H),M);return t.isGeneratorFunction(z)?B:B.next().then(function(k){return k.done?k.value:B.next()})},T(x),c(x,l,"Generator"),c(x,o,function(){return this}),c(x,"toString",function(){return"[object Generator]"}),t.keys=function(D){var z=Object(D),U=[];for(var H in z)U.push(H);return U.reverse(),function M(){for(;U.length;){var B=U.pop();if(B in z)return M.value=B,M.done=!1,M}return M.done=!0,M}},t.values=$,L.prototype={constructor:L,reset:function(z){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!z)for(var U in this)U.charAt(0)==="t"&&r.call(this,U)&&!isNaN(+U.slice(1))&&(this[U]=e)},stop:function(){this.done=!0;var z=this.tryEntries[0].completion;if(z.type==="throw")throw z.arg;return this.rval},dispatchException:function(z){if(this.done)throw z;var U=this;function H(q,W){return k.type="throw",k.arg=z,U.next=q,W&&(U.method="next",U.arg=e),!!W}for(var M=this.tryEntries.length-1;M>=0;--M){var B=this.tryEntries[M],k=B.completion;if(B.tryLoc==="root")return H("end");if(B.tryLoc<=this.prev){var F=r.call(B,"catchLoc"),G=r.call(B,"finallyLoc");if(F&&G){if(this.prev<B.catchLoc)return H(B.catchLoc,!0);if(this.prev<B.finallyLoc)return H(B.finallyLoc)}else if(F){if(this.prev<B.catchLoc)return H(B.catchLoc,!0)}else{if(!G)throw Error("try statement without catch or finally");if(this.prev<B.finallyLoc)return H(B.finallyLoc)}}}},abrupt:function(z,U){for(var H=this.tryEntries.length-1;H>=0;--H){var M=this.tryEntries[H];if(M.tryLoc<=this.prev&&r.call(M,"finallyLoc")&&this.prev<M.finallyLoc){var B=M;break}}B&&(z==="break"||z==="continue")&&B.tryLoc<=U&&U<=B.finallyLoc&&(B=null);var k=B?B.completion:{};return k.type=z,k.arg=U,B?(this.method="next",this.next=B.finallyLoc,g):this.complete(k)},complete:function(z,U){if(z.type==="throw")throw z.arg;return z.type==="break"||z.type==="continue"?this.next=z.arg:z.type==="return"?(this.rval=this.arg=z.arg,this.method="return",this.next="end"):z.type==="normal"&&U&&(this.next=U),g},finish:function(z){for(var U=this.tryEntries.length-1;U>=0;--U){var H=this.tryEntries[U];if(H.finallyLoc===z)return this.complete(H.completion,H.afterLoc),P(H),g}},catch:function(z){for(var U=this.tryEntries.length-1;U>=0;--U){var H=this.tryEntries[U];if(H.tryLoc===z){var M=H.completion;if(M.type==="throw"){var B=M.arg;P(H)}return B}}throw Error("illegal catch attempt")},delegateYield:function(z,U,H){return this.delegate={iterator:$(z),resultName:U,nextLoc:H},this.method==="next"&&(this.arg=e),g}},t}function x_e(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,i)}function w_(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(l){x_e(a,r,i,o,s,"next",l)}function s(l){x_e(a,r,i,o,s,"throw",l)}o(void 0)})}}var mO=we({},G1t),_8t=mO.version,S8t=mO.render,E8t=mO.unmountComponentAtNode,ez;try{var C8t=Number((_8t||"").split(".")[0]);C8t>=18&&(ez=mO.createRoot)}catch{}function T_e(e){var t=mO.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&cn(t)==="object"&&(t.usingClientEntryPoint=e)}var F$="__rc_react_root__";function w8t(e,t){T_e(!0);var n=t[F$]||ez(t);T_e(!1),n.render(e),t[F$]=n}function x8t(e,t){S8t(e,t)}function tz(e,t){if(ez){w8t(e,t);return}x8t(e,t)}function T8t(e){return Ure.apply(this,arguments)}function Ure(){return Ure=w_(xc().mark(function e(t){return xc().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var i;(i=t[F$])===null||i===void 0||i.unmount(),delete t[F$]}));case 1:case"end":return r.stop()}},e)})),Ure.apply(this,arguments)}function I8t(e){E8t(e)}function mje(e){return Hre.apply(this,arguments)}function Hre(){return Hre=w_(xc().mark(function e(t){return xc().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(ez===void 0){r.next=2;break}return r.abrupt("return",T8t(t));case 2:I8t(t);case 3:case"end":return r.stop()}},e)})),Hre.apply(this,arguments)}const FG=()=>({height:0,opacity:0}),I_e=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},A8t=e=>({height:e?e.offsetHeight:0}),BG=(e,t)=>t?.deadline===!0||t.propertyName==="height",C3=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:LN}-motion-collapse`,onAppearStart:FG,onEnterStart:FG,onAppearActive:I_e,onEnterActive:I_e,onLeaveStart:A8t,onLeaveActive:FG,onAppearEnd:BG,onEnterEnd:BG,onLeaveEnd:BG,motionDeadline:500}},Ad=(e,t,n)=>n!==void 0?n:`${e}-${t}`,uT=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var i=e.getBoundingClientRect(),a=i.width,o=i.height;if(a||o)return!0}}return!1},R8t=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},N8t=K6t("Wave",e=>[R8t(e)]),nz=`${LN}-wave-target`;function O8t(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return t&&t[1]&&t[2]&&t[3]?!(t[1]===t[2]&&t[2]===t[3]):!0}function jG(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&O8t(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function L8t(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return jG(t)?t:jG(n)?n:jG(r)?r:null}function zG(e){return Number.isNaN(e)?0:e}const P8t=e=>{const{className:t,target:n,component:r}=e,i=b.useRef(null),[a,o]=b.useState(null),[s,l]=b.useState([]),[c,u]=b.useState(0),[d,f]=b.useState(0),[p,h]=b.useState(0),[m,g]=b.useState(0),[v,y]=b.useState(!1),_={left:c,top:d,width:p,height:m,borderRadius:s.map(w=>`${w}px`).join(" ")};a&&(_["--wave-color"]=a);function S(){const w=getComputedStyle(n);o(L8t(n));const x=w.position==="static",{borderLeftWidth:T,borderTopWidth:A}=w;u(x?n.offsetLeft:zG(-parseFloat(T))),f(x?n.offsetTop:zG(-parseFloat(A))),h(n.offsetWidth),g(n.offsetHeight);const{borderTopLeftRadius:I,borderTopRightRadius:R,borderBottomLeftRadius:N,borderBottomRightRadius:P}=w;l([I,R,P,N].map(L=>zG(parseFloat(L))))}if(b.useEffect(()=>{if(n){const w=Tr(()=>{S(),y(!0)});let x;return typeof ResizeObserver<"u"&&(x=new ResizeObserver(S),x.observe(n)),()=>{Tr.cancel(w),x?.disconnect()}}},[]),!v)return null;const C=(r==="Checkbox"||r==="Radio")&&n?.classList.contains(nz);return b.createElement(Sl,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(w,x)=>{var T;if(x.deadline||x.propertyName==="opacity"){const A=(T=i.current)===null||T===void 0?void 0:T.parentElement;mje(A).then(()=>{A?.remove()})}return!1}},(w,x)=>{let{className:T}=w;return b.createElement("div",{ref:Ll(i,x),className:Oe(t,T,{"wave-quick":C}),style:_})})},k8t=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",e?.insertBefore(i,e?.firstChild),tz(b.createElement(P8t,Object.assign({},t,{target:e})),i)},M8t=(e,t,n)=>{const{wave:r}=b.useContext(Sn),[,i,a]=nl(),o=gr(c=>{const u=e.current;if(r?.disabled||!u)return;const d=u.querySelector(`.${nz}`)||u,{showEffect:f}=r||{};(f||k8t)(d,{className:t,token:i,component:n,event:c,hashId:a})}),s=b.useRef();return c=>{Tr.cancel(s.current),s.current=Tr(()=>{o(c)})}},gO=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:i}=b.useContext(Sn),a=b.useRef(null),o=i("wave"),[,s]=N8t(o),l=M8t(a,Oe(o,s),r);if(se.useEffect(()=>{const u=a.current;if(!u||u.nodeType!==1||n)return;const d=f=>{!uT(f.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")||u.className.includes("-leave")||l(f)};return u.addEventListener("click",d,!0),()=>{u.removeEventListener("click",d,!0)}},[n]),!se.isValidElement(t))return t??null;const c=sm(t)?Ll(t.ref,a):a;return as(t,{ref:c})},ks=e=>{const t=se.useContext(PE);return se.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},D8t=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},$8t=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},F8t=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},gje=Kr("Space",e=>{const t=br(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[$8t(t),F8t(t),D8t(t)]},()=>({}),{resetStyle:!1});var vje=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const rz=b.createContext(null),x_=(e,t)=>{const n=b.useContext(rz),r=b.useMemo(()=>{if(!n)return"";const{compactDirection:i,isFirstItem:a,isLastItem:o}=n,s=i==="vertical"?"-vertical-":"-";return Oe(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:a,[`${e}-compact${s}last-item`]:o,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n?.compactSize,compactDirection:n?.compactDirection,compactItemClassnames:r}},B8t=e=>{let{children:t}=e;return b.createElement(rz.Provider,{value:null},t)},j8t=e=>{var{children:t}=e,n=vje(e,["children"]);return b.createElement(rz.Provider,{value:n},t)},z8t=e=>{const{getPrefixCls:t,direction:n}=b.useContext(Sn),{size:r,direction:i,block:a,prefixCls:o,className:s,rootClassName:l,children:c}=e,u=vje(e,["size","direction","block","prefixCls","className","rootClassName","children"]),d=ks(_=>r??_),f=t("space-compact",o),[p,h]=gje(f),m=Oe(f,h,{[`${f}-rtl`]:n==="rtl",[`${f}-block`]:a,[`${f}-vertical`]:i==="vertical"},s,l),g=b.useContext(rz),v=_l(c),y=b.useMemo(()=>v.map((_,S)=>{const C=_?.key||`${f}-item-${S}`;return b.createElement(j8t,{key:C,compactSize:d,compactDirection:i,isFirstItem:S===0&&(!g||g?.isFirstItem),isLastItem:S===v.length-1&&(!g||g?.isLastItem)},_)}),[r,v,g]);return v.length===0?null:p(b.createElement("div",Object.assign({className:m},u),y))};var U8t=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const yje=b.createContext(void 0),H8t=e=>{const{getPrefixCls:t,direction:n}=b.useContext(Sn),{prefixCls:r,size:i,className:a}=e,o=U8t(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=nl();let c="";switch(i){case"large":c="lg";break;case"small":c="sm";break}const u=Oe(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:n==="rtl"},a,l);return b.createElement(yje.Provider,{value:i},b.createElement("div",Object.assign({},o,{className:u})))},A_e=/^[\u4e00-\u9fa5]{2}$/,Vre=A_e.test.bind(A_e);function rde(e){return e==="danger"?{danger:!0}:{type:e}}function R_e(e){return typeof e=="string"}function UG(e){return e==="text"||e==="link"}function V8t(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&R_e(e.type)&&Vre(e.props.children)?as(e,{children:e.props.children.split("").join(n)}):R_e(e)?Vre(e)?se.createElement("span",null,e.split("").join(n)):se.createElement("span",null,e):oje(e)?se.createElement("span",null,e):e}function G8t(e,t){let n=!1;const r=[];return se.Children.forEach(e,i=>{const a=typeof i,o=a==="string"||a==="number";if(n&&o){const s=r.length-1,l=r[s];r[s]=`${l}${i}`}else r.push(i);n=o}),se.Children.map(r,i=>V8t(i,t))}const bje=b.forwardRef((e,t)=>{const{className:n,style:r,children:i,prefixCls:a}=e,o=Oe(`${a}-icon`,n);return se.createElement("span",{ref:t,className:o,style:r},i)}),N_e=b.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:i,iconClassName:a}=e,o=Oe(`${n}-loading-icon`,r);return se.createElement(bje,{prefixCls:n,className:o,style:i,ref:t},se.createElement(Np,{className:a}))}),HG=()=>({width:0,opacity:0,transform:"scale(0)"}),VG=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),q8t=e=>{const{prefixCls:t,loading:n,existIcon:r,className:i,style:a}=e,o=!!n;return r?se.createElement(N_e,{prefixCls:t,className:i,style:a}):se.createElement(Sl,{visible:o,motionName:`${t}-loading-icon-motion`,motionLeave:o,removeOnLeave:!0,onAppearStart:HG,onAppearActive:VG,onEnterStart:HG,onEnterActive:VG,onLeaveStart:VG,onLeaveActive:HG},(s,l)=>{let{className:c,style:u}=s;return se.createElement(N_e,{prefixCls:t,className:i,style:Object.assign(Object.assign({},a),u),ref:l,iconClassName:c})})},O_e=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),W8t=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:i,colorErrorHover:a}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},O_e(`${t}-primary`,i),O_e(`${t}-danger`,a)]}},_je=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return br(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},Sje=e=>{var t,n,r,i,a,o;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,l=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,c=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,u=(i=e.contentLineHeight)!==null&&i!==void 0?i:K9(s),d=(a=e.contentLineHeightSM)!==null&&a!==void 0?a:K9(l),f=(o=e.contentLineHeightLG)!==null&&o!==void 0?o:K9(c);return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:f,paddingBlock:Math.max((e.controlHeight-s*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*f)/2-e.lineWidth,0)}},Y8t=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${Ce(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:1},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},kp(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},"&-icon-end":{flexDirection:"row-reverse"}}}},i0=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),K8t=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),X8t=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),Z8t=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),kN=(e,t,n,r,i,a,o,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},i0(e,Object.assign({background:t},o),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:i||void 0,borderColor:a||void 0}})}),ide=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},Z8t(e))}),Eje=e=>Object.assign({},ide(e)),B$=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Cje=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Eje(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),i0(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),kN(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},i0(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),kN(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),ide(e))}),Q8t=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Eje(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),i0(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),kN(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({background:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},i0(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),kN(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),ide(e))}),J8t=e=>Object.assign(Object.assign({},Cje(e)),{borderStyle:"dashed"}),eLt=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},i0(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),B$(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},i0(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),B$(e))}),tLt=e=>Object.assign(Object.assign(Object.assign({},i0(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),B$(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},B$(e)),i0(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive}))}),nLt=e=>{const{componentCls:t}=e;return{[`${t}-default`]:Cje(e),[`${t}-primary`]:Q8t(e),[`${t}-dashed`]:J8t(e),[`${t}-link`]:eLt(e),[`${t}-text`]:tLt(e),[`${t}-ghost`]:kN(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},ade=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:i,lineHeight:a,borderRadius:o,buttonPaddingHorizontal:s,iconCls:l,buttonPaddingVertical:c}=e,u=`${n}-icon-only`;return[{[`${t}`]:{fontSize:i,lineHeight:a,height:r,padding:`${Ce(c)} ${Ce(s)}`,borderRadius:o,[`&${u}`]:{width:r,paddingInline:0,[`&${n}-compact-item`]:{flex:"none"},[`&${n}-round`]:{width:"auto"},[l]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:K8t(e)},{[`${n}${n}-round${t}`]:X8t(e)}]},rLt=e=>{const t=br(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return ade(t,e.componentCls)},iLt=e=>{const t=br(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return ade(t,`${e.componentCls}-sm`)},aLt=e=>{const t=br(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return ade(t,`${e.componentCls}-lg`)},oLt=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},sLt=Kr("Button",e=>{const t=_je(e);return[Y8t(t),rLt(t),iLt(t),aLt(t),oLt(t),nLt(t),W8t(t)]},Sje,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function lLt(e,t,n){const{focusElCls:r,focus:i,borderElCls:a}=n,o=a?"> *":"",s=["hover",i?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${o}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${o}`]:{zIndex:0}})}}function cLt(e,t,n){const{borderElCls:r}=n,i=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function vO(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},lLt(e,r,t)),cLt(n,r,t))}}function uLt(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function dLt(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function fLt(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},uLt(e,t)),dLt(e.componentCls,t))}}const pLt=e=>{const{componentCls:t,calc:n}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${Ce(e.lineWidth)} * 2)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${Ce(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},hLt=bC(["Button","compact"],e=>{const t=_je(e);return[vO(t),fLt(t),pLt(t)]},Sje);var mLt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function gLt(e){if(typeof e=="object"&&e){let t=e?.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}const vLt=se.forwardRef((e,t)=>{var n,r,i;const{loading:a=!1,prefixCls:o,type:s,danger:l=!1,shape:c="default",size:u,styles:d,disabled:f,className:p,rootClassName:h,children:m,icon:g,iconPosition:v="start",ghost:y=!1,block:_=!1,htmlType:S="button",classNames:C,style:w={},autoInsertSpace:x}=e,T=mLt(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),A=s||"default",{getPrefixCls:I,direction:R,button:N}=b.useContext(Sn),P=(n=x??N?.autoInsertSpace)!==null&&n!==void 0?n:!0,L=I("btn",o),[$,D,z]=sLt(L),U=b.useContext(wc),H=f??U,M=b.useContext(yje),B=b.useMemo(()=>gLt(a),[a]),[k,F]=b.useState(B.loading),[G,q]=b.useState(!1),K=Ll(t,b.createRef()),J=b.Children.count(m)===1&&!g&&!UG(A);b.useEffect(()=>{let xe=null;B.delay>0?xe=setTimeout(()=>{xe=null,F(!0)},B.delay):F(B.loading);function De(){xe&&(clearTimeout(xe),xe=null)}return De},[B]),b.useEffect(()=>{if(!K||!K.current||!P)return;const xe=K.current.textContent;J&&Vre(xe)?G||q(!0):G&&q(!1)},[K]);const te=xe=>{const{onClick:De}=e;if(k||H){xe.preventDefault();return}De?.(xe)},{compactSize:ae,compactItemClassnames:re}=x_(L,R),ue={large:"lg",small:"sm",middle:void 0},de=ks(xe=>{var De,Pe;return(Pe=(De=u??ae)!==null&&De!==void 0?De:M)!==null&&Pe!==void 0?Pe:xe}),fe=de&&ue[de]||"",ge=k?"loading":g,oe=Xa(T,["navigate"]),Ee=Oe(L,D,z,{[`${L}-${c}`]:c!=="default"&&c,[`${L}-${A}`]:A,[`${L}-${fe}`]:fe,[`${L}-icon-only`]:!m&&m!==0&&!!ge,[`${L}-background-ghost`]:y&&!UG(A),[`${L}-loading`]:k,[`${L}-two-chinese-chars`]:G&&P&&!k,[`${L}-block`]:_,[`${L}-dangerous`]:l,[`${L}-rtl`]:R==="rtl",[`${L}-icon-end`]:v==="end"},re,p,h,N?.className),ce=Object.assign(Object.assign({},N?.style),w),he=Oe(C?.icon,(r=N?.classNames)===null||r===void 0?void 0:r.icon),ye=Object.assign(Object.assign({},d?.icon||{}),((i=N?.styles)===null||i===void 0?void 0:i.icon)||{}),me=g&&!k?se.createElement(bje,{prefixCls:L,className:he,style:ye},g):se.createElement(q8t,{existIcon:!!g,prefixCls:L,loading:k}),_e=m||m===0?G8t(m,J&&P):null;if(oe.href!==void 0)return $(se.createElement("a",Object.assign({},oe,{className:Oe(Ee,{[`${L}-disabled`]:H}),href:H?void 0:oe.href,style:ce,onClick:te,ref:K,tabIndex:H?-1:0}),me,_e));let Te=se.createElement("button",Object.assign({},T,{type:S,className:Ee,style:ce,onClick:te,disabled:H,ref:K}),me,_e,!!re&&se.createElement(hLt,{key:"compact",prefixCls:L}));return UG(A)||(Te=se.createElement(gO,{component:"Button",disabled:k},Te)),$(Te)}),ut=vLt;ut.Group=H8t;ut.__ANT_BUTTON=!0;function GG(e){return!!e?.then}const ode=e=>{const{type:t,children:n,prefixCls:r,buttonProps:i,close:a,autoFocus:o,emitEvent:s,isSilent:l,quitOnNullishReturnValue:c,actionFn:u}=e,d=b.useRef(!1),f=b.useRef(null),[p,h]=kE(!1),m=function(){a?.apply(void 0,arguments)};b.useEffect(()=>{let y=null;return o&&(y=setTimeout(()=>{var _;(_=f.current)===null||_===void 0||_.focus()})),()=>{y&&clearTimeout(y)}},[]);const g=y=>{GG(y)&&(h(!0),y.then(function(){h(!1,!0),m.apply(void 0,arguments),d.current=!1},_=>{if(h(!1,!0),d.current=!1,!l?.())return Promise.reject(_)}))},v=y=>{if(d.current)return;if(d.current=!0,!u){m();return}let _;if(s){if(_=u(y),c&&!GG(_)){d.current=!1,m(y);return}}else if(u.length)_=u(a),d.current=!1;else if(_=u(),!GG(_)){m();return}g(_)};return b.createElement(ut,Object.assign({},rde(t),{onClick:v,loading:p,prefixCls:r},i,{ref:f}),n)},yO=se.createContext({}),{Provider:wje}=yO,L_e=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:i,rootPrefixCls:a,close:o,onCancel:s,onConfirm:l}=b.useContext(yO);return i?se.createElement(ode,{isSilent:r,actionFn:s,close:function(){o?.apply(void 0,arguments),l?.(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${a}-btn`},n):null},P_e=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:i,okTextLocale:a,okType:o,onConfirm:s,onOk:l}=b.useContext(yO);return se.createElement(ode,{isSilent:n,type:o||"primary",actionFn:l,close:function(){t?.apply(void 0,arguments),s?.(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${i}-btn`},a)};var xje=b.createContext(null),k_e=[];function yLt(e,t){var n=b.useState(function(){if(!Zl())return null;var h=document.createElement("div");return h}),r=Fe(n,1),i=r[0],a=b.useRef(!1),o=b.useContext(xje),s=b.useState(k_e),l=Fe(s,2),c=l[0],u=l[1],d=o||(a.current?void 0:function(h){u(function(m){var g=[h].concat(Tt(m));return g})});function f(){i.parentElement||document.body.appendChild(i),a.current=!0}function p(){var h;(h=i.parentElement)===null||h===void 0||h.removeChild(i),a.current=!1}return kr(function(){return e?o?o(f):f():p(),p},[e]),kr(function(){c.length&&(c.forEach(function(h){return h()}),u(k_e))},[c]),[i,d]}var qG;function Tje(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var i,a;if(e){var o=getComputedStyle(e);r.scrollbarColor=o.scrollbarColor,r.scrollbarWidth=o.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),c=parseInt(s.height,10);try{var u=l?"width: ".concat(s.width,";"):"",d=c?"height: ".concat(s.height,";"):"";U1(`
#`.concat(t,`::-webkit-scrollbar {
`).concat(u,`
`).concat(d,`
}`),t)}catch(h){console.error(h),i=l,a=c}}document.body.appendChild(n);var f=e&&i&&!isNaN(i)?i:n.offsetWidth-n.clientWidth,p=e&&a&&!isNaN(a)?a:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),gN(t),{width:f,height:p}}function M_e(e){return typeof document>"u"?0:(qG===void 0&&(qG=Tje()),qG.width)}function Gre(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:Tje(e)}function bLt(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var _Lt="rc-util-locker-".concat(Date.now()),D_e=0;function SLt(e){var t=!!e,n=b.useState(function(){return D_e+=1,"".concat(_Lt,"_").concat(D_e)}),r=Fe(n,1),i=r[0];kr(function(){if(t){var a=Gre(document.body).width,o=bLt();U1(`
html body {
  overflow-y: hidden;
  `.concat(o?"width: calc(100% - ".concat(a,"px);"):"",`
}`),i)}else gN(i);return function(){gN(i)}},[t,i])}var ELt=!1;function CLt(e){return ELt}var $_e=function(t){return t===!1?!1:!Zl()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},_C=b.forwardRef(function(e,t){var n=e.open,r=e.autoLock,i=e.getContainer;e.debug;var a=e.autoDestroy,o=a===void 0?!0:a,s=e.children,l=b.useState(n),c=Fe(l,2),u=c[0],d=c[1],f=u||n;b.useEffect(function(){(o||n)&&d(n)},[n,o]);var p=b.useState(function(){return $_e(i)}),h=Fe(p,2),m=h[0],g=h[1];b.useEffect(function(){var R=$_e(i);g(R??null)});var v=yLt(f&&!m),y=Fe(v,2),_=y[0],S=y[1],C=m??_;SLt(r&&n&&Zl()&&(C===_||C===document.body));var w=null;if(s&&sm(s)&&t){var x=s;w=x.ref}var T=hv(w,t);if(!f||!Zl()||m===void 0)return null;var A=C===!1||CLt(),I=s;return t&&(I=b.cloneElement(s,{ref:T})),b.createElement(xje.Provider,{value:S},A?I:Ou.createPortal(I,C))}),Ije=b.createContext({});function wLt(){var e=we({},j6);return e.useId}var F_e=0,B_e=wLt();const sde=B_e?function(t){var n=B_e();return t||n}:function(t){var n=b.useState("ssr-id"),r=Fe(n,2),i=r[0],a=r[1];return b.useEffect(function(){var o=F_e;F_e+=1,a("rc_unique_".concat(o))},[]),t||i};function j_e(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function z_e(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var i=e.document;n=i.documentElement[r],typeof n!="number"&&(n=i.body[r])}return n}function xLt(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,i=r.defaultView||r.parentWindow;return n.left+=z_e(i),n.top+=z_e(i,!0),n}const TLt=b.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var U_e={width:0,height:0,overflow:"hidden",outline:"none"},ILt={outline:"none"},Aje=se.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,a=e.title,o=e.ariaId,s=e.footer,l=e.closable,c=e.closeIcon,u=e.onClose,d=e.children,f=e.bodyStyle,p=e.bodyProps,h=e.modalRender,m=e.onMouseDown,g=e.onMouseUp,v=e.holderRef,y=e.visible,_=e.forceRender,S=e.width,C=e.height,w=e.classNames,x=e.styles,T=se.useContext(Ije),A=T.panel,I=hv(v,A),R=b.useRef(),N=b.useRef(),P=b.useRef();se.useImperativeHandle(t,function(){return{focus:function(){var F;(F=P.current)===null||F===void 0||F.focus({preventScroll:!0})},changeActive:function(F){var G=document,q=G.activeElement;F&&q===N.current?R.current.focus({preventScroll:!0}):!F&&q===R.current&&N.current.focus({preventScroll:!0})}}});var L={};S!==void 0&&(L.width=S),C!==void 0&&(L.height=C);var $=s?se.createElement("div",{className:Oe("".concat(n,"-footer"),w?.footer),style:we({},x?.footer)},s):null,D=a?se.createElement("div",{className:Oe("".concat(n,"-header"),w?.header),style:we({},x?.header)},se.createElement("div",{className:"".concat(n,"-title"),id:o},a)):null,z=b.useMemo(function(){return cn(l)==="object"&&l!==null?l:l?{closeIcon:c??se.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[l,c,n]),U=lo(z,!0),H=cn(l)==="object"&&l.disabled,M=l?se.createElement("button",Xe({type:"button",onClick:u,"aria-label":"Close"},U,{className:"".concat(n,"-close"),disabled:H}),z.closeIcon):null,B=se.createElement("div",{className:Oe("".concat(n,"-content"),w?.content),style:x?.content},M,D,se.createElement("div",Xe({className:Oe("".concat(n,"-body"),w?.body),style:we(we({},f),x?.body)},p),d),$);return se.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":a?o:null,"aria-modal":"true",ref:I,style:we(we({},i),L),className:Oe(n,r),onMouseDown:m,onMouseUp:g},se.createElement("div",{tabIndex:0,ref:R,style:U_e,"aria-hidden":"true"}),se.createElement("div",{ref:P,tabIndex:-1,style:ILt},se.createElement(TLt,{shouldUpdate:y||_},h?h(B):B)),se.createElement("div",{tabIndex:0,ref:N,style:U_e,"aria-hidden":"true"}))}),Rje=b.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,i=e.style,a=e.className,o=e.visible,s=e.forceRender,l=e.destroyOnClose,c=e.motionName,u=e.ariaId,d=e.onVisibleChanged,f=e.mousePosition,p=b.useRef(),h=b.useState(),m=Fe(h,2),g=m[0],v=m[1],y={};g&&(y.transformOrigin=g);function _(){var S=xLt(p.current);v(f&&(f.x||f.y)?"".concat(f.x-S.left,"px ").concat(f.y-S.top,"px"):"")}return b.createElement(Sl,{visible:o,onVisibleChanged:d,onAppearPrepare:_,onEnterPrepare:_,forceRender:s,motionName:c,removeOnLeave:l,ref:p},function(S,C){var w=S.className,x=S.style;return b.createElement(Aje,Xe({},e,{ref:t,title:r,ariaId:u,prefixCls:n,holderRef:C,style:we(we(we({},x),i),y),className:Oe(a,w)}))})});Rje.displayName="Content";var ALt=function(t){var n=t.prefixCls,r=t.style,i=t.visible,a=t.maskProps,o=t.motionName,s=t.className;return b.createElement(Sl,{key:"mask",visible:i,motionName:o,leavedClassName:"".concat(n,"-mask-hidden")},function(l,c){var u=l.className,d=l.style;return b.createElement("div",Xe({ref:c,style:we(we({},d),r),className:Oe("".concat(n,"-mask"),u,s)},a))})},RLt=function(t){var n=t.prefixCls,r=n===void 0?"rc-dialog":n,i=t.zIndex,a=t.visible,o=a===void 0?!1:a,s=t.keyboard,l=s===void 0?!0:s,c=t.focusTriggerAfterClose,u=c===void 0?!0:c,d=t.wrapStyle,f=t.wrapClassName,p=t.wrapProps,h=t.onClose,m=t.afterOpenChange,g=t.afterClose,v=t.transitionName,y=t.animation,_=t.closable,S=_===void 0?!0:_,C=t.mask,w=C===void 0?!0:C,x=t.maskTransitionName,T=t.maskAnimation,A=t.maskClosable,I=A===void 0?!0:A,R=t.maskStyle,N=t.maskProps,P=t.rootClassName,L=t.classNames,$=t.styles,D=b.useRef(),z=b.useRef(),U=b.useRef(),H=b.useState(o),M=Fe(H,2),B=M[0],k=M[1],F=sde();function G(){Fne(z.current,document.activeElement)||(D.current=document.activeElement)}function q(){if(!Fne(z.current,document.activeElement)){var ge;(ge=U.current)===null||ge===void 0||ge.focus()}}function W(ge){if(ge)q();else{if(k(!1),w&&D.current&&u){try{D.current.focus({preventScroll:!0})}catch{}D.current=null}B&&g?.()}m?.(ge)}function K(ge){h?.(ge)}var J=b.useRef(!1),te=b.useRef(),ae=function(){clearTimeout(te.current),J.current=!0},re=function(){te.current=setTimeout(function(){J.current=!1})},ue=null;I&&(ue=function(oe){J.current?J.current=!1:z.current===oe.target&&K(oe)});function de(ge){if(l&&ge.keyCode===Bt.ESC){ge.stopPropagation(),K(ge);return}o&&ge.keyCode===Bt.TAB&&U.current.changeActive(!ge.shiftKey)}b.useEffect(function(){o&&(k(!0),G())},[o]),b.useEffect(function(){return function(){clearTimeout(te.current)}},[]);var fe=we(we(we({zIndex:i},d),$?.wrapper),{},{display:B?null:"none"});return b.createElement("div",Xe({className:Oe("".concat(r,"-root"),P)},lo(t,{data:!0})),b.createElement(ALt,{prefixCls:r,visible:w&&o,motionName:j_e(r,x,T),style:we(we({zIndex:i},R),$?.mask),maskProps:N,className:L?.mask}),b.createElement("div",Xe({tabIndex:-1,onKeyDown:de,className:Oe("".concat(r,"-wrap"),f,L?.wrapper),ref:z,onClick:ue,style:fe},p),b.createElement(Rje,Xe({},t,{onMouseDown:ae,onMouseUp:re,ref:U,closable:S,ariaId:F,prefixCls:r,visible:o&&B,onClose:K,onVisibleChanged:W,motionName:j_e(r,v,y)}))))},lde=function(t){var n=t.visible,r=t.getContainer,i=t.forceRender,a=t.destroyOnClose,o=a===void 0?!1:a,s=t.afterClose,l=t.panelRef,c=b.useState(n),u=Fe(c,2),d=u[0],f=u[1],p=b.useMemo(function(){return{panel:l}},[l]);return b.useEffect(function(){n&&f(!0)},[n]),!i&&o&&!d?null:b.createElement(Ije.Provider,{value:p},b.createElement(_C,{open:n||i||d,autoDestroy:!1,getContainer:r,autoLock:n||d},b.createElement(RLt,Xe({},t,{destroyOnClose:o,afterClose:function(){s?.(),f(!1)}}))))};lde.displayName="Dialog";var FS="RC_FORM_INTERNAL_HOOKS",ro=function(){Ra(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},DE=b.createContext({getFieldValue:ro,getFieldsValue:ro,getFieldError:ro,getFieldWarning:ro,getFieldsError:ro,isFieldsTouched:ro,isFieldTouched:ro,isFieldValidating:ro,isFieldsValidating:ro,resetFields:ro,setFields:ro,setFieldValue:ro,setFieldsValue:ro,validateFields:ro,submit:ro,getInternalHooks:function(){return ro(),{dispatch:ro,initEntityValue:ro,registerField:ro,useSubscribe:ro,setInitialValues:ro,destroyForm:ro,setCallbacks:ro,registerWatch:ro,getFields:ro,setValidateMessages:ro,setPreserve:ro,getInitialValue:ro}}}),MN=b.createContext(null);function qre(e){return e==null?[]:Array.isArray(e)?e:[e]}function NLt(e){return e&&!!e._init}function Wre(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Yre=Wre();function OLt(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function LLt(e,t,n){if(Kj())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&TN(i,n.prototype),i}function Kre(e){var t=typeof Map=="function"?new Map:void 0;return Kre=function(r){if(r===null||!OLt(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return LLt(r,arguments,LE(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),TN(i,r)},Kre(e)}var PLt=/%[sdj%]/g,kLt=function(){};function Xre(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function Ef(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=0,a=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var o=e.replace(PLt,function(s){if(s==="%%")return"%";if(i>=a)return s;switch(s){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch{return"[Circular]"}break;default:return s}});return o}return e}function MLt(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Nl(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||MLt(t)&&typeof e=="string"&&!e)}function DLt(e,t,n){var r=[],i=0,a=e.length;function o(s){r.push.apply(r,Tt(s||[])),i++,i===a&&n(r)}e.forEach(function(s){t(s,o)})}function H_e(e,t,n){var r=0,i=e.length;function a(o){if(o&&o.length){n(o);return}var s=r;r=r+1,s<i?t(e[s],a):n([])}a([])}function $Lt(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,Tt(e[n]||[]))}),t}var V_e=function(e){Md(n,e);var t=$f(n);function n(r,i){var a;return co(this,n),a=t.call(this,"Async Validation Error"),be(Qt(a),"errors",void 0),be(Qt(a),"fields",void 0),a.errors=r,a.fields=i,a}return uo(n)}(Kre(Error));function FLt(e,t,n,r,i){if(t.first){var a=new Promise(function(f,p){var h=function(v){return r(v),v.length?p(new V_e(v,Xre(v))):f(i)},m=$Lt(e);H_e(m,n,h)});return a.catch(function(f){return f}),a}var o=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],d=new Promise(function(f,p){var h=function(g){if(u.push.apply(u,g),c++,c===l)return r(u),u.length?p(new V_e(u,Xre(u))):f(i)};s.length||(r(u),f(i)),s.forEach(function(m){var g=e[m];o.indexOf(m)!==-1?H_e(g,n,h):DLt(g,n,h)})});return d.catch(function(f){return f}),d}function BLt(e){return!!(e&&e.message!==void 0)}function jLt(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function G_e(e,t){return function(n){var r;return e.fullFields?r=jLt(t,e.fullFields):r=t[n.field||e.fullField],BLt(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function q_e(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];cn(r)==="object"&&cn(e[n])==="object"?e[n]=we(we({},e[n]),r):e[n]=r}}return e}var gw="enum",zLt=function(t,n,r,i,a){t[gw]=Array.isArray(t[gw])?t[gw]:[],t[gw].indexOf(n)===-1&&i.push(Ef(a.messages[gw],t.fullField,t[gw].join(", ")))},ULt=function(t,n,r,i,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||i.push(Ef(a.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var o=new RegExp(t.pattern);o.test(n)||i.push(Ef(a.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},HLt=function(t,n,r,i,a){var o=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=n,d=null,f=typeof n=="number",p=typeof n=="string",h=Array.isArray(n);if(f?d="number":p?d="string":h&&(d="array"),!d)return!1;h&&(u=n.length),p&&(u=n.replace(c,"_").length),o?u!==t.len&&i.push(Ef(a.messages[d].len,t.fullField,t.len)):s&&!l&&u<t.min?i.push(Ef(a.messages[d].min,t.fullField,t.min)):l&&!s&&u>t.max?i.push(Ef(a.messages[d].max,t.fullField,t.max)):s&&l&&(u<t.min||u>t.max)&&i.push(Ef(a.messages[d].range,t.fullField,t.min,t.max))},Nje=function(t,n,r,i,a,o){t.required&&(!r.hasOwnProperty(t.field)||Nl(n,o||t.type))&&i.push(Ef(a.messages.required,t.fullField))},rP;const VLt=function(){if(rP)return rP;var e="[a-fA-F\\d:]",t=function(w){return w&&w.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",i=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],a="(?:%[0-9a-zA-Z]{1,})?",o="(?:".concat(i.join("|"),")").concat(a),s=new RegExp("(?:^".concat(n,"$)|(?:^").concat(o,"$)")),l=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(o,"$")),u=function(w){return w&&w.exact?s:new RegExp("(?:".concat(t(w)).concat(n).concat(t(w),")|(?:").concat(t(w)).concat(o).concat(t(w),")"),"g")};u.v4=function(C){return C&&C.exact?l:new RegExp("".concat(t(C)).concat(n).concat(t(C)),"g")},u.v6=function(C){return C&&C.exact?c:new RegExp("".concat(t(C)).concat(o).concat(t(C)),"g")};var d="(?:(?:[a-z]+:)?//)",f="(?:\\S+(?::\\S*)?@)?",p=u.v4().source,h=u.v6().source,m="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",g="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",v="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",y="(?::\\d{2,5})?",_='(?:[/?#][^\\s"]*)?',S="(?:".concat(d,"|www\\.)").concat(f,"(?:localhost|").concat(p,"|").concat(h,"|").concat(m).concat(g).concat(v,")").concat(y).concat(_);return rP=new RegExp("(?:^".concat(S,"$)"),"i"),rP};var W_e={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},fA={integer:function(t){return fA.number(t)&&parseInt(t,10)===t},float:function(t){return fA.number(t)&&!fA.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return cn(t)==="object"&&!fA.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(W_e.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(VLt())},hex:function(t){return typeof t=="string"&&!!t.match(W_e.hex)}},GLt=function(t,n,r,i,a){if(t.required&&n===void 0){Nje(t,n,r,i,a);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;o.indexOf(s)>-1?fA[s](n)||i.push(Ef(a.messages.types[s],t.fullField,t.type)):s&&cn(n)!==t.type&&i.push(Ef(a.messages.types[s],t.fullField,t.type))},qLt=function(t,n,r,i,a){(/^\s+$/.test(n)||n==="")&&i.push(Ef(a.messages.whitespace,t.fullField))};const Ki={required:Nje,whitespace:qLt,type:GLt,range:HLt,enum:zLt,pattern:ULt};var WLt=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Nl(n)&&!t.required)return r();Ki.required(t,n,i,o,a)}r(o)},YLt=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();Ki.required(t,n,i,o,a,"array"),n!=null&&(Ki.type(t,n,i,o,a),Ki.range(t,n,i,o,a))}r(o)},KLt=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Nl(n)&&!t.required)return r();Ki.required(t,n,i,o,a),n!==void 0&&Ki.type(t,n,i,o,a)}r(o)},XLt=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Nl(n,"date")&&!t.required)return r();if(Ki.required(t,n,i,o,a),!Nl(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),Ki.type(t,l,i,o,a),l&&Ki.range(t,l.getTime(),i,o,a)}}r(o)},ZLt="enum",QLt=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Nl(n)&&!t.required)return r();Ki.required(t,n,i,o,a),n!==void 0&&Ki[ZLt](t,n,i,o,a)}r(o)},JLt=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Nl(n)&&!t.required)return r();Ki.required(t,n,i,o,a),n!==void 0&&(Ki.type(t,n,i,o,a),Ki.range(t,n,i,o,a))}r(o)},ePt=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Nl(n)&&!t.required)return r();Ki.required(t,n,i,o,a),n!==void 0&&(Ki.type(t,n,i,o,a),Ki.range(t,n,i,o,a))}r(o)},tPt=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Nl(n)&&!t.required)return r();Ki.required(t,n,i,o,a),n!==void 0&&Ki.type(t,n,i,o,a)}r(o)},nPt=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),Nl(n)&&!t.required)return r();Ki.required(t,n,i,o,a),n!==void 0&&(Ki.type(t,n,i,o,a),Ki.range(t,n,i,o,a))}r(o)},rPt=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Nl(n)&&!t.required)return r();Ki.required(t,n,i,o,a),n!==void 0&&Ki.type(t,n,i,o,a)}r(o)},iPt=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Nl(n,"string")&&!t.required)return r();Ki.required(t,n,i,o,a),Nl(n,"string")||Ki.pattern(t,n,i,o,a)}r(o)},aPt=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Nl(n)&&!t.required)return r();Ki.required(t,n,i,o,a),Nl(n)||Ki.type(t,n,i,o,a)}r(o)},oPt=function(t,n,r,i,a){var o=[],s=Array.isArray(n)?"array":cn(n);Ki.required(t,n,i,o,a,s),r(o)},sPt=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Nl(n,"string")&&!t.required)return r();Ki.required(t,n,i,o,a,"string"),Nl(n,"string")||(Ki.type(t,n,i,o,a),Ki.range(t,n,i,o,a),Ki.pattern(t,n,i,o,a),t.whitespace===!0&&Ki.whitespace(t,n,i,o,a))}r(o)},WG=function(t,n,r,i,a){var o=t.type,s=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(Nl(n,o)&&!t.required)return r();Ki.required(t,n,i,s,a,o),Nl(n,o)||Ki.type(t,n,i,s,a)}r(s)};const sR={string:sPt,method:tPt,number:nPt,boolean:KLt,regexp:aPt,integer:ePt,float:JLt,array:YLt,object:rPt,enum:QLt,pattern:iPt,date:XLt,url:WG,hex:WG,email:WG,required:oPt,any:WLt};var bO=function(){function e(t){co(this,e),be(this,"rules",null),be(this,"_messages",Yre),this.define(t)}return uo(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(cn(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(i){var a=n[i];r.rules[i]=Array.isArray(a)?a:[a]})}},{key:"messages",value:function(n){return n&&(this._messages=q_e(Wre(),n)),this._messages}},{key:"validate",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},o=n,s=i,l=a;if(typeof s=="function"&&(l=s,s={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,o),Promise.resolve(o);function c(h){var m=[],g={};function v(_){if(Array.isArray(_)){var S;m=(S=m).concat.apply(S,Tt(_))}else m.push(_)}for(var y=0;y<h.length;y++)v(h[y]);m.length?(g=Xre(m),l(m,g)):l(null,o)}if(s.messages){var u=this.messages();u===Yre&&(u=Wre()),q_e(u,s.messages),s.messages=u}else s.messages=this.messages();var d={},f=s.keys||Object.keys(this.rules);f.forEach(function(h){var m=r.rules[h],g=o[h];m.forEach(function(v){var y=v;typeof y.transform=="function"&&(o===n&&(o=we({},o)),g=o[h]=y.transform(g),g!=null&&(y.type=y.type||(Array.isArray(g)?"array":cn(g)))),typeof y=="function"?y={validator:y}:y=we({},y),y.validator=r.getValidationMethod(y),y.validator&&(y.field=h,y.fullField=y.fullField||h,y.type=r.getType(y),d[h]=d[h]||[],d[h].push({rule:y,value:g,source:o,field:h}))})});var p={};return FLt(d,s,function(h,m){var g=h.rule,v=(g.type==="object"||g.type==="array")&&(cn(g.fields)==="object"||cn(g.defaultField)==="object");v=v&&(g.required||!g.required&&h.value),g.field=h.field;function y(x,T){return we(we({},T),{},{fullField:"".concat(g.fullField,".").concat(x),fullFields:g.fullFields?[].concat(Tt(g.fullFields),[x]):[x]})}function _(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],T=Array.isArray(x)?x:[x];!s.suppressWarning&&T.length&&e.warning("async-validator:",T),T.length&&g.message!==void 0&&(T=[].concat(g.message));var A=T.map(G_e(g,o));if(s.first&&A.length)return p[g.field]=1,m(A);if(!v)m(A);else{if(g.required&&!h.value)return g.message!==void 0?A=[].concat(g.message).map(G_e(g,o)):s.error&&(A=[s.error(g,Ef(s.messages.required,g.field))]),m(A);var I={};g.defaultField&&Object.keys(h.value).map(function(P){I[P]=g.defaultField}),I=we(we({},I),h.rule.fields);var R={};Object.keys(I).forEach(function(P){var L=I[P],$=Array.isArray(L)?L:[L];R[P]=$.map(y.bind(null,P))});var N=new e(R);N.messages(s.messages),h.rule.options&&(h.rule.options.messages=s.messages,h.rule.options.error=s.error),N.validate(h.value,h.rule.options||s,function(P){var L=[];A&&A.length&&L.push.apply(L,Tt(A)),P&&P.length&&L.push.apply(L,Tt(P)),m(L.length?L:null)})}}var S;if(g.asyncValidator)S=g.asyncValidator(g,h.value,_,h.source,s);else if(g.validator){try{S=g.validator(g,h.value,_,h.source,s)}catch(x){var C,w;(C=(w=console).error)===null||C===void 0||C.call(w,x),s.suppressValidatorError||setTimeout(function(){throw x},0),_(x.message)}S===!0?_():S===!1?_(typeof g.message=="function"?g.message(g.fullField||g.field):g.message||"".concat(g.fullField||g.field," fails")):S instanceof Array?_(S):S instanceof Error&&_(S.message)}S&&S.then&&S.then(function(){return _()},function(x){return _(x)})},function(h){c(h)},o)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!sR.hasOwnProperty(n.type))throw new Error(Ef("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),i=r.indexOf("message");return i!==-1&&r.splice(i,1),r.length===1&&r[0]==="required"?sR.required:sR[this.getType(n)]||void 0}}]),e}();be(bO,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");sR[t]=n});be(bO,"warning",kLt);be(bO,"messages",Yre);be(bO,"validators",sR);var nf="'${name}' is not a valid ${type}",Oje={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:nf,method:nf,array:nf,object:nf,number:nf,date:nf,boolean:nf,integer:nf,float:nf,regexp:nf,email:nf,url:nf,hex:nf},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},Y_e=bO;function lPt(e,t){return e.replace(/\$\{\w+\}/g,function(n){var r=n.slice(2,-1);return t[r]})}var K_e="CODE_LOGIC_ERROR";function Zre(e,t,n,r,i){return Qre.apply(this,arguments)}function Qre(){return Qre=w_(xc().mark(function e(t,n,r,i,a){var o,s,l,c,u,d,f,p,h;return xc().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return o=we({},r),delete o.ruleIndex,Y_e.warning=function(){},o.validator&&(s=o.validator,o.validator=function(){try{return s.apply(void 0,arguments)}catch(v){return console.error(v),Promise.reject(K_e)}}),l=null,o&&o.type==="array"&&o.defaultField&&(l=o.defaultField,delete o.defaultField),c=new Y_e(be({},t,[o])),u=Gx(Oje,i.validateMessages),c.messages(u),d=[],g.prev=10,g.next=13,Promise.resolve(c.validate(be({},t,n),we({},i)));case 13:g.next=18;break;case 15:g.prev=15,g.t0=g.catch(10),g.t0.errors&&(d=g.t0.errors.map(function(v,y){var _=v.message,S=_===K_e?u.default:_;return b.isValidElement(S)?b.cloneElement(S,{key:"error_".concat(y)}):S}));case 18:if(!(!d.length&&l)){g.next=23;break}return g.next=21,Promise.all(n.map(function(v,y){return Zre("".concat(t,".").concat(y),v,l,i,a)}));case 21:return f=g.sent,g.abrupt("return",f.reduce(function(v,y){return[].concat(Tt(v),Tt(y))},[]));case 23:return p=we(we({},r),{},{name:t,enum:(r.enum||[]).join(", ")},a),h=d.map(function(v){return typeof v=="string"?lPt(v,p):v}),g.abrupt("return",h);case 26:case"end":return g.stop()}},e,null,[[10,15]])})),Qre.apply(this,arguments)}function cPt(e,t,n,r,i,a){var o=e.join("."),s=n.map(function(u,d){var f=u.validator,p=we(we({},u),{},{ruleIndex:d});return f&&(p.validator=function(h,m,g){var v=!1,y=function(){for(var C=arguments.length,w=new Array(C),x=0;x<C;x++)w[x]=arguments[x];Promise.resolve().then(function(){Ra(!v,"Your validator function has already return a promise. `callback` will be ignored."),v||g.apply(void 0,w)})},_=f(h,m,y);v=_&&typeof _.then=="function"&&typeof _.catch=="function",Ra(v,"`callback` is deprecated. Please return a promise instead."),v&&_.then(function(){g()}).catch(function(S){g(S||" ")})}),p}).sort(function(u,d){var f=u.warningOnly,p=u.ruleIndex,h=d.warningOnly,m=d.ruleIndex;return!!f==!!h?p-m:f?1:-1}),l;if(i===!0)l=new Promise(function(){var u=w_(xc().mark(function d(f,p){var h,m,g;return xc().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:h=0;case 1:if(!(h<s.length)){y.next=12;break}return m=s[h],y.next=5,Zre(o,t,m,r,a);case 5:if(g=y.sent,!g.length){y.next=9;break}return p([{errors:g,rule:m}]),y.abrupt("return");case 9:h+=1,y.next=1;break;case 12:f([]);case 13:case"end":return y.stop()}},d)}));return function(d,f){return u.apply(this,arguments)}}());else{var c=s.map(function(u){return Zre(o,t,u,r,a).then(function(d){return{errors:d,rule:u}})});l=(i?dPt(c):uPt(c)).then(function(u){return Promise.reject(u)})}return l.catch(function(u){return u}),l}function uPt(e){return Jre.apply(this,arguments)}function Jre(){return Jre=w_(xc().mark(function e(t){return xc().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(i){var a,o=(a=[]).concat.apply(a,Tt(i));return o}));case 1:case"end":return r.stop()}},e)})),Jre.apply(this,arguments)}function dPt(e){return eie.apply(this,arguments)}function eie(){return eie=w_(xc().mark(function e(t){var n;return xc().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return n=0,i.abrupt("return",new Promise(function(a){t.forEach(function(o){o.then(function(s){s.errors.length&&a([s]),n+=1,n===t.length&&a([])})})}));case 2:case"end":return i.stop()}},e)})),eie.apply(this,arguments)}function zs(e){return qre(e)}function X_e(e,t){var n={};return t.forEach(function(r){var i=Sf(e,r);n=Mh(n,r,i)}),n}function S5(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return Lje(t,r,n)})}function Lje(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,i){return e[i]===r})}function fPt(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||cn(e)!=="object"||cn(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),i=new Set([].concat(n,r));return Tt(i).every(function(a){var o=e[a],s=t[a];return typeof o=="function"&&typeof s=="function"?!0:o===s})}function pPt(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&cn(t.target)==="object"&&e in t.target?t.target[e]:t}function Z_e(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var i=e[t],a=t-n;return a>0?[].concat(Tt(e.slice(0,n)),[i],Tt(e.slice(n,t)),Tt(e.slice(t+1,r))):a<0?[].concat(Tt(e.slice(0,t)),Tt(e.slice(t+1,n+1)),[i],Tt(e.slice(n+1,r))):e}var hPt=["name"],Xf=[];function Q_e(e,t,n,r,i,a){return typeof e=="function"?e(t,n,"source"in a?{source:a.source}:{}):r!==i}var cde=function(e){Md(n,e);var t=$f(n);function n(r){var i;if(co(this,n),i=t.call(this,r),be(Qt(i),"state",{resetCount:0}),be(Qt(i),"cancelRegisterFunc",null),be(Qt(i),"mounted",!1),be(Qt(i),"touched",!1),be(Qt(i),"dirty",!1),be(Qt(i),"validatePromise",void 0),be(Qt(i),"prevValidating",void 0),be(Qt(i),"errors",Xf),be(Qt(i),"warnings",Xf),be(Qt(i),"cancelRegister",function(){var l=i.props,c=l.preserve,u=l.isListField,d=l.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(u,c,zs(d)),i.cancelRegisterFunc=null}),be(Qt(i),"getNamePath",function(){var l=i.props,c=l.name,u=l.fieldContext,d=u.prefixName,f=d===void 0?[]:d;return c!==void 0?[].concat(Tt(f),Tt(c)):[]}),be(Qt(i),"getRules",function(){var l=i.props,c=l.rules,u=c===void 0?[]:c,d=l.fieldContext;return u.map(function(f){return typeof f=="function"?f(d):f})}),be(Qt(i),"refresh",function(){i.mounted&&i.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),be(Qt(i),"metaCache",null),be(Qt(i),"triggerMetaEvent",function(l){var c=i.props.onMetaChange;if(c){var u=we(we({},i.getMeta()),{},{destroy:l});Op(i.metaCache,u)||c(u),i.metaCache=u}else i.metaCache=null}),be(Qt(i),"onStoreChange",function(l,c,u){var d=i.props,f=d.shouldUpdate,p=d.dependencies,h=p===void 0?[]:p,m=d.onReset,g=u.store,v=i.getNamePath(),y=i.getValue(l),_=i.getValue(g),S=c&&S5(c,v);switch(u.type==="valueUpdate"&&u.source==="external"&&!Op(y,_)&&(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=Xf,i.warnings=Xf,i.triggerMetaEvent()),u.type){case"reset":if(!c||S){i.touched=!1,i.dirty=!1,i.validatePromise=void 0,i.errors=Xf,i.warnings=Xf,i.triggerMetaEvent(),m?.(),i.refresh();return}break;case"remove":{if(f){i.reRender();return}break}case"setField":{var C=u.data;if(S){"touched"in C&&(i.touched=C.touched),"validating"in C&&!("originRCField"in C)&&(i.validatePromise=C.validating?Promise.resolve([]):null),"errors"in C&&(i.errors=C.errors||Xf),"warnings"in C&&(i.warnings=C.warnings||Xf),i.dirty=!0,i.triggerMetaEvent(),i.reRender();return}else if("value"in C&&S5(c,v,!0)){i.reRender();return}if(f&&!v.length&&Q_e(f,l,g,y,_,u)){i.reRender();return}break}case"dependenciesUpdate":{var w=h.map(zs);if(w.some(function(x){return S5(u.relatedFields,x)})){i.reRender();return}break}default:if(S||(!h.length||v.length||f)&&Q_e(f,l,g,y,_,u)){i.reRender();return}break}f===!0&&i.reRender()}),be(Qt(i),"validateRules",function(l){var c=i.getNamePath(),u=i.getValue(),d=l||{},f=d.triggerName,p=d.validateOnly,h=p===void 0?!1:p,m=Promise.resolve().then(w_(xc().mark(function g(){var v,y,_,S,C,w,x;return xc().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:if(i.mounted){A.next=2;break}return A.abrupt("return",[]);case 2:if(v=i.props,y=v.validateFirst,_=y===void 0?!1:y,S=v.messageVariables,C=v.validateDebounce,w=i.getRules(),f&&(w=w.filter(function(I){return I}).filter(function(I){var R=I.validateTrigger;if(!R)return!0;var N=qre(R);return N.includes(f)})),!(C&&f)){A.next=10;break}return A.next=8,new Promise(function(I){setTimeout(I,C)});case 8:if(i.validatePromise===m){A.next=10;break}return A.abrupt("return",[]);case 10:return x=cPt(c,u,w,l,_,S),x.catch(function(I){return I}).then(function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Xf;if(i.validatePromise===m){var R;i.validatePromise=null;var N=[],P=[];(R=I.forEach)===null||R===void 0||R.call(I,function(L){var $=L.rule.warningOnly,D=L.errors,z=D===void 0?Xf:D;$?P.push.apply(P,Tt(z)):N.push.apply(N,Tt(z))}),i.errors=N,i.warnings=P,i.triggerMetaEvent(),i.reRender()}}),A.abrupt("return",x);case 13:case"end":return A.stop()}},g)})));return h||(i.validatePromise=m,i.dirty=!0,i.errors=Xf,i.warnings=Xf,i.triggerMetaEvent(),i.reRender()),m}),be(Qt(i),"isFieldValidating",function(){return!!i.validatePromise}),be(Qt(i),"isFieldTouched",function(){return i.touched}),be(Qt(i),"isFieldDirty",function(){if(i.dirty||i.props.initialValue!==void 0)return!0;var l=i.props.fieldContext,c=l.getInternalHooks(FS),u=c.getInitialValue;return u(i.getNamePath())!==void 0}),be(Qt(i),"getErrors",function(){return i.errors}),be(Qt(i),"getWarnings",function(){return i.warnings}),be(Qt(i),"isListField",function(){return i.props.isListField}),be(Qt(i),"isList",function(){return i.props.isList}),be(Qt(i),"isPreserve",function(){return i.props.preserve}),be(Qt(i),"getMeta",function(){i.prevValidating=i.isFieldValidating();var l={touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath(),validated:i.validatePromise===null};return l}),be(Qt(i),"getOnlyChild",function(l){if(typeof l=="function"){var c=i.getMeta();return we(we({},i.getOnlyChild(l(i.getControlled(),c,i.props.fieldContext))),{},{isFunction:!0})}var u=_l(l);return u.length!==1||!b.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),be(Qt(i),"getValue",function(l){var c=i.props.fieldContext.getFieldsValue,u=i.getNamePath();return Sf(l||c(!0),u)}),be(Qt(i),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=i.props,u=c.name,d=c.trigger,f=c.validateTrigger,p=c.getValueFromEvent,h=c.normalize,m=c.valuePropName,g=c.getValueProps,v=c.fieldContext,y=f!==void 0?f:v.validateTrigger,_=i.getNamePath(),S=v.getInternalHooks,C=v.getFieldsValue,w=S(FS),x=w.dispatch,T=i.getValue(),A=g||function(L){return be({},m,L)},I=l[d],R=u!==void 0?A(T):{},N=we(we({},l),R);N[d]=function(){i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var L,$=arguments.length,D=new Array($),z=0;z<$;z++)D[z]=arguments[z];p?L=p.apply(void 0,D):L=pPt.apply(void 0,[m].concat(D)),h&&(L=h(L,T,C(!0))),x({type:"updateValue",namePath:_,value:L}),I&&I.apply(void 0,D)};var P=qre(y||[]);return P.forEach(function(L){var $=N[L];N[L]=function(){$&&$.apply(void 0,arguments);var D=i.props.rules;D&&D.length&&x({type:"validateField",namePath:_,triggerName:L})}}),N}),r.fieldContext){var a=r.fieldContext.getInternalHooks,o=a(FS),s=o.initEntityValue;s(Qt(i))}return i}return uo(n,[{key:"componentDidMount",value:function(){var i=this.props,a=i.shouldUpdate,o=i.fieldContext;if(this.mounted=!0,o){var s=o.getInternalHooks,l=s(FS),c=l.registerField;this.cancelRegisterFunc=c(this)}a===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var i=this.state.resetCount,a=this.props.children,o=this.getOnlyChild(a),s=o.child,l=o.isFunction,c;return l?c=s:b.isValidElement(s)?c=b.cloneElement(s,this.getControlled(s.props)):(Ra(!s,"`children` of Field is not validate ReactElement."),c=s),b.createElement(b.Fragment,{key:i},c)}}]),n}(b.Component);be(cde,"contextType",DE);be(cde,"defaultProps",{trigger:"onChange",valuePropName:"value"});function ude(e){var t=e.name,n=$n(e,hPt),r=b.useContext(DE),i=b.useContext(MN),a=t!==void 0?zs(t):void 0,o="keep";return n.isListField||(o="_".concat((a||[]).join("_"))),b.createElement(cde,Xe({key:o,name:a,isListField:!!i},n,{fieldContext:r}))}function Pje(e){var t=e.name,n=e.initialValue,r=e.children,i=e.rules,a=e.validateTrigger,o=e.isListField,s=b.useContext(DE),l=b.useContext(MN),c=b.useRef({keys:[],id:0}),u=c.current,d=b.useMemo(function(){var m=zs(s.prefixName)||[];return[].concat(Tt(m),Tt(zs(t)))},[s.prefixName,t]),f=b.useMemo(function(){return we(we({},s),{},{prefixName:d})},[s,d]),p=b.useMemo(function(){return{getKey:function(g){var v=d.length,y=g[v];return[u.keys[y],g.slice(v+1)]}}},[d]);if(typeof r!="function")return Ra(!1,"Form.List only accepts function as children."),null;var h=function(g,v,y){var _=y.source;return _==="internal"?!1:g!==v};return b.createElement(MN.Provider,{value:p},b.createElement(DE.Provider,{value:f},b.createElement(ude,{name:[],shouldUpdate:h,rules:i,validateTrigger:a,initialValue:n,isList:!0,isListField:o??!!l},function(m,g){var v=m.value,y=v===void 0?[]:v,_=m.onChange,S=s.getFieldValue,C=function(){var A=S(d||[]);return A||[]},w={add:function(A,I){var R=C();I>=0&&I<=R.length?(u.keys=[].concat(Tt(u.keys.slice(0,I)),[u.id],Tt(u.keys.slice(I))),_([].concat(Tt(R.slice(0,I)),[A],Tt(R.slice(I))))):(u.keys=[].concat(Tt(u.keys),[u.id]),_([].concat(Tt(R),[A]))),u.id+=1},remove:function(A){var I=C(),R=new Set(Array.isArray(A)?A:[A]);R.size<=0||(u.keys=u.keys.filter(function(N,P){return!R.has(P)}),_(I.filter(function(N,P){return!R.has(P)})))},move:function(A,I){if(A!==I){var R=C();A<0||A>=R.length||I<0||I>=R.length||(u.keys=Z_e(u.keys,A,I),_(Z_e(R,A,I)))}}},x=y||[];return Array.isArray(x)||(x=[]),r(x.map(function(T,A){var I=u.keys[A];return I===void 0&&(u.keys[A]=u.id,I=u.keys[A],u.id+=1),{name:A,key:I,isListField:!0}}),w,g)})))}function mPt(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(i,a){e.forEach(function(o,s){o.catch(function(l){return t=!0,l}).then(function(l){n-=1,r[s]=l,!(n>0)&&(t&&a(r),i(r))})})}):Promise.resolve([])}var kje="__@field_split__";function YG(e){return e.map(function(t){return"".concat(cn(t),":").concat(t)}).join(kje)}var vw=function(){function e(){co(this,e),be(this,"kvs",new Map)}return uo(e,[{key:"set",value:function(n,r){this.kvs.set(YG(n),r)}},{key:"get",value:function(n){return this.kvs.get(YG(n))}},{key:"update",value:function(n,r){var i=this.get(n),a=r(i);a?this.set(n,a):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(YG(n))}},{key:"map",value:function(n){return Tt(this.kvs.entries()).map(function(r){var i=Fe(r,2),a=i[0],o=i[1],s=a.split(kje);return n({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=Fe(c,3),d=u[1],f=u[2];return d==="number"?Number(f):f}),value:o})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var i=r.key,a=r.value;return n[i.join(".")]=a,null}),n}}]),e}(),gPt=["name"],vPt=uo(function e(t){var n=this;co(this,e),be(this,"formHooked",!1),be(this,"forceRootUpdate",void 0),be(this,"subscribable",!0),be(this,"store",{}),be(this,"fieldEntities",[]),be(this,"initialValues",{}),be(this,"callbacks",{}),be(this,"validateMessages",null),be(this,"preserve",null),be(this,"lastValidatePromise",null),be(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),be(this,"getInternalHooks",function(r){return r===FS?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(Ra(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),be(this,"useSubscribe",function(r){n.subscribable=r}),be(this,"prevWithoutPreserves",null),be(this,"setInitialValues",function(r,i){if(n.initialValues=r||{},i){var a,o=Gx(r,n.store);(a=n.prevWithoutPreserves)===null||a===void 0||a.map(function(s){var l=s.key;o=Mh(o,l,Sf(r,l))}),n.prevWithoutPreserves=null,n.updateStore(o)}}),be(this,"destroyForm",function(r){if(r)n.updateStore({});else{var i=new vw;n.getFieldEntities(!0).forEach(function(a){n.isMergedPreserve(a.isPreserve())||i.set(a.getNamePath(),!0)}),n.prevWithoutPreserves=i}}),be(this,"getInitialValue",function(r){var i=Sf(n.initialValues,r);return r.length?Gx(i):i}),be(this,"setCallbacks",function(r){n.callbacks=r}),be(this,"setValidateMessages",function(r){n.validateMessages=r}),be(this,"setPreserve",function(r){n.preserve=r}),be(this,"watchList",[]),be(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(i){return i!==r})}}),be(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var i=n.getFieldsValue(),a=n.getFieldsValue(!0);n.watchList.forEach(function(o){o(i,a,r)})}}),be(this,"timeoutId",null),be(this,"warningUnhooked",function(){}),be(this,"updateStore",function(r){n.store=r}),be(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(i){return i.getNamePath().length}):n.fieldEntities}),be(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=new vw;return n.getFieldEntities(r).forEach(function(a){var o=a.getNamePath();i.set(o,a)}),i}),be(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var i=n.getFieldsMap(!0);return r.map(function(a){var o=zs(a);return i.get(o)||{INVALIDATE_NAME_PATH:zs(a)}})}),be(this,"getFieldsValue",function(r,i){n.warningUnhooked();var a,o,s;if(r===!0||Array.isArray(r)?(a=r,o=i):r&&cn(r)==="object"&&(s=r.strict,o=r.filter),a===!0&&!o)return n.store;var l=n.getFieldEntitiesForNamePathList(Array.isArray(a)?a:null),c=[];return l.forEach(function(u){var d,f,p="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(s){var h,m;if((h=(m=u).isList)!==null&&h!==void 0&&h.call(m))return}else if(!a&&(d=(f=u).isListField)!==null&&d!==void 0&&d.call(f))return;if(!o)c.push(p);else{var g="getMeta"in u?u.getMeta():null;o(g)&&c.push(p)}}),X_e(n.store,c.map(zs))}),be(this,"getFieldValue",function(r){n.warningUnhooked();var i=zs(r);return Sf(n.store,i)}),be(this,"getFieldsError",function(r){n.warningUnhooked();var i=n.getFieldEntitiesForNamePathList(r);return i.map(function(a,o){return a&&!("INVALIDATE_NAME_PATH"in a)?{name:a.getNamePath(),errors:a.getErrors(),warnings:a.getWarnings()}:{name:zs(r[o]),errors:[],warnings:[]}})}),be(this,"getFieldError",function(r){n.warningUnhooked();var i=zs(r),a=n.getFieldsError([i])[0];return a.errors}),be(this,"getFieldWarning",function(r){n.warningUnhooked();var i=zs(r),a=n.getFieldsError([i])[0];return a.warnings}),be(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];var o=i[0],s=i[1],l,c=!1;i.length===0?l=null:i.length===1?Array.isArray(o)?(l=o.map(zs),c=!1):(l=null,c=o):(l=o.map(zs),c=s);var u=n.getFieldEntities(!0),d=function(g){return g.isFieldTouched()};if(!l)return c?u.every(function(m){return d(m)||m.isList()}):u.some(d);var f=new vw;l.forEach(function(m){f.set(m,[])}),u.forEach(function(m){var g=m.getNamePath();l.forEach(function(v){v.every(function(y,_){return g[_]===y})&&f.update(v,function(y){return[].concat(Tt(y),[m])})})});var p=function(g){return g.some(d)},h=f.map(function(m){var g=m.value;return g});return c?h.every(p):h.some(p)}),be(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),be(this,"isFieldsValidating",function(r){n.warningUnhooked();var i=n.getFieldEntities();if(!r)return i.some(function(o){return o.isFieldValidating()});var a=r.map(zs);return i.some(function(o){var s=o.getNamePath();return S5(a,s)&&o.isFieldValidating()})}),be(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),be(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=new vw,a=n.getFieldEntities(!0);a.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var d=i.get(u)||new Set;d.add({entity:l,value:c}),i.set(u,d)}});var o=function(c){c.forEach(function(u){var d=u.props.initialValue;if(d!==void 0){var f=u.getNamePath(),p=n.getInitialValue(f);if(p!==void 0)Ra(!1,"Form already set 'initialValues' with path '".concat(f.join("."),"'. Field can not overwrite it."));else{var h=i.get(f);if(h&&h.size>1)Ra(!1,"Multiple Field with path '".concat(f.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(h){var m=n.getFieldValue(f),g=u.isListField();!g&&(!r.skipExist||m===void 0)&&n.updateStore(Mh(n.store,f,Tt(h)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(l){var c=i.get(l);if(c){var u;(u=s).push.apply(u,Tt(Tt(c).map(function(d){return d.entity})))}})):s=a,o(s)}),be(this,"resetFields",function(r){n.warningUnhooked();var i=n.store;if(!r){n.updateStore(Gx(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(i,null,{type:"reset"}),n.notifyWatch();return}var a=r.map(zs);a.forEach(function(o){var s=n.getInitialValue(o);n.updateStore(Mh(n.store,o,s))}),n.resetWithFieldInitialValue({namePathList:a}),n.notifyObservers(i,a,{type:"reset"}),n.notifyWatch(a)}),be(this,"setFields",function(r){n.warningUnhooked();var i=n.store,a=[];r.forEach(function(o){var s=o.name,l=$n(o,gPt),c=zs(s);a.push(c),"value"in l&&n.updateStore(Mh(n.store,c,l.value)),n.notifyObservers(i,[c],{type:"setField",data:o})}),n.notifyWatch(a)}),be(this,"getFields",function(){var r=n.getFieldEntities(!0),i=r.map(function(a){var o=a.getNamePath(),s=a.getMeta(),l=we(we({},s),{},{name:o,value:n.getFieldValue(o)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return i}),be(this,"initEntityValue",function(r){var i=r.props.initialValue;if(i!==void 0){var a=r.getNamePath(),o=Sf(n.store,a);o===void 0&&n.updateStore(Mh(n.store,a,i))}}),be(this,"isMergedPreserve",function(r){var i=r!==void 0?r:n.preserve;return i??!0}),be(this,"registerField",function(r){n.fieldEntities.push(r);var i=r.getNamePath();if(n.notifyWatch([i]),r.props.initialValue!==void 0){var a=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(a,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(o,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(d){return d!==r}),!n.isMergedPreserve(s)&&(!o||l.length>1)){var c=o?void 0:n.getInitialValue(i);if(i.length&&n.getFieldValue(i)!==c&&n.fieldEntities.every(function(d){return!Lje(d.getNamePath(),i)})){var u=n.store;n.updateStore(Mh(u,i,c,!0)),n.notifyObservers(u,[i],{type:"remove"}),n.triggerDependenciesUpdate(u,i)}}n.notifyWatch([i])}}),be(this,"dispatch",function(r){switch(r.type){case"updateValue":{var i=r.namePath,a=r.value;n.updateValue(i,a);break}case"validateField":{var o=r.namePath,s=r.triggerName;n.validateFields([o],{triggerName:s});break}}}),be(this,"notifyObservers",function(r,i,a){if(n.subscribable){var o=we(we({},a),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(r,i,o)})}else n.forceRootUpdate()}),be(this,"triggerDependenciesUpdate",function(r,i){var a=n.getDependencyChildrenFields(i);return a.length&&n.validateFields(a),n.notifyObservers(r,a,{type:"dependenciesUpdate",relatedFields:[i].concat(Tt(a))}),a}),be(this,"updateValue",function(r,i){var a=zs(r),o=n.store;n.updateStore(Mh(n.store,a,i)),n.notifyObservers(o,[a],{type:"valueUpdate",source:"internal"}),n.notifyWatch([a]);var s=n.triggerDependenciesUpdate(o,a),l=n.callbacks.onValuesChange;if(l){var c=X_e(n.store,[a]);l(c,n.getFieldsValue())}n.triggerOnFieldsChange([a].concat(Tt(s)))}),be(this,"setFieldsValue",function(r){n.warningUnhooked();var i=n.store;if(r){var a=Gx(n.store,r);n.updateStore(a)}n.notifyObservers(i,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),be(this,"setFieldValue",function(r,i){n.setFields([{name:r,value:i}])}),be(this,"getDependencyChildrenFields",function(r){var i=new Set,a=[],o=new vw;n.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var d=zs(u);o.update(d,function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return f.add(l),f})})});var s=function l(c){var u=o.get(c)||new Set;u.forEach(function(d){if(!i.has(d)){i.add(d);var f=d.getNamePath();d.isFieldDirty()&&f.length&&(a.push(f),l(f))}})};return s(r),a}),be(this,"triggerOnFieldsChange",function(r,i){var a=n.callbacks.onFieldsChange;if(a){var o=n.getFields();if(i){var s=new vw;i.forEach(function(c){var u=c.name,d=c.errors;s.set(u,d)}),o.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var l=o.filter(function(c){var u=c.name;return S5(r,u)});l.length&&a(l,o)}}),be(this,"validateFields",function(r,i){n.warningUnhooked();var a,o;Array.isArray(r)||typeof r=="string"||typeof i=="string"?(a=r,o=i):o=r;var s=!!a,l=s?a.map(zs):[],c=[],u=String(Date.now()),d=new Set,f=o||{},p=f.recursive,h=f.dirty;n.getFieldEntities(!0).forEach(function(y){if(s||l.push(y.getNamePath()),!(!y.props.rules||!y.props.rules.length)&&!(h&&!y.isFieldDirty())){var _=y.getNamePath();if(d.add(_.join(u)),!s||S5(l,_,p)){var S=y.validateRules(we({validateMessages:we(we({},Oje),n.validateMessages)},o));c.push(S.then(function(){return{name:_,errors:[],warnings:[]}}).catch(function(C){var w,x=[],T=[];return(w=C.forEach)===null||w===void 0||w.call(C,function(A){var I=A.rule.warningOnly,R=A.errors;I?T.push.apply(T,Tt(R)):x.push.apply(x,Tt(R))}),x.length?Promise.reject({name:_,errors:x,warnings:T}):{name:_,errors:x,warnings:T}}))}}});var m=mPt(c);n.lastValidatePromise=m,m.catch(function(y){return y}).then(function(y){var _=y.map(function(S){var C=S.name;return C});n.notifyObservers(n.store,_,{type:"validateFinish"}),n.triggerOnFieldsChange(_,y)});var g=m.then(function(){return n.lastValidatePromise===m?Promise.resolve(n.getFieldsValue(l)):Promise.reject([])}).catch(function(y){var _=y.filter(function(S){return S&&S.errors.length});return Promise.reject({values:n.getFieldsValue(l),errorFields:_,outOfDate:n.lastValidatePromise!==m})});g.catch(function(y){return y});var v=l.filter(function(y){return d.has(y.join(u))});return n.triggerOnFieldsChange(v),g}),be(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var i=n.callbacks.onFinish;if(i)try{i(r)}catch(a){console.error(a)}}).catch(function(r){var i=n.callbacks.onFinishFailed;i&&i(r)})}),this.forceRootUpdate=t});function dde(e){var t=b.useRef(),n=b.useState({}),r=Fe(n,2),i=r[1];if(!t.current)if(e)t.current=e;else{var a=function(){i({})},o=new vPt(a);t.current=o.getForm()}return[t.current]}var tie=b.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Mje=function(t){var n=t.validateMessages,r=t.onFormChange,i=t.onFormFinish,a=t.children,o=b.useContext(tie),s=b.useRef({});return b.createElement(tie.Provider,{value:we(we({},o),{},{validateMessages:we(we({},o.validateMessages),n),triggerFormChange:function(c,u){r&&r(c,{changedFields:u,forms:s.current}),o.triggerFormChange(c,u)},triggerFormFinish:function(c,u){i&&i(c,{values:u,forms:s.current}),o.triggerFormFinish(c,u)},registerForm:function(c,u){c&&(s.current=we(we({},s.current),{},be({},c,u))),o.registerForm(c,u)},unregisterForm:function(c){var u=we({},s.current);delete u[c],s.current=u,o.unregisterForm(c)}})},a)},yPt=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],bPt=function(t,n){var r=t.name,i=t.initialValues,a=t.fields,o=t.form,s=t.preserve,l=t.children,c=t.component,u=c===void 0?"form":c,d=t.validateMessages,f=t.validateTrigger,p=f===void 0?"onChange":f,h=t.onValuesChange,m=t.onFieldsChange,g=t.onFinish,v=t.onFinishFailed,y=t.clearOnDestroy,_=$n(t,yPt),S=b.useRef(null),C=b.useContext(tie),w=dde(o),x=Fe(w,1),T=x[0],A=T.getInternalHooks(FS),I=A.useSubscribe,R=A.setInitialValues,N=A.setCallbacks,P=A.setValidateMessages,L=A.setPreserve,$=A.destroyForm;b.useImperativeHandle(n,function(){return we(we({},T),{},{nativeElement:S.current})}),b.useEffect(function(){return C.registerForm(r,T),function(){C.unregisterForm(r)}},[C,T,r]),P(we(we({},C.validateMessages),d)),N({onValuesChange:h,onFieldsChange:function(G){if(C.triggerFormChange(r,G),m){for(var q=arguments.length,W=new Array(q>1?q-1:0),K=1;K<q;K++)W[K-1]=arguments[K];m.apply(void 0,[G].concat(W))}},onFinish:function(G){C.triggerFormFinish(r,G),g&&g(G)},onFinishFailed:v}),L(s);var D=b.useRef(null);R(i,!D.current),D.current||(D.current=!0),b.useEffect(function(){return function(){return $(y)}},[]);var z,U=typeof l=="function";if(U){var H=T.getFieldsValue(!0);z=l(H,T)}else z=l;I(!U);var M=b.useRef();b.useEffect(function(){fPt(M.current||[],a||[])||T.setFields(a||[]),M.current=a},[a,T]);var B=b.useMemo(function(){return we(we({},T),{},{validateTrigger:p})},[T,p]),k=b.createElement(MN.Provider,{value:null},b.createElement(DE.Provider,{value:B},z));return u===!1?k:b.createElement(u,Xe({},_,{ref:S,onSubmit:function(G){G.preventDefault(),G.stopPropagation(),T.submit()},onReset:function(G){var q;G.preventDefault(),T.resetFields(),(q=_.onReset)===null||q===void 0||q.call(_,G)}}),k)};function J_e(e){try{return JSON.stringify(e)}catch{return Math.random()}}function Dje(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],a=i===void 0?{}:i,o=NLt(a)?{form:a}:a,s=o.form,l=b.useState(),c=Fe(l,2),u=c[0],d=c[1],f=b.useMemo(function(){return J_e(u)},[u]),p=b.useRef(f);p.current=f;var h=b.useContext(DE),m=s||h,g=m&&m._init,v=zs(r),y=b.useRef(v);return y.current=v,b.useEffect(function(){if(g){var _=m.getFieldsValue,S=m.getInternalHooks,C=S(FS),w=C.registerWatch,x=function(R,N){var P=o.preserve?N:R;return typeof r=="function"?r(P):Sf(P,y.current)},T=w(function(I,R){var N=x(I,R),P=J_e(N);p.current!==P&&(p.current=P,d(N))}),A=x(_(),_(!0));return u!==A&&d(A),T}},[g]),u}var _Pt=b.forwardRef(bPt),dT=_Pt;dT.FormProvider=Mje;dT.Field=ude;dT.List=Pje;dT.useForm=dde;dT.useWatch=Dje;const a0=b.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),$je=b.createContext(null),Fje=e=>{const t=Xa(e,["prefixCls"]);return b.createElement(Mje,Object.assign({},t))},fde=b.createContext({prefixCls:""}),Ol=b.createContext({}),SPt=e=>{let{children:t,status:n,override:r}=e;const i=b.useContext(Ol),a=b.useMemo(()=>{const o=Object.assign({},i);return r&&delete o.isFormItemInput,n&&(delete o.status,delete o.hasFeedback,delete o.feedbackIcon),o},[n,r,i]);return b.createElement(Ol.Provider,{value:a},t)},Bje=b.createContext(void 0),lm=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let i=r;return n&&(i=se.createElement(SPt,{override:!0,status:!0},i)),t&&(i=se.createElement(B8t,null,i)),i};function w3(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function e2e(e){const{closable:t,closeIcon:n}=e||{};return se.useMemo(()=>{if(!t&&(t===!1||n===!1||n===null))return!1;if(t===void 0&&n===void 0)return null;let r={closeIcon:typeof n!="boolean"&&n!==null?n:void 0};return t&&typeof t=="object"&&(r=Object.assign(Object.assign({},r),t)),r},[t,n])}function t2e(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(i=>{i&&Object.keys(i).forEach(a=>{i[a]!==void 0&&(e[a]=i[a])})}),e}const EPt={};function iz(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:EPt;const r=e2e(e),i=e2e(t),a=se.useMemo(()=>Object.assign({closeIcon:se.createElement(Ic,null)},n),[n]),o=se.useMemo(()=>r===!1?!1:r?t2e(a,i,r):i===!1?!1:i?t2e(a,i):a.closable?a:!1,[r,i,a]);return se.useMemo(()=>{if(o===!1)return[!1,null];const{closeIconRender:s}=a,{closeIcon:l}=o;let c=l;if(c!=null){s&&(c=s(l));const u=lo(o,!0);Object.keys(u).length&&(c=se.isValidElement(c)?se.cloneElement(c,u):se.createElement("span",Object.assign({},u),c))}return[!0,c]},[o,a])}var jje=function(t){if(Zl()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(i){return i in r.style})}return!1},CPt=function(t,n){if(!jje(t))return!1;var r=document.createElement("div"),i=r.style[t];return r.style[t]=n,r.style[t]!==i};function wPt(e,t){return!Array.isArray(e)&&t!==void 0?CPt(e,t):jje(e)}const xPt=()=>Zl()&&window.document.documentElement,az=e=>{const{prefixCls:t,className:n,style:r,size:i,shape:a}=e,o=Oe({[`${t}-lg`]:i==="large",[`${t}-sm`]:i==="small"}),s=Oe({[`${t}-circle`]:a==="circle",[`${t}-square`]:a==="square",[`${t}-round`]:a==="round"}),l=b.useMemo(()=>typeof i=="number"?{width:i,height:i,lineHeight:`${i}px`}:{},[i]);return b.createElement("span",{className:Oe(t,o,s,n),style:Object.assign(Object.assign({},l),r)})},TPt=new Dr("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),oz=e=>({height:e,lineHeight:Ce(e)}),E5=e=>Object.assign({width:e},oz(e)),IPt=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:TPt,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),KG=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},oz(e)),APt=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:i,controlHeightSM:a}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},E5(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},E5(i)),[`${t}${t}-sm`]:Object.assign({},E5(a))}},RPt=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:i,controlHeightSM:a,gradientFromColor:o,calc:s}=e;return{[`${r}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:o,borderRadius:n},KG(t,s)),[`${r}-lg`]:Object.assign({},KG(i,s)),[`${r}-sm`]:Object.assign({},KG(a,s))}},n2e=e=>Object.assign({width:e},oz(e)),NPt=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:i,calc:a}=e;return{[`${t}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:r,borderRadius:i},n2e(a(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},n2e(n)),{maxWidth:a(n).mul(4).equal(),maxHeight:a(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},XG=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},ZG=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},oz(e)),OPt=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:i,controlHeightSM:a,gradientFromColor:o,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:o,borderRadius:t,width:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal()},ZG(r,s))},XG(e,r,n)),{[`${n}-lg`]:Object.assign({},ZG(i,s))}),XG(e,i,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},ZG(a,s))}),XG(e,a,`${n}-sm`))},LPt=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:i,skeletonButtonCls:a,skeletonInputCls:o,skeletonImageCls:s,controlHeight:l,controlHeightLG:c,controlHeightSM:u,gradientFromColor:d,padding:f,marginSM:p,borderRadius:h,titleHeight:m,blockRadius:g,paragraphLiHeight:v,controlHeightXS:y,paragraphMarginTop:_}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:f,verticalAlign:"top",[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:d},E5(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},E5(c)),[`${n}-sm`]:Object.assign({},E5(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${r}`]:{width:"100%",height:m,background:d,borderRadius:g,[`+ ${i}`]:{marginBlockStart:u}},[`${i}`]:{padding:0,"> li":{width:"100%",height:v,listStyle:"none",background:d,borderRadius:g,"+ li":{marginBlockStart:y}}},[`${i}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${i} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-content`]:{[`${r}`]:{marginBlockStart:p,[`+ ${i}`]:{marginBlockStart:_}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},OPt(e)),APt(e)),RPt(e)),NPt(e)),[`${t}${t}-block`]:{width:"100%",[`${a}`]:{width:"100%"},[`${o}`]:{width:"100%"}},[`${t}${t}-active`]:{[`
        ${r},
        ${i} > li,
        ${n},
        ${a},
        ${o},
        ${s}
      `]:Object.assign({},IPt(e))}}},PPt=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,i=n;return{color:r,colorGradientEnd:i,gradientFromColor:r,gradientToColor:i,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},fT=Kr("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=br(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[LPt(r)]},PPt,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),kPt=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,shape:a="circle",size:o="default"}=e,{getPrefixCls:s}=b.useContext(Sn),l=s("skeleton",t),[c,u,d]=fT(l),f=Xa(e,["prefixCls","className"]),p=Oe(l,`${l}-element`,{[`${l}-active`]:i},n,r,u,d);return c(b.createElement("div",{className:p},b.createElement(az,Object.assign({prefixCls:`${l}-avatar`,shape:a,size:o},f))))},MPt=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:a=!1,size:o="default"}=e,{getPrefixCls:s}=b.useContext(Sn),l=s("skeleton",t),[c,u,d]=fT(l),f=Xa(e,["prefixCls"]),p=Oe(l,`${l}-element`,{[`${l}-active`]:i,[`${l}-block`]:a},n,r,u,d);return c(b.createElement("div",{className:p},b.createElement(az,Object.assign({prefixCls:`${l}-button`,size:o},f))))},DPt="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",$Pt=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:a}=e,{getPrefixCls:o}=b.useContext(Sn),s=o("skeleton",t),[l,c,u]=fT(s),d=Oe(s,`${s}-element`,{[`${s}-active`]:a},n,r,c,u);return l(b.createElement("div",{className:d},b.createElement("div",{className:Oe(`${s}-image`,n),style:i},b.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},b.createElement("title",null,"Image placeholder"),b.createElement("path",{d:DPt,className:`${s}-image-path`})))))},FPt=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:a,size:o="default"}=e,{getPrefixCls:s}=b.useContext(Sn),l=s("skeleton",t),[c,u,d]=fT(l),f=Xa(e,["prefixCls"]),p=Oe(l,`${l}-element`,{[`${l}-active`]:i,[`${l}-block`]:a},n,r,u,d);return c(b.createElement("div",{className:p},b.createElement(az,Object.assign({prefixCls:`${l}-input`,size:o},f))))},BPt=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:a,children:o}=e,{getPrefixCls:s}=b.useContext(Sn),l=s("skeleton",t),[c,u,d]=fT(l),f=Oe(l,`${l}-element`,{[`${l}-active`]:a},u,n,r,d),p=o??b.createElement(a_t,null);return c(b.createElement("div",{className:f},b.createElement("div",{className:Oe(`${l}-image`,n),style:i},p)))},jPt=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},zPt=e=>{const{prefixCls:t,className:n,style:r,rows:i}=e,a=Tt(Array(i)).map((o,s)=>b.createElement("li",{key:s,style:{width:jPt(s,e)}}));return b.createElement("ul",{className:Oe(t,n),style:r},a)},UPt=e=>{let{prefixCls:t,className:n,width:r,style:i}=e;return b.createElement("h3",{className:Oe(t,n),style:Object.assign({width:r},i)})};function QG(e){return e&&typeof e=="object"?e:{}}function HPt(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function VPt(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function GPt(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const Ff=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:i,style:a,children:o,avatar:s=!1,title:l=!0,paragraph:c=!0,active:u,round:d}=e,{getPrefixCls:f,direction:p,skeleton:h}=b.useContext(Sn),m=f("skeleton",t),[g,v,y]=fT(m);if(n||!("loading"in e)){const _=!!s,S=!!l,C=!!c;let w;if(_){const A=Object.assign(Object.assign({prefixCls:`${m}-avatar`},HPt(S,C)),QG(s));w=b.createElement("div",{className:`${m}-header`},b.createElement(az,Object.assign({},A)))}let x;if(S||C){let A;if(S){const R=Object.assign(Object.assign({prefixCls:`${m}-title`},VPt(_,C)),QG(l));A=b.createElement(UPt,Object.assign({},R))}let I;if(C){const R=Object.assign(Object.assign({prefixCls:`${m}-paragraph`},GPt(_,S)),QG(c));I=b.createElement(zPt,Object.assign({},R))}x=b.createElement("div",{className:`${m}-content`},A,I)}const T=Oe(m,{[`${m}-with-avatar`]:_,[`${m}-active`]:u,[`${m}-rtl`]:p==="rtl",[`${m}-round`]:d},h?.className,r,i,v,y);return g(b.createElement("div",{className:T,style:Object.assign(Object.assign({},h?.style),a)},w,x))}return o??null};Ff.Button=MPt;Ff.Avatar=kPt;Ff.Input=FPt;Ff.Image=$Pt;Ff.Node=BPt;function r2e(){}const qPt=b.createContext({add:r2e,remove:r2e});function zje(e){const t=b.useContext(qPt),n=b.useRef();return gr(i=>{if(i){const a=e?i.querySelector(e):i;t.add(a),n.current=a}else t.remove(n.current)})}const i2e=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=b.useContext(yO);return se.createElement(ut,Object.assign({onClick:n},e),t)},a2e=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:i}=b.useContext(yO);return se.createElement(ut,Object.assign({},rde(n),{loading:e,onClick:i},t),r)};function Uje(e,t){return se.createElement("span",{className:`${e}-close-x`},t||se.createElement(Ic,{className:`${e}-close-icon`}))}const Hje=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:i,onOk:a,onCancel:o,okButtonProps:s,cancelButtonProps:l,footer:c}=e,[u]=Dd("Modal",MBe()),d=t||u?.okText,f=r||u?.cancelText,p={confirmLoading:i,okButtonProps:s,cancelButtonProps:l,okTextLocale:d,cancelTextLocale:f,okType:n,onOk:a,onCancel:o},h=se.useMemo(()=>p,Tt(Object.values(p)));let m;return typeof c=="function"||typeof c>"u"?(m=se.createElement(se.Fragment,null,se.createElement(i2e,null),se.createElement(a2e,null)),typeof c=="function"&&(m=c(m,{OkBtn:a2e,CancelBtn:i2e})),m=se.createElement(wje,{value:h},m)):m=c,se.createElement(Yue,{disabled:!1},m)},_O=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
        opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
        opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),WPt=e=>({animationDuration:e,animationFillMode:"both"}),YPt=e=>({animationDuration:e,animationFillMode:"both"}),sz=function(e,t,n,r){const a=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
      ${a}${e}-enter,
      ${a}${e}-appear
    `]:Object.assign(Object.assign({},WPt(r)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:Object.assign(Object.assign({},YPt(r)),{animationPlayState:"paused"}),[`
      ${a}${e}-enter${e}-enter-active,
      ${a}${e}-appear${e}-appear-active
    `]:{animationName:t,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},KPt=new Dr("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),XPt=new Dr("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),pde=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,i=t?"&":"";return[sz(r,KPt,XPt,e.motionDurationMid,t),{[`
        ${i}${r}-enter,
        ${i}${r}-appear
      `]:{opacity:0,animationTimingFunction:"linear"},[`${i}${r}-leave`]:{animationTimingFunction:"linear"}}]},ZPt=new Dr("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),QPt=new Dr("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),JPt=new Dr("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ekt=new Dr("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),tkt=new Dr("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),nkt=new Dr("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),rkt=new Dr("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ikt=new Dr("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),akt={"move-up":{inKeyframes:rkt,outKeyframes:ikt},"move-down":{inKeyframes:ZPt,outKeyframes:QPt},"move-left":{inKeyframes:JPt,outKeyframes:ekt},"move-right":{inKeyframes:tkt,outKeyframes:nkt}},x3=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=akt[t];return[sz(r,i,a,e.motionDurationMid),{[`
        ${r}-enter,
        ${r}-appear
      `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},lz=new Dr("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),cz=new Dr("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),uz=new Dr("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),dz=new Dr("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),okt=new Dr("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),skt=new Dr("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),lkt=new Dr("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),ckt=new Dr("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),ukt={"slide-up":{inKeyframes:lz,outKeyframes:cz},"slide-down":{inKeyframes:uz,outKeyframes:dz},"slide-left":{inKeyframes:okt,outKeyframes:skt},"slide-right":{inKeyframes:lkt,outKeyframes:ckt}},ev=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=ukt[t];return[sz(r,i,a,e.motionDurationMid),{[`
      ${r}-enter,
      ${r}-appear
    `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},hde=new Dr("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),dkt=new Dr("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),o2e=new Dr("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),s2e=new Dr("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),fkt=new Dr("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),pkt=new Dr("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),hkt=new Dr("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),mkt=new Dr("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),gkt=new Dr("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),vkt=new Dr("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),ykt=new Dr("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),bkt=new Dr("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),_kt={zoom:{inKeyframes:hde,outKeyframes:dkt},"zoom-big":{inKeyframes:o2e,outKeyframes:s2e},"zoom-big-fast":{inKeyframes:o2e,outKeyframes:s2e},"zoom-left":{inKeyframes:hkt,outKeyframes:mkt},"zoom-right":{inKeyframes:gkt,outKeyframes:vkt},"zoom-up":{inKeyframes:fkt,outKeyframes:pkt},"zoom-down":{inKeyframes:ykt,outKeyframes:bkt}},pT=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=_kt[t];return[sz(r,i,a,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
        ${r}-enter,
        ${r}-appear
      `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};function l2e(e){return{position:e,inset:0}}const Vje=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},l2e("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},l2e("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:pde(e)}]},Skt=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${Ce(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},Wr(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${Ce(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${Ce(e.modalCloseBtnSize)}`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},kp(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${Ce(e.borderRadiusLG)} ${Ce(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${Ce(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,
          ${t}-body,
          ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},Ekt=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},Gje=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return br(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},qje=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${Ce(e.paddingMD)} ${Ce(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${Ce(e.padding)} ${Ce(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${Ce(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${Ce(e.paddingXS)} ${Ce(e.padding)}`:0,footerBorderTop:e.wireframe?`${Ce(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${Ce(e.borderRadiusLG)} ${Ce(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${Ce(e.padding*2)} ${Ce(e.padding*2)} ${Ce(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),Wje=Kr("Modal",e=>{const t=Gje(e);return[Skt(t),Ekt(t),Vje(t),pT(t,"zoom")]},qje,{unitless:{titleLineHeight:!0}});var Ckt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};let nie;const wkt=e=>{nie={x:e.pageX,y:e.pageY},setTimeout(()=>{nie=null},100)};xPt()&&document.documentElement.addEventListener("click",wkt,!0);const Yje=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:i,modal:a}=b.useContext(Sn),o=k=>{const{onCancel:F}=e;F?.(k)},s=k=>{const{onOk:F}=e;F?.(k)},{prefixCls:l,className:c,rootClassName:u,open:d,wrapClassName:f,centered:p,getContainer:h,focusTriggerAfterClose:m=!0,style:g,visible:v,width:y=520,footer:_,classNames:S,styles:C,children:w,loading:x}=e,T=Ckt(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading"]),A=r("modal",l),I=r(),R=Ja(A),[N,P,L]=Wje(A,R),$=Oe(f,{[`${A}-centered`]:!!p,[`${A}-wrap-rtl`]:i==="rtl"}),D=_!==null&&!x?b.createElement(Hje,Object.assign({},e,{onOk:s,onCancel:o})):null,[z,U]=iz(w3(e),w3(a),{closable:!0,closeIcon:b.createElement(Ic,{className:`${A}-close-icon`}),closeIconRender:k=>Uje(A,k)}),H=zje(`.${A}-content`),[M,B]=Em("Modal",T.zIndex);return N(b.createElement(lm,{form:!0,space:!0},b.createElement(cT.Provider,{value:B},b.createElement(lde,Object.assign({width:y},T,{zIndex:M,getContainer:h===void 0?n:h,prefixCls:A,rootClassName:Oe(P,u,L,R),footer:D,visible:d??v,mousePosition:(t=T.mousePosition)!==null&&t!==void 0?t:nie,onClose:o,closable:z,closeIcon:U,focusTriggerAfterClose:m,transitionName:Ad(I,"zoom",e.transitionName),maskTransitionName:Ad(I,"fade",e.maskTransitionName),className:Oe(P,c,a?.className),style:Object.assign(Object.assign({},a?.style),g),classNames:Object.assign(Object.assign(Object.assign({},a?.classNames),S),{wrapper:Oe($,S?.wrapper)}),styles:Object.assign(Object.assign({},a?.styles),C),panelRef:H}),x?b.createElement(Ff,{active:!0,title:!1,paragraph:{rows:4},className:`${A}-body-skeleton`}):w))))},xkt=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:i,fontSize:a,lineHeight:o,modalTitleHeight:s,fontHeight:l,confirmBodyPadding:c}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${u}-body-wrapper`]:Object.assign({},ME()),[`&${t} ${t}-body`]:{padding:c},[`${u}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:i,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(l).sub(i).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(i).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${Ce(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${u}-content`]:{color:e.colorText,fontSize:a,lineHeight:o},[`${u}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${u}-error ${u}-body > ${e.iconCls}`]:{color:e.colorError},[`${u}-warning ${u}-body > ${e.iconCls},
        ${u}-confirm ${u}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${u}-info ${u}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${u}-success ${u}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},Tkt=bC(["Modal","confirm"],e=>{const t=Gje(e);return[xkt(t)]},qje,{order:-1e3});var Ikt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function Kje(e){const{prefixCls:t,icon:n,okText:r,cancelText:i,confirmPrefixCls:a,type:o,okCancel:s,footer:l,locale:c}=e,u=Ikt(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let d=n;if(!n&&n!==null)switch(o){case"info":d=b.createElement(rO,null);break;case"success":d=b.createElement(pC,null);break;case"error":d=b.createElement(fv,null);break;default:d=b.createElement(__,null)}const f=s??o==="confirm",p=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[h]=Dd("Modal"),m=c||h,g=r||(f?m?.okText:m?.justOkText),v=i||m?.cancelText,y=Object.assign({autoFocusButton:p,cancelTextLocale:v,okTextLocale:g,mergedOkCancel:f},u),_=b.useMemo(()=>y,Tt(Object.values(y))),S=b.createElement(b.Fragment,null,b.createElement(L_e,null),b.createElement(P_e,null)),C=e.title!==void 0&&e.title!==null,w=`${a}-body`;return b.createElement("div",{className:`${a}-body-wrapper`},b.createElement("div",{className:Oe(w,{[`${w}-has-title`]:C})},d,b.createElement("div",{className:`${a}-paragraph`},C&&b.createElement("span",{className:`${a}-title`},e.title),b.createElement("div",{className:`${a}-content`},e.content))),l===void 0||typeof l=="function"?b.createElement(wje,{value:_},b.createElement("div",{className:`${a}-btns`},typeof l=="function"?l(S,{OkBtn:P_e,CancelBtn:L_e}):S)):l,b.createElement(Tkt,{prefixCls:t}))}const Akt=e=>{const{close:t,zIndex:n,afterClose:r,open:i,keyboard:a,centered:o,getContainer:s,maskStyle:l,direction:c,prefixCls:u,wrapClassName:d,rootPrefixCls:f,bodyStyle:p,closable:h=!1,closeIcon:m,modalRender:g,focusTriggerAfterClose:v,onConfirm:y,styles:_}=e,S=`${u}-confirm`,C=e.width||416,w=e.style||{},x=e.mask===void 0?!0:e.mask,T=e.maskClosable===void 0?!1:e.maskClosable,A=Oe(S,`${S}-${e.type}`,{[`${S}-rtl`]:c==="rtl"},e.className),[,I]=nl(),R=b.useMemo(()=>n!==void 0?n:I.zIndexPopupBase+tde,[n,I]);return b.createElement(Yje,{prefixCls:u,className:A,wrapClassName:Oe({[`${S}-centered`]:!!e.centered},d),onCancel:()=>{t?.({triggerCancel:!0}),y?.(!1)},open:i,title:"",footer:null,transitionName:Ad(f||"","zoom",e.transitionName),maskTransitionName:Ad(f||"","fade",e.maskTransitionName),mask:x,maskClosable:T,style:w,styles:Object.assign({body:p,mask:l},_),width:C,zIndex:R,afterClose:r,keyboard:a,centered:o,getContainer:s,closable:h,closeIcon:m,modalRender:g,focusTriggerAfterClose:v},b.createElement(Kje,Object.assign({},e,{confirmPrefixCls:S})))},Xje=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:i}=e;return b.createElement(zp,{prefixCls:t,iconPrefixCls:n,direction:r,theme:i},b.createElement(Akt,Object.assign({},e)))},BS=[];let Zje="";function Qje(){return Zje}const Rkt=e=>{var t,n;const{prefixCls:r,getContainer:i,direction:a}=e,o=MBe(),s=b.useContext(Sn),l=Qje()||s.getPrefixCls(),c=r||`${l}-modal`;let u=i;return u===!1&&(u=void 0),se.createElement(Xje,Object.assign({},e,{rootPrefixCls:l,prefixCls:c,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:a??s.direction,locale:(n=(t=s.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:o,getContainer:u}))};function SO(e){const t=Que(),n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:s,open:!0}),i;function a(){for(var c,u=arguments.length,d=new Array(u),f=0;f<u;f++)d[f]=arguments[f];if(d.some(m=>m?.triggerCancel)){var h;(c=e.onCancel)===null||c===void 0||(h=c).call.apply(h,[e,()=>{}].concat(Tt(d.slice(1))))}for(let m=0;m<BS.length;m++)if(BS[m]===s){BS.splice(m,1);break}mje(n)}function o(c){clearTimeout(i),i=setTimeout(()=>{const u=t.getPrefixCls(void 0,Qje()),d=t.getIconPrefixCls(),f=t.getTheme(),p=se.createElement(Rkt,Object.assign({},c));tz(se.createElement(zp,{prefixCls:u,iconPrefixCls:d,theme:f},t.holderRender?t.holderRender(p):p),n)})}function s(){for(var c=arguments.length,u=new Array(c),d=0;d<c;d++)u[d]=arguments[d];r=Object.assign(Object.assign({},r),{open:!1,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),a.apply(this,u)}}),r.visible&&delete r.visible,o(r)}function l(c){typeof c=="function"?r=c(r):r=Object.assign(Object.assign({},r),c),o(r)}return o(r),BS.push(s),{destroy:s,update:l}}function Jje(e){return Object.assign(Object.assign({},e),{type:"warning"})}function eze(e){return Object.assign(Object.assign({},e),{type:"info"})}function tze(e){return Object.assign(Object.assign({},e),{type:"success"})}function nze(e){return Object.assign(Object.assign({},e),{type:"error"})}function rze(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function Nkt(e){let{rootPrefixCls:t}=e;Zje=t}var Okt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Lkt=(e,t)=>{var n,{afterClose:r,config:i}=e,a=Okt(e,["afterClose","config"]);const[o,s]=b.useState(!0),[l,c]=b.useState(i),{direction:u,getPrefixCls:d}=b.useContext(Sn),f=d("modal"),p=d(),h=()=>{var y;r(),(y=l.afterClose)===null||y===void 0||y.call(l)},m=function(){var y;s(!1);for(var _=arguments.length,S=new Array(_),C=0;C<_;C++)S[C]=arguments[C];if(S.some(T=>T?.triggerCancel)){var x;(y=l.onCancel)===null||y===void 0||(x=y).call.apply(x,[l,()=>{}].concat(Tt(S.slice(1))))}};b.useImperativeHandle(t,()=>({destroy:m,update:y=>{c(_=>Object.assign(Object.assign({},_),y))}}));const g=(n=l.okCancel)!==null&&n!==void 0?n:l.type==="confirm",[v]=Dd("Modal",Id.Modal);return b.createElement(Xje,Object.assign({prefixCls:f,rootPrefixCls:p},l,{close:m,open:o,afterClose:h,okText:l.okText||(g?v?.okText:v?.justOkText),direction:l.direction||u,cancelText:l.cancelText||v?.cancelText},a))},Pkt=b.forwardRef(Lkt);let c2e=0;const kkt=b.memo(b.forwardRef((e,t)=>{const[n,r]=b8t();return b.useImperativeHandle(t,()=>({patchElement:r}),[]),b.createElement(b.Fragment,null,n)}));function Mkt(){const e=b.useRef(null),[t,n]=b.useState([]);b.useEffect(()=>{t.length&&(Tt(t).forEach(o=>{o()}),n([]))},[t]);const r=b.useCallback(a=>function(s){var l;c2e+=1;const c=b.createRef();let u;const d=new Promise(g=>{u=g});let f=!1,p;const h=b.createElement(Pkt,{key:`modal-${c2e}`,config:a(s),ref:c,afterClose:()=>{p?.()},isSilent:()=>f,onConfirm:g=>{u(g)}});return p=(l=e.current)===null||l===void 0?void 0:l.patchElement(h),p&&BS.push(p),{destroy:()=>{function g(){var v;(v=c.current)===null||v===void 0||v.destroy()}c.current?g():n(v=>[].concat(Tt(v),[g]))},update:g=>{function v(){var y;(y=c.current)===null||y===void 0||y.update(g)}c.current?v():n(y=>[].concat(Tt(y),[v]))},then:g=>(f=!0,d.then(g))}},[]);return[b.useMemo(()=>({info:r(eze),success:r(tze),error:r(nze),warning:r(Jje),confirm:r(rze)}),[]),b.createElement(kkt,{key:"modal-holder",ref:e})]}const Dkt=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,i=`${t}-notice`,a=new Dr("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),o=new Dr("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),s=new Dr("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),l=new Dr("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[i]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:o}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:s}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[i]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}}}}},$kt=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],Fkt={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},Bkt=(e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[Fkt[t]]:{value:0,_skip_check_:!0}}}}},jkt=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={overflow:"hidden",[`& > ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},zkt=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return Object.assign({},t)},Ukt=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},jkt(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},zkt(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},$kt.map(n=>Bkt(e,n)).reduce((n,r)=>Object.assign(Object.assign({},n),r),{}))},ize=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:i,notificationMarginBottom:a,borderRadiusLG:o,colorSuccess:s,colorInfo:l,colorWarning:c,colorError:u,colorTextHeading:d,notificationBg:f,notificationPadding:p,notificationMarginEdge:h,notificationProgressBg:m,notificationProgressHeight:g,fontSize:v,lineHeight:y,width:_,notificationIconSize:S,colorText:C}=e,w=`${n}-notice`;return{position:"relative",marginBottom:a,marginInlineStart:"auto",background:f,borderRadius:o,boxShadow:r,[w]:{padding:p,width:_,maxWidth:`calc(100vw - ${Ce(e.calc(h).mul(2).equal())})`,overflow:"hidden",lineHeight:y,wordWrap:"break-word"},[`${w}-message`]:{marginBottom:e.marginXS,color:d,fontSize:i,lineHeight:e.lineHeightLG},[`${w}-description`]:{fontSize:v,color:C},[`${w}-closable ${w}-message`]:{paddingInlineEnd:e.paddingLG},[`${w}-with-icon ${w}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(S).equal(),fontSize:i},[`${w}-with-icon ${w}-description`]:{marginInlineStart:e.calc(e.marginSM).add(S).equal(),fontSize:v},[`${w}-icon`]:{position:"absolute",fontSize:S,lineHeight:1,[`&-success${t}`]:{color:s},[`&-info${t}`]:{color:l},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${w}-close`]:Object.assign({position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},kp(e)),[`${w}-progress`]:{position:"absolute",display:"block",appearance:"none",WebkitAppearance:"none",inlineSize:`calc(100% - ${Ce(o)} * 2)`,left:{_skip_check_:!0,value:o},right:{_skip_check_:!0,value:o},bottom:0,blockSize:g,border:0,"&, &::-webkit-progress-bar":{borderRadius:o,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:m},"&::-webkit-progress-value":{borderRadius:o,background:m}},[`${w}-btn`]:{float:"right",marginTop:e.marginSM}}},Hkt=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:i,motionEaseInOut:a}=e,o=`${t}-notice`,s=new Dr("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},Wr(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:a,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:a,animationFillMode:"both",animationDuration:i,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:s,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${o}-btn`]:{float:"left"}}})},{[t]:{[`${o}-wrapper`]:Object.assign({},ize(e))}}]},aze=e=>({zIndexPopup:e.zIndexPopupBase+tde+50,width:384}),oze=e=>{const t=e.paddingMD,n=e.paddingLG;return br(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${Ce(e.paddingMD)} ${Ce(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},sze=Kr("Notification",e=>{const t=oze(e);return[Hkt(t),Dkt(t),Ukt(t)]},aze),Vkt=bC(["Notification","PurePanel"],e=>{const t=`${e.componentCls}-notice`,n=oze(e);return{[`${t}-pure-panel`]:Object.assign(Object.assign({},ize(n)),{width:n.width,maxWidth:`calc(100vw - ${Ce(e.calc(n.notificationMarginEdge).mul(2).equal())})`,margin:0})}},aze);var Gkt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function mde(e,t){return t===null||t===!1?null:t||b.createElement(Ic,{className:`${e}-close-icon`})}const qkt={success:pC,info:rO,error:fv,warning:__},lze=e=>{const{prefixCls:t,icon:n,type:r,message:i,description:a,btn:o,role:s="alert"}=e;let l=null;return n?l=b.createElement("span",{className:`${t}-icon`},n):r&&(l=b.createElement(qkt[r]||null,{className:Oe(`${t}-icon`,`${t}-icon-${r}`)})),b.createElement("div",{className:Oe({[`${t}-with-icon`]:l}),role:s},l,b.createElement("div",{className:`${t}-message`},i),b.createElement("div",{className:`${t}-description`},a),o&&b.createElement("div",{className:`${t}-btn`},o))},Wkt=e=>{const{prefixCls:t,className:n,icon:r,type:i,message:a,description:o,btn:s,closable:l=!0,closeIcon:c,className:u}=e,d=Gkt(e,["prefixCls","className","icon","type","message","description","btn","closable","closeIcon","className"]),{getPrefixCls:f}=b.useContext(Sn),p=t||f("notification"),h=`${p}-notice`,m=Ja(p),[g,v,y]=sze(p,m);return g(b.createElement("div",{className:Oe(`${h}-pure-panel`,v,n,y,m)},b.createElement(Vkt,{prefixCls:p}),b.createElement(ede,Object.assign({},d,{prefixCls:p,eventKey:"pure",duration:null,closable:l,className:Oe({notificationClassName:u}),closeIcon:mde(p,c),content:b.createElement(lze,{prefixCls:h,icon:r,type:i,message:a,description:o,btn:s})}))))};function Ykt(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n};break}return r}function Kkt(e){return{motionName:`${e}-fade`}}var Xkt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const u2e=24,Zkt=4.5,Qkt="topRight",Jkt=e=>{let{children:t,prefixCls:n}=e;const r=Ja(n),[i,a,o]=sze(n,r);return i(se.createElement(cje,{classNames:{list:Oe(a,o,r)}},t))},e9t=(e,t)=>{let{prefixCls:n,key:r}=t;return se.createElement(Jkt,{prefixCls:n,key:r},e)},t9t=se.forwardRef((e,t)=>{const{top:n,bottom:r,prefixCls:i,getContainer:a,maxCount:o,rtl:s,onAllRemoved:l,stack:c,duration:u,pauseOnHover:d=!0,showProgress:f}=e,{getPrefixCls:p,getPopupContainer:h,notification:m,direction:g}=b.useContext(Sn),[,v]=nl(),y=i||p("notification"),_=T=>Ykt(T,n??u2e,r??u2e),S=()=>Oe({[`${y}-rtl`]:s??g==="rtl"}),C=()=>Kkt(y),[w,x]=uje({prefixCls:y,style:_,className:S,motion:C,closable:!0,closeIcon:mde(y),duration:u??Zkt,getContainer:()=>a?.()||h?.()||document.body,maxCount:o,pauseOnHover:d,showProgress:f,onAllRemoved:l,renderNotifications:e9t,stack:c===!1?!1:{threshold:typeof c=="object"?c?.threshold:void 0,offset:8,gap:v.margin}});return se.useImperativeHandle(t,()=>Object.assign(Object.assign({},w),{prefixCls:y,notification:m})),x});function cze(e){const t=se.useRef(null);return g0(),[se.useMemo(()=>{const r=s=>{var l;if(!t.current)return;const{open:c,prefixCls:u,notification:d}=t.current,f=`${u}-notice`,{message:p,description:h,icon:m,type:g,btn:v,className:y,style:_,role:S="alert",closeIcon:C,closable:w}=s,x=Xkt(s,["message","description","icon","type","btn","className","style","role","closeIcon","closable"]),T=mde(f,typeof C<"u"?C:d?.closeIcon);return c(Object.assign(Object.assign({placement:(l=e?.placement)!==null&&l!==void 0?l:Qkt},x),{content:se.createElement(lze,{prefixCls:f,icon:m,type:g,message:p,description:h,btn:v,role:S}),className:Oe(g&&`${f}-${g}`,y,d?.className),style:Object.assign(Object.assign({},d?.style),_),closeIcon:T,closable:w??!!T}))},a={open:r,destroy:s=>{var l,c;s!==void 0?(l=t.current)===null||l===void 0||l.close(s):(c=t.current)===null||c===void 0||c.destroy()}};return["success","info","warning","error"].forEach(s=>{a[s]=l=>r(Object.assign(Object.assign({},l),{type:s}))}),a},[]),se.createElement(t9t,Object.assign({key:"notification-holder"},e,{ref:t}))]}function n9t(e){return cze(e)}const uze=se.createContext({});function gde(e){return t=>b.createElement(zp,{theme:{token:{motion:!1,zIndexPopupBase:0}}},b.createElement(e,Object.assign({},t)))}const EO=(e,t,n,r)=>gde(a=>{const{prefixCls:o,style:s}=a,l=b.useRef(null),[c,u]=b.useState(0),[d,f]=b.useState(0),[p,h]=qr(!1,{value:a.open}),{getPrefixCls:m}=b.useContext(Sn),g=m(t||"select",o);b.useEffect(()=>{if(h(!0),typeof ResizeObserver<"u"){const _=new ResizeObserver(C=>{const w=C[0].target;u(w.offsetHeight+8),f(w.offsetWidth)}),S=setInterval(()=>{var C;const w=n?`.${n(g)}`:`.${g}-dropdown`,x=(C=l.current)===null||C===void 0?void 0:C.querySelector(w);x&&(clearInterval(S),_.observe(x))},10);return()=>{clearInterval(S),_.disconnect()}}},[]);let v=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},s),{margin:0}),open:p,visible:p,getPopupContainer:()=>l.current});r&&(v=r(v));const y={paddingBottom:c,position:"relative",minWidth:d};return b.createElement("div",{ref:l,style:y},b.createElement(e,Object.assign({},v)))}),fz=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e?.substr(0,4))};var pz=function(t){var n=t.className,r=t.customizeIcon,i=t.customizeIconProps,a=t.children,o=t.onMouseDown,s=t.onClick,l=typeof r=="function"?r(i):r;return b.createElement("span",{className:n,onMouseDown:function(u){u.preventDefault(),o?.(u)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},l!==void 0?l:b.createElement("span",{className:Oe(n.split(/\s+/).map(function(c){return"".concat(c,"-icon")}))},a))},r9t=function(t,n,r,i,a){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,s=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,c=se.useMemo(function(){if(cn(i)==="object")return i.clearIcon;if(a)return a},[i,a]),u=se.useMemo(function(){return!!(!o&&i&&(r.length||s)&&!(l==="combobox"&&s===""))},[i,o,r.length,s,l]);return{allowClear:u,clearIcon:se.createElement(pz,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:c},"×")}},dze=b.createContext(null);function i9t(){return b.useContext(dze)}function a9t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=b.useState(!1),n=Fe(t,2),r=n[0],i=n[1],a=b.useRef(null),o=function(){window.clearTimeout(a.current)};b.useEffect(function(){return o},[]);var s=function(c,u){o(),a.current=window.setTimeout(function(){i(c),u&&u()},e)};return[r,s,o]}function fze(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=b.useRef(null),n=b.useRef(null);b.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(i){(i||t.current===null)&&(t.current=i),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function o9t(e,t,n,r){var i=b.useRef(null);i.current={open:t,triggerOpen:n,customizedTrigger:r},b.useEffect(function(){function a(o){var s;if(!((s=i.current)!==null&&s!==void 0&&s.customizedTrigger)){var l=o.target;l.shadowRoot&&o.composed&&(l=o.composedPath()[0]||l),i.current.open&&e().filter(function(c){return c}).every(function(c){return!c.contains(l)&&c!==l})&&i.current.triggerOpen(!1)}}return window.addEventListener("mousedown",a),function(){return window.removeEventListener("mousedown",a)}},[])}function s9t(e){return![Bt.ESC,Bt.SHIFT,Bt.BACKSPACE,Bt.TAB,Bt.WIN_KEY,Bt.ALT,Bt.META,Bt.WIN_KEY_RIGHT,Bt.CTRL,Bt.SEMICOLON,Bt.EQUALS,Bt.CAPS_LOCK,Bt.CONTEXT_MENU,Bt.F1,Bt.F2,Bt.F3,Bt.F4,Bt.F5,Bt.F6,Bt.F7,Bt.F8,Bt.F9,Bt.F10,Bt.F11,Bt.F12].includes(e)}var l9t=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],yw=void 0;function c9t(e,t){var n=e.prefixCls,r=e.invalidate,i=e.item,a=e.renderItem,o=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,u=e.className,d=e.style,f=e.children,p=e.display,h=e.order,m=e.component,g=m===void 0?"div":m,v=$n(e,l9t),y=o&&!p;function _(T){l(c,T)}b.useEffect(function(){return function(){_(null)}},[]);var S=a&&i!==yw?a(i):f,C;r||(C={opacity:y?0:1,height:y?0:yw,overflowY:y?"hidden":yw,order:o?h:yw,pointerEvents:y?"none":yw,position:y?"absolute":yw});var w={};y&&(w["aria-hidden"]=!0);var x=b.createElement(g,Xe({className:Oe(!r&&n,u),style:we(we({},C),d)},w,v,{ref:t}),S);return o&&(x=b.createElement(Sc,{onResize:function(A){var I=A.offsetWidth;_(I)},disabled:s},x)),x}var lR=b.forwardRef(c9t);lR.displayName="Item";function u9t(e){if(typeof MessageChannel>"u")Tr(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function d9t(){var e=b.useRef(null),t=function(r){e.current||(e.current=[],u9t(function(){Ou.unstable_batchedUpdates(function(){e.current.forEach(function(i){i()}),e.current=null})})),e.current.push(r)};return t}function H4(e,t){var n=b.useState(t),r=Fe(n,2),i=r[0],a=r[1],o=gr(function(s){e(function(){a(s)})});return[i,o]}var j$=se.createContext(null),f9t=["component"],p9t=["className"],h9t=["className"],m9t=function(t,n){var r=b.useContext(j$);if(!r){var i=t.component,a=i===void 0?"div":i,o=$n(t,f9t);return b.createElement(a,Xe({},o,{ref:n}))}var s=r.className,l=$n(r,p9t),c=t.className,u=$n(t,h9t);return b.createElement(j$.Provider,{value:null},b.createElement(lR,Xe({ref:n,className:Oe(s,c)},l,u)))},pze=b.forwardRef(m9t);pze.displayName="RawItem";var g9t=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],hze="responsive",mze="invalidate";function v9t(e){return"+ ".concat(e.length," ...")}function y9t(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,i=e.data,a=i===void 0?[]:i,o=e.renderItem,s=e.renderRawItem,l=e.itemKey,c=e.itemWidth,u=c===void 0?10:c,d=e.ssr,f=e.style,p=e.className,h=e.maxCount,m=e.renderRest,g=e.renderRawRest,v=e.suffix,y=e.component,_=y===void 0?"div":y,S=e.itemComponent,C=e.onVisibleChange,w=$n(e,g9t),x=d==="full",T=d9t(),A=H4(T,null),I=Fe(A,2),R=I[0],N=I[1],P=R||0,L=H4(T,new Map),$=Fe(L,2),D=$[0],z=$[1],U=H4(T,0),H=Fe(U,2),M=H[0],B=H[1],k=H4(T,0),F=Fe(k,2),G=F[0],q=F[1],W=H4(T,0),K=Fe(W,2),J=K[0],te=K[1],ae=b.useState(null),re=Fe(ae,2),ue=re[0],de=re[1],fe=b.useState(null),ge=Fe(fe,2),oe=ge[0],Ee=ge[1],ce=b.useMemo(function(){return oe===null&&x?Number.MAX_SAFE_INTEGER:oe||0},[oe,R]),he=b.useState(!1),ye=Fe(he,2),me=ye[0],_e=ye[1],Te="".concat(r,"-item"),xe=Math.max(M,G),De=h===hze,Pe=a.length&&De,Le=h===mze,ze=Pe||typeof h=="number"&&a.length>h,Be=b.useMemo(function(){var Jt=a;return Pe?R===null&&x?Jt=a:Jt=a.slice(0,Math.min(a.length,P/u)):typeof h=="number"&&(Jt=a.slice(0,h)),Jt},[a,u,R,h,Pe]),je=b.useMemo(function(){return Pe?a.slice(ce+1):a.slice(Be.length)},[a,Be,Pe,ce]),Ye=b.useCallback(function(Jt,Vt){var pt;return typeof l=="function"?l(Jt):(pt=l&&Jt?.[l])!==null&&pt!==void 0?pt:Vt},[l]),Ze=b.useCallback(o||function(Jt){return Jt},[o]);function Ke(Jt,Vt,pt){oe===Jt&&(Vt===void 0||Vt===ue)||(Ee(Jt),pt||(_e(Jt<a.length-1),C?.(Jt)),Vt!==void 0&&de(Vt))}function qe(Jt,Vt){N(Vt.clientWidth)}function nt(Jt,Vt){z(function(pt){var tt=new Map(pt);return Vt===null?tt.delete(Jt):tt.set(Jt,Vt),tt})}function Qe(Jt,Vt){q(Vt),B(G)}function it(Jt,Vt){te(Vt)}function yt(Jt){return D.get(Ye(Be[Jt],Jt))}kr(function(){if(P&&typeof xe=="number"&&Be){var Jt=J,Vt=Be.length,pt=Vt-1;if(!Vt){Ke(0,null);return}for(var tt=0;tt<Vt;tt+=1){var dt=yt(tt);if(x&&(dt=dt||0),dt===void 0){Ke(tt-1,void 0,!0);break}if(Jt+=dt,pt===0&&Jt<=P||tt===pt-1&&Jt+yt(pt)<=P){Ke(pt,null);break}else if(Jt+xe>P){Ke(tt-1,Jt-dt-J+G);break}}v&&yt(0)+J>P&&de(null)}},[P,D,G,J,Ye,Be]);var Wt=me&&!!je.length,Mt={};ue!==null&&Pe&&(Mt={position:"absolute",left:ue,top:0});var tn={prefixCls:Te,responsive:Pe,component:S,invalidate:Le},Rt=s?function(Jt,Vt){var pt=Ye(Jt,Vt);return b.createElement(j$.Provider,{key:pt,value:we(we({},tn),{},{order:Vt,item:Jt,itemKey:pt,registerSize:nt,display:Vt<=ce})},s(Jt,Vt))}:function(Jt,Vt){var pt=Ye(Jt,Vt);return b.createElement(lR,Xe({},tn,{order:Vt,key:pt,item:Jt,renderItem:Ze,itemKey:pt,registerSize:nt,display:Vt<=ce}))},Dt,Pt={order:Wt?ce:Number.MAX_SAFE_INTEGER,className:"".concat(Te,"-rest"),registerSize:Qe,display:Wt};if(g)g&&(Dt=b.createElement(j$.Provider,{value:we(we({},tn),Pt)},g(je)));else{var Ot=m||v9t;Dt=b.createElement(lR,Xe({},tn,Pt),typeof Ot=="function"?Ot(je):Ot)}var sn=b.createElement(_,Xe({className:Oe(!Le&&r,p),style:f,ref:t},w),Be.map(Rt),ze?Dt:null,v&&b.createElement(lR,Xe({},tn,{responsive:De,responsiveDisabled:!Pe,order:ce,className:"".concat(Te,"-suffix"),registerSize:it,display:!0,style:Mt}),v));return De&&(sn=b.createElement(Sc,{onResize:qe,disabled:!Pe},sn)),sn}var tm=b.forwardRef(y9t);tm.displayName="Overflow";tm.Item=pze;tm.RESPONSIVE=hze;tm.INVALIDATE=mze;var b9t=function(t,n){var r,i=t.prefixCls,a=t.id,o=t.inputElement,s=t.disabled,l=t.tabIndex,c=t.autoFocus,u=t.autoComplete,d=t.editable,f=t.activeDescendantId,p=t.value,h=t.maxLength,m=t.onKeyDown,g=t.onMouseDown,v=t.onChange,y=t.onPaste,_=t.onCompositionStart,S=t.onCompositionEnd,C=t.open,w=t.attrs,x=o||b.createElement("input",null),T=x,A=T.ref,I=T.props,R=I.onKeyDown,N=I.onChange,P=I.onMouseDown,L=I.onCompositionStart,$=I.onCompositionEnd,D=I.style;return"maxLength"in x.props,x=b.cloneElement(x,we(we(we({type:"search"},I),{},{id:a,ref:Ll(n,A),disabled:s,tabIndex:l,autoComplete:u||"off",autoFocus:c,className:Oe("".concat(i,"-selection-search-input"),(r=x)===null||r===void 0||(r=r.props)===null||r===void 0?void 0:r.className),role:"combobox","aria-expanded":C||!1,"aria-haspopup":"listbox","aria-owns":"".concat(a,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(a,"_list"),"aria-activedescendant":C?f:void 0},w),{},{value:d?p:"",maxLength:h,readOnly:!d,unselectable:d?null:"on",style:we(we({},D),{},{opacity:d?null:0}),onKeyDown:function(U){m(U),R&&R(U)},onMouseDown:function(U){g(U),P&&P(U)},onChange:function(U){v(U),N&&N(U)},onCompositionStart:function(U){_(U),L&&L(U)},onCompositionEnd:function(U){S(U),$&&$(U)},onPaste:y})),x},gze=b.forwardRef(b9t);function vze(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var _9t=typeof window<"u"&&window.document&&window.document.documentElement,S9t=_9t;function E9t(e){return e!=null}function C9t(e){return!e&&e!==0}function d2e(e){return["string","number"].includes(cn(e))}function yze(e){var t=void 0;return e&&(d2e(e.title)?t=e.title.toString():d2e(e.label)&&(t=e.label.toString())),t}function w9t(e,t){S9t?b.useLayoutEffect(e,t):b.useEffect(e,t)}function x9t(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var f2e=function(t){t.preventDefault(),t.stopPropagation()},T9t=function(t){var n=t.id,r=t.prefixCls,i=t.values,a=t.open,o=t.searchValue,s=t.autoClearSearchValue,l=t.inputRef,c=t.placeholder,u=t.disabled,d=t.mode,f=t.showSearch,p=t.autoFocus,h=t.autoComplete,m=t.activeDescendantId,g=t.tabIndex,v=t.removeIcon,y=t.maxTagCount,_=t.maxTagTextLength,S=t.maxTagPlaceholder,C=S===void 0?function(de){return"+ ".concat(de.length," ...")}:S,w=t.tagRender,x=t.onToggleOpen,T=t.onRemove,A=t.onInputChange,I=t.onInputPaste,R=t.onInputKeyDown,N=t.onInputMouseDown,P=t.onInputCompositionStart,L=t.onInputCompositionEnd,$=b.useRef(null),D=b.useState(0),z=Fe(D,2),U=z[0],H=z[1],M=b.useState(!1),B=Fe(M,2),k=B[0],F=B[1],G="".concat(r,"-selection"),q=a||d==="multiple"&&s===!1||d==="tags"?o:"",W=d==="tags"||d==="multiple"&&s===!1||f&&(a||k);w9t(function(){H($.current.scrollWidth)},[q]);var K=function(fe,ge,oe,Ee,ce){return b.createElement("span",{title:yze(fe),className:Oe("".concat(G,"-item"),be({},"".concat(G,"-item-disabled"),oe))},b.createElement("span",{className:"".concat(G,"-item-content")},ge),Ee&&b.createElement(pz,{className:"".concat(G,"-item-remove"),onMouseDown:f2e,onClick:ce,customizeIcon:v},"×"))},J=function(fe,ge,oe,Ee,ce,he){var ye=function(_e){f2e(_e),x(!a)};return b.createElement("span",{onMouseDown:ye},w({label:ge,value:fe,disabled:oe,closable:Ee,onClose:ce,isMaxTag:!!he}))},te=function(fe){var ge=fe.disabled,oe=fe.label,Ee=fe.value,ce=!u&&!ge,he=oe;if(typeof _=="number"&&(typeof oe=="string"||typeof oe=="number")){var ye=String(he);ye.length>_&&(he="".concat(ye.slice(0,_),"..."))}var me=function(Te){Te&&Te.stopPropagation(),T(fe)};return typeof w=="function"?J(Ee,he,ge,ce,me):K(fe,he,ge,ce,me)},ae=function(fe){var ge=typeof C=="function"?C(fe):C;return typeof w=="function"?J(void 0,ge,!1,!1,void 0,!0):K({title:ge},ge,!1)},re=b.createElement("div",{className:"".concat(G,"-search"),style:{width:U},onFocus:function(){F(!0)},onBlur:function(){F(!1)}},b.createElement(gze,{ref:l,open:a,prefixCls:r,id:n,inputElement:null,disabled:u,autoFocus:p,autoComplete:h,editable:W,activeDescendantId:m,value:q,onKeyDown:R,onMouseDown:N,onChange:A,onPaste:I,onCompositionStart:P,onCompositionEnd:L,tabIndex:g,attrs:lo(t,!0)}),b.createElement("span",{ref:$,className:"".concat(G,"-search-mirror"),"aria-hidden":!0},q," ")),ue=b.createElement(tm,{prefixCls:"".concat(G,"-overflow"),data:i,renderItem:te,renderRest:ae,suffix:re,itemKey:x9t,maxCount:y});return b.createElement(b.Fragment,null,ue,!i.length&&!q&&b.createElement("span",{className:"".concat(G,"-placeholder")},c))},I9t=function(t){var n=t.inputElement,r=t.prefixCls,i=t.id,a=t.inputRef,o=t.disabled,s=t.autoFocus,l=t.autoComplete,c=t.activeDescendantId,u=t.mode,d=t.open,f=t.values,p=t.placeholder,h=t.tabIndex,m=t.showSearch,g=t.searchValue,v=t.activeValue,y=t.maxLength,_=t.onInputKeyDown,S=t.onInputMouseDown,C=t.onInputChange,w=t.onInputPaste,x=t.onInputCompositionStart,T=t.onInputCompositionEnd,A=t.title,I=b.useState(!1),R=Fe(I,2),N=R[0],P=R[1],L=u==="combobox",$=L||m,D=f[0],z=g||"";L&&v&&!N&&(z=v),b.useEffect(function(){L&&P(!1)},[L,v]);var U=u!=="combobox"&&!d&&!m?!1:!!z,H=A===void 0?yze(D):A,M=b.useMemo(function(){return D?null:b.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:U?{visibility:"hidden"}:void 0},p)},[D,U,p,r]);return b.createElement(b.Fragment,null,b.createElement("span",{className:"".concat(r,"-selection-search")},b.createElement(gze,{ref:a,prefixCls:r,id:i,open:d,inputElement:n,disabled:o,autoFocus:s,autoComplete:l,editable:$,activeDescendantId:c,value:z,onKeyDown:_,onMouseDown:S,onChange:function(k){P(!0),C(k)},onPaste:w,onCompositionStart:x,onCompositionEnd:T,tabIndex:h,attrs:lo(t,!0),maxLength:L?y:void 0})),!L&&D?b.createElement("span",{className:"".concat(r,"-selection-item"),title:H,style:U?{visibility:"hidden"}:void 0},D.label):null,M)},A9t=function(t,n){var r=b.useRef(null),i=b.useRef(!1),a=t.prefixCls,o=t.open,s=t.mode,l=t.showSearch,c=t.tokenWithEnter,u=t.disabled,d=t.autoClearSearchValue,f=t.onSearch,p=t.onSearchSubmit,h=t.onToggleOpen,m=t.onInputKeyDown,g=t.domRef;b.useImperativeHandle(n,function(){return{focus:function(U){r.current.focus(U)},blur:function(){r.current.blur()}}});var v=fze(0),y=Fe(v,2),_=y[0],S=y[1],C=function(U){var H=U.which;(H===Bt.UP||H===Bt.DOWN)&&U.preventDefault(),m&&m(U),H===Bt.ENTER&&s==="tags"&&!i.current&&!o&&p?.(U.target.value),s9t(H)&&h(!0)},w=function(){S(!0)},x=b.useRef(null),T=function(U){f(U,!0,i.current)!==!1&&h(!0)},A=function(){i.current=!0},I=function(U){i.current=!1,s!=="combobox"&&T(U.target.value)},R=function(U){var H=U.target.value;if(c&&x.current&&/[\r\n]/.test(x.current)){var M=x.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");H=H.replace(M,x.current)}x.current=null,T(H)},N=function(U){var H=U.clipboardData,M=H?.getData("text");x.current=M||""},P=function(U){var H=U.target;if(H!==r.current){var M=document.body.style.msTouchAction!==void 0;M?setTimeout(function(){r.current.focus()}):r.current.focus()}},L=function(U){var H=_();U.target!==r.current&&!H&&!(s==="combobox"&&u)&&U.preventDefault(),(s!=="combobox"&&(!l||!H)||!o)&&(o&&d!==!1&&f("",!0,!1),h())},$={inputRef:r,onInputKeyDown:C,onInputMouseDown:w,onInputChange:R,onInputPaste:N,onInputCompositionStart:A,onInputCompositionEnd:I},D=s==="multiple"||s==="tags"?b.createElement(T9t,Xe({},t,$)):b.createElement(I9t,Xe({},t,$));return b.createElement("div",{ref:g,className:"".concat(a,"-selector"),onClick:P,onMouseDown:L},D)},R9t=b.forwardRef(A9t);function N9t(e){var t=e.prefixCls,n=e.align,r=e.arrow,i=e.arrowPos,a=r||{},o=a.className,s=a.content,l=i.x,c=l===void 0?0:l,u=i.y,d=u===void 0?0:u,f=b.useRef();if(!n||!n.points)return null;var p={position:"absolute"};if(n.autoArrow!==!1){var h=n.points[0],m=n.points[1],g=h[0],v=h[1],y=m[0],_=m[1];g===y||!["t","b"].includes(g)?p.top=d:g==="t"?p.top=0:p.bottom=0,v===_||!["l","r"].includes(v)?p.left=c:v==="l"?p.left=0:p.right=0}return b.createElement("div",{ref:f,className:Oe("".concat(t,"-arrow"),o),style:p},s)}function O9t(e){var t=e.prefixCls,n=e.open,r=e.zIndex,i=e.mask,a=e.motion;return i?b.createElement(Sl,Xe({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(o){var s=o.className;return b.createElement("div",{style:{zIndex:r},className:Oe("".concat(t,"-mask"),s)})}):null}var L9t=b.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),P9t=b.forwardRef(function(e,t){var n=e.popup,r=e.className,i=e.prefixCls,a=e.style,o=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.fresh,d=e.onClick,f=e.mask,p=e.arrow,h=e.arrowPos,m=e.align,g=e.motion,v=e.maskMotion,y=e.forceRender,_=e.getPopupContainer,S=e.autoDestroy,C=e.portal,w=e.zIndex,x=e.onMouseEnter,T=e.onMouseLeave,A=e.onPointerEnter,I=e.ready,R=e.offsetX,N=e.offsetY,P=e.offsetR,L=e.offsetB,$=e.onAlign,D=e.onPrepare,z=e.stretch,U=e.targetWidth,H=e.targetHeight,M=typeof n=="function"?n():n,B=l||c,k=_?.length>0,F=b.useState(!_||!k),G=Fe(F,2),q=G[0],W=G[1];if(kr(function(){!q&&k&&o&&W(!0)},[q,k,o]),!q)return null;var K="auto",J={left:"-1000vw",top:"-1000vh",right:K,bottom:K};if(I||!l){var te,ae=m.points,re=m.dynamicInset||((te=m._experimental)===null||te===void 0?void 0:te.dynamicInset),ue=re&&ae[0][1]==="r",de=re&&ae[0][0]==="b";ue?(J.right=P,J.left=K):(J.left=R,J.right=K),de?(J.bottom=L,J.top=K):(J.top=N,J.bottom=K)}var fe={};return z&&(z.includes("height")&&H?fe.height=H:z.includes("minHeight")&&H&&(fe.minHeight=H),z.includes("width")&&U?fe.width=U:z.includes("minWidth")&&U&&(fe.minWidth=U)),l||(fe.pointerEvents="none"),b.createElement(C,{open:y||B,getContainer:_&&function(){return _(o)},autoDestroy:S},b.createElement(O9t,{prefixCls:i,open:l,zIndex:w,mask:f,motion:v}),b.createElement(Sc,{onResize:$,disabled:!l},function(ge){return b.createElement(Sl,Xe({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(i,"-hidden")},g,{onAppearPrepare:D,onEnterPrepare:D,visible:l,onVisibleChanged:function(Ee){var ce;g==null||(ce=g.onVisibleChanged)===null||ce===void 0||ce.call(g,Ee),s(Ee)}}),function(oe,Ee){var ce=oe.className,he=oe.style,ye=Oe(i,ce,r);return b.createElement("div",{ref:Ll(ge,t,Ee),className:ye,style:we(we(we(we({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},J),fe),he),{},{boxSizing:"border-box",zIndex:w},a),onMouseEnter:x,onMouseLeave:T,onPointerEnter:A,onClick:d},p&&b.createElement(N9t,{prefixCls:i,arrow:p,arrowPos:h,align:m}),b.createElement(L9t,{cache:!l&&!u},M))})}))}),k9t=b.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,i=sm(n),a=b.useCallback(function(s){bN(t,r?r(s):s)},[r]),o=hv(a,n.ref);return i?b.cloneElement(n,{ref:o}):n}),p2e=b.createContext(null);function h2e(e){return e?Array.isArray(e)?e:[e]:[]}function M9t(e,t,n,r){return b.useMemo(function(){var i=h2e(n??t),a=h2e(r??t),o=new Set(i),s=new Set(a);return e&&(o.has("hover")&&(o.delete("hover"),o.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[o,s]},[e,t,n,r])}function D9t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function $9t(e,t,n,r){for(var i=n.points,a=Object.keys(e),o=0;o<a.length;o+=1){var s,l=a[o];if(D9t((s=e[l])===null||s===void 0?void 0:s.points,i,r))return"".concat(t,"-placement-").concat(l)}return""}function m2e(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function CO(e){return e.ownerDocument.defaultView}function rie(e){for(var t=[],n=e?.parentElement,r=["hidden","scroll","clip","auto"];n;){var i=CO(n).getComputedStyle(n),a=i.overflowX,o=i.overflowY,s=i.overflow;[a,o,s].some(function(l){return r.includes(l)})&&t.push(n),n=n.parentElement}return t}function DN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function V4(e){return DN(parseFloat(e),0)}function g2e(e,t){var n=we({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var i=CO(r).getComputedStyle(r),a=i.overflow,o=i.overflowClipMargin,s=i.borderTopWidth,l=i.borderBottomWidth,c=i.borderLeftWidth,u=i.borderRightWidth,d=r.getBoundingClientRect(),f=r.offsetHeight,p=r.clientHeight,h=r.offsetWidth,m=r.clientWidth,g=V4(s),v=V4(l),y=V4(c),_=V4(u),S=DN(Math.round(d.width/h*1e3)/1e3),C=DN(Math.round(d.height/f*1e3)/1e3),w=(h-m-y-_)*S,x=(f-p-g-v)*C,T=g*C,A=v*C,I=y*S,R=_*S,N=0,P=0;if(a==="clip"){var L=V4(o);N=L*S,P=L*C}var $=d.x+I-N,D=d.y+T-P,z=$+d.width+2*N-I-R-w,U=D+d.height+2*P-T-A-x;n.left=Math.max(n.left,$),n.top=Math.max(n.top,D),n.right=Math.min(n.right,z),n.bottom=Math.min(n.bottom,U)}}),n}function v2e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function y2e(e,t){var n=t||[],r=Fe(n,2),i=r[0],a=r[1];return[v2e(e.width,i),v2e(e.height,a)]}function b2e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function bw(e,t){var n=t[0],r=t[1],i,a;return n==="t"?a=e.y:n==="b"?a=e.y+e.height:a=e.y+e.height/2,r==="l"?i=e.x:r==="r"?i=e.x+e.width:i=e.x+e.width/2,{x:i,y:a}}function iy(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,i){return i===t?n[r]||"c":r}).join("")}function F9t(e,t,n,r,i,a,o){var s=b.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),l=Fe(s,2),c=l[0],u=l[1],d=b.useRef(0),f=b.useMemo(function(){return t?rie(t):[]},[t]),p=b.useRef({}),h=function(){p.current={}};e||h();var m=gr(function(){if(t&&n&&e){let rr=function(xn,Yn){var ui=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ye,Va=M.x+xn,Sa=M.y+Yn,Ea=Va+te,Ml=Sa+J,Dl=Math.max(Va,ui.left),mr=Math.max(Sa,ui.top),Ud=Math.min(Ea,ui.right),Iv=Math.min(Ml,ui.bottom);return Math.max(0,(Ud-Dl)*(Iv-mr))},dr=function(){fn=M.y+Ot,an=fn+J,Ht=M.x+Pt,mn=Ht+te};var y,_,S=t,C=S.ownerDocument,w=CO(S),x=w.getComputedStyle(S),T=x.width,A=x.height,I=x.position,R=S.style.left,N=S.style.top,P=S.style.right,L=S.style.bottom,$=S.style.overflow,D=we(we({},i[r]),a),z=C.createElement("div");(y=S.parentElement)===null||y===void 0||y.appendChild(z),z.style.left="".concat(S.offsetLeft,"px"),z.style.top="".concat(S.offsetTop,"px"),z.style.position=I,z.style.height="".concat(S.offsetHeight,"px"),z.style.width="".concat(S.offsetWidth,"px"),S.style.left="0",S.style.top="0",S.style.right="auto",S.style.bottom="auto",S.style.overflow="hidden";var U;if(Array.isArray(n))U={x:n[0],y:n[1],width:0,height:0};else{var H=n.getBoundingClientRect();U={x:H.x,y:H.y,width:H.width,height:H.height}}var M=S.getBoundingClientRect(),B=C.documentElement,k=B.clientWidth,F=B.clientHeight,G=B.scrollWidth,q=B.scrollHeight,W=B.scrollTop,K=B.scrollLeft,J=M.height,te=M.width,ae=U.height,re=U.width,ue={left:0,top:0,right:k,bottom:F},de={left:-K,top:-W,right:G-K,bottom:q-W},fe=D.htmlRegion,ge="visible",oe="visibleFirst";fe!=="scroll"&&fe!==oe&&(fe=ge);var Ee=fe===oe,ce=g2e(de,f),he=g2e(ue,f),ye=fe===ge?he:ce,me=Ee?he:ye;S.style.left="auto",S.style.top="auto",S.style.right="0",S.style.bottom="0";var _e=S.getBoundingClientRect();S.style.left=R,S.style.top=N,S.style.right=P,S.style.bottom=L,S.style.overflow=$,(_=S.parentElement)===null||_===void 0||_.removeChild(z);var Te=DN(Math.round(te/parseFloat(T)*1e3)/1e3),xe=DN(Math.round(J/parseFloat(A)*1e3)/1e3);if(Te===0||xe===0||xN(n)&&!uT(n))return;var De=D.offset,Pe=D.targetOffset,Le=y2e(M,De),ze=Fe(Le,2),Be=ze[0],je=ze[1],Ye=y2e(U,Pe),Ze=Fe(Ye,2),Ke=Ze[0],qe=Ze[1];U.x-=Ke,U.y-=qe;var nt=D.points||[],Qe=Fe(nt,2),it=Qe[0],yt=Qe[1],Wt=b2e(yt),Mt=b2e(it),tn=bw(U,Wt),Rt=bw(M,Mt),Dt=we({},D),Pt=tn.x-Rt.x+Be,Ot=tn.y-Rt.y+je,sn=rr(Pt,Ot),Jt=rr(Pt,Ot,he),Vt=bw(U,["t","l"]),pt=bw(M,["t","l"]),tt=bw(U,["b","r"]),dt=bw(M,["b","r"]),Et=D.overflow||{},St=Et.adjustX,zt=Et.adjustY,nn=Et.shiftX,wn=Et.shiftY,kn=function(Yn){return typeof Yn=="boolean"?Yn:Yn>=0},fn,an,Ht,mn;dr();var Tn=kn(zt),An=Mt[0]===Wt[0];if(Tn&&Mt[0]==="t"&&(an>me.bottom||p.current.bt)){var nr=Ot;An?nr-=J-ae:nr=Vt.y-dt.y-je;var un=rr(Pt,nr),et=rr(Pt,nr,he);un>sn||un===sn&&(!Ee||et>=Jt)?(p.current.bt=!0,Ot=nr,je=-je,Dt.points=[iy(Mt,0),iy(Wt,0)]):p.current.bt=!1}if(Tn&&Mt[0]==="b"&&(fn<me.top||p.current.tb)){var Ct=Ot;An?Ct+=J-ae:Ct=tt.y-pt.y-je;var Q=rr(Pt,Ct),Y=rr(Pt,Ct,he);Q>sn||Q===sn&&(!Ee||Y>=Jt)?(p.current.tb=!0,Ot=Ct,je=-je,Dt.points=[iy(Mt,0),iy(Wt,0)]):p.current.tb=!1}var ee=kn(St),le=Mt[1]===Wt[1];if(ee&&Mt[1]==="l"&&(mn>me.right||p.current.rl)){var Se=Pt;le?Se-=te-re:Se=Vt.x-dt.x-Be;var Ae=rr(Se,Ot),He=rr(Se,Ot,he);Ae>sn||Ae===sn&&(!Ee||He>=Jt)?(p.current.rl=!0,Pt=Se,Be=-Be,Dt.points=[iy(Mt,1),iy(Wt,1)]):p.current.rl=!1}if(ee&&Mt[1]==="r"&&(Ht<me.left||p.current.lr)){var at=Pt;le?at+=te-re:at=tt.x-pt.x-Be;var wt=rr(at,Ot),ft=rr(at,Ot,he);wt>sn||wt===sn&&(!Ee||ft>=Jt)?(p.current.lr=!0,Pt=at,Be=-Be,Dt.points=[iy(Mt,1),iy(Wt,1)]):p.current.lr=!1}dr();var Lt=nn===!0?0:nn;typeof Lt=="number"&&(Ht<he.left&&(Pt-=Ht-he.left-Be,U.x+re<he.left+Lt&&(Pt+=U.x-he.left+re-Lt)),mn>he.right&&(Pt-=mn-he.right-Be,U.x>he.right-Lt&&(Pt+=U.x-he.right+Lt)));var kt=wn===!0?0:wn;typeof kt=="number"&&(fn<he.top&&(Ot-=fn-he.top-je,U.y+ae<he.top+kt&&(Ot+=U.y-he.top+ae-kt)),an>he.bottom&&(Ot-=an-he.bottom-je,U.y>he.bottom-kt&&(Ot+=U.y-he.bottom+kt)));var Gt=M.x+Pt,ln=Gt+te,_n=M.y+Ot,Fn=_n+J,ur=U.x,Vr=ur+re,ni=U.y,fr=ni+ae,Un=Math.max(Gt,ur),hr=Math.min(ln,Vr),Jn=(Un+hr)/2,lr=Jn-Gt,On=Math.max(_n,ni),Mn=Math.min(Fn,fr),ri=(On+Mn)/2,Gi=ri-_n;o?.(t,Dt);var ma=_e.right-M.x-(Pt+M.width),Oa=_e.bottom-M.y-(Ot+M.height);Te===1&&(Pt=Math.round(Pt),ma=Math.round(ma)),xe===1&&(Ot=Math.round(Ot),Oa=Math.round(Oa));var La={ready:!0,offsetX:Pt/Te,offsetY:Ot/xe,offsetR:ma/Te,offsetB:Oa/xe,arrowX:lr/Te,arrowY:Gi/xe,scaleX:Te,scaleY:xe,align:Dt};u(La)}}),g=function(){d.current+=1;var _=d.current;Promise.resolve().then(function(){d.current===_&&m()})},v=function(){u(function(_){return we(we({},_),{},{ready:!1})})};return kr(v,[r]),kr(function(){e||v()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,g]}function B9t(e,t,n,r,i){kr(function(){if(e&&t&&n){let d=function(){r(),i()};var a=t,o=n,s=rie(a),l=rie(o),c=CO(o),u=new Set([c].concat(Tt(s),Tt(l)));return u.forEach(function(f){f.addEventListener("scroll",d,{passive:!0})}),c.addEventListener("resize",d,{passive:!0}),r(),function(){u.forEach(function(f){f.removeEventListener("scroll",d),c.removeEventListener("resize",d)})}}},[e,t,n])}function j9t(e,t,n,r,i,a,o,s){var l=b.useRef(e);l.current=e,b.useEffect(function(){if(t&&r&&(!i||a)){var c=function(p){var h=p.target;l.current&&!o(h)&&s(!1)},u=CO(r);u.addEventListener("mousedown",c,!0),u.addEventListener("contextmenu",c,!0);var d=d$(n);return d&&(d.addEventListener("mousedown",c,!0),d.addEventListener("contextmenu",c,!0)),function(){u.removeEventListener("mousedown",c,!0),u.removeEventListener("contextmenu",c,!0),d&&(d.removeEventListener("mousedown",c,!0),d.removeEventListener("contextmenu",c,!0))}}},[t,n,r,i,a])}var z9t=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function U9t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_C,t=b.forwardRef(function(n,r){var i=n.prefixCls,a=i===void 0?"rc-trigger-popup":i,o=n.children,s=n.action,l=s===void 0?"hover":s,c=n.showAction,u=n.hideAction,d=n.popupVisible,f=n.defaultPopupVisible,p=n.onPopupVisibleChange,h=n.afterPopupVisibleChange,m=n.mouseEnterDelay,g=n.mouseLeaveDelay,v=g===void 0?.1:g,y=n.focusDelay,_=n.blurDelay,S=n.mask,C=n.maskClosable,w=C===void 0?!0:C,x=n.getPopupContainer,T=n.forceRender,A=n.autoDestroy,I=n.destroyPopupOnHide,R=n.popup,N=n.popupClassName,P=n.popupStyle,L=n.popupPlacement,$=n.builtinPlacements,D=$===void 0?{}:$,z=n.popupAlign,U=n.zIndex,H=n.stretch,M=n.getPopupClassNameFromAlign,B=n.fresh,k=n.alignPoint,F=n.onPopupClick,G=n.onPopupAlign,q=n.arrow,W=n.popupMotion,K=n.maskMotion,J=n.popupTransitionName,te=n.popupAnimation,ae=n.maskTransitionName,re=n.maskAnimation,ue=n.className,de=n.getTriggerDOMNode,fe=$n(n,z9t),ge=A||I||!1,oe=b.useState(!1),Ee=Fe(oe,2),ce=Ee[0],he=Ee[1];kr(function(){he(fz())},[]);var ye=b.useRef({}),me=b.useContext(p2e),_e=b.useMemo(function(){return{registerSubPopup:function(Ir,Ca){ye.current[Ir]=Ca,me?.registerSubPopup(Ir,Ca)}}},[me]),Te=sde(),xe=b.useState(null),De=Fe(xe,2),Pe=De[0],Le=De[1],ze=b.useRef(null),Be=gr(function(Kn){ze.current=Kn,xN(Kn)&&Pe!==Kn&&Le(Kn),me?.registerSubPopup(Te,Kn)}),je=b.useState(null),Ye=Fe(je,2),Ze=Ye[0],Ke=Ye[1],qe=b.useRef(null),nt=gr(function(Kn){xN(Kn)&&Ze!==Kn&&(Ke(Kn),qe.current=Kn)}),Qe=b.Children.only(o),it=Qe?.props||{},yt={},Wt=gr(function(Kn){var Ir,Ca,eo=Ze;return eo?.contains(Kn)||((Ir=d$(eo))===null||Ir===void 0?void 0:Ir.host)===Kn||Kn===eo||Pe?.contains(Kn)||((Ca=d$(Pe))===null||Ca===void 0?void 0:Ca.host)===Kn||Kn===Pe||Object.values(ye.current).some(function(Pa){return Pa?.contains(Kn)||Kn===Pa})}),Mt=m2e(a,W,te,J),tn=m2e(a,K,re,ae),Rt=b.useState(f||!1),Dt=Fe(Rt,2),Pt=Dt[0],Ot=Dt[1],sn=d??Pt,Jt=gr(function(Kn){d===void 0&&Ot(Kn)});kr(function(){Ot(d||!1)},[d]);var Vt=b.useRef(sn);Vt.current=sn;var pt=b.useRef([]);pt.current=[];var tt=gr(function(Kn){var Ir;Jt(Kn),((Ir=pt.current[pt.current.length-1])!==null&&Ir!==void 0?Ir:sn)!==Kn&&(pt.current.push(Kn),p?.(Kn))}),dt=b.useRef(),Et=function(){clearTimeout(dt.current)},St=function(Ir){var Ca=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Et(),Ca===0?tt(Ir):dt.current=setTimeout(function(){tt(Ir)},Ca*1e3)};b.useEffect(function(){return Et},[]);var zt=b.useState(!1),nn=Fe(zt,2),wn=nn[0],kn=nn[1];kr(function(Kn){(!Kn||sn)&&kn(!0)},[sn]);var fn=b.useState(null),an=Fe(fn,2),Ht=an[0],mn=an[1],Tn=b.useState([0,0]),An=Fe(Tn,2),nr=An[0],un=An[1],et=function(Ir){un([Ir.clientX,Ir.clientY])},Ct=F9t(sn,Pe,k?nr:Ze,L,D,z,G),Q=Fe(Ct,11),Y=Q[0],ee=Q[1],le=Q[2],Se=Q[3],Ae=Q[4],He=Q[5],at=Q[6],wt=Q[7],ft=Q[8],Lt=Q[9],kt=Q[10],Gt=M9t(ce,l,c,u),ln=Fe(Gt,2),_n=ln[0],Fn=ln[1],ur=_n.has("click"),Vr=Fn.has("click")||Fn.has("contextMenu"),ni=gr(function(){wn||kt()}),fr=function(){Vt.current&&k&&Vr&&St(!1)};B9t(sn,Ze,Pe,ni,fr),kr(function(){ni()},[nr,L]),kr(function(){sn&&!(D!=null&&D[L])&&ni()},[JSON.stringify(z)]);var Un=b.useMemo(function(){var Kn=$9t(D,a,Lt,k);return Oe(Kn,M?.(Lt))},[Lt,M,D,a,k]);b.useImperativeHandle(r,function(){return{nativeElement:qe.current,popupElement:ze.current,forceAlign:ni}});var hr=b.useState(0),Jn=Fe(hr,2),lr=Jn[0],On=Jn[1],Mn=b.useState(0),ri=Fe(Mn,2),Gi=ri[0],ma=ri[1],Oa=function(){if(H&&Ze){var Ir=Ze.getBoundingClientRect();On(Ir.width),ma(Ir.height)}},La=function(){Oa(),ni()},rr=function(Ir){kn(!1),kt(),h?.(Ir)},dr=function(){return new Promise(function(Ir){Oa(),mn(function(){return Ir})})};kr(function(){Ht&&(kt(),Ht(),mn(null))},[Ht]);function xn(Kn,Ir,Ca,eo){yt[Kn]=function(Pa){var Mm;eo?.(Pa),St(Ir,Ca);for(var Av=arguments.length,T0=new Array(Av>1?Av-1:0),qi=1;qi<Av;qi++)T0[qi-1]=arguments[qi];(Mm=it[Kn])===null||Mm===void 0||Mm.call.apply(Mm,[it,Pa].concat(T0))}}(ur||Vr)&&(yt.onClick=function(Kn){var Ir;Vt.current&&Vr?St(!1):!Vt.current&&ur&&(et(Kn),St(!0));for(var Ca=arguments.length,eo=new Array(Ca>1?Ca-1:0),Pa=1;Pa<Ca;Pa++)eo[Pa-1]=arguments[Pa];(Ir=it.onClick)===null||Ir===void 0||Ir.call.apply(Ir,[it,Kn].concat(eo))}),j9t(sn,Vr,Ze,Pe,S,w,Wt,St);var Yn=_n.has("hover"),ui=Fn.has("hover"),Va,Sa;Yn&&(xn("onMouseEnter",!0,m,function(Kn){et(Kn)}),xn("onPointerEnter",!0,m,function(Kn){et(Kn)}),Va=function(Ir){(sn||wn)&&Pe!==null&&Pe!==void 0&&Pe.contains(Ir.target)&&St(!0,m)},k&&(yt.onMouseMove=function(Kn){var Ir;(Ir=it.onMouseMove)===null||Ir===void 0||Ir.call(it,Kn)})),ui&&(xn("onMouseLeave",!1,v),xn("onPointerLeave",!1,v),Sa=function(){St(!1,v)}),_n.has("focus")&&xn("onFocus",!0,y),Fn.has("focus")&&xn("onBlur",!1,_),_n.has("contextMenu")&&(yt.onContextMenu=function(Kn){var Ir;Vt.current&&Fn.has("contextMenu")?St(!1):(et(Kn),St(!0)),Kn.preventDefault();for(var Ca=arguments.length,eo=new Array(Ca>1?Ca-1:0),Pa=1;Pa<Ca;Pa++)eo[Pa-1]=arguments[Pa];(Ir=it.onContextMenu)===null||Ir===void 0||Ir.call.apply(Ir,[it,Kn].concat(eo))}),ue&&(yt.className=Oe(it.className,ue));var Ea=we(we({},it),yt),Ml={},Dl=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Dl.forEach(function(Kn){fe[Kn]&&(Ml[Kn]=function(){for(var Ir,Ca=arguments.length,eo=new Array(Ca),Pa=0;Pa<Ca;Pa++)eo[Pa]=arguments[Pa];(Ir=Ea[Kn])===null||Ir===void 0||Ir.call.apply(Ir,[Ea].concat(eo)),fe[Kn].apply(fe,eo)})});var mr=b.cloneElement(Qe,we(we({},Ea),Ml)),Ud={x:He,y:at},Iv=q?we({},q!==!0?q:{}):null;return b.createElement(b.Fragment,null,b.createElement(Sc,{disabled:!sn,ref:nt,onResize:La},b.createElement(k9t,{getTriggerDOMNode:de},mr)),b.createElement(p2e.Provider,{value:_e},b.createElement(P9t,{portal:e,ref:Be,prefixCls:a,popup:R,className:Oe(N,Un),style:P,target:Ze,onMouseEnter:Va,onMouseLeave:Sa,onPointerEnter:Va,zIndex:U,open:sn,keepDom:wn,fresh:B,onClick:F,mask:S,motion:Mt,maskMotion:tn,onVisibleChanged:rr,onPrepare:dr,forceRender:T,autoDestroy:ge,getPopupContainer:x,align:Lt,arrow:Iv,arrowPos:Ud,ready:Y,offsetX:ee,offsetY:le,offsetR:Se,offsetB:Ae,onAlign:ni,stretch:H,targetWidth:lr/wt,targetHeight:Gi/ft})))});return t}const hT=U9t(_C);var H9t=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],V9t=function(t){var n=t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"}}},G9t=function(t,n){var r=t.prefixCls;t.disabled;var i=t.visible,a=t.children,o=t.popupElement,s=t.animation,l=t.transitionName,c=t.dropdownStyle,u=t.dropdownClassName,d=t.direction,f=d===void 0?"ltr":d,p=t.placement,h=t.builtinPlacements,m=t.dropdownMatchSelectWidth,g=t.dropdownRender,v=t.dropdownAlign,y=t.getPopupContainer,_=t.empty,S=t.getTriggerDOMNode,C=t.onPopupVisibleChange,w=t.onPopupMouseEnter,x=$n(t,H9t),T="".concat(r,"-dropdown"),A=o;g&&(A=g(o));var I=b.useMemo(function(){return h||V9t(m)},[h,m]),R=s?"".concat(T,"-").concat(s):l,N=typeof m=="number",P=b.useMemo(function(){return N?null:m===!1?"minWidth":"width"},[m,N]),L=c;N&&(L=we(we({},L),{},{width:m}));var $=b.useRef(null);return b.useImperativeHandle(n,function(){return{getPopupElement:function(){var z;return(z=$.current)===null||z===void 0?void 0:z.popupElement}}}),b.createElement(hT,Xe({},x,{showAction:C?["click"]:[],hideAction:C?["click"]:[],popupPlacement:p||(f==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:I,prefixCls:T,popupTransitionName:R,popup:b.createElement("div",{onMouseEnter:w},A),ref:$,stretch:P,popupAlign:v,popupVisible:i,getPopupContainer:y,popupClassName:Oe(u,be({},"".concat(T,"-empty"),_)),popupStyle:L,getTriggerDOMNode:S,onPopupVisibleChange:C}),a)},q9t=b.forwardRef(G9t);function _2e(e,t){var n=e.key,r;return"value"in e&&(r=e.value),n??(r!==void 0?r:"rc-index-key-".concat(t))}function iie(e){return typeof e<"u"&&!Number.isNaN(e)}function bze(e,t){var n=e||{},r=n.label,i=n.value,a=n.options,o=n.groupLabel,s=r||(t?"children":"label");return{label:s,value:i||"value",options:a||"options",groupLabel:o||s}}function W9t(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,i=[],a=bze(n,!1),o=a.label,s=a.value,l=a.options,c=a.groupLabel;function u(d,f){Array.isArray(d)&&d.forEach(function(p){if(f||!(l in p)){var h=p[s];i.push({key:_2e(p,i.length),groupOption:f,data:p,label:p[o],value:h})}else{var m=p[c];m===void 0&&r&&(m=p.label),i.push({key:_2e(p,i.length),group:!0,data:p,label:m}),u(p[l],!0)}})}return u(e,!1),i}function aie(e){var t=we({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Ra(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var Y9t=function(t,n,r){if(!n||!n.length)return null;var i=!1,a=function s(l,c){var u=NBe(c),d=u[0],f=u.slice(1);if(!d)return[l];var p=l.split(d);return i=i||p.length>1,p.reduce(function(h,m){return[].concat(Tt(h),Tt(s(m,f)))},[]).filter(Boolean)},o=a(t,n);return i?typeof r<"u"?o.slice(0,r):o:null},vde=b.createContext(null);function K9t(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return b.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,r).map(function(i){var a=i.label,o=i.value;return["number","string"].includes(cn(a))?a:o}).join(", ")),n.length>r?", ...":null)}var X9t=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Z9t=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],oie=function(t){return t==="tags"||t==="multiple"},Q9t=b.forwardRef(function(e,t){var n,r=e.id,i=e.prefixCls,a=e.className,o=e.showSearch,s=e.tagRender,l=e.direction,c=e.omitDomProps,u=e.displayValues,d=e.onDisplayValuesChange,f=e.emptyOptions,p=e.notFoundContent,h=p===void 0?"Not Found":p,m=e.onClear,g=e.mode,v=e.disabled,y=e.loading,_=e.getInputElement,S=e.getRawInputElement,C=e.open,w=e.defaultOpen,x=e.onDropdownVisibleChange,T=e.activeValue,A=e.onActiveValueChange,I=e.activeDescendantId,R=e.searchValue,N=e.autoClearSearchValue,P=e.onSearch,L=e.onSearchSplit,$=e.tokenSeparators,D=e.allowClear,z=e.suffixIcon,U=e.clearIcon,H=e.OptionList,M=e.animation,B=e.transitionName,k=e.dropdownStyle,F=e.dropdownClassName,G=e.dropdownMatchSelectWidth,q=e.dropdownRender,W=e.dropdownAlign,K=e.placement,J=e.builtinPlacements,te=e.getPopupContainer,ae=e.showAction,re=ae===void 0?[]:ae,ue=e.onFocus,de=e.onBlur,fe=e.onKeyUp,ge=e.onKeyDown,oe=e.onMouseDown,Ee=$n(e,X9t),ce=oie(g),he=(o!==void 0?o:ce)||g==="combobox",ye=we({},Ee);Z9t.forEach(function(fr){delete ye[fr]}),c?.forEach(function(fr){delete ye[fr]});var me=b.useState(!1),_e=Fe(me,2),Te=_e[0],xe=_e[1];b.useEffect(function(){xe(fz())},[]);var De=b.useRef(null),Pe=b.useRef(null),Le=b.useRef(null),ze=b.useRef(null),Be=b.useRef(null),je=b.useRef(!1),Ye=a9t(),Ze=Fe(Ye,3),Ke=Ze[0],qe=Ze[1],nt=Ze[2];b.useImperativeHandle(t,function(){var fr,Un;return{focus:(fr=ze.current)===null||fr===void 0?void 0:fr.focus,blur:(Un=ze.current)===null||Un===void 0?void 0:Un.blur,scrollTo:function(Jn){var lr;return(lr=Be.current)===null||lr===void 0?void 0:lr.scrollTo(Jn)},nativeElement:De.current||Pe.current}});var Qe=b.useMemo(function(){var fr;if(g!=="combobox")return R;var Un=(fr=u[0])===null||fr===void 0?void 0:fr.value;return typeof Un=="string"||typeof Un=="number"?String(Un):""},[R,g,u]),it=g==="combobox"&&typeof _=="function"&&_()||null,yt=typeof S=="function"&&S(),Wt=hv(Pe,yt==null||(n=yt.props)===null||n===void 0?void 0:n.ref),Mt=b.useState(!1),tn=Fe(Mt,2),Rt=tn[0],Dt=tn[1];kr(function(){Dt(!0)},[]);var Pt=qr(!1,{defaultValue:w,value:C}),Ot=Fe(Pt,2),sn=Ot[0],Jt=Ot[1],Vt=Rt?sn:!1,pt=!h&&f;(v||pt&&Vt&&g==="combobox")&&(Vt=!1);var tt=pt?!1:Vt,dt=b.useCallback(function(fr){var Un=fr!==void 0?fr:!Vt;v||(Jt(Un),Vt!==Un&&x?.(Un))},[v,Vt,Jt,x]),Et=b.useMemo(function(){return($||[]).some(function(fr){return[`
`,`\r
`].includes(fr)})},[$]),St=b.useContext(vde)||{},zt=St.maxCount,nn=St.rawValues,wn=function(Un,hr,Jn){if(!(ce&&iie(zt)&&nn?.size>=zt)){var lr=!0,On=Un;A?.(null);var Mn=Y9t(Un,$,iie(zt)?zt-nn.size:void 0),ri=Jn?null:Mn;return g!=="combobox"&&ri&&(On="",L?.(ri),dt(!1),lr=!1),P&&Qe!==On&&P(On,{source:hr?"typing":"effect"}),lr}},kn=function(Un){!Un||!Un.trim()||P(Un,{source:"submit"})};b.useEffect(function(){!Vt&&!ce&&g!=="combobox"&&wn("",!1,!1)},[Vt]),b.useEffect(function(){sn&&v&&Jt(!1),v&&!je.current&&qe(!1)},[v]);var fn=fze(),an=Fe(fn,2),Ht=an[0],mn=an[1],Tn=b.useRef(!1),An=function(Un){var hr=Ht(),Jn=Un.key,lr=Jn==="Enter";if(lr&&(g!=="combobox"&&Un.preventDefault(),Vt||dt(!0)),mn(!!Qe),Jn==="Backspace"&&!hr&&ce&&!Qe&&u.length){for(var On=Tt(u),Mn=null,ri=On.length-1;ri>=0;ri-=1){var Gi=On[ri];if(!Gi.disabled){On.splice(ri,1),Mn=Gi;break}}Mn&&d(On,{type:"remove",values:[Mn]})}for(var ma=arguments.length,Oa=new Array(ma>1?ma-1:0),La=1;La<ma;La++)Oa[La-1]=arguments[La];if(Vt&&(!lr||!Tn.current)){var rr;(rr=Be.current)===null||rr===void 0||rr.onKeyDown.apply(rr,[Un].concat(Oa))}lr&&(Tn.current=!0),ge?.apply(void 0,[Un].concat(Oa))},nr=function(Un){for(var hr=arguments.length,Jn=new Array(hr>1?hr-1:0),lr=1;lr<hr;lr++)Jn[lr-1]=arguments[lr];if(Vt){var On;(On=Be.current)===null||On===void 0||On.onKeyUp.apply(On,[Un].concat(Jn))}Un.key==="Enter"&&(Tn.current=!1),fe?.apply(void 0,[Un].concat(Jn))},un=function(Un){var hr=u.filter(function(Jn){return Jn!==Un});d(hr,{type:"remove",values:[Un]})},et=b.useRef(!1),Ct=function(){qe(!0),v||(ue&&!et.current&&ue.apply(void 0,arguments),re.includes("focus")&&dt(!0)),et.current=!0},Q=function(){je.current=!0,qe(!1,function(){et.current=!1,je.current=!1,dt(!1)}),!v&&(Qe&&(g==="tags"?P(Qe,{source:"submit"}):g==="multiple"&&P("",{source:"blur"})),de&&de.apply(void 0,arguments))},Y=[];b.useEffect(function(){return function(){Y.forEach(function(fr){return clearTimeout(fr)}),Y.splice(0,Y.length)}},[]);var ee=function(Un){var hr,Jn=Un.target,lr=(hr=Le.current)===null||hr===void 0?void 0:hr.getPopupElement();if(lr&&lr.contains(Jn)){var On=setTimeout(function(){var ma=Y.indexOf(On);if(ma!==-1&&Y.splice(ma,1),nt(),!Te&&!lr.contains(document.activeElement)){var Oa;(Oa=ze.current)===null||Oa===void 0||Oa.focus()}});Y.push(On)}for(var Mn=arguments.length,ri=new Array(Mn>1?Mn-1:0),Gi=1;Gi<Mn;Gi++)ri[Gi-1]=arguments[Gi];oe?.apply(void 0,[Un].concat(ri))},le=b.useState({}),Se=Fe(le,2),Ae=Se[1];function He(){Ae({})}var at;yt&&(at=function(Un){dt(Un)}),o9t(function(){var fr;return[De.current,(fr=Le.current)===null||fr===void 0?void 0:fr.getPopupElement()]},tt,dt,!!yt);var wt=b.useMemo(function(){return we(we({},e),{},{notFoundContent:h,open:Vt,triggerOpen:tt,id:r,showSearch:he,multiple:ce,toggleOpen:dt})},[e,h,tt,Vt,r,he,ce,dt]),ft=!!z||y,Lt;ft&&(Lt=b.createElement(pz,{className:Oe("".concat(i,"-arrow"),be({},"".concat(i,"-arrow-loading"),y)),customizeIcon:z,customizeIconProps:{loading:y,searchValue:Qe,open:Vt,focused:Ke,showSearch:he}}));var kt=function(){var Un;m?.(),(Un=ze.current)===null||Un===void 0||Un.focus(),d([],{type:"clear",values:u}),wn("",!1,!1)},Gt=r9t(i,kt,u,D,U,v,Qe,g),ln=Gt.allowClear,_n=Gt.clearIcon,Fn=b.createElement(H,{ref:Be}),ur=Oe(i,a,be(be(be(be(be(be(be(be(be(be({},"".concat(i,"-focused"),Ke),"".concat(i,"-multiple"),ce),"".concat(i,"-single"),!ce),"".concat(i,"-allow-clear"),D),"".concat(i,"-show-arrow"),ft),"".concat(i,"-disabled"),v),"".concat(i,"-loading"),y),"".concat(i,"-open"),Vt),"".concat(i,"-customize-input"),it),"".concat(i,"-show-search"),he)),Vr=b.createElement(q9t,{ref:Le,disabled:v,prefixCls:i,visible:tt,popupElement:Fn,animation:M,transitionName:B,dropdownStyle:k,dropdownClassName:F,direction:l,dropdownMatchSelectWidth:G,dropdownRender:q,dropdownAlign:W,placement:K,builtinPlacements:J,getPopupContainer:te,empty:f,getTriggerDOMNode:function(Un){return Pe.current||Un},onPopupVisibleChange:at,onPopupMouseEnter:He},yt?b.cloneElement(yt,{ref:Wt}):b.createElement(R9t,Xe({},e,{domRef:Pe,prefixCls:i,inputElement:it,ref:ze,id:r,showSearch:he,autoClearSearchValue:N,mode:g,activeDescendantId:I,tagRender:s,values:u,open:Vt,onToggleOpen:dt,activeValue:T,searchValue:Qe,onSearch:wn,onSearchSubmit:kn,onRemove:un,tokenWithEnter:Et}))),ni;return yt?ni=Vr:ni=b.createElement("div",Xe({className:ur},ye,{ref:De,onMouseDown:ee,onKeyDown:An,onKeyUp:nr,onFocus:Ct,onBlur:Q}),b.createElement(K9t,{visible:Ke&&!Vt,values:u}),Vr,Lt,ln&&_n),b.createElement(dze.Provider,{value:wt},ni)}),yde=function(){return null};yde.isSelectOptGroup=!0;var bde=function(){return null};bde.isSelectOption=!0;var _ze=b.forwardRef(function(e,t){var n=e.height,r=e.offsetY,i=e.offsetX,a=e.children,o=e.prefixCls,s=e.onInnerResize,l=e.innerProps,c=e.rtl,u=e.extra,d={},f={display:"flex",flexDirection:"column"};return r!==void 0&&(d={height:n,position:"relative",overflow:"hidden"},f=we(we({},f),{},be(be(be(be(be({transform:"translateY(".concat(r,"px)")},c?"marginRight":"marginLeft",-i),"position","absolute"),"left",0),"right",0),"top",0))),b.createElement("div",{style:d},b.createElement(Sc,{onResize:function(h){var m=h.offsetHeight;m&&s&&s()}},b.createElement("div",Xe({style:f,className:Oe(be({},"".concat(o,"-holder-inner"),o)),ref:t},l),a,u)))});_ze.displayName="Filler";function J9t(e){var t=e.children,n=e.setRef,r=b.useCallback(function(i){n(i)},[]);return b.cloneElement(t,{ref:r})}function e7t(e,t,n,r,i,a,o,s){var l=s.getKey;return e.slice(t,n+1).map(function(c,u){var d=t+u,f=o(c,d,{style:{width:r},offsetX:i}),p=l(c);return b.createElement(J9t,{key:p,setRef:function(m){return a(c,m)}},f)})}function t7t(e,t,n){var r=e.length,i=t.length,a,o;if(r===0&&i===0)return null;r<i?(a=e,o=t):(a=t,o=e);var s={__EMPTY_ITEM__:!0};function l(h){return h!==void 0?n(h):s}for(var c=null,u=Math.abs(r-i)!==1,d=0;d<o.length;d+=1){var f=l(a[d]),p=l(o[d]);if(f!==p){c=d,u=u||f!==l(o[d+1]);break}}return c===null?null:{index:c,multiple:u}}function n7t(e,t,n){var r=b.useState(e),i=Fe(r,2),a=i[0],o=i[1],s=b.useState(null),l=Fe(s,2),c=l[0],u=l[1];return b.useEffect(function(){var d=t7t(a||[],e||[],t);d?.index!==void 0&&u(e[d.index]),o(e)},[e]),[c]}var S2e=(typeof navigator>"u"?"undefined":cn(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const Sze=function(e,t,n,r){var i=b.useRef(!1),a=b.useRef(null);function o(){clearTimeout(a.current),i.current=!0,a.current=setTimeout(function(){i.current=!1},50)}var s=b.useRef({top:e,bottom:t,left:n,right:r});return s.current.top=e,s.current.bottom=t,s.current.left=n,s.current.right=r,function(l,c){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,d=l?c<0&&s.current.left||c>0&&s.current.right:c<0&&s.current.top||c>0&&s.current.bottom;return u&&d?(clearTimeout(a.current),i.current=!1):(!d||i.current)&&o(),!i.current&&d}};function r7t(e,t,n,r,i,a,o){var s=b.useRef(0),l=b.useRef(null),c=b.useRef(null),u=b.useRef(!1),d=Sze(t,n,r,i);function f(y,_){Tr.cancel(l.current),s.current+=_,c.current=_,!d(!1,_)&&(S2e||y.preventDefault(),l.current=Tr(function(){var S=u.current?10:1;o(s.current*S),s.current=0}))}function p(y,_){o(_,!0),S2e||y.preventDefault()}var h=b.useRef(null),m=b.useRef(null);function g(y){if(e){Tr.cancel(m.current),m.current=Tr(function(){h.current=null},2);var _=y.deltaX,S=y.deltaY,C=y.shiftKey,w=_,x=S;(h.current==="sx"||!h.current&&C&&S&&!_)&&(w=S,x=0,h.current="sx");var T=Math.abs(w),A=Math.abs(x);h.current===null&&(h.current=a&&T>A?"x":"y"),h.current==="y"?f(y,x):p(y,w)}}function v(y){e&&(u.current=y.detail===c.current)}return[g,v]}function i7t(e,t,n,r){var i=b.useMemo(function(){return[new Map,[]]},[e,n.id,r]),a=Fe(i,2),o=a[0],s=a[1],l=function(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u,f=o.get(u),p=o.get(d);if(f===void 0||p===void 0)for(var h=e.length,m=s.length;m<h;m+=1){var g,v=e[m],y=t(v);o.set(y,m);var _=(g=n.get(y))!==null&&g!==void 0?g:r;if(s[m]=(s[m-1]||0)+_,y===u&&(f=m),y===d&&(p=m),f!==void 0&&p!==void 0)break}return{top:s[f-1]||0,bottom:s[p]}};return l}var a7t=function(){function e(){co(this,e),be(this,"maps",void 0),be(this,"id",0),this.maps=Object.create(null)}return uo(e,[{key:"set",value:function(n,r){this.maps[n]=r,this.id+=1}},{key:"get",value:function(n){return this.maps[n]}}]),e}();function o7t(e,t,n){var r=b.useState(0),i=Fe(r,2),a=i[0],o=i[1],s=b.useRef(new Map),l=b.useRef(new a7t),c=b.useRef();function u(){Tr.cancel(c.current)}function d(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;u();var h=function(){s.current.forEach(function(g,v){if(g&&g.offsetParent){var y=aR(g),_=y.offsetHeight;l.current.get(v)!==_&&l.current.set(v,y.offsetHeight)}}),o(function(g){return g+1})};p?h():c.current=Tr(h)}function f(p,h){var m=e(p);s.current.get(m),h?(s.current.set(m,h),d()):s.current.delete(m)}return b.useEffect(function(){return u},[]),[f,d,l.current,a]}var E2e=14/15;function s7t(e,t,n){var r=b.useRef(!1),i=b.useRef(0),a=b.useRef(0),o=b.useRef(null),s=b.useRef(null),l,c=function(p){if(r.current){var h=Math.ceil(p.touches[0].pageX),m=Math.ceil(p.touches[0].pageY),g=i.current-h,v=a.current-m,y=Math.abs(g)>Math.abs(v);y?i.current=h:a.current=m,n(y,y?g:v)&&p.preventDefault(),clearInterval(s.current),s.current=setInterval(function(){y?g*=E2e:v*=E2e;var _=Math.floor(y?g:v);(!n(y,_,!0)||Math.abs(_)<=.1)&&clearInterval(s.current)},16)}},u=function(){r.current=!1,l()},d=function(p){l(),p.touches.length===1&&!r.current&&(r.current=!0,i.current=Math.ceil(p.touches[0].pageX),a.current=Math.ceil(p.touches[0].pageY),o.current=p.target,o.current.addEventListener("touchmove",c,{passive:!1}),o.current.addEventListener("touchend",u,{passive:!0}))};l=function(){o.current&&(o.current.removeEventListener("touchmove",c),o.current.removeEventListener("touchend",u))},kr(function(){return e&&t.current.addEventListener("touchstart",d,{passive:!0}),function(){var f;(f=t.current)===null||f===void 0||f.removeEventListener("touchstart",d),l(),clearInterval(s.current)}},[e])}var l7t=10;function c7t(e,t,n,r,i,a,o,s){var l=b.useRef(),c=b.useState(null),u=Fe(c,2),d=u[0],f=u[1];return kr(function(){if(d&&d.times<l7t){if(!e.current){f(function(H){return we({},H)});return}a();var p=d.targetAlign,h=d.originAlign,m=d.index,g=d.offset,v=e.current.clientHeight,y=!1,_=p,S=null;if(v){for(var C=p||h,w=0,x=0,T=0,A=Math.min(t.length-1,m),I=0;I<=A;I+=1){var R=i(t[I]);x=w;var N=n.get(R);T=x+(N===void 0?r:N),w=T}for(var P=C==="top"?g:v-g,L=A;L>=0;L-=1){var $=i(t[L]),D=n.get($);if(D===void 0){y=!0;break}if(P-=D,P<=0)break}switch(C){case"top":S=x-g;break;case"bottom":S=T-v+g;break;default:{var z=e.current.scrollTop,U=z+v;x<z?_="top":T>U&&(_="bottom")}}S!==null&&o(S),S!==d.lastTop&&(y=!0)}y&&f(we(we({},d),{},{times:d.times+1,targetAlign:_,lastTop:S}))}},[d,e.current]),function(p){if(p==null){s();return}if(Tr.cancel(l.current),typeof p=="number")o(p);else if(p&&cn(p)==="object"){var h,m=p.align;"index"in p?h=p.index:h=t.findIndex(function(y){return i(y)===p.key});var g=p.offset,v=g===void 0?0:g;f({times:0,index:h,offset:v,originAlign:m})}}}function C2e(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]}var w2e=b.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,i=e.scrollOffset,a=e.scrollRange,o=e.onStartMove,s=e.onStopMove,l=e.onScroll,c=e.horizontal,u=e.spinSize,d=e.containerSize,f=e.style,p=e.thumbStyle,h=b.useState(!1),m=Fe(h,2),g=m[0],v=m[1],y=b.useState(null),_=Fe(y,2),S=_[0],C=_[1],w=b.useState(null),x=Fe(w,2),T=x[0],A=x[1],I=!r,R=b.useRef(),N=b.useRef(),P=b.useState(!1),L=Fe(P,2),$=L[0],D=L[1],z=b.useRef(),U=function(){clearTimeout(z.current),D(!0),z.current=setTimeout(function(){D(!1)},3e3)},H=a-d||0,M=d-u||0,B=b.useMemo(function(){if(i===0||H===0)return 0;var ae=i/H;return ae*M},[i,H,M]),k=function(re){re.stopPropagation(),re.preventDefault()},F=b.useRef({top:B,dragging:g,pageY:S,startTop:T});F.current={top:B,dragging:g,pageY:S,startTop:T};var G=function(re){v(!0),C(C2e(re,c)),A(F.current.top),o(),re.stopPropagation(),re.preventDefault()};b.useEffect(function(){var ae=function(fe){fe.preventDefault()},re=R.current,ue=N.current;return re.addEventListener("touchstart",ae,{passive:!1}),ue.addEventListener("touchstart",G,{passive:!1}),function(){re.removeEventListener("touchstart",ae),ue.removeEventListener("touchstart",G)}},[]);var q=b.useRef();q.current=H;var W=b.useRef();W.current=M,b.useEffect(function(){if(g){var ae,re=function(fe){var ge=F.current,oe=ge.dragging,Ee=ge.pageY,ce=ge.startTop;Tr.cancel(ae);var he=R.current.getBoundingClientRect(),ye=d/(c?he.width:he.height);if(oe){var me=(C2e(fe,c)-Ee)*ye,_e=ce;!I&&c?_e-=me:_e+=me;var Te=q.current,xe=W.current,De=xe?_e/xe:0,Pe=Math.ceil(De*Te);Pe=Math.max(Pe,0),Pe=Math.min(Pe,Te),ae=Tr(function(){l(Pe,c)})}},ue=function(){v(!1),s()};return window.addEventListener("mousemove",re,{passive:!0}),window.addEventListener("touchmove",re,{passive:!0}),window.addEventListener("mouseup",ue,{passive:!0}),window.addEventListener("touchend",ue,{passive:!0}),function(){window.removeEventListener("mousemove",re),window.removeEventListener("touchmove",re),window.removeEventListener("mouseup",ue),window.removeEventListener("touchend",ue),Tr.cancel(ae)}}},[g]),b.useEffect(function(){return U(),function(){clearTimeout(z.current)}},[i]),b.useImperativeHandle(t,function(){return{delayHidden:U}});var K="".concat(n,"-scrollbar"),J={position:"absolute",visibility:$?null:"hidden"},te={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return c?(J.height=8,J.left=0,J.right=0,J.bottom=0,te.height="100%",te.width=u,I?te.left=B:te.right=B):(J.width=8,J.top=0,J.bottom=0,I?J.right=0:J.left=0,te.width="100%",te.height=u,te.top=B),b.createElement("div",{ref:R,className:Oe(K,be(be(be({},"".concat(K,"-horizontal"),c),"".concat(K,"-vertical"),!c),"".concat(K,"-visible"),$)),style:we(we({},J),f),onMouseDown:k,onMouseMove:U},b.createElement("div",{ref:N,className:Oe("".concat(K,"-thumb"),be({},"".concat(K,"-thumb-moving"),g)),style:we(we({},te),p),onMouseDown:G}))}),u7t=20;function x2e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,u7t),Math.floor(n)}var d7t=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],f7t=[],p7t={overflowY:"auto",overflowAnchor:"none"};function h7t(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,i=e.className,a=e.height,o=e.itemHeight,s=e.fullHeight,l=s===void 0?!0:s,c=e.style,u=e.data,d=e.children,f=e.itemKey,p=e.virtual,h=e.direction,m=e.scrollWidth,g=e.component,v=g===void 0?"div":g,y=e.onScroll,_=e.onVirtualScroll,S=e.onVisibleChange,C=e.innerProps,w=e.extraRender,x=e.styles,T=$n(e,d7t),A=b.useCallback(function(et){return typeof f=="function"?f(et):et?.[f]},[f]),I=o7t(A),R=Fe(I,4),N=R[0],P=R[1],L=R[2],$=R[3],D=!!(p!==!1&&a&&o),z=b.useMemo(function(){return Object.values(L.maps).reduce(function(et,Ct){return et+Ct},0)},[L.id,L.maps]),U=D&&u&&(Math.max(o*u.length,z)>a||!!m),H=h==="rtl",M=Oe(r,be({},"".concat(r,"-rtl"),H),i),B=u||f7t,k=b.useRef(),F=b.useRef(),G=b.useRef(),q=b.useState(0),W=Fe(q,2),K=W[0],J=W[1],te=b.useState(0),ae=Fe(te,2),re=ae[0],ue=ae[1],de=b.useState(!1),fe=Fe(de,2),ge=fe[0],oe=fe[1],Ee=function(){oe(!0)},ce=function(){oe(!1)},he={getKey:A};function ye(et){J(function(Ct){var Q;typeof et=="function"?Q=et(Ct):Q=et;var Y=Rt(Q);return k.current.scrollTop=Y,Y})}var me=b.useRef({start:0,end:B.length}),_e=b.useRef(),Te=n7t(B,A),xe=Fe(Te,1),De=xe[0];_e.current=De;var Pe=b.useMemo(function(){if(!D)return{scrollHeight:void 0,start:0,end:B.length-1,offset:void 0};if(!U){var et;return{scrollHeight:((et=F.current)===null||et===void 0?void 0:et.offsetHeight)||0,start:0,end:B.length-1,offset:void 0}}for(var Ct=0,Q,Y,ee,le=B.length,Se=0;Se<le;Se+=1){var Ae=B[Se],He=A(Ae),at=L.get(He),wt=Ct+(at===void 0?o:at);wt>=K&&Q===void 0&&(Q=Se,Y=Ct),wt>K+a&&ee===void 0&&(ee=Se),Ct=wt}return Q===void 0&&(Q=0,Y=0,ee=Math.ceil(a/o)),ee===void 0&&(ee=B.length-1),ee=Math.min(ee+1,B.length-1),{scrollHeight:Ct,start:Q,end:ee,offset:Y}},[U,D,K,B,$,a]),Le=Pe.scrollHeight,ze=Pe.start,Be=Pe.end,je=Pe.offset;me.current.start=ze,me.current.end=Be;var Ye=b.useState({width:0,height:a}),Ze=Fe(Ye,2),Ke=Ze[0],qe=Ze[1],nt=function(Ct){qe({width:Ct.offsetWidth,height:Ct.offsetHeight})},Qe=b.useRef(),it=b.useRef(),yt=b.useMemo(function(){return x2e(Ke.width,m)},[Ke.width,m]),Wt=b.useMemo(function(){return x2e(Ke.height,Le)},[Ke.height,Le]),Mt=Le-a,tn=b.useRef(Mt);tn.current=Mt;function Rt(et){var Ct=et;return Number.isNaN(tn.current)||(Ct=Math.min(Ct,tn.current)),Ct=Math.max(Ct,0),Ct}var Dt=K<=0,Pt=K>=Mt,Ot=re<=0,sn=re>=m,Jt=Sze(Dt,Pt,Ot,sn),Vt=function(){return{x:H?-re:re,y:K}},pt=b.useRef(Vt()),tt=gr(function(et){if(_){var Ct=we(we({},Vt()),et);(pt.current.x!==Ct.x||pt.current.y!==Ct.y)&&(_(Ct),pt.current=Ct)}});function dt(et,Ct){var Q=et;Ct?(Ou.flushSync(function(){ue(Q)}),tt()):ye(Q)}function Et(et){var Ct=et.currentTarget.scrollTop;Ct!==K&&ye(Ct),y?.(et),tt()}var St=function(Ct){var Q=Ct,Y=m?m-Ke.width:0;return Q=Math.max(Q,0),Q=Math.min(Q,Y),Q},zt=gr(function(et,Ct){Ct?(Ou.flushSync(function(){ue(function(Q){var Y=Q+(H?-et:et);return St(Y)})}),tt()):ye(function(Q){var Y=Q+et;return Y})}),nn=r7t(D,Dt,Pt,Ot,sn,!!m,zt),wn=Fe(nn,2),kn=wn[0],fn=wn[1];s7t(D,k,function(et,Ct,Q){return Jt(et,Ct,Q)?!1:(kn({preventDefault:function(){},deltaX:et?Ct:0,deltaY:et?0:Ct}),!0)}),kr(function(){function et(Q){D&&Q.preventDefault()}var Ct=k.current;return Ct.addEventListener("wheel",kn,{passive:!1}),Ct.addEventListener("DOMMouseScroll",fn,{passive:!0}),Ct.addEventListener("MozMousePixelScroll",et,{passive:!1}),function(){Ct.removeEventListener("wheel",kn),Ct.removeEventListener("DOMMouseScroll",fn),Ct.removeEventListener("MozMousePixelScroll",et)}},[D]),kr(function(){if(m){var et=St(re);ue(et),tt({x:et})}},[Ke.width,m]);var an=function(){var Ct,Q;(Ct=Qe.current)===null||Ct===void 0||Ct.delayHidden(),(Q=it.current)===null||Q===void 0||Q.delayHidden()},Ht=c7t(k,B,L,o,A,function(){return P(!0)},ye,an);b.useImperativeHandle(t,function(){return{nativeElement:G.current,getScrollInfo:Vt,scrollTo:function(Ct){function Q(Y){return Y&&cn(Y)==="object"&&("left"in Y||"top"in Y)}Q(Ct)?(Ct.left!==void 0&&ue(St(Ct.left)),Ht(Ct.top)):Ht(Ct)}}}),kr(function(){if(S){var et=B.slice(ze,Be+1);S(et,B)}},[ze,Be,B]);var mn=i7t(B,A,L,o),Tn=w?.({start:ze,end:Be,virtual:U,offsetX:re,offsetY:je,rtl:H,getSize:mn}),An=e7t(B,ze,Be,m,re,N,d,he),nr=null;a&&(nr=we(be({},l?"height":"maxHeight",a),p7t),D&&(nr.overflowY="hidden",m&&(nr.overflowX="hidden"),ge&&(nr.pointerEvents="none")));var un={};return H&&(un.dir="rtl"),b.createElement("div",Xe({ref:G,style:we(we({},c),{},{position:"relative"}),className:M},un,T),b.createElement(Sc,{onResize:nt},b.createElement(v,{className:"".concat(r,"-holder"),style:nr,ref:k,onScroll:Et,onMouseEnter:an},b.createElement(_ze,{prefixCls:r,height:Le,offsetX:re,offsetY:je,scrollWidth:m,onInnerResize:P,ref:F,innerProps:C,rtl:H,extra:Tn},An))),U&&Le>a&&b.createElement(w2e,{ref:Qe,prefixCls:r,scrollOffset:K,scrollRange:Le,rtl:H,onScroll:dt,onStartMove:Ee,onStopMove:ce,spinSize:Wt,containerSize:Ke.height,style:x?.verticalScrollBar,thumbStyle:x?.verticalScrollBarThumb}),U&&m>Ke.width&&b.createElement(w2e,{ref:it,prefixCls:r,scrollOffset:re,scrollRange:m,rtl:H,onScroll:dt,onStartMove:Ee,onStopMove:ce,spinSize:yt,containerSize:Ke.width,horizontal:!0,style:x?.horizontalScrollBar,thumbStyle:x?.horizontalScrollBarThumb}))}var hz=b.forwardRef(h7t);hz.displayName="List";function m7t(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var g7t=["disabled","title","children","style","className"];function T2e(e){return typeof e=="string"||typeof e=="number"}var v7t=function(t,n){var r=i9t(),i=r.prefixCls,a=r.id,o=r.open,s=r.multiple,l=r.mode,c=r.searchValue,u=r.toggleOpen,d=r.notFoundContent,f=r.onPopupScroll,p=b.useContext(vde),h=p.maxCount,m=p.flattenOptions,g=p.onActiveValue,v=p.defaultActiveFirstOption,y=p.onSelect,_=p.menuItemSelectedIcon,S=p.rawValues,C=p.fieldNames,w=p.virtual,x=p.direction,T=p.listHeight,A=p.listItemHeight,I=p.optionRender,R="".concat(i,"-item"),N=hC(function(){return m},[o,m],function(ae,re){return re[0]&&ae[1]!==re[1]}),P=b.useRef(null),L=b.useMemo(function(){return s&&iie(h)&&S?.size>=h},[s,h,S?.size]),$=function(re){re.preventDefault()},D=function(re){var ue;(ue=P.current)===null||ue===void 0||ue.scrollTo(typeof re=="number"?{index:re}:re)},z=function(re){for(var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,de=N.length,fe=0;fe<de;fe+=1){var ge=(re+fe*ue+de)%de,oe=N[ge]||{},Ee=oe.group,ce=oe.data;if(!Ee&&!(ce!=null&&ce.disabled)&&!L)return ge}return-1},U=b.useState(function(){return z(0)}),H=Fe(U,2),M=H[0],B=H[1],k=function(re){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;B(re);var de={source:ue?"keyboard":"mouse"},fe=N[re];if(!fe){g(null,-1,de);return}g(fe.value,re,de)};b.useEffect(function(){k(v!==!1?z(0):-1)},[N.length,c]);var F=b.useCallback(function(ae){return S.has(ae)&&l!=="combobox"},[l,Tt(S).toString(),S.size]);b.useEffect(function(){var ae=setTimeout(function(){if(!s&&o&&S.size===1){var ue=Array.from(S)[0],de=N.findIndex(function(fe){var ge=fe.data;return ge.value===ue});de!==-1&&(k(de),D(de))}});if(o){var re;(re=P.current)===null||re===void 0||re.scrollTo(void 0)}return function(){return clearTimeout(ae)}},[o,c]);var G=function(re){re!==void 0&&y(re,{selected:!S.has(re)}),s||u(!1)};if(b.useImperativeHandle(n,function(){return{onKeyDown:function(re){var ue=re.which,de=re.ctrlKey;switch(ue){case Bt.N:case Bt.P:case Bt.UP:case Bt.DOWN:{var fe=0;if(ue===Bt.UP?fe=-1:ue===Bt.DOWN?fe=1:m7t()&&de&&(ue===Bt.N?fe=1:ue===Bt.P&&(fe=-1)),fe!==0){var ge=z(M+fe,fe);D(ge),k(ge,!0)}break}case Bt.ENTER:{var oe,Ee=N[M];Ee&&!(Ee!=null&&(oe=Ee.data)!==null&&oe!==void 0&&oe.disabled)&&!L?G(Ee.value):G(void 0),o&&re.preventDefault();break}case Bt.ESC:u(!1),o&&re.stopPropagation()}},onKeyUp:function(){},scrollTo:function(re){D(re)}}}),N.length===0)return b.createElement("div",{role:"listbox",id:"".concat(a,"_list"),className:"".concat(R,"-empty"),onMouseDown:$},d);var q=Object.keys(C).map(function(ae){return C[ae]}),W=function(re){return re.label};function K(ae,re){var ue=ae.group;return{role:ue?"presentation":"option",id:"".concat(a,"_list_").concat(re)}}var J=function(re){var ue=N[re];if(!ue)return null;var de=ue.data||{},fe=de.value,ge=ue.group,oe=lo(de,!0),Ee=W(ue);return ue?b.createElement("div",Xe({"aria-label":typeof Ee=="string"&&!ge?Ee:null},oe,{key:re},K(ue,re),{"aria-selected":F(fe)}),fe):null},te={role:"listbox",id:"".concat(a,"_list")};return b.createElement(b.Fragment,null,w&&b.createElement("div",Xe({},te,{style:{height:0,width:0,overflow:"hidden"}}),J(M-1),J(M),J(M+1)),b.createElement(hz,{itemKey:"key",ref:P,data:N,height:T,itemHeight:A,fullHeight:!1,onMouseDown:$,onScroll:f,virtual:w,direction:x,innerProps:w?null:te},function(ae,re){var ue=ae.group,de=ae.groupOption,fe=ae.data,ge=ae.label,oe=ae.value,Ee=fe.key;if(ue){var ce,he=(ce=fe.title)!==null&&ce!==void 0?ce:T2e(ge)?ge.toString():void 0;return b.createElement("div",{className:Oe(R,"".concat(R,"-group"),fe.className),title:he},ge!==void 0?ge:Ee)}var ye=fe.disabled,me=fe.title;fe.children;var _e=fe.style,Te=fe.className,xe=$n(fe,g7t),De=Xa(xe,q),Pe=F(oe),Le=ye||!Pe&&L,ze="".concat(R,"-option"),Be=Oe(R,ze,Te,be(be(be(be({},"".concat(ze,"-grouped"),de),"".concat(ze,"-active"),M===re&&!Le),"".concat(ze,"-disabled"),Le),"".concat(ze,"-selected"),Pe)),je=W(ae),Ye=!_||typeof _=="function"||Pe,Ze=typeof je=="number"?je:je||oe,Ke=T2e(Ze)?Ze.toString():void 0;return me!==void 0&&(Ke=me),b.createElement("div",Xe({},lo(De),w?{}:K(ae,re),{"aria-selected":Pe,className:Be,title:Ke,onMouseMove:function(){M===re||Le||k(re)},onClick:function(){Le||G(oe)},style:_e}),b.createElement("div",{className:"".concat(ze,"-content")},typeof I=="function"?I(ae,{index:re}):Ze),b.isValidElement(_)||Pe,Ye&&b.createElement(pz,{className:"".concat(R,"-option-state"),customizeIcon:_,customizeIconProps:{value:oe,disabled:Le,isSelected:Pe}},Pe?"✓":null))}))},y7t=b.forwardRef(v7t);const b7t=function(e,t){var n=b.useRef({values:new Map,options:new Map}),r=b.useMemo(function(){var a=n.current,o=a.values,s=a.options,l=e.map(function(d){if(d.label===void 0){var f;return we(we({},d),{},{label:(f=o.get(d.value))===null||f===void 0?void 0:f.label})}return d}),c=new Map,u=new Map;return l.forEach(function(d){c.set(d.value,d),u.set(d.value,t.get(d.value)||s.get(d.value))}),n.current.values=c,n.current.options=u,l},[e,t]),i=b.useCallback(function(a){return t.get(a)||n.current.options.get(a)},[t]);return[r,i]};function JG(e,t){return vze(e).join("").toUpperCase().includes(t)}const _7t=function(e,t,n,r,i){return b.useMemo(function(){if(!n||r===!1)return e;var a=t.options,o=t.label,s=t.value,l=[],c=typeof r=="function",u=n.toUpperCase(),d=c?r:function(p,h){return i?JG(h[i],u):h[a]?JG(h[o!=="children"?o:"label"],u):JG(h[s],u)},f=c?function(p){return aie(p)}:function(p){return p};return e.forEach(function(p){if(p[a]){var h=d(n,f(p));if(h)l.push(p);else{var m=p[a].filter(function(g){return d(n,f(g))});m.length&&l.push(we(we({},p),{},be({},a,m)))}return}d(n,f(p))&&l.push(p)}),l},[e,r,i,n,t])};var I2e=0,S7t=Zl();function E7t(){var e;return S7t?(e=I2e,I2e+=1):e="TEST_OR_SSR",e}function C7t(e){var t=b.useState(),n=Fe(t,2),r=n[0],i=n[1];return b.useEffect(function(){i("rc_select_".concat(E7t()))},[]),e||r}var w7t=["children","value"],x7t=["children"];function T7t(e){var t=e,n=t.key,r=t.props,i=r.children,a=r.value,o=$n(r,w7t);return we({key:n,value:a!==void 0?a:n,children:i},o)}function Eze(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return _l(e).map(function(n,r){if(!b.isValidElement(n)||!n.type)return null;var i=n,a=i.type.isSelectOptGroup,o=i.key,s=i.props,l=s.children,c=$n(s,x7t);return t||!a?T7t(n):we(we({key:"__RC_SELECT_GRP__".concat(o===null?r:o,"__"),label:o},c),{},{options:Eze(l)})}).filter(function(n){return n})}var I7t=function(t,n,r,i,a){return b.useMemo(function(){var o=t,s=!t;s&&(o=Eze(n));var l=new Map,c=new Map,u=function(p,h,m){m&&typeof m=="string"&&p.set(h[m],h)},d=function f(p){for(var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,m=0;m<p.length;m+=1){var g=p[m];!g[r.options]||h?(l.set(g[r.value],g),u(c,g,r.label),u(c,g,i),u(c,g,a)):f(g[r.options],!0)}};return d(o),{options:o,valueOptions:l,labelOptions:c}},[t,n,r,i,a])};function A2e(e){var t=b.useRef();t.current=e;var n=b.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var A7t=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],R7t=["inputValue"];function N7t(e){return!e||cn(e)!=="object"}var O7t=b.forwardRef(function(e,t){var n=e.id,r=e.mode,i=e.prefixCls,a=i===void 0?"rc-select":i,o=e.backfill,s=e.fieldNames,l=e.inputValue,c=e.searchValue,u=e.onSearch,d=e.autoClearSearchValue,f=d===void 0?!0:d,p=e.onSelect,h=e.onDeselect,m=e.dropdownMatchSelectWidth,g=m===void 0?!0:m,v=e.filterOption,y=e.filterSort,_=e.optionFilterProp,S=e.optionLabelProp,C=e.options,w=e.optionRender,x=e.children,T=e.defaultActiveFirstOption,A=e.menuItemSelectedIcon,I=e.virtual,R=e.direction,N=e.listHeight,P=N===void 0?200:N,L=e.listItemHeight,$=L===void 0?20:L,D=e.labelRender,z=e.value,U=e.defaultValue,H=e.labelInValue,M=e.onChange,B=e.maxCount,k=$n(e,A7t),F=C7t(n),G=oie(r),q=!!(!C&&x),W=b.useMemo(function(){return v===void 0&&r==="combobox"?!1:v},[v,r]),K=b.useMemo(function(){return bze(s,q)},[JSON.stringify(s),q]),J=qr("",{value:c!==void 0?c:l,postState:function(Et){return Et||""}}),te=Fe(J,2),ae=te[0],re=te[1],ue=I7t(C,x,K,_,S),de=ue.valueOptions,fe=ue.labelOptions,ge=ue.options,oe=b.useCallback(function(dt){var Et=vze(dt);return Et.map(function(St){var zt,nn,wn,kn,fn;if(N7t(St))zt=St;else{var an;wn=St.key,nn=St.label,zt=(an=St.value)!==null&&an!==void 0?an:wn}var Ht=de.get(zt);if(Ht){var mn;nn===void 0&&(nn=Ht?.[S||K.label]),wn===void 0&&(wn=(mn=Ht?.key)!==null&&mn!==void 0?mn:zt),kn=Ht?.disabled,fn=Ht?.title}return{label:nn,value:zt,key:wn,disabled:kn,title:fn}})},[K,S,de]),Ee=qr(U,{value:z}),ce=Fe(Ee,2),he=ce[0],ye=ce[1],me=b.useMemo(function(){var dt,Et=G&&he===null?[]:he,St=oe(Et);return r==="combobox"&&C9t((dt=St[0])===null||dt===void 0?void 0:dt.value)?[]:St},[he,oe,r,G]),_e=b7t(me,de),Te=Fe(_e,2),xe=Te[0],De=Te[1],Pe=b.useMemo(function(){if(!r&&xe.length===1){var dt=xe[0];if(dt.value===null&&(dt.label===null||dt.label===void 0))return[]}return xe.map(function(Et){var St;return we(we({},Et),{},{label:(St=typeof D=="function"?D(Et):Et.label)!==null&&St!==void 0?St:Et.value})})},[r,xe,D]),Le=b.useMemo(function(){return new Set(xe.map(function(dt){return dt.value}))},[xe]);b.useEffect(function(){if(r==="combobox"){var dt,Et=(dt=xe[0])===null||dt===void 0?void 0:dt.value;re(E9t(Et)?String(Et):"")}},[xe]);var ze=A2e(function(dt,Et){var St=Et??dt;return be(be({},K.value,dt),K.label,St)}),Be=b.useMemo(function(){if(r!=="tags")return ge;var dt=Tt(ge),Et=function(zt){return de.has(zt)};return Tt(xe).sort(function(St,zt){return St.value<zt.value?-1:1}).forEach(function(St){var zt=St.value;Et(zt)||dt.push(ze(zt,St.label))}),dt},[ze,ge,de,xe,r]),je=_7t(Be,K,ae,W,_),Ye=b.useMemo(function(){return r!=="tags"||!ae||je.some(function(dt){return dt[_||"value"]===ae})||je.some(function(dt){return dt[K.value]===ae})?je:[ze(ae)].concat(Tt(je))},[ze,_,r,je,ae,K]),Ze=b.useMemo(function(){return y?Tt(Ye).sort(function(dt,Et){return y(dt,Et,{searchValue:ae})}):Ye},[Ye,y,ae]),Ke=b.useMemo(function(){return W9t(Ze,{fieldNames:K,childrenAsData:q})},[Ze,K,q]),qe=function(Et){var St=oe(Et);if(ye(St),M&&(St.length!==xe.length||St.some(function(wn,kn){var fn;return((fn=xe[kn])===null||fn===void 0?void 0:fn.value)!==wn?.value}))){var zt=H?St:St.map(function(wn){return wn.value}),nn=St.map(function(wn){return aie(De(wn.value))});M(G?zt:zt[0],G?nn:nn[0])}},nt=b.useState(null),Qe=Fe(nt,2),it=Qe[0],yt=Qe[1],Wt=b.useState(0),Mt=Fe(Wt,2),tn=Mt[0],Rt=Mt[1],Dt=T!==void 0?T:r!=="combobox",Pt=b.useCallback(function(dt,Et){var St=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},zt=St.source,nn=zt===void 0?"keyboard":zt;Rt(Et),o&&r==="combobox"&&dt!==null&&nn==="keyboard"&&yt(String(dt))},[o,r]),Ot=function(Et,St,zt){var nn=function(){var un,et=De(Et);return[H?{label:et?.[K.label],value:Et,key:(un=et?.key)!==null&&un!==void 0?un:Et}:Et,aie(et)]};if(St&&p){var wn=nn(),kn=Fe(wn,2),fn=kn[0],an=kn[1];p(fn,an)}else if(!St&&h&&zt!=="clear"){var Ht=nn(),mn=Fe(Ht,2),Tn=mn[0],An=mn[1];h(Tn,An)}},sn=A2e(function(dt,Et){var St,zt=G?Et.selected:!0;zt?St=G?[].concat(Tt(xe),[dt]):[dt]:St=xe.filter(function(nn){return nn.value!==dt}),qe(St),Ot(dt,zt),r==="combobox"?yt(""):(!oie||f)&&(re(""),yt(""))}),Jt=function(Et,St){qe(Et);var zt=St.type,nn=St.values;(zt==="remove"||zt==="clear")&&nn.forEach(function(wn){Ot(wn.value,!1,zt)})},Vt=function(Et,St){if(re(Et),yt(null),St.source==="submit"){var zt=(Et||"").trim();if(zt){var nn=Array.from(new Set([].concat(Tt(Le),[zt])));qe(nn),Ot(zt,!0),re("")}return}St.source!=="blur"&&(r==="combobox"&&qe(Et),u?.(Et))},pt=function(Et){var St=Et;r!=="tags"&&(St=Et.map(function(nn){var wn=fe.get(nn);return wn?.value}).filter(function(nn){return nn!==void 0}));var zt=Array.from(new Set([].concat(Tt(Le),Tt(St))));qe(zt),zt.forEach(function(nn){Ot(nn,!0)})},tt=b.useMemo(function(){var dt=I!==!1&&g!==!1;return we(we({},ue),{},{flattenOptions:Ke,onActiveValue:Pt,defaultActiveFirstOption:Dt,onSelect:sn,menuItemSelectedIcon:A,rawValues:Le,fieldNames:K,virtual:dt,direction:R,listHeight:P,listItemHeight:$,childrenAsData:q,maxCount:B,optionRender:w})},[B,ue,Ke,Pt,Dt,sn,A,Le,K,I,g,R,P,$,q,w]);return b.createElement(vde.Provider,{value:tt},b.createElement(Q9t,Xe({},k,{id:F,prefixCls:a,ref:t,omitDomProps:R7t,mode:r,displayValues:Pe,onDisplayValuesChange:Jt,direction:R,searchValue:ae,onSearch:Vt,autoClearSearchValue:f,onSearchSplit:pt,dropdownMatchSelectWidth:g,OptionList:y7t,emptyOptions:!Ke.length,activeValue:it,activeDescendantId:"".concat(F,"_list_").concat(tn)})))}),_de=O7t;_de.Option=bde;_de.OptGroup=yde;function o0(e,t,n){return Oe({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const SC=(e,t)=>t||e,L7t=()=>{const[,e]=nl(),n=new ti(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return b.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},b.createElement("title",null,"empty image"),b.createElement("g",{fill:"none",fillRule:"evenodd"},b.createElement("g",{transform:"translate(24 31.67)"},b.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),b.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),b.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),b.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),b.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),b.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),b.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},b.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),b.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},P7t=()=>{const[,e]=nl(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:i}=e,{borderColor:a,shadowColor:o,contentColor:s}=b.useMemo(()=>({borderColor:new ti(t).onBackground(i).toHexShortString(),shadowColor:new ti(n).onBackground(i).toHexShortString(),contentColor:new ti(r).onBackground(i).toHexShortString()}),[t,n,r,i]);return b.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},b.createElement("title",null,"Simple Empty"),b.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},b.createElement("ellipse",{fill:o,cx:"32",cy:"33",rx:"32",ry:"7"}),b.createElement("g",{fillRule:"nonzero",stroke:a},b.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),b.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:s}))))},k7t=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:i,fontSize:a,lineHeight:o}=e;return{[t]:{marginInline:r,fontSize:a,lineHeight:o,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:i,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},M7t=Kr("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,i=br(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[k7t(i)]});var D7t=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Cze=b.createElement(L7t,null),wze=b.createElement(P7t,null),Fo=e=>{var{className:t,rootClassName:n,prefixCls:r,image:i=Cze,description:a,children:o,imageStyle:s,style:l}=e,c=D7t(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:u,direction:d,empty:f}=b.useContext(Sn),p=u("empty",r),[h,m,g]=M7t(p),[v]=Dd("Empty"),y=typeof a<"u"?a:v?.description,_=typeof y=="string"?y:"empty";let S=null;return typeof i=="string"?S=b.createElement("img",{alt:_,src:i}):S=i,h(b.createElement("div",Object.assign({className:Oe(m,g,p,f?.className,{[`${p}-normal`]:i===wze,[`${p}-rtl`]:d==="rtl"},t,n),style:Object.assign(Object.assign({},f?.style),l)},c),b.createElement("div",{className:`${p}-image`,style:s},S),y&&b.createElement("div",{className:`${p}-description`},y),o&&b.createElement("div",{className:`${p}-footer`},o)))};Fo.PRESENTED_IMAGE_DEFAULT=Cze;Fo.PRESENTED_IMAGE_SIMPLE=wze;const Sde=e=>{const{componentName:t}=e,{getPrefixCls:n}=b.useContext(Sn),r=n("empty");switch(t){case"Table":case"List":return se.createElement(Fo,{image:Fo.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return se.createElement(Fo,{image:Fo.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return se.createElement(Fo,null)}},mT=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r,i;const{variant:a,[e]:o}=b.useContext(Sn),s=b.useContext(Bje),l=o?.variant;let c;typeof t<"u"?c=t:n===!1?c="borderless":c=(i=(r=s??l)!==null&&r!==void 0?r:a)!==null&&i!==void 0?i:"outlined";const u=C6t.includes(c);return[c,u]},$7t=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function F7t(e,t){return e||$7t(t)}const R2e=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:i}=e;return{position:"relative",display:"block",minHeight:t,padding:i,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},B7t=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,i=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,o=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},Wr(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`
          ${i}${s}bottomLeft,
          ${a}${s}bottomLeft
        `]:{animationName:lz},[`
          ${i}${s}topLeft,
          ${a}${s}topLeft,
          ${i}${s}topRight,
          ${a}${s}topRight
        `]:{animationName:uz},[`${o}${s}bottomLeft`]:{animationName:cz},[`
          ${o}${s}topLeft,
          ${o}${s}topRight
        `]:{animationName:dz},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},R2e(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},Pp),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary},[`&:has(+ ${r}-option-selected:not(${r}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${r}-option-selected:not(${r}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},R2e(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},ev(e,"slide-up"),ev(e,"slide-down"),x3(e,"move-up"),x3(e,"move-down")]},xze=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:i}=e,a=e.max(e.calc(n).sub(r).equal(),0),o=e.max(e.calc(a).sub(i).equal(),0);return{basePadding:a,containerPadding:o,itemHeight:Ce(t),itemLineHeight:Ce(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},j7t=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},Tze=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:i,paddingXS:a,multipleItemColorDisabled:o,multipleItemBorderColorDisabled:s,colorIcon:l,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:u}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:u,borderRadius:r,cursor:"default",transition:`font-size ${i}, line-height ${i}, height ${i}`,marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:a,paddingInlineEnd:e.calc(a).div(2).equal(),[`${t}-disabled&`]:{color:o,borderColor:s,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(a).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},lT()),{display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},z7t=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,i=`${n}-selection-overflow`,a=e.multipleSelectItemHeight,o=j7t(e),s=t?`${n}-${t}`:"",l=xze(e);return{[`${n}-multiple${s}`]:Object.assign(Object.assign({},Tze(e)),{[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:l.basePadding,paddingBlock:l.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Ce(r)} 0`,lineHeight:Ce(a),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:l.itemHeight,lineHeight:Ce(l.itemLineHeight)},[`${i}-item + ${i}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${i}-item-suffix`]:{height:"100%"},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(o).equal(),"\n          &-input,\n          &-mirror\n        ":{height:a,fontFamily:e.fontFamily,lineHeight:Ce(a),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function eq(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",i={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`
        &${n}-show-arrow ${n}-selector,
        &${n}-allow-clear ${n}-selector
      `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[z7t(e,t),i]}const U7t=e=>{const{componentCls:t}=e,n=br(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=br(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[eq(e),eq(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},eq(r,"lg")]};function tq(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:i}=e,a=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),o=t?`${n}-${t}`:"";return{[`${n}-single${o}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},Wr(e,!0)),{display:"flex",borderRadius:i,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
          ${n}-selection-item,
          ${n}-selection-placeholder
        `]:{padding:0,lineHeight:Ce(a),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
        &${n}-show-arrow ${n}-selection-item,
        &${n}-show-arrow ${n}-selection-placeholder
      `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${Ce(r)}`,[`${n}-selection-search-input`]:{height:a},"&:after":{lineHeight:Ce(a)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Ce(r)}`,"&:after":{display:"none"}}}}}}}function H7t(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[tq(e),tq(br(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${Ce(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
            &${t}-show-arrow ${t}-selection-item,
            &${t}-show-arrow ${t}-selection-placeholder
          `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},tq(br(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const V7t=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:i,controlHeightSM:a,controlHeightLG:o,paddingXXS:s,controlPaddingHorizontal:l,zIndexPopupBase:c,colorText:u,fontWeightStrong:d,controlItemBgActive:f,controlItemBgHover:p,colorBgContainer:h,colorFillSecondary:m,colorBgContainerDisabled:g,colorTextDisabled:v}=e,y=s*2,_=r*2,S=Math.min(i-y,i-_),C=Math.min(a-y,a-_),w=Math.min(o-y,o-_);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:c+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:f,optionActiveBg:p,optionPadding:`${(i-t*n)/2}px ${l}px`,optionFontSize:t,optionLineHeight:n,optionHeight:i,selectorBg:h,clearBg:h,singleItemHeightLG:o,multipleItemBg:m,multipleItemBorderColor:"transparent",multipleItemHeight:S,multipleItemHeightSM:C,multipleItemHeightLG:w,multipleSelectorBgDisabled:g,multipleItemColorDisabled:v,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25)}},Ize=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:i}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${Ce(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${Ce(i)} ${t.activeShadowColor}`,outline:0}}}},N2e=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Ize(e,t))}),G7t=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Ize(e,{borderColor:e.colorBorder,hoverBorderHover:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadowColor:e.controlOutline})),N2e(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeShadowColor:e.colorErrorOutline})),N2e(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeShadowColor:e.colorWarningOutline})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Ce(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),Aze=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${Ce(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},O2e=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Aze(e,t))}),q7t=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},Aze(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary,color:e.colorText})),O2e(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),O2e(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${Ce(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),W7t=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",borderColor:"transparent"},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Ce(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),Y7t=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},G7t(e)),q7t(e)),W7t(e))}),K7t=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},X7t=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},Z7t=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:i}=e;return{[n]:Object.assign(Object.assign({},Wr(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},K7t(e)),X7t(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Pp),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Pp),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},lT()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[i]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${n}-clear`]:{opacity:1},[`${n}-arrow:not(:last-child)`]:{opacity:0}}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}},Q7t=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},Z7t(e),H7t(e),U7t(e),B7t(e),{[`${t}-rtl`]:{direction:"rtl"}},vO(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},J7t=Kr("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=br(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Q7t(r),Y7t(r)]},V7t,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});function Rze(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:i,loading:a,multiple:o,hasFeedback:s,prefixCls:l,showSuffixIcon:c,feedbackIcon:u,showArrow:d,componentName:f}=e;const p=n??b.createElement(fv,null),h=y=>t===null&&!s&&!d?null:b.createElement(b.Fragment,null,c!==!1&&y,s&&u);let m=null;if(t!==void 0)m=h(t);else if(a)m=h(b.createElement(Np,{spin:!0}));else{const y=`${l}-suffix`;m=_=>{let{open:S,showSearch:C}=_;return h(S&&C?b.createElement(bj,{className:y}):b.createElement(pv,{className:y}))}}let g=null;r!==void 0?g=r:o?g=b.createElement(IE,null):g=null;let v=null;return i!==void 0?v=i:v=b.createElement(Ic,null),{clearIcon:p,suffixIcon:m,itemIcon:g,removeIcon:v}}function eMt(e,t){return t!==void 0?t:e!==null}var tMt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Nze="SECRET_COMBOBOX_MODE_DO_NOT_USE",nMt=(e,t)=>{var n;const{prefixCls:r,bordered:i,className:a,rootClassName:o,getPopupContainer:s,popupClassName:l,dropdownClassName:c,listHeight:u=256,placement:d,listItemHeight:f,size:p,disabled:h,notFoundContent:m,status:g,builtinPlacements:v,dropdownMatchSelectWidth:y,popupMatchSelectWidth:_,direction:S,style:C,allowClear:w,variant:x,dropdownStyle:T,transitionName:A,tagRender:I,maxCount:R}=e,N=tMt(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount"]),{getPopupContainer:P,getPrefixCls:L,renderEmpty:$,direction:D,virtual:z,popupMatchSelectWidth:U,popupOverflow:H,select:M}=b.useContext(Sn),[,B]=nl(),k=f??B?.controlHeight,F=L("select",r),G=L(),q=S??D,{compactSize:W,compactItemClassnames:K}=x_(F,q),[J,te]=mT("select",x,i),ae=Ja(F),[re,ue,de]=J7t(F,ae),fe=b.useMemo(()=>{const{mode:it}=e;if(it!=="combobox")return it===Nze?"combobox":it},[e.mode]),ge=fe==="multiple"||fe==="tags",oe=eMt(e.suffixIcon,e.showArrow),Ee=(n=_??y)!==null&&n!==void 0?n:U,{status:ce,hasFeedback:he,isFormItemInput:ye,feedbackIcon:me}=b.useContext(Ol),_e=SC(ce,g);let Te;m!==void 0?Te=m:fe==="combobox"?Te=null:Te=$?.("Select")||b.createElement(Sde,{componentName:"Select"});const{suffixIcon:xe,itemIcon:De,removeIcon:Pe,clearIcon:Le}=Rze(Object.assign(Object.assign({},N),{multiple:ge,hasFeedback:he,feedbackIcon:me,showSuffixIcon:oe,prefixCls:F,componentName:"Select"})),ze=w===!0?{clearIcon:Le}:w,Be=Xa(N,["suffixIcon","itemIcon"]),je=Oe(l||c,{[`${F}-dropdown-${q}`]:q==="rtl"},o,de,ae,ue),Ye=ks(it=>{var yt;return(yt=p??W)!==null&&yt!==void 0?yt:it}),Ze=b.useContext(wc),Ke=h??Ze,qe=Oe({[`${F}-lg`]:Ye==="large",[`${F}-sm`]:Ye==="small",[`${F}-rtl`]:q==="rtl",[`${F}-${J}`]:te,[`${F}-in-form-item`]:ye},o0(F,_e,he),K,M?.className,a,o,de,ae,ue),nt=b.useMemo(()=>d!==void 0?d:q==="rtl"?"bottomRight":"bottomLeft",[d,q]),[Qe]=Em("SelectLike",T?.zIndex);return re(b.createElement(_de,Object.assign({ref:t,virtual:z,showSearch:M?.showSearch},Be,{style:Object.assign(Object.assign({},M?.style),C),dropdownMatchSelectWidth:Ee,transitionName:Ad(G,"slide-up",A),builtinPlacements:F7t(v,H),listHeight:u,listItemHeight:k,mode:fe,prefixCls:F,placement:nt,direction:q,suffixIcon:xe,menuItemSelectedIcon:De,removeIcon:Pe,allowClear:ze,notFoundContent:Te,className:qe,getPopupContainer:s||P,dropdownClassName:je,disabled:Ke,dropdownStyle:Object.assign(Object.assign({},T),{zIndex:Qe}),maxCount:ge?R:void 0,tagRender:ge?I:void 0})))},Zi=b.forwardRef(nMt),rMt=EO(Zi);Zi.SECRET_COMBOBOX_MODE_DO_NOT_USE=Nze;Zi.Option=bde;Zi.OptGroup=yde;Zi._InternalPanelDoNotUseOrYouWillBeFired=rMt;const e_=["xxl","xl","lg","md","sm","xs"],iMt=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),aMt=e=>{const t=e,n=[].concat(e_).reverse();return n.forEach((r,i)=>{const a=r.toUpperCase(),o=`screen${a}Min`,s=`screen${a}`;if(!(t[o]<=t[s]))throw new Error(`${o}<=${s} fails : !(${t[o]}<=${t[s]})`);if(i<n.length-1){const l=`screen${a}Max`;if(!(t[s]<=t[l]))throw new Error(`${s}<=${l} fails : !(${t[s]}<=${t[l]})`);const u=`screen${n[i+1].toUpperCase()}Min`;if(!(t[l]<=t[u]))throw new Error(`${l}<=${u} fails : !(${t[l]}<=${t[u]})`)}}),e};function Oze(){const[,e]=nl(),t=iMt(aMt(e));return se.useMemo(()=>{const n=new Map;let r=-1,i={};return{matchHandlers:{},dispatch(a){return i=a,n.forEach(o=>o(i)),n.size>=1},subscribe(a){return n.size||this.register(),r+=1,n.set(r,a),a(i),r},unsubscribe(a){n.delete(a),n.size||this.unregister()},unregister(){Object.keys(t).forEach(a=>{const o=t[a],s=this.matchHandlers[o];s?.mql.removeListener(s?.listener)}),n.clear()},register(){Object.keys(t).forEach(a=>{const o=t[a],s=c=>{let{matches:u}=c;this.dispatch(Object.assign(Object.assign({},i),{[a]:u}))},l=window.matchMedia(o);l.addListener(s),this.matchHandlers[o]={mql:l,listener:s},s(l)})},responsiveMap:t}},[e])}function Ede(){const[,e]=b.useReducer(t=>t+1,0);return e}function wO(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=b.useRef({}),n=Ede(),r=Oze();return kr(()=>{const i=r.subscribe(a=>{t.current=a,e&&n()});return()=>r.unsubscribe(i)},[]),t.current}const sie=b.createContext({}),oMt=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:i,avatarColor:a,containerSize:o,containerSizeLG:s,containerSizeSM:l,textFontSize:c,textFontSizeLG:u,textFontSizeSM:d,borderRadius:f,borderRadiusLG:p,borderRadiusSM:h,lineWidth:m,lineType:g}=e,v=(y,_,S)=>({width:y,height:y,borderRadius:"50%",[`&${n}-square`]:{borderRadius:S},[`&${n}-icon`]:{fontSize:_,[`> ${r}`]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},Wr(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:a,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:i,border:`${Ce(m)} ${g} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),v(o,c,f)),{"&-lg":Object.assign({},v(s,u,p)),"&-sm":Object.assign({},v(l,d,h)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},sMt=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:i}=e;return{[`${t}-group`]:{display:"inline-flex",[`${t}`]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:i}}}},lMt=e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:i,fontSizeLG:a,fontSizeXL:o,fontSizeHeading3:s,marginXS:l,marginXXS:c,colorBorderBg:u}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:Math.round((a+o)/2),textFontSizeLG:s,textFontSizeSM:i,groupSpace:c,groupOverlapping:-l,groupBorderColor:u}},Lze=Kr("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=br(e,{avatarBg:n,avatarColor:t});return[oMt(r),sMt(r)]},lMt);var cMt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const uMt=(e,t)=>{const[n,r]=b.useState(1),[i,a]=b.useState(!1),[o,s]=b.useState(!0),l=b.useRef(null),c=b.useRef(null),u=Ll(t,l),{getPrefixCls:d,avatar:f}=b.useContext(Sn),p=b.useContext(sie),h=()=>{if(!c.current||!l.current)return;const J=c.current.offsetWidth,te=l.current.offsetWidth;if(J!==0&&te!==0){const{gap:ae=4}=e;ae*2<te&&r(te-ae*2<J?(te-ae*2)/J:1)}};b.useEffect(()=>{a(!0)},[]),b.useEffect(()=>{s(!0),r(1)},[e.src]),b.useEffect(h,[e.gap]);const m=()=>{const{onError:J}=e;J?.()!==!1&&s(!1)},{prefixCls:g,shape:v,size:y,src:_,srcSet:S,icon:C,className:w,rootClassName:x,alt:T,draggable:A,children:I,crossOrigin:R}=e,N=cMt(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),P=ks(J=>{var te,ae;return(ae=(te=y??p?.size)!==null&&te!==void 0?te:J)!==null&&ae!==void 0?ae:"default"}),L=Object.keys(typeof P=="object"?P||{}:{}).some(J=>["xs","sm","md","lg","xl","xxl"].includes(J)),$=wO(L),D=b.useMemo(()=>{if(typeof P!="object")return{};const J=e_.find(ae=>$[ae]),te=P[J];return te?{width:te,height:te,fontSize:te&&(C||I)?te/2:18}:{}},[$,P]),z=d("avatar",g),U=Ja(z),[H,M,B]=Lze(z,U),k=Oe({[`${z}-lg`]:P==="large",[`${z}-sm`]:P==="small"}),F=b.isValidElement(_),G=v||p?.shape||"circle",q=Oe(z,k,f?.className,`${z}-${G}`,{[`${z}-image`]:F||_&&o,[`${z}-icon`]:!!C},B,U,w,x,M),W=typeof P=="number"?{width:P,height:P,fontSize:C?P/2:18}:{};let K;if(typeof _=="string"&&o)K=b.createElement("img",{src:_,draggable:A,srcSet:S,onError:m,alt:T,crossOrigin:R});else if(F)K=_;else if(C)K=C;else if(i||n!==1){const J=`scale(${n})`,te={msTransform:J,WebkitTransform:J,transform:J};K=b.createElement(Sc,{onResize:h},b.createElement("span",{className:`${z}-string`,ref:c,style:Object.assign({},te)},I))}else K=b.createElement("span",{className:`${z}-string`,style:{opacity:0},ref:c},I);return delete N.onError,delete N.gap,H(b.createElement("span",Object.assign({},N,{style:Object.assign(Object.assign(Object.assign(Object.assign({},W),D),f?.style),N.style),className:q,ref:u}),K))},Pze=b.forwardRef(uMt),T3=e=>e?typeof e=="function"?e():e:null;function Cde(e){var t=e.children,n=e.prefixCls,r=e.id,i=e.overlayInnerStyle,a=e.className,o=e.style;return b.createElement("div",{className:Oe("".concat(n,"-content"),a),style:o},b.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:i},typeof t=="function"?t():t))}var _w={shiftX:64,adjustY:1},Sw={adjustX:1,shiftY:!0},Zf=[0,0],dMt={left:{points:["cr","cl"],overflow:Sw,offset:[-4,0],targetOffset:Zf},right:{points:["cl","cr"],overflow:Sw,offset:[4,0],targetOffset:Zf},top:{points:["bc","tc"],overflow:_w,offset:[0,-4],targetOffset:Zf},bottom:{points:["tc","bc"],overflow:_w,offset:[0,4],targetOffset:Zf},topLeft:{points:["bl","tl"],overflow:_w,offset:[0,-4],targetOffset:Zf},leftTop:{points:["tr","tl"],overflow:Sw,offset:[-4,0],targetOffset:Zf},topRight:{points:["br","tr"],overflow:_w,offset:[0,-4],targetOffset:Zf},rightTop:{points:["tl","tr"],overflow:Sw,offset:[4,0],targetOffset:Zf},bottomRight:{points:["tr","br"],overflow:_w,offset:[0,4],targetOffset:Zf},rightBottom:{points:["bl","br"],overflow:Sw,offset:[4,0],targetOffset:Zf},bottomLeft:{points:["tl","bl"],overflow:_w,offset:[0,4],targetOffset:Zf},leftBottom:{points:["br","bl"],overflow:Sw,offset:[-4,0],targetOffset:Zf}},fMt=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],pMt=function(t,n){var r=t.overlayClassName,i=t.trigger,a=i===void 0?["hover"]:i,o=t.mouseEnterDelay,s=o===void 0?0:o,l=t.mouseLeaveDelay,c=l===void 0?.1:l,u=t.overlayStyle,d=t.prefixCls,f=d===void 0?"rc-tooltip":d,p=t.children,h=t.onVisibleChange,m=t.afterVisibleChange,g=t.transitionName,v=t.animation,y=t.motion,_=t.placement,S=_===void 0?"right":_,C=t.align,w=C===void 0?{}:C,x=t.destroyTooltipOnHide,T=x===void 0?!1:x,A=t.defaultVisible,I=t.getTooltipContainer,R=t.overlayInnerStyle;t.arrowContent;var N=t.overlay,P=t.id,L=t.showArrow,$=L===void 0?!0:L,D=$n(t,fMt),z=b.useRef(null);b.useImperativeHandle(n,function(){return z.current});var U=we({},D);"visible"in t&&(U.popupVisible=t.visible);var H=function(){return b.createElement(Cde,{key:"content",prefixCls:f,id:P,overlayInnerStyle:R},N)};return b.createElement(hT,Xe({popupClassName:r,prefixCls:f,popup:H,action:a,builtinPlacements:dMt,popupPlacement:S,ref:z,popupAlign:w,getPopupContainer:I,onPopupVisibleChange:h,afterPopupVisibleChange:m,popupTransitionName:g,popupAnimation:v,popupMotion:y,defaultPopupVisible:A,autoDestroy:T,mouseLeaveDelay:c,popupStyle:u,mouseEnterDelay:s,arrow:$},U),p)};const hMt=b.forwardRef(pMt);function xO(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,i=t/2,a=0,o=i,s=r*1/Math.sqrt(2),l=i-r*(1-1/Math.sqrt(2)),c=i-n*(1/Math.sqrt(2)),u=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),d=2*i-c,f=u,p=2*i-s,h=l,m=2*i-a,g=o,v=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),y=r*(Math.sqrt(2)-1),_=`polygon(${y}px 100%, 50% ${y}px, ${2*i-y}px 100%, ${y}px 100%)`,S=`path('M ${a} ${o} A ${r} ${r} 0 0 0 ${s} ${l} L ${c} ${u} A ${n} ${n} 0 0 1 ${d} ${f} L ${p} ${h} A ${r} ${r} 0 0 0 ${m} ${g} Z')`;return{arrowShadowWidth:v,arrowPath:S,arrowPolygon:_}}const kze=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:i,arrowPath:a,arrowShadowWidth:o,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:l(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:o,height:o,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Ce(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},wde=8;function TO(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?wde:r}}function iP(e,t){return e?t:{}}function mz(e,t,n){const{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:a,arrowOffsetHorizontal:o}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},kze(e,t,i)),{"&:before":{background:t}})]},iP(!!l.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":o,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${Ce(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}}})),iP(!!l.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":o,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${Ce(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}}})),iP(!!l.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:a},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:a}})),iP(!!l.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:a},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:a}}))}}function mMt(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const i=r&&typeof r=="object"?r:{},a={};switch(e){case"top":case"bottom":a.shiftX=t.arrowOffsetHorizontal*2+n,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=t.arrowOffsetVertical*2+n,a.shiftX=!0,a.adjustX=!0;break}const o=Object.assign(Object.assign({},a),i);return o.shiftX||(o.adjustX=!0),o.shiftY||(o.adjustY=!0),o}const L2e={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},gMt={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},vMt=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function xde(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:a,visibleFirst:o}=e,s=t/2,l={};return Object.keys(L2e).forEach(c=>{const u=r&&gMt[c]||L2e[c],d=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(l[c]=d,vMt.has(c)&&(d.autoArrow=!1),c){case"top":case"topLeft":case"topRight":d.offset[1]=-s-i;break;case"bottom":case"bottomLeft":case"bottomRight":d.offset[1]=s+i;break;case"left":case"leftTop":case"leftBottom":d.offset[0]=-s-i;break;case"right":case"rightTop":case"rightBottom":d.offset[0]=s+i;break}const f=TO({contentRadius:a,limitVerticalRadius:!0});if(r)switch(c){case"topLeft":case"bottomLeft":d.offset[0]=-f.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":d.offset[0]=f.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":d.offset[1]=-f.arrowOffsetHorizontal-s;break;case"leftBottom":case"rightBottom":d.offset[1]=f.arrowOffsetHorizontal+s;break}d.overflow=mMt(c,f,t,n),o&&(d.htmlRegion="visibleFirst")}),l}const yMt=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:i,tooltipBorderRadius:a,zIndexPopup:o,controlHeight:s,boxShadowSecondary:l,paddingSM:c,paddingXS:u}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Wr(e)),{position:"absolute",zIndex:o,display:"block",width:"max-content",maxWidth:n,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${t}-inner`]:{minWidth:"1em",minHeight:s,padding:`${Ce(e.calc(c).div(2).equal())} ${Ce(u)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:a,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(a,wde)}},[`${t}-content`]:{position:"relative"}}),Jj(e,(d,f)=>{let{darkColor:p}=f;return{[`&${t}-${d}`]:{[`${t}-inner`]:{backgroundColor:p},[`${t}-arrow`]:{"--antd-arrow-background-color":p}}}})),{"&-rtl":{direction:"rtl"}})},mz(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},bMt=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},TO({contentRadius:e.borderRadius,limitVerticalRadius:!0})),xO(br(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Mze=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Kr("Tooltip",r=>{const{borderRadius:i,colorTextLightSolid:a,colorBgSpotlight:o}=r,s=br(r,{tooltipMaxWidth:250,tooltipColor:a,tooltipBorderRadius:i,tooltipBg:o});return[yMt(s),pT(r,"zoom-big-fast")]},bMt,{resetStyle:!1,injectStyle:t})(e)},_Mt=PN.map(e=>`${e}-inverse`),SMt=["success","processing","error","default","warning"];function gz(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Tt(_Mt),Tt(PN)).includes(e):PN.includes(e)}function EMt(e){return SMt.includes(e)}function Dze(e,t){const n=gz(t),r=Oe({[`${e}-${t}`]:t&&n}),i={},a={};return t&&!n&&(i.background=t,a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:i,arrowStyle:a}}const CMt=e=>{const{prefixCls:t,className:n,placement:r="top",title:i,color:a,overlayInnerStyle:o}=e,{getPrefixCls:s}=b.useContext(Sn),l=s("tooltip",t),[c,u,d]=Mze(l),f=Dze(l,a),p=f.arrowStyle,h=Object.assign(Object.assign({},o),f.overlayStyle),m=Oe(u,d,l,`${l}-pure`,`${l}-placement-${r}`,n,f.className);return c(b.createElement("div",{className:m,style:p},b.createElement("div",{className:`${l}-arrow`}),b.createElement(Cde,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:h}),i)))};var wMt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const xMt=b.forwardRef((e,t)=>{var n,r;const{prefixCls:i,openClassName:a,getTooltipContainer:o,overlayClassName:s,color:l,overlayInnerStyle:c,children:u,afterOpenChange:d,afterVisibleChange:f,destroyTooltipOnHide:p,arrow:h=!0,title:m,overlay:g,builtinPlacements:v,arrowPointAtCenter:y=!1,autoAdjustOverflow:_=!0}=e,S=!!h,[,C]=nl(),{getPopupContainer:w,getPrefixCls:x,direction:T}=b.useContext(Sn),A=g0(),I=b.useRef(null),R=()=>{var Te;(Te=I.current)===null||Te===void 0||Te.forceAlign()};b.useImperativeHandle(t,()=>{var Te;return{forceAlign:R,forcePopupAlign:()=>{A.deprecated(!1,"forcePopupAlign","forceAlign"),R()},nativeElement:(Te=I.current)===null||Te===void 0?void 0:Te.nativeElement}});const[N,P]=qr(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),L=!m&&!g&&m!==0,$=Te=>{var xe,De;P(L?!1:Te),L||((xe=e.onOpenChange)===null||xe===void 0||xe.call(e,Te),(De=e.onVisibleChange)===null||De===void 0||De.call(e,Te))},D=b.useMemo(()=>{var Te,xe;let De=y;return typeof h=="object"&&(De=(xe=(Te=h.pointAtCenter)!==null&&Te!==void 0?Te:h.arrowPointAtCenter)!==null&&xe!==void 0?xe:y),v||xde({arrowPointAtCenter:De,autoAdjustOverflow:_,arrowWidth:S?C.sizePopupArrow:0,borderRadius:C.borderRadius,offset:C.marginXXS,visibleFirst:!0})},[y,h,v,C]),z=b.useMemo(()=>m===0?m:g||m||"",[g,m]),U=b.createElement(lm,{space:!0},typeof z=="function"?z():z),{getPopupContainer:H,placement:M="top",mouseEnterDelay:B=.1,mouseLeaveDelay:k=.1,overlayStyle:F,rootClassName:G}=e,q=wMt(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),W=x("tooltip",i),K=x(),J=e["data-popover-inject"];let te=N;!("open"in e)&&!("visible"in e)&&L&&(te=!1);const ae=b.isValidElement(u)&&!oje(u)?u:b.createElement("span",null,u),re=ae.props,ue=!re.className||typeof re.className=="string"?Oe(re.className,a||`${W}-open`):re.className,[de,fe,ge]=Mze(W,!J),oe=Dze(W,l),Ee=oe.arrowStyle,ce=Object.assign(Object.assign({},c),oe.overlayStyle),he=Oe(s,{[`${W}-rtl`]:T==="rtl"},oe.className,G,fe,ge),[ye,me]=Em("Tooltip",q.zIndex),_e=b.createElement(hMt,Object.assign({},q,{zIndex:ye,showArrow:S,placement:M,mouseEnterDelay:B,mouseLeaveDelay:k,prefixCls:W,overlayClassName:he,overlayStyle:Object.assign(Object.assign({},Ee),F),getTooltipContainer:H||o||w,ref:I,builtinPlacements:D,overlay:U,visible:te,onVisibleChange:$,afterVisibleChange:d??f,overlayInnerStyle:ce,arrowContent:b.createElement("span",{className:`${W}-arrow-content`}),motion:{motionName:Ad(K,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!p}),te?as(ae,{className:ue}):ae);return de(b.createElement(cT.Provider,{value:me},_e))}),vr=xMt;vr._InternalPanelDoNotUseOrYouWillBeFired=CMt;const TMt=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:i,innerPadding:a,boxShadowSecondary:o,colorTextHeading:s,borderRadiusLG:l,zIndexPopup:c,titleMarginBottom:u,colorBgElevated:d,popoverBg:f,titleBorderBottom:p,innerContentPadding:h,titlePadding:m}=e;return[{[t]:Object.assign(Object.assign({},Wr(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":d,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:f,backgroundClip:"padding-box",borderRadius:l,boxShadow:o,padding:a},[`${t}-title`]:{minWidth:r,marginBottom:u,color:s,fontWeight:i,borderBottom:p,padding:m},[`${t}-inner-content`]:{color:n,padding:h}})},mz(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},IMt=e=>{const{componentCls:t}=e;return{[t]:PN.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},AMt=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:i,wireframe:a,zIndexPopupBase:o,borderRadiusLG:s,marginXS:l,lineType:c,colorSplit:u,paddingSM:d}=e,f=n-r,p=f/2,h=f/2-t,m=i;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:o+30},xO(e)),TO({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:a?0:12,titleMarginBottom:a?0:l,titlePadding:a?`${p}px ${m}px ${h}px`:0,titleBorderBottom:a?`${t}px ${c} ${u}`:"none",innerContentPadding:a?`${d}px ${m}px`:0})},$ze=Kr("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=br(e,{popoverBg:t,popoverColor:n});return[TMt(r),IMt(r),pT(r,"zoom-big")]},AMt,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var RMt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Fze=e=>{let{title:t,content:n,prefixCls:r}=e;return!t&&!n?null:b.createElement(b.Fragment,null,t&&b.createElement("div",{className:`${r}-title`},t),n&&b.createElement("div",{className:`${r}-inner-content`},n))},Bze=e=>{const{hashId:t,prefixCls:n,className:r,style:i,placement:a="top",title:o,content:s,children:l}=e,c=T3(o),u=T3(s),d=Oe(t,n,`${n}-pure`,`${n}-placement-${a}`,r);return b.createElement("div",{className:d,style:i},b.createElement("div",{className:`${n}-arrow`}),b.createElement(Cde,Object.assign({},e,{className:t,prefixCls:n}),l||b.createElement(Fze,{prefixCls:n,title:c,content:u})))},jze=e=>{const{prefixCls:t,className:n}=e,r=RMt(e,["prefixCls","className"]),{getPrefixCls:i}=b.useContext(Sn),a=i("popover",t),[o,s,l]=$ze(a);return o(b.createElement(Bze,Object.assign({},r,{prefixCls:a,hashId:s,className:Oe(n,l)})))};var NMt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const OMt=b.forwardRef((e,t)=>{var n,r;const{prefixCls:i,title:a,content:o,overlayClassName:s,placement:l="top",trigger:c="hover",children:u,mouseEnterDelay:d=.1,mouseLeaveDelay:f=.1,onOpenChange:p,overlayStyle:h={}}=e,m=NMt(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle"]),{getPrefixCls:g}=b.useContext(Sn),v=g("popover",i),[y,_,S]=$ze(v),C=g(),w=Oe(s,_,S),[x,T]=qr(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),A=(L,$)=>{T(L,!0),p?.(L,$)},I=L=>{L.keyCode===Bt.ESC&&A(!1,L)},R=L=>{A(L)},N=T3(a),P=T3(o);return y(b.createElement(vr,Object.assign({placement:l,trigger:c,mouseEnterDelay:d,mouseLeaveDelay:f,overlayStyle:h},m,{prefixCls:v,overlayClassName:w,ref:t,open:x,onOpenChange:R,overlay:N||P?b.createElement(Fze,{prefixCls:v,title:N,content:P}):null,transitionName:Ad(C,"zoom-big",m.transitionName),"data-popover-inject":!0}),as(u,{onKeyDown:L=>{var $,D;b.isValidElement(u)&&((D=u==null?void 0:($=u.props).onKeyDown)===null||D===void 0||D.call($,L)),I(L)}})))}),tv=OMt;tv._InternalPanelDoNotUseOrYouWillBeFired=jze;const P2e=e=>{const{size:t,shape:n}=b.useContext(sie),r=b.useMemo(()=>({size:e.size||t,shape:e.shape||n}),[e.size,e.shape,t,n]);return b.createElement(sie.Provider,{value:r},e.children)},LMt=e=>{var t,n,r;const{getPrefixCls:i,direction:a}=b.useContext(Sn),{prefixCls:o,className:s,rootClassName:l,style:c,maxCount:u,maxStyle:d,size:f,shape:p,maxPopoverPlacement:h,maxPopoverTrigger:m,children:g,max:v}=e,y=i("avatar",o),_=`${y}-group`,S=Ja(y),[C,w,x]=Lze(y,S),T=Oe(_,{[`${_}-rtl`]:a==="rtl"},x,S,s,l,w),A=_l(g).map((N,P)=>as(N,{key:`avatar-key-${P}`})),I=v?.count||u,R=A.length;if(I&&I<R){const N=A.slice(0,I),P=A.slice(I,R),L=v?.style||d,$=((t=v?.popover)===null||t===void 0?void 0:t.trigger)||m||"hover",D=((n=v?.popover)===null||n===void 0?void 0:n.placement)||h||"top",z=Object.assign(Object.assign({content:P},v?.popover),{overlayClassName:Oe(`${_}-popover`,(r=v?.popover)===null||r===void 0?void 0:r.overlayClassName),placement:D,trigger:$});return N.push(b.createElement(tv,Object.assign({key:"avatar-popover-key",destroyTooltipOnHide:!0},z),b.createElement(Pze,{style:L},`+${R-I}`))),C(b.createElement(P2e,{shape:p,size:f},b.createElement("div",{className:T,style:c},N)))}return C(b.createElement(P2e,{shape:p,size:f},b.createElement("div",{className:T,style:c},A)))},Mp=Pze;Mp.Group=LMt;const PMt=new Dr("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),kMt=new Dr("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),MMt=new Dr("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),DMt=new Dr("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),$Mt=new Dr("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),FMt=new Dr("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),BMt=e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:i,motionDurationSlow:a,textFontSize:o,textFontSizeSM:s,statusSize:l,dotSize:c,textFontWeight:u,indicatorHeight:d,indicatorHeightSM:f,marginXS:p,calc:h}=e,m=`${r}-scroll-number`,g=Jj(e,(v,y)=>{let{darkColor:_}=y;return{[`&${t} ${t}-color-${v}`]:{background:_,[`&:not(${t}-count)`]:{color:_},"a:hover &":{background:_}}}});return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Wr(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:d,height:d,color:e.badgeTextColor,fontWeight:u,fontSize:o,lineHeight:Ce(d),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:h(d).div(2).equal(),boxShadow:`0 0 0 ${Ce(i)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:f,height:f,fontSize:s,lineHeight:Ce(f),borderRadius:h(f).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${Ce(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:c,minWidth:c,height:c,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${Ce(i)} ${e.badgeShadowColor}`},[`${t}-dot${m}`]:{transition:`background ${a}`},[`${t}-count, ${t}-dot, ${m}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:FMt,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:l,height:l,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:i,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:PMt,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:p,color:e.colorText,fontSize:e.fontSize}}}),g),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:kMt,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:MMt,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:DMt,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:$Mt,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${m}-custom-component, ${t}-count`]:{transform:"none"},[`${m}-custom-component, ${m}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[`${m}`]:{overflow:"hidden",[`${m}-only`]:{position:"relative",display:"inline-block",height:d,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${m}-only-unit`]:{height:d,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${m}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${m}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},zze=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:i}=e,a=t,o=n,s=e.colorBgContainer,l=e.colorError,c=e.colorErrorHover;return br(e,{badgeFontHeight:a,badgeShadowSize:o,badgeTextColor:s,badgeColor:l,badgeColorHover:c,badgeShadowColor:i,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},Uze=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:i}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*i,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},jMt=Kr("Badge",e=>{const t=zze(e);return BMt(t)},Uze),zMt=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:i,calc:a}=e,o=`${t}-ribbon`,s=`${t}-ribbon-wrapper`,l=Jj(e,(c,u)=>{let{darkColor:d}=u;return{[`&${o}-color-${c}`]:{background:d,color:d}}});return{[`${s}`]:{position:"relative"},[`${o}`]:Object.assign(Object.assign(Object.assign(Object.assign({},Wr(e)),{position:"absolute",top:r,padding:`0 ${Ce(e.paddingXS)}`,color:e.colorPrimary,lineHeight:Ce(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${o}-text`]:{color:e.colorTextLightSolid},[`${o}-corner`]:{position:"absolute",top:"100%",width:i,height:i,color:"currentcolor",border:`${Ce(a(i).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),l),{[`&${o}-placement-end`]:{insetInlineEnd:a(i).mul(-1).equal(),borderEndEndRadius:0,[`${o}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${o}-placement-start`]:{insetInlineStart:a(i).mul(-1).equal(),borderEndStartRadius:0,[`${o}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},UMt=Kr(["Badge","Ribbon"],e=>{const t=zze(e);return zMt(t)},Uze),HMt=e=>{const{className:t,prefixCls:n,style:r,color:i,children:a,text:o,placement:s="end",rootClassName:l}=e,{getPrefixCls:c,direction:u}=b.useContext(Sn),d=c("ribbon",n),f=`${d}-wrapper`,[p,h,m]=UMt(d,f),g=gz(i,!1),v=Oe(d,`${d}-placement-${s}`,{[`${d}-rtl`]:u==="rtl",[`${d}-color-${i}`]:g},t),y={},_={};return i&&!g&&(y.background=i,_.color=i),p(b.createElement("div",{className:Oe(f,l,h,m)},a,b.createElement("div",{className:Oe(v,h),style:Object.assign(Object.assign({},y),r)},b.createElement("span",{className:`${d}-text`},o),b.createElement("div",{className:`${d}-corner`,style:_}))))},k2e=e=>{const{prefixCls:t,value:n,current:r,offset:i=0}=e;let a;return i&&(a={position:"absolute",top:`${i}00%`,left:0}),b.createElement("span",{style:a,className:Oe(`${t}-only-unit`,{current:r})},n)};function VMt(e,t,n){let r=e,i=0;for(;(r+10)%10!==t;)r+=n,i+=n;return i}const GMt=e=>{const{prefixCls:t,count:n,value:r}=e,i=Number(r),a=Math.abs(n),[o,s]=b.useState(i),[l,c]=b.useState(a),u=()=>{s(i),c(a)};b.useEffect(()=>{const p=setTimeout(u,1e3);return()=>clearTimeout(p)},[i]);let d,f;if(o===i||Number.isNaN(i)||Number.isNaN(o))d=[b.createElement(k2e,Object.assign({},e,{key:i,current:!0}))],f={transition:"none"};else{d=[];const p=i+10,h=[];for(let v=i;v<=p;v+=1)h.push(v);const m=h.findIndex(v=>v%10===o);d=h.map((v,y)=>{const _=v%10;return b.createElement(k2e,Object.assign({},e,{key:v,value:_,offset:y-m,current:y===m}))});const g=l<a?1:-1;f={transform:`translateY(${-VMt(o,i,g)}00%)`}}return b.createElement("span",{className:`${t}-only`,style:f,onTransitionEnd:u},d)};var qMt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const WMt=b.forwardRef((e,t)=>{const{prefixCls:n,count:r,className:i,motionClassName:a,style:o,title:s,show:l,component:c="sup",children:u}=e,d=qMt(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:f}=b.useContext(Sn),p=f("scroll-number",n),h=Object.assign(Object.assign({},d),{"data-show":l,style:o,className:Oe(p,i,a),title:s});let m=r;if(r&&Number(r)%1===0){const g=String(r).split("");m=b.createElement("bdi",null,g.map((v,y)=>b.createElement(GMt,{prefixCls:p,count:Number(r),value:v,key:g.length-y})))}return o?.borderColor&&(h.style=Object.assign(Object.assign({},o),{boxShadow:`0 0 0 1px ${o.borderColor} inset`})),u?as(u,g=>({className:Oe(`${p}-custom-component`,g?.className,a)})):b.createElement(c,Object.assign({},h,{ref:t}),m)});var YMt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const KMt=b.forwardRef((e,t)=>{var n,r,i,a,o;const{prefixCls:s,scrollNumberPrefixCls:l,children:c,status:u,text:d,color:f,count:p=null,overflowCount:h=99,dot:m=!1,size:g="default",title:v,offset:y,style:_,className:S,rootClassName:C,classNames:w,styles:x,showZero:T=!1}=e,A=YMt(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:I,direction:R,badge:N}=b.useContext(Sn),P=I("badge",s),[L,$,D]=jMt(P),z=p>h?`${h}+`:p,U=z==="0"||z===0,H=p===null||U&&!T,M=(u!=null||f!=null)&&H,B=m&&!U,k=B?"":z,F=b.useMemo(()=>(k==null||k===""||U&&!T)&&!B,[k,U,T,B]),G=b.useRef(p);F||(G.current=p);const q=G.current,W=b.useRef(k);F||(W.current=k);const K=W.current,J=b.useRef(B);F||(J.current=B);const te=b.useMemo(()=>{if(!y)return Object.assign(Object.assign({},N?.style),_);const Ee={marginTop:y[1]};return R==="rtl"?Ee.left=parseInt(y[0],10):Ee.right=-parseInt(y[0],10),Object.assign(Object.assign(Object.assign({},Ee),N?.style),_)},[R,y,_,N?.style]),ae=v??(typeof q=="string"||typeof q=="number"?q:void 0),re=F||!d?null:b.createElement("span",{className:`${P}-status-text`},d),ue=!q||typeof q!="object"?void 0:as(q,Ee=>({style:Object.assign(Object.assign({},te),Ee.style)})),de=gz(f,!1),fe=Oe(w?.indicator,(n=N?.classNames)===null||n===void 0?void 0:n.indicator,{[`${P}-status-dot`]:M,[`${P}-status-${u}`]:!!u,[`${P}-color-${f}`]:de}),ge={};f&&!de&&(ge.color=f,ge.background=f);const oe=Oe(P,{[`${P}-status`]:M,[`${P}-not-a-wrapper`]:!c,[`${P}-rtl`]:R==="rtl"},S,C,N?.className,(r=N?.classNames)===null||r===void 0?void 0:r.root,w?.root,$,D);if(!c&&M){const Ee=te.color;return L(b.createElement("span",Object.assign({},A,{className:oe,style:Object.assign(Object.assign(Object.assign({},x?.root),(i=N?.styles)===null||i===void 0?void 0:i.root),te)}),b.createElement("span",{className:fe,style:Object.assign(Object.assign(Object.assign({},x?.indicator),(a=N?.styles)===null||a===void 0?void 0:a.indicator),ge)}),d&&b.createElement("span",{style:{color:Ee},className:`${P}-status-text`},d)))}return L(b.createElement("span",Object.assign({ref:t},A,{className:oe,style:Object.assign(Object.assign({},(o=N?.styles)===null||o===void 0?void 0:o.root),x?.root)}),c,b.createElement(Sl,{visible:!F,motionName:`${P}-zoom`,motionAppear:!1,motionDeadline:1e3},Ee=>{let{className:ce}=Ee;var he,ye;const me=I("scroll-number",l),_e=J.current,Te=Oe(w?.indicator,(he=N?.classNames)===null||he===void 0?void 0:he.indicator,{[`${P}-dot`]:_e,[`${P}-count`]:!_e,[`${P}-count-sm`]:g==="small",[`${P}-multiple-words`]:!_e&&K&&K.toString().length>1,[`${P}-status-${u}`]:!!u,[`${P}-color-${f}`]:de});let xe=Object.assign(Object.assign(Object.assign({},x?.indicator),(ye=N?.styles)===null||ye===void 0?void 0:ye.indicator),te);return f&&!de&&(xe=xe||{},xe.background=f),b.createElement(WMt,{prefixCls:me,show:!F,motionClassName:ce,className:Te,count:K,title:ae,style:xe,key:"scrollNumber"},ue)}),re))}),EC=KMt;EC.Ribbon=HMt;var XMt=Bt.ESC,ZMt=Bt.TAB;function QMt(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,i=e.autoFocus,a=e.overlayRef,o=b.useRef(!1),s=function(){if(t){var d,f;(d=n.current)===null||d===void 0||(f=d.focus)===null||f===void 0||f.call(d),r?.(!1)}},l=function(){var d;return(d=a.current)!==null&&d!==void 0&&d.focus?(a.current.focus(),o.current=!0,!0):!1},c=function(d){switch(d.keyCode){case XMt:s();break;case ZMt:{var f=!1;o.current||(f=l()),f?d.preventDefault():s();break}}};b.useEffect(function(){return t?(window.addEventListener("keydown",c),i&&Tr(l,3),function(){window.removeEventListener("keydown",c),o.current=!1}):function(){o.current=!1}},[t])}var JMt=b.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,i=e.prefixCls,a=b.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),o=Ll(t,a?.ref);return se.createElement(se.Fragment,null,r&&se.createElement("div",{className:"".concat(i,"-arrow")}),se.cloneElement(a,{ref:sm(a)?o:void 0}))}),Ew={adjustX:1,adjustY:1},Cw=[0,0],eDt={topLeft:{points:["bl","tl"],overflow:Ew,offset:[0,-4],targetOffset:Cw},top:{points:["bc","tc"],overflow:Ew,offset:[0,-4],targetOffset:Cw},topRight:{points:["br","tr"],overflow:Ew,offset:[0,-4],targetOffset:Cw},bottomLeft:{points:["tl","bl"],overflow:Ew,offset:[0,4],targetOffset:Cw},bottom:{points:["tc","bc"],overflow:Ew,offset:[0,4],targetOffset:Cw},bottomRight:{points:["tr","br"],overflow:Ew,offset:[0,4],targetOffset:Cw}},tDt=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function nDt(e,t){var n,r=e.arrow,i=r===void 0?!1:r,a=e.prefixCls,o=a===void 0?"rc-dropdown":a,s=e.transitionName,l=e.animation,c=e.align,u=e.placement,d=u===void 0?"bottomLeft":u,f=e.placements,p=f===void 0?eDt:f,h=e.getPopupContainer,m=e.showAction,g=e.hideAction,v=e.overlayClassName,y=e.overlayStyle,_=e.visible,S=e.trigger,C=S===void 0?["hover"]:S,w=e.autoFocus,x=e.overlay,T=e.children,A=e.onVisibleChange,I=$n(e,tDt),R=se.useState(),N=Fe(R,2),P=N[0],L=N[1],$="visible"in e?_:P,D=se.useRef(null),z=se.useRef(null),U=se.useRef(null);se.useImperativeHandle(t,function(){return D.current});var H=function(J){L(J),A?.(J)};QMt({visible:$,triggerRef:U,onVisibleChange:H,autoFocus:w,overlayRef:z});var M=function(J){var te=e.onOverlayClick;L(!1),te&&te(J)},B=function(){return se.createElement(JMt,{ref:z,overlay:x,prefixCls:o,arrow:i})},k=function(){return typeof x=="function"?B:B()},F=function(){var J=e.minOverlayWidthMatchTrigger,te=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?J:!te},G=function(){var J=e.openClassName;return J!==void 0?J:"".concat(o,"-open")},q=se.cloneElement(T,{className:Oe((n=T.props)===null||n===void 0?void 0:n.className,$&&G()),ref:sm(T)?Ll(U,T.ref):void 0}),W=g;return!W&&C.indexOf("contextMenu")!==-1&&(W=["click"]),se.createElement(hT,Xe({builtinPlacements:p},I,{prefixCls:o,ref:D,popupClassName:Oe(v,be({},"".concat(o,"-show-arrow"),i)),popupStyle:y,action:C,showAction:m,hideAction:W,popupPlacement:d,popupAlign:c,popupTransitionName:s,popupAnimation:l,popupVisible:$,stretch:F()?"minWidth":"",popup:k(),onPopupVisibleChange:H,onPopupClick:M,getPopupContainer:h}),q)}const Hze=se.forwardRef(nDt);var Vze=b.createContext(null);function Gze(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function qze(e){var t=b.useContext(Vze);return Gze(t,e)}var rDt=["children","locked"],cm=b.createContext(null);function iDt(e,t){var n=we({},e);return Object.keys(t).forEach(function(r){var i=t[r];i!==void 0&&(n[r]=i)}),n}function $N(e){var t=e.children,n=e.locked,r=$n(e,rDt),i=b.useContext(cm),a=hC(function(){return iDt(i,r)},[i,r],function(o,s){return!n&&(o[0]!==s[0]||!Op(o[1],s[1],!0))});return b.createElement(cm.Provider,{value:a},t)}var aDt=[],Wze=b.createContext(null);function vz(){return b.useContext(Wze)}var Yze=b.createContext(aDt);function gT(e){var t=b.useContext(Yze);return b.useMemo(function(){return e!==void 0?[].concat(Tt(t),[e]):t},[t,e])}var Kze=b.createContext(null),Tde=b.createContext({});function M2e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(uT(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),i=e.getAttribute("tabindex"),a=Number(i),o=null;return i&&!Number.isNaN(a)?o=a:r&&o===null&&(o=0),r&&e.disabled&&(o=null),o!==null&&(o>=0||t&&o<0)}return!1}function oDt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Tt(e.querySelectorAll("*")).filter(function(r){return M2e(r,t)});return M2e(e,t)&&n.unshift(e),n}var lie=Bt.LEFT,cie=Bt.RIGHT,uie=Bt.UP,Z9=Bt.DOWN,Q9=Bt.ENTER,Xze=Bt.ESC,G4=Bt.HOME,q4=Bt.END,D2e=[uie,Z9,lie,cie];function sDt(e,t,n,r){var i,a,o,s,l="prev",c="next",u="children",d="parent";if(e==="inline"&&r===Q9)return{inlineTrigger:!0};var f=(i={},be(i,uie,l),be(i,Z9,c),i),p=(a={},be(a,lie,n?c:l),be(a,cie,n?l:c),be(a,Z9,u),be(a,Q9,u),a),h=(o={},be(o,uie,l),be(o,Z9,c),be(o,Q9,u),be(o,Xze,d),be(o,lie,n?u:d),be(o,cie,n?d:u),o),m={inline:f,horizontal:p,vertical:h,inlineSub:f,horizontalSub:h,verticalSub:h},g=(s=m["".concat(e).concat(t?"":"Sub")])===null||s===void 0?void 0:s[r];switch(g){case l:return{offset:-1,sibling:!0};case c:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case u:return{offset:1,sibling:!1};default:return null}}function lDt(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function cDt(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function Ide(e,t){var n=oDt(e,!0);return n.filter(function(r){return t.has(r)})}function $2e(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var i=Ide(e,t),a=i.length,o=i.findIndex(function(s){return n===s});return r<0?o===-1?o=a-1:o-=1:r>0&&(o+=1),o=(o+a)%a,i[o]}var die=function(t,n){var r=new Set,i=new Map,a=new Map;return t.forEach(function(o){var s=document.querySelector("[data-menu-id='".concat(Gze(n,o),"']"));s&&(r.add(s),a.set(s,o),i.set(o,s))}),{elements:r,key2element:i,element2key:a}};function uDt(e,t,n,r,i,a,o,s,l,c){var u=b.useRef(),d=b.useRef();d.current=t;var f=function(){Tr.cancel(u.current)};return b.useEffect(function(){return function(){f()}},[]),function(p){var h=p.which;if([].concat(D2e,[Q9,Xze,G4,q4]).includes(h)){var m=a(),g=die(m,r),v=g,y=v.elements,_=v.key2element,S=v.element2key,C=_.get(t),w=cDt(C,y),x=S.get(w),T=sDt(e,o(x,!0).length===1,n,h);if(!T&&h!==G4&&h!==q4)return;(D2e.includes(h)||[G4,q4].includes(h))&&p.preventDefault();var A=function(z){if(z){var U=z,H=z.querySelector("a");H!=null&&H.getAttribute("href")&&(U=H);var M=S.get(z);s(M),f(),u.current=Tr(function(){d.current===M&&U.focus()})}};if([G4,q4].includes(h)||T.sibling||!w){var I;!w||e==="inline"?I=i.current:I=lDt(w);var R,N=Ide(I,y);h===G4?R=N[0]:h===q4?R=N[N.length-1]:R=$2e(I,y,w,T.offset),A(R)}else if(T.inlineTrigger)l(x);else if(T.offset>0)l(x,!0),f(),u.current=Tr(function(){g=die(m,r);var D=w.getAttribute("aria-controls"),z=document.getElementById(D),U=$2e(z,g.elements);A(U)},5);else if(T.offset<0){var P=o(x,!0),L=P[P.length-2],$=_.get(L);l(L,!1),A($)}}c?.(p)}}function dDt(e){Promise.resolve().then(e)}var Ade="__RC_UTIL_PATH_SPLIT__",F2e=function(t){return t.join(Ade)},fDt=function(t){return t.split(Ade)},fie="rc-menu-more";function pDt(){var e=b.useState({}),t=Fe(e,2),n=t[1],r=b.useRef(new Map),i=b.useRef(new Map),a=b.useState([]),o=Fe(a,2),s=o[0],l=o[1],c=b.useRef(0),u=b.useRef(!1),d=function(){u.current||n({})},f=b.useCallback(function(_,S){var C=F2e(S);i.current.set(C,_),r.current.set(_,C),c.current+=1;var w=c.current;dDt(function(){w===c.current&&d()})},[]),p=b.useCallback(function(_,S){var C=F2e(S);i.current.delete(C),r.current.delete(_)},[]),h=b.useCallback(function(_){l(_)},[]),m=b.useCallback(function(_,S){var C=r.current.get(_)||"",w=fDt(C);return S&&s.includes(w[0])&&w.unshift(fie),w},[s]),g=b.useCallback(function(_,S){return _.filter(function(C){return C!==void 0}).some(function(C){var w=m(C,!0);return w.includes(S)})},[m]),v=function(){var S=Tt(r.current.keys());return s.length&&S.push(fie),S},y=b.useCallback(function(_){var S="".concat(r.current.get(_)).concat(Ade),C=new Set;return Tt(i.current.keys()).forEach(function(w){w.startsWith(S)&&C.add(i.current.get(w))}),C},[]);return b.useEffect(function(){return function(){u.current=!0}},[]),{registerPath:f,unregisterPath:p,refreshOverflowKeys:h,isSubPathKey:g,getKeyPath:m,getKeys:v,getSubPathKeys:y}}function pA(e){var t=b.useRef(e);t.current=e;var n=b.useCallback(function(){for(var r,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(a))},[]);return e?n:void 0}var hDt=Math.random().toFixed(5).toString().slice(2),B2e=0;function mDt(e){var t=qr(e,{value:e}),n=Fe(t,2),r=n[0],i=n[1];return b.useEffect(function(){B2e+=1;var a="".concat(hDt,"-").concat(B2e);i("rc-menu-uuid-".concat(a))},[]),r}function Zze(e,t,n,r){var i=b.useContext(cm),a=i.activeKey,o=i.onActive,s=i.onInactive,l={active:a===e};return t||(l.onMouseEnter=function(c){n?.({key:e,domEvent:c}),o(e)},l.onMouseLeave=function(c){r?.({key:e,domEvent:c}),s(e)}),l}function Qze(e){var t=b.useContext(cm),n=t.mode,r=t.rtl,i=t.inlineIndent;if(n!=="inline")return null;var a=e;return r?{paddingRight:a*i}:{paddingLeft:a*i}}function Jze(e){var t=e.icon,n=e.props,r=e.children,i;return t===null||t===!1?null:(typeof t=="function"?i=b.createElement(t,we({},n)):typeof t!="boolean"&&(i=t),i||r||null)}var gDt=["item"];function z$(e){var t=e.item,n=$n(e,gDt);return Object.defineProperty(n,"item",{get:function(){return Ra(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var vDt=["title","attribute","elementRef"],yDt=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],bDt=["active"],_Dt=function(e){Md(n,e);var t=$f(n);function n(){return co(this,n),t.apply(this,arguments)}return uo(n,[{key:"render",value:function(){var i=this.props,a=i.title,o=i.attribute,s=i.elementRef,l=$n(i,vDt),c=Xa(l,["eventKey","popupClassName","popupOffset","onTitleClick"]);return Ra(!o,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),b.createElement(tm.Item,Xe({},o,{title:typeof a=="string"?a:void 0},c,{ref:s}))}}]),n}(b.Component),SDt=b.forwardRef(function(e,t){var n,r=e.style,i=e.className,a=e.eventKey;e.warnKey;var o=e.disabled,s=e.itemIcon,l=e.children,c=e.role,u=e.onMouseEnter,d=e.onMouseLeave,f=e.onClick,p=e.onKeyDown,h=e.onFocus,m=$n(e,yDt),g=qze(a),v=b.useContext(cm),y=v.prefixCls,_=v.onItemClick,S=v.disabled,C=v.overflowDisabled,w=v.itemIcon,x=v.selectedKeys,T=v.onActive,A=b.useContext(Tde),I=A._internalRenderMenuItem,R="".concat(y,"-item"),N=b.useRef(),P=b.useRef(),L=S||o,$=hv(t,P),D=gT(a),z=function(ae){return{key:a,keyPath:Tt(D).reverse(),item:N.current,domEvent:ae}},U=s||w,H=Zze(a,L,u,d),M=H.active,B=$n(H,bDt),k=x.includes(a),F=Qze(D.length),G=function(ae){if(!L){var re=z(ae);f?.(z$(re)),_(re)}},q=function(ae){if(p?.(ae),ae.which===Bt.ENTER){var re=z(ae);f?.(z$(re)),_(re)}},W=function(ae){T(a),h?.(ae)},K={};e.role==="option"&&(K["aria-selected"]=k);var J=b.createElement(_Dt,Xe({ref:N,elementRef:$,role:c===null?"none":c||"menuitem",tabIndex:o?null:-1,"data-menu-id":C&&g?null:g},m,B,K,{component:"li","aria-disabled":o,style:we(we({},F),r),className:Oe(R,(n={},be(n,"".concat(R,"-active"),M),be(n,"".concat(R,"-selected"),k),be(n,"".concat(R,"-disabled"),L),n),i),onClick:G,onKeyDown:q,onFocus:W}),l,b.createElement(Jze,{props:we(we({},e),{},{isSelected:k}),icon:U}));return I&&(J=I(J,e,{selected:k})),J});function EDt(e,t){var n=e.eventKey,r=vz(),i=gT(n);return b.useEffect(function(){if(r)return r.registerPath(n,i),function(){r.unregisterPath(n,i)}},[i]),r?null:b.createElement(SDt,Xe({},e,{ref:t}))}const IO=b.forwardRef(EDt);var CDt=["className","children"],wDt=function(t,n){var r=t.className,i=t.children,a=$n(t,CDt),o=b.useContext(cm),s=o.prefixCls,l=o.mode,c=o.rtl;return b.createElement("ul",Xe({className:Oe(s,c&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat(l==="inline"?"inline":"vertical"),r),role:"menu"},a,{"data-menu-list":!0,ref:n}),i)},Rde=b.forwardRef(wDt);Rde.displayName="SubMenuList";function Nde(e,t){return _l(e).map(function(n,r){if(b.isValidElement(n)){var i,a,o=n.key,s=(i=(a=n.props)===null||a===void 0?void 0:a.eventKey)!==null&&i!==void 0?i:o,l=s==null;l&&(s="tmp_key-".concat([].concat(Tt(t),[r]).join("-")));var c={key:s,eventKey:s};return b.cloneElement(n,c)}return n})}var qc={adjustX:1,adjustY:1},xDt={topLeft:{points:["bl","tl"],overflow:qc},topRight:{points:["br","tr"],overflow:qc},bottomLeft:{points:["tl","bl"],overflow:qc},bottomRight:{points:["tr","br"],overflow:qc},leftTop:{points:["tr","tl"],overflow:qc},leftBottom:{points:["br","bl"],overflow:qc},rightTop:{points:["tl","tr"],overflow:qc},rightBottom:{points:["bl","br"],overflow:qc}},TDt={topLeft:{points:["bl","tl"],overflow:qc},topRight:{points:["br","tr"],overflow:qc},bottomLeft:{points:["tl","bl"],overflow:qc},bottomRight:{points:["tr","br"],overflow:qc},rightTop:{points:["tr","tl"],overflow:qc},rightBottom:{points:["br","bl"],overflow:qc},leftTop:{points:["tl","tr"],overflow:qc},leftBottom:{points:["bl","br"],overflow:qc}};function eUe(e,t,n){if(t)return t;if(n)return n[e]||n.other}var IDt={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function ADt(e){var t=e.prefixCls,n=e.visible,r=e.children,i=e.popup,a=e.popupStyle,o=e.popupClassName,s=e.popupOffset,l=e.disabled,c=e.mode,u=e.onVisibleChange,d=b.useContext(cm),f=d.getPopupContainer,p=d.rtl,h=d.subMenuOpenDelay,m=d.subMenuCloseDelay,g=d.builtinPlacements,v=d.triggerSubMenuAction,y=d.forceSubMenuRender,_=d.rootClassName,S=d.motion,C=d.defaultMotions,w=b.useState(!1),x=Fe(w,2),T=x[0],A=x[1],I=we(p?we({},TDt):we({},xDt),g),R=IDt[c],N=eUe(c,S,C),P=b.useRef(N);c!=="inline"&&(P.current=N);var L=we(we({},P.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),$=b.useRef();return b.useEffect(function(){return $.current=Tr(function(){A(n)}),function(){Tr.cancel($.current)}},[n]),b.createElement(hT,{prefixCls:t,popupClassName:Oe("".concat(t,"-popup"),be({},"".concat(t,"-rtl"),p),o,_),stretch:c==="horizontal"?"minWidth":null,getPopupContainer:f,builtinPlacements:I,popupPlacement:R,popupVisible:T,popup:i,popupStyle:a,popupAlign:s&&{offset:s},action:l?[]:[v],mouseEnterDelay:h,mouseLeaveDelay:m,onPopupVisibleChange:u,forceRender:y,popupMotion:L,fresh:!0},r)}function RDt(e){var t=e.id,n=e.open,r=e.keyPath,i=e.children,a="inline",o=b.useContext(cm),s=o.prefixCls,l=o.forceSubMenuRender,c=o.motion,u=o.defaultMotions,d=o.mode,f=b.useRef(!1);f.current=d===a;var p=b.useState(!f.current),h=Fe(p,2),m=h[0],g=h[1],v=f.current?n:!1;b.useEffect(function(){f.current&&g(!1)},[d]);var y=we({},eUe(a,c,u));r.length>1&&(y.motionAppear=!1);var _=y.onVisibleChanged;return y.onVisibleChanged=function(S){return!f.current&&!S&&g(!0),_?.(S)},m?null:b.createElement($N,{mode:a,locked:!f.current},b.createElement(Sl,Xe({visible:v},y,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(S){var C=S.className,w=S.style;return b.createElement(Rde,{id:t,className:C,style:w},i)}))}var NDt=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],ODt=["active"],LDt=b.forwardRef(function(e,t){var n,r=e.style,i=e.className,a=e.title,o=e.eventKey;e.warnKey;var s=e.disabled,l=e.internalPopupClose,c=e.children,u=e.itemIcon,d=e.expandIcon,f=e.popupClassName,p=e.popupOffset,h=e.popupStyle,m=e.onClick,g=e.onMouseEnter,v=e.onMouseLeave,y=e.onTitleClick,_=e.onTitleMouseEnter,S=e.onTitleMouseLeave,C=$n(e,NDt),w=qze(o),x=b.useContext(cm),T=x.prefixCls,A=x.mode,I=x.openKeys,R=x.disabled,N=x.overflowDisabled,P=x.activeKey,L=x.selectedKeys,$=x.itemIcon,D=x.expandIcon,z=x.onItemClick,U=x.onOpenChange,H=x.onActive,M=b.useContext(Tde),B=M._internalRenderSubMenuItem,k=b.useContext(Kze),F=k.isSubPathKey,G=gT(),q="".concat(T,"-submenu"),W=R||s,K=b.useRef(),J=b.useRef(),te=u??$,ae=d??D,re=I.includes(o),ue=!N&&re,de=F(L,o),fe=Zze(o,W,_,S),ge=fe.active,oe=$n(fe,ODt),Ee=b.useState(!1),ce=Fe(Ee,2),he=ce[0],ye=ce[1],me=function(Qe){W||ye(Qe)},_e=function(Qe){me(!0),g?.({key:o,domEvent:Qe})},Te=function(Qe){me(!1),v?.({key:o,domEvent:Qe})},xe=b.useMemo(function(){return ge||(A!=="inline"?he||F([P],o):!1)},[A,ge,P,he,o,F]),De=Qze(G.length),Pe=function(Qe){W||(y?.({key:o,domEvent:Qe}),A==="inline"&&U(o,!re))},Le=pA(function(nt){m?.(z$(nt)),z(nt)}),ze=function(Qe){A!=="inline"&&U(o,Qe)},Be=function(){H(o)},je=w&&"".concat(w,"-popup"),Ye=b.createElement("div",Xe({role:"menuitem",style:De,className:"".concat(q,"-title"),tabIndex:W?null:-1,ref:K,title:typeof a=="string"?a:null,"data-menu-id":N&&w?null:w,"aria-expanded":ue,"aria-haspopup":!0,"aria-controls":je,"aria-disabled":W,onClick:Pe,onFocus:Be},oe),a,b.createElement(Jze,{icon:A!=="horizontal"?ae:void 0,props:we(we({},e),{},{isOpen:ue,isSubMenu:!0})},b.createElement("i",{className:"".concat(q,"-arrow")}))),Ze=b.useRef(A);if(A!=="inline"&&G.length>1?Ze.current="vertical":Ze.current=A,!N){var Ke=Ze.current;Ye=b.createElement(ADt,{mode:Ke,prefixCls:q,visible:!l&&ue&&A!=="inline",popupClassName:f,popupOffset:p,popupStyle:h,popup:b.createElement($N,{mode:Ke==="horizontal"?"vertical":Ke},b.createElement(Rde,{id:je,ref:J},c)),disabled:W,onVisibleChange:ze},Ye)}var qe=b.createElement(tm.Item,Xe({ref:t,role:"none"},C,{component:"li",style:r,className:Oe(q,"".concat(q,"-").concat(A),i,(n={},be(n,"".concat(q,"-open"),ue),be(n,"".concat(q,"-active"),xe),be(n,"".concat(q,"-selected"),de),be(n,"".concat(q,"-disabled"),W),n)),onMouseEnter:_e,onMouseLeave:Te}),Ye,!N&&b.createElement(RDt,{id:je,open:ue,keyPath:G},c));return B&&(qe=B(qe,e,{selected:de,active:xe,open:ue,disabled:W})),b.createElement($N,{onItemClick:Le,mode:A==="horizontal"?"vertical":A,itemIcon:te,expandIcon:ae},qe)}),yz=b.forwardRef(function(e,t){var n=e.eventKey,r=e.children,i=gT(n),a=Nde(r,i),o=vz();b.useEffect(function(){if(o)return o.registerPath(n,i),function(){o.unregisterPath(n,i)}},[i]);var s;return o?s=a:s=b.createElement(LDt,Xe({ref:t},e),a),b.createElement(Yze.Provider,{value:i},s)});function Ode(e){var t=e.className,n=e.style,r=b.useContext(cm),i=r.prefixCls,a=vz();return a?null:b.createElement("li",{role:"separator",className:Oe("".concat(i,"-item-divider"),t),style:n})}var PDt=["className","title","eventKey","children"],kDt=b.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var i=e.children,a=$n(e,PDt),o=b.useContext(cm),s=o.prefixCls,l="".concat(s,"-item-group");return b.createElement("li",Xe({ref:t,role:"presentation"},a,{onClick:function(u){return u.stopPropagation()},className:Oe(l,n)}),b.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof r=="string"?r:void 0},r),b.createElement("ul",{role:"group",className:"".concat(l,"-list")},i))}),Lde=b.forwardRef(function(e,t){var n=e.eventKey,r=e.children,i=gT(n),a=Nde(r,i),o=vz();return o?a:b.createElement(kDt,Xe({ref:t},Xa(e,["warnKey"])),a)}),MDt=["label","children","key","type"];function pie(e,t){var n=t.item,r=t.group,i=t.submenu,a=t.divider;return(e||[]).map(function(o,s){if(o&&cn(o)==="object"){var l=o,c=l.label,u=l.children,d=l.key,f=l.type,p=$n(l,MDt),h=d??"tmp-".concat(s);return u||f==="group"?f==="group"?b.createElement(r,Xe({key:h},p,{title:c}),pie(u,t)):b.createElement(i,Xe({key:h},p,{title:c}),pie(u,t)):f==="divider"?b.createElement(a,Xe({key:h},p)):b.createElement(n,Xe({key:h},p),c)}return null}).filter(function(o){return o})}function j2e(e,t,n,r){var i=e,a=we({divider:Ode,item:IO,group:Lde,submenu:yz},r);return t&&(i=pie(t,a)),Nde(i,n)}var DDt=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],h2=[],$Dt=b.forwardRef(function(e,t){var n,r,i=e,a=i.prefixCls,o=a===void 0?"rc-menu":a,s=i.rootClassName,l=i.style,c=i.className,u=i.tabIndex,d=u===void 0?0:u,f=i.items,p=i.children,h=i.direction,m=i.id,g=i.mode,v=g===void 0?"vertical":g,y=i.inlineCollapsed,_=i.disabled,S=i.disabledOverflow,C=i.subMenuOpenDelay,w=C===void 0?.1:C,x=i.subMenuCloseDelay,T=x===void 0?.1:x,A=i.forceSubMenuRender,I=i.defaultOpenKeys,R=i.openKeys,N=i.activeKey,P=i.defaultActiveFirst,L=i.selectable,$=L===void 0?!0:L,D=i.multiple,z=D===void 0?!1:D,U=i.defaultSelectedKeys,H=i.selectedKeys,M=i.onSelect,B=i.onDeselect,k=i.inlineIndent,F=k===void 0?24:k,G=i.motion,q=i.defaultMotions,W=i.triggerSubMenuAction,K=W===void 0?"hover":W,J=i.builtinPlacements,te=i.itemIcon,ae=i.expandIcon,re=i.overflowedIndicator,ue=re===void 0?"...":re,de=i.overflowedIndicatorPopupClassName,fe=i.getPopupContainer,ge=i.onClick,oe=i.onOpenChange,Ee=i.onKeyDown;i.openAnimation,i.openTransitionName;var ce=i._internalRenderMenuItem,he=i._internalRenderSubMenuItem,ye=i._internalComponents,me=$n(i,DDt),_e=b.useMemo(function(){return[j2e(p,f,h2,ye),j2e(p,f,h2,{})]},[p,f,ye]),Te=Fe(_e,2),xe=Te[0],De=Te[1],Pe=b.useState(!1),Le=Fe(Pe,2),ze=Le[0],Be=Le[1],je=b.useRef(),Ye=mDt(m),Ze=h==="rtl",Ke=qr(I,{value:R,postState:function(Jn){return Jn||h2}}),qe=Fe(Ke,2),nt=qe[0],Qe=qe[1],it=function(Jn){var lr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function On(){Qe(Jn),oe?.(Jn)}lr?Ou.flushSync(On):On()},yt=b.useState(nt),Wt=Fe(yt,2),Mt=Wt[0],tn=Wt[1],Rt=b.useRef(!1),Dt=b.useMemo(function(){return(v==="inline"||v==="vertical")&&y?["vertical",y]:[v,!1]},[v,y]),Pt=Fe(Dt,2),Ot=Pt[0],sn=Pt[1],Jt=Ot==="inline",Vt=b.useState(Ot),pt=Fe(Vt,2),tt=pt[0],dt=pt[1],Et=b.useState(sn),St=Fe(Et,2),zt=St[0],nn=St[1];b.useEffect(function(){dt(Ot),nn(sn),Rt.current&&(Jt?Qe(Mt):it(h2))},[Ot,sn]);var wn=b.useState(0),kn=Fe(wn,2),fn=kn[0],an=kn[1],Ht=fn>=xe.length-1||tt!=="horizontal"||S;b.useEffect(function(){Jt&&tn(nt)},[nt]),b.useEffect(function(){return Rt.current=!0,function(){Rt.current=!1}},[]);var mn=pDt(),Tn=mn.registerPath,An=mn.unregisterPath,nr=mn.refreshOverflowKeys,un=mn.isSubPathKey,et=mn.getKeyPath,Ct=mn.getKeys,Q=mn.getSubPathKeys,Y=b.useMemo(function(){return{registerPath:Tn,unregisterPath:An}},[Tn,An]),ee=b.useMemo(function(){return{isSubPathKey:un}},[un]);b.useEffect(function(){nr(Ht?h2:xe.slice(fn+1).map(function(hr){return hr.key}))},[fn,Ht]);var le=qr(N||P&&((n=xe[0])===null||n===void 0?void 0:n.key),{value:N}),Se=Fe(le,2),Ae=Se[0],He=Se[1],at=pA(function(hr){He(hr)}),wt=pA(function(){He(void 0)});b.useImperativeHandle(t,function(){return{list:je.current,focus:function(Jn){var lr,On=Ct(),Mn=die(On,Ye),ri=Mn.elements,Gi=Mn.key2element,ma=Mn.element2key,Oa=Ide(je.current,ri),La=Ae??(Oa[0]?ma.get(Oa[0]):(lr=xe.find(function(xn){return!xn.props.disabled}))===null||lr===void 0?void 0:lr.key),rr=Gi.get(La);if(La&&rr){var dr;rr==null||(dr=rr.focus)===null||dr===void 0||dr.call(rr,Jn)}}}});var ft=qr(U||[],{value:H,postState:function(Jn){return Array.isArray(Jn)?Jn:Jn==null?h2:[Jn]}}),Lt=Fe(ft,2),kt=Lt[0],Gt=Lt[1],ln=function(Jn){if($){var lr=Jn.key,On=kt.includes(lr),Mn;z?On?Mn=kt.filter(function(Gi){return Gi!==lr}):Mn=[].concat(Tt(kt),[lr]):Mn=[lr],Gt(Mn);var ri=we(we({},Jn),{},{selectedKeys:Mn});On?B?.(ri):M?.(ri)}!z&&nt.length&&tt!=="inline"&&it(h2)},_n=pA(function(hr){ge?.(z$(hr)),ln(hr)}),Fn=pA(function(hr,Jn){var lr=nt.filter(function(Mn){return Mn!==hr});if(Jn)lr.push(hr);else if(tt!=="inline"){var On=Q(hr);lr=lr.filter(function(Mn){return!On.has(Mn)})}Op(nt,lr,!0)||it(lr,!0)}),ur=function(Jn,lr){var On=lr??!nt.includes(Jn);Fn(Jn,On)},Vr=uDt(tt,Ae,Ze,Ye,je,Ct,et,He,ur,Ee);b.useEffect(function(){Be(!0)},[]);var ni=b.useMemo(function(){return{_internalRenderMenuItem:ce,_internalRenderSubMenuItem:he}},[ce,he]),fr=tt!=="horizontal"||S?xe:xe.map(function(hr,Jn){return b.createElement($N,{key:hr.key,overflowDisabled:Jn>fn},hr)}),Un=b.createElement(tm,Xe({id:m,ref:je,prefixCls:"".concat(o,"-overflow"),component:"ul",itemComponent:IO,className:Oe(o,"".concat(o,"-root"),"".concat(o,"-").concat(tt),c,(r={},be(r,"".concat(o,"-inline-collapsed"),zt),be(r,"".concat(o,"-rtl"),Ze),r),s),dir:h,style:l,role:"menu",tabIndex:d,data:fr,renderRawItem:function(Jn){return Jn},renderRawRest:function(Jn){var lr=Jn.length,On=lr?xe.slice(-lr):null;return b.createElement(yz,{eventKey:fie,title:ue,disabled:Ht,internalPopupClose:lr===0,popupClassName:de},On)},maxCount:tt!=="horizontal"||S?tm.INVALIDATE:tm.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Jn){an(Jn)},onKeyDown:Vr},me));return b.createElement(Tde.Provider,{value:ni},b.createElement(Vze.Provider,{value:Ye},b.createElement($N,{prefixCls:o,rootClassName:s,mode:tt,openKeys:nt,rtl:Ze,disabled:_,motion:ze?G:null,defaultMotions:ze?q:null,activeKey:Ae,onActive:at,onInactive:wt,selectedKeys:kt,inlineIndent:F,subMenuOpenDelay:w,subMenuCloseDelay:T,forceSubMenuRender:A,builtinPlacements:J,triggerSubMenuAction:K,getPopupContainer:fe,itemIcon:te,expandIcon:ae,onItemClick:_n,onOpenChange:Fn},b.createElement(Kze.Provider,{value:ee},Un),b.createElement("div",{style:{display:"none"},"aria-hidden":!0},b.createElement(Wze.Provider,{value:Y},De)))))}),vT=$Dt;vT.Item=IO;vT.SubMenu=yz;vT.ItemGroup=Lde;vT.Divider=Ode;const FDt=e=>!isNaN(parseFloat(e))&&isFinite(e),tUe=b.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var BDt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const z2e={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},bz=b.createContext({}),jDt=(()=>{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),nUe=b.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:i,children:a,defaultCollapsed:o=!1,theme:s="dark",style:l={},collapsible:c=!1,reverseArrow:u=!1,width:d=200,collapsedWidth:f=80,zeroWidthTriggerStyle:p,breakpoint:h,onCollapse:m,onBreakpoint:g}=e,v=BDt(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:y}=b.useContext(tUe),[_,S]=b.useState("collapsed"in e?e.collapsed:o),[C,w]=b.useState(!1);b.useEffect(()=>{"collapsed"in e&&S(e.collapsed)},[e.collapsed]);const x=(P,L)=>{"collapsed"in e||S(P),m?.(P,L)},T=b.useRef();T.current=P=>{w(P.matches),g?.(P.matches),_!==P.matches&&x(P.matches,"responsive")},b.useEffect(()=>{function P($){return T.current($)}let L;if(typeof window<"u"){const{matchMedia:$}=window;if($&&h&&h in z2e){L=$(`screen and (max-width: ${z2e[h]})`);try{L.addEventListener("change",P)}catch{L.addListener(P)}P(L)}}return()=>{try{L?.removeEventListener("change",P)}catch{L?.removeListener(P)}}},[h]),b.useEffect(()=>{const P=jDt("ant-sider-");return y.addSider(P),()=>y.removeSider(P)},[]);const A=()=>{x(!_,"clickTrigger")},{getPrefixCls:I}=b.useContext(Sn),R=()=>{const P=I("layout-sider",n),L=Xa(v,["collapsed"]),$=_?f:d,D=FDt($)?`${$}px`:String($),z=parseFloat(String(f||0))===0?b.createElement("span",{onClick:A,className:Oe(`${P}-zero-width-trigger`,`${P}-zero-width-trigger-${u?"right":"left"}`),style:p},i||b.createElement(Xyt,null)):null,M={expanded:u?b.createElement(Zb,null):b.createElement(AE,null),collapsed:u?b.createElement(AE,null):b.createElement(Zb,null)}[_?"collapsed":"expanded"],B=i!==null?z||b.createElement("div",{className:`${P}-trigger`,onClick:A,style:{width:D}},i||M):null,k=Object.assign(Object.assign({},l),{flex:`0 0 ${D}`,maxWidth:D,minWidth:D,width:D}),F=Oe(P,`${P}-${s}`,{[`${P}-collapsed`]:!!_,[`${P}-has-trigger`]:c&&i!==null&&!z,[`${P}-below`]:!!C,[`${P}-zero-width`]:parseFloat(D)===0},r);return b.createElement("aside",Object.assign({className:F},L,{style:k,ref:t}),b.createElement("div",{className:`${P}-children`},a),c||C&&z?B:null)},N=b.useMemo(()=>({siderCollapsed:_}),[_]);return b.createElement(bz.Provider,{value:N},R())}),U$=b.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var zDt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const rUe=e=>{const{prefixCls:t,className:n,dashed:r}=e,i=zDt(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=b.useContext(Sn),o=a("menu",t),s=Oe({[`${o}-item-divider-dashed`]:!!r},n);return b.createElement(Ode,Object.assign({className:s},i))},iUe=e=>{var t;const{className:n,children:r,icon:i,title:a,danger:o}=e,{prefixCls:s,firstLevel:l,direction:c,disableMenuItemTitleTooltip:u,inlineCollapsed:d}=b.useContext(U$),f=y=>{const _=b.createElement("span",{className:`${s}-title-content`},r);return(!i||b.isValidElement(r)&&r.type==="span")&&r&&y&&l&&typeof r=="string"?b.createElement("div",{className:`${s}-inline-collapsed-noicon`},r.charAt(0)):_},{siderCollapsed:p}=b.useContext(bz);let h=a;typeof a>"u"?h=l?r:"":a===!1&&(h="");const m={title:h};!p&&!d&&(m.title=null,m.open=!1);const g=_l(r).length;let v=b.createElement(IO,Object.assign({},Xa(e,["title","icon","danger"]),{className:Oe({[`${s}-item-danger`]:o,[`${s}-item-only-child`]:(i?g+1:g)===1},n),title:typeof a=="string"?a:void 0}),as(i,{className:Oe(b.isValidElement(i)?(t=i.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),f(d));return u||(v=b.createElement(vr,Object.assign({},m,{placement:c==="rtl"?"left":"right",overlayClassName:`${s}-inline-collapsed-tooltip`}),v)),v};var UDt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const H$=b.createContext(null),aUe=b.forwardRef((e,t)=>{const{children:n}=e,r=UDt(e,["children"]),i=b.useContext(H$),a=b.useMemo(()=>Object.assign(Object.assign({},i),r),[i,r.prefixCls,r.mode,r.selectable,r.rootClassName]),o=hCt(n),s=hv(t,o?n.ref:null);return b.createElement(H$.Provider,{value:a},b.createElement(lm,{space:!0},o?b.cloneElement(n,{ref:s}):n))}),HDt=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:i,lineWidth:a,lineType:o,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${Ce(a)} ${o} ${i}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${t}-item:hover,
        > ${t}-item-active,
        > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},VDt=e=>{let{componentCls:t,menuArrowOffset:n,calc:r}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,
    ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${Ce(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${Ce(n)})`}}}}},U2e=e=>Object.assign({},r0(e)),H2e=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:i,groupTitleColor:a,itemBg:o,subMenuItemBg:s,itemSelectedBg:l,activeBarHeight:c,activeBarWidth:u,activeBarBorderWidth:d,motionDurationSlow:f,motionEaseInOut:p,motionEaseOut:h,itemPaddingInline:m,motionDurationMid:g,itemHoverColor:v,lineType:y,colorSplit:_,itemDisabledColor:S,dangerItemColor:C,dangerItemHoverColor:w,dangerItemSelectedColor:x,dangerItemActiveBg:T,dangerItemSelectedBg:A,popupBg:I,itemHoverBg:R,itemActiveBg:N,menuSubMenuBg:P,horizontalItemSelectedColor:L,horizontalItemSelectedBg:$,horizontalItemBorderRadius:D,horizontalItemHoverBg:z}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:o,[`&${n}-root:focus-visible`]:Object.assign({},U2e(e)),[`${n}-item-group-title`]:{color:a},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:i}},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},U2e(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${S} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:v}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:R},"&:active":{backgroundColor:N}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:R},"&:active":{backgroundColor:N}}},[`${n}-item-danger`]:{color:C,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:w}},[`&${n}-item:active`]:{background:T}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:i,[`&${n}-item-danger`]:{color:x},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:l,[`&${n}-item-danger`]:{backgroundColor:A}},[`&${n}-submenu > ${n}`]:{backgroundColor:P},[`&${n}-popup > ${n}`]:{backgroundColor:I},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:I},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:e.calc(d).mul(-1).equal(),marginBottom:0,borderRadius:D,"&::after":{position:"absolute",insetInline:m,bottom:0,borderBottom:`${Ce(c)} solid transparent`,transition:`border-color ${f} ${p}`,content:'""'},"&:hover, &-active, &-open":{background:z,"&::after":{borderBottomWidth:c,borderBottomColor:L}},"&-selected":{color:L,backgroundColor:$,"&:hover":{backgroundColor:$},"&::after":{borderBottomWidth:c,borderBottomColor:L}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${Ce(d)} ${y} ${_}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Ce(u)} solid ${i}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${g} ${h}`,`opacity ${g} ${h}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:x}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${g} ${p}`,`opacity ${g} ${p}`].join(",")}}}}}},V2e=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:i,menuArrowSize:a,marginXS:o,itemMarginBlock:s,itemWidth:l}=e,c=e.calc(a).add(i).add(o).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:Ce(n),paddingInline:i,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:l},[`> ${t}-item,
            > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:Ce(n)},[`${t}-item-group-list ${t}-submenu-title,
            ${t}-submenu-title`]:{paddingInlineEnd:c}}},GDt=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:i,dropdownWidth:a,controlHeightLG:o,motionDurationMid:s,motionEaseOut:l,paddingXL:c,itemMarginInline:u,fontSizeLG:d,motionDurationSlow:f,paddingXS:p,boxShadowSecondary:h,collapsedWidth:m,collapsedIconSize:g}=e,v={height:r,lineHeight:Ce(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},V2e(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},V2e(e)),{boxShadow:h})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${Ce(e.calc(o).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${f}`,`background ${f}`,`padding ${s} ${l}`,`padding-inline calc(50% - ${Ce(e.calc(d).div(2).equal())} - ${Ce(u)})`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:v,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:v}},{[`${t}-inline-collapsed`]:{width:m,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item,
          > ${t}-item-group > ${t}-item-group-list > ${t}-item,
          > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
          > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Ce(e.calc(d).div(2).equal())} - ${Ce(u)})`,textOverflow:"clip",[`
            ${t}-submenu-arrow,
            ${t}-submenu-expand-icon
          `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:g,lineHeight:Ce(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:i}},[`${t}-item-group-title`]:Object.assign(Object.assign({},Pp),{paddingInline:p})}}]},G2e=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:i,motionEaseOut:a,iconCls:o,iconSize:s,iconMarginInlineEnd:l}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding ${n} ${i}`].join(","),[`${t}-item-icon, ${o}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${a}`,`margin ${n} ${i}`,`color ${n}`].join(","),"+ span":{marginInlineStart:l,opacity:1,transition:[`opacity ${n} ${i}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},lT()),[`&${t}-item-only-child`]:{[`> ${o}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},q2e=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:i,menuArrowSize:a,menuArrowOffset:o}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:a,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(a).mul(.6).equal(),height:e.calc(a).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:i,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${Ce(e.calc(o).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${Ce(o)})`}}}}},qDt=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:i,motionDurationMid:a,motionEaseInOut:o,paddingXS:s,padding:l,colorSplit:c,lineWidth:u,zIndexPopup:d,borderRadiusLG:f,subMenuItemBorderRadius:p,menuArrowSize:h,menuArrowOffset:m,lineType:g,groupTitleLineHeight:v,groupTitleFontSize:y}=e;return[{"":{[`${n}`]:Object.assign(Object.assign({},ME()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Wr(e)),ME()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${i} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${Ce(s)} ${Ce(l)}`,fontSize:y,lineHeight:v,transition:`all ${i}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${i} ${o}`,`background ${i} ${o}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${i} ${o}`,`background ${i} ${o}`,`padding ${a} ${o}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${i} ${o}`,`padding ${i} ${o}`].join(",")},[`${n}-title-content`]:{transition:`color ${i}`,[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:g,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),G2e(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${Ce(e.calc(r).mul(2).equal())} ${Ce(l)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:f,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:f},G2e(e)),q2e(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${n}-submenu-title::after`]:{transition:`transform ${i} ${o}`}})},"\n          &-placement-leftTop,\n          &-placement-bottomRight,\n          ":{transformOrigin:"100% 0"},"\n          &-placement-leftBottom,\n          &-placement-topRight,\n          ":{transformOrigin:"100% 100%"},"\n          &-placement-rightBottom,\n          &-placement-topLeft,\n          ":{transformOrigin:"0 100%"},"\n          &-placement-bottomLeft,\n          &-placement-rightTop,\n          ":{transformOrigin:"0 0"},"\n          &-placement-leftTop,\n          &-placement-leftBottom\n          ":{paddingInlineEnd:e.paddingXS},"\n          &-placement-rightTop,\n          &-placement-rightBottom\n          ":{paddingInlineStart:e.paddingXS},"\n          &-placement-topRight,\n          &-placement-topLeft\n          ":{paddingBottom:e.paddingXS},"\n          &-placement-bottomRight,\n          &-placement-bottomLeft\n          ":{paddingTop:e.paddingXS}}}),q2e(e)),{[`&-inline-collapsed ${n}-submenu-arrow,
        &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Ce(m)})`},"&::after":{transform:`rotate(45deg) translateX(${Ce(e.calc(m).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${Ce(e.calc(h).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${Ce(e.calc(m).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${Ce(m)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},WDt=e=>{var t,n,r;const{colorPrimary:i,colorError:a,colorTextDisabled:o,colorErrorBg:s,colorText:l,colorTextDescription:c,colorBgContainer:u,colorFillAlter:d,colorFillContent:f,lineWidth:p,lineWidthBold:h,controlItemBgActive:m,colorBgTextHover:g,controlHeightLG:v,lineHeight:y,colorBgElevated:_,marginXXS:S,padding:C,fontSize:w,controlHeightSM:x,fontSizeLG:T,colorTextLightSolid:A,colorErrorHover:I}=e,R=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,N=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:p,P=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,L=new ti(A).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:l,itemColor:l,colorItemTextHover:l,itemHoverColor:l,colorItemTextHoverHorizontal:i,horizontalItemHoverColor:i,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:i,itemSelectedColor:i,colorItemTextSelectedHorizontal:i,horizontalItemSelectedColor:i,colorItemBg:u,itemBg:u,colorItemBgHover:g,itemHoverBg:g,colorItemBgActive:f,itemActiveBg:m,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:m,itemSelectedBg:m,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:R,colorActiveBarHeight:h,activeBarHeight:h,colorActiveBarBorderSize:p,activeBarBorderWidth:N,colorItemTextDisabled:o,itemDisabledColor:o,colorDangerItemText:a,dangerItemColor:a,colorDangerItemTextHover:a,dangerItemHoverColor:a,colorDangerItemTextSelected:a,dangerItemSelectedColor:a,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:P,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:v,groupTitleLineHeight:y,collapsedWidth:v*2,popupBg:_,itemMarginBlock:S,itemPaddingInline:C,horizontalLineHeight:`${v*1.15}px`,iconSize:w,iconMarginInlineEnd:x-w,collapsedIconSize:T,groupTitleFontSize:w,darkItemDisabledColor:new ti(A).setAlpha(.25).toRgbString(),darkItemColor:L,darkDangerItemColor:a,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:A,darkItemSelectedBg:i,darkDangerItemSelectedBg:a,darkItemHoverBg:"transparent",darkGroupTitleColor:L,darkItemHoverColor:A,darkDangerItemHoverColor:I,darkDangerItemSelectedColor:A,darkDangerItemActiveBg:a,itemWidth:R?`calc(100% + ${N}px)`:`calc(100% - ${P*2}px)`}},YDt=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return Kr("Menu",i=>{const{colorBgElevated:a,controlHeightLG:o,fontSize:s,darkItemColor:l,darkDangerItemColor:c,darkItemBg:u,darkSubMenuItemBg:d,darkItemSelectedColor:f,darkItemSelectedBg:p,darkDangerItemSelectedBg:h,darkItemHoverBg:m,darkGroupTitleColor:g,darkItemHoverColor:v,darkItemDisabledColor:y,darkDangerItemHoverColor:_,darkDangerItemSelectedColor:S,darkDangerItemActiveBg:C,popupBg:w,darkPopupBg:x}=i,T=i.calc(s).div(7).mul(5).equal(),A=br(i,{menuArrowSize:T,menuHorizontalHeight:i.calc(o).mul(1.15).equal(),menuArrowOffset:i.calc(T).mul(.25).equal(),menuSubMenuBg:a,calc:i.calc,popupBg:w}),I=br(A,{itemColor:l,itemHoverColor:v,groupTitleColor:g,itemSelectedColor:f,itemBg:u,popupBg:x,subMenuItemBg:d,itemActiveBg:"transparent",itemSelectedBg:p,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:m,itemDisabledColor:y,dangerItemColor:c,dangerItemHoverColor:_,dangerItemSelectedColor:S,dangerItemActiveBg:C,dangerItemSelectedBg:h,menuSubMenuBg:d,horizontalItemSelectedColor:f,horizontalItemSelectedBg:p});return[qDt(A),HDt(A),GDt(A),H2e(A,"light"),H2e(I,"dark"),VDt(A),_O(A),ev(A,"slide-up"),ev(A,"slide-down"),pT(A,"zoom-big")]},WDt,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:n,unitless:{groupTitleLineHeight:!0}})(e,t)},oUe=e=>{var t;const{popupClassName:n,icon:r,title:i,theme:a}=e,o=b.useContext(U$),{prefixCls:s,inlineCollapsed:l,theme:c}=o,u=gT();let d;if(!r)d=l&&!u.length&&i&&typeof i=="string"?b.createElement("div",{className:`${s}-inline-collapsed-noicon`},i.charAt(0)):b.createElement("span",{className:`${s}-title-content`},i);else{const h=b.isValidElement(i)&&i.type==="span";d=b.createElement(b.Fragment,null,as(r,{className:Oe(b.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),h?i:b.createElement("span",{className:`${s}-title-content`},i))}const f=b.useMemo(()=>Object.assign(Object.assign({},o),{firstLevel:!1}),[o]),[p]=Em("Menu");return b.createElement(U$.Provider,{value:f},b.createElement(yz,Object.assign({},Xa(e,["icon"]),{title:d,popupClassName:Oe(s,n,`${s}-${a||c}`),popupStyle:{zIndex:p}})))};var KDt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function nq(e){return e===null||e===!1}const XDt={item:iUe,submenu:oUe,divider:rUe},ZDt=b.forwardRef((e,t)=>{var n;const r=b.useContext(H$),i=r||{},{getPrefixCls:a,getPopupContainer:o,direction:s,menu:l}=b.useContext(Sn),c=a(),{prefixCls:u,className:d,style:f,theme:p="light",expandIcon:h,_internalDisableMenuItemTitleTooltip:m,inlineCollapsed:g,siderCollapsed:v,rootClassName:y,mode:_,selectable:S,onClick:C,overflowedIndicatorPopupClassName:w}=e,x=KDt(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),T=Xa(x,["collapsedWidth"]);(n=i.validator)===null||n===void 0||n.call(i,{mode:_});const A=gr(function(){var k;C?.apply(void 0,arguments),(k=i.onClick)===null||k===void 0||k.call(i)}),I=i.mode||_,R=S??i.selectable,N=b.useMemo(()=>v!==void 0?v:g,[g,v]),P={horizontal:{motionName:`${c}-slide-up`},inline:C3(c),other:{motionName:`${c}-zoom-big`}},L=a("menu",u||i.prefixCls),$=Ja(L),[D,z,U]=YDt(L,$,!r),H=Oe(`${L}-${p}`,l?.className,d),M=b.useMemo(()=>{var k,F;if(typeof h=="function"||nq(h))return h||null;if(typeof i.expandIcon=="function"||nq(i.expandIcon))return i.expandIcon||null;if(typeof l?.expandIcon=="function"||nq(l?.expandIcon))return l?.expandIcon||null;const G=(k=h??i?.expandIcon)!==null&&k!==void 0?k:l?.expandIcon;return as(G,{className:Oe(`${L}-submenu-expand-icon`,b.isValidElement(G)?(F=G.props)===null||F===void 0?void 0:F.className:void 0)})},[h,i?.expandIcon,l?.expandIcon,L]),B=b.useMemo(()=>({prefixCls:L,inlineCollapsed:N||!1,direction:s,firstLevel:!0,theme:p,mode:I,disableMenuItemTitleTooltip:m}),[L,N,s,m,p]);return D(b.createElement(H$.Provider,{value:null},b.createElement(U$.Provider,{value:B},b.createElement(vT,Object.assign({getPopupContainer:o,overflowedIndicator:b.createElement(Wce,null),overflowedIndicatorPopupClassName:Oe(L,`${L}-${p}`,w),mode:I,selectable:R,onClick:A},T,{inlineCollapsed:N,style:Object.assign(Object.assign({},l?.style),f),className:H,prefixCls:L,direction:s,defaultMotions:P,expandIcon:M,ref:t,rootClassName:Oe(y,z,i.rootClassName,U,$),_internalComponents:XDt})))))}),um=b.forwardRef((e,t)=>{const n=b.useRef(null),r=b.useContext(bz);return b.useImperativeHandle(t,()=>({menu:n.current,focus:i=>{var a;(a=n.current)===null||a===void 0||a.focus(i)}})),b.createElement(ZDt,Object.assign({ref:n},e,r))});um.Item=iUe;um.SubMenu=oUe;um.Divider=rUe;um.ItemGroup=Lde;const QDt=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:i}=e,a=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${a}`]:{[`&${a}-danger:not(${a}-disabled)`]:{color:r,"&:hover":{color:i,backgroundColor:r}}}}}},JDt=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:i,sizePopupArrow:a,antCls:o,iconCls:s,motionDurationMid:l,paddingBlock:c,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:f,fontSizeIcon:p,controlPaddingHorizontal:h,colorBgElevated:m}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(a).div(2).sub(i).equal(),zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${o}-btn`]:{[`& > ${s}-down, & > ${o}-btn-icon > ${s}-down`]:{fontSize:p}},[`${t}-wrap`]:{position:"relative",[`${o}-btn > ${s}-down`]:{fontSize:p},[`${s}-down::before`]:{transition:`transform ${l}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n        &-hidden,\n        &-menu-hidden,\n        &-menu-submenu-hidden\n      ":{display:"none"},[`&${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottomLeft,
          &${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottomLeft,
          &${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottom,
          &${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottom,
          &${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottomRight,
          &${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:lz},[`&${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-topLeft,
          &${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-topLeft,
          &${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-top,
          &${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-top,
          &${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-topRight,
          &${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-topRight`]:{animationName:uz},[`&${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottomLeft,
          &${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottom,
          &${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:cz},[`&${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-topLeft,
          &${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-top,
          &${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-topRight`]:{animationName:dz}}},mz(e,m,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},Wr(e)),{[n]:Object.assign(Object.assign({padding:d,listStyleType:"none",backgroundColor:m,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},kp(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${Ce(c)} ${Ce(h)}`,color:e.colorTextDescription,transition:`all ${l}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center",whiteSpace:"nowrap"},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${l}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${Ce(c)} ${Ce(h)}`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${l}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},kp(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:f,cursor:"not-allowed","&:hover":{color:f,backgroundColor:m,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Ce(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:p,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${Ce(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(h).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:f,backgroundColor:m,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[ev(e,"slide-up"),ev(e,"slide-down"),x3(e,"move-up"),x3(e,"move-down"),pT(e,"zoom-big")]]},e$t=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},TO({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),xO(e)),t$t=Kr("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:i}=e,a=br(e,{menuCls:`${i}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[JDt(a),QDt(a)]},e$t,{resetStyle:!1}),AO=e=>{var t;const{menu:n,arrow:r,prefixCls:i,children:a,trigger:o,disabled:s,dropdownRender:l,getPopupContainer:c,overlayClassName:u,rootClassName:d,overlayStyle:f,open:p,onOpenChange:h,visible:m,onVisibleChange:g,mouseEnterDelay:v=.15,mouseLeaveDelay:y=.1,autoAdjustOverflow:_=!0,placement:S="",overlay:C,transitionName:w}=e,{getPopupContainer:x,getPrefixCls:T,direction:A,dropdown:I}=b.useContext(Sn);g0();const R=b.useMemo(()=>{const de=T();return w!==void 0?w:S.includes("top")?`${de}-slide-down`:`${de}-slide-up`},[T,S,w]),N=b.useMemo(()=>S?S.includes("Center")?S.slice(0,S.indexOf("Center")):S:A==="rtl"?"bottomRight":"bottomLeft",[S,A]),P=T("dropdown",i),L=Ja(P),[$,D,z]=t$t(P,L),[,U]=nl(),H=b.Children.only(a),M=as(H,{className:Oe(`${P}-trigger`,{[`${P}-rtl`]:A==="rtl"},H.props.className),disabled:(t=H.props.disabled)!==null&&t!==void 0?t:s}),B=s?[]:o,k=!!B?.includes("contextMenu"),[F,G]=qr(!1,{value:p??m}),q=gr(de=>{h?.(de,{source:"trigger"}),g?.(de),G(de)}),W=Oe(u,d,D,z,L,I?.className,{[`${P}-rtl`]:A==="rtl"}),K=xde({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:_,offset:U.marginXXS,arrowWidth:r?U.sizePopupArrow:0,borderRadius:U.borderRadius}),J=b.useCallback(()=>{n?.selectable&&n?.multiple||(h?.(!1,{source:"menu"}),G(!1))},[n?.selectable,n?.multiple]),te=()=>{let de;return n?.items?de=b.createElement(um,Object.assign({},n)):typeof C=="function"?de=C():de=C,l&&(de=l(de)),de=b.Children.only(typeof de=="string"?b.createElement("span",null,de):de),b.createElement(aUe,{prefixCls:`${P}-menu`,rootClassName:Oe(z,L),expandIcon:b.createElement("span",{className:`${P}-menu-submenu-arrow`},b.createElement(Zb,{className:`${P}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:J,validator:fe=>{}},de)},[ae,re]=Em("Dropdown",f?.zIndex);let ue=b.createElement(Hze,Object.assign({alignPoint:k},Xa(e,["rootClassName"]),{mouseEnterDelay:v,mouseLeaveDelay:y,visible:F,builtinPlacements:K,arrow:!!r,overlayClassName:W,prefixCls:P,getPopupContainer:c||x,transitionName:R,trigger:B,overlay:te,placement:N,onVisibleChange:q,overlayStyle:Object.assign(Object.assign(Object.assign({},I?.style),f),{zIndex:ae})}),M);return ae&&(ue=b.createElement(cT.Provider,{value:re},ue)),$(ue)};function n$t(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const r$t=EO(AO,"dropdown",e=>e,n$t),i$t=e=>b.createElement(r$t,Object.assign({},e),b.createElement("span",null));AO._InternalPanelDoNotUseOrYouWillBeFired=i$t;const _z=e=>{let{children:t}=e;const{getPrefixCls:n}=b.useContext(Sn),r=n("breadcrumb");return b.createElement("li",{className:`${r}-separator`,"aria-hidden":"true"},t===""?t:t||"/")};_z.__ANT_BREADCRUMB_SEPARATOR=!0;var a$t=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function o$t(e,t){if(e.title===void 0||e.title===null)return null;const n=Object.keys(t).join("|");return typeof e.title=="object"?e.title:String(e.title).replace(new RegExp(`:(${n})`,"g"),(r,i)=>t[i]||r)}function sUe(e,t,n,r){if(n==null)return null;const{className:i,onClick:a}=t,o=a$t(t,["className","onClick"]),s=Object.assign(Object.assign({},lo(o,{data:!0,aria:!0})),{onClick:a});return r!==void 0?b.createElement("a",Object.assign({},s,{className:Oe(`${e}-link`,i),href:r}),n):b.createElement("span",Object.assign({},s,{className:Oe(`${e}-link`,i)}),n)}function s$t(e,t){return(r,i,a,o,s)=>{if(t)return t(r,i,a,o);const l=o$t(r,i);return sUe(e,r,l,s)}}var hie=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const lUe=e=>{const{prefixCls:t,separator:n="/",children:r,menu:i,overlay:a,dropdownProps:o,href:s}=e,c=(u=>{if(i||a){const d=Object.assign({},o);if(i){const f=i||{},{items:p}=f,h=hie(f,["items"]);d.menu=Object.assign(Object.assign({},h),{items:p?.map((m,g)=>{var{key:v,title:y,label:_,path:S}=m,C=hie(m,["key","title","label","path"]);let w=_??y;return S&&(w=b.createElement("a",{href:`${s}${S}`},w)),Object.assign(Object.assign({},C),{key:v??g,label:w})})})}else a&&(d.overlay=a);return b.createElement(AO,Object.assign({placement:"bottom"},d),b.createElement("span",{className:`${t}-overlay-link`},u,b.createElement(pv,null)))}return u})(r);return c!=null?b.createElement(b.Fragment,null,b.createElement("li",null,c),n&&b.createElement(_z,null,n)):null},cUe=e=>{const{prefixCls:t,children:n,href:r}=e,i=hie(e,["prefixCls","children","href"]),{getPrefixCls:a}=b.useContext(Sn),o=a("breadcrumb",t);return b.createElement(lUe,Object.assign({},i,{prefixCls:o}),sUe(o,i,n,r))};cUe.__ANT_BREADCRUMB_ITEM=!0;const l$t=e=>{const{componentCls:t,iconCls:n,calc:r}=e;return{[t]:Object.assign(Object.assign({},Wr(e)),{color:e.itemColor,fontSize:e.fontSize,[n]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${Ce(e.paddingXXS)}`,borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",marginInline:r(e.marginXXS).mul(-1).equal(),"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover}},kp(e)),"li:last-child":{color:e.lastItemColor},[`${t}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${t}-link`]:{[`
          > ${n} + span,
          > ${n} + a
        `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",padding:`0 ${Ce(e.paddingXXS)}`,marginInline:r(e.marginXXS).mul(-1).equal(),[`> ${n}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}},c$t=e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS}),u$t=Kr("Breadcrumb",e=>{const t=br(e,{});return l$t(t)},c$t);var W2e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function d$t(e){const{breadcrumbName:t,children:n}=e,r=W2e(e,["breadcrumbName","children"]),i=Object.assign({title:t},r);return n&&(i.menu={items:n.map(a=>{var{breadcrumbName:o}=a,s=W2e(a,["breadcrumbName"]);return Object.assign(Object.assign({},s),{title:o})})}),i}function f$t(e,t){return b.useMemo(()=>e||(t?t.map(d$t):null),[e,t])}var p$t=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const h$t=(e,t)=>{if(t===void 0)return t;let n=(t||"").replace(/^\//,"");return Object.keys(e).forEach(r=>{n=n.replace(`:${r}`,e[r])}),n},Pde=e=>{const{prefixCls:t,separator:n="/",style:r,className:i,rootClassName:a,routes:o,items:s,children:l,itemRender:c,params:u={}}=e,d=p$t(e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:f,direction:p,breadcrumb:h}=b.useContext(Sn);let m;const g=f("breadcrumb",t),[v,y,_]=u$t(g),S=f$t(s,o),C=s$t(g,c);if(S&&S.length>0){const T=[],A=s||o;m=S.map((I,R)=>{const{path:N,key:P,type:L,menu:$,overlay:D,onClick:z,className:U,separator:H,dropdownProps:M}=I,B=h$t(u,N);B!==void 0&&T.push(B);const k=P??R;if(L==="separator")return b.createElement(_z,{key:k},H);const F={},G=R===S.length-1;$?F.menu=$:D&&(F.overlay=D);let{href:q}=I;return T.length&&B!==void 0&&(q=`#/${T.join("/")}`),b.createElement(lUe,Object.assign({key:k},F,lo(I,{data:!0,aria:!0}),{className:U,dropdownProps:M,href:q,separator:G?"":n,onClick:z,prefixCls:g}),C(I,u,A,T,q))})}else if(l){const T=_l(l).length;m=_l(l).map((A,I)=>{if(!A)return A;const R=I===T-1;return as(A,{separator:R?"":n,key:I})})}const w=Oe(g,h?.className,{[`${g}-rtl`]:p==="rtl"},i,a,y,_),x=Object.assign(Object.assign({},h?.style),r);return v(b.createElement("nav",Object.assign({className:w,style:x},d),b.createElement("ol",null,m)))};Pde.Item=cUe;Pde.Separator=_z;var uUe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ns,function(){var n=1e3,r=6e4,i=36e5,a="millisecond",o="second",s="minute",l="hour",c="day",u="week",d="month",f="quarter",p="year",h="date",m="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(L){var $=["th","st","nd","rd"],D=L%100;return"["+L+($[(D-20)%10]||$[D]||$[0])+"]"}},_=function(L,$,D){var z=String(L);return!z||z.length>=$?L:""+Array($+1-z.length).join(D)+L},S={s:_,z:function(L){var $=-L.utcOffset(),D=Math.abs($),z=Math.floor(D/60),U=D%60;return($<=0?"+":"-")+_(z,2,"0")+":"+_(U,2,"0")},m:function L($,D){if($.date()<D.date())return-L(D,$);var z=12*(D.year()-$.year())+(D.month()-$.month()),U=$.clone().add(z,d),H=D-U<0,M=$.clone().add(z+(H?-1:1),d);return+(-(z+(D-U)/(H?U-M:M-U))||0)},a:function(L){return L<0?Math.ceil(L)||0:Math.floor(L)},p:function(L){return{M:d,y:p,w:u,d:c,D:h,h:l,m:s,s:o,ms:a,Q:f}[L]||String(L||"").toLowerCase().replace(/s$/,"")},u:function(L){return L===void 0}},C="en",w={};w[C]=y;var x="$isDayjsObject",T=function(L){return L instanceof N||!(!L||!L[x])},A=function L($,D,z){var U;if(!$)return C;if(typeof $=="string"){var H=$.toLowerCase();w[H]&&(U=H),D&&(w[H]=D,U=H);var M=$.split("-");if(!U&&M.length>1)return L(M[0])}else{var B=$.name;w[B]=$,U=B}return!z&&U&&(C=U),U||!z&&C},I=function(L,$){if(T(L))return L.clone();var D=typeof $=="object"?$:{};return D.date=L,D.args=arguments,new N(D)},R=S;R.l=A,R.i=T,R.w=function(L,$){return I(L,{locale:$.$L,utc:$.$u,x:$.$x,$offset:$.$offset})};var N=function(){function L(D){this.$L=A(D.locale,null,!0),this.parse(D),this.$x=this.$x||D.x||{},this[x]=!0}var $=L.prototype;return $.parse=function(D){this.$d=function(z){var U=z.date,H=z.utc;if(U===null)return new Date(NaN);if(R.u(U))return new Date;if(U instanceof Date)return new Date(U);if(typeof U=="string"&&!/Z$/i.test(U)){var M=U.match(g);if(M){var B=M[2]-1||0,k=(M[7]||"0").substring(0,3);return H?new Date(Date.UTC(M[1],B,M[3]||1,M[4]||0,M[5]||0,M[6]||0,k)):new Date(M[1],B,M[3]||1,M[4]||0,M[5]||0,M[6]||0,k)}}return new Date(U)}(D),this.init()},$.init=function(){var D=this.$d;this.$y=D.getFullYear(),this.$M=D.getMonth(),this.$D=D.getDate(),this.$W=D.getDay(),this.$H=D.getHours(),this.$m=D.getMinutes(),this.$s=D.getSeconds(),this.$ms=D.getMilliseconds()},$.$utils=function(){return R},$.isValid=function(){return this.$d.toString()!==m},$.isSame=function(D,z){var U=I(D);return this.startOf(z)<=U&&U<=this.endOf(z)},$.isAfter=function(D,z){return I(D)<this.startOf(z)},$.isBefore=function(D,z){return this.endOf(z)<I(D)},$.$g=function(D,z,U){return R.u(D)?this[z]:this.set(U,D)},$.unix=function(){return Math.floor(this.valueOf()/1e3)},$.valueOf=function(){return this.$d.getTime()},$.startOf=function(D,z){var U=this,H=!!R.u(z)||z,M=R.p(D),B=function(te,ae){var re=R.w(U.$u?Date.UTC(U.$y,ae,te):new Date(U.$y,ae,te),U);return H?re:re.endOf(c)},k=function(te,ae){return R.w(U.toDate()[te].apply(U.toDate("s"),(H?[0,0,0,0]:[23,59,59,999]).slice(ae)),U)},F=this.$W,G=this.$M,q=this.$D,W="set"+(this.$u?"UTC":"");switch(M){case p:return H?B(1,0):B(31,11);case d:return H?B(1,G):B(0,G+1);case u:var K=this.$locale().weekStart||0,J=(F<K?F+7:F)-K;return B(H?q-J:q+(6-J),G);case c:case h:return k(W+"Hours",0);case l:return k(W+"Minutes",1);case s:return k(W+"Seconds",2);case o:return k(W+"Milliseconds",3);default:return this.clone()}},$.endOf=function(D){return this.startOf(D,!1)},$.$set=function(D,z){var U,H=R.p(D),M="set"+(this.$u?"UTC":""),B=(U={},U[c]=M+"Date",U[h]=M+"Date",U[d]=M+"Month",U[p]=M+"FullYear",U[l]=M+"Hours",U[s]=M+"Minutes",U[o]=M+"Seconds",U[a]=M+"Milliseconds",U)[H],k=H===c?this.$D+(z-this.$W):z;if(H===d||H===p){var F=this.clone().set(h,1);F.$d[B](k),F.init(),this.$d=F.set(h,Math.min(this.$D,F.daysInMonth())).$d}else B&&this.$d[B](k);return this.init(),this},$.set=function(D,z){return this.clone().$set(D,z)},$.get=function(D){return this[R.p(D)]()},$.add=function(D,z){var U,H=this;D=Number(D);var M=R.p(z),B=function(G){var q=I(H);return R.w(q.date(q.date()+Math.round(G*D)),H)};if(M===d)return this.set(d,this.$M+D);if(M===p)return this.set(p,this.$y+D);if(M===c)return B(1);if(M===u)return B(7);var k=(U={},U[s]=r,U[l]=i,U[o]=n,U)[M]||1,F=this.$d.getTime()+D*k;return R.w(F,this)},$.subtract=function(D,z){return this.add(-1*D,z)},$.format=function(D){var z=this,U=this.$locale();if(!this.isValid())return U.invalidDate||m;var H=D||"YYYY-MM-DDTHH:mm:ssZ",M=R.z(this),B=this.$H,k=this.$m,F=this.$M,G=U.weekdays,q=U.months,W=U.meridiem,K=function(ae,re,ue,de){return ae&&(ae[re]||ae(z,H))||ue[re].slice(0,de)},J=function(ae){return R.s(B%12||12,ae,"0")},te=W||function(ae,re,ue){var de=ae<12?"AM":"PM";return ue?de.toLowerCase():de};return H.replace(v,function(ae,re){return re||function(ue){switch(ue){case"YY":return String(z.$y).slice(-2);case"YYYY":return R.s(z.$y,4,"0");case"M":return F+1;case"MM":return R.s(F+1,2,"0");case"MMM":return K(U.monthsShort,F,q,3);case"MMMM":return K(q,F);case"D":return z.$D;case"DD":return R.s(z.$D,2,"0");case"d":return String(z.$W);case"dd":return K(U.weekdaysMin,z.$W,G,2);case"ddd":return K(U.weekdaysShort,z.$W,G,3);case"dddd":return G[z.$W];case"H":return String(B);case"HH":return R.s(B,2,"0");case"h":return J(1);case"hh":return J(2);case"a":return te(B,k,!0);case"A":return te(B,k,!1);case"m":return String(k);case"mm":return R.s(k,2,"0");case"s":return String(z.$s);case"ss":return R.s(z.$s,2,"0");case"SSS":return R.s(z.$ms,3,"0");case"Z":return M}return null}(ae)||M.replace(":","")})},$.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},$.diff=function(D,z,U){var H,M=this,B=R.p(z),k=I(D),F=(k.utcOffset()-this.utcOffset())*r,G=this-k,q=function(){return R.m(M,k)};switch(B){case p:H=q()/12;break;case d:H=q();break;case f:H=q()/3;break;case u:H=(G-F)/6048e5;break;case c:H=(G-F)/864e5;break;case l:H=G/i;break;case s:H=G/r;break;case o:H=G/n;break;default:H=G}return U?H:R.a(H)},$.daysInMonth=function(){return this.endOf(d).$D},$.$locale=function(){return w[this.$L]},$.locale=function(D,z){if(!D)return this.$L;var U=this.clone(),H=A(D,z,!0);return H&&(U.$L=H),U},$.clone=function(){return R.w(this.$d,this)},$.toDate=function(){return new Date(this.valueOf())},$.toJSON=function(){return this.isValid()?this.toISOString():null},$.toISOString=function(){return this.$d.toISOString()},$.toString=function(){return this.$d.toUTCString()},L}(),P=N.prototype;return I.prototype=P,[["$ms",a],["$s",o],["$m",s],["$H",l],["$W",c],["$M",d],["$y",p],["$D",h]].forEach(function(L){P[L[1]]=function($){return this.$g($,L[0],L[1])}}),I.extend=function(L,$){return L.$i||(L($,N,I),L.$i=!0),I},I.locale=A,I.isDayjs=T,I.unix=function(L){return I(1e3*L)},I.en=w[C],I.Ls=w,I.p={},I})})(uUe);var m$t=uUe.exports;const Cr=qo(m$t);var dUe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ns,function(){return function(n,r){r.prototype.weekday=function(i){var a=this.$locale().weekStart||0,o=this.$W,s=(o<a?o+7:o)-a;return this.$utils().u(i)?s:this.subtract(s,"day").add(i,"day")}}})})(dUe);var g$t=dUe.exports;const v$t=qo(g$t);var fUe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ns,function(){return function(n,r,i){var a=r.prototype,o=function(d){return d&&(d.indexOf?d:d.s)},s=function(d,f,p,h,m){var g=d.name?d:d.$locale(),v=o(g[f]),y=o(g[p]),_=v||y.map(function(C){return C.slice(0,h)});if(!m)return _;var S=g.weekStart;return _.map(function(C,w){return _[(w+(S||0))%7]})},l=function(){return i.Ls[i.locale()]},c=function(d,f){return d.formats[f]||function(p){return p.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(h,m,g){return m||g.slice(1)})}(d.formats[f.toUpperCase()])},u=function(){var d=this;return{months:function(f){return f?f.format("MMMM"):s(d,"months")},monthsShort:function(f){return f?f.format("MMM"):s(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(f){return f?f.format("dddd"):s(d,"weekdays")},weekdaysMin:function(f){return f?f.format("dd"):s(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(f){return f?f.format("ddd"):s(d,"weekdaysShort","weekdays",3)},longDateFormat:function(f){return c(d.$locale(),f)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return u.bind(this)()},i.localeData=function(){var d=l();return{firstDayOfWeek:function(){return d.weekStart||0},weekdays:function(){return i.weekdays()},weekdaysShort:function(){return i.weekdaysShort()},weekdaysMin:function(){return i.weekdaysMin()},months:function(){return i.months()},monthsShort:function(){return i.monthsShort()},longDateFormat:function(f){return c(d,f)},meridiem:d.meridiem,ordinal:d.ordinal}},i.months=function(){return s(l(),"months")},i.monthsShort=function(){return s(l(),"monthsShort","months",3)},i.weekdays=function(d){return s(l(),"weekdays",null,null,d)},i.weekdaysShort=function(d){return s(l(),"weekdaysShort","weekdays",3,d)},i.weekdaysMin=function(d){return s(l(),"weekdaysMin","weekdays",2,d)}}})})(fUe);var y$t=fUe.exports;const b$t=qo(y$t);var pUe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ns,function(){var n="week",r="year";return function(i,a,o){var s=a.prototype;s.week=function(l){if(l===void 0&&(l=null),l!==null)return this.add(7*(l-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var u=o(this).startOf(r).add(1,r).date(c),d=o(this).endOf(n);if(u.isBefore(d))return 1}var f=o(this).startOf(r).date(c).startOf(n).subtract(1,"millisecond"),p=this.diff(f,n,!0);return p<0?o(this).startOf("week").week():Math.ceil(p)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(pUe);var _$t=pUe.exports;const S$t=qo(_$t);var hUe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ns,function(){return function(n,r){r.prototype.weekYear=function(){var i=this.month(),a=this.week(),o=this.year();return a===1&&i===11?o+1:i===0&&a>=52?o-1:o}}})})(hUe);var E$t=hUe.exports;const C$t=qo(E$t);var mUe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ns,function(){return function(n,r){var i=r.prototype,a=i.format;i.format=function(o){var s=this,l=this.$locale();if(!this.isValid())return a.bind(this)(o);var c=this.$utils(),u=(o||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(d){switch(d){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return l.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return l.ordinal(s.week(),"W");case"w":case"ww":return c.s(s.week(),d==="w"?1:2,"0");case"W":case"WW":return c.s(s.isoWeek(),d==="W"?1:2,"0");case"k":case"kk":return c.s(String(s.$H===0?24:s.$H),d==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return d}});return a.bind(this)(u)}}})})(mUe);var w$t=mUe.exports;const x$t=qo(w$t);var gUe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ns,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d\d/,a=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,s={},l=function(m){return(m=+m)+(m>68?1900:2e3)},c=function(m){return function(g){this[m]=+g}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(m){(this.zone||(this.zone={})).offset=function(g){if(!g||g==="Z")return 0;var v=g.match(/([+-]|\d\d)/g),y=60*v[1]+(+v[2]||0);return y===0?0:v[0]==="+"?-y:y}(m)}],d=function(m){var g=s[m];return g&&(g.indexOf?g:g.s.concat(g.f))},f=function(m,g){var v,y=s.meridiem;if(y){for(var _=1;_<=24;_+=1)if(m.indexOf(y(_,0,g))>-1){v=_>12;break}}else v=m===(g?"pm":"PM");return v},p={A:[o,function(m){this.afternoon=f(m,!1)}],a:[o,function(m){this.afternoon=f(m,!0)}],S:[/\d/,function(m){this.milliseconds=100*+m}],SS:[i,function(m){this.milliseconds=10*+m}],SSS:[/\d{3}/,function(m){this.milliseconds=+m}],s:[a,c("seconds")],ss:[a,c("seconds")],m:[a,c("minutes")],mm:[a,c("minutes")],H:[a,c("hours")],h:[a,c("hours")],HH:[a,c("hours")],hh:[a,c("hours")],D:[a,c("day")],DD:[i,c("day")],Do:[o,function(m){var g=s.ordinal,v=m.match(/\d+/);if(this.day=v[0],g)for(var y=1;y<=31;y+=1)g(y).replace(/\[|\]/g,"")===m&&(this.day=y)}],M:[a,c("month")],MM:[i,c("month")],MMM:[o,function(m){var g=d("months"),v=(d("monthsShort")||g.map(function(y){return y.slice(0,3)})).indexOf(m)+1;if(v<1)throw new Error;this.month=v%12||v}],MMMM:[o,function(m){var g=d("months").indexOf(m)+1;if(g<1)throw new Error;this.month=g%12||g}],Y:[/[+-]?\d+/,c("year")],YY:[i,function(m){this.year=l(m)}],YYYY:[/\d{4}/,c("year")],Z:u,ZZ:u};function h(m){var g,v;g=m,v=s&&s.formats;for(var y=(m=g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(A,I,R){var N=R&&R.toUpperCase();return I||v[R]||n[R]||v[N].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(P,L,$){return L||$.slice(1)})})).match(r),_=y.length,S=0;S<_;S+=1){var C=y[S],w=p[C],x=w&&w[0],T=w&&w[1];y[S]=T?{regex:x,parser:T}:C.replace(/^\[|\]$/g,"")}return function(A){for(var I={},R=0,N=0;R<_;R+=1){var P=y[R];if(typeof P=="string")N+=P.length;else{var L=P.regex,$=P.parser,D=A.slice(N),z=L.exec(D)[0];$.call(I,z),A=A.replace(z,"")}}return function(U){var H=U.afternoon;if(H!==void 0){var M=U.hours;H?M<12&&(U.hours+=12):M===12&&(U.hours=0),delete U.afternoon}}(I),I}}return function(m,g,v){v.p.customParseFormat=!0,m&&m.parseTwoDigitYear&&(l=m.parseTwoDigitYear);var y=g.prototype,_=y.parse;y.parse=function(S){var C=S.date,w=S.utc,x=S.args;this.$u=w;var T=x[1];if(typeof T=="string"){var A=x[2]===!0,I=x[3]===!0,R=A||I,N=x[2];I&&(N=x[2]),s=this.$locale(),!A&&N&&(s=v.Ls[N]),this.$d=function(D,z,U){try{if(["x","X"].indexOf(z)>-1)return new Date((z==="X"?1e3:1)*D);var H=h(z)(D),M=H.year,B=H.month,k=H.day,F=H.hours,G=H.minutes,q=H.seconds,W=H.milliseconds,K=H.zone,J=new Date,te=k||(M||B?1:J.getDate()),ae=M||J.getFullYear(),re=0;M&&!B||(re=B>0?B-1:J.getMonth());var ue=F||0,de=G||0,fe=q||0,ge=W||0;return K?new Date(Date.UTC(ae,re,te,ue,de,fe,ge+60*K.offset*1e3)):U?new Date(Date.UTC(ae,re,te,ue,de,fe,ge)):new Date(ae,re,te,ue,de,fe,ge)}catch{return new Date("")}}(C,T,w),this.init(),N&&N!==!0&&(this.$L=this.locale(N).$L),R&&C!=this.format(T)&&(this.$d=new Date("")),s={}}else if(T instanceof Array)for(var P=T.length,L=1;L<=P;L+=1){x[1]=T[L-1];var $=v.apply(this,x);if($.isValid()){this.$d=$.$d,this.$L=$.$L,this.init();break}L===P&&(this.$d=new Date(""))}else _.call(this,S)}}})})(gUe);var T$t=gUe.exports;const I$t=qo(T$t);Cr.extend(I$t);Cr.extend(x$t);Cr.extend(v$t);Cr.extend(b$t);Cr.extend(S$t);Cr.extend(C$t);Cr.extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(a){var o=(a||"").replace("Wo","wo");return r.bind(this)(o)}});var A$t={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},m2=function(t){var n=A$t[t];return n||t.split("_")[0]},Y2e=function(){rDe(!1,"Not match any format. Please help to fire a issue about this.")},R$t={getNow:function(){return Cr()},getFixedDate:function(t){return Cr(t,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(t){return t.endOf("month")},getWeekDay:function(t){var n=t.locale("en");return n.weekday()+n.localeData().firstDayOfWeek()},getYear:function(t){return t.year()},getMonth:function(t){return t.month()},getDate:function(t){return t.date()},getHour:function(t){return t.hour()},getMinute:function(t){return t.minute()},getSecond:function(t){return t.second()},getMillisecond:function(t){return t.millisecond()},addYear:function(t,n){return t.add(n,"year")},addMonth:function(t,n){return t.add(n,"month")},addDate:function(t,n){return t.add(n,"day")},setYear:function(t,n){return t.year(n)},setMonth:function(t,n){return t.month(n)},setDate:function(t,n){return t.date(n)},setHour:function(t,n){return t.hour(n)},setMinute:function(t,n){return t.minute(n)},setSecond:function(t,n){return t.second(n)},setMillisecond:function(t,n){return t.millisecond(n)},isAfter:function(t,n){return t.isAfter(n)},isValidate:function(t){return t.isValid()},locale:{getWeekFirstDay:function(t){return Cr().locale(m2(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,n){return n.locale(m2(t)).weekday(0)},getWeek:function(t,n){return n.locale(m2(t)).week()},getShortWeekDays:function(t){return Cr().locale(m2(t)).localeData().weekdaysMin()},getShortMonths:function(t){return Cr().locale(m2(t)).localeData().monthsShort()},format:function(t,n,r){return n.locale(m2(t)).format(r)},parse:function(t,n,r){for(var i=m2(t),a=0;a<r.length;a+=1){var o=r[a],s=n;if(o.includes("wo")||o.includes("Wo")){for(var l=s.split("-")[0],c=s.split("-")[1],u=Cr(l,"YYYY").startOf("year").locale(i),d=0;d<=52;d+=1){var f=u.add(d,"week");if(f.format("Wo")===c)return f}return Y2e(),null}var p=Cr(s,o,!0).locale(i);if(p.isValid())return p}return n&&Y2e(),null}}};function Sz(e,t){return e!==void 0?e:t?"bottomRight":"bottomLeft"}function vUe(e,t){var n=Sz(e,t),r=n?.toLowerCase().endsWith("right"),i=r?"insetInlineEnd":"insetInlineStart";return t&&(i=["insetInlineStart","insetInlineEnd"].find(function(a){return a!==i})),i}var Cm=b.createContext(null),N$t={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function yUe(e){var t=e.popupElement,n=e.popupStyle,r=e.popupClassName,i=e.popupAlign,a=e.transitionName,o=e.getPopupContainer,s=e.children,l=e.range,c=e.placement,u=e.builtinPlacements,d=u===void 0?N$t:u,f=e.direction,p=e.visible,h=e.onClose,m=b.useContext(Cm),g=m.prefixCls,v="".concat(g,"-dropdown"),y=Sz(c,f==="rtl");return b.createElement(hT,{showAction:[],hideAction:["click"],popupPlacement:y,builtinPlacements:d,prefixCls:v,popupTransitionName:a,popup:t,popupAlign:i,popupVisible:p,popupClassName:Oe(r,be(be({},"".concat(v,"-range"),l),"".concat(v,"-rtl"),f==="rtl")),popupStyle:n,stretch:"minWidth",getPopupContainer:o,onPopupVisibleChange:function(S){S||h()}},s)}function kde(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",r=String(e);r.length<t;)r="".concat(n).concat(r);return r}function CC(e){return e==null?[]:Array.isArray(e)?e:[e]}function cR(e,t,n){var r=Tt(e);return r[t]=n,r}function Ez(e,t){var n={},r=t||Object.keys(e);return r.forEach(function(i){e[i]!==void 0&&(n[i]=e[i])}),n}function bUe(e,t,n){if(n)return n;switch(e){case"time":return t.fieldTimeFormat;case"datetime":return t.fieldDateTimeFormat;case"month":return t.fieldMonthFormat;case"year":return t.fieldYearFormat;case"quarter":return t.fieldQuarterFormat;case"week":return t.fieldWeekFormat;default:return t.fieldDateFormat}}function _Ue(e,t,n){var r=n!==void 0?n:t[t.length-1],i=t.find(function(a){return e[a]});return r!==i?e[i]:void 0}function SUe(e){return Ez(e,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function Mde(e,t,n,r){var i=b.useMemo(function(){return e||function(o,s){var l=o;return t&&s.type==="date"?t(l,s.today):n&&s.type==="month"?n(l,s.locale):s.originNode}},[e,n,t]),a=b.useCallback(function(o,s){return i(o,we(we({},s),{},{range:r}))},[i,r]);return a}function EUe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=b.useState([!1,!1]),i=Fe(r,2),a=i[0],o=i[1],s=function(u,d){o(function(f){return cR(f,d,u)})},l=b.useMemo(function(){return a.map(function(c,u){if(c)return!0;var d=e[u];return d?!!(!n[u]&&!d||d&&t(d,{activeIndex:u})):!1})},[e,a,t,n]);return[l,s]}function CUe(e,t,n,r,i){var a="",o=[];return e&&o.push(i?"hh":"HH"),t&&o.push("mm"),n&&o.push("ss"),a=o.join(":"),r&&(a+=".SSS"),i&&(a+=" A"),a}function O$t(e,t,n,r,i,a){var o=e.fieldDateTimeFormat,s=e.fieldDateFormat,l=e.fieldTimeFormat,c=e.fieldMonthFormat,u=e.fieldYearFormat,d=e.fieldWeekFormat,f=e.fieldQuarterFormat,p=e.yearFormat,h=e.cellYearFormat,m=e.cellQuarterFormat,g=e.dayFormat,v=e.cellDateFormat,y=CUe(t,n,r,i,a);return we(we({},e),{},{fieldDateTimeFormat:o||"YYYY-MM-DD ".concat(y),fieldDateFormat:s||"YYYY-MM-DD",fieldTimeFormat:l||y,fieldMonthFormat:c||"YYYY-MM",fieldYearFormat:u||"YYYY",fieldWeekFormat:d||"gggg-wo",fieldQuarterFormat:f||"YYYY-[Q]Q",yearFormat:p||"YYYY",cellYearFormat:h||"YYYY",cellQuarterFormat:m||"[Q]Q",cellDateFormat:v||g||"D"})}function wUe(e,t){var n=t.showHour,r=t.showMinute,i=t.showSecond,a=t.showMillisecond,o=t.use12Hours;return se.useMemo(function(){return O$t(e,n,r,i,a,o)},[e,n,r,i,a,o])}function W4(e,t,n){return n??t.some(function(r){return e.includes(r)})}var L$t=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function P$t(e){var t=Ez(e,L$t),n=e.format,r=e.picker,i=null;return n&&(i=n,Array.isArray(i)&&(i=i[0]),i=cn(i)==="object"?i.format:i),r==="time"&&(t.format=i),[t,i]}function k$t(e){return e&&typeof e=="string"}function xUe(e,t,n,r){return[e,t,n,r].some(function(i){return i!==void 0})}function TUe(e,t,n,r,i){var a=t,o=n,s=r;if(!e&&!a&&!o&&!s&&!i)a=!0,o=!0,s=!0;else if(e){var l,c,u,d=[a,o,s].some(function(h){return h===!1}),f=[a,o,s].some(function(h){return h===!0}),p=d?!0:!f;a=(l=a)!==null&&l!==void 0?l:p,o=(c=o)!==null&&c!==void 0?c:p,s=(u=s)!==null&&u!==void 0?u:p}return[a,o,s,i]}function IUe(e){var t=e.showTime,n=P$t(e),r=Fe(n,2),i=r[0],a=r[1],o=t&&cn(t)==="object"?t:{},s=we(we({defaultOpenValue:o.defaultOpenValue||o.defaultValue},i),o),l=s.showMillisecond,c=s.showHour,u=s.showMinute,d=s.showSecond,f=xUe(c,u,d,l),p=TUe(f,c,u,d,l),h=Fe(p,3);return c=h[0],u=h[1],d=h[2],[s,we(we({},s),{},{showHour:c,showMinute:u,showSecond:d,showMillisecond:l}),s.format,a]}function AUe(e,t,n,r,i){var a=e==="time";if(e==="datetime"||a){for(var o=r,s=bUe(e,i,null),l=s,c=[t,n],u=0;u<c.length;u+=1){var d=CC(c[u])[0];if(k$t(d)){l=d;break}}var f=o.showHour,p=o.showMinute,h=o.showSecond,m=o.showMillisecond,g=o.use12Hours,v=W4(l,["a","A","LT","LLL","LTS"],g),y=xUe(f,p,h,m);y||(f=W4(l,["H","h","k","LT","LLL"]),p=W4(l,["m","LT","LLL"]),h=W4(l,["s","LTS"]),m=W4(l,["SSS"]));var _=TUe(y,f,p,h,m),S=Fe(_,3);f=S[0],p=S[1],h=S[2];var C=t||CUe(f,p,h,m,v);return we(we({},o),{},{format:C,showHour:f,showMinute:p,showSecond:h,showMillisecond:m,use12Hours:v})}return null}function M$t(e,t,n){if(t===!1)return null;var r=t&&cn(t)==="object"?t:{};return r.clearIcon||n||b.createElement("span",{className:"".concat(e,"-clear-btn")})}var rq=7;function T_(e,t,n){return!e&&!t||e===t?!0:!e||!t?!1:n()}function mie(e,t,n){return T_(t,n,function(){var r=Math.floor(e.getYear(t)/10),i=Math.floor(e.getYear(n)/10);return r===i})}function $E(e,t,n){return T_(t,n,function(){return e.getYear(t)===e.getYear(n)})}function K2e(e,t){var n=Math.floor(e.getMonth(t)/3);return n+1}function D$t(e,t,n){return T_(t,n,function(){return $E(e,t,n)&&K2e(e,t)===K2e(e,n)})}function Dde(e,t,n){return T_(t,n,function(){return $E(e,t,n)&&e.getMonth(t)===e.getMonth(n)})}function $de(e,t,n){return T_(t,n,function(){return $E(e,t,n)&&Dde(e,t,n)&&e.getDate(t)===e.getDate(n)})}function RUe(e,t,n){return T_(t,n,function(){return e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)})}function NUe(e,t,n){return T_(t,n,function(){return $de(e,t,n)&&RUe(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n)})}function hA(e,t,n,r){return T_(n,r,function(){var i=e.locale.getWeekFirstDate(t,n),a=e.locale.getWeekFirstDate(t,r);return $E(e,i,a)&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r)})}function Zc(e,t,n,r,i){switch(i){case"date":return $de(e,n,r);case"week":return hA(e,t.locale,n,r);case"month":return Dde(e,n,r);case"quarter":return D$t(e,n,r);case"year":return $E(e,n,r);case"decade":return mie(e,n,r);case"time":return RUe(e,n,r);default:return NUe(e,n,r)}}function Cz(e,t,n,r){return!t||!n||!r?!1:e.isAfter(r,t)&&e.isAfter(n,r)}function aP(e,t,n,r,i){return Zc(e,t,n,r,i)?!0:e.isAfter(n,r)}function $$t(e,t,n){var r=t.locale.getWeekFirstDay(e),i=t.setDate(n,1),a=t.getWeekDay(i),o=t.addDate(i,r-a);return t.getMonth(o)===t.getMonth(n)&&t.getDate(o)>1&&(o=t.addDate(o,-7)),o}function Rl(e,t){var n=t.generateConfig,r=t.locale,i=t.format;return e?typeof i=="function"?i(e):n.locale.format(r.locale,e,i):""}function V$(e,t,n){var r=t,i=["getHour","getMinute","getSecond","getMillisecond"],a=["setHour","setMinute","setSecond","setMillisecond"];return a.forEach(function(o,s){n?r=e[o](r,e[i[s]](n)):r=e[o](r,0)}),r}function F$t(e,t,n,r,i){var a=gr(function(o,s){return!!(n&&n(o,s)||r&&e.isAfter(r,o)&&!Zc(e,t,r,o,s.type)||i&&e.isAfter(o,i)&&!Zc(e,t,i,o,s.type))});return a}function B$t(e,t,n){return b.useMemo(function(){var r=bUe(e,t,n),i=CC(r),a=i[0],o=cn(a)==="object"&&a.type==="mask"?a.format:null;return[i.map(function(s){return typeof s=="string"||typeof s=="function"?s:s.format}),o]},[e,t,n])}function j$t(e,t,n){return typeof e[0]=="function"||n?!0:t}function z$t(e,t,n,r){var i=gr(function(a,o){var s=we({type:t},o);if(delete s.activeIndex,!e.isValidate(a)||n&&n(a,s))return!0;if((t==="date"||t==="time")&&r){var l,c=o&&o.activeIndex===1?"end":"start",u=((l=r.disabledTime)===null||l===void 0?void 0:l.call(r,a,c,{from:s.from}))||{},d=u.disabledHours,f=u.disabledMinutes,p=u.disabledSeconds,h=u.disabledMilliseconds,m=r.disabledHours,g=r.disabledMinutes,v=r.disabledSeconds,y=d||m,_=f||g,S=p||v,C=e.getHour(a),w=e.getMinute(a),x=e.getSecond(a),T=e.getMillisecond(a);if(y&&y().includes(C)||_&&_(C).includes(w)||S&&S(C,w).includes(x)||h&&h(C,w,x).includes(T))return!0}return!1});return i}function oP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=b.useMemo(function(){var r=e&&CC(e);return t&&r&&(r[1]=r[1]||r[0]),r},[e,t]);return n}function OUe(e,t){var n=e.generateConfig,r=e.locale,i=e.picker,a=i===void 0?"date":i,o=e.prefixCls,s=o===void 0?"rc-picker":o,l=e.styles,c=l===void 0?{}:l,u=e.classNames,d=u===void 0?{}:u,f=e.order,p=f===void 0?!0:f,h=e.components,m=h===void 0?{}:h,g=e.inputRender,v=e.allowClear,y=e.clearIcon,_=e.needConfirm,S=e.multiple,C=e.format,w=e.inputReadOnly,x=e.disabledDate,T=e.minDate,A=e.maxDate,I=e.showTime,R=e.value,N=e.defaultValue,P=e.pickerValue,L=e.defaultPickerValue,$=oP(R),D=oP(N),z=oP(P),U=oP(L),H=a==="date"&&I?"datetime":a,M=H==="time"||H==="datetime",B=M||S,k=_??M,F=IUe(e),G=Fe(F,4),q=G[0],W=G[1],K=G[2],J=G[3],te=wUe(r,W),ae=b.useMemo(function(){return AUe(H,K,J,q,te)},[H,K,J,q,te]),re=b.useMemo(function(){return we(we({},e),{},{prefixCls:s,locale:te,picker:a,styles:c,classNames:d,order:p,components:we({input:g},m),clearIcon:M$t(s,v,y),showTime:ae,value:$,defaultValue:D,pickerValue:z,defaultPickerValue:U},t?.())},[e]),ue=B$t(H,te,C),de=Fe(ue,2),fe=de[0],ge=de[1],oe=j$t(fe,w,S),Ee=F$t(n,r,x,T,A),ce=z$t(n,a,Ee,ae),he=b.useMemo(function(){return we(we({},re),{},{needConfirm:k,inputReadOnly:oe,disabledDate:Ee})},[re,k,oe,Ee]);return[he,H,B,fe,ge,ce]}function U$t(e,t,n){var r=qr(t,{value:e}),i=Fe(r,2),a=i[0],o=i[1],s=se.useRef(e),l=se.useRef(),c=function(){Tr.cancel(l.current)},u=gr(function(){o(s.current),n&&a!==s.current&&n(s.current)}),d=gr(function(f,p){c(),s.current=f,f||p?u():l.current=Tr(u)});return se.useEffect(function(){return c},[]),[a,d]}function LUe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,i=n.every(function(u){return u})?!1:e,a=U$t(i,t||!1,r),o=Fe(a,2),s=o[0],l=o[1];function c(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!d.inherit||s)&&l(u,d.force)}return[s,c]}function PUe(e){var t=b.useRef();return b.useImperativeHandle(e,function(){var n;return{nativeElement:(n=t.current)===null||n===void 0?void 0:n.nativeElement,focus:function(i){var a;(a=t.current)===null||a===void 0||a.focus(i)},blur:function(){var i;(i=t.current)===null||i===void 0||i.blur()}}}),t}function kUe(e,t){return b.useMemo(function(){return e||(t?(Ra(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=Fe(n,2),i=r[0],a=r[1];return{label:i,value:a}})):[])},[e,t])}function Fde(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=b.useRef(t);r.current=t,rE(function(){if(e)r.current(e);else{var i=Tr(function(){r.current(e)},n);return function(){Tr.cancel(i)}}},[e])}function MUe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=b.useState(0),i=Fe(r,2),a=i[0],o=i[1],s=b.useState(!1),l=Fe(s,2),c=l[0],u=l[1],d=b.useRef([]),f=b.useRef(null),p=function(v){u(v)},h=function(v){return v&&(f.current=v),f.current},m=function(v){var y=d.current,_=new Set(y.filter(function(C){return v[C]||t[C]})),S=y[y.length-1]===0?1:0;return _.size>=2||e[S]?null:S};return Fde(c||n,function(){c||(d.current=[])}),b.useEffect(function(){c&&d.current.push(a)},[c,a]),[c,p,h,a,o,m,d.current]}function H$t(e,t,n,r,i,a){var o=n[n.length-1],s=function(c,u){var d=Fe(e,2),f=d[0],p=d[1],h=we(we({},u),{},{from:_Ue(e,n)});return o===1&&t[0]&&f&&!Zc(r,i,f,c,h.type)&&r.isAfter(f,c)||o===0&&t[1]&&p&&!Zc(r,i,p,c,h.type)&&r.isAfter(c,p)?!0:a?.(c,h)};return s}function mA(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,r*10);case"decade":return e.addYear(n,r*100);default:return n}}var iq=[];function DUe(e,t,n,r,i,a,o,s){var l=arguments.length>8&&arguments[8]!==void 0?arguments[8]:iq,c=arguments.length>9&&arguments[9]!==void 0?arguments[9]:iq,u=arguments.length>10&&arguments[10]!==void 0?arguments[10]:iq,d=arguments.length>11?arguments[11]:void 0,f=arguments.length>12?arguments[12]:void 0,p=arguments.length>13?arguments[13]:void 0,h=o==="time",m=a||0,g=function(z){var U=e.getNow();return h&&(U=V$(e,U)),l[z]||n[z]||U},v=Fe(c,2),y=v[0],_=v[1],S=qr(function(){return g(0)},{value:y}),C=Fe(S,2),w=C[0],x=C[1],T=qr(function(){return g(1)},{value:_}),A=Fe(T,2),I=A[0],R=A[1],N=b.useMemo(function(){var D=[w,I][m];return h?D:V$(e,D,u[m])},[h,w,I,m,e,u]),P=function(z){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",H=[x,R][m];H(z);var M=[w,I];M[m]=z,d&&(!Zc(e,t,w,M[0],o)||!Zc(e,t,I,M[1],o))&&d(M,{source:U,range:m===1?"end":"start",mode:r})},L=function(z,U){if(s){var H={date:"month",week:"month",month:"year",quarter:"year"},M=H[o];if(M&&!Zc(e,t,z,U,M))return mA(e,o,U,-1);if(o==="year"&&z){var B=Math.floor(e.getYear(z)/10),k=Math.floor(e.getYear(U)/10);if(B!==k)return mA(e,o,U,-1)}}return U},$=b.useRef(null);return kr(function(){if(i&&!l[m]){var D=h?null:e.getNow();if($.current!==null&&$.current!==m?D=[w,I][m^1]:n[m]?D=m===0?n[0]:L(n[0],n[1]):n[m^1]&&(D=n[m^1]),D){f&&e.isAfter(f,D)&&(D=f);var z=s?mA(e,o,D,1):D;p&&e.isAfter(z,p)&&(D=s?mA(e,o,p,-1):p),P(D,"reset")}}},[i,m,n[m]]),b.useEffect(function(){i?$.current=m:$.current=null},[i,m]),kr(function(){i&&l&&l[m]&&P(l[m],"reset")},[i,m]),[N,P]}function $Ue(e,t){var n=b.useRef(e),r=b.useState({}),i=Fe(r,2),a=i[1],o=function(c){return c&&t!==void 0?t:n.current},s=function(c){n.current=c,a({})};return[o,s,o(!0)]}var V$t=[];function FUe(e,t,n){var r=function(o){return o.map(function(s){return Rl(s,{generateConfig:e,locale:t,format:n[0]})})},i=function(o,s){for(var l=Math.max(o.length,s.length),c=-1,u=0;u<l;u+=1){var d=o[u]||null,f=s[u]||null;if(d!==f&&!NUe(e,d,f)){c=u;break}}return[c<0,c!==0]};return[r,i]}function BUe(e,t){return Tt(e).sort(function(n,r){return t.isAfter(n,r)?1:-1})}function G$t(e){var t=$Ue(e),n=Fe(t,2),r=n[0],i=n[1],a=gr(function(){i(e)});return b.useEffect(function(){a()},[e]),[r,i]}function jUe(e,t,n,r,i,a,o,s,l){var c=qr(a,{value:o}),u=Fe(c,2),d=u[0],f=u[1],p=d||V$t,h=G$t(p),m=Fe(h,2),g=m[0],v=m[1],y=FUe(e,t,n),_=Fe(y,2),S=_[0],C=_[1],w=gr(function(T){var A=Tt(T);if(r)for(var I=0;I<2;I+=1)A[I]=A[I]||null;else i&&(A=BUe(A.filter(function(D){return D}),e));var R=C(g(),A),N=Fe(R,2),P=N[0],L=N[1];if(!P&&(v(A),s)){var $=S(A);s(A,$,{range:L?"end":"start"})}}),x=function(){l&&l(g())};return[p,f,g,w,x]}function zUe(e,t,n,r,i,a,o,s,l,c){var u=e.generateConfig,d=e.locale,f=e.picker,p=e.onChange,h=e.allowEmpty,m=e.order,g=a.some(function(P){return P})?!1:m,v=FUe(u,d,o),y=Fe(v,2),_=y[0],S=y[1],C=$Ue(t),w=Fe(C,2),x=w[0],T=w[1],A=gr(function(){T(t)});b.useEffect(function(){A()},[t]);var I=gr(function(P){var L=P===null,$=Tt(P||x());if(L)for(var D=Math.max(a.length,$.length),z=0;z<D;z+=1)a[z]||($[z]=null);g&&$[0]&&$[1]&&($=BUe($,u)),i($);var U=$,H=Fe(U,2),M=H[0],B=H[1],k=!M,F=!B,G=h?(!k||h[0])&&(!F||h[1]):!0,q=!m||k||F||Zc(u,d,M,B,f)||u.isAfter(B,M),W=(!M||!c(M,{activeIndex:0}))&&(!B||!c(B,{from:M,activeIndex:1})),K=L||G&&q&&W;if(K){n($);var J=S($,t),te=Fe(J,1),ae=te[0];p&&!ae&&p(L&&$.every(function(re){return!re})?null:$,_($))}return K}),R=gr(function(P,L){var $=cR(x(),P,r()[P]);T($),L&&I()}),N=!s&&!l;return Fde(!N,function(){N&&(I(),i(t),A())},2),[R,I]}function UUe(e,t,n,r,i){return t!=="date"&&t!=="time"?!1:n!==void 0?n:r!==void 0?r:!i&&(e==="date"||e==="time")}function q$t(e,t,n,r,i,a){var o=e;function s(d,f,p){var h=a[d](o),m=p.find(function(_){return _.value===h});if(!m||m.disabled){var g=p.filter(function(_){return!_.disabled}),v=Tt(g).reverse(),y=v.find(function(_){return _.value<=h})||g[0];y&&(h=y.value,o=a[f](o,h))}return h}var l=s("getHour","setHour",t()),c=s("getMinute","setMinute",n(l)),u=s("getSecond","setSecond",r(l,c));return s("getMillisecond","setMillisecond",i(l,c,u)),o}function sP(){return[]}function lP(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,o=[],s=n>=1?n|0:1,l=e;l<=t;l+=s){var c=i.includes(l);(!c||!r)&&o.push({label:kde(l,a),value:l,disabled:c})}return o}function Bde(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t||{},i=r.use12Hours,a=r.hourStep,o=a===void 0?1:a,s=r.minuteStep,l=s===void 0?1:s,c=r.secondStep,u=c===void 0?1:c,d=r.millisecondStep,f=d===void 0?100:d,p=r.hideDisabledOptions,h=r.disabledTime,m=r.disabledHours,g=r.disabledMinutes,v=r.disabledSeconds,y=b.useMemo(function(){return n||e.getNow()},[n,e]),_=b.useCallback(function(U){var H=h?.(U)||{};return[H.disabledHours||m||sP,H.disabledMinutes||g||sP,H.disabledSeconds||v||sP,H.disabledMilliseconds||sP]},[h,m,g,v]),S=b.useMemo(function(){return _(y)},[y,_]),C=Fe(S,4),w=C[0],x=C[1],T=C[2],A=C[3],I=b.useCallback(function(U,H,M,B){var k=lP(0,23,o,p,U()),F=i?k.map(function(K){return we(we({},K),{},{label:kde(K.value%12||12,2)})}):k,G=function(J){return lP(0,59,l,p,H(J))},q=function(J,te){return lP(0,59,u,p,M(J,te))},W=function(J,te,ae){return lP(0,999,f,p,B(J,te,ae),3)};return[F,G,q,W]},[p,o,i,f,l,u]),R=b.useMemo(function(){return I(w,x,T,A)},[I,w,x,T,A]),N=Fe(R,4),P=N[0],L=N[1],$=N[2],D=N[3],z=function(H,M){var B=function(){return P},k=L,F=$,G=D;if(M){var q=_(M),W=Fe(q,4),K=W[0],J=W[1],te=W[2],ae=W[3],re=I(K,J,te,ae),ue=Fe(re,4),de=ue[0],fe=ue[1],ge=ue[2],oe=ue[3];B=function(){return de},k=fe,F=ge,G=oe}var Ee=q$t(H,B,k,F,G,e);return Ee};return[z,P,L,$,D]}function W$t(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,i=e.showNow,a=e.showTime,o=e.onSubmit,s=e.onNow,l=e.invalid,c=e.needConfirm,u=e.generateConfig,d=e.disabledDate,f=b.useContext(Cm),p=f.prefixCls,h=f.locale,m=f.button,g=m===void 0?"button":m,v=u.getNow(),y=Bde(u,a,v),_=Fe(y,1),S=_[0],C=r?.(t),w=d(v,{type:t}),x=function(){if(!w){var L=S(v);s(L)}},T="".concat(p,"-now"),A="".concat(T,"-btn"),I=i&&b.createElement("li",{className:T},b.createElement("a",{className:Oe(A,w&&"".concat(A,"-disabled")),"aria-disabled":w,onClick:x},n==="date"?h.today:h.now)),R=c&&b.createElement("li",{className:"".concat(p,"-ok")},b.createElement(g,{disabled:l,onClick:o},h.ok)),N=(I||R)&&b.createElement("ul",{className:"".concat(p,"-ranges")},I,R);return!C&&!N?null:b.createElement("div",{className:"".concat(p,"-footer")},C&&b.createElement("div",{className:"".concat(p,"-footer-extra")},C),N)}function HUe(e,t,n){function r(i,a){var o=i.findIndex(function(l){return Zc(e,t,l,a,n)});if(o===-1)return[].concat(Tt(i),[a]);var s=Tt(i);return s.splice(o,1),s}return r}var wC=b.createContext(null);function wz(){return b.useContext(wC)}function yT(e,t){var n=e.prefixCls,r=e.generateConfig,i=e.locale,a=e.disabledDate,o=e.minDate,s=e.maxDate,l=e.cellRender,c=e.hoverValue,u=e.hoverRangeValue,d=e.onHover,f=e.values,p=e.pickerValue,h=e.onSelect,m=e.prevIcon,g=e.nextIcon,v=e.superPrevIcon,y=e.superNextIcon,_=r.getNow(),S={now:_,values:f,pickerValue:p,prefixCls:n,disabledDate:a,minDate:o,maxDate:s,cellRender:l,hoverValue:c,hoverRangeValue:u,onHover:d,locale:i,generateConfig:r,onSelect:h,panelType:t,prevIcon:m,nextIcon:g,superPrevIcon:v,superNextIcon:y};return[S,_]}var Mb=b.createContext({});function RO(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,i=e.getCellDate,a=e.prefixColumn,o=e.rowClassName,s=e.titleFormat,l=e.getCellText,c=e.getCellClassName,u=e.headerCells,d=e.cellSelection,f=d===void 0?!0:d,p=e.disabledDate,h=wz(),m=h.prefixCls,g=h.panelType,v=h.now,y=h.disabledDate,_=h.cellRender,S=h.onHover,C=h.hoverValue,w=h.hoverRangeValue,x=h.generateConfig,T=h.values,A=h.locale,I=h.onSelect,R=p||y,N="".concat(m,"-cell"),P=b.useContext(Mb),L=P.onCellDblClick,$=function(F){return T.some(function(G){return G&&Zc(x,A,F,G,g)})},D=[],z=0;z<t;z+=1){for(var U=[],H=void 0,M=function(){var F=z*n+B,G=i(r,F),q=R?.(G,{type:g});B===0&&(H=G,a&&U.push(a(H)));var W=!1,K=!1,J=!1;if(f&&w){var te=Fe(w,2),ae=te[0],re=te[1];W=Cz(x,ae,re,G),K=Zc(x,A,G,ae,g),J=Zc(x,A,G,re,g)}var ue=s?Rl(G,{locale:A,format:s,generateConfig:x}):void 0,de=b.createElement("div",{className:"".concat(N,"-inner")},l(G));U.push(b.createElement("td",{key:B,title:ue,className:Oe(N,we(be(be(be(be(be(be({},"".concat(N,"-disabled"),q),"".concat(N,"-hover"),(C||[]).some(function(fe){return Zc(x,A,G,fe,g)})),"".concat(N,"-in-range"),W&&!K&&!J),"".concat(N,"-range-start"),K),"".concat(N,"-range-end"),J),"".concat(m,"-cell-selected"),!w&&g!=="week"&&$(G)),c(G))),onClick:function(){q||I(G)},onDoubleClick:function(){!q&&L&&L()},onMouseEnter:function(){q||S?.(G)},onMouseLeave:function(){q||S?.(null)}},_?_(G,{prefixCls:m,originNode:de,today:v,type:g,locale:A}):de))},B=0;B<n;B+=1)M();D.push(b.createElement("tr",{key:z,className:o?.(H)},U))}return b.createElement("div",{className:"".concat(m,"-body")},b.createElement("table",{className:"".concat(m,"-content")},u&&b.createElement("thead",null,b.createElement("tr",null,u)),b.createElement("tbody",null,D)))}var cP={visibility:"hidden"};function bT(e){var t=e.offset,n=e.superOffset,r=e.onChange,i=e.getStart,a=e.getEnd,o=e.children,s=wz(),l=s.prefixCls,c=s.prevIcon,u=c===void 0?"‹":c,d=s.nextIcon,f=d===void 0?"›":d,p=s.superPrevIcon,h=p===void 0?"«":p,m=s.superNextIcon,g=m===void 0?"»":m,v=s.minDate,y=s.maxDate,_=s.generateConfig,S=s.locale,C=s.pickerValue,w=s.panelType,x="".concat(l,"-header"),T=b.useContext(Mb),A=T.hidePrev,I=T.hideNext,R=T.hideHeader,N=b.useMemo(function(){if(!v||!t||!a)return!1;var k=a(t(-1,C));return!aP(_,S,k,v,w)},[v,t,C,a,_,S,w]),P=b.useMemo(function(){if(!v||!n||!a)return!1;var k=a(n(-1,C));return!aP(_,S,k,v,w)},[v,n,C,a,_,S,w]),L=b.useMemo(function(){if(!y||!t||!i)return!1;var k=i(t(1,C));return!aP(_,S,y,k,w)},[y,t,C,i,_,S,w]),$=b.useMemo(function(){if(!y||!n||!i)return!1;var k=i(n(1,C));return!aP(_,S,y,k,w)},[y,n,C,i,_,S,w]),D=function(F){t&&r(t(F,C))},z=function(F){n&&r(n(F,C))};if(R)return null;var U="".concat(x,"-prev-btn"),H="".concat(x,"-next-btn"),M="".concat(x,"-super-prev-btn"),B="".concat(x,"-super-next-btn");return b.createElement("div",{className:x},n&&b.createElement("button",{type:"button","aria-label":"super-prev-year",onClick:function(){return z(-1)},tabIndex:-1,className:Oe(M,P&&"".concat(M,"-disabled")),disabled:P,style:A?cP:{}},h),t&&b.createElement("button",{type:"button","aria-label":"prev-year",onClick:function(){return D(-1)},tabIndex:-1,className:Oe(U,N&&"".concat(U,"-disabled")),disabled:N,style:A?cP:{}},u),b.createElement("div",{className:"".concat(x,"-view")},o),t&&b.createElement("button",{type:"button","aria-label":"next-year",onClick:function(){return D(1)},tabIndex:-1,className:Oe(H,L&&"".concat(H,"-disabled")),disabled:L,style:I?cP:{}},f),n&&b.createElement("button",{type:"button","aria-label":"super-next-year",onClick:function(){return z(1)},tabIndex:-1,className:Oe(B,$&&"".concat(B,"-disabled")),disabled:$,style:I?cP:{}},g))}function xz(e){var t=e.prefixCls,n=e.panelName,r=n===void 0?"date":n,i=e.locale,a=e.generateConfig,o=e.pickerValue,s=e.onPickerValueChange,l=e.onModeChange,c=e.mode,u=c===void 0?"date":c,d=e.disabledDate,f=e.onSelect,p=e.onHover,h=e.showWeek,m="".concat(t,"-").concat(r,"-panel"),g="".concat(t,"-cell"),v=u==="week",y=yT(e,u),_=Fe(y,2),S=_[0],C=_[1],w=a.locale.getWeekFirstDay(i.locale),x=a.setDate(o,1),T=$$t(i.locale,a,x),A=a.getMonth(o),I=h===void 0?v:h,R=I?function(k){var F=d?.(k,{type:"week"});return b.createElement("td",{key:"week",className:Oe(g,"".concat(g,"-week"),be({},"".concat(g,"-disabled"),F)),onClick:function(){F||f(k)},onMouseEnter:function(){F||p?.(k)},onMouseLeave:function(){F||p?.(null)}},b.createElement("div",{className:"".concat(g,"-inner")},a.locale.getWeek(i.locale,k)))}:null,N=[],P=i.shortWeekDays||(a.locale.getShortWeekDays?a.locale.getShortWeekDays(i.locale):[]);R&&N.push(b.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var L=0;L<rq;L+=1)N.push(b.createElement("th",{key:L},P[(L+w)%rq]));var $=function(F,G){return a.addDate(F,G)},D=function(F){return Rl(F,{locale:i,format:i.cellDateFormat,generateConfig:a})},z=function(F){var G=be(be({},"".concat(t,"-cell-in-view"),Dde(a,F,o)),"".concat(t,"-cell-today"),$de(a,F,C));return G},U=i.shortMonths||(a.locale.getShortMonths?a.locale.getShortMonths(i.locale):[]),H=b.createElement("button",{type:"button","aria-label":"year panel",key:"year",onClick:function(){l("year",o)},tabIndex:-1,className:"".concat(t,"-year-btn")},Rl(o,{locale:i,format:i.yearFormat,generateConfig:a})),M=b.createElement("button",{type:"button","aria-label":"month panel",key:"month",onClick:function(){l("month",o)},tabIndex:-1,className:"".concat(t,"-month-btn")},i.monthFormat?Rl(o,{locale:i,format:i.monthFormat,generateConfig:a}):U[A]),B=i.monthBeforeYear?[M,H]:[H,M];return b.createElement(wC.Provider,{value:S},b.createElement("div",{className:Oe(m,h&&"".concat(m,"-show-week"))},b.createElement(bT,{offset:function(F){return a.addMonth(o,F)},superOffset:function(F){return a.addYear(o,F)},onChange:s,getStart:function(F){return a.setDate(F,1)},getEnd:function(F){var G=a.setDate(F,1);return G=a.addMonth(G,1),a.addDate(G,-1)}},B),b.createElement(RO,Xe({titleFormat:i.fieldDateFormat},e,{colNum:rq,rowNum:6,baseDate:T,headerCells:N,getCellDate:$,getCellText:D,getCellClassName:z,prefixColumn:R,cellSelection:!v}))))}var Y$t=1/3;function K$t(e,t){var n=b.useRef(!1),r=b.useRef(null),i=b.useRef(null),a=function(){return n.current},o=function(){Tr.cancel(r.current),n.current=!1},s=b.useRef(),l=function(){var d=e.current;if(i.current=null,s.current=0,d){var f=d.querySelector('[data-value="'.concat(t,'"]')),p=d.querySelector("li"),h=function m(){o(),n.current=!0,s.current+=1;var g=d.scrollTop,v=p.offsetTop,y=f.offsetTop,_=y-v;if(y===0&&f!==p||!uT(d)){s.current<=5&&(r.current=Tr(m));return}var S=g+(_-g)*Y$t,C=Math.abs(_-S);if(i.current!==null&&i.current<C){o();return}if(i.current=C,C<=1){d.scrollTop=_,o();return}d.scrollTop=S,r.current=Tr(m)};f&&p&&h()}},c=gr(l);return[c,o,a]}var X$t=300;function Y4(e){var t=e.units,n=e.value,r=e.optionalValue,i=e.type,a=e.onChange,o=e.onHover,s=e.onDblClick,l=e.changeOnScroll,c=wz(),u=c.prefixCls,d=c.cellRender,f=c.now,p=c.locale,h="".concat(u,"-time-panel"),m="".concat(u,"-time-panel-cell"),g=b.useRef(null),v=b.useRef(),y=function(){clearTimeout(v.current)},_=K$t(g,n??r),S=Fe(_,3),C=S[0],w=S[1],x=S[2];kr(function(){return C(),y(),function(){w(),y()}},[n,r,t]);var T=function(R){y();var N=R.target;!x()&&l&&(v.current=setTimeout(function(){var P=g.current,L=P.querySelector("li").offsetTop,$=Array.from(P.querySelectorAll("li")),D=$.map(function(B){return B.offsetTop-L}),z=D.map(function(B,k){return t[k].disabled?Number.MAX_SAFE_INTEGER:Math.abs(B-N.scrollTop)}),U=Math.min.apply(Math,Tt(z)),H=z.findIndex(function(B){return B===U}),M=t[H];M&&!M.disabled&&a(M.value)},X$t))},A="".concat(h,"-column");return b.createElement("ul",{className:A,ref:g,"data-type":i,onScroll:T},t.map(function(I){var R=I.label,N=I.value,P=I.disabled,L=b.createElement("div",{className:"".concat(m,"-inner")},R);return b.createElement("li",{key:N,className:Oe(m,be(be({},"".concat(m,"-selected"),n===N),"".concat(m,"-disabled"),P)),onClick:function(){P||a(N)},onDoubleClick:function(){!P&&s&&s()},onMouseEnter:function(){o(N)},onMouseLeave:function(){o(null)},"data-value":N},d?d(N,{prefixCls:u,originNode:L,today:f,type:"time",subType:i,locale:p}):L)}))}function ay(e){return e<12}function Z$t(e){var t=e.showHour,n=e.showMinute,r=e.showSecond,i=e.showMillisecond,a=e.use12Hours,o=e.changeOnScroll,s=wz(),l=s.prefixCls,c=s.values,u=s.generateConfig,d=s.locale,f=s.onSelect,p=s.onHover,h=s.pickerValue,m=c?.[0]||null,g=b.useContext(Mb),v=g.onCellDblClick,y=Bde(u,e,m),_=Fe(y,5),S=_[0],C=_[1],w=_[2],x=_[3],T=_[4],A=function(it){var yt=m&&u[it](m),Wt=h&&u[it](h);return[yt,Wt]},I=A("getHour"),R=Fe(I,2),N=R[0],P=R[1],L=A("getMinute"),$=Fe(L,2),D=$[0],z=$[1],U=A("getSecond"),H=Fe(U,2),M=H[0],B=H[1],k=A("getMillisecond"),F=Fe(k,2),G=F[0],q=F[1],W=N===null?null:ay(N)?"am":"pm",K=b.useMemo(function(){return a?ay(N)?C.filter(function(Qe){return ay(Qe.value)}):C.filter(function(Qe){return!ay(Qe.value)}):C},[N,C,a]),J=function(it,yt){var Wt,Mt=it.filter(function(tn){return!tn.disabled});return yt??(Mt==null||(Wt=Mt[0])===null||Wt===void 0?void 0:Wt.value)},te=J(C,N),ae=b.useMemo(function(){return w(te)},[w,te]),re=J(ae,D),ue=b.useMemo(function(){return x(te,re)},[x,te,re]),de=J(ue,M),fe=b.useMemo(function(){return T(te,re,de)},[T,te,re,de]),ge=J(fe,G),oe=b.useMemo(function(){if(!a)return[];var Qe=u.getNow(),it=u.setHour(Qe,6),yt=u.setHour(Qe,18),Wt=function(tn,Rt){var Dt=d.cellMeridiemFormat;return Dt?Rl(tn,{generateConfig:u,locale:d,format:Dt}):Rt};return[{label:Wt(it,"AM"),value:"am",disabled:C.every(function(Mt){return Mt.disabled||!ay(Mt.value)})},{label:Wt(yt,"PM"),value:"pm",disabled:C.every(function(Mt){return Mt.disabled||ay(Mt.value)})}]},[C,a,u,d]),Ee=function(it){var yt=S(it);f(yt)},ce=b.useMemo(function(){var Qe=m||h||u.getNow(),it=function(Wt){return Wt!=null};return it(N)?(Qe=u.setHour(Qe,N),Qe=u.setMinute(Qe,D),Qe=u.setSecond(Qe,M),Qe=u.setMillisecond(Qe,G)):it(P)?(Qe=u.setHour(Qe,P),Qe=u.setMinute(Qe,z),Qe=u.setSecond(Qe,B),Qe=u.setMillisecond(Qe,q)):it(te)&&(Qe=u.setHour(Qe,te),Qe=u.setMinute(Qe,re),Qe=u.setSecond(Qe,de),Qe=u.setMillisecond(Qe,ge)),Qe},[m,h,N,D,M,G,te,re,de,ge,P,z,B,q,u]),he=function(it,yt){return it===null?null:u[yt](ce,it)},ye=function(it){return he(it,"setHour")},me=function(it){return he(it,"setMinute")},_e=function(it){return he(it,"setSecond")},Te=function(it){return he(it,"setMillisecond")},xe=function(it){return it===null?null:it==="am"&&!ay(N)?u.setHour(ce,N-12):it==="pm"&&ay(N)?u.setHour(ce,N+12):ce},De=function(it){Ee(ye(it))},Pe=function(it){Ee(me(it))},Le=function(it){Ee(_e(it))},ze=function(it){Ee(Te(it))},Be=function(it){Ee(xe(it))},je=function(it){p(ye(it))},Ye=function(it){p(me(it))},Ze=function(it){p(_e(it))},Ke=function(it){p(Te(it))},qe=function(it){p(xe(it))},nt={onDblClick:v,changeOnScroll:o};return b.createElement("div",{className:"".concat(l,"-content")},t&&b.createElement(Y4,Xe({units:K,value:N,optionalValue:P,type:"hour",onChange:De,onHover:je},nt)),n&&b.createElement(Y4,Xe({units:ae,value:D,optionalValue:z,type:"minute",onChange:Pe,onHover:Ye},nt)),r&&b.createElement(Y4,Xe({units:ue,value:M,optionalValue:B,type:"second",onChange:Le,onHover:Ze},nt)),i&&b.createElement(Y4,Xe({units:fe,value:G,optionalValue:q,type:"millisecond",onChange:ze,onHover:Ke},nt)),a&&b.createElement(Y4,Xe({units:oe,value:W,type:"meridiem",onChange:Be,onHover:qe},nt)))}function VUe(e){var t=e.prefixCls,n=e.value,r=e.locale,i=e.generateConfig,a=e.showTime,o=a||{},s=o.format,l="".concat(t,"-time-panel"),c=yT(e,"time"),u=Fe(c,1),d=u[0];return b.createElement(wC.Provider,{value:d},b.createElement("div",{className:Oe(l)},b.createElement(bT,null,n?Rl(n,{locale:r,format:s,generateConfig:i}):" "),b.createElement(Z$t,a)))}function Q$t(e){var t=e.prefixCls,n=e.generateConfig,r=e.showTime,i=e.onSelect,a=e.value,o=e.pickerValue,s=e.onHover,l="".concat(t,"-datetime-panel"),c=Bde(n,r),u=Fe(c,1),d=u[0],f=function(g){return a?V$(n,g,a):V$(n,g,o)},p=function(g){s?.(g&&f(g))},h=function(g){var v=f(g);i(d(v,v))};return b.createElement("div",{className:l},b.createElement(xz,Xe({},e,{onSelect:h,onHover:p})),b.createElement(VUe,e))}function J$t(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,i=e.pickerValue,a=e.disabledDate,o=e.onPickerValueChange,s="".concat(t,"-decade-panel"),l=yT(e,"decade"),c=Fe(l,1),u=c[0],d=function(w){var x=Math.floor(r.getYear(i)/100)*100;return r.setYear(w,x)},f=function(w){var x=d(w);return r.addYear(x,99)},p=d(i),h=f(i),m=r.addYear(p,-10),g=function(w,x){return r.addYear(w,x*10)},v=function(w){var x=n.cellYearFormat,T=Rl(w,{locale:n,format:x,generateConfig:r}),A=Rl(r.addYear(w,9),{locale:n,format:x,generateConfig:r});return"".concat(T,"-").concat(A)},y=function(w){return be({},"".concat(t,"-cell-in-view"),mie(r,w,p)||mie(r,w,h)||Cz(r,p,h,w))},_=a?function(C,w){var x=r.setDate(C,1),T=r.setMonth(x,0),A=r.setYear(T,Math.floor(r.getYear(T)/10)*10),I=r.addYear(A,10),R=r.addDate(I,-1);return a(A,w)&&a(R,w)}:null,S="".concat(Rl(p,{locale:n,format:n.yearFormat,generateConfig:r}),"-").concat(Rl(h,{locale:n,format:n.yearFormat,generateConfig:r}));return b.createElement(wC.Provider,{value:u},b.createElement("div",{className:s},b.createElement(bT,{superOffset:function(w){return r.addYear(i,w*100)},onChange:o,getStart:d,getEnd:f},S),b.createElement(RO,Xe({},e,{disabledDate:_,colNum:3,rowNum:4,baseDate:m,getCellDate:g,getCellText:v,getCellClassName:y}))))}function eFt(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,i=e.pickerValue,a=e.disabledDate,o=e.onPickerValueChange,s=e.onModeChange,l="".concat(t,"-month-panel"),c=yT(e,"month"),u=Fe(c,1),d=u[0],f=r.setMonth(i,0),p=n.shortMonths||(r.locale.getShortMonths?r.locale.getShortMonths(n.locale):[]),h=function(S,C){return r.addMonth(S,C)},m=function(S){var C=r.getMonth(S);return n.monthFormat?Rl(S,{locale:n,format:n.monthFormat,generateConfig:r}):p[C]},g=function(){return be({},"".concat(t,"-cell-in-view"),!0)},v=a?function(_,S){var C=r.setDate(_,1),w=r.setMonth(C,r.getMonth(C)+1),x=r.addDate(w,-1);return a(C,S)&&a(x,S)}:null,y=b.createElement("button",{type:"button",key:"year","aria-label":"year panel",onClick:function(){s("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},Rl(i,{locale:n,format:n.yearFormat,generateConfig:r}));return b.createElement(wC.Provider,{value:d},b.createElement("div",{className:l},b.createElement(bT,{superOffset:function(S){return r.addYear(i,S)},onChange:o,getStart:function(S){return r.setMonth(S,0)},getEnd:function(S){return r.setMonth(S,11)}},y),b.createElement(RO,Xe({},e,{disabledDate:v,titleFormat:n.fieldMonthFormat,colNum:3,rowNum:4,baseDate:f,getCellDate:h,getCellText:m,getCellClassName:g}))))}function tFt(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,i=e.pickerValue,a=e.onPickerValueChange,o=e.onModeChange,s="".concat(t,"-quarter-panel"),l=yT(e,"quarter"),c=Fe(l,1),u=c[0],d=r.setMonth(i,0),f=function(v,y){return r.addMonth(v,y*3)},p=function(v){return Rl(v,{locale:n,format:n.cellQuarterFormat,generateConfig:r})},h=function(){return be({},"".concat(t,"-cell-in-view"),!0)},m=b.createElement("button",{type:"button",key:"year","aria-label":"year panel",onClick:function(){o("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},Rl(i,{locale:n,format:n.yearFormat,generateConfig:r}));return b.createElement(wC.Provider,{value:u},b.createElement("div",{className:s},b.createElement(bT,{superOffset:function(v){return r.addYear(i,v)},onChange:a,getStart:function(v){return r.setMonth(v,0)},getEnd:function(v){return r.setMonth(v,11)}},m),b.createElement(RO,Xe({},e,{titleFormat:n.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:d,getCellDate:f,getCellText:p,getCellClassName:h}))))}function nFt(e){var t=e.prefixCls,n=e.generateConfig,r=e.locale,i=e.value,a=e.hoverValue,o=e.hoverRangeValue,s=r.locale,l="".concat(t,"-week-panel-row"),c=function(d){var f={};if(o){var p=Fe(o,2),h=p[0],m=p[1],g=hA(n,s,h,d),v=hA(n,s,m,d);f["".concat(l,"-range-start")]=g,f["".concat(l,"-range-end")]=v,f["".concat(l,"-range-hover")]=!g&&!v&&Cz(n,h,m,d)}return a&&(f["".concat(l,"-hover")]=a.some(function(y){return hA(n,s,d,y)})),Oe(l,be({},"".concat(l,"-selected"),!o&&hA(n,s,i,d)),f)};return b.createElement(xz,Xe({},e,{mode:"week",panelName:"week",rowClassName:c}))}function rFt(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,i=e.pickerValue,a=e.disabledDate,o=e.onPickerValueChange,s=e.onModeChange,l="".concat(t,"-year-panel"),c=yT(e,"year"),u=Fe(c,1),d=u[0],f=function(x){var T=Math.floor(r.getYear(i)/10)*10;return r.setYear(x,T)},p=function(x){var T=f(x);return r.addYear(T,9)},h=f(i),m=p(i),g=r.addYear(h,-1),v=function(x,T){return r.addYear(x,T)},y=function(x){return Rl(x,{locale:n,format:n.cellYearFormat,generateConfig:r})},_=function(x){return be({},"".concat(t,"-cell-in-view"),$E(r,x,h)||$E(r,x,m)||Cz(r,h,m,x))},S=a?function(w,x){var T=r.setMonth(w,0),A=r.setDate(T,1),I=r.addYear(A,1),R=r.addDate(I,-1);return a(A,x)&&a(R,x)}:null,C=b.createElement("button",{type:"button",key:"decade","aria-label":"decade panel",onClick:function(){s("decade")},tabIndex:-1,className:"".concat(t,"-decade-btn")},Rl(h,{locale:n,format:n.yearFormat,generateConfig:r}),"-",Rl(m,{locale:n,format:n.yearFormat,generateConfig:r}));return b.createElement(wC.Provider,{value:d},b.createElement("div",{className:l},b.createElement(bT,{superOffset:function(x){return r.addYear(i,x*10)},onChange:o,getStart:f,getEnd:p},C),b.createElement(RO,Xe({},e,{disabledDate:S,titleFormat:n.fieldYearFormat,colNum:3,rowNum:4,baseDate:g,getCellDate:v,getCellText:y,getCellClassName:_}))))}var iFt={date:xz,datetime:Q$t,week:nFt,month:eFt,quarter:tFt,year:rFt,decade:J$t,time:VUe};function aFt(e,t){var n,r=e.locale,i=e.generateConfig,a=e.direction,o=e.prefixCls,s=e.tabIndex,l=s===void 0?0:s,c=e.multiple,u=e.defaultValue,d=e.value,f=e.onChange,p=e.onSelect,h=e.defaultPickerValue,m=e.pickerValue,g=e.onPickerValueChange,v=e.mode,y=e.onPanelChange,_=e.picker,S=_===void 0?"date":_,C=e.showTime,w=e.hoverValue,x=e.hoverRangeValue,T=e.cellRender,A=e.dateRender,I=e.monthCellRender,R=e.components,N=R===void 0?{}:R,P=e.hideHeader,L=((n=b.useContext(Cm))===null||n===void 0?void 0:n.prefixCls)||o||"rc-picker",$=b.useRef();b.useImperativeHandle(t,function(){return{nativeElement:$.current}});var D=IUe(e),z=Fe(D,4),U=z[0],H=z[1],M=z[2],B=z[3],k=wUe(r,H),F=S==="date"&&C?"datetime":S,G=b.useMemo(function(){return AUe(F,M,B,U,k)},[F,M,B,U,k]),q=i.getNow(),W=qr(S,{value:v,postState:function(nt){return nt||"date"}}),K=Fe(W,2),J=K[0],te=K[1],ae=J==="date"&&G?"datetime":J,re=HUe(i,r,F),ue=qr(u,{value:d}),de=Fe(ue,2),fe=de[0],ge=de[1],oe=b.useMemo(function(){var qe=CC(fe).filter(function(nt){return nt});return c?qe:qe.slice(0,1)},[fe,c]),Ee=gr(function(qe){ge(qe),f&&(qe===null||oe.length!==qe.length||oe.some(function(nt,Qe){return!Zc(i,r,nt,qe[Qe],F)}))&&f?.(c?qe:qe[0])}),ce=gr(function(qe){if(p?.(qe),J===S){var nt=c?re(oe,qe):[qe];Ee(nt)}}),he=qr(h||oe[0]||q,{value:m}),ye=Fe(he,2),me=ye[0],_e=ye[1];b.useEffect(function(){oe[0]&&!m&&_e(oe[0])},[oe[0]]);var Te=function(nt,Qe){y?.(nt||m,Qe||J)},xe=function(nt){var Qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;_e(nt),g?.(nt),Qe&&Te(nt)},De=function(nt,Qe){te(nt),Qe&&xe(Qe),Te(Qe,nt)},Pe=function(nt){if(ce(nt),xe(nt),J!==S){var Qe=["decade","year"],it=[].concat(Qe,["month"]),yt={quarter:[].concat(Qe,["quarter"]),week:[].concat(Tt(it),["week"]),date:[].concat(Tt(it),["date"])},Wt=yt[S]||it,Mt=Wt.indexOf(J),tn=Wt[Mt+1];tn&&De(tn,nt)}},Le=b.useMemo(function(){var qe,nt;if(Array.isArray(x)){var Qe=Fe(x,2);qe=Qe[0],nt=Qe[1]}else qe=x;return!qe&&!nt?null:(qe=qe||nt,nt=nt||qe,i.isAfter(qe,nt)?[nt,qe]:[qe,nt])},[x,i]),ze=Mde(T,A,I),Be=N[ae]||iFt[ae]||xz,je=b.useContext(Mb),Ye=b.useMemo(function(){return we(we({},je),{},{hideHeader:P})},[je,P]),Ze="".concat(L,"-panel"),Ke=Ez(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return b.createElement(Mb.Provider,{value:Ye},b.createElement("div",{ref:$,tabIndex:l,className:Oe(Ze,be({},"".concat(Ze,"-rtl"),a==="rtl"))},b.createElement(Be,Xe({},Ke,{showTime:G,prefixCls:L,locale:k,generateConfig:i,onModeChange:De,pickerValue:me,onPickerValueChange:function(nt){xe(nt,!0)},value:oe[0],onSelect:Pe,values:oe,cellRender:ze,hoverRangeValue:Le,hoverValue:w}))))}var aq=b.memo(b.forwardRef(aFt));function oFt(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,i=e.onPickerValueChange,a=e.needConfirm,o=e.onSubmit,s=e.range,l=e.hoverValue,c=b.useContext(Cm),u=c.prefixCls,d=c.generateConfig,f=b.useCallback(function(y,_){return mA(d,t,y,_)},[d,t]),p=b.useMemo(function(){return f(r,1)},[r,f]),h=function(_){i(f(_,-1))},m={onCellDblClick:function(){a&&o()}},g=t==="time",v=we(we({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:g});return s?v.hoverRangeValue=l:v.hoverValue=l,n?b.createElement("div",{className:"".concat(u,"-panels")},b.createElement(Mb.Provider,{value:we(we({},m),{},{hideNext:!0})},b.createElement(aq,v)),b.createElement(Mb.Provider,{value:we(we({},m),{},{hidePrev:!0})},b.createElement(aq,Xe({},v,{pickerValue:p,onPickerValueChange:h})))):b.createElement(Mb.Provider,{value:we({},m)},b.createElement(aq,v))}function X2e(e){return typeof e=="function"?e():e}function sFt(e){var t=e.prefixCls,n=e.presets,r=e.onClick,i=e.onHover;return n.length?b.createElement("div",{className:"".concat(t,"-presets")},b.createElement("ul",null,n.map(function(a,o){var s=a.label,l=a.value;return b.createElement("li",{key:o,onClick:function(){r(X2e(l))},onMouseEnter:function(){i(X2e(l))},onMouseLeave:function(){i(null)}},s)}))):null}function GUe(e){var t=e.panelRender,n=e.internalMode,r=e.picker,i=e.showNow,a=e.range,o=e.multiple,s=e.activeOffset,l=s===void 0?0:s,c=e.placement,u=e.presets,d=e.onPresetHover,f=e.onPresetSubmit,p=e.onFocus,h=e.onBlur,m=e.onPanelMouseDown,g=e.direction,v=e.value,y=e.onSelect,_=e.isInvalid,S=e.defaultOpenValue,C=e.onOk,w=e.onSubmit,x=b.useContext(Cm),T=x.prefixCls,A="".concat(T,"-panel"),I=g==="rtl",R=b.useRef(null),N=b.useRef(null),P=b.useState(0),L=Fe(P,2),$=L[0],D=L[1],z=b.useState(0),U=Fe(z,2),H=U[0],M=U[1],B=function(Ee){Ee.offsetWidth&&D(Ee.offsetWidth)};b.useEffect(function(){if(a){var oe,Ee=((oe=R.current)===null||oe===void 0?void 0:oe.offsetWidth)||0,ce=$-Ee;l<=ce?M(0):M(l+Ee-$)}},[$,l,a]);function k(oe){return oe.filter(function(Ee){return Ee})}var F=b.useMemo(function(){return k(CC(v))},[v]),G=r==="time"&&!F.length,q=b.useMemo(function(){return G?k([S]):F},[G,F,S]),W=G?S:F,K=b.useMemo(function(){return q.length?q.some(function(oe){return _(oe)}):!0},[q,_]),J=function(){G&&y(S),C(),w()},te=b.createElement("div",{className:"".concat(T,"-panel-layout")},b.createElement(sFt,{prefixCls:T,presets:u,onClick:f,onHover:d}),b.createElement("div",null,b.createElement(oFt,Xe({},e,{value:W})),b.createElement(W$t,Xe({},e,{showNow:o?!1:i,invalid:K,onSubmit:J}))));t&&(te=t(te));var ae="".concat(A,"-container"),re="marginLeft",ue="marginRight",de=b.createElement("div",{onMouseDown:m,tabIndex:-1,className:Oe(ae,"".concat(T,"-").concat(n,"-panel-container")),style:be(be({},I?ue:re,H),I?re:ue,"auto"),onFocus:p,onBlur:h},te);if(a){var fe=Sz(c,I),ge=vUe(fe,I);de=b.createElement("div",{onMouseDown:m,ref:N,className:Oe("".concat(T,"-range-wrapper"),"".concat(T,"-").concat(r,"-range-wrapper"))},b.createElement("div",{ref:R,className:"".concat(T,"-range-arrow"),style:be({},ge,l)}),b.createElement(Sc,{onResize:B},de))}return de}function qUe(e,t){var n=e.format,r=e.maskFormat,i=e.generateConfig,a=e.locale,o=e.preserveInvalidOnBlur,s=e.inputReadOnly,l=e.required,c=e["aria-required"],u=e.onSubmit,d=e.onFocus,f=e.onBlur,p=e.onInputChange,h=e.onInvalid,m=e.open,g=e.onOpenChange,v=e.onKeyDown,y=e.onChange,_=e.activeHelp,S=e.name,C=e.autoComplete,w=e.id,x=e.value,T=e.invalid,A=e.placeholder,I=e.disabled,R=e.activeIndex,N=e.allHelp,P=e.picker,L=function(k,F){var G=i.locale.parse(a.locale,k,[F]);return G&&i.isValidate(G)?G:null},$=n[0],D=b.useCallback(function(B){return Rl(B,{locale:a,format:$,generateConfig:i})},[a,i,$]),z=b.useMemo(function(){return x.map(D)},[x,D]),U=b.useMemo(function(){var B=P==="time"?8:10,k=typeof $=="function"?$(i.getNow()).length:$.length;return Math.max(B,k)+2},[$,P,i]),H=function(k){for(var F=0;F<n.length;F+=1){var G=n[F];if(typeof G=="string"){var q=L(k,G);if(q)return q}}return!1},M=function(k){function F(W){return k!==void 0?W[k]:W}var G=lo(e,{aria:!0,data:!0}),q=we(we({},G),{},{format:r,validateFormat:function(K){return!!H(K)},preserveInvalidOnBlur:o,readOnly:s,required:l,"aria-required":c,name:S,autoComplete:C,size:U,id:F(w),value:F(z)||"",invalid:F(T),placeholder:F(A),active:R===k,helped:N||_&&R===k,disabled:F(I),onFocus:function(K){d(K,k)},onBlur:function(K){f(K,k)},onSubmit:u,onChange:function(K){p();var J=H(K);if(J){h(!1,k),y(J,k);return}h(!!K,k)},onHelp:function(){g(!0,{index:k})},onKeyDown:function(K){var J=!1;if(v?.(K,function(){J=!0}),!K.defaultPrevented&&!J)switch(K.key){case"Escape":g(!1,{index:k});break;case"Enter":m||g(!0);break}}},t?.({valueTexts:z}));return Object.keys(q).forEach(function(W){q[W]===void 0&&delete q[W]}),q};return[M,D]}var lFt=["onMouseEnter","onMouseLeave"];function WUe(e){return b.useMemo(function(){return Ez(e,lFt)},[e])}var cFt=["icon","type"],uFt=["onClear"];function Tz(e){var t=e.icon,n=e.type,r=$n(e,cFt),i=b.useContext(Cm),a=i.prefixCls;return t?b.createElement("span",Xe({className:"".concat(a,"-").concat(n)},r),t):null}function gie(e){var t=e.onClear,n=$n(e,uFt);return b.createElement(Tz,Xe({},n,{type:"clear",role:"button",onMouseDown:function(i){i.preventDefault()},onClick:function(i){i.stopPropagation(),t()}}))}var oq=["YYYY","MM","DD","HH","mm","ss","SSS"],Z2e="顧",dFt=function(){function e(t){co(this,e),be(this,"format",void 0),be(this,"maskFormat",void 0),be(this,"cells",void 0),be(this,"maskCells",void 0),this.format=t;var n=oq.map(function(s){return"(".concat(s,")")}).join("|"),r=new RegExp(n,"g");this.maskFormat=t.replace(r,function(s){return Z2e.repeat(s.length)});var i=new RegExp("(".concat(oq.join("|"),")")),a=(t.split(i)||[]).filter(function(s){return s}),o=0;this.cells=a.map(function(s){var l=oq.includes(s),c=o,u=o+s.length;return o=u,{text:s,mask:l,start:c,end:u}}),this.maskCells=this.cells.filter(function(s){return s.mask})}return uo(e,[{key:"getSelection",value:function(n){var r=this.maskCells[n]||{},i=r.start,a=r.end;return[i||0,a||0]}},{key:"match",value:function(n){for(var r=0;r<this.maskFormat.length;r+=1){var i=this.maskFormat[r],a=n[r];if(!a||i!==Z2e&&i!==a)return!1}return!0}},{key:"size",value:function(){return this.maskCells.length}},{key:"getMaskCellIndex",value:function(n){for(var r=Number.MAX_SAFE_INTEGER,i=0,a=0;a<this.maskCells.length;a+=1){var o=this.maskCells[a],s=o.start,l=o.end;if(n>=s&&n<=l)return a;var c=Math.min(Math.abs(n-s),Math.abs(n-l));c<r&&(r=c,i=a)}return i}}]),e}();function fFt(e){var t={YYYY:[0,9999,new Date().getFullYear()],MM:[1,12],DD:[1,31],HH:[0,23],mm:[0,59],ss:[0,59],SSS:[0,999]};return t[e]}var pFt=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"],vie=b.forwardRef(function(e,t){var n=e.active,r=e.showActiveCls,i=r===void 0?!0:r,a=e.suffixIcon,o=e.format,s=e.validateFormat,l=e.onChange;e.onInput;var c=e.helped,u=e.onHelp,d=e.onSubmit,f=e.onKeyDown,p=e.preserveInvalidOnBlur,h=p===void 0?!1:p,m=e.invalid,g=e.clearIcon,v=$n(e,pFt),y=e.value,_=e.onFocus,S=e.onBlur,C=e.onMouseUp,w=b.useContext(Cm),x=w.prefixCls,T=w.input,A=T===void 0?"input":T,I="".concat(x,"-input"),R=b.useState(!1),N=Fe(R,2),P=N[0],L=N[1],$=b.useState(y),D=Fe($,2),z=D[0],U=D[1],H=b.useState(""),M=Fe(H,2),B=M[0],k=M[1],F=b.useState(null),G=Fe(F,2),q=G[0],W=G[1],K=b.useState(null),J=Fe(K,2),te=J[0],ae=J[1],re=z||"";b.useEffect(function(){U(y)},[y]);var ue=b.useRef(),de=b.useRef();b.useImperativeHandle(t,function(){return{nativeElement:ue.current,inputElement:de.current,focus:function(qe){de.current.focus(qe)},blur:function(){de.current.blur()}}});var fe=b.useMemo(function(){return new dFt(o||"")},[o]),ge=b.useMemo(function(){return c?[0,0]:fe.getSelection(q)},[fe,q,c]),oe=Fe(ge,2),Ee=oe[0],ce=oe[1],he=function(qe){qe&&qe!==o&&qe!==y&&u()},ye=gr(function(Ke){s(Ke)&&l(Ke),U(Ke),he(Ke)}),me=function(qe){if(!o){var nt=qe.target.value;he(nt),U(nt),l(nt)}},_e=function(qe){var nt=qe.clipboardData.getData("text");s(nt)&&ye(nt)},Te=b.useRef(!1),xe=function(){Te.current=!0},De=function(qe){var nt=qe.target,Qe=nt.selectionStart,it=fe.getMaskCellIndex(Qe);W(it),ae({}),C?.(qe),Te.current=!1},Pe=function(qe){L(!0),W(0),k(""),_(qe)},Le=function(qe){S(qe)},ze=function(qe){L(!1),Le(qe)};Fde(n,function(){!n&&!h&&U(y)});var Be=function(qe){qe.key==="Enter"&&s(re)&&d(),f?.(qe)},je=function(qe){Be(qe);var nt=qe.key,Qe=null,it=null,yt=ce-Ee,Wt=o.slice(Ee,ce),Mt=function(Pt){W(function(Ot){var sn=Ot+Pt;return sn=Math.max(sn,0),sn=Math.min(sn,fe.size()-1),sn})},tn=function(Pt){var Ot=fFt(Wt),sn=Fe(Ot,3),Jt=sn[0],Vt=sn[1],pt=sn[2],tt=re.slice(Ee,ce),dt=Number(tt);if(isNaN(dt))return String(pt||(Pt>0?Jt:Vt));var Et=dt+Pt,St=Vt-Jt+1;return String(Jt+(St+Et-Jt)%St)};switch(nt){case"Backspace":case"Delete":Qe="",it=Wt;break;case"ArrowLeft":Qe="",Mt(-1);break;case"ArrowRight":Qe="",Mt(1);break;case"ArrowUp":Qe="",it=tn(1);break;case"ArrowDown":Qe="",it=tn(-1);break;default:isNaN(Number(nt))||(Qe=B+nt,it=Qe);break}if(Qe!==null&&(k(Qe),Qe.length>=yt&&(Mt(1),k(""))),it!==null){var Rt=re.slice(0,Ee)+kde(it,yt)+re.slice(ce);ye(Rt.slice(0,o.length))}ae({})},Ye=b.useRef();kr(function(){if(!(!P||!o||Te.current)){if(!fe.match(re)){ye(o);return}return de.current.setSelectionRange(Ee,ce),Ye.current=Tr(function(){de.current.setSelectionRange(Ee,ce)}),function(){Tr.cancel(Ye.current)}}},[fe,o,P,re,q,Ee,ce,te,ye]);var Ze=o?{onFocus:Pe,onBlur:ze,onKeyDown:je,onMouseDown:xe,onMouseUp:De,onPaste:_e}:{};return b.createElement("div",{ref:ue,className:Oe(I,be(be({},"".concat(I,"-active"),n&&i),"".concat(I,"-placeholder"),c))},b.createElement(A,Xe({ref:de,"aria-invalid":m,autoComplete:"off"},v,{onKeyDown:Be,onBlur:Le},Ze,{value:re,onChange:me})),b.createElement(Tz,{type:"suffix",icon:a}),g)}),hFt=["id","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveOffset","placement","onMouseDown","required","aria-required","autoFocus"],mFt=["index"];function gFt(e,t){var n=e.id,r=e.clearIcon,i=e.suffixIcon,a=e.separator,o=a===void 0?"~":a,s=e.activeIndex;e.activeHelp,e.allHelp;var l=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var c=e.placeholder,u=e.className,d=e.style,f=e.onClick,p=e.onClear,h=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var m=e.disabled,g=e.invalid;e.inputReadOnly;var v=e.direction;e.onOpenChange;var y=e.onActiveOffset,_=e.placement,S=e.onMouseDown;e.required,e["aria-required"];var C=e.autoFocus,w=$n(e,hFt),x=v==="rtl",T=b.useContext(Cm),A=T.prefixCls,I=b.useMemo(function(){if(typeof n=="string")return[n];var re=n||{};return[re.start,re.end]},[n]),R=b.useRef(),N=b.useRef(),P=b.useRef(),L=function(ue){var de;return(de=[N,P][ue])===null||de===void 0?void 0:de.current};b.useImperativeHandle(t,function(){return{nativeElement:R.current,focus:function(ue){if(cn(ue)==="object"){var de,fe=ue||{},ge=fe.index,oe=ge===void 0?0:ge,Ee=$n(fe,mFt);(de=L(oe))===null||de===void 0||de.focus(Ee)}else{var ce;(ce=L(ue??0))===null||ce===void 0||ce.focus()}},blur:function(){var ue,de;(ue=L(0))===null||ue===void 0||ue.blur(),(de=L(1))===null||de===void 0||de.blur()}}});var $=WUe(w),D=b.useMemo(function(){return Array.isArray(c)?c:[c,c]},[c]),z=qUe(we(we({},e),{},{id:I,placeholder:D})),U=Fe(z,1),H=U[0],M=Sz(_,x),B=vUe(M,x),k=M?.toLowerCase().endsWith("right"),F=b.useState({position:"absolute",width:0}),G=Fe(F,2),q=G[0],W=G[1],K=gr(function(){var re=L(s);if(re){var ue=re.nativeElement,de=ue.offsetWidth,fe=ue.offsetLeft,ge=ue.offsetParent,oe=ge?.offsetWidth||0,Ee=k?oe-de-fe:fe;W(function(ce){return we(we({},ce),{},be({width:de},B,Ee))}),y(Ee)}});b.useEffect(function(){K()},[s]);var J=r&&(h[0]&&!m[0]||h[1]&&!m[1]),te=C&&!m[0],ae=C&&!te&&!m[1];return b.createElement(Sc,{onResize:K},b.createElement("div",Xe({},$,{className:Oe(A,"".concat(A,"-range"),be(be(be(be({},"".concat(A,"-focused"),l),"".concat(A,"-disabled"),m.every(function(re){return re})),"".concat(A,"-invalid"),g.some(function(re){return re})),"".concat(A,"-rtl"),x),u),style:d,ref:R,onClick:f,onMouseDown:function(ue){var de=ue.target;de!==N.current.inputElement&&de!==P.current.inputElement&&ue.preventDefault(),S?.(ue)}}),b.createElement(vie,Xe({ref:N},H(0),{autoFocus:te,"date-range":"start"})),b.createElement("div",{className:"".concat(A,"-range-separator")},o),b.createElement(vie,Xe({ref:P},H(1),{autoFocus:ae,"date-range":"end"})),b.createElement("div",{className:"".concat(A,"-active-bar"),style:q}),b.createElement(Tz,{type:"suffix",icon:i}),J&&b.createElement(gie,{icon:r,onClear:p})))}var vFt=b.forwardRef(gFt);function Q2e(e,t){var n=e??t;return Array.isArray(n)?n:[n,n]}function uP(e){return e===1?"end":"start"}function yFt(e,t){var n=OUe(e,function(){var rr=e.disabled,dr=e.allowEmpty,xn=Q2e(rr,!1),Yn=Q2e(dr,!1);return{disabled:xn,allowEmpty:Yn}}),r=Fe(n,6),i=r[0],a=r[1],o=r[2],s=r[3],l=r[4],c=r[5],u=i.prefixCls,d=i.styles,f=i.classNames,p=i.placement,h=i.defaultValue,m=i.value,g=i.needConfirm,v=i.onKeyDown,y=i.disabled,_=i.allowEmpty,S=i.disabledDate,C=i.minDate,w=i.maxDate,x=i.defaultOpen,T=i.open,A=i.onOpenChange,I=i.locale,R=i.generateConfig,N=i.picker,P=i.showNow,L=i.showToday,$=i.showTime,D=i.mode,z=i.onPanelChange,U=i.onCalendarChange,H=i.onOk,M=i.defaultPickerValue,B=i.pickerValue,k=i.onPickerValueChange,F=i.inputReadOnly,G=i.suffixIcon,q=i.onFocus,W=i.onBlur,K=i.presets,J=i.ranges,te=i.components,ae=i.cellRender,re=i.dateRender,ue=i.monthCellRender,de=i.onClick,fe=PUe(t),ge=LUe(T,x,y,A),oe=Fe(ge,2),Ee=oe[0],ce=oe[1],he=function(dr,xn){(y.some(function(Yn){return!Yn})||!dr)&&ce(dr,xn)},ye=jUe(R,I,s,!0,!1,h,m,U,H),me=Fe(ye,5),_e=me[0],Te=me[1],xe=me[2],De=me[3],Pe=me[4],Le=xe(),ze=MUe(y,_,Ee),Be=Fe(ze,7),je=Be[0],Ye=Be[1],Ze=Be[2],Ke=Be[3],qe=Be[4],nt=Be[5],Qe=Be[6],it=function(dr,xn){Ye(!0),q?.(dr,{range:uP(xn??Ke)})},yt=function(dr,xn){Ye(!1),W?.(dr,{range:uP(xn??Ke)})},Wt=b.useMemo(function(){if(!$)return null;var rr=$.disabledTime,dr=rr?function(xn){var Yn=uP(Ke),ui=_Ue(Le,Qe,Ke);return rr(xn,Yn,{from:ui})}:void 0;return we(we({},$),{},{disabledTime:dr})},[$,Ke,Le,Qe]),Mt=qr([N,N],{value:D}),tn=Fe(Mt,2),Rt=tn[0],Dt=tn[1],Pt=Rt[Ke]||N,Ot=Pt==="date"&&Wt?"datetime":Pt,sn=Ot===N&&Ot!=="time",Jt=UUe(N,Pt,P,L,!0),Vt=zUe(i,_e,Te,xe,De,y,s,je,Ee,c),pt=Fe(Vt,2),tt=pt[0],dt=pt[1],Et=H$t(Le,y,Qe,R,I,S),St=EUe(Le,c,_),zt=Fe(St,2),nn=zt[0],wn=zt[1],kn=DUe(R,I,Le,Rt,Ee,Ke,a,sn,M,B,Wt?.defaultOpenValue,k,C,w),fn=Fe(kn,2),an=fn[0],Ht=fn[1],mn=gr(function(rr,dr,xn){var Yn=cR(Rt,Ke,dr);if((Yn[0]!==Rt[0]||Yn[1]!==Rt[1])&&Dt(Yn),z&&xn!==!1){var ui=Tt(Le);rr&&(ui[Ke]=rr),z(ui,Yn)}}),Tn=function(dr,xn){return cR(Le,xn,dr)},An=function(dr,xn){var Yn=Le;dr&&(Yn=Tn(dr,Ke));var ui=nt(Yn);De(Yn),tt(Ke,ui===null),ui===null?he(!1,{force:!0}):xn||fe.current.focus({index:ui})},nr=function(dr){if(!fe.current.nativeElement.contains(document.activeElement)){var xn=y.findIndex(function(Yn){return!Yn});xn>=0&&fe.current.focus({index:xn})}he(!0),de?.(dr)},un=function(){dt(null),he(!1,{force:!0})},et=b.useState(null),Ct=Fe(et,2),Q=Ct[0],Y=Ct[1],ee=b.useState(null),le=Fe(ee,2),Se=le[0],Ae=le[1],He=b.useMemo(function(){return Se||Le},[Le,Se]);b.useEffect(function(){Ee||Ae(null)},[Ee]);var at=b.useState(0),wt=Fe(at,2),ft=wt[0],Lt=wt[1],kt=kUe(K,J),Gt=function(dr){Ae(dr),Y("preset")},ln=function(dr){var xn=dt(dr);xn&&he(!1,{force:!0})},_n=function(dr){An(dr)},Fn=function(dr){Ae(dr?Tn(dr,Ke):null),Y("cell")},ur=function(dr){he(!0),it(dr)},Vr=function(){Ze("panel")},ni=function(dr){var xn=cR(Le,Ke,dr);De(xn),!g&&!o&&a===Ot&&An(dr)},fr=function(){he(!1)},Un=Mde(ae,re,ue,uP(Ke)),hr=Le[Ke]||null,Jn=gr(function(rr){return c(rr,{activeIndex:Ke})}),lr=b.useMemo(function(){var rr=lo(i,!1),dr=Xa(i,[].concat(Tt(Object.keys(rr)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return dr},[i]),On=b.createElement(GUe,Xe({},lr,{showNow:Jt,showTime:Wt,range:!0,multiplePanel:sn,activeOffset:ft,placement:p,disabledDate:Et,onFocus:ur,onBlur:yt,onPanelMouseDown:Vr,picker:N,mode:Pt,internalMode:Ot,onPanelChange:mn,format:l,value:hr,isInvalid:Jn,onChange:null,onSelect:ni,pickerValue:an,defaultOpenValue:CC($?.defaultOpenValue)[Ke],onPickerValueChange:Ht,hoverValue:He,onHover:Fn,needConfirm:g,onSubmit:An,onOk:Pe,presets:kt,onPresetHover:Gt,onPresetSubmit:ln,onNow:_n,cellRender:Un})),Mn=function(dr,xn){var Yn=Tn(dr,xn);De(Yn)},ri=function(){Ze("input")},Gi=function(dr,xn){Ze("input"),he(!0,{inherit:!0}),Ke!==xn&&Ee&&!g&&o&&An(null,!0),qe(xn),it(dr,xn)},ma=function(dr,xn){if(he(!1),!g&&Ze()==="input"){var Yn=nt(Le);tt(Ke,Yn===null)}yt(dr,xn)},Oa=function(dr,xn){dr.key==="Tab"&&An(null,!0),v?.(dr,xn)},La=b.useMemo(function(){return{prefixCls:u,locale:I,generateConfig:R,button:te.button,input:te.input}},[u,I,R,te.button,te.input]);return kr(function(){Ee&&Ke!==void 0&&mn(null,N,!1)},[Ee,Ke,N]),kr(function(){var rr=Ze();!Ee&&rr==="input"&&(he(!1),An(null,!0)),!Ee&&o&&!g&&rr==="panel"&&(he(!0),An())},[Ee]),b.createElement(Cm.Provider,{value:La},b.createElement(yUe,Xe({},SUe(i),{popupElement:On,popupStyle:d.popup,popupClassName:f.popup,visible:Ee,onClose:fr,range:!0}),b.createElement(vFt,Xe({},i,{ref:fe,suffixIcon:G,activeIndex:je||Ee?Ke:null,activeHelp:!!Se,allHelp:!!Se&&Q==="preset",focused:je,onFocus:Gi,onBlur:ma,onKeyDown:Oa,onSubmit:An,value:He,maskFormat:l,onChange:Mn,onInputChange:ri,format:s,inputReadOnly:F,disabled:y,open:Ee,onOpenChange:he,onClick:nr,onClear:un,invalid:nn,onInvalid:wn,onActiveOffset:Lt}))))}var bFt=b.forwardRef(yFt);function _Ft(e){var t=e.prefixCls,n=e.value,r=e.onRemove,i=e.removeIcon,a=i===void 0?"×":i,o=e.formatDate,s=e.disabled,l=e.maxTagCount,c=e.placeholder,u="".concat(t,"-selector"),d="".concat(t,"-selection"),f="".concat(d,"-overflow");function p(g,v){return b.createElement("span",{className:Oe("".concat(d,"-item")),title:typeof g=="string"?g:null},b.createElement("span",{className:"".concat(d,"-item-content")},g),!s&&v&&b.createElement("span",{onMouseDown:function(_){_.preventDefault()},onClick:v,className:"".concat(d,"-item-remove")},a))}function h(g){var v=o(g),y=function(S){S&&S.stopPropagation(),r(g)};return p(v,y)}function m(g){var v="+ ".concat(g.length," ...");return p(v)}return b.createElement("div",{className:u},b.createElement(tm,{prefixCls:f,data:n,renderItem:h,renderRest:m,itemKey:function(v){return o(v)},maxCount:l}),!n.length&&b.createElement("span",{className:"".concat(t,"-selection-placeholder")},c))}var SFt=["id","open","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","removeIcon"];function EFt(e,t){e.id;var n=e.open,r=e.clearIcon,i=e.suffixIcon;e.activeHelp,e.allHelp;var a=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var o=e.locale,s=e.generateConfig,l=e.placeholder,c=e.className,u=e.style,d=e.onClick,f=e.onClear,p=e.internalPicker,h=e.value,m=e.onChange,g=e.onSubmit;e.onInputChange;var v=e.multiple,y=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var _=e.disabled,S=e.invalid;e.inputReadOnly;var C=e.direction;e.onOpenChange;var w=e.onMouseDown;e.required,e["aria-required"];var x=e.autoFocus,T=e.removeIcon,A=$n(e,SFt),I=C==="rtl",R=b.useContext(Cm),N=R.prefixCls,P=b.useRef(),L=b.useRef();b.useImperativeHandle(t,function(){return{nativeElement:P.current,focus:function(q){var W;(W=L.current)===null||W===void 0||W.focus(q)},blur:function(){var q;(q=L.current)===null||q===void 0||q.blur()}}});var $=WUe(A),D=function(q){m([q])},z=function(q){var W=h.filter(function(K){return K&&!Zc(s,o,K,q,p)});m(W),n||g()},U=qUe(we(we({},e),{},{onChange:D}),function(G){var q=G.valueTexts;return{value:q[0]||"",active:a}}),H=Fe(U,2),M=H[0],B=H[1],k=!!(r&&h.length&&!_),F=v?b.createElement(b.Fragment,null,b.createElement(_Ft,{prefixCls:N,value:h,onRemove:z,formatDate:B,maxTagCount:y,disabled:_,removeIcon:T,placeholder:l}),b.createElement("input",{className:"".concat(N,"-multiple-input"),value:h.map(B).join(","),ref:L,readOnly:!0,autoFocus:x}),b.createElement(Tz,{type:"suffix",icon:i}),k&&b.createElement(gie,{icon:r,onClear:f})):b.createElement(vie,Xe({ref:L},M(),{autoFocus:x,suffixIcon:i,clearIcon:k&&b.createElement(gie,{icon:r,onClear:f}),showActiveCls:!1}));return b.createElement("div",Xe({},$,{className:Oe(N,be(be(be(be(be({},"".concat(N,"-multiple"),v),"".concat(N,"-focused"),a),"".concat(N,"-disabled"),_),"".concat(N,"-invalid"),S),"".concat(N,"-rtl"),I),c),style:u,ref:P,onClick:d,onMouseDown:function(q){var W,K=q.target;K!==((W=L.current)===null||W===void 0?void 0:W.inputElement)&&q.preventDefault(),w?.(q)}}),F)}var CFt=b.forwardRef(EFt);function wFt(e,t){var n=OUe(e),r=Fe(n,6),i=r[0],a=r[1],o=r[2],s=r[3],l=r[4],c=r[5],u=i,d=u.prefixCls,f=u.styles,p=u.classNames,h=u.order,m=u.defaultValue,g=u.value,v=u.needConfirm,y=u.onChange,_=u.onKeyDown,S=u.disabled,C=u.disabledDate,w=u.minDate,x=u.maxDate,T=u.defaultOpen,A=u.open,I=u.onOpenChange,R=u.locale,N=u.generateConfig,P=u.picker,L=u.showNow,$=u.showToday,D=u.showTime,z=u.mode,U=u.onPanelChange,H=u.onCalendarChange,M=u.onOk,B=u.multiple,k=u.defaultPickerValue,F=u.pickerValue,G=u.onPickerValueChange,q=u.inputReadOnly,W=u.suffixIcon,K=u.removeIcon,J=u.onFocus,te=u.onBlur,ae=u.presets,re=u.components,ue=u.cellRender,de=u.dateRender,fe=u.monthCellRender,ge=u.onClick,oe=PUe(t);function Ee(On){return On===null?null:B?On:On[0]}var ce=HUe(N,R,a),he=LUe(A,T,[S],I),ye=Fe(he,2),me=ye[0],_e=ye[1],Te=function(Mn,ri,Gi){if(H){var ma=we({},Gi);delete ma.range,H(Ee(Mn),Ee(ri),ma)}},xe=function(Mn){M?.(Ee(Mn))},De=jUe(N,R,s,!1,h,m,g,Te,xe),Pe=Fe(De,5),Le=Pe[0],ze=Pe[1],Be=Pe[2],je=Pe[3],Ye=Pe[4],Ze=Be(),Ke=MUe([S]),qe=Fe(Ke,4),nt=qe[0],Qe=qe[1],it=qe[2],yt=qe[3],Wt=function(Mn){Qe(!0),J?.(Mn,{})},Mt=function(Mn){Qe(!1),te?.(Mn,{})},tn=qr(P,{value:z}),Rt=Fe(tn,2),Dt=Rt[0],Pt=Rt[1],Ot=Dt==="date"&&D?"datetime":Dt,sn=UUe(P,Dt,L,$),Jt=y&&function(On,Mn){y(Ee(On),Ee(Mn))},Vt=zUe(we(we({},i),{},{onChange:Jt}),Le,ze,Be,je,[],s,nt,me,c),pt=Fe(Vt,2),tt=pt[1],dt=EUe(Ze,c),Et=Fe(dt,2),St=Et[0],zt=Et[1],nn=b.useMemo(function(){return St.some(function(On){return On})},[St]),wn=function(Mn,ri){if(G){var Gi=we(we({},ri),{},{mode:ri.mode[0]});delete Gi.range,G(Mn[0],Gi)}},kn=DUe(N,R,Ze,[Dt],me,yt,a,!1,k,F,CC(D?.defaultOpenValue),wn,w,x),fn=Fe(kn,2),an=fn[0],Ht=fn[1],mn=gr(function(On,Mn,ri){if(Pt(Mn),U&&ri!==!1){var Gi=On||Ze[Ze.length-1];U(Gi,Mn)}}),Tn=function(){tt(Be()),_e(!1,{force:!0})},An=function(Mn){!S&&!oe.current.nativeElement.contains(document.activeElement)&&oe.current.focus(),_e(!0),ge?.(Mn)},nr=function(){tt(null),_e(!1,{force:!0})},un=b.useState(null),et=Fe(un,2),Ct=et[0],Q=et[1],Y=b.useState(null),ee=Fe(Y,2),le=ee[0],Se=ee[1],Ae=b.useMemo(function(){var On=[le].concat(Tt(Ze)).filter(function(Mn){return Mn});return B?On:On.slice(0,1)},[Ze,le,B]),He=b.useMemo(function(){return!B&&le?[le]:Ze.filter(function(On){return On})},[Ze,le,B]);b.useEffect(function(){me||Se(null)},[me]);var at=kUe(ae),wt=function(Mn){Se(Mn),Q("preset")},ft=function(Mn){var ri=B?ce(Be(),Mn):[Mn],Gi=tt(ri);Gi&&!B&&_e(!1,{force:!0})},Lt=function(Mn){ft(Mn)},kt=function(Mn){Se(Mn),Q("cell")},Gt=function(Mn){_e(!0),Wt(Mn)},ln=function(Mn){it("panel");var ri=B?ce(Be(),Mn):[Mn];je(ri),!v&&!o&&a===Ot&&Tn()},_n=function(){_e(!1)},Fn=Mde(ue,de,fe),ur=b.useMemo(function(){var On=lo(i,!1),Mn=Xa(i,[].concat(Tt(Object.keys(On)),["onChange","onCalendarChange","style","className","onPanelChange"]));return we(we({},Mn),{},{multiple:i.multiple})},[i]),Vr=b.createElement(GUe,Xe({},ur,{showNow:sn,showTime:D,disabledDate:C,onFocus:Gt,onBlur:Mt,picker:P,mode:Dt,internalMode:Ot,onPanelChange:mn,format:l,value:Ze,isInvalid:c,onChange:null,onSelect:ln,pickerValue:an,defaultOpenValue:D?.defaultOpenValue,onPickerValueChange:Ht,hoverValue:Ae,onHover:kt,needConfirm:v,onSubmit:Tn,onOk:Ye,presets:at,onPresetHover:wt,onPresetSubmit:ft,onNow:Lt,cellRender:Fn})),ni=function(Mn){je(Mn)},fr=function(){it("input")},Un=function(Mn){it("input"),_e(!0,{inherit:!0}),Wt(Mn)},hr=function(Mn){_e(!1),Mt(Mn)},Jn=function(Mn,ri){Mn.key==="Tab"&&Tn(),_?.(Mn,ri)},lr=b.useMemo(function(){return{prefixCls:d,locale:R,generateConfig:N,button:re.button,input:re.input}},[d,R,N,re.button,re.input]);return kr(function(){me&&yt!==void 0&&mn(null,P,!1)},[me,yt,P]),kr(function(){var On=it();!me&&On==="input"&&(_e(!1),Tn()),!me&&o&&!v&&On==="panel"&&(_e(!0),Tn())},[me]),b.createElement(Cm.Provider,{value:lr},b.createElement(yUe,Xe({},SUe(i),{popupElement:Vr,popupStyle:f.popup,popupClassName:p.popup,visible:me,onClose:_n}),b.createElement(CFt,Xe({},i,{ref:oe,suffixIcon:W,removeIcon:K,activeHelp:!!le,allHelp:!!le&&Ct==="preset",focused:nt,onFocus:Un,onBlur:hr,onKeyDown:Jn,onSubmit:Tn,value:He,maskFormat:l,onChange:ni,onInputChange:fr,internalPicker:a,format:s,inputReadOnly:q,disabled:S,open:me,onOpenChange:_e,onClick:An,onClear:nr,invalid:nn,onInvalid:function(Mn){zt(Mn,0)}}))))}var xFt=b.forwardRef(wFt);const YUe=b.createContext(null),TFt=YUe.Provider,KUe=b.createContext(null),IFt=KUe.Provider;var AFt=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],XUe=b.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,i=e.className,a=e.style,o=e.checked,s=e.disabled,l=e.defaultChecked,c=l===void 0?!1:l,u=e.type,d=u===void 0?"checkbox":u,f=e.title,p=e.onChange,h=$n(e,AFt),m=b.useRef(null),g=b.useRef(null),v=qr(c,{value:o}),y=Fe(v,2),_=y[0],S=y[1];b.useImperativeHandle(t,function(){return{focus:function(T){var A;(A=m.current)===null||A===void 0||A.focus(T)},blur:function(){var T;(T=m.current)===null||T===void 0||T.blur()},input:m.current,nativeElement:g.current}});var C=Oe(r,i,be(be({},"".concat(r,"-checked"),_),"".concat(r,"-disabled"),s)),w=function(T){s||("checked"in e||S(T.target.checked),p?.({target:we(we({},e),{},{type:d,checked:T.target.checked}),stopPropagation:function(){T.stopPropagation()},preventDefault:function(){T.preventDefault()},nativeEvent:T.nativeEvent}))};return b.createElement("span",{className:C,title:f,style:a,ref:g},b.createElement("input",Xe({},h,{className:"".concat(r,"-input"),ref:m,onChange:w,disabled:s,checked:!!_,type:d})),b.createElement("span",{className:"".concat(r,"-inner")}))});const RFt=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},Wr(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},NFt=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:i,motionDurationSlow:a,motionDurationMid:o,motionEaseInOutCirc:s,colorBgContainer:l,colorBorder:c,lineWidth:u,colorBgContainerDisabled:d,colorTextDisabled:f,paddingXS:p,dotColorDisabled:h,lineType:m,radioColor:g,radioBgColor:v,calc:y}=e,_=`${t}-inner`,C=y(i).sub(y(4).mul(2)),w=y(1).mul(i).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},Wr(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${Ce(u)} ${m} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},Wr(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,
        &:hover ${_}`]:{borderColor:r},[`${t}-input:focus-visible + ${_}`]:Object.assign({},r0(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:w,height:w,marginBlockStart:y(1).mul(i).div(-2).equal({unit:!0}),marginInlineStart:y(1).mul(i).div(-2).equal({unit:!0}),backgroundColor:g,borderBlockStart:0,borderInlineStart:0,borderRadius:w,transform:"scale(0)",opacity:0,transition:`all ${a} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:w,height:w,backgroundColor:l,borderColor:c,borderStyle:"solid",borderWidth:u,borderRadius:"50%",transition:`all ${o}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[_]:{borderColor:r,backgroundColor:v,"&::after":{transform:`scale(${e.calc(e.dotSize).div(i).equal()})`,opacity:1,transition:`all ${a} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[_]:{backgroundColor:d,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:h}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:f,cursor:"not-allowed"},[`&${t}-checked`]:{[_]:{"&::after":{transform:`scale(${y(C).div(i).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:p,paddingInlineEnd:p}})}},OFt=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:i,lineType:a,colorBorder:o,motionDurationSlow:s,motionDurationMid:l,buttonPaddingInline:c,fontSize:u,buttonBg:d,fontSizeLG:f,controlHeightLG:p,controlHeightSM:h,paddingXS:m,borderRadius:g,borderRadiusSM:v,borderRadiusLG:y,buttonCheckedBg:_,buttonSolidCheckedColor:S,colorTextDisabled:C,colorBgContainerDisabled:w,buttonCheckedBgDisabled:x,buttonCheckedColorDisabled:T,colorPrimary:A,colorPrimaryHover:I,colorPrimaryActive:R,buttonSolidCheckedBg:N,buttonSolidCheckedHoverBg:P,buttonSolidCheckedActiveBg:L,calc:$}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:u,lineHeight:Ce($(n).sub($(i).mul(2)).equal()),background:d,border:`${Ce(i)} ${a} ${o}`,borderBlockStartWidth:$(i).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:i,cursor:"pointer",transition:[`color ${l}`,`background ${l}`,`box-shadow ${l}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:$(i).mul(-1).equal(),insetInlineStart:$(i).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:i,paddingInline:0,backgroundColor:o,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${Ce(i)} ${a} ${o}`,borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g},"&:first-child:last-child":{borderRadius:g},[`${r}-group-large &`]:{height:p,fontSize:f,lineHeight:Ce($(p).sub($(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},[`${r}-group-small &`]:{height:h,paddingInline:$(m).sub(i).equal(),paddingBlock:0,lineHeight:Ce($(h).sub($(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v}},"&:hover":{position:"relative",color:A},"&:has(:focus-visible)":Object.assign({},r0(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:A,background:_,borderColor:A,"&::before":{backgroundColor:A},"&:first-child":{borderColor:A},"&:hover":{color:I,borderColor:I,"&::before":{backgroundColor:I}},"&:active":{color:R,borderColor:R,"&::before":{backgroundColor:R}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:S,background:N,borderColor:N,"&:hover":{color:S,background:P,borderColor:P},"&:active":{color:S,background:L,borderColor:L}},"&-disabled":{color:C,backgroundColor:w,borderColor:o,cursor:"not-allowed","&:first-child, &:hover":{color:C,backgroundColor:w,borderColor:o}},[`&-disabled${r}-button-wrapper-checked`]:{color:T,backgroundColor:x,borderColor:o,boxShadow:"none"}}}},LFt=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:i,fontSizeLG:a,colorText:o,colorBgContainer:s,colorTextDisabled:l,controlItemBgActiveDisabled:c,colorTextLightSolid:u,colorPrimary:d,colorPrimaryHover:f,colorPrimaryActive:p,colorWhite:h}=e,m=4,g=a,v=t?g-m*2:g-(m+i)*2;return{radioSize:g,dotSize:v,dotColorDisabled:l,buttonSolidCheckedColor:u,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:f,buttonSolidCheckedActiveBg:p,buttonBg:s,buttonCheckedBg:s,buttonColor:o,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:l,buttonPaddingInline:n-i,wrapperMarginInlineEnd:r,radioColor:t?d:h,radioBgColor:t?s:d}},ZUe=Kr("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${Ce(n)} ${t}`,a=br(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[RFt(a),NFt(a),OFt(a)]},LFt,{unitless:{radioSize:!0,dotSize:!0}});var PFt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const kFt=(e,t)=>{var n,r;const i=b.useContext(YUe),a=b.useContext(KUe),{getPrefixCls:o,direction:s,radio:l}=b.useContext(Sn),c=b.useRef(null),u=Ll(t,c),{isFormItemInput:d}=b.useContext(Ol),f=L=>{var $,D;($=e.onChange)===null||$===void 0||$.call(e,L),(D=i?.onChange)===null||D===void 0||D.call(i,L)},{prefixCls:p,className:h,rootClassName:m,children:g,style:v,title:y}=e,_=PFt(e,["prefixCls","className","rootClassName","children","style","title"]),S=o("radio",p),C=(i?.optionType||a)==="button",w=C?`${S}-button`:S,x=Ja(S),[T,A,I]=ZUe(S,x),R=Object.assign({},_),N=b.useContext(wc);i&&(R.name=i.name,R.onChange=f,R.checked=e.value===i.value,R.disabled=(n=R.disabled)!==null&&n!==void 0?n:i.disabled),R.disabled=(r=R.disabled)!==null&&r!==void 0?r:N;const P=Oe(`${w}-wrapper`,{[`${w}-wrapper-checked`]:R.checked,[`${w}-wrapper-disabled`]:R.disabled,[`${w}-wrapper-rtl`]:s==="rtl",[`${w}-wrapper-in-form-item`]:d},l?.className,h,m,A,I,x);return T(b.createElement(gO,{component:"Radio",disabled:R.disabled},b.createElement("label",{className:P,style:Object.assign(Object.assign({},l?.style),v),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:y},b.createElement(XUe,Object.assign({},R,{className:Oe(R.className,{[nz]:!C}),type:"radio",prefixCls:w,ref:u})),g!==void 0?b.createElement("span",null,g):null)))},G$=b.forwardRef(kFt),MFt=b.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=b.useContext(Sn),[i,a]=qr(e.defaultValue,{value:e.value}),o=L=>{const $=i,D=L.target.value;"value"in e||a(D);const{onChange:z}=e;z&&D!==$&&z(L)},{prefixCls:s,className:l,rootClassName:c,options:u,buttonStyle:d="outline",disabled:f,children:p,size:h,style:m,id:g,onMouseEnter:v,onMouseLeave:y,onFocus:_,onBlur:S}=e,C=n("radio",s),w=`${C}-group`,x=Ja(C),[T,A,I]=ZUe(C,x);let R=p;u&&u.length>0&&(R=u.map(L=>typeof L=="string"||typeof L=="number"?b.createElement(G$,{key:L.toString(),prefixCls:C,disabled:f,value:L,checked:i===L},L):b.createElement(G$,{key:`radio-group-value-options-${L.value}`,prefixCls:C,disabled:L.disabled||f,value:L.value,checked:i===L.value,title:L.title,style:L.style,id:L.id,required:L.required},L.label)));const N=ks(h),P=Oe(w,`${w}-${d}`,{[`${w}-${N}`]:N,[`${w}-rtl`]:r==="rtl"},l,c,A,I,x);return T(b.createElement("div",Object.assign({},lo(e,{aria:!0,data:!0}),{className:P,style:m,onMouseEnter:v,onMouseLeave:y,onFocus:_,onBlur:S,id:g,ref:t}),b.createElement(TFt,{value:{onChange:o,value:i,disabled:e.disabled,name:e.name,optionType:e.optionType}},R)))}),DFt=b.memo(MFt);var $Ft=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const FFt=(e,t)=>{const{getPrefixCls:n}=b.useContext(Sn),{prefixCls:r}=e,i=$Ft(e,["prefixCls"]),a=n("radio",r);return b.createElement(IFt,{value:"button"},b.createElement(G$,Object.assign({prefixCls:a},i,{type:"radio",ref:t})))},BFt=b.forwardRef(FFt),dc=G$;dc.Button=BFt;dc.Group=DFt;dc.__ANT_RADIO=!0;function NO(e){return br(e,{inputAffixPadding:e.paddingXXS})}const OO=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:i,controlHeightSM:a,controlHeightLG:o,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:p,colorPrimary:h,controlOutlineWidth:m,controlOutline:g,colorErrorOutline:v,colorWarningOutline:y,colorBgContainer:_}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-i,0),paddingBlockSM:Math.max(Math.round((a-n*r)/2*10)/10-i,0),paddingBlockLG:Math.ceil((o-s*l)/2*10)/10-i,paddingInline:c-i,paddingInlineSM:u-i,paddingInlineLG:d-i,addonBg:f,activeBorderColor:h,hoverBorderColor:p,activeShadow:`0 0 0 ${m}px ${g}`,errorActiveShadow:`0 0 0 ${m}px ${v}`,warningActiveShadow:`0 0 0 ${m}px ${y}`,hoverBg:_,activeBg:_,inputFontSize:n,inputFontSizeLG:s,inputFontSizeSM:n}},jFt=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Iz=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},jFt(br(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),jde=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),J2e=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},jde(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),zde=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},jde(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Iz(e))}),J2e(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),J2e(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),eSe=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),QUe=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Ce(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},eSe(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),eSe(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Iz(e))}})}),Ude=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},JUe=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t?.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),tSe=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},JUe(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),Hde=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},JUe(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Iz(e))}),tSe(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),tSe(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),nSe=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),eHe=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${Ce(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${Ce(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},nSe(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),nSe(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${Ce(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Ce(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Ce(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Ce(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Ce(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Ce(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),Vde=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),tHe=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:i}=e;return{padding:`${Ce(t)} ${Ce(i)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},Gde=e=>({padding:`${Ce(e.paddingBlockSM)} ${Ce(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),LO=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Ce(e.paddingBlock)} ${Ce(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},Vde(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},tHe(e)),"&-sm":Object.assign({},Gde(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),nHe=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},tHe(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},Gde(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${Ce(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${Ce(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Ce(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${Ce(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${Ce(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[`${t}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},ME()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
        & > ${t}-affix-wrapper,
        & > ${t}-number-affix-wrapper,
        & > ${n}-picker-range
      `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,
      & > ${n}-select-auto-complete ${t},
      & > ${n}-cascader-picker ${t},
      & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,
      & > ${n}-select:first-child > ${n}-select-selector,
      & > ${n}-select-auto-complete:first-child ${t},
      & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
      & > ${n}-select:last-child > ${n}-select-selector,
      & > ${n}-cascader-picker:last-child ${t},
      & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},zFt=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:i}=e,o=i(n).sub(i(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Wr(e)),LO(e)),zde(e)),Hde(e)),Ude(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:o,paddingBottom:o}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},UFt=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Ce(e.inputAffixPadding)}`}}}},HFt=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:i,colorIcon:a,colorIconHover:o,iconCls:s}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign({},LO(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),UFt(e)),{[`${s}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:o}}})}},VFt=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Wr(e)),nHe(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},QUe(e)),eHe(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}}})})}},GFt=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
        > ${t},
        ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},qFt=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
        &-allow-clear > ${t},
        &-affix-wrapper${r}-has-feedback ${t}
      `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},WFt=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},qde=Kr("Input",e=>{const t=br(e,NO(e));return[zFt(t),qFt(t),HFt(t),VFt(t),GFt(t),WFt(t),vO(t)]},OO,{resetFont:!1}),sq=(e,t)=>{const{componentCls:n,controlHeight:r}=e,i=t?`${n}-${t}`:"",a=xze(e);return[{[`${n}-multiple${i}`]:{paddingBlock:a.containerPadding,paddingInlineStart:a.basePadding,minHeight:r,[`${n}-selection-item`]:{height:a.itemHeight,lineHeight:Ce(a.itemLineHeight)}}}]},YFt=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,i=br(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),a=br(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[sq(i,"small"),sq(e),sq(a,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},Tze(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},KFt=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:i,motionDurationMid:a,cellHoverBg:o,lineWidth:s,lineType:l,colorPrimary:c,cellActiveWithRangeBg:u,colorTextLightSolid:d,colorTextDisabled:f,cellBgDisabled:p,colorFillSecondary:h}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""'},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:Ce(r),borderRadius:i,transition:`background ${a}`},[`&:hover:not(${t}-in-view),
    &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end)`]:{[n]:{background:o}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${Ce(s)} ${l} ${c}`,borderRadius:i,content:'""'}},[`&-in-view${t}-in-range,
      &-in-view${t}-range-start,
      &-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:u}},[`&-in-view${t}-selected,
      &-in-view${t}-range-start,
      &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:d,background:c},[`&${t}-disabled ${n}`]:{background:h}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:i,borderEndStartRadius:i,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i},"&-disabled":{color:f,pointerEvents:"none",[n]:{background:"transparent"},"&::before":{background:p}},[`&-disabled${t}-today ${n}::before`]:{borderColor:f}}},XFt=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:i,pickerControlIconSize:a,cellWidth:o,paddingSM:s,paddingXS:l,paddingXXS:c,colorBgContainer:u,lineWidth:d,lineType:f,borderRadiusLG:p,colorPrimary:h,colorTextHeading:m,colorSplit:g,pickerControlIconBorderWidth:v,colorIcon:y,textHeight:_,motionDurationMid:S,colorIconHover:C,fontWeightStrong:w,cellHeight:x,pickerCellPaddingVertical:T,colorTextDisabled:A,colorText:I,fontSize:R,motionDurationSlow:N,withoutTimeCellHeight:P,pickerQuarterPanelContentHeight:L,borderRadiusSM:$,colorTextLightSolid:D,cellHoverBg:z,timeColumnHeight:U,timeColumnWidth:H,timeCellHeight:M,controlItemBgActive:B,marginXXS:k,pickerDatePanelPaddingHorizontal:F,pickerControlIconMargin:G}=e,q=e.calc(o).mul(7).add(e.calc(F).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:u,borderRadius:p,outline:"none","&-focused":{borderColor:h},"&-rtl":{[`${t}-prev-icon,
              ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon,
              ${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n        &-year-panel,\n        &-quarter-panel,\n        &-month-panel,\n        &-week-panel,\n        &-date-panel,\n        &-time-panel":{display:"flex",flexDirection:"column",width:q},"&-header":{display:"flex",padding:`0 ${Ce(l)}`,color:m,borderBottom:`${Ce(d)} ${f} ${g}`,"> *":{flex:"none"},button:{padding:0,color:y,lineHeight:Ce(_),background:"transparent",border:0,cursor:"pointer",transition:`color ${S}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center"},"> button":{minWidth:"1.6em",fontSize:R,"&:hover":{color:C},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:w,lineHeight:Ce(_),"> button":{color:"inherit",fontWeight:"inherit","&:not(:first-child)":{marginInlineStart:l},"&:hover":{color:h}}}},"&-prev-icon,\n        &-next-icon,\n        &-super-prev-icon,\n        &-super-next-icon":{position:"relative",width:a,height:a,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:a,height:a,border:"0 solid currentcolor",borderBlockWidth:`${Ce(v)} 0`,borderInlineWidth:`${Ce(v)} 0`,content:'""'}},"&-super-prev-icon,\n        &-super-next-icon":{"&::after":{position:"absolute",top:G,insetInlineStart:G,display:"inline-block",width:a,height:a,border:"0 solid currentcolor",borderBlockWidth:`${Ce(v)} 0`,borderInlineWidth:`${Ce(v)} 0`,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:x,fontWeight:"normal"},th:{height:e.calc(x).add(e.calc(T).mul(2)).equal(),color:I,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${Ce(T)} 0`,color:A,cursor:"pointer","&-in-view":{color:I}},KFt(e)),"&-decade-panel,\n        &-year-panel,\n        &-quarter-panel,\n        &-month-panel":{[`${t}-content`]:{height:e.calc(P).mul(4).equal()},[r]:{padding:`0 ${Ce(l)}`}},"&-quarter-panel":{[`${t}-content`]:{height:L}},"&-decade-panel":{[r]:{padding:`0 ${Ce(e.calc(l).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n        &-quarter-panel,\n        &-month-panel":{[`${t}-body`]:{padding:`0 ${Ce(l)}`},[r]:{width:i}},"&-date-panel":{[`${t}-body`]:{padding:`${Ce(l)} ${Ce(F)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel":{[`${t}-cell`]:{[`&:hover ${r},
            &-selected ${r},
            ${r}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${S}`},"&:first-child:before":{borderStartStartRadius:$,borderEndStartRadius:$},"&:last-child:before":{borderStartEndRadius:$,borderEndEndRadius:$}},"&:hover td":{"&:before":{background:z}},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:h},[`&${t}-cell-week`]:{color:new ti(D).setAlpha(.5).toHexString()},[r]:{color:D}}},"&-range-hover td:before":{background:B}}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${Ce(l)} ${Ce(s)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${Ce(d)} ${f} ${g}`},[`${t}-date-panel,
          ${t}-time-panel`]:{transition:`opacity ${N}`},"&-active":{[`${t}-date-panel,
            ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:U},"&-column":{flex:"1 0 auto",width:H,margin:`${Ce(c)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${S}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:e.calc("100%").sub(M).equal(),content:'""'},"&:not(:first-child)":{borderInlineStart:`${Ce(d)} ${f} ${g}`},"&-active":{background:new ti(B).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:k,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(H).sub(e.calc(k).mul(2)).equal(),height:M,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(H).sub(M).div(2).equal(),color:I,lineHeight:Ce(M),borderRadius:$,cursor:"pointer",transition:`background ${S}`,"&:hover":{background:z}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:B}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:A,background:"transparent",cursor:"not-allowed"}}}}}}}}},ZFt=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:i,antCls:a,colorPrimary:o,cellActiveWithRangeBg:s,colorPrimaryBorder:l,lineType:c,colorSplit:u}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${Ce(r)} ${c} ${u}`,"&-extra":{padding:`0 ${Ce(i)}`,lineHeight:Ce(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${Ce(r)} ${c} ${u}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:Ce(i),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:Ce(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${a}-tag-blue`]:{color:o,background:s,borderColor:l,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},QFt=e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:i}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(i).add(e.calc(r).div(2)).equal()}},JFt=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:i,paddingXXS:a,lineWidth:o}=e,s=a*2,l=o*2,c=Math.min(n-s,n-l),u=Math.min(r-s,r-l),d=Math.min(i-s,i-l);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(a/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new ti(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new ti(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:i*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:i,withoutTimeCellHeight:i*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:c,multipleItemHeightSM:u,multipleItemHeightLG:d,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},eBt=e=>Object.assign(Object.assign(Object.assign(Object.assign({},OO(e)),JFt(e)),xO(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),tBt=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign({},zde(e)),Hde(e)),Ude(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${Ce(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${Ce(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${Ce(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},lq=(e,t,n,r)=>{const i=e.calc(n).add(2).equal(),a=e.max(e.calc(t).sub(i).div(2).equal(),0),o=e.max(e.calc(t).sub(i).sub(a).equal(),0);return{padding:`${Ce(a)} ${Ce(r)} ${Ce(o)}`}},nBt=e=>{const{componentCls:t,colorError:n,colorWarning:r}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:r}}}}},rBt=e=>{const{componentCls:t,antCls:n,controlHeight:r,paddingInline:i,lineWidth:a,lineType:o,colorBorder:s,borderRadius:l,motionDurationMid:c,colorTextDisabled:u,colorTextPlaceholder:d,controlHeightLG:f,fontSizeLG:p,controlHeightSM:h,paddingInlineSM:m,paddingXS:g,marginXS:v,colorTextDescription:y,lineWidthBold:_,colorPrimary:S,motionDurationSlow:C,zIndexPopup:w,paddingXXS:x,sizePopupArrow:T,colorBgElevated:A,borderRadiusLG:I,boxShadowSecondary:R,borderRadiusSM:N,colorSplit:P,cellHoverBg:L,presetsWidth:$,presetsMaxWidth:D,boxShadowPopoverArrow:z,fontHeight:U,fontHeightLG:H,lineHeightLG:M}=e;return[{[t]:Object.assign(Object.assign(Object.assign({},Wr(e)),lq(e,r,U,i)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:l,transition:`border ${c}, box-shadow ${c}, background ${c}`,[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:e.fontSize,lineHeight:e.lineHeight,transition:`all ${c}`},Vde(d)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:u,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:d}}},"&-large":Object.assign(Object.assign({},lq(e,f,H,i)),{[`${t}-input > input`]:{fontSize:p,lineHeight:M}}),"&-small":Object.assign({},lq(e,h,U,m)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(g).div(2).equal(),color:u,lineHeight:1,pointerEvents:"none",transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:v}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:u,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top"},"&:hover":{color:y}},"&:hover":{[`${t}-clear`]:{opacity:1},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:p,color:u,fontSize:p,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:y},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-active-bar`]:{bottom:e.calc(a).mul(-1).equal(),height:_,background:S,opacity:0,transition:`all ${C} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${Ce(g)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:i},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:m}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},Wr(e)),XFt(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:w,[`&${t}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${t}-dropdown-placement-bottomLeft,
            &${t}-dropdown-placement-bottomRight`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft,
            &${t}-dropdown-placement-topRight`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft,
          &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight,
          &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft,
          &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:uz},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft,
          &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomRight,
          &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft,
          &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:lz},[`&${n}-slide-up-leave ${t}-panel-container`]:{pointerEvents:"none"},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft,
          &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:dz},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft,
          &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:cz},[`${t}-panel > ${t}-time-panel`]:{paddingTop:x},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(i).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${C} ease-out`},kze(e,A,z)),{"&:before":{insetInlineStart:e.calc(i).mul(1.5).equal()}}),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:A,borderRadius:I,boxShadow:R,transition:`margin ${C}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:$,maxWidth:D,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:g,borderInlineEnd:`${Ce(a)} ${o} ${P}`,li:Object.assign(Object.assign({},Pp),{borderRadius:N,paddingInline:g,paddingBlock:e.calc(h).sub(U).div(2).equal(),cursor:"pointer",transition:`all ${C}`,"+ li":{marginTop:v},"&:hover":{background:L}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:s}}}}),"&-dropdown-range":{padding:`${Ce(e.calc(T).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},ev(e,"slide-up"),ev(e,"slide-down"),x3(e,"move-up"),x3(e,"move-down")]},rHe=Kr("DatePicker",e=>{const t=br(NO(e),QFt(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[ZFt(t),rBt(t),tBt(t),nBt(t),YFt(t),vO(e,{focusElCls:`${e.componentCls}-focused`})]},eBt),Az=b.createContext(null);var iBt=function(t){var n=t.activeTabOffset,r=t.horizontal,i=t.rtl,a=t.indicator,o=a===void 0?{}:a,s=o.size,l=o.align,c=l===void 0?"center":l,u=b.useState(),d=Fe(u,2),f=d[0],p=d[1],h=b.useRef(),m=se.useCallback(function(v){return typeof s=="function"?s(v):typeof s=="number"?s:v},[s]);function g(){Tr.cancel(h.current)}return b.useEffect(function(){var v={};if(n)if(r){v.width=m(n.width);var y=i?"right":"left";c==="start"&&(v[y]=n[y]),c==="center"&&(v[y]=n[y]+n.width/2,v.transform=i?"translateX(50%)":"translateX(-50%)"),c==="end"&&(v[y]=n[y]+n.width,v.transform="translateX(-100%)")}else v.height=m(n.height),c==="start"&&(v.top=n.top),c==="center"&&(v.top=n.top+n.height/2,v.transform="translateY(-50%)"),c==="end"&&(v.top=n.top+n.height,v.transform="translateY(-100%)");return g(),h.current=Tr(function(){p(v)}),g},[n,r,i,c,m]),{style:f}},rSe={width:0,height:0,left:0,top:0};function aBt(e,t,n){return b.useMemo(function(){for(var r,i=new Map,a=t.get((r=e[0])===null||r===void 0?void 0:r.key)||rSe,o=a.left+a.width,s=0;s<e.length;s+=1){var l=e[s].key,c=t.get(l);if(!c){var u;c=t.get((u=e[s-1])===null||u===void 0?void 0:u.key)||rSe}var d=i.get(l)||we({},c);d.right=o-d.left-d.width,i.set(l,d)}return i},[e.map(function(r){return r.key}).join("_"),t,n])}function iSe(e,t){var n=b.useRef(e),r=b.useState({}),i=Fe(r,2),a=i[1];function o(s){var l=typeof s=="function"?s(n.current):s;l!==n.current&&t(l,n.current),n.current=l,a({})}return[n.current,o]}var oBt=.1,aSe=.01,J9=20,oSe=Math.pow(.995,J9);function sBt(e,t){var n=b.useState(),r=Fe(n,2),i=r[0],a=r[1],o=b.useState(0),s=Fe(o,2),l=s[0],c=s[1],u=b.useState(0),d=Fe(u,2),f=d[0],p=d[1],h=b.useState(),m=Fe(h,2),g=m[0],v=m[1],y=b.useRef();function _(A){var I=A.touches[0],R=I.screenX,N=I.screenY;a({x:R,y:N}),window.clearInterval(y.current)}function S(A){if(i){A.preventDefault();var I=A.touches[0],R=I.screenX,N=I.screenY;a({x:R,y:N});var P=R-i.x,L=N-i.y;t(P,L);var $=Date.now();c($),p($-l),v({x:P,y:L})}}function C(){if(i&&(a(null),v(null),g)){var A=g.x/f,I=g.y/f,R=Math.abs(A),N=Math.abs(I);if(Math.max(R,N)<oBt)return;var P=A,L=I;y.current=window.setInterval(function(){if(Math.abs(P)<aSe&&Math.abs(L)<aSe){window.clearInterval(y.current);return}P*=oSe,L*=oSe,t(P*J9,L*J9)},J9)}}var w=b.useRef();function x(A){var I=A.deltaX,R=A.deltaY,N=0,P=Math.abs(I),L=Math.abs(R);P===L?N=w.current==="x"?I:R:P>L?(N=I,w.current="x"):(N=R,w.current="y"),t(-N,-N)&&A.preventDefault()}var T=b.useRef(null);T.current={onTouchStart:_,onTouchMove:S,onTouchEnd:C,onWheel:x},b.useEffect(function(){function A(P){T.current.onTouchStart(P)}function I(P){T.current.onTouchMove(P)}function R(P){T.current.onTouchEnd(P)}function N(P){T.current.onWheel(P)}return document.addEventListener("touchmove",I,{passive:!1}),document.addEventListener("touchend",R,{passive:!0}),e.current.addEventListener("touchstart",A,{passive:!0}),e.current.addEventListener("wheel",N,{passive:!1}),function(){document.removeEventListener("touchmove",I),document.removeEventListener("touchend",R)}},[])}function iHe(e){var t=b.useState(0),n=Fe(t,2),r=n[0],i=n[1],a=b.useRef(0),o=b.useRef();return o.current=e,rE(function(){var s;(s=o.current)===null||s===void 0||s.call(o)},[r]),function(){a.current===r&&(a.current+=1,i(a.current))}}function lBt(e){var t=b.useRef([]),n=b.useState({}),r=Fe(n,2),i=r[1],a=b.useRef(typeof e=="function"?e():e),o=iHe(function(){var l=a.current;t.current.forEach(function(c){l=c(l)}),t.current=[],a.current=l,i({})});function s(l){t.current.push(l),o()}return[a.current,s]}var sSe={width:0,height:0,left:0,top:0,right:0};function cBt(e,t,n,r,i,a,o){var s=o.tabs,l=o.tabPosition,c=o.rtl,u,d,f;return["top","bottom"].includes(l)?(u="width",d=c?"right":"left",f=Math.abs(n)):(u="height",d="top",f=-n),b.useMemo(function(){if(!s.length)return[0,0];for(var p=s.length,h=p,m=0;m<p;m+=1){var g=e.get(s[m].key)||sSe;if(g[d]+g[u]>f+t){h=m-1;break}}for(var v=0,y=p-1;y>=0;y-=1){var _=e.get(s[y].key)||sSe;if(_[d]<f){v=y+1;break}}return v>=h?[0,0]:[v,h]},[e,t,r,i,a,f,l,s.map(function(p){return p.key}).join("_"),c])}function lSe(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var uBt="TABS_DQ";function aHe(e){return String(e).replace(/"/g,uBt)}function oHe(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var sHe=b.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,i=e.locale,a=e.style;return!r||r.showAdd===!1?null:b.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":i?.addAriaLabel||"Add tab",onClick:function(s){r.onEdit("add",{event:s})}},r.addIcon||"+")}),cSe=b.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,i=e.extra;if(!i)return null;var a,o={};return cn(i)==="object"&&!b.isValidElement(i)?o=i:o.right=i,n==="right"&&(a=o.right),n==="left"&&(a=o.left),a?b.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},a):null}),dBt=b.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,i=e.tabs,a=e.locale,o=e.mobile,s=e.more,l=s===void 0?{}:s,c=e.style,u=e.className,d=e.editable,f=e.tabBarGutter,p=e.rtl,h=e.removeAriaLabel,m=e.onTabClick,g=e.getPopupContainer,v=e.popupClassName,y=b.useState(!1),_=Fe(y,2),S=_[0],C=_[1],w=b.useState(null),x=Fe(w,2),T=x[0],A=x[1],I=l.icon,R=I===void 0?"More":I,N="".concat(r,"-more-popup"),P="".concat(n,"-dropdown"),L=T!==null?"".concat(N,"-").concat(T):null,$=a?.dropdownAriaLabel;function D(F,G){F.preventDefault(),F.stopPropagation(),d.onEdit("remove",{key:G,event:F})}var z=b.createElement(vT,{onClick:function(G){var q=G.key,W=G.domEvent;m(q,W),C(!1)},prefixCls:"".concat(P,"-menu"),id:N,tabIndex:-1,role:"listbox","aria-activedescendant":L,selectedKeys:[T],"aria-label":$!==void 0?$:"expanded dropdown"},i.map(function(F){var G=F.closable,q=F.disabled,W=F.closeIcon,K=F.key,J=F.label,te=oHe(G,W,d,q);return b.createElement(IO,{key:K,id:"".concat(N,"-").concat(K),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(K),disabled:q},b.createElement("span",null,J),te&&b.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:0,className:"".concat(P,"-menu-item-remove"),onClick:function(re){re.stopPropagation(),D(re,K)}},W||d.removeIcon||"×"))}));function U(F){for(var G=i.filter(function(te){return!te.disabled}),q=G.findIndex(function(te){return te.key===T})||0,W=G.length,K=0;K<W;K+=1){q=(q+F+W)%W;var J=G[q];if(!J.disabled){A(J.key);return}}}function H(F){var G=F.which;if(!S){[Bt.DOWN,Bt.SPACE,Bt.ENTER].includes(G)&&(C(!0),F.preventDefault());return}switch(G){case Bt.UP:U(-1),F.preventDefault();break;case Bt.DOWN:U(1),F.preventDefault();break;case Bt.ESC:C(!1);break;case Bt.SPACE:case Bt.ENTER:T!==null&&m(T,F);break}}b.useEffect(function(){var F=document.getElementById(L);F&&F.scrollIntoView&&F.scrollIntoView(!1)},[T]),b.useEffect(function(){S||A(null)},[S]);var M=be({},p?"marginRight":"marginLeft",f);i.length||(M.visibility="hidden",M.order=1);var B=Oe(be({},"".concat(P,"-rtl"),p)),k=o?null:b.createElement(Hze,Xe({prefixCls:P,overlay:z,visible:i.length?S:!1,onVisibleChange:C,overlayClassName:Oe(B,v),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:g},l),b.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:M,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":N,id:"".concat(r,"-more"),"aria-expanded":S,onKeyDown:H},R));return b.createElement("div",{className:Oe("".concat(n,"-nav-operations"),u),style:c,ref:t},k,b.createElement(sHe,{prefixCls:n,locale:a,editable:d}))});const fBt=b.memo(dBt,function(e,t){return t.tabMoving});var pBt=function(t){var n=t.prefixCls,r=t.id,i=t.active,a=t.tab,o=a.key,s=a.label,l=a.disabled,c=a.closeIcon,u=a.icon,d=t.closable,f=t.renderWrapper,p=t.removeAriaLabel,h=t.editable,m=t.onClick,g=t.onFocus,v=t.style,y="".concat(n,"-tab"),_=oHe(d,c,h,l);function S(T){l||m(T)}function C(T){T.preventDefault(),T.stopPropagation(),h.onEdit("remove",{key:o,event:T})}var w=b.useMemo(function(){return u&&typeof s=="string"?b.createElement("span",null,s):s},[s,u]),x=b.createElement("div",{key:o,"data-node-key":aHe(o),className:Oe(y,be(be(be({},"".concat(y,"-with-remove"),_),"".concat(y,"-active"),i),"".concat(y,"-disabled"),l)),style:v,onClick:S},b.createElement("div",{role:"tab","aria-selected":i,id:r&&"".concat(r,"-tab-").concat(o),className:"".concat(y,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(o),"aria-disabled":l,tabIndex:l?null:0,onClick:function(A){A.stopPropagation(),S(A)},onKeyDown:function(A){[Bt.SPACE,Bt.ENTER].includes(A.which)&&(A.preventDefault(),S(A))},onFocus:g},u&&b.createElement("span",{className:"".concat(y,"-icon")},u),s&&w),_&&b.createElement("button",{type:"button","aria-label":p||"remove",tabIndex:0,className:"".concat(y,"-remove"),onClick:function(A){A.stopPropagation(),C(A)}},c||h.removeIcon||"×"));return f?f(x):x},hBt=function(t,n){var r=t.offsetWidth,i=t.offsetHeight,a=t.offsetTop,o=t.offsetLeft,s=t.getBoundingClientRect(),l=s.width,c=s.height,u=s.x,d=s.y;return Math.abs(l-r)<1?[l,c,u-n.x,d-n.y]:[r,i,o,a]},ww=function(t){var n=t.current||{},r=n.offsetWidth,i=r===void 0?0:r,a=n.offsetHeight,o=a===void 0?0:a;if(t.current){var s=t.current.getBoundingClientRect(),l=s.width,c=s.height;if(Math.abs(l-i)<1)return[l,c]}return[i,o]},dP=function(t,n){return t[n?0:1]},uSe=b.forwardRef(function(e,t){var n=e.className,r=e.style,i=e.id,a=e.animated,o=e.activeKey,s=e.rtl,l=e.extra,c=e.editable,u=e.locale,d=e.tabPosition,f=e.tabBarGutter,p=e.children,h=e.onTabClick,m=e.onTabScroll,g=e.indicator,v=b.useContext(Az),y=v.prefixCls,_=v.tabs,S=b.useRef(null),C=b.useRef(null),w=b.useRef(null),x=b.useRef(null),T=b.useRef(null),A=b.useRef(null),I=b.useRef(null),R=d==="top"||d==="bottom",N=iSe(0,function(an,Ht){R&&m&&m({direction:an>Ht?"left":"right"})}),P=Fe(N,2),L=P[0],$=P[1],D=iSe(0,function(an,Ht){!R&&m&&m({direction:an>Ht?"top":"bottom"})}),z=Fe(D,2),U=z[0],H=z[1],M=b.useState([0,0]),B=Fe(M,2),k=B[0],F=B[1],G=b.useState([0,0]),q=Fe(G,2),W=q[0],K=q[1],J=b.useState([0,0]),te=Fe(J,2),ae=te[0],re=te[1],ue=b.useState([0,0]),de=Fe(ue,2),fe=de[0],ge=de[1],oe=lBt(new Map),Ee=Fe(oe,2),ce=Ee[0],he=Ee[1],ye=aBt(_,ce,W[0]),me=dP(k,R),_e=dP(W,R),Te=dP(ae,R),xe=dP(fe,R),De=me<_e+Te,Pe=De?me-xe:me-Te,Le="".concat(y,"-nav-operations-hidden"),ze=0,Be=0;R&&s?(ze=0,Be=Math.max(0,_e-Pe)):(ze=Math.min(0,Pe-_e),Be=0);function je(an){return an<ze?ze:an>Be?Be:an}var Ye=b.useRef(null),Ze=b.useState(),Ke=Fe(Ze,2),qe=Ke[0],nt=Ke[1];function Qe(){nt(Date.now())}function it(){Ye.current&&clearTimeout(Ye.current)}sBt(x,function(an,Ht){function mn(Tn,An){Tn(function(nr){var un=je(nr+An);return un})}return De?(R?mn($,an):mn(H,Ht),it(),Qe(),!0):!1}),b.useEffect(function(){return it(),qe&&(Ye.current=setTimeout(function(){nt(0)},100)),it},[qe]);var yt=cBt(ye,Pe,R?L:U,_e,Te,xe,we(we({},e),{},{tabs:_})),Wt=Fe(yt,2),Mt=Wt[0],tn=Wt[1],Rt=gr(function(){var an=arguments.length>0&&arguments[0]!==void 0?arguments[0]:o,Ht=ye.get(an)||{width:0,height:0,left:0,right:0,top:0};if(R){var mn=L;s?Ht.right<L?mn=Ht.right:Ht.right+Ht.width>L+Pe&&(mn=Ht.right+Ht.width-Pe):Ht.left<-L?mn=-Ht.left:Ht.left+Ht.width>-L+Pe&&(mn=-(Ht.left+Ht.width-Pe)),H(0),$(je(mn))}else{var Tn=U;Ht.top<-U?Tn=-Ht.top:Ht.top+Ht.height>-U+Pe&&(Tn=-(Ht.top+Ht.height-Pe)),$(0),H(je(Tn))}}),Dt={};d==="top"||d==="bottom"?Dt[s?"marginRight":"marginLeft"]=f:Dt.marginTop=f;var Pt=_.map(function(an,Ht){var mn=an.key;return b.createElement(pBt,{id:i,prefixCls:y,key:mn,tab:an,style:Ht===0?void 0:Dt,closable:an.closable,editable:c,active:mn===o,renderWrapper:p,removeAriaLabel:u?.removeAriaLabel,onClick:function(An){h(mn,An)},onFocus:function(){Rt(mn),Qe(),x.current&&(s||(x.current.scrollLeft=0),x.current.scrollTop=0)}})}),Ot=function(){return he(function(){var Ht,mn=new Map,Tn=(Ht=T.current)===null||Ht===void 0?void 0:Ht.getBoundingClientRect();return _.forEach(function(An){var nr,un=An.key,et=(nr=T.current)===null||nr===void 0?void 0:nr.querySelector('[data-node-key="'.concat(aHe(un),'"]'));if(et){var Ct=hBt(et,Tn),Q=Fe(Ct,4),Y=Q[0],ee=Q[1],le=Q[2],Se=Q[3];mn.set(un,{width:Y,height:ee,left:le,top:Se})}}),mn})};b.useEffect(function(){Ot()},[_.map(function(an){return an.key}).join("_")]);var sn=iHe(function(){var an=ww(S),Ht=ww(C),mn=ww(w);F([an[0]-Ht[0]-mn[0],an[1]-Ht[1]-mn[1]]);var Tn=ww(I);re(Tn);var An=ww(A);ge(An);var nr=ww(T);K([nr[0]-Tn[0],nr[1]-Tn[1]]),Ot()}),Jt=_.slice(0,Mt),Vt=_.slice(tn+1),pt=[].concat(Tt(Jt),Tt(Vt)),tt=ye.get(o),dt=iBt({activeTabOffset:tt,horizontal:R,indicator:g,rtl:s}),Et=dt.style;b.useEffect(function(){Rt()},[o,ze,Be,lSe(tt),lSe(ye),R]),b.useEffect(function(){sn()},[s]);var St=!!pt.length,zt="".concat(y,"-nav-wrap"),nn,wn,kn,fn;return R?s?(wn=L>0,nn=L!==Be):(nn=L<0,wn=L!==ze):(kn=U<0,fn=U!==ze),b.createElement(Sc,{onResize:sn},b.createElement("div",{ref:hv(t,S),role:"tablist",className:Oe("".concat(y,"-nav"),n),style:r,onKeyDown:function(){Qe()}},b.createElement(cSe,{ref:C,position:"left",extra:l,prefixCls:y}),b.createElement(Sc,{onResize:sn},b.createElement("div",{className:Oe(zt,be(be(be(be({},"".concat(zt,"-ping-left"),nn),"".concat(zt,"-ping-right"),wn),"".concat(zt,"-ping-top"),kn),"".concat(zt,"-ping-bottom"),fn)),ref:x},b.createElement(Sc,{onResize:sn},b.createElement("div",{ref:T,className:"".concat(y,"-nav-list"),style:{transform:"translate(".concat(L,"px, ").concat(U,"px)"),transition:qe?"none":void 0}},Pt,b.createElement(sHe,{ref:I,prefixCls:y,locale:u,editable:c,style:we(we({},Pt.length===0?void 0:Dt),{},{visibility:St?"hidden":null})}),b.createElement("div",{className:Oe("".concat(y,"-ink-bar"),be({},"".concat(y,"-ink-bar-animated"),a.inkBar)),style:Et}))))),b.createElement(fBt,Xe({},e,{removeAriaLabel:u?.removeAriaLabel,ref:A,prefixCls:y,tabs:pt,className:!St&&Le,tabMoving:!!qe})),b.createElement(cSe,{ref:w,position:"right",extra:l,prefixCls:y})))}),lHe=b.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,a=e.id,o=e.active,s=e.tabKey,l=e.children;return b.createElement("div",{id:a&&"".concat(a,"-panel-").concat(s),role:"tabpanel",tabIndex:o?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(s),"aria-hidden":!o,style:i,className:Oe(n,o&&"".concat(n,"-active"),r),ref:t},l)}),mBt=["renderTabBar"],gBt=["label","key"],vBt=function(t){var n=t.renderTabBar,r=$n(t,mBt),i=b.useContext(Az),a=i.tabs;if(n){var o=we(we({},r),{},{panes:a.map(function(s){var l=s.label,c=s.key,u=$n(s,gBt);return b.createElement(lHe,Xe({tab:l,key:c,tabKey:c},u))})});return n(o,uSe)}return b.createElement(uSe,r)},yBt=["key","forceRender","style","className","destroyInactiveTabPane"],bBt=function(t){var n=t.id,r=t.activeKey,i=t.animated,a=t.tabPosition,o=t.destroyInactiveTabPane,s=b.useContext(Az),l=s.prefixCls,c=s.tabs,u=i.tabPane,d="".concat(l,"-tabpane");return b.createElement("div",{className:Oe("".concat(l,"-content-holder"))},b.createElement("div",{className:Oe("".concat(l,"-content"),"".concat(l,"-content-").concat(a),be({},"".concat(l,"-content-animated"),u))},c.map(function(f){var p=f.key,h=f.forceRender,m=f.style,g=f.className,v=f.destroyInactiveTabPane,y=$n(f,yBt),_=p===r;return b.createElement(Sl,Xe({key:p,visible:_,forceRender:h,removeOnLeave:!!(o||v),leavedClassName:"".concat(d,"-hidden")},i.tabPaneMotion),function(S,C){var w=S.style,x=S.className;return b.createElement(lHe,Xe({},y,{prefixCls:d,id:n,tabKey:p,animated:u,active:_,style:we(we({},m),w),className:Oe(g,x),ref:C}))})})))};function _Bt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=we({inkBar:!0},cn(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var SBt=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],dSe=0,EBt=b.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,i=r===void 0?"rc-tabs":r,a=e.className,o=e.items,s=e.direction,l=e.activeKey,c=e.defaultActiveKey,u=e.editable,d=e.animated,f=e.tabPosition,p=f===void 0?"top":f,h=e.tabBarGutter,m=e.tabBarStyle,g=e.tabBarExtraContent,v=e.locale,y=e.more,_=e.destroyInactiveTabPane,S=e.renderTabBar,C=e.onChange,w=e.onTabClick,x=e.onTabScroll,T=e.getPopupContainer,A=e.popupClassName,I=e.indicator,R=$n(e,SBt),N=b.useMemo(function(){return(o||[]).filter(function(fe){return fe&&cn(fe)==="object"&&"key"in fe})},[o]),P=s==="rtl",L=_Bt(d),$=b.useState(!1),D=Fe($,2),z=D[0],U=D[1];b.useEffect(function(){U(fz())},[]);var H=qr(function(){var fe;return(fe=N[0])===null||fe===void 0?void 0:fe.key},{value:l,defaultValue:c}),M=Fe(H,2),B=M[0],k=M[1],F=b.useState(function(){return N.findIndex(function(fe){return fe.key===B})}),G=Fe(F,2),q=G[0],W=G[1];b.useEffect(function(){var fe=N.findIndex(function(oe){return oe.key===B});if(fe===-1){var ge;fe=Math.max(0,Math.min(q,N.length-1)),k((ge=N[fe])===null||ge===void 0?void 0:ge.key)}W(fe)},[N.map(function(fe){return fe.key}).join("_"),B,q]);var K=qr(null,{value:n}),J=Fe(K,2),te=J[0],ae=J[1];b.useEffect(function(){n||(ae("rc-tabs-".concat(dSe)),dSe+=1)},[]);function re(fe,ge){w?.(fe,ge);var oe=fe!==B;k(fe),oe&&C?.(fe)}var ue={id:te,activeKey:B,animated:L,tabPosition:p,rtl:P,mobile:z},de=we(we({},ue),{},{editable:u,locale:v,more:y,tabBarGutter:h,onTabClick:re,onTabScroll:x,extra:g,style:m,panes:null,getPopupContainer:T,popupClassName:A,indicator:I});return b.createElement(Az.Provider,{value:{tabs:N,prefixCls:i}},b.createElement("div",Xe({ref:t,id:n,className:Oe(i,"".concat(i,"-").concat(p),be(be(be({},"".concat(i,"-mobile"),z),"".concat(i,"-editable"),u),"".concat(i,"-rtl"),P),a)},R),b.createElement(vBt,Xe({},de,{renderTabBar:S})),b.createElement(bBt,Xe({destroyInactiveTabPane:_},ue,{animated:L}))))});const CBt={motionAppear:!1,motionEnter:!0,motionLeave:!0};function wBt(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},CBt),{motionName:Ad(e,"switch")})),n}var xBt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function TBt(e){return e.filter(t=>t)}function IBt(e,t){if(e)return e;const n=_l(t).map(r=>{if(b.isValidElement(r)){const{key:i,props:a}=r,o=a||{},{tab:s}=o,l=xBt(o,["tab"]);return Object.assign(Object.assign({key:String(i)},l),{label:s})}return null});return TBt(n)}const ABt=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[ev(e,"slide-up"),ev(e,"slide-down")]]},RBt=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:i,colorBorderSecondary:a,itemSelectedColor:o}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${Ce(e.lineWidth)} ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:o,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:Ce(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${Ce(e.borderRadiusLG)} ${Ce(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${Ce(e.borderRadiusLG)} ${Ce(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:Ce(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Ce(e.borderRadiusLG)} 0 0 ${Ce(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Ce(e.borderRadiusLG)} ${Ce(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},NBt=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Wr(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${Ce(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Pp),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${Ce(e.paddingXXS)} ${Ce(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},OBt=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:i,verticalItemPadding:a,verticalItemMargin:o,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:i,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${Ce(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
            right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
        > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:a,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:o},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:Ce(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${Ce(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${Ce(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},LBt=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:i,horizontalItemPaddingLG:a}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${Ce(e.borderRadius)} ${Ce(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${Ce(e.borderRadius)} ${Ce(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Ce(e.borderRadius)} ${Ce(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Ce(e.borderRadius)} 0 0 ${Ce(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},PBt=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:a,horizontalItemPadding:o,itemSelectedColor:s,itemColor:l}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:o,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},kp(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${c}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${c}-active ${c}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${i}`]:{margin:0},[`${i}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:a}}}},kBt=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:i,calc:a}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:Ce(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:Ce(e.marginXS)},marginLeft:{_skip_check_:!0,value:Ce(a(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:i},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},MBt=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:i,itemHoverColor:a,itemActiveColor:o,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Wr(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:i},padding:`0 ${Ce(e.paddingXS)}`,background:"transparent",border:`${Ce(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${Ce(e.borderRadiusLG)} ${Ce(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:a},"&:active, &:focus:not(:focus-visible)":{color:o}},kp(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),PBt(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},DBt=e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},$Bt=Kr("Tabs",e=>{const t=br(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Ce(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${Ce(e.horizontalItemGutter)}`});return[LBt(t),kBt(t),OBt(t),NBt(t),RBt(t),MBt(t),ABt(t)]},DBt),FBt=()=>null;var BBt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Lu=e=>{var t,n,r,i,a,o,s,l,c,u,d;const{type:f,className:p,rootClassName:h,size:m,onEdit:g,hideAdd:v,centered:y,addIcon:_,removeIcon:S,moreIcon:C,more:w,popupClassName:x,children:T,items:A,animated:I,style:R,indicatorSize:N,indicator:P}=e,L=BBt(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:$}=L,{direction:D,tabs:z,getPrefixCls:U,getPopupContainer:H}=b.useContext(Sn),M=U("tabs",$),B=Ja(M),[k,F,G]=$Bt(M,B);let q;f==="editable-card"&&(q={onEdit:(ue,de)=>{let{key:fe,event:ge}=de;g?.(ue==="add"?ge:fe,ue)},removeIcon:(t=S??z?.removeIcon)!==null&&t!==void 0?t:b.createElement(Ic,null),addIcon:(_??z?.addIcon)||b.createElement(Td,null),showAdd:v!==!0});const W=U(),K=ks(m),J=IBt(A,T),te=wBt(M,I),ae=Object.assign(Object.assign({},z?.style),R),re={align:(n=P?.align)!==null&&n!==void 0?n:(r=z?.indicator)===null||r===void 0?void 0:r.align,size:(s=(a=(i=P?.size)!==null&&i!==void 0?i:N)!==null&&a!==void 0?a:(o=z?.indicator)===null||o===void 0?void 0:o.size)!==null&&s!==void 0?s:z?.indicatorSize};return k(b.createElement(EBt,Object.assign({direction:D,getPopupContainer:H},L,{items:J,className:Oe({[`${M}-${K}`]:K,[`${M}-card`]:["card","editable-card"].includes(f),[`${M}-editable-card`]:f==="editable-card",[`${M}-centered`]:y},z?.className,p,h,F,G,B),popupClassName:Oe(x,F,G,B),style:ae,editable:q,more:Object.assign({icon:(d=(u=(c=(l=z?.more)===null||l===void 0?void 0:l.icon)!==null&&c!==void 0?c:z?.moreIcon)!==null&&u!==void 0?u:C)!==null&&d!==void 0?d:b.createElement(Wce,null),transitionName:`${W}-slide-up`},w),prefixCls:M,animated:te,indicator:re})))};Lu.TabPane=FBt;function jBt(e,t,n){var r=n||{},i=r.noTrailing,a=i===void 0?!1:i,o=r.noLeading,s=o===void 0?!1:o,l=r.debounceMode,c=l===void 0?void 0:l,u,d=!1,f=0;function p(){u&&clearTimeout(u)}function h(g){var v=g||{},y=v.upcomingOnly,_=y===void 0?!1:y;p(),d=!_}function m(){for(var g=arguments.length,v=new Array(g),y=0;y<g;y++)v[y]=arguments[y];var _=this,S=Date.now()-f;if(d)return;function C(){f=Date.now(),t.apply(_,v)}function w(){u=void 0}!s&&c&&!u&&C(),p(),c===void 0&&S>e?s?(f=Date.now(),a||(u=setTimeout(c?w:C,e))):C():a!==!0&&(u=setTimeout(c?w:C,c===void 0?e-S:e))}return m.cancel=h,m}function zBt(e,t,n){var r={},i=r.atBegin,a=i===void 0?!1:i;return jBt(e,t,{debounceMode:a!==!1})}function sd(e,t){return e[t]}var UBt=["children"];function cHe(e,t){return"".concat(e,"-").concat(t)}function HBt(e){return e&&e.type&&e.type.isTreeNode}function PO(e,t){return e??t}function I3(e){var t=e||{},n=t.title,r=t._title,i=t.key,a=t.children,o=n||"title";return{title:o,_title:r||[o],key:i||"key",children:a||"children"}}function uHe(e){function t(n){var r=_l(n);return r.map(function(i){if(!HBt(i))return Ra(!i,"Tree/TreeNode can only accept TreeNode as children."),null;var a=i.key,o=i.props,s=o.children,l=$n(o,UBt),c=we({key:a},l),u=t(s);return u.length&&(c.children=u),c}).filter(function(i){return i})}return t(e)}function cq(e,t,n){var r=I3(n),i=r._title,a=r.key,o=r.children,s=new Set(t===!0?[]:t),l=[];function c(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return u.map(function(f,p){for(var h=cHe(d?d.pos:"0",p),m=PO(f[a],h),g,v=0;v<i.length;v+=1){var y=i[v];if(f[y]!==void 0){g=f[y];break}}var _=Object.assign(Xa(f,[].concat(Tt(i),[a,o])),{title:g,key:m,parent:d,pos:h,children:null,data:f,isStart:[].concat(Tt(d?d.isStart:[]),[p===0]),isEnd:[].concat(Tt(d?d.isEnd:[]),[p===u.length-1])});return l.push(_),t===!0||s.has(m)?_.children=c(f[o]||[],_):_.children=[],_})}return c(e),l}function VBt(e,t,n){var r={};cn(n)==="object"?r=n:r={externalGetKey:n},r=r||{};var i=r,a=i.childrenPropName,o=i.externalGetKey,s=i.fieldNames,l=I3(s),c=l.key,u=l.children,d=a||u,f;o?typeof o=="string"?f=function(m){return m[o]}:typeof o=="function"&&(f=function(m){return o(m)}):f=function(m,g){return PO(m[c],g)};function p(h,m,g,v){var y=h?h[d]:e,_=h?cHe(g.pos,m):"0",S=h?[].concat(Tt(v),[h]):[];if(h){var C=f(h,_),w={node:h,index:m,pos:_,key:C,parentPos:g.node?g.pos:null,level:g.level+1,nodes:S};t(w)}y&&y.forEach(function(x,T){p(x,T,{node:h,pos:_,level:g?g.level+1:-1},S)})}p(null)}function Wde(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,i=t.onProcessFinished,a=t.externalGetKey,o=t.childrenPropName,s=t.fieldNames,l=arguments.length>2?arguments[2]:void 0,c=a||l,u={},d={},f={posEntities:u,keyEntities:d};return n&&(f=n(f)||f),VBt(e,function(p){var h=p.node,m=p.index,g=p.pos,v=p.key,y=p.parentPos,_=p.level,S=p.nodes,C={node:h,nodes:S,index:m,key:v,pos:g,level:_},w=PO(v,g);u[g]=C,d[w]=C,C.parent=u[y],C.parent&&(C.parent.children=C.parent.children||[],C.parent.children.push(C)),r&&r(C,f)},{externalGetKey:c,childrenPropName:o,fieldNames:s}),i&&i(f),f}function uR(e,t){var n=t.expandedKeys,r=t.selectedKeys,i=t.loadedKeys,a=t.loadingKeys,o=t.checkedKeys,s=t.halfCheckedKeys,l=t.dragOverNodeKey,c=t.dropPosition,u=t.keyEntities,d=sd(u,e),f={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:i.indexOf(e)!==-1,loading:a.indexOf(e)!==-1,checked:o.indexOf(e)!==-1,halfChecked:s.indexOf(e)!==-1,pos:String(d?d.pos:""),dragOver:l===e&&c===0,dragOverGapTop:l===e&&c===-1,dragOverGapBottom:l===e&&c===1};return f}function ul(e){var t=e.data,n=e.expanded,r=e.selected,i=e.checked,a=e.loaded,o=e.loading,s=e.halfChecked,l=e.dragOver,c=e.dragOverGapTop,u=e.dragOverGapBottom,d=e.pos,f=e.active,p=e.eventKey,h=we(we({},t),{},{expanded:n,selected:r,checked:i,loaded:a,loading:o,halfChecked:s,dragOver:l,dragOverGapTop:c,dragOverGapBottom:u,pos:d,active:f,key:p});return"props"in h||Object.defineProperty(h,"props",{get:function(){return Ra(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),h}function dHe(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function GBt(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,i=t.checkable;return!!(n||r)||i===!1}function qBt(e,t,n,r){for(var i=new Set(e),a=new Set,o=0;o<=n;o+=1){var s=t.get(o)||new Set;s.forEach(function(d){var f=d.key,p=d.node,h=d.children,m=h===void 0?[]:h;i.has(f)&&!r(p)&&m.filter(function(g){return!r(g.node)}).forEach(function(g){i.add(g.key)})})}for(var l=new Set,c=n;c>=0;c-=1){var u=t.get(c)||new Set;u.forEach(function(d){var f=d.parent,p=d.node;if(!(r(p)||!d.parent||l.has(d.parent.key))){if(r(d.parent.node)){l.add(f.key);return}var h=!0,m=!1;(f.children||[]).filter(function(g){return!r(g.node)}).forEach(function(g){var v=g.key,y=i.has(v);h&&!y&&(h=!1),!m&&(y||a.has(v))&&(m=!0)}),h&&i.add(f.key),m&&a.add(f.key),l.add(f.key)}})}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(dHe(a,i))}}function WBt(e,t,n,r,i){for(var a=new Set(e),o=new Set(t),s=0;s<=r;s+=1){var l=n.get(s)||new Set;l.forEach(function(f){var p=f.key,h=f.node,m=f.children,g=m===void 0?[]:m;!a.has(p)&&!o.has(p)&&!i(h)&&g.filter(function(v){return!i(v.node)}).forEach(function(v){a.delete(v.key)})})}o=new Set;for(var c=new Set,u=r;u>=0;u-=1){var d=n.get(u)||new Set;d.forEach(function(f){var p=f.parent,h=f.node;if(!(i(h)||!f.parent||c.has(f.parent.key))){if(i(f.parent.node)){c.add(p.key);return}var m=!0,g=!1;(p.children||[]).filter(function(v){return!i(v.node)}).forEach(function(v){var y=v.key,_=a.has(y);m&&!_&&(m=!1),!g&&(_||o.has(y))&&(g=!0)}),m||a.delete(p.key),g&&o.add(p.key),c.add(p.key)}})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(dHe(o,a))}}function C5(e,t,n,r){var i=[],a;r?a=r:a=GBt;var o=new Set(e.filter(function(u){var d=!!sd(n,u);return d||i.push(u),d})),s=new Map,l=0;Object.keys(n).forEach(function(u){var d=n[u],f=d.level,p=s.get(f);p||(p=new Set,s.set(f,p)),p.add(d),l=Math.max(l,f)}),Ra(!i.length,"Tree missing follow keys: ".concat(i.slice(0,100).map(function(u){return"'".concat(u,"'")}).join(", ")));var c;return t===!0?c=qBt(o,s,l,a):c=WBt(o,t.halfCheckedKeys,s,l,a),c}const YBt=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},Wr(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},Wr(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},Wr(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},r0(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${Ce(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${Ce(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`
        ${n}:not(${n}-disabled),
        ${t}:not(${t}-disabled)
      `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`
        ${n}-checked:not(${n}-disabled),
        ${t}-checked:not(${t}-disabled)
      `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorPrimary} !important`}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function fHe(e,t){const n=br(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[YBt(n)]}const pHe=Kr("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[fHe(n,e)]}),hHe=se.createContext(null);var KBt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const XBt=(e,t)=>{var n;const{prefixCls:r,className:i,rootClassName:a,children:o,indeterminate:s=!1,style:l,onMouseEnter:c,onMouseLeave:u,skipGroup:d=!1,disabled:f}=e,p=KBt(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:h,direction:m,checkbox:g}=b.useContext(Sn),v=b.useContext(hHe),{isFormItemInput:y}=b.useContext(Ol),_=b.useContext(wc),S=(n=v?.disabled||f)!==null&&n!==void 0?n:_,C=b.useRef(p.value);b.useEffect(()=>{v?.registerValue(p.value)},[]),b.useEffect(()=>{if(!d)return p.value!==C.current&&(v?.cancelValue(C.current),v?.registerValue(p.value),C.current=p.value),()=>v?.cancelValue(p.value)},[p.value]);const w=h("checkbox",r),x=Ja(w),[T,A,I]=pHe(w,x),R=Object.assign({},p);v&&!d&&(R.onChange=function(){p.onChange&&p.onChange.apply(p,arguments),v.toggleOption&&v.toggleOption({label:o,value:p.value})},R.name=v.name,R.checked=v.value.includes(p.value));const N=Oe(`${w}-wrapper`,{[`${w}-rtl`]:m==="rtl",[`${w}-wrapper-checked`]:R.checked,[`${w}-wrapper-disabled`]:S,[`${w}-wrapper-in-form-item`]:y},g?.className,i,a,I,x,A),P=Oe({[`${w}-indeterminate`]:s},nz,A),L=s?"mixed":void 0;return T(b.createElement(gO,{component:"Checkbox",disabled:S},b.createElement("label",{className:N,style:Object.assign(Object.assign({},g?.style),l),onMouseEnter:c,onMouseLeave:u},b.createElement(XUe,Object.assign({"aria-checked":L},R,{prefixCls:w,className:P,disabled:S,ref:t})),o!==void 0&&b.createElement("span",null,o))))},mHe=b.forwardRef(XBt);var ZBt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const QBt=b.forwardRef((e,t)=>{const{defaultValue:n,children:r,options:i=[],prefixCls:a,className:o,rootClassName:s,style:l,onChange:c}=e,u=ZBt(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:d,direction:f}=b.useContext(Sn),[p,h]=b.useState(u.value||n||[]),[m,g]=b.useState([]);b.useEffect(()=>{"value"in u&&h(u.value||[])},[u.value]);const v=b.useMemo(()=>i.map($=>typeof $=="string"||typeof $=="number"?{label:$,value:$}:$),[i]),y=$=>{g(D=>D.filter(z=>z!==$))},_=$=>{g(D=>[].concat(Tt(D),[$]))},S=$=>{const D=p.indexOf($.value),z=Tt(p);D===-1?z.push($.value):z.splice(D,1),"value"in u||h(z),c?.(z.filter(U=>m.includes(U)).sort((U,H)=>{const M=v.findIndex(k=>k.value===U),B=v.findIndex(k=>k.value===H);return M-B}))},C=d("checkbox",a),w=`${C}-group`,x=Ja(C),[T,A,I]=pHe(C,x),R=Xa(u,["value","disabled"]),N=i.length?v.map($=>b.createElement(mHe,{prefixCls:C,key:$.value.toString(),disabled:"disabled"in $?$.disabled:u.disabled,value:$.value,checked:p.includes($.value),onChange:$.onChange,className:`${w}-item`,style:$.style,title:$.title,id:$.id,required:$.required},$.label)):r,P={toggleOption:S,value:p,disabled:u.disabled,name:u.name,registerValue:_,cancelValue:y},L=Oe(w,{[`${w}-rtl`]:f==="rtl"},o,s,I,x,A);return T(b.createElement("div",Object.assign({className:L,style:l},R,{ref:t}),b.createElement(hHe.Provider,{value:P},N)))}),FE=mHe;FE.Group=QBt;FE.__ANT_CHECKBOX=!0;const gHe=b.createContext({}),JBt=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},ejt=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},tjt=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:i}=e,a={};for(let o=i;o>=0;o--)o===0?(a[`${r}${t}-${o}`]={display:"none"},a[`${r}-push-${o}`]={insetInlineStart:"auto"},a[`${r}-pull-${o}`]={insetInlineEnd:"auto"},a[`${r}${t}-push-${o}`]={insetInlineStart:"auto"},a[`${r}${t}-pull-${o}`]={insetInlineEnd:"auto"},a[`${r}${t}-offset-${o}`]={marginInlineStart:0},a[`${r}${t}-order-${o}`]={order:0}):(a[`${r}${t}-${o}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${o/i*100}%`,maxWidth:`${o/i*100}%`}],a[`${r}${t}-push-${o}`]={insetInlineStart:`${o/i*100}%`},a[`${r}${t}-pull-${o}`]={insetInlineEnd:`${o/i*100}%`},a[`${r}${t}-offset-${o}`]={marginInlineStart:`${o/i*100}%`},a[`${r}${t}-order-${o}`]={order:o});return a[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},a},yie=(e,t)=>tjt(e,t),njt=(e,t,n)=>({[`@media (min-width: ${Ce(t)})`]:Object.assign({},yie(e,n))}),rjt=()=>({}),ijt=()=>({}),ajt=Kr("Grid",JBt,rjt),ojt=Kr("Grid",e=>{const t=br(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[ejt(t),yie(t,""),yie(t,"-xs"),Object.keys(n).map(r=>njt(t,n[r],r)).reduce((r,i)=>Object.assign(Object.assign({},r),i),{})]},ijt);var sjt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function fSe(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const ljt=["xs","sm","md","lg","xl","xxl"],Rz=b.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=b.useContext(Sn),{gutter:i,wrap:a}=b.useContext(gHe),{prefixCls:o,span:s,order:l,offset:c,push:u,pull:d,className:f,children:p,flex:h,style:m}=e,g=sjt(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),v=n("col",o),[y,_,S]=ojt(v),C={};let w={};ljt.forEach(A=>{let I={};const R=e[A];typeof R=="number"?I.span=R:typeof R=="object"&&(I=R||{}),delete g[A],w=Object.assign(Object.assign({},w),{[`${v}-${A}-${I.span}`]:I.span!==void 0,[`${v}-${A}-order-${I.order}`]:I.order||I.order===0,[`${v}-${A}-offset-${I.offset}`]:I.offset||I.offset===0,[`${v}-${A}-push-${I.push}`]:I.push||I.push===0,[`${v}-${A}-pull-${I.pull}`]:I.pull||I.pull===0,[`${v}-rtl`]:r==="rtl"}),I.flex&&(w[`${v}-${A}-flex`]=!0,C[`--${v}-${A}-flex`]=fSe(I.flex))});const x=Oe(v,{[`${v}-${s}`]:s!==void 0,[`${v}-order-${l}`]:l,[`${v}-offset-${c}`]:c,[`${v}-push-${u}`]:u,[`${v}-pull-${d}`]:d},f,w,_,S),T={};if(i&&i[0]>0){const A=i[0]/2;T.paddingLeft=A,T.paddingRight=A}return h&&(T.flex=fSe(h),a===!1&&!T.minWidth&&(T.minWidth=0)),y(b.createElement("div",Object.assign({},g,{style:Object.assign(Object.assign(Object.assign({},T),m),C),className:x,ref:t}),p))});var cjt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function pSe(e,t){const[n,r]=b.useState(typeof e=="string"?e:""),i=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let a=0;a<e_.length;a++){const o=e_[a];if(!t[o])continue;const s=e[o];if(s!==void 0){r(s);return}}};return b.useEffect(()=>{i()},[JSON.stringify(e),t]),n}const Yde=b.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:i,className:a,style:o,children:s,gutter:l=0,wrap:c}=e,u=cjt(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:d,direction:f}=b.useContext(Sn),[p,h]=b.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[m,g]=b.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),v=pSe(i,m),y=pSe(r,m),_=b.useRef(l),S=Oze();b.useEffect(()=>{const z=S.subscribe(U=>{g(U);const H=_.current||0;(!Array.isArray(H)&&typeof H=="object"||Array.isArray(H)&&(typeof H[0]=="object"||typeof H[1]=="object"))&&h(U)});return()=>S.unsubscribe(z)},[]);const C=()=>{const z=[void 0,void 0];return(Array.isArray(l)?l:[l,void 0]).forEach((H,M)=>{if(typeof H=="object")for(let B=0;B<e_.length;B++){const k=e_[B];if(p[k]&&H[k]!==void 0){z[M]=H[k];break}}else z[M]=H}),z},w=d("row",n),[x,T,A]=ajt(w),I=C(),R=Oe(w,{[`${w}-no-wrap`]:c===!1,[`${w}-${y}`]:y,[`${w}-${v}`]:v,[`${w}-rtl`]:f==="rtl"},a,T,A),N={},P=I[0]!=null&&I[0]>0?I[0]/-2:void 0;P&&(N.marginLeft=P,N.marginRight=P);const[L,$]=I;N.rowGap=$;const D=b.useMemo(()=>({gutter:[L,$],wrap:c}),[L,$,c]);return x(b.createElement(gHe.Provider,{value:D},b.createElement("div",Object.assign({},u,{className:R,style:Object.assign(Object.assign({},N),o),ref:t}),s)))});var vHe=se.forwardRef(function(e,t){var n=e.prefixCls,r=e.forceRender,i=e.className,a=e.style,o=e.children,s=e.isActive,l=e.role,c=se.useState(s||r),u=Fe(c,2),d=u[0],f=u[1];return se.useEffect(function(){(r||s)&&f(!0)},[r,s]),d?se.createElement("div",{ref:t,className:Oe("".concat(n,"-content"),be(be({},"".concat(n,"-content-active"),s),"".concat(n,"-content-inactive"),!s),i),style:a,role:l},se.createElement("div",{className:"".concat(n,"-content-box")},o)):null});vHe.displayName="PanelContent";var ujt=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],yHe=se.forwardRef(function(e,t){var n=e.showArrow,r=n===void 0?!0:n,i=e.headerClass,a=e.isActive,o=e.onItemClick,s=e.forceRender,l=e.className,c=e.prefixCls,u=e.collapsible,d=e.accordion,f=e.panelKey,p=e.extra,h=e.header,m=e.expandIcon,g=e.openMotion,v=e.destroyInactivePanel,y=e.children,_=$n(e,ujt),S=u==="disabled",C=u==="header",w=u==="icon",x=p!=null&&typeof p!="boolean",T=function(){o?.(f)},A=function($){($.key==="Enter"||$.keyCode===Bt.ENTER||$.which===Bt.ENTER)&&T()},I=typeof m=="function"?m(e):se.createElement("i",{className:"arrow"});I&&(I=se.createElement("div",{className:"".concat(c,"-expand-icon"),onClick:["header","icon"].includes(u)?T:void 0},I));var R=Oe(be(be(be({},"".concat(c,"-item"),!0),"".concat(c,"-item-active"),a),"".concat(c,"-item-disabled"),S),l),N=Oe(i,be(be(be({},"".concat(c,"-header"),!0),"".concat(c,"-header-collapsible-only"),C),"".concat(c,"-icon-collapsible-only"),w)),P={className:N,"aria-expanded":a,"aria-disabled":S,onKeyDown:A};return!C&&!w&&(P.onClick=T,P.role=d?"tab":"button",P.tabIndex=S?-1:0),se.createElement("div",Xe({},_,{ref:t,className:R}),se.createElement("div",P,r&&I,se.createElement("span",{className:"".concat(c,"-header-text"),onClick:u==="header"?T:void 0},h),x&&se.createElement("div",{className:"".concat(c,"-extra")},p)),se.createElement(Sl,Xe({visible:a,leavedClassName:"".concat(c,"-content-hidden")},g,{forceRender:s,removeOnLeave:v}),function(L,$){var D=L.className,z=L.style;return se.createElement(vHe,{ref:$,prefixCls:c,className:D,style:z,isActive:a,forceRender:s,role:d?"tabpanel":void 0},y)}))}),djt=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],fjt=function(t,n){var r=n.prefixCls,i=n.accordion,a=n.collapsible,o=n.destroyInactivePanel,s=n.onItemClick,l=n.activeKey,c=n.openMotion,u=n.expandIcon;return t.map(function(d,f){var p=d.children,h=d.label,m=d.key,g=d.collapsible,v=d.onItemClick,y=d.destroyInactivePanel,_=$n(d,djt),S=String(m??f),C=g??a,w=y??o,x=function(I){C!=="disabled"&&(s(I),v?.(I))},T=!1;return i?T=l[0]===S:T=l.indexOf(S)>-1,se.createElement(yHe,Xe({},_,{prefixCls:r,key:S,panelKey:S,isActive:T,accordion:i,openMotion:c,expandIcon:u,header:h,collapsible:C,onItemClick:x,destroyInactivePanel:w}),p)})},pjt=function(t,n,r){if(!t)return null;var i=r.prefixCls,a=r.accordion,o=r.collapsible,s=r.destroyInactivePanel,l=r.onItemClick,c=r.activeKey,u=r.openMotion,d=r.expandIcon,f=t.key||String(n),p=t.props,h=p.header,m=p.headerClass,g=p.destroyInactivePanel,v=p.collapsible,y=p.onItemClick,_=!1;a?_=c[0]===f:_=c.indexOf(f)>-1;var S=v??o,C=function(T){S!=="disabled"&&(l(T),y?.(T))},w={key:f,panelKey:f,header:h,headerClass:m,isActive:_,prefixCls:i,destroyInactivePanel:g??s,openMotion:u,accordion:a,children:t.props.children,onItemClick:C,expandIcon:d,collapsible:S};return typeof t.type=="string"?t:(Object.keys(w).forEach(function(x){typeof w[x]>"u"&&delete w[x]}),se.cloneElement(t,w))};function hjt(e,t,n){return Array.isArray(e)?fjt(e,n):_l(t).map(function(r,i){return pjt(r,i,n)})}function mjt(e){var t=e;if(!Array.isArray(t)){var n=cn(t);t=n==="number"||n==="string"?[t]:[]}return t.map(function(r){return String(r)})}var gjt=se.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-collapse":n,i=e.destroyInactivePanel,a=i===void 0?!1:i,o=e.style,s=e.accordion,l=e.className,c=e.children,u=e.collapsible,d=e.openMotion,f=e.expandIcon,p=e.activeKey,h=e.defaultActiveKey,m=e.onChange,g=e.items,v=Oe(r,l),y=qr([],{value:p,onChange:function(A){return m?.(A)},defaultValue:h,postState:mjt}),_=Fe(y,2),S=_[0],C=_[1],w=function(A){return C(function(){if(s)return S[0]===A?[]:[A];var I=S.indexOf(A),R=I>-1;return R?S.filter(function(N){return N!==A}):[].concat(Tt(S),[A])})};Ra(!c,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var x=hjt(g,c,{prefixCls:r,accordion:s,openMotion:d,expandIcon:f,collapsible:u,destroyInactivePanel:a,onItemClick:w,activeKey:S});return se.createElement("div",Xe({ref:t,className:v,style:o,role:s?"tablist":void 0},lo(e,{aria:!0,data:!0})),x)});const Kde=Object.assign(gjt,{Panel:yHe});Kde.Panel;const vjt=b.forwardRef((e,t)=>{const{getPrefixCls:n}=b.useContext(Sn),{prefixCls:r,className:i,showArrow:a=!0}=e,o=n("collapse",r),s=Oe({[`${o}-no-arrow`]:!a},i);return b.createElement(Kde.Panel,Object.assign({ref:t},e,{prefixCls:o,className:s}))}),yjt=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:i,headerPadding:a,collapseHeaderPaddingSM:o,collapseHeaderPaddingLG:s,collapsePanelBorderRadius:l,lineWidth:c,lineType:u,colorBorder:d,colorText:f,colorTextHeading:p,colorTextDisabled:h,fontSizeLG:m,lineHeight:g,lineHeightLG:v,marginSM:y,paddingSM:_,paddingLG:S,paddingXS:C,motionDurationSlow:w,fontSizeIcon:x,contentPadding:T,fontHeight:A,fontHeightLG:I}=e,R=`${Ce(c)} ${u} ${d}`;return{[t]:Object.assign(Object.assign({},Wr(e)),{backgroundColor:i,border:R,borderRadius:l,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:R,"&:last-child":{[`
            &,
            & > ${t}-header`]:{borderRadius:`0 0 ${Ce(l)} ${Ce(l)}`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:a,color:p,lineHeight:g,cursor:"pointer",transition:`all ${w}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:A,display:"flex",alignItems:"center",paddingInlineEnd:y},[`${t}-arrow`]:Object.assign(Object.assign({},lT()),{fontSize:x,transition:`transform ${w}`,svg:{transition:`transform ${w}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-icon-collapsible-only`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:f,backgroundColor:n,borderTop:R,[`& > ${t}-content-box`]:{padding:T},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:o,paddingInlineStart:C,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(_).sub(C).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:_}}},"&-large":{[`> ${t}-item`]:{fontSize:m,lineHeight:v,[`> ${t}-header`]:{padding:s,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:I,marginInlineStart:e.calc(S).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:S}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${Ce(l)} ${Ce(l)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n          &,\n          & > .arrow\n        ":{color:h,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:y}}}}})}},bjt=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},_jt=e=>{const{componentCls:t,headerBg:n,paddingXXS:r,colorBorder:i}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${i}`},[`
        > ${t}-item:last-child,
        > ${t}-item:last-child ${t}-header
      `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},Sjt=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},Ejt=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}),Cjt=Kr("Collapse",e=>{const t=br(e,{collapseHeaderPaddingSM:`${Ce(e.paddingXS)} ${Ce(e.paddingSM)}`,collapseHeaderPaddingLG:`${Ce(e.padding)} ${Ce(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[yjt(t),_jt(t),Sjt(t),bjt(t),_O(t)]},Ejt),wjt=b.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,collapse:i}=b.useContext(Sn),{prefixCls:a,className:o,rootClassName:s,style:l,bordered:c=!0,ghost:u,size:d,expandIconPosition:f="start",children:p,expandIcon:h}=e,m=ks(R=>{var N;return(N=d??R)!==null&&N!==void 0?N:"middle"}),g=n("collapse",a),v=n(),[y,_,S]=Cjt(g),C=b.useMemo(()=>f==="left"?"start":f==="right"?"end":f,[f]),w=h??i?.expandIcon,x=b.useCallback(function(){let R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const N=typeof w=="function"?w(R):b.createElement(Zb,{rotate:R.isActive?90:void 0,"aria-label":R.isActive?"expanded":"collapsed"});return as(N,()=>{var P;return{className:Oe((P=N?.props)===null||P===void 0?void 0:P.className,`${g}-arrow`)}})},[w,g]),T=Oe(`${g}-icon-position-${C}`,{[`${g}-borderless`]:!c,[`${g}-rtl`]:r==="rtl",[`${g}-ghost`]:!!u,[`${g}-${m}`]:m!=="middle"},i?.className,o,s,_,S),A=Object.assign(Object.assign({},C3(v)),{motionAppear:!1,leavedClassName:`${g}-content-hidden`}),I=b.useMemo(()=>p?_l(p).map((R,N)=>{var P,L;if(!((P=R.props)===null||P===void 0)&&P.disabled){const $=(L=R.key)!==null&&L!==void 0?L:String(N),{disabled:D,collapsible:z}=R.props,U=Object.assign(Object.assign({},Xa(R.props,["disabled"])),{key:$,collapsible:z??(D?"disabled":void 0)});return as(R,U)}return R}):null,[p]);return y(b.createElement(Kde,Object.assign({ref:t,openMotion:A},Xa(e,["rootClassName"]),{expandIcon:x,prefixCls:g,className:T,style:Object.assign(Object.assign({},i?.style),l)}),I))}),wm=Object.assign(wjt,{Panel:vjt}),Ul=Math.round;function uq(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(i=>parseFloat(i));for(let i=0;i<3;i+=1)r[i]=t(r[i]||0,n[i]||"",i);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const hSe=(e,t,n)=>n===0?e:e/100;function K4(e,t){const n=t||255;return e>n?n:e<0?0:e}class Nz{constructor(t){be(this,"isValid",!0),be(this,"r",0),be(this,"g",0),be(this,"b",0),be(this,"a",1),be(this,"_h",void 0),be(this,"_s",void 0),be(this,"_l",void 0),be(this,"_v",void 0),be(this,"_max",void 0),be(this,"_min",void 0),be(this,"_brightness",void 0);function n(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let i=function(a){return r.startsWith(a)};const r=t.trim();/^#?[A-F\d]{3,8}$/i.test(r)?this.fromHexString(r):i("rgb")?this.fromRgbString(r):i("hsl")?this.fromHslString(r):(i("hsv")||i("hsb"))&&this.fromHsvString(r)}else if(t instanceof Nz)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=K4(t.r),this.g=K4(t.g),this.b=K4(t.b),this.a=typeof t.a=="number"?K4(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(a){const o=a/255;return o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),i=t(this.b);return .2126*n+.7152*r+.0722*i}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=Ul(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let i=this.getLightness()-t/100;return i<0&&(i=0),this._c({h:n,s:r,l:i,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let i=this.getLightness()+t/100;return i>1&&(i=1),this._c({h:n,s:r,l:i,a:this.a})}mix(t,n=50){const r=this._c(t),i=n/100,a=s=>(r[s]-this[s])*i+this[s],o={r:Ul(a("r")),g:Ul(a("g")),b:Ul(a("b")),a:Ul(a("a")*100)/100};return this._c(o)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),i=a=>Ul((this[a]*this.a+n[a]*n.a*(1-this.a))/r);return this._c({r:i("r"),g:i("g"),b:i("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const i=(this.b||0).toString(16);if(t+=i.length===2?i:"0"+i,typeof this.a=="number"&&this.a>=0&&this.a<1){const a=Ul(this.a*255).toString(16);t+=a.length===2?a:"0"+a}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=Ul(this.getSaturation()*100),r=Ul(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const i=this.clone();return i[t]=K4(n,r),i}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(i,a){return parseInt(n[i]+n[a||i],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a:i}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof i=="number"?i:1,n<=0){const f=Ul(r*255);this.r=f,this.g=f,this.b=f}let a=0,o=0,s=0;const l=t/60,c=(1-Math.abs(2*r-1))*n,u=c*(1-Math.abs(l%2-1));l>=0&&l<1?(a=c,o=u):l>=1&&l<2?(a=u,o=c):l>=2&&l<3?(o=c,s=u):l>=3&&l<4?(o=u,s=c):l>=4&&l<5?(a=u,s=c):l>=5&&l<6&&(a=c,s=u);const d=r-c/2;this.r=Ul((a+d)*255),this.g=Ul((o+d)*255),this.b=Ul((s+d)*255)}fromHsv({h:t,s:n,v:r,a:i}){this._h=t%360,this._s=n,this._v=r,this.a=typeof i=="number"?i:1;const a=Ul(r*255);if(this.r=a,this.g=a,this.b=a,n<=0)return;const o=t/60,s=Math.floor(o),l=o-s,c=Ul(r*(1-n)*255),u=Ul(r*(1-n*l)*255),d=Ul(r*(1-n*(1-l))*255);switch(s){case 0:this.g=d,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=d;break;case 3:this.r=c,this.g=u;break;case 4:this.r=d,this.g=c;break;case 5:default:this.g=c,this.b=u;break}}fromHsvString(t){const n=uq(t,hSe);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=uq(t,hSe);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=uq(t,(r,i)=>i.includes("%")?Ul(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var xjt=["b"],Tjt=["v"],dq=function(t){return Math.round(Number(t||0))},Ijt=function(t){if(t instanceof Nz)return t;if(t&&cn(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,i=$n(n,xjt);return we(we({},i),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},dm=function(e){Md(n,e);var t=$f(n);function n(r){return co(this,n),t.call(this,Ijt(r))}return uo(n,[{key:"toHsbString",value:function(){var i=this.toHsb(),a=dq(i.s*100),o=dq(i.b*100),s=dq(i.h),l=i.a,c="hsb(".concat(s,", ").concat(a,"%, ").concat(o,"%)"),u="hsba(".concat(s,", ").concat(a,"%, ").concat(o,"%, ").concat(l.toFixed(l===0?0:2),")");return l===1?c:u}},{key:"toHsb",value:function(){var i=this.toHsv(),a=i.v,o=$n(i,Tjt);return we(we({},o),{},{b:a,a:this.a})}}]),n}(Nz),Ajt="rc-color-picker",w5=function(t){return t instanceof dm?t:new dm(t)},Rjt=w5("#1677ff"),bHe=function(t){var n=t.offset,r=t.targetRef,i=t.containerRef,a=t.color,o=t.type,s=i.current.getBoundingClientRect(),l=s.width,c=s.height,u=r.current.getBoundingClientRect(),d=u.width,f=u.height,p=d/2,h=f/2,m=(n.x+p)/l,g=1-(n.y+h)/c,v=a.toHsb(),y=m,_=(n.x+p)/l*360;if(o)switch(o){case"hue":return w5(we(we({},v),{},{h:_<=0?0:_}));case"alpha":return w5(we(we({},v),{},{a:y<=0?0:y}))}return w5({h:v.h,s:m<=0?0:m,b:g>=1?1:g,a:v.a})},_He=function(t,n){var r=t.toHsb();switch(n){case"hue":return{x:r.h/360*100,y:50};case"alpha":return{x:t.a*100,y:50};default:return{x:r.s*100,y:(1-r.b)*100}}},Xde=function(t){var n=t.color,r=t.prefixCls,i=t.className,a=t.style,o=t.onClick,s="".concat(r,"-color-block");return se.createElement("div",{className:Oe(s,i),style:a,onClick:o},se.createElement("div",{className:"".concat(s,"-inner"),style:{background:n}}))};function Njt(e){var t="touches"in e?e.touches[0]:e,n=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,r=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:t.pageX-n,pageY:t.pageY-r}}function SHe(e){var t=e.targetRef,n=e.containerRef,r=e.direction,i=e.onDragChange,a=e.onDragChangeComplete,o=e.calculate,s=e.color,l=e.disabledDrag,c=b.useState({x:0,y:0}),u=Fe(c,2),d=u[0],f=u[1],p=b.useRef(null),h=b.useRef(null);b.useEffect(function(){f(o())},[s]),b.useEffect(function(){return function(){document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",h.current),document.removeEventListener("touchmove",p.current),document.removeEventListener("touchend",h.current),p.current=null,h.current=null}},[]);var m=function(S){var C=Njt(S),w=C.pageX,x=C.pageY,T=n.current.getBoundingClientRect(),A=T.x,I=T.y,R=T.width,N=T.height,P=t.current.getBoundingClientRect(),L=P.width,$=P.height,D=L/2,z=$/2,U=Math.max(0,Math.min(w-A,R))-D,H=Math.max(0,Math.min(x-I,N))-z,M={x:U,y:r==="x"?d.y:H};if(L===0&&$===0||L!==$)return!1;i?.(M)},g=function(S){S.preventDefault(),m(S)},v=function(S){S.preventDefault(),document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",h.current),document.removeEventListener("touchmove",p.current),document.removeEventListener("touchend",h.current),p.current=null,h.current=null,a?.()},y=function(S){document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",h.current),!l&&(m(S),document.addEventListener("mousemove",g),document.addEventListener("mouseup",v),document.addEventListener("touchmove",g),document.addEventListener("touchend",v),p.current=g,h.current=v)};return[d,y]}var EHe=function(t){var n=t.size,r=n===void 0?"default":n,i=t.color,a=t.prefixCls;return se.createElement("div",{className:Oe("".concat(a,"-handler"),be({},"".concat(a,"-handler-sm"),r==="small")),style:{backgroundColor:i}})},CHe=function(t){var n=t.children,r=t.style,i=t.prefixCls;return se.createElement("div",{className:"".concat(i,"-palette"),style:we({position:"relative"},r)},n)},wHe=b.forwardRef(function(e,t){var n=e.children,r=e.x,i=e.y;return se.createElement("div",{ref:t,style:{position:"absolute",left:"".concat(r,"%"),top:"".concat(i,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},n)}),Ojt=function(t){var n=t.color,r=t.onChange,i=t.prefixCls,a=t.onChangeComplete,o=t.disabled,s=b.useRef(),l=b.useRef(),c=b.useRef(n),u=gr(function(m){var g=bHe({offset:m,targetRef:l,containerRef:s,color:n});c.current=g,r(g)}),d=SHe({color:n,containerRef:s,targetRef:l,calculate:function(){return _He(n)},onDragChange:u,onDragChangeComplete:function(){return a?.(c.current)},disabledDrag:o}),f=Fe(d,2),p=f[0],h=f[1];return se.createElement("div",{ref:s,className:"".concat(i,"-select"),onMouseDown:h,onTouchStart:h},se.createElement(CHe,{prefixCls:i},se.createElement(wHe,{x:p.x,y:p.y,ref:l},se.createElement(EHe,{color:n.toRgbString(),prefixCls:i})),se.createElement("div",{className:"".concat(i,"-saturation"),style:{backgroundColor:"hsl(".concat(n.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},Ljt=function(t,n){var r=qr(t,{value:n}),i=Fe(r,2),a=i[0],o=i[1],s=b.useMemo(function(){return w5(a)},[a]);return[s,o]},Pjt=function(t){var n=t.colors,r=t.children,i=t.direction,a=i===void 0?"to right":i,o=t.type,s=t.prefixCls,l=b.useMemo(function(){return n.map(function(c,u){var d=w5(c);return o==="alpha"&&u===n.length-1&&(d=new dm(d.setA(1))),d.toRgbString()}).join(",")},[n,o]);return se.createElement("div",{className:"".concat(s,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(a,", ").concat(l,")")}},r)},kjt=function(t){var n=t.prefixCls,r=t.colors,i=t.disabled,a=t.onChange,o=t.onChangeComplete,s=t.color,l=t.type,c=b.useRef(),u=b.useRef(),d=b.useRef(s),f=function(C){return l==="hue"?C.getHue():C.a*100},p=gr(function(S){var C=bHe({offset:S,targetRef:u,containerRef:c,color:s,type:l});d.current=C,a(f(C))}),h=SHe({color:s,targetRef:u,containerRef:c,calculate:function(){return _He(s,l)},onDragChange:p,onDragChangeComplete:function(){o(f(d.current))},direction:"x",disabledDrag:i}),m=Fe(h,2),g=m[0],v=m[1],y=se.useMemo(function(){if(l==="hue"){var S=s.toHsb();S.s=1,S.b=1,S.a=1;var C=new dm(S);return C}return s},[s,l]),_=se.useMemo(function(){return r.map(function(S){return"".concat(S.color," ").concat(S.percent,"%")})},[r]);return se.createElement("div",{ref:c,className:Oe("".concat(n,"-slider"),"".concat(n,"-slider-").concat(l)),onMouseDown:v,onTouchStart:v},se.createElement(CHe,{prefixCls:n},se.createElement(wHe,{x:g.x,y:g.y,ref:u},se.createElement(EHe,{size:"small",color:y.toHexString(),prefixCls:n})),se.createElement(Pjt,{colors:_,type:l,prefixCls:n})))};function Mjt(e){return b.useMemo(function(){var t=e||{},n=t.slider;return[n||kjt]},[e])}var Djt=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],$jt=b.forwardRef(function(e,t){var n=e.value,r=e.defaultValue,i=e.prefixCls,a=i===void 0?Ajt:i,o=e.onChange,s=e.onChangeComplete,l=e.className,c=e.style,u=e.panelRender,d=e.disabledAlpha,f=d===void 0?!1:d,p=e.disabled,h=p===void 0?!1:p,m=e.components,g=Mjt(m),v=Fe(g,1),y=v[0],_=Ljt(r||Rjt,n),S=Fe(_,2),C=S[0],w=S[1],x=b.useMemo(function(){return C.setA(1).toRgbString()},[C]),T=function(H,M){n||w(H),o?.(H,M)},A=function(H){return new dm(C.setHue(H))},I=function(H){return new dm(C.setA(H/100))},R=function(H){T(A(H),{type:"hue",value:H})},N=function(H){T(I(H),{type:"alpha",value:H})},P=function(H){s&&s(A(H))},L=function(H){s&&s(I(H))},$=Oe("".concat(a,"-panel"),l,be({},"".concat(a,"-panel-disabled"),h)),D={prefixCls:a,disabled:h,color:C},z=se.createElement(se.Fragment,null,se.createElement(Ojt,Xe({onChange:T},D,{onChangeComplete:s})),se.createElement("div",{className:"".concat(a,"-slider-container")},se.createElement("div",{className:Oe("".concat(a,"-slider-group"),be({},"".concat(a,"-slider-group-disabled-alpha"),f))},se.createElement(y,Xe({},D,{type:"hue",colors:Djt,min:0,max:359,value:C.getHue(),onChange:R,onChangeComplete:P})),!f&&se.createElement(y,Xe({},D,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:x}],min:0,max:100,value:C.a*100,onChange:N,onChangeComplete:L}))),se.createElement(Xde,{color:C.toRgbString(),prefixCls:a})));return se.createElement("div",{className:$,style:c,ref:t},typeof u=="function"?u(z):z)});const gA=(e,t)=>e?.replace(/[^\w/]/gi,"").slice(0,t?8:6)||"",Fjt=(e,t)=>e?gA(e,t):"";let Sp=function(){function e(t){co(this,e);var n;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(n=t.colors)===null||n===void 0?void 0:n.map(i=>({color:new e(i.color),percent:i.percent})),this.cleared=t.cleared;return}const r=Array.isArray(t);r&&t.length?(this.colors=t.map(i=>{let{color:a,percent:o}=i;return{color:new e(a),percent:o}}),this.metaColor=new dm(this.colors[0].color.metaColor)):this.metaColor=new dm(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return uo(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return Fjt(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:n}=this;return n?`linear-gradient(90deg, ${n.map(i=>`${i.color.toRgbString()} ${i.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(n){return!n||this.isGradient()!==n.isGradient()?!1:this.isGradient()?this.colors.length===n.colors.length&&this.colors.every((r,i)=>{const a=n.colors[i];return r.percent===a.percent&&r.color.equals(a.color)}):this.toHexString()===n.toHexString()}}])}();const Bjt=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:i,textPaddingInline:a,orientationMargin:o,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},Wr(e)),{borderBlockStart:`${Ce(i)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${Ce(i)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${Ce(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${Ce(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${Ce(i)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:`calc(${o} * 100%)`},"&::after":{width:`calc(100% - ${o} * 100%)`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`calc(100% - ${o} * 100%)`},"&::after":{width:`calc(${o} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:a},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${Ce(i)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${Ce(i)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},jjt=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),zjt=Kr("Divider",e=>{const t=br(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[Bjt(t)]},jjt,{unitless:{orientationMargin:!0}});var Ujt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const zi=e=>{const{getPrefixCls:t,direction:n,divider:r}=b.useContext(Sn),{prefixCls:i,type:a="horizontal",orientation:o="center",orientationMargin:s,className:l,rootClassName:c,children:u,dashed:d,variant:f="solid",plain:p,style:h}=e,m=Ujt(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),g=t("divider",i),[v,y,_]=zjt(g),S=!!u,C=o==="left"&&s!=null,w=o==="right"&&s!=null,x=Oe(g,r?.className,y,_,`${g}-${a}`,{[`${g}-with-text`]:S,[`${g}-with-text-${o}`]:S,[`${g}-dashed`]:!!d,[`${g}-${f}`]:f!=="solid",[`${g}-plain`]:!!p,[`${g}-rtl`]:n==="rtl",[`${g}-no-default-orientation-margin-left`]:C,[`${g}-no-default-orientation-margin-right`]:w},l,c),T=b.useMemo(()=>typeof s=="number"?s:/^\d+$/.test(s)?Number(s):s,[s]),A=Object.assign(Object.assign({},C&&{marginLeft:T}),w&&{marginRight:T});return v(b.createElement("div",Object.assign({className:x,style:Object.assign(Object.assign({},r?.style),h)},m,{role:"separator"}),u&&a!=="vertical"&&b.createElement("span",{className:`${g}-inner-text`,style:A},u)))};var mSe=function(t){return t?{left:t.offsetLeft,right:t.parentElement.clientWidth-t.clientWidth-t.offsetLeft,width:t.clientWidth}:null},xw=function(t){return t!==void 0?"".concat(t,"px"):void 0};function Hjt(e){var t=e.prefixCls,n=e.containerRef,r=e.value,i=e.getValueIndex,a=e.motionName,o=e.onMotionStart,s=e.onMotionEnd,l=e.direction,c=b.useRef(null),u=b.useState(r),d=Fe(u,2),f=d[0],p=d[1],h=function(P){var L,$=i(P),D=(L=n.current)===null||L===void 0?void 0:L.querySelectorAll(".".concat(t,"-item"))[$];return D?.offsetParent&&D},m=b.useState(null),g=Fe(m,2),v=g[0],y=g[1],_=b.useState(null),S=Fe(_,2),C=S[0],w=S[1];kr(function(){if(f!==r){var N=h(f),P=h(r),L=mSe(N),$=mSe(P);p(r),y(L),w($),N&&P?o():s()}},[r]);var x=b.useMemo(function(){return xw(l==="rtl"?-v?.right:v?.left)},[l,v]),T=b.useMemo(function(){return xw(l==="rtl"?-C?.right:C?.left)},[l,C]),A=function(){return{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},I=function(){return{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},R=function(){y(null),w(null),s()};return!v||!C?null:b.createElement(Sl,{visible:!0,motionName:a,motionAppear:!0,onAppearStart:A,onAppearActive:I,onVisibleChanged:R},function(N,P){var L=N.className,$=N.style,D=we(we({},$),{},{"--thumb-start-left":x,"--thumb-start-width":xw(v?.width),"--thumb-active-left":T,"--thumb-active-width":xw(C?.width)}),z={ref:Ll(c,P),style:D,className:Oe("".concat(t,"-thumb"),L)};return b.createElement("div",z)})}var Vjt=["prefixCls","direction","options","disabled","defaultValue","value","onChange","className","motionName"];function Gjt(e){if(typeof e.title<"u")return e.title;if(cn(e.label)!=="object"){var t;return(t=e.label)===null||t===void 0?void 0:t.toString()}}function qjt(e){return e.map(function(t){if(cn(t)==="object"&&t!==null){var n=Gjt(t);return we(we({},t),{},{title:n})}return{label:t?.toString(),title:t?.toString(),value:t}})}var Wjt=function(t){var n=t.prefixCls,r=t.className,i=t.disabled,a=t.checked,o=t.label,s=t.title,l=t.value,c=t.onChange,u=function(f){i||c(f,l)};return b.createElement("label",{className:Oe(r,be({},"".concat(n,"-item-disabled"),i))},b.createElement("input",{className:"".concat(n,"-item-input"),type:"radio",disabled:i,checked:a,onChange:u}),b.createElement("div",{className:"".concat(n,"-item-label"),title:s},o))},Yjt=b.forwardRef(function(e,t){var n,r,i=e.prefixCls,a=i===void 0?"rc-segmented":i,o=e.direction,s=e.options,l=s===void 0?[]:s,c=e.disabled,u=e.defaultValue,d=e.value,f=e.onChange,p=e.className,h=p===void 0?"":p,m=e.motionName,g=m===void 0?"thumb-motion":m,v=$n(e,Vjt),y=b.useRef(null),_=b.useMemo(function(){return Ll(y,t)},[y,t]),S=b.useMemo(function(){return qjt(l)},[l]),C=qr((n=S[0])===null||n===void 0?void 0:n.value,{value:d,defaultValue:u}),w=Fe(C,2),x=w[0],T=w[1],A=b.useState(!1),I=Fe(A,2),R=I[0],N=I[1],P=function(D,z){c||(T(z),f?.(z))},L=Xa(v,["children"]);return b.createElement("div",Xe({},L,{className:Oe(a,(r={},be(r,"".concat(a,"-rtl"),o==="rtl"),be(r,"".concat(a,"-disabled"),c),r),h),ref:_}),b.createElement("div",{className:"".concat(a,"-group")},b.createElement(Hjt,{prefixCls:a,value:x,containerRef:y,motionName:"".concat(a,"-").concat(g),direction:o,getValueIndex:function(D){return S.findIndex(function(z){return z.value===D})},onMotionStart:function(){N(!0)},onMotionEnd:function(){N(!1)}}),S.map(function($){return b.createElement(Wjt,Xe({},$,{key:$.value,prefixCls:a,className:Oe($.className,"".concat(a,"-item"),be({},"".concat(a,"-item-selected"),$.value===x&&!R)),checked:$.value===x,onChange:P,disabled:!!c||!!$.disabled}))})))}),Kjt=Yjt;function gSe(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function vSe(e){return{backgroundColor:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}const Xjt=Object.assign({overflow:"hidden"},Pp),Zjt=e=>{const{componentCls:t}=e,n=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),r=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),i=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Wr(e)),{display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid} ${e.motionEaseInOut}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":Object.assign(Object.assign({},vSe(e)),{color:e.itemSelectedColor}),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",transition:`background-color ${e.motionDurationMid}`,pointerEvents:"none"},[`&:hover:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemHoverBg}},[`&:active:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemActiveBg}},"&-label":Object.assign({minHeight:n,lineHeight:Ce(n),padding:`0 ${Ce(e.segmentedPaddingHorizontal)}`},Xjt),"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:Object.assign(Object.assign({},vSe(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${Ce(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:r,lineHeight:Ce(r),padding:`0 ${Ce(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:i,lineHeight:Ce(i),padding:`0 ${Ce(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),gSe(`&-disabled ${t}-item`,e)),gSe(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}})}},Qjt=e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:i,colorFill:a,lineWidthBold:o,colorBgLayout:s}=e;return{trackPadding:o,trackBg:s,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:i,itemActiveBg:a,itemSelectedColor:n}},Jjt=Kr("Segmented",e=>{const{lineWidth:t,calc:n}=e,r=br(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()});return[Zjt(r)]},Qjt);var ySe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function ezt(e){return typeof e=="object"&&!!e?.icon}const tzt=b.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,block:a,options:o=[],size:s="middle",style:l}=e,c=ySe(e,["prefixCls","className","rootClassName","block","options","size","style"]),{getPrefixCls:u,direction:d,segmented:f}=b.useContext(Sn),p=u("segmented",n),[h,m,g]=Jjt(p),v=ks(s),y=b.useMemo(()=>o.map(C=>{if(ezt(C)){const{icon:w,label:x}=C,T=ySe(C,["icon","label"]);return Object.assign(Object.assign({},T),{label:b.createElement(b.Fragment,null,b.createElement("span",{className:`${p}-item-icon`},w),x&&b.createElement("span",null,x))})}return C}),[o,p]),_=Oe(r,i,f?.className,{[`${p}-block`]:a,[`${p}-sm`]:v==="small",[`${p}-lg`]:v==="large"},m,g),S=Object.assign(Object.assign({},f?.style),l);return h(b.createElement(Kjt,Object.assign({},c,{className:_,style:S,options:y,ref:t,prefixCls:p,direction:d})))}),nzt=tzt,xHe=se.createContext({}),THe=se.createContext({}),tu=e=>e instanceof Sp?e:new Sp(e),e7=e=>Math.round(Number(e||0)),Zde=e=>e7(e.toHsb().a*100),t7=(e,t)=>{const n=e.toHsb();return n.a=1,tu(n)},IHe=(e,t)=>{const n=[{percent:0,color:e[0].color}].concat(Tt(e),[{percent:100,color:e[e.length-1].color}]);for(let r=0;r<n.length-1;r+=1){const i=n[r].percent,a=n[r+1].percent,o=n[r].color,s=n[r+1].color;if(i<=t&&t<=a){const l=a-i;if(l===0)return o;const c=(t-i)/l*100,u=new dm(o),d=new dm(s);return u.mix(d,c).toRgbString()}}return""},AHe=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=()=>{if(r&&n&&!n.cleared){const a=n.toHsb();a.a=0;const o=tu(a);o.cleared=!0,r(o)}};return se.createElement("div",{className:`${t}-clear`,onClick:i})};var Db;(function(e){e.hex="hex",e.rgb="rgb",e.hsb="hsb"})(Db||(Db={}));function bie(){return typeof BigInt=="function"}function RHe(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function oE(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",i=r.split("."),a=i[0]||"0",o=i[1]||"0";a==="0"&&o==="0"&&(n=!1);var s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:a,decimalStr:o,fullStr:"".concat(s).concat(r)}}function Qde(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function jS(e){var t=String(e);if(Qde(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&Jde(t)?t.length-t.indexOf(".")-1:0}function Oz(e){var t=String(e);if(Qde(e)){if(e>Number.MAX_SAFE_INTEGER)return String(bie()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(bie()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(jS(t))}return oE(t).fullStr}function Jde(e){return typeof e=="number"?!Number.isNaN(e):e?/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e):!1}var rzt=function(){function e(t){if(co(this,e),be(this,"origin",""),be(this,"negative",void 0),be(this,"integer",void 0),be(this,"decimal",void 0),be(this,"decimalLen",void 0),be(this,"empty",void 0),be(this,"nan",void 0),RHe(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var n=t;if(Qde(n)&&(n=Number(n)),n=typeof n=="string"?n:Oz(n),Jde(n)){var r=oE(n);this.negative=r.negative;var i=r.trimStr.split(".");this.integer=BigInt(i[0]);var a=i[1]||"0";this.decimal=BigInt(a),this.decimalLen=a.length}else this.nan=!0}return uo(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(n){var r="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(n,"0"));return BigInt(r)}},{key:"negate",value:function(){var n=new e(this.toString());return n.negative=!n.negative,n}},{key:"cal",value:function(n,r,i){var a=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),o=this.alignDecimal(a),s=n.alignDecimal(a),l=r(o,s).toString(),c=i(a),u=oE(l),d=u.negativeStr,f=u.trimStr,p="".concat(d).concat(f.padStart(c+1,"0"));return new e("".concat(p.slice(0,-c),".").concat(p.slice(-c)))}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=new e(n);return r.isInvalidate()?this:this.cal(r,function(i,a){return i+a},function(i){return i})}},{key:"multi",value:function(n){var r=new e(n);return this.isInvalidate()||r.isInvalidate()?new e(NaN):this.cal(r,function(i,a){return i*a},function(i){return i*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toString()===n?.toString()}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":oE("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),izt=function(){function e(t){if(co(this,e),be(this,"origin",""),be(this,"number",void 0),be(this,"empty",void 0),RHe(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return uo(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var i=this.number+r;if(i>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(i<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var a=Math.max(jS(this.number),jS(r));return new e(i.toFixed(a))}},{key:"multi",value:function(n){var r=Number(n);if(this.isInvalidate()||Number.isNaN(r))return new e(NaN);var i=this.number*r;if(i>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(i<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var a=Math.max(jS(this.number),jS(r));return new e(i.toFixed(a))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toNumber()===n?.toNumber()}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":Oz(this.number):this.origin}}]),e}();function Ih(e){return bie()?new rzt(e):new izt(e)}function n7(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var i=oE(e),a=i.negativeStr,o=i.integerStr,s=i.decimalStr,l="".concat(t).concat(s),c="".concat(a).concat(o);if(n>=0){var u=Number(s[n]);if(u>=5&&!r){var d=Ih(e).add("".concat(a,"0.").concat("0".repeat(n)).concat(10-u));return n7(d.toString(),t,n,r)}return n===0?c:"".concat(c).concat(t).concat(s.padEnd(n,"0").slice(0,n))}return l===".0"?c:"".concat(c).concat(l)}function azt(e){return!!(e.addonBefore||e.addonAfter)}function ozt(e){return!!(e.prefix||e.suffix||e.allowClear)}function bSe(e,t,n){var r=t.cloneNode(!0),i=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},i}function q$(e,t,n,r){if(n){var i=t;if(t.type==="click"){i=bSe(t,e,""),n(i);return}if(e.type!=="file"&&r!==void 0){i=bSe(t,e,r),n(i);return}n(i)}}function NHe(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var i=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(i,i);break;default:e.setSelectionRange(0,i)}}}}var efe=se.forwardRef(function(e,t){var n,r,i=e.inputElement,a=e.children,o=e.prefixCls,s=e.prefix,l=e.suffix,c=e.addonBefore,u=e.addonAfter,d=e.className,f=e.style,p=e.disabled,h=e.readOnly,m=e.focused,g=e.triggerFocus,v=e.allowClear,y=e.value,_=e.handleReset,S=e.hidden,C=e.classes,w=e.classNames,x=e.dataAttrs,T=e.styles,A=e.components,I=e.onClear,R=a??i,N=A?.affixWrapper||"span",P=A?.groupWrapper||"span",L=A?.wrapper||"span",$=A?.groupAddon||"span",D=b.useRef(null),z=function(fe){var ge;(ge=D.current)!==null&&ge!==void 0&&ge.contains(fe.target)&&g?.()},U=ozt(e),H=b.cloneElement(R,{value:y,className:Oe(R.props.className,!U&&w?.variant)||null}),M=b.useRef(null);if(se.useImperativeHandle(t,function(){return{nativeElement:M.current||D.current}}),U){var B=null;if(v){var k=!p&&!h&&y,F="".concat(o,"-clear-icon"),G=cn(v)==="object"&&v!==null&&v!==void 0&&v.clearIcon?v.clearIcon:"✖";B=se.createElement("span",{onClick:function(fe){_?.(fe),I?.()},onMouseDown:function(fe){return fe.preventDefault()},className:Oe(F,be(be({},"".concat(F,"-hidden"),!k),"".concat(F,"-has-suffix"),!!l)),role:"button",tabIndex:-1},G)}var q="".concat(o,"-affix-wrapper"),W=Oe(q,be(be(be(be(be({},"".concat(o,"-disabled"),p),"".concat(q,"-disabled"),p),"".concat(q,"-focused"),m),"".concat(q,"-readonly"),h),"".concat(q,"-input-with-clear-btn"),l&&v&&y),C?.affixWrapper,w?.affixWrapper,w?.variant),K=(l||v)&&se.createElement("span",{className:Oe("".concat(o,"-suffix"),w?.suffix),style:T?.suffix},B,l);H=se.createElement(N,Xe({className:W,style:T?.affixWrapper,onClick:z},x?.affixWrapper,{ref:D}),s&&se.createElement("span",{className:Oe("".concat(o,"-prefix"),w?.prefix),style:T?.prefix},s),H,K)}if(azt(e)){var J="".concat(o,"-group"),te="".concat(J,"-addon"),ae="".concat(J,"-wrapper"),re=Oe("".concat(o,"-wrapper"),J,C?.wrapper,w?.wrapper),ue=Oe(ae,be({},"".concat(ae,"-disabled"),p),C?.group,w?.groupWrapper);H=se.createElement(P,{className:ue,ref:M},se.createElement(L,{className:re},c&&se.createElement($,{className:te},c),H,u&&se.createElement($,{className:te},u)))}return se.cloneElement(H,{className:Oe((n=H.props)===null||n===void 0?void 0:n.className,d)||null,style:we(we({},(r=H.props)===null||r===void 0?void 0:r.style),f),hidden:S})}),szt=["show"];function OHe(e,t){return b.useMemo(function(){var n={};t&&(n.show=cn(t)==="object"&&t.formatter?t.formatter:!!t),n=we(we({},n),e);var r=n,i=r.show,a=$n(r,szt);return we(we({},a),{},{show:!!i,showFormatter:typeof i=="function"?i:void 0,strategy:a.strategy||function(o){return o.length}})},[e,t])}var lzt=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],czt=b.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,i=e.onFocus,a=e.onBlur,o=e.onPressEnter,s=e.onKeyDown,l=e.onKeyUp,c=e.prefixCls,u=c===void 0?"rc-input":c,d=e.disabled,f=e.htmlSize,p=e.className,h=e.maxLength,m=e.suffix,g=e.showCount,v=e.count,y=e.type,_=y===void 0?"text":y,S=e.classes,C=e.classNames,w=e.styles,x=e.onCompositionStart,T=e.onCompositionEnd,A=$n(e,lzt),I=b.useState(!1),R=Fe(I,2),N=R[0],P=R[1],L=b.useRef(!1),$=b.useRef(!1),D=b.useRef(null),z=b.useRef(null),U=function(xe){D.current&&NHe(D.current,xe)},H=qr(e.defaultValue,{value:e.value}),M=Fe(H,2),B=M[0],k=M[1],F=B==null?"":String(B),G=b.useState(null),q=Fe(G,2),W=q[0],K=q[1],J=OHe(v,g),te=J.max||h,ae=J.strategy(F),re=!!te&&ae>te;b.useImperativeHandle(t,function(){var Te;return{focus:U,blur:function(){var De;(De=D.current)===null||De===void 0||De.blur()},setSelectionRange:function(De,Pe,Le){var ze;(ze=D.current)===null||ze===void 0||ze.setSelectionRange(De,Pe,Le)},select:function(){var De;(De=D.current)===null||De===void 0||De.select()},input:D.current,nativeElement:((Te=z.current)===null||Te===void 0?void 0:Te.nativeElement)||D.current}}),b.useEffect(function(){P(function(Te){return Te&&d?!1:Te})},[d]);var ue=function(xe,De,Pe){var Le=De;if(!L.current&&J.exceedFormatter&&J.max&&J.strategy(De)>J.max){if(Le=J.exceedFormatter(De,{max:J.max}),De!==Le){var ze,Be;K([((ze=D.current)===null||ze===void 0?void 0:ze.selectionStart)||0,((Be=D.current)===null||Be===void 0?void 0:Be.selectionEnd)||0])}}else if(Pe.source==="compositionEnd")return;k(Le),D.current&&q$(D.current,xe,r,Le)};b.useEffect(function(){if(W){var Te;(Te=D.current)===null||Te===void 0||Te.setSelectionRange.apply(Te,Tt(W))}},[W]);var de=function(xe){ue(xe,xe.target.value,{source:"change"})},fe=function(xe){L.current=!1,ue(xe,xe.currentTarget.value,{source:"compositionEnd"}),T?.(xe)},ge=function(xe){o&&xe.key==="Enter"&&!$.current&&($.current=!0,o(xe)),s?.(xe)},oe=function(xe){xe.key==="Enter"&&($.current=!1),l?.(xe)},Ee=function(xe){P(!0),i?.(xe)},ce=function(xe){P(!1),a?.(xe)},he=function(xe){k(""),U(),D.current&&q$(D.current,xe,r)},ye=re&&"".concat(u,"-out-of-range"),me=function(){var xe=Xa(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return se.createElement("input",Xe({autoComplete:n},xe,{onChange:de,onFocus:Ee,onBlur:ce,onKeyDown:ge,onKeyUp:oe,className:Oe(u,be({},"".concat(u,"-disabled"),d),C?.input),style:w?.input,ref:D,size:f,type:_,onCompositionStart:function(Pe){L.current=!0,x?.(Pe)},onCompositionEnd:fe}))},_e=function(){var xe=Number(te)>0;if(m||J.show){var De=J.showFormatter?J.showFormatter({value:F,count:ae,maxLength:te}):"".concat(ae).concat(xe?" / ".concat(te):"");return se.createElement(se.Fragment,null,J.show&&se.createElement("span",{className:Oe("".concat(u,"-show-count-suffix"),be({},"".concat(u,"-show-count-has-suffix"),!!m),C?.count),style:we({},w?.count)},De),m)}return null};return se.createElement(efe,Xe({},A,{prefixCls:u,className:Oe(p,ye),handleReset:he,value:F,focused:N,triggerFocus:U,suffix:_e(),disabled:d,classes:S,classNames:C,styles:w}),me())});function uzt(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(r,i){if(t[i])return t[i];var a=r[i];return typeof a=="function"?a.bind(r):a}}):e}function dzt(e,t){var n=b.useRef(null);function r(){try{var a=e.selectionStart,o=e.selectionEnd,s=e.value,l=s.substring(0,a),c=s.substring(o);n.current={start:a,end:o,value:s,beforeTxt:l,afterTxt:c}}catch{}}function i(){if(e&&n.current&&t)try{var a=e.value,o=n.current,s=o.beforeTxt,l=o.afterTxt,c=o.start,u=a.length;if(a.startsWith(s))u=s.length;else if(a.endsWith(l))u=a.length-n.current.afterTxt.length;else{var d=s[c-1],f=a.indexOf(d,c-1);f!==-1&&(u=f+1)}e.setSelectionRange(u,u)}catch(p){Ra(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(p.message))}}return[r,i]}var fzt=function(){var t=b.useState(!1),n=Fe(t,2),r=n[0],i=n[1];return kr(function(){i(fz())},[]),r},pzt=200,hzt=600;function mzt(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,i=e.upDisabled,a=e.downDisabled,o=e.onStep,s=b.useRef(),l=b.useRef([]),c=b.useRef();c.current=o;var u=function(){clearTimeout(s.current)},d=function(_,S){_.preventDefault(),u(),c.current(S);function C(){c.current(S),s.current=setTimeout(C,pzt)}s.current=setTimeout(C,hzt)};b.useEffect(function(){return function(){u(),l.current.forEach(function(y){return Tr.cancel(y)})}},[]);var f=fzt();if(f)return null;var p="".concat(t,"-handler"),h=Oe(p,"".concat(p,"-up"),be({},"".concat(p,"-up-disabled"),i)),m=Oe(p,"".concat(p,"-down"),be({},"".concat(p,"-down-disabled"),a)),g=function(){return l.current.push(Tr(u))},v={unselectable:"on",role:"button",onMouseUp:g,onMouseLeave:g};return b.createElement("div",{className:"".concat(p,"-wrap")},b.createElement("span",Xe({},v,{onMouseDown:function(_){d(_,!0)},"aria-label":"Increase Value","aria-disabled":i,className:h}),n||b.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),b.createElement("span",Xe({},v,{onMouseDown:function(_){d(_,!1)},"aria-label":"Decrease Value","aria-disabled":a,className:m}),r||b.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function _Se(e){var t=typeof e=="number"?Oz(e):oE(e).fullStr,n=t.includes(".");return n?oE(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const gzt=function(){var e=b.useRef(0),t=function(){Tr.cancel(e.current)};return b.useEffect(function(){return t},[]),function(n){t(),e.current=Tr(function(){n()})}};var vzt=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],yzt=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],SSe=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},ESe=function(t){var n=Ih(t);return n.isInvalidate()?null:n},bzt=b.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,a=e.min,o=e.max,s=e.step,l=s===void 0?1:s,c=e.defaultValue,u=e.value,d=e.disabled,f=e.readOnly,p=e.upHandler,h=e.downHandler,m=e.keyboard,g=e.changeOnWheel,v=g===void 0?!1:g,y=e.controls,_=y===void 0?!0:y;e.classNames;var S=e.stringMode,C=e.parser,w=e.formatter,x=e.precision,T=e.decimalSeparator,A=e.onChange,I=e.onInput,R=e.onPressEnter,N=e.onStep,P=e.changeOnBlur,L=P===void 0?!0:P,$=e.domRef,D=$n(e,vzt),z="".concat(n,"-input"),U=b.useRef(null),H=b.useState(!1),M=Fe(H,2),B=M[0],k=M[1],F=b.useRef(!1),G=b.useRef(!1),q=b.useRef(!1),W=b.useState(function(){return Ih(u??c)}),K=Fe(W,2),J=K[0],te=K[1];function ae(Rt){u===void 0&&te(Rt)}var re=b.useCallback(function(Rt,Dt){if(!Dt)return x>=0?x:Math.max(jS(Rt),jS(l))},[x,l]),ue=b.useCallback(function(Rt){var Dt=String(Rt);if(C)return C(Dt);var Pt=Dt;return T&&(Pt=Pt.replace(T,".")),Pt.replace(/[^\w.-]+/g,"")},[C,T]),de=b.useRef(""),fe=b.useCallback(function(Rt,Dt){if(w)return w(Rt,{userTyping:Dt,input:String(de.current)});var Pt=typeof Rt=="number"?Oz(Rt):Rt;if(!Dt){var Ot=re(Pt,Dt);if(Jde(Pt)&&(T||Ot>=0)){var sn=T||".";Pt=n7(Pt,sn,Ot)}}return Pt},[w,re,T]),ge=b.useState(function(){var Rt=c??u;return J.isInvalidate()&&["string","number"].includes(cn(Rt))?Number.isNaN(Rt)?"":Rt:fe(J.toString(),!1)}),oe=Fe(ge,2),Ee=oe[0],ce=oe[1];de.current=Ee;function he(Rt,Dt){ce(fe(Rt.isInvalidate()?Rt.toString(!1):Rt.toString(!Dt),Dt))}var ye=b.useMemo(function(){return ESe(o)},[o,x]),me=b.useMemo(function(){return ESe(a)},[a,x]),_e=b.useMemo(function(){return!ye||!J||J.isInvalidate()?!1:ye.lessEquals(J)},[ye,J]),Te=b.useMemo(function(){return!me||!J||J.isInvalidate()?!1:J.lessEquals(me)},[me,J]),xe=dzt(U.current,B),De=Fe(xe,2),Pe=De[0],Le=De[1],ze=function(Dt){return ye&&!Dt.lessEquals(ye)?ye:me&&!me.lessEquals(Dt)?me:null},Be=function(Dt){return!ze(Dt)},je=function(Dt,Pt){var Ot=Dt,sn=Be(Ot)||Ot.isEmpty();if(!Ot.isEmpty()&&!Pt&&(Ot=ze(Ot)||Ot,sn=!0),!f&&!d&&sn){var Jt=Ot.toString(),Vt=re(Jt,Pt);return Vt>=0&&(Ot=Ih(n7(Jt,".",Vt)),Be(Ot)||(Ot=Ih(n7(Jt,".",Vt,!0)))),Ot.equals(J)||(ae(Ot),A?.(Ot.isEmpty()?null:SSe(S,Ot)),u===void 0&&he(Ot,Pt)),Ot}return J},Ye=gzt(),Ze=function Rt(Dt){if(Pe(),de.current=Dt,ce(Dt),!G.current){var Pt=ue(Dt),Ot=Ih(Pt);Ot.isNaN()||je(Ot,!0)}I?.(Dt),Ye(function(){var sn=Dt;C||(sn=Dt.replace(/。/g,".")),sn!==Dt&&Rt(sn)})},Ke=function(){G.current=!0},qe=function(){G.current=!1,Ze(U.current.value)},nt=function(Dt){Ze(Dt.target.value)},Qe=function(Dt){var Pt;if(!(Dt&&_e||!Dt&&Te)){F.current=!1;var Ot=Ih(q.current?_Se(l):l);Dt||(Ot=Ot.negate());var sn=(J||Ih(0)).add(Ot.toString()),Jt=je(sn,!1);N?.(SSe(S,Jt),{offset:q.current?_Se(l):l,type:Dt?"up":"down"}),(Pt=U.current)===null||Pt===void 0||Pt.focus()}},it=function(Dt){var Pt=Ih(ue(Ee)),Ot;Pt.isNaN()?Ot=je(J,Dt):Ot=je(Pt,Dt),u!==void 0?he(J,!1):Ot.isNaN()||he(Ot,!1)},yt=function(){F.current=!0},Wt=function(Dt){var Pt=Dt.key,Ot=Dt.shiftKey;F.current=!0,q.current=Ot,Pt==="Enter"&&(G.current||(F.current=!1),it(!1),R?.(Dt)),m!==!1&&!G.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Pt)&&(Qe(Pt==="Up"||Pt==="ArrowUp"),Dt.preventDefault())},Mt=function(){F.current=!1,q.current=!1};b.useEffect(function(){if(v&&B){var Rt=function(Ot){Qe(Ot.deltaY<0),Ot.preventDefault()},Dt=U.current;if(Dt)return Dt.addEventListener("wheel",Rt,{passive:!1}),function(){return Dt.removeEventListener("wheel",Rt)}}});var tn=function(){L&&it(!1),k(!1),F.current=!1};return rE(function(){J.isInvalidate()||he(J,!1)},[x,w]),rE(function(){var Rt=Ih(u);te(Rt);var Dt=Ih(ue(Ee));(!Rt.equals(Dt)||!F.current||w)&&he(Rt,F.current)},[u]),rE(function(){w&&Le()},[Ee]),b.createElement("div",{ref:$,className:Oe(n,r,be(be(be(be(be({},"".concat(n,"-focused"),B),"".concat(n,"-disabled"),d),"".concat(n,"-readonly"),f),"".concat(n,"-not-a-number"),J.isNaN()),"".concat(n,"-out-of-range"),!J.isInvalidate()&&!Be(J))),style:i,onFocus:function(){k(!0)},onBlur:tn,onKeyDown:Wt,onKeyUp:Mt,onCompositionStart:Ke,onCompositionEnd:qe,onBeforeInput:yt},_&&b.createElement(mzt,{prefixCls:n,upNode:p,downNode:h,upDisabled:_e,downDisabled:Te,onStep:Qe}),b.createElement("div",{className:"".concat(z,"-wrap")},b.createElement("input",Xe({autoComplete:"off",role:"spinbutton","aria-valuemin":a,"aria-valuemax":o,"aria-valuenow":J.isInvalidate()?null:J.toString(),step:l},D,{ref:Ll(U,t),className:z,value:Ee,onChange:nt,disabled:d,readOnly:f}))))}),_zt=b.forwardRef(function(e,t){var n=e.disabled,r=e.style,i=e.prefixCls,a=i===void 0?"rc-input-number":i,o=e.value,s=e.prefix,l=e.suffix,c=e.addonBefore,u=e.addonAfter,d=e.className,f=e.classNames,p=$n(e,yzt),h=b.useRef(null),m=b.useRef(null),g=b.useRef(null),v=function(_){g.current&&NHe(g.current,_)};return b.useImperativeHandle(t,function(){return uzt(g.current,{nativeElement:h.current.nativeElement||m.current})}),b.createElement(efe,{className:d,triggerFocus:v,prefixCls:a,value:o,disabled:n,style:r,prefix:s,suffix:l,addonAfter:u,addonBefore:c,classNames:f,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:h},b.createElement(bzt,Xe({prefixCls:a,disabled:n,ref:g,domRef:m,className:f?.input},p)))});const Szt=e=>{var t;const n=(t=e.handleVisible)!==null&&t!==void 0?t:"auto";return Object.assign(Object.assign({},OO(e)),{controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new ti(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0})},CSe=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:i}=e;const a=t==="lg"?i:r;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:a,borderEndEndRadius:a},[`${n}-handler-up`]:{borderStartEndRadius:a},[`${n}-handler-down`]:{borderEndEndRadius:a}}}},Ezt=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:i,inputFontSizeSM:a,inputFontSizeLG:o,controlHeightLG:s,controlHeightSM:l,colorError:c,paddingInlineSM:u,paddingBlockSM:d,paddingBlockLG:f,paddingInlineLG:p,colorTextDescription:h,motionDurationMid:m,handleHoverColor:g,handleOpacity:v,paddingInline:y,paddingBlock:_,handleBg:S,handleActiveBg:C,colorTextDisabled:w,borderRadiusSM:x,borderRadiusLG:T,controlWidth:A,handleBorderColor:I,filledHandleBg:R,lineHeightLG:N,calc:P}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Wr(e)),LO(e)),{display:"inline-block",width:A,margin:0,padding:0,borderRadius:i}),zde(e,{[`${t}-handler-wrap`]:{background:S,[`${t}-handler-down`]:{borderBlockStart:`${Ce(n)} ${r} ${I}`}}})),Hde(e,{[`${t}-handler-wrap`]:{background:R,[`${t}-handler-down`]:{borderBlockStart:`${Ce(n)} ${r} ${I}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:S}}})),Ude(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:o,lineHeight:N,borderRadius:T,[`input${t}-input`]:{height:P(s).sub(P(n).mul(2)).equal(),padding:`${Ce(f)} ${Ce(p)}`}},"&-sm":{padding:0,fontSize:a,borderRadius:x,[`input${t}-input`]:{height:P(l).sub(P(n).mul(2)).equal(),padding:`${Ce(d)} ${Ce(u)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},Wr(e)),nHe(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:T,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:x}}},QUe(e)),eHe(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},Wr(e)),{width:"100%",padding:`${Ce(_)} ${Ce(y)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:i,outline:0,transition:`all ${m} linear`,appearance:"textfield",fontSize:"inherit"}),Vde(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[t]:Object.assign(Object.assign(Object.assign({[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:0,opacity:v,height:"100%",borderStartStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${m}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
              ${t}-handler-up-inner,
              ${t}-handler-down-inner
            `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:h,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${Ce(n)} ${r} ${I}`,transition:`all ${m} linear`,"&:active":{background:C},"&:hover":{height:"60%",[`
              ${t}-handler-up-inner,
              ${t}-handler-down-inner
            `]:{color:g}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},lT()),{color:h,transition:`all ${m} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:i},[`${t}-handler-down`]:{borderEndEndRadius:i}},CSe(e,"lg")),CSe(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`
          ${t}-handler-up-disabled,
          ${t}-handler-down-disabled
        `]:{cursor:"not-allowed"},[`
          ${t}-handler-up-disabled:hover &-handler-up-inner,
          ${t}-handler-down-disabled:hover &-handler-down-inner
        `]:{color:w}})}]},Czt=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:i,controlWidth:a,borderRadiusLG:o,borderRadiusSM:s,paddingInlineLG:l,paddingInlineSM:c,paddingBlockLG:u,paddingBlockSM:d,motionDurationMid:f}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${Ce(n)} 0`}},LO(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:a,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:o,paddingInlineStart:l,[`input${t}-input`]:{padding:`${Ce(u)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:c,[`input${t}-input`]:{padding:`${Ce(d)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:i},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:r,marginInlineStart:i,transition:`margin ${f}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(r).equal()}})}},wzt=Kr("InputNumber",e=>{const t=br(e,NO(e));return[Ezt(t),Czt(t),vO(t)]},Szt,{unitless:{handleOpacity:!0}});var xzt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const LHe=b.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=b.useContext(Sn),i=b.useRef(null);b.useImperativeHandle(t,()=>i.current);const{className:a,rootClassName:o,size:s,disabled:l,prefixCls:c,addonBefore:u,addonAfter:d,prefix:f,suffix:p,bordered:h,readOnly:m,status:g,controls:v,variant:y}=e,_=xzt(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),S=n("input-number",c),C=Ja(S),[w,x,T]=wzt(S,C),{compactSize:A,compactItemClassnames:I}=x_(S,r);let R=b.createElement(vDe,{className:`${S}-handler-up-inner`}),N=b.createElement(pv,{className:`${S}-handler-down-inner`});const P=typeof v=="boolean"?v:void 0;typeof v=="object"&&(R=typeof v.upIcon>"u"?R:b.createElement("span",{className:`${S}-handler-up-inner`},v.upIcon),N=typeof v.downIcon>"u"?N:b.createElement("span",{className:`${S}-handler-down-inner`},v.downIcon));const{hasFeedback:L,status:$,isFormItemInput:D,feedbackIcon:z}=b.useContext(Ol),U=SC($,g),H=ks(J=>{var te;return(te=s??A)!==null&&te!==void 0?te:J}),M=b.useContext(wc),B=l??M,[k,F]=mT("inputNumber",y,h),G=L&&b.createElement(b.Fragment,null,z),q=Oe({[`${S}-lg`]:H==="large",[`${S}-sm`]:H==="small",[`${S}-rtl`]:r==="rtl",[`${S}-in-form-item`]:D},x),W=`${S}-group`,K=b.createElement(_zt,Object.assign({ref:i,disabled:B,className:Oe(T,C,a,o,I),upHandler:R,downHandler:N,prefixCls:S,readOnly:m,controls:P,prefix:f,suffix:G||p,addonBefore:u&&b.createElement(lm,{form:!0,space:!0},u),addonAfter:d&&b.createElement(lm,{form:!0,space:!0},d),classNames:{input:q,variant:Oe({[`${S}-${k}`]:F},o0(S,U,L)),affixWrapper:Oe({[`${S}-affix-wrapper-sm`]:H==="small",[`${S}-affix-wrapper-lg`]:H==="large",[`${S}-affix-wrapper-rtl`]:r==="rtl"},x),wrapper:Oe({[`${W}-rtl`]:r==="rtl"},x),groupWrapper:Oe({[`${S}-group-wrapper-sm`]:H==="small",[`${S}-group-wrapper-lg`]:H==="large",[`${S}-group-wrapper-rtl`]:r==="rtl",[`${S}-group-wrapper-${k}`]:F},o0(`${S}-group-wrapper`,U,L),x)}},_));return w(K)}),PHe=LHe,Tzt=e=>b.createElement(zp,{theme:{components:{InputNumber:{handleVisible:!0}}}},b.createElement(LHe,Object.assign({},e)));PHe._InternalPanelDoNotUseOrYouWillBeFired=Tzt;const sE=e=>{let{prefixCls:t,min:n=0,max:r=100,value:i,onChange:a,className:o,formatter:s}=e;const l=`${t}-steppers`,[c,u]=b.useState(i);return b.useEffect(()=>{Number.isNaN(i)||u(i)},[i]),se.createElement(PHe,{className:Oe(l,o),min:n,max:r,value:c,formatter:s,size:"small",onChange:d=>{i||u(d||0),a?.(d)}})},Izt=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=`${t}-alpha-input`,[a,o]=b.useState(tu(n||"#000"));b.useEffect(()=>{n&&o(n)},[n]);const s=l=>{const c=a.toHsb();c.a=(l||0)/100;const u=tu(c);n||o(u),r?.(u)};return se.createElement(sE,{value:Zde(a),prefixCls:t,formatter:l=>`${l}%`,className:i,onChange:s})},Azt=e=>{const{getPrefixCls:t,direction:n}=b.useContext(Sn),{prefixCls:r,className:i}=e,a=t("input-group",r),o=t("input"),[s,l]=qde(o),c=Oe(a,{[`${a}-lg`]:e.size==="large",[`${a}-sm`]:e.size==="small",[`${a}-compact`]:e.compact,[`${a}-rtl`]:n==="rtl"},l,i),u=b.useContext(Ol),d=b.useMemo(()=>Object.assign(Object.assign({},u),{isFormItemInput:!1}),[u]);return s(b.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},b.createElement(Ol.Provider,{value:d},e.children)))},kHe=e=>{let t;return typeof e=="object"&&e?.clearIcon?t=e:e&&(t={clearIcon:se.createElement(fv,null)}),t};function MHe(e,t){const n=b.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var i,a,o,s;!((i=e.current)===null||i===void 0)&&i.input&&((a=e.current)===null||a===void 0?void 0:a.input.getAttribute("type"))==="password"&&(!((o=e.current)===null||o===void 0)&&o.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return b.useEffect(()=>(t&&r(),()=>n.current.forEach(i=>{i&&clearTimeout(i)})),[]),r}function Rzt(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var Nzt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function Ozt(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}const Lz=b.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:i=!0,status:a,size:o,disabled:s,onBlur:l,onFocus:c,suffix:u,allowClear:d,addonAfter:f,addonBefore:p,className:h,style:m,styles:g,rootClassName:v,onChange:y,classNames:_,variant:S}=e,C=Nzt(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:w,direction:x,input:T}=se.useContext(Sn),A=w("input",r),I=b.useRef(null),R=Ja(A),[N,P,L]=qde(A,R),{compactSize:$,compactItemClassnames:D}=x_(A,x),z=ks(de=>{var fe;return(fe=o??$)!==null&&fe!==void 0?fe:de}),U=se.useContext(wc),H=s??U,{status:M,hasFeedback:B,feedbackIcon:k}=b.useContext(Ol),F=SC(M,a),G=Rzt(e)||!!B;b.useRef(G);const q=MHe(I,!0),W=de=>{q(),l?.(de)},K=de=>{q(),c?.(de)},J=de=>{q(),y?.(de)},te=(B||u)&&se.createElement(se.Fragment,null,u,B&&k),ae=kHe(d??T?.allowClear),[re,ue]=mT("input",S,i);return N(se.createElement(czt,Object.assign({ref:Ll(t,I),prefixCls:A,autoComplete:T?.autoComplete},C,{disabled:H,onBlur:W,onFocus:K,style:Object.assign(Object.assign({},T?.style),m),styles:Object.assign(Object.assign({},T?.styles),g),suffix:te,allowClear:ae,className:Oe(h,v,L,R,D,T?.className),onChange:J,addonBefore:p&&se.createElement(lm,{form:!0,space:!0},p),addonAfter:f&&se.createElement(lm,{form:!0,space:!0},f),classNames:Object.assign(Object.assign(Object.assign({},_),T?.classNames),{input:Oe({[`${A}-sm`]:z==="small",[`${A}-lg`]:z==="large",[`${A}-rtl`]:x==="rtl"},_?.input,(n=T?.classNames)===null||n===void 0?void 0:n.input,P),variant:Oe({[`${A}-${re}`]:ue},o0(A,F)),affixWrapper:Oe({[`${A}-affix-wrapper-sm`]:z==="small",[`${A}-affix-wrapper-lg`]:z==="large",[`${A}-affix-wrapper-rtl`]:x==="rtl"},P),wrapper:Oe({[`${A}-group-rtl`]:x==="rtl"},P),groupWrapper:Oe({[`${A}-group-wrapper-sm`]:z==="small",[`${A}-group-wrapper-lg`]:z==="large",[`${A}-group-wrapper-rtl`]:x==="rtl",[`${A}-group-wrapper-${re}`]:ue},o0(`${A}-group-wrapper`,F,B),P)})})))}),Lzt=e=>{const{componentCls:t,paddingXS:n}=e;return{[`${t}`]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},Pzt=Kr(["Input","OTP"],e=>{const t=br(e,NO(e));return[Lzt(t)]},OO);var kzt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Mzt=b.forwardRef((e,t)=>{const{value:n,onChange:r,onActiveChange:i,index:a,mask:o}=e,s=kzt(e,["value","onChange","onActiveChange","index","mask"]),l=n&&typeof o=="string"?o:n,c=h=>{r(a,h.target.value)},u=b.useRef(null);b.useImperativeHandle(t,()=>u.current);const d=()=>{Tr(()=>{var h;const m=(h=u.current)===null||h===void 0?void 0:h.input;document.activeElement===m&&m&&m.select()})},f=h=>{let{key:m}=h;m==="ArrowLeft"?i(a-1):m==="ArrowRight"&&i(a+1),d()},p=h=>{h.key==="Backspace"&&!n&&i(a-1),d()};return b.createElement(Lz,Object.assign({},s,{ref:u,value:l,onInput:c,onFocus:d,onKeyDown:f,onKeyUp:p,onMouseDown:d,onMouseUp:d,type:o===!0?"password":"text"}))});var Dzt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function fP(e){return(e||"").split("")}const $zt=b.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:i,defaultValue:a,value:o,onChange:s,formatter:l,variant:c,disabled:u,status:d,autoFocus:f,mask:p}=e,h=Dzt(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask"]),{getPrefixCls:m,direction:g}=b.useContext(Sn),v=m("otp",n),y=lo(h,{aria:!0,data:!0,attr:!0}),_=Ja(v),[S,C,w]=Pzt(v,_),x=ks(B=>i??B),T=b.useContext(Ol),A=SC(T.status,d),I=b.useMemo(()=>Object.assign(Object.assign({},T),{status:A,hasFeedback:!1,feedbackIcon:null}),[T,A]),R=b.useRef(null),N=b.useRef({});b.useImperativeHandle(t,()=>({focus:()=>{var B;(B=N.current[0])===null||B===void 0||B.focus()},blur:()=>{var B;for(let k=0;k<r;k+=1)(B=N.current[k])===null||B===void 0||B.blur()},nativeElement:R.current}));const P=B=>l?l(B):B,[L,$]=b.useState(fP(P(a||"")));b.useEffect(()=>{o!==void 0&&$(fP(o))},[o]);const D=gr(B=>{$(B),s&&B.length===r&&B.every(k=>k)&&B.some((k,F)=>L[F]!==k)&&s(B.join(""))}),z=gr((B,k)=>{let F=Tt(L);for(let q=0;q<B;q+=1)F[q]||(F[q]="");k.length<=1?F[B]=k:F=F.slice(0,B).concat(fP(k)),F=F.slice(0,r);for(let q=F.length-1;q>=0&&!F[q];q-=1)F.pop();const G=P(F.map(q=>q||" ").join(""));return F=fP(G).map((q,W)=>q===" "&&!F[W]?F[W]:q),F}),U=(B,k)=>{var F;const G=z(B,k),q=Math.min(B+k.length,r-1);q!==B&&((F=N.current[q])===null||F===void 0||F.focus()),D(G)},H=B=>{var k;(k=N.current[B])===null||k===void 0||k.focus()},M={variant:c,disabled:u,status:A,mask:p};return S(b.createElement("div",Object.assign({},y,{ref:R,className:Oe(v,{[`${v}-sm`]:x==="small",[`${v}-lg`]:x==="large",[`${v}-rtl`]:g==="rtl"},w,C)}),b.createElement(Ol.Provider,{value:I},Array.from({length:r}).map((B,k)=>{const F=`otp-${k}`,G=L[k]||"";return b.createElement(Mzt,Object.assign({ref:q=>{N.current[k]=q},key:F,index:k,size:x,htmlSize:1,className:`${v}-input`,onChange:U,value:G,onActiveChange:H,autoFocus:k===0&&f},M))}))))});var Fzt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Bzt=e=>e?b.createElement(Yce,null):b.createElement(B_t,null),jzt={click:"onClick",hover:"onMouseOver"},zzt=b.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:i=!0,iconRender:a=Bzt}=e,o=typeof i=="object"&&i.visible!==void 0,[s,l]=b.useState(()=>o?i.visible:!1),c=b.useRef(null);b.useEffect(()=>{o&&l(i.visible)},[o,i]);const u=MHe(c),d=()=>{n||(s&&u(),l(T=>{var A;const I=!T;return typeof i=="object"&&((A=i.onVisibleChange)===null||A===void 0||A.call(i,I)),I}))},f=T=>{const A=jzt[r]||"",I=a(s),R={[A]:d,className:`${T}-icon`,key:"passwordIcon",onMouseDown:N=>{N.preventDefault()},onMouseUp:N=>{N.preventDefault()}};return b.cloneElement(b.isValidElement(I)?I:b.createElement("span",null,I),R)},{className:p,prefixCls:h,inputPrefixCls:m,size:g}=e,v=Fzt(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:y}=b.useContext(Sn),_=y("input",m),S=y("input-password",h),C=i&&f(S),w=Oe(S,p,{[`${S}-${g}`]:!!g}),x=Object.assign(Object.assign({},Xa(v,["suffix","iconRender","visibilityToggle"])),{type:s?"text":"password",className:w,prefixCls:_,suffix:C});return g&&(x.size=g),b.createElement(Lz,Object.assign({ref:Ll(t,c)},x))});var Uzt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Hzt=b.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:i,size:a,suffix:o,enterButton:s=!1,addonAfter:l,loading:c,disabled:u,onSearch:d,onChange:f,onCompositionStart:p,onCompositionEnd:h}=e,m=Uzt(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:g,direction:v}=b.useContext(Sn),y=b.useRef(!1),_=g("input-search",n),S=g("input",r),{compactSize:C}=x_(_,v),w=ks(M=>{var B;return(B=a??C)!==null&&B!==void 0?B:M}),x=b.useRef(null),T=M=>{M?.target&&M.type==="click"&&d&&d(M.target.value,M,{source:"clear"}),f?.(M)},A=M=>{var B;document.activeElement===((B=x.current)===null||B===void 0?void 0:B.input)&&M.preventDefault()},I=M=>{var B,k;d&&d((k=(B=x.current)===null||B===void 0?void 0:B.input)===null||k===void 0?void 0:k.value,M,{source:"input"})},R=M=>{y.current||c||I(M)},N=typeof s=="boolean"?b.createElement(bj,null):null,P=`${_}-button`;let L;const $=s||{},D=$.type&&$.type.__ANT_BUTTON===!0;D||$.type==="button"?L=as($,Object.assign({onMouseDown:A,onClick:M=>{var B,k;(k=(B=$?.props)===null||B===void 0?void 0:B.onClick)===null||k===void 0||k.call(B,M),I(M)},key:"enterButton"},D?{className:P,size:w}:{})):L=b.createElement(ut,{className:P,type:s?"primary":void 0,size:w,disabled:u,key:"enterButton",onMouseDown:A,onClick:I,loading:c,icon:N},s),l&&(L=[L,as(l,{key:"addonAfter"})]);const z=Oe(_,{[`${_}-rtl`]:v==="rtl",[`${_}-${w}`]:!!w,[`${_}-with-button`]:!!s},i),U=M=>{y.current=!0,p?.(M)},H=M=>{y.current=!1,h?.(M)};return b.createElement(Lz,Object.assign({ref:Ll(x,t),onPressEnter:R},m,{size:w,onCompositionStart:U,onCompositionEnd:H,prefixCls:S,addonAfter:L,suffix:o,onChange:T,className:z,disabled:u}))});var Vzt=`
  min-height:0 !important;
  max-height:none !important;
  height:0 !important;
  visibility:hidden !important;
  overflow:hidden !important;
  position:absolute !important;
  z-index:-1000 !important;
  top:0 !important;
  right:0 !important;
  pointer-events: none !important;
`,Gzt=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],fq={},Qf;function qzt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&fq[n])return fq[n];var r=window.getComputedStyle(e),i=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),a=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),o=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=Gzt.map(function(c){return"".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:a,borderSize:o,boxSizing:i};return t&&n&&(fq[n]=l),l}function Wzt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Qf||(Qf=document.createElement("textarea"),Qf.setAttribute("tab-index","-1"),Qf.setAttribute("aria-hidden","true"),document.body.appendChild(Qf)),e.getAttribute("wrap")?Qf.setAttribute("wrap",e.getAttribute("wrap")):Qf.removeAttribute("wrap");var i=qzt(e,t),a=i.paddingSize,o=i.borderSize,s=i.boxSizing,l=i.sizingStyle;Qf.setAttribute("style","".concat(l,";").concat(Vzt)),Qf.value=e.value||e.placeholder||"";var c=void 0,u=void 0,d,f=Qf.scrollHeight;if(s==="border-box"?f+=o:s==="content-box"&&(f-=a),n!==null||r!==null){Qf.value=" ";var p=Qf.scrollHeight-a;n!==null&&(c=p*n,s==="border-box"&&(c=c+a+o),f=Math.max(c,f)),r!==null&&(u=p*r,s==="border-box"&&(u=u+a+o),d=f>u?"":"hidden",f=Math.min(u,f))}var h={height:f,overflowY:d,resize:"none"};return c&&(h.minHeight=c),u&&(h.maxHeight=u),h}var Yzt=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],pq=0,hq=1,mq=2,Kzt=b.forwardRef(function(e,t){var n=e,r=n.prefixCls,i=n.defaultValue,a=n.value,o=n.autoSize,s=n.onResize,l=n.className,c=n.style,u=n.disabled,d=n.onChange;n.onInternalAutoSize;var f=$n(n,Yzt),p=qr(i,{value:a,postState:function(G){return G??""}}),h=Fe(p,2),m=h[0],g=h[1],v=function(G){g(G.target.value),d?.(G)},y=b.useRef();b.useImperativeHandle(t,function(){return{textArea:y.current}});var _=b.useMemo(function(){return o&&cn(o)==="object"?[o.minRows,o.maxRows]:[]},[o]),S=Fe(_,2),C=S[0],w=S[1],x=!!o,T=function(){try{if(document.activeElement===y.current){var G=y.current,q=G.selectionStart,W=G.selectionEnd,K=G.scrollTop;y.current.setSelectionRange(q,W),y.current.scrollTop=K}}catch{}},A=b.useState(mq),I=Fe(A,2),R=I[0],N=I[1],P=b.useState(),L=Fe(P,2),$=L[0],D=L[1],z=function(){N(pq)};kr(function(){x&&z()},[a,C,w,x]),kr(function(){if(R===pq)N(hq);else if(R===hq){var F=Wzt(y.current,!1,C,w);N(mq),D(F)}else T()},[R]);var U=b.useRef(),H=function(){Tr.cancel(U.current)},M=function(G){R===mq&&(s?.(G),o&&(H(),U.current=Tr(function(){z()})))};b.useEffect(function(){return H},[]);var B=x?$:null,k=we(we({},c),B);return(R===pq||R===hq)&&(k.overflowY="hidden",k.overflowX="hidden"),b.createElement(Sc,{onResize:M,disabled:!(o||s)},b.createElement("textarea",Xe({},f,{ref:y,style:k,className:Oe(r,l,be({},"".concat(r,"-disabled"),u)),disabled:u,value:m,onChange:v})))}),Xzt=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],Zzt=se.forwardRef(function(e,t){var n,r=e.defaultValue,i=e.value,a=e.onFocus,o=e.onBlur,s=e.onChange,l=e.allowClear,c=e.maxLength,u=e.onCompositionStart,d=e.onCompositionEnd,f=e.suffix,p=e.prefixCls,h=p===void 0?"rc-textarea":p,m=e.showCount,g=e.count,v=e.className,y=e.style,_=e.disabled,S=e.hidden,C=e.classNames,w=e.styles,x=e.onResize,T=e.onClear,A=e.onPressEnter,I=e.readOnly,R=e.autoSize,N=e.onKeyDown,P=$n(e,Xzt),L=qr(r,{value:i,defaultValue:r}),$=Fe(L,2),D=$[0],z=$[1],U=D==null?"":String(D),H=se.useState(!1),M=Fe(H,2),B=M[0],k=M[1],F=se.useRef(!1),G=se.useState(null),q=Fe(G,2),W=q[0],K=q[1],J=b.useRef(null),te=b.useRef(null),ae=function(){var qe;return(qe=te.current)===null||qe===void 0?void 0:qe.textArea},re=function(){ae().focus()};b.useImperativeHandle(t,function(){var Ke;return{resizableTextArea:te.current,focus:re,blur:function(){ae().blur()},nativeElement:((Ke=J.current)===null||Ke===void 0?void 0:Ke.nativeElement)||ae()}}),b.useEffect(function(){k(function(Ke){return!_&&Ke})},[_]);var ue=se.useState(null),de=Fe(ue,2),fe=de[0],ge=de[1];se.useEffect(function(){if(fe){var Ke;(Ke=ae()).setSelectionRange.apply(Ke,Tt(fe))}},[fe]);var oe=OHe(g,m),Ee=(n=oe.max)!==null&&n!==void 0?n:c,ce=Number(Ee)>0,he=oe.strategy(U),ye=!!Ee&&he>Ee,me=function(qe,nt){var Qe=nt;!F.current&&oe.exceedFormatter&&oe.max&&oe.strategy(nt)>oe.max&&(Qe=oe.exceedFormatter(nt,{max:oe.max}),nt!==Qe&&ge([ae().selectionStart||0,ae().selectionEnd||0])),z(Qe),q$(qe.currentTarget,qe,s,Qe)},_e=function(qe){F.current=!0,u?.(qe)},Te=function(qe){F.current=!1,me(qe,qe.currentTarget.value),d?.(qe)},xe=function(qe){me(qe,qe.target.value)},De=function(qe){qe.key==="Enter"&&A&&A(qe),N?.(qe)},Pe=function(qe){k(!0),a?.(qe)},Le=function(qe){k(!1),o?.(qe)},ze=function(qe){z(""),re(),q$(ae(),qe,s)},Be=f,je;oe.show&&(oe.showFormatter?je=oe.showFormatter({value:U,count:he,maxLength:Ee}):je="".concat(he).concat(ce?" / ".concat(Ee):""),Be=se.createElement(se.Fragment,null,Be,se.createElement("span",{className:Oe("".concat(h,"-data-count"),C?.count),style:w?.count},je)));var Ye=function(qe){var nt;x?.(qe),(nt=ae())!==null&&nt!==void 0&&nt.style.height&&K(!0)},Ze=!R&&!m&&!l;return se.createElement(efe,{ref:J,value:U,allowClear:l,handleReset:ze,suffix:Be,prefixCls:h,classNames:we(we({},C),{},{affixWrapper:Oe(C?.affixWrapper,be(be({},"".concat(h,"-show-count"),m),"".concat(h,"-textarea-allow-clear"),l))}),disabled:_,focused:B,className:Oe(v,ye&&"".concat(h,"-out-of-range")),style:we(we({},y),W&&!Ze?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof je=="string"?je:void 0}},hidden:S,readOnly:I,onClear:T},se.createElement(Kzt,Xe({},P,{autoSize:R,maxLength:c,onKeyDown:De,onChange:xe,onFocus:Pe,onBlur:Le,onCompositionStart:_e,onCompositionEnd:Te,className:Oe(C?.textarea),style:we(we({},w?.textarea),{},{resize:y?.resize}),disabled:_,prefixCls:h,onResize:Ye,ref:te,readOnly:I})))}),Qzt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const DHe=b.forwardRef((e,t)=>{var n,r;const{prefixCls:i,bordered:a=!0,size:o,disabled:s,status:l,allowClear:c,classNames:u,rootClassName:d,className:f,style:p,styles:h,variant:m}=e,g=Qzt(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:v,direction:y,textArea:_}=b.useContext(Sn),S=ks(o),C=b.useContext(wc),w=s??C,{status:x,hasFeedback:T,feedbackIcon:A}=b.useContext(Ol),I=SC(x,l),R=b.useRef(null);b.useImperativeHandle(t,()=>{var M;return{resizableTextArea:(M=R.current)===null||M===void 0?void 0:M.resizableTextArea,focus:B=>{var k,F;Ozt((F=(k=R.current)===null||k===void 0?void 0:k.resizableTextArea)===null||F===void 0?void 0:F.textArea,B)},blur:()=>{var B;return(B=R.current)===null||B===void 0?void 0:B.blur()}}});const N=v("input",i),P=Ja(N),[L,$,D]=qde(N,P),[z,U]=mT("textArea",m,a),H=kHe(c??_?.allowClear);return L(b.createElement(Zzt,Object.assign({autoComplete:_?.autoComplete},g,{style:Object.assign(Object.assign({},_?.style),p),styles:Object.assign(Object.assign({},_?.styles),h),disabled:w,allowClear:H,className:Oe(D,P,f,d,_?.className),classNames:Object.assign(Object.assign(Object.assign({},u),_?.classNames),{textarea:Oe({[`${N}-sm`]:S==="small",[`${N}-lg`]:S==="large"},$,u?.textarea,(n=_?.classNames)===null||n===void 0?void 0:n.textarea),variant:Oe({[`${N}-${z}`]:U},o0(N,I)),affixWrapper:Oe(`${N}-textarea-affix-wrapper`,{[`${N}-affix-wrapper-rtl`]:y==="rtl",[`${N}-affix-wrapper-sm`]:S==="small",[`${N}-affix-wrapper-lg`]:S==="large",[`${N}-textarea-show-count`]:e.showCount||((r=e.count)===null||r===void 0?void 0:r.show)},$)}),prefixCls:N,suffix:T&&b.createElement("span",{className:`${N}-textarea-suffix`},A),ref:R})))}),$r=Lz;$r.Group=Azt;$r.Search=Hzt;$r.TextArea=DHe;$r.Password=zzt;$r.OTP=$zt;const Jzt=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,eUt=e=>Jzt.test(`#${e}`),tUt=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=`${t}-hex-input`,[a,o]=b.useState(()=>n?gA(n.toHexString()):void 0);b.useEffect(()=>{n&&o(gA(n.toHexString()))},[n]);const s=l=>{const c=l.target.value;o(gA(c)),eUt(gA(c,!0))&&r?.(tu(c))};return se.createElement($r,{className:i,value:a,prefix:"#",onChange:s,size:"small"})},nUt=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=`${t}-hsb-input`,[a,o]=b.useState(tu(n||"#000"));b.useEffect(()=>{n&&o(n)},[n]);const s=(l,c)=>{const u=a.toHsb();u[c]=c==="h"?l:(l||0)/100;const d=tu(u);n||o(d),r?.(d)};return se.createElement("div",{className:i},se.createElement(sE,{max:360,min:0,value:Number(a.toHsb().h),prefixCls:t,className:i,formatter:l=>e7(l||0).toString(),onChange:l=>s(Number(l),"h")}),se.createElement(sE,{max:100,min:0,value:Number(a.toHsb().s)*100,prefixCls:t,className:i,formatter:l=>`${e7(l||0)}%`,onChange:l=>s(Number(l),"s")}),se.createElement(sE,{max:100,min:0,value:Number(a.toHsb().b)*100,prefixCls:t,className:i,formatter:l=>`${e7(l||0)}%`,onChange:l=>s(Number(l),"b")}))},rUt=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=`${t}-rgb-input`,[a,o]=b.useState(tu(n||"#000"));b.useEffect(()=>{n&&o(n)},[n]);const s=(l,c)=>{const u=a.toRgb();u[c]=l||0;const d=tu(u);n||o(d),r?.(d)};return se.createElement("div",{className:i},se.createElement(sE,{max:255,min:0,value:Number(a.toRgb().r),prefixCls:t,className:i,onChange:l=>s(Number(l),"r")}),se.createElement(sE,{max:255,min:0,value:Number(a.toRgb().g),prefixCls:t,className:i,onChange:l=>s(Number(l),"g")}),se.createElement(sE,{max:255,min:0,value:Number(a.toRgb().b),prefixCls:t,className:i,onChange:l=>s(Number(l),"b")}))},iUt=[Db.hex,Db.hsb,Db.rgb].map(e=>({value:e,label:e.toLocaleUpperCase()})),aUt=e=>{const{prefixCls:t,format:n,value:r,disabledAlpha:i,onFormatChange:a,onChange:o}=e,[s,l]=qr(Db.hex,{value:n,onChange:a}),c=`${t}-input`,u=f=>{l(f)},d=b.useMemo(()=>{const f={value:r,prefixCls:t,onChange:o};switch(s){case Db.hsb:return se.createElement(nUt,Object.assign({},f));case Db.rgb:return se.createElement(rUt,Object.assign({},f));default:return se.createElement(tUt,Object.assign({},f))}},[s,t,r,o]);return se.createElement("div",{className:`${c}-container`},se.createElement(Zi,{value:s,variant:"borderless",getPopupContainer:f=>f,popupMatchSelectWidth:68,placement:"bottomRight",onChange:u,className:`${t}-format-select`,size:"small",options:iUt}),se.createElement("div",{className:c},d),!i&&se.createElement(Izt,{prefixCls:t,value:r,onChange:o}))};function _ie(e,t,n){return(e-t)/(n-t)}function tfe(e,t,n,r){var i=_ie(t,n,r),a={};switch(e){case"rtl":a.right="".concat(i*100,"%"),a.transform="translateX(50%)";break;case"btt":a.bottom="".concat(i*100,"%"),a.transform="translateY(50%)";break;case"ttb":a.top="".concat(i*100,"%"),a.transform="translateY(-50%)";break;default:a.left="".concat(i*100,"%"),a.transform="translateX(-50%)";break}return a}function Yx(e,t){return Array.isArray(e)?e[t]:e}var xC=b.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),$He=b.createContext({}),oUt=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],wSe=b.forwardRef(function(e,t){var n=e.prefixCls,r=e.value,i=e.valueIndex,a=e.onStartMove,o=e.onDelete,s=e.style,l=e.render,c=e.dragging,u=e.draggingDelete,d=e.onOffsetChange,f=e.onChangeComplete,p=e.onFocus,h=e.onMouseEnter,m=$n(e,oUt),g=b.useContext(xC),v=g.min,y=g.max,_=g.direction,S=g.disabled,C=g.keyboard,w=g.range,x=g.tabIndex,T=g.ariaLabelForHandle,A=g.ariaLabelledByForHandle,I=g.ariaValueTextFormatterForHandle,R=g.styles,N=g.classNames,P="".concat(n,"-handle"),L=function(G){S||a(G,i)},$=function(G){p?.(G,i)},D=function(G){h(G,i)},z=function(G){if(!S&&C){var q=null;switch(G.which||G.keyCode){case Bt.LEFT:q=_==="ltr"||_==="btt"?-1:1;break;case Bt.RIGHT:q=_==="ltr"||_==="btt"?1:-1;break;case Bt.UP:q=_!=="ttb"?1:-1;break;case Bt.DOWN:q=_!=="ttb"?-1:1;break;case Bt.HOME:q="min";break;case Bt.END:q="max";break;case Bt.PAGE_UP:q=2;break;case Bt.PAGE_DOWN:q=-2;break;case Bt.BACKSPACE:case Bt.DELETE:o(i);break}q!==null&&(G.preventDefault(),d(q,i))}},U=function(G){switch(G.which||G.keyCode){case Bt.LEFT:case Bt.RIGHT:case Bt.UP:case Bt.DOWN:case Bt.HOME:case Bt.END:case Bt.PAGE_UP:case Bt.PAGE_DOWN:f?.();break}},H=tfe(_,r,v,y),M={};if(i!==null){var B;M={tabIndex:S?null:Yx(x,i),role:"slider","aria-valuemin":v,"aria-valuemax":y,"aria-valuenow":r,"aria-disabled":S,"aria-label":Yx(T,i),"aria-labelledby":Yx(A,i),"aria-valuetext":(B=Yx(I,i))===null||B===void 0?void 0:B(r),"aria-orientation":_==="ltr"||_==="rtl"?"horizontal":"vertical",onMouseDown:L,onTouchStart:L,onFocus:$,onMouseEnter:D,onKeyDown:z,onKeyUp:U}}var k=b.createElement("div",Xe({ref:t,className:Oe(P,be(be(be({},"".concat(P,"-").concat(i+1),i!==null&&w),"".concat(P,"-dragging"),c),"".concat(P,"-dragging-delete"),u),N.handle),style:we(we(we({},H),s),R.handle)},M,m));return l&&(k=l(k,{index:i,prefixCls:n,value:r,dragging:c,draggingDelete:u})),k}),sUt=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],lUt=b.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,i=e.onStartMove,a=e.onOffsetChange,o=e.values,s=e.handleRender,l=e.activeHandleRender,c=e.draggingIndex,u=e.draggingDelete,d=e.onFocus,f=$n(e,sUt),p=b.useRef({}),h=b.useState(!1),m=Fe(h,2),g=m[0],v=m[1],y=b.useState(-1),_=Fe(y,2),S=_[0],C=_[1],w=function(R){C(R),v(!0)},x=function(R,N){w(N),d?.(R)},T=function(R,N){w(N)};b.useImperativeHandle(t,function(){return{focus:function(R){var N;(N=p.current[R])===null||N===void 0||N.focus()},hideHelp:function(){Ou.flushSync(function(){v(!1)})}}});var A=we({prefixCls:n,onStartMove:i,onOffsetChange:a,render:s,onFocus:x,onMouseEnter:T},f);return b.createElement(b.Fragment,null,o.map(function(I,R){var N=c===R;return b.createElement(wSe,Xe({ref:function(L){L?p.current[R]=L:delete p.current[R]},dragging:N,draggingDelete:N&&u,style:Yx(r,R),key:R,value:I,valueIndex:R},A))}),l&&g&&b.createElement(wSe,Xe({key:"a11y"},A,{value:o[S],valueIndex:null,dragging:c!==-1,draggingDelete:u,render:l,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),cUt=function(t){var n=t.prefixCls,r=t.style,i=t.children,a=t.value,o=t.onClick,s=b.useContext(xC),l=s.min,c=s.max,u=s.direction,d=s.includedStart,f=s.includedEnd,p=s.included,h="".concat(n,"-text"),m=tfe(u,a,l,c);return b.createElement("span",{className:Oe(h,be({},"".concat(h,"-active"),p&&d<=a&&a<=f)),style:we(we({},m),r),onMouseDown:function(v){v.stopPropagation()},onClick:function(){o(a)}},i)},uUt=function(t){var n=t.prefixCls,r=t.marks,i=t.onClick,a="".concat(n,"-mark");return r.length?b.createElement("div",{className:a},r.map(function(o){var s=o.value,l=o.style,c=o.label;return b.createElement(cUt,{key:s,prefixCls:a,style:l,value:s,onClick:i},c)})):null},dUt=function(t){var n=t.prefixCls,r=t.value,i=t.style,a=t.activeStyle,o=b.useContext(xC),s=o.min,l=o.max,c=o.direction,u=o.included,d=o.includedStart,f=o.includedEnd,p="".concat(n,"-dot"),h=u&&d<=r&&r<=f,m=we(we({},tfe(c,r,s,l)),typeof i=="function"?i(r):i);return h&&(m=we(we({},m),typeof a=="function"?a(r):a)),b.createElement("span",{className:Oe(p,be({},"".concat(p,"-active"),h)),style:m})},fUt=function(t){var n=t.prefixCls,r=t.marks,i=t.dots,a=t.style,o=t.activeStyle,s=b.useContext(xC),l=s.min,c=s.max,u=s.step,d=b.useMemo(function(){var f=new Set;if(r.forEach(function(h){f.add(h.value)}),i&&u!==null)for(var p=l;p<=c;)f.add(p),p+=u;return Array.from(f)},[l,c,u,i,r]);return b.createElement("div",{className:"".concat(n,"-step")},d.map(function(f){return b.createElement(dUt,{prefixCls:n,key:f,value:f,style:a,activeStyle:o})}))},xSe=function(t){var n=t.prefixCls,r=t.style,i=t.start,a=t.end,o=t.index,s=t.onStartMove,l=t.replaceCls,c=b.useContext(xC),u=c.direction,d=c.min,f=c.max,p=c.disabled,h=c.range,m=c.classNames,g="".concat(n,"-track"),v=_ie(i,d,f),y=_ie(a,d,f),_=function(x){!p&&s&&s(x,-1)},S={};switch(u){case"rtl":S.right="".concat(v*100,"%"),S.width="".concat(y*100-v*100,"%");break;case"btt":S.bottom="".concat(v*100,"%"),S.height="".concat(y*100-v*100,"%");break;case"ttb":S.top="".concat(v*100,"%"),S.height="".concat(y*100-v*100,"%");break;default:S.left="".concat(v*100,"%"),S.width="".concat(y*100-v*100,"%")}var C=l||Oe(g,be(be({},"".concat(g,"-").concat(o+1),o!==null&&h),"".concat(n,"-track-draggable"),s),m.track);return b.createElement("div",{className:C,style:we(we({},S),r),onMouseDown:_,onTouchStart:_})},pUt=function(t){var n=t.prefixCls,r=t.style,i=t.values,a=t.startPoint,o=t.onStartMove,s=b.useContext(xC),l=s.included,c=s.range,u=s.min,d=s.styles,f=s.classNames,p=b.useMemo(function(){if(!c){if(i.length===0)return[];var m=a??u,g=i[0];return[{start:Math.min(m,g),end:Math.max(m,g)}]}for(var v=[],y=0;y<i.length-1;y+=1)v.push({start:i[y],end:i[y+1]});return v},[i,c,a,u]);if(!l)return null;var h=f.tracks||d.tracks?b.createElement(xSe,{index:null,prefixCls:n,start:p[0].start,end:p[p.length-1].end,replaceCls:Oe(f.tracks,"".concat(n,"-tracks")),style:d.tracks}):null;return b.createElement(b.Fragment,null,h,p.map(function(m,g){var v=m.start,y=m.end;return b.createElement(xSe,{index:g,prefixCls:n,style:we(we({},Yx(r,g)),d.track),start:v,end:y,key:g,onStartMove:o})}))},hUt=130;function TSe(e){var t="touches"in e?e.touches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function mUt(e,t,n,r,i,a,o,s,l,c,u){var d=b.useState(null),f=Fe(d,2),p=f[0],h=f[1],m=b.useState(-1),g=Fe(m,2),v=g[0],y=g[1],_=b.useState(!1),S=Fe(_,2),C=S[0],w=S[1],x=b.useState(n),T=Fe(x,2),A=T[0],I=T[1],R=b.useState(n),N=Fe(R,2),P=N[0],L=N[1],$=b.useRef(null),D=b.useRef(null),z=b.useContext($He),U=z.onDragStart,H=z.onDragChange;b.useLayoutEffect(function(){v===-1&&I(n)},[n,v]),b.useEffect(function(){return function(){document.removeEventListener("mousemove",$.current),document.removeEventListener("mouseup",D.current),document.removeEventListener("touchmove",$.current),document.removeEventListener("touchend",D.current)}},[]);var M=function(q,W,K){W!==void 0&&h(W),I(q);var J=q;K&&(J=q.filter(function(te,ae){return ae!==v})),o(J),H&&H({rawValues:q,deleteIndex:K?v:-1,draggingIndex:v,draggingValue:W})},B=gr(function(G,q,W){if(G===-1){var K=P[0],J=P[P.length-1],te=r-K,ae=i-J,re=q*(i-r);re=Math.max(re,te),re=Math.min(re,ae);var ue=a(K+re);re=ue-K;var de=P.map(function(Ee){return Ee+re});M(de)}else{var fe=(i-r)*q,ge=Tt(A);ge[G]=P[G];var oe=l(ge,fe,G,"dist");M(oe.values,oe.value,W)}}),k=function(q,W,K){q.stopPropagation();var J=K||n,te=J[W];y(W),h(te),L(J),I(J),w(!1);var ae=TSe(q),re=ae.pageX,ue=ae.pageY,de=!1;U&&U({rawValues:J,draggingIndex:W,draggingValue:te});var fe=function(Ee){Ee.preventDefault();var ce=TSe(Ee),he=ce.pageX,ye=ce.pageY,me=he-re,_e=ye-ue,Te=e.current.getBoundingClientRect(),xe=Te.width,De=Te.height,Pe,Le;switch(t){case"btt":Pe=-_e/De,Le=me;break;case"ttb":Pe=_e/De,Le=me;break;case"rtl":Pe=-me/xe,Le=_e;break;default:Pe=me/xe,Le=_e}de=c?Math.abs(Le)>hUt&&u<A.length:!1,w(de),B(W,Pe,de)},ge=function oe(Ee){Ee.preventDefault(),document.removeEventListener("mouseup",oe),document.removeEventListener("mousemove",fe),document.removeEventListener("touchend",oe),document.removeEventListener("touchmove",fe),$.current=null,D.current=null,s(de),y(-1),w(!1)};document.addEventListener("mouseup",ge),document.addEventListener("mousemove",fe),document.addEventListener("touchend",ge),document.addEventListener("touchmove",fe),$.current=fe,D.current=ge},F=b.useMemo(function(){var G=Tt(n).sort(function(te,ae){return te-ae}),q=Tt(A).sort(function(te,ae){return te-ae}),W={};q.forEach(function(te){W[te]=(W[te]||0)+1}),G.forEach(function(te){W[te]=(W[te]||0)-1});var K=c?1:0,J=Object.values(W).reduce(function(te,ae){return te+Math.abs(ae)},0);return J<=K?A:n},[n,A,c]);return[v,p,C,F,k]}function gUt(e,t,n,r,i,a){var o=b.useCallback(function(p){return Math.max(e,Math.min(t,p))},[e,t]),s=b.useCallback(function(p){if(n!==null){var h=e+Math.round((o(p)-e)/n)*n,m=function(_){return(String(_).split(".")[1]||"").length},g=Math.max(m(n),m(t),m(e)),v=Number(h.toFixed(g));return e<=v&&v<=t?v:null}return null},[n,e,t,o]),l=b.useCallback(function(p){var h=o(p),m=r.map(function(y){return y.value});n!==null&&m.push(s(p)),m.push(e,t);var g=m[0],v=t-e;return m.forEach(function(y){var _=Math.abs(h-y);_<=v&&(g=y,v=_)}),g},[e,t,r,n,o,s]),c=function p(h,m,g){var v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof m=="number"){var y,_=h[g],S=_+m,C=[];r.forEach(function(I){C.push(I.value)}),C.push(e,t),C.push(s(_));var w=m>0?1:-1;v==="unit"?C.push(s(_+w*n)):C.push(s(S)),C=C.filter(function(I){return I!==null}).filter(function(I){return m<0?I<=_:I>=_}),v==="unit"&&(C=C.filter(function(I){return I!==_}));var x=v==="unit"?_:S;y=C[0];var T=Math.abs(y-x);if(C.forEach(function(I){var R=Math.abs(I-x);R<T&&(y=I,T=R)}),y===void 0)return m<0?e:t;if(v==="dist")return y;if(Math.abs(m)>1){var A=Tt(h);return A[g]=y,p(A,m-w,g,v)}return y}else{if(m==="min")return e;if(m==="max")return t}},u=function(h,m,g){var v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",y=h[g],_=c(h,m,g,v);return{value:_,changed:_!==y}},d=function(h){return a===null&&h===0||typeof a=="number"&&h<a},f=function(h,m,g){var v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",y=h.map(l),_=y[g],S=c(y,m,g,v);if(y[g]=S,i===!1){var C=a||0;g>0&&y[g-1]!==_&&(y[g]=Math.max(y[g],y[g-1]+C)),g<y.length-1&&y[g+1]!==_&&(y[g]=Math.min(y[g],y[g+1]-C))}else if(typeof a=="number"||a===null){for(var w=g+1;w<y.length;w+=1)for(var x=!0;d(y[w]-y[w-1])&&x;){var T=u(y,1,w);y[w]=T.value,x=T.changed}for(var A=g;A>0;A-=1)for(var I=!0;d(y[A]-y[A-1])&&I;){var R=u(y,-1,A-1);y[A-1]=R.value,I=R.changed}for(var N=y.length-1;N>0;N-=1)for(var P=!0;d(y[N]-y[N-1])&&P;){var L=u(y,-1,N-1);y[N-1]=L.value,P=L.changed}for(var $=0;$<y.length-1;$+=1)for(var D=!0;d(y[$+1]-y[$])&&D;){var z=u(y,1,$+1);y[$+1]=z.value,D=z.changed}}return{value:y[g],values:y}};return[l,f]}function vUt(e){return b.useMemo(function(){if(e===!0||!e)return[!!e,!1,!1,0];var t=e.editable,n=e.draggableTrack,r=e.minCount,i=e.maxCount;return[!0,t,!t&&n,r||0,i]},[e])}var yUt=b.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-slider":n,i=e.className,a=e.style,o=e.classNames,s=e.styles,l=e.disabled,c=l===void 0?!1:l,u=e.keyboard,d=u===void 0?!0:u,f=e.autoFocus,p=e.onFocus,h=e.onBlur,m=e.min,g=m===void 0?0:m,v=e.max,y=v===void 0?100:v,_=e.step,S=_===void 0?1:_,C=e.value,w=e.defaultValue,x=e.range,T=e.count,A=e.onChange,I=e.onBeforeChange,R=e.onAfterChange,N=e.onChangeComplete,P=e.allowCross,L=P===void 0?!0:P,$=e.pushable,D=$===void 0?!1:$,z=e.reverse,U=e.vertical,H=e.included,M=H===void 0?!0:H,B=e.startPoint,k=e.trackStyle,F=e.handleStyle,G=e.railStyle,q=e.dotStyle,W=e.activeDotStyle,K=e.marks,J=e.dots,te=e.handleRender,ae=e.activeHandleRender,re=e.track,ue=e.tabIndex,de=ue===void 0?0:ue,fe=e.ariaLabelForHandle,ge=e.ariaLabelledByForHandle,oe=e.ariaValueTextFormatterForHandle,Ee=b.useRef(null),ce=b.useRef(null),he=b.useMemo(function(){return U?z?"ttb":"btt":z?"rtl":"ltr"},[z,U]),ye=vUt(x),me=Fe(ye,5),_e=me[0],Te=me[1],xe=me[2],De=me[3],Pe=me[4],Le=b.useMemo(function(){return isFinite(g)?g:0},[g]),ze=b.useMemo(function(){return isFinite(y)?y:100},[y]),Be=b.useMemo(function(){return S!==null&&S<=0?1:S},[S]),je=b.useMemo(function(){return typeof D=="boolean"?D?Be:!1:D>=0?D:!1},[D,Be]),Ye=b.useMemo(function(){return Object.keys(K||{}).map(function(Q){var Y=K[Q],ee={value:Number(Q)};return Y&&cn(Y)==="object"&&!b.isValidElement(Y)&&("label"in Y||"style"in Y)?(ee.style=Y.style,ee.label=Y.label):ee.label=Y,ee}).filter(function(Q){var Y=Q.label;return Y||typeof Y=="number"}).sort(function(Q,Y){return Q.value-Y.value})},[K]),Ze=gUt(Le,ze,Be,Ye,L,je),Ke=Fe(Ze,2),qe=Ke[0],nt=Ke[1],Qe=qr(w,{value:C}),it=Fe(Qe,2),yt=it[0],Wt=it[1],Mt=b.useMemo(function(){var Q=yt==null?[]:Array.isArray(yt)?yt:[yt],Y=Fe(Q,1),ee=Y[0],le=ee===void 0?Le:ee,Se=yt===null?[]:[le];if(_e){if(Se=Tt(Q),T||yt===void 0){var Ae=T>=0?T+1:2;for(Se=Se.slice(0,Ae);Se.length<Ae;){var He;Se.push((He=Se[Se.length-1])!==null&&He!==void 0?He:Le)}}Se.sort(function(at,wt){return at-wt})}return Se.forEach(function(at,wt){Se[wt]=qe(at)}),Se},[yt,_e,Le,T,qe]),tn=function(Y){return _e?Y:Y[0]},Rt=gr(function(Q){var Y=Tt(Q).sort(function(ee,le){return ee-le});A&&!Op(Y,Mt,!0)&&A(tn(Y)),Wt(Y)}),Dt=gr(function(Q){Q&&Ee.current.hideHelp();var Y=tn(Mt);R?.(Y),Ra(!R,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),N?.(Y)}),Pt=function(Y){if(!(c||!Te||Mt.length<=De)){var ee=Tt(Mt);ee.splice(Y,1),I?.(tn(ee)),Rt(ee);var le=Math.max(0,Y-1);Ee.current.hideHelp(),Ee.current.focus(le)}},Ot=mUt(ce,he,Mt,Le,ze,qe,Rt,Dt,nt,Te,De),sn=Fe(Ot,5),Jt=sn[0],Vt=sn[1],pt=sn[2],tt=sn[3],dt=sn[4],Et=function(Y,ee){if(!c){var le=Tt(Mt),Se=0,Ae=0,He=ze-Le;Mt.forEach(function(kt,Gt){var ln=Math.abs(Y-kt);ln<=He&&(He=ln,Se=Gt),kt<Y&&(Ae=Gt)});var at=Se;Te&&He!==0&&(!Pe||Mt.length<Pe)?(le.splice(Ae+1,0,Y),at=Ae+1):le[Se]=Y,_e&&!Mt.length&&T===void 0&&le.push(Y);var wt=tn(le);if(I?.(wt),Rt(le),ee){var ft,Lt;(ft=document.activeElement)===null||ft===void 0||(Lt=ft.blur)===null||Lt===void 0||Lt.call(ft),Ee.current.focus(at),dt(ee,at,le)}else R?.(wt),Ra(!R,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),N?.(wt)}},St=function(Y){Y.preventDefault();var ee=ce.current.getBoundingClientRect(),le=ee.width,Se=ee.height,Ae=ee.left,He=ee.top,at=ee.bottom,wt=ee.right,ft=Y.clientX,Lt=Y.clientY,kt;switch(he){case"btt":kt=(at-Lt)/Se;break;case"ttb":kt=(Lt-He)/Se;break;case"rtl":kt=(wt-ft)/le;break;default:kt=(ft-Ae)/le}var Gt=Le+kt*(ze-Le);Et(qe(Gt),Y)},zt=b.useState(null),nn=Fe(zt,2),wn=nn[0],kn=nn[1],fn=function(Y,ee){if(!c){var le=nt(Mt,Y,ee);I?.(tn(Mt)),Rt(le.values),kn(le.value)}};b.useEffect(function(){if(wn!==null){var Q=Mt.indexOf(wn);Q>=0&&Ee.current.focus(Q)}kn(null)},[wn]);var an=b.useMemo(function(){return xe&&Be===null?!1:xe},[xe,Be]),Ht=gr(function(Q,Y){dt(Q,Y),I?.(tn(Mt))}),mn=Jt!==-1;b.useEffect(function(){if(!mn){var Q=Mt.lastIndexOf(Vt);Ee.current.focus(Q)}},[mn]);var Tn=b.useMemo(function(){return Tt(tt).sort(function(Q,Y){return Q-Y})},[tt]),An=b.useMemo(function(){return _e?[Tn[0],Tn[Tn.length-1]]:[Le,Tn[0]]},[Tn,_e,Le]),nr=Fe(An,2),un=nr[0],et=nr[1];b.useImperativeHandle(t,function(){return{focus:function(){Ee.current.focus(0)},blur:function(){var Y,ee=document,le=ee.activeElement;(Y=ce.current)!==null&&Y!==void 0&&Y.contains(le)&&le?.blur()}}}),b.useEffect(function(){f&&Ee.current.focus(0)},[]);var Ct=b.useMemo(function(){return{min:Le,max:ze,direction:he,disabled:c,keyboard:d,step:Be,included:M,includedStart:un,includedEnd:et,range:_e,tabIndex:de,ariaLabelForHandle:fe,ariaLabelledByForHandle:ge,ariaValueTextFormatterForHandle:oe,styles:s||{},classNames:o||{}}},[Le,ze,he,c,d,Be,M,un,et,_e,de,fe,ge,oe,s,o]);return b.createElement(xC.Provider,{value:Ct},b.createElement("div",{ref:ce,className:Oe(r,i,be(be(be(be({},"".concat(r,"-disabled"),c),"".concat(r,"-vertical"),U),"".concat(r,"-horizontal"),!U),"".concat(r,"-with-marks"),Ye.length)),style:a,onMouseDown:St},b.createElement("div",{className:Oe("".concat(r,"-rail"),o?.rail),style:we(we({},G),s?.rail)}),re!==!1&&b.createElement(pUt,{prefixCls:r,style:k,values:Mt,startPoint:B,onStartMove:an?Ht:void 0}),b.createElement(fUt,{prefixCls:r,marks:Ye,dots:J,style:q,activeStyle:W}),b.createElement(lUt,{ref:Ee,prefixCls:r,style:F,values:tt,draggingIndex:Jt,draggingDelete:pt,onStartMove:Ht,onOffsetChange:fn,onFocus:p,onBlur:h,handleRender:te,activeHandleRender:ae,onChangeComplete:Dt,onDelete:Te?Pt:void 0}),b.createElement(uUt,{prefixCls:r,marks:Ye,onClick:Et})))});const ISe=b.forwardRef((e,t)=>{const{open:n,draggingDelete:r}=e,i=b.useRef(null),a=n&&!r,o=b.useRef(null);function s(){Tr.cancel(o.current),o.current=null}function l(){o.current=Tr(()=>{var c;(c=i.current)===null||c===void 0||c.forceAlign(),o.current=null})}return b.useEffect(()=>(a?l():s(),s),[a,e.title]),b.createElement(vr,Object.assign({ref:Ll(i,t)},e,{open:a}))}),bUt=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:i,marginFull:a,marginPart:o,colorFillContentHover:s,handleColorDisabled:l,calc:c,handleSize:u,handleSizeHover:d,handleActiveColor:f,handleActiveOutlineColor:p,handleLineWidth:h,handleLineWidthHover:m,motionDurationMid:g}=e;return{[t]:Object.assign(Object.assign({},Wr(e)),{position:"relative",height:r,margin:`${Ce(o)} ${Ce(a)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${Ce(a)} ${Ce(o)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${g}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${g}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:s},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${Ce(h)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:u,height:u,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:c(h).mul(-1).equal(),insetBlockStart:c(h).mul(-1).equal(),width:c(u).add(c(h).mul(2)).equal(),height:c(u).add(c(h).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:u,height:u,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${Ce(h)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:`
            inset-inline-start ${g},
            inset-block-start ${g},
            width ${g},
            height ${g},
            box-shadow ${g},
            outline ${g}
          `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:c(d).sub(u).div(2).add(m).mul(-1).equal(),insetBlockStart:c(d).sub(u).div(2).add(m).mul(-1).equal(),width:c(d).add(c(m).mul(2)).equal(),height:c(d).add(c(m).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${Ce(m)} ${f}`,outline:`6px solid ${p}`,width:d,height:d,insetInlineStart:e.calc(u).sub(d).div(2).equal(),insetBlockStart:e.calc(u).sub(d).div(2).equal()}}},[`&-lock ${t}-handle`]:{"&::before, &::after":{transition:"none"}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:i,height:i,backgroundColor:e.colorBgElevated,border:`${Ce(h)} solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[`
          ${t}-dot
        `]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:u,height:u,boxShadow:`0 0 0 ${Ce(h)} ${l}`,insetInlineStart:0,insetBlockStart:0},[`
          ${t}-mark-text,
          ${t}-dot
        `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},FHe=(e,t)=>{const{componentCls:n,railSize:r,handleSize:i,dotSize:a,marginFull:o,calc:s}=e,l=t?"paddingBlock":"paddingInline",c=t?"width":"height",u=t?"height":"width",d=t?"insetBlockStart":"insetInlineStart",f=t?"top":"insetInlineStart",p=s(r).mul(3).sub(i).div(2).equal(),h=s(i).sub(r).div(2).equal(),m=t?{borderWidth:`${Ce(h)} 0`,transform:`translateY(${Ce(s(h).mul(-1).equal())})`}:{borderWidth:`0 ${Ce(h)}`,transform:`translateX(${Ce(e.calc(h).mul(-1).equal())})`};return{[l]:r,[u]:s(r).mul(3).equal(),[`${n}-rail`]:{[c]:"100%",[u]:r},[`${n}-track,${n}-tracks`]:{[u]:r},[`${n}-track-draggable`]:Object.assign({},m),[`${n}-handle`]:{[d]:p},[`${n}-mark`]:{insetInlineStart:0,top:0,[f]:s(r).mul(3).add(t?0:o).equal(),[c]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[f]:r,[c]:"100%",[u]:r},[`${n}-dot`]:{position:"absolute",[d]:s(r).sub(a).div(2).equal()}}},_Ut=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},FHe(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},SUt=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},FHe(e,!1)),{height:"100%"})}},EUt=e=>{const n=e.controlHeightLG/4,r=e.controlHeightSM/2,i=e.lineWidth+1,a=e.lineWidth+1*1.5,o=e.colorPrimary,s=new ti(o).setAlpha(.2).toRgbString();return{controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:i,handleLineWidthHover:a,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:o,handleActiveOutlineColor:s,handleColorDisabled:new ti(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},CUt=Kr("Slider",e=>{const t=br(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[bUt(t),_Ut(t),SUt(t)]},EUt),BHe=b.createContext({});function gq(){const[e,t]=b.useState(!1),n=b.useRef(),r=()=>{Tr.cancel(n.current)},i=a=>{r(),a?t(a):n.current=Tr(()=>{t(a)})};return b.useEffect(()=>r,[]),[e,i]}var wUt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function xUt(e,t){return e||e===null?e:t||t===null?t:n=>typeof n=="number"?n.toString():""}const jHe=se.forwardRef((e,t)=>{const{prefixCls:n,range:r,className:i,rootClassName:a,style:o,disabled:s,tooltipPrefixCls:l,tipFormatter:c,tooltipVisible:u,getTooltipPopupContainer:d,tooltipPlacement:f,tooltip:p={},onChangeComplete:h}=e,m=wUt(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete"]),{vertical:g}=e,{direction:v,slider:y,getPrefixCls:_,getPopupContainer:S}=se.useContext(Sn),C=se.useContext(wc),w=s??C,{handleRender:x,direction:T}=se.useContext(BHe),I=(T||v)==="rtl",[R,N]=gq(),[P,L]=gq(),$=Object.assign({},p),{open:D,placement:z,getPopupContainer:U,prefixCls:H,formatter:M}=$,B=D??u,k=(R||P)&&B!==!1,F=xUt(M,c),[G,q]=gq(),W=Ee=>{h?.(Ee),q(!1)},K=(Ee,ce)=>Ee||(ce?I?"left":"right":"top"),J=_("slider",n),[te,ae,re]=CUt(J),ue=Oe(i,y?.className,a,{[`${J}-rtl`]:I,[`${J}-lock`]:G},ae,re);I&&!m.vertical&&(m.reverse=!m.reverse),se.useEffect(()=>{const Ee=()=>{Tr(()=>{L(!1)},1)};return document.addEventListener("mouseup",Ee),()=>{document.removeEventListener("mouseup",Ee)}},[]);const de=r&&!B,fe=x||((Ee,ce)=>{const{index:he}=ce,ye=Ee.props;function me(De,Pe,Le){var ze,Be,je,Ye;Le&&((Be=(ze=m)[De])===null||Be===void 0||Be.call(ze,Pe)),(Ye=(je=ye)[De])===null||Ye===void 0||Ye.call(je,Pe)}const _e=Object.assign(Object.assign({},ye),{onMouseEnter:De=>{N(!0),me("onMouseEnter",De)},onMouseLeave:De=>{N(!1),me("onMouseLeave",De)},onMouseDown:De=>{L(!0),q(!0),me("onMouseDown",De)},onFocus:De=>{var Pe;L(!0),(Pe=m.onFocus)===null||Pe===void 0||Pe.call(m,De),me("onFocus",De,!0)},onBlur:De=>{var Pe;L(!1),(Pe=m.onBlur)===null||Pe===void 0||Pe.call(m,De),me("onBlur",De,!0)}}),Te=se.cloneElement(Ee,_e),xe=(!!B||k)&&F!==null;return de?Te:se.createElement(ISe,Object.assign({},$,{prefixCls:_("tooltip",H??l),title:F?F(ce.value):"",open:xe,placement:K(z??f,g),key:he,overlayClassName:`${J}-tooltip`,getPopupContainer:U||d||S}),Te)}),ge=de?(Ee,ce)=>{const he=se.cloneElement(Ee,{style:Object.assign(Object.assign({},Ee.props.style),{visibility:"hidden"})});return se.createElement(ISe,Object.assign({},$,{prefixCls:_("tooltip",H??l),title:F?F(ce.value):"",open:F!==null&&k,placement:K(z??f,g),key:"tooltip",overlayClassName:`${J}-tooltip`,getPopupContainer:U||d||S,draggingDelete:ce.draggingDelete}),he)}:void 0,oe=Object.assign(Object.assign({},y?.style),o);return te(se.createElement(yUt,Object.assign({},m,{step:m.step,range:r,className:ue,style:oe,disabled:w,ref:t,prefixCls:J,handleRender:fe,activeHandleRender:ge,onChangeComplete:W})))});var TUt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const zHe=e=>{const{prefixCls:t,colors:n,type:r,color:i,range:a=!1,className:o,activeIndex:s,onActive:l,onDragStart:c,onDragChange:u,onKeyDelete:d}=e,f=TUt(e,["prefixCls","colors","type","color","range","className","activeIndex","onActive","onDragStart","onDragChange","onKeyDelete"]),p=Object.assign(Object.assign({},f),{track:!1}),h=b.useMemo(()=>`linear-gradient(90deg, ${n.map(w=>`${w.color} ${w.percent}%`).join(", ")})`,[n]),m=b.useMemo(()=>!i||!r?null:r==="alpha"?i.toRgbString():`hsl(${i.toHsb().h}, 100%, 50%)`,[i,r]),g=gr(c),v=gr(u),y=b.useMemo(()=>({onDragStart:g,onDragChange:v}),[]),_=gr((C,w)=>{const{onFocus:x,style:T,className:A,onKeyDown:I}=C.props,R=Object.assign({},T);return r==="gradient"&&(R.background=IHe(n,w.value)),b.cloneElement(C,{onFocus:N=>{l?.(w.index),x?.(N)},style:R,className:Oe(A,{[`${t}-slider-handle-active`]:s===w.index}),onKeyDown:N=>{(N.key==="Delete"||N.key==="Backspace")&&d&&d(w.index),I?.(N)}})}),S=b.useMemo(()=>({direction:"ltr",handleRender:_}),[]);return b.createElement(BHe.Provider,{value:S},b.createElement($He.Provider,{value:y},b.createElement(jHe,Object.assign({},p,{className:Oe(o,`${t}-slider`),tooltip:{open:!1},range:{editable:a,minCount:2},styles:{rail:{background:h},handle:m?{background:m}:{}},classNames:{rail:`${t}-slider-rail`,handle:`${t}-slider-handle`}}))))},IUt=e=>{const{value:t,onChange:n,onChangeComplete:r}=e,i=o=>n(o[0]),a=o=>r(o[0]);return b.createElement(zHe,Object.assign({},e,{value:[t],onChange:i,onChangeComplete:a}))};function ASe(e){return Tt(e).sort((t,n)=>t.percent-n.percent)}const AUt=e=>{const{prefixCls:t,mode:n,onChange:r,onChangeComplete:i,onActive:a,activeIndex:o,onGradientDragging:s,colors:l}=e,c=n==="gradient",u=b.useMemo(()=>l.map(v=>({percent:v.percent,color:v.color.toRgbString()})),[l]),d=b.useMemo(()=>u.map(v=>v.percent),[u]),f=b.useRef(u),p=v=>{let{rawValues:y,draggingIndex:_,draggingValue:S}=v;if(y.length>u.length){const C=IHe(u,S),w=Tt(u);w.splice(_,0,{percent:S,color:C}),f.current=w}else f.current=u;s(!0),r(new Sp(ASe(f.current)),!0)},h=v=>{let{deleteIndex:y,draggingIndex:_,draggingValue:S}=v,C=Tt(f.current);y!==-1?C.splice(y,1):(C[_]=Object.assign(Object.assign({},C[_]),{percent:S}),C=ASe(C)),r(new Sp(C),!0)},m=v=>{const y=Tt(u);y.splice(v,1);const _=new Sp(y);r(_),i(_)},g=v=>{i(new Sp(u)),o>=v.length&&a(v.length-1),s(!1)};return c?b.createElement(zHe,{min:0,max:100,prefixCls:t,className:`${t}-gradient-slider`,colors:u,color:null,value:d,range:!0,onChangeComplete:g,disabled:!1,type:"gradient",activeIndex:o,onActive:a,onDragStart:p,onDragChange:h,onKeyDelete:m}):null},RUt=b.memo(AUt);var NUt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const OUt={slider:IUt},RSe=()=>{const e=b.useContext(xHe),{mode:t,onModeChange:n,modeOptions:r,prefixCls:i,allowClear:a,value:o,disabledAlpha:s,onChange:l,onClear:c,onChangeComplete:u,activeIndex:d,gradientDragging:f}=e,p=NUt(e,["mode","onModeChange","modeOptions","prefixCls","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete","activeIndex","gradientDragging"]),h=se.useMemo(()=>o.cleared?[{percent:0,color:new Sp("")},{percent:100,color:new Sp("")}]:o.getColors(),[o]),m=!o.isGradient(),[g,v]=se.useState(o);kr(()=>{var T;m||v((T=h[d])===null||T===void 0?void 0:T.color)},[f,d]);const y=se.useMemo(()=>{var T;return m?o:f?g:(T=h[d])===null||T===void 0?void 0:T.color},[o,d,m,g,f]),_=T=>{if(t==="single")return T;const A=Tt(h);return A[d]=Object.assign(Object.assign({},A[d]),{color:T}),new Sp(A)},S=(T,A,I)=>{let N=tu(T);if(o.cleared){const P=N.toRgb();if(!P.r&&!P.g&&!P.b&&I){const{type:L,value:$=0}=I;N=new Sp({h:L==="hue"?$:0,s:1,b:1,a:L==="alpha"?$/100:1})}else N=t7(N)}l(_(N),A)},C=T=>{u(_(T))};let w=null;const x=r.length>1;return(a||x)&&(w=se.createElement("div",{className:`${i}-operation`},x&&se.createElement(nzt,{size:"small",options:r,value:t,onChange:n}),se.createElement(AHe,Object.assign({prefixCls:i,value:o,onChange:T=>{l(T),c?.()}},p)))),se.createElement(se.Fragment,null,w,se.createElement(RUt,Object.assign({},e,{colors:h})),se.createElement($jt,{prefixCls:i,value:y?.toHsb(),disabledAlpha:s,onChange:(T,A)=>{S(T,!0,A)},onChangeComplete:T=>{C(tu(T))},components:OUt}),se.createElement(aUt,Object.assign({value:y,onChange:S,prefixCls:i,disabledAlpha:s},p)))},vq=e=>e.map(t=>(t.colors=t.colors.map(tu),t)),LUt=(e,t)=>{const{r:n,g:r,b:i,a}=e.toRgb(),o=new dm(e.toRgbString()).onBackground(t).toHsv();return a<=.5?o.v>.5:n*.299+r*.587+i*.114>192},NSe=e=>{let{label:t}=e;return`panel-${t}`},PUt=e=>{let{prefixCls:t,presets:n,value:r,onChange:i}=e;const[a]=Dd("ColorPicker"),[,o]=nl(),[s]=qr(vq(n),{value:vq(n),postState:vq}),l=`${t}-presets`,c=b.useMemo(()=>s.reduce((f,p)=>{const{defaultOpen:h=!0}=p;return h&&f.push(NSe(p)),f},[]),[s]),u=f=>{i?.(f)},d=s.map(f=>{var p;return{key:NSe(f),label:se.createElement("div",{className:`${l}-label`},f?.label),children:se.createElement("div",{className:`${l}-items`},Array.isArray(f?.colors)&&((p=f.colors)===null||p===void 0?void 0:p.length)>0?f.colors.map((h,m)=>se.createElement(Xde,{key:`preset-${m}-${h.toHexString()}`,color:tu(h).toRgbString(),prefixCls:t,className:Oe(`${l}-color`,{[`${l}-color-checked`]:h.toHexString()===r?.toHexString(),[`${l}-color-bright`]:LUt(h,o.colorBgElevated)}),onClick:()=>u(h)})):se.createElement("span",{className:`${l}-empty`},a.presetEmpty))}});return se.createElement("div",{className:l},se.createElement(wm,{defaultActiveKey:c,ghost:!0,items:d}))},OSe=()=>{const{prefixCls:e,value:t,presets:n,onChange:r}=b.useContext(THe);return Array.isArray(n)?se.createElement(PUt,{value:t,presets:n,prefixCls:e,onChange:r}):null},kUt=e=>{const{prefixCls:t,presets:n,panelRender:r,value:i,onChange:a,onClear:o,allowClear:s,disabledAlpha:l,mode:c,onModeChange:u,modeOptions:d,onChangeComplete:f,activeIndex:p,onActive:h,format:m,onFormatChange:g,gradientDragging:v,onGradientDragging:y}=e,_=`${t}-inner`,S=se.useMemo(()=>({prefixCls:t,value:i,onChange:a,onClear:o,allowClear:s,disabledAlpha:l,mode:c,onModeChange:u,modeOptions:d,onChangeComplete:f,activeIndex:p,onActive:h,format:m,onFormatChange:g,gradientDragging:v,onGradientDragging:y}),[t,i,a,o,s,l,c,u,d,f,p,h,m,g,v,y]),C=se.useMemo(()=>({prefixCls:t,value:i,presets:n,onChange:a}),[t,i,n,a]),w=se.createElement("div",{className:`${_}-content`},se.createElement(RSe,null),Array.isArray(n)&&se.createElement(zi,null),se.createElement(OSe,null));return se.createElement(xHe.Provider,{value:S},se.createElement(THe.Provider,{value:C},se.createElement("div",{className:_},typeof r=="function"?r(w,{components:{Picker:RSe,Presets:OSe}}):w)))};var MUt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const DUt=b.forwardRef((e,t)=>{const{color:n,prefixCls:r,open:i,disabled:a,format:o,className:s,showText:l,activeIndex:c}=e,u=MUt(e,["color","prefixCls","open","disabled","format","className","showText","activeIndex"]),d=`${r}-trigger`,f=`${d}-text`,p=`${f}-cell`,[h]=Dd("ColorPicker"),m=se.useMemo(()=>{if(!l)return"";if(typeof l=="function")return l(n);if(n.cleared)return h.transparent;if(n.isGradient())return n.getColors().map((_,S)=>{const C=c!==-1&&c!==S;return se.createElement("span",{key:S,className:Oe(p,C&&`${p}-inactive`)},_.color.toRgbString()," ",_.percent,"%")});const v=n.toHexString().toUpperCase(),y=Zde(n);switch(o){case"rgb":return n.toRgbString();case"hsb":return n.toHsbString();default:return y<100?`${v.slice(0,7)},${y}%`:v}},[n,o,l,c]),g=b.useMemo(()=>n.cleared?se.createElement(AHe,{prefixCls:r}):se.createElement(Xde,{prefixCls:r,color:n.toCssString()}),[n,r]);return se.createElement("div",Object.assign({ref:t,className:Oe(d,s,{[`${d}-active`]:i,[`${d}-disabled`]:a})},lo(u)),g,l&&se.createElement("div",{className:f},m))});function $Ut(e,t,n){const[r]=Dd("ColorPicker"),[i,a]=qr(e,{value:t}),[o,s]=b.useState("single"),[l,c]=b.useMemo(()=>{const m=(Array.isArray(n)?n:[n]).filter(_=>_);m.length||m.push("single");const g=new Set(m),v=[],y=(_,S)=>{g.has(_)&&v.push({label:S,value:_})};return y("single",r.singleColor),y("gradient",r.gradientColor),[v,g]},[n]),[u,d]=b.useState(null),f=gr(m=>{d(m),a(m)}),p=b.useMemo(()=>{const m=tu(i||"");return m.equals(u)?u:m},[i,u]),h=b.useMemo(()=>{var m;return c.has(o)?o:(m=l[0])===null||m===void 0?void 0:m.value},[c,o,l]);return b.useEffect(()=>{s(p.isGradient()?"gradient":"single")},[p]),[p,f,h,s,l]}const UHe=(e,t)=>({backgroundImage:`conic-gradient(${t} 0 25%, transparent 0 50%, ${t} 0 75%, transparent 0)`,backgroundSize:`${e} ${e}`}),LSe=(e,t)=>{const{componentCls:n,borderRadiusSM:r,colorPickerInsetShadow:i,lineWidth:a,colorFillSecondary:o}=e;return{[`${n}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:r,width:t,height:t,boxShadow:i,flex:"none"},UHe("50%",e.colorFillSecondary)),{[`${n}-color-block-inner`]:{width:"100%",height:"100%",boxShadow:`inset 0 0 0 ${Ce(a)} ${o}`,borderRadius:"inherit"}})}},FUt=e=>{const{componentCls:t,antCls:n,fontSizeSM:r,lineHeightSM:i,colorPickerAlphaInputWidth:a,marginXXS:o,paddingXXS:s,controlHeightSM:l,marginXS:c,fontSizeIcon:u,paddingXS:d,colorTextPlaceholder:f,colorPickerInputNumberHandleWidth:p,lineWidth:h}=e;return{[`${t}-input-container`]:{display:"flex",[`${t}-steppers${n}-input-number`]:{fontSize:r,lineHeight:i,[`${n}-input-number-input`]:{paddingInlineStart:s,paddingInlineEnd:0},[`${n}-input-number-handler-wrap`]:{width:p}},[`${t}-steppers${t}-alpha-input`]:{flex:`0 0 ${Ce(a)}`,marginInlineStart:o},[`${t}-format-select${n}-select`]:{marginInlineEnd:c,width:"auto","&-single":{[`${n}-select-selector`]:{padding:0,border:0},[`${n}-select-arrow`]:{insetInlineEnd:0},[`${n}-select-selection-item`]:{paddingInlineEnd:e.calc(u).add(o).equal(),fontSize:r,lineHeight:`${Ce(l)}`},[`${n}-select-item-option-content`]:{fontSize:r,lineHeight:i},[`${n}-select-dropdown`]:{[`${n}-select-item`]:{minHeight:"auto"}}}},[`${t}-input`]:{gap:o,alignItems:"center",flex:1,width:0,[`${t}-hsb-input,${t}-rgb-input`]:{display:"flex",gap:o,alignItems:"center"},[`${t}-steppers`]:{flex:1},[`${t}-hex-input${n}-input-affix-wrapper`]:{flex:1,padding:`0 ${Ce(d)}`,[`${n}-input`]:{fontSize:r,textTransform:"uppercase",lineHeight:Ce(e.calc(l).sub(e.calc(h).mul(2)).equal())},[`${n}-input-prefix`]:{color:f}}}}}},BUt=e=>{const{componentCls:t,controlHeightLG:n,borderRadiusSM:r,colorPickerInsetShadow:i,marginSM:a,colorBgElevated:o,colorFillSecondary:s,lineWidthBold:l,colorPickerHandlerSize:c}=e;return{userSelect:"none",[`${t}-select`]:{[`${t}-palette`]:{minHeight:e.calc(n).mul(4).equal(),overflow:"hidden",borderRadius:r},[`${t}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:i,inset:0},marginBottom:a},[`${t}-handler`]:{width:c,height:c,border:`${Ce(l)} solid ${o}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${i}, 0 0 0 1px ${s}`}}},jUt=e=>{const{componentCls:t,antCls:n,colorTextQuaternary:r,paddingXXS:i,colorPickerPresetColorSize:a,fontSizeSM:o,colorText:s,lineHeightSM:l,lineWidth:c,borderRadius:u,colorFill:d,colorWhite:f,marginXXS:p,paddingXS:h,fontHeightSM:m}=e;return{[`${t}-presets`]:{[`${n}-collapse-item > ${n}-collapse-header`]:{padding:0,[`${n}-collapse-expand-icon`]:{height:m,color:r,paddingInlineEnd:i}},[`${n}-collapse`]:{display:"flex",flexDirection:"column",gap:p},[`${n}-collapse-item > ${n}-collapse-content > ${n}-collapse-content-box`]:{padding:`${Ce(h)} 0`},"&-label":{fontSize:o,color:s,lineHeight:l},"&-items":{display:"flex",flexWrap:"wrap",gap:e.calc(p).mul(1.5).equal(),[`${t}-presets-color`]:{position:"relative",cursor:"pointer",width:a,height:a,"&::before":{content:'""',pointerEvents:"none",width:e.calc(a).add(e.calc(c).mul(4)).equal(),height:e.calc(a).add(e.calc(c).mul(4)).equal(),position:"absolute",top:e.calc(c).mul(-2).equal(),insetInlineStart:e.calc(c).mul(-2).equal(),borderRadius:u,border:`${Ce(c)} solid transparent`,transition:`border-color ${e.motionDurationMid} ${e.motionEaseInBack}`},"&:hover::before":{borderColor:d},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.calc(a).div(13).mul(5).equal(),height:e.calc(a).div(13).mul(8).equal(),border:`${Ce(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`},[`&${t}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:f,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`},[`&${t}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:o,color:r}}}},zUt=e=>{const{componentCls:t,colorPickerInsetShadow:n,colorBgElevated:r,colorFillSecondary:i,lineWidthBold:a,colorPickerHandlerSizeSM:o,colorPickerSliderHeight:s,marginSM:l,marginXS:c}=e,u=e.calc(o).sub(e.calc(a).mul(2).equal()).equal(),d=e.calc(o).add(e.calc(a).mul(2).equal()).equal(),f={"&:after":{transform:"scale(1)",boxShadow:`${n}, 0 0 0 1px ${e.colorPrimaryActive}`}};return{[`${t}-slider`]:[UHe(`${Ce(s)}`,e.colorFillSecondary),{margin:0,padding:0,height:s,borderRadius:e.calc(s).div(2).equal(),"&-rail":{height:s,borderRadius:e.calc(s).div(2).equal(),boxShadow:n},[`& ${t}-slider-handle`]:{width:u,height:u,top:0,borderRadius:"100%","&:before":{display:"block",position:"absolute",background:"transparent",left:{_skip_check_:!0,value:"50%"},top:"50%",transform:"translate(-50%, -50%)",width:d,height:d,borderRadius:"100%"},"&:after":{width:o,height:o,border:`${Ce(a)} solid ${r}`,boxShadow:`${n}, 0 0 0 1px ${i}`,outline:"none",insetInlineStart:e.calc(a).mul(-1).equal(),top:e.calc(a).mul(-1).equal(),background:"transparent",transition:"none"},"&:focus":f}}],[`${t}-slider-container`]:{display:"flex",gap:l,marginBottom:l,[`${t}-slider-group`]:{flex:1,flexDirection:"column",justifyContent:"space-between",display:"flex","&-disabled-alpha":{justifyContent:"center"}}},[`${t}-gradient-slider`]:{marginBottom:c,[`& ${t}-slider-handle`]:{"&:after":{transform:"scale(0.8)"},"&-active, &:focus":f}}}},Sie=(e,t,n)=>({borderInlineEndWidth:e.lineWidth,borderColor:t,boxShadow:`0 0 0 ${Ce(e.controlOutlineWidth)} ${n}`,outline:0}),UUt=e=>{const{componentCls:t}=e;return{"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},PSe=(e,t,n)=>{const{componentCls:r,borderRadiusSM:i,lineWidth:a,colorSplit:o,colorBorder:s,red6:l}=e;return{[`${r}-clear`]:Object.assign(Object.assign({width:t,height:t,borderRadius:i,border:`${Ce(a)} solid ${o}`,position:"relative",overflow:"hidden",cursor:"inherit",transition:`all ${e.motionDurationFast}`},n),{"&::after":{content:'""',position:"absolute",insetInlineEnd:e.calc(a).mul(-1).equal(),top:e.calc(a).mul(-1).equal(),display:"block",width:40,height:2,transformOrigin:"calc(100% - 1px) 1px",transform:"rotate(-45deg)",backgroundColor:l},"&:hover":{borderColor:s}})}},HUt=e=>{const{componentCls:t,colorError:n,colorWarning:r,colorErrorHover:i,colorWarningHover:a,colorErrorOutline:o,colorWarningOutline:s}=e;return{[`&${t}-status-error`]:{borderColor:n,"&:hover":{borderColor:i},[`&${t}-trigger-active`]:Object.assign({},Sie(e,n,o))},[`&${t}-status-warning`]:{borderColor:r,"&:hover":{borderColor:a},[`&${t}-trigger-active`]:Object.assign({},Sie(e,r,s))}}},VUt=e=>{const{componentCls:t,controlHeightLG:n,controlHeightSM:r,controlHeight:i,controlHeightXS:a,borderRadius:o,borderRadiusSM:s,borderRadiusXS:l,borderRadiusLG:c,fontSizeLG:u}=e;return{[`&${t}-lg`]:{minWidth:n,minHeight:n,borderRadius:c,[`${t}-color-block, ${t}-clear`]:{width:i,height:i,borderRadius:o},[`${t}-trigger-text`]:{fontSize:u}},[`&${t}-sm`]:{minWidth:r,minHeight:r,borderRadius:s,[`${t}-color-block, ${t}-clear`]:{width:a,height:a,borderRadius:l},[`${t}-trigger-text`]:{lineHeight:Ce(a)}}}},GUt=e=>{const{antCls:t,componentCls:n,colorPickerWidth:r,colorPrimary:i,motionDurationMid:a,colorBgElevated:o,colorTextDisabled:s,colorText:l,colorBgContainerDisabled:c,borderRadius:u,marginXS:d,marginSM:f,controlHeight:p,controlHeightSM:h,colorBgTextActive:m,colorPickerPresetColorSize:g,colorPickerPreviewSize:v,lineWidth:y,colorBorder:_,paddingXXS:S,fontSize:C,colorPrimaryHover:w,controlOutline:x}=e;return[{[n]:Object.assign({[`${n}-inner`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"&-content":{display:"flex",flexDirection:"column",width:r,[`& > ${t}-divider`]:{margin:`${Ce(f)} 0 ${Ce(d)}`}},[`${n}-panel`]:Object.assign({},BUt(e))},zUt(e)),LSe(e,v)),FUt(e)),jUt(e)),PSe(e,g,{marginInlineStart:"auto"})),{[`${n}-operation`]:{display:"flex",justifyContent:"space-between",marginBottom:d}}),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:p,minHeight:p,borderRadius:u,border:`${Ce(y)} solid ${_}`,cursor:"pointer",display:"inline-flex",alignItems:"flex-start",justifyContent:"center",transition:`all ${a}`,background:o,padding:e.calc(S).sub(y).equal(),[`${n}-trigger-text`]:{marginInlineStart:d,marginInlineEnd:e.calc(d).sub(e.calc(S).sub(y)).equal(),fontSize:C,color:l,alignSelf:"center","&-cell":{"&:not(:last-child):after":{content:'", "'},"&-inactive":{color:s}}},"&:hover":{borderColor:w},[`&${n}-trigger-active`]:Object.assign({},Sie(e,i,x)),"&-disabled":{color:s,background:c,cursor:"not-allowed","&:hover":{borderColor:m},[`${n}-trigger-text`]:{color:s}}},PSe(e,h)),LSe(e,h)),HUt(e)),VUt(e))},UUt(e))}]},qUt=Kr("ColorPicker",e=>{const{colorTextQuaternary:t,marginSM:n}=e,r=8,i=br(e,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:24,colorPickerInsetShadow:`inset 0 0 1px 0 ${t}`,colorPickerSliderHeight:r,colorPickerPreviewSize:e.calc(r).mul(2).add(n).equal()});return[GUt(i)]});var WUt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const nfe=e=>{const{mode:t,value:n,defaultValue:r,format:i,defaultFormat:a,allowClear:o=!1,presets:s,children:l,trigger:c="click",open:u,disabled:d,placement:f="bottomLeft",arrow:p=!0,panelRender:h,showText:m,style:g,className:v,size:y,rootClassName:_,prefixCls:S,styles:C,disabledAlpha:w=!1,onFormatChange:x,onChange:T,onClear:A,onOpenChange:I,onChangeComplete:R,getPopupContainer:N,autoAdjustOverflow:P=!0,destroyTooltipOnHide:L}=e,$=WUt(e,["mode","value","defaultValue","format","defaultFormat","allowClear","presets","children","trigger","open","disabled","placement","arrow","panelRender","showText","style","className","size","rootClassName","prefixCls","styles","disabledAlpha","onFormatChange","onChange","onClear","onOpenChange","onChangeComplete","getPopupContainer","autoAdjustOverflow","destroyTooltipOnHide"]),{getPrefixCls:D,direction:z,colorPicker:U}=b.useContext(Sn),H=b.useContext(wc),M=d??H,[B,k]=qr(!1,{value:u,postState:Ke=>!M&&Ke,onChange:I}),[F,G]=qr(i,{value:i,defaultValue:a,onChange:x}),q=D("color-picker",S),[W,K,J,te,ae]=$Ut(r,n,t),re=b.useMemo(()=>Zde(W)<100,[W]),[ue,de]=se.useState(null),fe=Ke=>{if(R){let qe=tu(Ke);w&&re&&(qe=t7(Ke)),R(qe)}},ge=(Ke,qe)=>{let nt=tu(Ke);w&&re&&(nt=t7(nt)),K(nt),de(null),T&&T(nt,nt.toCssString()),qe||fe(nt)},[oe,Ee]=se.useState(0),[ce,he]=se.useState(!1),ye=Ke=>{if(te(Ke),Ke==="single"&&W.isGradient())Ee(0),ge(new Sp(W.getColors()[0].color)),de(W);else if(Ke==="gradient"&&!W.isGradient()){const qe=re?t7(W):W;ge(new Sp(ue||[{percent:0,color:qe},{percent:100,color:qe}]))}},{status:me}=se.useContext(Ol),_e=ks(y),Te=Ja(q),[xe,De,Pe]=qUt(q,Te),Le={[`${q}-rtl`]:z},ze=Oe(_,Pe,Te,Le),Be=Oe(o0(q,me),{[`${q}-sm`]:_e==="small",[`${q}-lg`]:_e==="large"},U?.className,ze,v,De),je=Oe(q,ze),Ye={open:B,trigger:c,placement:f,arrow:p,rootClassName:_,getPopupContainer:N,autoAdjustOverflow:P,destroyTooltipOnHide:L},Ze=Object.assign(Object.assign({},U?.style),g);return xe(se.createElement(tv,Object.assign({style:C?.popup,overlayInnerStyle:C?.popupOverlayInner,onOpenChange:Ke=>{(!Ke||!M)&&k(Ke)},content:se.createElement(lm,{form:!0},se.createElement(kUt,{mode:J,onModeChange:ye,modeOptions:ae,prefixCls:q,value:W,allowClear:o,disabled:M,disabledAlpha:w,presets:s,panelRender:h,format:F,onFormatChange:G,onChange:ge,onChangeComplete:fe,onClear:A,activeIndex:oe,onActive:Ee,gradientDragging:ce,onGradientDragging:he})),overlayClassName:je},Ye),l||se.createElement(DUt,Object.assign({activeIndex:B?oe:-1,open:B,className:Be,style:Ze,prefixCls:q,disabled:M,showText:m,format:F},$,{color:W}))))},YUt=EO(nfe,"color-picker",e=>e,e=>Object.assign(Object.assign({},e),{placement:"bottom",autoAdjustOverflow:!1}));nfe._InternalPanelDoNotUseOrYouWillBeFired=YUt;function KUt(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function XUt(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function rfe(e,t){const n={adjustX:1,adjustY:1};switch(t){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:n};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:n};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:n};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:n};default:return{points:e==="rtl"?["tr","br"]:["tl","bl"],offset:[0,4],overflow:n}}}function HHe(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:i}=Rze(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[b.useMemo(()=>n===!1?!1:Object.assign({clearIcon:r},n===!0?{}:n),[n,r]),i]}const[ZUt,QUt]=["week","WeekPicker"],[JUt,eHt]=["month","MonthPicker"],[tHt,nHt]=["year","YearPicker"],[rHt,iHt]=["quarter","QuarterPicker"],[VHe,kSe]=["time","TimePicker"],aHt=e=>b.createElement(ut,Object.assign({size:"small",type:"primary"},e));function GHe(e){return b.useMemo(()=>Object.assign({button:aHt},e),[e])}var oHt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const sHt=e=>b.forwardRef((n,r)=>{var i;const{prefixCls:a,getPopupContainer:o,components:s,className:l,style:c,placement:u,size:d,disabled:f,bordered:p=!0,placeholder:h,popupClassName:m,dropdownClassName:g,status:v,rootClassName:y,variant:_,picker:S}=n,C=oHt(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant","picker"]),w=b.useRef(null),{getPrefixCls:x,direction:T,getPopupContainer:A,rangePicker:I}=b.useContext(Sn),R=x("picker",a),{compactSize:N,compactItemClassnames:P}=x_(R,T),L=x(),[$,D]=mT("rangePicker",_,p),z=Ja(R),[U,H,M]=rHe(R,z),[B]=HHe(n,R),k=GHe(s),F=ks(fe=>{var ge;return(ge=d??N)!==null&&ge!==void 0?ge:fe}),G=b.useContext(wc),q=f??G,W=b.useContext(Ol),{hasFeedback:K,status:J,feedbackIcon:te}=W,ae=b.createElement(b.Fragment,null,S===VHe?b.createElement(Gce,null):b.createElement(lDe,null),K&&te);b.useImperativeHandle(r,()=>w.current);const[re]=Dd("Calendar",D$),ue=Object.assign(Object.assign({},re),n.locale),[de]=Em("DatePicker",(i=n.popupStyle)===null||i===void 0?void 0:i.zIndex);return U(b.createElement(lm,{space:!0},b.createElement(bFt,Object.assign({separator:b.createElement("span",{"aria-label":"to",className:`${R}-separator`},b.createElement(LEt,null)),disabled:q,ref:w,popupAlign:rfe(T,u),placement:u,placeholder:XUt(ue,S,h),suffixIcon:ae,prevIcon:b.createElement("span",{className:`${R}-prev-icon`}),nextIcon:b.createElement("span",{className:`${R}-next-icon`}),superPrevIcon:b.createElement("span",{className:`${R}-super-prev-icon`}),superNextIcon:b.createElement("span",{className:`${R}-super-next-icon`}),transitionName:`${L}-slide-up`,picker:S},C,{className:Oe({[`${R}-${F}`]:F,[`${R}-${$}`]:D},o0(R,SC(J,v),K),H,P,l,I?.className,M,z,y),style:Object.assign(Object.assign({},I?.style),c),locale:ue.lang,prefixCls:R,getPopupContainer:o||A,generateConfig:e,components:k,direction:T,classNames:{popup:Oe(H,m||g,M,z,y)},styles:{popup:Object.assign(Object.assign({},n.popupStyle),{zIndex:de})},allowClear:B}))))});var lHt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const cHt=e=>{const t=(l,c)=>{const u=c===kSe?"timePicker":"datePicker";return b.forwardRef((f,p)=>{var h;const{prefixCls:m,getPopupContainer:g,components:v,style:y,className:_,rootClassName:S,size:C,bordered:w,placement:x,placeholder:T,popupClassName:A,dropdownClassName:I,disabled:R,status:N,variant:P,onCalendarChange:L}=f,$=lHt(f,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange"]),{getPrefixCls:D,direction:z,getPopupContainer:U,[u]:H}=b.useContext(Sn),M=D("picker",m),{compactSize:B,compactItemClassnames:k}=x_(M,z),F=b.useRef(null),[G,q]=mT("datePicker",P,w),W=Ja(M),[K,J,te]=rHe(M,W);b.useImperativeHandle(p,()=>F.current);const ae={showToday:!0},re=l||f.picker,ue=D(),{onSelect:de,multiple:fe}=$,ge=de&&l==="time"&&!fe,oe=(Ye,Ze,Ke)=>{L?.(Ye,Ze,Ke),ge&&de(Ye)},[Ee,ce]=HHe(f,M),he=GHe(v),ye=ks(Ye=>{var Ze;return(Ze=C??B)!==null&&Ze!==void 0?Ze:Ye}),me=b.useContext(wc),_e=R??me,Te=b.useContext(Ol),{hasFeedback:xe,status:De,feedbackIcon:Pe}=Te,Le=b.createElement(b.Fragment,null,re==="time"?b.createElement(Gce,null):b.createElement(lDe,null),xe&&Pe),[ze]=Dd("DatePicker",D$),Be=Object.assign(Object.assign({},ze),f.locale),[je]=Em("DatePicker",(h=f.popupStyle)===null||h===void 0?void 0:h.zIndex);return K(b.createElement(lm,{space:!0},b.createElement(xFt,Object.assign({ref:F,placeholder:KUt(Be,re,T),suffixIcon:Le,dropdownAlign:rfe(z,x),placement:x,prevIcon:b.createElement("span",{className:`${M}-prev-icon`}),nextIcon:b.createElement("span",{className:`${M}-next-icon`}),superPrevIcon:b.createElement("span",{className:`${M}-super-prev-icon`}),superNextIcon:b.createElement("span",{className:`${M}-super-next-icon`}),transitionName:`${ue}-slide-up`,picker:l,onCalendarChange:oe},ae,$,{locale:Be.lang,className:Oe({[`${M}-${ye}`]:ye,[`${M}-${G}`]:q},o0(M,SC(De,N),xe),J,k,H?.className,_,te,W,S),style:Object.assign(Object.assign({},H?.style),y),prefixCls:M,getPopupContainer:g||U,generateConfig:e,components:he,direction:z,disabled:_e,classNames:{popup:Oe(J,te,W,S,A||I)},styles:{popup:Object.assign(Object.assign({},f.popupStyle),{zIndex:je})},allowClear:Ee,removeIcon:ce}))))})},n=t(),r=t(ZUt,QUt),i=t(JUt,eHt),a=t(tHt,nHt),o=t(rHt,iHt),s=t(VHe,kSe);return{DatePicker:n,WeekPicker:r,MonthPicker:i,YearPicker:a,TimePicker:s,QuarterPicker:o}},qHe=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:i,TimePicker:a,QuarterPicker:o}=cHt(e),s=sHt(e),l=t;return l.WeekPicker=n,l.MonthPicker=r,l.YearPicker=i,l.RangePicker=s,l.TimePicker=a,l.QuarterPicker=o,l},I_=qHe(R$t);function WHe(e){const t=rfe(e.direction,e.placement);return t.overflow.adjustY=!1,t.overflow.adjustX=!1,Object.assign(Object.assign({},e),{dropdownAlign:t})}const uHt=EO(I_,"picker",null,WHe);I_._InternalPanelDoNotUseOrYouWillBeFired=uHt;const dHt=EO(I_.RangePicker,"picker",null,WHe);I_._InternalRangePanelDoNotUseOrYouWillBeFired=dHt;I_.generatePicker=qHe;var MSe=b.createContext(null),YHe=b.createContext({}),fHt=["prefixCls","className","containerRef"],pHt=function(t){var n=t.prefixCls,r=t.className,i=t.containerRef,a=$n(t,fHt),o=b.useContext(YHe),s=o.panel,l=hv(s,i);return b.createElement("div",Xe({className:Oe("".concat(n,"-content"),r),role:"dialog",ref:l},lo(t,{aria:!0}),{"aria-modal":"true"},a))};function DSe(e){return typeof e=="string"&&String(Number(e))===e?(Ra(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var $Se={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function hHt(e,t){var n,r,i,a=e.prefixCls,o=e.open,s=e.placement,l=e.inline,c=e.push,u=e.forceRender,d=e.autoFocus,f=e.keyboard,p=e.classNames,h=e.rootClassName,m=e.rootStyle,g=e.zIndex,v=e.className,y=e.id,_=e.style,S=e.motion,C=e.width,w=e.height,x=e.children,T=e.mask,A=e.maskClosable,I=e.maskMotion,R=e.maskClassName,N=e.maskStyle,P=e.afterOpenChange,L=e.onClose,$=e.onMouseEnter,D=e.onMouseOver,z=e.onMouseLeave,U=e.onClick,H=e.onKeyDown,M=e.onKeyUp,B=e.styles,k=e.drawerRender,F=b.useRef(),G=b.useRef(),q=b.useRef();b.useImperativeHandle(t,function(){return F.current});var W=function(_e){var Te=_e.keyCode,xe=_e.shiftKey;switch(Te){case Bt.TAB:{if(Te===Bt.TAB){if(!xe&&document.activeElement===q.current){var De;(De=G.current)===null||De===void 0||De.focus({preventScroll:!0})}else if(xe&&document.activeElement===G.current){var Pe;(Pe=q.current)===null||Pe===void 0||Pe.focus({preventScroll:!0})}}break}case Bt.ESC:{L&&f&&(_e.stopPropagation(),L(_e));break}}};b.useEffect(function(){if(o&&d){var me;(me=F.current)===null||me===void 0||me.focus({preventScroll:!0})}},[o]);var K=b.useState(!1),J=Fe(K,2),te=J[0],ae=J[1],re=b.useContext(MSe),ue;typeof c=="boolean"?ue=c?{}:{distance:0}:ue=c||{};var de=(n=(r=(i=ue)===null||i===void 0?void 0:i.distance)!==null&&r!==void 0?r:re?.pushDistance)!==null&&n!==void 0?n:180,fe=b.useMemo(function(){return{pushDistance:de,push:function(){ae(!0)},pull:function(){ae(!1)}}},[de]);b.useEffect(function(){if(o){var me;re==null||(me=re.push)===null||me===void 0||me.call(re)}else{var _e;re==null||(_e=re.pull)===null||_e===void 0||_e.call(re)}},[o]),b.useEffect(function(){return function(){var me;re==null||(me=re.pull)===null||me===void 0||me.call(re)}},[]);var ge=T&&b.createElement(Sl,Xe({key:"mask"},I,{visible:o}),function(me,_e){var Te=me.className,xe=me.style;return b.createElement("div",{className:Oe("".concat(a,"-mask"),Te,p?.mask,R),style:we(we(we({},xe),N),B?.mask),onClick:A&&o?L:void 0,ref:_e})}),oe=typeof S=="function"?S(s):S,Ee={};if(te&&de)switch(s){case"top":Ee.transform="translateY(".concat(de,"px)");break;case"bottom":Ee.transform="translateY(".concat(-de,"px)");break;case"left":Ee.transform="translateX(".concat(de,"px)");break;default:Ee.transform="translateX(".concat(-de,"px)");break}s==="left"||s==="right"?Ee.width=DSe(C):Ee.height=DSe(w);var ce={onMouseEnter:$,onMouseOver:D,onMouseLeave:z,onClick:U,onKeyDown:H,onKeyUp:M},he=b.createElement(Sl,Xe({key:"panel"},oe,{visible:o,forceRender:u,onVisibleChanged:function(_e){P?.(_e)},removeOnLeave:!1,leavedClassName:"".concat(a,"-content-wrapper-hidden")}),function(me,_e){var Te=me.className,xe=me.style,De=b.createElement(pHt,Xe({id:y,containerRef:_e,prefixCls:a,className:Oe(v,p?.content),style:we(we({},_),B?.content)},lo(e,{aria:!0}),ce),x);return b.createElement("div",Xe({className:Oe("".concat(a,"-content-wrapper"),p?.wrapper,Te),style:we(we(we({},Ee),xe),B?.wrapper)},lo(e,{data:!0})),k?k(De):De)}),ye=we({},m);return g&&(ye.zIndex=g),b.createElement(MSe.Provider,{value:fe},b.createElement("div",{className:Oe(a,"".concat(a,"-").concat(s),h,be(be({},"".concat(a,"-open"),o),"".concat(a,"-inline"),l)),style:ye,tabIndex:-1,ref:F,onKeyDown:W},ge,b.createElement("div",{tabIndex:0,ref:G,style:$Se,"aria-hidden":"true","data-sentinel":"start"}),he,b.createElement("div",{tabIndex:0,ref:q,style:$Se,"aria-hidden":"true","data-sentinel":"end"})))}var mHt=b.forwardRef(hHt),gHt=function(t){var n=t.open,r=n===void 0?!1:n,i=t.prefixCls,a=i===void 0?"rc-drawer":i,o=t.placement,s=o===void 0?"right":o,l=t.autoFocus,c=l===void 0?!0:l,u=t.keyboard,d=u===void 0?!0:u,f=t.width,p=f===void 0?378:f,h=t.mask,m=h===void 0?!0:h,g=t.maskClosable,v=g===void 0?!0:g,y=t.getContainer,_=t.forceRender,S=t.afterOpenChange,C=t.destroyOnClose,w=t.onMouseEnter,x=t.onMouseOver,T=t.onMouseLeave,A=t.onClick,I=t.onKeyDown,R=t.onKeyUp,N=t.panelRef,P=b.useState(!1),L=Fe(P,2),$=L[0],D=L[1],z=b.useState(!1),U=Fe(z,2),H=U[0],M=U[1];kr(function(){M(!0)},[]);var B=H?r:!1,k=b.useRef(),F=b.useRef();kr(function(){B&&(F.current=document.activeElement)},[B]);var G=function(te){var ae;if(D(te),S?.(te),!te&&F.current&&!((ae=k.current)!==null&&ae!==void 0&&ae.contains(F.current))){var re;(re=F.current)===null||re===void 0||re.focus({preventScroll:!0})}},q=b.useMemo(function(){return{panel:N}},[N]);if(!_&&!$&&!B&&C)return null;var W={onMouseEnter:w,onMouseOver:x,onMouseLeave:T,onClick:A,onKeyDown:I,onKeyUp:R},K=we(we({},t),{},{open:B,prefixCls:a,placement:s,autoFocus:c,keyboard:d,width:p,mask:m,maskClosable:v,inline:y===!1,afterOpenChange:G,ref:k},W);return b.createElement(YHe.Provider,{value:q},b.createElement(_C,{open:B||_||$,autoDestroy:!1,getContainer:y,autoLock:m&&(B||$)},b.createElement(mHt,K)))};const KHe=e=>{var t,n;const{prefixCls:r,title:i,footer:a,extra:o,loading:s,onClose:l,headerStyle:c,bodyStyle:u,footerStyle:d,children:f,classNames:p,styles:h}=e,{drawer:m}=b.useContext(Sn),g=b.useCallback(C=>b.createElement("button",{type:"button",onClick:l,"aria-label":"Close",className:`${r}-close`},C),[l]),[v,y]=iz(w3(e),w3(m),{closable:!0,closeIconRender:g}),_=b.useMemo(()=>{var C,w;return!i&&!v?null:b.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(C=m?.styles)===null||C===void 0?void 0:C.header),c),h?.header),className:Oe(`${r}-header`,{[`${r}-header-close-only`]:v&&!i&&!o},(w=m?.classNames)===null||w===void 0?void 0:w.header,p?.header)},b.createElement("div",{className:`${r}-header-title`},y,i&&b.createElement("div",{className:`${r}-title`},i)),o&&b.createElement("div",{className:`${r}-extra`},o))},[v,y,o,c,r,i]),S=b.useMemo(()=>{var C,w;if(!a)return null;const x=`${r}-footer`;return b.createElement("div",{className:Oe(x,(C=m?.classNames)===null||C===void 0?void 0:C.footer,p?.footer),style:Object.assign(Object.assign(Object.assign({},(w=m?.styles)===null||w===void 0?void 0:w.footer),d),h?.footer)},a)},[a,d,r]);return b.createElement(b.Fragment,null,_,b.createElement("div",{className:Oe(`${r}-body`,p?.body,(t=m?.classNames)===null||t===void 0?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},(n=m?.styles)===null||n===void 0?void 0:n.body),u),h?.body)},s?b.createElement(Ff,{active:!0,title:!1,paragraph:{rows:5},className:`${r}-body-skeleton`}):f),S)},vHt=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},XHe=(e,t)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":t}),"&-leave":Object.assign(Object.assign({},t),{"&-active":e})}),ZHe=(e,t)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}}},XHe({opacity:e},{opacity:1})),yHt=(e,t)=>[ZHe(.7,t),XHe({transform:vHt(e)},{transform:"none"})],bHt=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:ZHe(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((r,i)=>Object.assign(Object.assign({},r),{[`&-${i}`]:yHt(i,n)}),{})}}},_Ht=e=>{const{borderRadiusSM:t,componentCls:n,zIndexPopup:r,colorBgMask:i,colorBgElevated:a,motionDurationSlow:o,motionDurationMid:s,paddingXS:l,padding:c,paddingLG:u,fontSizeLG:d,lineHeightLG:f,lineWidth:p,lineType:h,colorSplit:m,marginXS:g,colorIcon:v,colorIconHover:y,colorBgTextHover:_,colorBgTextActive:S,colorText:C,fontWeightStrong:w,footerPaddingBlock:x,footerPaddingInline:T,calc:A}=e,I=`${n}-content-wrapper`;return{[n]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none",color:C,"&-pure":{position:"relative",background:a,display:"flex",flexDirection:"column",[`&${n}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${n}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${n}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${n}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${n}-mask`]:{position:"absolute",inset:0,zIndex:r,background:i,pointerEvents:"auto"},[I]:{position:"absolute",zIndex:r,maxWidth:"100vw",transition:`all ${o}`,"&-hidden":{display:"none"}},[`&-left > ${I}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${I}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${I}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${I}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${n}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:a,pointerEvents:"auto"},[`${n}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${Ce(c)} ${Ce(u)}`,fontSize:d,lineHeight:f,borderBottom:`${Ce(p)} ${h} ${m}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${n}-extra`]:{flex:"none"},[`${n}-close`]:Object.assign({display:"inline-flex",width:A(d).add(l).equal(),height:A(d).add(l).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",marginInlineEnd:g,color:v,fontWeight:w,fontSize:d,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${s}`,textRendering:"auto","&:hover":{color:y,backgroundColor:_,textDecoration:"none"},"&:active":{backgroundColor:S}},kp(e)),[`${n}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:d,lineHeight:f},[`${n}-body`]:{flex:1,minWidth:0,minHeight:0,padding:u,overflow:"auto",[`${n}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${n}-footer`]:{flexShrink:0,padding:`${Ce(x)} ${Ce(T)}`,borderTop:`${Ce(p)} ${h} ${m}`},"&-rtl":{direction:"rtl"}}}},SHt=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding}),QHe=Kr("Drawer",e=>{const t=br(e,{});return[_Ht(t),bHt(t)]},SHt);var JHe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const EHt={distance:180},xm=e=>{const{rootClassName:t,width:n,height:r,size:i="default",mask:a=!0,push:o=EHt,open:s,afterOpenChange:l,onClose:c,prefixCls:u,getContainer:d,style:f,className:p,visible:h,afterVisibleChange:m,maskStyle:g,drawerStyle:v,contentWrapperStyle:y}=e,_=JHe(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:S,getPrefixCls:C,direction:w,drawer:x}=b.useContext(Sn),T=C("drawer",u),[A,I,R]=QHe(T),N=d===void 0&&S?()=>S(document.body):d,P=Oe({"no-mask":!a,[`${T}-rtl`]:w==="rtl"},t,I,R),L=b.useMemo(()=>n??(i==="large"?736:378),[n,i]),$=b.useMemo(()=>r??(i==="large"?736:378),[r,i]),D={motionName:Ad(T,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},z=q=>({motionName:Ad(T,`panel-motion-${q}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),U=zje(),[H,M]=Em("Drawer",_.zIndex),{classNames:B={},styles:k={}}=_,{classNames:F={},styles:G={}}=x||{};return A(b.createElement(lm,{form:!0,space:!0},b.createElement(cT.Provider,{value:M},b.createElement(gHt,Object.assign({prefixCls:T,onClose:c,maskMotion:D,motion:z},_,{classNames:{mask:Oe(B.mask,F.mask),content:Oe(B.content,F.content),wrapper:Oe(B.wrapper,F.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},k.mask),g),G.mask),content:Object.assign(Object.assign(Object.assign({},k.content),v),G.content),wrapper:Object.assign(Object.assign(Object.assign({},k.wrapper),y),G.wrapper)},open:s??h,mask:a,push:o,width:L,height:$,style:Object.assign(Object.assign({},x?.style),f),className:Oe(x?.className,p),rootClassName:P,getContainer:N,afterOpenChange:l??m,panelRef:U,zIndex:H}),b.createElement(KHe,Object.assign({prefixCls:T},_,{onClose:c}))))))},CHt=e=>{const{prefixCls:t,style:n,className:r,placement:i="right"}=e,a=JHe(e,["prefixCls","style","className","placement"]),{getPrefixCls:o}=b.useContext(Sn),s=o("drawer",t),[l,c,u]=QHe(s),d=Oe(s,`${s}-pure`,`${s}-${i}`,c,u,r);return l(b.createElement("div",{className:d,style:n},b.createElement(KHe,Object.assign({prefixCls:s},a))))};xm._InternalPanelDoNotUseOrYouWillBeFired=CHt;function FSe(e){return["small","middle","large"].includes(e)}function BSe(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const eVe=se.createContext({latestIndex:0}),wHt=eVe.Provider,xHt=e=>{let{className:t,index:n,children:r,split:i,style:a}=e;const{latestIndex:o}=b.useContext(eVe);return r==null?null:b.createElement(b.Fragment,null,b.createElement("div",{className:t,style:a},r),n<o&&i&&b.createElement("span",{className:`${t}-split`},i))};var THt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const IHt=b.forwardRef((e,t)=>{var n,r,i;const{getPrefixCls:a,space:o,direction:s}=b.useContext(Sn),{size:l=(n=o?.size)!==null&&n!==void 0?n:"small",align:c,className:u,rootClassName:d,children:f,direction:p="horizontal",prefixCls:h,split:m,style:g,wrap:v=!1,classNames:y,styles:_}=e,S=THt(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[C,w]=Array.isArray(l)?l:[l,l],x=FSe(w),T=FSe(C),A=BSe(w),I=BSe(C),R=_l(f,{keepEmpty:!0}),N=c===void 0&&p==="horizontal"?"center":c,P=a("space",h),[L,$,D]=gje(P),z=Oe(P,o?.className,$,`${P}-${p}`,{[`${P}-rtl`]:s==="rtl",[`${P}-align-${N}`]:N,[`${P}-gap-row-${w}`]:x,[`${P}-gap-col-${C}`]:T},u,d,D),U=Oe(`${P}-item`,(r=y?.item)!==null&&r!==void 0?r:(i=o?.classNames)===null||i===void 0?void 0:i.item);let H=0;const M=R.map((F,G)=>{var q,W;F!=null&&(H=G);const K=F?.key||`${U}-${G}`;return b.createElement(xHt,{className:U,key:K,index:G,split:m,style:(q=_?.item)!==null&&q!==void 0?q:(W=o?.styles)===null||W===void 0?void 0:W.item},F)}),B=b.useMemo(()=>({latestIndex:H}),[H]);if(R.length===0)return null;const k={};return v&&(k.flexWrap="wrap"),!T&&I&&(k.columnGap=C),!x&&A&&(k.rowGap=w),L(b.createElement("div",Object.assign({ref:t,className:z,style:Object.assign(Object.assign(Object.assign({},k),o?.style),g)},S),b.createElement(wHt,{value:B},M)))}),nv=IHt;nv.Compact=z8t;var AHt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const tVe=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=b.useContext(Sn),{prefixCls:i,type:a="default",danger:o,disabled:s,loading:l,onClick:c,htmlType:u,children:d,className:f,menu:p,arrow:h,autoFocus:m,overlay:g,trigger:v,align:y,open:_,onOpenChange:S,placement:C,getPopupContainer:w,href:x,icon:T=b.createElement(Wce,null),title:A,buttonsRender:I=J=>J,mouseEnterDelay:R,mouseLeaveDelay:N,overlayClassName:P,overlayStyle:L,destroyPopupOnHide:$,dropdownRender:D}=e,z=AHt(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),U=n("dropdown",i),H=`${U}-button`,M={menu:p,arrow:h,autoFocus:m,align:y,disabled:s,trigger:s?[]:v,onOpenChange:S,getPopupContainer:w||t,mouseEnterDelay:R,mouseLeaveDelay:N,overlayClassName:P,overlayStyle:L,destroyPopupOnHide:$,dropdownRender:D},{compactSize:B,compactItemClassnames:k}=x_(U,r),F=Oe(H,k,f);"overlay"in e&&(M.overlay=g),"open"in e&&(M.open=_),"placement"in e?M.placement=C:M.placement=r==="rtl"?"bottomLeft":"bottomRight";const G=b.createElement(ut,{type:a,danger:o,disabled:s,loading:l,onClick:c,htmlType:u,href:x,title:A},d),q=b.createElement(ut,{type:a,danger:o,icon:T}),[W,K]=I([G,q]);return b.createElement(nv.Compact,Object.assign({className:F,size:B,block:!0},z),W,b.createElement(AO,Object.assign({},M),K))};tVe.__ANT_BUTTON=!0;const Vo=AO;Vo.Button=tVe;function W$(e){const[t,n]=b.useState(e);return b.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const RHt=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut},
                     opacity ${e.motionDurationSlow} ${e.motionEaseInOut},
                     transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},NHt=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Ce(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n  input[type='radio']:focus,\n  input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${Ce(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),jSe=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},OHt=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},Wr(e)),NHt(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},jSe(e,e.controlHeightSM)),"&-large":Object.assign({},jSe(e,e.controlHeightLG))})}},LHt=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:i,antCls:a,labelRequiredMarkColor:o,labelColor:s,labelFontSize:l,labelHeight:c,labelColonMarginInlineStart:u,labelColonMarginInlineEnd:d,itemMarginBottom:f}=e;return{[t]:Object.assign(Object.assign({},Wr(e)),{marginBottom:f,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
        &-hidden${a}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:c,color:s,fontSize:l,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:o,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:u,marginInlineEnd:d},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${i}-col-'"]):not([class*="' ${i}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:hde,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},zSe=(e,t)=>{const{formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},PHt=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,
        > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},Uh=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),nVe=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:Uh(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},kHt=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${t}-vertical`]:{[`${n}:not(${n}-horizontal)`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label,
        ${r}-col-24${n}-label,
        ${r}-col-xl-24${n}-label`]:Uh(e)}},[`@media (max-width: ${Ce(e.screenXSMax)})`]:[nVe(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:Uh(e)}}}],[`@media (max-width: ${Ce(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:Uh(e)}}},[`@media (max-width: ${Ce(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:Uh(e)}}},[`@media (max-width: ${Ce(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:Uh(e)}}}}},MHt=e=>{const{formItemCls:t,antCls:n}=e;return{[`${t}-vertical`]:{[`${t}-row`]:{flexDirection:"column"},[`${t}-label > label`]:{height:"auto"},[`${t}-control`]:{width:"100%"}},[`${t}-vertical ${t}-label,
      ${n}-col-24${t}-label,
      ${n}-col-xl-24${t}-label`]:Uh(e),[`@media (max-width: ${Ce(e.screenXSMax)})`]:[nVe(e),{[t]:{[`${n}-col-xs-24${t}-label`]:Uh(e)}}],[`@media (max-width: ${Ce(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:Uh(e)}},[`@media (max-width: ${Ce(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:Uh(e)}},[`@media (max-width: ${Ce(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:Uh(e)}}}},DHt=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),rVe=(e,t)=>br(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),ife=Kr("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=rVe(e,n);return[OHt(r),LHt(r),RHt(r),zSe(r,r.componentCls),zSe(r,r.formItemCls),PHt(r),kHt(r),MHt(r),_O(r),hde]},DHt,{order:-1e3}),USe=[];function yq(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const iVe=e=>{let{help:t,helpStatus:n,errors:r=USe,warnings:i=USe,className:a,fieldId:o,onVisibleChanged:s}=e;const{prefixCls:l}=b.useContext(fde),c=`${l}-item-explain`,u=Ja(l),[d,f,p]=ife(l,u),h=b.useMemo(()=>C3(l),[l]),m=W$(r),g=W$(i),v=b.useMemo(()=>t!=null?[yq(t,"help",n)]:[].concat(Tt(m.map((_,S)=>yq(_,"error","error",S))),Tt(g.map((_,S)=>yq(_,"warning","warning",S)))),[t,n,m,g]),y={};return o&&(y.id=`${o}_help`),d(b.createElement(Sl,{motionDeadline:h.motionDeadline,motionName:`${l}-show-help`,visible:!!v.length,onVisibleChanged:s},_=>{const{className:S,style:C}=_;return b.createElement("div",Object.assign({},y,{className:Oe(c,S,p,u,a,f),style:C,role:"alert"}),b.createElement(Zue,Object.assign({keys:v},C3(l),{motionName:`${l}-show-help-item`,component:!1}),w=>{const{key:x,error:T,errorStatus:A,className:I,style:R}=w;return b.createElement("div",{key:x,className:Oe(I,{[`${c}-${A}`]:A}),style:R},T)}))}))},$Ht=["parentNode"],FHt="form_item";function dR(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function aVe(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:$Ht.includes(n)?`${FHt}_${n}`:n}function oVe(e,t,n,r,i,a){let o=r;return a!==void 0?o=a:n.validating?o="validating":e.length?o="error":t.length?o="warning":(n.touched||i&&n.validated)&&(o="success"),o}function HSe(e){return dR(e).join("_")}function BHt(e,t){const n=t.getFieldInstance(e),r=nBe(n);if(r)return r;const i=aVe(dR(e),t.__INTERNAL__.name);if(i)return document.getElementById(i)}function sVe(e){const[t]=dde(),n=b.useRef({}),r=b.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:i=>a=>{const o=HSe(i);a?n.current[o]=a:delete n.current[o]}},scrollToField:function(i){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const o=BHt(i,r);o&&qOt(o,Object.assign({scrollMode:"if-needed",block:"nearest"},a))},getFieldInstance:i=>{const a=HSe(i);return n.current[a]}}),[e,t]);return[r]}var jHt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const zHt=(e,t)=>{const n=b.useContext(wc),{getPrefixCls:r,direction:i,form:a}=b.useContext(Sn),{prefixCls:o,className:s,rootClassName:l,size:c,disabled:u=n,form:d,colon:f,labelAlign:p,labelWrap:h,labelCol:m,wrapperCol:g,hideRequiredMark:v,layout:y="horizontal",scrollToFirstError:_,requiredMark:S,onFinishFailed:C,name:w,style:x,feedbackIcons:T,variant:A}=e,I=jHt(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),R=ks(c),N=b.useContext(LBe),P=b.useMemo(()=>S!==void 0?S:v?!1:a&&a.requiredMark!==void 0?a.requiredMark:!0,[v,S,a]),L=f??a?.colon,$=r("form",o),D=Ja($),[z,U,H]=ife($,D),M=Oe($,`${$}-${y}`,{[`${$}-hide-required-mark`]:P===!1,[`${$}-rtl`]:i==="rtl",[`${$}-${R}`]:R},H,D,U,a?.className,s,l),[B]=sVe(d),{__INTERNAL__:k}=B;k.name=w;const F=b.useMemo(()=>({name:w,labelAlign:p,labelCol:m,labelWrap:h,wrapperCol:g,vertical:y==="vertical",colon:L,requiredMark:P,itemRef:k.itemRef,form:B,feedbackIcons:T}),[w,p,m,g,y,L,P,B,T]),G=b.useRef(null);b.useImperativeHandle(t,()=>{var K;return Object.assign(Object.assign({},B),{nativeElement:(K=G.current)===null||K===void 0?void 0:K.nativeElement})});const q=(K,J)=>{if(K){let te={block:"nearest"};typeof K=="object"&&(te=K),B.scrollToField(J,te)}},W=K=>{if(C?.(K),K.errorFields.length){const J=K.errorFields[0].name;if(_!==void 0){q(_,J);return}a&&a.scrollToFirstError!==void 0&&q(a.scrollToFirstError,J)}};return z(b.createElement(Bje.Provider,{value:A},b.createElement(Yue,{disabled:u},b.createElement(PE.Provider,{value:R},b.createElement(Fje,{validateMessages:N},b.createElement(a0.Provider,{value:F},b.createElement(dT,Object.assign({id:w},I,{name:w,onFinishFailed:W,form:B,ref:G,style:Object.assign(Object.assign({},a?.style),x),className:M}))))))))},UHt=b.forwardRef(zHt);function HHt(e){if(typeof e=="function")return e;const t=_l(e);return t.length<=1?t[0]:t}const lVe=()=>{const{status:e,errors:t=[],warnings:n=[]}=b.useContext(Ol);return{status:e,errors:t,warnings:n}};lVe.Context=Ol;function VHt(e){const[t,n]=b.useState(e),r=b.useRef(null),i=b.useRef([]),a=b.useRef(!1);b.useEffect(()=>(a.current=!1,()=>{a.current=!0,Tr.cancel(r.current),r.current=null}),[]);function o(s){a.current||(r.current===null&&(i.current=[],r.current=Tr(()=>{r.current=null,n(l=>{let c=l;return i.current.forEach(u=>{c=u(c)}),c})})),i.current.push(s))}return[t,o]}function GHt(){const{itemRef:e}=b.useContext(a0),t=b.useRef({});function n(r,i){const a=i&&typeof i=="object"&&i.ref,o=r.join("_");return(t.current.name!==o||t.current.originRef!==a)&&(t.current.name=o,t.current.originRef=a,t.current.ref=Ll(e(r),a)),t.current.ref}return n}const qHt=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},WHt=bC(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=rVe(e,n);return[qHt(r)]}),YHt=e=>{const{prefixCls:t,status:n,wrapperCol:r,children:i,errors:a,warnings:o,_internalItemRender:s,extra:l,help:c,fieldId:u,marginBottom:d,onErrorVisibleChanged:f}=e,p=`${t}-item`,h=b.useContext(a0),m=r||h.wrapperCol||{},g=Oe(`${p}-control`,m.className),v=b.useMemo(()=>Object.assign({},h),[h]);delete v.labelCol,delete v.wrapperCol;const y=b.createElement("div",{className:`${p}-control-input`},b.createElement("div",{className:`${p}-control-input-content`},i)),_=b.useMemo(()=>({prefixCls:t,status:n}),[t,n]),S=d!==null||a.length||o.length?b.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},b.createElement(fde.Provider,{value:_},b.createElement(iVe,{fieldId:u,errors:a,warnings:o,help:c,helpStatus:n,className:`${p}-explain-connected`,onVisibleChanged:f})),!!d&&b.createElement("div",{style:{width:0,height:d}})):null,C={};u&&(C.id=`${u}_extra`);const w=l?b.createElement("div",Object.assign({},C,{className:`${p}-extra`}),l):null,x=s&&s.mark==="pro_table_render"&&s.render?s.render(e,{input:y,errorList:S,extra:w}):b.createElement(b.Fragment,null,y,S,w);return b.createElement(a0.Provider,{value:v},b.createElement(Rz,Object.assign({},m,{className:g}),x),b.createElement(WHt,{prefixCls:t}))};var KHt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function XHt(e){return e?typeof e=="object"&&!b.isValidElement(e)?e:{title:e}:null}const ZHt=e=>{let{prefixCls:t,label:n,htmlFor:r,labelCol:i,labelAlign:a,colon:o,required:s,requiredMark:l,tooltip:c,vertical:u}=e;var d;const[f]=Dd("Form"),{labelAlign:p,labelCol:h,labelWrap:m,colon:g}=b.useContext(a0);if(!n)return null;const v=i||h||{},y=a||p,_=`${t}-item-label`,S=Oe(_,y==="left"&&`${_}-left`,v.className,{[`${_}-wrap`]:!!m});let C=n;const w=o===!0||g!==!1&&o!==!1;w&&!u&&typeof n=="string"&&n.trim()&&(C=n.replace(/[:|：]\s*$/,""));const T=XHt(c);if(T){const{icon:N=b.createElement(p$,null)}=T,P=KHt(T,["icon"]),L=b.createElement(vr,Object.assign({},P),b.cloneElement(N,{className:`${t}-item-tooltip`,title:"",onClick:$=>{$.preventDefault()},tabIndex:null}));C=b.createElement(b.Fragment,null,C,L)}const A=l==="optional",I=typeof l=="function";I?C=l(C,{required:!!s}):A&&!s&&(C=b.createElement(b.Fragment,null,C,b.createElement("span",{className:`${t}-item-optional`,title:""},f?.optional||((d=Id.Form)===null||d===void 0?void 0:d.optional))));const R=Oe({[`${t}-item-required`]:s,[`${t}-item-required-mark-optional`]:A||I,[`${t}-item-no-colon`]:!w});return b.createElement(Rz,Object.assign({},v,{className:S}),b.createElement("label",{htmlFor:r,className:R,title:typeof n=="string"?n:""},C))},QHt={success:pC,warning:__,error:fv,validating:Np};function cVe(e){let{children:t,errors:n,warnings:r,hasFeedback:i,validateStatus:a,prefixCls:o,meta:s,noStyle:l}=e;const c=`${o}-item`,{feedbackIcons:u}=b.useContext(a0),d=oVe(n,r,s,null,!!i,a),{isFormItemInput:f,status:p,hasFeedback:h,feedbackIcon:m}=b.useContext(Ol),g=b.useMemo(()=>{var v;let y;if(i){const S=i!==!0&&i.icons||u,C=d&&((v=S?.({status:d,errors:n,warnings:r}))===null||v===void 0?void 0:v[d]),w=d&&QHt[d];y=C!==!1&&w?b.createElement("span",{className:Oe(`${c}-feedback-icon`,`${c}-feedback-icon-${d}`)},C||b.createElement(w,null)):null}const _={status:d||"",errors:n,warnings:r,hasFeedback:!!i,feedbackIcon:y,isFormItemInput:!0};return l&&(_.status=(d??p)||"",_.isFormItemInput=f,_.hasFeedback=!!(i??h),_.feedbackIcon=i!==void 0?_.feedbackIcon:m),_},[d,i,l,f,p]);return b.createElement(Ol.Provider,{value:g},t)}var JHt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function eVt(e){const{prefixCls:t,className:n,rootClassName:r,style:i,help:a,errors:o,warnings:s,validateStatus:l,meta:c,hasFeedback:u,hidden:d,children:f,fieldId:p,required:h,isRequired:m,onSubItemMetaChange:g,layout:v}=e,y=JHt(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),_=`${t}-item`,{requiredMark:S,vertical:C}=b.useContext(a0),w=C||v==="vertical",x=b.useRef(null),T=W$(o),A=W$(s),I=a!=null,R=!!(I||o.length||s.length),N=!!x.current&&uT(x.current),[P,L]=b.useState(null);kr(()=>{if(R&&x.current){const H=getComputedStyle(x.current);L(parseInt(H.marginBottom,10))}},[R,N]);const $=H=>{H||L(null)},z=function(){let H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const M=H?T:c.errors,B=H?A:c.warnings;return oVe(M,B,c,"",!!u,l)}(),U=Oe(_,n,r,{[`${_}-with-help`]:I||T.length||A.length,[`${_}-has-feedback`]:z&&u,[`${_}-has-success`]:z==="success",[`${_}-has-warning`]:z==="warning",[`${_}-has-error`]:z==="error",[`${_}-is-validating`]:z==="validating",[`${_}-hidden`]:d,[`${_}-${v}`]:v});return b.createElement("div",{className:U,style:i,ref:x},b.createElement(Yde,Object.assign({className:`${_}-row`},Xa(y,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),b.createElement(ZHt,Object.assign({htmlFor:p},e,{requiredMark:S,required:h??m,prefixCls:t,vertical:w})),b.createElement(YHt,Object.assign({},e,c,{errors:T,warnings:A,prefixCls:t,status:z,help:a,marginBottom:P,onErrorVisibleChanged:$}),b.createElement($je.Provider,{value:g},b.createElement(cVe,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:u,validateStatus:z},f)))),!!P&&b.createElement("div",{className:`${_}-margin-offset`,style:{marginBottom:-P}}))}const tVt="__SPLIT__";function nVt(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(i=>{const a=e[i],o=t[i];return a===o||typeof a=="function"||typeof o=="function"})}const rVt=b.memo(e=>{let{children:t}=e;return t},(e,t)=>nVt(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function VSe(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function iVt(e){const{name:t,noStyle:n,className:r,dependencies:i,prefixCls:a,shouldUpdate:o,rules:s,children:l,required:c,label:u,messageVariables:d,trigger:f="onChange",validateTrigger:p,hidden:h,help:m,layout:g}=e,{getPrefixCls:v}=b.useContext(Sn),{name:y}=b.useContext(a0),_=HHt(l),S=typeof _=="function",C=b.useContext($je),{validateTrigger:w}=b.useContext(DE),x=p!==void 0?p:w,T=t!=null,A=v("form",a),I=Ja(A),[R,N,P]=ife(A,I);g0();const L=b.useContext(MN),$=b.useRef(),[D,z]=VHt({}),[U,H]=kE(()=>VSe()),M=K=>{const J=L?.getKey(K.name);if(H(K.destroy?VSe():K,!0),n&&m!==!1&&C){let te=K.name;if(K.destroy)te=$.current||te;else if(J!==void 0){const[ae,re]=J;te=[ae].concat(Tt(re)),$.current=te}C(K,te)}},B=(K,J)=>{z(te=>{const ae=Object.assign({},te),ue=[].concat(Tt(K.name.slice(0,-1)),Tt(J)).join(tVt);return K.destroy?delete ae[ue]:ae[ue]=K,ae})},[k,F]=b.useMemo(()=>{const K=Tt(U.errors),J=Tt(U.warnings);return Object.values(D).forEach(te=>{K.push.apply(K,Tt(te.errors||[])),J.push.apply(J,Tt(te.warnings||[]))}),[K,J]},[D,U.errors,U.warnings]),G=GHt();function q(K,J,te){return n&&!h?b.createElement(cVe,{prefixCls:A,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:U,errors:k,warnings:F,noStyle:!0},K):b.createElement(eVt,Object.assign({key:"row"},e,{className:Oe(r,P,I,N),prefixCls:A,fieldId:J,isRequired:te,errors:k,warnings:F,meta:U,onSubItemMetaChange:B,layout:g}),K)}if(!T&&!S&&!i)return R(q(_));let W={};return typeof u=="string"?W.label=u:t&&(W.label=String(t)),d&&(W=Object.assign(Object.assign({},W),d)),R(b.createElement(ude,Object.assign({},e,{messageVariables:W,trigger:f,validateTrigger:x,onMetaChange:M}),(K,J,te)=>{const ae=dR(t).length&&J?J.name:[],re=aVe(ae,y),ue=c!==void 0?c:!!s?.some(ge=>{if(ge&&typeof ge=="object"&&ge.required&&!ge.warningOnly)return!0;if(typeof ge=="function"){const oe=ge(te);return oe?.required&&!oe?.warningOnly}return!1}),de=Object.assign({},K);let fe=null;if(Array.isArray(_)&&T)fe=_;else if(!(S&&(!(o||i)||T))){if(!(i&&!S&&!T))if(b.isValidElement(_)){const ge=Object.assign(Object.assign({},_.props),de);if(ge.id||(ge.id=re),m||k.length>0||F.length>0||e.extra){const ce=[];(m||k.length>0)&&ce.push(`${re}_help`),e.extra&&ce.push(`${re}_extra`),ge["aria-describedby"]=ce.join(" ")}k.length>0&&(ge["aria-invalid"]="true"),ue&&(ge["aria-required"]="true"),sm(_)&&(ge.ref=G(ae,_)),new Set([].concat(Tt(dR(f)),Tt(dR(x)))).forEach(ce=>{ge[ce]=function(){for(var he,ye,me,_e,Te,xe=arguments.length,De=new Array(xe),Pe=0;Pe<xe;Pe++)De[Pe]=arguments[Pe];(me=de[ce])===null||me===void 0||(he=me).call.apply(he,[de].concat(De)),(Te=(_e=_.props)[ce])===null||Te===void 0||(ye=Te).call.apply(ye,[_e].concat(De))}});const Ee=[ge["aria-required"],ge["aria-invalid"],ge["aria-describedby"]];fe=b.createElement(rVt,{control:de,update:_,childProps:Ee},as(_,ge))}else S&&(o||i)&&!T?fe=_(te):fe=_}return q(fe,re,ue)}))}const uVe=iVt;uVe.useStatus=lVe;var aVt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const oVt=e=>{var{prefixCls:t,children:n}=e,r=aVt(e,["prefixCls","children"]);const{getPrefixCls:i}=b.useContext(Sn),a=i("form",t),o=b.useMemo(()=>({prefixCls:a,status:"error"}),[a]);return b.createElement(Pje,Object.assign({},r),(s,l,c)=>b.createElement(fde.Provider,{value:o},n(s.map(u=>Object.assign(Object.assign({},u),{fieldKey:u.key})),l,{errors:c.errors,warnings:c.warnings})))};function sVt(){const{form:e}=b.useContext(a0);return e}const Hr=UHt;Hr.Item=uVe;Hr.List=oVt;Hr.ErrorList=iVe;Hr.useForm=sVe;Hr.useFormInstance=sVt;Hr.useWatch=Dje;Hr.Provider=Fje;Hr.create=()=>{};function dVe(){var e=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:t}}function Eie(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}function Pg(e,t,n,r){var i=fN.unstable_batchedUpdates?function(o){fN.unstable_batchedUpdates(n,o)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,i,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,i,r)}}}var kO=b.createContext(null),lVt=function(t){var n=t.visible,r=t.maskTransitionName,i=t.getContainer,a=t.prefixCls,o=t.rootClassName,s=t.icons,l=t.countRender,c=t.showSwitch,u=t.showProgress,d=t.current,f=t.transform,p=t.count,h=t.scale,m=t.minScale,g=t.maxScale,v=t.closeIcon,y=t.onSwitchLeft,_=t.onSwitchRight,S=t.onClose,C=t.onZoomIn,w=t.onZoomOut,x=t.onRotateRight,T=t.onRotateLeft,A=t.onFlipX,I=t.onFlipY,R=t.onReset,N=t.toolbarRender,P=t.zIndex,L=t.image,$=b.useContext(kO),D=s.rotateLeft,z=s.rotateRight,U=s.zoomIn,H=s.zoomOut,M=s.close,B=s.left,k=s.right,F=s.flipX,G=s.flipY,q="".concat(a,"-operations-operation");b.useEffect(function(){var te=function(re){re.keyCode===Bt.ESC&&S()};return n&&window.addEventListener("keydown",te),function(){window.removeEventListener("keydown",te)}},[n]);var W=[{icon:G,onClick:I,type:"flipY"},{icon:F,onClick:A,type:"flipX"},{icon:D,onClick:T,type:"rotateLeft"},{icon:z,onClick:x,type:"rotateRight"},{icon:H,onClick:w,type:"zoomOut",disabled:h<=m},{icon:U,onClick:C,type:"zoomIn",disabled:h===g}],K=W.map(function(te){var ae,re=te.icon,ue=te.onClick,de=te.type,fe=te.disabled;return b.createElement("div",{className:Oe(q,(ae={},be(ae,"".concat(a,"-operations-operation-").concat(de),!0),be(ae,"".concat(a,"-operations-operation-disabled"),!!fe),ae)),onClick:ue,key:de},re)}),J=b.createElement("div",{className:"".concat(a,"-operations")},K);return b.createElement(Sl,{visible:n,motionName:r},function(te){var ae=te.className,re=te.style;return b.createElement(_C,{open:!0,getContainer:i??document.body},b.createElement("div",{className:Oe("".concat(a,"-operations-wrapper"),ae,o),style:we(we({},re),{},{zIndex:P})},v===null?null:b.createElement("button",{className:"".concat(a,"-close"),onClick:S},v||M),c&&b.createElement(b.Fragment,null,b.createElement("div",{className:Oe("".concat(a,"-switch-left"),be({},"".concat(a,"-switch-left-disabled"),d===0)),onClick:y},B),b.createElement("div",{className:Oe("".concat(a,"-switch-right"),be({},"".concat(a,"-switch-right-disabled"),d===p-1)),onClick:_},k)),b.createElement("div",{className:"".concat(a,"-footer")},u&&b.createElement("div",{className:"".concat(a,"-progress")},l?l(d+1,p):"".concat(d+1," / ").concat(p)),N?N(J,we(we({icons:{flipYIcon:K[0],flipXIcon:K[1],rotateLeftIcon:K[2],rotateRightIcon:K[3],zoomOutIcon:K[4],zoomInIcon:K[5]},actions:{onFlipY:I,onFlipX:A,onRotateLeft:T,onRotateRight:x,onZoomOut:w,onZoomIn:C,onReset:R,onClose:S},transform:f},$?{current:d,total:p}:{}),{},{image:L})):J)))})},pP={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function cVt(e,t,n,r){var i=b.useRef(null),a=b.useRef([]),o=b.useState(pP),s=Fe(o,2),l=s[0],c=s[1],u=function(h){c(pP),Op(pP,l)||r?.({transform:pP,action:h})},d=function(h,m){i.current===null&&(a.current=[],i.current=Tr(function(){c(function(g){var v=g;return a.current.forEach(function(y){v=we(we({},v),y)}),i.current=null,r?.({transform:v,action:m}),v})})),a.current.push(we(we({},l),h))},f=function(h,m,g,v,y){var _=e.current,S=_.width,C=_.height,w=_.offsetWidth,x=_.offsetHeight,T=_.offsetLeft,A=_.offsetTop,I=h,R=l.scale*h;R>n?(R=n,I=n/l.scale):R<t&&(R=y?R:t,I=R/l.scale);var N=g??innerWidth/2,P=v??innerHeight/2,L=I-1,$=L*S*.5,D=L*C*.5,z=L*(N-l.x-T),U=L*(P-l.y-A),H=l.x-(z-$),M=l.y-(U-D);if(h<1&&R===1){var B=w*R,k=x*R,F=dVe(),G=F.width,q=F.height;B<=G&&k<=q&&(H=0,M=0)}d({x:H,y:M,scale:R},m)};return{transform:l,resetTransform:u,updateTransform:d,dispatchZoomChange:f}}function GSe(e,t,n,r){var i=t+n,a=(n-r)/2;if(n>r){if(t>0)return be({},e,a);if(t<0&&i<r)return be({},e,-a)}else if(t<0||i>r)return be({},e,t<0?a:-a);return{}}function fVe(e,t,n,r){var i=dVe(),a=i.width,o=i.height,s=null;return e<=a&&t<=o?s={x:0,y:0}:(e>a||t>o)&&(s=we(we({},GSe("x",n,e,a)),GSe("y",r,t,o))),s}var Kx=1,uVt=1;function dVt(e,t,n,r,i,a,o){var s=i.rotate,l=i.scale,c=i.x,u=i.y,d=b.useState(!1),f=Fe(d,2),p=f[0],h=f[1],m=b.useRef({diffX:0,diffY:0,transformX:0,transformY:0}),g=function(C){!t||C.button!==0||(C.preventDefault(),C.stopPropagation(),m.current={diffX:C.pageX-c,diffY:C.pageY-u,transformX:c,transformY:u},h(!0))},v=function(C){n&&p&&a({x:C.pageX-m.current.diffX,y:C.pageY-m.current.diffY},"move")},y=function(){if(n&&p){h(!1);var C=m.current,w=C.transformX,x=C.transformY,T=c!==w&&u!==x;if(!T)return;var A=e.current.offsetWidth*l,I=e.current.offsetHeight*l,R=e.current.getBoundingClientRect(),N=R.left,P=R.top,L=s%180!==0,$=fVe(L?I:A,L?A:I,N,P);$&&a(we({},$),"dragRebound")}},_=function(C){if(!(!n||C.deltaY==0)){var w=Math.abs(C.deltaY/100),x=Math.min(w,uVt),T=Kx+x*r;C.deltaY>0&&(T=Kx/T),o(T,"wheel",C.clientX,C.clientY)}};return b.useEffect(function(){var S,C,w,x;if(t){w=Pg(window,"mouseup",y,!1),x=Pg(window,"mousemove",v,!1);try{window.top!==window.self&&(S=Pg(window.top,"mouseup",y,!1),C=Pg(window.top,"mousemove",v,!1))}catch{}}return function(){var T,A,I,R;(T=w)===null||T===void 0||T.remove(),(A=x)===null||A===void 0||A.remove(),(I=S)===null||I===void 0||I.remove(),(R=C)===null||R===void 0||R.remove()}},[n,p,c,u,s,t]),{isMoving:p,onMouseDown:g,onMouseMove:v,onMouseUp:y,onWheel:_}}function fVt(e){return new Promise(function(t){var n=document.createElement("img");n.onerror=function(){return t(!1)},n.onload=function(){return t(!0)},n.src=e})}function pVe(e){var t=e.src,n=e.isCustomPlaceholder,r=e.fallback,i=b.useState(n?"loading":"normal"),a=Fe(i,2),o=a[0],s=a[1],l=b.useRef(!1),c=o==="error";b.useEffect(function(){var p=!0;return fVt(t).then(function(h){!h&&p&&s("error")}),function(){p=!1}},[t]),b.useEffect(function(){n&&!l.current?s("loading"):c&&s("normal")},[t]);var u=function(){s("normal")},d=function(h){l.current=!1,o==="loading"&&h!==null&&h!==void 0&&h.complete&&(h.naturalWidth||h.naturalHeight)&&(l.current=!0,u())},f=c&&r?{src:r}:{onLoad:u,src:t};return[d,f,o]}function Y$(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.hypot(n,r)}function pVt(e,t,n,r){var i=Y$(e,n),a=Y$(t,r);if(i===0&&a===0)return[e.x,e.y];var o=i/(i+a),s=e.x+o*(t.x-e.x),l=e.y+o*(t.y-e.y);return[s,l]}function hVt(e,t,n,r,i,a,o){var s=i.rotate,l=i.scale,c=i.x,u=i.y,d=b.useState(!1),f=Fe(d,2),p=f[0],h=f[1],m=b.useRef({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),g=function(C){m.current=we(we({},m.current),C)},v=function(C){if(t){C.stopPropagation(),h(!0);var w=C.touches,x=w===void 0?[]:w;x.length>1?g({point1:{x:x[0].clientX,y:x[0].clientY},point2:{x:x[1].clientX,y:x[1].clientY},eventType:"touchZoom"}):g({point1:{x:x[0].clientX-c,y:x[0].clientY-u},eventType:"move"})}},y=function(C){var w=C.touches,x=w===void 0?[]:w,T=m.current,A=T.point1,I=T.point2,R=T.eventType;if(x.length>1&&R==="touchZoom"){var N={x:x[0].clientX,y:x[0].clientY},P={x:x[1].clientX,y:x[1].clientY},L=pVt(A,I,N,P),$=Fe(L,2),D=$[0],z=$[1],U=Y$(N,P)/Y$(A,I);o(U,"touchZoom",D,z,!0),g({point1:N,point2:P,eventType:"touchZoom"})}else R==="move"&&(a({x:x[0].clientX-A.x,y:x[0].clientY-A.y},"move"),g({eventType:"move"}))},_=function(){if(n){if(p&&h(!1),g({eventType:"none"}),r>l)return a({x:0,y:0,scale:r},"touchZoom");var C=e.current.offsetWidth*l,w=e.current.offsetHeight*l,x=e.current.getBoundingClientRect(),T=x.left,A=x.top,I=s%180!==0,R=fVe(I?w:C,I?C:w,T,A);R&&a(we({},R),"dragRebound")}};return b.useEffect(function(){var S;return n&&t&&(S=Pg(window,"touchmove",function(C){return C.preventDefault()},{passive:!1})),function(){var C;(C=S)===null||C===void 0||C.remove()}},[n,t]),{isTouching:p,onTouchStart:v,onTouchMove:y,onTouchEnd:_}}var mVt=["fallback","src","imgRef"],gVt=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],vVt=function(t){var n=t.fallback,r=t.src,i=t.imgRef,a=$n(t,mVt),o=pVe({src:r,fallback:n}),s=Fe(o,2),l=s[0],c=s[1];return se.createElement("img",Xe({ref:function(d){i.current=d,l(d)}},a,c))},hVe=function(t){var n=t.prefixCls,r=t.src,i=t.alt,a=t.imageInfo,o=t.fallback,s=t.movable,l=s===void 0?!0:s,c=t.onClose,u=t.visible,d=t.icons,f=d===void 0?{}:d,p=t.rootClassName,h=t.closeIcon,m=t.getContainer,g=t.current,v=g===void 0?0:g,y=t.count,_=y===void 0?1:y,S=t.countRender,C=t.scaleStep,w=C===void 0?.5:C,x=t.minScale,T=x===void 0?1:x,A=t.maxScale,I=A===void 0?50:A,R=t.transitionName,N=R===void 0?"zoom":R,P=t.maskTransitionName,L=P===void 0?"fade":P,$=t.imageRender,D=t.imgCommonProps,z=t.toolbarRender,U=t.onTransform,H=t.onChange,M=$n(t,gVt),B=b.useRef(),k=b.useContext(kO),F=k&&_>1,G=k&&_>=1,q=b.useState(!0),W=Fe(q,2),K=W[0],J=W[1],te=cVt(B,T,I,U),ae=te.transform,re=te.resetTransform,ue=te.updateTransform,de=te.dispatchZoomChange,fe=dVt(B,l,u,w,ae,ue,de),ge=fe.isMoving,oe=fe.onMouseDown,Ee=fe.onWheel,ce=hVt(B,l,u,T,ae,ue,de),he=ce.isTouching,ye=ce.onTouchStart,me=ce.onTouchMove,_e=ce.onTouchEnd,Te=ae.rotate,xe=ae.scale,De=Oe(be({},"".concat(n,"-moving"),ge));b.useEffect(function(){K||J(!0)},[K]);var Pe=function(){re("close")},Le=function(){de(Kx+w,"zoomIn")},ze=function(){de(Kx/(Kx+w),"zoomOut")},Be=function(){ue({rotate:Te+90},"rotateRight")},je=function(){ue({rotate:Te-90},"rotateLeft")},Ye=function(){ue({flipX:!ae.flipX},"flipX")},Ze=function(){ue({flipY:!ae.flipY},"flipY")},Ke=function(){re("reset")},qe=function(tn){tn?.preventDefault(),tn?.stopPropagation(),v>0&&(J(!1),re("prev"),H?.(v-1,v))},nt=function(tn){tn?.preventDefault(),tn?.stopPropagation(),v<_-1&&(J(!1),re("next"),H?.(v+1,v))},Qe=function(tn){!u||!F||(tn.keyCode===Bt.LEFT?qe():tn.keyCode===Bt.RIGHT&&nt())},it=function(tn){u&&(xe!==1?ue({x:0,y:0,scale:1},"doubleClick"):de(Kx+w,"doubleClick",tn.clientX,tn.clientY))};b.useEffect(function(){var Mt=Pg(window,"keydown",Qe,!1);return function(){Mt.remove()}},[u,F,v]);var yt=se.createElement(vVt,Xe({},D,{width:t.width,height:t.height,imgRef:B,className:"".concat(n,"-img"),alt:i,style:{transform:"translate3d(".concat(ae.x,"px, ").concat(ae.y,"px, 0) scale3d(").concat(ae.flipX?"-":"").concat(xe,", ").concat(ae.flipY?"-":"").concat(xe,", 1) rotate(").concat(Te,"deg)"),transitionDuration:(!K||he)&&"0s"},fallback:o,src:r,onWheel:Ee,onMouseDown:oe,onDoubleClick:it,onTouchStart:ye,onTouchMove:me,onTouchEnd:_e,onTouchCancel:_e})),Wt=we({url:r,alt:i},a);return se.createElement(se.Fragment,null,se.createElement(lde,Xe({transitionName:N,maskTransitionName:L,closable:!1,keyboard:!0,prefixCls:n,onClose:c,visible:u,classNames:{wrapper:De},rootClassName:p,getContainer:m},M,{afterClose:Pe}),se.createElement("div",{className:"".concat(n,"-img-wrapper")},$?$(yt,we({transform:ae,image:Wt},k?{current:v}:{})):yt)),se.createElement(lVt,{visible:u,transform:ae,maskTransitionName:L,closeIcon:h,getContainer:m,prefixCls:n,rootClassName:p,icons:f,countRender:S,showSwitch:F,showProgress:G,current:v,count:_,scale:xe,minScale:T,maxScale:I,toolbarRender:z,onSwitchLeft:qe,onSwitchRight:nt,onZoomIn:Le,onZoomOut:ze,onRotateRight:Be,onRotateLeft:je,onFlipX:Ye,onFlipY:Ze,onClose:c,onReset:Ke,zIndex:M.zIndex!==void 0?M.zIndex+1:void 0,image:Wt}))},Cie=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function yVt(e){var t=b.useState({}),n=Fe(t,2),r=n[0],i=n[1],a=b.useCallback(function(s,l){return i(function(c){return we(we({},c),{},be({},s,l))}),function(){i(function(c){var u=we({},c);return delete u[s],u})}},[]),o=b.useMemo(function(){return e?e.map(function(s){if(typeof s=="string")return{data:{src:s}};var l={};return Object.keys(s).forEach(function(c){["src"].concat(Tt(Cie)).includes(c)&&(l[c]=s[c])}),{data:l}}):Object.keys(r).reduce(function(s,l){var c=r[l],u=c.canPreview,d=c.data;return u&&s.push({data:d,id:l}),s},[])},[e,r]);return[o,a,!!e]}var bVt=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],_Vt=["src"],SVt=function(t){var n,r=t.previewPrefixCls,i=r===void 0?"rc-image-preview":r,a=t.children,o=t.icons,s=o===void 0?{}:o,l=t.items,c=t.preview,u=t.fallback,d=cn(c)==="object"?c:{},f=d.visible,p=d.onVisibleChange,h=d.getContainer,m=d.current,g=d.movable,v=d.minScale,y=d.maxScale,_=d.countRender,S=d.closeIcon,C=d.onChange,w=d.onTransform,x=d.toolbarRender,T=d.imageRender,A=$n(d,bVt),I=yVt(l),R=Fe(I,3),N=R[0],P=R[1],L=R[2],$=qr(0,{value:m}),D=Fe($,2),z=D[0],U=D[1],H=b.useState(!1),M=Fe(H,2),B=M[0],k=M[1],F=((n=N[z])===null||n===void 0?void 0:n.data)||{},G=F.src,q=$n(F,_Vt),W=qr(!!f,{value:f,onChange:function(he,ye){p?.(he,ye,z)}}),K=Fe(W,2),J=K[0],te=K[1],ae=b.useState(null),re=Fe(ae,2),ue=re[0],de=re[1],fe=b.useCallback(function(ce,he,ye,me){var _e=L?N.findIndex(function(Te){return Te.data.src===he}):N.findIndex(function(Te){return Te.id===ce});U(_e<0?0:_e),te(!0),de({x:ye,y:me}),k(!0)},[N,L]);b.useEffect(function(){J?B||U(0):k(!1)},[J]);var ge=function(he,ye){U(he),C?.(he,ye)},oe=function(){te(!1),de(null)},Ee=b.useMemo(function(){return{register:P,onPreview:fe}},[P,fe]);return b.createElement(kO.Provider,{value:Ee},a,b.createElement(hVe,Xe({"aria-hidden":!J,movable:g,visible:J,prefixCls:i,closeIcon:S,onClose:oe,mousePosition:ue,imgCommonProps:q,src:G,fallback:u,icons:s,minScale:v,maxScale:y,getContainer:h,current:z,count:N.length,countRender:_,onTransform:w,toolbarRender:x,imageRender:T,onChange:ge},A)))},qSe=0;function EVt(e,t){var n=b.useState(function(){return qSe+=1,String(qSe)}),r=Fe(n,1),i=r[0],a=b.useContext(kO),o={data:t,canPreview:e};return b.useEffect(function(){if(a)return a.register(i,o)},[]),b.useEffect(function(){a&&a.register(i,o)},[e,t]),i}var CVt=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],wVt=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],afe=function(t){var n=t.src,r=t.alt,i=t.onPreviewClose,a=t.prefixCls,o=a===void 0?"rc-image":a,s=t.previewPrefixCls,l=s===void 0?"".concat(o,"-preview"):s,c=t.placeholder,u=t.fallback,d=t.width,f=t.height,p=t.style,h=t.preview,m=h===void 0?!0:h,g=t.className,v=t.onClick,y=t.onError,_=t.wrapperClassName,S=t.wrapperStyle,C=t.rootClassName,w=$n(t,CVt),x=c&&c!==!0,T=cn(m)==="object"?m:{},A=T.src,I=T.visible,R=I===void 0?void 0:I,N=T.onVisibleChange,P=N===void 0?i:N,L=T.getContainer,$=L===void 0?void 0:L,D=T.mask,z=T.maskClassName,U=T.movable,H=T.icons,M=T.scaleStep,B=T.minScale,k=T.maxScale,F=T.imageRender,G=T.toolbarRender,q=$n(T,wVt),W=A??n,K=qr(!!R,{value:R,onChange:P}),J=Fe(K,2),te=J[0],ae=J[1],re=pVe({src:n,isCustomPlaceholder:x,fallback:u}),ue=Fe(re,3),de=ue[0],fe=ue[1],ge=ue[2],oe=b.useState(null),Ee=Fe(oe,2),ce=Ee[0],he=Ee[1],ye=b.useContext(kO),me=!!m,_e=function(){ae(!1),he(null)},Te=Oe(o,_,C,be({},"".concat(o,"-error"),ge==="error")),xe=b.useMemo(function(){var ze={};return Cie.forEach(function(Be){t[Be]!==void 0&&(ze[Be]=t[Be])}),ze},Cie.map(function(ze){return t[ze]})),De=b.useMemo(function(){return we(we({},xe),{},{src:W})},[W,xe]),Pe=EVt(me,De),Le=function(Be){var je=Eie(Be.target),Ye=je.left,Ze=je.top;ye?ye.onPreview(Pe,W,Ye,Ze):(he({x:Ye,y:Ze}),ae(!0)),v?.(Be)};return b.createElement(b.Fragment,null,b.createElement("div",Xe({},w,{className:Te,onClick:me?Le:v,style:we({width:d,height:f},S)}),b.createElement("img",Xe({},xe,{className:Oe("".concat(o,"-img"),be({},"".concat(o,"-img-placeholder"),c===!0),g),style:we({height:f},p),ref:de},fe,{width:d,height:f,onError:y})),ge==="loading"&&b.createElement("div",{"aria-hidden":"true",className:"".concat(o,"-placeholder")},c),D&&me&&b.createElement("div",{className:Oe("".concat(o,"-mask"),z),style:{display:p?.display==="none"?"none":void 0}},D)),!ye&&me&&b.createElement(hVe,Xe({"aria-hidden":!te,visible:te,prefixCls:l,onClose:_e,mousePosition:ce,src:W,alt:r,imageInfo:{width:d,height:f},fallback:u,getContainer:$,icons:H,movable:U,scaleStep:M,minScale:B,maxScale:k,rootClassName:C,imageRender:F,imgCommonProps:xe,toolbarRender:G},q)))};afe.PreviewGroup=SVt;const wie=e=>({position:e||"absolute",inset:0}),xVt=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:i,prefixCls:a,colorTextLightSolid:o}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:o,background:new ti("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${a}-mask-info`]:Object.assign(Object.assign({},Pp),{padding:`0 ${Ce(r)}`,[t]:{marginInlineEnd:i,svg:{verticalAlign:"baseline"}}})}},TVt=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:r,marginXL:i,margin:a,paddingLG:o,previewOperationColorDisabled:s,previewOperationHoverColor:l,motionDurationSlow:c,iconCls:u,colorTextLightSolid:d}=e,f=new ti(n).setAlpha(.1),p=f.clone().setAlpha(.2);return{[`${t}-footer`]:{position:"fixed",bottom:i,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor,transform:"translateX(-50%)"},[`${t}-progress`]:{marginBottom:a},[`${t}-close`]:{position:"fixed",top:i,right:{_skip_check_:!0,value:i},display:"flex",color:d,backgroundColor:f.toRgbString(),borderRadius:"50%",padding:r,outline:0,border:0,cursor:"pointer",transition:`all ${c}`,"&:hover":{backgroundColor:p.toRgbString()},[`& > ${u}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${Ce(o)}`,backgroundColor:f.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${c}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${u}`]:{color:l},"&-disabled":{color:s,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${u}`]:{fontSize:e.previewOperationSize}}}}},IVt=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:i,zIndexPopup:a,motionDurationSlow:o}=e,s=new ti(t).setAlpha(.1),l=s.clone().setAlpha(.2);return{[`${i}-switch-left, ${i}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(a).add(1).equal(),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:s.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${o}`,userSelect:"none","&:hover":{background:l.toRgbString()},"&-disabled":{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${i}-switch-left`]:{insetInlineStart:e.marginSM},[`${i}-switch-right`]:{insetInlineEnd:e.marginSM}}},AVt=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:i}=e;return[{[`${i}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},wie()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},wie()),{transition:`transform ${r} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${i}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${i}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal()},"&":[TVt(e),IVt(e)]}]},RVt=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:Object.assign({},xVt(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},wie())}}},NVt=e=>{const{previewCls:t}=e;return{[`${t}-root`]:pT(e,"zoom"),"&":pde(e,!0)}},OVt=e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new ti(e.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new ti(e.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new ti(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5}),mVe=Kr("Image",e=>{const t=`${e.componentCls}-preview`,n=br(e,{previewCls:t,modalMaskBg:new ti("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[RVt(n),AVt(n),Vje(br(n,{componentCls:t})),NVt(n)]},OVt);var LVt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const gVe={rotateLeft:b.createElement(mEt,null),rotateRight:b.createElement(yEt,null),zoomIn:b.createElement(sCt,null),zoomOut:b.createElement(uCt,null),close:b.createElement(Ic,null),left:b.createElement(AE,null),right:b.createElement(Zb,null),flipX:b.createElement(qne,null),flipY:b.createElement(qne,{rotate:90})},PVt=e=>{var{previewPrefixCls:t,preview:n}=e,r=LVt(e,["previewPrefixCls","preview"]);const{getPrefixCls:i}=b.useContext(Sn),a=i("image",t),o=`${a}-preview`,s=i(),l=Ja(a),[c,u,d]=mVe(a,l),[f]=Em("ImagePreview",typeof n=="object"?n.zIndex:void 0),p=b.useMemo(()=>{var h;if(n===!1)return n;const m=typeof n=="object"?n:{},g=Oe(u,d,l,(h=m.rootClassName)!==null&&h!==void 0?h:"");return Object.assign(Object.assign({},m),{transitionName:Ad(s,"zoom",m.transitionName),maskTransitionName:Ad(s,"fade",m.maskTransitionName),rootClassName:g,zIndex:f})},[n]);return c(b.createElement(afe.PreviewGroup,Object.assign({preview:p,previewPrefixCls:o,icons:gVe},r)))};var WSe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const ofe=e=>{var t;const{prefixCls:n,preview:r,className:i,rootClassName:a,style:o}=e,s=WSe(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:l,locale:c=Id,getPopupContainer:u,image:d}=b.useContext(Sn),f=l("image",n),p=l(),h=c.Image||Id.Image,m=Ja(f),[g,v,y]=mVe(f,m),_=Oe(a,v,y,m),S=Oe(i,v,d?.className),[C]=Em("ImagePreview",typeof r=="object"?r.zIndex:void 0),w=b.useMemo(()=>{var T;if(r===!1)return r;const A=typeof r=="object"?r:{},{getContainer:I,closeIcon:R}=A,N=WSe(A,["getContainer","closeIcon"]);return Object.assign(Object.assign({mask:b.createElement("div",{className:`${f}-mask-info`},b.createElement(Yce,null),h?.preview),icons:gVe},N),{getContainer:I??u,transitionName:Ad(p,"zoom",A.transitionName),maskTransitionName:Ad(p,"fade",A.maskTransitionName),zIndex:C,closeIcon:R??((T=d?.preview)===null||T===void 0?void 0:T.closeIcon)})},[r,h,(t=d?.preview)===null||t===void 0?void 0:t.closeIcon]),x=Object.assign(Object.assign({},d?.style),o);return g(b.createElement(afe,Object.assign({prefixCls:f,preview:w,rootClassName:_,className:S,style:x},s)))};ofe.PreviewGroup=PVt;function kVt(e,t,n){return typeof n=="boolean"?n:e.length?!0:_l(t).some(i=>i.type===nUe)}const MVt=e=>{const{componentCls:t,bodyBg:n,lightSiderBg:r,lightTriggerBg:i,lightTriggerColor:a}=e;return{[`${t}-sider-light`]:{background:r,[`${t}-sider-trigger`]:{color:a,background:i},[`${t}-sider-zero-width-trigger`]:{color:a,background:i,border:`1px solid ${n}`,borderInlineStart:0}}}},DVt=e=>{const{antCls:t,componentCls:n,colorText:r,triggerColor:i,footerBg:a,triggerBg:o,headerHeight:s,headerPadding:l,headerColor:c,footerPadding:u,triggerHeight:d,zeroTriggerHeight:f,zeroTriggerWidth:p,motionDurationMid:h,motionDurationSlow:m,fontSize:g,borderRadius:v,bodyBg:y,headerBg:_,siderBg:S}=e;return{[n]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:y,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},[`${n}-sider`]:{position:"relative",minWidth:0,background:S,transition:`all ${h}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${t}-menu${t}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:d},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:d,color:i,lineHeight:Ce(d),textAlign:"center",background:o,cursor:"pointer",transition:`all ${h}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:s,insetInlineEnd:e.calc(p).mul(-1).equal(),zIndex:1,width:p,height:f,color:i,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:S,borderStartStartRadius:0,borderStartEndRadius:v,borderEndEndRadius:v,borderEndStartRadius:0,cursor:"pointer",transition:`background ${m} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${m}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(p).mul(-1).equal(),borderStartStartRadius:v,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:v}}}}},MVt(e)),{"&-rtl":{direction:"rtl"}}),[`${n}-header`]:{height:s,padding:l,color:c,lineHeight:Ce(s),background:_,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:u,color:r,fontSize:g,background:a},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},$Vt=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:i,controlHeightSM:a,marginXXS:o,colorTextLightSolid:s,colorBgContainer:l}=e,c=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${c}px`,headerColor:i,footerPadding:`${a}px ${c}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+o*2,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:l,lightTriggerBg:l,lightTriggerColor:i}},vVe=Kr("Layout",e=>[DVt(e)],$Vt,{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]});var yVe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function Pz(e){let{suffixCls:t,tagName:n,displayName:r}=e;return i=>b.forwardRef((o,s)=>b.createElement(i,Object.assign({ref:s,suffixCls:t,tagName:n},o)))}const sfe=b.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:i,tagName:a}=e,o=yVe(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=b.useContext(Sn),l=s("layout",n),[c,u,d]=vVe(l),f=r?`${l}-${r}`:l;return c(b.createElement(a,Object.assign({className:Oe(n||f,i,u,d),ref:t},o)))}),FVt=b.forwardRef((e,t)=>{const{direction:n}=b.useContext(Sn),[r,i]=b.useState([]),{prefixCls:a,className:o,rootClassName:s,children:l,hasSider:c,tagName:u,style:d}=e,f=yVe(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),p=Xa(f,["suffixCls"]),{getPrefixCls:h,layout:m}=b.useContext(Sn),g=h("layout",a),v=kVt(r,l,c),[y,_,S]=vVe(g),C=Oe(g,{[`${g}-has-sider`]:v,[`${g}-rtl`]:n==="rtl"},m?.className,o,s,_,S),w=b.useMemo(()=>({siderHook:{addSider:x=>{i(T=>[].concat(Tt(T),[x]))},removeSider:x=>{i(T=>T.filter(A=>A!==x))}}}),[]);return y(b.createElement(tUe.Provider,{value:w},b.createElement(u,Object.assign({ref:t,className:C,style:Object.assign(Object.assign({},m?.style),d)},p),l)))}),BVt=Pz({tagName:"div",displayName:"Layout"})(FVt),jVt=Pz({suffixCls:"header",tagName:"header",displayName:"Header"})(sfe),zVt=Pz({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(sfe),UVt=Pz({suffixCls:"content",tagName:"main",displayName:"Content"})(sfe),V1=BVt;V1.Header=jVt;V1.Footer=zVt;V1.Content=UVt;V1.Sider=nUe;V1._InternalSiderContext=bz;const bVe=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t<arguments.length;t++){const n=t<0||arguments.length<=t?void 0:arguments[t];n&&Object.keys(n).forEach(r=>{const i=n[r];i!==void 0&&(e[r]=i)})}return e};var HVt={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},VVt=["10","20","50","100"],GVt=function(t){var n=t.pageSizeOptions,r=n===void 0?VVt:n,i=t.locale,a=t.changeSize,o=t.pageSize,s=t.goButton,l=t.quickGo,c=t.rootPrefixCls,u=t.selectComponentClass,d=t.selectPrefixCls,f=t.disabled,p=t.buildOptionText,h=se.useState(""),m=Fe(h,2),g=m[0],v=m[1],y=function(){return!g||Number.isNaN(g)?void 0:Number(g)},_=typeof p=="function"?p:function(L){return"".concat(L," ").concat(i.items_per_page)},S=function($){a?.(Number($))},C=function($){v($.target.value)},w=function($){s||g===""||(v(""),!($.relatedTarget&&($.relatedTarget.className.indexOf("".concat(c,"-item-link"))>=0||$.relatedTarget.className.indexOf("".concat(c,"-item"))>=0))&&l?.(y()))},x=function($){g!==""&&($.keyCode===Bt.ENTER||$.type==="click")&&(v(""),l?.(y()))},T=function(){return r.some(function($){return $.toString()===o.toString()})?r:r.concat([o.toString()]).sort(function($,D){var z=Number.isNaN(Number($))?0:Number($),U=Number.isNaN(Number(D))?0:Number(D);return z-U})},A="".concat(c,"-options");if(!a&&!l)return null;var I=null,R=null,N=null;if(a&&u){var P=T().map(function(L,$){return se.createElement(u.Option,{key:$,value:L.toString()},_(L))});I=se.createElement(u,{disabled:f,prefixCls:d,showSearch:!1,className:"".concat(A,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(o||r[0]).toString(),onChange:S,getPopupContainer:function($){return $.parentNode},"aria-label":i.page_size,defaultOpen:!1},P)}return l&&(s&&(N=typeof s=="boolean"?se.createElement("button",{type:"button",onClick:x,onKeyUp:x,disabled:f,className:"".concat(A,"-quick-jumper-button")},i.jump_to_confirm):se.createElement("span",{onClick:x,onKeyUp:x},s)),R=se.createElement("div",{className:"".concat(A,"-quick-jumper")},i.jump_to,se.createElement("input",{disabled:f,type:"text",value:g,onChange:C,onKeyUp:x,onBlur:w,"aria-label":i.page}),i.page,N)),se.createElement("li",{className:A},I,R)},X4=function(t){var n,r=t.rootPrefixCls,i=t.page,a=t.active,o=t.className,s=t.showTitle,l=t.onClick,c=t.onKeyPress,u=t.itemRender,d="".concat(r,"-item"),f=Oe(d,"".concat(d,"-").concat(i),(n={},be(n,"".concat(d,"-active"),a),be(n,"".concat(d,"-disabled"),!i),n),o),p=function(){l(i)},h=function(v){c(v,l,i)},m=u(i,"page",se.createElement("a",{rel:"nofollow"},i));return m?se.createElement("li",{title:s?String(i):null,className:f,onClick:p,onKeyDown:h,tabIndex:0},m):null},qVt=function(t,n,r){return r};function YSe(){}function KSe(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function g2(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var WVt=function(t){var n,r=t.prefixCls,i=r===void 0?"rc-pagination":r,a=t.selectPrefixCls,o=a===void 0?"rc-select":a,s=t.className,l=t.selectComponentClass,c=t.current,u=t.defaultCurrent,d=u===void 0?1:u,f=t.total,p=f===void 0?0:f,h=t.pageSize,m=t.defaultPageSize,g=m===void 0?10:m,v=t.onChange,y=v===void 0?YSe:v,_=t.hideOnSinglePage,S=t.align,C=t.showPrevNextJumpers,w=C===void 0?!0:C,x=t.showQuickJumper,T=t.showLessItems,A=t.showTitle,I=A===void 0?!0:A,R=t.onShowSizeChange,N=R===void 0?YSe:R,P=t.locale,L=P===void 0?HVt:P,$=t.style,D=t.totalBoundaryShowSizeChanger,z=D===void 0?50:D,U=t.disabled,H=t.simple,M=t.showTotal,B=t.showSizeChanger,k=t.pageSizeOptions,F=t.itemRender,G=F===void 0?qVt:F,q=t.jumpPrevIcon,W=t.jumpNextIcon,K=t.prevIcon,J=t.nextIcon,te=se.useRef(null),ae=qr(10,{value:h,defaultValue:g}),re=Fe(ae,2),ue=re[0],de=re[1],fe=qr(1,{value:c,defaultValue:d,postState:function(Lt){return Math.max(1,Math.min(Lt,g2(void 0,ue,p)))}}),ge=Fe(fe,2),oe=ge[0],Ee=ge[1],ce=se.useState(oe),he=Fe(ce,2),ye=he[0],me=he[1];b.useEffect(function(){me(oe)},[oe]);var _e=Math.max(1,oe-(T?3:5)),Te=Math.min(g2(void 0,ue,p),oe+(T?3:5));function xe(ft,Lt){var kt=ft||se.createElement("button",{type:"button","aria-label":Lt,className:"".concat(i,"-item-link")});return typeof ft=="function"&&(kt=se.createElement(ft,we({},t))),kt}function De(ft){var Lt=ft.target.value,kt=g2(void 0,ue,p),Gt;return Lt===""?Gt=Lt:Number.isNaN(Number(Lt))?Gt=ye:Lt>=kt?Gt=kt:Gt=Number(Lt),Gt}function Pe(ft){return KSe(ft)&&ft!==oe&&KSe(p)&&p>0}var Le=p>ue?x:!1;function ze(ft){(ft.keyCode===Bt.UP||ft.keyCode===Bt.DOWN)&&ft.preventDefault()}function Be(ft){var Lt=De(ft);switch(Lt!==ye&&me(Lt),ft.keyCode){case Bt.ENTER:Ze(Lt);break;case Bt.UP:Ze(Lt-1);break;case Bt.DOWN:Ze(Lt+1);break}}function je(ft){Ze(De(ft))}function Ye(ft){var Lt=g2(ft,ue,p),kt=oe>Lt&&Lt!==0?Lt:oe;de(ft),me(kt),N?.(oe,ft),Ee(kt),y?.(kt,ft)}function Ze(ft){if(Pe(ft)&&!U){var Lt=g2(void 0,ue,p),kt=ft;return ft>Lt?kt=Lt:ft<1&&(kt=1),kt!==ye&&me(kt),Ee(kt),y?.(kt,ue),kt}return oe}var Ke=oe>1,qe=oe<g2(void 0,ue,p),nt=B??p>z;function Qe(){Ke&&Ze(oe-1)}function it(){qe&&Ze(oe+1)}function yt(){Ze(_e)}function Wt(){Ze(Te)}function Mt(ft,Lt){if(ft.key==="Enter"||ft.charCode===Bt.ENTER||ft.keyCode===Bt.ENTER){for(var kt=arguments.length,Gt=new Array(kt>2?kt-2:0),ln=2;ln<kt;ln++)Gt[ln-2]=arguments[ln];Lt.apply(void 0,Gt)}}function tn(ft){Mt(ft,Qe)}function Rt(ft){Mt(ft,it)}function Dt(ft){Mt(ft,yt)}function Pt(ft){Mt(ft,Wt)}function Ot(ft){var Lt=G(ft,"prev",xe(K,"prev page"));return se.isValidElement(Lt)?se.cloneElement(Lt,{disabled:!Ke}):Lt}function sn(ft){var Lt=G(ft,"next",xe(J,"next page"));return se.isValidElement(Lt)?se.cloneElement(Lt,{disabled:!qe}):Lt}function Jt(ft){(ft.type==="click"||ft.keyCode===Bt.ENTER)&&Ze(ye)}var Vt=null,pt=lo(t,{aria:!0,data:!0}),tt=M&&se.createElement("li",{className:"".concat(i,"-total-text")},M(p,[p===0?0:(oe-1)*ue+1,oe*ue>p?p:oe*ue])),dt=null,Et=g2(void 0,ue,p);if(_&&p<=ue)return null;var St=[],zt={rootPrefixCls:i,onClick:Ze,onKeyPress:Mt,showTitle:I,itemRender:G,page:-1},nn=oe-1>0?oe-1:0,wn=oe+1<Et?oe+1:Et,kn=x&&x.goButton,fn=cn(H)==="object"?H.readOnly:!H,an=kn,Ht=null;H&&(kn&&(typeof kn=="boolean"?an=se.createElement("button",{type:"button",onClick:Jt,onKeyUp:Jt},L.jump_to_confirm):an=se.createElement("span",{onClick:Jt,onKeyUp:Jt},kn),an=se.createElement("li",{title:I?"".concat(L.jump_to).concat(oe,"/").concat(Et):null,className:"".concat(i,"-simple-pager")},an)),Ht=se.createElement("li",{title:I?"".concat(oe,"/").concat(Et):null,className:"".concat(i,"-simple-pager")},fn?ye:se.createElement("input",{type:"text",value:ye,disabled:U,onKeyDown:ze,onKeyUp:Be,onChange:Be,onBlur:je,size:3}),se.createElement("span",{className:"".concat(i,"-slash")},"/"),Et));var mn=T?1:2;if(Et<=3+mn*2){Et||St.push(se.createElement(X4,Xe({},zt,{key:"noPager",page:1,className:"".concat(i,"-item-disabled")})));for(var Tn=1;Tn<=Et;Tn+=1)St.push(se.createElement(X4,Xe({},zt,{key:Tn,page:Tn,active:oe===Tn})))}else{var An=T?L.prev_3:L.prev_5,nr=T?L.next_3:L.next_5,un=G(_e,"jump-prev",xe(q,"prev page")),et=G(Te,"jump-next",xe(W,"next page"));w&&(Vt=un?se.createElement("li",{title:I?An:null,key:"prev",onClick:yt,tabIndex:0,onKeyDown:Dt,className:Oe("".concat(i,"-jump-prev"),be({},"".concat(i,"-jump-prev-custom-icon"),!!q))},un):null,dt=et?se.createElement("li",{title:I?nr:null,key:"next",onClick:Wt,tabIndex:0,onKeyDown:Pt,className:Oe("".concat(i,"-jump-next"),be({},"".concat(i,"-jump-next-custom-icon"),!!W))},et):null);var Ct=Math.max(1,oe-mn),Q=Math.min(oe+mn,Et);oe-1<=mn&&(Q=1+mn*2),Et-oe<=mn&&(Ct=Et-mn*2);for(var Y=Ct;Y<=Q;Y+=1)St.push(se.createElement(X4,Xe({},zt,{key:Y,page:Y,active:oe===Y})));if(oe-1>=mn*2&&oe!==3&&(St[0]=se.cloneElement(St[0],{className:Oe("".concat(i,"-item-after-jump-prev"),St[0].props.className)}),St.unshift(Vt)),Et-oe>=mn*2&&oe!==Et-2){var ee=St[St.length-1];St[St.length-1]=se.cloneElement(ee,{className:Oe("".concat(i,"-item-before-jump-next"),ee.props.className)}),St.push(dt)}Ct!==1&&St.unshift(se.createElement(X4,Xe({},zt,{key:1,page:1}))),Q!==Et&&St.push(se.createElement(X4,Xe({},zt,{key:Et,page:Et})))}var le=Ot(nn);if(le){var Se=!Ke||!Et;le=se.createElement("li",{title:I?L.prev_page:null,onClick:Qe,tabIndex:Se?null:0,onKeyDown:tn,className:Oe("".concat(i,"-prev"),be({},"".concat(i,"-disabled"),Se)),"aria-disabled":Se},le)}var Ae=sn(wn);if(Ae){var He,at;H?(He=!qe,at=Ke?0:null):(He=!qe||!Et,at=He?null:0),Ae=se.createElement("li",{title:I?L.next_page:null,onClick:it,tabIndex:at,onKeyDown:Rt,className:Oe("".concat(i,"-next"),be({},"".concat(i,"-disabled"),He)),"aria-disabled":He},Ae)}var wt=Oe(i,s,(n={},be(n,"".concat(i,"-start"),S==="start"),be(n,"".concat(i,"-center"),S==="center"),be(n,"".concat(i,"-end"),S==="end"),be(n,"".concat(i,"-simple"),H),be(n,"".concat(i,"-disabled"),U),n));return se.createElement("ul",Xe({className:wt,style:$,ref:te},pt),tt,le,H?Ht:St,Ae,se.createElement(GVt,{locale:L,rootPrefixCls:i,disabled:U,selectComponentClass:l,selectPrefixCls:o,changeSize:nt?Ye:null,pageSize:ue,pageSizeOptions:k,quickGo:Le?Ze:null,goButton:an}))};const _Ve=e=>b.createElement(Zi,Object.assign({},e,{showSearch:!0,size:"small"})),SVe=e=>b.createElement(Zi,Object.assign({},e,{showSearch:!0,size:"middle"}));_Ve.Option=Zi.Option;SVe.Option=Zi.Option;const YVt=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},KVt=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:Ce(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:Ce(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:Ce(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`
    &${t}-mini ${t}-prev ${t}-item-link,
    &${t}-mini ${t}-next ${t}-item-link
    `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:Ce(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:Ce(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:Ce(e.itemSizeSM),input:Object.assign(Object.assign({},Gde(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},XVt=e=>{const{componentCls:t}=e;return{[`
    &${t}-simple ${t}-prev,
    &${t}-simple ${t}-next
    `]:{height:e.itemSizeSM,lineHeight:Ce(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:Ce(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${Ce(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${Ce(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${Ce(e.inputOutlineOffset)} 0 ${Ce(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},ZVt=e=>{const{componentCls:t,antCls:n}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`
    ${t}-prev,
    ${t}-jump-prev,
    ${t}-jump-next
    `]:{marginInlineEnd:e.marginXS},[`
    ${t}-prev,
    ${t}-next,
    ${t}-jump-prev,
    ${t}-jump-next
    `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:`${Ce(e.itemSize)}`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${Ce(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto",[`${n}-select-arrow:not(:last-child)`]:{opacity:1}},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:Ce(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},LO(e)),jde(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},Iz(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},QVt=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:Ce(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${Ce(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${Ce(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},JVt=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Wr(e)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:Ce(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),QVt(e)),ZVt(e)),XVt(e)),KVt(e)),YVt(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},eGt=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},kp(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},r0(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},r0(e))}}}},EVe=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},OO(e)),CVe=e=>br(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},NO(e)),tGt=Kr("Pagination",e=>{const t=CVe(e);return[JVt(t),eGt(t)]},EVe),nGt=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${Ce(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},rGt=bC(["Pagination","bordered"],e=>{const t=CVe(e);return[nGt(t)]},EVe);var iGt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const lfe=e=>{const{align:t,prefixCls:n,selectPrefixCls:r,className:i,rootClassName:a,style:o,size:s,locale:l,selectComponentClass:c,responsive:u,showSizeChanger:d}=e,f=iGt(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:p}=wO(u),[,h]=nl(),{getPrefixCls:m,direction:g,pagination:v={}}=b.useContext(Sn),y=m("pagination",n),[_,S,C]=tGt(y),w=d??v.showSizeChanger,x=b.useMemo(()=>{const $=b.createElement("span",{className:`${y}-item-ellipsis`},"•••"),D=b.createElement("button",{className:`${y}-item-link`,type:"button",tabIndex:-1},g==="rtl"?b.createElement(Zb,null):b.createElement(AE,null)),z=b.createElement("button",{className:`${y}-item-link`,type:"button",tabIndex:-1},g==="rtl"?b.createElement(AE,null):b.createElement(Zb,null)),U=b.createElement("a",{className:`${y}-item-link`},b.createElement("div",{className:`${y}-item-container`},g==="rtl"?b.createElement(Vne,{className:`${y}-item-link-icon`}):b.createElement(Hne,{className:`${y}-item-link-icon`}),$)),H=b.createElement("a",{className:`${y}-item-link`},b.createElement("div",{className:`${y}-item-container`},g==="rtl"?b.createElement(Hne,{className:`${y}-item-link-icon`}):b.createElement(Vne,{className:`${y}-item-link-icon`}),$));return{prevIcon:D,nextIcon:z,jumpPrevIcon:U,jumpNextIcon:H}},[g,y]),[T]=Dd("Pagination",PBe),A=Object.assign(Object.assign({},T),l),I=ks(s),R=I==="small"||!!(p&&!I&&u),N=m("select",r),P=Oe({[`${y}-${t}`]:!!t,[`${y}-mini`]:R,[`${y}-rtl`]:g==="rtl",[`${y}-bordered`]:h.wireframe},v?.className,i,a,S,C),L=Object.assign(Object.assign({},v?.style),o);return _(b.createElement(b.Fragment,null,h.wireframe&&b.createElement(rGt,{prefixCls:y}),b.createElement(WVt,Object.assign({},x,f,{style:L,prefixCls:y,selectPrefixCls:N,className:P,selectComponentClass:c||(R?_Ve:SVe),locale:A,showSizeChanger:w}))))};function aGt(e){let{percent:t,prefixCls:n}=e;const r=`${n}-dot`,i=`${r}-holder`,a=`${i}-hidden`,[o,s]=b.useState(!1);kr(()=>{t!==0&&s(!0)},[t!==0]);const l=Math.max(Math.min(t,100),0),c=100,u=c/5,d=c/2-u/2,f=d*2*Math.PI,p=(h,m)=>b.createElement("circle",{className:Oe(h,`${r}-circle`),r:d,cx:"50",cy:"50",strokeWidth:u,style:m});return o?b.createElement("span",{className:Oe(i,`${r}-progress`,l<=0&&a)},b.createElement("svg",{viewBox:`0 0 ${c} ${c}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":l},p(`${r}-circle-bg`),p("",{strokeDasharray:`${f*l/100} ${f*(100-l)/100}`,strokeDashoffset:`${f/4}`}))):null}function oGt(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,i=`${r}-holder`,a=`${i}-hidden`;return b.createElement(b.Fragment,null,b.createElement("span",{className:Oe(i,n>0&&a)},b.createElement("span",{className:Oe(r,`${t}-dot-spin`)},[1,2,3,4].map(o=>b.createElement("i",{className:`${t}-dot-item`,key:o})))),b.createElement(aGt,{prefixCls:t,percent:n}))}function sGt(e){const{prefixCls:t,indicator:n,percent:r}=e,i=`${t}-dot`;return n&&b.isValidElement(n)?as(n,{className:Oe(n.props.className,i),percent:r}):b.createElement(oGt,{prefixCls:t,percent:r})}const lGt=new Dr("antSpinMove",{to:{opacity:1}}),cGt=new Dr("antRotate",{to:{transform:"rotate(405deg)"}}),uGt=e=>{const{componentCls:t,calc:n}=e;return{[`${t}`]:Object.assign(Object.assign({},Wr(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",top:"50%",transform:"translateY(-50%)",insetInlineStart:0},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:lGt,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:cGt,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(r=>`${r} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},dGt=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},fGt=Kr("Spin",e=>{const t=br(e,{spinDotDefault:e.colorTextDescription});return[uGt(t)]},dGt),pGt=200,XSe=[[30,.05],[70,.03],[96,.01]];function hGt(e,t){const[n,r]=b.useState(0),i=b.useRef(),a=t==="auto";return b.useEffect(()=>(a&&e&&(r(0),i.current=setInterval(()=>{r(o=>{const s=100-o;for(let l=0;l<XSe.length;l+=1){const[c,u]=XSe[l];if(o<=c)return o+s*u}return o})},pGt)),()=>{clearInterval(i.current)}),[a,e]),a?n:t}var mGt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};let wVe;function gGt(e,t){return!!e&&!!t&&!isNaN(Number(t))}const v0=e=>{var t;const{prefixCls:n,spinning:r=!0,delay:i=0,className:a,rootClassName:o,size:s="default",tip:l,wrapperClassName:c,style:u,children:d,fullscreen:f=!1,indicator:p,percent:h}=e,m=mGt(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:g,direction:v,spin:y}=b.useContext(Sn),_=g("spin",n),[S,C,w]=fGt(_),[x,T]=b.useState(()=>r&&!gGt(r,i)),A=hGt(x,h);b.useEffect(()=>{if(r){const D=zBt(i,()=>{T(!0)});return D(),()=>{var z;(z=D?.cancel)===null||z===void 0||z.call(D)}}T(!1)},[i,r]);const I=b.useMemo(()=>typeof d<"u"&&!f,[d,f]),R=Oe(_,y?.className,{[`${_}-sm`]:s==="small",[`${_}-lg`]:s==="large",[`${_}-spinning`]:x,[`${_}-show-text`]:!!l,[`${_}-rtl`]:v==="rtl"},a,!f&&o,C,w),N=Oe(`${_}-container`,{[`${_}-blur`]:x}),P=(t=p??y?.indicator)!==null&&t!==void 0?t:wVe,L=Object.assign(Object.assign({},y?.style),u),$=b.createElement("div",Object.assign({},m,{style:L,className:R,"aria-live":"polite","aria-busy":x}),b.createElement(sGt,{prefixCls:_,indicator:P,percent:A}),l&&(I||f)?b.createElement("div",{className:`${_}-text`},l):null);return S(I?b.createElement("div",Object.assign({},m,{className:Oe(`${_}-nested-loading`,c,C,w)}),x&&b.createElement("div",{key:"loading"},$),b.createElement("div",{className:N,key:"container"},d)):f?b.createElement("div",{className:Oe(`${_}-fullscreen`,{[`${_}-fullscreen-show`]:x},o,C,w)},$):$)};v0.setDefaultIndicator=e=>{wVe=e};const cfe=se.createContext({});cfe.Consumer;var xVe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const vGt=e=>{var{prefixCls:t,className:n,avatar:r,title:i,description:a}=e,o=xVe(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:s}=b.useContext(Sn),l=s("list",t),c=Oe(`${l}-item-meta`,n),u=se.createElement("div",{className:`${l}-item-meta-content`},i&&se.createElement("h4",{className:`${l}-item-meta-title`},i),a&&se.createElement("div",{className:`${l}-item-meta-description`},a));return se.createElement("div",Object.assign({},o,{className:c}),r&&se.createElement("div",{className:`${l}-item-meta-avatar`},r),(i||a)&&u)},yGt=se.forwardRef((e,t)=>{const{prefixCls:n,children:r,actions:i,extra:a,styles:o,className:s,classNames:l,colStyle:c}=e,u=xVe(e,["prefixCls","children","actions","extra","styles","className","classNames","colStyle"]),{grid:d,itemLayout:f}=b.useContext(cfe),{getPrefixCls:p,list:h}=b.useContext(Sn),m=x=>{var T,A;return Oe((A=(T=h?.item)===null||T===void 0?void 0:T.classNames)===null||A===void 0?void 0:A[x],l?.[x])},g=x=>{var T,A;return Object.assign(Object.assign({},(A=(T=h?.item)===null||T===void 0?void 0:T.styles)===null||A===void 0?void 0:A[x]),o?.[x])},v=()=>{let x=!1;return b.Children.forEach(r,T=>{typeof T=="string"&&(x=!0)}),x&&b.Children.count(r)>1},y=()=>f==="vertical"?!!a:!v(),_=p("list",n),S=i&&i.length>0&&se.createElement("ul",{className:Oe(`${_}-item-action`,m("actions")),key:"actions",style:g("actions")},i.map((x,T)=>se.createElement("li",{key:`${_}-item-action-${T}`},x,T!==i.length-1&&se.createElement("em",{className:`${_}-item-action-split`})))),C=d?"div":"li",w=se.createElement(C,Object.assign({},u,d?{}:{ref:t},{className:Oe(`${_}-item`,{[`${_}-item-no-flex`]:!y()},s)}),f==="vertical"&&a?[se.createElement("div",{className:`${_}-item-main`,key:"content"},r,S),se.createElement("div",{className:Oe(`${_}-item-extra`,m("extra")),key:"extra",style:g("extra")},a)]:[r,S,as(a,{key:"extra"})]);return d?se.createElement(Rz,{ref:t,flex:1,style:c},w):w}),TVe=yGt;TVe.Meta=vGt;const bGt=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:r,margin:i,itemPaddingSM:a,itemPaddingLG:o,marginLG:s,borderRadiusLG:l}=e;return{[`${t}`]:{border:`${Ce(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:l,[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${Ce(i)} ${Ce(s)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:a}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:o}}}},_Gt=e=>{const{componentCls:t,screenSM:n,screenMD:r,marginLG:i,marginSM:a,margin:o}=e;return{[`@media screen and (max-width:${r}px)`]:{[`${t}`]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:i}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:i}}}},[`@media screen and (max-width: ${n}px)`]:{[`${t}`]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:a}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${Ce(o)}`}}}}}},SGt=e=>{const{componentCls:t,antCls:n,controlHeight:r,minHeight:i,paddingSM:a,marginLG:o,padding:s,itemPadding:l,colorPrimary:c,itemPaddingSM:u,itemPaddingLG:d,paddingXS:f,margin:p,colorText:h,colorTextDescription:m,motionDurationSlow:g,lineWidth:v,headerBg:y,footerBg:_,emptyTextPadding:S,metaMarginBottom:C,avatarMarginRight:w,titleMarginBottom:x,descriptionFontSize:T}=e;return{[`${t}`]:Object.assign(Object.assign({},Wr(e)),{position:"relative","*":{outline:"none"},[`${t}-header`]:{background:y},[`${t}-footer`]:{background:_},[`${t}-header, ${t}-footer`]:{paddingBlock:a},[`${t}-pagination`]:{marginBlockStart:o,[`${n}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:i,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:l,color:h,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:w},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:h},[`${t}-item-meta-title`]:{margin:`0 0 ${Ce(e.marginXXS)} 0`,color:h,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:h,transition:`all ${g}`,"&:hover":{color:c}}},[`${t}-item-meta-description`]:{color:m,fontSize:T,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${Ce(f)}`,color:m,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:v,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${Ce(s)} 0`,color:m,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:S,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${n}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:p,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:o},[`${t}-item-meta`]:{marginBlockEnd:C,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:x,color:h,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:s,marginInlineStart:"auto","> li":{padding:`0 ${Ce(s)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${Ce(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${Ce(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${Ce(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:r},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${Ce(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:d},[`${t}-sm ${t}-item`]:{padding:u},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},EGt=e=>({contentWidth:220,itemPadding:`${Ce(e.paddingContentVertical)} 0`,itemPaddingSM:`${Ce(e.paddingContentVerticalSM)} ${Ce(e.paddingContentHorizontal)}`,itemPaddingLG:`${Ce(e.paddingContentVerticalLG)} ${Ce(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),CGt=Kr("List",e=>{const t=br(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[SGt(t),bGt(t),_Gt(t)]},EGt);var wGt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function xie(e){var{pagination:t=!1,prefixCls:n,bordered:r=!1,split:i=!0,className:a,rootClassName:o,style:s,children:l,itemLayout:c,loadMore:u,grid:d,dataSource:f=[],size:p,header:h,footer:m,loading:g=!1,rowKey:v,renderItem:y,locale:_}=e,S=wGt(e,["pagination","prefixCls","bordered","split","className","rootClassName","style","children","itemLayout","loadMore","grid","dataSource","size","header","footer","loading","rowKey","renderItem","locale"]);const C=t&&typeof t=="object"?t:{},[w,x]=b.useState(C.defaultCurrent||1),[T,A]=b.useState(C.defaultPageSize||10),{getPrefixCls:I,renderEmpty:R,direction:N,list:P}=b.useContext(Sn),L={current:1,total:0},$=ye=>(me,_e)=>{var Te;x(me),A(_e),t&&((Te=t?.[ye])===null||Te===void 0||Te.call(t,me,_e))},D=$("onChange"),z=$("onShowSizeChange"),U=(ye,me)=>{if(!y)return null;let _e;return typeof v=="function"?_e=v(ye):v?_e=ye[v]:_e=ye.key,_e||(_e=`list-item-${me}`),b.createElement(b.Fragment,{key:_e},y(ye,me))},H=()=>!!(u||t||m),M=I("list",n),[B,k,F]=CGt(M);let G=g;typeof G=="boolean"&&(G={spinning:G});const q=!!G?.spinning,W=ks(p);let K="";switch(W){case"large":K="lg";break;case"small":K="sm";break}const J=Oe(M,{[`${M}-vertical`]:c==="vertical",[`${M}-${K}`]:K,[`${M}-split`]:i,[`${M}-bordered`]:r,[`${M}-loading`]:q,[`${M}-grid`]:!!d,[`${M}-something-after-last-item`]:H(),[`${M}-rtl`]:N==="rtl"},P?.className,a,o,k,F),te=bVe(L,{total:f.length,current:w,pageSize:T},t||{}),ae=Math.ceil(te.total/te.pageSize);te.current>ae&&(te.current=ae);const re=t&&b.createElement("div",{className:Oe(`${M}-pagination`)},b.createElement(lfe,Object.assign({align:"end"},te,{onChange:D,onShowSizeChange:z})));let ue=Tt(f);t&&f.length>(te.current-1)*te.pageSize&&(ue=Tt(f).splice((te.current-1)*te.pageSize,te.pageSize));const de=Object.keys(d||{}).some(ye=>["xs","sm","md","lg","xl","xxl"].includes(ye)),fe=wO(de),ge=b.useMemo(()=>{for(let ye=0;ye<e_.length;ye+=1){const me=e_[ye];if(fe[me])return me}},[fe]),oe=b.useMemo(()=>{if(!d)return;const ye=ge&&d[ge]?d[ge]:d.column;if(ye)return{width:`${100/ye}%`,maxWidth:`${100/ye}%`}},[JSON.stringify(d),ge]);let Ee=q&&b.createElement("div",{style:{minHeight:53}});if(ue.length>0){const ye=ue.map((me,_e)=>U(me,_e));Ee=d?b.createElement(Yde,{gutter:d.gutter},b.Children.map(ye,me=>b.createElement("div",{key:me?.key,style:oe},me))):b.createElement("ul",{className:`${M}-items`},ye)}else!l&&!q&&(Ee=b.createElement("div",{className:`${M}-empty-text`},_?.emptyText||R?.("List")||b.createElement(Sde,{componentName:"List"})));const ce=te.position||"bottom",he=b.useMemo(()=>({grid:d,itemLayout:c}),[JSON.stringify(d),c]);return B(b.createElement(cfe.Provider,{value:he},b.createElement("div",Object.assign({style:Object.assign(Object.assign({},P?.style),s),className:J},S),(ce==="top"||ce==="both")&&re,h&&b.createElement("div",{className:`${M}-header`},h),b.createElement(v0,Object.assign({},G),Ee,l),m&&b.createElement("div",{className:`${M}-footer`},m),u||(ce==="bottom"||ce==="both")&&re)))}xie.Item=TVe;let up=null,zS=e=>e(),FN=[],BN={};function ZSe(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:i}=BN,a=e?.()||document.body;return{getContainer:()=>a,duration:t,rtl:n,maxCount:r,top:i}}const xGt=se.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:i}=b.useContext(Sn),a=BN.prefixCls||i("message"),o=b.useContext(uze),[s,l]=hje(Object.assign(Object.assign(Object.assign({},n),{prefixCls:a}),o.message));return se.useImperativeHandle(t,()=>{const c=Object.assign({},s);return Object.keys(c).forEach(u=>{c[u]=function(){return r(),s[u].apply(s,arguments)}}),{instance:c,sync:r}}),l}),TGt=se.forwardRef((e,t)=>{const[n,r]=se.useState(ZSe),i=()=>{r(ZSe)};se.useEffect(i,[]);const a=Que(),o=a.getRootPrefixCls(),s=a.getIconPrefixCls(),l=a.getTheme(),c=se.createElement(xGt,{ref:t,sync:i,messageConfig:n});return se.createElement(zp,{prefixCls:o,iconPrefixCls:s,theme:l},a.holderRender?a.holderRender(c):c)});function kz(){if(!up){const e=document.createDocumentFragment(),t={fragment:e};up=t,zS(()=>{tz(se.createElement(TGt,{ref:n=>{const{instance:r,sync:i}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=i,kz())})}}),e)});return}up.instance&&(FN.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{zS(()=>{const r=up.instance.open(Object.assign(Object.assign({},BN),e.config));r?.then(e.resolve),e.setCloseFn(r)});break}case"destroy":zS(()=>{up?.instance.destroy(e.key)});break;default:zS(()=>{var r;const i=(r=up.instance)[t].apply(r,Tt(e.args));i?.then(e.resolve),e.setCloseFn(i)})}}),FN=[])}function IGt(e){BN=Object.assign(Object.assign({},BN),e),zS(()=>{var t;(t=up?.sync)===null||t===void 0||t.call(up)})}function AGt(e){const t=nde(n=>{let r;const i={type:"open",config:e,resolve:n,setCloseFn:a=>{r=a}};return FN.push(i),()=>{r?zS(()=>{r()}):i.skipped=!0}});return kz(),t}function RGt(e,t){const n=nde(r=>{let i;const a={type:e,args:t,resolve:r,setCloseFn:o=>{i=o}};return FN.push(a),()=>{i?zS(()=>{i()}):a.skipped=!0}});return kz(),n}const NGt=e=>{FN.push({type:"destroy",key:e}),kz()},OGt=["success","info","warning","error","loading"],LGt={open:AGt,destroy:NGt,config:IGt,useMessage:y8t,_InternalPanelDoNotUseOrYouWillBeFired:u8t},Dp=LGt;OGt.forEach(e=>{Dp[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return RGt(e,n)}});var PGt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const kGt=e=>{const{prefixCls:t,className:n,closeIcon:r,closable:i,type:a,title:o,children:s,footer:l}=e,c=PGt(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:u}=b.useContext(Sn),d=u(),f=t||u("modal"),p=Ja(d),[h,m,g]=Wje(f,p),v=`${f}-confirm`;let y={};return a?y={closable:i??!1,title:"",footer:"",children:b.createElement(Kje,Object.assign({},e,{prefixCls:f,confirmPrefixCls:v,rootPrefixCls:d,content:s}))}:y={closable:i??!0,title:o,footer:l!==null&&b.createElement(Hje,Object.assign({},e)),children:s},h(b.createElement(Aje,Object.assign({prefixCls:f,className:Oe(m,`${f}-pure-panel`,a&&v,a&&`${v}-${a}`,n,g,p)},c,{closeIcon:Uje(f,r),closable:i},y)))},MGt=gde(kGt);function IVe(e){return SO(Jje(e))}const wi=Yje;wi.useModal=Mkt;wi.info=function(t){return SO(eze(t))};wi.success=function(t){return SO(tze(t))};wi.error=function(t){return SO(nze(t))};wi.warning=IVe;wi.warn=IVe;wi.confirm=function(t){return SO(rze(t))};wi.destroyAll=function(){for(;BS.length;){const t=BS.pop();t&&t()}};wi.config=Nkt;wi._InternalPanelDoNotUseOrYouWillBeFired=MGt;let $h=null,r7=e=>e(),K$=[],jN={};function QSe(){const{getContainer:e,rtl:t,maxCount:n,top:r,bottom:i,showProgress:a,pauseOnHover:o}=jN,s=e?.()||document.body;return{getContainer:()=>s,rtl:t,maxCount:n,top:r,bottom:i,showProgress:a,pauseOnHover:o}}const DGt=se.forwardRef((e,t)=>{const{notificationConfig:n,sync:r}=e,{getPrefixCls:i}=b.useContext(Sn),a=jN.prefixCls||i("notification"),o=b.useContext(uze),[s,l]=cze(Object.assign(Object.assign(Object.assign({},n),{prefixCls:a}),o.notification));return se.useEffect(r,[]),se.useImperativeHandle(t,()=>{const c=Object.assign({},s);return Object.keys(c).forEach(u=>{c[u]=function(){return r(),s[u].apply(s,arguments)}}),{instance:c,sync:r}}),l}),$Gt=se.forwardRef((e,t)=>{const[n,r]=se.useState(QSe),i=()=>{r(QSe)};se.useEffect(i,[]);const a=Que(),o=a.getRootPrefixCls(),s=a.getIconPrefixCls(),l=a.getTheme(),c=se.createElement(DGt,{ref:t,sync:i,notificationConfig:n});return se.createElement(zp,{prefixCls:o,iconPrefixCls:s,theme:l},a.holderRender?a.holderRender(c):c)});function ufe(){if(!$h){const e=document.createDocumentFragment(),t={fragment:e};$h=t,r7(()=>{tz(se.createElement($Gt,{ref:n=>{const{instance:r,sync:i}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=i,ufe())})}}),e)});return}$h.instance&&(K$.forEach(e=>{switch(e.type){case"open":{r7(()=>{$h.instance.open(Object.assign(Object.assign({},jN),e.config))});break}case"destroy":r7(()=>{$h?.instance.destroy(e.key)});break}}),K$=[])}function FGt(e){jN=Object.assign(Object.assign({},jN),e),r7(()=>{var t;(t=$h?.sync)===null||t===void 0||t.call($h)})}function AVe(e){K$.push({type:"open",config:e}),ufe()}const BGt=e=>{K$.push({type:"destroy",key:e}),ufe()},jGt=["success","info","warning","error"],zGt={open:AVe,destroy:BGt,config:FGt,useNotification:n9t,_InternalPanelDoNotUseOrYouWillBeFired:Wkt},dfe=zGt;jGt.forEach(e=>{dfe[e]=t=>AVe(Object.assign(Object.assign({},t),{type:e}))});const UGt=e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:i,colorText:a,colorWarning:o,marginXXS:s,marginXS:l,fontSize:c,fontWeightStrong:u,colorTextHeading:d}=e;return{[t]:{zIndex:i,[`&${r}-popover`]:{fontSize:c},[`${t}-message`]:{marginBottom:l,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:o,fontSize:c,lineHeight:1,marginInlineEnd:l},[`${t}-title`]:{fontWeight:u,color:d,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:s,color:a}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:l}}}}},HGt=e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},RVe=Kr("Popconfirm",e=>UGt(e),HGt,{resetStyle:!1});var VGt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const NVe=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:i,description:a,cancelText:o,okText:s,okType:l="primary",icon:c=b.createElement(__,null),showCancel:u=!0,close:d,onConfirm:f,onCancel:p,onPopupClick:h}=e,{getPrefixCls:m}=b.useContext(Sn),[g]=Dd("Popconfirm",Id.Popconfirm),v=T3(i),y=T3(a);return b.createElement("div",{className:`${t}-inner-content`,onClick:h},b.createElement("div",{className:`${t}-message`},c&&b.createElement("span",{className:`${t}-message-icon`},c),b.createElement("div",{className:`${t}-message-text`},v&&b.createElement("div",{className:`${t}-title`},v),y&&b.createElement("div",{className:`${t}-description`},y))),b.createElement("div",{className:`${t}-buttons`},u&&b.createElement(ut,Object.assign({onClick:p,size:"small"},r),o||g?.cancelText),b.createElement(ode,{buttonProps:Object.assign(Object.assign({size:"small"},rde(l)),n),actionFn:f,close:d,prefixCls:m("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s||g?.okText)))},GGt=e=>{const{prefixCls:t,placement:n,className:r,style:i}=e,a=VGt(e,["prefixCls","placement","className","style"]),{getPrefixCls:o}=b.useContext(Sn),s=o("popconfirm",t),[l]=RVe(s);return l(b.createElement(jze,{placement:n,className:Oe(s,r),style:i,content:b.createElement(NVe,Object.assign({prefixCls:s},a))}))};var qGt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const WGt=b.forwardRef((e,t)=>{var n,r;const{prefixCls:i,placement:a="top",trigger:o="click",okType:s="primary",icon:l=b.createElement(__,null),children:c,overlayClassName:u,onOpenChange:d,onVisibleChange:f}=e,p=qGt(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:h}=b.useContext(Sn),[m,g]=qr(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),v=(A,I)=>{g(A,!0),f?.(A),d?.(A,I)},y=A=>{v(!1,A)},_=A=>{var I;return(I=e.onConfirm)===null||I===void 0?void 0:I.call(void 0,A)},S=A=>{var I;v(!1,A),(I=e.onCancel)===null||I===void 0||I.call(void 0,A)},C=(A,I)=>{const{disabled:R=!1}=e;R||v(A,I)},w=h("popconfirm",i),x=Oe(w,u),[T]=RVe(w);return T(b.createElement(tv,Object.assign({},Xa(p,["title"]),{trigger:o,placement:a,onOpenChange:C,open:m,ref:t,overlayClassName:x,content:b.createElement(NVe,Object.assign({okType:s,icon:l},e,{prefixCls:w,close:y,onConfirm:_,onCancel:S})),"data-popover-inject":!0}),c))}),fm=WGt;fm._InternalPanelDoNotUseOrYouWillBeFired=GGt;var YGt={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},KGt=function(){var t=b.useRef([]),n=b.useRef(null);return b.useEffect(function(){var r=Date.now(),i=!1;t.current.forEach(function(a){if(a){i=!0;var o=a.style;o.transitionDuration=".3s, .3s, .3s, .06s",n.current&&r-n.current<100&&(o.transitionDuration="0s, 0s")}}),i&&(n.current=Date.now())}),t.current},JSe=0,XGt=Zl();function ZGt(){var e;return XGt?(e=JSe,JSe+=1):e="TEST_OR_SSR",e}const QGt=function(e){var t=b.useState(),n=Fe(t,2),r=n[0],i=n[1];return b.useEffect(function(){i("rc_progress_".concat(ZGt()))},[]),e||r};var eEe=function(t){var n=t.bg,r=t.children;return b.createElement("div",{style:{width:"100%",height:"100%",background:n}},r)};function tEe(e,t){return Object.keys(e).map(function(n){var r=parseFloat(n),i="".concat(Math.floor(r*t),"%");return"".concat(e[n]," ").concat(i)})}var JGt=b.forwardRef(function(e,t){var n=e.prefixCls,r=e.color,i=e.gradientId,a=e.radius,o=e.style,s=e.ptg,l=e.strokeLinecap,c=e.strokeWidth,u=e.size,d=e.gapDegree,f=r&&cn(r)==="object",p=f?"#FFF":void 0,h=u/2,m=b.createElement("circle",{className:"".concat(n,"-circle-path"),r:a,cx:h,cy:h,stroke:p,strokeLinecap:l,strokeWidth:c,opacity:s===0?0:1,style:o,ref:t});if(!f)return m;var g="".concat(i,"-conic"),v=d?"".concat(180+d/2,"deg"):"0deg",y=tEe(r,(360-d)/360),_=tEe(r,1),S="conic-gradient(from ".concat(v,", ").concat(y.join(", "),")"),C="linear-gradient(to ".concat(d?"bottom":"top",", ").concat(_.join(", "),")");return b.createElement(b.Fragment,null,b.createElement("mask",{id:g},m),b.createElement("foreignObject",{x:0,y:0,width:u,height:u,mask:"url(#".concat(g,")")},b.createElement(eEe,{bg:C},b.createElement(eEe,{bg:S}))))}),vA=100,bq=function(t,n,r,i,a,o,s,l,c,u){var d=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,f=r/100*360*((360-o)/360),p=o===0?0:{bottom:0,top:180,left:90,right:-90}[s],h=(100-i)/100*n;c==="round"&&i!==100&&(h+=u/2,h>=n&&(h=n-.01));var m=vA/2;return{stroke:typeof l=="string"?l:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:h+d,transform:"rotate(".concat(a+f+p,"deg)"),transformOrigin:"".concat(m,"px ").concat(m,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},eqt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function nEe(e){var t=e??[];return Array.isArray(t)?t:[t]}var tqt=function(t){var n=we(we({},YGt),t),r=n.id,i=n.prefixCls,a=n.steps,o=n.strokeWidth,s=n.trailWidth,l=n.gapDegree,c=l===void 0?0:l,u=n.gapPosition,d=n.trailColor,f=n.strokeLinecap,p=n.style,h=n.className,m=n.strokeColor,g=n.percent,v=$n(n,eqt),y=vA/2,_=QGt(r),S="".concat(_,"-gradient"),C=y-o/2,w=Math.PI*2*C,x=c>0?90+c/2:-90,T=w*((360-c)/360),A=cn(a)==="object"?a:{count:a,gap:2},I=A.count,R=A.gap,N=nEe(g),P=nEe(m),L=P.find(function(B){return B&&cn(B)==="object"}),$=L&&cn(L)==="object",D=$?"butt":f,z=bq(w,T,0,100,x,c,u,d,D,o),U=KGt(),H=function(){var k=0;return N.map(function(F,G){var q=P[G]||P[P.length-1],W=bq(w,T,k,F,x,c,u,q,D,o);return k+=F,b.createElement(JGt,{key:G,color:q,ptg:F,radius:C,prefixCls:i,gradientId:S,style:W,strokeLinecap:D,strokeWidth:o,gapDegree:c,ref:function(J){U[G]=J},size:vA})}).reverse()},M=function(){var k=Math.round(I*(N[0]/100)),F=100/I,G=0;return new Array(I).fill(null).map(function(q,W){var K=W<=k-1?P[0]:d,J=K&&cn(K)==="object"?"url(#".concat(S,")"):void 0,te=bq(w,T,G,F,x,c,u,K,"butt",o,R);return G+=(T-te.strokeDashoffset+R)*100/T,b.createElement("circle",{key:W,className:"".concat(i,"-circle-path"),r:C,cx:y,cy:y,stroke:J,strokeWidth:o,opacity:1,style:te,ref:function(re){U[W]=re}})})};return b.createElement("svg",Xe({className:Oe("".concat(i,"-circle"),h),viewBox:"0 0 ".concat(vA," ").concat(vA),style:p,id:r,role:"presentation"},v),!I&&b.createElement("circle",{className:"".concat(i,"-circle-trail"),r:C,cx:y,cy:y,stroke:d,strokeLinecap:D,strokeWidth:s||o,style:z}),I?M():H())};function $b(e){return!e||e<0?0:e>100?100:e}function X$(e){let{success:t,successPercent:n}=e,r=n;return t&&"progress"in t&&(r=t.progress),t&&"percent"in t&&(r=t.percent),r}const nqt=e=>{let{percent:t,success:n,successPercent:r}=e;const i=$b(X$({success:n,successPercent:r}));return[i,$b($b(t)-i)]},rqt=e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:r}=t;return[r||eE.green,n||null]},Mz=(e,t,n)=>{var r,i,a,o;let s=-1,l=-1;if(t==="step"){const c=n.steps,u=n.strokeWidth;typeof e=="string"||typeof e>"u"?(s=e==="small"?2:14,l=u??8):typeof e=="number"?[s,l]=[e,e]:[s=14,l=8]=Array.isArray(e)?e:[e.width,e.height],s*=c}else if(t==="line"){const c=n?.strokeWidth;typeof e=="string"||typeof e>"u"?l=c||(e==="small"?6:8):typeof e=="number"?[s,l]=[e,e]:[s=-1,l=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[s,l]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[s,l]=[e,e]:Array.isArray(e)&&(s=(i=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&i!==void 0?i:120,l=(o=(a=e[0])!==null&&a!==void 0?a:e[1])!==null&&o!==void 0?o:120));return[s,l]},iqt=3,aqt=e=>iqt/e*100,oqt=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:i,gapDegree:a,width:o=120,type:s,children:l,success:c,size:u=o,steps:d}=e,[f,p]=Mz(u,"circle");let{strokeWidth:h}=e;h===void 0&&(h=Math.max(aqt(f),6));const m={width:f,height:p,fontSize:f*.15+6},g=b.useMemo(()=>{if(a||a===0)return a;if(s==="dashboard")return 75},[a,s]),v=nqt(e),y=i||s==="dashboard"&&"bottom"||void 0,_=Object.prototype.toString.call(e.strokeColor)==="[object Object]",S=rqt({success:c,strokeColor:e.strokeColor}),C=Oe(`${t}-inner`,{[`${t}-circle-gradient`]:_}),w=b.createElement(tqt,{steps:d,percent:d?v[1]:v,strokeWidth:h,trailWidth:h,strokeColor:d?S[1]:S,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:g,gapPosition:y}),x=f<=20,T=b.createElement("div",{className:C,style:m},w,!x&&l);return x?b.createElement(vr,{title:l},T):T},Z$="--progress-line-stroke-color",OVe="--progress-percent",rEe=e=>{const t=e?"100%":"-100%";return new Dr(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},sqt=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},Wr(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${Z$})`]},height:"100%",width:`calc(1 / var(${OVe}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${Ce(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:rEe(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:rEe(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},lqt=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},cqt=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},uqt=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},dqt=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),fqt=Kr("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=br(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[sqt(n),lqt(n),cqt(n),uqt(n)]},dqt);var pqt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const hqt=e=>{let t=[];return Object.keys(e).forEach(n=>{const r=parseFloat(n.replace(/%/g,""));isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((n,r)=>n.key-r.key),t.map(n=>{let{key:r,value:i}=n;return`${i} ${r}%`}).join(", ")},mqt=(e,t)=>{const{from:n=eE.blue,to:r=eE.blue,direction:i=t==="rtl"?"to left":"to right"}=e,a=pqt(e,["from","to","direction"]);if(Object.keys(a).length!==0){const s=hqt(a),l=`linear-gradient(${i}, ${s})`;return{background:l,[Z$]:l}}const o=`linear-gradient(${i}, ${n}, ${r})`;return{background:o,[Z$]:o}},gqt=e=>{const{prefixCls:t,direction:n,percent:r,size:i,strokeWidth:a,strokeColor:o,strokeLinecap:s="round",children:l,trailColor:c=null,percentPosition:u,success:d}=e,{align:f,type:p}=u,h=o&&typeof o!="string"?mqt(o,n):{[Z$]:o,background:o},m=s==="square"||s==="butt"?0:void 0,g=i??[-1,a||(i==="small"?6:8)],[v,y]=Mz(g,"line",{strokeWidth:a}),_={backgroundColor:c||void 0,borderRadius:m},S=Object.assign(Object.assign({width:`${$b(r)}%`,height:y,borderRadius:m},h),{[OVe]:$b(r)/100}),C=X$(e),w={width:`${$b(C)}%`,height:y,borderRadius:m,backgroundColor:d?.strokeColor},x={width:v<0?"100%":v},T=b.createElement("div",{className:`${t}-inner`,style:_},b.createElement("div",{className:Oe(`${t}-bg`,`${t}-bg-${p}`),style:S},p==="inner"&&l),C!==void 0&&b.createElement("div",{className:`${t}-success-bg`,style:w})),A=p==="outer"&&f==="start",I=p==="outer"&&f==="end";return p==="outer"&&f==="center"?b.createElement("div",{className:`${t}-layout-bottom`},T,l):b.createElement("div",{className:`${t}-outer`,style:x},A&&l,T,I&&l)},vqt=e=>{const{size:t,steps:n,percent:r=0,strokeWidth:i=8,strokeColor:a,trailColor:o=null,prefixCls:s,children:l}=e,c=Math.round(n*(r/100)),d=t??[t==="small"?2:14,i],[f,p]=Mz(d,"step",{steps:n,strokeWidth:i}),h=f/n,m=new Array(n);for(let g=0;g<n;g++){const v=Array.isArray(a)?a[g]:a;m[g]=b.createElement("div",{key:g,className:Oe(`${s}-steps-item`,{[`${s}-steps-item-active`]:g<=c-1}),style:{backgroundColor:g<=c-1?v:o,width:h,height:p}})}return b.createElement("div",{className:`${s}-steps-outer`},m,l)};var yqt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const bqt=["normal","exception","active","success"],TC=b.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,steps:a,strokeColor:o,percent:s=0,size:l="default",showInfo:c=!0,type:u="line",status:d,format:f,style:p,percentPosition:h={}}=e,m=yqt(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:g="end",type:v="outer"}=h,y=Array.isArray(o)?o[0]:o,_=typeof o=="string"||Array.isArray(o)?o:void 0,S=b.useMemo(()=>{if(y){const H=typeof y=="string"?y:Object.values(y)[0];return new ti(H).isLight()}return!1},[o]),C=b.useMemo(()=>{var H,M;const B=X$(e);return parseInt(B!==void 0?(H=B??0)===null||H===void 0?void 0:H.toString():(M=s??0)===null||M===void 0?void 0:M.toString(),10)},[s,e.success,e.successPercent]),w=b.useMemo(()=>!bqt.includes(d)&&C>=100?"success":d||"normal",[d,C]),{getPrefixCls:x,direction:T,progress:A}=b.useContext(Sn),I=x("progress",n),[R,N,P]=fqt(I),L=u==="line",$=L&&!a,D=b.useMemo(()=>{if(!c)return null;const H=X$(e);let M;const B=f||(F=>`${F}%`),k=L&&S&&v==="inner";return v==="inner"||f||w!=="exception"&&w!=="success"?M=B($b(s),$b(H)):w==="exception"?M=L?b.createElement(fv,null):b.createElement(Ic,null):w==="success"&&(M=L?b.createElement(pC,null):b.createElement(IE,null)),b.createElement("span",{className:Oe(`${I}-text`,{[`${I}-text-bright`]:k,[`${I}-text-${g}`]:$,[`${I}-text-${v}`]:$}),title:typeof M=="string"?M:void 0},M)},[c,s,C,w,u,I,f]);let z;u==="line"?z=a?b.createElement(vqt,Object.assign({},e,{strokeColor:_,prefixCls:I,steps:typeof a=="object"?a.count:a}),D):b.createElement(gqt,Object.assign({},e,{strokeColor:y,prefixCls:I,direction:T,percentPosition:{align:g,type:v}}),D):(u==="circle"||u==="dashboard")&&(z=b.createElement(oqt,Object.assign({},e,{strokeColor:y,prefixCls:I,progressStatus:w}),D));const U=Oe(I,`${I}-status-${w}`,{[`${I}-${u==="dashboard"&&"circle"||u}`]:u!=="line",[`${I}-inline-circle`]:u==="circle"&&Mz(l,"circle")[0]<=20,[`${I}-line`]:$,[`${I}-line-align-${g}`]:$,[`${I}-line-position-${v}`]:$,[`${I}-steps`]:a,[`${I}-show-info`]:c,[`${I}-${l}`]:typeof l=="string",[`${I}-rtl`]:T==="rtl"},A?.className,r,i,N,P);return R(b.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},A?.style),p),className:U,role:"progressbar","aria-valuenow":C,"aria-valuemin":0,"aria-valuemax":100},Xa(m,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),z))});var _qt=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick","render"];function iEe(e){return typeof e=="string"}function LVe(e){var t,n=e.className,r=e.prefixCls,i=e.style,a=e.active,o=e.status,s=e.iconPrefix,l=e.icon;e.wrapperStyle;var c=e.stepNumber,u=e.disabled,d=e.description,f=e.title,p=e.subTitle,h=e.progressDot,m=e.stepIcon,g=e.tailContent,v=e.icons,y=e.stepIndex,_=e.onStepClick,S=e.onClick,C=e.render,w=$n(e,_qt),x=!!_&&!u,T={};x&&(T.role="button",T.tabIndex=0,T.onClick=function(L){S?.(L),_(y)},T.onKeyDown=function(L){var $=L.which;($===Bt.ENTER||$===Bt.SPACE)&&_(y)});var A=function(){var $,D,z=Oe("".concat(r,"-icon"),"".concat(s,"icon"),($={},be($,"".concat(s,"icon-").concat(l),l&&iEe(l)),be($,"".concat(s,"icon-check"),!l&&o==="finish"&&(v&&!v.finish||!v)),be($,"".concat(s,"icon-cross"),!l&&o==="error"&&(v&&!v.error||!v)),$)),U=b.createElement("span",{className:"".concat(r,"-icon-dot")});return h?typeof h=="function"?D=b.createElement("span",{className:"".concat(r,"-icon")},h(U,{index:c-1,status:o,title:f,description:d})):D=b.createElement("span",{className:"".concat(r,"-icon")},U):l&&!iEe(l)?D=b.createElement("span",{className:"".concat(r,"-icon")},l):v&&v.finish&&o==="finish"?D=b.createElement("span",{className:"".concat(r,"-icon")},v.finish):v&&v.error&&o==="error"?D=b.createElement("span",{className:"".concat(r,"-icon")},v.error):l||o==="finish"||o==="error"?D=b.createElement("span",{className:z}):D=b.createElement("span",{className:"".concat(r,"-icon")},c),m&&(D=m({index:c-1,status:o,title:f,description:d,node:D})),D},I=o||"wait",R=Oe("".concat(r,"-item"),"".concat(r,"-item-").concat(I),n,(t={},be(t,"".concat(r,"-item-custom"),l),be(t,"".concat(r,"-item-active"),a),be(t,"".concat(r,"-item-disabled"),u===!0),t)),N=we({},i),P=b.createElement("div",Xe({},w,{className:R,style:N}),b.createElement("div",Xe({onClick:S},T,{className:"".concat(r,"-item-container")}),b.createElement("div",{className:"".concat(r,"-item-tail")},g),b.createElement("div",{className:"".concat(r,"-item-icon")},A()),b.createElement("div",{className:"".concat(r,"-item-content")},b.createElement("div",{className:"".concat(r,"-item-title")},f,p&&b.createElement("div",{title:typeof p=="string"?p:void 0,className:"".concat(r,"-item-subtitle")},p)),d&&b.createElement("div",{className:"".concat(r,"-item-description")},d))));return C&&(P=C(P)||null),P}var Sqt=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange","itemRender","items"];function ffe(e){var t,n=e.prefixCls,r=n===void 0?"rc-steps":n,i=e.style,a=i===void 0?{}:i,o=e.className;e.children;var s=e.direction,l=s===void 0?"horizontal":s,c=e.type,u=c===void 0?"default":c,d=e.labelPlacement,f=d===void 0?"horizontal":d,p=e.iconPrefix,h=p===void 0?"rc":p,m=e.status,g=m===void 0?"process":m,v=e.size,y=e.current,_=y===void 0?0:y,S=e.progressDot,C=S===void 0?!1:S,w=e.stepIcon,x=e.initial,T=x===void 0?0:x,A=e.icons,I=e.onChange,R=e.itemRender,N=e.items,P=N===void 0?[]:N,L=$n(e,Sqt),$=u==="navigation",D=u==="inline",z=D||C,U=D?"horizontal":l,H=D?void 0:v,M=z?"vertical":f,B=Oe(r,"".concat(r,"-").concat(U),o,(t={},be(t,"".concat(r,"-").concat(H),H),be(t,"".concat(r,"-label-").concat(M),U==="horizontal"),be(t,"".concat(r,"-dot"),!!z),be(t,"".concat(r,"-navigation"),$),be(t,"".concat(r,"-inline"),D),t)),k=function(q){I&&_!==q&&I(q)},F=function(q,W){var K=we({},q),J=T+W;return g==="error"&&W===_-1&&(K.className="".concat(r,"-next-error")),K.status||(J===_?K.status=g:J<_?K.status="finish":K.status="wait"),D&&(K.icon=void 0,K.subTitle=void 0),!K.render&&R&&(K.render=function(te){return R(K,te)}),se.createElement(LVe,Xe({},K,{active:J===_,stepNumber:J+1,stepIndex:J,key:J,prefixCls:r,iconPrefix:h,wrapperStyle:a,progressDot:z,stepIcon:w,icons:A,onStepClick:I&&k}))};return se.createElement("div",Xe({className:B,style:a},L),P.filter(function(G){return G}).map(F))}ffe.Step=LVe;const Eqt=e=>{const{componentCls:t,customIconTop:n,customIconSize:r,customIconFontSize:i}=e;return{[`${t}-item-custom`]:{[`> ${t}-item-container > ${t}-item-icon`]:{height:"auto",background:"none",border:0,[`> ${t}-icon`]:{top:n,width:r,height:r,fontSize:i,lineHeight:`${Ce(r)}`}}},[`&:not(${t}-vertical)`]:{[`${t}-item-custom`]:{[`${t}-item-icon`]:{width:"auto",background:"none"}}}}},Cqt=e=>{const{componentCls:t}=e,n=`${t}-item`;return{[`${t}-horizontal`]:{[`${n}-tail`]:{transform:"translateY(-50%)"}}}},wqt=e=>{const{componentCls:t,inlineDotSize:n,inlineTitleColor:r,inlineTailColor:i}=e,a=e.calc(e.paddingXS).add(e.lineWidth).equal(),o={[`${t}-item-container ${t}-item-content ${t}-item-title`]:{color:r}};return{[`&${t}-inline`]:{width:"auto",display:"inline-flex",[`${t}-item`]:{flex:"none","&-container":{padding:`${Ce(a)} ${Ce(e.paddingXXS)} 0`,margin:`0 ${Ce(e.calc(e.marginXXS).div(2).equal())}`,borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover},"&[role='button']:hover":{opacity:1}},"&-icon":{width:n,height:n,marginInlineStart:`calc(50% - ${Ce(e.calc(n).div(2).equal())})`,[`> ${t}-icon`]:{top:0},[`${t}-icon-dot`]:{borderRadius:e.calc(e.fontSizeSM).div(4).equal(),"&::after":{display:"none"}}},"&-content":{width:"auto",marginTop:e.calc(e.marginXS).sub(e.lineWidth).equal()},"&-title":{color:r,fontSize:e.fontSizeSM,lineHeight:e.lineHeightSM,fontWeight:"normal",marginBottom:e.calc(e.marginXXS).div(2).equal()},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:e.calc(n).div(2).add(a).equal(),transform:"translateY(-50%)","&:after":{width:"100%",height:e.lineWidth,borderRadius:0,marginInlineStart:0,background:i}},[`&:first-child ${t}-item-tail`]:{width:"50%",marginInlineStart:"50%"},[`&:last-child ${t}-item-tail`]:{display:"block",width:"50%"},"&-wait":Object.assign({[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:e.colorBorderBg,border:`${Ce(e.lineWidth)} ${e.lineType} ${i}`}},o),"&-finish":Object.assign({[`${t}-item-tail::after`]:{backgroundColor:i},[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:i,border:`${Ce(e.lineWidth)} ${e.lineType} ${i}`}},o),"&-error":o,"&-active, &-process":Object.assign({[`${t}-item-icon`]:{width:n,height:n,marginInlineStart:`calc(50% - ${Ce(e.calc(n).div(2).equal())})`,top:0}},o),[`&:not(${t}-item-active) > ${t}-item-container[role='button']:hover`]:{[`${t}-item-title`]:{color:r}}}}}},xqt=e=>{const{componentCls:t,iconSize:n,lineHeight:r,iconSizeSM:i}=e;return{[`&${t}-label-vertical`]:{[`${t}-item`]:{overflow:"visible","&-tail":{marginInlineStart:e.calc(n).div(2).add(e.controlHeightLG).equal(),padding:`0 ${Ce(e.paddingLG)}`},"&-content":{display:"block",width:e.calc(n).div(2).add(e.controlHeightLG).mul(2).equal(),marginTop:e.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:e.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:e.marginXXS,marginInlineStart:0,lineHeight:r}},[`&${t}-small:not(${t}-dot)`]:{[`${t}-item`]:{"&-icon":{marginInlineStart:e.calc(n).sub(i).div(2).add(e.controlHeightLG).equal()}}}}}},Tqt=e=>{const{componentCls:t,navContentMaxWidth:n,navArrowColor:r,stepsNavActiveColor:i,motionDurationSlow:a}=e;return{[`&${t}-navigation`]:{paddingTop:e.paddingSM,[`&${t}-small`]:{[`${t}-item`]:{"&-container":{marginInlineStart:e.calc(e.marginSM).mul(-1).equal()}}},[`${t}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:e.calc(e.margin).mul(-1).equal(),paddingBottom:e.paddingSM,textAlign:"start",transition:`opacity ${a}`,[`${t}-item-content`]:{maxWidth:n},[`${t}-item-title`]:Object.assign(Object.assign({maxWidth:"100%",paddingInlineEnd:0},Pp),{"&::after":{display:"none"}})},[`&:not(${t}-item-active)`]:{[`${t}-item-container[role='button']`]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:`calc(50% - ${Ce(e.calc(e.paddingSM).div(2).equal())})`,insetInlineStart:"100%",display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,borderTop:`${Ce(e.lineWidth)} ${e.lineType} ${r}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${Ce(e.lineWidth)} ${e.lineType} ${r}`,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:e.lineWidthBold,backgroundColor:i,transition:`width ${a}, inset-inline-start ${a}`,transitionTimingFunction:"ease-out",content:'""'}},[`${t}-item${t}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${t}-navigation${t}-vertical`]:{[`> ${t}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${t}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:e.calc(e.lineWidth).mul(3).equal(),height:`calc(100% - ${Ce(e.marginLG)})`},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:e.calc(e.controlHeight).mul(.25).equal(),height:e.calc(e.controlHeight).mul(.25).equal(),marginBottom:e.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},"&:last-child":{"&::after":{display:"none"}},[`> ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}},[`&${t}-navigation${t}-horizontal`]:{[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}}},Iqt=e=>{const{antCls:t,componentCls:n,iconSize:r,iconSizeSM:i,processIconColor:a,marginXXS:o,lineWidthBold:s,lineWidth:l,paddingXXS:c}=e,u=e.calc(r).add(e.calc(s).mul(4).equal()).equal(),d=e.calc(i).add(e.calc(e.lineWidth).mul(4).equal()).equal();return{[`&${n}-with-progress`]:{[`${n}-item`]:{paddingTop:c,[`&-process ${n}-item-container ${n}-item-icon ${n}-icon`]:{color:a}},[`&${n}-vertical > ${n}-item `]:{paddingInlineStart:c,[`> ${n}-item-container > ${n}-item-tail`]:{top:o,insetInlineStart:e.calc(r).div(2).sub(l).add(c).equal()}},[`&, &${n}-small`]:{[`&${n}-horizontal ${n}-item:first-child`]:{paddingBottom:c,paddingInlineStart:c}},[`&${n}-small${n}-vertical > ${n}-item > ${n}-item-container > ${n}-item-tail`]:{insetInlineStart:e.calc(i).div(2).sub(l).add(c).equal()},[`&${n}-label-vertical ${n}-item ${n}-item-tail`]:{top:e.calc(r).div(2).add(c).equal()},[`${n}-item-icon`]:{position:"relative",[`${t}-progress`]:{position:"absolute",insetInlineStart:"50%",top:"50%",transform:"translate(-50%, -50%)","&-inner":{width:`${Ce(u)} !important`,height:`${Ce(u)} !important`}}},[`&${n}-small`]:{[`&${n}-label-vertical ${n}-item ${n}-item-tail`]:{top:e.calc(i).div(2).add(c).equal()},[`${n}-item-icon ${t}-progress-inner`]:{width:`${Ce(d)} !important`,height:`${Ce(d)} !important`}}}}},Aqt=e=>{const{componentCls:t,descriptionMaxWidth:n,lineHeight:r,dotCurrentSize:i,dotSize:a,motionDurationSlow:o}=e;return{[`&${t}-dot, &${t}-dot${t}-small`]:{[`${t}-item`]:{"&-title":{lineHeight:r},"&-tail":{top:e.calc(e.dotSize).sub(e.calc(e.lineWidth).mul(3).equal()).div(2).equal(),width:"100%",marginTop:0,marginBottom:0,marginInline:`${Ce(e.calc(n).div(2).equal())} 0`,padding:0,"&::after":{width:`calc(100% - ${Ce(e.calc(e.marginSM).mul(2).equal())})`,height:e.calc(e.lineWidth).mul(3).equal(),marginInlineStart:e.marginSM}},"&-icon":{width:a,height:a,marginInlineStart:e.calc(e.descriptionMaxWidth).sub(a).div(2).equal(),paddingInlineEnd:0,lineHeight:`${Ce(a)}`,background:"transparent",border:0,[`${t}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${o}`,"&::after":{position:"absolute",top:e.calc(e.marginSM).mul(-1).equal(),insetInlineStart:e.calc(a).sub(e.calc(e.controlHeightLG).mul(1.5).equal()).div(2).equal(),width:e.calc(e.controlHeightLG).mul(1.5).equal(),height:e.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:n},[`&-process ${t}-item-icon`]:{position:"relative",top:e.calc(a).sub(i).div(2).equal(),width:i,height:i,lineHeight:`${Ce(i)}`,background:"none",marginInlineStart:e.calc(e.descriptionMaxWidth).sub(i).div(2).equal()},[`&-process ${t}-icon`]:{[`&:first-child ${t}-icon-dot`]:{insetInlineStart:0}}}},[`&${t}-vertical${t}-dot`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(a).div(2).equal(),marginInlineStart:0,background:"none"},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(i).div(2).equal(),top:0,insetInlineStart:e.calc(a).sub(i).div(2).equal(),marginInlineStart:0},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeight).sub(a).div(2).equal(),insetInlineStart:0,margin:0,padding:`${Ce(e.calc(a).add(e.paddingXS).equal())} 0 ${Ce(e.paddingXS)}`,"&::after":{marginInlineStart:e.calc(a).sub(e.lineWidth).div(2).equal()}},[`&${t}-small`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(a).div(2).equal()},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(i).div(2).equal()},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeightSM).sub(a).div(2).equal()}},[`${t}-item:first-child ${t}-icon-dot`]:{insetInlineStart:0},[`${t}-item-content`]:{width:"inherit"}}}},Rqt=e=>{const{componentCls:t}=e;return{[`&${t}-rtl`]:{direction:"rtl",[`${t}-item`]:{"&-subtitle":{float:"left"}},[`&${t}-navigation`]:{[`${t}-item::after`]:{transform:"rotate(-45deg)"}},[`&${t}-vertical`]:{[`> ${t}-item`]:{"&::after":{transform:"rotate(225deg)"},[`${t}-item-icon`]:{float:"right"}}},[`&${t}-dot`]:{[`${t}-item-icon ${t}-icon-dot, &${t}-small ${t}-item-icon ${t}-icon-dot`]:{float:"right"}}}}},Nqt=e=>{const{componentCls:t,iconSizeSM:n,fontSizeSM:r,fontSize:i,colorTextDescription:a}=e;return{[`&${t}-small`]:{[`&${t}-horizontal:not(${t}-label-vertical) ${t}-item`]:{paddingInlineStart:e.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${t}-item-icon`]:{width:n,height:n,marginTop:0,marginBottom:0,marginInline:`0 ${Ce(e.marginXS)}`,fontSize:r,lineHeight:`${Ce(n)}`,textAlign:"center",borderRadius:n},[`${t}-item-title`]:{paddingInlineEnd:e.paddingSM,fontSize:i,lineHeight:`${Ce(n)}`,"&::after":{top:e.calc(n).div(2).equal()}},[`${t}-item-description`]:{color:a,fontSize:i},[`${t}-item-tail`]:{top:e.calc(n).div(2).sub(e.paddingXXS).equal()},[`${t}-item-custom ${t}-item-icon`]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,[`> ${t}-icon`]:{fontSize:n,lineHeight:`${Ce(n)}`,transform:"none"}}}}},Oqt=e=>{const{componentCls:t,iconSizeSM:n,iconSize:r}=e;return{[`&${t}-vertical`]:{display:"flex",flexDirection:"column",[`> ${t}-item`]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",[`${t}-item-icon`]:{float:"left",marginInlineEnd:e.margin},[`${t}-item-content`]:{display:"block",minHeight:e.calc(e.controlHeight).mul(1.5).equal(),overflow:"hidden"},[`${t}-item-title`]:{lineHeight:`${Ce(r)}`},[`${t}-item-description`]:{paddingBottom:e.paddingSM}},[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(r).div(2).sub(e.lineWidth).equal(),width:e.lineWidth,height:"100%",padding:`${Ce(e.calc(e.marginXXS).mul(1.5).add(r).equal())} 0 ${Ce(e.calc(e.marginXXS).mul(1.5).equal())}`,"&::after":{width:e.lineWidth,height:"100%"}},[`> ${t}-item:not(:last-child) > ${t}-item-container > ${t}-item-tail`]:{display:"block"},[` > ${t}-item > ${t}-item-container > ${t}-item-content > ${t}-item-title`]:{"&::after":{display:"none"}},[`&${t}-small ${t}-item-container`]:{[`${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(n).div(2).sub(e.lineWidth).equal(),padding:`${Ce(e.calc(e.marginXXS).mul(1.5).add(n).equal())} 0 ${Ce(e.calc(e.marginXXS).mul(1.5).equal())}`},[`${t}-item-title`]:{lineHeight:`${Ce(n)}`}}}}},Lqt="wait",Pqt="process",kqt="finish",Mqt="error",hP=(e,t)=>{const n=`${t.componentCls}-item`,r=`${e}IconColor`,i=`${e}TitleColor`,a=`${e}DescriptionColor`,o=`${e}TailColor`,s=`${e}IconBgColor`,l=`${e}IconBorderColor`,c=`${e}DotColor`;return{[`${n}-${e} ${n}-icon`]:{backgroundColor:t[s],borderColor:t[l],[`> ${t.componentCls}-icon`]:{color:t[r],[`${t.componentCls}-icon-dot`]:{background:t[c]}}},[`${n}-${e}${n}-custom ${n}-icon`]:{[`> ${t.componentCls}-icon`]:{color:t[c]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-title`]:{color:t[i],"&::after":{backgroundColor:t[o]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-description`]:{color:t[a]},[`${n}-${e} > ${n}-container > ${n}-tail::after`]:{backgroundColor:t[o]}}},Dqt=e=>{const{componentCls:t,motionDurationSlow:n}=e,r=`${t}-item`,i=`${r}-icon`;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[r]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",[`> ${r}-container > ${r}-tail, > ${r}-container >  ${r}-content > ${r}-title::after`]:{display:"none"}}},[`${r}-container`]:{outline:"none","&:focus-visible":{[i]:Object.assign({},r0(e))}},[`${i}, ${r}-content`]:{display:"inline-block",verticalAlign:"top"},[i]:{width:e.iconSize,height:e.iconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:e.marginXS,fontSize:e.iconFontSize,fontFamily:e.fontFamily,lineHeight:`${Ce(e.iconSize)}`,textAlign:"center",borderRadius:e.iconSize,border:`${Ce(e.lineWidth)} ${e.lineType} transparent`,transition:`background-color ${n}, border-color ${n}`,[`${t}-icon`]:{position:"relative",top:e.iconTop,color:e.colorPrimary,lineHeight:1}},[`${r}-tail`]:{position:"absolute",top:e.calc(e.iconSize).div(2).equal(),insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:e.lineWidth,background:e.colorSplit,borderRadius:e.lineWidth,transition:`background ${n}`,content:'""'}},[`${r}-title`]:{position:"relative",display:"inline-block",paddingInlineEnd:e.padding,color:e.colorText,fontSize:e.fontSizeLG,lineHeight:`${Ce(e.titleLineHeight)}`,"&::after":{position:"absolute",top:e.calc(e.titleLineHeight).div(2).equal(),insetInlineStart:"100%",display:"block",width:9999,height:e.lineWidth,background:e.processTailColor,content:'""'}},[`${r}-subtitle`]:{display:"inline",marginInlineStart:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize},[`${r}-description`]:{color:e.colorTextDescription,fontSize:e.fontSize}},hP(Lqt,e)),hP(Pqt,e)),{[`${r}-process > ${r}-container > ${r}-title`]:{fontWeight:e.fontWeightStrong}}),hP(kqt,e)),hP(Mqt,e)),{[`${r}${t}-next-error > ${t}-item-title::after`]:{background:e.colorError},[`${r}-disabled`]:{cursor:"not-allowed"}})},$qt=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[`& ${t}-item`]:{[`&:not(${t}-item-active)`]:{[`& > ${t}-item-container[role='button']`]:{cursor:"pointer",[`${t}-item`]:{[`&-title, &-subtitle, &-description, &-icon ${t}-icon`]:{transition:`color ${n}`}},"&:hover":{[`${t}-item`]:{"&-title, &-subtitle, &-description":{color:e.colorPrimary}}}},[`&:not(${t}-item-process)`]:{[`& > ${t}-item-container[role='button']:hover`]:{[`${t}-item`]:{"&-icon":{borderColor:e.colorPrimary,[`${t}-icon`]:{color:e.colorPrimary}}}}}}},[`&${t}-horizontal:not(${t}-label-vertical)`]:{[`${t}-item`]:{paddingInlineStart:e.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},[`&:last-child ${t}-item-title`]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:e.descriptionMaxWidth,whiteSpace:"normal"}}}}},Fqt=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Wr(e)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),Dqt(e)),$qt(e)),Eqt(e)),Nqt(e)),Oqt(e)),Cqt(e)),xqt(e)),Aqt(e)),Tqt(e)),Rqt(e)),Iqt(e)),wqt(e))}},Bqt=e=>({titleLineHeight:e.controlHeight,customIconSize:e.controlHeight,customIconTop:0,customIconFontSize:e.controlHeightSM,iconSize:e.controlHeight,iconTop:-.5,iconFontSize:e.fontSize,iconSizeSM:e.fontSizeHeading3,dotSize:e.controlHeight/4,dotCurrentSize:e.controlHeightLG/4,navArrowColor:e.colorTextDisabled,navContentMaxWidth:"auto",descriptionMaxWidth:140,waitIconColor:e.wireframe?e.colorTextDisabled:e.colorTextLabel,waitIconBgColor:e.wireframe?e.colorBgContainer:e.colorFillContent,waitIconBorderColor:e.wireframe?e.colorTextDisabled:"transparent",finishIconBgColor:e.wireframe?e.colorBgContainer:e.controlItemBgActive,finishIconBorderColor:e.wireframe?e.colorPrimary:e.controlItemBgActive}),jqt=Kr("Steps",e=>{const{colorTextDisabled:t,controlHeightLG:n,colorTextLightSolid:r,colorText:i,colorPrimary:a,colorTextDescription:o,colorTextQuaternary:s,colorError:l,colorBorderSecondary:c,colorSplit:u}=e,d=br(e,{processIconColor:r,processTitleColor:i,processDescriptionColor:i,processIconBgColor:a,processIconBorderColor:a,processDotColor:a,processTailColor:u,waitTitleColor:o,waitDescriptionColor:o,waitTailColor:u,waitDotColor:t,finishIconColor:a,finishTitleColor:i,finishDescriptionColor:o,finishTailColor:a,finishDotColor:a,errorIconColor:r,errorTitleColor:l,errorDescriptionColor:l,errorTailColor:u,errorIconBgColor:l,errorIconBorderColor:l,errorDotColor:l,stepsNavActiveColor:a,stepsProgressSize:n,inlineDotSize:6,inlineTitleColor:s,inlineTailColor:c});return[Fqt(d)]},Bqt);function zqt(e){return e.filter(t=>t)}function Uqt(e,t){if(e)return e;const n=_l(t).map(r=>{if(b.isValidElement(r)){const{props:i}=r;return Object.assign({},i)}return null});return zqt(n)}var Hqt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const PVe=e=>{const{percent:t,size:n,className:r,rootClassName:i,direction:a,items:o,responsive:s=!0,current:l=0,children:c,style:u}=e,d=Hqt(e,["percent","size","className","rootClassName","direction","items","responsive","current","children","style"]),{xs:f}=wO(s),{getPrefixCls:p,direction:h,steps:m}=b.useContext(Sn),g=b.useMemo(()=>s&&f?"vertical":a,[f,a]),v=ks(n),y=p("steps",e.prefixCls),[_,S,C]=jqt(y),w=e.type==="inline",x=p("",e.iconPrefix),T=Uqt(o,c),A=w?void 0:t,I=Object.assign(Object.assign({},m?.style),u),R=Oe(m?.className,{[`${y}-rtl`]:h==="rtl",[`${y}-with-progress`]:A!==void 0},r,i,S,C),N={finish:b.createElement(IE,{className:`${y}-finish-icon`}),error:b.createElement(Ic,{className:`${y}-error-icon`})},P=$=>{let{node:D,status:z}=$;if(z==="process"&&A!==void 0){const U=v==="small"?32:40;return b.createElement("div",{className:`${y}-progress-icon`},b.createElement(TC,{type:"circle",percent:A,size:U,strokeWidth:4,format:()=>null}),D)}return D},L=($,D)=>$.description?b.createElement(vr,{title:$.description},D):D;return _(b.createElement(ffe,Object.assign({icons:N},d,{style:I,current:l,size:v,items:T,itemRender:w?L:void 0,stepIcon:P,direction:g,prefixCls:y,iconPrefix:x,className:R})))};PVe.Step=ffe.Step;var Vqt=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],kVe=b.forwardRef(function(e,t){var n,r=e.prefixCls,i=r===void 0?"rc-switch":r,a=e.className,o=e.checked,s=e.defaultChecked,l=e.disabled,c=e.loadingIcon,u=e.checkedChildren,d=e.unCheckedChildren,f=e.onClick,p=e.onChange,h=e.onKeyDown,m=$n(e,Vqt),g=qr(!1,{value:o,defaultValue:s}),v=Fe(g,2),y=v[0],_=v[1];function S(T,A){var I=y;return l||(I=T,_(I),p?.(I,A)),I}function C(T){T.which===Bt.LEFT?S(!1,T):T.which===Bt.RIGHT&&S(!0,T),h?.(T)}function w(T){var A=S(!y,T);f?.(A,T)}var x=Oe(i,a,(n={},be(n,"".concat(i,"-checked"),y),be(n,"".concat(i,"-disabled"),l),n));return b.createElement("button",Xe({},m,{type:"button",role:"switch","aria-checked":y,disabled:l,className:x,ref:t,onKeyDown:C,onClick:w}),c,b.createElement("span",{className:"".concat(i,"-inner")},b.createElement("span",{className:"".concat(i,"-inner-checked")},u),b.createElement("span",{className:"".concat(i,"-inner-unchecked")},d)))});kVe.displayName="Switch";const Gqt=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:i,innerMinMarginSM:a,innerMaxMarginSM:o,handleSizeSM:s,calc:l}=e,c=`${t}-inner`,u=Ce(l(s).add(l(r).mul(2)).equal()),d=Ce(l(o).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:i,height:n,lineHeight:Ce(n),[`${t}-inner`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${c}-checked, ${c}-unchecked`]:{minHeight:n},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${c}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:l(l(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:o,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${Ce(l(s).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(e.marginXXS).div(2).equal(),marginInlineEnd:l(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:l(e.marginXXS).div(2).equal()}}}}}}},qqt=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},Wqt=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:i,handleSize:a,calc:o}=e,s=`${t}-handle`;return{[t]:{[s]:{position:"absolute",top:n,insetInlineStart:n,width:a,height:a,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:o(a).div(2).equal(),boxShadow:i,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${Ce(o(a).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},Yqt=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:i,innerMaxMargin:a,handleSize:o,calc:s}=e,l=`${t}-inner`,c=Ce(s(o).add(s(r).mul(2)).equal()),u=Ce(s(a).mul(2).equal());return{[t]:{[l]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:a,paddingInlineEnd:i,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${l}-checked, ${l}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${c} - ${u})`,marginInlineEnd:`calc(100% - ${c} + ${u})`},[`${l}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${l}`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${c} + ${u})`,marginInlineEnd:`calc(-100% + ${c} - ${u})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:s(r).mul(2).equal(),marginInlineEnd:s(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:s(r).mul(-1).mul(2).equal(),marginInlineEnd:s(r).mul(2).equal()}}}}}},Kqt=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Wr(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:`${Ce(n)}`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),kp(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},Xqt=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:i}=e,a=t*n,o=r/2,s=2,l=a-s*2,c=o-s*2;return{trackHeight:a,trackHeightSM:o,trackMinWidth:l*2+s*4,trackMinWidthSM:c*2+s*2,trackPadding:s,handleBg:i,handleSize:l,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new ti("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+s+s*2,innerMinMarginSM:c/2,innerMaxMarginSM:c+s+s*2}},Zqt=Kr("Switch",e=>{const t=br(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Kqt(t),Yqt(t),Wqt(t),qqt(t),Gqt(t)]},Xqt);var Qqt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Jqt=b.forwardRef((e,t)=>{const{prefixCls:n,size:r,disabled:i,loading:a,className:o,rootClassName:s,style:l,checked:c,value:u,defaultChecked:d,defaultValue:f,onChange:p}=e,h=Qqt(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[m,g]=qr(!1,{value:c??u,defaultValue:d??f}),{getPrefixCls:v,direction:y,switch:_}=b.useContext(Sn),S=b.useContext(wc),C=(i??S)||a,w=v("switch",n),x=b.createElement("div",{className:`${w}-handle`},a&&b.createElement(Np,{className:`${w}-loading-icon`})),[T,A,I]=Zqt(w),R=ks(r),N=Oe(_?.className,{[`${w}-small`]:R==="small",[`${w}-loading`]:a,[`${w}-rtl`]:y==="rtl"},o,s,A,I),P=Object.assign(Object.assign({},_?.style),l),L=function(){g(arguments.length<=0?void 0:arguments[0]),p?.apply(void 0,arguments)};return T(b.createElement(gO,{component:"Switch"},b.createElement(kVe,Object.assign({},h,{checked:m,onChange:L,prefixCls:w,className:N,style:P,disabled:C,ref:t,loadingIcon:x}))))}),$p=Jqt;$p.__ANT_SWITCH=!0;var Ky={},MO="rc-table-internal-hook";function pfe(e){var t=b.createContext(void 0),n=function(i){var a=i.value,o=i.children,s=b.useRef(a);s.current=a;var l=b.useState(function(){return{getValue:function(){return s.current},listeners:new Set}}),c=Fe(l,1),u=c[0];return kr(function(){Ou.unstable_batchedUpdates(function(){u.listeners.forEach(function(d){d(a)})})},[a]),b.createElement(t.Provider,{value:u},o)};return{Context:t,Provider:n,defaultValue:e}}function nu(e,t){var n=gr(typeof t=="function"?t:function(d){if(t===void 0)return d;if(!Array.isArray(t))return d[t];var f={};return t.forEach(function(p){f[p]=d[p]}),f}),r=b.useContext(e?.Context),i=r||{},a=i.listeners,o=i.getValue,s=b.useRef();s.current=n(r?o():e?.defaultValue);var l=b.useState({}),c=Fe(l,2),u=c[1];return kr(function(){if(!r)return;function d(f){var p=n(f);Op(s.current,p,!0)||u({})}return a.add(d),function(){a.delete(d)}},[r]),s.current}function eWt(){var e=b.createContext(null);function t(){return b.useContext(e)}function n(i,a){var o=sm(i),s=function(c,u){var d=o?{ref:u}:{},f=b.useRef(0),p=b.useRef(c),h=t();return h!==null?b.createElement(i,Xe({},c,d)):((!a||a(p.current,c))&&(f.current+=1),p.current=c,b.createElement(e.Provider,{value:f.current},b.createElement(i,Xe({},c,d))))};return o?b.forwardRef(s):s}function r(i,a){var o=sm(i),s=function(c,u){var d=o?{ref:u}:{};return t(),b.createElement(i,Xe({},c,d))};return o?b.memo(b.forwardRef(s),a):b.memo(s,a)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var hfe=eWt(),MVe=hfe.makeImmutable,_T=hfe.responseImmutable,tWt=hfe.useImmutableMark,$d=pfe(),DVe=b.createContext({renderWithProps:!1}),nWt="RC_TABLE_KEY";function rWt(e){return e==null?[]:Array.isArray(e)?e:[e]}function Dz(e){var t=[],n={};return e.forEach(function(r){for(var i=r||{},a=i.key,o=i.dataIndex,s=a||rWt(o).join("-")||nWt;n[s];)s="".concat(s,"_next");n[s]=!0,t.push(s)}),t}function Tie(e){return e!=null}function iWt(e){return e&&cn(e)==="object"&&!Array.isArray(e)&&!b.isValidElement(e)}function aWt(e,t,n,r,i,a){var o=b.useContext(DVe),s=tWt(),l=hC(function(){if(Tie(r))return[r];var c=t==null||t===""?[]:Array.isArray(t)?t:[t],u=Sf(e,c),d=u,f=void 0;if(i){var p=i(u,e,n);iWt(p)?(d=p.children,f=p.props,o.renderWithProps=!0):d=p}return[d,f]},[s,e,r,t,i,n],function(c,u){if(a){var d=Fe(c,2),f=d[1],p=Fe(u,2),h=p[1];return a(h,f)}return o.renderWithProps?!0:!Op(c,u,!0)});return l}function oWt(e,t,n,r){var i=e+t-1;return e<=r&&i>=n}function sWt(e,t){return nu($d,function(n){var r=oWt(e,t||1,n.hoverStartRow,n.hoverEndRow);return[r,n.onHover]})}var lWt=function(t){var n=t.ellipsis,r=t.rowType,i=t.children,a,o=n===!0?{showTitle:!0}:n;return o&&(o.showTitle||r==="header")&&(typeof i=="string"||typeof i=="number"?a=i.toString():b.isValidElement(i)&&typeof i.props.children=="string"&&(a=i.props.children)),a};function cWt(e){var t,n,r,i,a,o,s,l,c=e.component,u=e.children,d=e.ellipsis,f=e.scope,p=e.prefixCls,h=e.className,m=e.align,g=e.record,v=e.render,y=e.dataIndex,_=e.renderIndex,S=e.shouldCellUpdate,C=e.index,w=e.rowType,x=e.colSpan,T=e.rowSpan,A=e.fixLeft,I=e.fixRight,R=e.firstFixLeft,N=e.lastFixLeft,P=e.firstFixRight,L=e.lastFixRight,$=e.appendNode,D=e.additionalProps,z=D===void 0?{}:D,U=e.isSticky,H="".concat(p,"-cell"),M=nu($d,["supportSticky","allColumnsFixedLeft","rowHoverable"]),B=M.supportSticky,k=M.allColumnsFixedLeft,F=M.rowHoverable,G=aWt(g,y,_,u,v,S),q=Fe(G,2),W=q[0],K=q[1],J={},te=typeof A=="number"&&B,ae=typeof I=="number"&&B;te&&(J.position="sticky",J.left=A),ae&&(J.position="sticky",J.right=I);var re=(t=(n=(r=K?.colSpan)!==null&&r!==void 0?r:z.colSpan)!==null&&n!==void 0?n:x)!==null&&t!==void 0?t:1,ue=(i=(a=(o=K?.rowSpan)!==null&&o!==void 0?o:z.rowSpan)!==null&&a!==void 0?a:T)!==null&&i!==void 0?i:1,de=sWt(C,ue),fe=Fe(de,2),ge=fe[0],oe=fe[1],Ee=gr(function(xe){var De;g&&oe(C,C+ue-1),z==null||(De=z.onMouseEnter)===null||De===void 0||De.call(z,xe)}),ce=gr(function(xe){var De;g&&oe(-1,-1),z==null||(De=z.onMouseLeave)===null||De===void 0||De.call(z,xe)});if(re===0||ue===0)return null;var he=(s=z.title)!==null&&s!==void 0?s:lWt({rowType:w,ellipsis:d,children:W}),ye=Oe(H,h,(l={},be(l,"".concat(H,"-fix-left"),te&&B),be(l,"".concat(H,"-fix-left-first"),R&&B),be(l,"".concat(H,"-fix-left-last"),N&&B),be(l,"".concat(H,"-fix-left-all"),N&&k&&B),be(l,"".concat(H,"-fix-right"),ae&&B),be(l,"".concat(H,"-fix-right-first"),P&&B),be(l,"".concat(H,"-fix-right-last"),L&&B),be(l,"".concat(H,"-ellipsis"),d),be(l,"".concat(H,"-with-append"),$),be(l,"".concat(H,"-fix-sticky"),(te||ae)&&U&&B),be(l,"".concat(H,"-row-hover"),!K&&ge),l),z.className,K?.className),me={};m&&(me.textAlign=m);var _e=we(we(we(we({},J),z.style),me),K?.style),Te=W;return cn(Te)==="object"&&!Array.isArray(Te)&&!b.isValidElement(Te)&&(Te=null),d&&(N||P)&&(Te=b.createElement("span",{className:"".concat(H,"-content")},Te)),b.createElement(c,Xe({},K,z,{className:ye,style:_e,title:he,scope:f,onMouseEnter:F?Ee:void 0,onMouseLeave:F?ce:void 0,colSpan:re!==1?re:null,rowSpan:ue!==1?ue:null}),$,Te)}const IC=b.memo(cWt);function mfe(e,t,n,r,i){var a=n[e]||{},o=n[t]||{},s,l;a.fixed==="left"?s=r.left[i==="rtl"?t:e]:o.fixed==="right"&&(l=r.right[i==="rtl"?e:t]);var c=!1,u=!1,d=!1,f=!1,p=n[t+1],h=n[e-1],m=p&&!p.fixed||h&&!h.fixed||n.every(function(S){return S.fixed==="left"});if(i==="rtl"){if(s!==void 0){var g=h&&h.fixed==="left";f=!g&&m}else if(l!==void 0){var v=p&&p.fixed==="right";d=!v&&m}}else if(s!==void 0){var y=p&&p.fixed==="left";c=!y&&m}else if(l!==void 0){var _=h&&h.fixed==="right";u=!_&&m}return{fixLeft:s,fixRight:l,lastFixLeft:c,firstFixRight:u,lastFixRight:d,firstFixLeft:f,isSticky:r.isSticky}}var $Ve=b.createContext({});function uWt(e){var t=e.className,n=e.index,r=e.children,i=e.colSpan,a=i===void 0?1:i,o=e.rowSpan,s=e.align,l=nu($d,["prefixCls","direction"]),c=l.prefixCls,u=l.direction,d=b.useContext($Ve),f=d.scrollColumnIndex,p=d.stickyOffsets,h=d.flattenColumns,m=n+a-1,g=m+1===f?a+1:a,v=mfe(n,n+g-1,h,p,u);return b.createElement(IC,Xe({className:t,index:n,component:"td",prefixCls:c,record:null,dataIndex:null,align:s,colSpan:g,rowSpan:o,render:function(){return r}},v))}var dWt=["children"];function fWt(e){var t=e.children,n=$n(e,dWt);return b.createElement("tr",n,t)}function $z(e){var t=e.children;return t}$z.Row=fWt;$z.Cell=uWt;function pWt(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,i=nu($d,"prefixCls"),a=r.length-1,o=r[a],s=b.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:o!=null&&o.scrollbar?a:null}},[o,r,a,n]);return b.createElement($Ve.Provider,{value:s},b.createElement("tfoot",{className:"".concat(i,"-summary")},t))}const mP=_T(pWt);var FVe=$z;function hWt(e){return null}function mWt(e){return null}function BVe(e,t,n,r,i,a,o){e.push({record:t,indent:n,index:o});var s=a(t),l=i?.has(s);if(t&&Array.isArray(t[r])&&l)for(var c=0;c<t[r].length;c+=1)BVe(e,t[r][c],n+1,r,i,a,c)}function jVe(e,t,n,r){var i=b.useMemo(function(){if(n!=null&&n.size){for(var a=[],o=0;o<e?.length;o+=1){var s=e[o];BVe(a,s,0,t,n,r,o)}return a}return e?.map(function(l,c){return{record:l,indent:0,index:c}})},[e,t,n,r]);return i}function zVe(e,t,n,r){var i=nu($d,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),a=i.flattenColumns,o=i.expandableType,s=i.expandedKeys,l=i.childrenColumnName,c=i.onTriggerExpand,u=i.rowExpandable,d=i.onRow,f=i.expandRowByClick,p=i.rowClassName,h=o==="nest",m=o==="row"&&(!u||u(e)),g=m||h,v=s&&s.has(t),y=l&&e&&e[l],_=gr(c),S=d?.(e,n),C=S?.onClick,w=function(I){f&&g&&c(e,I);for(var R=arguments.length,N=new Array(R>1?R-1:0),P=1;P<R;P++)N[P-1]=arguments[P];C?.apply(void 0,[I].concat(N))},x;typeof p=="string"?x=p:typeof p=="function"&&(x=p(e,n,r));var T=Dz(a);return we(we({},i),{},{columnsKey:T,nestExpandable:h,expanded:v,hasNestChildren:y,record:e,onTriggerExpand:_,rowSupportExpand:m,expandable:g,rowProps:we(we({},S),{},{className:Oe(x,S?.className),onClick:w})})}function UVe(e){var t=e.prefixCls,n=e.children,r=e.component,i=e.cellComponent,a=e.className,o=e.expanded,s=e.colSpan,l=e.isEmpty,c=nu($d,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),u=c.scrollbarSize,d=c.fixHeader,f=c.fixColumn,p=c.componentWidth,h=c.horizonScroll,m=n;return(l?h&&p:f)&&(m=b.createElement("div",{style:{width:p-(d?u:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},m)),b.createElement(r,{className:a,style:{display:o?null:"none"}},b.createElement(IC,{component:i,prefixCls:t,colSpan:s},m))}function HVe(e,t,n,r,i){var a=e.record,o=e.prefixCls,s=e.columnsKey,l=e.fixedInfoList,c=e.expandIconColumnIndex,u=e.nestExpandable,d=e.indentSize,f=e.expandIcon,p=e.expanded,h=e.hasNestChildren,m=e.onTriggerExpand,g=s[n],v=l[n],y;n===(c||0)&&u&&(y=b.createElement(b.Fragment,null,b.createElement("span",{style:{paddingLeft:"".concat(d*r,"px")},className:"".concat(o,"-row-indent indent-level-").concat(r)}),f({prefixCls:o,expanded:p,expandable:h,record:a,onExpand:m})));var _;return t.onCell&&(_=t.onCell(a,i)),{key:g,fixedInfo:v,appendCellNode:y,additionalCellProps:_||{}}}function gWt(e){var t=e.className,n=e.style,r=e.record,i=e.index,a=e.renderIndex,o=e.rowKey,s=e.indent,l=s===void 0?0:s,c=e.rowComponent,u=e.cellComponent,d=e.scopeCellComponent,f=zVe(r,o,i,l),p=f.prefixCls,h=f.flattenColumns,m=f.expandedRowClassName,g=f.expandedRowRender,v=f.rowProps,y=f.expanded,_=f.rowSupportExpand,S=b.useRef(!1);S.current||(S.current=y);var C=m&&m(r,i,l),w=b.createElement(c,Xe({},v,{"data-row-key":o,className:Oe(t,"".concat(p,"-row"),"".concat(p,"-row-level-").concat(l),v?.className,l>=1?C:""),style:we(we({},n),v?.style)}),h.map(function(A,I){var R=A.render,N=A.dataIndex,P=A.className,L=HVe(f,A,I,l,i),$=L.key,D=L.fixedInfo,z=L.appendCellNode,U=L.additionalCellProps;return b.createElement(IC,Xe({className:P,ellipsis:A.ellipsis,align:A.align,scope:A.rowScope,component:A.rowScope?d:u,prefixCls:p,key:$,record:r,index:i,renderIndex:a,dataIndex:N,render:R,shouldCellUpdate:A.shouldCellUpdate},D,{appendNode:z,additionalProps:U}))})),x;if(_&&(S.current||y)){var T=g(r,i,l+1,y);x=b.createElement(UVe,{expanded:y,className:Oe("".concat(p,"-expanded-row"),"".concat(p,"-expanded-row-level-").concat(l+1),C),prefixCls:p,component:c,cellComponent:u,colSpan:h.length,isEmpty:!1},T)}return b.createElement(b.Fragment,null,w,x)}const vWt=_T(gWt);function yWt(e){var t=e.columnKey,n=e.onColumnResize,r=b.useRef();return b.useEffect(function(){r.current&&n(t,r.current.offsetWidth)},[]),b.createElement(Sc,{data:t},b.createElement("td",{ref:r,style:{padding:0,border:0,height:0}},b.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function bWt(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize;return b.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0}},b.createElement(Sc.Collection,{onBatchResize:function(a){a.forEach(function(o){var s=o.data,l=o.size;r(s,l.offsetWidth)})}},n.map(function(i){return b.createElement(yWt,{key:i,columnKey:i,onColumnResize:r})})))}function _Wt(e){var t=e.data,n=e.measureColumnWidth,r=nu($d,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),i=r.prefixCls,a=r.getComponent,o=r.onColumnResize,s=r.flattenColumns,l=r.getRowKey,c=r.expandedKeys,u=r.childrenColumnName,d=r.emptyNode,f=jVe(t,u,c,l),p=b.useRef({renderWithProps:!1}),h=a(["body","wrapper"],"tbody"),m=a(["body","row"],"tr"),g=a(["body","cell"],"td"),v=a(["body","cell"],"th"),y;t.length?y=f.map(function(S,C){var w=S.record,x=S.indent,T=S.index,A=l(w,C);return b.createElement(vWt,{key:A,rowKey:A,record:w,index:C,renderIndex:T,rowComponent:m,cellComponent:g,scopeCellComponent:v,getRowKey:l,indent:x})}):y=b.createElement(UVe,{expanded:!0,className:"".concat(i,"-placeholder"),prefixCls:i,component:m,cellComponent:g,colSpan:s.length,isEmpty:!0},d);var _=Dz(s);return b.createElement(DVe.Provider,{value:p.current},b.createElement(h,{className:"".concat(i,"-tbody")},n&&b.createElement(bWt,{prefixCls:i,columnsKey:_,onColumnResize:o}),y))}const SWt=_T(_Wt);var EWt=["expandable"],fR="RC_TABLE_INTERNAL_COL_DEFINE";function CWt(e){var t=e.expandable,n=$n(e,EWt),r;return"expandable"in e?r=we(we({},n),t):r=n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}var wWt=["columnType"];function VVe(e){for(var t=e.colWidths,n=e.columns,r=e.columCount,i=[],a=r||n.length,o=!1,s=a-1;s>=0;s-=1){var l=t[s],c=n&&n[s],u=c&&c[fR];if(l||u||o){var d=u||{};d.columnType;var f=$n(d,wWt);i.unshift(b.createElement("col",Xe({key:s,style:{width:l}},f))),o=!0}}return b.createElement("colgroup",null,i)}var xWt=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function TWt(e,t){return b.useMemo(function(){for(var n=[],r=0;r<t;r+=1){var i=e[r];if(i!==void 0)n[r]=i;else return null}return n},[e.join("_"),t])}var IWt=b.forwardRef(function(e,t){var n=e.className,r=e.noData,i=e.columns,a=e.flattenColumns,o=e.colWidths,s=e.columCount,l=e.stickyOffsets,c=e.direction,u=e.fixHeader,d=e.stickyTopOffset,f=e.stickyBottomOffset,p=e.stickyClassName,h=e.onScroll,m=e.maxContentScroll,g=e.children,v=$n(e,xWt),y=nu($d,["prefixCls","scrollbarSize","isSticky","getComponent"]),_=y.prefixCls,S=y.scrollbarSize,C=y.isSticky,w=y.getComponent,x=w(["header","table"],"table"),T=C&&!u?0:S,A=b.useRef(null),I=b.useCallback(function(U){bN(t,U),bN(A,U)},[]);b.useEffect(function(){var U;function H(M){var B=M,k=B.currentTarget,F=B.deltaX;F&&(h({currentTarget:k,scrollLeft:k.scrollLeft+F}),M.preventDefault())}return(U=A.current)===null||U===void 0||U.addEventListener("wheel",H,{passive:!1}),function(){var M;(M=A.current)===null||M===void 0||M.removeEventListener("wheel",H)}},[]);var R=b.useMemo(function(){return a.every(function(U){return U.width})},[a]),N=a[a.length-1],P={fixed:N?N.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(_,"-cell-scrollbar")}}},L=b.useMemo(function(){return T?[].concat(Tt(i),[P]):i},[T,i]),$=b.useMemo(function(){return T?[].concat(Tt(a),[P]):a},[T,a]),D=b.useMemo(function(){var U=l.right,H=l.left;return we(we({},l),{},{left:c==="rtl"?[].concat(Tt(H.map(function(M){return M+T})),[0]):H,right:c==="rtl"?U:[].concat(Tt(U.map(function(M){return M+T})),[0]),isSticky:C})},[T,l,C]),z=TWt(o,s);return b.createElement("div",{style:we({overflow:"hidden"},C?{top:d,bottom:f}:{}),ref:I,className:Oe(n,be({},p,!!p))},b.createElement(x,{style:{tableLayout:"fixed",visibility:r||z?null:"hidden"}},(!r||!m||R)&&b.createElement(VVe,{colWidths:z?[].concat(Tt(z),[T]):[],columCount:s+1,columns:$}),g(we(we({},v),{},{stickyOffsets:D,columns:L,flattenColumns:$}))))});const aEe=b.memo(IWt);var AWt=function(t){var n=t.cells,r=t.stickyOffsets,i=t.flattenColumns,a=t.rowComponent,o=t.cellComponent,s=t.onHeaderRow,l=t.index,c=nu($d,["prefixCls","direction"]),u=c.prefixCls,d=c.direction,f;s&&(f=s(n.map(function(h){return h.column}),l));var p=Dz(n.map(function(h){return h.column}));return b.createElement(a,f,n.map(function(h,m){var g=h.column,v=mfe(h.colStart,h.colEnd,i,r,d),y;return g&&g.onHeaderCell&&(y=h.column.onHeaderCell(g)),b.createElement(IC,Xe({},h,{scope:g.title?h.colSpan>1?"colgroup":"col":null,ellipsis:g.ellipsis,align:g.align,component:o,prefixCls:u,key:p[m]},v,{additionalProps:y,rowType:"header"}))}))};function RWt(e){var t=[];function n(o,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[l]=t[l]||[];var c=s,u=o.filter(Boolean).map(function(d){var f={key:d.key,className:d.className||"",children:d.title,column:d,colStart:c},p=1,h=d.children;return h&&h.length>0&&(p=n(h,c,l+1).reduce(function(m,g){return m+g},0),f.hasSubColumns=!0),"colSpan"in d&&(p=d.colSpan),"rowSpan"in d&&(f.rowSpan=d.rowSpan),f.colSpan=p,f.colEnd=f.colStart+p-1,t[l].push(f),c+=p,p});return u}n(e,0);for(var r=t.length,i=function(s){t[s].forEach(function(l){!("rowSpan"in l)&&!l.hasSubColumns&&(l.rowSpan=r-s)})},a=0;a<r;a+=1)i(a);return t}var NWt=function(t){var n=t.stickyOffsets,r=t.columns,i=t.flattenColumns,a=t.onHeaderRow,o=nu($d,["prefixCls","getComponent"]),s=o.prefixCls,l=o.getComponent,c=b.useMemo(function(){return RWt(r)},[r]),u=l(["header","wrapper"],"thead"),d=l(["header","row"],"tr"),f=l(["header","cell"],"th");return b.createElement(u,{className:"".concat(s,"-thead")},c.map(function(p,h){var m=b.createElement(AWt,{key:h,flattenColumns:i,cells:p,stickyOffsets:n,rowComponent:d,cellComponent:f,onHeaderRow:a,index:h});return m}))};const oEe=_T(NWt);function sEe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof t=="number"?t:t.endsWith("%")?e*parseFloat(t)/100:null}function OWt(e,t,n){return b.useMemo(function(){if(t&&t>0){var r=0,i=0;e.forEach(function(f){var p=sEe(t,f.width);p?r+=p:i+=1});var a=Math.max(t,n),o=Math.max(a-r,i),s=i,l=o/i,c=0,u=e.map(function(f){var p=we({},f),h=sEe(t,p.width);if(h)p.width=h;else{var m=Math.floor(l);p.width=s===1?o:m,o-=m,s-=1}return c+=p.width,p});if(c<a){var d=a/c;o=a,u.forEach(function(f,p){var h=Math.floor(f.width*d);f.width=p===u.length-1?o:h,o-=h})}return[u,Math.max(c,a)]}return[e,t]},[e,t,n])}var LWt=["children"],PWt=["fixed"];function gfe(e){return _l(e).filter(function(t){return b.isValidElement(t)}).map(function(t){var n=t.key,r=t.props,i=r.children,a=$n(r,LWt),o=we({key:n},a);return i&&(o.children=gfe(i)),o})}function GVe(e){return e.filter(function(t){return t&&cn(t)==="object"&&!t.hidden}).map(function(t){var n=t.children;return n&&n.length>0?we(we({},t),{},{children:GVe(n)}):t})}function Iie(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(n){return n&&cn(n)==="object"}).reduce(function(n,r,i){var a=r.fixed,o=a===!0?"left":a,s="".concat(t,"-").concat(i),l=r.children;return l&&l.length>0?[].concat(Tt(n),Tt(Iie(l,s).map(function(c){return we({fixed:o},c)}))):[].concat(Tt(n),[we(we({key:s},r),{},{fixed:o})])},[])}function kWt(e){return e.map(function(t){var n=t.fixed,r=$n(t,PWt),i=n;return n==="left"?i="right":n==="right"&&(i="left"),we({fixed:i},r)})}function MWt(e,t){var n=e.prefixCls,r=e.columns,i=e.children,a=e.expandable,o=e.expandedKeys,s=e.columnTitle,l=e.getRowKey,c=e.onTriggerExpand,u=e.expandIcon,d=e.rowExpandable,f=e.expandIconColumnIndex,p=e.direction,h=e.expandRowByClick,m=e.columnWidth,g=e.fixed,v=e.scrollWidth,y=e.clientWidth,_=b.useMemo(function(){var N=r||gfe(i)||[];return GVe(N.slice())},[r,i]),S=b.useMemo(function(){if(a){var N,P=_.slice();if(!P.includes(Ky)){var L=f||0;L>=0&&P.splice(L,0,Ky)}var $=P.indexOf(Ky);P=P.filter(function(H,M){return H!==Ky||M===$});var D=_[$],z;(g==="left"||g)&&!f?z="left":(g==="right"||g)&&f===_.length?z="right":z=D?D.fixed:null;var U=(N={},be(N,fR,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),be(N,"title",s),be(N,"fixed",z),be(N,"className","".concat(n,"-row-expand-icon-cell")),be(N,"width",m),be(N,"render",function(M,B,k){var F=l(B,k),G=o.has(F),q=d?d(B):!0,W=u({prefixCls:n,expanded:G,expandable:q,record:B,onExpand:c});return h?b.createElement("span",{onClick:function(J){return J.stopPropagation()}},W):W}),N);return P.map(function(H){return H===Ky?U:H})}return _.filter(function(H){return H!==Ky})},[a,_,l,o,u,p]),C=b.useMemo(function(){var N=S;return t&&(N=t(N)),N.length||(N=[{render:function(){return null}}]),N},[t,S,p]),w=b.useMemo(function(){return p==="rtl"?kWt(Iie(C)):Iie(C)},[C,p,v]),x=b.useMemo(function(){for(var N=-1,P=w.length-1;P>=0;P-=1){var L=w[P].fixed;if(L==="left"||L===!0){N=P;break}}if(N>=0)for(var $=0;$<=N;$+=1){var D=w[$].fixed;if(D!=="left"&&D!==!0)return!0}var z=w.findIndex(function(M){var B=M.fixed;return B==="right"});if(z>=0)for(var U=z;U<w.length;U+=1){var H=w[U].fixed;if(H!=="right")return!0}return!1},[w]),T=OWt(w,v,y),A=Fe(T,2),I=A[0],R=A[1];return[C,I,R,x]}function DWt(e){var t,n=e.prefixCls,r=e.record,i=e.onExpand,a=e.expanded,o=e.expandable,s="".concat(n,"-row-expand-icon");if(!o)return b.createElement("span",{className:Oe(s,"".concat(n,"-row-spaced"))});var l=function(u){i(r,u),u.stopPropagation()};return b.createElement("span",{className:Oe(s,(t={},be(t,"".concat(n,"-row-expanded"),a),be(t,"".concat(n,"-row-collapsed"),!a),t)),onClick:l})}function $Wt(e,t,n){var r=[];function i(a){(a||[]).forEach(function(o,s){r.push(t(o,s)),i(o[n])})}return i(e),r}function FWt(e,t,n){var r=CWt(e),i=r.expandIcon,a=r.expandedRowKeys,o=r.defaultExpandedRowKeys,s=r.defaultExpandAllRows,l=r.expandedRowRender,c=r.onExpand,u=r.onExpandedRowsChange,d=r.childrenColumnName,f=i||DWt,p=d||"children",h=b.useMemo(function(){return l?"row":e.expandable&&e.internalHooks===MO&&e.expandable.__PARENT_RENDER_ICON__||t.some(function(C){return C&&cn(C)==="object"&&C[p]})?"nest":!1},[!!l,t]),m=b.useState(function(){return o||(s?$Wt(t,n,p):[])}),g=Fe(m,2),v=g[0],y=g[1],_=b.useMemo(function(){return new Set(a||v||[])},[a,v]),S=b.useCallback(function(C){var w=n(C,t.indexOf(C)),x,T=_.has(w);T?(_.delete(w),x=Tt(_)):x=[].concat(Tt(_),[w]),y(x),c&&c(!T,C),u&&u(x)},[n,_,t,c,u]);return[r,h,_,f,p,S]}function BWt(e,t,n){var r=e.map(function(i,a){return mfe(a,a,e,t,n)});return hC(function(){return r},[r],function(i,a){return!Op(i,a)})}function qVe(e){var t=b.useRef(e),n=b.useState({}),r=Fe(n,2),i=r[1],a=b.useRef(null),o=b.useRef([]);function s(l){o.current.push(l);var c=Promise.resolve();a.current=c,c.then(function(){if(a.current===c){var u=o.current,d=t.current;o.current=[],u.forEach(function(f){t.current=f(t.current)}),a.current=null,d!==t.current&&i({})}})}return b.useEffect(function(){return function(){a.current=null}},[]),[t.current,s]}function jWt(e){var t=b.useRef(null),n=b.useRef();function r(){window.clearTimeout(n.current)}function i(o){t.current=o,r(),n.current=window.setTimeout(function(){t.current=null,n.current=void 0},100)}function a(){return t.current}return b.useEffect(function(){return r},[]),[i,a]}function zWt(){var e=b.useState(-1),t=Fe(e,2),n=t[0],r=t[1],i=b.useState(-1),a=Fe(i,2),o=a[0],s=a[1],l=b.useCallback(function(c,u){r(c),s(u)},[]);return[n,o,l]}var lEe=Zl()?window:null;function UWt(e,t){var n=cn(e)==="object"?e:{},r=n.offsetHeader,i=r===void 0?0:r,a=n.offsetSummary,o=a===void 0?0:a,s=n.offsetScroll,l=s===void 0?0:s,c=n.getContainer,u=c===void 0?function(){return lEe}:c,d=u()||lEe;return b.useMemo(function(){var f=!!e;return{isSticky:f,stickyClassName:f?"".concat(t,"-sticky-holder"):"",offsetHeader:i,offsetSummary:o,offsetScroll:l,container:d}},[l,i,o,t,d])}function HWt(e,t,n){var r=b.useMemo(function(){var i=t.length,a=function(c,u,d){for(var f=[],p=0,h=c;h!==u;h+=d)f.push(p),t[h].fixed&&(p+=e[h]||0);return f},o=a(0,i,1),s=a(i-1,-1,-1).reverse();return n==="rtl"?{left:s,right:o}:{left:o,right:s}},[e,t,n]);return r}function cEe(e){var t=e.className,n=e.children;return b.createElement("div",{className:t},n)}var VWt=function(t,n){var r,i,a=t.scrollBodyRef,o=t.onScroll,s=t.offsetScroll,l=t.container,c=nu($d,"prefixCls"),u=((r=a.current)===null||r===void 0?void 0:r.scrollWidth)||0,d=((i=a.current)===null||i===void 0?void 0:i.clientWidth)||0,f=u&&d*(d/u),p=b.useRef(),h=qVe({scrollLeft:0,isHiddenScrollBar:!1}),m=Fe(h,2),g=m[0],v=m[1],y=b.useRef({delta:0,x:0}),_=b.useState(!1),S=Fe(_,2),C=S[0],w=S[1],x=b.useRef(null);b.useEffect(function(){return function(){Tr.cancel(x.current)}},[]);var T=function(){w(!1)},A=function(L){L.persist(),y.current.delta=L.pageX-g.scrollLeft,y.current.x=0,w(!0),L.preventDefault()},I=function(L){var $,D=L||(($=window)===null||$===void 0?void 0:$.event),z=D.buttons;if(!C||z===0){C&&w(!1);return}var U=y.current.x+L.pageX-y.current.x-y.current.delta;U<=0&&(U=0),U+f>=d&&(U=d-f),o({scrollLeft:U/d*(u+2)}),y.current.x=L.pageX},R=function(){x.current=Tr(function(){if(a.current){var L=Eie(a.current).top,$=L+a.current.offsetHeight,D=l===window?document.documentElement.scrollTop+window.innerHeight:Eie(l).top+l.clientHeight;$-M_e()<=D||L>=D-s?v(function(z){return we(we({},z),{},{isHiddenScrollBar:!0})}):v(function(z){return we(we({},z),{},{isHiddenScrollBar:!1})})}})},N=function(L){v(function($){return we(we({},$),{},{scrollLeft:L/u*d||0})})};return b.useImperativeHandle(n,function(){return{setScrollLeft:N,checkScrollBarVisible:R}}),b.useEffect(function(){var P=Pg(document.body,"mouseup",T,!1),L=Pg(document.body,"mousemove",I,!1);return R(),function(){P.remove(),L.remove()}},[f,C]),b.useEffect(function(){var P=Pg(l,"scroll",R,!1),L=Pg(window,"resize",R,!1);return function(){P.remove(),L.remove()}},[l]),b.useEffect(function(){g.isHiddenScrollBar||v(function(P){var L=a.current;return L?we(we({},P),{},{scrollLeft:L.scrollLeft/L.scrollWidth*L.clientWidth}):P})},[g.isHiddenScrollBar]),u<=d||!f||g.isHiddenScrollBar?null:b.createElement("div",{style:{height:M_e(),width:d,bottom:s},className:"".concat(c,"-sticky-scroll")},b.createElement("div",{onMouseDown:A,ref:p,className:Oe("".concat(c,"-sticky-scroll-bar"),be({},"".concat(c,"-sticky-scroll-bar-active"),C)),style:{width:"".concat(f,"px"),transform:"translate3d(".concat(g.scrollLeft,"px, 0, 0)")}}))};const GWt=b.forwardRef(VWt);var WVe="rc-table",qWt=[],WWt={};function YWt(){return"No Data"}function KWt(e,t){var n,r=we({rowKey:"key",prefixCls:WVe,emptyText:YWt},e),i=r.prefixCls,a=r.className,o=r.rowClassName,s=r.style,l=r.data,c=r.rowKey,u=r.scroll,d=r.tableLayout,f=r.direction,p=r.title,h=r.footer,m=r.summary,g=r.caption,v=r.id,y=r.showHeader,_=r.components,S=r.emptyText,C=r.onRow,w=r.onHeaderRow,x=r.onScroll,T=r.internalHooks,A=r.transformColumns,I=r.internalRefs,R=r.tailor,N=r.getContainerWidth,P=r.sticky,L=r.rowHoverable,$=L===void 0?!0:L,D=l||qWt,z=!!D.length,U=T===MO,H=b.useCallback(function(xn,Yn){return Sf(_,xn)||Yn},[_]),M=b.useMemo(function(){return typeof c=="function"?c:function(xn){var Yn=xn&&xn[c];return Yn}},[c]),B=H(["body"]),k=zWt(),F=Fe(k,3),G=F[0],q=F[1],W=F[2],K=FWt(r,D,M),J=Fe(K,6),te=J[0],ae=J[1],re=J[2],ue=J[3],de=J[4],fe=J[5],ge=u?.x,oe=b.useState(0),Ee=Fe(oe,2),ce=Ee[0],he=Ee[1],ye=MWt(we(we(we({},r),te),{},{expandable:!!te.expandedRowRender,columnTitle:te.columnTitle,expandedKeys:re,getRowKey:M,onTriggerExpand:fe,expandIcon:ue,expandIconColumnIndex:te.expandIconColumnIndex,direction:f,scrollWidth:U&&R&&typeof ge=="number"?ge:null,clientWidth:ce}),U?A:null),me=Fe(ye,4),_e=me[0],Te=me[1],xe=me[2],De=me[3],Pe=xe??ge,Le=b.useMemo(function(){return{columns:_e,flattenColumns:Te}},[_e,Te]),ze=b.useRef(),Be=b.useRef(),je=b.useRef(),Ye=b.useRef();b.useImperativeHandle(t,function(){return{nativeElement:ze.current,scrollTo:function(Yn){var ui;if(je.current instanceof HTMLElement){var Va=Yn.index,Sa=Yn.top,Ea=Yn.key;if(Sa){var Ml;(Ml=je.current)===null||Ml===void 0||Ml.scrollTo({top:Sa})}else{var Dl,mr=Ea??M(D[Va]);(Dl=je.current.querySelector('[data-row-key="'.concat(mr,'"]')))===null||Dl===void 0||Dl.scrollIntoView()}}else(ui=je.current)!==null&&ui!==void 0&&ui.scrollTo&&je.current.scrollTo(Yn)}}});var Ze=b.useRef(),Ke=b.useState(!1),qe=Fe(Ke,2),nt=qe[0],Qe=qe[1],it=b.useState(!1),yt=Fe(it,2),Wt=yt[0],Mt=yt[1],tn=qVe(new Map),Rt=Fe(tn,2),Dt=Rt[0],Pt=Rt[1],Ot=Dz(Te),sn=Ot.map(function(xn){return Dt.get(xn)}),Jt=b.useMemo(function(){return sn},[sn.join("_")]),Vt=HWt(Jt,Te,f),pt=u&&Tie(u.y),tt=u&&Tie(Pe)||!!te.fixed,dt=tt&&Te.some(function(xn){var Yn=xn.fixed;return Yn}),Et=b.useRef(),St=UWt(P,i),zt=St.isSticky,nn=St.offsetHeader,wn=St.offsetSummary,kn=St.offsetScroll,fn=St.stickyClassName,an=St.container,Ht=b.useMemo(function(){return m?.(D)},[m,D]),mn=(pt||zt)&&b.isValidElement(Ht)&&Ht.type===$z&&Ht.props.fixed,Tn,An,nr;pt&&(An={overflowY:"scroll",maxHeight:u.y}),tt&&(Tn={overflowX:"auto"},pt||(An={overflowY:"hidden"}),nr={width:Pe===!0?"auto":Pe,minWidth:"100%"});var un=b.useCallback(function(xn,Yn){uT(ze.current)&&Pt(function(ui){if(ui.get(xn)!==Yn){var Va=new Map(ui);return Va.set(xn,Yn),Va}return ui})},[]),et=jWt(),Ct=Fe(et,2),Q=Ct[0],Y=Ct[1];function ee(xn,Yn){Yn&&(typeof Yn=="function"?Yn(xn):Yn.scrollLeft!==xn&&(Yn.scrollLeft=xn,Yn.scrollLeft!==xn&&setTimeout(function(){Yn.scrollLeft=xn},0)))}var le=gr(function(xn){var Yn=xn.currentTarget,ui=xn.scrollLeft,Va=f==="rtl",Sa=typeof ui=="number"?ui:Yn.scrollLeft,Ea=Yn||WWt;if(!Y()||Y()===Ea){var Ml;Q(Ea),ee(Sa,Be.current),ee(Sa,je.current),ee(Sa,Ze.current),ee(Sa,(Ml=Et.current)===null||Ml===void 0?void 0:Ml.setScrollLeft)}var Dl=Yn||Be.current;if(Dl){var mr=Dl.scrollWidth,Ud=Dl.clientWidth;if(mr===Ud){Qe(!1),Mt(!1);return}Va?(Qe(-Sa<mr-Ud),Mt(-Sa>0)):(Qe(Sa>0),Mt(Sa<mr-Ud))}}),Se=gr(function(xn){le(xn),x?.(xn)}),Ae=function(){tt&&je.current?le({currentTarget:je.current}):(Qe(!1),Mt(!1))},He=function(Yn){var ui,Va=Yn.width;(ui=Et.current)===null||ui===void 0||ui.checkScrollBarVisible();var Sa=ze.current?ze.current.offsetWidth:Va;U&&N&&ze.current&&(Sa=N(ze.current,Sa)||Sa),Sa!==ce&&(Ae(),he(Sa))},at=b.useRef(!1);b.useEffect(function(){at.current&&Ae()},[tt,l,_e.length]),b.useEffect(function(){at.current=!0},[]);var wt=b.useState(0),ft=Fe(wt,2),Lt=ft[0],kt=ft[1],Gt=b.useState(!0),ln=Fe(Gt,2),_n=ln[0],Fn=ln[1];b.useEffect(function(){(!R||!U)&&(je.current instanceof Element?kt(Gre(je.current).width):kt(Gre(Ye.current).width)),Fn(wPt("position","sticky"))},[]),b.useEffect(function(){U&&I&&(I.body.current=je.current)});var ur=b.useCallback(function(xn){return b.createElement(b.Fragment,null,b.createElement(oEe,xn),mn==="top"&&b.createElement(mP,xn,Ht))},[mn,Ht]),Vr=b.useCallback(function(xn){return b.createElement(mP,xn,Ht)},[Ht]),ni=H(["table"],"table"),fr=b.useMemo(function(){return d||(dt?Pe==="max-content"?"auto":"fixed":pt||zt||Te.some(function(xn){var Yn=xn.ellipsis;return Yn})?"fixed":"auto")},[pt,dt,Te,d,zt]),Un,hr={colWidths:Jt,columCount:Te.length,stickyOffsets:Vt,onHeaderRow:w,fixHeader:pt,scroll:u},Jn=b.useMemo(function(){return z?null:typeof S=="function"?S():S},[z,S]),lr=b.createElement(SWt,{data:D,measureColumnWidth:pt||tt||zt}),On=b.createElement(VVe,{colWidths:Te.map(function(xn){var Yn=xn.width;return Yn}),columns:Te}),Mn=g!=null?b.createElement("caption",{className:"".concat(i,"-caption")},g):void 0,ri=lo(r,{data:!0}),Gi=lo(r,{aria:!0});if(pt||zt){var ma;typeof B=="function"?(ma=B(D,{scrollbarSize:Lt,ref:je,onScroll:le}),hr.colWidths=Te.map(function(xn,Yn){var ui=xn.width,Va=Yn===Te.length-1?ui-Lt:ui;return typeof Va=="number"&&!Number.isNaN(Va)?Va:0})):ma=b.createElement("div",{style:we(we({},Tn),An),onScroll:Se,ref:je,className:Oe("".concat(i,"-body"))},b.createElement(ni,Xe({style:we(we({},nr),{},{tableLayout:fr})},Gi),Mn,On,lr,!mn&&Ht&&b.createElement(mP,{stickyOffsets:Vt,flattenColumns:Te},Ht)));var Oa=we(we(we({noData:!D.length,maxContentScroll:tt&&Pe==="max-content"},hr),Le),{},{direction:f,stickyClassName:fn,onScroll:le});Un=b.createElement(b.Fragment,null,y!==!1&&b.createElement(aEe,Xe({},Oa,{stickyTopOffset:nn,className:"".concat(i,"-header"),ref:Be}),ur),ma,mn&&mn!=="top"&&b.createElement(aEe,Xe({},Oa,{stickyBottomOffset:wn,className:"".concat(i,"-summary"),ref:Ze}),Vr),zt&&je.current&&je.current instanceof Element&&b.createElement(GWt,{ref:Et,offsetScroll:kn,scrollBodyRef:je,onScroll:le,container:an}))}else Un=b.createElement("div",{style:we(we({},Tn),An),className:Oe("".concat(i,"-content")),onScroll:le,ref:je},b.createElement(ni,Xe({style:we(we({},nr),{},{tableLayout:fr})},Gi),Mn,On,y!==!1&&b.createElement(oEe,Xe({},hr,Le)),lr,Ht&&b.createElement(mP,{stickyOffsets:Vt,flattenColumns:Te},Ht)));var La=b.createElement("div",Xe({className:Oe(i,a,(n={},be(n,"".concat(i,"-rtl"),f==="rtl"),be(n,"".concat(i,"-ping-left"),nt),be(n,"".concat(i,"-ping-right"),Wt),be(n,"".concat(i,"-layout-fixed"),d==="fixed"),be(n,"".concat(i,"-fixed-header"),pt),be(n,"".concat(i,"-fixed-column"),dt),be(n,"".concat(i,"-fixed-column-gapped"),dt&&De),be(n,"".concat(i,"-scroll-horizontal"),tt),be(n,"".concat(i,"-has-fix-left"),Te[0]&&Te[0].fixed),be(n,"".concat(i,"-has-fix-right"),Te[Te.length-1]&&Te[Te.length-1].fixed==="right"),n)),style:s,id:v,ref:ze},ri),p&&b.createElement(cEe,{className:"".concat(i,"-title")},p(D)),b.createElement("div",{ref:Ye,className:"".concat(i,"-container")},Un),h&&b.createElement(cEe,{className:"".concat(i,"-footer")},h(D)));tt&&(La=b.createElement(Sc,{onResize:He},La));var rr=BWt(Te,Vt,f),dr=b.useMemo(function(){return{scrollX:Pe,prefixCls:i,getComponent:H,scrollbarSize:Lt,direction:f,fixedInfoList:rr,isSticky:zt,supportSticky:_n,componentWidth:ce,fixHeader:pt,fixColumn:dt,horizonScroll:tt,tableLayout:fr,rowClassName:o,expandedRowClassName:te.expandedRowClassName,expandIcon:ue,expandableType:ae,expandRowByClick:te.expandRowByClick,expandedRowRender:te.expandedRowRender,onTriggerExpand:fe,expandIconColumnIndex:te.expandIconColumnIndex,indentSize:te.indentSize,allColumnsFixedLeft:Te.every(function(xn){return xn.fixed==="left"}),emptyNode:Jn,columns:_e,flattenColumns:Te,onColumnResize:un,hoverStartRow:G,hoverEndRow:q,onHover:W,rowExpandable:te.rowExpandable,onRow:C,getRowKey:M,expandedKeys:re,childrenColumnName:de,rowHoverable:$}},[Pe,i,H,Lt,f,rr,zt,_n,ce,pt,dt,tt,fr,o,te.expandedRowClassName,ue,ae,te.expandRowByClick,te.expandedRowRender,fe,te.expandIconColumnIndex,te.indentSize,Jn,_e,Te,un,G,q,W,te.rowExpandable,C,M,re,de,$]);return b.createElement($d.Provider,{value:dr},La)}var XWt=b.forwardRef(KWt);function YVe(e){return MVe(XWt,e)}var ST=YVe();ST.EXPAND_COLUMN=Ky;ST.INTERNAL_HOOKS=MO;ST.Column=hWt;ST.ColumnGroup=mWt;ST.Summary=FVe;var vfe=pfe(null),KVe=pfe(null);function ZWt(e,t,n){var r=t||1;return n[e+r]-(n[e]||0)}function QWt(e){var t=e.rowInfo,n=e.column,r=e.colIndex,i=e.indent,a=e.index,o=e.component,s=e.renderIndex,l=e.record,c=e.style,u=e.className,d=e.inverse,f=e.getHeight,p=n.render,h=n.dataIndex,m=n.className,g=n.width,v=nu(KVe,["columnsOffset"]),y=v.columnsOffset,_=HVe(t,n,r,i,a),S=_.key,C=_.fixedInfo,w=_.appendCellNode,x=_.additionalCellProps,T=x.style,A=x.colSpan,I=A===void 0?1:A,R=x.rowSpan,N=R===void 0?1:R,P=r-1,L=ZWt(P,I,y),$=I>1?g-L:0,D=we(we(we({},T),c),{},{flex:"0 0 ".concat(L,"px"),width:"".concat(L,"px"),marginRight:$,pointerEvents:"auto"}),z=b.useMemo(function(){return d?N<=1:I===0||N===0||N>1},[N,I,d]);z?D.visibility="hidden":d&&(D.height=f?.(N));var U=z?function(){return null}:p,H={};return(N===0||I===0)&&(H.rowSpan=1,H.colSpan=1),b.createElement(IC,Xe({className:Oe(m,u),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:o,prefixCls:t.prefixCls,key:S,record:l,index:a,renderIndex:s,dataIndex:h,render:U,shouldCellUpdate:n.shouldCellUpdate},C,{appendNode:w,additionalProps:we(we({},x),{},{style:D},H)}))}var JWt=["data","index","className","rowKey","style","extra","getHeight"],eYt=b.forwardRef(function(e,t){var n=e.data,r=e.index,i=e.className,a=e.rowKey,o=e.style,s=e.extra,l=e.getHeight,c=$n(e,JWt),u=n.record,d=n.indent,f=n.index,p=nu($d,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),h=p.scrollX,m=p.flattenColumns,g=p.prefixCls,v=p.fixColumn,y=p.componentWidth,_=nu(vfe,["getComponent"]),S=_.getComponent,C=zVe(u,a,r,d),w=S(["body","row"],"div"),x=S(["body","cell"],"div"),T=C.rowSupportExpand,A=C.expanded,I=C.rowProps,R=C.expandedRowRender,N=C.expandedRowClassName,P;if(T&&A){var L=R(u,r,d+1,A),$=N?.(u,r,d),D={};v&&(D={style:be({},"--virtual-width","".concat(y,"px"))});var z="".concat(g,"-expanded-row-cell");P=b.createElement(w,{className:Oe("".concat(g,"-expanded-row"),"".concat(g,"-expanded-row-level-").concat(d+1),$)},b.createElement(IC,{component:x,prefixCls:g,className:Oe(z,be({},"".concat(z,"-fixed"),v)),additionalProps:D},L))}var U=we(we({},o),{},{width:h});s&&(U.position="absolute",U.pointerEvents="none");var H=b.createElement(w,Xe({},I,c,{"data-row-key":a,ref:T?null:t,className:Oe(i,"".concat(g,"-row"),I?.className,be({},"".concat(g,"-row-extra"),s)),style:we(we({},U),I?.style)}),m.map(function(M,B){return b.createElement(QWt,{key:B,component:x,rowInfo:C,column:M,colIndex:B,indent:d,index:r,renderIndex:f,record:u,inverse:s,getHeight:l})}));return T?b.createElement("div",{ref:t},H,P):H}),uEe=_T(eYt),tYt=b.forwardRef(function(e,t){var n=e.data,r=e.onScroll,i=nu($d,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),a=i.flattenColumns,o=i.onColumnResize,s=i.getRowKey,l=i.expandedKeys,c=i.prefixCls,u=i.childrenColumnName,d=i.emptyNode,f=i.scrollX,p=nu(vfe),h=p.sticky,m=p.scrollY,g=p.listItemHeight,v=p.getComponent,y=p.onScroll,_=b.useRef(),S=jVe(n,u,l,s),C=b.useMemo(function(){var D=0;return a.map(function(z){var U=z.width,H=z.key;return D+=U,[H,U,D]})},[a]),w=b.useMemo(function(){return C.map(function(D){return D[2]})},[C]);b.useEffect(function(){C.forEach(function(D){var z=Fe(D,2),U=z[0],H=z[1];o(U,H)})},[C]),b.useImperativeHandle(t,function(){var D={scrollTo:function(U){var H;(H=_.current)===null||H===void 0||H.scrollTo(U)}};return Object.defineProperty(D,"scrollLeft",{get:function(){var U;return((U=_.current)===null||U===void 0?void 0:U.getScrollInfo().x)||0},set:function(U){var H;(H=_.current)===null||H===void 0||H.scrollTo({left:U})}}),D});var x=function(z,U){var H,M=(H=S[U])===null||H===void 0?void 0:H.record,B=z.onCell;if(B){var k,F=B(M,U);return(k=F?.rowSpan)!==null&&k!==void 0?k:1}return 1},T=function(z){var U=z.start,H=z.end,M=z.getSize,B=z.offsetY;if(H<0)return null;for(var k=a.filter(function(fe){return x(fe,U)===0}),F=U,G=function(ge){if(k=k.filter(function(oe){return x(oe,ge)===0}),!k.length)return F=ge,1},q=U;q>=0&&!G(q);q-=1);for(var W=a.filter(function(fe){return x(fe,H)!==1}),K=H,J=function(ge){if(W=W.filter(function(oe){return x(oe,ge)!==1}),!W.length)return K=Math.max(ge-1,H),1},te=H;te<S.length&&!J(te);te+=1);for(var ae=[],re=function(ge){var oe=S[ge];if(!oe)return 1;a.some(function(Ee){return x(Ee,ge)>1})&&ae.push(ge)},ue=F;ue<=K;ue+=1)re(ue);var de=ae.map(function(fe){var ge=S[fe],oe=s(ge.record,fe),Ee=function(ye){var me=fe+ye-1,_e=s(S[me].record,me),Te=M(oe,_e);return Te.bottom-Te.top},ce=M(oe);return b.createElement(uEe,{key:fe,data:ge,rowKey:oe,index:fe,style:{top:-B+ce.top},extra:!0,getHeight:Ee})});return de},A=b.useMemo(function(){return{columnsOffset:w}},[w]),I="".concat(c,"-tbody"),R=v(["body","wrapper"]),N=v(["body","row"],"div"),P=v(["body","cell"],"div"),L;if(S.length){var $={};h&&($.position="sticky",$.bottom=0,cn(h)==="object"&&h.offsetScroll&&($.bottom=h.offsetScroll)),L=b.createElement(hz,{fullHeight:!1,ref:_,prefixCls:"".concat(I,"-virtual"),styles:{horizontalScrollBar:$},className:I,height:m,itemHeight:g||24,data:S,itemKey:function(z){return s(z.record)},component:R,scrollWidth:f,onVirtualScroll:function(z){var U=z.x;r({scrollLeft:U})},onScroll:y,extraRender:T},function(D,z,U){var H=s(D.record,z);return b.createElement(uEe,{data:D,rowKey:H,index:z,style:U.style})})}else L=b.createElement(N,{className:Oe("".concat(c,"-placeholder"))},b.createElement(IC,{component:P,prefixCls:c},d));return b.createElement(KVe.Provider,{value:A},L)}),nYt=_T(tYt),rYt=function(t,n){var r=n.ref,i=n.onScroll;return b.createElement(nYt,{ref:r,data:t,onScroll:i})};function iYt(e,t){var n=e.columns,r=e.scroll,i=e.sticky,a=e.prefixCls,o=a===void 0?WVe:a,s=e.className,l=e.listItemHeight,c=e.components,u=e.onScroll,d=r||{},f=d.x,p=d.y;typeof f!="number"&&(f=1),typeof p!="number"&&(p=500);var h=gr(function(v,y){return Sf(c,v)||y}),m=gr(u),g=b.useMemo(function(){return{sticky:i,scrollY:p,listItemHeight:l,getComponent:h,onScroll:m}},[i,p,l,h,m]);return b.createElement(vfe.Provider,{value:g},b.createElement(ST,Xe({},e,{className:Oe(s,"".concat(o,"-virtual")),scroll:we(we({},r),{},{x:f}),components:we(we({},c),{},{body:rYt}),columns:n,internalHooks:MO,tailor:!0,ref:t})))}var aYt=b.forwardRef(iYt);function XVe(e){return MVe(aYt,e)}XVe();function oYt(e){return null}function sYt(e){return null}var yfe=b.createContext(null),lYt=function(t){for(var n=t.prefixCls,r=t.level,i=t.isStart,a=t.isEnd,o="".concat(n,"-indent-unit"),s=[],l=0;l<r;l+=1)s.push(b.createElement("span",{key:l,className:Oe(o,be(be({},"".concat(o,"-start"),i[l]),"".concat(o,"-end"),a[l]))}));return b.createElement("span",{"aria-hidden":"true",className:"".concat(n,"-indent")},s)};const cYt=b.memo(lYt);var uYt=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],dEe="open",fEe="close",dYt="---",fYt=function(e){Md(n,e);var t=$f(n);function n(){var r;co(this,n);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r=t.call.apply(t,[this].concat(a)),be(Qt(r),"state",{dragNodeHighlight:!1}),be(Qt(r),"selectHandle",void 0),be(Qt(r),"cacheIndent",void 0),be(Qt(r),"onSelectorClick",function(s){var l=r.props.context.onNodeClick;l(s,ul(r.props)),r.isSelectable()?r.onSelect(s):r.onCheck(s)}),be(Qt(r),"onSelectorDoubleClick",function(s){var l=r.props.context.onNodeDoubleClick;l(s,ul(r.props))}),be(Qt(r),"onSelect",function(s){if(!r.isDisabled()){var l=r.props.context.onNodeSelect;l(s,ul(r.props))}}),be(Qt(r),"onCheck",function(s){if(!r.isDisabled()){var l=r.props,c=l.disableCheckbox,u=l.checked,d=r.props.context.onNodeCheck;if(!(!r.isCheckable()||c)){var f=!u;d(s,ul(r.props),f)}}}),be(Qt(r),"onMouseEnter",function(s){var l=r.props.context.onNodeMouseEnter;l(s,ul(r.props))}),be(Qt(r),"onMouseLeave",function(s){var l=r.props.context.onNodeMouseLeave;l(s,ul(r.props))}),be(Qt(r),"onContextMenu",function(s){var l=r.props.context.onNodeContextMenu;l(s,ul(r.props))}),be(Qt(r),"onDragStart",function(s){var l=r.props.context.onNodeDragStart;s.stopPropagation(),r.setState({dragNodeHighlight:!0}),l(s,Qt(r));try{s.dataTransfer.setData("text/plain","")}catch{}}),be(Qt(r),"onDragEnter",function(s){var l=r.props.context.onNodeDragEnter;s.preventDefault(),s.stopPropagation(),l(s,Qt(r))}),be(Qt(r),"onDragOver",function(s){var l=r.props.context.onNodeDragOver;s.preventDefault(),s.stopPropagation(),l(s,Qt(r))}),be(Qt(r),"onDragLeave",function(s){var l=r.props.context.onNodeDragLeave;s.stopPropagation(),l(s,Qt(r))}),be(Qt(r),"onDragEnd",function(s){var l=r.props.context.onNodeDragEnd;s.stopPropagation(),r.setState({dragNodeHighlight:!1}),l(s,Qt(r))}),be(Qt(r),"onDrop",function(s){var l=r.props.context.onNodeDrop;s.preventDefault(),s.stopPropagation(),r.setState({dragNodeHighlight:!1}),l(s,Qt(r))}),be(Qt(r),"onExpand",function(s){var l=r.props,c=l.loading,u=l.context.onNodeExpand;c||u(s,ul(r.props))}),be(Qt(r),"setSelectHandle",function(s){r.selectHandle=s}),be(Qt(r),"getNodeState",function(){var s=r.props.expanded;return r.isLeaf()?null:s?dEe:fEe}),be(Qt(r),"hasChildren",function(){var s=r.props.eventKey,l=r.props.context.keyEntities,c=sd(l,s)||{},u=c.children;return!!(u||[]).length}),be(Qt(r),"isLeaf",function(){var s=r.props,l=s.isLeaf,c=s.loaded,u=r.props.context.loadData,d=r.hasChildren();return l===!1?!1:l||!u&&!d||u&&c&&!d}),be(Qt(r),"isDisabled",function(){var s=r.props.disabled,l=r.props.context.disabled;return!!(l||s)}),be(Qt(r),"isCheckable",function(){var s=r.props.checkable,l=r.props.context.checkable;return!l||s===!1?!1:l}),be(Qt(r),"syncLoadData",function(s){var l=s.expanded,c=s.loading,u=s.loaded,d=r.props.context,f=d.loadData,p=d.onNodeLoad;c||f&&l&&!r.isLeaf()&&!u&&p(ul(r.props))}),be(Qt(r),"isDraggable",function(){var s=r.props,l=s.data,c=s.context.draggable;return!!(c&&(!c.nodeDraggable||c.nodeDraggable(l)))}),be(Qt(r),"renderDragHandler",function(){var s=r.props.context,l=s.draggable,c=s.prefixCls;return l!=null&&l.icon?b.createElement("span",{className:"".concat(c,"-draggable-icon")},l.icon):null}),be(Qt(r),"renderSwitcherIconDom",function(s){var l=r.props.switcherIcon,c=r.props.context.switcherIcon,u=l||c;return typeof u=="function"?u(we(we({},r.props),{},{isLeaf:s})):u}),be(Qt(r),"renderSwitcher",function(){var s=r.props.expanded,l=r.props.context.prefixCls;if(r.isLeaf()){var c=r.renderSwitcherIconDom(!0);return c!==!1?b.createElement("span",{className:Oe("".concat(l,"-switcher"),"".concat(l,"-switcher-noop"))},c):null}var u=Oe("".concat(l,"-switcher"),"".concat(l,"-switcher_").concat(s?dEe:fEe)),d=r.renderSwitcherIconDom(!1);return d!==!1?b.createElement("span",{onClick:r.onExpand,className:u},d):null}),be(Qt(r),"renderCheckbox",function(){var s=r.props,l=s.checked,c=s.halfChecked,u=s.disableCheckbox,d=r.props.context.prefixCls,f=r.isDisabled(),p=r.isCheckable();if(!p)return null;var h=typeof p!="boolean"?p:null;return b.createElement("span",{className:Oe("".concat(d,"-checkbox"),l&&"".concat(d,"-checkbox-checked"),!l&&c&&"".concat(d,"-checkbox-indeterminate"),(f||u)&&"".concat(d,"-checkbox-disabled")),onClick:r.onCheck},h)}),be(Qt(r),"renderIcon",function(){var s=r.props.loading,l=r.props.context.prefixCls;return b.createElement("span",{className:Oe("".concat(l,"-iconEle"),"".concat(l,"-icon__").concat(r.getNodeState()||"docu"),s&&"".concat(l,"-icon_loading"))})}),be(Qt(r),"renderSelector",function(){var s=r.state.dragNodeHighlight,l=r.props,c=l.title,u=c===void 0?dYt:c,d=l.selected,f=l.icon,p=l.loading,h=l.data,m=r.props.context,g=m.prefixCls,v=m.showIcon,y=m.icon,_=m.loadData,S=m.titleRender,C=r.isDisabled(),w="".concat(g,"-node-content-wrapper"),x;if(v){var T=f||y;x=T?b.createElement("span",{className:Oe("".concat(g,"-iconEle"),"".concat(g,"-icon__customize"))},typeof T=="function"?T(r.props):T):r.renderIcon()}else _&&p&&(x=r.renderIcon());var A;typeof u=="function"?A=u(h):S?A=S(h):A=u;var I=b.createElement("span",{className:"".concat(g,"-title")},A);return b.createElement("span",{ref:r.setSelectHandle,title:typeof u=="string"?u:"",className:Oe("".concat(w),"".concat(w,"-").concat(r.getNodeState()||"normal"),!C&&(d||s)&&"".concat(g,"-node-selected")),onMouseEnter:r.onMouseEnter,onMouseLeave:r.onMouseLeave,onContextMenu:r.onContextMenu,onClick:r.onSelectorClick,onDoubleClick:r.onSelectorDoubleClick},x,I,r.renderDropIndicator())}),be(Qt(r),"renderDropIndicator",function(){var s=r.props,l=s.disabled,c=s.eventKey,u=r.props.context,d=u.draggable,f=u.dropLevelOffset,p=u.dropPosition,h=u.prefixCls,m=u.indent,g=u.dropIndicatorRender,v=u.dragOverNodeKey,y=u.direction,_=!!d,S=!l&&_&&v===c,C=m??r.cacheIndent;return r.cacheIndent=m,S?g({dropPosition:p,dropLevelOffset:f,indent:C,prefixCls:h,direction:y}):null}),r}return uo(n,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var i=this.props.selectable,a=this.props.context.selectable;return typeof i=="boolean"?i:a}},{key:"render",value:function(){var i,a=this.props,o=a.eventKey,s=a.className,l=a.style,c=a.dragOver,u=a.dragOverGapTop,d=a.dragOverGapBottom,f=a.isLeaf,p=a.isStart,h=a.isEnd,m=a.expanded,g=a.selected,v=a.checked,y=a.halfChecked,_=a.loading,S=a.domRef,C=a.active;a.data;var w=a.onMouseMove,x=a.selectable,T=$n(a,uYt),A=this.props.context,I=A.prefixCls,R=A.filterTreeNode,N=A.keyEntities,P=A.dropContainerKey,L=A.dropTargetKey,$=A.draggingNodeKey,D=this.isDisabled(),z=lo(T,{aria:!0,data:!0}),U=sd(N,o)||{},H=U.level,M=h[h.length-1],B=this.isDraggable(),k=!D&&B,F=$===o,G=x!==void 0?{"aria-selected":!!x}:void 0;return b.createElement("div",Xe({ref:S,className:Oe(s,"".concat(I,"-treenode"),(i={},be(be(be(be(be(be(be(be(be(be(i,"".concat(I,"-treenode-disabled"),D),"".concat(I,"-treenode-switcher-").concat(m?"open":"close"),!f),"".concat(I,"-treenode-checkbox-checked"),v),"".concat(I,"-treenode-checkbox-indeterminate"),y),"".concat(I,"-treenode-selected"),g),"".concat(I,"-treenode-loading"),_),"".concat(I,"-treenode-active"),C),"".concat(I,"-treenode-leaf-last"),M),"".concat(I,"-treenode-draggable"),B),"dragging",F),be(be(be(be(be(be(i,"drop-target",L===o),"drop-container",P===o),"drag-over",!D&&c),"drag-over-gap-top",!D&&u),"drag-over-gap-bottom",!D&&d),"filter-node",R&&R(ul(this.props))))),style:l,draggable:k,"aria-grabbed":F,onDragStart:k?this.onDragStart:void 0,onDragEnter:B?this.onDragEnter:void 0,onDragOver:B?this.onDragOver:void 0,onDragLeave:B?this.onDragLeave:void 0,onDrop:B?this.onDrop:void 0,onDragEnd:B?this.onDragEnd:void 0,onMouseMove:w},G,z),b.createElement(cYt,{prefixCls:I,level:H,isStart:p,isEnd:h}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),n}(b.Component),A3=function(t){return b.createElement(yfe.Consumer,null,function(n){return b.createElement(fYt,Xe({},t,{context:n}))})};A3.displayName="TreeNode";A3.isTreeNode=1;function pg(e,t){if(!e)return[];var n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function f1(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function bfe(e){return e.split("-")}function pYt(e,t){var n=[],r=sd(t,e);function i(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];a.forEach(function(o){var s=o.key,l=o.children;n.push(s),i(l)})}return i(r.children),n}function hYt(e){if(e.parent){var t=bfe(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function mYt(e){var t=bfe(e.pos);return Number(t[t.length-1])===0}function pEe(e,t,n,r,i,a,o,s,l,c){var u,d=e.clientX,f=e.clientY,p=e.target.getBoundingClientRect(),h=p.top,m=p.height,g=(c==="rtl"?-1:1)*((i?.x||0)-d),v=(g-12)/r,y=l.filter(function(D){var z;return(z=s[D])===null||z===void 0||(z=z.children)===null||z===void 0?void 0:z.length}),_=sd(s,n.props.eventKey);if(f<h+m/2){var S=o.findIndex(function(D){return D.key===_.key}),C=S<=0?0:S-1,w=o[C].key;_=sd(s,w)}var x=_.key,T=_,A=_.key,I=0,R=0;if(!y.includes(x))for(var N=0;N<v&&hYt(_);N+=1)_=_.parent,R+=1;var P=t.props.data,L=_.node,$=!0;return mYt(_)&&_.level===0&&f<h+m/2&&a({dragNode:P,dropNode:L,dropPosition:-1})&&_.key===n.props.eventKey?I=-1:(T.children||[]).length&&y.includes(A)?a({dragNode:P,dropNode:L,dropPosition:0})?I=0:$=!1:R===0?v>-1.5?a({dragNode:P,dropNode:L,dropPosition:1})?I=1:$=!1:a({dragNode:P,dropNode:L,dropPosition:0})?I=0:a({dragNode:P,dropNode:L,dropPosition:1})?I=1:$=!1:a({dragNode:P,dropNode:L,dropPosition:1})?I=1:$=!1,{dropPosition:I,dropLevelOffset:R,dropTargetKey:_.key,dropTargetPos:_.pos,dragOverNodeKey:A,dropContainerKey:I===0?null:((u=_.parent)===null||u===void 0?void 0:u.key)||null,dropAllowed:$}}function hEe(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function _q(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(cn(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return Ra(!1,"`checkedKeys` is not an array or an object"),null;return t}function Aie(e,t){var n=new Set;function r(i){if(!n.has(i)){var a=sd(t,i);if(a){n.add(i);var o=a.parent,s=a.node;s.disabled||o&&r(o.key)}}}return(e||[]).forEach(function(i){r(i)}),Tt(n)}function gYt(e){const[t,n]=b.useState(null);return[b.useCallback((a,o,s)=>{const l=t??a,c=Math.min(l||0,a),u=Math.max(l||0,a),d=o.slice(c,u+1).map(h=>e(h)),f=d.some(h=>!s.has(h)),p=[];return d.forEach(h=>{f?(s.has(h)||p.push(h),s.add(h)):(s.delete(h),p.push(h))}),n(f?u:null),p},[t]),a=>{n(a)}]}const Dy={},Rie="SELECT_ALL",Nie="SELECT_INVERT",Oie="SELECT_NONE",mEe=[],ZVe=(e,t)=>{let n=[];return(t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&(n=[].concat(Tt(n),Tt(ZVe(e,r[e]))))}),n},vYt=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:i,getCheckboxProps:a,onChange:o,onSelect:s,onSelectAll:l,onSelectInvert:c,onSelectNone:u,onSelectMultiple:d,columnWidth:f,type:p,selections:h,fixed:m,renderCell:g,hideSelectAll:v,checkStrictly:y=!0}=t||{},{prefixCls:_,data:S,pageData:C,getRecordByKey:w,getRowKey:x,expandType:T,childrenColumnName:A,locale:I,getPopupContainer:R}=e,N=g0(),[P,L]=gYt(re=>re),[$,D]=qr(r||i||mEe,{value:r}),z=b.useRef(new Map),U=b.useCallback(re=>{if(n){const ue=new Map;re.forEach(de=>{let fe=w(de);!fe&&z.current.has(de)&&(fe=z.current.get(de)),ue.set(de,fe)}),z.current=ue}},[w,n]);b.useEffect(()=>{U($)},[$]);const{keyEntities:H}=b.useMemo(()=>{if(y)return{keyEntities:null};let re=S;if(n){const ue=new Set(S.map((fe,ge)=>x(fe,ge))),de=Array.from(z.current).reduce((fe,ge)=>{let[oe,Ee]=ge;return ue.has(oe)?fe:fe.concat(Ee)},[]);re=[].concat(Tt(re),Tt(de))}return Wde(re,{externalGetKey:x,childrenPropName:A})},[S,x,y,A,n]),M=b.useMemo(()=>ZVe(A,C),[A,C]),B=b.useMemo(()=>{const re=new Map;return M.forEach((ue,de)=>{const fe=x(ue,de),ge=(a?a(ue):null)||{};re.set(fe,ge)}),re},[M,x,a]),k=b.useCallback(re=>{var ue;return!!(!((ue=B.get(x(re)))===null||ue===void 0)&&ue.disabled)},[B,x]),[F,G]=b.useMemo(()=>{if(y)return[$||[],[]];const{checkedKeys:re,halfCheckedKeys:ue}=C5($,!0,H,k);return[re||[],ue]},[$,y,H,k]),q=b.useMemo(()=>{const re=p==="radio"?F.slice(0,1):F;return new Set(re)},[F,p]),W=b.useMemo(()=>p==="radio"?new Set:new Set(G),[G,p]);b.useEffect(()=>{t||D(mEe)},[!!t]);const K=b.useCallback((re,ue)=>{let de,fe;U(re),n?(de=re,fe=re.map(ge=>z.current.get(ge))):(de=[],fe=[],re.forEach(ge=>{const oe=w(ge);oe!==void 0&&(de.push(ge),fe.push(oe))})),D(de),o?.(de,fe,{type:ue})},[D,w,o,n]),J=b.useCallback((re,ue,de,fe)=>{if(s){const ge=de.map(oe=>w(oe));s(w(re),ue,ge,fe)}K(de,"single")},[s,w,K]),te=b.useMemo(()=>!h||v?null:(h===!0?[Rie,Nie,Oie]:h).map(ue=>ue===Rie?{key:"all",text:I.selectionAll,onSelect(){K(S.map((de,fe)=>x(de,fe)).filter(de=>{const fe=B.get(de);return!fe?.disabled||q.has(de)}),"all")}}:ue===Nie?{key:"invert",text:I.selectInvert,onSelect(){const de=new Set(q);C.forEach((ge,oe)=>{const Ee=x(ge,oe),ce=B.get(Ee);ce?.disabled||(de.has(Ee)?de.delete(Ee):de.add(Ee))});const fe=Array.from(de);c&&(N.deprecated(!1,"onSelectInvert","onChange"),c(fe)),K(fe,"invert")}}:ue===Oie?{key:"none",text:I.selectNone,onSelect(){u?.(),K(Array.from(q).filter(de=>{const fe=B.get(de);return fe?.disabled}),"none")}}:ue).map(ue=>Object.assign(Object.assign({},ue),{onSelect:function(){for(var de,fe,ge=arguments.length,oe=new Array(ge),Ee=0;Ee<ge;Ee++)oe[Ee]=arguments[Ee];(fe=ue.onSelect)===null||fe===void 0||(de=fe).call.apply(de,[ue].concat(oe)),L(null)}})),[h,q,C,x,c,K]);return[b.useCallback(re=>{var ue;if(!t)return re.filter(je=>je!==Dy);let de=Tt(re);const fe=new Set(q),ge=M.map(x).filter(je=>!B.get(je).disabled),oe=ge.every(je=>fe.has(je)),Ee=ge.some(je=>fe.has(je)),ce=()=>{const je=[];oe?ge.forEach(Ze=>{fe.delete(Ze),je.push(Ze)}):ge.forEach(Ze=>{fe.has(Ze)||(fe.add(Ze),je.push(Ze))});const Ye=Array.from(fe);l?.(!oe,Ye.map(Ze=>w(Ze)),je.map(Ze=>w(Ze))),K(Ye,"all"),L(null)};let he,ye;if(p!=="radio"){let je;if(te){const nt={getPopupContainer:R,items:te.map((Qe,it)=>{const{key:yt,text:Wt,onSelect:Mt}=Qe;return{key:yt??it,onClick:()=>{Mt?.(ge)},label:Wt}})};je=b.createElement("div",{className:`${_}-selection-extra`},b.createElement(Vo,{menu:nt,getPopupContainer:R},b.createElement("span",null,b.createElement(pv,null))))}const Ye=M.map((nt,Qe)=>{const it=x(nt,Qe),yt=B.get(it)||{};return Object.assign({checked:fe.has(it)},yt)}).filter(nt=>{let{disabled:Qe}=nt;return Qe}),Ze=!!Ye.length&&Ye.length===M.length,Ke=Ze&&Ye.every(nt=>{let{checked:Qe}=nt;return Qe}),qe=Ze&&Ye.some(nt=>{let{checked:Qe}=nt;return Qe});ye=b.createElement(FE,{checked:Ze?Ke:!!M.length&&oe,indeterminate:Ze?!Ke&&qe:!oe&&Ee,onChange:ce,disabled:M.length===0||Ze,"aria-label":je?"Custom selection":"Select all",skipGroup:!0}),he=!v&&b.createElement("div",{className:`${_}-selection`},ye,je)}let me;p==="radio"?me=(je,Ye,Ze)=>{const Ke=x(Ye,Ze),qe=fe.has(Ke);return{node:b.createElement(dc,Object.assign({},B.get(Ke),{checked:qe,onClick:nt=>nt.stopPropagation(),onChange:nt=>{fe.has(Ke)||J(Ke,!0,[Ke],nt.nativeEvent)}})),checked:qe}}:me=(je,Ye,Ze)=>{var Ke;const qe=x(Ye,Ze),nt=fe.has(qe),Qe=W.has(qe),it=B.get(qe);let yt;return T==="nest"?yt=Qe:yt=(Ke=it?.indeterminate)!==null&&Ke!==void 0?Ke:Qe,{node:b.createElement(FE,Object.assign({},it,{indeterminate:yt,checked:nt,skipGroup:!0,onClick:Wt=>Wt.stopPropagation(),onChange:Wt=>{let{nativeEvent:Mt}=Wt;const{shiftKey:tn}=Mt,Rt=ge.findIndex(Pt=>Pt===qe),Dt=F.some(Pt=>ge.includes(Pt));if(tn&&y&&Dt){const Pt=P(Rt,ge,fe),Ot=Array.from(fe);d?.(!nt,Ot.map(sn=>w(sn)),Pt.map(sn=>w(sn))),K(Ot,"multiple")}else{const Pt=F;if(y){const Ot=nt?pg(Pt,qe):f1(Pt,qe);J(qe,!nt,Ot,Mt)}else{const Ot=C5([].concat(Tt(Pt),[qe]),!0,H,k),{checkedKeys:sn,halfCheckedKeys:Jt}=Ot;let Vt=sn;if(nt){const pt=new Set(sn);pt.delete(qe),Vt=C5(Array.from(pt),{checked:!1,halfCheckedKeys:Jt},H,k).checkedKeys}J(qe,!nt,Vt,Mt)}}L(nt?null:Rt)}})),checked:nt}};const _e=(je,Ye,Ze)=>{const{node:Ke,checked:qe}=me(je,Ye,Ze);return g?g(qe,Ye,Ze,Ke):Ke};if(!de.includes(Dy))if(de.findIndex(je=>{var Ye;return((Ye=je[fR])===null||Ye===void 0?void 0:Ye.columnType)==="EXPAND_COLUMN"})===0){const[je,...Ye]=de;de=[je,Dy].concat(Tt(Ye))}else de=[Dy].concat(Tt(de));const Te=de.indexOf(Dy);de=de.filter((je,Ye)=>je!==Dy||Ye===Te);const xe=de[Te-1],De=de[Te+1];let Pe=m;Pe===void 0&&(De?.fixed!==void 0?Pe=De.fixed:xe?.fixed!==void 0&&(Pe=xe.fixed)),Pe&&xe&&((ue=xe[fR])===null||ue===void 0?void 0:ue.columnType)==="EXPAND_COLUMN"&&xe.fixed===void 0&&(xe.fixed=Pe);const Le=Oe(`${_}-selection-col`,{[`${_}-selection-col-with-dropdown`]:h&&p==="checkbox"}),ze=()=>t?.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(ye):t.columnTitle:he,Be={fixed:Pe,width:f,className:`${_}-selection-column`,title:ze(),render:_e,onCell:t.onCell,[fR]:{className:Le}};return de.map(je=>je===Dy?Be:je)},[x,M,t,F,q,W,f,te,T,B,d,J,k]),q]};function yYt(e,t){return e._antProxy=e._antProxy||{},Object.keys(t).forEach(n=>{if(!(n in e._antProxy)){const r=e[n];e._antProxy[n]=r,e[n]=t[n]}}),e}function bYt(e,t){return b.useImperativeHandle(e,()=>{const n=t(),{nativeElement:r}=n;return typeof Proxy<"u"?new Proxy(r,{get(i,a){return n[a]?n[a]:Reflect.get(i,a)}}):yYt(r,n)})}function _Yt(e){return function(n){let{prefixCls:r,onExpand:i,record:a,expanded:o,expandable:s}=n;const l=`${r}-row-expand-icon`;return b.createElement("button",{type:"button",onClick:c=>{i(a,c),c.stopPropagation()},className:Oe(l,{[`${l}-spaced`]:!s,[`${l}-expanded`]:s&&o,[`${l}-collapsed`]:s&&!o}),"aria-label":o?e.collapse:e.expand,"aria-expanded":o})}}function SYt(e){return(n,r)=>{const i=n.querySelector(`.${e}-container`);let a=r;if(i){const o=getComputedStyle(i),s=parseInt(o.borderLeftWidth,10),l=parseInt(o.borderRightWidth,10);a=r-s-l}return a}}function t_(e,t){return"key"in e&&e.key!==void 0&&e.key!==null?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t}function ET(e,t){return t?`${t}-${e}`:`${e}`}function Fz(e,t){return typeof e=="function"?e(t):e}function EYt(e,t){const n=Fz(e,t);return Object.prototype.toString.call(n)==="[object Object]"?"":n}function CYt(e){const t=b.useRef(e),n=Ede();return[()=>t.current,r=>{t.current=r,n()}]}function wYt(e){var t=e.dropPosition,n=e.dropLevelOffset,r=e.indent,i={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:i.top=0,i.left=-n*r;break;case 1:i.bottom=0,i.left=-n*r;break;case 0:i.bottom=0,i.left=r;break}return b.createElement("div",{style:i})}function QVe(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function xYt(e,t){var n=b.useState(!1),r=Fe(n,2),i=r[0],a=r[1];kr(function(){if(i)return e(),function(){t()}},[i]),kr(function(){return a(!0),function(){a(!1)}},[])}var TYt=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],JVe=function(t,n){var r=t.className,i=t.style,a=t.motion,o=t.motionNodes,s=t.motionType,l=t.onMotionStart,c=t.onMotionEnd,u=t.active,d=t.treeNodeRequiredProps,f=$n(t,TYt),p=b.useState(!0),h=Fe(p,2),m=h[0],g=h[1],v=b.useContext(yfe),y=v.prefixCls,_=o&&s!=="hide";kr(function(){o&&_!==m&&g(_)},[o]);var S=function(){o&&l()},C=b.useRef(!1),w=function(){o&&!C.current&&(C.current=!0,c())};xYt(S,w);var x=function(A){_===A&&w()};return o?b.createElement(Sl,Xe({ref:n,visible:m},a,{motionAppear:s==="show",onVisibleChanged:x}),function(T,A){var I=T.className,R=T.style;return b.createElement("div",{ref:A,className:Oe("".concat(y,"-treenode-motion"),I),style:R},o.map(function(N){var P=Object.assign({},(QVe(N.data),N.data)),L=N.title,$=N.key,D=N.isStart,z=N.isEnd;delete P.children;var U=uR($,d);return b.createElement(A3,Xe({},P,U,{title:L,active:u,data:N.data,key:$,isStart:D,isEnd:z}))}))}):b.createElement(A3,Xe({domRef:n,className:r,style:i},f,{active:u}))};JVe.displayName="MotionTreeNode";var IYt=b.forwardRef(JVe);function AYt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function i(a,o){var s=new Map;a.forEach(function(c){s.set(c,!0)});var l=o.filter(function(c){return!s.has(c)});return l.length===1?l[0]:null}return n<r?{add:!0,key:i(e,t)}:{add:!1,key:i(t,e)}}function gEe(e,t,n){var r=e.findIndex(function(s){return s.key===n}),i=e[r+1],a=t.findIndex(function(s){return s.key===n});if(i){var o=t.findIndex(function(s){return s.key===i.key});return t.slice(a+1,o)}return t.slice(a+1)}var RYt=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],vEe={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},NYt=function(){},BE="RC_TREE_MOTION_".concat(Math.random()),Lie={key:BE},eGe={key:BE,level:0,index:0,pos:"0",node:Lie,nodes:[Lie]},yEe={parent:null,children:[],pos:eGe.pos,data:Lie,title:null,key:BE,isStart:[],isEnd:[]};function bEe(e,t,n,r){return t===!1||!n?e:e.slice(0,Math.ceil(n/r)+1)}function _Ee(e){var t=e.key,n=e.pos;return PO(t,n)}function OYt(e){for(var t=String(e.data.key),n=e;n.parent;)n=n.parent,t="".concat(n.data.key," > ").concat(t);return t}var tGe=b.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var i=e.expandedKeys,a=e.selectedKeys,o=e.checkedKeys,s=e.loadedKeys,l=e.loadingKeys,c=e.halfCheckedKeys,u=e.keyEntities,d=e.disabled,f=e.dragging,p=e.dragOverNodeKey,h=e.dropPosition,m=e.motion,g=e.height,v=e.itemHeight,y=e.virtual,_=e.focusable,S=e.activeItem,C=e.focused,w=e.tabIndex,x=e.onKeyDown,T=e.onFocus,A=e.onBlur,I=e.onActiveChange,R=e.onListChangeStart,N=e.onListChangeEnd,P=$n(e,RYt),L=b.useRef(null),$=b.useRef(null);b.useImperativeHandle(t,function(){return{scrollTo:function(me){L.current.scrollTo(me)},getIndentWidth:function(){return $.current.offsetWidth}}});var D=b.useState(i),z=Fe(D,2),U=z[0],H=z[1],M=b.useState(r),B=Fe(M,2),k=B[0],F=B[1],G=b.useState(r),q=Fe(G,2),W=q[0],K=q[1],J=b.useState([]),te=Fe(J,2),ae=te[0],re=te[1],ue=b.useState(null),de=Fe(ue,2),fe=de[0],ge=de[1],oe=b.useRef(r);oe.current=r;function Ee(){var ye=oe.current;F(ye),K(ye),re([]),ge(null),N()}kr(function(){H(i);var ye=AYt(U,i);if(ye.key!==null)if(ye.add){var me=k.findIndex(function(Le){var ze=Le.key;return ze===ye.key}),_e=bEe(gEe(k,r,ye.key),y,g,v),Te=k.slice();Te.splice(me+1,0,yEe),K(Te),re(_e),ge("show")}else{var xe=r.findIndex(function(Le){var ze=Le.key;return ze===ye.key}),De=bEe(gEe(r,k,ye.key),y,g,v),Pe=r.slice();Pe.splice(xe+1,0,yEe),K(Pe),re(De),ge("hide")}else k!==r&&(F(r),K(r))},[i,r]),b.useEffect(function(){f||Ee()},[f]);var ce=m?W:r,he={expandedKeys:i,selectedKeys:a,loadedKeys:s,loadingKeys:l,checkedKeys:o,halfCheckedKeys:c,dragOverNodeKey:p,dropPosition:h,keyEntities:u};return b.createElement(b.Fragment,null,C&&S&&b.createElement("span",{style:vEe,"aria-live":"assertive"},OYt(S)),b.createElement("div",null,b.createElement("input",{style:vEe,disabled:_===!1||d,tabIndex:_!==!1?w:null,onKeyDown:x,onFocus:T,onBlur:A,value:"",onChange:NYt,"aria-label":"for screen reader"})),b.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},b.createElement("div",{className:"".concat(n,"-indent")},b.createElement("div",{ref:$,className:"".concat(n,"-indent-unit")}))),b.createElement(hz,Xe({},P,{data:ce,itemKey:_Ee,height:g,fullHeight:!1,virtual:y,itemHeight:v,prefixCls:"".concat(n,"-list"),ref:L,onVisibleChange:function(me,_e){var Te=new Set(me),xe=_e.filter(function(De){return!Te.has(De)});xe.some(function(De){return _Ee(De)===BE})&&Ee()}}),function(ye){var me=ye.pos,_e=Object.assign({},(QVe(ye.data),ye.data)),Te=ye.title,xe=ye.key,De=ye.isStart,Pe=ye.isEnd,Le=PO(xe,me);delete _e.key,delete _e.children;var ze=uR(Le,he);return b.createElement(IYt,Xe({},_e,ze,{title:Te,active:!!S&&xe===S.key,pos:me,data:ye.data,isStart:De,isEnd:Pe,motion:m,motionNodes:xe===BE?ae:null,motionType:fe,onMotionStart:R,onMotionEnd:Ee,treeNodeRequiredProps:he,onMouseMove:function(){I(null)}}))}))});tGe.displayName="NodeList";var LYt=10,_fe=function(e){Md(n,e);var t=$f(n);function n(){var r;co(this,n);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r=t.call.apply(t,[this].concat(a)),be(Qt(r),"destroyed",!1),be(Qt(r),"delayedDragEnterLogic",void 0),be(Qt(r),"loadingRetryTimes",{}),be(Qt(r),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:I3()}),be(Qt(r),"dragStartMousePosition",null),be(Qt(r),"dragNode",void 0),be(Qt(r),"currentMouseOverDroppableNodeKey",null),be(Qt(r),"listRef",b.createRef()),be(Qt(r),"onNodeDragStart",function(s,l){var c=r.state,u=c.expandedKeys,d=c.keyEntities,f=r.props.onDragStart,p=l.props.eventKey;r.dragNode=l,r.dragStartMousePosition={x:s.clientX,y:s.clientY};var h=pg(u,p);r.setState({draggingNodeKey:p,dragChildrenKeys:pYt(p,d),indent:r.listRef.current.getIndentWidth()}),r.setExpandedKeys(h),window.addEventListener("dragend",r.onWindowDragEnd),f?.({event:s,node:ul(l.props)})}),be(Qt(r),"onNodeDragEnter",function(s,l){var c=r.state,u=c.expandedKeys,d=c.keyEntities,f=c.dragChildrenKeys,p=c.flattenNodes,h=c.indent,m=r.props,g=m.onDragEnter,v=m.onExpand,y=m.allowDrop,_=m.direction,S=l.props,C=S.pos,w=S.eventKey,x=Qt(r),T=x.dragNode;if(r.currentMouseOverDroppableNodeKey!==w&&(r.currentMouseOverDroppableNodeKey=w),!T){r.resetDragState();return}var A=pEe(s,T,l,h,r.dragStartMousePosition,y,p,d,u,_),I=A.dropPosition,R=A.dropLevelOffset,N=A.dropTargetKey,P=A.dropContainerKey,L=A.dropTargetPos,$=A.dropAllowed,D=A.dragOverNodeKey;if(f.indexOf(N)!==-1||!$){r.resetDragState();return}if(r.delayedDragEnterLogic||(r.delayedDragEnterLogic={}),Object.keys(r.delayedDragEnterLogic).forEach(function(z){clearTimeout(r.delayedDragEnterLogic[z])}),T.props.eventKey!==l.props.eventKey&&(s.persist(),r.delayedDragEnterLogic[C]=window.setTimeout(function(){if(r.state.draggingNodeKey!==null){var z=Tt(u),U=sd(d,l.props.eventKey);U&&(U.children||[]).length&&(z=f1(u,l.props.eventKey)),"expandedKeys"in r.props||r.setExpandedKeys(z),v?.(z,{node:ul(l.props),expanded:!0,nativeEvent:s.nativeEvent})}},800)),T.props.eventKey===N&&R===0){r.resetDragState();return}r.setState({dragOverNodeKey:D,dropPosition:I,dropLevelOffset:R,dropTargetKey:N,dropContainerKey:P,dropTargetPos:L,dropAllowed:$}),g?.({event:s,node:ul(l.props),expandedKeys:u})}),be(Qt(r),"onNodeDragOver",function(s,l){var c=r.state,u=c.dragChildrenKeys,d=c.flattenNodes,f=c.keyEntities,p=c.expandedKeys,h=c.indent,m=r.props,g=m.onDragOver,v=m.allowDrop,y=m.direction,_=Qt(r),S=_.dragNode;if(S){var C=pEe(s,S,l,h,r.dragStartMousePosition,v,d,f,p,y),w=C.dropPosition,x=C.dropLevelOffset,T=C.dropTargetKey,A=C.dropContainerKey,I=C.dropAllowed,R=C.dropTargetPos,N=C.dragOverNodeKey;u.indexOf(T)!==-1||!I||(S.props.eventKey===T&&x===0?r.state.dropPosition===null&&r.state.dropLevelOffset===null&&r.state.dropTargetKey===null&&r.state.dropContainerKey===null&&r.state.dropTargetPos===null&&r.state.dropAllowed===!1&&r.state.dragOverNodeKey===null||r.resetDragState():w===r.state.dropPosition&&x===r.state.dropLevelOffset&&T===r.state.dropTargetKey&&A===r.state.dropContainerKey&&R===r.state.dropTargetPos&&I===r.state.dropAllowed&&N===r.state.dragOverNodeKey||r.setState({dropPosition:w,dropLevelOffset:x,dropTargetKey:T,dropContainerKey:A,dropTargetPos:R,dropAllowed:I,dragOverNodeKey:N}),g?.({event:s,node:ul(l.props)}))}}),be(Qt(r),"onNodeDragLeave",function(s,l){r.currentMouseOverDroppableNodeKey===l.props.eventKey&&!s.currentTarget.contains(s.relatedTarget)&&(r.resetDragState(),r.currentMouseOverDroppableNodeKey=null);var c=r.props.onDragLeave;c?.({event:s,node:ul(l.props)})}),be(Qt(r),"onWindowDragEnd",function(s){r.onNodeDragEnd(s,null,!0),window.removeEventListener("dragend",r.onWindowDragEnd)}),be(Qt(r),"onNodeDragEnd",function(s,l){var c=r.props.onDragEnd;r.setState({dragOverNodeKey:null}),r.cleanDragState(),c?.({event:s,node:ul(l.props)}),r.dragNode=null,window.removeEventListener("dragend",r.onWindowDragEnd)}),be(Qt(r),"onNodeDrop",function(s,l){var c,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,d=r.state,f=d.dragChildrenKeys,p=d.dropPosition,h=d.dropTargetKey,m=d.dropTargetPos,g=d.dropAllowed;if(g){var v=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),h!==null){var y=we(we({},uR(h,r.getTreeNodeRequiredProps())),{},{active:((c=r.getActiveItem())===null||c===void 0?void 0:c.key)===h,data:sd(r.state.keyEntities,h).node}),_=f.indexOf(h)!==-1;Ra(!_,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var S=bfe(m),C={event:s,node:ul(y),dragNode:r.dragNode?ul(r.dragNode.props):null,dragNodesKeys:[r.dragNode.props.eventKey].concat(f),dropToGap:p!==0,dropPosition:p+Number(S[S.length-1])};u||v?.(C),r.dragNode=null}}}),be(Qt(r),"cleanDragState",function(){var s=r.state.draggingNodeKey;s!==null&&r.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),r.dragStartMousePosition=null,r.currentMouseOverDroppableNodeKey=null}),be(Qt(r),"triggerExpandActionExpand",function(s,l){var c=r.state,u=c.expandedKeys,d=c.flattenNodes,f=l.expanded,p=l.key,h=l.isLeaf;if(!(h||s.shiftKey||s.metaKey||s.ctrlKey)){var m=d.filter(function(v){return v.key===p})[0],g=ul(we(we({},uR(p,r.getTreeNodeRequiredProps())),{},{data:m.data}));r.setExpandedKeys(f?pg(u,p):f1(u,p)),r.onNodeExpand(s,g)}}),be(Qt(r),"onNodeClick",function(s,l){var c=r.props,u=c.onClick,d=c.expandAction;d==="click"&&r.triggerExpandActionExpand(s,l),u?.(s,l)}),be(Qt(r),"onNodeDoubleClick",function(s,l){var c=r.props,u=c.onDoubleClick,d=c.expandAction;d==="doubleClick"&&r.triggerExpandActionExpand(s,l),u?.(s,l)}),be(Qt(r),"onNodeSelect",function(s,l){var c=r.state.selectedKeys,u=r.state,d=u.keyEntities,f=u.fieldNames,p=r.props,h=p.onSelect,m=p.multiple,g=l.selected,v=l[f.key],y=!g;y?m?c=f1(c,v):c=[v]:c=pg(c,v);var _=c.map(function(S){var C=sd(d,S);return C?C.node:null}).filter(function(S){return S});r.setUncontrolledState({selectedKeys:c}),h?.(c,{event:"select",selected:y,node:l,selectedNodes:_,nativeEvent:s.nativeEvent})}),be(Qt(r),"onNodeCheck",function(s,l,c){var u=r.state,d=u.keyEntities,f=u.checkedKeys,p=u.halfCheckedKeys,h=r.props,m=h.checkStrictly,g=h.onCheck,v=l.key,y,_={event:"check",node:l,checked:c,nativeEvent:s.nativeEvent};if(m){var S=c?f1(f,v):pg(f,v),C=pg(p,v);y={checked:S,halfChecked:C},_.checkedNodes=S.map(function(R){return sd(d,R)}).filter(function(R){return R}).map(function(R){return R.node}),r.setUncontrolledState({checkedKeys:S})}else{var w=C5([].concat(Tt(f),[v]),!0,d),x=w.checkedKeys,T=w.halfCheckedKeys;if(!c){var A=new Set(x);A.delete(v);var I=C5(Array.from(A),{checked:!1,halfCheckedKeys:T},d);x=I.checkedKeys,T=I.halfCheckedKeys}y=x,_.checkedNodes=[],_.checkedNodesPositions=[],_.halfCheckedKeys=T,x.forEach(function(R){var N=sd(d,R);if(N){var P=N.node,L=N.pos;_.checkedNodes.push(P),_.checkedNodesPositions.push({node:P,pos:L})}}),r.setUncontrolledState({checkedKeys:x},!1,{halfCheckedKeys:T})}g?.(y,_)}),be(Qt(r),"onNodeLoad",function(s){var l,c=s.key,u=r.state.keyEntities,d=sd(u,c);if(!(d!=null&&(l=d.children)!==null&&l!==void 0&&l.length)){var f=new Promise(function(p,h){r.setState(function(m){var g=m.loadedKeys,v=g===void 0?[]:g,y=m.loadingKeys,_=y===void 0?[]:y,S=r.props,C=S.loadData,w=S.onLoad;if(!C||v.indexOf(c)!==-1||_.indexOf(c)!==-1)return null;var x=C(s);return x.then(function(){var T=r.state.loadedKeys,A=f1(T,c);w?.(A,{event:"load",node:s}),r.setUncontrolledState({loadedKeys:A}),r.setState(function(I){return{loadingKeys:pg(I.loadingKeys,c)}}),p()}).catch(function(T){if(r.setState(function(I){return{loadingKeys:pg(I.loadingKeys,c)}}),r.loadingRetryTimes[c]=(r.loadingRetryTimes[c]||0)+1,r.loadingRetryTimes[c]>=LYt){var A=r.state.loadedKeys;Ra(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:f1(A,c)}),p()}h(T)}),{loadingKeys:f1(_,c)}})});return f.catch(function(){}),f}}),be(Qt(r),"onNodeMouseEnter",function(s,l){var c=r.props.onMouseEnter;c?.({event:s,node:l})}),be(Qt(r),"onNodeMouseLeave",function(s,l){var c=r.props.onMouseLeave;c?.({event:s,node:l})}),be(Qt(r),"onNodeContextMenu",function(s,l){var c=r.props.onRightClick;c&&(s.preventDefault(),c({event:s,node:l}))}),be(Qt(r),"onFocus",function(){var s=r.props.onFocus;r.setState({focused:!0});for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];s?.apply(void 0,c)}),be(Qt(r),"onBlur",function(){var s=r.props.onBlur;r.setState({focused:!1}),r.onActiveChange(null);for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];s?.apply(void 0,c)}),be(Qt(r),"getTreeNodeRequiredProps",function(){var s=r.state,l=s.expandedKeys,c=s.selectedKeys,u=s.loadedKeys,d=s.loadingKeys,f=s.checkedKeys,p=s.halfCheckedKeys,h=s.dragOverNodeKey,m=s.dropPosition,g=s.keyEntities;return{expandedKeys:l||[],selectedKeys:c||[],loadedKeys:u||[],loadingKeys:d||[],checkedKeys:f||[],halfCheckedKeys:p||[],dragOverNodeKey:h,dropPosition:m,keyEntities:g}}),be(Qt(r),"setExpandedKeys",function(s){var l=r.state,c=l.treeData,u=l.fieldNames,d=cq(c,s,u);r.setUncontrolledState({expandedKeys:s,flattenNodes:d},!0)}),be(Qt(r),"onNodeExpand",function(s,l){var c=r.state.expandedKeys,u=r.state,d=u.listChanging,f=u.fieldNames,p=r.props,h=p.onExpand,m=p.loadData,g=l.expanded,v=l[f.key];if(!d){var y=c.indexOf(v),_=!g;if(Ra(g&&y!==-1||!g&&y===-1,"Expand state not sync with index check"),_?c=f1(c,v):c=pg(c,v),r.setExpandedKeys(c),h?.(c,{node:l,expanded:_,nativeEvent:s.nativeEvent}),_&&m){var S=r.onNodeLoad(l);S&&S.then(function(){var C=cq(r.state.treeData,c,f);r.setUncontrolledState({flattenNodes:C})}).catch(function(){var C=r.state.expandedKeys,w=pg(C,v);r.setExpandedKeys(w)})}}}),be(Qt(r),"onListChangeStart",function(){r.setUncontrolledState({listChanging:!0})}),be(Qt(r),"onListChangeEnd",function(){setTimeout(function(){r.setUncontrolledState({listChanging:!1})})}),be(Qt(r),"onActiveChange",function(s){var l=r.state.activeKey,c=r.props,u=c.onActiveChange,d=c.itemScrollOffset,f=d===void 0?0:d;l!==s&&(r.setState({activeKey:s}),s!==null&&r.scrollTo({key:s,offset:f}),u?.(s))}),be(Qt(r),"getActiveItem",function(){var s=r.state,l=s.activeKey,c=s.flattenNodes;return l===null?null:c.find(function(u){var d=u.key;return d===l})||null}),be(Qt(r),"offsetActiveKey",function(s){var l=r.state,c=l.flattenNodes,u=l.activeKey,d=c.findIndex(function(h){var m=h.key;return m===u});d===-1&&s<0&&(d=c.length),d=(d+s+c.length)%c.length;var f=c[d];if(f){var p=f.key;r.onActiveChange(p)}else r.onActiveChange(null)}),be(Qt(r),"onKeyDown",function(s){var l=r.state,c=l.activeKey,u=l.expandedKeys,d=l.checkedKeys,f=l.fieldNames,p=r.props,h=p.onKeyDown,m=p.checkable,g=p.selectable;switch(s.which){case Bt.UP:{r.offsetActiveKey(-1),s.preventDefault();break}case Bt.DOWN:{r.offsetActiveKey(1),s.preventDefault();break}}var v=r.getActiveItem();if(v&&v.data){var y=r.getTreeNodeRequiredProps(),_=v.data.isLeaf===!1||!!(v.data[f.children]||[]).length,S=ul(we(we({},uR(c,y)),{},{data:v.data,active:!0}));switch(s.which){case Bt.LEFT:{_&&u.includes(c)?r.onNodeExpand({},S):v.parent&&r.onActiveChange(v.parent.key),s.preventDefault();break}case Bt.RIGHT:{_&&!u.includes(c)?r.onNodeExpand({},S):v.children&&v.children.length&&r.onActiveChange(v.children[0].key),s.preventDefault();break}case Bt.ENTER:case Bt.SPACE:{m&&!S.disabled&&S.checkable!==!1&&!S.disableCheckbox?r.onNodeCheck({},S,!d.includes(c)):!m&&g&&!S.disabled&&S.selectable!==!1&&r.onNodeSelect({},S);break}}}h?.(s)}),be(Qt(r),"setUncontrolledState",function(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var u=!1,d=!0,f={};Object.keys(s).forEach(function(p){if(p in r.props){d=!1;return}u=!0,f[p]=s[p]}),u&&(!l||d)&&r.setState(we(we({},f),c))}}),be(Qt(r),"scrollTo",function(s){r.listRef.current.scrollTo(s)}),r}return uo(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var i=this.props,a=i.activeKey,o=i.itemScrollOffset,s=o===void 0?0:o;a!==void 0&&a!==this.state.activeKey&&(this.setState({activeKey:a}),a!==null&&this.scrollTo({key:a,offset:s}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var i=this.state,a=i.focused,o=i.flattenNodes,s=i.keyEntities,l=i.draggingNodeKey,c=i.activeKey,u=i.dropLevelOffset,d=i.dropContainerKey,f=i.dropTargetKey,p=i.dropPosition,h=i.dragOverNodeKey,m=i.indent,g=this.props,v=g.prefixCls,y=g.className,_=g.style,S=g.showLine,C=g.focusable,w=g.tabIndex,x=w===void 0?0:w,T=g.selectable,A=g.showIcon,I=g.icon,R=g.switcherIcon,N=g.draggable,P=g.checkable,L=g.checkStrictly,$=g.disabled,D=g.motion,z=g.loadData,U=g.filterTreeNode,H=g.height,M=g.itemHeight,B=g.virtual,k=g.titleRender,F=g.dropIndicatorRender,G=g.onContextMenu,q=g.onScroll,W=g.direction,K=g.rootClassName,J=g.rootStyle,te=lo(this.props,{aria:!0,data:!0}),ae;return N&&(cn(N)==="object"?ae=N:typeof N=="function"?ae={nodeDraggable:N}:ae={}),b.createElement(yfe.Provider,{value:{prefixCls:v,selectable:T,showIcon:A,icon:I,switcherIcon:R,draggable:ae,draggingNodeKey:l,checkable:P,checkStrictly:L,disabled:$,keyEntities:s,dropLevelOffset:u,dropContainerKey:d,dropTargetKey:f,dropPosition:p,dragOverNodeKey:h,indent:m,direction:W,dropIndicatorRender:F,loadData:z,filterTreeNode:U,titleRender:k,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},b.createElement("div",{role:"tree",className:Oe(v,y,K,be(be(be({},"".concat(v,"-show-line"),S),"".concat(v,"-focused"),a),"".concat(v,"-active-focused"),c!==null)),style:J},b.createElement(tGe,Xe({ref:this.listRef,prefixCls:v,style:_,data:o,disabled:$,selectable:T,checkable:!!P,motion:D,dragging:l!==null,height:H,itemHeight:M,virtual:B,focusable:C,focused:a,tabIndex:x,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:G,onScroll:q},this.getTreeNodeRequiredProps(),te))))}}],[{key:"getDerivedStateFromProps",value:function(i,a){var o=a.prevProps,s={prevProps:i};function l(w){return!o&&w in i||o&&o[w]!==i[w]}var c,u=a.fieldNames;if(l("fieldNames")&&(u=I3(i.fieldNames),s.fieldNames=u),l("treeData")?c=i.treeData:l("children")&&(Ra(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),c=uHe(i.children)),c){s.treeData=c;var d=Wde(c,{fieldNames:u});s.keyEntities=we(be({},BE,eGe),d.keyEntities)}var f=s.keyEntities||a.keyEntities;if(l("expandedKeys")||o&&l("autoExpandParent"))s.expandedKeys=i.autoExpandParent||!o&&i.defaultExpandParent?Aie(i.expandedKeys,f):i.expandedKeys;else if(!o&&i.defaultExpandAll){var p=we({},f);delete p[BE],s.expandedKeys=Object.keys(p).map(function(w){return p[w].key})}else!o&&i.defaultExpandedKeys&&(s.expandedKeys=i.autoExpandParent||i.defaultExpandParent?Aie(i.defaultExpandedKeys,f):i.defaultExpandedKeys);if(s.expandedKeys||delete s.expandedKeys,c||s.expandedKeys){var h=cq(c||a.treeData,s.expandedKeys||a.expandedKeys,u);s.flattenNodes=h}if(i.selectable&&(l("selectedKeys")?s.selectedKeys=hEe(i.selectedKeys,i):!o&&i.defaultSelectedKeys&&(s.selectedKeys=hEe(i.defaultSelectedKeys,i))),i.checkable){var m;if(l("checkedKeys")?m=_q(i.checkedKeys)||{}:!o&&i.defaultCheckedKeys?m=_q(i.defaultCheckedKeys)||{}:c&&(m=_q(i.checkedKeys)||{checkedKeys:a.checkedKeys,halfCheckedKeys:a.halfCheckedKeys}),m){var g=m,v=g.checkedKeys,y=v===void 0?[]:v,_=g.halfCheckedKeys,S=_===void 0?[]:_;if(!i.checkStrictly){var C=C5(y,!0,f);y=C.checkedKeys,S=C.halfCheckedKeys}s.checkedKeys=y,s.halfCheckedKeys=S}}return l("loadedKeys")&&(s.loadedKeys=i.loadedKeys),s}}]),n}(b.Component);be(_fe,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:wYt,allowDrop:function(){return!0},expandAction:!1});be(_fe,"TreeNode",A3);const PYt=new Dr("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),kYt=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),MYt=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${Ce(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),DYt=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:i,titleHeight:a,nodeSelectedBg:o,nodeHoverBg:s}=t,l=t.paddingXS;return{[n]:Object.assign(Object.assign({},Wr(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,[`&${n}-rtl`]:{[`${n}-switcher`]:{"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},r0(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:i,insetInlineStart:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:PYt,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${r}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${Ce(i)} 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:a,lineHeight:`${Ce(a)}`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${t.motionDurationSlow}`,[`${r}:hover &`]:{opacity:.45}},[`&${r}-disabled`]:{[`${n}-draggable-icon`]:{visibility:"hidden"}}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:a}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher`]:Object.assign(Object.assign({},kYt(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:a,margin:0,lineHeight:`${Ce(a)}`,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,borderRadius:t.borderRadius,"&-noop":{cursor:"unset"},[`&:not(${n}-switcher-noop):hover`]:{backgroundColor:t.colorBgTextHover},"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(a).div(2).equal(),bottom:t.calc(i).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(a).div(2).equal()).mul(.8).equal(),height:t.calc(a).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-checkbox`]:{top:"initial",marginInlineEnd:l,alignSelf:"flex-start",marginTop:t.marginXXS},[`${n}-node-content-wrapper, ${n}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:a,margin:0,padding:`0 ${Ce(t.calc(t.paddingXS).div(2).equal())}`,color:"inherit",lineHeight:`${Ce(a)}`,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:s},[`&${n}-node-selected`]:{backgroundColor:o},[`${n}-iconEle`]:{display:"inline-block",width:a,height:a,lineHeight:`${Ce(a)}`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${n}-node-content-wrapper`]:Object.assign({lineHeight:`${Ce(a)}`,userSelect:"none"},MYt(e,t)),[`${r}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${t.colorPrimary}`}},"&-show-line":{[`${n}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(a).div(2).equal(),bottom:t.calc(i).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last`]:{[`${n}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${Ce(t.calc(a).div(2).equal())} !important`}}}}})}},$Yt=e=>{const{treeCls:t,treeNodeCls:n,treeNodePadding:r,directoryNodeSelectedBg:i,directoryNodeSelectedColor:a}=e;return{[`${t}${t}-directory`]:{[n]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:r,insetInlineStart:0,transition:`background-color ${e.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1},[`${t}-switcher`]:{transition:`color ${e.motionDurationMid}`},[`${t}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${t}-node-selected`]:{color:a,background:"transparent"}},"&-selected":{"\n            &:hover::before,\n            &::before\n          ":{background:i},[`${t}-switcher`]:{color:a},[`${t}-node-content-wrapper`]:{color:a,background:"transparent"}}}}}},FYt=(e,t)=>{const n=`.${e}`,r=`${n}-treenode`,i=t.calc(t.paddingXS).div(2).equal(),a=br(t,{treeCls:n,treeNodeCls:r,treeNodePadding:i});return[DYt(e,a),$Yt(a)]},BYt=e=>{const{controlHeightSM:t}=e;return{titleHeight:t,nodeHoverBg:e.controlItemBgHover,nodeSelectedBg:e.controlItemBgActive}},jYt=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},BYt(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})},zYt=Kr("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:fHe(`${n}-checkbox`,e)},FYt(n,e),_O(e)]},jYt),SEe=4;function UYt(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:i,direction:a="ltr"}=e,o=a==="ltr"?"left":"right",s=a==="ltr"?"right":"left",l={[o]:-n*i+SEe,[s]:0};switch(t){case-1:l.top=-3;break;case 1:l.bottom=-3;break;default:l.bottom=-3,l[o]=i+SEe;break}return se.createElement("div",{style:l,className:`${r}-drop-indicator`})}const HYt=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:i,switcherLoadingIcon:a}=e,{isLeaf:o,expanded:s,loading:l}=r;if(l)return b.isValidElement(a)?a:b.createElement(Np,{className:`${t}-switcher-loading-icon`});let c;if(i&&typeof i=="object"&&(c=i.showLeafIcon),o){if(!i)return null;if(typeof c!="boolean"&&c){const f=typeof c=="function"?c(r):c,p=`${t}-switcher-line-custom-icon`;return b.isValidElement(f)?as(f,{className:Oe(f.props.className||"",p)}):f}return c?b.createElement(uDe,{className:`${t}-switcher-line-icon`}):b.createElement("span",{className:`${t}-switcher-leaf-line`})}const u=`${t}-switcher-icon`,d=typeof n=="function"?n(r):n;return b.isValidElement(d)?as(d,{className:Oe(d.props.className||"",u)}):d!==void 0?d:i?s?b.createElement(ESt,{className:`${t}-switcher-line-icon`}):b.createElement(YSt,{className:`${t}-switcher-line-icon`}):b.createElement(pbt,{className:u})},nGe=se.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:i,virtual:a,tree:o}=se.useContext(Sn),{prefixCls:s,className:l,showIcon:c=!1,showLine:u,switcherIcon:d,switcherLoadingIcon:f,blockNode:p=!1,children:h,checkable:m=!1,selectable:g=!0,draggable:v,motion:y,style:_}=e,S=r("tree",s),C=r(),w=y??Object.assign(Object.assign({},C3(C)),{motionAppear:!1}),x=Object.assign(Object.assign({},e),{checkable:m,selectable:g,showIcon:c,motion:w,blockNode:p,showLine:!!u,dropIndicatorRender:UYt}),[T,A,I]=zYt(S),[,R]=nl(),N=R.paddingXS/2+(((n=R.Tree)===null||n===void 0?void 0:n.titleHeight)||R.controlHeightSM),P=se.useMemo(()=>{if(!v)return!1;let $={};switch(typeof v){case"function":$.nodeDraggable=v;break;case"object":$=Object.assign({},v);break}return $.icon!==!1&&($.icon=$.icon||se.createElement(N2t,null)),$},[v]),L=$=>se.createElement(HYt,{prefixCls:S,switcherIcon:d,switcherLoadingIcon:f,treeNodeProps:$,showLine:u});return T(se.createElement(_fe,Object.assign({itemHeight:N,ref:t,virtual:a},x,{style:Object.assign(Object.assign({},o?.style),_),prefixCls:S,className:Oe({[`${S}-icon-hide`]:!c,[`${S}-block-node`]:p,[`${S}-unselectable`]:!g,[`${S}-rtl`]:i==="rtl"},o?.className,l,A,I),direction:i,checkable:m&&se.createElement("span",{className:`${S}-checkbox-inner`}),selectable:g,switcherIcon:L,draggable:P}),h))}),EEe=0,Sq=1,CEe=2;function Sfe(e,t,n){const{key:r,children:i}=n;function a(o){const s=o[r],l=o[i];t(s,o)!==!1&&Sfe(l||[],t,n)}e.forEach(a)}function VYt(e){let{treeData:t,expandedKeys:n,startKey:r,endKey:i,fieldNames:a}=e;const o=[];let s=EEe;if(r&&r===i)return[r];if(!r||!i)return[];function l(c){return c===r||c===i}return Sfe(t,c=>{if(s===CEe)return!1;if(l(c)){if(o.push(c),s===EEe)s=Sq;else if(s===Sq)return s=CEe,!1}else s===Sq&&o.push(c);return n.includes(c)},I3(a)),o}function Eq(e,t,n){const r=Tt(t),i=[];return Sfe(e,(a,o)=>{const s=r.indexOf(a);return s!==-1&&(i.push(o),r.splice(s,1)),!!r.length},I3(n)),i}var wEe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function GYt(e){const{isLeaf:t,expanded:n}=e;return t?b.createElement(uDe,null):n?b.createElement(g2t,null):b.createElement(b2t,null)}function xEe(e){let{treeData:t,children:n}=e;return t||uHe(n)}const qYt=(e,t)=>{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:i}=e,a=wEe(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const o=b.useRef(),s=b.useRef(),l=()=>{const{keyEntities:T}=Wde(xEe(a));let A;return n?A=Object.keys(T):r?A=Aie(a.expandedKeys||i||[],T):A=a.expandedKeys||i||[],A},[c,u]=b.useState(a.selectedKeys||a.defaultSelectedKeys||[]),[d,f]=b.useState(()=>l());b.useEffect(()=>{"selectedKeys"in a&&u(a.selectedKeys)},[a.selectedKeys]),b.useEffect(()=>{"expandedKeys"in a&&f(a.expandedKeys)},[a.expandedKeys]);const p=(T,A)=>{var I;return"expandedKeys"in a||f(T),(I=a.onExpand)===null||I===void 0?void 0:I.call(a,T,A)},h=(T,A)=>{var I;const{multiple:R,fieldNames:N}=a,{node:P,nativeEvent:L}=A,{key:$=""}=P,D=xEe(a),z=Object.assign(Object.assign({},A),{selected:!0}),U=L?.ctrlKey||L?.metaKey,H=L?.shiftKey;let M;R&&U?(M=T,o.current=$,s.current=M,z.selectedNodes=Eq(D,M,N)):R&&H?(M=Array.from(new Set([].concat(Tt(s.current||[]),Tt(VYt({treeData:D,expandedKeys:d,startKey:$,endKey:o.current,fieldNames:N}))))),z.selectedNodes=Eq(D,M,N)):(M=[$],o.current=$,s.current=M,z.selectedNodes=Eq(D,M,N)),(I=a.onSelect)===null||I===void 0||I.call(a,M,z),"selectedKeys"in a||u(M)},{getPrefixCls:m,direction:g}=b.useContext(Sn),{prefixCls:v,className:y,showIcon:_=!0,expandAction:S="click"}=a,C=wEe(a,["prefixCls","className","showIcon","expandAction"]),w=m("tree",v),x=Oe(`${w}-directory`,{[`${w}-directory-rtl`]:g==="rtl"},y);return b.createElement(nGe,Object.assign({icon:GYt,ref:t,blockNode:!0},C,{showIcon:_,expandAction:S,prefixCls:w,className:x,expandedKeys:d,selectedKeys:c,onSelect:h,onExpand:p}))},WYt=b.forwardRef(qYt),Efe=nGe;Efe.DirectoryTree=WYt;Efe.TreeNode=A3;function TEe(e){let{value:t,onChange:n,filterSearch:r,tablePrefixCls:i,locale:a}=e;return r?b.createElement("div",{className:`${i}-filter-dropdown-search`},b.createElement($r,{prefix:b.createElement(bj,null),placeholder:a.filterSearchPlaceholder,onChange:n,value:t,htmlSize:1,className:`${i}-filter-dropdown-search-input`})):null}const YYt=e=>{const{keyCode:t}=e;t===Bt.ENTER&&e.stopPropagation()},KYt=b.forwardRef((e,t)=>b.createElement("div",{className:e.className,onClick:n=>n.stopPropagation(),onKeyDown:YYt,ref:t},e.children));function x5(e){let t=[];return(e||[]).forEach(n=>{let{value:r,children:i}=n;t.push(r),i&&(t=[].concat(Tt(t),Tt(x5(i))))}),t}function XYt(e){return e.some(t=>{let{children:n}=t;return n})}function rGe(e,t){return typeof t=="string"||typeof t=="number"?t?.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function iGe(e){let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:a,filterSearch:o}=e;return t.map((s,l)=>{const c=String(s.value);if(s.children)return{key:c||l,label:s.text,popupClassName:`${n}-dropdown-submenu`,children:iGe({filters:s.children,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:a,filterSearch:o})};const u=i?FE:dc,d={key:s.value!==void 0?c:l,label:b.createElement(b.Fragment,null,b.createElement(u,{checked:r.includes(c)}),b.createElement("span",null,s.text))};return a.trim()?typeof o=="function"?o(a,s)?d:null:rGe(a,s.text)?d:null:d})}function Cq(e){return e||[]}function ZYt(e){var t,n;const{tablePrefixCls:r,prefixCls:i,column:a,dropdownPrefixCls:o,columnKey:s,filterOnClose:l,filterMultiple:c,filterMode:u="menu",filterSearch:d=!1,filterState:f,triggerFilter:p,locale:h,children:m,getPopupContainer:g,rootClassName:v}=e,{filterDropdownOpen:y,onFilterDropdownOpenChange:_,filterResetToDefaultFilteredValue:S,defaultFilteredValue:C,filterDropdownVisible:w,onFilterDropdownVisibleChange:x}=a,[T,A]=b.useState(!1),I=!!(f&&(!((t=f.filteredKeys)===null||t===void 0)&&t.length||f.forceFiltered)),R=ce=>{A(ce),_?.(ce),x?.(ce)},N=(n=y??w)!==null&&n!==void 0?n:T,P=f?.filteredKeys,[L,$]=CYt(Cq(P)),D=ce=>{let{selectedKeys:he}=ce;$(he)},z=(ce,he)=>{let{node:ye,checked:me}=he;D(c?{selectedKeys:ce}:{selectedKeys:me&&ye.key?[ye.key]:[]})};b.useEffect(()=>{T&&D({selectedKeys:Cq(P)})},[P]);const[U,H]=b.useState([]),M=ce=>{H(ce)},[B,k]=b.useState(""),F=ce=>{const{value:he}=ce.target;k(he)};b.useEffect(()=>{T||k("")},[T]);const G=ce=>{const he=ce?.length?ce:null;if(he===null&&(!f||!f.filteredKeys)||Op(he,f?.filteredKeys,!0))return null;p({column:a,key:s,filteredKeys:he})},q=()=>{R(!1),G(L())},W=function(){let{confirm:ce,closeDropdown:he}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};ce&&G([]),he&&R(!1),k(""),$(S?(C||[]).map(ye=>String(ye)):[])},K=function(){let{closeDropdown:ce}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};ce&&R(!1),G(L())},J=(ce,he)=>{he.source==="trigger"&&(ce&&P!==void 0&&$(Cq(P)),R(ce),!ce&&!a.filterDropdown&&l&&q())},te=Oe({[`${o}-menu-without-submenu`]:!XYt(a.filters||[])}),ae=ce=>{if(ce.target.checked){const he=x5(a?.filters).map(ye=>String(ye));$(he)}else $([])},re=ce=>{let{filters:he}=ce;return(he||[]).map((ye,me)=>{const _e=String(ye.value),Te={title:ye.text,key:ye.value!==void 0?_e:String(me)};return ye.children&&(Te.children=re({filters:ye.children})),Te})},ue=ce=>{var he;return Object.assign(Object.assign({},ce),{text:ce.title,value:ce.key,children:((he=ce.children)===null||he===void 0?void 0:he.map(ye=>ue(ye)))||[]})};let de;const{direction:fe,renderEmpty:ge}=b.useContext(Sn);if(typeof a.filterDropdown=="function")de=a.filterDropdown({prefixCls:`${o}-custom`,setSelectedKeys:ce=>D({selectedKeys:ce}),selectedKeys:L(),confirm:K,clearFilters:W,filters:a.filters,visible:N,close:()=>{R(!1)}});else if(a.filterDropdown)de=a.filterDropdown;else{const ce=L()||[],he=()=>{var me;const _e=(me=ge?.("Table.filter"))!==null&&me!==void 0?me:b.createElement(Fo,{image:Fo.PRESENTED_IMAGE_SIMPLE,description:h.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}});if((a.filters||[]).length===0)return _e;if(u==="tree")return b.createElement(b.Fragment,null,b.createElement(TEe,{filterSearch:d,value:B,onChange:F,tablePrefixCls:r,locale:h}),b.createElement("div",{className:`${r}-filter-dropdown-tree`},c?b.createElement(FE,{checked:ce.length===x5(a.filters).length,indeterminate:ce.length>0&&ce.length<x5(a.filters).length,className:`${r}-filter-dropdown-checkall`,onChange:ae},h.filterCheckall):null,b.createElement(Efe,{checkable:!0,selectable:!1,blockNode:!0,multiple:c,checkStrictly:!c,className:`${o}-menu`,onCheck:z,checkedKeys:ce,selectedKeys:ce,showIcon:!1,treeData:re({filters:a.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:B.trim()?De=>typeof d=="function"?d(B,ue(De)):rGe(B,De.title):void 0})));const Te=iGe({filters:a.filters||[],filterSearch:d,prefixCls:i,filteredKeys:L(),filterMultiple:c,searchValue:B}),xe=Te.every(De=>De===null);return b.createElement(b.Fragment,null,b.createElement(TEe,{filterSearch:d,value:B,onChange:F,tablePrefixCls:r,locale:h}),xe?_e:b.createElement(um,{selectable:!0,multiple:c,prefixCls:`${o}-menu`,className:te,onSelect:D,onDeselect:D,selectedKeys:ce,getPopupContainer:g,openKeys:U,onOpenChange:M,items:Te}))},ye=()=>S?Op((C||[]).map(me=>String(me)),ce,!0):ce.length===0;de=b.createElement(b.Fragment,null,he(),b.createElement("div",{className:`${i}-dropdown-btns`},b.createElement(ut,{type:"link",size:"small",disabled:ye(),onClick:()=>W()},h.filterReset),b.createElement(ut,{type:"primary",size:"small",onClick:q},h.filterConfirm)))}a.filterDropdown&&(de=b.createElement(aUe,{selectable:void 0},de));const oe=()=>b.createElement(KYt,{className:`${i}-dropdown`},de);let Ee;return typeof a.filterIcon=="function"?Ee=a.filterIcon(I):a.filterIcon?Ee=a.filterIcon:Ee=b.createElement(a2t,null),b.createElement("div",{className:`${i}-column`},b.createElement("span",{className:`${r}-column-title`},m),b.createElement(Vo,{dropdownRender:oe,trigger:["click"],open:N,onOpenChange:J,getPopupContainer:g,placement:fe==="rtl"?"bottomLeft":"bottomRight",rootClassName:v},b.createElement("span",{role:"button",tabIndex:-1,className:Oe(`${i}-trigger`,{active:I}),onClick:ce=>{ce.stopPropagation()}},Ee)))}function Pie(e,t,n){let r=[];return(e||[]).forEach((i,a)=>{var o;const s=ET(a,n);if(i.filters||"filterDropdown"in i||"onFilter"in i)if("filteredValue"in i){let l=i.filteredValue;"filterDropdown"in i||(l=(o=l?.map(String))!==null&&o!==void 0?o:l),r.push({column:i,key:t_(i,s),filteredKeys:l,forceFiltered:i.filtered})}else r.push({column:i,key:t_(i,s),filteredKeys:t&&i.defaultFilteredValue?i.defaultFilteredValue:void 0,forceFiltered:i.filtered});"children"in i&&(r=[].concat(Tt(r),Tt(Pie(i.children,t,s))))}),r}function aGe(e,t,n,r,i,a,o,s,l){return n.map((c,u)=>{const d=ET(u,s),{filterOnClose:f=!0,filterMultiple:p=!0,filterMode:h,filterSearch:m}=c;let g=c;if(g.filters||g.filterDropdown){const v=t_(g,d),y=r.find(_=>{let{key:S}=_;return v===S});g=Object.assign(Object.assign({},g),{title:_=>b.createElement(ZYt,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:g,columnKey:v,filterState:y,filterOnClose:f,filterMultiple:p,filterMode:h,filterSearch:m,triggerFilter:a,locale:i,getPopupContainer:o,rootClassName:l},Fz(c.title,_))})}return"children"in g&&(g=Object.assign(Object.assign({},g),{children:aGe(e,t,g.children,r,i,a,o,d,l)})),g})}function IEe(e){const t={};return e.forEach(n=>{let{key:r,filteredKeys:i,column:a}=n;const o=r,{filters:s,filterDropdown:l}=a;if(l)t[o]=i||null;else if(Array.isArray(i)){const c=x5(s);t[o]=c.filter(u=>i.includes(String(u)))}else t[o]=null}),t}function kie(e,t,n){return t.reduce((r,i)=>{const{column:{onFilter:a,filters:o},filteredKeys:s}=i;return a&&s&&s.length?r.map(l=>Object.assign({},l)).filter(l=>s.some(c=>{const u=x5(o),d=u.findIndex(p=>String(p)===String(c)),f=d!==-1?u[d]:c;return l[n]&&(l[n]=kie(l[n],t,n)),a(f,l)})):r},e)}const oGe=e=>e.flatMap(t=>"children"in t?[t].concat(Tt(oGe(t.children||[]))):[t]);function QYt(e){let{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:i,getPopupContainer:a,locale:o,rootClassName:s}=e;g0();const l=b.useMemo(()=>oGe(r||[]),[r]),[c,u]=b.useState(()=>Pie(l,!0)),d=b.useMemo(()=>{const m=Pie(l,!1);if(m.length===0)return m;let g=!0;if(m.forEach(v=>{let{filteredKeys:y}=v;y!==void 0&&(g=!1)}),g){const v=(l||[]).map((y,_)=>t_(y,ET(_)));return c.filter(y=>{let{key:_}=y;return v.includes(_)}).map(y=>{const _=l[v.findIndex(S=>S===y.key)];return Object.assign(Object.assign({},y),{column:Object.assign(Object.assign({},y.column),_),forceFiltered:_.filtered})})}return m},[l,c]),f=b.useMemo(()=>IEe(d),[d]),p=m=>{const g=d.filter(v=>{let{key:y}=v;return y!==m.key});g.push(m),u(g),i(IEe(g),g)};return[m=>aGe(t,n,m,d,o,p,a,void 0,s),d,f]}function JYt(e,t,n){const r=b.useRef({});function i(a){if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let s=function(l){l.forEach((c,u)=>{const d=n(c,u);o.set(d,c),c&&typeof c=="object"&&t in c&&s(c[t]||[])})};const o=new Map;s(e),r.current={data:e,childrenColumnName:t,kvMap:o,getRowKey:n}}return r.current.kvMap.get(a)}return[i]}var eKt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const sGe=10;function tKt(e,t){const n={current:e.current,pageSize:e.pageSize};return Object.keys(t&&typeof t=="object"?t:{}).forEach(i=>{const a=e[i];typeof a!="function"&&(n[i]=a)}),n}function nKt(e,t,n){const r=n&&typeof n=="object"?n:{},{total:i=0}=r,a=eKt(r,["total"]),[o,s]=b.useState(()=>({current:"defaultCurrent"in a?a.defaultCurrent:1,pageSize:"defaultPageSize"in a?a.defaultPageSize:sGe})),l=bVe(o,a,{total:i>0?i:e}),c=Math.ceil((i||e)/l.pageSize);l.current>c&&(l.current=c||1);const u=(f,p)=>{s({current:f??1,pageSize:p||l.pageSize})},d=(f,p)=>{var h;n&&((h=n.onChange)===null||h===void 0||h.call(n,f,p)),u(f,p),t(f,p||l?.pageSize)};return n===!1?[{},()=>{}]:[Object.assign(Object.assign({},l),{onChange:d}),u]}const i7="ascend",wq="descend";function Q$(e){return typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1}function AEe(e){return typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1}function rKt(e,t){return t?e[e.indexOf(t)+1]:e[0]}function Mie(e,t,n){let r=[];function i(a,o){r.push({column:a,key:t_(a,o),multiplePriority:Q$(a),sortOrder:a.sortOrder})}return(e||[]).forEach((a,o)=>{const s=ET(o,n);a.children?("sortOrder"in a&&i(a,s),r=[].concat(Tt(r),Tt(Mie(a.children,t,s)))):a.sorter&&("sortOrder"in a?i(a,s):t&&a.defaultSortOrder&&r.push({column:a,key:t_(a,s),multiplePriority:Q$(a),sortOrder:a.defaultSortOrder}))}),r}function lGe(e,t,n,r,i,a,o,s){return(t||[]).map((l,c)=>{const u=ET(c,s);let d=l;if(d.sorter){const f=d.sortDirections||i,p=d.showSorterTooltip===void 0?o:d.showSorterTooltip,h=t_(d,u),m=n.find(T=>{let{key:A}=T;return A===h}),g=m?m.sortOrder:null,v=rKt(f,g);let y;if(l.sortIcon)y=l.sortIcon({sortOrder:g});else{const T=f.includes(i7)&&b.createElement(bbt,{className:Oe(`${e}-column-sorter-up`,{active:g===i7})}),A=f.includes(wq)&&b.createElement(gbt,{className:Oe(`${e}-column-sorter-down`,{active:g===wq})});y=b.createElement("span",{className:Oe(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(T&&A)})},b.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},T,A))}const{cancelSort:_,triggerAsc:S,triggerDesc:C}=a||{};let w=_;v===wq?w=C:v===i7&&(w=S);const x=typeof p=="object"?Object.assign({title:w},p):{title:w};d=Object.assign(Object.assign({},d),{className:Oe(d.className,{[`${e}-column-sort`]:g}),title:T=>{const A=`${e}-column-sorters`,I=b.createElement("span",{className:`${e}-column-title`},Fz(l.title,T)),R=b.createElement("div",{className:A},I,y);return p?typeof p!="boolean"&&p?.target==="sorter-icon"?b.createElement("div",{className:`${A} ${e}-column-sorters-tooltip-target-sorter`},I,b.createElement(vr,Object.assign({},x),y)):b.createElement(vr,Object.assign({},x),R):R},onHeaderCell:T=>{var A;const I=((A=l.onHeaderCell)===null||A===void 0?void 0:A.call(l,T))||{},R=I.onClick,N=I.onKeyDown;I.onClick=$=>{r({column:l,key:h,sortOrder:v,multiplePriority:Q$(l)}),R?.($)},I.onKeyDown=$=>{$.keyCode===Bt.ENTER&&(r({column:l,key:h,sortOrder:v,multiplePriority:Q$(l)}),N?.($))};const P=EYt(l.title,{}),L=P?.toString();return g?I["aria-sort"]=g==="ascend"?"ascending":"descending":I["aria-label"]=L||"",I.className=Oe(I.className,`${e}-column-has-sorters`),I.tabIndex=0,l.ellipsis&&(I.title=(P??"").toString()),I}})}return"children"in d&&(d=Object.assign(Object.assign({},d),{children:lGe(e,d.children,n,r,i,a,o,u)})),d})}const REe=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},NEe=e=>{const t=e.filter(n=>{let{sortOrder:r}=n;return r}).map(REe);if(t.length===0&&e.length){const n=e.length-1;return Object.assign(Object.assign({},REe(e[n])),{column:void 0})}return t.length<=1?t[0]||{}:t};function Die(e,t,n){const r=t.slice().sort((o,s)=>s.multiplePriority-o.multiplePriority),i=e.slice(),a=r.filter(o=>{let{column:{sorter:s},sortOrder:l}=o;return AEe(s)&&l});return a.length?i.sort((o,s)=>{for(let l=0;l<a.length;l+=1){const c=a[l],{column:{sorter:u},sortOrder:d}=c,f=AEe(u);if(f&&d){const p=f(o,s,d);if(p!==0)return d===i7?p:-p}}return 0}).map(o=>{const s=o[n];return s?Object.assign(Object.assign({},o),{[n]:Die(s,t,n)}):o}):i}function iKt(e){let{prefixCls:t,mergedColumns:n,onSorterChange:r,sortDirections:i,tableLocale:a,showSorterTooltip:o}=e;const[s,l]=b.useState(Mie(n,!0)),c=(m,g)=>{const v=[];return m.forEach((y,_)=>{const S=ET(_,g);if(v.push(t_(y,S)),Array.isArray(y.children)){const C=c(y.children,S);v.push.apply(v,Tt(C))}}),v},u=b.useMemo(()=>{let m=!0;const g=Mie(n,!1);if(!g.length){const S=c(n);return s.filter(C=>{let{key:w}=C;return S.includes(w)})}const v=[];function y(S){m?v.push(S):v.push(Object.assign(Object.assign({},S),{sortOrder:null}))}let _=null;return g.forEach(S=>{_===null?(y(S),S.sortOrder&&(S.multiplePriority===!1?m=!1:_=!0)):(_&&S.multiplePriority!==!1||(m=!1),y(S))}),v},[n,s]),d=b.useMemo(()=>{var m,g;const v=u.map(y=>{let{column:_,sortOrder:S}=y;return{column:_,order:S}});return{sortColumns:v,sortColumn:(m=v[0])===null||m===void 0?void 0:m.column,sortOrder:(g=v[0])===null||g===void 0?void 0:g.order}},[u]),f=m=>{let g;m.multiplePriority===!1||!u.length||u[0].multiplePriority===!1?g=[m]:g=[].concat(Tt(u.filter(v=>{let{key:y}=v;return y!==m.key})),[m]),l(g),r(NEe(g),g)};return[m=>lGe(t,m,u,f,i,a,o),u,d,()=>NEe(u)]}function cGe(e,t){return e.map(n=>{const r=Object.assign({},n);return r.title=Fz(n.title,t),"children"in r&&(r.children=cGe(r.children,t)),r})}function aKt(e){return[b.useCallback(n=>cGe(n,e),[e])]}const oKt=YVe((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),sKt=XVe((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),lKt=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:i,tableHeaderBg:a,tablePaddingVertical:o,tablePaddingHorizontal:s,calc:l}=e,c=`${Ce(n)} ${r} ${i}`,u=(d,f,p)=>({[`&${t}-${d}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n            > table > tbody > tr > th,\n            > table > tbody > tr > td\n          ":{[`> ${t}-expanded-row-fixed`]:{margin:`${Ce(l(f).mul(-1).equal())}
              ${Ce(l(l(p).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:c,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:c,borderTop:c,[`
            > ${t}-content,
            > ${t}-header,
            > ${t}-body,
            > ${t}-summary
          `]:{"> table":{"\n                > thead > tr > th,\n                > thead > tr > td,\n                > tbody > tr > th,\n                > tbody > tr > td,\n                > tfoot > tr > th,\n                > tfoot > tr > td\n              ":{borderInlineEnd:c},"> thead":{"> tr:not(:last-child) > th":{borderBottom:c},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n                > thead > tr,\n                > tbody > tr,\n                > tfoot > tr\n              ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:c}},"\n                > tbody > tr > th,\n                > tbody > tr > td\n              ":{[`> ${t}-expanded-row-fixed`]:{margin:`${Ce(l(o).mul(-1).equal())} ${Ce(l(l(s).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:c,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`
                > tr${t}-expanded-row,
                > tr${t}-placeholder
              `]:{"> th, > td":{borderInlineEnd:0}}}}}},u("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),u("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:c,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${Ce(n)} 0 ${Ce(n)} ${a}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:c}}}},cKt=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},Pp),{wordBreak:"keep-all",[`
          &${t}-cell-fix-left-last,
          &${t}-cell-fix-right-first
        `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},uKt=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n          &:hover > th,\n          &:hover > td,\n        ":{background:e.colorBgContainer}}}}},dKt=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:i,paddingXS:a,lineType:o,tableBorderColor:s,tableExpandIconBg:l,tableExpandColumnWidth:c,borderRadius:u,tablePaddingVertical:d,tablePaddingHorizontal:f,tableExpandedRowBg:p,paddingXXS:h,expandIconMarginTop:m,expandIconSize:g,expandIconHalfInner:v,expandIconScale:y,calc:_}=e,S=`${Ce(i)} ${o} ${s}`,C=_(h).sub(i).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:c},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},q6t(e)),{position:"relative",float:"left",boxSizing:"border-box",width:g,height:g,padding:0,color:"inherit",lineHeight:Ce(g),background:l,border:S,borderRadius:u,transform:`scale(${y})`,transition:`all ${r}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:v,insetInlineEnd:C,insetInlineStart:C,height:i},"&::after":{top:C,bottom:C,insetInlineStart:v,width:i,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:m,marginInlineEnd:a},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:p}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${Ce(_(d).mul(-1).equal())} ${Ce(_(f).mul(-1).equal())}`,padding:`${Ce(d)} ${Ce(f)}`}}}},fKt=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:i,tableFilterDropdownSearchWidth:a,paddingXXS:o,paddingXS:s,colorText:l,lineWidth:c,lineType:u,tableBorderColor:d,headerIconColor:f,fontSizeSM:p,tablePaddingHorizontal:h,borderRadius:m,motionDurationSlow:g,colorTextDescription:v,colorPrimary:y,tableHeaderFilterActiveBg:_,colorTextDisabled:S,tableFilterDropdownBg:C,tableFilterDropdownHeight:w,controlItemBgHover:x,controlItemBgActive:T,boxShadowSecondary:A,filterDropdownMenuBg:I,calc:R}=e,N=`${n}-dropdown`,P=`${t}-filter-dropdown`,L=`${n}-tree`,$=`${Ce(c)} ${u} ${d}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:R(o).mul(-1).equal(),marginInline:`${Ce(o)} ${Ce(R(h).div(2).mul(-1).equal())}`,padding:`0 ${Ce(o)}`,color:f,fontSize:p,borderRadius:m,cursor:"pointer",transition:`all ${g}`,"&:hover":{color:v,background:_},"&.active":{color:y}}}},{[`${n}-dropdown`]:{[P]:Object.assign(Object.assign({},Wr(e)),{minWidth:i,backgroundColor:C,borderRadius:m,boxShadow:A,overflow:"hidden",[`${N}-menu`]:{maxHeight:w,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:I,"&:empty::after":{display:"block",padding:`${Ce(s)} 0`,color:S,fontSize:p,textAlign:"center",content:'"Not Found"'}},[`${P}-tree`]:{paddingBlock:`${Ce(s)} 0`,paddingInline:s,[L]:{padding:0},[`${L}-treenode ${L}-node-content-wrapper:hover`]:{backgroundColor:x},[`${L}-treenode-checkbox-checked ${L}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:T}}},[`${P}-search`]:{padding:s,borderBottom:$,"&-input":{input:{minWidth:a},[r]:{color:S}}},[`${P}-checkall`]:{width:"100%",marginBottom:o,marginInlineStart:o},[`${P}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${Ce(R(s).sub(c).equal())} ${Ce(s)}`,overflow:"hidden",borderTop:$}})}},{[`${n}-dropdown ${P}, ${P}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:s,color:l},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},pKt=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:i,zIndexTableFixed:a,tableBg:o,zIndexTableSticky:s,calc:l}=e,c=r;return{[`${t}-wrapper`]:{[`
        ${t}-cell-fix-left,
        ${t}-cell-fix-right
      `]:{position:"sticky !important",zIndex:a,background:o},[`
        ${t}-cell-fix-left-first::after,
        ${t}-cell-fix-left-last::after
      `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:l(n).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${i}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[`
        ${t}-cell-fix-right-first::after,
        ${t}-cell-fix-right-last::after
      `]:{position:"absolute",top:0,bottom:l(n).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${i}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:l(s).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${i}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${c}`},[`
          ${t}-cell-fix-left-first::after,
          ${t}-cell-fix-left-last::after
        `]:{boxShadow:`inset 10px 0 8px -8px ${c}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${c}`},[`
          ${t}-cell-fix-right-first::after,
          ${t}-cell-fix-right-last::after
        `]:{boxShadow:`inset -10px 0 8px -8px ${c}`}},[`${t}-fixed-column-gapped`]:{[`
        ${t}-cell-fix-left-first::after,
        ${t}-cell-fix-left-last::after,
        ${t}-cell-fix-right-first::after,
        ${t}-cell-fix-right-last::after
      `]:{boxShadow:"none"}}}}},hKt=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${Ce(r)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},mKt=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${Ce(n)} ${Ce(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${Ce(n)} ${Ce(n)}`}}}}},gKt=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},vKt=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:i,padding:a,paddingXS:o,headerIconColor:s,headerIconHoverColor:l,tableSelectionColumnWidth:c,tableSelectedRowBg:u,tableSelectedRowHoverBg:d,tableRowHoverBg:f,tablePaddingHorizontal:p,calc:h}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:c,[`&${t}-selection-col-with-dropdown`]:{width:h(c).add(i).add(h(a).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:h(c).add(h(o).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:h(c).add(i).add(h(a).div(4)).add(h(o).mul(2)).equal()}},[`
        table tr th${t}-selection-column,
        table tr td${t}-selection-column,
        ${t}-selection-column
      `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:e.zIndexTableFixed+1},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:Ce(h(p).div(4).equal()),[r]:{color:s,fontSize:i,verticalAlign:"baseline","&:hover":{color:l}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:u,"&-row-hover":{background:d}}},[`> ${t}-cell-row-hover`]:{background:f}}}}}},yKt=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,i=(a,o,s,l)=>({[`${t}${t}-${a}`]:{fontSize:l,[`
        ${t}-title,
        ${t}-footer,
        ${t}-cell,
        ${t}-thead > tr > th,
        ${t}-tbody > tr > th,
        ${t}-tbody > tr > td,
        tfoot > tr > th,
        tfoot > tr > td
      `]:{padding:`${Ce(o)} ${Ce(s)}`},[`${t}-filter-trigger`]:{marginInlineEnd:Ce(r(s).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${Ce(r(o).mul(-1).equal())} ${Ce(r(s).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:Ce(r(o).mul(-1).equal()),marginInline:`${Ce(r(n).sub(s).equal())} ${Ce(r(s).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:Ce(r(s).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},i("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),i("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},bKt=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:i,headerIconHoverColor:a}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[`
          &${t}-cell-fix-left:hover,
          &${t}-cell-fix-right:hover
        `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:n,color:i,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:a}}}},_Kt=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:i,tableScrollThumbSize:a,tableScrollBg:o,zIndexTableSticky:s,stickyScrollBarBorderRadius:l,lineWidth:c,lineType:u,tableBorderColor:d}=e,f=`${Ce(c)} ${u} ${d}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:s,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${Ce(a)} !important`,zIndex:s,display:"flex",alignItems:"center",background:o,borderTop:f,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:a,backgroundColor:r,borderRadius:l,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:i}}}}}}},OEe=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:i}=e,a=`${Ce(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:a}}},[`div${t}-summary`]:{boxShadow:`0 ${Ce(i(n).mul(-1).equal())} 0 ${r}`}}}},SKt=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:i,tableBorderColor:a,calc:o}=e,s=`${Ce(r)} ${i} ${a}`,l=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-row:not(tr)`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${t}-cell`]:{borderBottom:s,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${l}${l}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${Ce(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:s,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:s,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:o(r).mul(-1).equal(),borderInlineStart:s}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:s,borderBottom:s}}}}}},EKt=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:i,tableExpandColumnWidth:a,lineWidth:o,lineType:s,tableBorderColor:l,tableFontSize:c,tableBg:u,tableRadius:d,tableHeaderTextColor:f,motionDurationMid:p,tableHeaderBg:h,tableHeaderCellSplitColor:m,tableFooterTextColor:g,tableFooterBg:v,calc:y}=e,_=`${Ce(o)} ${s} ${l}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},ME()),{[t]:Object.assign(Object.assign({},Wr(e)),{fontSize:c,background:u,borderRadius:`${Ce(d)} ${Ce(d)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${Ce(d)} ${Ce(d)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`
          ${t}-cell,
          ${t}-thead > tr > th,
          ${t}-tbody > tr > th,
          ${t}-tbody > tr > td,
          tfoot > tr > th,
          tfoot > tr > td
        `]:{position:"relative",padding:`${Ce(r)} ${Ce(i)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${Ce(r)} ${Ce(i)}`},[`${t}-thead`]:{"\n          > tr > th,\n          > tr > td\n        ":{position:"relative",color:f,fontWeight:n,textAlign:"start",background:h,borderBottom:_,transition:`background ${p} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:m,transform:"translateY(-50%)",transition:`background-color ${p}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${p}, border-color ${p}`,borderBottom:_,[`
              > ${t}-wrapper:only-child,
              > ${t}-expanded-row-fixed > ${t}-wrapper:only-child
            `]:{[t]:{marginBlock:Ce(y(r).mul(-1).equal()),marginInline:`${Ce(y(a).sub(i).equal())}
                ${Ce(y(i).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:f,fontWeight:n,textAlign:"start",background:h,borderBottom:_,transition:`background ${p} ease`}}},[`${t}-footer`]:{padding:`${Ce(r)} ${Ce(i)}`,color:g,background:v}})}},CKt=e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:i,colorFillContent:a,controlItemBgActive:o,controlItemBgActiveHover:s,padding:l,paddingSM:c,paddingXS:u,colorBorderSecondary:d,borderRadiusLG:f,controlHeight:p,colorTextPlaceholder:h,fontSize:m,fontSizeSM:g,lineHeight:v,lineWidth:y,colorIcon:_,colorIconHover:S,opacityLoading:C,controlInteractiveSize:w}=e,x=new ti(i).onBackground(n).toHexShortString(),T=new ti(a).onBackground(n).toHexShortString(),A=new ti(t).onBackground(n).toHexShortString(),I=new ti(_),R=new ti(S),N=w/2-y,P=N*2+y*3;return{headerBg:A,headerColor:r,headerSortActiveBg:x,headerSortHoverBg:T,bodySortBg:A,rowHoverBg:A,rowSelectedBg:o,rowSelectedHoverBg:s,rowExpandedBg:t,cellPaddingBlock:l,cellPaddingInline:l,cellPaddingBlockMD:c,cellPaddingInlineMD:u,cellPaddingBlockSM:u,cellPaddingInlineSM:u,borderColor:d,headerBorderRadius:f,footerBg:A,footerColor:r,cellFontSize:m,cellFontSizeMD:m,cellFontSizeSM:m,headerSplitColor:d,fixedHeaderSortActiveBg:x,headerFilterHoverBg:a,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:p,stickyScrollBarBg:h,stickyScrollBarBorderRadius:100,expandIconMarginTop:(m*v-y*3)/2-Math.ceil((g*1.4-y*3)/2),headerIconColor:I.clone().setAlpha(I.getAlpha()*C).toRgbString(),headerIconHoverColor:R.clone().setAlpha(R.getAlpha()*C).toRgbString(),expandIconHalfInner:N,expandIconSize:P,expandIconScale:w/P}},wKt=Kr("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:i,headerBg:a,headerColor:o,headerSortActiveBg:s,headerSortHoverBg:l,bodySortBg:c,rowHoverBg:u,rowSelectedBg:d,rowSelectedHoverBg:f,rowExpandedBg:p,cellPaddingBlock:h,cellPaddingInline:m,cellPaddingBlockMD:g,cellPaddingInlineMD:v,cellPaddingBlockSM:y,cellPaddingInlineSM:_,borderColor:S,footerBg:C,footerColor:w,headerBorderRadius:x,cellFontSize:T,cellFontSizeMD:A,cellFontSizeSM:I,headerSplitColor:R,fixedHeaderSortActiveBg:N,headerFilterHoverBg:P,filterDropdownBg:L,expandIconBg:$,selectionColumnWidth:D,stickyScrollBarBg:z,calc:U}=e,H=2,M=br(e,{tableFontSize:T,tableBg:r,tableRadius:x,tablePaddingVertical:h,tablePaddingHorizontal:m,tablePaddingVerticalMiddle:g,tablePaddingHorizontalMiddle:v,tablePaddingVerticalSmall:y,tablePaddingHorizontalSmall:_,tableBorderColor:S,tableHeaderTextColor:o,tableHeaderBg:a,tableFooterTextColor:w,tableFooterBg:C,tableHeaderCellSplitColor:R,tableHeaderSortBg:s,tableHeaderSortHoverBg:l,tableBodySortBg:c,tableFixedHeaderSortActiveBg:N,tableHeaderFilterActiveBg:P,tableFilterDropdownBg:L,tableRowHoverBg:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:f,zIndexTableFixed:H,zIndexTableSticky:H+1,tableFontSizeMiddle:A,tableFontSizeSmall:I,tableSelectionColumnWidth:D,tableExpandIconBg:$,tableExpandColumnWidth:U(i).add(U(e.padding).mul(2)).equal(),tableExpandedRowBg:p,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:z,tableScrollThumbBgHover:t,tableScrollBg:n});return[EKt(M),hKt(M),OEe(M),bKt(M),fKt(M),lKt(M),mKt(M),dKt(M),OEe(M),uKt(M),vKt(M),pKt(M),_Kt(M),cKt(M),yKt(M),gKt(M),SKt(M)]},CKt,{unitless:{expandIconScale:!0}}),xKt=[],TKt=(e,t)=>{var n,r;const{prefixCls:i,className:a,rootClassName:o,style:s,size:l,bordered:c,dropdownPrefixCls:u,dataSource:d,pagination:f,rowSelection:p,rowKey:h="key",rowClassName:m,columns:g,children:v,childrenColumnName:y,onChange:_,getPopupContainer:S,loading:C,expandIcon:w,expandable:x,expandedRowRender:T,expandIconColumnIndex:A,indentSize:I,scroll:R,sortDirections:N,locale:P,showSorterTooltip:L={target:"full-header"},virtual:$}=e;g0();const D=b.useMemo(()=>g||gfe(v),[g,v]),z=b.useMemo(()=>D.some(fn=>fn.responsive),[D]),U=wO(z),H=b.useMemo(()=>{const fn=new Set(Object.keys(U).filter(an=>U[an]));return D.filter(an=>!an.responsive||an.responsive.some(Ht=>fn.has(Ht)))},[D,U]),M=Xa(e,["className","style","columns"]),{locale:B=Id,direction:k,table:F,renderEmpty:G,getPrefixCls:q,getPopupContainer:W}=b.useContext(Sn),K=ks(l),J=Object.assign(Object.assign({},B.Table),P),te=d||xKt,ae=q("table",i),re=q("dropdown",u),[,ue]=nl(),de=Ja(ae),[fe,ge,oe]=wKt(ae,de),Ee=Object.assign(Object.assign({childrenColumnName:y,expandIconColumnIndex:A},x),{expandIcon:(n=x?.expandIcon)!==null&&n!==void 0?n:(r=F?.expandable)===null||r===void 0?void 0:r.expandIcon}),{childrenColumnName:ce="children"}=Ee,he=b.useMemo(()=>te.some(fn=>fn?.[ce])?"nest":T||x?.expandedRowRender?"row":null,[te]),ye={body:b.useRef()},me=SYt(ae),_e=b.useRef(null),Te=b.useRef(null);bYt(t,()=>Object.assign(Object.assign({},Te.current),{nativeElement:_e.current}));const xe=b.useMemo(()=>typeof h=="function"?h:fn=>fn?.[h],[h]),[De]=JYt(te,ce,xe),Pe={},Le=function(fn,an){let Ht=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var mn,Tn,An,nr;const un=Object.assign(Object.assign({},Pe),fn);Ht&&((mn=Pe.resetPagination)===null||mn===void 0||mn.call(Pe),!((Tn=un.pagination)===null||Tn===void 0)&&Tn.current&&(un.pagination.current=1),f&&((An=f.onChange)===null||An===void 0||An.call(f,1,(nr=un.pagination)===null||nr===void 0?void 0:nr.pageSize))),R&&R.scrollToFirstRowOnChange!==!1&&ye.body.current&&KOt(0,{getContainer:()=>ye.body.current}),_?.(un.pagination,un.filters,un.sorter,{currentDataSource:kie(Die(te,un.sorterStates,ce),un.filterStates,ce),action:an})},ze=(fn,an)=>{Le({sorter:fn,sorterStates:an},"sort",!1)},[Be,je,Ye,Ze]=iKt({prefixCls:ae,mergedColumns:H,onSorterChange:ze,sortDirections:N||["ascend","descend"],tableLocale:J,showSorterTooltip:L}),Ke=b.useMemo(()=>Die(te,je,ce),[te,je]);Pe.sorter=Ze(),Pe.sorterStates=je;const qe=(fn,an)=>{Le({filters:fn,filterStates:an},"filter",!0)},[nt,Qe,it]=QYt({prefixCls:ae,locale:J,dropdownPrefixCls:re,mergedColumns:H,onFilterChange:qe,getPopupContainer:S||W,rootClassName:Oe(o,de)}),yt=kie(Ke,Qe,ce);Pe.filters=it,Pe.filterStates=Qe;const Wt=b.useMemo(()=>{const fn={};return Object.keys(it).forEach(an=>{it[an]!==null&&(fn[an]=it[an])}),Object.assign(Object.assign({},Ye),{filters:fn})},[Ye,it]),[Mt]=aKt(Wt),tn=(fn,an)=>{Le({pagination:Object.assign(Object.assign({},Pe.pagination),{current:fn,pageSize:an})},"paginate")},[Rt,Dt]=nKt(yt.length,tn,f);Pe.pagination=f===!1?{}:tKt(Rt,f),Pe.resetPagination=Dt;const Pt=b.useMemo(()=>{if(f===!1||!Rt.pageSize)return yt;const{current:fn=1,total:an,pageSize:Ht=sGe}=Rt;return yt.length<an?yt.length>Ht?yt.slice((fn-1)*Ht,fn*Ht):yt:yt.slice((fn-1)*Ht,fn*Ht)},[!!f,yt,Rt?.current,Rt?.pageSize,Rt?.total]),[Ot,sn]=vYt({prefixCls:ae,data:yt,pageData:Pt,getRowKey:xe,getRecordByKey:De,expandType:he,childrenColumnName:ce,locale:J,getPopupContainer:S||W},p),Jt=(fn,an,Ht)=>{let mn;return typeof m=="function"?mn=Oe(m(fn,an,Ht)):mn=Oe(m),Oe({[`${ae}-row-selected`]:sn.has(xe(fn,an))},mn)};Ee.__PARENT_RENDER_ICON__=Ee.expandIcon,Ee.expandIcon=Ee.expandIcon||w||_Yt(J),he==="nest"&&Ee.expandIconColumnIndex===void 0?Ee.expandIconColumnIndex=p?1:0:Ee.expandIconColumnIndex>0&&p&&(Ee.expandIconColumnIndex-=1),typeof Ee.indentSize!="number"&&(Ee.indentSize=typeof I=="number"?I:15);const Vt=b.useCallback(fn=>Mt(Ot(nt(Be(fn)))),[Be,nt,Ot]);let pt,tt;if(f!==!1&&Rt?.total){let fn;Rt.size?fn=Rt.size:fn=K==="small"||K==="middle"?"small":void 0;const an=Tn=>b.createElement(lfe,Object.assign({},Rt,{className:Oe(`${ae}-pagination ${ae}-pagination-${Tn}`,Rt.className),size:fn})),Ht=k==="rtl"?"left":"right",{position:mn}=Rt;if(mn!==null&&Array.isArray(mn)){const Tn=mn.find(un=>un.includes("top")),An=mn.find(un=>un.includes("bottom")),nr=mn.every(un=>`${un}`=="none");!Tn&&!An&&!nr&&(tt=an(Ht)),Tn&&(pt=an(Tn.toLowerCase().replace("top",""))),An&&(tt=an(An.toLowerCase().replace("bottom","")))}else tt=an(Ht)}let dt;typeof C=="boolean"?dt={spinning:C}:typeof C=="object"&&(dt=Object.assign({spinning:!0},C));const Et=Oe(oe,de,`${ae}-wrapper`,F?.className,{[`${ae}-wrapper-rtl`]:k==="rtl"},a,o,ge),St=Object.assign(Object.assign({},F?.style),s),zt=typeof P?.emptyText<"u"?P.emptyText:G?.("Table")||b.createElement(Sde,{componentName:"Table"}),nn=$?sKt:oKt,wn={},kn=b.useMemo(()=>{const{fontSize:fn,lineHeight:an,padding:Ht,paddingXS:mn,paddingSM:Tn}=ue,An=Math.floor(fn*an);switch(K){case"large":return Ht*2+An;case"small":return mn*2+An;default:return Tn*2+An}},[ue,K]);return $&&(wn.listItemHeight=kn),fe(b.createElement("div",{ref:_e,className:Et,style:St},b.createElement(v0,Object.assign({spinning:!1},dt),pt,b.createElement(nn,Object.assign({},wn,M,{ref:Te,columns:H,direction:k,expandable:Ee,prefixCls:ae,className:Oe({[`${ae}-middle`]:K==="middle",[`${ae}-small`]:K==="small",[`${ae}-bordered`]:c,[`${ae}-empty`]:te.length===0},oe,de,ge),data:Pt,rowKey:xe,rowClassName:Jt,emptyText:zt,internalHooks:MO,internalRefs:ye,transformColumns:Vt,getContainerWidth:me})),tt)))},IKt=b.forwardRef(TKt),AKt=(e,t)=>{const n=b.useRef(0);return n.current+=1,b.createElement(IKt,Object.assign({},e,{ref:t,_renderTimes:n.current}))},mv=b.forwardRef(AKt);mv.SELECTION_COLUMN=Dy;mv.EXPAND_COLUMN=Ky;mv.SELECTION_ALL=Rie;mv.SELECTION_INVERT=Nie;mv.SELECTION_NONE=Oie;mv.Column=oYt;mv.ColumnGroup=sYt;mv.Summary=FVe;const RKt=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:i,calc:a}=e,o=a(r).sub(n).equal(),s=a(t).sub(n).equal();return{[i]:Object.assign(Object.assign({},Wr(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:o,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${Ce(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${i}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${i}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${i}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${i}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:o}}),[`${i}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},Cfe=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,i=e.fontSizeSM;return br(e,{tagFontSize:i,tagLineHeight:Ce(r(e.lineHeightSM).mul(i).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},wfe=e=>({defaultBg:new ti(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),uGe=Kr("Tag",e=>{const t=Cfe(e);return RKt(t)},wfe);var NKt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const OKt=b.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:i,checked:a,onChange:o,onClick:s}=e,l=NKt(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:c,tag:u}=b.useContext(Sn),d=v=>{o?.(!a),s?.(v)},f=c("tag",n),[p,h,m]=uGe(f),g=Oe(f,`${f}-checkable`,{[`${f}-checkable-checked`]:a},u?.className,i,h,m);return p(b.createElement("span",Object.assign({},l,{ref:t,style:Object.assign(Object.assign({},r),u?.style),className:g,onClick:d})))}),LKt=e=>Jj(e,(t,n)=>{let{textColor:r,lightBorderColor:i,lightColor:a,darkColor:o}=n;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:r,background:a,borderColor:i,"&-inverse":{color:e.colorTextLightSolid,background:o,borderColor:o},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),PKt=bC(["Tag","preset"],e=>{const t=Cfe(e);return LKt(t)},wfe);function kKt(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const gP=(e,t,n)=>{const r=kKt(n);return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},MKt=bC(["Tag","status"],e=>{const t=Cfe(e);return[gP(t,"success","Success"),gP(t,"processing","Info"),gP(t,"error","Error"),gP(t,"warning","Warning")]},wfe);var DKt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const $Kt=b.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:a,children:o,icon:s,color:l,onClose:c,bordered:u=!0,visible:d}=e,f=DKt(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:p,direction:h,tag:m}=b.useContext(Sn),[g,v]=b.useState(!0),y=Xa(f,["closeIcon","closable"]);b.useEffect(()=>{d!==void 0&&v(d)},[d]);const _=gz(l),S=EMt(l),C=_||S,w=Object.assign(Object.assign({backgroundColor:l&&!C?l:void 0},m?.style),a),x=p("tag",n),[T,A,I]=uGe(x),R=Oe(x,m?.className,{[`${x}-${l}`]:C,[`${x}-has-color`]:l&&!C,[`${x}-hidden`]:!g,[`${x}-rtl`]:h==="rtl",[`${x}-borderless`]:!u},r,i,A,I),N=U=>{U.stopPropagation(),c?.(U),!U.defaultPrevented&&v(!1)},[,P]=iz(w3(e),w3(m),{closable:!1,closeIconRender:U=>{const H=b.createElement("span",{className:`${x}-close-icon`,onClick:N},U);return Jue(U,H,M=>({onClick:B=>{var k;(k=M?.onClick)===null||k===void 0||k.call(M,B),N(B)},className:Oe(M?.className,`${x}-close-icon`)}))}}),L=typeof f.onClick=="function"||o&&o.type==="a",$=s||null,D=$?b.createElement(b.Fragment,null,$,o&&b.createElement("span",null,o)):o,z=b.createElement("span",Object.assign({},y,{ref:t,className:R,style:w}),D,P,_&&b.createElement(PKt,{key:"preset",prefixCls:x}),S&&b.createElement(MKt,{key:"status",prefixCls:x}));return T(L?b.createElement(gO,{component:"Tag"},z):z)}),Si=$Kt;Si.CheckableTag=OKt;const FKt=e=>{const t=e?.algorithm?AN(e.algorithm):AN(hO),n=Object.assign(Object.assign({},E3),e?.token);return gBe(n,{override:e?.token},t,Kue)};function BKt(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}const jKt=(e,t)=>{const n=t??hO(e),r=n.fontSizeSM,i=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),BKt(t??e)),FBe(r)),{controlHeight:i}),$Be(Object.assign(Object.assign({},n),{controlHeight:i})))},Gv=(e,t)=>new ti(e).setAlpha(t).toRgbString(),Tw=(e,t)=>new ti(e).lighten(t).toHexString(),zKt=e=>{const t=Kb(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},UKt=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:Gv(r,.85),colorTextSecondary:Gv(r,.65),colorTextTertiary:Gv(r,.45),colorTextQuaternary:Gv(r,.25),colorFill:Gv(r,.18),colorFillSecondary:Gv(r,.12),colorFillTertiary:Gv(r,.08),colorFillQuaternary:Gv(r,.04),colorBgElevated:Tw(n,12),colorBgContainer:Tw(n,8),colorBgLayout:Tw(n,0),colorBgSpotlight:Tw(n,26),colorBgBlur:Gv(r,.04),colorBorder:Tw(n,26),colorBorderSecondary:Tw(n,19)}},HKt=(e,t)=>{const n=Object.keys(que).map(i=>{const a=Kb(e[i],{theme:"dark"});return new Array(10).fill(1).reduce((o,s,l)=>(o[`${i}-${l+1}`]=a[l],o[`${i}${l+1}`]=a[l],o),{})}).reduce((i,a)=>(i=Object.assign(Object.assign({},i),a),i),{}),r=t??hO(e);return Object.assign(Object.assign(Object.assign({},r),n),DBe(e,{generateColorPalettes:zKt,generateNeutralColorPalettes:UKt}))};function VKt(){const[e,t,n]=nl();return{theme:e,token:t,hashId:n}}const Fd={defaultConfig:ON,defaultSeed:ON.token,useToken:VKt,defaultAlgorithm:hO,darkAlgorithm:HKt,compactAlgorithm:jKt,getDesignToken:FKt};function LEe(e){return e!==null&&cn(e)==="object"}function PEe(e,t,n){if(e===!1||t===!1&&(!LEe(e)||!e.closeIcon))return null;var r=typeof t!="boolean"?t:void 0;if(LEe(e)){var i;return we(we({},e),{},{closeIcon:(i=e.closeIcon)!==null&&i!==void 0?i:r})}return n||e||t?{closeIcon:r}:"empty"}function GKt(e,t,n,r){return b.useMemo(function(){var i=PEe(e,t,!1),a=PEe(n,r,!0);return i!=="empty"?i:a},[n,r,e,t])}function qKt(e){var t=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,r=e.getBoundingClientRect(),i=r.top,a=r.right,o=r.bottom,s=r.left;return i>=0&&s>=0&&a<=t&&o<=n}function WKt(e,t,n){var r;return(r=n??t)!==null&&r!==void 0?r:e===null?"center":"bottom"}function YKt(e,t,n,r){var i=b.useState(void 0),a=Fe(i,2),o=a[0],s=a[1];kr(function(){var m=typeof e=="function"?e():e;s(m||null)});var l=b.useState(null),c=Fe(l,2),u=c[0],d=c[1],f=gr(function(){if(o){!qKt(o)&&t&&o.scrollIntoView(r);var m=o.getBoundingClientRect(),g=m.left,v=m.top,y=m.width,_=m.height,S={left:g,top:v,width:y,height:_,radius:0};d(function(C){return JSON.stringify(C)!==JSON.stringify(S)?S:C})}else d(null)}),p=function(g){var v;return(v=Array.isArray(n?.offset)?n?.offset[g]:n?.offset)!==null&&v!==void 0?v:6};kr(function(){return f(),window.addEventListener("resize",f),function(){window.removeEventListener("resize",f)}},[o,t,f]);var h=b.useMemo(function(){if(!u)return u;var m=p(0),g=p(1),v=n?.radius||2;return{left:u.left-m,top:u.top-g,width:u.width+m*2,height:u.height+g*2,radius:v}},[u,n]);return[h,o]}var vP={fill:"transparent",pointerEvents:"auto"},KKt=function(t){var n=t.prefixCls,r=t.rootClassName,i=t.pos,a=t.showMask,o=t.style,s=o===void 0?{}:o,l=t.fill,c=l===void 0?"rgba(0,0,0,0.5)":l,u=t.open,d=t.animated,f=t.zIndex,p=t.disabledInteraction,h=sde(),m="".concat(n,"-mask-").concat(h),g=cn(d)==="object"?d?.placeholder:d,v=typeof navigator<"u"&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent),y=v?{width:"100%",height:"100%"}:{width:"100vw",height:"100vh"};return se.createElement(_C,{open:u,autoLock:!0},se.createElement("div",{className:Oe("".concat(n,"-mask"),r),style:we({position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:f,pointerEvents:i&&!p?"none":"auto"},s)},a?se.createElement("svg",{style:{width:"100%",height:"100%"}},se.createElement("defs",null,se.createElement("mask",{id:m},se.createElement("rect",Xe({x:"0",y:"0"},y,{fill:"white"})),i&&se.createElement("rect",{x:i.left,y:i.top,rx:i.radius,width:i.width,height:i.height,fill:"black",className:g?"".concat(n,"-placeholder-animated"):""}))),se.createElement("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:c,mask:"url(#".concat(m,")")}),i&&se.createElement(se.Fragment,null,se.createElement("rect",Xe({},vP,{x:"0",y:"0",width:"100%",height:i.top})),se.createElement("rect",Xe({},vP,{x:"0",y:"0",width:i.left,height:"100%"})),se.createElement("rect",Xe({},vP,{x:"0",y:i.top+i.height,width:"100%",height:"calc(100vh - ".concat(i.top+i.height,"px)")})),se.createElement("rect",Xe({},vP,{x:i.left+i.width,y:"0",width:"calc(100vw - ".concat(i.left+i.width,"px)"),height:"100%"})))):null))},XKt=[0,0],kEe={left:{points:["cr","cl"],offset:[-8,0]},right:{points:["cl","cr"],offset:[8,0]},top:{points:["bc","tc"],offset:[0,-8]},bottom:{points:["tc","bc"],offset:[0,8]},topLeft:{points:["bl","tl"],offset:[0,-8]},leftTop:{points:["tr","tl"],offset:[-8,0]},topRight:{points:["br","tr"],offset:[0,-8]},rightTop:{points:["tl","tr"],offset:[8,0]},bottomRight:{points:["tr","br"],offset:[0,8]},rightBottom:{points:["bl","br"],offset:[8,0]},bottomLeft:{points:["tl","bl"],offset:[0,8]},leftBottom:{points:["br","bl"],offset:[-8,0]}};function dGe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t={};return Object.keys(kEe).forEach(function(n){t[n]=we(we({},kEe[n]),{},{autoArrow:e,targetOffset:XKt})}),t}dGe();function ZKt(e){var t,n=e.prefixCls,r=e.current,i=e.total,a=e.title,o=e.description,s=e.onClose,l=e.onPrev,c=e.onNext,u=e.onFinish,d=e.className,f=e.closable,p=lo(f||{},!0),h=(t=f?.closeIcon)!==null&&t!==void 0?t:b.createElement("span",{className:"".concat(n,"-close-x")},"×"),m=!!f;return b.createElement("div",{className:Oe("".concat(n,"-content"),d)},b.createElement("div",{className:"".concat(n,"-inner")},m&&b.createElement("button",Xe({type:"button",onClick:s,"aria-label":"Close"},p,{className:"".concat(n,"-close")}),h),b.createElement("div",{className:"".concat(n,"-header")},b.createElement("div",{className:"".concat(n,"-title")},a)),b.createElement("div",{className:"".concat(n,"-description")},o),b.createElement("div",{className:"".concat(n,"-footer")},b.createElement("div",{className:"".concat(n,"-sliders")},i>1?Tt(Array.from({length:i}).keys()).map(function(g,v){return b.createElement("span",{key:g,className:v===r?"active":""})}):null),b.createElement("div",{className:"".concat(n,"-buttons")},r!==0?b.createElement("button",{className:"".concat(n,"-prev-btn"),onClick:l},"Prev"):null,r===i-1?b.createElement("button",{className:"".concat(n,"-finish-btn"),onClick:u},"Finish"):b.createElement("button",{className:"".concat(n,"-next-btn"),onClick:c},"Next")))))}var QKt=function(t){var n=t.current,r=t.renderPanel;return b.createElement(b.Fragment,null,typeof r=="function"?r(t,n):b.createElement(ZKt,t))},JKt=["prefixCls","steps","defaultCurrent","current","onChange","onClose","onFinish","open","mask","arrow","rootClassName","placement","renderPanel","gap","animated","scrollIntoViewOptions","zIndex","closeIcon","closable","builtinPlacements","disabledInteraction"],eXt={left:"50%",top:"50%",width:1,height:1},MEe={block:"center",inline:"center"},tXt=function(t){var n=t.prefixCls,r=n===void 0?"rc-tour":n,i=t.steps,a=i===void 0?[]:i,o=t.defaultCurrent,s=t.current,l=t.onChange,c=t.onClose,u=t.onFinish,d=t.open,f=t.mask,p=f===void 0?!0:f,h=t.arrow,m=h===void 0?!0:h,g=t.rootClassName,v=t.placement,y=t.renderPanel,_=t.gap,S=t.animated,C=t.scrollIntoViewOptions,w=C===void 0?MEe:C,x=t.zIndex,T=x===void 0?1001:x,A=t.closeIcon,I=t.closable,R=t.builtinPlacements,N=t.disabledInteraction,P=$n(t,JKt),L=b.useRef(),$=qr(0,{value:s,defaultValue:o}),D=Fe($,2),z=D[0],U=D[1],H=qr(void 0,{value:d,postState:function(it){return z<0||z>=a.length?!1:it??!0}}),M=Fe(H,2),B=M[0],k=M[1],F=b.useState(B),G=Fe(F,2),q=G[0],W=G[1],K=b.useRef(B);kr(function(){B&&(K.current||U(0),W(!0)),K.current=B},[B]);var J=a[z]||{},te=J.target,ae=J.placement,re=J.style,ue=J.arrow,de=J.className,fe=J.mask,ge=J.scrollIntoViewOptions,oe=ge===void 0?MEe:ge,Ee=J.closeIcon,ce=J.closable,he=GKt(ce,Ee,I,A),ye=B&&(fe??p),me=oe??w,_e=YKt(te,d,_,me),Te=Fe(_e,2),xe=Te[0],De=Te[1],Pe=WKt(De,v,ae),Le=De?typeof ue>"u"?m:ue:!1,ze=cn(Le)==="object"?Le.pointAtCenter:!1;kr(function(){var Qe;(Qe=L.current)===null||Qe===void 0||Qe.forceAlign()},[ze,z]);var Be=function(it){U(it),l?.(it)},je=b.useMemo(function(){return R?typeof R=="function"?R({arrowPointAtCenter:ze}):R:dGe(ze)},[R,ze]);if(De===void 0||!q)return null;var Ye=function(){k(!1),c?.(z)},Ze=function(){return b.createElement(QKt,Xe({arrow:Le,key:"content",prefixCls:r,total:a.length,renderPanel:y,onPrev:function(){Be(z-1)},onNext:function(){Be(z+1)},onClose:Ye,current:z,onFinish:function(){Ye(),u?.()}},a[z],{closable:he}))},Ke=typeof ye=="boolean"?ye:!!ye,qe=typeof ye=="boolean"?void 0:ye,nt=function(it){return it||De||document.body};return b.createElement(b.Fragment,null,b.createElement(KKt,{zIndex:T,prefixCls:r,pos:xe,showMask:Ke,style:qe?.style,fill:qe?.color,open:B,animated:S,rootClassName:g,disabledInteraction:N}),b.createElement(hT,Xe({},P,{builtinPlacements:je,ref:L,popupStyle:re,popupPlacement:Pe,popupVisible:B,popupClassName:Oe(g,de),prefixCls:r,popup:Ze,forceRender:!1,destroyPopupOnHide:!0,zIndex:T,getTriggerDOMNode:nt,arrow:!!Le}),b.createElement(_C,{open:B,autoLock:!0},b.createElement("div",{className:Oe(g,"".concat(r,"-target-placeholder")),style:we(we({},xe||eXt),{},{position:"fixed",pointerEvents:"none"})}))))};function xq(e){return e!=null}const fGe=e=>{var t,n;const{stepProps:r,current:i,type:a,indicatorsRender:o}=e,{prefixCls:s,total:l=1,title:c,onClose:u,onPrev:d,onNext:f,onFinish:p,cover:h,description:m,nextButtonProps:g,prevButtonProps:v,type:y,closable:_}=r,S=y??a,C=se.createElement("button",{type:"button",onClick:u,className:`${s}-close`},_?.closeIcon||se.createElement(Ic,{className:`${s}-close-icon`})),w=i===l-1,x=()=>{var D;d?.(),(D=v?.onClick)===null||D===void 0||D.call(v)},T=()=>{var D;w?p?.():f?.(),(D=g?.onClick)===null||D===void 0||D.call(g)},A=xq(c)?se.createElement("div",{className:`${s}-header`},se.createElement("div",{className:`${s}-title`},c)):null,I=xq(m)?se.createElement("div",{className:`${s}-description`},m):null,R=xq(h)?se.createElement("div",{className:`${s}-cover`},h):null;let N;o?N=o(i,l):N=Tt(Array.from({length:l}).keys()).map((D,z)=>se.createElement("span",{key:D,className:Oe(z===i&&`${s}-indicator-active`,`${s}-indicator`)}));const P=S==="primary"?"default":"primary",L={type:"default",ghost:S==="primary"},[$]=Dd("Tour",Id.Tour);return se.createElement("div",{className:`${s}-content`},se.createElement("div",{className:`${s}-inner`},_&&C,R,A,I,se.createElement("div",{className:`${s}-footer`},l>1&&se.createElement("div",{className:`${s}-indicators`},N),se.createElement("div",{className:`${s}-buttons`},i!==0?se.createElement(ut,Object.assign({},L,v,{onClick:x,size:"small",className:Oe(`${s}-prev-btn`,v?.className)}),(t=v?.children)!==null&&t!==void 0?t:$?.Previous):null,se.createElement(ut,Object.assign({type:P},g,{onClick:T,size:"small",className:Oe(`${s}-next-btn`,g?.className)}),(n=g?.children)!==null&&n!==void 0?n:w?$?.Finish:$?.Next)))))},nXt=e=>{const{componentCls:t,padding:n,paddingXS:r,borderRadius:i,borderRadiusXS:a,colorPrimary:o,colorFill:s,indicatorHeight:l,indicatorWidth:c,boxShadowTertiary:u,tourZIndexPopup:d,colorBgElevated:f,fontWeightStrong:p,marginXS:h,colorTextLightSolid:m,tourBorderRadius:g,colorWhite:v,primaryNextBtnHoverBg:y,closeBtnSize:_,motionDurationSlow:S,antCls:C,primaryPrevBtnBg:w}=e;return[{[t]:Object.assign(Object.assign({},Wr(e)),{position:"absolute",zIndex:d,maxWidth:"fit-content",visibility:"visible",width:520,"--antd-arrow-background-color":f,"&-pure":{maxWidth:"100%",position:"relative"},[`&${t}-hidden`]:{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{textAlign:"start",textDecoration:"none",borderRadius:g,boxShadow:u,position:"relative",backgroundColor:f,border:"none",backgroundClip:"padding-box",[`${t}-close`]:Object.assign({position:"absolute",top:n,insetInlineEnd:n,color:e.colorIcon,background:"none",border:"none",width:_,height:_,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},kp(e)),[`${t}-cover`]:{textAlign:"center",padding:`${Ce(e.calc(n).add(_).add(r).equal())} ${Ce(n)} 0`,img:{width:"100%"}},[`${t}-header`]:{padding:`${Ce(n)} ${Ce(n)} ${Ce(r)}`,[`${t}-title`]:{fontWeight:p}},[`${t}-description`]:{padding:`0 ${Ce(n)}`,wordWrap:"break-word"},[`${t}-footer`]:{padding:`${Ce(r)} ${Ce(n)} ${Ce(n)}`,textAlign:"end",borderRadius:`0 0 ${Ce(a)} ${Ce(a)}`,display:"flex",[`${t}-indicators`]:{display:"inline-block",[`${t}-indicator`]:{width:c,height:l,display:"inline-block",borderRadius:"50%",background:s,"&:not(:last-child)":{marginInlineEnd:l},"&-active":{background:o}}},[`${t}-buttons`]:{marginInlineStart:"auto",[`${C}-btn`]:{marginInlineStart:h}}}},[`${t}-primary, &${t}-primary`]:{"--antd-arrow-background-color":o,[`${t}-inner`]:{color:m,textAlign:"start",textDecoration:"none",backgroundColor:o,borderRadius:i,boxShadow:u,[`${t}-close`]:{color:m},[`${t}-indicators`]:{[`${t}-indicator`]:{background:w,"&-active":{background:m}}},[`${t}-prev-btn`]:{color:m,borderColor:w,backgroundColor:o,"&:hover":{backgroundColor:w,borderColor:"transparent"}},[`${t}-next-btn`]:{color:o,borderColor:"transparent",background:v,"&:hover":{background:y}}}}}),[`${t}-mask`]:{[`${t}-placeholder-animated`]:{transition:`all ${S}`}},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(g,wde)}}},mz(e,"var(--antd-arrow-background-color)")]},rXt=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70,closeBtnSize:e.fontSize*e.lineHeight,primaryPrevBtnBg:new ti(e.colorTextLightSolid).setAlpha(.15).toRgbString(),primaryNextBtnHoverBg:new ti(e.colorBgTextHover).onBackground(e.colorWhite).toRgbString()},TO({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),xO(e)),pGe=Kr("Tour",e=>{const{borderRadiusLG:t}=e,n=br(e,{indicatorWidth:6,indicatorHeight:6,tourBorderRadius:t});return[nXt(n)]},rXt);var iXt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const aXt=e=>{const{prefixCls:t,current:n=0,total:r=6,className:i,style:a,type:o,closable:s,closeIcon:l}=e,c=iXt(e,["prefixCls","current","total","className","style","type","closable","closeIcon"]),{getPrefixCls:u}=b.useContext(Sn),d=u("tour",t),[f,p,h]=pGe(d),[m,g]=iz({closable:s,closeIcon:l},null,{closable:!0,closeIconRender:v=>b.isValidElement(v)?as(v,{className:Oe(v.props.className,`${d}-close-icon`)}):v});return f(b.createElement(Bze,{prefixCls:d,hashId:p,className:Oe(i,`${d}-pure`,o&&`${d}-${o}`,h),style:a},b.createElement(fGe,{stepProps:Object.assign(Object.assign({},c),{prefixCls:d,total:r,closable:m?{closeIcon:g}:void 0}),current:n,type:o})))},oXt=gde(aXt);var sXt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const hGe=e=>{const{prefixCls:t,type:n,rootClassName:r,indicatorsRender:i,steps:a,closeIcon:o}=e,s=sXt(e,["prefixCls","type","rootClassName","indicatorsRender","steps","closeIcon"]),{getPrefixCls:l,direction:c,tour:u}=b.useContext(Sn),d=l("tour",t),[f,p,h]=pGe(d),[,m]=nl(),g=se.useMemo(()=>a?.map(w=>{var x;return Object.assign(Object.assign({},w),{className:Oe(w.className,{[`${d}-primary`]:((x=w.type)!==null&&x!==void 0?x:n)==="primary"})})}),[a,n]),v=w=>{var x;return xde({arrowPointAtCenter:(x=w?.arrowPointAtCenter)!==null&&x!==void 0?x:!0,autoAdjustOverflow:!0,offset:m.marginXXS,arrowWidth:m.sizePopupArrow,borderRadius:m.borderRadius})},y=Oe({[`${d}-rtl`]:c==="rtl"},p,h,r),_=(w,x)=>se.createElement(fGe,{type:n,stepProps:w,current:x,indicatorsRender:i}),[S,C]=Em("Tour",s.zIndex);return f(se.createElement(cT.Provider,{value:C},se.createElement(tXt,Object.assign({},s,{closeIcon:o??u?.closeIcon,zIndex:S,rootClassName:y,prefixCls:d,animated:!0,renderPanel:_,builtinPlacements:v,steps:g}))))};hGe._InternalPanelDoNotUseOrYouWillBeFired=oXt;const Tq=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",i=e.type||"",a=i.replace(/\/.*$/,"");return n.some(function(o){var s=o.trim();if(/^\*(\/\*)?$/.test(o))return!0;if(s.charAt(0)==="."){var l=r.toLowerCase(),c=s.toLowerCase(),u=[c];return(c===".jpg"||c===".jpeg")&&(u=[".jpg",".jpeg"]),u.some(function(d){return l.endsWith(d)})}return/\/\*$/.test(s)?a===s.replace(/\/.*$/,""):i===s?!0:/^\w+$/.test(s)?(Ra(!1,"Upload takes an invalidate 'accept' type '".concat(s,"'.Skip for check.")),!0):!1})}return!0};function lXt(e,t){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}function DEe(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function cXt(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(a){a.total>0&&(a.percent=a.loaded/a.total*100),e.onProgress(a)});var n=new FormData;e.data&&Object.keys(e.data).forEach(function(i){var a=e.data[i];if(Array.isArray(a)){a.forEach(function(o){n.append("".concat(i,"[]"),o)});return}n.append(i,a)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(a){e.onError(a)},t.onload=function(){return t.status<200||t.status>=300?e.onError(lXt(e,t),DEe(t)):e.onSuccess(DEe(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};return r["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach(function(i){r[i]!==null&&t.setRequestHeader(i,r[i])}),t.send(n),{abort:function(){t.abort()}}}var uXt=function(t,n,r){var i=[],a=[];t.forEach(function(c){return a.push(c.webkitGetAsEntry())});function o(c){var u=c.createReader();function d(){u.readEntries(function(f){var p=Array.prototype.slice.apply(f);a.push.apply(a,Tt(p));var h=!p.length;h||d()})}d()}var s=function(u,d){u&&(u.path="",u.isFile?u.file(function(f){r(f)&&(u.fullPath&&!f.webkitRelativePath&&(Object.defineProperties(f,{webkitRelativePath:{writable:!0}}),f.webkitRelativePath=u.fullPath.replace(/^\//,""),Object.defineProperties(f,{webkitRelativePath:{writable:!1}})),i.push(f))}):u.isDirectory&&o(u))};function l(){for(var c=0;c<a.length;)s(a[c]),c++;n(i)}l()},dXt=+new Date,fXt=0;function Iq(){return"rc-upload-".concat(dXt,"-").concat(++fXt)}var pXt=["component","prefixCls","className","classNames","disabled","id","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],hXt=function(e){Md(n,e);var t=$f(n);function n(){var r;co(this,n);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r=t.call.apply(t,[this].concat(a)),be(Qt(r),"state",{uid:Iq()}),be(Qt(r),"reqs",{}),be(Qt(r),"fileInput",void 0),be(Qt(r),"_isMounted",void 0),be(Qt(r),"onChange",function(s){var l=r.props,c=l.accept,u=l.directory,d=s.target.files,f=Tt(d).filter(function(p){return!u||Tq(p,c)});r.uploadFiles(f),r.reset()}),be(Qt(r),"onClick",function(s){var l=r.fileInput;if(l){var c=s.target,u=r.props.onClick;if(c&&c.tagName==="BUTTON"){var d=l.parentNode;d.focus(),c.blur()}l.click(),u&&u(s)}}),be(Qt(r),"onKeyDown",function(s){s.key==="Enter"&&r.onClick(s)}),be(Qt(r),"onFileDrop",function(s){var l=r.props.multiple;if(s.preventDefault(),s.type!=="dragover")if(r.props.directory)uXt(Array.prototype.slice.call(s.dataTransfer.items),r.uploadFiles,function(u){return Tq(u,r.props.accept)});else{var c=Tt(s.dataTransfer.files).filter(function(u){return Tq(u,r.props.accept)});l===!1&&(c=c.slice(0,1)),r.uploadFiles(c)}}),be(Qt(r),"uploadFiles",function(s){var l=Tt(s),c=l.map(function(u){return u.uid=Iq(),r.processFile(u,l)});Promise.all(c).then(function(u){var d=r.props.onBatchStart;d?.(u.map(function(f){var p=f.origin,h=f.parsedFile;return{file:p,parsedFile:h}})),u.filter(function(f){return f.parsedFile!==null}).forEach(function(f){r.post(f)})})}),be(Qt(r),"processFile",function(){var s=w_(xc().mark(function l(c,u){var d,f,p,h,m,g,v,y,_;return xc().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:if(d=r.props.beforeUpload,f=c,!d){C.next=14;break}return C.prev=3,C.next=6,d(c,u);case 6:f=C.sent,C.next=12;break;case 9:C.prev=9,C.t0=C.catch(3),f=!1;case 12:if(f!==!1){C.next=14;break}return C.abrupt("return",{origin:c,parsedFile:null,action:null,data:null});case 14:if(p=r.props.action,typeof p!="function"){C.next=21;break}return C.next=18,p(c);case 18:h=C.sent,C.next=22;break;case 21:h=p;case 22:if(m=r.props.data,typeof m!="function"){C.next=29;break}return C.next=26,m(c);case 26:g=C.sent,C.next=30;break;case 29:g=m;case 30:return v=(cn(f)==="object"||typeof f=="string")&&f?f:c,v instanceof File?y=v:y=new File([v],c.name,{type:c.type}),_=y,_.uid=c.uid,C.abrupt("return",{origin:c,data:g,parsedFile:_,action:h});case 35:case"end":return C.stop()}},l,null,[[3,9]])}));return function(l,c){return s.apply(this,arguments)}}()),be(Qt(r),"saveFileInput",function(s){r.fileInput=s}),r}return uo(n,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(i){var a=this,o=i.data,s=i.origin,l=i.action,c=i.parsedFile;if(this._isMounted){var u=this.props,d=u.onStart,f=u.customRequest,p=u.name,h=u.headers,m=u.withCredentials,g=u.method,v=s.uid,y=f||cXt,_={action:l,filename:p,data:o,file:c,headers:h,withCredentials:m,method:g||"post",onProgress:function(C){var w=a.props.onProgress;w?.(C,c)},onSuccess:function(C,w){var x=a.props.onSuccess;x?.(C,c,w),delete a.reqs[v]},onError:function(C,w){var x=a.props.onError;x?.(C,w,c),delete a.reqs[v]}};d(s),this.reqs[v]=y(_)}}},{key:"reset",value:function(){this.setState({uid:Iq()})}},{key:"abort",value:function(i){var a=this.reqs;if(i){var o=i.uid?i.uid:i;a[o]&&a[o].abort&&a[o].abort(),delete a[o]}else Object.keys(a).forEach(function(s){a[s]&&a[s].abort&&a[s].abort(),delete a[s]})}},{key:"render",value:function(){var i=this.props,a=i.component,o=i.prefixCls,s=i.className,l=i.classNames,c=l===void 0?{}:l,u=i.disabled,d=i.id,f=i.style,p=i.styles,h=p===void 0?{}:p,m=i.multiple,g=i.accept,v=i.capture,y=i.children,_=i.directory,S=i.openFileDialogOnClick,C=i.onMouseEnter,w=i.onMouseLeave,x=i.hasControlInside,T=$n(i,pXt),A=Oe(be(be(be({},o,!0),"".concat(o,"-disabled"),u),s,s)),I=_?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},R=u?{}:{onClick:S?this.onClick:function(){},onKeyDown:S?this.onKeyDown:function(){},onMouseEnter:C,onMouseLeave:w,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:x?void 0:"0"};return se.createElement(a,Xe({},R,{className:A,role:x?void 0:"button",style:f}),se.createElement("input",Xe({},lo(T,{aria:!0,data:!0}),{id:d,disabled:u,type:"file",ref:this.saveFileInput,onClick:function(P){return P.stopPropagation()},key:this.state.uid,style:we({display:"none"},h.input),className:c.input,accept:g},I,{multiple:m,onChange:this.onChange},v!=null?{capture:v}:{})),y)}}]),n}(b.Component);function Aq(){}var $ie=function(e){Md(n,e);var t=$f(n);function n(){var r;co(this,n);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r=t.call.apply(t,[this].concat(a)),be(Qt(r),"uploader",void 0),be(Qt(r),"saveUploader",function(s){r.uploader=s}),r}return uo(n,[{key:"abort",value:function(i){this.uploader.abort(i)}},{key:"render",value:function(){return se.createElement(hXt,Xe({},this.props,{ref:this.saveUploader}))}}]),n}(b.Component);be($ie,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Aq,onError:Aq,onSuccess:Aq,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});const mXt=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${Ce(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${Ce(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`
          &:not(${t}-disabled):hover,
          &-hover:not(${t}-disabled)
        `]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${Ce(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${n},
            p${t}-text,
            p${t}-hint
          `]:{color:e.colorTextDisabled}}}}}},gXt=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSize:i,lineHeight:a,calc:o}=e,s=`${t}-list-item`,l=`${s}-actions`,c=`${s}-action`,u=e.fontHeightSM;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},ME()),{lineHeight:e.lineHeight,[s]:{position:"relative",height:o(e.lineHeight).mul(i).equal(),marginTop:e.marginXS,fontSize:i,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,"&:hover":{backgroundColor:e.controlItemBgHover},[`${s}-name`]:Object.assign(Object.assign({},Pp),{padding:`0 ${Ce(e.paddingXS)}`,lineHeight:a,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[l]:{whiteSpace:"nowrap",[c]:{opacity:0},[r]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`
              ${c}:focus-visible,
              &.picture ${c}
            `]:{opacity:1},[`${c}${n}-btn`]:{height:u,border:0,lineHeight:1}},[`${t}-icon ${r}`]:{color:e.colorTextDescription,fontSize:i},[`${s}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:o(i).add(e.paddingXS).equal(),fontSize:i,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${s}:hover ${c}`]:{opacity:1},[`${s}-error`]:{color:e.colorError,[`${s}-name, ${t}-icon ${r}`]:{color:e.colorError},[l]:{[`${r}, ${r}:hover`]:{color:e.colorError},[c]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},vXt=e=>{const{componentCls:t}=e,n=new Dr("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new Dr("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),i=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${i}-appear, ${i}-enter, ${i}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${i}-appear, ${i}-enter`]:{animationName:n},[`${i}-leave`]:{animationName:r}}},{[`${t}-wrapper`]:pde(e)},n,r]},yXt=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:i,calc:a}=e,o=`${t}-list`,s=`${o}-item`;return{[`${t}-wrapper`]:{[`
        ${o}${o}-picture,
        ${o}${o}-picture-card,
        ${o}${o}-picture-circle
      `]:{[s]:{position:"relative",height:a(r).add(a(e.lineWidth).mul(2)).add(a(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${Ce(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${s}-thumbnail`]:Object.assign(Object.assign({},Pp),{width:r,height:r,lineHeight:Ce(a(r).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${s}-progress`]:{bottom:i,width:`calc(100% - ${Ce(a(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:a(r).add(e.paddingXS).equal()}},[`${s}-error`]:{borderColor:e.colorError,[`${s}-thumbnail ${n}`]:{[`svg path[fill='${TE[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${TE.primary}']`]:{fill:e.colorError}}},[`${s}-uploading`]:{borderStyle:"dashed",[`${s}-name`]:{marginBottom:i}}},[`${o}${o}-picture-circle ${s}`]:{[`&, &::before, ${s}-thumbnail`]:{borderRadius:"50%"}}}}},bXt=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:i,calc:a}=e,o=`${t}-list`,s=`${o}-item`,l=e.uploadPicCardSize;return{[`
      ${t}-wrapper${t}-picture-card-wrapper,
      ${t}-wrapper${t}-picture-circle-wrapper
    `]:Object.assign(Object.assign({},ME()),{display:"block",[`${t}${t}-select`]:{width:l,height:l,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${Ce(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${o}${o}-picture-card, ${o}${o}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${o}-item-container`]:{display:"inline-block",width:l,height:l,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[s]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${Ce(a(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${Ce(a(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${s}:hover`]:{[`&::before, ${s}-actions`]:{opacity:1}},[`${s}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`
            ${n}-eye,
            ${n}-download,
            ${n}-delete
          `]:{zIndex:10,width:r,margin:`0 ${Ce(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:i,"&:hover":{color:i},svg:{verticalAlign:"baseline"}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${s}-name`]:{display:"none",textAlign:"center"},[`${s}-file + ${s}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${Ce(a(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${Ce(a(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},_Xt=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},SXt=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},Wr(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},EXt=e=>({actionsColor:e.colorTextDescription}),CXt=Kr("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,controlHeightLG:i,calc:a}=e,o=br(e,{uploadThumbnailSize:a(t).mul(2).equal(),uploadProgressOffset:a(a(n).div(2)).add(r).equal(),uploadPicCardSize:a(i).mul(2.55).equal()});return[SXt(o),mXt(o),yXt(o),bXt(o),gXt(o),vXt(o),_Xt(o),_O(o)]},EXt);function yP(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function bP(e,t){const n=Tt(t),r=n.findIndex(i=>{let{uid:a}=i;return a===e.uid});return r===-1?n.push(e):n[r]=e,n}function Rq(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function wXt(e,t){const n=e.uid!==void 0?"uid":"name",r=t.filter(i=>i[n]!==e[n]);return r.length===t.length?null:r}const xXt=function(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},mGe=e=>e.indexOf("image/")===0,TXt=e=>{if(e.type&&!e.thumbUrl)return mGe(e.type);const t=e.thumbUrl||e.url||"",n=xXt(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n)?!0:!(/^data:/.test(t)||n)},oy=200;function IXt(e){return new Promise(t=>{if(!e.type||!mGe(e.type)){t("");return}const n=document.createElement("canvas");n.width=oy,n.height=oy,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${oy}px; height: ${oy}px; z-index: 9999; display: none;`,document.body.appendChild(n);const r=n.getContext("2d"),i=new Image;if(i.onload=()=>{const{width:a,height:o}=i;let s=oy,l=oy,c=0,u=0;a>o?(l=o*(oy/a),u=-(l-s)/2):(s=a*(oy/o),c=-(s-l)/2),r.drawImage(i,c,u,s,l);const d=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(i.src),t(d)},i.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const a=new FileReader;a.onload=()=>{a.result&&typeof a.result=="string"&&(i.src=a.result)},a.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const a=new FileReader;a.onload=()=>{a.result&&t(a.result)},a.readAsDataURL(e)}else i.src=window.URL.createObjectURL(e)})}const AXt=b.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,locale:a,listType:o,file:s,items:l,progress:c,iconRender:u,actionIconRender:d,itemRender:f,isImgUrl:p,showPreviewIcon:h,showRemoveIcon:m,showDownloadIcon:g,previewIcon:v,removeIcon:y,downloadIcon:_,extra:S,onPreview:C,onDownload:w,onClose:x}=e;var T,A;const{status:I}=s,[R,N]=b.useState(I);b.useEffect(()=>{I!=="removed"&&N(I)},[I]);const[P,L]=b.useState(!1);b.useEffect(()=>{const de=setTimeout(()=>{L(!0)},300);return()=>{clearTimeout(de)}},[]);const $=u(s);let D=b.createElement("div",{className:`${n}-icon`},$);if(o==="picture"||o==="picture-card"||o==="picture-circle")if(R==="uploading"||!s.thumbUrl&&!s.url){const de=Oe(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:R!=="uploading"});D=b.createElement("div",{className:de},$)}else{const de=p?.(s)?b.createElement("img",{src:s.thumbUrl||s.url,alt:s.name,className:`${n}-list-item-image`,crossOrigin:s.crossOrigin}):$,fe=Oe(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:p&&!p(s)});D=b.createElement("a",{className:fe,onClick:ge=>C(s,ge),href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer"},de)}const z=Oe(`${n}-list-item`,`${n}-list-item-${R}`),U=typeof s.linkProps=="string"?JSON.parse(s.linkProps):s.linkProps,H=m?d((typeof y=="function"?y(s):y)||b.createElement(m0,null),()=>x(s),n,a.removeFile,!0):null,M=g&&R==="done"?d((typeof _=="function"?_(s):_)||b.createElement(nO,null),()=>w(s),n,a.downloadFile):null,B=o!=="picture-card"&&o!=="picture-circle"&&b.createElement("span",{key:"download-delete",className:Oe(`${n}-list-item-actions`,{picture:o==="picture"})},M,H),k=typeof S=="function"?S(s):S,F=k&&b.createElement("span",{className:`${n}-list-item-extra`},k),G=Oe(`${n}-list-item-name`),q=s.url?b.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:G,title:s.name},U,{href:s.url,onClick:de=>C(s,de)}),s.name,F):b.createElement("span",{key:"view",className:G,onClick:de=>C(s,de),title:s.name},s.name,F),W=h&&(s.url||s.thumbUrl)?b.createElement("a",{href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:de=>C(s,de),title:a.previewFile},typeof v=="function"?v(s):v||b.createElement(Yce,null)):null,K=(o==="picture-card"||o==="picture-circle")&&R!=="uploading"&&b.createElement("span",{className:`${n}-list-item-actions`},W,R==="done"&&M,H),{getPrefixCls:J}=b.useContext(Sn),te=J(),ae=b.createElement("div",{className:z},D,q,B,K,P&&b.createElement(Sl,{motionName:`${te}-fade`,visible:R==="uploading",motionDeadline:2e3},de=>{let{className:fe}=de;const ge="percent"in s?b.createElement(TC,Object.assign({},c,{type:"line",percent:s.percent,"aria-label":s["aria-label"],"aria-labelledby":s["aria-labelledby"]})):null;return b.createElement("div",{className:Oe(`${n}-list-item-progress`,fe)},ge)})),re=s.response&&typeof s.response=="string"?s.response:((T=s.error)===null||T===void 0?void 0:T.statusText)||((A=s.error)===null||A===void 0?void 0:A.message)||a.uploadError,ue=R==="error"?b.createElement(vr,{title:re,getPopupContainer:de=>de.parentNode},ae):ae;return b.createElement("div",{className:Oe(`${n}-list-item-container`,r),style:i,ref:t},f?f(ue,s,l,{download:w.bind(null,s),preview:C.bind(null,s),remove:x.bind(null,s)}):ue)}),RXt=(e,t)=>{const{listType:n="text",previewFile:r=IXt,onPreview:i,onDownload:a,onRemove:o,locale:s,iconRender:l,isImageUrl:c=TXt,prefixCls:u,items:d=[],showPreviewIcon:f=!0,showRemoveIcon:p=!0,showDownloadIcon:h=!1,removeIcon:m,previewIcon:g,downloadIcon:v,extra:y,progress:_={size:[-1,2],showInfo:!1},appendAction:S,appendActionVisible:C=!0,itemRender:w,disabled:x}=e,T=Ede(),[A,I]=b.useState(!1);b.useEffect(()=>{n!=="picture"&&n!=="picture-card"&&n!=="picture-circle"||(d||[]).forEach(G=>{typeof document>"u"||typeof window>"u"||!window.FileReader||!window.File||!(G.originFileObj instanceof File||G.originFileObj instanceof Blob)||G.thumbUrl!==void 0||(G.thumbUrl="",r&&r(G.originFileObj).then(q=>{G.thumbUrl=q||"",T()}))})},[n,d,r]),b.useEffect(()=>{I(!0)},[]);const R=(G,q)=>{if(i)return q?.preventDefault(),i(G)},N=G=>{typeof a=="function"?a(G):G.url&&window.open(G.url)},P=G=>{o?.(G)},L=G=>{if(l)return l(G,n);const q=G.status==="uploading",W=c?.(G)?b.createElement(kSt,null):b.createElement(fDe,null);let K=q?b.createElement(Np,null):b.createElement(mDe,null);return n==="picture"?K=q?b.createElement(Np,null):W:(n==="picture-card"||n==="picture-circle")&&(K=q?s.uploading:W),K},$=(G,q,W,K,J)=>{const te={type:"text",size:"small",title:K,onClick:ae=>{var re,ue;q(),b.isValidElement(G)&&((ue=(re=G.props).onClick)===null||ue===void 0||ue.call(re,ae))},className:`${W}-list-item-action`};if(J&&(te.disabled=x),b.isValidElement(G)){const ae=as(G,Object.assign(Object.assign({},G.props),{onClick:()=>{}}));return b.createElement(ut,Object.assign({},te,{icon:ae}))}return b.createElement(ut,Object.assign({},te),b.createElement("span",null,G))};b.useImperativeHandle(t,()=>({handlePreview:R,handleDownload:N}));const{getPrefixCls:D}=b.useContext(Sn),z=D("upload",u),U=D(),H=Oe(`${z}-list`,`${z}-list-${n}`),M=Tt(d.map(G=>({key:G.uid,file:G})));let k={motionDeadline:2e3,motionName:`${z}-${n==="picture-card"||n==="picture-circle"?"animate-inline":"animate"}`,keys:M,motionAppear:A};const F=b.useMemo(()=>{const G=Object.assign({},C3(U));return delete G.onAppearEnd,delete G.onEnterEnd,delete G.onLeaveEnd,G},[U]);return n!=="picture-card"&&n!=="picture-circle"&&(k=Object.assign(Object.assign({},F),k)),b.createElement("div",{className:H},b.createElement(Zue,Object.assign({},k,{component:!1}),G=>{let{key:q,file:W,className:K,style:J}=G;return b.createElement(AXt,{key:q,locale:s,prefixCls:z,className:K,style:J,file:W,items:d,progress:_,listType:n,isImgUrl:c,showPreviewIcon:f,showRemoveIcon:p,showDownloadIcon:h,removeIcon:m,previewIcon:g,downloadIcon:v,extra:y,iconRender:L,actionIconRender:$,itemRender:w,onPreview:R,onDownload:N,onClose:P})}),S&&b.createElement(Sl,Object.assign({},k,{visible:C,forceRender:!0}),G=>{let{className:q,style:W}=G;return as(S,K=>({className:Oe(K.className,q),style:Object.assign(Object.assign(Object.assign({},W),{pointerEvents:q?"none":void 0}),K.style)}))}))},NXt=b.forwardRef(RXt);var OXt=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{c(r.next(u))}catch(d){o(d)}}function l(u){try{c(r.throw(u))}catch(d){o(d)}}function c(u){u.done?a(u.value):i(u.value).then(s,l)}c((r=r.apply(e,[])).next())})};const yA=`__LIST_IGNORE_${Date.now()}__`,LXt=(e,t)=>{const{fileList:n,defaultFileList:r,onRemove:i,showUploadList:a=!0,listType:o="text",onPreview:s,onDownload:l,onChange:c,onDrop:u,previewFile:d,disabled:f,locale:p,iconRender:h,isImageUrl:m,progress:g,prefixCls:v,className:y,type:_="select",children:S,style:C,itemRender:w,maxCount:x,data:T={},multiple:A=!1,hasControlInside:I=!0,action:R="",accept:N="",supportServerRender:P=!0,rootClassName:L}=e,$=b.useContext(wc),D=f??$,[z,U]=qr(r||[],{value:n,postState:qe=>qe??[]}),[H,M]=b.useState("drop"),B=b.useRef(null),k=b.useRef(null);b.useMemo(()=>{const qe=Date.now();(n||[]).forEach((nt,Qe)=>{!nt.uid&&!Object.isFrozen(nt)&&(nt.uid=`__AUTO__${qe}_${Qe}__`)})},[n]);const F=(qe,nt,Qe)=>{let it=Tt(nt),yt=!1;x===1?it=it.slice(-1):x&&(yt=it.length>x,it=it.slice(0,x)),Ou.flushSync(()=>{U(it)});const Wt={file:qe,fileList:it};Qe&&(Wt.event=Qe),(!yt||qe.status==="removed"||it.some(Mt=>Mt.uid===qe.uid))&&Ou.flushSync(()=>{c?.(Wt)})},G=(qe,nt)=>OXt(void 0,void 0,void 0,function*(){const{beforeUpload:Qe,transformFile:it}=e;let yt=qe;if(Qe){const Wt=yield Qe(qe,nt);if(Wt===!1)return!1;if(delete qe[yA],Wt===yA)return Object.defineProperty(qe,yA,{value:!0,configurable:!0}),!1;typeof Wt=="object"&&Wt&&(yt=Wt)}return it&&(yt=yield it(yt)),yt}),q=qe=>{const nt=qe.filter(yt=>!yt.file[yA]);if(!nt.length)return;const Qe=nt.map(yt=>yP(yt.file));let it=Tt(z);Qe.forEach(yt=>{it=bP(yt,it)}),Qe.forEach((yt,Wt)=>{let Mt=yt;if(nt[Wt].parsedFile)yt.status="uploading";else{const{originFileObj:tn}=yt;let Rt;try{Rt=new File([tn],tn.name,{type:tn.type})}catch{Rt=new Blob([tn],{type:tn.type}),Rt.name=tn.name,Rt.lastModifiedDate=new Date,Rt.lastModified=new Date().getTime()}Rt.uid=yt.uid,Mt=Rt}F(Mt,it)})},W=(qe,nt,Qe)=>{try{typeof qe=="string"&&(qe=JSON.parse(qe))}catch{}if(!Rq(nt,z))return;const it=yP(nt);it.status="done",it.percent=100,it.response=qe,it.xhr=Qe;const yt=bP(it,z);F(it,yt)},K=(qe,nt)=>{if(!Rq(nt,z))return;const Qe=yP(nt);Qe.status="uploading",Qe.percent=qe.percent;const it=bP(Qe,z);F(Qe,it,qe)},J=(qe,nt,Qe)=>{if(!Rq(Qe,z))return;const it=yP(Qe);it.error=qe,it.response=nt,it.status="error";const yt=bP(it,z);F(it,yt)},te=qe=>{let nt;Promise.resolve(typeof i=="function"?i(qe):i).then(Qe=>{var it;if(Qe===!1)return;const yt=wXt(qe,z);yt&&(nt=Object.assign(Object.assign({},qe),{status:"removed"}),z?.forEach(Wt=>{const Mt=nt.uid!==void 0?"uid":"name";Wt[Mt]===nt[Mt]&&!Object.isFrozen(Wt)&&(Wt.status="removed")}),(it=B.current)===null||it===void 0||it.abort(nt),F(nt,yt))})},ae=qe=>{M(qe.type),qe.type==="drop"&&u?.(qe)};b.useImperativeHandle(t,()=>({onBatchStart:q,onSuccess:W,onProgress:K,onError:J,fileList:z,upload:B.current,nativeElement:k.current}));const{getPrefixCls:re,direction:ue,upload:de}=b.useContext(Sn),fe=re("upload",v),ge=Object.assign(Object.assign({onBatchStart:q,onError:J,onProgress:K,onSuccess:W},e),{data:T,multiple:A,action:R,accept:N,supportServerRender:P,prefixCls:fe,disabled:D,beforeUpload:G,onChange:void 0,hasControlInside:I});delete ge.className,delete ge.style,(!S||D)&&delete ge.id;const oe=`${fe}-wrapper`,[Ee,ce,he]=CXt(fe,oe),[ye]=Dd("Upload",Id.Upload),{showRemoveIcon:me,showPreviewIcon:_e,showDownloadIcon:Te,removeIcon:xe,previewIcon:De,downloadIcon:Pe,extra:Le}=typeof a=="boolean"?{}:a,ze=typeof me>"u"?!D:!!me,Be=(qe,nt)=>a?b.createElement(NXt,{prefixCls:fe,listType:o,items:z,previewFile:d,onPreview:s,onDownload:l,onRemove:te,showRemoveIcon:ze,showPreviewIcon:_e,showDownloadIcon:Te,removeIcon:xe,previewIcon:De,downloadIcon:Pe,iconRender:h,extra:Le,locale:Object.assign(Object.assign({},ye),p),isImageUrl:m,progress:g,appendAction:qe,appendActionVisible:nt,itemRender:w,disabled:D}):qe,je=Oe(oe,y,L,ce,he,de?.className,{[`${fe}-rtl`]:ue==="rtl",[`${fe}-picture-card-wrapper`]:o==="picture-card",[`${fe}-picture-circle-wrapper`]:o==="picture-circle"}),Ye=Object.assign(Object.assign({},de?.style),C);if(_==="drag"){const qe=Oe(ce,fe,`${fe}-drag`,{[`${fe}-drag-uploading`]:z.some(nt=>nt.status==="uploading"),[`${fe}-drag-hover`]:H==="dragover",[`${fe}-disabled`]:D,[`${fe}-rtl`]:ue==="rtl"});return Ee(b.createElement("span",{className:je,ref:k},b.createElement("div",{className:qe,style:Ye,onDrop:ae,onDragOver:ae,onDragLeave:ae},b.createElement($ie,Object.assign({},ge,{ref:B,className:`${fe}-btn`}),b.createElement("div",{className:`${fe}-drag-container`},S))),Be()))}const Ze=Oe(fe,`${fe}-select`,{[`${fe}-disabled`]:D}),Ke=b.createElement("div",{className:Ze,style:S?void 0:{display:"none"}},b.createElement($ie,Object.assign({},ge,{ref:B})));return Ee(o==="picture-card"||o==="picture-circle"?b.createElement("span",{className:je,ref:k},Be(Ke,!!S)):b.createElement("span",{className:je,ref:k},Ke,Be()))},gGe=b.forwardRef(LXt);var PXt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const kXt=b.forwardRef((e,t)=>{var{style:n,height:r,hasControlInside:i=!1}=e,a=PXt(e,["style","height","hasControlInside"]);return b.createElement(gGe,Object.assign({ref:t,hasControlInside:i},a,{type:"drag",style:Object.assign(Object.assign({},n),{height:r})}))}),xfe=gGe;xfe.Dragger=kXt;xfe.LIST_IGNORE=yA;var vGe,$Ee=Ou;vGe=$Ee.createRoot,$Ee.hydrateRoot;function a7(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?a7=function(n){return typeof n}:a7=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},a7(e)}function MXt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function DXt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $Xt(e,t,n){return t&&DXt(e.prototype,t),e}function FXt(e,t){return t&&(a7(t)==="object"||typeof t=="function")?t:o7(e)}function Fie(e){return Fie=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Fie(e)}function o7(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function BXt(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}}),t&&Bie(e,t)}function Bie(e,t){return Bie=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Bie(e,t)}function s7(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yGe=function(e){BXt(t,e);function t(){var n,r;MXt(this,t);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r=FXt(this,(n=Fie(t)).call.apply(n,[this].concat(a))),s7(o7(r),"state",{bootstrapped:!1}),s7(o7(r),"_unsubscribe",void 0),s7(o7(r),"handlePersistorState",function(){var s=r.props.persistor,l=s.getState(),c=l.bootstrapped;c&&(r.props.onBeforeLift?Promise.resolve(r.props.onBeforeLift()).finally(function(){return r.setState({bootstrapped:!0})}):r.setState({bootstrapped:!0}),r._unsubscribe&&r._unsubscribe())}),r}return $Xt(t,[{key:"componentDidMount",value:function(){this._unsubscribe=this.props.persistor.subscribe(this.handlePersistorState),this.handlePersistorState()}},{key:"componentWillUnmount",value:function(){this._unsubscribe&&this._unsubscribe()}},{key:"render",value:function(){return typeof this.props.children=="function"?this.props.children(this.state.bootstrapped):this.state.bootstrapped?this.props.children:this.props.loading}}]),t}(b.PureComponent);s7(yGe,"defaultProps",{children:null,loading:null});var bGe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ns,function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(a,o,s){var l=o.prototype;s.utc=function(m){var g={date:m,utc:!0,args:arguments};return new o(g)},l.utc=function(m){var g=s(this.toDate(),{locale:this.$L,utc:!0});return m?g.add(this.utcOffset(),n):g},l.local=function(){return s(this.toDate(),{locale:this.$L,utc:!1})};var c=l.parse;l.parse=function(m){m.utc&&(this.$u=!0),this.$utils().u(m.$offset)||(this.$offset=m.$offset),c.call(this,m)};var u=l.init;l.init=function(){if(this.$u){var m=this.$d;this.$y=m.getUTCFullYear(),this.$M=m.getUTCMonth(),this.$D=m.getUTCDate(),this.$W=m.getUTCDay(),this.$H=m.getUTCHours(),this.$m=m.getUTCMinutes(),this.$s=m.getUTCSeconds(),this.$ms=m.getUTCMilliseconds()}else u.call(this)};var d=l.utcOffset;l.utcOffset=function(m,g){var v=this.$utils().u;if(v(m))return this.$u?0:v(this.$offset)?d.call(this):this.$offset;if(typeof m=="string"&&(m=function(C){C===void 0&&(C="");var w=C.match(r);if(!w)return null;var x=(""+w[0]).match(i)||["-",0,0],T=x[0],A=60*+x[1]+ +x[2];return A===0?0:T==="+"?A:-A}(m),m===null))return this;var y=Math.abs(m)<=16?60*m:m,_=this;if(g)return _.$offset=y,_.$u=m===0,_;if(m!==0){var S=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(_=this.local().add(y+S,n)).$offset=y,_.$x.$localOffset=S}else _=this.utc();return _};var f=l.format;l.format=function(m){var g=m||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return f.call(this,g)},l.valueOf=function(){var m=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*m},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var p=l.toDate;l.toDate=function(m){return m==="s"&&this.$offset?s(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():p.call(this)};var h=l.diff;l.diff=function(m,g,v){if(m&&this.$u===m.$u)return h.call(this,m,g,v);var y=this.local(),_=s(m).local();return h.call(y,_,g,v)}}})})(bGe);var jXt=bGe.exports;const zXt=qo(jXt);Cr.extend(zXt);function UXt(e){return new Worker("/assets/editor.worker-CwK1rGUf.js",{name:e?.name})}function HXt(e){return new Worker("/assets/html.worker-Bq0G50ZS.js",{name:e?.name})}function VXt(e){return new Worker("/assets/json.worker-CgGmul-f.js",{name:e?.name})}function GXt(e){return new Worker("/assets/yaml.worker-DzlorLcr.js",{name:e?.name})}self.MonacoEnvironment={getWorker(e,t){return t==="json"?new VXt:t==="html"?new HXt:t==="yaml"?new GXt:new UXt}};var _Ge={exports:{}};/*!
 * Quill Editor v1.3.7
 * https://quilljs.com/
 * Copyright (c) 2014, Jason Chen
 * Copyright (c) 2013, salesforce.com
 */(function(e,t){(function(r,i){e.exports=i()})(typeof self<"u"?self:ns,function(){return function(n){var r={};function i(a){if(r[a])return r[a].exports;var o=r[a]={i:a,l:!1,exports:{}};return n[a].call(o.exports,o,o.exports,i),o.l=!0,o.exports}return i.m=n,i.c=r,i.d=function(a,o,s){i.o(a,o)||Object.defineProperty(a,o,{configurable:!1,enumerable:!0,get:s})},i.n=function(a){var o=a&&a.__esModule?function(){return a.default}:function(){return a};return i.d(o,"a",o),o},i.o=function(a,o){return Object.prototype.hasOwnProperty.call(a,o)},i.p="",i(i.s=109)}([function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=i(17),o=i(18),s=i(19),l=i(45),c=i(46),u=i(47),d=i(48),f=i(49),p=i(12),h=i(32),m=i(33),g=i(31),v=i(1),y={Scope:v.Scope,create:v.create,find:v.find,query:v.query,register:v.register,Container:a.default,Format:o.default,Leaf:s.default,Embed:d.default,Scroll:l.default,Block:u.default,Inline:c.default,Text:f.default,Attributor:{Attribute:p.default,Class:h.default,Style:m.default,Store:g.default}};r.default=y},function(n,r,i){var a=this&&this.__extends||function(){var g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,y){v.__proto__=y}||function(v,y){for(var _ in y)y.hasOwnProperty(_)&&(v[_]=y[_])};return function(v,y){g(v,y);function _(){this.constructor=v}v.prototype=y===null?Object.create(y):(_.prototype=y.prototype,new _)}}();Object.defineProperty(r,"__esModule",{value:!0});var o=function(g){a(v,g);function v(y){var _=this;return y="[Parchment] "+y,_=g.call(this,y)||this,_.message=y,_.name=_.constructor.name,_}return v}(Error);r.ParchmentError=o;var s={},l={},c={},u={};r.DATA_KEY="__blot";var d;(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"})(d=r.Scope||(r.Scope={}));function f(g,v){var y=h(g);if(y==null)throw new o("Unable to create "+g+" blot");var _=y,S=g instanceof Node||g.nodeType===Node.TEXT_NODE?g:_.create(v);return new _(S,v)}r.create=f;function p(g,v){return v===void 0&&(v=!1),g==null?null:g[r.DATA_KEY]!=null?g[r.DATA_KEY].blot:v?p(g.parentNode,v):null}r.find=p;function h(g,v){v===void 0&&(v=d.ANY);var y;if(typeof g=="string")y=u[g]||s[g];else if(g instanceof Text||g.nodeType===Node.TEXT_NODE)y=u.text;else if(typeof g=="number")g&d.LEVEL&d.BLOCK?y=u.block:g&d.LEVEL&d.INLINE&&(y=u.inline);else if(g instanceof HTMLElement){var _=(g.getAttribute("class")||"").split(/\s+/);for(var S in _)if(y=l[_[S]],y)break;y=y||c[g.tagName]}return y==null?null:v&d.LEVEL&y.scope&&v&d.TYPE&y.scope?y:null}r.query=h;function m(){for(var g=[],v=0;v<arguments.length;v++)g[v]=arguments[v];if(g.length>1)return g.map(function(S){return m(S)});var y=g[0];if(typeof y.blotName!="string"&&typeof y.attrName!="string")throw new o("Invalid definition");if(y.blotName==="abstract")throw new o("Cannot register abstract class");if(u[y.blotName||y.attrName]=y,typeof y.keyName=="string")s[y.keyName]=y;else if(y.className!=null&&(l[y.className]=y),y.tagName!=null){Array.isArray(y.tagName)?y.tagName=y.tagName.map(function(S){return S.toUpperCase()}):y.tagName=y.tagName.toUpperCase();var _=Array.isArray(y.tagName)?y.tagName:[y.tagName];_.forEach(function(S){(c[S]==null||y.className==null)&&(c[S]=y)})}return y}r.register=m},function(n,r,i){var a=i(51),o=i(11),s=i(3),l=i(20),c="\0",u=function(d){Array.isArray(d)?this.ops=d:d!=null&&Array.isArray(d.ops)?this.ops=d.ops:this.ops=[]};u.prototype.insert=function(d,f){var p={};return d.length===0?this:(p.insert=d,f!=null&&typeof f=="object"&&Object.keys(f).length>0&&(p.attributes=f),this.push(p))},u.prototype.delete=function(d){return d<=0?this:this.push({delete:d})},u.prototype.retain=function(d,f){if(d<=0)return this;var p={retain:d};return f!=null&&typeof f=="object"&&Object.keys(f).length>0&&(p.attributes=f),this.push(p)},u.prototype.push=function(d){var f=this.ops.length,p=this.ops[f-1];if(d=s(!0,{},d),typeof p=="object"){if(typeof d.delete=="number"&&typeof p.delete=="number")return this.ops[f-1]={delete:p.delete+d.delete},this;if(typeof p.delete=="number"&&d.insert!=null&&(f-=1,p=this.ops[f-1],typeof p!="object"))return this.ops.unshift(d),this;if(o(d.attributes,p.attributes)){if(typeof d.insert=="string"&&typeof p.insert=="string")return this.ops[f-1]={insert:p.insert+d.insert},typeof d.attributes=="object"&&(this.ops[f-1].attributes=d.attributes),this;if(typeof d.retain=="number"&&typeof p.retain=="number")return this.ops[f-1]={retain:p.retain+d.retain},typeof d.attributes=="object"&&(this.ops[f-1].attributes=d.attributes),this}}return f===this.ops.length?this.ops.push(d):this.ops.splice(f,0,d),this},u.prototype.chop=function(){var d=this.ops[this.ops.length-1];return d&&d.retain&&!d.attributes&&this.ops.pop(),this},u.prototype.filter=function(d){return this.ops.filter(d)},u.prototype.forEach=function(d){this.ops.forEach(d)},u.prototype.map=function(d){return this.ops.map(d)},u.prototype.partition=function(d){var f=[],p=[];return this.forEach(function(h){var m=d(h)?f:p;m.push(h)}),[f,p]},u.prototype.reduce=function(d,f){return this.ops.reduce(d,f)},u.prototype.changeLength=function(){return this.reduce(function(d,f){return f.insert?d+l.length(f):f.delete?d-f.delete:d},0)},u.prototype.length=function(){return this.reduce(function(d,f){return d+l.length(f)},0)},u.prototype.slice=function(d,f){d=d||0,typeof f!="number"&&(f=1/0);for(var p=[],h=l.iterator(this.ops),m=0;m<f&&h.hasNext();){var g;m<d?g=h.next(d-m):(g=h.next(f-m),p.push(g)),m+=l.length(g)}return new u(p)},u.prototype.compose=function(d){var f=l.iterator(this.ops),p=l.iterator(d.ops),h=[],m=p.peek();if(m!=null&&typeof m.retain=="number"&&m.attributes==null){for(var g=m.retain;f.peekType()==="insert"&&f.peekLength()<=g;)g-=f.peekLength(),h.push(f.next());m.retain-g>0&&p.next(m.retain-g)}for(var v=new u(h);f.hasNext()||p.hasNext();)if(p.peekType()==="insert")v.push(p.next());else if(f.peekType()==="delete")v.push(f.next());else{var y=Math.min(f.peekLength(),p.peekLength()),_=f.next(y),S=p.next(y);if(typeof S.retain=="number"){var C={};typeof _.retain=="number"?C.retain=y:C.insert=_.insert;var w=l.attributes.compose(_.attributes,S.attributes,typeof _.retain=="number");if(w&&(C.attributes=w),v.push(C),!p.hasNext()&&o(v.ops[v.ops.length-1],C)){var x=new u(f.rest());return v.concat(x).chop()}}else typeof S.delete=="number"&&typeof _.retain=="number"&&v.push(S)}return v.chop()},u.prototype.concat=function(d){var f=new u(this.ops.slice());return d.ops.length>0&&(f.push(d.ops[0]),f.ops=f.ops.concat(d.ops.slice(1))),f},u.prototype.diff=function(d,f){if(this.ops===d.ops)return new u;var p=[this,d].map(function(y){return y.map(function(_){if(_.insert!=null)return typeof _.insert=="string"?_.insert:c;var S=y===d?"on":"with";throw new Error("diff() called "+S+" non-document")}).join("")}),h=new u,m=a(p[0],p[1],f),g=l.iterator(this.ops),v=l.iterator(d.ops);return m.forEach(function(y){for(var _=y[1].length;_>0;){var S=0;switch(y[0]){case a.INSERT:S=Math.min(v.peekLength(),_),h.push(v.next(S));break;case a.DELETE:S=Math.min(_,g.peekLength()),g.next(S),h.delete(S);break;case a.EQUAL:S=Math.min(g.peekLength(),v.peekLength(),_);var C=g.next(S),w=v.next(S);o(C.insert,w.insert)?h.retain(S,l.attributes.diff(C.attributes,w.attributes)):h.push(w).delete(S);break}_-=S}}),h.chop()},u.prototype.eachLine=function(d,f){f=f||`
`;for(var p=l.iterator(this.ops),h=new u,m=0;p.hasNext();){if(p.peekType()!=="insert")return;var g=p.peek(),v=l.length(g)-p.peekLength(),y=typeof g.insert=="string"?g.insert.indexOf(f,v)-v:-1;if(y<0)h.push(p.next());else if(y>0)h.push(p.next(y));else{if(d(h,p.next(1).attributes||{},m)===!1)return;m+=1,h=new u}}h.length()>0&&d(h,{},m)},u.prototype.transform=function(d,f){if(f=!!f,typeof d=="number")return this.transformPosition(d,f);for(var p=l.iterator(this.ops),h=l.iterator(d.ops),m=new u;p.hasNext()||h.hasNext();)if(p.peekType()==="insert"&&(f||h.peekType()!=="insert"))m.retain(l.length(p.next()));else if(h.peekType()==="insert")m.push(h.next());else{var g=Math.min(p.peekLength(),h.peekLength()),v=p.next(g),y=h.next(g);if(v.delete)continue;y.delete?m.push(y):m.retain(g,l.attributes.transform(v.attributes,y.attributes,f))}return m.chop()},u.prototype.transformPosition=function(d,f){f=!!f;for(var p=l.iterator(this.ops),h=0;p.hasNext()&&h<=d;){var m=p.peekLength(),g=p.peekType();if(p.next(),g==="delete"){d-=Math.min(m,d-h);continue}else g==="insert"&&(h<d||!f)&&(d+=m);h+=m}return d},n.exports=u},function(n,r){var i=Object.prototype.hasOwnProperty,a=Object.prototype.toString,o=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l=function(p){return typeof Array.isArray=="function"?Array.isArray(p):a.call(p)==="[object Array]"},c=function(p){if(!p||a.call(p)!=="[object Object]")return!1;var h=i.call(p,"constructor"),m=p.constructor&&p.constructor.prototype&&i.call(p.constructor.prototype,"isPrototypeOf");if(p.constructor&&!h&&!m)return!1;var g;for(g in p);return typeof g>"u"||i.call(p,g)},u=function(p,h){o&&h.name==="__proto__"?o(p,h.name,{enumerable:!0,configurable:!0,value:h.newValue,writable:!0}):p[h.name]=h.newValue},d=function(p,h){if(h==="__proto__")if(i.call(p,h)){if(s)return s(p,h).value}else return;return p[h]};n.exports=function f(){var p,h,m,g,v,y,_=arguments[0],S=1,C=arguments.length,w=!1;for(typeof _=="boolean"&&(w=_,_=arguments[1]||{},S=2),(_==null||typeof _!="object"&&typeof _!="function")&&(_={});S<C;++S)if(p=arguments[S],p!=null)for(h in p)m=d(_,h),g=d(p,h),_!==g&&(w&&g&&(c(g)||(v=l(g)))?(v?(v=!1,y=m&&l(m)?m:[]):y=m&&c(m)?m:{},u(_,{name:h,newValue:f(w,y,g)})):typeof g<"u"&&u(_,{name:h,newValue:g}));return _}},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.BlockEmbed=r.bubbleFormats=void 0;var a=function(){function R(N,P){for(var L=0;L<P.length;L++){var $=P[L];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(N,$.key,$)}}return function(N,P,L){return P&&R(N.prototype,P),L&&R(N,L),N}}(),o=function R(N,P,L){N===null&&(N=Function.prototype);var $=Object.getOwnPropertyDescriptor(N,P);if($===void 0){var D=Object.getPrototypeOf(N);return D===null?void 0:R(D,P,L)}else{if("value"in $)return $.value;var z=$.get;return z===void 0?void 0:z.call(L)}},s=i(3),l=_(s),c=i(2),u=_(c),d=i(0),f=_(d),p=i(16),h=_(p),m=i(6),g=_(m),v=i(7),y=_(v);function _(R){return R&&R.__esModule?R:{default:R}}function S(R,N){if(!(R instanceof N))throw new TypeError("Cannot call a class as a function")}function C(R,N){if(!R)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N&&(typeof N=="object"||typeof N=="function")?N:R}function w(R,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof N);R.prototype=Object.create(N&&N.prototype,{constructor:{value:R,enumerable:!1,writable:!0,configurable:!0}}),N&&(Object.setPrototypeOf?Object.setPrototypeOf(R,N):R.__proto__=N)}var x=1,T=function(R){w(N,R);function N(){return S(this,N),C(this,(N.__proto__||Object.getPrototypeOf(N)).apply(this,arguments))}return a(N,[{key:"attach",value:function(){o(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"attach",this).call(this),this.attributes=new f.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new u.default().insert(this.value(),(0,l.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(L,$){var D=f.default.query(L,f.default.Scope.BLOCK_ATTRIBUTE);D!=null&&this.attributes.attribute(D,$)}},{key:"formatAt",value:function(L,$,D,z){this.format(D,z)}},{key:"insertAt",value:function(L,$,D){if(typeof $=="string"&&$.endsWith(`
`)){var z=f.default.create(A.blotName);this.parent.insertBefore(z,L===0?this:this.next),z.insertAt(0,$.slice(0,-1))}else o(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"insertAt",this).call(this,L,$,D)}}]),N}(f.default.Embed);T.scope=f.default.Scope.BLOCK_BLOT;var A=function(R){w(N,R);function N(P){S(this,N);var L=C(this,(N.__proto__||Object.getPrototypeOf(N)).call(this,P));return L.cache={},L}return a(N,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(f.default.Leaf).reduce(function(L,$){return $.length()===0?L:L.insert($.value(),I($))},new u.default).insert(`
`,I(this))),this.cache.delta}},{key:"deleteAt",value:function(L,$){o(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"deleteAt",this).call(this,L,$),this.cache={}}},{key:"formatAt",value:function(L,$,D,z){$<=0||(f.default.query(D,f.default.Scope.BLOCK)?L+$===this.length()&&this.format(D,z):o(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"formatAt",this).call(this,L,Math.min($,this.length()-L-1),D,z),this.cache={})}},{key:"insertAt",value:function(L,$,D){if(D!=null)return o(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"insertAt",this).call(this,L,$,D);if($.length!==0){var z=$.split(`
`),U=z.shift();U.length>0&&(L<this.length()-1||this.children.tail==null?o(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"insertAt",this).call(this,Math.min(L,this.length()-1),U):this.children.tail.insertAt(this.children.tail.length(),U),this.cache={});var H=this;z.reduce(function(M,B){return H=H.split(M,!0),H.insertAt(0,B),B.length},L+U.length)}}},{key:"insertBefore",value:function(L,$){var D=this.children.head;o(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"insertBefore",this).call(this,L,$),D instanceof h.default&&D.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=o(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"length",this).call(this)+x),this.cache.length}},{key:"moveChildren",value:function(L,$){o(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"moveChildren",this).call(this,L,$),this.cache={}}},{key:"optimize",value:function(L){o(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"optimize",this).call(this,L),this.cache={}}},{key:"path",value:function(L){return o(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"path",this).call(this,L,!0)}},{key:"removeChild",value:function(L){o(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"removeChild",this).call(this,L),this.cache={}}},{key:"split",value:function(L){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if($&&(L===0||L>=this.length()-x)){var D=this.clone();return L===0?(this.parent.insertBefore(D,this),this):(this.parent.insertBefore(D,this.next),D)}else{var z=o(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"split",this).call(this,L,$);return this.cache={},z}}}]),N}(f.default.Block);A.blotName="block",A.tagName="P",A.defaultChild="break",A.allowedChildren=[g.default,f.default.Embed,y.default];function I(R){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return R==null||(typeof R.formats=="function"&&(N=(0,l.default)(N,R.formats())),R.parent==null||R.parent.blotName=="scroll"||R.parent.statics.scope!==R.statics.scope)?N:I(R.parent,N)}r.bubbleFormats=I,r.BlockEmbed=T,r.default=A},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.overload=r.expandConfig=void 0;var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(H){return typeof H}:function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H},o=function(){function H(M,B){var k=[],F=!0,G=!1,q=void 0;try{for(var W=M[Symbol.iterator](),K;!(F=(K=W.next()).done)&&(k.push(K.value),!(B&&k.length===B));F=!0);}catch(J){G=!0,q=J}finally{try{!F&&W.return&&W.return()}finally{if(G)throw q}}return k}return function(M,B){if(Array.isArray(M))return M;if(Symbol.iterator in Object(M))return H(M,B);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function H(M,B){for(var k=0;k<B.length;k++){var F=B[k];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(M,F.key,F)}}return function(M,B,k){return B&&H(M.prototype,B),k&&H(M,k),M}}();i(50);var l=i(2),c=I(l),u=i(14),d=I(u),f=i(8),p=I(f),h=i(9),m=I(h),g=i(0),v=I(g),y=i(15),_=I(y),S=i(3),C=I(S),w=i(10),x=I(w),T=i(34),A=I(T);function I(H){return H&&H.__esModule?H:{default:H}}function R(H,M,B){return M in H?Object.defineProperty(H,M,{value:B,enumerable:!0,configurable:!0,writable:!0}):H[M]=B,H}function N(H,M){if(!(H instanceof M))throw new TypeError("Cannot call a class as a function")}var P=(0,x.default)("quill"),L=function(){s(H,null,[{key:"debug",value:function(B){B===!0&&(B="log"),x.default.level(B)}},{key:"find",value:function(B){return B.__quill||v.default.find(B)}},{key:"import",value:function(B){return this.imports[B]==null&&P.error("Cannot import "+B+". Are you sure it was registered?"),this.imports[B]}},{key:"register",value:function(B,k){var F=this,G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof B!="string"){var q=B.attrName||B.blotName;typeof q=="string"?this.register("formats/"+q,B,k):Object.keys(B).forEach(function(W){F.register(W,B[W],k)})}else this.imports[B]!=null&&!G&&P.warn("Overwriting "+B+" with",k),this.imports[B]=k,(B.startsWith("blots/")||B.startsWith("formats/"))&&k.blotName!=="abstract"?v.default.register(k):B.startsWith("modules")&&typeof k.register=="function"&&k.register()}}]);function H(M){var B=this,k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(N(this,H),this.options=$(M,k),this.container=this.options.container,this.container==null)return P.error("Invalid Quill container",M);this.options.debug&&H.debug(this.options.debug);var F=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 p.default,this.scroll=v.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new d.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(p.default.events.EDITOR_CHANGE,function(q){q===p.default.events.TEXT_CHANGE&&B.root.classList.toggle("ql-blank",B.editor.isBlank())}),this.emitter.on(p.default.events.SCROLL_UPDATE,function(q,W){var K=B.selection.lastRange,J=K&&K.length===0?K.index:void 0;D.call(B,function(){return B.editor.update(null,W,J)},q)});var G=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+F+"<p><br></p></div>");this.setContents(G),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return s(H,[{key:"addContainer",value:function(B){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof B=="string"){var F=B;B=document.createElement("div"),B.classList.add(F)}return this.container.insertBefore(B,k),B}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(B,k,F){var G=this,q=z(B,k,F),W=o(q,4);return B=W[0],k=W[1],F=W[3],D.call(this,function(){return G.editor.deleteText(B,k)},F,B,-1*k)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(B),this.container.classList.toggle("ql-disabled",!B)}},{key:"focus",value:function(){var B=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=B,this.scrollIntoView()}},{key:"format",value:function(B,k){var F=this,G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:p.default.sources.API;return D.call(this,function(){var q=F.getSelection(!0),W=new c.default;if(q==null)return W;if(v.default.query(B,v.default.Scope.BLOCK))W=F.editor.formatLine(q.index,q.length,R({},B,k));else{if(q.length===0)return F.selection.format(B,k),W;W=F.editor.formatText(q.index,q.length,R({},B,k))}return F.setSelection(q,p.default.sources.SILENT),W},G)}},{key:"formatLine",value:function(B,k,F,G,q){var W=this,K=void 0,J=z(B,k,F,G,q),te=o(J,4);return B=te[0],k=te[1],K=te[2],q=te[3],D.call(this,function(){return W.editor.formatLine(B,k,K)},q,B,0)}},{key:"formatText",value:function(B,k,F,G,q){var W=this,K=void 0,J=z(B,k,F,G,q),te=o(J,4);return B=te[0],k=te[1],K=te[2],q=te[3],D.call(this,function(){return W.editor.formatText(B,k,K)},q,B,0)}},{key:"getBounds",value:function(B){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,F=void 0;typeof B=="number"?F=this.selection.getBounds(B,k):F=this.selection.getBounds(B.index,B.length);var G=this.container.getBoundingClientRect();return{bottom:F.bottom-G.top,height:F.height,left:F.left-G.left,right:F.right-G.left,top:F.top-G.top,width:F.width}}},{key:"getContents",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-B,F=z(B,k),G=o(F,2);return B=G[0],k=G[1],this.editor.getContents(B,k)}},{key:"getFormat",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof B=="number"?this.editor.getFormat(B,k):this.editor.getFormat(B.index,B.length)}},{key:"getIndex",value:function(B){return B.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(B){return this.scroll.leaf(B)}},{key:"getLine",value:function(B){return this.scroll.line(B)}},{key:"getLines",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof B!="number"?this.scroll.lines(B.index,B.length):this.scroll.lines(B,k)}},{key:"getModule",value:function(B){return this.theme.modules[B]}},{key:"getSelection",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return B&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-B,F=z(B,k),G=o(F,2);return B=G[0],k=G[1],this.editor.getText(B,k)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(B,k,F){var G=this,q=arguments.length>3&&arguments[3]!==void 0?arguments[3]:H.sources.API;return D.call(this,function(){return G.editor.insertEmbed(B,k,F)},q,B)}},{key:"insertText",value:function(B,k,F,G,q){var W=this,K=void 0,J=z(B,0,F,G,q),te=o(J,4);return B=te[0],K=te[2],q=te[3],D.call(this,function(){return W.editor.insertText(B,k,K)},q,B,k.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(B,k,F){this.clipboard.dangerouslyPasteHTML(B,k,F)}},{key:"removeFormat",value:function(B,k,F){var G=this,q=z(B,k,F),W=o(q,4);return B=W[0],k=W[1],F=W[3],D.call(this,function(){return G.editor.removeFormat(B,k)},F,B)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(B){var k=this,F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:p.default.sources.API;return D.call(this,function(){B=new c.default(B);var G=k.getLength(),q=k.editor.deleteText(0,G),W=k.editor.applyDelta(B),K=W.ops[W.ops.length-1];K!=null&&typeof K.insert=="string"&&K.insert[K.insert.length-1]===`
`&&(k.editor.deleteText(k.getLength()-1,1),W.delete(1));var J=q.compose(W);return J},F)}},{key:"setSelection",value:function(B,k,F){if(B==null)this.selection.setRange(null,k||H.sources.API);else{var G=z(B,k,F),q=o(G,4);B=q[0],k=q[1],F=q[3],this.selection.setRange(new y.Range(B,k),F),F!==p.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(B){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:p.default.sources.API,F=new c.default().insert(B);return this.setContents(F,k)}},{key:"update",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:p.default.sources.USER,k=this.scroll.update(B);return this.selection.update(B),k}},{key:"updateContents",value:function(B){var k=this,F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:p.default.sources.API;return D.call(this,function(){return B=new c.default(B),k.editor.applyDelta(B,F)},F,!0)}}]),H}();L.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},L.events=p.default.events,L.sources=p.default.sources,L.version="1.3.7",L.imports={delta:c.default,parchment:v.default,"core/module":m.default,"core/theme":A.default};function $(H,M){if(M=(0,C.default)(!0,{container:H,modules:{clipboard:!0,keyboard:!0,history:!0}},M),!M.theme||M.theme===L.DEFAULTS.theme)M.theme=A.default;else if(M.theme=L.import("themes/"+M.theme),M.theme==null)throw new Error("Invalid theme "+M.theme+". Did you register it?");var B=(0,C.default)(!0,{},M.theme.DEFAULTS);[B,M].forEach(function(G){G.modules=G.modules||{},Object.keys(G.modules).forEach(function(q){G.modules[q]===!0&&(G.modules[q]={})})});var k=Object.keys(B.modules).concat(Object.keys(M.modules)),F=k.reduce(function(G,q){var W=L.import("modules/"+q);return W==null?P.error("Cannot load "+q+" module. Are you sure you registered it?"):G[q]=W.DEFAULTS||{},G},{});return M.modules!=null&&M.modules.toolbar&&M.modules.toolbar.constructor!==Object&&(M.modules.toolbar={container:M.modules.toolbar}),M=(0,C.default)(!0,{},L.DEFAULTS,{modules:F},B,M),["bounds","container","scrollingContainer"].forEach(function(G){typeof M[G]=="string"&&(M[G]=document.querySelector(M[G]))}),M.modules=Object.keys(M.modules).reduce(function(G,q){return M.modules[q]&&(G[q]=M.modules[q]),G},{}),M}function D(H,M,B,k){if(this.options.strict&&!this.isEnabled()&&M===p.default.sources.USER)return new c.default;var F=B==null?null:this.getSelection(),G=this.editor.delta,q=H();if(F!=null&&(B===!0&&(B=F.index),k==null?F=U(F,q,M):k!==0&&(F=U(F,B,k,M)),this.setSelection(F,p.default.sources.SILENT)),q.length()>0){var W,K=[p.default.events.TEXT_CHANGE,q,G,M];if((W=this.emitter).emit.apply(W,[p.default.events.EDITOR_CHANGE].concat(K)),M!==p.default.sources.SILENT){var J;(J=this.emitter).emit.apply(J,K)}}return q}function z(H,M,B,k,F){var G={};return typeof H.index=="number"&&typeof H.length=="number"?typeof M!="number"?(F=k,k=B,B=M,M=H.length,H=H.index):(M=H.length,H=H.index):typeof M!="number"&&(F=k,k=B,B=M,M=0),(typeof B>"u"?"undefined":a(B))==="object"?(G=B,F=k):typeof B=="string"&&(k!=null?G[B]=k:F=B),F=F||p.default.sources.API,[H,M,G,F]}function U(H,M,B,k){if(H==null)return null;var F=void 0,G=void 0;if(M instanceof c.default){var q=[H.index,H.index+H.length].map(function(te){return M.transformPosition(te,k!==p.default.sources.USER)}),W=o(q,2);F=W[0],G=W[1]}else{var K=[H.index,H.index+H.length].map(function(te){return te<M||te===M&&k===p.default.sources.USER?te:B>=0?te+B:Math.max(M,te+B)}),J=o(K,2);F=J[0],G=J[1]}return new y.Range(F,G-F)}r.expandConfig=$,r.overload=z,r.default=L},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function g(v,y){for(var _=0;_<y.length;_++){var S=y[_];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(v,S.key,S)}}return function(v,y,_){return y&&g(v.prototype,y),_&&g(v,_),v}}(),o=function g(v,y,_){v===null&&(v=Function.prototype);var S=Object.getOwnPropertyDescriptor(v,y);if(S===void 0){var C=Object.getPrototypeOf(v);return C===null?void 0:g(C,y,_)}else{if("value"in S)return S.value;var w=S.get;return w===void 0?void 0:w.call(_)}},s=i(7),l=d(s),c=i(0),u=d(c);function d(g){return g&&g.__esModule?g:{default:g}}function f(g,v){if(!(g instanceof v))throw new TypeError("Cannot call a class as a function")}function p(g,v){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:g}function h(g,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);g.prototype=Object.create(v&&v.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(g,v):g.__proto__=v)}var m=function(g){h(v,g);function v(){return f(this,v),p(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return a(v,[{key:"formatAt",value:function(_,S,C,w){if(v.compare(this.statics.blotName,C)<0&&u.default.query(C,u.default.Scope.BLOT)){var x=this.isolate(_,S);w&&x.wrap(C,w)}else o(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"formatAt",this).call(this,_,S,C,w)}},{key:"optimize",value:function(_){if(o(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"optimize",this).call(this,_),this.parent instanceof v&&v.compare(this.statics.blotName,this.parent.statics.blotName)>0){var S=this.parent.isolate(this.offset(),this.length());this.moveChildren(S),S.wrap(this)}}}],[{key:"compare",value:function(_,S){var C=v.order.indexOf(_),w=v.order.indexOf(S);return C>=0||w>=0?C-w:_===S?0:_<S?-1:1}}]),v}(u.default.Inline);m.allowedChildren=[m,u.default.Embed,l.default],m.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],r.default=m},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=i(0),o=s(a);function s(f){return f&&f.__esModule?f:{default:f}}function l(f,p){if(!(f instanceof p))throw new TypeError("Cannot call a class as a function")}function c(f,p){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:f}function u(f,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);f.prototype=Object.create(p&&p.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(f,p):f.__proto__=p)}var d=function(f){u(p,f);function p(){return l(this,p),c(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return p}(o.default.Text);r.default=d},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function y(_,S){for(var C=0;C<S.length;C++){var w=S[C];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(_,w.key,w)}}return function(_,S,C){return S&&y(_.prototype,S),C&&y(_,C),_}}(),o=function y(_,S,C){_===null&&(_=Function.prototype);var w=Object.getOwnPropertyDescriptor(_,S);if(w===void 0){var x=Object.getPrototypeOf(_);return x===null?void 0:y(x,S,C)}else{if("value"in w)return w.value;var T=w.get;return T===void 0?void 0:T.call(C)}},s=i(54),l=d(s),c=i(10),u=d(c);function d(y){return y&&y.__esModule?y:{default:y}}function f(y,_){if(!(y instanceof _))throw new TypeError("Cannot call a class as a function")}function p(y,_){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:y}function h(y,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);y.prototype=Object.create(_&&_.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(y,_):y.__proto__=_)}var m=(0,u.default)("quill:events"),g=["selectionchange","mousedown","mouseup","click"];g.forEach(function(y){document.addEventListener(y,function(){for(var _=arguments.length,S=Array(_),C=0;C<_;C++)S[C]=arguments[C];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(w){if(w.__quill&&w.__quill.emitter){var x;(x=w.__quill.emitter).handleDOM.apply(x,S)}})})});var v=function(y){h(_,y);function _(){f(this,_);var S=p(this,(_.__proto__||Object.getPrototypeOf(_)).call(this));return S.listeners={},S.on("error",m.error),S}return a(_,[{key:"emit",value:function(){m.log.apply(m,arguments),o(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(C){for(var w=arguments.length,x=Array(w>1?w-1:0),T=1;T<w;T++)x[T-1]=arguments[T];(this.listeners[C.type]||[]).forEach(function(A){var I=A.node,R=A.handler;(C.target===I||I.contains(C.target))&&R.apply(void 0,[C].concat(x))})}},{key:"listenDOM",value:function(C,w,x){this.listeners[C]||(this.listeners[C]=[]),this.listeners[C].push({node:w,handler:x})}}]),_}(l.default);v.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"},v.sources={API:"api",SILENT:"silent",USER:"user"},r.default=v},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});function a(s,l){if(!(s instanceof l))throw new TypeError("Cannot call a class as a function")}var o=function s(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};a(this,s),this.quill=l,this.options=c};o.DEFAULTS={},r.default=o},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=["error","warn","log","info"],o="warn";function s(c){if(a.indexOf(c)<=a.indexOf(o)){for(var u,d=arguments.length,f=Array(d>1?d-1:0),p=1;p<d;p++)f[p-1]=arguments[p];(u=console)[c].apply(u,f)}}function l(c){return a.reduce(function(u,d){return u[d]=s.bind(console,d,c),u},{})}s.level=l.level=function(c){o=c},r.default=l},function(n,r,i){var a=Array.prototype.slice,o=i(52),s=i(53),l=n.exports=function(f,p,h){return h||(h={}),f===p?!0:f instanceof Date&&p instanceof Date?f.getTime()===p.getTime():!f||!p||typeof f!="object"&&typeof p!="object"?h.strict?f===p:f==p:d(f,p,h)};function c(f){return f==null}function u(f){return!(!f||typeof f!="object"||typeof f.length!="number"||typeof f.copy!="function"||typeof f.slice!="function"||f.length>0&&typeof f[0]!="number")}function d(f,p,h){var m,g;if(c(f)||c(p)||f.prototype!==p.prototype)return!1;if(s(f))return s(p)?(f=a.call(f),p=a.call(p),l(f,p,h)):!1;if(u(f)){if(!u(p)||f.length!==p.length)return!1;for(m=0;m<f.length;m++)if(f[m]!==p[m])return!1;return!0}try{var v=o(f),y=o(p)}catch{return!1}if(v.length!=y.length)return!1;for(v.sort(),y.sort(),m=v.length-1;m>=0;m--)if(v[m]!=y[m])return!1;for(m=v.length-1;m>=0;m--)if(g=v[m],!l(f[g],p[g],h))return!1;return typeof f==typeof p}},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=i(1),o=function(){function s(l,c,u){u===void 0&&(u={}),this.attrName=l,this.keyName=c;var d=a.Scope.TYPE&a.Scope.ATTRIBUTE;u.scope!=null?this.scope=u.scope&a.Scope.LEVEL|d:this.scope=a.Scope.ATTRIBUTE,u.whitelist!=null&&(this.whitelist=u.whitelist)}return s.keys=function(l){return[].map.call(l.attributes,function(c){return c.name})},s.prototype.add=function(l,c){return this.canAdd(l,c)?(l.setAttribute(this.keyName,c),!0):!1},s.prototype.canAdd=function(l,c){var u=a.query(l,a.Scope.BLOT&(this.scope|a.Scope.TYPE));return u==null?!1:this.whitelist==null?!0:typeof c=="string"?this.whitelist.indexOf(c.replace(/["']/g,""))>-1:this.whitelist.indexOf(c)>-1},s.prototype.remove=function(l){l.removeAttribute(this.keyName)},s.prototype.value=function(l){var c=l.getAttribute(this.keyName);return this.canAdd(l,c)&&c?c:""},s}();r.default=o},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.Code=void 0;var a=function(){function T(A,I){var R=[],N=!0,P=!1,L=void 0;try{for(var $=A[Symbol.iterator](),D;!(N=(D=$.next()).done)&&(R.push(D.value),!(I&&R.length===I));N=!0);}catch(z){P=!0,L=z}finally{try{!N&&$.return&&$.return()}finally{if(P)throw L}}return R}return function(A,I){if(Array.isArray(A))return A;if(Symbol.iterator in Object(A))return T(A,I);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function T(A,I){for(var R=0;R<I.length;R++){var N=I[R];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(A,N.key,N)}}return function(A,I,R){return I&&T(A.prototype,I),R&&T(A,R),A}}(),s=function T(A,I,R){A===null&&(A=Function.prototype);var N=Object.getOwnPropertyDescriptor(A,I);if(N===void 0){var P=Object.getPrototypeOf(A);return P===null?void 0:T(P,I,R)}else{if("value"in N)return N.value;var L=N.get;return L===void 0?void 0:L.call(R)}},l=i(2),c=y(l),u=i(0),d=y(u),f=i(4),p=y(f),h=i(6),m=y(h),g=i(7),v=y(g);function y(T){return T&&T.__esModule?T:{default:T}}function _(T,A){if(!(T instanceof A))throw new TypeError("Cannot call a class as a function")}function S(T,A){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A&&(typeof A=="object"||typeof A=="function")?A:T}function C(T,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof A);T.prototype=Object.create(A&&A.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),A&&(Object.setPrototypeOf?Object.setPrototypeOf(T,A):T.__proto__=A)}var w=function(T){C(A,T);function A(){return _(this,A),S(this,(A.__proto__||Object.getPrototypeOf(A)).apply(this,arguments))}return A}(m.default);w.blotName="code",w.tagName="CODE";var x=function(T){C(A,T);function A(){return _(this,A),S(this,(A.__proto__||Object.getPrototypeOf(A)).apply(this,arguments))}return o(A,[{key:"delta",value:function(){var R=this,N=this.domNode.textContent;return N.endsWith(`
`)&&(N=N.slice(0,-1)),N.split(`
`).reduce(function(P,L){return P.insert(L).insert(`
`,R.formats())},new c.default)}},{key:"format",value:function(R,N){if(!(R===this.statics.blotName&&N)){var P=this.descendant(v.default,this.length()-1),L=a(P,1),$=L[0];$?.deleteAt($.length()-1,1),s(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"format",this).call(this,R,N)}}},{key:"formatAt",value:function(R,N,P,L){if(N!==0&&!(d.default.query(P,d.default.Scope.BLOCK)==null||P===this.statics.blotName&&L===this.statics.formats(this.domNode))){var $=this.newlineIndex(R);if(!($<0||$>=R+N)){var D=this.newlineIndex(R,!0)+1,z=$-D+1,U=this.isolate(D,z),H=U.next;U.format(P,L),H instanceof A&&H.formatAt(0,R-D+N-z,P,L)}}}},{key:"insertAt",value:function(R,N,P){if(P==null){var L=this.descendant(v.default,R),$=a(L,2),D=$[0],z=$[1];D.insertAt(z,N)}}},{key:"length",value:function(){var R=this.domNode.textContent.length;return this.domNode.textContent.endsWith(`
`)?R:R+1}},{key:"newlineIndex",value:function(R){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(N)return this.domNode.textContent.slice(0,R).lastIndexOf(`
`);var P=this.domNode.textContent.slice(R).indexOf(`
`);return P>-1?R+P:-1}},{key:"optimize",value:function(R){this.domNode.textContent.endsWith(`
`)||this.appendChild(d.default.create("text",`
`)),s(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"optimize",this).call(this,R);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(R),N.moveChildren(this),N.remove())}},{key:"replace",value:function(R){s(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"replace",this).call(this,R),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(N){var P=d.default.find(N);P==null?N.parentNode.removeChild(N):P instanceof d.default.Embed?P.remove():P.unwrap()})}}],[{key:"create",value:function(R){var N=s(A.__proto__||Object.getPrototypeOf(A),"create",this).call(this,R);return N.setAttribute("spellcheck",!1),N}},{key:"formats",value:function(){return!0}}]),A}(p.default);x.blotName="code-block",x.tagName="PRE",x.TAB="  ",r.Code=w,r.default=x},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(H){return typeof H}:function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H},o=function(){function H(M,B){var k=[],F=!0,G=!1,q=void 0;try{for(var W=M[Symbol.iterator](),K;!(F=(K=W.next()).done)&&(k.push(K.value),!(B&&k.length===B));F=!0);}catch(J){G=!0,q=J}finally{try{!F&&W.return&&W.return()}finally{if(G)throw q}}return k}return function(M,B){if(Array.isArray(M))return M;if(Symbol.iterator in Object(M))return H(M,B);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function H(M,B){for(var k=0;k<B.length;k++){var F=B[k];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(M,F.key,F)}}return function(M,B,k){return B&&H(M.prototype,B),k&&H(M,k),M}}(),l=i(2),c=N(l),u=i(20),d=N(u),f=i(0),p=N(f),h=i(13),m=N(h),g=i(24),v=N(g),y=i(4),_=N(y),S=i(16),C=N(S),w=i(21),x=N(w),T=i(11),A=N(T),I=i(3),R=N(I);function N(H){return H&&H.__esModule?H:{default:H}}function P(H,M,B){return M in H?Object.defineProperty(H,M,{value:B,enumerable:!0,configurable:!0,writable:!0}):H[M]=B,H}function L(H,M){if(!(H instanceof M))throw new TypeError("Cannot call a class as a function")}var $=/^[ -~]*$/,D=function(){function H(M){L(this,H),this.scroll=M,this.delta=this.getDelta()}return s(H,[{key:"applyDelta",value:function(B){var k=this,F=!1;this.scroll.update();var G=this.scroll.length();return this.scroll.batchStart(),B=U(B),B.reduce(function(q,W){var K=W.retain||W.delete||W.insert.length||1,J=W.attributes||{};if(W.insert!=null){if(typeof W.insert=="string"){var te=W.insert;te.endsWith(`
`)&&F&&(F=!1,te=te.slice(0,-1)),q>=G&&!te.endsWith(`
`)&&(F=!0),k.scroll.insertAt(q,te);var ae=k.scroll.line(q),re=o(ae,2),ue=re[0],de=re[1],fe=(0,R.default)({},(0,y.bubbleFormats)(ue));if(ue instanceof _.default){var ge=ue.descendant(p.default.Leaf,de),oe=o(ge,1),Ee=oe[0];fe=(0,R.default)(fe,(0,y.bubbleFormats)(Ee))}J=d.default.attributes.diff(fe,J)||{}}else if(a(W.insert)==="object"){var ce=Object.keys(W.insert)[0];if(ce==null)return q;k.scroll.insertAt(q,ce,W.insert[ce])}G+=K}return Object.keys(J).forEach(function(he){k.scroll.formatAt(q,K,he,J[he])}),q+K},0),B.reduce(function(q,W){return typeof W.delete=="number"?(k.scroll.deleteAt(q,W.delete),q):q+(W.retain||W.insert.length||1)},0),this.scroll.batchEnd(),this.update(B)}},{key:"deleteText",value:function(B,k){return this.scroll.deleteAt(B,k),this.update(new c.default().retain(B).delete(k))}},{key:"formatLine",value:function(B,k){var F=this,G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(G).forEach(function(q){if(!(F.scroll.whitelist!=null&&!F.scroll.whitelist[q])){var W=F.scroll.lines(B,Math.max(k,1)),K=k;W.forEach(function(J){var te=J.length();if(!(J instanceof m.default))J.format(q,G[q]);else{var ae=B-J.offset(F.scroll),re=J.newlineIndex(ae+K)-ae+1;J.formatAt(ae,re,q,G[q])}K-=te})}}),this.scroll.optimize(),this.update(new c.default().retain(B).retain(k,(0,x.default)(G)))}},{key:"formatText",value:function(B,k){var F=this,G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(G).forEach(function(q){F.scroll.formatAt(B,k,q,G[q])}),this.update(new c.default().retain(B).retain(k,(0,x.default)(G)))}},{key:"getContents",value:function(B,k){return this.delta.slice(B,B+k)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(B,k){return B.concat(k.delta())},new c.default)}},{key:"getFormat",value:function(B){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,F=[],G=[];k===0?this.scroll.path(B).forEach(function(W){var K=o(W,1),J=K[0];J instanceof _.default?F.push(J):J instanceof p.default.Leaf&&G.push(J)}):(F=this.scroll.lines(B,k),G=this.scroll.descendants(p.default.Leaf,B,k));var q=[F,G].map(function(W){if(W.length===0)return{};for(var K=(0,y.bubbleFormats)(W.shift());Object.keys(K).length>0;){var J=W.shift();if(J==null)return K;K=z((0,y.bubbleFormats)(J),K)}return K});return R.default.apply(R.default,q)}},{key:"getText",value:function(B,k){return this.getContents(B,k).filter(function(F){return typeof F.insert=="string"}).map(function(F){return F.insert}).join("")}},{key:"insertEmbed",value:function(B,k,F){return this.scroll.insertAt(B,k,F),this.update(new c.default().retain(B).insert(P({},k,F)))}},{key:"insertText",value:function(B,k){var F=this,G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return k=k.replace(/\r\n/g,`
`).replace(/\r/g,`
`),this.scroll.insertAt(B,k),Object.keys(G).forEach(function(q){F.scroll.formatAt(B,k.length,q,G[q])}),this.update(new c.default().retain(B).insert(k,(0,x.default)(G)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var B=this.scroll.children.head;return B.statics.blotName!==_.default.blotName||B.children.length>1?!1:B.children.head instanceof C.default}},{key:"removeFormat",value:function(B,k){var F=this.getText(B,k),G=this.scroll.line(B+k),q=o(G,2),W=q[0],K=q[1],J=0,te=new c.default;W!=null&&(W instanceof m.default?J=W.newlineIndex(K)-K+1:J=W.length()-K,te=W.delta().slice(K,K+J-1).insert(`
`));var ae=this.getContents(B,k+J),re=ae.diff(new c.default().insert(F).concat(te)),ue=new c.default().retain(B).concat(re);return this.applyDelta(ue)}},{key:"update",value:function(B){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,G=this.delta;if(k.length===1&&k[0].type==="characterData"&&k[0].target.data.match($)&&p.default.find(k[0].target)){var q=p.default.find(k[0].target),W=(0,y.bubbleFormats)(q),K=q.offset(this.scroll),J=k[0].oldValue.replace(v.default.CONTENTS,""),te=new c.default().insert(J),ae=new c.default().insert(q.value()),re=new c.default().retain(K).concat(te.diff(ae,F));B=re.reduce(function(ue,de){return de.insert?ue.insert(de.insert,W):ue.push(de)},new c.default),this.delta=G.compose(B)}else this.delta=this.getDelta(),(!B||!(0,A.default)(G.compose(B),this.delta))&&(B=G.diff(this.delta,F));return B}}]),H}();function z(H,M){return Object.keys(M).reduce(function(B,k){return H[k]==null||(M[k]===H[k]?B[k]=M[k]:Array.isArray(M[k])?M[k].indexOf(H[k])<0&&(B[k]=M[k].concat([H[k]])):B[k]=[M[k],H[k]]),B},{})}function U(H){return H.reduce(function(M,B){if(B.insert===1){var k=(0,x.default)(B.attributes);return delete k.image,M.insert({image:B.attributes.image},k)}if(B.attributes!=null&&(B.attributes.list===!0||B.attributes.bullet===!0)&&(B=(0,x.default)(B),B.attributes.list?B.attributes.list="ordered":(B.attributes.list="bullet",delete B.attributes.bullet)),typeof B.insert=="string"){var F=B.insert.replace(/\r\n/g,`
`).replace(/\r/g,`
`);return M.insert(F,B.attributes)}return M.push(B)},new c.default)}r.default=D},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.Range=void 0;var a=function(){function T(A,I){var R=[],N=!0,P=!1,L=void 0;try{for(var $=A[Symbol.iterator](),D;!(N=(D=$.next()).done)&&(R.push(D.value),!(I&&R.length===I));N=!0);}catch(z){P=!0,L=z}finally{try{!N&&$.return&&$.return()}finally{if(P)throw L}}return R}return function(A,I){if(Array.isArray(A))return A;if(Symbol.iterator in Object(A))return T(A,I);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function T(A,I){for(var R=0;R<I.length;R++){var N=I[R];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(A,N.key,N)}}return function(A,I,R){return I&&T(A.prototype,I),R&&T(A,R),A}}(),s=i(0),l=v(s),c=i(21),u=v(c),d=i(11),f=v(d),p=i(8),h=v(p),m=i(10),g=v(m);function v(T){return T&&T.__esModule?T:{default:T}}function y(T){if(Array.isArray(T)){for(var A=0,I=Array(T.length);A<T.length;A++)I[A]=T[A];return I}else return Array.from(T)}function _(T,A){if(!(T instanceof A))throw new TypeError("Cannot call a class as a function")}var S=(0,g.default)("quill:selection"),C=function T(A){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;_(this,T),this.index=A,this.length=I},w=function(){function T(A,I){var R=this;_(this,T),this.emitter=I,this.scroll=A,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=l.default.create("cursor",this),this.lastRange=this.savedRange=new C(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){R.mouseDown||setTimeout(R.update.bind(R,h.default.sources.USER),1)}),this.emitter.on(h.default.events.EDITOR_CHANGE,function(N,P){N===h.default.events.TEXT_CHANGE&&P.length()>0&&R.update(h.default.sources.SILENT)}),this.emitter.on(h.default.events.SCROLL_BEFORE_UPDATE,function(){if(R.hasFocus()){var N=R.getNativeRange();N!=null&&N.start.node!==R.cursor.textNode&&R.emitter.once(h.default.events.SCROLL_UPDATE,function(){try{R.setNativeRange(N.start.node,N.start.offset,N.end.node,N.end.offset)}catch{}})}}),this.emitter.on(h.default.events.SCROLL_OPTIMIZE,function(N,P){if(P.range){var L=P.range,$=L.startNode,D=L.startOffset,z=L.endNode,U=L.endOffset;R.setNativeRange($,D,z,U)}}),this.update(h.default.sources.SILENT)}return o(T,[{key:"handleComposition",value:function(){var I=this;this.root.addEventListener("compositionstart",function(){I.composing=!0}),this.root.addEventListener("compositionend",function(){if(I.composing=!1,I.cursor.parent){var R=I.cursor.restore();if(!R)return;setTimeout(function(){I.setNativeRange(R.startNode,R.startOffset,R.endNode,R.endOffset)},1)}})}},{key:"handleDragging",value:function(){var I=this;this.emitter.listenDOM("mousedown",document.body,function(){I.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){I.mouseDown=!1,I.update(h.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(I,R){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[I])){this.scroll.update();var N=this.getNativeRange();if(!(N==null||!N.native.collapsed||l.default.query(I,l.default.Scope.BLOCK))){if(N.start.node!==this.cursor.textNode){var P=l.default.find(N.start.node,!1);if(P==null)return;if(P instanceof l.default.Leaf){var L=P.split(N.start.offset);P.parent.insertBefore(this.cursor,L)}else P.insertBefore(this.cursor,N.start.node);this.cursor.attach()}this.cursor.format(I,R),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(I){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,N=this.scroll.length();I=Math.min(I,N-1),R=Math.min(I+R,N-1)-I;var P=void 0,L=this.scroll.leaf(I),$=a(L,2),D=$[0],z=$[1];if(D==null)return null;var U=D.position(z,!0),H=a(U,2);P=H[0],z=H[1];var M=document.createRange();if(R>0){M.setStart(P,z);var B=this.scroll.leaf(I+R),k=a(B,2);if(D=k[0],z=k[1],D==null)return null;var F=D.position(z,!0),G=a(F,2);return P=G[0],z=G[1],M.setEnd(P,z),M.getBoundingClientRect()}else{var q="left",W=void 0;return P instanceof Text?(z<P.data.length?(M.setStart(P,z),M.setEnd(P,z+1)):(M.setStart(P,z-1),M.setEnd(P,z),q="right"),W=M.getBoundingClientRect()):(W=D.domNode.getBoundingClientRect(),z>0&&(q="right")),{bottom:W.top+W.height,height:W.height,left:W[q],right:W[q],top:W.top,width:0}}}},{key:"getNativeRange",value:function(){var I=document.getSelection();if(I==null||I.rangeCount<=0)return null;var R=I.getRangeAt(0);if(R==null)return null;var N=this.normalizeNative(R);return S.info("getNativeRange",N),N}},{key:"getRange",value:function(){var I=this.getNativeRange();if(I==null)return[null,null];var R=this.normalizedToRange(I);return[R,I]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(I){var R=this,N=[[I.start.node,I.start.offset]];I.native.collapsed||N.push([I.end.node,I.end.offset]);var P=N.map(function(D){var z=a(D,2),U=z[0],H=z[1],M=l.default.find(U,!0),B=M.offset(R.scroll);return H===0?B:M instanceof l.default.Container?B+M.length():B+M.index(U,H)}),L=Math.min(Math.max.apply(Math,y(P)),this.scroll.length()-1),$=Math.min.apply(Math,[L].concat(y(P)));return new C($,L-$)}},{key:"normalizeNative",value:function(I){if(!x(this.root,I.startContainer)||!I.collapsed&&!x(this.root,I.endContainer))return null;var R={start:{node:I.startContainer,offset:I.startOffset},end:{node:I.endContainer,offset:I.endOffset},native:I};return[R.start,R.end].forEach(function(N){for(var P=N.node,L=N.offset;!(P instanceof Text)&&P.childNodes.length>0;)if(P.childNodes.length>L)P=P.childNodes[L],L=0;else if(P.childNodes.length===L)P=P.lastChild,L=P instanceof Text?P.data.length:P.childNodes.length+1;else break;N.node=P,N.offset=L}),R}},{key:"rangeToNative",value:function(I){var R=this,N=I.collapsed?[I.index]:[I.index,I.index+I.length],P=[],L=this.scroll.length();return N.forEach(function($,D){$=Math.min(L-1,$);var z=void 0,U=R.scroll.leaf($),H=a(U,2),M=H[0],B=H[1],k=M.position(B,D!==0),F=a(k,2);z=F[0],B=F[1],P.push(z,B)}),P.length<2&&(P=P.concat(P)),P}},{key:"scrollIntoView",value:function(I){var R=this.lastRange;if(R!=null){var N=this.getBounds(R.index,R.length);if(N!=null){var P=this.scroll.length()-1,L=this.scroll.line(Math.min(R.index,P)),$=a(L,1),D=$[0],z=D;if(R.length>0){var U=this.scroll.line(Math.min(R.index+R.length,P)),H=a(U,1);z=H[0]}if(!(D==null||z==null)){var M=I.getBoundingClientRect();N.top<M.top?I.scrollTop-=M.top-N.top:N.bottom>M.bottom&&(I.scrollTop+=N.bottom-M.bottom)}}}}},{key:"setNativeRange",value:function(I,R){var N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:I,P=arguments.length>3&&arguments[3]!==void 0?arguments[3]:R,L=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(S.info("setNativeRange",I,R,N,P),!(I!=null&&(this.root.parentNode==null||I.parentNode==null||N.parentNode==null))){var $=document.getSelection();if($!=null)if(I!=null){this.hasFocus()||this.root.focus();var D=(this.getNativeRange()||{}).native;if(D==null||L||I!==D.startContainer||R!==D.startOffset||N!==D.endContainer||P!==D.endOffset){I.tagName=="BR"&&(R=[].indexOf.call(I.parentNode.childNodes,I),I=I.parentNode),N.tagName=="BR"&&(P=[].indexOf.call(N.parentNode.childNodes,N),N=N.parentNode);var z=document.createRange();z.setStart(I,R),z.setEnd(N,P),$.removeAllRanges(),$.addRange(z)}}else $.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(I){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:h.default.sources.API;if(typeof R=="string"&&(N=R,R=!1),S.info("setRange",I),I!=null){var P=this.rangeToNative(I);this.setNativeRange.apply(this,y(P).concat([R]))}else this.setNativeRange(null);this.update(N)}},{key:"update",value:function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:h.default.sources.USER,R=this.lastRange,N=this.getRange(),P=a(N,2),L=P[0],$=P[1];if(this.lastRange=L,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,f.default)(R,this.lastRange)){var D;!this.composing&&$!=null&&$.native.collapsed&&$.start.node!==this.cursor.textNode&&this.cursor.restore();var z=[h.default.events.SELECTION_CHANGE,(0,u.default)(this.lastRange),(0,u.default)(R),I];if((D=this.emitter).emit.apply(D,[h.default.events.EDITOR_CHANGE].concat(z)),I!==h.default.sources.SILENT){var U;(U=this.emitter).emit.apply(U,z)}}}}]),T}();function x(T,A){try{A.parentNode}catch{return!1}return A instanceof Text&&(A=A.parentNode),T.contains(A)}r.Range=C,r.default=w},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function h(m,g){for(var v=0;v<g.length;v++){var y=g[v];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(m,y.key,y)}}return function(m,g,v){return g&&h(m.prototype,g),v&&h(m,v),m}}(),o=function h(m,g,v){m===null&&(m=Function.prototype);var y=Object.getOwnPropertyDescriptor(m,g);if(y===void 0){var _=Object.getPrototypeOf(m);return _===null?void 0:h(_,g,v)}else{if("value"in y)return y.value;var S=y.get;return S===void 0?void 0:S.call(v)}},s=i(0),l=c(s);function c(h){return h&&h.__esModule?h:{default:h}}function u(h,m){if(!(h instanceof m))throw new TypeError("Cannot call a class as a function")}function d(h,m){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:h}function f(h,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);h.prototype=Object.create(m&&m.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(h,m):h.__proto__=m)}var p=function(h){f(m,h);function m(){return u(this,m),d(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return a(m,[{key:"insertInto",value:function(v,y){v.children.length===0?o(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"insertInto",this).call(this,v,y):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),m}(l.default.Embed);p.blotName="break",p.tagName="BR",r.default=p},function(n,r,i){var a=this&&this.__extends||function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,p){f.__proto__=p}||function(f,p){for(var h in p)p.hasOwnProperty(h)&&(f[h]=p[h])};return function(f,p){d(f,p);function h(){this.constructor=f}f.prototype=p===null?Object.create(p):(h.prototype=p.prototype,new h)}}();Object.defineProperty(r,"__esModule",{value:!0});var o=i(44),s=i(30),l=i(1),c=function(d){a(f,d);function f(p){var h=d.call(this,p)||this;return h.build(),h}return f.prototype.appendChild=function(p){this.insertBefore(p)},f.prototype.attach=function(){d.prototype.attach.call(this),this.children.forEach(function(p){p.attach()})},f.prototype.build=function(){var p=this;this.children=new o.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(h){try{var m=u(h);p.insertBefore(m,p.children.head||void 0)}catch(g){if(g instanceof l.ParchmentError)return;throw g}})},f.prototype.deleteAt=function(p,h){if(p===0&&h===this.length())return this.remove();this.children.forEachAt(p,h,function(m,g,v){m.deleteAt(g,v)})},f.prototype.descendant=function(p,h){var m=this.children.find(h),g=m[0],v=m[1];return p.blotName==null&&p(g)||p.blotName!=null&&g instanceof p?[g,v]:g instanceof f?g.descendant(p,v):[null,-1]},f.prototype.descendants=function(p,h,m){h===void 0&&(h=0),m===void 0&&(m=Number.MAX_VALUE);var g=[],v=m;return this.children.forEachAt(h,m,function(y,_,S){(p.blotName==null&&p(y)||p.blotName!=null&&y instanceof p)&&g.push(y),y instanceof f&&(g=g.concat(y.descendants(p,_,v))),v-=S}),g},f.prototype.detach=function(){this.children.forEach(function(p){p.detach()}),d.prototype.detach.call(this)},f.prototype.formatAt=function(p,h,m,g){this.children.forEachAt(p,h,function(v,y,_){v.formatAt(y,_,m,g)})},f.prototype.insertAt=function(p,h,m){var g=this.children.find(p),v=g[0],y=g[1];if(v)v.insertAt(y,h,m);else{var _=m==null?l.create("text",h):l.create(h,m);this.appendChild(_)}},f.prototype.insertBefore=function(p,h){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(m){return p instanceof m}))throw new l.ParchmentError("Cannot insert "+p.statics.blotName+" into "+this.statics.blotName);p.insertInto(this,h)},f.prototype.length=function(){return this.children.reduce(function(p,h){return p+h.length()},0)},f.prototype.moveChildren=function(p,h){this.children.forEach(function(m){p.insertBefore(m,h)})},f.prototype.optimize=function(p){if(d.prototype.optimize.call(this,p),this.children.length===0)if(this.statics.defaultChild!=null){var h=l.create(this.statics.defaultChild);this.appendChild(h),h.optimize(p)}else this.remove()},f.prototype.path=function(p,h){h===void 0&&(h=!1);var m=this.children.find(p,h),g=m[0],v=m[1],y=[[this,p]];return g instanceof f?y.concat(g.path(v,h)):(g!=null&&y.push([g,v]),y)},f.prototype.removeChild=function(p){this.children.remove(p)},f.prototype.replace=function(p){p instanceof f&&p.moveChildren(this),d.prototype.replace.call(this,p)},f.prototype.split=function(p,h){if(h===void 0&&(h=!1),!h){if(p===0)return this;if(p===this.length())return this.next}var m=this.clone();return this.parent.insertBefore(m,this.next),this.children.forEachAt(p,this.length(),function(g,v,y){g=g.split(v,h),m.appendChild(g)}),m},f.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},f.prototype.update=function(p,h){var m=this,g=[],v=[];p.forEach(function(y){y.target===m.domNode&&y.type==="childList"&&(g.push.apply(g,y.addedNodes),v.push.apply(v,y.removedNodes))}),v.forEach(function(y){if(!(y.parentNode!=null&&y.tagName!=="IFRAME"&&document.body.compareDocumentPosition(y)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var _=l.find(y);_!=null&&(_.domNode.parentNode==null||_.domNode.parentNode===m.domNode)&&_.detach()}}),g.filter(function(y){return y.parentNode==m.domNode}).sort(function(y,_){return y===_?0:y.compareDocumentPosition(_)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(y){var _=null;y.nextSibling!=null&&(_=l.find(y.nextSibling));var S=u(y);(S.next!=_||S.next==null)&&(S.parent!=null&&S.parent.removeChild(m),m.insertBefore(S,_||void 0))})},f}(s.default);function u(d){var f=l.find(d);if(f==null)try{f=l.create(d)}catch{f=l.create(l.Scope.INLINE),[].slice.call(d.childNodes).forEach(function(h){f.domNode.appendChild(h)}),d.parentNode&&d.parentNode.replaceChild(f.domNode,d),f.attach()}return f}r.default=c},function(n,r,i){var a=this&&this.__extends||function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,p){f.__proto__=p}||function(f,p){for(var h in p)p.hasOwnProperty(h)&&(f[h]=p[h])};return function(f,p){d(f,p);function h(){this.constructor=f}f.prototype=p===null?Object.create(p):(h.prototype=p.prototype,new h)}}();Object.defineProperty(r,"__esModule",{value:!0});var o=i(12),s=i(31),l=i(17),c=i(1),u=function(d){a(f,d);function f(p){var h=d.call(this,p)||this;return h.attributes=new s.default(h.domNode),h}return f.formats=function(p){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return p.tagName.toLowerCase()},f.prototype.format=function(p,h){var m=c.query(p);m instanceof o.default?this.attributes.attribute(m,h):h&&m!=null&&(p!==this.statics.blotName||this.formats()[p]!==h)&&this.replaceWith(p,h)},f.prototype.formats=function(){var p=this.attributes.values(),h=this.statics.formats(this.domNode);return h!=null&&(p[this.statics.blotName]=h),p},f.prototype.replaceWith=function(p,h){var m=d.prototype.replaceWith.call(this,p,h);return this.attributes.copy(m),m},f.prototype.update=function(p,h){var m=this;d.prototype.update.call(this,p,h),p.some(function(g){return g.target===m.domNode&&g.type==="attributes"})&&this.attributes.build()},f.prototype.wrap=function(p,h){var m=d.prototype.wrap.call(this,p,h);return m instanceof f&&m.statics.scope===this.statics.scope&&this.attributes.move(m),m},f}(l.default);r.default=u},function(n,r,i){var a=this&&this.__extends||function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,d){u.__proto__=d}||function(u,d){for(var f in d)d.hasOwnProperty(f)&&(u[f]=d[f])};return function(u,d){c(u,d);function f(){this.constructor=u}u.prototype=d===null?Object.create(d):(f.prototype=d.prototype,new f)}}();Object.defineProperty(r,"__esModule",{value:!0});var o=i(30),s=i(1),l=function(c){a(u,c);function u(){return c!==null&&c.apply(this,arguments)||this}return u.value=function(d){return!0},u.prototype.index=function(d,f){return this.domNode===d||this.domNode.compareDocumentPosition(d)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(f,1):-1},u.prototype.position=function(d,f){var p=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return d>0&&(p+=1),[this.parent.domNode,p]},u.prototype.value=function(){var d;return d={},d[this.statics.blotName]=this.statics.value(this.domNode)||!0,d},u.scope=s.Scope.INLINE_BLOT,u}(o.default);r.default=l},function(n,r,i){var a=i(11),o=i(3),s={attributes:{compose:function(c,u,d){typeof c!="object"&&(c={}),typeof u!="object"&&(u={});var f=o(!0,{},u);d||(f=Object.keys(f).reduce(function(h,m){return f[m]!=null&&(h[m]=f[m]),h},{}));for(var p in c)c[p]!==void 0&&u[p]===void 0&&(f[p]=c[p]);return Object.keys(f).length>0?f:void 0},diff:function(c,u){typeof c!="object"&&(c={}),typeof u!="object"&&(u={});var d=Object.keys(c).concat(Object.keys(u)).reduce(function(f,p){return a(c[p],u[p])||(f[p]=u[p]===void 0?null:u[p]),f},{});return Object.keys(d).length>0?d:void 0},transform:function(c,u,d){if(typeof c!="object")return u;if(typeof u=="object"){if(!d)return u;var f=Object.keys(u).reduce(function(p,h){return c[h]===void 0&&(p[h]=u[h]),p},{});return Object.keys(f).length>0?f:void 0}}},iterator:function(c){return new l(c)},length:function(c){return typeof c.delete=="number"?c.delete:typeof c.retain=="number"?c.retain:typeof c.insert=="string"?c.insert.length:1}};function l(c){this.ops=c,this.index=0,this.offset=0}l.prototype.hasNext=function(){return this.peekLength()<1/0},l.prototype.next=function(c){c||(c=1/0);var u=this.ops[this.index];if(u){var d=this.offset,f=s.length(u);if(c>=f-d?(c=f-d,this.index+=1,this.offset=0):this.offset+=c,typeof u.delete=="number")return{delete:c};var p={};return u.attributes&&(p.attributes=u.attributes),typeof u.retain=="number"?p.retain=c:typeof u.insert=="string"?p.insert=u.insert.substr(d,c):p.insert=u.insert,p}else return{retain:1/0}},l.prototype.peek=function(){return this.ops[this.index]},l.prototype.peekLength=function(){return this.ops[this.index]?s.length(this.ops[this.index])-this.offset:1/0},l.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"},l.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var c=this.offset,u=this.index,d=this.next(),f=this.ops.slice(this.index);return this.offset=c,this.index=u,[d].concat(f)}else return[]},n.exports=s},function(n,r){var i=function(){function a(m,g){return g!=null&&m instanceof g}var o;try{o=Map}catch{o=function(){}}var s;try{s=Set}catch{s=function(){}}var l;try{l=Promise}catch{l=function(){}}function c(m,g,v,y,_){typeof g=="object"&&(v=g.depth,y=g.prototype,_=g.includeNonEnumerable,g=g.circular);var S=[],C=[],w=typeof Buffer<"u";typeof g>"u"&&(g=!0),typeof v>"u"&&(v=1/0);function x(T,A){if(T===null)return null;if(A===0)return T;var I,R;if(typeof T!="object")return T;if(a(T,o))I=new o;else if(a(T,s))I=new s;else if(a(T,l))I=new l(function(M,B){T.then(function(k){M(x(k,A-1))},function(k){B(x(k,A-1))})});else if(c.__isArray(T))I=[];else if(c.__isRegExp(T))I=new RegExp(T.source,h(T)),T.lastIndex&&(I.lastIndex=T.lastIndex);else if(c.__isDate(T))I=new Date(T.getTime());else{if(w&&Buffer.isBuffer(T))return Buffer.allocUnsafe?I=Buffer.allocUnsafe(T.length):I=new Buffer(T.length),T.copy(I),I;a(T,Error)?I=Object.create(T):typeof y>"u"?(R=Object.getPrototypeOf(T),I=Object.create(R)):(I=Object.create(y),R=y)}if(g){var N=S.indexOf(T);if(N!=-1)return C[N];S.push(T),C.push(I)}a(T,o)&&T.forEach(function(M,B){var k=x(B,A-1),F=x(M,A-1);I.set(k,F)}),a(T,s)&&T.forEach(function(M){var B=x(M,A-1);I.add(B)});for(var P in T){var L;R&&(L=Object.getOwnPropertyDescriptor(R,P)),!(L&&L.set==null)&&(I[P]=x(T[P],A-1))}if(Object.getOwnPropertySymbols)for(var $=Object.getOwnPropertySymbols(T),P=0;P<$.length;P++){var D=$[P],z=Object.getOwnPropertyDescriptor(T,D);z&&!z.enumerable&&!_||(I[D]=x(T[D],A-1),z.enumerable||Object.defineProperty(I,D,{enumerable:!1}))}if(_)for(var U=Object.getOwnPropertyNames(T),P=0;P<U.length;P++){var H=U[P],z=Object.getOwnPropertyDescriptor(T,H);z&&z.enumerable||(I[H]=x(T[H],A-1),Object.defineProperty(I,H,{enumerable:!1}))}return I}return x(m,v)}c.clonePrototype=function(g){if(g===null)return null;var v=function(){};return v.prototype=g,new v};function u(m){return Object.prototype.toString.call(m)}c.__objToStr=u;function d(m){return typeof m=="object"&&u(m)==="[object Date]"}c.__isDate=d;function f(m){return typeof m=="object"&&u(m)==="[object Array]"}c.__isArray=f;function p(m){return typeof m=="object"&&u(m)==="[object RegExp]"}c.__isRegExp=p;function h(m){var g="";return m.global&&(g+="g"),m.ignoreCase&&(g+="i"),m.multiline&&(g+="m"),g}return c.__getRegExpFlags=h,c}();typeof n=="object"&&n.exports&&(n.exports=i)},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function I(R,N){var P=[],L=!0,$=!1,D=void 0;try{for(var z=R[Symbol.iterator](),U;!(L=(U=z.next()).done)&&(P.push(U.value),!(N&&P.length===N));L=!0);}catch(H){$=!0,D=H}finally{try{!L&&z.return&&z.return()}finally{if($)throw D}}return P}return function(R,N){if(Array.isArray(R))return R;if(Symbol.iterator in Object(R))return I(R,N);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function I(R,N){for(var P=0;P<N.length;P++){var L=N[P];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(R,L.key,L)}}return function(R,N,P){return N&&I(R.prototype,N),P&&I(R,P),R}}(),s=function I(R,N,P){R===null&&(R=Function.prototype);var L=Object.getOwnPropertyDescriptor(R,N);if(L===void 0){var $=Object.getPrototypeOf(R);return $===null?void 0:I($,N,P)}else{if("value"in L)return L.value;var D=L.get;return D===void 0?void 0:D.call(P)}},l=i(0),c=S(l),u=i(8),d=S(u),f=i(4),p=S(f),h=i(16),m=S(h),g=i(13),v=S(g),y=i(25),_=S(y);function S(I){return I&&I.__esModule?I:{default:I}}function C(I,R){if(!(I instanceof R))throw new TypeError("Cannot call a class as a function")}function w(I,R){if(!I)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return R&&(typeof R=="object"||typeof R=="function")?R:I}function x(I,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof R);I.prototype=Object.create(R&&R.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),R&&(Object.setPrototypeOf?Object.setPrototypeOf(I,R):I.__proto__=R)}function T(I){return I instanceof p.default||I instanceof f.BlockEmbed}var A=function(I){x(R,I);function R(N,P){C(this,R);var L=w(this,(R.__proto__||Object.getPrototypeOf(R)).call(this,N));return L.emitter=P.emitter,Array.isArray(P.whitelist)&&(L.whitelist=P.whitelist.reduce(function($,D){return $[D]=!0,$},{})),L.domNode.addEventListener("DOMNodeInserted",function(){}),L.optimize(),L.enable(),L}return o(R,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(P,L){var $=this.line(P),D=a($,2),z=D[0],U=D[1],H=this.line(P+L),M=a(H,1),B=M[0];if(s(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"deleteAt",this).call(this,P,L),B!=null&&z!==B&&U>0){if(z instanceof f.BlockEmbed||B instanceof f.BlockEmbed){this.optimize();return}if(z instanceof v.default){var k=z.newlineIndex(z.length(),!0);if(k>-1&&(z=z.split(k+1),z===B)){this.optimize();return}}else if(B instanceof v.default){var F=B.newlineIndex(0);F>-1&&B.split(F+1)}var G=B.children.head instanceof m.default?null:B.children.head;z.moveChildren(B,G),z.remove()}this.optimize()}},{key:"enable",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",P)}},{key:"formatAt",value:function(P,L,$,D){this.whitelist!=null&&!this.whitelist[$]||(s(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"formatAt",this).call(this,P,L,$,D),this.optimize())}},{key:"insertAt",value:function(P,L,$){if(!($!=null&&this.whitelist!=null&&!this.whitelist[L])){if(P>=this.length())if($==null||c.default.query(L,c.default.Scope.BLOCK)==null){var D=c.default.create(this.statics.defaultChild);this.appendChild(D),$==null&&L.endsWith(`
`)&&(L=L.slice(0,-1)),D.insertAt(0,L,$)}else{var z=c.default.create(L,$);this.appendChild(z)}else s(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"insertAt",this).call(this,P,L,$);this.optimize()}}},{key:"insertBefore",value:function(P,L){if(P.statics.scope===c.default.Scope.INLINE_BLOT){var $=c.default.create(this.statics.defaultChild);$.appendChild(P),P=$}s(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"insertBefore",this).call(this,P,L)}},{key:"leaf",value:function(P){return this.path(P).pop()||[null,-1]}},{key:"line",value:function(P){return P===this.length()?this.line(P-1):this.descendant(T,P)}},{key:"lines",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,$=function D(z,U,H){var M=[],B=H;return z.children.forEachAt(U,H,function(k,F,G){T(k)?M.push(k):k instanceof c.default.Container&&(M=M.concat(D(k,F,B))),B-=G}),M};return $(this,P,L)}},{key:"optimize",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(s(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"optimize",this).call(this,P,L),P.length>0&&this.emitter.emit(d.default.events.SCROLL_OPTIMIZE,P,L))}},{key:"path",value:function(P){return s(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"path",this).call(this,P).slice(1)}},{key:"update",value:function(P){if(this.batch!==!0){var L=d.default.sources.USER;typeof P=="string"&&(L=P),Array.isArray(P)||(P=this.observer.takeRecords()),P.length>0&&this.emitter.emit(d.default.events.SCROLL_BEFORE_UPDATE,L,P),s(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"update",this).call(this,P.concat([])),P.length>0&&this.emitter.emit(d.default.events.SCROLL_UPDATE,L,P)}}}]),R}(c.default.Scroll);A.blotName="scroll",A.className="ql-editor",A.tagName="DIV",A.defaultChild="block",A.allowedChildren=[p.default,f.BlockEmbed,_.default],r.default=A},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.SHORTKEY=r.default=void 0;var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(W){return typeof W}:function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},o=function(){function W(K,J){var te=[],ae=!0,re=!1,ue=void 0;try{for(var de=K[Symbol.iterator](),fe;!(ae=(fe=de.next()).done)&&(te.push(fe.value),!(J&&te.length===J));ae=!0);}catch(ge){re=!0,ue=ge}finally{try{!ae&&de.return&&de.return()}finally{if(re)throw ue}}return te}return function(K,J){if(Array.isArray(K))return K;if(Symbol.iterator in Object(K))return W(K,J);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function W(K,J){for(var te=0;te<J.length;te++){var ae=J[te];ae.enumerable=ae.enumerable||!1,ae.configurable=!0,"value"in ae&&(ae.writable=!0),Object.defineProperty(K,ae.key,ae)}}return function(K,J,te){return J&&W(K.prototype,J),te&&W(K,te),K}}(),l=i(21),c=I(l),u=i(11),d=I(u),f=i(3),p=I(f),h=i(2),m=I(h),g=i(20),v=I(g),y=i(0),_=I(y),S=i(5),C=I(S),w=i(10),x=I(w),T=i(9),A=I(T);function I(W){return W&&W.__esModule?W:{default:W}}function R(W,K,J){return K in W?Object.defineProperty(W,K,{value:J,enumerable:!0,configurable:!0,writable:!0}):W[K]=J,W}function N(W,K){if(!(W instanceof K))throw new TypeError("Cannot call a class as a function")}function P(W,K){if(!W)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return K&&(typeof K=="object"||typeof K=="function")?K:W}function L(W,K){if(typeof K!="function"&&K!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof K);W.prototype=Object.create(K&&K.prototype,{constructor:{value:W,enumerable:!1,writable:!0,configurable:!0}}),K&&(Object.setPrototypeOf?Object.setPrototypeOf(W,K):W.__proto__=K)}var $=(0,x.default)("quill:keyboard"),D=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",z=function(W){L(K,W),s(K,null,[{key:"match",value:function(te,ae){return ae=q(ae),["altKey","ctrlKey","metaKey","shiftKey"].some(function(re){return!!ae[re]!==te[re]&&ae[re]!==null})?!1:ae.key===(te.which||te.keyCode)}}]);function K(J,te){N(this,K);var ae=P(this,(K.__proto__||Object.getPrototypeOf(K)).call(this,J,te));return ae.bindings={},Object.keys(ae.options.bindings).forEach(function(re){re==="list autofill"&&J.scroll.whitelist!=null&&!J.scroll.whitelist.list||ae.options.bindings[re]&&ae.addBinding(ae.options.bindings[re])}),ae.addBinding({key:K.keys.ENTER,shiftKey:null},k),ae.addBinding({key:K.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(ae.addBinding({key:K.keys.BACKSPACE},{collapsed:!0},H),ae.addBinding({key:K.keys.DELETE},{collapsed:!0},M)):(ae.addBinding({key:K.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},H),ae.addBinding({key:K.keys.DELETE},{collapsed:!0,suffix:/^.?$/},M)),ae.addBinding({key:K.keys.BACKSPACE},{collapsed:!1},B),ae.addBinding({key:K.keys.DELETE},{collapsed:!1},B),ae.addBinding({key:K.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},H),ae.listen(),ae}return s(K,[{key:"addBinding",value:function(te){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ue=q(te);if(ue==null||ue.key==null)return $.warn("Attempted to add invalid keyboard binding",ue);typeof ae=="function"&&(ae={handler:ae}),typeof re=="function"&&(re={handler:re}),ue=(0,p.default)(ue,ae,re),this.bindings[ue.key]=this.bindings[ue.key]||[],this.bindings[ue.key].push(ue)}},{key:"listen",value:function(){var te=this;this.quill.root.addEventListener("keydown",function(ae){if(!ae.defaultPrevented){var re=ae.which||ae.keyCode,ue=(te.bindings[re]||[]).filter(function(je){return K.match(ae,je)});if(ue.length!==0){var de=te.quill.getSelection();if(!(de==null||!te.quill.hasFocus())){var fe=te.quill.getLine(de.index),ge=o(fe,2),oe=ge[0],Ee=ge[1],ce=te.quill.getLeaf(de.index),he=o(ce,2),ye=he[0],me=he[1],_e=de.length===0?[ye,me]:te.quill.getLeaf(de.index+de.length),Te=o(_e,2),xe=Te[0],De=Te[1],Pe=ye instanceof _.default.Text?ye.value().slice(0,me):"",Le=xe instanceof _.default.Text?xe.value().slice(De):"",ze={collapsed:de.length===0,empty:de.length===0&&oe.length()<=1,format:te.quill.getFormat(de),offset:Ee,prefix:Pe,suffix:Le},Be=ue.some(function(je){if(je.collapsed!=null&&je.collapsed!==ze.collapsed||je.empty!=null&&je.empty!==ze.empty||je.offset!=null&&je.offset!==ze.offset)return!1;if(Array.isArray(je.format)){if(je.format.every(function(Ye){return ze.format[Ye]==null}))return!1}else if(a(je.format)==="object"&&!Object.keys(je.format).every(function(Ye){return je.format[Ye]===!0?ze.format[Ye]!=null:je.format[Ye]===!1?ze.format[Ye]==null:(0,d.default)(je.format[Ye],ze.format[Ye])}))return!1;return je.prefix!=null&&!je.prefix.test(ze.prefix)||je.suffix!=null&&!je.suffix.test(ze.suffix)?!1:je.handler.call(te,de,ze)!==!0});Be&&ae.preventDefault()}}}})}}]),K}(A.default);z.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},z.DEFAULTS={bindings:{bold:G("bold"),italic:G("italic"),underline:G("underline"),indent:{key:z.keys.TAB,format:["blockquote","indent","list"],handler:function(K,J){if(J.collapsed&&J.offset!==0)return!0;this.quill.format("indent","+1",C.default.sources.USER)}},outdent:{key:z.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(K,J){if(J.collapsed&&J.offset!==0)return!0;this.quill.format("indent","-1",C.default.sources.USER)}},"outdent backspace":{key:z.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(K,J){J.format.indent!=null?this.quill.format("indent","-1",C.default.sources.USER):J.format.list!=null&&this.quill.format("list",!1,C.default.sources.USER)}},"indent code-block":F(!0),"outdent code-block":F(!1),"remove tab":{key:z.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(K){this.quill.deleteText(K.index-1,1,C.default.sources.USER)}},tab:{key:z.keys.TAB,handler:function(K){this.quill.history.cutoff();var J=new m.default().retain(K.index).delete(K.length).insert("	");this.quill.updateContents(J,C.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(K.index+1,C.default.sources.SILENT)}},"list empty enter":{key:z.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(K,J){this.quill.format("list",!1,C.default.sources.USER),J.format.indent&&this.quill.format("indent",!1,C.default.sources.USER)}},"checklist enter":{key:z.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(K){var J=this.quill.getLine(K.index),te=o(J,2),ae=te[0],re=te[1],ue=(0,p.default)({},ae.formats(),{list:"checked"}),de=new m.default().retain(K.index).insert(`
`,ue).retain(ae.length()-re-1).retain(1,{list:"unchecked"});this.quill.updateContents(de,C.default.sources.USER),this.quill.setSelection(K.index+1,C.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:z.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(K,J){var te=this.quill.getLine(K.index),ae=o(te,2),re=ae[0],ue=ae[1],de=new m.default().retain(K.index).insert(`
`,J.format).retain(re.length()-ue-1).retain(1,{header:null});this.quill.updateContents(de,C.default.sources.USER),this.quill.setSelection(K.index+1,C.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(K,J){var te=J.prefix.length,ae=this.quill.getLine(K.index),re=o(ae,2),ue=re[0],de=re[1];if(de>te)return!0;var fe=void 0;switch(J.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," ",C.default.sources.USER),this.quill.history.cutoff();var ge=new m.default().retain(K.index-de).delete(te+1).retain(ue.length()-2-de).retain(1,{list:fe});this.quill.updateContents(ge,C.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(K.index-te,C.default.sources.SILENT)}},"code exit":{key:z.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(K){var J=this.quill.getLine(K.index),te=o(J,2),ae=te[0],re=te[1],ue=new m.default().retain(K.index+ae.length()-re-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(ue,C.default.sources.USER)}},"embed left":U(z.keys.LEFT,!1),"embed left shift":U(z.keys.LEFT,!0),"embed right":U(z.keys.RIGHT,!1),"embed right shift":U(z.keys.RIGHT,!0)}};function U(W,K){var J,te=W===z.keys.LEFT?"prefix":"suffix";return J={key:W,shiftKey:K,altKey:null},R(J,te,/^$/),R(J,"handler",function(re){var ue=re.index;W===z.keys.RIGHT&&(ue+=re.length+1);var de=this.quill.getLeaf(ue),fe=o(de,1),ge=fe[0];return ge instanceof _.default.Embed?(W===z.keys.LEFT?K?this.quill.setSelection(re.index-1,re.length+1,C.default.sources.USER):this.quill.setSelection(re.index-1,C.default.sources.USER):K?this.quill.setSelection(re.index,re.length+1,C.default.sources.USER):this.quill.setSelection(re.index+re.length+1,C.default.sources.USER),!1):!0}),J}function H(W,K){if(!(W.index===0||this.quill.getLength()<=1)){var J=this.quill.getLine(W.index),te=o(J,1),ae=te[0],re={};if(K.offset===0){var ue=this.quill.getLine(W.index-1),de=o(ue,1),fe=de[0];if(fe!=null&&fe.length()>1){var ge=ae.formats(),oe=this.quill.getFormat(W.index-1,1);re=v.default.attributes.diff(ge,oe)||{}}}var Ee=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(K.prefix)?2:1;this.quill.deleteText(W.index-Ee,Ee,C.default.sources.USER),Object.keys(re).length>0&&this.quill.formatLine(W.index-Ee,Ee,re,C.default.sources.USER),this.quill.focus()}}function M(W,K){var J=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(K.suffix)?2:1;if(!(W.index>=this.quill.getLength()-J)){var te={},ae=0,re=this.quill.getLine(W.index),ue=o(re,1),de=ue[0];if(K.offset>=de.length()-1){var fe=this.quill.getLine(W.index+1),ge=o(fe,1),oe=ge[0];if(oe){var Ee=de.formats(),ce=this.quill.getFormat(W.index,1);te=v.default.attributes.diff(Ee,ce)||{},ae=oe.length()}}this.quill.deleteText(W.index,J,C.default.sources.USER),Object.keys(te).length>0&&this.quill.formatLine(W.index+ae-1,J,te,C.default.sources.USER)}}function B(W){var K=this.quill.getLines(W),J={};if(K.length>1){var te=K[0].formats(),ae=K[K.length-1].formats();J=v.default.attributes.diff(ae,te)||{}}this.quill.deleteText(W,C.default.sources.USER),Object.keys(J).length>0&&this.quill.formatLine(W.index,1,J,C.default.sources.USER),this.quill.setSelection(W.index,C.default.sources.SILENT),this.quill.focus()}function k(W,K){var J=this;W.length>0&&this.quill.scroll.deleteAt(W.index,W.length);var te=Object.keys(K.format).reduce(function(ae,re){return _.default.query(re,_.default.Scope.BLOCK)&&!Array.isArray(K.format[re])&&(ae[re]=K.format[re]),ae},{});this.quill.insertText(W.index,`
`,te,C.default.sources.USER),this.quill.setSelection(W.index+1,C.default.sources.SILENT),this.quill.focus(),Object.keys(K.format).forEach(function(ae){te[ae]==null&&(Array.isArray(K.format[ae])||ae!=="link"&&J.quill.format(ae,K.format[ae],C.default.sources.USER))})}function F(W){return{key:z.keys.TAB,shiftKey:!W,format:{"code-block":!0},handler:function(J){var te=_.default.query("code-block"),ae=J.index,re=J.length,ue=this.quill.scroll.descendant(te,ae),de=o(ue,2),fe=de[0],ge=de[1];if(fe!=null){var oe=this.quill.getIndex(fe),Ee=fe.newlineIndex(ge,!0)+1,ce=fe.newlineIndex(oe+ge+re),he=fe.domNode.textContent.slice(Ee,ce).split(`
`);ge=0,he.forEach(function(ye,me){W?(fe.insertAt(Ee+ge,te.TAB),ge+=te.TAB.length,me===0?ae+=te.TAB.length:re+=te.TAB.length):ye.startsWith(te.TAB)&&(fe.deleteAt(Ee+ge,te.TAB.length),ge-=te.TAB.length,me===0?ae-=te.TAB.length:re-=te.TAB.length),ge+=ye.length+1}),this.quill.update(C.default.sources.USER),this.quill.setSelection(ae,re,C.default.sources.SILENT)}}}}function G(W){return{key:W[0].toUpperCase(),shortKey:!0,handler:function(J,te){this.quill.format(W,!te.format[W],C.default.sources.USER)}}}function q(W){if(typeof W=="string"||typeof W=="number")return q({key:W});if((typeof W>"u"?"undefined":a(W))==="object"&&(W=(0,c.default)(W,!1)),typeof W.key=="string")if(z.keys[W.key.toUpperCase()]!=null)W.key=z.keys[W.key.toUpperCase()];else if(W.key.length===1)W.key=W.key.toUpperCase().charCodeAt(0);else return null;return W.shortKey&&(W[D]=W.shortKey,delete W.shortKey),W}r.default=z,r.SHORTKEY=D},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function v(y,_){var S=[],C=!0,w=!1,x=void 0;try{for(var T=y[Symbol.iterator](),A;!(C=(A=T.next()).done)&&(S.push(A.value),!(_&&S.length===_));C=!0);}catch(I){w=!0,x=I}finally{try{!C&&T.return&&T.return()}finally{if(w)throw x}}return S}return function(y,_){if(Array.isArray(y))return y;if(Symbol.iterator in Object(y))return v(y,_);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function v(y,_,S){y===null&&(y=Function.prototype);var C=Object.getOwnPropertyDescriptor(y,_);if(C===void 0){var w=Object.getPrototypeOf(y);return w===null?void 0:v(w,_,S)}else{if("value"in C)return C.value;var x=C.get;return x===void 0?void 0:x.call(S)}},s=function(){function v(y,_){for(var S=0;S<_.length;S++){var C=_[S];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(y,C.key,C)}}return function(y,_,S){return _&&v(y.prototype,_),S&&v(y,S),y}}(),l=i(0),c=f(l),u=i(7),d=f(u);function f(v){return v&&v.__esModule?v:{default:v}}function p(v,y){if(!(v instanceof y))throw new TypeError("Cannot call a class as a function")}function h(v,y){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:v}function m(v,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);v.prototype=Object.create(y&&y.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(v,y):v.__proto__=y)}var g=function(v){m(y,v),s(y,null,[{key:"value",value:function(){}}]);function y(_,S){p(this,y);var C=h(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,_));return C.selection=S,C.textNode=document.createTextNode(y.CONTENTS),C.domNode.appendChild(C.textNode),C._length=0,C}return s(y,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(S,C){if(this._length!==0)return o(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,S,C);for(var w=this,x=0;w!=null&&w.statics.scope!==c.default.Scope.BLOCK_BLOT;)x+=w.offset(w.parent),w=w.parent;w!=null&&(this._length=y.CONTENTS.length,w.optimize(),w.formatAt(x,y.CONTENTS.length,S,C),this._length=0)}},{key:"index",value:function(S,C){return S===this.textNode?0:o(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"index",this).call(this,S,C)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){o(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var S=this.textNode,C=this.selection.getNativeRange(),w=void 0,x=void 0,T=void 0;if(C!=null&&C.start.node===S&&C.end.node===S){var A=[S,C.start.offset,C.end.offset];w=A[0],x=A[1],T=A[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==y.CONTENTS){var I=this.textNode.data.split(y.CONTENTS).join("");this.next instanceof d.default?(w=this.next.domNode,this.next.insertAt(0,I),this.textNode.data=y.CONTENTS):(this.textNode.data=I,this.parent.insertBefore(c.default.create(this.textNode),this),this.textNode=document.createTextNode(y.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),x!=null){var R=[x,T].map(function(P){return Math.max(0,Math.min(w.data.length,P-1))}),N=a(R,2);return x=N[0],T=N[1],{startNode:w,startOffset:x,endNode:w,endOffset:T}}}}},{key:"update",value:function(S,C){var w=this;if(S.some(function(T){return T.type==="characterData"&&T.target===w.textNode})){var x=this.restore();x&&(C.range=x)}}},{key:"value",value:function(){return""}}]),y}(c.default.Embed);g.blotName="cursor",g.className="ql-cursor",g.tagName="span",g.CONTENTS="\uFEFF",r.default=g},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=i(0),o=c(a),s=i(4),l=c(s);function c(h){return h&&h.__esModule?h:{default:h}}function u(h,m){if(!(h instanceof m))throw new TypeError("Cannot call a class as a function")}function d(h,m){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:h}function f(h,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);h.prototype=Object.create(m&&m.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(h,m):h.__proto__=m)}var p=function(h){f(m,h);function m(){return u(this,m),d(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return m}(o.default.Container);p.allowedChildren=[l.default,s.BlockEmbed,p],r.default=p},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.ColorStyle=r.ColorClass=r.ColorAttributor=void 0;var a=function(){function g(v,y){for(var _=0;_<y.length;_++){var S=y[_];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(v,S.key,S)}}return function(v,y,_){return y&&g(v.prototype,y),_&&g(v,_),v}}(),o=function g(v,y,_){v===null&&(v=Function.prototype);var S=Object.getOwnPropertyDescriptor(v,y);if(S===void 0){var C=Object.getPrototypeOf(v);return C===null?void 0:g(C,y,_)}else{if("value"in S)return S.value;var w=S.get;return w===void 0?void 0:w.call(_)}},s=i(0),l=c(s);function c(g){return g&&g.__esModule?g:{default:g}}function u(g,v){if(!(g instanceof v))throw new TypeError("Cannot call a class as a function")}function d(g,v){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:g}function f(g,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);g.prototype=Object.create(v&&v.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(g,v):g.__proto__=v)}var p=function(g){f(v,g);function v(){return u(this,v),d(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return a(v,[{key:"value",value:function(_){var S=o(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"value",this).call(this,_);return S.startsWith("rgb(")?(S=S.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+S.split(",").map(function(C){return("00"+parseInt(C).toString(16)).slice(-2)}).join("")):S}}]),v}(l.default.Attributor.Style),h=new l.default.Attributor.Class("color","ql-color",{scope:l.default.Scope.INLINE}),m=new p("color","color",{scope:l.default.Scope.INLINE});r.ColorAttributor=p,r.ColorClass=h,r.ColorStyle=m},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.sanitize=r.default=void 0;var a=function(){function m(g,v){for(var y=0;y<v.length;y++){var _=v[y];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(g,_.key,_)}}return function(g,v,y){return v&&m(g.prototype,v),y&&m(g,y),g}}(),o=function m(g,v,y){g===null&&(g=Function.prototype);var _=Object.getOwnPropertyDescriptor(g,v);if(_===void 0){var S=Object.getPrototypeOf(g);return S===null?void 0:m(S,v,y)}else{if("value"in _)return _.value;var C=_.get;return C===void 0?void 0:C.call(y)}},s=i(6),l=c(s);function c(m){return m&&m.__esModule?m:{default:m}}function u(m,g){if(!(m instanceof g))throw new TypeError("Cannot call a class as a function")}function d(m,g){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:m}function f(m,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);m.prototype=Object.create(g&&g.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(m,g):m.__proto__=g)}var p=function(m){f(g,m);function g(){return u(this,g),d(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return a(g,[{key:"format",value:function(y,_){if(y!==this.statics.blotName||!_)return o(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"format",this).call(this,y,_);_=this.constructor.sanitize(_),this.domNode.setAttribute("href",_)}}],[{key:"create",value:function(y){var _=o(g.__proto__||Object.getPrototypeOf(g),"create",this).call(this,y);return y=this.sanitize(y),_.setAttribute("href",y),_.setAttribute("rel","noopener noreferrer"),_.setAttribute("target","_blank"),_}},{key:"formats",value:function(y){return y.getAttribute("href")}},{key:"sanitize",value:function(y){return h(y,this.PROTOCOL_WHITELIST)?y:this.SANITIZED_URL}}]),g}(l.default);p.blotName="link",p.tagName="A",p.SANITIZED_URL="about:blank",p.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function h(m,g){var v=document.createElement("a");v.href=m;var y=v.href.slice(0,v.href.indexOf(":"));return g.indexOf(y)>-1}r.default=p,r.sanitize=h},function(n,r,i){Object.defineProperty(r,"__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},o=function(){function g(v,y){for(var _=0;_<y.length;_++){var S=y[_];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(v,S.key,S)}}return function(v,y,_){return y&&g(v.prototype,y),_&&g(v,_),v}}(),s=i(23),l=d(s),c=i(107),u=d(c);function d(g){return g&&g.__esModule?g:{default:g}}function f(g,v){if(!(g instanceof v))throw new TypeError("Cannot call a class as a function")}var p=0;function h(g,v){g.setAttribute(v,g.getAttribute(v)!=="true")}var m=function(){function g(v){var y=this;f(this,g),this.select=v,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(){y.togglePicker()}),this.label.addEventListener("keydown",function(_){switch(_.keyCode){case l.default.keys.ENTER:y.togglePicker();break;case l.default.keys.ESCAPE:y.escape(),_.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return o(g,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),h(this.label,"aria-expanded"),h(this.options,"aria-hidden")}},{key:"buildItem",value:function(y){var _=this,S=document.createElement("span");return S.tabIndex="0",S.setAttribute("role","button"),S.classList.add("ql-picker-item"),y.hasAttribute("value")&&S.setAttribute("data-value",y.getAttribute("value")),y.textContent&&S.setAttribute("data-label",y.textContent),S.addEventListener("click",function(){_.selectItem(S,!0)}),S.addEventListener("keydown",function(C){switch(C.keyCode){case l.default.keys.ENTER:_.selectItem(S,!0),C.preventDefault();break;case l.default.keys.ESCAPE:_.escape(),C.preventDefault();break}}),S}},{key:"buildLabel",value:function(){var y=document.createElement("span");return y.classList.add("ql-picker-label"),y.innerHTML=u.default,y.tabIndex="0",y.setAttribute("role","button"),y.setAttribute("aria-expanded","false"),this.container.appendChild(y),y}},{key:"buildOptions",value:function(){var y=this,_=document.createElement("span");_.classList.add("ql-picker-options"),_.setAttribute("aria-hidden","true"),_.tabIndex="-1",_.id="ql-picker-options-"+p,p+=1,this.label.setAttribute("aria-controls",_.id),this.options=_,[].slice.call(this.select.options).forEach(function(S){var C=y.buildItem(S);_.appendChild(C),S.selected===!0&&y.selectItem(C)}),this.container.appendChild(_)}},{key:"buildPicker",value:function(){var y=this;[].slice.call(this.select.attributes).forEach(function(_){y.container.setAttribute(_.name,_.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var y=this;this.close(),setTimeout(function(){return y.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(y){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,S=this.container.querySelector(".ql-selected");if(y!==S&&(S?.classList.remove("ql-selected"),y!=null&&(y.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(y.parentNode.children,y),y.hasAttribute("data-value")?this.label.setAttribute("data-value",y.getAttribute("data-value")):this.label.removeAttribute("data-value"),y.hasAttribute("data-label")?this.label.setAttribute("data-label",y.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 C=document.createEvent("Event");C.initEvent("change",!0,!0),this.select.dispatchEvent(C)}this.close()}}},{key:"update",value:function(){var y=void 0;if(this.select.selectedIndex>-1){var _=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];y=this.select.options[this.select.selectedIndex],this.selectItem(_)}else this.selectItem(null);var S=y!=null&&y!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",S)}}]),g}();r.default=m},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=i(0),o=$(a),s=i(5),l=$(s),c=i(4),u=$(c),d=i(16),f=$(d),p=i(25),h=$(p),m=i(24),g=$(m),v=i(35),y=$(v),_=i(6),S=$(_),C=i(22),w=$(C),x=i(7),T=$(x),A=i(55),I=$(A),R=i(42),N=$(R),P=i(23),L=$(P);function $(D){return D&&D.__esModule?D:{default:D}}l.default.register({"blots/block":u.default,"blots/block/embed":c.BlockEmbed,"blots/break":f.default,"blots/container":h.default,"blots/cursor":g.default,"blots/embed":y.default,"blots/inline":S.default,"blots/scroll":w.default,"blots/text":T.default,"modules/clipboard":I.default,"modules/history":N.default,"modules/keyboard":L.default}),o.default.register(u.default,f.default,g.default,S.default,w.default,T.default),r.default=l.default},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=i(1),o=function(){function s(l){this.domNode=l,this.domNode[a.DATA_KEY]={blot:this}}return Object.defineProperty(s.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),s.create=function(l){if(this.tagName==null)throw new a.ParchmentError("Blot definition missing tagName");var c;return Array.isArray(this.tagName)?(typeof l=="string"&&(l=l.toUpperCase(),parseInt(l).toString()===l&&(l=parseInt(l))),typeof l=="number"?c=document.createElement(this.tagName[l-1]):this.tagName.indexOf(l)>-1?c=document.createElement(l):c=document.createElement(this.tagName[0])):c=document.createElement(this.tagName),this.className&&c.classList.add(this.className),c},s.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},s.prototype.clone=function(){var l=this.domNode.cloneNode(!1);return a.create(l)},s.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[a.DATA_KEY]},s.prototype.deleteAt=function(l,c){var u=this.isolate(l,c);u.remove()},s.prototype.formatAt=function(l,c,u,d){var f=this.isolate(l,c);if(a.query(u,a.Scope.BLOT)!=null&&d)f.wrap(u,d);else if(a.query(u,a.Scope.ATTRIBUTE)!=null){var p=a.create(this.statics.scope);f.wrap(p),p.format(u,d)}},s.prototype.insertAt=function(l,c,u){var d=u==null?a.create("text",c):a.create(c,u),f=this.split(l);this.parent.insertBefore(d,f)},s.prototype.insertInto=function(l,c){c===void 0&&(c=null),this.parent!=null&&this.parent.children.remove(this);var u=null;l.children.insertBefore(this,c),c!=null&&(u=c.domNode),(this.domNode.parentNode!=l.domNode||this.domNode.nextSibling!=u)&&l.domNode.insertBefore(this.domNode,u),this.parent=l,this.attach()},s.prototype.isolate=function(l,c){var u=this.split(l);return u.split(c),u},s.prototype.length=function(){return 1},s.prototype.offset=function(l){return l===void 0&&(l=this.parent),this.parent==null||this==l?0:this.parent.children.offset(this)+this.parent.offset(l)},s.prototype.optimize=function(l){this.domNode[a.DATA_KEY]!=null&&delete this.domNode[a.DATA_KEY].mutations},s.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},s.prototype.replace=function(l){l.parent!=null&&(l.parent.insertBefore(this,l.next),l.remove())},s.prototype.replaceWith=function(l,c){var u=typeof l=="string"?a.create(l,c):l;return u.replace(this),u},s.prototype.split=function(l,c){return l===0?this:this.next},s.prototype.update=function(l,c){},s.prototype.wrap=function(l,c){var u=typeof l=="string"?a.create(l,c):l;return this.parent!=null&&this.parent.insertBefore(u,this.next),u.appendChild(this),u},s.blotName="abstract",s}();r.default=o},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=i(12),o=i(32),s=i(33),l=i(1),c=function(){function u(d){this.attributes={},this.domNode=d,this.build()}return u.prototype.attribute=function(d,f){f?d.add(this.domNode,f)&&(d.value(this.domNode)!=null?this.attributes[d.attrName]=d:delete this.attributes[d.attrName]):(d.remove(this.domNode),delete this.attributes[d.attrName])},u.prototype.build=function(){var d=this;this.attributes={};var f=a.default.keys(this.domNode),p=o.default.keys(this.domNode),h=s.default.keys(this.domNode);f.concat(p).concat(h).forEach(function(m){var g=l.query(m,l.Scope.ATTRIBUTE);g instanceof a.default&&(d.attributes[g.attrName]=g)})},u.prototype.copy=function(d){var f=this;Object.keys(this.attributes).forEach(function(p){var h=f.attributes[p].value(f.domNode);d.format(p,h)})},u.prototype.move=function(d){var f=this;this.copy(d),Object.keys(this.attributes).forEach(function(p){f.attributes[p].remove(f.domNode)}),this.attributes={}},u.prototype.values=function(){var d=this;return Object.keys(this.attributes).reduce(function(f,p){return f[p]=d.attributes[p].value(d.domNode),f},{})},u}();r.default=c},function(n,r,i){var a=this&&this.__extends||function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,d){u.__proto__=d}||function(u,d){for(var f in d)d.hasOwnProperty(f)&&(u[f]=d[f])};return function(u,d){c(u,d);function f(){this.constructor=u}u.prototype=d===null?Object.create(d):(f.prototype=d.prototype,new f)}}();Object.defineProperty(r,"__esModule",{value:!0});var o=i(12);function s(c,u){var d=c.getAttribute("class")||"";return d.split(/\s+/).filter(function(f){return f.indexOf(u+"-")===0})}var l=function(c){a(u,c);function u(){return c!==null&&c.apply(this,arguments)||this}return u.keys=function(d){return(d.getAttribute("class")||"").split(/\s+/).map(function(f){return f.split("-").slice(0,-1).join("-")})},u.prototype.add=function(d,f){return this.canAdd(d,f)?(this.remove(d),d.classList.add(this.keyName+"-"+f),!0):!1},u.prototype.remove=function(d){var f=s(d,this.keyName);f.forEach(function(p){d.classList.remove(p)}),d.classList.length===0&&d.removeAttribute("class")},u.prototype.value=function(d){var f=s(d,this.keyName)[0]||"",p=f.slice(this.keyName.length+1);return this.canAdd(d,p)?p:""},u}(o.default);r.default=l},function(n,r,i){var a=this&&this.__extends||function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,d){u.__proto__=d}||function(u,d){for(var f in d)d.hasOwnProperty(f)&&(u[f]=d[f])};return function(u,d){c(u,d);function f(){this.constructor=u}u.prototype=d===null?Object.create(d):(f.prototype=d.prototype,new f)}}();Object.defineProperty(r,"__esModule",{value:!0});var o=i(12);function s(c){var u=c.split("-"),d=u.slice(1).map(function(f){return f[0].toUpperCase()+f.slice(1)}).join("");return u[0]+d}var l=function(c){a(u,c);function u(){return c!==null&&c.apply(this,arguments)||this}return u.keys=function(d){return(d.getAttribute("style")||"").split(";").map(function(f){var p=f.split(":");return p[0].trim()})},u.prototype.add=function(d,f){return this.canAdd(d,f)?(d.style[s(this.keyName)]=f,!0):!1},u.prototype.remove=function(d){d.style[s(this.keyName)]="",d.getAttribute("style")||d.removeAttribute("style")},u.prototype.value=function(d){var f=d.style[s(this.keyName)];return this.canAdd(d,f)?f:""},u}(o.default);r.default=l},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function l(c,u){for(var d=0;d<u.length;d++){var f=u[d];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(c,f.key,f)}}return function(c,u,d){return u&&l(c.prototype,u),d&&l(c,d),c}}();function o(l,c){if(!(l instanceof c))throw new TypeError("Cannot call a class as a function")}var s=function(){function l(c,u){o(this,l),this.quill=c,this.options=u,this.modules={}}return a(l,[{key:"init",value:function(){var u=this;Object.keys(this.options.modules).forEach(function(d){u.modules[d]==null&&u.addModule(d)})}},{key:"addModule",value:function(u){var d=this.quill.constructor.import("modules/"+u);return this.modules[u]=new d(this.quill,this.options.modules[u]||{}),this.modules[u]}}]),l}();s.DEFAULTS={modules:{}},s.themes={default:s},r.default=s},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function v(y,_){for(var S=0;S<_.length;S++){var C=_[S];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(y,C.key,C)}}return function(y,_,S){return _&&v(y.prototype,_),S&&v(y,S),y}}(),o=function v(y,_,S){y===null&&(y=Function.prototype);var C=Object.getOwnPropertyDescriptor(y,_);if(C===void 0){var w=Object.getPrototypeOf(y);return w===null?void 0:v(w,_,S)}else{if("value"in C)return C.value;var x=C.get;return x===void 0?void 0:x.call(S)}},s=i(0),l=d(s),c=i(7),u=d(c);function d(v){return v&&v.__esModule?v:{default:v}}function f(v,y){if(!(v instanceof y))throw new TypeError("Cannot call a class as a function")}function p(v,y){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:v}function h(v,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);v.prototype=Object.create(y&&y.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(v,y):v.__proto__=y)}var m="\uFEFF",g=function(v){h(y,v);function y(_){f(this,y);var S=p(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,_));return S.contentNode=document.createElement("span"),S.contentNode.setAttribute("contenteditable",!1),[].slice.call(S.domNode.childNodes).forEach(function(C){S.contentNode.appendChild(C)}),S.leftGuard=document.createTextNode(m),S.rightGuard=document.createTextNode(m),S.domNode.appendChild(S.leftGuard),S.domNode.appendChild(S.contentNode),S.domNode.appendChild(S.rightGuard),S}return a(y,[{key:"index",value:function(S,C){return S===this.leftGuard?0:S===this.rightGuard?1:o(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"index",this).call(this,S,C)}},{key:"restore",value:function(S){var C=void 0,w=void 0,x=S.data.split(m).join("");if(S===this.leftGuard)if(this.prev instanceof u.default){var T=this.prev.length();this.prev.insertAt(T,x),C={startNode:this.prev.domNode,startOffset:T+x.length}}else w=document.createTextNode(x),this.parent.insertBefore(l.default.create(w),this),C={startNode:w,startOffset:x.length};else S===this.rightGuard&&(this.next instanceof u.default?(this.next.insertAt(0,x),C={startNode:this.next.domNode,startOffset:x.length}):(w=document.createTextNode(x),this.parent.insertBefore(l.default.create(w),this.next),C={startNode:w,startOffset:x.length}));return S.data=m,C}},{key:"update",value:function(S,C){var w=this;S.forEach(function(x){if(x.type==="characterData"&&(x.target===w.leftGuard||x.target===w.rightGuard)){var T=w.restore(x.target);T&&(C.range=T)}})}}]),y}(l.default.Embed);r.default=g},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.AlignStyle=r.AlignClass=r.AlignAttribute=void 0;var a=i(0),o=s(a);function s(f){return f&&f.__esModule?f:{default:f}}var l={scope:o.default.Scope.BLOCK,whitelist:["right","center","justify"]},c=new o.default.Attributor.Attribute("align","align",l),u=new o.default.Attributor.Class("align","ql-align",l),d=new o.default.Attributor.Style("align","text-align",l);r.AlignAttribute=c,r.AlignClass=u,r.AlignStyle=d},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.BackgroundStyle=r.BackgroundClass=void 0;var a=i(0),o=l(a),s=i(26);function l(d){return d&&d.__esModule?d:{default:d}}var c=new o.default.Attributor.Class("background","ql-bg",{scope:o.default.Scope.INLINE}),u=new s.ColorAttributor("background","background-color",{scope:o.default.Scope.INLINE});r.BackgroundClass=c,r.BackgroundStyle=u},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.DirectionStyle=r.DirectionClass=r.DirectionAttribute=void 0;var a=i(0),o=s(a);function s(f){return f&&f.__esModule?f:{default:f}}var l={scope:o.default.Scope.BLOCK,whitelist:["rtl"]},c=new o.default.Attributor.Attribute("direction","dir",l),u=new o.default.Attributor.Class("direction","ql-direction",l),d=new o.default.Attributor.Style("direction","direction",l);r.DirectionAttribute=c,r.DirectionClass=u,r.DirectionStyle=d},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.FontClass=r.FontStyle=void 0;var a=function(){function v(y,_){for(var S=0;S<_.length;S++){var C=_[S];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(y,C.key,C)}}return function(y,_,S){return _&&v(y.prototype,_),S&&v(y,S),y}}(),o=function v(y,_,S){y===null&&(y=Function.prototype);var C=Object.getOwnPropertyDescriptor(y,_);if(C===void 0){var w=Object.getPrototypeOf(y);return w===null?void 0:v(w,_,S)}else{if("value"in C)return C.value;var x=C.get;return x===void 0?void 0:x.call(S)}},s=i(0),l=c(s);function c(v){return v&&v.__esModule?v:{default:v}}function u(v,y){if(!(v instanceof y))throw new TypeError("Cannot call a class as a function")}function d(v,y){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:v}function f(v,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);v.prototype=Object.create(y&&y.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(v,y):v.__proto__=y)}var p={scope:l.default.Scope.INLINE,whitelist:["serif","monospace"]},h=new l.default.Attributor.Class("font","ql-font",p),m=function(v){f(y,v);function y(){return u(this,y),d(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return a(y,[{key:"value",value:function(S){return o(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"value",this).call(this,S).replace(/["']/g,"")}}]),y}(l.default.Attributor.Style),g=new m("font","font-family",p);r.FontStyle=g,r.FontClass=h},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.SizeStyle=r.SizeClass=void 0;var a=i(0),o=s(a);function s(u){return u&&u.__esModule?u:{default:u}}var l=new o.default.Attributor.Class("size","ql-size",{scope:o.default.Scope.INLINE,whitelist:["small","large","huge"]}),c=new o.default.Attributor.Style("size","font-size",{scope:o.default.Scope.INLINE,whitelist:["10px","18px","32px"]});r.SizeClass=l,r.SizeStyle=c},function(n,r,i){n.exports={align:{"":i(76),center:i(77),right:i(78),justify:i(79)},background:i(80),blockquote:i(81),bold:i(82),clean:i(83),code:i(58),"code-block":i(58),color:i(84),direction:{"":i(85),rtl:i(86)},float:{center:i(87),full:i(88),left:i(89),right:i(90)},formula:i(91),header:{1:i(92),2:i(93)},italic:i(94),image:i(95),indent:{"+1":i(96),"-1":i(97)},link:i(98),list:{ordered:i(99),bullet:i(100),check:i(101)},script:{sub:i(102),super:i(103)},strike:i(104),underline:i(105),video:i(106)}},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.getLastChangeIndex=r.default=void 0;var a=function(){function _(S,C){for(var w=0;w<C.length;w++){var x=C[w];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(S,x.key,x)}}return function(S,C,w){return C&&_(S.prototype,C),w&&_(S,w),S}}(),o=i(0),s=f(o),l=i(5),c=f(l),u=i(9),d=f(u);function f(_){return _&&_.__esModule?_:{default:_}}function p(_,S){if(!(_ instanceof S))throw new TypeError("Cannot call a class as a function")}function h(_,S){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S&&(typeof S=="object"||typeof S=="function")?S:_}function m(_,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof S);_.prototype=Object.create(S&&S.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(_,S):_.__proto__=S)}var g=function(_){m(S,_);function S(C,w){p(this,S);var x=h(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,C,w));return x.lastRecorded=0,x.ignoreChange=!1,x.clear(),x.quill.on(c.default.events.EDITOR_CHANGE,function(T,A,I,R){T!==c.default.events.TEXT_CHANGE||x.ignoreChange||(!x.options.userOnly||R===c.default.sources.USER?x.record(A,I):x.transform(A))}),x.quill.keyboard.addBinding({key:"Z",shortKey:!0},x.undo.bind(x)),x.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},x.redo.bind(x)),/Win/i.test(navigator.platform)&&x.quill.keyboard.addBinding({key:"Y",shortKey:!0},x.redo.bind(x)),x}return a(S,[{key:"change",value:function(w,x){if(this.stack[w].length!==0){var T=this.stack[w].pop();this.stack[x].push(T),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(T[w],c.default.sources.USER),this.ignoreChange=!1;var A=y(T[w]);this.quill.setSelection(A)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(w,x){if(w.ops.length!==0){this.stack.redo=[];var T=this.quill.getContents().diff(x),A=Date.now();if(this.lastRecorded+this.options.delay>A&&this.stack.undo.length>0){var I=this.stack.undo.pop();T=T.compose(I.undo),w=I.redo.compose(w)}else this.lastRecorded=A;this.stack.undo.push({redo:w,undo:T}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(w){this.stack.undo.forEach(function(x){x.undo=w.transform(x.undo,!0),x.redo=w.transform(x.redo,!0)}),this.stack.redo.forEach(function(x){x.undo=w.transform(x.undo,!0),x.redo=w.transform(x.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),S}(d.default);g.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function v(_){var S=_.ops[_.ops.length-1];return S==null?!1:S.insert!=null?typeof S.insert=="string"&&S.insert.endsWith(`
`):S.attributes!=null?Object.keys(S.attributes).some(function(C){return s.default.query(C,s.default.Scope.BLOCK)!=null}):!1}function y(_){var S=_.reduce(function(w,x){return w+=x.delete||0,w},0),C=_.length()-S;return v(_)&&(C-=1),C}r.default=g,r.getLastChangeIndex=y},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.BaseTooltip=void 0;var a=function(){function k(F,G){for(var q=0;q<G.length;q++){var W=G[q];W.enumerable=W.enumerable||!1,W.configurable=!0,"value"in W&&(W.writable=!0),Object.defineProperty(F,W.key,W)}}return function(F,G,q){return G&&k(F.prototype,G),q&&k(F,q),F}}(),o=function k(F,G,q){F===null&&(F=Function.prototype);var W=Object.getOwnPropertyDescriptor(F,G);if(W===void 0){var K=Object.getPrototypeOf(F);return K===null?void 0:k(K,G,q)}else{if("value"in W)return W.value;var J=W.get;return J===void 0?void 0:J.call(q)}},s=i(3),l=A(s),c=i(2),u=A(c),d=i(8),f=A(d),p=i(23),h=A(p),m=i(34),g=A(m),v=i(59),y=A(v),_=i(60),S=A(_),C=i(28),w=A(C),x=i(61),T=A(x);function A(k){return k&&k.__esModule?k:{default:k}}function I(k,F){if(!(k instanceof F))throw new TypeError("Cannot call a class as a function")}function R(k,F){if(!k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F&&(typeof F=="object"||typeof F=="function")?F:k}function N(k,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof F);k.prototype=Object.create(F&&F.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),F&&(Object.setPrototypeOf?Object.setPrototypeOf(k,F):k.__proto__=F)}var P=[!1,"center","right","justify"],L=["#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"],$=[!1,"serif","monospace"],D=["1","2","3",!1],z=["small",!1,"large","huge"],U=function(k){N(F,k);function F(G,q){I(this,F);var W=R(this,(F.__proto__||Object.getPrototypeOf(F)).call(this,G,q)),K=function J(te){if(!document.body.contains(G.root))return document.body.removeEventListener("click",J);W.tooltip!=null&&!W.tooltip.root.contains(te.target)&&document.activeElement!==W.tooltip.textbox&&!W.quill.hasFocus()&&W.tooltip.hide(),W.pickers!=null&&W.pickers.forEach(function(ae){ae.container.contains(te.target)||ae.close()})};return G.emitter.listenDOM("click",document.body,K),W}return a(F,[{key:"addModule",value:function(q){var W=o(F.prototype.__proto__||Object.getPrototypeOf(F.prototype),"addModule",this).call(this,q);return q==="toolbar"&&this.extendToolbar(W),W}},{key:"buildButtons",value:function(q,W){q.forEach(function(K){var J=K.getAttribute("class")||"";J.split(/\s+/).forEach(function(te){if(te.startsWith("ql-")&&(te=te.slice(3),W[te]!=null))if(te==="direction")K.innerHTML=W[te][""]+W[te].rtl;else if(typeof W[te]=="string")K.innerHTML=W[te];else{var ae=K.value||"";ae!=null&&W[te][ae]&&(K.innerHTML=W[te][ae])}})})}},{key:"buildPickers",value:function(q,W){var K=this;this.pickers=q.map(function(te){if(te.classList.contains("ql-align"))return te.querySelector("option")==null&&B(te,P),new S.default(te,W.align);if(te.classList.contains("ql-background")||te.classList.contains("ql-color")){var ae=te.classList.contains("ql-background")?"background":"color";return te.querySelector("option")==null&&B(te,L,ae==="background"?"#ffffff":"#000000"),new y.default(te,W[ae])}else return te.querySelector("option")==null&&(te.classList.contains("ql-font")?B(te,$):te.classList.contains("ql-header")?B(te,D):te.classList.contains("ql-size")&&B(te,z)),new w.default(te)});var J=function(){K.pickers.forEach(function(ae){ae.update()})};this.quill.on(f.default.events.EDITOR_CHANGE,J)}}]),F}(g.default);U.DEFAULTS=(0,l.default)(!0,{},g.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var F=this,G=this.container.querySelector("input.ql-image[type=file]");G==null&&(G=document.createElement("input"),G.setAttribute("type","file"),G.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),G.classList.add("ql-image"),G.addEventListener("change",function(){if(G.files!=null&&G.files[0]!=null){var q=new FileReader;q.onload=function(W){var K=F.quill.getSelection(!0);F.quill.updateContents(new u.default().retain(K.index).delete(K.length).insert({image:W.target.result}),f.default.sources.USER),F.quill.setSelection(K.index+1,f.default.sources.SILENT),G.value=""},q.readAsDataURL(G.files[0])}}),this.container.appendChild(G)),G.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var H=function(k){N(F,k);function F(G,q){I(this,F);var W=R(this,(F.__proto__||Object.getPrototypeOf(F)).call(this,G,q));return W.textbox=W.root.querySelector('input[type="text"]'),W.listen(),W}return a(F,[{key:"listen",value:function(){var q=this;this.textbox.addEventListener("keydown",function(W){h.default.match(W,"enter")?(q.save(),W.preventDefault()):h.default.match(W,"escape")&&(q.cancel(),W.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),W!=null?this.textbox.value=W:q!==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-"+q)||""),this.root.setAttribute("data-mode",q)}},{key:"restoreFocus",value:function(){var q=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=q}},{key:"save",value:function(){var q=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var W=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",q,f.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",q,f.default.sources.USER)),this.quill.root.scrollTop=W;break}case"video":q=M(q);case"formula":{if(!q)break;var K=this.quill.getSelection(!0);if(K!=null){var J=K.index+K.length;this.quill.insertEmbed(J,this.root.getAttribute("data-mode"),q,f.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(J+1," ",f.default.sources.USER),this.quill.setSelection(J+2,f.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),F}(T.default);function M(k){var F=k.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||k.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return F?(F[1]||"https")+"://www.youtube.com/embed/"+F[2]+"?showinfo=0":(F=k.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(F[1]||"https")+"://player.vimeo.com/video/"+F[2]+"/":k}function B(k,F){var G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;F.forEach(function(q){var W=document.createElement("option");q===G?W.setAttribute("selected","selected"):W.setAttribute("value",q),k.appendChild(W)})}r.BaseTooltip=H,r.default=U},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function o(){this.head=this.tail=null,this.length=0}return o.prototype.append=function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];this.insertBefore(s[0],null),s.length>1&&this.append.apply(this,s.slice(1))},o.prototype.contains=function(s){for(var l,c=this.iterator();l=c();)if(l===s)return!0;return!1},o.prototype.insertBefore=function(s,l){s&&(s.next=l,l!=null?(s.prev=l.prev,l.prev!=null&&(l.prev.next=s),l.prev=s,l===this.head&&(this.head=s)):this.tail!=null?(this.tail.next=s,s.prev=this.tail,this.tail=s):(s.prev=null,this.head=this.tail=s),this.length+=1)},o.prototype.offset=function(s){for(var l=0,c=this.head;c!=null;){if(c===s)return l;l+=c.length(),c=c.next}return-1},o.prototype.remove=function(s){this.contains(s)&&(s.prev!=null&&(s.prev.next=s.next),s.next!=null&&(s.next.prev=s.prev),s===this.head&&(this.head=s.next),s===this.tail&&(this.tail=s.prev),this.length-=1)},o.prototype.iterator=function(s){return s===void 0&&(s=this.head),function(){var l=s;return s!=null&&(s=s.next),l}},o.prototype.find=function(s,l){l===void 0&&(l=!1);for(var c,u=this.iterator();c=u();){var d=c.length();if(s<d||l&&s===d&&(c.next==null||c.next.length()!==0))return[c,s];s-=d}return[null,0]},o.prototype.forEach=function(s){for(var l,c=this.iterator();l=c();)s(l)},o.prototype.forEachAt=function(s,l,c){if(!(l<=0))for(var u=this.find(s),d=u[0],f=u[1],p,h=s-f,m=this.iterator(d);(p=m())&&h<s+l;){var g=p.length();s>h?c(p,s-h,Math.min(l,h+g-s)):c(p,0,Math.min(g,s+l-h)),h+=g}},o.prototype.map=function(s){return this.reduce(function(l,c){return l.push(s(c)),l},[])},o.prototype.reduce=function(s,l){for(var c,u=this.iterator();c=u();)l=s(l,c);return l},o}();r.default=a},function(n,r,i){var a=this&&this.__extends||function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,p){f.__proto__=p}||function(f,p){for(var h in p)p.hasOwnProperty(h)&&(f[h]=p[h])};return function(f,p){d(f,p);function h(){this.constructor=f}f.prototype=p===null?Object.create(p):(h.prototype=p.prototype,new h)}}();Object.defineProperty(r,"__esModule",{value:!0});var o=i(17),s=i(1),l={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},c=100,u=function(d){a(f,d);function f(p){var h=d.call(this,p)||this;return h.scroll=h,h.observer=new MutationObserver(function(m){h.update(m)}),h.observer.observe(h.domNode,l),h.attach(),h}return f.prototype.detach=function(){d.prototype.detach.call(this),this.observer.disconnect()},f.prototype.deleteAt=function(p,h){this.update(),p===0&&h===this.length()?this.children.forEach(function(m){m.remove()}):d.prototype.deleteAt.call(this,p,h)},f.prototype.formatAt=function(p,h,m,g){this.update(),d.prototype.formatAt.call(this,p,h,m,g)},f.prototype.insertAt=function(p,h,m){this.update(),d.prototype.insertAt.call(this,p,h,m)},f.prototype.optimize=function(p,h){var m=this;p===void 0&&(p=[]),h===void 0&&(h={}),d.prototype.optimize.call(this,h);for(var g=[].slice.call(this.observer.takeRecords());g.length>0;)p.push(g.pop());for(var v=function(C,w){w===void 0&&(w=!0),!(C==null||C===m)&&C.domNode.parentNode!=null&&(C.domNode[s.DATA_KEY].mutations==null&&(C.domNode[s.DATA_KEY].mutations=[]),w&&v(C.parent))},y=function(C){C.domNode[s.DATA_KEY]==null||C.domNode[s.DATA_KEY].mutations==null||(C instanceof o.default&&C.children.forEach(y),C.optimize(h))},_=p,S=0;_.length>0;S+=1){if(S>=c)throw new Error("[Parchment] Maximum optimize iterations reached");for(_.forEach(function(C){var w=s.find(C.target,!0);w!=null&&(w.domNode===C.target&&(C.type==="childList"?(v(s.find(C.previousSibling,!1)),[].forEach.call(C.addedNodes,function(x){var T=s.find(x,!1);v(T,!1),T instanceof o.default&&T.children.forEach(function(A){v(A,!1)})})):C.type==="attributes"&&v(w.prev)),v(w))}),this.children.forEach(y),_=[].slice.call(this.observer.takeRecords()),g=_.slice();g.length>0;)p.push(g.pop())}},f.prototype.update=function(p,h){var m=this;h===void 0&&(h={}),p=p||this.observer.takeRecords(),p.map(function(g){var v=s.find(g.target,!0);return v==null?null:v.domNode[s.DATA_KEY].mutations==null?(v.domNode[s.DATA_KEY].mutations=[g],v):(v.domNode[s.DATA_KEY].mutations.push(g),null)}).forEach(function(g){g==null||g===m||g.domNode[s.DATA_KEY]==null||g.update(g.domNode[s.DATA_KEY].mutations||[],h)}),this.domNode[s.DATA_KEY].mutations!=null&&d.prototype.update.call(this,this.domNode[s.DATA_KEY].mutations,h),this.optimize(p,h)},f.blotName="scroll",f.defaultChild="block",f.scope=s.Scope.BLOCK_BLOT,f.tagName="DIV",f}(o.default);r.default=u},function(n,r,i){var a=this&&this.__extends||function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var p in f)f.hasOwnProperty(p)&&(d[p]=f[p])};return function(d,f){u(d,f);function p(){this.constructor=d}d.prototype=f===null?Object.create(f):(p.prototype=f.prototype,new p)}}();Object.defineProperty(r,"__esModule",{value:!0});var o=i(18),s=i(1);function l(u,d){if(Object.keys(u).length!==Object.keys(d).length)return!1;for(var f in u)if(u[f]!==d[f])return!1;return!0}var c=function(u){a(d,u);function d(){return u!==null&&u.apply(this,arguments)||this}return d.formats=function(f){if(f.tagName!==d.tagName)return u.formats.call(this,f)},d.prototype.format=function(f,p){var h=this;f===this.statics.blotName&&!p?(this.children.forEach(function(m){m instanceof o.default||(m=m.wrap(d.blotName,!0)),h.attributes.copy(m)}),this.unwrap()):u.prototype.format.call(this,f,p)},d.prototype.formatAt=function(f,p,h,m){if(this.formats()[h]!=null||s.query(h,s.Scope.ATTRIBUTE)){var g=this.isolate(f,p);g.format(h,m)}else u.prototype.formatAt.call(this,f,p,h,m)},d.prototype.optimize=function(f){u.prototype.optimize.call(this,f);var p=this.formats();if(Object.keys(p).length===0)return this.unwrap();var h=this.next;h instanceof d&&h.prev===this&&l(p,h.formats())&&(h.moveChildren(this),h.remove())},d.blotName="inline",d.scope=s.Scope.INLINE_BLOT,d.tagName="SPAN",d}(o.default);r.default=c},function(n,r,i){var a=this&&this.__extends||function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,d){u.__proto__=d}||function(u,d){for(var f in d)d.hasOwnProperty(f)&&(u[f]=d[f])};return function(u,d){c(u,d);function f(){this.constructor=u}u.prototype=d===null?Object.create(d):(f.prototype=d.prototype,new f)}}();Object.defineProperty(r,"__esModule",{value:!0});var o=i(18),s=i(1),l=function(c){a(u,c);function u(){return c!==null&&c.apply(this,arguments)||this}return u.formats=function(d){var f=s.query(u.blotName).tagName;if(d.tagName!==f)return c.formats.call(this,d)},u.prototype.format=function(d,f){s.query(d,s.Scope.BLOCK)!=null&&(d===this.statics.blotName&&!f?this.replaceWith(u.blotName):c.prototype.format.call(this,d,f))},u.prototype.formatAt=function(d,f,p,h){s.query(p,s.Scope.BLOCK)!=null?this.format(p,h):c.prototype.formatAt.call(this,d,f,p,h)},u.prototype.insertAt=function(d,f,p){if(p==null||s.query(f,s.Scope.INLINE)!=null)c.prototype.insertAt.call(this,d,f,p);else{var h=this.split(d),m=s.create(f,p);h.parent.insertBefore(m,h)}},u.prototype.update=function(d,f){navigator.userAgent.match(/Trident/)?this.build():c.prototype.update.call(this,d,f)},u.blotName="block",u.scope=s.Scope.BLOCK_BLOT,u.tagName="P",u}(o.default);r.default=l},function(n,r,i){var a=this&&this.__extends||function(){var l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,u){c.__proto__=u}||function(c,u){for(var d in u)u.hasOwnProperty(d)&&(c[d]=u[d])};return function(c,u){l(c,u);function d(){this.constructor=c}c.prototype=u===null?Object.create(u):(d.prototype=u.prototype,new d)}}();Object.defineProperty(r,"__esModule",{value:!0});var o=i(19),s=function(l){a(c,l);function c(){return l!==null&&l.apply(this,arguments)||this}return c.formats=function(u){},c.prototype.format=function(u,d){l.prototype.formatAt.call(this,0,this.length(),u,d)},c.prototype.formatAt=function(u,d,f,p){u===0&&d===this.length()?this.format(f,p):l.prototype.formatAt.call(this,u,d,f,p)},c.prototype.formats=function(){return this.statics.formats(this.domNode)},c}(o.default);r.default=s},function(n,r,i){var a=this&&this.__extends||function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,d){u.__proto__=d}||function(u,d){for(var f in d)d.hasOwnProperty(f)&&(u[f]=d[f])};return function(u,d){c(u,d);function f(){this.constructor=u}u.prototype=d===null?Object.create(d):(f.prototype=d.prototype,new f)}}();Object.defineProperty(r,"__esModule",{value:!0});var o=i(19),s=i(1),l=function(c){a(u,c);function u(d){var f=c.call(this,d)||this;return f.text=f.statics.value(f.domNode),f}return u.create=function(d){return document.createTextNode(d)},u.value=function(d){var f=d.data;return f.normalize&&(f=f.normalize()),f},u.prototype.deleteAt=function(d,f){this.domNode.data=this.text=this.text.slice(0,d)+this.text.slice(d+f)},u.prototype.index=function(d,f){return this.domNode===d?f:-1},u.prototype.insertAt=function(d,f,p){p==null?(this.text=this.text.slice(0,d)+f+this.text.slice(d),this.domNode.data=this.text):c.prototype.insertAt.call(this,d,f,p)},u.prototype.length=function(){return this.text.length},u.prototype.optimize=function(d){c.prototype.optimize.call(this,d),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof u&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},u.prototype.position=function(d,f){return[this.domNode,d]},u.prototype.split=function(d,f){if(f===void 0&&(f=!1),!f){if(d===0)return this;if(d===this.length())return this.next}var p=s.create(this.domNode.splitText(d));return this.parent.insertBefore(p,this.next),this.text=this.statics.value(this.domNode),p},u.prototype.update=function(d,f){var p=this;d.some(function(h){return h.type==="characterData"&&h.target===p.domNode})&&(this.text=this.statics.value(this.domNode))},u.prototype.value=function(){return this.text},u.blotName="text",u.scope=s.Scope.INLINE_BLOT,u}(o.default);r.default=l},function(n,r,i){var a=document.createElement("div");if(a.classList.toggle("test-class",!1),a.classList.contains("test-class")){var o=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(s,l){return arguments.length>1&&!this.contains(s)==!l?l:o.call(this,s)}}String.prototype.startsWith||(String.prototype.startsWith=function(s,l){return l=l||0,this.substr(l,s.length)===s}),String.prototype.endsWith||(String.prototype.endsWith=function(s,l){var c=this.toString();(typeof l!="number"||!isFinite(l)||Math.floor(l)!==l||l>c.length)&&(l=c.length),l-=s.length;var u=c.indexOf(s,l);return u!==-1&&u===l}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(l){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof l!="function")throw new TypeError("predicate must be a function");for(var c=Object(this),u=c.length>>>0,d=arguments[1],f,p=0;p<u;p++)if(f=c[p],l.call(d,f,p,c))return f}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(n,r){var i=-1,a=1,o=0;function s(S,C,w){if(S==C)return S?[[o,S]]:[];(w<0||S.length<w)&&(w=null);var x=d(S,C),T=S.substring(0,x);S=S.substring(x),C=C.substring(x),x=f(S,C);var A=S.substring(S.length-x);S=S.substring(0,S.length-x),C=C.substring(0,C.length-x);var I=l(S,C);return T&&I.unshift([o,T]),A&&I.push([o,A]),h(I),w!=null&&(I=v(I,w)),I=y(I),I}function l(S,C){var w;if(!S)return[[a,C]];if(!C)return[[i,S]];var x=S.length>C.length?S:C,T=S.length>C.length?C:S,A=x.indexOf(T);if(A!=-1)return w=[[a,x.substring(0,A)],[o,T],[a,x.substring(A+T.length)]],S.length>C.length&&(w[0][0]=w[2][0]=i),w;if(T.length==1)return[[i,S],[a,C]];var I=p(S,C);if(I){var R=I[0],N=I[1],P=I[2],L=I[3],$=I[4],D=s(R,P),z=s(N,L);return D.concat([[o,$]],z)}return c(S,C)}function c(S,C){for(var w=S.length,x=C.length,T=Math.ceil((w+x)/2),A=T,I=2*T,R=new Array(I),N=new Array(I),P=0;P<I;P++)R[P]=-1,N[P]=-1;R[A+1]=0,N[A+1]=0;for(var L=w-x,$=L%2!=0,D=0,z=0,U=0,H=0,M=0;M<T;M++){for(var B=-M+D;B<=M-z;B+=2){var k=A+B,F;B==-M||B!=M&&R[k-1]<R[k+1]?F=R[k+1]:F=R[k-1]+1;for(var G=F-B;F<w&&G<x&&S.charAt(F)==C.charAt(G);)F++,G++;if(R[k]=F,F>w)z+=2;else if(G>x)D+=2;else if($){var q=A+L-B;if(q>=0&&q<I&&N[q]!=-1){var W=w-N[q];if(F>=W)return u(S,C,F,G)}}}for(var K=-M+U;K<=M-H;K+=2){var q=A+K,W;K==-M||K!=M&&N[q-1]<N[q+1]?W=N[q+1]:W=N[q-1]+1;for(var J=W-K;W<w&&J<x&&S.charAt(w-W-1)==C.charAt(x-J-1);)W++,J++;if(N[q]=W,W>w)H+=2;else if(J>x)U+=2;else if(!$){var k=A+L-K;if(k>=0&&k<I&&R[k]!=-1){var F=R[k],G=A+F-k;if(W=w-W,F>=W)return u(S,C,F,G)}}}}return[[i,S],[a,C]]}function u(S,C,w,x){var T=S.substring(0,w),A=C.substring(0,x),I=S.substring(w),R=C.substring(x),N=s(T,A),P=s(I,R);return N.concat(P)}function d(S,C){if(!S||!C||S.charAt(0)!=C.charAt(0))return 0;for(var w=0,x=Math.min(S.length,C.length),T=x,A=0;w<T;)S.substring(A,T)==C.substring(A,T)?(w=T,A=w):x=T,T=Math.floor((x-w)/2+w);return T}function f(S,C){if(!S||!C||S.charAt(S.length-1)!=C.charAt(C.length-1))return 0;for(var w=0,x=Math.min(S.length,C.length),T=x,A=0;w<T;)S.substring(S.length-T,S.length-A)==C.substring(C.length-T,C.length-A)?(w=T,A=w):x=T,T=Math.floor((x-w)/2+w);return T}function p(S,C){var w=S.length>C.length?S:C,x=S.length>C.length?C:S;if(w.length<4||x.length*2<w.length)return null;function T(z,U,H){for(var M=z.substring(H,H+Math.floor(z.length/4)),B=-1,k="",F,G,q,W;(B=U.indexOf(M,B+1))!=-1;){var K=d(z.substring(H),U.substring(B)),J=f(z.substring(0,H),U.substring(0,B));k.length<J+K&&(k=U.substring(B-J,B)+U.substring(B,B+K),F=z.substring(0,H-J),G=z.substring(H+K),q=U.substring(0,B-J),W=U.substring(B+K))}return k.length*2>=z.length?[F,G,q,W,k]:null}var A=T(w,x,Math.ceil(w.length/4)),I=T(w,x,Math.ceil(w.length/2)),R;if(!A&&!I)return null;I?A?R=A[4].length>I[4].length?A:I:R=I:R=A;var N,P,L,$;S.length>C.length?(N=R[0],P=R[1],L=R[2],$=R[3]):(L=R[0],$=R[1],N=R[2],P=R[3]);var D=R[4];return[N,P,L,$,D]}function h(S){S.push([o,""]);for(var C=0,w=0,x=0,T="",A="",I;C<S.length;)switch(S[C][0]){case a:x++,A+=S[C][1],C++;break;case i:w++,T+=S[C][1],C++;break;case o:w+x>1?(w!==0&&x!==0&&(I=d(A,T),I!==0&&(C-w-x>0&&S[C-w-x-1][0]==o?S[C-w-x-1][1]+=A.substring(0,I):(S.splice(0,0,[o,A.substring(0,I)]),C++),A=A.substring(I),T=T.substring(I)),I=f(A,T),I!==0&&(S[C][1]=A.substring(A.length-I)+S[C][1],A=A.substring(0,A.length-I),T=T.substring(0,T.length-I))),w===0?S.splice(C-x,w+x,[a,A]):x===0?S.splice(C-w,w+x,[i,T]):S.splice(C-w-x,w+x,[i,T],[a,A]),C=C-w-x+(w?1:0)+(x?1:0)+1):C!==0&&S[C-1][0]==o?(S[C-1][1]+=S[C][1],S.splice(C,1)):C++,x=0,w=0,T="",A="";break}S[S.length-1][1]===""&&S.pop();var R=!1;for(C=1;C<S.length-1;)S[C-1][0]==o&&S[C+1][0]==o&&(S[C][1].substring(S[C][1].length-S[C-1][1].length)==S[C-1][1]?(S[C][1]=S[C-1][1]+S[C][1].substring(0,S[C][1].length-S[C-1][1].length),S[C+1][1]=S[C-1][1]+S[C+1][1],S.splice(C-1,1),R=!0):S[C][1].substring(0,S[C+1][1].length)==S[C+1][1]&&(S[C-1][1]+=S[C+1][1],S[C][1]=S[C][1].substring(S[C+1][1].length)+S[C+1][1],S.splice(C+1,1),R=!0)),C++;R&&h(S)}var m=s;m.INSERT=a,m.DELETE=i,m.EQUAL=o,n.exports=m;function g(S,C){if(C===0)return[o,S];for(var w=0,x=0;x<S.length;x++){var T=S[x];if(T[0]===i||T[0]===o){var A=w+T[1].length;if(C===A)return[x+1,S];if(C<A){S=S.slice();var I=C-w,R=[T[0],T[1].slice(0,I)],N=[T[0],T[1].slice(I)];return S.splice(x,1,R,N),[x+1,S]}else w=A}}throw new Error("cursor_pos is out of bounds!")}function v(S,C){var w=g(S,C),x=w[1],T=w[0],A=x[T],I=x[T+1];if(A==null)return S;if(A[0]!==o)return S;if(I!=null&&A[1]+I[1]===I[1]+A[1])return x.splice(T,2,I,A),_(x,T,2);if(I!=null&&I[1].indexOf(A[1])===0){x.splice(T,2,[I[0],A[1]],[0,A[1]]);var R=I[1].slice(A[1].length);return R.length>0&&x.splice(T+2,0,[I[0],R]),_(x,T,3)}else return S}function y(S){for(var C=!1,w=function(I){return I.charCodeAt(0)>=56320&&I.charCodeAt(0)<=57343},x=function(I){return I.charCodeAt(I.length-1)>=55296&&I.charCodeAt(I.length-1)<=56319},T=2;T<S.length;T+=1)S[T-2][0]===o&&x(S[T-2][1])&&S[T-1][0]===i&&w(S[T-1][1])&&S[T][0]===a&&w(S[T][1])&&(C=!0,S[T-1][1]=S[T-2][1].slice(-1)+S[T-1][1],S[T][1]=S[T-2][1].slice(-1)+S[T][1],S[T-2][1]=S[T-2][1].slice(0,-1));if(!C)return S;for(var A=[],T=0;T<S.length;T+=1)S[T][1].length>0&&A.push(S[T]);return A}function _(S,C,w){for(var x=C+w-1;x>=0&&x>=C-1;x--)if(x+1<S.length){var T=S[x],A=S[x+1];T[0]===A[1]&&S.splice(x,2,[T[0],T[1]+A[1]])}return S}},function(n,r){r=n.exports=typeof Object.keys=="function"?Object.keys:i,r.shim=i;function i(a){var o=[];for(var s in a)o.push(s);return o}},function(n,r){var i=function(){return Object.prototype.toString.call(arguments)}()=="[object Arguments]";r=n.exports=i?a:o,r.supported=a;function a(s){return Object.prototype.toString.call(s)=="[object Arguments]"}r.unsupported=o;function o(s){return s&&typeof s=="object"&&typeof s.length=="number"&&Object.prototype.hasOwnProperty.call(s,"callee")&&!Object.prototype.propertyIsEnumerable.call(s,"callee")||!1}},function(n,r){var i=Object.prototype.hasOwnProperty,a="~";function o(){}Object.create&&(o.prototype=Object.create(null),new o().__proto__||(a=!1));function s(c,u,d){this.fn=c,this.context=u,this.once=d||!1}function l(){this._events=new o,this._eventsCount=0}l.prototype.eventNames=function(){var u=[],d,f;if(this._eventsCount===0)return u;for(f in d=this._events)i.call(d,f)&&u.push(a?f.slice(1):f);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(d)):u},l.prototype.listeners=function(u,d){var f=a?a+u:u,p=this._events[f];if(d)return!!p;if(!p)return[];if(p.fn)return[p.fn];for(var h=0,m=p.length,g=new Array(m);h<m;h++)g[h]=p[h].fn;return g},l.prototype.emit=function(u,d,f,p,h,m){var g=a?a+u:u;if(!this._events[g])return!1;var v=this._events[g],y=arguments.length,_,S;if(v.fn){switch(v.once&&this.removeListener(u,v.fn,void 0,!0),y){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,d),!0;case 3:return v.fn.call(v.context,d,f),!0;case 4:return v.fn.call(v.context,d,f,p),!0;case 5:return v.fn.call(v.context,d,f,p,h),!0;case 6:return v.fn.call(v.context,d,f,p,h,m),!0}for(S=1,_=new Array(y-1);S<y;S++)_[S-1]=arguments[S];v.fn.apply(v.context,_)}else{var C=v.length,w;for(S=0;S<C;S++)switch(v[S].once&&this.removeListener(u,v[S].fn,void 0,!0),y){case 1:v[S].fn.call(v[S].context);break;case 2:v[S].fn.call(v[S].context,d);break;case 3:v[S].fn.call(v[S].context,d,f);break;case 4:v[S].fn.call(v[S].context,d,f,p);break;default:if(!_)for(w=1,_=new Array(y-1);w<y;w++)_[w-1]=arguments[w];v[S].fn.apply(v[S].context,_)}}return!0},l.prototype.on=function(u,d,f){var p=new s(d,f||this),h=a?a+u:u;return this._events[h]?this._events[h].fn?this._events[h]=[this._events[h],p]:this._events[h].push(p):(this._events[h]=p,this._eventsCount++),this},l.prototype.once=function(u,d,f){var p=new s(d,f||this,!0),h=a?a+u:u;return this._events[h]?this._events[h].fn?this._events[h]=[this._events[h],p]:this._events[h].push(p):(this._events[h]=p,this._eventsCount++),this},l.prototype.removeListener=function(u,d,f,p){var h=a?a+u:u;if(!this._events[h])return this;if(!d)return--this._eventsCount===0?this._events=new o:delete this._events[h],this;var m=this._events[h];if(m.fn)m.fn===d&&(!p||m.once)&&(!f||m.context===f)&&(--this._eventsCount===0?this._events=new o:delete this._events[h]);else{for(var g=0,v=[],y=m.length;g<y;g++)(m[g].fn!==d||p&&!m[g].once||f&&m[g].context!==f)&&v.push(m[g]);v.length?this._events[h]=v.length===1?v[0]:v:--this._eventsCount===0?this._events=new o:delete this._events[h]}return this},l.prototype.removeAllListeners=function(u){var d;return u?(d=a?a+u:u,this._events[d]&&(--this._eventsCount===0?this._events=new o:delete this._events[d])):(this._events=new o,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prototype.setMaxListeners=function(){return this},l.prefixed=a,l.EventEmitter=l,typeof n<"u"&&(n.exports=l)},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.matchText=r.matchSpacing=r.matchNewline=r.matchBlot=r.matchAttributor=r.default=void 0;var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ce){return typeof ce}:function(ce){return ce&&typeof Symbol=="function"&&ce.constructor===Symbol&&ce!==Symbol.prototype?"symbol":typeof ce},o=function(){function ce(he,ye){var me=[],_e=!0,Te=!1,xe=void 0;try{for(var De=he[Symbol.iterator](),Pe;!(_e=(Pe=De.next()).done)&&(me.push(Pe.value),!(ye&&me.length===ye));_e=!0);}catch(Le){Te=!0,xe=Le}finally{try{!_e&&De.return&&De.return()}finally{if(Te)throw xe}}return me}return function(he,ye){if(Array.isArray(he))return he;if(Symbol.iterator in Object(he))return ce(he,ye);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function ce(he,ye){for(var me=0;me<ye.length;me++){var _e=ye[me];_e.enumerable=_e.enumerable||!1,_e.configurable=!0,"value"in _e&&(_e.writable=!0),Object.defineProperty(he,_e.key,_e)}}return function(he,ye,me){return ye&&ce(he.prototype,ye),me&&ce(he,me),he}}(),l=i(3),c=N(l),u=i(2),d=N(u),f=i(0),p=N(f),h=i(5),m=N(h),g=i(10),v=N(g),y=i(9),_=N(y),S=i(36),C=i(37),w=i(13),x=N(w),T=i(26),A=i(38),I=i(39),R=i(40);function N(ce){return ce&&ce.__esModule?ce:{default:ce}}function P(ce,he,ye){return he in ce?Object.defineProperty(ce,he,{value:ye,enumerable:!0,configurable:!0,writable:!0}):ce[he]=ye,ce}function L(ce,he){if(!(ce instanceof he))throw new TypeError("Cannot call a class as a function")}function $(ce,he){if(!ce)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return he&&(typeof he=="object"||typeof he=="function")?he:ce}function D(ce,he){if(typeof he!="function"&&he!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof he);ce.prototype=Object.create(he&&he.prototype,{constructor:{value:ce,enumerable:!1,writable:!0,configurable:!0}}),he&&(Object.setPrototypeOf?Object.setPrototypeOf(ce,he):ce.__proto__=he)}var z=(0,v.default)("quill:clipboard"),U="__ql-matcher",H=[[Node.TEXT_NODE,Ee],[Node.TEXT_NODE,fe],["br",re],[Node.ELEMENT_NODE,fe],[Node.ELEMENT_NODE,ae],[Node.ELEMENT_NODE,ge],[Node.ELEMENT_NODE,te],[Node.ELEMENT_NODE,oe],["li",de],["b",J.bind(J,"bold")],["i",J.bind(J,"italic")],["style",ue]],M=[S.AlignAttribute,A.DirectionAttribute].reduce(function(ce,he){return ce[he.keyName]=he,ce},{}),B=[S.AlignStyle,C.BackgroundStyle,T.ColorStyle,A.DirectionStyle,I.FontStyle,R.SizeStyle].reduce(function(ce,he){return ce[he.keyName]=he,ce},{}),k=function(ce){D(he,ce);function he(ye,me){L(this,he);var _e=$(this,(he.__proto__||Object.getPrototypeOf(he)).call(this,ye,me));return _e.quill.root.addEventListener("paste",_e.onPaste.bind(_e)),_e.container=_e.quill.addContainer("ql-clipboard"),_e.container.setAttribute("contenteditable",!0),_e.container.setAttribute("tabindex",-1),_e.matchers=[],H.concat(_e.options.matchers).forEach(function(Te){var xe=o(Te,2),De=xe[0],Pe=xe[1];!me.matchVisual&&Pe===ge||_e.addMatcher(De,Pe)}),_e}return s(he,[{key:"addMatcher",value:function(me,_e){this.matchers.push([me,_e])}},{key:"convert",value:function(me){if(typeof me=="string")return this.container.innerHTML=me.replace(/\>\r?\n +\</g,"><"),this.convert();var _e=this.quill.getFormat(this.quill.selection.savedRange.index);if(_e[x.default.blotName]){var Te=this.container.innerText;return this.container.innerHTML="",new d.default().insert(Te,P({},x.default.blotName,_e[x.default.blotName]))}var xe=this.prepareMatching(),De=o(xe,2),Pe=De[0],Le=De[1],ze=K(this.container,Pe,Le);return q(ze,`
`)&&ze.ops[ze.ops.length-1].attributes==null&&(ze=ze.compose(new d.default().retain(ze.length()-1).delete(1))),z.log("convert",this.container.innerHTML,ze),this.container.innerHTML="",ze}},{key:"dangerouslyPasteHTML",value:function(me,_e){var Te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:m.default.sources.API;if(typeof me=="string")this.quill.setContents(this.convert(me),_e),this.quill.setSelection(0,m.default.sources.SILENT);else{var xe=this.convert(_e);this.quill.updateContents(new d.default().retain(me).concat(xe),Te),this.quill.setSelection(me+xe.length(),m.default.sources.SILENT)}}},{key:"onPaste",value:function(me){var _e=this;if(!(me.defaultPrevented||!this.quill.isEnabled())){var Te=this.quill.getSelection(),xe=new d.default().retain(Te.index),De=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(m.default.sources.SILENT),setTimeout(function(){xe=xe.concat(_e.convert()).delete(Te.length),_e.quill.updateContents(xe,m.default.sources.USER),_e.quill.setSelection(xe.length()-Te.length,m.default.sources.SILENT),_e.quill.scrollingContainer.scrollTop=De,_e.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var me=this,_e=[],Te=[];return this.matchers.forEach(function(xe){var De=o(xe,2),Pe=De[0],Le=De[1];switch(Pe){case Node.TEXT_NODE:Te.push(Le);break;case Node.ELEMENT_NODE:_e.push(Le);break;default:[].forEach.call(me.container.querySelectorAll(Pe),function(ze){ze[U]=ze[U]||[],ze[U].push(Le)});break}}),[_e,Te]}}]),he}(_.default);k.DEFAULTS={matchers:[],matchVisual:!0};function F(ce,he,ye){return(typeof he>"u"?"undefined":a(he))==="object"?Object.keys(he).reduce(function(me,_e){return F(me,_e,he[_e])},ce):ce.reduce(function(me,_e){return _e.attributes&&_e.attributes[he]?me.push(_e):me.insert(_e.insert,(0,c.default)({},P({},he,ye),_e.attributes))},new d.default)}function G(ce){if(ce.nodeType!==Node.ELEMENT_NODE)return{};var he="__ql-computed-style";return ce[he]||(ce[he]=window.getComputedStyle(ce))}function q(ce,he){for(var ye="",me=ce.ops.length-1;me>=0&&ye.length<he.length;--me){var _e=ce.ops[me];if(typeof _e.insert!="string")break;ye=_e.insert+ye}return ye.slice(-1*he.length)===he}function W(ce){if(ce.childNodes.length===0)return!1;var he=G(ce);return["block","list-item"].indexOf(he.display)>-1}function K(ce,he,ye){return ce.nodeType===ce.TEXT_NODE?ye.reduce(function(me,_e){return _e(ce,me)},new d.default):ce.nodeType===ce.ELEMENT_NODE?[].reduce.call(ce.childNodes||[],function(me,_e){var Te=K(_e,he,ye);return _e.nodeType===ce.ELEMENT_NODE&&(Te=he.reduce(function(xe,De){return De(_e,xe)},Te),Te=(_e[U]||[]).reduce(function(xe,De){return De(_e,xe)},Te)),me.concat(Te)},new d.default):new d.default}function J(ce,he,ye){return F(ye,ce,!0)}function te(ce,he){var ye=p.default.Attributor.Attribute.keys(ce),me=p.default.Attributor.Class.keys(ce),_e=p.default.Attributor.Style.keys(ce),Te={};return ye.concat(me).concat(_e).forEach(function(xe){var De=p.default.query(xe,p.default.Scope.ATTRIBUTE);De!=null&&(Te[De.attrName]=De.value(ce),Te[De.attrName])||(De=M[xe],De!=null&&(De.attrName===xe||De.keyName===xe)&&(Te[De.attrName]=De.value(ce)||void 0),De=B[xe],De!=null&&(De.attrName===xe||De.keyName===xe)&&(De=B[xe],Te[De.attrName]=De.value(ce)||void 0))}),Object.keys(Te).length>0&&(he=F(he,Te)),he}function ae(ce,he){var ye=p.default.query(ce);if(ye==null)return he;if(ye.prototype instanceof p.default.Embed){var me={},_e=ye.value(ce);_e!=null&&(me[ye.blotName]=_e,he=new d.default().insert(me,ye.formats(ce)))}else typeof ye.formats=="function"&&(he=F(he,ye.blotName,ye.formats(ce)));return he}function re(ce,he){return q(he,`
`)||he.insert(`
`),he}function ue(){return new d.default}function de(ce,he){var ye=p.default.query(ce);if(ye==null||ye.blotName!=="list-item"||!q(he,`
`))return he;for(var me=-1,_e=ce.parentNode;!_e.classList.contains("ql-clipboard");)(p.default.query(_e)||{}).blotName==="list"&&(me+=1),_e=_e.parentNode;return me<=0?he:he.compose(new d.default().retain(he.length()-1).retain(1,{indent:me}))}function fe(ce,he){return q(he,`
`)||(W(ce)||he.length()>0&&ce.nextSibling&&W(ce.nextSibling))&&he.insert(`
`),he}function ge(ce,he){if(W(ce)&&ce.nextElementSibling!=null&&!q(he,`

`)){var ye=ce.offsetHeight+parseFloat(G(ce).marginTop)+parseFloat(G(ce).marginBottom);ce.nextElementSibling.offsetTop>ce.offsetTop+ye*1.5&&he.insert(`
`)}return he}function oe(ce,he){var ye={},me=ce.style||{};return me.fontStyle&&G(ce).fontStyle==="italic"&&(ye.italic=!0),me.fontWeight&&(G(ce).fontWeight.startsWith("bold")||parseInt(G(ce).fontWeight)>=700)&&(ye.bold=!0),Object.keys(ye).length>0&&(he=F(he,ye)),parseFloat(me.textIndent||0)>0&&(he=new d.default().insert("	").concat(he)),he}function Ee(ce,he){var ye=ce.data;if(ce.parentNode.tagName==="O:P")return he.insert(ye.trim());if(ye.trim().length===0&&ce.parentNode.classList.contains("ql-clipboard"))return he;if(!G(ce.parentNode).whiteSpace.startsWith("pre")){var me=function(Te,xe){return xe=xe.replace(/[^\u00a0]/g,""),xe.length<1&&Te?" ":xe};ye=ye.replace(/\r\n/g," ").replace(/\n/g," "),ye=ye.replace(/\s\s+/g,me.bind(me,!0)),(ce.previousSibling==null&&W(ce.parentNode)||ce.previousSibling!=null&&W(ce.previousSibling))&&(ye=ye.replace(/^\s+/,me.bind(me,!1))),(ce.nextSibling==null&&W(ce.parentNode)||ce.nextSibling!=null&&W(ce.nextSibling))&&(ye=ye.replace(/\s+$/,me.bind(me,!1)))}return he.insert(ye)}r.default=k,r.matchAttributor=te,r.matchBlot=ae,r.matchNewline=fe,r.matchSpacing=ge,r.matchText=Ee},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function h(m,g){for(var v=0;v<g.length;v++){var y=g[v];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(m,y.key,y)}}return function(m,g,v){return g&&h(m.prototype,g),v&&h(m,v),m}}(),o=function h(m,g,v){m===null&&(m=Function.prototype);var y=Object.getOwnPropertyDescriptor(m,g);if(y===void 0){var _=Object.getPrototypeOf(m);return _===null?void 0:h(_,g,v)}else{if("value"in y)return y.value;var S=y.get;return S===void 0?void 0:S.call(v)}},s=i(6),l=c(s);function c(h){return h&&h.__esModule?h:{default:h}}function u(h,m){if(!(h instanceof m))throw new TypeError("Cannot call a class as a function")}function d(h,m){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:h}function f(h,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);h.prototype=Object.create(m&&m.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(h,m):h.__proto__=m)}var p=function(h){f(m,h);function m(){return u(this,m),d(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return a(m,[{key:"optimize",value:function(v){o(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"optimize",this).call(this,v),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return o(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),m}(l.default);p.blotName="bold",p.tagName=["STRONG","B"],r.default=p},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.addControls=r.default=void 0;var a=function(){function R(N,P){var L=[],$=!0,D=!1,z=void 0;try{for(var U=N[Symbol.iterator](),H;!($=(H=U.next()).done)&&(L.push(H.value),!(P&&L.length===P));$=!0);}catch(M){D=!0,z=M}finally{try{!$&&U.return&&U.return()}finally{if(D)throw z}}return L}return function(N,P){if(Array.isArray(N))return N;if(Symbol.iterator in Object(N))return R(N,P);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function R(N,P){for(var L=0;L<P.length;L++){var $=P[L];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(N,$.key,$)}}return function(N,P,L){return P&&R(N.prototype,P),L&&R(N,L),N}}(),s=i(2),l=v(s),c=i(0),u=v(c),d=i(5),f=v(d),p=i(10),h=v(p),m=i(9),g=v(m);function v(R){return R&&R.__esModule?R:{default:R}}function y(R,N,P){return N in R?Object.defineProperty(R,N,{value:P,enumerable:!0,configurable:!0,writable:!0}):R[N]=P,R}function _(R,N){if(!(R instanceof N))throw new TypeError("Cannot call a class as a function")}function S(R,N){if(!R)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N&&(typeof N=="object"||typeof N=="function")?N:R}function C(R,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof N);R.prototype=Object.create(N&&N.prototype,{constructor:{value:R,enumerable:!1,writable:!0,configurable:!0}}),N&&(Object.setPrototypeOf?Object.setPrototypeOf(R,N):R.__proto__=N)}var w=(0,h.default)("quill:toolbar"),x=function(R){C(N,R);function N(P,L){_(this,N);var $=S(this,(N.__proto__||Object.getPrototypeOf(N)).call(this,P,L));if(Array.isArray($.options.container)){var D=document.createElement("div");A(D,$.options.container),P.container.parentNode.insertBefore(D,P.container),$.container=D}else typeof $.options.container=="string"?$.container=document.querySelector($.options.container):$.container=$.options.container;if(!($.container instanceof HTMLElement)){var z;return z=w.error("Container required for toolbar",$.options),S($,z)}return $.container.classList.add("ql-toolbar"),$.controls=[],$.handlers={},Object.keys($.options.handlers).forEach(function(U){$.addHandler(U,$.options.handlers[U])}),[].forEach.call($.container.querySelectorAll("button, select"),function(U){$.attach(U)}),$.quill.on(f.default.events.EDITOR_CHANGE,function(U,H){U===f.default.events.SELECTION_CHANGE&&$.update(H)}),$.quill.on(f.default.events.SCROLL_OPTIMIZE,function(){var U=$.quill.selection.getRange(),H=a(U,1),M=H[0];$.update(M)}),$}return o(N,[{key:"addHandler",value:function(L,$){this.handlers[L]=$}},{key:"attach",value:function(L){var $=this,D=[].find.call(L.classList,function(U){return U.indexOf("ql-")===0});if(D){if(D=D.slice(3),L.tagName==="BUTTON"&&L.setAttribute("type","button"),this.handlers[D]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[D]==null){w.warn("ignoring attaching to disabled format",D,L);return}if(u.default.query(D)==null){w.warn("ignoring attaching to nonexistent format",D,L);return}}var z=L.tagName==="SELECT"?"change":"click";L.addEventListener(z,function(U){var H=void 0;if(L.tagName==="SELECT"){if(L.selectedIndex<0)return;var M=L.options[L.selectedIndex];M.hasAttribute("selected")?H=!1:H=M.value||!1}else L.classList.contains("ql-active")?H=!1:H=L.value||!L.hasAttribute("value"),U.preventDefault();$.quill.focus();var B=$.quill.selection.getRange(),k=a(B,1),F=k[0];if($.handlers[D]!=null)$.handlers[D].call($,H);else if(u.default.query(D).prototype instanceof u.default.Embed){if(H=prompt("Enter "+D),!H)return;$.quill.updateContents(new l.default().retain(F.index).delete(F.length).insert(y({},D,H)),f.default.sources.USER)}else $.quill.format(D,H,f.default.sources.USER);$.update(F)}),this.controls.push([D,L])}}},{key:"update",value:function(L){var $=L==null?{}:this.quill.getFormat(L);this.controls.forEach(function(D){var z=a(D,2),U=z[0],H=z[1];if(H.tagName==="SELECT"){var M=void 0;if(L==null)M=null;else if($[U]==null)M=H.querySelector("option[selected]");else if(!Array.isArray($[U])){var B=$[U];typeof B=="string"&&(B=B.replace(/\"/g,'\\"')),M=H.querySelector('option[value="'+B+'"]')}M==null?(H.value="",H.selectedIndex=-1):M.selected=!0}else if(L==null)H.classList.remove("ql-active");else if(H.hasAttribute("value")){var k=$[U]===H.getAttribute("value")||$[U]!=null&&$[U].toString()===H.getAttribute("value")||$[U]==null&&!H.getAttribute("value");H.classList.toggle("ql-active",k)}else H.classList.toggle("ql-active",$[U]!=null)})}}]),N}(g.default);x.DEFAULTS={};function T(R,N,P){var L=document.createElement("button");L.setAttribute("type","button"),L.classList.add("ql-"+N),P!=null&&(L.value=P),R.appendChild(L)}function A(R,N){Array.isArray(N[0])||(N=[N]),N.forEach(function(P){var L=document.createElement("span");L.classList.add("ql-formats"),P.forEach(function($){if(typeof $=="string")T(L,$);else{var D=Object.keys($)[0],z=$[D];Array.isArray(z)?I(L,D,z):T(L,D,z)}}),R.appendChild(L)})}function I(R,N,P){var L=document.createElement("select");L.classList.add("ql-"+N),P.forEach(function($){var D=document.createElement("option");$!==!1?D.setAttribute("value",$):D.setAttribute("selected","selected"),L.appendChild(D)}),R.appendChild(L)}x.DEFAULTS={container:null,handlers:{clean:function(){var N=this,P=this.quill.getSelection();if(P!=null)if(P.length==0){var L=this.quill.getFormat();Object.keys(L).forEach(function($){u.default.query($,u.default.Scope.INLINE)!=null&&N.quill.format($,!1)})}else this.quill.removeFormat(P,f.default.sources.USER)},direction:function(N){var P=this.quill.getFormat().align;N==="rtl"&&P==null?this.quill.format("align","right",f.default.sources.USER):!N&&P==="right"&&this.quill.format("align",!1,f.default.sources.USER),this.quill.format("direction",N,f.default.sources.USER)},indent:function(N){var P=this.quill.getSelection(),L=this.quill.getFormat(P),$=parseInt(L.indent||0);if(N==="+1"||N==="-1"){var D=N==="+1"?1:-1;L.direction==="rtl"&&(D*=-1),this.quill.format("indent",$+D,f.default.sources.USER)}},link:function(N){N===!0&&(N=prompt("Enter link URL:")),this.quill.format("link",N,f.default.sources.USER)},list:function(N){var P=this.quill.getSelection(),L=this.quill.getFormat(P);N==="check"?L.list==="checked"||L.list==="unchecked"?this.quill.format("list",!1,f.default.sources.USER):this.quill.format("list","unchecked",f.default.sources.USER):this.quill.format("list",N,f.default.sources.USER)}}},r.default=x,r.addControls=A},function(n,r){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,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function h(m,g){for(var v=0;v<g.length;v++){var y=g[v];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(m,y.key,y)}}return function(m,g,v){return g&&h(m.prototype,g),v&&h(m,v),m}}(),o=function h(m,g,v){m===null&&(m=Function.prototype);var y=Object.getOwnPropertyDescriptor(m,g);if(y===void 0){var _=Object.getPrototypeOf(m);return _===null?void 0:h(_,g,v)}else{if("value"in y)return y.value;var S=y.get;return S===void 0?void 0:S.call(v)}},s=i(28),l=c(s);function c(h){return h&&h.__esModule?h:{default:h}}function u(h,m){if(!(h instanceof m))throw new TypeError("Cannot call a class as a function")}function d(h,m){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:h}function f(h,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);h.prototype=Object.create(m&&m.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(h,m):h.__proto__=m)}var p=function(h){f(m,h);function m(g,v){u(this,m);var y=d(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,g));return y.label.innerHTML=v,y.container.classList.add("ql-color-picker"),[].slice.call(y.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(_){_.classList.add("ql-primary")}),y}return a(m,[{key:"buildItem",value:function(v){var y=o(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"buildItem",this).call(this,v);return y.style.backgroundColor=v.getAttribute("value")||"",y}},{key:"selectItem",value:function(v,y){o(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"selectItem",this).call(this,v,y);var _=this.label.querySelector(".ql-color-label"),S=v&&v.getAttribute("data-value")||"";_&&(_.tagName==="line"?_.style.stroke=S:_.style.fill=S)}}]),m}(l.default);r.default=p},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function h(m,g){for(var v=0;v<g.length;v++){var y=g[v];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(m,y.key,y)}}return function(m,g,v){return g&&h(m.prototype,g),v&&h(m,v),m}}(),o=function h(m,g,v){m===null&&(m=Function.prototype);var y=Object.getOwnPropertyDescriptor(m,g);if(y===void 0){var _=Object.getPrototypeOf(m);return _===null?void 0:h(_,g,v)}else{if("value"in y)return y.value;var S=y.get;return S===void 0?void 0:S.call(v)}},s=i(28),l=c(s);function c(h){return h&&h.__esModule?h:{default:h}}function u(h,m){if(!(h instanceof m))throw new TypeError("Cannot call a class as a function")}function d(h,m){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:h}function f(h,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);h.prototype=Object.create(m&&m.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(h,m):h.__proto__=m)}var p=function(h){f(m,h);function m(g,v){u(this,m);var y=d(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,g));return y.container.classList.add("ql-icon-picker"),[].forEach.call(y.container.querySelectorAll(".ql-picker-item"),function(_){_.innerHTML=v[_.getAttribute("data-value")||""]}),y.defaultItem=y.container.querySelector(".ql-selected"),y.selectItem(y.defaultItem),y}return a(m,[{key:"selectItem",value:function(v,y){o(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"selectItem",this).call(this,v,y),v=v||this.defaultItem,this.label.innerHTML=v.innerHTML}}]),m}(l.default);r.default=p},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function l(c,u){for(var d=0;d<u.length;d++){var f=u[d];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(c,f.key,f)}}return function(c,u,d){return u&&l(c.prototype,u),d&&l(c,d),c}}();function o(l,c){if(!(l instanceof c))throw new TypeError("Cannot call a class as a function")}var s=function(){function l(c,u){var d=this;o(this,l),this.quill=c,this.boundsContainer=u||document.body,this.root=c.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){d.root.style.marginTop=-1*d.quill.root.scrollTop+"px"}),this.hide()}return a(l,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(u){var d=u.left+u.width/2-this.root.offsetWidth/2,f=u.bottom+this.quill.root.scrollTop;this.root.style.left=d+"px",this.root.style.top=f+"px",this.root.classList.remove("ql-flip");var p=this.boundsContainer.getBoundingClientRect(),h=this.root.getBoundingClientRect(),m=0;if(h.right>p.right&&(m=p.right-h.right,this.root.style.left=d+m+"px"),h.left<p.left&&(m=p.left-h.left,this.root.style.left=d+m+"px"),h.bottom>p.bottom){var g=h.bottom-h.top,v=u.bottom-u.top+g;this.root.style.top=f-v+"px",this.root.classList.add("ql-flip")}return m}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),l}();r.default=s},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function I(R,N){var P=[],L=!0,$=!1,D=void 0;try{for(var z=R[Symbol.iterator](),U;!(L=(U=z.next()).done)&&(P.push(U.value),!(N&&P.length===N));L=!0);}catch(H){$=!0,D=H}finally{try{!L&&z.return&&z.return()}finally{if($)throw D}}return P}return function(R,N){if(Array.isArray(R))return R;if(Symbol.iterator in Object(R))return I(R,N);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function I(R,N,P){R===null&&(R=Function.prototype);var L=Object.getOwnPropertyDescriptor(R,N);if(L===void 0){var $=Object.getPrototypeOf(R);return $===null?void 0:I($,N,P)}else{if("value"in L)return L.value;var D=L.get;return D===void 0?void 0:D.call(P)}},s=function(){function I(R,N){for(var P=0;P<N.length;P++){var L=N[P];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(R,L.key,L)}}return function(R,N,P){return N&&I(R.prototype,N),P&&I(R,P),R}}(),l=i(3),c=_(l),u=i(8),d=_(u),f=i(43),p=_(f),h=i(27),m=_(h),g=i(15),v=i(41),y=_(v);function _(I){return I&&I.__esModule?I:{default:I}}function S(I,R){if(!(I instanceof R))throw new TypeError("Cannot call a class as a function")}function C(I,R){if(!I)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return R&&(typeof R=="object"||typeof R=="function")?R:I}function w(I,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof R);I.prototype=Object.create(R&&R.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),R&&(Object.setPrototypeOf?Object.setPrototypeOf(I,R):I.__proto__=R)}var x=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],T=function(I){w(R,I);function R(N,P){S(this,R),P.modules.toolbar!=null&&P.modules.toolbar.container==null&&(P.modules.toolbar.container=x);var L=C(this,(R.__proto__||Object.getPrototypeOf(R)).call(this,N,P));return L.quill.container.classList.add("ql-snow"),L}return s(R,[{key:"extendToolbar",value:function(P){P.container.classList.add("ql-snow"),this.buildButtons([].slice.call(P.container.querySelectorAll("button")),y.default),this.buildPickers([].slice.call(P.container.querySelectorAll("select")),y.default),this.tooltip=new A(this.quill,this.options.bounds),P.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(L,$){P.handlers.link.call(P,!$.format.link)})}}]),R}(p.default);T.DEFAULTS=(0,c.default)(!0,{},p.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(R){if(R){var N=this.quill.getSelection();if(N==null||N.length==0)return;var P=this.quill.getText(N);/^\S+@\S+\.\S+$/.test(P)&&P.indexOf("mailto:")!==0&&(P="mailto:"+P);var L=this.quill.theme.tooltip;L.edit("link",P)}else this.quill.format("link",!1)}}}}});var A=function(I){w(R,I);function R(N,P){S(this,R);var L=C(this,(R.__proto__||Object.getPrototypeOf(R)).call(this,N,P));return L.preview=L.root.querySelector("a.ql-preview"),L}return s(R,[{key:"listen",value:function(){var P=this;o(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(L){P.root.classList.contains("ql-editing")?P.save():P.edit("link",P.preview.textContent),L.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(L){if(P.linkRange!=null){var $=P.linkRange;P.restoreFocus(),P.quill.formatText($,"link",!1,d.default.sources.USER),delete P.linkRange}L.preventDefault(),P.hide()}),this.quill.on(d.default.events.SELECTION_CHANGE,function(L,$,D){if(L!=null){if(L.length===0&&D===d.default.sources.USER){var z=P.quill.scroll.descendant(m.default,L.index),U=a(z,2),H=U[0],M=U[1];if(H!=null){P.linkRange=new g.Range(L.index-M,H.length());var B=m.default.formats(H.domNode);P.preview.textContent=B,P.preview.setAttribute("href",B),P.show(),P.position(P.quill.getBounds(P.linkRange));return}}else delete P.linkRange;P.hide()}})}},{key:"show",value:function(){o(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),R}(f.BaseTooltip);A.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(""),r.default=T},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=i(29),o=_e(a),s=i(36),l=i(38),c=i(64),u=i(65),d=_e(u),f=i(66),p=_e(f),h=i(67),m=_e(h),g=i(37),v=i(26),y=i(39),_=i(40),S=i(56),C=_e(S),w=i(68),x=_e(w),T=i(27),A=_e(T),I=i(69),R=_e(I),N=i(70),P=_e(N),L=i(71),$=_e(L),D=i(72),z=_e(D),U=i(73),H=_e(U),M=i(13),B=_e(M),k=i(74),F=_e(k),G=i(75),q=_e(G),W=i(57),K=_e(W),J=i(41),te=_e(J),ae=i(28),re=_e(ae),ue=i(59),de=_e(ue),fe=i(60),ge=_e(fe),oe=i(61),Ee=_e(oe),ce=i(108),he=_e(ce),ye=i(62),me=_e(ye);function _e(Te){return Te&&Te.__esModule?Te:{default:Te}}o.default.register({"attributors/attribute/direction":l.DirectionAttribute,"attributors/class/align":s.AlignClass,"attributors/class/background":g.BackgroundClass,"attributors/class/color":v.ColorClass,"attributors/class/direction":l.DirectionClass,"attributors/class/font":y.FontClass,"attributors/class/size":_.SizeClass,"attributors/style/align":s.AlignStyle,"attributors/style/background":g.BackgroundStyle,"attributors/style/color":v.ColorStyle,"attributors/style/direction":l.DirectionStyle,"attributors/style/font":y.FontStyle,"attributors/style/size":_.SizeStyle},!0),o.default.register({"formats/align":s.AlignClass,"formats/direction":l.DirectionClass,"formats/indent":c.IndentClass,"formats/background":g.BackgroundStyle,"formats/color":v.ColorStyle,"formats/font":y.FontClass,"formats/size":_.SizeClass,"formats/blockquote":d.default,"formats/code-block":B.default,"formats/header":p.default,"formats/list":m.default,"formats/bold":C.default,"formats/code":M.Code,"formats/italic":x.default,"formats/link":A.default,"formats/script":R.default,"formats/strike":P.default,"formats/underline":$.default,"formats/image":z.default,"formats/video":H.default,"formats/list/item":h.ListItem,"modules/formula":F.default,"modules/syntax":q.default,"modules/toolbar":K.default,"themes/bubble":he.default,"themes/snow":me.default,"ui/icons":te.default,"ui/picker":re.default,"ui/icon-picker":ge.default,"ui/color-picker":de.default,"ui/tooltip":Ee.default},!0),r.default=o.default},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.IndentClass=void 0;var a=function(){function m(g,v){for(var y=0;y<v.length;y++){var _=v[y];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(g,_.key,_)}}return function(g,v,y){return v&&m(g.prototype,v),y&&m(g,y),g}}(),o=function m(g,v,y){g===null&&(g=Function.prototype);var _=Object.getOwnPropertyDescriptor(g,v);if(_===void 0){var S=Object.getPrototypeOf(g);return S===null?void 0:m(S,v,y)}else{if("value"in _)return _.value;var C=_.get;return C===void 0?void 0:C.call(y)}},s=i(0),l=c(s);function c(m){return m&&m.__esModule?m:{default:m}}function u(m,g){if(!(m instanceof g))throw new TypeError("Cannot call a class as a function")}function d(m,g){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:m}function f(m,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);m.prototype=Object.create(g&&g.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(m,g):m.__proto__=g)}var p=function(m){f(g,m);function g(){return u(this,g),d(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return a(g,[{key:"add",value:function(y,_){if(_==="+1"||_==="-1"){var S=this.value(y)||0;_=_==="+1"?S+1:S-1}return _===0?(this.remove(y),!0):o(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"add",this).call(this,y,_)}},{key:"canAdd",value:function(y,_){return o(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"canAdd",this).call(this,y,_)||o(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"canAdd",this).call(this,y,parseInt(_))}},{key:"value",value:function(y){return parseInt(o(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"value",this).call(this,y))||void 0}}]),g}(l.default.Attributor.Class),h=new p("indent","ql-indent",{scope:l.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});r.IndentClass=h},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=i(4),o=s(a);function s(f){return f&&f.__esModule?f:{default:f}}function l(f,p){if(!(f instanceof p))throw new TypeError("Cannot call a class as a function")}function c(f,p){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:f}function u(f,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);f.prototype=Object.create(p&&p.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(f,p):f.__proto__=p)}var d=function(f){u(p,f);function p(){return l(this,p),c(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return p}(o.default);d.blotName="blockquote",d.tagName="blockquote",r.default=d},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function p(h,m){for(var g=0;g<m.length;g++){var v=m[g];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(h,v.key,v)}}return function(h,m,g){return m&&p(h.prototype,m),g&&p(h,g),h}}(),o=i(4),s=l(o);function l(p){return p&&p.__esModule?p:{default:p}}function c(p,h){if(!(p instanceof h))throw new TypeError("Cannot call a class as a function")}function u(p,h){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:p}function d(p,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);p.prototype=Object.create(h&&h.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(p,h):p.__proto__=h)}var f=function(p){d(h,p);function h(){return c(this,h),u(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return a(h,null,[{key:"formats",value:function(g){return this.tagName.indexOf(g.tagName)+1}}]),h}(s.default);f.blotName="header",f.tagName=["H1","H2","H3","H4","H5","H6"],r.default=f},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.ListItem=void 0;var a=function(){function S(C,w){for(var x=0;x<w.length;x++){var T=w[x];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(C,T.key,T)}}return function(C,w,x){return w&&S(C.prototype,w),x&&S(C,x),C}}(),o=function S(C,w,x){C===null&&(C=Function.prototype);var T=Object.getOwnPropertyDescriptor(C,w);if(T===void 0){var A=Object.getPrototypeOf(C);return A===null?void 0:S(A,w,x)}else{if("value"in T)return T.value;var I=T.get;return I===void 0?void 0:I.call(x)}},s=i(0),l=p(s),c=i(4),u=p(c),d=i(25),f=p(d);function p(S){return S&&S.__esModule?S:{default:S}}function h(S,C,w){return C in S?Object.defineProperty(S,C,{value:w,enumerable:!0,configurable:!0,writable:!0}):S[C]=w,S}function m(S,C){if(!(S instanceof C))throw new TypeError("Cannot call a class as a function")}function g(S,C){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:S}function v(S,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);S.prototype=Object.create(C&&C.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(S,C):S.__proto__=C)}var y=function(S){v(C,S);function C(){return m(this,C),g(this,(C.__proto__||Object.getPrototypeOf(C)).apply(this,arguments))}return a(C,[{key:"format",value:function(x,T){x===_.blotName&&!T?this.replaceWith(l.default.create(this.statics.scope)):o(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"format",this).call(this,x,T)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():o(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(x,T){return this.parent.isolate(this.offset(this.parent),this.length()),x===this.parent.statics.blotName?(this.parent.replaceWith(x,T),this):(this.parent.unwrap(),o(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"replaceWith",this).call(this,x,T))}}],[{key:"formats",value:function(x){return x.tagName===this.tagName?void 0:o(C.__proto__||Object.getPrototypeOf(C),"formats",this).call(this,x)}}]),C}(u.default);y.blotName="list-item",y.tagName="LI";var _=function(S){v(C,S),a(C,null,[{key:"create",value:function(x){var T=x==="ordered"?"OL":"UL",A=o(C.__proto__||Object.getPrototypeOf(C),"create",this).call(this,T);return(x==="checked"||x==="unchecked")&&A.setAttribute("data-checked",x==="checked"),A}},{key:"formats",value:function(x){if(x.tagName==="OL")return"ordered";if(x.tagName==="UL")return x.hasAttribute("data-checked")?x.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function C(w){m(this,C);var x=g(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,w)),T=function(I){if(I.target.parentNode===w){var R=x.statics.formats(w),N=l.default.find(I.target);R==="checked"?N.format("list","unchecked"):R==="unchecked"&&N.format("list","checked")}};return w.addEventListener("touchstart",T),w.addEventListener("mousedown",T),x}return a(C,[{key:"format",value:function(x,T){this.children.length>0&&this.children.tail.format(x,T)}},{key:"formats",value:function(){return h({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(x,T){if(x instanceof y)o(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"insertBefore",this).call(this,x,T);else{var A=T==null?this.length():T.offset(this),I=this.split(A);I.parent.insertBefore(x,I)}}},{key:"optimize",value:function(x){o(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"optimize",this).call(this,x);var T=this.next;T!=null&&T.prev===this&&T.statics.blotName===this.statics.blotName&&T.domNode.tagName===this.domNode.tagName&&T.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(T.moveChildren(this),T.remove())}},{key:"replace",value:function(x){if(x.statics.blotName!==this.statics.blotName){var T=l.default.create(this.statics.defaultChild);x.moveChildren(T),this.appendChild(T)}o(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"replace",this).call(this,x)}}]),C}(f.default);_.blotName="list",_.scope=l.default.Scope.BLOCK_BLOT,_.tagName=["OL","UL"],_.defaultChild="list-item",_.allowedChildren=[y],r.ListItem=y,r.default=_},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=i(56),o=s(a);function s(f){return f&&f.__esModule?f:{default:f}}function l(f,p){if(!(f instanceof p))throw new TypeError("Cannot call a class as a function")}function c(f,p){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:f}function u(f,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);f.prototype=Object.create(p&&p.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(f,p):f.__proto__=p)}var d=function(f){u(p,f);function p(){return l(this,p),c(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return p}(o.default);d.blotName="italic",d.tagName=["EM","I"],r.default=d},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function h(m,g){for(var v=0;v<g.length;v++){var y=g[v];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(m,y.key,y)}}return function(m,g,v){return g&&h(m.prototype,g),v&&h(m,v),m}}(),o=function h(m,g,v){m===null&&(m=Function.prototype);var y=Object.getOwnPropertyDescriptor(m,g);if(y===void 0){var _=Object.getPrototypeOf(m);return _===null?void 0:h(_,g,v)}else{if("value"in y)return y.value;var S=y.get;return S===void 0?void 0:S.call(v)}},s=i(6),l=c(s);function c(h){return h&&h.__esModule?h:{default:h}}function u(h,m){if(!(h instanceof m))throw new TypeError("Cannot call a class as a function")}function d(h,m){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:h}function f(h,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);h.prototype=Object.create(m&&m.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(h,m):h.__proto__=m)}var p=function(h){f(m,h);function m(){return u(this,m),d(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return a(m,null,[{key:"create",value:function(v){return v==="super"?document.createElement("sup"):v==="sub"?document.createElement("sub"):o(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this,v)}},{key:"formats",value:function(v){if(v.tagName==="SUB")return"sub";if(v.tagName==="SUP")return"super"}}]),m}(l.default);p.blotName="script",p.tagName=["SUB","SUP"],r.default=p},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=i(6),o=s(a);function s(f){return f&&f.__esModule?f:{default:f}}function l(f,p){if(!(f instanceof p))throw new TypeError("Cannot call a class as a function")}function c(f,p){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:f}function u(f,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);f.prototype=Object.create(p&&p.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(f,p):f.__proto__=p)}var d=function(f){u(p,f);function p(){return l(this,p),c(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return p}(o.default);d.blotName="strike",d.tagName="S",r.default=d},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=i(6),o=s(a);function s(f){return f&&f.__esModule?f:{default:f}}function l(f,p){if(!(f instanceof p))throw new TypeError("Cannot call a class as a function")}function c(f,p){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:f}function u(f,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);f.prototype=Object.create(p&&p.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(f,p):f.__proto__=p)}var d=function(f){u(p,f);function p(){return l(this,p),c(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return p}(o.default);d.blotName="underline",d.tagName="U",r.default=d},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function g(v,y){for(var _=0;_<y.length;_++){var S=y[_];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(v,S.key,S)}}return function(v,y,_){return y&&g(v.prototype,y),_&&g(v,_),v}}(),o=function g(v,y,_){v===null&&(v=Function.prototype);var S=Object.getOwnPropertyDescriptor(v,y);if(S===void 0){var C=Object.getPrototypeOf(v);return C===null?void 0:g(C,y,_)}else{if("value"in S)return S.value;var w=S.get;return w===void 0?void 0:w.call(_)}},s=i(0),l=u(s),c=i(27);function u(g){return g&&g.__esModule?g:{default:g}}function d(g,v){if(!(g instanceof v))throw new TypeError("Cannot call a class as a function")}function f(g,v){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:g}function p(g,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);g.prototype=Object.create(v&&v.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(g,v):g.__proto__=v)}var h=["alt","height","width"],m=function(g){p(v,g);function v(){return d(this,v),f(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return a(v,[{key:"format",value:function(_,S){h.indexOf(_)>-1?S?this.domNode.setAttribute(_,S):this.domNode.removeAttribute(_):o(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"format",this).call(this,_,S)}}],[{key:"create",value:function(_){var S=o(v.__proto__||Object.getPrototypeOf(v),"create",this).call(this,_);return typeof _=="string"&&S.setAttribute("src",this.sanitize(_)),S}},{key:"formats",value:function(_){return h.reduce(function(S,C){return _.hasAttribute(C)&&(S[C]=_.getAttribute(C)),S},{})}},{key:"match",value:function(_){return/\.(jpe?g|gif|png)$/.test(_)||/^data:image\/.+;base64/.test(_)}},{key:"sanitize",value:function(_){return(0,c.sanitize)(_,["http","https","data"])?_:"//:0"}},{key:"value",value:function(_){return _.getAttribute("src")}}]),v}(l.default.Embed);m.blotName="image",m.tagName="IMG",r.default=m},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function g(v,y){for(var _=0;_<y.length;_++){var S=y[_];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(v,S.key,S)}}return function(v,y,_){return y&&g(v.prototype,y),_&&g(v,_),v}}(),o=function g(v,y,_){v===null&&(v=Function.prototype);var S=Object.getOwnPropertyDescriptor(v,y);if(S===void 0){var C=Object.getPrototypeOf(v);return C===null?void 0:g(C,y,_)}else{if("value"in S)return S.value;var w=S.get;return w===void 0?void 0:w.call(_)}},s=i(4),l=i(27),c=u(l);function u(g){return g&&g.__esModule?g:{default:g}}function d(g,v){if(!(g instanceof v))throw new TypeError("Cannot call a class as a function")}function f(g,v){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:g}function p(g,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);g.prototype=Object.create(v&&v.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(g,v):g.__proto__=v)}var h=["height","width"],m=function(g){p(v,g);function v(){return d(this,v),f(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return a(v,[{key:"format",value:function(_,S){h.indexOf(_)>-1?S?this.domNode.setAttribute(_,S):this.domNode.removeAttribute(_):o(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"format",this).call(this,_,S)}}],[{key:"create",value:function(_){var S=o(v.__proto__||Object.getPrototypeOf(v),"create",this).call(this,_);return S.setAttribute("frameborder","0"),S.setAttribute("allowfullscreen",!0),S.setAttribute("src",this.sanitize(_)),S}},{key:"formats",value:function(_){return h.reduce(function(S,C){return _.hasAttribute(C)&&(S[C]=_.getAttribute(C)),S},{})}},{key:"sanitize",value:function(_){return c.default.sanitize(_)}},{key:"value",value:function(_){return _.getAttribute("src")}}]),v}(s.BlockEmbed);m.blotName="video",m.className="ql-video",m.tagName="IFRAME",r.default=m},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.FormulaBlot=void 0;var a=function(){function _(S,C){for(var w=0;w<C.length;w++){var x=C[w];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(S,x.key,x)}}return function(S,C,w){return C&&_(S.prototype,C),w&&_(S,w),S}}(),o=function _(S,C,w){S===null&&(S=Function.prototype);var x=Object.getOwnPropertyDescriptor(S,C);if(x===void 0){var T=Object.getPrototypeOf(S);return T===null?void 0:_(T,C,w)}else{if("value"in x)return x.value;var A=x.get;return A===void 0?void 0:A.call(w)}},s=i(35),l=p(s),c=i(5),u=p(c),d=i(9),f=p(d);function p(_){return _&&_.__esModule?_:{default:_}}function h(_,S){if(!(_ instanceof S))throw new TypeError("Cannot call a class as a function")}function m(_,S){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S&&(typeof S=="object"||typeof S=="function")?S:_}function g(_,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof S);_.prototype=Object.create(S&&S.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(_,S):_.__proto__=S)}var v=function(_){g(S,_);function S(){return h(this,S),m(this,(S.__proto__||Object.getPrototypeOf(S)).apply(this,arguments))}return a(S,null,[{key:"create",value:function(w){var x=o(S.__proto__||Object.getPrototypeOf(S),"create",this).call(this,w);return typeof w=="string"&&(window.katex.render(w,x,{throwOnError:!1,errorColor:"#f00"}),x.setAttribute("data-value",w)),x}},{key:"value",value:function(w){return w.getAttribute("data-value")}}]),S}(l.default);v.blotName="formula",v.className="ql-formula",v.tagName="SPAN";var y=function(_){g(S,_),a(S,null,[{key:"register",value:function(){u.default.register(v,!0)}}]);function S(){h(this,S);var C=m(this,(S.__proto__||Object.getPrototypeOf(S)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return C}return S}(f.default);r.FormulaBlot=v,r.default=y},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.CodeToken=r.CodeBlock=void 0;var a=function(){function w(x,T){for(var A=0;A<T.length;A++){var I=T[A];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(x,I.key,I)}}return function(x,T,A){return T&&w(x.prototype,T),A&&w(x,A),x}}(),o=function w(x,T,A){x===null&&(x=Function.prototype);var I=Object.getOwnPropertyDescriptor(x,T);if(I===void 0){var R=Object.getPrototypeOf(x);return R===null?void 0:w(R,T,A)}else{if("value"in I)return I.value;var N=I.get;return N===void 0?void 0:N.call(A)}},s=i(0),l=m(s),c=i(5),u=m(c),d=i(9),f=m(d),p=i(13),h=m(p);function m(w){return w&&w.__esModule?w:{default:w}}function g(w,x){if(!(w instanceof x))throw new TypeError("Cannot call a class as a function")}function v(w,x){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:w}function y(w,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);w.prototype=Object.create(x&&x.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(w,x):w.__proto__=x)}var _=function(w){y(x,w);function x(){return g(this,x),v(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return a(x,[{key:"replaceWith",value:function(A){this.domNode.textContent=this.domNode.textContent,this.attach(),o(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"replaceWith",this).call(this,A)}},{key:"highlight",value:function(A){var I=this.domNode.textContent;this.cachedText!==I&&((I.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=A(I),this.domNode.normalize(),this.attach()),this.cachedText=I)}}]),x}(h.default);_.className="ql-syntax";var S=new l.default.Attributor.Class("token","hljs",{scope:l.default.Scope.INLINE}),C=function(w){y(x,w),a(x,null,[{key:"register",value:function(){u.default.register(S,!0),u.default.register(_,!0)}}]);function x(T,A){g(this,x);var I=v(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,T,A));if(typeof I.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var R=null;return I.quill.on(u.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(R),R=setTimeout(function(){I.highlight(),R=null},I.options.interval)}),I.highlight(),I}return a(x,[{key:"highlight",value:function(){var A=this;if(!this.quill.selection.composing){this.quill.update(u.default.sources.USER);var I=this.quill.getSelection();this.quill.scroll.descendants(_).forEach(function(R){R.highlight(A.options.highlight)}),this.quill.update(u.default.sources.SILENT),I!=null&&this.quill.setSelection(I,u.default.sources.SILENT)}}}]),x}(f.default);C.DEFAULTS={highlight:function(){return window.hljs==null?null:function(w){var x=window.hljs.highlightAuto(w);return x.value}}(),interval:1e3},r.CodeBlock=_,r.CodeToken=S,r.default=C},function(n,r){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,r){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=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(n,r){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,r){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,r){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,r){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,r){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,r){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,r){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,r){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,r){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,r){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,r){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,r){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,r){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,r){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.177-.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,r){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,r){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,r){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,r){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,r){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,r){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,r){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,r){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,r){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,r){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,r){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,r){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,r){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,r){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,r){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,r){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,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.BubbleTooltip=void 0;var a=function x(T,A,I){T===null&&(T=Function.prototype);var R=Object.getOwnPropertyDescriptor(T,A);if(R===void 0){var N=Object.getPrototypeOf(T);return N===null?void 0:x(N,A,I)}else{if("value"in R)return R.value;var P=R.get;return P===void 0?void 0:P.call(I)}},o=function(){function x(T,A){for(var I=0;I<A.length;I++){var R=A[I];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(T,R.key,R)}}return function(T,A,I){return A&&x(T.prototype,A),I&&x(T,I),T}}(),s=i(3),l=g(s),c=i(8),u=g(c),d=i(43),f=g(d),p=i(15),h=i(41),m=g(h);function g(x){return x&&x.__esModule?x:{default:x}}function v(x,T){if(!(x instanceof T))throw new TypeError("Cannot call a class as a function")}function y(x,T){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T&&(typeof T=="object"||typeof T=="function")?T:x}function _(x,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);x.prototype=Object.create(T&&T.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(x,T):x.__proto__=T)}var S=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],C=function(x){_(T,x);function T(A,I){v(this,T),I.modules.toolbar!=null&&I.modules.toolbar.container==null&&(I.modules.toolbar.container=S);var R=y(this,(T.__proto__||Object.getPrototypeOf(T)).call(this,A,I));return R.quill.container.classList.add("ql-bubble"),R}return o(T,[{key:"extendToolbar",value:function(I){this.tooltip=new w(this.quill,this.options.bounds),this.tooltip.root.appendChild(I.container),this.buildButtons([].slice.call(I.container.querySelectorAll("button")),m.default),this.buildPickers([].slice.call(I.container.querySelectorAll("select")),m.default)}}]),T}(f.default);C.DEFAULTS=(0,l.default)(!0,{},f.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(T){T?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var w=function(x){_(T,x);function T(A,I){v(this,T);var R=y(this,(T.__proto__||Object.getPrototypeOf(T)).call(this,A,I));return R.quill.on(u.default.events.EDITOR_CHANGE,function(N,P,L,$){if(N===u.default.events.SELECTION_CHANGE)if(P!=null&&P.length>0&&$===u.default.sources.USER){R.show(),R.root.style.left="0px",R.root.style.width="",R.root.style.width=R.root.offsetWidth+"px";var D=R.quill.getLines(P.index,P.length);if(D.length===1)R.position(R.quill.getBounds(P));else{var z=D[D.length-1],U=R.quill.getIndex(z),H=Math.min(z.length()-1,P.index+P.length-U),M=R.quill.getBounds(new p.Range(U,H));R.position(M)}}else document.activeElement!==R.textbox&&R.quill.hasFocus()&&R.hide()}),R}return o(T,[{key:"listen",value:function(){var I=this;a(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){I.root.classList.remove("ql-editing")}),this.quill.on(u.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!I.root.classList.contains("ql-hidden")){var R=I.quill.getSelection();R!=null&&I.position(I.quill.getBounds(R))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(I){var R=a(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"position",this).call(this,I),N=this.root.querySelector(".ql-tooltip-arrow");if(N.style.marginLeft="",R===0)return R;N.style.marginLeft=-1*R-N.offsetWidth/2+"px"}}]),T}(d.BaseTooltip);w.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(""),r.BubbleTooltip=w,r.default=C},function(n,r,i){n.exports=i(63)}]).default})})(_Ge);var qXt=_Ge.exports;const J$=qo(qXt),WXt=()=>{const e=J$.import("attributors/class/font");e.whitelist=["system"],J$.register(e,!0)};var Bz={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},w1=console,yx={};Object.keys(Bz).forEach(function(e){yx[e]=w1[e]});var Z4="Datadog Browser SDK:",Ua={debug:yx.debug.bind(w1,Z4),log:yx.log.bind(w1,Z4),info:yx.info.bind(w1,Z4),warn:yx.warn.bind(w1,Z4),error:yx.error.bind(w1,Z4)},jz="https://docs.datadoghq.com",SGe="".concat(jz,"/real_user_monitoring/browser/troubleshooting"),zz="More details:";function EGe(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];try{return e.apply(void 0,n)}catch(i){Ua.error(t,i)}}}function lE(e){return e!==0&&Math.random()*100<=e}function eF(e,t){return+e.toFixed(t)}function YXt(e){return CT(e)&&e>=0&&e<=100}function CT(e){return typeof e=="number"}var Bu=1e3,Bd=60*Bu,CGe=60*Bd,KXt=24*CGe,XXt=365*KXt;function Tfe(e){return{relative:e,timeStamp:QXt(e)}}function ZXt(e){return{relative:Ife(e),timeStamp:e}}function QXt(e){var t=rv()-performance.now();return t>DO()?Math.round(wT(t,e)):eZt(e)}function JXt(){return Math.round(rv()-wT(DO(),performance.now()))}function Mo(e){return CT(e)?eF(e*1e6,0):e}function rv(){return new Date().getTime()}function Ql(){return rv()}function pm(){return performance.now()}function Pu(){return{relative:pm(),timeStamp:Ql()}}function wGe(){return{relative:0,timeStamp:DO()}}function ru(e,t){return t-e}function wT(e,t){return e+t}function Ife(e){return e-DO()}function eZt(e){return Math.round(wT(DO(),e))}function tZt(e){return e<XXt}var Nq;function DO(){return Nq===void 0&&(Nq=performance.timing.navigationStart),Nq}var n_=1024,xGe=1024*n_,nZt=/[^\u0000-\u007F]/;function Afe(e){return nZt.test(e)?window.TextEncoder!==void 0?new TextEncoder().encode(e).length:new Blob([e]).size:e.length}function rZt(e){for(var t=e.reduce(function(s,l){return s+l.length},0),n=new Uint8Array(t),r=0,i=0,a=e;i<a.length;i++){var o=a[i];n.set(o,r),r+=o.length}return n}function hm(e,t){return e.indexOf(t)!==-1}function Rfe(e){if(Array.from)return Array.from(e);var t=[];if(e instanceof Set)e.forEach(function(r){return t.push(r)});else for(var n=0;n<e.length;n++)t.push(e[n]);return t}function r_(e,t){for(var n=0;n<e.length;n+=1){var r=e[n];if(t(r,n))return r}}function iZt(e,t){for(var n=e.length-1;n>=0;n-=1){var r=e[n];if(t(r,n,e))return r}}function TGe(e,t){Array.prototype.forEach.call(e,t)}function Uz(e){return Object.keys(e).map(function(t){return e[t]})}function Nfe(e){return Object.keys(e).map(function(t){return[t,e[t]]})}function $O(e,t){return e.slice(0,t.length)===t}function aZt(e,t){return e.slice(-t.length)===t}function Ci(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.forEach(function(r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}),e}function zN(e){return Ci({},e)}function UN(e,t){return Object.keys(e).some(function(n){return e[n]===t})}function jE(e){return Object.keys(e).length===0}function oZt(e,t){for(var n={},r=0,i=Object.keys(e);r<i.length;r++){var a=i[r];n[a]=t(e[a])}return n}function A_(){if(typeof globalThis=="object")return globalThis;Object.defineProperty(Object.prototype,"_dd_temp_",{get:function(){return this},configurable:!0});var e=_dd_temp_;return delete Object.prototype._dd_temp_,typeof e!="object"&&(typeof self=="object"?e=self:typeof window=="object"?e=window:e={}),e}function i_(e,t){var n=A_(),r;return n.Zone&&typeof n.Zone.__symbol__=="function"&&(r=e[n.Zone.__symbol__(t)]),r||(r=e[t]),r}var sZt=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},jie,IGe=!1;function lZt(e){jie=e}function cZt(e){IGe=e}function ei(e){return function(){return zE(e,this,arguments)}}function zE(e,t,n){try{return e.apply(t,n)}catch(r){if(zie(r),jie)try{jie(r)}catch(i){zie(i)}}}function zie(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];IGe&&Ua.error.apply(Ua,sZt(["[MONITOR]"],e,!1))}function Ec(e,t){return i_(A_(),"setTimeout")(ei(e),t)}function Hh(e){i_(A_(),"clearTimeout")(e)}function xT(e,t){return i_(A_(),"setInterval")(ei(e),t)}function Hz(e){i_(A_(),"clearInterval")(e)}var oo=function(){function e(t){this.onFirstSubscribe=t,this.observers=[]}return e.prototype.subscribe=function(t){var n=this;return this.observers.push(t),this.observers.length===1&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0),{unsubscribe:function(){n.observers=n.observers.filter(function(r){return t!==r}),!n.observers.length&&n.onLastUnsubscribe&&n.onLastUnsubscribe()}}},e.prototype.notify=function(t){this.observers.forEach(function(n){return n(t)})},e}();function AGe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new oo(function(n){var r=e.map(function(i){return i.subscribe(function(a){return n.notify(a)})});return function(){return r.forEach(function(i){return i.unsubscribe()})}})}function y0(e,t,n){var r=n&&n.leading!==void 0?n.leading:!0,i=n&&n.trailing!==void 0?n.trailing:!0,a=!1,o,s;return{throttled:function(){for(var l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];if(a){o=l;return}r?e.apply(void 0,l):o=l,a=!0,s=Ec(function(){i&&o&&e.apply(void 0,o),a=!1,o=void 0},t)},cancel:function(){Hh(s),a=!1,o=void 0}}}function za(){}function ju(e){return e?(parseInt(e,10)^Math.random()*16>>parseInt(e,10)/4).toString(16):"".concat(1e7,"-").concat(1e3,"-").concat(4e3,"-").concat(8e3,"-").concat(1e11).replace(/[018]/g,ju)}var tF=/([\w-]+)\s*=\s*([^;]+)/g;function HN(e,t){for(tF.lastIndex=0;;){var n=tF.exec(e);if(n){if(n[1]===t)return n[2]}else break}}function uZt(e){var t=new Map;for(tF.lastIndex=0;;){var n=tF.exec(e);if(n)t.set(n[1],n[2]);else break}return t}function RGe(e,t,n){n===void 0&&(n="");var r=e.charCodeAt(t-1),i=r>=55296&&r<=56319,a=i?t+1:t;return e.length<=a?e:"".concat(e.slice(0,a)).concat(n)}function dZt(){return Ofe()===0}function fZt(){return Ofe()===1}function pZt(){return Ofe()===2}var _P;function Ofe(){return _P??(_P=hZt())}function hZt(e){var t;e===void 0&&(e=window);var n=e.navigator.userAgent;return e.chrome||/HeadlessChrome/.test(n)?1:((t=e.navigator.vendor)===null||t===void 0?void 0:t.indexOf("Apple"))===0||/safari/i.test(n)&&!/chrome|android/i.test(n)?2:e.document.documentMode?0:3}function FO(e,t,n,r){var i=new Date;i.setTime(i.getTime()+n);var a="expires=".concat(i.toUTCString()),o=r&&r.crossSite?"none":"strict",s=r&&r.domain?";domain=".concat(r.domain):"",l=r&&r.secure?";secure":"",c=r&&r.partitioned?";partitioned":"";document.cookie="".concat(e,"=").concat(t,";").concat(a,";path=/;samesite=").concat(o).concat(s).concat(l).concat(c)}function Lfe(e){return HN(document.cookie,e)}var Oq;function pb(e){return Oq||(Oq=uZt(document.cookie)),Oq.get(e)}function NGe(e,t){FO(e,"",0,t)}function mZt(e){if(document.cookie===void 0||document.cookie===null)return!1;try{var t="dd_cookie_test_".concat(ju()),n="test";FO(t,n,Bd,e);var r=Lfe(t)===n;return NGe(t,e),r}catch(i){return Ua.error(i),!1}}var Lq;function gZt(){if(Lq===void 0){for(var e="dd_site_test_".concat(ju()),t="test",n=window.location.hostname.split("."),r=n.pop();n.length&&!Lfe(e);)r="".concat(n.pop(),".").concat(r),FO(e,t,Bu,{domain:r});NGe(e,{domain:r}),Lq=r}return Lq}var TT="_dd_s",AC=4*CGe,OGe=15*Bd,LGe=/^([a-zA-Z]+)=([a-z0-9-]+)$/,Pfe="&",vZt="1";function wS(){return{isExpired:vZt}}function l7(e){return jE(e)}function PGe(e){return!l7(e)}function nF(e){return e.isExpired!==void 0||!yZt(e)}function yZt(e){return(e.created===void 0||rv()-Number(e.created)<AC)&&(e.expire===void 0||rv()<Number(e.expire))}function kGe(e){e.expire=String(rv()+OGe)}function kfe(e){return Nfe(e).map(function(t){var n=t[0],r=t[1];return"".concat(n,"=").concat(r)}).join(Pfe)}function MGe(e){var t={};return bZt(e)&&e.split(Pfe).forEach(function(n){var r=LGe.exec(n);if(r!==null){var i=r[1],a=r[2];t[i]=a}}),t}function bZt(e){return!!e&&(e.indexOf(Pfe)!==-1||LGe.test(e))}var _Zt="_dd",SZt="_dd_r",EZt="_dd_l",CZt="rum",wZt="logs";function xZt(e){var t=pb(TT);if(!t){var n=pb(_Zt),r=pb(SZt),i=pb(EZt),a={};n&&(a.id=n),i&&/^[01]$/.test(i)&&(a[wZt]=i),r&&/^[012]$/.test(r)&&(a[CZt]=r),PGe(a)&&(kGe(a),e.persistSession(a))}}function TZt(e){var t=OZt(e);return mZt(t)?{type:"Cookie",cookieOptions:t}:void 0}function IZt(e){var t={isLockEnabled:fZt(),persistSession:AZt(e),retrieveSession:NZt,expireSession:function(){return RZt(e)}};return xZt(t),t}function AZt(e){return function(t){FO(TT,kfe(t),OGe,e)}}function RZt(e){FO(TT,kfe(wS()),AC,e)}function NZt(){var e=Lfe(TT);return MGe(e)}function OZt(e){var t={};return t.secure=!!e.useSecureSessionCookie||!!e.usePartitionedCrossSiteSessionCookie||!!e.useCrossSiteSessionCookie,t.crossSite=!!e.usePartitionedCrossSiteSessionCookie||!!e.useCrossSiteSessionCookie,t.partitioned=!!e.usePartitionedCrossSiteSessionCookie,e.trackSessionAcrossSubdomains&&(t.domain=gZt()),t}var LZt="_dd_test_";function PZt(){try{var e=ju(),t="".concat(LZt).concat(e);localStorage.setItem(t,e);var n=localStorage.getItem(t);return localStorage.removeItem(t),e===n?{type:"LocalStorage"}:void 0}catch{return}}function kZt(){return{isLockEnabled:!1,persistSession:DGe,retrieveSession:MZt,expireSession:DZt}}function DGe(e){localStorage.setItem(TT,kfe(e))}function MZt(){var e=localStorage.getItem(TT);return MGe(e)}function DZt(){DGe(wS())}var $Zt=10,FZt=100,$Ge=[],c7;function xS(e,t,n){var r;n===void 0&&(n=0);var i=t.isLockEnabled,a=t.persistSession,o=t.expireSession,s=function(f){return a(Ci({},f,{lock:c}))},l=function(){var f=t.retrieveSession(),p=f.lock;return f.lock&&delete f.lock,{session:f,lock:p}};if(c7||(c7=e),e!==c7){$Ge.push(e);return}if(i&&n>=FZt){FEe(t);return}var c,u=l();if(i){if(u.lock){SP(e,t,n);return}if(c=ju(),s(u.session),u=l(),u.lock!==c){SP(e,t,n);return}}var d=e.process(u.session);if(i&&(u=l(),u.lock!==c)){SP(e,t,n);return}if(d&&(nF(d)?o():(kGe(d),i?s(d):a(d))),i&&!(d&&nF(d))){if(u=l(),u.lock!==c){SP(e,t,n);return}a(u.session),d=u.session}(r=e.after)===null||r===void 0||r.call(e,d||u.session),FEe(t)}function SP(e,t,n){Ec(function(){xS(e,t,n+1)},$Zt)}function FEe(e){c7=void 0;var t=$Ge.shift();t&&xS(t,e)}var BEe=Bu;function BZt(e){var t=TZt(e);return!t&&e.allowFallbackToLocalStorage&&(t=PZt()),t}function jZt(e,t,n){var r=new oo,i=new oo,a=new oo,o=e.type==="Cookie"?IZt(e.cookieOptions):kZt(),s=o.expireSession,l=xT(h,BEe),c;g();var u=y0(function(){xS({process:function(x){if(!l7(x)){var T=m(x);return v(T),T}},after:function(x){PGe(x)&&!y()&&C(x),c=x}},o)},BEe),d=u.throttled,f=u.cancel;function p(){xS({process:function(x){return y()?m(x):void 0}},o)}function h(){xS({process:function(x){return nF(x)?wS():void 0},after:m},o)}function m(x){return nF(x)&&(x=wS()),y()&&(_(x)?S():(a.notify({previousState:c,newState:x}),c=x)),x}function g(){xS({process:function(x){if(l7(x))return wS()},after:function(x){c=x}},o)}function v(x){if(l7(x))return!1;var T=n(x[t]),A=T.trackingType,I=T.isTracked;x[t]=A,delete x.isExpired,I&&!x.id&&(x.id=ju(),x.created=String(rv()))}function y(){return c[t]!==void 0}function _(x){return c.id!==x.id||c[t]!==x[t]}function S(){c=wS(),i.notify()}function C(x){c=x,r.notify()}function w(x){xS({process:function(T){return Ci({},T,x)},after:m},o)}return{expandOrRenewSession:d,expandSession:p,getSession:function(){return c},renewObservable:r,expireObservable:i,sessionStateUpdateObservable:a,restartSession:g,expire:function(){f(),s(),m(wS())},stop:function(){Hz(l)},updateSessionState:w}}var Uie={GRANTED:"granted",NOT_GRANTED:"not-granted"};function zZt(e){var t=new oo;return{tryToInit:function(n){e||(e=n)},update:function(n){e=n,t.notify()},isGranted:function(){return e===Uie.GRANTED},observable:t}}function RC(e,t,n){if(typeof e!="object"||e===null)return JSON.stringify(e);var r=Xx(Object.prototype),i=Xx(Array.prototype),a=Xx(Object.getPrototypeOf(e)),o=Xx(e);try{return JSON.stringify(e,t,n)}catch{return"<error: unable to serialize object>"}finally{r(),i(),a(),o()}}function Xx(e){var t=e,n=t.toJSON;return n?(delete t.toJSON,function(){t.toJSON=n}):za}function Mfe(e){return Vz(e,location.href).href}function UZt(e){try{return!!Vz(e)}catch{return!1}}function HZt(e){var t=Vz(e).pathname;return t[0]==="/"?t:"/".concat(t)}function Vz(e,t){var n=VZt();if(n)try{return t!==void 0?new n(e,t):new n(e)}catch(o){throw new Error("Failed to construct URL: ".concat(String(o)," ").concat(RC({url:e,base:t})))}if(t===void 0&&!/:/.test(e))throw new Error("Invalid URL: '".concat(e,"'"));var r=document,i=r.createElement("a");if(t!==void 0){r=document.implementation.createHTMLDocument("");var a=r.createElement("base");a.href=t,r.head.appendChild(a),r.body.appendChild(i)}return i.href=e,i}var jEe=URL,EP;function VZt(){if(EP===void 0)try{var e=new jEe("http://test/path");EP=e.href==="http://test/path"}catch{EP=!1}return EP?jEe:void 0}var FGe="datad0g.com",GZt="dd0g-gov.com",hb="datadoghq.com",qZt="datadoghq.eu",WZt="ddog-gov.com",BGe="pci.browser-intake-datadoghq.com";function pR(e,t,n){var r=YZt(e,t);return{build:function(i,a){var o=XZt(e,t,n,i,a);return r(o)},urlPrefix:r(""),trackType:t}}function YZt(e,t){var n="/api/v2/".concat(t),r=e.proxy;if(typeof r=="string"){var i=Mfe(r);return function(o){return"".concat(i,"?ddforward=").concat(encodeURIComponent("".concat(n,"?").concat(o)))}}if(typeof r=="function")return function(o){return r({path:n,parameters:o})};var a=KZt(t,e);return function(o){return"https://".concat(a).concat(n,"?").concat(o)}}function KZt(e,t){var n=t.site,r=n===void 0?hb:n,i=t.internalAnalyticsSubdomain;if(e==="logs"&&t.usePciIntake&&r===hb)return BGe;if(i&&r===hb)return"".concat(i,".").concat(hb);if(r===GZt)return"http-intake.logs.".concat(r);var a=r.split("."),o=a.pop();return"browser-intake-".concat(a.join("-"),".").concat(o)}function XZt(e,t,n,r,i){var a=e.clientToken,o=e.internalAnalyticsSubdomain,s=i.retry,l=i.encoding,c=["sdk_version:".concat("5.23.3"),"api:".concat(r)].concat(n);s&&c.push("retry_count:".concat(s.count),"retry_after:".concat(s.lastFailureStatus));var u=["ddsource=browser","ddtags=".concat(encodeURIComponent(c.join(","))),"dd-api-key=".concat(a),"dd-evp-origin-version=".concat(encodeURIComponent("5.23.3")),"dd-evp-origin=browser","dd-request-id=".concat(ju())];return l&&u.push("dd-evp-encoding=".concat(l)),t==="rum"&&u.push("batch_time=".concat(Ql())),o&&u.reverse(),u.join("&")}var ZZt=200;function QZt(e){var t=e.env,n=e.service,r=e.version,i=e.datacenter,a=[];return t&&a.push(CP("env",t)),n&&a.push(CP("service",n)),r&&a.push(CP("version",r)),i&&a.push(CP("datacenter",i)),a}var JZt=/[^a-z0-9_:./-]/;function CP(e,t){var n=ZZt-e.length-1;(t.length>n||JZt.test(t))&&Ua.warn("".concat(e," value doesn't meet tag requirements and will be sanitized. ").concat(zz," ").concat(jz,"/getting_started/tagging/#defining-tags"));var r=t.replace(/,/g,"_");return"".concat(e,":").concat(r)}function eQt(e){var t=e.site||hb,n=QZt(e),r=tQt(e,n),i=rQt(r,t),a=nQt(e,i,n);return Ci({isIntakeUrl:function(o){return i.some(function(s){return o.indexOf(s)===0})},replica:a,site:t},r)}function tQt(e,t){return{logsEndpointBuilder:pR(e,"logs",t),rumEndpointBuilder:pR(e,"rum",t),sessionReplayEndpointBuilder:pR(e,"replay",t)}}function nQt(e,t,n){if(e.replica){var r=Ci({},e,{site:hb,clientToken:e.replica.clientToken}),i={logsEndpointBuilder:pR(r,"logs",n),rumEndpointBuilder:pR(r,"rum",n)};return t.push.apply(t,Uz(i).map(function(a){return a.urlPrefix})),Ci({applicationId:e.replica.applicationId},i)}}function rQt(e,t){var n=Uz(e).map(function(r){return r.urlPrefix});return t===hb&&n.push("https://".concat(BGe,"/")),n}var hR={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input"},Hie={ALL:"all",SAMPLED:"sampled"};function Pq(e,t){return e!=null&&typeof e!="string"?(Ua.error("".concat(t," must be defined as a string")),!1):!0}function iQt(e){return e&&typeof e=="string"&&!/(datadog|ddog|datad0g|dd0g)/.test(e)?(Ua.error("Site should be a valid Datadog site. ".concat(zz," ").concat(jz,"/getting_started/site/.")),!1):!0}function Zx(e,t){return e!==void 0&&!YXt(e)?(Ua.error("".concat(t," Sample Rate should be a number between 0 and 100")),!1):!0}function aQt(e){var t,n,r,i,a;if(!e||!e.clientToken){Ua.error("Client Token is not configured, we will not send any data.");return}if(!(!iQt(e.site)||!Zx(e.sessionSampleRate,"Session")||!Zx(e.telemetrySampleRate,"Telemetry")||!Zx(e.telemetryConfigurationSampleRate,"Telemetry Configuration")||!Zx(e.telemetryUsageSampleRate,"Telemetry Usage")||!Pq(e.version,"Version")||!Pq(e.env,"Env")||!Pq(e.service,"Service"))){if(e.trackingConsent!==void 0&&!UN(Uie,e.trackingConsent)){Ua.error('Tracking Consent should be either "granted" or "not-granted"');return}return Ci({beforeSend:e.beforeSend&&EGe(e.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:BZt(e),sessionSampleRate:(t=e.sessionSampleRate)!==null&&t!==void 0?t:100,telemetrySampleRate:(n=e.telemetrySampleRate)!==null&&n!==void 0?n:20,telemetryConfigurationSampleRate:(r=e.telemetryConfigurationSampleRate)!==null&&r!==void 0?r:5,telemetryUsageSampleRate:(i=e.telemetryUsageSampleRate)!==null&&i!==void 0?i:5,service:e.service||void 0,silentMultipleInit:!!e.silentMultipleInit,allowUntrustedEvents:!!e.allowUntrustedEvents,trackingConsent:(a=e.trackingConsent)!==null&&a!==void 0?a:Uie.GRANTED,storeContextsAcrossPages:!!e.storeContextsAcrossPages,batchBytesLimit:16*n_,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:30*Bu,batchMessagesLimit:50,messageBytesLimit:256*n_},eQt(e))}}function oQt(e){return{session_sample_rate:e.sessionSampleRate,telemetry_sample_rate:e.telemetrySampleRate,telemetry_configuration_sample_rate:e.telemetryConfigurationSampleRate,telemetry_usage_sample_rate:e.telemetryUsageSampleRate,use_before_send:!!e.beforeSend,use_cross_site_session_cookie:e.useCrossSiteSessionCookie,use_partitioned_cross_site_session_cookie:e.usePartitionedCrossSiteSessionCookie,use_secure_session_cookie:e.useSecureSessionCookie,use_proxy:!!e.proxy,silent_multiple_init:e.silentMultipleInit,track_session_across_subdomains:e.trackSessionAcrossSubdomains,allow_fallback_to_local_storage:!!e.allowFallbackToLocalStorage,store_contexts_across_pages:!!e.storeContextsAcrossPages,allow_untrusted_events:!!e.allowUntrustedEvents,tracking_consent:e.trackingConsent}}var s0;(function(e){e.WRITABLE_RESOURCE_GRAPHQL="writable_resource_graphql",e.CUSTOM_VITALS="custom_vitals",e.TOLERANT_RESOURCE_TIMINGS="tolerant_resource_timings",e.REMOTE_CONFIGURATION="remote_configuration",e.UPDATE_VIEW_NAME="update_view_name"})(s0||(s0={}));var Dfe=new Set;function sQt(e){Array.isArray(e)&&lQt(e.filter(function(t){return UN(s0,t)}))}function lQt(e){e.forEach(function(t){Dfe.add(t)})}function R3(e){return Dfe.has(e)}function cQt(){return Dfe}var BO="?";function R_(e){var t=[],n=kq(e,"stack"),r=String(e);return n&&$O(n,r)&&(n=n.slice(r.length)),n&&n.split(`
`).forEach(function(i){var a=fQt(i)||hQt(i)||gQt(i)||bQt(i);a&&(!a.func&&a.line&&(a.func=BO),t.push(a))}),{message:kq(e,"message"),name:kq(e,"name"),stack:t}}var jGe="((?:file|https?|blob|chrome-extension|native|eval|webpack|snippet|<anonymous>|\\w+\\.|\\/).*?)",N3="(?::(\\d+))",uQt=new RegExp("^\\s*at (.*?) ?\\(".concat(jGe).concat(N3,"?").concat(N3,"?\\)?\\s*$"),"i"),dQt=new RegExp("\\((\\S*)".concat(N3).concat(N3,"\\)"));function fQt(e){var t=uQt.exec(e);if(t){var n=t[2]&&t[2].indexOf("native")===0,r=t[2]&&t[2].indexOf("eval")===0,i=dQt.exec(t[2]);return r&&i&&(t[2]=i[1],t[3]=i[2],t[4]=i[3]),{args:n?[t[2]]:[],column:t[4]?+t[4]:void 0,func:t[1]||BO,line:t[3]?+t[3]:void 0,url:n?void 0:t[2]}}}var pQt=new RegExp("^\\s*at ?".concat(jGe).concat(N3,"?").concat(N3,"??\\s*$"),"i");function hQt(e){var t=pQt.exec(e);if(t)return{args:[],column:t[3]?+t[3]:void 0,func:BO,line:t[2]?+t[2]:void 0,url:t[1]}}var mQt=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;function gQt(e){var t=mQt.exec(e);if(t)return{args:[],column:t[4]?+t[4]:void 0,func:t[1]||BO,line:+t[3],url:t[2]}}var vQt=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,yQt=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function bQt(e){var t=vQt.exec(e);if(t){var n=t[3]&&t[3].indexOf(" > eval")>-1,r=yQt.exec(t[3]);return n&&r&&(t[3]=r[1],t[4]=r[2],t[5]=void 0),{args:t[2]?t[2].split(","):[],column:t[5]?+t[5]:void 0,func:t[1]||BO,line:t[4]?+t[4]:void 0,url:t[3]}}}function kq(e,t){if(!(typeof e!="object"||!e||!(t in e))){var n=e[t];return typeof n=="string"?n:void 0}}function _Qt(e,t,n,r){var i=[{url:t,column:r,line:n}],a=EQt(e),o=a.name,s=a.message;return{name:o,message:s,stack:i}}var SQt=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function EQt(e){var t,n,r;return{}.toString.call(e)==="[object String]"&&(t=SQt.exec(e),n=t[1],r=t[2]),{name:n,message:r}}function rF(){var e=2,t=new Error,n;if(!t.stack)try{throw t}catch{}return zE(function(){var r=R_(t);r.stack=r.stack.slice(e),n=IT(r)}),n}function IT(e){var t=zGe(e);return e.stack.forEach(function(n){var r=n.func==="?"?"<anonymous>":n.func,i=n.args&&n.args.length>0?"(".concat(n.args.join(", "),")"):"",a=n.line?":".concat(n.line):"",o=n.line&&n.column?":".concat(n.column):"";t+=`
  at `.concat(r).concat(i," @ ").concat(n.url).concat(a).concat(o)}),t}function zGe(e){return"".concat(e.name||"Error",": ").concat(e.message)}function vd(e,t,n,r){var i=r===void 0?{}:r,a=i.computeHandlingStack,o=e[t];if(typeof o!="function")if($O(t,"on"))o=za;else return{stop:za};var s=!1,l=function(){if(s)return o.apply(this,arguments);var c=Rfe(arguments),u;zE(n,null,[{target:this,parameters:c,onPostCall:function(f){u=f},handlingStack:a?rF():void 0}]);var d=o.apply(this,c);return u&&zE(u,null,[d]),d};return e[t]=l,{stop:function(){s=!0,e[t]===l&&(e[t]=o)}}}function Q4(e,t,n){var r=Object.getOwnPropertyDescriptor(e,t);if(!r||!r.set||!r.configurable)return{stop:za};var i=za,a=function(s,l){Ec(function(){a!==i&&n(s,l)},0)},o=function(s){r.set.call(this,s),a(this,s)};return Object.defineProperty(e,t,{set:o}),{stop:function(){var s;((s=Object.getOwnPropertyDescriptor(e,t))===null||s===void 0?void 0:s.set)===o&&Object.defineProperty(e,t,r),a=i}}}var CQt=220*n_,wQt="$",xQt=3;function Vl(e,t){t===void 0&&(t=CQt);var n=Xx(Object.prototype),r=Xx(Array.prototype),i=[],a=new WeakMap,o=Mq(e,wQt,void 0,i,a),s=JSON.stringify(o),l=s?s.length:0;if(l>t){Dq(t,"discarded",e);return}for(;i.length>0&&l<t;){var c=i.shift(),u=0;if(Array.isArray(c.source))for(var d=0;d<c.source.length;d++){var f=Mq(c.source[d],c.path,d,i,a);if(f!==void 0?l+=JSON.stringify(f).length:l+=4,l+=u,u=1,l>t){Dq(t,"truncated",e);break}c.target[d]=f}else for(var d in c.source)if(Object.prototype.hasOwnProperty.call(c.source,d)){var f=Mq(c.source[d],c.path,d,i,a);if(f!==void 0&&(l+=JSON.stringify(f).length+u+d.length+xQt,u=1),l>t){Dq(t,"truncated",e);break}c.target[d]=f}}return n(),r(),o}function Mq(e,t,n,r,i){var a=AQt(e);if(!a||typeof a!="object")return TQt(a);var o=IQt(a);if(o!=="[Object]"&&o!=="[Array]"&&o!=="[Error]")return o;var s=e;if(i.has(s))return"[Reference seen at ".concat(i.get(s),"]");var l=n!==void 0?"".concat(t,".").concat(n):t,c=Array.isArray(a)?[]:{};return i.set(s,l),r.push({source:a,target:c,path:l}),c}function TQt(e){return typeof e=="bigint"?"[BigInt] ".concat(e.toString()):typeof e=="function"?"[Function] ".concat(e.name||"unknown"):typeof e=="symbol"?"[Symbol] ".concat(e.description||e.toString()):e}function IQt(e){try{if(e instanceof Event)return{isTrusted:e.isTrusted};var t=Object.prototype.toString.call(e),n=t.match(/\[object (.*)\]/);if(n&&n[1])return"[".concat(n[1],"]")}catch{}return"[Unserializable]"}function AQt(e){var t=e;if(t&&typeof t.toJSON=="function")try{return t.toJSON()}catch{}return e}function Dq(e,t,n){Ua.warn("The data provided has been ".concat(t," as it is over the limit of ").concat(e," characters:"),n)}var UGe="No stack, consider using an instance of Error";function HGe(e){var t=e.stackTrace,n=e.originalError,r=e.handlingStack,i=e.startClocks,a=e.nonErrorPrefix,o=e.source,s=e.handling,l=n instanceof Error,c=RQt(t,l,a,n),u=NQt(l,t)?IT(t):UGe,d=l?GGe(n,o):void 0,f=t?t.name:void 0,p=VGe(n);return{startClocks:i,source:o,handling:s,handlingStack:r,originalError:n,type:f,message:c,stack:u,causes:d,fingerprint:p}}function RQt(e,t,n,r){return e?.message&&e?.name?e.message:t?"Empty message":"".concat(n," ").concat(RC(Vl(r)))}function NQt(e,t){return t===void 0?!1:e?!0:t.stack.length>0&&(t.stack.length>1||t.stack[0].url!==void 0)}function VGe(e){return e instanceof Error&&"dd_fingerprint"in e?String(e.dd_fingerprint):void 0}function GGe(e,t){for(var n=e,r=[];n?.cause instanceof Error&&r.length<10;){var i=R_(n.cause);r.push({message:n.cause.message,source:t,type:i?.name,stack:i&&IT(i)}),n=n.cause}return r.length?r:void 0}var AT={AGENT:"agent",CONSOLE:"console",CUSTOM:"custom",LOGGER:"logger",NETWORK:"network",SOURCE:"source",REPORT:"report"};function OQt(e){var t=function(i,a){var o=HGe({stackTrace:i,originalError:a,startClocks:Pu(),nonErrorPrefix:"Uncaught",source:AT.SOURCE,handling:"unhandled"});e.notify(o)},n=LQt(t).stop,r=PQt(t).stop;return{stop:function(){n(),r()}}}function LQt(e){return vd(window,"onerror",function(t){var n=t.parameters,r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],l;s instanceof Error?l=R_(s):l=_Qt(r,i,a,o),e(l,s??r)})}function PQt(e){return vd(window,"onunhandledrejection",function(t){var n=t.parameters[0],r=n.reason||"Empty reason",i=R_(r);e(i,r)})}function kQt(e){var t=Ci({version:"5.23.3",onReady:function(n){n()}},e);return Object.defineProperty(t,"_setDebug",{get:function(){return cZt},enumerable:!1}),t}function MQt(e,t,n){var r=e[t];r&&!r.q&&r.version&&Ua.warn("SDK is loaded more than once. This is unsupported and might have unexpected behavior."),e[t]=n,r&&r.q&&r.q.forEach(function(i){return EGe(i,"onReady callback threw an error:")()})}function qGe(e,t){t.silentMultipleInit||Ua.error("".concat(e," is already initialized."))}function To(e,t,n,r,i){return Rd(e,t,[n],r,i)}function Rd(e,t,n,r,i){var a=i===void 0?{}:i,o=a.once,s=a.capture,l=a.passive,c=ei(function(p){!p.isTrusted&&!p.__ddIsTrusted&&!e.allowUntrustedEvents||(o&&f(),r(p))}),u=l?{capture:s,passive:l}:s,d=i_(t,"addEventListener");n.forEach(function(p){return d.call(t,p,c,u)});function f(){var p=i_(t,"removeEventListener");n.forEach(function(h){return p.call(t,h,c,u)})}return{stop:f}}var O3={intervention:"intervention",deprecation:"deprecation",cspViolation:"csp_violation"};function DQt(e,t){var n=[];hm(t,O3.cspViolation)&&n.push(FQt(e));var r=t.filter(function(i){return i!==O3.cspViolation});return r.length&&n.push($Qt(r)),AGe.apply(void 0,n)}function $Qt(e){return new oo(function(t){if(window.ReportingObserver){var n=ei(function(i,a){return i.forEach(function(o){t.notify(BQt(o))})}),r=new window.ReportingObserver(n,{types:e,buffered:!0});return r.observe(),function(){r.disconnect()}}})}function FQt(e){return new oo(function(t){var n=To(e,document,"securitypolicyviolation",function(r){t.notify(jQt(r))}).stop;return n})}function BQt(e){var t=e.type,n=e.body;return{type:t,subtype:n.id,message:"".concat(t,": ").concat(n.message),originalReport:e,stack:WGe(n.id,n.message,n.sourceFile,n.lineNumber,n.columnNumber)}}function jQt(e){var t=O3.cspViolation,n="'".concat(e.blockedURI,"' blocked by '").concat(e.effectiveDirective,"' directive");return{type:O3.cspViolation,subtype:e.effectiveDirective,message:"".concat(t,": ").concat(n),stack:WGe(e.effectiveDirective,e.originalPolicy?"".concat(n,' of the policy "').concat(RGe(e.originalPolicy,100,"..."),'"'):"no policy",e.sourceFile,e.lineNumber,e.columnNumber),originalReport:e}}function WGe(e,t,n,r,i){return n?IT({name:e,message:t,stack:[{func:"?",url:n,line:r??void 0,column:i??void 0}]}):void 0}function $fe(e,t){var n=window.__ddBrowserSdkExtensionCallback;n&&n({type:e,payload:t})}function N_(e){return e===null?"null":Array.isArray(e)?"array":typeof e}function iF(e,t,n){if(n===void 0&&(n=zQt()),t===void 0)return e;if(typeof t!="object"||t===null)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp){var r=t.flags||[t.global?"g":"",t.ignoreCase?"i":"",t.multiline?"m":"",t.sticky?"y":"",t.unicode?"u":""].join("");return new RegExp(t.source,r)}if(!n.hasAlreadyBeenSeen(t)){if(Array.isArray(t)){for(var i=Array.isArray(e)?e:[],a=0;a<t.length;++a)i[a]=iF(i[a],t[a],n);return i}var o=N_(e)==="object"?e:{};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(o[s]=iF(o[s],t[s],n));return o}}function Ffe(e){return iF(void 0,e)}function iv(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r=0,i=e;r<i.length;r++){var a=i[r];a!=null&&(n=iF(n,a))}return n}function zQt(){if(typeof WeakSet<"u"){var e=new WeakSet;return{hasAlreadyBeenSeen:function(n){var r=e.has(n);return r||e.add(n),r}}}var t=[];return{hasAlreadyBeenSeen:function(n){var r=t.indexOf(n)>=0;return r||t.push(n),r}}}function YGe(){var e,t=window.navigator;return{status:t.onLine?"connected":"not_connected",interfaces:t.connection&&t.connection.type?[t.connection.type]:void 0,effective_type:(e=t.connection)===null||e===void 0?void 0:e.effectiveType}}function KGe(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}var UQt=500;function XGe(){var e=[],t=function(i){var a=e.push(i);a>UQt&&e.splice(0,1)},n=function(i){KGe(e,i)},r=function(i){e.forEach(function(a){return a(i)}),e.length=0};return{add:t,remove:n,drain:r}}var cE={log:"log",configuration:"configuration",usage:"usage"},HQt=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost","<anonymous>"],VQt=[WZt],ZGe=XGe(),RT=function(e){ZGe.add(function(){return RT(e)})};function GQt(e,t){var n,r,i=new oo,a=new Set,o=!hm(VQt,t.site)&&lE(t.telemetrySampleRate),s=(n={},n[cE.log]=o,n[cE.configuration]=o&&lE(t.telemetryConfigurationSampleRate),n[cE.usage]=o&&lE(t.telemetryUsageSampleRate),n),l=qQt();RT=function(u){var d=RC(u);if(s[u.type]&&a.size<t.maxTelemetryEventsPerPage&&!a.has(d)){var f=c(e,u,l);i.notify(f),$fe("telemetry",f),a.add(d)}},lZt(aF);function c(u,d,f){return iv({type:"telemetry",date:Ql(),service:u,version:"5.23.3",source:"browser",_dd:{format_version:2},telemetry:iv(d,{runtime_env:f,connectivity:YGe()}),experimental_features:Rfe(cQt())},r!==void 0?r():{})}return{setContextProvider:function(u){r=u},observable:i,enabled:o}}function qQt(){return{is_local_file:window.location.protocol==="file:",is_worker:"WorkerGlobalScope"in self}}function WQt(){ZGe.drain()}function YQt(e){return e.site===FGe}function NT(e,t){zie(Bz.debug,e,t),RT(Ci({type:cE.log,message:e,status:"debug"},t))}function aF(e,t){RT(Ci({type:cE.log,status:"error"},XQt(e),t))}function KQt(e){RT({type:cE.configuration,configuration:e})}function rf(e){RT({type:cE.usage,usage:e})}function XQt(e){if(e instanceof Error){var t=R_(e);return{error:{kind:t.name,stack:IT(ZQt(t))},message:t.message}}return{error:{stack:UGe},message:"".concat("Uncaught"," ").concat(RC(e))}}function ZQt(e){return e.stack=e.stack.filter(function(t){return!t.url||HQt.some(function(n){return $O(t.url,n)})}),e}var wP=1/0,QQt=Bd;function OT(e){var t=e.expireDelay,n=e.maxEntries,r=[],i=xT(function(){return a()},QQt);function a(){for(var f=pm()-t;r.length>0&&r[r.length-1].endTime<f;)r.pop()}function o(f,p){var h={value:f,startTime:p,endTime:wP,remove:function(){KGe(r,h)},close:function(m){h.endTime=m}};return n&&r.length>=n&&r.pop(),r.unshift(h),h}function s(f,p){f===void 0&&(f=wP),p===void 0&&(p={returnInactive:!1});for(var h=0,m=r;h<m.length;h++){var g=m[h];if(g.startTime<=f){if(p.returnInactive||f<=g.endTime)return g.value;break}}}function l(f){var p=r[0];p&&p.endTime===wP&&p.close(f)}function c(f,p){f===void 0&&(f=wP),p===void 0&&(p=0);var h=wT(f,p);return r.filter(function(m){return m.startTime<=h&&f<=m.endTime}).map(function(m){return m.value})}function u(){r=[]}function d(){Hz(i)}return{add:o,find:s,closeActive:l,findAll:c,reset:u,stop:d}}var JQt=Bd,eJt=AC;function tJt(e,t,n,r){var i=new oo,a=new oo,o=jZt(e.sessionStoreStrategyType,t,n),s=OT({expireDelay:eJt});o.renewObservable.subscribe(function(){s.add(l(),pm()),i.notify()}),o.expireObservable.subscribe(function(){a.notify(),s.closeActive(pm())}),o.expandOrRenewSession(),s.add(l(),wGe().relative),r.observable.subscribe(function(){r.isGranted()?o.expandOrRenewSession():o.expire()}),nJt(e,function(){r.isGranted()&&o.expandOrRenewSession()}),rJt(e,function(){return o.expandSession()}),iJt(e,function(){return o.restartSession()});function l(){return{id:o.getSession().id,trackingType:o.getSession()[t],isReplayForced:!!o.getSession().forcedReplay}}return{findSession:function(c,u){return s.find(c,u)},renewObservable:i,expireObservable:a,sessionStateUpdateObservable:o.sessionStateUpdateObservable,expire:o.expire,updateSessionState:o.updateSessionState}}function nJt(e,t){Rd(e,window,["click","touchstart","keydown","scroll"],t,{capture:!0,passive:!0}).stop}function rJt(e,t){var n=function(){document.visibilityState==="visible"&&t()};To(e,document,"visibilitychange",n).stop,xT(n,JQt)}function iJt(e,t){To(e,window,"resume",t,{capture:!0}).stop}function aJt(e){return e>=500}function oJt(e){try{return e.clone()}catch{return}}var sJt=80*n_,lJt=32,QGe=3*xGe,cJt=Bd,JGe=Bu;function eqe(e,t,n,r,i){t.transportStatus===0&&t.queuedPayloads.size()===0&&t.bandwidthMonitor.canHandle(e)?nqe(e,t,n,{onSuccess:function(){return rqe(0,t,n,r,i)},onFailure:function(){t.queuedPayloads.enqueue(e),tqe(t,n,r,i)}}):t.queuedPayloads.enqueue(e)}function tqe(e,t,n,r){e.transportStatus===2&&Ec(function(){var i=e.queuedPayloads.first();nqe(i,e,t,{onSuccess:function(){e.queuedPayloads.dequeue(),e.currentBackoffTime=JGe,rqe(1,e,t,n,r)},onFailure:function(){e.currentBackoffTime=Math.min(cJt,e.currentBackoffTime*2),tqe(e,t,n,r)}})},e.currentBackoffTime)}function nqe(e,t,n,r){var i=r.onSuccess,a=r.onFailure;t.bandwidthMonitor.add(e),n(e,function(o){t.bandwidthMonitor.remove(e),uJt(o)?(t.transportStatus=t.bandwidthMonitor.ongoingRequestCount>0?1:2,e.retry={count:e.retry?e.retry.count+1:1,lastFailureStatus:o.status},a()):(t.transportStatus=0,i())})}function rqe(e,t,n,r,i){e===0&&t.queuedPayloads.isFull()&&!t.queueFullReported&&(i({message:"Reached max ".concat(r," events size queued for upload: ").concat(QGe/xGe,"MiB"),source:AT.AGENT,startClocks:Pu()}),t.queueFullReported=!0);var a=t.queuedPayloads;for(t.queuedPayloads=iqe();a.size()>0;)eqe(a.dequeue(),t,n,r,i)}function uJt(e){return e.type!=="opaque"&&(e.status===0&&!navigator.onLine||e.status===408||e.status===429||aJt(e.status))}function dJt(){return{transportStatus:0,currentBackoffTime:JGe,bandwidthMonitor:fJt(),queuedPayloads:iqe(),queueFullReported:!1}}function iqe(){var e=[];return{bytesCount:0,enqueue:function(t){this.isFull()||(e.push(t),this.bytesCount+=t.bytesCount)},first:function(){return e[0]},dequeue:function(){var t=e.shift();return t&&(this.bytesCount-=t.bytesCount),t},size:function(){return e.length},isFull:function(){return this.bytesCount>=QGe}}}function fJt(){return{ongoingRequestCount:0,ongoingByteCount:0,canHandle:function(e){return this.ongoingRequestCount===0||this.ongoingByteCount+e.bytesCount<=sJt&&this.ongoingRequestCount<lJt},add:function(e){this.ongoingRequestCount+=1,this.ongoingByteCount+=e.bytesCount},remove:function(e){this.ongoingRequestCount-=1,this.ongoingByteCount-=e.bytesCount}}}function aqe(e,t,n,r){var i=dJt(),a=function(o,s){return mJt(e,t,n,o,s)};return{send:function(o){eqe(o,i,a,t.trackType,r)},sendOnExit:function(o){pJt(e,t,n,o)}}}function pJt(e,t,n,r){var i=!!navigator.sendBeacon&&r.bytesCount<n;if(i)try{var a=t.build("beacon",r),o=navigator.sendBeacon(a,r.data);if(o)return}catch(l){hJt(l)}var s=t.build("xhr",r);Vie(e,s,r.data)}var zEe=!1;function hJt(e){zEe||(zEe=!0,aF(e))}function mJt(e,t,n,r,i){var a=gJt()&&r.bytesCount<n;if(a){var o=t.build("fetch",r);fetch(o,{method:"POST",body:r.data,keepalive:!0,mode:"cors"}).then(ei(function(l){return i?.({status:l.status,type:l.type})}),ei(function(){var l=t.build("xhr",r);Vie(e,l,r.data,i)}))}else{var s=t.build("xhr",r);Vie(e,s,r.data,i)}}function gJt(){try{return window.Request&&"keepalive"in new Request("http://a")}catch{return!1}}function Vie(e,t,n,r){var i=new XMLHttpRequest;i.open("POST",t,!0),n instanceof Blob&&i.setRequestHeader("Content-Type",n.type),To(e,i,"loadend",function(){r?.({status:i.status})},{once:!0}),i.send(n)}function LT(){var e=vJt();if(e)return{getCapabilities:function(){var t;return JSON.parse(((t=e.getCapabilities)===null||t===void 0?void 0:t.call(e))||"[]")},getPrivacyLevel:function(){var t;return(t=e.getPrivacyLevel)===null||t===void 0?void 0:t.call(e)},getAllowedWebViewHosts:function(){return JSON.parse(e.getAllowedWebViewHosts())},send:function(t,n,r){var i=r?{id:r}:void 0;e.send(JSON.stringify({eventType:t,event:n,view:i}))}}}function oqe(e){var t=LT();return!!t&&hm(t.getCapabilities(),e)}function UE(e){var t;e===void 0&&(e=(t=A_().location)===null||t===void 0?void 0:t.hostname);var n=LT();return!!n&&n.getAllowedWebViewHosts().some(function(r){return e===r||aZt(e,".".concat(r))})}function vJt(){return A_().DatadogEventBridge}var T5={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function yJt(e){return new oo(function(t){var n=Rd(e,window,["visibilitychange","freeze"],function(i){i.type==="visibilitychange"&&document.visibilityState==="hidden"?t.notify({reason:T5.HIDDEN}):i.type==="freeze"&&t.notify({reason:T5.FROZEN})},{capture:!0}).stop,r=To(e,window,"beforeunload",function(){t.notify({reason:T5.UNLOADING})}).stop;return function(){n(),r()}})}function sqe(e){return hm(Uz(T5),e)}function bJt(e){var t=e.encoder,n=e.request,r=e.flushController,i=e.messageBytesLimit,a={},o=r.flushObservable.subscribe(function(f){return d(f)});function s(f,p,h){r.notifyBeforeAddMessage(p),h!==void 0?(a[h]=f,r.notifyAfterAddMessage()):t.write(t.isEmpty?f:`
`.concat(f),function(m){r.notifyAfterAddMessage(m-p)})}function l(f){return f!==void 0&&a[f]!==void 0}function c(f){var p=a[f];delete a[f];var h=t.estimateEncodedBytesCount(p);r.notifyAfterRemoveMessage(h)}function u(f,p){var h=RC(f),m=t.estimateEncodedBytesCount(h);if(m>=i){Ua.warn("Discarded a message whose size was bigger than the maximum allowed size ".concat(i,"KB. ").concat(zz," ").concat(SGe,"/#technical-limitations"));return}l(p)&&c(p),s(h,m,p)}function d(f){var p=Uz(a).join(`
`);a={};var h=sqe(f.reason),m=h?n.sendOnExit:n.send;if(h&&t.isAsync){var g=t.finishSync();g.outputBytesCount&&m(UEe(g));var v=[g.pendingData,p].filter(Boolean).join(`
`);v&&m({data:v,bytesCount:Afe(v)})}else p&&t.write(t.isEmpty?p:`
`.concat(p)),t.finish(function(y){m(UEe(y))})}return{flushController:r,add:u,upsert:u,stop:o.unsubscribe}}function UEe(e){var t;return typeof e.output=="string"?t=e.output:t=new Blob([e.output],{type:"text/plain"}),{data:t,bytesCount:e.outputBytesCount,encoding:e.encoding}}function _Jt(e){var t=e.messagesLimit,n=e.bytesLimit,r=e.durationLimit,i=e.pageExitObservable,a=e.sessionExpireObservable,o=i.subscribe(function(m){return d(m.reason)}),s=a.subscribe(function(){return d("session_expire")}),l=new oo(function(){return function(){o.unsubscribe(),s.unsubscribe()}}),c=0,u=0;function d(m){if(u!==0){var g=u,v=c;u=0,c=0,h(),l.notify({reason:m,messagesCount:g,bytesCount:v})}}var f;function p(){f===void 0&&(f=Ec(function(){d("duration_limit")},r))}function h(){Hh(f),f=void 0}return{flushObservable:l,get messagesCount(){return u},notifyBeforeAddMessage:function(m){c+m>=n&&d("bytes_limit"),u+=1,c+=m,p()},notifyAfterAddMessage:function(m){m===void 0&&(m=0),c+=m,u>=t?d("messages_limit"):c>=n&&d("bytes_limit")},notifyAfterRemoveMessage:function(m){c-=m,u-=1,u===0&&h()}}}function SJt(e,t,n,r,i,a,o){o===void 0&&(o=bJt);var s=c(e,t),l=n&&c(e,n);function c(u,d){var f=d.endpoint,p=d.encoder;return o({encoder:p,request:aqe(u,f,u.batchBytesLimit,r),flushController:_Jt({messagesLimit:u.batchMessagesLimit,bytesLimit:u.batchBytesLimit,durationLimit:u.flushTimeout,pageExitObservable:i,sessionExpireObservable:a}),messageBytesLimit:u.messageBytesLimit})}return{flushObservable:s.flushController.flushObservable,add:function(u,d){d===void 0&&(d=!0),s.add(u),l&&d&&l.add(n.transformMessage?n.transformMessage(u):u)},upsert:function(u,d){s.upsert(u,d),l&&l.upsert(n.transformMessage?n.transformMessage(u):u,d)},stop:function(){s.stop(),l&&l.stop()}}}function EJt(){var e="",t=0;return{isAsync:!1,get isEmpty(){return!e},write:function(n,r){var i=Afe(n);t+=i,e+=n,r&&r(i)},finish:function(n){n(this.finishSync())},finishSync:function(){var n={output:e,outputBytesCount:t,rawBytesCount:t,pendingData:""};return e="",t=0,n},estimateEncodedBytesCount:function(n){return n.length}}}var CJt=function(){function e(){this.callbacks={}}return e.prototype.notify=function(t,n){var r=this.callbacks[t];r&&r.forEach(function(i){return i(n)})},e.prototype.subscribe=function(t,n){var r=this;return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(n),{unsubscribe:function(){r.callbacks[t]=r.callbacks[t].filter(function(i){return n!==i})}}},e}();function $q(e,t,n){var r=0,i=!1;return{isLimitReached:function(){if(r===0&&Ec(function(){r=0},Bd),r+=1,r<=t||i)return i=!1,!1;if(r===t+1){i=!0;try{n({message:"Reached max number of ".concat(e,"s by minute: ").concat(t),source:AT.AGENT,startClocks:Pu()})}finally{i=!1}}return!0}}}function Bfe(e,t,n){if(document.readyState===t||document.readyState==="complete")n();else{var r=t==="complete"?"load":"DOMContentLoaded";To(e,window,r,n,{once:!0})}}var Fq,jfe=new WeakMap;function wJt(e){return Fq||(Fq=xJt(e)),Fq}function xJt(e){return new oo(function(t){var n=vd(XMLHttpRequest.prototype,"open",TJt).stop,r=vd(XMLHttpRequest.prototype,"send",function(a){IJt(a,e,t)},{computeHandlingStack:!0}).stop,i=vd(XMLHttpRequest.prototype,"abort",AJt).stop;return function(){n(),r(),i()}})}function TJt(e){var t=e.target,n=e.parameters,r=n[0],i=n[1];jfe.set(t,{state:"open",method:String(r).toUpperCase(),url:Mfe(String(i))})}function IJt(e,t,n){var r=e.target,i=e.handlingStack,a=jfe.get(r);if(a){var o=a;o.state="start",o.startClocks=Pu(),o.isAborted=!1,o.xhr=r,o.handlingStack=i;var s=!1,l=vd(r,"onreadystatechange",function(){r.readyState===XMLHttpRequest.DONE&&c()}).stop,c=function(){if(u(),l(),!s){s=!0;var d=a;d.state="complete",d.duration=ru(o.startClocks.timeStamp,Ql()),d.status=r.status,n.notify(zN(d))}},u=To(t,r,"loadend",c).stop;n.notify(o)}}function AJt(e){var t=e.target,n=jfe.get(t);n&&(n.isAborted=!0)}var Bq;function lqe(){return Bq||(Bq=RJt()),Bq}function RJt(){return new oo(function(e){if(window.fetch){var t=vd(window,"fetch",function(n){return NJt(n,e)},{computeHandlingStack:!0}).stop;return t}})}function NJt(e,t){var n=e.parameters,r=e.onPostCall,i=e.handlingStack,a=n[0],o=n[1],s=o&&o.method;s===void 0&&a instanceof Request&&(s=a.method);var l=s!==void 0?String(s).toUpperCase():"GET",c=a instanceof Request?a.url:Mfe(String(a)),u=Pu(),d={state:"start",init:o,input:a,method:l,startClocks:u,url:c,handlingStack:i};t.notify(d),n[0]=d.input,n[1]=d.init,r(function(f){return OJt(t,f,d)})}function OJt(e,t,n){var r=n;function i(a){r.state="resolve",Ci(r,a),e.notify(r)}t.then(ei(function(a){i({response:a,responseType:a.type,status:a.status,isAborted:!1})}),ei(function(a){var o,s;i({status:0,isAborted:((s=(o=r.init)===null||o===void 0?void 0:o.signal)===null||s===void 0?void 0:s.aborted)||a instanceof DOMException&&a.code===DOMException.ABORT_ERR,error:a})}))}var jq={};function LJt(e){var t=e.map(function(n){return jq[n]||(jq[n]=PJt(n)),jq[n]});return AGe.apply(void 0,t)}function PJt(e){return new oo(function(t){var n=w1[e];return w1[e]=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];n.apply(console,r);var a=rF();zE(function(){t.notify(kJt(r,e,a))})},function(){w1[e]=n}})}function kJt(e,t,n){var r=e.map(function(l){return MJt(l)}).join(" "),i,a,o;if(t===Bz.error){var s=r_(e,function(l){return l instanceof Error});i=s?IT(R_(s)):void 0,a=VGe(s),o=s?GGe(s,"console"):void 0}return{api:t,message:r,stack:i,handlingStack:n,fingerprint:a,causes:o}}function MJt(e){return typeof e=="string"?Vl(e):e instanceof Error?zGe(R_(e)):RC(Vl(e),void 0,2)}function HEe(e){var t={},n=new oo,r={getContext:function(){return Ffe(t)},setContext:function(i){N_(i)==="object"?(t=Vl(i),e.updateCustomerData(t)):r.clearContext(),n.notify()},setContextProperty:function(i,a){t[i]=Vl(a),e.updateCustomerData(t),n.notify()},removeContextProperty:function(i){delete t[i],e.updateCustomerData(t),n.notify()},clearContext:function(){t={},e.resetCustomerData(),n.notify()},changeObservable:n};return r}var DJt="_dd_c",$Jt=[];function VEe(e,t,n,r){var i=FJt(n,r);$Jt.push(To(e,window,"storage",function(l){var c=l.key;i===c&&a()})),t.changeObservable.subscribe(o),t.setContext(iv(s(),t.getContext()));function a(){t.setContext(s())}function o(){localStorage.setItem(i,JSON.stringify(t.getContext()))}function s(){var l=localStorage.getItem(i);return l!==null?JSON.parse(l):{}}}function FJt(e,t){return"".concat(DJt,"_").concat(e,"_").concat(t)}var BJt=3*n_,jJt=16*n_,zJt=200;function UJt(e){e===void 0&&(e=2);var t=new Map,n=!1;function r(i){if(i===void 0&&(i=0),!(n||e===0)){var a=e===2?BJt:jJt,o=i;t.forEach(function(s){o+=s.getBytesCount()}),o>a&&(HJt(a),n=!0)}}return{createDetachedTracker:function(){var i=GEe(function(){return r(i.getBytesCount())});return i},getOrCreateTracker:function(i){return t.has(i)||t.set(i,GEe(r)),t.get(i)},setCompressionStatus:function(i){e===0&&(e=i,r())},getCompressionStatus:function(){return e},stop:function(){t.forEach(function(i){return i.stop()}),t.clear()}}}function GEe(e){var t=0,n=y0(function(o){t=Afe(RC(o)),e()},zJt),r=n.throttled,i=n.cancel,a=function(){i(),t=0};return{updateCustomerData:function(o){jE(o)?a():r(o)},resetCustomerData:a,getBytesCount:function(){return t},stop:function(){i()}}}function HJt(e){Ua.warn("Customer data exceeds the recommended ".concat(e/n_,"KiB threshold. ").concat(zz," ").concat(SGe,"/#customer-data-exceeds-the-recommended-threshold-warning"))}function VJt(e,t,n){var r=e.getReader(),i=0;a();function a(){r.read().then(ei(function(s){if(s.done){o();return}i+=s.value.length,i>n.bytesLimit?o():a()}),ei(function(s){return t(s)}))}function o(){r.cancel().catch(za);var s,l;t(void 0,s,l)}}var GJt="datadog-synthetics-public-id",qJt="datadog-synthetics-result-id",WJt="datadog-synthetics-injects-rum";function cqe(){return!!(window._DATADOG_SYNTHETICS_INJECTS_RUM||pb(WJt))}function YJt(){var e=window._DATADOG_SYNTHETICS_PUBLIC_ID||pb(GJt);return typeof e=="string"?e:void 0}function KJt(){var e=window._DATADOG_SYNTHETICS_RESULT_ID||pb(qJt);return typeof e=="string"?e:void 0}function qEe(e){var t=Ci({},e),n=["id","name","email"];return n.forEach(function(r){r in t&&(t[r]=String(t[r]))}),t}function XJt(e){var t=N_(e)==="object";return t||Ua.error("Unsupported user:",e),t}function zfe(e){var t=N_(e);return t==="string"||t==="function"||e instanceof RegExp}function uqe(e,t,n){return n===void 0&&(n=!1),e.some(function(r){try{if(typeof r=="function")return r(t);if(r instanceof RegExp)return r.test(t);if(typeof r=="string")return n?$O(t,r):r===t}catch(i){Ua.error(i)}return!1})}function ZJt(e,t,n){return{context:e.getContext(),user:t.getContext(),hasReplay:n.isRecording()?!0:void 0}}function QJt(e){var t=e;return N_(t)==="object"&&zfe(t.match)&&Array.isArray(t.propagatorTypes)}function JJt(e){e.status===0&&!e.isAborted&&(e.traceId=void 0,e.spanId=void 0,e.traceSampled=void 0)}function een(e,t){return{clearTracingIfNeeded:JJt,traceFetch:function(n){return WEe(e,n,t,function(r){var i;if(n.input instanceof Request&&!(!((i=n.init)===null||i===void 0)&&i.headers))n.input=new Request(n.input),Object.keys(r).forEach(function(o){n.input.headers.append(o,r[o])});else{n.init=zN(n.init);var a=[];n.init.headers instanceof Headers?n.init.headers.forEach(function(o,s){a.push([s,o])}):Array.isArray(n.init.headers)?n.init.headers.forEach(function(o){a.push(o)}):n.init.headers&&Object.keys(n.init.headers).forEach(function(o){a.push([o,n.init.headers[o]])}),n.init.headers=a.concat(Nfe(r))}})},traceXhr:function(n,r){return WEe(e,n,t,function(i){Object.keys(i).forEach(function(a){r.setRequestHeader(a,i[a])})})}}}function WEe(e,t,n,r){if(!(!ten()||!n.findTrackedSession())){var i=r_(e.allowedTracingUrls,function(a){return uqe([a.match],t.url,!0)});i&&(t.traceSampled=!CT(e.traceSampleRate)||lE(e.traceSampleRate),!(!t.traceSampled&&e.traceContextInjection!==Hie.ALL)&&(t.traceId=Gie(),t.spanId=Gie(),r(nen(t.traceId,t.spanId,t.traceSampled,i.propagatorTypes))))}}function ten(){return dqe()!==void 0}function dqe(){return window.crypto||window.msCrypto}function nen(e,t,n,r){var i={};return r.forEach(function(a){switch(a){case"datadog":{Ci(i,{"x-datadog-origin":"rum","x-datadog-parent-id":t.toDecimalString(),"x-datadog-sampling-priority":n?"1":"0","x-datadog-trace-id":e.toDecimalString()});break}case"tracecontext":{Ci(i,{traceparent:"00-0000000000000000".concat(e.toPaddedHexadecimalString(),"-").concat(t.toPaddedHexadecimalString(),"-0").concat(n?"1":"0")});break}case"b3":{Ci(i,{b3:"".concat(e.toPaddedHexadecimalString(),"-").concat(t.toPaddedHexadecimalString(),"-").concat(n?"1":"0")});break}case"b3multi":{Ci(i,{"X-B3-TraceId":e.toPaddedHexadecimalString(),"X-B3-SpanId":t.toPaddedHexadecimalString(),"X-B3-Sampled":n?"1":"0"});break}}}),i}function Gie(){var e=new Uint8Array(8);dqe().getRandomValues(e),e[0]=e[0]&127;function t(a){return e[a]*16777216+(e[a+1]<<16)+(e[a+2]<<8)+e[a+3]}function n(a){var o=t(0),s=t(4),l="";do{var c=o%a*4294967296+s;o=Math.floor(o/a),s=Math.floor(c/a),l=(c%a).toString(a)+l}while(o||s);return l}function r(){return n(10)}function i(){var a=n(16);return Array(17-a.length).join("0")+a}return{toDecimalString:r,toPaddedHexadecimalString:i}}var fqe=["tracecontext","datadog"];function ren(e){var t,n;if(!e.applicationId){Ua.error("Application ID is not configured, no RUM data will be collected.");return}if(!(!Zx(e.sessionReplaySampleRate,"Session Replay")||!Zx(e.traceSampleRate,"Trace"))){if(e.excludedActivityUrls!==void 0&&!Array.isArray(e.excludedActivityUrls)){Ua.error("Excluded Activity Urls should be an array");return}var r=ien(e);if(r){var i=aQt(e);if(i)return Ci({applicationId:e.applicationId,version:e.version||void 0,actionNameAttribute:e.actionNameAttribute,sessionReplaySampleRate:(t=e.sessionReplaySampleRate)!==null&&t!==void 0?t:0,startSessionReplayRecordingManually:!!e.startSessionReplayRecordingManually,traceSampleRate:e.traceSampleRate,allowedTracingUrls:r,excludedActivityUrls:(n=e.excludedActivityUrls)!==null&&n!==void 0?n:[],workerUrl:e.workerUrl,compressIntakeRequests:!!e.compressIntakeRequests,trackUserInteractions:!!e.trackUserInteractions,trackViewsManually:!!e.trackViewsManually,trackResources:!!e.trackResources,trackLongTasks:!!e.trackLongTasks,subdomain:e.subdomain,defaultPrivacyLevel:UN(hR,e.defaultPrivacyLevel)?e.defaultPrivacyLevel:hR.MASK,enablePrivacyForActionName:!!e.enablePrivacyForActionName,customerDataTelemetrySampleRate:1,traceContextInjection:UN(Hie,e.traceContextInjection)?e.traceContextInjection:Hie.ALL,plugins:e.betaPlugins||[]},i)}}}function ien(e){if(e.allowedTracingUrls===void 0)return[];if(!Array.isArray(e.allowedTracingUrls)){Ua.error("Allowed Tracing URLs should be an array");return}if(e.allowedTracingUrls.length!==0&&e.service===void 0){Ua.error("Service needs to be configured when tracing is enabled");return}var t=[];return e.allowedTracingUrls.forEach(function(n){zfe(n)?t.push({match:n,propagatorTypes:fqe}):QJt(n)?t.push(n):Ua.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",n)}),t}function aen(e){var t=new Set;return Array.isArray(e.allowedTracingUrls)&&e.allowedTracingUrls.length>0&&e.allowedTracingUrls.forEach(function(n){zfe(n)?fqe.forEach(function(r){return t.add(r)}):N_(n)==="object"&&Array.isArray(n.propagatorTypes)&&n.propagatorTypes.forEach(function(r){return t.add(r)})}),Rfe(t)}function oen(e){var t,n=oQt(e);return Ci({session_replay_sample_rate:e.sessionReplaySampleRate,start_session_replay_recording_manually:e.startSessionReplayRecordingManually,trace_sample_rate:e.traceSampleRate,trace_context_injection:e.traceContextInjection,action_name_attribute:e.actionNameAttribute,use_allowed_tracing_urls:Array.isArray(e.allowedTracingUrls)&&e.allowedTracingUrls.length>0,selected_tracing_propagators:aen(e),default_privacy_level:e.defaultPrivacyLevel,enable_privacy_for_action_name:e.enablePrivacyForActionName,use_excluded_activity_urls:Array.isArray(e.excludedActivityUrls)&&e.excludedActivityUrls.length>0,use_worker_url:!!e.workerUrl,compress_intake_requests:e.compressIntakeRequests,track_views_manually:e.trackViewsManually,track_user_interactions:e.trackUserInteractions,track_resources:e.trackResources,track_long_task:e.trackLongTasks,plugins:(t=e.betaPlugins)===null||t===void 0?void 0:t.map(function(r){var i;return Ci({name:r.name},(i=r.getConfigurationTelemetry)===null||i===void 0?void 0:i.call(r))})},n)}var sen="https://d3uc069fcn7uxw.cloudfront.net/configuration";function len(e,t){uen(e,function(n){t(cen(e,n))})}function cen(e,t){return Ci({},e,t)}function uen(e,t){var n=new XMLHttpRequest;To(e,n,"load",function(){n.status===200?t(JSON.parse(n.responseText)):YEe()}),To(e,n,"error",function(){YEe()}),n.open("GET","".concat(sen,"/").concat(encodeURIComponent(e.remoteConfigurationId),".json")),n.send()}function YEe(){Ua.error("Error fetching the remote configuration.")}function den(e,t){function n(i){return!t.wasInPageStateDuringPeriod("frozen",i.startClocks.relative,i.duration)}function r(i){n(i)&&e.notify(12,pen(i))}return{addDurationVital:r,startDurationVital:function(i){return pqe(function(a){r(a)},i)}}}function pqe(e,t){var n=Pu(),r;return{stop:function(i){r||(r=Pu(),e(fen(t,n,i,r)))}}}function fen(e,t,n,r){var i;return n===void 0&&(n={}),{name:e.name,type:"duration",startClocks:t,duration:ru(t.timeStamp,r.timeStamp),context:iv(e.context,n.context),details:(i=n.details)!==null&&i!==void 0?i:e.details}}function pen(e,t){var n={date:e.startClocks.timeStamp,vital:{id:ju(),type:e.type,name:e.name,duration:Mo(e.duration),details:e.details},type:"vital"};return n._dd={vital:{computed_value:!0}},{rawRumEvent:n,startTime:e.startClocks.relative,customerContext:e.context,domainContext:{}}}function hen(e,t,n){if(e)for(var r=0,i=e;r<i.length;r++){var a=i[r],o=a[t];o&&o(n)}}function men(e,t,n,r){var i=e.ignoreInitIfSyntheticsWillInjectRum,a=e.startDeflateWorker,o=XGe(),s,l,c,u,d=n.observable.subscribe(f);function f(){if(!(!c||!u||!n.isGranted())){d.unsubscribe();var m;if(u.trackViewsManually){if(!s)return;o.remove(s.callback),m=s.options}var g=r(u,l,m);o.drain(g)}}function p(m){var g=UE();if(g&&(m=gen(m)),c=m,KQt(oen(m)),u){qGe("DD_RUM",m);return}var v=ren(m);if(v){if(!g&&!v.sessionStoreStrategyType){Ua.warn("No storage available for session. We will not send any data.");return}v.compressIntakeRequests&&!g&&a&&(l=a(v,"Datadog RUM",za),!l)||(u=v,lqe().subscribe(za),n.tryToInit(v.trackingConsent),f())}}var h=function(m){o.add(function(g){return g.addDurationVital(m)})};return{init:function(m,g){if(!m){Ua.error("Missing configuration");return}sQt(m.enableExperimentalFeatures),c=m,!(i&&cqe())&&(hen(m.betaPlugins,"onInit",{initConfiguration:m,publicApi:g}),m.remoteConfigurationId&&R3(s0.REMOTE_CONFIGURATION)?len(m,p):p(m))},get initConfiguration(){return c},getInternalContext:za,stopSession:za,addTiming:function(m,g){g===void 0&&(g=Ql()),o.add(function(v){return v.addTiming(m,g)})},startView:function(m,g){g===void 0&&(g=Pu());var v=function(y){y.startView(m,g)};o.add(v),s||(s={options:m,callback:v},f())},updateViewName:function(m){o.add(function(g){return g.updateViewName(m)})},addAction:function(m,g){g===void 0&&(g=t()),o.add(function(v){return v.addAction(m,g)})},addError:function(m,g){g===void 0&&(g=t()),o.add(function(v){return v.addError(m,g)})},addFeatureFlagEvaluation:function(m,g){o.add(function(v){return v.addFeatureFlagEvaluation(m,g)})},startDurationVital:function(m){return pqe(function(g){return h(g)},m)},addDurationVital:h}}function gen(e){var t,n;return Ci({},e,{applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100,defaultPrivacyLevel:(t=e.defaultPrivacyLevel)!==null&&t!==void 0?t:(n=LT())===null||n===void 0?void 0:n.getPrivacyLevel()})}var KEe="rum";function ven(e,t,n){n===void 0&&(n={});var r=UJt(0),i=HEe(r.getOrCreateTracker(2)),a=HEe(r.getOrCreateTracker(1)),o=zZt();function s(){return ZJt(i,a,t)}var l=men(n,s,o,function(d,f,p){R3(s0.CUSTOM_VITALS)&&(u.startDurationVital=ei(function(m,g){return rf({feature:"start-duration-vital"}),l.startDurationVital({name:Vl(m),context:Vl(g&&g.context),details:Vl(g&&g.details)})}),u.addDurationVital=ei(function(m,g){rf({feature:"add-duration-vital"}),l.addDurationVital({name:Vl(m),type:"duration",startClocks:ZXt(g.startTime),duration:g.duration,context:Vl(g&&g.context),details:Vl(g&&g.details)})}),u.stopDurationVital=za),R3(s0.UPDATE_VIEW_NAME)&&(u.updateViewName=ei(function(m){l.updateViewName(m)})),d.storeContextsAcrossPages&&(VEe(d,i,KEe,2),VEe(d,a,KEe,1)),r.setCompressionStatus(f?1:2);var h=e(d,t,r,s,p,f&&n.createDeflateEncoder?function(m){return n.createDeflateEncoder(d,f,m)}:EJt,o);return t.onRumStart(h.lifeCycle,d,h.session,h.viewContexts,f),l=yen(l,h),h}),c=ei(function(d){var f=typeof d=="object"?d:{name:d};l.startView(f),rf({feature:"start-view"})}),u=kQt({init:ei(function(d){return l.init(d,u)}),setTrackingConsent:ei(function(d){o.update(d),rf({feature:"set-tracking-consent",tracking_consent:d})}),setGlobalContext:ei(function(d){i.setContext(d),rf({feature:"set-global-context"})}),getGlobalContext:ei(function(){return i.getContext()}),setGlobalContextProperty:ei(function(d,f){i.setContextProperty(d,f),rf({feature:"set-global-context"})}),removeGlobalContextProperty:ei(function(d){return i.removeContextProperty(d)}),clearGlobalContext:ei(function(){return i.clearContext()}),getInternalContext:ei(function(d){return l.getInternalContext(d)}),getInitConfiguration:ei(function(){return Ffe(l.initConfiguration)}),addAction:function(d,f){var p=rF();zE(function(){l.addAction({name:Vl(d),context:Vl(f),startClocks:Pu(),type:"custom",handlingStack:p}),rf({feature:"add-action"})})},addError:function(d,f){var p=rF();zE(function(){l.addError({error:d,handlingStack:p,context:Vl(f),startClocks:Pu()}),rf({feature:"add-error"})})},addTiming:ei(function(d,f){l.addTiming(Vl(d),f)}),setUser:ei(function(d){XJt(d)&&a.setContext(qEe(d)),rf({feature:"set-user"})}),getUser:ei(function(){return a.getContext()}),setUserProperty:ei(function(d,f){var p,h=qEe((p={},p[d]=f,p))[d];a.setContextProperty(d,h),rf({feature:"set-user"})}),removeUserProperty:ei(function(d){return a.removeContextProperty(d)}),clearUser:ei(function(){return a.clearContext()}),startView:c,stopSession:ei(function(){l.stopSession(),rf({feature:"stop-session"})}),addFeatureFlagEvaluation:ei(function(d,f){l.addFeatureFlagEvaluation(Vl(d),Vl(f)),rf({feature:"add-feature-flag-evaluation"})}),getSessionReplayLink:ei(function(){return t.getSessionReplayLink()}),startSessionReplayRecording:ei(function(d){t.start(d),rf({feature:"start-session-replay-recording",force:d&&d.force})}),stopSessionReplayRecording:ei(function(){return t.stop()})});return u}function yen(e,t){return Ci({init:function(n){qGe("DD_RUM",n)},initConfiguration:e.initConfiguration},t)}function ben(){var e=hqe();return new oo(function(t){if(e){var n=new e(ei(function(){return t.notify()}));return n.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),function(){return n.disconnect()}}})}function hqe(){var e,t=window;if(t.Zone&&(e=i_(t,"MutationObserver"),t.MutationObserver&&e===t.MutationObserver)){var n=new t.MutationObserver(za),r=i_(n,"originalInstance");e=r&&r.constructor}return e||(e=t.MutationObserver),e}var mqe="initial_document",_en=[["document",function(e){return mqe===e}],["xhr",function(e){return e==="xmlhttprequest"}],["fetch",function(e){return e==="fetch"}],["beacon",function(e){return e==="beacon"}],["css",function(e,t){return/\.css$/i.test(t)}],["js",function(e,t){return/\.js$/i.test(t)}],["image",function(e,t){return hm(["image","img","icon"],e)||/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i.exec(t)!==null}],["font",function(e,t){return/\.(woff|eot|woff2|ttf)$/i.exec(t)!==null}],["media",function(e,t){return hm(["audio","video"],e)||/\.(mp3|mp4)$/i.exec(t)!==null}]];function Sen(e){var t=e.name;if(!UZt(t))return NT('Failed to construct URL for "'.concat(e.name,'"')),"other";for(var n=HZt(t),r=0,i=_en;r<i.length;r++){var a=i[r],o=a[0],s=a[1];if(s(e.initiatorType,n))return o}return"other"}function XEe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=1;n<e.length;n+=1)if(e[n-1]>e[n])return!1;return!0}function Een(e){return e.initiatorType==="xmlhttprequest"||e.initiatorType==="fetch"}function Cen(e){var t=e.duration,n=e.startTime,r=e.responseEnd;return t===0&&n<r?Mo(ru(n,r)):Mo(t)}function wen(e){if(gqe(e)){var t=e.startTime,n=e.fetchStart,r=e.redirectStart,i=e.redirectEnd,a=e.domainLookupStart,o=e.domainLookupEnd,s=e.connectStart,l=e.secureConnectionStart,c=e.connectEnd,u=e.requestStart,d=e.responseStart,f=e.responseEnd,p={download:Iw(t,d,f),first_byte:Iw(t,u,d)};return n<c&&(p.connect=Iw(t,s,c),s<=l&&l<=c&&(p.ssl=Iw(t,l,c))),n<o&&(p.dns=Iw(t,a,o)),t<i&&(p.redirect=Iw(t,r,i)),p}}function gqe(e){if(R3(s0.TOLERANT_RESOURCE_TIMINGS))return!0;var t=XEe(e.startTime,e.fetchStart,e.domainLookupStart,e.domainLookupEnd,e.connectStart,e.connectEnd,e.requestStart,e.responseStart,e.responseEnd),n=xen(e)?XEe(e.startTime,e.redirectStart,e.redirectEnd,e.fetchStart):!0;return t&&n}function xen(e){return e.redirectEnd>e.startTime}function Iw(e,t,n){if(e<=t&&t<=n)return{duration:Mo(ru(t,n)),start:Mo(ru(e,t))}}function Ten(e){if(e.startTime<e.responseStart){var t=e.encodedBodySize,n=e.decodedBodySize,r=e.transferSize;return{size:n,encoded_body_size:t,decoded_body_size:n,transfer_size:r}}return{size:void 0,encoded_body_size:void 0,decoded_body_size:void 0,transfer_size:void 0}}function Ufe(e,t){return t&&!e.isIntakeUrl(t)}var Ien=/data:(.+)?(;base64)?,/g,ZEe=24e3;function vqe(e){return e.length<=ZEe?!1:e.substring(0,5)==="data:"?(e=e.substring(0,ZEe),!0):!1}function yqe(e){return"".concat(e.match(Ien)[0],"[...]")}var fa;(function(e){e.EVENT="event",e.FIRST_INPUT="first-input",e.LARGEST_CONTENTFUL_PAINT="largest-contentful-paint",e.LAYOUT_SHIFT="layout-shift",e.LONG_TASK="longtask",e.NAVIGATION="navigation",e.PAINT="paint",e.RESOURCE="resource"})(fa||(fa={}));function Hfe(e,t){return new oo(function(n){if(window.PerformanceObserver){var r=function(l){var c=Nen(e,l);c.length>0&&n.notify(c)},i,a=!0,o=new PerformanceObserver(ei(function(l){a?i=Ec(function(){return r(l.getEntries())}):r(l.getEntries())}));try{o.observe(t)}catch{var s=[fa.RESOURCE,fa.NAVIGATION,fa.LONG_TASK,fa.PAINT];if(hm(s,t.type)){t.buffered&&(i=Ec(function(){return r(performance.getEntriesByType(t.type))}));try{o.observe({entryTypes:[t.type]})}catch{return}}}return a=!1,Aen(e),function(){o.disconnect(),Hh(i)}}})}var J4;function Aen(e){return!J4&&Ren()&&"addEventListener"in performance&&(J4=To(e,performance,"resourcetimingbufferfull",function(){performance.clearResourceTimings()})),function(){J4?.stop()}}function Ren(){return window.performance!==void 0&&"getEntries"in performance}function jO(e){return window.PerformanceObserver&&PerformanceObserver.supportedEntryTypes!==void 0&&PerformanceObserver.supportedEntryTypes.includes(e)}function Nen(e,t){return t.filter(function(n){return!Oen(e,n)})}function Oen(e,t){return t.entryType===fa.RESOURCE&&!Ufe(e,t.name)}function QEe(){return window.performance!==void 0&&"getEntries"in performance}function Len(e,t){var n=[];if(QEe()){var r=performance.getEntries();Ec(function(){return zq(e,r)})}if(window.PerformanceObserver){var i=ei(function(u){return zq(e,u.getEntries())}),a=[fa.LONG_TASK,fa.PAINT],o=[fa.LARGEST_CONTENTFUL_PAINT,fa.FIRST_INPUT,fa.LAYOUT_SHIFT,fa.EVENT];try{o.forEach(function(u){var d=new window.PerformanceObserver(i);d.observe({type:u,buffered:!0,durationThreshold:40}),n.push(function(){return d.disconnect()})})}catch{a.push.apply(a,o)}var s=new PerformanceObserver(i);try{s.observe({entryTypes:a}),n.push(function(){return s.disconnect()})}catch{}if(QEe()&&"addEventListener"in performance){var l=To(t,performance,"resourcetimingbufferfull",function(){performance.clearResourceTimings()}).stop;n.push(l)}}if(!jO(fa.FIRST_INPUT)){var c=Pen(t,function(u){zq(e,[u])}).stop;n.push(c)}return{stop:function(){n.forEach(function(u){return u()})}}}function Pen(e,t){var n=rv(),r=!1,i=Rd(e,window,["click","mousedown","keydown","touchstart","pointerdown"],function(s){if(s.cancelable){var l={entryType:fa.FIRST_INPUT,processingStart:pm(),processingEnd:pm(),startTime:s.timeStamp,duration:0,name:""};s.type==="pointerdown"?a(e,l):o(l)}},{passive:!0,capture:!0}).stop;return{stop:i};function a(s,l){Rd(s,window,["pointerup","pointercancel"],function(c){c.type==="pointerup"&&o(l)},{once:!0})}function o(s){if(!r){r=!0,i();var l=s.processingStart-s.startTime;l>=0&&l<rv()-n&&t(s)}}}function zq(e,t){var n=t.filter(function(r){return UN(fa,r.entryType)});n.length&&e.notify(0,n)}function ken(){var e=YJt(),t=KJt();if(e&&t)return{test_id:e,result_id:t,injected:cqe()}}function Men(e,t,n){var r=Ffe(e),i=n(r);return Nfe(t).forEach(function(a){var o=a[0],s=a[1],l=Den(r,o),c=N_(l);c===s?JEe(e,o,Vl(l)):s==="object"&&(c==="undefined"||c==="null")&&JEe(e,o,{})}),i}function Den(e,t){for(var n=e,r=0,i=t.split(".");r<i.length;r++){var a=i[r];if(!$en(n,a))return;n=n[a]}return n}function JEe(e,t,n){for(var r=e,i=t.split("."),a=0;a<i.length;a+=1){var o=i[a];if(!bqe(r))return;a!==i.length-1?r=r[o]:r[o]=n}}function bqe(e){return N_(e)==="object"}function $en(e,t){return bqe(e)&&Object.prototype.hasOwnProperty.call(e,t)}var Aw={"view.name":"string","view.url":"string","view.referrer":"string"},eI={context:"object"},Uq={service:"string",version:"string"},_qe;function Fen(e,t,n,r,i,a,o,s,l,c){var u,d;_qe=(u={},u.view=Aw,u.error=Ci({"error.message":"string","error.stack":"string","error.resource.url":"string","error.fingerprint":"string"},eI,Aw,Uq),u.resource=Ci({"resource.url":"string"},R3(s0.WRITABLE_RESOURCE_GRAPHQL)?{"resource.graphql":"object"}:{},eI,Aw,Uq),u.action=Ci({"action.target.name":"string"},eI,Aw,Uq),u.long_task=Ci({},eI,Aw),u.vital=Ci({},eI,Aw),u);var f=(d={},d.error=$q("error",e.eventRateLimiterThreshold,c),d.action=$q("action",e.eventRateLimiterThreshold,c),d.vital=$q("vital",e.eventRateLimiterThreshold,c),d),p=ken();t.subscribe(12,function(h){var m=h.startTime,g=h.rawRumEvent,v=h.domainContext,y=h.savedCommonContext,_=h.customerContext,S=r.findView(m),C=i.findUrl(m),w=n.findTrackedSession(m);if(w&&S&&C){var x=y||l(),T=a.findActionId(m),A={_dd:{format_version:2,drift:JXt(),configuration:{session_sample_rate:eF(e.sessionSampleRate,3),session_replay_sample_rate:eF(e.sessionReplaySampleRate,3)},browser_sdk_version:UE()?"5.23.3":void 0},application:{id:e.applicationId},date:Ql(),service:S.service||e.service,version:S.version||e.version,source:"browser",session:{id:w.id,type:p?"synthetics":s.get()?"ci_test":"user"},view:{id:S.id,name:S.name,url:C.url,referrer:C.referrer},action:jen(g)&&T?{id:T}:void 0,synthetics:p,ci_test:s.get(),display:o.get(),connectivity:YGe()},I=iv(A,g);I.context=iv(x.context,_),"has_replay"in I.session||(I.session.has_replay=x.hasReplay),I.type==="view"&&(I.session.sampled_for_replay=w.sessionReplay===1),jE(x.user)||(I.usr=x.user),Ben(I,e.beforeSend,v,f)&&(jE(I.context)&&delete I.context,t.notify(13,I))}})}function Ben(e,t,n,r){var i;if(t){var a=Men(e,_qe[e.type],function(s){return t(s,n)});if(a===!1&&e.type!=="view")return!1;a===!1&&Ua.warn("Can't dismiss view events using beforeSend!")}var o=(i=r[e.type])===null||i===void 0?void 0:i.isLimitReached();return!o}function jen(e){return["error","resource","long_task"].indexOf(e.type)!==-1}function zen(e,t,n,r,i){return{get:function(a){var o=n.findView(a),s=i.findUrl(a),l=t.findTrackedSession(a);if(l&&o&&s){var c=r.findActionId(a);return{application_id:e,session_id:l.id,user_action:c?{id:c}:void 0,view:{id:o.id,name:o.name,referrer:s.referrer,url:s.url}}}}}}var Uen=CJt,Hen=AC;function Ven(e){var t=OT({expireDelay:Hen});e.subscribe(2,function(r){t.add(n(r),r.startClocks.relative)}),e.subscribe(6,function(r){var i=r.endClocks;t.closeActive(i.relative)}),e.subscribe(4,function(r){var i=t.find(r.startClocks.relative);i&&r.name&&(i.name=r.name)}),e.subscribe(10,function(){t.reset()});function n(r){return{service:r.service,version:r.version,id:r.id,name:r.name,startClocks:r.startClocks}}return{findView:function(r){return t.find(r)},stop:function(){t.stop()}}}var eCe=1;function Gen(e,t,n){var r=een(t,n);qen(e,t,r),Wen(e,t,r)}function qen(e,t,n){var r=wJt(t).subscribe(function(i){var a=i;if(Ufe(t,a.url))switch(a.state){case"start":n.traceXhr(a,a.xhr),a.requestIndex=Sqe(),e.notify(7,{requestIndex:a.requestIndex,url:a.url});break;case"complete":n.clearTracingIfNeeded(a),e.notify(8,{duration:a.duration,method:a.method,requestIndex:a.requestIndex,spanId:a.spanId,startClocks:a.startClocks,status:a.status,traceId:a.traceId,traceSampled:a.traceSampled,type:"xhr",url:a.url,xhr:a.xhr,isAborted:a.isAborted,handlingStack:a.handlingStack});break}});return{stop:function(){return r.unsubscribe()}}}function Wen(e,t,n){var r=lqe().subscribe(function(i){var a=i;if(Ufe(t,a.url))switch(a.state){case"start":n.traceFetch(a),a.requestIndex=Sqe(),e.notify(7,{requestIndex:a.requestIndex,url:a.url});break;case"resolve":Yen(a,function(o){n.clearTracingIfNeeded(a),e.notify(8,{duration:o,method:a.method,requestIndex:a.requestIndex,responseType:a.responseType,spanId:a.spanId,startClocks:a.startClocks,status:a.status,traceId:a.traceId,traceSampled:a.traceSampled,type:"fetch",url:a.url,response:a.response,init:a.init,input:a.input,isAborted:a.isAborted,handlingStack:a.handlingStack})});break}});return{stop:function(){return r.unsubscribe()}}}function Sqe(){var e=eCe;return eCe+=1,e}function Yen(e,t){var n=e.response&&oJt(e.response);!n||!n.body?t(ru(e.startClocks.timeStamp,Ql())):VJt(n.body,function(){t(ru(e.startClocks.timeStamp,Ql()))},{bytesLimit:Number.POSITIVE_INFINITY,collectStreamBody:!1})}function Eqe(e){return CT(e)&&e<0?void 0:e}function Cqe(e){var t=e.lifeCycle,n=e.isChildEvent,r=e.onChange,i=r===void 0?za:r,a={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},o=t.subscribe(13,function(s){var l;if(!(s.type==="view"||s.type==="vital"||!n(s)))switch(s.type){case"error":a.errorCount+=1,i();break;case"action":a.actionCount+=1,s.action.frustration&&(a.frustrationCount+=s.action.frustration.type.length),i();break;case"long_task":a.longTaskCount+=1,i();break;case"resource":!((l=s._dd)===null||l===void 0)&&l.discarded||(a.resourceCount+=1,i());break}});return{stop:function(){o.unsubscribe()},eventCounts:a}}var wqe=100,Ken=100;function Vfe(e,t,n,r,i){var a=Zen(e,t,n);return Xen(a,r,i)}function Xen(e,t,n){var r,i=!1,a=Ec(ei(function(){return c({hadActivity:!1})}),wqe),o=n!==void 0?Ec(ei(function(){return c({hadActivity:!0,end:Ql()})}),n):void 0,s=e.subscribe(function(u){var d=u.isBusy;Hh(a),Hh(r);var f=Ql();d||(r=Ec(ei(function(){return c({hadActivity:!0,end:f})}),Ken))}),l=function(){i=!0,Hh(a),Hh(r),Hh(o),s.unsubscribe()};function c(u){i||(l(),t(u))}return{stop:l}}function Zen(e,t,n){return new oo(function(r){var i=[],a,o=0;i.push(t.subscribe(l),Hfe(n,{type:fa.RESOURCE}).subscribe(function(c){c.some(function(u){return!Hq(n,u.name)})&&l()}),e.subscribe(7,function(c){Hq(n,c.url)||(a===void 0&&(a=c.requestIndex),o+=1,l())}),e.subscribe(8,function(c){Hq(n,c.url)||a===void 0||c.requestIndex<a||(o-=1,l())}));var s=Qen(l).stop;return function(){s(),i.forEach(function(c){return c.unsubscribe()})};function l(){r.notify({isBusy:o>0})}})}function Hq(e,t){return uqe(e.excludedActivityUrls,t)}function Qen(e){return vd(window,"open",e)}function a_(e){return window.CSS&&window.CSS.escape?window.CSS.escape(e):e.replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,function(t,n){return n?t==="\0"?"�":"".concat(t.slice(0,-1),"\\").concat(t.charCodeAt(t.length-1).toString(16)," "):"\\".concat(t)})}function Qx(e,t){return e.matches?e.matches(t):e.msMatchesSelector?e.msMatchesSelector(t):!1}function zO(e){if(e.parentElement)return e.parentElement;for(;e.parentNode;){if(e.parentNode.nodeType===Node.ELEMENT_NODE)return e.parentNode;e=e.parentNode}return null}function Jen(e){if(e.classList)return e.classList;var t=(e.getAttribute("class")||"").trim();return t?t.split(/\s+/):[]}var tCe=1,etn=function(){function e(t){var n=this;this.map=new WeakMap,t&&t.forEach(function(r){return n.map.set(r,tCe)})}return e.prototype.add=function(t){return this.map.set(t,tCe),this},e.prototype.delete=function(t){return this.map.delete(t)},e.prototype.has=function(t){return this.map.has(t)},e}();function xqe(e){return e.nodeType===Node.TEXT_NODE}function ttn(e){return e.nodeType===Node.COMMENT_NODE}function PT(e){return e.nodeType===Node.ELEMENT_NODE}function Gz(e){return PT(e)&&!!e.shadowRoot}function Gfe(e){var t=e;return!!t.host&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&PT(t.host)}function ntn(e){return e.childNodes.length>0||Gz(e)}function Tqe(e,t){for(var n=e.firstChild;n;)t(n),n=n.nextSibling;Gz(e)&&t(e.shadowRoot)}function qz(e){return Gfe(e)?e.host:e.parentNode}var Zr={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:hR.ALLOW,MASK:hR.MASK,MASK_USER_INPUT:hR.MASK_USER_INPUT},qfe="data-dd-privacy",rtn="hidden",itn="dd-privacy-",mb="***",nCe="data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",atn={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0},otn="x";function gv(e,t,n){if(n&&n.has(e))return n.get(e);var r=qz(e),i=r?gv(r,t,n):t,a=Aqe(e),o=Iqe(a,i);return n&&n.set(e,o),o}function Iqe(e,t){switch(t){case Zr.HIDDEN:case Zr.IGNORE:return t}switch(e){case Zr.ALLOW:case Zr.MASK:case Zr.MASK_USER_INPUT:case Zr.HIDDEN:case Zr.IGNORE:return e;default:return t}}function Aqe(e){if(PT(e)){if(e.tagName==="BASE")return Zr.ALLOW;if(e.tagName==="INPUT"){var t=e;if(t.type==="password"||t.type==="email"||t.type==="tel"||t.type==="hidden")return Zr.MASK;var n=t.getAttribute("autocomplete");if(n&&n.indexOf("cc-")===0)return Zr.MASK}if(Qx(e,Jx(Zr.HIDDEN)))return Zr.HIDDEN;if(Qx(e,Jx(Zr.MASK)))return Zr.MASK;if(Qx(e,Jx(Zr.MASK_USER_INPUT)))return Zr.MASK_USER_INPUT;if(Qx(e,Jx(Zr.ALLOW)))return Zr.ALLOW;if(ltn(e))return Zr.IGNORE}}function Wz(e,t){switch(t){case Zr.MASK:case Zr.HIDDEN:case Zr.IGNORE:return!0;case Zr.MASK_USER_INPUT:return xqe(e)?rCe(e.parentNode):rCe(e);default:return!1}}function rCe(e){if(!e||e.nodeType!==e.ELEMENT_NODE)return!1;var t=e;if(t.tagName==="INPUT")switch(t.type){case"button":case"color":case"reset":case"submit":return!1}return!!atn[t.tagName]}var stn=function(e){return e.replace(/\S/g,otn)};function Rqe(e,t,n){var r,i=(r=e.parentElement)===null||r===void 0?void 0:r.tagName,a=e.textContent||"";if(!(t&&!a.trim())){var o=n,s=i==="SCRIPT";if(s)a=mb;else if(o===Zr.HIDDEN)a=mb;else if(Wz(e,o))if(i==="DATALIST"||i==="SELECT"||i==="OPTGROUP"){if(!a.trim())return}else i==="OPTION"?a=mb:a=stn(a);return a}}function ltn(e){if(e.nodeName==="SCRIPT")return!0;if(e.nodeName==="LINK"){var t=i("rel");return/preload|prefetch/i.test(t)&&i("as")==="script"||t==="shortcut icon"||t==="icon"}if(e.nodeName==="META"){var n=i("name"),t=i("rel"),r=i("property");return/^msapplication-tile(image|color)$/.test(n)||n==="application-name"||t==="icon"||t==="apple-touch-icon"||t==="shortcut icon"||n==="keywords"||n==="description"||/^(og|twitter|fb):/.test(r)||/^(og|twitter):/.test(n)||n==="pinterest"||n==="robots"||n==="googlebot"||n==="bingbot"||e.hasAttribute("http-equiv")||n==="author"||n==="generator"||n==="framework"||n==="publisher"||n==="progid"||/^article:/.test(r)||/^product:/.test(r)||n==="google-site-verification"||n==="yandex-verification"||n==="csrf-token"||n==="p:domain_verify"||n==="verify-v1"||n==="verification"||n==="shopify-checkout-api-token"}function i(a){return(e.getAttribute(a)||"").toLowerCase()}return!1}function Jx(e){return"[".concat(qfe,'="').concat(e,'"], .').concat(itn).concat(e)}var Wfe="data-dd-action-name",ctn="Masked Element";function utn(e,t,n){var r=t.enablePrivacyForActionName,i=t.actionNameAttribute,a=iCe(e,Wfe)||i&&iCe(e,i);return n===Zr.MASK?a||ctn:a||aCe(e,i,dtn,r)||aCe(e,i,ftn,r)||""}function iCe(e,t){var n;if(vtn())n=e.closest("[".concat(t,"]"));else for(var r=e;r;){if(r.hasAttribute(t)){n=r;break}r=zO(r)}if(n){var i=n.getAttribute(t);return Oqe(Nqe(i.trim()))}}var dtn=[function(e,t,n){if(gtn()){if("labels"in e&&e.labels&&e.labels.length>0)return bx(e.labels[0],t)}else if(e.id){var r=e.ownerDocument&&r_(e.ownerDocument.querySelectorAll("label"),function(i){return i.htmlFor===e.id});return r&&bx(r,t,n)}},function(e){if(e.nodeName==="INPUT"){var t=e,n=t.getAttribute("type");if(n==="button"||n==="submit"||n==="reset")return t.value}},function(e,t,n){if(e.nodeName==="BUTTON"||e.nodeName==="LABEL"||e.getAttribute("role")==="button")return bx(e,t,n)},function(e){return e.getAttribute("aria-label")},function(e,t,n){var r=e.getAttribute("aria-labelledby");if(r)return r.split(/\s+/).map(function(i){return htn(e,i)}).filter(function(i){return!!i}).map(function(i){return bx(i,t,n)}).join(" ")},function(e){return e.getAttribute("alt")},function(e){return e.getAttribute("name")},function(e){return e.getAttribute("title")},function(e){return e.getAttribute("placeholder")},function(e,t){if("options"in e&&e.options.length>0)return bx(e.options[0],t)}],ftn=[function(e,t,n){return bx(e,t,n)}],ptn=10;function aCe(e,t,n,r){for(var i=e,a=0;a<=ptn&&i&&i.nodeName!=="BODY"&&i.nodeName!=="HTML"&&i.nodeName!=="HEAD";){for(var o=0,s=n;o<s.length;o++){var l=s[o],c=l(i,t,r);if(typeof c=="string"){var u=c.trim();if(u)return Oqe(Nqe(u))}}if(i.nodeName==="FORM")break;i=zO(i),a+=1}}function Nqe(e){return e.replace(/\s+/g," ")}function Oqe(e){return e.length>100?"".concat(RGe(e,100)," [...]"):e}function htn(e,t){return e.ownerDocument?e.ownerDocument.getElementById(t):null}function bx(e,t,n){if(!e.isContentEditable){if("innerText"in e){var r=e.innerText,i=function(a){for(var o=e.querySelectorAll(a),s=0;s<o.length;s+=1){var l=o[s];if("innerText"in l){var c=l.innerText;c&&c.trim().length>0&&(r=r.replace(c,""))}}};return mtn()||i("script, style"),i("[".concat(Wfe,"]")),t&&i("[".concat(t,"]")),n&&i("".concat(Jx(Zr.HIDDEN),", ").concat(Jx(Zr.MASK))),r}return e.textContent}}function mtn(){return!dZt()}var Vq;function gtn(){return Vq===void 0&&(Vq="labels"in HTMLInputElement.prototype),Vq}var Gq;function vtn(){return Gq===void 0&&(Gq="closest"in HTMLElement.prototype),Gq}var Lqe=[Wfe,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],ytn=[kqe,_tn],btn=[kqe,Stn,Etn];function UO(e,t){if(Itn(e)){for(var n,r=e;r&&r.nodeName!=="HTML";){var i=oCe(r,ytn,wtn,t,n);if(i)return i;var a=oCe(r,btn,xtn,t,n);n=a||VN(Ctn(r),n),r=zO(r)}return n}}function Pqe(e){return/[0-9]/.test(e)}function _tn(e){if(e.id&&!Pqe(e.id))return"#".concat(a_(e.id))}function Stn(e){if(e.tagName!=="BODY")for(var t=Jen(e),n=0;n<t.length;n+=1){var r=t[n];if(!Pqe(r))return"".concat(a_(e.tagName),".").concat(a_(r))}}function Etn(e){return a_(e.tagName)}function kqe(e,t){if(t){var n=o(t);if(n)return n}for(var r=0,i=Lqe;r<i.length;r++){var a=i[r],n=o(a);if(n)return n}function o(s){if(e.hasAttribute(s))return"".concat(a_(e.tagName),"[").concat(s,'="').concat(a_(e.getAttribute(s)),'"]')}}function Ctn(e){for(var t=zO(e).firstElementChild,n=1;t&&t!==e;)t.tagName===e.tagName&&(n+=1),t=t.nextElementSibling;return"".concat(a_(e.tagName),":nth-of-type(").concat(n,")")}function oCe(e,t,n,r,i){for(var a=0,o=t;a<o.length;a++){var s=o[a],l=s(e,r);if(l&&n(e,l,i))return VN(l,i)}}function wtn(e,t,n){return e.ownerDocument.querySelectorAll(VN(t,n)).length===1}function xtn(e,t,n){var r;if(n===void 0)r=function(s){return Qx(s,t)};else{var i=Ttn()?VN("".concat(t,":scope"),n):VN(t,n);r=function(s){return s.querySelector(i)!==null}}for(var a=zO(e),o=a.firstElementChild;o;){if(o!==e&&r(o))return!1;o=o.nextElementSibling}return!0}function VN(e,t){return t?"".concat(e,">").concat(t):e}var xP;function Ttn(){if(xP===void 0)try{document.querySelector(":scope"),xP=!0}catch{xP=!1}return xP}function Itn(e){return"isConnected"in e?e.isConnected:e.ownerDocument.documentElement.contains(e)}var Mqe=Bu,Atn=100;function Rtn(e,t){var n=[],r=0,i;a(e);function a(l){l.stopObservable.subscribe(o),n.push(l),Hh(i),i=Ec(s,Mqe)}function o(){r===1&&n.every(function(l){return l.isStopped()})&&(r=2,t(n))}function s(){Hh(i),r===0&&(r=1,o())}return{tryAppend:function(l){return r!==0?!1:n.length>0&&!Ntn(n[n.length-1].event,l.event)?(s(),!1):(a(l),!0)},stop:function(){s()}}}function Ntn(e,t){return e.target===t.target&&Otn(e,t)<=Atn&&e.timeStamp-t.timeStamp<=Mqe}function Otn(e,t){return Math.sqrt(Math.pow(e.clientX-t.clientX,2)+Math.pow(e.clientY-t.clientY,2))}function Ltn(e,t){var n=t.onPointerDown,r=t.onPointerUp,i,a={selection:!1,input:!1,scroll:!1},o,s=[To(e,window,"pointerdown",function(l){lCe(l)&&(i=sCe(),a={selection:!1,input:!1,scroll:!1},o=n(l))},{capture:!0}),To(e,window,"selectionchange",function(){(!i||!sCe())&&(a.selection=!0)},{capture:!0}),To(e,window,"scroll",function(){a.scroll=!0},{capture:!0,passive:!0}),To(e,window,"pointerup",function(l){if(lCe(l)&&o){var c=a;r(o,l,function(){return c}),o=void 0}},{capture:!0}),To(e,window,"input",function(){a.input=!0},{capture:!0})];return{stop:function(){s.forEach(function(l){return l.stop()})}}}function sCe(){var e=window.getSelection();return!e||e.isCollapsed}function lCe(e){return e.target instanceof Element&&e.isPrimary!==!1}var cCe=3;function Ptn(e,t){if(ktn(e))return t.addFrustration("rage_click"),e.some(uCe)&&t.addFrustration("dead_click"),t.hasError&&t.addFrustration("error_click"),{isRage:!0};var n=e.some(function(r){return r.getUserActivity().selection});return e.forEach(function(r){r.hasError&&r.addFrustration("error_click"),uCe(r)&&!n&&r.addFrustration("dead_click")}),{isRage:!1}}function ktn(e){if(e.some(function(n){return n.getUserActivity().selection||n.getUserActivity().scroll}))return!1;for(var t=0;t<e.length-(cCe-1);t+=1)if(e[t+cCe-1].event.timeStamp-e[t].event.timeStamp<=Bu)return!0;return!1}var Mtn='input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="range"]),textarea,select,[contenteditable],[contenteditable] *,canvas,a[href],a[href] *';function uCe(e){return e.hasPageActivity||e.getUserActivity().input||e.getUserActivity().scroll?!1:!Qx(e.event.target,Mtn)}var Dtn=10*Bu,$tn=5*Bd;function Ftn(e,t,n){var r=OT({expireDelay:$tn}),i=new oo,a;e.subscribe(10,function(){r.reset()}),e.subscribe(5,c);var o=Ltn(n,{onPointerDown:function(u){return Btn(n,e,t,u)},onPointerUp:function(u,d,f){var p=u.clickActionBase,h=u.hadActivityOnPointerDown;jtn(n,e,t,r,i,l,p,d,f,h)}}).stop,s={findActionId:function(u){return r.findAll(u)}};return{stop:function(){c(),i.notify(),o()},actionContexts:s};function l(u){if(!a||!a.tryAppend(u)){var d=u.clone();a=Rtn(u,function(f){Utn(f,d)})}}function c(){a&&a.stop()}}function Btn(e,t,n,r){var i=e.enablePrivacyForActionName?gv(r.target,e.defaultPrivacyLevel):Zr.ALLOW;if(i!==Zr.HIDDEN){var a=ztn(r,i,e),o=!1;return Vfe(t,n,e,function(s){o=s.hadActivity},wqe),{clickActionBase:a,hadActivityOnPointerDown:function(){return o}}}}function jtn(e,t,n,r,i,a,o,s,l,c){var u=Dqe(t,r,l,o,s);a(u);var d=Vfe(t,n,e,function(h){h.hadActivity&&h.end<u.startClocks.timeStamp?u.discard():h.hadActivity?u.stop(h.end):c()?u.stop(u.startClocks.timeStamp):u.stop()},Dtn).stop,f=t.subscribe(5,function(h){var m=h.endClocks;u.stop(m.timeStamp)}),p=i.subscribe(function(){u.stop()});u.stopObservable.subscribe(function(){f.unsubscribe(),d(),p.unsubscribe()})}function ztn(e,t,n){var r=e.target.getBoundingClientRect();return{type:"click",target:{width:Math.round(r.width),height:Math.round(r.height),selector:UO(e.target,n.actionNameAttribute)},position:{x:Math.round(e.clientX-r.left),y:Math.round(e.clientY-r.top)},name:utn(e.target,n,t)}}function Dqe(e,t,n,r,i){var a=ju(),o=Pu(),s=t.add(a,o.relative),l=Cqe({lifeCycle:e,isChildEvent:function(h){return h.action!==void 0&&(Array.isArray(h.action.id)?hm(h.action.id,a):h.action.id===a)}}),c=0,u,d=[],f=new oo;function p(h){c===0&&(u=h,c=1,u?s.close(Ife(u)):s.remove(),l.stop(),f.notify())}return{event:i,stop:p,stopObservable:f,get hasError(){return l.eventCounts.errorCount>0},get hasPageActivity(){return u!==void 0},getUserActivity:n,addFrustration:function(h){d.push(h)},startClocks:o,isStopped:function(){return c===1||c===2},clone:function(){return Dqe(e,t,n,r,i)},validate:function(h){if(p(),c===1){var m=l.eventCounts,g=m.resourceCount,v=m.errorCount,y=m.longTaskCount,_=Ci({type:"click",duration:u&&ru(o.timeStamp,u),startClocks:o,id:a,frustrationTypes:d,counts:{resourceCount:g,errorCount:v,longTaskCount:y},events:h??[i],event:i},r);e.notify(1,_),c=2}},discard:function(){p(),c=2}}}function Utn(e,t){var n=Ptn(e,t).isRage;n?(e.forEach(function(r){return r.discard()}),t.stop(Ql()),t.validate(e.map(function(r){return r.event}))):(t.discard(),e.forEach(function(r){return r.validate()}))}function Htn(e,t,n,r){e.subscribe(1,function(a){return e.notify(12,dCe(a,r))});var i={findActionId:za};return n.trackUserInteractions&&(i=Ftn(e,t,n).actionContexts),{addAction:function(a,o){e.notify(12,Ci({savedCommonContext:o},dCe(a,r)))},actionContexts:i}}function dCe(e,t){var n=TP(e)?{action:{id:e.id,loading_time:Eqe(Mo(e.duration)),frustration:{type:e.frustrationTypes},error:{count:e.counts.errorCount},long_task:{count:e.counts.longTaskCount},resource:{count:e.counts.resourceCount}},_dd:{action:{target:e.target,position:e.position}}}:void 0,r=TP(e)?void 0:e.context,i=iv({action:{id:ju(),target:{name:e.name},type:e.type},date:e.startClocks.timeStamp,type:"action",view:{in_foreground:t.wasInPageStateAt("active",e.startClocks.relative)}},n),a=TP(e)?{events:e.events}:{};return!TP(e)&&e.handlingStack&&(a.handlingStack=e.handlingStack),{customerContext:r,rawRumEvent:i,startTime:e.startClocks.relative,domainContext:a}}function TP(e){return e.type!=="custom"}function Vtn(e){var t=LJt([Bz.error]).subscribe(function(n){return e.notify({startClocks:Pu(),message:n.message,stack:n.stack,fingerprint:n.fingerprint,source:AT.CONSOLE,handling:"handled",handlingStack:n.handlingStack})});return{stop:function(){t.unsubscribe()}}}function Gtn(e,t){var n=DQt(e,[O3.cspViolation,O3.intervention]).subscribe(function(r){var i={startClocks:Pu(),message:r.message,stack:r.stack,type:r.subtype,source:AT.REPORT,handling:"unhandled",originalError:r.originalReport};return r.originalReport.type==="securitypolicyviolation"&&(i.csp={disposition:r.originalReport.disposition}),t.notify(i)});return{stop:function(){n.unsubscribe()}}}function qtn(e,t,n,r){var i=new oo;return Vtn(i),OQt(i),Gtn(t,i),i.subscribe(function(a){return e.notify(14,{error:a})}),Wtn(e,n,r)}function Wtn(e,t,n){return e.subscribe(14,function(r){var i=r.error,a=r.customerContext,o=r.savedCommonContext;e.notify(12,Ci({customerContext:a,savedCommonContext:o},Ytn(i,t,n)))}),{addError:function(r,i){var a=r.error,o=r.handlingStack,s=r.startClocks,l=r.context,c=a instanceof Error?R_(a):void 0,u=HGe({stackTrace:c,originalError:a,handlingStack:o,startClocks:s,nonErrorPrefix:"Provided",source:AT.CUSTOM,handling:"handled"});e.notify(14,{customerContext:l,savedCommonContext:i,error:u})}}}function Ytn(e,t,n){var r={date:e.startClocks.timeStamp,error:{id:ju(),message:e.message,source:e.source,stack:e.stack,handling_stack:e.handlingStack,type:e.type,handling:e.handling,causes:e.causes,source_type:"browser",fingerprint:e.fingerprint,csp:e.csp},type:"error",view:{in_foreground:t.wasInPageStateAt("active",e.startClocks.relative)}},i=n.findFeatureFlagEvaluations(e.startClocks.relative);i&&!jE(i)&&(r.feature_flags=i);var a={error:e.originalError,handlingStack:e.handlingStack};return{rawRumEvent:r,startTime:e.startClocks.relative,domainContext:a}}function Ktn(e,t){e.subscribe(0,function(n){for(var r=0,i=n;r<i.length;r++){var a=i[r];if(a.entryType!==fa.LONG_TASK||!t.trackLongTasks)break;var o=Tfe(a.startTime),s={date:o.timeStamp,long_task:{id:ju(),duration:Mo(a.duration)},type:"long_task",_dd:{discarded:!1}};e.notify(12,{rawRumEvent:s,startTime:o.relative,domainContext:{performanceEntry:a}})}})}var fCe=new etn;function Xtn(e){if(!(!performance||!("getEntriesByName"in performance))){var t=performance.getEntriesByName(e.url,"resource");if(!(!t.length||!("toJSON"in t[0]))){var n=t.filter(function(r){return!fCe.has(r)}).filter(function(r){return gqe(r)}).filter(function(r){return Ztn(r,e.startClocks.relative,$qe({startTime:e.startClocks.relative,duration:e.duration}))});if(n.length===1)return fCe.add(n[0]),n[0].toJSON()}}}function $qe(e){return wT(e.startTime,e.duration)}function Ztn(e,t,n){var r=1;return e.startTime>=t-r&&$qe(e)<=wT(n,r)}var Qtn=2*Bd;function Jtn(e){var t=enn(e)||tnn(e);if(!(!t||t.traceTime<=rv()-Qtn))return t.traceId}function enn(e){var t=e.querySelector("meta[name=dd-trace-id]"),n=e.querySelector("meta[name=dd-trace-time]");return Fqe(t&&t.content,n&&n.content)}function tnn(e){var t=nnn(e);if(t)return Fqe(HN(t,"trace-id"),HN(t,"trace-time"))}function Fqe(e,t){var n=t&&Number(t);if(!(!e||!n))return{traceId:e,traceTime:n}}function nnn(e){for(var t=0;t<e.childNodes.length;t+=1){var n=pCe(e.childNodes[t]);if(n)return n}if(e.body)for(var t=e.body.childNodes.length-1;t>=0;t-=1){var r=e.body.childNodes[t],n=pCe(r);if(n)return n;if(!xqe(r))break}}function pCe(e){if(e&&ttn(e)){var t=/^\s*DATADOG;(.*?)\s*$/.exec(e.data);if(t)return t[1]}}function Bqe(){var e={},t=performance.timing;for(var n in t)if(CT(t[n])){var r=n,i=t[r];e[r]=i===0?0:Ife(i)}return e}function rnn(e,t){Bfe(e,"interactive",function(){var n,r={entryType:fa.RESOURCE,initiatorType:mqe,traceId:Jtn(document),toJSON:function(){return Ci({},n,{toJSON:void 0})}};if(jO(fa.NAVIGATION)&&performance.getEntriesByType(fa.NAVIGATION).length>0){var i=performance.getEntriesByType(fa.NAVIGATION)[0];n=Ci(i.toJSON(),r)}else{var a=Bqe();n=Ci(a,{decodedBodySize:0,encodedBodySize:0,transferSize:0,renderBlockingStatus:"non-blocking",duration:a.responseEnd,name:window.location.href,startTime:0},r)}t(n)})}function inn(e,t,n,r){r===void 0&&(r=rnn),e.subscribe(8,function(a){var o=ann(a,t,n);o&&e.notify(12,o)});var i=Hfe(t,{type:fa.RESOURCE,buffered:!0}).subscribe(function(a){for(var o=0,s=a;o<s.length;o++){var l=s[o];if(!Een(l)){var c=hCe(l,t);c&&e.notify(12,c)}}});return r(t,function(a){var o=hCe(a,t);o&&e.notify(12,o)}),{stop:function(){i.unsubscribe()}}}function ann(e,t,n){var r=Xtn(e),i=r?Tfe(r.startTime):e.startClocks,a=onn(e,t);if(!(!t.trackResources&&!a)){var o=e.type==="xhr"?"xhr":"fetch",s=r?jqe(r):void 0,l=lnn(n,i,e.duration),c=iv({date:i.timeStamp,resource:{id:ju(),type:o,duration:l,method:e.method,status_code:e.status,url:vqe(e.url)?yqe(e.url):e.url},type:"resource",_dd:{discarded:!t.trackResources}},a,s);return{startTime:i.relative,rawRumEvent:c,domainContext:{performanceEntry:r,xhr:e.xhr,response:e.response,requestInput:e.input,requestInit:e.init,error:e.error,isAborted:e.isAborted,handlingStack:e.handlingStack}}}}function hCe(e,t){var n=Tfe(e.startTime),r=snn(e,t);if(!(!t.trackResources&&!r)){var i=Sen(e),a=jqe(e),o=iv({date:n.timeStamp,resource:{id:ju(),type:i,url:e.name,status_code:cnn(e.responseStatus)},type:"resource",_dd:{discarded:!t.trackResources}},r,a);return{startTime:n.relative,rawRumEvent:o,domainContext:{performanceEntry:e}}}}function jqe(e){var t=e.renderBlockingStatus;return{resource:Ci({duration:Cen(e),render_blocking_status:t},Ten(e),wen(e))}}function onn(e,t){var n=e.traceSampled&&e.traceId&&e.spanId;if(n)return{_dd:{span_id:e.spanId.toDecimalString(),trace_id:e.traceId.toDecimalString(),rule_psr:zqe(t)}}}function snn(e,t){var n=e.traceId;if(n)return{_dd:{trace_id:e.traceId,span_id:Gie().toDecimalString(),rule_psr:zqe(t)}}}function zqe(e){return CT(e.traceSampleRate)?e.traceSampleRate/100:void 0}function lnn(e,t,n){return e.wasInPageStateDuringPeriod("frozen",t.relative,n)?void 0:Mo(n)}function cnn(e){return e===0?void 0:e}function unn(e,t,n){var r=Cqe({lifeCycle:e,isChildEvent:function(o){return o.view.id===t},onChange:n}),i=r.stop,a=r.eventCounts;return{stop:i,eventCounts:a}}var dnn=10*Bd;function fnn(e,t,n){var r=e.subscribe(0,function(i){var a=r_(i,function(o){return o.entryType===fa.PAINT&&o.name==="first-contentful-paint"&&o.startTime<t.timeStamp&&o.startTime<dnn});a&&n(a.startTime)}).unsubscribe;return{stop:r}}function pnn(e,t,n,r){var i=e.subscribe(0,function(a){var o=r_(a,function(c){return c.entryType===fa.FIRST_INPUT&&c.startTime<n.timeStamp});if(o){var s=ru(o.startTime,o.processingStart),l=void 0;o.target&&PT(o.target)&&(l=UO(o.target,t.actionNameAttribute)),r({delay:s>=0?s:0,time:o.startTime,targetSelector:l})}}).unsubscribe;return{stop:i}}function hnn(e,t){var n=function(i){gnn(i)||t(mnn(i))},r=za;return jO(fa.NAVIGATION)?r=Hfe(e,{type:fa.NAVIGATION,buffered:!0}).subscribe(function(i){return TGe(i,n)}).unsubscribe:vnn(e,n),{stop:r}}function mnn(e){return{domComplete:e.domComplete,domContentLoaded:e.domContentLoadedEventEnd,domInteractive:e.domInteractive,loadEvent:e.loadEventEnd,firstByte:e.responseStart>=0&&e.responseStart<=pm()?e.responseStart:void 0}}function gnn(e){return e.loadEventEnd<=0}function vnn(e,t){Bfe(e,"complete",function(){Ec(function(){return t(Bqe())})})}var ynn=10*Bd;function bnn(e,t,n,r,i){var a=1/0,o=Rd(t,r,["pointerdown","keydown"],function(c){a=c.timeStamp},{capture:!0,once:!0}).stop,s=0,l=e.subscribe(0,function(c){var u=iZt(c,function(f){return f.entryType===fa.LARGEST_CONTENTFUL_PAINT&&f.startTime<a&&f.startTime<n.timeStamp&&f.startTime<ynn&&f.size>s});if(u){var d=void 0;u.element&&(d=UO(u.element,t.actionNameAttribute)),i({value:u.startTime,targetSelector:d}),s=u.size}}).unsubscribe;return{stop:function(){o(),l()}}}function _nn(e,t){t===void 0&&(t=window);var n,r;return document.visibilityState==="hidden"?n=0:(n=1/0,r=Rd(e,t,["pagehide","visibilitychange"],function(i){(i.type==="pagehide"||document.visibilityState==="hidden")&&(n=i.timeStamp,r())},{capture:!0}).stop),{get timeStamp(){return n},stop:function(){r?.()}}}function Snn(e,t,n,r){var i={},a=hnn(t,function(d){n(d.loadEvent),i.navigationTimings=d,r()}).stop,o=_nn(t),s=fnn(e,o,function(d){i.firstContentfulPaint=d,r()}).stop,l=bnn(e,t,o,window,function(d){i.largestContentfulPaint=d,r()}).stop,c=pnn(e,t,o,function(d){i.firstInput=d,r()}).stop;function u(){a(),s(),l(),c(),o.stop()}return{stop:u,initialViewMetrics:i}}function Enn(e,t,n,r){if(!Inn())return{stop:za};var i=0,a,o;r({value:0});var s=Tnn(),l=t.subscribe(0,function(c){for(var u=0,d=c;u<d.length;u++){var f=d[u];if(f.entryType===fa.LAYOUT_SHIFT&&!f.hadRecentInput){var p=s.update(f),h=p.cumulatedValue,m=p.isMaxValue;if(m){var g=Cnn(f.sources);a=g?new WeakRef(g):void 0,o=ru(n,f.startTime)}if(h>i){i=h;var g=a?.deref();r({value:eF(i,4),targetSelector:g&&UO(g,e.actionNameAttribute),time:o})}}}}).unsubscribe;return{stop:l}}function Cnn(e){var t;if(e)return(t=r_(e,function(n){return!!n.node&&PT(n.node)}))===null||t===void 0?void 0:t.node}var wnn=5*Bu,xnn=Bu;function Tnn(){var e=0,t,n,r=0;return{update:function(i){var a=t===void 0||i.startTime-n>=xnn||i.startTime-t>=wnn,o;return a?(t=n=i.startTime,r=e=i.value,o=!0):(e+=i.value,n=i.startTime,o=i.value>r,o&&(r=i.value)),{cumulatedValue:e,isMaxValue:o}}}}function Inn(){return jO(fa.LAYOUT_SHIFT)}var u7,Uqe=0,qq=1/0,Wq=0;function Ann(){"interactionCount"in performance||u7||(u7=new window.PerformanceObserver(ei(function(e){e.getEntries().forEach(function(t){var n=t;n.interactionId&&(qq=Math.min(qq,n.interactionId),Wq=Math.max(Wq,n.interactionId),Uqe=(Wq-qq)/7+1)})})),u7.observe({type:"event",buffered:!0,durationThreshold:0}))}var mCe=function(){return u7?Uqe:window.performance.interactionCount||0},gCe=10,Rnn=1*Bd;function Nnn(e,t,n,r){if(!Pnn())return{getInteractionToNextPaint:function(){},setViewEnd:za,stop:za};var i=Lnn(n),a=i.getViewInteractionCount,o=i.stopViewInteractionCount,s=1/0,l=Onn(a),c=-1,u,d,f=r.subscribe(0,function(p){for(var h=0,m=p;h<m.length;h++){var g=m[h];(g.entryType===fa.EVENT||g.entryType===fa.FIRST_INPUT)&&g.interactionId&&g.startTime>=t&&g.startTime<=s&&l.process(g)}var v=l.estimateP98Interaction();v&&v.duration!==c&&(c=v.duration,d=ru(t,v.startTime),v.target&&PT(v.target)?u=UO(v.target,e.actionNameAttribute):u=void 0)}).unsubscribe;return{getInteractionToNextPaint:function(){if(c>=0)return{value:Math.min(c,Rnn),targetSelector:u,time:d};if(a())return{value:0}},setViewEnd:function(p){s=p,o()},stop:f}}function Onn(e){var t=[];function n(){t.sort(function(r,i){return i.duration-r.duration}).splice(gCe)}return{process:function(r){var i=t.findIndex(function(o){return r.interactionId===o.interactionId}),a=t[t.length-1];i!==-1?r.duration>t[i].duration&&(t[i]=r,n()):(t.length<gCe||r.duration>a.duration)&&(t.push(r),n())},estimateP98Interaction:function(){var r=Math.min(t.length-1,Math.floor(e()/50));return t[r]}}}function Lnn(e){Ann();var t=e==="initial_load"?0:mCe(),n={stopped:!1};function r(){return mCe()-t}return{getViewInteractionCount:function(){return n.stopped?n.interactionCount:r()},stopViewInteractionCount:function(){n={stopped:!0,interactionCount:r()}}}}function Pnn(){return jO(fa.EVENT)&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype}function knn(e,t,n,r,i,a){var o=r==="initial_load",s=!0,l=[];function c(){!s&&!o&&l.length>0&&a(Math.max.apply(Math,l))}var u=Vfe(e,t,n,function(d){s&&(s=!1,d.hadActivity&&l.push(ru(i.timeStamp,d.end)),c())}).stop;return{stop:u,setLoadEvent:function(d){o&&(o=!1,l.push(d),c())}}}function Hqe(){var e,t=window.visualViewport;return t?e=t.pageLeft-t.offsetLeft:window.scrollX!==void 0?e=window.scrollX:e=window.pageXOffset||0,Math.round(e)}function Yfe(){var e,t=window.visualViewport;return t?e=t.pageTop-t.offsetTop:window.scrollY!==void 0?e=window.scrollY:e=window.pageYOffset||0,Math.round(e)}var Yq;function Vqe(e){return Yq||(Yq=Mnn(e)),Yq}function Mnn(e){return new oo(function(t){var n=y0(function(){t.notify(Yz())},200).throttled;return To(e,window,"resize",n,{capture:!0,passive:!0}).stop})}function Yz(){var e=window.visualViewport;return e?{width:Number(e.width*e.scale),height:Number(e.height*e.scale)}:{width:Number(window.innerWidth||0),height:Number(window.innerHeight||0)}}var Dnn=Bu;function $nn(e,t,n,r){r===void 0&&(r=Bnn(e));var i=0,a=0,o=0,s=r.subscribe(function(l){var c=l.scrollDepth,u=l.scrollTop,d=l.scrollHeight,f=!1;if(c>i&&(i=c,f=!0),d>a){a=d;var p=pm();o=ru(t.relative,p),f=!0}f&&n({maxDepth:Math.min(i,a),maxDepthScrollTop:u,maxScrollHeight:a,maxScrollHeightTime:o})});return{stop:function(){return s.unsubscribe()}}}function Fnn(){var e=Yfe(),t=Yz().height,n=Math.round((document.scrollingElement||document.documentElement).scrollHeight),r=Math.round(t+e);return{scrollHeight:n,scrollDepth:r,scrollTop:e}}function Bnn(e,t){return t===void 0&&(t=Dnn),new oo(function(n){function r(){n.notify(Fnn())}if(window.ResizeObserver){var i=y0(r,t,{leading:!1,trailing:!0}),a=document.scrollingElement||document.documentElement,o=new ResizeObserver(ei(i.throttled));o.observe(a);var s=To(e,window,"scroll",i.throttled,{passive:!0});return function(){i.cancel(),o.unobserve(a),s.stop()}}})}function jnn(e,t,n,r,i,a){var o={},s=knn(e,t,n,i,a,function(g){o.loadingTime=g,r()}),l=s.stop,c=s.setLoadEvent,u=$nn(n,a,function(g){o.scroll=g}).stop,d=Enn(n,e,a.relative,function(g){o.cumulativeLayoutShift=g,r()}).stop,f=Nnn(n,a.relative,i,e),p=f.stop,h=f.getInteractionToNextPaint,m=f.setViewEnd;return{stop:function(){l(),d(),u()},stopINPTracking:p,setLoadEvent:c,setViewEnd:m,getCommonViewMetrics:function(){return o.interactionToNextPaint=h(),o}}}var znn=3e3,Unn=5*Bd,Hnn=5*Bd;function Vnn(e,t,n,r,i,a,o){var s=new Set,l=u("initial_load",wGe(),o);d();var c;a&&(c=f(i));function u(p,h,m){var g=Gnn(t,n,r,e,p,h,m);return s.add(g),g.stopObservable.subscribe(function(){s.delete(g)}),g}function d(){t.subscribe(10,function(){l=u("route_change",void 0,{name:l.name,service:l.service,version:l.version})}),t.subscribe(9,function(){l.end({sessionIsActive:!1})}),t.subscribe(11,function(p){p.reason===T5.UNLOADING&&l.end()})}function f(p){return p.subscribe(function(h){var m=h.oldLocation,g=h.newLocation;Wnn(m,g)&&(l.end(),l=u("route_change"))})}return{addTiming:function(p,h){h===void 0&&(h=Ql()),l.addTiming(p,h)},startView:function(p,h){l.end({endClocks:h}),l=u("route_change",h,p)},updateViewName:function(p){l.updateViewName(p)},stop:function(){c&&c.unsubscribe(),l.end(),s.forEach(function(p){return p.stop()})}}}function Gnn(e,t,n,r,i,a,o){a===void 0&&(a=Pu());var s=ju(),l=new oo,c={},u=0,d,f=zN(r),p=!0,h,m,g;o&&(h=o.name,m=o.service||void 0,g=o.version||void 0);var v={id:s,name:h,startClocks:a,service:m,version:g};e.notify(2,v),e.notify(3,v);var y=y0(U,znn,{leading:!1}),_=y.throttled,S=y.cancel,C=jnn(e,t,n,_,i,a),w=C.setLoadEvent,x=C.setViewEnd,T=C.stop,A=C.stopINPTracking,I=C.getCommonViewMetrics,R=i==="initial_load"?Snn(e,n,w,_):{stop:za,initialViewMetrics:{}},N=R.stop,P=R.initialViewMetrics,L=unn(e,s,_),$=L.stop,D=L.eventCounts,z=xT(U,Unn);U();function U(){S(),u+=1;var H=d===void 0?Ql():d.timeStamp;e.notify(4,{customTimings:c,documentVersion:u,id:s,name:h,service:m,version:g,loadingType:i,location:f,startClocks:a,commonViewMetrics:I(),initialViewMetrics:P,duration:ru(a.timeStamp,H),isActive:d===void 0,sessionIsActive:p,eventCounts:D})}return{get name(){return h},service:m,version:g,stopObservable:l,end:function(H){var M=this,B,k;H===void 0&&(H={}),!d&&(d=(B=H.endClocks)!==null&&B!==void 0?B:Pu(),p=(k=H.sessionIsActive)!==null&&k!==void 0?k:!0,e.notify(5,{endClocks:d}),e.notify(6,{endClocks:d}),Hz(z),x(d.relative),T(),U(),Ec(function(){M.stop()},Hnn))},stop:function(){N(),$(),A(),l.notify()},addTiming:function(H,M){if(!d){var B=tZt(M)?M:ru(a.timeStamp,M);c[qnn(H)]=B,_()}},updateViewName:function(H){R3(s0.UPDATE_VIEW_NAME)&&(h=H,U())}}}function qnn(e){var t=e.replace(/[^a-zA-Z0-9-_.@$]/g,"_");return t!==e&&Ua.warn("Invalid timing name: ".concat(e,", sanitized to: ").concat(t)),t}function Wnn(e,t){return e.pathname!==t.pathname||!Ynn(t.hash)&&vCe(t.hash)!==vCe(e.hash)}function Ynn(e){var t=e.substring(1);return t!==""&&!!document.getElementById(t)}function vCe(e){var t=e.indexOf("?");return t<0?e:e.slice(0,t)}function Knn(e,t,n,r,i,a,o,s,l){return e.subscribe(4,function(c){return e.notify(12,Xnn(c,t,a,s,o))}),Vnn(n,e,r,t,i,!t.trackViewsManually,l)}function Xnn(e,t,n,r,i){var a,o,s,l,c,u,d,f,p,h,m,g,v,y,_,S,C=r.getReplayStats(e.id),w=n.findFeatureFlagEvaluations(e.startClocks.relative),x=i.findAll(e.startClocks.relative,e.duration),T={_dd:{document_version:e.documentVersion,replay_stats:C,page_states:x,configuration:{start_session_replay_recording_manually:t.startSessionReplayRecordingManually}},date:e.startClocks.timeStamp,type:"view",view:{action:{count:e.eventCounts.actionCount},frustration:{count:e.eventCounts.frustrationCount},cumulative_layout_shift:(a=e.commonViewMetrics.cumulativeLayoutShift)===null||a===void 0?void 0:a.value,cumulative_layout_shift_time:Mo((o=e.commonViewMetrics.cumulativeLayoutShift)===null||o===void 0?void 0:o.time),cumulative_layout_shift_target_selector:(s=e.commonViewMetrics.cumulativeLayoutShift)===null||s===void 0?void 0:s.targetSelector,first_byte:Mo((l=e.initialViewMetrics.navigationTimings)===null||l===void 0?void 0:l.firstByte),dom_complete:Mo((c=e.initialViewMetrics.navigationTimings)===null||c===void 0?void 0:c.domComplete),dom_content_loaded:Mo((u=e.initialViewMetrics.navigationTimings)===null||u===void 0?void 0:u.domContentLoaded),dom_interactive:Mo((d=e.initialViewMetrics.navigationTimings)===null||d===void 0?void 0:d.domInteractive),error:{count:e.eventCounts.errorCount},first_contentful_paint:Mo(e.initialViewMetrics.firstContentfulPaint),first_input_delay:Mo((f=e.initialViewMetrics.firstInput)===null||f===void 0?void 0:f.delay),first_input_time:Mo((p=e.initialViewMetrics.firstInput)===null||p===void 0?void 0:p.time),first_input_target_selector:(h=e.initialViewMetrics.firstInput)===null||h===void 0?void 0:h.targetSelector,interaction_to_next_paint:Mo((m=e.commonViewMetrics.interactionToNextPaint)===null||m===void 0?void 0:m.value),interaction_to_next_paint_time:Mo((g=e.commonViewMetrics.interactionToNextPaint)===null||g===void 0?void 0:g.time),interaction_to_next_paint_target_selector:(v=e.commonViewMetrics.interactionToNextPaint)===null||v===void 0?void 0:v.targetSelector,is_active:e.isActive,name:e.name,largest_contentful_paint:Mo((y=e.initialViewMetrics.largestContentfulPaint)===null||y===void 0?void 0:y.value),largest_contentful_paint_target_selector:(_=e.initialViewMetrics.largestContentfulPaint)===null||_===void 0?void 0:_.targetSelector,load_event:Mo((S=e.initialViewMetrics.navigationTimings)===null||S===void 0?void 0:S.loadEvent),loading_time:Eqe(Mo(e.commonViewMetrics.loadingTime)),loading_type:e.loadingType,long_task:{count:e.eventCounts.longTaskCount},resource:{count:e.eventCounts.resourceCount},time_spent:Mo(e.duration)},feature_flags:w&&!jE(w)?w:void 0,display:e.commonViewMetrics.scroll?{scroll:{max_depth:e.commonViewMetrics.scroll.maxDepth,max_depth_scroll_top:e.commonViewMetrics.scroll.maxDepthScrollTop,max_scroll_height:e.commonViewMetrics.scroll.maxScrollHeight,max_scroll_height_time:Mo(e.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,session:{has_replay:C?!0:void 0,is_active:e.sessionIsActive?void 0:!1},privacy:{replay_level:t.defaultPrivacyLevel}};return jE(e.customTimings)||(T.view.custom_timings=oZt(e.customTimings,Mo)),{rawRumEvent:T,startTime:e.startClocks.relative,domainContext:{location:e.location}}}var Znn="rum";function Qnn(e,t,n){var r=tJt(e,Znn,function(i){return ern(e,i)},n);return r.expireObservable.subscribe(function(){t.notify(9)}),r.renewObservable.subscribe(function(){t.notify(10)}),r.sessionStateUpdateObservable.subscribe(function(i){var a=i.previousState,o=i.newState;if(!a.forcedReplay&&o.forcedReplay){var s=r.findSession();s&&(s.isReplayForced=!0)}}),{findTrackedSession:function(i){var a=r.findSession(i);if(!(!a||!Gqe(a.trackingType)))return{id:a.id,sessionReplay:a.trackingType==="1"?1:a.isReplayForced?2:0}},expire:r.expire,expireObservable:r.expireObservable,setForcedReplay:function(){return r.updateSessionState({forcedReplay:"1"})}}}function Jnn(){var e={id:"00000000-aaaa-0000-aaaa-000000000000",sessionReplay:oqe("records")?1:0};return{findTrackedSession:function(){return e},expire:za,expireObservable:new oo,setForcedReplay:za}}function ern(e,t){var n;return trn(t)?n=t:lE(e.sessionSampleRate)?lE(e.sessionReplaySampleRate)?n="1":n="2":n="0",{trackingType:n,isTracked:Gqe(n)}}function trn(e){return e==="0"||e==="1"||e==="2"}function Gqe(e){return e==="2"||e==="1"}function nrn(e,t,n,r,i,a,o){var s=e.replica,l=SJt(e,{endpoint:e.rumEndpointBuilder,encoder:o(2)},s&&{endpoint:s.rumEndpointBuilder,transformMessage:function(c){return iv(c,{application:{id:s.applicationId}})},encoder:o(3)},r,i,a);return t.subscribe(13,function(c){c.type==="view"?l.upsert(c,c.view.id):l.add(c)}),n.subscribe(function(c){return l.add(c,YQt(e))}),l}function rrn(e){var t=LT();e.subscribe(13,function(n){t.send("rum",n)})}var irn=AC;function arn(e,t,n){var r=OT({expireDelay:irn}),i;e.subscribe(2,function(s){var l=s.startClocks,c=n.href;r.add(o({url:c,referrer:i||document.referrer}),l.relative),i=c}),e.subscribe(6,function(s){var l=s.endClocks;r.closeActive(l.relative)});var a=t.subscribe(function(s){var l=s.newLocation,c=r.find();if(c){var u=pm();r.closeActive(u),r.add(o({url:l.href,referrer:c.referrer}),u)}});function o(s){var l=s.url,c=s.referrer;return{url:l,referrer:c}}return{findUrl:function(s){return r.find(s)},stop:function(){a.unsubscribe(),r.stop()}}}function orn(e,t){var n=zN(t);return new oo(function(r){var i=srn(e,o).stop,a=lrn(e,o).stop;function o(){if(n.href!==t.href){var s=zN(t);r.notify({newLocation:s,oldLocation:n}),n=s}}return function(){i(),a()}})}function srn(e,t){var n=vd(history,"pushState",function(a){var o=a.onPostCall;o(t)}).stop,r=vd(history,"replaceState",function(a){var o=a.onPostCall;o(t)}).stop,i=To(e,window,"popstate",t).stop;return{stop:function(){n(),r(),i()}}}function lrn(e,t){return To(e,window,"hashchange",t)}var crn=AC;function urn(e,t){var n=OT({expireDelay:crn});return e.subscribe(2,function(r){var i=r.startClocks;n.add({},i.relative),t.resetCustomerData()}),e.subscribe(6,function(r){var i=r.endClocks;n.closeActive(i.relative)}),{findFeatureFlagEvaluations:function(r){return n.find(r)},addFeatureFlagEvaluation:function(r,i){var a=n.find();a&&(a[r]=i,t.updateCustomerData(a))},stop:function(){return t.stop()}}}var drn=10*Bu,E1,uS,qie;function frn(e,t,n,r,i){var a=t.enabled&&lE(e.customerDataTelemetrySampleRate);a&&(qqe(),yCe(),n.subscribe(13,function(o){qie=!0,tI(uS.globalContextBytes,r.getOrCreateTracker(2).getBytesCount()),tI(uS.userContextBytes,r.getOrCreateTracker(1).getBytesCount()),tI(uS.featureFlagBytes,hm(["view","error"],o.type)?r.getOrCreateTracker(0).getBytesCount():0)}),i.subscribe(function(o){var s=o.bytesCount,l=o.messagesCount;qie&&(E1.batchCount+=1,tI(E1.batchBytesCount,s),tI(E1.batchMessagesCount,l),Kq(E1.globalContextBytes,uS.globalContextBytes),Kq(E1.userContextBytes,uS.userContextBytes),Kq(E1.featureFlagBytes,uS.featureFlagBytes),yCe())}),xT(prn,drn))}function prn(){E1.batchCount!==0&&(NT("Customer data measures",E1),qqe())}function rb(){return{min:1/0,max:0,sum:0}}function tI(e,t){e.sum+=t,e.min=Math.min(e.min,t),e.max=Math.max(e.max,t)}function Kq(e,t){e.sum+=t.sum,e.min=Math.min(e.min,t.min),e.max=Math.max(e.max,t.max)}function qqe(){E1={batchCount:0,batchBytesCount:rb(),batchMessagesCount:rb(),globalContextBytes:rb(),userContextBytes:rb(),featureFlagBytes:rb()}}function yCe(){qie=!1,uS={globalContextBytes:rb(),userContextBytes:rb(),featureFlagBytes:rb()}}var hrn=4e3,mrn=500,grn=AC;function vrn(e,t){t===void 0&&(t=mrn);var n=OT({expireDelay:grn,maxEntries:hrn}),r;a(Wqe(),pm());var i=Rd(e,window,["pageshow","focus","blur","visibilitychange","resume","freeze","pagehide"],function(s){a(yrn(s),s.timeStamp)},{capture:!0}).stop;function a(s,l){l===void 0&&(l=pm()),s!==r&&(r=s,n.closeActive(l),n.add({state:r,startTime:l},l))}var o={findAll:function(s,l){var c=n.findAll(s,l);if(c.length!==0){for(var u=[],d=Math.max(0,c.length-t),f=c.length-1;f>=d;f--){var p=c[f],h=ru(s,p.startTime);u.push({state:p.state,start:Mo(h)})}return u}},wasInPageStateAt:function(s,l){return o.wasInPageStateDuringPeriod(s,l,0)},wasInPageStateDuringPeriod:function(s,l,c){return n.findAll(l,c).some(function(u){return u.state===s})},addPageState:a,stop:function(){i(),n.stop()}};return o}function yrn(e){return e.type==="freeze"?"frozen":e.type==="pagehide"?e.persisted?"frozen":"terminated":Wqe()}function Wqe(){return document.visibilityState==="hidden"?"hidden":document.hasFocus()?"active":"passive"}function brn(e){var t=Yz(),n=Vqe(e).subscribe(function(r){t=r}).unsubscribe;return{get:function(){return{viewport:t}},stop:n}}function _rn(e,t){var n=window.cookieStore?Srn(e):Crn;return new oo(function(r){return n(t,function(i){return r.notify(i)})})}function Srn(e){return function(t,n){var r=To(e,window.cookieStore,"change",function(i){var a=r_(i.changed,function(o){return o.name===t})||r_(i.deleted,function(o){return o.name===t});a&&n(a.value)});return r.stop}}var Ern=Bu;function Crn(e,t){var n=HN(document.cookie,e),r=xT(function(){var i=HN(document.cookie,e);i!==n&&t(i)},Ern);return function(){Hz(r)}}var bCe="datadog-ci-visibility-test-execution-id";function wrn(e,t){var n;t===void 0&&(t=_rn(e,bCe));var r=pb(bCe)||((n=window.Cypress)===null||n===void 0?void 0:n.env("traceId")),i=t.subscribe(function(a){r=a});return{get:function(){if(typeof r=="string")return{test_execution_id:r}},stop:function(){return i.unsubscribe()}}}function xrn(e,t,n,r,i,a,o){var s=[],l=new Uen;l.subscribe(13,function(H){return $fe("rum",H)});var c=Trn(e);c.setContextProvider(function(){var H,M;return{application:{id:e.applicationId},session:{id:(H=h.findTrackedSession())===null||H===void 0?void 0:H.id},view:{id:(M=S.findView())===null||M===void 0?void 0:M.id},action:{id:w.findActionId()}}});var u=function(H){l.notify(14,{error:H}),NT("Error reported to customer",{"error.message":H.message})},d=urn(l,n.getOrCreateTracker(0)),f=yJt(e),p=f.subscribe(function(H){l.notify(11,H)});s.push(function(){return p.unsubscribe()});var h=UE()?Jnn():Qnn(e,l,o);if(UE())rrn(l);else{var m=nrn(e,l,c.observable,u,f,h.expireObservable,a);s.push(function(){return m.stop()}),frn(e,c,l,n,m.flushObservable)}var g=ben(),v=orn(e,location),y=vrn(e),_=Irn(l,e,location,h,y,v,g,r,u),S=_.viewContexts,C=_.urlContexts,w=_.actionContexts,x=_.addAction,T=_.stop;s.push(T),WQt();var A=Knn(l,e,location,g,v,d,y,t,i),I=A.addTiming,R=A.startView,N=A.updateViewName,P=A.stop;s.push(P);var L=inn(l,e,y).stop;s.push(L),Ktn(l,e);var $=qtn(l,e,y,d).addError;Gen(l,e,h);var D=Len(l,e).stop;s.push(D);var z=den(l,y),U=zen(e.applicationId,h,S,w,C);return{addAction:x,addError:$,addTiming:I,addFeatureFlagEvaluation:d.addFeatureFlagEvaluation,startView:R,updateViewName:N,lifeCycle:l,viewContexts:S,session:h,stopSession:function(){return h.expire()},getInternalContext:U.get,startDurationVital:z.startDurationVital,addDurationVital:z.addDurationVital,stop:function(){s.forEach(function(H){return H()})}}}function Trn(e){var t=GQt("browser-rum-sdk",e);if(UE()){var n=LT();t.observable.subscribe(function(r){return n.send("internal_telemetry",r)})}return t}function Irn(e,t,n,r,i,a,o,s,l){var c=Ven(e),u=arn(e,a,n),d=Htn(e,o,t,i),f=d.addAction,p=d.actionContexts,h=brn(t),m=wrn(t);return Fen(t,e,r,c,u,p,h,m,s,l),{viewContexts:c,pageStateHistory:i,urlContexts:u,addAction:f,actionContexts:p,stop:function(){m.stop(),h.stop(),i.stop(),u.stop(),c.stop(),i.stop()}}}function Arn(e,t){var n=t.session,r=t.viewContext,i=t.errorType,a=n?n.id:"no-session-id",o=[];i!==void 0&&o.push("error-type=".concat(i)),r&&(o.push("seed=".concat(r.id)),o.push("from=".concat(r.startClocks.timeStamp)));var s=Rrn(e),l="/rum/replay/sessions/".concat(a);return"".concat(s).concat(l,"?").concat(o.join("&"))}function Rrn(e){var t=e.site,n=e.subdomain||Nrn(e);return"https://".concat(n?"".concat(n,"."):"").concat(t)}function Nrn(e){switch(e.site){case hb:case qZt:return"app";case FGe:return"dd";default:return}}var Orn=10,Eu;function Lrn(e){return Kz(e).segments_count}function Prn(e){Kz(e).segments_count+=1}function krn(e){Kz(e).records_count+=1}function Mrn(e,t){Kz(e).segments_total_raw_size+=t}function Drn(e){return Eu?.get(e)}function Kz(e){Eu||(Eu=new Map);var t;return Eu.has(e)?t=Eu.get(e):(t={records_count:0,segments_count:0,segments_total_raw_size:0},Eu.set(e,t),Eu.size>Orn&&$rn()),t}function $rn(){if(Eu)if(Eu.keys)Eu.delete(Eu.keys().next().value);else{var e=!0;Eu.forEach(function(t,n){e&&(Eu.delete(n),e=!1)})}}var Kfe=new WeakMap;function Vg(e){return Kfe.has(e)}function Frn(e){for(var t=e;t;){if(!Vg(t)&&!Gfe(t))return!1;t=qz(t)}return!0}function pd(e){return Kfe.get(e)}function Brn(e,t){Kfe.set(e,t)}function Xfe(e,t){var n=e.tagName,r=e.value;if(Wz(e,t)){var i=e.type;return n==="INPUT"&&(i==="button"||i==="submit"||i==="reset")?r:!r||n==="OPTION"?void 0:mb}if(n==="OPTION"||n==="SELECT")return e.value;if(!(n!=="INPUT"&&n!=="TEXTAREA"))return r}var jrn=/url\((?:(')([^']*)'|(")([^"]*)"|([^)]*))\)/gm,zrn=/^[A-Za-z]+:|^\/\//,Urn=/^data:.*,/i;function Hrn(e,t){return e.replace(jrn,function(n,r,i,a,o,s){var l=i||o||s;if(!t||!l||zrn.test(l)||Urn.test(l))return n;var c=r||a||"";return"url(".concat(c).concat(Vrn(l,t)).concat(c,")")})}function Vrn(e,t){try{return Vz(e,t).href}catch{return e}}var Grn=/[^a-z1-6-_]/;function Yqe(e){var t=e.toLowerCase().trim();return Grn.test(t)?"div":t}function _Ce(e,t){return"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='".concat(e,"' height='").concat(t,"' style='background-color:silver'%3E%3C/svg%3E")}var kg={FullSnapshot:2,IncrementalSnapshot:3,Meta:4,Focus:6,ViewEnd:7,VisualViewport:8,FrustrationRecord:9},HE={Document:0,DocumentType:1,Element:2,Text:3,CDATA:4,DocumentFragment:11},Ep={Mutation:0,MouseMove:1,MouseInteraction:2,Scroll:3,ViewportResize:4,Input:5,TouchMove:6,MediaInteraction:7,StyleSheetRule:8},Ah={MouseUp:0,MouseDown:1,Click:2,ContextMenu:3,DblClick:4,Focus:5,Blur:6,TouchStart:7,TouchEnd:9},SCe={Play:0,Pause:1};function Kqe(e){if(!(e===void 0||e.length===0))return e.map(function(t){var n=t.cssRules||t.rules,r=Array.from(n,function(a){return a.cssText}),i={cssRules:r,disabled:t.disabled||void 0,media:t.media.length>0?Array.from(t.media):void 0};return i})}function Xqe(e,t,n,r){if(t===Zr.HIDDEN)return null;var i=e.getAttribute(n);if(t===Zr.MASK&&n!==qfe&&!Lqe.includes(n)&&n!==r.actionNameAttribute){var a=e.tagName;switch(n){case"title":case"alt":case"placeholder":return mb}if(a==="IMG"&&(n==="src"||n==="srcset")){var o=e;if(o.naturalWidth>0)return _Ce(o.naturalWidth,o.naturalHeight);var s=e.getBoundingClientRect(),l=s.width,c=s.height;return l>0||c>0?_Ce(l,c):nCe}if(a==="SOURCE"&&(n==="src"||n==="srcset"))return nCe;if(a==="A"&&n==="href"||i&&$O(n,"data-")||a==="IFRAME"&&n==="srcdoc")return mb}return!i||typeof i!="string"?i:vqe(i)?yqe(i):i}function qrn(e,t,n){var r;if(t===Zr.HIDDEN)return{};for(var i={},a=Yqe(e.tagName),o=e.ownerDocument,s=0;s<e.attributes.length;s+=1){var l=e.attributes.item(s),c=l.name,u=Xqe(e,t,c,n.configuration);u!==null&&(i[c]=u)}if(e.value&&(a==="textarea"||a==="select"||a==="option"||a==="input")){var d=Xfe(e,t);d!==void 0&&(i.value=d)}if(a==="option"&&t===Zr.ALLOW){var f=e;f.selected&&(i.selected=f.selected)}if(a==="link"){var p=Array.from(o.styleSheets).find(function(S){return S.href===e.href}),h=Wie(p);h&&p&&(i._cssText=h)}if(a==="style"&&e.sheet){var h=Wie(e.sheet);h&&(i._cssText=h)}var m=e;if(a==="input"&&(m.type==="radio"||m.type==="checkbox")&&(t===Zr.ALLOW?i.checked=!!m.checked:Wz(m,t)&&delete i.checked),a==="audio"||a==="video"){var g=e;i.rr_mediaState=g.paused?"paused":"played"}var v,y,_=n.serializationContext;switch(_.status){case 0:v=Math.round(e.scrollTop),y=Math.round(e.scrollLeft),(v||y)&&_.elementsScrollPositions.set(e,{scrollTop:v,scrollLeft:y});break;case 1:_.elementsScrollPositions.has(e)&&(r=_.elementsScrollPositions.get(e),v=r.scrollTop,y=r.scrollLeft);break}return y&&(i.rr_scrollLeft=y),v&&(i.rr_scrollTop=v),i}function Wie(e){if(!e)return null;var t;try{t=e.rules||e.cssRules}catch{}if(!t)return null;var n=Array.from(t,pZt()?Wrn:Zqe).join("");return Hrn(n,e.href)}function Wrn(e){if(Krn(e)&&e.selectorText.includes(":")){var t=/(\[[\w-]+[^\\])(:[^\]]+\])/g;return e.cssText.replace(t,"$1\\$2")}return Zqe(e)}function Zqe(e){return Yrn(e)&&Wie(e.styleSheet)||e.cssText}function Yrn(e){return"styleSheet"in e}function Krn(e){return"selectorText"in e}function Zfe(e,t){var n=Qrn(e,t);if(!n)return null;var r=pd(e)||Zrn(),i=n;return i.id=r,Brn(e,r),t.serializedNodeIds&&t.serializedNodeIds.add(r),i}var Xrn=1;function Zrn(){return Xrn++}function Qfe(e,t){var n=[];return Tqe(e,function(r){var i=Zfe(r,t);i&&n.push(i)}),n}function Qrn(e,t){switch(e.nodeType){case e.DOCUMENT_NODE:return Jrn(e,t);case e.DOCUMENT_FRAGMENT_NODE:return ein(e,t);case e.DOCUMENT_TYPE_NODE:return tin(e);case e.ELEMENT_NODE:return nin(e,t);case e.TEXT_NODE:return iin(e,t);case e.CDATA_SECTION_NODE:return ain()}}function Jrn(e,t){return{type:HE.Document,childNodes:Qfe(e,t),adoptedStyleSheets:Kqe(e.adoptedStyleSheets)}}function ein(e,t){var n=Gfe(e);return n&&t.serializationContext.shadowRootsController.addShadowRoot(e),{type:HE.DocumentFragment,childNodes:Qfe(e,t),isShadowRoot:n,adoptedStyleSheets:n?Kqe(e.adoptedStyleSheets):void 0}}function tin(e){return{type:HE.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId}}function nin(e,t){var n,r=Yqe(e.tagName),i=rin(e)||void 0,a=Iqe(Aqe(e),t.parentNodePrivacyLevel);if(a===Zr.HIDDEN){var o=e.getBoundingClientRect(),s=o.width,l=o.height;return{type:HE.Element,tagName:r,attributes:(n={rr_width:"".concat(s,"px"),rr_height:"".concat(l,"px")},n[qfe]=rtn,n),childNodes:[],isSVG:i}}if(a!==Zr.IGNORE){var c=qrn(e,a,t),u=[];if(ntn(e)&&r!=="style"){var d=void 0;t.parentNodePrivacyLevel===a&&t.ignoreWhiteSpace===(r==="head")?d=t:d=Ci({},t,{parentNodePrivacyLevel:a,ignoreWhiteSpace:r==="head"}),u=Qfe(e,d)}return{type:HE.Element,tagName:r,attributes:c,childNodes:u,isSVG:i}}}function rin(e){return e.tagName==="svg"||e instanceof SVGElement}function iin(e,t){var n=Rqe(e,t.ignoreWhiteSpace||!1,t.parentNodePrivacyLevel);if(n!==void 0)return{type:HE.Text,textContent:n}}function ain(){return{type:HE.CDATA,textContent:""}}function oin(e,t,n){return Zfe(e,{serializationContext:n,parentNodePrivacyLevel:t.defaultPrivacyLevel,configuration:t})}function Qqe(e){return!!e.changedTouches}function HO(e){return e.composed===!0&&Gz(e.target)?e.composedPath()[0]:e.target}var ECe=25;function sin(e){return Math.abs(e.pageTop-e.offsetTop-window.scrollY)>ECe||Math.abs(e.pageLeft-e.offsetLeft-window.scrollX)>ECe}var lin=function(e,t){var n=window.visualViewport,r={layoutViewportX:e,layoutViewportY:t,visualViewportX:e,visualViewportY:t};if(n)sin(n)?(r.layoutViewportX=Math.round(e+n.offsetLeft),r.layoutViewportY=Math.round(t+n.offsetTop)):(r.visualViewportX=Math.round(e-n.offsetLeft),r.visualViewportY=Math.round(t-n.offsetTop));else return r;return r},Jqe=function(e){return{scale:e.scale,offsetLeft:e.offsetLeft,offsetTop:e.offsetTop,pageLeft:e.pageLeft,pageTop:e.pageTop,height:e.height,width:e.width}};function Wh(e,t){return{data:Ci({source:e},t),type:kg.IncrementalSnapshot,timestamp:Ql()}}var cin=50;function uin(e,t){var n=y0(function(o){var s=HO(o);if(Vg(s)){var l=eWe(o);if(!l)return;var c={id:pd(s),timeOffset:0,x:l.x,y:l.y};t(Wh(Qqe(o)?Ep.TouchMove:Ep.MouseMove,{positions:[c]}))}},cin,{trailing:!1}),r=n.throttled,i=n.cancel,a=Rd(e,document,["mousemove","touchmove"],r,{capture:!0,passive:!0}).stop;return{stop:function(){a(),i()}}}function eWe(e){var t=Qqe(e)?e.changedTouches[0]:e,n=t.clientX,r=t.clientY;if(window.visualViewport){var i=lin(n,r),a=i.visualViewportX,o=i.visualViewportY;n=a,r=o}if(!Number.isFinite(n)||!Number.isFinite(r)){e.isTrusted&&NT("mouse/touch event without x/y");return}return{x:n,y:r}}var hh,CCe=(hh={},hh.pointerup=Ah.MouseUp,hh.mousedown=Ah.MouseDown,hh.click=Ah.Click,hh.contextmenu=Ah.ContextMenu,hh.dblclick=Ah.DblClick,hh.focus=Ah.Focus,hh.blur=Ah.Blur,hh.touchstart=Ah.TouchStart,hh.touchend=Ah.TouchEnd,hh);function din(e,t,n){var r=function(i){var a=HO(i);if(!(gv(a,e.defaultPrivacyLevel)===Zr.HIDDEN||!Vg(a))){var o=pd(a),s=CCe[i.type],l;if(s!==Ah.Blur&&s!==Ah.Focus){var c=eWe(i);if(!c)return;l={id:o,type:s,x:c.x,y:c.y}}else l={id:o,type:s};var u=Ci({id:n.getIdForEvent(i)},Wh(Ep.MouseInteraction,l));t(u)}};return Rd(e,document,Object.keys(CCe),r,{capture:!0,passive:!0})}var fin=100;function tWe(e,t,n,r){r===void 0&&(r=document);var i=y0(function(l){var c=HO(l);if(!(!c||gv(c,e.defaultPrivacyLevel)===Zr.HIDDEN||!Vg(c))){var u=pd(c),d=c===document?{scrollTop:Yfe(),scrollLeft:Hqe()}:{scrollTop:Math.round(c.scrollTop),scrollLeft:Math.round(c.scrollLeft)};n.set(c,d),t(Wh(Ep.Scroll,{id:u,x:d.scrollLeft,y:d.scrollTop}))}},fin),a=i.throttled,o=i.cancel,s=To(e,r,"scroll",a,{capture:!0,passive:!0}).stop;return{stop:function(){s(),o()}}}var pin=200;function hin(e,t){var n=Vqe(e).subscribe(function(r){t(Wh(Ep.ViewportResize,r))});return{stop:function(){n.unsubscribe()}}}function min(e,t){var n=window.visualViewport;if(!n)return{stop:za};var r=y0(function(){t({data:Jqe(n),type:kg.VisualViewport,timestamp:Ql()})},pin,{trailing:!1}),i=r.throttled,a=r.cancel,o=Rd(e,n,["resize","scroll"],i,{capture:!0,passive:!0}).stop;return{stop:function(){o(),a()}}}function gin(e,t){return Rd(e,document,["play","pause"],function(n){var r=HO(n);!r||gv(r,e.defaultPrivacyLevel)===Zr.HIDDEN||!Vg(r)||t(Wh(Ep.MediaInteraction,{id:pd(r),type:n.type==="play"?SCe.Play:SCe.Pause}))},{capture:!0,passive:!0})}function vin(e){function t(i,a){i&&Vg(i.ownerNode)&&a(pd(i.ownerNode))}var n=[vd(CSSStyleSheet.prototype,"insertRule",function(i){var a=i.target,o=i.parameters,s=o[0],l=o[1];t(a,function(c){return e(Wh(Ep.StyleSheetRule,{id:c,adds:[{rule:s,index:l}]}))})}),vd(CSSStyleSheet.prototype,"deleteRule",function(i){var a=i.target,o=i.parameters[0];t(a,function(s){return e(Wh(Ep.StyleSheetRule,{id:s,removes:[{index:o}]}))})})];typeof CSSGroupingRule<"u"?r(CSSGroupingRule):(r(CSSMediaRule),r(CSSSupportsRule));function r(i){n.push(vd(i.prototype,"insertRule",function(a){var o=a.target,s=a.parameters,l=s[0],c=s[1];t(o.parentStyleSheet,function(u){var d=wCe(o);d&&(d.push(c||0),e(Wh(Ep.StyleSheetRule,{id:u,adds:[{rule:l,index:d}]})))})}),vd(i.prototype,"deleteRule",function(a){var o=a.target,s=a.parameters[0];t(o.parentStyleSheet,function(l){var c=wCe(o);c&&(c.push(s),e(Wh(Ep.StyleSheetRule,{id:l,removes:[{index:c}]})))})}))}return{stop:function(){n.forEach(function(i){return i.stop()})}}}function wCe(e){for(var t=[],n=e;n.parentRule;){var r=Array.from(n.parentRule.cssRules),i=r.indexOf(n);t.unshift(i),n=n.parentRule}if(n.parentStyleSheet){var a=Array.from(n.parentStyleSheet.cssRules),o=a.indexOf(n);return t.unshift(o),t}}function yin(e,t){return Rd(e,window,["focus","blur"],function(){t({data:{has_focus:document.hasFocus()},type:kg.Focus,timestamp:Ql()})})}function bin(e,t,n){var r=e.subscribe(12,function(i){var a,o;i.rawRumEvent.type==="action"&&i.rawRumEvent.action.type==="click"&&(!((o=(a=i.rawRumEvent.action.frustration)===null||a===void 0?void 0:a.type)===null||o===void 0)&&o.length)&&"events"in i.domainContext&&i.domainContext.events&&i.domainContext.events.length&&t({timestamp:i.rawRumEvent.date,type:kg.FrustrationRecord,data:{frustrationTypes:i.rawRumEvent.action.frustration.type,recordIds:i.domainContext.events.map(function(s){return n.getIdForEvent(s)})}})});return{stop:function(){r.unsubscribe()}}}function _in(e,t){var n=e.subscribe(5,function(){t({timestamp:Ql(),type:kg.ViewEnd})});return{stop:function(){n.unsubscribe()}}}function nWe(e,t,n){n===void 0&&(n=document);var r=e.defaultPrivacyLevel,i=new WeakMap,a=n!==document,o=Rd(e,n,a?["change"]:["input","change"],function(d){var f=HO(d);(f instanceof HTMLInputElement||f instanceof HTMLTextAreaElement||f instanceof HTMLSelectElement)&&c(f)},{capture:!0,passive:!0}).stop,s;if(a)s=za;else{var l=[Q4(HTMLInputElement.prototype,"value",c),Q4(HTMLInputElement.prototype,"checked",c),Q4(HTMLSelectElement.prototype,"value",c),Q4(HTMLTextAreaElement.prototype,"value",c),Q4(HTMLSelectElement.prototype,"selectedIndex",c)];s=function(){l.forEach(function(d){return d.stop()})}}return{stop:function(){s(),o()}};function c(d){var f=gv(d,r);if(f!==Zr.HIDDEN){var p=d.type,h;if(p==="radio"||p==="checkbox"){if(Wz(d,f))return;h={isChecked:d.checked}}else{var m=Xfe(d,f);if(m===void 0)return;h={text:m}}u(d,h);var g=d.name;p==="radio"&&g&&d.checked&&TGe(document.querySelectorAll('input[type="radio"][name="'.concat(a_(g),'"]')),function(v){v!==d&&u(v,{isChecked:!1})})}}function u(d,f){if(Vg(d)){var p=i.get(d);(!p||p.text!==f.text||p.isChecked!==f.isChecked)&&(i.set(d,f),t(Wh(Ep.Input,Ci({id:pd(d)},f))))}}}var Sin=100,Ein=16;function Cin(e){var t=za,n=[];function r(){t(),e(n),n=[]}var i=y0(r,Ein,{leading:!1}),a=i.throttled,o=i.cancel;return{addMutations:function(s){n.length===0&&(t=win(a,{timeout:Sin})),n.push.apply(n,s)},flush:r,stop:function(){t(),o()}}}function win(e,t){if(window.requestIdleCallback&&window.cancelIdleCallback){var n=window.requestIdleCallback(ei(e),t);return function(){return window.cancelIdleCallback(n)}}var r=window.requestAnimationFrame(ei(e));return function(){return window.cancelAnimationFrame(r)}}function rWe(e,t,n,r){var i=hqe();if(!i)return{stop:za,flush:za};var a=Cin(function(s){xin(s.concat(o.takeRecords()),e,t,n)}),o=new i(ei(a.addMutations));return o.observe(r,{attributeOldValue:!0,attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),{stop:function(){o.disconnect(),a.stop()},flush:function(){a.flush()}}}function xin(e,t,n,r){var i=new Map;e.filter(function(f){return f.type==="childList"}).forEach(function(f){f.removedNodes.forEach(function(p){iWe(p,r.removeShadowRoot)})});var a=e.filter(function(f){return f.target.isConnected&&Frn(f.target)&&gv(f.target,n.defaultPrivacyLevel,i)!==Zr.HIDDEN}),o=Tin(a.filter(function(f){return f.type==="childList"}),n,r,i),s=o.adds,l=o.removes,c=o.hasBeenSerialized,u=Iin(a.filter(function(f){return f.type==="characterData"&&!c(f.target)}),n,i),d=Ain(a.filter(function(f){return f.type==="attributes"&&!c(f.target)}),n,i);!u.length&&!d.length&&!l.length&&!s.length||t(Wh(Ep.Mutation,{adds:s,removes:l,texts:u,attributes:d}))}function Tin(e,t,n,r){for(var i=new Set,a=new Map,o=function(w){w.addedNodes.forEach(function(x){i.add(x)}),w.removedNodes.forEach(function(x){i.has(x)||a.set(x,w.target),i.delete(x)})},s=0,l=e;s<l.length;s++){var c=l[s];o(c)}var u=Array.from(i);Rin(u);for(var d=new Set,f=[],p=0,h=u;p<h.length;p++){var m=h[p];if(!S(m)){var g=gv(m.parentNode,t.defaultPrivacyLevel,r);if(!(g===Zr.HIDDEN||g===Zr.IGNORE)){var v=Zfe(m,{serializedNodeIds:d,parentNodePrivacyLevel:g,serializationContext:{status:2,shadowRootsController:n},configuration:t});if(v){var y=qz(m);f.push({nextId:C(m),parentId:pd(y),node:v})}}}}var _=[];return a.forEach(function(w,x){Vg(x)&&_.push({parentId:pd(w),id:pd(x)})}),{adds:f,removes:_,hasBeenSerialized:S};function S(w){return Vg(w)&&d.has(pd(w))}function C(w){for(var x=w.nextSibling;x;){if(Vg(x))return pd(x);x=x.nextSibling}return null}}function Iin(e,t,n){for(var r,i=[],a=new Set,o=e.filter(function(f){return a.has(f.target)?!1:(a.add(f.target),!0)}),s=0,l=o;s<l.length;s++){var c=l[s],u=c.target.textContent;if(u!==c.oldValue){var d=gv(qz(c.target),t.defaultPrivacyLevel,n);d===Zr.HIDDEN||d===Zr.IGNORE||i.push({id:pd(c.target),value:(r=Rqe(c.target,!1,d))!==null&&r!==void 0?r:null})}}return i}function Ain(e,t,n){for(var r=[],i=new Map,a=e.filter(function(g){var v=i.get(g.target);return v&&v.has(g.attributeName)?!1:(v?v.add(g.attributeName):i.set(g.target,new Set([g.attributeName])),!0)}),o=new Map,s=0,l=a;s<l.length;s++){var c=l[s],u=c.target.getAttribute(c.attributeName);if(u!==c.oldValue){var d=gv(c.target,t.defaultPrivacyLevel,n),f=Xqe(c.target,d,c.attributeName,t),p=void 0;if(c.attributeName==="value"){var h=Xfe(c.target,d);if(h===void 0)continue;p=h}else typeof f=="string"?p=f:p=null;var m=o.get(c.target);m||(m={id:pd(c.target),attributes:{}},r.push(m),o.set(c.target,m)),m.attributes[c.attributeName]=p}}return r}function Rin(e){e.sort(function(t,n){var r=t.compareDocumentPosition(n);return r&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:r&Node.DOCUMENT_POSITION_CONTAINS||r&Node.DOCUMENT_POSITION_FOLLOWING?1:r&Node.DOCUMENT_POSITION_PRECEDING?-1:0})}function iWe(e,t){Gz(e)&&t(e.shadowRoot),Tqe(e,function(n){return iWe(n,t)})}function Nin(){var e=new WeakMap;return{set:function(t,n){t===document&&!document.scrollingElement||e.set(t===document?document.scrollingElement:t,n)},get:function(t){return e.get(t)},has:function(t){return e.has(t)}}}var Oin=function(e,t,n){var r=new Map,i={addShadowRoot:function(a){if(!r.has(a)){var o=rWe(t,e,i,a),s=nWe(e,t,a),l=tWe(e,t,n,a);r.set(a,{flush:function(){return o.flush()},stop:function(){o.stop(),s.stop(),l.stop()}})}},removeShadowRoot:function(a){var o=r.get(a);o&&(o.stop(),r.delete(a))},stop:function(){r.forEach(function(a){var o=a.stop;return o()})},flush:function(){r.forEach(function(a){var o=a.flush;return o()})}};return i};function Lin(e,t,n,r,i,a){var o=function(l,c){l===void 0&&(l=Ql()),c===void 0&&(c={status:0,elementsScrollPositions:e,shadowRootsController:t});var u=Yz(),d=u.width,f=u.height,p=[{data:{height:f,href:window.location.href,width:d},type:kg.Meta,timestamp:l},{data:{has_focus:document.hasFocus()},type:kg.Focus,timestamp:l},{data:{node:oin(document,r,c),initialOffset:{left:Hqe(),top:Yfe()}},type:kg.FullSnapshot,timestamp:l}];return window.visualViewport&&p.push({data:Jqe(window.visualViewport),type:kg.VisualViewport,timestamp:l}),p};a(o());var s=n.subscribe(3,function(l){i(),a(o(l.startClocks.timeStamp,{shadowRootsController:t,status:1,elementsScrollPositions:e}))}).unsubscribe;return{stop:s}}function Pin(){var e=new WeakMap,t=1;return{getIdForEvent:function(n){return e.has(n)||e.set(n,t++),e.get(n)}}}function kin(e){var t=e.emit,n=e.configuration,r=e.lifeCycle;if(!t)throw new Error("emit function is required");var i=function(f){t(f),$fe("record",{record:f});var p=e.viewContexts.findView();krn(p.id)},a=Nin(),o=Oin(n,i,a),s=Lin(a,o,r,n,l,function(f){return f.forEach(function(p){return i(p)})}).stop;function l(){o.flush(),u.flush()}var c=Pin(),u=rWe(i,n,o,document),d=[u,uin(n,i),din(n,i,c),tWe(n,i,a,document),hin(n,i),nWe(n,i),gin(n,i),vin(i),yin(n,i),min(n,i),bin(r,i,c),_in(r,function(f){l(),i(f)})];return{stop:function(){o.stop(),d.forEach(function(f){return f.stop()}),s()},flushMutations:l,shadowRootsController:o}}function Min(e,t,n){var r=new FormData;r.append("segment",new Blob([e],{type:"application/octet-stream"}),"".concat(t.session.id,"-").concat(t.start));var i=Ci({raw_segment_size:n,compressed_segment_size:e.byteLength},t),a=JSON.stringify(i);return r.append("event",new Blob([a],{type:"application/json"})),{data:r,bytesCount:e.byteLength}}function Din(e){var t=e.context,n=e.creationReason,r=e.encoder,i=0,a=t.view.id,o=Ci({start:1/0,end:-1/0,creation_reason:n,records_count:0,has_full_snapshot:!1,index_in_view:Lrn(a),source:"browser"},t);Prn(a);function s(c,u){o.start=Math.min(o.start,c.timestamp),o.end=Math.max(o.end,c.timestamp),o.records_count+=1,o.has_full_snapshot||(o.has_full_snapshot=c.type===kg.FullSnapshot);var d=r.isEmpty?'{"records":[':",";r.write(d+JSON.stringify(c),function(f){i+=f,u(i)})}function l(c){if(r.isEmpty)throw new Error("Empty segment flushed");r.write("],".concat(JSON.stringify(o).slice(1),`
`)),r.finish(function(u){Mrn(o.view.id,u.rawBytesCount),c(o,u)})}return{addRecord:s,flush:l}}var $in=30*Bu,aWe=6e4;function Fin(e,t,n,r,i,a){return Bin(e,function(){return jin(t.applicationId,n,r)},i,a)}function Bin(e,t,n,r){var i={status:0,nextSegmentCreationReason:"init"},a=e.subscribe(3,function(){s("view_change")}).unsubscribe,o=e.subscribe(11,function(l){s(l.reason)}).unsubscribe;function s(l){i.status===1&&(i.segment.flush(function(c,u){var d=Min(u.output,c,u.rawBytesCount);sqe(l)?n.sendOnExit(d):n.send(d)}),Hh(i.expirationTimeoutId)),l!=="stop"?i={status:0,nextSegmentCreationReason:l}:i={status:2}}return{addRecord:function(l){if(i.status!==2){if(i.status===0){var c=t();if(!c)return;i={status:1,segment:Din({encoder:r,context:c,creationReason:i.nextSegmentCreationReason}),expirationTimeoutId:Ec(function(){s("segment_duration_limit")},$in)}}i.segment.addRecord(l,function(u){u>aWe&&s("segment_bytes_limit")})}},stop:function(){s("stop"),a(),o()}}}function jin(e,t,n){var r=t.findTrackedSession(),i=n.findView();if(!(!r||!i))return{application:{id:e},session:{id:r.id},view:{id:i.id}}}function zin(e){var t=LT();return{addRecord:function(n){var r=e.findView();t.send("record",n,r.id)}}}function Uin(e,t,n,r,i,a){var o=[],s=function(f){e.notify(14,{error:f}),NT("Error reported to customer",{"error.message":f.message})},l=a||aqe(t,t.sessionReplayEndpointBuilder,aWe,s),c;if(UE())c=zin(r).addRecord;else{var u=Fin(e,t,n,r,l,i);c=u.addRecord,o.push(u.stop)}var d=kin({emit:c,configuration:t,lifeCycle:e,viewContexts:r}).stop;return o.push(d),{stop:function(){o.forEach(function(f){return f()})}}}function oWe(){return typeof Array.from=="function"&&typeof CSSSupportsRule=="function"&&typeof URL.createObjectURL=="function"&&"forEach"in NodeList.prototype}function Hin(e,t,n,r){var i=t.findTrackedSession(),a=Vin(i,r),o=n.findView();return Arn(e,{viewContext:o,errorType:a,session:i})}function Vin(e,t){if(!oWe())return"browser-not-supported";if(!e)return"rum-not-tracked";if(e.sessionReplay===0)return"incorrect-session-plan";if(!t)return"replay-not-started"}function sWe(e,t,n){var r=0,i=[],a,o=0,s=[],l=To(e,t,"message",function(d){var f=d.data;if(!(f.type!=="wrote"||f.streamId!==n)){r+=f.additionalBytesCount,i.push(f.result),a=f.trailer;var p=s.shift();p&&p.id===f.id?p.writeCallback?p.writeCallback(f.result.byteLength):p.finishCallback&&p.finishCallback():(l(),NT("Worker responses received out of order."))}}).stop;function c(){var d=i.length===0?new Uint8Array(0):rZt(i.concat(a)),f={rawBytesCount:r,output:d,outputBytesCount:d.byteLength,encoding:"deflate"};return r=0,i=[],f}function u(){o>0&&(t.postMessage({action:"reset",streamId:n}),o=0)}return{isAsync:!0,get isEmpty(){return o===0},write:function(d,f){t.postMessage({action:"write",id:o,data:d,streamId:n}),s.push({id:o,writeCallback:f,data:d}),o+=1},finish:function(d){u(),s.length?(s.forEach(function(f){delete f.writeCallback}),s[s.length-1].finishCallback=function(){return d(c())}):d(c())},finishSync:function(){u();var d=s.map(function(f){return delete f.writeCallback,delete f.finishCallback,f.data}).join("");return Ci(c(),{pendingData:d})},estimateEncodedBytesCount:function(d){return d.length/8},stop:function(){l()}}}var Gin=10*Bu;function lWe(e){return new Worker(e.workerUrl||URL.createObjectURL(new Blob(['!function(){"use strict";function t(t){for(var e=t.reduce((function(t,e){return t+e.length}),0),a=new Uint8Array(e),n=0,r=0,i=t;r<i.length;r++){var s=i[r];a.set(s,n),n+=s.length}return a}function e(t){for(var e=t.length;--e>=0;)t[e]=0}var a=256,n=286,r=30,i=15,s=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),_=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),h=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),l=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),o=new Array(576);e(o);var d=new Array(60);e(d);var u=new Array(512);e(u);var f=new Array(256);e(f);var c=new Array(29);e(c);var p,g,w,v=new Array(r);function b(t,e,a,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=n,this.max_length=r,this.has_stree=t&&t.length}function m(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}e(v);var y=function(t){return t<256?u[t]:u[256+(t>>>7)]},k=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},z=function(t,e,a){t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,k(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},x=function(t,e,a){z(t,a[2*e],a[2*e+1])},A=function(t,e){var a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},E=function(t,e,a){var n,r,s=new Array(16),_=0;for(n=1;n<=i;n++)s[n]=_=_+a[n-1]<<1;for(r=0;r<=e;r++){var h=t[2*r+1];0!==h&&(t[2*r]=A(s[h]++,h))}},Z=function(t){var e;for(e=0;e<n;e++)t.dyn_ltree[2*e]=0;for(e=0;e<r;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0},U=function(t){t.bi_valid>8?k(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},S=function(t,e,a,n){var r=2*e,i=2*a;return t[r]<t[i]||t[r]===t[i]&&n[e]<=n[a]},R=function(t,e,a){for(var n=t.heap[a],r=a<<1;r<=t.heap_len&&(r<t.heap_len&&S(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!S(e,n,t.heap[r],t.depth));)t.heap[a]=t.heap[r],a=r,r<<=1;t.heap[a]=n},L=function(t,e,n){var r,i,h,l,o=0;if(0!==t.last_lit)do{r=t.pending_buf[t.d_buf+2*o]<<8|t.pending_buf[t.d_buf+2*o+1],i=t.pending_buf[t.l_buf+o],o++,0===r?x(t,i,e):(h=f[i],x(t,h+a+1,e),0!==(l=s[h])&&(i-=c[h],z(t,i,l)),r--,h=y(r),x(t,h,n),0!==(l=_[h])&&(r-=v[h],z(t,r,l)))}while(o<t.last_lit);x(t,256,e)},F=function(t,e){var a,n,r,s=e.dyn_tree,_=e.stat_desc.static_tree,h=e.stat_desc.has_stree,l=e.stat_desc.elems,o=-1;for(t.heap_len=0,t.heap_max=573,a=0;a<l;a++)0!==s[2*a]?(t.heap[++t.heap_len]=o=a,t.depth[a]=0):s[2*a+1]=0;for(;t.heap_len<2;)s[2*(r=t.heap[++t.heap_len]=o<2?++o:0)]=1,t.depth[r]=0,t.opt_len--,h&&(t.static_len-=_[2*r+1]);for(e.max_code=o,a=t.heap_len>>1;a>=1;a--)R(t,s,a);r=l;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],R(t,s,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,s[2*r]=s[2*a]+s[2*n],t.depth[r]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,s[2*a+1]=s[2*n+1]=r,t.heap[1]=r++,R(t,s,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var a,n,r,s,_,h,l=e.dyn_tree,o=e.max_code,d=e.stat_desc.static_tree,u=e.stat_desc.has_stree,f=e.stat_desc.extra_bits,c=e.stat_desc.extra_base,p=e.stat_desc.max_length,g=0;for(s=0;s<=i;s++)t.bl_count[s]=0;for(l[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<573;a++)(s=l[2*l[2*(n=t.heap[a])+1]+1]+1)>p&&(s=p,g++),l[2*n+1]=s,n>o||(t.bl_count[s]++,_=0,n>=c&&(_=f[n-c]),h=l[2*n],t.opt_len+=h*(s+_),u&&(t.static_len+=h*(d[2*n+1]+_)));if(0!==g){do{for(s=p-1;0===t.bl_count[s];)s--;t.bl_count[s]--,t.bl_count[s+1]+=2,t.bl_count[p]--,g-=2}while(g>0);for(s=p;0!==s;s--)for(n=t.bl_count[s];0!==n;)(r=t.heap[--a])>o||(l[2*r+1]!==s&&(t.opt_len+=(s-l[2*r+1])*l[2*r],l[2*r+1]=s),n--)}}(t,e),E(s,o,t.bl_count)},T=function(t,e,a){var n,r,i=-1,s=e[1],_=0,h=7,l=4;for(0===s&&(h=138,l=3),e[2*(a+1)+1]=65535,n=0;n<=a;n++)r=s,s=e[2*(n+1)+1],++_<h&&r===s||(_<l?t.bl_tree[2*r]+=_:0!==r?(r!==i&&t.bl_tree[2*r]++,t.bl_tree[32]++):_<=10?t.bl_tree[34]++:t.bl_tree[36]++,_=0,i=r,0===s?(h=138,l=3):r===s?(h=6,l=3):(h=7,l=4))},I=function(t,e,a){var n,r,i=-1,s=e[1],_=0,h=7,l=4;for(0===s&&(h=138,l=3),n=0;n<=a;n++)if(r=s,s=e[2*(n+1)+1],!(++_<h&&r===s)){if(_<l)do{x(t,r,t.bl_tree)}while(0!=--_);else 0!==r?(r!==i&&(x(t,r,t.bl_tree),_--),x(t,16,t.bl_tree),z(t,_-3,2)):_<=10?(x(t,17,t.bl_tree),z(t,_-3,3)):(x(t,18,t.bl_tree),z(t,_-11,7));_=0,i=r,0===s?(h=138,l=3):r===s?(h=6,l=3):(h=7,l=4)}},N=!1,O=function(t,e,a,n){z(t,0+(n?1:0),3),function(t,e,a,n){U(t),n&&(k(t,a),k(t,~a)),t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a}(t,e,a,!0)},D=function(t,e,n,r){var i,s,_=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<a;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),F(t,t.l_desc),F(t,t.d_desc),_=function(t){var e;for(T(t,t.dyn_ltree,t.l_desc.max_code),T(t,t.dyn_dtree,t.d_desc.max_code),F(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*l[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=i&&(i=s)):i=s=n+5,n+4<=i&&-1!==e?O(t,e,n,r):4===t.strategy||s===i?(z(t,2+(r?1:0),3),L(t,o,d)):(z(t,4+(r?1:0),3),function(t,e,a,n){var r;for(z(t,e-257,5),z(t,a-1,5),z(t,n-4,4),r=0;r<n;r++)z(t,t.bl_tree[2*l[r]+1],3);I(t,t.dyn_ltree,e-1),I(t,t.dyn_dtree,a-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,_+1),L(t,t.dyn_ltree,t.dyn_dtree)),Z(t),r&&U(t)},B={_tr_init:function(t){N||(!function(){var t,e,a,l,m,y=new Array(16);for(a=0,l=0;l<28;l++)for(c[l]=a,t=0;t<1<<s[l];t++)f[a++]=l;for(f[a-1]=l,m=0,l=0;l<16;l++)for(v[l]=m,t=0;t<1<<_[l];t++)u[m++]=l;for(m>>=7;l<r;l++)for(v[l]=m<<7,t=0;t<1<<_[l]-7;t++)u[256+m++]=l;for(e=0;e<=i;e++)y[e]=0;for(t=0;t<=143;)o[2*t+1]=8,t++,y[8]++;for(;t<=255;)o[2*t+1]=9,t++,y[9]++;for(;t<=279;)o[2*t+1]=7,t++,y[7]++;for(;t<=287;)o[2*t+1]=8,t++,y[8]++;for(E(o,287,y),t=0;t<r;t++)d[2*t+1]=5,d[2*t]=A(t,5);p=new b(o,s,257,n,i),g=new b(d,_,0,r,i),w=new b(new Array(0),h,0,19,7)}(),N=!0),t.l_desc=new m(t.dyn_ltree,p),t.d_desc=new m(t.dyn_dtree,g),t.bl_desc=new m(t.bl_tree,w),t.bi_buf=0,t.bi_valid=0,Z(t)},_tr_stored_block:O,_tr_flush_block:D,_tr_tally:function(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(f[n]+a+1)]++,t.dyn_dtree[2*y(e)]++),t.last_lit===t.lit_bufsize-1},_tr_align:function(t){z(t,2,3),x(t,256,o),function(t){16===t.bi_valid?(k(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},C=function(t,e,a,n){for(var r=65535&t|0,i=t>>>16&65535|0,s=0;0!==a;){a-=s=a>2e3?2e3:a;do{i=i+(r=r+e[n++]|0)|0}while(--s);r%=65521,i%=65521}return r|i<<16|0},H=new Uint32Array(function(){for(var t,e=[],a=0;a<256;a++){t=a;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e}()),M=function(t,e,a,n){var r=H,i=n+a;t^=-1;for(var s=n;s<i;s++)t=t>>>8^r[255&(t^e[s])];return-1^t},Y={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},K={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},P=B._tr_init,j=B._tr_stored_block,G=B._tr_flush_block,X=B._tr_tally,W=B._tr_align,q=K.Z_NO_FLUSH,J=K.Z_PARTIAL_FLUSH,Q=K.Z_FULL_FLUSH,V=K.Z_FINISH,$=K.Z_BLOCK,tt=K.Z_OK,et=K.Z_STREAM_END,at=K.Z_STREAM_ERROR,nt=K.Z_DATA_ERROR,rt=K.Z_BUF_ERROR,it=K.Z_DEFAULT_COMPRESSION,st=K.Z_FILTERED,_t=K.Z_HUFFMAN_ONLY,ht=K.Z_RLE,lt=K.Z_FIXED,ot=K.Z_DEFAULT_STRATEGY,dt=K.Z_UNKNOWN,ut=K.Z_DEFLATED,ft=258,ct=262,pt=103,gt=113,wt=666,vt=function(t,e){return t.msg=Y[e],e},bt=function(t){return(t<<1)-(t>4?9:0)},mt=function(t){for(var e=t.length;--e>=0;)t[e]=0},yt=function(t,e,a){return(e<<t.hash_shift^a)&t.hash_mask},kt=function(t){var e=t.state,a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},zt=function(t,e){G(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,kt(t.strm)},xt=function(t,e){t.pending_buf[t.pending++]=e},At=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},Et=function(t,e){var a,n,r=t.max_chain_length,i=t.strstart,s=t.prev_length,_=t.nice_match,h=t.strstart>t.w_size-ct?t.strstart-(t.w_size-ct):0,l=t.window,o=t.w_mask,d=t.prev,u=t.strstart+ft,f=l[i+s-1],c=l[i+s];t.prev_length>=t.good_match&&(r>>=2),_>t.lookahead&&(_=t.lookahead);do{if(l[(a=e)+s]===c&&l[a+s-1]===f&&l[a]===l[i]&&l[++a]===l[i+1]){i+=2,a++;do{}while(l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&i<u);if(n=ft-(u-i),i=u-ft,n>s){if(t.match_start=e,s=n,n>=_)break;f=l[i+s-1],c=l[i+s]}}}while((e=d[e&o])>h&&0!=--r);return s<=t.lookahead?s:t.lookahead},Zt=function(t){var e,a,n,r,i,s,_,h,l,o,d=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=d+(d-ct)){t.window.set(t.window.subarray(d,d+d),0),t.match_start-=d,t.strstart-=d,t.block_start-=d,e=a=t.hash_size;do{n=t.head[--e],t.head[e]=n>=d?n-d:0}while(--a);e=a=d;do{n=t.prev[--e],t.prev[e]=n>=d?n-d:0}while(--a);r+=d}if(0===t.strm.avail_in)break;if(s=t.strm,_=t.window,h=t.strstart+t.lookahead,l=r,o=void 0,(o=s.avail_in)>l&&(o=l),a=0===o?0:(s.avail_in-=o,_.set(s.input.subarray(s.next_in,s.next_in+o),h),1===s.state.wrap?s.adler=C(s.adler,_,o,h):2===s.state.wrap&&(s.adler=M(s.adler,_,o,h)),s.next_in+=o,s.total_in+=o,o),t.lookahead+=a,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=yt(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=yt(t,t.ins_h,t.window[i+3-1]),t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<ct&&0!==t.strm.avail_in)},Ut=function(t,e){for(var a,n;;){if(t.lookahead<ct){if(Zt(t),t.lookahead<ct&&e===q)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-ct&&(t.match_length=Et(t,a)),t.match_length>=3)if(n=X(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=yt(t,t.ins_h,t.window[t.strstart+1]);else n=X(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2},St=function(t,e){for(var a,n,r;;){if(t.lookahead<ct){if(Zt(t),t.lookahead<ct&&e===q)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-ct&&(t.match_length=Et(t,a),t.match_length<=5&&(t.strategy===st||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-3,n=X(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=r&&(t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(zt(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=X(t,0,t.window[t.strstart-1]))&&zt(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=X(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2};function Rt(t,e,a,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=n,this.func=r}var Lt=[new Rt(0,0,0,0,(function(t,e){var a=65535;for(a>t.pending_buf_size-5&&(a=t.pending_buf_size-5);;){if(t.lookahead<=1){if(Zt(t),0===t.lookahead&&e===q)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+a;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,zt(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-ct&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(zt(t,!1),t.strm.avail_out),1)})),new Rt(4,4,8,4,Ut),new Rt(4,5,16,8,Ut),new Rt(4,6,32,32,Ut),new Rt(4,4,16,16,St),new Rt(8,16,32,32,St),new Rt(8,16,128,128,St),new Rt(8,32,128,256,St),new Rt(32,128,258,1024,St),new Rt(32,258,258,4096,St)];function Ft(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ut,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),mt(this.dyn_ltree),mt(this.dyn_dtree),mt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),mt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),mt(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var Tt=function(t){if(!t||!t.state)return vt(t,at);t.total_in=t.total_out=0,t.data_type=dt;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:gt,t.adler=2===e.wrap?0:1,e.last_flush=q,P(e),tt},It=function(t){var e,a=Tt(t);return a===tt&&((e=t.state).window_size=2*e.w_size,mt(e.head),e.max_lazy_match=Lt[e.level].max_lazy,e.good_match=Lt[e.level].good_length,e.nice_match=Lt[e.level].nice_length,e.max_chain_length=Lt[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),a},Nt=function(t,e,a,n,r,i){if(!t)return at;var s=1;if(e===it&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),r<1||r>9||a!==ut||n<8||n>15||e<0||e>9||i<0||i>lt)return vt(t,at);8===n&&(n=9);var _=new Ft;return t.state=_,_.strm=t,_.wrap=s,_.gzhead=null,_.w_bits=n,_.w_size=1<<_.w_bits,_.w_mask=_.w_size-1,_.hash_bits=r+7,_.hash_size=1<<_.hash_bits,_.hash_mask=_.hash_size-1,_.hash_shift=~~((_.hash_bits+3-1)/3),_.window=new Uint8Array(2*_.w_size),_.head=new Uint16Array(_.hash_size),_.prev=new Uint16Array(_.w_size),_.lit_bufsize=1<<r+6,_.pending_buf_size=4*_.lit_bufsize,_.pending_buf=new Uint8Array(_.pending_buf_size),_.d_buf=1*_.lit_bufsize,_.l_buf=3*_.lit_bufsize,_.level=e,_.strategy=i,_.method=a,It(t)},Ot={deflateInit:function(t,e){return Nt(t,e,ut,15,8,ot)},deflateInit2:Nt,deflateReset:It,deflateResetKeep:Tt,deflateSetHeader:function(t,e){return t&&t.state?2!==t.state.wrap?at:(t.state.gzhead=e,tt):at},deflate:function(t,e){var a,n;if(!t||!t.state||e>$||e<0)return t?vt(t,at):at;var r=t.state;if(!t.output||!t.input&&0!==t.avail_in||r.status===wt&&e!==V)return vt(t,0===t.avail_out?rt:at);r.strm=t;var i=r.last_flush;if(r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,xt(r,31),xt(r,139),xt(r,8),r.gzhead?(xt(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),xt(r,255&r.gzhead.time),xt(r,r.gzhead.time>>8&255),xt(r,r.gzhead.time>>16&255),xt(r,r.gzhead.time>>24&255),xt(r,9===r.level?2:r.strategy>=_t||r.level<2?4:0),xt(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(xt(r,255&r.gzhead.extra.length),xt(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=M(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(xt(r,0),xt(r,0),xt(r,0),xt(r,0),xt(r,0),xt(r,9===r.level?2:r.strategy>=_t||r.level<2?4:0),xt(r,3),r.status=gt);else{var s=ut+(r.w_bits-8<<4)<<8;s|=(r.strategy>=_t||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(s|=32),s+=31-s%31,r.status=gt,At(r,s),0!==r.strstart&&(At(r,t.adler>>>16),At(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(a=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),kt(t),a=r.pending,r.pending!==r.pending_buf_size));)xt(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),kt(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,xt(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),kt(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,xt(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.status=pt)}else r.status=pt;if(r.status===pt&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&kt(t),r.pending+2<=r.pending_buf_size&&(xt(r,255&t.adler),xt(r,t.adler>>8&255),t.adler=0,r.status=gt)):r.status=gt),0!==r.pending){if(kt(t),0===t.avail_out)return r.last_flush=-1,tt}else if(0===t.avail_in&&bt(e)<=bt(i)&&e!==V)return vt(t,rt);if(r.status===wt&&0!==t.avail_in)return vt(t,rt);if(0!==t.avail_in||0!==r.lookahead||e!==q&&r.status!==wt){var _=r.strategy===_t?function(t,e){for(var a;;){if(0===t.lookahead&&(Zt(t),0===t.lookahead)){if(e===q)return 1;break}if(t.match_length=0,a=X(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2}(r,e):r.strategy===ht?function(t,e){for(var a,n,r,i,s=t.window;;){if(t.lookahead<=ft){if(Zt(t),t.lookahead<=ft&&e===q)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=s[r=t.strstart-1])===s[++r]&&n===s[++r]&&n===s[++r]){i=t.strstart+ft;do{}while(n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&r<i);t.match_length=ft-(i-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=X(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=X(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2}(r,e):Lt[r.level].func(r,e);if(3!==_&&4!==_||(r.status=wt),1===_||3===_)return 0===t.avail_out&&(r.last_flush=-1),tt;if(2===_&&(e===J?W(r):e!==$&&(j(r,0,0,!1),e===Q&&(mt(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),kt(t),0===t.avail_out))return r.last_flush=-1,tt}return e!==V?tt:r.wrap<=0?et:(2===r.wrap?(xt(r,255&t.adler),xt(r,t.adler>>8&255),xt(r,t.adler>>16&255),xt(r,t.adler>>24&255),xt(r,255&t.total_in),xt(r,t.total_in>>8&255),xt(r,t.total_in>>16&255),xt(r,t.total_in>>24&255)):(At(r,t.adler>>>16),At(r,65535&t.adler)),kt(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?tt:et)},deflateEnd:function(t){if(!t||!t.state)return at;var e=t.state.status;return 42!==e&&69!==e&&73!==e&&91!==e&&e!==pt&&e!==gt&&e!==wt?vt(t,at):(t.state=null,e===gt?vt(t,nt):tt)},deflateSetDictionary:function(t,e){var a=e.length;if(!t||!t.state)return at;var n=t.state,r=n.wrap;if(2===r||1===r&&42!==n.status||n.lookahead)return at;if(1===r&&(t.adler=C(t.adler,e,a,0)),n.wrap=0,a>=n.w_size){0===r&&(mt(n.head),n.strstart=0,n.block_start=0,n.insert=0);var i=new Uint8Array(n.w_size);i.set(e.subarray(a-n.w_size,a),0),e=i,a=n.w_size}var s=t.avail_in,_=t.next_in,h=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,Zt(n);n.lookahead>=3;){var l=n.strstart,o=n.lookahead-2;do{n.ins_h=yt(n,n.ins_h,n.window[l+3-1]),n.prev[l&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=l,l++}while(--o);n.strstart=l,n.lookahead=2,Zt(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=_,t.input=h,t.avail_in=s,n.wrap=r,tt},deflateInfo:"pako deflate (from Nodeca project)"};for(var Dt=new Uint8Array(256),Bt=0;Bt<256;Bt++)Dt[Bt]=Bt>=252?6:Bt>=248?5:Bt>=240?4:Bt>=224?3:Bt>=192?2:1;Dt[254]=Dt[254]=1;var Ct=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},Ht=Object.prototype.toString,Mt=K.Z_NO_FLUSH,Yt=K.Z_SYNC_FLUSH,Kt=K.Z_FULL_FLUSH,Pt=K.Z_FINISH,jt=K.Z_OK,Gt=K.Z_STREAM_END,Xt=K.Z_DEFAULT_COMPRESSION,Wt=K.Z_DEFAULT_STRATEGY,qt=K.Z_DEFLATED;function Jt(){this.options={level:Xt,method:qt,chunkSize:16384,windowBits:15,memLevel:8,strategy:Wt};var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;var e=Ot.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(e!==jt)throw new Error(Y[e]);if(t.header&&Ot.deflateSetHeader(this.strm,t.header),t.dictionary){var a;if(a="[object ArrayBuffer]"===Ht.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(e=Ot.deflateSetDictionary(this.strm,a))!==jt)throw new Error(Y[e]);this._dict_set=!0}}function Qt(t,e,a){try{t.postMessage({type:"errored",error:e,streamId:a})}catch(n){t.postMessage({type:"errored",error:String(e),streamId:a})}}function Vt(t){var e=t.strm.adler;return new Uint8Array([3,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e])}Jt.prototype.push=function(t,e){var a,n,r=this.strm,i=this.options.chunkSize;if(this.ended)return!1;for(n=e===~~e?e:!0===e?Pt:Mt,"[object ArrayBuffer]"===Ht.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;)if(0===r.avail_out&&(r.output=new Uint8Array(i),r.next_out=0,r.avail_out=i),(n===Yt||n===Kt)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if((a=Ot.deflate(r,n))===Gt)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=Ot.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===jt;if(0!==r.avail_out){if(n>0&&r.next_out>0)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else if(0===r.avail_in)break}else this.onData(r.output)}return!0},Jt.prototype.onData=function(t){this.chunks.push(t)},Jt.prototype.onEnd=function(t){t===jt&&(this.result=function(t){for(var e=0,a=0,n=t.length;a<n;a++)e+=t[a].length;for(var r=new Uint8Array(e),i=0,s=0,_=t.length;i<_;i++){var h=t[i];r.set(h,s),s+=h.length}return r}(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},function(e){void 0===e&&(e=self);try{var a=new Map;e.addEventListener("message",(function(n){try{var r=function(e,a){switch(a.action){case"init":return{type:"initialized",version:"5.23.3"};case"write":var n=e.get(a.streamId);n||(n=new Jt,e.set(a.streamId,n));var r=n.chunks.length,i=function(t){if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);var e,a,n,r,i,s=t.length,_=0;for(r=0;r<s;r++)55296==(64512&(a=t.charCodeAt(r)))&&r+1<s&&56320==(64512&(n=t.charCodeAt(r+1)))&&(a=65536+(a-55296<<10)+(n-56320),r++),_+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(_),i=0,r=0;i<_;r++)55296==(64512&(a=t.charCodeAt(r)))&&r+1<s&&56320==(64512&(n=t.charCodeAt(r+1)))&&(a=65536+(a-55296<<10)+(n-56320),r++),a<128?e[i++]=a:a<2048?(e[i++]=192|a>>>6,e[i++]=128|63&a):a<65536?(e[i++]=224|a>>>12,e[i++]=128|a>>>6&63,e[i++]=128|63&a):(e[i++]=240|a>>>18,e[i++]=128|a>>>12&63,e[i++]=128|a>>>6&63,e[i++]=128|63&a);return e}(a.data);return n.push(i,K.Z_SYNC_FLUSH),{type:"wrote",id:a.id,streamId:a.streamId,result:t(n.chunks.slice(r)),trailer:Vt(n),additionalBytesCount:i.length};case"reset":e.delete(a.streamId)}}(a,n.data);r&&e.postMessage(r)}catch(t){Qt(e,t,n.data&&"streamId"in n.data?n.data.streamId:void 0)}}))}catch(t){Qt(e,t)}}()}();'])))}var Vs={status:0};function cWe(e,t,n,r){switch(r===void 0&&(r=lWe),Vs.status===0&&qin(e,t,r),Vs.status){case 1:return Vs.initializationFailureCallbacks.push(n),Vs.worker;case 3:return Vs.worker}}function xCe(){return Vs.status}function qin(e,t,n){n===void 0&&(n=lWe);try{var r=n(e),i=To(e,r,"error",function(s){Xq(e,t,s)}).stop,a=To(e,r,"message",function(s){var l=s.data;l.type==="errored"?Xq(e,t,l.error,l.streamId):l.type==="initialized"&&Yin(l.version)}).stop;r.postMessage({action:"init"}),Ec(function(){return Win(t)},Gin);var o=function(){i(),a()};Vs={status:1,worker:r,stop:o,initializationFailureCallbacks:[]}}catch(s){Xq(e,t,s)}}function Win(e){Vs.status===1&&(Ua.error("".concat(e," failed to start: a timeout occurred while initializing the Worker")),Vs.initializationFailureCallbacks.forEach(function(t){return t()}),Vs={status:2})}function Yin(e){Vs.status===1&&(Vs={status:3,worker:Vs.worker,stop:Vs.stop,version:e})}function Xq(e,t,n,r){if(Vs.status===1||Vs.status===0){if(Ua.error("".concat(t," failed to start: an error occurred while creating the Worker:"),n),n instanceof Event||n instanceof Error&&Kin(n.message)){var i=void 0;e.workerUrl?i="Please make sure the Worker URL ".concat(e.workerUrl," is correct and CSP is correctly configured."):i="Please make sure CSP is correctly configured.",Ua.error("".concat(i," See documentation at ").concat(jz,"/integrations/content_security_policy_logs/#use-csp-with-real-user-monitoring-and-session-replay"))}else aF(n);Vs.status===1&&Vs.initializationFailureCallbacks.forEach(function(a){return a()}),Vs={status:2}}else aF(n,{worker_version:Vs.status===3&&Vs.version,stream_id:r})}function Kin(e){return hm(e,"Content Security Policy")||hm(e,"requires 'TrustedScriptURL'")}function Xin(e,t){if(UE()&&!oqe("records")||!oWe())return{start:za,stop:za,getReplayStats:function(){},onRumStart:za,isRecording:function(){return!1},getSessionReplayLink:function(){}};var n={status:1},r=function(){n={status:1}},i=function(){n={status:0}},a=za;return{start:function(o){return r(o)},stop:function(){return i()},getSessionReplayLink:function(){return a()},onRumStart:function(o,s,l,c,u){s.startSessionReplayRecordingManually&&(n={status:0}),o.subscribe(9,function(){(n.status===2||n.status===3)&&(i(),n={status:1})}),o.subscribe(11,function(p){p.reason===T5.UNLOADING&&i()}),o.subscribe(10,function(){n.status===1&&r()});var d;function f(){return d||(u||(u=cWe(s,"Datadog Session Replay",function(){i()},t)),u&&(d=sWe(s,u,1))),d}r=function(p){var h=l.findTrackedSession();if(!h||h.sessionReplay===0&&(!p||!p.force)){n={status:1};return}n.status===2||n.status===3||(n={status:2},Bfe(s,"interactive",function(){if(n.status===2){var m=f();if(!m){n={status:0};return}var g=e(o,s,l,c,m).stop;n={status:3,stopRecording:g}}}),p&&p.force&&h.sessionReplay===0&&l.setForcedReplay())},i=function(){n.status!==0&&(n.status===3&&n.stopRecording(),n={status:0})},a=function(){return Hin(s,l,c,n.status!==0)},n.status===1&&r()},isRecording:function(){return xCe()===3&&n.status===3},getReplayStats:function(o){return xCe()===3?Drn(o):void 0}}}var Zin=Xin(Uin),oF=ven(xrn,Zin,{startDeflateWorker:cWe,createDeflateEncoder:sWe});MQt(A_(),"DD_RUM",oF);const Qin="4062225b-061c-4a6e-8b0d-3961db8d90ae",Jin="pub4a01aec08e2785e4ba5d99d328c3bede",ean="datadoghq.eu",tan="deepset-cloud",nan="prod",ran=()=>{oF.init({applicationId:Qin,clientToken:Jin,site:ean,service:tan,env:nan,sessionSampleRate:100,sessionReplaySampleRate:100,trackUserInteractions:!0,trackResources:!0,trackLongTasks:!0,defaultPrivacyLevel:"mask-user-input",trackFrustrations:!0}),oF.startSessionReplayRecording()},ian=e=>e.exception?.values?.some(t=>t.stacktrace?.frames?.some(n=>n.filename?.startsWith("chrome-extension://")))??!1;function uWe(e,t){return function(){return e.apply(t,arguments)}}const{toString:aan}=Object.prototype,{getPrototypeOf:Jfe}=Object,Xz=(e=>t=>{const n=aan.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Tm=e=>(e=e.toLowerCase(),t=>Xz(t)===e),Zz=e=>t=>typeof t===e,{isArray:kT}=Array,GN=Zz("undefined");function oan(e){return e!==null&&!GN(e)&&e.constructor!==null&&!GN(e.constructor)&&wf(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const dWe=Tm("ArrayBuffer");function san(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&dWe(e.buffer),t}const lan=Zz("string"),wf=Zz("function"),fWe=Zz("number"),Qz=e=>e!==null&&typeof e=="object",can=e=>e===!0||e===!1,d7=e=>{if(Xz(e)!=="object")return!1;const t=Jfe(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},uan=Tm("Date"),dan=Tm("File"),fan=Tm("Blob"),pan=Tm("FileList"),han=e=>Qz(e)&&wf(e.pipe),man=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||wf(e.append)&&((t=Xz(e))==="formdata"||t==="object"&&wf(e.toString)&&e.toString()==="[object FormData]"))},gan=Tm("URLSearchParams"),[van,yan,ban,_an]=["ReadableStream","Request","Response","Headers"].map(Tm),San=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function VO(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),kT(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const a=n?Object.getOwnPropertyNames(e):Object.keys(e),o=a.length;let s;for(r=0;r<o;r++)s=a[r],t.call(null,e[s],s,e)}}function pWe(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const US=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,hWe=e=>!GN(e)&&e!==US;function Yie(){const{caseless:e}=hWe(this)&&this||{},t={},n=(r,i)=>{const a=e&&pWe(t,i)||i;d7(t[a])&&d7(r)?t[a]=Yie(t[a],r):d7(r)?t[a]=Yie({},r):kT(r)?t[a]=r.slice():t[a]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&VO(arguments[r],n);return t}const Ean=(e,t,n,{allOwnKeys:r}={})=>(VO(t,(i,a)=>{n&&wf(i)?e[a]=uWe(i,n):e[a]=i},{allOwnKeys:r}),e),Can=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),wan=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},xan=(e,t,n,r)=>{let i,a,o;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&Jfe(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Tan=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Ian=e=>{if(!e)return null;if(kT(e))return e;let t=e.length;if(!fWe(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Aan=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Jfe(Uint8Array)),Ran=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const a=i.value;t.call(e,a[0],a[1])}},Nan=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Oan=Tm("HTMLFormElement"),Lan=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),TCe=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Pan=Tm("RegExp"),mWe=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};VO(n,(i,a)=>{let o;(o=t(i,a,e))!==!1&&(r[a]=o||i)}),Object.defineProperties(e,r)},kan=e=>{mWe(e,(t,n)=>{if(wf(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(wf(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Man=(e,t)=>{const n={},r=i=>{i.forEach(a=>{n[a]=!0})};return kT(e)?r(e):r(String(e).split(t)),n},Dan=()=>{},$an=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Zq="abcdefghijklmnopqrstuvwxyz",ICe="0123456789",gWe={DIGIT:ICe,ALPHA:Zq,ALPHA_DIGIT:Zq+Zq.toUpperCase()+ICe},Fan=(e=16,t=gWe.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Ban(e){return!!(e&&wf(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const jan=e=>{const t=new Array(10),n=(r,i)=>{if(Qz(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const a=kT(r)?[]:{};return VO(r,(o,s)=>{const l=n(o,i+1);!GN(l)&&(a[s]=l)}),t[i]=void 0,a}}return r};return n(e,0)},zan=Tm("AsyncFunction"),Uan=e=>e&&(Qz(e)||wf(e))&&wf(e.then)&&wf(e.catch),vWe=((e,t)=>e?setImmediate:t?((n,r)=>(US.addEventListener("message",({source:i,data:a})=>{i===US&&a===n&&r.length&&r.shift()()},!1),i=>{r.push(i),US.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",wf(US.postMessage)),Han=typeof queueMicrotask<"u"?queueMicrotask.bind(US):typeof process<"u"&&process.nextTick||vWe,Xt={isArray:kT,isArrayBuffer:dWe,isBuffer:oan,isFormData:man,isArrayBufferView:san,isString:lan,isNumber:fWe,isBoolean:can,isObject:Qz,isPlainObject:d7,isReadableStream:van,isRequest:yan,isResponse:ban,isHeaders:_an,isUndefined:GN,isDate:uan,isFile:dan,isBlob:fan,isRegExp:Pan,isFunction:wf,isStream:han,isURLSearchParams:gan,isTypedArray:Aan,isFileList:pan,forEach:VO,merge:Yie,extend:Ean,trim:San,stripBOM:Can,inherits:wan,toFlatObject:xan,kindOf:Xz,kindOfTest:Tm,endsWith:Tan,toArray:Ian,forEachEntry:Ran,matchAll:Nan,isHTMLForm:Oan,hasOwnProperty:TCe,hasOwnProp:TCe,reduceDescriptors:mWe,freezeMethods:kan,toObjectSet:Man,toCamelCase:Lan,noop:Dan,toFiniteNumber:$an,findKey:pWe,global:US,isContextDefined:hWe,ALPHABET:gWe,generateString:Fan,isSpecCompliantForm:Ban,toJSONObject:jan,isAsyncFn:zan,isThenable:Uan,setImmediate:vWe,asap:Han};function vi(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}Xt.inherits(vi,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Xt.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const yWe=vi.prototype,bWe={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{bWe[e]={value:e}});Object.defineProperties(vi,bWe);Object.defineProperty(yWe,"isAxiosError",{value:!0});vi.from=(e,t,n,r,i,a)=>{const o=Object.create(yWe);return Xt.toFlatObject(e,o,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),vi.call(o,e.message,t,n,r,i),o.cause=e,o.name=e.name,a&&Object.assign(o,a),o};const Van=null;function Kie(e){return Xt.isPlainObject(e)||Xt.isArray(e)}function _We(e){return Xt.endsWith(e,"[]")?e.slice(0,-2):e}function ACe(e,t,n){return e?e.concat(t).map(function(i,a){return i=_We(i),!n&&a?"["+i+"]":i}).join(n?".":""):t}function Gan(e){return Xt.isArray(e)&&!e.some(Kie)}const qan=Xt.toFlatObject(Xt,{},null,function(t){return/^is[A-Z]/.test(t)});function Jz(e,t,n){if(!Xt.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Xt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,g){return!Xt.isUndefined(g[m])});const r=n.metaTokens,i=n.visitor||u,a=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&Xt.isSpecCompliantForm(t);if(!Xt.isFunction(i))throw new TypeError("visitor must be a function");function c(h){if(h===null)return"";if(Xt.isDate(h))return h.toISOString();if(!l&&Xt.isBlob(h))throw new vi("Blob is not supported. Use a Buffer instead.");return Xt.isArrayBuffer(h)||Xt.isTypedArray(h)?l&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function u(h,m,g){let v=h;if(h&&!g&&typeof h=="object"){if(Xt.endsWith(m,"{}"))m=r?m:m.slice(0,-2),h=JSON.stringify(h);else if(Xt.isArray(h)&&Gan(h)||(Xt.isFileList(h)||Xt.endsWith(m,"[]"))&&(v=Xt.toArray(h)))return m=_We(m),v.forEach(function(_,S){!(Xt.isUndefined(_)||_===null)&&t.append(o===!0?ACe([m],S,a):o===null?m:m+"[]",c(_))}),!1}return Kie(h)?!0:(t.append(ACe(g,m,a),c(h)),!1)}const d=[],f=Object.assign(qan,{defaultVisitor:u,convertValue:c,isVisitable:Kie});function p(h,m){if(!Xt.isUndefined(h)){if(d.indexOf(h)!==-1)throw Error("Circular reference detected in "+m.join("."));d.push(h),Xt.forEach(h,function(v,y){(!(Xt.isUndefined(v)||v===null)&&i.call(t,v,Xt.isString(y)?y.trim():y,m,f))===!0&&p(v,m?m.concat(y):[y])}),d.pop()}}if(!Xt.isObject(e))throw new TypeError("data must be an object");return p(e),t}function RCe(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function epe(e,t){this._pairs=[],e&&Jz(e,this,t)}const SWe=epe.prototype;SWe.append=function(t,n){this._pairs.push([t,n])};SWe.toString=function(t){const n=t?function(r){return t.call(this,r,RCe)}:RCe;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function Wan(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function EWe(e,t,n){if(!t)return e;const r=n&&n.encode||Wan,i=n&&n.serialize;let a;if(i?a=i(t,n):a=Xt.isURLSearchParams(t)?t.toString():new epe(t,n).toString(r),a){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class NCe{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Xt.forEach(this.handlers,function(r){r!==null&&t(r)})}}const CWe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Yan=typeof URLSearchParams<"u"?URLSearchParams:epe,Kan=typeof FormData<"u"?FormData:null,Xan=typeof Blob<"u"?Blob:null,Zan={isBrowser:!0,classes:{URLSearchParams:Yan,FormData:Kan,Blob:Xan},protocols:["http","https","file","blob","url","data"]},tpe=typeof window<"u"&&typeof document<"u",Qan=(e=>tpe&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Jan=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",eon=tpe&&window.location.href||"http://localhost",ton=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:tpe,hasStandardBrowserEnv:Qan,hasStandardBrowserWebWorkerEnv:Jan,origin:eon},Symbol.toStringTag,{value:"Module"})),nm={...ton,...Zan};function non(e,t){return Jz(e,new nm.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,a){return nm.isNode&&Xt.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function ron(e){return Xt.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function ion(e){const t={},n=Object.keys(e);let r;const i=n.length;let a;for(r=0;r<i;r++)a=n[r],t[a]=e[a];return t}function wWe(e){function t(n,r,i,a){let o=n[a++];if(o==="__proto__")return!0;const s=Number.isFinite(+o),l=a>=n.length;return o=!o&&Xt.isArray(i)?i.length:o,l?(Xt.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!s):((!i[o]||!Xt.isObject(i[o]))&&(i[o]=[]),t(n,r,i[o],a)&&Xt.isArray(i[o])&&(i[o]=ion(i[o])),!s)}if(Xt.isFormData(e)&&Xt.isFunction(e.entries)){const n={};return Xt.forEachEntry(e,(r,i)=>{t(ron(r),i,n,0)}),n}return null}function aon(e,t,n){if(Xt.isString(e))try{return(t||JSON.parse)(e),Xt.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const GO={transitional:CWe,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,a=Xt.isObject(t);if(a&&Xt.isHTMLForm(t)&&(t=new FormData(t)),Xt.isFormData(t))return i?JSON.stringify(wWe(t)):t;if(Xt.isArrayBuffer(t)||Xt.isBuffer(t)||Xt.isStream(t)||Xt.isFile(t)||Xt.isBlob(t)||Xt.isReadableStream(t))return t;if(Xt.isArrayBufferView(t))return t.buffer;if(Xt.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return non(t,this.formSerializer).toString();if((s=Xt.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Jz(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return a||i?(n.setContentType("application/json",!1),aon(t)):t}],transformResponse:[function(t){const n=this.transitional||GO.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(Xt.isResponse(t)||Xt.isReadableStream(t))return t;if(t&&Xt.isString(t)&&(r&&!this.responseType||i)){const o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(o)throw s.name==="SyntaxError"?vi.from(s,vi.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:nm.classes.FormData,Blob:nm.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Xt.forEach(["delete","get","head","post","put","patch"],e=>{GO.headers[e]={}});const oon=Xt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),son=e=>{const t={};let n,r,i;return e&&e.split(`
`).forEach(function(o){i=o.indexOf(":"),n=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim(),!(!n||t[n]&&oon[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},OCe=Symbol("internals");function nI(e){return e&&String(e).trim().toLowerCase()}function f7(e){return e===!1||e==null?e:Xt.isArray(e)?e.map(f7):String(e)}function lon(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const con=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Qq(e,t,n,r,i){if(Xt.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!Xt.isString(t)){if(Xt.isString(r))return t.indexOf(r)!==-1;if(Xt.isRegExp(r))return r.test(t)}}function uon(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function don(e,t){const n=Xt.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,a,o){return this[r].call(this,t,i,a,o)},configurable:!0})})}let wd=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function a(s,l,c){const u=nI(l);if(!u)throw new Error("header name must be a non-empty string");const d=Xt.findKey(i,u);(!d||i[d]===void 0||c===!0||c===void 0&&i[d]!==!1)&&(i[d||l]=f7(s))}const o=(s,l)=>Xt.forEach(s,(c,u)=>a(c,u,l));if(Xt.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(Xt.isString(t)&&(t=t.trim())&&!con(t))o(son(t),n);else if(Xt.isHeaders(t))for(const[s,l]of t.entries())a(l,s,r);else t!=null&&a(n,t,r);return this}get(t,n){if(t=nI(t),t){const r=Xt.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return lon(i);if(Xt.isFunction(n))return n.call(this,i,r);if(Xt.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=nI(t),t){const r=Xt.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Qq(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function a(o){if(o=nI(o),o){const s=Xt.findKey(r,o);s&&(!n||Qq(r,r[s],s,n))&&(delete r[s],i=!0)}}return Xt.isArray(t)?t.forEach(a):a(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const a=n[r];(!t||Qq(this,this[a],a,t,!0))&&(delete this[a],i=!0)}return i}normalize(t){const n=this,r={};return Xt.forEach(this,(i,a)=>{const o=Xt.findKey(r,a);if(o){n[o]=f7(i),delete n[a];return}const s=t?uon(a):String(a).trim();s!==a&&delete n[a],n[s]=f7(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Xt.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&Xt.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[OCe]=this[OCe]={accessors:{}}).accessors,i=this.prototype;function a(o){const s=nI(o);r[s]||(don(i,o),r[s]=!0)}return Xt.isArray(t)?t.forEach(a):a(t),this}};wd.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Xt.reduceDescriptors(wd.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Xt.freezeMethods(wd);function Jq(e,t){const n=this||GO,r=t||n,i=wd.from(r.headers);let a=r.data;return Xt.forEach(e,function(s){a=s.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function xWe(e){return!!(e&&e.__CANCEL__)}function MT(e,t,n){vi.call(this,e??"canceled",vi.ERR_CANCELED,t,n),this.name="CanceledError"}Xt.inherits(MT,vi,{__CANCEL__:!0});function TWe(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new vi("Request failed with status code "+n.status,[vi.ERR_BAD_REQUEST,vi.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function fon(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function pon(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,a=0,o;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[a];o||(o=c),n[i]=l,r[i]=c;let d=a,f=0;for(;d!==i;)f+=n[d++],d=d%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;const p=u&&c-u;return p?Math.round(f*1e3/p):void 0}}function hon(e,t){let n=0,r=1e3/t,i,a;const o=(c,u=Date.now())=>{n=u,i=null,a&&(clearTimeout(a),a=null),e.apply(null,c)};return[(...c)=>{const u=Date.now(),d=u-n;d>=r?o(c,u):(i=c,a||(a=setTimeout(()=>{a=null,o(i)},r-d)))},()=>i&&o(i)]}const sF=(e,t,n=3)=>{let r=0;const i=pon(50,250);return hon(a=>{const o=a.loaded,s=a.lengthComputable?a.total:void 0,l=o-r,c=i(l),u=o<=s;r=o;const d={loaded:o,total:s,progress:s?o/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&u?(s-o)/c:void 0,event:a,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(d)},n)},LCe=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},PCe=e=>(...t)=>Xt.asap(()=>e(...t)),mon=nm.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(a){let o=a;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(o){const s=Xt.isString(o)?i(o):o;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}(),gon=nm.hasStandardBrowserEnv?{write(e,t,n,r,i,a){const o=[e+"="+encodeURIComponent(t)];Xt.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),Xt.isString(r)&&o.push("path="+r),Xt.isString(i)&&o.push("domain="+i),a===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function von(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function yon(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function IWe(e,t){return e&&!von(t)?yon(e,t):t}const kCe=e=>e instanceof wd?{...e}:e;function VE(e,t){t=t||{};const n={};function r(c,u,d){return Xt.isPlainObject(c)&&Xt.isPlainObject(u)?Xt.merge.call({caseless:d},c,u):Xt.isPlainObject(u)?Xt.merge({},u):Xt.isArray(u)?u.slice():u}function i(c,u,d){if(Xt.isUndefined(u)){if(!Xt.isUndefined(c))return r(void 0,c,d)}else return r(c,u,d)}function a(c,u){if(!Xt.isUndefined(u))return r(void 0,u)}function o(c,u){if(Xt.isUndefined(u)){if(!Xt.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function s(c,u,d){if(d in t)return r(c,u);if(d in e)return r(void 0,c)}const l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(c,u)=>i(kCe(c),kCe(u),!0)};return Xt.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=l[u]||i,f=d(e[u],t[u],u);Xt.isUndefined(f)&&d!==s||(n[u]=f)}),n}const AWe=e=>{const t=VE({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:a,headers:o,auth:s}=t;t.headers=o=wd.from(o),t.url=EWe(IWe(t.baseURL,t.url),e.params,e.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(Xt.isFormData(n)){if(nm.hasStandardBrowserEnv||nm.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((l=o.getContentType())!==!1){const[c,...u]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];o.setContentType([c||"multipart/form-data",...u].join("; "))}}if(nm.hasStandardBrowserEnv&&(r&&Xt.isFunction(r)&&(r=r(t)),r||r!==!1&&mon(t.url))){const c=i&&a&&gon.read(a);c&&o.set(i,c)}return t},bon=typeof XMLHttpRequest<"u",_on=bon&&function(e){return new Promise(function(n,r){const i=AWe(e);let a=i.data;const o=wd.from(i.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:c}=i,u,d,f,p,h;function m(){p&&p(),h&&h(),i.cancelToken&&i.cancelToken.unsubscribe(u),i.signal&&i.signal.removeEventListener("abort",u)}let g=new XMLHttpRequest;g.open(i.method.toUpperCase(),i.url,!0),g.timeout=i.timeout;function v(){if(!g)return;const _=wd.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),C={data:!s||s==="text"||s==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:_,config:e,request:g};TWe(function(x){n(x),m()},function(x){r(x),m()},C),g=null}"onloadend"in g?g.onloadend=v:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(v)},g.onabort=function(){g&&(r(new vi("Request aborted",vi.ECONNABORTED,e,g)),g=null)},g.onerror=function(){r(new vi("Network Error",vi.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let S=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const C=i.transitional||CWe;i.timeoutErrorMessage&&(S=i.timeoutErrorMessage),r(new vi(S,C.clarifyTimeoutError?vi.ETIMEDOUT:vi.ECONNABORTED,e,g)),g=null},a===void 0&&o.setContentType(null),"setRequestHeader"in g&&Xt.forEach(o.toJSON(),function(S,C){g.setRequestHeader(C,S)}),Xt.isUndefined(i.withCredentials)||(g.withCredentials=!!i.withCredentials),s&&s!=="json"&&(g.responseType=i.responseType),c&&([f,h]=sF(c,!0),g.addEventListener("progress",f)),l&&g.upload&&([d,p]=sF(l),g.upload.addEventListener("progress",d),g.upload.addEventListener("loadend",p)),(i.cancelToken||i.signal)&&(u=_=>{g&&(r(!_||_.type?new MT(null,e,g):_),g.abort(),g=null)},i.cancelToken&&i.cancelToken.subscribe(u),i.signal&&(i.signal.aborted?u():i.signal.addEventListener("abort",u)));const y=fon(i.url);if(y&&nm.protocols.indexOf(y)===-1){r(new vi("Unsupported protocol "+y+":",vi.ERR_BAD_REQUEST,e));return}g.send(a||null)})},Son=(e,t)=>{let n=new AbortController,r;const i=function(l){if(!r){r=!0,o();const c=l instanceof Error?l:this.reason;n.abort(c instanceof vi?c:new MT(c instanceof Error?c.message:c))}};let a=t&&setTimeout(()=>{i(new vi(`timeout ${t} of ms exceeded`,vi.ETIMEDOUT))},t);const o=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(l=>{l&&(l.removeEventListener?l.removeEventListener("abort",i):l.unsubscribe(i))}),e=null)};e.forEach(l=>l&&l.addEventListener&&l.addEventListener("abort",i));const{signal:s}=n;return s.unsubscribe=o,[s,()=>{a&&clearTimeout(a),a=null}]},Eon=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},Con=async function*(e,t,n){for await(const r of e)yield*Eon(ArrayBuffer.isView(r)?r:await n(String(r)),t)},MCe=(e,t,n,r,i)=>{const a=Con(e,t,i);let o=0,s,l=c=>{s||(s=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:u,value:d}=await a.next();if(u){l(),c.close();return}let f=d.byteLength;if(n){let p=o+=f;n(p)}c.enqueue(new Uint8Array(d))}catch(u){throw l(u),u}},cancel(c){return l(c),a.return()}},{highWaterMark:2})},eU=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",RWe=eU&&typeof ReadableStream=="function",Xie=eU&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),NWe=(e,...t)=>{try{return!!e(...t)}catch{return!1}},won=RWe&&NWe(()=>{let e=!1;const t=new Request(nm.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),DCe=64*1024,Zie=RWe&&NWe(()=>Xt.isReadableStream(new Response("").body)),lF={stream:Zie&&(e=>e.body)};eU&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!lF[t]&&(lF[t]=Xt.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new vi(`Response type '${t}' is not supported`,vi.ERR_NOT_SUPPORT,r)})})})(new Response);const xon=async e=>{if(e==null)return 0;if(Xt.isBlob(e))return e.size;if(Xt.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(Xt.isArrayBufferView(e)||Xt.isArrayBuffer(e))return e.byteLength;if(Xt.isURLSearchParams(e)&&(e=e+""),Xt.isString(e))return(await Xie(e)).byteLength},Ton=async(e,t)=>{const n=Xt.toFiniteNumber(e.getContentLength());return n??xon(t)},Ion=eU&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:a,timeout:o,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:f}=AWe(e);c=c?(c+"").toLowerCase():"text";let[p,h]=i||a||o?Son([i,a],o):[],m,g;const v=()=>{!m&&setTimeout(()=>{p&&p.unsubscribe()}),m=!0};let y;try{if(l&&won&&n!=="get"&&n!=="head"&&(y=await Ton(u,r))!==0){let w=new Request(t,{method:"POST",body:r,duplex:"half"}),x;if(Xt.isFormData(r)&&(x=w.headers.get("content-type"))&&u.setContentType(x),w.body){const[T,A]=LCe(y,sF(PCe(l)));r=MCe(w.body,DCe,T,A,Xie)}}Xt.isString(d)||(d=d?"include":"omit"),g=new Request(t,{...f,signal:p,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:d});let _=await fetch(g);const S=Zie&&(c==="stream"||c==="response");if(Zie&&(s||S)){const w={};["status","statusText","headers"].forEach(I=>{w[I]=_[I]});const x=Xt.toFiniteNumber(_.headers.get("content-length")),[T,A]=s&&LCe(x,sF(PCe(s),!0))||[];_=new Response(MCe(_.body,DCe,T,()=>{A&&A(),S&&v()},Xie),w)}c=c||"text";let C=await lF[Xt.findKey(lF,c)||"text"](_,e);return!S&&v(),h&&h(),await new Promise((w,x)=>{TWe(w,x,{data:C,headers:wd.from(_.headers),status:_.status,statusText:_.statusText,config:e,request:g})})}catch(_){throw v(),_&&_.name==="TypeError"&&/fetch/i.test(_.message)?Object.assign(new vi("Network Error",vi.ERR_NETWORK,e,g),{cause:_.cause||_}):vi.from(_,_&&_.code,e,g)}}),Qie={http:Van,xhr:_on,fetch:Ion};Xt.forEach(Qie,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const $Ce=e=>`- ${e}`,Aon=e=>Xt.isFunction(e)||e===null||e===!1,OWe={getAdapter:e=>{e=Xt.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let a=0;a<t;a++){n=e[a];let o;if(r=n,!Aon(n)&&(r=Qie[(o=String(n)).toLowerCase()],r===void 0))throw new vi(`Unknown adapter '${o}'`);if(r)break;i[o||"#"+a]=r}if(!r){const a=Object.entries(i).map(([s,l])=>`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=t?a.length>1?`since :
`+a.map($Ce).join(`
`):" "+$Ce(a[0]):"as no adapter specified";throw new vi("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:Qie};function eW(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new MT(null,e)}function FCe(e){return eW(e),e.headers=wd.from(e.headers),e.data=Jq.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),OWe.getAdapter(e.adapter||GO.adapter)(e).then(function(r){return eW(e),r.data=Jq.call(e,e.transformResponse,r),r.headers=wd.from(r.headers),r},function(r){return xWe(r)||(eW(e),r&&r.response&&(r.response.data=Jq.call(e,e.transformResponse,r.response),r.response.headers=wd.from(r.response.headers))),Promise.reject(r)})}const LWe="1.7.4",npe={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{npe[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const BCe={};npe.transitional=function(t,n,r){function i(a,o){return"[Axios v"+LWe+"] Transitional option '"+a+"'"+o+(r?". "+r:"")}return(a,o,s)=>{if(t===!1)throw new vi(i(o," has been removed"+(n?" in "+n:"")),vi.ERR_DEPRECATED);return n&&!BCe[o]&&(BCe[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,o,s):!0}};function Ron(e,t,n){if(typeof e!="object")throw new vi("options must be an object",vi.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const a=r[i],o=t[a];if(o){const s=e[a],l=s===void 0||o(s,a,e);if(l!==!0)throw new vi("option "+a+" must be "+l,vi.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new vi("Unknown option "+a,vi.ERR_BAD_OPTION)}}const Jie={assertOptions:Ron,validators:npe},sy=Jie.validators;let uE=class{constructor(t){this.defaults=t,this.interceptors={request:new NCe,response:new NCe}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const a=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=`
`+a):r.stack=a}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=VE(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:a}=n;r!==void 0&&Jie.assertOptions(r,{silentJSONParsing:sy.transitional(sy.boolean),forcedJSONParsing:sy.transitional(sy.boolean),clarifyTimeoutError:sy.transitional(sy.boolean)},!1),i!=null&&(Xt.isFunction(i)?n.paramsSerializer={serialize:i}:Jie.assertOptions(i,{encode:sy.function,serialize:sy.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=a&&Xt.merge(a.common,a[n.method]);a&&Xt.forEach(["delete","get","head","post","put","patch","common"],h=>{delete a[h]}),n.headers=wd.concat(o,a);const s=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(l=l&&m.synchronous,s.unshift(m.fulfilled,m.rejected))});const c=[];this.interceptors.response.forEach(function(m){c.push(m.fulfilled,m.rejected)});let u,d=0,f;if(!l){const h=[FCe.bind(this),void 0];for(h.unshift.apply(h,s),h.push.apply(h,c),f=h.length,u=Promise.resolve(n);d<f;)u=u.then(h[d++],h[d++]);return u}f=s.length;let p=n;for(d=0;d<f;){const h=s[d++],m=s[d++];try{p=h(p)}catch(g){m.call(this,g);break}}try{u=FCe.call(this,p)}catch(h){return Promise.reject(h)}for(d=0,f=c.length;d<f;)u=u.then(c[d++],c[d++]);return u}getUri(t){t=VE(this.defaults,t);const n=IWe(t.baseURL,t.url);return EWe(n,t.params,t.paramsSerializer)}};Xt.forEach(["delete","get","head","options"],function(t){uE.prototype[t]=function(n,r){return this.request(VE(r||{},{method:t,url:n,data:(r||{}).data}))}});Xt.forEach(["post","put","patch"],function(t){function n(r){return function(a,o,s){return this.request(VE(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}uE.prototype[t]=n(),uE.prototype[t+"Form"]=n(!0)});let Non=class PWe{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const r=this;this.promise.then(i=>{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](i);r._listeners=null}),this.promise.then=i=>{let a;const o=new Promise(s=>{r.subscribe(s),a=s}).then(i);return o.cancel=function(){r.unsubscribe(a)},o},t(function(a,o,s){r.reason||(r.reason=new MT(a,o,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new PWe(function(i){t=i}),cancel:t}}};function Oon(e){return function(n){return e.apply(null,n)}}function Lon(e){return Xt.isObject(e)&&e.isAxiosError===!0}const eae={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(eae).forEach(([e,t])=>{eae[t]=e});function kWe(e){const t=new uE(e),n=uWe(uE.prototype.request,t);return Xt.extend(n,uE.prototype,t,{allOwnKeys:!0}),Xt.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return kWe(VE(e,i))},n}const os=kWe(GO);os.Axios=uE;os.CanceledError=MT;os.CancelToken=Non;os.isCancel=xWe;os.VERSION=LWe;os.toFormData=Jz;os.AxiosError=vi;os.Cancel=os.CanceledError;os.all=function(t){return Promise.all(t)};os.spread=Oon;os.isAxiosError=Lon;os.mergeConfig=VE;os.AxiosHeaders=wd;os.formToJSON=e=>wWe(Xt.isHTMLForm(e)?new FormData(e):e);os.getAdapter=OWe.getAdapter;os.HttpStatusCode=eae;os.default=os;const{Axios:jNr,AxiosError:zNr,CanceledError:rpe,isCancel:UNr,CancelToken:HNr,VERSION:VNr,all:GNr,Cancel:qNr,isAxiosError:WNr,spread:YNr,toFormData:KNr,AxiosHeaders:XNr,HttpStatusCode:ZNr,formToJSON:QNr,getAdapter:JNr,mergeConfig:e6r}=os;var cF={exports:{}};/**
 * @license
 * Lodash <https://lodash.com/>
 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
 * Released under MIT license <https://lodash.com/license>
 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
 */cF.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",s="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",c=500,u="__lodash_placeholder__",d=1,f=2,p=4,h=1,m=2,g=1,v=2,y=4,_=8,S=16,C=32,w=64,x=128,T=256,A=512,I=30,R="...",N=800,P=16,L=1,$=2,D=3,z=1/0,U=9007199254740991,H=17976931348623157e292,M=NaN,B=4294967295,k=B-1,F=B>>>1,G=[["ary",x],["bind",g],["bindKey",v],["curry",_],["curryRight",S],["flip",A],["partial",C],["partialRight",w],["rearg",T]],q="[object Arguments]",W="[object Array]",K="[object AsyncFunction]",J="[object Boolean]",te="[object Date]",ae="[object DOMException]",re="[object Error]",ue="[object Function]",de="[object GeneratorFunction]",fe="[object Map]",ge="[object Number]",oe="[object Null]",Ee="[object Object]",ce="[object Promise]",he="[object Proxy]",ye="[object RegExp]",me="[object Set]",_e="[object String]",Te="[object Symbol]",xe="[object Undefined]",De="[object WeakMap]",Pe="[object WeakSet]",Le="[object ArrayBuffer]",ze="[object DataView]",Be="[object Float32Array]",je="[object Float64Array]",Ye="[object Int8Array]",Ze="[object Int16Array]",Ke="[object Int32Array]",qe="[object Uint8Array]",nt="[object Uint8ClampedArray]",Qe="[object Uint16Array]",it="[object Uint32Array]",yt=/\b__p \+= '';/g,Wt=/\b(__p \+=) '' \+/g,Mt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,tn=/&(?:amp|lt|gt|quot|#39);/g,Rt=/[&<>"']/g,Dt=RegExp(tn.source),Pt=RegExp(Rt.source),Ot=/<%-([\s\S]+?)%>/g,sn=/<%([\s\S]+?)%>/g,Jt=/<%=([\s\S]+?)%>/g,Vt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,pt=/^\w*$/,tt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,dt=/[\\^$.*+?()[\]{}|]/g,Et=RegExp(dt.source),St=/^\s+/,zt=/\s/,nn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,wn=/\{\n\/\* \[wrapped with (.+)\] \*/,kn=/,? & /,fn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,an=/[()=,{}\[\]\/\s]/,Ht=/\\(\\)?/g,mn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Tn=/\w*$/,An=/^[-+]0x[0-9a-f]+$/i,nr=/^0b[01]+$/i,un=/^\[object .+?Constructor\]$/,et=/^0o[0-7]+$/i,Ct=/^(?:0|[1-9]\d*)$/,Q=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Y=/($^)/,ee=/['\n\r\u2028\u2029\\]/g,le="\\ud800-\\udfff",Se="\\u0300-\\u036f",Ae="\\ufe20-\\ufe2f",He="\\u20d0-\\u20ff",at=Se+Ae+He,wt="\\u2700-\\u27bf",ft="a-z\\xdf-\\xf6\\xf8-\\xff",Lt="\\xac\\xb1\\xd7\\xf7",kt="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Gt="\\u2000-\\u206f",ln=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",_n="A-Z\\xc0-\\xd6\\xd8-\\xde",Fn="\\ufe0e\\ufe0f",ur=Lt+kt+Gt+ln,Vr="['’]",ni="["+le+"]",fr="["+ur+"]",Un="["+at+"]",hr="\\d+",Jn="["+wt+"]",lr="["+ft+"]",On="[^"+le+ur+hr+wt+ft+_n+"]",Mn="\\ud83c[\\udffb-\\udfff]",ri="(?:"+Un+"|"+Mn+")",Gi="[^"+le+"]",ma="(?:\\ud83c[\\udde6-\\uddff]){2}",Oa="[\\ud800-\\udbff][\\udc00-\\udfff]",La="["+_n+"]",rr="\\u200d",dr="(?:"+lr+"|"+On+")",xn="(?:"+La+"|"+On+")",Yn="(?:"+Vr+"(?:d|ll|m|re|s|t|ve))?",ui="(?:"+Vr+"(?:D|LL|M|RE|S|T|VE))?",Va=ri+"?",Sa="["+Fn+"]?",Ea="(?:"+rr+"(?:"+[Gi,ma,Oa].join("|")+")"+Sa+Va+")*",Ml="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Dl="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",mr=Sa+Va+Ea,Ud="(?:"+[Jn,ma,Oa].join("|")+")"+mr,Iv="(?:"+[Gi+Un+"?",Un,ma,Oa,ni].join("|")+")",Kn=RegExp(Vr,"g"),Ir=RegExp(Un,"g"),Ca=RegExp(Mn+"(?="+Mn+")|"+Iv+mr,"g"),eo=RegExp([La+"?"+lr+"+"+Yn+"(?="+[fr,La,"$"].join("|")+")",xn+"+"+ui+"(?="+[fr,La+dr,"$"].join("|")+")",La+"?"+dr+"+"+Yn,La+"+"+ui,Dl,Ml,hr,Ud].join("|"),"g"),Pa=RegExp("["+rr+le+at+Fn+"]"),Mm=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Av=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],T0=-1,qi={};qi[Be]=qi[je]=qi[Ye]=qi[Ze]=qi[Ke]=qi[qe]=qi[nt]=qi[Qe]=qi[it]=!0,qi[q]=qi[W]=qi[Le]=qi[J]=qi[ze]=qi[te]=qi[re]=qi[ue]=qi[fe]=qi[ge]=qi[Ee]=qi[ye]=qi[me]=qi[_e]=qi[De]=!1;var ia={};ia[q]=ia[W]=ia[Le]=ia[ze]=ia[J]=ia[te]=ia[Be]=ia[je]=ia[Ye]=ia[Ze]=ia[Ke]=ia[fe]=ia[ge]=ia[Ee]=ia[ye]=ia[me]=ia[_e]=ia[Te]=ia[qe]=ia[nt]=ia[Qe]=ia[it]=!0,ia[re]=ia[ue]=ia[De]=!1;var Dm={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",Ĳ:"IJ",ĳ:"ij",Œ:"Oe",œ:"oe",ŉ:"'n",ſ:"s"},f4={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Rv={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},q_={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},I0=parseFloat,jC=parseInt,W_=typeof ns=="object"&&ns&&ns.Object===Object&&ns,zC=typeof self=="object"&&self&&self.Object===Object&&self,bs=W_||zC||Function("return this")(),Hd=t&&!t.nodeType&&t,Rc=Hd&&!0&&e&&!e.nodeType&&e,UC=Rc&&Rc.exports===Hd,jf=UC&&W_.process,Wo=function(){try{var bt=Rc&&Rc.require&&Rc.require("util").types;return bt||jf&&jf.binding&&jf.binding("util")}catch{}}(),A0=Wo&&Wo.isArrayBuffer,$m=Wo&&Wo.isDate,HC=Wo&&Wo.isMap,Nv=Wo&&Wo.isRegExp,VC=Wo&&Wo.isSet,R0=Wo&&Wo.isTypedArray;function El(bt,Zt,jt){switch(jt.length){case 0:return bt.call(Zt);case 1:return bt.call(Zt,jt[0]);case 2:return bt.call(Zt,jt[0],jt[1]);case 3:return bt.call(Zt,jt[0],jt[1],jt[2])}return bt.apply(Zt,jt)}function GC(bt,Zt,jt,Gn){for(var Sr=-1,yi=bt==null?0:bt.length;++Sr<yi;){var po=bt[Sr];Zt(Gn,po,jt(po),bt)}return Gn}function Cl(bt,Zt){for(var jt=-1,Gn=bt==null?0:bt.length;++jt<Gn&&Zt(bt[jt],jt,bt)!==!1;);return bt}function Y_(bt,Zt){for(var jt=bt==null?0:bt.length;jt--&&Zt(bt[jt],jt,bt)!==!1;);return bt}function N0(bt,Zt){for(var jt=-1,Gn=bt==null?0:bt.length;++jt<Gn;)if(!Zt(bt[jt],jt,bt))return!1;return!0}function Vd(bt,Zt){for(var jt=-1,Gn=bt==null?0:bt.length,Sr=0,yi=[];++jt<Gn;){var po=bt[jt];Zt(po,jt,bt)&&(yi[Sr++]=po)}return yi}function O0(bt,Zt){var jt=bt==null?0:bt.length;return!!jt&&En(bt,Zt,0)>-1}function Fm(bt,Zt,jt){for(var Gn=-1,Sr=bt==null?0:bt.length;++Gn<Sr;)if(jt(Zt,bt[Gn]))return!0;return!1}function ga(bt,Zt){for(var jt=-1,Gn=bt==null?0:bt.length,Sr=Array(Gn);++jt<Gn;)Sr[jt]=Zt(bt[jt],jt,bt);return Sr}function Hu(bt,Zt){for(var jt=-1,Gn=Zt.length,Sr=bt.length;++jt<Gn;)bt[Sr+jt]=Zt[jt];return bt}function zf(bt,Zt,jt,Gn){var Sr=-1,yi=bt==null?0:bt.length;for(Gn&&yi&&(jt=bt[++Sr]);++Sr<yi;)jt=Zt(jt,bt[Sr],Sr,bt);return jt}function K_(bt,Zt,jt,Gn){var Sr=bt==null?0:bt.length;for(Gn&&Sr&&(jt=bt[--Sr]);Sr--;)jt=Zt(jt,bt[Sr],Sr,bt);return jt}function ne(bt,Zt){for(var jt=-1,Gn=bt==null?0:bt.length;++jt<Gn;)if(Zt(bt[jt],jt,bt))return!0;return!1}var Ne=ii("length");function ot(bt){return bt.split("")}function ht(bt){return bt.match(fn)||[]}function Nt(bt,Zt,jt){var Gn;return jt(bt,function(Sr,yi,po){if(Zt(Sr,yi,po))return Gn=yi,!1}),Gn}function Yt(bt,Zt,jt,Gn){for(var Sr=bt.length,yi=jt+(Gn?1:-1);Gn?yi--:++yi<Sr;)if(Zt(bt[yi],yi,bt))return yi;return-1}function En(bt,Zt,jt){return Zt===Zt?Wd(bt,Zt,jt):Yt(bt,_r,jt)}function Qn(bt,Zt,jt,Gn){for(var Sr=jt-1,yi=bt.length;++Sr<yi;)if(Gn(bt[Sr],Zt))return Sr;return-1}function _r(bt){return bt!==bt}function Xr(bt,Zt){var jt=bt==null?0:bt.length;return jt?Ko(bt,Zt)/jt:M}function ii(bt){return function(Zt){return Zt==null?n:Zt[bt]}}function Pi(bt){return function(Zt){return bt==null?n:bt[Zt]}}function _o(bt,Zt,jt,Gn,Sr){return Sr(bt,function(yi,po,aa){jt=Gn?(Gn=!1,yi):Zt(jt,yi,po,aa)}),jt}function Yo(bt,Zt){var jt=bt.length;for(bt.sort(Zt);jt--;)bt[jt]=bt[jt].value;return bt}function Ko(bt,Zt){for(var jt,Gn=-1,Sr=bt.length;++Gn<Sr;){var yi=Zt(bt[Gn]);yi!==n&&(jt=jt===n?yi:jt+yi)}return jt}function il(bt,Zt){for(var jt=-1,Gn=Array(bt);++jt<bt;)Gn[jt]=Zt(jt);return Gn}function al(bt,Zt){return ga(Zt,function(jt){return[jt,bt[jt]]})}function Vu(bt){return bt&&bt.slice(0,Zp(bt)+1).replace(St,"")}function fo(bt){return function(Zt){return bt(Zt)}}function Gd(bt,Zt){return ga(Zt,function(jt){return bt[jt]})}function Bm(bt,Zt){return bt.has(Zt)}function L0(bt,Zt){for(var jt=-1,Gn=bt.length;++jt<Gn&&En(Zt,bt[jt],0)>-1;);return jt}function P0(bt,Zt){for(var jt=bt.length;jt--&&En(Zt,bt[jt],0)>-1;);return jt}function k0(bt,Zt){for(var jt=bt.length,Gn=0;jt--;)bt[jt]===Zt&&++Gn;return Gn}var X_=Pi(Dm),Z_=Pi(f4);function M0(bt){return"\\"+q_[bt]}function Nc(bt,Zt){return bt==null?n:bt[Zt]}function qd(bt){return Pa.test(bt)}function D0(bt){return Mm.test(bt)}function $0(bt){for(var Zt,jt=[];!(Zt=bt.next()).done;)jt.push(Zt.value);return jt}function Ov(bt){var Zt=-1,jt=Array(bt.size);return bt.forEach(function(Gn,Sr){jt[++Zt]=[Sr,Gn]}),jt}function tc(bt,Zt){return function(jt){return bt(Zt(jt))}}function Uf(bt,Zt){for(var jt=-1,Gn=bt.length,Sr=0,yi=[];++jt<Gn;){var po=bt[jt];(po===Zt||po===u)&&(bt[jt]=u,yi[Sr++]=jt)}return yi}function jm(bt){var Zt=-1,jt=Array(bt.size);return bt.forEach(function(Gn){jt[++Zt]=Gn}),jt}function qC(bt){var Zt=-1,jt=Array(bt.size);return bt.forEach(function(Gn){jt[++Zt]=[Gn,Gn]}),jt}function Wd(bt,Zt,jt){for(var Gn=jt-1,Sr=bt.length;++Gn<Sr;)if(bt[Gn]===Zt)return Gn;return-1}function Q_(bt,Zt,jt){for(var Gn=jt+1;Gn--;)if(bt[Gn]===Zt)return Gn;return Gn}function zm(bt){return qd(bt)?Yd(bt):Ne(bt)}function au(bt){return qd(bt)?Um(bt):ot(bt)}function Zp(bt){for(var Zt=bt.length;Zt--&&zt.test(bt.charAt(Zt)););return Zt}var Gu=Pi(Rv);function Yd(bt){for(var Zt=Ca.lastIndex=0;Ca.test(bt);)++Zt;return Zt}function Um(bt){return bt.match(Ca)||[]}function Hf(bt){return bt.match(eo)||[]}var Qp=function bt(Zt){Zt=Zt==null?bs:Kd.defaults(bs.Object(),Zt,Kd.pick(bs,Av));var jt=Zt.Array,Gn=Zt.Date,Sr=Zt.Error,yi=Zt.Function,po=Zt.Math,aa=Zt.Object,Jp=Zt.RegExp,Hm=Zt.String,$l=Zt.TypeError,nc=jt.prototype,eh=yi.prototype,ua=aa.prototype,wa=Zt["__core-js_shared__"],So=eh.toString,Br=ua.hasOwnProperty,th=0,nh=function(){var O=/[^.]+$/.exec(wa&&wa.keys&&wa.keys.IE_PROTO||"");return O?"Symbol(src)_1."+O:""}(),rh=ua.toString,WC=So.call(aa),k8=bs._,M8=Jp("^"+So.call(Br).replace(dt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),J_=UC?Zt.Buffer:n,ih=Zt.Symbol,e2=Zt.Uint8Array,p4=J_?J_.allocUnsafe:n,F0=tc(aa.getPrototypeOf,aa),t2=aa.create,Oc=ua.propertyIsEnumerable,rc=nc.splice,n2=ih?ih.isConcatSpreadable:n,Vm=ih?ih.iterator:n,Gm=ih?ih.toStringTag:n,Lv=function(){try{var O=d2(aa,"defineProperty");return O({},"",{}),O}catch{}}(),YC=Zt.clearTimeout!==bs.clearTimeout&&Zt.clearTimeout,h4=Gn&&Gn.now!==bs.Date.now&&Gn.now,D8=Zt.setTimeout!==bs.setTimeout&&Zt.setTimeout,B0=po.ceil,j0=po.floor,z0=aa.getOwnPropertySymbols,m4=J_?J_.isBuffer:n,$8=Zt.isFinite,YH=nc.join,F8=tc(aa.keys,aa),Ds=po.max,Fl=po.min,KH=Gn.now,XH=Zt.parseInt,B8=po.random,g4=nc.reverse,r2=d2(Zt,"DataView"),ah=d2(Zt,"Map"),v4=d2(Zt,"Promise"),U0=d2(Zt,"Set"),H0=d2(Zt,"WeakMap"),i2=d2(aa,"create"),KC=H0&&new H0,V0={},ZH=f2(r2),qm=f2(ah),Xd=f2(v4),oh=f2(U0),QH=f2(H0),a2=ih?ih.prototype:n,qu=a2?a2.valueOf:n,ou=a2?a2.toString:n;function Ve(O){if(Ss(O)&&!di(O)&&!(O instanceof Ai)){if(O instanceof su)return O;if(Br.call(O,"__wrapped__"))return l1e(O)}return new su(O)}var G0=function(){function O(){}return function(j){if(!ls(j))return{};if(t2)return t2(j);O.prototype=j;var Z=new O;return O.prototype=n,Z}}();function o2(){}function su(O,j){this.__wrapped__=O,this.__actions__=[],this.__chain__=!!j,this.__index__=0,this.__values__=n}Ve.templateSettings={escape:Ot,evaluate:sn,interpolate:Jt,variable:"",imports:{_:Ve}},Ve.prototype=o2.prototype,Ve.prototype.constructor=Ve,su.prototype=G0(o2.prototype),su.prototype.constructor=su;function Ai(O){this.__wrapped__=O,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=B,this.__views__=[]}function j8(){var O=new Ai(this.__wrapped__);return O.__actions__=Yu(this.__actions__),O.__dir__=this.__dir__,O.__filtered__=this.__filtered__,O.__iteratees__=Yu(this.__iteratees__),O.__takeCount__=this.__takeCount__,O.__views__=Yu(this.__views__),O}function JH(){if(this.__filtered__){var O=new Ai(this);O.__dir__=-1,O.__filtered__=!0}else O=this.clone(),O.__dir__*=-1;return O}function XC(){var O=this.__wrapped__.value(),j=this.__dir__,Z=di(O),pe=j<0,Re=Z?O.length:0,We=pdt(0,Re,this.__views__),ct=We.start,mt=We.end,At=mt-ct,gn=pe?mt:ct-1,vn=this.__iteratees__,Cn=vn.length,Xn=0,pr=Fl(At,this.__takeCount__);if(!Z||!pe&&Re==At&&pr==At)return u2(O,this.__actions__);var Lr=[];e:for(;At--&&Xn<pr;){gn+=j;for(var xi=-1,Pr=O[gn];++xi<Cn;){var Fi=vn[xi],Ji=Fi.iteratee,Jd=Fi.type,fu=Ji(Pr);if(Jd==$)Pr=fu;else if(!fu){if(Jd==L)continue e;break e}}Lr[Xn++]=Pr}return Lr}Ai.prototype=G0(o2.prototype),Ai.prototype.constructor=Ai;function Vf(O){var j=-1,Z=O==null?0:O.length;for(this.clear();++j<Z;){var pe=O[j];this.set(pe[0],pe[1])}}function s2(){this.__data__=i2?i2(null):{},this.size=0}function y4(O){var j=this.has(O)&&delete this.__data__[O];return this.size-=j?1:0,j}function z8(O){var j=this.__data__;if(i2){var Z=j[O];return Z===l?n:Z}return Br.call(j,O)?j[O]:n}function eV(O){var j=this.__data__;return i2?j[O]!==n:Br.call(j,O)}function U8(O,j){var Z=this.__data__;return this.size+=this.has(O)?0:1,Z[O]=i2&&j===n?l:j,this}Vf.prototype.clear=s2,Vf.prototype.delete=y4,Vf.prototype.get=z8,Vf.prototype.has=eV,Vf.prototype.set=U8;function sh(O){var j=-1,Z=O==null?0:O.length;for(this.clear();++j<Z;){var pe=O[j];this.set(pe[0],pe[1])}}function tV(){this.__data__=[],this.size=0}function nV(O){var j=this.__data__,Z=gt(j,O);if(Z<0)return!1;var pe=j.length-1;return Z==pe?j.pop():rc.call(j,Z,1),--this.size,!0}function rV(O){var j=this.__data__,Z=gt(j,O);return Z<0?n:j[Z][1]}function iV(O){return gt(this.__data__,O)>-1}function aV(O,j){var Z=this.__data__,pe=gt(Z,O);return pe<0?(++this.size,Z.push([O,j])):Z[pe][1]=j,this}sh.prototype.clear=tV,sh.prototype.delete=nV,sh.prototype.get=rV,sh.prototype.has=iV,sh.prototype.set=aV;function Gf(O){var j=-1,Z=O==null?0:O.length;for(this.clear();++j<Z;){var pe=O[j];this.set(pe[0],pe[1])}}function ZC(){this.size=0,this.__data__={hash:new Vf,map:new(ah||sh),string:new Vf}}function oV(O){var j=oL(this,O).delete(O);return this.size-=j?1:0,j}function sV(O){return oL(this,O).get(O)}function H8(O){return oL(this,O).has(O)}function V(O,j){var Z=oL(this,O),pe=Z.size;return Z.set(O,j),this.size+=Z.size==pe?0:1,this}Gf.prototype.clear=ZC,Gf.prototype.delete=oV,Gf.prototype.get=sV,Gf.prototype.has=H8,Gf.prototype.set=V;function X(O){var j=-1,Z=O==null?0:O.length;for(this.__data__=new Gf;++j<Z;)this.add(O[j])}function ie(O){return this.__data__.set(O,l),this}function ve(O){return this.__data__.has(O)}X.prototype.add=X.prototype.push=ie,X.prototype.has=ve;function Ie(O){var j=this.__data__=new sh(O);this.size=j.size}function ke(){this.__data__=new sh,this.size=0}function $e(O){var j=this.__data__,Z=j.delete(O);return this.size=j.size,Z}function Ue(O){return this.__data__.get(O)}function Ge(O){return this.__data__.has(O)}function Je(O,j){var Z=this.__data__;if(Z instanceof sh){var pe=Z.__data__;if(!ah||pe.length<i-1)return pe.push([O,j]),this.size=++Z.size,this;Z=this.__data__=new Gf(pe)}return Z.set(O,j),this.size=Z.size,this}Ie.prototype.clear=ke,Ie.prototype.delete=$e,Ie.prototype.get=Ue,Ie.prototype.has=Ge,Ie.prototype.set=Je;function vt(O,j){var Z=di(O),pe=!Z&&p2(O),Re=!Z&&!pe&&ny(O),We=!Z&&!pe&&!Re&&uw(O),ct=Z||pe||Re||We,mt=ct?il(O.length,Hm):[],At=mt.length;for(var gn in O)(j||Br.call(O,gn))&&!(ct&&(gn=="length"||Re&&(gn=="offset"||gn=="parent")||We&&(gn=="buffer"||gn=="byteLength"||gn=="byteOffset")||Fv(gn,At)))&&mt.push(gn);return mt}function $t(O){var j=O.length;return j?O[Z0(0,j-1)]:n}function Ft(O,j){return sL(Yu(O),Ln(j,0,O.length))}function xt(O){return sL(Yu(O))}function hn(O,j,Z){(Z!==n&&!dh(O[j],Z)||Z===n&&!(j in O))&&on(O,j,Z)}function qt(O,j,Z){var pe=O[j];(!(Br.call(O,j)&&dh(pe,Z))||Z===n&&!(j in O))&&on(O,j,Z)}function gt(O,j){for(var Z=O.length;Z--;)if(dh(O[Z][0],j))return Z;return-1}function _t(O,j,Z,pe){return Jr(O,function(Re,We,ct){j(pe,Re,Z(Re),ct)}),pe}function pn(O,j){return O&&eg(j,zl(j),O)}function bn(O,j){return O&&eg(j,Xu(j),O)}function on(O,j,Z){j=="__proto__"&&Lv?Lv(O,j,{configurable:!0,enumerable:!0,value:Z,writable:!0}):O[j]=Z}function Zn(O,j){for(var Z=-1,pe=j.length,Re=jt(pe),We=O==null;++Z<pe;)Re[Z]=We?n:RV(O,j[Z]);return Re}function Ln(O,j,Z){return O===O&&(Z!==n&&(O=O<=Z?O:Z),j!==n&&(O=O>=j?O:j)),O}function sr(O,j,Z,pe,Re,We){var ct,mt=j&d,At=j&f,gn=j&p;if(Z&&(ct=Re?Z(O,pe,Re,We):Z(O)),ct!==n)return ct;if(!ls(O))return O;var vn=di(O);if(vn){if(ct=mdt(O),!mt)return Yu(O,ct)}else{var Cn=Lc(O),Xn=Cn==ue||Cn==de;if(ny(O))return ow(O,mt);if(Cn==Ee||Cn==q||Xn&&!Re){if(ct=At||Xn?{}:Jve(O),!mt)return At?idt(O,bn(ct,O)):rdt(O,pn(ct,O))}else{if(!ia[Cn])return Re?O:{};ct=gdt(O,Cn,mt)}}We||(We=new Ie);var pr=We.get(O);if(pr)return pr;We.set(O,ct),A1e(O)?O.forEach(function(Pr){ct.add(sr(Pr,j,Z,Pr,O,We))}):T1e(O)&&O.forEach(function(Pr,Fi){ct.set(Fi,sr(Pr,j,Z,Fi,O,We))});var Lr=gn?At?mV:hV:At?Xu:zl,xi=vn?n:Lr(O);return Cl(xi||O,function(Pr,Fi){xi&&(Fi=Pr,Pr=O[Fi]),qt(ct,Fi,sr(Pr,j,Z,Fi,O,We))}),ct}function Hn(O){var j=zl(O);return function(Z){return oa(Z,O,j)}}function oa(O,j,Z){var pe=Z.length;if(O==null)return!pe;for(O=aa(O);pe--;){var Re=Z[pe],We=j[Re],ct=O[Re];if(ct===n&&!(Re in O)||!We(ct))return!1}return!0}function va(O,j,Z){if(typeof O!="function")throw new $l(o);return A4(function(){O.apply(n,Z)},j)}function Ri(O,j,Z,pe){var Re=-1,We=O0,ct=!0,mt=O.length,At=[],gn=j.length;if(!mt)return At;Z&&(j=ga(j,fo(Z))),pe?(We=Fm,ct=!1):j.length>=i&&(We=Bm,ct=!1,j=new X(j));e:for(;++Re<mt;){var vn=O[Re],Cn=Z==null?vn:Z(vn);if(vn=pe||vn!==0?vn:0,ct&&Cn===Cn){for(var Xn=gn;Xn--;)if(j[Xn]===Cn)continue e;At.push(vn)}else We(j,Cn,pe)||At.push(vn)}return At}var Jr=Bve(Xo),ka=Bve(ac,!0);function Ma(O,j){var Z=!0;return Jr(O,function(pe,Re,We){return Z=!!j(pe,Re,We),Z}),Z}function Yr(O,j,Z){for(var pe=-1,Re=O.length;++pe<Re;){var We=O[pe],ct=j(We);if(ct!=null&&(mt===n?ct===ct&&!Qd(ct):Z(ct,mt)))var mt=ct,At=We}return At}function _s(O,j,Z,pe){var Re=O.length;for(Z=bi(Z),Z<0&&(Z=-Z>Re?0:Re+Z),pe=pe===n||pe>Re?Re:bi(pe),pe<0&&(pe+=Re),pe=Z>pe?0:N1e(pe);Z<pe;)O[Z++]=j;return O}function ic(O,j){var Z=[];return Jr(O,function(pe,Re,We){j(pe,Re,We)&&Z.push(pe)}),Z}function ki(O,j,Z,pe,Re){var We=-1,ct=O.length;for(Z||(Z=ydt),Re||(Re=[]);++We<ct;){var mt=O[We];j>0&&Z(mt)?j>1?ki(mt,j-1,Z,pe,Re):Hu(Re,mt):pe||(Re[Re.length]=mt)}return Re}var Bl=jve(),ya=jve(!0);function Xo(O,j){return O&&Bl(O,j,zl)}function ac(O,j){return O&&ya(O,j,zl)}function ss(O,j){return Vd(j,function(Z){return Bv(O[Z])})}function No(O,j){j=Wf(j,O);for(var Z=0,pe=j.length;O!=null&&Z<pe;)O=O[tg(j[Z++])];return Z&&Z==pe?O:n}function jl(O,j,Z){var pe=j(O);return di(O)?pe:Hu(pe,Z(O))}function to(O){return O==null?O===n?xe:oe:Gm&&Gm in aa(O)?fdt(O):xdt(O)}function Wu(O,j){return O>j}function ol(O,j){return O!=null&&Br.call(O,j)}function lh(O,j){return O!=null&&j in aa(O)}function Pv(O,j,Z){return O>=Fl(j,Z)&&O<Ds(j,Z)}function Wm(O,j,Z){for(var pe=Z?Fm:O0,Re=O[0].length,We=O.length,ct=We,mt=jt(We),At=1/0,gn=[];ct--;){var vn=O[ct];ct&&j&&(vn=ga(vn,fo(j))),At=Fl(vn.length,At),mt[ct]=!Z&&(j||Re>=120&&vn.length>=120)?new X(ct&&vn):n}vn=O[0];var Cn=-1,Xn=mt[0];e:for(;++Cn<Re&&gn.length<At;){var pr=vn[Cn],Lr=j?j(pr):pr;if(pr=Z||pr!==0?pr:0,!(Xn?Bm(Xn,Lr):pe(gn,Lr,Z))){for(ct=We;--ct;){var xi=mt[ct];if(!(xi?Bm(xi,Lr):pe(O[ct],Lr,Z)))continue e}Xn&&Xn.push(Lr),gn.push(pr)}}return gn}function Ym(O,j,Z,pe){return Xo(O,function(Re,We,ct){j(pe,Z(Re),We,ct)}),pe}function no(O,j,Z){j=Wf(j,O),O=r1e(O,j);var pe=O==null?O:O[tg(Yf(j))];return pe==null?n:El(pe,O,Z)}function QC(O){return Ss(O)&&to(O)==q}function V8(O){return Ss(O)&&to(O)==Le}function G8(O){return Ss(O)&&to(O)==te}function Km(O,j,Z,pe,Re){return O===j?!0:O==null||j==null||!Ss(O)&&!Ss(j)?O!==O&&j!==j:l2(O,j,Z,pe,Km,Re)}function l2(O,j,Z,pe,Re,We){var ct=di(O),mt=di(j),At=ct?W:Lc(O),gn=mt?W:Lc(j);At=At==q?Ee:At,gn=gn==q?Ee:gn;var vn=At==Ee,Cn=gn==Ee,Xn=At==gn;if(Xn&&ny(O)){if(!ny(j))return!1;ct=!0,vn=!1}if(Xn&&!vn)return We||(We=new Ie),ct||uw(O)?Xve(O,j,Z,pe,Re,We):udt(O,j,At,Z,pe,Re,We);if(!(Z&h)){var pr=vn&&Br.call(O,"__wrapped__"),Lr=Cn&&Br.call(j,"__wrapped__");if(pr||Lr){var xi=pr?O.value():O,Pr=Lr?j.value():j;return We||(We=new Ie),Re(xi,Pr,Z,pe,We)}}return Xn?(We||(We=new Ie),ddt(O,j,Z,pe,Re,We)):!1}function JC(O){return Ss(O)&&Lc(O)==fe}function lu(O,j,Z,pe){var Re=Z.length,We=Re,ct=!pe;if(O==null)return!We;for(O=aa(O);Re--;){var mt=Z[Re];if(ct&&mt[2]?mt[1]!==O[mt[0]]:!(mt[0]in O))return!1}for(;++Re<We;){mt=Z[Re];var At=mt[0],gn=O[At],vn=mt[1];if(ct&&mt[2]){if(gn===n&&!(At in O))return!1}else{var Cn=new Ie;if(pe)var Xn=pe(gn,vn,At,O,j,Cn);if(!(Xn===n?Km(vn,gn,h|m,pe,Cn):Xn))return!1}}return!0}function kv(O){if(!ls(O)||_dt(O))return!1;var j=Bv(O)?M8:un;return j.test(f2(O))}function q0(O){return Ss(O)&&to(O)==ye}function q8(O){return Ss(O)&&Lc(O)==me}function ew(O){return Ss(O)&&pL(O.length)&&!!qi[to(O)]}function b4(O){return typeof O=="function"?O:O==null?Zu:typeof O=="object"?di(O)?Y8(O[0],O[1]):W8(O):z1e(O)}function W0(O){if(!I4(O))return F8(O);var j=[];for(var Z in aa(O))Br.call(O,Z)&&Z!="constructor"&&j.push(Z);return j}function _4(O){if(!ls(O))return wdt(O);var j=I4(O),Z=[];for(var pe in O)pe=="constructor"&&(j||!Br.call(O,pe))||Z.push(pe);return Z}function Y0(O,j){return O<j}function K0(O,j){var Z=-1,pe=Ku(O)?jt(O.length):[];return Jr(O,function(Re,We,ct){pe[++Z]=j(Re,We,ct)}),pe}function W8(O){var j=vV(O);return j.length==1&&j[0][2]?t1e(j[0][0],j[0][1]):function(Z){return Z===O||lu(Z,O,j)}}function Y8(O,j){return bV(O)&&e1e(j)?t1e(tg(O),j):function(Z){var pe=RV(Z,O);return pe===n&&pe===j?NV(Z,O):Km(j,pe,h|m)}}function X0(O,j,Z,pe,Re){O!==j&&Bl(j,function(We,ct){if(Re||(Re=new Ie),ls(We))Xm(O,j,ct,Z,X0,pe,Re);else{var mt=pe?pe(SV(O,ct),We,ct+"",O,j,Re):n;mt===n&&(mt=We),hn(O,ct,mt)}},Xu)}function Xm(O,j,Z,pe,Re,We,ct){var mt=SV(O,Z),At=SV(j,Z),gn=ct.get(At);if(gn){hn(O,Z,gn);return}var vn=We?We(mt,At,Z+"",O,j,ct):n,Cn=vn===n;if(Cn){var Xn=di(At),pr=!Xn&&ny(At),Lr=!Xn&&!pr&&uw(At);vn=At,Xn||pr||Lr?di(mt)?vn=mt:$s(mt)?vn=Yu(mt):pr?(Cn=!1,vn=ow(At,!0)):Lr?(Cn=!1,vn=Mve(At,!0)):vn=[]:R4(At)||p2(At)?(vn=mt,p2(mt)?vn=O1e(mt):(!ls(mt)||Bv(mt))&&(vn=Jve(At))):Cn=!1}Cn&&(ct.set(At,vn),Re(vn,At,pe,We,ct),ct.delete(At)),hn(O,Z,vn)}function K8(O,j){var Z=O.length;if(Z)return j+=j<0?Z:0,Fv(j,Z)?O[j]:n}function X8(O,j,Z){j.length?j=ga(j,function(We){return di(We)?function(ct){return No(ct,We.length===1?We[0]:We)}:We}):j=[Zu];var pe=-1;j=ga(j,fo(Or()));var Re=K0(O,function(We,ct,mt){var At=ga(j,function(gn){return gn(We)});return{criteria:At,index:++pe,value:We}});return Yo(Re,function(We,ct){return ndt(We,ct,Z)})}function lV(O,j){return S4(O,j,function(Z,pe){return NV(O,pe)})}function S4(O,j,Z){for(var pe=-1,Re=j.length,We={};++pe<Re;){var ct=j[pe],mt=No(O,ct);Z(mt,ct)&&Q0(We,Wf(ct,O),mt)}return We}function tw(O){return function(j){return No(j,O)}}function nw(O,j,Z,pe){var Re=pe?Qn:En,We=-1,ct=j.length,mt=O;for(O===j&&(j=Yu(j)),Z&&(mt=ga(O,fo(Z)));++We<ct;)for(var At=0,gn=j[We],vn=Z?Z(gn):gn;(At=Re(mt,vn,At,pe))>-1;)mt!==O&&rc.call(mt,At,1),rc.call(O,At,1);return O}function E4(O,j){for(var Z=O?j.length:0,pe=Z-1;Z--;){var Re=j[Z];if(Z==pe||Re!==We){var We=Re;Fv(Re)?rc.call(O,Re,1):x4(O,Re)}}return O}function Z0(O,j){return O+j0(B8()*(j-O+1))}function C4(O,j,Z,pe){for(var Re=-1,We=Ds(B0((j-O)/(Z||1)),0),ct=jt(We);We--;)ct[pe?We:++Re]=O,O+=Z;return ct}function Mv(O,j){var Z="";if(!O||j<1||j>U)return Z;do j%2&&(Z+=O),j=j0(j/2),j&&(O+=O);while(j);return Z}function mi(O,j){return EV(n1e(O,j,Zu),O+"")}function cV(O){return $t(dw(O))}function rw(O,j){var Z=dw(O);return sL(Z,Ln(j,0,Z.length))}function Q0(O,j,Z,pe){if(!ls(O))return O;j=Wf(j,O);for(var Re=-1,We=j.length,ct=We-1,mt=O;mt!=null&&++Re<We;){var At=tg(j[Re]),gn=Z;if(At==="__proto__"||At==="constructor"||At==="prototype")return O;if(Re!=ct){var vn=mt[At];gn=pe?pe(vn,At,mt):n,gn===n&&(gn=ls(vn)?vn:Fv(j[Re+1])?[]:{})}qt(mt,At,gn),mt=mt[At]}return O}var iw=KC?function(O,j){return KC.set(O,j),O}:Zu,Zm=Lv?function(O,j){return Lv(O,"toString",{configurable:!0,enumerable:!1,value:LV(j),writable:!0})}:Zu;function Z8(O){return sL(dw(O))}function cu(O,j,Z){var pe=-1,Re=O.length;j<0&&(j=-j>Re?0:Re+j),Z=Z>Re?Re:Z,Z<0&&(Z+=Re),Re=j>Z?0:Z-j>>>0,j>>>=0;for(var We=jt(Re);++pe<Re;)We[pe]=O[pe+j];return We}function uV(O,j){var Z;return Jr(O,function(pe,Re,We){return Z=j(pe,Re,We),!Z}),!!Z}function c2(O,j,Z){var pe=0,Re=O==null?pe:O.length;if(typeof j=="number"&&j===j&&Re<=F){for(;pe<Re;){var We=pe+Re>>>1,ct=O[We];ct!==null&&!Qd(ct)&&(Z?ct<=j:ct<j)?pe=We+1:Re=We}return Re}return Qm(O,j,Zu,Z)}function Qm(O,j,Z,pe){var Re=0,We=O==null?0:O.length;if(We===0)return 0;j=Z(j);for(var ct=j!==j,mt=j===null,At=Qd(j),gn=j===n;Re<We;){var vn=j0((Re+We)/2),Cn=Z(O[vn]),Xn=Cn!==n,pr=Cn===null,Lr=Cn===Cn,xi=Qd(Cn);if(ct)var Pr=pe||Lr;else gn?Pr=Lr&&(pe||Xn):mt?Pr=Lr&&Xn&&(pe||!pr):At?Pr=Lr&&Xn&&!pr&&(pe||!xi):pr||xi?Pr=!1:Pr=pe?Cn<=j:Cn<j;Pr?Re=vn+1:We=vn}return Fl(We,k)}function Q8(O,j){for(var Z=-1,pe=O.length,Re=0,We=[];++Z<pe;){var ct=O[Z],mt=j?j(ct):ct;if(!Z||!dh(mt,At)){var At=mt;We[Re++]=ct===0?0:ct}}return We}function w4(O){return typeof O=="number"?O:Qd(O)?M:+O}function uu(O){if(typeof O=="string")return O;if(di(O))return ga(O,uu)+"";if(Qd(O))return ou?ou.call(O):"";var j=O+"";return j=="0"&&1/O==-z?"-0":j}function ch(O,j,Z){var pe=-1,Re=O0,We=O.length,ct=!0,mt=[],At=mt;if(Z)ct=!1,Re=Fm;else if(We>=i){var gn=j?null:ldt(O);if(gn)return jm(gn);ct=!1,Re=Bm,At=new X}else At=j?[]:mt;e:for(;++pe<We;){var vn=O[pe],Cn=j?j(vn):vn;if(vn=Z||vn!==0?vn:0,ct&&Cn===Cn){for(var Xn=At.length;Xn--;)if(At[Xn]===Cn)continue e;j&&At.push(Cn),mt.push(vn)}else Re(At,Cn,Z)||(At!==mt&&At.push(Cn),mt.push(vn))}return mt}function x4(O,j){return j=Wf(j,O),O=r1e(O,j),O==null||delete O[tg(Yf(j))]}function J0(O,j,Z,pe){return Q0(O,j,Z(No(O,j)),pe)}function ey(O,j,Z,pe){for(var Re=O.length,We=pe?Re:-1;(pe?We--:++We<Re)&&j(O[We],We,O););return Z?cu(O,pe?0:We,pe?We+1:Re):cu(O,pe?We+1:0,pe?Re:We)}function u2(O,j){var Z=O;return Z instanceof Ai&&(Z=Z.value()),zf(j,function(pe,Re){return Re.func.apply(Re.thisArg,Hu([pe],Re.args))},Z)}function Zd(O,j,Z){var pe=O.length;if(pe<2)return pe?ch(O[0]):[];for(var Re=-1,We=jt(pe);++Re<pe;)for(var ct=O[Re],mt=-1;++mt<pe;)mt!=Re&&(We[Re]=Ri(We[Re]||ct,O[mt],j,Z));return ch(ki(We,1),j,Z)}function uh(O,j,Z){for(var pe=-1,Re=O.length,We=j.length,ct={};++pe<Re;){var mt=pe<We?j[pe]:n;Z(ct,O[pe],mt)}return ct}function qf(O){return $s(O)?O:[]}function ty(O){return typeof O=="function"?O:Zu}function Wf(O,j){return di(O)?O:bV(O,j)?[O]:s1e(Da(O))}var J8=mi;function Jm(O,j,Z){var pe=O.length;return Z=Z===n?pe:Z,!j&&Z>=pe?O:cu(O,j,Z)}var aw=YC||function(O){return bs.clearTimeout(O)};function ow(O,j){if(j)return O.slice();var Z=O.length,pe=p4?p4(Z):new O.constructor(Z);return O.copy(pe),pe}function dV(O){var j=new O.constructor(O.byteLength);return new e2(j).set(new e2(O)),j}function Jut(O,j){var Z=j?dV(O.buffer):O.buffer;return new O.constructor(Z,O.byteOffset,O.byteLength)}function edt(O){var j=new O.constructor(O.source,Tn.exec(O));return j.lastIndex=O.lastIndex,j}function tdt(O){return qu?aa(qu.call(O)):{}}function Mve(O,j){var Z=j?dV(O.buffer):O.buffer;return new O.constructor(Z,O.byteOffset,O.length)}function Dve(O,j){if(O!==j){var Z=O!==n,pe=O===null,Re=O===O,We=Qd(O),ct=j!==n,mt=j===null,At=j===j,gn=Qd(j);if(!mt&&!gn&&!We&&O>j||We&&ct&&At&&!mt&&!gn||pe&&ct&&At||!Z&&At||!Re)return 1;if(!pe&&!We&&!gn&&O<j||gn&&Z&&Re&&!pe&&!We||mt&&Z&&Re||!ct&&Re||!At)return-1}return 0}function ndt(O,j,Z){for(var pe=-1,Re=O.criteria,We=j.criteria,ct=Re.length,mt=Z.length;++pe<ct;){var At=Dve(Re[pe],We[pe]);if(At){if(pe>=mt)return At;var gn=Z[pe];return At*(gn=="desc"?-1:1)}}return O.index-j.index}function $ve(O,j,Z,pe){for(var Re=-1,We=O.length,ct=Z.length,mt=-1,At=j.length,gn=Ds(We-ct,0),vn=jt(At+gn),Cn=!pe;++mt<At;)vn[mt]=j[mt];for(;++Re<ct;)(Cn||Re<We)&&(vn[Z[Re]]=O[Re]);for(;gn--;)vn[mt++]=O[Re++];return vn}function Fve(O,j,Z,pe){for(var Re=-1,We=O.length,ct=-1,mt=Z.length,At=-1,gn=j.length,vn=Ds(We-mt,0),Cn=jt(vn+gn),Xn=!pe;++Re<vn;)Cn[Re]=O[Re];for(var pr=Re;++At<gn;)Cn[pr+At]=j[At];for(;++ct<mt;)(Xn||Re<We)&&(Cn[pr+Z[ct]]=O[Re++]);return Cn}function Yu(O,j){var Z=-1,pe=O.length;for(j||(j=jt(pe));++Z<pe;)j[Z]=O[Z];return j}function eg(O,j,Z,pe){var Re=!Z;Z||(Z={});for(var We=-1,ct=j.length;++We<ct;){var mt=j[We],At=pe?pe(Z[mt],O[mt],mt,Z,O):n;At===n&&(At=O[mt]),Re?on(Z,mt,At):qt(Z,mt,At)}return Z}function rdt(O,j){return eg(O,yV(O),j)}function idt(O,j){return eg(O,Zve(O),j)}function eL(O,j){return function(Z,pe){var Re=di(Z)?GC:_t,We=j?j():{};return Re(Z,O,Or(pe,2),We)}}function sw(O){return mi(function(j,Z){var pe=-1,Re=Z.length,We=Re>1?Z[Re-1]:n,ct=Re>2?Z[2]:n;for(We=O.length>3&&typeof We=="function"?(Re--,We):n,ct&&du(Z[0],Z[1],ct)&&(We=Re<3?n:We,Re=1),j=aa(j);++pe<Re;){var mt=Z[pe];mt&&O(j,mt,pe,We)}return j})}function Bve(O,j){return function(Z,pe){if(Z==null)return Z;if(!Ku(Z))return O(Z,pe);for(var Re=Z.length,We=j?Re:-1,ct=aa(Z);(j?We--:++We<Re)&&pe(ct[We],We,ct)!==!1;);return Z}}function jve(O){return function(j,Z,pe){for(var Re=-1,We=aa(j),ct=pe(j),mt=ct.length;mt--;){var At=ct[O?mt:++Re];if(Z(We[At],At,We)===!1)break}return j}}function adt(O,j,Z){var pe=j&g,Re=T4(O);function We(){var ct=this&&this!==bs&&this instanceof We?Re:O;return ct.apply(pe?Z:this,arguments)}return We}function zve(O){return function(j){j=Da(j);var Z=qd(j)?au(j):n,pe=Z?Z[0]:j.charAt(0),Re=Z?Jm(Z,1).join(""):j.slice(1);return pe[O]()+Re}}function lw(O){return function(j){return zf(B1e(F1e(j).replace(Kn,"")),O,"")}}function T4(O){return function(){var j=arguments;switch(j.length){case 0:return new O;case 1:return new O(j[0]);case 2:return new O(j[0],j[1]);case 3:return new O(j[0],j[1],j[2]);case 4:return new O(j[0],j[1],j[2],j[3]);case 5:return new O(j[0],j[1],j[2],j[3],j[4]);case 6:return new O(j[0],j[1],j[2],j[3],j[4],j[5]);case 7:return new O(j[0],j[1],j[2],j[3],j[4],j[5],j[6])}var Z=G0(O.prototype),pe=O.apply(Z,j);return ls(pe)?pe:Z}}function odt(O,j,Z){var pe=T4(O);function Re(){for(var We=arguments.length,ct=jt(We),mt=We,At=cw(Re);mt--;)ct[mt]=arguments[mt];var gn=We<3&&ct[0]!==At&&ct[We-1]!==At?[]:Uf(ct,At);if(We-=gn.length,We<Z)return qve(O,j,tL,Re.placeholder,n,ct,gn,n,n,Z-We);var vn=this&&this!==bs&&this instanceof Re?pe:O;return El(vn,this,ct)}return Re}function Uve(O){return function(j,Z,pe){var Re=aa(j);if(!Ku(j)){var We=Or(Z,3);j=zl(j),Z=function(mt){return We(Re[mt],mt,Re)}}var ct=O(j,Z,pe);return ct>-1?Re[We?j[ct]:ct]:n}}function Hve(O){return $v(function(j){var Z=j.length,pe=Z,Re=su.prototype.thru;for(O&&j.reverse();pe--;){var We=j[pe];if(typeof We!="function")throw new $l(o);if(Re&&!ct&&aL(We)=="wrapper")var ct=new su([],!0)}for(pe=ct?pe:Z;++pe<Z;){We=j[pe];var mt=aL(We),At=mt=="wrapper"?gV(We):n;At&&_V(At[0])&&At[1]==(x|_|C|T)&&!At[4].length&&At[9]==1?ct=ct[aL(At[0])].apply(ct,At[3]):ct=We.length==1&&_V(We)?ct[mt]():ct.thru(We)}return function(){var gn=arguments,vn=gn[0];if(ct&&gn.length==1&&di(vn))return ct.plant(vn).value();for(var Cn=0,Xn=Z?j[Cn].apply(this,gn):vn;++Cn<Z;)Xn=j[Cn].call(this,Xn);return Xn}})}function tL(O,j,Z,pe,Re,We,ct,mt,At,gn){var vn=j&x,Cn=j&g,Xn=j&v,pr=j&(_|S),Lr=j&A,xi=Xn?n:T4(O);function Pr(){for(var Fi=arguments.length,Ji=jt(Fi),Jd=Fi;Jd--;)Ji[Jd]=arguments[Jd];if(pr)var fu=cw(Pr),ef=k0(Ji,fu);if(pe&&(Ji=$ve(Ji,pe,Re,pr)),We&&(Ji=Fve(Ji,We,ct,pr)),Fi-=ef,pr&&Fi<gn){var Fs=Uf(Ji,fu);return qve(O,j,tL,Pr.placeholder,Z,Ji,Fs,mt,At,gn-Fi)}var fh=Cn?Z:this,zv=Xn?fh[O]:O;return Fi=Ji.length,mt?Ji=Tdt(Ji,mt):Lr&&Fi>1&&Ji.reverse(),vn&&At<Fi&&(Ji.length=At),this&&this!==bs&&this instanceof Pr&&(zv=xi||T4(zv)),zv.apply(fh,Ji)}return Pr}function Vve(O,j){return function(Z,pe){return Ym(Z,O,j(pe),{})}}function nL(O,j){return function(Z,pe){var Re;if(Z===n&&pe===n)return j;if(Z!==n&&(Re=Z),pe!==n){if(Re===n)return pe;typeof Z=="string"||typeof pe=="string"?(Z=uu(Z),pe=uu(pe)):(Z=w4(Z),pe=w4(pe)),Re=O(Z,pe)}return Re}}function fV(O){return $v(function(j){return j=ga(j,fo(Or())),mi(function(Z){var pe=this;return O(j,function(Re){return El(Re,pe,Z)})})})}function rL(O,j){j=j===n?" ":uu(j);var Z=j.length;if(Z<2)return Z?Mv(j,O):j;var pe=Mv(j,B0(O/zm(j)));return qd(j)?Jm(au(pe),0,O).join(""):pe.slice(0,O)}function sdt(O,j,Z,pe){var Re=j&g,We=T4(O);function ct(){for(var mt=-1,At=arguments.length,gn=-1,vn=pe.length,Cn=jt(vn+At),Xn=this&&this!==bs&&this instanceof ct?We:O;++gn<vn;)Cn[gn]=pe[gn];for(;At--;)Cn[gn++]=arguments[++mt];return El(Xn,Re?Z:this,Cn)}return ct}function Gve(O){return function(j,Z,pe){return pe&&typeof pe!="number"&&du(j,Z,pe)&&(Z=pe=n),j=jv(j),Z===n?(Z=j,j=0):Z=jv(Z),pe=pe===n?j<Z?1:-1:jv(pe),C4(j,Z,pe,O)}}function iL(O){return function(j,Z){return typeof j=="string"&&typeof Z=="string"||(j=Kf(j),Z=Kf(Z)),O(j,Z)}}function qve(O,j,Z,pe,Re,We,ct,mt,At,gn){var vn=j&_,Cn=vn?ct:n,Xn=vn?n:ct,pr=vn?We:n,Lr=vn?n:We;j|=vn?C:w,j&=~(vn?w:C),j&y||(j&=~(g|v));var xi=[O,j,Re,pr,Cn,Lr,Xn,mt,At,gn],Pr=Z.apply(n,xi);return _V(O)&&i1e(Pr,xi),Pr.placeholder=pe,a1e(Pr,O,j)}function pV(O){var j=po[O];return function(Z,pe){if(Z=Kf(Z),pe=pe==null?0:Fl(bi(pe),292),pe&&$8(Z)){var Re=(Da(Z)+"e").split("e"),We=j(Re[0]+"e"+(+Re[1]+pe));return Re=(Da(We)+"e").split("e"),+(Re[0]+"e"+(+Re[1]-pe))}return j(Z)}}var ldt=U0&&1/jm(new U0([,-0]))[1]==z?function(O){return new U0(O)}:MV;function Wve(O){return function(j){var Z=Lc(j);return Z==fe?Ov(j):Z==me?qC(j):al(j,O(j))}}function Dv(O,j,Z,pe,Re,We,ct,mt){var At=j&v;if(!At&&typeof O!="function")throw new $l(o);var gn=pe?pe.length:0;if(gn||(j&=~(C|w),pe=Re=n),ct=ct===n?ct:Ds(bi(ct),0),mt=mt===n?mt:bi(mt),gn-=Re?Re.length:0,j&w){var vn=pe,Cn=Re;pe=Re=n}var Xn=At?n:gV(O),pr=[O,j,Z,pe,Re,vn,Cn,We,ct,mt];if(Xn&&Cdt(pr,Xn),O=pr[0],j=pr[1],Z=pr[2],pe=pr[3],Re=pr[4],mt=pr[9]=pr[9]===n?At?0:O.length:Ds(pr[9]-gn,0),!mt&&j&(_|S)&&(j&=~(_|S)),!j||j==g)var Lr=adt(O,j,Z);else j==_||j==S?Lr=odt(O,j,mt):(j==C||j==(g|C))&&!Re.length?Lr=sdt(O,j,Z,pe):Lr=tL.apply(n,pr);var xi=Xn?iw:i1e;return a1e(xi(Lr,pr),O,j)}function Yve(O,j,Z,pe){return O===n||dh(O,ua[Z])&&!Br.call(pe,Z)?j:O}function Kve(O,j,Z,pe,Re,We){return ls(O)&&ls(j)&&(We.set(j,O),X0(O,j,n,Kve,We),We.delete(j)),O}function cdt(O){return R4(O)?n:O}function Xve(O,j,Z,pe,Re,We){var ct=Z&h,mt=O.length,At=j.length;if(mt!=At&&!(ct&&At>mt))return!1;var gn=We.get(O),vn=We.get(j);if(gn&&vn)return gn==j&&vn==O;var Cn=-1,Xn=!0,pr=Z&m?new X:n;for(We.set(O,j),We.set(j,O);++Cn<mt;){var Lr=O[Cn],xi=j[Cn];if(pe)var Pr=ct?pe(xi,Lr,Cn,j,O,We):pe(Lr,xi,Cn,O,j,We);if(Pr!==n){if(Pr)continue;Xn=!1;break}if(pr){if(!ne(j,function(Fi,Ji){if(!Bm(pr,Ji)&&(Lr===Fi||Re(Lr,Fi,Z,pe,We)))return pr.push(Ji)})){Xn=!1;break}}else if(!(Lr===xi||Re(Lr,xi,Z,pe,We))){Xn=!1;break}}return We.delete(O),We.delete(j),Xn}function udt(O,j,Z,pe,Re,We,ct){switch(Z){case ze:if(O.byteLength!=j.byteLength||O.byteOffset!=j.byteOffset)return!1;O=O.buffer,j=j.buffer;case Le:return!(O.byteLength!=j.byteLength||!We(new e2(O),new e2(j)));case J:case te:case ge:return dh(+O,+j);case re:return O.name==j.name&&O.message==j.message;case ye:case _e:return O==j+"";case fe:var mt=Ov;case me:var At=pe&h;if(mt||(mt=jm),O.size!=j.size&&!At)return!1;var gn=ct.get(O);if(gn)return gn==j;pe|=m,ct.set(O,j);var vn=Xve(mt(O),mt(j),pe,Re,We,ct);return ct.delete(O),vn;case Te:if(qu)return qu.call(O)==qu.call(j)}return!1}function ddt(O,j,Z,pe,Re,We){var ct=Z&h,mt=hV(O),At=mt.length,gn=hV(j),vn=gn.length;if(At!=vn&&!ct)return!1;for(var Cn=At;Cn--;){var Xn=mt[Cn];if(!(ct?Xn in j:Br.call(j,Xn)))return!1}var pr=We.get(O),Lr=We.get(j);if(pr&&Lr)return pr==j&&Lr==O;var xi=!0;We.set(O,j),We.set(j,O);for(var Pr=ct;++Cn<At;){Xn=mt[Cn];var Fi=O[Xn],Ji=j[Xn];if(pe)var Jd=ct?pe(Ji,Fi,Xn,j,O,We):pe(Fi,Ji,Xn,O,j,We);if(!(Jd===n?Fi===Ji||Re(Fi,Ji,Z,pe,We):Jd)){xi=!1;break}Pr||(Pr=Xn=="constructor")}if(xi&&!Pr){var fu=O.constructor,ef=j.constructor;fu!=ef&&"constructor"in O&&"constructor"in j&&!(typeof fu=="function"&&fu instanceof fu&&typeof ef=="function"&&ef instanceof ef)&&(xi=!1)}return We.delete(O),We.delete(j),xi}function $v(O){return EV(n1e(O,n,d1e),O+"")}function hV(O){return jl(O,zl,yV)}function mV(O){return jl(O,Xu,Zve)}var gV=KC?function(O){return KC.get(O)}:MV;function aL(O){for(var j=O.name+"",Z=V0[j],pe=Br.call(V0,j)?Z.length:0;pe--;){var Re=Z[pe],We=Re.func;if(We==null||We==O)return Re.name}return j}function cw(O){var j=Br.call(Ve,"placeholder")?Ve:O;return j.placeholder}function Or(){var O=Ve.iteratee||PV;return O=O===PV?b4:O,arguments.length?O(arguments[0],arguments[1]):O}function oL(O,j){var Z=O.__data__;return bdt(j)?Z[typeof j=="string"?"string":"hash"]:Z.map}function vV(O){for(var j=zl(O),Z=j.length;Z--;){var pe=j[Z],Re=O[pe];j[Z]=[pe,Re,e1e(Re)]}return j}function d2(O,j){var Z=Nc(O,j);return kv(Z)?Z:n}function fdt(O){var j=Br.call(O,Gm),Z=O[Gm];try{O[Gm]=n;var pe=!0}catch{}var Re=rh.call(O);return pe&&(j?O[Gm]=Z:delete O[Gm]),Re}var yV=z0?function(O){return O==null?[]:(O=aa(O),Vd(z0(O),function(j){return Oc.call(O,j)}))}:DV,Zve=z0?function(O){for(var j=[];O;)Hu(j,yV(O)),O=F0(O);return j}:DV,Lc=to;(r2&&Lc(new r2(new ArrayBuffer(1)))!=ze||ah&&Lc(new ah)!=fe||v4&&Lc(v4.resolve())!=ce||U0&&Lc(new U0)!=me||H0&&Lc(new H0)!=De)&&(Lc=function(O){var j=to(O),Z=j==Ee?O.constructor:n,pe=Z?f2(Z):"";if(pe)switch(pe){case ZH:return ze;case qm:return fe;case Xd:return ce;case oh:return me;case QH:return De}return j});function pdt(O,j,Z){for(var pe=-1,Re=Z.length;++pe<Re;){var We=Z[pe],ct=We.size;switch(We.type){case"drop":O+=ct;break;case"dropRight":j-=ct;break;case"take":j=Fl(j,O+ct);break;case"takeRight":O=Ds(O,j-ct);break}}return{start:O,end:j}}function hdt(O){var j=O.match(wn);return j?j[1].split(kn):[]}function Qve(O,j,Z){j=Wf(j,O);for(var pe=-1,Re=j.length,We=!1;++pe<Re;){var ct=tg(j[pe]);if(!(We=O!=null&&Z(O,ct)))break;O=O[ct]}return We||++pe!=Re?We:(Re=O==null?0:O.length,!!Re&&pL(Re)&&Fv(ct,Re)&&(di(O)||p2(O)))}function mdt(O){var j=O.length,Z=new O.constructor(j);return j&&typeof O[0]=="string"&&Br.call(O,"index")&&(Z.index=O.index,Z.input=O.input),Z}function Jve(O){return typeof O.constructor=="function"&&!I4(O)?G0(F0(O)):{}}function gdt(O,j,Z){var pe=O.constructor;switch(j){case Le:return dV(O);case J:case te:return new pe(+O);case ze:return Jut(O,Z);case Be:case je:case Ye:case Ze:case Ke:case qe:case nt:case Qe:case it:return Mve(O,Z);case fe:return new pe;case ge:case _e:return new pe(O);case ye:return edt(O);case me:return new pe;case Te:return tdt(O)}}function vdt(O,j){var Z=j.length;if(!Z)return O;var pe=Z-1;return j[pe]=(Z>1?"& ":"")+j[pe],j=j.join(Z>2?", ":" "),O.replace(nn,`{
/* [wrapped with `+j+`] */
`)}function ydt(O){return di(O)||p2(O)||!!(n2&&O&&O[n2])}function Fv(O,j){var Z=typeof O;return j=j??U,!!j&&(Z=="number"||Z!="symbol"&&Ct.test(O))&&O>-1&&O%1==0&&O<j}function du(O,j,Z){if(!ls(Z))return!1;var pe=typeof j;return(pe=="number"?Ku(Z)&&Fv(j,Z.length):pe=="string"&&j in Z)?dh(Z[j],O):!1}function bV(O,j){if(di(O))return!1;var Z=typeof O;return Z=="number"||Z=="symbol"||Z=="boolean"||O==null||Qd(O)?!0:pt.test(O)||!Vt.test(O)||j!=null&&O in aa(j)}function bdt(O){var j=typeof O;return j=="string"||j=="number"||j=="symbol"||j=="boolean"?O!=="__proto__":O===null}function _V(O){var j=aL(O),Z=Ve[j];if(typeof Z!="function"||!(j in Ai.prototype))return!1;if(O===Z)return!0;var pe=gV(Z);return!!pe&&O===pe[0]}function _dt(O){return!!nh&&nh in O}var Sdt=wa?Bv:$V;function I4(O){var j=O&&O.constructor,Z=typeof j=="function"&&j.prototype||ua;return O===Z}function e1e(O){return O===O&&!ls(O)}function t1e(O,j){return function(Z){return Z==null?!1:Z[O]===j&&(j!==n||O in aa(Z))}}function Edt(O){var j=dL(O,function(pe){return Z.size===c&&Z.clear(),pe}),Z=j.cache;return j}function Cdt(O,j){var Z=O[1],pe=j[1],Re=Z|pe,We=Re<(g|v|x),ct=pe==x&&Z==_||pe==x&&Z==T&&O[7].length<=j[8]||pe==(x|T)&&j[7].length<=j[8]&&Z==_;if(!(We||ct))return O;pe&g&&(O[2]=j[2],Re|=Z&g?0:y);var mt=j[3];if(mt){var At=O[3];O[3]=At?$ve(At,mt,j[4]):mt,O[4]=At?Uf(O[3],u):j[4]}return mt=j[5],mt&&(At=O[5],O[5]=At?Fve(At,mt,j[6]):mt,O[6]=At?Uf(O[5],u):j[6]),mt=j[7],mt&&(O[7]=mt),pe&x&&(O[8]=O[8]==null?j[8]:Fl(O[8],j[8])),O[9]==null&&(O[9]=j[9]),O[0]=j[0],O[1]=Re,O}function wdt(O){var j=[];if(O!=null)for(var Z in aa(O))j.push(Z);return j}function xdt(O){return rh.call(O)}function n1e(O,j,Z){return j=Ds(j===n?O.length-1:j,0),function(){for(var pe=arguments,Re=-1,We=Ds(pe.length-j,0),ct=jt(We);++Re<We;)ct[Re]=pe[j+Re];Re=-1;for(var mt=jt(j+1);++Re<j;)mt[Re]=pe[Re];return mt[j]=Z(ct),El(O,this,mt)}}function r1e(O,j){return j.length<2?O:No(O,cu(j,0,-1))}function Tdt(O,j){for(var Z=O.length,pe=Fl(j.length,Z),Re=Yu(O);pe--;){var We=j[pe];O[pe]=Fv(We,Z)?Re[We]:n}return O}function SV(O,j){if(!(j==="constructor"&&typeof O[j]=="function")&&j!="__proto__")return O[j]}var i1e=o1e(iw),A4=D8||function(O,j){return bs.setTimeout(O,j)},EV=o1e(Zm);function a1e(O,j,Z){var pe=j+"";return EV(O,vdt(pe,Idt(hdt(pe),Z)))}function o1e(O){var j=0,Z=0;return function(){var pe=KH(),Re=P-(pe-Z);if(Z=pe,Re>0){if(++j>=N)return arguments[0]}else j=0;return O.apply(n,arguments)}}function sL(O,j){var Z=-1,pe=O.length,Re=pe-1;for(j=j===n?pe:j;++Z<j;){var We=Z0(Z,Re),ct=O[We];O[We]=O[Z],O[Z]=ct}return O.length=j,O}var s1e=Edt(function(O){var j=[];return O.charCodeAt(0)===46&&j.push(""),O.replace(tt,function(Z,pe,Re,We){j.push(Re?We.replace(Ht,"$1"):pe||Z)}),j});function tg(O){if(typeof O=="string"||Qd(O))return O;var j=O+"";return j=="0"&&1/O==-z?"-0":j}function f2(O){if(O!=null){try{return So.call(O)}catch{}try{return O+""}catch{}}return""}function Idt(O,j){return Cl(G,function(Z){var pe="_."+Z[0];j&Z[1]&&!O0(O,pe)&&O.push(pe)}),O.sort()}function l1e(O){if(O instanceof Ai)return O.clone();var j=new su(O.__wrapped__,O.__chain__);return j.__actions__=Yu(O.__actions__),j.__index__=O.__index__,j.__values__=O.__values__,j}function Adt(O,j,Z){(Z?du(O,j,Z):j===n)?j=1:j=Ds(bi(j),0);var pe=O==null?0:O.length;if(!pe||j<1)return[];for(var Re=0,We=0,ct=jt(B0(pe/j));Re<pe;)ct[We++]=cu(O,Re,Re+=j);return ct}function Rdt(O){for(var j=-1,Z=O==null?0:O.length,pe=0,Re=[];++j<Z;){var We=O[j];We&&(Re[pe++]=We)}return Re}function Ndt(){var O=arguments.length;if(!O)return[];for(var j=jt(O-1),Z=arguments[0],pe=O;pe--;)j[pe-1]=arguments[pe];return Hu(di(Z)?Yu(Z):[Z],ki(j,1))}var Odt=mi(function(O,j){return $s(O)?Ri(O,ki(j,1,$s,!0)):[]}),Ldt=mi(function(O,j){var Z=Yf(j);return $s(Z)&&(Z=n),$s(O)?Ri(O,ki(j,1,$s,!0),Or(Z,2)):[]}),Pdt=mi(function(O,j){var Z=Yf(j);return $s(Z)&&(Z=n),$s(O)?Ri(O,ki(j,1,$s,!0),n,Z):[]});function kdt(O,j,Z){var pe=O==null?0:O.length;return pe?(j=Z||j===n?1:bi(j),cu(O,j<0?0:j,pe)):[]}function Mdt(O,j,Z){var pe=O==null?0:O.length;return pe?(j=Z||j===n?1:bi(j),j=pe-j,cu(O,0,j<0?0:j)):[]}function Ddt(O,j){return O&&O.length?ey(O,Or(j,3),!0,!0):[]}function $dt(O,j){return O&&O.length?ey(O,Or(j,3),!0):[]}function Fdt(O,j,Z,pe){var Re=O==null?0:O.length;return Re?(Z&&typeof Z!="number"&&du(O,j,Z)&&(Z=0,pe=Re),_s(O,j,Z,pe)):[]}function c1e(O,j,Z){var pe=O==null?0:O.length;if(!pe)return-1;var Re=Z==null?0:bi(Z);return Re<0&&(Re=Ds(pe+Re,0)),Yt(O,Or(j,3),Re)}function u1e(O,j,Z){var pe=O==null?0:O.length;if(!pe)return-1;var Re=pe-1;return Z!==n&&(Re=bi(Z),Re=Z<0?Ds(pe+Re,0):Fl(Re,pe-1)),Yt(O,Or(j,3),Re,!0)}function d1e(O){var j=O==null?0:O.length;return j?ki(O,1):[]}function Bdt(O){var j=O==null?0:O.length;return j?ki(O,z):[]}function jdt(O,j){var Z=O==null?0:O.length;return Z?(j=j===n?1:bi(j),ki(O,j)):[]}function zdt(O){for(var j=-1,Z=O==null?0:O.length,pe={};++j<Z;){var Re=O[j];pe[Re[0]]=Re[1]}return pe}function f1e(O){return O&&O.length?O[0]:n}function Udt(O,j,Z){var pe=O==null?0:O.length;if(!pe)return-1;var Re=Z==null?0:bi(Z);return Re<0&&(Re=Ds(pe+Re,0)),En(O,j,Re)}function Hdt(O){var j=O==null?0:O.length;return j?cu(O,0,-1):[]}var Vdt=mi(function(O){var j=ga(O,qf);return j.length&&j[0]===O[0]?Wm(j):[]}),Gdt=mi(function(O){var j=Yf(O),Z=ga(O,qf);return j===Yf(Z)?j=n:Z.pop(),Z.length&&Z[0]===O[0]?Wm(Z,Or(j,2)):[]}),qdt=mi(function(O){var j=Yf(O),Z=ga(O,qf);return j=typeof j=="function"?j:n,j&&Z.pop(),Z.length&&Z[0]===O[0]?Wm(Z,n,j):[]});function Wdt(O,j){return O==null?"":YH.call(O,j)}function Yf(O){var j=O==null?0:O.length;return j?O[j-1]:n}function Ydt(O,j,Z){var pe=O==null?0:O.length;if(!pe)return-1;var Re=pe;return Z!==n&&(Re=bi(Z),Re=Re<0?Ds(pe+Re,0):Fl(Re,pe-1)),j===j?Q_(O,j,Re):Yt(O,_r,Re,!0)}function Kdt(O,j){return O&&O.length?K8(O,bi(j)):n}var Xdt=mi(p1e);function p1e(O,j){return O&&O.length&&j&&j.length?nw(O,j):O}function Zdt(O,j,Z){return O&&O.length&&j&&j.length?nw(O,j,Or(Z,2)):O}function Qdt(O,j,Z){return O&&O.length&&j&&j.length?nw(O,j,n,Z):O}var Jdt=$v(function(O,j){var Z=O==null?0:O.length,pe=Zn(O,j);return E4(O,ga(j,function(Re){return Fv(Re,Z)?+Re:Re}).sort(Dve)),pe});function eft(O,j){var Z=[];if(!(O&&O.length))return Z;var pe=-1,Re=[],We=O.length;for(j=Or(j,3);++pe<We;){var ct=O[pe];j(ct,pe,O)&&(Z.push(ct),Re.push(pe))}return E4(O,Re),Z}function CV(O){return O==null?O:g4.call(O)}function tft(O,j,Z){var pe=O==null?0:O.length;return pe?(Z&&typeof Z!="number"&&du(O,j,Z)?(j=0,Z=pe):(j=j==null?0:bi(j),Z=Z===n?pe:bi(Z)),cu(O,j,Z)):[]}function nft(O,j){return c2(O,j)}function rft(O,j,Z){return Qm(O,j,Or(Z,2))}function ift(O,j){var Z=O==null?0:O.length;if(Z){var pe=c2(O,j);if(pe<Z&&dh(O[pe],j))return pe}return-1}function aft(O,j){return c2(O,j,!0)}function oft(O,j,Z){return Qm(O,j,Or(Z,2),!0)}function sft(O,j){var Z=O==null?0:O.length;if(Z){var pe=c2(O,j,!0)-1;if(dh(O[pe],j))return pe}return-1}function lft(O){return O&&O.length?Q8(O):[]}function cft(O,j){return O&&O.length?Q8(O,Or(j,2)):[]}function uft(O){var j=O==null?0:O.length;return j?cu(O,1,j):[]}function dft(O,j,Z){return O&&O.length?(j=Z||j===n?1:bi(j),cu(O,0,j<0?0:j)):[]}function fft(O,j,Z){var pe=O==null?0:O.length;return pe?(j=Z||j===n?1:bi(j),j=pe-j,cu(O,j<0?0:j,pe)):[]}function pft(O,j){return O&&O.length?ey(O,Or(j,3),!1,!0):[]}function hft(O,j){return O&&O.length?ey(O,Or(j,3)):[]}var mft=mi(function(O){return ch(ki(O,1,$s,!0))}),gft=mi(function(O){var j=Yf(O);return $s(j)&&(j=n),ch(ki(O,1,$s,!0),Or(j,2))}),vft=mi(function(O){var j=Yf(O);return j=typeof j=="function"?j:n,ch(ki(O,1,$s,!0),n,j)});function yft(O){return O&&O.length?ch(O):[]}function bft(O,j){return O&&O.length?ch(O,Or(j,2)):[]}function _ft(O,j){return j=typeof j=="function"?j:n,O&&O.length?ch(O,n,j):[]}function wV(O){if(!(O&&O.length))return[];var j=0;return O=Vd(O,function(Z){if($s(Z))return j=Ds(Z.length,j),!0}),il(j,function(Z){return ga(O,ii(Z))})}function h1e(O,j){if(!(O&&O.length))return[];var Z=wV(O);return j==null?Z:ga(Z,function(pe){return El(j,n,pe)})}var Sft=mi(function(O,j){return $s(O)?Ri(O,j):[]}),Eft=mi(function(O){return Zd(Vd(O,$s))}),Cft=mi(function(O){var j=Yf(O);return $s(j)&&(j=n),Zd(Vd(O,$s),Or(j,2))}),wft=mi(function(O){var j=Yf(O);return j=typeof j=="function"?j:n,Zd(Vd(O,$s),n,j)}),xft=mi(wV);function Tft(O,j){return uh(O||[],j||[],qt)}function Ift(O,j){return uh(O||[],j||[],Q0)}var Aft=mi(function(O){var j=O.length,Z=j>1?O[j-1]:n;return Z=typeof Z=="function"?(O.pop(),Z):n,h1e(O,Z)});function m1e(O){var j=Ve(O);return j.__chain__=!0,j}function Rft(O,j){return j(O),O}function lL(O,j){return j(O)}var Nft=$v(function(O){var j=O.length,Z=j?O[0]:0,pe=this.__wrapped__,Re=function(We){return Zn(We,O)};return j>1||this.__actions__.length||!(pe instanceof Ai)||!Fv(Z)?this.thru(Re):(pe=pe.slice(Z,+Z+(j?1:0)),pe.__actions__.push({func:lL,args:[Re],thisArg:n}),new su(pe,this.__chain__).thru(function(We){return j&&!We.length&&We.push(n),We}))});function Oft(){return m1e(this)}function Lft(){return new su(this.value(),this.__chain__)}function Pft(){this.__values__===n&&(this.__values__=R1e(this.value()));var O=this.__index__>=this.__values__.length,j=O?n:this.__values__[this.__index__++];return{done:O,value:j}}function kft(){return this}function Mft(O){for(var j,Z=this;Z instanceof o2;){var pe=l1e(Z);pe.__index__=0,pe.__values__=n,j?Re.__wrapped__=pe:j=pe;var Re=pe;Z=Z.__wrapped__}return Re.__wrapped__=O,j}function Dft(){var O=this.__wrapped__;if(O instanceof Ai){var j=O;return this.__actions__.length&&(j=new Ai(this)),j=j.reverse(),j.__actions__.push({func:lL,args:[CV],thisArg:n}),new su(j,this.__chain__)}return this.thru(CV)}function $ft(){return u2(this.__wrapped__,this.__actions__)}var Fft=eL(function(O,j,Z){Br.call(O,Z)?++O[Z]:on(O,Z,1)});function Bft(O,j,Z){var pe=di(O)?N0:Ma;return Z&&du(O,j,Z)&&(j=n),pe(O,Or(j,3))}function jft(O,j){var Z=di(O)?Vd:ic;return Z(O,Or(j,3))}var zft=Uve(c1e),Uft=Uve(u1e);function Hft(O,j){return ki(cL(O,j),1)}function Vft(O,j){return ki(cL(O,j),z)}function Gft(O,j,Z){return Z=Z===n?1:bi(Z),ki(cL(O,j),Z)}function g1e(O,j){var Z=di(O)?Cl:Jr;return Z(O,Or(j,3))}function v1e(O,j){var Z=di(O)?Y_:ka;return Z(O,Or(j,3))}var qft=eL(function(O,j,Z){Br.call(O,Z)?O[Z].push(j):on(O,Z,[j])});function Wft(O,j,Z,pe){O=Ku(O)?O:dw(O),Z=Z&&!pe?bi(Z):0;var Re=O.length;return Z<0&&(Z=Ds(Re+Z,0)),hL(O)?Z<=Re&&O.indexOf(j,Z)>-1:!!Re&&En(O,j,Z)>-1}var Yft=mi(function(O,j,Z){var pe=-1,Re=typeof j=="function",We=Ku(O)?jt(O.length):[];return Jr(O,function(ct){We[++pe]=Re?El(j,ct,Z):no(ct,j,Z)}),We}),Kft=eL(function(O,j,Z){on(O,Z,j)});function cL(O,j){var Z=di(O)?ga:K0;return Z(O,Or(j,3))}function Xft(O,j,Z,pe){return O==null?[]:(di(j)||(j=j==null?[]:[j]),Z=pe?n:Z,di(Z)||(Z=Z==null?[]:[Z]),X8(O,j,Z))}var Zft=eL(function(O,j,Z){O[Z?0:1].push(j)},function(){return[[],[]]});function Qft(O,j,Z){var pe=di(O)?zf:_o,Re=arguments.length<3;return pe(O,Or(j,4),Z,Re,Jr)}function Jft(O,j,Z){var pe=di(O)?K_:_o,Re=arguments.length<3;return pe(O,Or(j,4),Z,Re,ka)}function ept(O,j){var Z=di(O)?Vd:ic;return Z(O,fL(Or(j,3)))}function tpt(O){var j=di(O)?$t:cV;return j(O)}function npt(O,j,Z){(Z?du(O,j,Z):j===n)?j=1:j=bi(j);var pe=di(O)?Ft:rw;return pe(O,j)}function rpt(O){var j=di(O)?xt:Z8;return j(O)}function ipt(O){if(O==null)return 0;if(Ku(O))return hL(O)?zm(O):O.length;var j=Lc(O);return j==fe||j==me?O.size:W0(O).length}function apt(O,j,Z){var pe=di(O)?ne:uV;return Z&&du(O,j,Z)&&(j=n),pe(O,Or(j,3))}var opt=mi(function(O,j){if(O==null)return[];var Z=j.length;return Z>1&&du(O,j[0],j[1])?j=[]:Z>2&&du(j[0],j[1],j[2])&&(j=[j[0]]),X8(O,ki(j,1),[])}),uL=h4||function(){return bs.Date.now()};function spt(O,j){if(typeof j!="function")throw new $l(o);return O=bi(O),function(){if(--O<1)return j.apply(this,arguments)}}function y1e(O,j,Z){return j=Z?n:j,j=O&&j==null?O.length:j,Dv(O,x,n,n,n,n,j)}function b1e(O,j){var Z;if(typeof j!="function")throw new $l(o);return O=bi(O),function(){return--O>0&&(Z=j.apply(this,arguments)),O<=1&&(j=n),Z}}var xV=mi(function(O,j,Z){var pe=g;if(Z.length){var Re=Uf(Z,cw(xV));pe|=C}return Dv(O,pe,j,Z,Re)}),_1e=mi(function(O,j,Z){var pe=g|v;if(Z.length){var Re=Uf(Z,cw(_1e));pe|=C}return Dv(j,pe,O,Z,Re)});function S1e(O,j,Z){j=Z?n:j;var pe=Dv(O,_,n,n,n,n,n,j);return pe.placeholder=S1e.placeholder,pe}function E1e(O,j,Z){j=Z?n:j;var pe=Dv(O,S,n,n,n,n,n,j);return pe.placeholder=E1e.placeholder,pe}function C1e(O,j,Z){var pe,Re,We,ct,mt,At,gn=0,vn=!1,Cn=!1,Xn=!0;if(typeof O!="function")throw new $l(o);j=Kf(j)||0,ls(Z)&&(vn=!!Z.leading,Cn="maxWait"in Z,We=Cn?Ds(Kf(Z.maxWait)||0,j):We,Xn="trailing"in Z?!!Z.trailing:Xn);function pr(Fs){var fh=pe,zv=Re;return pe=Re=n,gn=Fs,ct=O.apply(zv,fh),ct}function Lr(Fs){return gn=Fs,mt=A4(Fi,j),vn?pr(Fs):ct}function xi(Fs){var fh=Fs-At,zv=Fs-gn,U1e=j-fh;return Cn?Fl(U1e,We-zv):U1e}function Pr(Fs){var fh=Fs-At,zv=Fs-gn;return At===n||fh>=j||fh<0||Cn&&zv>=We}function Fi(){var Fs=uL();if(Pr(Fs))return Ji(Fs);mt=A4(Fi,xi(Fs))}function Ji(Fs){return mt=n,Xn&&pe?pr(Fs):(pe=Re=n,ct)}function Jd(){mt!==n&&aw(mt),gn=0,pe=At=Re=mt=n}function fu(){return mt===n?ct:Ji(uL())}function ef(){var Fs=uL(),fh=Pr(Fs);if(pe=arguments,Re=this,At=Fs,fh){if(mt===n)return Lr(At);if(Cn)return aw(mt),mt=A4(Fi,j),pr(At)}return mt===n&&(mt=A4(Fi,j)),ct}return ef.cancel=Jd,ef.flush=fu,ef}var lpt=mi(function(O,j){return va(O,1,j)}),cpt=mi(function(O,j,Z){return va(O,Kf(j)||0,Z)});function upt(O){return Dv(O,A)}function dL(O,j){if(typeof O!="function"||j!=null&&typeof j!="function")throw new $l(o);var Z=function(){var pe=arguments,Re=j?j.apply(this,pe):pe[0],We=Z.cache;if(We.has(Re))return We.get(Re);var ct=O.apply(this,pe);return Z.cache=We.set(Re,ct)||We,ct};return Z.cache=new(dL.Cache||Gf),Z}dL.Cache=Gf;function fL(O){if(typeof O!="function")throw new $l(o);return function(){var j=arguments;switch(j.length){case 0:return!O.call(this);case 1:return!O.call(this,j[0]);case 2:return!O.call(this,j[0],j[1]);case 3:return!O.call(this,j[0],j[1],j[2])}return!O.apply(this,j)}}function dpt(O){return b1e(2,O)}var fpt=J8(function(O,j){j=j.length==1&&di(j[0])?ga(j[0],fo(Or())):ga(ki(j,1),fo(Or()));var Z=j.length;return mi(function(pe){for(var Re=-1,We=Fl(pe.length,Z);++Re<We;)pe[Re]=j[Re].call(this,pe[Re]);return El(O,this,pe)})}),TV=mi(function(O,j){var Z=Uf(j,cw(TV));return Dv(O,C,n,j,Z)}),w1e=mi(function(O,j){var Z=Uf(j,cw(w1e));return Dv(O,w,n,j,Z)}),ppt=$v(function(O,j){return Dv(O,T,n,n,n,j)});function hpt(O,j){if(typeof O!="function")throw new $l(o);return j=j===n?j:bi(j),mi(O,j)}function mpt(O,j){if(typeof O!="function")throw new $l(o);return j=j==null?0:Ds(bi(j),0),mi(function(Z){var pe=Z[j],Re=Jm(Z,0,j);return pe&&Hu(Re,pe),El(O,this,Re)})}function gpt(O,j,Z){var pe=!0,Re=!0;if(typeof O!="function")throw new $l(o);return ls(Z)&&(pe="leading"in Z?!!Z.leading:pe,Re="trailing"in Z?!!Z.trailing:Re),C1e(O,j,{leading:pe,maxWait:j,trailing:Re})}function vpt(O){return y1e(O,1)}function ypt(O,j){return TV(ty(j),O)}function bpt(){if(!arguments.length)return[];var O=arguments[0];return di(O)?O:[O]}function _pt(O){return sr(O,p)}function Spt(O,j){return j=typeof j=="function"?j:n,sr(O,p,j)}function Ept(O){return sr(O,d|p)}function Cpt(O,j){return j=typeof j=="function"?j:n,sr(O,d|p,j)}function wpt(O,j){return j==null||oa(O,j,zl(j))}function dh(O,j){return O===j||O!==O&&j!==j}var xpt=iL(Wu),Tpt=iL(function(O,j){return O>=j}),p2=QC(function(){return arguments}())?QC:function(O){return Ss(O)&&Br.call(O,"callee")&&!Oc.call(O,"callee")},di=jt.isArray,Ipt=A0?fo(A0):V8;function Ku(O){return O!=null&&pL(O.length)&&!Bv(O)}function $s(O){return Ss(O)&&Ku(O)}function Apt(O){return O===!0||O===!1||Ss(O)&&to(O)==J}var ny=m4||$V,Rpt=$m?fo($m):G8;function Npt(O){return Ss(O)&&O.nodeType===1&&!R4(O)}function Opt(O){if(O==null)return!0;if(Ku(O)&&(di(O)||typeof O=="string"||typeof O.splice=="function"||ny(O)||uw(O)||p2(O)))return!O.length;var j=Lc(O);if(j==fe||j==me)return!O.size;if(I4(O))return!W0(O).length;for(var Z in O)if(Br.call(O,Z))return!1;return!0}function Lpt(O,j){return Km(O,j)}function Ppt(O,j,Z){Z=typeof Z=="function"?Z:n;var pe=Z?Z(O,j):n;return pe===n?Km(O,j,n,Z):!!pe}function IV(O){if(!Ss(O))return!1;var j=to(O);return j==re||j==ae||typeof O.message=="string"&&typeof O.name=="string"&&!R4(O)}function kpt(O){return typeof O=="number"&&$8(O)}function Bv(O){if(!ls(O))return!1;var j=to(O);return j==ue||j==de||j==K||j==he}function x1e(O){return typeof O=="number"&&O==bi(O)}function pL(O){return typeof O=="number"&&O>-1&&O%1==0&&O<=U}function ls(O){var j=typeof O;return O!=null&&(j=="object"||j=="function")}function Ss(O){return O!=null&&typeof O=="object"}var T1e=HC?fo(HC):JC;function Mpt(O,j){return O===j||lu(O,j,vV(j))}function Dpt(O,j,Z){return Z=typeof Z=="function"?Z:n,lu(O,j,vV(j),Z)}function $pt(O){return I1e(O)&&O!=+O}function Fpt(O){if(Sdt(O))throw new Sr(a);return kv(O)}function Bpt(O){return O===null}function jpt(O){return O==null}function I1e(O){return typeof O=="number"||Ss(O)&&to(O)==ge}function R4(O){if(!Ss(O)||to(O)!=Ee)return!1;var j=F0(O);if(j===null)return!0;var Z=Br.call(j,"constructor")&&j.constructor;return typeof Z=="function"&&Z instanceof Z&&So.call(Z)==WC}var AV=Nv?fo(Nv):q0;function zpt(O){return x1e(O)&&O>=-U&&O<=U}var A1e=VC?fo(VC):q8;function hL(O){return typeof O=="string"||!di(O)&&Ss(O)&&to(O)==_e}function Qd(O){return typeof O=="symbol"||Ss(O)&&to(O)==Te}var uw=R0?fo(R0):ew;function Upt(O){return O===n}function Hpt(O){return Ss(O)&&Lc(O)==De}function Vpt(O){return Ss(O)&&to(O)==Pe}var Gpt=iL(Y0),qpt=iL(function(O,j){return O<=j});function R1e(O){if(!O)return[];if(Ku(O))return hL(O)?au(O):Yu(O);if(Vm&&O[Vm])return $0(O[Vm]());var j=Lc(O),Z=j==fe?Ov:j==me?jm:dw;return Z(O)}function jv(O){if(!O)return O===0?O:0;if(O=Kf(O),O===z||O===-z){var j=O<0?-1:1;return j*H}return O===O?O:0}function bi(O){var j=jv(O),Z=j%1;return j===j?Z?j-Z:j:0}function N1e(O){return O?Ln(bi(O),0,B):0}function Kf(O){if(typeof O=="number")return O;if(Qd(O))return M;if(ls(O)){var j=typeof O.valueOf=="function"?O.valueOf():O;O=ls(j)?j+"":j}if(typeof O!="string")return O===0?O:+O;O=Vu(O);var Z=nr.test(O);return Z||et.test(O)?jC(O.slice(2),Z?2:8):An.test(O)?M:+O}function O1e(O){return eg(O,Xu(O))}function Wpt(O){return O?Ln(bi(O),-U,U):O===0?O:0}function Da(O){return O==null?"":uu(O)}var Ypt=sw(function(O,j){if(I4(j)||Ku(j)){eg(j,zl(j),O);return}for(var Z in j)Br.call(j,Z)&&qt(O,Z,j[Z])}),L1e=sw(function(O,j){eg(j,Xu(j),O)}),mL=sw(function(O,j,Z,pe){eg(j,Xu(j),O,pe)}),Kpt=sw(function(O,j,Z,pe){eg(j,zl(j),O,pe)}),Xpt=$v(Zn);function Zpt(O,j){var Z=G0(O);return j==null?Z:pn(Z,j)}var Qpt=mi(function(O,j){O=aa(O);var Z=-1,pe=j.length,Re=pe>2?j[2]:n;for(Re&&du(j[0],j[1],Re)&&(pe=1);++Z<pe;)for(var We=j[Z],ct=Xu(We),mt=-1,At=ct.length;++mt<At;){var gn=ct[mt],vn=O[gn];(vn===n||dh(vn,ua[gn])&&!Br.call(O,gn))&&(O[gn]=We[gn])}return O}),Jpt=mi(function(O){return O.push(n,Kve),El(P1e,n,O)});function eht(O,j){return Nt(O,Or(j,3),Xo)}function tht(O,j){return Nt(O,Or(j,3),ac)}function nht(O,j){return O==null?O:Bl(O,Or(j,3),Xu)}function rht(O,j){return O==null?O:ya(O,Or(j,3),Xu)}function iht(O,j){return O&&Xo(O,Or(j,3))}function aht(O,j){return O&&ac(O,Or(j,3))}function oht(O){return O==null?[]:ss(O,zl(O))}function sht(O){return O==null?[]:ss(O,Xu(O))}function RV(O,j,Z){var pe=O==null?n:No(O,j);return pe===n?Z:pe}function lht(O,j){return O!=null&&Qve(O,j,ol)}function NV(O,j){return O!=null&&Qve(O,j,lh)}var cht=Vve(function(O,j,Z){j!=null&&typeof j.toString!="function"&&(j=rh.call(j)),O[j]=Z},LV(Zu)),uht=Vve(function(O,j,Z){j!=null&&typeof j.toString!="function"&&(j=rh.call(j)),Br.call(O,j)?O[j].push(Z):O[j]=[Z]},Or),dht=mi(no);function zl(O){return Ku(O)?vt(O):W0(O)}function Xu(O){return Ku(O)?vt(O,!0):_4(O)}function fht(O,j){var Z={};return j=Or(j,3),Xo(O,function(pe,Re,We){on(Z,j(pe,Re,We),pe)}),Z}function pht(O,j){var Z={};return j=Or(j,3),Xo(O,function(pe,Re,We){on(Z,Re,j(pe,Re,We))}),Z}var hht=sw(function(O,j,Z){X0(O,j,Z)}),P1e=sw(function(O,j,Z,pe){X0(O,j,Z,pe)}),mht=$v(function(O,j){var Z={};if(O==null)return Z;var pe=!1;j=ga(j,function(We){return We=Wf(We,O),pe||(pe=We.length>1),We}),eg(O,mV(O),Z),pe&&(Z=sr(Z,d|f|p,cdt));for(var Re=j.length;Re--;)x4(Z,j[Re]);return Z});function ght(O,j){return k1e(O,fL(Or(j)))}var vht=$v(function(O,j){return O==null?{}:lV(O,j)});function k1e(O,j){if(O==null)return{};var Z=ga(mV(O),function(pe){return[pe]});return j=Or(j),S4(O,Z,function(pe,Re){return j(pe,Re[0])})}function yht(O,j,Z){j=Wf(j,O);var pe=-1,Re=j.length;for(Re||(Re=1,O=n);++pe<Re;){var We=O==null?n:O[tg(j[pe])];We===n&&(pe=Re,We=Z),O=Bv(We)?We.call(O):We}return O}function bht(O,j,Z){return O==null?O:Q0(O,j,Z)}function _ht(O,j,Z,pe){return pe=typeof pe=="function"?pe:n,O==null?O:Q0(O,j,Z,pe)}var M1e=Wve(zl),D1e=Wve(Xu);function Sht(O,j,Z){var pe=di(O),Re=pe||ny(O)||uw(O);if(j=Or(j,4),Z==null){var We=O&&O.constructor;Re?Z=pe?new We:[]:ls(O)?Z=Bv(We)?G0(F0(O)):{}:Z={}}return(Re?Cl:Xo)(O,function(ct,mt,At){return j(Z,ct,mt,At)}),Z}function Eht(O,j){return O==null?!0:x4(O,j)}function Cht(O,j,Z){return O==null?O:J0(O,j,ty(Z))}function wht(O,j,Z,pe){return pe=typeof pe=="function"?pe:n,O==null?O:J0(O,j,ty(Z),pe)}function dw(O){return O==null?[]:Gd(O,zl(O))}function xht(O){return O==null?[]:Gd(O,Xu(O))}function Tht(O,j,Z){return Z===n&&(Z=j,j=n),Z!==n&&(Z=Kf(Z),Z=Z===Z?Z:0),j!==n&&(j=Kf(j),j=j===j?j:0),Ln(Kf(O),j,Z)}function Iht(O,j,Z){return j=jv(j),Z===n?(Z=j,j=0):Z=jv(Z),O=Kf(O),Pv(O,j,Z)}function Aht(O,j,Z){if(Z&&typeof Z!="boolean"&&du(O,j,Z)&&(j=Z=n),Z===n&&(typeof j=="boolean"?(Z=j,j=n):typeof O=="boolean"&&(Z=O,O=n)),O===n&&j===n?(O=0,j=1):(O=jv(O),j===n?(j=O,O=0):j=jv(j)),O>j){var pe=O;O=j,j=pe}if(Z||O%1||j%1){var Re=B8();return Fl(O+Re*(j-O+I0("1e-"+((Re+"").length-1))),j)}return Z0(O,j)}var Rht=lw(function(O,j,Z){return j=j.toLowerCase(),O+(Z?$1e(j):j)});function $1e(O){return OV(Da(O).toLowerCase())}function F1e(O){return O=Da(O),O&&O.replace(Q,X_).replace(Ir,"")}function Nht(O,j,Z){O=Da(O),j=uu(j);var pe=O.length;Z=Z===n?pe:Ln(bi(Z),0,pe);var Re=Z;return Z-=j.length,Z>=0&&O.slice(Z,Re)==j}function Oht(O){return O=Da(O),O&&Pt.test(O)?O.replace(Rt,Z_):O}function Lht(O){return O=Da(O),O&&Et.test(O)?O.replace(dt,"\\$&"):O}var Pht=lw(function(O,j,Z){return O+(Z?"-":"")+j.toLowerCase()}),kht=lw(function(O,j,Z){return O+(Z?" ":"")+j.toLowerCase()}),Mht=zve("toLowerCase");function Dht(O,j,Z){O=Da(O),j=bi(j);var pe=j?zm(O):0;if(!j||pe>=j)return O;var Re=(j-pe)/2;return rL(j0(Re),Z)+O+rL(B0(Re),Z)}function $ht(O,j,Z){O=Da(O),j=bi(j);var pe=j?zm(O):0;return j&&pe<j?O+rL(j-pe,Z):O}function Fht(O,j,Z){O=Da(O),j=bi(j);var pe=j?zm(O):0;return j&&pe<j?rL(j-pe,Z)+O:O}function Bht(O,j,Z){return Z||j==null?j=0:j&&(j=+j),XH(Da(O).replace(St,""),j||0)}function jht(O,j,Z){return(Z?du(O,j,Z):j===n)?j=1:j=bi(j),Mv(Da(O),j)}function zht(){var O=arguments,j=Da(O[0]);return O.length<3?j:j.replace(O[1],O[2])}var Uht=lw(function(O,j,Z){return O+(Z?"_":"")+j.toLowerCase()});function Hht(O,j,Z){return Z&&typeof Z!="number"&&du(O,j,Z)&&(j=Z=n),Z=Z===n?B:Z>>>0,Z?(O=Da(O),O&&(typeof j=="string"||j!=null&&!AV(j))&&(j=uu(j),!j&&qd(O))?Jm(au(O),0,Z):O.split(j,Z)):[]}var Vht=lw(function(O,j,Z){return O+(Z?" ":"")+OV(j)});function Ght(O,j,Z){return O=Da(O),Z=Z==null?0:Ln(bi(Z),0,O.length),j=uu(j),O.slice(Z,Z+j.length)==j}function qht(O,j,Z){var pe=Ve.templateSettings;Z&&du(O,j,Z)&&(j=n),O=Da(O),j=mL({},j,pe,Yve);var Re=mL({},j.imports,pe.imports,Yve),We=zl(Re),ct=Gd(Re,We),mt,At,gn=0,vn=j.interpolate||Y,Cn="__p += '",Xn=Jp((j.escape||Y).source+"|"+vn.source+"|"+(vn===Jt?mn:Y).source+"|"+(j.evaluate||Y).source+"|$","g"),pr="//# sourceURL="+(Br.call(j,"sourceURL")?(j.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++T0+"]")+`
`;O.replace(Xn,function(Pr,Fi,Ji,Jd,fu,ef){return Ji||(Ji=Jd),Cn+=O.slice(gn,ef).replace(ee,M0),Fi&&(mt=!0,Cn+=`' +
__e(`+Fi+`) +
'`),fu&&(At=!0,Cn+=`';
`+fu+`;
__p += '`),Ji&&(Cn+=`' +
((__t = (`+Ji+`)) == null ? '' : __t) +
'`),gn=ef+Pr.length,Pr}),Cn+=`';
`;var Lr=Br.call(j,"variable")&&j.variable;if(!Lr)Cn=`with (obj) {
`+Cn+`
}
`;else if(an.test(Lr))throw new Sr(s);Cn=(At?Cn.replace(yt,""):Cn).replace(Wt,"$1").replace(Mt,"$1;"),Cn="function("+(Lr||"obj")+`) {
`+(Lr?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(mt?", __e = _.escape":"")+(At?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+Cn+`return __p
}`;var xi=j1e(function(){return yi(We,pr+"return "+Cn).apply(n,ct)});if(xi.source=Cn,IV(xi))throw xi;return xi}function Wht(O){return Da(O).toLowerCase()}function Yht(O){return Da(O).toUpperCase()}function Kht(O,j,Z){if(O=Da(O),O&&(Z||j===n))return Vu(O);if(!O||!(j=uu(j)))return O;var pe=au(O),Re=au(j),We=L0(pe,Re),ct=P0(pe,Re)+1;return Jm(pe,We,ct).join("")}function Xht(O,j,Z){if(O=Da(O),O&&(Z||j===n))return O.slice(0,Zp(O)+1);if(!O||!(j=uu(j)))return O;var pe=au(O),Re=P0(pe,au(j))+1;return Jm(pe,0,Re).join("")}function Zht(O,j,Z){if(O=Da(O),O&&(Z||j===n))return O.replace(St,"");if(!O||!(j=uu(j)))return O;var pe=au(O),Re=L0(pe,au(j));return Jm(pe,Re).join("")}function Qht(O,j){var Z=I,pe=R;if(ls(j)){var Re="separator"in j?j.separator:Re;Z="length"in j?bi(j.length):Z,pe="omission"in j?uu(j.omission):pe}O=Da(O);var We=O.length;if(qd(O)){var ct=au(O);We=ct.length}if(Z>=We)return O;var mt=Z-zm(pe);if(mt<1)return pe;var At=ct?Jm(ct,0,mt).join(""):O.slice(0,mt);if(Re===n)return At+pe;if(ct&&(mt+=At.length-mt),AV(Re)){if(O.slice(mt).search(Re)){var gn,vn=At;for(Re.global||(Re=Jp(Re.source,Da(Tn.exec(Re))+"g")),Re.lastIndex=0;gn=Re.exec(vn);)var Cn=gn.index;At=At.slice(0,Cn===n?mt:Cn)}}else if(O.indexOf(uu(Re),mt)!=mt){var Xn=At.lastIndexOf(Re);Xn>-1&&(At=At.slice(0,Xn))}return At+pe}function Jht(O){return O=Da(O),O&&Dt.test(O)?O.replace(tn,Gu):O}var emt=lw(function(O,j,Z){return O+(Z?" ":"")+j.toUpperCase()}),OV=zve("toUpperCase");function B1e(O,j,Z){return O=Da(O),j=Z?n:j,j===n?D0(O)?Hf(O):ht(O):O.match(j)||[]}var j1e=mi(function(O,j){try{return El(O,n,j)}catch(Z){return IV(Z)?Z:new Sr(Z)}}),tmt=$v(function(O,j){return Cl(j,function(Z){Z=tg(Z),on(O,Z,xV(O[Z],O))}),O});function nmt(O){var j=O==null?0:O.length,Z=Or();return O=j?ga(O,function(pe){if(typeof pe[1]!="function")throw new $l(o);return[Z(pe[0]),pe[1]]}):[],mi(function(pe){for(var Re=-1;++Re<j;){var We=O[Re];if(El(We[0],this,pe))return El(We[1],this,pe)}})}function rmt(O){return Hn(sr(O,d))}function LV(O){return function(){return O}}function imt(O,j){return O==null||O!==O?j:O}var amt=Hve(),omt=Hve(!0);function Zu(O){return O}function PV(O){return b4(typeof O=="function"?O:sr(O,d))}function smt(O){return W8(sr(O,d))}function lmt(O,j){return Y8(O,sr(j,d))}var cmt=mi(function(O,j){return function(Z){return no(Z,O,j)}}),umt=mi(function(O,j){return function(Z){return no(O,Z,j)}});function kV(O,j,Z){var pe=zl(j),Re=ss(j,pe);Z==null&&!(ls(j)&&(Re.length||!pe.length))&&(Z=j,j=O,O=this,Re=ss(j,zl(j)));var We=!(ls(Z)&&"chain"in Z)||!!Z.chain,ct=Bv(O);return Cl(Re,function(mt){var At=j[mt];O[mt]=At,ct&&(O.prototype[mt]=function(){var gn=this.__chain__;if(We||gn){var vn=O(this.__wrapped__),Cn=vn.__actions__=Yu(this.__actions__);return Cn.push({func:At,args:arguments,thisArg:O}),vn.__chain__=gn,vn}return At.apply(O,Hu([this.value()],arguments))})}),O}function dmt(){return bs._===this&&(bs._=k8),this}function MV(){}function fmt(O){return O=bi(O),mi(function(j){return K8(j,O)})}var pmt=fV(ga),hmt=fV(N0),mmt=fV(ne);function z1e(O){return bV(O)?ii(tg(O)):tw(O)}function gmt(O){return function(j){return O==null?n:No(O,j)}}var vmt=Gve(),ymt=Gve(!0);function DV(){return[]}function $V(){return!1}function bmt(){return{}}function _mt(){return""}function Smt(){return!0}function Emt(O,j){if(O=bi(O),O<1||O>U)return[];var Z=B,pe=Fl(O,B);j=Or(j),O-=B;for(var Re=il(pe,j);++Z<O;)j(Z);return Re}function Cmt(O){return di(O)?ga(O,tg):Qd(O)?[O]:Yu(s1e(Da(O)))}function wmt(O){var j=++th;return Da(O)+j}var xmt=nL(function(O,j){return O+j},0),Tmt=pV("ceil"),Imt=nL(function(O,j){return O/j},1),Amt=pV("floor");function Rmt(O){return O&&O.length?Yr(O,Zu,Wu):n}function Nmt(O,j){return O&&O.length?Yr(O,Or(j,2),Wu):n}function Omt(O){return Xr(O,Zu)}function Lmt(O,j){return Xr(O,Or(j,2))}function Pmt(O){return O&&O.length?Yr(O,Zu,Y0):n}function kmt(O,j){return O&&O.length?Yr(O,Or(j,2),Y0):n}var Mmt=nL(function(O,j){return O*j},1),Dmt=pV("round"),$mt=nL(function(O,j){return O-j},0);function Fmt(O){return O&&O.length?Ko(O,Zu):0}function Bmt(O,j){return O&&O.length?Ko(O,Or(j,2)):0}return Ve.after=spt,Ve.ary=y1e,Ve.assign=Ypt,Ve.assignIn=L1e,Ve.assignInWith=mL,Ve.assignWith=Kpt,Ve.at=Xpt,Ve.before=b1e,Ve.bind=xV,Ve.bindAll=tmt,Ve.bindKey=_1e,Ve.castArray=bpt,Ve.chain=m1e,Ve.chunk=Adt,Ve.compact=Rdt,Ve.concat=Ndt,Ve.cond=nmt,Ve.conforms=rmt,Ve.constant=LV,Ve.countBy=Fft,Ve.create=Zpt,Ve.curry=S1e,Ve.curryRight=E1e,Ve.debounce=C1e,Ve.defaults=Qpt,Ve.defaultsDeep=Jpt,Ve.defer=lpt,Ve.delay=cpt,Ve.difference=Odt,Ve.differenceBy=Ldt,Ve.differenceWith=Pdt,Ve.drop=kdt,Ve.dropRight=Mdt,Ve.dropRightWhile=Ddt,Ve.dropWhile=$dt,Ve.fill=Fdt,Ve.filter=jft,Ve.flatMap=Hft,Ve.flatMapDeep=Vft,Ve.flatMapDepth=Gft,Ve.flatten=d1e,Ve.flattenDeep=Bdt,Ve.flattenDepth=jdt,Ve.flip=upt,Ve.flow=amt,Ve.flowRight=omt,Ve.fromPairs=zdt,Ve.functions=oht,Ve.functionsIn=sht,Ve.groupBy=qft,Ve.initial=Hdt,Ve.intersection=Vdt,Ve.intersectionBy=Gdt,Ve.intersectionWith=qdt,Ve.invert=cht,Ve.invertBy=uht,Ve.invokeMap=Yft,Ve.iteratee=PV,Ve.keyBy=Kft,Ve.keys=zl,Ve.keysIn=Xu,Ve.map=cL,Ve.mapKeys=fht,Ve.mapValues=pht,Ve.matches=smt,Ve.matchesProperty=lmt,Ve.memoize=dL,Ve.merge=hht,Ve.mergeWith=P1e,Ve.method=cmt,Ve.methodOf=umt,Ve.mixin=kV,Ve.negate=fL,Ve.nthArg=fmt,Ve.omit=mht,Ve.omitBy=ght,Ve.once=dpt,Ve.orderBy=Xft,Ve.over=pmt,Ve.overArgs=fpt,Ve.overEvery=hmt,Ve.overSome=mmt,Ve.partial=TV,Ve.partialRight=w1e,Ve.partition=Zft,Ve.pick=vht,Ve.pickBy=k1e,Ve.property=z1e,Ve.propertyOf=gmt,Ve.pull=Xdt,Ve.pullAll=p1e,Ve.pullAllBy=Zdt,Ve.pullAllWith=Qdt,Ve.pullAt=Jdt,Ve.range=vmt,Ve.rangeRight=ymt,Ve.rearg=ppt,Ve.reject=ept,Ve.remove=eft,Ve.rest=hpt,Ve.reverse=CV,Ve.sampleSize=npt,Ve.set=bht,Ve.setWith=_ht,Ve.shuffle=rpt,Ve.slice=tft,Ve.sortBy=opt,Ve.sortedUniq=lft,Ve.sortedUniqBy=cft,Ve.split=Hht,Ve.spread=mpt,Ve.tail=uft,Ve.take=dft,Ve.takeRight=fft,Ve.takeRightWhile=pft,Ve.takeWhile=hft,Ve.tap=Rft,Ve.throttle=gpt,Ve.thru=lL,Ve.toArray=R1e,Ve.toPairs=M1e,Ve.toPairsIn=D1e,Ve.toPath=Cmt,Ve.toPlainObject=O1e,Ve.transform=Sht,Ve.unary=vpt,Ve.union=mft,Ve.unionBy=gft,Ve.unionWith=vft,Ve.uniq=yft,Ve.uniqBy=bft,Ve.uniqWith=_ft,Ve.unset=Eht,Ve.unzip=wV,Ve.unzipWith=h1e,Ve.update=Cht,Ve.updateWith=wht,Ve.values=dw,Ve.valuesIn=xht,Ve.without=Sft,Ve.words=B1e,Ve.wrap=ypt,Ve.xor=Eft,Ve.xorBy=Cft,Ve.xorWith=wft,Ve.zip=xft,Ve.zipObject=Tft,Ve.zipObjectDeep=Ift,Ve.zipWith=Aft,Ve.entries=M1e,Ve.entriesIn=D1e,Ve.extend=L1e,Ve.extendWith=mL,kV(Ve,Ve),Ve.add=xmt,Ve.attempt=j1e,Ve.camelCase=Rht,Ve.capitalize=$1e,Ve.ceil=Tmt,Ve.clamp=Tht,Ve.clone=_pt,Ve.cloneDeep=Ept,Ve.cloneDeepWith=Cpt,Ve.cloneWith=Spt,Ve.conformsTo=wpt,Ve.deburr=F1e,Ve.defaultTo=imt,Ve.divide=Imt,Ve.endsWith=Nht,Ve.eq=dh,Ve.escape=Oht,Ve.escapeRegExp=Lht,Ve.every=Bft,Ve.find=zft,Ve.findIndex=c1e,Ve.findKey=eht,Ve.findLast=Uft,Ve.findLastIndex=u1e,Ve.findLastKey=tht,Ve.floor=Amt,Ve.forEach=g1e,Ve.forEachRight=v1e,Ve.forIn=nht,Ve.forInRight=rht,Ve.forOwn=iht,Ve.forOwnRight=aht,Ve.get=RV,Ve.gt=xpt,Ve.gte=Tpt,Ve.has=lht,Ve.hasIn=NV,Ve.head=f1e,Ve.identity=Zu,Ve.includes=Wft,Ve.indexOf=Udt,Ve.inRange=Iht,Ve.invoke=dht,Ve.isArguments=p2,Ve.isArray=di,Ve.isArrayBuffer=Ipt,Ve.isArrayLike=Ku,Ve.isArrayLikeObject=$s,Ve.isBoolean=Apt,Ve.isBuffer=ny,Ve.isDate=Rpt,Ve.isElement=Npt,Ve.isEmpty=Opt,Ve.isEqual=Lpt,Ve.isEqualWith=Ppt,Ve.isError=IV,Ve.isFinite=kpt,Ve.isFunction=Bv,Ve.isInteger=x1e,Ve.isLength=pL,Ve.isMap=T1e,Ve.isMatch=Mpt,Ve.isMatchWith=Dpt,Ve.isNaN=$pt,Ve.isNative=Fpt,Ve.isNil=jpt,Ve.isNull=Bpt,Ve.isNumber=I1e,Ve.isObject=ls,Ve.isObjectLike=Ss,Ve.isPlainObject=R4,Ve.isRegExp=AV,Ve.isSafeInteger=zpt,Ve.isSet=A1e,Ve.isString=hL,Ve.isSymbol=Qd,Ve.isTypedArray=uw,Ve.isUndefined=Upt,Ve.isWeakMap=Hpt,Ve.isWeakSet=Vpt,Ve.join=Wdt,Ve.kebabCase=Pht,Ve.last=Yf,Ve.lastIndexOf=Ydt,Ve.lowerCase=kht,Ve.lowerFirst=Mht,Ve.lt=Gpt,Ve.lte=qpt,Ve.max=Rmt,Ve.maxBy=Nmt,Ve.mean=Omt,Ve.meanBy=Lmt,Ve.min=Pmt,Ve.minBy=kmt,Ve.stubArray=DV,Ve.stubFalse=$V,Ve.stubObject=bmt,Ve.stubString=_mt,Ve.stubTrue=Smt,Ve.multiply=Mmt,Ve.nth=Kdt,Ve.noConflict=dmt,Ve.noop=MV,Ve.now=uL,Ve.pad=Dht,Ve.padEnd=$ht,Ve.padStart=Fht,Ve.parseInt=Bht,Ve.random=Aht,Ve.reduce=Qft,Ve.reduceRight=Jft,Ve.repeat=jht,Ve.replace=zht,Ve.result=yht,Ve.round=Dmt,Ve.runInContext=bt,Ve.sample=tpt,Ve.size=ipt,Ve.snakeCase=Uht,Ve.some=apt,Ve.sortedIndex=nft,Ve.sortedIndexBy=rft,Ve.sortedIndexOf=ift,Ve.sortedLastIndex=aft,Ve.sortedLastIndexBy=oft,Ve.sortedLastIndexOf=sft,Ve.startCase=Vht,Ve.startsWith=Ght,Ve.subtract=$mt,Ve.sum=Fmt,Ve.sumBy=Bmt,Ve.template=qht,Ve.times=Emt,Ve.toFinite=jv,Ve.toInteger=bi,Ve.toLength=N1e,Ve.toLower=Wht,Ve.toNumber=Kf,Ve.toSafeInteger=Wpt,Ve.toString=Da,Ve.toUpper=Yht,Ve.trim=Kht,Ve.trimEnd=Xht,Ve.trimStart=Zht,Ve.truncate=Qht,Ve.unescape=Jht,Ve.uniqueId=wmt,Ve.upperCase=emt,Ve.upperFirst=OV,Ve.each=g1e,Ve.eachRight=v1e,Ve.first=f1e,kV(Ve,function(){var O={};return Xo(Ve,function(j,Z){Br.call(Ve.prototype,Z)||(O[Z]=j)}),O}(),{chain:!1}),Ve.VERSION=r,Cl(["bind","bindKey","curry","curryRight","partial","partialRight"],function(O){Ve[O].placeholder=Ve}),Cl(["drop","take"],function(O,j){Ai.prototype[O]=function(Z){Z=Z===n?1:Ds(bi(Z),0);var pe=this.__filtered__&&!j?new Ai(this):this.clone();return pe.__filtered__?pe.__takeCount__=Fl(Z,pe.__takeCount__):pe.__views__.push({size:Fl(Z,B),type:O+(pe.__dir__<0?"Right":"")}),pe},Ai.prototype[O+"Right"]=function(Z){return this.reverse()[O](Z).reverse()}}),Cl(["filter","map","takeWhile"],function(O,j){var Z=j+1,pe=Z==L||Z==D;Ai.prototype[O]=function(Re){var We=this.clone();return We.__iteratees__.push({iteratee:Or(Re,3),type:Z}),We.__filtered__=We.__filtered__||pe,We}}),Cl(["head","last"],function(O,j){var Z="take"+(j?"Right":"");Ai.prototype[O]=function(){return this[Z](1).value()[0]}}),Cl(["initial","tail"],function(O,j){var Z="drop"+(j?"":"Right");Ai.prototype[O]=function(){return this.__filtered__?new Ai(this):this[Z](1)}}),Ai.prototype.compact=function(){return this.filter(Zu)},Ai.prototype.find=function(O){return this.filter(O).head()},Ai.prototype.findLast=function(O){return this.reverse().find(O)},Ai.prototype.invokeMap=mi(function(O,j){return typeof O=="function"?new Ai(this):this.map(function(Z){return no(Z,O,j)})}),Ai.prototype.reject=function(O){return this.filter(fL(Or(O)))},Ai.prototype.slice=function(O,j){O=bi(O);var Z=this;return Z.__filtered__&&(O>0||j<0)?new Ai(Z):(O<0?Z=Z.takeRight(-O):O&&(Z=Z.drop(O)),j!==n&&(j=bi(j),Z=j<0?Z.dropRight(-j):Z.take(j-O)),Z)},Ai.prototype.takeRightWhile=function(O){return this.reverse().takeWhile(O).reverse()},Ai.prototype.toArray=function(){return this.take(B)},Xo(Ai.prototype,function(O,j){var Z=/^(?:filter|find|map|reject)|While$/.test(j),pe=/^(?:head|last)$/.test(j),Re=Ve[pe?"take"+(j=="last"?"Right":""):j],We=pe||/^find/.test(j);Re&&(Ve.prototype[j]=function(){var ct=this.__wrapped__,mt=pe?[1]:arguments,At=ct instanceof Ai,gn=mt[0],vn=At||di(ct),Cn=function(Fi){var Ji=Re.apply(Ve,Hu([Fi],mt));return pe&&Xn?Ji[0]:Ji};vn&&Z&&typeof gn=="function"&&gn.length!=1&&(At=vn=!1);var Xn=this.__chain__,pr=!!this.__actions__.length,Lr=We&&!Xn,xi=At&&!pr;if(!We&&vn){ct=xi?ct:new Ai(this);var Pr=O.apply(ct,mt);return Pr.__actions__.push({func:lL,args:[Cn],thisArg:n}),new su(Pr,Xn)}return Lr&&xi?O.apply(this,mt):(Pr=this.thru(Cn),Lr?pe?Pr.value()[0]:Pr.value():Pr)})}),Cl(["pop","push","shift","sort","splice","unshift"],function(O){var j=nc[O],Z=/^(?:push|sort|unshift)$/.test(O)?"tap":"thru",pe=/^(?:pop|shift)$/.test(O);Ve.prototype[O]=function(){var Re=arguments;if(pe&&!this.__chain__){var We=this.value();return j.apply(di(We)?We:[],Re)}return this[Z](function(ct){return j.apply(di(ct)?ct:[],Re)})}}),Xo(Ai.prototype,function(O,j){var Z=Ve[j];if(Z){var pe=Z.name+"";Br.call(V0,pe)||(V0[pe]=[]),V0[pe].push({name:j,func:Z})}}),V0[tL(n,v).name]=[{name:"wrapper",func:n}],Ai.prototype.clone=j8,Ai.prototype.reverse=JH,Ai.prototype.value=XC,Ve.prototype.at=Nft,Ve.prototype.chain=Oft,Ve.prototype.commit=Lft,Ve.prototype.next=Pft,Ve.prototype.plant=Mft,Ve.prototype.reverse=Dft,Ve.prototype.toJSON=Ve.prototype.valueOf=Ve.prototype.value=$ft,Ve.prototype.first=Ve.prototype.head,Vm&&(Ve.prototype[Vm]=kft),Ve},Kd=Qp();Rc?((Rc.exports=Kd)._=Kd,Hd._=Kd):bs._=Kd}).call(ns)})(cF,cF.exports);var Nn=cF.exports;const rm={getAccessTokenSilently:e=>!1,loginWithRedirect:e=>!1,logout:e=>!1,setAccessTokenSilently:e=>{rm.getAccessTokenSilently=e},setloginWithRedirect:e=>{rm.loginWithRedirect=e},setLogout:e=>{rm.logout=e}};var Er=(e=>(e.ERROR="error",e.SUCCESS="success",e.WARNING="warning",e.INFO="info",e))(Er||{}),Me=(e=>(e.IN_PROGRESS="in_progress",e.SUCCESS="success",e.ERROR="error",e.IDLE="idle",e))(Me||{}),Qs=(e=>(e[e.OK=200]="OK",e[e.CREATED=201]="CREATED",e[e.NOT_FOUND=404]="NOT_FOUND",e[e.CONFLICT=409]="CONFLICT",e[e.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",e[e.UNDEPLOYED_PIPELINE_ERROR_STATUS=591]="UNDEPLOYED_PIPELINE_ERROR_STATUS",e[e.BAD_REQUEST=400]="BAD_REQUEST",e))(Qs||{}),zn=(e=>(e.ADMIN="ADMIN",e.SEARCH_USER="SEARCH_USER",e.PIPELINE_STUDIO="PIPELINE_STUDIO",e))(zn||{});const uF={ADMIN:"Admin",SEARCH_USER:"Search User"};var gi=(e=>(e.PDF="application/pdf",e.CSV="text/csv",e.TXT="text/plain",e.DOCX="application/vnd.openxmlformats-officedocument.wordprocessingml.document",e.PPTX="application/vnd.openxmlformats-officedocument.presentationml.presentation",e.XLSX="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",e.XML="text/xml",e.HTML="text/html",e.MD="text/markdown",e.JSON="application/json",e.PNG="image/png",e.JPEG="image/jpeg",e.SVG="image/svg+xml",e))(gi||{}),bA=(e=>(e.MINUTE="minute",e.HOUR="hour",e.DAY="day",e.WEEK="week",e.MONTH="month",e.YEAR="year",e))(bA||{}),hc=(e=>(e.JSON="json",e.YAML="yaml",e.MARKDOWN="markdown",e.HTML="html",e.XML="xml",e.PLAIN_TEXT="plaintext",e.PYTHON="python",e))(hc||{});const MWe="https://api.cloud.deepset.ai",DWe="https://docs.cloud.deepset.ai/",zu=`${DWe}v2.0/`,tU=`${DWe}v1.0/`;var cs=(e=>(e.pdf="pdf",e.txt="txt",e.csv="csv",e.docx="docx",e.pptx="pptx",e.xlsx="xlsx",e.xml="xml",e.html="html",e.md="md",e.json="json",e))(cs||{});const Pon={pdf:gi.PDF,txt:gi.TXT,csv:gi.CSV,docx:gi.DOCX,pptx:gi.PPTX,xlsx:gi.XLSX,xml:gi.XML,html:gi.HTML,md:gi.MD,json:gi.JSON},tae={sessionExpMsg:"Session token has been expired. Log in again.",compareErrMsg:"Could not validate your credentials",notAuth:"Not authenticated"};var GE=(e=>(e.X_CLIENT_SOURCE="X-Client-Source",e.X_CLIENT_SOURCE_PATH="X-Client-Source-Path",e))(GE||{}),nU=(e=>(e.PROMPT_EXPLORER="prompt-explorer",e.DOC_CHAT="doc-chat",e.CHAT="chat",e))(nU||{});function Vh(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map(function(i){return"'"+i+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function qE(e){return!!e&&!!e[Qo]}function WE(e){var t;return!!e&&(function(n){if(!n||typeof n!="object")return!1;var r=Object.getPrototypeOf(n);if(r===null)return!0;var i=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===Uon}(e)||Array.isArray(e)||!!e[qCe]||!!(!((t=e.constructor)===null||t===void 0)&&t[qCe])||ipe(e)||ape(e))}function YE(e,t,n){n===void 0&&(n=!1),DT(e)===0?(n?Object.keys:A5)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,i){return t(i,r,e)})}function DT(e){var t=e[Qo];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:ipe(e)?2:ape(e)?3:0}function I5(e,t){return DT(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function kon(e,t){return DT(e)===2?e.get(t):e[t]}function $We(e,t,n){var r=DT(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function FWe(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function ipe(e){return jon&&e instanceof Map}function ape(e){return zon&&e instanceof Set}function dS(e){return e.o||e.t}function ope(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=jWe(e);delete t[Qo];for(var n=A5(t),r=0;r<n.length;r++){var i=n[r],a=t[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function spe(e,t){return t===void 0&&(t=!1),lpe(e)||qE(e)||!WE(e)||(DT(e)>1&&(e.set=e.add=e.clear=e.delete=Mon),Object.freeze(e),t&&YE(e,function(n,r){return spe(r,!0)},!0)),e}function Mon(){Vh(2)}function lpe(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Gg(e){var t=aae[e];return t||Vh(18,e),t}function Don(e,t){aae[e]||(aae[e]=t)}function nae(){return qN}function tW(e,t){t&&(Gg("Patches"),e.u=[],e.s=[],e.v=t)}function dF(e){rae(e),e.p.forEach($on),e.p=null}function rae(e){e===qN&&(qN=e.l)}function jCe(e){return qN={p:[],l:qN,h:e,m:!0,_:0}}function $on(e){var t=e[Qo];t.i===0||t.i===1?t.j():t.g=!0}function nW(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.O||Gg("ES5").S(t,e,r),r?(n[Qo].P&&(dF(t),Vh(4)),WE(e)&&(e=fF(t,e),t.l||pF(t,e)),t.u&&Gg("Patches").M(n[Qo].t,e,t.u,t.s)):e=fF(t,n,[]),dF(t),t.u&&t.v(t.u,t.s),e!==BWe?e:void 0}function fF(e,t,n){if(lpe(t))return t;var r=t[Qo];if(!r)return YE(t,function(s,l){return zCe(e,r,t,s,l,n)},!0),t;if(r.A!==e)return t;if(!r.P)return pF(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=ope(r.k):r.o,a=i,o=!1;r.i===3&&(a=new Set(i),i.clear(),o=!0),YE(a,function(s,l){return zCe(e,r,i,s,l,n,o)}),pF(e,i,!1),n&&e.u&&Gg("Patches").N(r,n,e.u,e.s)}return r.o}function zCe(e,t,n,r,i,a,o){if(qE(i)){var s=fF(e,i,a&&t&&t.i!==3&&!I5(t.R,r)?a.concat(r):void 0);if($We(n,r,s),!qE(s))return;e.m=!1}else o&&n.add(i);if(WE(i)&&!lpe(i)){if(!e.h.D&&e._<1)return;fF(e,i),t&&t.A.l||pF(e,i)}}function pF(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&spe(t,n)}function rW(e,t){var n=e[Qo];return(n?dS(n):e)[t]}function UCe(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function ib(e){e.P||(e.P=!0,e.l&&ib(e.l))}function iW(e){e.o||(e.o=ope(e.t))}function iae(e,t,n){var r=ipe(t)?Gg("MapSet").F(t,n):ape(t)?Gg("MapSet").T(t,n):e.O?function(i,a){var o=Array.isArray(i),s={i:o?1:0,A:a?a.A:nae(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},l=s,c=WN;o&&(l=[s],c=_A);var u=Proxy.revocable(l,c),d=u.revoke,f=u.proxy;return s.k=f,s.j=d,f}(t,n):Gg("ES5").J(t,n);return(n?n.A:nae()).p.push(r),r}function Fon(e){return qE(e)||Vh(22,e),function t(n){if(!WE(n))return n;var r,i=n[Qo],a=DT(n);if(i){if(!i.P&&(i.i<4||!Gg("ES5").K(i)))return i.t;i.I=!0,r=HCe(n,a),i.I=!1}else r=HCe(n,a);return YE(r,function(o,s){i&&kon(i.t,o)===s||$We(r,o,t(s))}),a===3?new Set(r):r}(e)}function HCe(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return ope(e)}function Bon(){function e(a,o){var s=i[a];return s?s.enumerable=o:i[a]=s={configurable:!0,enumerable:o,get:function(){var l=this[Qo];return WN.get(l,a)},set:function(l){var c=this[Qo];WN.set(c,a,l)}},s}function t(a){for(var o=a.length-1;o>=0;o--){var s=a[o][Qo];if(!s.P)switch(s.i){case 5:r(s)&&ib(s);break;case 4:n(s)&&ib(s)}}}function n(a){for(var o=a.t,s=a.k,l=A5(s),c=l.length-1;c>=0;c--){var u=l[c];if(u!==Qo){var d=o[u];if(d===void 0&&!I5(o,u))return!0;var f=s[u],p=f&&f[Qo];if(p?p.t!==d:!FWe(f,d))return!0}}var h=!!o[Qo];return l.length!==A5(o).length+(h?0:1)}function r(a){var o=a.k;if(o.length!==a.t.length)return!0;var s=Object.getOwnPropertyDescriptor(o,o.length-1);if(s&&!s.get)return!0;for(var l=0;l<o.length;l++)if(!o.hasOwnProperty(l))return!0;return!1}var i={};Don("ES5",{J:function(a,o){var s=Array.isArray(a),l=function(u,d){if(u){for(var f=Array(d.length),p=0;p<d.length;p++)Object.defineProperty(f,""+p,e(p,!0));return f}var h=jWe(d);delete h[Qo];for(var m=A5(h),g=0;g<m.length;g++){var v=m[g];h[v]=e(v,u||!!h[v].enumerable)}return Object.create(Object.getPrototypeOf(d),h)}(s,a),c={i:s?5:4,A:o?o.A:nae(),P:!1,I:!1,R:{},l:o,t:a,k:l,o:null,g:!1,C:!1};return Object.defineProperty(l,Qo,{value:c,writable:!0}),l},S:function(a,o,s){s?qE(o)&&o[Qo].A===a&&t(a.p):(a.u&&function l(c){if(c&&typeof c=="object"){var u=c[Qo];if(u){var d=u.t,f=u.k,p=u.R,h=u.i;if(h===4)YE(f,function(_){_!==Qo&&(d[_]!==void 0||I5(d,_)?p[_]||l(f[_]):(p[_]=!0,ib(u)))}),YE(d,function(_){f[_]!==void 0||I5(f,_)||(p[_]=!1,ib(u))});else if(h===5){if(r(u)&&(ib(u),p.length=!0),f.length<d.length)for(var m=f.length;m<d.length;m++)p[m]=!1;else for(var g=d.length;g<f.length;g++)p[g]=!0;for(var v=Math.min(f.length,d.length),y=0;y<v;y++)f.hasOwnProperty(y)||(p[y]=!0),p[y]===void 0&&l(f[y])}}}}(a.p[0]),t(a.p))},K:function(a){return a.i===4?n(a):r(a)}})}var VCe,qN,cpe=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",jon=typeof Map<"u",zon=typeof Set<"u",GCe=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",BWe=cpe?Symbol.for("immer-nothing"):((VCe={})["immer-nothing"]=!0,VCe),qCe=cpe?Symbol.for("immer-draftable"):"__$immer_draftable",Qo=cpe?Symbol.for("immer-state"):"__$immer_state",Uon=""+Object.prototype.constructor,A5=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,jWe=Object.getOwnPropertyDescriptors||function(e){var t={};return A5(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},aae={},WN={get:function(e,t){if(t===Qo)return e;var n=dS(e);if(!I5(n,t))return function(i,a,o){var s,l=UCe(a,o);return l?"value"in l?l.value:(s=l.get)===null||s===void 0?void 0:s.call(i.k):void 0}(e,n,t);var r=n[t];return e.I||!WE(r)?r:r===rW(e.t,t)?(iW(e),e.o[t]=iae(e.A.h,r,e)):r},has:function(e,t){return t in dS(e)},ownKeys:function(e){return Reflect.ownKeys(dS(e))},set:function(e,t,n){var r=UCe(dS(e),t);if(r?.set)return r.set.call(e.k,n),!0;if(!e.P){var i=rW(dS(e),t),a=i?.[Qo];if(a&&a.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(FWe(n,i)&&(n!==void 0||I5(e.t,t)))return!0;iW(e),ib(e)}return e.o[t]===n&&(n!==void 0||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return rW(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,iW(e),ib(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=dS(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){Vh(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Vh(12)}},_A={};YE(WN,function(e,t){_A[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),_A.deleteProperty=function(e,t){return _A.set.call(this,e,t,void 0)},_A.set=function(e,t,n){return WN.set.call(this,e[0],t,n,e[0])};var Hon=function(){function e(n){var r=this;this.O=GCe,this.D=!0,this.produce=function(i,a,o){if(typeof i=="function"&&typeof a!="function"){var s=a;a=i;var l=r;return function(m){var g=this;m===void 0&&(m=s);for(var v=arguments.length,y=Array(v>1?v-1:0),_=1;_<v;_++)y[_-1]=arguments[_];return l.produce(m,function(S){var C;return(C=a).call.apply(C,[g,S].concat(y))})}}var c;if(typeof a!="function"&&Vh(6),o!==void 0&&typeof o!="function"&&Vh(7),WE(i)){var u=jCe(r),d=iae(r,i,void 0),f=!0;try{c=a(d),f=!1}finally{f?dF(u):rae(u)}return typeof Promise<"u"&&c instanceof Promise?c.then(function(m){return tW(u,o),nW(m,u)},function(m){throw dF(u),m}):(tW(u,o),nW(c,u))}if(!i||typeof i!="object"){if((c=a(i))===void 0&&(c=i),c===BWe&&(c=void 0),r.D&&spe(c,!0),o){var p=[],h=[];Gg("Patches").M(i,c,p,h),o(p,h)}return c}Vh(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(c){for(var u=arguments.length,d=Array(u>1?u-1:0),f=1;f<u;f++)d[f-1]=arguments[f];return r.produceWithPatches(c,function(p){return i.apply(void 0,[p].concat(d))})};var o,s,l=r.produce(i,a,function(c,u){o=c,s=u});return typeof Promise<"u"&&l instanceof Promise?l.then(function(c){return[c,o,s]}):[l,o,s]},typeof n?.useProxies=="boolean"&&this.setUseProxies(n.useProxies),typeof n?.autoFreeze=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var t=e.prototype;return t.createDraft=function(n){WE(n)||Vh(8),qE(n)&&(n=Fon(n));var r=jCe(this),i=iae(this,n,void 0);return i[Qo].C=!0,rae(r),i},t.finishDraft=function(n,r){var i=n&&n[Qo],a=i.A;return tW(a,r),nW(void 0,a)},t.setAutoFreeze=function(n){this.D=n},t.setUseProxies=function(n){n&&!GCe&&Vh(20),this.O=n},t.applyPatches=function(n,r){var i;for(i=r.length-1;i>=0;i--){var a=r[i];if(a.path.length===0&&a.op==="replace"){n=a.value;break}}i>-1&&(r=r.slice(i+1));var o=Gg("Patches").$;return qE(n)?o(n,r):this.produce(n,function(s){return o(s,r)})},e}(),Rf=new Hon,Ms=Rf.produce;Rf.produceWithPatches.bind(Rf);Rf.setAutoFreeze.bind(Rf);Rf.setUseProxies.bind(Rf);Rf.applyPatches.bind(Rf);Rf.createDraft.bind(Rf);Rf.finishDraft.bind(Rf);function Hc(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var WCe=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),aW=function(){return Math.random().toString(36).substring(7).split("").join(".")},hF={INIT:"@@redux/INIT"+aW(),REPLACE:"@@redux/REPLACE"+aW(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+aW()}};function Von(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function upe(e,t,n){var r;if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Hc(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Hc(1));return n(upe)(e,t)}if(typeof e!="function")throw new Error(Hc(2));var i=e,a=t,o=[],s=o,l=!1;function c(){s===o&&(s=o.slice())}function u(){if(l)throw new Error(Hc(3));return a}function d(m){if(typeof m!="function")throw new Error(Hc(4));if(l)throw new Error(Hc(5));var g=!0;return c(),s.push(m),function(){if(g){if(l)throw new Error(Hc(6));g=!1,c();var y=s.indexOf(m);s.splice(y,1),o=null}}}function f(m){if(!Von(m))throw new Error(Hc(7));if(typeof m.type>"u")throw new Error(Hc(8));if(l)throw new Error(Hc(9));try{l=!0,a=i(a,m)}finally{l=!1}for(var g=o=s,v=0;v<g.length;v++){var y=g[v];y()}return m}function p(m){if(typeof m!="function")throw new Error(Hc(10));i=m,f({type:hF.REPLACE})}function h(){var m,g=d;return m={subscribe:function(y){if(typeof y!="object"||y===null)throw new Error(Hc(11));function _(){y.next&&y.next(u())}_();var S=g(_);return{unsubscribe:S}}},m[WCe]=function(){return this},m}return f({type:hF.INIT}),r={dispatch:f,subscribe:d,getState:u,replaceReducer:p},r[WCe]=h,r}function Gon(e){Object.keys(e).forEach(function(t){var n=e[t],r=n(void 0,{type:hF.INIT});if(typeof r>"u")throw new Error(Hc(12));if(typeof n(void 0,{type:hF.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Hc(13))})}function zWe(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];typeof e[i]=="function"&&(n[i]=e[i])}var a=Object.keys(n),o;try{Gon(n)}catch(s){o=s}return function(l,c){if(l===void 0&&(l={}),o)throw o;for(var u=!1,d={},f=0;f<a.length;f++){var p=a[f],h=n[p],m=l[p],g=h(m,c);if(typeof g>"u")throw c&&c.type,new Error(Hc(14));d[p]=g,u=u||g!==m}return u=u||a.length!==Object.keys(l).length,u?d:l}}function mF(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.length===0?function(r){return r}:t.length===1?t[0]:t.reduce(function(r,i){return function(){return r(i.apply(void 0,arguments))}})}function qon(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){return function(){var i=r.apply(void 0,arguments),a=function(){throw new Error(Hc(15))},o={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},s=t.map(function(l){return l(o)});return a=mF.apply(void 0,s)(i.dispatch),we(we({},i),{},{dispatch:a})}}}var gF="NOT_FOUND";function Won(e){var t;return{get:function(r){return t&&e(t.key,r)?t.value:gF},put:function(r,i){t={key:r,value:i}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function Yon(e,t){var n=[];function r(s){var l=n.findIndex(function(u){return t(s,u.key)});if(l>-1){var c=n[l];return l>0&&(n.splice(l,1),n.unshift(c)),c.value}return gF}function i(s,l){r(s)===gF&&(n.unshift({key:s,value:l}),n.length>e&&n.pop())}function a(){return n}function o(){n=[]}return{get:r,put:i,getEntries:a,clear:o}}var Kon=function(t,n){return t===n};function Xon(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;for(var i=n.length,a=0;a<i;a++)if(!e(n[a],r[a]))return!1;return!0}}function Zon(e,t){var n=typeof t=="object"?t:{equalityCheck:t},r=n.equalityCheck,i=r===void 0?Kon:r,a=n.maxSize,o=a===void 0?1:a,s=n.resultEqualityCheck,l=Xon(i),c=o===1?Won(l):Yon(o,l);function u(){var d=c.get(arguments);if(d===gF){if(d=e.apply(null,arguments),s){var f=c.getEntries(),p=f.find(function(h){return s(h.value,d)});p&&(d=p.value)}c.put(arguments,d)}return d}return u.clearCache=function(){return c.clear()},u}function Qon(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(r){return typeof r=="function"})){var n=t.map(function(r){return typeof r=="function"?"function "+(r.name||"unnamed")+"()":typeof r}).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return t}function Jon(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=function(){for(var o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];var c=0,u,d={memoizeOptions:void 0},f=s.pop();if(typeof f=="object"&&(d=f,f=s.pop()),typeof f!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof f+"]");var p=d,h=p.memoizeOptions,m=h===void 0?n:h,g=Array.isArray(m)?m:[m],v=Qon(s),y=e.apply(void 0,[function(){return c++,f.apply(null,arguments)}].concat(g)),_=e(function(){for(var C=[],w=v.length,x=0;x<w;x++)C.push(v[x].apply(null,arguments));return u=y.apply(null,C),u});return Object.assign(_,{resultFunc:f,memoizedResultFunc:y,dependencies:v,lastResult:function(){return u},recomputations:function(){return c},resetRecomputations:function(){return c=0}}),_};return i}var It=Jon(Zon);function UWe(e){var t=function(r){var i=r.dispatch,a=r.getState;return function(o){return function(s){return typeof s=="function"?s(i,a,e):o(s)}}};return t}var oae=UWe();oae.withExtraArgument=UWe;var HWe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),esn=function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(c){return function(u){return l([c,u])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(a=c[0]&2?i.return:c[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,c[1])).done)return a;switch(i=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){n.label=c[1];break}if(c[0]===6&&n.label<a[1]){n.label=a[1],a=c;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(c);break}a[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(u){c=[6,u],i=0}finally{r=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},YN=function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e},tsn=Object.defineProperty,nsn=Object.defineProperties,rsn=Object.getOwnPropertyDescriptors,YCe=Object.getOwnPropertySymbols,isn=Object.prototype.hasOwnProperty,asn=Object.prototype.propertyIsEnumerable,KCe=function(e,t,n){return t in e?tsn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},R5=function(e,t){for(var n in t||(t={}))isn.call(t,n)&&KCe(e,n,t[n]);if(YCe)for(var r=0,i=YCe(t);r<i.length;r++){var n=i[r];asn.call(t,n)&&KCe(e,n,t[n])}return e},oW=function(e,t){return nsn(e,rsn(t))},osn=function(e,t,n){return new Promise(function(r,i){var a=function(l){try{s(n.next(l))}catch(c){i(c)}},o=function(l){try{s(n.throw(l))}catch(c){i(c)}},s=function(l){return l.done?r(l.value):Promise.resolve(l.value).then(a,o)};s((n=n.apply(e,t)).next())})},ssn=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?mF:mF.apply(null,arguments)};function lsn(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var n=t;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return t===n}function N5(e,t){function n(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(t){var a=t.apply(void 0,r);if(!a)throw new Error("prepareAction did not return an object");return R5(R5({type:e,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:e,payload:r[0]}}return n.toString=function(){return""+e},n.type=e,n.match=function(r){return r.type===e},n}var csn=function(e){HWe(t,e);function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=e.apply(this,n)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e.prototype.concat.apply(this,n)},t.prototype.prepend=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return n.length===1&&Array.isArray(n[0])?new(t.bind.apply(t,YN([void 0],n[0].concat(this)))):new(t.bind.apply(t,YN([void 0],n.concat(this))))},t}(Array),usn=function(e){HWe(t,e);function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=e.apply(this,n)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e.prototype.concat.apply(this,n)},t.prototype.prepend=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return n.length===1&&Array.isArray(n[0])?new(t.bind.apply(t,YN([void 0],n[0].concat(this)))):new(t.bind.apply(t,YN([void 0],n.concat(this))))},t}(Array);function dsn(e){return typeof e=="boolean"}function fsn(){return function(t){return psn(t)}}function psn(e){e===void 0&&(e={});var t=e.thunk,n=t===void 0?!0:t;e.immutableCheck,e.serializableCheck,e.actionCreatorCheck;var r=new csn;return n&&(dsn(n)?r.push(oae):r.push(oae.withExtraArgument(n.extraArgument))),r}var hsn=!0;function msn(e){var t=fsn(),n=e||{},r=n.reducer,i=r===void 0?void 0:r,a=n.middleware,o=a===void 0?t():a,s=n.devTools,l=s===void 0?!0:s,c=n.preloadedState,u=c===void 0?void 0:c,d=n.enhancers,f=d===void 0?void 0:d,p;if(typeof i=="function")p=i;else if(lsn(i))p=zWe(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var h=o;typeof h=="function"&&(h=h(t));var m=qon.apply(void 0,h),g=mF;l&&(g=ssn(R5({trace:!hsn},typeof l=="object"&&l)));var v=new usn(m),y=v;Array.isArray(f)?y=YN([m],f):typeof f=="function"&&(y=f(v));var _=g.apply(void 0,y);return upe(p,u,_)}var gsn="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",vsn=function(e){e===void 0&&(e=21);for(var t="",n=e;n--;)t+=gsn[Math.random()*64|0];return t},ysn=["name","message","stack","code"],sW=function(){function e(t,n){this.payload=t,this.meta=n}return e}(),XCe=function(){function e(t,n){this.payload=t,this.meta=n}return e}(),bsn=function(e){if(typeof e=="object"&&e!==null){for(var t={},n=0,r=ysn;n<r.length;n++){var i=r[n];typeof e[i]=="string"&&(t[i]=e[i])}return t}return{message:String(e)}},Ut=function(){function e(t,n,r){var i=N5(t+"/fulfilled",function(c,u,d,f){return{payload:c,meta:oW(R5({},f||{}),{arg:d,requestId:u,requestStatus:"fulfilled"})}}),a=N5(t+"/pending",function(c,u,d){return{payload:void 0,meta:oW(R5({},d||{}),{arg:u,requestId:c,requestStatus:"pending"})}}),o=N5(t+"/rejected",function(c,u,d,f,p){return{payload:f,error:(r&&r.serializeError||bsn)(c||"Rejected"),meta:oW(R5({},p||{}),{arg:d,requestId:u,rejectedWithValue:!!f,requestStatus:"rejected",aborted:c?.name==="AbortError",condition:c?.name==="ConditionError"})}}),s=typeof AbortController<"u"?AbortController:function(){function c(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return c.prototype.abort=function(){},c}();function l(c){return function(u,d,f){var p=r?.idGenerator?r.idGenerator(c):vsn(),h=new s,m;function g(y){m=y,h.abort()}var v=function(){return osn(this,null,function(){var y,_,S,C,w,x,T;return esn(this,function(A){switch(A.label){case 0:return A.trys.push([0,4,,5]),C=(y=r?.condition)==null?void 0:y.call(r,c,{getState:d,extra:f}),_sn(C)?[4,C]:[3,2];case 1:C=A.sent(),A.label=2;case 2:if(C===!1||h.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return w=new Promise(function(I,R){return h.signal.addEventListener("abort",function(){return R({name:"AbortError",message:m||"Aborted"})})}),u(a(p,c,(_=r?.getPendingMeta)==null?void 0:_.call(r,{requestId:p,arg:c},{getState:d,extra:f}))),[4,Promise.race([w,Promise.resolve(n(c,{dispatch:u,getState:d,extra:f,requestId:p,signal:h.signal,abort:g,rejectWithValue:function(I,R){return new sW(I,R)},fulfillWithValue:function(I,R){return new XCe(I,R)}})).then(function(I){if(I instanceof sW)throw I;return I instanceof XCe?i(I.payload,p,c,I.meta):i(I,p,c)})])];case 3:return S=A.sent(),[3,5];case 4:return x=A.sent(),S=x instanceof sW?o(null,p,c,x.payload,x.meta):o(x,p,c),[3,5];case 5:return T=r&&!r.dispatchConditionRejection&&o.match(S)&&S.meta.condition,T||u(S),[2,S]}})})}();return Object.assign(v,{abort:g,requestId:p,arg:c,unwrap:function(){return v.then(KE)}})}}return Object.assign(l,{pending:a,rejected:o,fulfilled:i,typePrefix:t})}return e.withTypes=function(){return e},e}();function KE(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function _sn(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var dpe="listenerMiddleware";N5(dpe+"/add");N5(dpe+"/removeAll");N5(dpe+"/remove");var ZCe;typeof queueMicrotask=="function"&&queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis);Bon();var Ssn=Array.isArray,fpe=Ssn,Esn=typeof ns=="object"&&ns&&ns.Object===Object&&ns,Csn=Esn,wsn=Csn,xsn=typeof self=="object"&&self&&self.Object===Object&&self,Tsn=wsn||xsn||Function("return this")(),ppe=Tsn,Isn=ppe,Asn=Isn.Symbol,hpe=Asn,QCe=hpe,VWe=Object.prototype,Rsn=VWe.hasOwnProperty,Nsn=VWe.toString,rI=QCe?QCe.toStringTag:void 0;function Osn(e){var t=Rsn.call(e,rI),n=e[rI];try{e[rI]=void 0;var r=!0}catch{}var i=Nsn.call(e);return r&&(t?e[rI]=n:delete e[rI]),i}var Lsn=Osn,Psn=Object.prototype,ksn=Psn.toString;function Msn(e){return ksn.call(e)}var Dsn=Msn,JCe=hpe,$sn=Lsn,Fsn=Dsn,Bsn="[object Null]",jsn="[object Undefined]",ewe=JCe?JCe.toStringTag:void 0;function zsn(e){return e==null?e===void 0?jsn:Bsn:ewe&&ewe in Object(e)?$sn(e):Fsn(e)}var GWe=zsn;function Usn(e){return e!=null&&typeof e=="object"}var Hsn=Usn,Vsn=GWe,Gsn=Hsn,qsn="[object Symbol]";function Wsn(e){return typeof e=="symbol"||Gsn(e)&&Vsn(e)==qsn}var mpe=Wsn,Ysn=fpe,Ksn=mpe,Xsn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Zsn=/^\w*$/;function Qsn(e,t){if(Ysn(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Ksn(e)?!0:Zsn.test(e)||!Xsn.test(e)||t!=null&&e in Object(t)}var Jsn=Qsn;function eln(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var qWe=eln,tln=GWe,nln=qWe,rln="[object AsyncFunction]",iln="[object Function]",aln="[object GeneratorFunction]",oln="[object Proxy]";function sln(e){if(!nln(e))return!1;var t=tln(e);return t==iln||t==aln||t==rln||t==oln}var lln=sln,cln=ppe,uln=cln["__core-js_shared__"],dln=uln,lW=dln,twe=function(){var e=/[^.]+$/.exec(lW&&lW.keys&&lW.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function fln(e){return!!twe&&twe in e}var pln=fln,hln=Function.prototype,mln=hln.toString;function gln(e){if(e!=null){try{return mln.call(e)}catch{}try{return e+""}catch{}}return""}var vln=gln,yln=lln,bln=pln,_ln=qWe,Sln=vln,Eln=/[\\^$.*+?()[\]{}|]/g,Cln=/^\[object .+?Constructor\]$/,wln=Function.prototype,xln=Object.prototype,Tln=wln.toString,Iln=xln.hasOwnProperty,Aln=RegExp("^"+Tln.call(Iln).replace(Eln,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Rln(e){if(!_ln(e)||bln(e))return!1;var t=yln(e)?Aln:Cln;return t.test(Sln(e))}var Nln=Rln;function Oln(e,t){return e?.[t]}var Lln=Oln,Pln=Nln,kln=Lln;function Mln(e,t){var n=kln(e,t);return Pln(n)?n:void 0}var WWe=Mln,Dln=WWe,$ln=Dln(Object,"create"),rU=$ln,nwe=rU;function Fln(){this.__data__=nwe?nwe(null):{},this.size=0}var Bln=Fln;function jln(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var zln=jln,Uln=rU,Hln="__lodash_hash_undefined__",Vln=Object.prototype,Gln=Vln.hasOwnProperty;function qln(e){var t=this.__data__;if(Uln){var n=t[e];return n===Hln?void 0:n}return Gln.call(t,e)?t[e]:void 0}var Wln=qln,Yln=rU,Kln=Object.prototype,Xln=Kln.hasOwnProperty;function Zln(e){var t=this.__data__;return Yln?t[e]!==void 0:Xln.call(t,e)}var Qln=Zln,Jln=rU,ecn="__lodash_hash_undefined__";function tcn(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Jln&&t===void 0?ecn:t,this}var ncn=tcn,rcn=Bln,icn=zln,acn=Wln,ocn=Qln,scn=ncn;function $T(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}$T.prototype.clear=rcn;$T.prototype.delete=icn;$T.prototype.get=acn;$T.prototype.has=ocn;$T.prototype.set=scn;var lcn=$T;function ccn(){this.__data__=[],this.size=0}var ucn=ccn;function dcn(e,t){return e===t||e!==e&&t!==t}var fcn=dcn,pcn=fcn;function hcn(e,t){for(var n=e.length;n--;)if(pcn(e[n][0],t))return n;return-1}var iU=hcn,mcn=iU,gcn=Array.prototype,vcn=gcn.splice;function ycn(e){var t=this.__data__,n=mcn(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():vcn.call(t,n,1),--this.size,!0}var bcn=ycn,_cn=iU;function Scn(e){var t=this.__data__,n=_cn(t,e);return n<0?void 0:t[n][1]}var Ecn=Scn,Ccn=iU;function wcn(e){return Ccn(this.__data__,e)>-1}var xcn=wcn,Tcn=iU;function Icn(e,t){var n=this.__data__,r=Tcn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var Acn=Icn,Rcn=ucn,Ncn=bcn,Ocn=Ecn,Lcn=xcn,Pcn=Acn;function FT(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}FT.prototype.clear=Rcn;FT.prototype.delete=Ncn;FT.prototype.get=Ocn;FT.prototype.has=Lcn;FT.prototype.set=Pcn;var kcn=FT,Mcn=WWe,Dcn=ppe,$cn=Mcn(Dcn,"Map"),Fcn=$cn,rwe=lcn,Bcn=kcn,jcn=Fcn;function zcn(){this.size=0,this.__data__={hash:new rwe,map:new(jcn||Bcn),string:new rwe}}var Ucn=zcn;function Hcn(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Vcn=Hcn,Gcn=Vcn;function qcn(e,t){var n=e.__data__;return Gcn(t)?n[typeof t=="string"?"string":"hash"]:n.map}var aU=qcn,Wcn=aU;function Ycn(e){var t=Wcn(this,e).delete(e);return this.size-=t?1:0,t}var Kcn=Ycn,Xcn=aU;function Zcn(e){return Xcn(this,e).get(e)}var Qcn=Zcn,Jcn=aU;function eun(e){return Jcn(this,e).has(e)}var tun=eun,nun=aU;function run(e,t){var n=nun(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var iun=run,aun=Ucn,oun=Kcn,sun=Qcn,lun=tun,cun=iun;function BT(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}BT.prototype.clear=aun;BT.prototype.delete=oun;BT.prototype.get=sun;BT.prototype.has=lun;BT.prototype.set=cun;var uun=BT,YWe=uun,dun="Expected a function";function gpe(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(dun);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(gpe.Cache||YWe),n}gpe.Cache=YWe;var fun=gpe,pun=fun,hun=500;function mun(e){var t=pun(e,function(r){return n.size===hun&&n.clear(),r}),n=t.cache;return t}var gun=mun,vun=gun,yun=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,bun=/\\(\\)?/g,_un=vun(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(yun,function(n,r,i,a){t.push(i?a.replace(bun,"$1"):r||n)}),t}),Sun=_un;function Eun(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var Cun=Eun,iwe=hpe,wun=Cun,xun=fpe,Tun=mpe,Iun=1/0,awe=iwe?iwe.prototype:void 0,owe=awe?awe.toString:void 0;function KWe(e){if(typeof e=="string")return e;if(xun(e))return wun(e,KWe)+"";if(Tun(e))return owe?owe.call(e):"";var t=e+"";return t=="0"&&1/e==-Iun?"-0":t}var Aun=KWe,Run=Aun;function Nun(e){return e==null?"":Run(e)}var Oun=Nun,Lun=fpe,Pun=Jsn,kun=Sun,Mun=Oun;function Dun(e,t){return Lun(e)?e:Pun(e,t)?[e]:kun(Mun(e))}var $un=Dun,Fun=mpe,Bun=1/0;function jun(e){if(typeof e=="string"||Fun(e))return e;var t=e+"";return t=="0"&&1/e==-Bun?"-0":t}var zun=jun,Uun=$un,Hun=zun;function Vun(e,t){t=Uun(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Hun(t[n++])];return n&&n==r?e:void 0}var Gun=Vun,qun=Gun;function Wun(e,t,n){var r=e==null?void 0:qun(e,t);return r===void 0?n:r}var Yun=Wun;const Qr=qo(Yun);class G1{static navigate;static setNavigate(t){G1.navigate=t}}var qO=(e=>(e.SEARCH_QUERY="searchQuery",e.CHAT_QUERY="chatQuery",e.PROMPT_EXPLORER_QUERY="promptExplorerQuery",e))(qO||{});const XWe="PIPELINE/RESET_PIPELINE",ZWe="PIPELINE/RESET_PIPELINE_YAML",QWe="PIPELINE/RESET_NEW_PIPELINE_NAME",JWe="PIPELINE/FETCH_PIPELINE",eYe="PIPELINE/FETCH_PIPELINE_YAML",tYe="PIPELINE/RESET_FETCH_PIPELINE_YAML_STATUS",nYe="PIPELINE/SET_PIPELINE_YAML_V1",rYe="PIPELINE/SET_PIPELINE_YAML_V2",Kun="PIPELINE/SET_PIPELINE_INDEXING_YAML",Xun="PIPELINE/SET_PIPELINE_QUERY_YAML",iYe="PIPELINE/SET_PIPELINE_EDITED_STATE",aYe="PIPELINE/SET_INDEXING_PIPELINE_EDITED_STATE",oYe="PIPELINE/SET_QUERY_PIPELINE_EDITED_STATE",sae="PIPELINE/DELETE_PIPELINE",lae="PIPELINE/DELETE_MULTIPLE_PIPELINES",p7="PIPELINE/DEPLOY_PIPELINE",cae="PIPELINE/UNDEPLOY_PIPELINE",uae="PIPELINE/ACTIVATE_PIPELINE",h7="PIPELINE/CREATE_PIPELINE",sYe="PIPELINE/RESET_VALIDATE_PIPELINE_NAME",lYe="PIPELINE/VALIDATE_PIPELINE_YAML",cYe="PIPELINE/RUNTIME_ISSUE_DETECTION",uYe="PIPELINE/RESET_PIPELINE_ERRORS",dYe="PIPELINE/RESET_RENAME_PIPELINE_NAME_STATUS",m7="PIPELINE/UPDATE_PIPELINE_YAML",g7="PIPELINE/UPDATE_PIPELINE",v7="PIPELINE/FETCH_PIPELINES",fYe="PIPELINE/DUPLICATE_PIPELINE_V1",pYe="PIPELINE/DUPLICATE_PIPELINE_V2",hYe="PIPELINE/RESET_PIPELINE_MESSAGE",mYe="PIPELINE/SET_NEW_PIPELINE_NAME",Zun="PIPELINE/START_POLLING_PIPELINES_LIST",Qun="PIPELINE/STOP_POLLING_PIPELINES_LIST",Jun="PIPELINE/START_POLLING_DEPLOYED_PIPELINES",edn="PIPELINE/STOP_POLLING_DEPLOYED_PIPELINES",tdn="PIPELINE/START_POLLING_PIPELINE_STATUS",ndn="PIPELINE/STOP_POLLING_PIPELINE_STATUS",rdn="PIPELINE/START_POLLING_PIPELINE_LOGS",idn="PIPELINE/STOP_POLLING_PIPELINE_LOGS",adn="PIPELINE/START_POLLING_PIPELINE_INDEXING",odn="PIPELINE/STOP_POLLING_PIPELINE_INDEXING",gYe="PIPELINE/FETCH_PIPELINE_INDEXING",vYe="PIPELINE/EXPORT_PIPELINE_LOGS_CSV",dae="PIPELINE/PIPELINE_STATISTICS",mR="PIPELINE/PIPELINE_LATEST_QUERIES",y7="PIPELINE/GET_PIPELINE_LOGS",yYe="PIPELINE/CHECK_PIPELINE_LOGS_HEALTH",b7="PIPELINE/GENERATE_PROTOTYPE_LINK",fae="PIPELINE/DELETE_PROTOTYPE_LINK",vpe="PIPELINE/RESET_PROTOTYPE_LINK",bYe="PIPELINE/RESET_PIPELINE_DETAILS_STATE",_7="PIPELINE/GET_PIPELINE_PROTOTYPE",sdn="PIPELINE/UPDATE_PIPELINE_PROTOTYPE",ldn="PIPELINE/GET_PIPELINE_PROMPTS",_Ye="PIPELINE/RESET_PIPELINE_LATEST_QUERIES",S7="PIPELINE/GET_PIPELINE_TEMPLATES_BY_CATEGORY",E7="PIPELINE/GET_PIPELINE_TEMPLATES",SYe="PIPELINE/GET_PIPELINE_TEMPLATE_BY_NAME",EYe="PIPELINE/SET_ACTIVE_VERSION_TAB_TEMPLATES_LANDING_PAGE",CYe="PIPELINE/SELECT_PIPELINE_TEMPLATES_CATEGORY",wYe="PIPELINE/GET_MORE_LIKE_THIS_PIPELINE_TEMPLATES",xYe="PIPELINE/RESET_MORE_TEMPLATES_LIKE_THIS",TYe="PIPELINE/RESET_SELECTED_TEMPLATE",IYe="PIPELINE/SET_SELECTED_TEMPLATE",AYe="PIPELINE/SET_TEMPLATES_SEARCH_VALUE",RYe="PIPELINE/GET_PIPELINE_TEMPLATES_FILTER_TAGS",NYe="PIPELINE/SELECT_PIPELINE_TEMPLATES_FILTERS",OYe="PIPELINE/SELECT_PIPELINE_TEMPLATES_SORT_VALUE",LYe="PIPELINE/RESET_SELECTED_PIPELINE_TEMPLATES_FILTERS",PYe="PIPELINE/SET_ACTIVE_TAB_PIPELINE_DETAILS_PAGE",kYe="PIPELINE/SET_ACTIVE_TAB_PIPELINES_LANDING_PAGE",MYe="PIPELINE/SET_ACTIVE_TAB_YAML_EDITOR",DYe="PIPELINE/RESET_ACTIVE_TAB_YAML_EDITOR",$Ye="PIPELINE/RESET_ACTIVE_TAB_PIPELINE_DETAILS_PAGE",FYe="PIPELINE/SELECT_PIPELINES_LIST_SORT_VALUE",BYe="PIPELINE/SET_INDEXING_CODE",jYe="PIPELINE/SET_QUERY_CODE",zYe="PIPELINE/SET_DEEPSET_CLOUD_VERSION",UYe="PIPELINE/RESET_EDITED_CODE",HYe="PIPELINE/SET_INDEXING_YAML_EDITOR_DIFF",VYe="PIPELINE/SET_QUERY_YAML_EDITOR_DIFF",cdn="PIPELINE/EXPORT_PIPELINE_DOCUMENTS_CSV";var yc=(e=>(e.CREATED="CREATED",e.STARTED="STARTED",e.FAILED="FAILED",e.ENDED="ENDED",e))(yc||{}),Li=(e=>(e.PRODUCTION="PRODUCTION",e.DEVELOPMENT="DEVELOPMENT",e.DRAFT="DRAFT",e))(Li||{}),Rr=(e=>(e.V1="v1",e.V2="v2",e))(Rr||{}),fc=(e=>(e.INDEXING_YAML="indexing_yaml",e.QUERY_YAML="query_yaml",e))(fc||{}),_i=(e=>(e.RECOMMENDED="recommended",e.DOCUMENT_SEARCH="documentSearch",e.BASIC_QA="basicQA",e.ADVANCED_QA="advancedQA",e.VISUAL_QA="visualQA",e.CONVERSATIONAL="conversational",e.TEXT_ANALYSIS="textAnalysis",e.TEXT_TO_SQL="textToSQL",e))(_i||{}),C7=(e=>(e.RESULT="result",e.DELTA="delta",e.ERROR="error",e))(C7||{});const Bn="pending",Kt="fulfilled",Dn="rejected",GYe="SEARCH/SET_PIPELINE",w7="SEARCH",qYe="SEARCH/APPEND_SEARCH_STREAM",x7="SEARCH/SEND_CHAT_QUERY",WYe="SEARCH/APPEND_CHAT_STREAM",T7="SEARCH/QUERY_PROMPT_EXPLORER",YYe="SEARCH/APPEND_PROMPT_EXPLORER_QUERY_STREAM",KYe="SEARCH/ADD_PROMPT_EXPLORER_INFO_RESULT",XYe="SEARCH/RESET_RESULT",ZYe="SEARCH/RESET_QUERY_RESULT_PROMPT_EXPLORER",QYe="SEARCH/RESET_CHAT_RESULTS",I7="SEARCH/GET_PIPELINE_META",gR="SEARCH/GET_METADATA_VALUES",udn="SEARCH/CREATE_SEARCH_SESSION",pae="SEARCH/GET_SEARCH_SESSIONS",JYe="SEARCH/OPEN_REFERENCE_DRAWER",eKe="SEARCH/RESET_REFERENCE_DRAWER",tKe="SEARCH/TOGGLE_PROMPT_MODAL",nKe="SEARCH/SET_METADATA_FILTER_VALUES",rKe="SEARCH/SET_APPLIED_METADATA_FILTER_VALUES",iKe="SEARCH/TOGGLE_DEBUG_MODE";var ype=(e=>(e.GROUNDED="grounded",e.NOT_GROUNDED="not_grounded",e))(ype||{}),Mg=(e=>(e.DOWNLOAD="download",e.PREVIEW="preview",e.OPEN="open",e.DOCUMENT="document",e))(Mg||{}),R1=(e=>(e.VIEW_PROMPT="viewPrompt",e.VIEW_FILTERS="viewFilters",e))(R1||{});const ddn="USER/GET_USER",hae="USER/FETCH_USER_INFO",fdn="USER/SET_USER_INFO",pdn="USER/UPDATE_USER_INFO",hdn="USER/RESET_USER_INFO",aKe="USER/LOGIN",oKe="USER/LOGOUT",sKe="DASHBOARD/GET_SEARCH_COUNT",lKe="DASHBOARD/GET_WORKSPACE_STATS",A7="DASHBOARD/GET_REQUEST_HISTORY";var KN=(e=>(e.LIMITED="DEEPSET_STUDIO_WITH_LIMITS",e.STANDARD="FULL_DEEPSET_CLOUD",e))(KN||{});const cKe="ORGANIZATION/SET_ORGANIZATION_INFO",mdn="ORGANIZATION/RESET_ORGANIZATION_INFO",uKe="ORGANIZATION/FETCH_USERS",gdn="ORGANIZATION/INVITE_USER",vdn="ORGANIZATION/CHANGE_USER_ROLE",ydn="ORGANIZATION/REMOVE_USER",dKe="ORGANIZATION/RESET_ORGANIZATION_MESSAGE",fKe="ORGANIZATION/FETCH_API_KEYS",bdn="ORGANIZATION/DELETE_API_KEY",_dn="ORGANIZATION/GENERATE_API_KEY",pKe="ORGANIZATION/FETCH_MODEL_REGISTRY_TOKEN",R7="ORGANIZATION/POST_MODEL_REGISTRY_TOKEN",hKe="ORGANIZATION/DELETE_MODEL_REGISTRY_TOKEN",mKe="ORGANIZATION/FETCH_WORKSPACES",N7="ORGANIZATION/ADD_WORKSPACE",O7="ORGANIZATION/DELETE_WORKSPACE",bpe="ORGANIZATION/SET_CURRENT_WORKSPACE";var Fa=(e=>(e.huggingface="huggingface",e.openai="openai",e.cohere="cohere",e.aws="aws-bedrock",e.snowflake="snowflake",e.azureOpenai="azure-openai",e.azureAI="azure-document-intelligence",e.unstructured="unstructured",e.deepl="deepl",e.google="google",e.nvidia="nvidia",e.voyageai="voyage-ai",e.searchapi="searchapi",e))(Fa||{});const Sdn="LAYOUT/RESET_LAYOUT_STATE",Edn="SIDEBAR/UPDATE_SELECTED_KEYS",gKe="SIDEBAR/UPDATE_OPEN_KEYS",vKe="SIDEBAR/UPDATE_COLLAPSED",yKe="LAYOUT/UPDATE_ROUTE_NAME",bKe="LAYOUT/RESET_ROUTE_NAME";var Ga=(e=>(e.KEYWORD="KEYWORD",e.NUMERICAL="NUMERICAL",e.DATE="DATE",e.LIST="LIST",e))(Ga||{});const L7="DATA/GET_WORKSPACE_FILES",P7="DATA/DELETE_FILE",k7="DATA/DELETE_MULTIPLE_FILES",M7="DATA/DELETE_ALL_FILES",_Ke="DATA/RESET_FILES_MESSAGE",dE="DATA/DOWNLOAD_FILE",fE="DATA/GET_FILE_CONTENT",D7="DATA/UPDATE_FILE_META",SKe="DATA/RESET_FILE_CONTENT",EKe="DATA/SELECT_FILE_SORT_VALUE",CKe="DATA/SELECT_FILE_DOCUMENT",$7="DATA/GET_WORKSPACE_EVALSETS",F7="DATA/DELETE_EVALSET",B7="DATA/DELETE_MULTIPLE_EVALSETS",j7="DATA/EXPORT_EVALSET",z7="DATA/EXPORT_EVALSET_CSV",cW="DATA/IMPORT_EVALSET",wKe="DATA/RESET_EVALSET_MESSAGE",uW="DATA/GET_EVALSET_CONTENT",xKe="EXPERIMENTS/SELECT_SORT_VALUE",TKe="EXPERIMENTS/SELECT_PREDICTIONS_SORT_VALUE",IKe="EXPERIMENTS/RESET_EXPERIMENTS_MESSAGE",AKe="EXPERIMENTS/RESET_CURRENT_EXPERIMENT",mae="EXPERIMENTS/GET_EVALUATION_RUN",gae="EXPERIMENTS/GET_EXPERIMENTS",vae="EXPERIMENTS/GET_FILTER_TAGS",yae="EXPERIMENTS/GET_FILTER_STATUSES",bae="EXPERIMENTS/GET_FILTER_USERS",U7="EXPERIMENTS/CREATE_EVALUATION_RUN",H7="EXPERIMENTS/UPDATE_EVALUATION_RUN",V7="EXPERIMENTS/DELETE_EVALUATION_RUN",G7="EXPERIMENTS/DELETE_MULTIPLE_EVALUATION_RUNS",q7="EXPERIMENTS/START_EVALUATION_RUN",W7="EXPERIMENTS/START_MULTIPLE_EVALUATION_RUNS",Y7="EXPERIMENTS/SAVE_AND_START_EVALUATION_RUN",Cdn="EXPERIMENTS/START_POLLING_RUNS_STATUS",wdn="EXPERIMENTS/STOP_POLLING_RUNS_STATUS",xdn="EXPERIMENTS/START_POLLING_RUN_STATUS",Tdn="EXPERIMENTS/STOP_POLLING_RUN_STATUS",RKe="EXPERIMENTS/DOWNLOAD_EVALUATION_RUN",_ae="EXPERIMENTS/GET_RUN_PREDICTIONS",NKe="EXPERIMENTS/UPDATE_EVALUATION_RUN_COMMENT",OKe="EXPERIMENTS/GET_TAGS",Idn="EXPERIMENTS/RESET_NEW_EVALUATION_RUN_STATUS",LKe="UPLOAD/ADD_UPLOAD_FILES",PKe="UPLOAD/START_UPLOADING",kKe="UPLOAD/FINISH_UPLOADING",MKe="UPLOAD/RESET_UPLOAD_DATA";var Yc=(e=>(e.uploading="uploading",e.success="success",e.error="error",e))(Yc||{}),Dg=(e=>(e.FILE="file",e.DOCUMENT="document",e))(Dg||{});const Adn="GUIDED_WORKFLOW/RESET_STATE",Rdn="GUIDED_WORKFLOW/SET_TASK",Ndn="GUIDED_WORKFLOW/SET_CURRENT_STEP",Odn="GUIDED_WORKFLOW/RESET_PIPELINE_NAME_VALIDATION_STATUS",Ldn="GUIDED_WORKFLOW/SET_PIPELINE_TEMPLATE",Pdn="GUIDED_WORKFLOW/SET_PIPELINE_NAME",dW="GUIDED_WORKFLOW/VALIDATE_PIPELINE_NAME",fW="GUIDED_WORKFLOW/SAVE_AND_DEPLOY_GUIDED_WORKFLOW_PIPELINE",pW="GUIDED_WORKFLOW/TRY_AGAIN_DEPLOY_GUIDED_WORKFLOW_PIPELINE",oU="NOTIFICATION/ADD_NOTIFICATION",DKe="NOTIFICATION/ADD_SEQUENTIAL_NOTIFICATION",kdn="NOTIFICATION/RESET_NOTIFICATIONS";var x1=(e=>(e.Message="message",e.Notification="notification",e))(x1||{}),yn=(e=>(e.Info="info",e.Success="success",e.Error="error",e.Warning="warning",e.Loading="loading",e))(yn||{}),mm=(e=>(e[e.short=3]="short",e[e.default=4.5]="default",e[e.long=7]="long",e[e.infinite=0]="infinite",e))(mm||{});const Sae="PROMPT_EXPLORER/GET_CUSTOM_PROMPT_TEMPLATES",K7="PROMPT_EXPLORER/CREATE_CUSTOM_PROMPT_TEMPLATE",X7="PROMPT_EXPLORER/UPDATE_CUSTOM_PROMPT_TEMPLATE",Z7="PROMPT_EXPLORER/DELETE_CUSTOM_PROMPT_TEMPLATE",Eae="PROMPT_EXPLORER/GET_PUBLIC_PROMPT_TEMPLATES",$Ke="PROMPT_EXPLORER/SELECT_PROMPT_TEMPLATES_SORT_VALUE",FKe="PROMPT_EXPLORER/GET_PROMPT_TEMPLATES_FILTER_TAGS",BKe="PROMPT_EXPLORER/GET_PROMPT_TEMPLATES_FILTER_USER",vR="PROMPT_EXPLORER/UPDATE_PIPELINE_PROMPT";var vf=(e=>(e.CUSTOM="custom",e.DEEPSET="deepset",e))(vf||{}),jKe=(e=>(e.DELETE="delete",e))(jKe||{});const Cae="LABELING/GET_LABELING_PROJECTS",Q7="LABELING/CREATE_LABELING_PROJECT",wae="LABELING/GET_LABELING_PROJECT",zKe="LABELING/GET_LABELING_PROJECT_STATS",UKe="LABELING/GET_LABELING_PROJECT_CREATOR",HKe="LABELING/GET_LABELING_PROJECT_LAST_EDITOR",J7="LABELING/UPDATE_LABELING_PROJECT",xae="LABELING/DELETE_LABELING_PROJECT",VKe="LABELING/CREATE_DOCUMENT_RETRIEVAL_LABEL",GKe="LABELING/UPDATE_DOCUMENT_RETRIEVAL_LABEL",Mdn="LABELING/EXPORT_LABELS",eM="LABELING/GET_LABELING_PROJECT_LABELS",tM="LABELING/GET_LABELING_PROJECT_LABELS_AS_LABELED_RESULTS",nM="LABELING/GET_LABELING_PROJECT_LABELS_AS_SEARCH_RESULT",qKe="LABELING/RESET_LABELING_PROJECT_LABELS_AS_SEARCH_RESULT";var gb=(e=>(e.OVERVIEW="overview",e.SETTINGS="settings",e))(gb||{}),$y=(e=>(e.RELEVANT="RELEVANT",e.NOT_RELEVANT="NOT_RELEVANT",e.UNDECIDED="UNDECIDED",e))($y||{});const WKe="OBSERVABILITY/GET_OBSERVABILITY_METRIC_VALUE",YKe="OBSERVABILITY/SELECT_OBSERVABILITY_PIPELIBNE",KKe="OBSERVABILITY/SELECT_OBSERVABILITY_DATE_RANGE",XKe="OBSERVABILITY/RESET_SELECTED_OBSERVABILITY_DATE",ZKe="OBSERVABILITY/RESET_SELECTED_OBSERVABILITY_PIPELINE",Ddn="OBSERVABILITY/EXPORT_OBSERVABILITY_CHART";var QKe=(e=>(e.GROUNDEDNESS="groundedness",e.TOTAL_QUERIES="totalqueries",e.DOCUMENT_REFERENCES_PER_RANK="referenceperrank",e))(QKe||{}),Xc=(e=>(e.TODAY="today",e.SEVEN_DAYS="7d",e.FOURTEEN_DAYS="14d",e.THIRTY_DAYS="30d",e.SIXTY_DAYS="60d",e.CUSTOM="custom",e))(Xc||{}),rM=(e=>(e.AREA="area",e.LINE="line",e.BAR="bar",e))(rM||{}),Cp=(e=>(e.CSV="csv",e.JPEG="jpeg",e.PDF="pdf",e.PNG="png",e))(Cp||{});const JKe="METERING/GET_USAGE_LIMITS",eXe="METERING/GET_USAGE_METRICS",tXe="METERING/GET_USAGE_HOURS",iM="METERING/GET_PIPELINES_USAGE",nXe="METERING/RESET_USAGE_DATA",$dn="METERING/SELECT_PIPELINES_USAGE_FILTERS",rXe="METERING/SELECT_PIPELINES_USAGE_SORT_VALUE";var Fh=(e=>(e.PRODUCTION="production",e.DEVELOPMENT="development",e.DRAFT="draft",e))(Fh||{}),Tae=(e=>(e.VALUE="value",e.CATEGORY="category",e.TIME="time",e.LOG="log",e))(Tae||{});const Fdn="SHARED_PROTOTYPE/SET_SHARED_PROTOTYPE_TOKEN_DATA",iXe="JOBS/GET_JOB",aM="JOBS/GET_JOBS",Bdn="JOBS/START_POLLING_JOB",jdn="JOBS/STOP_POLLING_JOB",zdn="JOBS/START_POLLING_JOBS",Udn="JOBS/STOP_POLLING_JOBS",oM="JOBS/GET_JOB_RESULTS",sM="JOBS/CREATE_JOB",aXe="JOBS/START_JOB",lM="JOBS/CREATE_AND_START_JOB",oXe="JOBS/START_MULTIPLE_JOBS",sXe="JOBS/DELETE_JOB",lXe="JOBS/DELETE_MULTIPLE_JOBS",cXe="JOBS/GET_QUERY_SET",cM="JOBS/GET_QUERY_SETS",uXe="JOBS/RESET_CREATE_JOB_STATE",dXe="JOBS/RESET_JOB_DETAILS_STATE",fXe="JOBS/SET_OPEN_CREATE_JOB_DRAWER",pXe="JOBS/SET_CREATE_JOB_STEP",hXe="JOBS/SELECT_JOB_TYPE",mXe="JOBS/SELECT_QUERY_RUN",gXe="JOBS/SELECT_QUERY_SET_FILE",vXe="JOBS/SELECT_JOB_PIPELINE",yXe="JOBS/SET_JOB_NAME",bXe="JOBS/SELECT_JOB_TAGS",_Xe="JOBS/GET_JOB_TAGS",Hdn="JOBS/RESET_SHARED_JOB_LINK",uM="JOBS/GENERATE_SHARED_JOB_LINK",dM="JOBS/GET_SHARED_JOB",Iae="JOBS/REVOKE_SHARED_JOB_LINK",Vdn="JOBS/UPDATE_SHARED_JOB",Gdn="JOBS/EXPORT_JOB_RESULTS",SXe="JOBS/SELECT_JOB_LIST_SORT_VALUE",EXe="JOBS/GET_JOB_LIST_FILTER_USER",CXe="JOBS/GET_JOB_LIST_FILTER_TAGS",wXe="JOBS/GET_JOB_RESULTS_FILTER_FILES",xXe="JOBS/SELECT_RESULTS_SORT_VALUE";var TXe=(e=>(e[e.SELECT_JOB=0]="SELECT_JOB",e[e.SELECT_QUERY_SET=1]="SELECT_QUERY_SET",e[e.SELECT_PIPELINE=2]="SELECT_PIPELINE",e[e.NAME_JOB=3]="NAME_JOB",e))(TXe||{}),_pe=(e=>(e.BATCH_QA="batchQA",e))(_pe||{}),vF=(e=>(e.ACROSS_FILES="ACROSS_FILES",e.AGAINST_EACH_FILE="PER_FILE",e))(vF||{}),qdn=(e=>(e.Details="DETAILS",e.Delete="DELETE",e.Edit="EDIT",e))(qdn||{}),yR=(e=>(e.JOB="job",e.PIPELINE="pipeline",e))(yR||{});const fM="PIPELINE_FEEDBACK/PROVIDE_SEARCH_RESULT_FEEDBACK",pM="PIPELINE_FEEDBACK/UPDATE_SEARCH_RESULT_FEEDBACK",IXe="PIPELINE_FEEDBACK/SET_PROVIDED_FEEDBACK_BY_RESULT_ID",hM="PIPELINE_FEEDBACK/GET_PIPELINE_FEEDBACK",AXe="PIPELINE_FEEDBACK/RESET_PIPELINE_FEEDBACK_DATA",Wdn="PIPELINE_FEEDBACK/EXPORT_PIPELINE_FEEDBACK_CSV",RXe="PIPELINE_FEEDBACK/GET_PIPELINE_FEEDBACK_FILTER_USER",NXe="PIPELINE_FEEDBACK/GET_PIPELINE_FEEDBACK_TAGS",OXe="PIPELINE_FEEDBACK/RESET_PIPELINE_FEEDBACK_TAGS",mM="PIPELINE_FEEDBACK/CREATE_PIPELINE_FEEDBACK_TAG",gM="PIPELINE_FEEDBACK/DELETE_PIPELINE_FEEDBACK_TAG",LXe="PIPELINE_FEEDBACK/SELECT_FEEDBACK_SORT_VALUE",PXe="PIPELINE_FEEDBACK/RESET_PROVIDED_FEEDBACK_STATUS";var Ia=(e=>(e.INACCURATE="INACCURATE",e.FAIRLY_ACCURATE="FAIRLY_ACCURATE",e.ACCURATE="ACCURATE",e))(Ia||{});const kXe="SECRETS_MANAGEMENT/RESET_SECRETS_MANAGEMENT_STATUSES",vM="SECRETS_MANAGEMENT/GET_ORGANIZATION_SECRETS",yM="SECRETS_MANAGEMENT/ADD_ORGANIZATION_SECRET",bM="SECRETS_MANAGEMENT/DELETE_ORGANIZATION_SECRET";function Ydn(e,t){const n=Qr(e,"given_name",""),r=Qr(e,"family_name",""),i=Qr(e,"email",""),a=Qr(e,"email_verified",!1),o=n&&r?`${n} ${r}`:i,s=Qr(t,"user_id",""),l=Qr(t,"organization.role",zn.SEARCH_USER)===zn.ADMIN,c=Qr(t,"organization.workspaces",[{name:"default",role:"developer"}]),u=Qr(t,"organization.role",zn.SEARCH_USER),d=Qr(t,"organization.organization_id",""),f=Qr(t,"organization.organization_type",KN.LIMITED);return{firstName:n,lastName:r,fullName:o,email:i,userID:s,isAdmin:l,isEmailVerified:a,workspaces:c,role:u,organization:d,isLimitedUser:f===KN.LIMITED}}function Kdn(e){const t=Qr(e,"given_name",""),n=Qr(e,"family_name",""),r=Qr(e,"email",""),i=t&&n?`${t} ${n}`:r,a=Qr(e,"user_id",""),o=Qr(e,"organization.role",zn.SEARCH_USER)===zn.ADMIN,s=Qr(e,"organization.workspaces",[{name:"default",role:"developer"}]),l=Qr(e,"organization.role",zn.SEARCH_USER),c=!1,u=Qr(e,"organization.organization_id",""),d=Qr(e,"organization.organization_type",KN.LIMITED);return{firstName:t,lastName:n,fullName:i,email:r,userID:a,isAdmin:o,workspaces:s,role:l,isEmailVerified:c,organization:u,isLimitedUser:d===KN.LIMITED}}function Xdn(e){return Qr(e,"data.data",[]).map(n=>Kdn(n))}const XN=e=>e?`${e.given_name} ${e.family_name}`:"",us={TITLE:"People in Your Organization",INVITE_USERS_LABEL:"Invite  Users",ENABLE_USER_LABEL:"Enable User",DISABLE_USER_LABEL:"Disable User",YOU_LABEL:"you",USERS_PER_PAGE:10,LOAD_MORE_FAILURE:"Loading more failed",CHANGE_LABEL:"Change",CANCEL_LABEL:"Cancel",REQUEST_ERROR:"Server request error.",MAKE_ADMIN_LABEL:"Make Admin",UNMAKE_ADMIN_LABEL:"Unmake Admin",CLOSE_LABEL:"Close",MAKE_ADMIN_SUCCESS:"This user is an Admin now.",MAKE_ADMIN_FAILURE:"There was an error while changing the user role to Admin",MAKE_ADMIN_MODAL_TEXT:["- Settings of an organization","- Upgrading your account"],SEND_INVITE_LABEL:"Send Invite",SEND_INVITES_LABEL:"Send Invites",INVITE_MODAL_SUBTITLE:"They'll be automatically added to your organization.",SKIP_VERIFICATION_LABEL:"Skip email verification",ADD_EMAIL_LABEL:"Add email",ADD_USER_LABEL:"Add user",INVITE_EMAIL_ERROR:"Enter the user's email address.",INVITE_VALIDATION_EMAIL_ERROR:"The input is not a valid email address.",NAME_PLACEHOLDER:"First name",SURNAME_PLACEHOLDER:"Family name",INVITE_NAME_ERROR:"First name is required.",INVITE_SURNAME_ERROR:"Family name is required.",INVITE_ROLE_ERROR:"Select a role",INVITE_EMAIL_SUBMIT_ERROR:"Not all users have been invited.",INVITE_EMAIL_SUBMIT_SUCCESS:"Invite has been sent, check your email.",VERIFICATION_EMAIL_SUBMIT_SUCCESS:"Verification email has been sent, check your email.",INVITE_MESSAGE_DURATION:5,MAX_EMAILS_COUNT:10,INVITE_MODAL_TITLE:"Invite people to",INVITE_MODAL_EMAILS_TITLE:"Email address",ROLE_ADMIN:"Admin",ROLE_USER:"User",REMOVE_USER_CONFIRMATION_MESSAGE:"Delete the user?",CONFIRM_BUTTON_LABEL:"Yes",CANCEL_BUTTON_LABEL:"No",REMOVE_USER_TOOLTIP:"Remove user",CHANGE_USER_ROLE_TOOLTIP:"Change role"},WO=10,YO="Done",t6r="Apply",gm="Cancel",MXe="Update",Zdn="Create",Qdn="Edit",Jdn="Back",n6r="Prev.",DXe="Next",Aae="Yes",Rae="No",$Xe="Delete",r6r="Custom",efn="Skip tour",i6r="Download as CSV",a6r="Prev. Source",o6r="Next Source",s6r="Scroll to result",l6r="Share",tfn="Upload",Spe="Submit",nfn="Settings",rfn="Copy",ifn="Save",afn="Add new",ofn="Add",sfn="New",lfn="Beta",FXe="Legacy",c6r="Source",cfn="Prompt",ufn="An unexpected error occured",dfn="Sorry for the inconvenience. If the problem persists, contact customer services.",ffn="Prototype not found",pfn="We couldn't find this prototype. Contact the prototype owner to check if it still exists and if your link is still valid.",Nae="Help",Epe="Optional",u6r="N/A",Oae="There is no relevant answer.",BXe="Preview",Lae="Answer",ZN="Reference",hfn="New Tag",QN="View Metadata",mfn="Metadata",gfn="Unsaved changes",vfn="Leave",yfn="Stay",bfn="Filters",_fn="No data available",Sfn="Switched to %workspace% workspace",Efn="Settings",Cfn="Style",d6r="Unable to load the file",jXe="documentation",zXe={[yc.CREATED]:{label:"Draft",color:"default"},[yc.STARTED]:{label:"Running",color:"processing"},[yc.FAILED]:{label:"Failed",color:"error"},[yc.ENDED]:{label:"Completed",color:"success"}},wfn="Type the name and press enter to add a new tag.",O_={INVALID_CHARACTERS:"Only use alphanumeric characters and underscore (_) or dash (-)."},xfn="Coming soon",yF=[{label:"File",key:Dg.FILE},{label:"Document",key:Dg.DOCUMENT}],Tfn="Shrink",Ifn="Expand",Afn="Raw %format%",Rfn=e=>{const t={limit:e?.limit,...e?.after&&{after:e?.after},...e?.page_number&&{page_number:e?.page_number}};return rn.get("/api/v1/users",{params:t})},Nfn=()=>rn.get("/api/v1/me"),Cpe=e=>rn.get(`api/v1/users/${e}`);var wpe="persist:",UXe="persist/FLUSH",xpe="persist/REHYDRATE",HXe="persist/PAUSE",VXe="persist/PERSIST",GXe="persist/PURGE",qXe="persist/REGISTER",Ofn=-1;function _M(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_M=function(n){return typeof n}:_M=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_M(e)}function swe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Lfn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?swe(n,!0).forEach(function(r){Pfn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):swe(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Pfn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kfn(e,t,n,r){r.debug;var i=Lfn({},n);return e&&_M(e)==="object"&&Object.keys(e).forEach(function(a){a!=="_persist"&&t[a]===n[a]&&(i[a]=e[a])}),i}function Mfn(e){var t=e.blacklist||null,n=e.whitelist||null,r=e.transforms||[],i=e.throttle||0,a="".concat(e.keyPrefix!==void 0?e.keyPrefix:wpe).concat(e.key),o=e.storage,s;e.serialize===!1?s=function(C){return C}:typeof e.serialize=="function"?s=e.serialize:s=Dfn;var l=e.writeFailHandler||null,c={},u={},d=[],f=null,p=null,h=function(C){Object.keys(C).forEach(function(w){v(w)&&c[w]!==C[w]&&d.indexOf(w)===-1&&d.push(w)}),Object.keys(c).forEach(function(w){C[w]===void 0&&v(w)&&d.indexOf(w)===-1&&c[w]!==void 0&&d.push(w)}),f===null&&(f=setInterval(m,i)),c=C};function m(){if(d.length===0){f&&clearInterval(f),f=null;return}var S=d.shift(),C=r.reduce(function(w,x){return x.in(w,S,c)},c[S]);if(C!==void 0)try{u[S]=s(C)}catch(w){console.error("redux-persist/createPersistoid: error serializing state",w)}else delete u[S];d.length===0&&g()}function g(){Object.keys(u).forEach(function(S){c[S]===void 0&&delete u[S]}),p=o.setItem(a,s(u)).catch(y)}function v(S){return!(n&&n.indexOf(S)===-1&&S!=="_persist"||t&&t.indexOf(S)!==-1)}function y(S){l&&l(S)}var _=function(){for(;d.length!==0;)m();return p||Promise.resolve()};return{update:h,flush:_}}function Dfn(e){return JSON.stringify(e)}function $fn(e){var t=e.transforms||[],n="".concat(e.keyPrefix!==void 0?e.keyPrefix:wpe).concat(e.key),r=e.storage;e.debug;var i;return e.deserialize===!1?i=function(o){return o}:typeof e.deserialize=="function"?i=e.deserialize:i=Ffn,r.getItem(n).then(function(a){if(a)try{var o={},s=i(a);return Object.keys(s).forEach(function(l){o[l]=t.reduceRight(function(c,u){return u.out(c,l,s)},i(s[l]))}),o}catch(l){throw l}else return})}function Ffn(e){return JSON.parse(e)}function Bfn(e){var t=e.storage,n="".concat(e.keyPrefix!==void 0?e.keyPrefix:wpe).concat(e.key);return t.removeItem(n,jfn)}function jfn(e){}function lwe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function qv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lwe(n,!0).forEach(function(r){zfn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lwe(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zfn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ufn(e,t){if(e==null)return{};var n=Hfn(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Hfn(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Vfn=5e3;function Gfn(e,t){var n=e.version!==void 0?e.version:Ofn;e.debug;var r=e.stateReconciler===void 0?kfn:e.stateReconciler,i=e.getStoredState||$fn,a=e.timeout!==void 0?e.timeout:Vfn,o=null,s=!1,l=!0,c=function(d){return d._persist.rehydrated&&o&&!l&&o.update(d),d};return function(u,d){var f=u||{},p=f._persist,h=Ufn(f,["_persist"]),m=h;if(d.type===VXe){var g=!1,v=function(T,A){g||(d.rehydrate(e.key,T,A),g=!0)};if(a&&setTimeout(function(){!g&&v(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},a),l=!1,o||(o=Mfn(e)),p)return qv({},t(m,d),{_persist:p});if(typeof d.rehydrate!="function"||typeof d.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return d.register(e.key),i(e).then(function(x){var T=e.migrate||function(A,I){return Promise.resolve(A)};T(x,n).then(function(A){v(A)},function(A){v(void 0,A)})},function(x){v(void 0,x)}),qv({},t(m,d),{_persist:{version:n,rehydrated:!1}})}else{if(d.type===GXe)return s=!0,d.result(Bfn(e)),qv({},t(m,d),{_persist:p});if(d.type===UXe)return d.result(o&&o.flush()),qv({},t(m,d),{_persist:p});if(d.type===HXe)l=!0;else if(d.type===xpe){if(s)return qv({},m,{_persist:qv({},p,{rehydrated:!0})});if(d.key===e.key){var y=t(m,d),_=d.payload,S=r!==!1&&_!==void 0?r(_,u,y,e):y,C=qv({},S,{_persist:qv({},p,{rehydrated:!0})});return c(C)}}}if(!p)return t(u,d);var w=t(m,d);return w===m?u:c(qv({},w,{_persist:p}))}}function cwe(e){return Yfn(e)||Wfn(e)||qfn()}function qfn(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function Wfn(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function Yfn(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function uwe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Pae(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uwe(n,!0).forEach(function(r){Kfn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uwe(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Kfn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var WXe={registry:[],bootstrapped:!1},Xfn=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:WXe,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case qXe:return Pae({},t,{registry:[].concat(cwe(t.registry),[n.key])});case xpe:var r=t.registry.indexOf(n.key),i=cwe(t.registry);return i.splice(r,1),Pae({},t,{registry:i,bootstrapped:i.length===0});default:return t}};function Zfn(e,t,n){var r=upe(Xfn,WXe,void 0),i=function(l){r.dispatch({type:qXe,key:l})},a=function(l,c,u){var d={type:xpe,payload:c,err:u,key:l};e.dispatch(d),r.dispatch(d)},o=Pae({},r,{purge:function(){var l=[];return e.dispatch({type:GXe,result:function(u){l.push(u)}}),Promise.all(l)},flush:function(){var l=[];return e.dispatch({type:UXe,result:function(u){l.push(u)}}),Promise.all(l)},pause:function(){e.dispatch({type:HXe})},persist:function(){e.dispatch({type:VXe,register:i,rehydrate:a})}});return o.persist(),o}var Qfn=epn;function bR(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?bR=function(n){return typeof n}:bR=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},bR(e)}function dwe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function fwe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dwe(n,!0).forEach(function(r){Jfn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dwe(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Jfn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function epn(e,t,n,r){r.debug;var i=fwe({},n);return e&&bR(e)==="object"&&Object.keys(e).forEach(function(a){if(a!=="_persist"&&t[a]===n[a]){if(tpn(n[a])){i[a]=fwe({},i[a],{},e[a]);return}i[a]=e[a]}}),i}function tpn(e){return e!==null&&!Array.isArray(e)&&bR(e)==="object"}var Tpe={},Ipe={};Ipe.__esModule=!0;Ipe.default=ipn;function SM(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?SM=function(n){return typeof n}:SM=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},SM(e)}function hW(){}var npn={getItem:hW,setItem:hW,removeItem:hW};function rpn(e){if((typeof self>"u"?"undefined":SM(self))!=="object"||!(e in self))return!1;try{var t=self[e],n="redux-persist ".concat(e," test");t.setItem(n,"test"),t.getItem(n),t.removeItem(n)}catch{return!1}return!0}function ipn(e){var t="".concat(e,"Storage");return rpn(t)?self[t]:npn}Tpe.__esModule=!0;Tpe.default=spn;var apn=opn(Ipe);function opn(e){return e&&e.__esModule?e:{default:e}}function spn(e){var t=(0,apn.default)(e);return{getItem:function(r){return new Promise(function(i,a){i(t.getItem(r))})},setItem:function(r,i){return new Promise(function(a,o){a(t.setItem(r,i))})},removeItem:function(r){return new Promise(function(i,a){i(t.removeItem(r))})}}}var bF=void 0,lpn=cpn(Tpe);function cpn(e){return e&&e.__esModule?e:{default:e}}var upn=(0,lpn.default)("local");bF=upn;const dpn=e=>{let t=e;const n=t<0,r=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(n&&(t=-t),t<1)return`${(n?"-":"")+t} B`;const i=Math.min(Math.floor(Math.log(t)/Math.log(1e3)),r.length-1);t=Number((t/1e3**i).toFixed(2));const a=r[i];return`${(n?"-":"")+t} ${a}`};function fpn(e){const t=e.split("-").slice(0,2).reverse();return t[0]=t[0].replace(/^0+/,""),t.join("/")}const KO=e=>{const n=(Nn.isString(e)?e:e.name).split(".");return n[n.length-1].toLowerCase()},pwe=(e,t)=>e.size?e.size/1024/1024<t:!1,SA=(e,t=1)=>!e&&e!==0||Number.isNaN(e)?0:+e.toFixed(t),pl=(e,t=!1,n={minimumFractionDigits:1,maximumFractionDigits:3})=>!e&&e!==0||Number.isNaN(e)?"":t?e.toLocaleString("en-US",{minimumFractionDigits:0,maximumFractionDigits:2}):e.toLocaleString("en-US",n),ppn=new Intl.PluralRules("en-US",{type:"ordinal"}),hpn=new Map([["one","st"],["two","nd"],["few","rd"],["other","th"]]),mpn=e=>{const t=ppn.select(e),n=hpn.get(t);return`${e}${n}`},kae=(e,t=!0)=>Intl.NumberFormat("en-US",{notation:"compact",compactDisplay:t?"short":"long"}).format(e);function gpn(e){const t=Qr(e,"file_count",0),n=Qr(e,"document_count",0),r=Qr(e,"search_request_count",0),i=Math.round(Qr(e,"average_response_time",0)*100)/100;return{fileCount:t,documentCount:n,averageResponseTime:i,searchRequestCount:r}}function vpn(e){return Qr(e,"data",[]).map(r=>({date:fpn(r.date),count:r.count}))}function ypn(e){const t=Qr(e,"data",[]),n=i=>{const a=Qr(i,"response[0].result.files",null)?.map(s=>s.name),o=Qr(i,"response[0].documents[0].file.name",null);return a||(o?[o]:["-"])};return t.map(i=>({key:Qr(i,"search_history_id","-"),query:Qr(i,"request.query","-"),topAnswer:Qr(i,"response[0].result.answer","-"),topFiles:n(i),pipeline:Qr(i,"pipeline.name","-"),user:`${Qr(i,"user.given_name","")} ${Qr(i,"user.family_name","")}`,time:`${pl(Qr(i,"duration","-"),!0)}s`}))}const YXe={workspaceStats:{fileCount:0,documentCount:0,averageResponseTime:0,searchRequestCount:0},searchCount:[],requestHistory:[],loadingRequestHistory:!1};function bpn(e=YXe,t){return Ms(e,n=>{const r=n;switch(t.type){case`${lKe}/${Kt}`:r.workspaceStats=gpn(t.payload);break;case`${sKe}/${Kt}`:r.searchCount=vpn(t.payload);break;case`${A7}/${Bn}`:r.loadingRequestHistory=!0;break;case`${A7}/${Kt}`:r.loadingRequestHistory=!1,r.requestHistory=ypn(t.payload);break;case`${A7}/${Dn}`:r.loadingRequestHistory=!1;break}})}const Wn=e=>Nn.get(e,"response.data.errors[0]",e?.message||"Unexpected error occured."),L_=e=>Nn.get(e,"response.status",Qs.INTERNAL_SERVER_ERROR),EM={evalsets:{data:[],has_more:!1,total:0},labels:[],message:{type:Er.INFO,content:""},actionStatus:Me.IDLE,fetchStatus:Me.IDLE};function _pn(e=EM,t){return Ms(e,n=>{const r=n;switch(t.type){case wKe:r.message=EM.message,r.actionStatus=Me.IDLE,r.fetchStatus=Me.IDLE;break;case`${F7}/${Bn}`:case`${B7}/${Bn}`:r.actionStatus=Me.IN_PROGRESS,r.message={type:Er.INFO,content:"Labels are being deleted."};break;case`${$7}/${Bn}`:r.fetchStatus=Me.IN_PROGRESS;break;case`${j7}/${Bn}`:case`${z7}/${Bn}`:case`${uW}/${Bn}`:r.message=EM.message,r.actionStatus=Me.IN_PROGRESS;break;case`${cW}/${Bn}`:r.message={type:Er.INFO,content:"Uploading evaluation sets."},r.actionStatus=Me.IN_PROGRESS;break;case`${$7}/${Kt}`:r.fetchStatus=Me.SUCCESS,r.evalsets=t.payload;break;case`${j7}/${Kt}`:case`${z7}/${Kt}`:case`${uW}/${Kt}`:r.actionStatus=Me.SUCCESS;break;case`${F7}/${Kt}`:r.actionStatus=Me.SUCCESS,r.message={type:Er.SUCCESS,content:"Evaluation set deleted successfully."};break;case`${B7}/${Kt}`:r.actionStatus=Me.SUCCESS,r.message={type:Er.SUCCESS,content:"Evaluation sets deleted successfully."};break;case`${cW}/${Kt}`:r.actionStatus=Me.SUCCESS,r.message={type:Er.SUCCESS,content:"Evaluation sets uploaded successfully."};break;case`${$7}/${Dn}`:r.fetchStatus=Me.ERROR,r.message={type:Er.ERROR,content:Wn(t.payload)};break;case`${uW}/${Dn}`:case`${j7}/${Dn}`:case`${z7}/${Dn}`:case`${F7}/${Dn}`:case`${B7}/${Dn}`:case`${cW}/${Dn}`:r.actionStatus=Me.ERROR,r.message={type:Er.ERROR,content:Wn(t.payload)};break}return r})}const hwe={TITLE:"Pipelines",DESCRIPTION:[{paragraph:"A pipeline is key to building an AI-powered app. Start by defining your use case, as this shapes your pipeline and data needs. Once defined, choose from our ready-made templates to get started."},{paragraph:"After creating a pipeline, deploy it to enable search. Deployment indexes your files, making them searchable. For more details, see the %documentationLink%."}]},KXe="Name",Ape="Created at",XXe="Status",ZXe="Created by",Spn="Service level",Epn="Accuracy measures the number of times the search returned at least one answer that got positive feedback.",Cpn="N/A",wpn="Create Pipeline",QXe="Edit pipeline name",JXe="Enter a unique pipeline name",mwe="Delete",eZe="Rename your pipeline",tZe="Define your pipeline",Rpe="Name your pipeline",nZe="Done",Npe="Create Pipeline",xpn="Delete pipeline?",Tpn="Delete pipelines?",Ipn="Undeploy pipeline?",Apn="No",Rpn="Deploy",gwe="Cancel",rZe="Undeploying",Npn="Duplicate",iZe="Prompt studio",Opn="Share",Lpn="Try again",Ppn="Details",kpn="Groundedness observability",Mpn="Edit",aZe="Rename",vwe="Undeploy",oZe="Activate",Dpn="This is a list of all the pipelines you created in this workspace.",$pn="This page shows all pipelines at the production service level in this workspace.",Fpn="This page shows all pipelines at the development service level in this workspace.",Bpn="You can see all your draft, undeployed pipelines here.",Ope="Failed to deploy",sZe="Deploying",lZe="Undeploying",Lpe="Failed to undeploy",jpn="Partially Indexed",zpn="Standby",Upn="Activating",Hpn="Export feedback",Vpn="Export documents",Gpn="The documents are being exported",qpn="The pipeline is being activated, please try again when the pipeline is ready.",Wpn="The pipeline is not ready, please try again when the pipeline is ready.",Ypn="Documents were successfully exported to %fileName%",Kpn="File Indexing Status",Xpn="Share as prototype",Zpn="Share your pipeline as a prototype to let users test it without the ability to make changes.",Qpn="Anyone with the link can view.",Jpn="This link has expired and is no longer accessible. To share this prototype again you need to generate another link.",ehn="Link Expires",thn="After the link expires, the prototype can no longer be accessed.",nhn="Add description",rhn="This description shows on the prototype page. Add guidelines on how to use the prototype or other useful information here.",ihn="Enable metadata filters",ahn="Allow users to browse sources",ohn="Link will appear here once generated",shn="Link copied",lhn="Link deleted",chn="Copy link",uhn="Copied",dhn="Generate link",fhn="Generated",phn="Generating Link",hhn="Delete link",mhn="Deleting",ghn="Yes",vhn="No",yhn="Are you sure you want to delete this link? This will block anyone from viewing this prototype.",bhn="Add your company logo",_hn="Your logo is shown in the bottom right corner of the page. Supported formats are: SVG, PNG, and JPG. The logo should be at a 1:1 aspect ratio (72px by 72px). The maximum file size is 10MB.",Shn="Brand color",Ehn="Use your main brand color for the answers' background and to highlight the Search field.",Chn="Pending Tasks",whn="Indexed",xhn="Failed",Thn="Skipped",Ihn="Total",Ahn="Name your pipeline",Rhn="Create Pipeline",cZe="Pipeline name",Nhn="Enter a unique pipeline name here",Ohn="Pipeline renamed",Lhn="Pipeline updated",Phn="Version",uZe=`${zu}docs/about-pipelines`,khn="pipelines",Mhn="To learn more, check %pipelines% in our documentation.",dZe="Date field is missing",Mae="Missing OpenAI key",Dhn="Connections",Ppe="Production",fZe="Production pipelines come with a 30 day time-to-standby period and one replica by default, making them more reliable for production scenarios.",$hn="Switching to the production service level increases the pipeline's time to standby and ensures one replica is always available. To learn more, see %documentation%.",Fhn=`${zu}docs/about-pipelines#pipeline-service-levels`,Bhn="Deploy your pipeline before changing its service level to production.",jhn="Switch",zhn="Switch off",Uhn="Switch to production",Hhn="Switch off production",Vhn="You're about to activate the production service level for the pipeline %pipelineName%. This will start tracking the production hours usage. You can reverse this action at any time. Switch to production?",Ghn="You're changing the service level of the pipeline %pipelineName% to “development”. Note that development pipelines are designed for testing and evaluating, not business critical workflows. Switch off production?",qhn="Deleting this pipeline is irreversible. Delete %pipelineName%?",Whn="You're about to delete a production service level pipeline. Deleting this pipeline is irreversible.",Yhn="Type “%pipelineName%” into the field to confirm.",Khn="You're about to delete %pipelineCount% pipelines %pipelineList% Deleting these pipelines is irreversible.",Xhn="To delete production service level “%pipelineName%” pipeline, type into the field to confirm.",Zhn="Undeploying %pipelineName%? will change its service level to draft.",Qhn="Undeploying a production pipeline will change its service level to draft.",Jhn="Type “%pipelineName%” into the field to confirm.",pZe="Studio",kpe=10,hZe=1,_F="default",ywe="created_at_desc";var P_=(e=>(e.UNDEPLOY_START_SUCCESS="Your pipeline is being undeployed.",e.DEPLOY_START_SUCCESS="Your pipeline is being deployed. Once it's deployed, it will start indexing your files.",e.DEPLOY_SUCCESS="Pipeline deployed successfully.",e.UNDEPLOY_SUCCESS="Pipeline undeployed successfully.",e.DELETE_SUCCESS="Pipeline deleted successfully.",e.MULTIPLE_DELETE_SUCCESS="Pipelines deleted successfully.",e.SAVE_SUCCESS="Pipeline saved successfully.",e.MISSIGN_PROPERTIES_ERROR="Missing properties in the request.",e))(P_||{}),qn=(e=>(e.UNDEPLOYED="UNDEPLOYED",e.DEPLOYED="DEPLOYED",e.IDLE="IDLE",e.DEPLOYMENT_IN_PROGRESS="DEPLOYMENT_IN_PROGRESS",e.UNDEPLOYMENT_IN_PROGRESS="UNDEPLOYMENT_IN_PROGRESS",e.DEPLOYMENT_SCHEDULED="DEPLOYMENT_SCHEDULED",e.UNDEPLOYMENT_SCHEDULED="UNDEPLOYMENT_SCHEDULED",e.UNDEPLOYMENT_FAILED="UNDEPLOYMENT_FAILED",e.DEPLOYMENT_FAILED="DEPLOYMENT_FAILED",e.IN_PROGRESS="IN_PROGRESS",e.ACTIVATING="ACTIVATING",e))(qn||{}),qs=(e=>(e.DEPLOYED="DEPLOYED",e.UNDEPLOYED="UNDEPLOYED",e))(qs||{}),Su=(e=>(e.INDEXED="Indexed",e.IDLE="Standby",e.NOT_INDEXED="Not Indexed",e.IN_PROGRESS="Indexing",e.PARTIALLY_INDEXED="Partially Indexed",e.FAILED_INDEXING="Failed to index",e))(Su||{}),uc=(e=>(e.DOCUMENT_NODE="document_node",e.ANSWER_NODE="answer_node",e.GENERATIVE_NODE="generative_node",e))(uc||{}),Aa=(e=>(e.DOCUMENT_RETRIEVAL="documentRetrieval",e.EXTRACTIVE_QUESTION_ANSWERING="extractive",e.GENERATIVE_QUESTION_ANSWERING="generative",e))(Aa||{}),xd=(e=>(e.DOCUMENT="DOCUMENT",e.EXTRACTIVE="EXTRACTIVE",e.GENERATIVE="GENERATIVE",e.CHAT="CHAT",e))(xd||{}),SF=(e=>(e.DOCUMENT="document",e.EXTRACTIVE_QUESTION_ANSWERING="extractive",e.GENERATIVE_QUESTION_ANSWERING="generative",e))(SF||{}),mZe=(e=>(e.PIPELINE_RECENTNESS_RANKER_MISSING_METADATA_ERROR="PIPELINE_RECENTNESS_RANKER_MISSING_METADATA_ERROR",e.PIPELINE_MISSING_OPENAI_TOKEN_ERROR="PIPELINE_MISSING_OPENAI_TOKEN_ERROR",e.PIPELINE_CONFIG_ERROR="PIPELINE_CONFIG_ERROR",e))(mZe||{}),CM=(e=>(e.INVALID_OPENAI_TOKEN_ERROR="Missing OpenAI key",e))(CM||{}),wM=(e=>(e.PRODUCTION="Production pipeline",e.DEVELOPMENT="Development pipeline",e.DRAFT="Draft pipeline",e))(wM||{});const emn={[Rr.V1]:"v1.0",[Rr.V2]:"v2.0"},bwe=[{value:Rr.V2,title:"deepset Cloud 2.0",description:"Flexible pipelines that allow loops and simultaneous flows with separate YAML configurations for indexing and query pipelines."},{value:Rr.V1,title:"deepset Cloud 1.0",tagLabel:"Legacy",description:"Linear pipelines with data flowing directly from one node to the next and one YAML configuration for both indexing and query pipelines."}];var Is=(e=>(e.Details="DETAILS",e.Observability="OBSERVABILITY",e.Edit="EDIT",e.Studio="STUDIO",e.Delete="DELETE",e.Duplicate="DUPLICATE",e.ExportFeedbackCSV="EXPORT_FEEDBACK_CSV",e.Undeploy="UNDEPLOY",e.PromptExplorer="PROMPT_EXPLORER",e.RenamePipeline="RENAME_PIPELINE",e.ExportDocuments="EXPORT_DOCUMENTS",e))(Is||{});const N1={ALL:"ALL",PRODUCTION:"PRODUCTION",DEVELOPMENT:"DEVELOPMENT",DRAFT:"DRAFT"},tmn=[{key:N1.ALL,label:"All"},{key:N1.PRODUCTION,label:"Production"},{key:N1.DEVELOPMENT,label:"Development"},{key:N1.DRAFT,label:"Drafts"}],nmn={[Li.PRODUCTION]:"Prod",[Li.DEVELOPMENT]:"Dev",[Li.DRAFT]:"Draft"},rmn=[{key:"created_at_desc",label:"Newest to oldest"},{key:"created_at_asc",label:"Oldest to newest"},{key:"created_by_asc",label:"Created by ascending"},{key:"created_by_desc",label:"Created by descending"}],imn={default:{field:"",order:""},created_at_desc:{field:"created_at",order:"DESC"},created_at_asc:{field:"created_at",order:"ASC"},created_by_asc:{field:"created_by/given_name",order:"ASC"},created_by_desc:{field:"created_by/given_name",order:"DESC"}},_we="Issues",e5={PIPELINE_NAME_ALREADY_USED:"This pipeline name already exists. Please use a different name ",EMPTY_PIPELINE_NAME:"You must add a pipeline name to create the pipeline",DATE_DRIVEN_FIELD_MISSING:"For this template to work, your files must have a metadata field with temporal data (like date, time or year). Enter the name of this field in the %dateMetaField% parameter of the RecentnessRanker node.",OPENAI_KEY_MISSING:"Paste your OpenAI API key in %connections% to use OpenAI models in your pipelines."},amn={INVALID_OPENAI_TOKEN_ERROR:"Go to %connections% and provide a valid OpenAI API key."},omn="Experiments",smn="Evaluate your pipeline systematically and use the resulting metrics to help you find the optimal pipeline configuration.",lmn="Here's an overview of all your experiments in this workspace. Use experiments to evaluate your pipeline.",Swe="No experiments? Let's create one!",cmn="First, %uploadFilesLink% and %prepareEvalSetLink%. Then, %creatPipelineLink% to evaluate. Once it's ready, go ahead and create your first experiment. If you need more help, see the %documentationLink%.",umn="You have everything you need for an experiment so you can go ahead and create one. All your experiments are displayed on this page. If you need more help, view the %documentationLink%.",dmn="Upload Files",fmn="Create Pipeline",pmn="Prepare the Evaluation Set",Ewe="documentation",hmn="Complete the steps above to create an experiment",mmn="We're updating deepset Cloud to bring you more flexible and high-performing pipelines. During this update, some pipelines may be temporarily incompatible with experiments.",mW="New Experiment",gZe="Start",gmn="Try Again",vZe="Pipeline",yZe="Evaluation Set",vmn="Dataset",ymn="These are the files your pipeline will search through during the experiment. The more files you choose, the more difficult a task your pipeline will have.",bmn="Naming",_mn="Choose Pipeline",Smn="Choose Evaluation Set",Emn="Choose the Dataset",Cmn="Change the Evaluation Set",wmn="Change the Pipeline",xmn="Edit Experiment",Tmn="Name Your Experiment",Imn="Create an Experiment",Amn="Save as Draft",Rmn="Start Experiment",Nmn="Done",Omn="Next",Lmn="Give your experiment a name",Pmn="Name",bZe="Tags",_Ze="Use keywords to describe your experiment",SZe="Delete this experiment?",EZe="Yes",CZe="No",kmn="Show Details",wZe="Delete",xZe="Edit",Mmn="Cancel",Dmn="Save",$mn="Start",Fmn="Tags",Bmn="Status",jmn="Created by",zmn="Add New Filter",Umn="Metrics",Hmn="Parameters",Vmn="Notes",Gmn="Console",Cwe="Pipeline",qmn="Pipeline Snapshot Date",Wmn="SAS Model Name",Ymn="Predictions",Kmn="Evaluation Set",Xmn="Preview",Zmn="Enter your notes here.",wwe="Name",xwe="Value",Qmn="Node Name",Jmn="Node Type",egn="Tags",tgn="Download CSV",ngn="Filters applied",rgn="Filters",ign="Filters",agn="This is a snapshot of your pipeline taken at %snapshotDate%. Your experiment uses this snapshot so editing the original pipeline %pipelineLink% doesn't affect the experiment.",Twe="Rank",ogn="Exact match",Iwe="F1 score",sgn="Context match",Awe="Context similarity",lgn="Eval mode",cgn="No Answer",Rwe="Groundedness";var TZe=(e=>(e.ANSWER="answer",e.DOCUMENT="document",e))(TZe||{}),Dae=(e=>(e.ALL_FILES="ALL_FILES",e.SUBSET="SUBSET",e))(Dae||{});const ugn=[{key:"ALL_FILES",label:"All files in your workspace"},{key:"SUBSET",label:"Choose subset of files"}],gW={integrated_mean_reciprocal_rank:"MRR int.",integrated_mean_average_precision:"mAP int.",integrated_recall_single_hit:"Recall SH int.",integrated_recall_multi_hit:"Recall MH int.",integrated_normal_discounted_cumulative_gain:"NDCG int.",integrated_precision:"Precision int.",isolated_exact_match:"EM iso.",integrated_exact_match:"EM int.",isolated_f1:"F1 iso.",integrated_f1:"F1 int.",isolated_sas:"SAS iso.",integrated_sas:"SAS int.",integrated_groundedness:"Groundedness int.",integrated_no_answer_ratio:"No Answer R. int.",integrated_query_latency:"Query Latency int."},dgn={integrated_mean_reciprocal_rank:"Mean Reciprocal Rank Integrated",integrated_mean_average_precision:"Mean Average Precision Integrated",integrated_recall_single_hit:"Recall Single Hit Integrated",integrated_recall_multi_hit:"Recall Multi Hit Integrated",integrated_normal_discounted_cumulative_gain:"Normalized Discounted Cumulative Gain Integrated",integrated_precision:"Precision Integrated",isolated_exact_match:"Exact Match Isolated",integrated_exact_match:"Exact Match Integrated",isolated_f1:"F1 Isolated",integrated_f1:"F1 Integrated",isolated_sas:"SAS Isolated",integrated_sas:"SAS Integrated",integrated_groundedness:"Groundedness Integrated",integrated_no_answer_ratio:"No Answer Ratio Integrated"},Nwe={integrated_mean_reciprocal_rank:"MRR (Mean Reciprocal Rank) measures the position (rank) of the first correctly retrieved document. Values range between 0 (no matches) and 1 (the system retrieved a correct document for all queries as the top result).",integrated_mean_average_precision:"mAP (Mean Average Precision) measures the average of the precision values for all correctly retrieved documents (at their rank). Values range between 0 and 1: 1 meaning that all correct documents are always on top.",integrated_recall_single_hit:"Recall Single Hit measures the completeness of correct documents among the retrieved ones. Values range between 0 and 1: 1 meaning that at least one correct document is always retrieved.",integrated_recall_multi_hit:"Recall Multi Hit measures the completeness of correct documents among the retrieved ones. Values range between 0 and 1: 1 meaning that all correct documents are always retrieved.",integrated_normal_discounted_cumulative_gain:"NDCG (Normalized Discounted Cumulative Gain) measures the gain obtained by each correctly retrieved document depending on its position (rank). Values range between 0 and 1: 1 meaning that that all correct documents are always on top.",integrated_precision:"Precision measures how precisely the system retrieves correct documents. Values range between 0 and 1: 1 meaning that only correct documents are always retrieved.",isolated_exact_match:"EM (Exact Match) measures the fraction of predicted answers being identical to the correct answer. Values range between 0 and 1: 1 meaning that all predicted answers are always identical to the correct ones. Isolated metrics show the upper bound the Reader is able to achieve by simulating a perfect Retriever.",integrated_exact_match:"EM (Exact Match) measures the fraction of predicted answers being identical to the correct answer. Values range between 0 and 1: 1 meaning that all predicted answers are always identical to the correct ones. Integrated metrics show the actual effectiveness of the Reader in combination with the Retriever.",isolated_f1:"The F1 score measures the word overlap between the predicted and the correct answer. Values range between 0 and 1: 1 meaning that all predicted words always match the correct ones. Whenever EM is 1, F1 is also 1. Isolated metrics show the upper bound the Reader is able to achieve by simulating a perfect Retriever.",integrated_f1:"The F1 score measures the word overlap between the predicted and the correct answer. Values range between 0 and 1: 1 meaning that all predicted words always match the correct ones. Whenever EM is 1, F1 is also 1. Integrated metrics show the actual effectiveness of the Reader in combination with the Retriever.",isolated_sas:"The Semantic Answer Similarity (SAS) tells you how similar the predicted answer is to the gold answer. 1 is very similar, 0 is not similar. Isolated means that it expresses the performance of the Reader node in isolation. The Reader receives only matching documents as input.",integrated_sas:"The Semantic Answer Similarity (SAS) tells you how similar the predicted answer is to the gold answer. 1 is very similar, 0 is not similar. Integrated means that it expresses the performance of the full pipeline and the Reader receives the documents from a Retriever.",integrated_groundedness:"Groundedness measures the degree to which an answer is supported by the retrieved documents. Values range between 0 and 1: 1 meaning that all predicted answers are completely supported by the retrieved documents.",integrated_no_answer_ratio:"The No Answer Ratio measures the fraction of queries for which the pipeline did not find an answer. Values range between 0 and 1: 1 meaning that no answer was found for any query.",integrated_query_latency:"The Query Latency measures the time it takes for the pipeline to process a query. The time is measured in seconds."},IP={INTEGRATED:"Integrated",ISOLATED:"Isolated"},vW={TAGS_ID:"tags/tag_id",STATUS:"status",CREATED_BY_USER_ID:"created_by/user_id"},Wv={RANK:"rank",EXACT_MATCH:"exact_match",F1:"f1",CONTEXT_MATCH:"context_match",CONTEXT_SIMILARITY:"context_similarity",EVAL_MODE:"eval_mode",GROUNDEDNESS:"groundedness",NO_ANSWER:"no_answer_ratio"},AP={INTEGRATED:"INTEGRATED",ISOLATED:"ISOLATED"},fgn="created_at_desc",yW="rank_asc",pgn=[{key:"created_at_desc",label:"Newest to oldest"},{key:"created_at_asc",label:"Oldest to newest"},{key:"name_asc",label:"Name A to Z"},{key:"name_desc",label:"Name Z to A"},{key:"integrated_f1_asc",label:"Integrated F1 score ascending"},{key:"integrated_f1_desc",label:"Integrated F1 score descending"},{key:"isolated_f1_asc",label:"Isolated F1 score ascending"},{key:"isolated_f1_desc",label:"Isolated F1 score descending"},{key:"integrated_recall_multi_hit_asc",label:"Recall multi hit ascending"},{key:"integrated_recall_multi_hit_desc",label:"Recall multi hit descending"},{key:"integrated_mean_reciprocal_rank_asc",label:"MRR ascending"},{key:"integrated_mean_reciprocal_rank_desc",label:"MRR descending"},{key:"integrated_groundedness_asc",label:"Groundedness ascending"},{key:"integrated_groundedness_desc",label:"Groundedness descending"},{key:"integrated_no_answer_ratio_asc",label:"No Answer Ratio ascending"},{key:"integrated_no_answer_ratio_desc",label:"No Answer Ratio descending"},{key:"integrated_query_latency_asc",label:"Query latency ascending"},{key:"integrated_query_latency_desc",label:"Query latency descending"}],hgn={[uc.ANSWER_NODE]:[{key:"rank_asc",label:"Rank ascending"},{key:"rank_desc",label:"Rank descending"},{key:"query_asc",label:"Query A to Z"},{key:"query_desc",label:"Query Z to A"},{key:"f1_context_scope_asc",label:"F1 score ascending"},{key:"f1_context_scope_desc",label:"F1 score descending"},{key:"answer_asc",label:"Predicted answer A to Z"},{key:"answer_desc",label:"Predicted answer Z to A"}],[uc.DOCUMENT_NODE]:[{key:"rank_asc",label:"Rank ascending"},{key:"rank_desc",label:"Rank descending"},{key:"query_asc",label:"Query A to Z"},{key:"query_desc",label:"Query Z to A"},{key:"context_similarity_asc",label:"Context similarity ascending"},{key:"context_similarity_desc",label:"Context similarity descending"}],[uc.GENERATIVE_NODE]:[{key:"rank_asc",label:"Rank ascending"},{key:"rank_desc",label:"Rank descending"},{key:"query_asc",label:"Query A to Z"},{key:"query_desc",label:"Query Z to A"},{key:"groundedness_asc",label:"Groundedness ascending"},{key:"groundedness_desc",label:"Groundedness descending"},{key:"answer_asc",label:"Predicted answer A to Z"},{key:"answer_desc",label:"Predicted answer Z to A"}]},IZe={created_at_desc:{field:"created_at",order:"DESC"},created_at_asc:{field:"created_at",order:"ASC"},name_asc:{field:"name",order:"ASC"},name_desc:{field:"name",order:"DESC"},f1_context_scope_asc:{field:"f1_context_scope",order:"ASC"},f1_context_scope_desc:{field:"f1_context_scope",order:"DESC"},integrated_f1_asc:{field:"integrated_f1",order:"ASC"},integrated_f1_desc:{field:"integrated_f1",order:"DESC"},isolated_f1_asc:{field:"isolated_f1",order:"ASC"},isolated_f1_desc:{field:"isolated_f1",order:"DESC"},integrated_recall_multi_hit_asc:{field:"integrated_recall_multi_hit",order:"ASC"},integrated_recall_multi_hit_desc:{field:"integrated_recall_multi_hit",order:"DESC"},integrated_mean_reciprocal_rank_asc:{field:"integrated_mean_reciprocal_rank",order:"ASC"},integrated_mean_reciprocal_rank_desc:{field:"integrated_mean_reciprocal_rank",order:"DESC"},rank_asc:{field:"rank",order:"ASC"},rank_desc:{field:"rank",order:"DESC"},query_asc:{field:"query",order:"ASC"},query_desc:{field:"query",order:"DESC"},answer_asc:{field:"answer",order:"ASC"},answer_desc:{field:"answer",order:"DESC"},context_similarity_asc:{field:"context_similarity",order:"ASC"},context_similarity_desc:{field:"context_similarity",order:"DESC"},groundedness_asc:{field:"groundedness",order:"ASC"},groundedness_desc:{field:"groundedness",order:"DESC"},integrated_groundedness_asc:{field:"integrated_groundedness",order:"ASC"},integrated_groundedness_desc:{field:"integrated_groundedness",order:"DESC"},integrated_no_answer_ratio_asc:{field:"integrated_no_answer_ratio",order:"ASC"},integrated_no_answer_ratio_desc:{field:"integrated_no_answer_ratio",order:"DESC"},integrated_query_latency_asc:{field:"integrated_query_latency",order:"ASC"},integrated_query_latency_desc:{field:"integrated_query_latency",order:"DESC"}},EA={experiments:{data:[],has_more:!1,total:0},filtersValues:{tags:[],statuses:[],users:[]},sortValue:fgn,predictionsSortValueByNode:{[uc.ANSWER_NODE]:yW,[uc.DOCUMENT_NODE]:yW,[uc.GENERATIVE_NODE]:yW},current:{evalRun:{comment:"",created_at:"",created_by:{given_name:"",family_name:"",user_id:""},eval_run_id:"",eval_results:[],logs:[],name:"",parameters:{pipeline_name:"",evaluation_set_name:"",pipeline_snapshot_at:"",pipeline_snapshot_yaml:""},status:yc.CREATED,tags:[],last_edited_at:null,last_edited_by:null},predictions:{}},workspaceTags:[],message:{type:Er.INFO,content:""},newEvalRunMessage:{type:Er.INFO,content:""},actionStatus:Me.IDLE,status:Me.IDLE,newEvalRunStatus:Me.IDLE};function mgn(e=EA,t){return Ms(e,n=>{const r=n;switch(t.type){case IKe:r.message=EA.message,r.newEvalRunMessage=EA.message,r.actionStatus=Me.IDLE,r.newEvalRunStatus=Me.IDLE;break;case AKe:r.current=EA.current;break;case Idn:r.newEvalRunStatus=Me.IDLE;break;case xKe:r.sortValue=t.payload;break;case TKe:{const{nodeType:i,value:a}=t.payload;r.predictionsSortValueByNode[i]=a;break}case`${q7}/${Bn}`:case`${W7}/${Bn}`:case`${H7}/${Bn}`:case`${V7}/${Bn}`:case`${G7}/${Bn}`:case`${Y7}/${Bn}`:r.actionStatus=Me.IN_PROGRESS;break;case`${U7}/${Bn}`:r.actionStatus=Me.IN_PROGRESS,r.newEvalRunStatus=Me.IN_PROGRESS;break;case`${mae}/${Kt}`:{r.status=Me.IDLE,r.current.evalRun.status===yc.STARTED&&t.payload.status===yc.ENDED&&(r.message={type:Er.SUCCESS,content:"Evaluation run completed successfully."}),r.current.evalRun=t.payload;break}case`${_ae}/${Kt}`:r.current.predictions=t.payload;break;case`${gae}/${Kt}`:r.status=Me.SUCCESS,r.experiments=t.payload;break;case`${vae}/${Kt}`:r.status=Me.SUCCESS,r.filtersValues={...r.filtersValues,tags:t.payload.map(({name:i,tag_id:a})=>({key:a,label:i}))};break;case`${yae}/${Kt}`:r.status=Me.SUCCESS,r.filtersValues={...r.filtersValues,statuses:t.payload.map(({status:i})=>({key:i,label:zXe[i].label}))};break;case`${bae}/${Kt}`:r.status=Me.SUCCESS,r.filtersValues={...r.filtersValues,users:t.payload.map(({given_name:i,user_id:a})=>({key:a,label:i}))};break;case`${U7}/${Kt}`:r.newEvalRunStatus=Me.SUCCESS,r.actionStatus=Me.SUCCESS,r.message={type:Er.SUCCESS,content:"Evaluation run created successfully."};break;case`${Y7}/${Kt}`:r.newEvalRunStatus=Me.SUCCESS,r.actionStatus=Me.SUCCESS,r.message={type:Er.SUCCESS,content:"Your experiment is running."};break;case`${q7}/${Kt}`:r.actionStatus=Me.SUCCESS,r.message={type:Er.SUCCESS,content:"Your experiment is running."};break;case`${W7}/${Kt}`:r.actionStatus=Me.SUCCESS,r.message={type:Er.SUCCESS,content:"Evaluation runs started."};break;case`${H7}/${Kt}`:r.actionStatus=Me.SUCCESS,r.message={type:Er.SUCCESS,content:"Evaluation run updated successfully."};break;case`${V7}/${Kt}`:r.actionStatus=Me.SUCCESS,r.message={type:Er.SUCCESS,content:"Evaluation run deleted successfully."};break;case`${G7}/${Kt}`:r.actionStatus=Me.SUCCESS,r.message={type:Er.SUCCESS,content:"Evaluation runs deleted successfully."};break;case`${OKe}/${Kt}`:r.workspaceTags=t.payload;break;case`${U7}/${Dn}`:case`${Y7}/${Dn}`:r.actionStatus=Me.ERROR,r.newEvalRunStatus=Me.ERROR,r.newEvalRunMessage={type:Er.ERROR,content:Wn(t.payload)};break;case`${q7}/${Dn}`:case`${W7}/${Dn}`:case`${V7}/${Dn}`:case`${G7}/${Dn}`:case`${NKe}/${Dn}`:case`${RKe}/${Dn}`:case`${H7}/${Dn}`:r.actionStatus=Me.ERROR,r.message={type:Er.ERROR,content:Wn(t.payload)};break;case`${mae}/${Dn}`:case`${gae}/${Dn}`:case`${vae}/${Dn}`:case`${yae}/${Dn}`:case`${bae}/${Dn}`:case`${_ae}/${Dn}`:r.status=Me.ERROR,r.message={type:Er.ERROR,content:Wn(t.payload)};break}return r})}const Owe={TITLE:"Files",DESCRIPTION:[{paragraph:"Upload the files your want your pipelines to run on. All pipelines in this workspace use the files you upload here. You can upload files in various formats, including text, Markdown, PDFs, JSON, and more. After uploading, you can preview your files and update their metadata, as needed."},{paragraph:"Alternatively, you can upload your data using the SDK or REST API. For details, see %documentationLink%."}]},AZe="Cancel",RZe="Yes",_R="No",ggn="Delete %total% file",vgn="Delete %total% files",ygn="Delete %total% eval set",bgn="Delete %total% eval sets",_gn="Delete %total% experiment",Sgn="Delete %total% experiments",Egn="Delete %total% pipeline",Cgn="Delete %total% pipelines",wgn="Are you sure you want to delete these?",NZe="Delete selected files?",OZe="Delete the file?",xgn="Are you sure you want to delete?",Tgn="Delete all files",Ign="Delete all files in your workspace?",Agn="This is where your files are listed. No files here? %uploadFilesButton% some.",Rgn="This is where your evaluation sets are listed. No data here? %uploadEvalSetsButton% an evaluation set and use it when creating experiments to evaluate your pipeline.",Lwe="Upload Files",LZe="Upload",Pwe="Upload Evaluation Sets",Ngn="Click or drag files to this area to upload.",Ogn="Preview",Lgn="During experiments, deepset Cloud verifies the labels from the evaluation set against the answers the pipeline returned. If the labels don't match the files, there's no way to evaluate a pipeline during experiments.",PZe="Delete",Pgn="Download",kgn="Download JSON",Mgn="Export as CSV",Dgn="Sort by:",$gn="Select",kZe="Clear filter",Fgn="Clear all",Bgn="Customize the columns",jgn="File",zgn="Showing %totalPerPage%",Ugn=" of %totalItems%",kwe="Metadata filters",Hgn="Clear all",Vgn="Apply",Ggn="Files deleted.",qgn="A single file cannot be larger than %sizeLimit%MB. You can use %documentationLink% to upload larger files.",Wgn="deepset Cloud SDK",Ygn="Metadata changes saved",Kgn=`${zu}docs/upload-files`,Xgn="Type",Zgn="Key",Qgn="Value",Jgn="Add metadata",evn="One or more fields are empty. You must fill them in to save the changes.",RP={[Ga.KEYWORD]:"Keyword",[Ga.NUMERICAL]:"Numerical",[Ga.DATE]:"Date",[Ga.LIST]:"List"},tvn=5,bW=10,nvn="created_at_desc",rvn=[{key:"created_at_desc",label:"Newest to oldest"},{key:"created_at_asc",label:"Oldest to newest"},{key:"name_asc",label:"Name (A to Z)"},{key:"name_desc",label:"Name (Z to A)"}],ivn={created_at_desc:{field:"created_at",order:"DESC"},created_at_asc:{field:"created_at",order:"ASC"},name_asc:{field:"name",order:"ASC"},name_desc:{field:"name",order:"DESC"}},CA={files:{data:[],has_more:!1,total:0},message:{type:Er.INFO,content:""},actionStatus:Me.IDLE,selectedFileDocument:null,fileContent:null,getFileContentStatus:Me.IDLE,fetchStatus:Me.IDLE,updateFileMetaStatus:Me.IDLE,sortValue:nvn};function avn(e=CA,t){return Ms(e,n=>{const r=n;switch(t.type){case _Ke:r.message=CA.message,r.actionStatus=Me.IDLE,r.fetchStatus=Me.IDLE;break;case SKe:r.fileContent=CA.fileContent,r.getFileContentStatus=Me.IDLE;break;case EKe:r.sortValue=t.payload;break;case CKe:r.selectedFileDocument=t.payload;break;case`${P7}/${Bn}`:case`${k7}/${Bn}`:case`${M7}/${Bn}`:r.actionStatus=Me.IN_PROGRESS,r.message={type:Er.INFO,content:"Files are being deleted."};break;case`${fE}/${Bn}`:r.getFileContentStatus=Me.IN_PROGRESS;break;case`${dE}/${Bn}`:r.message=CA.message,r.actionStatus=Me.IN_PROGRESS;break;case`${fE}/${Kt}`:r.getFileContentStatus=Me.SUCCESS,r.fileContent=t.payload;break;case`${fE}/${Dn}`:r.getFileContentStatus=Me.ERROR;break;case`${dE}/${Kt}`:r.actionStatus=Me.SUCCESS;break;case`${L7}/${Bn}`:r.fetchStatus=Me.IN_PROGRESS;break;case`${L7}/${Kt}`:r.fetchStatus=Me.SUCCESS,r.files=t.payload;break;case`${P7}/${Kt}`:case`${M7}/${Kt}`:case`${k7}/${Kt}`:r.actionStatus=Me.SUCCESS,r.message={type:Er.SUCCESS,content:Ggn};break;case`${L7}/${Dn}`:r.fetchStatus=Me.ERROR,r.message={type:Er.ERROR,content:Wn(t.payload)};break;case`${P7}/${Dn}`:case`${k7}/${Dn}`:case`${M7}/${Dn}`:case`${dE}/${Dn}`:r.actionStatus=Me.ERROR,r.message={type:Er.ERROR,content:Wn(t.payload)};break;case`${D7}/${Bn}`:r.updateFileMetaStatus=Me.IN_PROGRESS;break;case`${D7}/${Kt}`:r.updateFileMetaStatus=Me.SUCCESS;break;case`${D7}/${Dn}`:r.updateFileMetaStatus=Me.ERROR;break}return r})}var MZe=(e=>(e[e.SELECT_TASK=1]="SELECT_TASK",e[e.UPLOAD_DATA=2]="UPLOAD_DATA",e[e.SELECT_PIPELINE=3]="SELECT_PIPELINE",e[e.NAME_PIPELINE=4]="NAME_PIPELINE",e[e.DEPLOY_PIPELINE=5]="DEPLOY_PIPELINE",e))(MZe||{});const ovn="Step %currentStep% of %totalSteps%",svn={INVALID_CHARACTERS:O_.INVALID_CHARACTERS,PIPELINE_NAME_ALREADY_USED:"Use a different name as this one is taken."};let NP;const lvn=new Uint8Array(16);function cvn(){if(!NP&&(NP=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!NP))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return NP(lvn)}const uvn=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function dvn(e){return typeof e=="string"&&uvn.test(e)}const sc=[];for(let e=0;e<256;++e)sc.push((e+256).toString(16).slice(1));function fvn(e,t=0){return sc[e[t+0]]+sc[e[t+1]]+sc[e[t+2]]+sc[e[t+3]]+"-"+sc[e[t+4]]+sc[e[t+5]]+"-"+sc[e[t+6]]+sc[e[t+7]]+"-"+sc[e[t+8]]+sc[e[t+9]]+"-"+sc[e[t+10]]+sc[e[t+11]]+sc[e[t+12]]+sc[e[t+13]]+sc[e[t+14]]+sc[e[t+15]]}const pvn=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Mwe={randomUUID:pvn};function ps(e,t,n){if(Mwe.randomUUID&&!t&&!e)return Mwe.randomUUID();e=e||{};const r=e.random||(e.rng||cvn)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,fvn(r)}var li=(e=>(e.MULTI_SELECT="MULTI_SELECT",e.SELECT="SELECT",e.TOGGLE="TOGGLE",e.RANGE="RANGE",e.DATE="DATE",e))(li||{}),DZe=(e=>(e.BUTTON="button",e.DROPDOWN="dropdown",e))(DZe||{});const o_=e=>/\s/.test(e)?`'${e}'`:e,JN=e=>typeof e=="string"&&!dvn(e)?`'${e}'`:e,vm=(e,t)=>`${o_(e)} eq ${JN(t)}`,$Ze=(e,t)=>`${o_(e)} ge ${JN(t[0])} and ${o_(e)} le ${JN(t[1])}`,hvn=(e,t)=>`${o_(e)} ge '${t}'`,b0=(e,t)=>`contains(tolower(${o_(e)}), tolower('${t}'))`,mvn=(e,t)=>t.length===1?`${o_(e)} eq ${JN(t[0])}`:`${o_(e)} in (${t.map(JN).join(", ")})`,gvn=(e,t)=>{const[{type:n}]=t;return{[li.TOGGLE]:()=>t[0].value?vm(e,t[0].value):"",[li.SELECT]:()=>vm(e,t[0].value),[li.RANGE]:()=>$Ze(e,t[0].value),[li.DATE]:()=>hvn(e,t[0].value),[li.MULTI_SELECT]:()=>mvn(e,t.map(({value:i})=>i))}[n]()},Im=e=>{const t=Object.keys(e);return t.length?t.reduce((n,r)=>{const i=!n,a=e[r];if(!a.length)return n;const o=gvn(r,a);return i?o:`${n} and ${o}`},""):""},XO=(...e)=>{const t=e.filter(n=>n&&n.trim()!=="");return t?.length?t.join(" and "):""},k_={recommended:"category:recommended",documentSearch:"category:document search",basicQA:"category:basic qa",advancedQA:"category:advanced qa",visualQA:"category:visual qa",conversational:"category:conversational",textAnalysis:"category:text analysis",textToSQL:"category:text to sql"},vvn=e=>{const[,t]=e.split(":");return t||e},av=e=>`tags/any(tag: ${vm("tag/name",e)})`,yvn=()=>av(k_.recommended),bvn=()=>av(k_.documentSearch),_vn=()=>av(k_.basicQA),Svn=()=>av(k_.advancedQA),Evn=()=>av(k_.visualQA),Cvn=()=>av(k_.conversational),wvn=()=>av(k_.textAnalysis),xvn=()=>av(k_.textToSQL),FZe=e=>vm("deepset_cloud_version",e),Tvn=e=>({[_i.RECOMMENDED]:yvn,[_i.DOCUMENT_SEARCH]:bvn,[_i.BASIC_QA]:_vn,[_i.ADVANCED_QA]:Svn,[_i.CONVERSATIONAL]:Cvn,[_i.TEXT_ANALYSIS]:wvn,[_i.VISUAL_QA]:Evn,[_i.TEXT_TO_SQL]:xvn})[e](),BZe="1.26.2";var jZe=(e=>(e.QuestionAnswering="questionAnswering",e.DocumentSearch="documentSearch",e.Chat="chat",e.TextAnalysis="textAnalysis",e))(jZe||{});const O5=`# If you need help with the YAML format, have a look at ${tU}docs/create-a-pipeline#create-a-pipeline-using-yaml.
  # This is a friendly editor that helps you create your pipelines with autosuggestions. To use them, press control + space on your keyboard.
  # Whenever you need to specify a model, this editor helps you out as well. Just type your Hugging Face organization and a forward slash (/) to see available models.
                
  #Update the pipeline name configuration:'
  version: '${BZe}'`,$ae=`# If you need help with the YAML format, have a look at ${tU}docs/create-a-pipeline#create-a-pipeline-using-pipeline-designer.
# This section defines components that you want to use in your pipelines. Each node must have a name and a type. You can also set the component's parameters here.
# The name is up to you, you can give your component a friendly name. You then use components' names when specifying the connections in the pipeline.
# Type is the class path of the component.

# components:
#   component_1: # Give your component a friendly name
#     type: # You can find the component type in documentation on a component's page (here maybe a link to components' docs)
#     init_parameters: # Customize the component's parameters. To use default values, type an empty dictionary like this: '{}'.
#   component_2:
#     type: 
#     init_parameters:
 
# connections:  # Define how the components are connected, you can check components outputs and inputs in documentation
# - sender: component_1.output_name # Here you define the output name this compnent sends to the receiver component
#   receiver: component_2.input_name # Here you define the input name that receives the output of the sender component

# inputs:  # List all components that need query and filters as inputs but aren't getting them from any other component connected to them
#   query:  # These components will receive the query as input
#   - "component_1.question"
#   filters:  # These components will receive a potential query filter as input
#   - "component_1.filters"
# outputs:  # Defines the output of your pipeline, usually the output of the last component
#   documents: "component_2.documents"  # The output of the pipeline is the retrieved documents`,Fae=`# If you need help with the YAML format, have a look at ${tU}docs/create-a-pipeline#create-a-pipeline-using-pipeline-designer.
# This section defines components that you want to use in your pipelines. Each node must have a name and a type. You can also set the component's parameters here.
# The name is up to you, you can give your component a friendly name. You then use components' names when specifying the connections in the pipeline.
# Type is the class path of the component.

# components:
#   component_1: # Give your component a friendly name
#     type: # You can find the component type in documentation on a component's page (here maybe a link to components' docs)
#     init_parameters: # Customize the component's parameters. To use default values, type an empty dictionary like this: '{}'.
#   component_2:
#     type: 
#     init_parameters:
 
# connections:  # Define how the components are connected, you can check components outputs and inputs in documentation
# - sender: component_1.output_name # Here you define the output name this compnent sends to the receiver component
#   receiver: component_2.input_name # Here you define the input name that receives the output of the sender component

# inputs:  # List all components that need query and filters as inputs but aren't getting them from any other component connected to them
#   query:  # These components will receive the query as input
#   - "component_1.question"
#   filters:  # These components will receive a potential query filter as input
#   - "component_1.filters"`,Ivn=`# If you need help with the YAML format, have a look at ${tU}docs/create-a-pipeline#create-a-pipeline-using-yaml.
# This is a friendly editor that helps you create your pipelines with autosuggestions. To use them, press Control + Space on your keyboard.
# Whenever you need to specify a model, this editor helps you out as well. Just type your Hugging Face organization and a forward slash (/) to see available models.
version: '${BZe}'

# This section defines nodes that you want to use in your pipelines. Each node must have a name and a type. You can also set the node's parameters here.
# The name is up to you, you can give your component a friendly name. You then use components' names when specifying their order in the pipeline.
# Type is the class name of the component. 
components:
  - name: DocumentStore
    type: DeepsetCloudDocumentStore
    params:
      embedding_dim: 1024
      similarity: cosine

  - name: BM25Retriever
    type: BM25Retriever
    params:
      document_store: DocumentStore
      top_k: 20
  
  - name: EmbeddingRetriever
    type: EmbeddingRetriever
    params:
      document_store: DocumentStore
      embedding_model: intfloat/multilingual-e5-large
      model_format: sentence_transformers
      top_k: 20
      scale_score: false

  - name: InterleaveDocuments
    type: InterleaveDocuments
    params:
      interleaving_mode: random
      top_k_join: 15
      score_mode: none
  
  - name: Preprocessor
    type: PreProcessor
    params:
      split_by: word
      split_length: 200
      split_overlap: 0
      split_respect_sentence_boundary: true

  - name: FileTypeClassifier
    type: FileTypeClassifier

  - name: TextConverter
    type: TextConverter

  - name: PDFConverter
    type: PDFToTextConverter

pipelines:
  - name: query
    nodes:
      - name: BM25Retriever #sparse
        inputs: [Query]
      - name: EmbeddingRetriever # dense
        inputs: [Query]
      - name: InterleaveDocuments
        inputs:
          - BM25Retriever
          - EmbeddingRetriever

  - name: indexing
    nodes:
        - name: FileTypeClassifier
          inputs: [File]
        - name: TextConverter
          inputs: [FileTypeClassifier.output_1]
        - name: PDFConverter
          inputs: [FileTypeClassifier.output_2]
        - name: Preprocessor
          inputs: [TextConverter, PDFConverter]
        - name: EmbeddingRetriever
          inputs: [Preprocessor]
        - name: DocumentStore
          inputs: [EmbeddingRetriever]
`,Bae={task:jZe.QuestionAnswering,currentStep:MZe.SELECT_TASK,pipelineTemplate:null,pipelineName:"",pipelineNameValidationStatus:Me.IDLE,pipelineNameValidationMessage:{type:Er.INFO,content:""},deployPipelineStatus:Me.IDLE,saveAndDeployPipelineMessage:{type:Er.INFO,content:""}},Avn=(e=Bae,t)=>Ms(e,n=>{const r=n;switch(t.type){case Adn:return Bae;case Rdn:r.task=t.payload;break;case Ndn:r.currentStep=t.payload;break;case Odn:r.pipelineNameValidationStatus=Me.IDLE;break;case Pdn:r.pipelineName=t.payload,r.pipelineNameValidationStatus=Me.IDLE;break;case Ldn:r.pipelineTemplate=t.payload;break;case`${dW}/${Bn}`:r.pipelineNameValidationStatus=Me.IN_PROGRESS;break;case`${dW}/${Kt}`:r.pipelineNameValidationStatus=Me.SUCCESS;break;case`${dW}/${Dn}`:{const{response:i,content:a}=t.payload;if(r.pipelineNameValidationStatus=Me.ERROR,a){r.pipelineNameValidationMessage={type:Er.ERROR,content:a};break}const{status:o}=i;if(o===Qs.CONFLICT){r.pipelineNameValidationMessage={type:Er.ERROR,content:svn.PIPELINE_NAME_ALREADY_USED};break}r.pipelineNameValidationMessage={type:Er.ERROR,content:Wn(t.payload)};break}case`${pW}/${Bn}`:case`${fW}/${Bn}`:r.deployPipelineStatus=Me.IN_PROGRESS;break;case`${pW}/${Kt}`:case`${fW}/${Kt}`:r.deployPipelineStatus=Me.SUCCESS;break;case`${pW}/${Dn}`:case`${fW}/${Dn}`:{r.deployPipelineStatus=Me.ERROR,r.saveAndDeployPipelineMessage={type:Er.ERROR,content:Wn(t.payload)};break}}return r}),Pn=(e,t,n=!0,r="%")=>{const a=e.split(r).map(o=>Nn.isNil(t[o])?o:typeof t[o]=="object"?{...t[o],key:o}:t[o]);return n?E.jsx(E.Fragment,{children:a}):a.join("")},q1=e=>{if(e.includes("-")||e.includes("_"))return e.split(/[-_]/).reduce((n,r)=>{const i=r.charAt(0).toUpperCase()+r.slice(1);return n?`${n} ${i}`:i},"");const t=e.replace(/([A-Z])/g," $1");return t.charAt(0).toUpperCase()+t.slice(1)},zZe=(e,t=300)=>{if(!e)return"";let n=e.slice(0,t);return e.length>t&&(n=`${n}...`),n},L5=(e,t)=>se.createElement("a",{href:e,target:"_blank",rel:"noreferrer"},t),W1=e=>e?new RegExp("^[a-zA-Z0-9._-]*$").test(e):!1,Rvn=(...e)=>e.reduce((t,n)=>n?t+n[0]:t,""),f6r=10,p6r="Show Details",h6r="Delete this job?",m6r="Start",g6r="Try Again",v6r="Delete %total% job",y6r="Delete %total% jobs",Nvn="Job successfully created.",UZe="Job successfully started.",Ovn="Jobs successfully started.",Lvn="Job successfully deleted.",Pvn="Jobs successfully deleted.",b6r="Save as Draft",_6r="Start Job",S6r="No jobs found",E6r=Pn("Set up jobs to easily handle batch queries and seamlessly gather consistent information across various datasets. Check out the %link% to get a better understanding of what a job is.",{link:L5(`${zu}docs/about-jobs`,"documentation")}),C6r={NAME:"Name",TAGS:"Tags",EXECUTED_AT:"Executed at",REQUESTS:"Requests",STATUS:"Status",CREATED_BY:"Created by"},w6r="New Job",x6r="Create a job",T6r={JOB_SELECTION:{STEP_TITLE:"Job",TITLE:"Select a job",DESCRIPTION:"Choose from specialized job processes tailored to specific use cases to support your project objectives.",FORM:{JOB_TYPE_LABEL:"Job type",QUERY_RUN_LABEL:"Run mode",QUERY_RUN_TOOLTIP:"Choose Run once to search all files and get a single answer for each query. Choose Repeat queries per file to run each query on every file resulting in one answer per file."}},QUERY_SET_SELECTION:{STEP_TITLE:"Query set",TITLE:"Query set",DESCRIPTION:Pn("Upload a UTF8-encoded CSV file with the queries for this job, including any filters, attributes, or headers. %link% our template to help you get started.",{link:L5(`${zu}docs/prepare-a-query-set#template`,"Download")}),FORM:{PREVIOUSLY_QUERY_SETS_LABEL:"Previously uploaded query sets",PREVIOUSLY_QUERY_SETS_PLACEHOLDER:"Select query set"}},PIPELINE_SELECTION:{STEP_TITLE:"Pipeline",TITLE:"Choose a pipeline",DESCRIPTION:"This is the pipeline the job will use."},JOB_NAMING:{STEP_TITLE:"Naming",TITLE:"Name your job",FORM:{NAME_LABEL:"Name",NAME_PLACEHOLDER:"Give your job a unique name",TAGS_LABEL:"Tags",TAGS_PLACEHOLDER:"Use keywords to describe your job"}}},I6r={[_pe.BATCH_QA]:"Batch Question Answering"},A6r={[vF.ACROSS_FILES]:"Run once",[vF.AGAINST_EACH_FILE]:"Repeat queries per file"},R6r="Jobs can only use pipelines that return answers, like RAG, chat, or extractive question answering",N6r="Are you sure you want to delete?",O6r="Duration",L6r="Pipeline",P6r="Query Set",k6r="Run Mode",M6r="Number of requests",D6r="This job run has failed",$6r="Please try again or contact support.",F6r="Results",kvn="Results Title",Mvn="Enter a title for the results",B6r="Job Report",j6r={QUERY:"Query",ANSWER:"Answer",CONTEXT:"Context",FILE:"File",FILTERS:"Filters",RELEVANCE:"Relevance",RANK:"Rank",QUERY_BY:"Query by",PROMPT:"Prompt",NO_ANSWER:"No answer",DURATION:"Duration",FEEDBACK_RATING:"Feedback Rating"},Dvn="Share this job as a formatted HTML page. No login required.",$vn="Share results",Fvn="This link has expired and is no longer accessible. To share this job again you need to generate another link.",z6r="Find jobs",U6r="Find queries",H6r="Status",V6r="Created By",G6r={STATUS:"status",USER:"created_by",TAGS:"tags/tag_id"},q6r="File",W6r={FILE:"file"},Bvn="created_at_desc",Y6r=[{key:"created_at_desc",label:"Newest to Oldest"},{key:"created_at_asc",label:"Oldest to Newest"},{key:"name_asc",label:"Name A to Z"},{key:"name_desc",label:"Name Z to A"}],jvn={created_at_desc:{field:"created_at",order:"DESC"},created_at_asc:{field:"created_at",order:"ASC"},name_asc:{field:"name",order:"ASC"},name_desc:{field:"name",order:"DESC"}},zvn="query_index_asc",K6r=[{key:"query_index_asc",label:"Query Set Order (First to Last)"},{key:"query_index_desc",label:"Query Set Order (Last to First)"},{key:"created_at_desc",label:"Newest to Oldest"},{key:"created_at_asc",label:"Oldest to Newest"},{key:"query_asc",label:"Query A to Z"},{key:"query_desc",label:"Query Z to A"}],Uvn={query_index_asc:{field:"query_index",order:"ASC"},query_index_desc:{field:"query_index",order:"DESC"},created_at_desc:{field:"created_at",order:"DESC"},created_at_asc:{field:"created_at",order:"ASC"},query_asc:{field:"query",order:"ASC"},query_desc:{field:"query",order:"DESC"}},lc={job:null,jobs:{data:[],has_more:!1,total:0},jobResults:{data:[],has_more:!1,total:0},fetchJobsStatus:Me.IDLE,actionStatus:Me.IDLE,fetchJobResultsStatus:Me.IDLE,querySet:null,querySets:{data:[],has_more:!1,total:0},fetchQuerySetsStatus:Me.IDLE,jobTags:[],jobListFiltersValues:{users:[],tags:[],statuses:[]},jobResultsFiltersValues:{files:[]},currentStep:TXe.SELECT_JOB,openCreateJobDrawer:!1,selectedJobType:_pe.BATCH_QA,selectedQueryRun:vF.ACROSS_FILES,selectedQuerySet:null,selectedPipeline:null,selectedJobName:null,selectedTags:[],loadingSharedJobResultStatus:Me.IDLE,generateSharedJobResultStatus:Me.IDLE,revokeSharedJobResultStatus:Me.IDLE,currentSharedJobResult:null,jobListSortValue:Bvn,jobResultsSortValue:zvn,createJobStatus:Me.IDLE},Hvn=(e=lc,t)=>Ms(e,n=>{const r=n;switch(t.type){case uXe:r.currentStep=lc.currentStep,r.openCreateJobDrawer=lc.openCreateJobDrawer,r.selectedJobType=lc.selectedJobType,r.selectedQueryRun=lc.selectedQueryRun,r.selectedQuerySet=lc.selectedQuerySet,r.selectedPipeline=lc.selectedPipeline,r.selectedJobName=lc.selectedJobName,r.selectedTags=lc.selectedTags,r.createJobStatus=lc.createJobStatus;break;case dXe:r.job=lc.job,r.jobResults=lc.jobResults,r.fetchJobResultsStatus=lc.fetchJobResultsStatus;break;case`${aM}/${Bn}`:r.fetchJobsStatus=Me.IN_PROGRESS;break;case`${iXe}/${Kt}`:r.job=t.payload;break;case`${aM}/${Kt}`:r.jobs=t.payload,r.fetchJobsStatus=Me.SUCCESS;break;case`${aM}/${Dn}`:r.fetchJobsStatus=Me.ERROR;break;case`${oM}/${Bn}`:r.fetchJobResultsStatus=Me.IN_PROGRESS;break;case`${oM}/${Kt}`:r.jobResults=t.payload,r.fetchJobResultsStatus=Me.SUCCESS;break;case`${oM}/${Dn}`:r.fetchJobResultsStatus=Me.ERROR;break;case`${cM}/${Bn}`:r.fetchQuerySetsStatus=Me.IN_PROGRESS;break;case`${cM}/${Kt}`:r.querySets=t.payload,r.fetchQuerySetsStatus=Me.SUCCESS;break;case`${cM}/${Dn}`:r.fetchQuerySetsStatus=Me.ERROR;break;case`${cXe}/${Kt}`:r.querySet=t.payload;break;case`${_Xe}/${Kt}`:r.jobTags=t.payload;break;case`${aXe}/${Kt}`:{r.actionStatus=Me.SUCCESS,r.job=t.payload;break}case`${sXe}/${Kt}`:{r.actionStatus=Me.SUCCESS;break}case`${lXe}/${Kt}`:{r.actionStatus=Me.SUCCESS;break}case`${oXe}/${Kt}`:{r.actionStatus=Me.SUCCESS;break}case`${sM}/${Bn}`:case`${lM}/${Bn}`:r.createJobStatus=Me.IN_PROGRESS;break;case`${sM}/${Kt}`:case`${lM}/${Kt}`:r.createJobStatus=Me.SUCCESS;break;case`${sM}/${Dn}`:case`${lM}/${Dn}`:r.createJobStatus=Me.ERROR;break;case pXe:r.currentStep=t.payload;break;case fXe:r.openCreateJobDrawer=t.payload;break;case hXe:r.selectedJobType=t.payload;break;case mXe:r.selectedQueryRun=t.payload;break;case gXe:r.selectedQuerySet=t.payload;break;case vXe:r.selectedPipeline=t.payload;break;case yXe:r.selectedJobName=t.payload;break;case bXe:r.selectedTags=t.payload;break;case Hdn:r.currentSharedJobResult=lc.currentSharedJobResult;break;case vpe:r.currentSharedJobResult=lc.currentSharedJobResult;break;case`${uM}/${Bn}`:r.generateSharedJobResultStatus=Me.IN_PROGRESS;break;case`${dM}/${Bn}`:r.loadingSharedJobResultStatus=Me.IN_PROGRESS;break;case`${Iae}/${Bn}`:r.revokeSharedJobResultStatus=Me.IN_PROGRESS;break;case`${uM}/${Kt}`:r.generateSharedJobResultStatus=Me.SUCCESS,r.currentSharedJobResult=t.payload;break;case`${dM}/${Kt}`:r.loadingSharedJobResultStatus=Me.SUCCESS,r.currentSharedJobResult=t.payload;break;case`${Iae}/${Kt}`:r.revokeSharedJobResultStatus=Me.SUCCESS,r.currentSharedJobResult=lc.currentSharedJobResult;break;case`${uM}/${Dn}`:r.generateSharedJobResultStatus=Me.ERROR;break;case`${dM}/${Dn}`:r.loadingSharedJobResultStatus=Me.ERROR;break;case`${CXe}/${Kt}`:r.jobListFiltersValues={...r.jobListFiltersValues,tags:t.payload.map(({name:i,tag_id:a})=>({key:a,label:i}))};break;case`${EXe}/${Kt}`:r.jobListFiltersValues={...r.jobListFiltersValues,users:t.payload.map(({created_by:i})=>({key:i.user_id,label:i.given_name}))};break;case`${wXe}/${Kt}`:r.jobResultsFiltersValues={...r.jobResultsFiltersValues,files:t.payload.filter(({file:i})=>!!i).map(({file:i})=>({key:i,label:i}))};break;case SXe:r.jobListSortValue=t.payload;break;case xXe:r.jobResultsSortValue=t.payload;break}return r}),fS=()=>({answer:"",context:null,document_ids:null,files:[],meta:{},offsets_in_context:[],offsets_in_document:[],prompt:"",result_id:"",score:null,type:Aa.GENERATIVE_QUESTION_ANSWERING}),Mpe=e=>{const{answers:t=[]}=e;if(!t.length)return Aa.DOCUMENT_RETRIEVAL;const[{type:n}]=t;return n===Aa.GENERATIVE_QUESTION_ANSWERING?Aa.GENERATIVE_QUESTION_ANSWERING:Aa.EXTRACTIVE_QUESTION_ANSWERING},HS=e=>{if(!e)return[];const t=Mpe(e);return{[Aa.DOCUMENT_RETRIEVAL]:e.documents,[Aa.EXTRACTIVE_QUESTION_ANSWERING]:e.answers,[Aa.GENERATIVE_QUESTION_ANSWERING]:e.answers}[t]},SR=e=>Nn.groupBy(e,"file.id"),Vvn=(e,t)=>t?t.find(r=>r.id===e)?.content??"":"",Gvn=(e,t,n)=>e?e.slice(t,n):"",wA=e=>{const t=r=>{if(!Nn.isObject(r)||Nn.isNil(r))return null;if("prompt_template"in r)return{...r};const i=Object.entries(r).reduce((a,[o,s])=>{const l=t(s);return Nn.isNil(l)?a:{...a,[o]:l}},{});return Object.keys(i).length>0?i:null};return t(e)??{}},Dpe=e=>{const t={};return Object.keys(e).forEach(n=>{Nn.isBoolean(e[n])||Nn.isArray(e[n])?t[n]=e[n]:(e[n].min||e[n].max)&&(e[n].min===e[n].max?t[n]={$eq:e[n].min}:t[n]={$gte:e[n].min,$lt:e[n].max})}),t},$pe=e=>{const t=[];return Object.keys(e).forEach(n=>{if(Nn.isBoolean(e[n])){t.push({field:n,operator:"==",value:e[n]});return}if(Nn.isArray(e[n])){t.push({field:n,operator:"in",value:e[n]});return}if(e[n].min===e[n].max){t.push({field:n,operator:"==",value:e[n].min});return}e[n].min&&t.push({field:n,operator:">=",value:e[n].min}),e[n].max&&t.push({field:n,operator:"<=",value:e[n].max})}),{operator:"AND",conditions:t}},HZe=e=>{const{response:t,request:n,search_history_id:r}=e,[i]=t,{params:a,query:o}=n,s={...i.result,result_id:i.search_result_history_id};return{query_id:r,answers:[s],documents:i.documents,promptTemplates:wA(a),query:o}},qvn=e=>{if(!e.length)return null;const t=e.map(a=>{const{document:o,search_result_history_id:s}=a;return{...o,result_id:s}}),{query:n,query_id:r}=e[0];return{answers:[],documents:t,query:n,query_id:r}},Wvn=e=>e===SF.DOCUMENT?Aa.DOCUMENT_RETRIEVAL:e===SF.GENERATIVE_QUESTION_ANSWERING?Aa.GENERATIVE_QUESTION_ANSWERING:Aa.EXTRACTIVE_QUESTION_ANSWERING,Yvn=e=>{const{answer:t,context:n,documents:r,files:i,offsets_in_context:a,search_history_result_id:o,type:s,prompt:l,query_id:c,search:{query:u},meta:d}=e,f=t?[{answer:t||"",context:n||null,document_ids:r?r.map(m=>m.id):null,files:i||[],meta:d||{},offsets_in_context:a||[],offsets_in_document:[],prompt:l,result_id:o,score:null,type:Wvn(s)}]:[],p=r.map(m=>({...m,result_id:o}));return{answers:f,documents:p,query:u,query_id:c,prompts:null,_debug:null}},VZe=e=>{const{response:{documents:t,files:n}}=e;return!t||!n?[]:t.map(i=>{const{file_id:a}=i.meta,{file_id:o,file_name:s}=n.find(l=>l.file_id===a);return{...i,file:{id:o,name:s}}})},Kvn=e=>{const{response:{answers:t},prompt:n}=e,r=Array.isArray(t)?t[0]:null;if(!r)return fS();const a=VZe(e).filter(o=>r.document_ids?.includes(o.id)).map(o=>o.file).filter(Boolean);return{...r,files:a,prompt:n}},X6r=e=>{const{response:t}=e;return{...t,answers:[Kvn(e)],documents:VZe(e)}},GZe=(e,t,n)=>e?.length?e.filter(r=>r.label===ype.GROUNDED).map((r,i)=>({id:`${t}_${i}`,startIdx:r.answer_start_idx,endIdx:r.answer_end_idx,content:Gvn(Vvn(r.document_id,n),r.doc_start_idx,r.doc_end_idx)})):null,jae=(e,t)=>e.reduce((r,i,a)=>{const o=r.findIndex(s=>s.content===i.content);return o!==-1?r[o].highlightLabel+=`, ${a+1}`:r.push({...i,highlightLabel:`${t} ${a+1}`}),r},[]),Fpe=e=>e.reduce((n,r)=>{const{type:i,query_id:a,result:o,delta:s}=r;return i===C7.DELTA?{...n,query_id:a,text:n.text+s?.text||""}:i===C7.RESULT?{...n,query_id:a,result:o}:i===C7.ERROR?{...n,query_id:a,error:r.error}:n},{query_id:"",text:"",result:null}),xM={projects:{data:[],has_more:!1,total:0},projectsStatus:Me.IDLE,createProjectStatus:Me.IDLE,updateProjectStatus:Me.IDLE,project:{project_id:"",name:"",pipeline_id:null,query_target:null,annotation_guideline:null,created_at:"",created_by:""},projectStats:{total_labels:0,labeled_queries:0,labels_per_user:[],labeled_queries_per_user:[]},projectCreator:{given_name:"",family_name:"",user_id:""},projectLastEditor:{given_name:"",family_name:"",user_id:""},projectStatus:Me.IDLE,labeledResults:{},labels:{data:[],has_more:!1,total:0},labelsStatus:Me.IDLE,labelsAsSearchResult:null,labelsAsSearchResultStatus:Me.IDLE},Xvn=(e=xM,t)=>Ms(e,n=>{const r=n;switch(t.type){case`${qKe}`:r.labelsAsSearchResult=xM.labelsAsSearchResult,r.labelsAsSearchResultStatus=xM.labelsAsSearchResultStatus;break;case`${Cae}/${Bn}`:r.projectsStatus=Me.IN_PROGRESS;break;case`${Cae}/${Kt}`:r.projectsStatus=Me.SUCCESS,r.projects=t.payload;break;case`${Q7}/${Bn}`:{r.createProjectStatus=Me.IN_PROGRESS;break}case`${Q7}/${Kt}`:{r.createProjectStatus=Me.SUCCESS;break}case`${Q7}/${Dn}`:{r.createProjectStatus=Me.ERROR;break}case`${UKe}/${Kt}`:{const{given_name:i,family_name:a,user_id:o}=t.payload;r.projectCreator={given_name:i,family_name:a,user_id:o};break}case`${HKe}/${Kt}`:{const{given_name:i,family_name:a,user_id:o}=t.payload;r.projectLastEditor={given_name:i,family_name:a,user_id:o};break}case`${wae}/${Bn}`:{r.projectStatus=Me.IN_PROGRESS;break}case`${wae}/${Kt}`:{r.projectStatus=Me.SUCCESS,r.project=t.payload;break}case`${zKe}/${Kt}`:r.projectStats=t.payload;break;case`${J7}/${Bn}`:{r.updateProjectStatus=Me.IN_PROGRESS;break}case`${J7}/${Kt}`:{r.updateProjectStatus=Me.SUCCESS;break}case`${J7}/${Dn}`:{r.updateProjectStatus=Me.ERROR;break}case`${xae}/${Kt}`:r.projectStatus=Me.SUCCESS;break;case`${xae}/${Dn}`:r.updateProjectStatus=Me.ERROR;break;case`${GKe}/${Kt}`:case`${VKe}/${Kt}`:{const{resultId:i,relevance:a,labelId:o}=t.payload;r.labeledResults[i]={relevance:a,labelId:o};break}case`${eM}/${Bn}`:case`${tM}/${Bn}`:{const{fetchMore:i}=t.meta.arg;if(i)break;r.labelsStatus=Me.IN_PROGRESS;break}case`${eM}/${Kt}`:{const{fetchMore:i}=t.meta.arg;r.labelsStatus=Me.SUCCESS,i?r.labels={...t.payload,data:[...r.labels.data,...t.payload.data]}:r.labels=t.payload;break}case`${eM}/${Dn}`:case`${tM}/${Dn}`:{r.labelsStatus=Me.ERROR;break}case`${tM}/${Kt}`:{t.payload.forEach(i=>{const{search_result_history_id:a,relevance:o,label_id:s}=i;r.labeledResults[a]={relevance:o,labelId:s}});break}case`${nM}/${Bn}`:{r.labelsAsSearchResultStatus=Me.IN_PROGRESS;break}case`${nM}/${Kt}`:{r.labelsAsSearchResultStatus=Me.SUCCESS;const a=[...t.payload].sort((s,l)=>s.rank-l.rank),o=qvn(a);r.labelsAsSearchResult=o;break}case`${nM}/${Dn}`:{r.labelsAsSearchResultStatus=Me.ERROR;break}}return r}),TM={sidebar:{collapsed:!1,openKeys:[],selectedKeys:[]},currentPage:"/",routeName:""};function Zvn(e=TM,t){return Ms(e,n=>{const r=n;switch(t.type){case Sdn:return TM;case gKe:r.sidebar.openKeys=t.payload;break;case Edn:r.sidebar.selectedKeys=t.payload;break;case vKe:r.sidebar.collapsed=t.payload;break;case bKe:r.routeName=TM.routeName;break;case yKe:r.routeName=t.payload;break}return r})}const qZe={pipelineMeta:{},pipelineMetaValues:{},selectedMetaFilterValues:{},appliedMetaFilterValues:{},getPipelineMetaStatus:Me.IDLE,getMetadataValuesStatus:Me.IDLE};function Qvn(e=qZe,t){return Ms(e,n=>{const r=n;switch(t.type){case`${gR}/${Bn}`:r.getMetadataValuesStatus=Me.IN_PROGRESS;break;case`${gR}/${Kt}`:r.getMetadataValuesStatus=Me.SUCCESS,r.pipelineMetaValues={...r.pipelineMetaValues,...t.payload};break;case`${gR}/${Dn}`:r.getMetadataValuesStatus=Me.ERROR;break;case`${I7}/${Bn}`:r.getPipelineMetaStatus=Me.IN_PROGRESS;break;case`${I7}/${Kt}`:r.getPipelineMetaStatus=Me.SUCCESS,r.pipelineMeta=t.payload;break;case`${I7}/${Dn}`:r.getPipelineMetaStatus=Me.ERROR;break;case nKe:r.selectedMetaFilterValues=t.payload;break;case rKe:r.appliedMetaFilterValues=t.payload;break}return r})}const zae={notifications:[],sequentialNotifications:[]},Jvn=(e=zae,t)=>Ms(e,n=>{const r=n;switch(t.type){case oU:r.notifications.push(t.payload);break;case DKe:r.sequentialNotifications.push(t.payload);break;case kdn:r.notifications=zae.notifications;break}return r}),Uae=e=>({[Xc.TODAY]:Cr().startOf("day"),[Xc.SEVEN_DAYS]:Cr().subtract(7,"day"),[Xc.FOURTEEN_DAYS]:Cr().subtract(14,"day"),[Xc.THIRTY_DAYS]:Cr().subtract(30,"day"),[Xc.SIXTY_DAYS]:Cr().subtract(60,"day"),[Xc.CUSTOM]:null})[e],Bpe=(e,t)=>{const n={minute:t.diff(e,"minute"),hour:t.diff(e,"hour"),day:t.diff(e,"day"),week:t.diff(e,"week"),month:t.diff(e,"month"),year:t.diff(e,"year")},i=[{threshold:60,interval:bA.MINUTE},{threshold:24,interval:bA.HOUR},{threshold:7,interval:bA.DAY}].find(({threshold:a,interval:o})=>n[o]<=a);return i?i.interval:bA.DAY},e6=e=>typeof e=="string"?Cr(e):e||null,WZe=()=>({type:Xc.THIRTY_DAYS,from:Uae(Xc.THIRTY_DAYS),to:Cr(),interval:Bpe(Uae(Xc.THIRTY_DAYS),Cr())}),Hae={metricsValues:{groundedness:null,totalqueries:null,referenceperrank:null,totalqueriesOverTime:null,groundednessOverTime:null},selectedPipeline:null,selectedDateRange:WZe()};function e1n(e=Hae,t){return Ms(e,n=>{const r=n;switch(t.type){case XKe:r.selectedDateRange=WZe();break;case ZKe:r.selectedPipeline=null;break;case YKe:r.selectedPipeline=t.payload,r.metricsValues=Hae.metricsValues;break;case KKe:{const{type:i,from:a,to:o,interval:s}=t.payload,l=a||Uae(i),c=o||Cr();r.selectedDateRange={type:i,from:l,to:c,interval:Nn.isUndefined(s)?Bpe(l,c):s};break}case`${WKe}/${Kt}`:{const{data:i,metric:a,interval:o}=t.payload,s=c=>`${c}OverTime`;if(a===QKe.DOCUMENT_REFERENCES_PER_RANK){const c=i?.reduce((d,{value:f})=>d+f,0),u=i?.map(({rank:d,value:f})=>({rank:d,amount:f,percent:c?f/c*100:0}))?.sort((d,f)=>d.rank-f.rank)??null;if(!u?.length){r.metricsValues[a]=null;break}r.metricsValues[a]=u;break}const l=i?.map(({timestamp:c,value:u})=>[c,u])??null;if(!l?.length){o?r.metricsValues[s(a)]=null:r.metricsValues[a]=null;break}if(o)r.metricsValues[s(a)]=l;else{const[,c]=l[l.length-1];r.metricsValues[a]=c}break}}return r})}const Dwe=(e,t)=>e.find(i=>i.name===t)?.default_idle_timeout_in_seconds||null,ZO="default",IM=10,xA={organization:{organizationName:"",organizationId:"",maxWorkspaces:0},workspaces:[],currentWorkspace:ZO,currentWorkspaceDefaultIdleTimeout:null,allUsers:{users:[],total:1},connections:{apiKeys:{data:[],has_more:!1,total:0},modelRegistryTokens:[]},message:{type:Er.INFO,content:""},addWorkspaceStatus:Me.IDLE,currentDeletingWorkspaces:{}};function t1n(e=xA,t){return Ms(e,n=>{const r=n;switch(t.type){case dKe:r.message=xA.message;break;case cKe:r.organization=t.payload;break;case mdn:r.organization=xA.organization;break;case`${uKe}/${Kt}`:{const{users:i,totalUsers:a}=t.payload;r.allUsers={users:i,total:a};break}case`${mKe}/${Kt}`:{r.currentWorkspaceDefaultIdleTimeout=Dwe(t.payload,r.currentWorkspace),r.workspaces=t.payload;break}case bpe:r.currentWorkspaceDefaultIdleTimeout=Dwe(r.workspaces,t.payload),r.currentWorkspace=t.payload;break;case`${N7}/${Bn}`:{r.addWorkspaceStatus=Me.IN_PROGRESS;break}case`${N7}/${Kt}`:{r.addWorkspaceStatus=Me.SUCCESS;break}case`${N7}/${Dn}`:{r.addWorkspaceStatus=Me.ERROR;break}case`${O7}/${Bn}`:{const i=t.meta.arg;r.currentDeletingWorkspaces[i]=i;break}case`${O7}/${Kt}`:{const i=t.meta.arg;delete r.currentDeletingWorkspaces[i];break}case`${O7}/${Dn}`:{const i=t.meta.arg;delete r.currentDeletingWorkspaces[i];break}case`${fKe}/${Kt}`:{r.connections.apiKeys=t.payload;break}case`${pKe}/${Kt}`:{r.connections.modelRegistryTokens=t.payload;break}case`${R7}/${Bn}`:{r.message=xA.message;break}case`${R7}/${Kt}`:{const{modelProvider:i}=t.meta.arg;r.connections.modelRegistryTokens=[...r.connections.modelRegistryTokens,{provider:i,provider_domain:"",tokenId:"",invalid:!1}];break}case`${R7}/${Dn}`:{r.message={type:Er.ERROR,content:Wn(t.payload)};break}case`${hKe}/${Kt}`:{const i=t.meta.arg;r.connections.modelRegistryTokens=r.connections.modelRegistryTokens.filter(({provider:a})=>a!==i);break}}})}const n1n="Detailed Feedback",r1n="Filters Applied",i1n="View",a1n="Download CSV",o1n="Copy to Clipboard",YZe="Done",s1n="Prev. query",l1n="Next query",c1n="Meta data filters copied to clipboard.",u1n="Tags",d1n="User",f1n="Rating",p1n="Filters applied",KZe="Feedback rating added",h1n="Feedback rating changed",m1n="Saved for later in detailed feedback",g1n="Removed from save for later in detailed feedback",v1n="Tag created",y1n="Tag deleted",ta={QUERY:"Query",FILTERS:"Filters",ANSWER:"Predicted Answer",CONTEXT:"Context",RANK:"Rank",RELEVANCE:"Relevance",USER:"User",DURATION:"Duration",QUERY_DATE:"Query Date",QUERY_ID:"Query ID",FILE_NAME:"File(s)",FILE_ID:"File ID",FEEDBACK_RATING:"Feedback Rating",FEEDBACK_NOTES:"Feedback Notes",FEEDBACK_TAGS:"Feedback Tags",PROMPT:"Prompt"},v2={FEEDBACK_TYPE:"score",FEEDBACK_TAGS:"tags",RANK:"rank",QUERY_BY:"queryBy",QUERY_ID:"queryId",DURATION:"duration",QUERY_CREATED:"queryCreated",FILE_ID:"file_id"},_W={FEEDBACK_TYPE:"score",TAGS_ID:"tags/tag_id",USER:"created_by"},qg={[Ia.ACCURATE]:"Accurate",[Ia.FAIRLY_ACCURATE]:"Fairly Accurate",[Ia.INACCURATE]:"Inaccurate"},b1n="Saved",_1n="Save for later in query history",S1n="created_at_desc",E1n=[{key:"created_at_desc",label:"Query Date Newest to Oldest"},{key:"created_at_asc",label:"Query Date Oldest to Newest"},{key:"search_history/search_query_asc",label:"Query A to Z"},{key:"search_history/search_query_desc",label:"Query Z to A"},{key:"search_history/rank_asc",label:"Rank ascending"},{key:"search_history/rank_desc",label:"Rank descending"},{key:"search_history/score_asc",label:"Relevance ascending"},{key:"search_history/score_desc",label:"Relevance descending"}],C1n={created_at_asc:{field:"created_at",order:"ASC"},created_at_desc:{field:"created_at",order:"DESC"},"search_history/rank_asc":{field:"search_history/rank",order:"ASC"},"search_history/rank_desc":{field:"search_history/rank",order:"DESC"},"search_history/search_query_asc":{field:"search_history/search_query",order:"ASC"},"search_history/search_query_desc":{field:"search_history/search_query",order:"DESC"},"search_history/score_asc":{field:"search_history/score",order:"ASC"},"search_history/score_desc":{field:"search_history/score",order:"DESC"}},pS={providedFeedbackByResultId:{},getPipelineFeedbackStatus:Me.IDLE,providedPipelineFeedbackStatus:Me.IDLE,updatedPipelineFeedbackStatus:Me.IDLE,pipelineFeedback:{data:[],has_more:!1,total:0},pipelineFeedbackFilterValues:{users:[]},pipelineFeedbackTagsByPipelineId:{},createPipelineFeedbackTagStatus:Me.IDLE,deletePipelineFeedbackTagStatus:Me.IDLE,feedbackSortValue:S1n},w1n=(e=pS,t)=>Ms(e,n=>{const r=n;switch(t.type){case AXe:r.pipelineFeedback=pS.pipelineFeedback,r.getPipelineFeedbackStatus=pS.getPipelineFeedbackStatus;break;case OXe:r.pipelineFeedbackTagsByPipelineId=pS.pipelineFeedbackTagsByPipelineId;break;case PXe:r.providedPipelineFeedbackStatus=pS.providedPipelineFeedbackStatus,r.updatedPipelineFeedbackStatus=pS.updatedPipelineFeedbackStatus;break;case LXe:r.feedbackSortValue=t.payload;break;case IXe:{const{resultId:i,feedback:a}=t.payload;r.providedFeedbackByResultId[i]=a;break}case`${pM}/${Bn}`:{r.updatedPipelineFeedbackStatus=Me.IN_PROGRESS;break}case`${pM}/${Kt}`:{const{resultId:i}=t.meta.arg;r.updatedPipelineFeedbackStatus=Me.SUCCESS,r.providedFeedbackByResultId[i]=t.payload;break}case`${pM}/${Dn}`:{r.updatedPipelineFeedbackStatus=Me.ERROR;break}case`${fM}/${Bn}`:{r.providedPipelineFeedbackStatus=Me.IN_PROGRESS;break}case`${fM}/${Kt}`:{const{resultId:i}=t.meta.arg;r.providedPipelineFeedbackStatus=Me.SUCCESS,r.providedFeedbackByResultId[i]=t.payload;break}case`${fM}/${Dn}`:{r.providedPipelineFeedbackStatus=Me.ERROR;break}case`${NXe}/${Kt}`:{const{pipelineId:i}=t.meta.arg;r.pipelineFeedbackTagsByPipelineId[i]=t.payload;break}case`${hM}/${Bn}`:{r.getPipelineFeedbackStatus=Me.IN_PROGRESS;break}case`${hM}/${Kt}`:{r.getPipelineFeedbackStatus=Me.SUCCESS,r.pipelineFeedback=t.payload;break}case`${hM}/${Dn}`:{r.getPipelineFeedbackStatus=Me.ERROR;break}case`${RXe}/${Kt}`:r.pipelineFeedbackFilterValues={...r.pipelineFeedbackFilterValues,users:t.payload.map(({created_by:i})=>({key:i.user_id,label:i.given_name}))};break;case`${mM}/${Bn}`:{r.createPipelineFeedbackTagStatus=Me.IN_PROGRESS;break}case`${mM}/${Kt}`:{r.createPipelineFeedbackTagStatus=Me.SUCCESS;break}case`${mM}/${Dn}`:{r.createPipelineFeedbackTagStatus=Me.ERROR;break}case`${gM}/${Bn}`:{r.deletePipelineFeedbackTagStatus=Me.IN_PROGRESS;break}case`${gM}/${Kt}`:{r.deletePipelineFeedbackTagStatus=Me.SUCCESS;break}case`${gM}/${Dn}`:{r.deletePipelineFeedbackTagStatus=Me.ERROR;break}}return r}),Gr={pipelines:{data:[],has_more:!1,total:0},deployedPipelines:{data:[],has_more:!1,total:0},draftPipelines:{data:[],has_more:!1,total:0},status:Me.IDLE,actionStatus:Me.IDLE,createUpdatePipelineStatus:Me.IDLE,loadingSharedPrototypeStatus:Me.IDLE,generateSharedPrototypeStatus:Me.IDLE,deleteSharedPrototypeStatus:Me.IDLE,renamePipelineNameStatus:Me.IDLE,loadingLatestQueriesStatus:Me.IDLE,fetchPipelineYamlStatus:Me.IDLE,fetchPipelinesListStatus:Me.IDLE,fetchDeployedInProgress:!1,fetchDraftInProgress:!1,pipeline:{pipeline_id:"",created_at:"",created_by:{family_name:"",given_name:"",user_id:""},name:"",edited:!1,editedIndexingYaml:!1,editedQueryYaml:!1,status:qn.UNDEPLOYED,desired_status:qs.UNDEPLOYED,idle_timeout_in_seconds:12,supports_prompt:!1,output_type:xd.EXTRACTIVE,service_level:Li.DRAFT,deepset_cloud_version:Rr.V1,last_edited_by:{},yaml:O5,indexing_yaml:"",query_yaml:"",indexing:{pending_file_count:0,failed_file_count:0},indexing_details:{failed_file_count:0,indexed_file_count:0,indexed_no_documents_file_count:0,pending_file_count:0,status:"",total_file_count:0}},newPipelineName:"",message:{type:Er.INFO,content:""},pipelineStatistics:{total_queries:0,manual_feedback_input:0,experiments_created:0,users_provided_feedback:0,avg_feedback_per_query:0,indexed_files:0,total_documents:0},pipelineLatestQueries:{data:[],has_more:!1,total:0},pipelineLogs:{data:[],has_more:!1,total:0},pipelineStatisticsAnswers:{correct_answers:0,wrong_answers:0,wrong_answers_with_correct_document:0,accuracy_of_answers:0,latency:0},pipelineJson:{version:"",name:""},currentSharedPrototype:null,pipelineLogsStatus:Me.IDLE,pipelineLogsUnhealthy:{},activeTabPipelineDetailsPage:"overview",activeTabPipelinesLandingPage:"",pipelineErrors:[],sortValuePipelinesList:_F,activeTabYamlEditor:fc.INDEXING_YAML,indexingCode:"",queryCode:"",indexingYamlEditorDiff:!1,queryYamlEditorDiff:!1},x1n=(e=Gr,t)=>Ms(e,n=>{const r=n;switch(t.type.includes(Dn)&&(r.status=Me.ERROR,r.message={type:Er.ERROR,content:Wn(t.payload)}),t.type){case XWe:r.pipeline=Gr.pipeline,r.createUpdatePipelineStatus=Gr.createUpdatePipelineStatus;break;case ZWe:r.pipeline.yaml=Gr.pipeline.yaml,r.pipeline.indexing_yaml=Gr.pipeline.indexing_yaml,r.pipeline.query_yaml=Gr.pipeline.query_yaml,r.message=Gr.message;break;case nYe:r.pipeline.yaml=t.payload,r.message=Gr.message;break;case rYe:r.pipeline.indexing_yaml=t.payload.indexingYaml,r.pipeline.query_yaml=t.payload.queryYaml,r.message=Gr.message;break;case Kun:r.pipeline.indexing_yaml=t.payload,r.message=Gr.message;break;case Xun:r.pipeline.query_yaml=t.payload,r.message=Gr.message;break;case mYe:r.pipeline.name=t.payload;break;case iYe:r.pipeline.edited=t.payload;break;case aYe:r.pipeline.editedIndexingYaml=t.payload;break;case oYe:r.pipeline.editedQueryYaml=t.payload;break;case hYe:r.status=Gr.status,r.actionStatus=Gr.actionStatus,r.createUpdatePipelineStatus=Gr.createUpdatePipelineStatus,r.message=Gr.message,r.fetchDraftInProgress=Gr.fetchDraftInProgress,r.fetchDeployedInProgress=Gr.fetchDeployedInProgress,r.fetchPipelinesListStatus=Gr.fetchPipelinesListStatus;break;case QWe:r.newPipelineName=Gr.newPipelineName;break;case bYe:r.pipelineStatistics=Gr.pipelineStatistics,r.pipelineStatisticsAnswers=Gr.pipelineStatisticsAnswers,r.pipelineLogsStatus=Gr.pipelineLogsStatus,r.pipeline={...Gr.pipeline,deepset_cloud_version:r.pipeline.deepset_cloud_version,yaml:r.pipeline.yaml,indexing_yaml:r.pipeline.indexing_yaml,query_yaml:r.pipeline.query_yaml};break;case _Ye:r.pipelineLatestQueries=Gr.pipelineLatestQueries;break;case vpe:r.currentSharedPrototype=Gr.currentSharedPrototype;break;case PYe:r.activeTabPipelineDetailsPage=t.payload;break;case $Ye:r.activeTabPipelineDetailsPage=Gr.activeTabPipelineDetailsPage;break;case kYe:r.activeTabPipelinesLandingPage=t.payload;break;case MYe:r.activeTabYamlEditor=t.payload;break;case DYe:r.activeTabYamlEditor=Gr.activeTabYamlEditor;break;case BYe:r.indexingCode=t.payload;break;case jYe:r.queryCode=t.payload;break;case zYe:r.pipeline.deepset_cloud_version=t.payload;break;case UYe:r.indexingCode=Gr.indexingCode,r.queryCode=Gr.queryCode,r.indexingYamlEditorDiff=Gr.indexingYamlEditorDiff,r.queryYamlEditorDiff=Gr.queryYamlEditorDiff;break;case HYe:r.indexingYamlEditorDiff=t.payload;break;case VYe:r.queryYamlEditorDiff=t.payload;break;case uYe:r.pipelineErrors=Gr.pipelineErrors;break;case tYe:r.fetchPipelineYamlStatus=Me.IDLE;break;case FYe:r.sortValuePipelinesList=t.payload;break;case`${JWe}/${Kt}`:r.pipeline={...t.payload,yaml:r.pipeline.yaml,indexing_yaml:r.pipeline.indexing_yaml,query_yaml:r.pipeline.query_yaml,edited:r.pipeline.edited,editedIndexingYaml:r.pipeline.editedIndexingYaml,editedQueryYaml:r.pipeline.editedQueryYaml,indexing_details:r.pipeline.indexing_details},r.message=Gr.message;break;case`${eYe}/${Kt}`:r.pipeline={...r.pipeline,yaml:t.payload.yaml,indexing_yaml:t.payload.indexing_yaml,query_yaml:t.payload.query_yaml,edited:!1,editedIndexingYaml:!1,editedQueryYaml:!1},r.message=Gr.message,r.fetchPipelineYamlStatus=Me.SUCCESS;break;case`${gYe}/${Kt}`:r.pipeline={...r.pipeline,indexing_details:t.payload},r.message=Gr.message;break;case`${v7}/${Bn}`:{const i=t.meta.arg,{desiredStatus:a}=i;a||(r.fetchPipelinesListStatus=Me.IN_PROGRESS),a===qs.DEPLOYED&&(r.fetchDeployedInProgress=!0),a===qs.UNDEPLOYED&&(r.fetchDraftInProgress=!0);break}case`${v7}/${Kt}`:{const i=t.meta.arg,{desiredStatus:a}=i;if(t.payload===!1)break;if(!a){r.fetchPipelinesListStatus=Me.SUCCESS,r.pipelines=t.payload;break}if(a===qs.DEPLOYED){r.fetchDeployedInProgress=!1,r.deployedPipelines=t.payload;break}if(a===qs.UNDEPLOYED){r.fetchDraftInProgress=!1,r.draftPipelines=t.payload;break}r.pipelines=t.payload;break}case`${v7}/${Dn}`:{const i=t.meta.arg,{desiredStatus:a}=i;a||(r.fetchPipelinesListStatus=Me.ERROR),a===qs.DEPLOYED&&(r.fetchDeployedInProgress=!1),a===qs.UNDEPLOYED&&(r.fetchDraftInProgress=!1);break}case`${fYe}/${Kt}`:r.pipeline={...Gr.pipeline,service_level:Li.DRAFT,deepset_cloud_version:Rr.V1,yaml:t.payload,edited:!0},r.message=Gr.message;break;case`${pYe}/${Kt}`:r.pipeline={...Gr.pipeline,service_level:Li.DRAFT,deepset_cloud_version:Rr.V2,indexing_yaml:t.payload.indexingYaml,query_yaml:t.payload.queryYaml,edited:!0},r.message=Gr.message;break;case`${h7}/${Bn}`:case`${m7}/${Bn}`:r.createUpdatePipelineStatus=Me.IN_PROGRESS;break;case`${h7}/${Dn}`:case`${m7}/${Dn}`:{const{response:i}=t.payload;i&&i.status===Qs.CONFLICT&&(r.message={type:Er.ERROR,content:e5.PIPELINE_NAME_ALREADY_USED}),r.createUpdatePipelineStatus=Me.ERROR;break}case`${h7}/${Kt}`:{r.newPipelineName=t.payload.name,r.createUpdatePipelineStatus=Me.SUCCESS;const{code:i}=t.meta.arg;r.pipeline={...r.pipeline,...t.payload,yaml:i,status:qn.UNDEPLOYED,edited:!1};break}case`${m7}/${Kt}`:{r.createUpdatePipelineStatus=Me.SUCCESS;const{code:i}=t.meta.arg;r.pipeline={...r.pipeline,...t.payload,yaml:i,edited:!1};break}case`${g7}/${Kt}`:r.actionStatus=Me.SUCCESS,r.status=Me.SUCCESS,t.meta.arg.newPipelineName&&(r.pipeline={...r.pipeline,name:t.meta.arg.newPipelineName},r.renamePipelineNameStatus=Me.SUCCESS);break;case`${g7}/${Bn}`:r.actionStatus=Me.IN_PROGRESS,r.status=Me.IN_PROGRESS,t.meta.arg.newPipelineName&&(r.renamePipelineNameStatus=Me.IN_PROGRESS);break;case`${g7}/${Dn}`:{r.actionStatus=Me.ERROR;const{response:i}=t.payload;t.meta.arg.newPipelineName&&(r.renamePipelineNameStatus=Me.ERROR);const{status:a}=i||{};if(a===Qs.CONFLICT){r.message={type:Er.ERROR,content:e5.PIPELINE_NAME_ALREADY_USED};break}break}case dYe:r.message=Gr.message,r.renamePipelineNameStatus=Me.IDLE;break;case`${uae}/${Bn}`:case`${sae}/${Bn}`:case`${lae}/${Bn}`:r.actionStatus=Me.IN_PROGRESS;break;case`${uae}/${Kt}`:case`${sae}/${Kt}`:r.actionStatus=Me.SUCCESS;break;case`${cYe}/${Kt}`:if(!t.payload||t.payload.length===0)break;t.payload?.forEach(i=>{i.title===CM.INVALID_OPENAI_TOKEN_ERROR&&!r.pipelineErrors.find(a=>a.title===CM.INVALID_OPENAI_TOKEN_ERROR)?r.pipelineErrors.push({type:Er.ERROR,content:amn.INVALID_OPENAI_TOKEN_ERROR,title:Mae}):!r.pipelineErrors.find(a=>a.title===i.title)&&i.title!==CM.INVALID_OPENAI_TOKEN_ERROR&&r.pipelineErrors.push({type:Er.ERROR,content:i.message,title:i.title})});break;case`${lYe}/${Dn}`:{if(r.pipelineErrors=[],!t.payload||t.payload.length===0)break;const{response:i}=t.payload;if(!i)break;const{PIPELINE_MISSING_OPENAI_TOKEN_ERROR:a,PIPELINE_RECENTNESS_RANKER_MISSING_METADATA_ERROR:o}=mZe,s=(l,c)=>r.pipelineErrors.some(d=>d.title===l)?r.pipelineErrors:[...r.pipelineErrors,{type:Er.ERROR,content:c,title:l}];i.data?.details?.forEach(l=>{switch(l.code){case a:r.pipelineErrors=s(Mae,e5.OPENAI_KEY_MISSING);break;case o:r.pipelineErrors=s(dZe,e5.DATE_DRIVEN_FIELD_MISSING);break;default:r.pipelineErrors=s(l.code,l.message);break}});break}case`${lae}/${Kt}`:r.actionStatus=Me.SUCCESS;break;case`${p7}/${Bn}`:{r.actionStatus=Me.IN_PROGRESS;break}case`${p7}/${Dn}`:{r.actionStatus=Me.ERROR,r.pipeline.status=qn.DEPLOYMENT_FAILED;break}case`${cae}/${Bn}`:{r.actionStatus=Me.IN_PROGRESS;break}case`${p7}/${Kt}`:r.actionStatus=Me.SUCCESS,r.pipeline.status=t.payload&&t.payload.status||qn.DEPLOYED;break;case`${cae}/${Kt}`:r.actionStatus=Me.SUCCESS,r.pipeline.status=t.payload&&t.payload.status||qn.UNDEPLOYED;break;case sYe:r.message=Gr.message;break;case`${dae}/${Kt}`:!t.payload||Object.keys(t.payload).length===0?(r.pipelineStatistics=Gr.pipelineStatistics,r.pipelineStatisticsAnswers=Gr.pipelineStatisticsAnswers):Object.keys(t.payload).forEach(i=>{i in r.pipelineStatistics?r.pipelineStatistics[i]=t.payload[i]:i in r.pipelineStatisticsAnswers&&(r.pipelineStatisticsAnswers[i]=t.payload[i])});break;case`${dae}/${Dn}`:r.pipelineStatistics=Gr.pipelineStatistics,r.pipelineStatisticsAnswers=Gr.pipelineStatisticsAnswers;break;case`${mR}/${Bn}`:r.loadingLatestQueriesStatus=Me.IN_PROGRESS;break;case`${mR}/${Kt}`:{if(r.loadingLatestQueriesStatus=Me.SUCCESS,!Nn.get(t.payload,"data[0].response[0]")){r.pipelineLatestQueries=Gr.pipelineLatestQueries;break}r.pipelineLatestQueries=t.payload;break}case`${mR}/${Dn}`:r.loadingLatestQueriesStatus=Me.ERROR;break;case`${y7}/${Kt}`:{const{fetchMore:i}=t.meta.arg;i?r.pipelineLogs={...t.payload,data:[...r.pipelineLogs.data,...t.payload.data]}:r.pipelineLogs=t.payload,r.pipelineLogsStatus=Me.SUCCESS;break}case`${y7}/${Bn}`:r.pipelineLogsStatus=Me.IN_PROGRESS;break;case`${y7}/${Dn}`:r.pipelineLogsStatus=Me.ERROR;break;case`${yYe}/${Kt}`:r.pipelineLogsUnhealthy={...r.pipelineLogsUnhealthy,[t.meta.arg.pipelineName]:t.payload.data.length>0};break;case`${vYe}/${Dn}`:r.status=Me.ERROR;break;case`${b7}/${Bn}`:r.generateSharedPrototypeStatus=Me.IN_PROGRESS;break;case`${_7}/${Bn}`:r.loadingSharedPrototypeStatus=Me.IN_PROGRESS;break;case`${fae}/${Bn}`:r.deleteSharedPrototypeStatus=Me.IN_PROGRESS;break;case`${b7}/${Kt}`:r.generateSharedPrototypeStatus=Me.SUCCESS,r.currentSharedPrototype=t.payload;break;case`${_7}/${Kt}`:r.loadingSharedPrototypeStatus=Me.SUCCESS,r.currentSharedPrototype=t.payload;break;case`${fae}/${Kt}`:r.deleteSharedPrototypeStatus=Me.SUCCESS,r.currentSharedPrototype=Gr.currentSharedPrototype;break;case`${b7}/${Dn}`:r.generateSharedPrototypeStatus=Me.ERROR;break;case`${_7}/${Dn}`:r.loadingSharedPrototypeStatus=Me.ERROR;break}return r});var T1n=["title"],I1n=["title"],A1n=["title"],R1n=["title"],N1n=["title"],O1n=["title"],L1n=["title"],P1n=["title"],k1n=["title"],M1n=["title"],D1n=["title"],$1n=["title"],F1n=["title"];function ku(){return ku=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ku.apply(this,arguments)}function Bf(e,t){if(e==null)return{};var n=B1n(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function B1n(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var j1n=function(t){var n=t.title,r=Bf(t,T1n);return se.createElement("svg",ku({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&se.createElement("title",null,n),se.createElement("path",{fill:"#D80027",d:"M0 0h513v342H0z"}),se.createElement("path",{d:"m226.8 239.2-9.7-15.6-17.9 4.4 11.9-14.1-9.7-15.6 17.1 6.9 11.8-14.1-1.3 18.4 17.1 6.9-17.9 4.4zM290.6 82l-10.1 15.4 11.6 14.3-17.7-4.8-10.1 15.5-1-18.4-17.7-4.8 17.2-6.6-1-18.4 11.6 14.3zm-54.4-56.6-2 18.3 16.8 7.6-18 3.8-2 18.3-9.2-16-17.9 3.8 12.3-13.7-9.2-15.9 16.8 7.5zm56.6 136.4-14.9 10.9 5.8 17.5-14.9-10.8-14.9 11 5.6-17.6-14.9-10.7 18.4-.1 5.6-17.6 5.8 17.5zM115 46.3l17.3 53.5h56.2l-45.4 32.9 17.3 53.5-45.4-33-45.5 33 17.4-53.5-45.5-32.9h56.3z",fill:"#FFDA44"}))},z1n=function(t){var n=t.title,r=Bf(t,I1n);return se.createElement("svg",ku({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&se.createElement("title",null,n),se.createElement("path",{fill:"#D80027",d:"M0 0h513v342H0z"}),se.createElement("path",{d:"M0 0h513v114H0z"}),se.createElement("path",{fill:"#FFDA44",d:"M0 228h513v114H0z"}))},U1n=function(t){var n=t.title,r=Bf(t,A1n);return se.createElement("svg",ku({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22.5 15"},r),n&&se.createElement("title",null,n),se.createElement("path",{fill:"#FFF",d:"M0 0h22.5v15H0V0z"}),se.createElement("path",{fill:"#D03433",d:"M0 0h22.5v4H0V0zm0 11h22.5v4H0v-4z"}),se.createElement("path",{fill:"#FBCA46",d:"M0 4h22.5v7H0V4z"}),se.createElement("path",{fill:"#FFF",d:"M7.8 7h1v.5h-1V7z"}),se.createElement("path",{fill:"#A41517",d:"M7.2 8.5c0 .3.3.5.6.5s.6-.2.6-.5L8.5 7H7.1l.1 1.5zM6.6 7c0-.3.2-.5.4-.5h1.5c.3 0 .5.2.5.4V7l-.1 1.5c-.1.6-.5 1-1.1 1-.6 0-1-.4-1.1-1L6.6 7z"}),se.createElement("path",{fill:"#A41517",d:"M6.8 7.5h2V8h-.5l-.5 1-.5-1h-.5v-.5zM5.3 6h1v3.5h-1V6zm4 0h1v3.5h-1V6zm-2.5-.5c0-.3.2-.5.5-.5h1c.3 0 .5.2.5.5v.2c0 .2-.1.3-.3.3H7c-.1 0-.2-.1-.2-.2v-.3z"}))},H1n=function(t){var n=t.title,r=Bf(t,R1n);return se.createElement("svg",ku({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&se.createElement("title",null,n),se.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),se.createElement("path",{fill:"#0052B4",d:"M0 0h171v342H0z"}),se.createElement("path",{fill:"#D80027",d:"M342 0h171v342H342z"}))},V1n=function(t){var n=t.title,r=Bf(t,N1n);return se.createElement("svg",ku({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&se.createElement("title",null,n),se.createElement("path",{fill:"#181A93",d:"M17.3 0h478.4v342H17.3V0z"}),se.createElement("path",{fill:"#FFA44A",d:"M0 0h513v114H0V0z"}),se.createElement("path",{fill:"#1A9F0B",d:"M0 228h513v114H0V228z"}),se.createElement("path",{fill:"#FFF",d:"M0 114h513v114H0V114z"}),se.createElement("circle",{fill:"#FFF",cx:256.5,cy:171,r:34.2}),se.createElement("path",{fill:"#181A93",d:"M256.5 216.6c-25.1 0-45.6-20.5-45.6-45.6s20.5-45.6 45.6-45.6 45.6 20.5 45.6 45.6-20.5 45.6-45.6 45.6zm0-11.4c18.2 0 34.2-16 34.2-34.2s-15.9-34.2-34.2-34.2-34.2 16-34.2 34.2 16 34.2 34.2 34.2z"}),se.createElement("circle",{fill:"#181A93",cx:256.5,cy:171,r:22.8}))},G1n=function(t){var n=t.title,r=Bf(t,O1n);return se.createElement("svg",ku({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&se.createElement("title",null,n),se.createElement("path",{fill:"#FFF",d:"M342 0H0v341.3h512V0z"}),se.createElement("path",{fill:"#6DA544",d:"M0 0h171v342H0z"}),se.createElement("path",{fill:"#D80027",d:"M342 0h171v342H342z"}))},q1n=function(t){var n=t.title,r=Bf(t,L1n);return se.createElement("svg",ku({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&se.createElement("title",null,n),se.createElement("path",{fill:"#FFF",d:"M0 0h512v342H0z"}),se.createElement("circle",{fill:"#D80027",cx:256.5,cy:171,r:96}))},W1n=function(t){var n=t.title,r=Bf(t,P1n);return se.createElement("svg",ku({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&se.createElement("title",null,n),se.createElement("path",{fill:"#FFF",d:"M0 114h513v114H0z"}),se.createElement("path",{fill:"#cd1f2a",d:"M0 0h513v114H0z"}),se.createElement("path",{fill:"#1d4185",d:"M0 228h513v114H0z"}))},Y1n=function(t){var n=t.title,r=Bf(t,k1n);return se.createElement("svg",ku({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&se.createElement("title",null,n),se.createElement("path",{fill:"#D80027",d:"M0 85.337h512v341.326H0z"}),se.createElement("path",{fill:"#6DA544",d:"M196.641 85.337v341.326H0V85.337z"}),se.createElement("circle",{fill:"#FFDA44",cx:196.641,cy:256,r:64}),se.createElement("path",{fill:"#D80027",d:"M160.638 224v40.001c0 19.882 16.118 36 36 36s36-16.118 36-36V224h-72z"}),se.createElement("path",{fill:"#FFF",d:"M196.638 276c-6.617 0-12-5.383-12-12v-16h24.001v16c-.001 6.616-5.385 12-12.001 12z"}))},K1n=function(t){var n=t.title,r=Bf(t,M1n);return se.createElement("svg",ku({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&se.createElement("title",null,n),se.createElement("path",{fill:"#FFF",d:"M0 85.33v341.332h512V85.33z"}),se.createElement("path",{fill:"#0052B4",d:"M0 85.333h512V426.67H0z"}),se.createElement("path",{fill:"#FFF",d:"M0 85.333h512v113.775H0z"}),se.createElement("path",{fill:"#D80027",d:"M0 312.884h512v113.775H0z"}))},X1n=function(t){var n=t.title,r=Bf(t,D1n);return se.createElement("svg",ku({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&se.createElement("title",null,n),se.createElement("path",{fill:"#055e1c",d:"M0 85.333h512v341.333H0z"}),se.createElement("g",{fill:"#FFF"},se.createElement("path",{d:"M183.548 289.386c0 12.295 9.731 22.261 21.736 22.261h65.208c0 10.244 8.11 18.551 18.114 18.551h21.736c10.004 0 18.114-8.306 18.114-18.551v-22.261H183.548zm146.716-107.595v51.942c0 8.183-6.5 14.84-14.491 14.84v22.261c19.976 0 36.226-16.643 36.226-37.101v-51.942h-21.735zm-155.773 51.943c0 8.183-6.5 14.84-14.491 14.84v22.261c19.976 0 36.226-16.643 36.226-37.101v-51.942H174.49v51.942z"}),se.createElement("path",{d:"M297.661 181.788h21.736v51.942h-21.736zm-32.604 29.685c0 2.046-1.625 3.71-3.623 3.71-1.998 0-3.623-1.664-3.623-3.71v-29.682h-21.736v29.682c0 2.046-1.625 3.71-3.623 3.71s-3.623-1.664-3.623-3.71v-29.682h-21.736v29.682c0 14.32 11.376 25.971 25.358 25.971 5.385 0 10.38-1.733 14.491-4.677 4.11 2.944 9.106 4.677 14.491 4.677 1.084 0 2.15-.078 3.2-.215-1.54 6.499-7.255 11.345-14.068 11.345v22.261c19.976 0 36.226-16.643 36.226-37.101v-51.943h-21.736l.002 29.682z"}),se.createElement("path",{d:"M207.093 248.57h32.601v22.261h-32.601z"})))},Z1n=function(t){var n=t.title,r=Bf(t,$1n);return se.createElement("svg",ku({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&se.createElement("title",null,n),se.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),se.createElement("path",{d:"M0 0h513v26.3H0zm0 52.6h513v26.3H0zm0 52.6h513v26.3H0zm0 52.6h513v26.3H0zm0 52.7h513v26.3H0zm0 52.6h513v26.3H0zm0 52.6h513V342H0z",fill:"#D80027"}),se.createElement("path",{fill:"#2E52B2",d:"M0 0h256.5v184.1H0z"}),se.createElement("path",{d:"m47.8 138.9-4-12.8-4.4 12.8H26.2l10.7 7.7-4 12.8 10.9-7.9 10.6 7.9-4.1-12.8 10.9-7.7zm56.3 0-4.1-12.8-4.2 12.8H82.6l10.7 7.7-4 12.8 10.7-7.9 10.8 7.9-4-12.8 10.7-7.7zm56.5 0-4.3-12.8-4 12.8h-13.5l11 7.7-4.2 12.8 10.7-7.9 11 7.9-4.2-12.8 10.7-7.7zm56.2 0-4-12.8-4.2 12.8h-13.3l10.8 7.7-4 12.8 10.7-7.9 10.8 7.9-4.3-12.8 11-7.7zM100 75.3l-4.2 12.8H82.6L93.3 96l-4 12.6 10.7-7.8 10.8 7.8-4-12.6 10.7-7.9h-13.4zm-56.2 0-4.4 12.8H26.2L36.9 96l-4 12.6 10.9-7.8 10.6 7.8L50.3 96l10.9-7.9H47.8zm112.5 0-4 12.8h-13.5l11 7.9-4.2 12.6 10.7-7.8 11 7.8-4.2-12.6 10.7-7.9h-13.2zm56.5 0-4.2 12.8h-13.3l10.8 7.9-4 12.6 10.7-7.8 10.8 7.8-4.3-12.6 11-7.9h-13.5zm-169-50.6-4.4 12.6H26.2l10.7 7.9-4 12.7L43.8 50l10.6 7.9-4.1-12.7 10.9-7.9H47.8zm56.2 0-4.2 12.6H82.6l10.7 7.9-4 12.7L100 50l10.8 7.9-4-12.7 10.7-7.9h-13.4zm56.3 0-4 12.6h-13.5l11 7.9-4.2 12.7 10.7-7.9 11 7.9-4.2-12.7 10.7-7.9h-13.2zm56.5 0-4.2 12.6h-13.3l10.8 7.9-4 12.7 10.7-7.9 10.8 7.9-4.3-12.7 11-7.9h-13.5z",fill:"#FFF"}))},Q1n=function(t){var n=t.title,r=Bf(t,F1n);return se.createElement("svg",ku({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&se.createElement("title",null,n),se.createElement("path",{fill:"#D80027",d:"M196.641 85.337H0v341.326h512V85.337z"}),se.createElement("path",{fill:"#FFDA44",d:"m256 157.279 22.663 69.747H352l-59.332 43.106 22.664 69.749L256 296.774l-59.332 43.107 22.664-69.749L160 227.026h73.337z"}))};const J1n="by",e0n="Created by",XZe="All Templates",t0n="View Details",ZZe="Use Template",n0n="See all",r0n="Create empty pipeline",i0n="Pipeline Preview",a0n="Similar templates",o0n="Find templates",s0n="clear all filters",l0n="deepset Cloud %version%",c0n="We're working on new %categoryName% templates. In the meantime, feel free to explore other categories or check back here later.",u0n={[Rr.V1]:"1.0",[Rr.V2]:"2.0"},d0n=[{key:Rr.V2,label:"deepset Cloud 2.0"},{key:Rr.V1,label:"deepset Cloud 1.0"}],$we={[Rr.V1]:{title:"deepset Cloud 1.0",description:"With this robust and stable deepset Cloud 1.0 version, you can build production-ready LLM apps and advanced search systems using the pipelines under the hood. In 1.0 pipelines, data streams from one node to the next, ensuring a smooth and efficient workflow."},[Rr.V2]:{title:"deepset Cloud 2.0",description:"The deepset Cloud 2.0 Beta release introduces flexible pipelines that support simultaneous flows and loops and can handle multiple functions. Indexing and query pipelines are separated for enhanced performance. Additionally, you'll find improved, more powerful pipeline components to boost your workflows."}},Vae={[_i.RECOMMENDED]:"Recommended",[_i.DOCUMENT_SEARCH]:"Document Search",[_i.BASIC_QA]:"Basic QA",[_i.ADVANCED_QA]:"Advanced QA",[_i.CONVERSATIONAL]:"Conversational",[_i.TEXT_ANALYSIS]:"Text Analysis",[_i.VISUAL_QA]:"Visual QA",[_i.TEXT_TO_SQL]:"Text-to-SQL"};var Fy=(e=>(e.BEST_FOR="Best for",e.POTENTIAL_APPLICATIONS="Potential applications",e.TAGS="Tags",e.EXPECTED_OUTPUT="Expected output",e.LANGUAGES="Languages",e.RECOMMENDED_DATASET="Recommended dataset",e.DEEPSET_CLOUD_VERSION="Version",e))(Fy||{});const f0n={arabic:E.jsx(X1n,{}),italian:E.jsx(G1n,{}),spanish:E.jsx(U1n,{}),hindi:E.jsx(V1n,{}),dutch:E.jsx(W1n,{}),portuguese:E.jsx(Y1n,{}),russian:E.jsx(K1n,{}),french:E.jsx(H1n,{}),english:E.jsx(Z1n,{}),vietnamese:E.jsx(Q1n,{}),chinese:E.jsx(j1n,{}),japanese:E.jsx(q1n,{}),german:E.jsx(z1n,{})},p0n="Tags",h0n={TAGS_ID:"tags/tag_id"},Fwe={TITLE:"No templates match the current filters",DESCRIPTION:"To see more templates, try changing or removing some filters. You can also %clearFiltersLink% to view all available templates."},Bwe={TITLE:"No templates match the search criteria",DESCRIPTION:"Try searching for something different."},m0n="name_asc",g0n=[{key:"name_asc",label:"Name A to Z"},{key:"name_desc",label:"Name Z to A"}],v0n={name_asc:{field:"name",order:"ASC"},name_desc:{field:"name",order:"DESC"}},QZe={pipelineTemplates:{data:[],has_more:!1,total:0},pipelineTemplatesByCategory:{recommended:{data:[],has_more:!1,total:0},documentSearch:{data:[],has_more:!1,total:0},basicQA:{data:[],has_more:!1,total:0},advancedQA:{data:[],has_more:!1,total:0},visualQA:{data:[],has_more:!1,total:0},conversational:{data:[],has_more:!1,total:0},textAnalysis:{data:[],has_more:!1,total:0},textToSQL:{data:[],has_more:!1,total:0}},pipelineTemplatesStatus:Me.IDLE,selectedCategory:null,selectedTemplate:null,moreTemplatesLikeThis:[],moreTemplatesLikeThisStatus:Me.IDLE,pipelineTemplatesSearchValue:null,pipelineTemplatesFiltersValues:{tags:[]},selectedPipelineTemplateFilters:{},pipelineTemplatesSortValue:m0n,activeVersionTabTemplatesLandingPage:Rr.V2},y0n=(e=QZe,t)=>Ms(e,n=>{const r=n;switch(t.type){case TYe:r.selectedTemplate=null;break;case xYe:r.moreTemplatesLikeThis=[],r.moreTemplatesLikeThisStatus=Me.IDLE;break;case EYe:r.activeVersionTabTemplatesLandingPage=t.payload;break;case`${IYe}`:r.selectedTemplate=t.payload;break;case`${CYe}`:r.selectedCategory=t.payload;break;case`${LYe}`:r.selectedPipelineTemplateFilters={};break;case`${SYe}/${Kt}`:r.selectedTemplate=t.payload;break;case`${E7}/${Bn}`:{const{fetchMore:i}=t.meta.arg;if(i)break;r.pipelineTemplatesStatus=Me.IN_PROGRESS;break}case`${E7}/${Kt}`:{r.pipelineTemplatesStatus=Me.SUCCESS;const{fetchMore:i}=t.meta.arg;i?r.pipelineTemplates={...t.payload,data:[...r.pipelineTemplates.data,...t.payload.data]}:r.pipelineTemplates=t.payload;break}case`${S7}/${Bn}`:r.pipelineTemplatesStatus=Me.IN_PROGRESS;break;case`${S7}/${Kt}`:{const{category:i,data:a}=t.payload;r.pipelineTemplatesStatus=Me.SUCCESS,r.pipelineTemplatesByCategory[i]=a;break}case`${E7}/${Dn}`:case`${S7}/${Dn}`:r.pipelineTemplatesStatus=Me.ERROR;break;case`${wYe}/${Kt}`:{r.moreTemplatesLikeThis=t.payload,r.moreTemplatesLikeThisStatus=Me.SUCCESS;break}case AYe:r.pipelineTemplatesSearchValue=t.payload;break;case NYe:{const{filterKey:i,items:a}=t.payload;r.selectedPipelineTemplateFilters[i]=a;break}case OYe:r.pipelineTemplatesSortValue=t.payload;break;case`${RYe}/${Kt}`:r.pipelineTemplatesFiltersValues={...r.pipelineTemplatesFiltersValues,tags:t.payload.map(({name:i,tag_id:a})=>({key:a,label:vvn(i)}))};break}return r}),b0n=3,JZe=220,_0n="Prompt Editor",Z6r="Prompt",Q6r="Prompt templates",J6r="Prompt copied",S0n="Pipeline Details page",SW={NO_CHANGES:"Once you make changes, you’ll be able to insert the prompt in the pipeline.",UPDATE_PIPELINE_NODE:"Update %node% in pipeline",PRODUCTION_PIPELINE:'To update a prompt in a production pipeline, change its service level to "Development" from the %pipelinePage%.'},jwe="To update the prompt text in a PromptHub template, insert it directly into the PipelineTemplate node in the pipeline YAML.",eQe="Updating prompt",tQe="Prompt updated in pipeline.",E0n="Update prompt?",C0n="Updating the prompt means the existing prompt will be replaced with this one.",w0n="Prompt Templates",zwe="Tags",x0n="Use Prompt",T0n="Edit Prompt",I0n="Create Custom Prompt",A0n="Custom",R0n="deepset",N0n="Prompt name",O0n="Give your prompt a meaningful name",L0n="Add a prompt description to help you identify it later",P0n="Type prompt text here. Use curly {brackets} to insert a placeholder",k0n="Your custom prompts will be shared across your organization.",M0n="Save Prompt",D0n="Save Changes",$0n="By cancelling, you will loose all your progress. Are you sure you want to cancel?",F0n="Are you sure you want to delete this?",B0n="Add Pipeline",j0n="Type your query here",z0n="Welcome to Prompt Studio",U0n="Easily try out different prompts to help you optimize your pipeline. Use a template for an easy start.",H0n=[{title:"Explore prompts in a dynamic environment",description:"Experiment with your prompts and get immediate results. Compare prompts across up to three pipelines and save the best ones to your prompt template library.",icon:E.jsx(pSt,{})},{title:"A library of ready-made prompt templates",description:"We've got you covered with our curated set of ready-to-use prompts to start you off. Just choose a template and try it out.",icon:E.jsx(lbt,{})}],V0n="Select Pipeline",G0n="Start new chat",q0n="New session started",W0n="created_at_desc",Y0n=[{key:"created_at_desc",label:"Newest to Oldest"},{key:"created_at_asc",label:"Oldest to Newest"},{key:"name_asc",label:"Name A to Z"},{key:"name_desc",label:"Name Z to A"}],nQe={created_at_asc:{field:"created_at",order:"ASC"},created_at_desc:{field:"created_at",order:"DESC"},name_asc:{field:"name",order:"ASC"},name_desc:{field:"name",order:"DESC"}},K0n="Tags",X0n="Created by",Z0n="Search for prompts",Uwe={USER_ID:"user/user_id",TAGS_ID:"tags/tag_id"},rQe={promptTemplates:{data:[],has_more:!1,total:0},promptTemplatesStatus:Me.IDLE,createPromptTemplateStatus:Me.IDLE,updatePromptTemplateStatus:Me.IDLE,promptTemplatesSortValue:W0n,filtersValues:{tags:[],users:[]},updatePipelinePromptStatus:Me.IDLE},Hwe=e=>e.map(({name:t})=>t),Q0n=(e=rQe,t)=>Ms(e,n=>{const r=n;switch(t.type){case`${Eae}/${Bn}`:case`${Sae}/${Bn}`:{const{fetchMore:i}=t.meta.arg;if(i)break;r.promptTemplatesStatus=Me.IN_PROGRESS;break}case`${Sae}/${Kt}`:{const{fetchMore:i}=t.meta.arg;r.promptTemplatesStatus=Me.SUCCESS;const a=t.payload.data.map(o=>({...o,tags:Hwe(o.tags)}));i?r.promptTemplates={...t.payload,data:[...r.promptTemplates.data,...a]}:r.promptTemplates={...t.payload,data:a};break}case`${Eae}/${Kt}`:{r.promptTemplatesStatus=Me.SUCCESS;const{fetchMore:i}=t.meta.arg,a=t.payload.data.map(o=>({...o,prompt_template_id:o.public_prompt_template_id,user:{given_name:o.meta?.authors?.[0]||"",family_name:"",user_id:""},tags:Hwe(o.tags)}));i?r.promptTemplates={...t.payload,data:[...r.promptTemplates.data,...a]}:r.promptTemplates={...t.payload,data:a};break}case`${K7}/${Bn}`:{r.createPromptTemplateStatus=Me.IDLE;break}case`${K7}/${Kt}`:{r.createPromptTemplateStatus=Me.SUCCESS;break}case`${K7}/${Dn}`:{r.createPromptTemplateStatus=Me.ERROR;break}case`${Z7}/${Bn}`:case`${X7}/${Bn}`:{r.updatePromptTemplateStatus=Me.IDLE;break}case`${Z7}/${Kt}`:case`${X7}/${Kt}`:{r.updatePromptTemplateStatus=Me.SUCCESS;break}case`${Z7}/${Dn}`:case`${X7}/${Dn}`:{r.updatePromptTemplateStatus=Me.ERROR;break}case $Ke:r.promptTemplatesSortValue=t.payload;break;case`${FKe}/${Kt}`:r.filtersValues={...r.filtersValues,tags:t.payload.map(({name:i,tag_id:a})=>({key:a,label:i}))};break;case`${BKe}/${Kt}`:r.filtersValues={...r.filtersValues,users:t.payload.map(({given_name:i,family_name:a,user_id:o})=>({key:o,label:`${i} ${a}`}))};break;case`${vR}/${Bn}`:r.updatePipelinePromptStatus=Me.IN_PROGRESS;break;case`${vR}/${Kt}`:r.updatePipelinePromptStatus=Me.SUCCESS;break;case`${vR}/${Dn}`:r.updatePipelinePromptStatus=Me.ERROR;break}return r}),Uc={searchResults:{answers:[],documents:[],query:"",query_id:""},chatResults:[],queryResultsPromptExplorer:{},searchPipeline:"",query:"",status:Me.IDLE,chatQueryStatus:Me.IDLE,statusPromptExplorer:{},message:{type:Er.INFO,content:"",status:Qs.OK},searchSessions:{has_more:!1,total:0,search_sessions:[]},searchSessionsStatus:Me.IDLE,referenceDrawerVisible:!1,promptModalVisible:!1,debugMode:!0};function J0n(e=Uc,t){return Ms(e,n=>{let r=n;switch(t.type){case XYe:r={...Uc,searchPipeline:r.searchPipeline};break;case ZYe:delete r.queryResultsPromptExplorer[t.payload],delete r.statusPromptExplorer[t.payload],r.promptModalVisible=Uc.promptModalVisible,r.activePrompts=Uc.activePrompts;break;case QYe:r.chatResults=Uc.chatResults,r.chatQueryStatus=Uc.chatQueryStatus,r.promptModalVisible=Uc.promptModalVisible,r.activePrompts=Uc.activePrompts;break;case GYe:r={...Uc,searchPipeline:t.payload};break;case JYe:{r.referenceDrawerVisible=!0,r.activeReference=t.payload;break}case eKe:{r.referenceDrawerVisible=!1,r.activeReference=null;break}case tKe:{r.promptModalVisible=!r.promptModalVisible,r.activePrompts=t.payload;break}case iKe:{r.debugMode=t.payload;break}case`${w7}/${Bn}`:r.query=t.meta.arg?.query||"",r.status=Me.IN_PROGRESS,r.message=Uc.message,r.searchResults=Uc.searchResults;break;case`${w7}/${Dn}`:{r.status=Me.ERROR,r.message={type:Er.ERROR,content:Wn(t.payload),status:t.payload?.response?.status};break}case`${w7}/${Kt}`:{if(r.status=Me.SUCCESS,r.message=Uc.message,!t.payload)return;const{results:i}=t.payload;r.searchResults=i[0];break}case`${qYe}`:{r.status=Me.SUCCESS,r.message=Uc.message;const{query_id:i,result:a,text:o,query:s}=t.payload;if(a){r.searchResults=a;break}const{answers:l}=r.searchResults,[c]=l||{answer:""};r.searchResults={...r.searchResults,answers:[{...fS(),answer:(c?.answer||"")+o}],query_id:i,query:s};break}case`${fE}/${Bn}`:case`${dE}/${Bn}`:r.message=Uc.message,r.status=Me.IN_PROGRESS;break;case`${fE}/${Kt}`:case`${dE}/${Kt}`:r.status=Me.SUCCESS,r.message=Uc.message;break;case`${pae}/${Bn}`:{const{fetchMore:i}=t.meta.arg;if(i)break;r.searchSessionsStatus=Me.IN_PROGRESS;break}case`${pae}/${Kt}`:{const{fetchMore:i}=t.meta.arg;r.searchSessionsStatus=Me.SUCCESS,i?r.searchSessions={...t.payload,search_sessions:[...r.searchSessions.search_sessions,...t.payload.search_sessions]}:r.searchSessions=t.payload;break}case`${fE}/${Dn}`:case`${dE}/${Dn}`:r.status=Me.ERROR,r.message={type:Er.ERROR,content:Wn(t.payload),status:t.payload?.response?.status};break;case`${x7}/${Bn}`:{r.chatQueryStatus=Me.IN_PROGRESS;break}case`${x7}/${Kt}`:{if(r.chatQueryStatus=Me.SUCCESS,!t.payload)return;const{results:i}=t.payload,[a]=i;r.chatResults=[...r.chatResults,a];break}case`${WYe}`:{r.chatQueryStatus=Me.SUCCESS;const{query_id:i,result:a,text:o,query:s}=t.payload,l=r.chatResults.findIndex(c=>c.query_id===i);if(a){l!==-1?r.chatResults[l]=a:r.chatResults=[...r.chatResults,a];break}if(l!==-1){const[c]=r.chatResults[l].answers||{answer:""};r.chatResults[l].answers=[{...fS(),answer:(c?.answer||"")+o}];break}r.chatResults=[...r.chatResults,{documents:[],answers:[{...fS(),answer:o}],query_id:i,query:s}];break}case`${x7}/${Dn}`:{r.chatQueryStatus=Me.ERROR;const{query:i}=t.meta.arg,a={answers:[],documents:[],query:i,query_id:ps(),errorMessage:Wn(t.payload)};r.chatResults=[...r.chatResults,a];break}case`${T7}/${Bn}`:{const{playgroundId:i}=t.meta.arg;r.statusPromptExplorer[i]=Me.IN_PROGRESS;break}case`${T7}/${Kt}`:{const{playgroundId:i,params:a}=t.meta.arg;if(r.statusPromptExplorer[i]=Me.SUCCESS,!t.payload)return;const{results:o}=t.payload,s={...o[0],promptTemplates:wA(a)};r.queryResultsPromptExplorer[i]?r.queryResultsPromptExplorer[i]=[...r.queryResultsPromptExplorer[i],s]:r.queryResultsPromptExplorer[i]=[s];break}case YYe:{const{query_id:i,result:a,text:o,query:s,playgroundId:l,params:c}=t.payload;r.statusPromptExplorer[l]=Me.SUCCESS;const u={documents:[],answers:[{...fS(),answer:o}],query_id:i,query:s,promptTemplates:wA(c)};if(!r.queryResultsPromptExplorer[l]){if(a){const p={...a,promptTemplates:wA(c)};r.queryResultsPromptExplorer[l]=[p];break}r.queryResultsPromptExplorer[l]=[u];break}let d=r.queryResultsPromptExplorer[l];const f=d.findIndex(p=>p.query_id===i);if(a){const p={...a,promptTemplates:wA(c)};f!==-1?d[f]=p:d.push(p);break}if(f!==-1){const[p]=d[f].answers||[fS()];d[f].answers=[{...fS(),answer:(p.answer||"")+o}];break}d.push(u);break}case`${T7}/${Dn}`:{const{playgroundId:i,query:a}=t.meta.arg,o={answers:[],documents:[],query:a,query_id:ps(),errorMessage:Wn(t.payload)};r.statusPromptExplorer[i]=Me.ERROR,r.queryResultsPromptExplorer[i]?r.queryResultsPromptExplorer[i]=[...r.queryResultsPromptExplorer[i],o]:r.queryResultsPromptExplorer[i]=[o];break}case KYe:{const{playgroundId:i,infoText:a}=t.payload,o={answers:[],documents:[],query:"",query_id:ps(),infoMessage:a};r.statusPromptExplorer[i]=Me.ERROR,r.queryResultsPromptExplorer[i]?r.queryResultsPromptExplorer[i]=[...r.queryResultsPromptExplorer[i],o]:r.queryResultsPromptExplorer[i]=[o];break}}return r})}const TA={organizationSecrets:{data:[],has_more:!1,total:0},fetchOrganizationSecretsStatus:Me.IDLE,addOrganizationSecretStatus:Me.IDLE,deleteOrganizationSecretStatus:Me.IDLE},eyn=(e=TA,t)=>Ms(e,n=>{const r=n;switch(t.type){case kXe:r.fetchOrganizationSecretsStatus=TA.fetchOrganizationSecretsStatus,r.addOrganizationSecretStatus=TA.addOrganizationSecretStatus,r.deleteOrganizationSecretStatus=TA.deleteOrganizationSecretStatus;break;case`${vM}/${Bn}`:r.fetchOrganizationSecretsStatus=Me.IN_PROGRESS;break;case`${vM}/${Kt}`:r.fetchOrganizationSecretsStatus=Me.SUCCESS,r.organizationSecrets=t.payload;break;case`${vM}/${Dn}`:r.fetchOrganizationSecretsStatus=Me.ERROR;break;case`${yM}/${Bn}`:r.addOrganizationSecretStatus=Me.IN_PROGRESS;break;case`${yM}/${Kt}`:r.addOrganizationSecretStatus=Me.SUCCESS;break;case`${yM}/${Dn}`:r.addOrganizationSecretStatus=Me.ERROR;break;case`${bM}/${Bn}`:r.deleteOrganizationSecretStatus=Me.IN_PROGRESS;break;case`${bM}/${Kt}`:r.deleteOrganizationSecretStatus=Me.SUCCESS;break;case`${bM}/${Dn}`:r.deleteOrganizationSecretStatus=Me.ERROR;break}});function Gae(e){this.message=e}Gae.prototype=new Error,Gae.prototype.name="InvalidCharacterError";var Vwe=typeof window<"u"&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new Gae("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,i=0,a=0,o="";r=t.charAt(a++);~r&&(n=i%4?64*n+r:r,i++%4)?o+=String.fromCharCode(255&n>>(-2*i&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return o};function tyn(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(n){return decodeURIComponent(Vwe(n).replace(/(.)/g,function(r,i){var a=i.charCodeAt(0).toString(16).toUpperCase();return a.length<2&&(a="0"+a),"%"+a}))}(t)}catch{return Vwe(t)}}function EF(e){this.message=e}function iQe(e,t){if(typeof e!="string")throw new EF("Invalid token specified");var n=(t=t||{}).header===!0?0:1;try{return JSON.parse(tyn(e.split(".")[n]))}catch(r){throw new EF("Invalid token specified: "+r.message)}}EF.prototype=new Error,EF.prototype.name="InvalidTokenError";const aQe={tokenData:null};function nyn(e=aQe,t){return Ms(e,n=>{const r=n;switch(t.type){case`${Fdn}`:{if(!t.payload){r.tokenData=null;break}const{share_id:i,workspace_name:a,workspace_id:o,show_metadata_filters:s,show_files:l,shared_job_info:c}=iQe(t.payload);r.tokenData={shareID:i||c.shared_job_id,workspaceID:o||c.workspace_id,workspaceName:a||"",jobID:c&&c.job_id,showFiles:l,showMetadataFilters:s};break}}return r})}const qae={uploadData:[],isUploadingStarted:!1,isUploadingCompleted:!1};function ryn(e=qae,t){return Ms(e,n=>{const r=n;switch(t.type){case MKe:return qae;case LKe:r.uploadData.push(t.payload);break;case PKe:r.isUploadingStarted=!0,r.isUploadingCompleted=!1;break;case kKe:r.isUploadingCompleted=!0;break}return r})}const iyn="Usage",ayn="Unlimited",oyn="Pipelines in current usage cycle",syn="Production hours",lyn="Development hours",Gwe="Pipeline Hours",cyn="Find pipelines",y2={NAME:"Name",DEV_HOURS:"Dev Hours",PROD_HOURS:"Prod Hours",STORAGE_UNITS:"Storage Units",WORKSPACE_NAME:"Workspace",DOCUMENTS:"Documents",SERVICE_LEVEL:"Service Level"},EW={label:"Your organization",limitLabel:"Usage cycle (%usageCycle%)",targetLabel:"%days% Days left"},CW=`${zu}docs/understand-pipeline-usage`,uyn={document_storage_units:{label:"Storage Units",tooltip:Pn("Storage units measure your usage of vector storage. It's a reflection of the number of documents your files are chunked into and the dimensionality of your embedding model. To learn more, see %link%.",{link:L5(CW,"documentation")}),limitLabel:"Cycle limit"},development_hours:{label:"Development hours",tooltip:"Total hours your development pipelines were deployed in this usage cycle, including hours from deleted pipelines and experiments.",limitLabel:"Cycle limit",metricUnit:"h"},production_hours:{label:"Production hours",tooltip:"Total hours your production pipelines were deployed in this usage cycle, including hours from deleted pipelines.",limitLabel:"Cycle limit",metricUnit:"h"},development_pipelines:{label:"Development pipelines",tooltip:Pn("Pipelines that are currently deployed but not used in production. To learn more, see %link%.",{link:L5(CW,"documentation")}),limitLabel:"Plan limit"},production_pipelines:{label:"Production pipelines",tooltip:Pn("Pipelines that have been set to a production service level and are currently deployed. To learn more, see %link%.",{link:L5(CW,"documentation")}),limitLabel:"Plan limit"}},dyn=[{label:"Export as PNG",key:Cp.PNG},{label:"Export as JPEG",key:Cp.JPEG},{label:"Export as PDF",key:Cp.PDF}],wW={[Fh.PRODUCTION]:"Prod",[Fh.DEVELOPMENT]:"Dev",[Fh.DRAFT]:"Draft"},fyn="Service Level",pyn={SERVICE_LEVEL:"service_level"},xW={DRAFT:"Draft",PRODUCTION:"Production",DEVELOPMENT:"Development"},hyn="production_hours_desc",myn=[{key:"production_hours_asc",label:"Prod hours ascending"},{key:"production_hours_desc",label:"Prod hours descending"},{key:"development_hours_asc",label:"Dev hours ascending"},{key:"development_hours_desc",label:"Dev hours descending"},{key:"document_storage_units_asc",label:"Storage units ascending"},{key:"document_storage_units_desc",label:"Storage units descending"}],gyn={production_hours_asc:{field:"production_hours",order:"ASC"},production_hours_desc:{field:"production_hours",order:"DESC"},development_hours_asc:{field:"development_hours",order:"ASC"},development_hours_desc:{field:"development_hours",order:"DESC"},document_storage_units_asc:{field:"document_storage_units",order:"ASC"},document_storage_units_desc:{field:"document_storage_units",order:"DESC"}},oQe=()=>{const e=Cr().utc().startOf("month"),t=Cr().utc().endOf("month");return{type:Xc.THIRTY_DAYS,from:e,to:t,interval:Bpe(e,t)}},sQe={usageLimits:null,usageMetrics:{},pipelineUsageHours:{devHours:[],prodHours:[]},pipelineUsageMetrics:{data:[],has_more:!1,total:0},fetchingPipelineUsageMetricsStatus:Me.IDLE,selectedDateRange:oQe(),pipelineUsageMetricsFiltersValues:{},selectedPipelineUsageMetricsFilters:{},pipelineUsageMetricsSortValue:hyn},vyn=(e,t)=>{let n=e6(e);const r=e6(t),i=[];if(!n)return[];for(;n.isBefore(r)||n.isSame(r,"day");)i.push(n),n=n.add(1,"day");return i},yyn=(e,t)=>{const n={...e};return t.forEach(r=>{const i=e6(r.timestamp).date();e[i]&&(n[i].development_hours=r.development_hours??0,n[i].production_hours=r.production_hours??0)}),Object.values(n)},byn=(e=sQe,t)=>Ms(e,n=>{const r=n;switch(t.type){case nXe:r.selectedDateRange=oQe();break;case`${JKe}/${Kt}`:{r.usageLimits=t.payload;break}case`${eXe}/${Kt}`:{const{pipeline_stats:i,total_document_storage_units:a,production_pipelines:o,development_pipelines:s}=t.payload,[l]=i,{timestamp:c,...u}=l||{};r.usageMetrics={...u,document_storage_units:a,production_pipelines:o,development_pipelines:s};break}case`${tXe}/${Kt}`:{const{data:i,dateRange:a}=t.payload,{pipeline_stats:o}=i,{from:s,to:l}=a,u=vyn(s,l).reduce((h,m)=>(h[m.date()]={timestamp:m.toISOString(),development_hours:0,production_hours:0},h),{}),d=yyn(u,o),f=d.map(({timestamp:h,development_hours:m})=>[h,m]),p=d.map(({timestamp:h,production_hours:m})=>[h,m]);r.pipelineUsageHours={devHours:f,prodHours:p};break}case`${iM}/${Bn}`:r.fetchingPipelineUsageMetricsStatus=Me.IN_PROGRESS;break;case`${iM}/${Kt}`:r.fetchingPipelineUsageMetricsStatus=Me.SUCCESS,r.pipelineUsageMetrics=t.payload;break;case`${iM}/${Dn}`:r.fetchingPipelineUsageMetricsStatus=Me.ERROR;break;case $dn:{const{filterKey:i,items:a}=t.payload;r.selectedPipelineUsageMetricsFilters[i]=a;break}case rXe:r.pipelineUsageMetricsSortValue=t.payload;break}return r}),Wae={user:{firstName:"",lastName:"",fullName:"",email:"",userID:"",organization:"",role:zn.SEARCH_USER,isAdmin:!1,isEmailVerified:!1,workspaces:[],isLimitedUser:!0},loginError:!1};function _yn(e=Wae,t){return Ms(e,n=>{const r=n;switch(t.type){case fdn:r.user=t.payload;break;case pdn:{const i=e.user;r.user={...i,...t.payload};break}case hdn:r.user=Wae.user;break;case`${hae}/${Dn}`:r.loginError=!0;break;case`${hae}/${Kt}`:r.loginError=!1,r.user=t.payload;break}})}const Syn={userStore:Wae,organizationStore:xA,pipelineStore:Gr,pipelineTemplatesStore:QZe,searchStore:Uc,dashboardStore:YXe,observabilityStore:Hae,layoutStore:TM,fileStore:CA,evalsetStore:EM,experimentStore:EA,uploadStore:qae,guidedWorkflowStore:Bae,notificationStore:zae,promptExplorerStore:rQe,labelingStore:xM,metadataFiltersStore:qZe,sharedPrototypeStore:aQe,usageStore:sQe,jobsStore:lc,pipelineFeedbackStore:pS,secretsManagementStore:TA},TW=zWe({userStore:_yn,organizationStore:t1n,pipelineStore:x1n,pipelineTemplatesStore:y0n,searchStore:J0n,dashboardStore:bpn,observabilityStore:e1n,layoutStore:Zvn,fileStore:avn,evalsetStore:_pn,experimentStore:mgn,uploadStore:ryn,guidedWorkflowStore:Avn,notificationStore:Jvn,promptExplorerStore:Q0n,labelingStore:Xvn,metadataFiltersStore:Qvn,sharedPrototypeStore:nyn,usageStore:byn,jobsStore:Hvn,pipelineFeedbackStore:w1n,secretsManagementStore:eyn}),Eyn=(e,t)=>t.type===bpe?(bF.removeItem("persist:root"),TW({userStore:e.userStore,organizationStore:e.organizationStore,layoutStore:e.layoutStore},t)):t.type===aKe||t.type===oKe?(bF.removeItem("persist:root"),TW(void 0,t)):TW(e,t),Cyn={key:"root",storage:bF,stateReconciler:Qfn,blacklist:["guidedWorkflowStore","notificationStore","sharedPrototypeStore"]},wyn=Gfn(Cyn,Eyn),xyn=e=>msn({reducer:wyn,preloadedState:e,devTools:!0,middleware:t=>t({serializableCheck:!1})}),M_=xyn(Syn),XE=Zfn(M_);function Tyn(){return rn.get("/api/v1/workspaces")}function Iyn(e){return rn.post("/api/v1/workspaces",{name:e})}function Ayn(e){return rn.delete(`/api/v1/workspaces/${e}`)}function Ryn(e,t){return rn.post(`/api/v1/organization/${t}/invitation`,e)}function Nyn(e,t){return rn.patch(`/api/v1/users/${e}`,{role:t})}function Oyn(e){return rn.delete(`/api/v1/users/${e}`)}const Lyn=e=>{const t={limit:e?.limit||100,...e?.after&&{after:e?.after},...e?.page_number&&{page_number:e?.page_number}};return rn.get("/api/v1/token",{params:t})},Pyn=e=>rn.delete(`/api/v1/token/${e}`),kyn=e=>{const t=new Date;t.setFullYear(t.getFullYear()+1);const n=e||t.toISOString();return rn.post("/api/v1/token",{expires_at:n})},Myn=()=>rn.get("/api/v1/model_registry_tokens"),Dyn=(e,t)=>rn.post(`/api/v1/model_registry_tokens/${t}`,{token:e}),$yn=e=>rn.delete(`/api/v1/model_registry_tokens/${e}`),Fyn="Invitation sent to the user.",Byn="User role updated.",jyn="User removed.",zyn="API key deleted.",Uyn="You're now connected to %modelProvider%. You can use models from there.",Hyn="You're no longer connected to %modelProvider%. Your pipelines using models from this provider will stop working.",Vyn="New workspace created.",Gyn="%workspace% workspace deleted.",qyn="/assets/aws.BTmU04vX.svg",Wyn="data:image/svg+xml,%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20width='100%25'%20viewBox='0%200%20104%20105'%20xml:space='preserve'%3e%3cpath%20fill='%23D9A6E5'%20opacity='1.000000'%20stroke='none'%20d='%20M105.000000,87.535347%20C103.998840,89.011925%20102.670479,89.855438%20102.049026,91.062805%20C97.633278,99.641724%2090.901840,104.267761%2081.046387,104.015961%20C73.417580,103.821053%2065.666298,104.559158%2058.187656,103.433205%20C50.703327,102.306374%2044.454197,93.528473%2043.978828,86.167114%20C43.240410,74.732285%2049.165028,68.427361%2056.093945,65.146080%20C62.302452,62.205959%2069.024124,60.363518%2075.470238,57.907753%20C84.986717,54.282276%2099.684967,61.593746%20103.014969,72.274239%20C103.281845,73.130226%20103.944458,73.862831%20104.711586,74.326385%20C105.000000,78.356903%20105.000000,82.713799%20105.000000,87.535347%20z'/%3e%3cpath%20fill='%23355146'%20opacity='1.000000'%20stroke='none'%20d='%20M80.939476,49.017994%20C70.947166,53.139294%2061.389759,57.336384%2051.654724,61.070370%20C37.431126,66.525993%2023.717192,65.400238%2012.059984,55.177925%20C5.610428,49.522243%203.514718,41.362377%203.680810,32.638325%20C4.006289,15.542403%2018.191334,3.045187%2034.486420,3.832185%20C50.443184,4.602842%2066.466286,3.997968%2082.460274,4.000719%20C92.829803,4.002501%2098.975845,8.788686%20102.201569,19.363396%20C104.803780,27.894077%20101.653931,36.945625%2093.938370,41.954754%20C89.918221,44.564732%2085.521561,46.594765%2080.939476,49.017994%20z'/%3e%3cpath%20fill='%23FF7759'%20opacity='1.000000'%20stroke='none'%20d='%20M4.001848,80.515411%20C5.569262,72.555176%2010.961604,68.630310%2017.767601,67.157402%20C25.566326,65.469650%2032.475323,68.592361%2036.471294,75.275497%20C40.189178,81.493546%2040.331696,88.698647%2036.811329,95.418991%20C32.709606,103.249138%2025.601799,104.906906%2017.627743,103.941849%20C11.172207,103.160568%206.727941,99.113243%204.887799,93.155922%20C3.715233,89.359833%204.237862,85.040115%204.001848,80.515411%20z'/%3e%3c/svg%3e",Yyn="data:image/svg+xml,%3csvg%20width='54'%20height='68'%20viewBox='0%200%2054%2068'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.1875%2017.2741V44.0848C0.1875%2045.4775%200.917813%2046.7542%202.10938%2047.4506L25.1719%2060.8366C26.3634%2061.533%2027.8241%2061.533%2029.0156%2060.8366L52.0781%2047.4506C53.2697%2046.7542%2054%2045.4775%2054%2044.0848V17.2741C54%2015.8813%2053.2697%2014.6046%2052.0781%2013.9083L29.0156%200.522285C27.8241%20-0.174095%2026.3634%20-0.174095%2025.1719%200.522285L2.10938%2013.947C0.917813%2014.6433%200.1875%2015.92%200.1875%2017.2741Z'%20fill='%230F2B46'/%3e%3cpath%20d='M36.7031%2067.5303L36.6647%2061.7271L36.7031%2056.3882L23.25%2059.7153'%20fill='%230F2B46'/%3e%3cpath%20d='M36.0879%2055.9238L38.6248%2055.2661L37.6638%2055.8077C37.0873%2056.1559%2036.7029%2056.7749%2036.7029%2057.4713V58.5546L36.0879%2055.9238Z'%20fill='%23142C46'/%3e%3cpath%20d='M17.7904%2018.4744C19.3279%2016.9656%2021.7879%2016.9656%2023.3254%2018.4744C24.9782%2020.0606%2024.9782%2022.6914%2023.3254%2024.2776C21.7879%2025.7864%2019.3279%2025.7864%2017.7904%2024.2776C16.1376%2022.6914%2016.1376%2020.0606%2017.7904%2018.4744Z'%20fill='white'/%3e%3cpath%20d='M35.0873%2028.5716C36.6248%2027.0627%2039.0848%2027.0627%2040.6223%2028.5716C42.2751%2030.1578%2042.2751%2032.7885%2040.6223%2034.3747C39.0848%2035.8836%2036.6248%2035.8836%2035.0873%2034.3747C33.4345%2032.7885%2033.4345%2030.1578%2035.0873%2028.5716Z'%20fill='white'/%3e%3cpath%20d='M17.7904%2039.2498C19.3279%2037.741%2021.7879%2037.741%2023.3254%2039.2498C24.9782%2040.836%2024.9782%2043.4668%2023.3254%2045.053C21.7879%2046.5618%2019.3279%2046.5618%2017.7904%2045.053C16.1376%2043.4668%2016.1376%2040.836%2017.7904%2039.2498Z'%20fill='white'/%3e%3cpath%20d='M22.4805%2023.5419L34.0117%2030.2349L35.9336%2029.1516L24.4023%2022.4199L22.4805%2023.5419Z'%20fill='white'/%3e%3cpath%20d='M34.7805%2035.1482L24.4023%2041.1835L22.4805%2040.0616L32.8586%2034.0649L34.7805%2035.1482Z'%20fill='white'/%3e%3c/svg%3e",Kyn="data:image/svg+xml,%3csvg%20height='100'%20viewBox='15%200%20200%20229'%20width='100'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3ccircle%20cx='68'%20cy='39'%20fill='%23ea4335'%20r='12'/%3e%3ccircle%20cx='68'%20cy='89'%20fill='%23ea4335'%20r='12'/%3e%3ccircle%20cx='68'%20cy='139'%20fill='%23ea4335'%20r='12'/%3e%3ccircle%20cx='68'%20cy='189'%20fill='%23ea4335'%20r='12'/%3e%3cg%20fill='%23fbbc04'%3e%3ccircle%20cx='111'%20cy='14'%20r='14'/%3e%3ccircle%20cx='111'%20cy='64'%20r='14'/%3e%3ccircle%20cx='111'%20cy='114'%20r='14'/%3e%3ccircle%20cx='111'%20cy='164'%20r='14'/%3e%3ccircle%20cx='111'%20cy='215'%20r='14'/%3e%3c/g%3e%3ccircle%20cx='153.5'%20cy='39.5'%20fill='%2334a853'%20r='16.5'/%3e%3ccircle%20cx='153.5'%20cy='89.5'%20fill='%2334a853'%20r='16.5'/%3e%3ccircle%20cx='153.5'%20cy='139.5'%20fill='%2334a853'%20r='16.5'/%3e%3ccircle%20cx='153.5'%20cy='189.5'%20fill='%2334a853'%20r='16.5'/%3e%3cg%20fill='%234285f4'%3e%3ccircle%20cx='196'%20cy='64'%20r='19'/%3e%3ccircle%20cx='25'%20cy='64'%20r='10'/%3e%3ccircle%20cx='25'%20cy='114'%20r='10'/%3e%3ccircle%20cx='25'%20cy='164'%20r='10'/%3e%3ccircle%20cx='196'%20cy='114'%20r='19'/%3e%3ccircle%20cx='196'%20cy='164'%20r='19'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Xyn="/assets/huggingface_logo.ncw-Eixa.svg",qwe="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2023%2023'%3e%3cpath%20fill='%23f3f3f3'%20d='M0%200h23v23H0z'/%3e%3cpath%20fill='%23f35325'%20d='M1%201h10v10H1z'/%3e%3cpath%20fill='%2381bc06'%20d='M12%201h10v10H12z'/%3e%3cpath%20fill='%2305a6f0'%20d='M1%2012h10v10H1z'/%3e%3cpath%20fill='%23ffba08'%20d='M12%2012h10v10H12z'/%3e%3c/svg%3e",Zyn="data:image/svg+xml,%3csvg%20version='1.1'%20id='svg2'%20xmlns:svg='http://www.w3.org/2000/svg'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20width='351.46px'%20height='258.785px'%20viewBox='35.188%2031.512%20351.46%20258.785'%20enable-background='new%2035.188%2031.512%20351.46%20258.785'%20xml:space='preserve'%3e%3ctitle%20id='title4'%3egenerated%20by%20pstoedit%20version:3.44%20from%20NVBadge_2D.eps%3c/title%3e%3cpath%20id='path17'%20d='M384.195,282.109c0,3.771-2.769,6.302-6.047,6.302v-0.023c-3.371,0.023-6.089-2.508-6.089-6.278%20c0-3.769,2.718-6.293,6.089-6.293C381.427,275.816,384.195,278.34,384.195,282.109z%20M386.648,282.109c0-5.175-4.02-8.179-8.5-8.179%20c-4.511,0-8.531,3.004-8.531,8.179c0,5.172,4.021,8.188,8.531,8.188C382.629,290.297,386.648,287.281,386.648,282.109%20M376.738,282.801h0.91l2.109,3.703h2.316l-2.336-3.859c1.207-0.086,2.2-0.661,2.2-2.286c0-2.019-1.392-2.668-3.75-2.668h-3.411%20v8.813h1.961V282.801%20M376.738,281.309v-2.122h1.364c0.742,0,1.753,0.06,1.753,0.965c0,0.985-0.523,1.157-1.398,1.157H376.738'/%3e%3cpath%20id='path19'%20d='M329.406,237.027l10.598,28.993H318.48L329.406,237.027z%20M318.056,225.738l-24.423,61.88h17.246l3.863-10.934%20h28.903l3.656,10.934h18.722l-24.605-61.888L318.056,225.738z%20M269.023,287.641h17.497v-61.922l-17.5-0.004L269.023,287.641z%20M147.556,225.715l-14.598,49.078l-13.984-49.074l-18.879-0.004l19.972,61.926h25.207l20.133-61.926H147.556z%20M218.281,239.199h7.52%20c10.91,0,17.966,4.898,17.966,17.609c0,12.714-7.056,17.613-17.966,17.613h-7.52V239.199z%20M200.931,225.715v61.926h28.366%20c15.113,0,20.048-2.512,25.384-8.148c3.769-3.957,6.207-12.641,6.207-22.134c0-8.707-2.063-16.468-5.66-21.304%20c-6.481-8.649-15.817-10.34-29.75-10.34H200.931z%20M35.188,225.629v62.012h17.645v-47.086l13.672,0.004%20c4.527,0,7.754,1.128,9.934,3.457c2.765,2.945,3.894,7.699,3.894,16.395v27.23h17.098v-34.262c0-24.453-15.586-27.75-30.836-27.75%20H35.188z%20M172.771,225.715l0.007,61.926h17.489v-61.926H172.771z'/%3e%3cpath%20id='path21'%20fill='%2377B900'%20d='M82.211,102.414c0,0,22.504-33.203,67.437-36.638V53.73%20c-49.769,3.997-92.867,46.149-92.867,46.149s24.41,70.565,92.867,77.026v-12.804C99.411,157.781,82.211,102.414,82.211,102.414z%20M149.648,138.637v11.726c-37.968-6.769-48.507-46.237-48.507-46.237s18.23-20.195,48.507-23.47v12.867%20c-0.023,0-0.039-0.007-0.058-0.007c-15.891-1.907-28.305,12.938-28.305,12.938S128.243,131.445,149.648,138.637%20M149.648,31.512%20V53.73c1.461-0.112,2.922-0.207,4.391-0.257c56.582-1.907,93.449,46.406,93.449,46.406s-42.343,51.488-86.457,51.488%20c-4.043,0-7.828-0.375-11.383-1.005v13.739c3.04,0.386,6.192,0.613,9.481,0.613c41.051,0,70.738-20.965,99.484-45.778%20c4.766,3.817,24.278,13.103,28.289,17.168c-27.332,22.883-91.031,41.329-127.144,41.329c-3.481,0-6.824-0.211-10.11-0.528v19.306%20h156.032V31.512H149.648z%20M149.648,80.656V65.777c1.446-0.101,2.903-0.179,4.391-0.226c40.688-1.278,67.382,34.965,67.382,34.965%20s-28.832,40.043-59.746,40.043c-4.449,0-8.438-0.715-12.028-1.922V93.523c15.84,1.914,19.028,8.911,28.551,24.786l21.18-17.859%20c0,0-15.461-20.277-41.524-20.277C155.021,80.172,152.31,80.371,149.648,80.656'/%3e%3c/svg%3e",Qyn="data:image/svg+xml,%3csvg%20role='img'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eOpenAI%20icon%3c/title%3e%3cpath%20d='M22.2819%209.8211a5.9847%205.9847%200%200%200-.5157-4.9108%206.0462%206.0462%200%200%200-6.5098-2.9A6.0651%206.0651%200%200%200%204.9807%204.1818a5.9847%205.9847%200%200%200-3.9977%202.9%206.0462%206.0462%200%200%200%20.7427%207.0966%205.98%205.98%200%200%200%20.511%204.9107%206.051%206.051%200%200%200%206.5146%202.9001A5.9847%205.9847%200%200%200%2013.2599%2024a6.0557%206.0557%200%200%200%205.7718-4.2058%205.9894%205.9894%200%200%200%203.9977-2.9001%206.0557%206.0557%200%200%200-.7475-7.0729zm-9.022%2012.6081a4.4755%204.4755%200%200%201-2.8764-1.0408l.1419-.0804%204.7783-2.7582a.7948.7948%200%200%200%20.3927-.6813v-6.7369l2.02%201.1686a.071.071%200%200%201%20.038.052v5.5826a4.504%204.504%200%200%201-4.4945%204.4944zm-9.6607-4.1254a4.4708%204.4708%200%200%201-.5346-3.0137l.142.0852%204.783%202.7582a.7712.7712%200%200%200%20.7806%200l5.8428-3.3685v2.3324a.0804.0804%200%200%201-.0332.0615L9.74%2019.9502a4.4992%204.4992%200%200%201-6.1408-1.6464zM2.3408%207.8956a4.485%204.485%200%200%201%202.3655-1.9728V11.6a.7664.7664%200%200%200%20.3879.6765l5.8144%203.3543-2.0201%201.1685a.0757.0757%200%200%201-.071%200l-4.8303-2.7865A4.504%204.504%200%200%201%202.3408%207.872zm16.5963%203.8558L13.1038%208.364%2015.1192%207.2a.0757.0757%200%200%201%20.071%200l4.8303%202.7913a4.4944%204.4944%200%200%201-.6765%208.1042v-5.6772a.79.79%200%200%200-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759%200%200%200-.7854%200L9.409%209.2297V6.8974a.0662.0662%200%200%201%20.0284-.0615l4.8303-2.7866a4.4992%204.4992%200%200%201%206.6802%204.66zM8.3065%2012.863l-2.02-1.1638a.0804.0804%200%200%201-.038-.0567V6.0742a4.4992%204.4992%200%200%201%207.3757-3.4537l-.142.0805L8.704%205.459a.7948.7948%200%200%200-.3927.6813zm1.0976-2.3654l2.602-1.4998%202.6069%201.4998v2.9994l-2.5974%201.4997-2.6067-1.4997Z'%20/%3e%3c/svg%3e",Jyn="/assets/searchapi.DqvhIol5.png",ebn="data:image/svg+xml,%3csvg%20id='Layer_1'%20data-name='Layer%201'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20146.36%20139.16'%3e%3cdefs%3e%3cstyle%3e.cls-1{fill:%2329b5e8;fill-rule:evenodd;}%3c/style%3e%3c/defs%3e%3cpath%20class='cls-1'%20d='M134.81,60.1l-16.47,9.49L134.81,79a8.65,8.65,0,1,1-8.67,15l-29.51-17a8.68,8.68,0,0,1-4.33-7.75,8.48,8.48,0,0,1,.31-2,8.68,8.68,0,0,1,4-5.19l29.51-16.94A8.69,8.69,0,0,1,138,48.31,8.58,8.58,0,0,1,134.81,60.1Zm-15.59,46L89.72,89.13a8.72,8.72,0,0,0-13.06,7.48v33.9a8.69,8.69,0,0,0,17.37,0v-19L110.54,121a8.66,8.66,0,1,0,8.68-15Zm-34-33.16L72.92,85.09a2.44,2.44,0,0,1-1.54.65H67.77a2.51,2.51,0,0,1-1.54-.65L54,72.9a2.45,2.45,0,0,1-.64-1.52v-3.6A2.5,2.5,0,0,1,54,66.25L66.23,54.06a2.5,2.5,0,0,1,1.54-.64h3.61a2.45,2.45,0,0,1,1.54.64L85.18,66.25a2.49,2.49,0,0,1,.63,1.53v3.6A2.44,2.44,0,0,1,85.18,72.9Zm-9.8-3.38A2.59,2.59,0,0,0,74.73,68l-3.55-3.51a2.51,2.51,0,0,0-1.54-.64h-.13a2.46,2.46,0,0,0-1.53.64L64.43,68a2.51,2.51,0,0,0-.63,1.55v.13a2.41,2.41,0,0,0,.63,1.52L68,74.7a2.48,2.48,0,0,0,1.53.64h.13a2.51,2.51,0,0,0,1.54-.64l3.55-3.53a2.49,2.49,0,0,0,.65-1.52ZM19.93,33.08,49.44,50a8.73,8.73,0,0,0,13.07-7.49V8.64a8.69,8.69,0,0,0-17.37,0v19l-16.53-9.5a8.65,8.65,0,1,0-8.68,15ZM84.69,51.16a8.64,8.64,0,0,0,5-1.13l29.5-17a8.65,8.65,0,1,0-8.68-15L94,27.61v-19a8.69,8.69,0,0,0-17.37,0v33.9A8.66,8.66,0,0,0,84.69,51.16ZM54.48,88a8.58,8.58,0,0,0-5,1.13L19.93,106.06a8.66,8.66,0,1,0,8.68,15l16.53-9.49v19a8.69,8.69,0,0,0,17.37,0V96.61A8.65,8.65,0,0,0,54.48,88Zm-8-15.87a8.61,8.61,0,0,0-4-10L13,45.14A8.69,8.69,0,0,0,1.17,48.31,8.59,8.59,0,0,0,4.35,60.1l16.47,9.49L4.35,79A8.65,8.65,0,1,0,13,94l29.48-17A8.59,8.59,0,0,0,46.47,72.13Zm93.15-56.22H138.3v1.63h1.32c.61,0,1-.28,1-.8S140.26,15.91,139.62,15.91Zm-2.94-1.5h3c1.62,0,2.7.89,2.7,2.27a2.16,2.16,0,0,1-1.08,1.9l1.17,1.68v.34h-1.69L139.62,19H138.3V20.6h-1.62Zm8.3,3.22a5.48,5.48,0,0,0-5.58-5.83c-3.31,0-5.51,2.39-5.51,5.83,0,3.28,2.2,5.82,5.51,5.82A5.47,5.47,0,0,0,145,17.63Zm1.38,0c0,3.89-2.6,7.14-7,7.14s-6.89-3.28-6.89-7.14,2.57-7.14,6.89-7.14S146.36,13.73,146.36,17.63Z'/%3e%3c/svg%3e",tbn="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20216%20216'%20style='enable-background:new%200%200%20216%20216'%20xml:space='preserve'%20id='svg2065915482_3659'%3e%3cpath%20style='fill:%230addf8'%20d='M0%200h216v216H0z'%3e%3c/path%3e%3cpath%20d='M84.9%2063.9h-5.6V39h7.3c.3%200%20.5.1.6.4%201%202%202.1%203.9%203.1%205.9.9%201.6%201.8%203.3%202.6%204.9%201%201.9%202.1%203.9%203.1%205.8l.1.1V39h5.6v24.9h-6.9c-.3%200-.4-.1-.6-.3-1.2-2.3-2.5-4.6-3.8-6.9-.9-1.6-1.7-3.1-2.5-4.7-1-1.9-2.1-3.8-3.2-5.8.2%205.9.2%2011.8.2%2017.7zm0-17.8zm11.4%2010zM35%2038.9h6v15.4c0%202%201%203.8%203.3%204.3%201.7.4%203.8-.1%205-1.6.5-.7.8-1.5.8-2.3.1-4.8.1-9.6.1-14.4v-1.4h6v15.2c0%201.8-.3%203.6-1.2%205.3-1.1%201.9-2.6%203.3-4.7%204.2-2.1%201-4.3%201-6.5.9-1.8-.1-3.6-.8-5-1.9-1.5-1.1-2.6-2.6-3.2-4.3-.4-1.3-.6-2.5-.6-3.9V38.9zm89%2017.7c1.4%201%202.9%201.8%204.5%202.3%201.1.3%202.2.6%203.4.5.7%200%201.4-.1%202.1-.3.9-.2%201.5-.9%201.6-1.9.1-1.3-.2-1.8-1.3-2.5-1.3-.8-2.9-1.1-4.3-1.6-1.6-.6-3.1-1.3-4.3-2.5-1-1-1.5-2.2-1.7-3.6-.2-1.7%200-3.3.8-4.8%201-1.9%202.6-3%204.6-3.5%201.2-.3%202.4-.5%203.6-.5%202.8%200%205.5.7%207.9%202.1.1.1.2.2.2.3v5.3c-.5-.3-1-.5-1.4-.8-1.2-.7-2.5-1.2-3.9-1.4-.9-.1-1.8-.2-2.8-.2-.7%200-1.4.1-2.1.6-.9.6-1.1%202.5.1%203.3%201.2.8%202.4%201.1%203.7%201.5%201.7.5%203.4%201.1%204.9%202.3%201.4%201%202.2%202.4%202.5%204.1.2%201.3.1%202.5-.2%203.7-.3.9-.7%201.8-1.3%202.5-1.1%201.4-2.7%202.2-4.4%202.7-1.6.5-3.2.5-4.8.4-2.2-.2-4.3-.8-6.3-1.8-.4-.2-.7-.4-1.1-.6-.1-.1-.2-.3-.2-.4v-5.2h.2zm39.6-12.1V39h20.1v5.5h-7.1v19.4h-6V44.5h-7zm-21.7%2071v5.1c0%20.2-.2.4-.3.5-1.2.8-2.6%201.2-4%201.6-1.9.5-3.8.5-5.7.3-2.2-.2-4.2-.9-6-2.1-1.6-1.1-2.8-2.4-3.7-4.1-.7-1.3-1.2-2.7-1.5-4.2-.2-1.4-.3-2.7-.1-4.1.1-1.7.6-3.3%201.3-4.8.4-.9%201-1.7%201.6-2.5%201.1-1.4%202.5-2.4%204-3.2%201.1-.5%202.2-1%203.4-1.1%201.4-.1%202.8-.3%204.2-.2%202.3.1%204.5.8%206.5%201.9.1.1.2.2.2.4v5.4c-.4-.2-.7-.4-1-.5-1.5-.9-3.2-1.4-5-1.6-1.1-.1-2.2%200-3.3.2-1.6.3-2.9%201.1-4%202.3-.8.9-1.3%202-1.6%203.1-.2.8-.2%201.6-.2%202.4.1%202.6%201.2%204.6%203.4%205.9%201.1.7%202.3%201.1%203.6%201.2%201.9.2%203.8-.1%205.6-.9.7-.3%201.4-.7%202.1-1.1.3.1.3.1.5.1zm34.7%206.9h-6v-18.8c0-.5-.1-.6-.6-.6h-6.4v-5.5h20.1v5.5h-7.1v19.4zm-128.1-10c2.5%203.3%204.9%206.6%207.4%2010h-6.8c-.2%200-.4-.1-.5-.3-1.4-1.9-2.7-3.8-4-5.7-1-1.4-2-2.9-3.1-4.4v10.4h-6V97.5h10.8c1.8%200%203.6.2%205.2%201.1%201.9%201.1%203.2%202.6%203.6%204.8.3%201.5.2%202.9-.2%204.3-.7%202.1-2.2%203.5-4.3%204.2-.8.2-1.5.4-2.1.5zm-7.2-10v6.8h2.9c.6%200%201.3-.1%201.9-.2%201-.2%201.8-.7%202.3-1.6.3-.7.3-1.4.3-2.1-.1-1.6-1-2.5-2.3-2.6-1.7-.2-3.4-.2-5.1-.3zm0%209.6s0-.1%200%200c0-.1%200%200%200%200zm53.9-14.5h6V113c0%201.6-.3%203.2-1%204.7-.4.7-.9%201.4-1.4%202.1-.7.9-1.6%201.5-2.5%202.1-.6.3-1.4.6-2%20.8-1.7.7-3.5.5-5.2.4-1.1%200-2.1-.4-3.1-.8-1.2-.5-2.3-1.2-3.2-2.2-1.4-1.5-2.3-3.2-2.5-5.2-.1-1-.1-2-.1-2.9V97.6h6v14.5c0%20.9.1%201.8.4%202.7.5%201.3%201.4%202.1%202.7%202.4%201.6.4%203.2.2%204.6-.9.9-.7%201.4-1.7%201.4-2.8.1-3.1.1-6.2.2-9.3V98c-.3-.2-.3-.3-.3-.5zm67.4%2083.5v-25h9.3c1.7%200%203.3.1%205%20.6%201.6.4%203.1%201.2%204.3%202.4.9.8%201.6%201.7%202.2%202.7.6%201.2%201.1%202.5%201.2%203.9.1%201.3.2%202.7.2%204-.1%202.1-.7%204.1-1.8%205.9-1.2%202-2.8%203.4-4.9%204.3-1.1.5-2.2.9-3.4%201-1.7.1-3.4.2-5%20.2h-7.1zm6-19.6v14.2c1.5%200%203%20.1%204.6%200%201.2-.1%202.3-.5%203.2-1.3%201.4-1.3%202-3%202.2-4.9.1-1.1%200-2.3-.3-3.4-.5-1.7-1.3-3.1-3-3.9-.9-.5-2-.5-3-.6-1.3-.2-2.5-.1-3.7-.1zm-82.3%209.3V181h-6v-24.9h10.9c1.6%200%203.3.2%204.8.9s2.7%201.8%203.4%203.3c.7%201.5.8%203%20.6%204.6-.2%201.7-.9%203.1-2.1%204.2-.9.8-2%201.3-3.1%201.6-.4.1-.9.2-1.4.3%202.5%203.3%204.9%206.6%207.4%2010h-6.9c-.1%200-.3-.1-.4-.3-1.9-2.6-3.7-5.3-5.6-8-.5-.7-1-1.3-1.6-2%20.1%200%200-.1%200-.2v.2zm0-2.9c1.7-.1%203.3-.1%204.9-.3.9-.1%201.6-.6%202.1-1.4.5-.8.5-1.6.4-2.5-.1-1.2-.8-2.1-1.9-2.4-1.8-.5-3.6-.2-5.4-.3-.1%202.4-.1%204.6-.1%206.9zM35%20156h6v15.1c0%201.4.3%202.7%201.4%203.6.9.8%202%201.2%203.3%201.1.8-.1%201.6-.2%202.3-.6%201.3-.7%201.9-1.8%202.1-3.1.1-1.2.1-2.3.2-3.5V156h6v15c0%201.5-.2%203-.7%204.4-.4%201.1-1%202-1.7%202.8-.7.9-1.6%201.6-2.7%202.1-.7.4-1.6.6-2.4.9-1.4.5-2.8.4-4.2.4-1.3%200-2.6-.3-3.8-.8-1.1-.5-2.2-1.1-3-2-1.4-1.4-2.3-3.2-2.7-5.2-.1-.6-.1-1.2-.1-1.8V156zm93.7%2014.4v5.4h11v5.1h-17V156h16.8v5.1h-10.8v4.6h10.1v4.6c-3.4.1-6.7.1-10.1.1z'%3e%3c/path%3e%3c/svg%3e",nbn="/assets/voyageai.gomgvlXF.png",rbn="First Name",ibn="Family Name",abn="Enter your first name",obn="Enter your family name",sbn="Your organization",lbn="Everyone in an organization has access to the organization's workspaces.",cbn="Workspaces",ubn="Are you sure you want to delete '%workspace%' workspace? Deletion is irreversible.",dbn="Type '%workspace%' into the field to confirm",fbn="Delete",pbn="Delete",Wwe="Workspace name",Ywe="Add workspace",hbn="Add",mbn="You can have maximum %maxWorkspaces% workspaces. To add new workspace, delete an existing one first.",gbn="Key ID",vbn="Key",ybn="API Keys",bbn="Created By",_bn="Delete",Sbn="****************",Ebn="Expires at",Cbn="Generate New API Key",wbn="Done",xbn="Cancel",Tbn="Add new key",Ibn="Add another key",Abn="Generate key",Rbn="Use this key to connect deepset Cloud to your application.",Nbn="Expiration Date",Obn="API Key",Lbn="Save your key as it will be hidden for the rest of its life.",Pbn="Copied to clipboard.",kbn="Are you sure you want to delete this key?",Mbn="Yes",Dbn="No",$bn="Integrations",Fbn="Connect to %provider%",Bbn="Please, note that %provider% is currently available with deepset Cloud%version%pipelines.",jbn="Hugging Face",zbn="OpenAI",Ubn="Cohere",Hbn="Amazon Bedrock & SageMaker",Vbn="Snowflake",Gbn="Azure OpenAI",qbn="Azure AI Document Intelligence",Wbn="Unstructured",Ybn="DeepL",Kbn="Google AI",Xbn="NVIDIA",Zbn="SearchApi",Qbn="Voyage AI",Jbn="You're connected. You can use %private% models hosted in %provider%.",e_n="Connect to use %private% models hosted in %provider%.",t_n="The token is no longer valid, update it to continue using %private% models hosted in %provider%.",Kwe="Disconnect",n_n="Disconnect %provider%",r_n="By disconnecting %provider% you will no longer be able to use its services. Do you want to disconnect?",Xwe="Connect",yg={[Fa.huggingface]:jbn,[Fa.openai]:zbn,[Fa.cohere]:Ubn,[Fa.aws]:Hbn,[Fa.snowflake]:Vbn,[Fa.azureOpenai]:Gbn,[Fa.azureAI]:qbn,[Fa.unstructured]:Wbn,[Fa.deepl]:Ybn,[Fa.google]:Kbn,[Fa.nvidia]:Xbn,[Fa.searchapi]:Zbn,[Fa.voyageai]:Qbn},i_n=[{provider:Fa.huggingface,logo:{src:Xyn,description:"Hugging Face logo"},supportedVersions:["v1","v2"],formItems:[{label:"User Access Token",name:"token",rules:[{required:!0,message:"Enter your Hugging Face user access token to connect."}],placeholder:"Enter your Hugging Face user access token"}]},{provider:Fa.openai,logo:{src:Qyn,description:"OpenAI logo"},supportedVersions:["v1","v2"],formItems:[{label:"User Access Token",name:"token",rules:[{required:!0,message:"Enter your OpenAI user access token to connect."}],placeholder:"Enter your OpenAI user access token"}]},{provider:Fa.snowflake,logo:{src:ebn,description:"Snowflake logo"},supportedVersions:["v1","v2"],label:"Connect to a Snowflake database.",labelConnected:"You're connected. You can use data stored in Snowflake.",formItems:[{label:"Token",name:"token",rules:[{required:!0,message:"Enter your Snowflake token to connect."}],placeholder:"Enter your Snowflake token"}]},{provider:Fa.cohere,logo:{src:Wyn,description:"Cohere logo"},supportedVersions:["v1","v2"],formItems:[{label:"User Access Token",name:"token",rules:[{required:!0,message:"Enter your Cohere user access token to connect."}],placeholder:"Enter your Cohere user access token"}]},{provider:Fa.aws,logo:{src:qyn,description:"AWS logo"},supportedVersions:["v1","v2"],formItems:[{label:"Region",name:"region",rules:[],placeholder:"Select your Amazon region",defaultValue:"us-east-1",options:[{value:"us-east-1",label:"us-east-1"},{value:"us-west-1",label:"us-west-1"},{value:"ap-southeast-1",label:"ap-southeast-1"},{value:"ap-northeast-1",label:"ap-northeast-1"},{value:"eu-central-1",label:"eu-central-1"}]},{label:"Access Key ID",name:"access_key_id",rules:[{required:!0,message:"Enter the AWS access key ID to connect."}],placeholder:"Enter your AWS access key id"},{label:"Secret Access Key",name:"secret_access_key",rules:[{required:!0,message:"Enter the AWS secret access key to connect."}],placeholder:"Enter your AWS secret access key"}],tokenFormatter:e=>`[default]
aws_access_key_id = ${e.access_key_id}
aws_secret_access_key = ${e.secret_access_key}
region_name = ${e.region}`},{provider:Fa.azureOpenai,logo:{src:qwe,description:"Microsoft logo"},supportedVersions:["v2"],formItems:[{label:"Token",name:"token",rules:[{required:!0,message:"Enter your Azure OpenAI token to connect."}],placeholder:"Enter your Azure OpenAI token"}]},{provider:Fa.azureAI,logo:{src:qwe,description:"Microsoft logo"},supportedVersions:["v1","v2"],label:"Connect to use Azure's data processing services.",labelConnected:"You're connected. You can use Azure's data processing services.",formItems:[{label:"Token",name:"token",rules:[{required:!0,message:"Enter your Azure Document Intelligence token to connect."}],placeholder:"Enter your Azure Document Intelligence token"}]},{provider:Fa.unstructured,logo:{src:tbn,description:"unstructured.io logo"},supportedVersions:["v2"],label:"Connect to use unstructured.io's data processing services.",labelConnected:"You're connected. You can use unstructured.io's data processing services.",formItems:[{label:"Token",name:"token",rules:[{required:!0,message:"Enter your unstructured.io token to connect."}],placeholder:"Enter your unstructured.io token"}]},{provider:Fa.deepl,logo:{src:Yyn,description:"DeepL logo"},supportedVersions:["v2"],label:"Connect to use DeepL's translation services.",labelConnected:"You're connected. You can use DeepL's translation services.",formItems:[{label:"Token",name:"token",rules:[{required:!0,message:"Enter your DeepL token to connect."}],placeholder:"Enter your DeepL token"}]},{provider:Fa.google,logo:{src:Kyn,description:"Google logo"},supportedVersions:["v2"],label:"Connect to use Google AI models.",labelConnected:"You're connected. You can use Google AI models.",formItems:[{label:"Token",name:"token",rules:[{required:!0,message:"Enter your Google AI API token to connect."}],placeholder:"Enter your Google AI API token"}]},{provider:Fa.nvidia,logo:{src:Zyn,description:"NVIDIA logo"},supportedVersions:["v2"],label:"Connect to use NVIDIA models.",labelConnected:"You're connected. You can use NVIDIA models.",formItems:[{label:"Token",name:"token",rules:[{required:!0,message:"Enter your NVIDIA API token to connect."}],placeholder:"Enter your NVIDIA API token"}]},{provider:Fa.voyageai,logo:{src:nbn,description:"Voyage AI logo"},supportedVersions:["v2"],label:"Connect to use Voyage AI models.",labelConnected:"You're connected. You can use Voyage AI models.",formItems:[{label:"Token",name:"token",rules:[{required:!0,message:"Enter your Voyage AI API token to connect."}],placeholder:"Enter your Voyage AI API token"}]},{provider:Fa.searchapi,logo:{src:Jyn,description:"SearchApi logo"},supportedVersions:["v2"],label:"Connect to use SearchApi services.",labelConnected:"You're connected. You can use SearchAPI services.",formItems:[{label:"Token",name:"token",rules:[{required:!0,message:"Enter your SearchApi API token to connect."}],placeholder:"Enter your SearchApi API token"}]}],jn=e=>({type:oU,payload:e}),vp=e=>({type:DKe,payload:e}),Up=e=>({type:oU,payload:{content:Wn(e),type:yn.Error}}),D_=e=>({type:oU,payload:{content:e,type:yn.Success}}),QO={type:dKe};function a_n(e){return{type:cKe,payload:e}}const iI=Ut(uKe,async(e,{dispatch:t,rejectWithValue:n})=>{try{const r={page_number:e,limit:us.USERS_PER_PAGE},i=await Rfn(r),a=Xdn(i),o=i?.data?.total;return{users:a,totalUsers:o}}catch(r){return t(Up(r)),n(r)}}),o_n=Ut(gdn,async({user:e,organizationId:t},{dispatch:n,rejectWithValue:r})=>{try{const i=await Ryn(e,t);return n(D_(Fyn)),i.data}catch(i){return n(Up(i)),r(i)}}),s_n=Ut(vdn,async({userId:e,role:t},{dispatch:n,rejectWithValue:r})=>{try{const i=await Nyn(e,t);return n(D_(Byn)),i}catch(i){return n(Up(i)),r(i)}}),l_n=Ut(ydn,async(e,{dispatch:t,rejectWithValue:n})=>{try{const r=await Oyn(e);return t(D_(jyn)),r}catch(r){return t(Up(r)),n(r)}}),IW=Ut(fKe,async({currentPage:e,pageSize:t},{dispatch:n,rejectWithValue:r})=>{try{return(await Lyn({page_number:e,limit:t})).data}catch(i){return n(Up(i)),r(i)}}),c_n=Ut(bdn,async(e,{dispatch:t,rejectWithValue:n})=>{try{const r=await Pyn(e);return t(D_(zyn)),r.data}catch(r){return t(Up(r)),n(r)}}),u_n=Ut(_dn,async(e,{dispatch:t,rejectWithValue:n})=>{try{const r=await kyn(e),{api_token:i}=r.data;return i}catch(r){return t(Up(r)),n(r)}}),lQe=Ut(pKe,async(e,{dispatch:t,rejectWithValue:n})=>{try{return(await Myn()).data}catch(r){return t(Up(r)),n(r)}}),d_n=Ut(R7,async({modelToken:e,modelProvider:t},{dispatch:n,rejectWithValue:r})=>{try{const i=await Dyn(e,t);return n(D_(Pn(Uyn,{modelProvider:yg[t]},!1))),i.data}catch(i){return r(i)}}),f_n=Ut(hKe,async(e,{dispatch:t,rejectWithValue:n})=>{try{const r=await $yn(e);return t(D_(Pn(Hyn,{modelProvider:yg[e]},!1))),r.data}catch(r){return t(Up(r)),n(r)}}),sU=Ut(mKe,async(e,{dispatch:t,rejectWithValue:n})=>{try{return(await Tyn()).data}catch(r){return t(Up(r)),n(r)}}),cQe=Ut(N7,async(e,{dispatch:t,rejectWithValue:n})=>{try{const r=await Iyn(e);return t(D_(Vyn)),r.data}catch(r){return t(Up(r)),n(r)}}),jpe=e=>(XE.purge().then(()=>XE.flush()),{type:bpe,payload:e}),p_n=Ut(O7,async(e,{dispatch:t,rejectWithValue:n})=>{try{return await Ayn(e),t(sU()),t(jpe(ZO)),t(D_(Pn(Gyn,{workspace:e},!1))),e}catch(r){return t(Up(r)),n(r)}}),uQe=Ut(hae,async({authUser:e,redirect:t},{dispatch:n})=>{const i=(await Nfn()).data,a=Ydn(e,i);return n(a_n({organizationName:Qr(i,"organization.name",""),organizationId:Qr(i,"organization.organization_id",""),maxWorkspaces:Qr(i,"organization.max_workspaces",0)})),t&&(a.role===zn.SEARCH_USER?G1.navigate("/playground"):a.role==zn.ADMIN||a.role==zn.PIPELINE_STUDIO?G1.navigate("/"):G1.navigate("/logout")),oF.setUser({id:a.userID,role:a.role,is_deepset_user:a.email.includes("deepset")}),a});Ut(ddn,async(e,{rejectWithValue:t})=>{try{const{data:n}=await Cpe(e);return n}catch(n){return t(n)}});const h_n=()=>(XE.purge().then(()=>XE.flush()),rm.loginWithRedirect({}),{type:aKe}),Yae=()=>(XE.purge().then(()=>XE.flush()),rm.logout({logoutParams:{returnTo:`${window.location.origin}/login`}}),{type:oKe}),rn=os.create({baseURL:MWe,headers:{[GE.X_CLIENT_SOURCE]:"deepset-cloud-ui"}}),m_n=tae.sessionExpMsg;rn.interceptors.request.use(async e=>{const t=e;if(!e.headers||!e.headers.Authorization){const n=await rm.getAccessTokenSilently({});n&&(t.headers.Authorization=`Bearer ${n}`)}return t.url&&(t.url=encodeURI(t.url)),t},e=>Promise.reject(e));rn.interceptors.response.use(e=>e,e=>Nn.get(e,"response.status")===401||Nn.get(e,"response.data.errors[0]")===tae.compareErrMsg||Nn.get(e,"response.data.errors[0]")===tae.notAuth?(setTimeout(()=>{Dp.error(m_n)},1e3),setTimeout(()=>{Dp.destroy()},3e3),M_.dispatch(Yae())):e.request?.responseType==="blob"&&e.response?.data instanceof Blob&&e.response.data.type&&e.response.data.type.toLowerCase().indexOf("json")!==-1?new Promise((t,n)=>{const r=new FileReader;r.onload=()=>{e.response.data=JSON.parse(r.result),t(Promise.reject(e))},r.onerror=()=>n(e),r.readAsText(e.response.data)}):Promise.reject(e));const dQe=e=>rn.post("/api/v1/user-event",e);var Wa=(e=>(e.CLICK="click",e.KEYDOWN="keydown",e.ERROR="error",e.DROP="drop",e.CONNECT="connect",e))(Wa||{}),ao=(e=>(e.PREDICTIONS_TABLE="predictions-table",e.PIPELINE_FEEDBACK_TABLE="pipeline-feedback-table",e.GUIDED_WORKFLOW="guided-workflow",e.LOGIN="login",e.PIPELINE_TEMPLATE="pipeline-template",e.GROUNDEDNESS="groundedness",e.SEARCH_RESULT="search-result",e.REFERENCE_DRAWER="reference-drawer",e.QUERY_DETAILED_DRAWER="query-detailed-drawer",e.STUDIO="studio",e))(ao||{}),ZE=(e=>(e.DOWNLOAD="download",e.NODE_TAB="node-tab",e.FILTERS="filters",e.SELECT="select",e.TAB="tab",e))(ZE||{}),ad=(e=>(e.SEARCH="search",e.PAGINATION="pagination",e.SORT="sort",e.FILTER="filter",e.CLEAR_FILTER="clear-filter",e.CLEAR_ALL_FILTERS="clear-all-filters",e.ITEM="item",e))(ad||{}),zpe=(e=>(e.SELECT_PIPELINE_TEMPLATE="select-pipeline-template",e))(zpe||{}),t6=(e=>(e.VIEW_REFERENCE="view-reference",e.VIEW_FILE_SOURCE="view-file-source",e.VIEW_DOC_SOURCE="view-doc-source",e))(t6||{}),Upe=(e=>(e.COMPONENT_STUDIO="component",e.OPEN_DOWNLOAD_MODAL_STUDIO="open-download-modal",e.COPY_CODE_STUDIO="copy-code",e.DOWNLOAD_CODE_STUDIO="download-code",e.LOGIN="login",e.SAVE_PIPELINE="save-pipeline",e.DEPLOY_PIPELINE="deploy-pipeline",e.DOCUMENTATION_LINK="documentation-link",e.DISCORD_LINK="discord-link",e))(Upe||{});const AM="#3a61c2",OP="#ffffff",Zwe="#091023";Vce(AM);const Xy={hashed:!1,components:{Layout:{siderBg:"#f5f5f6",bodyBg:OP},Table:{tableHeaderCellSplitColor:"none",tableHeaderTextColor:"rgba(9,16,35,.58)"},Tooltip:{colorBgSpotlight:OP,colorTextLightSolid:Zwe},Select:{colorTextPlaceholder:"rgba(9,16,35,.58)"},Input:{colorTextPlaceholder:"rgba(9,16,35,.58)"},Menu:{itemHoverBg:"#f0f7ff"}},token:{wireframe:!0,fontSize:14,borderRadius:4,colorPrimary:AM,colorWhite:OP,colorTextBase:Zwe,colorTextSecondary:"rgba(9,16,35,.58)",colorBgBase:OP,colorBgMask:"rgba(9,16,35,.45)",colorLink:AM,colorSuccess:"#13B391",colorWarning:"#CC8300",colorError:"#D40B29",colorInfo:AM,colorLinkHover:"#5f82cf",fontFamily:"system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji','Segoe UI Emoji', 'Segoe UI Symbol'"}},g_n="modulepreload",v_n=function(e){return"/"+e},Qwe={},Io=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),s=o?.nonce||o?.getAttribute("nonce");i=Promise.allSettled(n.map(l=>{if(l=v_n(l),l in Qwe)return;Qwe[l]=!0;const c=l.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const d=document.createElement("link");if(d.rel=c?"stylesheet":g_n,c||(d.as="script"),d.crossOrigin="",d.href=l,s&&d.setAttribute("nonce",s),document.head.appendChild(d),c)return new Promise((f,p)=>{d.addEventListener("load",f),d.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${l}`)))})}))}function a(o){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o}return i.then(o=>{for(const s of o||[])s.status==="rejected"&&a(s.reason);return t().catch(a)})},y_n=[{sideBar:{activeKey:"Playground"},path:"/playground",header:{title:"Playground",crumbs:[{label:"Playground",link:"/playground"}]}},{sideBar:{activeKey:"Playground"},path:"/playground/:pipelineName",header:{title:"Playground",crumbs:[{label:"Playground",link:"/playground"},{label:":pipelineName",link:"/playground/:pipelineName"}]}}],b_n=[{sideBar:{activeKey:"Home"},path:"/settings/personal-details",header:{title:"Settings",crumbs:[{label:"Settings",link:"/settings/personal-details"}]}},{sideBar:{activeKey:"Home"},path:"/settings/organization",header:{title:"Settings",crumbs:[{label:"Settings",link:"/settings/organization"}]}},{sideBar:{activeKey:"Home"},path:"/settings/connections",header:{title:"Settings",crumbs:[{label:"Settings",link:"/settings/connections"}]}},{sideBar:{activeKey:"Home"},path:"/settings/workspaces",header:{title:"Settings",crumbs:[{label:"Settings",link:"/settings/workspaces"}]}},{sideBar:{activeKey:"Home"},path:"/settings/usage",header:{title:"Settings",crumbs:[{label:"Settings",link:"/settings/usage"}]}}],__n=[{sideBar:{activeKey:"Pipelines"},path:"/pipelines",header:{title:"Pipelines",crumbs:[{label:"Pipelines",link:"/pipelines"}]}},{sideBar:{activeKey:"Pipelines"},path:"/pipelines-landing",header:{title:"Pipelines Landing",crumbs:[{label:"Pipelines",link:"/pipelines-landing"}]}},{sideBar:{activeKey:"Pipelines"},path:"/pipelines/designer",header:{title:"Pipeline Designer",crumbs:[{label:"Pipelines",link:"/pipelines"},{label:"Designer",link:"/pipelines/designer"}]}},{sideBar:{activeKey:"Pipelines"},path:"/pipelines/designer/:pipelineName",header:{title:"Pipeline Designer",crumbs:[{label:"Pipelines",link:"/pipelines"},{label:":pipelineName",link:"/pipelines/:pipelineName"},{label:"Designer",link:"/pipelines/designer"}]}},{sideBar:{activeKey:"Pipelines"},path:"/pipelines/studio",header:{title:"Pipeline Studio",crumbs:[{label:"Pipelines",link:"/pipelines"},{label:"Studio",link:"/pipelines/studio"}]}},{sideBar:{activeKey:"Pipelines"},path:"/pipelines/:pipelineName/studio",header:{title:"Pipeline Studio",crumbs:[{label:"Pipelines",link:"/pipelines"},{label:":pipelineName",link:"/pipelines/:pipelineName"},{label:"Studio",link:"/pipelines/:pipelineName/studio"}]}},{sideBar:{activeKey:"Pipelines"},path:"/pipelines/editor",header:{title:"Pipeline Editor",crumbs:[{label:"Pipelines",link:"/pipelines"},{label:"Editor",link:"/pipelines/designer"}]}},{sideBar:{activeKey:"Pipelines"},path:"/pipelines/editor/:pipelineName",header:{title:"Pipeline Editor",crumbs:[{label:"Pipelines",link:"/pipelines"},{label:":pipelineName",link:"/pipelines/:pipelineName"},{label:"Editor",link:"/pipelines/editor"}]}},{sideBar:{activeKey:"Pipelines"},path:"/pipelines/:pipelineName",header:{title:"Pipeline Details",crumbs:[{label:"Pipelines",link:"/pipelines"},{label:":pipelineName",link:"/pipelines/:pipelineName"}]}},{sideBar:{activeKey:"Pipeline Templates"},path:"/pipelines/templates",header:{title:"Pipeline Templates",crumbs:[{label:"Pipelines",link:"/pipelines"},{label:"Templates",link:"/pipelines/templates"}]}},{sideBar:{activeKey:"Pipeline Templates"},path:"/pipelines/templates/:templateName",header:{title:"Template",crumbs:[{label:"Pipelines",link:"/pipelines"},{label:"Templates",link:"/pipelines/templates"},{label:":templateName",link:"/pipelines/templates/:templateName"}]}}],S_n=[{sideBar:{activeKey:"Experiments"},path:"/experiments",header:{title:"Experiments",crumbs:[{label:"Experiments",link:"/experiments"}]}},{sideBar:{activeKey:"Experiments"},path:"/experiments/:experimentName",header:{title:"Experiment Details",crumbs:[{label:"Experiments",link:"/experiments"},{label:":experimentName",link:"/experiments/:experimentName"}]}}],E_n=[{sideBar:{activeKey:"Prompt Studio"},path:"/prompt-studio/:pipelineName",header:{title:"Prompt Studio",crumbs:[{label:"Prompt Studio",link:"/prompt-studio"},{label:":pipelineName",link:"/prompt-studio/:pipelineName"}]}},{sideBar:{activeKey:"Prompt Studio"},path:"/prompt-studio",header:{title:"Prompt Studio",crumbs:[{label:"Prompt Studio",link:"/prompt-studio"}]}}],C_n=[{sideBar:{activeKey:"Labeling"},path:"/labeling",header:{title:"Labeling",crumbs:[{label:"Labeling",link:"/labeling"}]}},{sideBar:{activeKey:"Labeling"},path:"/labeling/:projectId",header:{title:"Labeling",crumbs:[{label:"Labeling",link:"/labeling"},{label:":projectId",link:"/labeling/:projectId"}]}},{sideBar:{activeKey:"Labeling"},path:"/labeling/:projectId/query/:pipelineName",header:{title:"Labeling Query",crumbs:[{label:"Labeling",link:"/labeling"},{label:":projectId",link:"/labeling/:projectId"},{label:"Query",link:"/labeling/:projectId/query/:pipelineName"}]}}],w_n=[{sideBar:{activeKey:"Groundedness"},path:"/groundedness",header:{title:"Groundedness Observability",crumbs:[{label:"Groundedness Observability",link:"/groundedness"}]}},{sideBar:{activeKey:"Groundedness"},path:"/groundedness/:pipelineName",header:{title:"Groundedness Observability",crumbs:[{label:"Groundedness Observability",link:"/groundedness"},{label:":pipelineName",link:"/groundedness/:pipelineName"}]}}],Jwe=[{sideBar:{activeKey:"Home"},path:"/home",header:{title:"Home"}},{sideBar:{activeKey:"Files"},path:"/files",header:{title:"Files",crumbs:[{label:"Files",link:"/files"}]}},{sideBar:{activeKey:"Evaluation Sets"},path:"/evalset",header:{title:"Evaluation Sets",crumbs:[{label:"Evaluation Sets",link:"/evalset"}]}},{sideBar:{activeKey:"Jobs"},path:"/jobs",header:{title:"Jobs",crumbs:[{label:"Jobs",link:"/jobs"}]}},{sideBar:{activeKey:"Jobs"},path:"/jobs/:jobId",header:{title:"Jobs",crumbs:[{label:"Jobs",link:"/jobs"},{label:":jobId",link:"/jobs/:jobId"}]}},{withSidebar:!1,path:"/shared_job_results",header:{},sideBar:{}},{withSidebar:!1,path:"/shared_prototypes",header:{},sideBar:{}},...S_n,...E_n,...C_n,...__n,...y_n,...b_n,...w_n];function x_n(e){return{type:gKe,payload:e}}function T_n(e){return{type:vKe,payload:e}}function I_n(e){return{type:yKe,payload:e}}function A_n(){return{type:bKe}}const jT=()=>{const e=ir(),t=uv(),n=dv(),r=[{route:Jwe[0]}],[{route:i}]=Bce(Jwe,t)||r,a=l=>{e(I_n(l))},o=()=>{e(A_n())},s={};return new URLSearchParams(t.search).forEach((l,c)=>{s[c]=l}),{...i,location:t,searchParams:s,routeParams:n,setRouteName:a,resetRouteName:o}},fQe=e=>e.userStore,Pl=It(fQe,e=>e.user),R_n=It(fQe,e=>e.loginError),CF=(e,t)=>{const n=t.toLowerCase().replaceAll(" ","_");return`${e}_${n}`},pQe=e=>b.createElement("svg",{viewBox:"0 0 154 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("title",null,"deepset Cloud logo"),b.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.2171 3.66485C19.3466 3.66485 17.7909 4.40593 16.7757 5.59494C16.7 5.68507 16.6555 5.79723 16.6488 5.91472C16.6484 5.97076 16.6603 6.02621 16.6838 6.0771C16.7073 6.12799 16.7417 6.17307 16.7846 6.20912L17.6094 6.9705C17.6548 7.02407 17.712 7.06639 17.7765 7.09414C17.841 7.12188 17.9111 7.13429 17.9812 7.13039C18.1037 7.11764 18.2173 7.06081 18.301 6.9705C18.9926 6.25481 19.8174 5.76499 21.1498 5.76499C23.4251 5.76499 25.0773 7.36642 25.0773 9.61629C25.0773 11.8662 23.4276 13.4854 21.0991 13.4854C20.3491 13.4854 19.3542 13.0717 18.5028 12.4232L18.4025 12.3217C16.9521 11.0832 16.2948 9.12773 15.7225 7.24586L15.6045 6.86517C15.5744 6.76811 15.5446 6.67134 15.515 6.57505L15.5149 6.57468L15.5149 6.57465C15.3207 5.9435 15.133 5.33336 14.9129 4.80057C14.8875 4.74981 14.7111 4.37928 14.6591 4.26888C14.0495 3.05402 13.1307 2.02111 11.9951 1.27404C10.8596 0.526965 9.54741 0.0920654 8.19047 0.0130816C6.83353 -0.0659022 5.47971 0.213815 4.26518 0.8241C3.05066 1.43438 2.01824 2.35372 1.27177 3.48964C0.525302 4.62556 0.0911025 5.93801 0.0128427 7.29499C-0.0654171 8.65198 0.215023 10.0056 0.825955 11.2199C1.43689 12.4341 2.35677 13.466 3.49309 14.2118C4.62941 14.9577 5.94209 15.3912 7.29911 15.4687H21.1498C21.6829 15.4499 22.2125 15.3746 22.7297 15.2441C25.4351 14.6541 27.3563 12.5044 27.3563 9.60613C27.3601 6.22435 24.7143 3.66485 21.2171 3.66485ZM13.0043 5.51438L13.0043 5.51439C13.0163 5.54272 13.0286 5.57192 13.0424 5.60256C13.2456 6.09474 13.426 6.69456 13.6188 7.3356L13.6188 7.33562L13.6655 7.49078C13.9679 8.55408 14.334 9.59821 14.7619 10.6175C15.2031 11.6549 15.8219 12.6073 16.5904 13.4321H7.77497C6.75265 13.433 5.74897 13.1584 4.86948 12.6372C3.99 12.116 3.26722 11.3674 2.77717 10.4702C2.28712 9.57301 2.0479 8.56032 2.08468 7.53866C2.12145 6.51699 2.43287 5.52412 2.98616 4.66446C3.53945 3.80481 4.31418 3.11014 5.22886 2.65352C6.14354 2.1969 7.16437 1.9952 8.18398 2.06964C9.20359 2.14408 10.1843 2.49191 11.023 3.07655C11.8616 3.66118 12.5272 4.46101 12.9498 5.39191C12.9695 5.4321 12.9865 5.47229 13.0043 5.51438ZM32.4881 18.092C33.3611 19.0869 34.5184 19.5843 35.9143 19.5843C37.3389 19.5818 38.426 19.0285 39.1755 17.9245L39.2098 19.0285C39.2033 19.0698 39.2066 19.1121 39.2196 19.1519C39.2325 19.1916 39.2547 19.2278 39.2843 19.2573C39.3138 19.2869 39.35 19.3091 39.3897 19.322C39.4295 19.335 39.4718 19.3383 39.5131 19.3318H41.5016C41.7211 19.3318 41.8302 19.2392 41.8302 19.0285V5.03438C41.837 4.99297 41.8338 4.95056 41.8209 4.91062C41.8081 4.87068 41.786 4.83436 41.7564 4.80463C41.7268 4.7749 41.6905 4.75262 41.6507 4.73962C41.6108 4.72662 41.5684 4.72326 41.5269 4.72983H39.3024C39.261 4.72326 39.2186 4.72662 39.1787 4.73962C39.1388 4.75262 39.1026 4.7749 39.073 4.80463C39.0434 4.83436 39.0213 4.87068 39.0084 4.91062C38.9956 4.95056 38.9924 4.99297 38.9992 5.03438V10.4909C38.2911 9.54681 37.2632 9.08364 35.9143 9.08364C34.5362 9.08364 33.3649 9.59884 32.4881 10.5924C31.6112 11.586 31.1646 12.8245 31.1646 14.3333C31.1646 15.8421 31.615 17.0971 32.4881 18.092ZM35.4987 16.8332C35.1791 16.7062 34.8887 16.5154 34.6453 16.2723H34.6415C34.1504 15.7838 33.8966 15.1264 33.9093 14.3333C33.9085 13.5415 34.1526 12.9011 34.6415 12.4121C34.8817 12.1622 35.1715 11.9653 35.4923 11.8342C35.8132 11.703 36.1579 11.6406 36.5044 11.6508C37.2471 11.6423 37.8541 11.8868 38.3253 12.3842C38.7965 12.8816 39.0322 13.5305 39.0322 14.3308C39.0254 15.1396 38.7898 15.7884 38.3253 16.2774C37.8609 16.7664 37.2539 17.0109 36.5044 17.0109C36.1606 17.0206 35.8184 16.9602 35.4987 16.8332ZM45.1934 18.0915C46.2212 19.0863 47.5359 19.5838 49.1627 19.5838C50.688 19.5838 51.877 19.1675 52.7158 18.3199C52.8922 18.16 52.9264 18.0166 52.8173 17.8643L52.0559 16.82C52.0411 16.7894 52.0198 16.7625 51.9934 16.7411C51.967 16.7198 51.9362 16.7045 51.9033 16.6964C51.8703 16.6883 51.836 16.6875 51.8027 16.6942C51.7694 16.7008 51.738 16.7148 51.7108 16.7349C51.0039 17.1432 50.201 17.3557 49.3847 17.3504C47.7237 17.3504 46.7301 16.6931 46.4179 15.3873H52.5089C52.9302 15.3873 53.2081 15.2769 53.368 15.0155C53.5279 14.7541 53.6129 14.3759 53.6129 13.8531C53.6129 12.5385 53.1827 11.4091 52.3059 10.4815C51.4544 9.53865 50.2832 9.07421 48.8175 9.07421C47.2833 9.07421 46.0524 9.58053 45.0918 10.5665C44.1312 11.5525 43.6592 12.791 43.6592 14.2909C43.6592 15.8162 44.1655 17.0966 45.1934 18.0915ZM51.1093 13.4065H46.3811C46.508 12.758 46.7859 12.2606 47.225 11.9142C47.6899 11.5639 48.2613 11.3846 48.8429 11.4066C49.3981 11.3872 49.9419 11.5672 50.3758 11.9142C50.7802 12.2602 51.0247 12.7576 51.1093 13.4065ZM60.4036 19.5838C58.7781 19.5838 57.4634 19.0863 56.4343 18.0915C55.4052 17.0966 54.9014 15.8162 54.9014 14.2909C54.9014 12.791 55.3734 11.5525 56.334 10.5665C57.2946 9.58053 58.5243 9.07421 60.0584 9.07421C61.5254 9.07421 62.6966 9.53865 63.5481 10.4815C64.4237 11.4091 64.8539 12.5385 64.8539 13.8531C64.8539 14.3759 64.7701 14.7541 64.6089 15.0155C64.4478 15.2769 64.1712 15.3873 63.7499 15.3873H57.6588C57.971 16.6931 58.9659 17.3504 60.6257 17.3504C61.4432 17.3565 62.2476 17.144 62.9555 16.7349C62.9828 16.7148 63.0142 16.7008 63.0475 16.6942C63.0807 16.6875 63.1151 16.6883 63.148 16.6964C63.181 16.7045 63.2117 16.7198 63.2381 16.7411C63.2645 16.7625 63.2858 16.7894 63.3006 16.82L64.062 17.8643C64.1711 18.0166 64.1382 18.16 63.9605 18.3199C63.1179 19.1675 61.9289 19.5838 60.4036 19.5838ZM57.6258 13.4065H62.354C62.2694 12.7576 62.0249 12.2602 61.6205 11.9142C61.1861 11.5673 60.6419 11.3873 60.0864 11.4066C59.5047 11.3846 58.9333 11.5639 58.4684 11.9142C58.0192 12.2606 57.7527 12.758 57.6258 13.4065ZM66.8375 23.8532C66.8773 23.8662 66.9195 23.8695 66.9608 23.863H69.1739C69.215 23.87 69.2572 23.8672 69.297 23.8548C69.3368 23.8424 69.3732 23.8208 69.4031 23.7918C69.433 23.7627 69.4557 23.727 69.4692 23.6876C69.4827 23.6482 69.4868 23.6061 69.481 23.5648V18.1539C70.2144 19.1145 71.2588 19.5866 72.5912 19.5866C73.9807 19.5866 75.1266 19.0879 76.0034 18.0943C76.8803 17.1007 77.3269 15.8355 77.3269 14.3356C77.3269 12.8357 76.8879 11.5959 76.0034 10.5947C75.119 9.59352 73.9731 9.08593 72.5912 9.08593C71.1243 9.08593 70.0292 9.63159 69.3211 10.7356L69.2868 9.63159C69.2936 9.59023 69.2905 9.54784 69.2777 9.50793C69.2648 9.46803 69.2427 9.43176 69.213 9.40212C69.1834 9.37248 69.1471 9.35032 69.1072 9.33748C69.0673 9.32465 69.0249 9.3215 68.9836 9.32831H66.9608C66.9195 9.32179 66.8773 9.32514 66.8375 9.33808C66.7977 9.35102 66.7616 9.37317 66.732 9.40275C66.7024 9.43232 66.6803 9.46847 66.6673 9.50824C66.6544 9.54801 66.651 9.59028 66.6575 9.63159V23.5597C66.651 23.601 66.6544 23.6433 66.6673 23.6831C66.6803 23.7228 66.7024 23.759 66.732 23.7885C66.7616 23.8181 66.7977 23.8403 66.8375 23.8532ZM73.8462 16.2771C73.3741 16.7657 72.7587 17.0106 72.0087 17.0106C71.2423 17.0106 70.6192 16.772 70.1472 16.2746C69.6751 15.7772 69.4467 15.1325 69.4467 14.328C69.4467 13.5235 69.6675 12.8712 70.1472 12.3814C70.6268 11.8916 71.2474 11.648 72.0087 11.648C72.3516 11.6362 72.6931 11.6981 73.01 11.8294C73.327 11.9608 73.6121 12.1585 73.8462 12.4093C74.3347 12.8979 74.5797 13.526 74.5797 14.3306C74.5797 15.1351 74.3182 15.7886 73.8462 16.2771ZM82.391 19.5841C80.8328 19.5841 79.5858 19.0342 78.6502 17.9344C78.5233 17.7834 78.5398 17.5892 78.6832 17.3443L79.3913 16.3419C79.5258 16.1312 79.6945 16.1147 79.9052 16.2581C80.7655 16.9065 81.5408 17.2352 82.2223 17.2352C82.9735 17.2352 83.3516 16.9573 83.3516 16.4015C83.3538 16.2941 83.3332 16.1875 83.2912 16.0886C83.2492 15.9898 83.1868 15.9009 83.108 15.8279C82.8741 15.6272 82.6058 15.4703 82.3162 15.3648L81.0472 14.8508C79.5892 14.2773 78.857 13.3674 78.857 12.1111C78.857 11.1848 79.2022 10.4513 79.8849 9.90314C80.5676 9.35495 81.3936 9.08593 82.3619 9.08593C83.745 9.08593 84.8566 9.59987 85.717 10.6201C85.7697 10.6807 85.7965 10.7596 85.7918 10.8397C85.787 10.9199 85.7511 10.995 85.6916 11.049L84.8033 12.1276C84.6764 12.2799 84.5254 12.2799 84.3389 12.1276C83.674 11.5718 83.0674 11.2939 82.5192 11.2939C82.2641 11.2767 82.0118 11.355 81.8111 11.5135C81.7317 11.5858 81.6687 11.6743 81.6265 11.773C81.5842 11.8717 81.5637 11.9784 81.5662 12.0858C81.5662 12.5071 81.8873 12.8357 82.5281 13.0641L83.9354 13.6111C85.4416 14.2189 86.1916 15.1846 86.1839 16.503C86.1674 17.4725 85.8033 18.2225 85.0799 18.7694C84.33 19.3226 83.4443 19.5841 82.391 19.5841ZM88.9736 18.0915C90.0015 19.0863 91.3161 19.5838 92.943 19.5838C94.4682 19.5838 95.6573 19.1675 96.4884 18.3199C96.6648 18.16 96.6991 18.0166 96.59 17.8643L95.8286 16.82C95.8138 16.7894 95.7924 16.7625 95.7661 16.7411C95.7397 16.7198 95.7089 16.7045 95.676 16.6964C95.643 16.6883 95.6087 16.6875 95.5754 16.6942C95.5421 16.7008 95.5107 16.7148 95.4834 16.7349C94.7766 17.1432 93.9737 17.3557 93.1574 17.3504C91.5078 17.3504 90.5078 16.6931 90.1982 15.3873H96.2892C96.7105 15.3873 96.9884 15.2769 97.1483 15.0155C97.3082 14.7541 97.3932 14.3759 97.3932 13.8531C97.3932 12.5385 96.963 11.4091 96.0862 10.4815C95.2347 9.53865 94.0635 9.07421 92.5978 9.07421C91.0725 9.07421 89.8327 9.58053 88.8721 10.5665C87.9115 11.5525 87.4395 12.791 87.4395 14.2909C87.4395 15.8162 87.9458 17.0966 88.9736 18.0915ZM94.8895 13.4065H90.1614C90.2883 12.758 90.5586 12.2606 91.0052 11.9142C91.4701 11.5639 92.0415 11.3846 92.6232 11.4066C93.1784 11.3872 93.7222 11.5672 94.1561 11.9142C94.5605 12.2602 94.8049 12.7576 94.8895 13.4065ZM102.981 19.584C102.092 19.584 101.363 19.3569 100.789 18.8848C100.216 18.4128 99.9554 17.6793 99.9554 16.659V11.502H98.6864C98.6451 11.5085 98.6028 11.5052 98.5631 11.4922C98.5233 11.4793 98.4872 11.4571 98.4576 11.4275C98.428 11.398 98.4058 11.3618 98.3929 11.3221C98.38 11.2823 98.3766 11.24 98.3831 11.1987V9.62266C98.3766 9.58135 98.38 9.53908 98.3929 9.49931C98.4058 9.45954 98.428 9.42339 98.4576 9.39382C98.4872 9.36425 98.5233 9.34209 98.5631 9.32915C98.6028 9.31621 98.6451 9.31287 98.6864 9.31938H99.9554V6.98576C99.9481 6.94381 99.9511 6.90072 99.9641 6.86017C99.9771 6.81962 99.9997 6.78282 100.03 6.75291C100.06 6.72299 100.097 6.70084 100.138 6.68835C100.179 6.67587 100.222 6.67342 100.264 6.68121H102.488C102.53 6.6747 102.572 6.67804 102.612 6.69098C102.651 6.70392 102.688 6.72608 102.717 6.75565C102.747 6.78522 102.769 6.82137 102.782 6.86114C102.795 6.90091 102.798 6.94318 102.792 6.98449V9.33587H104.368C104.409 9.32936 104.451 9.33271 104.491 9.34565C104.531 9.35858 104.567 9.38075 104.597 9.41032C104.626 9.43989 104.648 9.47604 104.661 9.51581C104.674 9.55558 104.677 9.59785 104.671 9.63916V11.2152C104.677 11.2565 104.674 11.2988 104.661 11.3386C104.648 11.3783 104.626 11.4145 104.597 11.444C104.567 11.4736 104.531 11.4958 104.491 11.5087C104.451 11.5217 104.409 11.525 104.368 11.5185H102.792V16.3646C102.792 16.9568 103.088 17.2529 103.68 17.2529C103.892 17.2554 104.103 17.247 104.314 17.2275C104.559 17.1945 104.686 17.2948 104.686 17.5143V19.0028C104.679 19.3903 104.11 19.584 102.981 19.584ZM117.61 17.873C116.469 18.9562 114.951 19.5517 113.379 19.5328C109.747 19.5328 107.058 16.7728 107.058 13.1766C107.058 9.58036 109.747 6.78864 113.379 6.78864C114.949 6.76761 116.465 7.35675 117.61 8.43195C117.641 8.45393 117.668 8.48274 117.687 8.51629C117.707 8.54983 117.719 8.58727 117.722 8.62589C117.725 8.66451 117.719 8.70335 117.706 8.7396C117.692 8.77585 117.67 8.80859 117.643 8.83547L116.936 9.59685C116.825 9.72375 116.707 9.72375 116.564 9.59685C115.692 8.81669 114.562 8.38723 113.391 8.39134C110.737 8.39134 108.739 10.4229 108.739 13.1703C108.739 15.9176 110.737 17.9314 113.391 17.9314C114.561 17.936 115.692 17.507 116.564 16.7272C116.707 16.5825 116.825 16.6003 116.936 16.7094L117.643 17.4847C117.786 17.6281 117.736 17.7461 117.61 17.873ZM121.334 19.3057H120.222C120.189 19.3084 120.155 19.3035 120.123 19.2916C120.092 19.2796 120.063 19.2609 120.04 19.2366C120.017 19.2123 119.999 19.1832 119.988 19.1513C119.977 19.1193 119.974 19.0854 119.977 19.0519V6.89143C119.974 6.85848 119.978 6.82519 119.989 6.79399C120 6.76279 120.018 6.73447 120.042 6.71111C120.065 6.68776 120.094 6.66994 120.125 6.65899C120.156 6.64803 120.189 6.6442 120.222 6.64778H121.334C121.367 6.6442 121.4 6.64803 121.431 6.65899C121.463 6.66994 121.491 6.68776 121.515 6.71111C121.538 6.73447 121.556 6.76279 121.567 6.79399C121.578 6.82519 121.582 6.85848 121.579 6.89143V19.0608C121.582 19.0938 121.579 19.1273 121.568 19.1586C121.557 19.19 121.539 19.2185 121.515 19.242C121.492 19.2655 121.463 19.2834 121.432 19.2944C121.4 19.3055 121.367 19.3093 121.334 19.3057ZM132.601 14.9658C132.601 17.552 130.689 19.5163 128.143 19.5163C125.599 19.5163 123.66 17.5507 123.66 14.9633C123.66 12.3759 125.598 10.4115 128.143 10.4115C130.689 10.4115 132.601 12.3797 132.601 14.9658ZM128.143 11.8886C126.464 11.8886 125.225 13.1449 125.225 14.9658H125.227C125.227 16.7855 126.48 18.024 128.143 18.024C129.807 18.024 131.062 16.7868 131.062 14.9658C131.062 13.1449 129.803 11.8886 128.143 11.8886ZM140.546 17.9403C140.049 18.8245 139.128 19.5159 137.733 19.5163C135.879 19.5158 134.582 18.2596 134.591 15.9544V10.8785C134.587 10.8456 134.591 10.8123 134.602 10.781C134.613 10.7498 134.631 10.7213 134.654 10.6979C134.677 10.6744 134.706 10.6564 134.737 10.6453C134.768 10.6342 134.801 10.6302 134.834 10.6336H135.947C136.107 10.6336 136.174 10.7173 136.174 10.8785V15.7323C136.174 17.1814 136.921 18.0329 138.244 18.0329C139.568 18.0329 140.545 17.1814 140.545 15.7323V10.8785C140.545 10.7262 140.612 10.6336 140.772 10.6336H141.885C141.918 10.63 141.951 10.6338 141.983 10.6449C142.014 10.6559 142.042 10.6738 142.066 10.6973C142.089 10.7208 142.107 10.7493 142.118 10.7807C142.129 10.812 142.133 10.8455 142.13 10.8785V19.0608C142.133 19.0938 142.129 19.1273 142.118 19.1586C142.107 19.19 142.089 19.2185 142.066 19.242C142.042 19.2655 142.014 19.2834 141.983 19.2944C141.951 19.3055 141.918 19.3093 141.885 19.3057H140.842C140.664 19.3057 140.613 19.2296 140.597 19.0354L140.546 17.9403ZM151.653 17.7626C151.021 18.8409 149.934 19.516 148.453 19.5163C145.959 19.5157 144.221 17.5528 144.221 14.9658C144.221 12.3784 145.957 10.4141 148.452 10.4141C149.884 10.4141 150.963 11.0549 151.586 12.1005V6.89143C151.583 6.85848 151.587 6.82519 151.598 6.79399C151.609 6.76279 151.627 6.73447 151.65 6.71111C151.674 6.68776 151.702 6.66994 151.733 6.65899C151.765 6.64803 151.798 6.6442 151.831 6.64778H152.942C152.975 6.6442 153.009 6.64803 153.04 6.65899C153.071 6.66994 153.1 6.68776 153.123 6.71111C153.147 6.73447 153.165 6.76279 153.176 6.79399C153.187 6.82519 153.191 6.85848 153.187 6.89143V19.0519C153.191 19.0849 153.187 19.1184 153.176 19.1497C153.165 19.1811 153.147 19.2096 153.124 19.2331C153.1 19.2566 153.072 19.2745 153.04 19.2856C153.009 19.2966 152.976 19.3004 152.942 19.2968H151.915C151.755 19.2968 151.687 19.2131 151.687 19.0519L151.653 17.7626ZM148.737 11.8886C147.019 11.8886 145.779 13.1449 145.779 14.9658H145.782C145.782 16.8109 147.022 18.0418 148.737 18.0494C150.431 18.0494 151.62 16.835 151.62 14.9899C151.62 13.1449 150.455 11.8886 148.737 11.8886ZM18.6867 23.5867C18.2834 23.8562 17.8091 24 17.324 24C17.0017 24.0005 16.6825 23.9374 16.3847 23.8144C16.0869 23.6913 15.8163 23.5106 15.5884 23.2827C15.3606 23.0549 15.1799 22.7843 15.0568 22.4864C14.9337 22.1886 14.8706 21.8694 14.8711 21.5471C14.8711 21.062 15.015 20.5878 15.2845 20.1844C15.554 19.781 15.9371 19.4666 16.3853 19.281C16.8335 19.0953 17.3267 19.0467 17.8025 19.1414C18.2783 19.236 18.7154 19.4696 19.0585 19.8127C19.4015 20.1557 19.6351 20.5928 19.7298 21.0686C19.8244 21.5444 19.7758 22.0376 19.5902 22.4858C19.4045 22.934 19.0901 23.3171 18.6867 23.5867Z",fill:"#2B2F55"})),QE="dcUserPrefences",Hpe=e=>JSON.parse(localStorage.getItem(QE)||"{}")[e],N_n=(e,t)=>{const n=JSON.parse(localStorage.getItem(QE)||"{}");localStorage.setItem(QE,JSON.stringify({...n,[e]:t})),dispatchEvent(new StorageEvent("storage"))},hQe=e=>{const t=JSON.parse(localStorage.getItem(QE)||"{}");return t.featureTour&&t.featureTour[e]},O_n=(e,t)=>{const n=JSON.parse(localStorage.getItem(QE)||"{}");localStorage.setItem(QE,JSON.stringify({...n,featureTour:{...n.featureTour,[e]:t}})),dispatchEvent(new StorageEvent("storage"))},L_n=e=>{const t=hQe(e),[n,r]=b.useState(t??!1);return b.useEffect(()=>{O_n(e,n)},[n]),{tourDismissed:n,setTourDismissed:()=>r(!0)}},P_n="Contact support",k_n="Send to support",M_n="Need assistance?",D_n=`We're here to help. Share the details of your problem below. The more you tell us, the
better we can assist. Our support team will get back to you promptly.`,AW="* ",$_n="Request type",F_n="Is this issue blocking you?",B_n="Description",j_n="Screenshots",z_n="Provide the details of the problem, including the names of pipelines and workspaces, any logs or error messages you received, and any other information that may help us diagnose the issue.",U_n="Click or drag files to this area to upload",exe="Accepted file types: PNG, JPG",H_n="Only %fileFormats% file formats are supported.",V_n=" Maximum 12.",LP={documentation:{label:" Documentation",key:"documentation"},contactSupport:{label:" Contact support",key:"contactSupport"}},b2={bug:{label:"Bug",key:"bug"},featureRequest:{label:"Feature request",key:"featureRequest"},other:{label:"Other",key:"other"}},ly={option1:{label:"No, I found a workaround",key:"option1"},option2:{label:"Yes, I can't work on my current tasks.",key:"option2"},option3:{label:"Yes, but I can work on something else in the meantime.",key:"option3"},option4:{label:"Yes, my users can't search as the functionality is broken.",key:"option4"}};var Kae=(e=>(e.png="png",e.jpg="jpg",e))(Kae||{});const G_n={png:"image/png",jpg:"image/jpg"},q_n=[{label:"Home",link:"/",icon:pDe,userAccess:[zn.ADMIN]},{label:"Data",userAccess:[zn.ADMIN]},{label:"Files",link:"/files",icon:e2t,userAccess:[zn.ADMIN]},{label:"Labeling",link:"/labeling",icon:jEt,userAccess:[zn.ADMIN]},{label:"Evaluation Sets",link:"/evalset",icon:W_t,userAccess:[zn.ADMIN]},{label:"Configuration",userAccess:[zn.ADMIN]},{label:"Pipeline Templates",link:"/pipelines/templates",icon:hDe,userAccess:[zn.ADMIN]},{label:"Pipelines",link:"/pipelines",icon:ZSt,userAccess:[zn.ADMIN]},{label:"Jobs",link:"/jobs",icon:abt,userAccess:[zn.ADMIN]},{label:"Testing",userAccess:[zn.ADMIN]},{label:"Playground",link:"/playground",icon:jSt,userAccess:[zn.ADMIN,zn.SEARCH_USER]},{label:"Prompt Studio",link:"/prompt-studio",icon:uSt,userAccess:[zn.ADMIN]},{label:"Experiments",link:"/experiments",icon:N_t,userAccess:[zn.ADMIN]},{label:"Monitoring",userAccess:[zn.ADMIN]},{label:"Groundedness",link:"/groundedness",icon:E2t,userAccess:[zn.ADMIN]}],W_n="Workspace",Y_n="Workspace name",K_n="Create",mQe=e=>e.layoutStore,gQe=It(mQe,e=>e.sidebar),X_n=It(mQe,e=>e.routeName),$_=e=>e.organizationStore,JO=It($_,e=>e.organization),Z_n=It($_,e=>e.allUsers),Vpe=It($_,e=>e.message),vQe=It($_,e=>e.connections),lU=It($_,e=>({workspaces:e.workspaces,currentWorkspace:e.currentWorkspace,currentWorkspaceId:e.workspaces.find(t=>t.name===e.currentWorkspace)?.workspace_id})),Q_n=It($_,e=>e.addWorkspaceStatus),J_n=It($_,e=>e.currentDeletingWorkspaces);It($_,e=>e.currentWorkspaceDefaultIdleTimeout);const yQe=[{label:"Personal Details",key:"personalDetails",link:"/settings/personal-details",userAccess:[zn.ADMIN,zn.SEARCH_USER]},{label:"Organization",key:"organization",link:"/settings/organization",userAccess:[zn.ADMIN]},{label:"Workspaces",key:"workspaces",link:"/settings/workspaces",userAccess:[zn.ADMIN]},{label:"Connections",key:"connections",link:"/settings/connections",userAccess:[zn.ADMIN]},{label:"Secrets",key:"secrets",link:"/settings/secrets",userAccess:[zn.ADMIN]},{label:"Usage",key:"usage",link:"/settings/usage",userAccess:[zn.ADMIN]},{label:"Logout",key:"logout",link:"/logout",userAccess:[zn.ADMIN,zn.SEARCH_USER]}],e2n="_userDropdown_1yka8_13",t2n="_optionIcon_1yka8_25",n2n="_menuButton_1yka8_29",r2n="_menuOverlay_1yka8_46",i2n="_userInfo_1yka8_55",a2n="_userInfo_avatar_1yka8_65",o2n="_userInfo_details_1yka8_70",s2n="_userInfo_details_name_1yka8_77",l2n="_userInfo_details_email_1yka8_82",Yv={userDropdown:e2n,optionIcon:t2n,menuButton:n2n,menuOverlay:r2n,userInfo:i2n,userInfo_avatar:a2n,userInfo_details:o2n,userInfo_details_name:s2n,userInfo_details_email:l2n};function c2n(e){const{userMenu:t}=e,{email:n,firstName:r,lastName:i,fullName:a,role:o}=st(Pl),[s,l]=b.useState(!1),[c,u]=b.useState(yQe.map(h=>{const m=h.icon;return h.userAccess?.includes(o)?{label:h.link?E.jsxs(Jg,{to:h.link,children:[" ",h.label," "]}):h.label,key:h.key,icon:h.key==="logout"?E.jsx(iSt,{}):h.icon?E.jsx("span",{className:Yv.optionIcon,children:m}):null,"data-testid":CF("userMenu",h.key)}:null}));function d(h){l(h)}b.useEffect(()=>{t&&u(t?.map(h=>{const m=h.icon;return{label:h.link?E.jsxs(Jg,{to:h.link,children:[" ",h.label," "]}):h.label,key:h.key,icon:h.icon?E.jsx("span",{className:Yv.optionIcon,children:m}):null,"data-testid":CF("userMenu",h.key)}}))},[t]);const p={menu:{items:c},trigger:["click"],open:s,onOpenChange:d,dropdownRender:h=>E.jsxs(E.Fragment,{children:[E.jsxs("div",{className:Yv.userInfo,children:[E.jsxs(Mp,{className:Yv.userInfo_avatar,children:[r[0],i[0]]}),E.jsxs("span",{className:Yv.userInfo_details,children:[E.jsx("span",{className:Yv.userInfo_details_name,children:a}),E.jsx("span",{className:Yv.userInfo_details_email,children:n})]})]}),h]}),overlayClassName:Yv.menuOverlay};return E.jsx(Vo,{...p,children:E.jsx(vr,{title:a,children:E.jsxs(ut,{className:Yv.menuButton,type:"text",shape:"circle",size:"small","data-testid":"userMenu_dropdownButton",children:[r[0],i[0]]})})})}/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */var Xae=function(e,t){return Xae=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)r.hasOwnProperty(i)&&(n[i]=r[i])},Xae(e,t)};function u2n(e,t){Xae(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var ER=function(){return ER=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},ER.apply(this,arguments)};function d2n(e,t,n,r){var i,a=!1,o=0;function s(){i&&clearTimeout(i)}function l(){s(),a=!0}typeof t!="boolean"&&(r=n,n=t,t=void 0);function c(){var u=this,d=Date.now()-o,f=arguments;if(a)return;function p(){o=Date.now(),n.apply(u,f)}function h(){i=void 0}r&&!i&&p(),s(),r===void 0&&d>e?p():t!==!0&&(i=setTimeout(r?h:p,r===void 0?e-d:e))}return c.cancel=l,c}var P5={Pixel:"Pixel",Percent:"Percent"},txe={unit:P5.Percent,value:.8};function nxe(e){return typeof e=="number"?{unit:P5.Percent,value:e*100}:typeof e=="string"?e.match(/^(\d*(\.\d+)?)px$/)?{unit:P5.Pixel,value:parseFloat(e)}:e.match(/^(\d*(\.\d+)?)%$/)?{unit:P5.Percent,value:parseFloat(e)}:(console.warn('scrollThreshold format is invalid. Valid formats: "120px", "50%"...'),txe):(console.warn("scrollThreshold should be string or number"),txe)}var cU=function(e){u2n(t,e);function t(n){var r=e.call(this,n)||this;return r.lastScrollTop=0,r.actionTriggered=!1,r.startY=0,r.currentY=0,r.dragging=!1,r.maxPullDownDistance=0,r.getScrollableTarget=function(){return r.props.scrollableTarget instanceof HTMLElement?r.props.scrollableTarget:typeof r.props.scrollableTarget=="string"?document.getElementById(r.props.scrollableTarget):(r.props.scrollableTarget===null&&console.warn(`You are trying to pass scrollableTarget but it is null. This might
        happen because the element may not have been added to DOM yet.
        See https://github.com/ankeetmaini/react-infinite-scroll-component/issues/59 for more info.
      `),null)},r.onStart=function(i){r.lastScrollTop||(r.dragging=!0,i instanceof MouseEvent?r.startY=i.pageY:i instanceof TouchEvent&&(r.startY=i.touches[0].pageY),r.currentY=r.startY,r._infScroll&&(r._infScroll.style.willChange="transform",r._infScroll.style.transition="transform 0.2s cubic-bezier(0,0,0.31,1)"))},r.onMove=function(i){r.dragging&&(i instanceof MouseEvent?r.currentY=i.pageY:i instanceof TouchEvent&&(r.currentY=i.touches[0].pageY),!(r.currentY<r.startY)&&(r.currentY-r.startY>=Number(r.props.pullDownToRefreshThreshold)&&r.setState({pullToRefreshThresholdBreached:!0}),!(r.currentY-r.startY>r.maxPullDownDistance*1.5)&&r._infScroll&&(r._infScroll.style.overflow="visible",r._infScroll.style.transform="translate3d(0px, "+(r.currentY-r.startY)+"px, 0px)")))},r.onEnd=function(){r.startY=0,r.currentY=0,r.dragging=!1,r.state.pullToRefreshThresholdBreached&&(r.props.refreshFunction&&r.props.refreshFunction(),r.setState({pullToRefreshThresholdBreached:!1})),requestAnimationFrame(function(){r._infScroll&&(r._infScroll.style.overflow="auto",r._infScroll.style.transform="none",r._infScroll.style.willChange="unset")})},r.onScrollListener=function(i){typeof r.props.onScroll=="function"&&setTimeout(function(){return r.props.onScroll&&r.props.onScroll(i)},0);var a=r.props.height||r._scrollableNode?i.target:document.documentElement.scrollTop?document.documentElement:document.body;if(!r.actionTriggered){var o=r.props.inverse?r.isElementAtTop(a,r.props.scrollThreshold):r.isElementAtBottom(a,r.props.scrollThreshold);o&&r.props.hasMore&&(r.actionTriggered=!0,r.setState({showLoader:!0}),r.props.next&&r.props.next()),r.lastScrollTop=a.scrollTop}},r.state={showLoader:!1,pullToRefreshThresholdBreached:!1,prevDataLength:n.dataLength},r.throttledOnScrollListener=d2n(150,r.onScrollListener).bind(r),r.onStart=r.onStart.bind(r),r.onMove=r.onMove.bind(r),r.onEnd=r.onEnd.bind(r),r}return t.prototype.componentDidMount=function(){if(typeof this.props.dataLength>"u")throw new Error('mandatory prop "dataLength" is missing. The prop is needed when loading more content. Check README.md for usage');if(this._scrollableNode=this.getScrollableTarget(),this.el=this.props.height?this._infScroll:this._scrollableNode||window,this.el&&this.el.addEventListener("scroll",this.throttledOnScrollListener),typeof this.props.initialScrollY=="number"&&this.el&&this.el instanceof HTMLElement&&this.el.scrollHeight>this.props.initialScrollY&&this.el.scrollTo(0,this.props.initialScrollY),this.props.pullDownToRefresh&&this.el&&(this.el.addEventListener("touchstart",this.onStart),this.el.addEventListener("touchmove",this.onMove),this.el.addEventListener("touchend",this.onEnd),this.el.addEventListener("mousedown",this.onStart),this.el.addEventListener("mousemove",this.onMove),this.el.addEventListener("mouseup",this.onEnd),this.maxPullDownDistance=this._pullDown&&this._pullDown.firstChild&&this._pullDown.firstChild.getBoundingClientRect().height||0,this.forceUpdate(),typeof this.props.refreshFunction!="function"))throw new Error(`Mandatory prop "refreshFunction" missing.
          Pull Down To Refresh functionality will not work
          as expected. Check README.md for usage'`)},t.prototype.componentWillUnmount=function(){this.el&&(this.el.removeEventListener("scroll",this.throttledOnScrollListener),this.props.pullDownToRefresh&&(this.el.removeEventListener("touchstart",this.onStart),this.el.removeEventListener("touchmove",this.onMove),this.el.removeEventListener("touchend",this.onEnd),this.el.removeEventListener("mousedown",this.onStart),this.el.removeEventListener("mousemove",this.onMove),this.el.removeEventListener("mouseup",this.onEnd)))},t.prototype.componentDidUpdate=function(n){this.props.dataLength!==n.dataLength&&(this.actionTriggered=!1,this.setState({showLoader:!1}))},t.getDerivedStateFromProps=function(n,r){var i=n.dataLength!==r.prevDataLength;return i?ER(ER({},r),{prevDataLength:n.dataLength}):null},t.prototype.isElementAtTop=function(n,r){r===void 0&&(r=.8);var i=n===document.body||n===document.documentElement?window.screen.availHeight:n.clientHeight,a=nxe(r);return a.unit===P5.Pixel?n.scrollTop<=a.value+i-n.scrollHeight+1:n.scrollTop<=a.value/100+i-n.scrollHeight+1},t.prototype.isElementAtBottom=function(n,r){r===void 0&&(r=.8);var i=n===document.body||n===document.documentElement?window.screen.availHeight:n.clientHeight,a=nxe(r);return a.unit===P5.Pixel?n.scrollTop+i>=n.scrollHeight-a.value:n.scrollTop+i>=a.value/100*n.scrollHeight},t.prototype.render=function(){var n=this,r=ER({height:this.props.height||"auto",overflow:"auto",WebkitOverflowScrolling:"touch"},this.props.style),i=this.props.hasChildren||!!(this.props.children&&this.props.children instanceof Array&&this.props.children.length),a=this.props.pullDownToRefresh&&this.props.height?{overflow:"auto"}:{};return se.createElement("div",{style:a,className:"infinite-scroll-component__outerdiv"},se.createElement("div",{className:"infinite-scroll-component "+(this.props.className||""),ref:function(o){return n._infScroll=o},style:r},this.props.pullDownToRefresh&&se.createElement("div",{style:{position:"relative"},ref:function(o){return n._pullDown=o}},se.createElement("div",{style:{position:"absolute",left:0,right:0,top:-1*this.maxPullDownDistance}},this.state.pullToRefreshThresholdBreached?this.props.releaseToRefreshContent:this.props.pullDownToRefreshContent)),this.props.children,!this.state.showLoader&&!i&&this.props.hasMore&&this.props.loader,this.state.showLoader&&this.props.hasMore&&this.props.loader,!this.props.hasMore&&this.props.endMessage))},t}(b.Component);const f2n="Only %fileFormats% file formats are supported.",p2n="Some of the files didn't get uploaded",h2n="%retryButton% or contact your deepset Cloud representative if it continues to fail.",m2n="Try again or contact your deepset Cloud representative if it continues to fail.",g2n="You're trying to upload an unsupported file type. Check the %documentation% for supported types.",v2n=" Documentation",y2n="Retry Failed",b2n="Large number of files are being uploaded",_2n="You are currently attempting to upload a large number of files which can take some time. Try %uploadWithPythoSDK% for faster upload.",S2n="%successfulUploads% files uploaded.",E2n="File uploaded.",C2n="Uploading %completedFiles% of %inProgressFiles%",w2n="Upload finished",x2n="Drag and drop your files here or click to upload.",T2n="Supports %fileFormats% files",I2n=`${zu}docs/upload-files`,rxe="Upload",ixe="Cancel",A2n="Upload Files",R2n="Try again",N2n="File size exceeds the limit (%fileSize%MB)",O2n="uploading with the Python SDK",L2n="_scrollableFileListDiv_1n1g9_13",P2n="_scrollableFileListDiv_small_1n1g9_18",k2n="_scrollableFileListDiv_large_1n1g9_22",M2n="_fileList_1n1g9_26",D2n="_fileList_name_label_1n1g9_34",$2n="_expanded_1n1g9_41",F2n="_fileList_name_1n1g9_34",B2n="_fileList_status_1n1g9_52",j2n="_error_1n1g9_57",z2n="_success_1n1g9_61",U2n="_retryButton_1n1g9_65",Jf={scrollableFileListDiv:L2n,scrollableFileListDiv_small:P2n,scrollableFileListDiv_large:k2n,fileList:M2n,fileList_name_label:D2n,expanded:$2n,fileList_name:F2n,fileList_status:B2n,error:j2n,success:z2n,retryButton:U2n},Gpe=({filesList:e,listLength:t,isUploadingCompleted:n,onLoadMore:r=()=>{},viewOnly:i,onRetrySingleFile:a,fileSizeLimitMB:o,size:s})=>{let l=e;n&&(l=[...e.filter(d=>d.uploadStatus===Yc.error),...e.filter(d=>d.uploadStatus!==Yc.error)]);const c=l.slice(0,t),u=d=>o&&!pwe(d,o)?Pn(N2n,{fileSize:o}):d.uploadStatus===Yc.error?d.errorMessage:"";return E.jsx("div",{id:"scrollableFileListDiv",className:`${Jf.scrollableFileListDiv} ${s==="small"?Jf.scrollableFileListDiv_small:Jf.scrollableFileListDiv_large}`,children:E.jsx(cU,{dataLength:c.length,next:r,hasMore:c.length<e.length,loader:E.jsx(Ff,{paragraph:{rows:0},active:!0}),scrollableTarget:"scrollableFileListDiv","data-testid":"fileUploadList",children:c.map(d=>E.jsx(vr,{placement:"top",title:u(d),children:E.jsxs("div",{className:`${Jf.fileList} ${i?Jf.expanded:""}`,"data-testid":`fileUploadList_item_${d.name}`,children:[E.jsxs("span",{className:`${Jf.fileList_name} ${d.uploadStatus===Yc.error||o&&!pwe(d,o)?Jf.error:""}`,children:[d.uploadStatus===Yc.uploading?E.jsx(v0,{size:"small",indicator:E.jsx(Np,{})}):E.jsx(mDe,{}),E.jsx("span",{className:Jf.fileList_name_label,children:d.name})]}),!i&&E.jsxs("span",{className:Jf.fileList_status,children:[d.uploadStatus===Yc.success&&E.jsx(gj,{className:Jf.success,"data-testid":`fileUploadList_item_${d.name}_success`}),d.uploadStatus===Yc.error&&d.errorCode!==Qs.CONFLICT&&E.jsxs(E.Fragment,{children:[a&&E.jsx(ut,{type:"link",size:"small",onClick:()=>a(d.uid),className:Jf.retryButton,"data-testid":`fileUploadList_item_${d.name}_retryButton`,children:R2n}),E.jsx(Qce,{className:Jf.error})]})]})]})},d.uid))})})},H2n="_uploadFiles_2xn92_13",V2n="_uploadFiles_icon_2xn92_20",G2n="_uploadFiles_textSupport_2xn92_26",q2n="_uploadFiles_input_2xn92_29",W2n="_uploadFiles_large_icon_2xn92_33",Y2n="_uploadFiles_large_button_2xn92_38",K2n="_uploadFiles_large_textSupport_2xn92_42",X2n="_uploadFiles_small_icon_2xn92_47",Z2n="_uploadFiles_small_button_2xn92_52",Q2n="_uploadFiles_small_textSupport_2xn92_56",J2n="_uploadFiles_notExpanded_2xn92_60",mh={uploadFiles:H2n,uploadFiles_icon:V2n,uploadFiles_textSupport:G2n,uploadFiles_input:q2n,uploadFiles_large_icon:W2n,uploadFiles_large_button:Y2n,uploadFiles_large_textSupport:K2n,uploadFiles_small_icon:X2n,uploadFiles_small_button:Z2n,uploadFiles_small_textSupport:Q2n,uploadFiles_notExpanded:J2n},bQe=({createCurrentList:e,buttonDescription:t,hintDescription:n,getInputAcceptAttributeFromFileTypes:r,size:i,expanded:a})=>{const o=b.useRef(null),s=d=>{d.preventDefault(),d.dataTransfer.files&&e(d.dataTransfer.files)},l=d=>{d.preventDefault()},c=()=>{o.current?.click()},u=d=>{d.target.files&&e(d.target.files)};return E.jsxs("div",{className:mh.uploadFiles,role:"button",tabIndex:0,onDrop:d=>s(d),onDragOver:d=>l(d),children:[E.jsx("div",{className:`${mh.uploadFiles_icon} ${i==="small"?mh.uploadFiles_small_icon:mh.uploadFiles_large_icon} ${a?"":mh.uploadFiles_notExpanded}`,children:E.jsx(m$,{onClick:c})}),E.jsx(ut,{type:"link",onClick:c,className:`${i==="small"?mh.uploadFiles_small_button:mh.uploadFiles_large_button}`,children:t}),E.jsx("span",{className:`${mh.uploadFiles_textSupport} ${i==="small"?mh.uploadFiles_small_textSupport:mh.uploadFiles_large_textSupport}`,children:n}),E.jsx("input",{"data-testid":"uploadFile_input",type:"file",accept:r(),ref:o,multiple:!0,onChange:u,className:mh.uploadFiles_input})]})},eSn="_contactSupportModal_1d2sn_13",tSn="_contactSupportSections_1d2sn_17",nSn="_contactSupportSections_section_1d2sn_24",rSn="_contactSupportSections_section_required_1d2sn_29",iSn="_contactSupportSections_section_screenshots_1d2sn_32",aSn="_uploadFileList_1d2sn_39",gh={contactSupportModal:eSn,contactSupportSections:tSn,contactSupportSections_section:nSn,contactSupportSections_section_required:rSn,contactSupportSections_section_screenshots:iSn,uploadFileList:aSn},PP=12,oSn=({title:e,okButtonText:t,open:n,setOpenContactSupportModal:r})=>{const[i,a]=b.useState(null),[o,s]=b.useState(null),[l,c]=b.useState(""),[u,d]=b.useState([]),[f,p]=b.useState(PP),[h,m]=b.useState(!1),[g,v]=b.useState(!1),y=[Kae.png,Kae.jpg],_=R=>{a(R.target.value),R.target.value===b2.bug.key?v(!0):v(!1)},S=R=>{s(R.target.value)},C=R=>Pn(R,{fileFormats:y.map(N=>N.toUpperCase()).join(" and ")}),w=R=>{let N=!0;if(R.type)N=!!y.find(P=>R.type===G_n[P]);else{const P=KO(R);N=!!y.find(L=>P===L)}return N},x=R=>{let N=Array.prototype.slice.call(R);N.length>PP?(m(!0),N=N.slice(0,PP)):m(!1);const P=N.filter((L,$)=>u.find(D=>D.name===L.name)?!1:w(L)?(N[$].uid=ps(),!0):(Dp.error(C(H_n)),!1));d([...u,...P])},T=()=>y.map(R=>`.${R}`).join(", "),A=()=>i&&l?!!(g&&!o):!0,I=()=>{r(!1),a(null),s(null),c(""),d([]),m(!1),v(!1)};return E.jsxs(wi,{title:e,centered:!0,open:n,onOk:()=>r(!1),onCancel:()=>I(),okText:t,okButtonProps:{disabled:A()},width:1e3,className:gh.contactSupportModal,children:[E.jsx("h3",{children:M_n}),E.jsx("span",{children:D_n}),E.jsxs("div",{className:gh.contactSupportSections,children:[E.jsxs("div",{className:gh.contactSupportSections_section,children:[E.jsxs("h6",{children:[E.jsx("span",{className:gh.contactSupportSections_section_required,children:AW}),$_n]}),E.jsx(dc.Group,{onChange:_,value:i,children:E.jsxs(nv,{direction:"vertical",children:[E.jsx(dc,{value:b2.bug.key,children:b2.bug.label}),E.jsx(dc,{value:b2.featureRequest.key,children:b2.featureRequest.label}),E.jsx(dc,{value:b2.other.key,children:b2.other.label})]})})]}),E.jsxs("div",{className:gh.contactSupportSections_section,children:[E.jsxs("h6",{children:[g&&E.jsx("span",{className:gh.contactSupportSections_section_required,children:AW}),F_n]}),E.jsx(dc.Group,{onChange:S,value:o,children:E.jsxs(nv,{direction:"vertical",children:[E.jsx(dc,{value:ly.option1.key,children:ly.option1.label}),E.jsx(dc,{value:ly.option2.key,children:ly.option2.label}),E.jsx(dc,{value:ly.option3.key,children:ly.option3.label}),E.jsx(dc,{value:ly.option4.key,children:ly.option4.label})]})})]}),E.jsxs("div",{className:gh.contactSupportSections_section,children:[E.jsxs("h6",{children:[E.jsx("span",{className:gh.contactSupportSections_section_required,children:AW}),B_n]}),E.jsx(DHe,{value:l,onChange:R=>c(R.target.value),rows:8,placeholder:z_n})]}),E.jsxs("div",{className:gh.contactSupportSections_section,children:[E.jsx("h6",{children:j_n}),E.jsxs("div",{className:gh.contactSupportSections_section_screenshots,children:[E.jsx(bQe,{createCurrentList:x,buttonDescription:U_n,hintDescription:h?exe+V_n:exe,getInputAcceptAttributeFromFileTypes:T,size:"small",expanded:u.length===0}),E.jsx("div",{className:gh.uploadFileList,children:E.jsx(Gpe,{filesList:u,listLength:30,viewOnly:!0,onLoadMore:()=>p(f+PP),size:"small"})})]})]})]})]})};var sSn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),ll=function(){return ll=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},ll.apply(this,arguments)},axe={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},oxe={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},kP={width:"20px",height:"20px",position:"absolute"},lSn={top:ll(ll({},axe),{top:"-5px"}),right:ll(ll({},oxe),{left:void 0,right:"-5px"}),bottom:ll(ll({},axe),{top:void 0,bottom:"-5px"}),left:ll(ll({},oxe),{left:"-5px"}),topRight:ll(ll({},kP),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:ll(ll({},kP),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:ll(ll({},kP),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:ll(ll({},kP),{left:"-10px",top:"-10px",cursor:"nw-resize"})},cSn=function(e){sSn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.onMouseDown=function(r){n.props.onResizeStart(r,n.props.direction)},n.onTouchStart=function(r){n.props.onResizeStart(r,n.props.direction)},n}return t.prototype.render=function(){return b.createElement("div",{className:this.props.className||"",style:ll(ll({position:"absolute",userSelect:"none"},lSn[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(b.PureComponent),uSn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),bg=function(){return bg=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},bg.apply(this,arguments)},dSn={width:"auto",height:"auto"},MP=function(e,t,n){return Math.max(Math.min(e,n),t)},sxe=function(e,t){return Math.round(e/t)*t},Rw=function(e,t){return new RegExp(e,"i").test(t)},DP=function(e){return!!(e.touches&&e.touches.length)},fSn=function(e){return!!((e.clientX||e.clientX===0)&&(e.clientY||e.clientY===0))},lxe=function(e,t,n){n===void 0&&(n=0);var r=t.reduce(function(a,o,s){return Math.abs(o-e)<Math.abs(t[a]-e)?s:a},0),i=Math.abs(t[r]-e);return n===0||i<n?t[r]:e},RW=function(e){return e=e.toString(),e==="auto"||e.endsWith("px")||e.endsWith("%")||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("vmax")||e.endsWith("vmin")?e:e+"px"},$P=function(e,t,n,r){if(e&&typeof e=="string"){if(e.endsWith("px"))return Number(e.replace("px",""));if(e.endsWith("%")){var i=Number(e.replace("%",""))/100;return t*i}if(e.endsWith("vw")){var i=Number(e.replace("vw",""))/100;return n*i}if(e.endsWith("vh")){var i=Number(e.replace("vh",""))/100;return r*i}}return e},pSn=function(e,t,n,r,i,a,o){return r=$P(r,e.width,t,n),i=$P(i,e.height,t,n),a=$P(a,e.width,t,n),o=$P(o,e.height,t,n),{maxWidth:typeof r>"u"?void 0:Number(r),maxHeight:typeof i>"u"?void 0:Number(i),minWidth:typeof a>"u"?void 0:Number(a),minHeight:typeof o>"u"?void 0:Number(o)}},hSn=function(e){return Array.isArray(e)?e:[e,e]},mSn=["as","ref","style","className","grid","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],cxe="__resizable_base__",qpe=function(e){uSn(t,e);function t(n){var r,i,a,o,s=e.call(this,n)||this;return s.ratio=1,s.resizable=null,s.parentLeft=0,s.parentTop=0,s.resizableLeft=0,s.resizableRight=0,s.resizableTop=0,s.resizableBottom=0,s.targetLeft=0,s.targetTop=0,s.appendBase=function(){if(!s.resizable||!s.window)return null;var l=s.parentNode;if(!l)return null;var c=s.window.document.createElement("div");return c.style.width="100%",c.style.height="100%",c.style.position="absolute",c.style.transform="scale(0, 0)",c.style.left="0",c.style.flex="0 0 100%",c.classList?c.classList.add(cxe):c.className+=cxe,l.appendChild(c),c},s.removeBase=function(l){var c=s.parentNode;c&&c.removeChild(l)},s.state={isResizing:!1,width:(i=(r=s.propsSize)===null||r===void 0?void 0:r.width)!==null&&i!==void 0?i:"auto",height:(o=(a=s.propsSize)===null||a===void 0?void 0:a.height)!==null&&o!==void 0?o:"auto",direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},s.onResizeStart=s.onResizeStart.bind(s),s.onMouseMove=s.onMouseMove.bind(s),s.onMouseUp=s.onMouseUp.bind(s),s}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||dSn},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var n=0,r=0;if(this.resizable&&this.window){var i=this.resizable.offsetWidth,a=this.resizable.offsetHeight,o=this.resizable.style.position;o!=="relative"&&(this.resizable.style.position="relative"),n=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:i,r=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:a,this.resizable.style.position=o}return{width:n,height:r}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var n=this,r=this.props.size,i=function(s){var l;if(typeof n.state[s]>"u"||n.state[s]==="auto")return"auto";if(n.propsSize&&n.propsSize[s]&&(!((l=n.propsSize[s])===null||l===void 0)&&l.toString().endsWith("%"))){if(n.state[s].toString().endsWith("%"))return n.state[s].toString();var c=n.getParentSize(),u=Number(n.state[s].toString().replace("px","")),d=u/c[s]*100;return d+"%"}return RW(n.state[s])},a=r&&typeof r.width<"u"&&!this.state.isResizing?RW(r.width):i("width"),o=r&&typeof r.height<"u"&&!this.state.isResizing?RW(r.height):i("height");return{width:a,height:o}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var n=this.appendBase();if(!n)return{width:0,height:0};var r=!1,i=this.parentNode.style.flexWrap;i!=="wrap"&&(r=!0,this.parentNode.style.flexWrap="wrap"),n.style.position="relative",n.style.minWidth="100%",n.style.minHeight="100%";var a={width:n.offsetWidth,height:n.offsetHeight};return r&&(this.parentNode.style.flexWrap=i),this.removeBase(n),a},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var n=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:n.flexBasis!=="auto"?n.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(n,r){var i=this.propsSize&&this.propsSize[r];return this.state[r]==="auto"&&this.state.original[r]===n&&(typeof i>"u"||i==="auto")?"auto":n},t.prototype.calculateNewMaxFromBoundary=function(n,r){var i=this.props.boundsByDirection,a=this.state.direction,o=i&&Rw("left",a),s=i&&Rw("top",a),l,c;if(this.props.bounds==="parent"){var u=this.parentNode;u&&(l=o?this.resizableRight-this.parentLeft:u.offsetWidth+(this.parentLeft-this.resizableLeft),c=s?this.resizableBottom-this.parentTop:u.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(l=o?this.resizableRight:this.window.innerWidth-this.resizableLeft,c=s?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(l=o?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),c=s?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return l&&Number.isFinite(l)&&(n=n&&n<l?n:l),c&&Number.isFinite(c)&&(r=r&&r<c?r:c),{maxWidth:n,maxHeight:r}},t.prototype.calculateNewSizeFromDirection=function(n,r){var i=this.props.scale||1,a=hSn(this.props.resizeRatio||1),o=a[0],s=a[1],l=this.state,c=l.direction,u=l.original,d=this.props,f=d.lockAspectRatio,p=d.lockAspectRatioExtraHeight,h=d.lockAspectRatioExtraWidth,m=u.width,g=u.height,v=p||0,y=h||0;return Rw("right",c)&&(m=u.width+(n-u.x)*o/i,f&&(g=(m-y)/this.ratio+v)),Rw("left",c)&&(m=u.width-(n-u.x)*o/i,f&&(g=(m-y)/this.ratio+v)),Rw("bottom",c)&&(g=u.height+(r-u.y)*s/i,f&&(m=(g-v)*this.ratio+y)),Rw("top",c)&&(g=u.height-(r-u.y)*s/i,f&&(m=(g-v)*this.ratio+y)),{newWidth:m,newHeight:g}},t.prototype.calculateNewSizeFromAspectRatio=function(n,r,i,a){var o=this.props,s=o.lockAspectRatio,l=o.lockAspectRatioExtraHeight,c=o.lockAspectRatioExtraWidth,u=typeof a.width>"u"?10:a.width,d=typeof i.width>"u"||i.width<0?n:i.width,f=typeof a.height>"u"?10:a.height,p=typeof i.height>"u"||i.height<0?r:i.height,h=l||0,m=c||0;if(s){var g=(f-h)*this.ratio+m,v=(p-h)*this.ratio+m,y=(u-m)/this.ratio+h,_=(d-m)/this.ratio+h,S=Math.max(u,g),C=Math.min(d,v),w=Math.max(f,y),x=Math.min(p,_);n=MP(n,S,C),r=MP(r,w,x)}else n=MP(n,u,d),r=MP(r,f,p);return{newWidth:n,newHeight:r}},t.prototype.setBoundingClientRect=function(){if(this.props.bounds==="parent"){var n=this.parentNode;if(n){var r=n.getBoundingClientRect();this.parentLeft=r.left,this.parentTop=r.top}}if(this.props.bounds&&typeof this.props.bounds!="string"){var i=this.props.bounds.getBoundingClientRect();this.targetLeft=i.left,this.targetTop=i.top}if(this.resizable){var a=this.resizable.getBoundingClientRect(),o=a.left,s=a.top,l=a.right,c=a.bottom;this.resizableLeft=o,this.resizableRight=l,this.resizableTop=s,this.resizableBottom=c}},t.prototype.onResizeStart=function(n,r){if(!(!this.resizable||!this.window)){var i=0,a=0;if(n.nativeEvent&&fSn(n.nativeEvent)?(i=n.nativeEvent.clientX,a=n.nativeEvent.clientY):n.nativeEvent&&DP(n.nativeEvent)&&(i=n.nativeEvent.touches[0].clientX,a=n.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var o=this.props.onResizeStart(n,r,this.resizable);if(o===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var s,l=this.window.getComputedStyle(this.resizable);if(l.flexBasis!=="auto"){var c=this.parentNode;if(c){var u=this.window.getComputedStyle(c).flexDirection;this.flexDir=u.startsWith("row")?"row":"column",s=l.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var d={original:{x:i,y:a,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:bg(bg({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(n.target).cursor||"auto"}),direction:r,flexBasis:s};this.setState(d)}},t.prototype.onMouseMove=function(n){var r=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&DP(n))try{n.preventDefault(),n.stopPropagation()}catch{}var i=this.props,a=i.maxWidth,o=i.maxHeight,s=i.minWidth,l=i.minHeight,c=DP(n)?n.touches[0].clientX:n.clientX,u=DP(n)?n.touches[0].clientY:n.clientY,d=this.state,f=d.direction,p=d.original,h=d.width,m=d.height,g=this.getParentSize(),v=pSn(g,this.window.innerWidth,this.window.innerHeight,a,o,s,l);a=v.maxWidth,o=v.maxHeight,s=v.minWidth,l=v.minHeight;var y=this.calculateNewSizeFromDirection(c,u),_=y.newHeight,S=y.newWidth,C=this.calculateNewMaxFromBoundary(a,o);this.props.snap&&this.props.snap.x&&(S=lxe(S,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(_=lxe(_,this.props.snap.y,this.props.snapGap));var w=this.calculateNewSizeFromAspectRatio(S,_,{width:C.maxWidth,height:C.maxHeight},{width:s,height:l});if(S=w.newWidth,_=w.newHeight,this.props.grid){var x=sxe(S,this.props.grid[0]),T=sxe(_,this.props.grid[1]),A=this.props.snapGap||0,I=A===0||Math.abs(x-S)<=A?x:S,R=A===0||Math.abs(T-_)<=A?T:_;S=I,_=R}var N={width:S-p.width,height:_-p.height};if(h&&typeof h=="string"){if(h.endsWith("%")){var P=S/g.width*100;S=P+"%"}else if(h.endsWith("vw")){var L=S/this.window.innerWidth*100;S=L+"vw"}else if(h.endsWith("vh")){var $=S/this.window.innerHeight*100;S=$+"vh"}}if(m&&typeof m=="string"){if(m.endsWith("%")){var P=_/g.height*100;_=P+"%"}else if(m.endsWith("vw")){var L=_/this.window.innerWidth*100;_=L+"vw"}else if(m.endsWith("vh")){var $=_/this.window.innerHeight*100;_=$+"vh"}}var D={width:this.createSizeForCssProperty(S,"width"),height:this.createSizeForCssProperty(_,"height")};this.flexDir==="row"?D.flexBasis=D.width:this.flexDir==="column"&&(D.flexBasis=D.height);var z=this.state.width!==D.width,U=this.state.height!==D.height,H=this.state.flexBasis!==D.flexBasis,M=z||U||H;M&&Ou.flushSync(function(){r.setState(D)}),this.props.onResize&&M&&this.props.onResize(n,f,this.resizable,N)}},t.prototype.onMouseUp=function(n){var r,i,a=this.state,o=a.isResizing,s=a.direction,l=a.original;if(!(!o||!this.resizable)){var c={width:this.size.width-l.width,height:this.size.height-l.height};this.props.onResizeStop&&this.props.onResizeStop(n,s,this.resizable,c),this.props.size&&this.setState({width:(r=this.props.size.width)!==null&&r!==void 0?r:"auto",height:(i=this.props.size.height)!==null&&i!==void 0?i:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:bg(bg({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(n){var r,i;this.setState({width:(r=n.width)!==null&&r!==void 0?r:"auto",height:(i=n.height)!==null&&i!==void 0?i:"auto"})},t.prototype.renderResizer=function(){var n=this,r=this.props,i=r.enable,a=r.handleStyles,o=r.handleClasses,s=r.handleWrapperStyle,l=r.handleWrapperClass,c=r.handleComponent;if(!i)return null;var u=Object.keys(i).map(function(d){return i[d]!==!1?b.createElement(cSn,{key:d,direction:d,onResizeStart:n.onResizeStart,replaceStyles:a&&a[d],className:o&&o[d]},c&&c[d]?c[d]:null):null});return b.createElement("div",{className:l,style:s},u)},t.prototype.render=function(){var n=this,r=Object.keys(this.props).reduce(function(o,s){return mSn.indexOf(s)!==-1||(o[s]=n.props[s]),o},{}),i=bg(bg(bg({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(i.flexBasis=this.state.flexBasis);var a=this.props.as||"div";return b.createElement(a,bg({style:i,className:this.props.className},r,{ref:function(o){o&&(n.resizable=o)}}),this.state.isResizing&&b.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(b.PureComponent);const gSn=e=>e.trim().split(/(?:\n\n|^)data: /).filter(r=>r.trim()!=="").map(r=>JSON.parse(r)),uU=e=>{let t=0,n="";return r=>{const i=r.event.target,{responseText:a}=i,o=a.slice(t);t=a.length,n+=o;try{const s=gSn(n);e(s),n=""}catch{}}},er=()=>M_.getState().organizationStore.currentWorkspace||ZO,Qi=()=>{const e=M_.getState(),{workspaces:t,currentWorkspace:n}=e.organizationStore,{workspace_id:r}=t.find(i=>i.name===n)||{};return r},_Qe=(e,t,n,r=er())=>rn.post(`/api/v1/workspaces/${r}/pipelines/${e}/search`,t,{headers:n}),SQe=async(e,t,n,r={},i=er())=>rn.post(`/api/v1/workspaces/${i}/pipelines/${e}/search-stream`,{include_result:!0,...t},{...r,onDownloadProgress:uU(n)}),vSn=(e,t=er())=>rn.post(`/api/v1/workspaces/${t}/search_sessions`,e),ySn=(e,t=er())=>{const n={limit:e?.limit,...e?.after&&{after:e.after},...e?.pageNumber&&{page_number:e.pageNumber},...e?.filter&&{filter:e.filter}};return rn.get(`/api/v1/workspaces/${t}/search_sessions`,{params:n,headers:{Accept:"application/json"}})},bSn=(e,t,n)=>rn({url:`/api/v1/workspaces/${n}/pipelines/${e}/search`,baseURL:"https://api.cloud.deepset.ai",method:"post",headers:{Authorization:"Bearer prototype_eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3Mjk3MDc4NTkuODUxLCJhdWQiOiJleHRlcm5hbCB1c2VyIiwiaXNzIjoiZEMiLCJ3b3Jrc3BhY2VfaWQiOiJjNjk2Mzc0Yy04OWUyLTRiMzktOTA1MC1jNWY0NjA5ZjI4Y2YiLCJ3b3Jrc3BhY2VfbmFtZSI6InJlYWRtZSIsIm9yZ2FuaXphdGlvbl9pZCI6ImNhOWYxNGQ0LWMyYzktNDYwZC04ZDI2LWY4Y2IwYWNhMDI0ZiIsInNoYXJlX2lkIjoiNDY1NzdjNTAtNWI4My00YWJiLWFkOWUtZmQ2NTkwYWNlYmYxIiwidXNlciI6eyJleHRlcm5hbF91c2VyX2lkIjoiZWU0YTdkMjgtNDRmOS00ZTJmLTk4ZTAtMWQ0NTk4Njc1OTA2In19.f4jm9zuRF2rWgRO5qIRZSNu01EcCKFy88iiqLArRuWk",[GE.X_CLIENT_SOURCE]:"deepset-cloud-ui",[GE.X_CLIENT_SOURCE_PATH]:nU.DOC_CHAT},data:t}),EQe=(e,t,n,r=er())=>rn.post(`/api/v1/workspaces/${r}/pipelines/${e}/chat`,t,{headers:n}),CQe=(e,t,n,r={},i=er())=>rn.post(`/api/v1/workspaces/${i}/pipelines/${e}/chat-stream`,{include_result:!0,...t},{...r,onDownloadProgress:uU(n)}),_Sn="Use the search to ask questions about deepset Cloud. For example:",SSn="Clear",ESn="Enter your question",CSn="Go to documentation",uxe={common:["What's a workspace?","How are documents and files different?","What's RAG?","Can I use a private model?"],pipelines:["What is a pipeline?","How do I edit a pipeline?",'How do I fix a "failed to deploy" pipeline?',"What's the difference between deployed and in development pipelines?"],experiments:["How do I evaluate my pipeline?","What's an experiment?","Can other people test my pipeline?"],promptExplorer:["How do I start working on a prompt?","What's prompt studio?","How do I test my prompt?"],dataFile:["What type of files can I upload?","How do I upload files?","What's the maximum file size?"],dataEvalset:["What's an evaluation set?","How do I create an evaluation set?","Why do I need an evaluation set?","What's the required format of the evaluation set?"],search:["How do I add search filters?","What queries work?","How do I search for a document?"]},wSn="_threeDots_vyb0g_13",xSn="_dot_vyb0g_19",FP={threeDots:wSn,dot:xSn},wQe=()=>E.jsxs("div",{className:FP.threeDots,children:[E.jsx("div",{className:FP.dot}),E.jsx("div",{className:FP.dot}),E.jsx("div",{className:FP.dot})]}),so=(e,t)=>{const n=b.useRef(!1);b.useEffect(()=>n.current?e():(n.current=!0,()=>{}),t)},TSn=({children:e,delay:t=4})=>{const[n,r]=b.useState(""),i=b.useRef(0),a=b.useRef(0),o=l=>{if(typeof l=="string")return l.length;if(se.isValidElement(l)&&l.props.children){let c=0;return se.Children.forEach(l.props.children,u=>{c+=o(u)}),c}return 0},s=(l,c)=>{if(typeof l=="string")return[l.slice(0,c),c];if(se.isValidElement(l)&&l.props.children){const u=[];let d=c;return se.Children.forEach(l.props.children,f=>{if(d<=0)return;const[p,h]=s(f,d);u.push(p),d-=h}),[se.cloneElement(l,l.props,...u),c-d]}return[l,0]};return b.useEffect(()=>{const l=o(e);if(i.current<l){const c=setInterval(()=>{if(i.current>=l){clearInterval(c);return}i.current++;const[u]=s(e,i.current);r(u)},t);return()=>clearInterval(c)}},[e,t]),b.useEffect(()=>{const l=o(e);l>a.current&&(i.current=a.current,a.current=l)},[e]),E.jsx(E.Fragment,{children:n})},ISn=b.memo(TSn),dxe=["http","https","mailto","tel"];function ASn(e){const t=(e||"").trim(),n=t.charAt(0);if(n==="#"||n==="/")return t;const r=t.indexOf(":");if(r===-1)return t;let i=-1;for(;++i<dxe.length;){const a=dxe[i];if(r===a.length&&t.slice(0,a.length).toLowerCase()===a)return t}return i=t.indexOf("?"),i!==-1&&r>i||(i=t.indexOf("#"),i!==-1&&r>i)?t:"javascript:void(0)"}/*!
 * Determine if an object is a Buffer
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */var RSn=function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)};const xQe=qo(RSn);function CR(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?fxe(e.position):"start"in e||"end"in e?fxe(e):"line"in e||"column"in e?Zae(e):""}function Zae(e){return pxe(e&&e.line)+":"+pxe(e&&e.column)}function fxe(e){return Zae(e&&e.start)+"-"+Zae(e&&e.end)}function pxe(e){return e&&typeof e=="number"?e:1}class Hp extends Error{constructor(t,n,r){const i=[null,null];let a={start:{line:null,column:null},end:{line:null,column:null}};if(super(),typeof n=="string"&&(r=n,n=void 0),typeof r=="string"){const o=r.indexOf(":");o===-1?i[1]=r:(i[0]=r.slice(0,o),i[1]=r.slice(o+1))}n&&("type"in n||"position"in n?n.position&&(a=n.position):"start"in n||"end"in n?a=n:("line"in n||"column"in n)&&(a.start=n)),this.name=CR(n)||"1:1",this.message=typeof t=="object"?t.message:t,this.stack="",typeof t=="object"&&t.stack&&(this.stack=t.stack),this.reason=this.message,this.fatal,this.line=a.start.line,this.column=a.start.column,this.position=a,this.source=i[0],this.ruleId=i[1],this.file,this.actual,this.expected,this.url,this.note}}Hp.prototype.file="";Hp.prototype.name="";Hp.prototype.reason="";Hp.prototype.message="";Hp.prototype.stack="";Hp.prototype.fatal=null;Hp.prototype.column=null;Hp.prototype.line=null;Hp.prototype.source=null;Hp.prototype.ruleId=null;Hp.prototype.position=null;const _g={basename:NSn,dirname:OSn,extname:LSn,join:PSn,sep:"/"};function NSn(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');e8(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.charCodeAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,s=t.length-1;for(;i--;)if(e.charCodeAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.charCodeAt(i)===t.charCodeAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function OSn(e){if(e8(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.charCodeAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.charCodeAt(0)===47?"/":".":t===1&&e.charCodeAt(0)===47?"//":e.slice(0,t)}function LSn(e){e8(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){const s=e.charCodeAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function PSn(...e){let t=-1,n;for(;++t<e.length;)e8(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":kSn(n)}function kSn(e){e8(e);const t=e.charCodeAt(0)===47;let n=MSn(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.charCodeAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function MSn(e,t){let n="",r=0,i=-1,a=0,o=-1,s,l;for(;++o<=e.length;){if(o<e.length)s=e.charCodeAt(o);else{if(s===47)break;s=47}if(s===47){if(!(i===o-1||a===1))if(i!==o-1&&a===2){if(n.length<2||r!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=o,a=0;continue}}else if(n.length>0){n="",r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function e8(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const DSn={cwd:$Sn};function $Sn(){return"/"}function Qae(e){return e!==null&&typeof e=="object"&&e.href&&e.origin}function FSn(e){if(typeof e=="string")e=new URL(e);else if(!Qae(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 BSn(e)}function BSn(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.charCodeAt(n)===37&&t.charCodeAt(n+1)===50){const r=t.charCodeAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const NW=["history","path","basename","stem","extname","dirname"];class TQe{constructor(t){let n;t?typeof t=="string"||jSn(t)?n={value:t}:Qae(t)?n={path:t}:n=t:n={},this.data={},this.messages=[],this.history=[],this.cwd=DSn.cwd(),this.value,this.stored,this.result,this.map;let r=-1;for(;++r<NW.length;){const a=NW[r];a in n&&n[a]!==void 0&&n[a]!==null&&(this[a]=a==="history"?[...n[a]]:n[a])}let i;for(i in n)NW.includes(i)||(this[i]=n[i])}get path(){return this.history[this.history.length-1]}set path(t){Qae(t)&&(t=FSn(t)),LW(t,"path"),this.path!==t&&this.history.push(t)}get dirname(){return typeof this.path=="string"?_g.dirname(this.path):void 0}set dirname(t){hxe(this.basename,"dirname"),this.path=_g.join(t||"",this.basename)}get basename(){return typeof this.path=="string"?_g.basename(this.path):void 0}set basename(t){LW(t,"basename"),OW(t,"basename"),this.path=_g.join(this.dirname||"",t)}get extname(){return typeof this.path=="string"?_g.extname(this.path):void 0}set extname(t){if(OW(t,"extname"),hxe(this.dirname,"extname"),t){if(t.charCodeAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=_g.join(this.dirname,this.stem+(t||""))}get stem(){return typeof this.path=="string"?_g.basename(this.path,this.extname):void 0}set stem(t){LW(t,"stem"),OW(t,"stem"),this.path=_g.join(this.dirname||"",t+(this.extname||""))}toString(t){return(this.value||"").toString(t||void 0)}message(t,n,r){const i=new Hp(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=null,i}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}}function OW(e,t){if(e&&e.includes(_g.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+_g.sep+"`")}function LW(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function hxe(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function jSn(e){return xQe(e)}function mxe(e){if(e)throw e}var RM=Object.prototype.hasOwnProperty,IQe=Object.prototype.toString,gxe=Object.defineProperty,vxe=Object.getOwnPropertyDescriptor,yxe=function(t){return typeof Array.isArray=="function"?Array.isArray(t):IQe.call(t)==="[object Array]"},bxe=function(t){if(!t||IQe.call(t)!=="[object Object]")return!1;var n=RM.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&RM.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||RM.call(t,i)},_xe=function(t,n){gxe&&n.name==="__proto__"?gxe(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Sxe=function(t,n){if(n==="__proto__")if(RM.call(t,n)){if(vxe)return vxe(t,n).value}else return;return t[n]},zSn=function e(){var t,n,r,i,a,o,s=arguments[0],l=1,c=arguments.length,u=!1;for(typeof s=="boolean"&&(u=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});l<c;++l)if(t=arguments[l],t!=null)for(n in t)r=Sxe(s,n),i=Sxe(t,n),s!==i&&(u&&i&&(bxe(i)||(a=yxe(i)))?(a?(a=!1,o=r&&yxe(r)?r:[]):o=r&&bxe(r)?r:{},_xe(s,{name:n,newValue:e(u,o,i)})):typeof i<"u"&&_xe(s,{name:n,newValue:i}));return s};const Exe=qo(zSn);function Jae(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function USn(){const e=[],t={run:n,use:r};return t;function n(...i){let a=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);s(null,...i);function s(l,...c){const u=e[++a];let d=-1;if(l){o(l);return}for(;++d<i.length;)(c[d]===null||c[d]===void 0)&&(c[d]=i[d]);i=c,u?HSn(u,s)(...c):o(null,...c)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function HSn(e,t){let n;return r;function r(...o){const s=e.length>o.length;let l;s&&o.push(i);try{l=e.apply(this,o)}catch(c){const u=c;if(s&&n)throw u;return i(u)}s||(l instanceof Promise?l.then(a,i):l instanceof Error?i(l):a(l))}function i(o,...s){n||(n=!0,t(o,...s))}function a(o){i(null,o)}}const VSn=RQe().freeze(),AQe={}.hasOwnProperty;function RQe(){const e=USn(),t=[];let n={},r,i=-1;return a.data=o,a.Parser=void 0,a.Compiler=void 0,a.freeze=s,a.attachers=t,a.use=l,a.parse=c,a.stringify=u,a.run=d,a.runSync=f,a.process=p,a.processSync=h,a;function a(){const m=RQe();let g=-1;for(;++g<t.length;)m.use(...t[g]);return m.data(Exe(!0,{},n)),m}function o(m,g){return typeof m=="string"?arguments.length===2?(MW("data",r),n[m]=g,a):AQe.call(n,m)&&n[m]||null:m?(MW("data",r),n=m,a):n}function s(){if(r)return a;for(;++i<t.length;){const[m,...g]=t[i];if(g[0]===!1)continue;g[0]===!0&&(g[0]=void 0);const v=m.call(a,...g);typeof v=="function"&&e.use(v)}return r=!0,i=Number.POSITIVE_INFINITY,a}function l(m,...g){let v;if(MW("use",r),m!=null)if(typeof m=="function")C(m,...g);else if(typeof m=="object")Array.isArray(m)?S(m):_(m);else throw new TypeError("Expected usable value, not `"+m+"`");return v&&(n.settings=Object.assign(n.settings||{},v)),a;function y(w){if(typeof w=="function")C(w);else if(typeof w=="object")if(Array.isArray(w)){const[x,...T]=w;C(x,...T)}else _(w);else throw new TypeError("Expected usable value, not `"+w+"`")}function _(w){S(w.plugins),w.settings&&(v=Object.assign(v||{},w.settings))}function S(w){let x=-1;if(w!=null)if(Array.isArray(w))for(;++x<w.length;){const T=w[x];y(T)}else throw new TypeError("Expected a list of plugins, not `"+w+"`")}function C(w,x){let T=-1,A;for(;++T<t.length;)if(t[T][0]===w){A=t[T];break}A?(Jae(A[1])&&Jae(x)&&(x=Exe(!0,A[1],x)),A[1]=x):t.push([...arguments])}}function c(m){a.freeze();const g=aI(m),v=a.Parser;return PW("parse",v),Cxe(v,"parse")?new v(String(g),g).parse():v(String(g),g)}function u(m,g){a.freeze();const v=aI(g),y=a.Compiler;return kW("stringify",y),wxe(m),Cxe(y,"compile")?new y(m,v).compile():y(m,v)}function d(m,g,v){if(wxe(m),a.freeze(),!v&&typeof g=="function"&&(v=g,g=void 0),!v)return new Promise(y);y(null,v);function y(_,S){e.run(m,aI(g),C);function C(w,x,T){x=x||m,w?S(w):_?_(x):v(null,x,T)}}}function f(m,g){let v,y;return a.run(m,g,_),xxe("runSync","run",y),v;function _(S,C){mxe(S),v=C,y=!0}}function p(m,g){if(a.freeze(),PW("process",a.Parser),kW("process",a.Compiler),!g)return new Promise(v);v(null,g);function v(y,_){const S=aI(m);a.run(a.parse(S),S,(w,x,T)=>{if(w||!x||!T)C(w);else{const A=a.stringify(x,T);A==null||(WSn(A)?T.value=A:T.result=A),C(w,T)}});function C(w,x){w||!x?_(w):y?y(x):g(null,x)}}}function h(m){let g;a.freeze(),PW("processSync",a.Parser),kW("processSync",a.Compiler);const v=aI(m);return a.process(v,y),xxe("processSync","process",g),v;function y(_){g=!0,mxe(_)}}}function Cxe(e,t){return typeof e=="function"&&e.prototype&&(GSn(e.prototype)||t in e.prototype)}function GSn(e){let t;for(t in e)if(AQe.call(e,t))return!0;return!1}function PW(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Parser`")}function kW(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Compiler`")}function MW(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 wxe(e){if(!Jae(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function xxe(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function aI(e){return qSn(e)?e:new TQe(e)}function qSn(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function WSn(e){return typeof e=="string"||xQe(e)}const YSn={};function KSn(e,t){const n=YSn,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return NQe(e,r,i)}function NQe(e,t,n){if(XSn(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 Txe(e.children,t,n)}return Array.isArray(e)?Txe(e,t,n):""}function Txe(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=NQe(e[i],t,n);return r.join("")}function XSn(e){return!!(e&&typeof e=="object")}function xf(e,t,n,r){const i=e.length;let a=0,o;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function mp(e,t){return e.length>0?(xf(e,e.length,0,t),e):t}const Ixe={}.hasOwnProperty;function OQe(e){const t={};let n=-1;for(;++n<e.length;)ZSn(t,e[n]);return t}function ZSn(e,t){let n;for(n in t){const i=(Ixe.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let o;if(a)for(o in a){Ixe.call(i,o)||(i[o]=[]);const s=a[o];QSn(i[o],Array.isArray(s)?s:s?[s]:[])}}}function QSn(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);xf(e,0,0,r)}const JSn=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,wu=F_(/[A-Za-z]/),Qc=F_(/[\dA-Za-z]/),eEn=F_(/[#-'*+\--9=?A-Z^-~]/);function wF(e){return e!==null&&(e<32||e===127)}const eoe=F_(/\d/),tEn=F_(/[\dA-Fa-f]/),nEn=F_(/[!-/:-@[-`{-~]/);function Ar(e){return e!==null&&e<-2}function bo(e){return e!==null&&(e<0||e===32)}function ji(e){return e===-2||e===-1||e===32}const dU=F_(JSn),JE=F_(/\s/);function F_(e){return t;function t(n){return n!==null&&e.test(String.fromCharCode(n))}}function la(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return o;function o(l){return ji(l)?(e.enter(n),s(l)):t(l)}function s(l){return ji(l)&&a++<i?(e.consume(l),s):(e.exit(n),t(l))}}const rEn={tokenize:iEn};function iEn(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),la(e,t,"linePrefix")}function i(s){return e.enter("paragraph"),a(s)}function a(s){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,o(s)}function o(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return Ar(s)?(e.consume(s),e.exit("chunkText"),a):(e.consume(s),o)}}const aEn={tokenize:oEn},Axe={tokenize:sEn};function oEn(e){const t=this,n=[];let r=0,i,a,o;return s;function s(_){if(r<n.length){const S=n[r];return t.containerState=S[1],e.attempt(S[0].continuation,l,c)(_)}return c(_)}function l(_){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&y();const S=t.events.length;let C=S,w;for(;C--;)if(t.events[C][0]==="exit"&&t.events[C][1].type==="chunkFlow"){w=t.events[C][1].end;break}v(r);let x=S;for(;x<t.events.length;)t.events[x][1].end=Object.assign({},w),x++;return xf(t.events,C+1,0,t.events.slice(S)),t.events.length=x,c(_)}return s(_)}function c(_){if(r===n.length){if(!i)return f(_);if(i.currentConstruct&&i.currentConstruct.concrete)return h(_);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Axe,u,d)(_)}function u(_){return i&&y(),v(r),f(_)}function d(_){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,h(_)}function f(_){return t.containerState={},e.attempt(Axe,p,h)(_)}function p(_){return r++,n.push([t.currentConstruct,t.containerState]),f(_)}function h(_){if(_===null){i&&y(),v(0),e.consume(_);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:a,_tokenizer:i}),m(_)}function m(_){if(_===null){g(e.exit("chunkFlow"),!0),v(0),e.consume(_);return}return Ar(_)?(e.consume(_),g(e.exit("chunkFlow")),r=0,t.interrupt=void 0,s):(e.consume(_),m)}function g(_,S){const C=t.sliceStream(_);if(S&&C.push(null),_.previous=a,a&&(a.next=_),a=_,i.defineSkip(_.start),i.write(C),t.parser.lazy[_.start.line]){let w=i.events.length;for(;w--;)if(i.events[w][1].start.offset<o&&(!i.events[w][1].end||i.events[w][1].end.offset>o))return;const x=t.events.length;let T=x,A,I;for(;T--;)if(t.events[T][0]==="exit"&&t.events[T][1].type==="chunkFlow"){if(A){I=t.events[T][1].end;break}A=!0}for(v(r),w=x;w<t.events.length;)t.events[w][1].end=Object.assign({},I),w++;xf(t.events,T+1,0,t.events.slice(x)),t.events.length=w}}function v(_){let S=n.length;for(;S-- >_;){const C=n[S];t.containerState=C[1],C[0].exit.call(t,e)}n.length=_}function y(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function sEn(e,t,n){return la(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function xF(e){if(e===null||bo(e)||JE(e))return 1;if(dU(e))return 2}function fU(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}const toe={name:"attention",tokenize:cEn,resolveAll:lEn};function lEn(e,t){let n=-1,r,i,a,o,s,l,c,u;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d=Object.assign({},e[r][1].end),f=Object.assign({},e[n][1].start);Rxe(d,-l),Rxe(f,l),o={type:l>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[r][1].end)},s={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:f},a={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i={type:l>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},s.end)},e[r][1].end=Object.assign({},o.start),e[n][1].start=Object.assign({},s.end),c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=mp(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=mp(c,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),c=mp(c,fU(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=mp(c,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,c=mp(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):u=0,xf(e,r-1,n-r+3,c),n=r+c.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function cEn(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=xF(r);let a;return o;function o(l){return a=l,e.enter("attentionSequence"),s(l)}function s(l){if(l===a)return e.consume(l),s;const c=e.exit("attentionSequence"),u=xF(l),d=!u||u===2&&i||n.includes(l),f=!i||i===2&&u||n.includes(r);return c._open=!!(a===42?d:d&&(i||!f)),c._close=!!(a===42?f:f&&(u||!d)),t(l)}}function Rxe(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const uEn={name:"autolink",tokenize:dEn};function dEn(e,t,n){let r=0;return i;function i(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(p){return wu(p)?(e.consume(p),o):c(p)}function o(p){return p===43||p===45||p===46||Qc(p)?(r=1,s(p)):c(p)}function s(p){return p===58?(e.consume(p),r=0,l):(p===43||p===45||p===46||Qc(p))&&r++<32?(e.consume(p),s):(r=0,c(p))}function l(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||wF(p)?n(p):(e.consume(p),l)}function c(p){return p===64?(e.consume(p),u):eEn(p)?(e.consume(p),c):n(p)}function u(p){return Qc(p)?d(p):n(p)}function d(p){return p===46?(e.consume(p),r=0,u):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):f(p)}function f(p){if((p===45||Qc(p))&&r++<63){const h=p===45?f:d;return e.consume(p),h}return n(p)}}const t8={tokenize:fEn,partial:!0};function fEn(e,t,n){return r;function r(a){return ji(a)?la(e,i,"linePrefix")(a):i(a)}function i(a){return a===null||Ar(a)?t(a):n(a)}}const LQe={name:"blockQuote",tokenize:pEn,continuation:{tokenize:hEn},exit:mEn};function pEn(e,t,n){const r=this;return i;function i(o){if(o===62){const s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),a}return n(o)}function a(o){return ji(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function hEn(e,t,n){const r=this;return i;function i(o){return ji(o)?la(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):a(o)}function a(o){return e.attempt(LQe,t,n)(o)}}function mEn(e){e.exit("blockQuote")}const PQe={name:"characterEscape",tokenize:gEn};function gEn(e,t,n){return r;function r(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),i}function i(a){return nEn(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(a)}}const Nxe=document.createElement("i");function Wpe(e){const t="&"+e+";";Nxe.innerHTML=t;const n=Nxe.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}const kQe={name:"characterReference",tokenize:vEn};function vEn(e,t,n){const r=this;let i=0,a,o;return s;function s(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),l}function l(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),a=31,o=Qc,u(d))}function c(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,o=tEn,u):(e.enter("characterReferenceValue"),a=7,o=eoe,u(d))}function u(d){if(d===59&&i){const f=e.exit("characterReferenceValue");return o===Qc&&!Wpe(r.sliceSerialize(f))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(d)&&i++<a?(e.consume(d),u):n(d)}}const Oxe={tokenize:bEn,partial:!0},Lxe={name:"codeFenced",tokenize:yEn,concrete:!0};function yEn(e,t,n){const r=this,i={tokenize:C,partial:!0};let a=0,o=0,s;return l;function l(w){return c(w)}function c(w){const x=r.events[r.events.length-1];return a=x&&x[1].type==="linePrefix"?x[2].sliceSerialize(x[1],!0).length:0,s=w,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),u(w)}function u(w){return w===s?(o++,e.consume(w),u):o<3?n(w):(e.exit("codeFencedFenceSequence"),ji(w)?la(e,d,"whitespace")(w):d(w))}function d(w){return w===null||Ar(w)?(e.exit("codeFencedFence"),r.interrupt?t(w):e.check(Oxe,m,S)(w)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(w))}function f(w){return w===null||Ar(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(w)):ji(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),la(e,p,"whitespace")(w)):w===96&&w===s?n(w):(e.consume(w),f)}function p(w){return w===null||Ar(w)?d(w):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),h(w))}function h(w){return w===null||Ar(w)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(w)):w===96&&w===s?n(w):(e.consume(w),h)}function m(w){return e.attempt(i,S,g)(w)}function g(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),v}function v(w){return a>0&&ji(w)?la(e,y,"linePrefix",a+1)(w):y(w)}function y(w){return w===null||Ar(w)?e.check(Oxe,m,S)(w):(e.enter("codeFlowValue"),_(w))}function _(w){return w===null||Ar(w)?(e.exit("codeFlowValue"),y(w)):(e.consume(w),_)}function S(w){return e.exit("codeFenced"),t(w)}function C(w,x,T){let A=0;return I;function I($){return w.enter("lineEnding"),w.consume($),w.exit("lineEnding"),R}function R($){return w.enter("codeFencedFence"),ji($)?la(w,N,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)($):N($)}function N($){return $===s?(w.enter("codeFencedFenceSequence"),P($)):T($)}function P($){return $===s?(A++,w.consume($),P):A>=o?(w.exit("codeFencedFenceSequence"),ji($)?la(w,L,"whitespace")($):L($)):T($)}function L($){return $===null||Ar($)?(w.exit("codeFencedFence"),x($)):T($)}}}function bEn(e,t,n){const r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const DW={name:"codeIndented",tokenize:SEn},_En={tokenize:EEn,partial:!0};function SEn(e,t,n){const r=this;return i;function i(c){return e.enter("codeIndented"),la(e,a,"linePrefix",5)(c)}function a(c){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?o(c):n(c)}function o(c){return c===null?l(c):Ar(c)?e.attempt(_En,o,l)(c):(e.enter("codeFlowValue"),s(c))}function s(c){return c===null||Ar(c)?(e.exit("codeFlowValue"),o(c)):(e.consume(c),s)}function l(c){return e.exit("codeIndented"),t(c)}}function EEn(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):Ar(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):la(e,a,"linePrefix",5)(o)}function a(o){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):Ar(o)?i(o):n(o)}}const CEn={name:"codeText",tokenize:TEn,resolve:wEn,previous:xEn};function wEn(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function xEn(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function TEn(e,t,n){let r=0,i,a;return o;function o(d){return e.enter("codeText"),e.enter("codeTextSequence"),s(d)}function s(d){return d===96?(e.consume(d),r++,s):(e.exit("codeTextSequence"),l(d))}function l(d){return d===null?n(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),l):d===96?(a=e.enter("codeTextSequence"),i=0,u(d)):Ar(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),l):(e.enter("codeTextData"),c(d))}function c(d){return d===null||d===32||d===96||Ar(d)?(e.exit("codeTextData"),l(d)):(e.consume(d),c)}function u(d){return d===96?(e.consume(d),i++,u):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(a.type="codeTextData",c(d))}}function MQe(e){const t={};let n=-1,r,i,a,o,s,l,c;for(;++n<e.length;){for(;n in t;)n=t[n];if(r=e[n],n&&r[1].type==="chunkFlow"&&e[n-1][1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,a=0,a<l.length&&l[a][1].type==="lineEndingBlank"&&(a+=2),a<l.length&&l[a][1].type==="content"))for(;++a<l.length&&l[a][1].type!=="content";)l[a][1].type==="chunkText"&&(l[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,IEn(e,n)),n=t[n],c=!0);else if(r[1]._container){for(a=n,i=void 0;a--&&(o=e[a],o[1].type==="lineEnding"||o[1].type==="lineEndingBlank");)o[0]==="enter"&&(i&&(e[i][1].type="lineEndingBlank"),o[1].type="lineEnding",i=a);i&&(r[1].end=Object.assign({},e[i][1].start),s=e.slice(i,n),s.unshift(r),xf(e,i,n-i+1,s))}}return!c}function IEn(e,t){const n=e[t][1],r=e[t][2];let i=t-1;const a=[],o=n._tokenizer||r.parser[n.contentType](n.start),s=o.events,l=[],c={};let u,d,f=-1,p=n,h=0,m=0;const g=[m];for(;p;){for(;e[++i][1]!==p;);a.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)s[f][0]==="exit"&&s[f-1][0]==="enter"&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(m=f+1,g.push(m),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){const v=s.slice(g[f],g[f+1]),y=a.pop();l.unshift([y,y+v.length-1]),xf(e,y,2,v)}for(f=-1;++f<l.length;)c[h+l[f][0]]=h+l[f][1],h+=l[f][1]-l[f][0]-1;return c}const AEn={tokenize:OEn,resolve:NEn},REn={tokenize:LEn,partial:!0};function NEn(e){return MQe(e),e}function OEn(e,t){let n;return r;function r(s){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(s)}function i(s){return s===null?a(s):Ar(s)?e.check(REn,o,a)(s):(e.consume(s),i)}function a(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function o(s){return e.consume(s),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function LEn(e,t,n){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),la(e,a,"linePrefix")}function a(o){if(o===null||Ar(o))return n(o);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function DQe(e,t,n,r,i,a,o,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return d;function d(v){return v===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(v),e.exit(a),f):v===null||v===32||v===41||wF(v)?n(v):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),m(v))}function f(v){return v===62?(e.enter(a),e.consume(v),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(v))}function p(v){return v===62?(e.exit("chunkString"),e.exit(s),f(v)):v===null||v===60||Ar(v)?n(v):(e.consume(v),v===92?h:p)}function h(v){return v===60||v===62||v===92?(e.consume(v),p):p(v)}function m(v){return!u&&(v===null||v===41||bo(v))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(v)):u<c&&v===40?(e.consume(v),u++,m):v===41?(e.consume(v),u--,m):v===null||v===32||v===40||wF(v)?n(v):(e.consume(v),v===92?g:m)}function g(v){return v===40||v===41||v===92?(e.consume(v),m):m(v)}}function $Qe(e,t,n,r,i,a){const o=this;let s=0,l;return c;function c(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(a),u}function u(p){return s>999||p===null||p===91||p===93&&!l||p===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(p):p===93?(e.exit(a),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):Ar(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===null||p===91||p===93||Ar(p)||s++>999?(e.exit("chunkString"),u(p)):(e.consume(p),l||(l=!ji(p)),p===92?f:d)}function f(p){return p===91||p===92||p===93?(e.consume(p),s++,d):d(p)}}function FQe(e,t,n,r,i,a){let o;return s;function s(f){return f===34||f===39||f===40?(e.enter(r),e.enter(i),e.consume(f),e.exit(i),o=f===40?41:f,l):n(f)}function l(f){return f===o?(e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):(e.enter(a),c(f))}function c(f){return f===o?(e.exit(a),l(o)):f===null?n(f):Ar(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),la(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(f))}function u(f){return f===o||f===null||Ar(f)?(e.exit("chunkString"),c(f)):(e.consume(f),f===92?d:u)}function d(f){return f===o||f===92?(e.consume(f),u):u(f)}}function wR(e,t){let n;return r;function r(i){return Ar(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):ji(i)?la(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function im(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const PEn={name:"definition",tokenize:MEn},kEn={tokenize:DEn,partial:!0};function MEn(e,t,n){const r=this;let i;return a;function a(p){return e.enter("definition"),o(p)}function o(p){return $Qe.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function s(p){return i=im(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),l):n(p)}function l(p){return bo(p)?wR(e,c)(p):c(p)}function c(p){return DQe(e,u,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function u(p){return e.attempt(kEn,d,d)(p)}function d(p){return ji(p)?la(e,f,"whitespace")(p):f(p)}function f(p){return p===null||Ar(p)?(e.exit("definition"),r.parser.defined.push(i),t(p)):n(p)}}function DEn(e,t,n){return r;function r(s){return bo(s)?wR(e,i)(s):n(s)}function i(s){return FQe(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return ji(s)?la(e,o,"whitespace")(s):o(s)}function o(s){return s===null||Ar(s)?t(s):n(s)}}const $En={name:"hardBreakEscape",tokenize:FEn};function FEn(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return Ar(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const BEn={name:"headingAtx",tokenize:zEn,resolve:jEn};function jEn(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},xf(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function zEn(e,t,n){let r=0;return i;function i(u){return e.enter("atxHeading"),a(u)}function a(u){return e.enter("atxHeadingSequence"),o(u)}function o(u){return u===35&&r++<6?(e.consume(u),o):u===null||bo(u)?(e.exit("atxHeadingSequence"),s(u)):n(u)}function s(u){return u===35?(e.enter("atxHeadingSequence"),l(u)):u===null||Ar(u)?(e.exit("atxHeading"),t(u)):ji(u)?la(e,s,"whitespace")(u):(e.enter("atxHeadingText"),c(u))}function l(u){return u===35?(e.consume(u),l):(e.exit("atxHeadingSequence"),s(u))}function c(u){return u===null||u===35||bo(u)?(e.exit("atxHeadingText"),s(u)):(e.consume(u),c)}}const UEn=["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"],Pxe=["pre","script","style","textarea"],HEn={name:"htmlFlow",tokenize:WEn,resolveTo:qEn,concrete:!0},VEn={tokenize:KEn,partial:!0},GEn={tokenize:YEn,partial:!0};function qEn(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 WEn(e,t,n){const r=this;let i,a,o,s,l;return c;function c(F){return u(F)}function u(F){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(F),d}function d(F){return F===33?(e.consume(F),f):F===47?(e.consume(F),a=!0,m):F===63?(e.consume(F),i=3,r.interrupt?t:M):wu(F)?(e.consume(F),o=String.fromCharCode(F),g):n(F)}function f(F){return F===45?(e.consume(F),i=2,p):F===91?(e.consume(F),i=5,s=0,h):wu(F)?(e.consume(F),i=4,r.interrupt?t:M):n(F)}function p(F){return F===45?(e.consume(F),r.interrupt?t:M):n(F)}function h(F){const G="CDATA[";return F===G.charCodeAt(s++)?(e.consume(F),s===G.length?r.interrupt?t:N:h):n(F)}function m(F){return wu(F)?(e.consume(F),o=String.fromCharCode(F),g):n(F)}function g(F){if(F===null||F===47||F===62||bo(F)){const G=F===47,q=o.toLowerCase();return!G&&!a&&Pxe.includes(q)?(i=1,r.interrupt?t(F):N(F)):UEn.includes(o.toLowerCase())?(i=6,G?(e.consume(F),v):r.interrupt?t(F):N(F)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(F):a?y(F):_(F))}return F===45||Qc(F)?(e.consume(F),o+=String.fromCharCode(F),g):n(F)}function v(F){return F===62?(e.consume(F),r.interrupt?t:N):n(F)}function y(F){return ji(F)?(e.consume(F),y):I(F)}function _(F){return F===47?(e.consume(F),I):F===58||F===95||wu(F)?(e.consume(F),S):ji(F)?(e.consume(F),_):I(F)}function S(F){return F===45||F===46||F===58||F===95||Qc(F)?(e.consume(F),S):C(F)}function C(F){return F===61?(e.consume(F),w):ji(F)?(e.consume(F),C):_(F)}function w(F){return F===null||F===60||F===61||F===62||F===96?n(F):F===34||F===39?(e.consume(F),l=F,x):ji(F)?(e.consume(F),w):T(F)}function x(F){return F===l?(e.consume(F),l=null,A):F===null||Ar(F)?n(F):(e.consume(F),x)}function T(F){return F===null||F===34||F===39||F===47||F===60||F===61||F===62||F===96||bo(F)?C(F):(e.consume(F),T)}function A(F){return F===47||F===62||ji(F)?_(F):n(F)}function I(F){return F===62?(e.consume(F),R):n(F)}function R(F){return F===null||Ar(F)?N(F):ji(F)?(e.consume(F),R):n(F)}function N(F){return F===45&&i===2?(e.consume(F),D):F===60&&i===1?(e.consume(F),z):F===62&&i===4?(e.consume(F),B):F===63&&i===3?(e.consume(F),M):F===93&&i===5?(e.consume(F),H):Ar(F)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(VEn,k,P)(F)):F===null||Ar(F)?(e.exit("htmlFlowData"),P(F)):(e.consume(F),N)}function P(F){return e.check(GEn,L,k)(F)}function L(F){return e.enter("lineEnding"),e.consume(F),e.exit("lineEnding"),$}function $(F){return F===null||Ar(F)?P(F):(e.enter("htmlFlowData"),N(F))}function D(F){return F===45?(e.consume(F),M):N(F)}function z(F){return F===47?(e.consume(F),o="",U):N(F)}function U(F){if(F===62){const G=o.toLowerCase();return Pxe.includes(G)?(e.consume(F),B):N(F)}return wu(F)&&o.length<8?(e.consume(F),o+=String.fromCharCode(F),U):N(F)}function H(F){return F===93?(e.consume(F),M):N(F)}function M(F){return F===62?(e.consume(F),B):F===45&&i===2?(e.consume(F),M):N(F)}function B(F){return F===null||Ar(F)?(e.exit("htmlFlowData"),k(F)):(e.consume(F),B)}function k(F){return e.exit("htmlFlow"),t(F)}}function YEn(e,t,n){const r=this;return i;function i(o){return Ar(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):n(o)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function KEn(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(t8,t,n)}}const XEn={name:"htmlText",tokenize:ZEn};function ZEn(e,t,n){const r=this;let i,a,o;return s;function s(M){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(M),l}function l(M){return M===33?(e.consume(M),c):M===47?(e.consume(M),C):M===63?(e.consume(M),_):wu(M)?(e.consume(M),T):n(M)}function c(M){return M===45?(e.consume(M),u):M===91?(e.consume(M),a=0,h):wu(M)?(e.consume(M),y):n(M)}function u(M){return M===45?(e.consume(M),p):n(M)}function d(M){return M===null?n(M):M===45?(e.consume(M),f):Ar(M)?(o=d,z(M)):(e.consume(M),d)}function f(M){return M===45?(e.consume(M),p):d(M)}function p(M){return M===62?D(M):M===45?f(M):d(M)}function h(M){const B="CDATA[";return M===B.charCodeAt(a++)?(e.consume(M),a===B.length?m:h):n(M)}function m(M){return M===null?n(M):M===93?(e.consume(M),g):Ar(M)?(o=m,z(M)):(e.consume(M),m)}function g(M){return M===93?(e.consume(M),v):m(M)}function v(M){return M===62?D(M):M===93?(e.consume(M),v):m(M)}function y(M){return M===null||M===62?D(M):Ar(M)?(o=y,z(M)):(e.consume(M),y)}function _(M){return M===null?n(M):M===63?(e.consume(M),S):Ar(M)?(o=_,z(M)):(e.consume(M),_)}function S(M){return M===62?D(M):_(M)}function C(M){return wu(M)?(e.consume(M),w):n(M)}function w(M){return M===45||Qc(M)?(e.consume(M),w):x(M)}function x(M){return Ar(M)?(o=x,z(M)):ji(M)?(e.consume(M),x):D(M)}function T(M){return M===45||Qc(M)?(e.consume(M),T):M===47||M===62||bo(M)?A(M):n(M)}function A(M){return M===47?(e.consume(M),D):M===58||M===95||wu(M)?(e.consume(M),I):Ar(M)?(o=A,z(M)):ji(M)?(e.consume(M),A):D(M)}function I(M){return M===45||M===46||M===58||M===95||Qc(M)?(e.consume(M),I):R(M)}function R(M){return M===61?(e.consume(M),N):Ar(M)?(o=R,z(M)):ji(M)?(e.consume(M),R):A(M)}function N(M){return M===null||M===60||M===61||M===62||M===96?n(M):M===34||M===39?(e.consume(M),i=M,P):Ar(M)?(o=N,z(M)):ji(M)?(e.consume(M),N):(e.consume(M),L)}function P(M){return M===i?(e.consume(M),i=void 0,$):M===null?n(M):Ar(M)?(o=P,z(M)):(e.consume(M),P)}function L(M){return M===null||M===34||M===39||M===60||M===61||M===96?n(M):M===47||M===62||bo(M)?A(M):(e.consume(M),L)}function $(M){return M===47||M===62||bo(M)?A(M):n(M)}function D(M){return M===62?(e.consume(M),e.exit("htmlTextData"),e.exit("htmlText"),t):n(M)}function z(M){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),U}function U(M){return ji(M)?la(e,H,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(M):H(M)}function H(M){return e.enter("htmlTextData"),o(M)}}const Ype={name:"labelEnd",tokenize:rCn,resolveTo:nCn,resolveAll:tCn},QEn={tokenize:iCn},JEn={tokenize:aCn},eCn={tokenize:oCn};function tCn(e){let t=-1;for(;++t<e.length;){const n=e[t][1];(n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd")&&(e.splice(t+1,n.type==="labelImage"?4:2),n.type="data",t++)}return e}function nCn(e,t){let n=e.length,r=0,i,a,o,s;for(;n--;)if(i=e[n][1],a){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(a=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=n);const l={type:e[a][1].type==="labelLink"?"link":"image",start:Object.assign({},e[a][1].start),end:Object.assign({},e[e.length-1][1].end)},c={type:"label",start:Object.assign({},e[a][1].start),end:Object.assign({},e[o][1].end)},u={type:"labelText",start:Object.assign({},e[a+r+2][1].end),end:Object.assign({},e[o-2][1].start)};return s=[["enter",l,t],["enter",c,t]],s=mp(s,e.slice(a+1,a+r+3)),s=mp(s,[["enter",u,t]]),s=mp(s,fU(t.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),t)),s=mp(s,[["exit",u,t],e[o-2],e[o-1],["exit",c,t]]),s=mp(s,e.slice(o+1)),s=mp(s,[["exit",l,t]]),xf(e,a,e.length,s),e}function rCn(e,t,n){const r=this;let i=r.events.length,a,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){a=r.events[i][1];break}return s;function s(f){return a?a._inactive?d(f):(o=r.parser.defined.includes(im(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),l):n(f)}function l(f){return f===40?e.attempt(QEn,u,o?u:d)(f):f===91?e.attempt(JEn,u,o?c:d)(f):o?u(f):d(f)}function c(f){return e.attempt(eCn,u,d)(f)}function u(f){return t(f)}function d(f){return a._balanced=!0,n(f)}}function iCn(e,t,n){return r;function r(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),i}function i(d){return bo(d)?wR(e,a)(d):a(d)}function a(d){return d===41?u(d):DQe(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function o(d){return bo(d)?wR(e,l)(d):u(d)}function s(d){return n(d)}function l(d){return d===34||d===39||d===40?FQe(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):u(d)}function c(d){return bo(d)?wR(e,u)(d):u(d)}function u(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function aCn(e,t,n){const r=this;return i;function i(s){return $Qe.call(r,e,a,o,"reference","referenceMarker","referenceString")(s)}function a(s){return r.parser.defined.includes(im(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function o(s){return n(s)}}function oCn(e,t,n){return r;function r(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),i}function i(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):n(a)}}const sCn={name:"labelStartImage",tokenize:lCn,resolveAll:Ype.resolveAll};function lCn(e,t,n){const r=this;return i;function i(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),a}function a(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),o):n(s)}function o(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const cCn={name:"labelStartLink",tokenize:uCn,resolveAll:Ype.resolveAll};function uCn(e,t,n){const r=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),a}function a(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const $W={name:"lineEnding",tokenize:dCn};function dCn(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),la(e,t,"linePrefix")}}const NM={name:"thematicBreak",tokenize:fCn};function fCn(e,t,n){let r=0,i;return a;function a(c){return e.enter("thematicBreak"),o(c)}function o(c){return i=c,s(c)}function s(c){return c===i?(e.enter("thematicBreakSequence"),l(c)):r>=3&&(c===null||Ar(c))?(e.exit("thematicBreak"),t(c)):n(c)}function l(c){return c===i?(e.consume(c),r++,l):(e.exit("thematicBreakSequence"),ji(c)?la(e,s,"whitespace")(c):s(c))}}const rd={name:"list",tokenize:mCn,continuation:{tokenize:gCn},exit:yCn},pCn={tokenize:bCn,partial:!0},hCn={tokenize:vCn,partial:!0};function mCn(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(p){const h=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(h==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:eoe(p)){if(r.containerState.type||(r.containerState.type=h,e.enter(h,{_container:!0})),h==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(NM,n,c)(p):c(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(p)}return n(p)}function l(p){return eoe(p)&&++o<10?(e.consume(p),l):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),c(p)):n(p)}function c(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(t8,r.interrupt?n:u,e.attempt(pCn,f,d))}function u(p){return r.containerState.initialBlankLine=!0,a++,f(p)}function d(p){return ji(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),f):n(p)}function f(p){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function gCn(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(t8,i,a);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,la(e,t,"listItemIndent",r.containerState.size+1)(s)}function a(s){return r.containerState.furtherBlankLines||!ji(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(hCn,t,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,la(e,e.attempt(rd,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function vCn(e,t,n){const r=this;return la(e,i,"listItemIndent",r.containerState.size+1);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(a):n(a)}}function yCn(e){e.exit(this.containerState.type)}function bCn(e,t,n){const r=this;return la(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const o=r.events[r.events.length-1];return!ji(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const kxe={name:"setextUnderline",tokenize:SCn,resolveTo:_Cn};function _Cn(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const o={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",o,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[a][1].end)):e[r][1]=o,e.push(["exit",o,t]),e}function SCn(e,t,n){const r=this;let i;return a;function a(c){let u=r.events.length,d;for(;u--;)if(r.events[u][1].type!=="lineEnding"&&r.events[u][1].type!=="linePrefix"&&r.events[u][1].type!=="content"){d=r.events[u][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=c,o(c)):n(c)}function o(c){return e.enter("setextHeadingLineSequence"),s(c)}function s(c){return c===i?(e.consume(c),s):(e.exit("setextHeadingLineSequence"),ji(c)?la(e,l,"lineSuffix")(c):l(c))}function l(c){return c===null||Ar(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const ECn={tokenize:CCn};function CCn(e){const t=this,n=e.attempt(t8,r,e.attempt(this.parser.constructs.flowInitial,i,la(e,e.attempt(this.parser.constructs.flow,i,e.attempt(AEn,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const wCn={resolveAll:jQe()},xCn=BQe("string"),TCn=BQe("text");function BQe(e){return{tokenize:t,resolveAll:jQe(e==="text"?ICn:void 0)};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,o,s);return o;function o(u){return c(u)?a(u):s(u)}function s(u){if(u===null){n.consume(u);return}return n.enter("data"),n.consume(u),l}function l(u){return c(u)?(n.exit("data"),a(u)):(n.consume(u),l)}function c(u){if(u===null)return!0;const d=i[u];let f=-1;if(d)for(;++f<d.length;){const p=d[f];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function jQe(e){return t;function t(n,r){let i=-1,a;for(;++i<=n.length;)a===void 0?n[i]&&n[i][1].type==="data"&&(a=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==a+2&&(n[a][1].end=n[i-1][1].end,n.splice(a+2,i-a-2),i=a+2),a=void 0);return e?e(n,r):n}}function ICn(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 r=e[n-1][1],i=t.sliceStream(r);let a=i.length,o=-1,s=0,l;for(;a--;){const c=i[a];if(typeof c=="string"){for(o=c.length;c.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(c===-2)l=!0,s++;else if(c!==-1){a++;break}}if(s){const c={type:n===e.length||l||s<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-s,offset:r.end.offset-s,_index:r.start._index+a,_bufferIndex:a?o:r.start._bufferIndex+o},end:Object.assign({},r.end)};r.end=Object.assign({},c.start),r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}function ACn(e,t,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},a=[];let o=[],s=[];const l={consume:y,enter:_,exit:S,attempt:x(C),check:x(w),interrupt:x(w,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:p,sliceSerialize:f,now:h,defineSkip:m,write:d};let u=t.tokenize.call(c,l);return t.resolveAll&&a.push(t),c;function d(R){return o=mp(o,R),g(),o[o.length-1]!==null?[]:(T(t,0),c.events=fU(a,c.events,c),c.events)}function f(R,N){return NCn(p(R),N)}function p(R){return RCn(o,R)}function h(){const{line:R,column:N,offset:P,_index:L,_bufferIndex:$}=r;return{line:R,column:N,offset:P,_index:L,_bufferIndex:$}}function m(R){i[R.line]=R.column,I()}function g(){let R;for(;r._index<o.length;){const N=o[r._index];if(typeof N=="string")for(R=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===R&&r._bufferIndex<N.length;)v(N.charCodeAt(r._bufferIndex));else v(N)}}function v(R){u=u(R)}function y(R){Ar(R)?(r.line++,r.column=1,r.offset+=R===-3?2:1,I()):R!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=R}function _(R,N){const P=N||{};return P.type=R,P.start=h(),c.events.push(["enter",P,c]),s.push(P),P}function S(R){const N=s.pop();return N.end=h(),c.events.push(["exit",N,c]),N}function C(R,N){T(R,N.from)}function w(R,N){N.restore()}function x(R,N){return P;function P(L,$,D){let z,U,H,M;return Array.isArray(L)?k(L):"tokenize"in L?k([L]):B(L);function B(W){return K;function K(J){const te=J!==null&&W[J],ae=J!==null&&W.null,re=[...Array.isArray(te)?te:te?[te]:[],...Array.isArray(ae)?ae:ae?[ae]:[]];return k(re)(J)}}function k(W){return z=W,U=0,W.length===0?D:F(W[U])}function F(W){return K;function K(J){return M=A(),H=W,W.partial||(c.currentConstruct=W),W.name&&c.parser.constructs.disable.null.includes(W.name)?q():W.tokenize.call(N?Object.assign(Object.create(c),N):c,l,G,q)(J)}}function G(W){return R(H,M),$}function q(W){return M.restore(),++U<z.length?F(z[U]):D}}}function T(R,N){R.resolveAll&&!a.includes(R)&&a.push(R),R.resolve&&xf(c.events,N,c.events.length-N,R.resolve(c.events.slice(N),c)),R.resolveTo&&(c.events=R.resolveTo(c.events,c))}function A(){const R=h(),N=c.previous,P=c.currentConstruct,L=c.events.length,$=Array.from(s);return{restore:D,from:L};function D(){r=R,c.previous=N,c.currentConstruct=P,c.events.length=L,s=$,I()}}function I(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function RCn(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex;let o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){const s=o[0];typeof s=="string"?o[0]=s.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function NCn(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const a=e[n];let o;if(typeof a=="string")o=a;else switch(a){case-5:{o="\r";break}case-4:{o=`
`;break}case-3:{o=`\r
`;break}case-2:{o=t?" ":"	";break}case-1:{if(!t&&i)continue;o=" ";break}default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join("")}const OCn={42:rd,43:rd,45:rd,48:rd,49:rd,50:rd,51:rd,52:rd,53:rd,54:rd,55:rd,56:rd,57:rd,62:LQe},LCn={91:PEn},PCn={[-2]:DW,[-1]:DW,32:DW},kCn={35:BEn,42:NM,45:[kxe,NM],60:HEn,61:kxe,95:NM,96:Lxe,126:Lxe},MCn={38:kQe,92:PQe},DCn={[-5]:$W,[-4]:$W,[-3]:$W,33:sCn,38:kQe,42:toe,60:[uEn,XEn],91:cCn,92:[$En,PQe],93:Ype,95:toe,96:CEn},$Cn={null:[toe,wCn]},FCn={null:[42,95]},BCn={null:[]},jCn=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:FCn,contentInitial:LCn,disable:BCn,document:OCn,flow:kCn,flowInitial:PCn,insideSpan:$Cn,string:MCn,text:DCn},Symbol.toStringTag,{value:"Module"}));function zCn(e){const n=OQe([jCn,...(e||{}).extensions||[]]),r={defined:[],lazy:{},constructs:n,content:i(rEn),document:i(aEn),flow:i(ECn),string:i(xCn),text:i(TCn)};return r;function i(a){return o;function o(s){return ACn(r,a,s)}}}const Mxe=/[\0\t\n\r]/g;function UCn(){let e=1,t="",n=!0,r;return i;function i(a,o,s){const l=[];let c,u,d,f,p;for(a=t+a.toString(o),d=0,t="",n&&(a.charCodeAt(0)===65279&&d++,n=void 0);d<a.length;){if(Mxe.lastIndex=d,c=Mxe.exec(a),f=c&&c.index!==void 0?c.index:a.length,p=a.charCodeAt(f),!c){t=a.slice(d);break}if(p===10&&d===f&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),d<f&&(l.push(a.slice(d,f)),e+=f-d),p){case 0:{l.push(65533),e++;break}case 9:{for(u=Math.ceil(e/4)*4,l.push(-2);e++<u;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}d=f+1}return s&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}function HCn(e){for(;!MQe(e););return e}function zQe(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.fromCharCode(n)}const VCn=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function UQe(e){return e.replace(VCn,GCn)}function GCn(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),a=i===120||i===88;return zQe(n.slice(a?2:1),a?16:10)}return Wpe(n)||e}const HQe={}.hasOwnProperty,qCn=function(e,t,n){return typeof t!="string"&&(n=t,t=void 0),WCn(n)(HCn(zCn(n).document().write(UCn()(e,t,!0))))};function WCn(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(ye),autolinkProtocol:R,autolinkEmail:R,atxHeading:s(oe),blockQuote:s(re),characterEscape:R,characterReference:R,codeFenced:s(ue),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:s(ue,l),codeText:s(de,l),codeTextData:R,data:R,codeFlowValue:R,definition:s(fe),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:s(ge),hardBreakEscape:s(Ee),hardBreakTrailing:s(Ee),htmlFlow:s(ce,l),htmlFlowData:R,htmlText:s(ce,l),htmlTextData:R,image:s(he),label:l,link:s(ye),listItem:s(_e),listItemValue:h,listOrdered:s(me,p),listUnordered:s(me),paragraph:s(Te),reference:q,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:s(oe),strong:s(xe),thematicBreak:s(Pe)},exit:{atxHeading:u(),atxHeadingSequence:x,autolink:u(),autolinkEmail:ae,autolinkProtocol:te,blockQuote:u(),characterEscapeValue:N,characterReferenceMarkerHexadecimal:K,characterReferenceMarkerNumeric:K,characterReferenceValue:J,codeFenced:u(y),codeFencedFence:v,codeFencedFenceInfo:m,codeFencedFenceMeta:g,codeFlowValue:N,codeIndented:u(_),codeText:u(z),codeTextData:N,data:N,definition:u(),definitionDestinationString:w,definitionLabelString:S,definitionTitleString:C,emphasis:u(),hardBreakEscape:u(L),hardBreakTrailing:u(L),htmlFlow:u($),htmlFlowData:N,htmlText:u(D),htmlTextData:N,image:u(H),label:B,labelText:M,lineEnding:P,link:u(U),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:W,resourceDestinationString:k,resourceTitleString:F,resource:G,setextHeading:u(I),setextHeadingLineSequence:A,setextHeadingText:T,strong:u(),thematicBreak:u()}};VQe(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(Le){let ze={type:"root",children:[]};const Be={stack:[ze],tokenStack:[],config:t,enter:c,exit:d,buffer:l,resume:f,setData:a,getData:o},je=[];let Ye=-1;for(;++Ye<Le.length;)if(Le[Ye][1].type==="listOrdered"||Le[Ye][1].type==="listUnordered")if(Le[Ye][0]==="enter")je.push(Ye);else{const Ze=je.pop();Ye=i(Le,Ze,Ye)}for(Ye=-1;++Ye<Le.length;){const Ze=t[Le[Ye][0]];HQe.call(Ze,Le[Ye][1].type)&&Ze[Le[Ye][1].type].call(Object.assign({sliceSerialize:Le[Ye][2].sliceSerialize},Be),Le[Ye][1])}if(Be.tokenStack.length>0){const Ze=Be.tokenStack[Be.tokenStack.length-1];(Ze[1]||Dxe).call(Be,void 0,Ze[0])}for(ze.position={start:cy(Le.length>0?Le[0][1].start:{line:1,column:1,offset:0}),end:cy(Le.length>0?Le[Le.length-2][1].end:{line:1,column:1,offset:0})},Ye=-1;++Ye<t.transforms.length;)ze=t.transforms[Ye](ze)||ze;return ze}function i(Le,ze,Be){let je=ze-1,Ye=-1,Ze=!1,Ke,qe,nt,Qe;for(;++je<=Be;){const it=Le[je];if(it[1].type==="listUnordered"||it[1].type==="listOrdered"||it[1].type==="blockQuote"?(it[0]==="enter"?Ye++:Ye--,Qe=void 0):it[1].type==="lineEndingBlank"?it[0]==="enter"&&(Ke&&!Qe&&!Ye&&!nt&&(nt=je),Qe=void 0):it[1].type==="linePrefix"||it[1].type==="listItemValue"||it[1].type==="listItemMarker"||it[1].type==="listItemPrefix"||it[1].type==="listItemPrefixWhitespace"||(Qe=void 0),!Ye&&it[0]==="enter"&&it[1].type==="listItemPrefix"||Ye===-1&&it[0]==="exit"&&(it[1].type==="listUnordered"||it[1].type==="listOrdered")){if(Ke){let yt=je;for(qe=void 0;yt--;){const Wt=Le[yt];if(Wt[1].type==="lineEnding"||Wt[1].type==="lineEndingBlank"){if(Wt[0]==="exit")continue;qe&&(Le[qe][1].type="lineEndingBlank",Ze=!0),Wt[1].type="lineEnding",qe=yt}else if(!(Wt[1].type==="linePrefix"||Wt[1].type==="blockQuotePrefix"||Wt[1].type==="blockQuotePrefixWhitespace"||Wt[1].type==="blockQuoteMarker"||Wt[1].type==="listItemIndent"))break}nt&&(!qe||nt<qe)&&(Ke._spread=!0),Ke.end=Object.assign({},qe?Le[qe][1].start:it[1].end),Le.splice(qe||je,0,["exit",Ke,it[2]]),je++,Be++}it[1].type==="listItemPrefix"&&(Ke={type:"listItem",_spread:!1,start:Object.assign({},it[1].start),end:void 0},Le.splice(je,0,["enter",Ke,it[2]]),je++,Be++,nt=void 0,Qe=!0)}}return Le[ze][1]._spread=Ze,Be}function a(Le,ze){n[Le]=ze}function o(Le){return n[Le]}function s(Le,ze){return Be;function Be(je){c.call(this,Le(je),je),ze&&ze.call(this,je)}}function l(){this.stack.push({type:"fragment",children:[]})}function c(Le,ze,Be){return this.stack[this.stack.length-1].children.push(Le),this.stack.push(Le),this.tokenStack.push([ze,Be]),Le.position={start:cy(ze.start)},Le}function u(Le){return ze;function ze(Be){Le&&Le.call(this,Be),d.call(this,Be)}}function d(Le,ze){const Be=this.stack.pop(),je=this.tokenStack.pop();if(je)je[0].type!==Le.type&&(ze?ze.call(this,Le,je[0]):(je[1]||Dxe).call(this,Le,je[0]));else throw new Error("Cannot close `"+Le.type+"` ("+CR({start:Le.start,end:Le.end})+"): it’s not open");return Be.position.end=cy(Le.end),Be}function f(){return KSn(this.stack.pop())}function p(){a("expectingFirstListItemValue",!0)}function h(Le){if(o("expectingFirstListItemValue")){const ze=this.stack[this.stack.length-2];ze.start=Number.parseInt(this.sliceSerialize(Le),10),a("expectingFirstListItemValue")}}function m(){const Le=this.resume(),ze=this.stack[this.stack.length-1];ze.lang=Le}function g(){const Le=this.resume(),ze=this.stack[this.stack.length-1];ze.meta=Le}function v(){o("flowCodeInside")||(this.buffer(),a("flowCodeInside",!0))}function y(){const Le=this.resume(),ze=this.stack[this.stack.length-1];ze.value=Le.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),a("flowCodeInside")}function _(){const Le=this.resume(),ze=this.stack[this.stack.length-1];ze.value=Le.replace(/(\r?\n|\r)$/g,"")}function S(Le){const ze=this.resume(),Be=this.stack[this.stack.length-1];Be.label=ze,Be.identifier=im(this.sliceSerialize(Le)).toLowerCase()}function C(){const Le=this.resume(),ze=this.stack[this.stack.length-1];ze.title=Le}function w(){const Le=this.resume(),ze=this.stack[this.stack.length-1];ze.url=Le}function x(Le){const ze=this.stack[this.stack.length-1];if(!ze.depth){const Be=this.sliceSerialize(Le).length;ze.depth=Be}}function T(){a("setextHeadingSlurpLineEnding",!0)}function A(Le){const ze=this.stack[this.stack.length-1];ze.depth=this.sliceSerialize(Le).charCodeAt(0)===61?1:2}function I(){a("setextHeadingSlurpLineEnding")}function R(Le){const ze=this.stack[this.stack.length-1];let Be=ze.children[ze.children.length-1];(!Be||Be.type!=="text")&&(Be=De(),Be.position={start:cy(Le.start)},ze.children.push(Be)),this.stack.push(Be)}function N(Le){const ze=this.stack.pop();ze.value+=this.sliceSerialize(Le),ze.position.end=cy(Le.end)}function P(Le){const ze=this.stack[this.stack.length-1];if(o("atHardBreak")){const Be=ze.children[ze.children.length-1];Be.position.end=cy(Le.end),a("atHardBreak");return}!o("setextHeadingSlurpLineEnding")&&t.canContainEols.includes(ze.type)&&(R.call(this,Le),N.call(this,Le))}function L(){a("atHardBreak",!0)}function $(){const Le=this.resume(),ze=this.stack[this.stack.length-1];ze.value=Le}function D(){const Le=this.resume(),ze=this.stack[this.stack.length-1];ze.value=Le}function z(){const Le=this.resume(),ze=this.stack[this.stack.length-1];ze.value=Le}function U(){const Le=this.stack[this.stack.length-1];if(o("inReference")){const ze=o("referenceType")||"shortcut";Le.type+="Reference",Le.referenceType=ze,delete Le.url,delete Le.title}else delete Le.identifier,delete Le.label;a("referenceType")}function H(){const Le=this.stack[this.stack.length-1];if(o("inReference")){const ze=o("referenceType")||"shortcut";Le.type+="Reference",Le.referenceType=ze,delete Le.url,delete Le.title}else delete Le.identifier,delete Le.label;a("referenceType")}function M(Le){const ze=this.sliceSerialize(Le),Be=this.stack[this.stack.length-2];Be.label=UQe(ze),Be.identifier=im(ze).toLowerCase()}function B(){const Le=this.stack[this.stack.length-1],ze=this.resume(),Be=this.stack[this.stack.length-1];if(a("inReference",!0),Be.type==="link"){const je=Le.children;Be.children=je}else Be.alt=ze}function k(){const Le=this.resume(),ze=this.stack[this.stack.length-1];ze.url=Le}function F(){const Le=this.resume(),ze=this.stack[this.stack.length-1];ze.title=Le}function G(){a("inReference")}function q(){a("referenceType","collapsed")}function W(Le){const ze=this.resume(),Be=this.stack[this.stack.length-1];Be.label=ze,Be.identifier=im(this.sliceSerialize(Le)).toLowerCase(),a("referenceType","full")}function K(Le){a("characterReferenceType",Le.type)}function J(Le){const ze=this.sliceSerialize(Le),Be=o("characterReferenceType");let je;Be?(je=zQe(ze,Be==="characterReferenceMarkerNumeric"?10:16),a("characterReferenceType")):je=Wpe(ze);const Ye=this.stack.pop();Ye.value+=je,Ye.position.end=cy(Le.end)}function te(Le){N.call(this,Le);const ze=this.stack[this.stack.length-1];ze.url=this.sliceSerialize(Le)}function ae(Le){N.call(this,Le);const ze=this.stack[this.stack.length-1];ze.url="mailto:"+this.sliceSerialize(Le)}function re(){return{type:"blockquote",children:[]}}function ue(){return{type:"code",lang:null,meta:null,value:""}}function de(){return{type:"inlineCode",value:""}}function fe(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ge(){return{type:"emphasis",children:[]}}function oe(){return{type:"heading",depth:void 0,children:[]}}function Ee(){return{type:"break"}}function ce(){return{type:"html",value:""}}function he(){return{type:"image",title:null,url:"",alt:null}}function ye(){return{type:"link",title:null,url:"",children:[]}}function me(Le){return{type:"list",ordered:Le.type==="listOrdered",start:null,spread:Le._spread,children:[]}}function _e(Le){return{type:"listItem",spread:Le._spread,checked:null,children:[]}}function Te(){return{type:"paragraph",children:[]}}function xe(){return{type:"strong",children:[]}}function De(){return{type:"text",value:""}}function Pe(){return{type:"thematicBreak"}}}function cy(e){return{line:e.line,column:e.column,offset:e.offset}}function VQe(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?VQe(e,r):YCn(e,r)}}function YCn(e,t){let n;for(n in t)if(HQe.call(t,n)){if(n==="canContainEols"){const r=t[n];r&&e[n].push(...r)}else if(n==="transforms"){const r=t[n];r&&e[n].push(...r)}else if(n==="enter"||n==="exit"){const r=t[n];r&&Object.assign(e[n],r)}}}function Dxe(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+CR({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+CR({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+CR({start:t.start,end:t.end})+") is still open")}function KCn(e){Object.assign(this,{Parser:n=>{const r=this.data("settings");return qCn(n,Object.assign({},r,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function XCn(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 ZCn(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
`}]}function QCn(e,t){const n=t.value?t.value+`
`:"",r=t.lang?t.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,i={};r&&(i.className=["language-"+r]);let a={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function JCn(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function ewn(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function zT(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const a=e.charCodeAt(n);let o="";if(a===37&&Qc(e.charCodeAt(n+1))&&Qc(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){const s=e.charCodeAt(n+1);a<56320&&s>56319&&s<57344?(o=String.fromCharCode(a,s),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function GQe(e,t){const n=String(t.identifier).toUpperCase(),r=zT(n.toLowerCase()),i=e.footnoteOrder.indexOf(n);let a;i===-1?(e.footnoteOrder.push(n),e.footnoteCounts[n]=1,a=e.footnoteOrder.length):(e.footnoteCounts[n]++,a=i+1);const o=e.footnoteCounts[n],s={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+r,id:e.clobberPrefix+"fnref-"+r+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,s);const l={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,l),e.applyData(t,l)}function twn(e,t){const n=e.footnoteById;let r=1;for(;r in n;)r++;const i=String(r);return n[i]={type:"footnoteDefinition",identifier:i,children:[{type:"paragraph",children:t.children}],position:t.position},GQe(e,{type:"footnoteReference",identifier:i,position:t.position})}function nwn(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 rwn(e,t){if(e.dangerous){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}return null}function qQe(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return{type:"text",value:"!["+t.alt+r};const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function iwn(e,t){const n=e.definition(t.identifier);if(!n)return qQe(e,t);const r={src:zT(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(r.title=n.title);const i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,i),e.applyData(t,i)}function awn(e,t){const n={src:zT(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 r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function own(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function swn(e,t){const n=e.definition(t.identifier);if(!n)return qQe(e,t);const r={href:zT(n.url||"")};n.title!==null&&n.title!==void 0&&(r.title=n.title);const i={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function lwn(e,t){const n={href:zT(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function cwn(e,t,n){const r=e.all(t),i=n?uwn(n):WQe(t),a={},o=[];if(typeof t.checked=="boolean"){const u=r[0];let d;u&&u.type==="element"&&u.tagName==="p"?d=u:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const u=r[s];(i||s!==0||u.type!=="element"||u.tagName!=="p")&&o.push({type:"text",value:`
`}),u.type==="element"&&u.tagName==="p"&&!i?o.push(...u.children):o.push(u)}const l=r[r.length-1];l&&(i||l.type!=="element"||l.tagName!=="p")&&o.push({type:"text",value:`
`});const c={type:"element",tagName:"li",properties:a,children:o};return e.patch(t,c),e.applyData(t,c)}function uwn(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=WQe(n[r])}return t}function WQe(e){const t=e.spread;return t??e.children.length>1}function dwn(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const o=r[i];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.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(r,!0)};return e.patch(t,a),e.applyData(t,a)}function fwn(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function pwn(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function hwn(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Kpe=YQe("start"),Xpe=YQe("end");function mwn(e){return{start:Kpe(e),end:Xpe(e)}}function YQe(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};return{line:r.line||null,column:r.column||null,offset:r.offset>-1?r.offset:null}}}function gwn(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],o),i.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=Kpe(t.children[1]),l=Xpe(t.children[t.children.length-1]);s.line&&l.line&&(o.position={start:s,end:l}),i.push(o)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function vwn(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,s=o?o.length:t.children.length;let l=-1;const c=[];for(;++l<s;){const d=t.children[l],f={},p=o?o[l]:void 0;p&&(f.align=p);let h={type:"element",tagName:a,properties:f,children:[]};d&&(h.children=e.all(d),e.patch(d,h),h=e.applyData(t,h)),c.push(h)}const u={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(t,u),e.applyData(t,u)}function ywn(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const $xe=9,Fxe=32;function bwn(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const a=[];for(;r;)a.push(Bxe(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(Bxe(t.slice(i),i>0,!1)),a.join("")}function Bxe(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===$xe||a===Fxe;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===$xe||a===Fxe;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function _wn(e,t){const n={type:"text",value:bwn(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Swn(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Ewn={blockquote:XCn,break:ZCn,code:QCn,delete:JCn,emphasis:ewn,footnoteReference:GQe,footnote:twn,heading:nwn,html:rwn,imageReference:iwn,image:awn,inlineCode:own,linkReference:swn,link:lwn,listItem:cwn,list:dwn,paragraph:fwn,root:pwn,strong:hwn,table:gwn,tableCell:ywn,tableRow:vwn,text:_wn,thematicBreak:Swn,toml:BP,yaml:BP,definition:BP,footnoteDefinition:BP};function BP(){return null}const Zpe=function(e){if(e==null)return Twn;if(typeof e=="string")return xwn(e);if(typeof e=="object")return Array.isArray(e)?Cwn(e):wwn(e);if(typeof e=="function")return pU(e);throw new Error("Expected function, string, or object as test")};function Cwn(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Zpe(e[n]);return pU(r);function r(...i){let a=-1;for(;++a<t.length;)if(t[a].call(this,...i))return!0;return!1}}function wwn(e){return pU(t);function t(n){let r;for(r in e)if(n[r]!==e[r])return!1;return!0}}function xwn(e){return pU(t);function t(n){return n&&n.type===e}}function pU(e){return t;function t(n,...r){return!!(n&&typeof n=="object"&&"type"in n&&e.call(this,n,...r))}}function Twn(){return!0}const Iwn=!0,jxe=!1,Awn="skip",KQe=function(e,t,n,r){typeof t=="function"&&typeof n!="function"&&(r=n,n=t,t=null);const i=Zpe(t),a=r?-1:1;o(e,void 0,[])();function o(s,l,c){const u=s&&typeof s=="object"?s:{};if(typeof u.type=="string"){const f=typeof u.tagName=="string"?u.tagName:typeof u.name=="string"?u.name:void 0;Object.defineProperty(d,"name",{value:"node ("+(s.type+(f?"<"+f+">":""))+")"})}return d;function d(){let f=[],p,h,m;if((!t||i(s,l,c[c.length-1]||null))&&(f=Rwn(n(s,c)),f[0]===jxe))return f;if(s.children&&f[0]!==Awn)for(h=(r?s.children.length:-1)+a,m=c.concat(s);h>-1&&h<s.children.length;){if(p=o(s.children[h],h,m)(),p[0]===jxe)return p;h=typeof p[1]=="number"?p[1]:h+a}return f}}};function Rwn(e){return Array.isArray(e)?e:typeof e=="number"?[Iwn,e]:[e]}const Qpe=function(e,t,n,r){typeof t=="function"&&typeof n!="function"&&(r=n,n=t,t=null),KQe(e,t,i,r);function i(a,o){const s=o[o.length-1];return n(a,s?s.children.indexOf(a):null,s)}};function Nwn(e){return!e||!e.position||!e.position.start||!e.position.start.line||!e.position.start.column||!e.position.end||!e.position.end.line||!e.position.end.column}const zxe={}.hasOwnProperty;function Own(e){const t=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return Qpe(e,"definition",r=>{const i=Uxe(r.identifier);i&&!zxe.call(t,i)&&(t[i]=r)}),n;function n(r){const i=Uxe(r);return i&&zxe.call(t,i)?t[i]:null}}function Uxe(e){return String(e||"").toUpperCase()}const TF={}.hasOwnProperty;function Lwn(e,t){const n=t||{},r=n.allowDangerousHtml||!1,i={};return o.dangerous=r,o.clobberPrefix=n.clobberPrefix===void 0||n.clobberPrefix===null?"user-content-":n.clobberPrefix,o.footnoteLabel=n.footnoteLabel||"Footnotes",o.footnoteLabelTagName=n.footnoteLabelTagName||"h2",o.footnoteLabelProperties=n.footnoteLabelProperties||{className:["sr-only"]},o.footnoteBackLabel=n.footnoteBackLabel||"Back to content",o.unknownHandler=n.unknownHandler,o.passThrough=n.passThrough,o.handlers={...Ewn,...n.handlers},o.definition=Own(e),o.footnoteById=i,o.footnoteOrder=[],o.footnoteCounts={},o.patch=Pwn,o.applyData=kwn,o.one=s,o.all=l,o.wrap=Dwn,o.augment=a,Qpe(e,"footnoteDefinition",c=>{const u=String(c.identifier).toUpperCase();TF.call(i,u)||(i[u]=c)}),o;function a(c,u){if(c&&"data"in c&&c.data){const d=c.data;d.hName&&(u.type!=="element"&&(u={type:"element",tagName:"",properties:{},children:[]}),u.tagName=d.hName),u.type==="element"&&d.hProperties&&(u.properties={...u.properties,...d.hProperties}),"children"in u&&u.children&&d.hChildren&&(u.children=d.hChildren)}if(c){const d="type"in c?c:{position:c};Nwn(d)||(u.position={start:Kpe(d),end:Xpe(d)})}return u}function o(c,u,d,f){return Array.isArray(d)&&(f=d,d={}),a(c,{type:"element",tagName:u,properties:d||{},children:f||[]})}function s(c,u){return XQe(o,c,u)}function l(c){return Jpe(o,c)}}function Pwn(e,t){e.position&&(t.position=mwn(e))}function kwn(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,a=e.data.hProperties;typeof r=="string"&&(n.type==="element"?n.tagName=r:n={type:"element",tagName:r,properties:{},children:[]}),n.type==="element"&&a&&(n.properties={...n.properties,...a}),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function XQe(e,t,n){const r=t&&t.type;if(!r)throw new Error("Expected node, got `"+t+"`");return TF.call(e.handlers,r)?e.handlers[r](e,t,n):e.passThrough&&e.passThrough.includes(r)?"children"in t?{...t,children:Jpe(e,t)}:t:e.unknownHandler?e.unknownHandler(e,t,n):Mwn(e,t)}function Jpe(e,t){const n=[];if("children"in t){const r=t.children;let i=-1;for(;++i<r.length;){const a=XQe(e,r[i],t);if(a){if(i&&r[i-1].type==="break"&&(!Array.isArray(a)&&a.type==="text"&&(a.value=a.value.replace(/^\s+/,"")),!Array.isArray(a)&&a.type==="element")){const o=a.children[0];o&&o.type==="text"&&(o.value=o.value.replace(/^\s+/,""))}Array.isArray(a)?n.push(...a):n.push(a)}}}return n}function Mwn(e,t){const n=t.data||{},r="value"in t&&!(TF.call(n,"hProperties")||TF.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:Jpe(e,t)};return e.patch(t,r),e.applyData(t,r)}function Dwn(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
`});++r<e.length;)r&&n.push({type:"text",value:`
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
`}),n}function $wn(e){const t=[];let n=-1;for(;++n<e.footnoteOrder.length;){const r=e.footnoteById[e.footnoteOrder[n]];if(!r)continue;const i=e.all(r),a=String(r.identifier).toUpperCase(),o=zT(a.toLowerCase());let s=0;const l=[];for(;++s<=e.footnoteCounts[a];){const d={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fnref-"+o+(s>1?"-"+s:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};s>1&&d.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(s)}]}),l.length>0&&l.push({type:"text",value:" "}),l.push(d)}const c=i[i.length-1];if(c&&c.type==="element"&&c.tagName==="p"){const d=c.children[c.children.length-1];d&&d.type==="text"?d.value+=" ":c.children.push({type:"text",value:" "}),c.children.push(...l)}else i.push(...l);const u={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+o},children:e.wrap(i,!0)};e.patch(r,u),t.push(u)}if(t.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(e.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:`
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(t,!0)},{type:"text",value:`
`}]}}function ZQe(e,t){const n=Lwn(e,t),r=n.one(e,null),i=$wn(n);return i&&r.children.push({type:"text",value:`
`},i),Array.isArray(r)?{type:"root",children:r}:r}const Fwn=function(e,t){return e&&"run"in e?Bwn(e,t):jwn(e||t)};function Bwn(e,t){return(n,r,i)=>{e.run(ZQe(n,t),r,a=>{i(a)})}}function jwn(e){return t=>ZQe(t,e)}let n8=class{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}};n8.prototype.property={};n8.prototype.normal={};n8.prototype.space=null;function QQe(e,t){const n={},r={};let i=-1;for(;++i<e.length;)Object.assign(n,e[i].property),Object.assign(r,e[i].normal);return new n8(n,r,t)}function noe(e){return e.toLowerCase()}let Vp=class{constructor(t,n){this.property=t,this.attribute=n}};Vp.prototype.space=null;Vp.prototype.boolean=!1;Vp.prototype.booleanish=!1;Vp.prototype.overloadedBoolean=!1;Vp.prototype.number=!1;Vp.prototype.commaSeparated=!1;Vp.prototype.spaceSeparated=!1;Vp.prototype.commaOrSpaceSeparated=!1;Vp.prototype.mustUseProperty=!1;Vp.prototype.defined=!1;let zwn=0;const Ii=NC(),cl=NC(),JQe=NC(),Rn=NC(),Do=NC(),k5=NC(),uf=NC();function NC(){return 2**++zwn}const roe=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ii,booleanish:cl,commaOrSpaceSeparated:uf,commaSeparated:k5,number:Rn,overloadedBoolean:JQe,spaceSeparated:Do},Symbol.toStringTag,{value:"Module"})),FW=Object.keys(roe);let ehe=class extends Vp{constructor(t,n,r,i){let a=-1;if(super(t,n),Hxe(this,"space",i),typeof r=="number")for(;++a<FW.length;){const o=FW[a];Hxe(this,FW[a],(r&roe[o])===roe[o])}}};ehe.prototype.defined=!0;function Hxe(e,t,n){n&&(e[t]=n)}const Uwn={}.hasOwnProperty;function UT(e){const t={},n={};let r;for(r in e.properties)if(Uwn.call(e.properties,r)){const i=e.properties[r],a=new ehe(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[noe(r)]=r,n[noe(a.attribute)]=r}return new n8(t,n,e.space)}const eJe=UT({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),tJe=UT({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function nJe(e,t){return t in e?e[t]:t}function rJe(e,t){return nJe(e,t.toLowerCase())}const iJe=UT({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:rJe,properties:{xmlns:null,xmlnsXLink:null}}),aJe=UT({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:cl,ariaAutoComplete:null,ariaBusy:cl,ariaChecked:cl,ariaColCount:Rn,ariaColIndex:Rn,ariaColSpan:Rn,ariaControls:Do,ariaCurrent:null,ariaDescribedBy:Do,ariaDetails:null,ariaDisabled:cl,ariaDropEffect:Do,ariaErrorMessage:null,ariaExpanded:cl,ariaFlowTo:Do,ariaGrabbed:cl,ariaHasPopup:null,ariaHidden:cl,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Do,ariaLevel:Rn,ariaLive:null,ariaModal:cl,ariaMultiLine:cl,ariaMultiSelectable:cl,ariaOrientation:null,ariaOwns:Do,ariaPlaceholder:null,ariaPosInSet:Rn,ariaPressed:cl,ariaReadOnly:cl,ariaRelevant:null,ariaRequired:cl,ariaRoleDescription:Do,ariaRowCount:Rn,ariaRowIndex:Rn,ariaRowSpan:Rn,ariaSelected:cl,ariaSetSize:Rn,ariaSort:null,ariaValueMax:Rn,ariaValueMin:Rn,ariaValueNow:Rn,ariaValueText:null,role:null}}),Hwn=UT({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:rJe,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:k5,acceptCharset:Do,accessKey:Do,action:null,allow:null,allowFullScreen:Ii,allowPaymentRequest:Ii,allowUserMedia:Ii,alt:null,as:null,async:Ii,autoCapitalize:null,autoComplete:Do,autoFocus:Ii,autoPlay:Ii,capture:Ii,charSet:null,checked:Ii,cite:null,className:Do,cols:Rn,colSpan:null,content:null,contentEditable:cl,controls:Ii,controlsList:Do,coords:Rn|k5,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ii,defer:Ii,dir:null,dirName:null,disabled:Ii,download:JQe,draggable:cl,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ii,formTarget:null,headers:Do,height:Rn,hidden:Ii,high:Rn,href:null,hrefLang:null,htmlFor:Do,httpEquiv:Do,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:Ii,itemId:null,itemProp:Do,itemRef:Do,itemScope:Ii,itemType:Do,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ii,low:Rn,manifest:null,max:null,maxLength:Rn,media:null,method:null,min:null,minLength:Rn,multiple:Ii,muted:Ii,name:null,nonce:null,noModule:Ii,noValidate:Ii,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint: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:Ii,optimum:Rn,pattern:null,ping:Do,placeholder:null,playsInline:Ii,poster:null,preload:null,readOnly:Ii,referrerPolicy:null,rel:Do,required:Ii,reversed:Ii,rows:Rn,rowSpan:Rn,sandbox:Do,scope:null,scoped:Ii,seamless:Ii,selected:Ii,shape:null,size:Rn,sizes:null,slot:null,span:Rn,spellCheck:cl,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Rn,step:null,style:null,tabIndex:Rn,target:null,title:null,translate:null,type:null,typeMustMatch:Ii,useMap:null,value:cl,width:Rn,wrap:null,align:null,aLink:null,archive:Do,axis:null,background:null,bgColor:null,border:Rn,borderColor:null,bottomMargin:Rn,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ii,declare:Ii,event:null,face:null,frame:null,frameBorder:null,hSpace:Rn,leftMargin:Rn,link:null,longDesc:null,lowSrc:null,marginHeight:Rn,marginWidth:Rn,noResize:Ii,noHref:Ii,noShade:Ii,noWrap:Ii,object:null,profile:null,prompt:null,rev:null,rightMargin:Rn,rules:null,scheme:null,scrolling:cl,standby:null,summary:null,text:null,topMargin:Rn,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Rn,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ii,disableRemotePlayback:Ii,prefix:null,property:null,results:Rn,security:null,unselectable:null}}),Vwn=UT({space:"svg",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-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",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"},transform:nJe,properties:{about:uf,accentHeight:Rn,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Rn,amplitude:Rn,arabicForm:null,ascent:Rn,attributeName:null,attributeType:null,azimuth:Rn,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Rn,by:null,calcMode:null,capHeight:Rn,className:Do,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:Rn,diffuseConstant:Rn,direction:null,display:null,dur:null,divisor:Rn,dominantBaseline:null,download:Ii,dx:null,dy:null,edgeMode:null,editable:null,elevation:Rn,enableBackground:null,end:null,event:null,exponent:Rn,externalResourcesRequired:null,fill:null,fillOpacity:Rn,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:k5,g2:k5,glyphName:k5,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Rn,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Rn,horizOriginX:Rn,horizOriginY:Rn,id:null,ideographic:Rn,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Rn,k:Rn,k1:Rn,k2:Rn,k3:Rn,k4:Rn,kernelMatrix:uf,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Rn,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:Rn,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,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Rn,overlineThickness:Rn,paintOrder:null,panose1:null,path:null,pathLength:Rn,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Do,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Rn,pointsAtY:Rn,pointsAtZ:Rn,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:uf,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:uf,rev:uf,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:uf,requiredFeatures:uf,requiredFonts:uf,requiredFormats:uf,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:Rn,specularExponent:Rn,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Rn,strikethroughThickness:Rn,string:null,stroke:null,strokeDashArray:uf,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Rn,strokeOpacity:Rn,strokeWidth:null,style:null,surfaceScale:Rn,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:uf,tabIndex:Rn,tableValues:null,target:null,targetX:Rn,targetY:Rn,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:uf,to:null,transform:null,u1:null,u2:null,underlinePosition:Rn,underlineThickness:Rn,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Rn,values:null,vAlphabetic:Rn,vMathematical:Rn,vectorEffect:null,vHanging:Rn,vIdeographic:Rn,version:null,vertAdvY:Rn,vertOriginX:Rn,vertOriginY:Rn,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Rn,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Gwn=/^data[-\w.:]+$/i,Vxe=/-[a-z]/g,qwn=/[A-Z]/g;function Wwn(e,t){const n=noe(t);let r=t,i=Vp;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Gwn.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(Vxe,Kwn);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!Vxe.test(a)){let o=a.replace(qwn,Ywn);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=ehe}return new i(r,t)}function Ywn(e){return"-"+e.toLowerCase()}function Kwn(e){return e.charAt(1).toUpperCase()}const Gxe={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"},Xwn=QQe([tJe,eJe,iJe,aJe,Hwn],"html"),Zwn=QQe([tJe,eJe,iJe,aJe,Vwn],"svg");function Qwn(e){if(e.allowedElements&&e.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return t=>{Qpe(t,"element",(n,r,i)=>{const a=i;let o;if(e.allowedElements?o=!e.allowedElements.includes(n.tagName):e.disallowedElements&&(o=e.disallowedElements.includes(n.tagName)),!o&&e.allowElement&&typeof r=="number"&&(o=!e.allowElement(n,r,a)),o&&typeof r=="number")return e.unwrapDisallowed&&n.children?a.children.splice(r,1,...n.children):a.children.splice(r,1),r})}}function Jwn(e){const t=e&&typeof e=="object"&&e.type==="text"?e.value||"":e;return typeof t=="string"&&t.replace(/[ \t\n\f\r]/g,"")===""}function exn(e){return e.join(" ").trim()}function txn(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}var the={exports:{}},qxe=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,nxn=/\n/g,rxn=/^\s*/,ixn=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,axn=/^:\s*/,oxn=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,sxn=/^[;\s]*/,lxn=/^\s+|\s+$/g,cxn=`
`,Wxe="/",Yxe="*",TS="",uxn="comment",dxn="declaration",fxn=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(h){var m=h.match(nxn);m&&(n+=m.length);var g=h.lastIndexOf(cxn);r=~g?h.length-g:r+h.length}function a(){var h={line:n,column:r};return function(m){return m.position=new o(h),c(),m}}function o(h){this.start=h,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(h){var m=new Error(t.source+":"+n+":"+r+": "+h);if(m.reason=h,m.filename=t.source,m.line=n,m.column=r,m.source=e,!t.silent)throw m}function l(h){var m=h.exec(e);if(m){var g=m[0];return i(g),e=e.slice(g.length),m}}function c(){l(rxn)}function u(h){var m;for(h=h||[];m=d();)m!==!1&&h.push(m);return h}function d(){var h=a();if(!(Wxe!=e.charAt(0)||Yxe!=e.charAt(1))){for(var m=2;TS!=e.charAt(m)&&(Yxe!=e.charAt(m)||Wxe!=e.charAt(m+1));)++m;if(m+=2,TS===e.charAt(m-1))return s("End of comment missing");var g=e.slice(2,m-2);return r+=2,i(g),e=e.slice(m),r+=2,h({type:uxn,comment:g})}}function f(){var h=a(),m=l(ixn);if(m){if(d(),!l(axn))return s("property missing ':'");var g=l(oxn),v=h({type:dxn,property:Kxe(m[0].replace(qxe,TS)),value:g?Kxe(g[0].replace(qxe,TS)):TS});return l(sxn),v}}function p(){var h=[];u(h);for(var m;m=f();)m!==!1&&(h.push(m),u(h));return h}return c(),p()};function Kxe(e){return e?e.replace(lxn,TS):TS}var pxn=fxn;function oJe(e,t){var n=null;if(!e||typeof e!="string")return n;for(var r,i=pxn(e),a=typeof t=="function",o,s,l=0,c=i.length;l<c;l++)r=i[l],o=r.property,s=r.value,a?t(o,s,r):s&&(n||(n={}),n[o]=s);return n}the.exports=oJe;the.exports.default=oJe;var hxn=the.exports;const mxn=qo(hxn),ioe={}.hasOwnProperty,gxn=new Set(["table","thead","tbody","tfoot","tr"]);function sJe(e,t){const n=[];let r=-1,i;for(;++r<t.children.length;)i=t.children[r],i.type==="element"?n.push(vxn(e,i,r,t)):i.type==="text"?(t.type!=="element"||!gxn.has(t.tagName)||!Jwn(i))&&n.push(i.value):i.type==="raw"&&!e.options.skipHtml&&n.push(i.value);return n}function vxn(e,t,n,r){const i=e.options,a=i.transformLinkUri===void 0?ASn:i.transformLinkUri,o=e.schema,s=t.tagName,l={};let c=o,u;if(o.space==="html"&&s==="svg"&&(c=Zwn,e.schema=c),t.properties)for(u in t.properties)ioe.call(t.properties,u)&&bxn(l,u,t.properties[u],e);(s==="ol"||s==="ul")&&e.listDepth++;const d=sJe(e,t);(s==="ol"||s==="ul")&&e.listDepth--,e.schema=o;const f=t.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},p=i.components&&ioe.call(i.components,s)?i.components[s]:s,h=typeof p=="string"||p===se.Fragment;if(!pCt.isValidElementType(p))throw new TypeError(`Component for name \`${s}\` not defined or is not renderable`);if(l.key=n,s==="a"&&i.linkTarget&&(l.target=typeof i.linkTarget=="function"?i.linkTarget(String(l.href||""),t.children,typeof l.title=="string"?l.title:null):i.linkTarget),s==="a"&&a&&(l.href=a(String(l.href||""),t.children,typeof l.title=="string"?l.title:null)),!h&&s==="code"&&r.type==="element"&&r.tagName!=="pre"&&(l.inline=!0),!h&&(s==="h1"||s==="h2"||s==="h3"||s==="h4"||s==="h5"||s==="h6")&&(l.level=Number.parseInt(s.charAt(1),10)),s==="img"&&i.transformImageUri&&(l.src=i.transformImageUri(String(l.src||""),String(l.alt||""),typeof l.title=="string"?l.title:null)),!h&&s==="li"&&r.type==="element"){const m=yxn(t);l.checked=m&&m.properties?!!m.properties.checked:null,l.index=BW(r,t),l.ordered=r.tagName==="ol"}return!h&&(s==="ol"||s==="ul")&&(l.ordered=s==="ol",l.depth=e.listDepth),(s==="td"||s==="th")&&(l.align&&(l.style||(l.style={}),l.style.textAlign=l.align,delete l.align),h||(l.isHeader=s==="th")),!h&&s==="tr"&&r.type==="element"&&(l.isHeader=r.tagName==="thead"),i.sourcePos&&(l["data-sourcepos"]=Exn(f)),!h&&i.rawSourcePos&&(l.sourcePosition=t.position),!h&&i.includeElementIndex&&(l.index=BW(r,t),l.siblingCount=BW(r)),h||(l.node=t),d.length>0?se.createElement(p,l,d):se.createElement(p,l)}function yxn(e){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n.type==="element"&&n.tagName==="input")return n}return null}function BW(e,t){let n=-1,r=0;for(;++n<e.children.length&&e.children[n]!==t;)e.children[n].type==="element"&&r++;return r}function bxn(e,t,n,r){const i=Wwn(r.schema,t);let a=n;a==null||a!==a||(Array.isArray(a)&&(a=i.commaSeparated?txn(a):exn(a)),i.property==="style"&&typeof a=="string"&&(a=_xn(a)),i.space&&i.property?e[ioe.call(Gxe,i.property)?Gxe[i.property]:i.property]=a:i.attribute&&(e[i.attribute]=a))}function _xn(e){const t={};try{mxn(e,n)}catch{}return t;function n(r,i){const a=r.slice(0,4)==="-ms-"?`ms-${r.slice(4)}`:r;t[a.replace(/-([a-z])/g,Sxn)]=i}}function Sxn(e,t){return t.toUpperCase()}function Exn(e){return[e.start.line,":",e.start.column,"-",e.end.line,":",e.end.column].map(String).join("")}const Xxe={}.hasOwnProperty,Cxn="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",jP={plugins:{to:"remarkPlugins",id:"change-plugins-to-remarkplugins"},renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function lJe(e){for(const a in jP)if(Xxe.call(jP,a)&&Xxe.call(e,a)){const o=jP[a];console.warn(`[react-markdown] Warning: please ${o.to?`use \`${o.to}\` instead of`:"remove"} \`${a}\` (see <${Cxn}#${o.id}> for more info)`),delete jP[a]}const t=VSn().use(KCn).use(e.remarkPlugins||[]).use(Fwn,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(Qwn,e),n=new TQe;typeof e.children=="string"?n.value=e.children:e.children!==void 0&&e.children!==null&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);const r=t.runSync(t.parse(n),n);if(r.type!=="root")throw new TypeError("Expected a `root` node");let i=se.createElement(se.Fragment,{},sJe({options:e,schema:Xwn,listDepth:0},r));return e.className&&(i=se.createElement("div",{className:e.className},i)),i}lJe.propTypes={children:ai.string,className:ai.string,allowElement:ai.func,allowedElements:ai.arrayOf(ai.string),disallowedElements:ai.arrayOf(ai.string),unwrapDisallowed:ai.bool,remarkPlugins:ai.arrayOf(ai.oneOfType([ai.object,ai.func,ai.arrayOf(ai.oneOfType([ai.bool,ai.string,ai.object,ai.func,ai.arrayOf(ai.any)]))])),rehypePlugins:ai.arrayOf(ai.oneOfType([ai.object,ai.func,ai.arrayOf(ai.oneOfType([ai.bool,ai.string,ai.object,ai.func,ai.arrayOf(ai.any)]))])),sourcePos:ai.bool,rawSourcePos:ai.bool,skipHtml:ai.bool,includeElementIndex:ai.bool,transformLinkUri:ai.oneOfType([ai.func,ai.bool]),linkTarget:ai.oneOfType([ai.func,ai.string]),transformImageUri:ai.func,components:ai.object};var cJe={exports:{}},uJe={exports:{}};(function(e){function t(n,r){if(n==null)return{};var i={};for(var a in n)if({}.hasOwnProperty.call(n,a)){if(r.includes(a))continue;i[a]=n[a]}return i}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(uJe);var wxn=uJe.exports;(function(e){var t=wxn;function n(r,i){if(r==null)return{};var a,o,s=t(r,i);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(r);for(o=0;o<l.length;o++)a=l[o],i.includes(a)||{}.propertyIsEnumerable.call(r,a)&&(s[a]=r[a])}return s}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(cJe);var dJe=cJe.exports;const xxn=qo(dJe);var fJe={exports:{}},pJe={exports:{}},hJe={exports:{}};(function(e){function t(n){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(hJe);var nhe=hJe.exports,mJe={exports:{}};(function(e){var t=nhe.default;function n(r,i){if(t(r)!="object"||!r)return r;var a=r[Symbol.toPrimitive];if(a!==void 0){var o=a.call(r,i||"default");if(t(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(mJe);var Txn=mJe.exports;(function(e){var t=nhe.default,n=Txn;function r(i){var a=n(i,"string");return t(a)=="symbol"?a:a+""}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(pJe);var Ixn=pJe.exports;(function(e){var t=Ixn;function n(r,i,a){return(i=t(i))in r?Object.defineProperty(r,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[i]=a,r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(fJe);var rhe=fJe.exports;const gJe=qo(rhe);var vJe={exports:{}};(function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var a in i)({}).hasOwnProperty.call(i,a)&&(n[a]=i[a])}return n},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(vJe);var yJe=vJe.exports;const Axn=qo(yJe);function Zxe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function t5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Zxe(Object(n),!0).forEach(function(r){gJe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zxe(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Rxn(e){var t=e.length;if(t===0||t===1)return e;if(t===2)return[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])];if(t===3)return[e[0],e[1],e[2],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0])];if(t>=4)return[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]}var jW={};function Nxn(e){if(e.length===0||e.length===1)return e;var t=e.join(".");return jW[t]||(jW[t]=Rxn(e)),jW[t]}function Oxn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=e.filter(function(a){return a!=="token"}),i=Nxn(r);return i.reduce(function(a,o){return t5(t5({},a),n[o])},t)}function Qxe(e){return e.join(" ")}function Lxn(e,t){var n=0;return function(r){return n+=1,r.map(function(i,a){return bJe({node:i,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(n,"-").concat(a)})})}}function bJe(e){var t=e.node,n=e.stylesheet,r=e.style,i=r===void 0?{}:r,a=e.useInlineStyles,o=e.key,s=t.properties,l=t.type,c=t.tagName,u=t.value;if(l==="text")return u;if(c){var d=Lxn(n,a),f;if(!a)f=t5(t5({},s),{},{className:Qxe(s.className)});else{var p=Object.keys(n).reduce(function(v,y){return y.split(".").forEach(function(_){v.includes(_)||v.push(_)}),v},[]),h=s.className&&s.className.includes("token")?["token"]:[],m=s.className&&h.concat(s.className.filter(function(v){return!p.includes(v)}));f=t5(t5({},s),{},{className:Qxe(m)||void 0,style:Oxn(s.className,Object.assign({},s.style,i),n)})}var g=d(t.children);return se.createElement(c,Axn({key:o},f),g)}}const Pxn=function(e,t){var n=e.listLanguages();return n.indexOf(t)!==-1};var kxn=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function Jxe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Tg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Jxe(Object(n),!0).forEach(function(r){gJe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jxe(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Mxn=/\n/g;function Dxn(e){return e.match(Mxn)}function $xn(e){var t=e.lines,n=e.startingLineNumber,r=e.style;return t.map(function(i,a){var o=a+n;return se.createElement("span",{key:"line-".concat(a),className:"react-syntax-highlighter-line-number",style:typeof r=="function"?r(o):r},"".concat(o,`
`))})}function Fxn(e){var t=e.codeString,n=e.codeStyle,r=e.containerStyle,i=r===void 0?{float:"left",paddingRight:"10px"}:r,a=e.numberStyle,o=a===void 0?{}:a,s=e.startingLineNumber;return se.createElement("code",{style:Object.assign({},n,i)},$xn({lines:t.replace(/\n$/,"").split(`
`),style:o,startingLineNumber:s}))}function Bxn(e){return"".concat(e.toString().length,".25em")}function _Je(e,t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:t},children:[{type:"text",value:e}]}}function SJe(e,t,n){var r={display:"inline-block",minWidth:Bxn(n),paddingRight:"1em",textAlign:"right",userSelect:"none"},i=typeof e=="function"?e(t):e,a=Tg(Tg({},r),i);return a}function OM(e){var t=e.children,n=e.lineNumber,r=e.lineNumberStyle,i=e.largestLineNumber,a=e.showInlineLineNumbers,o=e.lineProps,s=o===void 0?{}:o,l=e.className,c=l===void 0?[]:l,u=e.showLineNumbers,d=e.wrapLongLines,f=typeof s=="function"?s(n):s;if(f.className=c,n&&a){var p=SJe(r,n,i);t.unshift(_Je(n,p))}return d&u&&(f.style=Tg(Tg({},f.style),{},{display:"flex"})),{type:"element",tagName:"span",properties:f,children:t}}function EJe(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=0;r<e.length;r++){var i=e[r];if(i.type==="text")n.push(OM({children:[i],className:Tt(new Set(t))}));else if(i.children){var a=t.concat(i.properties.className);EJe(i.children,a).forEach(function(o){return n.push(o)})}}return n}function jxn(e,t,n,r,i,a,o,s,l){var c,u=EJe(e.value),d=[],f=-1,p=0;function h(C,w){var x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return OM({children:C,lineNumber:w,lineNumberStyle:s,largestLineNumber:o,showInlineLineNumbers:i,lineProps:n,className:x,showLineNumbers:r,wrapLongLines:l})}function m(C,w){if(r&&w&&i){var x=SJe(s,w,o);C.unshift(_Je(w,x))}return C}function g(C,w){var x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||x.length>0?h(C,w,x):m(C,w)}for(var v=function(){var w=u[p],x=w.children[0].value,T=Dxn(x);if(T){var A=x.split(`
`);A.forEach(function(I,R){var N=r&&d.length+a,P={type:"text",value:"".concat(I,`
`)};if(R===0){var L=u.slice(f+1,p).concat(OM({children:[P],className:w.properties.className})),$=g(L,N);d.push($)}else if(R===A.length-1){var D=u[p+1]&&u[p+1].children&&u[p+1].children[0],z={type:"text",value:"".concat(I)};if(D){var U=OM({children:[z],className:w.properties.className});u.splice(p+1,0,U)}else{var H=[z],M=g(H,N,w.properties.className);d.push(M)}}else{var B=[P],k=g(B,N,w.properties.className);d.push(k)}}),f=p}p++};p<u.length;)v();if(f!==u.length-1){var y=u.slice(f+1,u.length);if(y&&y.length){var _=r&&d.length+a,S=g(y,_);d.push(S)}}return t?d:(c=[]).concat.apply(c,d)}function zxn(e){var t=e.rows,n=e.stylesheet,r=e.useInlineStyles;return t.map(function(i,a){return bJe({node:i,stylesheet:n,useInlineStyles:r,key:"code-segement".concat(a)})})}function CJe(e){return e&&typeof e.highlightAuto<"u"}function Uxn(e){var t=e.astGenerator,n=e.language,r=e.code,i=e.defaultCodeValue;if(CJe(t)){var a=Pxn(t,n);return n==="text"?{value:i,language:"text"}:a?t.highlight(n,r):t.highlightAuto(r)}try{return n&&n!=="text"?{value:t.highlight(r,n)}:{value:i}}catch{return{value:i}}}function Hxn(e,t){return function(r){var i=r.language,a=r.children,o=r.style,s=o===void 0?t:o,l=r.customStyle,c=l===void 0?{}:l,u=r.codeTagProps,d=u===void 0?{className:i?"language-".concat(i):void 0,style:Tg(Tg({},s['code[class*="language-"]']),s['code[class*="language-'.concat(i,'"]')])}:u,f=r.useInlineStyles,p=f===void 0?!0:f,h=r.showLineNumbers,m=h===void 0?!1:h,g=r.showInlineLineNumbers,v=g===void 0?!0:g,y=r.startingLineNumber,_=y===void 0?1:y,S=r.lineNumberContainerStyle,C=r.lineNumberStyle,w=C===void 0?{}:C,x=r.wrapLines,T=r.wrapLongLines,A=T===void 0?!1:T,I=r.lineProps,R=I===void 0?{}:I,N=r.renderer,P=r.PreTag,L=P===void 0?"pre":P,$=r.CodeTag,D=$===void 0?"code":$,z=r.code,U=z===void 0?(Array.isArray(a)?a[0]:a)||"":z,H=r.astGenerator,M=xxn(r,kxn);H=H||e;var B=m?se.createElement(Fxn,{containerStyle:S,codeStyle:d.style||{},numberStyle:w,startingLineNumber:_,codeString:U}):null,k=s.hljs||s['pre[class*="language-"]']||{backgroundColor:"#fff"},F=CJe(H)?"hljs":"prismjs",G=p?Object.assign({},M,{style:Object.assign({},k,c)}):Object.assign({},M,{className:M.className?"".concat(F," ").concat(M.className):F,style:Object.assign({},c)});if(A?d.style=Tg(Tg({},d.style),{},{whiteSpace:"pre-wrap"}):d.style=Tg(Tg({},d.style),{},{whiteSpace:"pre"}),!H)return se.createElement(L,G,B,se.createElement(D,d,U));(x===void 0&&N||A)&&(x=!0),N=N||zxn;var q=[{type:"text",value:U}],W=Uxn({astGenerator:H,language:i,code:U,defaultCodeValue:q});W.language===null&&(W.value=q);var K=W.value.length+_,J=jxn(W,x,R,m,v,_,K,w,A);return se.createElement(L,G,se.createElement(D,d,!v&&B,N({rows:J,stylesheet:s,useInlineStyles:p})))}}const Vxn=["abap","abnf","actionscript","ada","agda","al","antlr4","apacheconf","apex","apl","applescript","aql","arduino","arff","asciidoc","asm6502","asmatmel","aspnet","autohotkey","autoit","avisynth","avro-idl","bash","basic","batch","bbcode","bicep","birb","bison","bnf","brainfuck","brightscript","bro","bsl","c","cfscript","chaiscript","cil","clike","clojure","cmake","cobol","coffeescript","concurnas","coq","cpp","crystal","csharp","cshtml","csp","css-extras","css","csv","cypher","d","dart","dataweave","dax","dhall","diff","django","dns-zone-file","docker","dot","ebnf","editorconfig","eiffel","ejs","elixir","elm","erb","erlang","etlua","excel-formula","factor","false","firestore-security-rules","flow","fortran","fsharp","ftl","gap","gcode","gdscript","gedcom","gherkin","git","glsl","gml","gn","go-module","go","graphql","groovy","haml","handlebars","haskell","haxe","hcl","hlsl","hoon","hpkp","hsts","http","ichigojam","icon","icu-message-format","idris","iecst","ignore","inform7","ini","io","j","java","javadoc","javadoclike","javascript","javastacktrace","jexl","jolie","jq","js-extras","js-templates","jsdoc","json","json5","jsonp","jsstacktrace","jsx","julia","keepalived","keyman","kotlin","kumir","kusto","latex","latte","less","lilypond","liquid","lisp","livescript","llvm","log","lolcode","lua","magma","makefile","markdown","markup-templating","markup","matlab","maxscript","mel","mermaid","mizar","mongodb","monkey","moonscript","n1ql","n4js","nand2tetris-hdl","naniscript","nasm","neon","nevod","nginx","nim","nix","nsis","objectivec","ocaml","opencl","openqasm","oz","parigp","parser","pascal","pascaligo","pcaxis","peoplecode","perl","php-extras","php","phpdoc","plsql","powerquery","powershell","processing","prolog","promql","properties","protobuf","psl","pug","puppet","pure","purebasic","purescript","python","q","qml","qore","qsharp","r","racket","reason","regex","rego","renpy","rest","rip","roboconf","robotframework","ruby","rust","sas","sass","scala","scheme","scss","shell-session","smali","smalltalk","smarty","sml","solidity","solution-file","soy","sparql","splunk-spl","sqf","sql","squirrel","stan","stylus","swift","systemd","t4-cs","t4-templating","t4-vb","tap","tcl","textile","toml","tremor","tsx","tt2","turtle","twig","typescript","typoscript","unrealscript","uorazor","uri","v","vala","vbnet","velocity","verilog","vhdl","vim","visual-basic","warpscript","wasm","web-idl","wiki","wolfram","wren","xeora","xml-doc","xojo","xquery","yaml","yang","zig"];var Gxn=Wxn,qxn=Object.prototype.hasOwnProperty;function Wxn(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n)qxn.call(n,r)&&(e[r]=n[r])}return e}var wJe=xJe,ihe=xJe.prototype;ihe.space=null;ihe.normal={};ihe.property={};function xJe(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}var e5e=Gxn,Yxn=wJe,Kxn=Xxn;function Xxn(e){for(var t=e.length,n=[],r=[],i=-1,a,o;++i<t;)a=e[i],n.push(a.property),r.push(a.normal),o=a.space;return new Yxn(e5e.apply(null,n),e5e.apply(null,r),o)}var ahe=Zxn;function Zxn(e){return e.toLowerCase()}var TJe=IJe,Gp=IJe.prototype;Gp.space=null;Gp.attribute=null;Gp.property=null;Gp.boolean=!1;Gp.booleanish=!1;Gp.overloadedBoolean=!1;Gp.number=!1;Gp.commaSeparated=!1;Gp.spaceSeparated=!1;Gp.commaOrSpaceSeparated=!1;Gp.mustUseProperty=!1;Gp.defined=!1;function IJe(e,t){this.property=e,this.attribute=t}var vv={},Qxn=0;vv.boolean=OC();vv.booleanish=OC();vv.overloadedBoolean=OC();vv.number=OC();vv.spaceSeparated=OC();vv.commaSeparated=OC();vv.commaOrSpaceSeparated=OC();function OC(){return Math.pow(2,++Qxn)}var AJe=TJe,t5e=vv,RJe=ohe;ohe.prototype=new AJe;ohe.prototype.defined=!0;var NJe=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],Jxn=NJe.length;function ohe(e,t,n,r){var i=-1,a;for(n5e(this,"space",r),AJe.call(this,e,t);++i<Jxn;)a=NJe[i],n5e(this,a,(n&t5e[a])===t5e[a])}function n5e(e,t,n){n&&(e[t]=n)}var r5e=ahe,e5n=wJe,t5n=RJe,r8=n5n;function n5n(e){var t=e.space,n=e.mustUseProperty||[],r=e.attributes||{},i=e.properties,a=e.transform,o={},s={},l,c;for(l in i)c=new t5n(l,a(r,l),i[l],t),n.indexOf(l)!==-1&&(c.mustUseProperty=!0),o[l]=c,s[r5e(l)]=l,s[r5e(c.attribute)]=l;return new e5n(o,s,t)}var r5n=r8,i5n=r5n({space:"xlink",transform:a5n,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function a5n(e,t){return"xlink:"+t.slice(5).toLowerCase()}var o5n=r8,s5n=o5n({space:"xml",transform:l5n,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function l5n(e,t){return"xml:"+t.slice(3).toLowerCase()}var c5n=u5n;function u5n(e,t){return t in e?e[t]:t}var d5n=c5n,OJe=f5n;function f5n(e,t){return d5n(e,t.toLowerCase())}var p5n=r8,h5n=OJe,m5n=p5n({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:h5n,properties:{xmlns:null,xmlnsXLink:null}}),she=vv,g5n=r8,Qu=she.booleanish,ep=she.number,_2=she.spaceSeparated,v5n=g5n({transform:y5n,properties:{ariaActiveDescendant:null,ariaAtomic:Qu,ariaAutoComplete:null,ariaBusy:Qu,ariaChecked:Qu,ariaColCount:ep,ariaColIndex:ep,ariaColSpan:ep,ariaControls:_2,ariaCurrent:null,ariaDescribedBy:_2,ariaDetails:null,ariaDisabled:Qu,ariaDropEffect:_2,ariaErrorMessage:null,ariaExpanded:Qu,ariaFlowTo:_2,ariaGrabbed:Qu,ariaHasPopup:null,ariaHidden:Qu,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:_2,ariaLevel:ep,ariaLive:null,ariaModal:Qu,ariaMultiLine:Qu,ariaMultiSelectable:Qu,ariaOrientation:null,ariaOwns:_2,ariaPlaceholder:null,ariaPosInSet:ep,ariaPressed:Qu,ariaReadOnly:Qu,ariaRelevant:null,ariaRequired:Qu,ariaRoleDescription:_2,ariaRowCount:ep,ariaRowIndex:ep,ariaRowSpan:ep,ariaSelected:Qu,ariaSetSize:ep,ariaSort:null,ariaValueMax:ep,ariaValueMin:ep,ariaValueNow:ep,ariaValueText:null,role:null}});function y5n(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}var HT=vv,b5n=r8,_5n=OJe,Mi=HT.boolean,S5n=HT.overloadedBoolean,oI=HT.booleanish,Oo=HT.number,pu=HT.spaceSeparated,zP=HT.commaSeparated,E5n=b5n({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:_5n,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:zP,acceptCharset:pu,accessKey:pu,action:null,allow:null,allowFullScreen:Mi,allowPaymentRequest:Mi,allowUserMedia:Mi,alt:null,as:null,async:Mi,autoCapitalize:null,autoComplete:pu,autoFocus:Mi,autoPlay:Mi,capture:Mi,charSet:null,checked:Mi,cite:null,className:pu,cols:Oo,colSpan:null,content:null,contentEditable:oI,controls:Mi,controlsList:pu,coords:Oo|zP,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Mi,defer:Mi,dir:null,dirName:null,disabled:Mi,download:S5n,draggable:oI,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Mi,formTarget:null,headers:pu,height:Oo,hidden:Mi,high:Oo,href:null,hrefLang:null,htmlFor:pu,httpEquiv:pu,id:null,imageSizes:null,imageSrcSet:zP,inputMode:null,integrity:null,is:null,isMap:Mi,itemId:null,itemProp:pu,itemRef:pu,itemScope:Mi,itemType:pu,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Mi,low:Oo,manifest:null,max:null,maxLength:Oo,media:null,method:null,min:null,minLength:Oo,multiple:Mi,muted:Mi,name:null,nonce:null,noModule:Mi,noValidate:Mi,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu: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,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:Mi,optimum:Oo,pattern:null,ping:pu,placeholder:null,playsInline:Mi,poster:null,preload:null,readOnly:Mi,referrerPolicy:null,rel:pu,required:Mi,reversed:Mi,rows:Oo,rowSpan:Oo,sandbox:pu,scope:null,scoped:Mi,seamless:Mi,selected:Mi,shape:null,size:Oo,sizes:null,slot:null,span:Oo,spellCheck:oI,src:null,srcDoc:null,srcLang:null,srcSet:zP,start:Oo,step:null,style:null,tabIndex:Oo,target:null,title:null,translate:null,type:null,typeMustMatch:Mi,useMap:null,value:oI,width:Oo,wrap:null,align:null,aLink:null,archive:pu,axis:null,background:null,bgColor:null,border:Oo,borderColor:null,bottomMargin:Oo,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Mi,declare:Mi,event:null,face:null,frame:null,frameBorder:null,hSpace:Oo,leftMargin:Oo,link:null,longDesc:null,lowSrc:null,marginHeight:Oo,marginWidth:Oo,noResize:Mi,noHref:Mi,noShade:Mi,noWrap:Mi,object:null,profile:null,prompt:null,rev:null,rightMargin:Oo,rules:null,scheme:null,scrolling:oI,standby:null,summary:null,text:null,topMargin:Oo,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Oo,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Mi,disableRemotePlayback:Mi,prefix:null,property:null,results:Oo,security:null,unselectable:null}}),C5n=Kxn,w5n=i5n,x5n=s5n,T5n=m5n,I5n=v5n,A5n=E5n,R5n=C5n([x5n,w5n,T5n,I5n,A5n]),N5n=ahe,O5n=RJe,L5n=TJe,lhe="data",P5n=D5n,k5n=/^data[-\w.:]+$/i,LJe=/-[a-z]/g,M5n=/[A-Z]/g;function D5n(e,t){var n=N5n(t),r=t,i=L5n;return n in e.normal?e.property[e.normal[n]]:(n.length>4&&n.slice(0,4)===lhe&&k5n.test(t)&&(t.charAt(4)==="-"?r=$5n(t):t=F5n(t),i=O5n),new i(r,t))}function $5n(e){var t=e.slice(5).replace(LJe,j5n);return lhe+t.charAt(0).toUpperCase()+t.slice(1)}function F5n(e){var t=e.slice(4);return LJe.test(t)?e:(t=t.replace(M5n,B5n),t.charAt(0)!=="-"&&(t="-"+t),lhe+t)}function B5n(e){return"-"+e.toLowerCase()}function j5n(e){return e.charAt(1).toUpperCase()}var z5n=U5n,i5e=/[#.]/g;function U5n(e,t){for(var n=e||"",r=t||"div",i={},a=0,o,s,l;a<n.length;)i5e.lastIndex=a,l=i5e.exec(n),o=n.slice(a,l?l.index:n.length),o&&(s?s==="#"?i.id=o:i.className?i.className.push(o):i.className=[o]:r=o,a+=o.length),l&&(s=l[0],a++);return{type:"element",tagName:r,properties:i,children:[]}}var che={};che.parse=G5n;che.stringify=q5n;var a5e="",H5n=" ",V5n=/[ \t\n\r\f]+/g;function G5n(e){var t=String(e||a5e).trim();return t===a5e?[]:t.split(V5n)}function q5n(e){return e.join(H5n).trim()}var uhe={};uhe.parse=W5n;uhe.stringify=Y5n;var aoe=",",o5e=" ",IA="";function W5n(e){for(var t=[],n=String(e||IA),r=n.indexOf(aoe),i=0,a=!1,o;!a;)r===-1&&(r=n.length,a=!0),o=n.slice(i,r).trim(),(o||!a)&&t.push(o),i=r+1,r=n.indexOf(aoe,i);return t}function Y5n(e,t){var n=t||{},r=n.padLeft===!1?IA:o5e,i=n.padRight?o5e:IA;return e[e.length-1]===IA&&(e=e.concat(IA)),e.join(i+aoe+r).trim()}var K5n=P5n,s5e=ahe,X5n=z5n,l5e=che.parse,c5e=uhe.parse,Z5n=J5n,Q5n={}.hasOwnProperty;function J5n(e,t,n){var r=n?i3n(n):null;return i;function i(o,s){var l=X5n(o,t),c=Array.prototype.slice.call(arguments,2),u=l.tagName.toLowerCase(),d;if(l.tagName=r&&Q5n.call(r,u)?r[u]:u,s&&e3n(s,l)&&(c.unshift(s),s=null),s)for(d in s)a(l.properties,d,s[d]);return PJe(l.children,c),l.tagName==="template"&&(l.content={type:"root",children:l.children},l.children=[]),l}function a(o,s,l){var c,u,d;l==null||l!==l||(c=K5n(e,s),u=c.property,d=l,typeof d=="string"&&(c.spaceSeparated?d=l5e(d):c.commaSeparated?d=c5e(d):c.commaOrSpaceSeparated&&(d=l5e(c5e(d).join(" ")))),u==="style"&&typeof l!="string"&&(d=r3n(d)),u==="className"&&o.className&&(d=o.className.concat(d)),o[u]=n3n(c,u,d))}}function e3n(e,t){return typeof e=="string"||"length"in e||t3n(t.tagName,e)}function t3n(e,t){var n=t.type;return e==="input"||!n||typeof n!="string"?!1:typeof t.children=="object"&&"length"in t.children?!0:(n=n.toLowerCase(),e==="button"?n!=="menu"&&n!=="submit"&&n!=="reset"&&n!=="button":"value"in t)}function PJe(e,t){var n,r;if(typeof t=="string"||typeof t=="number"){e.push({type:"text",value:String(t)});return}if(typeof t=="object"&&"length"in t){for(n=-1,r=t.length;++n<r;)PJe(e,t[n]);return}if(typeof t!="object"||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");e.push(t)}function n3n(e,t,n){var r,i,a;if(typeof n!="object"||!("length"in n))return u5e(e,t,n);for(i=n.length,r=-1,a=[];++r<i;)a[r]=u5e(e,t,n[r]);return a}function u5e(e,t,n){var r=n;return e.number||e.positiveNumber?!isNaN(r)&&r!==""&&(r=Number(r)):(e.boolean||e.overloadedBoolean)&&typeof r=="string"&&(r===""||s5e(n)===s5e(t))&&(r=!0),r}function r3n(e){var t=[],n;for(n in e)t.push([n,e[n]].join(": "));return t.join("; ")}function i3n(e){for(var t=e.length,n=-1,r={},i;++n<t;)i=e[n],r[i.toLowerCase()]=i;return r}var a3n=R5n,o3n=Z5n,kJe=o3n(a3n,"div");kJe.displayName="html";var s3n=kJe,l3n=s3n;const c3n="Æ",u3n="&",d3n="Á",f3n="Â",p3n="À",h3n="Å",m3n="Ã",g3n="Ä",v3n="©",y3n="Ç",b3n="Ð",_3n="É",S3n="Ê",E3n="È",C3n="Ë",w3n=">",x3n="Í",T3n="Î",I3n="Ì",A3n="Ï",R3n="<",N3n="Ñ",O3n="Ó",L3n="Ô",P3n="Ò",k3n="Ø",M3n="Õ",D3n="Ö",$3n='"',F3n="®",B3n="Þ",j3n="Ú",z3n="Û",U3n="Ù",H3n="Ü",V3n="Ý",G3n="á",q3n="â",W3n="´",Y3n="æ",K3n="à",X3n="&",Z3n="å",Q3n="ã",J3n="ä",eTn="¦",tTn="ç",nTn="¸",rTn="¢",iTn="©",aTn="¤",oTn="°",sTn="÷",lTn="é",cTn="ê",uTn="è",dTn="ð",fTn="ë",pTn="½",hTn="¼",mTn="¾",gTn=">",vTn="í",yTn="î",bTn="¡",_Tn="ì",STn="¿",ETn="ï",CTn="«",wTn="<",xTn="¯",TTn="µ",ITn="·",ATn=" ",RTn="¬",NTn="ñ",OTn="ó",LTn="ô",PTn="ò",kTn="ª",MTn="º",DTn="ø",$Tn="õ",FTn="ö",BTn="¶",jTn="±",zTn="£",UTn='"',HTn="»",VTn="®",GTn="§",qTn="­",WTn="¹",YTn="²",KTn="³",XTn="ß",ZTn="þ",QTn="×",JTn="ú",e4n="û",t4n="ù",n4n="¨",r4n="ü",i4n="ý",a4n="¥",o4n="ÿ",s4n={AElig:c3n,AMP:u3n,Aacute:d3n,Acirc:f3n,Agrave:p3n,Aring:h3n,Atilde:m3n,Auml:g3n,COPY:v3n,Ccedil:y3n,ETH:b3n,Eacute:_3n,Ecirc:S3n,Egrave:E3n,Euml:C3n,GT:w3n,Iacute:x3n,Icirc:T3n,Igrave:I3n,Iuml:A3n,LT:R3n,Ntilde:N3n,Oacute:O3n,Ocirc:L3n,Ograve:P3n,Oslash:k3n,Otilde:M3n,Ouml:D3n,QUOT:$3n,REG:F3n,THORN:B3n,Uacute:j3n,Ucirc:z3n,Ugrave:U3n,Uuml:H3n,Yacute:V3n,aacute:G3n,acirc:q3n,acute:W3n,aelig:Y3n,agrave:K3n,amp:X3n,aring:Z3n,atilde:Q3n,auml:J3n,brvbar:eTn,ccedil:tTn,cedil:nTn,cent:rTn,copy:iTn,curren:aTn,deg:oTn,divide:sTn,eacute:lTn,ecirc:cTn,egrave:uTn,eth:dTn,euml:fTn,frac12:pTn,frac14:hTn,frac34:mTn,gt:gTn,iacute:vTn,icirc:yTn,iexcl:bTn,igrave:_Tn,iquest:STn,iuml:ETn,laquo:CTn,lt:wTn,macr:xTn,micro:TTn,middot:ITn,nbsp:ATn,not:RTn,ntilde:NTn,oacute:OTn,ocirc:LTn,ograve:PTn,ordf:kTn,ordm:MTn,oslash:DTn,otilde:$Tn,ouml:FTn,para:BTn,plusmn:jTn,pound:zTn,quot:UTn,raquo:HTn,reg:VTn,sect:GTn,shy:qTn,sup1:WTn,sup2:YTn,sup3:KTn,szlig:XTn,thorn:ZTn,times:QTn,uacute:JTn,ucirc:e4n,ugrave:t4n,uml:n4n,uuml:r4n,yacute:i4n,yen:a4n,yuml:o4n},l4n={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};var MJe=c4n;function c4n(e){var t=typeof e=="string"?e.charCodeAt(0):e;return t>=48&&t<=57}var u4n=d4n;function d4n(e){var t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}var f4n=p4n;function p4n(e){var t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}var h4n=f4n,m4n=MJe,g4n=v4n;function v4n(e){return h4n(e)||m4n(e)}var UP,y4n=59,b4n=_4n;function _4n(e){var t="&"+e+";",n;return UP=UP||document.createElement("i"),UP.innerHTML=t,n=UP.textContent,n.charCodeAt(n.length-1)===y4n&&e!=="semi"||n===t?!1:n}var d5e=s4n,f5e=l4n,S4n=MJe,E4n=u4n,DJe=g4n,C4n=b4n,w4n=$4n,x4n={}.hasOwnProperty,Nw=String.fromCharCode,T4n=Function.prototype,p5e={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},I4n=9,h5e=10,A4n=12,R4n=32,m5e=38,N4n=59,O4n=60,L4n=61,P4n=35,k4n=88,M4n=120,D4n=65533,_x="named",dhe="hexadecimal",fhe="decimal",phe={};phe[dhe]=16;phe[fhe]=10;var hU={};hU[_x]=DJe;hU[fhe]=S4n;hU[dhe]=E4n;var $Je=1,FJe=2,BJe=3,jJe=4,zJe=5,ooe=6,UJe=7,B_={};B_[$Je]="Named character references must be terminated by a semicolon";B_[FJe]="Numeric character references must be terminated by a semicolon";B_[BJe]="Named character references cannot be empty";B_[jJe]="Numeric character references cannot be empty";B_[zJe]="Named character references must be known";B_[ooe]="Numeric character references cannot be disallowed";B_[UJe]="Numeric character references cannot be outside the permissible Unicode range";function $4n(e,t){var n={},r,i;t||(t={});for(i in p5e)r=t[i],n[i]=r??p5e[i];return(n.position.indent||n.position.start)&&(n.indent=n.position.indent||[],n.position=n.position.start),F4n(e,n)}function F4n(e,t){var n=t.additional,r=t.nonTerminated,i=t.text,a=t.reference,o=t.warning,s=t.textContext,l=t.referenceContext,c=t.warningContext,u=t.position,d=t.indent||[],f=e.length,p=0,h=-1,m=u.column||1,g=u.line||1,v="",y=[],_,S,C,w,x,T,A,I,R,N,P,L,$,D,z,U,H,M,B;for(typeof n=="string"&&(n=n.charCodeAt(0)),U=k(),I=o?F:T4n,p--,f++;++p<f;)if(x===h5e&&(m=d[h]||1),x=e.charCodeAt(p),x===m5e){if(A=e.charCodeAt(p+1),A===I4n||A===h5e||A===A4n||A===R4n||A===m5e||A===O4n||A!==A||n&&A===n){v+=Nw(x),m++;continue}for($=p+1,L=$,B=$,A===P4n?(B=++L,A=e.charCodeAt(B),A===k4n||A===M4n?(D=dhe,B=++L):D=fhe):D=_x,_="",P="",w="",z=hU[D],B--;++B<f&&(A=e.charCodeAt(B),!!z(A));)w+=Nw(A),D===_x&&x4n.call(d5e,w)&&(_=w,P=d5e[w]);C=e.charCodeAt(B)===N4n,C&&(B++,S=D===_x?C4n(w):!1,S&&(_=w,P=S)),M=1+B-$,!C&&!r||(w?D===_x?(C&&!P?I(zJe,1):(_!==w&&(B=L+_.length,M=1+B-L,C=!1),C||(R=_?$Je:BJe,t.attribute?(A=e.charCodeAt(B),A===L4n?(I(R,M),P=null):DJe(A)?P=null:I(R,M)):I(R,M))),T=P):(C||I(FJe,M),T=parseInt(w,phe[D]),B4n(T)?(I(UJe,M),T=Nw(D4n)):T in f5e?(I(ooe,M),T=f5e[T]):(N="",j4n(T)&&I(ooe,M),T>65535&&(T-=65536,N+=Nw(T>>>10|55296),T=56320|T&1023),T=N+Nw(T))):D!==_x&&I(jJe,M)),T?(G(),U=k(),p=B-1,m+=B-$+1,y.push(T),H=k(),H.offset++,a&&a.call(l,T,{start:U,end:H},e.slice($-1,B)),U=H):(w=e.slice($-1,B),v+=w,m+=w.length,p=B-1)}else x===10&&(g++,h++,m=0),x===x?(v+=Nw(x),m++):G();return y.join("");function k(){return{line:g,column:m,offset:p+(u.offset||0)}}function F(q,W){var K=k();K.column+=W,K.offset+=W,o.call(c,B_[q],K,q)}function G(){v&&(y.push(v),i&&i.call(s,v,{start:U,end:k()}),v="")}}function B4n(e){return e>=55296&&e<=57343||e>1114111}function j4n(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}var HJe={exports:{}};(function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
 * Prism: Lightweight, robust, elegant syntax highlighting
 *
 * @license MIT <https://opensource.org/licenses/MIT>
 * @author Lea Verou <https://lea.verou.me>
 * @namespace
 * @public
 */var n=function(r){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,a=0,o={},s={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function y(_){return _ instanceof l?new l(_.type,y(_.content),_.alias):Array.isArray(_)?_.map(y):_.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(y){return Object.prototype.toString.call(y).slice(8,-1)},objId:function(y){return y.__id||Object.defineProperty(y,"__id",{value:++a}),y.__id},clone:function y(_,S){S=S||{};var C,w;switch(s.util.type(_)){case"Object":if(w=s.util.objId(_),S[w])return S[w];C={},S[w]=C;for(var x in _)_.hasOwnProperty(x)&&(C[x]=y(_[x],S));return C;case"Array":return w=s.util.objId(_),S[w]?S[w]:(C=[],S[w]=C,_.forEach(function(T,A){C[A]=y(T,S)}),C);default:return _}},getLanguage:function(y){for(;y;){var _=i.exec(y.className);if(_)return _[1].toLowerCase();y=y.parentElement}return"none"},setLanguage:function(y,_){y.className=y.className.replace(RegExp(i,"gi"),""),y.classList.add("language-"+_)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(C){var y=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(C.stack)||[])[1];if(y){var _=document.getElementsByTagName("script");for(var S in _)if(_[S].src==y)return _[S]}return null}},isActive:function(y,_,S){for(var C="no-"+_;y;){var w=y.classList;if(w.contains(_))return!0;if(w.contains(C))return!1;y=y.parentElement}return!!S}},languages:{plain:o,plaintext:o,text:o,txt:o,extend:function(y,_){var S=s.util.clone(s.languages[y]);for(var C in _)S[C]=_[C];return S},insertBefore:function(y,_,S,C){C=C||s.languages;var w=C[y],x={};for(var T in w)if(w.hasOwnProperty(T)){if(T==_)for(var A in S)S.hasOwnProperty(A)&&(x[A]=S[A]);S.hasOwnProperty(T)||(x[T]=w[T])}var I=C[y];return C[y]=x,s.languages.DFS(s.languages,function(R,N){N===I&&R!=y&&(this[R]=x)}),x},DFS:function y(_,S,C,w){w=w||{};var x=s.util.objId;for(var T in _)if(_.hasOwnProperty(T)){S.call(_,T,_[T],C||T);var A=_[T],I=s.util.type(A);I==="Object"&&!w[x(A)]?(w[x(A)]=!0,y(A,S,null,w)):I==="Array"&&!w[x(A)]&&(w[x(A)]=!0,y(A,S,T,w))}}},plugins:{},highlightAll:function(y,_){s.highlightAllUnder(document,y,_)},highlightAllUnder:function(y,_,S){var C={callback:S,container:y,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};s.hooks.run("before-highlightall",C),C.elements=Array.prototype.slice.apply(C.container.querySelectorAll(C.selector)),s.hooks.run("before-all-elements-highlight",C);for(var w=0,x;x=C.elements[w++];)s.highlightElement(x,_===!0,C.callback)},highlightElement:function(y,_,S){var C=s.util.getLanguage(y),w=s.languages[C];s.util.setLanguage(y,C);var x=y.parentElement;x&&x.nodeName.toLowerCase()==="pre"&&s.util.setLanguage(x,C);var T=y.textContent,A={element:y,language:C,grammar:w,code:T};function I(N){A.highlightedCode=N,s.hooks.run("before-insert",A),A.element.innerHTML=A.highlightedCode,s.hooks.run("after-highlight",A),s.hooks.run("complete",A),S&&S.call(A.element)}if(s.hooks.run("before-sanity-check",A),x=A.element.parentElement,x&&x.nodeName.toLowerCase()==="pre"&&!x.hasAttribute("tabindex")&&x.setAttribute("tabindex","0"),!A.code){s.hooks.run("complete",A),S&&S.call(A.element);return}if(s.hooks.run("before-highlight",A),!A.grammar){I(s.util.encode(A.code));return}if(_&&r.Worker){var R=new Worker(s.filename);R.onmessage=function(N){I(N.data)},R.postMessage(JSON.stringify({language:A.language,code:A.code,immediateClose:!0}))}else I(s.highlight(A.code,A.grammar,A.language))},highlight:function(y,_,S){var C={code:y,grammar:_,language:S};if(s.hooks.run("before-tokenize",C),!C.grammar)throw new Error('The language "'+C.language+'" has no grammar.');return C.tokens=s.tokenize(C.code,C.grammar),s.hooks.run("after-tokenize",C),l.stringify(s.util.encode(C.tokens),C.language)},tokenize:function(y,_){var S=_.rest;if(S){for(var C in S)_[C]=S[C];delete _.rest}var w=new d;return f(w,w.head,y),u(y,w,_,w.head,0),h(w)},hooks:{all:{},add:function(y,_){var S=s.hooks.all;S[y]=S[y]||[],S[y].push(_)},run:function(y,_){var S=s.hooks.all[y];if(!(!S||!S.length))for(var C=0,w;w=S[C++];)w(_)}},Token:l};r.Prism=s;function l(y,_,S,C){this.type=y,this.content=_,this.alias=S,this.length=(C||"").length|0}l.stringify=function y(_,S){if(typeof _=="string")return _;if(Array.isArray(_)){var C="";return _.forEach(function(I){C+=y(I,S)}),C}var w={type:_.type,content:y(_.content,S),tag:"span",classes:["token",_.type],attributes:{},language:S},x=_.alias;x&&(Array.isArray(x)?Array.prototype.push.apply(w.classes,x):w.classes.push(x)),s.hooks.run("wrap",w);var T="";for(var A in w.attributes)T+=" "+A+'="'+(w.attributes[A]||"").replace(/"/g,"&quot;")+'"';return"<"+w.tag+' class="'+w.classes.join(" ")+'"'+T+">"+w.content+"</"+w.tag+">"};function c(y,_,S,C){y.lastIndex=_;var w=y.exec(S);if(w&&C&&w[1]){var x=w[1].length;w.index+=x,w[0]=w[0].slice(x)}return w}function u(y,_,S,C,w,x){for(var T in S)if(!(!S.hasOwnProperty(T)||!S[T])){var A=S[T];A=Array.isArray(A)?A:[A];for(var I=0;I<A.length;++I){if(x&&x.cause==T+","+I)return;var R=A[I],N=R.inside,P=!!R.lookbehind,L=!!R.greedy,$=R.alias;if(L&&!R.pattern.global){var D=R.pattern.toString().match(/[imsuy]*$/)[0];R.pattern=RegExp(R.pattern.source,D+"g")}for(var z=R.pattern||R,U=C.next,H=w;U!==_.tail&&!(x&&H>=x.reach);H+=U.value.length,U=U.next){var M=U.value;if(_.length>y.length)return;if(!(M instanceof l)){var B=1,k;if(L){if(k=c(z,H,y,P),!k||k.index>=y.length)break;var W=k.index,F=k.index+k[0].length,G=H;for(G+=U.value.length;W>=G;)U=U.next,G+=U.value.length;if(G-=U.value.length,H=G,U.value instanceof l)continue;for(var q=U;q!==_.tail&&(G<F||typeof q.value=="string");q=q.next)B++,G+=q.value.length;B--,M=y.slice(H,G),k.index-=H}else if(k=c(z,0,M,P),!k)continue;var W=k.index,K=k[0],J=M.slice(0,W),te=M.slice(W+K.length),ae=H+M.length;x&&ae>x.reach&&(x.reach=ae);var re=U.prev;J&&(re=f(_,re,J),H+=J.length),p(_,re,B);var ue=new l(T,N?s.tokenize(K,N):K,$,K);if(U=f(_,re,ue),te&&f(_,U,te),B>1){var de={cause:T+","+I,reach:ae};u(y,_,S,U.prev,H,de),x&&de.reach>x.reach&&(x.reach=de.reach)}}}}}}function d(){var y={value:null,prev:null,next:null},_={value:null,prev:y,next:null};y.next=_,this.head=y,this.tail=_,this.length=0}function f(y,_,S){var C=_.next,w={value:S,prev:_,next:C};return _.next=w,C.prev=w,y.length++,w}function p(y,_,S){for(var C=_.next,w=0;w<S&&C!==y.tail;w++)C=C.next;_.next=C,C.prev=_,y.length-=w}function h(y){for(var _=[],S=y.head.next;S!==y.tail;)_.push(S.value),S=S.next;return _}if(!r.document)return r.addEventListener&&(s.disableWorkerMessageHandler||r.addEventListener("message",function(y){var _=JSON.parse(y.data),S=_.language,C=_.code,w=_.immediateClose;r.postMessage(s.highlight(C,s.languages[S],S)),w&&r.close()},!1)),s;var m=s.util.currentScript();m&&(s.filename=m.src,m.hasAttribute("data-manual")&&(s.manual=!0));function g(){s.manual||s.highlightAll()}if(!s.manual){var v=document.readyState;v==="loading"||v==="interactive"&&m&&m.defer?document.addEventListener("DOMContentLoaded",g):window.requestAnimationFrame?window.requestAnimationFrame(g):window.setTimeout(g,16)}return s}(t);e.exports&&(e.exports=n),typeof ns<"u"&&(ns.Prism=n)})(HJe);var z4n=HJe.exports,U4n=hhe;hhe.displayName="markup";hhe.aliases=["html","mathml","svg","xml","ssml","atom","rss"];function hhe(e){e.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.value.replace(/&amp;/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(n,r){var i={};i["language-"+r]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[r]},i.cdata=/^<!\[CDATA\[|\]\]>$/i;var a={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:i}};a["language-"+r]={pattern:/[\s\S]+/,inside:e.languages[r]};var o={};o[n]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:a},e.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}var H4n=mhe;mhe.displayName="css";mhe.aliases=[];function mhe(e){(function(t){var n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var r=t.languages.markup;r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))})(e)}var V4n=ghe;ghe.displayName="clike";ghe.aliases=[];function ghe(e){e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}var G4n=vhe;vhe.displayName="javascript";vhe.aliases=["js"];function vhe(e){e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}var AA=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof ns=="object"?ns:{},q4n=lIn();AA.Prism={manual:!0,disableWorkerMessageHandler:!0};var W4n=l3n,Y4n=w4n,VJe=z4n,K4n=U4n,X4n=H4n,Z4n=V4n,Q4n=G4n;q4n();var yhe={}.hasOwnProperty;function GJe(){}GJe.prototype=VJe;var vl=new GJe,J4n=vl;vl.highlight=tIn;vl.register=i8;vl.alias=eIn;vl.registered=nIn;vl.listLanguages=rIn;i8(K4n);i8(X4n);i8(Z4n);i8(Q4n);vl.util.encode=oIn;vl.Token.stringify=iIn;function i8(e){if(typeof e!="function"||!e.displayName)throw new Error("Expected `function` for `grammar`, got `"+e+"`");vl.languages[e.displayName]===void 0&&e(vl)}function eIn(e,t){var n=vl.languages,r=e,i,a,o,s;t&&(r={},r[e]=t);for(i in r)for(a=r[i],a=typeof a=="string"?[a]:a,o=a.length,s=-1;++s<o;)n[a[s]]=n[i]}function tIn(e,t){var n=VJe.highlight,r;if(typeof e!="string")throw new Error("Expected `string` for `value`, got `"+e+"`");if(vl.util.type(t)==="Object")r=t,t=null;else{if(typeof t!="string")throw new Error("Expected `string` for `name`, got `"+t+"`");if(yhe.call(vl.languages,t))r=vl.languages[t];else throw new Error("Unknown language: `"+t+"` is not registered")}return n.call(this,e,r,t)}function nIn(e){if(typeof e!="string")throw new Error("Expected `string` for `language`, got `"+e+"`");return yhe.call(vl.languages,e)}function rIn(){var e=vl.languages,t=[],n;for(n in e)yhe.call(e,n)&&typeof e[n]=="object"&&t.push(n);return t}function iIn(e,t,n){var r;return typeof e=="string"?{type:"text",value:e}:vl.util.type(e)==="Array"?aIn(e,t):(r={type:e.type,content:vl.Token.stringify(e.content,t,n),tag:"span",classes:["token",e.type],attributes:{},language:t,parent:n},e.alias&&(r.classes=r.classes.concat(e.alias)),vl.hooks.run("wrap",r),W4n(r.tag+"."+r.classes.join("."),sIn(r.attributes),r.content))}function aIn(e,t){for(var n=[],r=e.length,i=-1,a;++i<r;)a=e[i],a!==""&&a!==null&&a!==void 0&&n.push(a);for(i=-1,r=n.length;++i<r;)a=n[i],n[i]=vl.Token.stringify(a,t,n);return n}function oIn(e){return e}function sIn(e){var t;for(t in e)e[t]=Y4n(e[t]);return e}function lIn(){var e="Prism"in AA,t=e?AA.Prism:void 0;return n;function n(){e?AA.Prism=t:delete AA.Prism,e=void 0,t=void 0}}const cIn={'code[class*="language-"]':{color:"black",background:"none",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"black",background:"#f5f2f0",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},':not(pre) > code[class*="language-"]':{background:"#f5f2f0",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"slategray"},prolog:{color:"slategray"},doctype:{color:"slategray"},cdata:{color:"slategray"},punctuation:{color:"#999"},namespace:{Opacity:".7"},property:{color:"#905"},tag:{color:"#905"},boolean:{color:"#905"},number:{color:"#905"},constant:{color:"#905"},symbol:{color:"#905"},deleted:{color:"#905"},selector:{color:"#690"},"attr-name":{color:"#690"},string:{color:"#690"},char:{color:"#690"},builtin:{color:"#690"},inserted:{color:"#690"},operator:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},entity:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)",cursor:"help"},url:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".language-css .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".style .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},atrule:{color:"#07a"},"attr-value":{color:"#07a"},keyword:{color:"#07a"},function:{color:"#DD4A68"},"class-name":{color:"#DD4A68"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"bold"},variable:{color:"#e90"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}};var zW,g5e;function uIn(){if(g5e)return zW;g5e=1,zW=e,e.displayName="abap",e.aliases=[];function e(t){t.languages.abap={comment:/^\*.*/m,string:/(`|')(?:\\.|(?!\1)[^\\\r\n])*\1/,"string-template":{pattern:/([|}])(?:\\.|[^\\|{\r\n])*(?=[|{])/,lookbehind:!0,alias:"string"},"eol-comment":{pattern:/(^|\s)".*/m,lookbehind:!0,alias:"comment"},keyword:{pattern:/(\s|\.|^)(?:SCIENTIFIC_WITH_LEADING_ZERO|SCALE_PRESERVING_SCIENTIFIC|RMC_COMMUNICATION_FAILURE|END-ENHANCEMENT-SECTION|MULTIPLY-CORRESPONDING|SUBTRACT-CORRESPONDING|VERIFICATION-MESSAGE|DIVIDE-CORRESPONDING|ENHANCEMENT-SECTION|CURRENCY_CONVERSION|RMC_SYSTEM_FAILURE|START-OF-SELECTION|MOVE-CORRESPONDING|RMC_INVALID_STATUS|CUSTOMER-FUNCTION|END-OF-DEFINITION|ENHANCEMENT-POINT|SYSTEM-EXCEPTIONS|ADD-CORRESPONDING|SCALE_PRESERVING|SELECTION-SCREEN|CURSOR-SELECTION|END-OF-SELECTION|LOAD-OF-PROGRAM|SCROLL-BOUNDARY|SELECTION-TABLE|EXCEPTION-TABLE|IMPLEMENTATIONS|PARAMETER-TABLE|RIGHT-JUSTIFIED|UNIT_CONVERSION|AUTHORITY-CHECK|LIST-PROCESSING|SIGN_AS_POSTFIX|COL_BACKGROUND|IMPLEMENTATION|INTERFACE-POOL|TRANSFORMATION|IDENTIFICATION|ENDENHANCEMENT|LINE-SELECTION|INITIALIZATION|LEFT-JUSTIFIED|SELECT-OPTIONS|SELECTION-SETS|COMMUNICATION|CORRESPONDING|DECIMAL_SHIFT|PRINT-CONTROL|VALUE-REQUEST|CHAIN-REQUEST|FUNCTION-POOL|FIELD-SYMBOLS|FUNCTIONALITY|INVERTED-DATE|SELECTION-SET|CLASS-METHODS|OUTPUT-LENGTH|CLASS-CODING|COL_NEGATIVE|ERRORMESSAGE|FIELD-GROUPS|HELP-REQUEST|NO-EXTENSION|NO-TOPOFPAGE|REDEFINITION|DISPLAY-MODE|ENDINTERFACE|EXIT-COMMAND|FIELD-SYMBOL|NO-SCROLLING|SHORTDUMP-ID|ACCESSPOLICY|CLASS-EVENTS|COL_POSITIVE|DECLARATIONS|ENHANCEMENTS|FILTER-TABLE|SWITCHSTATES|SYNTAX-CHECK|TRANSPORTING|ASYNCHRONOUS|SYNTAX-TRACE|TOKENIZATION|USER-COMMAND|WITH-HEADING|ABAP-SOURCE|BREAK-POINT|CHAIN-INPUT|COMPRESSION|FIXED-POINT|NEW-SECTION|NON-UNICODE|OCCURRENCES|RESPONSIBLE|SYSTEM-CALL|TRACE-TABLE|ABBREVIATED|CHAR-TO-HEX|END-OF-FILE|ENDFUNCTION|ENVIRONMENT|ASSOCIATION|COL_HEADING|EDITOR-CALL|END-OF-PAGE|ENGINEERING|IMPLEMENTED|INTENSIFIED|RADIOBUTTON|SYSTEM-EXIT|TOP-OF-PAGE|TRANSACTION|APPLICATION|CONCATENATE|DESTINATION|ENHANCEMENT|IMMEDIATELY|NO-GROUPING|PRECOMPILED|REPLACEMENT|TITLE-LINES|ACTIVATION|BYTE-ORDER|CLASS-POOL|CONNECTION|CONVERSION|DEFINITION|DEPARTMENT|EXPIRATION|INHERITING|MESSAGE-ID|NO-HEADING|PERFORMING|QUEUE-ONLY|RIGHTSPACE|SCIENTIFIC|STATUSINFO|STRUCTURES|SYNCPOINTS|WITH-TITLE|ATTRIBUTES|BOUNDARIES|CLASS-DATA|COL_NORMAL|DD\/MM\/YYYY|DESCENDING|INTERFACES|LINE-COUNT|MM\/DD\/YYYY|NON-UNIQUE|PRESERVING|SELECTIONS|STATEMENTS|SUBROUTINE|TRUNCATION|TYPE-POOLS|ARITHMETIC|BACKGROUND|ENDPROVIDE|EXCEPTIONS|IDENTIFIER|INDEX-LINE|OBLIGATORY|PARAMETERS|PERCENTAGE|PUSHBUTTON|RESOLUTION|COMPONENTS|DEALLOCATE|DISCONNECT|DUPLICATES|FIRST-LINE|HEAD-LINES|NO-DISPLAY|OCCURRENCE|RESPECTING|RETURNCODE|SUBMATCHES|TRACE-FILE|ASCENDING|BYPASSING|ENDMODULE|EXCEPTION|EXCLUDING|EXPORTING|INCREMENT|MATCHCODE|PARAMETER|PARTIALLY|PREFERRED|REFERENCE|REPLACING|RETURNING|SELECTION|SEPARATED|SPECIFIED|STATEMENT|TIMESTAMP|TYPE-POOL|ACCEPTING|APPENDAGE|ASSIGNING|COL_GROUP|COMPARING|CONSTANTS|DANGEROUS|IMPORTING|INSTANCES|LEFTSPACE|LOG-POINT|QUICKINFO|READ-ONLY|SCROLLING|SQLSCRIPT|STEP-LOOP|TOP-LINES|TRANSLATE|APPENDING|AUTHORITY|CHARACTER|COMPONENT|CONDITION|DIRECTORY|DUPLICATE|MESSAGING|RECEIVING|SUBSCREEN|ACCORDING|COL_TOTAL|END-LINES|ENDMETHOD|ENDSELECT|EXPANDING|EXTENSION|INCLUDING|INFOTYPES|INTERFACE|INTERVALS|LINE-SIZE|PF-STATUS|PROCEDURE|PROTECTED|REQUESTED|RESUMABLE|RIGHTPLUS|SAP-SPOOL|SECONDARY|STRUCTURE|SUBSTRING|TABLEVIEW|NUMOFCHAR|ADJACENT|ANALYSIS|ASSIGNED|BACKWARD|CHANNELS|CHECKBOX|CONTINUE|CRITICAL|DATAINFO|DD\/MM\/YY|DURATION|ENCODING|ENDCLASS|FUNCTION|LEFTPLUS|LINEFEED|MM\/DD\/YY|OVERFLOW|RECEIVED|SKIPPING|SORTABLE|STANDARD|SUBTRACT|SUPPRESS|TABSTRIP|TITLEBAR|TRUNCATE|UNASSIGN|WHENEVER|ANALYZER|COALESCE|COMMENTS|CONDENSE|DECIMALS|DEFERRED|ENDWHILE|EXPLICIT|KEYWORDS|MESSAGES|POSITION|PRIORITY|RECEIVER|RENAMING|TIMEZONE|TRAILING|ALLOCATE|CENTERED|CIRCULAR|CONTROLS|CURRENCY|DELETING|DESCRIBE|DISTANCE|ENDCATCH|EXPONENT|EXTENDED|GENERATE|IGNORING|INCLUDES|INTERNAL|MAJOR-ID|MODIFIER|NEW-LINE|OPTIONAL|PROPERTY|ROLLBACK|STARTING|SUPPLIED|ABSTRACT|CHANGING|CONTEXTS|CREATING|CUSTOMER|DATABASE|DAYLIGHT|DEFINING|DISTINCT|DIVISION|ENABLING|ENDCHAIN|ESCAPING|HARMLESS|IMPLICIT|INACTIVE|LANGUAGE|MINOR-ID|MULTIPLY|NEW-PAGE|NO-TITLE|POS_HIGH|SEPARATE|TEXTPOOL|TRANSFER|SELECTOR|DBMAXLEN|ITERATOR|ARCHIVE|BIT-XOR|BYTE-CO|COLLECT|COMMENT|CURRENT|DEFAULT|DISPLAY|ENDFORM|EXTRACT|LEADING|LISTBOX|LOCATOR|MEMBERS|METHODS|NESTING|POS_LOW|PROCESS|PROVIDE|RAISING|RESERVE|SECONDS|SUMMARY|VISIBLE|BETWEEN|BIT-AND|BYTE-CS|CLEANUP|COMPUTE|CONTROL|CONVERT|DATASET|ENDCASE|FORWARD|HEADERS|HOTSPOT|INCLUDE|INVERSE|KEEPING|NO-ZERO|OBJECTS|OVERLAY|PADDING|PATTERN|PROGRAM|REFRESH|SECTION|SUMMING|TESTING|VERSION|WINDOWS|WITHOUT|BIT-NOT|BYTE-CA|BYTE-NA|CASTING|CONTEXT|COUNTRY|DYNAMIC|ENABLED|ENDLOOP|EXECUTE|FRIENDS|HANDLER|HEADING|INITIAL|\*-INPUT|LOGFILE|MAXIMUM|MINIMUM|NO-GAPS|NO-SIGN|PRAGMAS|PRIMARY|PRIVATE|REDUCED|REPLACE|REQUEST|RESULTS|UNICODE|WARNING|ALIASES|BYTE-CN|BYTE-NS|CALLING|COL_KEY|COLUMNS|CONNECT|ENDEXEC|ENTRIES|EXCLUDE|FILTERS|FURTHER|HELP-ID|LOGICAL|MAPPING|MESSAGE|NAMETAB|OPTIONS|PACKAGE|PERFORM|RECEIVE|STATICS|VARYING|BINDING|CHARLEN|GREATER|XSTRLEN|ACCEPT|APPEND|DETAIL|ELSEIF|ENDING|ENDTRY|FORMAT|FRAMES|GIVING|HASHED|HEADER|IMPORT|INSERT|MARGIN|MODULE|NATIVE|OBJECT|OFFSET|REMOTE|RESUME|SAVING|SIMPLE|SUBMIT|TABBED|TOKENS|UNIQUE|UNPACK|UPDATE|WINDOW|YELLOW|ACTUAL|ASPECT|CENTER|CURSOR|DELETE|DIALOG|DIVIDE|DURING|ERRORS|EVENTS|EXTEND|FILTER|HANDLE|HAVING|IGNORE|LITTLE|MEMORY|NO-GAP|OCCURS|OPTION|PERSON|PLACES|PUBLIC|REDUCE|REPORT|RESULT|SINGLE|SORTED|SWITCH|SYNTAX|TARGET|VALUES|WRITER|ASSERT|BLOCKS|BOUNDS|BUFFER|CHANGE|COLUMN|COMMIT|CONCAT|COPIES|CREATE|DDMMYY|DEFINE|ENDIAN|ESCAPE|EXPAND|KERNEL|LAYOUT|LEGACY|LEVELS|MMDDYY|NUMBER|OUTPUT|RANGES|READER|RETURN|SCREEN|SEARCH|SELECT|SHARED|SOURCE|STABLE|STATIC|SUBKEY|SUFFIX|TABLES|UNWIND|YYMMDD|ASSIGN|BACKUP|BEFORE|BINARY|BIT-OR|BLANKS|CLIENT|CODING|COMMON|DEMAND|DYNPRO|EXCEPT|EXISTS|EXPORT|FIELDS|GLOBAL|GROUPS|LENGTH|LOCALE|MEDIUM|METHOD|MODIFY|NESTED|OTHERS|REJECT|SCROLL|SUPPLY|SYMBOL|ENDFOR|STRLEN|ALIGN|BEGIN|BOUND|ENDAT|ENTRY|EVENT|FINAL|FLUSH|GRANT|INNER|SHORT|USING|WRITE|AFTER|BLACK|BLOCK|CLOCK|COLOR|COUNT|DUMMY|EMPTY|ENDDO|ENDON|GREEN|INDEX|INOUT|LEAVE|LEVEL|LINES|MODIF|ORDER|OUTER|RANGE|RESET|RETRY|RIGHT|SMART|SPLIT|STYLE|TABLE|THROW|UNDER|UNTIL|UPPER|UTF-8|WHERE|ALIAS|BLANK|CLEAR|CLOSE|EXACT|FETCH|FIRST|FOUND|GROUP|LLANG|LOCAL|OTHER|REGEX|SPOOL|TITLE|TYPES|VALID|WHILE|ALPHA|BOXED|CATCH|CHAIN|CHECK|CLASS|COVER|ENDIF|EQUIV|FIELD|FLOOR|FRAME|INPUT|LOWER|MATCH|NODES|PAGES|PRINT|RAISE|ROUND|SHIFT|SPACE|SPOTS|STAMP|STATE|TASKS|TIMES|TRMAC|ULINE|UNION|VALUE|WIDTH|EQUAL|LOG10|TRUNC|BLOB|CASE|CEIL|CLOB|COND|EXIT|FILE|GAPS|HOLD|INCL|INTO|KEEP|KEYS|LAST|LINE|LONG|LPAD|MAIL|MODE|OPEN|PINK|READ|ROWS|TEST|THEN|ZERO|AREA|BACK|BADI|BYTE|CAST|EDIT|EXEC|FAIL|FIND|FKEQ|FONT|FREE|GKEQ|HIDE|INIT|ITNO|LATE|LOOP|MAIN|MARK|MOVE|NEXT|NULL|RISK|ROLE|UNIT|WAIT|ZONE|BASE|CALL|CODE|DATA|DATE|FKGE|GKGE|HIGH|KIND|LEFT|LIST|MASK|MESH|NAME|NODE|PACK|PAGE|POOL|SEND|SIGN|SIZE|SOME|STOP|TASK|TEXT|TIME|USER|VARY|WITH|WORD|BLUE|CONV|COPY|DEEP|ELSE|FORM|FROM|HINT|ICON|JOIN|LIKE|LOAD|ONLY|PART|SCAN|SKIP|SORT|TYPE|UNIX|VIEW|WHEN|WORK|ACOS|ASIN|ATAN|COSH|EACH|FRAC|LESS|RTTI|SINH|SQRT|TANH|AVG|BIT|DIV|ISO|LET|OUT|PAD|SQL|ALL|CI_|CPI|END|LOB|LPI|MAX|MIN|NEW|OLE|RUN|SET|\?TO|YES|ABS|ADD|AND|BIG|FOR|HDB|JOB|LOW|NOT|SAP|TRY|VIA|XML|ANY|GET|IDS|KEY|MOD|OFF|PUT|RAW|RED|REF|SUM|TAB|XSD|CNT|COS|EXP|LOG|SIN|TAN|XOR|AT|CO|CP|DO|GT|ID|IF|NS|OR|BT|CA|CS|GE|NA|NB|EQ|IN|LT|NE|NO|OF|ON|PF|TO|AS|BY|CN|IS|LE|NP|UP|E|I|M|O|Z|C|X)\b/i,lookbehind:!0},number:/\b\d+\b/,operator:{pattern:/(\s)(?:\*\*?|<[=>]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/}}return zW}var UW,v5e;function dIn(){if(v5e)return UW;v5e=1,UW=e,e.displayName="abnf",e.aliases=[];function e(t){(function(n){var r="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";n.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+r+"|<"+r+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(t)}return UW}var HW,y5e;function fIn(){if(y5e)return HW;y5e=1,HW=e,e.displayName="actionscript",e.aliases=[];function e(t){t.languages.actionscript=t.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),t.languages.actionscript["class-name"].alias="function",delete t.languages.actionscript.parameter,delete t.languages.actionscript["literal-property"],t.languages.markup&&t.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:t.languages.markup}})}return HW}var VW,b5e;function pIn(){if(b5e)return VW;b5e=1,VW=e,e.displayName="ada",e.aliases=[];function e(t){t.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],"attr-name":/\b'\w+/,keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}return VW}var GW,_5e;function hIn(){if(_5e)return GW;_5e=1,GW=e,e.displayName="agda",e.aliases=[];function e(t){(function(n){n.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}})(t)}return GW}var qW,S5e;function mIn(){if(S5e)return qW;S5e=1,qW=e,e.displayName="al",e.aliases=[];function e(t){t.languages.al={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},function:{pattern:/(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,lookbehind:!0},keyword:[/\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,/\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i],number:/\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,boolean:/\b(?:false|true)\b/i,variable:/\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,"class-name":/\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,operator:/\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,punctuation:/[()\[\]{}:.;,]/}}return qW}var WW,E5e;function gIn(){if(E5e)return WW;E5e=1,WW=e,e.displayName="antlr4",e.aliases=["g4"];function e(t){t.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},t.languages.g4=t.languages.antlr4}return WW}var YW,C5e;function vIn(){if(C5e)return YW;C5e=1,YW=e,e.displayName="apacheconf",e.aliases=[];function e(t){t.languages.apacheconf={comment:/#.*/,"directive-inline":{pattern:/(^[\t ]*)\b(?:AcceptFilter|AcceptPathInfo|AccessFileName|Action|Add(?:Alt|AltByEncoding|AltByType|Charset|DefaultCharset|Description|Encoding|Handler|Icon|IconByEncoding|IconByType|InputFilter|Language|ModuleInfo|OutputFilter|OutputFilterByType|Type)|Alias|AliasMatch|Allow(?:CONNECT|EncodedSlashes|Methods|Override|OverrideList)?|Anonymous(?:_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail)?|AsyncRequestWorkerFactor|Auth(?:BasicAuthoritative|BasicFake|BasicProvider|BasicUseDigestAlgorithm|DBDUserPWQuery|DBDUserRealmQuery|DBMGroupFile|DBMType|DBMUserFile|Digest(?:Algorithm|Domain|NonceLifetime|Provider|Qop|ShmemSize)|Form(?:Authoritative|Body|DisableNoStore|FakeBasicAuth|Location|LoginRequiredLocation|LoginSuccessLocation|LogoutLocation|Method|Mimetype|Password|Provider|SitePassphrase|Size|Username)|GroupFile|LDAP(?:AuthorizePrefix|BindAuthoritative|BindDN|BindPassword|CharsetConfig|CompareAsUser|CompareDNOnServer|DereferenceAliases|GroupAttribute|GroupAttributeIsDN|InitialBindAsUser|InitialBindPattern|MaxSubGroupDepth|RemoteUserAttribute|RemoteUserIsDN|SearchAsUser|SubGroupAttribute|SubGroupClass|Url)|Merging|Name|nCache(?:Context|Enable|ProvideFor|SOCache|Timeout)|nzFcgiCheckAuthnProvider|nzFcgiDefineProvider|Type|UserFile|zDBDLoginToReferer|zDBDQuery|zDBDRedirectQuery|zDBMType|zSendForbiddenOnFailure)|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|Cache(?:DefaultExpire|DetailHeader|DirLength|DirLevels|Disable|Enable|File|Header|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|IgnoreQueryString|IgnoreURLSessionIdentifiers|KeyBaseURL|LastModifiedFactor|Lock|LockMaxAge|LockPath|MaxExpire|MaxFileSize|MinExpire|MinFileSize|NegotiatedDocs|QuickHandler|ReadSize|ReadTime|Root|Socache(?:MaxSize|MaxTime|MinTime|ReadSize|ReadTime)?|StaleOnError|StoreExpired|StoreNoStore|StorePrivate)|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|Deflate(?:BufferSize|CompressionLevel|FilterNote|InflateLimitRequestBody|InflateRatio(?:Burst|Limit)|MemLevel|WindowSize)|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|Heartbeat(?:Address|Listen|MaxServers|Storage)|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|Index(?:HeadInsert|Ignore|IgnoreReset|Options|OrderDefault|StyleSheet)|InputSed|ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer)|KeepAlive|KeepAliveTimeout|KeptBodySize|LanguagePriority|LDAP(?:CacheEntries|CacheTTL|ConnectionPoolTTL|ConnectionTimeout|LibraryDebug|OpCacheEntries|OpCacheTTL|ReferralHopLimit|Referrals|Retries|RetryDelay|SharedCacheFile|SharedCacheSize|Timeout|TrustedClientCert|TrustedGlobalCert|TrustedMode|VerifyServerCert)|Limit(?:InternalRecursion|Request(?:Body|Fields|FieldSize|Line)|XMLRequestBody)|Listen|ListenBackLog|LoadFile|LoadModule|LogFormat|LogLevel|LogMessage|LuaAuthzProvider|LuaCodeCache|Lua(?:Hook(?:AccessChecker|AuthChecker|CheckUserID|Fixups|InsertFilter|Log|MapToStorage|TranslateName|TypeChecker)|Inherit|InputFilter|MapHandler|OutputFilter|PackageCPath|PackagePath|QuickHandler|Root|Scope)|Max(?:ConnectionsPerChild|KeepAliveRequests|MemFree|RangeOverlaps|RangeReversals|Ranges|RequestWorkers|SpareServers|SpareThreads|Threads)|MergeTrailers|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads|MMapFile|ModemStandard|ModMimeUsePathInfo|MultiviewsMatch|Mutex|NameVirtualHost|NoProxy|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|OutputSed|PassEnv|PidFile|PrivilegesMode|Protocol|ProtocolEcho|Proxy(?:AddHeaders|BadHeader|Block|Domain|ErrorOverride|ExpressDBMFile|ExpressDBMType|ExpressEnable|FtpDirCharset|FtpEscapeWildcards|FtpListOnWildcard|HTML(?:BufSize|CharsetOut|DocType|Enable|Events|Extended|Fixups|Interp|Links|Meta|StripComments|URLMap)|IOBufferSize|MaxForwards|Pass(?:Inherit|InterpolateEnv|Match|Reverse|ReverseCookieDomain|ReverseCookiePath)?|PreserveHost|ReceiveBufferSize|Remote|RemoteMatch|Requests|SCGIInternalRedirect|SCGISendfile|Set|SourceAddress|Status|Timeout|Via)|ReadmeName|ReceiveBufferSize|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ReflectorHeader|RemoteIP(?:Header|InternalProxy|InternalProxyList|ProxiesHeader|TrustedProxy|TrustedProxyList)|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader|RequestReadTimeout|Require|Rewrite(?:Base|Cond|Engine|Map|Options|Rule)|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScoreBoardFile|Script(?:Alias|AliasMatch|InterpreterSource|Log|LogBuffer|LogLength|Sock)?|SecureListen|SeeRequestTail|SendBufferSize|Server(?:Admin|Alias|Limit|Name|Path|Root|Signature|Tokens)|Session(?:Cookie(?:Name|Name2|Remove)|Crypto(?:Cipher|Driver|Passphrase|PassphraseFile)|DBD(?:CookieName|CookieName2|CookieRemove|DeleteLabel|InsertLabel|PerUser|SelectLabel|UpdateLabel)|Env|Exclude|Header|Include|MaxAge)?|SetEnv|SetEnvIf|SetEnvIfExpr|SetEnvIfNoCase|SetHandler|SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIETag|SSILastModified|SSILegacyExprParser|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSL(?:CACertificateFile|CACertificatePath|CADNRequestFile|CADNRequestPath|CARevocationCheck|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Compression|CryptoDevice|Engine|FIPS|HonorCipherOrder|InsecureRenegotiation|OCSP(?:DefaultResponder|Enable|OverrideResponder|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|UseRequestNonce)|OpenSSLConfCmd|Options|PassPhraseDialog|Protocol|Proxy(?:CACertificateFile|CACertificatePath|CARevocation(?:Check|File|Path)|CheckPeer(?:CN|Expire|Name)|CipherSuite|Engine|MachineCertificate(?:ChainFile|File|Path)|Protocol|Verify|VerifyDepth)|RandomSeed|RenegBufferSize|Require|RequireSSL|Session(?:Cache|CacheTimeout|TicketKeyFile|Tickets)|SRPUnknownUserSeed|SRPVerifierFile|Stapling(?:Cache|ErrorCacheTimeout|FakeTryLater|ForceURL|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|ReturnResponderErrors|StandardCacheTimeout)|StrictSNIVHostCheck|UserName|UseStapling|VerifyClient|VerifyDepth)|StartServers|StartThreads|Substitute|Suexec|SuexecUserGroup|ThreadLimit|ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnDefine|UndefMacro|UnsetEnv|Use|UseCanonicalName|UseCanonicalPhysicalPort|User|UserDir|VHostCGIMode|VHostCGIPrivs|VHostGroup|VHostPrivs|VHostSecure|VHostUser|Virtual(?:DocumentRoot|ScriptAlias)(?:IP)?|WatchdogInterval|XBitHack|xml2EncAlias|xml2EncDefault|xml2StartParse)\b/im,lookbehind:!0,alias:"property"},"directive-block":{pattern:/<\/?\b(?:Auth[nz]ProviderAlias|Directory|DirectoryMatch|Else|ElseIf|Files|FilesMatch|If|IfDefine|IfModule|IfVersion|Limit|LimitExcept|Location|LocationMatch|Macro|Proxy|Require(?:All|Any|None)|VirtualHost)\b.*>/i,inside:{"directive-block":{pattern:/^<\/?\w+/,inside:{punctuation:/^<\/?/},alias:"tag"},"directive-block-parameter":{pattern:/.*[^>]/,inside:{punctuation:/:/,string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}}},alias:"attr-value"},punctuation:/>/},alias:"tag"},"directive-flags":{pattern:/\[(?:[\w=],?)+\]/,alias:"keyword"},string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}},variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/,regex:/\^?.*\$|\^.*\$?/}}return YW}var KW,w5e;function bhe(){if(w5e)return KW;w5e=1,KW=e,e.displayName="sql",e.aliases=[];function e(t){t.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}return KW}var XW,x5e;function yIn(){if(x5e)return XW;x5e=1;var e=bhe();XW=t,t.displayName="apex",t.aliases=[];function t(n){n.register(e),function(r){var i=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,a=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!<keyword>))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(/<keyword>/g,function(){return i.source});function o(l){return RegExp(l.replace(/<CLASS-NAME>/g,function(){return a}),"i")}var s={keyword:i,punctuation:/[()\[\]{};,:.<>]/};r.languages.apex={comment:r.languages.clike.comment,string:r.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:r.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:o(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)<CLASS-NAME>/.source),lookbehind:!0,inside:s},{pattern:o(/(\(\s*)<CLASS-NAME>(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:s},{pattern:o(/<CLASS-NAME>(?=\s*\w+\s*[;=,(){:])/.source),inside:s}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<<?=?|>{1,3}=?/,punctuation:/[()\[\]{};,.]/}}(n)}return XW}var ZW,T5e;function bIn(){if(T5e)return ZW;T5e=1,ZW=e,e.displayName="apl",e.aliases=[];function e(t){t.languages.apl={comment:/(?:⍝|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/⎕[A-Z]+/i,alias:"function"},constant:/[⍬⌾#⎕⍞]/,function:/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,"monadic-operator":{pattern:/[\\\/⌿⍀¨⍨⌶&∥]/,alias:"operator"},"dyadic-operator":{pattern:/[.⍣⍠⍤∘⌸@⌺⍥]/,alias:"operator"},assignment:{pattern:/←/,alias:"keyword"},punctuation:/[\[;\]()◇⋄]/,dfn:{pattern:/[{}⍺⍵⍶⍹∇⍫:]/,alias:"builtin"}}}return ZW}var QW,I5e;function _In(){if(I5e)return QW;I5e=1,QW=e,e.displayName="applescript",e.aliases=[];function e(t){t.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=≠≤≥*+\-\/÷^]|[<>]=?/,/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/],keyword:/\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,"class-name":/\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,punctuation:/[{}():,¬«»《》]/}}return QW}var JW,A5e;function SIn(){if(A5e)return JW;A5e=1,JW=e,e.displayName="aql",e.aliases=[];function e(t){t.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'´`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([´`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},variable:/@@?\w+/,keyword:[{pattern:/(\bWITH\s+)COUNT(?=\s+INTO\b)/i,lookbehind:!0},/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,{pattern:/(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,lookbehind:!0},{pattern:/(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,lookbehind:!0},{pattern:/\bOPTIONS(?=\s*\{)/i}],function:/\b(?!\d)\w+(?=\s*\()/,boolean:/\b(?:false|true)\b/i,range:{pattern:/\.\./,alias:"operator"},number:[/\b0b[01]+/i,/\b0x[0-9a-f]+/i,/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i],operator:/\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,punctuation:/::|[?.:,;()[\]{}]/}}return JW}var eY,R5e;function LC(){if(R5e)return eY;R5e=1,eY=e,e.displayName="c",e.aliases=[];function e(t){t.languages.c=t.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),t.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),t.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},t.languages.c.string],char:t.languages.c.char,comment:t.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:t.languages.c}}}}),t.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete t.languages.c.boolean}return eY}var tY,N5e;function _he(){if(N5e)return tY;N5e=1;var e=LC();tY=t,t.displayName="cpp",t.aliases=[];function t(n){n.register(e),function(r){var i=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,a=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return i.source});r.languages.cpp=r.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return i.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:i,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),r.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return a})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),r.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:r.languages.cpp}}}}),r.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),r.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:r.languages.extend("cpp",{})}}),r.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},r.languages.cpp["base-clause"])}(n)}return tY}var nY,O5e;function EIn(){if(O5e)return nY;O5e=1;var e=_he();nY=t,t.displayName="arduino",t.aliases=["ino"];function t(n){n.register(e),n.languages.arduino=n.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),n.languages.ino=n.languages.arduino}return nY}var rY,L5e;function CIn(){if(L5e)return rY;L5e=1,rY=e,e.displayName="arff",e.aliases=[];function e(t){t.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}return rY}var iY,P5e;function wIn(){if(P5e)return iY;P5e=1,iY=e,e.displayName="asciidoc",e.aliases=["adoc"];function e(t){(function(n){var r={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},i=n.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:r,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)<?\d*>/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:r.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:r,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function a(o){o=o.split(" ");for(var s={},l=0,c=o.length;l<c;l++)s[o[l]]=i[o[l]];return s}r.inside.interpreted.inside.rest=a("macro inline replacement entity"),i["passthrough-block"].inside.rest=a("macro"),i["literal-block"].inside.rest=a("callout"),i.table.inside.rest=a("comment-block passthrough-block literal-block other-block list-punctuation indented-block comment title attribute-entry attributes hr page-break admonition list-label callout macro inline replacement entity line-continuation"),i["other-block"].inside.rest=a("table list-punctuation indented-block comment attribute-entry attributes hr page-break admonition list-label macro inline replacement entity line-continuation"),i.title.inside.rest=a("macro inline replacement entity"),n.hooks.add("wrap",function(o){o.type==="entity"&&(o.attributes.title=o.content.value.replace(/&amp;/,"&"))}),n.languages.adoc=n.languages.asciidoc})(t)}return iY}var aY,k5e;function xIn(){if(k5e)return aY;k5e=1,aY=e,e.displayName="asm6502",e.aliases=[];function e(t){t.languages.asm6502={comment:/;.*/,directive:{pattern:/\.\w+(?= )/,alias:"property"},string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,"op-code":{pattern:/\b(?:ADC|AND|ASL|BCC|BCS|BEQ|BIT|BMI|BNE|BPL|BRK|BVC|BVS|CLC|CLD|CLI|CLV|CMP|CPX|CPY|DEC|DEX|DEY|EOR|INC|INX|INY|JMP|JSR|LDA|LDX|LDY|LSR|NOP|ORA|PHA|PHP|PLA|PLP|ROL|ROR|RTI|RTS|SBC|SEC|SED|SEI|STA|STX|STY|TAX|TAY|TSX|TXA|TXS|TYA|adc|and|asl|bcc|bcs|beq|bit|bmi|bne|bpl|brk|bvc|bvs|clc|cld|cli|clv|cmp|cpx|cpy|dec|dex|dey|eor|inc|inx|iny|jmp|jsr|lda|ldx|ldy|lsr|nop|ora|pha|php|pla|plp|rol|ror|rti|rts|sbc|sec|sed|sei|sta|stx|sty|tax|tay|tsx|txa|txs|tya)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{1,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[xya]\b/i,alias:"variable"},punctuation:/[(),:]/}}return aY}var oY,M5e;function TIn(){if(M5e)return oY;M5e=1,oY=e,e.displayName="asmatmel",e.aliases=[];function e(t){t.languages.asmatmel={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},constant:/\b(?:PORT[A-Z]|DDR[A-Z]|(?:DD|P)[A-Z](?:\d|[0-2]\d|3[01]))\b/,directive:{pattern:/\.\w+(?= )/,alias:"property"},"r-register":{pattern:/\br(?:\d|[12]\d|3[01])\b/,alias:"variable"},"op-code":{pattern:/\b(?:ADC|ADD|ADIW|AND|ANDI|ASR|BCLR|BLD|BRBC|BRBS|BRCC|BRCS|BREAK|BREQ|BRGE|BRHC|BRHS|BRID|BRIE|BRLO|BRLT|BRMI|BRNE|BRPL|BRSH|BRTC|BRTS|BRVC|BRVS|BSET|BST|CALL|CBI|CBR|CLC|CLH|CLI|CLN|CLR|CLS|CLT|CLV|CLZ|COM|CP|CPC|CPI|CPSE|DEC|DES|EICALL|EIJMP|ELPM|EOR|FMUL|FMULS|FMULSU|ICALL|IJMP|IN|INC|JMP|LAC|LAS|LAT|LD|LD[A-Za-z0-9]|LPM|LSL|LSR|MOV|MOVW|MUL|MULS|MULSU|NEG|NOP|OR|ORI|OUT|POP|PUSH|RCALL|RET|RETI|RJMP|ROL|ROR|SBC|SBCI|SBI|SBIC|SBIS|SBIW|SBR|SBRC|SBRS|SEC|SEH|SEI|SEN|SER|SES|SET|SEV|SEZ|SLEEP|SPM|ST|ST[A-Z0-9]|SUB|SUBI|SWAP|TST|WDR|XCH|adc|add|adiw|and|andi|asr|bclr|bld|brbc|brbs|brcc|brcs|break|breq|brge|brhc|brhs|brid|brie|brlo|brlt|brmi|brne|brpl|brsh|brtc|brts|brvc|brvs|bset|bst|call|cbi|cbr|clc|clh|cli|cln|clr|cls|clt|clv|clz|com|cp|cpc|cpi|cpse|dec|des|eicall|eijmp|elpm|eor|fmul|fmuls|fmulsu|icall|ijmp|in|inc|jmp|lac|las|lat|ld|ld[a-z0-9]|lpm|lsl|lsr|mov|movw|mul|muls|mulsu|neg|nop|or|ori|out|pop|push|rcall|ret|reti|rjmp|rol|ror|sbc|sbci|sbi|sbic|sbis|sbiw|sbr|sbrc|sbrs|sec|seh|sei|sen|ser|ses|set|sev|sez|sleep|spm|st|st[a-zA-Z0-9]|sub|subi|swap|tst|wdr|xch)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{2,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[acznvshtixy]\b/i,alias:"variable"},operator:/>>=?|<<=?|&&?|\|\|?|[-+*/%&|^!=<>?]=?/,punctuation:/[(),:]/}}return oY}var sY,D5e;function mU(){if(D5e)return sY;D5e=1,sY=e,e.displayName="csharp",e.aliases=["dotnet","cs"];function e(t){(function(n){function r(B,k){return B.replace(/<<(\d+)>>/g,function(F,G){return"(?:"+k[+G]+")"})}function i(B,k,F){return RegExp(r(B,k),"")}function a(B,k){for(var F=0;F<k;F++)B=B.replace(/<<self>>/g,function(){return"(?:"+B+")"});return B.replace(/<<self>>/g,"[^\\s\\S]")}var o={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function s(B){return"\\b(?:"+B.trim().replace(/ /g,"|")+")\\b"}var l=s(o.typeDeclaration),c=RegExp(s(o.type+" "+o.typeDeclaration+" "+o.contextual+" "+o.other)),u=s(o.typeDeclaration+" "+o.contextual+" "+o.other),d=s(o.type+" "+o.typeDeclaration+" "+o.other),f=a(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),p=a(/\((?:[^()]|<<self>>)*\)/.source,2),h=/@?\b[A-Za-z_]\w*\b/.source,m=r(/<<0>>(?:\s*<<1>>)?/.source,[h,f]),g=r(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[u,m]),v=/\[\s*(?:,\s*)*\]/.source,y=r(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[g,v]),_=r(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[f,p,v]),S=r(/\(<<0>>+(?:,<<0>>+)+\)/.source,[_]),C=r(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[S,g,v]),w={keyword:c,punctuation:/[<>()?,.:[\]]/},x=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,T=/"(?:\\.|[^\\"\r\n])*"/.source,A=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;n.languages.csharp=n.languages.extend("clike",{string:[{pattern:i(/(^|[^$\\])<<0>>/.source,[A]),lookbehind:!0,greedy:!0},{pattern:i(/(^|[^@$\\])<<0>>/.source,[T]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:i(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[g]),lookbehind:!0,inside:w},{pattern:i(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[h,C]),lookbehind:!0,inside:w},{pattern:i(/(\busing\s+)<<0>>(?=\s*=)/.source,[h]),lookbehind:!0},{pattern:i(/(\b<<0>>\s+)<<1>>/.source,[l,m]),lookbehind:!0,inside:w},{pattern:i(/(\bcatch\s*\(\s*)<<0>>/.source,[g]),lookbehind:!0,inside:w},{pattern:i(/(\bwhere\s+)<<0>>/.source,[h]),lookbehind:!0},{pattern:i(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[y]),lookbehind:!0,inside:w},{pattern:i(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[C,d,h]),inside:w}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),n.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),n.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:i(/([(,]\s*)<<0>>(?=\s*:)/.source,[h]),lookbehind:!0,alias:"punctuation"}}),n.languages.insertBefore("csharp","class-name",{namespace:{pattern:i(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[h]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:i(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[p]),lookbehind:!0,alias:"class-name",inside:w},"return-type":{pattern:i(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[C,g]),inside:w,alias:"class-name"},"constructor-invocation":{pattern:i(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[C]),lookbehind:!0,inside:w,alias:"class-name"},"generic-method":{pattern:i(/<<0>>\s*<<1>>(?=\s*\()/.source,[h,f]),inside:{function:i(/^<<0>>/.source,[h]),generic:{pattern:RegExp(f),alias:"class-name",inside:w}}},"type-list":{pattern:i(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[l,m,h,C,c.source,p,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:i(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[m,p]),lookbehind:!0,greedy:!0,inside:n.languages.csharp},keyword:c,"class-name":{pattern:RegExp(C),greedy:!0,inside:w},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var I=T+"|"+x,R=r(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[I]),N=a(r(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[R]),2),P=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,L=r(/<<0>>(?:\s*\(<<1>>*\))?/.source,[g,N]);n.languages.insertBefore("csharp","class-name",{attribute:{pattern:i(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[P,L]),lookbehind:!0,greedy:!0,inside:{target:{pattern:i(/^<<0>>(?=\s*:)/.source,[P]),alias:"keyword"},"attribute-arguments":{pattern:i(/\(<<0>>*\)/.source,[N]),inside:n.languages.csharp},"class-name":{pattern:RegExp(g),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var $=/:[^}\r\n]+/.source,D=a(r(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[R]),2),z=r(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[D,$]),U=a(r(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[I]),2),H=r(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[U,$]);function M(B,k){return{interpolation:{pattern:i(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[B]),lookbehind:!0,inside:{"format-string":{pattern:i(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[k,$]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:n.languages.csharp}}},string:/[\s\S]+/}}n.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:i(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[z]),lookbehind:!0,greedy:!0,inside:M(z,D)},{pattern:i(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[H]),lookbehind:!0,greedy:!0,inside:M(H,U)}],char:{pattern:RegExp(x),greedy:!0}}),n.languages.dotnet=n.languages.cs=n.languages.csharp})(t)}return sY}var lY,$5e;function IIn(){if($5e)return lY;$5e=1;var e=mU();lY=t,t.displayName="aspnet",t.aliases=[];function t(n){n.register(e),n.languages.aspnet=n.languages.extend("markup",{"page-directive":{pattern:/<%\s*@.*%>/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:n.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:n.languages.csharp}}}),n.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,n.languages.insertBefore("inside","punctuation",{directive:n.languages.aspnet.directive},n.languages.aspnet.tag.inside["attr-value"]),n.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),n.languages.insertBefore("aspnet",n.languages.javascript?"script":"tag",{"asp-script":{pattern:/(<script(?=.*runat=['"]?server\b)[^>]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:n.languages.csharp||{}}})}return lY}var cY,F5e;function AIn(){if(F5e)return cY;F5e=1,cY=e,e.displayName="autohotkey",e.aliases=[];function e(t){t.languages.autohotkey={comment:[{pattern:/(^|\s);.*/,lookbehind:!0},{pattern:/(^[\t ]*)\/\*(?:[\r\n](?![ \t]*\*\/)|[^\r\n])*(?:[\r\n][ \t]*\*\/)?/m,lookbehind:!0,greedy:!0}],tag:{pattern:/^([ \t]*)[^\s,`":]+(?=:[ \t]*$)/m,lookbehind:!0},string:/"(?:[^"\n\r]|"")*"/,variable:/%\w+%/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/\?|\/\/?=?|:=|\|[=|]?|&[=&]?|\+[=+]?|-[=-]?|\*[=*]?|<(?:<=?|>|=)?|>>?=?|[.^!=~]=?|\b(?:AND|NOT|OR)\b/,boolean:/\b(?:false|true)\b/,selector:/\b(?:AutoTrim|BlockInput|Break|Click|ClipWait|Continue|Control|ControlClick|ControlFocus|ControlGet|ControlGetFocus|ControlGetPos|ControlGetText|ControlMove|ControlSend|ControlSendRaw|ControlSetText|CoordMode|Critical|DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|DriveSpaceFree|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|FileDelete|FileEncoding|FileGetAttrib|FileGetShortcut|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|GuiControlGet|Hotkey|ImageSearch|IniDelete|IniRead|IniWrite|Input|InputBox|KeyWait|ListHotkeys|ListLines|ListVars|Loop|Menu|MouseClick|MouseClickDrag|MouseGetPos|MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|PixelSearch|PostMessage|Process|Progress|Random|RegDelete|RegRead|RegWrite|Reload|Repeat|Return|Run|RunAs|RunWait|Send|SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|SetBatchLines|SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|SetMouseDelay|SetNumlockState|SetRegView|SetScrollLockState|SetStoreCapslockMode|SetTimer|SetTitleMatchMode|SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|StringGetPos|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringTrimLeft|StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|Transform|TrayTip|URLDownloadToFile|WinActivate|WinActivateBottom|WinClose|WinGet|WinGetActiveStats|WinGetActiveTitle|WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinHide|WinKill|WinMaximize|WinMenuSelectItem|WinMinimize|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinRestore|WinSet|WinSetTitle|WinShow|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/i,constant:/\b(?:a_ahkpath|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guicontrol|a_guicontrolevent|a_guievent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles)\b/i,builtin:/\b(?:abs|acos|asc|asin|atan|ceil|chr|class|comobjactive|comobjarray|comobjconnect|comobjcreate|comobjerror|comobjflags|comobjget|comobjquery|comobjtype|comobjvalue|cos|dllcall|exp|fileexist|Fileopen|floor|format|il_add|il_create|il_destroy|instr|isfunc|islabel|IsObject|ln|log|ltrim|lv_add|lv_delete|lv_deletecol|lv_getcount|lv_getnext|lv_gettext|lv_insert|lv_insertcol|lv_modify|lv_modifycol|lv_setimagelist|mod|numget|numput|onmessage|regexmatch|regexreplace|registercallback|round|rtrim|sb_seticon|sb_setparts|sb_settext|sin|sqrt|strlen|strreplace|strsplit|substr|tan|tv_add|tv_delete|tv_get|tv_getchild|tv_getcount|tv_getnext|tv_getparent|tv_getprev|tv_getselection|tv_gettext|tv_modify|varsetcapacity|winactive|winexist|__Call|__Get|__New|__Set)\b/i,symbol:/\b(?:alt|altdown|altup|appskey|backspace|browser_back|browser_favorites|browser_forward|browser_home|browser_refresh|browser_search|browser_stop|bs|capslock|ctrl|ctrlbreak|ctrldown|ctrlup|del|delete|down|end|enter|esc|escape|f1|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f2|f20|f21|f22|f23|f24|f3|f4|f5|f6|f7|f8|f9|home|ins|insert|joy1|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy2|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy3|joy30|joy31|joy32|joy4|joy5|joy6|joy7|joy8|joy9|joyaxes|joybuttons|joyinfo|joyname|joypov|joyr|joyu|joyv|joyx|joyy|joyz|lalt|launch_app1|launch_app2|launch_mail|launch_media|lbutton|lcontrol|lctrl|left|lshift|lwin|lwindown|lwinup|mbutton|media_next|media_play_pause|media_prev|media_stop|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadadd|numpadclear|numpaddel|numpaddiv|numpaddot|numpaddown|numpadend|numpadenter|numpadhome|numpadins|numpadleft|numpadmult|numpadpgdn|numpadpgup|numpadright|numpadsub|numpadup|pgdn|pgup|printscreen|ralt|rbutton|rcontrol|rctrl|right|rshift|rwin|rwindown|rwinup|scrolllock|shift|shiftdown|shiftup|space|tab|up|volume_down|volume_mute|volume_up|wheeldown|wheelleft|wheelright|wheelup|xbutton1|xbutton2)\b/i,important:/#\b(?:AllowSameLineComments|ClipboardTimeout|CommentFlag|DerefChar|ErrorStdOut|EscapeChar|HotkeyInterval|HotkeyModifierTimeout|Hotstring|If|IfTimeout|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Include|IncludeAgain|InputLevel|InstallKeybdHook|InstallMouseHook|KeyHistory|MaxHotkeysPerInterval|MaxMem|MaxThreads|MaxThreadsBuffer|MaxThreadsPerHotkey|MenuMaskKey|NoEnv|NoTrayIcon|Persistent|SingleInstance|UseHook|Warn|WinActivateForce)\b/i,keyword:/\b(?:Abort|AboveNormal|Add|ahk_class|ahk_exe|ahk_group|ahk_id|ahk_pid|All|Alnum|Alpha|AltSubmit|AltTab|AltTabAndMenu|AltTabMenu|AltTabMenuDismiss|AlwaysOnTop|AutoSize|Background|BackgroundTrans|BelowNormal|between|BitAnd|BitNot|BitOr|BitShiftLeft|BitShiftRight|BitXOr|Bold|Border|Button|ByRef|Catch|Checkbox|Checked|CheckedGray|Choose|ChooseString|Close|Color|ComboBox|Contains|ControlList|Count|Date|DateTime|Days|DDL|Default|DeleteAll|Delimiter|Deref|Destroy|Digit|Disable|Disabled|DropDownList|Edit|Eject|Else|Enable|Enabled|Error|Exist|Expand|ExStyle|FileSystem|Finally|First|Flash|Float|FloatFast|Focus|Font|for|global|Grid|Group|GroupBox|GuiClose|GuiContextMenu|GuiDropFiles|GuiEscape|GuiSize|Hdr|Hidden|Hide|High|HKCC|HKCR|HKCU|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE|HKEY_USERS|HKLM|HKU|Hours|HScroll|Icon|IconSmall|ID|IDLast|If|IfEqual|IfExist|IfGreater|IfGreaterOrEqual|IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Ignore|ImageList|in|Integer|IntegerFast|Interrupt|is|italic|Join|Label|LastFound|LastFoundExist|Limit|Lines|List|ListBox|ListView|local|Lock|Logoff|Low|Lower|Lowercase|MainWindow|Margin|Maximize|MaximizeBox|MaxSize|Minimize|MinimizeBox|MinMax|MinSize|Minutes|MonthCal|Mouse|Move|Multi|NA|No|NoActivate|NoDefault|NoHide|NoIcon|NoMainWindow|norm|Normal|NoSort|NoSortHdr|NoStandard|Not|NoTab|NoTimers|Number|Off|Ok|On|OwnDialogs|Owner|Parse|Password|Picture|Pixel|Pos|Pow|Priority|ProcessName|Radio|Range|Read|ReadOnly|Realtime|Redraw|Region|REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_SZ|Relative|Rename|Report|Resize|Restore|Retry|RGB|Screen|Seconds|Section|Serial|SetLabel|ShiftAltTab|Show|Single|Slider|SortDesc|Standard|static|Status|StatusBar|StatusCD|strike|Style|Submit|SysMenu|Tab2|TabStop|Text|Theme|Throw|Tile|ToggleCheck|ToggleEnable|ToolWindow|Top|Topmost|TransColor|Transparent|Tray|TreeView|Try|TryAgain|Type|UnCheck|underline|Unicode|Unlock|Until|UpDown|Upper|Uppercase|UseErrorLevel|Vis|VisFirst|Visible|VScroll|Wait|WaitClose|WantCtrlA|WantF2|WantReturn|While|Wrap|Xdigit|xm|xp|xs|Yes|ym|yp|ys)\b/i,function:/[^(); \t,\n+*\-=?>:\\\/<&%\[\]]+(?=\()/,punctuation:/[{}[\]():,]/}}return cY}var uY,B5e;function RIn(){if(B5e)return uY;B5e=1,uY=e,e.displayName="autoit",e.aliases=[];function e(t){t.languages.autoit={comment:[/;.*/,{pattern:/(^[\t ]*)#(?:comments-start|cs)[\s\S]*?^[ \t]*#(?:ce|comments-end)/m,lookbehind:!0}],url:{pattern:/(^[\t ]*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m,lookbehind:!0},string:{pattern:/(["'])(?:\1\1|(?!\1)[^\r\n])*\1/,greedy:!0,inside:{variable:/([%$@])\w+\1/}},directive:{pattern:/(^[\t ]*)#[\w-]+/m,lookbehind:!0,alias:"keyword"},function:/\b\w+(?=\()/,variable:/[$@]\w+/,keyword:/\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?:If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In|Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|While|With)\b/i,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,boolean:/\b(?:False|True)\b/i,operator:/<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Not|Or)\b/i,punctuation:/[\[\]().,:]/}}return uY}var dY,j5e;function NIn(){if(j5e)return dY;j5e=1,dY=e,e.displayName="avisynth",e.aliases=["avs"];function e(t){(function(n){function r(u,d){return u.replace(/<<(\d+)>>/g,function(f,p){return d[+p]})}function i(u,d,f){return RegExp(r(u,d),f)}var a=/bool|clip|float|int|string|val/.source,o=[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),s=[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),l=[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|"),c=[o,s,l].join("|");n.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:i(/\b(?:<<0>>)\s+("?)\w+\1/.source,[a],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:i(/\b(?:<<0>>)\b/.source,[c],"i"),alias:"function"},"type-cast":{pattern:i(/\b(?:<<0>>)(?=\s*\()/.source,[a],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},n.languages.avs=n.languages.avisynth})(t)}return dY}var fY,z5e;function OIn(){if(z5e)return fY;z5e=1,fY=e,e.displayName="avroIdl",e.aliases=[];function e(t){t.languages["avro-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0},annotation:{pattern:/@(?:[$\w.-]|`[^\r\n`]+`)+/,greedy:!0,alias:"function"},"function-identifier":{pattern:/`[^\r\n`]+`(?=\s*\()/,greedy:!0,alias:"function"},identifier:{pattern:/`[^\r\n`]+`/,greedy:!0},"class-name":{pattern:/(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,lookbehind:!0,greedy:!0},keyword:/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:[{pattern:/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,lookbehind:!0},/-?\b(?:Infinity|NaN)\b/],operator:/=/,punctuation:/[()\[\]{}<>.:,;-]/},t.languages.avdl=t.languages["avro-idl"]}return fY}var pY,U5e;function qJe(){if(U5e)return pY;U5e=1,pY=e,e.displayName="bash",e.aliases=["shell"];function e(t){(function(n){var r="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",i={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},a={bash:i,environment:{pattern:RegExp("\\$"+r),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+r),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};n.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+r),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:a},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:i}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:a},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:a.entity}}],environment:{pattern:RegExp("\\$?"+r),alias:"constant"},variable:a.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},i.inside=n.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],s=a.variable[1].inside,l=0;l<o.length;l++)s[o[l]]=n.languages.bash[o[l]];n.languages.shell=n.languages.bash})(t)}return pY}var hY,H5e;function WJe(){if(H5e)return hY;H5e=1,hY=e,e.displayName="basic",e.aliases=[];function e(t){t.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}return hY}var mY,V5e;function LIn(){if(V5e)return mY;V5e=1,mY=e,e.displayName="batch",e.aliases=[];function e(t){(function(n){var r=/%%?[~:\w]+%?|!\S+!/,i={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},a=/"(?:[\\"]"|[^"])*"(?!")/,o=/(?:\b|-)\d+\b/;n.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:a,parameter:i,variable:r,number:o,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:a,parameter:i,variable:r,number:o,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:a,parameter:i,variable:[r,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:o,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:a,parameter:i,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:r,number:o,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(t)}return mY}var gY,G5e;function PIn(){if(G5e)return gY;G5e=1,gY=e,e.displayName="bbcode",e.aliases=["shortcode"];function e(t){t.languages.bbcode={tag:{pattern:/\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,inside:{tag:{pattern:/^\[\/?[^\s=\]]+/,inside:{punctuation:/^\[\/?/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\]/,"attr-name":/[^\s=\]]+/}}},t.languages.shortcode=t.languages.bbcode}return gY}var vY,q5e;function kIn(){if(q5e)return vY;q5e=1,vY=e,e.displayName="bicep",e.aliases=[];function e(t){t.languages.bicep={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],property:[{pattern:/([\r\n][ \t]*)[a-z_]\w*(?=[ \t]*:)/i,lookbehind:!0},{pattern:/([\r\n][ \t]*)'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'(?=[ \t]*:)/,lookbehind:!0,greedy:!0}],string:[{pattern:/'''[^'][\s\S]*?'''/,greedy:!0},{pattern:/(^|[^\\'])'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0}],"interpolated-string":{pattern:/(^|[^\\'])'(?:\\.|\$(?:(?!\{)|\{[^{}\r\n]*\})|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}\r\n]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0},punctuation:/^\$\{|\}$/}},string:/[\s\S]+/}},datatype:{pattern:/(\b(?:output|param)\b[ \t]+\w+[ \t]+)\w+\b/,lookbehind:!0,alias:"class-name"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:existing|for|if|in|module|null|output|param|resource|targetScope|var)\b/,decorator:/@\w+\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,punctuation:/[{}[\];(),.:]/},t.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=t.languages.bicep}return vY}var yY,W5e;function MIn(){if(W5e)return yY;W5e=1,yY=e,e.displayName="birb",e.aliases=[];function e(t){t.languages.birb=t.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),t.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}return yY}var bY,Y5e;function DIn(){if(Y5e)return bY;Y5e=1;var e=LC();bY=t,t.displayName="bison",t.aliases=[];function t(n){n.register(e),n.languages.bison=n.languages.extend("c",{}),n.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:n.languages.c}},comment:n.languages.c.comment,string:n.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}return bY}var _Y,K5e;function $In(){if(K5e)return _Y;K5e=1,_Y=e,e.displayName="bnf",e.aliases=["rbnf"];function e(t){t.languages.bnf={string:{pattern:/"[^\r\n"]*"|'[^\r\n']*'/},definition:{pattern:/<[^<>\r\n\t]+>(?=\s*::=)/,alias:["rule","keyword"],inside:{punctuation:/^<|>$/}},rule:{pattern:/<[^<>\r\n\t]+>/,inside:{punctuation:/^<|>$/}},operator:/::=|[|()[\]{}*+?]|\.{3}/},t.languages.rbnf=t.languages.bnf}return _Y}var SY,X5e;function FIn(){if(X5e)return SY;X5e=1,SY=e,e.displayName="brainfuck",e.aliases=[];function e(t){t.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}return SY}var EY,Z5e;function BIn(){if(Z5e)return EY;Z5e=1,EY=e,e.displayName="brightscript",e.aliases=[];function e(t){t.languages.brightscript={comment:/(?:\brem|').*/i,"directive-statement":{pattern:/(^[\t ]*)#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if).*/im,lookbehind:!0,alias:"property",inside:{"error-message":{pattern:/(^#error).+/,lookbehind:!0},directive:{pattern:/^#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if)/,alias:"keyword"},expression:{pattern:/[\s\S]+/,inside:null}}},property:{pattern:/([\r\n{,][\t ]*)(?:(?!\d)\w+|"(?:[^"\r\n]|"")*"(?!"))(?=[ \t]*:)/,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},"class-name":{pattern:/(\bAs[\t ]+)\w+/i,lookbehind:!0},keyword:/\b(?:As|Dim|Each|Else|Elseif|End|Exit|For|Function|Goto|If|In|Print|Return|Step|Stop|Sub|Then|To|While)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?!\d)\w+(?=[\t ]*\()/,number:/(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,operator:/--|\+\+|>>=?|<<=?|<>|[-+*/\\<>]=?|[:^=?]|\b(?:and|mod|not|or)\b/i,punctuation:/[.,;()[\]{}]/,constant:/\b(?:LINE_NUM)\b/i},t.languages.brightscript["directive-statement"].inside.expression.inside=t.languages.brightscript}return EY}var CY,Q5e;function jIn(){if(Q5e)return CY;Q5e=1,CY=e,e.displayName="bro",e.aliases=[];function e(t){t.languages.bro={comment:{pattern:/(^|[^\\$])#.*/,lookbehind:!0,inside:{italic:/\b(?:FIXME|TODO|XXX)\b/}},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},boolean:/\b[TF]\b/,function:{pattern:/(\b(?:event|function|hook)[ \t]+)\w+(?:::\w+)?/,lookbehind:!0},builtin:/(?:@(?:load(?:-(?:plugin|sigs))?|unload|prefixes|ifn?def|else|(?:end)?if|DIR|FILENAME))|(?:&?(?:add_func|create_expire|default|delete_func|encrypt|error_handler|expire_func|group|log|mergeable|optional|persistent|priority|raw_output|read_expire|redef|rotate_interval|rotate_size|synchronized|type_column|write_expire))/,constant:{pattern:/(\bconst[ \t]+)\w+/i,lookbehind:!0},keyword:/\b(?:add|addr|alarm|any|bool|break|const|continue|count|delete|double|else|enum|event|export|file|for|function|global|hook|if|in|int|interval|local|module|next|of|opaque|pattern|port|print|record|return|schedule|set|string|subnet|table|time|timeout|using|vector|when)\b/,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&|\|\|?|\?|\*|\/|~|\^|%/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,punctuation:/[{}[\];(),.:]/}}return CY}var wY,J5e;function zIn(){if(J5e)return wY;J5e=1,wY=e,e.displayName="bsl",e.aliases=[];function e(t){t.languages.bsl={comment:/\/\/.*/,string:[{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},{pattern:/'(?:[^'\r\n\\]|\\.)*'/}],keyword:[{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:пока|для|новый|прервать|попытка|исключение|вызватьисключение|иначе|конецпопытки|неопределено|функция|перем|возврат|конецфункции|если|иначеесли|процедура|конецпроцедуры|тогда|знач|экспорт|конецесли|из|каждого|истина|ложь|по|цикл|конеццикла|выполнить)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:break|do|each|else|elseif|enddo|endfunction|endif|endprocedure|endtry|except|execute|export|false|for|function|if|in|new|null|procedure|raise|return|then|to|true|try|undefined|val|var|while)\b/i}],number:{pattern:/(^(?=\d)|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\d+(?:\.\d*)?|\.\d+)(?:E[+-]?\d+)?/i,lookbehind:!0},operator:[/[<>+\-*/]=?|[%=]/,{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:и|или|не)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:and|not|or)\b/i}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/,directive:[{pattern:/^([ \t]*)&.*/m,lookbehind:!0,greedy:!0,alias:"important"},{pattern:/^([ \t]*)#.*/gm,lookbehind:!0,greedy:!0,alias:"important"}]},t.languages.oscript=t.languages.bsl}return wY}var xY,e3e;function UIn(){if(e3e)return xY;e3e=1,xY=e,e.displayName="cfscript",e.aliases=[];function e(t){t.languages.cfscript=t.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|<=?|>=?|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|[?:]/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),t.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete t.languages.cfscript["class-name"],t.languages.cfc=t.languages.cfscript}return xY}var TY,t3e;function HIn(){if(t3e)return TY;t3e=1;var e=_he();TY=t,t.displayName="chaiscript",t.aliases=[];function t(n){n.register(e),n.languages.chaiscript=n.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[n.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),n.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),n.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:n.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}return TY}var IY,n3e;function VIn(){if(n3e)return IY;n3e=1,IY=e,e.displayName="cil",e.aliases=[];function e(t){t.languages.cil={comment:/\/\/.*/,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},directive:{pattern:/(^|\W)\.[a-z]+(?=\s)/,lookbehind:!0,alias:"class-name"},variable:/\[[\w\.]+\]/,keyword:/\b(?:abstract|ansi|assembly|auto|autochar|beforefieldinit|bool|bstr|byvalstr|catch|char|cil|class|currency|date|decimal|default|enum|error|explicit|extends|extern|famandassem|family|famorassem|final(?:ly)?|float32|float64|hidebysig|u?int(?:8|16|32|64)?|iant|idispatch|implements|import|initonly|instance|interface|iunknown|literal|lpstr|lpstruct|lptstr|lpwstr|managed|method|native(?:Type)?|nested|newslot|object(?:ref)?|pinvokeimpl|private|privatescope|public|reqsecobj|rtspecialname|runtime|sealed|sequential|serializable|specialname|static|string|struct|syschar|tbstr|unicode|unmanagedexp|unsigned|value(?:type)?|variant|virtual|void)\b/,function:/\b(?:(?:constrained|no|readonly|tail|unaligned|volatile)\.)?(?:conv\.(?:[iu][1248]?|ovf\.[iu][1248]?(?:\.un)?|r\.un|r4|r8)|ldc\.(?:i4(?:\.\d+|\.[mM]1|\.s)?|i8|r4|r8)|ldelem(?:\.[iu][1248]?|\.r[48]|\.ref|a)?|ldind\.(?:[iu][1248]?|r[48]|ref)|stelem\.?(?:i[1248]?|r[48]|ref)?|stind\.(?:i[1248]?|r[48]|ref)?|end(?:fault|filter|finally)|ldarg(?:\.[0-3s]|a(?:\.s)?)?|ldloc(?:\.\d+|\.s)?|sub(?:\.ovf(?:\.un)?)?|mul(?:\.ovf(?:\.un)?)?|add(?:\.ovf(?:\.un)?)?|stloc(?:\.[0-3s])?|refany(?:type|val)|blt(?:\.un)?(?:\.s)?|ble(?:\.un)?(?:\.s)?|bgt(?:\.un)?(?:\.s)?|bge(?:\.un)?(?:\.s)?|unbox(?:\.any)?|init(?:blk|obj)|call(?:i|virt)?|brfalse(?:\.s)?|bne\.un(?:\.s)?|ldloca(?:\.s)?|brzero(?:\.s)?|brtrue(?:\.s)?|brnull(?:\.s)?|brinst(?:\.s)?|starg(?:\.s)?|leave(?:\.s)?|shr(?:\.un)?|rem(?:\.un)?|div(?:\.un)?|clt(?:\.un)?|alignment|castclass|ldvirtftn|beq(?:\.s)?|ckfinite|ldsflda|ldtoken|localloc|mkrefany|rethrow|cgt\.un|arglist|switch|stsfld|sizeof|newobj|newarr|ldsfld|ldnull|ldflda|isinst|throw|stobj|stfld|ldstr|ldobj|ldlen|ldftn|ldfld|cpobj|cpblk|break|br\.s|xor|shl|ret|pop|not|nop|neg|jmp|dup|cgt|ceq|box|and|or|br)\b/,boolean:/\b(?:false|true)\b/,number:/\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,punctuation:/[{}[\];(),:=]|IL_[0-9A-Za-z]+/}}return IY}var AY,r3e;function GIn(){if(r3e)return AY;r3e=1,AY=e,e.displayName="clojure",e.aliases=[];function e(t){t.languages.clojure={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},char:/\\\w+/,symbol:{pattern:/(^|[\s()\[\]{},])::?[\w*+!?'<>=/.-]+/,lookbehind:!0},keyword:{pattern:/(\()(?:-|->|->>|\.|\.\.|\*|\/|\+|<|<=|=|==|>|>=|accessor|agent|agent-errors|aget|alength|all-ns|alter|and|append-child|apply|array-map|aset|aset-boolean|aset-byte|aset-char|aset-double|aset-float|aset-int|aset-long|aset-short|assert|assoc|await|await-for|bean|binding|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|boolean|branch\?|butlast|byte|cast|char|children|class|clear-agent-errors|comment|commute|comp|comparator|complement|concat|cond|conj|cons|constantly|construct-proxy|contains\?|count|create-ns|create-struct|cycle|dec|declare|def|def-|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defproject|defprotocol|defrecord|defstruct|deftype|deref|difference|disj|dissoc|distinct|do|doall|doc|dorun|doseq|dosync|dotimes|doto|double|down|drop|drop-while|edit|end\?|ensure|eval|every\?|false\?|ffirst|file-seq|filter|find|find-doc|find-ns|find-var|first|float|flush|fn|fnseq|for|frest|gensym|get|get-proxy-class|hash-map|hash-set|identical\?|identity|if|if-let|if-not|import|in-ns|inc|index|insert-child|insert-left|insert-right|inspect-table|inspect-tree|instance\?|int|interleave|intersection|into|into-array|iterate|join|key|keys|keyword|keyword\?|last|lazy-cat|lazy-cons|left|lefts|let|line-seq|list|list\*|load|load-file|locking|long|loop|macroexpand|macroexpand-1|make-array|make-node|map|map-invert|map\?|mapcat|max|max-key|memfn|merge|merge-with|meta|min|min-key|monitor-enter|name|namespace|neg\?|new|newline|next|nil\?|node|not|not-any\?|not-every\?|not=|ns|ns-imports|ns-interns|ns-map|ns-name|ns-publics|ns-refers|ns-resolve|ns-unmap|nth|nthrest|or|parse|partial|path|peek|pop|pos\?|pr|pr-str|print|print-str|println|println-str|prn|prn-str|project|proxy|proxy-mappings|quot|quote|rand|rand-int|range|re-find|re-groups|re-matcher|re-matches|re-pattern|re-seq|read|read-line|recur|reduce|ref|ref-set|refer|rem|remove|remove-method|remove-ns|rename|rename-keys|repeat|replace|replicate|resolve|rest|resultset-seq|reverse|rfirst|right|rights|root|rrest|rseq|second|select|select-keys|send|send-off|seq|seq-zip|seq\?|set|set!|short|slurp|some|sort|sort-by|sorted-map|sorted-map-by|sorted-set|special-symbol\?|split-at|split-with|str|string\?|struct|struct-map|subs|subvec|symbol|symbol\?|sync|take|take-nth|take-while|test|throw|time|to-array|to-array-2d|tree-seq|true\?|try|union|up|update-proxy|val|vals|var|var-get|var-set|var\?|vector|vector-zip|vector\?|when|when-first|when-let|when-not|with-local-vars|with-meta|with-open|with-out-str|xml-seq|xml-zip|zero\?|zipmap|zipper)(?=[\s)]|$)/,lookbehind:!0},boolean:/\b(?:false|nil|true)\b/,number:{pattern:/(^|[^\w$@])(?:\d+(?:[/.]\d+)?(?:e[+-]?\d+)?|0x[a-f0-9]+|[1-9]\d?r[a-z0-9]+)[lmn]?(?![\w$@])/i,lookbehind:!0},function:{pattern:/((?:^|[^'])\()[\w*+!?'<>=/.-]+(?=[\s)]|$)/,lookbehind:!0},operator:/[#@^`~]/,punctuation:/[{}\[\](),]/}}return AY}var RY,i3e;function qIn(){if(i3e)return RY;i3e=1,RY=e,e.displayName="cmake",e.aliases=[];function e(t){t.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_(?:BINARY_DIR|DESCRIPTION|HOMEPAGE_URL|NAME|SOURCE_DIR|VERSION|VERSION_(?:MAJOR|MINOR|PATCH|TWEAK))|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE|XCODE_VERSION))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|GLOBAL_KEYWORD|GLOBAL_PROJECT_TYPES|GLOBAL_ROOTNAMESPACE|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/}}return RY}var NY,a3e;function WIn(){if(a3e)return NY;a3e=1,NY=e,e.displayName="cobol",e.aliases=[];function e(t){t.languages.cobol={comment:{pattern:/\*>.*|(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},string:{pattern:/[xzgn]?(?:"(?:[^\r\n"]|"")*"(?!")|'(?:[^\r\n']|'')*'(?!'))/i,greedy:!0},level:{pattern:/(^[ \t]*)\d+\b/m,lookbehind:!0,greedy:!0,alias:"number"},"class-name":{pattern:/(\bpic(?:ture)?\s+)(?:(?:[-\w$/,:*+<>]|\.(?!\s|$))(?:\(\d+\))?)+/i,lookbehind:!0,inside:{number:{pattern:/(\()\d+/,lookbehind:!0},punctuation:/[()]/}},keyword:{pattern:/(^|[^\w-])(?:ABORT|ACCEPT|ACCESS|ADD|ADDRESS|ADVANCING|AFTER|ALIGNED|ALL|ALPHABET|ALPHABETIC|ALPHABETIC-LOWER|ALPHABETIC-UPPER|ALPHANUMERIC|ALPHANUMERIC-EDITED|ALSO|ALTER|ALTERNATE|ANY|ARE|AREA|AREAS|AS|ASCENDING|ASCII|ASSIGN|ASSOCIATED-DATA|ASSOCIATED-DATA-LENGTH|AT|ATTRIBUTE|AUTHOR|AUTO|AUTO-SKIP|BACKGROUND-COLOR|BACKGROUND-COLOUR|BASIS|BEEP|BEFORE|BEGINNING|BELL|BINARY|BIT|BLANK|BLINK|BLOCK|BOTTOM|BOUNDS|BY|BYFUNCTION|BYTITLE|CALL|CANCEL|CAPABLE|CCSVERSION|CD|CF|CH|CHAINING|CHANGED|CHANNEL|CHARACTER|CHARACTERS|CLASS|CLASS-ID|CLOCK-UNITS|CLOSE|CLOSE-DISPOSITION|COBOL|CODE|CODE-SET|COL|COLLATING|COLUMN|COM-REG|COMMA|COMMITMENT|COMMON|COMMUNICATION|COMP|COMP-1|COMP-2|COMP-3|COMP-4|COMP-5|COMPUTATIONAL|COMPUTATIONAL-1|COMPUTATIONAL-2|COMPUTATIONAL-3|COMPUTATIONAL-4|COMPUTATIONAL-5|COMPUTE|CONFIGURATION|CONTAINS|CONTENT|CONTINUE|CONTROL|CONTROL-POINT|CONTROLS|CONVENTION|CONVERTING|COPY|CORR|CORRESPONDING|COUNT|CRUNCH|CURRENCY|CURSOR|DATA|DATA-BASE|DATE|DATE-COMPILED|DATE-WRITTEN|DAY|DAY-OF-WEEK|DBCS|DE|DEBUG-CONTENTS|DEBUG-ITEM|DEBUG-LINE|DEBUG-NAME|DEBUG-SUB-1|DEBUG-SUB-2|DEBUG-SUB-3|DEBUGGING|DECIMAL-POINT|DECLARATIVES|DEFAULT|DEFAULT-DISPLAY|DEFINITION|DELETE|DELIMITED|DELIMITER|DEPENDING|DESCENDING|DESTINATION|DETAIL|DFHRESP|DFHVALUE|DISABLE|DISK|DISPLAY|DISPLAY-1|DIVIDE|DIVISION|DONTCARE|DOUBLE|DOWN|DUPLICATES|DYNAMIC|EBCDIC|EGCS|EGI|ELSE|EMI|EMPTY-CHECK|ENABLE|END|END-ACCEPT|END-ADD|END-CALL|END-COMPUTE|END-DELETE|END-DIVIDE|END-EVALUATE|END-IF|END-MULTIPLY|END-OF-PAGE|END-PERFORM|END-READ|END-RECEIVE|END-RETURN|END-REWRITE|END-SEARCH|END-START|END-STRING|END-SUBTRACT|END-UNSTRING|END-WRITE|ENDING|ENTER|ENTRY|ENTRY-PROCEDURE|ENVIRONMENT|EOL|EOP|EOS|ERASE|ERROR|ESCAPE|ESI|EVALUATE|EVENT|EVERY|EXCEPTION|EXCLUSIVE|EXHIBIT|EXIT|EXPORT|EXTEND|EXTENDED|EXTERNAL|FD|FILE|FILE-CONTROL|FILLER|FINAL|FIRST|FOOTING|FOR|FOREGROUND-COLOR|FOREGROUND-COLOUR|FROM|FULL|FUNCTION|FUNCTION-POINTER|FUNCTIONNAME|GENERATE|GIVING|GLOBAL|GO|GOBACK|GRID|GROUP|HEADING|HIGH-VALUE|HIGH-VALUES|HIGHLIGHT|I-O|I-O-CONTROL|ID|IDENTIFICATION|IF|IMPLICIT|IMPORT|IN|INDEX|INDEXED|INDICATE|INITIAL|INITIALIZE|INITIATE|INPUT|INPUT-OUTPUT|INSPECT|INSTALLATION|INTEGER|INTO|INVALID|INVOKE|IS|JUST|JUSTIFIED|KANJI|KEPT|KEY|KEYBOARD|LABEL|LANGUAGE|LAST|LB|LD|LEADING|LEFT|LEFTLINE|LENGTH|LENGTH-CHECK|LIBACCESS|LIBPARAMETER|LIBRARY|LIMIT|LIMITS|LINAGE|LINAGE-COUNTER|LINE|LINE-COUNTER|LINES|LINKAGE|LIST|LOCAL|LOCAL-STORAGE|LOCK|LONG-DATE|LONG-TIME|LOW-VALUE|LOW-VALUES|LOWER|LOWLIGHT|MEMORY|MERGE|MESSAGE|MMDDYYYY|MODE|MODULES|MORE-LABELS|MOVE|MULTIPLE|MULTIPLY|NAMED|NATIONAL|NATIONAL-EDITED|NATIVE|NEGATIVE|NETWORK|NEXT|NO|NO-ECHO|NULL|NULLS|NUMBER|NUMERIC|NUMERIC-DATE|NUMERIC-EDITED|NUMERIC-TIME|OBJECT-COMPUTER|OCCURS|ODT|OF|OFF|OMITTED|ON|OPEN|OPTIONAL|ORDER|ORDERLY|ORGANIZATION|OTHER|OUTPUT|OVERFLOW|OVERLINE|OWN|PACKED-DECIMAL|PADDING|PAGE|PAGE-COUNTER|PASSWORD|PERFORM|PF|PH|PIC|PICTURE|PLUS|POINTER|PORT|POSITION|POSITIVE|PRINTER|PRINTING|PRIVATE|PROCEDURE|PROCEDURE-POINTER|PROCEDURES|PROCEED|PROCESS|PROGRAM|PROGRAM-ID|PROGRAM-LIBRARY|PROMPT|PURGE|QUEUE|QUOTE|QUOTES|RANDOM|RD|READ|READER|REAL|RECEIVE|RECEIVED|RECORD|RECORDING|RECORDS|RECURSIVE|REDEFINES|REEL|REF|REFERENCE|REFERENCES|RELATIVE|RELEASE|REMAINDER|REMARKS|REMOTE|REMOVAL|REMOVE|RENAMES|REPLACE|REPLACING|REPORT|REPORTING|REPORTS|REQUIRED|RERUN|RESERVE|RESET|RETURN|RETURN-CODE|RETURNING|REVERSE-VIDEO|REVERSED|REWIND|REWRITE|RF|RH|RIGHT|ROUNDED|RUN|SAME|SAVE|SCREEN|SD|SEARCH|SECTION|SECURE|SECURITY|SEGMENT|SEGMENT-LIMIT|SELECT|SEND|SENTENCE|SEPARATE|SEQUENCE|SEQUENTIAL|SET|SHARED|SHAREDBYALL|SHAREDBYRUNUNIT|SHARING|SHIFT-IN|SHIFT-OUT|SHORT-DATE|SIGN|SIZE|SORT|SORT-CONTROL|SORT-CORE-SIZE|SORT-FILE-SIZE|SORT-MERGE|SORT-MESSAGE|SORT-MODE-SIZE|SORT-RETURN|SOURCE|SOURCE-COMPUTER|SPACE|SPACES|SPECIAL-NAMES|STANDARD|STANDARD-1|STANDARD-2|START|STATUS|STOP|STRING|SUB-QUEUE-1|SUB-QUEUE-2|SUB-QUEUE-3|SUBTRACT|SUM|SUPPRESS|SYMBOL|SYMBOLIC|SYNC|SYNCHRONIZED|TABLE|TALLY|TALLYING|TAPE|TASK|TERMINAL|TERMINATE|TEST|TEXT|THEN|THREAD|THREAD-LOCAL|THROUGH|THRU|TIME|TIMER|TIMES|TITLE|TO|TODAYS-DATE|TODAYS-NAME|TOP|TRAILING|TRUNCATED|TYPE|TYPEDEF|UNDERLINE|UNIT|UNSTRING|UNTIL|UP|UPON|USAGE|USE|USING|VALUE|VALUES|VARYING|VIRTUAL|WAIT|WHEN|WHEN-COMPILED|WITH|WORDS|WORKING-STORAGE|WRITE|YEAR|YYYYDDD|YYYYMMDD|ZERO-FILL|ZEROES|ZEROS)(?![\w-])/i,lookbehind:!0},boolean:{pattern:/(^|[^\w-])(?:false|true)(?![\w-])/i,lookbehind:!0},number:{pattern:/(^|[^\w-])(?:[+-]?(?:(?:\d+(?:[.,]\d+)?|[.,]\d+)(?:e[+-]?\d+)?|zero))(?![\w-])/i,lookbehind:!0},operator:[/<>|[<>]=?|[=+*/&]/,{pattern:/(^|[^\w-])(?:-|and|equal|greater|less|not|or|than)(?![\w-])/i,lookbehind:!0}],punctuation:/[.:,()]/}}return NY}var OY,o3e;function YIn(){if(o3e)return OY;o3e=1,OY=e,e.displayName="coffeescript",e.aliases=["coffee"];function e(t){(function(n){var r=/#(?!\{).+/,i={pattern:/#\{[^}]+\}/,alias:"variable"};n.languages.coffeescript=n.languages.extend("javascript",{comment:r,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:i}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),n.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:r,interpolation:i}}}),n.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:n.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:i}}]}),n.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete n.languages.coffeescript["template-string"],n.languages.coffee=n.languages.coffeescript})(t)}return OY}var LY,s3e;function KIn(){if(s3e)return LY;s3e=1,LY=e,e.displayName="concurnas",e.aliases=["conc"];function e(t){t.languages.concurnas={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*)/,lookbehind:!0,greedy:!0},langext:{pattern:/\b\w+\s*\|\|[\s\S]+?\|\|/,greedy:!0,inside:{"class-name":/^\w+/,string:{pattern:/(^\s*\|\|)[\s\S]+(?=\|\|$)/,lookbehind:!0},punctuation:/\|\|/}},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/,lookbehind:!0},keyword:/\b(?:abstract|actor|also|annotation|assert|async|await|bool|boolean|break|byte|case|catch|changed|char|class|closed|constant|continue|def|default|del|double|elif|else|enum|every|extends|false|finally|float|for|from|global|gpudef|gpukernel|if|import|in|init|inject|int|lambda|local|long|loop|match|new|nodefault|null|of|onchange|open|out|override|package|parfor|parforsync|post|pre|private|protected|provide|provider|public|return|shared|short|single|size_t|sizeof|super|sync|this|throw|trait|trans|transient|true|try|typedef|unchecked|using|val|var|void|while|with)\b/,boolean:/\b(?:false|true)\b/,number:/\b0b[01][01_]*L?\b|\b0x(?:[\da-f_]*\.)?[\da-f_p+-]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfls]?/i,punctuation:/[{}[\];(),.:]/,operator:/<==|>==|=>|->|<-|<>|&==|&<>|\?:?|\.\?|\+\+|--|[-+*/=<>]=?|[!^~]|\b(?:and|as|band|bor|bxor|comp|is|isnot|mod|or)\b=?/,annotation:{pattern:/@(?:\w+:)?(?:\w+|\[[^\]]+\])?/,alias:"builtin"}},t.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:t.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:t.languages.concurnas},string:/[\s\S]+/}}}),t.languages.conc=t.languages.concurnas}return LY}var PY,l3e;function XIn(){if(l3e)return PY;l3e=1,PY=e,e.displayName="coq",e.aliases=[];function e(t){(function(n){for(var r=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|<self>)*\*\)/.source,i=0;i<2;i++)r=r.replace(/<self>/g,function(){return r});r=r.replace(/<self>/g,"[]"),n.languages.coq={comment:RegExp(r),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|<comment>)*\]/.source.replace(/<comment>/g,function(){return r})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(r),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(t)}return PY}var kY,c3e;function gU(){if(c3e)return kY;c3e=1,kY=e,e.displayName="ruby",e.aliases=["rb"];function e(t){(function(n){n.languages.ruby=n.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),n.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var r={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:n.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete n.languages.ruby.function;var i="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",a=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;n.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+i+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:r,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:r,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+a),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+a+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),n.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+i),greedy:!0,inside:{interpolation:r,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:r,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:r,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+i),greedy:!0,inside:{interpolation:r,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:r,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete n.languages.ruby.string,n.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),n.languages.rb=n.languages.ruby})(t)}return kY}var MY,u3e;function ZIn(){if(u3e)return MY;u3e=1;var e=gU();MY=t,t.displayName="crystal",t.aliases=[];function t(n){n.register(e),function(r){r.languages.crystal=r.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,r.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),r.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:r.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:r.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})}(n)}return MY}var DY,d3e;function QIn(){if(d3e)return DY;d3e=1;var e=mU();DY=t,t.displayName="cshtml",t.aliases=["razor"];function t(n){n.register(e),function(r){var i=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,a=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function o(g,v){for(var y=0;y<v;y++)g=g.replace(/<self>/g,function(){return"(?:"+g+")"});return g.replace(/<self>/g,"[^\\s\\S]").replace(/<str>/g,"(?:"+a+")").replace(/<comment>/g,"(?:"+i+")")}var s=o(/\((?:[^()'"@/]|<str>|<comment>|<self>)*\)/.source,2),l=o(/\[(?:[^\[\]'"@/]|<str>|<comment>|<self>)*\]/.source,2),c=o(/\{(?:[^{}'"@/]|<str>|<comment>|<self>)*\}/.source,2),u=o(/<(?:[^<>'"@/]|<str>|<comment>|<self>)*>/.source,2),d=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?/.source,f=/(?!\d)[^\s>\/=$<%]+/.source+d+/\s*\/?>/.source,p=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+d+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+f+"|"+o(/<\1/.source+d+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+f+"|<self>")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/</.source+f+")";r.languages.cshtml=r.languages.extend("markup",{});var h=r.languages.insertBefore("csharp","string",{html:{pattern:RegExp(p),greedy:!0,inside:r.languages.cshtml}},{csharp:r.languages.extend("csharp",{})}),m={pattern:/\S[\s\S]*/,alias:"language-csharp",inside:h};r.languages.insertBefore("cshtml","prolog",{"razor-comment":{pattern:/@\*[\s\S]*?\*@/,greedy:!0,alias:"comment"},block:{pattern:RegExp(/(^|[^@])@/.source+"(?:"+[c,/(?:code|functions)\s*/.source+c,/(?:for|foreach|lock|switch|using|while)\s*/.source+s+/\s*/.source+c,/do\s*/.source+c+/\s*while\s*/.source+s+/(?:\s*;)?/.source,/try\s*/.source+c+/\s*catch\s*/.source+s+/\s*/.source+c+/\s*finally\s*/.source+c,/if\s*/.source+s+/\s*/.source+c+"(?:"+/\s*else/.source+"(?:"+/\s+if\s*/.source+s+")?"+/\s*/.source+c+")*"].join("|")+")"),lookbehind:!0,greedy:!0,inside:{keyword:/^@\w*/,csharp:m}},directive:{pattern:/^([ \t]*)@(?:addTagHelper|attribute|implements|inherits|inject|layout|model|namespace|page|preservewhitespace|removeTagHelper|section|tagHelperPrefix|using)(?=\s).*/m,lookbehind:!0,greedy:!0,inside:{keyword:/^@\w+/,csharp:m}},value:{pattern:RegExp(/(^|[^@])@/.source+/(?:await\b\s*)?/.source+"(?:"+/\w+\b/.source+"|"+s+")(?:"+/[?!]?\.\w+\b/.source+"|"+s+"|"+l+"|"+u+s+")*"),lookbehind:!0,greedy:!0,alias:"variable",inside:{keyword:/^@/,csharp:m}},"delegate-operator":{pattern:/(^|[^@])@(?=<)/,lookbehind:!0,alias:"operator"}}),r.languages.razor=r.languages.cshtml}(n)}return DY}var $Y,f3e;function JIn(){if(f3e)return $Y;f3e=1,$Y=e,e.displayName="csp",e.aliases=[];function e(t){(function(n){function r(i){return RegExp(/([ \t])/.source+"(?:"+i+")"+/(?=[\s;]|$)/.source,"i")}n.languages.csp={directive:{pattern:/(^|[\s;])(?:base-uri|block-all-mixed-content|(?:child|connect|default|font|frame|img|manifest|media|object|prefetch|script|style|worker)-src|disown-opener|form-action|frame-(?:ancestors|options)|input-protection(?:-(?:clip|selectors))?|navigate-to|plugin-types|policy-uri|referrer|reflected-xss|report-(?:to|uri)|require-sri-for|sandbox|(?:script|style)-src-(?:attr|elem)|upgrade-insecure-requests)(?=[\s;]|$)/i,lookbehind:!0,alias:"property"},scheme:{pattern:r(/[a-z][a-z0-9.+-]*:/.source),lookbehind:!0},none:{pattern:r(/'none'/.source),lookbehind:!0,alias:"keyword"},nonce:{pattern:r(/'nonce-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},hash:{pattern:r(/'sha(?:256|384|512)-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},host:{pattern:r(/[a-z][a-z0-9.+-]*:\/\/[^\s;,']*/.source+"|"+/\*[^\s;,']*/.source+"|"+/[a-z0-9-]+(?:\.[a-z0-9-]+)+(?::[\d*]+)?(?:\/[^\s;,']*)?/.source),lookbehind:!0,alias:"url",inside:{important:/\*/}},keyword:[{pattern:r(/'unsafe-[a-z-]+'/.source),lookbehind:!0,alias:"unsafe"},{pattern:r(/'[a-z-]+'/.source),lookbehind:!0,alias:"safe"}],punctuation:/;/}})(t)}return $Y}var FY,p3e;function eAn(){if(p3e)return FY;p3e=1,FY=e,e.displayName="cssExtras",e.aliases=[];function e(t){(function(n){var r=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,i;n.languages.css.selector={pattern:n.languages.css.selector.pattern,lookbehind:!0,inside:i={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+r.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[r,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},n.languages.css.atrule.inside["selector-function-argument"].inside=i,n.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var a={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},o={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};n.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:a,number:o,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:a,number:o})})(t)}return FY}var BY,h3e;function tAn(){if(h3e)return BY;h3e=1,BY=e,e.displayName="csv",e.aliases=[];function e(t){t.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}return BY}var jY,m3e;function nAn(){if(m3e)return jY;m3e=1,jY=e,e.displayName="cypher",e.aliases=[];function e(t){t.languages.cypher={comment:/\/\/.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/,greedy:!0},"class-name":{pattern:/(:\s*)(?:\w+|`(?:[^`\\\r\n])*`)(?=\s*[{):])/,lookbehind:!0,greedy:!0},relationship:{pattern:/(-\[\s*(?:\w+\s*|`(?:[^`\\\r\n])*`\s*)?:\s*|\|\s*:\s*)(?:\w+|`(?:[^`\\\r\n])*`)/,lookbehind:!0,greedy:!0,alias:"property"},identifier:{pattern:/`(?:[^`\\\r\n])*`/,greedy:!0},variable:/\$\w+/,keyword:/\b(?:ADD|ALL|AND|AS|ASC|ASCENDING|ASSERT|BY|CALL|CASE|COMMIT|CONSTRAINT|CONTAINS|CREATE|CSV|DELETE|DESC|DESCENDING|DETACH|DISTINCT|DO|DROP|ELSE|END|ENDS|EXISTS|FOR|FOREACH|IN|INDEX|IS|JOIN|KEY|LIMIT|LOAD|MANDATORY|MATCH|MERGE|NODE|NOT|OF|ON|OPTIONAL|OR|ORDER(?=\s+BY)|PERIODIC|REMOVE|REQUIRE|RETURN|SCALAR|SCAN|SET|SKIP|START|STARTS|THEN|UNION|UNIQUE|UNWIND|USING|WHEN|WHERE|WITH|XOR|YIELD)\b/i,function:/\b\w+\b(?=\s*\()/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b/,operator:/:|<--?|--?>?|<>|=~?|[<>]=?|[+*/%^|]|\.\.\.?/,punctuation:/[()[\]{},;.]/}}return jY}var zY,g3e;function rAn(){if(g3e)return zY;g3e=1,zY=e,e.displayName="d",e.aliases=[];function e(t){t.languages.d=t.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),t.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),t.languages.insertBefore("d","keyword",{property:/\B@\w*/}),t.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}return zY}var UY,v3e;function iAn(){if(v3e)return UY;v3e=1,UY=e,e.displayName="dart",e.aliases=[];function e(t){(function(n){var r=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],i=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,a={pattern:RegExp(i+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};n.languages.dart=n.languages.extend("clike",{"class-name":[a,{pattern:RegExp(i+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:a.inside}],keyword:r,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),n.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:n.languages.dart}}},string:/[\s\S]+/}},string:void 0}),n.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),n.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":a,keyword:r,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})})(t)}return UY}var HY,y3e;function aAn(){if(y3e)return HY;y3e=1,HY=e,e.displayName="dataweave",e.aliases=[];function e(t){(function(n){n.languages.dataweave={url:/\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,property:{pattern:/(?:\b\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\b\w+)(?=\s*[:@])/,greedy:!0},string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},"mime-type":/\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,date:{pattern:/\|[\w:+-]+\|/,greedy:!0},comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],regex:{pattern:/\/(?:[^\\\/\r\n]|\\[^\r\n])+\//,greedy:!0},keyword:/\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/,function:/\b[A-Z_]\w*(?=\s*\()/i,number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\];(),.:@]/,operator:/<<|>>|->|[<>~=]=?|!=|--?-?|\+\+?|!|\?/,boolean:/\b(?:false|true)\b/}})(t)}return HY}var VY,b3e;function oAn(){if(b3e)return VY;b3e=1,VY=e,e.displayName="dax",e.aliases=[];function e(t){t.languages.dax={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/).*)/,lookbehind:!0},"data-field":{pattern:/'(?:[^']|'')*'(?!')(?:\[[ \w\xA0-\uFFFF]+\])?|\w+\[[ \w\xA0-\uFFFF]+\]/,alias:"symbol"},measure:{pattern:/\[[ \w\xA0-\uFFFF]+\]/,alias:"constant"},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},function:/\b(?:ABS|ACOS|ACOSH|ACOT|ACOTH|ADDCOLUMNS|ADDMISSINGITEMS|ALL|ALLCROSSFILTERED|ALLEXCEPT|ALLNOBLANKROW|ALLSELECTED|AND|APPROXIMATEDISTINCTCOUNT|ASIN|ASINH|ATAN|ATANH|AVERAGE|AVERAGEA|AVERAGEX|BETA\.DIST|BETA\.INV|BLANK|CALCULATE|CALCULATETABLE|CALENDAR|CALENDARAUTO|CEILING|CHISQ\.DIST|CHISQ\.DIST\.RT|CHISQ\.INV|CHISQ\.INV\.RT|CLOSINGBALANCEMONTH|CLOSINGBALANCEQUARTER|CLOSINGBALANCEYEAR|COALESCE|COMBIN|COMBINA|COMBINEVALUES|CONCATENATE|CONCATENATEX|CONFIDENCE\.NORM|CONFIDENCE\.T|CONTAINS|CONTAINSROW|CONTAINSSTRING|CONTAINSSTRINGEXACT|CONVERT|COS|COSH|COT|COTH|COUNT|COUNTA|COUNTAX|COUNTBLANK|COUNTROWS|COUNTX|CROSSFILTER|CROSSJOIN|CURRENCY|CURRENTGROUP|CUSTOMDATA|DATATABLE|DATE|DATEADD|DATEDIFF|DATESBETWEEN|DATESINPERIOD|DATESMTD|DATESQTD|DATESYTD|DATEVALUE|DAY|DEGREES|DETAILROWS|DISTINCT|DISTINCTCOUNT|DISTINCTCOUNTNOBLANK|DIVIDE|EARLIER|EARLIEST|EDATE|ENDOFMONTH|ENDOFQUARTER|ENDOFYEAR|EOMONTH|ERROR|EVEN|EXACT|EXCEPT|EXP|EXPON\.DIST|FACT|FALSE|FILTER|FILTERS|FIND|FIRSTDATE|FIRSTNONBLANK|FIRSTNONBLANKVALUE|FIXED|FLOOR|FORMAT|GCD|GENERATE|GENERATEALL|GENERATESERIES|GEOMEAN|GEOMEANX|GROUPBY|HASONEFILTER|HASONEVALUE|HOUR|IF|IF\.EAGER|IFERROR|IGNORE|INT|INTERSECT|ISBLANK|ISCROSSFILTERED|ISEMPTY|ISERROR|ISEVEN|ISFILTERED|ISINSCOPE|ISLOGICAL|ISNONTEXT|ISNUMBER|ISO\.CEILING|ISODD|ISONORAFTER|ISSELECTEDMEASURE|ISSUBTOTAL|ISTEXT|KEEPFILTERS|KEYWORDMATCH|LASTDATE|LASTNONBLANK|LASTNONBLANKVALUE|LCM|LEFT|LEN|LN|LOG|LOG10|LOOKUPVALUE|LOWER|MAX|MAXA|MAXX|MEDIAN|MEDIANX|MID|MIN|MINA|MINUTE|MINX|MOD|MONTH|MROUND|NATURALINNERJOIN|NATURALLEFTOUTERJOIN|NEXTDAY|NEXTMONTH|NEXTQUARTER|NEXTYEAR|NONVISUAL|NORM\.DIST|NORM\.INV|NORM\.S\.DIST|NORM\.S\.INV|NOT|NOW|ODD|OPENINGBALANCEMONTH|OPENINGBALANCEQUARTER|OPENINGBALANCEYEAR|OR|PARALLELPERIOD|PATH|PATHCONTAINS|PATHITEM|PATHITEMREVERSE|PATHLENGTH|PERCENTILE\.EXC|PERCENTILE\.INC|PERCENTILEX\.EXC|PERCENTILEX\.INC|PERMUT|PI|POISSON\.DIST|POWER|PREVIOUSDAY|PREVIOUSMONTH|PREVIOUSQUARTER|PREVIOUSYEAR|PRODUCT|PRODUCTX|QUARTER|QUOTIENT|RADIANS|RAND|RANDBETWEEN|RANK\.EQ|RANKX|RELATED|RELATEDTABLE|REMOVEFILTERS|REPLACE|REPT|RIGHT|ROLLUP|ROLLUPADDISSUBTOTAL|ROLLUPGROUP|ROLLUPISSUBTOTAL|ROUND|ROUNDDOWN|ROUNDUP|ROW|SAMEPERIODLASTYEAR|SAMPLE|SEARCH|SECOND|SELECTCOLUMNS|SELECTEDMEASURE|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURENAME|SELECTEDVALUE|SIGN|SIN|SINH|SQRT|SQRTPI|STARTOFMONTH|STARTOFQUARTER|STARTOFYEAR|STDEV\.P|STDEV\.S|STDEVX\.P|STDEVX\.S|SUBSTITUTE|SUBSTITUTEWITHINDEX|SUM|SUMMARIZE|SUMMARIZECOLUMNS|SUMX|SWITCH|T\.DIST|T\.DIST\.2T|T\.DIST\.RT|T\.INV|T\.INV\.2T|TAN|TANH|TIME|TIMEVALUE|TODAY|TOPN|TOPNPERLEVEL|TOPNSKIP|TOTALMTD|TOTALQTD|TOTALYTD|TREATAS|TRIM|TRUE|TRUNC|UNICHAR|UNICODE|UNION|UPPER|USERELATIONSHIP|USERNAME|USEROBJECTID|USERPRINCIPALNAME|UTCNOW|UTCTODAY|VALUE|VALUES|VAR\.P|VAR\.S|VARX\.P|VARX\.S|WEEKDAY|WEEKNUM|XIRR|XNPV|YEAR|YEARFRAC)(?=\s*\()/i,keyword:/\b(?:DEFINE|EVALUATE|MEASURE|ORDER\s+BY|RETURN|VAR|START\s+AT|ASC|DESC)\b/i,boolean:{pattern:/\b(?:FALSE|NULL|TRUE)\b/i,alias:"constant"},number:/\b\d+(?:\.\d*)?|\B\.\d+\b/,operator:/:=|[-+*\/=^]|&&?|\|\||<(?:=>?|<|>)?|>[>=]?|\b(?:IN|NOT)\b/i,punctuation:/[;\[\](){}`,.]/}}return VY}var GY,_3e;function sAn(){if(_3e)return GY;_3e=1,GY=e,e.displayName="dhall",e.aliases=[];function e(t){t.languages.dhall={comment:/--.*|\{-(?:[^-{]|-(?!\})|\{(?!-)|\{-(?:[^-{]|-(?!\})|\{(?!-))*-\})*-\}/,string:{pattern:/"(?:[^"\\]|\\.)*"|''(?:[^']|'(?!')|'''|''\$\{)*''(?!'|\$)/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-dhall",inside:null},punctuation:/\$\{|\}/}}}},label:{pattern:/`[^`]*`/,greedy:!0},url:{pattern:/\bhttps?:\/\/[\w.:%!$&'*+;=@~-]+(?:\/[\w.:%!$&'*+;=@~-]*)*(?:\?[/?\w.:%!$&'*+;=@~-]*)?/,greedy:!0},env:{pattern:/\benv:(?:(?!\d)\w+|"(?:[^"\\=]|\\.)*")/,greedy:!0,inside:{function:/^env/,operator:/^:/,variable:/[\s\S]+/}},hash:{pattern:/\bsha256:[\da-fA-F]{64}\b/,inside:{function:/sha256/,operator:/:/,number:/[\da-fA-F]{64}/}},keyword:/\b(?:as|assert|else|forall|if|in|let|merge|missing|then|toMap|using|with)\b|\u2200/,builtin:/\b(?:None|Some)\b/,boolean:/\b(?:False|True)\b/,number:/\bNaN\b|-?\bInfinity\b|[+-]?\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/,operator:/\/\\|\/\/\\\\|&&|\|\||===|[!=]=|\/\/|->|\+\+|::|[+*#@=:?<>|\\\u2227\u2a53\u2261\u2afd\u03bb\u2192]/,punctuation:/\.\.|[{}\[\](),./]/,"class-name":/\b[A-Z]\w*\b/},t.languages.dhall.string.inside.interpolation.inside.expression.inside=t.languages.dhall}return GY}var qY,S3e;function lAn(){if(S3e)return qY;S3e=1,qY=e,e.displayName="diff",e.aliases=[];function e(t){(function(n){n.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var r={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(r).forEach(function(i){var a=r[i],o=[];/^\w+$/.test(i)||o.push(/\w+/.exec(i)[0]),i==="diff"&&o.push("bold"),n.languages.diff[i]={pattern:RegExp("^(?:["+a+`].*(?:\r
?|
|(?![\\s\\S])))+`,"m"),alias:o,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(i)[0]}}}}),Object.defineProperty(n.languages.diff,"PREFIXES",{value:r})})(t)}return qY}var WY,E3e;function jd(){if(E3e)return WY;E3e=1,WY=e,e.displayName="markupTemplating",e.aliases=[];function e(t){(function(n){function r(i,a){return"___"+i.toUpperCase()+a+"___"}Object.defineProperties(n.languages["markup-templating"]={},{buildPlaceholders:{value:function(i,a,o,s){if(i.language===a){var l=i.tokenStack=[];i.code=i.code.replace(o,function(c){if(typeof s=="function"&&!s(c))return c;for(var u=l.length,d;i.code.indexOf(d=r(a,u))!==-1;)++u;return l[u]=c,d}),i.grammar=n.languages.markup}}},tokenizePlaceholders:{value:function(i,a){if(i.language!==a||!i.tokenStack)return;i.grammar=n.languages[a];var o=0,s=Object.keys(i.tokenStack);function l(c){for(var u=0;u<c.length&&!(o>=s.length);u++){var d=c[u];if(typeof d=="string"||d.content&&typeof d.content=="string"){var f=s[o],p=i.tokenStack[f],h=typeof d=="string"?d:d.content,m=r(a,f),g=h.indexOf(m);if(g>-1){++o;var v=h.substring(0,g),y=new n.Token(a,n.tokenize(p,i.grammar),"language-"+a,p),_=h.substring(g+m.length),S=[];v&&S.push.apply(S,l([v])),S.push(y),_&&S.push.apply(S,l([_])),typeof d=="string"?c.splice.apply(c,[u,1].concat(S)):d.content=S}}else d.content&&l(d.content)}return c}l(i.tokens)}}})})(t)}return WY}var YY,C3e;function cAn(){if(C3e)return YY;C3e=1;var e=jd();YY=t,t.displayName="django",t.aliases=["jinja2"];function t(n){n.register(e),function(r){r.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var i=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,a=r.languages["markup-templating"];r.hooks.add("before-tokenize",function(o){a.buildPlaceholders(o,"django",i)}),r.hooks.add("after-tokenize",function(o){a.tokenizePlaceholders(o,"django")}),r.languages.jinja2=r.languages.django,r.hooks.add("before-tokenize",function(o){a.buildPlaceholders(o,"jinja2",i)}),r.hooks.add("after-tokenize",function(o){a.tokenizePlaceholders(o,"jinja2")})}(n)}return YY}var KY,w3e;function uAn(){if(w3e)return KY;w3e=1,KY=e,e.displayName="dnsZoneFile",e.aliases=[];function e(t){t.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},t.languages["dns-zone"]=t.languages["dns-zone-file"]}return KY}var XY,x3e;function dAn(){if(x3e)return XY;x3e=1,XY=e,e.displayName="docker",e.aliases=["dockerfile"];function e(t){(function(n){var r=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,i=/(?:[ \t]+(?![ \t])(?:<SP_BS>)?|<SP_BS>)/.source.replace(/<SP_BS>/g,function(){return r}),a=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,o=/--[\w-]+=(?:<STR>|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(/<STR>/g,function(){return a}),s={pattern:RegExp(a),greedy:!0},l={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function c(u,d){return u=u.replace(/<OPT>/g,function(){return o}).replace(/<SP>/g,function(){return i}),RegExp(u,d)}n.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:c(/(^(?:ONBUILD<SP>)?\w+<SP>)<OPT>(?:<SP><OPT>)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[s,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:c(/(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:c(/(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t\\]+<SP>)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:c(/(^ONBUILD<SP>)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:l,string:s,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:l},n.languages.dockerfile=n.languages.docker})(t)}return XY}var ZY,T3e;function fAn(){if(T3e)return ZY;T3e=1,ZY=e,e.displayName="dot",e.aliases=["gv"];function e(t){(function(n){var r="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!<!--)<(?:[^<>"']|"[^"]*"|'[^']*')+>|<!--(?:[^-]|-(?!->))*-->)*>/.source].join("|")+")",i={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:n.languages.markup}};function a(o,s){return RegExp(o.replace(/<ID>/g,function(){return r}),s)}n.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:a(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)<ID>/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:i},"attr-value":{pattern:a(/(=[ \t\r\n]*)<ID>/.source),lookbehind:!0,greedy:!0,inside:i},"attr-name":{pattern:a(/([\[;, \t\r\n])<ID>(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:i},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:a(/(^|[^-.\w\x80-\uFFFF\\])<ID>/.source),lookbehind:!0,greedy:!0,inside:i},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},n.languages.gv=n.languages.dot})(t)}return ZY}var QY,I3e;function pAn(){if(I3e)return QY;I3e=1,QY=e,e.displayName="ebnf",e.aliases=[];function e(t){t.languages.ebnf={comment:/\(\*[\s\S]*?\*\)/,string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},special:{pattern:/\?[^?\r\n]*\?/,greedy:!0,alias:"class-name"},definition:{pattern:/^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,lookbehind:!0,alias:["rule","keyword"]},rule:/\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,punctuation:/\([:/]|[:/]\)|[.,;()[\]{}]/,operator:/[-=|*/!]/}}return QY}var JY,A3e;function hAn(){if(A3e)return JY;A3e=1,JY=e,e.displayName="editorconfig",e.aliases=[];function e(t){t.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"selector",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}}return JY}var eK,R3e;function mAn(){if(R3e)return eK;R3e=1,eK=e,e.displayName="eiffel",e.aliases=[];function e(t){t.languages.eiffel={comment:/--.*/,string:[{pattern:/"([^[]*)\[[\s\S]*?\]\1"/,greedy:!0},{pattern:/"([^{]*)\{[\s\S]*?\}\1"/,greedy:!0},{pattern:/"(?:%(?:(?!\n)\s)*\n\s*%|%\S|[^%"\r\n])*"/,greedy:!0}],char:/'(?:%.|[^%'\r\n])+'/,keyword:/\b(?:across|agent|alias|all|and|as|assign|attached|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i,boolean:/\b(?:False|True)\b/i,"class-name":/\b[A-Z][\dA-Z_]*\b/,number:[/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,/(?:\b\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?e[+-]?)?\d(?:_*\d)*\b|\b\d(?:_*\d)*\b\.?/i],punctuation:/:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/,operator:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}return eK}var tK,N3e;function gAn(){if(N3e)return tK;N3e=1;var e=jd();tK=t,t.displayName="ejs",t.aliases=["eta"];function t(n){n.register(e),function(r){r.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:r.languages.javascript}},r.hooks.add("before-tokenize",function(i){var a=/<%(?!%)[\s\S]+?%>/g;r.languages["markup-templating"].buildPlaceholders(i,"ejs",a)}),r.hooks.add("after-tokenize",function(i){r.languages["markup-templating"].tokenizePlaceholders(i,"ejs")}),r.languages.eta=r.languages.ejs}(n)}return tK}var nK,O3e;function vAn(){if(O3e)return nK;O3e=1,nK=e,e.displayName="elixir",e.aliases=[];function e(t){t.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},t.languages.elixir.string.forEach(function(n){n.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:t.languages.elixir}}}})}return nK}var rK,L3e;function yAn(){if(L3e)return rK;L3e=1,rK=e,e.displayName="elm",e.aliases=[];function e(t){t.languages.elm={comment:/--.*|\{-[\s\S]*?-\}/,char:{pattern:/'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+|u\{[0-9a-fA-F]+\}))'/,greedy:!0},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:[^\\"\r\n]|\\.)*"/,greedy:!0}],"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|exposing|import)\b/}},keyword:/\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/,builtin:/\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,hvariable:/\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,constant:/\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,punctuation:/[{}[\]|(),.:]/}}return rK}var iK,P3e;function bAn(){if(P3e)return iK;P3e=1;var e=gU(),t=jd();iK=n,n.displayName="erb",n.aliases=[];function n(r){r.register(e),r.register(t),function(i){i.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:i.languages.ruby}},i.hooks.add("before-tokenize",function(a){var o=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;i.languages["markup-templating"].buildPlaceholders(a,"erb",o)}),i.hooks.add("after-tokenize",function(a){i.languages["markup-templating"].tokenizePlaceholders(a,"erb")})}(r)}return iK}var aK,k3e;function _An(){if(k3e)return aK;k3e=1,aK=e,e.displayName="erlang",e.aliases=[];function e(t){t.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}return aK}var oK,M3e;function YJe(){if(M3e)return oK;M3e=1,oK=e,e.displayName="lua",e.aliases=[];function e(t){t.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}return oK}var sK,D3e;function SAn(){if(D3e)return sK;D3e=1;var e=YJe(),t=jd();sK=n,n.displayName="etlua",n.aliases=[];function n(r){r.register(e),r.register(t),function(i){i.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:i.languages.lua}},i.hooks.add("before-tokenize",function(a){var o=/<%[\s\S]+?%>/g;i.languages["markup-templating"].buildPlaceholders(a,"etlua",o)}),i.hooks.add("after-tokenize",function(a){i.languages["markup-templating"].tokenizePlaceholders(a,"etlua")})}(r)}return sK}var lK,$3e;function EAn(){if($3e)return lK;$3e=1,lK=e,e.displayName="excelFormula",e.aliases=[];function e(t){t.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"keyword"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"property",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"property"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},t.languages.xlsx=t.languages.xls=t.languages["excel-formula"]}return lK}var cK,F3e;function CAn(){if(F3e)return cK;F3e=1,cK=e,e.displayName="factor",e.aliases=[];function e(t){(function(n){var r={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},i={number:/\\[^\s']|%\w/},a={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:r},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:r}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:i.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:i},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:i}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:i}},o=function(u){return(u+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},s=function(u){return new RegExp("(^|\\s)(?:"+u.map(o).join("|")+")(?=\\s|$)")},l={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","<wrapper>","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated","<PRIVATE",">>>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","<slice>","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","<iota>","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","<reversed>","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","<repetition>","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","<fp-nan>","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(l).forEach(function(u){a[u].pattern=s(l[u])});var c=["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","input<sequence","append-outputs","drop-inputs","inputs","smart-2reduce","drop-outputs","smart-reduce","preserving","smart-when","outputs","append-outputs-as","smart-unless","smart-if*","sum-outputs","input<sequence-unsafe","output>sequence"];a.combinators.pattern=s(c),n.languages.factor=a})(t)}return cK}var uK,B3e;function wAn(){if(B3e)return uK;B3e=1,uK=e,e.displayName="$false",e.aliases=[];function e(t){(function(n){n.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()<BDO®]/,alias:"bold"}}})(t)}return uK}var dK,j3e;function xAn(){if(j3e)return dK;j3e=1,dK=e,e.displayName="firestoreSecurityRules",e.aliases=[];function e(t){t.languages["firestore-security-rules"]=t.languages.extend("clike",{comment:/\/\/.*/,keyword:/\b(?:allow|function|if|match|null|return|rules_version|service)\b/,operator:/&&|\|\||[<>!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete t.languages["firestore-security-rules"]["class-name"],t.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}return dK}var fK,z3e;function TAn(){if(z3e)return fK;z3e=1,fK=e,e.displayName="flow",e.aliases=[];function e(t){(function(n){n.languages.flow=n.languages.extend("javascript",{}),n.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|any|mixed|null|void)\b/,alias:"tag"}]}),n.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete n.languages.flow.parameter,n.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(n.languages.flow.keyword)||(n.languages.flow.keyword=[n.languages.flow.keyword]),n.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})})(t)}return fK}var pK,U3e;function IAn(){if(U3e)return pK;U3e=1,pK=e,e.displayName="fortran",e.aliases=[];function e(t){t.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}return pK}var hK,H3e;function AAn(){if(H3e)return hK;H3e=1,hK=e,e.displayName="fsharp",e.aliases=[];function e(t){t.languages.fsharp=t.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|<?\|{1,3}>?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),t.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),t.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),t.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:t.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}return hK}var mK,V3e;function RAn(){if(V3e)return mK;V3e=1;var e=jd();mK=t,t.displayName="ftl",t.aliases=[];function t(n){n.register(e),function(r){for(var i=/[^<()"']|\((?:<expr>)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,a=0;a<2;a++)i=i.replace(/<expr>/g,function(){return i});i=i.replace(/<expr>/g,/[^\s\S]/.source);var o={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:<expr>))*\})*\1/.source.replace(/<expr>/g,function(){return i})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:<expr>))*\}/.source.replace(/<expr>/g,function(){return i})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};o.string[1].inside.interpolation.inside.rest=o,r.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:o}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:o}}}},r.hooks.add("before-tokenize",function(s){var l=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:<expr>)*?>|\$\{(?:<expr>)*?\}/.source.replace(/<expr>/g,function(){return i}),"gi");r.languages["markup-templating"].buildPlaceholders(s,"ftl",l)}),r.hooks.add("after-tokenize",function(s){r.languages["markup-templating"].tokenizePlaceholders(s,"ftl")})}(n)}return mK}var gK,G3e;function NAn(){if(G3e)return gK;G3e=1,gK=e,e.displayName="gap",e.aliases=[];function e(t){t.languages.gap={shell:{pattern:/^gap>[\s\S]*?(?=^gap>|$(?![\s\S]))/m,greedy:!0,inside:{gap:{pattern:/^(gap>).+(?:(?:\r(?:\n|(?!\n))|\n)>.*)*/,lookbehind:!0,inside:null},punctuation:/^gap>/}},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\'"])(?:'(?:[^\r\n\\']|\\.){1,10}'|"(?:[^\r\n\\"]|\\.)*"(?!")|"""[\s\S]*?""")/,lookbehind:!0,greedy:!0,inside:{continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"}}},keyword:/\b(?:Assert|Info|IsBound|QUIT|TryNextMethod|Unbind|and|atomic|break|continue|do|elif|else|end|fi|for|function|if|in|local|mod|not|od|or|quit|readonly|readwrite|rec|repeat|return|then|until|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"},operator:/->|[-+*/^~=!]|<>|[<>]=?|:=|\.\./,punctuation:/[()[\]{},;.:]/},t.languages.gap.shell.inside.gap.inside=t.languages.gap}return gK}var vK,q3e;function OAn(){if(q3e)return vK;q3e=1,vK=e,e.displayName="gcode",e.aliases=[];function e(t){t.languages.gcode={comment:/;.*|\B\(.*?\)\B/,string:{pattern:/"(?:""|[^"])*"/,greedy:!0},keyword:/\b[GM]\d+(?:\.\d+)?\b/,property:/\b[A-Z]/,checksum:{pattern:/(\*)\d+/,lookbehind:!0,alias:"number"},punctuation:/[:*]/}}return vK}var yK,W3e;function LAn(){if(W3e)return yK;W3e=1,yK=e,e.displayName="gdscript",e.aliases=[];function e(t){t.languages.gdscript={comment:/#.*/,string:{pattern:/@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/,greedy:!0},"class-name":{pattern:/(^(?:class|class_name|extends)[ \t]+|^export\([ \t]*|\bas[ \t]+|(?:\b(?:const|var)[ \t]|[,(])[ \t]*\w+[ \t]*:[ \t]*|->[ \t]*)[a-zA-Z_]\w*/m,lookbehind:!0},keyword:/\b(?:and|as|assert|break|breakpoint|class|class_name|const|continue|elif|else|enum|export|extends|for|func|if|in|is|master|mastersync|match|not|null|onready|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|signal|static|tool|var|while|yield)\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,variable:/\$\w+/,number:[/\b0b[01_]+\b|\b0x[\da-fA-F_]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.[\d_]+)(?:e[+-]?[\d_]+)?\b/,/\b(?:INF|NAN|PI|TAU)\b/],constant:/\b[A-Z][A-Z_\d]*\b/,boolean:/\b(?:false|true)\b/,operator:/->|:=|&&|\|\||<<|>>|[-+*/%&|!<>=]=?|[~^]/,punctuation:/[.:,;()[\]{}]/}}return yK}var bK,Y3e;function PAn(){if(Y3e)return bK;Y3e=1,bK=e,e.displayName="gedcom",e.aliases=[];function e(t){t.languages.gedcom={"line-value":{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,lookbehind:!0,inside:{pointer:{pattern:/^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,alias:"variable"}}},tag:{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,lookbehind:!0,alias:"string"},level:{pattern:/(^[\t ]*)\d+/m,lookbehind:!0,alias:"number"},pointer:{pattern:/@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,alias:"variable"}}}return bK}var _K,K3e;function kAn(){if(K3e)return _K;K3e=1,_K=e,e.displayName="gherkin",e.aliases=[];function e(t){(function(n){var r=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;n.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+r+")(?:"+r+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(r),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}})(t)}return _K}var SK,X3e;function MAn(){if(X3e)return SK;X3e=1,SK=e,e.displayName="git",e.aliases=[];function e(t){t.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m}}return SK}var EK,Z3e;function DAn(){if(Z3e)return EK;Z3e=1;var e=LC();EK=t,t.displayName="glsl",t.aliases=[];function t(n){n.register(e),n.languages.glsl=n.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}return EK}var CK,Q3e;function $An(){if(Q3e)return CK;Q3e=1,CK=e,e.displayName="gml",e.aliases=[];function e(t){t.languages.gamemakerlanguage=t.languages.gml=t.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}return CK}var wK,J3e;function FAn(){if(J3e)return wK;J3e=1,wK=e,e.displayName="gn",e.aliases=["gni"];function e(t){t.languages.gn={comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,lookbehind:!0,inside:{number:/^\$0x[\s\S]{2}$/,variable:/^\$\w+$/,"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:/\b(?:else|if)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,alias:"keyword"},function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,number:/-?\b\d+\b/,operator:/[-+!=<>]=?|&&|\|\|/,punctuation:/[(){}[\],.]/},t.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=t.languages.gn,t.languages.gni=t.languages.gn}return wK}var xK,eTe;function BAn(){if(eTe)return xK;eTe=1,xK=e,e.displayName="goModule",e.aliases=[];function e(t){t.languages["go-mod"]=t.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/}}return xK}var TK,tTe;function jAn(){if(tTe)return TK;tTe=1,TK=e,e.displayName="go",e.aliases=[];function e(t){t.languages.go=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),t.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete t.languages.go["class-name"]}return TK}var IK,nTe;function zAn(){if(nTe)return IK;nTe=1,IK=e,e.displayName="graphql",e.aliases=[];function e(t){t.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:t.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},t.hooks.add("after-tokenize",function(r){if(r.language!=="graphql")return;var i=r.tokens.filter(function(v){return typeof v!="string"&&v.type!=="comment"&&v.type!=="scalar"}),a=0;function o(v){return i[a+v]}function s(v,y){y=y||0;for(var _=0;_<v.length;_++){var S=o(_+y);if(!S||S.type!==v[_])return!1}return!0}function l(v,y){for(var _=1,S=a;S<i.length;S++){var C=i[S],w=C.content;if(C.type==="punctuation"&&typeof w=="string"){if(v.test(w))_++;else if(y.test(w)&&(_--,_===0))return S}}return-1}function c(v,y){var _=v.alias;_?Array.isArray(_)||(v.alias=_=[_]):v.alias=_=[],_.push(y)}for(;a<i.length;){var u=i[a++];if(u.type==="keyword"&&u.content==="mutation"){var d=[];if(s(["definition-mutation","punctuation"])&&o(1).content==="("){a+=2;var f=l(/^\($/,/^\)$/);if(f===-1)continue;for(;a<f;a++){var p=o(0);p.type==="variable"&&(c(p,"variable-input"),d.push(p.content))}a=f+1}if(s(["punctuation","property-query"])&&o(0).content==="{"&&(a++,c(o(0),"property-mutation"),d.length>0)){var h=l(/^\{$/,/^\}$/);if(h===-1)continue;for(var m=a;m<h;m++){var g=i[m];g.type==="variable"&&d.indexOf(g.content)>=0&&c(g,"variable-input")}}}}})}return IK}var AK,rTe;function UAn(){if(rTe)return AK;rTe=1,AK=e,e.displayName="groovy",e.aliases=[];function e(t){t.languages.groovy=t.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),t.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),t.hooks.add("wrap",function(n){if(n.language==="groovy"&&n.type==="string"){var r=n.content.value[0];if(r!="'"){var i=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;r==="$"&&(i=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),n.content.value=n.content.value.replace(/&lt;/g,"<").replace(/&amp;/g,"&"),n.content=t.highlight(n.content.value,{expression:{pattern:i,lookbehind:!0,inside:t.languages.groovy}}),n.classes.push(r==="/"?"regex":"gstring")}}})}return AK}var RK,iTe;function HAn(){if(iTe)return RK;iTe=1;var e=gU();RK=t,t.displayName="haml",t.aliases=[];function t(n){n.register(e),function(r){r.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:r.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:r.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:r.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:r.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:r.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:r.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:r.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var i="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",a=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],o={},s=0,l=a.length;s<l;s++){var c=a[s];c=typeof c=="string"?{filter:c,language:c}:c,r.languages[c.language]&&(o["filter-"+c.filter]={pattern:RegExp(i.replace("{{filter_name}}",function(){return c.filter})),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"},text:{pattern:/[\s\S]+/,alias:[c.language,"language-"+c.language],inside:r.languages[c.language]}}})}r.languages.insertBefore("haml","filter",o)}(n)}return RK}var NK,aTe;function VAn(){if(aTe)return NK;aTe=1;var e=jd();NK=t,t.displayName="handlebars",t.aliases=["hbs"];function t(n){n.register(e),function(r){r.languages.handlebars={comment:/\{\{![\s\S]*?\}\}/,delimiter:{pattern:/^\{\{\{?|\}\}\}?$/,alias:"punctuation"},string:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][+-]?\d+)?/,boolean:/\b(?:false|true)\b/,block:{pattern:/^(\s*(?:~\s*)?)[#\/]\S+?(?=\s*(?:~\s*)?$|\s)/,lookbehind:!0,alias:"keyword"},brackets:{pattern:/\[[^\]]+\]/,inside:{punctuation:/\[|\]/,variable:/[\s\S]+/}},punctuation:/[!"#%&':()*+,.\/;<=>@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},r.hooks.add("before-tokenize",function(i){var a=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;r.languages["markup-templating"].buildPlaceholders(i,"handlebars",a)}),r.hooks.add("after-tokenize",function(i){r.languages["markup-templating"].tokenizePlaceholders(i,"handlebars")}),r.languages.hbs=r.languages.handlebars}(n)}return NK}var OK,oTe;function She(){if(oTe)return OK;oTe=1,OK=e,e.displayName="haskell",e.aliases=["hs"];function e(t){t.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},t.languages.hs=t.languages.haskell}return OK}var LK,sTe;function GAn(){if(sTe)return LK;sTe=1,LK=e,e.displayName="haxe",e.aliases=[];function e(t){t.languages.haxe=t.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<<?|>{1,3}|[-+*/%!=&|^])=?|[?:~]/}),t.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:t.languages.haxe}}},string:/[\s\S]+/}}}),t.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),t.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}return LK}var PK,lTe;function qAn(){if(lTe)return PK;lTe=1,PK=e,e.displayName="hcl",e.aliases=[];function e(t){t.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/}}return PK}var kK,cTe;function WAn(){if(cTe)return kK;cTe=1;var e=LC();kK=t,t.displayName="hlsl",t.aliases=[];function t(n){n.register(e),n.languages.hlsl=n.languages.extend("c",{"class-name":[n.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}return kK}var MK,uTe;function YAn(){if(uTe)return MK;uTe=1,MK=e,e.displayName="hoon",e.aliases=[];function e(t){t.languages.hoon={comment:{pattern:/::.*/,greedy:!0},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},constant:/%(?:\.[ny]|[\w-]+)/,"class-name":/@(?:[a-z0-9-]*[a-z0-9])?|\*/i,function:/(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,keyword:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}return MK}var DK,dTe;function KAn(){if(dTe)return DK;dTe=1,DK=e,e.displayName="hpkp",e.aliases=[];function e(t){t.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}return DK}var $K,fTe;function XAn(){if(fTe)return $K;fTe=1,$K=e,e.displayName="hsts",e.aliases=[];function e(t){t.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}return $K}var FK,pTe;function ZAn(){if(pTe)return FK;pTe=1,FK=e,e.displayName="http",e.aliases=[];function e(t){(function(n){function r(d){return RegExp("(^(?:"+d+"):[ 	]*(?![ 	]))[^]+","i")}n.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:n.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:r(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:n.languages.csp},{pattern:r(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:n.languages.hpkp},{pattern:r(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:n.languages.hsts},{pattern:r(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var i=n.languages,a={"application/javascript":i.javascript,"application/json":i.json||i.javascript,"application/xml":i.xml,"text/xml":i.xml,"text/html":i.html,"text/css":i.css,"text/plain":i.plain},o={"application/json":!0,"application/xml":!0};function s(d){var f=d.replace(/^[a-z]+\//,""),p="\\w+/(?:[\\w.-]+\\+)+"+f+"(?![+\\w.-])";return"(?:"+d+"|"+p+")"}var l;for(var c in a)if(a[c]){l=l||{};var u=o[c]?s(c):c;l[c.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+u+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:a[c]}}l&&n.languages.insertBefore("http","header",l)})(t)}return FK}var BK,hTe;function QAn(){if(hTe)return BK;hTe=1,BK=e,e.displayName="ichigojam",e.aliases=[];function e(t){t.languages.ichigojam={comment:/(?:\B'|REM)(?:[^\n\r]*)/i,string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,function:/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,label:/(?:\B@\S+)/,operator:/<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,punctuation:/[\[,;:()\]]/}}return BK}var jK,mTe;function JAn(){if(mTe)return jK;mTe=1,jK=e,e.displayName="icon",e.aliases=[];function e(t){t.languages.icon={comment:/#.*/,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,greedy:!0},number:/\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,"builtin-keyword":{pattern:/&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,alias:"variable"},directive:{pattern:/\$\w+/,alias:"builtin"},keyword:/\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,function:/\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,operator:/[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|<?=?)|>>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,punctuation:/[\[\](){},;]/}}return jK}var zK,gTe;function eRn(){if(gTe)return zK;gTe=1,zK=e,e.displayName="icuMessageFormat",e.aliases=[];function e(t){(function(n){function r(c,u){return u<=0?/[]/.source:c.replace(/<SELF>/g,function(){return r(c,u-1)})}var i=/'[{}:=,](?:[^']|'')*'(?!')/,a={pattern:/''/,greedy:!0,alias:"operator"},o={pattern:i,greedy:!0,inside:{escape:a}},s=r(/\{(?:[^{}']|'(?![{},'])|''|<STR>|<SELF>)*\}/.source.replace(/<STR>/g,function(){return i.source}),8),l={pattern:RegExp(s),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};n.languages["icu-message-format"]={argument:{pattern:RegExp(s),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":l,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":l,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+r(/(?:[^{}']|'[^']*'|\{(?:<SELF>)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:a,string:o},l.inside.message.inside=n.languages["icu-message-format"],n.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=n.languages["icu-message-format"]})(t)}return zK}var UK,vTe;function tRn(){if(vTe)return UK;vTe=1;var e=She();UK=t,t.displayName="idris",t.aliases=["idr"];function t(n){n.register(e),n.languages.idris=n.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),n.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),n.languages.idr=n.languages.idris}return UK}var HK,yTe;function nRn(){if(yTe)return HK;yTe=1,HK=e,e.displayName="iecst",e.aliases=[];function e(t){t.languages.iecst={comment:[{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\(\*[\s\S]*?(?:\*\)|$)|\{[\s\S]*?(?:\}|$))/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:[/\b(?:END_)?(?:PROGRAM|CONFIGURATION|INTERFACE|FUNCTION_BLOCK|FUNCTION|ACTION|TRANSITION|TYPE|STRUCT|(?:INITIAL_)?STEP|NAMESPACE|LIBRARY|CHANNEL|FOLDER|RESOURCE|VAR_(?:ACCESS|CONFIG|EXTERNAL|GLOBAL|INPUT|IN_OUT|OUTPUT|TEMP)|VAR|METHOD|PROPERTY)\b/i,/\b(?:AT|BY|(?:END_)?(?:CASE|FOR|IF|REPEAT|WHILE)|CONSTANT|CONTINUE|DO|ELSE|ELSIF|EXIT|EXTENDS|FROM|GET|GOTO|IMPLEMENTS|JMP|NON_RETAIN|OF|PRIVATE|PROTECTED|PUBLIC|RETAIN|RETURN|SET|TASK|THEN|TO|UNTIL|USING|WITH|__CATCH|__ENDTRY|__FINALLY|__TRY)\b/],"class-name":/\b(?:ANY|ARRAY|BOOL|BYTE|U?(?:D|L|S)?INT|(?:D|L)?WORD|DATE(?:_AND_TIME)?|DT|L?REAL|POINTER|STRING|TIME(?:_OF_DAY)?|TOD)\b/,address:{pattern:/%[IQM][XBWDL][\d.]*|%[IQ][\d.]*/,alias:"symbol"},number:/\b(?:16#[\da-f]+|2#[01_]+|0x[\da-f]+)\b|\b(?:D|DT|T|TOD)#[\d_shmd:]*|\b[A-Z]*#[\d.,_]*|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/,operator:/S?R?:?=>?|&&?|\*\*?|<[=>]?|>=?|[-:^/+#]|\b(?:AND|EQ|EXPT|GE|GT|LE|LT|MOD|NE|NOT|OR|XOR)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,punctuation:/[()[\].,;]/}}return HK}var VK,bTe;function rRn(){if(bTe)return VK;bTe=1,VK=e,e.displayName="ignore",e.aliases=["gitignore","hgignore","npmignore"];function e(t){(function(n){n.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},n.languages.gitignore=n.languages.ignore,n.languages.hgignore=n.languages.ignore,n.languages.npmignore=n.languages.ignore})(t)}return VK}var GK,_Te;function iRn(){if(_Te)return GK;_Te=1,GK=e,e.displayName="inform7",e.aliases=[];function e(t){t.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern:/\[[^\[\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},comment:{pattern:/\[[^\[\]]+\]/,greedy:!0},title:{pattern:/^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0},property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern:/(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/},t.languages.inform7.string.inside.substitution.inside.rest=t.languages.inform7,t.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}return GK}var qK,STe;function aRn(){if(STe)return qK;STe=1,qK=e,e.displayName="ini",e.aliases=[];function e(t){t.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}return qK}var WK,ETe;function oRn(){if(ETe)return WK;ETe=1,WK=e,e.displayName="io",e.aliases=[];function e(t){t.languages.io={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,lookbehind:!0,greedy:!0},"triple-quoted-string":{pattern:/"""(?:\\[\s\S]|(?!""")[^\\])*"""/,greedy:!0,alias:"string"},string:{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},keyword:/\b(?:activate|activeCoroCount|asString|block|break|call|catch|clone|collectGarbage|compileString|continue|do|doFile|doMessage|doString|else|elseif|exit|for|foreach|forward|getEnvironmentVariable|getSlot|hasSlot|if|ifFalse|ifNil|ifNilEval|ifTrue|isActive|isNil|isResumable|list|message|method|parent|pass|pause|perform|performWithArgList|print|println|proto|raise|raiseResumable|removeSlot|resend|resume|schedulerSleepSeconds|self|sender|setSchedulerSleepSeconds|setSlot|shallowCopy|slotNames|super|system|then|thisBlock|thisContext|try|type|uniqueId|updateSlot|wait|while|write|yield)\b/,builtin:/\b(?:Array|AudioDevice|AudioMixer|BigNum|Block|Box|Buffer|CFunction|CGI|Color|Curses|DBM|DNSResolver|DOConnection|DOProxy|DOServer|Date|Directory|Duration|DynLib|Error|Exception|FFT|File|Fnmatch|Font|Future|GL|GLE|GLScissor|GLU|GLUCylinder|GLUQuadric|GLUSphere|GLUT|Host|Image|Importer|LinkList|List|Lobby|Locals|MD5|MP3Decoder|MP3Encoder|Map|Message|Movie|Notification|Number|Object|OpenGL|Point|Protos|Random|Regex|SGML|SGMLElement|SGMLParser|SQLite|Sequence|Server|ShowMessage|SleepyCat|SleepyCatCursor|Socket|SocketManager|Sound|Soup|Store|String|Tree|UDPSender|UPDReceiver|URL|User|Warning|WeakLink)\b/,boolean:/\b(?:false|nil|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?/i,operator:/[=!*/%+\-^&|]=|>>?=?|<<?=?|:?:?=|\+\+?|--?|\*\*?|\/\/?|%|\|\|?|&&?|\b(?:and|not|or|return)\b|@@?|\?\??|\.\./,punctuation:/[{}[\];(),.:]/}}return WK}var YK,CTe;function sRn(){if(CTe)return YK;CTe=1,YK=e,e.displayName="j",e.aliases=[];function e(t){t.languages.j={comment:{pattern:/\bNB\..*/,greedy:!0},string:{pattern:/'(?:''|[^'\r\n])*'/,greedy:!0},keyword:/\b(?:(?:CR|LF|adverb|conjunction|def|define|dyad|monad|noun|verb)\b|(?:assert|break|case|catch[dt]?|continue|do|else|elseif|end|fcase|for|for_\w+|goto_\w+|if|label_\w+|return|select|throw|try|while|whilst)\.)/,verb:{pattern:/(?!\^:|;\.|[=!][.:])(?:\{(?:\.|::?)?|p(?:\.\.?|:)|[=!\]]|[<>+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,alias:"keyword"},number:/\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,adverb:{pattern:/[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,alias:"builtin"},operator:/[=a][.:]|_\./,conjunction:{pattern:/&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,alias:"variable"},punctuation:/[()]/}}return YK}var KK,wTe;function Ehe(){if(wTe)return KK;wTe=1,KK=e,e.displayName="java",e.aliases=[];function e(t){(function(n){var r=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,i=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,a={pattern:RegExp(i+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};n.languages.java=n.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[a,{pattern:RegExp(i+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:a.inside}],keyword:r,function:[n.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),n.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),n.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":a,keyword:r,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return r.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(t)}return KK}var XK,xTe;function vU(){if(xTe)return XK;xTe=1,XK=e,e.displayName="javadoclike",e.aliases=[];function e(t){(function(n){var r=n.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};function i(o,s){var l="doc-comment",c=n.languages[o];if(c){var u=c[l];if(!u){var d={};d[l]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},c=n.languages.insertBefore(o,"comment",d),u=c[l]}if(u instanceof RegExp&&(u=c[l]={pattern:u}),Array.isArray(u))for(var f=0,p=u.length;f<p;f++)u[f]instanceof RegExp&&(u[f]={pattern:u[f]}),s(u[f]);else s(u)}}function a(o,s){typeof o=="string"&&(o=[o]),o.forEach(function(l){i(l,function(c){c.inside||(c.inside={}),c.inside.rest=s})})}Object.defineProperty(r,"addSupport",{value:a}),r.addSupport(["java","javascript","php"],r)})(t)}return XK}var ZK,TTe;function lRn(){if(TTe)return ZK;TTe=1;var e=Ehe(),t=vU();ZK=n,n.displayName="javadoc",n.aliases=[];function n(r){r.register(e),r.register(t),function(i){var a=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,o=/#\s*\w+(?:\s*\([^()]*\))?/.source,s=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*<mem>)?|<mem>/.source.replace(/<mem>/g,function(){return o});i.languages.javadoc=i.languages.extend("javadoclike",{}),i.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+s+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:i.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:a,lookbehind:!0,inside:i.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!<code>)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:a,lookbehind:!0,inside:{tag:i.languages.markup.tag,entity:i.languages.markup.entity,code:{pattern:/.+/,inside:i.languages.java,alias:"language-java"}}}}}],tag:i.languages.markup.tag,entity:i.languages.markup.entity}),i.languages.javadoclike.addSupport("java",i.languages.javadoc)}(r)}return ZK}var QK,ITe;function cRn(){if(ITe)return QK;ITe=1,QK=e,e.displayName="javastacktrace",e.aliases=[];function e(t){t.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:<init>)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:<init>|[\w$]+)\()/,function:/(?:<init>|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}}}return QK}var JK,ATe;function uRn(){if(ATe)return JK;ATe=1,JK=e,e.displayName="jexl",e.aliases=[];function e(t){t.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+\b/,operator:/[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,boolean:/\b(?:false|true)\b/,keyword:/\bin\b/,punctuation:/[{}[\](),.]/}}return JK}var eX,RTe;function dRn(){if(RTe)return eX;RTe=1,eX=e,e.displayName="jolie",e.aliases=[];function e(t){t.languages.jolie=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),t.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}return eX}var tX,NTe;function fRn(){if(NTe)return tX;NTe=1,tX=e,e.displayName="jq",e.aliases=[];function e(t){(function(n){var r=/\\\((?:[^()]|\([^()]*\))*\)/.source,i=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return r})),a={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+r),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},o=n.languages.jq={comment:/#.*/,property:{pattern:RegExp(i.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:a},string:{pattern:i,lookbehind:!0,greedy:!0,inside:a},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};a.interpolation.inside.content.inside=o})(t)}return tX}var nX,OTe;function pRn(){if(OTe)return nX;OTe=1,nX=e,e.displayName="jsExtras",e.aliases=[];function e(t){(function(n){n.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+n.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),n.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+n.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),n.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]});function r(c,u){return RegExp(c.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),u)}n.languages.insertBefore("javascript","keyword",{imports:{pattern:r(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:n.languages.javascript},exports:{pattern:r(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:n.languages.javascript}}),n.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),n.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),n.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:r(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var i=["function","function-variable","method","method-variable","property-access"],a=0;a<i.length;a++){var o=i[a],s=n.languages.javascript[o];n.util.type(s)==="RegExp"&&(s=n.languages.javascript[o]={pattern:s});var l=s.inside||{};s.inside=l,l["maybe-class-name"]=/^[A-Z][\s\S]*/}})(t)}return nX}var rX,LTe;function hRn(){if(LTe)return rX;LTe=1,rX=e,e.displayName="jsTemplates",e.aliases=[];function e(t){(function(n){var r=n.languages.javascript["template-string"],i=r.pattern.source,a=r.inside.interpolation,o=a.inside["interpolation-punctuation"],s=a.pattern.source;function l(m,g){if(n.languages[m])return{pattern:RegExp("((?:"+g+")\\s*)"+i),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:m}}}}n.languages.javascript["template-string"]=[l("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),l("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),l("svg",/\bsvg/.source),l("markdown",/\b(?:markdown|md)/.source),l("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),l("sql",/\bsql/.source),r].filter(Boolean);function c(m,g){return"___"+g.toUpperCase()+"_"+m+"___"}function u(m,g,v){var y={code:m,grammar:g,language:v};return n.hooks.run("before-tokenize",y),y.tokens=n.tokenize(y.code,y.grammar),n.hooks.run("after-tokenize",y),y.tokens}function d(m){var g={};g["interpolation-punctuation"]=o;var v=n.tokenize(m,g);if(v.length===3){var y=[1,1];y.push.apply(y,u(v[1],n.languages.javascript,"javascript")),v.splice.apply(v,y)}return new n.Token("interpolation",v,a.alias,m)}function f(m,g,v){var y=n.tokenize(m,{interpolation:{pattern:RegExp(s),lookbehind:!0}}),_=0,S={},C=y.map(function(A){if(typeof A=="string")return A;for(var I=A.content,R;m.indexOf(R=c(_++,v))!==-1;);return S[R]=I,R}).join(""),w=u(C,g,v),x=Object.keys(S);_=0;function T(A){for(var I=0;I<A.length;I++){if(_>=x.length)return;var R=A[I];if(typeof R=="string"||typeof R.content=="string"){var N=x[_],P=typeof R=="string"?R:R.content,L=P.indexOf(N);if(L!==-1){++_;var $=P.substring(0,L),D=d(S[N]),z=P.substring(L+N.length),U=[];if($&&U.push($),U.push(D),z){var H=[z];T(H),U.push.apply(U,H)}typeof R=="string"?(A.splice.apply(A,[I,1].concat(U)),I+=U.length-1):R.content=U}}else{var M=R.content;Array.isArray(M)?T(M):T([M])}}}return T(w),new n.Token(v,w,"language-"+v,m)}var p={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};n.hooks.add("after-tokenize",function(m){if(!(m.language in p))return;function g(v){for(var y=0,_=v.length;y<_;y++){var S=v[y];if(typeof S!="string"){var C=S.content;if(!Array.isArray(C)){typeof C!="string"&&g([C]);continue}if(S.type==="template-string"){var w=C[1];if(C.length===3&&typeof w!="string"&&w.type==="embedded-code"){var x=h(w),T=w.alias,A=Array.isArray(T)?T[0]:T,I=n.languages[A];if(!I)continue;C[1]=f(x,I,A)}}else g(C)}}}g(m.tokens)});function h(m){return typeof m=="string"?m:Array.isArray(m)?m.map(h).join(""):h(m.content)}})(t)}return rX}var iX,PTe;function Che(){if(PTe)return iX;PTe=1,iX=e,e.displayName="typescript",e.aliases=["ts"];function e(t){(function(n){n.languages.typescript=n.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),n.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete n.languages.typescript.parameter,delete n.languages.typescript["literal-property"];var r=n.languages.extend("typescript",{});delete r["class-name"],n.languages.typescript["class-name"].inside=r,n.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:r}}}}),n.languages.ts=n.languages.typescript})(t)}return iX}var aX,kTe;function mRn(){if(kTe)return aX;kTe=1;var e=vU(),t=Che();aX=n,n.displayName="jsdoc",n.aliases=[];function n(r){r.register(e),r.register(t),function(i){var a=i.languages.javascript,o=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,s="(@(?:arg|argument|param|property)\\s+(?:"+o+"\\s+)?)";i.languages.jsdoc=i.languages.extend("javadoclike",{parameter:{pattern:RegExp(s+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),i.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(s+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:a,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,function(){return o})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+o),lookbehind:!0,inside:{string:a.string,number:a.number,boolean:a.boolean,keyword:i.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:a,alias:"language-javascript"}}}}),i.languages.javadoclike.addSupport("javascript",i.languages.jsdoc)}(r)}return aX}var oX,MTe;function whe(){if(MTe)return oX;MTe=1,oX=e,e.displayName="json",e.aliases=["webmanifest"];function e(t){t.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},t.languages.webmanifest=t.languages.json}return oX}var sX,DTe;function gRn(){if(DTe)return sX;DTe=1;var e=whe();sX=t,t.displayName="json5",t.aliases=[];function t(n){n.register(e),function(r){var i=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;r.languages.json5=r.languages.extend("json",{property:[{pattern:RegExp(i.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:i,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})}(n)}return sX}var lX,$Te;function vRn(){if($Te)return lX;$Te=1;var e=whe();lX=t,t.displayName="jsonp",t.aliases=[];function t(n){n.register(e),n.languages.jsonp=n.languages.extend("json",{punctuation:/[{}[\]();,.]/}),n.languages.insertBefore("jsonp","punctuation",{function:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/})}return lX}var cX,FTe;function yRn(){if(FTe)return cX;FTe=1,cX=e,e.displayName="jsstacktrace",e.aliases=[];function e(t){t.languages.jsstacktrace={"error-message":{pattern:/^\S.*/m,alias:"string"},"stack-frame":{pattern:/(^[ \t]+)at[ \t].*/m,lookbehind:!0,inside:{"not-my-code":{pattern:/^at[ \t]+(?!\s)(?:node\.js|<unknown>|.*(?:node_modules|\(<anonymous>\)|\(<unknown>|<anonymous>$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}}}return cX}var uX,BTe;function KJe(){if(BTe)return uX;BTe=1,uX=e,e.displayName="jsx",e.aliases=[];function e(t){(function(n){var r=n.util.clone(n.languages.javascript),i=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,a=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function s(u,d){return u=u.replace(/<S>/g,function(){return i}).replace(/<BRACES>/g,function(){return a}).replace(/<SPREAD>/g,function(){return o}),RegExp(u,d)}o=s(o).source,n.languages.jsx=n.languages.extend("markup",r),n.languages.jsx.tag.pattern=s(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),n.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,n.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,n.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,n.languages.jsx.tag.inside.comment=r.comment,n.languages.insertBefore("inside","attr-name",{spread:{pattern:s(/<SPREAD>/.source),inside:n.languages.jsx}},n.languages.jsx.tag),n.languages.insertBefore("inside","special-attr",{script:{pattern:s(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:n.languages.jsx}}},n.languages.jsx.tag);var l=function(u){return u?typeof u=="string"?u:typeof u.content=="string"?u.content:u.content.map(l).join(""):""},c=function(u){for(var d=[],f=0;f<u.length;f++){var p=u[f],h=!1;if(typeof p!="string"&&(p.type==="tag"&&p.content[0]&&p.content[0].type==="tag"?p.content[0].content[0].content==="</"?d.length>0&&d[d.length-1].tagName===l(p.content[0].content[1])&&d.pop():p.content[p.content.length-1].content==="/>"||d.push({tagName:l(p.content[0].content[1]),openedBraces:0}):d.length>0&&p.type==="punctuation"&&p.content==="{"?d[d.length-1].openedBraces++:d.length>0&&d[d.length-1].openedBraces>0&&p.type==="punctuation"&&p.content==="}"?d[d.length-1].openedBraces--:h=!0),(h||typeof p=="string")&&d.length>0&&d[d.length-1].openedBraces===0){var m=l(p);f<u.length-1&&(typeof u[f+1]=="string"||u[f+1].type==="plain-text")&&(m+=l(u[f+1]),u.splice(f+1,1)),f>0&&(typeof u[f-1]=="string"||u[f-1].type==="plain-text")&&(m=l(u[f-1])+m,u.splice(f-1,1),f--),u[f]=new n.Token("plain-text",m,null,m)}p.content&&typeof p.content!="string"&&c(p.content)}};n.hooks.add("after-tokenize",function(u){u.language!=="jsx"&&u.language!=="tsx"||c(u.tokens)})})(t)}return uX}var dX,jTe;function bRn(){if(jTe)return dX;jTe=1,dX=e,e.displayName="julia",e.aliases=[];function e(t){t.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|(?:\b\w+)?"(?:\\.|[^"\\\r\n])*"|`(?:[^\\`\r\n]|\\.)*`/,greedy:!0},char:{pattern:/(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:Inf|NaN)(?:16|32|64)?|im|pi)\b|[πℯ]/}}return dX}var fX,zTe;function _Rn(){if(zTe)return fX;zTe=1,fX=e,e.displayName="keepalived",e.aliases=[];function e(t){t.languages.keepalived={comment:{pattern:/[#!].*/,greedy:!0},string:{pattern:/(^|[^\\])(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,lookbehind:!0,greedy:!0},ip:{pattern:RegExp(/\b(?:(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){5}:(?:[\da-f]{1,4}:)?[\da-f]{1,4}|(?:[\da-f]{1,4}:){4}:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4}|(?:[\da-f]{1,4}:){3}:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4}|(?:[\da-f]{1,4}:){2}:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}<ipv4>|(?:[\da-f]{1,4}:){0,5}:<ipv4>|::(?:[\da-f]{1,4}:){0,5}<ipv4>|[\da-f]{1,4}::(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4}|::(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:)(?:\/\d{1,3})?|<ipv4>(?:\/\d{1,2})?)\b/.source.replace(/<ipv4>/g,function(){return/(?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d))/.source}),"i"),alias:"number"},path:{pattern:/(\s)\/(?:[^\/\s]+\/)*[^\/\s]*|\b[a-zA-Z]:\\(?:[^\\\s]+\\)*[^\\\s]*/,lookbehind:!0,alias:"string"},variable:/\$\{?\w+\}?/,email:{pattern:/[\w-]+@[\w-]+(?:\.[\w-]{2,3}){1,2}/,alias:"string"},"conditional-configuration":{pattern:/@\^?[\w-]+/,alias:"variable"},operator:/=/,property:/\b(?:BFD_CHECK|DNS_CHECK|FILE_CHECK|HTTP_GET|MISC_CHECK|NAME|PING_CHECK|SCRIPTS|SMTP_CHECK|SSL|SSL_GET|TCP_CHECK|UDP_CHECK|accept|advert_int|alpha|auth_pass|auth_type|authentication|bfd_cpu_affinity|bfd_instance|bfd_no_swap|bfd_priority|bfd_process_name|bfd_rlimit_rttime|bfd_rt_priority|bind_if|bind_port|bindto|ca|certificate|check_unicast_src|checker|checker_cpu_affinity|checker_log_all_failures|checker_no_swap|checker_priority|checker_rlimit_rttime|checker_rt_priority|child_wait_time|connect_ip|connect_port|connect_timeout|dbus_service_name|debug|default_interface|delay|delay_before_retry|delay_loop|digest|dont_track_primary|dynamic|dynamic_interfaces|enable_(?:dbus|script_security|sni|snmp_checker|snmp_rfc|snmp_rfcv2|snmp_rfcv3|snmp_vrrp|traps)|end|fall|fast_recovery|file|flag-[123]|fork_delay|full_command|fwmark|garp_group|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|global_defs|global_tracking|gna_interval|group|ha_suspend|hashed|helo_name|higher_prio_send_advert|hoplimit|http_protocol|hysteresis|idle_tx|include|inhibit_on_failure|init_fail|init_file|instance|interface|interfaces|interval|ip_family|ipvs_process_name|keepalived.conf|kernel_rx_buf_size|key|linkbeat_interfaces|linkbeat_use_polling|log_all_failures|log_unknown_vrids|lower_prio_no_advert|lthreshold|lvs_flush|lvs_flush_onstop|lvs_method|lvs_netlink_cmd_rcv_bufs|lvs_netlink_cmd_rcv_bufs_force|lvs_netlink_monitor_rcv_bufs|lvs_netlink_monitor_rcv_bufs_force|lvs_notify_fifo|lvs_notify_fifo_script|lvs_sched|lvs_sync_daemon|max_auto_priority|max_hops|mcast_src_ip|mh-fallback|mh-port|min_auto_priority_delay|min_rx|min_tx|misc_dynamic|misc_path|misc_timeout|multiplier|name|namespace_with_ipsets|native_ipv6|neighbor_ip|net_namespace|net_namespace_ipvs|nftables|nftables_counters|nftables_ifindex|nftables_priority|no_accept|no_checker_emails|no_email_faults|nopreempt|notification_email|notification_email_from|notify|notify_backup|notify_deleted|notify_down|notify_fault|notify_fifo|notify_fifo_script|notify_master|notify_master_rx_lower_pri|notify_priority_changes|notify_stop|notify_up|old_unicast_checksum|omega|ops|param_match|passive|password|path|persistence_engine|persistence_granularity|persistence_timeout|preempt|preempt_delay|priority|process|process_monitor_rcv_bufs|process_monitor_rcv_bufs_force|process_name|process_names|promote_secondaries|protocol|proxy_arp|proxy_arp_pvlan|quorum|quorum_down|quorum_max|quorum_up|random_seed|real_server|regex|regex_max_offset|regex_min_offset|regex_no_match|regex_options|regex_stack|reload_repeat|reload_time_file|require_reply|retry|rise|router_id|rs_init_notifies|script|script_user|sh-fallback|sh-port|shutdown_script|shutdown_script_timeout|skip_check_adv_addr|smtp_alert|smtp_alert_checker|smtp_alert_vrrp|smtp_connect_timeout|smtp_helo_name|smtp_server|snmp_socket|sorry_server|sorry_server_inhibit|sorry_server_lvs_method|source_ip|start|startup_script|startup_script_timeout|state|static_ipaddress|static_routes|static_rules|status_code|step|strict_mode|sync_group_tracking_weight|terminate_delay|timeout|track_bfd|track_file|track_group|track_interface|track_process|track_script|track_src_ip|ttl|type|umask|unicast_peer|unicast_src_ip|unicast_ttl|url|use_ipvlan|use_pid_dir|use_vmac|user|uthreshold|val[123]|version|virtual_ipaddress|virtual_ipaddress_excluded|virtual_router_id|virtual_routes|virtual_rules|virtual_server|virtual_server_group|virtualhost|vmac_xmit_base|vrrp|vrrp_(?:check_unicast_src|cpu_affinity|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|gna_interval|higher_prio_send_advert|instance|ipsets|iptables|lower_prio_no_advert|mcast_group4|mcast_group6|min_garp|netlink_cmd_rcv_bufs|netlink_cmd_rcv_bufs_force|netlink_monitor_rcv_bufs|netlink_monitor_rcv_bufs_force|no_swap|notify_fifo|notify_fifo_script|notify_priority_changes|priority|process_name|rlimit_rttime|rt_priority|rx_bufs_multiplier|rx_bufs_policy|script|skip_check_adv_addr|startup_delay|strict|sync_group|track_process|version)|warmup|weight)\b/,constant:/\b(?:A|AAAA|AH|BACKUP|CNAME|DR|MASTER|MX|NAT|NS|PASS|SCTP|SOA|TCP|TUN|TXT|UDP|dh|fo|lblc|lblcr|lc|mh|nq|ovf|rr|sed|sh|wlc|wrr)\b/,number:{pattern:/(^|[^\w.-])-?\d+(?:\.\d+)?/,lookbehind:!0},boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\{\}]/}}return fX}var pX,UTe;function SRn(){if(UTe)return pX;UTe=1,pX=e,e.displayName="keyman",e.aliases=[];function e(t){t.languages.keyman={comment:{pattern:/\bc .*/i,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},"virtual-key":{pattern:/\[\s*(?:(?:ALT|CAPS|CTRL|LALT|LCTRL|NCAPS|RALT|RCTRL|SHIFT)\s+)*(?:[TKU]_[\w?]+|[A-E]\d\d?|"[^"\r\n]*"|'[^'\r\n]*')\s*\]/i,greedy:!0,alias:"function"},"header-keyword":{pattern:/&\w+/,alias:"bold"},"header-statement":{pattern:/\b(?:bitmap|bitmaps|caps always off|caps on only|copyright|hotkey|language|layout|message|name|shift frees caps|version)\b/i,alias:"bold"},"rule-keyword":{pattern:/\b(?:any|baselayout|beep|call|context|deadkey|dk|if|index|layer|notany|nul|outs|platform|reset|return|save|set|store|use)\b/i,alias:"keyword"},"structural-keyword":{pattern:/\b(?:ansi|begin|group|match|nomatch|unicode|using keys)\b/i,alias:"keyword"},"compile-target":{pattern:/\$(?:keyman|keymanonly|keymanweb|kmfl|weaver):/i,alias:"property"},number:/\b(?:U\+[\dA-F]+|d\d+|x[\da-f]+|\d+)\b/i,operator:/[+>\\$]|\.\./,punctuation:/[()=,]/}}return pX}var hX,HTe;function ERn(){if(HTe)return hX;HTe=1,hX=e,e.displayName="kotlin",e.aliases=["kt","kts"];function e(t){(function(n){n.languages.kotlin=n.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete n.languages.kotlin["class-name"];var r={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:n.languages.kotlin}};n.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:r},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:r},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete n.languages.kotlin.string,n.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),n.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),n.languages.kt=n.languages.kotlin,n.languages.kts=n.languages.kotlin})(t)}return hX}var mX,VTe;function CRn(){if(VTe)return mX;VTe=1,mX=e,e.displayName="kumir",e.aliases=["kum"];function e(t){(function(n){var r=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function i(a,o){return RegExp(a.replace(/<nonId>/g,r),o)}n.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:i(/(^|[<nonId>])(?:да|нет)(?=[<nonId>]|$)/.source),lookbehind:!0},"operator-word":{pattern:i(/(^|[<nonId>])(?:и|или|не)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:i(/(^|[<nonId>])знач(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:i(/(^|[<nonId>])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:i(/(^|[<nonId>])(?:компл|сканкод|файл|цвет)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:i(/(^|[<nonId>])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[<nonId>]|$)/.source),lookbehind:!0},name:{pattern:i(/(^|[<nonId>])[^\d<nonId>][^<nonId>]*(?:\x20+[^<nonId>]+)*(?=[<nonId>]|$)/.source),lookbehind:!0},number:{pattern:i(/(^|[<nonId>])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[<nonId>]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},n.languages.kum=n.languages.kumir})(t)}return mX}var gX,GTe;function wRn(){if(GTe)return gX;GTe=1,gX=e,e.displayName="kusto",e.aliases=[];function e(t){t.languages.kusto={comment:{pattern:/\/\/.*/,greedy:!0},string:{pattern:/```[\s\S]*?```|[hH]?(?:"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\.)*'|@(?:"[^\r\n"]*"|'[^\r\n']*'))/,greedy:!0},verb:{pattern:/(\|\s*)[a-z][\w-]*/i,lookbehind:!0,alias:"keyword"},command:{pattern:/\.[a-z][a-z\d-]*\b/,alias:"keyword"},"class-name":/\b(?:bool|datetime|decimal|dynamic|guid|int|long|real|string|timespan)\b/,keyword:/\b(?:access|alias|and|anti|as|asc|auto|between|by|(?:contains|(?:ends|starts)with|has(?:perfix|suffix)?)(?:_cs)?|database|declare|desc|external|from|fullouter|has_all|in|ingestion|inline|inner|innerunique|into|(?:left|right)(?:anti(?:semi)?|inner|outer|semi)?|let|like|local|not|of|on|or|pattern|print|query_parameters|range|restrict|schema|set|step|table|tables|to|view|where|with|matches\s+regex|nulls\s+(?:first|last))(?![\w-])/,boolean:/\b(?:false|null|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/,datetime:[{pattern:/\b(?:(?:Fri|Friday|Mon|Monday|Sat|Saturday|Sun|Sunday|Thu|Thursday|Tue|Tuesday|Wed|Wednesday)\s*,\s*)?\d{1,2}(?:\s+|-)(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)(?:\s+|-)\d{2}\s+\d{2}:\d{2}(?::\d{2})?(?:\s*(?:\b(?:[A-Z]|(?:[ECMT][DS]|GM|U)T)|[+-]\d{4}))?\b/,alias:"number"},{pattern:/[+-]?\b(?:\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?|\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)Z?/,alias:"number"}],number:/\b(?:0x[0-9A-Fa-f]+|\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)(?:(?:min|sec|[mnµ]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,operator:/=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,punctuation:/[()\[\]{},;.:]/}}return gX}var vX,qTe;function xRn(){if(qTe)return vX;qTe=1,vX=e,e.displayName="latex",e.aliases=["tex","context"];function e(t){(function(n){var r=/\\(?:[^a-z()[\]]|[a-z*]+)/i,i={"equation-command":{pattern:r,alias:"regex"}};n.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:i,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:i,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:r,alias:"selector"},punctuation:/[[\]{}&]/},n.languages.tex=n.languages.latex,n.languages.context=n.languages.latex})(t)}return vX}var yX,WTe;function yU(){if(WTe)return yX;WTe=1;var e=jd();yX=t,t.displayName="php",t.aliases=[];function t(n){n.register(e),function(r){var i=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,a=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],o=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,s=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,l=/[{}\[\](),:;]/;r.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:i,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:a,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:o,operator:s,punctuation:l};var c={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:r.languages.php},u=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:c}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:c}}];r.languages.insertBefore("php","variable",{string:u,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:i,string:u,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:a,number:o,operator:s,punctuation:l}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),r.hooks.add("before-tokenize",function(d){if(/<\?/.test(d.code)){var f=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;r.languages["markup-templating"].buildPlaceholders(d,"php",f)}}),r.hooks.add("after-tokenize",function(d){r.languages["markup-templating"].tokenizePlaceholders(d,"php")})}(n)}return yX}var bX,YTe;function TRn(){if(YTe)return bX;YTe=1;var e=jd(),t=yU();bX=n,n.displayName="latte",n.aliases=[];function n(r){r.register(e),r.register(t),function(i){i.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:i.languages.php}};var a=i.languages.extend("markup",{});i.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:i.languages.php}}}}}},a.tag),i.hooks.add("before-tokenize",function(o){if(o.language==="latte"){var s=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;i.languages["markup-templating"].buildPlaceholders(o,"latte",s),o.grammar=a}}),i.hooks.add("after-tokenize",function(o){i.languages["markup-templating"].tokenizePlaceholders(o,"latte")})}(r)}return bX}var _X,KTe;function IRn(){if(KTe)return _X;KTe=1,_X=e,e.displayName="less",e.aliases=[];function e(t){t.languages.less=t.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),t.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}return _X}var SX,XTe;function xhe(){if(XTe)return SX;XTe=1,SX=e,e.displayName="scheme",e.aliases=[];function e(t){(function(n){n.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(r({"<ureal dec>":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"<real dec>":/[+-]?<ureal dec>|[+-](?:inf|nan)\.0/.source,"<imaginary dec>":/[+-](?:<ureal dec>|(?:inf|nan)\.0)?i/.source,"<complex dec>":/<real dec>(?:@<real dec>|<imaginary dec>)?|<imaginary dec>/.source,"<num dec>":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?<complex dec>/.source,"<ureal box>":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"<real box>":/[+-]?<ureal box>|[+-](?:inf|nan)\.0/.source,"<imaginary box>":/[+-](?:<ureal box>|(?:inf|nan)\.0)?i/.source,"<complex box>":/<real box>(?:@<real box>|<imaginary box>)?|<imaginary box>/.source,"<num box>":/#[box](?:#[ei])?|(?:#[ei])?#[box]<complex box>/.source,"<number>":/(^|[()\[\]\s])(?:<num dec>|<num box>)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/};function r(i){for(var a in i)i[a]=i[a].replace(/<[\w\s]+>/g,function(o){return"(?:"+i[o].trim()+")"});return i[a]}})(t)}return SX}var EX,ZTe;function ARn(){if(ZTe)return EX;ZTe=1;var e=xhe();EX=t,t.displayName="lilypond",t.aliases=[];function t(n){n.register(e),function(r){for(var i=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|<expr>)*\)/.source,a=5,o=0;o<a;o++)i=i.replace(/<expr>/g,function(){return i});i=i.replace(/<expr>/g,/[^\s\S]/.source);var s=r.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|<expr>))/.source.replace(/<expr>/g,function(){return i}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:r.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};s["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=s,r.languages.ly=s}(n)}return EX}var CX,QTe;function RRn(){if(QTe)return CX;QTe=1;var e=jd();CX=t,t.displayName="liquid",t.aliases=[];function t(n){n.register(e),n.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},n.hooks.add("before-tokenize",function(r){var i=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,a=!1;n.languages["markup-templating"].buildPlaceholders(r,"liquid",i,function(o){var s=/^\{%-?\s*(\w+)/.exec(o);if(s){var l=s[1];if(l==="raw"&&!a)return a=!0,!0;if(l==="endraw")return a=!1,!0}return!a})}),n.hooks.add("after-tokenize",function(r){n.languages["markup-templating"].tokenizePlaceholders(r,"liquid")})}return CX}var wX,JTe;function NRn(){if(JTe)return wX;JTe=1,wX=e,e.displayName="lisp",e.aliases=[];function e(t){(function(n){function r(m){return RegExp(/(\()/.source+"(?:"+m+")"+/(?=[\s\)])/.source)}function i(m){return RegExp(/([\s([])/.source+"(?:"+m+")"+/(?=[\s)])/.source)}var a=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,o="&"+a,s="(\\()",l="(?=\\))",c="(?=\\s)",u=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,d={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+a+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+a),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+a),alias:"property"},splice:{pattern:RegExp(",@?"+a),alias:["symbol","variable"]},keyword:[{pattern:RegExp(s+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+c),lookbehind:!0},{pattern:RegExp(s+"(?:append|by|collect|concat|do|finally|for|in|return)"+c),lookbehind:!0}],declare:{pattern:r(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:r(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:i(/nil|t/.source),lookbehind:!0},number:{pattern:i(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(s+"def(?:const|custom|group|var)\\s+"+a),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(a)}},defun:{pattern:RegExp(s+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+a+/\s+\(/.source+u+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+a),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(s+"lambda\\s+\\(\\s*(?:&?"+a+"(?:\\s+&?"+a+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(s+a),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},f={"lisp-marker":RegExp(o),varform:{pattern:RegExp(/\(/.source+a+/\s+(?=\S)/.source+u+/\)/.source),inside:d},argument:{pattern:RegExp(/(^|[\s(])/.source+a),lookbehind:!0,alias:"variable"},rest:d},p="\\S+(?:\\s+\\S+)*",h={pattern:RegExp(s+u+l),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+p),inside:f},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+p),inside:f},keys:{pattern:RegExp("&key\\s+"+p+"(?:\\s+&allow-other-keys)?"),inside:f},argument:{pattern:RegExp(a),alias:"variable"},punctuation:/[()]/}};d.lambda.inside.arguments=h,d.defun.inside.arguments=n.util.clone(h),d.defun.inside.arguments.inside.sublist=h,n.languages.lisp=d,n.languages.elisp=d,n.languages.emacs=d,n.languages["emacs-lisp"]=d})(t)}return wX}var xX,e4e;function ORn(){if(e4e)return xX;e4e=1,xX=e,e.displayName="livescript",e.aliases=[];function e(t){t.languages.livescript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\])#.*/,lookbehind:!0}],"interpolated-string":{pattern:/(^|[^"])("""|")(?:\\[\s\S]|(?!\2)[^\\])*\2(?!")/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/(^|[^\\])#[a-z_](?:-?[a-z]|[\d_])*/m,lookbehind:!0},interpolation:{pattern:/(^|[^\\])#\{[^}]+\}/m,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^#\{|\}$/,alias:"variable"}}},string:/[\s\S]+/}},string:[{pattern:/('''|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/<\[[\s\S]*?\]>/,greedy:!0},/\\[^\s,;\])}]+/],regex:[{pattern:/\/\/(?:\[[^\r\n\]]*\]|\\.|(?!\/\/)[^\\\[])+\/\/[gimyu]{0,5}/,greedy:!0,inside:{comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0}}},{pattern:/\/(?:\[[^\r\n\]]*\]|\\.|[^/\\\r\n\[])+\/[gimyu]{0,5}/,greedy:!0}],keyword:{pattern:/(^|(?!-).)\b(?:break|case|catch|class|const|continue|default|do|else|extends|fallthrough|finally|for(?: ever)?|function|if|implements|it|let|loop|new|null|otherwise|own|return|super|switch|that|then|this|throw|try|unless|until|var|void|when|while|yield)(?!-)\b/m,lookbehind:!0},"keyword-operator":{pattern:/(^|[^-])\b(?:(?:delete|require|typeof)!|(?:and|by|delete|export|from|import(?: all)?|in|instanceof|is(?: not|nt)?|not|of|or|til|to|typeof|with|xor)(?!-)\b)/m,lookbehind:!0,alias:"operator"},boolean:{pattern:/(^|[^-])\b(?:false|no|off|on|true|yes)(?!-)\b/m,lookbehind:!0},argument:{pattern:/(^|(?!\.&\.)[^&])&(?!&)\d*/m,lookbehind:!0,alias:"variable"},number:/\b(?:\d+~[\da-z]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[a-z]\w*)?)/i,identifier:/[a-z_](?:-?[a-z]|[\d_])*/i,operator:[{pattern:/( )\.(?= )/,lookbehind:!0},/\.(?:[=~]|\.\.?)|\.(?:[&|^]|<<|>>>?)\.|:(?:=|:=?)|&&|\|[|>]|<(?:<<?<?|--?!?|~~?!?|[|=?])?|>[>=?]?|-(?:->?|>)?|\+\+?|@@?|%%?|\*\*?|!(?:~?=|--?>|~?~>)?|~(?:~?>|=)?|==?|\^\^?|[\/?]/],punctuation:/[(){}\[\]|.,:;`]/},t.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=t.languages.livescript}return xX}var TX,t4e;function LRn(){if(t4e)return TX;t4e=1,TX=e,e.displayName="llvm",e.aliases=[];function e(t){(function(n){n.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}})(t)}return TX}var IX,n4e;function PRn(){if(n4e)return IX;n4e=1,IX=e,e.displayName="log",e.aliases=[];function e(t){t.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:t.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp(/\b\d{4}[-/]\d{2}[-/]\d{2}(?:T(?=\d{1,2}:)|(?=\s\d{1,2}:))/.source+"|"+/\b\d{1,4}[-/ ](?:\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\d{2,4}T?\b/.source+"|"+/\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\s{1,2}\d{1,2}\b/.source,"i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/}}return IX}var AX,r4e;function kRn(){if(r4e)return AX;r4e=1,AX=e,e.displayName="lolcode",e.aliases=[];function e(t){t.languages.lolcode={comment:[/\bOBTW\s[\s\S]*?\sTLDR\b/,/\bBTW.+/],string:{pattern:/"(?::.|[^":])*"/,inside:{variable:/:\{[^}]+\}/,symbol:[/:\([a-f\d]+\)/i,/:\[[^\]]+\]/,/:[)>o":]/]},greedy:!0},number:/(?:\B-)?(?:\b\d+(?:\.\d*)?|\B\.\d+)/,symbol:{pattern:/(^|\s)(?:A )?(?:BUKKIT|NOOB|NUMBAR|NUMBR|TROOF|YARN)(?=\s|,|$)/,lookbehind:!0,inside:{keyword:/A(?=\s)/}},label:{pattern:/((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/,lookbehind:!0,alias:"string"},function:{pattern:/((?:^|\s)(?:HOW IZ I|I IZ|IZ) )[a-zA-Z]\w*/,lookbehind:!0},keyword:[{pattern:/(^|\s)(?:AN|FOUND YR|GIMMEH|GTFO|HAI|HAS A|HOW IZ I|I HAS A|I IZ|IF U SAY SO|IM IN YR|IM OUTTA YR|IS NOW(?: A)?|ITZ(?: A)?|IZ|KTHX|KTHXBYE|LIEK(?: A)?|MAEK|MEBBE|MKAY|NERFIN|NO WAI|O HAI IM|O RLY\?|OIC|OMG|OMGWTF|R|SMOOSH|SRS|TIL|UPPIN|VISIBLE|WILE|WTF\?|YA RLY|YR)(?=\s|,|$)/,lookbehind:!0},/'Z(?=\s|,|$)/],boolean:{pattern:/(^|\s)(?:FAIL|WIN)(?=\s|,|$)/,lookbehind:!0},variable:{pattern:/(^|\s)IT(?=\s|,|$)/,lookbehind:!0},operator:{pattern:/(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:ALL|ANY|BIGGR|BOTH|DIFF|EITHER|MOD|PRODUKT|QUOSHUNT|SMALLR|SUM|WON) OF)(?=\s|,|$)/,lookbehind:!0},punctuation:/\.{3}|…|,|!/}}return AX}var RX,i4e;function MRn(){if(i4e)return RX;i4e=1,RX=e,e.displayName="magma",e.aliases=[];function e(t){t.languages.magma={output:{pattern:/^(>.*(?:\r(?:\n|(?!\n))|\n))(?!>)(?:.+|(?:\r(?:\n|(?!\n))|\n)(?!>).*)(?:(?:\r(?:\n|(?!\n))|\n)(?!>).*)*/m,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\"])"(?:[^\r\n\\"]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|adj|and|assert|assert2|assert3|assigned|break|by|case|cat|catch|clear|cmpeq|cmpne|continue|declare|default|delete|diff|div|do|elif|else|end|eq|error|eval|exists|exit|for|forall|forward|fprintf|freeze|function|ge|gt|if|iload|import|in|intrinsic|is|join|le|load|local|lt|meet|mod|ne|not|notadj|notin|notsubset|or|print|printf|procedure|quit|random|read|readi|repeat|require|requirege|requirerange|restore|return|save|sdiff|select|subset|then|time|to|try|until|vprint|vprintf|vtime|when|where|while|xor)\b/,boolean:/\b(?:false|true)\b/,generator:{pattern:/\b[a-z_]\w*(?=\s*<)/i,alias:"class-name"},function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},operator:/->|[-+*/^~!|#=]|:=|\.\./,punctuation:/[()[\]{}<>,;.:]/}}return RX}var NX,a4e;function DRn(){if(a4e)return NX;a4e=1,NX=e,e.displayName="makefile",e.aliases=[];function e(t){t.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}return NX}var OX,o4e;function $Rn(){if(o4e)return OX;o4e=1,OX=e,e.displayName="markdown",e.aliases=["md"];function e(t){(function(n){var r=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function i(f){return f=f.replace(/<inner>/g,function(){return r}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+f+")")}var a=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return a}),s=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;n.languages.markdown=n.languages.extend("markup",{}),n.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:n.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+s+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+s+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(a),inside:n.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+s+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(a),alias:"important",inside:n.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:i(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:i(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:i(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:i(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(f){["url","bold","italic","strike","code-snippet"].forEach(function(p){f!==p&&(n.languages.markdown[f].inside.content.inside[p]=n.languages.markdown[p])})}),n.hooks.add("after-tokenize",function(f){if(f.language!=="markdown"&&f.language!=="md")return;function p(h){if(!(!h||typeof h=="string"))for(var m=0,g=h.length;m<g;m++){var v=h[m];if(v.type!=="code"){p(v.content);continue}var y=v.content[1],_=v.content[3];if(y&&_&&y.type==="code-language"&&_.type==="code-block"&&typeof y.content=="string"){var S=y.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");S=(/[a-z][\w-]*/i.exec(S)||[""])[0].toLowerCase();var C="language-"+S;_.alias?typeof _.alias=="string"?_.alias=[_.alias,C]:_.alias.push(C):_.alias=[C]}}}p(f.tokens)}),n.hooks.add("wrap",function(f){if(f.type==="code-block"){for(var p="",h=0,m=f.classes.length;h<m;h++){var g=f.classes[h],v=/language-(.+)/.exec(g);if(v){p=v[1];break}}var y=n.languages[p];if(y)f.content=n.highlight(d(f.content.value),y,p);else if(p&&p!=="none"&&n.plugins.autoloader){var _="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);f.attributes.id=_,n.plugins.autoloader.loadLanguages(p,function(){var S=document.getElementById(_);S&&(S.innerHTML=n.highlight(S.textContent,n.languages[p],p))})}}});var l=RegExp(n.languages.markup.tag.pattern.source,"gi"),c={amp:"&",lt:"<",gt:">",quot:'"'},u=String.fromCodePoint||String.fromCharCode;function d(f){var p=f.replace(l,"");return p=p.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(h,m){if(m=m.toLowerCase(),m[0]==="#"){var g;return m[1]==="x"?g=parseInt(m.slice(2),16):g=Number(m.slice(1)),u(g)}else{var v=c[m];return v||h}}),p}n.languages.md=n.languages.markdown})(t)}return OX}var LX,s4e;function FRn(){if(s4e)return LX;s4e=1,LX=e,e.displayName="matlab",e.aliases=[];function e(t){t.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/}}return LX}var PX,l4e;function BRn(){if(l4e)return PX;l4e=1,PX=e,e.displayName="maxscript",e.aliases=[];function e(t){(function(n){var r=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i;n.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+(/^/.source+"|"+/[;=<>+\-*/^({\[]/.source+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source)+")[ 	]*)(?!"+r.source+")"+/[a-z_]\w*\b/.source+"(?=[ 	]*(?:"+("(?!"+r.source+")"+/[a-z_]/.source+"|"+/\d|-\.?\d/.source+"|"+/[({'"$@#?]/.source)+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:r,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}})(t)}return PX}var kX,c4e;function jRn(){if(c4e)return kX;c4e=1,kX=e,e.displayName="mel",e.aliases=[];function e(t){t.languages.mel={comment:/\/\/.*/,code:{pattern:/`(?:\\.|[^\\`\r\n])*`/,greedy:!0,alias:"italic",inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},variable:/\$\w+/,number:/\b0x[\da-fA-F]+\b|\b\d+(?:\.\d*)?|\B\.\d+/,flag:{pattern:/-[^\d\W]\w*/,alias:"operator"},keyword:/\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/,function:/\b\w+(?=\()|\b(?:CBG|HfAddAttractorToAS|HfAssignAS|HfBuildEqualMap|HfBuildFurFiles|HfBuildFurImages|HfCancelAFR|HfConnectASToHF|HfCreateAttractor|HfDeleteAS|HfEditAS|HfPerformCreateAS|HfRemoveAttractorFromAS|HfSelectAttached|HfSelectAttractors|HfUnAssignAS|Mayatomr|about|abs|addAttr|addAttributeEditorNodeHelp|addDynamic|addNewShelfTab|addPP|addPanelCategory|addPrefixToName|advanceToNextDrivenKey|affectedNet|affects|aimConstraint|air|alias|aliasAttr|align|alignCtx|alignCurve|alignSurface|allViewFit|ambientLight|angle|angleBetween|animCone|animCurveEditor|animDisplay|animView|annotate|appendStringArray|applicationName|applyAttrPreset|applyTake|arcLenDimContext|arcLengthDimension|arclen|arrayMapper|art3dPaintCtx|artAttrCtx|artAttrPaintVertexCtx|artAttrSkinPaintCtx|artAttrTool|artBuildPaintMenu|artFluidAttrCtx|artPuttyCtx|artSelectCtx|artSetPaintCtx|artUserPaintCtx|assignCommand|assignInputDevice|assignViewportFactories|attachCurve|attachDeviceAttr|attachSurface|attrColorSliderGrp|attrCompatibility|attrControlGrp|attrEnumOptionMenu|attrEnumOptionMenuGrp|attrFieldGrp|attrFieldSliderGrp|attrNavigationControlGrp|attrPresetEditWin|attributeExists|attributeInfo|attributeMenu|attributeQuery|autoKeyframe|autoPlace|bakeClip|bakeFluidShading|bakePartialHistory|bakeResults|bakeSimulation|basename|basenameEx|batchRender|bessel|bevel|bevelPlus|binMembership|bindSkin|blend2|blendShape|blendShapeEditor|blendShapePanel|blendTwoAttr|blindDataType|boneLattice|boundary|boxDollyCtx|boxZoomCtx|bufferCurve|buildBookmarkMenu|buildKeyframeMenu|button|buttonManip|cacheFile|cacheFileCombine|cacheFileMerge|cacheFileTrack|camera|cameraView|canCreateManip|canvas|capitalizeString|catch|catchQuiet|ceil|changeSubdivComponentDisplayLevel|changeSubdivRegion|channelBox|character|characterMap|characterOutlineEditor|characterize|chdir|checkBox|checkBoxGrp|checkDefaultRenderGlobals|choice|circle|circularFillet|clamp|clear|clearCache|clip|clipEditor|clipEditorCurrentTimeCtx|clipSchedule|clipSchedulerOutliner|clipTrimBefore|closeCurve|closeSurface|cluster|cmdFileOutput|cmdScrollFieldExecuter|cmdScrollFieldReporter|cmdShell|coarsenSubdivSelectionList|collision|color|colorAtPoint|colorEditor|colorIndex|colorIndexSliderGrp|colorSliderButtonGrp|colorSliderGrp|columnLayout|commandEcho|commandLine|commandPort|compactHairSystem|componentEditor|compositingInterop|computePolysetVolume|condition|cone|confirmDialog|connectAttr|connectControl|connectDynamic|connectJoint|connectionInfo|constrain|constrainValue|constructionHistory|container|containsMultibyte|contextInfo|control|convertFromOldLayers|convertIffToPsd|convertLightmap|convertSolidTx|convertTessellation|convertUnit|copyArray|copyFlexor|copyKey|copySkinWeights|cos|cpButton|cpCache|cpClothSet|cpCollision|cpConstraint|cpConvClothToMesh|cpForces|cpGetSolverAttr|cpPanel|cpProperty|cpRigidCollisionFilter|cpSeam|cpSetEdit|cpSetSolverAttr|cpSolver|cpSolverTypes|cpTool|cpUpdateClothUVs|createDisplayLayer|createDrawCtx|createEditor|createLayeredPsdFile|createMotionField|createNewShelf|createNode|createRenderLayer|createSubdivRegion|cross|crossProduct|ctxAbort|ctxCompletion|ctxEditMode|ctxTraverse|currentCtx|currentTime|currentTimeCtx|currentUnit|curve|curveAddPtCtx|curveCVCtx|curveEPCtx|curveEditorCtx|curveIntersect|curveMoveEPCtx|curveOnSurface|curveSketchCtx|cutKey|cycleCheck|cylinder|dagPose|date|defaultLightListCheckBox|defaultNavigation|defineDataServer|defineVirtualDevice|deformer|deg_to_rad|delete|deleteAttr|deleteShadingGroupsAndMaterials|deleteShelfTab|deleteUI|deleteUnusedBrushes|delrandstr|detachCurve|detachDeviceAttr|detachSurface|deviceEditor|devicePanel|dgInfo|dgdirty|dgeval|dgtimer|dimWhen|directKeyCtx|directionalLight|dirmap|dirname|disable|disconnectAttr|disconnectJoint|diskCache|displacementToPoly|displayAffected|displayColor|displayCull|displayLevelOfDetail|displayPref|displayRGBColor|displaySmoothness|displayStats|displayString|displaySurface|distanceDimContext|distanceDimension|doBlur|dolly|dollyCtx|dopeSheetEditor|dot|dotProduct|doubleProfileBirailSurface|drag|dragAttrContext|draggerContext|dropoffLocator|duplicate|duplicateCurve|duplicateSurface|dynCache|dynControl|dynExport|dynExpression|dynGlobals|dynPaintEditor|dynParticleCtx|dynPref|dynRelEdPanel|dynRelEditor|dynamicLoad|editAttrLimits|editDisplayLayerGlobals|editDisplayLayerMembers|editRenderLayerAdjustment|editRenderLayerGlobals|editRenderLayerMembers|editor|editorTemplate|effector|emit|emitter|enableDevice|encodeString|endString|endsWith|env|equivalent|equivalentTol|erf|error|eval|evalDeferred|evalEcho|event|exactWorldBoundingBox|exclusiveLightCheckBox|exec|executeForEachObject|exists|exp|expression|expressionEditorListen|extendCurve|extendSurface|extrude|fcheck|fclose|feof|fflush|fgetline|fgetword|file|fileBrowserDialog|fileDialog|fileExtension|fileInfo|filetest|filletCurve|filter|filterCurve|filterExpand|filterStudioImport|findAllIntersections|findAnimCurves|findKeyframe|findMenuItem|findRelatedSkinCluster|finder|firstParentOf|fitBspline|flexor|floatEq|floatField|floatFieldGrp|floatScrollBar|floatSlider|floatSlider2|floatSliderButtonGrp|floatSliderGrp|floor|flow|fluidCacheInfo|fluidEmitter|fluidVoxelInfo|flushUndo|fmod|fontDialog|fopen|formLayout|format|fprint|frameLayout|fread|freeFormFillet|frewind|fromNativePath|fwrite|gamma|gauss|geometryConstraint|getApplicationVersionAsFloat|getAttr|getClassification|getDefaultBrush|getFileList|getFluidAttr|getInputDeviceRange|getMayaPanelTypes|getModifiers|getPanel|getParticleAttr|getPluginResource|getenv|getpid|glRender|glRenderEditor|globalStitch|gmatch|goal|gotoBindPose|grabColor|gradientControl|gradientControlNoAttr|graphDollyCtx|graphSelectContext|graphTrackCtx|gravity|grid|gridLayout|group|groupObjectsByName|hardenPointCurve|hardware|hardwareRenderPanel|headsUpDisplay|headsUpMessage|help|helpLine|hermite|hide|hilite|hitTest|hotBox|hotkey|hotkeyCheck|hsv_to_rgb|hudButton|hudSlider|hudSliderButton|hwReflectionMap|hwRender|hwRenderLoad|hyperGraph|hyperPanel|hyperShade|hypot|iconTextButton|iconTextCheckBox|iconTextRadioButton|iconTextRadioCollection|iconTextScrollList|iconTextStaticLabel|ikHandle|ikHandleCtx|ikHandleDisplayScale|ikSolver|ikSplineHandleCtx|ikSystem|ikSystemInfo|ikfkDisplayMethod|illustratorCurves|image|imfPlugins|inheritTransform|insertJoint|insertJointCtx|insertKeyCtx|insertKnotCurve|insertKnotSurface|instance|instanceable|instancer|intField|intFieldGrp|intScrollBar|intSlider|intSliderGrp|interToUI|internalVar|intersect|iprEngine|isAnimCurve|isConnected|isDirty|isParentOf|isSameObject|isTrue|isValidObjectName|isValidString|isValidUiName|isolateSelect|itemFilter|itemFilterAttr|itemFilterRender|itemFilterType|joint|jointCluster|jointCtx|jointDisplayScale|jointLattice|keyTangent|keyframe|keyframeOutliner|keyframeRegionCurrentTimeCtx|keyframeRegionDirectKeyCtx|keyframeRegionDollyCtx|keyframeRegionInsertKeyCtx|keyframeRegionMoveKeyCtx|keyframeRegionScaleKeyCtx|keyframeRegionSelectKeyCtx|keyframeRegionSetKeyCtx|keyframeRegionTrackCtx|keyframeStats|lassoContext|lattice|latticeDeformKeyCtx|launch|launchImageEditor|layerButton|layeredShaderPort|layeredTexturePort|layout|layoutDialog|lightList|lightListEditor|lightListPanel|lightlink|lineIntersection|linearPrecision|linstep|listAnimatable|listAttr|listCameras|listConnections|listDeviceAttachments|listHistory|listInputDeviceAxes|listInputDeviceButtons|listInputDevices|listMenuAnnotation|listNodeTypes|listPanelCategories|listRelatives|listSets|listTransforms|listUnselected|listerEditor|loadFluid|loadNewShelf|loadPlugin|loadPluginLanguageResources|loadPrefObjects|localizedPanelLabel|lockNode|loft|log|longNameOf|lookThru|ls|lsThroughFilter|lsType|lsUI|mag|makeIdentity|makeLive|makePaintable|makeRoll|makeSingleSurface|makeTubeOn|makebot|manipMoveContext|manipMoveLimitsCtx|manipOptions|manipRotateContext|manipRotateLimitsCtx|manipScaleContext|manipScaleLimitsCtx|marker|match|max|memory|menu|menuBarLayout|menuEditor|menuItem|menuItemToShelf|menuSet|menuSetPref|messageLine|min|minimizeApp|mirrorJoint|modelCurrentTimeCtx|modelEditor|modelPanel|mouse|movIn|movOut|move|moveIKtoFK|moveKeyCtx|moveVertexAlongDirection|multiProfileBirailSurface|mute|nParticle|nameCommand|nameField|namespace|namespaceInfo|newPanelItems|newton|nodeCast|nodeIconButton|nodeOutliner|nodePreset|nodeType|noise|nonLinear|normalConstraint|normalize|nurbsBoolean|nurbsCopyUVSet|nurbsCube|nurbsEditUV|nurbsPlane|nurbsSelect|nurbsSquare|nurbsToPoly|nurbsToPolygonsPref|nurbsToSubdiv|nurbsToSubdivPref|nurbsUVSet|nurbsViewDirectionVector|objExists|objectCenter|objectLayer|objectType|objectTypeUI|obsoleteProc|oceanNurbsPreviewPlane|offsetCurve|offsetCurveOnSurface|offsetSurface|openGLExtension|openMayaPref|optionMenu|optionMenuGrp|optionVar|orbit|orbitCtx|orientConstraint|outlinerEditor|outlinerPanel|overrideModifier|paintEffectsDisplay|pairBlend|palettePort|paneLayout|panel|panelConfiguration|panelHistory|paramDimContext|paramDimension|paramLocator|parent|parentConstraint|particle|particleExists|particleInstancer|particleRenderInfo|partition|pasteKey|pathAnimation|pause|pclose|percent|performanceOptions|pfxstrokes|pickWalk|picture|pixelMove|planarSrf|plane|play|playbackOptions|playblast|plugAttr|plugNode|pluginInfo|pluginResourceUtil|pointConstraint|pointCurveConstraint|pointLight|pointMatrixMult|pointOnCurve|pointOnSurface|pointPosition|poleVectorConstraint|polyAppend|polyAppendFacetCtx|polyAppendVertex|polyAutoProjection|polyAverageNormal|polyAverageVertex|polyBevel|polyBlendColor|polyBlindData|polyBoolOp|polyBridgeEdge|polyCacheMonitor|polyCheck|polyChipOff|polyClipboard|polyCloseBorder|polyCollapseEdge|polyCollapseFacet|polyColorBlindData|polyColorDel|polyColorPerVertex|polyColorSet|polyCompare|polyCone|polyCopyUV|polyCrease|polyCreaseCtx|polyCreateFacet|polyCreateFacetCtx|polyCube|polyCut|polyCutCtx|polyCylinder|polyCylindricalProjection|polyDelEdge|polyDelFacet|polyDelVertex|polyDuplicateAndConnect|polyDuplicateEdge|polyEditUV|polyEditUVShell|polyEvaluate|polyExtrudeEdge|polyExtrudeFacet|polyExtrudeVertex|polyFlipEdge|polyFlipUV|polyForceUV|polyGeoSampler|polyHelix|polyInfo|polyInstallAction|polyLayoutUV|polyListComponentConversion|polyMapCut|polyMapDel|polyMapSew|polyMapSewMove|polyMergeEdge|polyMergeEdgeCtx|polyMergeFacet|polyMergeFacetCtx|polyMergeUV|polyMergeVertex|polyMirrorFace|polyMoveEdge|polyMoveFacet|polyMoveFacetUV|polyMoveUV|polyMoveVertex|polyNormal|polyNormalPerVertex|polyNormalizeUV|polyOptUvs|polyOptions|polyOutput|polyPipe|polyPlanarProjection|polyPlane|polyPlatonicSolid|polyPoke|polyPrimitive|polyPrism|polyProjection|polyPyramid|polyQuad|polyQueryBlindData|polyReduce|polySelect|polySelectConstraint|polySelectConstraintMonitor|polySelectCtx|polySelectEditCtx|polySeparate|polySetToFaceNormal|polySewEdge|polyShortestPathCtx|polySmooth|polySoftEdge|polySphere|polySphericalProjection|polySplit|polySplitCtx|polySplitEdge|polySplitRing|polySplitVertex|polyStraightenUVBorder|polySubdivideEdge|polySubdivideFacet|polyToSubdiv|polyTorus|polyTransfer|polyTriangulate|polyUVSet|polyUnite|polyWedgeFace|popen|popupMenu|pose|pow|preloadRefEd|print|progressBar|progressWindow|projFileViewer|projectCurve|projectTangent|projectionContext|projectionManip|promptDialog|propModCtx|propMove|psdChannelOutliner|psdEditTextureFile|psdExport|psdTextureFile|putenv|pwd|python|querySubdiv|quit|rad_to_deg|radial|radioButton|radioButtonGrp|radioCollection|radioMenuItemCollection|rampColorPort|rand|randomizeFollicles|randstate|rangeControl|readTake|rebuildCurve|rebuildSurface|recordAttr|recordDevice|redo|reference|referenceEdit|referenceQuery|refineSubdivSelectionList|refresh|refreshAE|registerPluginResource|rehash|reloadImage|removeJoint|removeMultiInstance|removePanelCategory|rename|renameAttr|renameSelectionList|renameUI|render|renderGlobalsNode|renderInfo|renderLayerButton|renderLayerParent|renderLayerPostProcess|renderLayerUnparent|renderManip|renderPartition|renderQualityNode|renderSettings|renderThumbnailUpdate|renderWindowEditor|renderWindowSelectContext|renderer|reorder|reorderDeformers|requires|reroot|resampleFluid|resetAE|resetPfxToPolyCamera|resetTool|resolutionNode|retarget|reverseCurve|reverseSurface|revolve|rgb_to_hsv|rigidBody|rigidSolver|roll|rollCtx|rootOf|rot|rotate|rotationInterpolation|roundConstantRadius|rowColumnLayout|rowLayout|runTimeCommand|runup|sampleImage|saveAllShelves|saveAttrPreset|saveFluid|saveImage|saveInitialState|saveMenu|savePrefObjects|savePrefs|saveShelf|saveToolSettings|scale|scaleBrushBrightness|scaleComponents|scaleConstraint|scaleKey|scaleKeyCtx|sceneEditor|sceneUIReplacement|scmh|scriptCtx|scriptEditorInfo|scriptJob|scriptNode|scriptTable|scriptToShelf|scriptedPanel|scriptedPanelType|scrollField|scrollLayout|sculpt|searchPathArray|seed|selLoadSettings|select|selectContext|selectCurveCV|selectKey|selectKeyCtx|selectKeyframeRegionCtx|selectMode|selectPref|selectPriority|selectType|selectedNodes|selectionConnection|separator|setAttr|setAttrEnumResource|setAttrMapping|setAttrNiceNameResource|setConstraintRestPosition|setDefaultShadingGroup|setDrivenKeyframe|setDynamic|setEditCtx|setEditor|setFluidAttr|setFocus|setInfinity|setInputDeviceMapping|setKeyCtx|setKeyPath|setKeyframe|setKeyframeBlendshapeTargetWts|setMenuMode|setNodeNiceNameResource|setNodeTypeFlag|setParent|setParticleAttr|setPfxToPolyCamera|setPluginResource|setProject|setStampDensity|setStartupMessage|setState|setToolTo|setUITemplate|setXformManip|sets|shadingConnection|shadingGeometryRelCtx|shadingLightRelCtx|shadingNetworkCompare|shadingNode|shapeCompare|shelfButton|shelfLayout|shelfTabLayout|shellField|shortNameOf|showHelp|showHidden|showManipCtx|showSelectionInTitle|showShadingGroupAttrEditor|showWindow|sign|simplify|sin|singleProfileBirailSurface|size|sizeBytes|skinCluster|skinPercent|smoothCurve|smoothTangentSurface|smoothstep|snap2to2|snapKey|snapMode|snapTogetherCtx|snapshot|soft|softMod|softModCtx|sort|sound|soundControl|source|spaceLocator|sphere|sphrand|spotLight|spotLightPreviewPort|spreadSheetEditor|spring|sqrt|squareSurface|srtContext|stackTrace|startString|startsWith|stitchAndExplodeShell|stitchSurface|stitchSurfacePoints|strcmp|stringArrayCatenate|stringArrayContains|stringArrayCount|stringArrayInsertAtIndex|stringArrayIntersector|stringArrayRemove|stringArrayRemoveAtIndex|stringArrayRemoveDuplicates|stringArrayRemoveExact|stringArrayToString|stringToStringArray|strip|stripPrefixFromName|stroke|subdAutoProjection|subdCleanTopology|subdCollapse|subdDuplicateAndConnect|subdEditUV|subdListComponentConversion|subdMapCut|subdMapSewMove|subdMatchTopology|subdMirror|subdToBlind|subdToPoly|subdTransferUVsToCache|subdiv|subdivCrease|subdivDisplaySmoothness|substitute|substituteAllString|substituteGeometry|substring|surface|surfaceSampler|surfaceShaderList|swatchDisplayPort|switchTable|symbolButton|symbolCheckBox|sysFile|system|tabLayout|tan|tangentConstraint|texLatticeDeformContext|texManipContext|texMoveContext|texMoveUVShellContext|texRotateContext|texScaleContext|texSelectContext|texSelectShortestPathCtx|texSmudgeUVContext|texWinToolCtx|text|textCurves|textField|textFieldButtonGrp|textFieldGrp|textManip|textScrollList|textToShelf|textureDisplacePlane|textureHairColor|texturePlacementContext|textureWindow|threadCount|threePointArcCtx|timeControl|timePort|timerX|toNativePath|toggle|toggleAxis|toggleWindowVisibility|tokenize|tokenizeList|tolerance|tolower|toolButton|toolCollection|toolDropped|toolHasOptions|toolPropertyWindow|torus|toupper|trace|track|trackCtx|transferAttributes|transformCompare|transformLimits|translator|trim|trunc|truncateFluidCache|truncateHairCache|tumble|tumbleCtx|turbulence|twoPointArcCtx|uiRes|uiTemplate|unassignInputDevice|undo|undoInfo|ungroup|uniform|unit|unloadPlugin|untangleUV|untitledFileName|untrim|upAxis|updateAE|userCtx|uvLink|uvSnapshot|validateShelfName|vectorize|view2dToolCtx|viewCamera|viewClipPlane|viewFit|viewHeadOn|viewLookAt|viewManip|viewPlace|viewSet|visor|volumeAxis|vortex|waitCursor|warning|webBrowser|webBrowserPrefs|whatIs|window|windowPref|wire|wireContext|workspace|wrinkle|wrinkleContext|writeTake|xbmLangPathList|xform)\b/,operator:[/\+[+=]?|-[-=]?|&&|\|\||[<>]=|[*\/!=]=?|[%^]/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,:;?\[\](){}]/},t.languages.mel.code.inside.rest=t.languages.mel}return kX}var MX,u4e;function zRn(){if(u4e)return MX;u4e=1,MX=e,e.displayName="mermaid",e.aliases=[];function e(t){t.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[<ox](?:==+|--+|-\.*-)[>ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/}}return MX}var DX,d4e;function URn(){if(d4e)return DX;d4e=1,DX=e,e.displayName="mizar",e.aliases=[];function e(t){t.languages.mizar={comment:/::.+/,keyword:/@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|end|environ|equals|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:ies|y)|when|where|with|wrt)\b/,parameter:{pattern:/\$(?:10|\d)/,alias:"variable"},variable:/\b\w+(?=:)/,number:/(?:\b|-)\d+\b/,operator:/\.\.\.|->|&|\.?=/,punctuation:/\(#|#\)|[,:;\[\](){}]/}}return DX}var $X,f4e;function HRn(){if(f4e)return $X;f4e=1,$X=e,e.displayName="mongodb",e.aliases=[];function e(t){(function(n){var r=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],i=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];r=r.map(function(o){return o.replace("$","\\$")});var a="(?:"+r.join("|")+")\\b";n.languages.mongodb=n.languages.extend("javascript",{}),n.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp(`^(['"])?`+a+"(?:\\1)?$")}}}),n.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},n.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+i.join("|")+")\\b"),alias:"keyword"}})})(t)}return $X}var FX,p4e;function VRn(){if(p4e)return FX;p4e=1,FX=e,e.displayName="monkey",e.aliases=[];function e(t){t.languages.monkey={comment:{pattern:/^#Rem\s[\s\S]*?^#End|'.+/im,greedy:!0},string:{pattern:/"[^"\r\n]*"/,greedy:!0},preprocessor:{pattern:/(^[ \t]*)#.+/m,lookbehind:!0,greedy:!0,alias:"property"},function:/\b\w+(?=\()/,"type-char":{pattern:/\b[?%#$]/,alias:"class-name"},number:{pattern:/((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,lookbehind:!0},keyword:/\b(?:Abstract|Array|Bool|Case|Catch|Class|Const|Continue|Default|Eachin|Else|ElseIf|End|EndIf|Exit|Extends|Extern|False|Field|Final|Float|For|Forever|Function|Global|If|Implements|Import|Inline|Int|Interface|Local|Method|Module|New|Next|Null|Object|Private|Property|Public|Repeat|Return|Select|Self|Step|Strict|String|Super|Then|Throw|To|True|Try|Until|Void|Wend|While)\b/i,operator:/\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i,punctuation:/[.,:;()\[\]]/}}return FX}var BX,h4e;function GRn(){if(h4e)return BX;h4e=1,BX=e,e.displayName="moonscript",e.aliases=["moon"];function e(t){t.languages.moonscript={comment:/--.*/,string:[{pattern:/'[^']*'|\[(=*)\[[\s\S]*?\]\1\]/,greedy:!0},{pattern:/"[^"]*"/,greedy:!0,inside:{interpolation:{pattern:/#\{[^{}]*\}/,inside:{moonscript:{pattern:/(^#\{)[\s\S]+(?=\})/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/#\{|\}/,alias:"punctuation"}}}}}],"class-name":[{pattern:/(\b(?:class|extends)[ \t]+)\w+/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\b(?:class|continue|do|else|elseif|export|extends|for|from|if|import|in|local|nil|return|self|super|switch|then|unless|using|when|while|with)\b/,variable:/@@?\w*/,property:{pattern:/\b(?!\d)\w+(?=:)|(:)(?!\d)\w+/,lookbehind:!0},function:{pattern:/\b(?:_G|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,inside:{punctuation:/\./}},boolean:/\b(?:false|true)\b/,number:/(?:\B\.\d+|\b\d+\.\d+|\b\d+(?=[eE]))(?:[eE][-+]?\d+)?\b|\b(?:0x[a-fA-F\d]+|\d+)(?:U?LL)?\b/,operator:/\.{3}|[-=]>|~=|(?:[-+*/%<>!=]|\.\.)=?|[:#^]|\b(?:and|or)\b=?|\b(?:not)\b/,punctuation:/[.,()[\]{}\\]/},t.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=t.languages.moonscript,t.languages.moon=t.languages.moonscript}return BX}var jX,m4e;function qRn(){if(m4e)return jX;m4e=1,jX=e,e.displayName="n1ql",e.aliases=[];function e(t){t.languages.n1ql={comment:{pattern:/\/\*[\s\S]*?(?:$|\*\/)|--.*/,greedy:!0},string:{pattern:/(["'])(?:\\[\s\S]|(?!\1)[^\\]|\1\1)*\1/,greedy:!0},identifier:{pattern:/`(?:\\[\s\S]|[^\\`]|``)*`/,greedy:!0},parameter:/\$[\w.]+/,keyword:/\b(?:ADVISE|ALL|ALTER|ANALYZE|AS|ASC|AT|BEGIN|BINARY|BOOLEAN|BREAK|BUCKET|BUILD|BY|CALL|CAST|CLUSTER|COLLATE|COLLECTION|COMMIT|COMMITTED|CONNECT|CONTINUE|CORRELATE|CORRELATED|COVER|CREATE|CURRENT|DATABASE|DATASET|DATASTORE|DECLARE|DECREMENT|DELETE|DERIVED|DESC|DESCRIBE|DISTINCT|DO|DROP|EACH|ELEMENT|EXCEPT|EXCLUDE|EXECUTE|EXPLAIN|FETCH|FILTER|FLATTEN|FLUSH|FOLLOWING|FOR|FORCE|FROM|FTS|FUNCTION|GOLANG|GRANT|GROUP|GROUPS|GSI|HASH|HAVING|IF|IGNORE|ILIKE|INCLUDE|INCREMENT|INDEX|INFER|INLINE|INNER|INSERT|INTERSECT|INTO|IS|ISOLATION|JAVASCRIPT|JOIN|KEY|KEYS|KEYSPACE|KNOWN|LANGUAGE|LAST|LEFT|LET|LETTING|LEVEL|LIMIT|LSM|MAP|MAPPING|MATCHED|MATERIALIZED|MERGE|MINUS|MISSING|NAMESPACE|NEST|NL|NO|NTH_VALUE|NULL|NULLS|NUMBER|OBJECT|OFFSET|ON|OPTION|OPTIONS|ORDER|OTHERS|OUTER|OVER|PARSE|PARTITION|PASSWORD|PATH|POOL|PRECEDING|PREPARE|PRIMARY|PRIVATE|PRIVILEGE|PROBE|PROCEDURE|PUBLIC|RANGE|RAW|REALM|REDUCE|RENAME|RESPECT|RETURN|RETURNING|REVOKE|RIGHT|ROLE|ROLLBACK|ROW|ROWS|SATISFIES|SAVEPOINT|SCHEMA|SCOPE|SELECT|SELF|SEMI|SET|SHOW|SOME|START|STATISTICS|STRING|SYSTEM|TIES|TO|TRAN|TRANSACTION|TRIGGER|TRUNCATE|UNBOUNDED|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNSET|UPDATE|UPSERT|USE|USER|USING|VALIDATE|VALUE|VALUES|VIA|VIEW|WHERE|WHILE|WINDOW|WITH|WORK|XOR)\b/i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:FALSE|TRUE)\b/i,number:/(?:\b\d+\.|\B\.)\d+e[+\-]?\d+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/%]|!=|==?|\|\||<[>=]?|>=?|\b(?:AND|ANY|ARRAY|BETWEEN|CASE|ELSE|END|EVERY|EXISTS|FIRST|IN|LIKE|NOT|OR|THEN|VALUED|WHEN|WITHIN)\b/i,punctuation:/[;[\](),.{}:]/}}return jX}var zX,g4e;function WRn(){if(g4e)return zX;g4e=1,zX=e,e.displayName="n4js",e.aliases=["n4jsd"];function e(t){t.languages.n4js=t.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),t.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),t.languages.n4jsd=t.languages.n4js}return zX}var UX,v4e;function YRn(){if(v4e)return UX;v4e=1,UX=e,e.displayName="nand2tetrisHdl",e.aliases=[];function e(t){t.languages["nand2tetris-hdl"]={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,keyword:/\b(?:BUILTIN|CHIP|CLOCKED|IN|OUT|PARTS)\b/,boolean:/\b(?:false|true)\b/,function:/\b[A-Za-z][A-Za-z0-9]*(?=\()/,number:/\b\d+\b/,operator:/=|\.\./,punctuation:/[{}[\];(),:]/}}return UX}var HX,y4e;function KRn(){if(y4e)return HX;y4e=1,HX=e,e.displayName="naniscript",e.aliases=[];function e(t){(function(n){var r=/\{[^\r\n\[\]{}]*\}/,i={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:r,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};n.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:r,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:i}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:r,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:i},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},n.languages.nani=n.languages.naniscript,n.hooks.add("after-tokenize",function(s){var l=s.tokens;l.forEach(function(c){if(typeof c!="string"&&c.type==="generic-text"){var u=o(c);a(u)||(c.type="bad-line",c.content=u)}})});function a(s){for(var l="[]{}",c=[],u=0;u<s.length;u++){var d=s[u],f=l.indexOf(d);if(f!==-1){if(f%2===0)c.push(f+1);else if(c.pop()!==f)return!1}}return c.length===0}function o(s){return typeof s=="string"?s:Array.isArray(s)?s.map(o).join(""):o(s.content)}})(t)}return HX}var VX,b4e;function XRn(){if(b4e)return VX;b4e=1,VX=e,e.displayName="nasm",e.aliases=[];function e(t){t.languages.nasm={comment:/;.*$/m,string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,label:{pattern:/(^\s*)[A-Za-z._?$][\w.?$@~#]*:/m,lookbehind:!0,alias:"function"},keyword:[/\[?BITS (?:16|32|64)\]?/,{pattern:/(^\s*)section\s*[a-z.]+:?/im,lookbehind:!0},/(?:extern|global)[^;\r\n]*/i,/(?:CPU|DEFAULT|FLOAT).*$/m],register:{pattern:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s)\b/i,alias:"variable"},number:/(?:\b|(?=\$))(?:0[hx](?:\.[\da-f]+|[\da-f]+(?:\.[\da-f]+)?)(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-\/%<>=&|$!]/}}return VX}var GX,_4e;function ZRn(){if(_4e)return GX;_4e=1,GX=e,e.displayName="neon",e.aliases=[];function e(t){t.languages.neon={comment:{pattern:/#.*/,greedy:!0},datetime:{pattern:/(^|[[{(=:,\s])\d\d\d\d-\d\d?-\d\d?(?:(?:[Tt]| +)\d\d?:\d\d:\d\d(?:\.\d*)? *(?:Z|[-+]\d\d?(?::?\d\d)?)?)?(?=$|[\]}),\s])/,lookbehind:!0,alias:"number"},key:{pattern:/(^|[[{(,\s])[^,:=[\]{}()'"\s]+(?=\s*:(?:$|[\]}),\s])|\s*=)/,lookbehind:!0,alias:"atrule"},number:{pattern:/(^|[[{(=:,\s])[+-]?(?:0x[\da-fA-F]+|0o[0-7]+|0b[01]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:[eE][+-]?\d+)?)(?=$|[\]}),:=\s])/,lookbehind:!0},boolean:{pattern:/(^|[[{(=:,\s])(?:false|no|true|yes)(?=$|[\]}),:=\s])/i,lookbehind:!0},null:{pattern:/(^|[[{(=:,\s])(?:null)(?=$|[\]}),:=\s])/i,lookbehind:!0,alias:"keyword"},string:{pattern:/(^|[[{(=:,\s])(?:('''|""")\r?\n(?:(?:[^\r\n]|\r?\n(?![\t ]*\2))*\r?\n)?[\t ]*\2|'[^'\r\n]*'|"(?:\\.|[^\\"\r\n])*")/,lookbehind:!0,greedy:!0},literal:{pattern:/(^|[[{(=:,\s])(?:[^#"',:=[\]{}()\s`-]|[:-][^"',=[\]{}()\s])(?:[^,:=\]})(\s]|:(?![\s,\]})]|$)|[ \t]+[^#,:=\]})(\s])*/,lookbehind:!0,alias:"string"},punctuation:/[,:=[\]{}()-]/}}return GX}var qX,S4e;function QRn(){if(S4e)return qX;S4e=1,qX=e,e.displayName="nevod",e.aliases=[];function e(t){t.languages.nevod={comment:/\/\/.*|(?:\/\*[\s\S]*?(?:\*\/|$))/,string:{pattern:/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))!?\*?/,greedy:!0,inside:{"string-attrs":/!$|!\*$|\*$/}},namespace:{pattern:/(@namespace\s+)[a-zA-Z0-9\-.]+(?=\s*\{)/,lookbehind:!0},pattern:{pattern:/(@pattern\s+)?#?[a-zA-Z0-9\-.]+(?:\s*\(\s*(?:~\s*)?[a-zA-Z0-9\-.]+\s*(?:,\s*(?:~\s*)?[a-zA-Z0-9\-.]*)*\))?(?=\s*=)/,lookbehind:!0,inside:{"pattern-name":{pattern:/^#?[a-zA-Z0-9\-.]+/,alias:"class-name"},fields:{pattern:/\(.*\)/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},punctuation:/[,()]/,operator:{pattern:/~/,alias:"field-hidden-mark"}}}}},search:{pattern:/(@search\s+|#)[a-zA-Z0-9\-.]+(?:\.\*)?(?=\s*;)/,alias:"function",lookbehind:!0},keyword:/@(?:having|inside|namespace|outside|pattern|require|search|where)\b/,"standard-pattern":{pattern:/\b(?:Alpha|AlphaNum|Any|Blank|End|LineBreak|Num|NumAlpha|Punct|Space|Start|Symbol|Word|WordBreak)\b(?:\([a-zA-Z0-9\-.,\s+]*\))?/,inside:{"standard-pattern-name":{pattern:/^[a-zA-Z0-9\-.]+/,alias:"builtin"},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},"standard-pattern-attr":{pattern:/[a-zA-Z0-9\-.]+/,alias:"builtin"},punctuation:/[,()]/}},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},operator:[{pattern:/=/,alias:"pattern-def"},{pattern:/&/,alias:"conjunction"},{pattern:/~/,alias:"exception"},{pattern:/\?/,alias:"optionality"},{pattern:/[[\]]/,alias:"repetition"},{pattern:/[{}]/,alias:"variation"},{pattern:/[+_]/,alias:"sequence"},{pattern:/\.{2,3}/,alias:"span"}],"field-capture":[{pattern:/([a-zA-Z0-9\-.]+\s*\()\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+(?:\s*,\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+)*(?=\s*\))/,lookbehind:!0,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}},{pattern:/[a-zA-Z0-9\-.]+\s*:/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}}],punctuation:/[:;,()]/,name:/[a-zA-Z0-9\-.]+/}}return qX}var WX,E4e;function JRn(){if(E4e)return WX;E4e=1,WX=e,e.displayName="nginx",e.aliases=[];function e(t){(function(n){var r=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;n.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:r}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:r}},punctuation:/[{};]/}})(t)}return WX}var YX,C4e;function eNn(){if(C4e)return YX;C4e=1,YX=e,e.displayName="nim",e.aliases=[];function e(t){t.languages.nim={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(?:\b(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")/,greedy:!0},char:{pattern:/'(?:\\(?:\d+|x[\da-fA-F]{0,2}|.)|[^'])'/,greedy:!0},function:{pattern:/(?:(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/,greedy:!0,inside:{operator:/\*$/}},identifier:{pattern:/`[^`\r\n]+`/,greedy:!0,inside:{punctuation:/`/}},number:/\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/,keyword:/\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/,operator:{pattern:/(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|in|is|isnot|mod|not|notin|of|or|shl|shr|xor)\b)/m,lookbehind:!0},punctuation:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}return YX}var KX,w4e;function tNn(){if(w4e)return KX;w4e=1,KX=e,e.displayName="nix",e.aliases=[];function e(t){t.languages.nix={comment:{pattern:/\/\*[\s\S]*?\*\/|#.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,greedy:!0,inside:{interpolation:{pattern:/(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,lookbehind:!0,inside:null}}},url:[/\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/,{pattern:/([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/,lookbehind:!0}],antiquotation:{pattern:/\$(?=\{)/,alias:"important"},number:/\b\d+\b/,keyword:/\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,function:/\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:Tarball|url)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/,punctuation:/[{}()[\].,:;]/},t.languages.nix.string.inside.interpolation.inside=t.languages.nix}return KX}var XX,x4e;function nNn(){if(x4e)return XX;x4e=1,XX=e,e.displayName="nsis",e.aliases=[];function e(t){t.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|LabelAddress|TempFileName)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}}}return XX}var ZX,T4e;function rNn(){if(T4e)return ZX;T4e=1;var e=LC();ZX=t,t.displayName="objectivec",t.aliases=["objc"];function t(n){n.register(e),n.languages.objectivec=n.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete n.languages.objectivec["class-name"],n.languages.objc=n.languages.objectivec}return ZX}var QX,I4e;function iNn(){if(I4e)return QX;I4e=1,QX=e,e.displayName="ocaml",e.aliases=[];function e(t){t.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/}}return QX}var JX,A4e;function aNn(){if(A4e)return JX;A4e=1;var e=LC();JX=t,t.displayName="opencl",t.aliases=[];function t(n){n.register(e),function(r){r.languages.opencl=r.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),r.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}});var i={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}};r.languages.insertBefore("c","keyword",i),r.languages.cpp&&(i["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},r.languages.insertBefore("cpp","keyword",i))}(n)}return JX}var eZ,R4e;function oNn(){if(R4e)return eZ;R4e=1,eZ=e,e.displayName="openqasm",e.aliases=["qasm"];function e(t){t.languages.openqasm={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"[^"\r\n\t]*"|'[^'\r\n\t]*'/,greedy:!0},keyword:/\b(?:CX|OPENQASM|U|barrier|boxas|boxto|break|const|continue|ctrl|def|defcal|defcalgrammar|delay|else|end|for|gate|gphase|if|in|include|inv|kernel|lengthof|let|measure|pow|reset|return|rotary|stretchinf|while)\b|#pragma\b/,"class-name":/\b(?:angle|bit|bool|creg|fixed|float|int|length|qreg|qubit|stretch|uint)\b/,function:/\b(?:cos|exp|ln|popcount|rotl|rotr|sin|sqrt|tan)\b(?=\s*\()/,constant:/\b(?:euler|pi|tau)\b|π|𝜏|ℇ/,number:{pattern:/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|µs|ms|s)?/i,lookbehind:!0},operator:/->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,punctuation:/[(){}\[\];,:.]/},t.languages.qasm=t.languages.openqasm}return eZ}var tZ,N4e;function sNn(){if(N4e)return tZ;N4e=1,tZ=e,e.displayName="oz",e.aliases=[];function e(t){t.languages.oz={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/\$|\[\]|\b(?:_|at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/\b[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*\b/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+(?:\.\d*)?(?:e~?\d+)?)\b|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/`(?:[^`\\]|\\.)+`/,"attr-name":/\b\w+(?=[ \t]*:(?![:=]))/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|<?:?)|>=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/}}return tZ}var nZ,O4e;function lNn(){if(O4e)return nZ;O4e=1,nZ=e,e.displayName="parigp",e.aliases=[];function e(t){t.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:function(){var n=["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"];return n=n.map(function(r){return r.split("").join(" *")}).join("|"),RegExp("\\b(?:"+n+")\\b")}(),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}return nZ}var rZ,L4e;function cNn(){if(L4e)return rZ;L4e=1,rZ=e,e.displayName="parser",e.aliases=[];function e(t){(function(n){var r=n.languages.parser=n.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/});r=n.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:r.keyword,variable:r.variable,function:r.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:r.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:r.punctuation}}}),n.languages.insertBefore("inside","punctuation",{expression:r.expression,keyword:r.keyword,variable:r.variable,function:r.function,escape:r.escape,"parser-punctuation":{pattern:r.punctuation,alias:"punctuation"}},r.tag.inside["attr-value"])})(t)}return rZ}var iZ,P4e;function uNn(){if(P4e)return iZ;P4e=1,iZ=e,e.displayName="pascal",e.aliases=["objectpascal"];function e(t){t.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},t.languages.pascal.asm.inside=t.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),t.languages.objectpascal=t.languages.pascal}return iZ}var aZ,k4e;function dNn(){if(k4e)return aZ;k4e=1,aZ=e,e.displayName="pascaligo",e.aliases=[];function e(t){(function(n){var r=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,i=/(?:\b\w+(?:<braces>)?|<braces>)/.source.replace(/<braces>/g,function(){return r}),a=n.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)<type>/.source.replace(/<type>/g,function(){return i}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/<type>(?=\s+is\b)/.source.replace(/<type>/g,function(){return i}),"i"),inside:null},{pattern:RegExp(/(:\s*)<type>/.source.replace(/<type>/g,function(){return i})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},o=["comment","keyword","builtin","operator","punctuation"].reduce(function(s,l){return s[l]=a[l],s},{});a["class-name"].forEach(function(s){s.inside=o})})(t)}return aZ}var oZ,M4e;function fNn(){if(M4e)return oZ;M4e=1,oZ=e,e.displayName="pcaxis",e.aliases=["px"];function e(t){t.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},t.languages.px=t.languages.pcaxis}return oZ}var sZ,D4e;function pNn(){if(D4e)return sZ;D4e=1,sZ=e,e.displayName="peoplecode",e.aliases=["pcode"];function e(t){t.languages.peoplecode={comment:RegExp([/\/\*[\s\S]*?\*\//.source,/\bREM[^;]*;/.source,/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,/\/\+[\s\S]*?\+\//.source].join("|")),string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},variable:/%\w+/,"function-definition":{pattern:/((?:^|[^\w-])(?:function|method)\s+)\w+/i,lookbehind:!0,alias:"function"},"class-name":{pattern:/((?:^|[^-\w])(?:as|catch|class|component|create|extends|global|implements|instance|local|of|property|returns)\s+)\w+(?::\w+)*/i,lookbehind:!0,inside:{punctuation:/:/}},keyword:/\b(?:abstract|alias|as|catch|class|component|constant|create|declare|else|end-(?:class|evaluate|for|function|get|if|method|set|try|while)|evaluate|extends|for|function|get|global|if|implements|import|instance|library|local|method|null|of|out|peopleCode|private|program|property|protected|readonly|ref|repeat|returns?|set|step|then|throw|to|try|until|value|when(?:-other)?|while)\b/i,"operator-keyword":{pattern:/\b(?:and|not|or)\b/i,alias:"operator"},function:/[_a-z]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/\b\d+(?:\.\d+)?\b/,operator:/<>|[<>]=?|!=|\*\*|[-+*/|=@]/,punctuation:/[:.;,()[\]]/},t.languages.pcode=t.languages.peoplecode}return sZ}var lZ,$4e;function hNn(){if($4e)return lZ;$4e=1,lZ=e,e.displayName="perl",e.aliases=[];function e(t){(function(n){var r=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;n.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,r].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,r].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,r+/\s*/.source+r].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(t)}return lZ}var cZ,F4e;function mNn(){if(F4e)return cZ;F4e=1;var e=yU();cZ=t,t.displayName="phpExtras",t.aliases=[];function t(n){n.register(e),n.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}return cZ}var uZ,B4e;function gNn(){if(B4e)return uZ;B4e=1;var e=yU(),t=vU();uZ=n,n.displayName="phpdoc",n.aliases=[];function n(r){r.register(e),r.register(t),function(i){var a=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;i.languages.phpdoc=i.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+a+"\\s+)?)\\$\\w+"),lookbehind:!0}}),i.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+a),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),i.languages.javadoclike.addSupport("php",i.languages.phpdoc)}(r)}return uZ}var dZ,j4e;function vNn(){if(j4e)return dZ;j4e=1;var e=bhe();dZ=t,t.displayName="plsql",t.aliases=[];function t(n){n.register(e),n.languages.plsql=n.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),n.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}return dZ}var fZ,z4e;function yNn(){if(z4e)return fZ;z4e=1,fZ=e,e.displayName="powerquery",e.aliases=[];function e(t){t.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},t.languages.pq=t.languages.powerquery,t.languages.mscript=t.languages.powerquery}return fZ}var pZ,U4e;function bNn(){if(U4e)return pZ;U4e=1,pZ=e,e.displayName="powershell",e.aliases=[];function e(t){(function(n){var r=n.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};r.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:r},boolean:r.boolean,variable:r.variable}})(t)}return pZ}var hZ,H4e;function _Nn(){if(H4e)return hZ;H4e=1,hZ=e,e.displayName="processing",e.aliases=[];function e(t){t.languages.processing=t.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),t.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}return hZ}var mZ,V4e;function SNn(){if(V4e)return mZ;V4e=1,mZ=e,e.displayName="prolog",e.aliases=[];function e(t){t.languages.prolog={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1(?!\1)/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+(?:\.\d*)?/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/}}return mZ}var gZ,G4e;function ENn(){if(G4e)return gZ;G4e=1,gZ=e,e.displayName="promql",e.aliases=[];function e(t){(function(n){var r=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],i=["on","ignoring","group_right","group_left","by","without"],a=["offset"],o=r.concat(i,a);n.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+i.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+o.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(t)}return gZ}var vZ,q4e;function CNn(){if(q4e)return vZ;q4e=1,vZ=e,e.displayName="properties",e.aliases=[];function e(t){t.languages.properties={comment:/^[ \t]*[#!].*$/m,"attr-value":{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0},"attr-name":/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,punctuation:/[=:]/}}return vZ}var yZ,W4e;function wNn(){if(W4e)return yZ;W4e=1,yZ=e,e.displayName="protobuf",e.aliases=[];function e(t){(function(n){var r=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;n.languages.protobuf=n.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),n.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:r}},builtin:r,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})})(t)}return yZ}var bZ,Y4e;function xNn(){if(Y4e)return bZ;Y4e=1,bZ=e,e.displayName="psl",e.aliases=[];function e(t){t.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}return bZ}var _Z,K4e;function TNn(){if(K4e)return _Z;K4e=1,_Z=e,e.displayName="pug",e.aliases=[];function e(t){(function(n){n.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:n.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:n.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:n.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:n.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:n.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:n.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:n.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:n.languages.javascript}],punctuation:/[.\-!=|]+/};for(var r=/(^([\t ]*)):<filter_name>(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,i=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],a={},o=0,s=i.length;o<s;o++){var l=i[o];l=typeof l=="string"?{filter:l,language:l}:l,n.languages[l.language]&&(a["filter-"+l.filter]={pattern:RegExp(r.replace("<filter_name>",function(){return l.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[l.language,"language-"+l.language],inside:n.languages[l.language]}}})}n.languages.insertBefore("pug","filter",a)})(t)}return _Z}var SZ,X4e;function INn(){if(X4e)return SZ;X4e=1,SZ=e,e.displayName="puppet",e.aliases=[];function e(t){(function(n){n.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var r=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:n.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];n.languages.puppet.heredoc[0].inside.interpolation=r,n.languages.puppet.string.inside["double-quoted"].inside.interpolation=r})(t)}return SZ}var EZ,Z4e;function ANn(){if(Z4e)return EZ;Z4e=1,EZ=e,e.displayName="pure",e.aliases=[];function e(t){(function(n){n.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var r=["c",{lang:"c++",alias:"cpp"},"fortran"],i=/%< *-\*- *<lang>\d* *-\*-[\s\S]+?%>/.source;r.forEach(function(a){var o=a;if(typeof a!="string"&&(o=a.alias,a=a.lang),n.languages[o]){var s={};s["inline-lang-"+o]={pattern:RegExp(i.replace("<lang>",a.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:n.util.clone(n.languages.pure["inline-lang"].inside)},s["inline-lang-"+o].inside.rest=n.util.clone(n.languages[o]),n.languages.insertBefore("pure","inline-lang",s)}}),n.languages.c&&(n.languages.pure["inline-lang"].inside.rest=n.util.clone(n.languages.c))})(t)}return EZ}var CZ,Q4e;function RNn(){if(Q4e)return CZ;Q4e=1,CZ=e,e.displayName="purebasic",e.aliases=[];function e(t){t.languages.purebasic=t.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+|-[>-]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|?\||[~^%?*/@]/}),t.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete t.languages.purebasic["class-name"],delete t.languages.purebasic.boolean,t.languages.pbfasm=t.languages.purebasic}return CZ}var wZ,J4e;function NNn(){if(J4e)return wZ;J4e=1;var e=She();wZ=t,t.displayName="purescript",t.aliases=["purs"];function t(n){n.register(e),n.languages.purescript=n.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[n.languages.haskell.operator[0],n.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),n.languages.purs=n.languages.purescript}return wZ}var xZ,eIe;function ONn(){if(eIe)return xZ;eIe=1,xZ=e,e.displayName="python",e.aliases=["py"];function e(t){t.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},t.languages.python["string-interpolation"].inside.interpolation.inside.rest=t.languages.python,t.languages.py=t.languages.python}return xZ}var TZ,tIe;function LNn(){if(tIe)return TZ;tIe=1,TZ=e,e.displayName="q",e.aliases=[];function e(t){t.languages.q={string:/"(?:\\.|[^"\\\r\n])*"/,comment:[{pattern:/([\t )\]}])\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r(?!\n)))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/,lookbehind:!0,greedy:!0},{pattern:/^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m,greedy:!0},{pattern:/^#!.+/m,greedy:!0}],symbol:/`(?::\S+|[\w.]*)/,datetime:{pattern:/0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/,alias:"number"},number:/\b(?![01]:)(?:0N[hje]?|0W[hj]?|0[wn]|0x[\da-fA-F]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?[hjfeb]?)/,keyword:/\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/,adverb:{pattern:/['\/\\]:?|\beach\b/,alias:"function"},verb:{pattern:/(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?~=|$&#@^]):?|\b_\b:?/,alias:"operator"},punctuation:/[(){}\[\];.]/}}return TZ}var IZ,nIe;function PNn(){if(nIe)return IZ;nIe=1,IZ=e,e.displayName="qml",e.aliases=[];function e(t){(function(n){for(var r=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,i=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,a=/(?:[^\\()[\]{}"'/]|<string>|\/(?![*/])|<comment>|\(<expr>*\)|\[<expr>*\]|\{<expr>*\}|\\[\s\S])/.source.replace(/<string>/g,function(){return r}).replace(/<comment>/g,function(){return i}),o=0;o<2;o++)a=a.replace(/<expr>/g,function(){return a});a=a.replace(/<expr>/g,"[^\\s\\S]"),n.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(<js>*\)\s*\{<js>*\}/.source.replace(/<js>/g,function(){return a}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:n.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}])<js>)+/.source.replace(/<js>/g,function(){return a}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:n.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}})(t)}return IZ}var AZ,rIe;function kNn(){if(rIe)return AZ;rIe=1,AZ=e,e.displayName="qore",e.aliases=[];function e(t){t.languages.qore=t.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}return AZ}var RZ,iIe;function MNn(){if(iIe)return RZ;iIe=1,RZ=e,e.displayName="qsharp",e.aliases=["qs"];function e(t){(function(n){function r(h,m){return h.replace(/<<(\d+)>>/g,function(g,v){return"(?:"+m[+v]+")"})}function i(h,m,g){return RegExp(r(h,m),"")}function a(h,m){for(var g=0;g<m;g++)h=h.replace(/<<self>>/g,function(){return"(?:"+h+")"});return h.replace(/<<self>>/g,"[^\\s\\S]")}var o={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function s(h){return"\\b(?:"+h.trim().replace(/ /g,"|")+")\\b"}var l=RegExp(s(o.type+" "+o.other)),c=/\b[A-Za-z_]\w*\b/.source,u=r(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[c]),d={keyword:l,punctuation:/[<>()?,.:[\]]/},f=/"(?:\\.|[^\\"])*"/.source;n.languages.qsharp=n.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:i(/(^|[^$\\])<<0>>/.source,[f]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:i(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[u]),lookbehind:!0,inside:d},{pattern:i(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[u]),lookbehind:!0,inside:d}],keyword:l,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),n.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var p=a(r(/\{(?:[^"{}]|<<0>>|<<self>>)*\}/.source,[f]),2);n.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:i(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[p]),greedy:!0,inside:{interpolation:{pattern:i(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[p]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:n.languages.qsharp}}},string:/[\s\S]+/}}})})(t),t.languages.qs=t.languages.qsharp}return RZ}var NZ,aIe;function DNn(){if(aIe)return NZ;aIe=1,NZ=e,e.displayName="r",e.aliases=[];function e(t){t.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|<?-)?|[>=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}return NZ}var OZ,oIe;function $Nn(){if(oIe)return OZ;oIe=1;var e=xhe();OZ=t,t.displayName="racket",t.aliases=["rkt"];function t(n){n.register(e),n.languages.racket=n.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),n.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),n.languages.rkt=n.languages.racket}return OZ}var LZ,sIe;function FNn(){if(sIe)return LZ;sIe=1,LZ=e,e.displayName="reason",e.aliases=[];function e(t){t.languages.reason=t.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),t.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete t.languages.reason.function}return LZ}var PZ,lIe;function BNn(){if(lIe)return PZ;lIe=1,PZ=e,e.displayName="regex",e.aliases=[];function e(t){(function(n){var r={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},i=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,a={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},o={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},s="(?:[^\\\\-]|"+i.source+")",l=RegExp(s+"-"+s),c={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};n.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:l,inside:{escape:i,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":r,"char-set":o,escape:i}},"special-escape":r,"char-set":a,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":c}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:i,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":c}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}})(t)}return PZ}var kZ,cIe;function jNn(){if(cIe)return kZ;cIe=1,kZ=e,e.displayName="rego",e.aliases=[];function e(t){t.languages.rego={comment:/#.*/,property:{pattern:/(^|[^\\.])(?:"(?:\\.|[^\\"\r\n])*"|`[^`]*`|\b[a-z_]\w*\b)(?=\s*:(?!=))/i,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:as|default|else|import|not|null|package|set(?=\s*\()|some|with)\b/,boolean:/\b(?:false|true)\b/,function:{pattern:/\b[a-z_]\w*\b(?:\s*\.\s*\b[a-z_]\w*\b)*(?=\s*\()/i,inside:{namespace:/\b\w+\b(?=\s*\.)/,punctuation:/\./}},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,operator:/[-+*/%|&]|[<>:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}return kZ}var MZ,uIe;function zNn(){if(uIe)return MZ;uIe=1,MZ=e,e.displayName="renpy",e.aliases=["rpy"];function e(t){t.languages.renpy={comment:{pattern:/(^|[^\\])#.+/,lookbehind:!0},string:{pattern:/("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\])*\2|(?:^#?(?:(?:[0-9a-fA-F]){3}|[0-9a-fA-F]{6})$)/m,greedy:!0},function:/\b[a-z_]\w*(?=\()/i,property:/\b(?:Update|UpdateVersion|action|activate_sound|adv_nvl_transition|after_load_transition|align|alpha|alt|anchor|antialias|area|auto|background|bar_invert|bar_resizing|bar_vertical|black_color|bold|bottom_bar|bottom_gutter|bottom_margin|bottom_padding|box_reverse|box_wrap|can_update|caret|child|color|crop|default_afm_enable|default_afm_time|default_fullscreen|default_text_cps|developer|directory_name|drag_handle|drag_joined|drag_name|drag_raise|draggable|dragged|drop_shadow|drop_shadow_color|droppable|dropped|easein|easeout|edgescroll|end_game_transition|end_splash_transition|enter_replay_transition|enter_sound|enter_transition|enter_yesno_transition|executable_name|exit_replay_transition|exit_sound|exit_transition|exit_yesno_transition|fadein|fadeout|first_indent|first_spacing|fit_first|focus|focus_mask|font|foreground|game_main_transition|get_installed_packages|google_play_key|google_play_salt|ground|has_music|has_sound|has_voice|height|help|hinting|hover|hover_background|hover_color|hover_sound|hovered|hyperlink_functions|idle|idle_color|image_style|include_update|insensitive|insensitive_background|insensitive_color|inside|intra_transition|italic|justify|kerning|keyboard_focus|language|layer_clipping|layers|layout|left_bar|left_gutter|left_margin|left_padding|length|line_leading|line_overlap_split|line_spacing|linear|main_game_transition|main_menu_music|maximum|min_width|minimum|minwidth|modal|mouse|mousewheel|name|narrator_menu|newline_indent|nvl_adv_transition|offset|order_reverse|outlines|overlay_functions|pos|position|prefix|radius|range|rest_indent|right_bar|right_gutter|right_margin|right_padding|rotate|rotate_pad|ruby_style|sample_sound|save_directory|say_attribute_transition|screen_height|screen_width|scrollbars|selected_hover|selected_hover_color|selected_idle|selected_idle_color|selected_insensitive|show_side_image|show_two_window|side_spacing|side_xpos|side_ypos|size|size_group|slow_cps|slow_cps_multiplier|spacing|strikethrough|subpixel|text_align|text_style|text_xpos|text_y_fudge|text_ypos|thumb|thumb_offset|thumb_shadow|thumbnail_height|thumbnail_width|time|top_bar|top_gutter|top_margin|top_padding|translations|underline|unscrollable|update|value|version|version_name|version_tuple|vertical|width|window_hide_transition|window_icon|window_left_padding|window_show_transition|window_title|windows_icon|xadjustment|xalign|xanchor|xanchoraround|xaround|xcenter|xfill|xinitial|xmargin|xmaximum|xminimum|xoffset|xofsset|xpadding|xpos|xsize|xzoom|yadjustment|yalign|yanchor|yanchoraround|yaround|ycenter|yfill|yinitial|ymargin|ymaximum|yminimum|yoffset|ypadding|ypos|ysize|ysizexysize|yzoom|zoom|zorder)\b/,tag:/\b(?:bar|block|button|buttoscreenn|drag|draggroup|fixed|frame|grid|[hv]box|hotbar|hotspot|image|imagebutton|imagemap|input|key|label|menu|mm_menu_frame|mousearea|nvl|parallel|screen|self|side|tag|text|textbutton|timer|vbar|viewport|window)\b|\$/,keyword:/\b(?:None|add|adjustment|alignaround|allow|angle|animation|around|as|assert|behind|box_layout|break|build|cache|call|center|changed|child_size|choice|circles|class|clear|clicked|clipping|clockwise|config|contains|continue|corner1|corner2|counterclockwise|def|default|define|del|delay|disabled|disabled_text|dissolve|elif|else|event|except|exclude|exec|expression|fade|finally|for|from|function|global|gm_root|has|hide|id|if|import|in|init|is|jump|knot|lambda|left|less_rounded|mm_root|movie|music|null|on|onlayer|pass|pause|persistent|play|print|python|queue|raise|random|renpy|repeat|return|right|rounded_window|scene|scope|set|show|slow|slow_abortable|slow_done|sound|stop|store|style|style_group|substitute|suffix|theme|transform|transform_anchor|transpose|try|ui|unhovered|updater|use|voice|while|widget|widget_hover|widget_selected|widget_text|yield)\b/,boolean:/\b(?:[Ff]alse|[Tt]rue)\b/,number:/(?:\b(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?)|\B\.\d+)(?:e[+-]?\d+)?j?/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:and|at|not|or|with)\b/,punctuation:/[{}[\];(),.:]/},t.languages.rpy=t.languages.renpy}return MZ}var DZ,dIe;function UNn(){if(dIe)return DZ;dIe=1,DZ=e,e.displayName="rest",e.aliases=[];function e(t){t.languages.rest={table:[{pattern:/(^[\t ]*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1[+|].+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/m,lookbehind:!0,inside:{punctuation:/\||(?:\+[=-]+)+\+/}},{pattern:/(^[\t ]*)=+ [ =]*=(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1=+ [ =]*=(?=(?:\r?\n|\r){2}|\s*$)/m,lookbehind:!0,inside:{punctuation:/[=-]+/}}],"substitution-def":{pattern:/(^[\t ]*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,lookbehind:!0,inside:{substitution:{pattern:/^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,alias:"attr-value",inside:{punctuation:/^\||\|$/}},directive:{pattern:/( )(?! )[^:]+::/,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}}}},"link-target":[{pattern:/(^[\t ]*\.\. )\[[^\]]+\]/m,lookbehind:!0,alias:"string",inside:{punctuation:/^\[|\]$/}},{pattern:/(^[\t ]*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,lookbehind:!0,alias:"string",inside:{punctuation:/^_|:$/}}],directive:{pattern:/(^[\t ]*\.\. )[^:]+::/m,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}},comment:{pattern:/(^[\t ]*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,lookbehind:!0},title:[{pattern:/^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,inside:{punctuation:/^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}},{pattern:/(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,lookbehind:!0,inside:{punctuation:/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}}],hr:{pattern:/((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,lookbehind:!0,alias:"punctuation"},field:{pattern:/(^[\t ]*):[^:\r\n]+:(?= )/m,lookbehind:!0,alias:"attr-name"},"command-line-option":{pattern:/(^[\t ]*)(?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,lookbehind:!0,alias:"symbol"},"literal-block":{pattern:/::(?:\r?\n|\r){2}([ \t]+)(?![ \t]).+(?:(?:\r?\n|\r)\1.+)*/,inside:{"literal-block-punctuation":{pattern:/^::/,alias:"punctuation"}}},"quoted-literal-block":{pattern:/::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,inside:{"literal-block-punctuation":{pattern:/^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,alias:"punctuation"}}},"list-bullet":{pattern:/(^[\t ]*)(?:[*+\-•‣⁃]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,lookbehind:!0,alias:"punctuation"},"doctest-block":{pattern:/(^[\t ]*)>>> .+(?:(?:\r?\n|\r).+)*/m,lookbehind:!0,inside:{punctuation:/^>>>/}},inline:[{pattern:/(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s)(?:(?!\2).)*\S\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,lookbehind:!0,inside:{bold:{pattern:/(^\*\*).+(?=\*\*$)/,lookbehind:!0},italic:{pattern:/(^\*).+(?=\*$)/,lookbehind:!0},"inline-literal":{pattern:/(^``).+(?=``$)/,lookbehind:!0,alias:"symbol"},role:{pattern:/^:[^:]+:|:[^:]+:$/,alias:"function",inside:{punctuation:/^:|:$/}},"interpreted-text":{pattern:/(^`).+(?=`$)/,lookbehind:!0,alias:"attr-value"},substitution:{pattern:/(^\|).+(?=\|$)/,lookbehind:!0,alias:"attr-value"},punctuation:/\*\*?|``?|\|/}}],link:[{pattern:/\[[^\[\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,alias:"string",inside:{punctuation:/^\[|\]_$/}},{pattern:/(?:\b[a-z\d]+(?:[_.:+][a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,alias:"string",inside:{punctuation:/^_?`|`$|`?_?_$/}}],punctuation:{pattern:/(^[\t ]*)(?:\|(?= |$)|(?:---?|—|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}}}return DZ}var $Z,fIe;function HNn(){if(fIe)return $Z;fIe=1,$Z=e,e.displayName="rip",e.aliases=[];function e(t){t.languages.rip={comment:{pattern:/#.*/,greedy:!0},char:{pattern:/\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},regex:{pattern:/(^|[^/])\/(?!\/)(?:\[[^\n\r\]]*\]|\\.|[^/\\\r\n\[])+\/(?=\s*(?:$|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},keyword:/(?:=>|->)|\b(?:case|catch|class|else|exit|finally|if|raise|return|switch|try)\b/,builtin:/@|\bSystem\b/,boolean:/\b(?:false|true)\b/,date:/\b\d{4}-\d{2}-\d{2}\b/,time:/\b\d{2}:\d{2}:\d{2}\b/,datetime:/\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,symbol:/:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,number:/[+-]?\b(?:\d+\.\d+|\d+)\b/,punctuation:/(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,reference:/[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/}}return $Z}var FZ,pIe;function VNn(){if(pIe)return FZ;pIe=1,FZ=e,e.displayName="roboconf",e.aliases=[];function e(t){t.languages.roboconf={comment:/#.*/,keyword:{pattern:/(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,lookbehind:!0},component:{pattern:/[\w-]+(?=[ \t]*\{)/,alias:"variable"},property:/[\w.-]+(?=[ \t]*:)/,value:{pattern:/(=[ \t]*(?![ \t]))[^,;]+/,lookbehind:!0,alias:"attr-value"},optional:{pattern:/\(optional\)/,alias:"builtin"},wildcard:{pattern:/(\.)\*/,lookbehind:!0,alias:"operator"},punctuation:/[{},.;:=]/}}return FZ}var BZ,hIe;function GNn(){if(hIe)return BZ;hIe=1,BZ=e,e.displayName="robotframework",e.aliases=[];function e(t){(function(n){var r={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},i={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function a(c,u){var d={};d["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var f in u)d[f]=u[f];return d.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},d.variable=i,d.comment=r,{pattern:RegExp(/^ ?\*{3}[ \t]*<name>[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(/<name>/g,function(){return c}),"im"),alias:"section",inside:d}}var o={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},s={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:i}},l={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:i}};n.languages.robotframework={settings:a("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:a("Variables"),"test-cases":a("Test Cases",{"test-name":s,documentation:o,property:l}),keywords:a("Keywords",{"keyword-name":s,documentation:o,property:l}),tasks:a("Tasks",{"task-name":s,documentation:o,property:l}),comment:r},n.languages.robot=n.languages.robotframework})(t)}return BZ}var jZ,mIe;function qNn(){if(mIe)return jZ;mIe=1,jZ=e,e.displayName="rust",e.aliases=[];function e(t){(function(n){for(var r=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,i=0;i<2;i++)r=r.replace(/<self>/g,function(){return r});r=r.replace(/<self>/g,function(){return/[^\s\S]/.source}),n.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+r),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},n.languages.rust["closure-params"].inside.rest=n.languages.rust,n.languages.rust.attribute.inside.string=n.languages.rust.string})(t)}return jZ}var zZ,gIe;function WNn(){if(gIe)return zZ;gIe=1,zZ=e,e.displayName="sas",e.aliases=[];function e(t){(function(n){var r=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,i=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,a={pattern:RegExp(r+"[bx]"),alias:"number"},o={pattern:/&[a-z_]\w*/i},s={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},l={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},c=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],u={pattern:RegExp(r),greedy:!0},d=/[$%@.(){}\[\];,\\]/,f={pattern:/%?\b\w+(?=\()/,alias:"keyword"},p={function:f,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":o,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:i,"numeric-constant":a,punctuation:d,string:u},h={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},m={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},g={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},v={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},y=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,_={pattern:RegExp(/(^|\s)(?:action\s+)?(?:<act>)\.[a-z]+\b[^;]+/.source.replace(/<act>/g,function(){return y}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:<act>)\.[a-z]+\b/.source.replace(/<act>/g,function(){return y}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:c,function:f,"arg-value":p["arg-value"],operator:p.operator,argument:p.arg,number:i,"numeric-constant":a,punctuation:d,string:u}},S={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};n.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:<str>|[^;"'])+;/.source.replace(/<str>/g,function(){return r}),"im"),alias:"language-sql",inside:n.languages.sql},"global-statements":g,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:i,"numeric-constant":a,punctuation:d,string:u}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:c,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return r}),"im"),lookbehind:!0,alias:"language-groovy",inside:n.languages.groovy},keyword:S,"submit-statement":v,"global-statements":g,number:i,"numeric-constant":a,punctuation:d,string:u}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:c,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return r}),"im"),lookbehind:!0,alias:"language-lua",inside:n.languages.lua},keyword:S,"submit-statement":v,"global-statements":g,number:i,"numeric-constant":a,punctuation:d,string:u}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:c,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:p}},"cas-actions":_,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:p},step:l,keyword:S,function:f,format:h,altformat:m,"global-statements":g,number:i,"numeric-constant":a,punctuation:d,string:u}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|<str>)+;/.source.replace(/<str>/g,function(){return r}),"im"),lookbehind:!0,inside:p},"macro-keyword":s,"macro-variable":o,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":s,"macro-variable":o,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:d}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:c,number:i,"numeric-constant":a}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:p},"cas-actions":_,comment:c,function:f,format:h,altformat:m,"numeric-constant":a,datetime:{pattern:RegExp(r+"(?:dt?|t)"),alias:"number"},string:u,step:l,keyword:S,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:i,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:d}})(t)}return zZ}var UZ,vIe;function YNn(){if(vIe)return UZ;vIe=1,UZ=e,e.displayName="sass",e.aliases=[];function e(t){(function(n){n.languages.sass=n.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),n.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete n.languages.sass.atrule;var r=/\$[-\w]+|#\{\$[-\w]+\}/,i=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];n.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:r,operator:i}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:r,operator:i,important:n.languages.sass.important}}}),delete n.languages.sass.property,delete n.languages.sass.important,n.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})})(t)}return UZ}var HZ,yIe;function KNn(){if(yIe)return HZ;yIe=1;var e=Ehe();HZ=t,t.displayName="scala",t.aliases=[];function t(n){n.register(e),n.languages.scala=n.languages.extend("java",{"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/<-|=>|\b(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|null|object|override|package|private|protected|return|sealed|self|super|this|throw|trait|try|type|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),n.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:n.languages.scala}}},string:/[\s\S]+/}}}),delete n.languages.scala["class-name"],delete n.languages.scala.function}return HZ}var VZ,bIe;function XNn(){if(bIe)return VZ;bIe=1,VZ=e,e.displayName="scss",e.aliases=[];function e(t){t.languages.scss=t.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),t.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),t.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),t.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),t.languages.scss.atrule.inside.rest=t.languages.scss}return VZ}var GZ,_Ie;function ZNn(){if(_Ie)return GZ;_Ie=1;var e=qJe();GZ=t,t.displayName="shellSession",t.aliases=[];function t(n){n.register(e),function(r){var i=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");r.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+(/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source)+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<<str>>)+/.source.replace(/<<str>>/g,function(){return i}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:r.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},r.languages["sh-session"]=r.languages.shellsession=r.languages["shell-session"]}(n)}return GZ}var qZ,SIe;function QNn(){if(SIe)return qZ;SIe=1,qZ=e,e.displayName="smali",e.aliases=[];function e(t){t.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/}}return qZ}var WZ,EIe;function JNn(){if(EIe)return WZ;EIe=1,WZ=e,e.displayName="smalltalk",e.aliases=[];function e(t){t.languages.smalltalk={comment:{pattern:/"(?:""|[^"])*"/,greedy:!0},char:{pattern:/\$./,greedy:!0},string:{pattern:/'(?:''|[^'])*'/,greedy:!0},symbol:/#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,"block-arguments":{pattern:/(\[\s*):[^\[|]*\|/,lookbehind:!0,inside:{variable:/:[\da-z]+/i,punctuation:/\|/}},"temporary-variables":{pattern:/\|[^|]+\|/,inside:{variable:/[\da-z]+/i,punctuation:/\|/}},keyword:/\b(?:new|nil|self|super)\b/,boolean:/\b(?:false|true)\b/,number:[/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,/\b\d+(?:\.\d+)?(?:e-?\d+)?/],operator:/[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,punctuation:/[.;:?\[\](){}]/}}return WZ}var YZ,CIe;function e6n(){if(CIe)return YZ;CIe=1;var e=jd();YZ=t,t.displayName="smarty",t.aliases=[];function t(n){n.register(e),function(r){r.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:r.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},r.languages.smarty["embedded-php"].inside.smarty.inside=r.languages.smarty,r.languages.smarty.string[0].inside.interpolation.inside.expression.inside=r.languages.smarty;var i=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,a=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>)*\})*\})*\}/.source.replace(/<str>/g,function(){return i.source}),"g");r.hooks.add("before-tokenize",function(o){var s="{literal}",l="{/literal}",c=!1;r.languages["markup-templating"].buildPlaceholders(o,"smarty",a,function(u){return u===l&&(c=!1),c?!1:(u===s&&(c=!0),!0)})}),r.hooks.add("after-tokenize",function(o){r.languages["markup-templating"].tokenizePlaceholders(o,"smarty")})}(n)}return YZ}var KZ,wIe;function t6n(){if(wIe)return KZ;wIe=1,KZ=e,e.displayName="sml",e.aliases=["smlnj"];function e(t){(function(n){var r=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i;n.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)<TERMINAL>(?:\s*(?:(?:\*|->)\s*<TERMINAL>|,\s*<TERMINAL>(?:(?=<NOT-LAST>)|(?!<NOT-LAST>)\s+<LONG-ID>)))*/.source.replace(/<NOT-LAST>/g,function(){return/\s*(?:[*,]|->)/.source}).replace(/<TERMINAL>/g,function(){return/(?:'[\w']*|<LONG-ID>|\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+<LONG-ID>)*/.source}).replace(/<LONG-ID>/g,function(){return/(?!<KEYWORD>)[a-z\d_][\w'.]*/.source}).replace(/<KEYWORD>/g,function(){return r.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:r,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},n.languages.sml["class-name"][0].inside=n.languages.sml,n.languages.smlnj=n.languages.sml})(t)}return KZ}var XZ,xIe;function n6n(){if(xIe)return XZ;xIe=1,XZ=e,e.displayName="solidity",e.aliases=["sol"];function e(t){t.languages.solidity=t.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),t.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),t.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),t.languages.sol=t.languages.solidity}return XZ}var ZZ,TIe;function r6n(){if(TIe)return ZZ;TIe=1,ZZ=e,e.displayName="solutionFile",e.aliases=[];function e(t){(function(n){var r={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};n.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:r}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:r}},guid:r,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},n.languages.sln=n.languages["solution-file"]})(t)}return ZZ}var QZ,IIe;function i6n(){if(IIe)return QZ;IIe=1;var e=jd();QZ=t,t.displayName="soy",t.aliases=[];function t(n){n.register(e),function(r){var i=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,a=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;r.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:i,greedy:!0},number:a,punctuation:/[\[\].?]/}},string:{pattern:i,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:a,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},r.hooks.add("before-tokenize",function(o){var s=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,l="{literal}",c="{/literal}",u=!1;r.languages["markup-templating"].buildPlaceholders(o,"soy",s,function(d){return d===c&&(u=!1),u?!1:(d===l&&(u=!0),!0)})}),r.hooks.add("after-tokenize",function(o){r.languages["markup-templating"].tokenizePlaceholders(o,"soy")})}(n)}return QZ}var JZ,AIe;function XJe(){if(AIe)return JZ;AIe=1,JZ=e,e.displayName="turtle",e.aliases=[];function e(t){t.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},t.languages.trig=t.languages.turtle}return JZ}var eQ,RIe;function a6n(){if(RIe)return eQ;RIe=1;var e=XJe();eQ=t,t.displayName="sparql",t.aliases=["rq"];function t(n){n.register(e),n.languages.sparql=n.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),n.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),n.languages.rq=n.languages.sparql}return eQ}var tQ,NIe;function o6n(){if(NIe)return tQ;NIe=1,tQ=e,e.displayName="splunkSpl",e.aliases=[];function e(t){t.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/}}return tQ}var nQ,OIe;function s6n(){if(OIe)return nQ;OIe=1,nQ=e,e.displayName="sqf",e.aliases=[];function e(t){t.languages.sqf=t.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),t.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:t.languages.sqf.comment}}}),delete t.languages.sqf["class-name"]}return nQ}var rQ,LIe;function l6n(){if(LIe)return rQ;LIe=1,rQ=e,e.displayName="squirrel",e.aliases=[];function e(t){t.languages.squirrel=t.languages.extend("clike",{comment:[t.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),t.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),t.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}return rQ}var iQ,PIe;function c6n(){if(PIe)return iQ;PIe=1,iQ=e,e.displayName="stan",e.aliases=[];function e(t){(function(n){var r=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/;n.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+r.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,r],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},n.languages.stan.constraint.inside.expression.inside=n.languages.stan})(t)}return iQ}var aQ,kIe;function u6n(){if(kIe)return aQ;kIe=1,aQ=e,e.displayName="stylus",e.aliases=[];function e(t){(function(n){var r={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},i={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},a={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:r,number:i,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:r,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:i,punctuation:/[{}()\[\];:,]/};a.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:a}},a.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:a}},n.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:a}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:a}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:a}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:a.interpolation}},rest:a}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:a.interpolation,comment:a.comment,punctuation:/[{},]/}},func:a.func,string:a.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:a.interpolation,punctuation:/[{}()\[\];:.]/}})(t)}return aQ}var oQ,MIe;function d6n(){if(MIe)return oQ;MIe=1,oQ=e,e.displayName="swift",e.aliases=[];function e(t){t.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ 	]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},t.languages.swift["string-literal"].forEach(function(n){n.inside.interpolation.inside=t.languages.swift})}return oQ}var sQ,DIe;function f6n(){if(DIe)return sQ;DIe=1,sQ=e,e.displayName="systemd",e.aliases=[];function e(t){(function(n){var r={pattern:/^[;#].*/m,greedy:!0},i=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;n.languages.systemd={comment:r,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+i+`|(?=[^"\r
]))(?:`+(/[^\s\\]/.source+'|[ 	]+(?:(?![ 	"])|'+i+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:r,quoted:{pattern:RegExp(/(^|\s)/.source+i),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(t)}return sQ}var lQ,$Ie;function The(){if($Ie)return lQ;$Ie=1,lQ=e,e.displayName="t4Templating",e.aliases=[];function e(t){(function(n){function r(a,o,s){return{pattern:RegExp("<#"+a+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+a+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:o,alias:s}}}}function i(a){var o=n.languages[a],s="language-"+a;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:r("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:r("=",o,s),"class-feature":r("\\+",o,s),standard:r("",o,s)}}}}n.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:i})})(t)}return lQ}var cQ,FIe;function p6n(){if(FIe)return cQ;FIe=1;var e=The(),t=mU();cQ=n,n.displayName="t4Cs",n.aliases=[];function n(r){r.register(e),r.register(t),r.languages.t4=r.languages["t4-cs"]=r.languages["t4-templating"].createT4("csharp")}return cQ}var uQ,BIe;function ZJe(){if(BIe)return uQ;BIe=1;var e=WJe();uQ=t,t.displayName="vbnet",t.aliases=[];function t(n){n.register(e),n.languages.vbnet=n.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}return uQ}var dQ,jIe;function h6n(){if(jIe)return dQ;jIe=1;var e=The(),t=ZJe();dQ=n,n.displayName="t4Vb",n.aliases=[];function n(r){r.register(e),r.register(t),r.languages["t4-vb"]=r.languages["t4-templating"].createT4("vbnet")}return dQ}var fQ,zIe;function QJe(){if(zIe)return fQ;zIe=1,fQ=e,e.displayName="yaml",e.aliases=["yml"];function e(t){(function(n){var r=/[*&][^\s[\]{},]+/,i=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,a="(?:"+i.source+"(?:[ 	]+"+r.source+")?|"+r.source+"(?:[ 	]+"+i.source+")?)",o=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),s=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function l(c,u){u=(u||"").replace(/m/g,"")+"m";var d=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return a}).replace(/<<value>>/g,function(){return c});return RegExp(d,u)}n.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return a})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return a}).replace(/<<key>>/g,function(){return"(?:"+o+"|"+s+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:l(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:l(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:l(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:l(s),lookbehind:!0,greedy:!0},number:{pattern:l(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:i,important:r,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},n.languages.yml=n.languages.yaml})(t)}return fQ}var pQ,UIe;function m6n(){if(UIe)return pQ;UIe=1;var e=QJe();pQ=t,t.displayName="tap",t.aliases=[];function t(n){n.register(e),n.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:n.languages.yaml,alias:"language-yaml"}}}return pQ}var hQ,HIe;function g6n(){if(HIe)return hQ;HIe=1,hQ=e,e.displayName="tcl",e.aliases=[];function e(t){t.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}return hQ}var mQ,VIe;function v6n(){if(VIe)return mQ;VIe=1,mQ=e,e.displayName="textile",e.aliases=[];function e(t){(function(n){var r=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,i=/\)|\((?![^|()\n]+\))/.source;function a(f,p){return RegExp(f.replace(/<MOD>/g,function(){return"(?:"+r+")"}).replace(/<PAR>/g,function(){return"(?:"+i+")"}),p||"")}var o={css:{pattern:/\{[^{}]+\}/,inside:{rest:n.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},s=n.languages.textile=n.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:a(/^[a-z]\w*(?:<MOD>|<PAR>|[<>=])*\./.source),inside:{modifier:{pattern:a(/(^[a-z]\w*)(?:<MOD>|<PAR>|[<>=])+(?=\.)/.source),lookbehind:!0,inside:o},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:a(/^[*#]+<MOD>*\s+\S.*/.source,"m"),inside:{modifier:{pattern:a(/(^[*#]+)<MOD>+/.source),lookbehind:!0,inside:o},punctuation:/^[*#]+/}},table:{pattern:a(/^(?:(?:<MOD>|<PAR>|[<>=^~])+\.\s*)?(?:\|(?:(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.|(?!(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:a(/(^|\|(?:\r?\n|\r)?)(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:o},punctuation:/\||^\./}},inline:{pattern:a(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])<MOD>*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:a(/(^(\*\*?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:a(/(^(__?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:a(/(^\?\?<MOD>*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:a(/(^@<MOD>*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:a(/(^\+<MOD>*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:a(/(^-<MOD>*).+?(?=-)/.source),lookbehind:!0},span:{pattern:a(/(^%<MOD>*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:a(/(^\*\*|__|\?\?|[*_%@+\-^~])<MOD>+/.source),lookbehind:!0,inside:o},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:a(/"<MOD>*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:a(/(^"<MOD>*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:a(/(^")<MOD>+/.source),lookbehind:!0,inside:o},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:a(/!(?:<MOD>|<PAR>|[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:a(/(^!(?:<MOD>|<PAR>|[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:a(/(^!)(?:<MOD>|<PAR>|[<>=])+/.source),lookbehind:!0,inside:o},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),l=s.phrase.inside,c={inline:l.inline,link:l.link,image:l.image,footnote:l.footnote,acronym:l.acronym,mark:l.mark};s.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var u=l.inline.inside;u.bold.inside=c,u.italic.inside=c,u.inserted.inside=c,u.deleted.inside=c,u.span.inside=c;var d=l.table.inside;d.inline=c.inline,d.link=c.link,d.image=c.image,d.footnote=c.footnote,d.acronym=c.acronym,d.mark=c.mark})(t)}return mQ}var gQ,GIe;function y6n(){if(GIe)return gQ;GIe=1,gQ=e,e.displayName="toml",e.aliases=[];function e(t){(function(n){var r=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function i(a){return a.replace(/__/g,function(){return r})}n.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(i(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(i(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}})(t)}return gQ}var vQ,qIe;function b6n(){if(qIe)return vQ;qIe=1,vQ=e,e.displayName="tremor",e.aliases=[];function e(t){(function(n){n.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/};var r=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;n.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+r+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+r+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(r),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:n.languages.tremor}}},string:/[\s\S]+/}},n.languages.troy=n.languages.tremor,n.languages.trickle=n.languages.tremor})(t)}return vQ}var yQ,WIe;function _6n(){if(WIe)return yQ;WIe=1;var e=KJe(),t=Che();yQ=n,n.displayName="tsx",n.aliases=[];function n(r){r.register(e),r.register(t),function(i){var a=i.util.clone(i.languages.typescript);i.languages.tsx=i.languages.extend("jsx",a),delete i.languages.tsx.parameter,delete i.languages.tsx["literal-property"];var o=i.languages.tsx.tag;o.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+o.pattern.source+")",o.pattern.flags),o.lookbehind=!0}(r)}return yQ}var bQ,YIe;function S6n(){if(YIe)return bQ;YIe=1;var e=jd();bQ=t,t.displayName="tt2",t.aliases=[];function t(n){n.register(e),function(r){r.languages.tt2=r.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),r.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),r.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),r.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete r.languages.tt2.string,r.hooks.add("before-tokenize",function(i){var a=/\[%[\s\S]+?%\]/g;r.languages["markup-templating"].buildPlaceholders(i,"tt2",a)}),r.hooks.add("after-tokenize",function(i){r.languages["markup-templating"].tokenizePlaceholders(i,"tt2")})}(n)}return bQ}var _Q,KIe;function E6n(){if(KIe)return _Q;KIe=1;var e=jd();_Q=t,t.displayName="twig",t.aliases=[];function t(n){n.register(e),n.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},n.hooks.add("before-tokenize",function(r){if(r.language==="twig"){var i=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;n.languages["markup-templating"].buildPlaceholders(r,"twig",i)}}),n.hooks.add("after-tokenize",function(r){n.languages["markup-templating"].tokenizePlaceholders(r,"twig")})}return _Q}var SQ,XIe;function C6n(){if(XIe)return SQ;XIe=1,SQ=e,e.displayName="typoscript",e.aliases=["tsconfig"];function e(t){(function(n){var r=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;n.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern:/<INCLUDE_TYPOSCRIPT:\s*source\s*=\s*(?:"[^"\r\n]*"|'[^'\r\n]*')\s*>/,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:r}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:r,number:/^\d+$/,punctuation:/[,|:]/}},keyword:r,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},n.languages.tsconfig=n.languages.typoscript})(t)}return SQ}var EQ,ZIe;function w6n(){if(ZIe)return EQ;ZIe=1,EQ=e,e.displayName="unrealscript",e.aliases=["uc","uscript"];function e(t){t.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},t.languages.uc=t.languages.uscript=t.languages.unrealscript}return EQ}var CQ,QIe;function x6n(){if(QIe)return CQ;QIe=1,CQ=e,e.displayName="uorazor",e.aliases=[];function e(t){t.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}return CQ}var wQ,JIe;function T6n(){if(JIe)return wQ;JIe=1,wQ=e,e.displayName="uri",e.aliases=["url"];function e(t){t.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+("(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")")+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},t.languages.url=t.languages.uri}return wQ}var xQ,eAe;function I6n(){if(eAe)return xQ;eAe=1,xQ=e,e.displayName="v",e.aliases=[];function e(t){(function(n){var r={pattern:/[\s\S]+/,inside:null};n.languages.v=n.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":r}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),r.inside=n.languages.v,n.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),n.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),n.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:n.languages.v.generic.inside}}}})})(t)}return xQ}var TQ,tAe;function A6n(){if(tAe)return TQ;tAe=1,TQ=e,e.displayName="vala",e.aliases=[];function e(t){t.languages.vala=t.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),t.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:t.languages.vala}},string:/[\s\S]+/}}}),t.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}return TQ}var IQ,nAe;function R6n(){if(nAe)return IQ;nAe=1,IQ=e,e.displayName="velocity",e.aliases=[];function e(t){(function(n){n.languages.velocity=n.languages.extend("markup",{});var r={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};r.variable.inside={string:r.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:r.number,boolean:r.boolean,punctuation:r.punctuation},n.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:r}},variable:r.variable}),n.languages.velocity.tag.inside["attr-value"].inside.rest=n.languages.velocity})(t)}return IQ}var AQ,rAe;function N6n(){if(rAe)return AQ;rAe=1,AQ=e,e.displayName="verilog",e.aliases=[];function e(t){t.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}return AQ}var RQ,iAe;function O6n(){if(iAe)return RQ;iAe=1,RQ=e,e.displayName="vhdl",e.aliases=[];function e(t){t.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,constant:/\b(?:library|use)\b/i,keyword:/\b(?:'active|'ascending|'base|'delayed|'driving|'driving_value|'event|'high|'image|'instance_name|'last_active|'last_event|'last_value|'left|'leftof|'length|'low|'path_name|'pos|'pred|'quiet|'range|'reverse_range|'right|'rightof|'simple_name|'stable|'succ|'transaction|'val|'value|access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}return RQ}var NQ,aAe;function L6n(){if(aAe)return NQ;aAe=1,NQ=e,e.displayName="vim",e.aliases=[];function e(t){t.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}return NQ}var OQ,oAe;function P6n(){if(oAe)return OQ;oAe=1,OQ=e,e.displayName="visualBasic",e.aliases=[];function e(t){t.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},t.languages.vb=t.languages["visual-basic"],t.languages.vba=t.languages["visual-basic"]}return OQ}var LQ,sAe;function k6n(){if(sAe)return LQ;sAe=1,LQ=e,e.displayName="warpscript",e.aliases=[];function e(t){t.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}return LQ}var PQ,lAe;function M6n(){if(lAe)return PQ;lAe=1,PQ=e,e.displayName="wasm",e.aliases=[];function e(t){t.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/}}return PQ}var kQ,cAe;function D6n(){if(cAe)return kQ;cAe=1,kQ=e,e.displayName="webIdl",e.aliases=[];function e(t){(function(n){var r=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,i="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+r+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,a={};n.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+r),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:a},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+i),lookbehind:!0,inside:a},{pattern:RegExp("("+/\bcallback\s+/.source+r+/\s*=\s*/.source+")"+i),lookbehind:!0,inside:a},{pattern:RegExp(/(\btypedef\b\s*)/.source+i),lookbehind:!0,inside:a},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+r),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+r),lookbehind:!0},RegExp(r+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+r),lookbehind:!0},{pattern:RegExp(i+"(?="+/\s*(?:\.{3}\s*)?/.source+r+/\s*[(),;=]/.source+")"),inside:a}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var o in n.languages["web-idl"])o!=="class-name"&&(a[o]=n.languages["web-idl"][o]);n.languages.webidl=n.languages["web-idl"]})(t)}return kQ}var MQ,uAe;function $6n(){if(uAe)return MQ;uAe=1,MQ=e,e.displayName="wiki",e.aliases=[];function e(t){t.languages.wiki=t.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:t.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),t.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:t.languages.markup.tag.inside}}}})}return MQ}var DQ,dAe;function F6n(){if(dAe)return DQ;dAe=1,DQ=e,e.displayName="wolfram",e.aliases=["mathematica","wl","nb"];function e(t){t.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\^|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},t.languages.mathematica=t.languages.wolfram,t.languages.wl=t.languages.wolfram,t.languages.nb=t.languages.wolfram}return DQ}var $Q,fAe;function B6n(){if(fAe)return $Q;fAe=1,$Q=e,e.displayName="wren",e.aliases=[];function e(t){t.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},t.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:t.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}return $Q}var FQ,pAe;function j6n(){if(pAe)return FQ;pAe=1,FQ=e,e.displayName="xeora",e.aliases=["xeoracube"];function e(t){(function(n){n.languages.xeora=n.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),n.languages.insertBefore("inside","punctuation",{variable:n.languages.xeora["function-inline"].inside.variable},n.languages.xeora["function-block"]),n.languages.xeoracube=n.languages.xeora})(t)}return FQ}var BQ,hAe;function z6n(){if(hAe)return BQ;hAe=1,BQ=e,e.displayName="xmlDoc",e.aliases=[];function e(t){(function(n){function r(s,l){n.languages[s]&&n.languages.insertBefore(s,"comment",{"doc-comment":l})}var i=n.languages.markup.tag,a={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:i}},o={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:i}};r("csharp",a),r("fsharp",a),r("vbnet",o)})(t)}return BQ}var jQ,mAe;function U6n(){if(mAe)return jQ;mAe=1,jQ=e,e.displayName="xojo",e.aliases=[];function e(t){t.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}return jQ}var zQ,gAe;function H6n(){if(gAe)return zQ;gAe=1,zQ=e,e.displayName="xquery",e.aliases=[];function e(t){(function(n){n.languages.xquery=n.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),n.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,n.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,n.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,n.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:n.languages.xquery,alias:"language-xquery"};var r=function(a){return typeof a=="string"?a:typeof a.content=="string"?a.content:a.content.map(r).join("")},i=function(a){for(var o=[],s=0;s<a.length;s++){var l=a[s],c=!1;if(typeof l!="string"&&(l.type==="tag"&&l.content[0]&&l.content[0].type==="tag"?l.content[0].content[0].content==="</"?o.length>0&&o[o.length-1].tagName===r(l.content[0].content[1])&&o.pop():l.content[l.content.length-1].content==="/>"||o.push({tagName:r(l.content[0].content[1]),openedBraces:0}):o.length>0&&l.type==="punctuation"&&l.content==="{"&&(!a[s+1]||a[s+1].type!=="punctuation"||a[s+1].content!=="{")&&(!a[s-1]||a[s-1].type!=="plain-text"||a[s-1].content!=="{")?o[o.length-1].openedBraces++:o.length>0&&o[o.length-1].openedBraces>0&&l.type==="punctuation"&&l.content==="}"?o[o.length-1].openedBraces--:l.type!=="comment"&&(c=!0)),(c||typeof l=="string")&&o.length>0&&o[o.length-1].openedBraces===0){var u=r(l);s<a.length-1&&(typeof a[s+1]=="string"||a[s+1].type==="plain-text")&&(u+=r(a[s+1]),a.splice(s+1,1)),s>0&&(typeof a[s-1]=="string"||a[s-1].type==="plain-text")&&(u=r(a[s-1])+u,a.splice(s-1,1),s--),/^\s+$/.test(u)?a[s]=u:a[s]=new n.Token("plain-text",u,null,u)}l.content&&typeof l.content!="string"&&i(l.content)}};n.hooks.add("after-tokenize",function(a){a.language==="xquery"&&i(a.tokens)})})(t)}return zQ}var UQ,vAe;function V6n(){if(vAe)return UQ;vAe=1,UQ=e,e.displayName="yang",e.aliases=[];function e(t){t.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}return UQ}var HQ,yAe;function G6n(){if(yAe)return HQ;yAe=1,HQ=e,e.displayName="zig",e.aliases=[];function e(t){(function(n){function r(u){return function(){return u}}var i=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,a="\\b(?!"+i.source+")(?!\\d)\\w+\\b",o=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,s=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*<ALIGN>|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(/<ALIGN>/g,r(o)),l=/(?:\bpromise\b|(?:\berror\.)?<ID>(?:\.<ID>)*(?!\s+<ID>))/.source.replace(/<ID>/g,r(a)),c="(?!\\s)(?:!?\\s*(?:"+s+"\\s*)*"+l+")+";n.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?[=;,)])|<TYPE>(?=\s*(?:<ALIGN>\s*)?\{)/.source.replace(/<TYPE>/g,r(c)).replace(/<ALIGN>/g,r(o))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?;)/.source.replace(/<TYPE>/g,r(c)).replace(/<ALIGN>/g,r(o))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:i,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},n.languages.zig["class-name"].forEach(function(u){u.inside===null&&(u.inside=n.languages.zig)})})(t)}return HQ}var rt=J4n,q6n=rt;rt.register(uIn());rt.register(dIn());rt.register(fIn());rt.register(pIn());rt.register(hIn());rt.register(mIn());rt.register(gIn());rt.register(vIn());rt.register(yIn());rt.register(bIn());rt.register(_In());rt.register(SIn());rt.register(EIn());rt.register(CIn());rt.register(wIn());rt.register(xIn());rt.register(TIn());rt.register(IIn());rt.register(AIn());rt.register(RIn());rt.register(NIn());rt.register(OIn());rt.register(qJe());rt.register(WJe());rt.register(LIn());rt.register(PIn());rt.register(kIn());rt.register(MIn());rt.register(DIn());rt.register($In());rt.register(FIn());rt.register(BIn());rt.register(jIn());rt.register(zIn());rt.register(LC());rt.register(UIn());rt.register(HIn());rt.register(VIn());rt.register(GIn());rt.register(qIn());rt.register(WIn());rt.register(YIn());rt.register(KIn());rt.register(XIn());rt.register(_he());rt.register(ZIn());rt.register(mU());rt.register(QIn());rt.register(JIn());rt.register(eAn());rt.register(tAn());rt.register(nAn());rt.register(rAn());rt.register(iAn());rt.register(aAn());rt.register(oAn());rt.register(sAn());rt.register(lAn());rt.register(cAn());rt.register(uAn());rt.register(dAn());rt.register(fAn());rt.register(pAn());rt.register(hAn());rt.register(mAn());rt.register(gAn());rt.register(vAn());rt.register(yAn());rt.register(bAn());rt.register(_An());rt.register(SAn());rt.register(EAn());rt.register(CAn());rt.register(wAn());rt.register(xAn());rt.register(TAn());rt.register(IAn());rt.register(AAn());rt.register(RAn());rt.register(NAn());rt.register(OAn());rt.register(LAn());rt.register(PAn());rt.register(kAn());rt.register(MAn());rt.register(DAn());rt.register($An());rt.register(FAn());rt.register(BAn());rt.register(jAn());rt.register(zAn());rt.register(UAn());rt.register(HAn());rt.register(VAn());rt.register(She());rt.register(GAn());rt.register(qAn());rt.register(WAn());rt.register(YAn());rt.register(KAn());rt.register(XAn());rt.register(ZAn());rt.register(QAn());rt.register(JAn());rt.register(eRn());rt.register(tRn());rt.register(nRn());rt.register(rRn());rt.register(iRn());rt.register(aRn());rt.register(oRn());rt.register(sRn());rt.register(Ehe());rt.register(lRn());rt.register(vU());rt.register(cRn());rt.register(uRn());rt.register(dRn());rt.register(fRn());rt.register(pRn());rt.register(hRn());rt.register(mRn());rt.register(whe());rt.register(gRn());rt.register(vRn());rt.register(yRn());rt.register(KJe());rt.register(bRn());rt.register(_Rn());rt.register(SRn());rt.register(ERn());rt.register(CRn());rt.register(wRn());rt.register(xRn());rt.register(TRn());rt.register(IRn());rt.register(ARn());rt.register(RRn());rt.register(NRn());rt.register(ORn());rt.register(LRn());rt.register(PRn());rt.register(kRn());rt.register(YJe());rt.register(MRn());rt.register(DRn());rt.register($Rn());rt.register(jd());rt.register(FRn());rt.register(BRn());rt.register(jRn());rt.register(zRn());rt.register(URn());rt.register(HRn());rt.register(VRn());rt.register(GRn());rt.register(qRn());rt.register(WRn());rt.register(YRn());rt.register(KRn());rt.register(XRn());rt.register(ZRn());rt.register(QRn());rt.register(JRn());rt.register(eNn());rt.register(tNn());rt.register(nNn());rt.register(rNn());rt.register(iNn());rt.register(aNn());rt.register(oNn());rt.register(sNn());rt.register(lNn());rt.register(cNn());rt.register(uNn());rt.register(dNn());rt.register(fNn());rt.register(pNn());rt.register(hNn());rt.register(mNn());rt.register(yU());rt.register(gNn());rt.register(vNn());rt.register(yNn());rt.register(bNn());rt.register(_Nn());rt.register(SNn());rt.register(ENn());rt.register(CNn());rt.register(wNn());rt.register(xNn());rt.register(TNn());rt.register(INn());rt.register(ANn());rt.register(RNn());rt.register(NNn());rt.register(ONn());rt.register(LNn());rt.register(PNn());rt.register(kNn());rt.register(MNn());rt.register(DNn());rt.register($Nn());rt.register(FNn());rt.register(BNn());rt.register(jNn());rt.register(zNn());rt.register(UNn());rt.register(HNn());rt.register(VNn());rt.register(GNn());rt.register(gU());rt.register(qNn());rt.register(WNn());rt.register(YNn());rt.register(KNn());rt.register(xhe());rt.register(XNn());rt.register(ZNn());rt.register(QNn());rt.register(JNn());rt.register(e6n());rt.register(t6n());rt.register(n6n());rt.register(r6n());rt.register(i6n());rt.register(a6n());rt.register(o6n());rt.register(s6n());rt.register(bhe());rt.register(l6n());rt.register(c6n());rt.register(u6n());rt.register(d6n());rt.register(f6n());rt.register(p6n());rt.register(The());rt.register(h6n());rt.register(m6n());rt.register(g6n());rt.register(v6n());rt.register(y6n());rt.register(b6n());rt.register(_6n());rt.register(S6n());rt.register(XJe());rt.register(E6n());rt.register(Che());rt.register(C6n());rt.register(w6n());rt.register(x6n());rt.register(T6n());rt.register(I6n());rt.register(A6n());rt.register(ZJe());rt.register(R6n());rt.register(N6n());rt.register(O6n());rt.register(L6n());rt.register(P6n());rt.register(k6n());rt.register(M6n());rt.register(D6n());rt.register($6n());rt.register(F6n());rt.register(B6n());rt.register(j6n());rt.register(z6n());rt.register(U6n());rt.register(H6n());rt.register(QJe());rt.register(V6n());rt.register(G6n());const W6n=qo(q6n);var JJe=Hxn(W6n,cIn);JJe.supportedLanguages=Vxn;const Y6n={'code[class*="language-"]':{color:"black",background:"none",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",maxHeight:"inherit",height:"inherit",padding:"0 1em",display:"block",overflow:"auto"},'pre[class*="language-"]':{color:"black",background:"none",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",position:"relative",margin:".5em 0",overflow:"visible",padding:"1px",backgroundColor:"#fdfdfd",WebkitBoxSizing:"border-box",MozBoxSizing:"border-box",boxSizing:"border-box",marginBottom:"1em"},'pre[class*="language-"] > code':{position:"relative",zIndex:"1",borderLeft:"10px solid #358ccb",boxShadow:"-1px 0px 0px 0px #358ccb, 0px 0px 0px 1px #dfdfdf",backgroundColor:"#fdfdfd",backgroundImage:"linear-gradient(transparent 50%, rgba(69, 142, 209, 0.04) 50%)",backgroundSize:"3em 3em",backgroundOrigin:"content-box",backgroundAttachment:"local"},':not(pre) > code[class*="language-"]':{backgroundColor:"#fdfdfd",WebkitBoxSizing:"border-box",MozBoxSizing:"border-box",boxSizing:"border-box",marginBottom:"1em",position:"relative",padding:".2em",borderRadius:"0.3em",color:"#c92c2c",border:"1px solid rgba(0, 0, 0, 0.1)",display:"inline",whiteSpace:"normal"},'pre[class*="language-"]:before':{content:"''",display:"block",position:"absolute",bottom:"0.75em",left:"0.18em",width:"40%",height:"20%",maxHeight:"13em",boxShadow:"0px 13px 8px #979797",WebkitTransform:"rotate(-2deg)",MozTransform:"rotate(-2deg)",msTransform:"rotate(-2deg)",OTransform:"rotate(-2deg)",transform:"rotate(-2deg)"},'pre[class*="language-"]:after':{content:"''",display:"block",position:"absolute",bottom:"0.75em",left:"auto",width:"40%",height:"20%",maxHeight:"13em",boxShadow:"0px 13px 8px #979797",WebkitTransform:"rotate(2deg)",MozTransform:"rotate(2deg)",msTransform:"rotate(2deg)",OTransform:"rotate(2deg)",transform:"rotate(2deg)",right:"0.75em"},comment:{color:"#7D8B99"},"block-comment":{color:"#7D8B99"},prolog:{color:"#7D8B99"},doctype:{color:"#7D8B99"},cdata:{color:"#7D8B99"},punctuation:{color:"#5F6364"},property:{color:"#c92c2c"},tag:{color:"#c92c2c"},boolean:{color:"#c92c2c"},number:{color:"#c92c2c"},"function-name":{color:"#c92c2c"},constant:{color:"#c92c2c"},symbol:{color:"#c92c2c"},deleted:{color:"#c92c2c"},selector:{color:"#2f9c0a"},"attr-name":{color:"#2f9c0a"},string:{color:"#2f9c0a"},char:{color:"#2f9c0a"},function:{color:"#2f9c0a"},builtin:{color:"#2f9c0a"},inserted:{color:"#2f9c0a"},operator:{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},entity:{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)",cursor:"help"},url:{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},variable:{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},atrule:{color:"#1990b8"},"attr-value":{color:"#1990b8"},keyword:{color:"#1990b8"},"class-name":{color:"#1990b8"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"normal"},".language-css .token.string":{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},".style .token.string":{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:".7"},'pre[class*="language-"].line-numbers.line-numbers':{paddingLeft:"0"},'pre[class*="language-"].line-numbers.line-numbers code':{paddingLeft:"3.8em"},'pre[class*="language-"].line-numbers.line-numbers .line-numbers-rows':{left:"0"},'pre[class*="language-"][data-line]':{paddingTop:"0",paddingBottom:"0",paddingLeft:"0"},"pre[data-line] code":{position:"relative",paddingLeft:"4em"},"pre .line-highlight":{marginTop:"0"}},K6n={tokenize:tOn,partial:!0},eet={tokenize:nOn,partial:!0},tet={tokenize:rOn,partial:!0},net={tokenize:iOn,partial:!0},X6n={tokenize:aOn,partial:!0},ret={tokenize:J6n,previous:aet},iet={tokenize:eOn,previous:oet},_0={tokenize:Q6n,previous:set},yv={},Z6n={text:yv};let S2=48;for(;S2<123;)yv[S2]=_0,S2++,S2===58?S2=65:S2===91&&(S2=97);yv[43]=_0;yv[45]=_0;yv[46]=_0;yv[95]=_0;yv[72]=[_0,iet];yv[104]=[_0,iet];yv[87]=[_0,ret];yv[119]=[_0,ret];function Q6n(e,t,n){const r=this;let i,a;return o;function o(d){return!soe(d)||!set.call(r,r.previous)||Ihe(r.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(d))}function s(d){return soe(d)?(e.consume(d),s):d===64?(e.consume(d),l):n(d)}function l(d){return d===46?e.check(X6n,u,c)(d):d===45||d===95||Qc(d)?(a=!0,e.consume(d),l):u(d)}function c(d){return e.consume(d),i=!0,l}function u(d){return a&&i&&wu(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function J6n(e,t,n){const r=this;return i;function i(o){return o!==87&&o!==119||!aet.call(r,r.previous)||Ihe(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(K6n,e.attempt(eet,e.attempt(tet,a),n),n)(o))}function a(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function eOn(e,t,n){const r=this;let i="",a=!1;return o;function o(d){return(d===72||d===104)&&oet.call(r,r.previous)&&!Ihe(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(d),e.consume(d),s):n(d)}function s(d){if(wu(d)&&i.length<5)return i+=String.fromCodePoint(d),e.consume(d),s;if(d===58){const f=i.toLowerCase();if(f==="http"||f==="https")return e.consume(d),l}return n(d)}function l(d){return d===47?(e.consume(d),a?c:(a=!0,l)):n(d)}function c(d){return d===null||wF(d)||bo(d)||JE(d)||dU(d)?n(d):e.attempt(eet,e.attempt(tet,u),n)(d)}function u(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function tOn(e,t,n){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),i):o===46&&r===3?(e.consume(o),a):n(o)}function a(o){return o===null?n(o):t(o)}}function nOn(e,t,n){let r,i,a;return o;function o(c){return c===46||c===95?e.check(net,l,s)(c):c===null||bo(c)||JE(c)||c!==45&&dU(c)?l(c):(a=!0,e.consume(c),o)}function s(c){return c===95?r=!0:(i=r,r=void 0),e.consume(c),o}function l(c){return i||r||!a?n(c):t(c)}}function rOn(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(net,t,a)(o):o===null||bo(o)||JE(o)?t(o):(e.consume(o),i)}function a(o){return o===41&&r++,e.consume(o),i}}function iOn(e,t,n){return r;function r(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(e.consume(s),r):s===38?(e.consume(s),a):s===93?(e.consume(s),i):s===60||s===null||bo(s)||JE(s)?t(s):n(s)}function i(s){return s===null||s===40||s===91||bo(s)||JE(s)?t(s):r(s)}function a(s){return wu(s)?o(s):n(s)}function o(s){return s===59?(e.consume(s),r):wu(s)?(e.consume(s),o):n(s)}}function aOn(e,t,n){return r;function r(a){return e.consume(a),i}function i(a){return Qc(a)?n(a):t(a)}}function aet(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||bo(e)}function oet(e){return!wu(e)}function set(e){return!(e===47||soe(e))}function soe(e){return e===43||e===45||e===46||e===95||Qc(e)}function Ihe(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const oOn={tokenize:hOn,partial:!0};function sOn(){return{document:{91:{tokenize:dOn,continuation:{tokenize:fOn},exit:pOn}},text:{91:{tokenize:uOn},93:{add:"after",tokenize:lOn,resolveTo:cOn}}}}function lOn(e,t,n){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){o=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return s;function s(l){if(!o||!o._balanced)return n(l);const c=im(r.sliceSerialize({start:o.end,end:r.now()}));return c.codePointAt(0)!==94||!a.includes(c.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function cOn(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",o,t],["exit",o,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function uOn(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,o;return s;function s(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),l}function l(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(d){if(a>999||d===93&&!o||d===null||d===91||bo(d))return n(d);if(d===93){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return i.includes(im(r.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return bo(d)||(o=!0),a++,e.consume(d),d===92?u:c}function u(d){return d===91||d===92||d===93?(e.consume(d),a++,c):c(d)}}function dOn(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,o=0,s;return l;function l(h){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(h){return h===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(h)}function u(h){if(o>999||h===93&&!s||h===null||h===91||bo(h))return n(h);if(h===93){e.exit("chunkString");const m=e.exit("gfmFootnoteDefinitionLabelString");return a=im(r.sliceSerialize(m)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return bo(h)||(s=!0),o++,e.consume(h),h===92?d:u}function d(h){return h===91||h===92||h===93?(e.consume(h),o++,u):u(h)}function f(h){return h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),i.includes(a)||i.push(a),la(e,p,"gfmFootnoteDefinitionWhitespace")):n(h)}function p(h){return t(h)}}function fOn(e,t,n){return e.check(t8,t,e.attempt(oOn,t,n))}function pOn(e){e.exit("gfmFootnoteDefinition")}function hOn(e,t,n){const r=this;return la(e,i,"gfmFootnoteDefinitionIndent",5);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(a):n(a)}}function mOn(e){let n=(e||{}).singleTilde;const r={tokenize:a,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,s){let l=-1;for(;++l<o.length;)if(o[l][0]==="enter"&&o[l][1].type==="strikethroughSequenceTemporary"&&o[l][1]._close){let c=l;for(;c--;)if(o[c][0]==="exit"&&o[c][1].type==="strikethroughSequenceTemporary"&&o[c][1]._open&&o[l][1].end.offset-o[l][1].start.offset===o[c][1].end.offset-o[c][1].start.offset){o[l][1].type="strikethroughSequence",o[c][1].type="strikethroughSequence";const u={type:"strikethrough",start:Object.assign({},o[c][1].start),end:Object.assign({},o[l][1].end)},d={type:"strikethroughText",start:Object.assign({},o[c][1].end),end:Object.assign({},o[l][1].start)},f=[["enter",u,s],["enter",o[c][1],s],["exit",o[c][1],s],["enter",d,s]],p=s.parser.constructs.insideSpan.null;p&&xf(f,f.length,0,fU(p,o.slice(c+1,l),s)),xf(f,f.length,0,[["exit",d,s],["enter",o[l][1],s],["exit",o[l][1],s],["exit",u,s]]),xf(o,c-1,l-c+3,f),l=c+f.length-2;break}}for(l=-1;++l<o.length;)o[l][1].type==="strikethroughSequenceTemporary"&&(o[l][1].type="data");return o}function a(o,s,l){const c=this.previous,u=this.events;let d=0;return f;function f(h){return c===126&&u[u.length-1][1].type!=="characterEscape"?l(h):(o.enter("strikethroughSequenceTemporary"),p(h))}function p(h){const m=xF(c);if(h===126)return d>1?l(h):(o.consume(h),d++,p);if(d<2&&!n)return l(h);const g=o.exit("strikethroughSequenceTemporary"),v=xF(h);return g._open=!v||v===2&&!!m,g._close=!m||m===2&&!!v,s(h)}}}class gOn{constructor(){this.map=[]}add(t,n,r){vOn(this,t,n,r)}consume(t){if(this.map.sort((a,o)=>a[0]-o[0]),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1])),r.push(this.map[n][2]),t.length=this.map[n][0];r.push([...t]),t.length=0;let i=r.pop();for(;i;)t.push(...i),i=r.pop();this.map.length=0}}function vOn(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function yOn(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const a=r.length-1;r[a]=r[a]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}const bOn={flow:{null:{tokenize:_On,resolveAll:SOn}}};function _On(e,t,n){const r=this;let i=0,a=0,o;return s;function s(I){let R=r.events.length-1;for(;R>-1;){const L=r.events[R][1].type;if(L==="lineEnding"||L==="linePrefix")R--;else break}const N=R>-1?r.events[R][1].type:null,P=N==="tableHead"||N==="tableRow"?w:l;return P===w&&r.parser.lazy[r.now().line]?n(I):P(I)}function l(I){return e.enter("tableHead"),e.enter("tableRow"),c(I)}function c(I){return I===124||(o=!0,a+=1),u(I)}function u(I){return I===null?n(I):Ar(I)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),p):n(I):ji(I)?la(e,u,"whitespace")(I):(a+=1,o&&(o=!1,i+=1),I===124?(e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),o=!0,u):(e.enter("data"),d(I)))}function d(I){return I===null||I===124||bo(I)?(e.exit("data"),u(I)):(e.consume(I),I===92?f:d)}function f(I){return I===92||I===124?(e.consume(I),d):d(I)}function p(I){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(I):(e.enter("tableDelimiterRow"),o=!1,ji(I)?la(e,h,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):h(I))}function h(I){return I===45||I===58?g(I):I===124?(o=!0,e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),m):C(I)}function m(I){return ji(I)?la(e,g,"whitespace")(I):g(I)}function g(I){return I===58?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(I),e.exit("tableDelimiterMarker"),v):I===45?(a+=1,v(I)):I===null||Ar(I)?S(I):C(I)}function v(I){return I===45?(e.enter("tableDelimiterFiller"),y(I)):C(I)}function y(I){return I===45?(e.consume(I),y):I===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(I),e.exit("tableDelimiterMarker"),_):(e.exit("tableDelimiterFiller"),_(I))}function _(I){return ji(I)?la(e,S,"whitespace")(I):S(I)}function S(I){return I===124?h(I):I===null||Ar(I)?!o||i!==a?C(I):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(I)):C(I)}function C(I){return n(I)}function w(I){return e.enter("tableRow"),x(I)}function x(I){return I===124?(e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),x):I===null||Ar(I)?(e.exit("tableRow"),t(I)):ji(I)?la(e,x,"whitespace")(I):(e.enter("data"),T(I))}function T(I){return I===null||I===124||bo(I)?(e.exit("data"),x(I)):(e.consume(I),I===92?A:T)}function A(I){return I===92||I===124?(e.consume(I),T):T(I)}}function SOn(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,l=0,c,u,d;const f=new gOn;for(;++n<e.length;){const p=e[n],h=p[1];p[0]==="enter"?h.type==="tableHead"?(s=!1,l!==0&&(bAe(f,t,l,c,u),u=void 0,l=0),c={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},f.add(n,0,[["enter",c,t]])):h.type==="tableRow"||h.type==="tableDelimiterRow"?(r=!0,d=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:"tableBody",start:Object.assign({},h.start),end:Object.assign({},h.end)},f.add(n,0,[["enter",u,t]])),i=h.type==="tableDelimiterRow"?2:u?3:1):i&&(h.type==="data"||h.type==="tableDelimiterMarker"||h.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],d=HP(f,t,a,i,void 0,d),a=[0,0,0,0]),o[2]=n)):h.type==="tableCellDivider"&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],d=HP(f,t,a,i,void 0,d)),a=o,o=[a[1],n,0,0])):h.type==="tableHead"?(s=!0,l=n):h.type==="tableRow"||h.type==="tableDelimiterRow"?(l=n,a[1]!==0?(o[0]=o[1],d=HP(f,t,a,i,n,d)):o[1]!==0&&(d=HP(f,t,o,i,n,d)),i=0):i&&(h.type==="data"||h.type==="tableDelimiterMarker"||h.type==="tableDelimiterFiller")&&(o[3]=n)}for(l!==0&&bAe(f,t,l,c,u),f.consume(t.events),n=-1;++n<t.events.length;){const p=t.events[n];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=yOn(t.events,n))}return e}function HP(e,t,n,r,i,a){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",s="tableContent";n[0]!==0&&(a.end=Object.assign({},Sx(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));const l=Sx(t.events,n[1]);if(a={type:o,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",a,t]]),n[2]!==0){const c=Sx(t.events,n[2]),u=Sx(t.events,n[3]),d={type:s,start:Object.assign({},c),end:Object.assign({},u)};if(e.add(n[2],0,[["enter",d,t]]),r!==2){const f=t.events[n[2]],p=t.events[n[3]];if(f[1].end=Object.assign({},p[1].end),f[1].type="chunkText",f[1].contentType="text",n[3]>n[2]+1){const h=n[2]+1,m=n[3]-n[2]-1;e.add(h,m,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return i!==void 0&&(a.end=Object.assign({},Sx(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function bAe(e,t,n,r,i){const a=[],o=Sx(t.events,n);i&&(i.end=Object.assign({},o),a.push(["exit",i,t])),r.end=Object.assign({},o),a.push(["exit",r,t]),e.add(n+1,0,a)}function Sx(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const EOn={tokenize:wOn},COn={text:{91:EOn}};function wOn(e,t,n){const r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),a)}function a(l){return bo(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),o):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),o):n(l)}function o(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(l)}function s(l){return Ar(l)?t(l):ji(l)?e.check({tokenize:xOn},t,n)(l):n(l)}}function xOn(e,t,n){return la(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function TOn(e){return OQe([Z6n,sOn(),mOn(e),bOn,COn])}function _Ae(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function IOn(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const AOn={}.hasOwnProperty,ROn=function(e,t,n,r){let i,a;typeof t=="string"||t instanceof RegExp?(a=[[t,n]],i=r):(a=t,i=n),i||(i={});const o=Zpe(i.ignore||[]),s=NOn(a);let l=-1;for(;++l<s.length;)KQe(e,"text",c);return e;function c(d,f){let p=-1,h;for(;++p<f.length;){const m=f[p];if(o(m,h?h.children.indexOf(m):void 0,h))return;h=m}if(h)return u(d,f)}function u(d,f){const p=f[f.length-1],h=s[l][0],m=s[l][1];let g=0;const v=p.children.indexOf(d);let y=!1,_=[];h.lastIndex=0;let S=h.exec(d.value);for(;S;){const C=S.index,w={index:S.index,input:S.input,stack:[...f,d]};let x=m(...S,w);if(typeof x=="string"&&(x=x.length>0?{type:"text",value:x}:void 0),x!==!1&&(g!==C&&_.push({type:"text",value:d.value.slice(g,C)}),Array.isArray(x)?_.push(...x):x&&_.push(x),g=C+S[0].length,y=!0),!h.global)break;S=h.exec(d.value)}return y?(g<d.value.length&&_.push({type:"text",value:d.value.slice(g)}),p.children.splice(v,1,..._)):_=[d],v+_.length}};function NOn(e){const t=[];if(typeof e!="object")throw new TypeError("Expected array or object as schema");if(Array.isArray(e)){let n=-1;for(;++n<e.length;)t.push([SAe(e[n][0]),EAe(e[n][1])])}else{let n;for(n in e)AOn.call(e,n)&&t.push([SAe(n),EAe(e[n])])}return t}function SAe(e){return typeof e=="string"?new RegExp(IOn(e),"g"):e}function EAe(e){return typeof e=="function"?e:()=>e}const VQ="phrasing",GQ=["autolink","link","image","label"],OOn={transforms:[FOn],enter:{literalAutolink:POn,literalAutolinkEmail:qQ,literalAutolinkHttp:qQ,literalAutolinkWww:qQ},exit:{literalAutolink:$On,literalAutolinkEmail:DOn,literalAutolinkHttp:kOn,literalAutolinkWww:MOn}},LOn={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:VQ,notInConstruct:GQ},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:VQ,notInConstruct:GQ},{character:":",before:"[ps]",after:"\\/",inConstruct:VQ,notInConstruct:GQ}]};function POn(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function qQ(e){this.config.enter.autolinkProtocol.call(this,e)}function kOn(e){this.config.exit.autolinkProtocol.call(this,e)}function MOn(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.url="http://"+this.sliceSerialize(e)}function DOn(e){this.config.exit.autolinkEmail.call(this,e)}function $On(e){this.exit(e)}function FOn(e){ROn(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,BOn],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,jOn]],{ignore:["link","linkReference"]})}function BOn(e,t,n,r,i){let a="";if(!cet(i)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!zOn(n)))return!1;const o=UOn(n+r);if(!o[0])return!1;const s={type:"link",title:null,url:a+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[s,{type:"text",value:o[1]}]:s}function jOn(e,t,n,r){return!cet(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function zOn(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function UOn(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=_Ae(e,"(");let a=_Ae(e,")");for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function cet(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||JE(n)||dU(n))&&(!t||n!==47)}function uet(e){return e.label||!e.identifier?e.label||"":UQe(e.identifier)}function HOn(e,t,n){const r=t.indexStack,i=e.children||[],a=t.createTracker(n),o=[];let s=-1;for(r.push(-1);++s<i.length;){const l=i[s];r[r.length-1]=s,o.push(a.move(t.handle(l,e,t,{before:`
`,after:`
`,...a.current()}))),l.type!=="list"&&(t.bulletLastUsed=void 0),s<i.length-1&&o.push(a.move(VOn(l,i[s+1],e,t)))}return r.pop(),o.join("")}function VOn(e,t,n,r){let i=r.join.length;for(;i--;){const a=r.join[i](e,t,n,r);if(a===!0||a===1)break;if(typeof a=="number")return`
`.repeat(1+a);if(a===!1)return`

<!---->

`}return`

`}const GOn=/\r?\n|\r/g;function qOn(e,t){const n=[];let r=0,i=0,a;for(;a=GOn.exec(e);)o(e.slice(r,a.index)),n.push(a[0]),r=a.index+a[0].length,i++;return o(e.slice(r)),n.join("");function o(s){n.push(t(s,i,!s))}}function det(e){if(!e._compiled){const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function WOn(e,t){return CAe(e,t.inConstruct,!0)&&!CAe(e,t.notInConstruct,!1)}function CAe(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function fet(e,t,n){const r=(n.before||"")+(t||"")+(n.after||""),i=[],a=[],o={};let s=-1;for(;++s<e.unsafe.length;){const u=e.unsafe[s];if(!WOn(e.stack,u))continue;const d=det(u);let f;for(;f=d.exec(r);){const p="before"in u||!!u.atBreak,h="after"in u,m=f.index+(p?f[1].length:0);i.includes(m)?(o[m].before&&!p&&(o[m].before=!1),o[m].after&&!h&&(o[m].after=!1)):(i.push(m),o[m]={before:p,after:h})}}i.sort(YOn);let l=n.before?n.before.length:0;const c=r.length-(n.after?n.after.length:0);for(s=-1;++s<i.length;){const u=i[s];u<l||u>=c||u+1<c&&i[s+1]===u+1&&o[u].after&&!o[u+1].before&&!o[u+1].after||i[s-1]===u-1&&o[u].before&&!o[u-1].before&&!o[u-1].after||(l!==u&&a.push(wAe(r.slice(l,u),"\\")),l=u,/[!-/:-@[-`{-~]/.test(r.charAt(u))&&(!n.encode||!n.encode.includes(r.charAt(u)))?a.push("\\"):(a.push("&#x"+r.charCodeAt(u).toString(16).toUpperCase()+";"),l++))}return a.push(wAe(r.slice(l,c),n.after)),a.join("")}function YOn(e,t){return e-t}function wAe(e,t){const n=/\\(?=[!-/:-@[-`{-~])/g,r=[],i=[],a=e+t;let o=-1,s=0,l;for(;l=n.exec(a);)r.push(l.index);for(;++o<r.length;)s!==r[o]&&i.push(e.slice(s,r[o])),i.push("\\"),s=r[o];return i.push(e.slice(s)),i.join("")}function bU(e){const t=e||{},n=t.now||{};let r=t.lineShift||0,i=n.line||1,a=n.column||1;return{move:l,current:o,shift:s};function o(){return{now:{line:i,column:a},lineShift:r}}function s(c){r+=c}function l(c){const u=c||"",d=u.split(/\r?\n|\r/g),f=d[d.length-1];return i+=d.length-1,a=d.length===1?a+f.length:1+f.length+r,u}}pet.peek=a8n;function KOn(){return{enter:{gfmFootnoteDefinition:ZOn,gfmFootnoteDefinitionLabelString:QOn,gfmFootnoteCall:t8n,gfmFootnoteCallString:n8n},exit:{gfmFootnoteDefinition:e8n,gfmFootnoteDefinitionLabelString:JOn,gfmFootnoteCall:i8n,gfmFootnoteCallString:r8n}}}function XOn(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:o8n,footnoteReference:pet}}}function ZOn(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function QOn(){this.buffer()}function JOn(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=im(this.sliceSerialize(e)).toLowerCase()}function e8n(e){this.exit(e)}function t8n(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function n8n(){this.buffer()}function r8n(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=im(this.sliceSerialize(e)).toLowerCase()}function i8n(e){this.exit(e)}function pet(e,t,n,r){const i=bU(r);let a=i.move("[^");const o=n.enter("footnoteReference"),s=n.enter("reference");return a+=i.move(fet(n,uet(e),{...i.current(),before:a,after:"]"})),s(),o(),a+=i.move("]"),a}function a8n(){return"["}function o8n(e,t,n,r){const i=bU(r);let a=i.move("[^");const o=n.enter("footnoteDefinition"),s=n.enter("label");return a+=i.move(fet(n,uet(e),{...i.current(),before:a,after:"]"})),s(),a+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),a+=i.move(qOn(HOn(e,n,i.current()),s8n)),o(),a}function s8n(e,t,n){return t===0?e:(n?"":"    ")+e}function het(e,t,n){const r=t.indexStack,i=e.children||[],a=[];let o=-1,s=n.before;r.push(-1);let l=t.createTracker(n);for(;++o<i.length;){const c=i[o];let u;if(r[r.length-1]=o,o+1<i.length){let d=t.handle.handlers[i[o+1].type];d&&d.peek&&(d=d.peek),u=d?d(i[o+1],e,t,{before:"",after:"",...l.current()}).charAt(0):""}else u=n.after;a.length>0&&(s==="\r"||s===`
`)&&c.type==="html"&&(a[a.length-1]=a[a.length-1].replace(/(\r?\n|\r)$/," "),s=" ",l=t.createTracker(n),l.move(a.join(""))),a.push(l.move(t.handle(c,e,t,{...l.current(),before:s,after:u}))),s=a[a.length-1].slice(-1)}return r.pop(),a.join("")}const l8n=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];met.peek=p8n;const c8n={canContainEols:["delete"],enter:{strikethrough:d8n},exit:{strikethrough:f8n}},u8n={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:l8n}],handlers:{delete:met}};function d8n(e){this.enter({type:"delete",children:[]},e)}function f8n(e){this.exit(e)}function met(e,t,n,r){const i=bU(r),a=n.enter("strikethrough");let o=i.move("~~");return o+=het(e,n,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),a(),o}function p8n(){return"~"}get.peek=h8n;function get(e,t,n){let r=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a<n.unsafe.length;){const o=n.unsafe[a],s=det(o);let l;if(o.atBreak)for(;l=s.exec(r);){let c=l.index;r.charCodeAt(c)===10&&r.charCodeAt(c-1)===13&&c--,r=r.slice(0,c)+" "+r.slice(l.index+1)}}return i+r+i}function h8n(){return"`"}function m8n(e,t={}){const n=(t.align||[]).concat(),r=t.stringLength||v8n,i=[],a=[],o=[],s=[];let l=0,c=-1;for(;++c<e.length;){const h=[],m=[];let g=-1;for(e[c].length>l&&(l=e[c].length);++g<e[c].length;){const v=g8n(e[c][g]);if(t.alignDelimiters!==!1){const y=r(v);m[g]=y,(s[g]===void 0||y>s[g])&&(s[g]=y)}h.push(v)}a[c]=h,o[c]=m}let u=-1;if(typeof n=="object"&&"length"in n)for(;++u<l;)i[u]=xAe(n[u]);else{const h=xAe(n);for(;++u<l;)i[u]=h}u=-1;const d=[],f=[];for(;++u<l;){const h=i[u];let m="",g="";h===99?(m=":",g=":"):h===108?m=":":h===114&&(g=":");let v=t.alignDelimiters===!1?1:Math.max(1,s[u]-m.length-g.length);const y=m+"-".repeat(v)+g;t.alignDelimiters!==!1&&(v=m.length+v+g.length,v>s[u]&&(s[u]=v),f[u]=v),d[u]=y}a.splice(1,0,d),o.splice(1,0,f),c=-1;const p=[];for(;++c<a.length;){const h=a[c],m=o[c];u=-1;const g=[];for(;++u<l;){const v=h[u]||"";let y="",_="";if(t.alignDelimiters!==!1){const S=s[u]-(m[u]||0),C=i[u];C===114?y=" ".repeat(S):C===99?S%2?(y=" ".repeat(S/2+.5),_=" ".repeat(S/2-.5)):(y=" ".repeat(S/2),_=y):_=" ".repeat(S)}t.delimiterStart!==!1&&!u&&g.push("|"),t.padding!==!1&&!(t.alignDelimiters===!1&&v==="")&&(t.delimiterStart!==!1||u)&&g.push(" "),t.alignDelimiters!==!1&&g.push(y),g.push(v),t.alignDelimiters!==!1&&g.push(_),t.padding!==!1&&g.push(" "),(t.delimiterEnd!==!1||u!==l-1)&&g.push("|")}p.push(t.delimiterEnd===!1?g.join("").replace(/ +$/,""):g.join(""))}return p.join(`
`)}function g8n(e){return e==null?"":String(e)}function v8n(e){return e.length}function xAe(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}const y8n={enter:{table:b8n,tableData:TAe,tableHeader:TAe,tableRow:S8n},exit:{codeText:E8n,table:_8n,tableData:WQ,tableHeader:WQ,tableRow:WQ}};function b8n(e){const t=e._align;this.enter({type:"table",align:t.map(n=>n==="none"?null:n),children:[]},e),this.setData("inTable",!0)}function _8n(e){this.exit(e),this.setData("inTable")}function S8n(e){this.enter({type:"tableRow",children:[]},e)}function WQ(e){this.exit(e)}function TAe(e){this.enter({type:"tableCell",children:[]},e)}function E8n(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,C8n));const n=this.stack[this.stack.length-1];n.value=t,this.exit(e)}function C8n(e,t){return t==="|"?t:e}function w8n(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[	 :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:o,tableRow:s,tableCell:l,inlineCode:f}};function o(p,h,m,g){return c(u(p,m,g),p.align)}function s(p,h,m,g){const v=d(p,m,g),y=c([v]);return y.slice(0,y.indexOf(`
`))}function l(p,h,m,g){const v=m.enter("tableCell"),y=m.enter("phrasing"),_=het(p,m,{...g,before:a,after:a});return y(),v(),_}function c(p,h){return m8n(p,{align:h,alignDelimiters:r,padding:n,stringLength:i})}function u(p,h,m){const g=p.children;let v=-1;const y=[],_=h.enter("table");for(;++v<g.length;)y[v]=d(g[v],h,m);return _(),y}function d(p,h,m){const g=p.children;let v=-1;const y=[],_=h.enter("tableRow");for(;++v<g.length;)y[v]=l(g[v],p,h,m);return _(),y}function f(p,h,m){let g=get(p,h,m);return m.stack.includes("tableCell")&&(g=g.replace(/\|/g,"\\$&")),g}}function x8n(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function T8n(e){const t=e.options.listItemIndent||"tab";if(t===1||t==="1")return"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function I8n(e,t,n,r){const i=T8n(n);let a=n.bulletCurrent||x8n(n);t&&t.type==="list"&&t.ordered&&(a=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const s=n.createTracker(r);s.move(a+" ".repeat(o-a.length)),s.shift(o);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),u);return l(),c;function u(d,f,p){return f?(p?"":" ".repeat(o))+d:(p?a:a+" ".repeat(o-a.length))+d}}const A8n={exit:{taskListCheckValueChecked:IAe,taskListCheckValueUnchecked:IAe,paragraph:N8n}},R8n={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:O8n}};function IAe(e){const t=this.stack[this.stack.length-2];t.checked=e.type==="taskListCheckValueChecked"}function N8n(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1],r=n.children[0];if(r&&r.type==="text"){const i=t.children;let a=-1,o;for(;++a<i.length;){const s=i[a];if(s.type==="paragraph"){o=s;break}}o===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function O8n(e,t,n,r){const i=e.children[0],a=typeof e.checked=="boolean"&&i&&i.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",s=bU(r);a&&s.move(o);let l=I8n(e,t,n,{...r,...s.current()});return a&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),l;function c(u){return u+o}}function L8n(){return[OOn,KOn(),c8n,y8n,A8n]}function P8n(e){return{extensions:[LOn,XOn(),u8n,w8n(e),R8n]}}function k8n(e={}){const t=this.data();n("micromarkExtensions",TOn(e)),n("fromMarkdownExtensions",L8n()),n("toMarkdownExtensions",P8n(e));function n(r,i){(t[r]?t[r]:t[r]=[]).push(i)}}const M8n="_container_1soys_13",D8n={container:M8n},vet=({href:e,children:t})=>E.jsx("a",{href:e,target:"_blank",rel:"noopener noreferrer",children:t}),$8n=({className:e,children:t,customStyle:n={},...r})=>{const[,i]=/language-(\w+)/.exec(e||"")||[];if(!i)return E.jsx("code",{...r,className:e,children:t});const a={...Y6n,...n};return E.jsx(JJe,{style:a,language:i,PreTag:"div",children:t})},_U=({children:e,customComponents:t={},customCodeStyle:n={}})=>E.jsx(lJe,{remarkPlugins:[k8n],components:{a:vet,code:r=>E.jsx($8n,{...r,customStyle:n}),...t},className:D8n.container,children:e}),F8n="_formattedResult_lxmhq_13",B8n="_withEllipses_lxmhq_21",j8n="_highlight_lxmhq_28",VP={formattedResult:F8n,withEllipses:B8n,highlight:j8n},z8n="Filters",U8n="Type your query here",yet="Search",H8n="Apply & Search",bet="Clear all",_et="Apply",Eet="Cancel",V8n="Clear",G8n="Pipeline",q8n="Select a pipeline",W8n="There are no deployed pipelines.",Y8n="You don't have any deployed pipelines. Go to Pipelines and deploy the pipeline you want to use for your search.",K8n="You don't have any filters available. Add the metadata to your files and  they will appear here.",X8n="This is where the metadata from your files will be shown. You can use the metadata to filter your search results. Use the API %uploadFile% endpoint to add metadata to your files.",Z8n="Type to search...",Q8n="No matches found",J8n="You have no deployed pipelines yet",eLn="To use the search, first %newPipelineLink% and then deploy it. You can also %viewDocumentationLink% on how to do everything step by step.",tLn="create pipeline",nLn="upload file",rLn="view documentation",iLn="An unexpected error occurred",aLn="We encountered an error, try searching again. If the problem persists, contact customer services.",oLn="Redeploying your pipeline",sLn="Wait with your search until we deploy your pipeline. We'll be done in a flash. %whyIsThisLink%",AAe="Why is this?",lLn="Why is my pipeline on standby?",cLn="Unused pipelines switch to standby mode after %idleTimeout% to optimize performance. Your data remains secure and accessible anytime.",uLn="This pipeline is on standby",dLn="Unused pipelines enter standby mode after %idleTimeout%. This is done to save resources. Your data is still there, secure and accessible. Activate the pipeline to use it.",fLn="Activate Pipeline",pLn="Activating your pipeline",hLn="Wait a couple of seconds while we're preparing your pipeline to be ready for search. %whyIsThisLink%",mLn="Activating Pipeline",gLn="Ask a query to start a search.",vLn="We couldn't find any answers for",yLn="Try a different pipeline or update your filters. Make sure the information you're looking for exists in the data you're running the search on.",bLn="Searching for answers for",_Ln="Relevance",SLn="Source",Cet="Sources",ELn="You don't have permissions to view the sources for this result. Reach out to the person that shared the link with you to get the required permissions.",CLn="View Document",wLn="File",xLn="Document",TLn="Documents",Ahe="View Prompt",ILn="View Filters",ALn="Show Prompt Template",RLn="Hide Prompt Template",NLn="Repeat Query",OLn="Save as Prompt Template",LLn="Prompt copied to clipboard.",PLn="Could not generate an answer.",kLn="Metadata",MLn="View Reference",DLn="History Log",wet="Answer",$Ln="Provide additional feedback...",FLn="Why have you chosen this rating?",BLn="Add custom tags in the pipeline %settings% to help gather more use-case specific feedback.",jLn={[Aa.EXTRACTIVE_QUESTION_ANSWERING]:"%numResults% answers found",[Aa.DOCUMENT_RETRIEVAL]:"%numResults% documents found",[Aa.GENERATIVE_QUESTION_ANSWERING]:"%numResults% answers generated"},Rhe=[{key:Mg.DOCUMENT,label:"View Document"},{key:Mg.PREVIEW,label:"View File"},{key:Mg.OPEN,label:"View file in new tab"},{key:Mg.DOWNLOAD,label:"Download File"}],xet=[{key:Mg.DOCUMENT,label:"View Document(s)"},...Rhe.slice(1)],zLn=`${zu}docs/create-a-pipeline`,ULn="Relevant",HLn="Not relevant",RAe="References",VLn="Reference",GLn="Document Rank",Tet="Scroll to reference",qLn="Expand all",WLn="Collapse all",YLn="_documentReferencePopover_content_188m0_13",KLn="_documentReferencePopover_popover_188m0_25",XLn="_documentReferencePopover_188m0_13",YQ={documentReferencePopover_content:YLn,documentReferencePopover_popover:KLn,documentReferencePopover:XLn},ZLn=({content:e,buttonLabel:t,displayPopover:n=!0,onViewReference:r})=>{const i=()=>E.jsxs("div",{className:YQ.documentReferencePopover_content,children:["...",e.slice(0,500),"...",r&&E.jsx(ut,{type:"link",onClick:r,children:MLn})]}),a=o=>n?E.jsx(tv,{rootClassName:YQ.documentReferencePopover_popover,content:i(),trigger:"hover",arrow:!1,children:o}):o;return E.jsx("span",{className:YQ.documentReferencePopover,children:a(E.jsx(ut,{type:"link",onClick:r,children:t}))})},Ow="%highlight%",NAe="%reference%",a8=({text:e,ellipses:t,highlight:n,references:r,withTypingEffect:i=!1,displayReferencesPopover:a,onViewReference:o})=>{const s=b.useRef(null),[l,c]=b.useState(""),u=()=>{if(!r?.length)return e;const{processedText:y}=r.reduce((_,S,C)=>{const{processedText:w,countAddChar:x}=_,{startIdx:T,endIdx:A}=S,I=T+x,R=A+x,N=`[${C}](${NAe})`,P=w.slice(I,R)+N+w.slice(R),L=x+N.length;return I===0?{processedText:P,countAddChar:L}:{processedText:w.slice(0,I)+P,countAddChar:L}},{processedText:e,countAddChar:0});return y},d=()=>n?`${Ow}${n.text}${Ow}`:"",f=()=>{if(!n)return e;const{start:y,end:_}=n.offset||{};return e.slice(0,y)+d()+e.slice(_,e.length)},p=y=>{const _=y.querySelectorAll(`.${VP.highlight}`),S=_[_.length-1];if(S){const C=document.createElement("span");C.textContent=Lae,S.appendChild(C)}},h=y=>{let _=!1,S=null;const C=()=>{const T=document.createElement("span");return T.className=VP.highlight,n?.testId&&T.setAttribute("data-testid",n.testId),T},w=document.createTreeWalker(y,NodeFilter.SHOW_TEXT,null),x=[];for(;w.nextNode();)x.push(w.currentNode);x.forEach(T=>{let A=T.nodeValue||"";const I=T.parentNode,R=document.createDocumentFragment();let N,P;for(;A.length>0;){if(!_){if(N=A.indexOf(Ow),N===-1){R.appendChild(document.createTextNode(A));break}R.appendChild(document.createTextNode(A.substring(0,N))),A=A.substring(N+Ow.length),_=!0,S=C()}if(_){if(P=A.indexOf(Ow),P===-1){S?.appendChild(document.createTextNode(A)),R.appendChild(S);break}S?.appendChild(document.createTextNode(A.substring(0,P))),R.appendChild(S),A=A.substring(P+Ow.length),_=!1}}I?.replaceChild(R,T)}),p(y)};b.useEffect(()=>{if(n){c(f());return}if(r){c(u());return}c(e)},[e]),so(()=>{n&&h(s.current)},[l]);const m=y=>i?E.jsx(ISn,{children:y}):E.jsx(E.Fragment,{children:y}),g=b.useCallback(({href:y,children:_})=>{if(!_)return null;if(y?.includes(NAe)){const[S]=_,C=+S,w=`[${C+1}]`,{id:x,content:T}=r?.[C]||{content:""};return E.jsx(ZLn,{content:T,buttonLabel:w,onViewReference:()=>o&&o(x),displayPopover:a})}return E.jsx(vet,{href:y,children:_})},[]);return m(E.jsx("div",{className:`${VP.formattedResult} ${t?VP.withEllipses:""}`,ref:s,children:E.jsx(_U,{customComponents:{a:g},children:l})}))},QLn="_docsPopoverContent_1udy6_13",JLn="_docsPopoverAnswerContainer_1udy6_26",ePn="_docsPopoverAnswer_1udy6_26",tPn="_docsPopoverError_1udy6_31",nPn="_docsPopoverQuestion_1udy6_32",rPn="_docsPopoverWaiting_1udy6_51",iPn="_docsLink_1udy6_57",aPn="_questionButton_1udy6_63",oPn="_clearButton_1udy6_69",tp={docsPopoverContent:QLn,docsPopoverAnswerContainer:JLn,docsPopoverAnswer:ePn,docsPopoverError:tPn,docsPopoverQuestion:nPn,docsPopoverWaiting:rPn,docsLink:iPn,questionButton:aPn,clearButton:oPn},sPn=()=>{const[e,t]=se.useState(""),[n,r]=se.useState(""),[i,a]=se.useState([]),[o,s]=se.useState(!1),[l,c]=se.useState(400),[u,d]=se.useState(400),f=b.useRef(null),p=uv(),{Search:h}=$r,m=Nn.camelCase(p.pathname),g=m&&uxe[m]||uxe.common;b.useEffect(()=>{setTimeout(()=>{f.current?.scrollTo({top:f.current.scrollHeight,behavior:"smooth"})},1)},[i,n]);const v=async S=>{s(!0),t(""),r(S);try{const C=await bSn("doc_search",{queries:[S]},"readme"),w=Nn.get(C,"data.results[0].answers[0].answer","");a([...i,{question:S,answer:w}])}catch(C){const w=Wn(C);a([...i,{question:S,error:w}])}s(!1),r("")},y=(S,C)=>{c(l+S),d(u+C)},_=()=>{s(!1),t(""),r(""),a([])};return E.jsx(qpe,{size:{width:u,height:l},minWidth:400,minHeight:400,maxHeight:"90vh",maxWidth:"100vw",grid:[10,10],snapGap:10,lockAspectRatio:!0,enable:{top:!1,right:!1,bottom:!0,left:!0,topRight:!1,bottomRight:!1,bottomLeft:!0,topLeft:!1},onResizeStop:(S,C,w,x)=>{y(x.height,x.width)},children:E.jsxs("div",{className:tp.docsPopoverContent,children:[i.length===0&&!n&&E.jsxs("div",{children:[_Sn,E.jsx("ul",{children:g.map(S=>E.jsx("li",{children:E.jsx(ut,{block:!0,className:tp.questionButton,type:"link",onClick:()=>{t(S),v(S)},disabled:o,children:S})},ps()))})]}),(i.length>0||n)&&E.jsxs("div",{className:tp.docsPopoverAnswerContainer,ref:f,children:[i.map(S=>{const{answer:C,error:w}=S;return E.jsxs("div",{className:tp.docsPopoverAnswerWrapper,children:[E.jsx("p",{className:tp.docsPopoverQuestion,children:S.question}),C&&E.jsx("p",{className:tp.docsPopoverAnswer,children:E.jsx(a8,{text:C})}),w&&E.jsx("p",{className:tp.docsPopoverError,children:w})]},ps())}),n&&E.jsxs("div",{className:tp.docsPopoverAnswerWrapper,children:[E.jsx("p",{className:tp.docsPopoverQuestion,children:n}),E.jsx("p",{className:tp.docsPopoverWaiting,children:E.jsx(wQe,{})})]}),!n&&E.jsx(ut,{type:"link",size:"small",className:tp.clearButton,onClick:()=>_(),children:SSn}),E.jsx("div",{})]}),E.jsxs("section",{children:[E.jsx(h,{placeholder:ESn,enterButton:E.jsx(ut,{type:"primary",disabled:o,icon:E.jsx(Xce,{})}),value:e,onSearch:S=>v(S),onChange:S=>t(S.target.value),disabled:o}),E.jsx("a",{href:zu||"https://docs.cloud.deepset.ai/",target:"_blank",rel:"noreferrer",className:tp.docsLink,children:CSn})]})]})})},lPn="_indicatorsContainer_k1d53_24",cPn={indicatorsContainer:lPn},uPn=500,dPn=e=>{const{openTour:t,steps:n,placement:r,mask:i,onClose:a}=e,[o,s]=b.useState(!1);b.useEffect(()=>{setTimeout(()=>{s(!0)},uPn)},[]);const l=()=>n.map((u,d)=>n.length<=2||d===n.length-1?{...u,prevButtonProps:{style:{display:"none"}}}:{...u,prevButtonProps:{onClick:a,children:efn,type:"link"}}),c=(u,d)=>E.jsxs("div",{className:cPn.indicatorsContainer,children:[u+1," of ",d]});return o?E.jsx(hGe,{open:t,steps:l(),mask:i,placement:r,indicatorsRender:c,onClose:a}):null},fPn="_newWorkspace_7pbwm_13",pPn="_newWorkspace_addButton_7pbwm_23",OAe={newWorkspace:fPn,newWorkspace_addButton:pPn},hPn=({value:e,onChange:t,onAdd:n})=>E.jsxs("div",{className:OAe.newWorkspace,children:[E.jsx($r,{placeholder:Y_n,value:e,onChange:t}),E.jsx(ut,{type:"primary",className:OAe.newWorkspace_addButton,disabled:e.length<3,onClick:n,children:K_n})]}),mPn="_item_18isr_13",gPn="_current_18isr_20",sI={item:mPn,current:gPn},vPn=()=>{const{header:{crumbs:e},routeParams:t,resetRouteName:n,location:r}=jT(),i=st(X_n);b.useEffect(()=>{n()},[r]);const a=l=>{const c=/:(\w+)/g;return l.replace(c,(d,f)=>i||t[f]||d)},o=l=>E.jsx(Jg,{to:l.href,children:l.title}),s=()=>e?.map((l,c)=>({href:a(l.link),title:E.jsx("div",{className:`${sI.item} ${c===e.length-1?sI.current:""}`,children:a(l.label)})}));return e?E.jsx("div",{className:sI.pageTitle_crumbs,children:E.jsx(Pde,{itemRender:o,items:[{href:"/",title:E.jsx("div",{className:sI.item,children:E.jsx(pDe,{})}),className:sI.item},...s()||[]]})}):null},yPn="_contentWrapper_16422_13",bPn="_mainLayout_16422_20",_Pn="_contentApp_16422_24",SPn="_header_16422_31",EPn="_header_rightSideButton_16422_41",CPn="_headerSmall_16422_45",wPn="_workspace_select_16422_49",xPn="_sidebar_16422_85",TPn="_sidebar_subtitle_16422_93",IPn="_sidebar_subtitle_tag_16422_98",APn="_sidebar_divider_16422_102",RPn="_sidebar_menu_16422_106",NPn="_logoWrapper_16422_162",OPn="_logoWrapper_withBackground_16422_172",LPn="_collapsed_16422_175",PPn="_logo_16422_162",kPn="_logoButton_16422_184",MPn="_collapseButton_16422_189",DPn="_workspace_16422_49",$Pn="_workspace_collapsed_16422_197",FPn="_workspace_title_16422_201",BPn="_workspace_info_16422_206",jPn="_workspace_info_title_16422_212",zPn="_workspace_info_label_16422_217",UPn="_workspaceButton_16422_225",HPn="_subMenu_16422_235",VPn="_haystackLogo_16422_242",GPn="_haystackLogo_img_16422_250",qPn="_pageTitle_16422_255",WPn="_pageTitle_backButton_16422_260",YPn="_pageTitle_container_16422_264",KPn="_pageTitle_header_16422_269",XPn="_popOver_16422_275",ZPn="_newWorkspaceItem_16422_289",ea={contentWrapper:yPn,mainLayout:bPn,contentApp:_Pn,header:SPn,header_rightSideButton:EPn,headerSmall:CPn,workspace_select:wPn,sidebar:xPn,sidebar_subtitle:TPn,sidebar_subtitle_tag:IPn,sidebar_divider:APn,sidebar_menu:RPn,logoWrapper:NPn,logoWrapper_withBackground:OPn,collapsed:LPn,logo:PPn,logoButton:kPn,collapseButton:MPn,workspace:DPn,workspace_collapsed:$Pn,workspace_title:FPn,workspace_info:BPn,workspace_info_title:jPn,workspace_info_label:zPn,workspaceButton:UPn,subMenu:HPn,haystackLogo:VPn,haystackLogo_img:GPn,pageTitle:qPn,pageTitle_backButton:WPn,pageTitle_container:YPn,pageTitle_header:KPn,popOver:XPn,newWorkspaceItem:ZPn},QPn="subtitle",JPn=()=>{const e=ir(),t=ys(),{sideBar:{activeKey:n},withSidebar:r=!0,path:i,header:{title:a,backButtonLink:o,withUserMenu:s=!0,rightSideButton:l,withSmallContainer:c,crumbs:u},searchParams:d}=jT(),[f,p]=b.useState(""),{role:h}=st(Pl),{openKeys:m,collapsed:g}=st(gQe),{currentWorkspace:v,currentWorkspaceId:y,workspaces:_}=st(lU),{maxWorkspaces:S}=st(JO),{Header:C,Content:w,Sider:x}=V1,T=h===zn.ADMIN,A=!!d.embed,I=r&&!A,R=!r,N=T&&o,{tourDismissed:P,setTourDismissed:L}=L_n("navigationTour"),[$,D]=b.useState([]),[z,U]=b.useState(!1),[H,M]=b.useState(!1),B=b.useRef(null),k=b.useRef(null),F=b.useRef(null),G=b.useRef(null),[q]=dj(),W=!!q.get("withSupportButton"),K=()=>I?[]:[];b.useEffect(()=>{B.current&&D(K())},[B.current]);function J(){t("/")}const te=ye=>{e(jpe(ye)),t("/")},ae=async()=>{await e(cQe(f)),e(sU()),p(""),te(f)},re=ye=>{ye.preventDefault(),ye.stopPropagation(),p(ye.currentTarget.value)},ue=ye=>{ye!==i&&t(ye)},de=()=>{e(T_n(!g))};function fe(){const ye={"Pipeline Templates":B,Playground:k,Groundedness:F};return q_n.map(me=>{const{icon:_e,label:Te,userAccess:xe,link:De,newLabel:Pe,betaLabel:Le}=me,ze=_e;return De?{key:Te,label:E.jsx(Jg,{to:De,children:E.jsxs("div",{children:[Te,Pe&&!g&&E.jsx(Si,{color:"success",className:ea.sidebar_subtitle_tag,children:sfn}),Le&&!Pe&&!g&&E.jsx(Si,{color:"warning",className:ea.sidebar_subtitle_tag,children:lfn})]})}),onClick:()=>ue(De),disabled:!xe?.includes(h),icon:E.jsx(ze,{style:{fontSize:18},ref:ye[Te]}),"data-testid":CF("sidebar",Te)}:{label:g?E.jsx(zi,{className:ea.sidebar_divider}):E.jsx("div",{className:ea.sidebar_subtitle,children:Te}),key:`${QPn}-${Te}`,title:"",tooltip:null,icon:_e?E.jsx(ze,{style:{fontSize:18}}):null}})}const ge=ye=>{e(x_n(ye))},oe=[{label:E.jsxs("span",{children:[E.jsx(nbt,{}),LP.documentation.label]}),key:LP.documentation.key,onClick:()=>U(!0)},{label:E.jsxs("span",{children:[E.jsx(nEt,{}),LP.contactSupport.label]}),key:LP.contactSupport.key,onClick:()=>M(!0)}],Ee=()=>{const ye={key:"newWorkspace",disabled:!0,className:ea.newWorkspaceItem,label:E.jsx(hPn,{value:f,onChange:re,onAdd:ae,"data-testid":"sidebar_newWorkspace_component"})},me=_.map(Te=>({label:Te.name,key:Te.workspace_id,onClick:()=>te(Te.name),"data-testid":CF("sidebar_workspace",Te.name)})),_e=[{label:g?null:E.jsxs("div",{className:ea.workspace_info,children:[E.jsx("span",{className:ea.workspace_info_title,children:v}),E.jsx("span",{className:ea.workspace_info_label,children:W_n})]}),key:v,className:g?ea.subMenu:"","data-testid":"sidebar_currentWorkspace_label",children:[...me,...T&&_.length<(S||IM)?[ye]:[]]}];return E.jsx("section",{className:`${ea.workspace} ${g?ea.collapsed:""}`,children:E.jsx(um,{className:ea.workspace_select,triggerSubMenuAction:"click",selectedKeys:[y],expandIcon:()=>g?E.jsxs(Mp,{size:"small",className:`${ea.workspaceButton} ${ea.collapsed}`,"data-testid":"sidebar_expandWorkspaces_button",children:[v[0],v[1]]}):E.jsx(qne,{className:ea.workspaceButton,"data-testid":"sidebar_expandWorkspaces_button"}),items:_e})})};function ce({withBackgroundColor:ye}={withBackgroundColor:!0}){const me=()=>g?null:E.jsx(pQe,{className:ea.logo});return E.jsxs("div",{className:`${ea.logoWrapper} ${ye?ea.logoWrapper_withBackground:""} ${g?ea.collapsed:""}`,children:[E.jsx("div",{role:"button",className:ea.logoButton,tabIndex:0,onClick:()=>J(),onKeyDown:()=>J(),children:E.jsx(me,{})}),I&&E.jsx(ut,{size:"small",onClick:()=>de(),className:`${ea.collapseButton} ${g?ea.collapsed:""}`,icon:g?E.jsx(Vne,{}):E.jsx(Hne,{})})]})}const he=()=>I?E.jsxs(x,{className:ea.sidebar,width:240,collapsedWidth:56,trigger:null,collapsed:g,"data-testid":"sidebar",children:[E.jsxs("div",{children:[Ee(),E.jsx(um,{className:ea.sidebar_menu,selectedKeys:[n||""],openKeys:m,onOpenChange:ye=>ge(ye),defaultSelectedKeys:["Home"],mode:"inline",inlineIndent:8,items:fe()})]}),ce()]}):null;return E.jsx("div",{className:ea.contentWrapper,children:E.jsxs(V1,{className:ea.mainLayout,children:[he(),E.jsxs(V1,{className:ea.contentApp,children:[!A&&E.jsxs(C,{className:`${ea.header} ${c?ea.headerSmall:""}`,children:[R?ce({withBackgroundColor:!1}):null,E.jsxs("div",{className:ea.pageTitle,children:[u&&E.jsx(vPn,{}),a&&!u&&E.jsxs(E.Fragment,{children:[N&&E.jsx(ut,{icon:E.jsx(AE,{}),size:"small",type:"text",onClick:()=>t(o),className:ea.pageTitle_backButton}),E.jsx("div",{className:ea.pageTitle_container,children:E.jsx("h2",{className:ea.pageTitle_header,children:a})})]})]}),s&&E.jsxs(E.Fragment,{children:[W&&!z?E.jsx(Vo,{menu:{items:oe},placement:"bottomRight",trigger:["click"],children:E.jsx(ut,{size:"small",icon:E.jsx(p$,{}),ref:G,children:Nae})}):E.jsx(tv,{rootClassName:ea.popOver,arrow:!1,content:E.jsx(sPn,{}),trigger:"click",open:z,onOpenChange:ye=>U(ye),placement:"bottomRight",children:E.jsx(ut,{size:"small",icon:E.jsx(p$,{}),ref:G,children:Nae})}),E.jsx(c2n,{})]}),l&&E.jsx(ut,{className:ea.header_rightSideButton,type:l.type,onClick:()=>l.redirectPath&&t(l.redirectPath),children:l.text})]}),E.jsx(w,{id:"contentAppSection",children:E.jsx(P0t,{})})]}),!!$.length&&T&&E.jsx(dPn,{openTour:!P,steps:$,placement:"left",onClose:L}),E.jsx(oSn,{title:P_n,okButtonText:k_n,open:H,setOpenContactSupportModal:M})]})})},ekn="_loadingIndicator_1nxoj_1",tkn={loadingIndicator:ekn},$o=()=>E.jsx("div",{className:tkn.loadingIndicator,children:E.jsx(v0,{size:"large"})}),da=({component:e,roles:t,...n})=>{const{role:r}=st(Pl),{user:i}=iO();if(!i||!t.includes(r))return E.jsx(ky,{to:"/login"});const a=ewt(e,n);return E.jsx(a,{})},kl=os.create({baseURL:MWe,headers:{[GE.X_CLIENT_SOURCE]:"deepset-cloud-ui"}});kl.interceptors.request.use(async e=>{const t=e;if(t.headers&&!t.headers.Authorization){const{user_token:n}=JSON.parse(sessionStorage.getItem("dcExtcurrent")||"{}");if(n)t.headers.Authorization=`Bearer ${n}`;else try{const r=await rm.getAccessTokenSilently({});t.headers.Authorization=`Bearer ${r}`}catch(r){console.error(r)}}return t.url&&(t.url=encodeURI(t.url)),t},e=>Promise.reject(e));function nkn(e,t,n){return kl.get(`/api/v1/workspaces/${e}/shared_prototypes/${t}`,{headers:{Authorization:`Bearer ${n}`,"Content-Type":"application/json"}})}function rkn(e,t,n){return kl.get(`/api/v2/workspaces/${e}/shared_jobs/${t}`,{headers:{Authorization:`Bearer ${n}`,"Content-Type":"application/json"}})}function ikn(e,t,n){return kl.post(`/api/v1/workspaces/${e}/shared_prototype_users${n?`?existing_user_id=${n}`:""}`,{},{headers:{Authorization:`Bearer ${t}`,"Content-Type":"application/json"}})}const akn=(e,t)=>kl.get(`/api/v1/workspaces/${t}/pipelines/${e}/meta`),okn=(e,t,n,r,i)=>kl.get(`/api/v1/workspaces/${i}/pipelines/${e}/meta/${t}`,{params:{query:`*${n}*`,limit:r}}),skn=(e,t,n)=>kl.get(`/api/v1/workspaces/${n}/pipelines/${e}/meta/${t}/aggregation`),lkn="_protectedRoute_loading_wrapper_vtxhf_13",ckn={protectedRoute_loading_wrapper:lkn},LAe=({Component:e,type:t})=>{const n=ys(),{isAuthenticated:r}=iO(),[i]=dj(),a=i.get("share_token"),[o,s]=b.useState(!1),{organization:l}=st(Pl),c=async(p,h,m,g)=>{try{const v=t===yR.JOB?await rkn(h,m,g):await nkn(p,m,g);return v.data?v.data:v}catch{return s(!1),n("/not-found-prototype"),!1}},u=async(p,h,m,g)=>{const{is_revoked:v}=await c(h,p,m,g);v&&n("/not-found-prototype"),s(!0)},d=async(p,h,m,g)=>{const v=await c(h,p,m,a);if(!v)return;const y=t===yR.JOB?v.workspace_name:h,_=JSON.parse(localStorage.getItem("dcExtusers")||"{}"),S=_[p];try{const C=await ikn(y,g,S?S.user_id:void 0);C.data&&(localStorage.setItem("dcExtusers",JSON.stringify({..._,[p]:C.data})),sessionStorage.setItem("dcExtcurrent",JSON.stringify({workspace:p,...C.data})),s(!0))}catch{n("/error")}};return b.useEffect(()=>{if(!a){n("/not-found-prototype");return}try{const{share_id:p,workspace_name:h,workspace_id:m,organization_id:g,shared_job_info:v}=iQe(a),y=h||ZO;r&&l===g||t===yR.JOB?u(m||v.workspace_id,y,p||v.shared_job_id,a):d(m||v.workspace_id,y,p||v.shared_job_id,a)}catch{n("/not-found-prototype")}},[]),o?E.jsx(e,{}):E.jsx("div",{className:ckn.protectedRoute_loading_wrapper,children:E.jsx(v0,{indicator:E.jsx(Np,{style:{fontSize:64},spin:!0})})})},Iet=e=>e.notificationStore,ukn=It(Iet,e=>e.notifications),dkn=It(Iet,e=>e.sequentialNotifications),fkn="_messageContainer_fjwy0_1",pkn={messageContainer:fkn},hkn=()=>{const e=st(ukn),t=st(dkn),[n,r]=Dp.useMessage(),[i,a]=dfe.useNotification(),o=b.useRef({key:null,mode:null}),s=f=>{const{key:p,mode:h,type:m,title:g,content:v,duration:y}=f;return h===x1.Notification?{key:p,type:(m===yn.Loading?yn.Info:m)||yn.Info,message:g,description:v,duration:y}:{key:p,type:m||yn.Info,content:E.jsx("div",{"data-testid":"message-container",children:f.content}),duration:y,className:pkn.messageContainer}},l=(f,p)=>{f===x1.Notification?i.open(p):n.open(p)},c=f=>{const{mode:p=x1.Message}=f,h=s(f);l(p,h)},u=f=>{const p=f.key||Date.now().toString(),{mode:h=x1.Message}=f,m=s({...f,key:p});o.current={key:p,mode:h},l(h,m)},d=()=>{const{key:f,mode:p}=o.current;f&&(p===x1.Notification?i.destroy(f):n.destroy(f),o.current={key:null,mode:null})};return b.useEffect(()=>{if(t.length>0){const f=t[t.length-1],p=f.key||Date.now().toString();o.current.key!==p&&(d(),u({...f,key:p}))}},[t]),b.useEffect(()=>{const f=e[e.length-1];f&&c(f)},[e]),E.jsxs(E.Fragment,{children:[r," ",a]})},mkn=e=>{const[t,n]=b.useState(null),r=b.useCallback(o=>{if(o!=="undefined")return JSON.parse(o)},[]),i=b.useCallback(()=>{try{const o=window.localStorage.getItem(e);return o?r(o):null}catch{return null}},[e,r]);b.useEffect(()=>{n(i())},[e]);const a=b.useCallback(o=>{o?.key&&o.key!==e||n(i())},[e,i]);return b.useEffect(()=>(window.addEventListener("storage",a),()=>{window.removeEventListener("storage",a)}),[e]),t},gkn={id:"v0.10.15",title:E.jsx(E.Fragment,{children:E.jsx("div",{children:" What's new in deepset Cloud?"})}),content:E.jsx(E.Fragment,{children:E.jsxs("ul",{children:[E.jsxs("li",{children:["Dive into the new"," ",E.jsx("a",{href:"https://cloud.deepset.ai/settings/usage",target:"_blank",rel:"noreferrer",children:"Usage"})," ","dashboard and gain insights into your pipeline usage. At a glance, you can check the number of pipelines you've deployed and the resources and storage they're consuming."]}),E.jsxs("li",{children:["We've enhanced the Playground with a chat interface to make it easier and more fun for you to test your chat pipelines. Head over to"," ",E.jsx("a",{href:"https://cloud.deepset.ai/playground",target:"_blank",rel:"noreferrer",children:"Playground"}),", choose a chat pipeline, and try it out!"]})]})})},vkn="_releaseNotes_gn5l9_13",ykn={releaseNotes:vkn},bkn=()=>{const{role:e}=st(Pl),[t,n]=dfe.useNotification({maxCount:1}),r=mkn(QE),i=a=>{const o=JSON.parse(localStorage.getItem("dcNotifications")||"[]");localStorage.setItem("dcNotifications",JSON.stringify([...o,a]))};return b.useEffect(()=>{if(!r||e!==zn.ADMIN)return;const a=JSON.parse(localStorage.getItem("dcNotifications")||"[]"),{id:o,title:s,content:l}=gkn;a&&a.includes(o)||hQe("navigationTour")&&t.open({message:s,description:l,duration:0,className:ykn.releaseNotes,placement:"topRight",onClose:()=>i(o)})},[r?.featureTour?.navigationTour,e]),E.jsxs(E.Fragment,{children:[" ",n," "]})},_kn=e=>({type:LKe,payload:e}),Skn={type:PKe},Ekn={type:kKe},PAe={type:MKe},Nhe=e=>e.uploadStore,Ckn=It(Nhe,e=>e.uploadData),wkn=It(Nhe,e=>e.isUploadingStarted),xkn=It(Nhe,e=>e.isUploadingCompleted),kAe=20,Tkn=()=>{const e=ir(),t=st(Ckn),[n,r]=b.useState([]),[i,a]=b.useState({}),[o,s]=b.useState([]),[l,c]=b.useState(!1),[u,d]=b.useState(""),f=b.useRef(""),p=st(xkn),h=st(wkn);b.useEffect(()=>{!t?.length||!h||r(t.reduce((C,{files:w})=>[...C,...w],[]))},[t.length,!!h]),b.useEffect(()=>{if(f.current="",l||s(n.filter(C=>C.uploadStatus===Yc.error)),n.length===1){const[{name:C}]=n;d(C)}},[n]);const m=(C,w,x,T)=>{const A=n,I=A.find(R=>R.uid===C);I&&(I.uploadStatus=w,x&&(I.errorMessage=x,I.errorCode=T),r([...A]))},g=(C,w,x)=>{const T=new FormData;T.append("file_name",C.name),T.append("file",C);const A={"Content-Type":"multipart/form-data"};return m(C.uid,Yc.uploading),w(T,A).then(I=>{I?.data?.query_set_id&&(f.current=I.data.query_set_id),m(C.uid,Yc.success)}).catch(I=>{f.current="",m(C.uid,Yc.error,Wn(I),I.response?.status||Qs.INTERNAL_SERVER_ERROR),a(R=>({...R,[C.uid]:{uid:C.uid,uploadFn:w,afterUploadFn:x}}))})},v=async(C,w,x)=>{let T=0;for(;T<C.length;){const A=C.slice(T,T+kAe);await Promise.all(A.map(I=>g(I,w,x))),T+=kAe}};return{uploadFiles:n,setUploadFiles:r,failedUploads:i,failedFilesToRetry:o,setFailedUploads:a,singleFileName:u,isRetrying:l,uploadFilesData:async()=>{await Promise.all(t.map(async({files:C,uploadFn:w,afterUploadFn:x})=>{const T=C.filter(A=>!A.uploadStatus);T?.length&&(await v(T,w,x),x(f.current))})),e(Ekn)},retrySingleFile:async C=>{if(!i[C])return;const{uploadFn:w,afterUploadFn:x}=i[C],T=n.find(A=>A.uid===C);await g(T,w,x),x()},retryFailedFiles:async()=>{c(!0),await Promise.all(o.map(async C=>{const{uploadFn:w,afterUploadFn:x}=i[C.uid];await g(C,w,x)})),c(!1)},isUploadingCompleted:p,isUploadingStarted:h}},Ikn="_allFailedAlert_1lc7h_13",Akn="_retryButton_1lc7h_22",KQ={allFailedAlert:Ikn,retryButton:Akn},Rkn={ERRORED_ALL_UPLOAD_DESCRIPTION:h2n,ERRORED_ALL_UPLOAD_HEADER:p2n,ERRORED_SINGLE_UPLOAD_DESCRIPTION:m2n,ERRORED_WRONG_SINGLE_FILE_TYPE:g2n,RETRY_FAILED_BUTTON_LABEL:y2n,SUCCESSFUL_UPLOAD_HEADER:S2n,SUCCESSFUL_UPLOAD_HEADER_SINGULAR:E2n,LARGE_AMOUNT_FILES_HEADER:b2n,LARGE_AMOUNT_FILES_DESCRIPTION:_2n,UPLOADING_WITH_PYTHON_SDK_LABEL:O2n},Nkn=415,Okn=3e3,Lkn=`${zu}docs/upload-files-with-python`,Pkn=({filesList:e,isUploadingCompleted:t,onRetryFailedFiles:n,isRetrying:r,fileName:i,labels:a={}})=>{let o=0,s=0;const l={...Rkn,...a};if(e.length>=Okn)return E.jsx("div",{className:KQ.allFailedAlert,children:E.jsx(Ka,{message:l.LARGE_AMOUNT_FILES_HEADER,description:Pn(l.LARGE_AMOUNT_FILES_DESCRIPTION,{uploadWithPythoSDK:E.jsx("a",{href:Lkn,target:"_blank",rel:"noreferrer",children:l.UPLOADING_WITH_PYTHON_SDK_LABEL})}),type:"warning",banner:!0,showIcon:!1,"data-testid":"uploadModal_alert_warning"})});if(t){if(o=e.filter(c=>c.uploadStatus===Yc.success).length,s=e.filter(c=>c.uploadStatus===Yc.error).length,s>0||s===e.length){let c=l.ERRORED_ALL_UPLOAD_HEADER;if(s===1){const u=e.find(d=>d.uploadStatus===Yc.error);u?.errorCode===Nkn?c=l.ERRORED_WRONG_SINGLE_FILE_TYPE:c=u?.errorMessage||c}return E.jsx("div",{className:KQ.allFailedAlert,children:E.jsx(Ka,{message:Pn(c,{documentation:E.jsx("a",{href:I2n,target:"_blank",rel:"noreferrer",children:v2n})}),description:Pn(s===1?l.ERRORED_SINGLE_UPLOAD_DESCRIPTION:l.ERRORED_ALL_UPLOAD_DESCRIPTION,{retryButton:E.jsxs(ut,{type:"link",className:KQ.retryButton,onClick:n,children:[l.RETRY_FAILED_BUTTON_LABEL," (",s,")"]},"retryButton")}),type:"error",banner:!0,showIcon:!1,"data-testid":"uploadModal_alert_error"})})}if(s===0&&o>0&&!r)return E.jsx(Ka,{message:o===1?Pn(l.SUCCESSFUL_UPLOAD_HEADER_SINGULAR,{fileName:i}):Pn(l.SUCCESSFUL_UPLOAD_HEADER,{successfulUploads:o}),type:"success",banner:!0,showIcon:!0,"data-testid":"uploadModal_alert_success"})}return null},kkn="_card_x2y3o_25",Mkn="_uploadPreview_x2y3o_25",Dkn="_uploadPreview_header_x2y3o_46",$kn="_uploadPreview_content_x2y3o_55",XQ={card:kkn,uploadPreview:Mkn,uploadPreview_header:Dkn,uploadPreview_content:$kn},MAe=50,Fkn=()=>{const e=ir(),{uploadFiles:t,setUploadFiles:n,uploadFilesData:r,failedFilesToRetry:i,singleFileName:a,isRetrying:o,retrySingleFile:s,retryFailedFiles:l,isUploadingCompleted:c,isUploadingStarted:u}=Tkn(),[d,f]=b.useState(MAe);b.useEffect(()=>{e(PAe),n([])},[]),b.useEffect(()=>{t?.length&&r()},[t.length]);const p=()=>{e(PAe),n([])},h=()=>{if(c&&!o)return w2n;const m=o?i:t,g=m.filter(v=>v.uploadStatus===Yc.success).length;return Pn(C2n,{completedFiles:g,inProgressFiles:m.length})};return u?E.jsxs("div",{className:XQ.uploadPreview,"data-testid":"uploadPreview",children:[E.jsxs("div",{className:XQ.uploadPreview_header,children:[h(),E.jsx(ut,{icon:E.jsx(Ic,{}),size:"small",type:"text",onClick:()=>p()})]}),E.jsx(Pkn,{filesList:t,isUploadingCompleted:c,onRetryFailedFiles:l,isRetrying:o,fileName:a}),E.jsx("div",{className:XQ.uploadPreview_content,children:E.jsx(Gpe,{filesList:t,listLength:d,onLoadMore:()=>{f(d+MAe)},onRetrySingleFile:s,isUploadingCompleted:c})})]}):null},Aet="/assets/deepset-cloud-logo-darkblue.8x3aAYVZ.svg",Bkn="Redirecting... You can also click %hereButton% to redirect.",loe="here",jkn="We encountered an error. Click %loginLink% to return to the Log In page.",zkn="Redirecting... You can also click %loginLink%.",Ukn=()=>{const e=ir(),{user:t,isAuthenticated:n,isLoading:r,error:i}=iO(),a=st(R_n),o=()=>{e(h_n())};return b.useEffect(()=>{r||i||(n&&t&&e(uQe({authUser:t,redirect:!0})),!n&&!t&&o())},[n,i,a,r,e,t]),E.jsxs("div",{className:"auth-content",children:[E.jsx(ofe,{width:375,style:{marginBottom:32},src:Aet,preview:!1}),a||i?E.jsx("span",{children:Pn(jkn,{loginLink:E.jsx(ut,{type:"link",onClick:()=>o(),style:{padding:0},children:loe})})}):E.jsx("span",{children:Pn(zkn,{loginLink:E.jsx(ut,{type:"link",onClick:()=>o(),style:{padding:0},children:loe})})})]})},Hkn=()=>{const e=ir();return b.useEffect(()=>{e(Yae())},[e]),E.jsxs("div",{className:"auth-content","data-testid":"logoutPage",children:[E.jsx(ofe,{width:375,style:{marginBottom:32},src:Aet,preview:!1}),E.jsx("span",{children:Pn(Bkn,{hereButton:E.jsx(ut,{type:"link",onClick:()=>e(Yae()),style:{padding:0},children:loe})})})]})};class Yh{static instance;controllers=new Map;static getInstance(){return Yh.instance||(Yh.instance=new Yh),Yh.instance}create(t){this.controllers.has(t)&&this.abort(t);const n=new AbortController;return this.controllers.set(t,n),n}get(t){return this.controllers.get(t)}abort(t){const n=this.controllers.get(t);n&&(n.abort(),this.controllers.delete(t))}abortAll(){this.controllers.forEach(t=>t.abort()),this.controllers.clear()}}const Vkn=(e,t)=>kl.post(`/api/v1/workspaces/${t}/search_sessions`,e),Gkn=(e,t,n,r)=>kl.post(`/api/v1/workspaces/${r}/pipelines/${e}/chat`,t,{headers:n}),qkn=(e,t,n,r={},i)=>kl.post(`/api/v1/workspaces/${i}/pipelines/${e}/chat-stream`,{include_result:!0,...t},{...r,onDownloadProgress:uU(n)}),Wkn=(e,t,n,r)=>kl.post(`/api/v1/workspaces/${r}/pipelines/${e}/search`,t,{headers:n}),Ykn=async(e,t,n,r={},i)=>kl.post(`/api/v1/workspaces/${i}/pipelines/${e}/search-stream`,{include_result:!0,...t},{...r,onDownloadProgress:uU(n)}),IF={type:XYe},Kkn={type:QYe},Ret=(e,t)=>({type:JYe,payload:{resultId:e,referenceId:t}}),Xkn={type:eKe},DAe=e=>({type:tKe,payload:e}),Zkn=e=>({type:ZYe,payload:e}),LM=e=>({type:GYe,payload:e}),Qkn=e=>({type:qYe,payload:e}),Net=Ut(w7,async({pipelineName:e,query:t,viewPrompts:n,filters:r={},params:i,sessionId:a,isExternal:o,isV2:s,streaming:l},{dispatch:c,rejectWithValue:u,getState:d})=>{const f=o?Wkn:_Qe,p=o?Ykn:SQe;let h;if(o){const{tokenData:v}=d().sharedPrototypeStore;h=v?.workspaceName}const{debugMode:m}=d().searchStore,g={filters:s?$pe(r):Dpe(r),params:i,search_session_id:a,view_prompts:n,debug:!!m};try{if(!l){const S={...g,queries:[t]};return(await f(e,S,{},h)).data}const v=Yh.getInstance().create(qO.SEARCH_QUERY),y={...g,query:t};await(async()=>{await new Promise((S,C)=>{p(e,y,w=>{const x=Fpe(w);if(x?.query_id){if(x?.error)return C(x.error);c(Qkn({...x,query:t}))}},{signal:v.signal},h).catch(C)})})()}catch(v){if(v instanceof rpe)return;const y=L_(v);return c(jn({content:Wn(v),duration:mm.long,type:y===Qs.UNDEPLOYED_PIPELINE_ERROR_STATUS?yn.Warning:yn.Error})),u(v)}}),Oet=Ut(udn,async({pipelineId:e,isExternal:t},{rejectWithValue:n,getState:r})=>{const i=t?Vkn:vSn;let a;if(t){const{tokenData:o}=r().sharedPrototypeStore;a=o?.workspaceName}try{return(await i({pipeline_id:e},a)).data}catch(o){return n(o)}}),Let=Ut(pae,async(e,{rejectWithValue:t})=>{try{return(await ySn(e)).data}catch(n){return t(n)}}),Jkn=e=>({type:WYe,payload:e}),e9n=Ut(x7,async({pipelineName:e,query:t,sessionId:n,viewPrompts:r,filters:i={},params:a,isExternal:o,isV2:s,streaming:l},{dispatch:c,rejectWithValue:u,getState:d})=>{const f=o?Gkn:EQe,p=o?qkn:CQe;let h;if(o){const{tokenData:y}=d().sharedPrototypeStore;h=y?.workspaceName}const{debugMode:m}=d().searchStore,g={search_session_id:n,filters:s?$pe(i):Dpe(i),params:a,view_prompts:r,debug:!!m},v={[GE.X_CLIENT_SOURCE_PATH]:nU.CHAT};try{if(!l){const C={...g,queries:[t]},{data:w}=await f(e,C,v,h);return w}const y=Yh.getInstance().create(qO.CHAT_QUERY),_={...g,query:t};await(async()=>{await new Promise((C,w)=>{p(e,_,x=>{const T=Fpe(x);if(T?.query_id){if(T?.error)return w(T.error);c(Jkn({...T,query:t}))}},{headers:v,signal:y.signal},h).catch(w)})})()}catch(y){if(y instanceof rpe)return;const _=L_(y);return c(jn({content:Wn(y),duration:mm.long,type:_===Qs.UNDEPLOYED_PIPELINE_ERROR_STATUS?yn.Warning:yn.Error})),u(y)}}),t9n=e=>({type:YYe,payload:e}),n9n=Ut(T7,async({pipelineName:e,pipelineOutputType:t,query:n,sessionId:r,filters:i={},viewPrompts:a,params:o,isV2:s,streaming:l,playgroundId:c},{dispatch:u,rejectWithValue:d})=>{const f={[GE.X_CLIENT_SOURCE_PATH]:nU.PROMPT_EXPLORER},p=t!==xd.CHAT?_Qe:EQe,h=t!==xd.CHAT?SQe:CQe,m={search_session_id:r,filters:s?$pe(i):Dpe(i),params:o,view_prompts:a};try{if(!l){const _={...m,queries:[n]},{data:S}=await p(e,_,f);return S}const g=Yh.getInstance().create(`${qO.PROMPT_EXPLORER_QUERY}_${c}`),v={...m,query:n};await(async()=>{await new Promise((_,S)=>{h(e,v,C=>{const w=Fpe(C);if(w?.query_id){if(w?.error)return S(w.error);u(t9n({...w,query:n,playgroundId:c,params:o}))}},{headers:f,signal:g.signal}).catch(S)})})()}catch(g){if(g instanceof rpe)return;const v=L_(g);return u(jn({content:Wn(g),duration:mm.long,type:v===Qs.UNDEPLOYED_PIPELINE_ERROR_STATUS?yn.Warning:yn.Error})),d(g)}}),r9n=e=>({type:KYe,payload:e}),i9n=e=>({type:iKe,payload:e}),Uu=e=>e.searchStore,Pet=It(Uu,e=>e.status),a9n=It(Uu,e=>e.statusPromptExplorer),ket=It(Uu,e=>e.searchPipeline),Met=It(Uu,e=>e.message),SU=It(Uu,e=>e.searchResults),o9n=It(Uu,e=>e.queryResultsPromptExplorer),s9n=It(Uu,e=>e.searchSessions),l9n=It(Uu,e=>e.searchSessionsStatus),c9n=It(Uu,e=>e.referenceDrawerVisible),u9n=It(Uu,e=>e.promptModalVisible),d9n=It(Uu,e=>e.activePrompts),f9n=It(Uu,e=>e.activeReference),p9n=It(Uu,e=>e.chatQueryStatus),Det=It(Uu,e=>e.chatResults),h9n=It(Uu,e=>e.debugMode);var yd=Uint8Array,Iu=Uint16Array,n6=Uint32Array,EU=new yd([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),CU=new yd([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),coe=new yd([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),$et=function(e,t){for(var n=new Iu(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];for(var i=new n6(n[30]),r=1;r<30;++r)for(var a=n[r];a<n[r+1];++a)i[a]=a-n[r]<<5|r;return[n,i]},Fet=$et(EU,2),Bet=Fet[0],uoe=Fet[1];Bet[28]=258,uoe[258]=28;var jet=$et(CU,0),m9n=jet[0],$Ae=jet[1],doe=new Iu(32768);for(var Bo=0;Bo<32768;++Bo){var uy=(Bo&43690)>>>1|(Bo&21845)<<1;uy=(uy&52428)>>>2|(uy&13107)<<2,uy=(uy&61680)>>>4|(uy&3855)<<4,doe[Bo]=((uy&65280)>>>8|(uy&255)<<8)>>>1}var Wg=function(e,t,n){for(var r=e.length,i=0,a=new Iu(t);i<r;++i)++a[e[i]-1];var o=new Iu(t);for(i=0;i<t;++i)o[i]=o[i-1]+a[i-1]<<1;var s;if(n){s=new Iu(1<<t);var l=15-t;for(i=0;i<r;++i)if(e[i])for(var c=i<<4|e[i],u=t-e[i],d=o[e[i]-1]++<<u,f=d|(1<<u)-1;d<=f;++d)s[doe[d]>>>l]=c}else for(s=new Iu(r),i=0;i<r;++i)s[i]=doe[o[e[i]-1]++]>>>15-e[i];return s},s_=new yd(288);for(var Bo=0;Bo<144;++Bo)s_[Bo]=8;for(var Bo=144;Bo<256;++Bo)s_[Bo]=9;for(var Bo=256;Bo<280;++Bo)s_[Bo]=7;for(var Bo=280;Bo<288;++Bo)s_[Bo]=8;var r6=new yd(32);for(var Bo=0;Bo<32;++Bo)r6[Bo]=5;var g9n=Wg(s_,9,0),v9n=Wg(s_,9,1),y9n=Wg(r6,5,0),b9n=Wg(r6,5,1),ZQ=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},vh=function(e,t,n){var r=t/8>>0;return(e[r]|e[r+1]<<8)>>>(t&7)&n},QQ=function(e,t){var n=t/8>>0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>>(t&7)},Ohe=function(e){return(e/8>>0)+(e&7&&1)},zet=function(e,t,n){(n==null||n>e.length)&&(n=e.length);var r=new(e instanceof Iu?Iu:e instanceof n6?n6:yd)(n-t);return r.set(e.subarray(t,n)),r},_9n=function(e,t,n){var r=e.length,i=!t||n,a=!n||n.i;n||(n={}),t||(t=new yd(r*3));var o=function(W){var K=t.length;if(W>K){var J=new yd(Math.max(K*2,W));J.set(t),t=J}},s=n.f||0,l=n.p||0,c=n.b||0,u=n.l,d=n.d,f=n.m,p=n.n,h=r*8;do{if(!u){n.f=s=vh(e,l,1);var m=vh(e,l+1,3);if(l+=3,m)if(m==1)u=v9n,d=b9n,f=9,p=5;else if(m==2){var _=vh(e,l,31)+257,S=vh(e,l+10,15)+4,C=_+vh(e,l+5,31)+1;l+=14;for(var w=new yd(C),x=new yd(19),T=0;T<S;++T)x[coe[T]]=vh(e,l+T*3,7);l+=S*3;var A=ZQ(x),I=(1<<A)-1;if(!a&&l+C*(A+7)>h)break;for(var R=Wg(x,A,1),T=0;T<C;){var N=R[vh(e,l,I)];l+=N&15;var g=N>>>4;if(g<16)w[T++]=g;else{var P=0,L=0;for(g==16?(L=3+vh(e,l,3),l+=2,P=w[T-1]):g==17?(L=3+vh(e,l,7),l+=3):g==18&&(L=11+vh(e,l,127),l+=7);L--;)w[T++]=P}}var $=w.subarray(0,_),D=w.subarray(_);f=ZQ($),p=ZQ(D),u=Wg($,f,1),d=Wg(D,p,1)}else throw"invalid block type";else{var g=Ohe(l)+4,v=e[g-4]|e[g-3]<<8,y=g+v;if(y>r){if(a)throw"unexpected EOF";break}i&&o(c+v),t.set(e.subarray(g,y),c),n.b=c+=v,n.p=l=y*8;continue}if(l>h)throw"unexpected EOF"}i&&o(c+131072);for(var z=(1<<f)-1,U=(1<<p)-1,H=f+p+18;a||l+H<h;){var P=u[QQ(e,l)&z],M=P>>>4;if(l+=P&15,l>h)throw"unexpected EOF";if(!P)throw"invalid length/literal";if(M<256)t[c++]=M;else if(M==256){u=null;break}else{var B=M-254;if(M>264){var T=M-257,k=EU[T];B=vh(e,l,(1<<k)-1)+Bet[T],l+=k}var F=d[QQ(e,l)&U],G=F>>>4;if(!F)throw"invalid distance";l+=F&15;var D=m9n[G];if(G>3){var k=CU[G];D+=QQ(e,l)&(1<<k)-1,l+=k}if(l>h)throw"unexpected EOF";i&&o(c+131072);for(var q=c+B;c<q;c+=4)t[c]=t[c-D],t[c+1]=t[c+1-D],t[c+2]=t[c+2-D],t[c+3]=t[c+3-D];c=q}}n.l=u,n.p=l,n.b=c,u&&(s=1,n.m=f,n.d=d,n.n=p)}while(!s);return c==t.length?t:zet(t,0,c)},Kv=function(e,t,n){n<<=t&7;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8},lI=function(e,t,n){n<<=t&7;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8,e[r+2]|=n>>>16},JQ=function(e,t){for(var n=[],r=0;r<e.length;++r)e[r]&&n.push({s:r,f:e[r]});var i=n.length,a=n.slice();if(!i)return[new yd(0),0];if(i==1){var o=new yd(n[0].s+1);return o[n[0].s]=1,[o,1]}n.sort(function(C,w){return C.f-w.f}),n.push({s:-1,f:25001});var s=n[0],l=n[1],c=0,u=1,d=2;for(n[0]={s:-1,f:s.f+l.f,l:s,r:l};u!=i-1;)s=n[n[c].f<n[d].f?c++:d++],l=n[c!=u&&n[c].f<n[d].f?c++:d++],n[u++]={s:-1,f:s.f+l.f,l:s,r:l};for(var f=a[0].s,r=1;r<i;++r)a[r].s>f&&(f=a[r].s);var p=new Iu(f+1),h=foe(n[u-1],p,0);if(h>t){var r=0,m=0,g=h-t,v=1<<g;for(a.sort(function(w,x){return p[x.s]-p[w.s]||w.f-x.f});r<i;++r){var y=a[r].s;if(p[y]>t)m+=v-(1<<h-p[y]),p[y]=t;else break}for(m>>>=g;m>0;){var _=a[r].s;p[_]<t?m-=1<<t-p[_]++-1:++r}for(;r>=0&&m;--r){var S=a[r].s;p[S]==t&&(--p[S],++m)}h=t}return[new yd(p),h]},foe=function(e,t,n){return e.s==-1?Math.max(foe(e.l,t,n+1),foe(e.r,t,n+1)):t[e.s]=n},FAe=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new Iu(++t),r=0,i=e[0],a=1,o=function(l){n[r++]=l},s=1;s<=t;++s)if(e[s]==i&&s!=t)++a;else{if(!i&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(i),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(i);a=1,i=e[s]}return[n.subarray(0,r),t]},cI=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},poe=function(e,t,n){var r=n.length,i=Ohe(t+2);e[i]=r&255,e[i+1]=r>>>8,e[i+2]=e[i]^255,e[i+3]=e[i+1]^255;for(var a=0;a<r;++a)e[i+a+4]=n[a];return(i+4+r)*8},BAe=function(e,t,n,r,i,a,o,s,l,c,u){Kv(t,u++,n),++i[256];for(var d=JQ(i,15),f=d[0],p=d[1],h=JQ(a,15),m=h[0],g=h[1],v=FAe(f),y=v[0],_=v[1],S=FAe(m),C=S[0],w=S[1],x=new Iu(19),T=0;T<y.length;++T)x[y[T]&31]++;for(var T=0;T<C.length;++T)x[C[T]&31]++;for(var A=JQ(x,7),I=A[0],R=A[1],N=19;N>4&&!I[coe[N-1]];--N);var P=c+5<<3,L=cI(i,s_)+cI(a,r6)+o,$=cI(i,f)+cI(a,m)+o+14+3*N+cI(x,I)+(2*x[16]+3*x[17]+7*x[18]);if(P<=L&&P<=$)return poe(t,u,e.subarray(l,l+c));var D,z,U,H;if(Kv(t,u,1+($<L)),u+=2,$<L){D=Wg(f,p,0),z=f,U=Wg(m,g,0),H=m;var M=Wg(I,R,0);Kv(t,u,_-257),Kv(t,u+5,w-1),Kv(t,u+10,N-4),u+=14;for(var T=0;T<N;++T)Kv(t,u+3*T,I[coe[T]]);u+=3*N;for(var B=[y,C],k=0;k<2;++k)for(var F=B[k],T=0;T<F.length;++T){var G=F[T]&31;Kv(t,u,M[G]),u+=I[G],G>15&&(Kv(t,u,F[T]>>>5&127),u+=F[T]>>>12)}}else D=g9n,z=s_,U=y9n,H=r6;for(var T=0;T<s;++T)if(r[T]>255){var G=r[T]>>>18&31;lI(t,u,D[G+257]),u+=z[G+257],G>7&&(Kv(t,u,r[T]>>>23&31),u+=EU[G]);var q=r[T]&31;lI(t,u,U[q]),u+=H[q],q>3&&(lI(t,u,r[T]>>>5&8191),u+=CU[q])}else lI(t,u,D[r[T]]),u+=z[r[T]];return lI(t,u,D[256]),u+z[256]},S9n=new n6([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),E9n=function(e,t,n,r,i,a){var o=e.length,s=new yd(r+o+5*(1+Math.floor(o/7e3))+i),l=s.subarray(r,s.length-i),c=0;if(!t||o<8)for(var u=0;u<=o;u+=65535){var d=u+65535;d<o?c=poe(l,c,e.subarray(u,d)):(l[u]=a,c=poe(l,c,e.subarray(u,o)))}else{for(var f=S9n[t-1],p=f>>>13,h=f&8191,m=(1<<n)-1,g=new Iu(32768),v=new Iu(m+1),y=Math.ceil(n/3),_=2*y,S=function(fe){return(e[fe]^e[fe+1]<<y^e[fe+2]<<_)&m},C=new n6(25e3),w=new Iu(288),x=new Iu(32),T=0,A=0,u=0,I=0,R=0,N=0;u<o;++u){var P=S(u),L=u&32767,$=v[P];if(g[L]=$,v[P]=L,R<=u){var D=o-u;if((T>7e3||I>24576)&&D>423){c=BAe(e,l,0,C,w,x,A,I,N,u-N,c),I=T=A=0,N=u;for(var z=0;z<286;++z)w[z]=0;for(var z=0;z<30;++z)x[z]=0}var U=2,H=0,M=h,B=L-$&32767;if(D>2&&P==S(u-B))for(var k=Math.min(p,D)-1,F=Math.min(32767,u),G=Math.min(258,D);B<=F&&--M&&L!=$;){if(e[u+U]==e[u+U-B]){for(var q=0;q<G&&e[u+q]==e[u+q-B];++q);if(q>U){if(U=q,H=B,q>k)break;for(var W=Math.min(B,q-2),K=0,z=0;z<W;++z){var J=u-B+z+32768&32767,te=g[J],ae=J-te+32768&32767;ae>K&&(K=ae,$=J)}}}L=$,$=g[L],B+=L-$+32768&32767}if(H){C[I++]=268435456|uoe[U]<<18|$Ae[H];var re=uoe[U]&31,ue=$Ae[H]&31;A+=EU[re]+CU[ue],++w[257+re],++x[ue],R=u+U,++T}else C[I++]=e[u],++w[e[u]]}}c=BAe(e,l,a,C,w,x,A,I,N,u-N,c)}return zet(s,0,r+Ohe(c)+i)},C9n=function(){var e=1,t=0;return{p:function(n){for(var r=e,i=t,a=n.length,o=0;o!=a;){for(var s=Math.min(o+5552,a);o<s;++o)r+=n[o],i+=r;r%=65521,i%=65521}e=r,t=i},d:function(){return(e>>>8<<16|(t&255)<<8|t>>>8)+((e&255)<<23)*2}}},w9n=function(e,t,n,r,i){return E9n(e,t.level==null?6:t.level,t.mem==null?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):12+t.mem,n,r,!i)},x9n=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},T9n=function(e,t){var n=t.level,r=n==0?0:n<6?1:n==9?3:2;e[0]=120,e[1]=r<<6|(r?32-2*r:1)},I9n=function(e){if((e[0]&15)!=8||e[0]>>>4>7||(e[0]<<8|e[1])%31)throw"invalid zlib data";if(e[1]&32)throw"invalid zlib data: preset dictionaries not supported"};function hoe(e,t){t===void 0&&(t={});var n=C9n();n.p(e);var r=w9n(e,t,2,4);return T9n(r,t),x9n(r,r.length-4,n.d()),r}function A9n(e,t){return _9n((I9n(e),e.subarray(2,-4)),t)}var Ur=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function eJ(){Ur.console&&typeof Ur.console.log=="function"&&Ur.console.log.apply(Ur.console,arguments)}var mo={log:eJ,warn:function(e){Ur.console&&(typeof Ur.console.warn=="function"?Ur.console.warn.apply(Ur.console,arguments):eJ.call(null,arguments))},error:function(e){Ur.console&&(typeof Ur.console.error=="function"?Ur.console.error.apply(Ur.console,arguments):eJ(e))}};function tJ(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){hS(r.response,t,n)},r.onerror=function(){mo.error("could not download file")},r.send()}function jAe(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function GP(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var xR,moe,hS=Ur.saveAs||((typeof window>"u"?"undefined":cn(window))!=="object"||window!==Ur?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(e,t,n){var r=Ur.URL||Ur.webkitURL,i=document.createElement("a");t=t||e.name||"download",i.download=t,i.rel="noopener",typeof e=="string"?(i.href=e,i.origin!==location.origin?jAe(i.href)?tJ(e,t,n):GP(i,i.target="_blank"):GP(i)):(i.href=r.createObjectURL(e),setTimeout(function(){r.revokeObjectURL(i.href)},4e4),setTimeout(function(){GP(i)},0))}:"msSaveOrOpenBlob"in navigator?function(e,t,n){if(t=t||e.name||"download",typeof e=="string")if(jAe(e))tJ(e,t,n);else{var r=document.createElement("a");r.href=e,r.target="_blank",setTimeout(function(){GP(r)})}else navigator.msSaveOrOpenBlob(function(i,a){return a===void 0?a={autoBom:!1}:cn(a)!=="object"&&(mo.warn("Deprecated: Expected third argument to be a object"),a={autoBom:!a}),a.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(i.type)?new Blob(["\uFEFF",i],{type:i.type}):i}(e,n),t)}:function(e,t,n,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),typeof e=="string")return tJ(e,t,n);var i=e.type==="application/octet-stream",a=/constructor/i.test(Ur.HTMLElement)||Ur.safari,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&a)&&(typeof FileReader>"u"?"undefined":cn(FileReader))==="object"){var s=new FileReader;s.onloadend=function(){var u=s.result;u=o?u:u.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=u:location=u,r=null},s.readAsDataURL(e)}else{var l=Ur.URL||Ur.webkitURL,c=l.createObjectURL(e);r?r.location=c:location.href=c,r=null,setTimeout(function(){l.revokeObjectURL(c)},4e4)}});/**
 * A class to parse color values
 * @author Stoyan Stefanov <sstoo@gmail.com>
 * {@link   http://www.phpied.com/rgb-color-parser-in-javascript/}
 * @license Use it if you like it
 */function Uet(e){var t;e=e||"",this.ok=!1,e.charAt(0)=="#"&&(e=e.substr(1,6)),e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[e=(e=e.replace(/ /g,"")).toLowerCase()]||e;for(var n=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(s){return[parseInt(s[1]),parseInt(s[2]),parseInt(s[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(s){return[parseInt(s[1],16),parseInt(s[2],16),parseInt(s[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(s){return[parseInt(s[1]+s[1],16),parseInt(s[2]+s[2],16),parseInt(s[3]+s[3],16)]}}],r=0;r<n.length;r++){var i=n[r].re,a=n[r].process,o=i.exec(e);o&&(t=a(o),this.r=t[0],this.g=t[1],this.b=t[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var s=this.r.toString(16),l=this.g.toString(16),c=this.b.toString(16);return s.length==1&&(s="0"+s),l.length==1&&(l="0"+l),c.length==1&&(c="0"+c),"#"+s+l+c}}/**
 * @license
 * Joseph Myers does not specify a particular license for his work.
 *
 * Author: Joseph Myers
 * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
 *
 * Modified by: Owen Leong
 */function nJ(e,t){var n=e[0],r=e[1],i=e[2],a=e[3];n=Mc(n,r,i,a,t[0],7,-680876936),a=Mc(a,n,r,i,t[1],12,-389564586),i=Mc(i,a,n,r,t[2],17,606105819),r=Mc(r,i,a,n,t[3],22,-1044525330),n=Mc(n,r,i,a,t[4],7,-176418897),a=Mc(a,n,r,i,t[5],12,1200080426),i=Mc(i,a,n,r,t[6],17,-1473231341),r=Mc(r,i,a,n,t[7],22,-45705983),n=Mc(n,r,i,a,t[8],7,1770035416),a=Mc(a,n,r,i,t[9],12,-1958414417),i=Mc(i,a,n,r,t[10],17,-42063),r=Mc(r,i,a,n,t[11],22,-1990404162),n=Mc(n,r,i,a,t[12],7,1804603682),a=Mc(a,n,r,i,t[13],12,-40341101),i=Mc(i,a,n,r,t[14],17,-1502002290),n=Dc(n,r=Mc(r,i,a,n,t[15],22,1236535329),i,a,t[1],5,-165796510),a=Dc(a,n,r,i,t[6],9,-1069501632),i=Dc(i,a,n,r,t[11],14,643717713),r=Dc(r,i,a,n,t[0],20,-373897302),n=Dc(n,r,i,a,t[5],5,-701558691),a=Dc(a,n,r,i,t[10],9,38016083),i=Dc(i,a,n,r,t[15],14,-660478335),r=Dc(r,i,a,n,t[4],20,-405537848),n=Dc(n,r,i,a,t[9],5,568446438),a=Dc(a,n,r,i,t[14],9,-1019803690),i=Dc(i,a,n,r,t[3],14,-187363961),r=Dc(r,i,a,n,t[8],20,1163531501),n=Dc(n,r,i,a,t[13],5,-1444681467),a=Dc(a,n,r,i,t[2],9,-51403784),i=Dc(i,a,n,r,t[7],14,1735328473),n=$c(n,r=Dc(r,i,a,n,t[12],20,-1926607734),i,a,t[5],4,-378558),a=$c(a,n,r,i,t[8],11,-2022574463),i=$c(i,a,n,r,t[11],16,1839030562),r=$c(r,i,a,n,t[14],23,-35309556),n=$c(n,r,i,a,t[1],4,-1530992060),a=$c(a,n,r,i,t[4],11,1272893353),i=$c(i,a,n,r,t[7],16,-155497632),r=$c(r,i,a,n,t[10],23,-1094730640),n=$c(n,r,i,a,t[13],4,681279174),a=$c(a,n,r,i,t[0],11,-358537222),i=$c(i,a,n,r,t[3],16,-722521979),r=$c(r,i,a,n,t[6],23,76029189),n=$c(n,r,i,a,t[9],4,-640364487),a=$c(a,n,r,i,t[12],11,-421815835),i=$c(i,a,n,r,t[15],16,530742520),n=Fc(n,r=$c(r,i,a,n,t[2],23,-995338651),i,a,t[0],6,-198630844),a=Fc(a,n,r,i,t[7],10,1126891415),i=Fc(i,a,n,r,t[14],15,-1416354905),r=Fc(r,i,a,n,t[5],21,-57434055),n=Fc(n,r,i,a,t[12],6,1700485571),a=Fc(a,n,r,i,t[3],10,-1894986606),i=Fc(i,a,n,r,t[10],15,-1051523),r=Fc(r,i,a,n,t[1],21,-2054922799),n=Fc(n,r,i,a,t[8],6,1873313359),a=Fc(a,n,r,i,t[15],10,-30611744),i=Fc(i,a,n,r,t[6],15,-1560198380),r=Fc(r,i,a,n,t[13],21,1309151649),n=Fc(n,r,i,a,t[4],6,-145523070),a=Fc(a,n,r,i,t[11],10,-1120210379),i=Fc(i,a,n,r,t[2],15,718787259),r=Fc(r,i,a,n,t[9],21,-343485551),e[0]=vb(n,e[0]),e[1]=vb(r,e[1]),e[2]=vb(i,e[2]),e[3]=vb(a,e[3])}function wU(e,t,n,r,i,a){return t=vb(vb(t,e),vb(r,a)),vb(t<<i|t>>>32-i,n)}function Mc(e,t,n,r,i,a,o){return wU(t&n|~t&r,e,t,i,a,o)}function Dc(e,t,n,r,i,a,o){return wU(t&r|n&~r,e,t,i,a,o)}function $c(e,t,n,r,i,a,o){return wU(t^n^r,e,t,i,a,o)}function Fc(e,t,n,r,i,a,o){return wU(n^(t|~r),e,t,i,a,o)}function Het(e){var t,n=e.length,r=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)nJ(r,R9n(e.substring(t-64,t)));e=e.substring(t-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<e.length;t++)i[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(i[t>>2]|=128<<(t%4<<3),t>55)for(nJ(r,i),t=0;t<16;t++)i[t]=0;return i[14]=8*n,nJ(r,i),r}function R9n(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}xR=Ur.atob.bind(Ur),moe=Ur.btoa.bind(Ur);var zAe="0123456789abcdef".split("");function N9n(e){for(var t="",n=0;n<4;n++)t+=zAe[e>>8*n+4&15]+zAe[e>>8*n&15];return t}function O9n(e){return String.fromCharCode((255&e)>>0,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function goe(e){return Het(e).map(O9n).join("")}var L9n=function(e){for(var t=0;t<e.length;t++)e[t]=N9n(e[t]);return e.join("")}(Het("hello"))!="5d41402abc4b2a76b9719d911017c592";function vb(e,t){if(L9n){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}return e+t&4294967295}/**
 * @license
 * FPDF is released under a permissive license: there is no usage restriction.
 * You may embed it freely in your application (commercial or not), with or
 * without modifications.
 *
 * Reference: http://www.fpdf.org/en/script/script37.php
 */function voe(e,t){var n,r,i,a;if(e!==n){for(var o=(i=e,a=1+(256/e.length>>0),new Array(a+1).join(i)),s=[],l=0;l<256;l++)s[l]=l;var c=0;for(l=0;l<256;l++){var u=s[l];c=(c+u+o.charCodeAt(l))%256,s[l]=s[c],s[c]=u}n=e,r=s}else s=r;var d=t.length,f=0,p=0,h="";for(l=0;l<d;l++)p=(p+(u=s[f=(f+1)%256]))%256,s[f]=s[p],s[p]=u,o=s[(s[f]+s[p])%256],h+=String.fromCharCode(t.charCodeAt(l)^o);return h}/**
 * @license
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 * Author: Owen Leong (@owenl131)
 * Date: 15 Oct 2020
 * References:
 * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
 * https://github.com/foliojs/pdfkit/blob/master/lib/security.js
 * http://www.fpdf.org/en/script/script37.php
 */var UAe={print:4,modify:8,copy:16,"annot-forms":32};function Ex(e,t,n,r){this.v=1,this.r=2;var i=192;e.forEach(function(s){if(UAe.perm!==void 0)throw new Error("Invalid permission: "+s);i+=UAe[s]}),this.padding="(¿N^NuAd\0NVÿú\b..\0¶Ðh>/\f©þdSiz";var a=(t+this.padding).substr(0,32),o=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(a,o),this.P=-(1+(255^i)),this.encryptionKey=goe(a+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=voe(this.encryptionKey,this.padding)}function Cx(e){if(/[^\u0000-\u00ff]/.test(e))throw new Error("Invalid PDF Name Object: "+e+", Only accept ASCII characters.");for(var t="",n=e.length,r=0;r<n;r++){var i=e.charCodeAt(r);i<33||i===35||i===37||i===40||i===41||i===47||i===60||i===62||i===91||i===93||i===123||i===125||i>126?t+="#"+("0"+i.toString(16)).slice(-2):t+=e[r]}return t}function HAe(e){if(cn(e)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(n,r,i){if(i=i||!1,typeof n!="string"||typeof r!="function"||typeof i!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(n)||(t[n]={});var a=Math.random().toString(35);return t[n][a]=[r,!!i],a},this.unsubscribe=function(n){for(var r in t)if(t[r][n])return delete t[r][n],Object.keys(t[r]).length===0&&delete t[r],!0;return!1},this.publish=function(n){if(t.hasOwnProperty(n)){var r=Array.prototype.slice.call(arguments,1),i=[];for(var a in t[n]){var o=t[n][a];try{o[0].apply(e,r)}catch(s){Ur.console&&mo.error("jsPDF PubSub Error",s.message,s)}o[1]&&i.push(a)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function AF(e){if(!(this instanceof AF))return new AF(e);var t="opacity,stroke-opacity".split(",");for(var n in e)e.hasOwnProperty(n)&&t.indexOf(n)>=0&&(this[n]=e[n]);this.id="",this.objectNumber=-1}function Vet(e,t){this.gState=e,this.matrix=t,this.id="",this.objectNumber=-1}function IS(e,t,n,r,i){if(!(this instanceof IS))return new IS(e,t,n,r,i);this.type=e==="axial"?2:3,this.coords=t,this.colors=n,Vet.call(this,r,i)}function n5(e,t,n,r,i){if(!(this instanceof n5))return new n5(e,t,n,r,i);this.boundingBox=e,this.xStep=t,this.yStep=n,this.stream="",this.cloneIndex=0,Vet.call(this,r,i)}function zr(e){var t,n=typeof arguments[0]=="string"?arguments[0]:"p",r=arguments[1],i=arguments[2],a=arguments[3],o=[],s=1,l=16,c="S",u=null;cn(e=e||{})==="object"&&(n=e.orientation,r=e.unit||r,i=e.format||i,a=e.compress||e.compressPdf||a,(u=e.encryption||null)!==null&&(u.userPassword=u.userPassword||"",u.ownerPassword=u.ownerPassword||"",u.userPermissions=u.userPermissions||[]),s=typeof e.userUnit=="number"?Math.abs(e.userUnit):1,e.precision!==void 0&&(t=e.precision),e.floatPrecision!==void 0&&(l=e.floatPrecision),c=e.defaultPathOperation||"S"),o=e.filters||(a===!0?["FlateEncode"]:o),r=r||"mm",n=(""+(n||"P")).toLowerCase();var d=e.putOnlyUsedFonts||!1,f={},p={internal:{},__private__:{}};p.__private__.PubSub=HAe;var h="1.3",m=p.__private__.getPdfVersion=function(){return h};p.__private__.setPdfVersion=function(ne){h=ne};var g={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};p.__private__.getPageFormats=function(){return g};var v=p.__private__.getPageFormat=function(ne){return g[ne]};i=i||"a4";var y={COMPAT:"compat",ADVANCED:"advanced"},_=y.COMPAT;function S(){this.saveGraphicsState(),oe(new tt(Ye,0,0,-Ye,0,zf()*Ye).toString()+" cm"),this.setFontSize(this.getFontSize()/Ye),c="n",_=y.ADVANCED}function C(){this.restoreGraphicsState(),c="S",_=y.COMPAT}var w=p.__private__.combineFontStyleAndFontWeight=function(ne,Ne){if(ne=="bold"&&Ne=="normal"||ne=="bold"&&Ne==400||ne=="normal"&&Ne=="italic"||ne=="bold"&&Ne=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return Ne&&(ne=Ne==400||Ne==="normal"?ne==="italic"?"italic":"normal":Ne!=700&&Ne!=="bold"||ne!=="normal"?(Ne==700?"bold":Ne)+""+ne:"bold"),ne};p.advancedAPI=function(ne){var Ne=_===y.COMPAT;return Ne&&S.call(this),typeof ne!="function"||(ne(this),Ne&&C.call(this)),this},p.compatAPI=function(ne){var Ne=_===y.ADVANCED;return Ne&&C.call(this),typeof ne!="function"||(ne(this),Ne&&S.call(this)),this},p.isAdvancedAPI=function(){return _===y.ADVANCED};var x,T=function(ne){if(_!==y.ADVANCED)throw new Error(ne+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},A=p.roundToPrecision=p.__private__.roundToPrecision=function(ne,Ne){var ot=t||Ne;if(isNaN(ne)||isNaN(ot))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return ne.toFixed(ot).replace(/0+$/,"")};x=p.hpf=p.__private__.hpf=typeof l=="number"?function(ne){if(isNaN(ne))throw new Error("Invalid argument passed to jsPDF.hpf");return A(ne,l)}:l==="smart"?function(ne){if(isNaN(ne))throw new Error("Invalid argument passed to jsPDF.hpf");return A(ne,ne>-1&&ne<1?16:5)}:function(ne){if(isNaN(ne))throw new Error("Invalid argument passed to jsPDF.hpf");return A(ne,16)};var I=p.f2=p.__private__.f2=function(ne){if(isNaN(ne))throw new Error("Invalid argument passed to jsPDF.f2");return A(ne,2)},R=p.__private__.f3=function(ne){if(isNaN(ne))throw new Error("Invalid argument passed to jsPDF.f3");return A(ne,3)},N=p.scale=p.__private__.scale=function(ne){if(isNaN(ne))throw new Error("Invalid argument passed to jsPDF.scale");return _===y.COMPAT?ne*Ye:_===y.ADVANCED?ne:void 0},P=function(ne){return _===y.COMPAT?zf()-ne:_===y.ADVANCED?ne:void 0},L=function(ne){return N(P(ne))};p.__private__.setPrecision=p.setPrecision=function(ne){typeof parseInt(ne,10)=="number"&&(t=parseInt(ne,10))};var $,D="00000000000000000000000000000000",z=p.__private__.getFileId=function(){return D},U=p.__private__.setFileId=function(ne){return D=ne!==void 0&&/^[a-fA-F0-9]{32}$/.test(ne)?ne.toUpperCase():D.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),u!==null&&(Ea=new Ex(u.userPermissions,u.userPassword,u.ownerPassword,D)),D};p.setFileId=function(ne){return U(ne),this},p.getFileId=function(){return z()};var H=p.__private__.convertDateToPDFDate=function(ne){var Ne=ne.getTimezoneOffset(),ot=Ne<0?"+":"-",ht=Math.floor(Math.abs(Ne/60)),Nt=Math.abs(Ne%60),Yt=[ot,G(ht),"'",G(Nt),"'"].join("");return["D:",ne.getFullYear(),G(ne.getMonth()+1),G(ne.getDate()),G(ne.getHours()),G(ne.getMinutes()),G(ne.getSeconds()),Yt].join("")},M=p.__private__.convertPDFDateToDate=function(ne){var Ne=parseInt(ne.substr(2,4),10),ot=parseInt(ne.substr(6,2),10)-1,ht=parseInt(ne.substr(8,2),10),Nt=parseInt(ne.substr(10,2),10),Yt=parseInt(ne.substr(12,2),10),En=parseInt(ne.substr(14,2),10);return new Date(Ne,ot,ht,Nt,Yt,En,0)},B=p.__private__.setCreationDate=function(ne){var Ne;if(ne===void 0&&(ne=new Date),ne instanceof Date)Ne=H(ne);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(ne))throw new Error("Invalid argument passed to jsPDF.setCreationDate");Ne=ne}return $=Ne},k=p.__private__.getCreationDate=function(ne){var Ne=$;return ne==="jsDate"&&(Ne=M($)),Ne};p.setCreationDate=function(ne){return B(ne),this},p.getCreationDate=function(ne){return k(ne)};var F,G=p.__private__.padd2=function(ne){return("0"+parseInt(ne)).slice(-2)},q=p.__private__.padd2Hex=function(ne){return("00"+(ne=ne.toString())).substr(ne.length)},W=0,K=[],J=[],te=0,ae=[],re=[],ue=!1,de=J,fe=function(){W=0,te=0,J=[],K=[],ae=[],fn=nn(),an=nn()};p.__private__.setCustomOutputDestination=function(ne){ue=!0,de=ne};var ge=function(ne){ue||(de=ne)};p.__private__.resetCustomOutputDestination=function(){ue=!1,de=J};var oe=p.__private__.out=function(ne){return ne=ne.toString(),te+=ne.length+1,de.push(ne),de},Ee=p.__private__.write=function(ne){return oe(arguments.length===1?ne.toString():Array.prototype.join.call(arguments," "))},ce=p.__private__.getArrayBuffer=function(ne){for(var Ne=ne.length,ot=new ArrayBuffer(Ne),ht=new Uint8Array(ot);Ne--;)ht[Ne]=ne.charCodeAt(Ne);return ot},he=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];p.__private__.getStandardFonts=function(){return he};var ye=e.fontSize||16;p.__private__.setFontSize=p.setFontSize=function(ne){return ye=_===y.ADVANCED?ne/Ye:ne,this};var me,_e=p.__private__.getFontSize=p.getFontSize=function(){return _===y.COMPAT?ye:ye*Ye},Te=e.R2L||!1;p.__private__.setR2L=p.setR2L=function(ne){return Te=ne,this},p.__private__.getR2L=p.getR2L=function(){return Te};var xe,De=p.__private__.setZoomMode=function(ne){var Ne=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(ne))me=ne;else if(isNaN(ne)){if(Ne.indexOf(ne)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+ne+'" is not recognized.');me=ne}else me=parseInt(ne,10)};p.__private__.getZoomMode=function(){return me};var Pe,Le=p.__private__.setPageMode=function(ne){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(ne)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+ne+'" is not recognized.');xe=ne};p.__private__.getPageMode=function(){return xe};var ze=p.__private__.setLayoutMode=function(ne){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(ne)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+ne+'" is not recognized.');Pe=ne};p.__private__.getLayoutMode=function(){return Pe},p.__private__.setDisplayMode=p.setDisplayMode=function(ne,Ne,ot){return De(ne),ze(Ne),Le(ot),this};var Be={title:"",subject:"",author:"",keywords:"",creator:""};p.__private__.getDocumentProperty=function(ne){if(Object.keys(Be).indexOf(ne)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Be[ne]},p.__private__.getDocumentProperties=function(){return Be},p.__private__.setDocumentProperties=p.setProperties=p.setDocumentProperties=function(ne){for(var Ne in Be)Be.hasOwnProperty(Ne)&&ne[Ne]&&(Be[Ne]=ne[Ne]);return this},p.__private__.setDocumentProperty=function(ne,Ne){if(Object.keys(Be).indexOf(ne)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Be[ne]=Ne};var je,Ye,Ze,Ke,qe,nt={},Qe={},it=[],yt={},Wt={},Mt={},tn={},Rt=null,Dt=0,Pt=[],Ot=new HAe(p),sn=e.hotfixes||[],Jt={},Vt={},pt=[],tt=function ne(Ne,ot,ht,Nt,Yt,En){if(!(this instanceof ne))return new ne(Ne,ot,ht,Nt,Yt,En);isNaN(Ne)&&(Ne=1),isNaN(ot)&&(ot=0),isNaN(ht)&&(ht=0),isNaN(Nt)&&(Nt=1),isNaN(Yt)&&(Yt=0),isNaN(En)&&(En=0),this._matrix=[Ne,ot,ht,Nt,Yt,En]};Object.defineProperty(tt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(ne){this._matrix[0]=ne}}),Object.defineProperty(tt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(ne){this._matrix[1]=ne}}),Object.defineProperty(tt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(ne){this._matrix[2]=ne}}),Object.defineProperty(tt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(ne){this._matrix[3]=ne}}),Object.defineProperty(tt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(ne){this._matrix[4]=ne}}),Object.defineProperty(tt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(ne){this._matrix[5]=ne}}),Object.defineProperty(tt.prototype,"a",{get:function(){return this._matrix[0]},set:function(ne){this._matrix[0]=ne}}),Object.defineProperty(tt.prototype,"b",{get:function(){return this._matrix[1]},set:function(ne){this._matrix[1]=ne}}),Object.defineProperty(tt.prototype,"c",{get:function(){return this._matrix[2]},set:function(ne){this._matrix[2]=ne}}),Object.defineProperty(tt.prototype,"d",{get:function(){return this._matrix[3]},set:function(ne){this._matrix[3]=ne}}),Object.defineProperty(tt.prototype,"e",{get:function(){return this._matrix[4]},set:function(ne){this._matrix[4]=ne}}),Object.defineProperty(tt.prototype,"f",{get:function(){return this._matrix[5]},set:function(ne){this._matrix[5]=ne}}),Object.defineProperty(tt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(tt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(tt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(tt.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),tt.prototype.join=function(ne){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(x).join(ne)},tt.prototype.multiply=function(ne){var Ne=ne.sx*this.sx+ne.shy*this.shx,ot=ne.sx*this.shy+ne.shy*this.sy,ht=ne.shx*this.sx+ne.sy*this.shx,Nt=ne.shx*this.shy+ne.sy*this.sy,Yt=ne.tx*this.sx+ne.ty*this.shx+this.tx,En=ne.tx*this.shy+ne.ty*this.sy+this.ty;return new tt(Ne,ot,ht,Nt,Yt,En)},tt.prototype.decompose=function(){var ne=this.sx,Ne=this.shy,ot=this.shx,ht=this.sy,Nt=this.tx,Yt=this.ty,En=Math.sqrt(ne*ne+Ne*Ne),Qn=(ne/=En)*ot+(Ne/=En)*ht;ot-=ne*Qn,ht-=Ne*Qn;var _r=Math.sqrt(ot*ot+ht*ht);return Qn/=_r,ne*(ht/=_r)<Ne*(ot/=_r)&&(ne=-ne,Ne=-Ne,Qn=-Qn,En=-En),{scale:new tt(En,0,0,_r,0,0),translate:new tt(1,0,0,1,Nt,Yt),rotate:new tt(ne,Ne,-Ne,ne,0,0),skew:new tt(1,0,Qn,1,0,0)}},tt.prototype.toString=function(ne){return this.join(" ")},tt.prototype.inversed=function(){var ne=this.sx,Ne=this.shy,ot=this.shx,ht=this.sy,Nt=this.tx,Yt=this.ty,En=1/(ne*ht-Ne*ot),Qn=ht*En,_r=-Ne*En,Xr=-ot*En,ii=ne*En;return new tt(Qn,_r,Xr,ii,-Qn*Nt-Xr*Yt,-_r*Nt-ii*Yt)},tt.prototype.applyToPoint=function(ne){var Ne=ne.x*this.sx+ne.y*this.shx+this.tx,ot=ne.x*this.shy+ne.y*this.sy+this.ty;return new Cl(Ne,ot)},tt.prototype.applyToRectangle=function(ne){var Ne=this.applyToPoint(ne),ot=this.applyToPoint(new Cl(ne.x+ne.w,ne.y+ne.h));return new Y_(Ne.x,Ne.y,ot.x-Ne.x,ot.y-Ne.y)},tt.prototype.clone=function(){var ne=this.sx,Ne=this.shy,ot=this.shx,ht=this.sy,Nt=this.tx,Yt=this.ty;return new tt(ne,Ne,ot,ht,Nt,Yt)},p.Matrix=tt;var dt=p.matrixMult=function(ne,Ne){return Ne.multiply(ne)},Et=new tt(1,0,0,1,0,0);p.unitMatrix=p.identityMatrix=Et;var St=function(ne,Ne){if(!Wt[ne]){var ot=(Ne instanceof IS?"Sh":"P")+(Object.keys(yt).length+1).toString(10);Ne.id=ot,Wt[ne]=ot,yt[ot]=Ne,Ot.publish("addPattern",Ne)}};p.ShadingPattern=IS,p.TilingPattern=n5,p.addShadingPattern=function(ne,Ne){return T("addShadingPattern()"),St(ne,Ne),this},p.beginTilingPattern=function(ne){T("beginTilingPattern()"),Vd(ne.boundingBox[0],ne.boundingBox[1],ne.boundingBox[2]-ne.boundingBox[0],ne.boundingBox[3]-ne.boundingBox[1],ne.matrix)},p.endTilingPattern=function(ne,Ne){T("endTilingPattern()"),Ne.stream=re[F].join(`
`),St(ne,Ne),Ot.publish("endTilingPattern",Ne),pt.pop().restore()};var zt=p.__private__.newObject=function(){var ne=nn();return wn(ne,!0),ne},nn=p.__private__.newObjectDeferred=function(){return W++,K[W]=function(){return te},W},wn=function(ne,Ne){return Ne=typeof Ne=="boolean"&&Ne,K[ne]=te,Ne&&oe(ne+" 0 obj"),ne},kn=p.__private__.newAdditionalObject=function(){var ne={objId:nn(),content:""};return ae.push(ne),ne},fn=nn(),an=nn(),Ht=p.__private__.decodeColorString=function(ne){var Ne=ne.split(" ");if(Ne.length!==2||Ne[1]!=="g"&&Ne[1]!=="G")Ne.length===5&&(Ne[4]==="k"||Ne[4]==="K")&&(Ne=[(1-Ne[0])*(1-Ne[3]),(1-Ne[1])*(1-Ne[3]),(1-Ne[2])*(1-Ne[3]),"r"]);else{var ot=parseFloat(Ne[0]);Ne=[ot,ot,ot,"r"]}for(var ht="#",Nt=0;Nt<3;Nt++)ht+=("0"+Math.floor(255*parseFloat(Ne[Nt])).toString(16)).slice(-2);return ht},mn=p.__private__.encodeColorString=function(ne){var Ne;typeof ne=="string"&&(ne={ch1:ne});var ot=ne.ch1,ht=ne.ch2,Nt=ne.ch3,Yt=ne.ch4,En=ne.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof ot=="string"&&ot.charAt(0)!=="#"){var Qn=new Uet(ot);if(Qn.ok)ot=Qn.toHex();else if(!/^\d*\.?\d*$/.test(ot))throw new Error('Invalid color "'+ot+'" passed to jsPDF.encodeColorString.')}if(typeof ot=="string"&&/^#[0-9A-Fa-f]{3}$/.test(ot)&&(ot="#"+ot[1]+ot[1]+ot[2]+ot[2]+ot[3]+ot[3]),typeof ot=="string"&&/^#[0-9A-Fa-f]{6}$/.test(ot)){var _r=parseInt(ot.substr(1),16);ot=_r>>16&255,ht=_r>>8&255,Nt=255&_r}if(ht===void 0||Yt===void 0&&ot===ht&&ht===Nt)if(typeof ot=="string")Ne=ot+" "+En[0];else switch(ne.precision){case 2:Ne=I(ot/255)+" "+En[0];break;case 3:default:Ne=R(ot/255)+" "+En[0]}else if(Yt===void 0||cn(Yt)==="object"){if(Yt&&!isNaN(Yt.a)&&Yt.a===0)return Ne=["1.","1.","1.",En[1]].join(" ");if(typeof ot=="string")Ne=[ot,ht,Nt,En[1]].join(" ");else switch(ne.precision){case 2:Ne=[I(ot/255),I(ht/255),I(Nt/255),En[1]].join(" ");break;default:case 3:Ne=[R(ot/255),R(ht/255),R(Nt/255),En[1]].join(" ")}}else if(typeof ot=="string")Ne=[ot,ht,Nt,Yt,En[2]].join(" ");else switch(ne.precision){case 2:Ne=[I(ot),I(ht),I(Nt),I(Yt),En[2]].join(" ");break;case 3:default:Ne=[R(ot),R(ht),R(Nt),R(Yt),En[2]].join(" ")}return Ne},Tn=p.__private__.getFilters=function(){return o},An=p.__private__.putStream=function(ne){var Ne=(ne=ne||{}).data||"",ot=ne.filters||Tn(),ht=ne.alreadyAppliedFilters||[],Nt=ne.addLength1||!1,Yt=Ne.length,En=ne.objectId,Qn=function(il){return il};if(u!==null&&En===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");u!==null&&(Qn=Ea.encryptor(En,0));var _r={};ot===!0&&(ot=["FlateEncode"]);var Xr=ne.additionalKeyValues||[],ii=(_r=zr.API.processDataByFilters!==void 0?zr.API.processDataByFilters(Ne,ot):{data:Ne,reverseChain:[]}).reverseChain+(Array.isArray(ht)?ht.join(" "):ht.toString());if(_r.data.length!==0&&(Xr.push({key:"Length",value:_r.data.length}),Nt===!0&&Xr.push({key:"Length1",value:Yt})),ii.length!=0)if(ii.split("/").length-1==1)Xr.push({key:"Filter",value:ii});else{Xr.push({key:"Filter",value:"["+ii+"]"});for(var Pi=0;Pi<Xr.length;Pi+=1)if(Xr[Pi].key==="DecodeParms"){for(var _o=[],Yo=0;Yo<_r.reverseChain.split("/").length-1;Yo+=1)_o.push("null");_o.push(Xr[Pi].value),Xr[Pi].value="["+_o.join(" ")+"]"}}oe("<<");for(var Ko=0;Ko<Xr.length;Ko++)oe("/"+Xr[Ko].key+" "+Xr[Ko].value);oe(">>"),_r.data.length!==0&&(oe("stream"),oe(Qn(_r.data)),oe("endstream"))},nr=p.__private__.putPage=function(ne){var Ne=ne.number,ot=ne.data,ht=ne.objId,Nt=ne.contentsObjId;wn(ht,!0),oe("<</Type /Page"),oe("/Parent "+ne.rootDictionaryObjId+" 0 R"),oe("/Resources "+ne.resourceDictionaryObjId+" 0 R"),oe("/MediaBox ["+parseFloat(x(ne.mediaBox.bottomLeftX))+" "+parseFloat(x(ne.mediaBox.bottomLeftY))+" "+x(ne.mediaBox.topRightX)+" "+x(ne.mediaBox.topRightY)+"]"),ne.cropBox!==null&&oe("/CropBox ["+x(ne.cropBox.bottomLeftX)+" "+x(ne.cropBox.bottomLeftY)+" "+x(ne.cropBox.topRightX)+" "+x(ne.cropBox.topRightY)+"]"),ne.bleedBox!==null&&oe("/BleedBox ["+x(ne.bleedBox.bottomLeftX)+" "+x(ne.bleedBox.bottomLeftY)+" "+x(ne.bleedBox.topRightX)+" "+x(ne.bleedBox.topRightY)+"]"),ne.trimBox!==null&&oe("/TrimBox ["+x(ne.trimBox.bottomLeftX)+" "+x(ne.trimBox.bottomLeftY)+" "+x(ne.trimBox.topRightX)+" "+x(ne.trimBox.topRightY)+"]"),ne.artBox!==null&&oe("/ArtBox ["+x(ne.artBox.bottomLeftX)+" "+x(ne.artBox.bottomLeftY)+" "+x(ne.artBox.topRightX)+" "+x(ne.artBox.topRightY)+"]"),typeof ne.userUnit=="number"&&ne.userUnit!==1&&oe("/UserUnit "+ne.userUnit),Ot.publish("putPage",{objId:ht,pageContext:Pt[Ne],pageNumber:Ne,page:ot}),oe("/Contents "+Nt+" 0 R"),oe(">>"),oe("endobj");var Yt=ot.join(`
`);return _===y.ADVANCED&&(Yt+=`
Q`),wn(Nt,!0),An({data:Yt,filters:Tn(),objectId:Nt}),oe("endobj"),ht},un=p.__private__.putPages=function(){var ne,Ne,ot=[];for(ne=1;ne<=Dt;ne++)Pt[ne].objId=nn(),Pt[ne].contentsObjId=nn();for(ne=1;ne<=Dt;ne++)ot.push(nr({number:ne,data:re[ne],objId:Pt[ne].objId,contentsObjId:Pt[ne].contentsObjId,mediaBox:Pt[ne].mediaBox,cropBox:Pt[ne].cropBox,bleedBox:Pt[ne].bleedBox,trimBox:Pt[ne].trimBox,artBox:Pt[ne].artBox,userUnit:Pt[ne].userUnit,rootDictionaryObjId:fn,resourceDictionaryObjId:an}));wn(fn,!0),oe("<</Type /Pages");var ht="/Kids [";for(Ne=0;Ne<Dt;Ne++)ht+=ot[Ne]+" 0 R ";oe(ht+"]"),oe("/Count "+Dt),oe(">>"),oe("endobj"),Ot.publish("postPutPages")},et=function(ne){Ot.publish("putFont",{font:ne,out:oe,newObject:zt,putStream:An}),ne.isAlreadyPutted!==!0&&(ne.objectNumber=zt(),oe("<<"),oe("/Type /Font"),oe("/BaseFont /"+Cx(ne.postScriptName)),oe("/Subtype /Type1"),typeof ne.encoding=="string"&&oe("/Encoding /"+ne.encoding),oe("/FirstChar 32"),oe("/LastChar 255"),oe(">>"),oe("endobj"))},Ct=function(){for(var ne in nt)nt.hasOwnProperty(ne)&&(d===!1||d===!0&&f.hasOwnProperty(ne))&&et(nt[ne])},Q=function(ne){ne.objectNumber=zt();var Ne=[];Ne.push({key:"Type",value:"/XObject"}),Ne.push({key:"Subtype",value:"/Form"}),Ne.push({key:"BBox",value:"["+[x(ne.x),x(ne.y),x(ne.x+ne.width),x(ne.y+ne.height)].join(" ")+"]"}),Ne.push({key:"Matrix",value:"["+ne.matrix.toString()+"]"});var ot=ne.pages[1].join(`
`);An({data:ot,additionalKeyValues:Ne,objectId:ne.objectNumber}),oe("endobj")},Y=function(){for(var ne in Jt)Jt.hasOwnProperty(ne)&&Q(Jt[ne])},ee=function(ne,Ne){var ot,ht=[],Nt=1/(Ne-1);for(ot=0;ot<1;ot+=Nt)ht.push(ot);if(ht.push(1),ne[0].offset!=0){var Yt={offset:0,color:ne[0].color};ne.unshift(Yt)}if(ne[ne.length-1].offset!=1){var En={offset:1,color:ne[ne.length-1].color};ne.push(En)}for(var Qn="",_r=0,Xr=0;Xr<ht.length;Xr++){for(ot=ht[Xr];ot>ne[_r+1].offset;)_r++;var ii=ne[_r].offset,Pi=(ot-ii)/(ne[_r+1].offset-ii),_o=ne[_r].color,Yo=ne[_r+1].color;Qn+=q(Math.round((1-Pi)*_o[0]+Pi*Yo[0]).toString(16))+q(Math.round((1-Pi)*_o[1]+Pi*Yo[1]).toString(16))+q(Math.round((1-Pi)*_o[2]+Pi*Yo[2]).toString(16))}return Qn.trim()},le=function(ne,Ne){Ne||(Ne=21);var ot=zt(),ht=ee(ne.colors,Ne),Nt=[];Nt.push({key:"FunctionType",value:"0"}),Nt.push({key:"Domain",value:"[0.0 1.0]"}),Nt.push({key:"Size",value:"["+Ne+"]"}),Nt.push({key:"BitsPerSample",value:"8"}),Nt.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Nt.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),An({data:ht,additionalKeyValues:Nt,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:ot}),oe("endobj"),ne.objectNumber=zt(),oe("<< /ShadingType "+ne.type),oe("/ColorSpace /DeviceRGB");var Yt="/Coords ["+x(parseFloat(ne.coords[0]))+" "+x(parseFloat(ne.coords[1]))+" ";ne.type===2?Yt+=x(parseFloat(ne.coords[2]))+" "+x(parseFloat(ne.coords[3])):Yt+=x(parseFloat(ne.coords[2]))+" "+x(parseFloat(ne.coords[3]))+" "+x(parseFloat(ne.coords[4]))+" "+x(parseFloat(ne.coords[5])),oe(Yt+="]"),ne.matrix&&oe("/Matrix ["+ne.matrix.toString()+"]"),oe("/Function "+ot+" 0 R"),oe("/Extend [true true]"),oe(">>"),oe("endobj")},Se=function(ne,Ne){var ot=nn(),ht=zt();Ne.push({resourcesOid:ot,objectOid:ht}),ne.objectNumber=ht;var Nt=[];Nt.push({key:"Type",value:"/Pattern"}),Nt.push({key:"PatternType",value:"1"}),Nt.push({key:"PaintType",value:"1"}),Nt.push({key:"TilingType",value:"1"}),Nt.push({key:"BBox",value:"["+ne.boundingBox.map(x).join(" ")+"]"}),Nt.push({key:"XStep",value:x(ne.xStep)}),Nt.push({key:"YStep",value:x(ne.yStep)}),Nt.push({key:"Resources",value:ot+" 0 R"}),ne.matrix&&Nt.push({key:"Matrix",value:"["+ne.matrix.toString()+"]"}),An({data:ne.stream,additionalKeyValues:Nt,objectId:ne.objectNumber}),oe("endobj")},Ae=function(ne){var Ne;for(Ne in yt)yt.hasOwnProperty(Ne)&&(yt[Ne]instanceof IS?le(yt[Ne]):yt[Ne]instanceof n5&&Se(yt[Ne],ne))},He=function(ne){for(var Ne in ne.objectNumber=zt(),oe("<<"),ne)switch(Ne){case"opacity":oe("/ca "+I(ne[Ne]));break;case"stroke-opacity":oe("/CA "+I(ne[Ne]))}oe(">>"),oe("endobj")},at=function(){var ne;for(ne in Mt)Mt.hasOwnProperty(ne)&&He(Mt[ne])},wt=function(){for(var ne in oe("/XObject <<"),Jt)Jt.hasOwnProperty(ne)&&Jt[ne].objectNumber>=0&&oe("/"+ne+" "+Jt[ne].objectNumber+" 0 R");Ot.publish("putXobjectDict"),oe(">>")},ft=function(){Ea.oid=zt(),oe("<<"),oe("/Filter /Standard"),oe("/V "+Ea.v),oe("/R "+Ea.r),oe("/U <"+Ea.toHexString(Ea.U)+">"),oe("/O <"+Ea.toHexString(Ea.O)+">"),oe("/P "+Ea.P),oe(">>"),oe("endobj")},Lt=function(){for(var ne in oe("/Font <<"),nt)nt.hasOwnProperty(ne)&&(d===!1||d===!0&&f.hasOwnProperty(ne))&&oe("/"+ne+" "+nt[ne].objectNumber+" 0 R");oe(">>")},kt=function(){if(Object.keys(yt).length>0){for(var ne in oe("/Shading <<"),yt)yt.hasOwnProperty(ne)&&yt[ne]instanceof IS&&yt[ne].objectNumber>=0&&oe("/"+ne+" "+yt[ne].objectNumber+" 0 R");Ot.publish("putShadingPatternDict"),oe(">>")}},Gt=function(ne){if(Object.keys(yt).length>0){for(var Ne in oe("/Pattern <<"),yt)yt.hasOwnProperty(Ne)&&yt[Ne]instanceof p.TilingPattern&&yt[Ne].objectNumber>=0&&yt[Ne].objectNumber<ne&&oe("/"+Ne+" "+yt[Ne].objectNumber+" 0 R");Ot.publish("putTilingPatternDict"),oe(">>")}},ln=function(){if(Object.keys(Mt).length>0){var ne;for(ne in oe("/ExtGState <<"),Mt)Mt.hasOwnProperty(ne)&&Mt[ne].objectNumber>=0&&oe("/"+ne+" "+Mt[ne].objectNumber+" 0 R");Ot.publish("putGStateDict"),oe(">>")}},_n=function(ne){wn(ne.resourcesOid,!0),oe("<<"),oe("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),Lt(),kt(),Gt(ne.objectOid),ln(),wt(),oe(">>"),oe("endobj")},Fn=function(){var ne=[];Ct(),at(),Y(),Ae(ne),Ot.publish("putResources"),ne.forEach(_n),_n({resourcesOid:an,objectOid:Number.MAX_SAFE_INTEGER}),Ot.publish("postPutResources")},ur=function(){Ot.publish("putAdditionalObjects");for(var ne=0;ne<ae.length;ne++){var Ne=ae[ne];wn(Ne.objId,!0),oe(Ne.content),oe("endobj")}Ot.publish("postPutAdditionalObjects")},Vr=function(ne){Qe[ne.fontName]=Qe[ne.fontName]||{},Qe[ne.fontName][ne.fontStyle]=ne.id},ni=function(ne,Ne,ot,ht,Nt){var Yt={id:"F"+(Object.keys(nt).length+1).toString(10),postScriptName:ne,fontName:Ne,fontStyle:ot,encoding:ht,isStandardFont:Nt||!1,metadata:{}};return Ot.publish("addFont",{font:Yt,instance:this}),nt[Yt.id]=Yt,Vr(Yt),Yt.id},fr=function(ne){for(var Ne=0,ot=he.length;Ne<ot;Ne++){var ht=ni.call(this,ne[Ne][0],ne[Ne][1],ne[Ne][2],he[Ne][3],!0);d===!1&&(f[ht]=!0);var Nt=ne[Ne][0].split("-");Vr({id:ht,fontName:Nt[0],fontStyle:Nt[1]||""})}Ot.publish("addFonts",{fonts:nt,dictionary:Qe})},Un=function(ne){return ne.foo=function(){try{return ne.apply(this,arguments)}catch(ht){var Ne=ht.stack||"";~Ne.indexOf(" at ")&&(Ne=Ne.split(" at ")[1]);var ot="Error in function "+Ne.split(`
`)[0].split("<")[0]+": "+ht.message;if(!Ur.console)throw new Error(ot);Ur.console.error(ot,ht),Ur.alert&&alert(ot)}},ne.foo.bar=ne,ne.foo},hr=function(ne,Ne){var ot,ht,Nt,Yt,En,Qn,_r,Xr,ii;if(Nt=(Ne=Ne||{}).sourceEncoding||"Unicode",En=Ne.outputEncoding,(Ne.autoencode||En)&&nt[je].metadata&&nt[je].metadata[Nt]&&nt[je].metadata[Nt].encoding&&(Yt=nt[je].metadata[Nt].encoding,!En&&nt[je].encoding&&(En=nt[je].encoding),!En&&Yt.codePages&&(En=Yt.codePages[0]),typeof En=="string"&&(En=Yt[En]),En)){for(_r=!1,Qn=[],ot=0,ht=ne.length;ot<ht;ot++)(Xr=En[ne.charCodeAt(ot)])?Qn.push(String.fromCharCode(Xr)):Qn.push(ne[ot]),Qn[ot].charCodeAt(0)>>8&&(_r=!0);ne=Qn.join("")}for(ot=ne.length;_r===void 0&&ot!==0;)ne.charCodeAt(ot-1)>>8&&(_r=!0),ot--;if(!_r)return ne;for(Qn=Ne.noBOM?[]:[254,255],ot=0,ht=ne.length;ot<ht;ot++){if((ii=(Xr=ne.charCodeAt(ot))>>8)>>8)throw new Error("Character at position "+ot+" of string '"+ne+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Qn.push(ii),Qn.push(Xr-(ii<<8))}return String.fromCharCode.apply(void 0,Qn)},Jn=p.__private__.pdfEscape=p.pdfEscape=function(ne,Ne){return hr(ne,Ne).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},lr=p.__private__.beginPage=function(ne){re[++Dt]=[],Pt[Dt]={objId:0,contentsObjId:0,userUnit:Number(s),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(ne[0]),topRightY:Number(ne[1])}},ri(Dt),ge(re[F])},On=function(ne,Ne){var ot,ht,Nt;switch(n=Ne||n,typeof ne=="string"&&(ot=v(ne.toLowerCase()),Array.isArray(ot)&&(ht=ot[0],Nt=ot[1])),Array.isArray(ne)&&(ht=ne[0]*Ye,Nt=ne[1]*Ye),isNaN(ht)&&(ht=i[0],Nt=i[1]),(ht>14400||Nt>14400)&&(mo.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),ht=Math.min(14400,ht),Nt=Math.min(14400,Nt)),i=[ht,Nt],n.substr(0,1)){case"l":Nt>ht&&(i=[Nt,ht]);break;case"p":ht>Nt&&(i=[Nt,ht])}lr(i),jC(q_),oe(Wo),R0!==0&&oe(R0+" J"),El!==0&&oe(El+" j"),Ot.publish("addPage",{pageNumber:Dt})},Mn=function(ne){ne>0&&ne<=Dt&&(re.splice(ne,1),Pt.splice(ne,1),Dt--,F>Dt&&(F=Dt),this.setPage(F))},ri=function(ne){ne>0&&ne<=Dt&&(F=ne)},Gi=p.__private__.getNumberOfPages=p.getNumberOfPages=function(){return re.length-1},ma=function(ne,Ne,ot){var ht,Nt=void 0;return ot=ot||{},ne=ne!==void 0?ne:nt[je].fontName,Ne=Ne!==void 0?Ne:nt[je].fontStyle,ht=ne.toLowerCase(),Qe[ht]!==void 0&&Qe[ht][Ne]!==void 0?Nt=Qe[ht][Ne]:Qe[ne]!==void 0&&Qe[ne][Ne]!==void 0?Nt=Qe[ne][Ne]:ot.disableWarning===!1&&mo.warn("Unable to look up font label for font '"+ne+"', '"+Ne+"'. Refer to getFontList() for available fonts."),Nt||ot.noFallback||(Nt=Qe.times[Ne])==null&&(Nt=Qe.times.normal),Nt},Oa=p.__private__.putInfo=function(){var ne=zt(),Ne=function(ht){return ht};for(var ot in u!==null&&(Ne=Ea.encryptor(ne,0)),oe("<<"),oe("/Producer ("+Jn(Ne("jsPDF "+zr.version))+")"),Be)Be.hasOwnProperty(ot)&&Be[ot]&&oe("/"+ot.substr(0,1).toUpperCase()+ot.substr(1)+" ("+Jn(Ne(Be[ot]))+")");oe("/CreationDate ("+Jn(Ne($))+")"),oe(">>"),oe("endobj")},La=p.__private__.putCatalog=function(ne){var Ne=(ne=ne||{}).rootDictionaryObjId||fn;switch(zt(),oe("<<"),oe("/Type /Catalog"),oe("/Pages "+Ne+" 0 R"),me||(me="fullwidth"),me){case"fullwidth":oe("/OpenAction [3 0 R /FitH null]");break;case"fullheight":oe("/OpenAction [3 0 R /FitV null]");break;case"fullpage":oe("/OpenAction [3 0 R /Fit]");break;case"original":oe("/OpenAction [3 0 R /XYZ null null 1]");break;default:var ot=""+me;ot.substr(ot.length-1)==="%"&&(me=parseInt(me)/100),typeof me=="number"&&oe("/OpenAction [3 0 R /XYZ null null "+I(me)+"]")}switch(Pe||(Pe="continuous"),Pe){case"continuous":oe("/PageLayout /OneColumn");break;case"single":oe("/PageLayout /SinglePage");break;case"two":case"twoleft":oe("/PageLayout /TwoColumnLeft");break;case"tworight":oe("/PageLayout /TwoColumnRight")}xe&&oe("/PageMode /"+xe),Ot.publish("putCatalog"),oe(">>"),oe("endobj")},rr=p.__private__.putTrailer=function(){oe("trailer"),oe("<<"),oe("/Size "+(W+1)),oe("/Root "+W+" 0 R"),oe("/Info "+(W-1)+" 0 R"),u!==null&&oe("/Encrypt "+Ea.oid+" 0 R"),oe("/ID [ <"+D+"> <"+D+"> ]"),oe(">>")},dr=p.__private__.putHeader=function(){oe("%PDF-"+h),oe("%ºß¬à")},xn=p.__private__.putXRef=function(){var ne="0000000000";oe("xref"),oe("0 "+(W+1)),oe("0000000000 65535 f ");for(var Ne=1;Ne<=W;Ne++)typeof K[Ne]=="function"?oe((ne+K[Ne]()).slice(-10)+" 00000 n "):K[Ne]!==void 0?oe((ne+K[Ne]).slice(-10)+" 00000 n "):oe("0000000000 00000 n ")},Yn=p.__private__.buildDocument=function(){fe(),ge(J),Ot.publish("buildDocument"),dr(),un(),ur(),Fn(),u!==null&&ft(),Oa(),La();var ne=te;return xn(),rr(),oe("startxref"),oe(""+ne),oe("%%EOF"),ge(re[F]),J.join(`
`)},ui=p.__private__.getBlob=function(ne){return new Blob([ce(ne)],{type:"application/pdf"})},Va=p.output=p.__private__.output=Un(function(ne,Ne){switch(typeof(Ne=Ne||{})=="string"?Ne={filename:Ne}:Ne.filename=Ne.filename||"generated.pdf",ne){case void 0:return Yn();case"save":p.save(Ne.filename);break;case"arraybuffer":return ce(Yn());case"blob":return ui(Yn());case"bloburi":case"bloburl":if(Ur.URL!==void 0&&typeof Ur.URL.createObjectURL=="function")return Ur.URL&&Ur.URL.createObjectURL(ui(Yn()))||void 0;mo.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var ot="",ht=Yn();try{ot=moe(ht)}catch{ot=moe(unescape(encodeURIComponent(ht)))}return"data:application/pdf;filename="+Ne.filename+";base64,"+ot;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Ur)==="[object Window]"){var Nt="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",Yt=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';Ne.pdfObjectUrl&&(Nt=Ne.pdfObjectUrl,Yt="");var En='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><script src="'+Nt+'"'+Yt+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(Ne)+");<\/script></body></html>",Qn=Ur.open();return Qn!==null&&Qn.document.write(En),Qn}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(Ur)==="[object Window]"){var _r='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe id="pdfViewer" src="'+(Ne.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+Ne.filename+'" width="500px" height="400px" /></body></html>',Xr=Ur.open();if(Xr!==null){Xr.document.write(_r);var ii=this;Xr.document.documentElement.querySelector("#pdfViewer").onload=function(){Xr.document.title=Ne.filename,Xr.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(ii.output("bloburl"))}}return Xr}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(Ur)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Pi='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe src="'+this.output("datauristring",Ne)+'"></iframe></body></html>',_o=Ur.open();if(_o!==null&&(_o.document.write(Pi),_o.document.title=Ne.filename),_o||typeof safari>"u")return _o;break;case"datauri":case"dataurl":return Ur.document.location.href=this.output("datauristring",Ne);default:return null}}),Sa=function(ne){return Array.isArray(sn)===!0&&sn.indexOf(ne)>-1};switch(r){case"pt":Ye=1;break;case"mm":Ye=72/25.4;break;case"cm":Ye=72/2.54;break;case"in":Ye=72;break;case"px":Ye=Sa("px_scaling")==1?.75:96/72;break;case"pc":case"em":Ye=12;break;case"ex":Ye=6;break;default:if(typeof r!="number")throw new Error("Invalid unit: "+r);Ye=r}var Ea=null;B(),U();var Ml=function(ne){return u!==null?Ea.encryptor(ne,0):function(Ne){return Ne}},Dl=p.__private__.getPageInfo=p.getPageInfo=function(ne){if(isNaN(ne)||ne%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Pt[ne].objId,pageNumber:ne,pageContext:Pt[ne]}},mr=p.__private__.getPageInfoByObjId=function(ne){if(isNaN(ne)||ne%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var Ne in Pt)if(Pt[Ne].objId===ne)break;return Dl(Ne)},Ud=p.__private__.getCurrentPageInfo=p.getCurrentPageInfo=function(){return{objId:Pt[F].objId,pageNumber:F,pageContext:Pt[F]}};p.addPage=function(){return On.apply(this,arguments),this},p.setPage=function(){return ri.apply(this,arguments),ge.call(this,re[F]),this},p.insertPage=function(ne){return this.addPage(),this.movePage(F,ne),this},p.movePage=function(ne,Ne){var ot,ht;if(ne>Ne){ot=re[ne],ht=Pt[ne];for(var Nt=ne;Nt>Ne;Nt--)re[Nt]=re[Nt-1],Pt[Nt]=Pt[Nt-1];re[Ne]=ot,Pt[Ne]=ht,this.setPage(Ne)}else if(ne<Ne){ot=re[ne],ht=Pt[ne];for(var Yt=ne;Yt<Ne;Yt++)re[Yt]=re[Yt+1],Pt[Yt]=Pt[Yt+1];re[Ne]=ot,Pt[Ne]=ht,this.setPage(Ne)}return this},p.deletePage=function(){return Mn.apply(this,arguments),this},p.__private__.text=p.text=function(ne,Ne,ot,ht,Nt){var Yt,En,Qn,_r,Xr,ii,Pi,_o,Yo,Ko=(ht=ht||{}).scope||this;if(typeof ne=="number"&&typeof Ne=="number"&&(typeof ot=="string"||Array.isArray(ot))){var il=ot;ot=Ne,Ne=ne,ne=il}if(arguments[3]instanceof tt?(T("The transform parameter of text() with a Matrix value"),Yo=Nt):(Qn=arguments[4],_r=arguments[5],cn(Pi=arguments[3])==="object"&&Pi!==null||(typeof Qn=="string"&&(_r=Qn,Qn=null),typeof Pi=="string"&&(_r=Pi,Pi=null),typeof Pi=="number"&&(Qn=Pi,Pi=null),ht={flags:Pi,angle:Qn,align:_r})),isNaN(Ne)||isNaN(ot)||ne==null)throw new Error("Invalid arguments passed to jsPDF.text");if(ne.length===0)return Ko;var al="",Vu=!1,fo=typeof ht.lineHeightFactor=="number"?ht.lineHeightFactor:Rv,Gd=Ko.internal.scaleFactor;function Bm(ua){return ua=ua.split("	").join(Array(ht.TabLen||9).join(" ")),Jn(ua,Pi)}function L0(ua){for(var wa,So=ua.concat(),Br=[],th=So.length;th--;)typeof(wa=So.shift())=="string"?Br.push(wa):Array.isArray(ua)&&(wa.length===1||wa[1]===void 0&&wa[2]===void 0)?Br.push(wa[0]):Br.push([wa[0],wa[1],wa[2]]);return Br}function P0(ua,wa){var So;if(typeof ua=="string")So=wa(ua)[0];else if(Array.isArray(ua)){for(var Br,th,nh=ua.concat(),rh=[],WC=nh.length;WC--;)typeof(Br=nh.shift())=="string"?rh.push(wa(Br)[0]):Array.isArray(Br)&&typeof Br[0]=="string"&&(th=wa(Br[0],Br[1],Br[2]),rh.push([th[0],th[1],th[2]]));So=rh}return So}var k0=!1,X_=!0;if(typeof ne=="string")k0=!0;else if(Array.isArray(ne)){var Z_=ne.concat();En=[];for(var M0,Nc=Z_.length;Nc--;)(typeof(M0=Z_.shift())!="string"||Array.isArray(M0)&&typeof M0[0]!="string")&&(X_=!1);k0=X_}if(k0===!1)throw new Error('Type of text must be string or Array. "'+ne+'" is not recognized.');typeof ne=="string"&&(ne=ne.match(/[\r?\n]/)?ne.split(/\r\n|\r|\n/g):[ne]);var qd=ye/Ko.internal.scaleFactor,D0=qd*(fo-1);switch(ht.baseline){case"bottom":ot-=D0;break;case"top":ot+=qd-D0;break;case"hanging":ot+=qd-2*D0;break;case"middle":ot+=qd/2-D0}if((ii=ht.maxWidth||0)>0&&(typeof ne=="string"?ne=Ko.splitTextToSize(ne,ii):Object.prototype.toString.call(ne)==="[object Array]"&&(ne=ne.reduce(function(ua,wa){return ua.concat(Ko.splitTextToSize(wa,ii))},[]))),Yt={text:ne,x:Ne,y:ot,options:ht,mutex:{pdfEscape:Jn,activeFontKey:je,fonts:nt,activeFontSize:ye}},Ot.publish("preProcessText",Yt),ne=Yt.text,Qn=(ht=Yt.options).angle,!(Yo instanceof tt)&&Qn&&typeof Qn=="number"){Qn*=Math.PI/180,ht.rotationDirection===0&&(Qn=-Qn),_===y.ADVANCED&&(Qn=-Qn);var $0=Math.cos(Qn),Ov=Math.sin(Qn);Yo=new tt($0,Ov,-Ov,$0,0,0)}else Qn&&Qn instanceof tt&&(Yo=Qn);_!==y.ADVANCED||Yo||(Yo=Et),(Xr=ht.charSpace||Nv)!==void 0&&(al+=x(N(Xr))+` Tc
`,this.setCharSpace(this.getCharSpace()||0)),(_o=ht.horizontalScale)!==void 0&&(al+=x(100*_o)+` Tz
`),ht.lang;var tc=-1,Uf=ht.renderingMode!==void 0?ht.renderingMode:ht.stroke,jm=Ko.internal.getCurrentPageInfo().pageContext;switch(Uf){case 0:case!1:case"fill":tc=0;break;case 1:case!0:case"stroke":tc=1;break;case 2:case"fillThenStroke":tc=2;break;case 3:case"invisible":tc=3;break;case 4:case"fillAndAddForClipping":tc=4;break;case 5:case"strokeAndAddPathForClipping":tc=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":tc=6;break;case 7:case"addToPathForClipping":tc=7}var qC=jm.usedRenderingMode!==void 0?jm.usedRenderingMode:-1;tc!==-1?al+=tc+` Tr
`:qC!==-1&&(al+=`0 Tr
`),tc!==-1&&(jm.usedRenderingMode=tc),_r=ht.align||"left";var Wd,Q_=ye*fo,zm=Ko.internal.pageSize.getWidth(),au=nt[je];Xr=ht.charSpace||Nv,ii=ht.maxWidth||0,Pi=Object.assign({autoencode:!0,noBOM:!0},ht.flags);var Zp=[];if(Object.prototype.toString.call(ne)==="[object Array]"){var Gu;En=L0(ne),_r!=="left"&&(Wd=En.map(function(ua){return Ko.getStringUnitWidth(ua,{font:au,charSpace:Xr,fontSize:ye,doKerning:!1})*ye/Gd}));var Yd,Um=0;if(_r==="right"){Ne-=Wd[0],ne=[],Nc=En.length;for(var Hf=0;Hf<Nc;Hf++)Hf===0?(Yd=Hd(Ne),Gu=Rc(ot)):(Yd=N(Um-Wd[Hf]),Gu=-Q_),ne.push([En[Hf],Yd,Gu]),Um=Wd[Hf]}else if(_r==="center"){Ne-=Wd[0]/2,ne=[],Nc=En.length;for(var Qp=0;Qp<Nc;Qp++)Qp===0?(Yd=Hd(Ne),Gu=Rc(ot)):(Yd=N((Um-Wd[Qp])/2),Gu=-Q_),ne.push([En[Qp],Yd,Gu]),Um=Wd[Qp]}else if(_r==="left"){ne=[],Nc=En.length;for(var Kd=0;Kd<Nc;Kd++)ne.push(En[Kd])}else{if(_r!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');ne=[],Nc=En.length,ii=ii!==0?ii:zm;for(var bt=0;bt<Nc;bt++)Gu=bt===0?Rc(ot):-Q_,Yd=bt===0?Hd(Ne):0,bt<Nc-1?Zp.push(x(N((ii-Wd[bt])/(En[bt].split(" ").length-1)))):Zp.push(0),ne.push([En[bt],Yd,Gu])}}var Zt=typeof ht.R2L=="boolean"?ht.R2L:Te;Zt===!0&&(ne=P0(ne,function(ua,wa,So){return[ua.split("").reverse().join(""),wa,So]})),Yt={text:ne,x:Ne,y:ot,options:ht,mutex:{pdfEscape:Jn,activeFontKey:je,fonts:nt,activeFontSize:ye}},Ot.publish("postProcessText",Yt),ne=Yt.text,Vu=Yt.mutex.isHex||!1;var jt=nt[je].encoding;jt!=="WinAnsiEncoding"&&jt!=="StandardEncoding"||(ne=P0(ne,function(ua,wa,So){return[Bm(ua),wa,So]})),En=L0(ne),ne=[];for(var Gn,Sr,yi,po=0,aa=1,Jp=Array.isArray(En[0])?aa:po,Hm="",$l=function(ua,wa,So){var Br="";return So instanceof tt?(So=typeof ht.angle=="number"?dt(So,new tt(1,0,0,1,ua,wa)):dt(new tt(1,0,0,1,ua,wa),So),_===y.ADVANCED&&(So=dt(new tt(1,0,0,-1,0,0),So)),Br=So.join(" ")+` Tm
`):Br=x(ua)+" "+x(wa)+` Td
`,Br},nc=0;nc<En.length;nc++){switch(Hm="",Jp){case aa:yi=(Vu?"<":"(")+En[nc][0]+(Vu?">":")"),Gn=parseFloat(En[nc][1]),Sr=parseFloat(En[nc][2]);break;case po:yi=(Vu?"<":"(")+En[nc]+(Vu?">":")"),Gn=Hd(Ne),Sr=Rc(ot)}Zp!==void 0&&Zp[nc]!==void 0&&(Hm=Zp[nc]+` Tw
`),nc===0?ne.push(Hm+$l(Gn,Sr,Yo)+yi):Jp===po?ne.push(Hm+yi):Jp===aa&&ne.push(Hm+$l(Gn,Sr,Yo)+yi)}ne=Jp===po?ne.join(` Tj
T* `):ne.join(` Tj
`),ne+=` Tj
`;var eh=`BT
/`;return eh+=je+" "+ye+` Tf
`,eh+=x(ye*fo)+` TL
`,eh+=$m+`
`,eh+=al,eh+=ne,oe(eh+="ET"),f[je]=!0,Ko};var Iv=p.__private__.clip=p.clip=function(ne){return oe(ne==="evenodd"?"W*":"W"),this};p.clipEvenOdd=function(){return Iv("evenodd")},p.__private__.discardPath=p.discardPath=function(){return oe("n"),this};var Kn=p.__private__.isValidStyle=function(ne){var Ne=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(ne)!==-1&&(Ne=!0),Ne};p.__private__.setDefaultPathOperation=p.setDefaultPathOperation=function(ne){return Kn(ne)&&(c=ne),this};var Ir=p.__private__.getStyle=p.getStyle=function(ne){var Ne=c;switch(ne){case"D":case"S":Ne="S";break;case"F":Ne="f";break;case"FD":case"DF":Ne="B";break;case"f":case"f*":case"B":case"B*":Ne=ne}return Ne},Ca=p.close=function(){return oe("h"),this};p.stroke=function(){return oe("S"),this},p.fill=function(ne){return eo("f",ne),this},p.fillEvenOdd=function(ne){return eo("f*",ne),this},p.fillStroke=function(ne){return eo("B",ne),this},p.fillStrokeEvenOdd=function(ne){return eo("B*",ne),this};var eo=function(ne,Ne){cn(Ne)==="object"?Av(Ne,ne):oe(ne)},Pa=function(ne){ne===null||_===y.ADVANCED&&ne===void 0||(ne=Ir(ne),oe(ne))};function Mm(ne,Ne,ot,ht,Nt){var Yt=new n5(Ne||this.boundingBox,ot||this.xStep,ht||this.yStep,this.gState,Nt||this.matrix);Yt.stream=this.stream;var En=ne+"$$"+this.cloneIndex+++"$$";return St(En,Yt),Yt}var Av=function(ne,Ne){var ot=Wt[ne.key],ht=yt[ot];if(ht instanceof IS)oe("q"),oe(T0(Ne)),ht.gState&&p.setGState(ht.gState),oe(ne.matrix.toString()+" cm"),oe("/"+ot+" sh"),oe("Q");else if(ht instanceof n5){var Nt=new tt(1,0,0,-1,0,zf());ne.matrix&&(Nt=Nt.multiply(ne.matrix||Et),ot=Mm.call(ht,ne.key,ne.boundingBox,ne.xStep,ne.yStep,Nt).id),oe("q"),oe("/Pattern cs"),oe("/"+ot+" scn"),ht.gState&&p.setGState(ht.gState),oe(Ne),oe("Q")}},T0=function(ne){switch(ne){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},qi=p.moveTo=function(ne,Ne){return oe(x(N(ne))+" "+x(L(Ne))+" m"),this},ia=p.lineTo=function(ne,Ne){return oe(x(N(ne))+" "+x(L(Ne))+" l"),this},Dm=p.curveTo=function(ne,Ne,ot,ht,Nt,Yt){return oe([x(N(ne)),x(L(Ne)),x(N(ot)),x(L(ht)),x(N(Nt)),x(L(Yt)),"c"].join(" ")),this};p.__private__.line=p.line=function(ne,Ne,ot,ht,Nt){if(isNaN(ne)||isNaN(Ne)||isNaN(ot)||isNaN(ht)||!Kn(Nt))throw new Error("Invalid arguments passed to jsPDF.line");return _===y.COMPAT?this.lines([[ot-ne,ht-Ne]],ne,Ne,[1,1],Nt||"S"):this.lines([[ot-ne,ht-Ne]],ne,Ne,[1,1]).stroke()},p.__private__.lines=p.lines=function(ne,Ne,ot,ht,Nt,Yt){var En,Qn,_r,Xr,ii,Pi,_o,Yo,Ko,il,al,Vu;if(typeof ne=="number"&&(Vu=ot,ot=Ne,Ne=ne,ne=Vu),ht=ht||[1,1],Yt=Yt||!1,isNaN(Ne)||isNaN(ot)||!Array.isArray(ne)||!Array.isArray(ht)||!Kn(Nt)||typeof Yt!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(qi(Ne,ot),En=ht[0],Qn=ht[1],Xr=ne.length,il=Ne,al=ot,_r=0;_r<Xr;_r++)(ii=ne[_r]).length===2?(il=ii[0]*En+il,al=ii[1]*Qn+al,ia(il,al)):(Pi=ii[0]*En+il,_o=ii[1]*Qn+al,Yo=ii[2]*En+il,Ko=ii[3]*Qn+al,il=ii[4]*En+il,al=ii[5]*Qn+al,Dm(Pi,_o,Yo,Ko,il,al));return Yt&&Ca(),Pa(Nt),this},p.path=function(ne){for(var Ne=0;Ne<ne.length;Ne++){var ot=ne[Ne],ht=ot.c;switch(ot.op){case"m":qi(ht[0],ht[1]);break;case"l":ia(ht[0],ht[1]);break;case"c":Dm.apply(this,ht);break;case"h":Ca()}}return this},p.__private__.rect=p.rect=function(ne,Ne,ot,ht,Nt){if(isNaN(ne)||isNaN(Ne)||isNaN(ot)||isNaN(ht)||!Kn(Nt))throw new Error("Invalid arguments passed to jsPDF.rect");return _===y.COMPAT&&(ht=-ht),oe([x(N(ne)),x(L(Ne)),x(N(ot)),x(N(ht)),"re"].join(" ")),Pa(Nt),this},p.__private__.triangle=p.triangle=function(ne,Ne,ot,ht,Nt,Yt,En){if(isNaN(ne)||isNaN(Ne)||isNaN(ot)||isNaN(ht)||isNaN(Nt)||isNaN(Yt)||!Kn(En))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[ot-ne,ht-Ne],[Nt-ot,Yt-ht],[ne-Nt,Ne-Yt]],ne,Ne,[1,1],En,!0),this},p.__private__.roundedRect=p.roundedRect=function(ne,Ne,ot,ht,Nt,Yt,En){if(isNaN(ne)||isNaN(Ne)||isNaN(ot)||isNaN(ht)||isNaN(Nt)||isNaN(Yt)||!Kn(En))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var Qn=4/3*(Math.SQRT2-1);return Nt=Math.min(Nt,.5*ot),Yt=Math.min(Yt,.5*ht),this.lines([[ot-2*Nt,0],[Nt*Qn,0,Nt,Yt-Yt*Qn,Nt,Yt],[0,ht-2*Yt],[0,Yt*Qn,-Nt*Qn,Yt,-Nt,Yt],[2*Nt-ot,0],[-Nt*Qn,0,-Nt,-Yt*Qn,-Nt,-Yt],[0,2*Yt-ht],[0,-Yt*Qn,Nt*Qn,-Yt,Nt,-Yt]],ne+Nt,Ne,[1,1],En,!0),this},p.__private__.ellipse=p.ellipse=function(ne,Ne,ot,ht,Nt){if(isNaN(ne)||isNaN(Ne)||isNaN(ot)||isNaN(ht)||!Kn(Nt))throw new Error("Invalid arguments passed to jsPDF.ellipse");var Yt=4/3*(Math.SQRT2-1)*ot,En=4/3*(Math.SQRT2-1)*ht;return qi(ne+ot,Ne),Dm(ne+ot,Ne-En,ne+Yt,Ne-ht,ne,Ne-ht),Dm(ne-Yt,Ne-ht,ne-ot,Ne-En,ne-ot,Ne),Dm(ne-ot,Ne+En,ne-Yt,Ne+ht,ne,Ne+ht),Dm(ne+Yt,Ne+ht,ne+ot,Ne+En,ne+ot,Ne),Pa(Nt),this},p.__private__.circle=p.circle=function(ne,Ne,ot,ht){if(isNaN(ne)||isNaN(Ne)||isNaN(ot)||!Kn(ht))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(ne,Ne,ot,ot,ht)},p.setFont=function(ne,Ne,ot){return ot&&(Ne=w(Ne,ot)),je=ma(ne,Ne,{disableWarning:!1}),this};var f4=p.__private__.getFont=p.getFont=function(){return nt[ma.apply(p,arguments)]};p.__private__.getFontList=p.getFontList=function(){var ne,Ne,ot={};for(ne in Qe)if(Qe.hasOwnProperty(ne))for(Ne in ot[ne]=[],Qe[ne])Qe[ne].hasOwnProperty(Ne)&&ot[ne].push(Ne);return ot},p.addFont=function(ne,Ne,ot,ht,Nt){var Yt=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&Yt.indexOf(arguments[3])!==-1?Nt=arguments[3]:arguments[3]&&Yt.indexOf(arguments[3])==-1&&(ot=w(ot,ht)),Nt=Nt||"Identity-H",ni.call(this,ne,Ne,ot,Nt)};var Rv,q_=e.lineWidth||.200025,I0=p.__private__.getLineWidth=p.getLineWidth=function(){return q_},jC=p.__private__.setLineWidth=p.setLineWidth=function(ne){return q_=ne,oe(x(N(ne))+" w"),this};p.__private__.setLineDash=zr.API.setLineDash=zr.API.setLineDashPattern=function(ne,Ne){if(ne=ne||[],Ne=Ne||0,isNaN(Ne)||!Array.isArray(ne))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return ne=ne.map(function(ot){return x(N(ot))}).join(" "),Ne=x(N(Ne)),oe("["+ne+"] "+Ne+" d"),this};var W_=p.__private__.getLineHeight=p.getLineHeight=function(){return ye*Rv};p.__private__.getLineHeight=p.getLineHeight=function(){return ye*Rv};var zC=p.__private__.setLineHeightFactor=p.setLineHeightFactor=function(ne){return typeof(ne=ne||1.15)=="number"&&(Rv=ne),this},bs=p.__private__.getLineHeightFactor=p.getLineHeightFactor=function(){return Rv};zC(e.lineHeight);var Hd=p.__private__.getHorizontalCoordinate=function(ne){return N(ne)},Rc=p.__private__.getVerticalCoordinate=function(ne){return _===y.ADVANCED?ne:Pt[F].mediaBox.topRightY-Pt[F].mediaBox.bottomLeftY-N(ne)},UC=p.__private__.getHorizontalCoordinateString=p.getHorizontalCoordinateString=function(ne){return x(Hd(ne))},jf=p.__private__.getVerticalCoordinateString=p.getVerticalCoordinateString=function(ne){return x(Rc(ne))},Wo=e.strokeColor||"0 G";p.__private__.getStrokeColor=p.getDrawColor=function(){return Ht(Wo)},p.__private__.setStrokeColor=p.setDrawColor=function(ne,Ne,ot,ht){return Wo=mn({ch1:ne,ch2:Ne,ch3:ot,ch4:ht,pdfColorType:"draw",precision:2}),oe(Wo),this};var A0=e.fillColor||"0 g";p.__private__.getFillColor=p.getFillColor=function(){return Ht(A0)},p.__private__.setFillColor=p.setFillColor=function(ne,Ne,ot,ht){return A0=mn({ch1:ne,ch2:Ne,ch3:ot,ch4:ht,pdfColorType:"fill",precision:2}),oe(A0),this};var $m=e.textColor||"0 g",HC=p.__private__.getTextColor=p.getTextColor=function(){return Ht($m)};p.__private__.setTextColor=p.setTextColor=function(ne,Ne,ot,ht){return $m=mn({ch1:ne,ch2:Ne,ch3:ot,ch4:ht,pdfColorType:"text",precision:3}),this};var Nv=e.charSpace,VC=p.__private__.getCharSpace=p.getCharSpace=function(){return parseFloat(Nv||0)};p.__private__.setCharSpace=p.setCharSpace=function(ne){if(isNaN(ne))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Nv=ne,this};var R0=0;p.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},p.__private__.setLineCap=p.setLineCap=function(ne){var Ne=p.CapJoinStyles[ne];if(Ne===void 0)throw new Error("Line cap style of '"+ne+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return R0=Ne,oe(Ne+" J"),this};var El=0;p.__private__.setLineJoin=p.setLineJoin=function(ne){var Ne=p.CapJoinStyles[ne];if(Ne===void 0)throw new Error("Line join style of '"+ne+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return El=Ne,oe(Ne+" j"),this},p.__private__.setLineMiterLimit=p.__private__.setMiterLimit=p.setLineMiterLimit=p.setMiterLimit=function(ne){if(ne=ne||0,isNaN(ne))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return oe(x(N(ne))+" M"),this},p.GState=AF,p.setGState=function(ne){(ne=typeof ne=="string"?Mt[tn[ne]]:GC(null,ne)).equals(Rt)||(oe("/"+ne.id+" gs"),Rt=ne)};var GC=function(ne,Ne){if(!ne||!tn[ne]){var ot=!1;for(var ht in Mt)if(Mt.hasOwnProperty(ht)&&Mt[ht].equals(Ne)){ot=!0;break}if(ot)Ne=Mt[ht];else{var Nt="GS"+(Object.keys(Mt).length+1).toString(10);Mt[Nt]=Ne,Ne.id=Nt}return ne&&(tn[ne]=Ne.id),Ot.publish("addGState",Ne),Ne}};p.addGState=function(ne,Ne){return GC(ne,Ne),this},p.saveGraphicsState=function(){return oe("q"),it.push({key:je,size:ye,color:$m}),this},p.restoreGraphicsState=function(){oe("Q");var ne=it.pop();return je=ne.key,ye=ne.size,$m=ne.color,Rt=null,this},p.setCurrentTransformationMatrix=function(ne){return oe(ne.toString()+" cm"),this},p.comment=function(ne){return oe("#"+ne),this};var Cl=function(ne,Ne){var ot=ne||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return ot},set:function(Yt){isNaN(Yt)||(ot=parseFloat(Yt))}});var ht=Ne||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return ht},set:function(Yt){isNaN(Yt)||(ht=parseFloat(Yt))}});var Nt="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return Nt},set:function(Yt){Nt=Yt.toString()}}),this},Y_=function(ne,Ne,ot,ht){Cl.call(this,ne,Ne),this.type="rect";var Nt=ot||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return Nt},set:function(En){isNaN(En)||(Nt=parseFloat(En))}});var Yt=ht||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return Yt},set:function(En){isNaN(En)||(Yt=parseFloat(En))}}),this},N0=function(){this.page=Dt,this.currentPage=F,this.pages=re.slice(0),this.pagesContext=Pt.slice(0),this.x=Ze,this.y=Ke,this.matrix=qe,this.width=ga(F),this.height=zf(F),this.outputDestination=de,this.id="",this.objectNumber=-1};N0.prototype.restore=function(){Dt=this.page,F=this.currentPage,Pt=this.pagesContext,re=this.pages,Ze=this.x,Ke=this.y,qe=this.matrix,Hu(F,this.width),K_(F,this.height),de=this.outputDestination};var Vd=function(ne,Ne,ot,ht,Nt){pt.push(new N0),Dt=F=0,re=[],Ze=ne,Ke=Ne,qe=Nt,lr([ot,ht])},O0=function(ne){if(Vt[ne])pt.pop().restore();else{var Ne=new N0,ot="Xo"+(Object.keys(Jt).length+1).toString(10);Ne.id=ot,Vt[ne]=ot,Jt[ot]=Ne,Ot.publish("addFormObject",Ne),pt.pop().restore()}};for(var Fm in p.beginFormObject=function(ne,Ne,ot,ht,Nt){return Vd(ne,Ne,ot,ht,Nt),this},p.endFormObject=function(ne){return O0(ne),this},p.doFormObject=function(ne,Ne){var ot=Jt[Vt[ne]];return oe("q"),oe(Ne.toString()+" cm"),oe("/"+ot.id+" Do"),oe("Q"),this},p.getFormObject=function(ne){var Ne=Jt[Vt[ne]];return{x:Ne.x,y:Ne.y,width:Ne.width,height:Ne.height,matrix:Ne.matrix}},p.save=function(ne,Ne){return ne=ne||"generated.pdf",(Ne=Ne||{}).returnPromise=Ne.returnPromise||!1,Ne.returnPromise===!1?(hS(ui(Yn()),ne),typeof hS.unload=="function"&&Ur.setTimeout&&setTimeout(hS.unload,911),this):new Promise(function(ot,ht){try{var Nt=hS(ui(Yn()),ne);typeof hS.unload=="function"&&Ur.setTimeout&&setTimeout(hS.unload,911),ot(Nt)}catch(Yt){ht(Yt.message)}})},zr.API)zr.API.hasOwnProperty(Fm)&&(Fm==="events"&&zr.API.events.length?function(ne,Ne){var ot,ht,Nt;for(Nt=Ne.length-1;Nt!==-1;Nt--)ot=Ne[Nt][0],ht=Ne[Nt][1],ne.subscribe.apply(ne,[ot].concat(typeof ht=="function"?[ht]:ht))}(Ot,zr.API.events):p[Fm]=zr.API[Fm]);var ga=p.getPageWidth=function(ne){return(Pt[ne=ne||F].mediaBox.topRightX-Pt[ne].mediaBox.bottomLeftX)/Ye},Hu=p.setPageWidth=function(ne,Ne){Pt[ne].mediaBox.topRightX=Ne*Ye+Pt[ne].mediaBox.bottomLeftX},zf=p.getPageHeight=function(ne){return(Pt[ne=ne||F].mediaBox.topRightY-Pt[ne].mediaBox.bottomLeftY)/Ye},K_=p.setPageHeight=function(ne,Ne){Pt[ne].mediaBox.topRightY=Ne*Ye+Pt[ne].mediaBox.bottomLeftY};return p.internal={pdfEscape:Jn,getStyle:Ir,getFont:f4,getFontSize:_e,getCharSpace:VC,getTextColor:HC,getLineHeight:W_,getLineHeightFactor:bs,getLineWidth:I0,write:Ee,getHorizontalCoordinate:Hd,getVerticalCoordinate:Rc,getCoordinateString:UC,getVerticalCoordinateString:jf,collections:{},newObject:zt,newAdditionalObject:kn,newObjectDeferred:nn,newObjectDeferredBegin:wn,getFilters:Tn,putStream:An,events:Ot,scaleFactor:Ye,pageSize:{getWidth:function(){return ga(F)},setWidth:function(ne){Hu(F,ne)},getHeight:function(){return zf(F)},setHeight:function(ne){K_(F,ne)}},encryptionOptions:u,encryption:Ea,getEncryptor:Ml,output:Va,getNumberOfPages:Gi,pages:re,out:oe,f2:I,f3:R,getPageInfo:Dl,getPageInfoByObjId:mr,getCurrentPageInfo:Ud,getPDFVersion:m,Point:Cl,Rectangle:Y_,Matrix:tt,hasHotfix:Sa},Object.defineProperty(p.internal.pageSize,"width",{get:function(){return ga(F)},set:function(ne){Hu(F,ne)},enumerable:!0,configurable:!0}),Object.defineProperty(p.internal.pageSize,"height",{get:function(){return zf(F)},set:function(ne){K_(F,ne)},enumerable:!0,configurable:!0}),fr.call(p,he),je="F1",On(i,n),Ot.publish("initialized"),p}Ex.prototype.lsbFirstWord=function(e){return String.fromCharCode(e>>0&255,e>>8&255,e>>16&255,e>>24&255)},Ex.prototype.toHexString=function(e){return e.split("").map(function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)}).join("")},Ex.prototype.hexToBytes=function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(String.fromCharCode(parseInt(e.substr(n,2),16)));return t.join("")},Ex.prototype.processOwnerPassword=function(e,t){return voe(goe(t).substr(0,5),e)},Ex.prototype.encryptor=function(e,t){var n=goe(this.encryptionKey+String.fromCharCode(255&e,e>>8&255,e>>16&255,255&t,t>>8&255)).substr(0,10);return function(r){return voe(n,r)}},AF.prototype.equals=function(e){var t,n="id,objectNumber,equals";if(!e||cn(e)!==cn(this))return!1;var r=0;for(t in this)if(!(n.indexOf(t)>=0)){if(this.hasOwnProperty(t)&&!e.hasOwnProperty(t)||this[t]!==e[t])return!1;r++}for(t in e)e.hasOwnProperty(t)&&n.indexOf(t)<0&&r--;return r===0},zr.API={events:[]},zr.version="2.5.1";var Ts=zr.API,Lhe=1,PC=function(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Lw=function(e){return e.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},oi=function(e){return e.toFixed(2)},dy=function(e){return e.toFixed(5)};Ts.__acroform__={};var zd=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e},VAe=function(e){return e*Lhe},hg=function(e){var t=new qet,n=cr.internal.getHeight(e)||0,r=cr.internal.getWidth(e)||0;return t.BBox=[0,0,Number(oi(r)),Number(oi(n))],t},P9n=Ts.__acroform__.setBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return e|=1<<t},k9n=Ts.__acroform__.clearBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return e&=~(1<<t)},M9n=Ts.__acroform__.getBit=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return e&1<<t?1:0},Ws=Ts.__acroform__.getBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return M9n(e,t-1)},Ys=Ts.__acroform__.setBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return P9n(e,t-1)},Ks=Ts.__acroform__.clearBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return k9n(e,t-1)},D9n=Ts.__acroform__.calculateCoordinates=function(e,t){var n=t.internal.getHorizontalCoordinate,r=t.internal.getVerticalCoordinate,i=e[0],a=e[1],o=e[2],s=e[3],l={};return l.lowerLeft_X=n(i)||0,l.lowerLeft_Y=r(a+s)||0,l.upperRight_X=n(i+o)||0,l.upperRight_Y=r(a)||0,[Number(oi(l.lowerLeft_X)),Number(oi(l.lowerLeft_Y)),Number(oi(l.upperRight_X)),Number(oi(l.upperRight_Y))]},$9n=function(e){if(e.appearanceStreamContent)return e.appearanceStreamContent;if(e.V||e.DV){var t=[],n=e._V||e.DV,r=yoe(e,n),i=e.scope.internal.getFont(e.fontName,e.fontStyle).id;t.push("/Tx BMC"),t.push("q"),t.push("BT"),t.push(e.scope.__private__.encodeColorString(e.color)),t.push("/"+i+" "+oi(r.fontSize)+" Tf"),t.push("1 0 0 1 0 0 Tm"),t.push(r.text),t.push("ET"),t.push("Q"),t.push("EMC");var a=hg(e);return a.scope=e.scope,a.stream=t.join(`
`),a}},yoe=function(e,t){var n=e.fontSize===0?e.maxFontSize:e.fontSize,r={text:"",fontSize:""},i=(t=(t=t.substr(0,1)=="("?t.substr(1):t).substr(t.length-1)==")"?t.substr(0,t.length-1):t).split(" ");i=e.multiline?i.map(function(R){return R.split(`
`)}):i.map(function(R){return[R]});var a=n,o=cr.internal.getHeight(e)||0;o=o<0?-o:o;var s=cr.internal.getWidth(e)||0;s=s<0?-s:s;var l=function(R,N,P){if(R+1<i.length){var L=N+" "+i[R+1][0];return qP(L,e,P).width<=s-4}return!1};a++;e:for(;a>0;){t="",a--;var c,u,d=qP("3",e,a).height,f=e.multiline?o-a:(o-d)/2,p=f+=2,h=0,m=0,g=0;if(a<=0){t=`(...) Tj
`,t+="% Width of Text: "+qP(t,e,a=12).width+", FieldWidth:"+s+`
`;break}for(var v="",y=0,_=0;_<i.length;_++)if(i.hasOwnProperty(_)){var S=!1;if(i[_].length!==1&&g!==i[_].length-1){if((d+2)*(y+2)+2>o)continue e;v+=i[_][g],S=!0,m=_,_--}else{v=(v+=i[_][g]+" ").substr(v.length-1)==" "?v.substr(0,v.length-1):v;var C=parseInt(_),w=l(C,v,a),x=_>=i.length-1;if(w&&!x){v+=" ",g=0;continue}if(w||x){if(x)m=C;else if(e.multiline&&(d+2)*(y+2)+2>o)continue e}else{if(!e.multiline||(d+2)*(y+2)+2>o)continue e;m=C}}for(var T="",A=h;A<=m;A++){var I=i[A];if(e.multiline){if(A===m){T+=I[g]+" ",g=(g+1)%I.length;continue}if(A===h){T+=I[I.length-1]+" ";continue}}T+=I[0]+" "}switch(T=T.substr(T.length-1)==" "?T.substr(0,T.length-1):T,u=qP(T,e,a).width,e.textAlign){case"right":c=s-u-2;break;case"center":c=(s-u)/2;break;case"left":default:c=2}t+=oi(c)+" "+oi(p)+` Td
`,t+="("+PC(T)+`) Tj
`,t+=-oi(c)+` 0 Td
`,p=-(a+2),u=0,h=S?m:m+1,y++,v=""}break}return r.text=t,r.fontSize=a,r},qP=function(e,t,n){var r=t.scope.internal.getFont(t.fontName,t.fontStyle),i=t.scope.getStringUnitWidth(e,{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n);return{height:t.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n)*1.5,width:i}},F9n={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},B9n=function(e,t){var n={type:"reference",object:e};t.internal.getPageInfo(e.page).pageContext.annotations.find(function(r){return r.type===n.type&&r.object===n.object})===void 0&&t.internal.getPageInfo(e.page).pageContext.annotations.push(n)},j9n=function(e,t){for(var n in e)if(e.hasOwnProperty(n)){var r=n,i=e[n];t.internal.newObjectDeferredBegin(i.objId,!0),cn(i)==="object"&&typeof i.putStream=="function"&&i.putStream(),delete e[r]}},z9n=function(e,t){if(t.scope=e,e.internal!==void 0&&(e.internal.acroformPlugin===void 0||e.internal.acroformPlugin.isInitialized===!1)){if(Am.FieldNum=0,e.internal.acroformPlugin=JSON.parse(JSON.stringify(F9n)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Lhe=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new Wet,e.internal.acroformPlugin.acroFormDictionaryRoot.scope=e,e.internal.acroformPlugin.acroFormDictionaryRoot._eventID=e.internal.events.subscribe("postPutResources",function(){(function(n){n.internal.events.unsubscribe(n.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete n.internal.acroformPlugin.acroFormDictionaryRoot._eventID,n.internal.acroformPlugin.printedOut=!0})(e)}),e.internal.events.subscribe("buildDocument",function(){(function(n){n.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var r=n.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var i in r)if(r.hasOwnProperty(i)){var a=r[i];a.objId=void 0,a.hasAnnotation&&B9n(a,n)}})(e)}),e.internal.events.subscribe("putCatalog",function(){(function(n){if(n.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");n.internal.write("/AcroForm "+n.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(e)}),e.internal.events.subscribe("postPutPages",function(n){(function(r,i){var a=!r;for(var o in r||(i.internal.newObjectDeferredBegin(i.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),i.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),r=r||i.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(r.hasOwnProperty(o)){var s=r[o],l=[],c=s.Rect;if(s.Rect&&(s.Rect=D9n(s.Rect,i)),i.internal.newObjectDeferredBegin(s.objId,!0),s.DA=cr.createDefaultAppearanceStream(s),cn(s)==="object"&&typeof s.getKeyValueListForStream=="function"&&(l=s.getKeyValueListForStream()),s.Rect=c,s.hasAppearanceStream&&!s.appearanceStreamContent){var u=$9n(s);l.push({key:"AP",value:"<</N "+u+">>"}),i.internal.acroformPlugin.xForms.push(u)}if(s.appearanceStreamContent){var d="";for(var f in s.appearanceStreamContent)if(s.appearanceStreamContent.hasOwnProperty(f)){var p=s.appearanceStreamContent[f];if(d+="/"+f+" ",d+="<<",Object.keys(p).length>=1||Array.isArray(p)){for(var o in p)if(p.hasOwnProperty(o)){var h=p[o];typeof h=="function"&&(h=h.call(i,s)),d+="/"+o+" "+h+" ",i.internal.acroformPlugin.xForms.indexOf(h)>=0||i.internal.acroformPlugin.xForms.push(h)}}else typeof(h=p)=="function"&&(h=h.call(i,s)),d+="/"+o+" "+h,i.internal.acroformPlugin.xForms.indexOf(h)>=0||i.internal.acroformPlugin.xForms.push(h);d+=">>"}l.push({key:"AP",value:`<<
`+d+">>"})}i.internal.putStream({additionalKeyValues:l,objectId:s.objId}),i.internal.out("endobj")}a&&j9n(i.internal.acroformPlugin.xForms,i)})(n,e)}),e.internal.acroformPlugin.isInitialized=!0}},Get=Ts.__acroform__.arrayToPdfArray=function(e,t,n){var r=function(o){return o};if(Array.isArray(e)){for(var i="[",a=0;a<e.length;a++)switch(a!==0&&(i+=" "),cn(e[a])){case"boolean":case"number":case"object":i+=e[a].toString();break;case"string":e[a].substr(0,1)!=="/"?(t!==void 0&&n&&(r=n.internal.getEncryptor(t)),i+="("+PC(r(e[a].toString()))+")"):i+=e[a].toString()}return i+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},rJ=function(e,t,n){var r=function(i){return i};return t!==void 0&&n&&(r=n.internal.getEncryptor(t)),(e=e||"").toString(),e="("+PC(r(e))+")"},$g=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(e){this._objId=e}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};$g.prototype.toString=function(){return this.objId+" 0 R"},$g.prototype.putStream=function(){var e=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:e,objectId:this.objId}),this.scope.internal.out("endobj")},$g.prototype.getKeyValueListForStream=function(){var e=[],t=Object.getOwnPropertyNames(this).filter(function(a){return a!="content"&&a!="appearanceStreamContent"&&a!="scope"&&a!="objId"&&a.substring(0,1)!="_"});for(var n in t)if(Object.getOwnPropertyDescriptor(this,t[n]).configurable===!1){var r=t[n],i=this[r];i&&(Array.isArray(i)?e.push({key:r,value:Get(i,this.objId,this.scope)}):i instanceof $g?(i.scope=this.scope,e.push({key:r,value:i.objId+" 0 R"})):typeof i!="function"&&e.push({key:r,value:i}))}return e};var qet=function(){$g.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var e,t=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return t},set:function(n){t=n}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(n){e=n.trim()},get:function(){return e||null}})};zd(qet,$g);var Wet=function(){$g.call(this);var e,t=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return t.length>0?t:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return t}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(e){var n=function(r){return r};return this.scope&&(n=this.scope.internal.getEncryptor(this.objId)),"("+PC(n(e))+")"}},set:function(n){e=n}})};zd(Wet,$g);var Am=function e(){$g.call(this);var t=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return t},set:function(v){if(isNaN(v))throw new Error('Invalid value "'+v+'" for attribute F supplied.');t=v}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Ws(t,3)},set:function(v){v?this.F=Ys(t,3):this.F=Ks(t,3)}});var n=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return n},set:function(v){if(isNaN(v))throw new Error('Invalid value "'+v+'" for attribute Ff supplied.');n=v}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(r.length!==0)return r},set:function(v){r=v!==void 0?v:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(v){r[0]=v}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(v){r[1]=v}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(v){r[2]=v}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(v){r[3]=v}});var i="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return i},set:function(v){switch(v){case"/Btn":case"/Tx":case"/Ch":case"/Sig":i=v;break;default:throw new Error('Invalid value "'+v+'" for attribute FT supplied.')}}});var a=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!a||a.length<1){if(this instanceof RF)return;a="FieldObject"+e.FieldNum++}var v=function(y){return y};return this.scope&&(v=this.scope.internal.getEncryptor(this.objId)),"("+PC(v(a))+")"},set:function(v){a=v.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return a},set:function(v){a=v}});var o="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return o},set:function(v){o=v}});var s="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return s},set:function(v){s=v}});var l=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return l},set:function(v){l=v}});var c=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return c===void 0?50/Lhe:c},set:function(v){c=v}});var u="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return u},set:function(v){u=v}});var d="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!d||this instanceof RF||this instanceof pE))return rJ(d,this.objId,this.scope)},set:function(v){v=v.toString(),d=v}});var f=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(f)return this instanceof ql?f:rJ(f,this.objId,this.scope)},set:function(v){v=v.toString(),f=this instanceof ql?v:v.substr(0,1)==="("?Lw(v.substr(1,v.length-2)):Lw(v)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof ql?Lw(f.substr(1,f.length-1)):f},set:function(v){v=v.toString(),f=this instanceof ql?"/"+v:v}});var p=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(p)return p},set:function(v){this.V=v}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(p)return this instanceof ql?p:rJ(p,this.objId,this.scope)},set:function(v){v=v.toString(),p=this instanceof ql?v:v.substr(0,1)==="("?Lw(v.substr(1,v.length-2)):Lw(v)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof ql?Lw(p.substr(1,p.length-1)):p},set:function(v){v=v.toString(),p=this instanceof ql?"/"+v:v}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var h,m=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return m},set:function(v){v=!!v,m=v}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(h)return h},set:function(v){h=v}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Ws(this.Ff,1)},set:function(v){v?this.Ff=Ys(this.Ff,1):this.Ff=Ks(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Ws(this.Ff,2)},set:function(v){v?this.Ff=Ys(this.Ff,2):this.Ff=Ks(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Ws(this.Ff,3)},set:function(v){v?this.Ff=Ys(this.Ff,3):this.Ff=Ks(this.Ff,3)}});var g=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(g!==null)return g},set:function(v){if([0,1,2].indexOf(v)===-1)throw new Error('Invalid value "'+v+'" for attribute Q supplied.');g=v}}),Object.defineProperty(this,"textAlign",{get:function(){var v;switch(g){case 0:default:v="left";break;case 1:v="center";break;case 2:v="right"}return v},configurable:!0,enumerable:!0,set:function(v){switch(v){case"right":case 2:g=2;break;case"center":case 1:g=1;break;case"left":case 0:default:g=0}}})};zd(Am,$g);var M5=function(){Am.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var e=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return e},set:function(n){e=n}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return e},set:function(n){e=n}});var t=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return Get(t,this.objId,this.scope)},set:function(n){var r,i;i=[],typeof(r=n)=="string"&&(i=function(a,o,s){s||(s=1);for(var l,c=[];l=o.exec(a);)c.push(l[s]);return c}(r,/\((.*?)\)/g)),t=i}}),this.getOptions=function(){return t},this.setOptions=function(n){t=n,this.sort&&t.sort()},this.addOption=function(n){n=(n=n||"").toString(),t.push(n),this.sort&&t.sort()},this.removeOption=function(n,r){for(r=r||!1,n=(n=n||"").toString();t.indexOf(n)!==-1&&(t.splice(t.indexOf(n),1),r!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!Ws(this.Ff,18)},set:function(n){n?this.Ff=Ys(this.Ff,18):this.Ff=Ks(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Ws(this.Ff,19)},set:function(n){this.combo===!0&&(n?this.Ff=Ys(this.Ff,19):this.Ff=Ks(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Ws(this.Ff,20)},set:function(n){n?(this.Ff=Ys(this.Ff,20),t.sort()):this.Ff=Ks(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Ws(this.Ff,22)},set:function(n){n?this.Ff=Ys(this.Ff,22):this.Ff=Ks(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Ws(this.Ff,23)},set:function(n){n?this.Ff=Ys(this.Ff,23):this.Ff=Ks(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Ws(this.Ff,27)},set:function(n){n?this.Ff=Ys(this.Ff,27):this.Ff=Ks(this.Ff,27)}}),this.hasAppearanceStream=!1};zd(M5,Am);var D5=function(){M5.call(this),this.fontName="helvetica",this.combo=!1};zd(D5,M5);var $5=function(){D5.call(this),this.combo=!0};zd($5,D5);var PM=function(){$5.call(this),this.edit=!0};zd(PM,$5);var ql=function(){Am.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Ws(this.Ff,15)},set:function(n){n?this.Ff=Ys(this.Ff,15):this.Ff=Ks(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Ws(this.Ff,16)},set:function(n){n?this.Ff=Ys(this.Ff,16):this.Ff=Ks(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Ws(this.Ff,17)},set:function(n){n?this.Ff=Ys(this.Ff,17):this.Ff=Ks(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Ws(this.Ff,26)},set:function(n){n?this.Ff=Ys(this.Ff,26):this.Ff=Ks(this.Ff,26)}});var e,t={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var n=function(a){return a};if(this.scope&&(n=this.scope.internal.getEncryptor(this.objId)),Object.keys(t).length!==0){var r,i=[];for(r in i.push("<<"),t)i.push("/"+r+" ("+PC(n(t[r]))+")");return i.push(">>"),i.join(`
`)}},set:function(n){cn(n)==="object"&&(t=n)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return t.CA||""},set:function(n){typeof n=="string"&&(t.CA=n)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(n){e=n}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(n){e="/"+n}})};zd(ql,Am);var kM=function(){ql.call(this),this.pushButton=!0};zd(kM,ql);var F5=function(){ql.call(this),this.radio=!0,this.pushButton=!1;var e=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t!==void 0?t:[]}})};zd(F5,ql);var RF=function(){var e,t;Am.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return e},set:function(i){e=i}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(i){t=i}});var n,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var i=function(s){return s};this.scope&&(i=this.scope.internal.getEncryptor(this.objId));var a,o=[];for(a in o.push("<<"),r)o.push("/"+a+" ("+PC(i(r[a]))+")");return o.push(">>"),o.join(`
`)},set:function(i){cn(i)==="object"&&(r=i)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(i){typeof i=="string"&&(r.CA=i)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(i){n=i}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(i){n="/"+i}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=cr.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};zd(RF,Am),F5.prototype.setAppearance=function(e){if(!("createAppearanceStream"in e)||!("getCA"in e))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var t in this.Kids)if(this.Kids.hasOwnProperty(t)){var n=this.Kids[t];n.appearanceStreamContent=e.createAppearanceStream(n.optionName),n.caption=e.getCA()}},F5.prototype.createOption=function(e){var t=new RF;return t.Parent=this,t.optionName=e,this.Kids.push(t),U9n.call(this.scope,t),t};var MM=function(){ql.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=cr.CheckBox.createAppearanceStream()};zd(MM,ql);var pE=function(){Am.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Ws(this.Ff,13)},set:function(t){t?this.Ff=Ys(this.Ff,13):this.Ff=Ks(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Ws(this.Ff,21)},set:function(t){t?this.Ff=Ys(this.Ff,21):this.Ff=Ks(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Ws(this.Ff,23)},set:function(t){t?this.Ff=Ys(this.Ff,23):this.Ff=Ks(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Ws(this.Ff,24)},set:function(t){t?this.Ff=Ys(this.Ff,24):this.Ff=Ks(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Ws(this.Ff,25)},set:function(t){t?this.Ff=Ys(this.Ff,25):this.Ff=Ks(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Ws(this.Ff,26)},set:function(t){t?this.Ff=Ys(this.Ff,26):this.Ff=Ks(this.Ff,26)}});var e=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){Number.isInteger(t)&&(e=t)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};zd(pE,Am);var DM=function(){pE.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Ws(this.Ff,14)},set:function(e){e?this.Ff=Ys(this.Ff,14):this.Ff=Ks(this.Ff,14)}}),this.password=!0};zd(DM,pE);var cr={CheckBox:{createAppearanceStream:function(){return{N:{On:cr.CheckBox.YesNormal},D:{On:cr.CheckBox.YesPushDown,Off:cr.CheckBox.OffPushDown}}},YesPushDown:function(e){var t=hg(e);t.scope=e.scope;var n=[],r=e.scope.internal.getFont(e.fontName,e.fontStyle).id,i=e.scope.__private__.encodeColorString(e.color),a=yoe(e,e.caption);return n.push("0.749023 g"),n.push("0 0 "+oi(cr.internal.getWidth(e))+" "+oi(cr.internal.getHeight(e))+" re"),n.push("f"),n.push("BMC"),n.push("q"),n.push("0 0 1 rg"),n.push("/"+r+" "+oi(a.fontSize)+" Tf "+i),n.push("BT"),n.push(a.text),n.push("ET"),n.push("Q"),n.push("EMC"),t.stream=n.join(`
`),t},YesNormal:function(e){var t=hg(e);t.scope=e.scope;var n=e.scope.internal.getFont(e.fontName,e.fontStyle).id,r=e.scope.__private__.encodeColorString(e.color),i=[],a=cr.internal.getHeight(e),o=cr.internal.getWidth(e),s=yoe(e,e.caption);return i.push("1 g"),i.push("0 0 "+oi(o)+" "+oi(a)+" re"),i.push("f"),i.push("q"),i.push("0 0 1 rg"),i.push("0 0 "+oi(o-1)+" "+oi(a-1)+" re"),i.push("W"),i.push("n"),i.push("0 g"),i.push("BT"),i.push("/"+n+" "+oi(s.fontSize)+" Tf "+r),i.push(s.text),i.push("ET"),i.push("Q"),t.stream=i.join(`
`),t},OffPushDown:function(e){var t=hg(e);t.scope=e.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+oi(cr.internal.getWidth(e))+" "+oi(cr.internal.getHeight(e))+" re"),n.push("f"),t.stream=n.join(`
`),t}},RadioButton:{Circle:{createAppearanceStream:function(e){var t={D:{Off:cr.RadioButton.Circle.OffPushDown},N:{}};return t.N[e]=cr.RadioButton.Circle.YesNormal,t.D[e]=cr.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(e){var t=hg(e);t.scope=e.scope;var n=[],r=cr.internal.getWidth(e)<=cr.internal.getHeight(e)?cr.internal.getWidth(e)/4:cr.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var i=cr.internal.Bezier_C,a=Number((r*i).toFixed(5));return n.push("q"),n.push("1 0 0 1 "+dy(cr.internal.getWidth(e)/2)+" "+dy(cr.internal.getHeight(e)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+a+" "+a+" "+r+" 0 "+r+" c"),n.push("-"+a+" "+r+" -"+r+" "+a+" -"+r+" 0 c"),n.push("-"+r+" -"+a+" -"+a+" -"+r+" 0 -"+r+" c"),n.push(a+" -"+r+" "+r+" -"+a+" "+r+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join(`
`),t},YesPushDown:function(e){var t=hg(e);t.scope=e.scope;var n=[],r=cr.internal.getWidth(e)<=cr.internal.getHeight(e)?cr.internal.getWidth(e)/4:cr.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var i=Number((2*r).toFixed(5)),a=Number((i*cr.internal.Bezier_C).toFixed(5)),o=Number((r*cr.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+dy(cr.internal.getWidth(e)/2)+" "+dy(cr.internal.getHeight(e)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+a+" "+a+" "+i+" 0 "+i+" c"),n.push("-"+a+" "+i+" -"+i+" "+a+" -"+i+" 0 c"),n.push("-"+i+" -"+a+" -"+a+" -"+i+" 0 -"+i+" c"),n.push(a+" -"+i+" "+i+" -"+a+" "+i+" 0 c"),n.push("f"),n.push("Q"),n.push("0 g"),n.push("q"),n.push("1 0 0 1 "+dy(cr.internal.getWidth(e)/2)+" "+dy(cr.internal.getHeight(e)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+o+" "+o+" "+r+" 0 "+r+" c"),n.push("-"+o+" "+r+" -"+r+" "+o+" -"+r+" 0 c"),n.push("-"+r+" -"+o+" -"+o+" -"+r+" 0 -"+r+" c"),n.push(o+" -"+r+" "+r+" -"+o+" "+r+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join(`
`),t},OffPushDown:function(e){var t=hg(e);t.scope=e.scope;var n=[],r=cr.internal.getWidth(e)<=cr.internal.getHeight(e)?cr.internal.getWidth(e)/4:cr.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var i=Number((2*r).toFixed(5)),a=Number((i*cr.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+dy(cr.internal.getWidth(e)/2)+" "+dy(cr.internal.getHeight(e)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+a+" "+a+" "+i+" 0 "+i+" c"),n.push("-"+a+" "+i+" -"+i+" "+a+" -"+i+" 0 c"),n.push("-"+i+" -"+a+" -"+a+" -"+i+" 0 -"+i+" c"),n.push(a+" -"+i+" "+i+" -"+a+" "+i+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join(`
`),t}},Cross:{createAppearanceStream:function(e){var t={D:{Off:cr.RadioButton.Cross.OffPushDown},N:{}};return t.N[e]=cr.RadioButton.Cross.YesNormal,t.D[e]=cr.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(e){var t=hg(e);t.scope=e.scope;var n=[],r=cr.internal.calculateCross(e);return n.push("q"),n.push("1 1 "+oi(cr.internal.getWidth(e)-2)+" "+oi(cr.internal.getHeight(e)-2)+" re"),n.push("W"),n.push("n"),n.push(oi(r.x1.x)+" "+oi(r.x1.y)+" m"),n.push(oi(r.x2.x)+" "+oi(r.x2.y)+" l"),n.push(oi(r.x4.x)+" "+oi(r.x4.y)+" m"),n.push(oi(r.x3.x)+" "+oi(r.x3.y)+" l"),n.push("s"),n.push("Q"),t.stream=n.join(`
`),t},YesPushDown:function(e){var t=hg(e);t.scope=e.scope;var n=cr.internal.calculateCross(e),r=[];return r.push("0.749023 g"),r.push("0 0 "+oi(cr.internal.getWidth(e))+" "+oi(cr.internal.getHeight(e))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+oi(cr.internal.getWidth(e)-2)+" "+oi(cr.internal.getHeight(e)-2)+" re"),r.push("W"),r.push("n"),r.push(oi(n.x1.x)+" "+oi(n.x1.y)+" m"),r.push(oi(n.x2.x)+" "+oi(n.x2.y)+" l"),r.push(oi(n.x4.x)+" "+oi(n.x4.y)+" m"),r.push(oi(n.x3.x)+" "+oi(n.x3.y)+" l"),r.push("s"),r.push("Q"),t.stream=r.join(`
`),t},OffPushDown:function(e){var t=hg(e);t.scope=e.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+oi(cr.internal.getWidth(e))+" "+oi(cr.internal.getHeight(e))+" re"),n.push("f"),t.stream=n.join(`
`),t}}},createDefaultAppearanceStream:function(e){var t=e.scope.internal.getFont(e.fontName,e.fontStyle).id,n=e.scope.__private__.encodeColorString(e.color);return"/"+t+" "+e.fontSize+" Tf "+n}};cr.internal={Bezier_C:.551915024494,calculateCross:function(e){var t=cr.internal.getWidth(e),n=cr.internal.getHeight(e),r=Math.min(t,n);return{x1:{x:(t-r)/2,y:(n-r)/2+r},x2:{x:(t-r)/2+r,y:(n-r)/2},x3:{x:(t-r)/2,y:(n-r)/2},x4:{x:(t-r)/2+r,y:(n-r)/2+r}}}},cr.internal.getWidth=function(e){var t=0;return cn(e)==="object"&&(t=VAe(e.Rect[2])),t},cr.internal.getHeight=function(e){var t=0;return cn(e)==="object"&&(t=VAe(e.Rect[3])),t};var U9n=Ts.addField=function(e){if(z9n(this,e),!(e instanceof Am))throw new Error("Invalid argument passed to jsPDF.addField.");var t;return(t=e).scope.internal.acroformPlugin.printedOut&&(t.scope.internal.acroformPlugin.printedOut=!1,t.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t),e.page=e.scope.internal.getCurrentPageInfo().pageNumber,this};Ts.AcroFormChoiceField=M5,Ts.AcroFormListBox=D5,Ts.AcroFormComboBox=$5,Ts.AcroFormEditBox=PM,Ts.AcroFormButton=ql,Ts.AcroFormPushButton=kM,Ts.AcroFormRadioButton=F5,Ts.AcroFormCheckBox=MM,Ts.AcroFormTextField=pE,Ts.AcroFormPasswordField=DM,Ts.AcroFormAppearance=cr,Ts.AcroForm={ChoiceField:M5,ListBox:D5,ComboBox:$5,EditBox:PM,Button:ql,PushButton:kM,RadioButton:F5,CheckBox:MM,TextField:pE,PasswordField:DM,Appearance:cr},zr.AcroForm={ChoiceField:M5,ListBox:D5,ComboBox:$5,EditBox:PM,Button:ql,PushButton:kM,RadioButton:F5,CheckBox:MM,TextField:pE,PasswordField:DM,Appearance:cr};function Yet(e){return e.reduce(function(t,n,r){return t[n]=r,t},{})}(function(e){e.__addimage__={};var t="UNKNOWN",n={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},r=e.__addimage__.getImageFileTypeByImageData=function(R,N){var P,L,$,D,z,U=t;if((N=N||t)==="RGBA"||R.data!==void 0&&R.data instanceof Uint8ClampedArray&&"height"in R&&"width"in R)return"RGBA";if(w(R))for(z in n)for($=n[z],P=0;P<$.length;P+=1){for(D=!0,L=0;L<$[P].length;L+=1)if($[P][L]!==void 0&&$[P][L]!==R[L]){D=!1;break}if(D===!0){U=z;break}}else for(z in n)for($=n[z],P=0;P<$.length;P+=1){for(D=!0,L=0;L<$[P].length;L+=1)if($[P][L]!==void 0&&$[P][L]!==R.charCodeAt(L)){D=!1;break}if(D===!0){U=z;break}}return U===t&&N!==t&&(U=N),U},i=function R(N){for(var P=this.internal.write,L=this.internal.putStream,$=(0,this.internal.getFilters)();$.indexOf("FlateEncode")!==-1;)$.splice($.indexOf("FlateEncode"),1);N.objectId=this.internal.newObject();var D=[];if(D.push({key:"Type",value:"/XObject"}),D.push({key:"Subtype",value:"/Image"}),D.push({key:"Width",value:N.width}),D.push({key:"Height",value:N.height}),N.colorSpace===g.INDEXED?D.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(N.palette.length/3-1)+" "+("sMask"in N&&N.sMask!==void 0?N.objectId+2:N.objectId+1)+" 0 R]"}):(D.push({key:"ColorSpace",value:"/"+N.colorSpace}),N.colorSpace===g.DEVICE_CMYK&&D.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),D.push({key:"BitsPerComponent",value:N.bitsPerComponent}),"decodeParameters"in N&&N.decodeParameters!==void 0&&D.push({key:"DecodeParms",value:"<<"+N.decodeParameters+">>"}),"transparency"in N&&Array.isArray(N.transparency)){for(var z="",U=0,H=N.transparency.length;U<H;U++)z+=N.transparency[U]+" "+N.transparency[U]+" ";D.push({key:"Mask",value:"["+z+"]"})}N.sMask!==void 0&&D.push({key:"SMask",value:N.objectId+1+" 0 R"});var M=N.filter!==void 0?["/"+N.filter]:void 0;if(L({data:N.data,additionalKeyValues:D,alreadyAppliedFilters:M,objectId:N.objectId}),P("endobj"),"sMask"in N&&N.sMask!==void 0){var B="/Predictor "+N.predictor+" /Colors 1 /BitsPerComponent "+N.bitsPerComponent+" /Columns "+N.width,k={width:N.width,height:N.height,colorSpace:"DeviceGray",bitsPerComponent:N.bitsPerComponent,decodeParameters:B,data:N.sMask};"filter"in N&&(k.filter=N.filter),R.call(this,k)}if(N.colorSpace===g.INDEXED){var F=this.internal.newObject();L({data:T(new Uint8Array(N.palette)),objectId:F}),P("endobj")}},a=function(){var R=this.internal.collections.addImage_images;for(var N in R)i.call(this,R[N])},o=function(){var R,N=this.internal.collections.addImage_images,P=this.internal.write;for(var L in N)P("/I"+(R=N[L]).index,R.objectId,"0","R")},s=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",a),this.internal.events.subscribe("putXobjectDict",o))},l=function(){var R=this.internal.collections.addImage_images;return s.call(this),R},c=function(){return Object.keys(this.internal.collections.addImage_images).length},u=function(R){return typeof e["process"+R.toUpperCase()]=="function"},d=function(R){return cn(R)==="object"&&R.nodeType===1},f=function(R,N){if(R.nodeName==="IMG"&&R.hasAttribute("src")){var P=""+R.getAttribute("src");if(P.indexOf("data:image/")===0)return xR(unescape(P).split("base64,").pop());var L=e.loadFile(P,!0);if(L!==void 0)return L}if(R.nodeName==="CANVAS"){if(R.width===0||R.height===0)throw new Error("Given canvas must have data. Canvas width: "+R.width+", height: "+R.height);var $;switch(N){case"PNG":$="image/png";break;case"WEBP":$="image/webp";break;case"JPEG":case"JPG":default:$="image/jpeg"}return xR(R.toDataURL($,1).split("base64,").pop())}},p=function(R){var N=this.internal.collections.addImage_images;if(N){for(var P in N)if(R===N[P].alias)return N[P]}},h=function(R,N,P){return R||N||(R=-96,N=-96),R<0&&(R=-1*P.width*72/R/this.internal.scaleFactor),N<0&&(N=-1*P.height*72/N/this.internal.scaleFactor),R===0&&(R=N*P.width/P.height),N===0&&(N=R*P.height/P.width),[R,N]},m=function(R,N,P,L,$,D){var z=h.call(this,P,L,$),U=this.internal.getCoordinateString,H=this.internal.getVerticalCoordinateString,M=l.call(this);if(P=z[0],L=z[1],M[$.index]=$,D){D*=Math.PI/180;var B=Math.cos(D),k=Math.sin(D),F=function(q){return q.toFixed(4)},G=[F(B),F(k),F(-1*k),F(B),0,0,"cm"]}this.internal.write("q"),D?(this.internal.write([1,"0","0",1,U(R),H(N+L),"cm"].join(" ")),this.internal.write(G.join(" ")),this.internal.write([U(P),"0","0",U(L),"0","0","cm"].join(" "))):this.internal.write([U(P),"0","0",U(L),U(R),H(N+L),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+$.index+" Do"),this.internal.write("Q")},g=e.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};e.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var v=e.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},y=e.__addimage__.sHashCode=function(R){var N,P,L=0;if(typeof R=="string")for(P=R.length,N=0;N<P;N++)L=(L<<5)-L+R.charCodeAt(N),L|=0;else if(w(R))for(P=R.byteLength/2,N=0;N<P;N++)L=(L<<5)-L+R[N],L|=0;return L},_=e.__addimage__.validateStringAsBase64=function(R){(R=R||"").toString().trim();var N=!0;return R.length===0&&(N=!1),R.length%4!=0&&(N=!1),/^[A-Za-z0-9+/]+$/.test(R.substr(0,R.length-2))===!1&&(N=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(R.substr(-2))===!1&&(N=!1),N},S=e.__addimage__.extractImageFromDataUrl=function(R){var N=(R=R||"").split("base64,"),P=null;if(N.length===2){var L=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(N[0]);Array.isArray(L)&&(P={mimeType:L[1],charset:L[2],data:N[1]})}return P},C=e.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"};e.__addimage__.isArrayBuffer=function(R){return C()&&R instanceof ArrayBuffer};var w=e.__addimage__.isArrayBufferView=function(R){return C()&&typeof Uint32Array<"u"&&(R instanceof Int8Array||R instanceof Uint8Array||typeof Uint8ClampedArray<"u"&&R instanceof Uint8ClampedArray||R instanceof Int16Array||R instanceof Uint16Array||R instanceof Int32Array||R instanceof Uint32Array||R instanceof Float32Array||R instanceof Float64Array)},x=e.__addimage__.binaryStringToUint8Array=function(R){for(var N=R.length,P=new Uint8Array(N),L=0;L<N;L++)P[L]=R.charCodeAt(L);return P},T=e.__addimage__.arrayBufferToBinaryString=function(R){for(var N="",P=w(R)?R:new Uint8Array(R),L=0;L<P.length;L+=8192)N+=String.fromCharCode.apply(null,P.subarray(L,L+8192));return N};e.addImage=function(){var R,N,P,L,$,D,z,U,H;if(typeof arguments[1]=="number"?(N=t,P=arguments[1],L=arguments[2],$=arguments[3],D=arguments[4],z=arguments[5],U=arguments[6],H=arguments[7]):(N=arguments[1],P=arguments[2],L=arguments[3],$=arguments[4],D=arguments[5],z=arguments[6],U=arguments[7],H=arguments[8]),cn(R=arguments[0])==="object"&&!d(R)&&"imageData"in R){var M=R;R=M.imageData,N=M.format||N||t,P=M.x||P||0,L=M.y||L||0,$=M.w||M.width||$,D=M.h||M.height||D,z=M.alias||z,U=M.compression||U,H=M.rotation||M.angle||H}var B=this.internal.getFilters();if(U===void 0&&B.indexOf("FlateEncode")!==-1&&(U="SLOW"),isNaN(P)||isNaN(L))throw new Error("Invalid coordinates passed to jsPDF.addImage");s.call(this);var k=A.call(this,R,N,z,U);return m.call(this,P,L,$,D,k,H),this};var A=function(R,N,P,L){var $,D,z;if(typeof R=="string"&&r(R)===t){R=unescape(R);var U=I(R,!1);(U!==""||(U=e.loadFile(R,!0))!==void 0)&&(R=U)}if(d(R)&&(R=f(R,N)),N=r(R,N),!u(N))throw new Error("addImage does not support files of type '"+N+"', please ensure that a plugin for '"+N+"' support is added.");if(((z=P)==null||z.length===0)&&(P=function(H){return typeof H=="string"||w(H)?y(H):w(H.data)?y(H.data):null}(R)),($=p.call(this,P))||(C()&&(R instanceof Uint8Array||N==="RGBA"||(D=R,R=x(R))),$=this["process"+N.toUpperCase()](R,c.call(this),P,function(H){return H&&typeof H=="string"&&(H=H.toUpperCase()),H in e.image_compression?H:v.NONE}(L),D)),!$)throw new Error("An unknown error occurred whilst processing the image.");return $},I=e.__addimage__.convertBase64ToBinaryString=function(R,N){var P;N=typeof N!="boolean"||N;var L,$="";if(typeof R=="string"){L=(P=S(R))!==null?P.data:R;try{$=xR(L)}catch(D){if(N)throw _(L)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+D.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return $};e.getImageProperties=function(R){var N,P,L="";if(d(R)&&(R=f(R)),typeof R=="string"&&r(R)===t&&((L=I(R,!1))===""&&(L=e.loadFile(R)||""),R=L),P=r(R),!u(P))throw new Error("addImage does not support files of type '"+P+"', please ensure that a plugin for '"+P+"' support is added.");if(!C()||R instanceof Uint8Array||(R=x(R)),!(N=this["process"+P.toUpperCase()](R)))throw new Error("An unknown error occurred whilst processing the image");return N.fileType=P,N}})(zr.API),function(e){var t=function(n){if(n!==void 0&&n!="")return!0};zr.API.events.push(["addPage",function(n){this.internal.getPageInfo(n.pageNumber).pageContext.annotations=[]}]),e.events.push(["putPage",function(n){for(var r,i,a,o=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString,l=this.internal.getPageInfoByObjId(n.objId),c=n.pageContext.annotations,u=!1,d=0;d<c.length&&!u;d++)switch((r=c[d]).type){case"link":(t(r.options.url)||t(r.options.pageNumber))&&(u=!0);break;case"reference":case"text":case"freetext":u=!0}if(u!=0){this.internal.write("/Annots [");for(var f=0;f<c.length;f++){r=c[f];var p=this.internal.pdfEscape,h=this.internal.getEncryptor(n.objId);switch(r.type){case"reference":this.internal.write(" "+r.object.objId+" 0 R ");break;case"text":var m=this.internal.newAdditionalObject(),g=this.internal.newAdditionalObject(),v=this.internal.getEncryptor(m.objId),y=r.title||"Note";a="<</Type /Annot /Subtype /Text "+(i="/Rect ["+o(r.bounds.x)+" "+s(r.bounds.y+r.bounds.h)+" "+o(r.bounds.x+r.bounds.w)+" "+s(r.bounds.y)+"] ")+"/Contents ("+p(v(r.contents))+")",a+=" /Popup "+g.objId+" 0 R",a+=" /P "+l.objId+" 0 R",a+=" /T ("+p(v(y))+") >>",m.content=a;var _=m.objId+" 0 R";a="<</Type /Annot /Subtype /Popup "+(i="/Rect ["+o(r.bounds.x+30)+" "+s(r.bounds.y+r.bounds.h)+" "+o(r.bounds.x+r.bounds.w+30)+" "+s(r.bounds.y)+"] ")+" /Parent "+_,r.open&&(a+=" /Open true"),a+=" >>",g.content=a,this.internal.write(m.objId,"0 R",g.objId,"0 R");break;case"freetext":i="/Rect ["+o(r.bounds.x)+" "+s(r.bounds.y)+" "+o(r.bounds.x+r.bounds.w)+" "+s(r.bounds.y+r.bounds.h)+"] ";var S=r.color||"#000000";a="<</Type /Annot /Subtype /FreeText "+i+"/Contents ("+p(h(r.contents))+")",a+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+S+")",a+=" /Border [0 0 0]",a+=" >>",this.internal.write(a);break;case"link":if(r.options.name){var C=this.annotations._nameMap[r.options.name];r.options.pageNumber=C.page,r.options.top=C.y}else r.options.top||(r.options.top=0);if(i="/Rect ["+r.finalBounds.x+" "+r.finalBounds.y+" "+r.finalBounds.w+" "+r.finalBounds.h+"] ",a="",r.options.url)a="<</Type /Annot /Subtype /Link "+i+"/Border [0 0 0] /A <</S /URI /URI ("+p(h(r.options.url))+") >>";else if(r.options.pageNumber)switch(a="<</Type /Annot /Subtype /Link "+i+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(r.options.pageNumber).objId+" 0 R",r.options.magFactor=r.options.magFactor||"XYZ",r.options.magFactor){case"Fit":a+=" /Fit]";break;case"FitH":a+=" /FitH "+r.options.top+"]";break;case"FitV":r.options.left=r.options.left||0,a+=" /FitV "+r.options.left+"]";break;case"XYZ":default:var w=s(r.options.top);r.options.left=r.options.left||0,r.options.zoom===void 0&&(r.options.zoom=0),a+=" /XYZ "+r.options.left+" "+w+" "+r.options.zoom+"]"}a!=""&&(a+=" >>",this.internal.write(a))}}this.internal.write("]")}}]),e.createAnnotation=function(n){var r=this.internal.getCurrentPageInfo();switch(n.type){case"link":this.link(n.bounds.x,n.bounds.y,n.bounds.w,n.bounds.h,n);break;case"text":case"freetext":r.pageContext.annotations.push(n)}},e.link=function(n,r,i,a,o){var s=this.internal.getCurrentPageInfo(),l=this.internal.getCoordinateString,c=this.internal.getVerticalCoordinateString;s.pageContext.annotations.push({finalBounds:{x:l(n),y:c(r),w:l(n+i),h:c(r+a)},options:o,type:"link"})},e.textWithLink=function(n,r,i,a){var o,s,l=this.getTextWidth(n),c=this.internal.getLineHeight()/this.internal.scaleFactor;if(a.maxWidth!==void 0){s=a.maxWidth;var u=this.splitTextToSize(n,s).length;o=Math.ceil(c*u)}else s=l,o=c;return this.text(n,r,i,a),i+=.2*c,a.align==="center"&&(r-=l/2),a.align==="right"&&(r-=l),this.link(r,i-c,s,o,a),l},e.getTextWidth=function(n){var r=this.internal.getFontSize();return this.getStringUnitWidth(n)*r/this.internal.scaleFactor}}(zr.API),function(e){var t={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},n={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},i=[1570,1571,1573,1575];e.__arabicParser__={};var a=e.__arabicParser__.isInArabicSubstitutionA=function(m){return t[m.charCodeAt(0)]!==void 0},o=e.__arabicParser__.isArabicLetter=function(m){return typeof m=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(m)},s=e.__arabicParser__.isArabicEndLetter=function(m){return o(m)&&a(m)&&t[m.charCodeAt(0)].length<=2},l=e.__arabicParser__.isArabicAlfLetter=function(m){return o(m)&&i.indexOf(m.charCodeAt(0))>=0};e.__arabicParser__.arabicLetterHasIsolatedForm=function(m){return o(m)&&a(m)&&t[m.charCodeAt(0)].length>=1};var c=e.__arabicParser__.arabicLetterHasFinalForm=function(m){return o(m)&&a(m)&&t[m.charCodeAt(0)].length>=2};e.__arabicParser__.arabicLetterHasInitialForm=function(m){return o(m)&&a(m)&&t[m.charCodeAt(0)].length>=3};var u=e.__arabicParser__.arabicLetterHasMedialForm=function(m){return o(m)&&a(m)&&t[m.charCodeAt(0)].length==4},d=e.__arabicParser__.resolveLigatures=function(m){var g=0,v=n,y="",_=0;for(g=0;g<m.length;g+=1)v[m.charCodeAt(g)]!==void 0?(_++,typeof(v=v[m.charCodeAt(g)])=="number"&&(y+=String.fromCharCode(v),v=n,_=0),g===m.length-1&&(v=n,y+=m.charAt(g-(_-1)),g-=_-1,_=0)):(v=n,y+=m.charAt(g-_),g-=_,_=0);return y};e.__arabicParser__.isArabicDiacritic=function(m){return m!==void 0&&r[m.charCodeAt(0)]!==void 0};var f=e.__arabicParser__.getCorrectForm=function(m,g,v){return o(m)?a(m)===!1?-1:!c(m)||!o(g)&&!o(v)||!o(v)&&s(g)||s(m)&&!o(g)||s(m)&&l(g)||s(m)&&s(g)?0:u(m)&&o(g)&&!s(g)&&o(v)&&c(v)?3:s(m)||!o(v)?1:2:-1},p=function(m){var g=0,v=0,y=0,_="",S="",C="",w=(m=m||"").split("\\s+"),x=[];for(g=0;g<w.length;g+=1){for(x.push(""),v=0;v<w[g].length;v+=1)_=w[g][v],S=w[g][v-1],C=w[g][v+1],o(_)?(y=f(_,S,C),x[g]+=y!==-1?String.fromCharCode(t[_.charCodeAt(0)][y]):_):x[g]+=_;x[g]=d(x[g])}return x.join(" ")},h=e.__arabicParser__.processArabic=e.processArabic=function(){var m,g=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,v=[];if(Array.isArray(g)){var y=0;for(v=[],y=0;y<g.length;y+=1)Array.isArray(g[y])?v.push([p(g[y][0]),g[y][1],g[y][2]]):v.push([p(g[y])]);m=v}else m=p(g);return typeof arguments[0]=="string"?m:(arguments[0].text=m,arguments[0])};e.events.push(["preProcessText",h])}(zr.API),zr.API.autoPrint=function(e){var t;switch((e=e||{}).variant=e.variant||"non-conform",e.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+t+" 0 R")})}return this},function(e){var t=function(){var n=void 0;Object.defineProperty(this,"pdf",{get:function(){return n},set:function(s){n=s}});var r=150;Object.defineProperty(this,"width",{get:function(){return r},set:function(s){r=isNaN(s)||Number.isInteger(s)===!1||s<0?150:s,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=r+1)}});var i=300;Object.defineProperty(this,"height",{get:function(){return i},set:function(s){i=isNaN(s)||Number.isInteger(s)===!1||s<0?300:s,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=i+1)}});var a=[];Object.defineProperty(this,"childNodes",{get:function(){return a},set:function(s){a=s}});var o={};Object.defineProperty(this,"style",{get:function(){return o},set:function(s){o=s}}),Object.defineProperty(this,"parentNode",{})};t.prototype.getContext=function(n,r){var i;if((n=n||"2d")!=="2d")return null;for(i in r)this.pdf.context2d.hasOwnProperty(i)&&(this.pdf.context2d[i]=r[i]);return this.pdf.context2d._canvas=this,this.pdf.context2d},t.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},e.events.push(["initialized",function(){this.canvas=new t,this.canvas.pdf=this}])}(zr.API),function(e){var t={left:0,top:0,bottom:0,right:0},n=!1,r=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},t),this.internal.__cell__.margins.width=this.getPageWidth(),i.call(this))},i=function(){this.internal.__cell__.lastCell=new a,this.internal.__cell__.pages=1},a=function(){var l=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return l},set:function(m){l=m}});var c=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return c},set:function(m){c=m}});var u=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return u},set:function(m){u=m}});var d=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return d},set:function(m){d=m}});var f=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return f},set:function(m){f=m}});var p=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return p},set:function(m){p=m}});var h=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return h},set:function(m){h=m}}),this};a.prototype.clone=function(){return new a(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},a.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},e.setHeaderFunction=function(l){return r.call(this),this.internal.__cell__.headerFunction=typeof l=="function"?l:void 0,this},e.getTextDimensions=function(l,c){r.call(this);var u=(c=c||{}).fontSize||this.getFontSize(),d=c.font||this.getFont(),f=c.scaleFactor||this.internal.scaleFactor,p=0,h=0,m=0,g=this;if(!Array.isArray(l)&&typeof l!="string"){if(typeof l!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");l=String(l)}var v=c.maxWidth;v>0?typeof l=="string"?l=this.splitTextToSize(l,v):Object.prototype.toString.call(l)==="[object Array]"&&(l=l.reduce(function(_,S){return _.concat(g.splitTextToSize(S,v))},[])):l=Array.isArray(l)?l:[l];for(var y=0;y<l.length;y++)p<(m=this.getStringUnitWidth(l[y],{font:d})*u)&&(p=m);return p!==0&&(h=l.length),{w:p/=f,h:Math.max((h*u*this.getLineHeightFactor()-u*(this.getLineHeightFactor()-1))/f,0)}},e.cellAddPage=function(){r.call(this),this.addPage();var l=this.internal.__cell__.margins||t;return this.internal.__cell__.lastCell=new a(l.left,l.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var o=e.cell=function(){var l;l=arguments[0]instanceof a?arguments[0]:new a(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),r.call(this);var c=this.internal.__cell__.lastCell,u=this.internal.__cell__.padding,d=this.internal.__cell__.margins||t,f=this.internal.__cell__.tableHeaderRow,p=this.internal.__cell__.printHeaders;return c.lineNumber!==void 0&&(c.lineNumber===l.lineNumber?(l.x=(c.x||0)+(c.width||0),l.y=c.y||0):c.y+c.height+l.height+d.bottom>this.getPageHeight()?(this.cellAddPage(),l.y=d.top,p&&f&&(this.printHeaderRow(l.lineNumber,!0),l.y+=f[0].height)):l.y=c.y+c.height||l.y),l.text[0]!==void 0&&(this.rect(l.x,l.y,l.width,l.height,n===!0?"FD":void 0),l.align==="right"?this.text(l.text,l.x+l.width-u,l.y+u,{align:"right",baseline:"top"}):l.align==="center"?this.text(l.text,l.x+l.width/2,l.y+u,{align:"center",baseline:"top",maxWidth:l.width-u-u}):this.text(l.text,l.x+u,l.y+u,{align:"left",baseline:"top",maxWidth:l.width-u-u})),this.internal.__cell__.lastCell=l,this};e.table=function(l,c,u,d,f){if(r.call(this),!u)throw new Error("No data for PDF table.");var p,h,m,g,v=[],y=[],_=[],S={},C={},w=[],x=[],T=(f=f||{}).autoSize||!1,A=f.printHeaders!==!1,I=f.css&&f.css["font-size"]!==void 0?16*f.css["font-size"]:f.fontSize||12,R=f.margins||Object.assign({width:this.getPageWidth()},t),N=typeof f.padding=="number"?f.padding:3,P=f.headerBackgroundColor||"#c8c8c8",L=f.headerTextColor||"#000";if(i.call(this),this.internal.__cell__.printHeaders=A,this.internal.__cell__.margins=R,this.internal.__cell__.table_font_size=I,this.internal.__cell__.padding=N,this.internal.__cell__.headerBackgroundColor=P,this.internal.__cell__.headerTextColor=L,this.setFontSize(I),d==null)y=v=Object.keys(u[0]),_=v.map(function(){return"left"});else if(Array.isArray(d)&&cn(d[0])==="object")for(v=d.map(function(M){return M.name}),y=d.map(function(M){return M.prompt||M.name||""}),_=d.map(function(M){return M.align||"left"}),p=0;p<d.length;p+=1)C[d[p].name]=d[p].width*(19.049976/25.4);else Array.isArray(d)&&typeof d[0]=="string"&&(y=v=d,_=v.map(function(){return"left"}));if(T||Array.isArray(d)&&typeof d[0]=="string")for(p=0;p<v.length;p+=1){for(S[g=v[p]]=u.map(function(M){return M[g]}),this.setFont(void 0,"bold"),w.push(this.getTextDimensions(y[p],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),h=S[g],this.setFont(void 0,"normal"),m=0;m<h.length;m+=1)w.push(this.getTextDimensions(h[m],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);C[g]=Math.max.apply(null,w)+N+N,w=[]}if(A){var $={};for(p=0;p<v.length;p+=1)$[v[p]]={},$[v[p]].text=y[p],$[v[p]].align=_[p];var D=s.call(this,$,C);x=v.map(function(M){return new a(l,c,C[M],D,$[M].text,void 0,$[M].align)}),this.setTableHeaderRow(x),this.printHeaderRow(1,!1)}var z=d.reduce(function(M,B){return M[B.name]=B.align,M},{});for(p=0;p<u.length;p+=1){"rowStart"in f&&f.rowStart instanceof Function&&f.rowStart({row:p,data:u[p]},this);var U=s.call(this,u[p],C);for(m=0;m<v.length;m+=1){var H=u[p][v[m]];"cellStart"in f&&f.cellStart instanceof Function&&f.cellStart({row:p,col:m,data:H},this),o.call(this,new a(l,c,C[v[m]],U,H,p+2,z[v[m]]))}}return this.internal.__cell__.table_x=l,this.internal.__cell__.table_y=c,this};var s=function(l,c){var u=this.internal.__cell__.padding,d=this.internal.__cell__.table_font_size,f=this.internal.scaleFactor;return Object.keys(l).map(function(p){var h=l[p];return this.splitTextToSize(h.hasOwnProperty("text")?h.text:h,c[p]-u-u)},this).map(function(p){return this.getLineHeightFactor()*p.length*d/f+u+u},this).reduce(function(p,h){return Math.max(p,h)},0)};e.setTableHeaderRow=function(l){r.call(this),this.internal.__cell__.tableHeaderRow=l},e.printHeaderRow=function(l,c){if(r.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var u;if(n=!0,typeof this.internal.__cell__.headerFunction=="function"){var d=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new a(d[0],d[1],d[2],d[3],void 0,-1)}this.setFont(void 0,"bold");for(var f=[],p=0;p<this.internal.__cell__.tableHeaderRow.length;p+=1){u=this.internal.__cell__.tableHeaderRow[p].clone(),c&&(u.y=this.internal.__cell__.margins.top||0,f.push(u)),u.lineNumber=l;var h=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),o.call(this,u),this.setTextColor(h)}f.length>0&&this.setTableHeaderRow(f),this.setFont(void 0,"normal"),n=!1}}(zr.API);var Ket={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},Xet=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],boe=Yet(Xet),Zet=[100,200,300,400,500,600,700,800,900],H9n=Yet(Zet);function _oe(e){var t=e.family.replace(/"|'/g,"").toLowerCase(),n=function(a){return Ket[a=a||"normal"]?a:"normal"}(e.style),r=function(a){if(!a)return 400;if(typeof a=="number")return a>=100&&a<=900&&a%100==0?a:400;if(/^\d00$/.test(a))return parseInt(a);switch(a){case"bold":return 700;case"normal":default:return 400}}(e.weight),i=function(a){return typeof boe[a=a||"normal"]=="number"?a:"normal"}(e.stretch);return{family:t,style:n,weight:r,stretch:i,src:e.src||[],ref:e.ref||{name:t,style:[i,n,r].join(" ")}}}function GAe(e,t,n,r){var i;for(i=n;i>=0&&i<t.length;i+=r)if(e[t[i]])return e[t[i]];for(i=n;i>=0&&i<t.length;i-=r)if(e[t[i]])return e[t[i]]}var V9n={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},qAe={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function WAe(e){return[e.stretch,e.style,e.weight,e.family].join(" ")}function G9n(e,t,n){for(var r=(n=n||{}).defaultFontFamily||"times",i=Object.assign({},V9n,n.genericFontFamilies||{}),a=null,o=null,s=0;s<t.length;++s)if(i[(a=_oe(t[s])).family]&&(a.family=i[a.family]),e.hasOwnProperty(a.family)){o=e[a.family];break}if(!(o=o||e[r]))throw new Error("Could not find a font-family for the rule '"+WAe(a)+"' and default family '"+r+"'.");if(o=function(l,c){if(c[l])return c[l];var u=boe[l],d=u<=boe.normal?-1:1,f=GAe(c,Xet,u,d);if(!f)throw new Error("Could not find a matching font-stretch value for "+l);return f}(a.stretch,o),o=function(l,c){if(c[l])return c[l];for(var u=Ket[l],d=0;d<u.length;++d)if(c[u[d]])return c[u[d]];throw new Error("Could not find a matching font-style for "+l)}(a.style,o),!(o=function(l,c){if(c[l])return c[l];if(l===400&&c[500])return c[500];if(l===500&&c[400])return c[400];var u=H9n[l],d=GAe(c,Zet,u,l<400?-1:1);if(!d)throw new Error("Could not find a matching font-weight for value "+l);return d}(a.weight,o)))throw new Error("Failed to resolve a font for the rule '"+WAe(a)+"'.");return o}function YAe(e){return e.trimLeft()}function q9n(e,t){for(var n=0;n<e.length;){if(e.charAt(n)===t)return[e.substring(0,n),e.substring(n+1)];n+=1}return null}function W9n(e){var t=e.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return t===null?null:[t[0],e.substring(t[0].length)]}var WP,KAe,XAe,iJ=["times"];(function(e){var t,n,r,i,a,o,s,l,c,u=function(k){return k=k||{},this.isStrokeTransparent=k.isStrokeTransparent||!1,this.strokeOpacity=k.strokeOpacity||1,this.strokeStyle=k.strokeStyle||"#000000",this.fillStyle=k.fillStyle||"#000000",this.isFillTransparent=k.isFillTransparent||!1,this.fillOpacity=k.fillOpacity||1,this.font=k.font||"10px sans-serif",this.textBaseline=k.textBaseline||"alphabetic",this.textAlign=k.textAlign||"left",this.lineWidth=k.lineWidth||1,this.lineJoin=k.lineJoin||"miter",this.lineCap=k.lineCap||"butt",this.path=k.path||[],this.transform=k.transform!==void 0?k.transform.clone():new l,this.globalCompositeOperation=k.globalCompositeOperation||"normal",this.globalAlpha=k.globalAlpha||1,this.clip_path=k.clip_path||[],this.currentPoint=k.currentPoint||new o,this.miterLimit=k.miterLimit||10,this.lastPoint=k.lastPoint||new o,this.lineDashOffset=k.lineDashOffset||0,this.lineDash=k.lineDash||[],this.margin=k.margin||[0,0,0,0],this.prevPageLastElemOffset=k.prevPageLastElemOffset||0,this.ignoreClearRect=typeof k.ignoreClearRect!="boolean"||k.ignoreClearRect,this};e.events.push(["initialized",function(){this.context2d=new d(this),t=this.internal.f2,n=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,i=this.internal.getHorizontalCoordinate,a=this.internal.getVerticalCoordinate,o=this.internal.Point,s=this.internal.Rectangle,l=this.internal.Matrix,c=new u}]);var d=function(k){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var F=k;Object.defineProperty(this,"pdf",{get:function(){return F}});var G=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return G},set:function(ge){G=!!ge}});var q=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return q},set:function(ge){q=!!ge}});var W=0;Object.defineProperty(this,"posX",{get:function(){return W},set:function(ge){isNaN(ge)||(W=ge)}});var K=0;Object.defineProperty(this,"posY",{get:function(){return K},set:function(ge){isNaN(ge)||(K=ge)}}),Object.defineProperty(this,"margin",{get:function(){return c.margin},set:function(ge){var oe;typeof ge=="number"?oe=[ge,ge,ge,ge]:((oe=new Array(4))[0]=ge[0],oe[1]=ge.length>=2?ge[1]:oe[0],oe[2]=ge.length>=3?ge[2]:oe[0],oe[3]=ge.length>=4?ge[3]:oe[1]),c.margin=oe}});var J=!1;Object.defineProperty(this,"autoPaging",{get:function(){return J},set:function(ge){J=ge}});var te=0;Object.defineProperty(this,"lastBreak",{get:function(){return te},set:function(ge){te=ge}});var ae=[];Object.defineProperty(this,"pageBreaks",{get:function(){return ae},set:function(ge){ae=ge}}),Object.defineProperty(this,"ctx",{get:function(){return c},set:function(ge){ge instanceof u&&(c=ge)}}),Object.defineProperty(this,"path",{get:function(){return c.path},set:function(ge){c.path=ge}});var re=[];Object.defineProperty(this,"ctxStack",{get:function(){return re},set:function(ge){re=ge}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(ge){var oe;oe=f(ge),this.ctx.fillStyle=oe.style,this.ctx.isFillTransparent=oe.a===0,this.ctx.fillOpacity=oe.a,this.pdf.setFillColor(oe.r,oe.g,oe.b,{a:oe.a}),this.pdf.setTextColor(oe.r,oe.g,oe.b,{a:oe.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(ge){var oe=f(ge);this.ctx.strokeStyle=oe.style,this.ctx.isStrokeTransparent=oe.a===0,this.ctx.strokeOpacity=oe.a,oe.a===0?this.pdf.setDrawColor(255,255,255):(oe.a,this.pdf.setDrawColor(oe.r,oe.g,oe.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(ge){["butt","round","square"].indexOf(ge)!==-1&&(this.ctx.lineCap=ge,this.pdf.setLineCap(ge))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(ge){isNaN(ge)||(this.ctx.lineWidth=ge,this.pdf.setLineWidth(ge))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(ge){["bevel","round","miter"].indexOf(ge)!==-1&&(this.ctx.lineJoin=ge,this.pdf.setLineJoin(ge))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(ge){isNaN(ge)||(this.ctx.miterLimit=ge,this.pdf.setMiterLimit(ge))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(ge){this.ctx.textBaseline=ge}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(ge){["right","end","center","left","start"].indexOf(ge)!==-1&&(this.ctx.textAlign=ge)}});var ue=null;function de(ge,oe){if(ue===null){var Ee=function(ce){var he=[];return Object.keys(ce).forEach(function(ye){ce[ye].forEach(function(me){var _e=null;switch(me){case"bold":_e={family:ye,weight:"bold"};break;case"italic":_e={family:ye,style:"italic"};break;case"bolditalic":_e={family:ye,weight:"bold",style:"italic"};break;case"":case"normal":_e={family:ye}}_e!==null&&(_e.ref={name:ye,style:me},he.push(_e))})}),he}(ge.getFontList());ue=function(ce){for(var he={},ye=0;ye<ce.length;++ye){var me=_oe(ce[ye]),_e=me.family,Te=me.stretch,xe=me.style,De=me.weight;he[_e]=he[_e]||{},he[_e][Te]=he[_e][Te]||{},he[_e][Te][xe]=he[_e][Te][xe]||{},he[_e][Te][xe][De]=me}return he}(Ee.concat(oe))}return ue}var fe=null;Object.defineProperty(this,"fontFaces",{get:function(){return fe},set:function(ge){ue=null,fe=ge}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(ge){var oe;if(this.ctx.font=ge,(oe=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(ge))!==null){var Ee=oe[1],ce=(oe[2],oe[3]),he=oe[4],ye=(oe[5],oe[6]),me=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(he)[2];he=Math.floor(me==="px"?parseFloat(he)*this.pdf.internal.scaleFactor:me==="em"?parseFloat(he)*this.pdf.getFontSize():parseFloat(he)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(he);var _e=function(Be){var je,Ye,Ze=[],Ke=Be.trim();if(Ke==="")return iJ;if(Ke in qAe)return[qAe[Ke]];for(;Ke!=="";){switch(Ye=null,je=(Ke=YAe(Ke)).charAt(0)){case'"':case"'":Ye=q9n(Ke.substring(1),je);break;default:Ye=W9n(Ke)}if(Ye===null||(Ze.push(Ye[0]),(Ke=YAe(Ye[1]))!==""&&Ke.charAt(0)!==","))return iJ;Ke=Ke.replace(/^,/,"")}return Ze}(ye);if(this.fontFaces){var Te=G9n(de(this.pdf,this.fontFaces),_e.map(function(Be){return{family:Be,stretch:"normal",weight:ce,style:Ee}}));this.pdf.setFont(Te.ref.name,Te.ref.style)}else{var xe="";(ce==="bold"||parseInt(ce,10)>=700||Ee==="bold")&&(xe="bold"),Ee==="italic"&&(xe+="italic"),xe.length===0&&(xe="normal");for(var De="",Pe={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},Le=0;Le<_e.length;Le++){if(this.pdf.internal.getFont(_e[Le],xe,{noFallback:!0,disableWarning:!0})!==void 0){De=_e[Le];break}if(xe==="bolditalic"&&this.pdf.internal.getFont(_e[Le],"bold",{noFallback:!0,disableWarning:!0})!==void 0)De=_e[Le],xe="bold";else if(this.pdf.internal.getFont(_e[Le],"normal",{noFallback:!0,disableWarning:!0})!==void 0){De=_e[Le],xe="normal";break}}if(De===""){for(var ze=0;ze<_e.length;ze++)if(Pe[_e[ze]]){De=Pe[_e[ze]];break}}De=De===""?"Times":De,this.pdf.setFont(De,xe)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(ge){this.ctx.globalCompositeOperation=ge}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(ge){this.ctx.globalAlpha=ge}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(ge){this.ctx.lineDashOffset=ge,B.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(ge){this.ctx.lineDash=ge,B.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(ge){this.ctx.ignoreClearRect=!!ge}})};d.prototype.setLineDash=function(k){this.lineDash=k},d.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},d.prototype.fill=function(){S.call(this,"fill",!1)},d.prototype.stroke=function(){S.call(this,"stroke",!1)},d.prototype.beginPath=function(){this.path=[{type:"begin"}]},d.prototype.moveTo=function(k,F){if(isNaN(k)||isNaN(F))throw mo.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var G=this.ctx.transform.applyToPoint(new o(k,F));this.path.push({type:"mt",x:G.x,y:G.y}),this.ctx.lastPoint=new o(k,F)},d.prototype.closePath=function(){var k=new o(0,0),F=0;for(F=this.path.length-1;F!==-1;F--)if(this.path[F].type==="begin"&&cn(this.path[F+1])==="object"&&typeof this.path[F+1].x=="number"){k=new o(this.path[F+1].x,this.path[F+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new o(k.x,k.y)},d.prototype.lineTo=function(k,F){if(isNaN(k)||isNaN(F))throw mo.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var G=this.ctx.transform.applyToPoint(new o(k,F));this.path.push({type:"lt",x:G.x,y:G.y}),this.ctx.lastPoint=new o(G.x,G.y)},d.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),S.call(this,null,!0)},d.prototype.quadraticCurveTo=function(k,F,G,q){if(isNaN(G)||isNaN(q)||isNaN(k)||isNaN(F))throw mo.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var W=this.ctx.transform.applyToPoint(new o(G,q)),K=this.ctx.transform.applyToPoint(new o(k,F));this.path.push({type:"qct",x1:K.x,y1:K.y,x:W.x,y:W.y}),this.ctx.lastPoint=new o(W.x,W.y)},d.prototype.bezierCurveTo=function(k,F,G,q,W,K){if(isNaN(W)||isNaN(K)||isNaN(k)||isNaN(F)||isNaN(G)||isNaN(q))throw mo.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var J=this.ctx.transform.applyToPoint(new o(W,K)),te=this.ctx.transform.applyToPoint(new o(k,F)),ae=this.ctx.transform.applyToPoint(new o(G,q));this.path.push({type:"bct",x1:te.x,y1:te.y,x2:ae.x,y2:ae.y,x:J.x,y:J.y}),this.ctx.lastPoint=new o(J.x,J.y)},d.prototype.arc=function(k,F,G,q,W,K){if(isNaN(k)||isNaN(F)||isNaN(G)||isNaN(q)||isNaN(W))throw mo.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(K=!!K,!this.ctx.transform.isIdentity){var J=this.ctx.transform.applyToPoint(new o(k,F));k=J.x,F=J.y;var te=this.ctx.transform.applyToPoint(new o(0,G)),ae=this.ctx.transform.applyToPoint(new o(0,0));G=Math.sqrt(Math.pow(te.x-ae.x,2)+Math.pow(te.y-ae.y,2))}Math.abs(W-q)>=2*Math.PI&&(q=0,W=2*Math.PI),this.path.push({type:"arc",x:k,y:F,radius:G,startAngle:q,endAngle:W,counterclockwise:K})},d.prototype.arcTo=function(k,F,G,q,W){throw new Error("arcTo not implemented.")},d.prototype.rect=function(k,F,G,q){if(isNaN(k)||isNaN(F)||isNaN(G)||isNaN(q))throw mo.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(k,F),this.lineTo(k+G,F),this.lineTo(k+G,F+q),this.lineTo(k,F+q),this.lineTo(k,F),this.lineTo(k+G,F),this.lineTo(k,F)},d.prototype.fillRect=function(k,F,G,q){if(isNaN(k)||isNaN(F)||isNaN(G)||isNaN(q))throw mo.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!p.call(this)){var W={};this.lineCap!=="butt"&&(W.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(W.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(k,F,G,q),this.fill(),W.hasOwnProperty("lineCap")&&(this.lineCap=W.lineCap),W.hasOwnProperty("lineJoin")&&(this.lineJoin=W.lineJoin)}},d.prototype.strokeRect=function(k,F,G,q){if(isNaN(k)||isNaN(F)||isNaN(G)||isNaN(q))throw mo.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");h.call(this)||(this.beginPath(),this.rect(k,F,G,q),this.stroke())},d.prototype.clearRect=function(k,F,G,q){if(isNaN(k)||isNaN(F)||isNaN(G)||isNaN(q))throw mo.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(k,F,G,q))},d.prototype.save=function(k){k=typeof k!="boolean"||k;for(var F=this.pdf.internal.getCurrentPageInfo().pageNumber,G=0;G<this.pdf.internal.getNumberOfPages();G++)this.pdf.setPage(G+1),this.pdf.internal.out("q");if(this.pdf.setPage(F),k){this.ctx.fontSize=this.pdf.internal.getFontSize();var q=new u(this.ctx);this.ctxStack.push(this.ctx),this.ctx=q}},d.prototype.restore=function(k){k=typeof k!="boolean"||k;for(var F=this.pdf.internal.getCurrentPageInfo().pageNumber,G=0;G<this.pdf.internal.getNumberOfPages();G++)this.pdf.setPage(G+1),this.pdf.internal.out("Q");this.pdf.setPage(F),k&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},d.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var f=function(k){var F,G,q,W;if(k.isCanvasGradient===!0&&(k=k.getColor()),!k)return{r:0,g:0,b:0,a:0,style:k};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(k))F=0,G=0,q=0,W=0;else{var K=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(k);if(K!==null)F=parseInt(K[1]),G=parseInt(K[2]),q=parseInt(K[3]),W=1;else if((K=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(k))!==null)F=parseInt(K[1]),G=parseInt(K[2]),q=parseInt(K[3]),W=parseFloat(K[4]);else{if(W=1,typeof k=="string"&&k.charAt(0)!=="#"){var J=new Uet(k);k=J.ok?J.toHex():"#000000"}k.length===4?(F=k.substring(1,2),F+=F,G=k.substring(2,3),G+=G,q=k.substring(3,4),q+=q):(F=k.substring(1,3),G=k.substring(3,5),q=k.substring(5,7)),F=parseInt(F,16),G=parseInt(G,16),q=parseInt(q,16)}}return{r:F,g:G,b:q,a:W,style:k}},p=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},h=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};d.prototype.fillText=function(k,F,G,q){if(isNaN(F)||isNaN(G)||typeof k!="string")throw mo.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(q=isNaN(q)?void 0:q,!p.call(this)){var W=U(this.ctx.transform.rotation),K=this.ctx.transform.scaleX;N.call(this,{text:k,x:F,y:G,scale:K,angle:W,align:this.textAlign,maxWidth:q})}},d.prototype.strokeText=function(k,F,G,q){if(isNaN(F)||isNaN(G)||typeof k!="string")throw mo.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!h.call(this)){q=isNaN(q)?void 0:q;var W=U(this.ctx.transform.rotation),K=this.ctx.transform.scaleX;N.call(this,{text:k,x:F,y:G,scale:K,renderingMode:"stroke",angle:W,align:this.textAlign,maxWidth:q})}},d.prototype.measureText=function(k){if(typeof k!="string")throw mo.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var F=this.pdf,G=this.pdf.internal.scaleFactor,q=F.internal.getFontSize(),W=F.getStringUnitWidth(k)*q/F.internal.scaleFactor,K=function(J){var te=(J=J||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return te}}),this};return new K({width:W*=Math.round(96*G/72*1e4)/1e4})},d.prototype.scale=function(k,F){if(isNaN(k)||isNaN(F))throw mo.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var G=new l(k,0,0,F,0,0);this.ctx.transform=this.ctx.transform.multiply(G)},d.prototype.rotate=function(k){if(isNaN(k))throw mo.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var F=new l(Math.cos(k),Math.sin(k),-Math.sin(k),Math.cos(k),0,0);this.ctx.transform=this.ctx.transform.multiply(F)},d.prototype.translate=function(k,F){if(isNaN(k)||isNaN(F))throw mo.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var G=new l(1,0,0,1,k,F);this.ctx.transform=this.ctx.transform.multiply(G)},d.prototype.transform=function(k,F,G,q,W,K){if(isNaN(k)||isNaN(F)||isNaN(G)||isNaN(q)||isNaN(W)||isNaN(K))throw mo.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var J=new l(k,F,G,q,W,K);this.ctx.transform=this.ctx.transform.multiply(J)},d.prototype.setTransform=function(k,F,G,q,W,K){k=isNaN(k)?1:k,F=isNaN(F)?0:F,G=isNaN(G)?0:G,q=isNaN(q)?1:q,W=isNaN(W)?0:W,K=isNaN(K)?0:K,this.ctx.transform=new l(k,F,G,q,W,K)};var m=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};d.prototype.drawImage=function(k,F,G,q,W,K,J,te,ae){var re=this.pdf.getImageProperties(k),ue=1,de=1,fe=1,ge=1;q!==void 0&&te!==void 0&&(fe=te/q,ge=ae/W,ue=re.width/q*te/q,de=re.height/W*ae/W),K===void 0&&(K=F,J=G,F=0,G=0),q!==void 0&&te===void 0&&(te=q,ae=W),q===void 0&&te===void 0&&(te=re.width,ae=re.height);for(var oe,Ee=this.ctx.transform.decompose(),ce=U(Ee.rotate.shx),he=new l,ye=(he=(he=(he=he.multiply(Ee.translate)).multiply(Ee.skew)).multiply(Ee.scale)).applyToRectangle(new s(K-F*fe,J-G*ge,q*ue,W*de)),me=g.call(this,ye),_e=[],Te=0;Te<me.length;Te+=1)_e.indexOf(me[Te])===-1&&_e.push(me[Te]);if(_(_e),this.autoPaging)for(var xe=_e[0],De=_e[_e.length-1],Pe=xe;Pe<De+1;Pe++){this.pdf.setPage(Pe);var Le=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],ze=Pe===1?this.posY+this.margin[0]:this.margin[0],Be=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],je=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Ye=Pe===1?0:Be+(Pe-2)*je;if(this.ctx.clip_path.length!==0){var Ze=this.path;oe=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=y(oe,this.posX+this.margin[3],-Ye+ze+this.ctx.prevPageLastElemOffset),C.call(this,"fill",!0),this.path=Ze}var Ke=JSON.parse(JSON.stringify(ye));Ke=y([Ke],this.posX+this.margin[3],-Ye+ze+this.ctx.prevPageLastElemOffset)[0];var qe=(Pe>xe||Pe<De)&&m.call(this);qe&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Le,je,null).clip().discardPath()),this.pdf.addImage(k,"JPEG",Ke.x,Ke.y,Ke.w,Ke.h,null,null,ce),qe&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(k,"JPEG",ye.x,ye.y,ye.w,ye.h,null,null,ce)};var g=function(k,F,G){var q=[];F=F||this.pdf.internal.pageSize.width,G=G||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var W=this.posY+this.ctx.prevPageLastElemOffset;switch(k.type){default:case"mt":case"lt":q.push(Math.floor((k.y+W)/G)+1);break;case"arc":q.push(Math.floor((k.y+W-k.radius)/G)+1),q.push(Math.floor((k.y+W+k.radius)/G)+1);break;case"qct":var K=H(this.ctx.lastPoint.x,this.ctx.lastPoint.y,k.x1,k.y1,k.x,k.y);q.push(Math.floor((K.y+W)/G)+1),q.push(Math.floor((K.y+K.h+W)/G)+1);break;case"bct":var J=M(this.ctx.lastPoint.x,this.ctx.lastPoint.y,k.x1,k.y1,k.x2,k.y2,k.x,k.y);q.push(Math.floor((J.y+W)/G)+1),q.push(Math.floor((J.y+J.h+W)/G)+1);break;case"rect":q.push(Math.floor((k.y+W)/G)+1),q.push(Math.floor((k.y+k.h+W)/G)+1)}for(var te=0;te<q.length;te+=1)for(;this.pdf.internal.getNumberOfPages()<q[te];)v.call(this);return q},v=function(){var k=this.fillStyle,F=this.strokeStyle,G=this.font,q=this.lineCap,W=this.lineWidth,K=this.lineJoin;this.pdf.addPage(),this.fillStyle=k,this.strokeStyle=F,this.font=G,this.lineCap=q,this.lineWidth=W,this.lineJoin=K},y=function(k,F,G){for(var q=0;q<k.length;q++)switch(k[q].type){case"bct":k[q].x2+=F,k[q].y2+=G;case"qct":k[q].x1+=F,k[q].y1+=G;case"mt":case"lt":case"arc":default:k[q].x+=F,k[q].y+=G}return k},_=function(k){return k.sort(function(F,G){return F-G})},S=function(k,F){for(var G,q,W=this.fillStyle,K=this.strokeStyle,J=this.lineCap,te=this.lineWidth,ae=Math.abs(te*this.ctx.transform.scaleX),re=this.lineJoin,ue=JSON.parse(JSON.stringify(this.path)),de=JSON.parse(JSON.stringify(this.path)),fe=[],ge=0;ge<de.length;ge++)if(de[ge].x!==void 0)for(var oe=g.call(this,de[ge]),Ee=0;Ee<oe.length;Ee+=1)fe.indexOf(oe[Ee])===-1&&fe.push(oe[Ee]);for(var ce=0;ce<fe.length;ce++)for(;this.pdf.internal.getNumberOfPages()<fe[ce];)v.call(this);if(_(fe),this.autoPaging)for(var he=fe[0],ye=fe[fe.length-1],me=he;me<ye+1;me++){this.pdf.setPage(me),this.fillStyle=W,this.strokeStyle=K,this.lineCap=J,this.lineWidth=ae,this.lineJoin=re;var _e=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Te=me===1?this.posY+this.margin[0]:this.margin[0],xe=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],De=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Pe=me===1?0:xe+(me-2)*De;if(this.ctx.clip_path.length!==0){var Le=this.path;G=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=y(G,this.posX+this.margin[3],-Pe+Te+this.ctx.prevPageLastElemOffset),C.call(this,k,!0),this.path=Le}if(q=JSON.parse(JSON.stringify(ue)),this.path=y(q,this.posX+this.margin[3],-Pe+Te+this.ctx.prevPageLastElemOffset),F===!1||me===0){var ze=(me>he||me<ye)&&m.call(this);ze&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],_e,De,null).clip().discardPath()),C.call(this,k,F),ze&&this.pdf.restoreGraphicsState()}this.lineWidth=te}else this.lineWidth=ae,C.call(this,k,F),this.lineWidth=te;this.path=ue},C=function(k,F){if((k!=="stroke"||F||!h.call(this))&&(k==="stroke"||F||!p.call(this))){for(var G,q,W=[],K=this.path,J=0;J<K.length;J++){var te=K[J];switch(te.type){case"begin":W.push({begin:!0});break;case"close":W.push({close:!0});break;case"mt":W.push({start:te,deltas:[],abs:[]});break;case"lt":var ae=W.length;if(K[J-1]&&!isNaN(K[J-1].x)&&(G=[te.x-K[J-1].x,te.y-K[J-1].y],ae>0)){for(;ae>=0;ae--)if(W[ae-1].close!==!0&&W[ae-1].begin!==!0){W[ae-1].deltas.push(G),W[ae-1].abs.push(te);break}}break;case"bct":G=[te.x1-K[J-1].x,te.y1-K[J-1].y,te.x2-K[J-1].x,te.y2-K[J-1].y,te.x-K[J-1].x,te.y-K[J-1].y],W[W.length-1].deltas.push(G);break;case"qct":var re=K[J-1].x+2/3*(te.x1-K[J-1].x),ue=K[J-1].y+2/3*(te.y1-K[J-1].y),de=te.x+2/3*(te.x1-te.x),fe=te.y+2/3*(te.y1-te.y),ge=te.x,oe=te.y;G=[re-K[J-1].x,ue-K[J-1].y,de-K[J-1].x,fe-K[J-1].y,ge-K[J-1].x,oe-K[J-1].y],W[W.length-1].deltas.push(G);break;case"arc":W.push({deltas:[],abs:[],arc:!0}),Array.isArray(W[W.length-1].abs)&&W[W.length-1].abs.push(te)}}q=F?null:k==="stroke"?"stroke":"fill";for(var Ee=!1,ce=0;ce<W.length;ce++)if(W[ce].arc)for(var he=W[ce].abs,ye=0;ye<he.length;ye++){var me=he[ye];me.type==="arc"?T.call(this,me.x,me.y,me.radius,me.startAngle,me.endAngle,me.counterclockwise,void 0,F,!Ee):P.call(this,me.x,me.y),Ee=!0}else if(W[ce].close===!0)this.pdf.internal.out("h"),Ee=!1;else if(W[ce].begin!==!0){var _e=W[ce].start.x,Te=W[ce].start.y;L.call(this,W[ce].deltas,_e,Te),Ee=!0}q&&A.call(this,q),F&&I.call(this)}},w=function(k){var F=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,G=F*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return k-G;case"top":return k+F-G;case"hanging":return k+F-2*G;case"middle":return k+F/2-G;case"ideographic":return k;case"alphabetic":default:return k}},x=function(k){return k+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};d.prototype.createLinearGradient=function(){var k=function(){};return k.colorStops=[],k.addColorStop=function(F,G){this.colorStops.push([F,G])},k.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},k.isCanvasGradient=!0,k},d.prototype.createPattern=function(){return this.createLinearGradient()},d.prototype.createRadialGradient=function(){return this.createLinearGradient()};var T=function(k,F,G,q,W,K,J,te,ae){for(var re=D.call(this,G,q,W,K),ue=0;ue<re.length;ue++){var de=re[ue];ue===0&&(ae?R.call(this,de.x1+k,de.y1+F):P.call(this,de.x1+k,de.y1+F)),$.call(this,k,F,de.x2,de.y2,de.x3,de.y3,de.x4,de.y4)}te?I.call(this):A.call(this,J)},A=function(k){switch(k){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},I=function(){this.pdf.clip(),this.pdf.discardPath()},R=function(k,F){this.pdf.internal.out(n(k)+" "+r(F)+" m")},N=function(k){var F;switch(k.align){case"right":case"end":F="right";break;case"center":F="center";break;case"left":case"start":default:F="left"}var G=this.pdf.getTextDimensions(k.text),q=w.call(this,k.y),W=x.call(this,q)-G.h,K=this.ctx.transform.applyToPoint(new o(k.x,q)),J=this.ctx.transform.decompose(),te=new l;te=(te=(te=te.multiply(J.translate)).multiply(J.skew)).multiply(J.scale);for(var ae,re,ue,de=this.ctx.transform.applyToRectangle(new s(k.x,q,G.w,G.h)),fe=te.applyToRectangle(new s(k.x,W,G.w,G.h)),ge=g.call(this,fe),oe=[],Ee=0;Ee<ge.length;Ee+=1)oe.indexOf(ge[Ee])===-1&&oe.push(ge[Ee]);if(_(oe),this.autoPaging)for(var ce=oe[0],he=oe[oe.length-1],ye=ce;ye<he+1;ye++){this.pdf.setPage(ye);var me=ye===1?this.posY+this.margin[0]:this.margin[0],_e=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Te=this.pdf.internal.pageSize.height-this.margin[2],xe=Te-this.margin[0],De=this.pdf.internal.pageSize.width-this.margin[1],Pe=De-this.margin[3],Le=ye===1?0:_e+(ye-2)*xe;if(this.ctx.clip_path.length!==0){var ze=this.path;ae=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=y(ae,this.posX+this.margin[3],-1*Le+me),C.call(this,"fill",!0),this.path=ze}var Be=y([JSON.parse(JSON.stringify(fe))],this.posX+this.margin[3],-Le+me+this.ctx.prevPageLastElemOffset)[0];k.scale>=.01&&(re=this.pdf.internal.getFontSize(),this.pdf.setFontSize(re*k.scale),ue=this.lineWidth,this.lineWidth=ue*k.scale);var je=this.autoPaging!=="text";if(je||Be.y+Be.h<=Te){if(je||Be.y>=me&&Be.x<=De){var Ye=je?k.text:this.pdf.splitTextToSize(k.text,k.maxWidth||De-Be.x)[0],Ze=y([JSON.parse(JSON.stringify(de))],this.posX+this.margin[3],-Le+me+this.ctx.prevPageLastElemOffset)[0],Ke=je&&(ye>ce||ye<he)&&m.call(this);Ke&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Pe,xe,null).clip().discardPath()),this.pdf.text(Ye,Ze.x,Ze.y,{angle:k.angle,align:F,renderingMode:k.renderingMode}),Ke&&this.pdf.restoreGraphicsState()}}else Be.y<Te&&(this.ctx.prevPageLastElemOffset+=Te-Be.y);k.scale>=.01&&(this.pdf.setFontSize(re),this.lineWidth=ue)}else k.scale>=.01&&(re=this.pdf.internal.getFontSize(),this.pdf.setFontSize(re*k.scale),ue=this.lineWidth,this.lineWidth=ue*k.scale),this.pdf.text(k.text,K.x+this.posX,K.y+this.posY,{angle:k.angle,align:F,renderingMode:k.renderingMode,maxWidth:k.maxWidth}),k.scale>=.01&&(this.pdf.setFontSize(re),this.lineWidth=ue)},P=function(k,F,G,q){G=G||0,q=q||0,this.pdf.internal.out(n(k+G)+" "+r(F+q)+" l")},L=function(k,F,G){return this.pdf.lines(k,F,G,null,null)},$=function(k,F,G,q,W,K,J,te){this.pdf.internal.out([t(i(G+k)),t(a(q+F)),t(i(W+k)),t(a(K+F)),t(i(J+k)),t(a(te+F)),"c"].join(" "))},D=function(k,F,G,q){for(var W=2*Math.PI,K=Math.PI/2;F>G;)F-=W;var J=Math.abs(G-F);J<W&&q&&(J=W-J);for(var te=[],ae=q?-1:1,re=F;J>1e-5;){var ue=re+ae*Math.min(J,K);te.push(z.call(this,k,re,ue)),J-=Math.abs(ue-re),re=ue}return te},z=function(k,F,G){var q=(G-F)/2,W=k*Math.cos(q),K=k*Math.sin(q),J=W,te=-K,ae=J*J+te*te,re=ae+J*W+te*K,ue=4/3*(Math.sqrt(2*ae*re)-re)/(J*K-te*W),de=J-ue*te,fe=te+ue*J,ge=de,oe=-fe,Ee=q+F,ce=Math.cos(Ee),he=Math.sin(Ee);return{x1:k*Math.cos(F),y1:k*Math.sin(F),x2:de*ce-fe*he,y2:de*he+fe*ce,x3:ge*ce-oe*he,y3:ge*he+oe*ce,x4:k*Math.cos(G),y4:k*Math.sin(G)}},U=function(k){return 180*k/Math.PI},H=function(k,F,G,q,W,K){var J=k+.5*(G-k),te=F+.5*(q-F),ae=W+.5*(G-W),re=K+.5*(q-K),ue=Math.min(k,W,J,ae),de=Math.max(k,W,J,ae),fe=Math.min(F,K,te,re),ge=Math.max(F,K,te,re);return new s(ue,fe,de-ue,ge-fe)},M=function(k,F,G,q,W,K,J,te){var ae,re,ue,de,fe,ge,oe,Ee,ce,he,ye,me,_e,Te,xe=G-k,De=q-F,Pe=W-G,Le=K-q,ze=J-W,Be=te-K;for(re=0;re<41;re++)ce=(oe=(ue=k+(ae=re/40)*xe)+ae*((fe=G+ae*Pe)-ue))+ae*(fe+ae*(W+ae*ze-fe)-oe),he=(Ee=(de=F+ae*De)+ae*((ge=q+ae*Le)-de))+ae*(ge+ae*(K+ae*Be-ge)-Ee),re==0?(ye=ce,me=he,_e=ce,Te=he):(ye=Math.min(ye,ce),me=Math.min(me,he),_e=Math.max(_e,ce),Te=Math.max(Te,he));return new s(Math.round(ye),Math.round(me),Math.round(_e-ye),Math.round(Te-me))},B=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var k,F,G=(k=this.ctx.lineDash,F=this.ctx.lineDashOffset,JSON.stringify({lineDash:k,lineDashOffset:F}));this.prevLineDash!==G&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=G)}}})(zr.API),function(e){var t=function(a){var o,s,l,c,u,d,f,p,h,m;for(s=[],l=0,c=(a+=o="\0\0\0\0".slice(a.length%4||4)).length;c>l;l+=4)(u=(a.charCodeAt(l)<<24)+(a.charCodeAt(l+1)<<16)+(a.charCodeAt(l+2)<<8)+a.charCodeAt(l+3))!==0?(d=(u=((u=((u=((u=(u-(m=u%85))/85)-(h=u%85))/85)-(p=u%85))/85)-(f=u%85))/85)%85,s.push(d+33,f+33,p+33,h+33,m+33)):s.push(122);return function(g,v){for(var y=v;y>0;y--)g.pop()}(s,o.length),String.fromCharCode.apply(String,s)+"~>"},n=function(a){var o,s,l,c,u,d=String,f="length",p=255,h="charCodeAt",m="slice",g="replace";for(a[m](-2),a=a[m](0,-2)[g](/\s/g,"")[g]("z","!!!!!"),l=[],c=0,u=(a+=o="uuuuu"[m](a[f]%5||5))[f];u>c;c+=5)s=52200625*(a[h](c)-33)+614125*(a[h](c+1)-33)+7225*(a[h](c+2)-33)+85*(a[h](c+3)-33)+(a[h](c+4)-33),l.push(p&s>>24,p&s>>16,p&s>>8,p&s);return function(v,y){for(var _=y;_>0;_--)v.pop()}(l,o[f]),d.fromCharCode.apply(d,l)},r=function(a){var o=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((a=a.replace(/\s/g,"")).indexOf(">")!==-1&&(a=a.substr(0,a.indexOf(">"))),a.length%2&&(a+="0"),o.test(a)===!1)return"";for(var s="",l=0;l<a.length;l+=2)s+=String.fromCharCode("0x"+(a[l]+a[l+1]));return s},i=function(a){for(var o=new Uint8Array(a.length),s=a.length;s--;)o[s]=a.charCodeAt(s);return a=(o=hoe(o)).reduce(function(l,c){return l+String.fromCharCode(c)},"")};e.processDataByFilters=function(a,o){var s=0,l=a||"",c=[];for(typeof(o=o||[])=="string"&&(o=[o]),s=0;s<o.length;s+=1)switch(o[s]){case"ASCII85Decode":case"/ASCII85Decode":l=n(l),c.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":l=t(l),c.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":l=r(l),c.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":l=l.split("").map(function(u){return("0"+u.charCodeAt().toString(16)).slice(-2)}).join("")+">",c.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":l=i(l),c.push("/FlateDecode");break;default:throw new Error('The filter: "'+o[s]+'" is not implemented')}return{data:l,reverseChain:c.reverse().join(" ")}}}(zr.API),function(e){e.loadFile=function(t,n,r){return function(i,a,o){a=a!==!1,o=typeof o=="function"?o:function(){};var s=void 0;try{s=function(l,c,u){var d=new XMLHttpRequest,f=0,p=function(h){var m=h.length,g=[],v=String.fromCharCode;for(f=0;f<m;f+=1)g.push(v(255&h.charCodeAt(f)));return g.join("")};if(d.open("GET",l,!c),d.overrideMimeType("text/plain; charset=x-user-defined"),c===!1&&(d.onload=function(){d.status===200?u(p(this.responseText)):u(void 0)}),d.send(null),c&&d.status===200)return p(d.responseText)}(i,a,o)}catch{}return s}(t,n,r)},e.loadImageFile=e.loadFile}(zr.API),function(e){function t(){return(Ur.html2canvas?Promise.resolve(Ur.html2canvas):Io(()=>import("./html2canvas.esm.BfxBtG_O.js"),[])).catch(function(o){return Promise.reject(new Error("Could not load html2canvas: "+o))}).then(function(o){return o.default?o.default:o})}function n(){return(Ur.DOMPurify?Promise.resolve(Ur.DOMPurify):Io(()=>import("./purify.es.DGIRlouP.js"),[])).catch(function(o){return Promise.reject(new Error("Could not load dompurify: "+o))}).then(function(o){return o.default?o.default:o})}var r=function(o){var s=cn(o);return s==="undefined"?"undefined":s==="string"||o instanceof String?"string":s==="number"||o instanceof Number?"number":s==="function"||o instanceof Function?"function":o&&o.constructor===Array?"array":o&&o.nodeType===1?"element":s==="object"?"object":"unknown"},i=function(o,s){var l=document.createElement(o);for(var c in s.className&&(l.className=s.className),s.innerHTML&&s.dompurify&&(l.innerHTML=s.dompurify.sanitize(s.innerHTML)),s.style)l.style[c]=s.style[c];return l},a=function o(s){var l=Object.assign(o.convert(Promise.resolve()),JSON.parse(JSON.stringify(o.template))),c=o.convert(Promise.resolve(),l);return c=(c=c.setProgress(1,o,1,[o])).set(s)};(a.prototype=Object.create(Promise.prototype)).constructor=a,a.convert=function(o,s){return o.__proto__=s||a.prototype,o},a.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},a.prototype.from=function(o,s){return this.then(function(){switch(s=s||function(l){switch(r(l)){case"string":return"string";case"element":return l.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(o)){case"string":return this.then(n).then(function(l){return this.set({src:i("div",{innerHTML:o,dompurify:l})})});case"element":return this.set({src:o});case"canvas":return this.set({canvas:o});case"img":return this.set({img:o});default:return this.error("Unknown source type.")}})},a.prototype.to=function(o){switch(o){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},a.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var o={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},s=function l(c,u){for(var d=c.nodeType===3?document.createTextNode(c.nodeValue):c.cloneNode(!1),f=c.firstChild;f;f=f.nextSibling)u!==!0&&f.nodeType===1&&f.nodeName==="SCRIPT"||d.appendChild(l(f,u));return c.nodeType===1&&(c.nodeName==="CANVAS"?(d.width=c.width,d.height=c.height,d.getContext("2d").drawImage(c,0,0)):c.nodeName!=="TEXTAREA"&&c.nodeName!=="SELECT"||(d.value=c.value),d.addEventListener("load",function(){d.scrollTop=c.scrollTop,d.scrollLeft=c.scrollLeft},!0)),d}(this.prop.src,this.opt.html2canvas.javascriptEnabled);s.tagName==="BODY"&&(o.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=i("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=i("div",{className:"html2pdf__container",style:o}),this.prop.container.appendChild(s),this.prop.container.firstChild.appendChild(i("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},a.prototype.toCanvas=function(){var o=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(o).then(t).then(function(s){var l=Object.assign({},this.opt.html2canvas);return delete l.onrendered,s(this.prop.container,l)}).then(function(s){(this.opt.html2canvas.onrendered||function(){})(s),this.prop.canvas=s,document.body.removeChild(this.prop.overlay)})},a.prototype.toContext2d=function(){var o=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(o).then(t).then(function(s){var l=this.opt.jsPDF,c=this.opt.fontFaces,u=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,d=Object.assign({async:!0,allowTaint:!0,scale:u,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete d.onrendered,l.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,l.context2d.posX=this.opt.x,l.context2d.posY=this.opt.y,l.context2d.margin=this.opt.margin,l.context2d.fontFaces=c,c)for(var f=0;f<c.length;++f){var p=c[f],h=p.src.find(function(m){return m.format==="truetype"});h&&l.addFont(h.url,p.ref.name,p.ref.style)}return d.windowHeight=d.windowHeight||0,d.windowHeight=d.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):d.windowHeight,l.context2d.save(!0),s(this.prop.container,d)}).then(function(s){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(s),this.prop.canvas=s,document.body.removeChild(this.prop.overlay)})},a.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var o=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=o})},a.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},a.prototype.output=function(o,s,l){return(l=l||"pdf").toLowerCase()==="img"||l.toLowerCase()==="image"?this.outputImg(o,s):this.outputPdf(o,s)},a.prototype.outputPdf=function(o,s){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(o,s)})},a.prototype.outputImg=function(o){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(o){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+o+'" is not supported.'}})},a.prototype.save=function(o){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(o?{filename:o}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},a.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},a.prototype.set=function(o){if(r(o)!=="object")return this;var s=Object.keys(o||{}).map(function(l){if(l in a.template.prop)return function(){this.prop[l]=o[l]};switch(l){case"margin":return this.setMargin.bind(this,o.margin);case"jsPDF":return function(){return this.opt.jsPDF=o.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,o.pageSize);default:return function(){this.opt[l]=o[l]}}},this);return this.then(function(){return this.thenList(s)})},a.prototype.get=function(o,s){return this.then(function(){var l=o in a.template.prop?this.prop[o]:this.opt[o];return s?s(l):l})},a.prototype.setMargin=function(o){return this.then(function(){switch(r(o)){case"number":o=[o,o,o,o];case"array":if(o.length===2&&(o=[o[0],o[1],o[0],o[1]]),o.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=o}).then(this.setPageSize)},a.prototype.setPageSize=function(o){function s(l,c){return Math.floor(l*c/72*96)}return this.then(function(){(o=o||zr.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(o.inner={width:o.width-this.opt.margin[1]-this.opt.margin[3],height:o.height-this.opt.margin[0]-this.opt.margin[2]},o.inner.px={width:s(o.inner.width,o.k),height:s(o.inner.height,o.k)},o.inner.ratio=o.inner.height/o.inner.width),this.prop.pageSize=o})},a.prototype.setProgress=function(o,s,l,c){return o!=null&&(this.progress.val=o),s!=null&&(this.progress.state=s),l!=null&&(this.progress.n=l),c!=null&&(this.progress.stack=c),this.progress.ratio=this.progress.val/this.progress.state,this},a.prototype.updateProgress=function(o,s,l,c){return this.setProgress(o?this.progress.val+o:null,s||null,l?this.progress.n+l:null,c?this.progress.stack.concat(c):null)},a.prototype.then=function(o,s){var l=this;return this.thenCore(o,s,function(c,u){return l.updateProgress(null,null,1,[c]),Promise.prototype.then.call(this,function(d){return l.updateProgress(null,c),d}).then(c,u).then(function(d){return l.updateProgress(1),d})})},a.prototype.thenCore=function(o,s,l){l=l||Promise.prototype.then,o&&(o=o.bind(this)),s&&(s=s.bind(this));var c=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:a.convert(Object.assign({},this),Promise.prototype),u=l.call(c,o,s);return a.convert(u,this.__proto__)},a.prototype.thenExternal=function(o,s){return Promise.prototype.then.call(this,o,s)},a.prototype.thenList=function(o){var s=this;return o.forEach(function(l){s=s.thenCore(l)}),s},a.prototype.catch=function(o){o&&(o=o.bind(this));var s=Promise.prototype.catch.call(this,o);return a.convert(s,this)},a.prototype.catchExternal=function(o){return Promise.prototype.catch.call(this,o)},a.prototype.error=function(o){return this.then(function(){throw new Error(o)})},a.prototype.using=a.prototype.set,a.prototype.saveAs=a.prototype.save,a.prototype.export=a.prototype.output,a.prototype.run=a.prototype.then,zr.getPageSize=function(o,s,l){if(cn(o)==="object"){var c=o;o=c.orientation,s=c.unit||s,l=c.format||l}s=s||"mm",l=l||"a4",o=(""+(o||"P")).toLowerCase();var u,d=(""+l).toLowerCase(),f={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(s){case"pt":u=1;break;case"mm":u=72/25.4;break;case"cm":u=72/2.54;break;case"in":u=72;break;case"px":u=.75;break;case"pc":case"em":u=12;break;case"ex":u=6;break;default:throw"Invalid unit: "+s}var p,h=0,m=0;if(f.hasOwnProperty(d))h=f[d][1]/u,m=f[d][0]/u;else try{h=l[1],m=l[0]}catch{throw new Error("Invalid format: "+l)}if(o==="p"||o==="portrait")o="p",m>h&&(p=m,m=h,h=p);else{if(o!=="l"&&o!=="landscape")throw"Invalid orientation: "+o;o="l",h>m&&(p=m,m=h,h=p)}return{width:m,height:h,unit:s,k:u,orientation:o}},e.html=function(o,s){(s=s||{}).callback=s.callback||function(){},s.html2canvas=s.html2canvas||{},s.html2canvas.canvas=s.html2canvas.canvas||this.canvas,s.jsPDF=s.jsPDF||this,s.fontFaces=s.fontFaces?s.fontFaces.map(_oe):null;var l=new a(s);return s.worker?l:l.from(o).doCallback()}}(zr.API),zr.API.addJS=function(e){return XAe=e,this.internal.events.subscribe("postPutResources",function(){WP=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(WP+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),KAe=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+XAe+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){WP!==void 0&&KAe!==void 0&&this.internal.out("/Names <</JavaScript "+WP+" 0 R>>")}),this},function(e){var t;e.events.push(["postPutResources",function(){var n=this,r=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var i=n.outline.render().split(/\r\n/),a=0;a<i.length;a++){var o=i[a],s=r.exec(o);if(s!=null){var l=s[1];n.internal.newObjectDeferredBegin(l,!1)}n.internal.write(o)}if(this.outline.createNamedDestinations){var c=this.internal.pages.length,u=[];for(a=0;a<c;a++){var d=n.internal.newObject();u.push(d);var f=n.internal.getPageInfo(a+1);n.internal.write("<< /D["+f.objId+" 0 R /XYZ null null null]>> endobj")}var p=n.internal.newObject();for(n.internal.write("<< /Names [ "),a=0;a<u.length;a++)n.internal.write("(page_"+(a+1)+")"+u[a]+" 0 R");n.internal.write(" ] >>","endobj"),t=n.internal.newObject(),n.internal.write("<< /Dests "+p+" 0 R"),n.internal.write(">>","endobj")}}]),e.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+t+" 0 R"))}]),e.events.push(["initialized",function(){var n=this;n.outline={createNamedDestinations:!1,root:{children:[]}},n.outline.add=function(r,i,a){var o={title:i,options:a,children:[]};return r==null&&(r=this.root),r.children.push(o),o},n.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=n,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},n.outline.genIds_r=function(r){r.id=n.internal.newObjectDeferred();for(var i=0;i<r.children.length;i++)this.genIds_r(r.children[i])},n.outline.renderRoot=function(r){this.objStart(r),this.line("/Type /Outlines"),r.children.length>0&&(this.line("/First "+this.makeRef(r.children[0])),this.line("/Last "+this.makeRef(r.children[r.children.length-1]))),this.line("/Count "+this.count_r({count:0},r)),this.objEnd()},n.outline.renderItems=function(r){for(var i=this.ctx.pdf.internal.getVerticalCoordinateString,a=0;a<r.children.length;a++){var o=r.children[a];this.objStart(o),this.line("/Title "+this.makeString(o.title)),this.line("/Parent "+this.makeRef(r)),a>0&&this.line("/Prev "+this.makeRef(r.children[a-1])),a<r.children.length-1&&this.line("/Next "+this.makeRef(r.children[a+1])),o.children.length>0&&(this.line("/First "+this.makeRef(o.children[0])),this.line("/Last "+this.makeRef(o.children[o.children.length-1])));var s=this.count=this.count_r({count:0},o);if(s>0&&this.line("/Count "+s),o.options&&o.options.pageNumber){var l=n.internal.getPageInfo(o.options.pageNumber);this.line("/Dest ["+l.objId+" 0 R /XYZ 0 "+i(0)+" 0]")}this.objEnd()}for(var c=0;c<r.children.length;c++)this.renderItems(r.children[c])},n.outline.line=function(r){this.ctx.val+=r+`\r
`},n.outline.makeRef=function(r){return r.id+" 0 R"},n.outline.makeString=function(r){return"("+n.internal.pdfEscape(r)+")"},n.outline.objStart=function(r){this.ctx.val+=`\r
`+r.id+` 0 obj\r
<<\r
`},n.outline.objEnd=function(){this.ctx.val+=`>> \r
endobj\r
`},n.outline.count_r=function(r,i){for(var a=0;a<i.children.length;a++)r.count++,this.count_r(r,i.children[a]);return r.count}}])}(zr.API),function(e){var t=[192,193,194,195,196,197,198,199];e.processJPEG=function(n,r,i,a,o,s){var l,c=this.decode.DCT_DECODE,u=null;if(typeof n=="string"||this.__addimage__.isArrayBuffer(n)||this.__addimage__.isArrayBufferView(n)){switch(n=o||n,n=this.__addimage__.isArrayBuffer(n)?new Uint8Array(n):n,(l=function(d){for(var f,p=256*d.charCodeAt(4)+d.charCodeAt(5),h=d.length,m={width:0,height:0,numcomponents:1},g=4;g<h;g+=2){if(g+=p,t.indexOf(d.charCodeAt(g+1))!==-1){f=256*d.charCodeAt(g+5)+d.charCodeAt(g+6),m={width:256*d.charCodeAt(g+7)+d.charCodeAt(g+8),height:f,numcomponents:d.charCodeAt(g+9)};break}p=256*d.charCodeAt(g+2)+d.charCodeAt(g+3)}return m}(n=this.__addimage__.isArrayBufferView(n)?this.__addimage__.arrayBufferToBinaryString(n):n)).numcomponents){case 1:s=this.color_spaces.DEVICE_GRAY;break;case 4:s=this.color_spaces.DEVICE_CMYK;break;case 3:s=this.color_spaces.DEVICE_RGB}u={data:n,width:l.width,height:l.height,colorSpace:s,bitsPerComponent:8,filter:c,index:r,alias:i}}return u}}(zr.API);var Pw,YP,ZAe,QAe,JAe,Y9n=function(){var e,t,n;function r(a){var o,s,l,c,u,d,f,p,h,m,g,v,y,_;for(this.data=a,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},d=null;;){switch(o=this.readUInt32(),h=function(){var S,C;for(C=[],S=0;S<4;++S)C.push(String.fromCharCode(this.data[this.pos++]));return C}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(o);break;case"fcTL":d&&this.animation.frames.push(d),this.pos+=4,d={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},u=this.readUInt16(),c=this.readUInt16()||100,d.delay=1e3*u/c,d.disposeOp=this.data[this.pos++],d.blendOp=this.data[this.pos++],d.data=[];break;case"IDAT":case"fdAT":for(h==="fdAT"&&(this.pos+=4,o-=4),a=d?.data||this.imgData,v=0;0<=o?v<o:v>o;0<=o?++v:--v)a.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(l=this.palette.length/3,this.transparency.indexed=this.read(o),this.transparency.indexed.length>l)throw new Error("More transparent colors than palette size");if((m=l-this.transparency.indexed.length)>0)for(y=0;0<=m?y<m:y>m;0<=m?++y:--y)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(o)[0];break;case 2:this.transparency.rgb=this.read(o)}break;case"tEXt":f=(g=this.read(o)).indexOf(0),p=String.fromCharCode.apply(String,g.slice(0,f)),this.text[p]=String.fromCharCode.apply(String,g.slice(f+1));break;case"IEND":return d&&this.animation.frames.push(d),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=(_=this.colorType)===4||_===6,s=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*s,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=o}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}r.prototype.read=function(a){var o,s;for(s=[],o=0;0<=a?o<a:o>a;0<=a?++o:--o)s.push(this.data[this.pos++]);return s},r.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},r.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},r.prototype.decodePixels=function(a){var o=this.pixelBitlength/8,s=new Uint8Array(this.width*this.height*o),l=0,c=this;if(a==null&&(a=this.imgData),a.length===0)return new Uint8Array(0);function u(d,f,p,h){var m,g,v,y,_,S,C,w,x,T,A,I,R,N,P,L,$,D,z,U,H,M=Math.ceil((c.width-d)/p),B=Math.ceil((c.height-f)/h),k=c.width==M&&c.height==B;for(N=o*M,I=k?s:new Uint8Array(N*B),S=a.length,R=0,g=0;R<B&&l<S;){switch(a[l++]){case 0:for(y=$=0;$<N;y=$+=1)I[g++]=a[l++];break;case 1:for(y=D=0;D<N;y=D+=1)m=a[l++],_=y<o?0:I[g-o],I[g++]=(m+_)%256;break;case 2:for(y=z=0;z<N;y=z+=1)m=a[l++],v=(y-y%o)/o,P=R&&I[(R-1)*N+v*o+y%o],I[g++]=(P+m)%256;break;case 3:for(y=U=0;U<N;y=U+=1)m=a[l++],v=(y-y%o)/o,_=y<o?0:I[g-o],P=R&&I[(R-1)*N+v*o+y%o],I[g++]=(m+Math.floor((_+P)/2))%256;break;case 4:for(y=H=0;H<N;y=H+=1)m=a[l++],v=(y-y%o)/o,_=y<o?0:I[g-o],R===0?P=L=0:(P=I[(R-1)*N+v*o+y%o],L=v&&I[(R-1)*N+(v-1)*o+y%o]),C=_+P-L,w=Math.abs(C-_),T=Math.abs(C-P),A=Math.abs(C-L),x=w<=T&&w<=A?_:T<=A?P:L,I[g++]=(m+x)%256;break;default:throw new Error("Invalid filter algorithm: "+a[l-1])}if(!k){var F=((f+R*h)*c.width+d)*o,G=R*N;for(y=0;y<M;y+=1){for(var q=0;q<o;q+=1)s[F++]=I[G++];F+=(p-1)*o}}R++}}return a=A9n(a),c.interlaceMethod==1?(u(0,0,8,8),u(4,0,8,8),u(0,4,4,8),u(2,0,4,4),u(0,2,2,4),u(1,0,2,2),u(0,1,1,2)):u(0,0,1,1),s},r.prototype.decodePalette=function(){var a,o,s,l,c,u,d,f,p;for(s=this.palette,u=this.transparency.indexed||[],c=new Uint8Array((u.length||0)+s.length),l=0,a=0,o=d=0,f=s.length;d<f;o=d+=3)c[l++]=s[o],c[l++]=s[o+1],c[l++]=s[o+2],c[l++]=(p=u[a++])!=null?p:255;return c},r.prototype.copyToImageData=function(a,o){var s,l,c,u,d,f,p,h,m,g,v;if(l=this.colors,m=null,s=this.hasAlphaChannel,this.palette.length&&(m=(v=this._decodedPalette)!=null?v:this._decodedPalette=this.decodePalette(),l=4,s=!0),h=(c=a.data||a).length,d=m||o,u=f=0,l===1)for(;u<h;)p=m?4*o[u/4]:f,g=d[p++],c[u++]=g,c[u++]=g,c[u++]=g,c[u++]=s?d[p++]:255,f=p;else for(;u<h;)p=m?4*o[u/4]:f,c[u++]=d[p++],c[u++]=d[p++],c[u++]=d[p++],c[u++]=s?d[p++]:255,f=p},r.prototype.decode=function(){var a;return a=new Uint8Array(this.width*this.height*4),this.copyToImageData(a,this.decodePixels()),a};var i=function(){if(Object.prototype.toString.call(Ur)==="[object Window]"){try{t=Ur.document.createElement("canvas"),n=t.getContext("2d")}catch{return!1}return!0}return!1};return i(),e=function(a){var o;if(i()===!0)return n.width=a.width,n.height=a.height,n.clearRect(0,0,a.width,a.height),n.putImageData(a,0,0),(o=new Image).src=t.toDataURL(),o;throw new Error("This method requires a Browser with Canvas-capability.")},r.prototype.decodeFrames=function(a){var o,s,l,c,u,d,f,p;if(this.animation){for(p=[],s=u=0,d=(f=this.animation.frames).length;u<d;s=++u)o=f[s],l=a.createImageData(o.width,o.height),c=this.decodePixels(new Uint8Array(o.data)),this.copyToImageData(l,c),o.imageData=l,p.push(o.image=e(l));return p}},r.prototype.renderFrame=function(a,o){var s,l,c;return s=(l=this.animation.frames)[o],c=l[o-1],o===0&&a.clearRect(0,0,this.width,this.height),c?.disposeOp===1?a.clearRect(c.xOffset,c.yOffset,c.width,c.height):c?.disposeOp===2&&a.putImageData(c.imageData,c.xOffset,c.yOffset),s.blendOp===0&&a.clearRect(s.xOffset,s.yOffset,s.width,s.height),a.drawImage(s.image,s.xOffset,s.yOffset)},r.prototype.animate=function(a){var o,s,l,c,u,d,f=this;return s=0,d=this.animation,c=d.numFrames,l=d.frames,u=d.numPlays,(o=function(){var p,h;if(p=s++%c,h=l[p],f.renderFrame(a,p),c>1&&s/c<u)return f.animation._timeout=setTimeout(o,h.delay)})()},r.prototype.stopAnimation=function(){var a;return clearTimeout((a=this.animation)!=null?a._timeout:void 0)},r.prototype.render=function(a){var o,s;return a._png&&a._png.stopAnimation(),a._png=this,a.width=this.width,a.height=this.height,o=a.getContext("2d"),this.animation?(this.decodeFrames(o),this.animate(o)):(s=o.createImageData(this.width,this.height),this.copyToImageData(s,this.decodePixels()),o.putImageData(s,0,0))},r}();/**
 * @license
 *
 * Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
 *
 * Permission is hereby granted, free of charge, to any person obtaining
 * a copy of this software and associated documentation files (the
 * "Software"), to deal in the Software without restriction, including
 * without limitation the rights to use, copy, modify, merge, publish,
 * distribute, sublicense, and/or sell copies of the Software, and to
 * permit persons to whom the Software is furnished to do so, subject to
 * the following conditions:
 *
 * The above copyright notice and this permission notice shall be
 * included in all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 * ====================================================================
 *//**
 * @license
 * (c) Dean McNamee <dean@gmail.com>, 2013.
 *
 * https://github.com/deanm/omggif
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to
 * deal in the Software without restriction, including without limitation the
 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 * sell copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
 * IN THE SOFTWARE.
 *
 * omggif is a JavaScript implementation of a GIF 89a encoder and decoder,
 * including animation and compression.  It does not rely on any specific
 * underlying system, so should run in the browser, Node, or Plask.
 */function K9n(e){var t=0;if(e[t++]!==71||e[t++]!==73||e[t++]!==70||e[t++]!==56||(e[t++]+1&253)!=56||e[t++]!==97)throw new Error("Invalid GIF 87a/89a header.");var n=e[t++]|e[t++]<<8,r=e[t++]|e[t++]<<8,i=e[t++],a=i>>7,o=1<<(7&i)+1;e[t++],e[t++];var s=null,l=null;a&&(s=t,l=o,t+=3*o);var c=!0,u=[],d=0,f=null,p=0,h=null;for(this.width=n,this.height=r;c&&t<e.length;)switch(e[t++]){case 33:switch(e[t++]){case 255:if(e[t]!==11||e[t+1]==78&&e[t+2]==69&&e[t+3]==84&&e[t+4]==83&&e[t+5]==67&&e[t+6]==65&&e[t+7]==80&&e[t+8]==69&&e[t+9]==50&&e[t+10]==46&&e[t+11]==48&&e[t+12]==3&&e[t+13]==1&&e[t+16]==0)t+=14,h=e[t++]|e[t++]<<8,t++;else for(t+=12;;){if(!((R=e[t++])>=0))throw Error("Invalid block size");if(R===0)break;t+=R}break;case 249:if(e[t++]!==4||e[t+4]!==0)throw new Error("Invalid graphics extension block.");var m=e[t++];d=e[t++]|e[t++]<<8,f=e[t++],!(1&m)&&(f=null),p=m>>2&7,t++;break;case 254:for(;;){if(!((R=e[t++])>=0))throw Error("Invalid block size");if(R===0)break;t+=R}break;default:throw new Error("Unknown graphic control label: 0x"+e[t-1].toString(16))}break;case 44:var g=e[t++]|e[t++]<<8,v=e[t++]|e[t++]<<8,y=e[t++]|e[t++]<<8,_=e[t++]|e[t++]<<8,S=e[t++],C=S>>6&1,w=1<<(7&S)+1,x=s,T=l,A=!1;S>>7&&(A=!0,x=t,T=w,t+=3*w);var I=t;for(t++;;){var R;if(!((R=e[t++])>=0))throw Error("Invalid block size");if(R===0)break;t+=R}u.push({x:g,y:v,width:y,height:_,has_local_palette:A,palette_offset:x,palette_size:T,data_offset:I,data_length:t-I,transparent_index:f,interlaced:!!C,delay:d,disposal:p});break;case 59:c=!1;break;default:throw new Error("Unknown gif block: 0x"+e[t-1].toString(16))}this.numFrames=function(){return u.length},this.loopCount=function(){return h},this.frameInfo=function(N){if(N<0||N>=u.length)throw new Error("Frame index out of range.");return u[N]},this.decodeAndBlitFrameBGRA=function(N,P){var L=this.frameInfo(N),$=L.width*L.height,D=new Uint8Array($);eRe(e,L.data_offset,D,$);var z=L.palette_offset,U=L.transparent_index;U===null&&(U=256);var H=L.width,M=n-H,B=H,k=4*(L.y*n+L.x),F=4*((L.y+L.height)*n+L.x),G=k,q=4*M;L.interlaced===!0&&(q+=4*n*7);for(var W=8,K=0,J=D.length;K<J;++K){var te=D[K];if(B===0&&(B=H,(G+=q)>=F&&(q=4*M+4*n*(W-1),G=k+(H+M)*(W<<1),W>>=1)),te===U)G+=4;else{var ae=e[z+3*te],re=e[z+3*te+1],ue=e[z+3*te+2];P[G++]=ue,P[G++]=re,P[G++]=ae,P[G++]=255}--B}},this.decodeAndBlitFrameRGBA=function(N,P){var L=this.frameInfo(N),$=L.width*L.height,D=new Uint8Array($);eRe(e,L.data_offset,D,$);var z=L.palette_offset,U=L.transparent_index;U===null&&(U=256);var H=L.width,M=n-H,B=H,k=4*(L.y*n+L.x),F=4*((L.y+L.height)*n+L.x),G=k,q=4*M;L.interlaced===!0&&(q+=4*n*7);for(var W=8,K=0,J=D.length;K<J;++K){var te=D[K];if(B===0&&(B=H,(G+=q)>=F&&(q=4*M+4*n*(W-1),G=k+(H+M)*(W<<1),W>>=1)),te===U)G+=4;else{var ae=e[z+3*te],re=e[z+3*te+1],ue=e[z+3*te+2];P[G++]=ae,P[G++]=re,P[G++]=ue,P[G++]=255}--B}}}function eRe(e,t,n,r){for(var i=e[t++],a=1<<i,o=a+1,s=o+1,l=i+1,c=(1<<l)-1,u=0,d=0,f=0,p=e[t++],h=new Int32Array(4096),m=null;;){for(;u<16&&p!==0;)d|=e[t++]<<u,u+=8,p===1?p=e[t++]:--p;if(u<l)break;var g=d&c;if(d>>=l,u-=l,g!==a){if(g===o)break;for(var v=g<s?g:m,y=0,_=v;_>a;)_=h[_]>>8,++y;var S=_;if(f+y+(v!==g?1:0)>r)return void mo.log("Warning, gif stream longer than expected.");n[f++]=S;var C=f+=y;for(v!==g&&(n[f++]=S),_=v;y--;)_=h[_],n[--C]=255&_,_>>=8;m!==null&&s<4096&&(h[s++]=m<<8|S,s>=c+1&&l<12&&(++l,c=c<<1|1)),m=g}else s=o+1,c=(1<<(l=i+1))-1,m=null}return f!==r&&mo.log("Warning, gif stream shorter than expected."),n}/**
 * @license
  Copyright (c) 2008, Adobe Systems Incorporated
  All rights reserved.

  Redistribution and use in source and binary forms, with or without 
  modification, are permitted provided that the following conditions are
  met:

  * Redistributions of source code must retain the above copyright notice, 
    this list of conditions and the following disclaimer.
  
  * Redistributions in binary form must reproduce the above copyright
    notice, this list of conditions and the following disclaimer in the 
    documentation and/or other materials provided with the distribution.
  
  * Neither the name of Adobe Systems Incorporated nor the names of its 
    contributors may be used to endorse or promote products derived from 
    this software without specific prior written permission.

  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/function aJ(e){var t,n,r,i,a,o=Math.floor,s=new Array(64),l=new Array(64),c=new Array(64),u=new Array(64),d=new Array(65535),f=new Array(65535),p=new Array(64),h=new Array(64),m=[],g=0,v=7,y=new Array(64),_=new Array(64),S=new Array(64),C=new Array(256),w=new Array(2048),x=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],T=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],A=[0,1,2,3,4,5,6,7,8,9,10,11],I=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],R=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],N=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],P=[0,1,2,3,4,5,6,7,8,9,10,11],L=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],$=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function D(k,F){for(var G=0,q=0,W=new Array,K=1;K<=16;K++){for(var J=1;J<=k[K];J++)W[F[q]]=[],W[F[q]][0]=G,W[F[q]][1]=K,q++,G++;G*=2}return W}function z(k){for(var F=k[0],G=k[1]-1;G>=0;)F&1<<G&&(g|=1<<v),G--,--v<0&&(g==255?(U(255),U(0)):U(g),v=7,g=0)}function U(k){m.push(k)}function H(k){U(k>>8&255),U(255&k)}function M(k,F,G,q,W){for(var K,J=W[0],te=W[240],ae=function(he,ye){var me,_e,Te,xe,De,Pe,Le,ze,Be,je,Ye=0;for(Be=0;Be<8;++Be){me=he[Ye],_e=he[Ye+1],Te=he[Ye+2],xe=he[Ye+3],De=he[Ye+4],Pe=he[Ye+5],Le=he[Ye+6];var Ze=me+(ze=he[Ye+7]),Ke=me-ze,qe=_e+Le,nt=_e-Le,Qe=Te+Pe,it=Te-Pe,yt=xe+De,Wt=xe-De,Mt=Ze+yt,tn=Ze-yt,Rt=qe+Qe,Dt=qe-Qe;he[Ye]=Mt+Rt,he[Ye+4]=Mt-Rt;var Pt=.707106781*(Dt+tn);he[Ye+2]=tn+Pt,he[Ye+6]=tn-Pt;var Ot=.382683433*((Mt=Wt+it)-(Dt=nt+Ke)),sn=.5411961*Mt+Ot,Jt=1.306562965*Dt+Ot,Vt=.707106781*(Rt=it+nt),pt=Ke+Vt,tt=Ke-Vt;he[Ye+5]=tt+sn,he[Ye+3]=tt-sn,he[Ye+1]=pt+Jt,he[Ye+7]=pt-Jt,Ye+=8}for(Ye=0,Be=0;Be<8;++Be){me=he[Ye],_e=he[Ye+8],Te=he[Ye+16],xe=he[Ye+24],De=he[Ye+32],Pe=he[Ye+40],Le=he[Ye+48];var dt=me+(ze=he[Ye+56]),Et=me-ze,St=_e+Le,zt=_e-Le,nn=Te+Pe,wn=Te-Pe,kn=xe+De,fn=xe-De,an=dt+kn,Ht=dt-kn,mn=St+nn,Tn=St-nn;he[Ye]=an+mn,he[Ye+32]=an-mn;var An=.707106781*(Tn+Ht);he[Ye+16]=Ht+An,he[Ye+48]=Ht-An;var nr=.382683433*((an=fn+wn)-(Tn=zt+Et)),un=.5411961*an+nr,et=1.306562965*Tn+nr,Ct=.707106781*(mn=wn+zt),Q=Et+Ct,Y=Et-Ct;he[Ye+40]=Y+un,he[Ye+24]=Y-un,he[Ye+8]=Q+et,he[Ye+56]=Q-et,Ye++}for(Be=0;Be<64;++Be)je=he[Be]*ye[Be],p[Be]=je>0?je+.5|0:je-.5|0;return p}(k,F),re=0;re<64;++re)h[x[re]]=ae[re];var ue=h[0]-G;G=h[0],ue==0?z(q[0]):(z(q[f[K=32767+ue]]),z(d[K]));for(var de=63;de>0&&h[de]==0;)de--;if(de==0)return z(J),G;for(var fe,ge=1;ge<=de;){for(var oe=ge;h[ge]==0&&ge<=de;)++ge;var Ee=ge-oe;if(Ee>=16){fe=Ee>>4;for(var ce=1;ce<=fe;++ce)z(te);Ee&=15}K=32767+h[ge],z(W[(Ee<<4)+f[K]]),z(d[K]),ge++}return de!=63&&z(J),G}function B(k){k=Math.min(Math.max(k,1),100),a!=k&&(function(F){for(var G=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],q=0;q<64;q++){var W=o((G[q]*F+50)/100);W=Math.min(Math.max(W,1),255),s[x[q]]=W}for(var K=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],J=0;J<64;J++){var te=o((K[J]*F+50)/100);te=Math.min(Math.max(te,1),255),l[x[J]]=te}for(var ae=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],re=0,ue=0;ue<8;ue++)for(var de=0;de<8;de++)c[re]=1/(s[x[re]]*ae[ue]*ae[de]*8),u[re]=1/(l[x[re]]*ae[ue]*ae[de]*8),re++}(k<50?Math.floor(5e3/k):Math.floor(200-2*k)),a=k)}this.encode=function(k,F){F&&B(F),m=new Array,g=0,v=7,H(65496),H(65504),H(16),U(74),U(70),U(73),U(70),U(0),U(1),U(1),U(0),H(1),H(1),U(0),U(0),function(){H(65499),H(132),U(0);for(var _e=0;_e<64;_e++)U(s[_e]);U(1);for(var Te=0;Te<64;Te++)U(l[Te])}(),function(_e,Te){H(65472),H(17),U(8),H(Te),H(_e),U(3),U(1),U(17),U(0),U(2),U(17),U(1),U(3),U(17),U(1)}(k.width,k.height),function(){H(65476),H(418),U(0);for(var _e=0;_e<16;_e++)U(T[_e+1]);for(var Te=0;Te<=11;Te++)U(A[Te]);U(16);for(var xe=0;xe<16;xe++)U(I[xe+1]);for(var De=0;De<=161;De++)U(R[De]);U(1);for(var Pe=0;Pe<16;Pe++)U(N[Pe+1]);for(var Le=0;Le<=11;Le++)U(P[Le]);U(17);for(var ze=0;ze<16;ze++)U(L[ze+1]);for(var Be=0;Be<=161;Be++)U($[Be])}(),H(65498),H(12),U(3),U(1),U(0),U(2),U(17),U(3),U(17),U(0),U(63),U(0);var G=0,q=0,W=0;g=0,v=7,this.encode.displayName="_encode_";for(var K,J,te,ae,re,ue,de,fe,ge,oe=k.data,Ee=k.width,ce=k.height,he=4*Ee,ye=0;ye<ce;){for(K=0;K<he;){for(re=he*ye+K,de=-1,fe=0,ge=0;ge<64;ge++)ue=re+(fe=ge>>3)*he+(de=4*(7&ge)),ye+fe>=ce&&(ue-=he*(ye+1+fe-ce)),K+de>=he&&(ue-=K+de-he+4),J=oe[ue++],te=oe[ue++],ae=oe[ue++],y[ge]=(w[J]+w[te+256>>0]+w[ae+512>>0]>>16)-128,_[ge]=(w[J+768>>0]+w[te+1024>>0]+w[ae+1280>>0]>>16)-128,S[ge]=(w[J+1280>>0]+w[te+1536>>0]+w[ae+1792>>0]>>16)-128;G=M(y,c,G,t,r),q=M(_,u,q,n,i),W=M(S,u,W,n,i),K+=32}ye+=8}if(v>=0){var me=[];me[1]=v+1,me[0]=(1<<v+1)-1,z(me)}return H(65497),new Uint8Array(m)},e=e||50,function(){for(var k=String.fromCharCode,F=0;F<256;F++)C[F]=k(F)}(),t=D(T,A),n=D(N,P),r=D(I,R),i=D(L,$),function(){for(var k=1,F=2,G=1;G<=15;G++){for(var q=k;q<F;q++)f[32767+q]=G,d[32767+q]=[],d[32767+q][1]=G,d[32767+q][0]=q;for(var W=-(F-1);W<=-k;W++)f[32767+W]=G,d[32767+W]=[],d[32767+W][1]=G,d[32767+W][0]=F-1+W;k<<=1,F<<=1}}(),function(){for(var k=0;k<256;k++)w[k]=19595*k,w[k+256>>0]=38470*k,w[k+512>>0]=7471*k+32768,w[k+768>>0]=-11059*k,w[k+1024>>0]=-21709*k,w[k+1280>>0]=32768*k+8421375,w[k+1536>>0]=-27439*k,w[k+1792>>0]=-5329*k}(),B(e)}/**
 * @license
 * Copyright (c) 2017 Aras Abbasi
 *
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */function yh(e,t){if(this.pos=0,this.buffer=e,this.datav=new DataView(e.buffer),this.is_with_alpha=!!t,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function tRe(e){function t(T){if(!T)throw Error("assert :P")}function n(T,A,I){for(var R=0;4>R;R++)if(T[A+R]!=I.charCodeAt(R))return!0;return!1}function r(T,A,I,R,N){for(var P=0;P<N;P++)T[A+P]=I[R+P]}function i(T,A,I,R){for(var N=0;N<R;N++)T[A+N]=I}function a(T){return new Int32Array(T)}function o(T,A){for(var I=[],R=0;R<T;R++)I.push(new A);return I}function s(T,A){var I=[];return function R(N,P,L){for(var $=L[P],D=0;D<$&&(N.push(L.length>P+1?[]:new A),!(L.length<P+1));D++)R(N[D],P+1,L)}(I,0,T),I}var l=function(){var T=this;function A(V,X){for(var ie=1<<X-1>>>0;V&ie;)ie>>>=1;return ie?(V&ie-1)+ie:V}function I(V,X,ie,ve,Ie){t(!(ve%ie));do V[X+(ve-=ie)]=Ie;while(0<ve)}function R(V,X,ie,ve,Ie){if(t(2328>=Ie),512>=Ie)var ke=a(512);else if((ke=a(Ie))==null)return 0;return function($e,Ue,Ge,Je,vt,$t){var Ft,xt,hn=Ue,qt=1<<Ge,gt=a(16),_t=a(16);for(t(vt!=0),t(Je!=null),t($e!=null),t(0<Ge),xt=0;xt<vt;++xt){if(15<Je[xt])return 0;++gt[Je[xt]]}if(gt[0]==vt)return 0;for(_t[1]=0,Ft=1;15>Ft;++Ft){if(gt[Ft]>1<<Ft)return 0;_t[Ft+1]=_t[Ft]+gt[Ft]}for(xt=0;xt<vt;++xt)Ft=Je[xt],0<Je[xt]&&($t[_t[Ft]++]=xt);if(_t[15]==1)return(Je=new N).g=0,Je.value=$t[0],I($e,hn,1,qt,Je),qt;var pn,bn=-1,on=qt-1,Zn=0,Ln=1,sr=1,Hn=1<<Ge;for(xt=0,Ft=1,vt=2;Ft<=Ge;++Ft,vt<<=1){if(Ln+=sr<<=1,0>(sr-=gt[Ft]))return 0;for(;0<gt[Ft];--gt[Ft])(Je=new N).g=Ft,Je.value=$t[xt++],I($e,hn+Zn,vt,Hn,Je),Zn=A(Zn,Ft)}for(Ft=Ge+1,vt=2;15>=Ft;++Ft,vt<<=1){if(Ln+=sr<<=1,0>(sr-=gt[Ft]))return 0;for(;0<gt[Ft];--gt[Ft]){if(Je=new N,(Zn&on)!=bn){for(hn+=Hn,pn=1<<(bn=Ft)-Ge;15>bn&&!(0>=(pn-=gt[bn]));)++bn,pn<<=1;qt+=Hn=1<<(pn=bn-Ge),$e[Ue+(bn=Zn&on)].g=pn+Ge,$e[Ue+bn].value=hn-Ue-bn}Je.g=Ft-Ge,Je.value=$t[xt++],I($e,hn+(Zn>>Ge),vt,Hn,Je),Zn=A(Zn,Ft)}}return Ln!=2*_t[15]-1?0:qt}(V,X,ie,ve,Ie,ke)}function N(){this.value=this.g=0}function P(){this.value=this.g=0}function L(){this.G=o(5,N),this.H=a(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=o(Nc,P)}function $(V,X,ie,ve){t(V!=null),t(X!=null),t(2147483648>ve),V.Ca=254,V.I=0,V.b=-8,V.Ka=0,V.oa=X,V.pa=ie,V.Jd=X,V.Yc=ie+ve,V.Zc=4<=ve?ie+ve-4+1:ie,K(V)}function D(V,X){for(var ie=0;0<X--;)ie|=te(V,128)<<X;return ie}function z(V,X){var ie=D(V,X);return J(V)?-ie:ie}function U(V,X,ie,ve){var Ie,ke=0;for(t(V!=null),t(X!=null),t(4294967288>ve),V.Sb=ve,V.Ra=0,V.u=0,V.h=0,4<ve&&(ve=4),Ie=0;Ie<ve;++Ie)ke+=X[ie+Ie]<<8*Ie;V.Ra=ke,V.bb=ve,V.oa=X,V.pa=ie}function H(V){for(;8<=V.u&&V.bb<V.Sb;)V.Ra>>>=8,V.Ra+=V.oa[V.pa+V.bb]<<$0-8>>>0,++V.bb,V.u-=8;G(V)&&(V.h=1,V.u=0)}function M(V,X){if(t(0<=X),!V.h&&X<=D0){var ie=F(V)&qd[X];return V.u+=X,H(V),ie}return V.h=1,V.u=0}function B(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function k(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function F(V){return V.Ra>>>(V.u&$0-1)>>>0}function G(V){return t(V.bb<=V.Sb),V.h||V.bb==V.Sb&&V.u>$0}function q(V,X){V.u=X,V.h=G(V)}function W(V){V.u>=Ov&&(t(V.u>=Ov),H(V))}function K(V){t(V!=null&&V.oa!=null),V.pa<V.Zc?(V.I=(V.oa[V.pa++]|V.I<<8)>>>0,V.b+=8):(t(V!=null&&V.oa!=null),V.pa<V.Yc?(V.b+=8,V.I=V.oa[V.pa++]|V.I<<8):V.Ka?V.b=0:(V.I<<=8,V.b+=8,V.Ka=1))}function J(V){return D(V,1)}function te(V,X){var ie=V.Ca;0>V.b&&K(V);var ve=V.b,Ie=ie*X>>>8,ke=(V.I>>>ve>Ie)+0;for(ke?(ie-=Ie,V.I-=Ie+1<<ve>>>0):ie=Ie+1,ve=ie,Ie=0;256<=ve;)Ie+=8,ve>>=8;return ve=7^Ie+tc[ve],V.b-=ve,V.Ca=(ie<<ve)-1,ke}function ae(V,X,ie){V[X+0]=ie>>24&255,V[X+1]=ie>>16&255,V[X+2]=ie>>8&255,V[X+3]=ie>>0&255}function re(V,X){return V[X+0]<<0|V[X+1]<<8}function ue(V,X){return re(V,X)|V[X+2]<<16}function de(V,X){return re(V,X)|re(V,X+2)<<16}function fe(V,X){var ie=1<<X;return t(V!=null),t(0<X),V.X=a(ie),V.X==null?0:(V.Mb=32-X,V.Xa=X,1)}function ge(V,X){t(V!=null),t(X!=null),t(V.Xa==X.Xa),r(X.X,0,V.X,0,1<<X.Xa)}function oe(){this.X=[],this.Xa=this.Mb=0}function Ee(V,X,ie,ve){t(ie!=null),t(ve!=null);var Ie=ie[0],ke=ve[0];return Ie==0&&(Ie=(V*ke+X/2)/X),ke==0&&(ke=(X*Ie+V/2)/V),0>=Ie||0>=ke?0:(ie[0]=Ie,ve[0]=ke,1)}function ce(V,X){return V+(1<<X)-1>>>X}function he(V,X){return((4278255360&V)+(4278255360&X)>>>0&4278255360)+((16711935&V)+(16711935&X)>>>0&16711935)>>>0}function ye(V,X){T[X]=function(ie,ve,Ie,ke,$e,Ue,Ge){var Je;for(Je=0;Je<$e;++Je){var vt=T[V](Ue[Ge+Je-1],Ie,ke+Je);Ue[Ge+Je]=he(ie[ve+Je],vt)}}}function me(){this.ud=this.hd=this.jd=0}function _e(V,X){return((4278124286&(V^X))>>>1)+(V&X)>>>0}function Te(V){return 0<=V&&256>V?V:0>V?0:255<V?255:void 0}function xe(V,X){return Te(V+(V-X+.5>>1))}function De(V,X,ie){return Math.abs(X-ie)-Math.abs(V-ie)}function Pe(V,X,ie,ve,Ie,ke,$e){for(ve=ke[$e-1],ie=0;ie<Ie;++ie)ke[$e+ie]=ve=he(V[X+ie],ve)}function Le(V,X,ie,ve,Ie){var ke;for(ke=0;ke<ie;++ke){var $e=V[X+ke],Ue=$e>>8&255,Ge=16711935&(Ge=(Ge=16711935&$e)+((Ue<<16)+Ue));ve[Ie+ke]=(4278255360&$e)+Ge>>>0}}function ze(V,X){X.jd=V>>0&255,X.hd=V>>8&255,X.ud=V>>16&255}function Be(V,X,ie,ve,Ie,ke){var $e;for($e=0;$e<ve;++$e){var Ue=X[ie+$e],Ge=Ue>>>8,Je=Ue,vt=255&(vt=(vt=Ue>>>16)+((V.jd<<24>>24)*(Ge<<24>>24)>>>5));Je=255&(Je=(Je=Je+((V.hd<<24>>24)*(Ge<<24>>24)>>>5))+((V.ud<<24>>24)*(vt<<24>>24)>>>5)),Ie[ke+$e]=(4278255360&Ue)+(vt<<16)+Je}}function je(V,X,ie,ve,Ie){T[X]=function(ke,$e,Ue,Ge,Je,vt,$t,Ft,xt){for(Ge=$t;Ge<Ft;++Ge)for($t=0;$t<xt;++$t)Je[vt++]=Ie(Ue[ve(ke[$e++])])},T[V]=function(ke,$e,Ue,Ge,Je,vt,$t){var Ft=8>>ke.b,xt=ke.Ea,hn=ke.K[0],qt=ke.w;if(8>Ft)for(ke=(1<<ke.b)-1,qt=(1<<Ft)-1;$e<Ue;++$e){var gt,_t=0;for(gt=0;gt<xt;++gt)gt&ke||(_t=ve(Ge[Je++])),vt[$t++]=Ie(hn[_t&qt]),_t>>=Ft}else T["VP8LMapColor"+ie](Ge,Je,hn,qt,vt,$t,$e,Ue,xt)}}function Ye(V,X,ie,ve,Ie){for(ie=X+ie;X<ie;){var ke=V[X++];ve[Ie++]=ke>>16&255,ve[Ie++]=ke>>8&255,ve[Ie++]=ke>>0&255}}function Ze(V,X,ie,ve,Ie){for(ie=X+ie;X<ie;){var ke=V[X++];ve[Ie++]=ke>>16&255,ve[Ie++]=ke>>8&255,ve[Ie++]=ke>>0&255,ve[Ie++]=ke>>24&255}}function Ke(V,X,ie,ve,Ie){for(ie=X+ie;X<ie;){var ke=($e=V[X++])>>16&240|$e>>12&15,$e=$e>>0&240|$e>>28&15;ve[Ie++]=ke,ve[Ie++]=$e}}function qe(V,X,ie,ve,Ie){for(ie=X+ie;X<ie;){var ke=($e=V[X++])>>16&248|$e>>13&7,$e=$e>>5&224|$e>>3&31;ve[Ie++]=ke,ve[Ie++]=$e}}function nt(V,X,ie,ve,Ie){for(ie=X+ie;X<ie;){var ke=V[X++];ve[Ie++]=ke>>0&255,ve[Ie++]=ke>>8&255,ve[Ie++]=ke>>16&255}}function Qe(V,X,ie,ve,Ie,ke){if(ke==0)for(ie=X+ie;X<ie;)ae(ve,((ke=V[X++])[0]>>24|ke[1]>>8&65280|ke[2]<<8&16711680|ke[3]<<24)>>>0),Ie+=32;else r(ve,Ie,V,X,ie)}function it(V,X){T[X][0]=T[V+"0"],T[X][1]=T[V+"1"],T[X][2]=T[V+"2"],T[X][3]=T[V+"3"],T[X][4]=T[V+"4"],T[X][5]=T[V+"5"],T[X][6]=T[V+"6"],T[X][7]=T[V+"7"],T[X][8]=T[V+"8"],T[X][9]=T[V+"9"],T[X][10]=T[V+"10"],T[X][11]=T[V+"11"],T[X][12]=T[V+"12"],T[X][13]=T[V+"13"],T[X][14]=T[V+"0"],T[X][15]=T[V+"0"]}function yt(V){return V==B0||V==j0||V==z0||V==m4}function Wt(){this.eb=[],this.size=this.A=this.fb=0}function Mt(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function tn(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Wt,this.f.kb=new Mt,this.sd=null}function Rt(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Dt(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function Pt(V){return alert("todo:WebPSamplerProcessPlane"),V.T}function Ot(V,X){var ie=V.T,ve=X.ba.f.RGBA,Ie=ve.eb,ke=ve.fb+V.ka*ve.A,$e=ou[X.ba.S],Ue=V.y,Ge=V.O,Je=V.f,vt=V.N,$t=V.ea,Ft=V.W,xt=X.cc,hn=X.dc,qt=X.Mc,gt=X.Nc,_t=V.ka,pn=V.ka+V.T,bn=V.U,on=bn+1>>1;for(_t==0?$e(Ue,Ge,null,null,Je,vt,$t,Ft,Je,vt,$t,Ft,Ie,ke,null,null,bn):($e(X.ec,X.fc,Ue,Ge,xt,hn,qt,gt,Je,vt,$t,Ft,Ie,ke-ve.A,Ie,ke,bn),++ie);_t+2<pn;_t+=2)xt=Je,hn=vt,qt=$t,gt=Ft,vt+=V.Rc,Ft+=V.Rc,ke+=2*ve.A,$e(Ue,(Ge+=2*V.fa)-V.fa,Ue,Ge,xt,hn,qt,gt,Je,vt,$t,Ft,Ie,ke-ve.A,Ie,ke,bn);return Ge+=V.fa,V.j+pn<V.o?(r(X.ec,X.fc,Ue,Ge,bn),r(X.cc,X.dc,Je,vt,on),r(X.Mc,X.Nc,$t,Ft,on),ie--):1&pn||$e(Ue,Ge,null,null,Je,vt,$t,Ft,Je,vt,$t,Ft,Ie,ke+ve.A,null,null,bn),ie}function sn(V,X,ie){var ve=V.F,Ie=[V.J];if(ve!=null){var ke=V.U,$e=X.ba.S,Ue=$e==YC||$e==z0;X=X.ba.f.RGBA;var Ge=[0],Je=V.ka;Ge[0]=V.T,V.Kb&&(Je==0?--Ge[0]:(--Je,Ie[0]-=V.width),V.j+V.ka+V.T==V.o&&(Ge[0]=V.o-V.j-Je));var vt=X.eb;Je=X.fb+Je*X.A,V=WC(ve,Ie[0],V.width,ke,Ge,vt,Je+(Ue?0:3),X.A),t(ie==Ge),V&&yt($e)&&nh(vt,Je,Ue,ke,Ge,X.A)}return 0}function Jt(V){var X=V.ma,ie=X.ba.S,ve=11>ie,Ie=ie==Vm||ie==Lv||ie==YC||ie==h4||ie==12||yt(ie);if(X.memory=null,X.Ib=null,X.Jb=null,X.Nd=null,!X_(X.Oa,V,Ie?11:12))return 0;if(Ie&&yt(ie)&&En(),V.da)alert("todo:use_scaling");else{if(ve){if(X.Ib=Pt,V.Kb){if(ie=V.U+1>>1,X.memory=a(V.U+2*ie),X.memory==null)return 0;X.ec=X.memory,X.fc=0,X.cc=X.ec,X.dc=X.fc+V.U,X.Mc=X.cc,X.Nc=X.dc+ie,X.Ib=Ot,En()}}else alert("todo:EmitYUV");Ie&&(X.Jb=sn,ve&&Nt())}if(ve&&!U8){for(V=0;256>V;++V)sh[V]=89858*(V-128)+Vf>>XC,rV[V]=-22014*(V-128)+Vf,nV[V]=-45773*(V-128),tV[V]=113618*(V-128)+Vf>>XC;for(V=s2;V<y4;++V)X=76283*(V-16)+Vf>>XC,iV[V-s2]=fo(X,255),aV[V-s2]=fo(X+8>>4,15);U8=1}return 1}function Vt(V){var X=V.ma,ie=V.U,ve=V.T;return t(!(1&V.ka)),0>=ie||0>=ve?0:(ie=X.Ib(V,X),X.Jb!=null&&X.Jb(V,X,ie),X.Dc+=ie,1)}function pt(V){V.ma.memory=null}function tt(V,X,ie,ve){return M(V,8)!=47?0:(X[0]=M(V,14)+1,ie[0]=M(V,14)+1,ve[0]=M(V,1),M(V,3)!=0?0:!V.h)}function dt(V,X){if(4>V)return V+1;var ie=V-2>>1;return(2+(1&V)<<ie)+M(X,ie)+1}function Et(V,X){return 120<X?X-120:1<=(ie=((ie=KH[X-1])>>4)*V+(8-(15&ie)))?ie:1;var ie}function St(V,X,ie){var ve=F(ie),Ie=V[X+=255&ve].g-8;return 0<Ie&&(q(ie,ie.u+8),ve=F(ie),X+=V[X].value,X+=ve&(1<<Ie)-1),q(ie,ie.u+V[X].g),V[X].value}function zt(V,X,ie){return ie.g+=V.g,ie.value+=V.value<<X>>>0,t(8>=ie.g),V.g}function nn(V,X,ie){var ve=V.xc;return t((X=ve==0?0:V.vc[V.md*(ie>>ve)+(X>>ve)])<V.Wb),V.Ya[X]}function wn(V,X,ie,ve){var Ie=V.ab,ke=V.c*X,$e=V.C;X=$e+X;var Ue=ie,Ge=ve;for(ve=V.Ta,ie=V.Ua;0<Ie--;){var Je=V.gc[Ie],vt=$e,$t=X,Ft=Ue,xt=Ge,hn=(Ge=ve,Ue=ie,Je.Ea);switch(t(vt<$t),t($t<=Je.nc),Je.hc){case 2:qC(Ft,xt,($t-vt)*hn,Ge,Ue);break;case 0:var qt=vt,gt=$t,_t=Ge,pn=Ue,bn=(Hn=Je).Ea;qt==0&&(Uf(Ft,xt,null,null,1,_t,pn),Pe(Ft,xt+1,0,0,bn-1,_t,pn+1),xt+=bn,pn+=bn,++qt);for(var on=1<<Hn.b,Zn=on-1,Ln=ce(bn,Hn.b),sr=Hn.K,Hn=Hn.w+(qt>>Hn.b)*Ln;qt<gt;){var oa=sr,va=Hn,Ri=1;for(jm(Ft,xt,_t,pn-bn,1,_t,pn);Ri<bn;){var Jr=(Ri&~Zn)+on;Jr>bn&&(Jr=bn),(0,Zp[oa[va++]>>8&15])(Ft,xt+ +Ri,_t,pn+Ri-bn,Jr-Ri,_t,pn+Ri),Ri=Jr}xt+=bn,pn+=bn,++qt&Zn||(Hn+=Ln)}$t!=Je.nc&&r(Ge,Ue-hn,Ge,Ue+($t-vt-1)*hn,hn);break;case 1:for(hn=Ft,gt=xt,bn=(Ft=Je.Ea)-(pn=Ft&~(_t=(xt=1<<Je.b)-1)),qt=ce(Ft,Je.b),on=Je.K,Je=Je.w+(vt>>Je.b)*qt;vt<$t;){for(Zn=on,Ln=Je,sr=new me,Hn=gt+pn,oa=gt+Ft;gt<Hn;)ze(Zn[Ln++],sr),Gu(sr,hn,gt,xt,Ge,Ue),gt+=xt,Ue+=xt;gt<oa&&(ze(Zn[Ln++],sr),Gu(sr,hn,gt,bn,Ge,Ue),gt+=bn,Ue+=bn),++vt&_t||(Je+=qt)}break;case 3:if(Ft==Ge&&xt==Ue&&0<Je.b){for(gt=Ge,Ft=hn=Ue+($t-vt)*hn-(pn=($t-vt)*ce(Je.Ea,Je.b)),xt=Ge,_t=Ue,qt=[],pn=(bn=pn)-1;0<=pn;--pn)qt[pn]=xt[_t+pn];for(pn=bn-1;0<=pn;--pn)gt[Ft+pn]=qt[pn];Wd(Je,vt,$t,Ge,hn,Ge,Ue)}else Wd(Je,vt,$t,Ft,xt,Ge,Ue)}Ue=ve,Ge=ie}Ge!=ie&&r(ve,ie,Ue,Ge,ke)}function kn(V,X){var ie=V.V,ve=V.Ba+V.c*V.C,Ie=X-V.C;if(t(X<=V.l.o),t(16>=Ie),0<Ie){var ke=V.l,$e=V.Ta,Ue=V.Ua,Ge=ke.width;if(wn(V,Ie,ie,ve),Ie=Ue=[Ue],t((ie=V.C)<(ve=X)),t(ke.v<ke.va),ve>ke.o&&(ve=ke.o),ie<ke.j){var Je=ke.j-ie;ie=ke.j,Ie[0]+=Je*Ge}if(ie>=ve?ie=0:(Ie[0]+=4*ke.v,ke.ka=ie-ke.j,ke.U=ke.va-ke.v,ke.T=ve-ie,ie=1),ie){if(Ue=Ue[0],11>(ie=V.ca).S){var vt=ie.f.RGBA,$t=(ve=ie.S,Ie=ke.U,ke=ke.T,Je=vt.eb,vt.A),Ft=ke;for(vt=vt.fb+V.Ma*vt.A;0<Ft--;){var xt=$e,hn=Ue,qt=Ie,gt=Je,_t=vt;switch(ve){case n2:Yd(xt,hn,qt,gt,_t);break;case Vm:Um(xt,hn,qt,gt,_t);break;case B0:Um(xt,hn,qt,gt,_t),nh(gt,_t,0,qt,1,0);break;case Gm:Kd(xt,hn,qt,gt,_t);break;case Lv:Qe(xt,hn,qt,gt,_t,1);break;case j0:Qe(xt,hn,qt,gt,_t,1),nh(gt,_t,0,qt,1,0);break;case YC:Qe(xt,hn,qt,gt,_t,0);break;case z0:Qe(xt,hn,qt,gt,_t,0),nh(gt,_t,1,qt,1,0);break;case h4:Hf(xt,hn,qt,gt,_t);break;case m4:Hf(xt,hn,qt,gt,_t),rh(gt,_t,qt,1,0);break;case D8:Qp(xt,hn,qt,gt,_t);break;default:t(0)}Ue+=Ge,vt+=$t}V.Ma+=ke}else alert("todo:EmitRescaledRowsYUVA");t(V.Ma<=ie.height)}}V.C=X,t(V.C<=V.i)}function fn(V){var X;if(0<V.ua)return 0;for(X=0;X<V.Wb;++X){var ie=V.Ya[X].G,ve=V.Ya[X].H;if(0<ie[1][ve[1]+0].g||0<ie[2][ve[2]+0].g||0<ie[3][ve[3]+0].g)return 0}return 1}function an(V,X,ie,ve,Ie,ke){if(V.Z!=0){var $e=V.qd,Ue=V.rd;for(t(qu[V.Z]!=null);X<ie;++X)qu[V.Z]($e,Ue,ve,Ie,ve,Ie,ke),$e=ve,Ue=Ie,Ie+=ke;V.qd=$e,V.rd=Ue}}function Ht(V,X){var ie=V.l.ma,ve=ie.Z==0||ie.Z==1?V.l.j:V.C;if(ve=V.C<ve?ve:V.C,t(X<=V.l.o),X>ve){var Ie=V.l.width,ke=ie.ca,$e=ie.tb+Ie*ve,Ue=V.V,Ge=V.Ba+V.c*ve,Je=V.gc;t(V.ab==1),t(Je[0].hc==3),zm(Je[0],ve,X,Ue,Ge,ke,$e),an(ie,ve,X,ke,$e,Ie)}V.C=V.Ma=X}function mn(V,X,ie,ve,Ie,ke,$e){var Ue=V.$/ve,Ge=V.$%ve,Je=V.m,vt=V.s,$t=ie+V.$,Ft=$t;Ie=ie+ve*Ie;var xt=ie+ve*ke,hn=280+vt.ua,qt=V.Pb?Ue:16777216,gt=0<vt.ua?vt.Wa:null,_t=vt.wc,pn=$t<xt?nn(vt,Ge,Ue):null;t(V.C<ke),t(xt<=Ie);var bn=!1;e:for(;;){for(;bn||$t<xt;){var on=0;if(Ue>=qt){var Zn=$t-ie;t((qt=V).Pb),qt.wd=qt.m,qt.xd=Zn,0<qt.s.ua&&ge(qt.s.Wa,qt.s.vb),qt=Ue+B8}if(Ge&_t||(pn=nn(vt,Ge,Ue)),t(pn!=null),pn.Qb&&(X[$t]=pn.qb,bn=!0),!bn)if(W(Je),pn.jc){on=Je,Zn=X;var Ln=$t,sr=pn.pd[F(on)&Nc-1];t(pn.jc),256>sr.g?(q(on,on.u+sr.g),Zn[Ln]=sr.value,on=0):(q(on,on.u+sr.g-256),t(256<=sr.value),on=sr.value),on==0&&(bn=!0)}else on=St(pn.G[0],pn.H[0],Je);if(Je.h)break;if(bn||256>on){if(!bn)if(pn.nd)X[$t]=(pn.qb|on<<8)>>>0;else{if(W(Je),bn=St(pn.G[1],pn.H[1],Je),W(Je),Zn=St(pn.G[2],pn.H[2],Je),Ln=St(pn.G[3],pn.H[3],Je),Je.h)break;X[$t]=(Ln<<24|bn<<16|on<<8|Zn)>>>0}if(bn=!1,++$t,++Ge>=ve&&(Ge=0,++Ue,$e!=null&&Ue<=ke&&!(Ue%16)&&$e(V,Ue),gt!=null))for(;Ft<$t;)on=X[Ft++],gt.X[(506832829*on&4294967295)>>>gt.Mb]=on}else if(280>on){if(on=dt(on-256,Je),Zn=St(pn.G[4],pn.H[4],Je),W(Je),Zn=Et(ve,Zn=dt(Zn,Je)),Je.h)break;if($t-ie<Zn||Ie-$t<on)break e;for(Ln=0;Ln<on;++Ln)X[$t+Ln]=X[$t+Ln-Zn];for($t+=on,Ge+=on;Ge>=ve;)Ge-=ve,++Ue,$e!=null&&Ue<=ke&&!(Ue%16)&&$e(V,Ue);if(t($t<=Ie),Ge&_t&&(pn=nn(vt,Ge,Ue)),gt!=null)for(;Ft<$t;)on=X[Ft++],gt.X[(506832829*on&4294967295)>>>gt.Mb]=on}else{if(!(on<hn))break e;for(bn=on-280,t(gt!=null);Ft<$t;)on=X[Ft++],gt.X[(506832829*on&4294967295)>>>gt.Mb]=on;on=$t,t(!(bn>>>(Zn=gt).Xa)),X[on]=Zn.X[bn],bn=!0}bn||t(Je.h==G(Je))}if(V.Pb&&Je.h&&$t<Ie)t(V.m.h),V.a=5,V.m=V.wd,V.$=V.xd,0<V.s.ua&&ge(V.s.vb,V.s.Wa);else{if(Je.h)break e;$e?.(V,Ue>ke?ke:Ue),V.a=0,V.$=$t-ie}return 1}return V.a=3,0}function Tn(V){t(V!=null),V.vc=null,V.yc=null,V.Ya=null;var X=V.Wa;X!=null&&(X.X=null),V.vb=null,t(V!=null)}function An(){var V=new O0;return V==null?null:(V.a=0,V.xb=a2,it("Predictor","VP8LPredictors"),it("Predictor","VP8LPredictors_C"),it("PredictorAdd","VP8LPredictorsAdd"),it("PredictorAdd","VP8LPredictorsAdd_C"),qC=Le,Gu=Be,Yd=Ye,Um=Ze,Hf=Ke,Qp=qe,Kd=nt,T.VP8LMapColor32b=Q_,T.VP8LMapColor8b=au,V)}function nr(V,X,ie,ve,Ie){var ke=1,$e=[V],Ue=[X],Ge=ve.m,Je=ve.s,vt=null,$t=0;e:for(;;){if(ie)for(;ke&&M(Ge,1);){var Ft=$e,xt=Ue,hn=ve,qt=1,gt=hn.m,_t=hn.gc[hn.ab],pn=M(gt,2);if(hn.Oc&1<<pn)ke=0;else{switch(hn.Oc|=1<<pn,_t.hc=pn,_t.Ea=Ft[0],_t.nc=xt[0],_t.K=[null],++hn.ab,t(4>=hn.ab),pn){case 0:case 1:_t.b=M(gt,3)+2,qt=nr(ce(_t.Ea,_t.b),ce(_t.nc,_t.b),0,hn,_t.K),_t.K=_t.K[0];break;case 3:var bn,on=M(gt,8)+1,Zn=16<on?0:4<on?1:2<on?2:3;if(Ft[0]=ce(_t.Ea,Zn),_t.b=Zn,bn=qt=nr(on,1,0,hn,_t.K)){var Ln,sr=on,Hn=_t,oa=1<<(8>>Hn.b),va=a(oa);if(va==null)bn=0;else{var Ri=Hn.K[0],Jr=Hn.w;for(va[0]=Hn.K[0][0],Ln=1;Ln<1*sr;++Ln)va[Ln]=he(Ri[Jr+Ln],va[Ln-1]);for(;Ln<4*oa;++Ln)va[Ln]=0;Hn.K[0]=null,Hn.K[0]=va,bn=1}}qt=bn;break;case 2:break;default:t(0)}ke=qt}}if($e=$e[0],Ue=Ue[0],ke&&M(Ge,1)&&!(ke=1<=($t=M(Ge,4))&&11>=$t)){ve.a=3;break e}var ka;if(ka=ke)t:{var Ma,Yr,_s,ic=ve,ki=$e,Bl=Ue,ya=$t,Xo=ie,ac=ic.m,ss=ic.s,No=[null],jl=1,to=0,Wu=XH[ya];n:for(;;){if(Xo&&M(ac,1)){var ol=M(ac,3)+2,lh=ce(ki,ol),Pv=ce(Bl,ol),Wm=lh*Pv;if(!nr(lh,Pv,0,ic,No))break n;for(No=No[0],ss.xc=ol,Ma=0;Ma<Wm;++Ma){var Ym=No[Ma]>>8&65535;No[Ma]=Ym,Ym>=jl&&(jl=Ym+1)}}if(ac.h)break n;for(Yr=0;5>Yr;++Yr){var no=F8[Yr];!Yr&&0<ya&&(no+=1<<ya),to<no&&(to=no)}var QC=o(jl*Wu,N),V8=jl,G8=o(V8,L);if(G8==null)var Km=null;else t(65536>=V8),Km=G8;var l2=a(to);if(Km==null||l2==null||QC==null){ic.a=1;break n}var JC=QC;for(Ma=_s=0;Ma<jl;++Ma){var lu=Km[Ma],kv=lu.G,q0=lu.H,q8=0,ew=1,b4=0;for(Yr=0;5>Yr;++Yr){no=F8[Yr],kv[Yr]=JC,q0[Yr]=_s,!Yr&&0<ya&&(no+=1<<ya);i:{var W0,_4=no,Y0=ic,K0=l2,W8=JC,Y8=_s,X0=0,Xm=Y0.m,K8=M(Xm,1);if(i(K0,0,0,_4),K8){var X8=M(Xm,1)+1,lV=M(Xm,1),S4=M(Xm,lV==0?1:8);K0[S4]=1,X8==2&&(K0[S4=M(Xm,8)]=1);var tw=1}else{var nw=a(19),E4=M(Xm,4)+4;if(19<E4){Y0.a=3;var Z0=0;break i}for(W0=0;W0<E4;++W0)nw[Fl[W0]]=M(Xm,3);var C4=void 0,Mv=void 0,mi=Y0,cV=nw,rw=_4,Q0=K0,iw=0,Zm=mi.m,Z8=8,cu=o(128,N);r:for(;R(cu,0,7,cV,19);){if(M(Zm,1)){var uV=2+2*M(Zm,3);if((C4=2+M(Zm,uV))>rw)break r}else C4=rw;for(Mv=0;Mv<rw&&C4--;){W(Zm);var c2=cu[0+(127&F(Zm))];q(Zm,Zm.u+c2.g);var Qm=c2.value;if(16>Qm)Q0[Mv++]=Qm,Qm!=0&&(Z8=Qm);else{var Q8=Qm==16,w4=Qm-16,uu=YH[w4],ch=M(Zm,$8[w4])+uu;if(Mv+ch>rw)break r;for(var x4=Q8?Z8:0;0<ch--;)Q0[Mv++]=x4}}iw=1;break r}iw||(mi.a=3),tw=iw}(tw=tw&&!Xm.h)&&(X0=R(W8,Y8,8,K0,_4)),tw&&X0!=0?Z0=X0:(Y0.a=3,Z0=0)}if(Z0==0)break n;if(ew&&Ds[Yr]==1&&(ew=JC[_s].g==0),q8+=JC[_s].g,_s+=Z0,3>=Yr){var J0,ey=l2[0];for(J0=1;J0<no;++J0)l2[J0]>ey&&(ey=l2[J0]);b4+=ey}}if(lu.nd=ew,lu.Qb=0,ew&&(lu.qb=(kv[3][q0[3]+0].value<<24|kv[1][q0[1]+0].value<<16|kv[2][q0[2]+0].value)>>>0,q8==0&&256>kv[0][q0[0]+0].value&&(lu.Qb=1,lu.qb+=kv[0][q0[0]+0].value<<8)),lu.jc=!lu.Qb&&6>b4,lu.jc){var u2,Zd=lu;for(u2=0;u2<Nc;++u2){var uh=u2,qf=Zd.pd[uh],ty=Zd.G[0][Zd.H[0]+uh];256<=ty.value?(qf.g=ty.g+256,qf.value=ty.value):(qf.g=0,qf.value=0,uh>>=zt(ty,8,qf),uh>>=zt(Zd.G[1][Zd.H[1]+uh],16,qf),uh>>=zt(Zd.G[2][Zd.H[2]+uh],0,qf),zt(Zd.G[3][Zd.H[3]+uh],24,qf))}}}ss.vc=No,ss.Wb=jl,ss.Ya=Km,ss.yc=QC,ka=1;break t}ka=0}if(!(ke=ka)){ve.a=3;break e}if(0<$t){if(Je.ua=1<<$t,!fe(Je.Wa,$t)){ve.a=1,ke=0;break e}}else Je.ua=0;var Wf=ve,J8=$e,Jm=Ue,aw=Wf.s,ow=aw.xc;if(Wf.c=J8,Wf.i=Jm,aw.md=ce(J8,ow),aw.wc=ow==0?-1:(1<<ow)-1,ie){ve.xb=QH;break e}if((vt=a($e*Ue))==null){ve.a=1,ke=0;break e}ke=(ke=mn(ve,vt,0,$e,Ue,Ue,null))&&!Ge.h;break e}return ke?(Ie!=null?Ie[0]=vt:(t(vt==null),t(ie)),ve.$=0,ie||Tn(Je)):Tn(Je),ke}function un(V,X){var ie=V.c*V.i,ve=ie+X+16*X;return t(V.c<=X),V.V=a(ve),V.V==null?(V.Ta=null,V.Ua=0,V.a=1,0):(V.Ta=V.V,V.Ua=V.Ba+ie+X,1)}function et(V,X){var ie=V.C,ve=X-ie,Ie=V.V,ke=V.Ba+V.c*ie;for(t(X<=V.l.o);0<ve;){var $e=16<ve?16:ve,Ue=V.l.ma,Ge=V.l.width,Je=Ge*$e,vt=Ue.ca,$t=Ue.tb+Ge*ie,Ft=V.Ta,xt=V.Ua;wn(V,$e,Ie,ke),k8(Ft,xt,vt,$t,Je),an(Ue,ie,ie+$e,vt,$t,Ge),ve-=$e,Ie+=$e*V.c,ie+=$e}t(ie==X),V.C=V.Ma=X}function Ct(){this.ub=this.yd=this.td=this.Rb=0}function Q(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Y(){this.Fb=this.Bb=this.Cb=0,this.Zb=a(4),this.Lb=a(4)}function ee(){this.Yb=function(){var V=[];return function X(ie,ve,Ie){for(var ke=Ie[ve],$e=0;$e<ke&&(ie.push(Ie.length>ve+1?[]:0),!(Ie.length<ve+1));$e++)X(ie[$e],ve+1,Ie)}(V,0,[3,11]),V}()}function le(){this.jb=a(3),this.Wc=s([4,8],ee),this.Xc=s([4,17],ee)}function Se(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new a(4),this.od=new a(4)}function Ae(){this.ld=this.La=this.dd=this.tc=0}function He(){this.Na=this.la=0}function at(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function wt(){this.ad=a(384),this.Za=0,this.Ob=a(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function ft(){this.uc=this.M=this.Nb=0,this.wa=Array(new Ae),this.Y=0,this.ya=Array(new wt),this.aa=0,this.l=new Gt}function Lt(){this.y=a(16),this.f=a(8),this.ea=a(8)}function kt(){this.cb=this.a=0,this.sc="",this.m=new B,this.Od=new Ct,this.Kc=new Q,this.ed=new Se,this.Qa=new Y,this.Ic=this.$c=this.Aa=0,this.D=new ft,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=o(8,B),this.ia=0,this.pb=o(4,at),this.Pa=new le,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Lt),this.Hd=0,this.rb=Array(new He),this.sb=0,this.wa=Array(new Ae),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new wt),this.L=this.aa=0,this.gd=s([4,2],Ae),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function Gt(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function ln(){var V=new kt;return V!=null&&(V.a=0,V.sc="OK",V.cb=0,V.Xb=0,ah||(ah=Vr)),V}function _n(V,X,ie){return V.a==0&&(V.a=X,V.sc=ie,V.cb=0),0}function Fn(V,X,ie){return 3<=ie&&V[X+0]==157&&V[X+1]==1&&V[X+2]==42}function ur(V,X){if(V==null)return 0;if(V.a=0,V.sc="OK",X==null)return _n(V,2,"null VP8Io passed to VP8GetHeaders()");var ie=X.data,ve=X.w,Ie=X.ha;if(4>Ie)return _n(V,7,"Truncated header.");var ke=ie[ve+0]|ie[ve+1]<<8|ie[ve+2]<<16,$e=V.Od;if($e.Rb=!(1&ke),$e.td=ke>>1&7,$e.yd=ke>>4&1,$e.ub=ke>>5,3<$e.td)return _n(V,3,"Incorrect keyframe parameters.");if(!$e.yd)return _n(V,4,"Frame not displayable.");ve+=3,Ie-=3;var Ue=V.Kc;if($e.Rb){if(7>Ie)return _n(V,7,"cannot parse picture header");if(!Fn(ie,ve,Ie))return _n(V,3,"Bad code word");Ue.c=16383&(ie[ve+4]<<8|ie[ve+3]),Ue.Td=ie[ve+4]>>6,Ue.i=16383&(ie[ve+6]<<8|ie[ve+5]),Ue.Ud=ie[ve+6]>>6,ve+=7,Ie-=7,V.za=Ue.c+15>>4,V.Ub=Ue.i+15>>4,X.width=Ue.c,X.height=Ue.i,X.Da=0,X.j=0,X.v=0,X.va=X.width,X.o=X.height,X.da=0,X.ib=X.width,X.hb=X.height,X.U=X.width,X.T=X.height,i((ke=V.Pa).jb,0,255,ke.jb.length),t((ke=V.Qa)!=null),ke.Cb=0,ke.Bb=0,ke.Fb=1,i(ke.Zb,0,0,ke.Zb.length),i(ke.Lb,0,0,ke.Lb)}if($e.ub>Ie)return _n(V,7,"bad partition length");$(ke=V.m,ie,ve,$e.ub),ve+=$e.ub,Ie-=$e.ub,$e.Rb&&(Ue.Ld=J(ke),Ue.Kd=J(ke)),Ue=V.Qa;var Ge,Je=V.Pa;if(t(ke!=null),t(Ue!=null),Ue.Cb=J(ke),Ue.Cb){if(Ue.Bb=J(ke),J(ke)){for(Ue.Fb=J(ke),Ge=0;4>Ge;++Ge)Ue.Zb[Ge]=J(ke)?z(ke,7):0;for(Ge=0;4>Ge;++Ge)Ue.Lb[Ge]=J(ke)?z(ke,6):0}if(Ue.Bb)for(Ge=0;3>Ge;++Ge)Je.jb[Ge]=J(ke)?D(ke,8):255}else Ue.Bb=0;if(ke.Ka)return _n(V,3,"cannot parse segment header");if((Ue=V.ed).zd=J(ke),Ue.Tb=D(ke,6),Ue.wb=D(ke,3),Ue.Pc=J(ke),Ue.Pc&&J(ke)){for(Je=0;4>Je;++Je)J(ke)&&(Ue.vd[Je]=z(ke,6));for(Je=0;4>Je;++Je)J(ke)&&(Ue.od[Je]=z(ke,6))}if(V.L=Ue.Tb==0?0:Ue.zd?1:2,ke.Ka)return _n(V,3,"cannot parse filter header");var vt=Ie;if(Ie=Ge=ve,ve=Ge+vt,Ue=vt,V.Xb=(1<<D(V.m,2))-1,vt<3*(Je=V.Xb))ie=7;else{for(Ge+=3*Je,Ue-=3*Je,vt=0;vt<Je;++vt){var $t=ie[Ie+0]|ie[Ie+1]<<8|ie[Ie+2]<<16;$t>Ue&&($t=Ue),$(V.Jc[+vt],ie,Ge,$t),Ge+=$t,Ue-=$t,Ie+=3}$(V.Jc[+Je],ie,Ge,Ue),ie=Ge<ve?0:5}if(ie!=0)return _n(V,ie,"cannot parse partitions");for(ie=D(Ge=V.m,7),Ie=J(Ge)?z(Ge,4):0,ve=J(Ge)?z(Ge,4):0,Ue=J(Ge)?z(Ge,4):0,Je=J(Ge)?z(Ge,4):0,Ge=J(Ge)?z(Ge,4):0,vt=V.Qa,$t=0;4>$t;++$t){if(vt.Cb){var Ft=vt.Zb[$t];vt.Fb||(Ft+=ie)}else{if(0<$t){V.pb[$t]=V.pb[0];continue}Ft=ie}var xt=V.pb[$t];xt.Sc[0]=g4[fo(Ft+Ie,127)],xt.Sc[1]=r2[fo(Ft+0,127)],xt.Eb[0]=2*g4[fo(Ft+ve,127)],xt.Eb[1]=101581*r2[fo(Ft+Ue,127)]>>16,8>xt.Eb[1]&&(xt.Eb[1]=8),xt.Qc[0]=g4[fo(Ft+Je,117)],xt.Qc[1]=r2[fo(Ft+Ge,127)],xt.lc=Ft+Ge}if(!$e.Rb)return _n(V,4,"Not a key frame.");for(J(ke),$e=V.Pa,ie=0;4>ie;++ie){for(Ie=0;8>Ie;++Ie)for(ve=0;3>ve;++ve)for(Ue=0;11>Ue;++Ue)Je=te(ke,V0[ie][Ie][ve][Ue])?D(ke,8):i2[ie][Ie][ve][Ue],$e.Wc[ie][Ie].Yb[ve][Ue]=Je;for(Ie=0;17>Ie;++Ie)$e.Xc[ie][Ie]=$e.Wc[ie][ZH[Ie]]}return V.kc=J(ke),V.kc&&(V.Bd=D(ke,8)),V.cb=1}function Vr(V,X,ie,ve,Ie,ke,$e){var Ue=X[Ie].Yb[ie];for(ie=0;16>Ie;++Ie){if(!te(V,Ue[ie+0]))return Ie;for(;!te(V,Ue[ie+1]);)if(Ue=X[++Ie].Yb[0],ie=0,Ie==16)return 16;var Ge=X[Ie+1].Yb;if(te(V,Ue[ie+2])){var Je=V,vt=0;if(te(Je,(Ft=Ue)[($t=ie)+3]))if(te(Je,Ft[$t+6])){for(Ue=0,$t=2*(vt=te(Je,Ft[$t+8]))+(Ft=te(Je,Ft[$t+9+vt])),vt=0,Ft=v4[$t];Ft[Ue];++Ue)vt+=vt+te(Je,Ft[Ue]);vt+=3+(8<<$t)}else te(Je,Ft[$t+7])?(vt=7+2*te(Je,165),vt+=te(Je,145)):vt=5+te(Je,159);else vt=te(Je,Ft[$t+4])?3+te(Je,Ft[$t+5]):2;Ue=Ge[2]}else vt=1,Ue=Ge[1];Ge=$e+U0[Ie],0>(Je=V).b&&K(Je);var $t,Ft=Je.b,xt=($t=Je.Ca>>1)-(Je.I>>Ft)>>31;--Je.b,Je.Ca+=xt,Je.Ca|=1,Je.I-=($t+1&xt)<<Ft,ke[Ge]=((vt^xt)-xt)*ve[(0<Ie)+0]}return 16}function ni(V){var X=V.rb[V.sb-1];X.la=0,X.Na=0,i(V.zc,0,0,V.zc.length),V.ja=0}function fr(V,X){if(V==null)return 0;if(X==null)return _n(V,2,"NULL VP8Io parameter in VP8Decode().");if(!V.cb&&!ur(V,X))return 0;if(t(V.cb),X.ac==null||X.ac(X)){X.ob&&(V.L=0);var ie=ZC[V.L];if(V.L==2?(V.yb=0,V.zb=0):(V.yb=X.v-ie>>4,V.zb=X.j-ie>>4,0>V.yb&&(V.yb=0),0>V.zb&&(V.zb=0)),V.Va=X.o+15+ie>>4,V.Hb=X.va+15+ie>>4,V.Hb>V.za&&(V.Hb=V.za),V.Va>V.Ub&&(V.Va=V.Ub),0<V.L){var ve=V.ed;for(ie=0;4>ie;++ie){var Ie;if(V.Qa.Cb){var ke=V.Qa.Lb[ie];V.Qa.Fb||(ke+=ve.Tb)}else ke=ve.Tb;for(Ie=0;1>=Ie;++Ie){var $e=V.gd[ie][Ie],Ue=ke;if(ve.Pc&&(Ue+=ve.vd[0],Ie&&(Ue+=ve.od[0])),0<(Ue=0>Ue?0:63<Ue?63:Ue)){var Ge=Ue;0<ve.wb&&(Ge=4<ve.wb?Ge>>2:Ge>>1)>9-ve.wb&&(Ge=9-ve.wb),1>Ge&&(Ge=1),$e.dd=Ge,$e.tc=2*Ue+Ge,$e.ld=40<=Ue?2:15<=Ue?1:0}else $e.tc=0;$e.La=Ie}}}ie=0}else _n(V,6,"Frame setup failed"),ie=V.a;if(ie=ie==0){if(ie){V.$c=0,0<V.Aa||(V.Ic=sV);e:{ie=V.Ic,ve=4*(Ge=V.za);var Je=32*Ge,vt=Ge+1,$t=0<V.L?Ge*(0<V.Aa?2:1):0,Ft=(V.Aa==2?2:1)*Ge;if(($e=ve+832+(Ie=3*(16*ie+ZC[V.L])/2*Je)+(ke=V.Fa!=null&&0<V.Fa.length?V.Kc.c*V.Kc.i:0))!=$e)ie=0;else{if($e>V.Vb){if(V.Vb=0,V.Ec=a($e),V.Fc=0,V.Ec==null){ie=_n(V,1,"no memory during frame initialization.");break e}V.Vb=$e}$e=V.Ec,Ue=V.Fc,V.Ac=$e,V.Bc=Ue,Ue+=ve,V.Gd=o(Je,Lt),V.Hd=0,V.rb=o(vt+1,He),V.sb=1,V.wa=$t?o($t,Ae):null,V.Y=0,V.D.Nb=0,V.D.wa=V.wa,V.D.Y=V.Y,0<V.Aa&&(V.D.Y+=Ge),t(!0),V.oc=$e,V.pc=Ue,Ue+=832,V.ya=o(Ft,wt),V.aa=0,V.D.ya=V.ya,V.D.aa=V.aa,V.Aa==2&&(V.D.aa+=Ge),V.R=16*Ge,V.B=8*Ge,Ge=(Je=ZC[V.L])*V.R,Je=Je/2*V.B,V.sa=$e,V.ta=Ue+Ge,V.qa=V.sa,V.ra=V.ta+16*ie*V.R+Je,V.Ha=V.qa,V.Ia=V.ra+8*ie*V.B+Je,V.$c=0,Ue+=Ie,V.mb=ke?$e:null,V.nb=ke?Ue:null,t(Ue+ke<=V.Fc+V.Vb),ni(V),i(V.Ac,V.Bc,0,ve),ie=1}}if(ie){if(X.ka=0,X.y=V.sa,X.O=V.ta,X.f=V.qa,X.N=V.ra,X.ea=V.Ha,X.Vd=V.Ia,X.fa=V.R,X.Rc=V.B,X.F=null,X.J=0,!p4){for(ie=-255;255>=ie;++ie)M8[255+ie]=0>ie?-ie:ie;for(ie=-1020;1020>=ie;++ie)J_[1020+ie]=-128>ie?-128:127<ie?127:ie;for(ie=-112;112>=ie;++ie)ih[112+ie]=-16>ie?-16:15<ie?15:ie;for(ie=-255;510>=ie;++ie)e2[255+ie]=0>ie?0:255<ie?255:ie;p4=1}bt=Oa,Zt=Mn,Gn=ri,Sr=Gi,yi=ma,jt=On,po=A0,aa=$m,Jp=VC,Hm=R0,$l=HC,nc=Nv,eh=El,ua=GC,wa=bs,So=Hd,Br=Rc,th=UC,Xd[0]=Kn,Xd[1]=rr,Xd[2]=Ud,Xd[3]=Iv,Xd[4]=Ir,Xd[5]=eo,Xd[6]=Ca,Xd[7]=Pa,Xd[8]=Av,Xd[9]=Mm,qm[0]=Sa,qm[1]=xn,qm[2]=Yn,qm[3]=ui,qm[4]=Ea,qm[5]=Ml,qm[6]=Dl,oh[0]=Dm,oh[1]=dr,oh[2]=T0,oh[3]=qi,oh[4]=Rv,oh[5]=f4,oh[6]=q_,ie=1}else ie=0}ie&&(ie=function(xt,hn){for(xt.M=0;xt.M<xt.Va;++xt.M){var qt,gt=xt.Jc[xt.M&xt.Xb],_t=xt.m,pn=xt;for(qt=0;qt<pn.za;++qt){var bn=_t,on=pn,Zn=on.Ac,Ln=on.Bc+4*qt,sr=on.zc,Hn=on.ya[on.aa+qt];if(on.Qa.Bb?Hn.$b=te(bn,on.Pa.jb[0])?2+te(bn,on.Pa.jb[2]):te(bn,on.Pa.jb[1]):Hn.$b=0,on.kc&&(Hn.Ad=te(bn,on.Bd)),Hn.Za=!te(bn,145)+0,Hn.Za){var oa=Hn.Ob,va=0;for(on=0;4>on;++on){var Ri,Jr=sr[0+on];for(Ri=0;4>Ri;++Ri){Jr=KC[Zn[Ln+Ri]][Jr];for(var ka=H0[te(bn,Jr[0])];0<ka;)ka=H0[2*ka+te(bn,Jr[ka])];Jr=-ka,Zn[Ln+Ri]=Jr}r(oa,va,Zn,Ln,4),va+=4,sr[0+on]=Jr}}else Jr=te(bn,156)?te(bn,128)?1:3:te(bn,163)?2:0,Hn.Ob[0]=Jr,i(Zn,Ln,Jr,4),i(sr,0,Jr,4);Hn.Dd=te(bn,142)?te(bn,114)?te(bn,183)?1:3:2:0}if(pn.m.Ka)return _n(xt,7,"Premature end-of-partition0 encountered.");for(;xt.ja<xt.za;++xt.ja){if(pn=gt,bn=(_t=xt).rb[_t.sb-1],Zn=_t.rb[_t.sb+_t.ja],qt=_t.ya[_t.aa+_t.ja],Ln=_t.kc?qt.Ad:0)bn.la=Zn.la=0,qt.Za||(bn.Na=Zn.Na=0),qt.Hc=0,qt.Gc=0,qt.ia=0;else{var Ma,Yr;if(bn=Zn,Zn=pn,Ln=_t.Pa.Xc,sr=_t.ya[_t.aa+_t.ja],Hn=_t.pb[sr.$b],on=sr.ad,oa=0,va=_t.rb[_t.sb-1],Jr=Ri=0,i(on,oa,0,384),sr.Za)var _s=0,ic=Ln[3];else{ka=a(16);var ki=bn.Na+va.Na;if(ki=ah(Zn,Ln[1],ki,Hn.Eb,0,ka,0),bn.Na=va.Na=(0<ki)+0,1<ki)bt(ka,0,on,oa);else{var Bl=ka[0]+3>>3;for(ka=0;256>ka;ka+=16)on[oa+ka]=Bl}_s=1,ic=Ln[0]}var ya=15&bn.la,Xo=15&va.la;for(ka=0;4>ka;++ka){var ac=1&Xo;for(Bl=Yr=0;4>Bl;++Bl)ya=ya>>1|(ac=(ki=ah(Zn,ic,ki=ac+(1&ya),Hn.Sc,_s,on,oa))>_s)<<7,Yr=Yr<<2|(3<ki?3:1<ki?2:on[oa+0]!=0),oa+=16;ya>>=4,Xo=Xo>>1|ac<<7,Ri=(Ri<<8|Yr)>>>0}for(ic=ya,_s=Xo>>4,Ma=0;4>Ma;Ma+=2){for(Yr=0,ya=bn.la>>4+Ma,Xo=va.la>>4+Ma,ka=0;2>ka;++ka){for(ac=1&Xo,Bl=0;2>Bl;++Bl)ki=ac+(1&ya),ya=ya>>1|(ac=0<(ki=ah(Zn,Ln[2],ki,Hn.Qc,0,on,oa)))<<3,Yr=Yr<<2|(3<ki?3:1<ki?2:on[oa+0]!=0),oa+=16;ya>>=2,Xo=Xo>>1|ac<<5}Jr|=Yr<<4*Ma,ic|=ya<<4<<Ma,_s|=(240&Xo)<<Ma}bn.la=ic,va.la=_s,sr.Hc=Ri,sr.Gc=Jr,sr.ia=43690&Jr?0:Hn.ia,Ln=!(Ri|Jr)}if(0<_t.L&&(_t.wa[_t.Y+_t.ja]=_t.gd[qt.$b][qt.Za],_t.wa[_t.Y+_t.ja].La|=!Ln),pn.Ka)return _n(xt,7,"Premature end-of-file encountered.")}if(ni(xt),_t=hn,pn=1,qt=(gt=xt).D,bn=0<gt.L&&gt.M>=gt.zb&&gt.M<=gt.Va,gt.Aa==0)e:{if(qt.M=gt.M,qt.uc=bn,P0(gt,qt),pn=1,qt=(Yr=gt.D).Nb,bn=(Jr=ZC[gt.L])*gt.R,Zn=Jr/2*gt.B,ka=16*qt*gt.R,Bl=8*qt*gt.B,Ln=gt.sa,sr=gt.ta-bn+ka,Hn=gt.qa,on=gt.ra-Zn+Bl,oa=gt.Ha,va=gt.Ia-Zn+Bl,Xo=(ya=Yr.M)==0,Ri=ya>=gt.Va-1,gt.Aa==2&&P0(gt,Yr),Yr.uc)for(ac=(ki=gt).D.M,t(ki.D.uc),Yr=ki.yb;Yr<ki.Hb;++Yr){_s=Yr,ic=ac;var ss=(No=(no=ki).D).Nb;Ma=no.R;var No=No.wa[No.Y+_s],jl=no.sa,to=no.ta+16*ss*Ma+16*_s,Wu=No.dd,ol=No.tc;if(ol!=0)if(t(3<=ol),no.L==1)0<_s&&So(jl,to,Ma,ol+4),No.La&&th(jl,to,Ma,ol),0<ic&&wa(jl,to,Ma,ol+4),No.La&&Br(jl,to,Ma,ol);else{var lh=no.B,Pv=no.qa,Wm=no.ra+8*ss*lh+8*_s,Ym=no.Ha,no=no.Ia+8*ss*lh+8*_s;ss=No.ld,0<_s&&(aa(jl,to,Ma,ol+4,Wu,ss),Hm(Pv,Wm,Ym,no,lh,ol+4,Wu,ss)),No.La&&(nc(jl,to,Ma,ol,Wu,ss),ua(Pv,Wm,Ym,no,lh,ol,Wu,ss)),0<ic&&(po(jl,to,Ma,ol+4,Wu,ss),Jp(Pv,Wm,Ym,no,lh,ol+4,Wu,ss)),No.La&&($l(jl,to,Ma,ol,Wu,ss),eh(Pv,Wm,Ym,no,lh,ol,Wu,ss))}}if(gt.ia&&alert("todo:DitherRow"),_t.put!=null){if(Yr=16*ya,ya=16*(ya+1),Xo?(_t.y=gt.sa,_t.O=gt.ta+ka,_t.f=gt.qa,_t.N=gt.ra+Bl,_t.ea=gt.Ha,_t.W=gt.Ia+Bl):(Yr-=Jr,_t.y=Ln,_t.O=sr,_t.f=Hn,_t.N=on,_t.ea=oa,_t.W=va),Ri||(ya-=Jr),ya>_t.o&&(ya=_t.o),_t.F=null,_t.J=null,gt.Fa!=null&&0<gt.Fa.length&&Yr<ya&&(_t.J=K_(gt,_t,Yr,ya-Yr),_t.F=gt.mb,_t.F==null&&_t.F.length==0)){pn=_n(gt,3,"Could not decode alpha data.");break e}Yr<_t.j&&(Jr=_t.j-Yr,Yr=_t.j,t(!(1&Jr)),_t.O+=gt.R*Jr,_t.N+=gt.B*(Jr>>1),_t.W+=gt.B*(Jr>>1),_t.F!=null&&(_t.J+=_t.width*Jr)),Yr<ya&&(_t.O+=_t.v,_t.N+=_t.v>>1,_t.W+=_t.v>>1,_t.F!=null&&(_t.J+=_t.v),_t.ka=Yr-_t.j,_t.U=_t.va-_t.v,_t.T=ya-Yr,pn=_t.put(_t))}qt+1!=gt.Ic||Ri||(r(gt.sa,gt.ta-bn,Ln,sr+16*gt.R,bn),r(gt.qa,gt.ra-Zn,Hn,on+8*gt.B,Zn),r(gt.Ha,gt.Ia-Zn,oa,va+8*gt.B,Zn))}if(!pn)return _n(xt,6,"Output aborted.")}return 1}(V,X)),X.bc!=null&&X.bc(X),ie&=1}return ie?(V.cb=0,ie):0}function Un(V,X,ie,ve,Ie){Ie=V[X+ie+32*ve]+(Ie>>3),V[X+ie+32*ve]=-256&Ie?0>Ie?0:255:Ie}function hr(V,X,ie,ve,Ie,ke){Un(V,X,0,ie,ve+Ie),Un(V,X,1,ie,ve+ke),Un(V,X,2,ie,ve-ke),Un(V,X,3,ie,ve-Ie)}function Jn(V){return(20091*V>>16)+V}function lr(V,X,ie,ve){var Ie,ke=0,$e=a(16);for(Ie=0;4>Ie;++Ie){var Ue=V[X+0]+V[X+8],Ge=V[X+0]-V[X+8],Je=(35468*V[X+4]>>16)-Jn(V[X+12]),vt=Jn(V[X+4])+(35468*V[X+12]>>16);$e[ke+0]=Ue+vt,$e[ke+1]=Ge+Je,$e[ke+2]=Ge-Je,$e[ke+3]=Ue-vt,ke+=4,X++}for(Ie=ke=0;4>Ie;++Ie)Ue=(V=$e[ke+0]+4)+$e[ke+8],Ge=V-$e[ke+8],Je=(35468*$e[ke+4]>>16)-Jn($e[ke+12]),Un(ie,ve,0,0,Ue+(vt=Jn($e[ke+4])+(35468*$e[ke+12]>>16))),Un(ie,ve,1,0,Ge+Je),Un(ie,ve,2,0,Ge-Je),Un(ie,ve,3,0,Ue-vt),ke++,ve+=32}function On(V,X,ie,ve){var Ie=V[X+0]+4,ke=35468*V[X+4]>>16,$e=Jn(V[X+4]),Ue=35468*V[X+1]>>16;hr(ie,ve,0,Ie+$e,V=Jn(V[X+1]),Ue),hr(ie,ve,1,Ie+ke,V,Ue),hr(ie,ve,2,Ie-ke,V,Ue),hr(ie,ve,3,Ie-$e,V,Ue)}function Mn(V,X,ie,ve,Ie){lr(V,X,ie,ve),Ie&&lr(V,X+16,ie,ve+4)}function ri(V,X,ie,ve){Zt(V,X+0,ie,ve,1),Zt(V,X+32,ie,ve+128,1)}function Gi(V,X,ie,ve){var Ie;for(V=V[X+0]+4,Ie=0;4>Ie;++Ie)for(X=0;4>X;++X)Un(ie,ve,X,Ie,V)}function ma(V,X,ie,ve){V[X+0]&&Sr(V,X+0,ie,ve),V[X+16]&&Sr(V,X+16,ie,ve+4),V[X+32]&&Sr(V,X+32,ie,ve+128),V[X+48]&&Sr(V,X+48,ie,ve+128+4)}function Oa(V,X,ie,ve){var Ie,ke=a(16);for(Ie=0;4>Ie;++Ie){var $e=V[X+0+Ie]+V[X+12+Ie],Ue=V[X+4+Ie]+V[X+8+Ie],Ge=V[X+4+Ie]-V[X+8+Ie],Je=V[X+0+Ie]-V[X+12+Ie];ke[0+Ie]=$e+Ue,ke[8+Ie]=$e-Ue,ke[4+Ie]=Je+Ge,ke[12+Ie]=Je-Ge}for(Ie=0;4>Ie;++Ie)$e=(V=ke[0+4*Ie]+3)+ke[3+4*Ie],Ue=ke[1+4*Ie]+ke[2+4*Ie],Ge=ke[1+4*Ie]-ke[2+4*Ie],Je=V-ke[3+4*Ie],ie[ve+0]=$e+Ue>>3,ie[ve+16]=Je+Ge>>3,ie[ve+32]=$e-Ue>>3,ie[ve+48]=Je-Ge>>3,ve+=64}function La(V,X,ie){var ve,Ie=X-32,ke=Oc,$e=255-V[Ie-1];for(ve=0;ve<ie;++ve){var Ue,Ge=ke,Je=$e+V[X-1];for(Ue=0;Ue<ie;++Ue)V[X+Ue]=Ge[Je+V[Ie+Ue]];X+=32}}function rr(V,X){La(V,X,4)}function dr(V,X){La(V,X,8)}function xn(V,X){La(V,X,16)}function Yn(V,X){var ie;for(ie=0;16>ie;++ie)r(V,X+32*ie,V,X-32,16)}function ui(V,X){var ie;for(ie=16;0<ie;--ie)i(V,X,V[X-1],16),X+=32}function Va(V,X,ie){var ve;for(ve=0;16>ve;++ve)i(X,ie+32*ve,V,16)}function Sa(V,X){var ie,ve=16;for(ie=0;16>ie;++ie)ve+=V[X-1+32*ie]+V[X+ie-32];Va(ve>>5,V,X)}function Ea(V,X){var ie,ve=8;for(ie=0;16>ie;++ie)ve+=V[X-1+32*ie];Va(ve>>4,V,X)}function Ml(V,X){var ie,ve=8;for(ie=0;16>ie;++ie)ve+=V[X+ie-32];Va(ve>>4,V,X)}function Dl(V,X){Va(128,V,X)}function mr(V,X,ie){return V+2*X+ie+2>>2}function Ud(V,X){var ie,ve=X-32;for(ve=new Uint8Array([mr(V[ve-1],V[ve+0],V[ve+1]),mr(V[ve+0],V[ve+1],V[ve+2]),mr(V[ve+1],V[ve+2],V[ve+3]),mr(V[ve+2],V[ve+3],V[ve+4])]),ie=0;4>ie;++ie)r(V,X+32*ie,ve,0,ve.length)}function Iv(V,X){var ie=V[X-1],ve=V[X-1+32],Ie=V[X-1+64],ke=V[X-1+96];ae(V,X+0,16843009*mr(V[X-1-32],ie,ve)),ae(V,X+32,16843009*mr(ie,ve,Ie)),ae(V,X+64,16843009*mr(ve,Ie,ke)),ae(V,X+96,16843009*mr(Ie,ke,ke))}function Kn(V,X){var ie,ve=4;for(ie=0;4>ie;++ie)ve+=V[X+ie-32]+V[X-1+32*ie];for(ve>>=3,ie=0;4>ie;++ie)i(V,X+32*ie,ve,4)}function Ir(V,X){var ie=V[X-1+0],ve=V[X-1+32],Ie=V[X-1+64],ke=V[X-1-32],$e=V[X+0-32],Ue=V[X+1-32],Ge=V[X+2-32],Je=V[X+3-32];V[X+0+96]=mr(ve,Ie,V[X-1+96]),V[X+1+96]=V[X+0+64]=mr(ie,ve,Ie),V[X+2+96]=V[X+1+64]=V[X+0+32]=mr(ke,ie,ve),V[X+3+96]=V[X+2+64]=V[X+1+32]=V[X+0+0]=mr($e,ke,ie),V[X+3+64]=V[X+2+32]=V[X+1+0]=mr(Ue,$e,ke),V[X+3+32]=V[X+2+0]=mr(Ge,Ue,$e),V[X+3+0]=mr(Je,Ge,Ue)}function Ca(V,X){var ie=V[X+1-32],ve=V[X+2-32],Ie=V[X+3-32],ke=V[X+4-32],$e=V[X+5-32],Ue=V[X+6-32],Ge=V[X+7-32];V[X+0+0]=mr(V[X+0-32],ie,ve),V[X+1+0]=V[X+0+32]=mr(ie,ve,Ie),V[X+2+0]=V[X+1+32]=V[X+0+64]=mr(ve,Ie,ke),V[X+3+0]=V[X+2+32]=V[X+1+64]=V[X+0+96]=mr(Ie,ke,$e),V[X+3+32]=V[X+2+64]=V[X+1+96]=mr(ke,$e,Ue),V[X+3+64]=V[X+2+96]=mr($e,Ue,Ge),V[X+3+96]=mr(Ue,Ge,Ge)}function eo(V,X){var ie=V[X-1+0],ve=V[X-1+32],Ie=V[X-1+64],ke=V[X-1-32],$e=V[X+0-32],Ue=V[X+1-32],Ge=V[X+2-32],Je=V[X+3-32];V[X+0+0]=V[X+1+64]=ke+$e+1>>1,V[X+1+0]=V[X+2+64]=$e+Ue+1>>1,V[X+2+0]=V[X+3+64]=Ue+Ge+1>>1,V[X+3+0]=Ge+Je+1>>1,V[X+0+96]=mr(Ie,ve,ie),V[X+0+64]=mr(ve,ie,ke),V[X+0+32]=V[X+1+96]=mr(ie,ke,$e),V[X+1+32]=V[X+2+96]=mr(ke,$e,Ue),V[X+2+32]=V[X+3+96]=mr($e,Ue,Ge),V[X+3+32]=mr(Ue,Ge,Je)}function Pa(V,X){var ie=V[X+0-32],ve=V[X+1-32],Ie=V[X+2-32],ke=V[X+3-32],$e=V[X+4-32],Ue=V[X+5-32],Ge=V[X+6-32],Je=V[X+7-32];V[X+0+0]=ie+ve+1>>1,V[X+1+0]=V[X+0+64]=ve+Ie+1>>1,V[X+2+0]=V[X+1+64]=Ie+ke+1>>1,V[X+3+0]=V[X+2+64]=ke+$e+1>>1,V[X+0+32]=mr(ie,ve,Ie),V[X+1+32]=V[X+0+96]=mr(ve,Ie,ke),V[X+2+32]=V[X+1+96]=mr(Ie,ke,$e),V[X+3+32]=V[X+2+96]=mr(ke,$e,Ue),V[X+3+64]=mr($e,Ue,Ge),V[X+3+96]=mr(Ue,Ge,Je)}function Mm(V,X){var ie=V[X-1+0],ve=V[X-1+32],Ie=V[X-1+64],ke=V[X-1+96];V[X+0+0]=ie+ve+1>>1,V[X+2+0]=V[X+0+32]=ve+Ie+1>>1,V[X+2+32]=V[X+0+64]=Ie+ke+1>>1,V[X+1+0]=mr(ie,ve,Ie),V[X+3+0]=V[X+1+32]=mr(ve,Ie,ke),V[X+3+32]=V[X+1+64]=mr(Ie,ke,ke),V[X+3+64]=V[X+2+64]=V[X+0+96]=V[X+1+96]=V[X+2+96]=V[X+3+96]=ke}function Av(V,X){var ie=V[X-1+0],ve=V[X-1+32],Ie=V[X-1+64],ke=V[X-1+96],$e=V[X-1-32],Ue=V[X+0-32],Ge=V[X+1-32],Je=V[X+2-32];V[X+0+0]=V[X+2+32]=ie+$e+1>>1,V[X+0+32]=V[X+2+64]=ve+ie+1>>1,V[X+0+64]=V[X+2+96]=Ie+ve+1>>1,V[X+0+96]=ke+Ie+1>>1,V[X+3+0]=mr(Ue,Ge,Je),V[X+2+0]=mr($e,Ue,Ge),V[X+1+0]=V[X+3+32]=mr(ie,$e,Ue),V[X+1+32]=V[X+3+64]=mr(ve,ie,$e),V[X+1+64]=V[X+3+96]=mr(Ie,ve,ie),V[X+1+96]=mr(ke,Ie,ve)}function T0(V,X){var ie;for(ie=0;8>ie;++ie)r(V,X+32*ie,V,X-32,8)}function qi(V,X){var ie;for(ie=0;8>ie;++ie)i(V,X,V[X-1],8),X+=32}function ia(V,X,ie){var ve;for(ve=0;8>ve;++ve)i(X,ie+32*ve,V,8)}function Dm(V,X){var ie,ve=8;for(ie=0;8>ie;++ie)ve+=V[X+ie-32]+V[X-1+32*ie];ia(ve>>4,V,X)}function f4(V,X){var ie,ve=4;for(ie=0;8>ie;++ie)ve+=V[X+ie-32];ia(ve>>3,V,X)}function Rv(V,X){var ie,ve=4;for(ie=0;8>ie;++ie)ve+=V[X-1+32*ie];ia(ve>>3,V,X)}function q_(V,X){ia(128,V,X)}function I0(V,X,ie){var ve=V[X-ie],Ie=V[X+0],ke=3*(Ie-ve)+F0[1020+V[X-2*ie]-V[X+ie]],$e=t2[112+(ke+4>>3)];V[X-ie]=Oc[255+ve+t2[112+(ke+3>>3)]],V[X+0]=Oc[255+Ie-$e]}function jC(V,X,ie,ve){var Ie=V[X+0],ke=V[X+ie];return rc[255+V[X-2*ie]-V[X-ie]]>ve||rc[255+ke-Ie]>ve}function W_(V,X,ie,ve){return 4*rc[255+V[X-ie]-V[X+0]]+rc[255+V[X-2*ie]-V[X+ie]]<=ve}function zC(V,X,ie,ve,Ie){var ke=V[X-3*ie],$e=V[X-2*ie],Ue=V[X-ie],Ge=V[X+0],Je=V[X+ie],vt=V[X+2*ie],$t=V[X+3*ie];return 4*rc[255+Ue-Ge]+rc[255+$e-Je]>ve?0:rc[255+V[X-4*ie]-ke]<=Ie&&rc[255+ke-$e]<=Ie&&rc[255+$e-Ue]<=Ie&&rc[255+$t-vt]<=Ie&&rc[255+vt-Je]<=Ie&&rc[255+Je-Ge]<=Ie}function bs(V,X,ie,ve){var Ie=2*ve+1;for(ve=0;16>ve;++ve)W_(V,X+ve,ie,Ie)&&I0(V,X+ve,ie)}function Hd(V,X,ie,ve){var Ie=2*ve+1;for(ve=0;16>ve;++ve)W_(V,X+ve*ie,1,Ie)&&I0(V,X+ve*ie,1)}function Rc(V,X,ie,ve){var Ie;for(Ie=3;0<Ie;--Ie)bs(V,X+=4*ie,ie,ve)}function UC(V,X,ie,ve){var Ie;for(Ie=3;0<Ie;--Ie)Hd(V,X+=4,ie,ve)}function jf(V,X,ie,ve,Ie,ke,$e,Ue){for(ke=2*ke+1;0<Ie--;){if(zC(V,X,ie,ke,$e))if(jC(V,X,ie,Ue))I0(V,X,ie);else{var Ge=V,Je=X,vt=ie,$t=Ge[Je-2*vt],Ft=Ge[Je-vt],xt=Ge[Je+0],hn=Ge[Je+vt],qt=Ge[Je+2*vt],gt=27*(pn=F0[1020+3*(xt-Ft)+F0[1020+$t-hn]])+63>>7,_t=18*pn+63>>7,pn=9*pn+63>>7;Ge[Je-3*vt]=Oc[255+Ge[Je-3*vt]+pn],Ge[Je-2*vt]=Oc[255+$t+_t],Ge[Je-vt]=Oc[255+Ft+gt],Ge[Je+0]=Oc[255+xt-gt],Ge[Je+vt]=Oc[255+hn-_t],Ge[Je+2*vt]=Oc[255+qt-pn]}X+=ve}}function Wo(V,X,ie,ve,Ie,ke,$e,Ue){for(ke=2*ke+1;0<Ie--;){if(zC(V,X,ie,ke,$e))if(jC(V,X,ie,Ue))I0(V,X,ie);else{var Ge=V,Je=X,vt=ie,$t=Ge[Je-vt],Ft=Ge[Je+0],xt=Ge[Je+vt],hn=t2[112+((qt=3*(Ft-$t))+4>>3)],qt=t2[112+(qt+3>>3)],gt=hn+1>>1;Ge[Je-2*vt]=Oc[255+Ge[Je-2*vt]+gt],Ge[Je-vt]=Oc[255+$t+qt],Ge[Je+0]=Oc[255+Ft-hn],Ge[Je+vt]=Oc[255+xt-gt]}X+=ve}}function A0(V,X,ie,ve,Ie,ke){jf(V,X,ie,1,16,ve,Ie,ke)}function $m(V,X,ie,ve,Ie,ke){jf(V,X,1,ie,16,ve,Ie,ke)}function HC(V,X,ie,ve,Ie,ke){var $e;for($e=3;0<$e;--$e)Wo(V,X+=4*ie,ie,1,16,ve,Ie,ke)}function Nv(V,X,ie,ve,Ie,ke){var $e;for($e=3;0<$e;--$e)Wo(V,X+=4,1,ie,16,ve,Ie,ke)}function VC(V,X,ie,ve,Ie,ke,$e,Ue){jf(V,X,Ie,1,8,ke,$e,Ue),jf(ie,ve,Ie,1,8,ke,$e,Ue)}function R0(V,X,ie,ve,Ie,ke,$e,Ue){jf(V,X,1,Ie,8,ke,$e,Ue),jf(ie,ve,1,Ie,8,ke,$e,Ue)}function El(V,X,ie,ve,Ie,ke,$e,Ue){Wo(V,X+4*Ie,Ie,1,8,ke,$e,Ue),Wo(ie,ve+4*Ie,Ie,1,8,ke,$e,Ue)}function GC(V,X,ie,ve,Ie,ke,$e,Ue){Wo(V,X+4,1,Ie,8,ke,$e,Ue),Wo(ie,ve+4,1,Ie,8,ke,$e,Ue)}function Cl(){this.ba=new tn,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Dt,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function Y_(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function N0(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Vd(){this.ua=0,this.Wa=new oe,this.vb=new oe,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new L,this.yc=new N}function O0(){this.xb=this.a=0,this.l=new Gt,this.ca=new tn,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new k,this.Pb=0,this.wd=new k,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Vd,this.ab=0,this.gc=o(4,N0),this.Oc=0}function Fm(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Gt,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function ga(V,X,ie,ve,Ie,ke,$e){for(V=V==null?0:V[X+0],X=0;X<$e;++X)Ie[ke+X]=V+ie[ve+X]&255,V=Ie[ke+X]}function Hu(V,X,ie,ve,Ie,ke,$e){var Ue;if(V==null)ga(null,null,ie,ve,Ie,ke,$e);else for(Ue=0;Ue<$e;++Ue)Ie[ke+Ue]=V[X+Ue]+ie[ve+Ue]&255}function zf(V,X,ie,ve,Ie,ke,$e){if(V==null)ga(null,null,ie,ve,Ie,ke,$e);else{var Ue,Ge=V[X+0],Je=Ge,vt=Ge;for(Ue=0;Ue<$e;++Ue)Je=vt+(Ge=V[X+Ue])-Je,vt=ie[ve+Ue]+(-256&Je?0>Je?0:255:Je)&255,Je=Ge,Ie[ke+Ue]=vt}}function K_(V,X,ie,ve){var Ie=X.width,ke=X.o;if(t(V!=null&&X!=null),0>ie||0>=ve||ie+ve>ke)return null;if(!V.Cc){if(V.ga==null){var $e;if(V.ga=new Fm,($e=V.ga==null)||($e=X.width*X.o,t(V.Gb.length==0),V.Gb=a($e),V.Uc=0,V.Gb==null?$e=0:(V.mb=V.Gb,V.nb=V.Uc,V.rc=null,$e=1),$e=!$e),!$e){$e=V.ga;var Ue=V.Fa,Ge=V.P,Je=V.qc,vt=V.mb,$t=V.nb,Ft=Ge+1,xt=Je-1,hn=$e.l;if(t(Ue!=null&&vt!=null&&X!=null),qu[0]=null,qu[1]=ga,qu[2]=Hu,qu[3]=zf,$e.ca=vt,$e.tb=$t,$e.c=X.width,$e.i=X.height,t(0<$e.c&&0<$e.i),1>=Je)X=0;else if($e.$a=Ue[Ge+0]>>0&3,$e.Z=Ue[Ge+0]>>2&3,$e.Lc=Ue[Ge+0]>>4&3,Ge=Ue[Ge+0]>>6&3,0>$e.$a||1<$e.$a||4<=$e.Z||1<$e.Lc||Ge)X=0;else if(hn.put=Vt,hn.ac=Jt,hn.bc=pt,hn.ma=$e,hn.width=X.width,hn.height=X.height,hn.Da=X.Da,hn.v=X.v,hn.va=X.va,hn.j=X.j,hn.o=X.o,$e.$a)e:{t($e.$a==1),X=An();t:for(;;){if(X==null){X=0;break e}if(t($e!=null),$e.mc=X,X.c=$e.c,X.i=$e.i,X.l=$e.l,X.l.ma=$e,X.l.width=$e.c,X.l.height=$e.i,X.a=0,U(X.m,Ue,Ft,xt),!nr($e.c,$e.i,1,X,null)||(X.ab==1&&X.gc[0].hc==3&&fn(X.s)?($e.ic=1,Ue=X.c*X.i,X.Ta=null,X.Ua=0,X.V=a(Ue),X.Ba=0,X.V==null?(X.a=1,X=0):X=1):($e.ic=0,X=un(X,$e.c)),!X))break t;X=1;break e}$e.mc=null,X=0}else X=xt>=$e.c*$e.i;$e=!X}if($e)return null;V.ga.Lc!=1?V.Ga=0:ve=ke-ie}t(V.ga!=null),t(ie+ve<=ke);e:{if(X=(Ue=V.ga).c,ke=Ue.l.o,Ue.$a==0){if(Ft=V.rc,xt=V.Vc,hn=V.Fa,Ge=V.P+1+ie*X,Je=V.mb,vt=V.nb+ie*X,t(Ge<=V.P+V.qc),Ue.Z!=0)for(t(qu[Ue.Z]!=null),$e=0;$e<ve;++$e)qu[Ue.Z](Ft,xt,hn,Ge,Je,vt,X),Ft=Je,xt=vt,vt+=X,Ge+=X;else for($e=0;$e<ve;++$e)r(Je,vt,hn,Ge,X),Ft=Je,xt=vt,vt+=X,Ge+=X;V.rc=Ft,V.Vc=xt}else{if(t(Ue.mc!=null),X=ie+ve,t(($e=Ue.mc)!=null),t(X<=$e.i),$e.C>=X)X=1;else if(Ue.ic||Nt(),Ue.ic){Ue=$e.V,Ft=$e.Ba,xt=$e.c;var qt=$e.i,gt=(hn=1,Ge=$e.$/xt,Je=$e.$%xt,vt=$e.m,$t=$e.s,$e.$),_t=xt*qt,pn=xt*X,bn=$t.wc,on=gt<pn?nn($t,Je,Ge):null;t(gt<=_t),t(X<=qt),t(fn($t));t:for(;;){for(;!vt.h&&gt<pn;){if(Je&bn||(on=nn($t,Je,Ge)),t(on!=null),W(vt),256>(qt=St(on.G[0],on.H[0],vt)))Ue[Ft+gt]=qt,++gt,++Je>=xt&&(Je=0,++Ge<=X&&!(Ge%16)&&Ht($e,Ge));else{if(!(280>qt)){hn=0;break t}qt=dt(qt-256,vt);var Zn,Ln=St(on.G[4],on.H[4],vt);if(W(vt),!(gt>=(Ln=Et(xt,Ln=dt(Ln,vt)))&&_t-gt>=qt)){hn=0;break t}for(Zn=0;Zn<qt;++Zn)Ue[Ft+gt+Zn]=Ue[Ft+gt+Zn-Ln];for(gt+=qt,Je+=qt;Je>=xt;)Je-=xt,++Ge<=X&&!(Ge%16)&&Ht($e,Ge);gt<pn&&Je&bn&&(on=nn($t,Je,Ge))}t(vt.h==G(vt))}Ht($e,Ge>X?X:Ge);break t}!hn||vt.h&&gt<_t?(hn=0,$e.a=vt.h?5:3):$e.$=gt,X=hn}else X=mn($e,$e.V,$e.Ba,$e.c,$e.i,X,et);if(!X){ve=0;break e}}ie+ve>=ke&&(V.Cc=1),ve=1}if(!ve)return null;if(V.Cc&&((ve=V.ga)!=null&&(ve.mc=null),V.ga=null,0<V.Ga))return alert("todo:WebPDequantizeLevels"),null}return V.nb+ie*Ie}function ne(V,X,ie,ve,Ie,ke){for(;0<Ie--;){var $e,Ue=V,Ge=X+(ie?1:0),Je=V,vt=X+(ie?0:3);for($e=0;$e<ve;++$e){var $t=Je[vt+4*$e];$t!=255&&($t*=32897,Ue[Ge+4*$e+0]=Ue[Ge+4*$e+0]*$t>>23,Ue[Ge+4*$e+1]=Ue[Ge+4*$e+1]*$t>>23,Ue[Ge+4*$e+2]=Ue[Ge+4*$e+2]*$t>>23)}X+=ke}}function Ne(V,X,ie,ve,Ie){for(;0<ve--;){var ke;for(ke=0;ke<ie;++ke){var $e=V[X+2*ke+0],Ue=15&(Je=V[X+2*ke+1]),Ge=4369*Ue,Je=(240&Je|Je>>4)*Ge>>16;V[X+2*ke+0]=(240&$e|$e>>4)*Ge>>16&240|(15&$e|$e<<4)*Ge>>16>>4&15,V[X+2*ke+1]=240&Je|Ue}X+=Ie}}function ot(V,X,ie,ve,Ie,ke,$e,Ue){var Ge,Je,vt=255;for(Je=0;Je<Ie;++Je){for(Ge=0;Ge<ve;++Ge){var $t=V[X+Ge];ke[$e+4*Ge]=$t,vt&=$t}X+=ie,$e+=Ue}return vt!=255}function ht(V,X,ie,ve,Ie){var ke;for(ke=0;ke<Ie;++ke)ie[ve+ke]=V[X+ke]>>8}function Nt(){nh=ne,rh=Ne,WC=ot,k8=ht}function Yt(V,X,ie){T[V]=function(ve,Ie,ke,$e,Ue,Ge,Je,vt,$t,Ft,xt,hn,qt,gt,_t,pn,bn){var on,Zn=bn-1>>1,Ln=Ue[Ge+0]|Je[vt+0]<<16,sr=$t[Ft+0]|xt[hn+0]<<16;t(ve!=null);var Hn=3*Ln+sr+131074>>2;for(X(ve[Ie+0],255&Hn,Hn>>16,qt,gt),ke!=null&&(Hn=3*sr+Ln+131074>>2,X(ke[$e+0],255&Hn,Hn>>16,_t,pn)),on=1;on<=Zn;++on){var oa=Ue[Ge+on]|Je[vt+on]<<16,va=$t[Ft+on]|xt[hn+on]<<16,Ri=Ln+oa+sr+va+524296,Jr=Ri+2*(oa+sr)>>3;Hn=Jr+Ln>>1,Ln=(Ri=Ri+2*(Ln+va)>>3)+oa>>1,X(ve[Ie+2*on-1],255&Hn,Hn>>16,qt,gt+(2*on-1)*ie),X(ve[Ie+2*on-0],255&Ln,Ln>>16,qt,gt+(2*on-0)*ie),ke!=null&&(Hn=Ri+sr>>1,Ln=Jr+va>>1,X(ke[$e+2*on-1],255&Hn,Hn>>16,_t,pn+(2*on-1)*ie),X(ke[$e+2*on+0],255&Ln,Ln>>16,_t,pn+(2*on+0)*ie)),Ln=oa,sr=va}1&bn||(Hn=3*Ln+sr+131074>>2,X(ve[Ie+bn-1],255&Hn,Hn>>16,qt,gt+(bn-1)*ie),ke!=null&&(Hn=3*sr+Ln+131074>>2,X(ke[$e+bn-1],255&Hn,Hn>>16,_t,pn+(bn-1)*ie)))}}function En(){ou[n2]=Ve,ou[Vm]=o2,ou[Gm]=G0,ou[Lv]=su,ou[YC]=Ai,ou[h4]=j8,ou[D8]=JH,ou[B0]=o2,ou[j0]=su,ou[z0]=Ai,ou[m4]=j8}function Qn(V){return V&~eV?0>V?0:255:V>>z8}function _r(V,X){return Qn((19077*V>>8)+(26149*X>>8)-14234)}function Xr(V,X,ie){return Qn((19077*V>>8)-(6419*X>>8)-(13320*ie>>8)+8708)}function ii(V,X){return Qn((19077*V>>8)+(33050*X>>8)-17685)}function Pi(V,X,ie,ve,Ie){ve[Ie+0]=_r(V,ie),ve[Ie+1]=Xr(V,X,ie),ve[Ie+2]=ii(V,X)}function _o(V,X,ie,ve,Ie){ve[Ie+0]=ii(V,X),ve[Ie+1]=Xr(V,X,ie),ve[Ie+2]=_r(V,ie)}function Yo(V,X,ie,ve,Ie){var ke=Xr(V,X,ie);X=ke<<3&224|ii(V,X)>>3,ve[Ie+0]=248&_r(V,ie)|ke>>5,ve[Ie+1]=X}function Ko(V,X,ie,ve,Ie){var ke=240&ii(V,X)|15;ve[Ie+0]=240&_r(V,ie)|Xr(V,X,ie)>>4,ve[Ie+1]=ke}function il(V,X,ie,ve,Ie){ve[Ie+0]=255,Pi(V,X,ie,ve,Ie+1)}function al(V,X,ie,ve,Ie){_o(V,X,ie,ve,Ie),ve[Ie+3]=255}function Vu(V,X,ie,ve,Ie){Pi(V,X,ie,ve,Ie),ve[Ie+3]=255}function fo(V,X){return 0>V?0:V>X?X:V}function Gd(V,X,ie){T[V]=function(ve,Ie,ke,$e,Ue,Ge,Je,vt,$t){for(var Ft=vt+(-2&$t)*ie;vt!=Ft;)X(ve[Ie+0],ke[$e+0],Ue[Ge+0],Je,vt),X(ve[Ie+1],ke[$e+0],Ue[Ge+0],Je,vt+ie),Ie+=2,++$e,++Ge,vt+=2*ie;1&$t&&X(ve[Ie+0],ke[$e+0],Ue[Ge+0],Je,vt)}}function Bm(V,X,ie){return ie==0?V==0?X==0?6:5:X==0?4:0:ie}function L0(V,X,ie,ve,Ie){switch(V>>>30){case 3:Zt(X,ie,ve,Ie,0);break;case 2:jt(X,ie,ve,Ie);break;case 1:Sr(X,ie,ve,Ie)}}function P0(V,X){var ie,ve,Ie=X.M,ke=X.Nb,$e=V.oc,Ue=V.pc+40,Ge=V.oc,Je=V.pc+584,vt=V.oc,$t=V.pc+600;for(ie=0;16>ie;++ie)$e[Ue+32*ie-1]=129;for(ie=0;8>ie;++ie)Ge[Je+32*ie-1]=129,vt[$t+32*ie-1]=129;for(0<Ie?$e[Ue-1-32]=Ge[Je-1-32]=vt[$t-1-32]=129:(i($e,Ue-32-1,127,21),i(Ge,Je-32-1,127,9),i(vt,$t-32-1,127,9)),ve=0;ve<V.za;++ve){var Ft=X.ya[X.aa+ve];if(0<ve){for(ie=-1;16>ie;++ie)r($e,Ue+32*ie-4,$e,Ue+32*ie+12,4);for(ie=-1;8>ie;++ie)r(Ge,Je+32*ie-4,Ge,Je+32*ie+4,4),r(vt,$t+32*ie-4,vt,$t+32*ie+4,4)}var xt=V.Gd,hn=V.Hd+ve,qt=Ft.ad,gt=Ft.Hc;if(0<Ie&&(r($e,Ue-32,xt[hn].y,0,16),r(Ge,Je-32,xt[hn].f,0,8),r(vt,$t-32,xt[hn].ea,0,8)),Ft.Za){var _t=$e,pn=Ue-32+16;for(0<Ie&&(ve>=V.za-1?i(_t,pn,xt[hn].y[15],4):r(_t,pn,xt[hn+1].y,0,4)),ie=0;4>ie;ie++)_t[pn+128+ie]=_t[pn+256+ie]=_t[pn+384+ie]=_t[pn+0+ie];for(ie=0;16>ie;++ie,gt<<=2)_t=$e,pn=Ue+Gf[ie],Xd[Ft.Ob[ie]](_t,pn),L0(gt,qt,16*+ie,_t,pn)}else if(_t=Bm(ve,Ie,Ft.Ob[0]),qm[_t]($e,Ue),gt!=0)for(ie=0;16>ie;++ie,gt<<=2)L0(gt,qt,16*+ie,$e,Ue+Gf[ie]);for(ie=Ft.Gc,_t=Bm(ve,Ie,Ft.Dd),oh[_t](Ge,Je),oh[_t](vt,$t),gt=qt,_t=Ge,pn=Je,255&(Ft=ie>>0)&&(170&Ft?Gn(gt,256,_t,pn):yi(gt,256,_t,pn)),Ft=vt,gt=$t,255&(ie>>=8)&&(170&ie?Gn(qt,320,Ft,gt):yi(qt,320,Ft,gt)),Ie<V.Ub-1&&(r(xt[hn].y,0,$e,Ue+480,16),r(xt[hn].f,0,Ge,Je+224,8),r(xt[hn].ea,0,vt,$t+224,8)),ie=8*ke*V.B,xt=V.sa,hn=V.ta+16*ve+16*ke*V.R,qt=V.qa,Ft=V.ra+8*ve+ie,gt=V.Ha,_t=V.Ia+8*ve+ie,ie=0;16>ie;++ie)r(xt,hn+ie*V.R,$e,Ue+32*ie,16);for(ie=0;8>ie;++ie)r(qt,Ft+ie*V.B,Ge,Je+32*ie,8),r(gt,_t+ie*V.B,vt,$t+32*ie,8)}}function k0(V,X,ie,ve,Ie,ke,$e,Ue,Ge){var Je=[0],vt=[0],$t=0,Ft=Ge!=null?Ge.kd:0,xt=Ge??new Y_;if(V==null||12>ie)return 7;xt.data=V,xt.w=X,xt.ha=ie,X=[X],ie=[ie],xt.gb=[xt.gb];e:{var hn=X,qt=ie,gt=xt.gb;if(t(V!=null),t(qt!=null),t(gt!=null),gt[0]=0,12<=qt[0]&&!n(V,hn[0],"RIFF")){if(n(V,hn[0]+8,"WEBP")){gt=3;break e}var _t=de(V,hn[0]+4);if(12>_t||4294967286<_t){gt=3;break e}if(Ft&&_t>qt[0]-8){gt=7;break e}gt[0]=_t,hn[0]+=12,qt[0]-=12}gt=0}if(gt!=0)return gt;for(_t=0<xt.gb[0],ie=ie[0];;){e:{var pn=V;qt=X,gt=ie;var bn=Je,on=vt,Zn=hn=[0];if((Hn=$t=[$t])[0]=0,8>gt[0])gt=7;else{if(!n(pn,qt[0],"VP8X")){if(de(pn,qt[0]+4)!=10){gt=3;break e}if(18>gt[0]){gt=7;break e}var Ln=de(pn,qt[0]+8),sr=1+ue(pn,qt[0]+12);if(2147483648<=sr*(pn=1+ue(pn,qt[0]+15))){gt=3;break e}Zn!=null&&(Zn[0]=Ln),bn!=null&&(bn[0]=sr),on!=null&&(on[0]=pn),qt[0]+=18,gt[0]-=18,Hn[0]=1}gt=0}}if($t=$t[0],hn=hn[0],gt!=0)return gt;if(qt=!!(2&hn),!_t&&$t)return 3;if(ke!=null&&(ke[0]=!!(16&hn)),$e!=null&&($e[0]=qt),Ue!=null&&(Ue[0]=0),$e=Je[0],hn=vt[0],$t&&qt&&Ge==null){gt=0;break}if(4>ie){gt=7;break}if(_t&&$t||!_t&&!$t&&!n(V,X[0],"ALPH")){ie=[ie],xt.na=[xt.na],xt.P=[xt.P],xt.Sa=[xt.Sa];e:{Ln=V,gt=X,_t=ie;var Hn=xt.gb;bn=xt.na,on=xt.P,Zn=xt.Sa,sr=22,t(Ln!=null),t(_t!=null),pn=gt[0];var oa=_t[0];for(t(bn!=null),t(Zn!=null),bn[0]=null,on[0]=null,Zn[0]=0;;){if(gt[0]=pn,_t[0]=oa,8>oa){gt=7;break e}var va=de(Ln,pn+4);if(4294967286<va){gt=3;break e}var Ri=8+va+1&-2;if(sr+=Ri,0<Hn&&sr>Hn){gt=3;break e}if(!n(Ln,pn,"VP8 ")||!n(Ln,pn,"VP8L")){gt=0;break e}if(oa[0]<Ri){gt=7;break e}n(Ln,pn,"ALPH")||(bn[0]=Ln,on[0]=pn+8,Zn[0]=va),pn+=Ri,oa-=Ri}}if(ie=ie[0],xt.na=xt.na[0],xt.P=xt.P[0],xt.Sa=xt.Sa[0],gt!=0)break}ie=[ie],xt.Ja=[xt.Ja],xt.xa=[xt.xa];e:if(Hn=V,gt=X,_t=ie,bn=xt.gb[0],on=xt.Ja,Zn=xt.xa,Ln=gt[0],pn=!n(Hn,Ln,"VP8 "),sr=!n(Hn,Ln,"VP8L"),t(Hn!=null),t(_t!=null),t(on!=null),t(Zn!=null),8>_t[0])gt=7;else{if(pn||sr){if(Hn=de(Hn,Ln+4),12<=bn&&Hn>bn-12){gt=3;break e}if(Ft&&Hn>_t[0]-8){gt=7;break e}on[0]=Hn,gt[0]+=8,_t[0]-=8,Zn[0]=sr}else Zn[0]=5<=_t[0]&&Hn[Ln+0]==47&&!(Hn[Ln+4]>>5),on[0]=_t[0];gt=0}if(ie=ie[0],xt.Ja=xt.Ja[0],xt.xa=xt.xa[0],X=X[0],gt!=0)break;if(4294967286<xt.Ja)return 3;if(Ue==null||qt||(Ue[0]=xt.xa?2:1),$e=[$e],hn=[hn],xt.xa){if(5>ie){gt=7;break}Ue=$e,Ft=hn,qt=ke,V==null||5>ie?V=0:5<=ie&&V[X+0]==47&&!(V[X+4]>>5)?(_t=[0],Hn=[0],bn=[0],U(on=new k,V,X,ie),tt(on,_t,Hn,bn)?(Ue!=null&&(Ue[0]=_t[0]),Ft!=null&&(Ft[0]=Hn[0]),qt!=null&&(qt[0]=bn[0]),V=1):V=0):V=0}else{if(10>ie){gt=7;break}Ue=hn,V==null||10>ie||!Fn(V,X+3,ie-3)?V=0:(Ft=V[X+0]|V[X+1]<<8|V[X+2]<<16,qt=16383&(V[X+7]<<8|V[X+6]),V=16383&(V[X+9]<<8|V[X+8]),1&Ft||3<(Ft>>1&7)||!(Ft>>4&1)||Ft>>5>=xt.Ja||!qt||!V?V=0:($e&&($e[0]=qt),Ue&&(Ue[0]=V),V=1))}if(!V||($e=$e[0],hn=hn[0],$t&&(Je[0]!=$e||vt[0]!=hn)))return 3;Ge!=null&&(Ge[0]=xt,Ge.offset=X-Ge.w,t(4294967286>X-Ge.w),t(Ge.offset==Ge.ha-ie));break}return gt==0||gt==7&&$t&&Ge==null?(ke!=null&&(ke[0]|=xt.na!=null&&0<xt.na.length),ve!=null&&(ve[0]=$e),Ie!=null&&(Ie[0]=hn),0):gt}function X_(V,X,ie){var ve=X.width,Ie=X.height,ke=0,$e=0,Ue=ve,Ge=Ie;if(X.Da=V!=null&&0<V.Da,X.Da&&(Ue=V.cd,Ge=V.bd,ke=V.v,$e=V.j,11>ie||(ke&=-2,$e&=-2),0>ke||0>$e||0>=Ue||0>=Ge||ke+Ue>ve||$e+Ge>Ie))return 0;if(X.v=ke,X.j=$e,X.va=ke+Ue,X.o=$e+Ge,X.U=Ue,X.T=Ge,X.da=V!=null&&0<V.da,X.da){if(!Ee(Ue,Ge,ie=[V.ib],ke=[V.hb]))return 0;X.ib=ie[0],X.hb=ke[0]}return X.ob=V!=null&&V.ob,X.Kb=V==null||!V.Sd,X.da&&(X.ob=X.ib<3*ve/4&&X.hb<3*Ie/4,X.Kb=0),1}function Z_(V){if(V==null)return 2;if(11>V.S){var X=V.f.RGBA;X.fb+=(V.height-1)*X.A,X.A=-X.A}else X=V.f.kb,V=V.height,X.O+=(V-1)*X.fa,X.fa=-X.fa,X.N+=(V-1>>1)*X.Ab,X.Ab=-X.Ab,X.W+=(V-1>>1)*X.Db,X.Db=-X.Db,X.F!=null&&(X.J+=(V-1)*X.lb,X.lb=-X.lb);return 0}function M0(V,X,ie,ve){if(ve==null||0>=V||0>=X)return 2;if(ie!=null){if(ie.Da){var Ie=ie.cd,ke=ie.bd,$e=-2&ie.v,Ue=-2&ie.j;if(0>$e||0>Ue||0>=Ie||0>=ke||$e+Ie>V||Ue+ke>X)return 2;V=Ie,X=ke}if(ie.da){if(!Ee(V,X,Ie=[ie.ib],ke=[ie.hb]))return 2;V=Ie[0],X=ke[0]}}ve.width=V,ve.height=X;e:{var Ge=ve.width,Je=ve.height;if(V=ve.S,0>=Ge||0>=Je||!(V>=n2&&13>V))V=2;else{if(0>=ve.Rd&&ve.sd==null){$e=ke=Ie=X=0;var vt=(Ue=Ge*H8[V])*Je;if(11>V||(ke=(Je+1)/2*(X=(Ge+1)/2),V==12&&($e=(Ie=Ge)*Je)),(Je=a(vt+2*ke+$e))==null){V=1;break e}ve.sd=Je,11>V?((Ge=ve.f.RGBA).eb=Je,Ge.fb=0,Ge.A=Ue,Ge.size=vt):((Ge=ve.f.kb).y=Je,Ge.O=0,Ge.fa=Ue,Ge.Fd=vt,Ge.f=Je,Ge.N=0+vt,Ge.Ab=X,Ge.Cd=ke,Ge.ea=Je,Ge.W=0+vt+ke,Ge.Db=X,Ge.Ed=ke,V==12&&(Ge.F=Je,Ge.J=0+vt+2*ke),Ge.Tc=$e,Ge.lb=Ie)}if(X=1,Ie=ve.S,ke=ve.width,$e=ve.height,Ie>=n2&&13>Ie)if(11>Ie)V=ve.f.RGBA,X&=(Ue=Math.abs(V.A))*($e-1)+ke<=V.size,X&=Ue>=ke*H8[Ie],X&=V.eb!=null;else{V=ve.f.kb,Ue=(ke+1)/2,vt=($e+1)/2,Ge=Math.abs(V.fa),Je=Math.abs(V.Ab);var $t=Math.abs(V.Db),Ft=Math.abs(V.lb),xt=Ft*($e-1)+ke;X&=Ge*($e-1)+ke<=V.Fd,X&=Je*(vt-1)+Ue<=V.Cd,X=(X&=$t*(vt-1)+Ue<=V.Ed)&Ge>=ke&Je>=Ue&$t>=Ue,X&=V.y!=null,X&=V.f!=null,X&=V.ea!=null,Ie==12&&(X&=Ft>=ke,X&=xt<=V.Tc,X&=V.F!=null)}else X=0;V=X?0:2}}return V!=0||ie!=null&&ie.fd&&(V=Z_(ve)),V}var Nc=64,qd=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],D0=24,$0=32,Ov=8,tc=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];ye("Predictor0","PredictorAdd0"),T.Predictor0=function(){return 4278190080},T.Predictor1=function(V){return V},T.Predictor2=function(V,X,ie){return X[ie+0]},T.Predictor3=function(V,X,ie){return X[ie+1]},T.Predictor4=function(V,X,ie){return X[ie-1]},T.Predictor5=function(V,X,ie){return _e(_e(V,X[ie+1]),X[ie+0])},T.Predictor6=function(V,X,ie){return _e(V,X[ie-1])},T.Predictor7=function(V,X,ie){return _e(V,X[ie+0])},T.Predictor8=function(V,X,ie){return _e(X[ie-1],X[ie+0])},T.Predictor9=function(V,X,ie){return _e(X[ie+0],X[ie+1])},T.Predictor10=function(V,X,ie){return _e(_e(V,X[ie-1]),_e(X[ie+0],X[ie+1]))},T.Predictor11=function(V,X,ie){var ve=X[ie+0];return 0>=De(ve>>24&255,V>>24&255,(X=X[ie-1])>>24&255)+De(ve>>16&255,V>>16&255,X>>16&255)+De(ve>>8&255,V>>8&255,X>>8&255)+De(255&ve,255&V,255&X)?ve:V},T.Predictor12=function(V,X,ie){var ve=X[ie+0];return(Te((V>>24&255)+(ve>>24&255)-((X=X[ie-1])>>24&255))<<24|Te((V>>16&255)+(ve>>16&255)-(X>>16&255))<<16|Te((V>>8&255)+(ve>>8&255)-(X>>8&255))<<8|Te((255&V)+(255&ve)-(255&X)))>>>0},T.Predictor13=function(V,X,ie){var ve=X[ie-1];return(xe((V=_e(V,X[ie+0]))>>24&255,ve>>24&255)<<24|xe(V>>16&255,ve>>16&255)<<16|xe(V>>8&255,ve>>8&255)<<8|xe(V>>0&255,ve>>0&255))>>>0};var Uf=T.PredictorAdd0;T.PredictorAdd1=Pe,ye("Predictor2","PredictorAdd2"),ye("Predictor3","PredictorAdd3"),ye("Predictor4","PredictorAdd4"),ye("Predictor5","PredictorAdd5"),ye("Predictor6","PredictorAdd6"),ye("Predictor7","PredictorAdd7"),ye("Predictor8","PredictorAdd8"),ye("Predictor9","PredictorAdd9"),ye("Predictor10","PredictorAdd10"),ye("Predictor11","PredictorAdd11"),ye("Predictor12","PredictorAdd12"),ye("Predictor13","PredictorAdd13");var jm=T.PredictorAdd2;je("ColorIndexInverseTransform","MapARGB","32b",function(V){return V>>8&255},function(V){return V}),je("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(V){return V},function(V){return V>>8&255});var qC,Wd=T.ColorIndexInverseTransform,Q_=T.MapARGB,zm=T.VP8LColorIndexInverseTransformAlpha,au=T.MapAlpha,Zp=T.VP8LPredictorsAdd=[];Zp.length=16,(T.VP8LPredictors=[]).length=16,(T.VP8LPredictorsAdd_C=[]).length=16,(T.VP8LPredictors_C=[]).length=16;var Gu,Yd,Um,Hf,Qp,Kd,bt,Zt,jt,Gn,Sr,yi,po,aa,Jp,Hm,$l,nc,eh,ua,wa,So,Br,th,nh,rh,WC,k8,M8=a(511),J_=a(2041),ih=a(225),e2=a(767),p4=0,F0=J_,t2=ih,Oc=e2,rc=M8,n2=0,Vm=1,Gm=2,Lv=3,YC=4,h4=5,D8=6,B0=7,j0=8,z0=9,m4=10,$8=[2,3,7],YH=[3,3,11],F8=[280,256,256,256,40],Ds=[0,1,1,1,0],Fl=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],KH=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],XH=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],B8=8,g4=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],r2=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],ah=null,v4=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],U0=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],H0=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],i2=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],KC=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],V0=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],ZH=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],qm=[],Xd=[],oh=[],QH=1,a2=2,qu=[],ou=[];Yt("UpsampleRgbLinePair",Pi,3),Yt("UpsampleBgrLinePair",_o,3),Yt("UpsampleRgbaLinePair",Vu,4),Yt("UpsampleBgraLinePair",al,4),Yt("UpsampleArgbLinePair",il,4),Yt("UpsampleRgba4444LinePair",Ko,2),Yt("UpsampleRgb565LinePair",Yo,2);var Ve=T.UpsampleRgbLinePair,G0=T.UpsampleBgrLinePair,o2=T.UpsampleRgbaLinePair,su=T.UpsampleBgraLinePair,Ai=T.UpsampleArgbLinePair,j8=T.UpsampleRgba4444LinePair,JH=T.UpsampleRgb565LinePair,XC=16,Vf=1<<XC-1,s2=-227,y4=482,z8=6,eV=(256<<z8)-1,U8=0,sh=a(256),tV=a(256),nV=a(256),rV=a(256),iV=a(y4-s2),aV=a(y4-s2);Gd("YuvToRgbRow",Pi,3),Gd("YuvToBgrRow",_o,3),Gd("YuvToRgbaRow",Vu,4),Gd("YuvToBgraRow",al,4),Gd("YuvToArgbRow",il,4),Gd("YuvToRgba4444Row",Ko,2),Gd("YuvToRgb565Row",Yo,2);var Gf=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],ZC=[0,2,8],oV=[8,7,6,4,4,2,2,2,1,1,1,1],sV=1;this.WebPDecodeRGBA=function(V,X,ie,ve,Ie){var ke=Vm,$e=new Cl,Ue=new tn;$e.ba=Ue,Ue.S=ke,Ue.width=[Ue.width],Ue.height=[Ue.height];var Ge=Ue.width,Je=Ue.height,vt=new Rt;if(vt==null||V==null)var $t=2;else t(vt!=null),$t=k0(V,X,ie,vt.width,vt.height,vt.Pd,vt.Qd,vt.format,null);if($t!=0?Ge=0:(Ge!=null&&(Ge[0]=vt.width[0]),Je!=null&&(Je[0]=vt.height[0]),Ge=1),Ge){Ue.width=Ue.width[0],Ue.height=Ue.height[0],ve!=null&&(ve[0]=Ue.width),Ie!=null&&(Ie[0]=Ue.height);e:{if(ve=new Gt,(Ie=new Y_).data=V,Ie.w=X,Ie.ha=ie,Ie.kd=1,X=[0],t(Ie!=null),((V=k0(Ie.data,Ie.w,Ie.ha,null,null,null,X,null,Ie))==0||V==7)&&X[0]&&(V=4),(X=V)==0){if(t($e!=null),ve.data=Ie.data,ve.w=Ie.w+Ie.offset,ve.ha=Ie.ha-Ie.offset,ve.put=Vt,ve.ac=Jt,ve.bc=pt,ve.ma=$e,Ie.xa){if((V=An())==null){$e=1;break e}if(function(Ft,xt){var hn=[0],qt=[0],gt=[0];t:for(;;){if(Ft==null)return 0;if(xt==null)return Ft.a=2,0;if(Ft.l=xt,Ft.a=0,U(Ft.m,xt.data,xt.w,xt.ha),!tt(Ft.m,hn,qt,gt)){Ft.a=3;break t}if(Ft.xb=a2,xt.width=hn[0],xt.height=qt[0],!nr(hn[0],qt[0],1,Ft,null))break t;return 1}return t(Ft.a!=0),0}(V,ve)){if(ve=(X=M0(ve.width,ve.height,$e.Oa,$e.ba))==0){t:{ve=V;n:for(;;){if(ve==null){ve=0;break t}if(t(ve.s.yc!=null),t(ve.s.Ya!=null),t(0<ve.s.Wb),t((ie=ve.l)!=null),t((Ie=ie.ma)!=null),ve.xb!=0){if(ve.ca=Ie.ba,ve.tb=Ie.tb,t(ve.ca!=null),!X_(Ie.Oa,ie,Lv)){ve.a=2;break n}if(!un(ve,ie.width)||ie.da)break n;if((ie.da||yt(ve.ca.S))&&Nt(),11>ve.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),ve.ca.f.kb.F!=null&&Nt()),ve.Pb&&0<ve.s.ua&&ve.s.vb.X==null&&!fe(ve.s.vb,ve.s.Wa.Xa)){ve.a=1;break n}ve.xb=0}if(!mn(ve,ve.V,ve.Ba,ve.c,ve.i,ie.o,kn))break n;Ie.Dc=ve.Ma,ve=1;break t}t(ve.a!=0),ve=0}ve=!ve}ve&&(X=V.a)}else X=V.a}else{if((V=new ln)==null){$e=1;break e}if(V.Fa=Ie.na,V.P=Ie.P,V.qc=Ie.Sa,ur(V,ve)){if((X=M0(ve.width,ve.height,$e.Oa,$e.ba))==0){if(V.Aa=0,ie=$e.Oa,t((Ie=V)!=null),ie!=null){if(0<(Ge=0>(Ge=ie.Md)?0:100<Ge?255:255*Ge/100)){for(Je=vt=0;4>Je;++Je)12>($t=Ie.pb[Je]).lc&&($t.ia=Ge*oV[0>$t.lc?0:$t.lc]>>3),vt|=$t.ia;vt&&(alert("todo:VP8InitRandom"),Ie.ia=1)}Ie.Ga=ie.Id,100<Ie.Ga?Ie.Ga=100:0>Ie.Ga&&(Ie.Ga=0)}fr(V,ve)||(X=V.a)}}else X=V.a}X==0&&$e.Oa!=null&&$e.Oa.fd&&(X=Z_($e.ba))}$e=X}ke=$e!=0?null:11>ke?Ue.f.RGBA.eb:Ue.f.kb.y}else ke=null;return ke};var H8=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function c(T,A){for(var I="",R=0;R<4;R++)I+=String.fromCharCode(T[A++]);return I}function u(T,A){return(T[A+0]<<0|T[A+1]<<8|T[A+2]<<16)>>>0}function d(T,A){return(T[A+0]<<0|T[A+1]<<8|T[A+2]<<16|T[A+3]<<24)>>>0}new l;var f=[0],p=[0],h=[],m=new l,g=e,v=function(T,A){var I={},R=0,N=!1,P=0,L=0;if(I.frames=[],!function(F,G,q,W){for(var K=0;K<W;K++)if(F[G+K]!=q.charCodeAt(K))return!0;return!1}(T,A,"RIFF",4)){var $,D;for(d(T,A+=4),A+=8;A<T.length;){var z=c(T,A),U=d(T,A+=4);A+=4;var H=U+(1&U);switch(z){case"VP8 ":case"VP8L":I.frames[R]===void 0&&(I.frames[R]={}),(k=I.frames[R]).src_off=N?L:A-8,k.src_size=P+U+8,R++,N&&(N=!1,P=0,L=0);break;case"VP8X":(k=I.header={}).feature_flags=T[A];var M=A+4;k.canvas_width=1+u(T,M),M+=3,k.canvas_height=1+u(T,M),M+=3;break;case"ALPH":N=!0,P=H+8,L=A-8;break;case"ANIM":(k=I.header).bgcolor=d(T,A),M=A+4,k.loop_count=($=T)[(D=M)+0]<<0|$[D+1]<<8,M+=2;break;case"ANMF":var B,k;(k=I.frames[R]={}).offset_x=2*u(T,A),A+=3,k.offset_y=2*u(T,A),A+=3,k.width=1+u(T,A),A+=3,k.height=1+u(T,A),A+=3,k.duration=u(T,A),A+=3,B=T[A++],k.dispose=1&B,k.blend=B>>1&1}z!="ANMF"&&(A+=H)}return I}}(g,0);v.response=g,v.rgbaoutput=!0,v.dataurl=!1;var y=v.header?v.header:null,_=v.frames?v.frames:null;if(y){y.loop_counter=y.loop_count,f=[y.canvas_height],p=[y.canvas_width];for(var S=0;S<_.length&&_[S].blend!=0;S++);}var C=_[0],w=m.WebPDecodeRGBA(g,C.src_off,C.src_size,p,f);C.rgba=w,C.imgwidth=p[0],C.imgheight=f[0];for(var x=0;x<p[0]*f[0]*4;x++)h[x]=w[x];return this.width=p,this.height=f,this.data=h,this}(function(e){var t=function(){return typeof hoe=="function"},n=function(f,p,h,m){var g=4,v=o;switch(m){case e.image_compression.FAST:g=1,v=a;break;case e.image_compression.MEDIUM:g=6,v=s;break;case e.image_compression.SLOW:g=9,v=l}f=r(f,p,h,v);var y=hoe(f,{level:g});return e.__addimage__.arrayBufferToBinaryString(y)},r=function(f,p,h,m){for(var g,v,y,_=f.length/p,S=new Uint8Array(f.length+_),C=u(),w=0;w<_;w+=1){if(y=w*p,g=f.subarray(y,y+p),m)S.set(m(g,h,v),y+w);else{for(var x,T=C.length,A=[];x<T;x+=1)A[x]=C[x](g,h,v);var I=d(A.concat());S.set(A[I],y+w)}v=g}return S},i=function(f){var p=Array.apply([],f);return p.unshift(0),p},a=function(f,p){var h,m=[],g=f.length;m[0]=1;for(var v=0;v<g;v+=1)h=f[v-p]||0,m[v+1]=f[v]-h+256&255;return m},o=function(f,p,h){var m,g=[],v=f.length;g[0]=2;for(var y=0;y<v;y+=1)m=h&&h[y]||0,g[y+1]=f[y]-m+256&255;return g},s=function(f,p,h){var m,g,v=[],y=f.length;v[0]=3;for(var _=0;_<y;_+=1)m=f[_-p]||0,g=h&&h[_]||0,v[_+1]=f[_]+256-(m+g>>>1)&255;return v},l=function(f,p,h){var m,g,v,y,_=[],S=f.length;_[0]=4;for(var C=0;C<S;C+=1)m=f[C-p]||0,g=h&&h[C]||0,v=h&&h[C-p]||0,y=c(m,g,v),_[C+1]=f[C]-y+256&255;return _},c=function(f,p,h){if(f===p&&p===h)return f;var m=Math.abs(p-h),g=Math.abs(f-h),v=Math.abs(f+p-h-h);return m<=g&&m<=v?f:g<=v?p:h},u=function(){return[i,a,o,s,l]},d=function(f){var p=f.map(function(h){return h.reduce(function(m,g){return m+Math.abs(g)},0)});return p.indexOf(Math.min.apply(null,p))};e.processPNG=function(f,p,h,m){var g,v,y,_,S,C,w,x,T,A,I,R,N,P,L,$=this.decode.FLATE_DECODE,D="";if(this.__addimage__.isArrayBuffer(f)&&(f=new Uint8Array(f)),this.__addimage__.isArrayBufferView(f)){if(f=(y=new Y9n(f)).imgData,v=y.bits,g=y.colorSpace,S=y.colors,[4,6].indexOf(y.colorType)!==-1){if(y.bits===8){T=(x=y.pixelBitlength==32?new Uint32Array(y.decodePixels().buffer):y.pixelBitlength==16?new Uint16Array(y.decodePixels().buffer):new Uint8Array(y.decodePixels().buffer)).length,I=new Uint8Array(T*y.colors),A=new Uint8Array(T);var z,U=y.pixelBitlength-y.bits;for(P=0,L=0;P<T;P++){for(N=x[P],z=0;z<U;)I[L++]=N>>>z&255,z+=y.bits;A[P]=N>>>z&255}}if(y.bits===16){T=(x=new Uint32Array(y.decodePixels().buffer)).length,I=new Uint8Array(T*(32/y.pixelBitlength)*y.colors),A=new Uint8Array(T*(32/y.pixelBitlength)),R=y.colors>1,P=0,L=0;for(var H=0;P<T;)N=x[P++],I[L++]=N>>>0&255,R&&(I[L++]=N>>>16&255,N=x[P++],I[L++]=N>>>0&255),A[H++]=N>>>16&255;v=8}m!==e.image_compression.NONE&&t()?(f=n(I,y.width*y.colors,y.colors,m),w=n(A,y.width,1,m)):(f=I,w=A,$=void 0)}if(y.colorType===3&&(g=this.color_spaces.INDEXED,C=y.palette,y.transparency.indexed)){var M=y.transparency.indexed,B=0;for(P=0,T=M.length;P<T;++P)B+=M[P];if((B/=255)===T-1&&M.indexOf(0)!==-1)_=[M.indexOf(0)];else if(B!==T){for(x=y.decodePixels(),A=new Uint8Array(x.length),P=0,T=x.length;P<T;P++)A[P]=M[x[P]];w=n(A,y.width,1)}}var k=function(F){var G;switch(F){case e.image_compression.FAST:G=11;break;case e.image_compression.MEDIUM:G=13;break;case e.image_compression.SLOW:G=14;break;default:G=12}return G}(m);return $===this.decode.FLATE_DECODE&&(D="/Predictor "+k+" "),D+="/Colors "+S+" /BitsPerComponent "+v+" /Columns "+y.width,(this.__addimage__.isArrayBuffer(f)||this.__addimage__.isArrayBufferView(f))&&(f=this.__addimage__.arrayBufferToBinaryString(f)),(w&&this.__addimage__.isArrayBuffer(w)||this.__addimage__.isArrayBufferView(w))&&(w=this.__addimage__.arrayBufferToBinaryString(w)),{alias:h,data:f,index:p,filter:$,decodeParameters:D,transparency:_,palette:C,sMask:w,predictor:k,width:y.width,height:y.height,bitsPerComponent:v,colorSpace:g}}}})(zr.API),function(e){e.processGIF89A=function(t,n,r,i){var a=new K9n(t),o=a.width,s=a.height,l=[];a.decodeAndBlitFrameRGBA(0,l);var c={data:l,width:o,height:s},u=new aJ(100).encode(c,100);return e.processJPEG.call(this,u,n,r,i)},e.processGIF87A=e.processGIF89A}(zr.API),yh.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var e=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(e);for(var t=0;t<e;t++){var n=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:i,green:r,blue:n,quad:a}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},yh.prototype.parseBGR=function(){this.pos=this.offset;try{var e="bit"+this.bitPP,t=this.width*this.height*4;this.data=new Uint8Array(t),this[e]()}catch(n){mo.log("bit decode error:"+n)}},yh.prototype.bit1=function(){var e,t=Math.ceil(this.width/8),n=t%4;for(e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,i=0;i<t;i++)for(var a=this.datav.getUint8(this.pos++,!0),o=r*this.width*4+8*i*4,s=0;s<8&&8*i+s<this.width;s++){var l=this.palette[a>>7-s&1];this.data[o+4*s]=l.blue,this.data[o+4*s+1]=l.green,this.data[o+4*s+2]=l.red,this.data[o+4*s+3]=255}n!==0&&(this.pos+=4-n)}},yh.prototype.bit4=function(){for(var e=Math.ceil(this.width/2),t=e%4,n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<e;i++){var a=this.datav.getUint8(this.pos++,!0),o=r*this.width*4+2*i*4,s=a>>4,l=15&a,c=this.palette[s];if(this.data[o]=c.blue,this.data[o+1]=c.green,this.data[o+2]=c.red,this.data[o+3]=255,2*i+1>=this.width)break;c=this.palette[l],this.data[o+4]=c.blue,this.data[o+4+1]=c.green,this.data[o+4+2]=c.red,this.data[o+4+3]=255}t!==0&&(this.pos+=4-t)}},yh.prototype.bit8=function(){for(var e=this.width%4,t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var i=this.datav.getUint8(this.pos++,!0),a=n*this.width*4+4*r;if(i<this.palette.length){var o=this.palette[i];this.data[a]=o.red,this.data[a+1]=o.green,this.data[a+2]=o.blue,this.data[a+3]=255}else this.data[a]=255,this.data[a+1]=255,this.data[a+2]=255,this.data[a+3]=255}e!==0&&(this.pos+=4-e)}},yh.prototype.bit15=function(){for(var e=this.width%3,t=parseInt("11111",2),n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<this.width;i++){var a=this.datav.getUint16(this.pos,!0);this.pos+=2;var o=(a&t)/t*255|0,s=(a>>5&t)/t*255|0,l=(a>>10&t)/t*255|0,c=a>>15?255:0,u=r*this.width*4+4*i;this.data[u]=l,this.data[u+1]=s,this.data[u+2]=o,this.data[u+3]=c}this.pos+=e}},yh.prototype.bit16=function(){for(var e=this.width%3,t=parseInt("11111",2),n=parseInt("111111",2),r=this.height-1;r>=0;r--){for(var i=this.bottom_up?r:this.height-1-r,a=0;a<this.width;a++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(o&t)/t*255|0,l=(o>>5&n)/n*255|0,c=(o>>11)/t*255|0,u=i*this.width*4+4*a;this.data[u]=c,this.data[u+1]=l,this.data[u+2]=s,this.data[u+3]=255}this.pos+=e}},yh.prototype.bit24=function(){for(var e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),o=t*this.width*4+4*n;this.data[o]=a,this.data[o+1]=i,this.data[o+2]=r,this.data[o+3]=255}this.pos+=this.width%4}},yh.prototype.bit32=function(){for(var e=this.height-1;e>=0;e--)for(var t=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),s=t*this.width*4+4*n;this.data[s]=a,this.data[s+1]=i,this.data[s+2]=r,this.data[s+3]=o}},yh.prototype.getData=function(){return this.data},function(e){e.processBMP=function(t,n,r,i){var a=new yh(t,!1),o=a.width,s=a.height,l={data:a.getData(),width:o,height:s},c=new aJ(100).encode(l,100);return e.processJPEG.call(this,c,n,r,i)}}(zr.API),tRe.prototype.getData=function(){return this.data},function(e){e.processWEBP=function(t,n,r,i){var a=new tRe(t),o=a.width,s=a.height,l={data:a.getData(),width:o,height:s},c=new aJ(100).encode(l,100);return e.processJPEG.call(this,c,n,r,i)}}(zr.API),zr.API.processRGBA=function(e,t,n){for(var r=e.data,i=r.length,a=new Uint8Array(i/4*3),o=new Uint8Array(i/4),s=0,l=0,c=0;c<i;c+=4){var u=r[c],d=r[c+1],f=r[c+2],p=r[c+3];a[s++]=u,a[s++]=d,a[s++]=f,o[l++]=p}var h=this.__addimage__.arrayBufferToBinaryString(a);return{alpha:this.__addimage__.arrayBufferToBinaryString(o),data:h,index:t,alias:n,colorSpace:"DeviceRGB",bitsPerComponent:8,width:e.width,height:e.height}},zr.API.setLanguage=function(e){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[e]!==void 0&&(this.internal.languageSettings.languageCode=e,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},Pw=zr.API,YP=Pw.getCharWidthsArray=function(e,t){var n,r,i=(t=t||{}).font||this.internal.getFont(),a=t.fontSize||this.internal.getFontSize(),o=t.charSpace||this.internal.getCharSpace(),s=t.widths?t.widths:i.metadata.Unicode.widths,l=s.fof?s.fof:1,c=t.kerning?t.kerning:i.metadata.Unicode.kerning,u=c.fof?c.fof:1,d=t.doKerning!==!1,f=0,p=e.length,h=0,m=s[0]||l,g=[];for(n=0;n<p;n++)r=e.charCodeAt(n),typeof i.metadata.widthOfString=="function"?g.push((i.metadata.widthOfGlyph(i.metadata.characterToGlyph(r))+o*(1e3/a)||0)/1e3):(f=d&&cn(c[r])==="object"&&!isNaN(parseInt(c[r][h],10))?c[r][h]/u:0,g.push((s[r]||m)/l+f)),h=r;return g},ZAe=Pw.getStringUnitWidth=function(e,t){var n=(t=t||{}).fontSize||this.internal.getFontSize(),r=t.font||this.internal.getFont(),i=t.charSpace||this.internal.getCharSpace();return Pw.processArabic&&(e=Pw.processArabic(e)),typeof r.metadata.widthOfString=="function"?r.metadata.widthOfString(e,n,i)/n:YP.apply(this,arguments).reduce(function(a,o){return a+o},0)},QAe=function(e,t,n,r){for(var i=[],a=0,o=e.length,s=0;a!==o&&s+t[a]<n;)s+=t[a],a++;i.push(e.slice(0,a));var l=a;for(s=0;a!==o;)s+t[a]>r&&(i.push(e.slice(l,a)),s=0,l=a),s+=t[a],a++;return l!==a&&i.push(e.slice(l,a)),i},JAe=function(e,t,n){n||(n={});var r,i,a,o,s,l,c,u=[],d=[u],f=n.textIndent||0,p=0,h=0,m=e.split(" "),g=YP.apply(this,[" ",n])[0];if(l=n.lineIndent===-1?m[0].length+2:n.lineIndent||0){var v=Array(l).join(" "),y=[];m.map(function(S){(S=S.split(/\s*\n/)).length>1?y=y.concat(S.map(function(C,w){return(w&&C.length?`
`:"")+C})):y.push(S[0])}),m=y,l=ZAe.apply(this,[v,n])}for(a=0,o=m.length;a<o;a++){var _=0;if(r=m[a],l&&r[0]==`
`&&(r=r.substr(1),_=1),f+p+(h=(i=YP.apply(this,[r,n])).reduce(function(S,C){return S+C},0))>t||_){if(h>t){for(s=QAe.apply(this,[r,i,t-(f+p),t]),u.push(s.shift()),u=[s.pop()];s.length;)d.push([s.shift()]);h=i.slice(r.length-(u[0]?u[0].length:0)).reduce(function(S,C){return S+C},0)}else u=[r];d.push(u),f=h+l,p=g}else u.push(r),f+=p+h,p=g}return c=l?function(S,C){return(C?v:"")+S.join(" ")}:function(S){return S.join(" ")},d.map(c)},Pw.splitTextToSize=function(e,t,n){var r,i=(n=n||{}).fontSize||this.internal.getFontSize(),a=function(u){if(u.widths&&u.kerning)return{widths:u.widths,kerning:u.kerning};var d=this.internal.getFont(u.fontName,u.fontStyle);return d.metadata.Unicode?{widths:d.metadata.Unicode.widths||{0:1},kerning:d.metadata.Unicode.kerning||{}}:{font:d.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,n);r=Array.isArray(e)?e:String(e).split(/\r?\n/);var o=1*this.internal.scaleFactor*t/i;a.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/i:0,a.lineIndent=n.lineIndent;var s,l,c=[];for(s=0,l=r.length;s<l;s++)c=c.concat(JAe.apply(this,[r[s],o,a]));return c},function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var t="klmnopqrstuvwxyz",n={},r={},i=0;i<t.length;i++)n[t[i]]="0123456789abcdef"[i],r["0123456789abcdef"[i]]=t[i];var a=function(d){return"0x"+parseInt(d,10).toString(16)},o=e.__fontmetrics__.compress=function(d){var f,p,h,m,g=["{"];for(var v in d){if(f=d[v],isNaN(parseInt(v,10))?p="'"+v+"'":(v=parseInt(v,10),p=(p=a(v).slice(2)).slice(0,-1)+r[p.slice(-1)]),typeof f=="number")f<0?(h=a(f).slice(3),m="-"):(h=a(f).slice(2),m=""),h=m+h.slice(0,-1)+r[h.slice(-1)];else{if(cn(f)!=="object")throw new Error("Don't know what to do with value type "+cn(f)+".");h=o(f)}g.push(p+h)}return g.push("}"),g.join("")},s=e.__fontmetrics__.uncompress=function(d){if(typeof d!="string")throw new Error("Invalid argument passed to uncompress.");for(var f,p,h,m,g={},v=1,y=g,_=[],S="",C="",w=d.length-1,x=1;x<w;x+=1)(m=d[x])=="'"?f?(h=f.join(""),f=void 0):f=[]:f?f.push(m):m=="{"?(_.push([y,h]),y={},h=void 0):m=="}"?((p=_.pop())[0][p[1]]=y,h=void 0,y=p[0]):m=="-"?v=-1:h===void 0?n.hasOwnProperty(m)?(S+=n[m],h=parseInt(S,16)*v,v=1,S=""):S+=m:n.hasOwnProperty(m)?(C+=n[m],y[h]=parseInt(C,16)*v,v=1,h=void 0,C=""):C+=m;return g},l={codePages:["WinAnsiEncoding"],WinAnsiEncoding:s("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},c={Unicode:{Courier:l,"Courier-Bold":l,"Courier-BoldOblique":l,"Courier-Oblique":l,Helvetica:l,"Helvetica-Bold":l,"Helvetica-BoldOblique":l,"Helvetica-Oblique":l,"Times-Roman":l,"Times-Bold":l,"Times-BoldItalic":l,"Times-Italic":l}},u={Unicode:{"Courier-Oblique":s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":s("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":s("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":s("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:s("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:s("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":s("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:s("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":s("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":s("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":s("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};e.events.push(["addFont",function(d){var f=d.font,p=u.Unicode[f.postScriptName];p&&(f.metadata.Unicode={},f.metadata.Unicode.widths=p.widths,f.metadata.Unicode.kerning=p.kerning);var h=c.Unicode[f.postScriptName];h&&(f.metadata.Unicode.encoding=h,f.encoding=h.codePages[0])}])}(zr.API),function(e){var t=function(n){for(var r=n.length,i=new Uint8Array(r),a=0;a<r;a++)i[a]=n.charCodeAt(a);return i};e.API.events.push(["addFont",function(n){var r=void 0,i=n.font,a=n.instance;if(!i.isStandardFont){if(a===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");if(typeof(r=a.existsFileInVFS(i.postScriptName)===!1?a.loadFile(i.postScriptName):a.getFileFromVFS(i.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");(function(o,s){s=/^\x00\x01\x00\x00/.test(s)?t(s):t(xR(s)),o.metadata=e.API.TTFFont.open(s),o.metadata.Unicode=o.metadata.Unicode||{encoding:{},kerning:{},widths:[]},o.metadata.glyIdsUsed=[0]})(i,r)}}])}(zr),function(e){function t(){return(Ur.canvg?Promise.resolve(Ur.canvg):Io(()=>import("./index.es.CihL690S.js"),[])).catch(function(n){return Promise.reject(new Error("Could not load canvg: "+n))}).then(function(n){return n.default?n.default:n})}zr.API.addSvgAsImage=function(n,r,i,a,o,s,l,c){if(isNaN(r)||isNaN(i))throw mo.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(a)||isNaN(o))throw mo.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var u=document.createElement("canvas");u.width=a,u.height=o;var d=u.getContext("2d");d.fillStyle="#fff",d.fillRect(0,0,u.width,u.height);var f={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},p=this;return t().then(function(h){return h.fromString(d,n,f)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(h){return h.render(f)}).then(function(){p.addImage(u.toDataURL("image/jpeg",1),r,i,a,o,l,c)})}}(),zr.API.putTotalPages=function(e){var t,n=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(e,"g"),n=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(e,this.internal.getFont()),"g"),n=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var i=0;i<this.internal.pages[r].length;i++)this.internal.pages[r][i]=this.internal.pages[r][i].replace(t,n);return this},zr.API.viewerPreferences=function(e,t){var n;e=e||{},t=t||!1;var r,i,a,o={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},s=Object.keys(o),l=[],c=0,u=0,d=0;function f(h,m){var g,v=!1;for(g=0;g<h.length;g+=1)h[g]===m&&(v=!0);return v}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(o)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,e==="reset"||t===!0){var p=s.length;for(d=0;d<p;d+=1)n[s[d]].value=n[s[d]].defaultValue,n[s[d]].explicitSet=!1}if(cn(e)==="object"){for(i in e)if(a=e[i],f(s,i)&&a!==void 0){if(n[i].type==="boolean"&&typeof a=="boolean")n[i].value=a;else if(n[i].type==="name"&&f(n[i].valueSet,a))n[i].value=a;else if(n[i].type==="integer"&&Number.isInteger(a))n[i].value=a;else if(n[i].type==="array"){for(c=0;c<a.length;c+=1)if(r=!0,a[c].length===1&&typeof a[c][0]=="number")l.push(String(a[c]-1));else if(a[c].length>1){for(u=0;u<a[c].length;u+=1)typeof a[c][u]!="number"&&(r=!1);r===!0&&l.push([a[c][0]-1,a[c][1]-1].join(" "))}n[i].value="["+l.join(" ")+"]"}else n[i].value=n[i].defaultValue;n[i].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var h,m=[];for(h in n)n[h].explicitSet===!0&&(n[h].type==="name"?m.push("/"+h+" /"+n[h].value):m.push("/"+h+" "+n[h].value));m.length!==0&&this.internal.write(`/ViewerPreferences
<<
`+m.join(`
`)+`
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},function(e){var t=function(){var r='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',i=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),a=unescape(encodeURIComponent(r)),o=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),s=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),l=unescape(encodeURIComponent("</x:xmpmeta>")),c=a.length+o.length+s.length+i.length+l.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+c+" >>"),this.internal.write("stream"),this.internal.write(i+a+o+s+l),this.internal.write("endstream"),this.internal.write("endobj")},n=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};e.addMetadata=function(r,i){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:r,namespaceuri:i||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",n),this.internal.events.subscribe("postPutResources",t)),this}}(zr.API),function(e){var t=e.API,n=t.pdfEscape16=function(a,o){for(var s,l=o.metadata.Unicode.widths,c=["","0","00","000","0000"],u=[""],d=0,f=a.length;d<f;++d){if(s=o.metadata.characterToGlyph(a.charCodeAt(d)),o.metadata.glyIdsUsed.push(s),o.metadata.toUnicode[s]=a.charCodeAt(d),l.indexOf(s)==-1&&(l.push(s),l.push([parseInt(o.metadata.widthOfGlyph(s),10)])),s=="0")return u.join("");s=s.toString(16),u.push(c[4-s.length],s)}return u.join("")},r=function(a){var o,s,l,c,u,d,f;for(u=`/CIDInit /ProcSet findresource begin
12 dict begin
begincmap
/CIDSystemInfo <<
  /Registry (Adobe)
  /Ordering (UCS)
  /Supplement 0
>> def
/CMapName /Adobe-Identity-UCS def
/CMapType 2 def
1 begincodespacerange
<0000><ffff>
endcodespacerange`,l=[],d=0,f=(s=Object.keys(a).sort(function(p,h){return p-h})).length;d<f;d++)o=s[d],l.length>=100&&(u+=`
`+l.length+` beginbfchar
`+l.join(`
`)+`
endbfchar`,l=[]),a[o]!==void 0&&a[o]!==null&&typeof a[o].toString=="function"&&(c=("0000"+a[o].toString(16)).slice(-4),o=("0000"+(+o).toString(16)).slice(-4),l.push("<"+o+"><"+c+">"));return l.length&&(u+=`
`+l.length+` beginbfchar
`+l.join(`
`)+`
endbfchar
`),u+=`endcmap
CMapName currentdict /CMap defineresource pop
end
end`};t.events.push(["putFont",function(a){(function(o){var s=o.font,l=o.out,c=o.newObject,u=o.putStream;if(s.metadata instanceof e.API.TTFFont&&s.encoding==="Identity-H"){for(var d=s.metadata.Unicode.widths,f=s.metadata.subset.encode(s.metadata.glyIdsUsed,1),p="",h=0;h<f.length;h++)p+=String.fromCharCode(f[h]);var m=c();u({data:p,addLength1:!0,objectId:m}),l("endobj");var g=c();u({data:r(s.metadata.toUnicode),addLength1:!0,objectId:g}),l("endobj");var v=c();l("<<"),l("/Type /FontDescriptor"),l("/FontName /"+Cx(s.fontName)),l("/FontFile2 "+m+" 0 R"),l("/FontBBox "+e.API.PDFObject.convert(s.metadata.bbox)),l("/Flags "+s.metadata.flags),l("/StemV "+s.metadata.stemV),l("/ItalicAngle "+s.metadata.italicAngle),l("/Ascent "+s.metadata.ascender),l("/Descent "+s.metadata.decender),l("/CapHeight "+s.metadata.capHeight),l(">>"),l("endobj");var y=c();l("<<"),l("/Type /Font"),l("/BaseFont /"+Cx(s.fontName)),l("/FontDescriptor "+v+" 0 R"),l("/W "+e.API.PDFObject.convert(d)),l("/CIDToGIDMap /Identity"),l("/DW 1000"),l("/Subtype /CIDFontType2"),l("/CIDSystemInfo"),l("<<"),l("/Supplement 0"),l("/Registry (Adobe)"),l("/Ordering ("+s.encoding+")"),l(">>"),l(">>"),l("endobj"),s.objectNumber=c(),l("<<"),l("/Type /Font"),l("/Subtype /Type0"),l("/ToUnicode "+g+" 0 R"),l("/BaseFont /"+Cx(s.fontName)),l("/Encoding /"+s.encoding),l("/DescendantFonts ["+y+" 0 R]"),l(">>"),l("endobj"),s.isAlreadyPutted=!0}})(a)}]),t.events.push(["putFont",function(a){(function(o){var s=o.font,l=o.out,c=o.newObject,u=o.putStream;if(s.metadata instanceof e.API.TTFFont&&s.encoding==="WinAnsiEncoding"){for(var d=s.metadata.rawData,f="",p=0;p<d.length;p++)f+=String.fromCharCode(d[p]);var h=c();u({data:f,addLength1:!0,objectId:h}),l("endobj");var m=c();u({data:r(s.metadata.toUnicode),addLength1:!0,objectId:m}),l("endobj");var g=c();l("<<"),l("/Descent "+s.metadata.decender),l("/CapHeight "+s.metadata.capHeight),l("/StemV "+s.metadata.stemV),l("/Type /FontDescriptor"),l("/FontFile2 "+h+" 0 R"),l("/Flags 96"),l("/FontBBox "+e.API.PDFObject.convert(s.metadata.bbox)),l("/FontName /"+Cx(s.fontName)),l("/ItalicAngle "+s.metadata.italicAngle),l("/Ascent "+s.metadata.ascender),l(">>"),l("endobj"),s.objectNumber=c();for(var v=0;v<s.metadata.hmtx.widths.length;v++)s.metadata.hmtx.widths[v]=parseInt(s.metadata.hmtx.widths[v]*(1e3/s.metadata.head.unitsPerEm));l("<</Subtype/TrueType/Type/Font/ToUnicode "+m+" 0 R/BaseFont/"+Cx(s.fontName)+"/FontDescriptor "+g+" 0 R/Encoding/"+s.encoding+" /FirstChar 29 /LastChar 255 /Widths "+e.API.PDFObject.convert(s.metadata.hmtx.widths)+">>"),l("endobj"),s.isAlreadyPutted=!0}})(a)}]);var i=function(a){var o,s=a.text||"",l=a.x,c=a.y,u=a.options||{},d=a.mutex||{},f=d.pdfEscape,p=d.activeFontKey,h=d.fonts,m=p,g="",v=0,y="",_=h[m].encoding;if(h[m].encoding!=="Identity-H")return{text:s,x:l,y:c,options:u,mutex:d};for(y=s,m=p,Array.isArray(s)&&(y=s[0]),v=0;v<y.length;v+=1)h[m].metadata.hasOwnProperty("cmap")&&(o=h[m].metadata.cmap.unicode.codeMap[y[v].charCodeAt(0)]),o||y[v].charCodeAt(0)<256&&h[m].metadata.hasOwnProperty("Unicode")?g+=y[v]:g+="";var S="";return parseInt(m.slice(1))<14||_==="WinAnsiEncoding"?S=f(g,m).split("").map(function(C){return C.charCodeAt(0).toString(16)}).join(""):_==="Identity-H"&&(S=n(g,h[m])),d.isHex=!0,{text:S,x:l,y:c,options:u,mutex:d}};t.events.push(["postProcessText",function(a){var o=a.text||"",s=[],l={text:o,x:a.x,y:a.y,options:a.options,mutex:a.mutex};if(Array.isArray(o)){var c=0;for(c=0;c<o.length;c+=1)Array.isArray(o[c])&&o[c].length===3?s.push([i(Object.assign({},l,{text:o[c][0]})).text,o[c][1],o[c][2]]):s.push(i(Object.assign({},l,{text:o[c]})).text);a.text=s}else a.text=i(Object.assign({},l,{text:o})).text}])}(zr),function(e){var t=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};e.existsFileInVFS=function(n){return t.call(this),this.internal.vFS[n]!==void 0},e.addFileToVFS=function(n,r){return t.call(this),this.internal.vFS[n]=r,this},e.getFileFromVFS=function(n){return t.call(this),this.internal.vFS[n]!==void 0?this.internal.vFS[n]:null}}(zr.API),function(e){e.__bidiEngine__=e.prototype.__bidiEngine__=function(r){var i,a,o,s,l,c,u,d=t,f=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],p=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],h={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},m={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},g=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],v=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),y=!1,_=0;this.__bidiEngine__={};var S=function(R){var N=R.charCodeAt(),P=N>>8,L=m[P];return L!==void 0?d[256*L+(255&N)]:P===252||P===253?"AL":v.test(P)?"L":P===8?"R":"N"},C=function(R){for(var N,P=0;P<R.length;P++){if((N=S(R.charAt(P)))==="L")return!1;if(N==="R")return!0}return!1},w=function(R,N,P,L){var $,D,z,U,H=N[L];switch(H){case"L":case"R":y=!1;break;case"N":case"AN":break;case"EN":y&&(H="AN");break;case"AL":y=!0,H="R";break;case"WS":H="N";break;case"CS":L<1||L+1>=N.length||($=P[L-1])!=="EN"&&$!=="AN"||(D=N[L+1])!=="EN"&&D!=="AN"?H="N":y&&(D="AN"),H=D===$?D:"N";break;case"ES":H=($=L>0?P[L-1]:"B")==="EN"&&L+1<N.length&&N[L+1]==="EN"?"EN":"N";break;case"ET":if(L>0&&P[L-1]==="EN"){H="EN";break}if(y){H="N";break}for(z=L+1,U=N.length;z<U&&N[z]==="ET";)z++;H=z<U&&N[z]==="EN"?"EN":"N";break;case"NSM":if(o&&!s){for(U=N.length,z=L+1;z<U&&N[z]==="NSM";)z++;if(z<U){var M=R[L],B=M>=1425&&M<=2303||M===64286;if($=N[z],B&&($==="R"||$==="AL")){H="R";break}}}H=L<1||($=N[L-1])==="B"?"N":P[L-1];break;case"B":y=!1,i=!0,H=_;break;case"S":a=!0,H="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":y=!1;break;case"BN":H="N"}return H},x=function(R,N,P){var L=R.split("");return P&&T(L,P,{hiLevel:_}),L.reverse(),N&&N.reverse(),L.join("")},T=function(R,N,P){var L,$,D,z,U,H=-1,M=R.length,B=0,k=[],F=_?p:f,G=[];for(y=!1,i=!1,a=!1,$=0;$<M;$++)G[$]=S(R[$]);for(D=0;D<M;D++){if(U=B,k[D]=w(R,G,k,D),L=240&(B=F[U][h[k[D]]]),B&=15,N[D]=z=F[B][5],L>0)if(L===16){for($=H;$<D;$++)N[$]=1;H=-1}else H=-1;if(F[B][6])H===-1&&(H=D);else if(H>-1){for($=H;$<D;$++)N[$]=z;H=-1}G[D]==="B"&&(N[D]=0),P.hiLevel|=z}a&&function(q,W,K){for(var J=0;J<K;J++)if(q[J]==="S"){W[J]=_;for(var te=J-1;te>=0&&q[te]==="WS";te--)W[te]=_}}(G,N,M)},A=function(R,N,P,L,$){if(!($.hiLevel<R)){if(R===1&&_===1&&!i)return N.reverse(),void(P&&P.reverse());for(var D,z,U,H,M=N.length,B=0;B<M;){if(L[B]>=R){for(U=B+1;U<M&&L[U]>=R;)U++;for(H=B,z=U-1;H<z;H++,z--)D=N[H],N[H]=N[z],N[z]=D,P&&(D=P[H],P[H]=P[z],P[z]=D);B=U}B++}}},I=function(R,N,P){var L=R.split(""),$={hiLevel:_};return P||(P=[]),T(L,P,$),function(D,z,U){if(U.hiLevel!==0&&u)for(var H,M=0;M<D.length;M++)z[M]===1&&(H=g.indexOf(D[M]))>=0&&(D[M]=g[H+1])}(L,P,$),A(2,L,N,P,$),A(1,L,N,P,$),L.join("")};return this.__bidiEngine__.doBidiReorder=function(R,N,P){if(function($,D){if(D)for(var z=0;z<$.length;z++)D[z]=z;s===void 0&&(s=C($)),c===void 0&&(c=C($))}(R,N),o||!l||c)if(o&&l&&s^c)_=s?1:0,R=x(R,N,P);else if(!o&&l&&c)_=s?1:0,R=I(R,N,P),R=x(R,N);else if(!o||s||l||c){if(o&&!l&&s^c)R=x(R,N),s?(_=0,R=I(R,N,P)):(_=1,R=I(R,N,P),R=x(R,N));else if(o&&s&&!l&&c)_=1,R=I(R,N,P),R=x(R,N);else if(!o&&!l&&s^c){var L=u;s?(_=1,R=I(R,N,P),_=0,u=!1,R=I(R,N,P),u=L):(_=0,R=I(R,N,P),R=x(R,N),_=1,u=!1,R=I(R,N,P),u=L,R=x(R,N))}}else _=0,R=I(R,N,P);else _=s?1:0,R=I(R,N,P);return R},this.__bidiEngine__.setOptions=function(R){R&&(o=R.isInputVisual,l=R.isOutputVisual,s=R.isInputRtl,c=R.isOutputRtl,u=R.isSymmetricSwapping)},this.__bidiEngine__.setOptions(r),this.__bidiEngine__};var t=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],n=new e.__bidiEngine__({isInputVisual:!0});e.API.events.push(["postProcessText",function(r){var i=r.text,a=(r.x,r.y,r.options||{}),o=(r.mutex,a.lang,[]);if(a.isInputVisual=typeof a.isInputVisual!="boolean"||a.isInputVisual,n.setOptions(a),Object.prototype.toString.call(i)==="[object Array]"){var s=0;for(o=[],s=0;s<i.length;s+=1)Object.prototype.toString.call(i[s])==="[object Array]"?o.push([n.doBidiReorder(i[s][0]),i[s][1],i[s][2]]):o.push([n.doBidiReorder(i[s])]);r.text=o}else r.text=n.doBidiReorder(i);n.setOptions({isInputVisual:!0})}])}(zr),zr.API.TTFFont=function(){function e(t){var n;if(this.rawData=t,n=this.contents=new l_(t),this.contents.pos=4,n.readString(4)==="ttcf")throw new Error("TTCF not supported.");n.pos=0,this.parse(),this.subset=new u7n(this),this.registerTTF()}return e.open=function(t){return new e(t)},e.prototype.parse=function(){return this.directory=new X9n(this.contents),this.head=new Q9n(this),this.name=new r7n(this),this.cmap=new Qet(this),this.toUnicode={},this.hhea=new J9n(this),this.maxp=new i7n(this),this.hmtx=new a7n(this),this.post=new t7n(this),this.os2=new e7n(this),this.loca=new c7n(this),this.glyf=new o7n(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},e.prototype.registerTTF=function(){var t,n,r,i,a;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var o,s,l,c;for(c=[],o=0,s=(l=this.bbox).length;o<s;o++)t=l[o],c.push(Math.round(t*this.scaleFactor));return c}.call(this),this.stemV=0,this.post.exists?(r=255&(i=this.post.italic_angle),32768&(n=i>>16)&&(n=-(1+(65535^n))),this.italicAngle=+(n+"."+r)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(a=this.familyClass)===1||a===2||a===3||a===4||a===5||a===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},e.prototype.characterToGlyph=function(t){var n;return((n=this.cmap.unicode)!=null?n.codeMap[t]:void 0)||0},e.prototype.widthOfGlyph=function(t){var n;return n=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(t).advance*n},e.prototype.widthOfString=function(t,n,r){var i,a,o,s;for(o=0,a=0,s=(t=""+t).length;0<=s?a<s:a>s;a=0<=s?++a:--a)i=t.charCodeAt(a),o+=this.widthOfGlyph(this.characterToGlyph(i))+r*(1e3/n)||0;return o*(n/1e3)},e.prototype.lineHeight=function(t,n){var r;return n==null&&(n=!1),r=n?this.lineGap:0,(this.ascender+r-this.decender)/1e3*t},e}();var Rm,l_=function(){function e(t){this.data=t??[],this.pos=0,this.length=this.data.length}return e.prototype.readByte=function(){return this.data[this.pos++]},e.prototype.writeByte=function(t){return this.data[this.pos++]=t},e.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},e.prototype.writeUInt32=function(t){return this.writeByte(t>>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t)},e.prototype.readInt32=function(){var t;return(t=this.readUInt32())>=2147483648?t-4294967296:t},e.prototype.writeInt32=function(t){return t<0&&(t+=4294967296),this.writeUInt32(t)},e.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},e.prototype.writeUInt16=function(t){return this.writeByte(t>>8&255),this.writeByte(255&t)},e.prototype.readInt16=function(){var t;return(t=this.readUInt16())>=32768?t-65536:t},e.prototype.writeInt16=function(t){return t<0&&(t+=65536),this.writeUInt16(t)},e.prototype.readString=function(t){var n,r;for(r=[],n=0;0<=t?n<t:n>t;n=0<=t?++n:--n)r[n]=String.fromCharCode(this.readByte());return r.join("")},e.prototype.writeString=function(t){var n,r,i;for(i=[],n=0,r=t.length;0<=r?n<r:n>r;n=0<=r?++n:--n)i.push(this.writeByte(t.charCodeAt(n)));return i},e.prototype.readShort=function(){return this.readInt16()},e.prototype.writeShort=function(t){return this.writeInt16(t)},e.prototype.readLongLong=function(){var t,n,r,i,a,o,s,l;return t=this.readByte(),n=this.readByte(),r=this.readByte(),i=this.readByte(),a=this.readByte(),o=this.readByte(),s=this.readByte(),l=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^n)+1099511627776*(255^r)+4294967296*(255^i)+16777216*(255^a)+65536*(255^o)+256*(255^s)+(255^l)+1):72057594037927940*t+281474976710656*n+1099511627776*r+4294967296*i+16777216*a+65536*o+256*s+l},e.prototype.writeLongLong=function(t){var n,r;return n=Math.floor(t/4294967296),r=4294967295&t,this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n),this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r)},e.prototype.readInt=function(){return this.readInt32()},e.prototype.writeInt=function(t){return this.writeInt32(t)},e.prototype.read=function(t){var n,r;for(n=[],r=0;0<=t?r<t:r>t;r=0<=t?++r:--r)n.push(this.readByte());return n},e.prototype.write=function(t){var n,r,i,a;for(a=[],r=0,i=t.length;r<i;r++)n=t[r],a.push(this.writeByte(n));return a},e}(),X9n=function(){var e;function t(n){var r,i,a;for(this.scalarType=n.readInt(),this.tableCount=n.readShort(),this.searchRange=n.readShort(),this.entrySelector=n.readShort(),this.rangeShift=n.readShort(),this.tables={},i=0,a=this.tableCount;0<=a?i<a:i>a;i=0<=a?++i:--i)r={tag:n.readString(4),checksum:n.readInt(),offset:n.readInt(),length:n.readInt()},this.tables[r.tag]=r}return t.prototype.encode=function(n){var r,i,a,o,s,l,c,u,d,f,p,h,m;for(m in p=Object.keys(n).length,l=Math.log(2),d=16*Math.floor(Math.log(p)/l),o=Math.floor(d/l),u=16*p-d,(i=new l_).writeInt(this.scalarType),i.writeShort(p),i.writeShort(d),i.writeShort(o),i.writeShort(u),a=16*p,c=i.pos+a,s=null,h=[],n)for(f=n[m],i.writeString(m),i.writeInt(e(f)),i.writeInt(c),i.writeInt(f.length),h=h.concat(f),m==="head"&&(s=c),c+=f.length;c%4;)h.push(0),c++;return i.write(h),r=2981146554-e(i.data),i.pos=s+8,i.writeUInt32(r),i.data},e=function(n){var r,i,a,o;for(n=Jet.call(n);n.length%4;)n.push(0);for(a=new l_(n),i=0,r=0,o=n.length;r<o;r=r+=4)i+=a.readUInt32();return 4294967295&i},t}(),Z9n={}.hasOwnProperty,bv=function(e,t){for(var n in t)Z9n.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e};Rm=function(){function e(t){var n;this.file=t,n=this.file.directory.tables[this.tag],this.exists=!!n,n&&(this.offset=n.offset,this.length=n.length,this.parse(this.file.contents))}return e.prototype.parse=function(){},e.prototype.encode=function(){},e.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},e}();var Q9n=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return bv(t,Rm),t.prototype.tag="head",t.prototype.parse=function(n){return n.pos=this.offset,this.version=n.readInt(),this.revision=n.readInt(),this.checkSumAdjustment=n.readInt(),this.magicNumber=n.readInt(),this.flags=n.readShort(),this.unitsPerEm=n.readShort(),this.created=n.readLongLong(),this.modified=n.readLongLong(),this.xMin=n.readShort(),this.yMin=n.readShort(),this.xMax=n.readShort(),this.yMax=n.readShort(),this.macStyle=n.readShort(),this.lowestRecPPEM=n.readShort(),this.fontDirectionHint=n.readShort(),this.indexToLocFormat=n.readShort(),this.glyphDataFormat=n.readShort()},t.prototype.encode=function(n){var r;return(r=new l_).writeInt(this.version),r.writeInt(this.revision),r.writeInt(this.checkSumAdjustment),r.writeInt(this.magicNumber),r.writeShort(this.flags),r.writeShort(this.unitsPerEm),r.writeLongLong(this.created),r.writeLongLong(this.modified),r.writeShort(this.xMin),r.writeShort(this.yMin),r.writeShort(this.xMax),r.writeShort(this.yMax),r.writeShort(this.macStyle),r.writeShort(this.lowestRecPPEM),r.writeShort(this.fontDirectionHint),r.writeShort(n),r.writeShort(this.glyphDataFormat),r.data},t}(),nRe=function(){function e(t,n){var r,i,a,o,s,l,c,u,d,f,p,h,m,g,v,y,_;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=n+t.readInt(),d=t.pos,t.pos=this.offset,this.format=t.readUInt16(),this.length=t.readUInt16(),this.language=t.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(l=0;l<256;++l)this.codeMap[l]=t.readByte();break;case 4:for(p=t.readUInt16(),f=p/2,t.pos+=6,a=function(){var S,C;for(C=[],l=S=0;0<=f?S<f:S>f;l=0<=f?++S:--S)C.push(t.readUInt16());return C}(),t.pos+=2,m=function(){var S,C;for(C=[],l=S=0;0<=f?S<f:S>f;l=0<=f?++S:--S)C.push(t.readUInt16());return C}(),c=function(){var S,C;for(C=[],l=S=0;0<=f?S<f:S>f;l=0<=f?++S:--S)C.push(t.readUInt16());return C}(),u=function(){var S,C;for(C=[],l=S=0;0<=f?S<f:S>f;l=0<=f?++S:--S)C.push(t.readUInt16());return C}(),i=(this.length-t.pos+this.offset)/2,s=function(){var S,C;for(C=[],l=S=0;0<=i?S<i:S>i;l=0<=i?++S:--S)C.push(t.readUInt16());return C}(),l=v=0,_=a.length;v<_;l=++v)for(g=a[l],r=y=h=m[l];h<=g?y<=g:y>=g;r=h<=g?++y:--y)u[l]===0?o=r+c[l]:(o=s[u[l]/2+(r-h)-(f-l)]||0)!==0&&(o+=c[l]),this.codeMap[r]=65535&o}t.pos=d}return e.encode=function(t,n){var r,i,a,o,s,l,c,u,d,f,p,h,m,g,v,y,_,S,C,w,x,T,A,I,R,N,P,L,$,D,z,U,H,M,B,k,F,G,q,W,K,J,te,ae,re,ue;switch(L=new l_,o=Object.keys(t).sort(function(de,fe){return de-fe}),n){case"macroman":for(m=0,g=function(){var de=[];for(h=0;h<256;++h)de.push(0);return de}(),y={0:0},a={},$=0,H=o.length;$<H;$++)y[te=t[i=o[$]]]==null&&(y[te]=++m),a[i]={old:t[i],new:y[t[i]]},g[i]=y[t[i]];return L.writeUInt16(1),L.writeUInt16(0),L.writeUInt32(12),L.writeUInt16(0),L.writeUInt16(262),L.writeUInt16(0),L.write(g),{charMap:a,subtable:L.data,maxGlyphID:m+1};case"unicode":for(N=[],d=[],_=0,y={},r={},v=c=null,D=0,M=o.length;D<M;D++)y[C=t[i=o[D]]]==null&&(y[C]=++_),r[i]={old:C,new:y[C]},s=y[C]-i,v!=null&&s===c||(v&&d.push(v),N.push(i),c=s),v=i;for(v&&d.push(v),d.push(65535),N.push(65535),I=2*(A=N.length),T=2*Math.pow(Math.log(A)/Math.LN2,2),f=Math.log(T/2)/Math.LN2,x=2*A-T,l=[],w=[],p=[],h=z=0,B=N.length;z<B;h=++z){if(R=N[h],u=d[h],R===65535){l.push(0),w.push(0);break}if(R-(P=r[R].new)>=32768)for(l.push(0),w.push(2*(p.length+A-h)),i=U=R;R<=u?U<=u:U>=u;i=R<=u?++U:--U)p.push(r[i].new);else l.push(P-R),w.push(0)}for(L.writeUInt16(3),L.writeUInt16(1),L.writeUInt32(12),L.writeUInt16(4),L.writeUInt16(16+8*A+2*p.length),L.writeUInt16(0),L.writeUInt16(I),L.writeUInt16(T),L.writeUInt16(f),L.writeUInt16(x),K=0,k=d.length;K<k;K++)i=d[K],L.writeUInt16(i);for(L.writeUInt16(0),J=0,F=N.length;J<F;J++)i=N[J],L.writeUInt16(i);for(ae=0,G=l.length;ae<G;ae++)s=l[ae],L.writeUInt16(s);for(re=0,q=w.length;re<q;re++)S=w[re],L.writeUInt16(S);for(ue=0,W=p.length;ue<W;ue++)m=p[ue],L.writeUInt16(m);return{charMap:r,subtable:L.data,maxGlyphID:_+1}}},e}(),Qet=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return bv(t,Rm),t.prototype.tag="cmap",t.prototype.parse=function(n){var r,i,a;for(n.pos=this.offset,this.version=n.readUInt16(),a=n.readUInt16(),this.tables=[],this.unicode=null,i=0;0<=a?i<a:i>a;i=0<=a?++i:--i)r=new nRe(n,this.offset),this.tables.push(r),r.isUnicode&&this.unicode==null&&(this.unicode=r);return!0},t.encode=function(n,r){var i,a;return r==null&&(r="macroman"),i=nRe.encode(n,r),(a=new l_).writeUInt16(0),a.writeUInt16(1),i.table=a.data.concat(i.subtable),i},t}(),J9n=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return bv(t,Rm),t.prototype.tag="hhea",t.prototype.parse=function(n){return n.pos=this.offset,this.version=n.readInt(),this.ascender=n.readShort(),this.decender=n.readShort(),this.lineGap=n.readShort(),this.advanceWidthMax=n.readShort(),this.minLeftSideBearing=n.readShort(),this.minRightSideBearing=n.readShort(),this.xMaxExtent=n.readShort(),this.caretSlopeRise=n.readShort(),this.caretSlopeRun=n.readShort(),this.caretOffset=n.readShort(),n.pos+=8,this.metricDataFormat=n.readShort(),this.numberOfMetrics=n.readUInt16()},t}(),e7n=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return bv(t,Rm),t.prototype.tag="OS/2",t.prototype.parse=function(n){if(n.pos=this.offset,this.version=n.readUInt16(),this.averageCharWidth=n.readShort(),this.weightClass=n.readUInt16(),this.widthClass=n.readUInt16(),this.type=n.readShort(),this.ySubscriptXSize=n.readShort(),this.ySubscriptYSize=n.readShort(),this.ySubscriptXOffset=n.readShort(),this.ySubscriptYOffset=n.readShort(),this.ySuperscriptXSize=n.readShort(),this.ySuperscriptYSize=n.readShort(),this.ySuperscriptXOffset=n.readShort(),this.ySuperscriptYOffset=n.readShort(),this.yStrikeoutSize=n.readShort(),this.yStrikeoutPosition=n.readShort(),this.familyClass=n.readShort(),this.panose=function(){var r,i;for(i=[],r=0;r<10;++r)i.push(n.readByte());return i}(),this.charRange=function(){var r,i;for(i=[],r=0;r<4;++r)i.push(n.readInt());return i}(),this.vendorID=n.readString(4),this.selection=n.readShort(),this.firstCharIndex=n.readShort(),this.lastCharIndex=n.readShort(),this.version>0&&(this.ascent=n.readShort(),this.descent=n.readShort(),this.lineGap=n.readShort(),this.winAscent=n.readShort(),this.winDescent=n.readShort(),this.codePageRange=function(){var r,i;for(i=[],r=0;r<2;r=++r)i.push(n.readInt());return i}(),this.version>1))return this.xHeight=n.readShort(),this.capHeight=n.readShort(),this.defaultChar=n.readShort(),this.breakChar=n.readShort(),this.maxContext=n.readShort()},t}(),t7n=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return bv(t,Rm),t.prototype.tag="post",t.prototype.parse=function(n){var r,i,a;switch(n.pos=this.offset,this.format=n.readInt(),this.italicAngle=n.readInt(),this.underlinePosition=n.readShort(),this.underlineThickness=n.readShort(),this.isFixedPitch=n.readInt(),this.minMemType42=n.readInt(),this.maxMemType42=n.readInt(),this.minMemType1=n.readInt(),this.maxMemType1=n.readInt(),this.format){case 65536:break;case 131072:var o;for(i=n.readUInt16(),this.glyphNameIndex=[],o=0;0<=i?o<i:o>i;o=0<=i?++o:--o)this.glyphNameIndex.push(n.readUInt16());for(this.names=[],a=[];n.pos<this.offset+this.length;)r=n.readByte(),a.push(this.names.push(n.readString(r)));return a;case 151552:return i=n.readUInt16(),this.offsets=n.read(i);case 196608:break;case 262144:return this.map=function(){var s,l,c;for(c=[],o=s=0,l=this.file.maxp.numGlyphs;0<=l?s<l:s>l;o=0<=l?++s:--s)c.push(n.readUInt32());return c}.call(this)}},t}(),n7n=function(e,t){this.raw=e,this.length=e.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},r7n=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return bv(t,Rm),t.prototype.tag="name",t.prototype.parse=function(n){var r,i,a,o,s,l,c,u,d,f,p;for(n.pos=this.offset,n.readShort(),r=n.readShort(),l=n.readShort(),i=[],o=0;0<=r?o<r:o>r;o=0<=r?++o:--o)i.push({platformID:n.readShort(),encodingID:n.readShort(),languageID:n.readShort(),nameID:n.readShort(),length:n.readShort(),offset:this.offset+l+n.readShort()});for(c={},o=d=0,f=i.length;d<f;o=++d)a=i[o],n.pos=a.offset,u=n.readString(a.length),s=new n7n(u,a),c[p=a.nameID]==null&&(c[p]=[]),c[a.nameID].push(s);this.strings=c,this.copyright=c[0],this.fontFamily=c[1],this.fontSubfamily=c[2],this.uniqueSubfamily=c[3],this.fontName=c[4],this.version=c[5];try{this.postscriptName=c[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=c[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=c[7],this.manufacturer=c[8],this.designer=c[9],this.description=c[10],this.vendorUrl=c[11],this.designerUrl=c[12],this.license=c[13],this.licenseUrl=c[14],this.preferredFamily=c[15],this.preferredSubfamily=c[17],this.compatibleFull=c[18],this.sampleText=c[19]},t}(),i7n=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return bv(t,Rm),t.prototype.tag="maxp",t.prototype.parse=function(n){return n.pos=this.offset,this.version=n.readInt(),this.numGlyphs=n.readUInt16(),this.maxPoints=n.readUInt16(),this.maxContours=n.readUInt16(),this.maxCompositePoints=n.readUInt16(),this.maxComponentContours=n.readUInt16(),this.maxZones=n.readUInt16(),this.maxTwilightPoints=n.readUInt16(),this.maxStorage=n.readUInt16(),this.maxFunctionDefs=n.readUInt16(),this.maxInstructionDefs=n.readUInt16(),this.maxStackElements=n.readUInt16(),this.maxSizeOfInstructions=n.readUInt16(),this.maxComponentElements=n.readUInt16(),this.maxComponentDepth=n.readUInt16()},t}(),a7n=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return bv(t,Rm),t.prototype.tag="hmtx",t.prototype.parse=function(n){var r,i,a,o,s,l,c;for(n.pos=this.offset,this.metrics=[],r=0,l=this.file.hhea.numberOfMetrics;0<=l?r<l:r>l;r=0<=l?++r:--r)this.metrics.push({advance:n.readUInt16(),lsb:n.readInt16()});for(a=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var u,d;for(d=[],r=u=0;0<=a?u<a:u>a;r=0<=a?++u:--u)d.push(n.readInt16());return d}(),this.widths=function(){var u,d,f,p;for(p=[],u=0,d=(f=this.metrics).length;u<d;u++)o=f[u],p.push(o.advance);return p}.call(this),i=this.widths[this.widths.length-1],c=[],r=s=0;0<=a?s<a:s>a;r=0<=a?++s:--s)c.push(this.widths.push(i));return c},t.prototype.forGlyph=function(n){return n in this.metrics?this.metrics[n]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[n-this.metrics.length]}},t}(),Jet=[].slice,o7n=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return bv(t,Rm),t.prototype.tag="glyf",t.prototype.parse=function(){return this.cache={}},t.prototype.glyphFor=function(n){var r,i,a,o,s,l,c,u,d,f;return n in this.cache?this.cache[n]:(o=this.file.loca,r=this.file.contents,i=o.indexOf(n),(a=o.lengthOf(n))===0?this.cache[n]=null:(r.pos=this.offset+i,s=(l=new l_(r.read(a))).readShort(),u=l.readShort(),f=l.readShort(),c=l.readShort(),d=l.readShort(),this.cache[n]=s===-1?new l7n(l,u,f,c,d):new s7n(l,s,u,f,c,d),this.cache[n]))},t.prototype.encode=function(n,r,i){var a,o,s,l,c;for(s=[],o=[],l=0,c=r.length;l<c;l++)a=n[r[l]],o.push(s.length),a&&(s=s.concat(a.encode(i)));return o.push(s.length),{table:s,offsets:o}},t}(),s7n=function(){function e(t,n,r,i,a,o){this.raw=t,this.numberOfContours=n,this.xMin=r,this.yMin=i,this.xMax=a,this.yMax=o,this.compound=!1}return e.prototype.encode=function(){return this.raw.data},e}(),l7n=function(){function e(t,n,r,i,a){var o,s;for(this.raw=t,this.xMin=n,this.yMin=r,this.xMax=i,this.yMax=a,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],o=this.raw;s=o.readShort(),this.glyphOffsets.push(o.pos),this.glyphIDs.push(o.readUInt16()),32&s;)o.pos+=1&s?4:2,128&s?o.pos+=8:64&s?o.pos+=4:8&s&&(o.pos+=2)}return e.prototype.encode=function(){var t,n,r;for(n=new l_(Jet.call(this.raw.data)),t=0,r=this.glyphIDs.length;t<r;++t)n.pos=this.glyphOffsets[t];return n.data},e}(),c7n=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return bv(t,Rm),t.prototype.tag="loca",t.prototype.parse=function(n){var r,i;return n.pos=this.offset,r=this.file.head.indexToLocFormat,this.offsets=r===0?function(){var a,o;for(o=[],i=0,a=this.length;i<a;i+=2)o.push(2*n.readUInt16());return o}.call(this):function(){var a,o;for(o=[],i=0,a=this.length;i<a;i+=4)o.push(n.readUInt32());return o}.call(this)},t.prototype.indexOf=function(n){return this.offsets[n]},t.prototype.lengthOf=function(n){return this.offsets[n+1]-this.offsets[n]},t.prototype.encode=function(n,r){for(var i=new Uint32Array(this.offsets.length),a=0,o=0,s=0;s<i.length;++s)if(i[s]=a,o<r.length&&r[o]==s){++o,i[s]=a;var l=this.offsets[s],c=this.offsets[s+1]-l;c>0&&(a+=c)}for(var u=new Array(4*i.length),d=0;d<i.length;++d)u[4*d+3]=255&i[d],u[4*d+2]=(65280&i[d])>>8,u[4*d+1]=(16711680&i[d])>>16,u[4*d]=(4278190080&i[d])>>24;return u},t}(),u7n=function(){function e(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return e.prototype.generateCmap=function(){var t,n,r,i,a;for(n in i=this.font.cmap.tables[0].codeMap,t={},a=this.subset)r=a[n],t[n]=i[r];return t},e.prototype.glyphsFor=function(t){var n,r,i,a,o,s,l;for(i={},o=0,s=t.length;o<s;o++)i[a=t[o]]=this.font.glyf.glyphFor(a);for(a in n=[],i)(r=i[a])!=null&&r.compound&&n.push.apply(n,r.glyphIDs);if(n.length>0)for(a in l=this.glyphsFor(n))r=l[a],i[a]=r;return i},e.prototype.encode=function(t,n){var r,i,a,o,s,l,c,u,d,f,p,h,m,g,v;for(i in r=Qet.encode(this.generateCmap(),"unicode"),o=this.glyphsFor(t),p={0:0},v=r.charMap)p[(l=v[i]).old]=l.new;for(h in f=r.maxGlyphID,o)h in p||(p[h]=f++);return u=function(y){var _,S;for(_ in S={},y)S[y[_]]=_;return S}(p),d=Object.keys(u).sort(function(y,_){return y-_}),m=function(){var y,_,S;for(S=[],y=0,_=d.length;y<_;y++)s=d[y],S.push(u[s]);return S}(),a=this.font.glyf.encode(o,m,p),c=this.font.loca.encode(a.offsets,m),g={cmap:this.font.cmap.raw(),glyf:a.table,loca:c,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(n)},this.font.os2.exists&&(g["OS/2"]=this.font.os2.raw()),this.font.directory.encode(g)},e}();zr.API.PDFObject=function(){var e;function t(){}return e=function(n,r){return(Array(r+1).join("0")+n).slice(-r)},t.convert=function(n){var r,i,a,o;if(Array.isArray(n))return"["+function(){var s,l,c;for(c=[],s=0,l=n.length;s<l;s++)r=n[s],c.push(t.convert(r));return c}().join(" ")+"]";if(typeof n=="string")return"/"+n;if(n?.isString)return"("+n+")";if(n instanceof Date)return"(D:"+e(n.getUTCFullYear(),4)+e(n.getUTCMonth(),2)+e(n.getUTCDate(),2)+e(n.getUTCHours(),2)+e(n.getUTCMinutes(),2)+e(n.getUTCSeconds(),2)+"Z)";if({}.toString.call(n)==="[object Object]"){for(i in a=["<<"],n)o=n[i],a.push("/"+i+" "+t.convert(o));return a.push(">>"),a.join(`
`)}return""+n},t}();const Phe=(e,t)=>{const n=URL.createObjectURL(t),r=document.createElement("a");r.href=n,r.download=e,document.body.appendChild(r),r.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window})),document.body.removeChild(r)},S0=(e,t,n=gi.TXT)=>{const r=new Blob([t],{type:n});Phe(e,r)},d7n=e=>{const t=new Blob([e],{type:`${e.type};charset=utf-8`}),n=URL.createObjectURL(t),r=document.createElement("a");r.href=n,r.target="_blank",r.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window}))},f7n=e=>e.slice(0),p7n=async e=>({content:await e.arrayBuffer()}),h7n=async e=>{const t=await e.text();try{const n=JSON.parse(t);return{content:JSON.stringify(n,null,2),displayLanguage:hc.JSON}}catch{return{content:t,displayLanguage:hc.PLAIN_TEXT}}},ett=async e=>{const t=e instanceof Blob,n={[gi.TXT]:hc.PLAIN_TEXT,[gi.CSV]:hc.PLAIN_TEXT,[gi.HTML]:hc.HTML,[gi.MD]:hc.MARKDOWN,[gi.XML]:hc.XML};if(!t)return{content:e,displayLanguage:hc.PLAIN_TEXT};if(e.type.includes(gi.JSON))return h7n(e);if(e.type.includes(gi.TXT)||e.type.includes(gi.CSV)||e.type.includes(gi.HTML)||e.type.includes(gi.MD)||e.type.includes(gi.XML)){const r=e.type;return{content:await e.text(),displayLanguage:n[r]}}return p7n(e)},m7n=(e,t,n)=>{const r=new zr,{width:i,height:a}=n,o=r.internal.pageSize.getWidth(),s=r.internal.pageSize.getHeight(),l=i/a;let c=o,u=o/l;u>s&&(u=s,c=u*l);const d=(o-c)/2;r.addImage(e,"PNG",d,0,c,u),r.save(t)},g7n=e=>{const t=window.atob(e),n=t.length,r=new Uint8Array(n);for(let i=0;i<n;i++)r[i]=t.charCodeAt(i);return r},v7n=(e,t)=>{const n=new FileReader;n.readAsDataURL(e),n.onload=()=>t(n.result)},ttt=e=>{const t={"/9j/":gi.JPEG,iVBORw0KGgo:gi.PNG,PHN2Z:gi.SVG};for(const n in t)if(e.startsWith(n))return t[n];return null},y7n=e=>{const t=ttt(e);return t?`logo.${t.split("/")[1]}`:null},b7n=e=>{const t=g7n(e),n=ttt(e),r=y7n(e);return!n||!r?null:new File([t],r,{type:n})},_7n=e=>{const t=b7n(e);if(!t)return null;const n=`data:${t.type};base64,${e}`;return{uid:"-1",name:t.name,status:"done",originFileObj:t,preview:n}},S7n=(e,t,n)=>kl.post(`/api/v2/workspaces/${n}/pipelines/${e}/feedback`,t),E7n=(e,t,n,r)=>kl.patch(`/api/v2/workspaces/${r}/pipelines/${e}/feedback/${t}`,n),C7n=(e,t,n)=>{const r={limit:t?.limit||50,...t?.after&&{after:t.after},...t?.page_number&&{page_number:t.page_number},...t?.field&&{field:t.field},...t?.order&&{order:t.order},...t?.filter&&{filter:t.filter}};return kl.get(`/api/v2/workspaces/${n}/pipelines/${e}/tags`,{params:r})},w7n=(e,t,n=Qi())=>{const r={...t,comment:t.comment||""};return rn.post(`/api/v2/workspaces/${n}/pipelines/${e}/feedback`,r)},x7n=(e,t,n,r=Qi())=>rn.patch(`/api/v2/workspaces/${r}/pipelines/${e}/feedback/${t}`,n),ntt=(e,t,n=Qi())=>{const r={limit:t?.limit||10,...t?.after&&{after:t.after},...t?.page_number&&{page_number:t.page_number},...t?.field&&{field:t.field},...t?.order&&{order:t.order},...t?.filter&&{filter:t.filter},...t?.select&&{select:t.select}};return rn.get(`/api/v2/workspaces/${n}/pipelines/${e}/feedback`,{params:r})},rtt=async(e,t,n=Qi())=>{const{data:{data:r,has_more:i}}=await ntt(e,t,n);if(!i)return r;const a=t?.page_number?t.page_number+1:2,o={...t,page_number:a};return[...r,...await rtt(e,o,n)]},T7n=(e,t=Qi())=>rn.get(`/api/v2/workspaces/${t}/pipelines/${e}/feedback/export`,{responseType:"blob"}),I7n=(e,t,n=Qi())=>{const r={limit:t?.limit||50,...t?.after&&{after:t.after},...t?.page_number&&{page_number:t.page_number},...t?.field&&{field:t.field},...t?.order&&{order:t.order},...t?.filter&&{filter:t.filter},...t?.select&&{select:t.select}};return rn.get(`/api/v2/workspaces/${n}/pipelines/${e}/tags`,{params:r})},A7n=(e,t,n=Qi())=>rn.post(`/api/v2/workspaces/${n}/pipelines/${e}/tags`,t),R7n=(e,t,n=Qi())=>rn.delete(`/api/v2/workspaces/${n}/pipelines/${e}/tags/${t}`),N7n=e=>({type:LXe,payload:e}),O7n={type:AXe},L7n={type:PXe},P7n=e=>({type:IXe,payload:e}),rRe=Ut(fM,async({type:e,resultId:t,queryId:n,pipelineId:r,comment:i,tags:a,bookmarked:o,isExternal:s,successMessage:l},{dispatch:c,rejectWithValue:u,getState:d})=>{const f=s?S7n:w7n;let p;if(s){const{tokenData:m}=d().sharedPrototypeStore;p=m?.workspaceID}const h={score:e,comment:i,tags:a,bookmarked:o,result_id:t,query_id:n};try{const{data:m}=await f(r,h,p);return c(jn({content:l??KZe,type:yn.Success})),m}catch(m){return c(jn({content:Wn(m),type:yn.Error})),u(m)}}),k7n=Ut(pM,async({type:e,feedbackId:t,resultId:n,queryId:r,pipelineId:i,comment:a,tags:o,bookmarked:s,isExternal:l,successMessage:c},{dispatch:u,rejectWithValue:d,getState:f})=>{const p=l?E7n:x7n;let h;if(l){const{tokenData:_}=f().sharedPrototypeStore;h=_?.workspaceID}const{providedFeedbackByResultId:m}=f().pipelineFeedbackStore,{score:g}=m[n],v=g!==e?h1n:KZe,y={score:e,comment:a,tags:o,bookmarked:s,result_id:n,query_id:r};try{const{data:_}=await p(i,t,y,h);return u(jn({content:c||v,type:yn.Success})),_}catch(_){return u(jn({content:Wn(_),type:yn.Error})),d(_)}}),M7n=Ut(hM,async({pipelineId:e,currentPage:t,pageSize:n,searchValue:r,sortValue:i,filterValues:a},{rejectWithValue:o,getState:s,dispatch:l})=>{const{feedbackSortValue:c}=s().pipelineFeedbackStore,u=i||c;l(N7n(u));const{field:d,order:f}=C1n[u]||{},p=r&&b0("search_history/search_query",r),h=a&&Im(a),m={page_number:t,limit:n,field:d,order:f,filter:XO(p,h)};try{const{data:g}=await ntt(e,m);return g}catch(g){return o(g)}}),D7n=Ut(Wdn,async({pipelineId:e,pipelineName:t},{rejectWithValue:n,dispatch:r})=>{try{const{data:i}=await T7n(e);return S0(`${t}.csv`,i,gi.CSV),i}catch(i){return r(jn({content:Wn(i),type:yn.Error})),n(i)}}),$7n={type:OXe},F7n=Ut(NXe,async({pipelineId:e,isExternal:t},{rejectWithValue:n,getState:r})=>{const i=t?C7n:I7n;let a;if(t){const{tokenData:o}=r().sharedPrototypeStore;a=o?.workspaceID}try{const{data:o}=await i(e,{},a);return o}catch(o){return n(o)}}),B7n=Ut(mM,async({pipelineId:e,tagName:t},{rejectWithValue:n,dispatch:r})=>{try{const i={name:t},{data:a}=await A7n(e,i);return r(jn({content:v1n,type:yn.Success})),a}catch(i){return r(jn({content:Wn(i),type:yn.Error})),n(i)}}),j7n=Ut(gM,async({pipelineId:e,tagId:t},{rejectWithValue:n,dispatch:r})=>{try{const{data:i}=await R7n(e,t);return r(jn({content:y1n,type:yn.Success})),i}catch(i){return r(jn({content:Wn(i),type:yn.Error})),n(i)}}),z7n=Ut(RXe,async(e,{rejectWithValue:t})=>{const n={select:"created_by"};try{return await rtt(e,n)}catch(r){return t(r)}}),_v=e=>e.pipelineFeedbackStore,U7n=It(_v,e=>e.pipelineFeedback),H7n=It(_v,e=>e.getPipelineFeedbackStatus),V7n=It(_v,e=>e.feedbackSortValue),G7n=It(_v,e=>e.pipelineFeedbackFilterValues),q7n=It(_v,e=>e.providedFeedbackByResultId),W7n=It(_v,e=>e.providedPipelineFeedbackStatus),Y7n=It(_v,e=>e.updatedPipelineFeedbackStatus),K7n=It(_v,e=>e.pipelineFeedbackTagsByPipelineId),X7n=It(_v,e=>e.createPipelineFeedbackTagStatus),Z7n=It(_v,e=>e.deletePipelineFeedbackTagStatus),Sv=()=>{const e=ir(),t=st(U7n),n=st(H7n),r=st(V7n),i=st(G7n),a=st(q7n),o=st(W7n),s=st(Y7n),l=st(K7n),c=st(X7n),u=st(Z7n),d=({pipelineId:T,isExternal:A})=>{e(F7n({pipelineId:T,isExternal:A}))},f=(T,A)=>{e(D7n({pipelineId:T,pipelineName:A}))},p=(T,A)=>{e(B7n({pipelineId:T,tagName:A}))},h=(T,A)=>{e(j7n({pipelineId:T,tagId:A}))},m=()=>{e(O7n)},g=()=>{e($7n)},v=()=>{e(L7n)},y=(T,A)=>{e(P7n({resultId:T,feedback:A}))},_=T=>{e(M7n(T))},S=T=>{e(z7n(T))},C=({type:T,feedbackId:A,resultId:I,queryId:R,pipelineId:N,comment:P,tags:L,bookmarked:$,successMessage:D,isExternal:z})=>{e(k7n({feedbackId:A,resultId:I,pipelineId:N,queryId:R,type:T,comment:P,tags:L,bookmarked:$,isExternal:z,successMessage:D}))};return{providedFeedbackByResultId:a,providedPipelineFeedbackStatus:o,updatedPipelineFeedbackStatus:s,pipelineFeedback:t,getPipelineFeedbackStatus:n,selectedFeedbackSortValue:r,setProvidedFeedbackByResultId:y,resetFeedbackData:m,getPipelineFeedback:_,exportPipelineFeedbackCSV:f,providedSearchResultFeedback:({type:T,resultId:A,queryId:I,pipelineId:R,comment:N,tags:P,isExternal:L})=>{if(a[A]){const{feedback_id:$}=a[A];C({type:T,feedbackId:$,resultId:A,queryId:I,pipelineId:R,comment:N,tags:P,isExternal:L});return}e(rRe({resultId:A,pipelineId:R,queryId:I,type:T,comment:N,tags:P,isExternal:L}))},updateSearchResultFeedback:C,bookmarkSearchResult:({resultId:T,queryId:A,pipelineId:I,bookmarked:R,isExternal:N})=>{const P=R?m1n:g1n;if(a[T]){const{feedback_id:L}=a[T];C({feedbackId:L,resultId:T,queryId:A,pipelineId:I,bookmarked:R,isExternal:N,successMessage:P});return}e(rRe({type:null,resultId:T,pipelineId:I,queryId:A,bookmarked:R,isExternal:N,successMessage:P}))},pipelineFeedbackTagsByPipelineId:l,createPipelineFeedbackTagStatus:c,deletePipelineFeedbackTagStatus:u,getFeedbackTags:d,createFeedbackTag:p,deleteFeedbackTag:h,resetFeedbackTags:g,pipelineFeedbackFilterValues:i,getPipelineFeedbackFilterUser:S,resetProvidedFeedbackStatus:v}},xU=()=>{const e=ir(),{resetProvidedFeedbackStatus:t}=Sv(),n=st(SU),r=st(Pet),i=()=>{Yh.getInstance().abortAll(),e(IF),t()},a=st(Det),o=st(p9n);return{search:async p=>{const{pipelineOutputType:h}=p,m=h===xd.CHAT||h===xd.GENERATIVE;e(Net({streaming:m,...p}))},searchResult:n,searchStatus:r,resetSearchResults:i,chat:async p=>{e(e9n({streaming:!0,viewPrompts:!0,...p}))},resetChatResults:()=>{Yh.getInstance().abortAll(),e(Kkn),t()},chatResults:a,chatQueryStatus:o,queryPromptExplorer:async p=>{e(n9n({streaming:!0,viewPrompts:!0,...p}))},addPromptExplorerInfoResult:({playgroundId:p,infoText:h})=>{e(r9n({playgroundId:p,infoText:h}))},resetSearchResultsPromptExplorer:p=>{Yh.getInstance().abort(`${qO.PROMPT_EXPLORER_QUERY}_${p}`),e(Zkn(p)),t()}}},Q7n=(e,t=er())=>rn.get(`/api/v1/workspaces/${t}/pipelines/${e}/meta`),J7n=(e,t,n,r,i=er())=>rn.get(`/api/v1/workspaces/${i}/pipelines/${e}/meta/${t}`,{params:{query:`*${n}*`,limit:r}}),eMn=(e,t,n=er())=>rn.get(`/api/v1/workspaces/${n}/pipelines/${e}/meta/${t}/aggregation`),pc=e=>({type:nKe,payload:e}),Fb=e=>({type:rKe,payload:e}),TU=Ut(I7,async({pipelineName:e,isExternal:t=!1},{rejectWithValue:n,getState:r})=>{const i=t?akn:Q7n;let a;if(t){const{tokenData:o}=r().sharedPrototypeStore;a=o?.workspaceName}try{return(await i(e,a)).data}catch(o){return n(o)}}),tMn=Ut(gR,async({pipelineName:e,fieldName:t,query:n,limit:r,isExternal:i},{rejectWithValue:a,getState:o})=>{const s=i?okn:J7n;let l;if(i){const{tokenData:c}=o().sharedPrototypeStore;l=c?.workspaceName}try{const c=await s(e,t,n,r,l);return{[t]:c.data.data}}catch(c){return a(c)}}),nMn=Ut(gR,async({pipelineName:e,fieldName:t,isExternal:n},{rejectWithValue:r,getState:i})=>{const a=n?skn:eMn;let o;if(n){const{tokenData:s}=i().sharedPrototypeStore;o=s?.workspaceName}try{const s=await a(e,t,o);return{[t]:{...s.data}}}catch(s){return r(s)}}),{useToken:rMn}=Fd,iMn=()=>{const{token:e}=rMn();return E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"160",height:"160",viewBox:"0 0 160 160",fill:"none",children:[E.jsx("path",{d:"M28.8086 54.375H152.558V94.9999H147.871V105.625L137.246 94.9999H28.8086V54.375Z",fill:"#E6E6E6"}),E.jsx("path",{d:"M149.121 58.3301H32.2461V90.83H149.121V58.3301Z",fill:"white"}),E.jsx("path",{d:"M97.9168 67.8203H41.6445V69.528H97.9168V67.8203Z",fill:e.colorPrimary}),E.jsx("path",{d:"M139.722 73.7285H41.6445V75.4362H139.722V73.7285Z",fill:"#E6E6E6"}),E.jsx("path",{d:"M139.626 79.6348H41.6445V81.3425H139.626V79.6348Z",fill:"#E6E6E6"}),E.jsx("path",{d:"M130.683 108.75H6.93359V149.375H11.6211V160L22.246 149.375H130.683V108.75Z",fill:"#E6E6E6"}),E.jsx("path",{d:"M127.246 112.705H10.3711V145.205H127.246V112.705Z",fill:"white"}),E.jsx("path",{d:"M76.9803 122.508H20.708V124.216H76.9803V122.508Z",fill:e.colorPrimary}),E.jsx("path",{d:"M118.786 128.416H20.708V130.124H118.786V128.416Z",fill:"#E6E6E6"}),E.jsx("path",{d:"M118.69 134.322H20.708V136.03H118.69V134.322Z",fill:"#E6E6E6"}),E.jsx("path",{d:"M130.683 0H6.93359V40.6249H11.6211V51.2501L22.246 40.6249H130.683V0Z",fill:"#E6E6E6"}),E.jsx("path",{d:"M127.246 3.95508H10.3711V36.455H127.246V3.95508Z",fill:"white"}),E.jsx("path",{d:"M76.9803 13.7578H20.708V15.4655H76.9803V13.7578Z",fill:e.colorPrimary}),E.jsx("path",{d:"M118.786 19.666H20.708V21.3737H118.786V19.666Z",fill:"#E6E6E6"}),E.jsx("path",{d:"M118.69 25.5742H20.708V27.2819H118.69V25.5742Z",fill:"#E6E6E6"})]})},iRe=768,aMn=1024,kC=()=>{const e=()=>window?.screen,[t,n]=b.useState(e()),r=()=>{n(e())},i=()=>t?.width<=iRe,a=()=>t?.width>iRe&&t?.width<=aMn;return b.useEffect(()=>window?.addEventListener?(window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r)}):()=>{},[]),{screen:t,isMobileScreen:i(),isTabletScreen:a()}},itt=(e,t=[],n=1e3)=>{b.useEffect(()=>{const{current:r}=e;if(!r)return()=>{};let i;const a=new MutationObserver(()=>{clearTimeout(i),r.scrollTo({top:r.scrollHeight,behavior:"smooth"}),i=window.setTimeout(()=>{a.disconnect()},n)});return a.observe(r,{childList:!0,subtree:!0}),()=>{clearTimeout(i),a.disconnect()}},t)},oMn="Type your message here...",sMn="Let's chat",lMn="Here, you can ask any questions and get answers based on the files in your workspace. Don't forget to give a thumbs up or down to show if the answer was correct.",cMn="Make sure that the selected pipeline is generative and it's deployed";function uMn(e,t){return kl.get(`/api/v1/workspaces/${t}/pipelines/${e}`)}function dMn(e,t){return kl.post(`/api/v1/workspaces/${t}/pipelines/${e}/activate`)}const fMn="Overview",pMn="Logs",hMn="Settings",mMn="Activate",att="documentation",ott="logs",gMn="Your pipeline ignored some files and didn't index them. These files will be excluded from search results. ",vMn="There aren’t any logs for this pipeline yet. Once deployed, you will be able to view all logs.",yMn="There are no logs for this pipeline. This is either because there was nothing to log or this pipeline was deployed more than two days ago. We keep logs for the last two days or since the last deployment, whichever is latest.",bMn="There aren't any logs for your filters. Change or clear the filters.",_Mn="There aren't any logs for your search. Change or clear the search.",SMn="Clear all filters",EMn="Showing %totalPerPage%",CMn=" of %totalItems%",wMn="Formatted",xMn="Raw",TMn="Copy to clipboard",oJ="Caused by:",IMn="Raw text copied to clipboard",uI="line",sJ=". See the stack trace above for more information. Skipping handling indexing requests. pipeline_ Traceback (most recent call last):",AMn="Search for logs",RMn="Download CSV",NMn="Enable autorefresh",OMn="Feedback tags",LMn="Add feedback tags that you find relevant for the use-case. The tags added here, will be available to be selected when providing feedback on an answer.",PMn="Tags";var T1=(e=>(e.OVERVIEW="overview",e.LOGS="logs",e.SETTINGS="settings",e))(T1||{}),Soe=(e=>(e.FORMATTED="formatted",e.RAW="raw",e))(Soe||{}),op=(e=>(e.DEBUG="debug",e.INFO="info",e.WARNING="warning",e.ERROR="error",e.CRITICAL="critical",e))(op||{});const lJ={LEVEL:"level",ORIGIN:"origin",DATE_ADDED:"logged_at"},kMn="Level",MMn="Origin",DMn="Date added",$Mn=[{key:"info",label:"info"},{key:"warning",label:"warning"},{key:"error",label:"error"}],FMn=[{key:"querypipeline",label:"query"},{key:"indexingpipeline",label:"indexing"}],BMn=[{key:"date_15_m",label:"Last 15m"},{key:"date_30_m",label:"Last 30m"},{key:"date_1_h",label:"Last 1h"},{key:"date_2_h",label:"Last 2h"},{key:"date_4_h",label:"Last 4h"},{key:"date_1_d",label:"Last 1d"},{key:"date_2_d",label:"Last 2d"}],Eoe=20,dI=`${zu}docs/troubleshooting-pipeline-deployment`,stt=[{status:"Failed to deploy",documentation:dI,type:Er.ERROR,title:"Pipeline failed to deploy",message:"There could be multiple reasons that caused the deployment of your pipeline to fail. Check out our %documentation% for step by step troubleshooting."},{status:"Indexing failed",documentation:dI,type:Er.ERROR,title:"Pipeline failed to index",message:"There could be multiple reasons that caused the indexing of your pipeline to fail. Check out our %documentation% for step by step troubleshooting."},{status:"Partially Indexed",documentation:dI,type:Er.WARNING,title:"Not all files were indexed",message:"There could be multiple reasons that some files failed to index. Check out our %documentation% for step by step troubleshooting."},{status:"Unhealthy",documentation:dI,type:Er.WARNING,title:"Your pipeline is unhealthy",message:"Wait a couple of seconds for this issue to resolve. If a pipeline takes longer than 2 seconds to respond, it becomes unhealthy. It's a temporary state caused by high load or other temporary problems. You don't need to take any action."},{status:"Failed to undeploy",documentation:dI,type:Er.ERROR,title:"Your pipeline didn't deploy",message:"Wait a couple of seconds and try again. If it doesn't deploy, check our %documentation% to learn how to resolve it."},{status:"Indexed",type:Er.WARNING,title:"Your pipeline has issues",message:"Check the %logs% for details and remedy actions."},{status:"Standby",type:Er.INFO,title:"This pipeline is on standby",message:"Unused pipelines automatically enter standby mode after %idleTimeout% to save resources. Your data is still there, secure and accessible. %activate% the pipeline to use it."}],jMn=20;function zMn(e,t=er()){const n={limit:e?.limit||WO,...e?.name&&{pipeline_name:e?.name},...e?.after&&{after:e?.after},...e?.page_number&&{page_number:e?.page_number},...e?.desired_status&&{desired_status:e?.desired_status},...e?.status&&{status:e?.status},...e?.supports_prompt&&{supports_prompt:e?.supports_prompt},...e?.service_level&&{service_level:e?.service_level},...e?.field&&{field:e?.field},...e?.order&&{order:e?.order}};return rn.get(`/api/v1/workspaces/${t}/pipelines`,{params:n})}function UMn(e,t=er()){return rn.get(`/api/v1/workspaces/${t}/pipelines/${e}`)}function o8(e,t=er()){return rn.get(`/api/v1/workspaces/${t}/pipelines/${e}/yaml`)}function HMn(e,t=er()){return rn.get(`/api/v1/workspaces/${t}/pipelines/${e}/indexing`)}function VMn(e,t={},n=er()){return rn.post(`/api/v1/workspaces/${n}/pipelines`,e,{params:t})}function khe(e,t,n=er()){return rn.put(`/api/v1/workspaces/${n}/pipelines/${e}/yaml`,t)}function GMn(e,t,n=er()){return rn.patch(`/api/v1/workspaces/${n}/pipelines/${e}`,t)}function ltt(e,t=er()){return rn.delete(`/api/v1/workspaces/${t}/pipelines/${e}`)}function qMn(e,t=er()){return rn.post(`/api/v1/workspaces/${t}/pipelines/${e}/deploy`)}function WMn(e,t=er()){return rn.post(`/api/v1/workspaces/${t}/pipelines/${e}/undeploy`)}function YMn(e,t=er()){return rn.post(`/api/v1/workspaces/${t}/pipelines/${e}/activate`)}const KMn=(e,t=er())=>rn.get(`/api/v1/workspaces/${t}/pipelines/${e}/stats`),ctt=(e,t,n=er())=>{const r={limit:t?.limit,...t?.after&&{after:t.after},...t?.filter&&{filter:t.filter}};return rn.get(`/api/v1/workspaces/${n}/pipelines/${e}/search_history`,{params:r,headers:{Accept:"application/json"}})},utt=async(e,t,n=er())=>{const{data:{data:r,has_more:i}}=await ctt(e,t,n);if(!i||r.length===0)return r;const a=t.after!==void 0?t.after+r.length-1:r.length-1,o={...t,after:a};return[...r,...await utt(e,o,n)]};function XMn(e,t,n=er()){const r={expiration_date:t.expirationDate.toISOString(),pipeline_names:[e],...t?.description&&{description:t.description},show_metadata_filters:!!t.showMetadataFilters,show_files:!!t.showFiles,...t?.brandColor&&{brand_color:t.brandColor},...t?.brandLogo&&{brand_logo:t.brandLogo}};return rn.post(`/api/v1/workspaces/${n}/shared_prototypes`,r)}const ZMn=(e,t=er())=>{const n={filter:`shared_pipelines/any(d:d/name eq '${e}')`};return rn.get(`/api/v1/workspaces/${t}/shared_prototypes`,{params:n})},QMn=(e,t,n=er())=>{const r={description:t.description,show_metadata_filters:t.showMetadataFilters,show_files:t.showFiles,brand_color:t.brandColor,brand_logo:t.brandLogo};return rn.patch(`/api/v1/workspaces/${n}/shared_prototypes/${e}`,r)},JMn=(e,t=er())=>rn.delete(`/api/v1/workspaces/${t}/shared_prototypes/${e}`),eDn=(e,t=er())=>{const n={convert_special_tokens:!0};return rn.get(`/api/v1/workspaces/${t}/pipelines/${e}/prompts`,{params:n})},dtt=(e,t,n=er())=>{const r={limit:t?.limit||Eoe,...t?.after&&{after:t?.after},...t?.filter&&{filter:t?.filter}};return rn.get(`/api/v1/workspaces/${n}/pipelines/${e}/logs`,{params:r})},tDn=(e,t=er())=>rn.get(`/api/v1/workspaces/${t}/pipelines/${e}/logs`,{responseType:"blob",headers:{Accept:gi.CSV}}),IU=(e,t=er())=>{const n={limit:e?.limit||jMn,...e?.page_number&&{page_number:e.page_number},...e?.field&&{field:e.field},...e?.order&&{order:e.order},...e?.filter&&{filter:e.filter},...e?.select&&{select:e.select}};return rn.get(`/api/v1/workspaces/${t}/pipeline_templates`,{params:n})},ftt=async(e,t=IU,n=er())=>{const{data:{data:r,has_more:i}}=await t(e,n);if(!i)return r;const a=e?.page_number?e.page_number+1:2,o={...e,page_number:a};return[...r,...await ftt(o,t,n)]},nDn=(e,t=er())=>rn.get(`/api/v1/workspaces/${t}/pipeline_templates/${e}`),rDn=(e,t=er())=>rn.post(`/api/v1/workspaces/${t}/pipeline_validations`,e),iDn=(e,t=er())=>rn.get(`/api/v1/workspaces/${t}/pipelines/${e}/issues`),rOr=()=>rn.get("/api/v1/haystack/components"),iOr=()=>rn.get("/api/v1/haystack/components/input-output"),aOr=e=>rn.post("/api/v1/haystack/components/input-output/generate",e),aDn=(e,t=er())=>rn.post(`/api/v1/workspaces/${t}/indexes/${e}/documents-stream`,{},{responseType:"blob",headers:{Accept:gi.CSV}});let ptt,Coe=0,htt,woe=0,xoe,Toe,mtt;const $M=e=>({type:PYe,payload:e}),gtt=e=>({type:kYe,payload:e}),oDn=e=>({type:MYe,payload:e}),sDn={type:DYe},lDn=e=>({type:BYe,payload:e}),cDn=e=>({type:jYe,payload:e}),uDn=e=>({type:zYe,payload:e}),dDn={type:UYe},fDn=e=>({type:HYe,payload:e}),pDn=e=>({type:VYe,payload:e}),Ioe=e=>({type:FYe,payload:e}),hDn={type:$Ye},VT={type:hYe},Aoe={type:sYe},i6={type:uYe},NF={type:dYe},aRe={type:vpe},mDn={type:bYe},vtt={type:_Ye},gDn={type:XWe},vDn={type:ZWe},Mhe={type:tYe},Dhe={type:QWe};function ytt(e){return{type:nYe,payload:e}}function yDn(e){return{type:rYe,payload:e}}const btt=e=>({type:mYe,payload:e}),Roe=e=>({type:iYe,payload:e}),bDn=e=>({type:aYe,payload:e}),_Dn=e=>({type:oYe,payload:e}),_tt=e=>{const t=L_(e);return e.content?e.content:t===Qs.CONFLICT?e5.PIPELINE_NAME_ALREADY_USED:Wn(e)},OF=Ut(eYe,async e=>(await o8(e)).data),Yg=Ut(JWe,async({pipelineName:e,isExternal:t},{getState:n})=>{const r=t?uMn:UMn;let i;if(t){const{tokenData:o}=n().sharedPrototypeStore;i=o?.workspaceName}const{data:a}=await r(e,i);return a}),eC=Ut(gYe,async e=>(await HMn(e)).data),j_=Ut(v7,async({currentPage:e,pageSize:t,searchValue:n,sortValue:r,desiredStatus:i,status:a,supportsPrompt:o,serviceLevel:s},{rejectWithValue:l,dispatch:c})=>{const u=M_.getState(),{sortValuePipelinesList:d}=u.pipelineStore,f=r||d;c(Ioe(f));const{field:p,order:h}=imn[f]||{},m={page_number:e,limit:t,name:n,desired_status:i,status:a,supports_prompt:o,service_level:s,field:p,order:h};try{return(await zMn(m)).data}catch(g){return c(jn({content:Wn(g),type:yn.Error})),l(g)}}),Noe=()=>(clearInterval(ptt),Coe=0,{type:Qun}),SDn=(e,t,n,r)=>i=>(i(Noe()),ptt=setInterval(()=>{const a=M_.getState(),{fetchPipelinesListStatus:o,activeTabPipelinesLandingPage:s}=a.pipelineStore;o!==Me.IN_PROGRESS&&(Coe++,Coe>60&&i(Noe()),i(j_({currentPage:e,pageSize:t,searchValue:n,serviceLevel:s})))},r),{type:Zun}),a6=()=>(clearInterval(htt),woe=0,{type:edn}),EDn=(e,t,n,r)=>i=>(i(a6()),htt=setInterval(()=>{const a=M_.getState(),{fetchDeployedInProgress:o}=a.pipelineStore;o||(woe++,woe>60&&i(a6()),i(j_({currentPage:e,pageSize:t,searchValue:n,desiredStatus:qs.DEPLOYED})))},r),{type:Jun}),Stt=Ut(sae,async(e,{rejectWithValue:t,dispatch:n})=>{try{const r=await ltt(e);return n(jn({content:P_.DELETE_SUCCESS,type:yn.Success})),r.data}catch(r){return n(jn({content:Wn(r),type:yn.Error})),t(r)}}),CDn=Ut(lae,async(e,{rejectWithValue:t,dispatch:n})=>{try{const r=e.map(a=>ltt(a)),i=await Promise.all(r);return n(jn({content:P_.MULTIPLE_DELETE_SUCCESS,type:yn.Success})),i}catch(r){return n(jn({content:Wn(r),type:yn.Error})),t(r)}}),AU=Ut(p7,async(e,{rejectWithValue:t,dispatch:n})=>{try{const r=await qMn(e);return n(jn({content:P_.DEPLOY_START_SUCCESS})),r.data}catch(r){const i=L_(r);return n(jn({content:Wn(r),type:i===Qs.UNDEPLOYED_PIPELINE_ERROR_STATUS?yn.Warning:yn.Error,duration:mm.long})),t(r)}}),RU=Ut(cae,async(e,{rejectWithValue:t,dispatch:n})=>{try{const r=await WMn(e);return n(jn({content:P_.UNDEPLOY_START_SUCCESS})),r.data}catch(r){const i=L_(r);return n(jn({content:Wn(r),type:i===Qs.UNDEPLOYED_PIPELINE_ERROR_STATUS?yn.Warning:yn.Error})),t(r)}}),o6=Ut(uae,async({pipelineName:e,isExternal:t},{rejectWithValue:n,dispatch:r,getState:i})=>{const a=t?dMn:YMn;let o;if(t){const{tokenData:s}=i().sharedPrototypeStore;o=s?.workspaceName}try{const{data:s}=await a(e,o);return s}catch(s){return r(jn({content:Wn(s),type:yn.Error})),n(s)}}),s8=Ut(h7,async({code:e,pipelineName:t,deepsetCloudVersion:n,indexingYaml:r,queryYaml:i},{dispatch:a,rejectWithValue:o})=>{try{const l=await VMn({name:t,config:e,deepset_cloud_version:n,indexing_yaml:r,query_yaml:i});return a(jn({content:P_.SAVE_SUCCESS,type:yn.Success})),l.data}catch(s){const l=L_(s);return a(jn({content:_tt(s),duration:mm.long,type:l===Qs.UNDEPLOYED_PIPELINE_ERROR_STATUS?yn.Warning:yn.Error})),o(s)}}),Ett=Ut(m7,async({name:e,code:t,indexing_yaml:n,query_yaml:r},{dispatch:i,rejectWithValue:a})=>{try{const o=await khe(e,t||{indexing_yaml:n||"",query_yaml:r||""});return i(jn({content:P_.SAVE_SUCCESS,type:yn.Success})),o.data}catch(o){const s=L_(o);return i(jn({content:_tt(o),duration:mm.long,type:s===Qs.UNDEPLOYED_PIPELINE_ERROR_STATUS?yn.Warning:yn.Error})),a(o)}}),NU=Ut(g7,async({pipelineName:e,newPipelineName:t,serviceLevel:n},{dispatch:r,rejectWithValue:i})=>{if(!t&&!n)return i({content:P_.MISSIGN_PROPERTIES_ERROR});const a={name:t,service_level:n};try{const o=await GMn(e,a);return r(jn({content:t?Ohn:Lhn,type:yn.Success})),o.data}catch(o){return r(jn({content:Wn(o),type:yn.Error})),i(o)}}),B5=({pipelineName:e,isExternal:t})=>n=>(clearInterval(xoe),xoe=setInterval(()=>n(Yg({pipelineName:e,isExternal:t})),8e3),{type:tdn}),L3=()=>(clearInterval(xoe),{type:ndn}),Ctt=e=>t=>(clearInterval(Toe),Toe=setInterval(()=>t(eC(e)),8e3),{type:adn}),FM=()=>(clearInterval(Toe),{type:odn}),wtt=Ut(fYe,async(e,{rejectWithValue:t})=>{try{const n=await o8(e),{yaml:r}=n.data;return setTimeout(()=>G1.navigate("pipelines/designer")),r}catch(n){return t(n)}}),xtt=Ut(pYe,async(e,{rejectWithValue:t})=>{try{const n=await o8(e),{indexing_yaml:r,query_yaml:i}=n.data;return setTimeout(()=>G1.navigate("pipelines/editor")),{indexingYaml:r,queryYaml:i}}catch(n){return t(n)}}),oRe=Ut(dae,async(e,{rejectWithValue:t,dispatch:n})=>{try{return(await KMn(e)).data}catch(r){return n(jn({content:Wn(r),type:yn.Error})),t(r)}}),wDn=Ut(mR,async({name:e,limit:t,filter:n},{rejectWithValue:r,dispatch:i})=>{const a={limit:t,filter:n};try{return(await ctt(e,a)).data}catch(o){return i(jn({content:Wn(o),type:yn.Error})),r(o)}}),xDn=Ut(mR,async({name:e,limit:t,filter:n},{rejectWithValue:r,dispatch:i})=>{const a={limit:t,filter:n};try{const o=await utt(e,a);return{data:o,has_more:!1,total:o.length}}catch(o){return i(jn({content:Wn(o),type:yn.Error})),r(o)}}),TDn=Ut(b7,async({pipelineName:e,expirationDate:t,description:n,showMetadataFilters:r,showFiles:i,brandColor:a,brandLogo:o},{rejectWithValue:s,dispatch:l})=>{try{return(await XMn(e,{expirationDate:t,description:n,showMetadataFilters:r,showFiles:i,brandColor:a,brandLogo:o})).data}catch(c){return l(jn({content:Wn(c),type:yn.Error})),s(c)}}),IDn=Ut(fae,async e=>(await JMn(e)).data),ADn=Ut(_7,async({pipelineName:e},{rejectWithValue:t,dispatch:n})=>{try{const{data:{data:r}}=await ZMn(e);return r[0]}catch(r){return n(jn({content:Wn(r),type:yn.Error})),t(r)}}),RDn=Ut(sdn,async({sharedPrototypeId:e,description:t,showMetadataFilters:n,showFiles:r,brandColor:i,brandLogo:a},{rejectWithValue:o,dispatch:s})=>{try{return(await QMn(e,{showMetadataFilters:n,showFiles:r,description:t,brandColor:i,brandLogo:a})).data}catch(l){return s(jn({content:Wn(l),type:yn.Error})),o(l)}}),NDn=Ut(ldn,async(e,{rejectWithValue:t})=>{try{const{data:n}=await eDn(e);return n}catch(n){return t(n)}}),Ttt=Ut(y7,async(e,{rejectWithValue:t,dispatch:n})=>{const{pipelineName:r,filterValues:i,searchValue:a,...o}=e,s=i&&Im(i),l=a&&`message eq '${a}'`,u={filter:l?`${s?`${s} and `:""}${l}`:s,...o};try{const{data:d}=await dtt(r,u);return d}catch(d){return n(jn({content:Wn(d),type:yn.Error})),t(d)}}),ODn=Ut(yYe,async(e,{rejectWithValue:t,dispatch:n})=>{const{pipelineName:r,filterValues:i,...a}=e,o={...i,level:[{key:"error",label:"error",type:li.MULTI_SELECT,value:"error"}]},c={filter:`${o&&Im(o)}`,...a};try{const{data:u}=await dtt(r,c);return u}catch(u){return n(jn({content:Wn(u),type:yn.Error})),t(u)}}),LDn=Ut(vYe,async(e,{rejectWithValue:t,dispatch:n})=>{try{const r=await tDn(e);return S0(`${e}.csv`,r.data,gi.CSV),r.data}catch(r){return n(jn({content:Wn(r),type:yn.Error})),t(r)}}),PDn=e=>t=>(mtt=setInterval(()=>t(Ttt(e)),8e3),{type:rdn}),sRe=()=>(clearInterval(mtt),{type:idn}),$he=Ut(lYe,async(e,{rejectWithValue:t})=>{try{return(await rDn(e)).data}catch(n){return t(n)}}),Fhe=Ut(cYe,async(e,{rejectWithValue:t})=>{try{return(await iDn(e)).data.data}catch(n){return t(n)}}),kDn=Ut(cdn,async(e,{rejectWithValue:t,dispatch:n})=>{try{if(e.status===qn.IDLE)return await n(o6({pipelineName:e.name})),n(vp({content:qpn,type:yn.Warning})),!0;if(e.status!==qn.DEPLOYED)return n(vp({content:Wpn,type:yn.Warning})),!0;n(vp({content:Gpn,type:yn.Loading,mode:x1.Message,duration:0}));const r=`${e.name}-documents.csv`,i=await aDn(e.name);return S0(r,i.data,gi.CSV),n(vp({content:Pn(Ypn,{fileName:r},!1),type:yn.Success})),i.data}catch(r){return n(vp({content:Wn(r),type:yn.Error})),t(r)}}),GT=e=>e.metadataFiltersStore,MDn=It(GT,e=>e.pipelineMeta),DDn=It(GT,e=>e.pipelineMetaValues),$Dn=It(GT,e=>e.getMetadataValuesStatus);It(GT,e=>e.getPipelineMetaStatus);const qT=It(GT,e=>e.selectedMetaFilterValues),OU=It(GT,e=>e.appliedMetaFilterValues),_a=e=>e.pipelineStore,z_=It([_a,(e,t)=>t],(e,t)=>t===qs.DEPLOYED?e.deployedPipelines:t===qs.UNDEPLOYED?e.draftPipelines:e.pipelines),WT=It(_a,e=>e.pipeline),l8=It(_a,e=>e.message),FDn=It(_a,e=>e.status),BDn=It(_a,e=>e.actionStatus),jDn=It(_a,e=>e.fetchPipelinesListStatus),YT=It(_a,e=>e.createUpdatePipelineStatus),c8=It(_a,e=>e.pipeline.indexing_details),zDn=It(_a,e=>e.pipelineStatistics),Bhe=It(_a,e=>e.pipelineLatestQueries),Itt=It(_a,e=>e.loadingLatestQueriesStatus),UDn=It(_a,e=>e.pipelineStatisticsAnswers);It(_a,e=>e.pipelineFeedback);const HDn=It(_a,e=>e.currentSharedPrototype),VDn=It(_a,e=>e.loadingSharedPrototypeStatus),GDn=It(_a,e=>e.generateSharedPrototypeStatus),qDn=It(_a,e=>e.deleteSharedPrototypeStatus),WDn=It(_a,e=>e.pipelineLogs),YDn=It(_a,e=>e.pipelineLogsStatus),Att=It(_a,e=>e.pipelineLogsUnhealthy),jhe=It(_a,e=>e.renamePipelineNameStatus),KDn=It(_a,e=>e.activeTabPipelineDetailsPage),zhe=It(_a,e=>e.pipelineErrors),XDn=It(_a,e=>e.newPipelineName),Uhe=It(_a,e=>e.fetchPipelineYamlStatus),ZDn=It(_a,e=>e.activeTabPipelinesLandingPage),QDn=It(_a,e=>e.activeTabYamlEditor),JDn=It(_a,e=>e.indexingCode),e$n=It(_a,e=>e.queryCode),t$n=It(_a,e=>e.indexingYamlEditorDiff),n$n=It(_a,e=>e.queryYamlEditorDiff),r$n=It(_a,e=>e.sortValuePipelinesList),i$n="_card_18c9a_25",a$n="_searchCardLayout_18c9a_33",o$n="_searchCardLayout_container_18c9a_37",s$n="_searchCardLayout_sideMenu_18c9a_45",l$n="_searchCardLayout_rightSideMenu_18c9a_45",c$n="_searchCardLayout_content_18c9a_60",u$n="_searchCardLayout_content_body_18c9a_66",d$n="_searchCardLayout_content_searchBar_18c9a_73",f$n="_searchCardLayout_content_footer_18c9a_84",fy={card:i$n,searchCardLayout:a$n,searchCardLayout_container:o$n,searchCardLayout_sideMenu:s$n,searchCardLayout_rightSideMenu:l$n,searchCardLayout_content:c$n,searchCardLayout_content_body:u$n,searchCardLayout_content_searchBar:d$n,searchCardLayout_content_footer:f$n},lRe=280,p$n=600,Hhe=({sideMenu:e,righSideMenu:t,searchBar:n,body:r,footer:i})=>{const[a,o]=b.useState(lRe),s=()=>E.jsx(qpe,{size:{width:a,height:"100%"},minWidth:lRe,maxWidth:p$n,grid:[10,10],snapGap:10,enable:{right:!0},onResizeStop:(l,c,u,d)=>{o(a+d.width)},className:fy.searchCardLayout_sideMenu,handleClasses:{right:"handleRight"},children:e});return E.jsx("div",{className:fy.searchCardLayout,"data-testid":"searchComponent",children:E.jsxs("div",{className:fy.searchCardLayout_container,children:[e&&s(),E.jsxs("div",{className:fy.searchCardLayout_content,children:[n&&E.jsx("div",{className:fy.searchCardLayout_content_searchBar,"data-testid":"searchBar",children:n}),r&&E.jsx("div",{className:fy.searchCardLayout_content_body,children:r}),i&&E.jsx("div",{className:fy.searchCardLayout_content_footer,children:i})]}),t&&E.jsx("div",{className:fy.searchCardLayout_rightSideMenu,children:t})]})})},KT=()=>{const e=ir(),t=st(WT),n=st(jhe),r=st(Uhe),i=st(c8),a=st(FDn),o=st(BDn),s=st(l8),l=st(Att),c=st(YT),u=st(XDn),d=st(zhe);return{pipeline:t,fetchPipelineYamlStatus:r,status:a,actionStatus:o,message:s,pipelineIndexingData:i,pipelineLogsUnhealthy:l,renamePipelineNameStatus:n,pipelineCreateUpdatePipelineStatus:c,newPipelineName:u,pipelineErrors:d,createPipeline:async K=>{await e(s8(K))},deployPipeline:async K=>{await e(AU(K))},undeployPipeline:async K=>{await e(RU(K))},activatePipeline:async K=>{await e(o6({pipelineName:K}))},deletePipeline:async K=>{await e(Stt(K))},updatePipeline:async K=>{await e(NU(K))},fetchPipelineIndexing:K=>{e(eC(K))},setActiveTabPipelineDetailsPage:K=>{e($M(K))},duplicatePipelineV1:K=>{e(wtt(K))},duplicatePipelineV2:K=>{e(xtt(K))},resetRenamePipelineNameStatus:()=>{e(NF)},resetMessage:()=>{e(VT)},resetNewPipelineName:()=>{e(Dhe)},resetPipelineErrors:()=>{e(i6)},resetFetchPipelineYamlStatus:()=>{e(Mhe)},resetPipeline:()=>{e(gDn)},resetPipelineYaml:()=>{e(vDn)},fetchPipeline:(K,J)=>{e(Yg({pipelineName:K,isExternal:J}))},fetchPipelineYaml:K=>{e(OF(K))},resetValidateNewPipelineName:()=>{e(Aoe)},startPollingPipelineStatus:(K,J)=>{e(B5({pipelineName:K,isExternal:J}))},stopPollingPipelineStatus:()=>{e(L3())},setDeepsetCloudVersion:K=>{e(uDn(K))},setPipelineName:K=>{e(btt(K))},getRuntimeIssueDetection:K=>{e(Fhe(K))},validatePipelineYaml:K=>{e($he({config:K.yamlCode,deepset_cloud_version:K.deepsetCloudVersion,indexing_yaml:K.indexingYaml,query_yaml:K.queryYaml}))},setPipelineYamlV1:K=>{e(ytt(K))},setPipelineYamlV2:K=>{e(yDn(K))},setPipelineEditedStateTo:K=>{e(Roe(K))},updatePipelineYaml:async K=>{await e(Ett(K))},exportPipelineDocuments:K=>{e(kDn(K))}}},Vhe=({isExternal:e,selectedPipelineName:t}={})=>{const n=ir(),{pipeline:r,fetchPipeline:i,startPollingPipelineStatus:a,stopPollingPipelineStatus:o}=KT(),s=st(ket),l=t||s,c=l!==r.name,u=r?.status===qn.ACTIVATING;return b.useEffect(()=>{l&&c&&i(l,e)},[l]),b.useEffect(()=>{if(l){if(u&&(a(l,e),!e)){const f={currentPage:1,pageSize:100,searchValue:"",interval:5e3};n(EDn(f.currentPage,f.pageSize,f.searchValue,f.interval))}return u||(o(),e||n(a6())),()=>{o(),e||n(a6())}}},[r,u]),{activatingPipeline:u&&!c,activatePipeline:async f=>{await n(o6({pipelineName:f,isExternal:e})),i(f,e),e||n(j_({currentPage:1,pageSize:100,searchValue:"",desiredStatus:qs.DEPLOYED}))}}},h$n="_container_ru8xn_13",m$n="_sideMenu_ru8xn_20",g$n="_header_ru8xn_27",v$n="_initialState_ru8xn_35",y$n="_initialState_content_ru8xn_51",b$n="_initialState_content_description_ru8xn_55",_$n="_chatInputWrapper_ru8xn_59",S$n="_chatInputContainer_ru8xn_69",E$n="_chatInputContainer_focused_ru8xn_82",C$n="_chatInputContainer_input_ru8xn_86",w$n="_chatResults_ru8xn_101",x$n="_chatResults_resultsWrapper_ru8xn_109",T$n="_zeroHeightContainer_ru8xn_115",ig={container:h$n,sideMenu:m$n,header:g$n,initialState:v$n,initialState_content:y$n,initialState_content_description:b$n,chatInputWrapper:_$n,chatInputContainer:S$n,chatInputContainer_focused:E$n,chatInputContainer_input:C$n,chatResults:w$n,chatResults_resultsWrapper:x$n,zeroHeightContainer:T$n},E0=e=>e.fileStore,Ghe=It(E0,e=>e.files),I$n=It(E0,e=>e.message),A$n=It(E0,e=>e.actionStatus),R$n=It(E0,e=>e.fetchStatus),N$n=It(E0,e=>e.updateFileMetaStatus),O$n=It(E0,e=>e.sortValue),qhe=It(E0,e=>e.selectedFileDocument),Rtt=It(E0,e=>e.fileContent),Ntt=It(E0,e=>e.getFileContentStatus);function L$n(e,t=er()){const n={limit:e?.limit||WO,...e?.after?.value&&{after_value:e?.after.value},...e?.after?.fileId&&{after_file_id:e?.after.fileId},...e?.name&&{name:e?.name},...e?.field&&{field:e?.field},...e?.order&&{order:e?.order},...e?.filters&&{filter:e.filters}};return rn.get(`/api/v1/workspaces/${t}/files`,{params:n,paramsSerializer:{indexes:null}})}const Ott=(e,t=er())=>rn.delete(`/api/v1/workspaces/${t}/files/${e}`),P$n=(e=er())=>rn.delete(`/api/v1/workspaces/${e}/files`),Ltt=(e,t=er())=>rn.get(`/api/v1/workspaces/${t}/files/${e}/meta`),k$n=(e,t,n=er())=>rn.patch(`/api/v1/workspaces/${n}/files/${e}/meta`,t),Whe=(e,t=er())=>rn.get(`/api/v1/workspaces/${t}/files/${e}`,{responseType:"blob"}),M$n=(e,t=er())=>rn.get(`/api/v1/workspaces/${t}/files/${e}/convert-to-pdf`,{responseType:"blob"}),Ptt=(e,t,n=er())=>{const r=[cs.docx];return t&&r.includes(t)?M$n(e,n):Whe(e,n)};function D$n(e,t=er()){const n={limit:e?.limit||WO,...e?.after&&{after:e?.after},...e?.page_number&&{page_number:e?.page_number},...e?.name&&{name:e?.name}};return rn.get(`/api/v1/workspaces/${t}/evaluation_sets`,{params:n})}const ktt=(e,t=er())=>rn.delete(`/api/v1/workspaces/${t}/evaluation_sets/${e}`),$$n=(e,t=er())=>rn.get(`/api/v1/workspaces/${t}/evaluation_sets/${e}`),F$n=(e,t=er())=>rn.get(`/api/v1/workspaces/${t}/evaluation_sets/${e}/csv`,{responseType:"blob"});function B$n(e,t,n=er()){return rn.post(`/api/v1/workspaces/${n}/evaluation_sets/import`,e,t)}const Mtt=(e,t=er())=>kl.get(`/api/v1/workspaces/${t}/files/${e}`,{responseType:"blob"}),j$n=(e,t,n=er())=>(cs.docx,Mtt(e,n)),Dtt=e=>b.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.53038 9.82594L7.53128 9.82492C7.58795 9.7613 7.66906 9.72425 7.75478 9.72425H8.58445C8.76679 9.72425 8.86878 9.93904 8.74648 10.0796L5.34784 13.9753C5.30455 14.025 5.25105 14.0648 5.19105 14.092C5.13104 14.1193 5.06588 14.1333 4.99997 14.1333C4.93406 14.1333 4.8689 14.1193 4.80889 14.092C4.74888 14.0648 4.6954 14.025 4.6521 13.9753L1.25328 10.0805C1.1295 9.9403 1.23305 9.72425 1.41447 9.72425H2.24414C2.32988 9.72425 2.41203 9.76061 2.46874 9.82616L4.4769 12.1276V4.08149C4.4769 3.96233 4.57418 3.86668 4.69217 3.86668H5.30674C5.42474 3.86668 5.52202 3.96233 5.52202 4.08149V12.1276L7.53038 9.82594Z",fill:"#222839"}),b.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.46873 6.17411L8.46783 6.17513C8.41116 6.23875 8.33005 6.2758 8.24433 6.2758H7.41466C7.23231 6.2758 7.13032 6.06101 7.25262 5.92049L10.6513 2.02472C10.6946 1.97507 10.7481 1.93527 10.8081 1.90803C10.8681 1.88079 10.9332 1.8667 10.9991 1.8667C11.065 1.8667 11.1302 1.88079 11.1902 1.90803C11.2502 1.93527 11.3037 1.97505 11.347 2.02472L14.7458 5.91953C14.8696 6.05975 14.7661 6.2758 14.5846 6.2758H13.755C13.6692 6.2758 13.5871 6.23944 13.5304 6.17389L11.5222 3.87243L11.5222 11.9186C11.5222 12.0377 11.4249 12.1334 11.3069 12.1334H10.6924C10.5744 12.1334 10.4771 12.0377 10.4771 11.9186L10.4771 3.87243L8.46873 6.17411Z",fill:"#222839"})),z$n=e=>b.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("path",{d:"M4.14659 1.50046L8 4.51637L11.8534 1.50046C11.9125 1.45387 12 1.49591 12 1.57205V2.45046C12 2.50614 11.975 2.55955 11.9307 2.59364L8.225 5.49478C8.16098 5.54502 8.08195 5.57233 8.00057 5.57233C7.91919 5.57233 7.84016 5.54502 7.77614 5.49478L4.06932 2.59364C4.02614 2.55955 4 2.50614 4 2.45046V1.57205C4 1.49591 4.0875 1.45387 4.14659 1.50046Z",fill:"#222839"}),b.createElement("path",{d:"M11.8534 14.5016L8 11.4857L4.14659 14.5016C4.0875 14.5482 4 14.5062 4 14.43V13.5516C4 13.4959 4.025 13.4425 4.06932 13.4084L7.775 10.5073C7.83902 10.4571 7.91805 10.4298 7.99943 10.4298C8.08082 10.4298 8.15984 10.4571 8.22386 10.5073L11.9307 13.4084C11.9739 13.4425 12 13.4959 12 13.5516V14.43C12 14.5062 11.9125 14.5482 11.8534 14.5016Z",fill:"#222839"})),U$n=e=>b.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("path",{d:"M11.8534 5.55234L8 2.53643L4.14659 5.55234C4.0875 5.59893 4 5.55688 4 5.48075V4.60234C4 4.54666 4.025 4.49325 4.06932 4.45916L7.775 1.55802C7.83902 1.50778 7.91805 1.48047 7.99943 1.48047C8.08082 1.48047 8.15984 1.50778 8.22386 1.55802L11.9307 4.45916C11.9739 4.49325 12 4.54666 12 4.60234V5.48075C12 5.55688 11.9125 5.59893 11.8534 5.55234Z",fill:"#222839"}),b.createElement("path",{d:"M4.14659 10.4496L8 13.4655L11.8534 10.4496C11.9125 10.403 12 10.4451 12 10.5212V11.3996C12 11.4553 11.975 11.5087 11.9307 11.5428L8.225 14.4439C8.16098 14.4942 8.08195 14.5215 8.00057 14.5215C7.91919 14.5215 7.84016 14.4942 7.77614 14.4439L4.06932 11.5428C4.02614 11.5087 4 11.4553 4 11.3996V10.5212C4 10.4451 4.0875 10.403 4.14659 10.4496Z",fill:"#222839"})),H$n=e=>kl.post("/api/v1/user-event",e),Ev=e=>{const t=b.useRef(e||{}),{path:n}=jT(),{currentWorkspace:r,currentWorkspaceId:i}=st(lU),a={path:n,workspace_name:r,workspace_id:i},o=async()=>{try{return!rm.getAccessTokenSilently({})}catch{return!0}};return{trackUserEvent:async u=>{(await o()?H$n:dQe)({...u,properties:{...a,...t.current,...u.properties}})},setEventProperties:u=>{t.current={...a,...u}},appendEventProperties:u=>{t.current={...a,...t.current,...u}}}},V$n=e=>e.sharedPrototypeStore,G$n=It(V$n,e=>e.tokenData),q$n=new Intl.Collator("en",{numeric:!0,sensitivity:"base"}).compare,Ooe=1/0,cJ=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),cRe="eexxaacctt",W$n="A-Z",Y$n="a-z",fI=(e,t,n)=>e.replace(W$n,t).replace(Y$n,n),uRe={unicode:!1,alpha:null,interSplit:"[^A-Za-z\\d']+",intraSplit:"[a-z][A-Z]",intraBound:"[A-Za-z]\\d|\\d[A-Za-z]|[a-z][A-Z]",interLft:0,interRgt:0,interChars:".",interIns:Ooe,intraChars:"[a-z\\d']",intraIns:null,intraContr:"'[a-z]{1,2}\\b",intraMode:0,intraSlice:[1,Ooe],intraSub:null,intraTrn:null,intraDel:null,intraFilt:(e,t,n)=>!0,sort:(e,t,n)=>{let{idx:r,chars:i,terms:a,interLft2:o,interLft1:s,start:l,intraIns:c,interIns:u}=e;return r.map((d,f)=>f).sort((d,f)=>i[f]-i[d]||c[d]-c[f]||a[f]+o[f]+.5*s[f]-(a[d]+o[d]+.5*s[d])||u[d]-u[f]||l[d]-l[f]||q$n(t[r[d]],t[r[f]]))}},uJ=(e,t)=>t==0?"":t==1?e+"??":t==Ooe?e+"*?":e+`{0,${t}}?`,dRe="(?:\\b|_)";function LU(e){e=Object.assign({},uRe,e);let{unicode:t,interLft:n,interRgt:r,intraMode:i,intraSlice:a,intraIns:o,intraSub:s,intraTrn:l,intraDel:c,intraContr:u,intraSplit:d,interSplit:f,intraBound:p,intraChars:h}=e;o??=i,s??=i,l??=i,c??=i;let m=e.letters??e.alpha;if(m!=null){let B=m.toLocaleUpperCase(),k=m.toLocaleLowerCase();f=fI(f,B,k),d=fI(d,B,k),p=fI(p,B,k),h=fI(h,B,k),u=fI(u,B,k)}let g=t?"u":"";const v='".+?"',y=new RegExp(v,"gi"+g),_=new RegExp(`(?:\\s+|^)-(?:${h}+|${v})`,"gi"+g);let{intraRules:S}=e;S==null&&(S=B=>{let k=uRe.intraSlice,F=0,G=0,q=0,W=0;if(/[^\d]/.test(B)){let K=B.length;K<=4?K>=3&&(q=Math.min(l,1),K==4&&(F=Math.min(o,1))):(k=a,F=o,G=s,q=l,W=c)}return{intraSlice:k,intraIns:F,intraSub:G,intraTrn:q,intraDel:W}});let C=!!d,w=new RegExp(d,"g"+g),x=new RegExp(f,"g"+g),T=new RegExp("^"+f+"|"+f+"$","g"+g),A=new RegExp(u,"gi"+g);const I=B=>{let k=[];B=B.replace(y,G=>(k.push(G),cRe)),B=B.replace(T,"").toLocaleLowerCase(),C&&(B=B.replace(w,G=>G[0]+" "+G[1]));let F=0;return B.split(x).filter(G=>G!="").map(G=>G===cRe?k[F++]:G)},R=/[^\d]+|\d+/g,N=(B,k=0,F=!1)=>{let G=I(B);if(G.length==0)return[];let q=Array(G.length).fill("");G=G.map((ae,re)=>ae.replace(A,ue=>(q[re]=ue,"")));let W;if(i==1)W=G.map((ae,re)=>{if(ae[0]==='"')return cJ(ae.slice(1,-1));let ue="";for(let de of ae.matchAll(R)){let fe=de[0],{intraSlice:ge,intraIns:oe,intraSub:Ee,intraTrn:ce,intraDel:he}=S(fe);if(oe+Ee+ce+he==0)ue+=fe+q[re];else{let[ye,me]=ge,_e=fe.slice(0,ye),Te=fe.slice(me),xe=fe.slice(ye,me);oe==1&&_e.length==1&&_e!=xe[0]&&(_e+="(?!"+_e+")");let De=xe.length,Pe=[fe];if(Ee)for(let Le=0;Le<De;Le++)Pe.push(_e+xe.slice(0,Le)+h+xe.slice(Le+1)+Te);if(ce)for(let Le=0;Le<De-1;Le++)xe[Le]!=xe[Le+1]&&Pe.push(_e+xe.slice(0,Le)+xe[Le+1]+xe[Le]+xe.slice(Le+2)+Te);if(he)for(let Le=0;Le<De;Le++)Pe.push(_e+xe.slice(0,Le+1)+"?"+xe.slice(Le+1)+Te);if(oe){let Le=uJ(h,1);for(let ze=0;ze<De;ze++)Pe.push(_e+xe.slice(0,ze)+Le+xe.slice(ze)+Te)}ue+="(?:"+Pe.join("|")+")"+q[re]}}return ue});else{let ae=uJ(h,o);k==2&&o>0&&(ae=")("+ae+")("),W=G.map((re,ue)=>re[0]==='"'?cJ(re.slice(1,-1)):re.split("").map((de,fe,ge)=>(o==1&&fe==0&&ge.length>1&&de!=ge[fe+1]&&(de+="(?!"+de+")"),de)).join(ae)+q[ue])}let K=n==2?dRe:"",J=r==2?dRe:"",te=J+uJ(e.interChars,e.interIns)+K;return k>0?F?W=K+"("+W.join(")"+J+"|"+K+"(")+")"+J:(W="("+W.join(")("+te+")(")+")",W="(.??"+K+")"+W+"("+J+".*)"):(W=W.join(te),W=K+W+J),[new RegExp(W,"i"+g),G,q]},P=(B,k,F)=>{let[G]=N(k);if(G==null)return null;let q=[];if(F!=null)for(let W=0;W<F.length;W++){let K=F[W];G.test(B[K])&&q.push(K)}else for(let W=0;W<B.length;W++)G.test(B[W])&&q.push(W);return q};let L=!!p,$=new RegExp(f,g),D=new RegExp(p,g);const z=(B,k,F)=>{let[G,q,W]=N(F,1),[K]=N(F,2),J=q.length,te=B.length,ae=Array(te).fill(0),re={idx:Array(te),start:ae.slice(),chars:ae.slice(),terms:ae.slice(),interIns:ae.slice(),intraIns:ae.slice(),interLft2:ae.slice(),interRgt2:ae.slice(),interLft1:ae.slice(),interRgt1:ae.slice(),ranges:Array(te)},ue=n==1||r==1,de=0;for(let fe=0;fe<B.length;fe++){let ge=k[B[fe]],oe=ge.match(G),Ee=oe.index+oe[1].length,ce=Ee,he=!1,ye=0,me=0,_e=0,Te=0,xe=0,De=0,Pe=0,Le=0,ze=[];for(let Be=0,je=2;Be<J;Be++,je+=2){let Ye=oe[je].toLocaleLowerCase(),Ze=q[Be],Ke=Ze[0]=='"'?Ze.slice(1,-1):Ze+W[Be],qe=Ke.length,nt=Ye.length,Qe=Ye==Ke;if(!Qe&&oe[je+1].length>=qe){let it=oe[je+1].toLocaleLowerCase().indexOf(Ke);it>-1&&(ze.push(ce,nt,it,qe),ce+=U(oe,je,it,qe),Ye=Ke,nt=qe,Qe=!0,Be==0&&(Ee=ce))}if(ue||Qe){let it=ce-1,yt=ce+nt,Wt=!1,Mt=!1;if(it==-1||$.test(ge[it]))Qe&&ye++,Wt=!0;else{if(n==2){he=!0;break}if(L&&D.test(ge[it]+ge[it+1]))Qe&&me++,Wt=!0;else if(n==1){let tn=oe[je+1],Rt=ce+nt;if(tn.length>=qe){let Dt=0,Pt=!1,Ot=new RegExp(Ke,"ig"+g),sn;for(;sn=Ot.exec(tn);){Dt=sn.index;let Jt=Rt+Dt,Vt=Jt-1;if(Vt==-1||$.test(ge[Vt])){ye++,Pt=!0;break}else if(D.test(ge[Vt]+ge[Jt])){me++,Pt=!0;break}}Pt&&(Wt=!0,ze.push(ce,nt,Dt,qe),ce+=U(oe,je,Dt,qe),Ye=Ke,nt=qe,Qe=!0,Be==0&&(Ee=ce))}if(!Wt){he=!0;break}}}if(yt==ge.length||$.test(ge[yt]))Qe&&_e++,Mt=!0;else{if(r==2){he=!0;break}if(L&&D.test(ge[yt-1]+ge[yt]))Qe&&Te++,Mt=!0;else if(r==1){he=!0;break}}Qe&&(xe+=qe,Wt&&Mt&&De++)}if(nt>qe&&(Le+=nt-qe),Be>0&&(Pe+=oe[je-1].length),!e.intraFilt(Ke,Ye,ce)){he=!0;break}Be<J-1&&(ce+=nt+oe[je+1].length)}if(!he){re.idx[de]=B[fe],re.interLft2[de]=ye,re.interLft1[de]=me,re.interRgt2[de]=_e,re.interRgt1[de]=Te,re.chars[de]=xe,re.terms[de]=De,re.interIns[de]=Pe,re.intraIns[de]=Le,re.start[de]=Ee;let Be=ge.match(K),je=Be.index+Be[1].length,Ye=ze.length,Ze=Ye>0?0:1/0,Ke=Ye-4;for(let it=2;it<Be.length;){let yt=Be[it].length;if(Ze<=Ke&&ze[Ze]==je){let Wt=ze[Ze+1],Mt=ze[Ze+2],tn=ze[Ze+3],Rt=it,Dt="";for(let Pt=0;Pt<Wt;Rt++)Dt+=Be[Rt],Pt+=Be[Rt].length;Be.splice(it,Rt-it,Dt),je+=U(Be,it,Mt,tn),Ze+=4}else je+=yt,it++}je=Be.index+Be[1].length;let qe=re.ranges[de]=[],nt=je,Qe=je;for(let it=2;it<Be.length;it++){let yt=Be[it].length;je+=yt,it%2==0?Qe=je:yt>0&&(qe.push(nt,Qe),nt=Qe=je)}Qe>nt&&qe.push(nt,Qe),de++}}if(de<B.length)for(let fe in re)re[fe]=re[fe].slice(0,de);return re},U=(B,k,F,G)=>{let q=B[k]+B[k+1].slice(0,F);return B[k-1]+=q,B[k]=B[k+1].slice(F,F+G),B[k+1]=B[k+1].slice(F+G),q.length},H=5,M=(B,k,F,G=1e3,q)=>{F=F?F===!0?H:F:0;let W=null,K=null,J=[];k=k.replace(_,fe=>{let ge=fe.trim().slice(1);return ge[0]==='"'&&(ge=cJ(ge.slice(1,-1))),J.push(ge),""});let te=I(k),ae;if(J.length>0){if(ae=new RegExp(J.join("|"),"i"+g),te.length==0){let fe=[];for(let ge=0;ge<B.length;ge++)ae.test(B[ge])||fe.push(ge);return[fe,null,null]}}else if(te.length==0)return[null,null,null];if(F>0){let fe=I(k);if(fe.length>1){let ge=fe.slice().sort((Ee,ce)=>ce.length-Ee.length);for(let Ee=0;Ee<ge.length;Ee++){if(q?.length==0)return[[],null,null];q=P(B,ge[Ee],q)}if(fe.length>F)return[q,null,null];W=$tt(fe).map(Ee=>Ee.join(" ")),K=[];let oe=new Set;for(let Ee=0;Ee<W.length;Ee++)if(oe.size<q.length){let ce=q.filter(ye=>!oe.has(ye)),he=P(B,W[Ee],ce);for(let ye=0;ye<he.length;ye++)oe.add(he[ye]);K.push(he)}else K.push([])}}W==null&&(W=[k],K=[q?.length>0?q:P(B,k)]);let re=null,ue=null;if(J.length>0&&(K=K.map(fe=>fe.filter(ge=>!ae.test(B[ge])))),K.reduce((fe,ge)=>fe+ge.length,0)<=G){re={},ue=[];for(let fe=0;fe<K.length;fe++){let ge=K[fe];if(ge==null||ge.length==0)continue;let oe=W[fe],Ee=z(ge,B,oe),ce=e.sort(Ee,B,oe);if(fe>0)for(let he=0;he<ce.length;he++)ce[he]+=ue.length;for(let he in Ee)re[he]=(re[he]??[]).concat(Ee[he]);ue=ue.concat(ce)}}return[[].concat(...K),re,ue]};return{search:(...B)=>M(...B),split:I,filter:P,info:z,sort:e.sort}}const K$n=(()=>{let e={A:"ÁÀÃÂÄĄ",a:"áàãâäą",E:"ÉÈÊËĖ",e:"éèêëę",I:"ÍÌÎÏĮ",i:"íìîïį",O:"ÓÒÔÕÖ",o:"óòôõö",U:"ÚÙÛÜŪŲ",u:"úùûüūų",C:"ÇČĆ",c:"çčć",L:"Ł",l:"ł",N:"ÑŃ",n:"ñń",S:"ŠŚ",s:"šś",Z:"ŻŹ",z:"żź"},t=new Map,n="";for(let a in e)e[a].split("").forEach(o=>{n+=o,t.set(o,a)});let r=new RegExp(`[${n}]`,"g"),i=a=>t.get(a);return a=>{if(typeof a=="string")return a.replace(r,i);let o=Array(a.length);for(let s=0;s<a.length;s++)o[s]=a[s].replace(r,i);return o}})();function $tt(e){e=e.slice();let t=e.length,n=[e.slice()],r=new Array(t).fill(0),i=1,a,o;for(;i<t;)r[i]<i?(a=i%2&&r[i],o=e[i],e[i]=e[a],e[a]=o,++r[i],i=1,n.push(e.slice())):(r[i]=0,++i);return n}const X$n=(e,t)=>t?`<mark>${e}</mark>`:e,Z$n=(e,t)=>e+t;function Q$n(e,t,n=X$n,r="",i=Z$n){r=i(r,n(e.substring(0,t[0]),!1))??r;for(let a=0;a<t.length;a+=2){let o=t[a],s=t[a+1];r=i(r,n(e.substring(o,s),!0))??r,a<t.length-3&&(r=i(r,n(e.substring(t[a+1],t[a+2]),!1))??r)}return r=i(r,n(e.substring(t[t.length-1]),!1))??r,r}LU.latinize=K$n;LU.permute=e=>$tt([...Array(e.length).keys()]).sort((n,r)=>{for(let i=0;i<n.length;i++)if(n[i]!=r[i])return n[i]-r[i];return 0}).map(n=>n.map(r=>e[r]));LU.highlight=Q$n;/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */const{entries:Ftt,setPrototypeOf:fRe,isFrozen:J$n,getPrototypeOf:eFn,getOwnPropertyDescriptor:tFn}=Object;let{freeze:Mu,seal:Fp,create:Btt}=Object,{apply:Loe,construct:Poe}=typeof Reflect<"u"&&Reflect;Mu||(Mu=function(t){return t});Fp||(Fp=function(t){return t});Loe||(Loe=function(t,n,r){return t.apply(n,r)});Poe||(Poe=function(t,n){return new t(...n)});const KP=Nf(Array.prototype.forEach),pRe=Nf(Array.prototype.pop),pI=Nf(Array.prototype.push),BM=Nf(String.prototype.toLowerCase),dJ=Nf(String.prototype.toString),hRe=Nf(String.prototype.match),hI=Nf(String.prototype.replace),nFn=Nf(String.prototype.indexOf),rFn=Nf(String.prototype.trim),Rh=Nf(Object.prototype.hasOwnProperty),hu=Nf(RegExp.prototype.test),mI=iFn(TypeError);function Nf(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return Loe(e,t,r)}}function iFn(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Poe(e,n)}}function Bi(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:BM;fRe&&fRe(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i=="string"){const a=n(i);a!==i&&(J$n(t)||(t[r]=a),i=a)}e[i]=!0}return e}function aFn(e){for(let t=0;t<e.length;t++)Rh(e,t)||(e[t]=null);return e}function mS(e){const t=Btt(null);for(const[n,r]of Ftt(e))Rh(e,n)&&(Array.isArray(r)?t[n]=aFn(r):r&&typeof r=="object"&&r.constructor===Object?t[n]=mS(r):t[n]=r);return t}function gI(e,t){for(;e!==null;){const r=tFn(e,t);if(r){if(r.get)return Nf(r.get);if(typeof r.value=="function")return Nf(r.value)}e=eFn(e)}function n(){return null}return n}const mRe=Mu(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),fJ=Mu(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),pJ=Mu(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),oFn=Mu(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),hJ=Mu(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),sFn=Mu(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),gRe=Mu(["#text"]),vRe=Mu(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),mJ=Mu(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),yRe=Mu(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),XP=Mu(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),lFn=Fp(/\{\{[\w\W]*|[\w\W]*\}\}/gm),cFn=Fp(/<%[\w\W]*|[\w\W]*%>/gm),uFn=Fp(/\${[\w\W]*}/gm),dFn=Fp(/^data-[\-\w.\u00B7-\uFFFF]/),fFn=Fp(/^aria-[\-\w]+$/),jtt=Fp(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),pFn=Fp(/^(?:\w+script|data):/i),hFn=Fp(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ztt=Fp(/^html$/i),mFn=Fp(/^[a-z][.\w]*(-[.\w]+)+$/i);var bRe=Object.freeze({__proto__:null,MUSTACHE_EXPR:lFn,ERB_EXPR:cFn,TMPLIT_EXPR:uFn,DATA_ATTR:dFn,ARIA_ATTR:fFn,IS_ALLOWED_URI:jtt,IS_SCRIPT_OR_DATA:pFn,ATTR_WHITESPACE:hFn,DOCTYPE_NAME:ztt,CUSTOM_ELEMENT:mFn});const vI={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},gFn=function(){return typeof window>"u"?null:window},vFn=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const a="dompurify"+(r?"#"+r:"");try{return t.createPolicy(a,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}};function Utt(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:gFn();const t=un=>Utt(un);if(t.version="3.1.6",t.removed=[],!e||!e.document||e.document.nodeType!==vI.document)return t.isSupported=!1,t;let{document:n}=e;const r=n,i=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:s,Element:l,NodeFilter:c,NamedNodeMap:u=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:f,trustedTypes:p}=e,h=l.prototype,m=gI(h,"cloneNode"),g=gI(h,"remove"),v=gI(h,"nextSibling"),y=gI(h,"childNodes"),_=gI(h,"parentNode");if(typeof o=="function"){const un=n.createElement("template");un.content&&un.content.ownerDocument&&(n=un.content.ownerDocument)}let S,C="";const{implementation:w,createNodeIterator:x,createDocumentFragment:T,getElementsByTagName:A}=n,{importNode:I}=r;let R={};t.isSupported=typeof Ftt=="function"&&typeof _=="function"&&w&&w.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:N,ERB_EXPR:P,TMPLIT_EXPR:L,DATA_ATTR:$,ARIA_ATTR:D,IS_SCRIPT_OR_DATA:z,ATTR_WHITESPACE:U,CUSTOM_ELEMENT:H}=bRe;let{IS_ALLOWED_URI:M}=bRe,B=null;const k=Bi({},[...mRe,...fJ,...pJ,...hJ,...gRe]);let F=null;const G=Bi({},[...vRe,...mJ,...yRe,...XP]);let q=Object.seal(Btt(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),W=null,K=null,J=!0,te=!0,ae=!1,re=!0,ue=!1,de=!0,fe=!1,ge=!1,oe=!1,Ee=!1,ce=!1,he=!1,ye=!0,me=!1;const _e="user-content-";let Te=!0,xe=!1,De={},Pe=null;const Le=Bi({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ze=null;const Be=Bi({},["audio","video","img","source","image","track"]);let je=null;const Ye=Bi({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ze="http://www.w3.org/1998/Math/MathML",Ke="http://www.w3.org/2000/svg",qe="http://www.w3.org/1999/xhtml";let nt=qe,Qe=!1,it=null;const yt=Bi({},[Ze,Ke,qe],dJ);let Wt=null;const Mt=["application/xhtml+xml","text/html"],tn="text/html";let Rt=null,Dt=null;const Pt=n.createElement("form"),Ot=function(et){return et instanceof RegExp||et instanceof Function},sn=function(){let et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Dt&&Dt===et)){if((!et||typeof et!="object")&&(et={}),et=mS(et),Wt=Mt.indexOf(et.PARSER_MEDIA_TYPE)===-1?tn:et.PARSER_MEDIA_TYPE,Rt=Wt==="application/xhtml+xml"?dJ:BM,B=Rh(et,"ALLOWED_TAGS")?Bi({},et.ALLOWED_TAGS,Rt):k,F=Rh(et,"ALLOWED_ATTR")?Bi({},et.ALLOWED_ATTR,Rt):G,it=Rh(et,"ALLOWED_NAMESPACES")?Bi({},et.ALLOWED_NAMESPACES,dJ):yt,je=Rh(et,"ADD_URI_SAFE_ATTR")?Bi(mS(Ye),et.ADD_URI_SAFE_ATTR,Rt):Ye,ze=Rh(et,"ADD_DATA_URI_TAGS")?Bi(mS(Be),et.ADD_DATA_URI_TAGS,Rt):Be,Pe=Rh(et,"FORBID_CONTENTS")?Bi({},et.FORBID_CONTENTS,Rt):Le,W=Rh(et,"FORBID_TAGS")?Bi({},et.FORBID_TAGS,Rt):{},K=Rh(et,"FORBID_ATTR")?Bi({},et.FORBID_ATTR,Rt):{},De=Rh(et,"USE_PROFILES")?et.USE_PROFILES:!1,J=et.ALLOW_ARIA_ATTR!==!1,te=et.ALLOW_DATA_ATTR!==!1,ae=et.ALLOW_UNKNOWN_PROTOCOLS||!1,re=et.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ue=et.SAFE_FOR_TEMPLATES||!1,de=et.SAFE_FOR_XML!==!1,fe=et.WHOLE_DOCUMENT||!1,Ee=et.RETURN_DOM||!1,ce=et.RETURN_DOM_FRAGMENT||!1,he=et.RETURN_TRUSTED_TYPE||!1,oe=et.FORCE_BODY||!1,ye=et.SANITIZE_DOM!==!1,me=et.SANITIZE_NAMED_PROPS||!1,Te=et.KEEP_CONTENT!==!1,xe=et.IN_PLACE||!1,M=et.ALLOWED_URI_REGEXP||jtt,nt=et.NAMESPACE||qe,q=et.CUSTOM_ELEMENT_HANDLING||{},et.CUSTOM_ELEMENT_HANDLING&&Ot(et.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(q.tagNameCheck=et.CUSTOM_ELEMENT_HANDLING.tagNameCheck),et.CUSTOM_ELEMENT_HANDLING&&Ot(et.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(q.attributeNameCheck=et.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),et.CUSTOM_ELEMENT_HANDLING&&typeof et.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(q.allowCustomizedBuiltInElements=et.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ue&&(te=!1),ce&&(Ee=!0),De&&(B=Bi({},gRe),F=[],De.html===!0&&(Bi(B,mRe),Bi(F,vRe)),De.svg===!0&&(Bi(B,fJ),Bi(F,mJ),Bi(F,XP)),De.svgFilters===!0&&(Bi(B,pJ),Bi(F,mJ),Bi(F,XP)),De.mathMl===!0&&(Bi(B,hJ),Bi(F,yRe),Bi(F,XP))),et.ADD_TAGS&&(B===k&&(B=mS(B)),Bi(B,et.ADD_TAGS,Rt)),et.ADD_ATTR&&(F===G&&(F=mS(F)),Bi(F,et.ADD_ATTR,Rt)),et.ADD_URI_SAFE_ATTR&&Bi(je,et.ADD_URI_SAFE_ATTR,Rt),et.FORBID_CONTENTS&&(Pe===Le&&(Pe=mS(Pe)),Bi(Pe,et.FORBID_CONTENTS,Rt)),Te&&(B["#text"]=!0),fe&&Bi(B,["html","head","body"]),B.table&&(Bi(B,["tbody"]),delete W.tbody),et.TRUSTED_TYPES_POLICY){if(typeof et.TRUSTED_TYPES_POLICY.createHTML!="function")throw mI('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof et.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw mI('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');S=et.TRUSTED_TYPES_POLICY,C=S.createHTML("")}else S===void 0&&(S=vFn(p,i)),S!==null&&typeof C=="string"&&(C=S.createHTML(""));Mu&&Mu(et),Dt=et}},Jt=Bi({},["mi","mo","mn","ms","mtext"]),Vt=Bi({},["foreignobject","annotation-xml"]),pt=Bi({},["title","style","font","a","script"]),tt=Bi({},[...fJ,...pJ,...oFn]),dt=Bi({},[...hJ,...sFn]),Et=function(et){let Ct=_(et);(!Ct||!Ct.tagName)&&(Ct={namespaceURI:nt,tagName:"template"});const Q=BM(et.tagName),Y=BM(Ct.tagName);return it[et.namespaceURI]?et.namespaceURI===Ke?Ct.namespaceURI===qe?Q==="svg":Ct.namespaceURI===Ze?Q==="svg"&&(Y==="annotation-xml"||Jt[Y]):!!tt[Q]:et.namespaceURI===Ze?Ct.namespaceURI===qe?Q==="math":Ct.namespaceURI===Ke?Q==="math"&&Vt[Y]:!!dt[Q]:et.namespaceURI===qe?Ct.namespaceURI===Ke&&!Vt[Y]||Ct.namespaceURI===Ze&&!Jt[Y]?!1:!dt[Q]&&(pt[Q]||!tt[Q]):!!(Wt==="application/xhtml+xml"&&it[et.namespaceURI]):!1},St=function(et){pI(t.removed,{element:et});try{_(et).removeChild(et)}catch{g(et)}},zt=function(et,Ct){try{pI(t.removed,{attribute:Ct.getAttributeNode(et),from:Ct})}catch{pI(t.removed,{attribute:null,from:Ct})}if(Ct.removeAttribute(et),et==="is"&&!F[et])if(Ee||ce)try{St(Ct)}catch{}else try{Ct.setAttribute(et,"")}catch{}},nn=function(et){let Ct=null,Q=null;if(oe)et="<remove></remove>"+et;else{const le=hRe(et,/^[\r\n\t ]+/);Q=le&&le[0]}Wt==="application/xhtml+xml"&&nt===qe&&(et='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+et+"</body></html>");const Y=S?S.createHTML(et):et;if(nt===qe)try{Ct=new f().parseFromString(Y,Wt)}catch{}if(!Ct||!Ct.documentElement){Ct=w.createDocument(nt,"template",null);try{Ct.documentElement.innerHTML=Qe?C:Y}catch{}}const ee=Ct.body||Ct.documentElement;return et&&Q&&ee.insertBefore(n.createTextNode(Q),ee.childNodes[0]||null),nt===qe?A.call(Ct,fe?"html":"body")[0]:fe?Ct.documentElement:ee},wn=function(et){return x.call(et.ownerDocument||et,et,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},kn=function(et){return et instanceof d&&(typeof et.nodeName!="string"||typeof et.textContent!="string"||typeof et.removeChild!="function"||!(et.attributes instanceof u)||typeof et.removeAttribute!="function"||typeof et.setAttribute!="function"||typeof et.namespaceURI!="string"||typeof et.insertBefore!="function"||typeof et.hasChildNodes!="function")},fn=function(et){return typeof s=="function"&&et instanceof s},an=function(et,Ct,Q){R[et]&&KP(R[et],Y=>{Y.call(t,Ct,Q,Dt)})},Ht=function(et){let Ct=null;if(an("beforeSanitizeElements",et,null),kn(et))return St(et),!0;const Q=Rt(et.nodeName);if(an("uponSanitizeElement",et,{tagName:Q,allowedTags:B}),et.hasChildNodes()&&!fn(et.firstElementChild)&&hu(/<[/\w]/g,et.innerHTML)&&hu(/<[/\w]/g,et.textContent)||et.nodeType===vI.progressingInstruction||de&&et.nodeType===vI.comment&&hu(/<[/\w]/g,et.data))return St(et),!0;if(!B[Q]||W[Q]){if(!W[Q]&&Tn(Q)&&(q.tagNameCheck instanceof RegExp&&hu(q.tagNameCheck,Q)||q.tagNameCheck instanceof Function&&q.tagNameCheck(Q)))return!1;if(Te&&!Pe[Q]){const Y=_(et)||et.parentNode,ee=y(et)||et.childNodes;if(ee&&Y){const le=ee.length;for(let Se=le-1;Se>=0;--Se){const Ae=m(ee[Se],!0);Ae.__removalCount=(et.__removalCount||0)+1,Y.insertBefore(Ae,v(et))}}}return St(et),!0}return et instanceof l&&!Et(et)||(Q==="noscript"||Q==="noembed"||Q==="noframes")&&hu(/<\/no(script|embed|frames)/i,et.innerHTML)?(St(et),!0):(ue&&et.nodeType===vI.text&&(Ct=et.textContent,KP([N,P,L],Y=>{Ct=hI(Ct,Y," ")}),et.textContent!==Ct&&(pI(t.removed,{element:et.cloneNode()}),et.textContent=Ct)),an("afterSanitizeElements",et,null),!1)},mn=function(et,Ct,Q){if(ye&&(Ct==="id"||Ct==="name")&&(Q in n||Q in Pt))return!1;if(!(te&&!K[Ct]&&hu($,Ct))){if(!(J&&hu(D,Ct))){if(!F[Ct]||K[Ct]){if(!(Tn(et)&&(q.tagNameCheck instanceof RegExp&&hu(q.tagNameCheck,et)||q.tagNameCheck instanceof Function&&q.tagNameCheck(et))&&(q.attributeNameCheck instanceof RegExp&&hu(q.attributeNameCheck,Ct)||q.attributeNameCheck instanceof Function&&q.attributeNameCheck(Ct))||Ct==="is"&&q.allowCustomizedBuiltInElements&&(q.tagNameCheck instanceof RegExp&&hu(q.tagNameCheck,Q)||q.tagNameCheck instanceof Function&&q.tagNameCheck(Q))))return!1}else if(!je[Ct]){if(!hu(M,hI(Q,U,""))){if(!((Ct==="src"||Ct==="xlink:href"||Ct==="href")&&et!=="script"&&nFn(Q,"data:")===0&&ze[et])){if(!(ae&&!hu(z,hI(Q,U,"")))){if(Q)return!1}}}}}}return!0},Tn=function(et){return et!=="annotation-xml"&&hRe(et,H)},An=function(et){an("beforeSanitizeAttributes",et,null);const{attributes:Ct}=et;if(!Ct)return;const Q={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:F};let Y=Ct.length;for(;Y--;){const ee=Ct[Y],{name:le,namespaceURI:Se,value:Ae}=ee,He=Rt(le);let at=le==="value"?Ae:rFn(Ae);if(Q.attrName=He,Q.attrValue=at,Q.keepAttr=!0,Q.forceKeepAttr=void 0,an("uponSanitizeAttribute",et,Q),at=Q.attrValue,de&&hu(/((--!?|])>)|<\/(style|title)/i,at)){zt(le,et);continue}if(Q.forceKeepAttr||(zt(le,et),!Q.keepAttr))continue;if(!re&&hu(/\/>/i,at)){zt(le,et);continue}ue&&KP([N,P,L],ft=>{at=hI(at,ft," ")});const wt=Rt(et.nodeName);if(mn(wt,He,at)){if(me&&(He==="id"||He==="name")&&(zt(le,et),at=_e+at),S&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!Se)switch(p.getAttributeType(wt,He)){case"TrustedHTML":{at=S.createHTML(at);break}case"TrustedScriptURL":{at=S.createScriptURL(at);break}}try{Se?et.setAttributeNS(Se,le,at):et.setAttribute(le,at),kn(et)?St(et):pRe(t.removed)}catch{}}}an("afterSanitizeAttributes",et,null)},nr=function un(et){let Ct=null;const Q=wn(et);for(an("beforeSanitizeShadowDOM",et,null);Ct=Q.nextNode();)an("uponSanitizeShadowNode",Ct,null),!Ht(Ct)&&(Ct.content instanceof a&&un(Ct.content),An(Ct));an("afterSanitizeShadowDOM",et,null)};return t.sanitize=function(un){let et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ct=null,Q=null,Y=null,ee=null;if(Qe=!un,Qe&&(un="<!-->"),typeof un!="string"&&!fn(un))if(typeof un.toString=="function"){if(un=un.toString(),typeof un!="string")throw mI("dirty is not a string, aborting")}else throw mI("toString is not a function");if(!t.isSupported)return un;if(ge||sn(et),t.removed=[],typeof un=="string"&&(xe=!1),xe){if(un.nodeName){const Ae=Rt(un.nodeName);if(!B[Ae]||W[Ae])throw mI("root node is forbidden and cannot be sanitized in-place")}}else if(un instanceof s)Ct=nn("<!---->"),Q=Ct.ownerDocument.importNode(un,!0),Q.nodeType===vI.element&&Q.nodeName==="BODY"||Q.nodeName==="HTML"?Ct=Q:Ct.appendChild(Q);else{if(!Ee&&!ue&&!fe&&un.indexOf("<")===-1)return S&&he?S.createHTML(un):un;if(Ct=nn(un),!Ct)return Ee?null:he?C:""}Ct&&oe&&St(Ct.firstChild);const le=wn(xe?un:Ct);for(;Y=le.nextNode();)Ht(Y)||(Y.content instanceof a&&nr(Y.content),An(Y));if(xe)return un;if(Ee){if(ce)for(ee=T.call(Ct.ownerDocument);Ct.firstChild;)ee.appendChild(Ct.firstChild);else ee=Ct;return(F.shadowroot||F.shadowrootmode)&&(ee=I.call(r,ee,!0)),ee}let Se=fe?Ct.outerHTML:Ct.innerHTML;return fe&&B["!doctype"]&&Ct.ownerDocument&&Ct.ownerDocument.doctype&&Ct.ownerDocument.doctype.name&&hu(ztt,Ct.ownerDocument.doctype.name)&&(Se="<!DOCTYPE "+Ct.ownerDocument.doctype.name+`>
`+Se),ue&&KP([N,P,L],Ae=>{Se=hI(Se,Ae," ")}),S&&he?S.createHTML(Se):Se},t.setConfig=function(){let un=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};sn(un),ge=!0},t.clearConfig=function(){Dt=null,ge=!1},t.isValidAttribute=function(un,et,Ct){Dt||sn({});const Q=Rt(un),Y=Rt(et);return mn(Q,Y,Ct)},t.addHook=function(un,et){typeof et=="function"&&(R[un]=R[un]||[],pI(R[un],et))},t.removeHook=function(un){if(R[un])return pRe(R[un])},t.removeHooks=function(un){R[un]&&(R[un]=[])},t.removeAllHooks=function(){R={}},t}var Yhe=Utt();const yFn="_highlight_1ig30_13",bFn={highlight:yFn},_Fn=({offsetStart:e,offsetEnd:t,text:n,highlight:r,label:i,ellipses:a,testId:o})=>{const s=n.slice(0,e),l=n.slice(t,n.length),c=n.slice(e,t);return E.jsxs(E.Fragment,{children:[a&&"...",s,E.jsxs("span",{className:bFn.highlight,"data-testid":o,children:[r||c,i&&E.jsx("span",{children:i})]}),l,a&&"..."]})},SFn="_content_5fs3d_13",EFn="_highlightedContext_5fs3d_18",CFn="_highlightedAnswer_5fs3d_25",ZP={content:SFn,highlightedContext:EFn,highlightedAnswer:CFn},_Re=(e,t)=>{const n=e.indexOf(t);if(n===-1)return null;const r=e.slice(0,n),i=e.slice(n,n+t.length),a=e.slice(n+t.length);return{preContext:r,higlightedContext:i,postContext:a}},wFn=e=>{const t=e[0];if(t[0]?.length===1)return t[0][0];for(let n=1;n<e.length;n++)if(e[n][0]?.length===1)return e[n][0][0]-n;return t[0][t[2][0]]},xFn=e=>{const t=e[e.length-1];if(t[0]?.length===1)return t[0][0];for(let n=e.length-2;n>=0;n--)if(e[n][0]?.length===1)return e[n][0][0]+n;return t[0][t[2][0]]},SRe=(e,t,n=!0)=>{const r=t.split(`
`).filter(Boolean),i=e.split(`
`).map(p=>p),a={interIns:5},o=new LU(a),s=r.map(p=>o.search(i,p,0,1e3)),l=wFn(s),c=xFn(s);if(!n){const p=s,h=p[0],m=p[p.length-1],g=h[0],v=h[1];if(!g||!v?.ranges)return null;const y=g.indexOf(l),S=(v.ranges[y]||[])[0],C=m[0],w=m[1];if(!C||!w?.ranges)return null;const x=C.indexOf(c),T=w.ranges[x],A=T[T.length-1],I=`${i.slice(0,l).join(`
`)}
${i[l].slice(0,S)}`,R=`${i[c].slice(A)}
${i.slice(c+1).join(`
`)}`;let N="";return p.length===1&&(N=`${i[l].slice(S,A)}`),p.length===2&&(N=`${i[l].slice(S)}
${i[c].slice(0,A)}`),p.length>2&&(N=`${i[l].slice(S)}
${i.slice(l+1,c).join(`
`)}
${i[c].slice(0,A)}`),{preContext:I,higlightedContext:N,postContext:R}}const u=i.slice(0,l).join(`
`),d=i.slice(l,c+1).join(`
`),f=i.slice(c+1).join(`
`);return{preContext:u,higlightedContext:d,postContext:f}},Htt=b.forwardRef(({content:e,highlightData:t},n)=>{const r=b.useRef([]),i=b.useRef(0),a=(l=i.current)=>{r.current[l]?.scrollIntoView({behavior:"smooth"}),i.current=r.current.length<=l+1?0:l+1};b.useImperativeHandle(n,()=>({scrollToHighlight:a}),[]),b.useEffect(()=>{a()},[r.current]);const o=()=>{const l=t[0],{answer:c,label:u,offsetsInDocument:d}=l;if(!d?.length)return null;const[{start:f,end:p}]=d;return E.jsx(_Fn,{offsetStart:f,offsetEnd:p,text:e,highlight:c,label:u||Lae})},s=()=>{let l=0;const c=[];return t.forEach((u,d)=>{const{context:f,answer:p,label:h}=u;if(!f)return;const m=_Re(e,f)||SRe(e,f);if(!m?.higlightedContext)return;const g=ps(),{preContext:v,higlightedContext:y}=m,_=e.indexOf(v,l)+v.length;_>l&&c.push(E.jsx("span",{children:e.slice(l,_)},`pre-${g}`));let S=y;if(p){const C=_Re(y,p)||SRe(y,p);if(C?.higlightedContext){const{preContext:w,higlightedContext:x,postContext:T}=C;S=`${w}<span class="${ZP.highlightedAnswer}">${x}<span>${h||Lae}</span></span>${T}`}}c.push(E.jsx("span",{ref:C=>{C&&(r.current[d]=C)},className:ZP.highlightedContext,children:E.jsx("div",{dangerouslySetInnerHTML:{__html:Yhe.sanitize(S)}})},`highlight-${g}`)),l=_+y.length}),l<e.length&&c.push(E.jsx("span",{children:e.slice(l)},"remaining-content")),c};return t.length===1&&t[0].offsetsInDocument?.length?E.jsx("div",{className:ZP.content,children:E.jsx("pre",{children:o()})}):E.jsx("div",{className:ZP.content,children:E.jsx("pre",{children:s()})})}),TFn="_modal_1aweq_13",IFn="_body_1aweq_20",AFn="_divider_1aweq_25",RFn="_fieldsContainer_1aweq_30",NFn="_nestedFieldContainer_1aweq_36",OFn="_nestedFieldWrapper_1aweq_41",LFn="_field_1aweq_30",PFn="_field_label_1aweq_53",kFn="_nestedField_label_1aweq_53",MFn="_field_value_1aweq_57",DFn="_nestedField_value_1aweq_57",$Fn="_nestedField_1aweq_36",FFn="_formContainer_1aweq_83",BFn="_inputsRow_1aweq_89",jFn="_formHeader_1aweq_90",zFn="_inputsRow_withAction_1aweq_96",UFn="_formHeader_label_1aweq_106",HFn="_footerWrapper_1aweq_110",VFn="_footerWrapper_buttonsContainer_1aweq_121",GFn="_hidden_1aweq_126",Zo={modal:TFn,body:IFn,divider:AFn,fieldsContainer:RFn,nestedFieldContainer:NFn,nestedFieldWrapper:OFn,field:LFn,field_label:PFn,nestedField_label:kFn,field_value:MFn,nestedField_value:DFn,nestedField:$Fn,formContainer:FFn,inputsRow:BFn,formHeader:jFn,inputsRow_withAction:zFn,formHeader_label:UFn,footerWrapper:HFn,footerWrapper_buttonsContainer:VFn,hidden:GFn},{TextArea:qFn}=$r,ERe="%PLACEHOLDER%",Khe=({data:e,open:t,nonEditableFields:n=[],updating:r=!1,onOk:i,onCancel:a,onEdit:o})=>{const[s,l]=b.useState({}),[c,u]=b.useState({}),[d,f]=b.useState(!1),p=Object.entries(e||{}).reduce((M,[B,k])=>Nn.isNil(k)?M:{...M,[B]:k},{}),h=!Nn.isEmpty(s)&&Object.keys(s).some(M=>!n.includes(M)),m=M=>Nn.isArray(M)?Ga.LIST:Nn.isString(M)&&Number.isNaN(Number(M))&&Cr(M,void 0,!0).isValid()?Ga.DATE:Nn.isString(M)?Ga.KEYWORD:Nn.isNumber(M)?Ga.NUMERICAL:Ga.KEYWORD,g=(M,B,k)=>{if(k===Ga.NUMERICAL||!k&&B&&!Number.isNaN(Number(B)))return Number(B);if(k===Ga.LIST&&Nn.isArray(B))return B.map(G=>g(M,G));const F=p[M];if(Nn.isObject(F)&&Nn.isString(B))try{return JSON.parse(B)}catch{}return B},v=()=>{l(Object.keys(p).reduce((M,B)=>({...M,[B]:{value:p[B],type:m(p[B]),key:B}}),{}))};b.useEffect(()=>{Nn.isEmpty(p)||v()},[e]),so(()=>{r||f(!1)},[r]);const y=()=>{const M=Object.entries(s).reduce((B,[k,{key:F,value:G,type:q}])=>{const W={...B},K=W[k]||{},J=q===Ga.LIST&&!Nn.isArray(G),te=!Nn.isString(F)||F.trim()==="";return J&&(W[k]={...K,value:!0}),te&&(W[k]={...K,key:!0}),W},{});return u(M),Nn.isEmpty(M)},_=()=>{if(!o||!y())return;const M=Object.entries(s).reduce((k,[F,{value:G,key:q}])=>n.includes(F)?k:F.includes(ERe)?{...k,[q]:G}:F!==q?{...k,[q]:G,[F]:null}:{...k,[F]:G},{}),B=Object.keys(p).reduce((k,F)=>s[F]?k:{...k,[F]:null},{});o({...M,...B}),u({})},S=()=>{v(),f(!1),u({})},C=()=>{f(!1),u({}),a()},w=(M,B,k)=>{c[M]?.[B]&&y(),l(F=>({...F,[M]:{...F[M],[B]:k}}))},x=(M,B)=>{l(k=>({...k,[M]:{...k[M],type:B,value:null}}))},T=M=>{l(B=>{const{[M]:k,...F}=B;return F})},A=()=>{const M=`${ERe}_${ps()}`;l(B=>({...B,[M]:{key:"",value:null,type:Ga.KEYWORD}}))},I=M=>({[Ga.KEYWORD]:"text",[Ga.NUMERICAL]:"number",[Ga.DATE]:"date",[Ga.LIST]:"text"})[M],R=M=>Nn.isObject(M)?JSON.stringify(M):M,N=M=>!n.includes(M),P=M=>!(!N(M)||M===s[M].key),L=(M,B)=>{const{value:k,type:F}=B;return F===Ga.LIST?E.jsx(Zi,{mode:"tags",disabled:!N(M)||r,tokenSeparators:[","],value:k,status:c[M]?.value?"error":"",onChange:G=>w(M,"value",g(M,G,F))}):F===Ga.DATE?E.jsx(I_,{value:k?Cr(k):null,disabled:!N(M)||r,status:c[M]?.value?"error":"",onChange:G=>w(M,"value",G.toISOString())}):F===Ga.KEYWORD?E.jsx(qFn,{disabled:!N(M)||r,value:R(k),status:c[M]?.value?"error":"",onChange:G=>w(M,"value",g(M,G.target.value,F)),autoSize:!0}):E.jsx($r,{disabled:!N(M)||r,value:R(k),type:I(F),status:c[M]?.value?"error":"",onChange:G=>w(M,"value",g(M,G.target.value,F))})},$=()=>{const M=[{value:Ga.KEYWORD,label:RP[Ga.KEYWORD]},{value:Ga.NUMERICAL,label:RP[Ga.NUMERICAL]},{value:Ga.DATE,label:RP[Ga.DATE]},{value:Ga.LIST,label:RP[Ga.LIST]}];return E.jsxs("div",{className:Zo.formContainer,children:[E.jsxs("div",{className:Zo.formHeader,children:[E.jsx("div",{className:Zo.formHeader_label,children:Xgn}),E.jsx("div",{className:Zo.formHeader_label,children:Zgn}),E.jsx("div",{className:Zo.formHeader_label,children:Qgn})]}),Object.keys(s).map(B=>E.jsxs("div",{className:Zo.inputsRow,children:[E.jsx(Zi,{disabled:!P(B)||r,options:M,value:s[B].type,onChange:k=>x(B,k)}),E.jsx($r,{disabled:!N(B)||r,value:s[B].key,status:c[B]?.key?"error":"",onChange:k=>w(B,"key",k.target.value)}),E.jsxs("div",{className:Zo.inputsRow_withAction,children:[L(B,s[B]),E.jsx(vr,{title:$Xe,placement:"top",children:E.jsx(ut,{type:"text",disabled:r,icon:E.jsx(m0,{}),className:N(B)?"":Zo.hidden,onClick:()=>T(B)})})]})]},B))]})},D=M=>Nn.isArray(M)?M.map(B=>E.jsx("div",{children:D(B)},B)):Nn.isObject(M)?E.jsxs("div",{className:Zo.nestedFieldWrapper,children:[Object.entries(M).map(([B,k])=>E.jsxs("div",{className:Zo.nestedField,children:[E.jsx("div",{className:Zo.nestedField_label,children:B}),E.jsx("div",{className:Zo.nestedField_value,children:D(k)})]},B)),E.jsx(zi,{className:Zo.divider})]}):R(M),z=(M,B)=>{const k=Nn.isPlainObject(B)||Nn.isArray(B)&&B.some(F=>Nn.isObject(F));return E.jsxs("div",{className:`${Zo.field} ${k?Zo.nestedFieldContainer:""}`,children:[E.jsx("div",{className:Zo.field_label,children:M}),E.jsx("div",{className:Zo.field_value,children:D(B)})]},M)},U=()=>E.jsx("div",{className:Zo.fieldsContainer,children:Object.entries(p).map(([M,B])=>z(M,B))}),H=()=>d?E.jsxs("div",{className:Zo.footerWrapper,children:[E.jsx(ut,{disabled:r,type:"link",onClick:A,icon:E.jsx(Td,{}),children:afn}),E.jsxs("div",{className:Zo.footerWrapper_buttonsContainer,children:[E.jsx(ut,{disabled:r,onClick:S,children:gm}),E.jsx(ut,{disabled:r,loading:r,type:"primary",onClick:_,children:ifn})]})]}):E.jsx("div",{className:Zo.footerWrapper,children:E.jsxs("div",{className:Zo.footerWrapper_buttonsContainer,children:[!!o&&E.jsx(ut,{icon:h?E.jsx(vj,{}):E.jsx(Td,{}),onClick:()=>{f(!0),h||A()},children:h?Qdn:Jgn}),E.jsx(ut,{type:"primary",onClick:i,children:YO})]})});return E.jsxs(wi,{title:mfn,className:Zo.modal,width:"50%",open:t,onCancel:C,footer:H(),children:[!Nn.isEmpty(c)&&d&&E.jsx(Ka,{type:"error",showIcon:!0,banner:!0,closable:!0,message:evn}),E.jsx("div",{className:Zo.body,children:d?$():U()})]})},PU=()=>{const e=ir(),t=st(c9n),n=st(f9n),[r,i]=b.useState([n?.referenceId||""]),[a,o]=b.useState(yF[1].key),s=(u,d)=>u?.find(f=>f.result_id===(d||n?.resultId))??null;return{referenceDrawerVisible:t,activeReference:n,getSearchResultReferences:(u,d)=>{const{answers:f,documents:p}=u,h=s(f,d);if(!h)return null;const{meta:m,result_id:g}=h;return Nn.get(m,"_references",[]).filter(_=>_.label===ype.GROUNDED).map(_=>{const S=p.find(C=>C.id===_.document_id);return{..._,content:S?.content||null,file_name:S?.file?.name||null,file_id:S?.file?.id||null,result_id:g,meta:S?.meta||null}})},collapseActiveKeys:r,setCollapseActiveKeys:i,currentActiveCollapseTab:a,setCurrentActiveCollapseTab:o,findActiveReferenceAnswer:s,resetReferenceDrawer:()=>{e(Xkn)}}},WFn={type:_Ke},YFn={type:SKe},KFn=e=>({type:EKe,payload:e}),jh=e=>({type:CKe,payload:e}),Xhe=Ut(L7,async({currentPage:e,pageSize:t,searchValue:n,sortValue:r,after:i,metadataFilterValues:a={}},{rejectWithValue:o,getState:s,dispatch:l})=>{const{sortValue:c}=s().fileStore,u=r||c;l(KFn(u));const{field:d,order:f}=ivn[u]||{},p=Object.keys(a).reduce((m,g)=>{const v=!m;let y="";if(a[g].min||a[g].max)y=$Ze(g,[a[g].min,a[g].max]);else{const _=a[g];_.forEach((S,C)=>{C===0&&_.length>1&&Object.keys(a).length>1&&(y=y.concat("(")),y=y.concat(`${o_(g)} eq '${S}'`),C<Object.keys(_).length-1?y=y.concat(" or "):_.length>1&&Object.keys(a).length>1&&(y=y.concat(")"))},"")}return v?y:`${m} and ${y}`},""),h={page_number:e,limit:t,name:n,after:i,field:d,order:f,filters:p};try{return(await L$n(h)).data}catch(m){return o(m)}}),XFn=Ut(dE,async({fileId:e,fileName:t},{dispatch:n,rejectWithValue:r})=>{try{const i=await Whe(e);return Phe(t,i.data),i.data}catch(i){return n(jn({content:Wn(i),type:yn.Error})),r(i)}}),s6=Ut(fE,async({fileId:e,fileName:t,isExternal:n=!1},{dispatch:r,rejectWithValue:i,getState:a})=>{const o=n?j$n:Ptt;let s;const l=t?KO(t):null;if(n){const{tokenData:c}=a().sharedPrototypeStore;s=c?.workspaceName}try{return(await o(e,l,s)).data}catch(c){return r(jn({content:Wn(c),type:yn.Error})),i(c)}}),ZFn=Ut(P7,async(e,{rejectWithValue:t})=>{try{return(await Ott(e)).data}catch(n){return t(n)}}),QFn=Ut(k7,async(e,{rejectWithValue:t})=>{try{let n=0;const r=20;for(;n<e.length;){const i=e.slice(n,n+r);await Promise.all(i.map(a=>Ott(a))),n+=r}return!0}catch(n){return t(n)}}),JFn=Ut(M7,async(e,{rejectWithValue:t})=>{try{return await P$n(),!0}catch(n){return t(n)}}),eBn=Ut(D7,async({fileId:e,meta:t},{rejectWithValue:n,dispatch:r})=>{try{await k$n(e,t),r(jn({content:Ygn,type:yn.Success}))}catch(i){return r(jn({content:Wn(i),type:yn.Error})),n(i)}}),kU=({resultId:e,isExternal:t})=>{const n=ir(),[r,i]=b.useState({}),{trackUserEvent:a}=Ev({result_id:e}),o=async(f,p)=>{const h=await n(s6({fileId:f,isExternal:t})),m=KE(h);m&&Phe(p,m)},s=async(f,p)=>{i({...r,[f]:!0}),await o(f,p),i({...r,[f]:!1})},l=async(f,p)=>{i({...r,[f]:!0}),await n(jh({fileName:p,fileId:f,resultId:e,contents:[],isDocumentPreview:!1})),i({...r,[f]:!1}),a({type:Wa.CLICK,control:`${ao.SEARCH_RESULT}/${t6.VIEW_FILE_SOURCE}`,properties:{file_id:f}})},c=async f=>{i({...r,[f]:!0});const p=await n(s6({fileId:f,isExternal:t})),h=KE(p);h&&d7n(h),i({...r,[f]:!1})},u=async(f,p)=>{i({...r,[f]:!0}),await n(jh({fileName:p,fileId:f,resultId:e,contents:[],isDocumentPreview:!0})),i({...r,[f]:!1}),a({type:Wa.CLICK,control:`${ao.SEARCH_RESULT}/${t6.VIEW_DOC_SOURCE}`,properties:{file_id:f}})};return{onFileDropdownItemClick:({key:f,id:p,name:h})=>{switch(f){case Mg.PREVIEW:l(p,h);break;case Mg.OPEN:c(p);break;case Mg.DOWNLOAD:s(p,h);break;case Mg.DOCUMENT:u(p,h);break}},onDocumentPreview:u,isFileActionTakingPlace:r}},tBn="_source_183ck_13",nBn="_source_fileName_183ck_17",rBn="_source_options_183ck_17",iBn="_sourceCollapsable_183ck_39",aBn="_sourceCollapsable_header_button_183ck_46",oBn="_sourceCollapsable_fileOptions_183ck_63",sBn="_result_sourceCollapsable_fileOptions_183ck_75",VS={source:tBn,source_fileName:nBn,source_options:rBn,sourceCollapsable:iBn,sourceCollapsable_header_button:aBn,sourceCollapsable_fileOptions:oBn,result_sourceCollapsable_fileOptions:sBn},Vtt=({resultId:e,file:t,meta:n,isFileActionTakingPlace:r,searching:i,fileDropdownMenuItems:a,onFileDropdownItemClick:o,displayFileOptions:s=!0})=>{let{id:l="",name:c=""}=t||{};if(!c)return null;l||(l=e,c=n?.name);const u=s?E.jsxs(ut,{className:VS.source_options,type:"link",onClick:d=>d.preventDefault(),loading:r[l],disabled:i,children:[c,E.jsx(pv,{className:VS.source_options_icon})]}):E.jsx("span",{className:VS.source_fileName,children:c});return E.jsxs("div",{className:VS.source,"data-testid":"searchResult_single_file_source",children:[E.jsxs("span",{children:[SLn,":"]}),E.jsx(Vo,{disabled:!s,menu:{items:a,onClick:({key:d})=>o({key:d,id:l,name:c})},trigger:["click"],children:u})]})},lBn="_viewDocumentLink_1i7l3_1",cBn={viewDocumentLink:lBn},Gtt=({file:e,onViewDocument:t})=>{if(!t)return null;const{name:n="",id:r=""}=e||{};return E.jsx(ut,{className:cBn.viewDocumentLink,type:"link","data-testid":"searchResult_document_link",onClick:()=>t({fileName:n,fileId:r,isDocumentPreview:!0}),children:CLn})},uBn="_searchDocumentMetadata_16uxx_13",dBn="_searchDocumentMetadata_header_16uxx_22",fBn="_searchDocumentMetadata_body_16uxx_28",gJ={searchDocumentMetadata:uBn,searchDocumentMetadata_header:dBn,searchDocumentMetadata_body:fBn},pBn=({metadata:e})=>E.jsxs("div",{className:gJ.searchDocumentMetadata,children:[E.jsx("div",{className:gJ.searchDocumentMetadata_header,children:kLn}),E.jsx("div",{className:gJ.searchDocumentMetadata_body,children:E.jsx("pre",{children:JSON.stringify(e,null,2)})})]}),hBn="_score_1co4l_13",mBn="_score_icon_1co4l_21",CRe={score:hBn,score_icon:mBn},Zhe=({score:e})=>e?E.jsxs("div",{className:CRe.score,"data-testid":"searchResult_relevance_score",children:[E.jsx(gj,{className:CRe.score_icon}),_Ln,": ",(e*100).toString().slice(0,5),"%"]}):null,gBn="_card_1s7h4_25",vBn="_result_1s7h4_33",yBn="_result_body_1s7h4_39",bBn="_result_actions_1s7h4_44",_Bn="_flex_content_1s7h4_51",SBn="_queryBubble_1s7h4_56",EBn="_answerBubble_1s7h4_57",CBn="_queryBubble_content_1s7h4_62",wBn="_answerBubble_content_1s7h4_63",xBn="_queryBubble_prompts_1s7h4_70",TBn="_answerBubble_prompts_1s7h4_71",IBn="_queryBubble_prompts_selector_1s7h4_79",ABn="_answerBubble_prompts_selector_1s7h4_80",RBn="_queryBubble_query_1s7h4_114",NBn="_queryBubble_answer_1s7h4_114",OBn="_answerBubble_query_1s7h4_115",LBn="_answerBubble_answer_1s7h4_116",PBn="_queryBubble_actions_1s7h4_123",kBn="_answerBubble_actions_1s7h4_124",MBn="_queryBubble_moreOptionsButton_1s7h4_127",DBn="_answerBubble_moreOptionsButton_1s7h4_128",$Bn="_annotations_groudednessWrapper_1s7h4_143",FBn="_annotations_groudedness_1s7h4_143",BBn="_annotations_groudedness_valueTag_1s7h4_153",jBn="_annotations_groudedness_success_1s7h4_164",zBn="_annotations_groudedness_partial_1s7h4_167",UBn="_annotations_groudedness_error_1s7h4_170",HBn="_flexWrapper_1s7h4_174",VBn="_errorAlert_1s7h4_183",Ta={card:gBn,result:vBn,result_body:yBn,result_actions:bBn,flex_content:_Bn,queryBubble:SBn,answerBubble:EBn,queryBubble_content:CBn,answerBubble_content:wBn,queryBubble_prompts:xBn,answerBubble_prompts:TBn,queryBubble_prompts_selector:IBn,answerBubble_prompts_selector:ABn,queryBubble_query:RBn,queryBubble_answer:NBn,answerBubble_query:OBn,answerBubble_answer:LBn,queryBubble_actions:PBn,answerBubble_actions:kBn,queryBubble_moreOptionsButton:MBn,answerBubble_moreOptionsButton:DBn,annotations_groudednessWrapper:$Bn,annotations_groudedness:FBn,annotations_groudedness_valueTag:BBn,annotations_groudedness_success:jBn,annotations_groudedness_partial:zBn,annotations_groudedness_error:UBn,flexWrapper:HBn,errorAlert:VBn},GBn=1e3,koe=({icon:e,loading:t,disabled:n,type:r,onClick:i,children:a,loadingText:o,confirmationText:s,confirmationIcon:l,...c})=>{const[u,d]=b.useState(!1),f=l||E.jsx(IE,{}),p=()=>{d(!0),i(),setTimeout(()=>{d(!1)},GBn)},h=b.useCallback(()=>t&&o?o:u?s:a,[!u&&a,!t]);return E.jsx(ut,{icon:u?f:e,disabled:n,loading:t,type:r,onClick:p,...c,children:h()})},qBn=({copytext:e,...t})=>E.jsx(vr,{title:rfn,placement:"top",children:E.jsx(koe,{size:"small",type:"text",icon:E.jsx(tO,{}),...t,onClick:()=>navigator.clipboard.writeText(e)})}),WBn="_activeButton_x4kzf_13",YBn={activeButton:WBn,"slide-right":"_slide-right_x4kzf_1","slide-bottom":"_slide-bottom_x4kzf_1","slide-top":"_slide-top_x4kzf_1"},hE=({label:e,tooltipTitle:t,active:n,onClick:r,icon:i,activeIcon:a,testId:o,disabled:s,danger:l=!1})=>E.jsx(vr,{title:t,placement:"top",children:E.jsx(ut,{className:n?YBn.activeButton:"",icon:n?a:i,onClick:r,"data-testid":`feedbackButton_${o}`,danger:l,size:"small",type:"text",disabled:s,children:e||""})}),KBn="_container_1oo0a_13",XBn="_inlineContainer_1oo0a_17",ZBn="_modalContainer_1oo0a_28",QBn="_content_1oo0a_32",JBn="_header_1oo0a_38",ejn="_footer_1oo0a_45",tjn="_title_1oo0a_50",njn="_optionalText_1oo0a_54",rjn="_tagsCotainer_1oo0a_59",ijn="_tag_1oo0a_59",ajn="_textArea_1oo0a_73",af={container:KBn,inlineContainer:XBn,modalContainer:ZBn,content:QBn,header:JBn,footer:ejn,title:tjn,optionalText:njn,tagsCotainer:rjn,tag:ijn,textArea:ajn},{TextArea:ojn}=$r,{CheckableTag:sjn}=Si,ljn=400,cjn=({open:e,pipelineName:t,isAdmin:n,tags:r,loading:i,defaultTags:a,defaultComment:o,onClose:s,onSubmit:l})=>{const[c,u]=b.useState(o??""),[d,f]=b.useState(a?.map(I=>I.tag_id)??[]),[p,h]=b.useState(!1),[m,g]=b.useState({}),v=b.useRef(null),y=b.useCallback(()=>{const I=v.current?.parentElement;if(I){const R=I.offsetWidth;h(R>ljn);const N=I.getBoundingClientRect();g({top:N.bottom,left:N.left,margin:0})}},[]);b.useEffect(()=>{y();const I=new ResizeObserver(y),R=new IntersectionObserver(y,{threshold:0}),N=v.current?.parentElement;return N&&(I.observe(N),R.observe(N)),window.addEventListener("scroll",y,!0),window.addEventListener("resize",y),()=>{I.disconnect(),R.disconnect(),window.removeEventListener("scroll",y,!0),window.removeEventListener("resize",y)}},[y]),so(()=>{a&&f(a.map(I=>I.tag_id)),o&&u(o)},[a,o]),so(()=>{e||(u(""),f([]))},[e]);const _=(I,R)=>{if(i)return;const N=R?[...d,I]:d.filter(P=>P!==I);f(N)},S=()=>{l&&l({comment:c,tagsId:d})},C=()=>{s()},w=()=>r?.length?E.jsx("div",{className:af.tagsCotainer,children:r.map(({tag_id:I,name:R})=>E.jsxs(sjn,{className:af.tag,checked:d.includes(I),onChange:N=>_(I,N),children:[d.includes(I)&&E.jsx(IE,{}),E.jsx("span",{children:R})]},I))}):n?E.jsx("div",{className:af.tagsCotainer,children:E.jsx("span",{children:Pn(BLn,{settings:E.jsx("a",{href:`/pipelines/${t}`,target:"_blank",rel:"noreferrer",children:nfn.toLowerCase()})})})}):null,x=()=>E.jsxs("div",{className:af.content,children:[E.jsxs("div",{className:af.header,children:[E.jsxs("h6",{className:af.title,children:[FLn,E.jsxs("span",{className:af.optionalText,children:[" (",Epe,")"]})]}),E.jsx(ut,{className:af.closeButton,size:"small",type:"text",onClick:C,icon:E.jsx(Ic,{})})]}),w(),E.jsx(ojn,{disabled:i,className:af.textArea,value:c,onChange:I=>u(I.target.value),rows:2,placeholder:$Ln}),E.jsx("div",{className:af.footer,children:E.jsx(ut,{onClick:S,disabled:!c&&!d.length||i,loading:i,type:"primary",children:Spe})})]}),T=()=>e?E.jsx("div",{className:af.inlineContainer,children:x()}):null,A=()=>E.jsx(wi,{className:af.modalContainer,open:e,mask:!1,closable:!1,onCancel:C,footer:null,width:400,style:m,children:x()});return E.jsx("div",{ref:v,className:af.container,children:p?T():A()})},ujn="_container_1b9h0_13",djn="_like_icon_active_1b9h0_20",fjn="_neutralThumb_icon_1b9h0_24",pjn="_neutralThumb_icon_active_1b9h0_27",hjn="_dislike_icon_active_1b9h0_31",mjn="_buttonWrapper_1b9h0_35",gjn="_like_icon_1b9h0_20",vjn="_dislike_icon_1b9h0_31",py={container:ujn,like_icon_active:djn,neutralThumb_icon:fjn,neutralThumb_icon_active:pjn,dislike_icon_active:hjn,buttonWrapper:mjn,like_icon:gjn,dislike_icon:vjn},qtt=e=>b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 16 16",fill:"none",...e},b.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.91333 1.82993C2.91333 1.47094 3.20435 1.17993 3.56333 1.17993H12.43C12.789 1.17993 13.08 1.47095 13.08 1.82993V14.8199L7.99666 11.6193L2.91333 14.8199V1.82993Z",fill:"#3A61C2"})),yjn=e=>b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 16 16",fill:"none",...e},b.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.08 2.3466V12.7067L7.99666 10.2406L11.9133 12.7067V2.3466H4.08ZM2.91333 1.82993C2.91333 1.47094 3.20435 1.17993 3.56333 1.17993H12.43C12.789 1.17993 13.08 1.47095 13.08 1.82993V14.8199L7.99666 11.6193L2.91333 14.8199V1.82993Z",fill:"#222839"})),Wtt=({resultId:e,queryId:t,pipelineId:n,withLabel:r=!0,isExternal:i})=>{const{bookmarkSearchResult:a,providedPipelineFeedbackStatus:o,providedFeedbackByResultId:s}=Sv(),l=o===Me.IN_PROGRESS,c=s[e],{bookmarked:u}=c??{},d=f=>{a({resultId:e,queryId:t,pipelineId:n,bookmarked:f,isExternal:i})};return E.jsx(hE,{label:u&&r?b1n:"",tooltipTitle:_1n,disabled:l,active:!!u,onClick:()=>d(!u),icon:E.jsx(g$,{component:yjn}),activeIcon:E.jsx(g$,{component:qtt}),testId:"saveFroLater"})},MC=({resultId:e,queryId:t,pipelineId:n,pipelineName:r,copytext:i,isExternal:a,withBookmark:o=!0})=>{const{role:s}=st(Pl),{providedSearchResultFeedback:l,pipelineFeedbackTagsByPipelineId:c,providedPipelineFeedbackStatus:u,updatedPipelineFeedbackStatus:d,providedFeedbackByResultId:f}=Sv(),[p,h]=b.useState(!1),{data:m}=c[n]??{data:[]},g=u===Me.IN_PROGRESS,v=f[e],{score:y,tags:_,comment:S}=v??{};so(()=>{Nn.isNil(y)||h(!0)},[y]),so(()=>{d===Me.ERROR&&h(!0)});const C=T=>{T!==y&&l({type:T,resultId:e,queryId:t,pipelineId:n,isExternal:a})},w=({comment:T,tagsId:A})=>{v&&(l({type:y,resultId:e,queryId:t,pipelineId:n,comment:T,tags:A,isExternal:a}),h(!1))},x=()=>E.jsxs(E.Fragment,{children:[E.jsx(hE,{tooltipTitle:qg[Ia.ACCURATE],disabled:g,active:y===Ia.ACCURATE,onClick:()=>C(Ia.ACCURATE),icon:E.jsx(yN,{className:py.like_icon}),activeIcon:E.jsx(vN,{className:py.like_icon_active}),testId:"accurate"}),E.jsx(hE,{tooltipTitle:qg[Ia.FAIRLY_ACCURATE],disabled:g,active:y===Ia.FAIRLY_ACCURATE,onClick:()=>C(Ia.FAIRLY_ACCURATE),icon:E.jsx(yN,{className:py.neutralThumb_icon}),activeIcon:E.jsx(vN,{className:py.neutralThumb_icon_active}),testId:"fairlyAccurate"}),E.jsx(hE,{tooltipTitle:qg[Ia.INACCURATE],disabled:g,active:y===Ia.INACCURATE,onClick:()=>C(Ia.INACCURATE),icon:E.jsx(f$,{className:py.dislike_icon}),activeIcon:E.jsx(qce,{className:py.dislike_icon_active}),testId:"notAccurate"})]});return E.jsxs("div",{className:py.container,"data-testid":"searchResult_feedback_options",children:[E.jsxs("div",{className:py.buttonWrapper,children:[x(),!!i&&E.jsx(qBn,{copytext:i}),o&&E.jsx(Wtt,{resultId:e,queryId:t,pipelineId:n,isExternal:a})]}),E.jsx(cjn,{pipelineName:r,isAdmin:s==zn.ADMIN,open:p,tags:m,defaultComment:S,defaultTags:_,loading:d===Me.IN_PROGRESS,onSubmit:w,onClose:()=>{h(!1)}})]})},wRe=1e3,bjn=({result:e,queryId:t,pipelineId:n,pipelineName:r,displayRelevanceScore:i,displayFeedbackOptions:a,displayFileSources:o,displayFileOptions:s,displayMetadata:l,displayFullDocument:c=!1,searching:u,feedback:d,isExternal:f})=>{const{result_id:p,content:h,file:m,score:g,meta:v}=e,{onFileDropdownItemClick:y,onDocumentPreview:_,isFileActionTakingPlace:S}=kU({resultId:p,isExternal:f}),C=()=>{const x=c?h:h.slice(0,wRe);return E.jsxs("div",{className:Ta.result_body,"data-testid":"searchResult_content",children:[E.jsx(a8,{text:x}),!c&&x.length===wRe&&E.jsx(E.Fragment,{children:"..."}),!c&&o&&E.jsx(Gtt,{file:m,onViewDocument:()=>_(m.id,m.name)}),i&&E.jsx(Zhe,{score:g})]})},w=()=>d?E.jsx("div",{className:Ta.result_actions,children:d()}):E.jsx("div",{className:Ta.result_actions,children:E.jsx(MC,{resultId:p,queryId:t,pipelineId:n,pipelineName:r,isExternal:f,copytext:h})});return E.jsxs("div",{className:Ta.result,children:[C(),l&&E.jsx(pBn,{metadata:v}),a&&w(),o&&E.jsx(Vtt,{resultId:p,file:m,meta:v,searching:u,isFileActionTakingPlace:S,onFileDropdownItemClick:y,fileDropdownMenuItems:Rhe,displayFileOptions:s})]})},_jn=({result:e,queryId:t,pipelineId:n,pipelineName:r,displayRelevanceScore:i,displayFeedbackOptions:a,displayFileSources:o,displayFileOptions:s,searching:l,isExternal:c})=>{const{result_id:u,context:d,answer:f,files:p,offsets_in_context:h,meta:m,score:g}=e,[v]=p,{onFileDropdownItemClick:y,onDocumentPreview:_,isFileActionTakingPlace:S}=kU({resultId:u,isExternal:c}),C=()=>E.jsxs("div",{className:Ta.result_body,"data-testid":"searchResult_content",children:[E.jsx(a8,{text:d||"",ellipses:!0,highlight:{text:f,offset:h[0],testId:"searchResult_content_answer"}}),o&&E.jsx(Gtt,{file:v,onViewDocument:()=>_(v.id,v.name)}),i&&E.jsx(Zhe,{score:g})]}),w=()=>E.jsx("div",{className:Ta.result_actions,children:E.jsx(MC,{resultId:u,queryId:t,pipelineId:n,pipelineName:r,isExternal:c,copytext:d||""})});return E.jsxs("div",{className:Ta.result,children:[C(),a&&w(),o&&E.jsx(Vtt,{resultId:u,file:v,meta:m,searching:l,isFileActionTakingPlace:S,onFileDropdownItemClick:y,fileDropdownMenuItems:Rhe,displayFileOptions:s})]})},Sjn="_textContainer_1590c_13",Ejn={textContainer:Sjn},Qhe=({children:e})=>{const t=b.useRef(null),[n,r]=b.useState(e);return b.useEffect(()=>{const i=()=>{if(!t.current)return;const o=t.current.clientWidth;if(t.current.scrollWidth<=o){r(e);return}let l=0,c=e.length;for(;l<c-1;){let u=Math.floor((l+c)/2);const d=`${e.slice(0,u)}...${e.slice(-u)}`;t.current.textContent=d,t.current.scrollWidth>o?c=u:l=u}r(`${e.slice(0,l)}...${e.slice(-l)}`)},a=new ResizeObserver(i);return t.current?.parentElement&&a.observe(t.current.parentElement),i(),window.addEventListener("resize",i),()=>{a.disconnect(),window.removeEventListener("resize",i)}},[e]),E.jsx("span",{ref:t,className:Ejn.textContainer,title:e,children:n})},{Panel:Cjn}=wm,Ytt=({resultId:e,fileDropdownMenuItems:t,onFileDropdownItemClick:n,documentsGroupedByFileId:r,sourcesCollapsed:i,setSourcesCollapsed:a,isExternal:o,displayFileOptions:s,isFileActionTakingPlace:l,searching:c})=>{if(!r||Nn.isEmpty(r))return null;const u=f=>r[f][0].file.name,d=f=>o&&!s?E.jsx(vr,{title:ELn,placement:"top",children:f}):f;return E.jsx(wm,{ghost:!0,className:VS.sourceCollapsable,defaultActiveKey:i?e:"",onChange:f=>{Nn.isString(f)||a(f.filter(Boolean).length>0)},children:E.jsx(Cjn,{"data-testid":"searchResult_multi_file_source",showArrow:!1,header:E.jsxs(ut,{type:"link",className:VS.sourceCollapsable_header_button,children:[Cet,i?E.jsx(bSt,{}):E.jsx(Td,{})]}),children:Object.keys(r).map(f=>E.jsx(Vo,{disabled:!s,menu:{items:t,onClick:({key:p})=>n({key:p,id:f,name:u(f)})},trigger:["click"],children:d(E.jsxs(ut,{className:VS.sourceCollapsable_fileOptions,type:"default",onClick:p=>p.preventDefault(),loading:l[f],disabled:c||!s,children:[E.jsx(Qhe,{children:u(f)}),s&&E.jsx(pv,{})]}))},f))},e)})},wjn=({result:e,pipelineId:t,queryId:n,pipelineName:r,withTypingEffect:i=!0,displayFeedbackOptions:a,displayFileSources:o,displayMoreOptions:s,displayFileOptions:l,displayReferencesPopover:c,searching:u,isExternal:d,documentsGroupedByFileId:f,documents:p,moreOptionsDropdownMenuItems:h,onMoreOptionsDropdownMenuItemClick:m,sourcesCollapsed:g,setSourcesCollapsed:v})=>{const y=ir(),{result_id:_,files:S,answer:C,meta:w}=e,[x]=S??[],{trackUserEvent:T}=Ev({result_id:_}),{onFileDropdownItemClick:A,isFileActionTakingPlace:I}=kU({resultId:_,isExternal:d}),R=()=>{const D=Nn.get(w,"_references",[]);return!p||!l?null:GZe(D,_,p)},N=D=>{y(Ret(_,D)),T({type:Wa.CLICK,control:`${ao.SEARCH_RESULT}/${t6.VIEW_REFERENCE}`,properties:{}})},P=()=>E.jsx(a8,{text:C,references:R(),displayReferencesPopover:c,onViewReference:N,withTypingEffect:!_&&i}),L=()=>E.jsxs("div",{className:`${Ta.result_body} ${Ta.flex_content}`,"data-testid":"searchResult_content",children:[P(),s&&!!h?.length&&E.jsx(Vo,{menu:{items:h,onClick:m},trigger:["click"],children:E.jsx(ut,{type:"text",onClick:D=>D.preventDefault(),disabled:u,icon:E.jsx(Xb,{}),"data-testid":"searchResult_content_moreOptions"})})]}),$=()=>E.jsx("div",{className:Ta.result_actions,children:E.jsx(MC,{resultId:_,queryId:n,pipelineId:t,pipelineName:r,isExternal:d,copytext:C})});return E.jsxs("div",{className:Ta.result,children:[L(),a&&_&&$(),o&&E.jsx(Ytt,{resultId:_,file:x,meta:w,isExternal:d,searching:u,documentsGroupedByFileId:f,isFileActionTakingPlace:I,onFileDropdownItemClick:A,fileDropdownMenuItems:xet,sourcesCollapsed:g,setSourcesCollapsed:v,displayFileOptions:l})]})},xjn=({result:e,queryId:t,pipelineId:n,pipelineName:r,displayFeedbackOptions:i,displayRelevanceScore:a,isExternal:o})=>{const s=()=>E.jsx("div",{className:Ta.result_actions,children:E.jsx(MC,{resultId:e.result_id,queryId:t,pipelineId:n,pipelineName:r,isExternal:o})});return E.jsxs("div",{className:Ta.result,children:[E.jsxs("div",{className:Ta.result_body,children:[Oae,a&&E.jsx(Zhe,{score:e.score})]}),i&&s()]})},Jhe=e=>{const{isExternal:t,searchResult:n,documentsGroupedByFileId:r,documents:i,searchStatus:a,moreOptionsDropdownMenuItems:o,displayFeedbackOptions:s=!0,displayFileOptions:l=!0,displayFileSources:c=!0,displayMoreOptions:u=!0,displayRelevanceScore:d=!0,displayMetadata:f=!1,displayReferencesPopover:p=!0,withGenerativeTypingEffect:h,documentResultOptions:m,queryId:g,pipelineType:v,pipelineId:y,pipelineName:_,sourcesDefaultExpanded:S,feedback:C,onMoreOptionsDropdownMenuItemClick:w}=e,[x,T]=b.useState(S&&v===Aa.GENERATIVE_QUESTION_ANSWERING),A=a===Me.IN_PROGRESS,I=v!==Aa.DOCUMENT_RETRIEVAL&&!n.answer,R=()=>{const N={displayRelevanceScore:d,displayFeedbackOptions:s,displayFileSources:c,displayFileOptions:l,displayMetadata:f,searching:A,feedback:C,isExternal:t,queryId:g,pipelineId:y,pipelineName:_};switch(v){case Aa.DOCUMENT_RETRIEVAL:return E.jsx(bjn,{result:n,...N,...m});case Aa.EXTRACTIVE_QUESTION_ANSWERING:return E.jsx(_jn,{result:n,...N});case Aa.GENERATIVE_QUESTION_ANSWERING:return E.jsx(wjn,{result:n,...N,withTypingEffect:h,displayMoreOptions:u,displayFileOptions:l,displayReferencesPopover:p,documentsGroupedByFileId:r,documents:i,moreOptionsDropdownMenuItems:o,onMoreOptionsDropdownMenuItemClick:w??(()=>{}),sourcesCollapsed:x,setSourcesCollapsed:T});default:return null}};return E.jsxs(E.Fragment,{children:[I?E.jsx(xjn,{result:n,queryId:g,pipelineId:y,pipelineName:_,displayFeedbackOptions:s,displayRelevanceScore:d,isExternal:t}):R(),E.jsx(zi,{className:Ta.result_divider})]})},Tjn="_body_1ik0q_13",Ijn="_answerContainer_1ik0q_19",Ajn="_section_1ik0q_32",Rjn="_section_header_1ik0q_39",Njn="_section_subheader_1ik0q_45",Ojn="_buttonsWrapper_1ik0q_49",Ljn="_panelHeader_1ik0q_59",Pjn="_panelHeader_title_1ik0q_68",kjn="_panelHeader_fileName_1ik0q_74",Mjn="_panelTabs_1ik0q_81",Djn="_subHeader_1ik0q_94",$jn="_buttonWrapper_1ik0q_102",Fjn="_content_1ik0q_107",Bjn="_file_content_1ik0q_112",Bs={body:Tjn,answerContainer:Ijn,section:Ajn,section_header:Rjn,section_subheader:Njn,buttonsWrapper:Ojn,panelHeader:Ljn,panelHeader_title:Pjn,panelHeader_fileName:kjn,panelTabs:Mjn,subHeader:Djn,buttonWrapper:$jn,content:Fjn,file_content:Bjn},jjn=se.lazy(()=>Io(()=>import("./PDFHighligther.CZH3Qgdh.js"),__vite__mapDeps([0,1]))),zjn=se.lazy(()=>Io(()=>import("./CodeViewer.Bz0UUVF7.js"),__vite__mapDeps([2,3,4,5]))),{Panel:Ujn}=wm,Ktt=e=>{const{resultExt:t,isExternal:n}=e,[r,i]=b.useState(!1),{trackUserEvent:a}=Ev(),o=st(SU),{activeReference:s,referenceDrawerVisible:l,collapseActiveKeys:c,setCollapseActiveKeys:u,getSearchResultReferences:d,currentActiveCollapseTab:f,setCurrentActiveCollapseTab:p,findActiveReferenceAnswer:h,resetReferenceDrawer:m}=PU(),g=st(G$n),[v,y]=b.useState(""),[_,S]=b.useState(!1),[C,w]=b.useState({}),[x,T]=b.useState(null),[A,I]=b.useState({}),R=b.useRef([]),N=async re=>{try{S(!0);const ue=n?Mtt:Whe,de=Ltt;let fe;if(n){const{workspaceName:ce}=g||{};fe=ce}const{data:ge}=await ue(re,fe),{data:oe}=n?{data:{}}:await de(re,fe),Ee=await ett(ge);w({...C,[re]:Ee}),I({...A,[re]:{...oe,file_id:re}}),S(!1)}catch{S(!1)}};b.useEffect(()=>{s?.referenceId&&u([s.referenceId])},[s,s?.referenceId]),b.useEffect(()=>{f===Dg.FILE&&!C[v]&&N(v)},[f,v,c.length]);const P=t||o,L=d(P),$=re=>re?.includes(`.${cs.txt}`),D=()=>{m()},z=()=>{i(!1)},U=()=>{u(L?.map((re,ue)=>`${re.result_id}_${ue}`)??[])},H=()=>{u([])},M=(re,ue)=>E.jsxs("div",{className:Bs.panelHeader,children:[E.jsxs("div",{className:Bs.panelHeader_title,children:[E.jsx(dDe,{}),VLn," [",re,"]"]}),E.jsx("span",{className:Bs.panelHeader_fileName,children:ue})]}),B=re=>E.jsxs("div",{className:Bs.subHeader,children:[E.jsx(fEt,{}),E.jsxs("span",{children:[GLn," ",mpn(re)]})]}),k=b.useCallback((re,ue)=>{const{meta:de}=re,fe=de?.page||de?.page_number||1;return E.jsx(se.Suspense,{fallback:E.jsx($o,{}),children:E.jsx(jjn,{pdfData:f7n(ue),search:{term:"",context:"",page:fe}})})},[]),F=re=>E.jsx(_U,{children:re}),G=(re,ue)=>E.jsx(se.Suspense,{fallback:E.jsx($o,{}),children:E.jsx(zjn,{code:re,codeLanguage:ue})}),q=(re,ue,de)=>ue?E.jsx(Htt,{content:re,highlightData:[ue],ref:fe=>{fe&&R.current&&(R.current[de-1]=fe)}}):E.jsx("div",{className:Bs.content,children:E.jsx("pre",{children:re})}),W=()=>E.jsx(Khe,{data:x,nonEditableFields:["file_id"],open:r,onCancel:z,onOk:z}),K=()=>{const re=h(P.answers),{documents:ue}=P;return re?E.jsxs("div",{className:Bs.section,children:[E.jsx("div",{className:Bs.section_subheader,children:E.jsx("h5",{children:wet})}),E.jsx("div",{className:Bs.answerContainer,children:E.jsx(Jhe,{pipelineId:"",queryId:"",searchStatus:Me.IDLE,searchResult:re,documents:ue,pipelineName:"pipelineName",pipelineType:Aa.GENERATIVE_QUESTION_ANSWERING,displayFeedbackOptions:!1,displayFileOptions:!0,displayFileSources:!1,displayMoreOptions:!1,displayReferencesPopover:!1})})]}):null},J=(re,ue)=>{if(!v)return null;if(_||!C[re.file_id])return E.jsx("div",{className:Bs.file_content,children:E.jsx($o,{})});const{content:de,displayLanguage:fe}=C[re.file_id],ge=`${ZN} ${ue}`,oe=re.content.slice(re.doc_start_idx,re.doc_end_idx);return de instanceof ArrayBuffer?E.jsx("div",{className:Bs.file_content,children:k(re,de)}):fe===hc.PLAIN_TEXT?E.jsx("div",{className:Bs.file_content,children:q(de,{context:re.content,answer:oe,label:ge,contentId:re.file_id},ue)}):fe===hc.MARKDOWN?E.jsx("div",{className:Bs.file_content,children:F(de)}):E.jsx("div",{className:Bs.file_content,children:G(de,fe||hc.PLAIN_TEXT)})},te=(re,ue)=>{const de=`${ZN} ${ue}`;return E.jsxs(E.Fragment,{children:[B(re.document_position),re.content&&q(re.content,{offsetsInDocument:[{start:re.doc_start_idx,end:re.doc_end_idx}],label:de,contentId:re.document_id},ue),E.jsx(ut,{size:"small",className:Bs.viewMetadata_button,onClick:()=>{T(re.meta),i(!0)},children:QN})]})},ae=()=>E.jsxs("div",{className:Bs.section,children:[E.jsxs("div",{className:Bs.section_header,children:[E.jsx("h5",{children:RAe}),E.jsxs("div",{className:Bs.buttonsWrapper,children:[E.jsx(ut,{size:"small",onClick:U,icon:E.jsx(U$n,{}),children:qLn}),E.jsx(ut,{size:"small",onClick:H,icon:E.jsx(z$n,{}),children:WLn})]})]}),E.jsx(wm,{expandIconPosition:"end",activeKey:c,onChange:re=>{u(re)},children:L?.map((re,ue)=>E.jsxs(Ujn,{header:M(ue+1,re.file_name),children:[E.jsxs("div",{className:Bs.panelTabs,children:[E.jsx(Lu,{activeKey:f,items:yF,tabBarGutter:16,onChange:de=>{p(de),y(re.file_id),a({type:Wa.CLICK,control:`${ao.REFERENCE_DRAWER}/${ZE.TAB}`,properties:{tab:de,result_id:re.result_id,file_id:re.file_id,document_id:re.document_id}})}}),f===Dg.FILE&&E.jsxs("div",{className:Bs.buttonWrapper,children:[E.jsx(ut,{size:"small",className:Bs.viewMetadata_button,onClick:()=>{T(A[re.file_id]),i(!0)},children:QN}),$(re.file_name)&&E.jsx(vr,{title:Tet,children:E.jsx(ut,{size:"small",icon:E.jsx(Dtt,{}),onClick:()=>R?.current?.[ue].scrollToHighlight()})})]})]}),f===Dg.FILE?J(re,ue+1):te(re,ue+1)]},`${re.result_id}_${ue}`))})]});return L?E.jsxs("div",{children:[E.jsx(xm,{title:RAe,placement:"right",open:l,closable:!0,onClose:D,width:800,children:E.jsxs("div",{className:Bs.body,children:[K(),ae()]})}),W()]}):null},Hjn="_displayModal_y0mag_13",Vjn="_body_y0mag_34",vJ={displayModal:Hjn,body:Vjn},Xtt=({children:e,header:t,title:n,open:r,footer:i,onCancel:a,onOk:o})=>E.jsxs(wi,{title:n,className:vJ.displayModal,open:r,centered:!0,onCancel:a,onOk:o,okText:YO,footer:i,cancelButtonProps:{style:{display:"none"}},children:[t&&E.jsx("div",{className:vJ.header,children:t}),E.jsx("div",{className:vJ.body,children:e})]}),MU=()=>{const e=ir(),t=st(d9n);return{isPromptModalOpened:st(u9n),openPromptModal:a=>{e(DAe(a))},hidePromptModal:()=>{e(DAe(null))},activePrompts:t}},Gjn="_selector_16rpa_13",qjn={selector:Gjn},eme=()=>{const{isPromptModalOpened:e,activePrompts:t,hidePromptModal:n}=MU(),[r,i]=b.useState();if(so(()=>{const s=Object.keys(t||{});s.length&&i(s[0])},[t]),!t||!Object.keys(t||{}).length)return null;const a=()=>Object.keys(t).map(s=>({key:s,label:s})),o=()=>!t||Object.keys(t).length<2?null:E.jsx("div",{className:qjn.selector,children:E.jsx(Lu,{size:"small",activeKey:r,items:a(),onChange:i,tabBarGutter:16})});return E.jsx(Xtt,{title:cfn,onCancel:()=>n(),open:e,onOk:()=>n(),header:o(),children:E.jsx("pre",{children:t[r||""]})})},Wjn="_container_1ktd9_13",Yjn={container:Wjn},Kjn=({text:e})=>E.jsx("div",{className:Yjn.container,children:e}),Xjn=e=>b.createElement("svg",{width:28,height:24,viewBox:"0 0 28 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("title",null,"deepset Cloud icon"),b.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.0958 5.59494C18.111 4.40593 19.6667 3.66485 21.5371 3.66485C25.0344 3.66485 27.6802 6.22435 27.6764 9.60613C27.6764 12.5044 25.7552 14.6541 23.0498 15.2441C22.5325 15.3746 22.003 15.4499 21.4699 15.4687H7.61918C6.26216 15.3912 4.94947 14.9577 3.81316 14.2118C2.67684 13.466 1.75696 12.4341 1.14602 11.2199C0.535091 10.0056 0.254651 8.65198 0.332911 7.29499C0.411171 5.93801 0.84537 4.62556 1.59184 3.48964C2.33831 2.35372 3.37072 1.43438 4.58525 0.8241C5.79978 0.213815 7.15359 -0.0659022 8.51053 0.0130816C9.86747 0.0920654 11.1797 0.526965 12.3152 1.27404C13.4507 2.02111 14.3695 3.05402 14.9792 4.26888C15.0312 4.37928 15.2076 4.74981 15.2329 4.80057C15.4531 5.33337 15.6408 5.94351 15.835 6.57468C15.8646 6.67109 15.8944 6.76799 15.9245 6.86517L16.0425 7.24586C16.6148 9.12773 17.2722 11.0832 18.7226 12.3217L18.8228 12.4232C19.6743 13.0717 20.6692 13.4854 21.4191 13.4854C23.7477 13.4854 25.3973 11.8662 25.3973 9.61629C25.3973 7.36642 23.7451 5.76499 21.4699 5.76499C20.1375 5.76499 19.3127 6.25481 18.6211 6.9705C18.5374 7.06081 18.4238 7.11764 18.3013 7.13039C18.2312 7.13429 18.1611 7.12188 18.0966 7.09414C18.0321 7.06639 17.9749 7.02407 17.9295 6.9705L17.1047 6.20912C17.0618 6.17307 17.0273 6.12799 17.0039 6.0771C16.9804 6.02621 16.9685 5.97076 16.9689 5.91472C16.9756 5.79723 17.0201 5.68507 17.0958 5.59494ZM13.3244 5.51439C13.3066 5.4723 13.2896 5.43211 13.2699 5.39191C12.8473 4.46101 12.1817 3.66118 11.343 3.07655C10.5044 2.49191 9.52366 2.14408 8.50405 2.06964C7.48444 1.9952 6.46361 2.1969 5.54893 2.65352C4.63425 3.11014 3.85952 3.80481 3.30623 4.66446C2.75293 5.52412 2.44152 6.51699 2.40475 7.53866C2.36797 8.56032 2.60719 9.57301 3.09724 10.4702C3.58729 11.3674 4.31007 12.116 5.18955 12.6372C6.06903 13.1584 7.07272 13.433 8.09504 13.4321H16.9105C16.1419 12.6073 15.5231 11.6549 15.0819 10.6175C14.654 9.59821 14.2879 8.55408 13.9856 7.49078C13.9699 7.43881 13.9543 7.38708 13.9389 7.33562C13.7461 6.69457 13.5657 6.09474 13.3625 5.60256C13.3487 5.57192 13.3364 5.54273 13.3244 5.51439ZM19.0068 23.5867C18.6034 23.8562 18.1292 24 17.6441 24C17.3218 24.0005 17.0026 23.9374 16.7048 23.8144C16.407 23.6913 16.1364 23.5106 15.9085 23.2827C15.6806 23.0549 15.5 22.7842 15.3769 22.4864C15.2538 22.1886 15.1907 21.8694 15.1912 21.5471C15.1912 21.062 15.335 20.5878 15.6046 20.1844C15.8741 19.781 16.2572 19.4666 16.7054 19.281C17.1536 19.0953 17.6468 19.0467 18.1226 19.1414C18.5984 19.236 19.0355 19.4696 19.3785 19.8127C19.7216 20.1557 19.9552 20.5928 20.0498 21.0686C20.1445 21.5444 20.0959 22.0376 19.9102 22.4858C19.7246 22.934 19.4102 23.3171 19.0068 23.5867Z",fill:"#2B2F55"})),Zjn="_dcAvatar_9k8ph_13",Qjn="_dcAvatar_default_9k8ph_19",Jjn="_dcAvatar_small_9k8ph_23",ezn="_dcAvatar_large_9k8ph_27",QP={dcAvatar:Zjn,dcAvatar_default:Qjn,dcAvatar_small:Jjn,dcAvatar_large:ezn},{useToken:tzn}=Fd,u8=e=>{const{size:t}=e,{token:n}=tzn(),r=()=>t==="small"?QP.dcAvatar_small:t==="large"?QP.dcAvatar_large:QP.dcAvatar_default;return E.jsx(Mp,{size:t,className:`${QP.dcAvatar} ${r()}`,style:{backgroundColor:n.colorPrimaryBorder},src:E.jsx(Xjn,{})})},d8=({user:e,size:t="small"})=>{const{given_name:n,family_name:r}=e||{};return!n&&!r?E.jsx(Mp,{icon:E.jsx(Zce,{})}):E.jsx(vr,{title:`${n||""} ${r||""}`,children:E.jsx(Mp,{size:t,children:Rvn(n||"",r||"")})})},nzn="_container_1jng5_13",rzn="_blueBackground_1jng5_20",izn="_bubble_content_1jng5_24",azn="_bubble_1jng5_24",yI={container:nzn,blueBackground:rzn,bubble_content:izn,bubble:azn},{useToken:ozn}=Fd,szn=({query:e,user:t,styleCustomization:n})=>{const{token:r}=ozn(),{firstName:i,lastName:a}=t;return E.jsxs(E.Fragment,{children:[E.jsx("div",{className:yI.container,children:E.jsxs("div",{className:yI.bubble_content,children:[E.jsx(d8,{user:{given_name:i,family_name:a,user_id:""},size:"default"}),E.jsx("span",{children:e})]})}),E.jsx("div",{className:`${yI.container} ${yI.blueBackground} ${n?.loadingAnswerContainer||""}`,style:{backgroundColor:r.colorPrimaryBg},children:E.jsxs("div",{className:yI.bubble_content,children:[E.jsx(u8,{}),E.jsx(wQe,{})]})})]})},lzn=se.lazy(()=>Io(()=>import("./DocumentsPreview.caLkNwS1.js"),__vite__mapDeps([6,7]))),Ztt=({pipelineType:e,searchResults:t,isExternal:n})=>{const r=ir(),i=st(qhe),a=st(Rtt),o=st(Ntt),[s,l]=b.useState(0),{getSearchResultReferences:c}=PU();b.useEffect(()=>{r(jh(null))},[]),so(()=>{!i||!a||o===Me.SUCCESS&&r(jh({...i,contents:[{value:a,contentId:i.fileId}]}))},[o]);const u=()=>{r(jh(null)),l(0)},d=x=>{const{documents:T=[]}=t||{};return e===Aa.DOCUMENT_RETRIEVAL?[x]:T.length?!("document_ids"in x)||!x?.document_ids?[]:x.document_ids.reduce((A,I)=>{const R=T.find(N=>N.id===I);return R?[...A,R]:A},[]):T},f=x=>HS(t)?.find(({result_id:A})=>A===x)??null,p=x=>{const T=f(x);return T?d(T):[]},h=x=>x?.length?x.map(({content:T,id:A})=>({value:T,contentId:A})):[],m=x=>x?.length?x.map(({meta:T})=>T):{},g=()=>{if(!t||!i?.resultId)return null;const{resultId:x,isDocumentPreview:T}=i,A=c(t,x);return A?.length?jae(A,ZN).map(R=>{const N=R.content.slice(R.doc_start_idx,R.doc_end_idx);return{offsetsInDocument:T?[{start:R.doc_start_idx,end:R.doc_end_idx}]:null,answer:N,context:T?null:R.content,label:R.highlightLabel,contentId:T?R.document_id:R.file_id}}):null},v=x=>{if(!i?.resultId)return null;const{isDocumentPreview:T}=i,{answer:A,offsets_in_document:I,context:R,files:N,document_ids:P,meta:{page:L,page_number:$}}=x,[{id:D}]=N,[z]=P??[],U=T?null:R,H=!T||!I.length?null:I;return[{answer:A,offsetsInDocument:H,context:U,page:L||$,contentId:T?z:D}]},y=x=>{if(!i?.resultId)return null;const{isDocumentPreview:T}=i,{content:A,file:I,meta:{page:R,page_number:N}}=x,P=T?null:A,L=T?"":I.id;return[{context:P,page:R||N,contentId:L}]},_=()=>{if(!i?.resultId)return null;const{resultId:x}=i,T=f(x);return T?"answer"in T?e===Aa.GENERATIVE_QUESTION_ANSWERING?g():v(T):y(T):null};so(()=>{if(!i?.resultId||!f(i.resultId))return;const{fileName:x,fileId:T,resultId:A,isDocumentPreview:I}=i,R=p(A),N=SR(R);l(Object.keys(N).indexOf(T)),r(jh({fileName:x,fileId:T,resultId:A,isDocumentPreview:I,contents:I?h(N[T]):[],meta:I?m(N[T]):void 0})),I||r(s6({fileId:T,fileName:x,isExternal:n}))},[i?.fileId]);const S=()=>i?.isDocumentPreview?e===Aa.GENERATIVE_QUESTION_ANSWERING?TLn:xLn:wLn,C=async({isNextButton:x})=>{if(!i?.resultId||!f(i.resultId))return;const T=s+(x?1:-1),A=p(i.resultId),I=SR(A),R=Object.keys(I)[T],N=I[R][0].file.name,P={...i,fileName:N,fileId:R};i.isDocumentPreview?r(jh({...P,contents:h(I[R])})):(r(jh({...P,contents:[]})),r(s6({fileId:R,fileName:N,isExternal:n}))),l(T)},w=()=>{if(!i?.resultId)return!0;const x=p(i.resultId),T=SR(x);return s===Object.keys(T).length-1};return!i?.resultId||!f(i.resultId)?null:E.jsx(se.Suspense,{fallback:E.jsx($o,{}),children:E.jsx(lzn,{title:S(),loading:o===Me.IN_PROGRESS,contents:i.contents,meta:i.meta,highlightData:_(),source:i.fileName,displaySourceLabel:i.isDocumentPreview,closeDocumentPreview:u,displayFooterButtons:e===Aa.GENERATIVE_QUESTION_ANSWERING,onNextClick:()=>C({isNextButton:!0}),onPreviousClick:()=>C({isNextButton:!1}),isPreviousItemButtonDisabled:s<=0,isNextItemButtonDisabled:w()})})},{useToken:czn}=Fd,uzn=({result:e,queryId:t,pipelineId:n,pipelineName:r,displayFeedbackOptions:i,displayFileSources:a,displayFileOptions:o,displayMoreOptions:s,displayTypingEffect:l,displayReferencesPopover:c,promptTemplates:u={},query:d,isExternal:f,searching:p,sourcesCollapsed:h=!0,setSourcesCollapsed:m,documentsGroupedByFileId:g,documents:v,moreOptionsDropdownMenuItems:y,onMoreOptionsDropdownMenuItemClick:_,onRepeatQueryOptionClick:S,onSaveQueryPromptTemplateOptionClick:C,errorMessage:w,styleCustomization:x})=>{const T=ir(),{token:A}=czn(),{firstName:I,lastName:R}=st(Pl),[N,P]=b.useState(!1),[L,$]=Dp.useMessage(),[D,z]=b.useState(Object.keys(u||{})[0]),{result_id:U,files:H,answer:M,meta:B}=e||{},[k]=H||[],{trackUserEvent:F}=Ev({result_id:U}),{onFileDropdownItemClick:G,isFileActionTakingPlace:q}=kU({resultId:U,isExternal:f}),W=({key:Ee})=>{Ee==="repeatQuery"&&S&&S(d),Ee==="savePromptTemplate"&&C&&D&&C(u[D].prompt_template)},K=[...S?[{key:"repeatQuery",label:NLn}]:[],...D&&C?[{key:"savePromptTemplate",label:OLn}]:[]],J=Ee=>{navigator.clipboard.writeText(Ee),L.success(LLn)},te=()=>{const Ee=Nn.get(B,"_references",[]);return!v||!o?null:GZe(Ee,U,v)},ae=Ee=>{T(Ret(U,Ee)),F({type:Wa.CLICK,control:`${ao.SEARCH_RESULT}/${t6.VIEW_REFERENCE}`,properties:{}})},re=()=>Object.keys(u).map(Ee=>({key:Ee,label:Ee})),ue=()=>E.jsx("div",{className:Ta.result_actions,children:E.jsx(MC,{resultId:U,queryId:t,pipelineId:n,pipelineName:r,copytext:M,isExternal:f})}),de=()=>E.jsxs("div",{className:Ta.answerBubble_content,children:[E.jsxs("div",{className:Ta.answerBubble_answer,children:[E.jsx(u8,{}),E.jsxs("span",{className:Ta.flexWrapper,children:[E.jsx(a8,{text:M,withTypingEffect:l&&!U,references:te(),onViewReference:ae,displayReferencesPopover:c}),i&&U&&ue(),a&&E.jsx(Ytt,{resultId:U,file:k,meta:B,isExternal:f,searching:p,documentsGroupedByFileId:g,isFileActionTakingPlace:q,onFileDropdownItemClick:G,fileDropdownMenuItems:xet,sourcesCollapsed:h,setSourcesCollapsed:m,displayFileOptions:o})]})]}),s&&!!y?.length&&E.jsx(Vo,{menu:{items:y,onClick:_},trigger:["click"],children:E.jsx(ut,{type:"text",onClick:Ee=>Ee.preventDefault(),disabled:p,className:Ta.answerBubble_moreOptionsButton,icon:E.jsx(Xb,{})})})]}),fe=()=>E.jsx(Ka,{className:Ta.errorAlert,message:PLn,description:w,type:"error"}),ge=()=>e?de():null,oe=()=>!u||Object.keys(u).length<2?null:E.jsx("div",{className:Ta.queryBubble_prompts_selector,children:E.jsx(Lu,{size:"small",activeKey:D,items:re(),onChange:z,tabBarGutter:16})});return E.jsxs(E.Fragment,{children:[$,E.jsxs("div",{className:Ta.result,children:[E.jsx("div",{className:Ta.queryBubble,children:E.jsxs("div",{className:Ta.queryBubble_content,children:[E.jsxs("div",{className:Ta.queryBubble_query,children:[E.jsx(d8,{user:{given_name:I,family_name:R,user_id:""},size:"default"}),E.jsxs("span",{children:[d,D&&E.jsxs(E.Fragment,{children:[N&&E.jsxs("div",{className:Ta.queryBubble_prompts,children:[oe(),E.jsxs("code",{children:[E.jsx("pre",{children:u[D].prompt_template}),E.jsx(ut,{icon:E.jsx(tO,{}),size:"small",onClick:()=>J(u[D].prompt_template||"")})]})]}),E.jsx("div",{className:Ta.queryBubble_actions,children:E.jsx(ut,{size:"small",onClick:()=>P(!N),children:N?RLn:ALn})})]})]})]}),s&&!!K.length&&E.jsx(Vo,{menu:{items:K,onClick:W},trigger:["click"],children:E.jsx(ut,{type:"text",onClick:Ee=>Ee.preventDefault(),disabled:p,className:Ta.answerBubble_moreOptionsButton,icon:E.jsx(Xb,{})})})]})}),w?fe():E.jsx("div",{className:`${Ta.answerBubble} ${x?.answerContainer||""}`,style:{backgroundColor:A.colorPrimaryBg},"data-testid":"searchResult_content",children:E.jsx("div",{className:Ta.answerBubble_content,children:ge()})})]})]})},dzn=e=>{const{isExternal:t,searchResult:n,documents:r,queryId:i,pipelineId:a,pipelineName:o,documentsGroupedByFileId:s,searchStatus:l,promptTemplates:c,moreOptionsDropdownMenuItems:u,displayFeedbackOptions:d=!0,displayFileOptions:f=!0,displayFileSources:p=!0,displayMoreOptions:h=!0,displayTypingEffect:m=!0,displayReferencesPopover:g=!0,styleCustomization:v,sourcesDefaultExpanded:y,query:_,errorMessage:S,onRepeatQueryOptionClick:C,onSaveQueryPromptTemplateOptionClick:w,onMoreOptionsDropdownMenuItemClick:x}=e,[T,A]=b.useState(y),I=l===Me.IN_PROGRESS;return E.jsx(uzn,{result:n,queryId:i,pipelineId:a,pipelineName:o,promptTemplates:c,query:_,searching:I,displayFeedbackOptions:d,displayFileSources:p,displayFileOptions:f,displayMoreOptions:h,displayTypingEffect:m,displayReferencesPopover:g,isExternal:t,documents:r,documentsGroupedByFileId:s,moreOptionsDropdownMenuItems:u,onMoreOptionsDropdownMenuItemClick:x,sourcesCollapsed:T,setSourcesCollapsed:A,onRepeatQueryOptionClick:C,onSaveQueryPromptTemplateOptionClick:w,errorMessage:S,styleCustomization:v})},Qtt=e=>{const{isExternal:t,displayFileOptions:n=!0,displayMoreOptions:r=!0,displayTypingEffect:i=!0,displayReferencesPopover:a,results:o,status:s,query:l,pipelineId:c,pipelineName:u,resultStyleCustomization:d,onRepeatQueryOptionClick:f,onSaveQueryPromptTemplateOptionClick:p}=e,{activeReference:h}=PU(),m=st(Pl),g=st(qhe),{openPromptModal:v}=MU(),y=s===Me.IN_PROGRESS,_=I=>o?.find(({answers:R})=>R[0]?.result_id===I)??null,S=I=>I&&_(I)||null,C=I=>{const{answers:R,documents:N}=I,[P]=R;return N.length?!("document_ids"in P)||!P?.document_ids?[]:P.document_ids.reduce((L,$)=>{const D=N.find(z=>z.id===$);return D?[...L,D]:L},[]):N},w=()=>!o.length||!h?null:o.find(I=>{const{answers:R}=I;return R?.some(N=>N.result_id===h.resultId)}),x=({key:I},R)=>{I===R1.VIEW_PROMPT&&v(R.prompts)},T=I=>I.prompts?[{key:R1.VIEW_PROMPT,label:Ahe}]:[],A=b.useMemo(()=>o&&o.map(I=>{const[R]=I.answers,N=R?C(I):[];return I?.infoMessage?E.jsx(Kjn,{text:I.infoMessage},I.query_id):E.jsx(dzn,{isExternal:t,searchResult:R,searchStatus:s,documents:N,documentsGroupedByFileId:SR(N),promptTemplates:I?.promptTemplates,pipelineId:c,pipelineName:u,displayFileOptions:n,displayMoreOptions:r,displayTypingEffect:i,displayReferencesPopover:a,styleCustomization:d,sourcesDefaultExpanded:!1,query:I?.query||l,queryId:I?.query_id||"",errorMessage:I?.errorMessage,onRepeatQueryOptionClick:f,onSaveQueryPromptTemplateOptionClick:p,moreOptionsDropdownMenuItems:T(I),onMoreOptionsDropdownMenuItemClick:P=>x(P,I)},R?.result_id)}),[o]);return E.jsxs(E.Fragment,{children:[E.jsx(eme,{}),A,y&&E.jsx(szn,{query:l,user:{firstName:m.firstName,lastName:m.lastName},styleCustomization:d}),E.jsx(Ztt,{pipelineType:Aa.GENERATIVE_QUESTION_ANSWERING,searchResults:S(g?.resultId||""),isExternal:t}),!!o?.length&&E.jsx(Ktt,{resultExt:w(),isExternal:t})]})},ts=e=>e===qn.IN_PROGRESS||e===qn.UNDEPLOYMENT_IN_PROGRESS||e===qn.UNDEPLOYMENT_SCHEDULED||e===qn.DEPLOYMENT_IN_PROGRESS||e===qn.DEPLOYMENT_SCHEDULED||e===qn.ACTIVATING,j5=e=>e===qn.IDLE||e===qn.DEPLOYED||e===qn.UNDEPLOYMENT_IN_PROGRESS||e===qn.UNDEPLOYMENT_SCHEDULED,Jtt=(e,t)=>(j5(e)||ts(e))&&t===Li.PRODUCTION,ent=e=>{const t=e?e/60/60:0;if(t<=24)return`${t} hours`;if(t>24){const n=Math.floor(t/24),r=t%24;return r===0?`${n} days`:`${n} days and ${r} hours`}return""},fzn=e=>e.indexed_file_count>0,pzn=e=>b.createElement("svg",{width:301,height:301,viewBox:"0 0 301 301",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("path",{d:"M238.681 160.5H221.319C221.153 160.5 220.992 160.451 220.856 160.359C220.719 160.268 220.614 160.138 220.555 159.987C220.495 159.836 220.484 159.67 220.522 159.513C220.56 159.355 220.647 159.213 220.769 159.104L236.557 145.103H221.97C221.753 145.103 221.545 145.019 221.391 144.869C221.237 144.718 221.151 144.514 221.151 144.302C221.151 144.089 221.237 143.885 221.391 143.735C221.545 143.584 221.753 143.5 221.97 143.5H238.681C238.846 143.5 239.008 143.549 239.144 143.641C239.281 143.732 239.386 143.862 239.445 144.013C239.505 144.164 239.516 144.33 239.478 144.487C239.44 144.645 239.353 144.787 239.231 144.896L223.443 158.897H238.681C238.898 158.897 239.107 158.981 239.26 159.131C239.414 159.282 239.5 159.486 239.5 159.698C239.5 159.911 239.414 160.115 239.26 160.265C239.107 160.416 238.898 160.5 238.681 160.5Z",fill:"#C1C3C8"}),b.createElement("path",{d:"M270.207 121.5H242.793C242.532 121.5 242.277 121.422 242.061 121.277C241.846 121.131 241.681 120.925 241.587 120.685C241.493 120.445 241.475 120.182 241.535 119.932C241.595 119.682 241.731 119.456 241.925 119.283L266.854 97.0466H243.821C243.478 97.0466 243.149 96.9125 242.907 96.6737C242.664 96.4349 242.528 96.111 242.528 95.7733C242.528 95.4355 242.664 95.1117 242.907 94.8729C243.149 94.6341 243.478 94.5 243.821 94.5H270.207C270.468 94.5 270.723 94.5779 270.939 94.7234C271.154 94.8689 271.319 95.0753 271.413 95.3152C271.507 95.5552 271.525 95.8176 271.465 96.0678C271.405 96.3181 271.269 96.5445 271.075 96.7171L246.146 118.953H270.207C270.55 118.953 270.879 119.088 271.121 119.326C271.364 119.565 271.5 119.889 271.5 120.227C271.5 120.564 271.364 120.888 271.121 121.127C270.879 121.366 270.55 121.5 270.207 121.5Z",fill:"#C1C3C8"}),b.createElement("path",{d:"M260.431 70.5H216.569C216.151 70.5 215.743 70.3733 215.398 70.1362C215.054 69.899 214.789 69.5627 214.638 69.1716C214.488 68.7805 214.459 68.3528 214.556 67.945C214.653 67.5372 214.87 67.1684 215.18 66.8871L255.066 30.65H218.214C217.665 30.65 217.139 30.4314 216.751 30.0423C216.363 29.6532 216.145 29.1254 216.145 28.5751C216.145 28.0248 216.363 27.4969 216.751 27.1077C217.139 26.7186 217.665 26.5 218.214 26.5H260.431C260.849 26.5 261.257 26.6269 261.602 26.864C261.946 27.1012 262.211 27.4374 262.362 27.8285C262.512 28.2196 262.541 28.6472 262.444 29.055C262.347 29.4628 262.13 29.8317 261.82 30.1131L221.934 66.35H260.431C260.98 66.35 261.506 66.5687 261.894 66.9579C262.282 67.347 262.5 67.8747 262.5 68.4251C262.5 68.9754 262.282 69.5031 261.894 69.8923C261.506 70.2814 260.98 70.5 260.431 70.5Z",fill:"#C1C3C8"}),b.createElement("path",{d:"M229.252 298.699H72.7477C71.3559 298.699 70.0211 298.146 69.037 297.162C68.0529 296.178 67.5 294.843 67.5 293.451C124.233 286.858 179.9 286.858 234.5 293.451C234.5 294.843 233.947 296.178 232.963 297.162C231.979 298.146 230.644 298.699 229.252 298.699Z",fill:"#2F2E41"}),b.createElement("path",{d:"M234.5 293.76L67.5 293.451L86.8547 260.885L86.9473 260.73V188.957C86.9472 188.086 87.1188 187.224 87.4521 186.419C87.7855 185.614 88.2741 184.883 88.8901 184.267C89.5061 183.651 90.2374 183.162 91.0423 182.829C91.8472 182.495 92.7098 182.324 93.581 182.324H207.493C208.364 182.324 209.227 182.495 210.032 182.829C210.836 183.162 211.568 183.651 212.184 184.267C212.8 184.883 213.288 185.614 213.622 186.419C213.955 187.224 214.127 188.086 214.127 188.957V261.224L234.5 293.76Z",fill:"#3F3D56"}),b.createElement("path",{d:"M93.4303 186.954C92.8575 186.955 92.3082 187.182 91.9031 187.587C91.498 187.993 91.2702 188.542 91.2695 189.115V254.556C91.2702 255.129 91.4981 255.679 91.9032 256.084C92.3082 256.489 92.8575 256.717 93.4303 256.717H208.571C209.144 256.717 209.693 256.489 210.098 256.084C210.503 255.679 210.731 255.129 210.732 254.556V189.115C210.731 188.542 210.503 187.993 210.098 187.587C209.693 187.182 209.144 186.955 208.571 186.954H93.4303Z",fill:"white"}),b.createElement("path",{d:"M93.9114 265.36C93.7344 265.361 93.5611 265.412 93.4121 265.507C93.263 265.603 93.1443 265.739 93.0701 265.899L87.1063 278.864C87.0414 279.005 87.013 279.16 87.0237 279.315C87.0344 279.47 87.084 279.62 87.1678 279.751C87.2515 279.882 87.3669 279.989 87.5031 280.064C87.6394 280.138 87.7922 280.177 87.9475 280.177H213.363C213.521 280.177 213.676 280.137 213.814 280.06C213.952 279.983 214.068 279.872 214.151 279.738C214.234 279.604 214.281 279.451 214.288 279.293C214.295 279.135 214.262 278.978 214.191 278.837L207.708 265.872C207.632 265.718 207.514 265.588 207.368 265.498C207.221 265.408 207.052 265.36 206.88 265.36H93.9114Z",fill:"#2F2E41"}),b.createElement("path",{d:"M150.537 185.873C151.304 185.873 151.926 185.251 151.926 184.484C151.926 183.717 151.304 183.095 150.537 183.095C149.769 183.095 149.148 183.717 149.148 184.484C149.148 185.251 149.769 185.873 150.537 185.873Z",fill:"white"}),b.createElement("path",{d:"M138.21 282.647C138.006 282.647 137.809 282.715 137.647 282.839C137.485 282.962 137.369 283.136 137.316 283.332L135.82 288.889C135.783 289.026 135.778 289.17 135.806 289.309C135.833 289.449 135.893 289.58 135.979 289.693C136.066 289.806 136.177 289.897 136.304 289.96C136.432 290.023 136.572 290.056 136.714 290.056H165.164C165.311 290.056 165.457 290.02 165.588 289.953C165.719 289.885 165.833 289.787 165.918 289.667C166.004 289.546 166.059 289.407 166.08 289.261C166.101 289.115 166.087 288.966 166.039 288.827L164.115 283.27C164.052 283.088 163.934 282.931 163.777 282.819C163.621 282.707 163.433 282.647 163.24 282.647H138.21Z",fill:"#2F2E41"}),b.createElement("path",{d:"M214.126 259.65V260.885H86.8545L86.9503 260.73V259.65H214.126Z",fill:"#2F2E41"}),b.createElement("path",{d:"M195.493 234.52H106.508C106.071 234.52 105.652 234.346 105.344 234.037C105.035 233.728 104.861 233.309 104.86 232.872V210.799C104.861 210.362 105.035 209.943 105.344 209.634C105.652 209.325 106.071 209.152 106.508 209.151H195.493C195.93 209.152 196.349 209.325 196.658 209.634C196.966 209.943 197.14 210.362 197.141 210.799V232.872C197.14 233.309 196.966 233.728 196.658 234.037C196.349 234.346 195.93 234.52 195.493 234.52ZM106.508 209.81C106.246 209.811 105.995 209.915 105.809 210.1C105.624 210.286 105.52 210.537 105.519 210.799V232.872C105.52 233.134 105.624 233.386 105.809 233.571C105.995 233.756 106.246 233.861 106.508 233.861H195.493C195.755 233.861 196.006 233.756 196.192 233.571C196.377 233.386 196.481 233.134 196.482 232.872V210.799C196.481 210.537 196.377 210.286 196.192 210.1C196.006 209.915 195.755 209.811 195.493 209.81L106.508 209.81Z",fill:"#DADBDE"}),b.createElement("path",{d:"M120.334 227.701C124.041 227.701 127.046 224.696 127.046 220.989C127.046 217.281 124.041 214.276 120.334 214.276C116.627 214.276 113.621 217.281 113.621 220.989C113.621 224.696 116.627 227.701 120.334 227.701Z",fill:"#DADBDE"}),b.createElement("path",{d:"M135.837 216.514C135.69 216.513 135.545 216.542 135.409 216.598C135.273 216.654 135.149 216.737 135.045 216.841C134.941 216.945 134.858 217.068 134.802 217.204C134.746 217.34 134.717 217.485 134.717 217.632C134.717 217.779 134.746 217.925 134.802 218.061C134.858 218.197 134.941 218.32 135.045 218.424C135.149 218.528 135.273 218.61 135.409 218.667C135.545 218.723 135.69 218.751 135.837 218.751H188.579C188.875 218.751 189.16 218.633 189.37 218.423C189.579 218.214 189.697 217.929 189.697 217.632C189.697 217.336 189.579 217.051 189.37 216.841C189.16 216.632 188.875 216.514 188.579 216.514H135.837Z",fill:"#DADBDE"}),b.createElement("path",{d:"M135.837 223.226C135.54 223.226 135.255 223.344 135.046 223.554C134.836 223.764 134.718 224.048 134.718 224.345C134.718 224.642 134.836 224.926 135.046 225.136C135.255 225.346 135.54 225.464 135.837 225.464H158.531C158.828 225.464 159.113 225.346 159.322 225.136C159.532 224.926 159.65 224.642 159.65 224.345C159.65 224.048 159.532 223.764 159.322 223.554C159.113 223.344 158.828 223.226 158.531 223.226H135.837Z",fill:"#DADBDE"})),{useToken:hzn}=Fd,mzn=()=>{const{token:e}=hzn();return E.jsxs("svg",{width:"301",height:"301",viewBox:"0 0 301 301",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[E.jsxs("g",{clipPath:"url(#clip0_395_17016)",children:[E.jsx("path",{d:"M268.047 158.417C266.74 173.515 260.158 188.105 250.769 200.172C250.377 200.677 249.98 201.177 249.578 201.672C248.674 202.786 247.746 203.88 246.795 204.952C245.632 206.274 244.434 207.565 243.203 208.825C242.201 209.862 241.175 210.878 240.126 211.871C239.316 212.645 238.497 213.404 237.669 214.149C227.705 223.152 216.259 230.582 204.466 237.08C181.451 249.756 156.224 259.359 129.984 260.757C103.748 262.152 76.3594 254.638 57.1187 236.743C31.1877 212.628 23.9505 172.404 34.4785 138.595C41.4809 116.102 55.7729 95.7538 75.2239 82.4641C94.5066 69.29 118.833 63.3601 141.855 67.2363C160.233 56.0669 184.293 55.8531 204.273 64.1206C214.934 68.533 224.502 75.0938 232.896 83.0213C236.74 86.6594 240.336 90.5501 243.662 94.6674C244.002 95.0844 244.338 95.505 244.671 95.929C246.066 97.6919 247.415 99.4909 248.719 101.326C250.591 103.958 252.368 106.649 254.05 109.398C254.512 110.155 254.972 110.915 255.42 111.683C255.722 112.198 256.026 112.716 256.324 113.239C256.331 113.249 256.336 113.261 256.338 113.274C261.003 121.478 264.816 130.233 266.803 139.383C267.154 141.003 267.448 142.629 267.676 144.269V144.272C267.876 145.664 268.026 147.062 268.128 148.468C268.368 151.781 268.341 155.108 268.047 158.417Z",fill:"#3F3D56"}),E.jsx("path",{opacity:"0.3",d:"M199.581 181.242L147.55 137.897L198.097 182.978C198.195 183.143 198.331 183.282 198.493 183.384C198.655 183.486 198.84 183.548 199.031 183.564C199.222 183.581 199.414 183.551 199.592 183.479C199.769 183.406 199.927 183.292 200.051 183.146C200.176 183 200.264 182.827 200.308 182.64C200.352 182.454 200.351 182.259 200.305 182.073C200.259 181.887 200.169 181.715 200.043 181.57C199.917 181.425 199.759 181.313 199.581 181.242Z",fill:"#F0F0F0"}),E.jsx("path",{d:"M80.2601 159.185C97.4867 159.185 111.452 145.22 111.452 127.993C111.452 110.767 97.4867 96.8018 80.2601 96.8018C63.0334 96.8018 49.0685 110.767 49.0685 127.993C49.0685 145.22 63.0334 159.185 80.2601 159.185Z",fill:"#F2F2F2"}),E.jsx("path",{d:"M107.947 125.89C107.947 129.618 107.213 133.31 105.787 136.754C104.36 140.199 102.269 143.328 99.633 145.964C96.9969 148.6 93.8674 150.691 90.4231 152.118C86.9788 153.545 83.2872 154.279 79.5592 154.278C76.2364 154.276 72.9393 153.695 69.8162 152.561C64.9328 150.782 60.6311 147.697 57.3794 143.643C54.1277 139.588 52.0507 134.72 51.3744 129.566C50.6981 124.413 51.4484 119.173 53.5438 114.417C55.6392 109.661 58.9992 105.571 63.2582 102.592C67.5171 99.6131 72.5116 97.8597 77.698 97.5227C82.8843 97.1857 88.0638 98.278 92.6724 100.681C97.281 103.083 101.142 106.704 103.835 111.149C106.529 115.594 107.951 120.693 107.947 125.89Z",fill:"white"}),E.jsx("path",{d:"M74.6526 125.189C79.4916 125.189 83.4143 121.267 83.4143 116.428C83.4143 111.589 79.4916 107.666 74.6526 107.666C69.8137 107.666 65.8909 111.589 65.8909 116.428C65.8909 121.267 69.8137 125.189 74.6526 125.189Z",fill:"#E4E4E4"}),E.jsx("path",{d:"M106.84 118.015C104.941 118.929 102.776 119.128 100.743 118.575C98.7092 118.022 96.943 116.755 95.7678 115.006C94.5927 113.257 94.0872 111.143 94.3441 109.051C94.601 106.96 95.6031 105.031 97.1666 103.618C101.813 107.291 105.195 112.325 106.84 118.015Z",fill:"#F2F2F2"}),E.jsx("path",{d:"M89.0218 138.507C90.7638 138.507 92.176 137.095 92.176 135.353C92.176 133.611 90.7638 132.199 89.0218 132.199C87.2798 132.199 85.8676 133.611 85.8676 135.353C85.8676 137.095 87.2798 138.507 89.0218 138.507Z",fill:"#E4E4E4"}),E.jsx("path",{d:"M76.0545 153.227C76.0542 153.504 76.0177 153.78 75.9458 154.047C73.853 153.785 71.7966 153.287 69.8162 152.561C69.9806 151.8 70.4208 151.127 71.0518 150.671C71.6829 150.215 72.4603 150.008 73.2346 150.091C74.0088 150.173 74.7251 150.539 75.2457 151.118C75.7663 151.697 76.0544 152.448 76.0545 153.227Z",fill:"#F2F2F2"}),E.jsx("path",{d:"M57.4797 124.489C57.4796 126.089 56.8713 127.629 55.7781 128.798C54.685 129.967 53.1885 130.676 51.5919 130.783C50.8692 126.617 51.0798 122.343 52.2087 118.268C53.6813 118.513 55.0191 119.273 55.9843 120.412C56.9494 121.551 57.4793 122.996 57.4797 124.489Z",fill:"#F2F2F2"}),E.jsx("path",{d:"M213.043 114.467C213.76 114.467 214.341 113.886 214.341 113.169C214.341 112.453 213.76 111.872 213.043 111.872C212.327 111.872 211.746 112.453 211.746 113.169C211.746 113.886 212.327 114.467 213.043 114.467Z",fill:e.colorPrimary}),E.jsx("path",{d:"M201.073 82.899C201.492 82.899 201.831 82.5596 201.831 82.1409C201.831 81.7222 201.492 81.3828 201.073 81.3828C200.655 81.3828 200.315 81.7222 200.315 82.1409C200.315 82.5596 200.655 82.899 201.073 82.899Z",fill:"#F0F0F0"}),E.jsx("path",{d:"M79.4611 231.497C79.8798 231.497 80.2192 231.158 80.2192 230.739C80.2192 230.32 79.8798 229.981 79.4611 229.981C79.0424 229.981 78.703 230.32 78.703 230.739C78.703 231.158 79.0424 231.497 79.4611 231.497Z",fill:"#F0F0F0"}),E.jsx("path",{d:"M205.377 157.074C205.795 157.074 206.135 156.734 206.135 156.316C206.135 155.897 205.795 155.558 205.377 155.558C204.958 155.558 204.619 155.897 204.619 156.316C204.619 156.734 204.958 157.074 205.377 157.074Z",fill:"#F0F0F0"}),E.jsx("path",{d:"M107.553 164.233C108.269 164.233 108.85 163.652 108.85 162.936C108.85 162.219 108.269 161.638 107.553 161.638C106.836 161.638 106.255 162.219 106.255 162.936C106.255 163.652 106.836 164.233 107.553 164.233Z",fill:e.colorPrimary}),E.jsx("path",{d:"M60.5899 192.194C63.9739 192.194 66.7171 189.45 66.7171 186.066C66.7171 182.682 63.9739 179.939 60.5899 179.939C57.2059 179.939 54.4627 182.682 54.4627 186.066C54.4627 189.45 57.2059 192.194 60.5899 192.194Z",fill:e.colorPrimary}),E.jsx("path",{d:"M94.1807 193.647C94.5994 193.647 94.9388 193.307 94.9388 192.888C94.9388 192.47 94.5994 192.13 94.1807 192.13C93.762 192.13 93.4226 192.47 93.4226 192.888C93.4226 193.307 93.762 193.647 94.1807 193.647Z",fill:"#F0F0F0"}),E.jsx("path",{d:"M171.284 75.1885C171.702 75.1885 172.042 74.8491 172.042 74.4304C172.042 74.0118 171.702 73.6724 171.284 73.6724C170.865 73.6724 170.525 74.0118 170.525 74.4304C170.525 74.8491 170.865 75.1885 171.284 75.1885Z",fill:"#F0F0F0"}),E.jsx("path",{d:"M126.073 236.754C126.492 236.754 126.831 236.415 126.831 235.996C126.831 235.577 126.492 235.238 126.073 235.238C125.655 235.238 125.315 235.577 125.315 235.996C125.315 236.415 125.655 236.754 126.073 236.754Z",fill:"#F0F0F0"}),E.jsx("path",{d:"M114.858 82.1981C115.277 82.1981 115.616 81.8586 115.616 81.44C115.616 81.0213 115.277 80.6819 114.858 80.6819C114.44 80.6819 114.1 81.0213 114.1 81.44C114.1 81.8586 114.44 82.1981 114.858 82.1981Z",fill:"#F0F0F0"}),E.jsx("path",{d:"M134.484 118.997C134.903 118.997 135.243 118.658 135.243 118.239C135.243 117.82 134.903 117.481 134.484 117.481C134.066 117.481 133.726 117.82 133.726 118.239C133.726 118.658 134.066 118.997 134.484 118.997Z",fill:"#F0F0F0"}),E.jsx("path",{d:"M104.442 209.293C104.861 209.293 105.2 208.954 105.2 208.535C105.2 208.117 104.861 207.777 104.442 207.777C104.023 207.777 103.684 208.117 103.684 208.535C103.684 208.954 104.023 209.293 104.442 209.293Z",fill:"#F0F0F0"}),E.jsx("path",{d:"M193.11 214.2C193.529 214.2 193.868 213.861 193.868 213.442C193.868 213.023 193.529 212.684 193.11 212.684C192.692 212.684 192.352 213.023 192.352 213.442C192.352 213.861 192.692 214.2 193.11 214.2Z",fill:"#F0F0F0"}),E.jsx("path",{d:"M153.858 170.041C154.277 170.041 154.616 169.702 154.616 169.283C154.616 168.864 154.277 168.525 153.858 168.525C153.439 168.525 153.1 168.864 153.1 169.283C153.1 169.702 153.439 170.041 153.858 170.041Z",fill:"#F0F0F0"}),E.jsx("path",{d:"M173.835 118.873C174.253 118.873 174.593 118.533 174.593 118.115C174.593 117.696 174.253 117.357 173.835 117.357C173.416 117.357 173.077 117.696 173.077 118.115C173.077 118.533 173.416 118.873 173.835 118.873Z",fill:"#F0F0F0"}),E.jsx("path",{d:"M210.154 144.172C210.984 144.172 211.657 143.499 211.657 142.669C211.657 141.838 210.984 141.166 210.154 141.166C209.324 141.166 208.651 141.838 208.651 142.669C208.651 143.499 209.324 144.172 210.154 144.172Z",fill:"#FF6584"}),E.jsx("path",{d:"M149.172 94.4054C150.003 94.4054 150.676 93.7324 150.676 92.9023C150.676 92.0721 150.003 91.3992 149.172 91.3992C148.342 91.3992 147.669 92.0721 147.669 92.9023C147.669 93.7324 148.342 94.4054 149.172 94.4054Z",fill:"#FF6584"}),E.jsx("path",{d:"M149.172 197.793C150.003 197.793 150.676 197.12 150.676 196.29C150.676 195.46 150.003 194.787 149.172 194.787C148.342 194.787 147.669 195.46 147.669 196.29C147.669 197.12 148.342 197.793 149.172 197.793Z",fill:"#FF6584"}),E.jsx("path",{d:"M242.821 204.952C242.235 204.953 241.666 205.144 241.199 205.497C240.731 205.85 240.392 206.345 240.231 206.908C240.16 207.149 240.125 207.4 240.126 207.651V211.871C241.174 210.879 242.199 209.864 243.203 208.825C244.433 207.563 245.63 206.272 246.795 204.952H242.821Z",fill:e.colorPrimary}),E.jsx("path",{d:"M252.364 226.878C247.838 226.878 242.879 226.707 237.484 226.365C209.582 224.593 173.44 218.433 135.717 209.019C97.9932 199.606 63.1945 188.064 37.7312 176.519C25.3272 170.895 15.8073 165.572 9.43609 160.696C2.69062 155.535 -0.259944 151.036 0.666015 147.325C2.47022 140.095 18.4456 138.513 31.5296 138.46L31.534 139.511C13.5662 139.585 2.96614 142.45 1.68629 147.58C0.055963 154.112 13.3522 164.311 38.1653 175.561C63.5727 187.081 98.3074 198.601 135.971 207.999C173.635 217.398 209.71 223.547 237.551 225.315C264.74 227.042 281.269 224.286 282.899 217.753C284.253 212.329 275.33 204.339 257.774 195.254L258.258 194.32C271.014 200.921 285.82 210.389 283.92 218.008C282.993 221.719 278.275 224.304 269.896 225.691C265.119 226.481 259.252 226.878 252.364 226.878Z",fill:e.colorPrimary}),E.jsx("path",{d:"M250.938 148.496C270.39 148.496 286.16 132.726 286.16 113.274C286.16 93.8212 270.39 78.0518 250.938 78.0518C231.485 78.0518 215.716 93.8212 215.716 113.274C215.716 132.726 231.485 148.496 250.938 148.496Z",fill:"white"}),E.jsx("path",{d:"M250.938 77.5259C243.867 77.5259 236.956 79.6224 231.077 83.5504C225.199 87.4784 220.617 93.0615 217.911 99.5935C215.205 106.126 214.498 113.313 215.877 120.248C217.256 127.182 220.661 133.552 225.66 138.551C230.66 143.55 237.029 146.955 243.964 148.334C250.898 149.714 258.086 149.006 264.618 146.3C271.15 143.594 276.733 139.013 280.661 133.134C284.589 127.255 286.685 120.344 286.685 113.274C286.702 108.574 285.789 103.918 283.999 99.5735C282.208 95.2288 279.576 91.2813 276.253 87.9584C272.93 84.6356 268.982 82.0031 264.638 80.2126C260.293 78.4221 255.637 77.509 250.938 77.5259ZM250.938 147.97C244.075 147.97 237.367 145.935 231.661 142.122C225.956 138.31 221.509 132.891 218.882 126.551C216.256 120.211 215.569 113.235 216.908 106.505C218.247 99.7742 221.551 93.5919 226.404 88.7396C231.256 83.8872 237.438 80.5827 244.169 79.2439C250.899 77.9052 257.875 78.5923 264.215 81.2184C270.555 83.8444 275.974 88.2915 279.787 93.9973C283.599 99.7031 285.634 106.411 285.634 113.274C285.652 117.835 284.766 122.355 283.029 126.572C281.292 130.79 278.736 134.622 275.511 137.847C272.286 141.072 268.454 143.627 264.236 145.365C260.019 147.102 255.499 147.988 250.938 147.97Z",fill:"#2F2E41"}),E.jsx("path",{d:"M220.028 121.71C219.867 121.709 219.711 121.654 219.586 121.552C219.461 121.45 219.375 121.308 219.342 121.15C218.335 116.018 218.517 110.723 219.874 105.672C221.231 100.622 223.728 95.9491 227.172 92.0134C227.296 91.8753 227.469 91.792 227.655 91.7816C227.84 91.7712 228.022 91.8347 228.16 91.9582C228.299 92.0816 228.382 92.2549 228.393 92.44C228.404 92.6252 228.342 92.8072 228.219 92.9461C224.918 96.7176 222.526 101.195 221.225 106.035C219.924 110.876 219.75 115.949 220.715 120.867C220.736 120.969 220.734 121.075 220.709 121.176C220.684 121.277 220.637 121.371 220.572 121.451C220.506 121.532 220.423 121.597 220.329 121.642C220.235 121.686 220.132 121.71 220.028 121.71H220.028Z",fill:"#2F2E41"}),E.jsx("path",{d:"M250.916 145.997C263.28 145.997 273.302 135.974 273.302 123.61C273.302 111.246 263.28 101.223 250.916 101.223C238.552 101.223 228.529 111.246 228.529 123.61C228.529 135.974 238.552 145.997 250.916 145.997Z",fill:e.colorPrimary}),E.jsx("path",{d:"M243.801 132.062C242.349 132.022 240.543 131.971 239.152 130.955C238.738 130.64 238.397 130.238 238.155 129.777C237.912 129.317 237.773 128.809 237.747 128.289C237.722 127.92 237.783 127.549 237.924 127.207C238.066 126.865 238.285 126.56 238.564 126.317C239.291 125.703 240.352 125.559 241.495 125.895L240.311 117.236L241.18 117.117L242.573 127.296L241.847 126.963C241.005 126.577 239.849 126.38 239.131 126.987C238.954 127.146 238.817 127.343 238.729 127.564C238.641 127.784 238.606 128.022 238.625 128.258C238.646 128.645 238.75 129.023 238.931 129.366C239.111 129.709 239.363 130.009 239.67 130.246C240.753 131.037 242.192 131.139 243.825 131.184L243.801 132.062Z",fill:"#2F2E41"}),E.jsx("path",{d:"M236.009 117.983H231.281V118.861H236.009V117.983Z",fill:"#2F2E41"}),E.jsx("path",{d:"M250.934 117.983H246.205V118.861H250.934V117.983Z",fill:"#2F2E41"}),E.jsx("path",{d:"M251.856 151.531H231.564C230.807 151.531 230.082 151.832 229.547 152.367C229.012 152.902 228.712 153.627 228.711 154.383V199.359C228.713 202.407 229.549 205.396 231.128 208.003C232.707 210.61 234.969 212.735 237.669 214.148C238.5 213.405 239.319 212.646 240.126 211.87C241.174 210.879 242.199 209.863 243.203 208.825C244.433 207.563 245.63 206.272 246.795 204.952C247.748 203.88 248.676 202.786 249.578 201.672C249.981 201.178 250.378 200.678 250.769 200.172C260.158 188.105 266.74 173.515 268.048 158.417C265.952 156.238 263.437 154.505 260.655 153.321C257.872 152.138 254.879 151.529 251.856 151.531Z",fill:"#2F2E41"}),E.jsx("path",{d:"M252.595 160.916C252.113 160.443 251.541 160.071 250.914 159.82C250.286 159.569 249.616 159.445 248.94 159.455C247.766 159.464 246.631 159.88 245.73 160.632C245.586 160.749 245.449 160.874 245.32 161.007L228.711 178.04L216.665 190.394C216.483 190.578 216.331 190.791 216.217 191.025C216.036 191.386 215.944 191.785 215.947 192.188C215.951 192.52 216.02 192.848 216.151 193.153C216.282 193.458 216.473 193.734 216.711 193.965L217.184 194.428L220.619 197.775L220.622 197.771C221.084 198.146 221.661 198.348 222.255 198.342C222.587 198.339 222.915 198.269 223.22 198.138C223.525 198.007 223.801 197.817 224.032 197.578L224.59 197.011L228.578 192.921L228.711 192.784L252.686 168.195C253.639 167.218 254.165 165.902 254.148 164.537C254.131 163.172 253.572 161.869 252.595 160.916L252.595 160.916Z",fill:e.colorPrimary}),E.jsx("path",{d:"M252.427 113.166C253.167 111.6 252.408 109.928 251.108 108.928C249.469 107.668 247.35 107.877 245.486 108.473C243.446 109.126 241.451 110.301 239.247 110.234C238.461 110.22 237.698 109.969 237.057 109.513C236.417 109.058 235.928 108.42 235.656 107.683C234.476 104.655 235.809 101.271 237.864 98.9751C239.024 97.6601 240.458 96.6152 242.066 95.9137C243.673 95.2122 245.414 94.8712 247.167 94.9146C249.168 95.0139 251.114 95.6067 252.83 96.6403C254.546 97.6739 255.98 99.1161 257.004 100.838C257.077 100.956 257.192 101.041 257.326 101.076C257.46 101.111 257.602 101.094 257.723 101.027C259.283 100.33 260.966 99.9484 262.674 99.9055C264.382 99.8625 266.081 100.159 267.674 100.777C270.064 101.751 272.101 103.429 273.514 105.588C274.928 107.747 275.651 110.285 275.588 112.865C275.57 113.542 276.622 113.541 276.639 112.865C276.705 109.258 275.374 105.766 272.925 103.118C271.681 101.797 270.185 100.739 268.526 100.007C266.866 99.2745 265.077 98.8821 263.263 98.8531C261.17 98.8086 259.094 99.2415 257.193 100.119L257.912 100.308C256.964 98.7125 255.691 97.3348 254.175 96.2643C252.66 95.1938 250.936 94.4545 249.115 94.0946C247.313 93.7583 245.459 93.8136 243.68 94.2567C241.901 94.6998 240.238 95.5204 238.803 96.6628C236.104 98.775 234.059 102.053 234.186 105.568C234.241 107.09 234.693 108.651 235.749 109.785C237.102 111.237 239.122 111.488 240.987 111.116C243.467 110.621 245.731 108.99 248.316 109.041C248.823 109.041 249.323 109.149 249.785 109.357C250.247 109.565 250.659 109.869 250.994 110.248C251.564 110.891 251.907 111.815 251.519 112.635C251.231 113.244 252.137 113.778 252.427 113.166L252.427 113.166Z",fill:"#2F2E41"}),E.jsx("path",{d:"M84.6346 239.643C72.1583 239.644 60.5595 239.216 50.1759 238.352C36.6035 237.222 25.8483 235.407 18.2096 232.956C10.122 230.361 5.83131 227.115 5.45671 223.308C4.72669 215.893 19.242 209.035 31.5474 204.589L31.9047 205.578C15.0063 211.684 5.98516 217.944 6.50298 223.205C7.1625 229.906 23.1124 235.045 50.263 237.304C78.0639 239.617 114.65 238.797 153.282 234.994C191.914 231.192 227.958 224.864 254.774 217.175C280.963 209.665 295.605 201.516 294.946 194.815C294.398 189.252 283.309 184.724 263.722 182.066L263.863 181.024C278.096 182.955 295.223 186.898 295.992 194.712C296.367 198.519 292.791 202.539 285.365 206.661C278.35 210.554 268.156 214.432 255.064 218.185C228.188 225.891 192.078 232.232 153.385 236.041C129.112 238.43 105.635 239.643 84.6346 239.643Z",fill:e.colorPrimary}),E.jsx("path",{d:"M294.352 198.502C297.736 198.502 300.479 195.759 300.479 192.375C300.479 188.991 297.736 186.248 294.352 186.248C290.968 186.248 288.224 188.991 288.224 192.375C288.224 195.759 290.968 198.502 294.352 198.502Z",fill:e.colorPrimary}),E.jsx("path",{d:"M116.665 52.3573C120.049 52.3573 122.792 49.614 122.792 46.23C122.792 42.846 120.049 40.1028 116.665 40.1028C113.281 40.1028 110.537 42.846 110.537 46.23C110.537 49.614 113.281 52.3573 116.665 52.3573Z",fill:"#E6E6E6"}),E.jsx("path",{d:"M7.31888 198.152C10.7029 198.152 13.4461 195.408 13.4461 192.024C13.4461 188.64 10.7029 185.897 7.31888 185.897C3.9349 185.897 1.19164 188.64 1.19164 192.024C1.19164 195.408 3.9349 198.152 7.31888 198.152Z",fill:"#E6E6E6"}),E.jsx("path",{d:"M45.1693 81.8735C47.2409 81.8735 48.9202 80.1942 48.9202 78.1226C48.9202 76.0511 47.2409 74.3718 45.1693 74.3718C43.0978 74.3718 41.4185 76.0511 41.4185 78.1226C41.4185 80.1942 43.0978 81.8735 45.1693 81.8735Z",fill:"#FF6584"}),E.jsx("path",{d:"M27.646 224.163C29.7175 224.163 31.3968 222.484 31.3968 220.412C31.3968 218.341 29.7175 216.661 27.646 216.661C25.5745 216.661 23.8952 218.341 23.8952 220.412C23.8952 222.484 25.5745 224.163 27.646 224.163Z",fill:"#FF6584"}),E.jsx("path",{d:"M283.487 162.831C285.559 162.831 287.238 161.152 287.238 159.08C287.238 157.009 285.559 155.33 283.487 155.33C281.416 155.33 279.736 157.009 279.736 159.08C279.736 161.152 281.416 162.831 283.487 162.831Z",fill:"#FF6584"}),E.jsx("path",{d:"M226.711 255.979C230.095 255.979 232.839 253.236 232.839 249.852C232.839 246.468 230.095 243.724 226.711 243.724C223.327 243.724 220.584 246.468 220.584 249.852C220.584 253.236 223.327 255.979 226.711 255.979Z",fill:"#E6E6E6"})]}),E.jsx("defs",{children:E.jsx("clipPath",{id:"clip0_395_17016",children:E.jsx("rect",{width:"300",height:"300",fill:"white",transform:"translate(0.5 0.5)"})})})]})},{useToken:gzn}=Fd,vzn=()=>{const{token:e}=gzn();return E.jsxs("svg",{width:"301",height:"301",viewBox:"0 0 301 301",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[E.jsxs("g",{clipPath:"url(#clip0_512_21831)",children:[E.jsx("path",{d:"M206.5 213.363H90.9805C81.2704 213.363 73.3708 205.464 73.3708 195.754V80.2344C73.3708 70.5243 81.2704 62.6248 90.9805 62.6248H206.5C216.21 62.6248 224.109 70.5243 224.109 80.2344V195.754C224.109 205.464 216.21 213.363 206.5 213.363V213.363ZM90.9805 65.4423C82.811 65.4423 76.1884 72.0649 76.1884 80.2344V195.754C76.1884 203.923 82.811 210.546 90.9805 210.546H171.899C199.178 210.546 221.292 188.432 221.292 161.153V80.2344C221.292 72.0649 214.669 65.4423 206.5 65.4423H90.9805V65.4423Z",fill:"#F0F2F5"}),E.jsx("path",{d:"M103.435 77.455C97.9672 77.455 93.5194 81.9027 93.5194 87.3702V102.89C93.5194 108.357 97.9672 112.805 103.435 112.805H118.954C124.422 112.805 128.869 108.357 128.869 102.89V87.3702C128.869 81.9027 124.422 77.455 118.954 77.455H103.435Z",fill:"#F0F2F5"}),E.jsx("path",{d:"M103.435 121.144C97.9672 121.144 93.5194 125.592 93.5194 131.06V146.579C93.5194 152.046 97.9672 156.494 103.435 156.494H118.954C124.422 156.494 128.869 152.046 128.869 146.579V131.06C128.869 125.592 124.422 121.144 118.954 121.144H103.435V121.144Z",fill:"#F0F2F5"}),E.jsx("path",{d:"M103.435 164.834C97.9672 164.834 93.5194 169.281 93.5194 174.749V190.268C93.5194 195.736 97.9672 200.184 103.435 200.184H118.954C124.422 200.184 128.869 195.736 128.869 190.268V174.749C128.869 169.281 124.422 164.834 118.954 164.834H103.435Z",fill:"#F0F2F5"}),E.jsx("path",{d:"M113.726 39.5909C106.837 39.5909 101.233 45.1953 101.233 52.0844V71.6394C101.233 78.5285 106.837 84.1329 113.726 84.1329H133.281C140.17 84.1329 145.775 78.5285 145.775 71.6394V52.0844C145.775 45.1953 140.17 39.5909 133.281 39.5909H113.726V39.5909Z",fill:e.colorPrimary}),E.jsx("path",{d:"M178.106 94.239C171.217 94.239 165.613 99.8434 165.613 106.732V126.287C165.613 133.177 171.217 138.781 178.106 138.781H197.661C204.55 138.781 210.155 133.177 210.155 126.287V106.732C210.155 99.8434 204.55 94.239 197.661 94.239H178.106Z",fill:e.colorPrimary}),E.jsx("path",{d:"M150.117 291.068L146.144 291.034L144.386 275.354L150.249 275.403L150.117 291.068Z",fill:"#A0616A"}),E.jsx("path",{d:"M137.392 297.385C137.384 298.363 138.172 299.168 139.153 299.177L147.052 299.243L148.434 296.44L148.942 299.257L151.922 299.284L151.17 289.236L150.133 289.167L145.904 288.876L144.539 288.784L144.515 291.627L138.17 295.931C137.688 296.259 137.397 296.802 137.392 297.385H137.392Z",fill:"#2F2E41"}),E.jsx("path",{d:"M170.329 291.068L166.357 291.034L164.598 275.354L170.461 275.403L170.329 291.068Z",fill:"#A0616A"}),E.jsx("path",{d:"M157.604 297.385C157.596 298.363 158.384 299.168 159.365 299.177L167.264 299.243L168.647 296.44L169.154 299.257L172.135 299.284L171.382 289.236L170.345 289.167L166.116 288.876L164.752 288.784L164.728 291.627L158.383 295.931C157.9 296.259 157.609 296.802 157.604 297.385V297.385Z",fill:"#2F2E41"}),E.jsx("path",{d:"M134.528 164.293L150.631 164.802L165.886 168.192C165.886 168.192 164.361 170.056 169.446 175.142C169.446 175.142 176.226 187.007 171.48 198.533L169.446 244.639C169.446 244.639 175.377 277.14 170.845 287.484L164.856 287.858L154.723 245.014L149.783 198.872L147.41 244.3C147.41 244.3 156.489 275.48 150.756 287.858L144.27 287.484L133.172 244.3C133.172 244.3 128.426 194.465 129.104 184.973C129.782 175.481 134.528 164.293 134.528 164.293H134.528Z",fill:"#2F2E41"}),E.jsx("path",{d:"M188.605 91.4395C186.404 92.0094 185.082 94.2561 185.652 96.4574C185.913 97.4661 186.528 98.2867 187.328 98.8288L187.328 98.8344L187.015 106.398L192.804 109.077L193.266 97.4374L193.225 97.4386C193.727 96.5445 193.901 95.4642 193.623 94.3932C193.053 92.1919 190.807 90.8695 188.605 91.4395V91.4395Z",fill:"#A0616A"}),E.jsx("path",{d:"M156.254 118.435C155.038 117.23 154.333 115.595 154.306 113.818C154.271 111.435 155.466 109.271 157.502 108.031C159.847 106.603 162.779 106.747 164.973 108.399L183.149 122.084L186.388 102.369L193.341 104.607L191.682 130.279C191.566 132.075 190.551 133.657 188.967 134.511C187.383 135.365 185.504 135.343 183.94 134.454L157.672 119.509C157.145 119.209 156.67 118.847 156.254 118.435V118.435Z",fill:"#3F3D56"}),E.jsx("path",{d:"M128.538 80.4118C129.7 82.3664 129.058 84.8929 127.103 86.0549C126.208 86.5873 125.193 86.7367 124.243 86.5588L124.239 86.5629L119.136 92.1543L113.139 89.9813L121.006 81.3901L121.034 81.4193C121.307 80.431 121.944 79.5418 122.895 78.9765C124.85 77.8145 127.376 78.4571 128.538 80.4118V80.4118Z",fill:"#A0616A"}),E.jsx("path",{d:"M130.743 122.124L101.567 114.243C99.8299 113.773 98.4804 112.465 97.9568 110.744C97.4331 109.022 97.8263 107.184 99.008 105.827L115.904 86.4285L122.418 89.7345L110.838 106.015L133.381 109.094C136.101 109.465 138.285 111.427 138.945 114.093C139.518 116.407 138.843 118.785 137.14 120.452C135.87 121.696 134.218 122.36 132.506 122.359C131.921 122.359 131.329 122.282 130.743 122.124H130.743Z",fill:"#3F3D56"}),E.jsx("path",{d:"M172.338 171.076L131.539 172.948C130.419 171.246 130.722 168.687 132.291 165.483C138.216 153.386 133.717 130.5 130.69 118.583C129.84 115.24 132.12 111.916 135.553 111.572L139.4 111.188L142.956 100.333H155.409L160.576 106.236L169.344 111.562C167.748 128.001 160.948 151.215 170.635 162.856C172.754 165.402 173.355 168.156 172.338 171.076V171.076Z",fill:"#3F3D56"}),E.jsx("path",{d:"M147.598 100.584C154.298 100.584 159.729 95.1528 159.729 88.4535C159.729 81.7541 154.298 76.3232 147.598 76.3232C140.899 76.3232 135.468 81.7541 135.468 88.4535C135.468 95.1528 140.899 100.584 147.598 100.584Z",fill:"#A0616A"}),E.jsx("path",{d:"M161.325 80.689C163.012 74.5358 144.618 69.2594 141.044 74.2145C140.547 73.5101 138.71 73.0822 137.867 73.2983C137.024 73.5144 136.315 74.0546 135.624 74.5776C134.673 75.308 133.688 76.0644 133.104 77.1146C132.516 78.1606 132.426 79.5869 133.217 80.4945C133.843 81.2162 134.944 85.0517 135.887 85.2419C136.544 85.3759 137.097 85.484 137.572 85.5617C137.996 84.9437 139.076 84.1673 138.998 83.4196C139.638 83.8432 139.404 84.5884 139.275 85.35C138.846 87.8861 129.171 107.518 134.712 101.733C135.261 102.057 135.939 102.36 136.722 102.636C138.049 100.635 139.138 98.2753 139.855 95.8074L139.86 95.853C140.107 97.9977 141.675 99.7575 143.748 100.358C152.066 102.768 158.795 99.232 161.109 92.8553C160.262 91.1351 159.893 91.322 159.969 91.2708C161.026 90.5579 162.48 91.0242 162.935 92.2159C163.069 92.5673 163.191 92.8673 163.296 93.093C164.502 88.7796 165.936 89.4022 161.325 80.689H161.325Z",fill:"#2F2E41"}),E.jsx("path",{d:"M155.586 76.2247L154.737 71.8808C154.665 71.5156 154.597 71.1195 154.762 70.7858C154.974 70.3571 155.517 70.1794 155.991 70.2477C156.464 70.3161 156.818 70.7483 157.288 70.8315C158.925 71.1208 161.089 69.5042 161.675 73.5941C161.92 75.2993 164.641 75.4794 165.549 76.9429C166.458 78.4064 166.57 80.5188 165.329 81.7144C164.339 82.6693 162.748 82.7795 161.462 82.2917C160.175 81.8039 159.143 80.8187 158.241 79.7797C157.339 78.7407 156.523 77.6163 155.482 76.7159",fill:"#2F2E41"}),E.jsx("path",{d:"M161.973 82.8316C158.653 82.3679 156.391 81.1608 155.248 79.2439C153.752 76.7347 154.754 73.9719 154.798 73.8555L155.499 74.1163C155.49 74.1417 154.581 76.6708 155.895 78.8671C156.917 80.5755 158.997 81.6601 162.076 82.0903L161.973 82.8316V82.8316Z",fill:e.colorPrimary}),E.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M159.851 18.1978C159.851 27.9557 167.791 35.8955 177.549 35.8955C181.178 35.8955 184.556 34.7973 187.367 32.9157L202.359 46.9653C203.041 47.6065 203.911 47.9228 204.778 47.9228C205.722 47.9228 206.664 47.5477 207.36 46.8028C208.698 45.377 208.625 43.1371 207.198 41.8011L192.352 27.8879C194.181 25.1024 195.247 21.7721 195.247 18.1978C195.247 8.43979 187.307 0.5 177.549 0.5C167.791 0.5 159.851 8.43979 159.851 18.1978ZM166.93 18.1978C166.93 12.3423 171.693 7.57911 177.549 7.57911C183.404 7.57911 188.167 12.3423 188.167 18.1978C188.167 24.0532 183.404 28.8164 177.549 28.8164C171.693 28.8164 166.93 24.0532 166.93 18.1978Z",fill:e.colorPrimary})]}),E.jsx("defs",{children:E.jsx("clipPath",{id:"clip0_512_21831",children:E.jsx("rect",{width:"300",height:"300",fill:"white",transform:"translate(0.5 0.5)"})})})]})},tnt=e=>b.createElement("svg",{width:301,height:301,viewBox:"0 0 301 301",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("g",{clipPath:"url(#clip0_706_34927)"},b.createElement("path",{d:"M253.33 259.488C254.511 259.562 255.163 258.094 254.269 257.239L254.18 256.885C254.192 256.857 254.204 256.829 254.216 256.801C254.92 255.12 256.86 254.324 258.545 255.02C263.871 257.222 258.248 262.282 258.67 265.706C258.819 266.887 263.448 266.952 263.186 268.112C265.647 262.73 266.941 256.854 266.939 250.945C266.939 249.461 266.857 247.976 266.69 246.495C266.553 245.284 266.365 244.08 266.12 242.887C264.8 236.439 261.943 230.299 257.823 225.17C255.843 224.089 257.051 222.397 256.053 220.37C255.695 219.639 252.498 219.622 252.365 218.821C252.508 218.84 254.574 216.694 253.891 215.632C253.442 214.934 253.582 214.045 254.159 213.448C254.216 213.39 254.269 213.328 254.318 213.261C256.023 210.949 258.372 211.352 259.6 214.493C262.22 215.815 262.246 218.008 260.639 220.117C259.617 221.46 259.477 223.275 258.58 224.712C258.673 224.83 258.769 224.945 258.861 225.063C260.555 227.234 262.02 229.568 263.255 232.019C262.905 229.294 263.419 226.011 264.297 223.894C265.303 221.465 267.196 219.422 268.853 217.32C270.833 214.811 274.863 215.95 275.213 219.127C275.217 219.158 275.22 219.188 275.223 219.219C274.978 219.357 274.738 219.504 274.503 219.659C273.166 220.545 273.629 222.618 275.214 222.862L275.25 222.867C275.162 223.75 272.03 226.531 271.808 227.391C273.927 235.573 272.342 236.653 265.824 236.79L265.482 237.277C266.099 239.053 266.596 240.871 266.97 242.713C267.321 244.423 267.566 246.151 267.703 247.887C267.873 250.077 267.859 252.278 267.675 254.464L267.687 254.387C268.155 251.979 269.461 249.729 271.359 248.17C274.186 245.846 278.181 244.989 281.231 243.121C282.699 242.222 284.582 243.383 284.326 245.085L284.313 245.167C283.859 245.352 283.416 245.566 282.988 245.806C282.742 245.945 282.502 246.092 282.267 246.247C280.93 247.133 281.393 249.207 282.979 249.449L283.015 249.455C283.041 249.459 283.063 249.462 283.089 249.466C282.31 251.317 274.892 253.927 273.533 255.408C272.212 262.554 272.861 262.342 266.78 260.263H266.776C266.113 263.159 265.142 265.988 263.895 268.684L253.591 268.688C253.554 268.573 253.521 268.455 253.488 268.341C254.441 268.399 255.401 268.344 256.339 268.17C255.574 267.232 254.809 266.287 254.044 265.349C254.026 265.331 254.011 265.312 253.996 265.294L253.985 265.279L252.924 261.787C253.008 261.013 253.144 260.244 253.33 259.488L253.33 259.488V259.488V259.488Z",fill:"#F2F2F2"}),b.createElement("path",{d:"M144.444 268.604L53.2688 268.635C48.6884 268.637 44.5854 266.27 42.2938 262.304C41.1479 260.321 40.5748 258.145 40.574 255.969C40.5733 253.793 41.1451 251.617 42.2894 249.633L87.8483 166.696C90.1374 162.728 94.2388 160.359 98.8192 160.357C103.4 160.356 107.503 162.722 109.795 166.689L155.417 249.605C156.559 251.583 157.131 253.756 157.131 255.93C157.131 258.105 156.56 260.281 155.415 262.265C153.126 266.233 149.025 268.602 144.444 268.604H144.444H144.444ZM41.7201 255.968C41.7199 257.948 51.7809 253.68 52.8232 255.484C54.908 259.093 49.1012 267.493 53.2684 267.492C53.2684 267.492 152.342 265.303 154.425 261.694C155.466 259.889 155.986 257.909 155.985 255.929C155.985 253.95 155.463 251.971 154.42 250.166L108.798 167.25C106.719 163.653 102.987 161.499 98.8196 161.501C94.6543 161.502 41.7202 253.987 41.7201 255.968H41.7201V255.968Z",fill:"#3F3D56"}),b.createElement("path",{d:"M145.457 267.46C144.314 269.747 197.841 269.044 198.473 269.044C198.473 269.044 213.518 268.712 213.834 268.164C213.993 267.89 214.072 267.589 214.071 267.288C214.071 266.988 213.992 266.687 213.834 266.413L206.906 253.822C206.59 253.276 206.023 252.949 205.391 252.949C205.364 252.949 205.325 252.972 205.275 253.017C196.033 261.276 184.644 266.736 172.25 266.92C159.072 267.116 145.53 267.315 145.457 267.46H145.457V267.46Z",fill:"#3F3D56"}),b.createElement("path",{d:"M0.5 268.982C0.500132 269.36 0.803299 269.663 1.1807 269.662L299.82 269.559C300.197 269.559 300.5 269.256 300.5 268.878C300.5 268.501 300.197 268.198 299.819 268.198L1.18023 268.302C0.80283 268.302 0.499869 268.605 0.5 268.982H0.5Z",fill:"#CCCCCC"}),b.createElement("path",{d:"M231.432 265.68L226.261 265.681L223.794 245.734L231.427 245.731L231.432 265.68Z",fill:"#A0616A"}),b.createElement("path",{d:"M213.714 265.568C213.553 265.84 213.468 266.715 213.468 267.03C213.468 268 214.255 268.785 215.224 268.785L231.24 268.779C231.901 268.779 232.437 268.243 232.437 267.582L232.437 266.915C232.437 266.915 233.229 264.91 231.596 262.441C231.596 262.441 229.57 264.376 226.539 261.347L225.645 259.729L219.18 264.461L215.596 264.903C214.812 265 214.117 264.889 213.714 265.568H213.714V265.568Z",fill:"#2F2E41"}),b.createElement("path",{d:"M211.602 248.619L206.704 250.276L197.978 232.17L205.208 229.723L211.602 248.619Z",fill:"#A0616A"}),b.createElement("path",{d:"M194.781 254.188C194.716 254.497 194.916 255.353 195.017 255.652C195.328 256.57 196.324 257.062 197.242 256.752L212.413 251.617C213.039 251.405 213.375 250.725 213.163 250.099L212.95 249.467C212.95 249.467 213.058 247.315 210.721 245.498C210.721 245.498 209.42 247.98 205.58 246.082L204.215 244.835L199.606 251.388L196.352 252.955C195.64 253.298 194.946 253.415 194.781 254.188L194.781 254.188V254.188Z",fill:"#2F2E41"}),b.createElement("path",{d:"M203.614 132.902L193.583 166.123L181.741 196.005L200.489 238.68L207.44 235.587L199.122 196.385L216.566 169.784L224.706 252.826L231.659 252.438L241.087 152.201L242.432 130.377L203.614 132.902Z",fill:"#2F2E41"}),b.createElement("path",{d:"M233.909 59.3096L219.233 62.0184L218.076 68.5852L209.194 72.837L204.576 121.12C204.576 121.12 196.854 131.166 203.035 134.254L242.432 130.377C242.432 130.377 244.36 123.236 242.429 122.558C240.497 121.88 240.492 104.821 240.492 104.821L249.363 69.7331L236.229 65.1026L233.909 59.3096Z",fill:"#E6E6E6"}),b.createElement("path",{d:"M225.253 59.1828C231.798 59.1828 237.104 53.8766 237.104 47.331C237.104 40.7855 231.798 35.4792 225.253 35.4792C218.707 35.4792 213.401 40.7855 213.401 47.331C213.401 53.8766 218.707 59.1828 225.253 59.1828Z",fill:"#A0616A"}),b.createElement("path",{d:"M233.101 49.0901C232.155 49.6079 233.053 52.0798 232.462 52.2935C231.778 52.5406 229.287 49.705 229.256 46.5289C229.247 45.5676 229.468 45.1061 229.255 43.9664C228.977 42.4755 228.123 40.7172 227.332 40.7638C226.864 40.7915 226.406 41.4541 226.372 42.0454C226.324 42.8742 227.129 43.2004 227.013 43.6468C226.792 44.4971 223.412 45.0842 222.208 43.6485C221.265 42.5229 221.988 40.5467 221.567 40.4455C221.256 40.3709 220.922 41.459 219.645 42.6884C219.165 43.1516 218.449 43.8405 218.044 43.6499C217.459 43.3745 217.884 41.4335 217.723 41.4078C217.59 41.3865 217.506 42.7508 216.763 43.9707C215.808 45.538 213.839 46.746 212.92 46.2142C212.357 45.8885 212.312 44.9814 212.279 44.2926C212.207 42.8413 210.098 39.503 210.644 37.9505C211.755 34.7906 213.657 37.018 214.518 35.9635C215.683 34.5359 216.728 35.3035 218.681 33.7198C220.589 32.1728 220.606 30.6178 221.883 30.5155C223.034 30.4234 223.443 31.6507 224.767 31.4755C225.888 31.3271 226.132 30.3752 227.009 30.5137C227.811 30.6406 227.864 31.4792 228.931 31.7944C229.612 31.9956 229.762 31.7043 230.533 31.7938C232.137 31.9799 233.214 33.441 233.416 33.7147C234.194 34.7698 233.892 35.2147 234.698 36.2768C235.393 37.1927 236.933 36.8038 237.512 37.2612C239.405 38.7559 240.218 41.5124 240.234 44.6542C240.246 46.8517 239.959 47.9619 239.32 50.7356C238.834 52.8417 236.586 55.5634 235.346 56.777C235.013 57.1028 234.08 58.0161 233.424 57.7386C232.803 57.4757 232.784 56.2934 232.783 56.1373C232.78 55.6003 232.923 54.936 234.063 53.2539C235.261 51.4871 235.737 51.2854 235.664 50.6908C235.536 49.6398 233.855 48.6774 233.101 49.0901H233.101V49.0901Z",fill:"#2F2E41"}),b.createElement("path",{d:"M191.76 159.587C191.391 162.676 192.686 165.37 194.652 165.605C196.617 165.84 198.51 163.526 198.879 160.437C199.04 159.085 198.883 157.808 198.49 156.78L199.889 143.671L193.723 143.146L192.999 156.124C192.375 157.031 191.921 158.235 191.76 159.587H191.76H191.76Z",fill:"#A0616A"}),b.createElement("path",{d:"M209.483 72.5252C209.483 72.5252 206.289 72.5706 204.174 76.7014C203.05 78.8965 197.037 119.944 197.037 119.944L191.498 153.57L200.933 153.618L208.286 121.773L214.471 103.304L209.483 72.5251L209.483 72.5252Z",fill:"#E6E6E6"}),b.createElement("path",{d:"M236.036 154.652C235.133 157.629 235.936 160.509 237.831 161.084C239.725 161.659 241.993 159.712 242.897 156.735C243.292 155.432 243.361 154.147 243.154 153.066L246.824 140.404L240.845 138.808L237.862 151.46C237.089 152.244 236.432 153.349 236.036 154.652V154.652V154.652Z",fill:"#A0616A"}),b.createElement("path",{d:"M242.604 70.315C242.604 70.315 247.238 66.8371 251.102 72.2433C254.967 77.6495 256.527 122.068 256.527 122.068L245.721 149.496L237.609 146.795L245.323 113.188L231.795 87.7002L242.604 70.315H242.604V70.315Z",fill:"#E6E6E6"}),b.createElement("path",{d:"M125.5 250.5C148.696 250.5 167.5 231.696 167.5 208.5C167.5 185.304 148.696 166.5 125.5 166.5C102.304 166.5 83.5 185.304 83.5 208.5C83.5 231.696 102.304 250.5 125.5 250.5Z",fill:"#F5222D"}),b.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M136.064 196.945L136.793 198.812C136.939 199.185 136.847 199.609 136.561 199.89L127.643 208.622L136.292 216.866C136.698 217.254 136.706 217.9 136.309 218.297L135.987 218.619C135.206 219.4 133.94 219.4 133.158 218.619L125.378 210.839L116.18 219.844C115.643 220.37 114.74 220.138 114.523 219.418L114.137 218.137C114.032 217.789 114.125 217.411 114.379 217.151L122.927 208.388L115.572 201.032C114.766 200.226 114.951 198.873 115.944 198.313C116.274 198.127 116.687 198.179 116.962 198.44L125.081 206.18L134.417 196.61C134.924 196.09 135.8 196.268 136.064 196.945Z",fill:"white"}),b.createElement("path",{d:"M69.4022 229.884L65.6311 237.852C70.1901 234.583 77.3111 231.764 82.9778 230.255C77.6979 227.705 71.2372 223.593 67.3774 219.522L69.5464 227.941C44.1168 222.761 25.8553 203.253 25.8476 180.906L24.929 180.59C24.9371 203.932 42.9459 224.595 69.4022 229.884V229.884Z",fill:"#3F3D56"})),b.createElement("defs",null,b.createElement("clipPath",{id:"clip0_706_34927"},b.createElement("rect",{width:300,height:300,fill:"white",transform:"translate(0.5 0.5)"})))),{useToken:yzn}=Fd,bzn=()=>{const{token:e}=yzn();return E.jsxs("svg",{id:"eXH8VvtSnlq1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 300 300",shapeRendering:"geometricPrecision",textRendering:"geometricPrecision",children:[E.jsx("path",{id:"eXH8VvtSnlq2",d:"M45.7638,208.914c-6.6618,4.966-8.5498,13.703-8.5498,13.703s8.9128.686,15.5746-4.28s8.5499-13.703,8.5499-13.703-8.9129-.686-15.5747,4.28Z",transform:"translate(5 0)",fill:"#f1f1f1"}),E.jsx("path",{id:"eXH8VvtSnlq3",d:"M48.5388,211.245c-3.2017,7.668-11.2204,11.619-11.2204,11.619s-2.8276-8.48.3742-16.148c3.2017-7.667,11.2203-11.618,11.2203-11.618s2.8276,8.48-.3741,16.147Z",transform:"matrix(.866025-.5 0.5 0.866025-98.714098 49.555976)",fill:"#f1f1f1"}),E.jsx("path",{id:"eXH8VvtSnlq4",d:"M240.204,189.08c-.708-4.768-.895-9.599-.558-14.408l.558-7.958c-3.073,6.115-2.378,14.163,0,22.366v0Z",transform:"translate(0 22)",fill:"#cacaca"}),E.jsx("path",{id:"eXH8VvtSnlq5",d:"M242.6,190.411c-.34-2.845-.43-5.715-.268-8.576l.268-4.737c-1.478,3.64-1.144,8.43,0,13.313Z",transform:"translate(0 20)",fill:"#cacaca",fillOpacity:"0.7"}),E.jsx("path",{d:"M253.252,196.269v2.663c-.001.211-.086.414-.235.563-.15.15-.352.234-.564.235h-1.331c-.035,0-.07.007-.102.02-.033.014-.062.033-.087.058s-.044.054-.057.087c-.014.032-.021.067-.02.102v21.832c-.002.212-.086.414-.236.564-.149.149-.352.234-.563.235h-16.242c-.211,0-.414-.084-.564-.234s-.234-.353-.234-.565v-21.832c-.001-.071-.029-.139-.079-.188-.049-.05-.117-.078-.188-.079h-1.597c-.212,0-.415-.084-.565-.234-.149-.15-.234-.353-.234-.564v-2.663c0-.105.021-.209.061-.306s.099-.185.173-.259.162-.133.259-.173.201-.061.306-.061h21.3c.212.001.415.085.564.235.15.15.234.352.235.564Z",fill:"#f2f2f2"}),E.jsx("path",{d:"M250.879,200.289h-17.838v.799h17.838v-.799Z",fill:"#e6e6e6"}),E.jsx("path",{d:"M250.856,212.043c-5.97,2.47-12.004,2.498-18.106,0v-5.627c5.874-1.973,12.232-1.973,18.106,0v5.627Z",fill:"#e6e6e6"}),E.jsxs("g",{id:"eXH8VvtSnlq9",transform:"translate(.000001 0)",children:[E.jsx("path",{d:"M94.1097,185.252c-.1738,1.257-.1913,2.531-.0521,3.793l1.2485,17.93c.1172,1.69.2326,3.375.3912,5.061.2996,3.271.7471,6.517,1.3025,9.758.0125.46.2071.896.541,1.213s.7799.488,1.24.477c5.4962,1.162,11.1742,1.116,16.7832.799c8.559-.478,30.455-1.381,31.793-3.119s.558-4.549-1.186-5.954-30.64-4.831-30.64-4.831c.282-2.238,1.134-4.345,1.942-6.469c1.451-3.768,2.807-7.66,2.833-11.696s-1.495-8.28-4.801-10.592c-2.72-1.898-6.222-2.25-9.536-2.172-2.411.069-6.5779-.509-8.7804.434-1.7429.768-2.7533,3.661-3.0789,5.368Z",transform:"translate(0-.315369)",fill:"#fbbebe"}),E.jsx("path",{d:"M101.388,153.368c-.423.443-.751.968-.964,1.542-3.512,7.915-5.5862,16.392-6.1259,25.033.0095.422-.0876.839-.2823,1.213-.192.248-.4057.479-.6387.69-.203.241-.3567.519-.4522.82-.0955.3-.1309.616-.1043.93.0266.313.1148.619.2595.899.1447.279.3431.528.5839.731.0394.033.08.065.1215.096.7168-1.349,2.4328-1.79,3.9581-1.907c7.3034-.578,14.4364,2.82,21.7614,2.563-.517-1.785-1.26-3.501-1.682-5.309-1.863-8.024,2.785-16.761-.065-24.49-.569-1.546-1.52-3.067-3.019-3.745-.621-.25-1.27-.422-1.933-.511-1.851-.335-5.536-1.764-7.325-1.191-.661.213-.921.834-1.468,1.21-.832.531-1.936.726-2.625,1.426Z",fill:e.colorPrimary})]}),E.jsxs("g",{id:"eXH8VvtSnlq12",transform:"translate(0 0.000001)",children:[E.jsx("path",{d:"M202.811,179.884c-2.202-.943-6.368-.365-8.78-.434-3.314-.078-6.816.274-9.536,2.172-3.306,2.312-4.827,6.556-4.801,10.592.027,4.036,1.382,7.928,2.833,11.696.808,2.124,1.66,4.231,1.942,6.469c0,0-28.896,3.426-30.64,4.831s-2.524,4.216-1.186,5.954s43.08,3.482,48.576,2.32c.46.011.906-.16,1.24-.477s.529-.753.541-1.213c.556-3.241,1.003-6.487,1.303-9.758.158-1.686.274-3.371.391-5.061l1.248-17.93c.14-1.262.122-2.536-.052-3.793-.325-1.707-1.336-4.6-3.079-5.368Z",fill:"#fbbebe"}),E.jsx("path",{d:"M195.988,151.942c-.548-.376-.808-.997-1.469-1.21-1.789-.573-5.474.856-7.325,1.191-.663.089-1.312.261-1.933.511-1.499.678-2.45,2.199-3.019,3.745-2.85,7.729,1.798,16.466-.065,24.49-.422,1.808-1.165,3.524-1.682,5.309c7.325.257,14.458-3.141,21.761-2.563c1.526.117,3.242.558,3.958,1.907.042-.031.083-.063.122-.096.241-.203.439-.452.584-.731.145-.28.233-.586.259-.899.027-.314-.008-.63-.104-.93-.095-.301-.249-.579-.452-.82-.233-.211-.447-.442-.639-.69-.194-.374-.292-.791-.282-1.213-.54-8.641-2.614-17.118-6.126-25.033-.213-.574-.541-1.099-.964-1.542-.689-.7-1.793-.895-2.624-1.426Z",fill:e.colorPrimary})]}),E.jsx("path",{d:"M202.759,163.921c-.829-4.992-1.685-10.079-4.005-14.576-1.525-2.945-3.945-5.752-7.208-6.334-.642-.057-1.274-.204-1.877-.435-.956-.46-13.802-7.794-15.844-9.071-1.753-1.097-4.521-3.127-5.916-3.127-1.404-.031-6.787,1.222-27.798-.42c0,0-5.772,2.275-10.239,5.033-.067-.044-21.807,11.63-22.624,11.599-1.547-.065-2.984.925-3.871,2.172-.886,1.248-1.302,2.791-1.738,4.284c4.749,10.575,9.093,21.162,13.842,31.737.222.398.34.846.343,1.302-.095.474-.297.919-.59,1.303-2.329,3.741-2.255,8.446-2.001,12.842.255,4.397.57,9.041-1.395,12.982-.535,1.082-1.23,2.072-1.738,3.154-1.19,2.451-1.621,10.288-.925,12.921l87.108,2.495c-1.873-5.148,6.476-67.861,6.476-67.861Z",transform:"translate(0-1.532704)",fill:e.colorPrimary}),E.jsx("path",{d:"M143.72,224.34c3.597,0,6.513-2.916,6.513-6.512c0-3.597-2.916-6.513-6.513-6.513-3.596,0-6.512,2.916-6.512,6.513c0,3.596,2.916,6.512,6.512,6.512Z",fill:"#fbbebe"}),E.jsx("path",{d:"M158.14,224.34c3.597,0,6.512-2.916,6.512-6.512c0-3.597-2.915-6.513-6.512-6.513-3.596,0-6.512,2.916-6.512,6.513c0,3.596,2.916,6.512,6.512,6.512Z",fill:"#fbbebe"}),E.jsx("path",{d:"M198.339,222.502h-89.468c-1.045-.001-2.046-.417-2.785-1.155-.739-.739-1.154-1.74-1.155-2.785v-54.277c.001-1.045.416-2.046,1.155-2.785s1.74-1.154,2.785-1.155h89.468c1.044.001,2.046.416,2.784,1.155.739.739,1.154,1.74,1.156,2.785v54.277c-.002,1.045-.417,2.046-1.156,2.785-.738.738-1.74,1.154-2.784,1.155Z",fill:"#3f3d56"}),E.jsx("path",{d:"M153.388,204.03c1.439,0,2.606-1.167,2.606-2.607c0-1.439-1.167-2.606-2.606-2.606-1.44,0-2.607,1.167-2.607,2.606c0,1.44,1.167,2.607,2.607,2.607Z",fill:"#fff"}),E.jsx("path",{d:"M300,221.554h-300v9.219h17.7447v2.143h264.5173v-2.143h17.738v-9.219Z",fill:"#f1f1f1"}),E.jsxs("g",{id:"eXH8VvtSnlq21",transform:"translate(.000001 0)",children:[E.jsx("path",{d:"M150.866,126.003c13.326,0,24.129-10.803,24.129-24.128c0-13.3261-10.803-24.1287-24.129-24.1287-13.325,0-24.128,10.8026-24.128,24.1287c0,13.325,10.803,24.128,24.128,24.128Z",fill:"#feb8b8"}),E.jsx("path",{d:"M173.402,81.0587c-3.607-5.8578-9.254-10.1742-15.853-12.1183l-2.962,2.1616v-2.8067c-1.585-.2426-3.189-.336-4.791-.2791l-2.556,2.3123v-2.1202c-3.783.4702-7.429,1.7192-10.706,3.6684s-6.114,4.5563-8.333,7.6568c-5.55,8.0007-6.487,19.1314-1.028,27.1965c1.498-4.605,3.317-8.9261,4.815-13.5307c1.178.1606,2.372.1664,3.551.0173l1.823-4.2539.509,4.0738c5.651-.4921,14.032-1.5731,19.389-2.5634l-.521-3.1254l3.117,2.597c1.641-.3778,2.615-.7206,2.535-.9825c3.984,6.423,8.86,10.5252,12.843,16.9478c1.513-9.0564,3.255-16.5868-1.832-24.8513Z",fill:"#2f2e41"}),E.jsx("path",{d:"M128.679,110.868c-3.877,0-7.02-3.399-7.02-7.59v-3.7955c0-4.1919,3.143-7.59,7.02-7.59v18.9755v0Z",fill:e.colorPrimary}),E.jsx("path",{d:"M173.484,91.8925c3.877,0,7.02,3.3982,7.02,7.59v3.7955c0,4.191-3.143,7.59-7.02,7.59v-18.9755Z",fill:e.colorPrimary}),E.jsx("path",{d:"M177.162,100.079h-1.113c0-15.2727-11.492-27.698-25.617-27.698s-25.617,12.4253-25.617,27.698h-1.114c0-15.9368,11.991-28.9022,26.731-28.9022c14.739,0,26.73,12.9654,26.73,28.9022Z",fill:e.colorPrimary})]})]})},xRe=()=>(b.useEffect(()=>{(function(e,t){typeof exports=="object"&&typeof module<"u"?module.exports=t():typeof define=="function"&&define.amd?define(t):((e=typeof globalThis<"u"?globalThis:e||self).__SVGATOR_PLAYER__=e.__SVGATOR_PLAYER__||{},e.__SVGATOR_PLAYER__["5c7f360c"]=t())})(void 0,function(){function e(Q,Y){var ee=Object.keys(Q);if(Object.getOwnPropertySymbols){var le=Object.getOwnPropertySymbols(Q);Y&&(le=le.filter(function(Se){return Object.getOwnPropertyDescriptor(Q,Se).enumerable})),ee.push.apply(ee,le)}return ee}function t(Q){for(var Y=1;Y<arguments.length;Y++){var ee=arguments[Y]!=null?arguments[Y]:{};Y%2?e(Object(ee),!0).forEach(function(le){o(Q,le,ee[le])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Q,Object.getOwnPropertyDescriptors(ee)):e(Object(ee)).forEach(function(le){Object.defineProperty(Q,le,Object.getOwnPropertyDescriptor(ee,le))})}return Q}function n(Q){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Y){return typeof Y}:function(Y){return Y&&typeof Symbol=="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y})(Q)}function r(Q,Y){if(!(Q instanceof Y))throw new TypeError("Cannot call a class as a function")}function i(Q,Y){for(var ee=0;ee<Y.length;ee++){var le=Y[ee];le.enumerable=le.enumerable||!1,le.configurable=!0,"value"in le&&(le.writable=!0),Object.defineProperty(Q,le.key,le)}}function a(Q,Y,ee){return Y&&i(Q.prototype,Y),ee&&i(Q,ee),Q}function o(Q,Y,ee){return Y in Q?Object.defineProperty(Q,Y,{value:ee,enumerable:!0,configurable:!0,writable:!0}):Q[Y]=ee,Q}function s(Q){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(Y){return Y.__proto__||Object.getPrototypeOf(Y)})(Q)}function l(Q,Y){return(l=Object.setPrototypeOf||function(ee,le){return ee.__proto__=le,ee})(Q,Y)}function c(){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 u(Q,Y,ee){return(u=c()?Reflect.construct:function(le,Se,Ae){var He=[null];He.push.apply(He,Se);var at=new(Function.bind.apply(le,He));return Ae&&l(at,Ae.prototype),at}).apply(null,arguments)}function d(Q,Y){if(Y&&(typeof Y=="object"||typeof Y=="function"))return Y;if(Y!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(ee){if(ee===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ee}(Q)}function f(Q,Y,ee){return(f=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(le,Se,Ae){var He=function(wt,ft){for(;!Object.prototype.hasOwnProperty.call(wt,ft)&&(wt=s(wt))!==null;);return wt}(le,Se);if(He){var at=Object.getOwnPropertyDescriptor(He,Se);return at.get?at.get.call(Ae):at.value}})(Q,Y,ee||Q)}function p(Q){return function(Y){if(Array.isArray(Y))return h(Y)}(Q)||function(Y){if(typeof Symbol<"u"&&Y[Symbol.iterator]!=null||Y["@@iterator"]!=null)return Array.from(Y)}(Q)||function(Y,ee){if(Y){if(typeof Y=="string")return h(Y,ee);var le=Object.prototype.toString.call(Y).slice(8,-1);if(le==="Object"&&Y.constructor&&(le=Y.constructor.name),le==="Map"||le==="Set")return Array.from(Y);if(le==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(le))return h(Y,ee)}}(Q)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function h(Q,Y){(Y==null||Y>Q.length)&&(Y=Q.length);for(var ee=0,le=new Array(Y);ee<Y;ee++)le[ee]=Q[ee];return le}Number.isInteger||(Number.isInteger=function(Q){return typeof Q=="number"&&isFinite(Q)&&Math.floor(Q)===Q}),Number.EPSILON||(Number.EPSILON=2220446049250313e-31);var m=g(Math.pow(10,-6));function g(Q){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6;if(Number.isInteger(Q))return Q;var ee=Math.pow(10,Y);return Math.round((+Q+Number.EPSILON)*ee)/ee}function v(Q,Y){var ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:m;return Math.abs(Q-Y)<ee}var y=Math.PI/180;function _(Q){return Q}function S(Q,Y,ee){var le=1-ee;return 3*ee*le*(Q*le+Y*ee)+ee*ee*ee}function C(){var Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,le=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;return Q<0||Q>1||ee<0||ee>1?null:v(Q,Y)&&v(ee,le)?_:function(Se){if(Se<=0)return Q>0?Se*Y/Q:Y===0&&ee>0?Se*le/ee:0;if(Se>=1)return ee<1?1+(Se-1)*(le-1)/(ee-1):ee===1&&Q<1?1+(Se-1)*(Y-1)/(Q-1):1;for(var Ae,He=0,at=1;He<at;){var wt=S(Q,ee,Ae=(He+at)/2);if(v(Se,wt))break;wt<Se?He=Ae:at=Ae}return S(Y,le,Ae)}}function w(){return 1}function x(Q){return Q===1?1:0}function T(){var Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(Q===1){if(Y===0)return x;if(Y===1)return w}var ee=1/Q;return function(le){return le>=1?1:(le+=Y*ee)-le%ee}}var A=Math.sin,I=Math.cos,R=Math.acos,N=Math.asin,P=Math.tan,L=Math.atan2,$=Math.PI/180,D=180/Math.PI,z=Math.sqrt,U=function(){function Q(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,Se=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,Ae=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,He=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;r(this,Q),this.m=[Y,ee,le,Se,Ae,He],this.i=null,this.w=null,this.s=null}return a(Q,[{key:"determinant",get:function(){var Y=this.m;return Y[0]*Y[3]-Y[1]*Y[2]}},{key:"isIdentity",get:function(){if(this.i===null){var Y=this.m;this.i=Y[0]===1&&Y[1]===0&&Y[2]===0&&Y[3]===1&&Y[4]===0&&Y[5]===0}return this.i}},{key:"point",value:function(Y,ee){var le=this.m;return{x:le[0]*Y+le[2]*ee+le[4],y:le[1]*Y+le[3]*ee+le[5]}}},{key:"translateSelf",value:function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!Y&&!ee)return this;var le=this.m;return le[4]+=le[0]*Y+le[2]*ee,le[5]+=le[1]*Y+le[3]*ee,this.w=this.s=this.i=null,this}},{key:"rotateSelf",value:function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;if(Y%=360){var ee=A(Y*=$),le=I(Y),Se=this.m,Ae=Se[0],He=Se[1];Se[0]=Ae*le+Se[2]*ee,Se[1]=He*le+Se[3]*ee,Se[2]=Se[2]*le-Ae*ee,Se[3]=Se[3]*le-He*ee,this.w=this.s=this.i=null}return this}},{key:"scaleSelf",value:function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;if(Y!==1||ee!==1){var le=this.m;le[0]*=Y,le[1]*=Y,le[2]*=ee,le[3]*=ee,this.w=this.s=this.i=null}return this}},{key:"skewSelf",value:function(Y,ee){if(ee%=360,(Y%=360)||ee){var le=this.m,Se=le[0],Ae=le[1],He=le[2],at=le[3];Y&&(Y=P(Y*$),le[2]+=Se*Y,le[3]+=Ae*Y),ee&&(ee=P(ee*$),le[0]+=He*ee,le[1]+=at*ee),this.w=this.s=this.i=null}return this}},{key:"resetSelf",value:function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,Se=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,Ae=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,He=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,at=this.m;return at[0]=Y,at[1]=ee,at[2]=le,at[3]=Se,at[4]=Ae,at[5]=He,this.w=this.s=this.i=null,this}},{key:"recomposeSelf",value:function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Se=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,Ae=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null;return this.isIdentity||this.resetSelf(),Y&&(Y.x||Y.y)&&this.translateSelf(Y.x,Y.y),ee&&this.rotateSelf(ee),le&&(le.x&&this.skewSelf(le.x,0),le.y&&this.skewSelf(0,le.y)),!Se||Se.x===1&&Se.y===1||this.scaleSelf(Se.x,Se.y),Ae&&(Ae.x||Ae.y)&&this.translateSelf(Ae.x,Ae.y),this}},{key:"decompose",value:function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,le=this.m,Se=le[0]*le[0]+le[1]*le[1],Ae=[[le[0],le[1]],[le[2],le[3]]],He=z(Se);if(He===0)return{origin:{x:g(le[4]),y:g(le[5])},translate:{x:g(Y),y:g(ee)},scale:{x:0,y:0},skew:{x:0,y:0},rotate:0};Ae[0][0]/=He,Ae[0][1]/=He;var at=le[0]*le[3]-le[1]*le[2]<0;at&&(He=-He);var wt=Ae[0][0]*Ae[1][0]+Ae[0][1]*Ae[1][1];Ae[1][0]-=Ae[0][0]*wt,Ae[1][1]-=Ae[0][1]*wt;var ft=z(Ae[1][0]*Ae[1][0]+Ae[1][1]*Ae[1][1]);if(ft===0)return{origin:{x:g(le[4]),y:g(le[5])},translate:{x:g(Y),y:g(ee)},scale:{x:g(He),y:0},skew:{x:0,y:0},rotate:0};Ae[1][0]/=ft,Ae[1][1]/=ft,wt/=ft;var Lt=0;return Ae[1][1]<0?(Lt=R(Ae[1][1])*D,Ae[0][1]<0&&(Lt=360-Lt)):Lt=N(Ae[0][1])*D,at&&(Lt=-Lt),wt=L(wt,z(Ae[0][0]*Ae[0][0]+Ae[0][1]*Ae[0][1]))*D,at&&(wt=-wt),{origin:{x:g(le[4]),y:g(le[5])},translate:{x:g(Y),y:g(ee)},scale:{x:g(He),y:g(ft)},skew:{x:g(wt),y:0},rotate:g(Lt)}}},{key:"clone",value:function(){var Y=this.m;return new this.constructor(Y[0],Y[1],Y[2],Y[3],Y[4],Y[5])}},{key:"toString",value:function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:" ";if(this.s===null){var ee=this.m.map(function(le){return g(le)});ee[0]===1&&ee[1]===0&&ee[2]===0&&ee[3]===1?this.s="translate("+ee[4]+Y+ee[5]+")":this.s="matrix("+ee.join(Y)+")"}return this.s}}],[{key:"create",value:function(Y){return Y?Array.isArray(Y)?u(this,p(Y)):Y instanceof this?Y.clone():new this().recomposeSelf(Y.origin,Y.rotate,Y.skew,Y.scale,Y.translate):new this}}]),Q}();function H(Q,Y,ee){return Q>=.5?ee:Y}function M(Q,Y,ee){return Q===0||Y===ee?Y:Q*(ee-Y)+Y}function B(Q,Y,ee){var le=M(Q,Y,ee);return le<=0?0:le}function k(Q,Y,ee){var le=M(Q,Y,ee);return le<=0?0:le>=1?1:le}function F(Q,Y,ee){return Q===0?Y:Q===1?ee:{x:M(Q,Y.x,ee.x),y:M(Q,Y.y,ee.y)}}function G(Q,Y,ee){var le=function(Se,Ae,He){return Math.round(M(Se,Ae,He))}(Q,Y,ee);return le<=0?0:le>=255?255:le}function q(Q,Y,ee){return Q===0?Y:Q===1?ee:{r:G(Q,Y.r,ee.r),g:G(Q,Y.g,ee.g),b:G(Q,Y.b,ee.b),a:M(Q,Y.a==null?1:Y.a,ee.a==null?1:ee.a)}}function W(Q,Y){for(var ee=[],le=0;le<Q;le++)ee.push(Y);return ee}function K(Q,Y){if(--Y<=0)return Q;var ee=(Q=Object.assign([],Q)).length;do for(var le=0;le<ee;le++)Q.push(Q[le]);while(--Y>0);return Q}var J,te=function(){function Q(Y){r(this,Q),this.list=Y,this.length=Y.length}return a(Q,[{key:"setAttribute",value:function(Y,ee){for(var le=this.list,Se=0;Se<this.length;Se++)le[Se].setAttribute(Y,ee)}},{key:"removeAttribute",value:function(Y){for(var ee=this.list,le=0;le<this.length;le++)ee[le].removeAttribute(Y)}},{key:"style",value:function(Y,ee){for(var le=this.list,Se=0;Se<this.length;Se++)le[Se].style[Y]=ee}}]),Q}(),ae=/-./g,re=function(Q,Y){return Y.toUpperCase()};function ue(Q){return typeof Q=="function"?Q:H}function de(Q){return Q?typeof Q=="function"?Q:Array.isArray(Q)?function(Y){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_;if(!Array.isArray(Y))return ee;switch(Y.length){case 1:return T(Y[0])||ee;case 2:return T(Y[0],Y[1])||ee;case 4:return C(Y[0],Y[1],Y[2],Y[3])||ee}return ee}(Q,null):function(Y,ee){var le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_;switch(Y){case"linear":return _;case"steps":return T(ee.steps||1,ee.jump||0)||le;case"bezier":case"cubic-bezier":return C(ee.x1||0,ee.y1||0,ee.x2||0,ee.y2||0)||le}return le}(Q.type,Q.value,null):null}function fe(Q,Y,ee){var le=arguments.length>3&&arguments[3]!==void 0&&arguments[3],Se=Y.length-1;if(Q<=Y[0].t)return le?[0,0,Y[0].v]:Y[0].v;if(Q>=Y[Se].t)return le?[Se,1,Y[Se].v]:Y[Se].v;var Ae,He=Y[0],at=null;for(Ae=1;Ae<=Se;Ae++){if(!(Q>Y[Ae].t)){at=Y[Ae];break}He=Y[Ae]}return at==null?le?[Se,1,Y[Se].v]:Y[Se].v:He.t===at.t?le?[Ae,1,at.v]:at.v:(Q=(Q-He.t)/(at.t-He.t),He.e&&(Q=He.e(Q)),le?[Ae,Q,ee(Q,He.v,at.v)]:ee(Q,He.v,at.v))}function ge(Q,Y){var ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;return Q&&Q.length?typeof Y!="function"?null:(typeof ee!="function"&&(ee=null),function(le){var Se=fe(le,Q,Y);return Se!=null&&ee&&(Se=ee(Se)),Se}):null}function oe(Q,Y){return Q.t-Y.t}function Ee(Q,Y,ee,le,Se){var Ae,He=ee[0]==="@",at=ee[0]==="#",wt=J[ee],ft=H;switch(He?(Ae=ee.substr(1),ee=Ae.replace(ae,re)):at&&(ee=ee.substr(1)),n(wt)){case"function":if(ft=wt(le,Se,fe,de,ee,He,Y,Q),at)return ft;break;case"string":ft=ge(le,ue(wt));break;case"object":if((ft=ge(le,ue(wt.i),wt.f))&&typeof wt.u=="function")return wt.u(Y,ft,ee,He,Q)}return ft?function(Lt,kt,Gt){if(arguments.length>3&&arguments[3]!==void 0&&arguments[3])return Lt instanceof te?function(_n){return Lt.style(kt,Gt(_n))}:function(_n){return Lt.style[kt]=Gt(_n)};if(Array.isArray(kt)){var ln=kt.length;return function(_n){var Fn=Gt(_n);if(Fn==null)for(var ur=0;ur<ln;ur++)Lt[ur].removeAttribute(kt);else for(var Vr=0;Vr<ln;Vr++)Lt[Vr].setAttribute(kt,Fn)}}return function(_n){var Fn=Gt(_n);Fn==null?Lt.removeAttribute(kt):Lt.setAttribute(kt,Fn)}}(Y,ee,ft,He):null}function ce(Q,Y,ee,le){if(!le||n(le)!=="object")return null;var Se=null,Ae=null;return Array.isArray(le)?Ae=function(He){if(!He||!He.length)return null;for(var at=0;at<He.length;at++)He[at].e&&(He[at].e=de(He[at].e));return He.sort(oe)}(le):(Ae=le.keys,Se=le.data||null),Ae?Ee(Q,Y,ee,Ae,Se):null}function he(Q,Y,ee){if(!ee)return null;var le=[];for(var Se in ee)if(ee.hasOwnProperty(Se)){var Ae=ce(Q,Y,Se,ee[Se]);Ae&&le.push(Ae)}return le.length?le:null}function ye(Q,Y){if(!Y.settings.duration||Y.settings.duration<0)return null;var ee,le,Se,Ae,He,at=function(wt,ft){if(!ft)return null;var Lt=[];if(Array.isArray(ft))for(var kt=ft.length,Gt=0;Gt<kt;Gt++){var ln=ft[Gt];if(ln.length===2){var _n=null;if(typeof ln[0]=="string")_n=wt.getElementById(ln[0]);else if(Array.isArray(ln[0])){_n=[];for(var Fn=0;Fn<ln[0].length;Fn++)if(typeof ln[0][Fn]=="string"){var ur=wt.getElementById(ln[0][Fn]);ur&&_n.push(ur)}_n=_n.length?_n.length===1?_n[0]:new te(_n):null}if(_n){var Vr=he(wt,_n,ln[1]);Vr&&(Lt=Lt.concat(Vr))}}}else for(var ni in ft)if(ft.hasOwnProperty(ni)){var fr=wt.getElementById(ni);if(fr){var Un=he(wt,fr,ft[ni]);Un&&(Lt=Lt.concat(Un))}}return Lt.length?Lt:null}(Q,Y.elements);return at?(ee=at,le=Y.settings,Se=le.duration,Ae=ee.length,He=null,function(wt,ft){var Lt=le.iterations||1/0,kt=(le.alternate&&Lt%2==0)^le.direction>0?Se:0,Gt=wt%Se,ln=1+(wt-Gt)/Se;ft*=le.direction,le.alternate&&ln%2==0&&(ft=-ft);var _n=!1;if(ln>Lt)Gt=kt,_n=!0,le.fill===-1&&(Gt=le.direction>0?0:Se);else if(ft<0&&(Gt=Se-Gt),Gt===He)return!1;He=Gt;for(var Fn=0;Fn<Ae;Fn++)ee[Fn](Gt);return _n}):null}function me(Q,Y){if(J=Y,!Q||!Q.root||!Array.isArray(Q.animations))return null;var ee=function(Se){for(var Ae=document.getElementsByTagName("svg"),He=0;He<Ae.length;He++)if(Ae[He].id===Se.root&&!Ae[He].svgatorAnimation)return Ae[He].svgatorAnimation=!0,Ae[He];return null}(Q);if(!ee)return null;var le=Q.animations.map(function(Se){return ye(ee,Se)}).filter(function(Se){return!!Se});return le.length?{svg:ee,animations:le,animationSettings:Q.animationSettings,options:Q.options||void 0}:null}function _e(Q){return+("0x"+(Q.replace(/[^0-9a-fA-F]+/g,"")||27))}function Te(Q,Y,ee){return!Q||!ee||Y>Q.length?Q:Q.substring(0,Y)+Te(Q.substring(Y+1),ee,ee)}function xe(Q){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:27;return!Q||Q%Y?Q%Y:xe(Q/Y,Y)}function De(Q,Y,ee){if(Q&&Q.length){var le=_e(ee),Se=_e(Y),Ae=xe(le)+5,He=Te(Q,xe(le,5),Ae);return He=He.replace(/\x7c$/g,"==").replace(/\x2f$/g,"="),He=function(at,wt,ft){var Lt=+("0x"+at.substring(0,4));at=at.substring(4);for(var kt=wt%Lt+ft%27,Gt=[],ln=0;ln<at.length;ln+=2)if(at[ln]!=="|"){var _n=+("0x"+at[ln]+at[ln+1])-kt;Gt.push(_n)}else{var Fn=+("0x"+at.substring(ln+1,ln+1+4))-kt;ln+=3,Gt.push(Fn)}return String.fromCharCode.apply(String,Gt)}(He=(He=atob(He)).replace(/[\x41-\x5A]/g,""),Se,le),He=JSON.parse(He)}}var Pe=[{key:"alternate",def:!1},{key:"fill",def:1},{key:"iterations",def:0},{key:"direction",def:1},{key:"speed",def:1},{key:"fps",def:100}],Le=function(){function Q(Y,ee){var le=this,Se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;r(this,Q),this._id=0,this._running=!1,this._rollingBack=!1,this._animations=Y,this._settings=ee,(!Se||Se<"2022-05-02")&&delete this._settings.speed,Pe.forEach(function(Ae){le._settings[Ae.key]=le._settings[Ae.key]||Ae.def}),this.duration=ee.duration,this.offset=ee.offset||0,this.rollbackStartOffset=0}return a(Q,[{key:"alternate",get:function(){return this._settings.alternate}},{key:"fill",get:function(){return this._settings.fill}},{key:"iterations",get:function(){return this._settings.iterations}},{key:"direction",get:function(){return this._settings.direction}},{key:"speed",get:function(){return this._settings.speed}},{key:"fps",get:function(){return this._settings.fps}},{key:"maxFiniteDuration",get:function(){return this.iterations>0?this.iterations*this.duration:this.duration}},{key:"_apply",value:function(Y){for(var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},le=this._animations,Se=le.length,Ae=0,He=0;He<Se;He++)ee[He]?Ae++:(ee[He]=le[He](Y,1),ee[He]&&Ae++);return Ae}},{key:"_rollback",value:function(Y){var ee=this,le=1/0,Se=null;this.rollbackStartOffset=Y,this._rollingBack=!0,this._running=!0,this._id=window.requestAnimationFrame(function Ae(He){if(ee._rollingBack){Se==null&&(Se=He);var at=Math.round(Y-(He-Se)*ee.speed);if(at>ee.duration&&le!==1/0){var wt=!!ee.alternate&&at/ee.duration%2>1,ft=at%ee.duration;at=(ft+=wt?ee.duration:0)||ee.duration}var Lt=(ee.fps?1e3/ee.fps:0)*ee.speed,kt=Math.max(0,at);kt<le-Lt&&(ee.offset=kt,le=kt,ee._apply(kt));var Gt=ee.iterations>0&&ee.fill===-1&&at>=ee.maxFiniteDuration;(at<=0||ee.offset<at||Gt)&&ee.stop(),ee._id=window.requestAnimationFrame(Ae)}})}},{key:"_start",value:function(){var Y=this,ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,le=-1/0,Se=null,Ae={};this._running=!0;var He=function at(wt){Se==null&&(Se=wt);var ft=Math.round((wt-Se)*Y.speed+ee),Lt=(Y.fps?1e3/Y.fps:0)*Y.speed;if(ft>le+Lt&&!Y._rollingBack&&(Y.offset=ft,le=ft,Y._apply(ft,Ae)===Y._animations.length))return void Y.pause(!0);Y._id=window.requestAnimationFrame(at)};this._id=window.requestAnimationFrame(He)}},{key:"_pause",value:function(){this._id&&window.cancelAnimationFrame(this._id),this._running=!1}},{key:"play",value:function(){if(!this._running)return this._rollingBack?this._rollback(this.offset):this._start(this.offset)}},{key:"stop",value:function(){this._pause(),this.offset=0,this.rollbackStartOffset=0,this._rollingBack=!1,this._apply(0)}},{key:"reachedToEnd",value:function(){return this.iterations>0&&this.offset>=this.iterations*this.duration}},{key:"restart",value:function(){var Y=arguments.length>0&&arguments[0]!==void 0&&arguments[0];this.stop(Y),this.play(Y)}},{key:"pause",value:function(){this._pause()}},{key:"reverse",value:function(){this.direction=-this.direction}}],[{key:"build",value:function(Y,ee){delete Y.animationSettings,Y.options=De(Y.options,Y.root,"5c7f360c"),Y.animations.map(function(He){He.settings=De(He.s,Y.root,"5c7f360c"),delete He.s,Y.animationSettings||(Y.animationSettings=He.settings)});var le=Y.version;if(!(Y=me(Y,ee)))return null;var Se=Y.options||{},Ae=new this(Y.animations,Y.animationSettings,le);return{el:Y.svg,options:Se,player:Ae}}},{key:"push",value:function(Y){return this.build(Y)}},{key:"init",value:function(){var Y=this,ee=window.__SVGATOR_PLAYER__&&window.__SVGATOR_PLAYER__["5c7f360c"];Array.isArray(ee)&&ee.splice(0).forEach(function(le){return Y.build(le)})}}]),Q}();function ze(Q){return g(Q)+""}function Be(Q){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:" ";return Q&&Q.length?Q.map(ze).join(Y):""}function je(Q){if(!Q)return"transparent";if(Q.a==null||Q.a>=1){var Y=function(He){return(He=parseInt(He).toString(16)).length===1?"0"+He:He},ee=function(He){return He.charAt(0)===He.charAt(1)},le=Y(Q.r),Se=Y(Q.g),Ae=Y(Q.b);return ee(le)&&ee(Se)&&ee(Ae)&&(le=le.charAt(0),Se=Se.charAt(0),Ae=Ae.charAt(0)),"#"+le+Se+Ae}return"rgba("+Q.r+","+Q.g+","+Q.b+","+Q.a+")"}function Ye(Q){return Q?"url(#"+Q+")":"none"}(function(){for(var Q=0,Y=["ms","moz","webkit","o"],ee=0;ee<Y.length&&!window.requestAnimationFrame;++ee)window.requestAnimationFrame=window[Y[ee]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[Y[ee]+"CancelAnimationFrame"]||window[Y[ee]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(le){var Se=Date.now(),Ae=Math.max(0,16-(Se-Q)),He=window.setTimeout(function(){le(Se+Ae)},Ae);return Q=Se+Ae,He},window.cancelAnimationFrame=window.clearTimeout)})();var Ze={f:null,i:function(Q,Y,ee){return Q===0?Y:Q===1?ee:{x:B(Q,Y.x,ee.x),y:B(Q,Y.y,ee.y)}},u:function(Q,Y){return function(ee){var le=Y(ee);Q.setAttribute("rx",ze(le.x)),Q.setAttribute("ry",ze(le.y))}}},Ke={f:null,i:function(Q,Y,ee){return Q===0?Y:Q===1?ee:{width:B(Q,Y.width,ee.width),height:B(Q,Y.height,ee.height)}},u:function(Q,Y){return function(ee){var le=Y(ee);Q.setAttribute("width",ze(le.width)),Q.setAttribute("height",ze(le.height))}}},qe={},nt=null;function Qe(Q){var Y=function(){if(nt)return nt;if((typeof document>"u"?"undefined":n(document))!=="object"||!document.createElementNS)return{};var Se=document.createElementNS("http://www.w3.org/2000/svg","svg");return Se&&Se.style?(Se.style.position="absolute",Se.style.opacity="0.01",Se.style.zIndex="-9999",Se.style.left="-9999px",Se.style.width="1px",Se.style.height="1px",nt={svg:Se}):{}}().svg;if(!Y)return function(Se){return null};var ee=document.createElementNS(Y.namespaceURI,"path");ee.setAttributeNS(null,"d",Q),ee.setAttributeNS(null,"fill","none"),ee.setAttributeNS(null,"stroke","none"),Y.appendChild(ee);var le=ee.getTotalLength();return function(Se){var Ae=ee.getPointAtLength(le*Se);return{x:Ae.x,y:Ae.y}}}function it(Q){return qe[Q]?qe[Q]:qe[Q]=Qe(Q)}function yt(Q,Y,ee,le){if(!Q||!le)return!1;var Se=["M",Q.x,Q.y];if(Y&&ee&&(Se.push("C"),Se.push(Y.x),Se.push(Y.y),Se.push(ee.x),Se.push(ee.y)),Y?!ee:ee){var Ae=Y||ee;Se.push("Q"),Se.push(Ae.x),Se.push(Ae.y)}return Y||ee||Se.push("L"),Se.push(le.x),Se.push(le.y),Se.join(" ")}function Wt(Q,Y,ee,le){var Se=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1,Ae=yt(Q,Y,ee,le),He=it(Ae);try{return He(Se)}catch{return null}}function Mt(Q,Y,ee){return Q+(Y-Q)*ee}function tn(Q,Y,ee){var le=arguments.length>3&&arguments[3]!==void 0&&arguments[3],Se={x:Mt(Q.x,Y.x,ee),y:Mt(Q.y,Y.y,ee)};return le&&(Se.a=Rt(Q,Y)),Se}function Rt(Q,Y){return Math.atan2(Y.y-Q.y,Y.x-Q.x)}function Dt(Q,Y,ee,le){var Se=1-le;return Se*Se*Q+2*Se*le*Y+le*le*ee}function Pt(Q,Y,ee,le){return 2*(1-le)*(Y-Q)+2*le*(ee-Y)}function Ot(Q,Y,ee,le){var Se=arguments.length>4&&arguments[4]!==void 0&&arguments[4],Ae=Wt(Q,Y,null,ee,le);return Ae||(Ae={x:Dt(Q.x,Y.x,ee.x,le),y:Dt(Q.y,Y.y,ee.y,le)}),Se&&(Ae.a=sn(Q,Y,ee,le)),Ae}function sn(Q,Y,ee,le){return Math.atan2(Pt(Q.y,Y.y,ee.y,le),Pt(Q.x,Y.x,ee.x,le))}function Jt(Q,Y,ee,le,Se){var Ae=Se*Se;return Se*Ae*(le-Q+3*(Y-ee))+3*Ae*(Q+ee-2*Y)+3*Se*(Y-Q)+Q}function Vt(Q,Y,ee,le,Se){var Ae=1-Se;return 3*(Ae*Ae*(Y-Q)+2*Ae*Se*(ee-Y)+Se*Se*(le-ee))}function pt(Q,Y,ee,le,Se){var Ae=arguments.length>5&&arguments[5]!==void 0&&arguments[5],He=Wt(Q,Y,ee,le,Se);return He||(He={x:Jt(Q.x,Y.x,ee.x,le.x,Se),y:Jt(Q.y,Y.y,ee.y,le.y,Se)}),Ae&&(He.a=tt(Q,Y,ee,le,Se)),He}function tt(Q,Y,ee,le,Se){return Math.atan2(Vt(Q.y,Y.y,ee.y,le.y,Se),Vt(Q.x,Y.x,ee.x,le.x,Se))}function dt(Q,Y,ee){var le=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(St(Y)){if(zt(ee))return Ot(Y,ee.start,ee,Q,le)}else if(St(ee)){if(nn(Y))return Ot(Y,Y.end,ee,Q,le)}else{if(nn(Y))return zt(ee)?pt(Y,Y.end,ee.start,ee,Q,le):Ot(Y,Y.end,ee,Q,le);if(zt(ee))return Ot(Y,ee.start,ee,Q,le)}return tn(Y,ee,Q,le)}function Et(Q,Y,ee){var le=dt(Q,Y,ee,!0);return le.a=function(Se){return arguments.length>1&&arguments[1]!==void 0&&arguments[1]?Se+Math.PI:Se}(le.a)/y,le}function St(Q){return!Q.type||Q.type==="corner"}function zt(Q){return Q.start!=null&&!St(Q)}function nn(Q){return Q.end!=null&&!St(Q)}var wn=new U,kn={f:ze,i:M},fn={f:ze,i:k};function an(Q,Y,ee){return Q.map(function(le){return function(Se,Ae,He){var at=Se.v;if(!at||at.t!=="g"||at.s||!at.v||!at.r)return Se;var wt=He.getElementById(at.r),ft=wt&&wt.querySelectorAll("stop")||[];return at.s=at.v.map(function(Lt,kt){var Gt=ft[kt]&&ft[kt].getAttribute("offset");return{c:Lt,o:Gt=g(parseInt(Gt)/100)}}),delete at.v,Se}(le,0,ee)})}var Ht={gt:"gradientTransform",c:{x:"cx",y:"cy"},rd:"r",f:{x:"x1",y:"y1"},to:{x:"x2",y:"y2"}};function mn(Q,Y,ee,le,Se,Ae,He,at){return an(Q,0,at),Y=function(wt,ft,Lt){for(var kt,Gt,ln,_n=wt.length-1,Fn={},ur=0;ur<=_n;ur++)(kt=wt[ur]).e&&(kt.e=ft(kt.e)),kt.v&&(Gt=kt.v).t==="g"&&Gt.r&&(ln=Lt.getElementById(Gt.r))&&(Fn[Gt.r]={e:ln,s:ln.querySelectorAll("stop")});return Fn}(Q,le,at),function(wt){var ft=ee(wt,Q,Tn);if(!ft)return"none";if(ft.t==="c")return je(ft.v);if(ft.t==="g"){if(!Y[ft.r])return Ye(ft.r);var Lt=Y[ft.r];return function(kt,Gt){for(var ln=kt.s,_n=ln.length;_n<Gt.length;_n++){var Fn=ln[ln.length-1].cloneNode();Fn.id=un(Fn.id),kt.e.appendChild(Fn),ln=kt.s=kt.e.querySelectorAll("stop")}for(var ur=0,Vr=ln.length,ni=Gt.length-1;ur<Vr;ur++)ln[ur].setAttribute("stop-color",je(Gt[Math.min(ur,ni)].c)),ln[ur].setAttribute("offset",Gt[Math.min(ur,ni)].o)}(Lt,ft.s),Object.keys(Ht).forEach(function(kt){if(ft[kt]!==void 0)if(n(Ht[kt])!=="object"){var Gt,ln=kt==="gt"?(Gt=ft[kt],Array.isArray(Gt)?"matrix("+Gt.join(" ")+")":""):ft[kt],_n=Ht[kt];Lt.e.setAttribute(_n,ln)}else Object.keys(Ht[kt]).forEach(function(Fn){if(ft[kt][Fn]!==void 0){var ur=ft[kt][Fn],Vr=Ht[kt][Fn];Lt.e.setAttribute(Vr,ur)}})}),Ye(ft.r)}return"none"}}function Tn(Q,Y,ee){if(Q===0)return Y;if(Q===1)return ee;if(Y&&ee){var le=Y.t;if(le===ee.t)switch(Y.t){case"c":return{t:le,v:q(Q,Y.v,ee.v)};case"g":if(Y.r===ee.r){var Se={t:le,s:An(Q,Y.s,ee.s),r:Y.r};return Y.gt&&ee.gt&&(Se.gt=function(wt,ft,Lt){var kt=ft.length;if(kt!==Lt.length)return H(wt,ft,Lt);for(var Gt=new Array(kt),ln=0;ln<kt;ln++)Gt[ln]=M(wt,ft[ln],Lt[ln]);return Gt}(Q,Y.gt,ee.gt)),Y.c?(Se.c=F(Q,Y.c,ee.c),Se.rd=B(Q,Y.rd,ee.rd)):Y.f&&(Se.f=F(Q,Y.f,ee.f),Se.to=F(Q,Y.to,ee.to)),Se}}if(Y.t==="c"&&ee.t==="g"||ee.t==="c"&&Y.t==="g"){var Ae=Y.t==="c"?Y:ee,He=Y.t==="g"?t({},Y):t({},ee),at=He.s.map(function(wt){return{c:Ae.v,o:wt.o}});return He.s=Y.t==="c"?An(Q,at,He.s):An(Q,He.s,at),He}}return H(Q,Y,ee)}function An(Q,Y,ee){if(Y.length===ee.length)return Y.map(function(at,wt){return nr(Q,at,ee[wt])});for(var le=Math.max(Y.length,ee.length),Se=[],Ae=0;Ae<le;Ae++){var He=nr(Q,Y[Math.min(Ae,Y.length-1)],ee[Math.min(Ae,ee.length-1)]);Se.push(He)}return Se}function nr(Q,Y,ee){return{o:k(Q,Y.o,ee.o||0),c:q(Q,Y.c,ee.c||{})}}function un(Q){return Q.replace(/-fill-([0-9]+)$/,function(Y,ee){return"-fill-"+(+ee+1)})}var et={fill:mn,"fill-opacity":fn,stroke:mn,"stroke-opacity":fn,"stroke-width":kn,"stroke-dashoffset":{f:ze,i:M},"stroke-dasharray":{f:function(Q){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:" ";return Q&&Q.length>0&&(Q=Q.map(function(ee){return g(ee,4)})),Be(Q,Y)},i:function(Q,Y,ee){var le,Se,Ae,He=Y.length,at=ee.length;if(He!==at)if(He===0)Y=W(He=at,0);else if(at===0)at=He,ee=W(He,0);else{var wt=(Ae=(le=He)*(Se=at)/function(kt,Gt){for(var ln;Gt;)ln=Gt,Gt=kt%Gt,kt=ln;return kt||1}(le,Se))<0?-Ae:Ae;Y=K(Y,Math.floor(wt/He)),ee=K(ee,Math.floor(wt/at)),He=at=wt}for(var ft=[],Lt=0;Lt<He;Lt++)ft.push(g(B(Q,Y[Lt],ee[Lt])));return ft}},opacity:fn,transform:function(Q,Y,ee,le){if(!(Q=function(Ae,He){if(!Ae||n(Ae)!=="object")return null;var at=!1;for(var wt in Ae)Ae.hasOwnProperty(wt)&&(Ae[wt]&&Ae[wt].length?(Ae[wt].forEach(function(ft){ft.e&&(ft.e=He(ft.e))}),at=!0):delete Ae[wt]);return at?Ae:null}(Q,le)))return null;var Se=function(Ae,He,at){var wt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return Q[Ae]?ee(He,Q[Ae],at):Y&&Y[Ae]?Y[Ae]:wt};return Y&&Y.a&&Q.o?function(Ae){var He=ee(Ae,Q.o,Et);return wn.recomposeSelf(He,Se("r",Ae,M,0)+He.a,Se("k",Ae,F),Se("s",Ae,F),Se("t",Ae,F)).toString()}:function(Ae){return wn.recomposeSelf(Se("o",Ae,dt,null),Se("r",Ae,M,0),Se("k",Ae,F),Se("s",Ae,F),Se("t",Ae,F)).toString()}},r:kn,"#size":Ke,"#radius":Ze,_:function(Q,Y){if(Array.isArray(Q))for(var ee=0;ee<Q.length;ee++)this[Q[ee]]=Y;else this[Q]=Y}},Ct=function(Q){(function(Ae,He){if(typeof He!="function"&&He!==null)throw new TypeError("Super expression must either be null or a function");Ae.prototype=Object.create(He&&He.prototype,{constructor:{value:Ae,writable:!0,configurable:!0}}),He&&l(Ae,He)})(Se,Q);var Y,ee,le=(Y=Se,ee=c(),function(){var Ae,He=s(Y);if(ee){var at=s(this).constructor;Ae=Reflect.construct(He,arguments,at)}else Ae=He.apply(this,arguments);return d(this,Ae)});function Se(){return r(this,Se),le.apply(this,arguments)}return a(Se,null,[{key:"build",value:function(Ae){var He=f(s(Se),"build",this).call(this,Ae,et);if(!He)return null;He.el,He.options,function(at,wt,ft){at.play()}(He.player)}}]),Se}(Le);return Ct.init(),Ct}),function(e,t,n,r,i,a){r[n]=r[n]||{},r[n][e]=r[n][e]||[],r[n][e].push(t)}("5c7f360c",{root:"eXH8VvtSnlq1",version:"2022-05-04",animations:[{elements:{eXH8VvtSnlq2:{transform:{data:{t:{x:-49.276251,y:-213.625504}},keys:{o:[{t:0,v:{x:54.276251,y:213.625504,type:"corner"}},{t:1e3,v:{x:49.276251,y:213.625504,type:"corner"}},{t:2e3,v:{x:54.28,y:213.63,type:"corner"}}],r:[{t:0,v:0},{t:1e3,v:-15},{t:2e3,v:0}]}}},eXH8VvtSnlq3:{transform:{data:{o:{x:43.115662,y:208.981003,type:"corner"},t:{x:-43.115662,y:-208.981003}},keys:{r:[{t:0,v:-30},{t:1e3,v:-10},{t:2e3,v:-30}]}}},eXH8VvtSnlq4:{transform:{data:{t:{x:-239.177811,y:-177.897003}},keys:{o:[{t:0,v:{x:239.177811,y:199.897003,type:"corner"}},{t:1200,v:{x:239.177811,y:179.897003,type:"corner"}}]}},opacity:[{t:0,v:1},{t:1200,v:0}]},eXH8VvtSnlq5:{transform:{data:{t:{x:-242.1064,y:-183.754501}},keys:{o:[{t:400,v:{x:242.1064,y:203.754501,type:"corner"}},{t:1200,v:{x:242.1064,y:185.754501,type:"corner"}}]}},opacity:[{t:400,v:1},{t:1200,v:0}]},eXH8VvtSnlq9:{transform:{data:{t:{x:-120.422519,y:-187.37944}},keys:{o:[{t:0,v:{x:120.42252,y:187.37944,type:"corner"}},{t:1200,v:{x:119.42252,y:184.37944,type:"corner"}},{t:2400,v:{x:120.42,y:187.38,type:"corner"}}]}}},eXH8VvtSnlq12:{transform:{data:{t:{x:-179.5774,y:-187.229064}},keys:{o:[{t:0,v:{x:179.5774,y:187.229065,type:"corner"}},{t:1200,v:{x:181.5774,y:188.229065,type:"corner"}},{t:2400,v:{x:179.58,y:187.23,type:"corner"}}]}}},eXH8VvtSnlq21:{transform:{data:{t:{x:-151.081497,y:-97.001515}},keys:{o:[{t:0,v:{x:151.081498,y:97.001515,type:"cusp",end:{x:151.081498,y:97.001515}}},{t:1200,v:{x:148.540554,y:99.020097,type:"cusp",start:{x:148.997924,y:98.656752},end:{x:148.083184,y:99.383442}}},{t:2400,v:{x:151.08,y:97,type:"cusp",start:{x:151.08,y:97}}}],r:[{t:0,v:0},{t:1200,v:-6},{t:2400,v:0}]}}}},s:"MHDA1M2M0RTZiYWRiZWPJiYWFDYmRHYjJiOGIV3UTZiODM3YjdkNzk3EOTc1RDZiYWRiMmJiYOWVhY2JkYjJiOGI3NmQI4MzdhNzU2YmIyYmRKhZWJiYWFQYmRiMmI4EYjdiYzZiODM3OTc1NJmJhZmIyYjViNTZiODWM3YUs3NTZiYWFiNWJEkQ2FlYmJiN2FhYmRhSZU42YjgzYWZhYWI1YSmNhZTc1NmJiY2I5YWXVQYWVhZDZiODM3YWMB2"}],options:"MADAxMDg4MmY4MDgxNmCU3ZjgxMmY0NzJmNzkM3YzZlNzEyZjhh"},"__SVGATOR_PLAYER__",window)},[]),E.jsx(bzn,{})),{useToken:_zn}=Fd,Szn=()=>{const{token:e}=_zn();return E.jsxs("svg",{id:"e8XFCI5qgUD1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 300 300",shapeRendering:"geometricPrecision",textRendering:"geometricPrecision",children:[E.jsx("path",{d:"M206,212.863h-115.5195c-9.71,0-17.6096-7.899-17.6096-17.609v-115.5197c0-9.71,7.8996-17.6096,17.6096-17.6096h115.5195c9.71,0,17.609,7.8996,17.609,17.6096v115.5197c0,9.71-7.899,17.609-17.609,17.609ZM90.4805,64.9422c-8.1694,0-14.792,6.6227-14.792,14.7921v115.5197c0,8.169,6.6226,14.792,14.792,14.792h80.9185c27.279,0,49.393-22.114,49.393-49.393v-80.9187c0-8.1694-6.623-14.7921-14.792-14.7921h-115.5195v0Z",fill:"#f0f2f5"}),E.jsx("path",{id:"e8XFCI5qgUD3",d:"M102.935,76.955c-5.4678,0-9.9156,4.4478-9.9156,9.9152v15.5198c0,5.467,4.4478,9.915,9.9156,9.915h15.519c5.468,0,9.915-4.448,9.915-9.915v-15.5198c0-5.4674-4.447-9.9152-9.915-9.9152h-15.519Z",fill:"#f0f2f5"}),E.jsx("path",{id:"e8XFCI5qgUD4",d:"M102.935,120.644c-5.4678,0-9.9156,4.448-9.9156,9.916v15.519c0,5.467,4.4478,9.915,9.9156,9.915h15.519c5.468,0,9.915-4.448,9.915-9.915v-15.519c0-5.468-4.447-9.916-9.915-9.916h-15.519Z",fill:"#f0f2f5"}),E.jsx("path",{id:"e8XFCI5qgUD5",d:"M102.935,164.334c-5.4678,0-9.9156,4.447-9.9156,9.915v15.519c0,5.468,4.4478,9.916,9.9156,9.916h15.519c5.468,0,9.915-4.448,9.915-9.916v-15.519c0-5.468-4.447-9.915-9.915-9.915h-15.519Z",transform:"translate(-.004202 0)",fill:"#f0f2f5"}),E.jsxs("g",{id:"e8XFCI5qgUD6",transform:"matrix(.999387 0.035007-.035007 0.999387 10.135088-5.224431)",children:[E.jsxs("g",{transform:"translate(.000001 0.000001)",children:[E.jsx("path",{d:"M149.617,290.568l-3.973-.034-1.758-15.68l5.863.049-.132,15.665Z",fill:"#a0616a"}),E.jsx("path",{d:"M136.892,296.885c-.009.978.78,1.783,1.761,1.792l7.899.065l1.382-2.802.508,2.817l2.98.027-.752-10.048-1.037-.069-4.229-.291-1.365-.092-.024,2.843-6.345,4.304c-.482.328-.773.871-.778,1.454v0Z",fill:"#2f2e41"})]}),E.jsxs("g",{transform:"translate(0 0.000001)",children:[E.jsx("path",{d:"M169.829,290.568l-3.972-.034-1.759-15.68l5.863.049-.132,15.665Z",fill:"#a0616a"}),E.jsx("path",{d:"M157.104,296.885c-.008.978.78,1.783,1.761,1.792l7.899.065l1.383-2.802.507,2.817l2.981.027-.753-10.048-1.037-.069-4.229-.291-1.364-.092-.024,2.843-6.345,4.304c-.483.328-.774.871-.779,1.454Z",fill:"#2f2e41"})]})]}),E.jsx("path",{id:"e8XFCI5qgUD13",d:"M134.028,163.793l16.103.509l15.255,3.39c0,0-1.525,1.864,3.56,6.95c0,0,6.78,11.865,2.034,23.391l-2.034,46.106c0,0,5.93,32.501,1.399,42.845l-5.989.374-10.133-42.844-4.94-46.142L146.91,243.8c0,0,9.079,31.18,3.346,43.558l-6.486-.374L132.672,243.8c0,0-4.746-49.835-4.068-59.327s5.424-20.68,5.424-20.68v0Z",fill:"#2f2e41"}),E.jsxs("g",{id:"e8XFCI5qgUD14",transform:"translate(.000001 0)",children:[E.jsxs("g",{id:"e8XFCI5qgUD15",transform:"translate(.997841 2.000001)",children:[E.jsx("path",{d:"M113.226,39.0909c-6.889,0-12.493,5.6044-12.493,12.4935v19.555c0,6.8891,5.604,12.4935,12.493,12.4935h19.555c6.889,0,12.494-5.6044,12.494-12.4935v-19.555c0-6.8891-5.605-12.4935-12.494-12.4935h-19.555Z",fill:e.colorPrimary}),E.jsxs("g",{transform:"translate(.000001 0)",children:[E.jsx("path",{d:"M128.038,79.9118c1.162,1.9546.52,4.4811-1.435,5.6431-.896.5324-1.91.6818-2.86.5039l-.004.0041-5.103,5.5914-5.997-2.173l7.867-8.5912.028.0292c.273-.9883.91-1.8775,1.861-2.4428c1.955-1.162,4.481-.5194,5.643,1.4353Z",fill:"#a0616a"}),E.jsx("path",{d:"M130.243,121.624l-29.176-7.881c-1.7372-.47-3.0867-1.778-3.6103-3.499-.5236-1.722-.1305-3.56,1.0513-4.917l16.896-19.3985l6.514,3.306-11.58,16.2805l22.543,3.079c2.72.371,4.904,2.333,5.564,4.999.573,2.314-.102,4.692-1.805,6.359-1.27,1.244-2.922,1.908-4.634,1.907-.585,0-1.177-.077-1.763-.235v0Z",fill:"#3f3d56"})]})]}),E.jsxs("g",{id:"e8XFCI5qgUD20",transform:"translate(.000001 0.000001)",children:[E.jsx("path",{d:"M177.606,93.739c-6.889,0-12.493,5.6043-12.493,12.493v19.555c0,6.89,5.604,12.494,12.493,12.494h19.555c6.889,0,12.493-5.604,12.493-12.494v-19.555c0-6.8887-5.604-12.493-12.493-12.493h-19.555Z",fill:e.colorPrimary}),E.jsxs("g",{children:[E.jsx("path",{d:"M188.105,90.9395c-2.201.5699-3.524,2.8166-2.954,5.0179.262,1.0087.877,1.8293,1.677,2.3714l-.001.0056-.312,7.5636l5.789,2.679.462-11.6396-.041.0012c.502-.8941.676-1.9744.398-3.0454-.57-2.2013-2.816-3.5237-5.018-2.9537v0Z",fill:"#a0616a"}),E.jsx("path",{d:"M155.754,117.935c-1.216-1.205-1.921-2.84-1.948-4.617-.035-2.383,1.159-4.547,3.196-5.787c2.345-1.428,5.277-1.284,7.471.368l18.176,13.685l3.239-19.715l6.953,2.238-1.659,25.672c-.116,1.796-1.131,3.378-2.715,4.232s-3.463.832-5.027-.057l-26.268-14.945c-.527-.3-1.003-.662-1.418-1.074v0Z",fill:"#3f3d56"})]})]}),E.jsx("path",{d:"M171.838,170.576l-40.799,1.872c-1.12-1.702-.817-4.261.752-7.465c5.925-12.097,1.426-34.983-1.601-46.9-.85-3.343,1.43-6.667,4.863-7.011l3.847-.384l3.556-10.855h12.453l5.167,5.903l8.768,5.326c-1.596,16.439-8.396,39.653,1.291,51.294c2.119,2.546,2.72,5.3,1.703,8.22Z",fill:"#3f3d56"}),E.jsxs("g",{transform:"translate(.000001 0.000001)",children:[E.jsx("path",{d:"M147.098,100.084c6.7,0,12.13-5.4312,12.13-12.1305c0-6.6994-5.43-12.1303-12.13-12.1303-6.699,0-12.13,5.4309-12.13,12.1303c0,6.6993,5.431,12.1305,12.13,12.1305Z",fill:"#a0616a"}),E.jsx("path",{d:"M160.825,80.1889c1.687-6.1531-16.707-11.4295-20.281-6.4744-.497-.7045-2.334-1.1324-3.177-.9163s-1.552.7564-2.243,1.2793c-.951.7305-1.936,1.4868-2.52,2.5371-.588,1.0459-.678,2.4722.113,3.3798.626.7218,1.727,4.5573,2.67,4.7475.657.1339,1.21.242,1.685.3198.424-.6181,1.504-1.3944,1.426-2.1421.64.4235.406,1.1687.277,1.9303-.429,2.5361-10.104,22.1681-4.563,16.3831.549.324,1.227.627,2.01.903c1.327-2.001,2.416-4.3607,3.133-6.8286l.005.0456c.247,2.1446,1.815,3.9044,3.888,4.5051c8.318,2.4099,15.047-1.1262,17.361-7.5029-.847-1.7201-1.216-1.5333-1.14-1.5844c1.057-.7129,2.511-.2467,2.966.9451.134.3513.256.6513.361.8771c1.206-4.3135,2.64-3.6909-1.971-12.4041v0Z",fill:"#2f2e41"}),E.jsx("path",{d:"M155.086,75.7247l-.849-4.3439c-.072-.3652-.14-.7613.025-1.095.212-.4287.755-.6064,1.229-.5381.473.0684.827.5006,1.297.5838c1.637.2893,3.801-1.3273,4.387,2.7626.245,1.7052,2.966,1.8853,3.874,3.3488.909,1.4635,1.021,3.5759-.22,4.7715-.99.9549-2.581,1.0651-3.867.5773-1.287-.4878-2.319-1.473-3.221-2.512s-1.718-2.1634-2.759-3.0638",fill:"#2f2e41"}),E.jsx("path",{d:"M161.473,82.3316c-3.32-.4637-5.582-1.6708-6.725-3.5876-1.496-2.5092-.494-5.2721-.45-5.3885l.701.2608c-.009.0254-.918,2.5545.396,4.7508c1.022,1.7085,3.102,2.793,6.181,3.2232l-.103.7413Z",fill:e.colorPrimary})]})]}),E.jsx("path",{id:"e8XFCI5qgUD31",d:"M159.351,17.6978c0,9.7579,7.94,17.6977,17.698,17.6977c3.629,0,7.007-1.0982,9.818-2.9798l14.992,14.0496c.682.6412,1.552.9575,2.419.9575.944,0,1.886-.3751,2.582-1.12c1.338-1.4258,1.265-3.6657-.162-5.0017L191.852,27.3879c1.829-2.7855,2.895-6.1159,2.895-9.6901C194.747,7.93979,186.807,0,177.049,0s-17.698,7.93979-17.698,17.6978Zm7.079,0c0-5.8555,4.763-10.61869,10.619-10.61869c5.855,0,10.618,4.76319,10.618,10.61869s-4.763,10.6186-10.618,10.6186c-5.856,0-10.619-4.7632-10.619-10.6186Z",transform:"translate(-.004364-.001399)",clipRule:"evenodd",fill:e.colorPrimary,fillRule:"evenodd"})]})},Ezn=()=>(b.useEffect(()=>{(function(e,t){typeof exports=="object"&&typeof module<"u"?module.exports=t():typeof define=="function"&&define.amd?define(t):((e=typeof globalThis<"u"?globalThis:e||self).__SVGATOR_PLAYER__=e.__SVGATOR_PLAYER__||{},e.__SVGATOR_PLAYER__["5c7f360c"]=t())})(void 0,function(){function e(Q,Y){var ee=Object.keys(Q);if(Object.getOwnPropertySymbols){var le=Object.getOwnPropertySymbols(Q);Y&&(le=le.filter(function(Se){return Object.getOwnPropertyDescriptor(Q,Se).enumerable})),ee.push.apply(ee,le)}return ee}function t(Q){for(var Y=1;Y<arguments.length;Y++){var ee=arguments[Y]!=null?arguments[Y]:{};Y%2?e(Object(ee),!0).forEach(function(le){o(Q,le,ee[le])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Q,Object.getOwnPropertyDescriptors(ee)):e(Object(ee)).forEach(function(le){Object.defineProperty(Q,le,Object.getOwnPropertyDescriptor(ee,le))})}return Q}function n(Q){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Y){return typeof Y}:function(Y){return Y&&typeof Symbol=="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y})(Q)}function r(Q,Y){if(!(Q instanceof Y))throw new TypeError("Cannot call a class as a function")}function i(Q,Y){for(var ee=0;ee<Y.length;ee++){var le=Y[ee];le.enumerable=le.enumerable||!1,le.configurable=!0,"value"in le&&(le.writable=!0),Object.defineProperty(Q,le.key,le)}}function a(Q,Y,ee){return Y&&i(Q.prototype,Y),ee&&i(Q,ee),Q}function o(Q,Y,ee){return Y in Q?Object.defineProperty(Q,Y,{value:ee,enumerable:!0,configurable:!0,writable:!0}):Q[Y]=ee,Q}function s(Q){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(Y){return Y.__proto__||Object.getPrototypeOf(Y)})(Q)}function l(Q,Y){return(l=Object.setPrototypeOf||function(ee,le){return ee.__proto__=le,ee})(Q,Y)}function c(){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 u(Q,Y,ee){return(u=c()?Reflect.construct:function(le,Se,Ae){var He=[null];He.push.apply(He,Se);var at=new(Function.bind.apply(le,He));return Ae&&l(at,Ae.prototype),at}).apply(null,arguments)}function d(Q,Y){if(Y&&(typeof Y=="object"||typeof Y=="function"))return Y;if(Y!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(ee){if(ee===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ee}(Q)}function f(Q,Y,ee){return(f=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(le,Se,Ae){var He=function(wt,ft){for(;!Object.prototype.hasOwnProperty.call(wt,ft)&&(wt=s(wt))!==null;);return wt}(le,Se);if(He){var at=Object.getOwnPropertyDescriptor(He,Se);return at.get?at.get.call(Ae):at.value}})(Q,Y,ee||Q)}function p(Q){return function(Y){if(Array.isArray(Y))return h(Y)}(Q)||function(Y){if(typeof Symbol<"u"&&Y[Symbol.iterator]!=null||Y["@@iterator"]!=null)return Array.from(Y)}(Q)||function(Y,ee){if(Y){if(typeof Y=="string")return h(Y,ee);var le=Object.prototype.toString.call(Y).slice(8,-1);if(le==="Object"&&Y.constructor&&(le=Y.constructor.name),le==="Map"||le==="Set")return Array.from(Y);if(le==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(le))return h(Y,ee)}}(Q)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function h(Q,Y){(Y==null||Y>Q.length)&&(Y=Q.length);for(var ee=0,le=new Array(Y);ee<Y;ee++)le[ee]=Q[ee];return le}Number.isInteger||(Number.isInteger=function(Q){return typeof Q=="number"&&isFinite(Q)&&Math.floor(Q)===Q}),Number.EPSILON||(Number.EPSILON=2220446049250313e-31);var m=g(Math.pow(10,-6));function g(Q){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6;if(Number.isInteger(Q))return Q;var ee=Math.pow(10,Y);return Math.round((+Q+Number.EPSILON)*ee)/ee}function v(Q,Y){var ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:m;return Math.abs(Q-Y)<ee}var y=Math.PI/180;function _(Q){return Q}function S(Q,Y,ee){var le=1-ee;return 3*ee*le*(Q*le+Y*ee)+ee*ee*ee}function C(){var Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,le=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;return Q<0||Q>1||ee<0||ee>1?null:v(Q,Y)&&v(ee,le)?_:function(Se){if(Se<=0)return Q>0?Se*Y/Q:Y===0&&ee>0?Se*le/ee:0;if(Se>=1)return ee<1?1+(Se-1)*(le-1)/(ee-1):ee===1&&Q<1?1+(Se-1)*(Y-1)/(Q-1):1;for(var Ae,He=0,at=1;He<at;){var wt=S(Q,ee,Ae=(He+at)/2);if(v(Se,wt))break;wt<Se?He=Ae:at=Ae}return S(Y,le,Ae)}}function w(){return 1}function x(Q){return Q===1?1:0}function T(){var Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(Q===1){if(Y===0)return x;if(Y===1)return w}var ee=1/Q;return function(le){return le>=1?1:(le+=Y*ee)-le%ee}}var A=Math.sin,I=Math.cos,R=Math.acos,N=Math.asin,P=Math.tan,L=Math.atan2,$=Math.PI/180,D=180/Math.PI,z=Math.sqrt,U=function(){function Q(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,Se=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,Ae=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,He=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;r(this,Q),this.m=[Y,ee,le,Se,Ae,He],this.i=null,this.w=null,this.s=null}return a(Q,[{key:"determinant",get:function(){var Y=this.m;return Y[0]*Y[3]-Y[1]*Y[2]}},{key:"isIdentity",get:function(){if(this.i===null){var Y=this.m;this.i=Y[0]===1&&Y[1]===0&&Y[2]===0&&Y[3]===1&&Y[4]===0&&Y[5]===0}return this.i}},{key:"point",value:function(Y,ee){var le=this.m;return{x:le[0]*Y+le[2]*ee+le[4],y:le[1]*Y+le[3]*ee+le[5]}}},{key:"translateSelf",value:function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!Y&&!ee)return this;var le=this.m;return le[4]+=le[0]*Y+le[2]*ee,le[5]+=le[1]*Y+le[3]*ee,this.w=this.s=this.i=null,this}},{key:"rotateSelf",value:function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;if(Y%=360){var ee=A(Y*=$),le=I(Y),Se=this.m,Ae=Se[0],He=Se[1];Se[0]=Ae*le+Se[2]*ee,Se[1]=He*le+Se[3]*ee,Se[2]=Se[2]*le-Ae*ee,Se[3]=Se[3]*le-He*ee,this.w=this.s=this.i=null}return this}},{key:"scaleSelf",value:function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;if(Y!==1||ee!==1){var le=this.m;le[0]*=Y,le[1]*=Y,le[2]*=ee,le[3]*=ee,this.w=this.s=this.i=null}return this}},{key:"skewSelf",value:function(Y,ee){if(ee%=360,(Y%=360)||ee){var le=this.m,Se=le[0],Ae=le[1],He=le[2],at=le[3];Y&&(Y=P(Y*$),le[2]+=Se*Y,le[3]+=Ae*Y),ee&&(ee=P(ee*$),le[0]+=He*ee,le[1]+=at*ee),this.w=this.s=this.i=null}return this}},{key:"resetSelf",value:function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,Se=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,Ae=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,He=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,at=this.m;return at[0]=Y,at[1]=ee,at[2]=le,at[3]=Se,at[4]=Ae,at[5]=He,this.w=this.s=this.i=null,this}},{key:"recomposeSelf",value:function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Se=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,Ae=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null;return this.isIdentity||this.resetSelf(),Y&&(Y.x||Y.y)&&this.translateSelf(Y.x,Y.y),ee&&this.rotateSelf(ee),le&&(le.x&&this.skewSelf(le.x,0),le.y&&this.skewSelf(0,le.y)),!Se||Se.x===1&&Se.y===1||this.scaleSelf(Se.x,Se.y),Ae&&(Ae.x||Ae.y)&&this.translateSelf(Ae.x,Ae.y),this}},{key:"decompose",value:function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,le=this.m,Se=le[0]*le[0]+le[1]*le[1],Ae=[[le[0],le[1]],[le[2],le[3]]],He=z(Se);if(He===0)return{origin:{x:g(le[4]),y:g(le[5])},translate:{x:g(Y),y:g(ee)},scale:{x:0,y:0},skew:{x:0,y:0},rotate:0};Ae[0][0]/=He,Ae[0][1]/=He;var at=le[0]*le[3]-le[1]*le[2]<0;at&&(He=-He);var wt=Ae[0][0]*Ae[1][0]+Ae[0][1]*Ae[1][1];Ae[1][0]-=Ae[0][0]*wt,Ae[1][1]-=Ae[0][1]*wt;var ft=z(Ae[1][0]*Ae[1][0]+Ae[1][1]*Ae[1][1]);if(ft===0)return{origin:{x:g(le[4]),y:g(le[5])},translate:{x:g(Y),y:g(ee)},scale:{x:g(He),y:0},skew:{x:0,y:0},rotate:0};Ae[1][0]/=ft,Ae[1][1]/=ft,wt/=ft;var Lt=0;return Ae[1][1]<0?(Lt=R(Ae[1][1])*D,Ae[0][1]<0&&(Lt=360-Lt)):Lt=N(Ae[0][1])*D,at&&(Lt=-Lt),wt=L(wt,z(Ae[0][0]*Ae[0][0]+Ae[0][1]*Ae[0][1]))*D,at&&(wt=-wt),{origin:{x:g(le[4]),y:g(le[5])},translate:{x:g(Y),y:g(ee)},scale:{x:g(He),y:g(ft)},skew:{x:g(wt),y:0},rotate:g(Lt)}}},{key:"clone",value:function(){var Y=this.m;return new this.constructor(Y[0],Y[1],Y[2],Y[3],Y[4],Y[5])}},{key:"toString",value:function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:" ";if(this.s===null){var ee=this.m.map(function(le){return g(le)});ee[0]===1&&ee[1]===0&&ee[2]===0&&ee[3]===1?this.s="translate("+ee[4]+Y+ee[5]+")":this.s="matrix("+ee.join(Y)+")"}return this.s}}],[{key:"create",value:function(Y){return Y?Array.isArray(Y)?u(this,p(Y)):Y instanceof this?Y.clone():new this().recomposeSelf(Y.origin,Y.rotate,Y.skew,Y.scale,Y.translate):new this}}]),Q}();function H(Q,Y,ee){return Q>=.5?ee:Y}function M(Q,Y,ee){return Q===0||Y===ee?Y:Q*(ee-Y)+Y}function B(Q,Y,ee){var le=M(Q,Y,ee);return le<=0?0:le}function k(Q,Y,ee){var le=M(Q,Y,ee);return le<=0?0:le>=1?1:le}function F(Q,Y,ee){return Q===0?Y:Q===1?ee:{x:M(Q,Y.x,ee.x),y:M(Q,Y.y,ee.y)}}function G(Q,Y,ee){var le=function(Se,Ae,He){return Math.round(M(Se,Ae,He))}(Q,Y,ee);return le<=0?0:le>=255?255:le}function q(Q,Y,ee){return Q===0?Y:Q===1?ee:{r:G(Q,Y.r,ee.r),g:G(Q,Y.g,ee.g),b:G(Q,Y.b,ee.b),a:M(Q,Y.a==null?1:Y.a,ee.a==null?1:ee.a)}}function W(Q,Y){for(var ee=[],le=0;le<Q;le++)ee.push(Y);return ee}function K(Q,Y){if(--Y<=0)return Q;var ee=(Q=Object.assign([],Q)).length;do for(var le=0;le<ee;le++)Q.push(Q[le]);while(--Y>0);return Q}var J,te=function(){function Q(Y){r(this,Q),this.list=Y,this.length=Y.length}return a(Q,[{key:"setAttribute",value:function(Y,ee){for(var le=this.list,Se=0;Se<this.length;Se++)le[Se].setAttribute(Y,ee)}},{key:"removeAttribute",value:function(Y){for(var ee=this.list,le=0;le<this.length;le++)ee[le].removeAttribute(Y)}},{key:"style",value:function(Y,ee){for(var le=this.list,Se=0;Se<this.length;Se++)le[Se].style[Y]=ee}}]),Q}(),ae=/-./g,re=function(Q,Y){return Y.toUpperCase()};function ue(Q){return typeof Q=="function"?Q:H}function de(Q){return Q?typeof Q=="function"?Q:Array.isArray(Q)?function(Y){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_;if(!Array.isArray(Y))return ee;switch(Y.length){case 1:return T(Y[0])||ee;case 2:return T(Y[0],Y[1])||ee;case 4:return C(Y[0],Y[1],Y[2],Y[3])||ee}return ee}(Q,null):function(Y,ee){var le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_;switch(Y){case"linear":return _;case"steps":return T(ee.steps||1,ee.jump||0)||le;case"bezier":case"cubic-bezier":return C(ee.x1||0,ee.y1||0,ee.x2||0,ee.y2||0)||le}return le}(Q.type,Q.value,null):null}function fe(Q,Y,ee){var le=arguments.length>3&&arguments[3]!==void 0&&arguments[3],Se=Y.length-1;if(Q<=Y[0].t)return le?[0,0,Y[0].v]:Y[0].v;if(Q>=Y[Se].t)return le?[Se,1,Y[Se].v]:Y[Se].v;var Ae,He=Y[0],at=null;for(Ae=1;Ae<=Se;Ae++){if(!(Q>Y[Ae].t)){at=Y[Ae];break}He=Y[Ae]}return at==null?le?[Se,1,Y[Se].v]:Y[Se].v:He.t===at.t?le?[Ae,1,at.v]:at.v:(Q=(Q-He.t)/(at.t-He.t),He.e&&(Q=He.e(Q)),le?[Ae,Q,ee(Q,He.v,at.v)]:ee(Q,He.v,at.v))}function ge(Q,Y){var ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;return Q&&Q.length?typeof Y!="function"?null:(typeof ee!="function"&&(ee=null),function(le){var Se=fe(le,Q,Y);return Se!=null&&ee&&(Se=ee(Se)),Se}):null}function oe(Q,Y){return Q.t-Y.t}function Ee(Q,Y,ee,le,Se){var Ae,He=ee[0]==="@",at=ee[0]==="#",wt=J[ee],ft=H;switch(He?(Ae=ee.substr(1),ee=Ae.replace(ae,re)):at&&(ee=ee.substr(1)),n(wt)){case"function":if(ft=wt(le,Se,fe,de,ee,He,Y,Q),at)return ft;break;case"string":ft=ge(le,ue(wt));break;case"object":if((ft=ge(le,ue(wt.i),wt.f))&&typeof wt.u=="function")return wt.u(Y,ft,ee,He,Q)}return ft?function(Lt,kt,Gt){if(arguments.length>3&&arguments[3]!==void 0&&arguments[3])return Lt instanceof te?function(_n){return Lt.style(kt,Gt(_n))}:function(_n){return Lt.style[kt]=Gt(_n)};if(Array.isArray(kt)){var ln=kt.length;return function(_n){var Fn=Gt(_n);if(Fn==null)for(var ur=0;ur<ln;ur++)Lt[ur].removeAttribute(kt);else for(var Vr=0;Vr<ln;Vr++)Lt[Vr].setAttribute(kt,Fn)}}return function(_n){var Fn=Gt(_n);Fn==null?Lt.removeAttribute(kt):Lt.setAttribute(kt,Fn)}}(Y,ee,ft,He):null}function ce(Q,Y,ee,le){if(!le||n(le)!=="object")return null;var Se=null,Ae=null;return Array.isArray(le)?Ae=function(He){if(!He||!He.length)return null;for(var at=0;at<He.length;at++)He[at].e&&(He[at].e=de(He[at].e));return He.sort(oe)}(le):(Ae=le.keys,Se=le.data||null),Ae?Ee(Q,Y,ee,Ae,Se):null}function he(Q,Y,ee){if(!ee)return null;var le=[];for(var Se in ee)if(ee.hasOwnProperty(Se)){var Ae=ce(Q,Y,Se,ee[Se]);Ae&&le.push(Ae)}return le.length?le:null}function ye(Q,Y){if(!Y.settings.duration||Y.settings.duration<0)return null;var ee,le,Se,Ae,He,at=function(wt,ft){if(!ft)return null;var Lt=[];if(Array.isArray(ft))for(var kt=ft.length,Gt=0;Gt<kt;Gt++){var ln=ft[Gt];if(ln.length===2){var _n=null;if(typeof ln[0]=="string")_n=wt.getElementById(ln[0]);else if(Array.isArray(ln[0])){_n=[];for(var Fn=0;Fn<ln[0].length;Fn++)if(typeof ln[0][Fn]=="string"){var ur=wt.getElementById(ln[0][Fn]);ur&&_n.push(ur)}_n=_n.length?_n.length===1?_n[0]:new te(_n):null}if(_n){var Vr=he(wt,_n,ln[1]);Vr&&(Lt=Lt.concat(Vr))}}}else for(var ni in ft)if(ft.hasOwnProperty(ni)){var fr=wt.getElementById(ni);if(fr){var Un=he(wt,fr,ft[ni]);Un&&(Lt=Lt.concat(Un))}}return Lt.length?Lt:null}(Q,Y.elements);return at?(ee=at,le=Y.settings,Se=le.duration,Ae=ee.length,He=null,function(wt,ft){var Lt=le.iterations||1/0,kt=(le.alternate&&Lt%2==0)^le.direction>0?Se:0,Gt=wt%Se,ln=1+(wt-Gt)/Se;ft*=le.direction,le.alternate&&ln%2==0&&(ft=-ft);var _n=!1;if(ln>Lt)Gt=kt,_n=!0,le.fill===-1&&(Gt=le.direction>0?0:Se);else if(ft<0&&(Gt=Se-Gt),Gt===He)return!1;He=Gt;for(var Fn=0;Fn<Ae;Fn++)ee[Fn](Gt);return _n}):null}function me(Q,Y){if(J=Y,!Q||!Q.root||!Array.isArray(Q.animations))return null;var ee=function(Se){for(var Ae=document.getElementsByTagName("svg"),He=0;He<Ae.length;He++)if(Ae[He].id===Se.root&&!Ae[He].svgatorAnimation)return Ae[He].svgatorAnimation=!0,Ae[He];return null}(Q);if(!ee)return null;var le=Q.animations.map(function(Se){return ye(ee,Se)}).filter(function(Se){return!!Se});return le.length?{svg:ee,animations:le,animationSettings:Q.animationSettings,options:Q.options||void 0}:null}function _e(Q){return+("0x"+(Q.replace(/[^0-9a-fA-F]+/g,"")||27))}function Te(Q,Y,ee){return!Q||!ee||Y>Q.length?Q:Q.substring(0,Y)+Te(Q.substring(Y+1),ee,ee)}function xe(Q){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:27;return!Q||Q%Y?Q%Y:xe(Q/Y,Y)}function De(Q,Y,ee){if(Q&&Q.length){var le=_e(ee),Se=_e(Y),Ae=xe(le)+5,He=Te(Q,xe(le,5),Ae);return He=He.replace(/\x7c$/g,"==").replace(/\x2f$/g,"="),He=function(at,wt,ft){var Lt=+("0x"+at.substring(0,4));at=at.substring(4);for(var kt=wt%Lt+ft%27,Gt=[],ln=0;ln<at.length;ln+=2)if(at[ln]!=="|"){var _n=+("0x"+at[ln]+at[ln+1])-kt;Gt.push(_n)}else{var Fn=+("0x"+at.substring(ln+1,ln+1+4))-kt;ln+=3,Gt.push(Fn)}return String.fromCharCode.apply(String,Gt)}(He=(He=atob(He)).replace(/[\x41-\x5A]/g,""),Se,le),He=JSON.parse(He)}}var Pe=[{key:"alternate",def:!1},{key:"fill",def:1},{key:"iterations",def:0},{key:"direction",def:1},{key:"speed",def:1},{key:"fps",def:100}],Le=function(){function Q(Y,ee){var le=this,Se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;r(this,Q),this._id=0,this._running=!1,this._rollingBack=!1,this._animations=Y,this._settings=ee,(!Se||Se<"2022-05-02")&&delete this._settings.speed,Pe.forEach(function(Ae){le._settings[Ae.key]=le._settings[Ae.key]||Ae.def}),this.duration=ee.duration,this.offset=ee.offset||0,this.rollbackStartOffset=0}return a(Q,[{key:"alternate",get:function(){return this._settings.alternate}},{key:"fill",get:function(){return this._settings.fill}},{key:"iterations",get:function(){return this._settings.iterations}},{key:"direction",get:function(){return this._settings.direction}},{key:"speed",get:function(){return this._settings.speed}},{key:"fps",get:function(){return this._settings.fps}},{key:"maxFiniteDuration",get:function(){return this.iterations>0?this.iterations*this.duration:this.duration}},{key:"_apply",value:function(Y){for(var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},le=this._animations,Se=le.length,Ae=0,He=0;He<Se;He++)ee[He]?Ae++:(ee[He]=le[He](Y,1),ee[He]&&Ae++);return Ae}},{key:"_rollback",value:function(Y){var ee=this,le=1/0,Se=null;this.rollbackStartOffset=Y,this._rollingBack=!0,this._running=!0,this._id=window.requestAnimationFrame(function Ae(He){if(ee._rollingBack){Se==null&&(Se=He);var at=Math.round(Y-(He-Se)*ee.speed);if(at>ee.duration&&le!==1/0){var wt=!!ee.alternate&&at/ee.duration%2>1,ft=at%ee.duration;at=(ft+=wt?ee.duration:0)||ee.duration}var Lt=(ee.fps?1e3/ee.fps:0)*ee.speed,kt=Math.max(0,at);kt<le-Lt&&(ee.offset=kt,le=kt,ee._apply(kt));var Gt=ee.iterations>0&&ee.fill===-1&&at>=ee.maxFiniteDuration;(at<=0||ee.offset<at||Gt)&&ee.stop(),ee._id=window.requestAnimationFrame(Ae)}})}},{key:"_start",value:function(){var Y=this,ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,le=-1/0,Se=null,Ae={};this._running=!0;var He=function at(wt){Se==null&&(Se=wt);var ft=Math.round((wt-Se)*Y.speed+ee),Lt=(Y.fps?1e3/Y.fps:0)*Y.speed;if(ft>le+Lt&&!Y._rollingBack&&(Y.offset=ft,le=ft,Y._apply(ft,Ae)===Y._animations.length))return void Y.pause(!0);Y._id=window.requestAnimationFrame(at)};this._id=window.requestAnimationFrame(He)}},{key:"_pause",value:function(){this._id&&window.cancelAnimationFrame(this._id),this._running=!1}},{key:"play",value:function(){if(!this._running)return this._rollingBack?this._rollback(this.offset):this._start(this.offset)}},{key:"stop",value:function(){this._pause(),this.offset=0,this.rollbackStartOffset=0,this._rollingBack=!1,this._apply(0)}},{key:"reachedToEnd",value:function(){return this.iterations>0&&this.offset>=this.iterations*this.duration}},{key:"restart",value:function(){var Y=arguments.length>0&&arguments[0]!==void 0&&arguments[0];this.stop(Y),this.play(Y)}},{key:"pause",value:function(){this._pause()}},{key:"reverse",value:function(){this.direction=-this.direction}}],[{key:"build",value:function(Y,ee){delete Y.animationSettings,Y.options=De(Y.options,Y.root,"5c7f360c"),Y.animations.map(function(He){He.settings=De(He.s,Y.root,"5c7f360c"),delete He.s,Y.animationSettings||(Y.animationSettings=He.settings)});var le=Y.version;if(!(Y=me(Y,ee)))return null;var Se=Y.options||{},Ae=new this(Y.animations,Y.animationSettings,le);return{el:Y.svg,options:Se,player:Ae}}},{key:"push",value:function(Y){return this.build(Y)}},{key:"init",value:function(){var Y=this,ee=window.__SVGATOR_PLAYER__&&window.__SVGATOR_PLAYER__["5c7f360c"];Array.isArray(ee)&&ee.splice(0).forEach(function(le){return Y.build(le)})}}]),Q}();function ze(Q){return g(Q)+""}function Be(Q){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:" ";return Q&&Q.length?Q.map(ze).join(Y):""}function je(Q){if(!Q)return"transparent";if(Q.a==null||Q.a>=1){var Y=function(He){return(He=parseInt(He).toString(16)).length===1?"0"+He:He},ee=function(He){return He.charAt(0)===He.charAt(1)},le=Y(Q.r),Se=Y(Q.g),Ae=Y(Q.b);return ee(le)&&ee(Se)&&ee(Ae)&&(le=le.charAt(0),Se=Se.charAt(0),Ae=Ae.charAt(0)),"#"+le+Se+Ae}return"rgba("+Q.r+","+Q.g+","+Q.b+","+Q.a+")"}function Ye(Q){return Q?"url(#"+Q+")":"none"}(function(){for(var Q=0,Y=["ms","moz","webkit","o"],ee=0;ee<Y.length&&!window.requestAnimationFrame;++ee)window.requestAnimationFrame=window[Y[ee]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[Y[ee]+"CancelAnimationFrame"]||window[Y[ee]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(le){var Se=Date.now(),Ae=Math.max(0,16-(Se-Q)),He=window.setTimeout(function(){le(Se+Ae)},Ae);return Q=Se+Ae,He},window.cancelAnimationFrame=window.clearTimeout)})();var Ze={f:null,i:function(Q,Y,ee){return Q===0?Y:Q===1?ee:{x:B(Q,Y.x,ee.x),y:B(Q,Y.y,ee.y)}},u:function(Q,Y){return function(ee){var le=Y(ee);Q.setAttribute("rx",ze(le.x)),Q.setAttribute("ry",ze(le.y))}}},Ke={f:null,i:function(Q,Y,ee){return Q===0?Y:Q===1?ee:{width:B(Q,Y.width,ee.width),height:B(Q,Y.height,ee.height)}},u:function(Q,Y){return function(ee){var le=Y(ee);Q.setAttribute("width",ze(le.width)),Q.setAttribute("height",ze(le.height))}}},qe={},nt=null;function Qe(Q){var Y=function(){if(nt)return nt;if((typeof document>"u"?"undefined":n(document))!=="object"||!document.createElementNS)return{};var Se=document.createElementNS("http://www.w3.org/2000/svg","svg");return Se&&Se.style?(Se.style.position="absolute",Se.style.opacity="0.01",Se.style.zIndex="-9999",Se.style.left="-9999px",Se.style.width="1px",Se.style.height="1px",nt={svg:Se}):{}}().svg;if(!Y)return function(Se){return null};var ee=document.createElementNS(Y.namespaceURI,"path");ee.setAttributeNS(null,"d",Q),ee.setAttributeNS(null,"fill","none"),ee.setAttributeNS(null,"stroke","none"),Y.appendChild(ee);var le=ee.getTotalLength();return function(Se){var Ae=ee.getPointAtLength(le*Se);return{x:Ae.x,y:Ae.y}}}function it(Q){return qe[Q]?qe[Q]:qe[Q]=Qe(Q)}function yt(Q,Y,ee,le){if(!Q||!le)return!1;var Se=["M",Q.x,Q.y];if(Y&&ee&&(Se.push("C"),Se.push(Y.x),Se.push(Y.y),Se.push(ee.x),Se.push(ee.y)),Y?!ee:ee){var Ae=Y||ee;Se.push("Q"),Se.push(Ae.x),Se.push(Ae.y)}return Y||ee||Se.push("L"),Se.push(le.x),Se.push(le.y),Se.join(" ")}function Wt(Q,Y,ee,le){var Se=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1,Ae=yt(Q,Y,ee,le),He=it(Ae);try{return He(Se)}catch{return null}}function Mt(Q,Y,ee){return Q+(Y-Q)*ee}function tn(Q,Y,ee){var le=arguments.length>3&&arguments[3]!==void 0&&arguments[3],Se={x:Mt(Q.x,Y.x,ee),y:Mt(Q.y,Y.y,ee)};return le&&(Se.a=Rt(Q,Y)),Se}function Rt(Q,Y){return Math.atan2(Y.y-Q.y,Y.x-Q.x)}function Dt(Q,Y,ee,le){var Se=1-le;return Se*Se*Q+2*Se*le*Y+le*le*ee}function Pt(Q,Y,ee,le){return 2*(1-le)*(Y-Q)+2*le*(ee-Y)}function Ot(Q,Y,ee,le){var Se=arguments.length>4&&arguments[4]!==void 0&&arguments[4],Ae=Wt(Q,Y,null,ee,le);return Ae||(Ae={x:Dt(Q.x,Y.x,ee.x,le),y:Dt(Q.y,Y.y,ee.y,le)}),Se&&(Ae.a=sn(Q,Y,ee,le)),Ae}function sn(Q,Y,ee,le){return Math.atan2(Pt(Q.y,Y.y,ee.y,le),Pt(Q.x,Y.x,ee.x,le))}function Jt(Q,Y,ee,le,Se){var Ae=Se*Se;return Se*Ae*(le-Q+3*(Y-ee))+3*Ae*(Q+ee-2*Y)+3*Se*(Y-Q)+Q}function Vt(Q,Y,ee,le,Se){var Ae=1-Se;return 3*(Ae*Ae*(Y-Q)+2*Ae*Se*(ee-Y)+Se*Se*(le-ee))}function pt(Q,Y,ee,le,Se){var Ae=arguments.length>5&&arguments[5]!==void 0&&arguments[5],He=Wt(Q,Y,ee,le,Se);return He||(He={x:Jt(Q.x,Y.x,ee.x,le.x,Se),y:Jt(Q.y,Y.y,ee.y,le.y,Se)}),Ae&&(He.a=tt(Q,Y,ee,le,Se)),He}function tt(Q,Y,ee,le,Se){return Math.atan2(Vt(Q.y,Y.y,ee.y,le.y,Se),Vt(Q.x,Y.x,ee.x,le.x,Se))}function dt(Q,Y,ee){var le=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(St(Y)){if(zt(ee))return Ot(Y,ee.start,ee,Q,le)}else if(St(ee)){if(nn(Y))return Ot(Y,Y.end,ee,Q,le)}else{if(nn(Y))return zt(ee)?pt(Y,Y.end,ee.start,ee,Q,le):Ot(Y,Y.end,ee,Q,le);if(zt(ee))return Ot(Y,ee.start,ee,Q,le)}return tn(Y,ee,Q,le)}function Et(Q,Y,ee){var le=dt(Q,Y,ee,!0);return le.a=function(Se){return arguments.length>1&&arguments[1]!==void 0&&arguments[1]?Se+Math.PI:Se}(le.a)/y,le}function St(Q){return!Q.type||Q.type==="corner"}function zt(Q){return Q.start!=null&&!St(Q)}function nn(Q){return Q.end!=null&&!St(Q)}var wn=new U,kn={f:ze,i:M},fn={f:ze,i:k};function an(Q,Y,ee){return Q.map(function(le){return function(Se,Ae,He){var at=Se.v;if(!at||at.t!=="g"||at.s||!at.v||!at.r)return Se;var wt=He.getElementById(at.r),ft=wt&&wt.querySelectorAll("stop")||[];return at.s=at.v.map(function(Lt,kt){var Gt=ft[kt]&&ft[kt].getAttribute("offset");return{c:Lt,o:Gt=g(parseInt(Gt)/100)}}),delete at.v,Se}(le,0,ee)})}var Ht={gt:"gradientTransform",c:{x:"cx",y:"cy"},rd:"r",f:{x:"x1",y:"y1"},to:{x:"x2",y:"y2"}};function mn(Q,Y,ee,le,Se,Ae,He,at){return an(Q,0,at),Y=function(wt,ft,Lt){for(var kt,Gt,ln,_n=wt.length-1,Fn={},ur=0;ur<=_n;ur++)(kt=wt[ur]).e&&(kt.e=ft(kt.e)),kt.v&&(Gt=kt.v).t==="g"&&Gt.r&&(ln=Lt.getElementById(Gt.r))&&(Fn[Gt.r]={e:ln,s:ln.querySelectorAll("stop")});return Fn}(Q,le,at),function(wt){var ft=ee(wt,Q,Tn);if(!ft)return"none";if(ft.t==="c")return je(ft.v);if(ft.t==="g"){if(!Y[ft.r])return Ye(ft.r);var Lt=Y[ft.r];return function(kt,Gt){for(var ln=kt.s,_n=ln.length;_n<Gt.length;_n++){var Fn=ln[ln.length-1].cloneNode();Fn.id=un(Fn.id),kt.e.appendChild(Fn),ln=kt.s=kt.e.querySelectorAll("stop")}for(var ur=0,Vr=ln.length,ni=Gt.length-1;ur<Vr;ur++)ln[ur].setAttribute("stop-color",je(Gt[Math.min(ur,ni)].c)),ln[ur].setAttribute("offset",Gt[Math.min(ur,ni)].o)}(Lt,ft.s),Object.keys(Ht).forEach(function(kt){if(ft[kt]!==void 0)if(n(Ht[kt])!=="object"){var Gt,ln=kt==="gt"?(Gt=ft[kt],Array.isArray(Gt)?"matrix("+Gt.join(" ")+")":""):ft[kt],_n=Ht[kt];Lt.e.setAttribute(_n,ln)}else Object.keys(Ht[kt]).forEach(function(Fn){if(ft[kt][Fn]!==void 0){var ur=ft[kt][Fn],Vr=Ht[kt][Fn];Lt.e.setAttribute(Vr,ur)}})}),Ye(ft.r)}return"none"}}function Tn(Q,Y,ee){if(Q===0)return Y;if(Q===1)return ee;if(Y&&ee){var le=Y.t;if(le===ee.t)switch(Y.t){case"c":return{t:le,v:q(Q,Y.v,ee.v)};case"g":if(Y.r===ee.r){var Se={t:le,s:An(Q,Y.s,ee.s),r:Y.r};return Y.gt&&ee.gt&&(Se.gt=function(wt,ft,Lt){var kt=ft.length;if(kt!==Lt.length)return H(wt,ft,Lt);for(var Gt=new Array(kt),ln=0;ln<kt;ln++)Gt[ln]=M(wt,ft[ln],Lt[ln]);return Gt}(Q,Y.gt,ee.gt)),Y.c?(Se.c=F(Q,Y.c,ee.c),Se.rd=B(Q,Y.rd,ee.rd)):Y.f&&(Se.f=F(Q,Y.f,ee.f),Se.to=F(Q,Y.to,ee.to)),Se}}if(Y.t==="c"&&ee.t==="g"||ee.t==="c"&&Y.t==="g"){var Ae=Y.t==="c"?Y:ee,He=Y.t==="g"?t({},Y):t({},ee),at=He.s.map(function(wt){return{c:Ae.v,o:wt.o}});return He.s=Y.t==="c"?An(Q,at,He.s):An(Q,He.s,at),He}}return H(Q,Y,ee)}function An(Q,Y,ee){if(Y.length===ee.length)return Y.map(function(at,wt){return nr(Q,at,ee[wt])});for(var le=Math.max(Y.length,ee.length),Se=[],Ae=0;Ae<le;Ae++){var He=nr(Q,Y[Math.min(Ae,Y.length-1)],ee[Math.min(Ae,ee.length-1)]);Se.push(He)}return Se}function nr(Q,Y,ee){return{o:k(Q,Y.o,ee.o||0),c:q(Q,Y.c,ee.c||{})}}function un(Q){return Q.replace(/-fill-([0-9]+)$/,function(Y,ee){return"-fill-"+(+ee+1)})}var et={fill:mn,"fill-opacity":fn,stroke:mn,"stroke-opacity":fn,"stroke-width":kn,"stroke-dashoffset":{f:ze,i:M},"stroke-dasharray":{f:function(Q){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:" ";return Q&&Q.length>0&&(Q=Q.map(function(ee){return g(ee,4)})),Be(Q,Y)},i:function(Q,Y,ee){var le,Se,Ae,He=Y.length,at=ee.length;if(He!==at)if(He===0)Y=W(He=at,0);else if(at===0)at=He,ee=W(He,0);else{var wt=(Ae=(le=He)*(Se=at)/function(kt,Gt){for(var ln;Gt;)ln=Gt,Gt=kt%Gt,kt=ln;return kt||1}(le,Se))<0?-Ae:Ae;Y=K(Y,Math.floor(wt/He)),ee=K(ee,Math.floor(wt/at)),He=at=wt}for(var ft=[],Lt=0;Lt<He;Lt++)ft.push(g(B(Q,Y[Lt],ee[Lt])));return ft}},opacity:fn,transform:function(Q,Y,ee,le){if(!(Q=function(Ae,He){if(!Ae||n(Ae)!=="object")return null;var at=!1;for(var wt in Ae)Ae.hasOwnProperty(wt)&&(Ae[wt]&&Ae[wt].length?(Ae[wt].forEach(function(ft){ft.e&&(ft.e=He(ft.e))}),at=!0):delete Ae[wt]);return at?Ae:null}(Q,le)))return null;var Se=function(Ae,He,at){var wt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return Q[Ae]?ee(He,Q[Ae],at):Y&&Y[Ae]?Y[Ae]:wt};return Y&&Y.a&&Q.o?function(Ae){var He=ee(Ae,Q.o,Et);return wn.recomposeSelf(He,Se("r",Ae,M,0)+He.a,Se("k",Ae,F),Se("s",Ae,F),Se("t",Ae,F)).toString()}:function(Ae){return wn.recomposeSelf(Se("o",Ae,dt,null),Se("r",Ae,M,0),Se("k",Ae,F),Se("s",Ae,F),Se("t",Ae,F)).toString()}},r:kn,"#size":Ke,"#radius":Ze,_:function(Q,Y){if(Array.isArray(Q))for(var ee=0;ee<Q.length;ee++)this[Q[ee]]=Y;else this[Q]=Y}},Ct=function(Q){(function(Ae,He){if(typeof He!="function"&&He!==null)throw new TypeError("Super expression must either be null or a function");Ae.prototype=Object.create(He&&He.prototype,{constructor:{value:Ae,writable:!0,configurable:!0}}),He&&l(Ae,He)})(Se,Q);var Y,ee,le=(Y=Se,ee=c(),function(){var Ae,He=s(Y);if(ee){var at=s(this).constructor;Ae=Reflect.construct(He,arguments,at)}else Ae=He.apply(this,arguments);return d(this,Ae)});function Se(){return r(this,Se),le.apply(this,arguments)}return a(Se,null,[{key:"build",value:function(Ae){var He=f(s(Se),"build",this).call(this,Ae,et);if(!He)return null;He.el,He.options,function(at,wt,ft){at.play()}(He.player)}}]),Se}(Le);return Ct.init(),Ct}),function(e,t,n,r,i,a){r[n]=r[n]||{},r[n][e]=r[n][e]||[],r[n][e].push(t)}("5c7f360c",{root:"e8XFCI5qgUD1",version:"2022-05-04",animations:[{elements:{e8XFCI5qgUD3:{opacity:[{t:1100,v:1},{t:1600,v:0},{t:2100,v:1},{t:2600,v:0},{t:3e3,v:1}]},e8XFCI5qgUD4:{opacity:[{t:300,v:1},{t:1e3,v:0},{t:1670,v:1},{t:2340,v:0},{t:2990,v:1}]},e8XFCI5qgUD5:{opacity:[{t:0,v:1},{t:600,v:0},{t:1200,v:1},{t:1800,v:0},{t:2400,v:1},{t:3e3,v:0}]},e8XFCI5qgUD6:{transform:{data:{r:2.006136,t:{x:-154.263458,y:-286.819}},keys:{o:[{t:0,v:{x:154.263459,y:286.819001,type:"corner"}},{t:1500,v:{x:149.263459,y:286.819001,type:"corner"}},{t:3e3,v:{x:154.26,y:286.819001,type:"corner"}}]}}},e8XFCI5qgUD13:{transform:{data:{o:{x:150.601929,y:225.5755,type:"corner"},t:{x:-150.601929,y:-225.5755}},keys:{r:[{t:0,v:0},{t:1500,v:4},{t:3e3,v:0}]}}},e8XFCI5qgUD14:{transform:{data:{o:{x:153.441666,y:105.769451,type:"corner"},t:{x:-153.441665,y:-105.769451}},keys:{r:[{t:0,v:0},{t:1500,v:-4},{t:3e3,v:0}]}}},e8XFCI5qgUD15:{transform:{data:{t:{x:-121.252159,y:-80.474948}},keys:{o:[{t:0,v:{x:122.25,y:82.474949,type:"corner"}},{t:1500,v:{x:111.64412,y:91.820272,type:"corner"}},{t:3e3,v:{x:122.25,y:82.47,type:"corner"}}],r:[{t:0,v:0},{t:1500,v:-29.735985},{t:3e3,v:0}]}}},e8XFCI5qgUD20:{transform:{data:{t:{x:-181.729629,y:-114.544025}},keys:{o:[{t:0,v:{x:181.72963,y:114.544026,type:"corner"}},{t:1500,v:{x:187.296478,y:120.947946,type:"corner"}},{t:3e3,v:{x:181.72963,y:114.544026,type:"corner"}}],r:[{t:0,v:0},{t:1500,v:9.67992},{t:3e3,v:0}]}}},e8XFCI5qgUD31:{transform:{data:{t:{x:-178.379693,y:-19.70626}},keys:{o:[{t:0,v:{x:178.375329,y:19.704861,type:"cusp",end:{x:178.375329,y:19.704861}}},{t:500,v:{x:203.584373,y:33.711399,type:"cusp",start:{x:197.441902,y:20.268009},end:{x:209.726844,y:47.154789}}},{t:1e3,v:{x:205.584373,y:56.711399,type:"cusp",start:{x:208.356012,y:50.020072},end:{x:202.812734,y:63.402727}}},{t:1500,v:{x:183.584373,y:73.711399,type:"cusp",start:{x:193.845597,y:72.659888},end:{x:173.323149,y:74.76291}}},{t:2e3,v:{x:152.2351,y:57.255443,type:"cusp",start:{x:155.525144,y:64.054866},end:{x:148.945056,y:50.45602}}},{t:2500,v:{x:152.2351,y:32.324225,type:"cusp",start:{x:145.275,y:45.630623},end:{x:159.1952,y:19.017827}}},{t:3e3,v:{x:178.375328,y:19.70626,type:"cusp",start:{x:178.375328,y:19.70626}}}]}}}},s:"MEDA1M2E5NTA5MmEzYTCBROGZhMjk3OWQ5YzUHwNjhSNjE1ZTVlNWU1IYTUwOTI5N2EwOTNVOPTFFYTI5NzlkOWM1MDDY4NWY1YTUwOTdhMlUU5M2EwOGZhMjk3RTlkQOWNhMTUwRjY4NWU1YWTUwOTQ5NzlhOWE1MDJY4NWY1YTUwOGY5YWEIyOTNhMDljSThmV2EyKOTM1MDY4OTQ4ZjlhYWTE5M0w1YTUwYTE5ZTBkzOTM5MjUwNjg1ZmFBi"}],options:"MFDAxMDg4MmY4MFg4MTEZlN2Y4MTJmNDcyZjcR5N2M2ZTcxMmY4YQ|"},"__SVGATOR_PLAYER__",window)},[]),E.jsx(Szn,{})),Czn="_noResults_120v4_13",wzn="_noResults_svg_120v4_23",xzn="_noResults_title_120v4_26",Tzn="_noResults_subtitle_120v4_30",Izn="_noResults_button_120v4_33",sl={noResults:Czn,noResults_svg:wzn,noResults_title:xzn,noResults_subtitle:Tzn,noResults_button:Izn},tme=({message:e,status:t,query:n,selectedPipeline:r,isExternal:i})=>{const a=ys(),{activatingPipeline:o,activatePipeline:s}=Vhe({isExternal:i,selectedPipelineName:r?.name}),[l,c]=b.useState(!1),u=ent(r?.idle_timeout_in_seconds||null),d=()=>{const _={title:gLn,image:E.jsx("div",{className:sl.noResults_svg,children:E.jsx(vzn,{})}),subtitle:null,footer:null};return!i&&!r?{..._,title:J8n,subtitle:E.jsx("span",{className:sl.noResults_subtitle,children:Pn(eLn,{newPipelineLink:E.jsx(ut,{type:"link",onClick:()=>a("/pipelines/templates"),className:sl.noResults_button,children:tLn},"NewPipelineLink"),viewDocumentationLink:E.jsx(ut,{type:"link",target:"_blank",href:zLn,className:sl.noResults_button,children:rLn},"viewDocumentationLink")})}),footer:null}:r?.status===qn.IDLE&&!o?{..._,image:E.jsx("div",{className:sl.noResults_svg,children:E.jsx(pzn,{})}),title:uLn,subtitle:E.jsx("span",{className:sl.noResults_subtitle,children:Pn(dLn,{idleTimeout:u})}),footer:E.jsx(ut,{type:"primary","data-testid":"searchNoResults_activatePipelineButton",onClick:()=>s(r.name),children:fLn},"activatePipelineButton")}:o||r?.status===qn.ACTIVATING?{..._,image:E.jsx("div",{className:sl.noResults_svg,children:E.jsx(xRe,{})}),title:pLn,subtitle:E.jsx("span",{className:sl.noResults_subtitle,"data-testid":"searchNoResults_activatingPipeline_textContent",children:Pn(hLn,{whyIsThisLink:i?"":E.jsx(ut,{type:"link",onClick:()=>c(!0),target:"_blank",className:sl.noResults_button,children:AAe},"whyIsThisLink")})}),footer:E.jsx(ut,{type:"primary",loading:!0,children:mLn},"activatingPipelineButton")}:_},f=()=>{const _={title:iLn,image:E.jsx("div",{className:sl.noResults_svg,children:E.jsx(tnt,{})}),subtitle:E.jsx("span",{className:sl.noResults_subtitle,children:aLn}),footer:null};return r?.status===qn.UNDEPLOYED||r?.status===qn.DEPLOYMENT_SCHEDULED||r?.status===qn.DEPLOYMENT_IN_PROGRESS||e?.status===Qs.UNDEPLOYED_PIPELINE_ERROR_STATUS?{title:oLn,image:E.jsx("div",{className:sl.noResults_svg,children:E.jsx(xRe,{})}),subtitle:E.jsx("span",{className:sl.noResults_subtitle,children:Pn(sLn,{whyIsThisLink:i?"":E.jsx(ut,{type:"link",onClick:()=>c(!0),target:"_blank",className:sl.noResults_button,children:AAe},"whyIsThisLink")})}),footer:null}:_},h=(_=>({[Me.SUCCESS]:{title:`${vLn} '${n}'`,image:E.jsx("div",{className:sl.noResults_svg,children:E.jsx(mzn,{})}),subtitle:E.jsx("span",{className:sl.noResults_subtitle,children:yLn}),footer:null},[Me.IN_PROGRESS]:{title:`${bLn} '${n}'`,image:E.jsx("div",{className:sl.noResults_svg,children:E.jsx(Ezn,{})}),subtitle:null,footer:null},[Me.IDLE]:d(),[Me.ERROR]:f()})[_])(t);if(!h)return null;const{title:m,image:g,subtitle:v,footer:y}=h;return E.jsxs(E.Fragment,{children:[E.jsx(wi,{title:lLn,open:l,centered:!0,onCancel:()=>c(!1),footer:E.jsx(ut,{onClick:()=>c(!1),type:"primary",children:YO}),children:Pn(cLn,{idleTimeout:u})}),E.jsxs("div",{className:sl.noResults,children:[g,E.jsxs("div",{className:sl.noResults_content,children:[E.jsx("h4",{className:sl.noResults_title,children:m}),v]}),y]})]})},Azn="_listSkeletonItem_1bl8i_13",Rzn="_list_1bl8i_13",Nzn="_list_wrapper_1bl8i_25",Ozn="_list_title_1bl8i_28",Lzn="_list_card_1bl8i_32",Pzn="_list_card_time_1bl8i_44",kzn="_list_card_query_1bl8i_50",Mzn="_list_cardActive_1bl8i_58",Xv={listSkeletonItem:Azn,list:Rzn,list_wrapper:Nzn,list_title:Ozn,list_card:Lzn,list_card_time:Pzn,list_card_query:kzn,list_cardActive:Mzn},Dzn=10,nnt=({total:e,hasMore:t,onNext:n,scrollableTarget:r,dataGroupedByDate:i,isLoading:a,isSelected:o,onItemSelect:s})=>{const l=Object.entries(i),c=()=>E.jsx("div",{className:Xv.listSkeletonItem,children:E.jsx(Ff,{title:!0,paragraph:!1,active:!0})},ps());return a?E.jsx("div",{className:Xv.list,children:Array.from({length:Dzn}).map(c)}):E.jsx("div",{className:Xv.list,children:E.jsxs(cU,{dataLength:e,next:n,hasMore:t,loader:c(),scrollableTarget:r,children:[!l.length&&E.jsx(Fo,{}),l.map(([u,d],f)=>E.jsxs("div",{className:Xv.list_wrapper,children:[E.jsx("div",{className:Xv.list_title,children:u}),E.jsx(xie,{dataSource:d,renderItem:p=>{const{id:h,createdAt:m,query:g}=p,v=o(p);return E.jsx(E.Fragment,{children:E.jsx(xie.Item,{children:E.jsxs("div",{className:`${Xv.list_card} ${v?Xv.list_cardActive:""}`,onClick:()=>s(p),onKeyDown:()=>s(p),role:"button",tabIndex:0,children:[E.jsxs("span",{className:Xv.list_card_time,children:[v?E.jsx(Abt,{}):E.jsx(Gce,{})," ",Cr(m).format("HH:mm")]}),E.jsx("span",{className:Xv.list_card_query,children:g})]})},h)})}}),f!==l.length-1&&E.jsx(zi,{})]},u))]})})},$zn="_container_1kpjl_13",Fzn="_header_1kpjl_20",Bzn="_content_1kpjl_33",yJ={container:$zn,header:Fzn,content:Bzn},TRe=20,rnt=({currentSessionId:e,pipelineId:t,pipelineName:n,onSessionChange:r,onClose:i})=>{const a=ir(),o=st(l9n),s=st(s9n),[l,c]=b.useState(1),u=(g={})=>{const v={limit:TRe,pageNumber:l,filter:vm("pipeline_id",t),...g};a(Let(v))};b.useEffect(()=>{u()},[n]);const d=g=>{const v={name:n,limit:TRe,filter:vm("search_session_id",g)};a(xDn(v))},f=()=>{const g=l+1;c(l+1),u({pageNumber:g,fetchMore:!0})},p=()=>s.search_sessions.filter(({search_history:g})=>Cr(g?.created_at).isValid()),h=()=>{const g=p().map(({search_session_id:y,search_history:_})=>({query:_?.query||"",id:y,createdAt:_?.created_at||""}));return Nn.groupBy(g,({createdAt:y})=>Cr(y).format("dddd D MMMM YYYY"))},m=g=>{r(g),d(g)};return E.jsxs("div",{className:yJ.container,children:[E.jsxs("div",{className:yJ.header,children:[E.jsx("h5",{children:DLn}),E.jsx(ut,{type:"text",size:"small",icon:E.jsx(Ic,{}),onClick:i})]}),E.jsx("div",{className:yJ.content,id:"historyContentListDiv",children:E.jsx(nnt,{isLoading:o===Me.IN_PROGRESS,total:s.total,hasMore:s.has_more,onNext:f,scrollableTarget:"historyContentListDiv",dataGroupedByDate:h(),isSelected:g=>g.id===e,onItemSelect:g=>m(g.id)})})]})},jzn="_rangeSlider_gvj7o_13",zzn="_rangeSlider_inputs_gvj7o_26",IRe={rangeSlider:jzn,rangeSlider_inputs:zzn},Uzn=1,int=({values:e,min:t,max:n,marks:r,step:i,onChange:a})=>{const{isMobileScreen:o,isTabletScreen:s}=kC(),l=o||s,[c,u]=b.useState({min:e?.[0]||t,max:e?.[1]||n});b.useEffect(()=>{u({min:e?.[0]||t,max:e?.[1]||n})},[t,n,e]);const d=(f,p)=>{const h=+f.currentTarget.value;if(h>n||h<t)return;const m=p==="min",g=m?"max":"min";if(m&&h>c[g]||!m&&h<c[g])return;const v={...c,[p]:h};u(v),a(Object.values(v))};return E.jsxs("div",{className:IRe.rangeSlider,children:[E.jsxs("div",{className:IRe.rangeSlider_inputs,children:[E.jsx($r,{size:l?"large":"middle",type:"number",value:c.min,onChange:f=>d(f,"min")}),E.jsx("span",{children:"to"}),E.jsx($r,{size:l?"large":"middle",type:"number",value:c.max,onChange:f=>d(f,"max")})]}),E.jsx(jHe,{range:!0,min:t,max:n,marks:r,tooltip:{open:!1},value:Object.values(c),step:i||Uzn,onChange:([f,p])=>{u({min:f,max:p}),a([f,p])}})]})},Hzn="_metaFilters_kivpe_45",Vzn="_metaFilters_collapseButton_kivpe_49",Gzn="_metaFilters_select_kivpe_52",qzn="_metaFilters_divider_kivpe_55",Wzn="_metaFilters_clear_kivpe_58",Yzn="_metaFilters_collapse_kivpe_49",Kzn="_emptyPipeline_kivpe_88",Xzn="_emptyPipeline_uploadFile_kivpe_98",Zv={"auth-content":"_auth-content_kivpe_25","content-wrapper":"_content-wrapper_kivpe_35","content-wrapper_padding":"_content-wrapper_padding_kivpe_40",metaFilters:Hzn,metaFilters_collapseButton:Vzn,metaFilters_select:Gzn,metaFilters_divider:qzn,metaFilters_clear:Wzn,metaFilters_collapse:Yzn,emptyPipeline:Kzn,emptyPipeline_uploadFile:Xzn},Zzn=5,{Option:bJ}=Zi,{Panel:Qzn}=wm,{RangePicker:Jzn}=I_,nme=({pipelineName:e,requestWithoutErrors:t,showAll:n,isExternal:r})=>{const i=ir(),a=ys(),{isMobileScreen:o,isTabletScreen:s}=kC(),l=o||s,c=st(MDn),u=st(DDn),d=st(qT),f=st($Dn),[p,h]=b.useState([]),[m,g]=b.useState({}),[v,y]=b.useState({}),_=f===Me.IN_PROGRESS;b.useEffect(()=>{e&&(i(pc({})),i(Fb({})))},[e]);const S=P=>{i(tMn({...P,isExternal:r}))},C=P=>{i(nMn({...P,isExternal:r}))},w=P=>{const{type:L}=c[P]||{};L==="keyword"&&S({pipelineName:e,fieldName:P,query:"",limit:10}),(L==="float"||L==="long"||L==="date")&&C({pipelineName:e,fieldName:P})};b.useEffect(()=>{if(e&&c){const P=Object.keys(c).filter(L=>{const{type:$}=c[L]||{};return $==="keyword"||$==="float"||$==="long"||$==="date"||$==="boolean"});h(P&&!n?P.slice(0,Zzn):n?P:[])}},[c]),so(()=>{p.length&&p.forEach(P=>{w(P)})},[p]),b.useEffect(()=>{Object.keys(c).forEach(P=>{const{type:L}=c[P]||{};if(L==="float"||L==="long"||L==="date"){const $={min:u[P]?.min,max:u[P]?.max};($.min||$.max)&&!d[P]&&(c[P].type==="date"?g({...m,[P]:{...$}}):y({...v,[P]:{...$}}))}})},[u]);const x=(P,L)=>{if(L==="date"){const $={min:u[P]?.min,max:u[P]?.max};g(D=>({...D,[P]:{...$}}))}else if(L==="float"||L==="long"){const $={min:u[P]?.min,max:u[P]?.max};y(D=>({...D,[P]:{...$}}))}};b.useEffect(()=>{Object.keys(d).length===0&&Object.keys(c).forEach(P=>{x(P,c[P].type)})},[d]);const T=P=>{const L=$=>{S({pipelineName:e,fieldName:P,query:$})};return Nn.debounce(L,1e3)},A=P=>L=>{if(!L||L.length===0){const{[P]:$,...D}=d;i(pc(D))}else i(pc({...d,[P]:L}))},I=(P,L,$)=>{P.stopPropagation(),x(L,$);const{[L]:D,...z}=d;i(pc(z))},R=()=>E.jsx(Ff.Input,{size:"small",block:!0,active:!0});return(()=>{const P=(k,F)=>(d[k]||d[k]===!1)&&p.includes(k)?E.jsx(ut,{type:"link",onClick:G=>I(G,k,F),className:Zv.metaFilters_clear,children:V8n}):null,L=k=>{h(typeof k=="string"?[k]:k)},$=k=>F=>{i(pc({...d,[k]:F}))},D=k=>F=>{const G={min:F[0],max:F[1]};i(pc({...d,[k]:G})),y({...v,[k]:{...G}})},z=k=>(G,q)=>{if(G){const W={min:q[0],max:q[1]};i(pc({...d,[k]:W})),g({...m,[k]:{...W}})}else{const{[k]:W,...K}=d;i(pc(K));const J={min:u[k]?.min,max:u[k]?.max};g({...m,[k]:{...J}})}},U=Pn(X8n,{uploadFile:E.jsx(ut,{type:"link",onClick:()=>a("/files"),className:Zv.emptyPipeline_uploadFile,children:nLn},"uploadFile")}),H=!Nn.isNil(t)&&t||!e?E.jsx("div",{className:Zv.emptyPipeline,children:E.jsx(Fo,{image:Fo.PRESENTED_IMAGE_SIMPLE,description:E.jsx("span",{children:e?K8n:U})})}):null,M=(k,F)=>{if(F==="keyword")return E.jsx(Zi,{mode:"multiple",size:l?"large":"middle",showSearch:!0,allowClear:!0,suffixIcon:null,optionFilterProp:"children",className:Zv.metaFilters_select,value:d[k],filterOption:!1,placeholder:Z8n,onSearch:T(k),onChange:A(k),notFoundContent:_?R():Q8n,"data-testid":"metadataFilters_keywordSelect",children:Array.isArray(u[k])?u[k]?.map(G=>E.jsx(bJ,{value:G,children:G},G)):null});if(F==="boolean")return E.jsxs(Zi,{size:l?"large":"middle",value:d[k],onChange:G=>$(k)(G),className:Zv.metaFilters_select,"data-testid":"metadataFilters_booleanSelect",defaultActiveFirstOption:!1,allowClear:!0,children:[E.jsx(bJ,{value:!0,children:"True"}),E.jsx(bJ,{value:!1,children:"False"})]});if(F==="float"||F==="long"){const G=SA(u[k]?.min),q=SA(u[k]?.max),W={[G]:{label:E.jsx("span",{children:G})},[q]:{label:E.jsx("span",{children:q})}};return E.jsx(int,{"data-testid":"metadataFilters_rangeSlider",min:G,max:q,marks:W,values:[v[k]?.min?+SA(v[k].min):0,v[k]?.max?+SA(v[k].max):0],onChange:D(k)})}return F==="date"?E.jsx(Jzn,{"data-testid":"metadataFilters_datePicker",size:l?"large":"middle",value:[Cr(m[k]?.min),Cr(m[k]?.max)],disabledDate:G=>G.isBefore(u[k]?.min)||G.isAfter(u[k]?.max),onChange:z(k)}):null},B=E.jsx(E.Fragment,{children:E.jsx(wm,{bordered:!1,activeKey:p,expandIconPosition:"end",expandIcon:({isActive:k})=>k?E.jsx(ut,{size:"small",icon:E.jsx(vDe,{}),type:"text",className:Zv.metaFilters_collapseButton}):E.jsx(ut,{size:"small",icon:E.jsx(pv,{}),type:"text",className:Zv.metaFilters_collapseButton}),onChange:L,className:Zv.metaFilters,children:Object.keys(c).map(k=>E.jsx(Qzn,{header:q1(k),extra:P(k,c[k].type),className:Zv.metaFilters_panel,"data-testid":"metadataFilters_item",children:M(k,c[k].type)},k.toString()))})});return E.jsx(E.Fragment,{children:Object.keys(c).length>0?B:H})})()},eUn="_debugMode_1w3dm_13",tUn="_modal_1w3dm_25",_J={debugMode:eUn,modal:tUn},nUn=se.lazy(()=>Io(()=>import("./CodeViewer.Bz0UUVF7.js"),__vite__mapDeps([2,3,4,5]))),rUn=()=>{const e=ir(),[t,n]=b.useState(!1),[r,i]=b.useState([]),a=st(SU),o=st(Det),s=st(h9n),l=d=>{e(i9n(d))},c=()=>{n(!0)},u=()=>{n(!1)};return b.useEffect(()=>{const d=a._debug||a.debug;i([d])},[a]),b.useEffect(()=>{const d=o.map(f=>f.debug||f._debug);i(d)},[o]),E.jsxs(E.Fragment,{children:[E.jsxs("div",{className:_J.debugMode,children:["Enable debug mode ",E.jsx($p,{value:s,size:"small",onChange:l})]}),!!s&&E.jsx("div",{className:_J.debugMode,children:E.jsx(ut,{size:"small",onClick:c,disabled:r.length<1,children:"View Logs"})}),E.jsx(wi,{className:_J.modal,title:"Debug Logs",open:t,onCancel:u,cancelText:"Done",centered:!0,footer:null,children:E.jsx(se.Suspense,{fallback:E.jsx($o,{}),children:E.jsx(nUn,{code:JSON.stringify(r,null,2),codeLanguage:hc.JSON})})})]})},iUn="_searchFilters_headerDivider_u4xmh_13",aUn="_searchFilters_divider_u4xmh_16",oUn="_searchFilters_u4xmh_13",sUn="_searchFilters_header_u4xmh_13",lUn="_searchFilters_header_title_u4xmh_39",cUn="_searchFilters_content_u4xmh_56",uUn="_searchFilters_footer_u4xmh_69",dUn="_searchFilters_footer_options_u4xmh_76",fUn="_searchFilters_cancelButton_u4xmh_87",pUn="_searchFilters_footer_divider_u4xmh_90",hUn="_searchFiltersDrawer_u4xmh_95",mUn="_searchFiltersDrawer_closeButton_u4xmh_104",Qv={searchFilters_headerDivider:iUn,searchFilters_divider:aUn,searchFilters:oUn,searchFilters_header:sUn,searchFilters_header_title:lUn,searchFilters_content:cUn,searchFilters_footer:uUn,searchFilters_footer_options:dUn,searchFilters_cancelButton:fUn,searchFilters_footer_divider:pUn,searchFiltersDrawer:hUn,searchFiltersDrawer_closeButton:mUn},gUn="_deepsetCloudVersionTag_12luo_1",vUn={deepsetCloudVersionTag:gUn},l0=e=>{const{deepsetCloudVersion:t}=e;return E.jsx(Si,{color:t===Rr.V1?"magenta":"purple",bordered:!1,className:vUn.deepsetCloudVersionTag,children:emn[t]})},{useToken:yUn}=Fd,XT=e=>{const{serviceLevel:t,tooltipPosition:n}=e,{token:r}=yUn(),i=()=>{switch(t){case Li.PRODUCTION:return wM.PRODUCTION;case Li.DEVELOPMENT:return wM.DEVELOPMENT;default:return wM.DRAFT}},a=()=>{switch(t){case Li.PRODUCTION:return r.colorSuccess;case Li.DEVELOPMENT:return r.colorPrimary;default:return r.colorTextDisabled}};return E.jsx(vr,{placement:n||"bottom",title:i(),children:E.jsx(EC,{color:a(),status:t===Li.PRODUCTION?"processing":"default"})})},bUn="_indexingTag_r4xhx_13",_Un="_indexingTag_spinner_r4xhx_17",SUn="_popContent_r4xhx_22",EUn="_popover_r4xhx_32",JP={indexingTag:bUn,indexingTag_spinner:_Un,popContent:SUn,popover:EUn},E2="pipeline_statusTag",DC=e=>{const{pipeline:t,indexingData:n,getIndexingDetails:r}=e,{name:i,indexing:a,status:o}=t,{pending_file_count:s,failed_file_count:l}=a;if(o===qn.DEPLOYMENT_FAILED)return E.jsx(Si,{"data-testid":E2,color:"error",children:Ope});if(o===qn.UNDEPLOYMENT_FAILED)return E.jsx(Si,{"data-testid":E2,color:"error",children:Lpe});if(o===qn.IDLE)return E.jsx(vr,{title:"Pipeline is on standby to save resources. Run a query to activate it.",children:E.jsx(Si,{"data-testid":E2,children:Su.IDLE})});if(o===qn.ACTIVATING)return E.jsx(Si,{"data-testid":E2,icon:E.jsx(F9,{spin:!0}),color:"processing",children:Upn});if(ts(t.status))return E.jsx(Si,{"data-testid":E2,icon:E.jsx(F9,{spin:!0}),color:"processing",children:o===qn.DEPLOYMENT_IN_PROGRESS||o===qn.DEPLOYMENT_SCHEDULED?sZe:lZe});if(o!==qn.DEPLOYED)return E.jsx(Si,{"data-testid":E2,children:Su.NOT_INDEXED});let c={message:Su.NOT_INDEXED,color:"default"};s>0&&(c={message:Su.IN_PROGRESS,color:"processing"}),s===0&&l>0&&(c={message:Su.PARTIALLY_INDEXED,color:"warning"}),s===0&&l===0&&(c={message:Su.INDEXED,color:"success"});const{failed_file_count:u,indexed_file_count:d,pending_file_count:f,indexed_no_documents_file_count:p,total_file_count:h}=n||{},m=()=>E.jsxs("ul",{className:JP.popContent,children:[E.jsxs("li",{children:[E.jsx("span",{children:Chn})," ",E.jsx("span",{children:f})]}),E.jsxs("li",{children:[E.jsx("span",{children:whn})," ",E.jsxs("span",{children:[d," "]})]}),E.jsxs("li",{children:[E.jsx("span",{children:Thn})," ",E.jsx("span",{children:p})]}),E.jsxs("li",{children:[E.jsx("span",{children:xhn})," ",E.jsx("span",{children:u})]}),E.jsxs("li",{children:[E.jsx("strong",{children:Ihn})," ",E.jsx("strong",{children:h})]})]});return E.jsx("span",{children:E.jsx(tv,{content:m,title:Kpn,rootClassName:JP.popover,children:E.jsxs(Si,{color:c.color,onMouseEnter:()=>r&&r(i),className:JP.indexingTag,"data-testid":E2,children:[s>0&&E.jsx(v0,{size:"small",className:JP.indexingTag_spinner,indicator:E.jsx(F9,{style:{fontSize:12},spin:!0})}),c.message]})})})},CUn="_pipelineSelect_bufkr_13",wUn="_pipelineSelect_title_bufkr_18",xUn="_pipelineOption_bufkr_22",TUn="_emptyPipeline_bufkr_28",ek={pipelineSelect:CUn,pipelineSelect_title:wUn,pipelineOption:xUn,emptyPipeline:TUn},{Option:ARe}=Zi,IUn=({selectedPipelineName:e,loading:t})=>{const n=ir(),{data:r}=st(p=>z_(p,qs.DEPLOYED)),i=st(c8),{isMobileScreen:a,isTabletScreen:o}=kC(),s=a||o,l=r.find(p=>p.name===e),c=p=>{n(eC(p))},u=p=>{n(LM(p))},d=r.map(({name:p,service_level:h,deepset_cloud_version:m})=>E.jsx(ARe,{value:p,"data-testid":`pipelineOption_${p}`,children:E.jsxs("div",{className:ek.pipelineOption,children:[E.jsx(XT,{serviceLevel:h}),E.jsx(Qhe,{children:p}),E.jsx(l0,{deepsetCloudVersion:m})]})},p)),f=E.jsx(ARe,{className:ek.emptyPipeline,children:E.jsx(Fo,{image:Fo.PRESENTED_IMAGE_SIMPLE,description:E.jsx("span",{children:Y8n})})});return E.jsxs(E.Fragment,{children:[E.jsxs("div",{className:ek.pipelineSelect,children:[E.jsx("h6",{className:ek.pipelineSelect_title,children:G8n}),l&&E.jsx(DC,{pipeline:l,getIndexingDetails:c,indexingData:i})]}),E.jsx(Zi,{size:s?"large":"middle",showSearch:!0,placeholder:q8n,onChange:u,value:e||"",disabled:t,notFoundContent:W8n,"data-testid":"pipelineSelector",popupMatchSelectWidth:!1,children:d.length>0?d:f})]})},ant=({pipelineName:e,displayMetaDataFilters:t,isExternal:n=!1,isEmptyResults:r,isLoading:i,onClickApplyFilters:a,onSearchFiltersClose:o,searchStatus:s})=>{const l=ir(),{isMobileScreen:c,isTabletScreen:u}=kC(),d=c||u,f=st(qT),p=st(OU),h=()=>{l(pc({})),l(Fb({}))},m=()=>{l(pc(p))},g=()=>{a&&a(),l(Fb(f)),o&&c&&o()},v=()=>E.jsx("header",{className:Qv.searchFilters_header,children:E.jsxs("div",{className:Qv.searchFilters_header_title,children:[E.jsx("h5",{children:z8n}),Object.keys(f).length>0&&E.jsx(ut,{size:"small",onClick:h,children:bet})]})}),y=()=>E.jsxs("div",{className:Qv.searchFilters_content,children:[!n&&E.jsx(IUn,{selectedPipelineName:e,loading:i}),t&&E.jsx(nme,{isExternal:n,pipelineName:e,requestWithoutErrors:s===Me.SUCCESS})]}),_=()=>r||Nn.isEqual(f,p)?null:E.jsxs("footer",{className:Qv.searchFilters_footer,children:[E.jsx(zi,{className:Qv.searchFilters_footer_divider}),E.jsxs("div",{className:Qv.searchFilters_footer_options,children:[E.jsx(ut,{onClick:m,className:Qv.searchFilters_cancelButton,size:d?"large":"middle",block:d,children:Eet}),E.jsx(ut,{type:"primary",onClick:g,size:d?"large":"middle",block:d,children:_et})]})]}),S=()=>E.jsx(xm,{rootClassName:Qv.searchFiltersDrawer,onClose:o,closable:!1,placement:"left",open:!0,title:v(),extra:E.jsx(ut,{className:Qv.searchFiltersDrawer_closeButton,icon:E.jsx(Ic,{}),onClick:o}),footer:_(),children:y()});return d?S():E.jsxs(E.Fragment,{children:[E.jsx(rUn,{}),v(),y(),_()]})},{Search:AUn}=$r,{useToken:RUn}=Fd,ont=({pipelineName:e,pipeline:t,isExternal:n,displayMetaDataFilters:r,displayQueryHistory:i=!0,displayResultsFileOptions:a=!0,displayResultsMoreOptions:o=!0,searchFiltersVisible:s=!0,onSearchFiltersClose:l,onToggleFiltersClick:c})=>{const u=ir(),{token:d}=RUn(),{isMobileScreen:f,isTabletScreen:p}=kC(),h=f||p,{activatePipeline:m,activatingPipeline:g}=Vhe({isExternal:n,selectedPipelineName:e}),{chatResults:v,chatQueryStatus:y,chat:_}=xU(),{getFeedbackTags:S,resetFeedbackTags:C}=Sv(),{data:w}=st(oe=>z_(oe,qs.DEPLOYED)),x=st(Bhe),T=st(Itt),A=st(qT),I=st(OU),R=b.useRef(null),N=b.useRef(null),[P,L]=b.useState(""),[$,D]=b.useState(!1),[z,U]=b.useState(null),[H,M]=b.useState([]),[B,k]=b.useState(!1),[F,G]=b.useState(!0);b.useEffect(()=>{u(vtt)},[]);const q=()=>H?.length?H:v,W=()=>y===Me.IN_PROGRESS||T===Me.IN_PROGRESS;itt(R,[q(),W()]),b.useEffect(()=>{e&&(u(TU({pipelineName:e,isExternal:n})),U(null)),C()},[e]),b.useEffect(()=>{t?.pipeline_id&&S({pipelineId:t.pipeline_id,isExternal:n})},[t?.pipeline_id]),so(()=>{y===Me.SUCCESS&&(L(""),N.current?.focus())},[y]),b.useEffect(()=>{if(z){const Ee=x.data.map(HZe).reverse();G(!1),M(Ee)}},[x]),b.useEffect(()=>{if(G(!0),H?.length){const oe=v[v.length-1],Ee=H[H.length-1];if(oe?.query_id===Ee?.query_id){const ce=H.slice(0,-1).concat(oe);M(ce);return}M([...H,oe])}},[v]);const K=()=>w.find(({name:oe})=>oe===e)??t??null,J=async oe=>{const Ee=await u(Oet({pipelineId:oe,isExternal:n}));return Ee?KE(Ee)?.search_session_id:""},te=async oe=>{if(!oe)return;let Ee=z;const{pipeline_id:ce,status:he,deepset_cloud_version:ye}=K()||{};if(he===qn.IDLE){m(e),N.current?.blur();return}if(!ce){u(jn({content:cMn,type:yn.Error}));return}Ee||(Ee=await J(ce),U(Ee)),_({pipelineName:e,query:oe,sessionId:Ee,filters:A,isExternal:n,isV2:ye===Rr.V2})},ae=()=>{D(!0)},re=()=>{D(!1)},ue=()=>E.jsxs("div",{className:ig.chatInputWrapper,children:[h&&E.jsx(EC,{dot:!Nn.isEmpty(A)||!Nn.isEmpty(I),children:E.jsx(ut,{icon:E.jsx(yj,{}),onClick:c})}),E.jsxs("div",{className:`${ig.chatInputContainer} ${B?ig.chatInputContainer_focused:""}`,style:B?{borderColor:d.colorPrimary,boxShadow:`0 0 4px 0 ${d.colorPrimaryBorderHover}`}:{},children:[i&&E.jsx(ut,{type:"link",size:"small",icon:E.jsx(Kce,{}),onClick:()=>$?re():ae()}),E.jsx(AUn,{ref:N,className:ig.chatInputContainer_input,placeholder:oMn,disabled:W()||g,onSearch:te,value:P,onChange:oe=>L(oe.target.value),autoFocus:!0,onFocus:()=>k(!0),onBlur:()=>k(!1),enterButton:E.jsx(ut,{type:"primary",icon:E.jsx(Xce,{}),disabled:!P||g,loading:W(),children:P&&!h?Spe:""})})]})]}),de=()=>{const oe=K();return oe?.status===qn.IDLE||oe?.status===qn.ACTIVATING?E.jsx(tme,{selectedPipeline:oe,status:y,query:P,isExternal:n}):E.jsxs("div",{className:ig.initialState,children:[E.jsx(iMn,{}),E.jsxs("div",{className:ig.initialState_content,children:[E.jsx("h4",{children:sMn}),E.jsx("div",{className:ig.initialState_content_description,children:lMn})]})]})},fe=()=>E.jsxs("div",{className:ig.chatResults,children:[!q().length&&!W()?de():E.jsx("div",{className:ig.chatResults_resultsWrapper,ref:R,children:E.jsx("div",{className:ig.zeroHeightContainer,children:E.jsx(Qtt,{isExternal:n,pipelineId:K()?.pipeline_id||"",pipelineName:e,results:q(),displayFileOptions:a,displayMoreOptions:o,status:y,query:P,displayTypingEffect:F})})}),ue()]}),{pipeline_id:ge}=K()||{};return E.jsx(E.Fragment,{children:E.jsx(Hhe,{sideMenu:s&&E.jsx(ant,{pipelineName:e,displayMetaDataFilters:r,isExternal:n,isEmptyResults:!q().length,isLoading:W(),searchStatus:y,onSearchFiltersClose:l}),body:fe(),righSideMenu:$&&E.jsx(rnt,{currentSessionId:z,pipelineId:ge,pipelineName:e,onSessionChange:U,onClose:re})})})},NUn="_container_7n1y6_35",OUn={"auth-content":"_auth-content_7n1y6_25","content-wrapper":"_content-wrapper_7n1y6_35",container:NUn,"content-wrapper_padding":"_content-wrapper_padding_7n1y6_40"},LUn=()=>{const e=ir(),{resetChatResults:t}=xU(),{pipelineName:n}=dv();return b.useEffect(()=>{t(),e(pc({})),e(Fb({}))},[]),E.jsx("div",{className:OUn.container,children:E.jsx(ont,{pipelineName:n,displayMetaDataFilters:!0})})},PUn="Workspace Statistics",kUn="Files",MUn="Number of files for indexing and creating documents.",DUn="Docs",$Un="Passages of text the search runs on. Multiple documents may come from one file.",FUn="Average Response Time",BUn="Searches Today",jUn="The number of searches last week",zUn="Latest Searches",UUn="Searches in total",HUn=5,VUn=[{title:"Query",dataIndex:"query",key:"query",width:"25%"},{title:"Top Answer",dataIndex:"topAnswer",key:"topAnswer",width:"25%"},{title:"Pipeline",dataIndex:"pipeline",key:"pipeline",width:"20%"},{title:"Top Files",dataIndex:"topFiles",key:"topFiles",width:"15%"},{title:"User",dataIndex:"user",key:"user",width:"10%"},{title:"Time",dataIndex:"time",key:"time",width:"5%"}],GUn="Usage Limits",qUn="Free Plan",RRe={files:{label:"Files",tooltip:"Number of files for indexing and creating documents.",limitLabel:"Free plan limit",target:100,targetLabel:"100 files"},pipelines:{label:"Pipelines",tooltip:"Number of pipelines you can create.",limitLabel:"Free plan limit",target:2,targetLabel:"2 pipelines"},pipelineHours:{label:"Pipeline Hours",tooltip:"Total hours your pipelines were deployed, including hours from deleted pipelines.",limitLabel:"Free plan limit",target:200,targetLabel:"200 hours"}},WUn=(e,t)=>e?e.reduce((r,{key:i})=>{const a=t[i];return a?{...r,[i]:a}:{...r,[i]:[]}},{}):{},snt=e=>e?e.reduce((t,{key:n})=>({...t,[n]:[]}),{}):{},YUn="_tableFilterValues_rpbky_13",KUn="_tableFilterValues_scrollWrapper_rpbky_19",XUn="_tableFilterValues_label_rpbky_27",ZUn="_tableFilterValues_clearAll_button_rpbky_32",QUn="_tableFilterValues_borderTop_rpbky_36",SJ={tableFilterValues:YUn,tableFilterValues_scrollWrapper:KUn,tableFilterValues_label:XUn,tableFilterValues_clearAll_button:ZUn,tableFilterValues_borderTop:QUn},DU=e=>{const{filterValues:t,onClearAllFilters:n,onFilterSelectChange:r}=e;if(!Object.values(t).flat()?.length)return null;const a=Object.keys(t),o=s=>({[li.RANGE]:({label:c,value:u})=>`${c}: ${u[0]} - ${u[1]}`,[li.TOGGLE]:({label:c})=>c,[li.MULTI_SELECT]:({label:c})=>c,[li.DATE]:({label:c})=>c,[li.SELECT]:({label:c,labelPrefix:u})=>`${u}: ${c}`})[s.type](s);return E.jsxs("div",{className:SJ.tableFilterValues,children:[E.jsx("div",{className:SJ.tableFilterValues_scrollWrapper,children:a.map(s=>t[s].map((l,c)=>E.jsx(Si,{closable:!0,onClose:()=>{const u=t[s],d=[...u.slice(0,c),...u.slice(c+1)];r(s,d)},children:o(l)},l.key)))}),E.jsx(ut,{type:"link",onClick:n,className:SJ.tableFilterValues_clearAll_button,children:Fgn})]})},JUn="_multiSelect_1sgkj_13",eHn="_multiSelect_optionSelected_1sgkj_33",tHn="_multiSelect_clearFilterOption_1sgkj_41",EJ={multiSelect:JUn,multiSelect_optionSelected:eHn,multiSelect_clearFilterOption:tHn},nHn=({title:e,filterKey:t,options:n,onChange:r,values:i,onClear:a,style:o})=>{const s=!!i[t]?.length,l=`${t}-clearFilter`,{Option:c}=Zi,[u,d]=b.useState(""),f=(p,h)=>{const m=h.map(({key:g,children:v,value:y})=>({key:g,label:v,value:y,type:li.MULTI_SELECT}));r(m)};return E.jsxs(Zi,{showSearch:!0,placeholder:e,optionFilterProp:"children",mode:"multiple",className:`${EJ.multiSelect} ${s&&EJ.multiSelect_optionSelected}`,style:o,dropdownStyle:{minWidth:"140px"},value:i[t],tagRender:()=>E.jsx(E.Fragment,{children:!u&&e}),onChange:f,onSelect:p=>p===l&&a(),onSearch:d,onBlur:()=>d(""),maxTagPlaceholder:E.jsx(E.Fragment,{}),maxTagCount:1,children:[s&&E.jsx(c,{className:EJ.multiSelect_clearFilterOption,value:l,children:kZe},l),n.map(p=>E.jsx(c,{value:p.key,children:p.label},p.key))]})},rHn="_rangeFilter_nz0jy_13",iHn="_rangeFilter_dropdown_nz0jy_21",aHn="_rangeFilter_dropdown_clear_button_nz0jy_30",CJ={rangeFilter:rHn,rangeFilter_dropdown:iHn,rangeFilter_dropdown_clear_button:aHn},oHn=400,sHn=({filterKey:e,title:t,filterValues:n,option:r,style:i,showClearButton:a=!1,onChange:o,rangeBoundaries:s,rangeStep:l})=>{const c=h=>{const{key:m,label:g}=r,[v,y]=h;o([{key:m,label:g,value:[v,y],type:li.RANGE}])},u=b.useMemo(()=>Nn.debounce(h=>c(h),oHn),[]),d=()=>{o([])},f={[s.min]:s.min,[s.max]:s.max},{value:p}=n[e]?.[0]||{};return E.jsx(Zi,{style:i,className:CJ.rangeFilter,placeholder:t,dropdownStyle:{minWidth:"260px",padding:0},dropdownRender:()=>E.jsxs("div",{className:CJ.rangeFilter_dropdown,children:[a&&E.jsx(ut,{className:CJ.rangeFilter_dropdown_clear_button,type:"link",onClick:d,children:kZe}),E.jsx(int,{marks:f,min:s.min,max:s.max,onChange:u,values:p,step:l})]})},e)},lHn="_select_1qkr0_13",cHn={select:lHn},uHn=({title:e,filterKey:t,options:n,onChange:r,values:i,style:a,listHeight:o,searchable:s=!0})=>{const{Option:l}=Zi,c=(u,d)=>{const{key:f,children:p,value:h}=d;r([{key:f,label:p,value:h,labelPrefix:e,type:li.SELECT}])};return E.jsx(Zi,{showSearch:s,placeholder:e,optionFilterProp:"children",className:cHn.select,style:a,dropdownStyle:{minWidth:"140px"},value:i[t],onChange:c,listHeight:o,children:n.map(u=>E.jsx(l,{value:Nn.isNil(u.value)?u.key:u.value,children:u.label},u.key))})},dHn="_toggleFilter_yikpa_13",fHn="_toggleFilter_dropdown_item_yikpa_21",wJ={toggleFilter:dHn,toggleFilter_dropdown_item:fHn},pHn=({filterKey:e,title:t,option:n,filterValues:r,style:i,onChange:a})=>{const{value:o}=r[e]?.[0]||{};return E.jsx(Zi,{style:i,className:wJ.toggleFilter,placeholder:t,dropdownStyle:{minWidth:"260px",padding:0},dropdownRender:()=>E.jsx("div",{className:wJ.toggleFilter_dropdown,children:E.jsxs("div",{className:wJ.toggleFilter_dropdown_item,children:[E.jsx("span",{children:n.label}),E.jsx($p,{checked:o,onChange:s=>a(s?[{key:n.key,label:n.label,value:!0,type:li.TOGGLE}]:[])})]})})},e)},hHn="_headerActions_181qm_13",mHn="_headerActions_leftSection_181qm_19",gHn="_headerActions_leftSection_filters_181qm_28",vHn="_headerActions_leftSection_filtersAction_181qm_32",yHn="_headerActions_rightSection_181qm_39",bHn="_sortSelect_label_181qm_50",_Hn="_sortSelect_select_181qm_54",SHn="_fileSearch_181qm_58",EHn="_verticalDivider_181qm_62",Jv={headerActions:hHn,headerActions_leftSection:mHn,headerActions_leftSection_filters:gHn,headerActions_leftSection_filtersAction:vHn,headerActions_rightSection:yHn,sortSelect_label:bHn,sortSelect_select:_Hn,fileSearch:SHn,verticalDivider:EHn},CHn=650,$U=e=>{const{columnOptions:t,filters:n,filterValues:r,loading:i,onSearch:a,onFilterSelectChange:o,onSortSelectChange:s,primaryAction:l,filtersAction:c,onClickShowMoreFilters:u,searchAvailable:d,searchPlaceholder:f,sorting:p}=e,{Search:h}=$r,{Option:m}=Zi,g=b.useMemo(()=>Nn.debounce(y=>a(y),CHn),[]),v=()=>n?.length?n.map(y=>y.type===li.TOGGLE?E.jsx(pHn,{filterKey:y.key,title:y.title,option:y.option,filterValues:r,style:y.style,onChange:_=>{o(y.key,_)}},y.key):y.type===li.RANGE?E.jsx(sHn,{filterKey:y.key,title:y.title,rangeBoundaries:y.rangeBoundaries,rangeStep:y.rangeStep,option:y.option,filterValues:r,showClearButton:!!r[y.key]?.length,style:y.style,onChange:_=>{o(y.key,_)}},y.key):y.type===li.SELECT?E.jsx(uHn,{searchable:y.search,filterKey:y.key,title:y.title,options:y.options,values:r,style:y.style,listHeight:y.listHeight,onChange:_=>{o(y.key,_)}},y.key):E.jsx(nHn,{filterKey:y.key,title:y.title,options:y.options,values:r,style:y.style,onChange:_=>{o(y.key,_)},onClear:()=>{o(y.key,[])}},y.key)):null;return E.jsxs("div",{className:Jv.headerActions,style:{justifyContent:d||t?"space-between":"flex-end"},children:[E.jsxs("div",{className:Jv.headerActions_leftSection,children:[d&&E.jsx(h,{className:Jv.fileSearch,placeholder:f,allowClear:!0,onSearch:y=>a(y),onChange:y=>g(y.currentTarget.value),onPressEnter:y=>g(y.currentTarget.value),disabled:i,"data-testid":"templateName_searchInput"}),n?.length?E.jsx("div",{className:Jv.headerActions_leftSection_filters,children:v()}):null,c&&E.jsx(vr,{title:c.tooltipMessage,children:E.jsx(EC,{dot:c.filtersApplied,children:E.jsx(ut,{type:c.secondary?"default":"primary",onClick:u,icon:c.icon,disabled:c.disabled,"data-testid":c.testid,className:Jv.headerActions_leftSection_filtersAction,children:c.label})})})]}),E.jsxs("div",{className:Jv.headerActions_rightSection,children:[p&&E.jsxs("div",{children:[E.jsx("span",{className:Jv.sortSelect_label,children:Dgn}),E.jsx(Zi,{placeholder:$gn,value:p.selectedValue&&p.selectedValue.length>0?p.selectedValue:void 0,placement:"bottomRight",popupMatchSelectWidth:!1,onChange:s,className:Jv.sortSelect_select,allowClear:p.allowClear,children:p.options.map(y=>E.jsx(m,{value:y.key,children:y.label},y.key))}),l&&E.jsx(zi,{type:"vertical",className:Jv.verticalDivider})]}),l&&E.jsx(ut,{type:l.secondary?"default":"primary",onClick:l.onClick,icon:l.icon?l.icon:E.jsx(Td,{}),disabled:l.disabled,"data-testid":l.testid,children:l.label})]})]})},wHn="_table_4fvx5_13",xHn="_withBorder_4fvx5_47",THn="_selectedActions_4fvx5_55",IHn="_horizontalDivider_4fvx5_59",AHn="_titleLabel_container_4fvx5_63",RHn="_titleLabel_text_4fvx5_71",NHn="_surMenu_4fvx5_77",OHn="_surMenu_wrapper_4fvx5_84",LHn="_totalItems_4fvx5_89",PHn="_totalItems_label_4fvx5_92",kHn="_totalItems_label_subtitle_4fvx5_96",MHn="_totalItems_label_total_4fvx5_99",DHn="_moreActions_4fvx5_103",$Hn="_moreActions_button_4fvx5_107",FHn="_disabledRow_4fvx5_113",BHn="_cursorPointer_4fvx5_121",jHn="_hideElement_4fvx5_125",zHn="_greenRow_4fvx5_129",UHn="_fadeInRow_4fvx5_136",HHn="_trans_4fvx5_1",Cs={table:wHn,withBorder:xHn,selectedActions:THn,horizontalDivider:IHn,titleLabel_container:AHn,titleLabel_text:RHn,surMenu:NHn,surMenu_wrapper:OHn,totalItems:LHn,totalItems_label:PHn,totalItems_label_subtitle:kHn,totalItems_label_total:MHn,moreActions:DHn,moreActions_button:$Hn,disabledRow:FHn,cursorPointer:BHn,hideElement:jHn,greenRow:zHn,fadeInRow:UHn,trans:HHn},VHn=1e3,Of=e=>{const{data:t,columns:n,id:r="",total:i=0,loading:a=!1,refetch:o,border:s=!1,getData:l,primaryAction:c,filtersAction:u,appliedMetaFilterValues:d,cleanedMetaFilterValues:f,searchPlaceholder:p="Type to search",onRowClick:h,rowKey:m="id",rowSelection:g=null,rowDisabled:v,scroll:y,searchAvailable:_=!0,selectActions:S,locale:C={},columnsConfig:w={optionalColumns:[],defaultColumns:[]},pagination:x={pageSize:10,cursorPagination:!1},polling:T={enabled:!1,startPolling:()=>{},stopPolling:()=>{}},sorting:A,filters:I,selectedFiltersValues:R,userEventsTrackingHandlers:N,testId:P,titleLabel:L,titleAction:$,setTotalSelectedItems:D,rowAnimation:z,surSecondaryActions:U}=e,[H,M]=b.useState(1),[B,k]=b.useState(1),[F,G]=b.useState(x.pageSize),[q,W]=b.useState([]),[K,J]=b.useState(w.optionalColumns.map(tt=>tt.key).filter(tt=>!w.defaultColumns.includes(tt))),[te,ae]=b.useState(""),[re,ue]=b.useState(""),[de,fe]=b.useState(R||{}),[ge,oe]=b.useState(!1),[Ee,ce]=b.useState({}),[he,ye]=b.useState([]),[me,_e]=b.useState(!1),Te=a||me,xe=()=>d&&Object.keys(d).length?d:void 0,De=async(tt,dt,Et)=>{_e(!0);let St=Et;const zt=dt[dt.length-1],nn=xe();if(l&&tt>0){const kn=(await l(H,F,te,re,de,zt,nn)).payload.data;if(!kn||kn.length===0){_e(!1);return}St+=1,ce(fn=>({...fn,[St]:{...kn[kn.length-1]}})),De(tt-1,kn,St)}else _e(!1)},Pe=()=>{const tt=Ee[H-1],dt=xe();!a&&l&&l(H,F,te,re,de,tt,dt)};b.useEffect(()=>{D&&D(q.length)},[q]),b.useEffect(()=>{x?.currentPageNumber&&M(x.currentPageNumber)},[x?.currentPageNumber]),b.useEffect(()=>{x?.cursorPagination&&ce(tt=>({...tt,[H]:{...t[t.length-1]}}))},[t]),b.useEffect(()=>{if(!a&&l){const tt=H-B,dt=H===1||!x?.cursorPagination,Et=x?.cursorPagination&&H>1&&tt>0,St=tt<0&&x?.cursorPagination,zt=xe();let nn;if(dt){l(H,F,te,re,de,nn,zt);return}if(Et){Ee[H-1]?Pe():(ye(t),De(tt,t,B));return}St&&Pe()}},[H,te,re,de]),so(()=>{if(o&&l){const tt=xe();l(H,F,te,re,de,void 0,tt)}},[o]),so(()=>{const tt=xe();H===1&&l&&l(H,F,te,re,de,void 0,tt),M(1)},[r]),so(()=>{const tt=xe();let dt;ce({}),M(1),l&&l(H,F,te,re,de,dt,tt)},[F]),b.useEffect(()=>{const{enabled:tt,startPolling:dt,stopPolling:Et}=T;return tt&&dt(H,F,te,re,de),()=>{Et()}},[H,F,te,de,re]),b.useEffect(()=>{const tt=WUn(I,de);Nn.isEmpty(tt)||fe({...tt})},[I?.length,r]),b.useEffect(()=>{ue("")},[A]),b.useEffect(()=>{(d||f)&&M(1)},[d,f]),b.useEffect(()=>{i&&i>0&&t.length===0&&H>1&&M(H-1)},[t&&t.length,i]);const Le=tt=>{k(H),M(tt),W([]),N?.onPageChange&&N.onPageChange(tt)},ze=(tt,dt)=>{G(dt)},je={selectedRowKeys:q,onChange:tt=>{W(tt)}},Ye=tt=>{M(1),ae(tt),N?.onSearch&&N.onSearch(tt)},Ze=tt=>{M(1),ue(tt),N?.onSort&&N.onSort(tt)},Ke=(tt,dt)=>{if(M(1),fe(Et=>({...Et,[tt]:dt})),N?.onClearFilter&&!dt.length){N.onClearFilter(tt);return}N?.onFilter&&N.onFilter(tt)},qe=()=>{const tt=snt(I);fe({...tt}),N?.onClearAllFilters&&N.onClearAllFilters()},nt=()=>{u?.onClick({currentPage:1,pageSize:F,searchValue:"",sortValue:re,filterValues:de})},Qe=(tt,dt)=>v&&v(tt)?{className:Cs.disabledRow,onClick:Et=>{Et.stopPropagation()}}:{onClick:()=>h&&h(dt),className:h&&Cs.cursorPointer},it=tt=>{const dt=()=>{z?.afterNewRowAnimation&&z.afterNewRowAnimation()};return z&&t[tt]?.name===z?.newRowName?(setTimeout(()=>{dt()},VHn),Cs.fadeInRow):t[tt]?.service_level&&t[tt].service_level===Li.PRODUCTION?Cs.greenRow:""},yt=()=>{const tt=dt=>{$&&$.handleMenuClick&&$.handleMenuClick(dt.key)};return L?E.jsxs("div",{children:[E.jsxs("div",{className:Cs.titleLabel_container,children:[E.jsx("span",{className:Cs.titleLabel_text,children:L}),$&&!$.actionType&&E.jsx(ut,{type:$.secondary?"default":"primary",onClick:$.onClick,icon:$.icon?$.icon:E.jsx(Td,{}),disabled:$.disabled,"data-testid":$.testid,children:$.label}),$&&$.actionType===DZe.DROPDOWN&&E.jsx(Vo,{disabled:$.disabled,"data-testid":$.testid,menu:{items:$.dropdownMenu,onClick:tt},trigger:["click"],children:E.jsx(ut,{type:$.secondary?"default":"primary",children:E.jsxs(nv,{children:[$.label,E.jsx(pv,{})]})})})]}),E.jsx(zi,{className:Cs.horizontalDivider})]}):null},Wt=()=>i&&t.length>0?E.jsx("div",{className:Cs.totalItems,children:E.jsxs("div",{className:Cs.totalItems_label,children:[E.jsx("span",{className:Cs.totalItems_label_subtitle,children:Pn(zgn,{totalPerPage:t.length>0?t.length:""})}),E.jsx("span",{className:Cs.totalItems_label_total,children:Pn(Ugn,{totalItems:i||""})})]})}):null,Mt=()=>{const{optionalColumns:tt}=w;if(!tt?.length)return null;const dt=(nn,wn)=>{const{source:kn}=wn;kn!=="menu"&&oe(nn)},Et=nn=>{const{defaultColumns:wn,cacheLocation:kn}=w;if(!kn)return;let fn=Hpe(kn)||wn;fn.includes(nn)?fn=fn.filter(an=>an!==nn):fn.push(nn),N_n(kn,fn)},St=({key:nn})=>{if(Et(nn),K.includes(nn)){J(K.filter(wn=>wn!==nn));return}J([...K,nn])},zt=tt.map(nn=>({key:nn.key,label:E.jsx(FE,{checked:!K.includes(nn.key),children:E.jsx("span",{onClick:wn=>wn.stopPropagation(),children:nn.title})})}));return E.jsx(Vo,{menu:{items:zt,onClick:St},trigger:["click"],onOpenChange:dt,open:ge,children:E.jsx(vr,{placement:"left",title:Bgn,children:E.jsx(ut,{type:"text",icon:E.jsx(vj,{})})})})},tn=n.find(tt=>tt.key==="action"),Rt=[...n.filter(tt=>tt.key!=="action"),...tn?[{...tn,title:()=>Mt()}]:[]],Dt=()=>E.jsxs(E.Fragment,{children:[yt(),E.jsx($U,{columnOptions:Mt!=null,filters:I,filterValues:de,loading:a,onSearch:Ye,onFilterSelectChange:Ke,onSortSelectChange:Ze,primaryAction:c,filtersAction:u,onClickShowMoreFilters:nt,searchAvailable:_,searchPlaceholder:p,sorting:A}),i&&t.length>0?E.jsx(zi,{className:Cs.horizontalDivider}):null,E.jsxs("div",{className:Cs.surMenu,children:[E.jsxs("div",{className:Cs.surMenu_wrapper,children:[Wt(),E.jsx(DU,{filterValues:de,onClearAllFilters:qe,onFilterSelectChange:Ke})]}),E.jsx("div",{className:Cs.surMenu_wrapper,children:U&&U})]})]}),Pt=()=>E.jsx("div",{className:Cs.selectedActions,children:S.map(({isVisible:tt,onClick:dt,type:Et,danger:St,label:zt,popconfirm:nn})=>{if(!Nn.isNil(tt)&&!tt(q))return null;const wn=()=>{W([]),dt(q)},kn=({onClick:fn})=>E.jsx(ut,{size:"small",type:Et,danger:St,onClick:fn,children:zt});return nn?nn.title?E.jsx(fm,{title:nn.title,placement:"right",onConfirm:wn,okText:RZe,cancelText:nn.cancelText?nn.cancelText:AZe,children:E.jsx(kn,{})},zt):E.jsx(kn,{}):E.jsx(kn,{onClick:wn},zt)})}),Ot=(tt,dt)=>{if(!dt||!S?.length)return tt;const Et=tt.slice(1);return[{...tt[0],title:E.jsx(Pt,{})},...Et]},sn=(tt,dt,Et)=>{if(!i||!x?.cursorPagination)return Et;const St=i/F;return dt==="page"&&tt-St>=0&&H<St-tvn?document.querySelector(`[title="${tt}"]`)?.classList.add(`${Cs.hideElement}`):document.querySelector(`[title="${tt}"]`)?.classList.remove(`${Cs.hideElement}`),Et},Jt=q.length>0,Vt=_||c,pt=w.optionalColumns.length>0?Rt.filter(tt=>!K.includes(tt.key)):Rt;return E.jsx("section",{children:E.jsx(mv,{"data-testid":P,onRow:Qe,rowClassName:(tt,dt)=>dt>=0?it(dt):"",rowSelection:g===null?je:g,scroll:y,columns:Ot(pt,Jt),dataSource:me?he:t,rowKey:m,loading:Te&&t&&t.length>0,title:Vt?Dt:void 0,className:`${Cs.table} ${s?Cs.withBorder:""}`,locale:{emptyText:Te?E.jsx(Ff,{title:!1,paragraph:{rows:3,width:"100%"},active:!0}):C.emptyText},pagination:i?{current:H,total:i,position:["bottomLeft"],pageSize:F,onChange:Le,onShowSizeChange:ze,itemRender:sn,disabled:a}:!1})})},GHn="_blockTitle_1nf6n_13",qHn="_flexBlock_1nf6n_19",WHn="_statisticsContainer_1nf6n_25",YHn="_totalValue_1nf6n_31",KHn="_searchTermItem_1nf6n_38",XHn="_statisticItem_1nf6n_45",ZHn="_statisticValue_1nf6n_50",QHn="_statisticLabel_1nf6n_56",JHn="_chartContainer_1nf6n_61",eVn="_topFiles_1nf6n_66",Us={blockTitle:GHn,flexBlock:qHn,statisticsContainer:WHn,totalValue:YHn,searchTermItem:KHn,statisticItem:XHn,statisticValue:ZHn,statisticLabel:QHn,chartContainer:JHn,topFiles:eVn},tVn=1250,nVn=e=>{const{searchRequestCount:t,data:n,loading:r}=e,i=n.map(a=>{let o=a;return o.topAnswer||(o={...a,topAnswer:"-"}),{...o,topFiles:E.jsx(E.Fragment,{children:o.topFiles&&o.topFiles.map(s=>E.jsx(Si,{className:Us.topFiles,children:s},s))})}});return E.jsxs("section",{children:[E.jsx("div",{className:Us.blockTitle,children:E.jsxs("div",{className:Us.flexBlock,children:[E.jsx("div",{children:zUn}),E.jsxs("div",{className:Us.flexBlock,children:[E.jsx("div",{children:UUn}),E.jsx("div",{className:Us.totalValue,children:t})]})]})}),E.jsx(Of,{data:i,rowKey:"key",columns:VUn,loading:r,searchAvailable:!1,rowSelection:!1,scroll:{x:tVn},border:!0})]})},rVn=b.memo(nVn);/*!
 * @kurkle/color v0.3.2
 * https://github.com/kurkle/color#readme
 * (c) 2023 Jukka Kurkela
 * Released under the MIT License
 */function f8(e){return e+.5|0}const yb=(e,t,n)=>Math.max(Math.min(e,n),t);function RA(e){return yb(f8(e*2.55),0,255)}function Bb(e){return yb(f8(e*255),0,255)}function C1(e){return yb(f8(e/2.55)/100,0,1)}function NRe(e){return yb(f8(e*100),0,100)}const np={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Moe=[..."0123456789ABCDEF"],iVn=e=>Moe[e&15],aVn=e=>Moe[(e&240)>>4]+Moe[e&15],tk=e=>(e&240)>>4===(e&15),oVn=e=>tk(e.r)&&tk(e.g)&&tk(e.b)&&tk(e.a);function sVn(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&np[e[1]]*17,g:255&np[e[2]]*17,b:255&np[e[3]]*17,a:t===5?np[e[4]]*17:255}:(t===7||t===9)&&(n={r:np[e[1]]<<4|np[e[2]],g:np[e[3]]<<4|np[e[4]],b:np[e[5]]<<4|np[e[6]],a:t===9?np[e[7]]<<4|np[e[8]]:255})),n}const lVn=(e,t)=>e<255?t(e):"";function cVn(e){var t=oVn(e)?iVn:aVn;return e?"#"+t(e.r)+t(e.g)+t(e.b)+lVn(e.a,t):void 0}const uVn=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function lnt(e,t,n){const r=t*Math.min(n,1-n),i=(a,o=(a+e/30)%12)=>n-r*Math.max(Math.min(o-3,9-o,1),-1);return[i(0),i(8),i(4)]}function dVn(e,t,n){const r=(i,a=(i+e/60)%6)=>n-n*t*Math.max(Math.min(a,4-a,1),0);return[r(5),r(3),r(1)]}function fVn(e,t,n){const r=lnt(e,1,.5);let i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)r[i]*=1-t-n,r[i]+=t;return r}function pVn(e,t,n,r,i){return e===i?(t-n)/r+(t<n?6:0):t===i?(n-e)/r+2:(e-t)/r+4}function rme(e){const n=e.r/255,r=e.g/255,i=e.b/255,a=Math.max(n,r,i),o=Math.min(n,r,i),s=(a+o)/2;let l,c,u;return a!==o&&(u=a-o,c=s>.5?u/(2-a-o):u/(a+o),l=pVn(n,r,i,u,a),l=l*60+.5),[l|0,c||0,s]}function ime(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(Bb)}function ame(e,t,n){return ime(lnt,e,t,n)}function hVn(e,t,n){return ime(fVn,e,t,n)}function mVn(e,t,n){return ime(dVn,e,t,n)}function cnt(e){return(e%360+360)%360}function gVn(e){const t=uVn.exec(e);let n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?RA(+t[5]):Bb(+t[5]));const i=cnt(+t[2]),a=+t[3]/100,o=+t[4]/100;return t[1]==="hwb"?r=hVn(i,a,o):t[1]==="hsv"?r=mVn(i,a,o):r=ame(i,a,o),{r:r[0],g:r[1],b:r[2],a:n}}function vVn(e,t){var n=rme(e);n[0]=cnt(n[0]+t),n=ame(n),e.r=n[0],e.g=n[1],e.b=n[2]}function yVn(e){if(!e)return;const t=rme(e),n=t[0],r=NRe(t[1]),i=NRe(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${C1(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}const ORe={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},LRe={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function bVn(){const e={},t=Object.keys(LRe),n=Object.keys(ORe);let r,i,a,o,s;for(r=0;r<t.length;r++){for(o=s=t[r],i=0;i<n.length;i++)a=n[i],s=s.replace(a,ORe[a]);a=parseInt(LRe[o],16),e[s]=[a>>16&255,a>>8&255,a&255]}return e}let nk;function _Vn(e){nk||(nk=bVn(),nk.transparent=[0,0,0,0]);const t=nk[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const SVn=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function EVn(e){const t=SVn.exec(e);let n=255,r,i,a;if(t){if(t[7]!==r){const o=+t[7];n=t[8]?RA(o):yb(o*255,0,255)}return r=+t[1],i=+t[3],a=+t[5],r=255&(t[2]?RA(r):yb(r,0,255)),i=255&(t[4]?RA(i):yb(i,0,255)),a=255&(t[6]?RA(a):yb(a,0,255)),{r,g:i,b:a,a:n}}}function CVn(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${C1(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const xJ=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,kw=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function wVn(e,t,n){const r=kw(C1(e.r)),i=kw(C1(e.g)),a=kw(C1(e.b));return{r:Bb(xJ(r+n*(kw(C1(t.r))-r))),g:Bb(xJ(i+n*(kw(C1(t.g))-i))),b:Bb(xJ(a+n*(kw(C1(t.b))-a))),a:e.a+n*(t.a-e.a)}}function rk(e,t,n){if(e){let r=rme(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=ame(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function unt(e,t){return e&&Object.assign(t||{},e)}function PRe(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=Bb(e[3]))):(t=unt(e,{r:0,g:0,b:0,a:1}),t.a=Bb(t.a)),t}function xVn(e){return e.charAt(0)==="r"?EVn(e):gVn(e)}let dnt=class Doe{constructor(t){if(t instanceof Doe)return t;const n=typeof t;let r;n==="object"?r=PRe(t):n==="string"&&(r=sVn(t)||_Vn(t)||xVn(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=unt(this._rgb);return t&&(t.a=C1(t.a)),t}set rgb(t){this._rgb=PRe(t)}rgbString(){return this._valid?CVn(this._rgb):void 0}hexString(){return this._valid?cVn(this._rgb):void 0}hslString(){return this._valid?yVn(this._rgb):void 0}mix(t,n){if(t){const r=this.rgb,i=t.rgb;let a;const o=n===a?.5:n,s=2*o-1,l=r.a-i.a,c=((s*l===-1?s:(s+l)/(1+s*l))+1)/2;a=1-c,r.r=255&c*r.r+a*i.r+.5,r.g=255&c*r.g+a*i.g+.5,r.b=255&c*r.b+a*i.b+.5,r.a=o*r.a+(1-o)*i.a,this.rgb=r}return this}interpolate(t,n){return t&&(this._rgb=wVn(this._rgb,t._rgb,n)),this}clone(){return new Doe(this.rgb)}alpha(t){return this._rgb.a=Bb(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=f8(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return rk(this._rgb,2,t),this}darken(t){return rk(this._rgb,2,-t),this}saturate(t){return rk(this._rgb,1,t),this}desaturate(t){return rk(this._rgb,1,-t),this}rotate(t){return vVn(this._rgb,t),this}};/*!
 * Chart.js v4.4.3
 * https://www.chartjs.org
 * (c) 2024 Chart.js Contributors
 * Released under the MIT License
 */function e1(){}const TVn=(()=>{let e=0;return()=>e++})();function $i(e){return e===null||typeof e>"u"}function jo(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function Ui(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function Ns(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function ff(e,t){return Ns(e)?e:t}function pi(e,t){return typeof e>"u"?t:e}const IVn=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,fnt=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function io(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function Ba(e,t,n,r){let i,a,o;if(jo(e))for(a=e.length,i=0;i<a;i++)t.call(n,e[i],i);else if(Ui(e))for(o=Object.keys(e),a=o.length,i=0;i<a;i++)t.call(n,e[o[i]],o[i])}function LF(e,t){let n,r,i,a;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(i=e[n],a=t[n],i.datasetIndex!==a.datasetIndex||i.index!==a.index)return!1;return!0}function PF(e){if(jo(e))return e.map(PF);if(Ui(e)){const t=Object.create(null),n=Object.keys(e),r=n.length;let i=0;for(;i<r;++i)t[n[i]]=PF(e[n[i]]);return t}return e}function pnt(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function AVn(e,t,n,r){if(!pnt(e))return;const i=t[e],a=n[e];Ui(i)&&Ui(a)?ov(i,a,r):t[e]=PF(a)}function ov(e,t,n){const r=jo(t)?t:[t],i=r.length;if(!Ui(e))return e;n=n||{};const a=n.merger||AVn;let o;for(let s=0;s<i;++s){if(o=r[s],!Ui(o))continue;const l=Object.keys(o);for(let c=0,u=l.length;c<u;++c)a(l[c],e,o,n)}return e}function TR(e,t){return ov(e,t,{merger:RVn})}function RVn(e,t,n){if(!pnt(e))return;const r=t[e],i=n[e];Ui(r)&&Ui(i)?TR(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=PF(i))}const kRe={"":e=>e,x:e=>e.x,y:e=>e.y};function NVn(e){const t=e.split("."),n=[];let r="";for(const i of t)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function OVn(e){const t=NVn(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function c_(e,t){return(kRe[t]||(kRe[t]=OVn(t)))(e)}function ome(e){return e.charAt(0).toUpperCase()+e.slice(1)}const l6=e=>typeof e<"u",u_=e=>typeof e=="function",MRe=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function LVn(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const Ho=Math.PI,Uo=2*Ho,PVn=Uo+Ho,kF=Number.POSITIVE_INFINITY,kVn=Ho/180,Zs=Ho/2,C2=Ho/4,DRe=Ho*2/3,bb=Math.log10,Kg=Math.sign;function IR(e,t,n){return Math.abs(e-t)<n}function $Re(e){const t=Math.round(e);e=IR(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(bb(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function MVn(e){const t=[],n=Math.sqrt(e);let r;for(r=1;r<n;r++)e%r===0&&(t.push(r),t.push(e/r));return n===(n|0)&&t.push(n),t.sort((i,a)=>i-a).pop(),t}function P3(e){return!isNaN(parseFloat(e))&&isFinite(e)}function DVn(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function hnt(e,t,n){let r,i,a;for(r=0,i=e.length;r<i;r++)a=e[r][n],isNaN(a)||(t.min=Math.min(t.min,a),t.max=Math.max(t.max,a))}function Kh(e){return e*(Ho/180)}function sme(e){return e*(180/Ho)}function FRe(e){if(!Ns(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function mnt(e,t){const n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r);let a=Math.atan2(r,n);return a<-.5*Ho&&(a+=Uo),{angle:a,distance:i}}function $oe(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function $Vn(e,t){return(e-t+PVn)%Uo-Ho}function mf(e){return(e%Uo+Uo)%Uo}function c6(e,t,n,r){const i=mf(e),a=mf(t),o=mf(n),s=mf(a-i),l=mf(o-i),c=mf(i-a),u=mf(i-o);return i===a||i===o||r&&a===o||s>l&&c<u}function Kl(e,t,n){return Math.max(t,Math.min(n,e))}function FVn(e){return Kl(e,-32768,32767)}function O1(e,t,n,r=1e-6){return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function lme(e,t,n){n=n||(o=>e[o]<t);let r=e.length-1,i=0,a;for(;r-i>1;)a=i+r>>1,n(a)?i=a:r=a;return{lo:i,hi:r}}const L1=(e,t,n,r)=>lme(e,n,r?i=>{const a=e[i][t];return a<n||a===n&&e[i+1][t]===n}:i=>e[i][t]<n),BVn=(e,t,n)=>lme(e,n,r=>e[r][t]>=n);function jVn(e,t,n){let r=0,i=e.length;for(;r<i&&e[r]<t;)r++;for(;i>r&&e[i-1]>n;)i--;return r>0||i<e.length?e.slice(r,i):e}const gnt=["push","pop","shift","splice","unshift"];function zVn(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),gnt.forEach(n=>{const r="_onData"+ome(n),i=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...a){const o=i.apply(this,a);return e._chartjs.listeners.forEach(s=>{typeof s[r]=="function"&&s[r](...a)}),o}})})}function BRe(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,i=r.indexOf(t);i!==-1&&r.splice(i,1),!(r.length>0)&&(gnt.forEach(a=>{delete e[a]}),delete e._chartjs)}function vnt(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const ynt=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function bnt(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,ynt.call(window,()=>{r=!1,e.apply(t,n)}))}}function UVn(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const cme=e=>e==="start"?"left":e==="end"?"right":"center",Vc=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,HVn=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t;function _nt(e,t,n){const r=t.length;let i=0,a=r;if(e._sorted){const{iScale:o,_parsed:s}=e,l=o.axis,{min:c,max:u,minDefined:d,maxDefined:f}=o.getUserBounds();d&&(i=Kl(Math.min(L1(s,l,c).lo,n?r:L1(t,l,o.getPixelForValue(c)).lo),0,r-1)),f?a=Kl(Math.max(L1(s,o.axis,u,!0).hi+1,n?0:L1(t,l,o.getPixelForValue(u),!0).hi+1),i,r)-i:a=r-i}return{start:i,count:a}}function Snt(e){const{xScale:t,yScale:n,_scaleRanges:r}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;const a=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),a}const ik=e=>e===0||e===1,jRe=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*Uo/n)),zRe=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*Uo/n)+1,AR={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*Zs)+1,easeOutSine:e=>Math.sin(e*Zs),easeInOutSine:e=>-.5*(Math.cos(Ho*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>ik(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>ik(e)?e:jRe(e,.075,.3),easeOutElastic:e=>ik(e)?e:zRe(e,.075,.3),easeInOutElastic(e){return ik(e)?e:e<.5?.5*jRe(e*2,.1125,.45):.5+.5*zRe(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-AR.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?AR.easeInBounce(e*2)*.5:AR.easeOutBounce(e*2-1)*.5+.5};function ume(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function URe(e){return ume(e)?e:new dnt(e)}function TJ(e){return ume(e)?e:new dnt(e).saturate(.5).darken(.1).hexString()}const VVn=["x","y","borderWidth","radius","tension"],GVn=["color","borderColor","backgroundColor"];function qVn(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:GVn},numbers:{type:"number",properties:VVn}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function WVn(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const HRe=new Map;function YVn(e,t){t=t||{};const n=e+JSON.stringify(t);let r=HRe.get(n);return r||(r=new Intl.NumberFormat(e,t),HRe.set(n,r)),r}function p8(e,t,n){return YVn(t,n).format(e)}const Ent={values(e){return jo(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const r=this.chart.options.locale;let i,a=e;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(i="scientific"),a=KVn(e,n)}const o=bb(Math.abs(a)),s=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),l={notation:i,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),p8(e,r,l)},logarithmic(e,t,n){if(e===0)return"0";const r=n[t].significand||e/Math.pow(10,Math.floor(bb(e)));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?Ent.numeric.call(this,e,t,n):""}};function KVn(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var FU={formatters:Ent};function XVn(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:FU.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const tC=Object.create(null),Foe=Object.create(null);function RR(e,t){if(!t)return e;const n=t.split(".");for(let r=0,i=n.length;r<i;++r){const a=n[r];e=e[a]||(e[a]=Object.create(null))}return e}function IJ(e,t,n){return typeof t=="string"?ov(RR(e,t),n):ov(RR(e,""),t)}class ZVn{constructor(t,n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=r=>r.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,i)=>TJ(i.backgroundColor),this.hoverBorderColor=(r,i)=>TJ(i.borderColor),this.hoverColor=(r,i)=>TJ(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return IJ(this,t,n)}get(t){return RR(this,t)}describe(t,n){return IJ(Foe,t,n)}override(t,n){return IJ(tC,t,n)}route(t,n,r,i){const a=RR(this,t),o=RR(this,r),s="_"+n;Object.defineProperties(a,{[s]:{value:a[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[s],c=o[i];return Ui(l)?Object.assign({},c,l):pi(l,c)},set(l){this[s]=l}}})}apply(t){t.forEach(n=>n(this))}}var hs=new ZVn({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[qVn,WVn,XVn]);function QVn(e){return!e||$i(e.size)||$i(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function MF(e,t,n,r,i){let a=t[i];return a||(a=t[i]=e.measureText(i).width,n.push(i)),a>r&&(r=a),r}function JVn(e,t,n,r){r=r||{};let i=r.data=r.data||{},a=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(i=r.data={},a=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let o=0;const s=n.length;let l,c,u,d,f;for(l=0;l<s;l++)if(d=n[l],d!=null&&!jo(d))o=MF(e,i,a,o,d);else if(jo(d))for(c=0,u=d.length;c<u;c++)f=d[c],f!=null&&!jo(f)&&(o=MF(e,i,a,o,f));e.restore();const p=a.length/2;if(p>n.length){for(l=0;l<p;l++)delete i[a[l]];a.splice(0,p)}return o}function w2(e,t,n){const r=e.currentDevicePixelRatio,i=n!==0?Math.max(n/2,.5):0;return Math.round((t-i)*r)/r+i}function VRe(e,t){!t&&!e||(t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function Boe(e,t,n,r){Cnt(e,t,n,r,null)}function Cnt(e,t,n,r,i){let a,o,s,l,c,u,d,f;const p=t.pointStyle,h=t.rotation,m=t.radius;let g=(h||0)*kVn;if(p&&typeof p=="object"&&(a=p.toString(),a==="[object HTMLImageElement]"||a==="[object HTMLCanvasElement]")){e.save(),e.translate(n,r),e.rotate(g),e.drawImage(p,-p.width/2,-p.height/2,p.width,p.height),e.restore();return}if(!(isNaN(m)||m<=0)){switch(e.beginPath(),p){default:i?e.ellipse(n,r,i/2,m,0,0,Uo):e.arc(n,r,m,0,Uo),e.closePath();break;case"triangle":u=i?i/2:m,e.moveTo(n+Math.sin(g)*u,r-Math.cos(g)*m),g+=DRe,e.lineTo(n+Math.sin(g)*u,r-Math.cos(g)*m),g+=DRe,e.lineTo(n+Math.sin(g)*u,r-Math.cos(g)*m),e.closePath();break;case"rectRounded":c=m*.516,l=m-c,o=Math.cos(g+C2)*l,d=Math.cos(g+C2)*(i?i/2-c:l),s=Math.sin(g+C2)*l,f=Math.sin(g+C2)*(i?i/2-c:l),e.arc(n-d,r-s,c,g-Ho,g-Zs),e.arc(n+f,r-o,c,g-Zs,g),e.arc(n+d,r+s,c,g,g+Zs),e.arc(n-f,r+o,c,g+Zs,g+Ho),e.closePath();break;case"rect":if(!h){l=Math.SQRT1_2*m,u=i?i/2:l,e.rect(n-u,r-l,2*u,2*l);break}g+=C2;case"rectRot":d=Math.cos(g)*(i?i/2:m),o=Math.cos(g)*m,s=Math.sin(g)*m,f=Math.sin(g)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+f,r-o),e.lineTo(n+d,r+s),e.lineTo(n-f,r+o),e.closePath();break;case"crossRot":g+=C2;case"cross":d=Math.cos(g)*(i?i/2:m),o=Math.cos(g)*m,s=Math.sin(g)*m,f=Math.sin(g)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+f,r-o),e.lineTo(n-f,r+o);break;case"star":d=Math.cos(g)*(i?i/2:m),o=Math.cos(g)*m,s=Math.sin(g)*m,f=Math.sin(g)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+f,r-o),e.lineTo(n-f,r+o),g+=C2,d=Math.cos(g)*(i?i/2:m),o=Math.cos(g)*m,s=Math.sin(g)*m,f=Math.sin(g)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+f,r-o),e.lineTo(n-f,r+o);break;case"line":o=i?i/2:Math.cos(g)*m,s=Math.sin(g)*m,e.moveTo(n-o,r-s),e.lineTo(n+o,r+s);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(g)*(i?i/2:m),r+Math.sin(g)*m);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function P1(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function BU(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function jU(e){e.restore()}function eGn(e,t,n,r,i){if(!t)return e.lineTo(n.x,n.y);if(i==="middle"){const a=(t.x+n.x)/2;e.lineTo(a,t.y),e.lineTo(a,n.y)}else i==="after"!=!!r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function tGn(e,t,n,r){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(r?t.cp1x:t.cp2x,r?t.cp1y:t.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function nGn(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),$i(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function rGn(e,t,n,r,i){if(i.strikethrough||i.underline){const a=e.measureText(r),o=t-a.actualBoundingBoxLeft,s=t+a.actualBoundingBoxRight,l=n-a.actualBoundingBoxAscent,c=n+a.actualBoundingBoxDescent,u=i.strikethrough?(l+c)/2:c;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(o,u),e.lineTo(s,u),e.stroke()}}function iGn(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function nC(e,t,n,r,i,a={}){const o=jo(t)?t:[t],s=a.strokeWidth>0&&a.strokeColor!=="";let l,c;for(e.save(),e.font=i.string,nGn(e,a),l=0;l<o.length;++l)c=o[l],a.backdrop&&iGn(e,a.backdrop),s&&(a.strokeColor&&(e.strokeStyle=a.strokeColor),$i(a.strokeWidth)||(e.lineWidth=a.strokeWidth),e.strokeText(c,n,r,a.maxWidth)),e.fillText(c,n,r,a.maxWidth),rGn(e,n,r,c,a),r+=Number(i.lineHeight);e.restore()}function u6(e,t){const{x:n,y:r,w:i,h:a,radius:o}=t;e.arc(n+o.topLeft,r+o.topLeft,o.topLeft,1.5*Ho,Ho,!0),e.lineTo(n,r+a-o.bottomLeft),e.arc(n+o.bottomLeft,r+a-o.bottomLeft,o.bottomLeft,Ho,Zs,!0),e.lineTo(n+i-o.bottomRight,r+a),e.arc(n+i-o.bottomRight,r+a-o.bottomRight,o.bottomRight,Zs,0,!0),e.lineTo(n+i,r+o.topRight),e.arc(n+i-o.topRight,r+o.topRight,o.topRight,0,-Zs,!0),e.lineTo(n+o.topLeft,r)}const aGn=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,oGn=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function sGn(e,t){const n=(""+e).match(aGn);if(!n||n[1]==="normal")return t*1.2;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100;break}return t*e}const lGn=e=>+e||0;function dme(e,t){const n={},r=Ui(t),i=r?Object.keys(t):t,a=Ui(e)?r?o=>pi(e[o],e[t[o]]):o=>e[o]:()=>e;for(const o of i)n[o]=lGn(a(o));return n}function wnt(e){return dme(e,{top:"y",right:"x",bottom:"y",left:"x"})}function mE(e){return dme(e,["topLeft","topRight","bottomLeft","bottomRight"])}function Tc(e){const t=wnt(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function ml(e,t){e=e||{},t=t||hs.font;let n=pi(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=pi(e.style,t.style);r&&!(""+r).match(oGn)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:pi(e.family,t.family),lineHeight:sGn(pi(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:pi(e.weight,t.weight),string:""};return i.string=QVn(i),i}function ko(e,t,n,r){let i,a,o;for(i=0,a=e.length;i<a;++i)if(o=e[i],o!==void 0&&(t!==void 0&&typeof o=="function"&&(o=o(t)),n!==void 0&&jo(o)&&(o=o[n%o.length]),o!==void 0))return o}function cGn(e,t,n){const{min:r,max:i}=e,a=fnt(t,(i-r)/2),o=(s,l)=>n&&s===0?0:s+l;return{min:o(r,-Math.abs(a)),max:o(i,a)}}function U_(e,t){return Object.assign(Object.create(e),t)}function fme(e,t=[""],n,r,i=()=>e[0]){const a=n||e;typeof r>"u"&&(r=Ant("_fallback",e));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:a,_fallback:r,_getTarget:i,override:s=>fme([s,...e],t,a,r)};return new Proxy(o,{deleteProperty(s,l){return delete s[l],delete s._keys,delete e[0][l],!0},get(s,l){return Tnt(s,l,()=>vGn(l,t,e,s))},getOwnPropertyDescriptor(s,l){return Reflect.getOwnPropertyDescriptor(s._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(s,l){return qRe(s).includes(l)},ownKeys(s){return qRe(s)},set(s,l,c){const u=s._storage||(s._storage=i());return s[l]=u[l]=c,delete s._keys,!0}})}function k3(e,t,n,r){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:xnt(e,r),setContext:a=>k3(e,a,n,r),override:a=>k3(e.override(a),t,n,r)};return new Proxy(i,{deleteProperty(a,o){return delete a[o],delete e[o],!0},get(a,o,s){return Tnt(a,o,()=>dGn(a,o,s))},getOwnPropertyDescriptor(a,o){return a._descriptors.allKeys?Reflect.has(e,o)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,o)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(a,o){return Reflect.has(e,o)},ownKeys(){return Reflect.ownKeys(e)},set(a,o,s){return e[o]=s,delete a[o],!0}})}function xnt(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:u_(n)?n:()=>n,isIndexable:u_(r)?r:()=>r}}const uGn=(e,t)=>e?e+ome(t):t,pme=(e,t)=>Ui(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function Tnt(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||t==="constructor")return e[t];const r=n();return e[t]=r,r}function dGn(e,t,n){const{_proxy:r,_context:i,_subProxy:a,_descriptors:o}=e;let s=r[t];return u_(s)&&o.isScriptable(t)&&(s=fGn(t,s,e,n)),jo(s)&&s.length&&(s=pGn(t,s,e,o.isIndexable)),pme(t,s)&&(s=k3(s,i,a&&a[t],o)),s}function fGn(e,t,n,r){const{_proxy:i,_context:a,_subProxy:o,_stack:s}=n;if(s.has(e))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);s.add(e);let l=t(a,o||r);return s.delete(e),pme(e,l)&&(l=hme(i._scopes,i,e,l)),l}function pGn(e,t,n,r){const{_proxy:i,_context:a,_subProxy:o,_descriptors:s}=n;if(typeof a.index<"u"&&r(e))return t[a.index%t.length];if(Ui(t[0])){const l=t,c=i._scopes.filter(u=>u!==l);t=[];for(const u of l){const d=hme(c,i,e,u);t.push(k3(d,a,o&&o[e],s))}}return t}function Int(e,t,n){return u_(e)?e(t,n):e}const hGn=(e,t)=>e===!0?t:typeof e=="string"?c_(t,e):void 0;function mGn(e,t,n,r,i){for(const a of t){const o=hGn(n,a);if(o){e.add(o);const s=Int(o._fallback,n,i);if(typeof s<"u"&&s!==n&&s!==r)return s}else if(o===!1&&typeof r<"u"&&n!==r)return null}return!1}function hme(e,t,n,r){const i=t._rootScopes,a=Int(t._fallback,n,r),o=[...e,...i],s=new Set;s.add(r);let l=GRe(s,o,n,a||n,r);return l===null||typeof a<"u"&&a!==n&&(l=GRe(s,o,a,l,r),l===null)?!1:fme(Array.from(s),[""],i,a,()=>gGn(t,n,r))}function GRe(e,t,n,r,i){for(;n;)n=mGn(e,t,n,r,i);return n}function gGn(e,t,n){const r=e._getTarget();t in r||(r[t]={});const i=r[t];return jo(i)&&Ui(n)?n:i||{}}function vGn(e,t,n,r){let i;for(const a of t)if(i=Ant(uGn(a,e),n),typeof i<"u")return pme(e,i)?hme(n,r,e,i):i}function Ant(e,t){for(const n of t){if(!n)continue;const r=n[e];if(typeof r<"u")return r}}function qRe(e){let t=e._keys;return t||(t=e._keys=yGn(e._scopes)),t}function yGn(e){const t=new Set;for(const n of e)for(const r of Object.keys(n).filter(i=>!i.startsWith("_")))t.add(r);return Array.from(t)}function Rnt(e,t,n,r){const{iScale:i}=e,{key:a="r"}=this._parsing,o=new Array(r);let s,l,c,u;for(s=0,l=r;s<l;++s)c=s+n,u=t[c],o[s]={r:i.parse(c_(u,a),c)};return o}const bGn=Number.EPSILON||1e-14,M3=(e,t)=>t<e.length&&!e[t].skip&&e[t],Nnt=e=>e==="x"?"y":"x";function _Gn(e,t,n,r){const i=e.skip?t:e,a=t,o=n.skip?t:n,s=$oe(a,i),l=$oe(o,a);let c=s/(s+l),u=l/(s+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const d=r*c,f=r*u;return{previous:{x:a.x-d*(o.x-i.x),y:a.y-d*(o.y-i.y)},next:{x:a.x+f*(o.x-i.x),y:a.y+f*(o.y-i.y)}}}function SGn(e,t,n){const r=e.length;let i,a,o,s,l,c=M3(e,0);for(let u=0;u<r-1;++u)if(l=c,c=M3(e,u+1),!(!l||!c)){if(IR(t[u],0,bGn)){n[u]=n[u+1]=0;continue}i=n[u]/t[u],a=n[u+1]/t[u],s=Math.pow(i,2)+Math.pow(a,2),!(s<=9)&&(o=3/Math.sqrt(s),n[u]=i*o*t[u],n[u+1]=a*o*t[u])}}function EGn(e,t,n="x"){const r=Nnt(n),i=e.length;let a,o,s,l=M3(e,0);for(let c=0;c<i;++c){if(o=s,s=l,l=M3(e,c+1),!s)continue;const u=s[n],d=s[r];o&&(a=(u-o[n])/3,s[`cp1${n}`]=u-a,s[`cp1${r}`]=d-a*t[c]),l&&(a=(l[n]-u)/3,s[`cp2${n}`]=u+a,s[`cp2${r}`]=d+a*t[c])}}function CGn(e,t="x"){const n=Nnt(t),r=e.length,i=Array(r).fill(0),a=Array(r);let o,s,l,c=M3(e,0);for(o=0;o<r;++o)if(s=l,l=c,c=M3(e,o+1),!!l){if(c){const u=c[t]-l[t];i[o]=u!==0?(c[n]-l[n])/u:0}a[o]=s?c?Kg(i[o-1])!==Kg(i[o])?0:(i[o-1]+i[o])/2:i[o-1]:i[o]}SGn(e,i,a),EGn(e,a,t)}function ak(e,t,n){return Math.max(Math.min(e,n),t)}function wGn(e,t){let n,r,i,a,o,s=P1(e[0],t);for(n=0,r=e.length;n<r;++n)o=a,a=s,s=n<r-1&&P1(e[n+1],t),a&&(i=e[n],o&&(i.cp1x=ak(i.cp1x,t.left,t.right),i.cp1y=ak(i.cp1y,t.top,t.bottom)),s&&(i.cp2x=ak(i.cp2x,t.left,t.right),i.cp2y=ak(i.cp2y,t.top,t.bottom)))}function xGn(e,t,n,r,i){let a,o,s,l;if(t.spanGaps&&(e=e.filter(c=>!c.skip)),t.cubicInterpolationMode==="monotone")CGn(e,i);else{let c=r?e[e.length-1]:e[0];for(a=0,o=e.length;a<o;++a)s=e[a],l=_Gn(c,s,e[Math.min(a+1,o-(r?0:1))%o],t.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,c=s}t.capBezierPoints&&wGn(e,n)}function mme(){return typeof window<"u"&&typeof document<"u"}function gme(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function DF(e,t,n){let r;return typeof e=="string"?(r=parseInt(e,10),e.indexOf("%")!==-1&&(r=r/100*t.parentNode[n])):r=e,r}const zU=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function TGn(e,t){return zU(e).getPropertyValue(t)}const IGn=["top","right","bottom","left"];function gE(e,t,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const a=IGn[i];r[a]=parseFloat(e[t+"-"+a+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const AGn=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function RGn(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:a}=r;let o=!1,s,l;if(AGn(i,a,e.target))s=i,l=a;else{const c=t.getBoundingClientRect();s=r.clientX-c.left,l=r.clientY-c.top,o=!0}return{x:s,y:l,box:o}}function gS(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,i=zU(n),a=i.boxSizing==="border-box",o=gE(i,"padding"),s=gE(i,"border","width"),{x:l,y:c,box:u}=RGn(e,n),d=o.left+(u&&s.left),f=o.top+(u&&s.top);let{width:p,height:h}=t;return a&&(p-=o.width+s.width,h-=o.height+s.height),{x:Math.round((l-d)/p*n.width/r),y:Math.round((c-f)/h*n.height/r)}}function NGn(e,t,n){let r,i;if(t===void 0||n===void 0){const a=e&&gme(e);if(!a)t=e.clientWidth,n=e.clientHeight;else{const o=a.getBoundingClientRect(),s=zU(a),l=gE(s,"border","width"),c=gE(s,"padding");t=o.width-c.width-l.width,n=o.height-c.height-l.height,r=DF(s.maxWidth,a,"clientWidth"),i=DF(s.maxHeight,a,"clientHeight")}}return{width:t,height:n,maxWidth:r||kF,maxHeight:i||kF}}const ok=e=>Math.round(e*10)/10;function OGn(e,t,n,r){const i=zU(e),a=gE(i,"margin"),o=DF(i.maxWidth,e,"clientWidth")||kF,s=DF(i.maxHeight,e,"clientHeight")||kF,l=NGn(e,t,n);let{width:c,height:u}=l;if(i.boxSizing==="content-box"){const f=gE(i,"border","width"),p=gE(i,"padding");c-=p.width+f.width,u-=p.height+f.height}return c=Math.max(0,c-a.width),u=Math.max(0,r?c/r:u-a.height),c=ok(Math.min(c,o,l.maxWidth)),u=ok(Math.min(u,s,l.maxHeight)),c&&!u&&(u=ok(c/2)),(t!==void 0||n!==void 0)&&r&&l.height&&u>l.height&&(u=l.height,c=ok(Math.floor(u*r))),{width:c,height:u}}function WRe(e,t,n){const r=t||1,i=Math.floor(e.height*r),a=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const o=e.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height=`${e.height}px`,o.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||o.height!==i||o.width!==a?(e.currentDevicePixelRatio=r,o.height=i,o.width=a,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}const LGn=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};mme()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e}();function YRe(e,t){const n=TGn(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function vS(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function PGn(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:r==="middle"?n<.5?e.y:t.y:r==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function kGn(e,t,n,r){const i={x:e.cp2x,y:e.cp2y},a={x:t.cp1x,y:t.cp1y},o=vS(e,i,n),s=vS(i,a,n),l=vS(a,t,n),c=vS(o,s,n),u=vS(s,l,n);return vS(c,u,n)}const MGn=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},DGn=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function z5(e,t,n){return e?MGn(t,n):DGn()}function Ont(e,t){let n,r;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function Lnt(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function Pnt(e){return e==="angle"?{between:c6,compare:$Vn,normalize:mf}:{between:O1,compare:(t,n)=>t-n,normalize:t=>t}}function KRe({start:e,end:t,count:n,loop:r,style:i}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n===0,style:i}}function $Gn(e,t,n){const{property:r,start:i,end:a}=n,{between:o,normalize:s}=Pnt(r),l=t.length;let{start:c,end:u,loop:d}=e,f,p;if(d){for(c+=l,u+=l,f=0,p=l;f<p&&o(s(t[c%l][r]),i,a);++f)c--,u--;c%=l,u%=l}return u<c&&(u+=l),{start:c,end:u,loop:d,style:e.style}}function knt(e,t,n){if(!n)return[e];const{property:r,start:i,end:a}=n,o=t.length,{compare:s,between:l,normalize:c}=Pnt(r),{start:u,end:d,loop:f,style:p}=$Gn(e,t,n),h=[];let m=!1,g=null,v,y,_;const S=()=>l(i,_,v)&&s(i,_)!==0,C=()=>s(a,v)===0||l(a,_,v),w=()=>m||S(),x=()=>!m||C();for(let T=u,A=u;T<=d;++T)y=t[T%o],!y.skip&&(v=c(y[r]),v!==_&&(m=l(v,i,a),g===null&&w()&&(g=s(v,i)===0?T:A),g!==null&&x()&&(h.push(KRe({start:g,end:T,loop:f,count:o,style:p})),g=null),A=T,_=v));return g!==null&&h.push(KRe({start:g,end:d,loop:f,count:o,style:p})),h}function Mnt(e,t){const n=[],r=e.segments;for(let i=0;i<r.length;i++){const a=knt(r[i],e.points,t);a.length&&n.push(...a)}return n}function FGn(e,t,n,r){let i=0,a=t-1;if(n&&!r)for(;i<t&&!e[i].skip;)i++;for(;i<t&&e[i].skip;)i++;for(i%=t,n&&(a+=i);a>i&&e[a%t].skip;)a--;return a%=t,{start:i,end:a}}function BGn(e,t,n,r){const i=e.length,a=[];let o=t,s=e[t],l;for(l=t+1;l<=n;++l){const c=e[l%i];c.skip||c.stop?s.skip||(r=!1,a.push({start:t%i,end:(l-1)%i,loop:r}),t=o=c.stop?l:null):(o=l,s.skip&&(t=l)),s=c}return o!==null&&a.push({start:t%i,end:o%i,loop:r}),a}function jGn(e,t){const n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];const a=!!e._loop,{start:o,end:s}=FGn(n,i,a,r);if(r===!0)return XRe(e,[{start:o,end:s,loop:a}],n,t);const l=s<o?s+i:s,c=!!e._fullLoop&&o===0&&s===i-1;return XRe(e,BGn(n,o,l,c),n,t)}function XRe(e,t,n,r){return!r||!r.setContext||!n?t:zGn(e,t,n,r)}function zGn(e,t,n,r){const i=e._chart.getContext(),a=ZRe(e.options),{_datasetIndex:o,options:{spanGaps:s}}=e,l=n.length,c=[];let u=a,d=t[0].start,f=d;function p(h,m,g,v){const y=s?-1:1;if(h!==m){for(h+=l;n[h%l].skip;)h-=y;for(;n[m%l].skip;)m+=y;h%l!==m%l&&(c.push({start:h%l,end:m%l,loop:g,style:v}),u=v,d=m%l)}}for(const h of t){d=s?d:h.start;let m=n[d%l],g;for(f=d+1;f<=h.end;f++){const v=n[f%l];g=ZRe(r.setContext(U_(i,{type:"segment",p0:m,p1:v,p0DataIndex:(f-1)%l,p1DataIndex:f%l,datasetIndex:o}))),UGn(g,u)&&p(d,f-1,h.loop,u),m=v,u=g}d<f-1&&p(d,f-1,h.loop,u)}return c}function ZRe(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function UGn(e,t){if(!t)return!1;const n=[],r=function(i,a){return ume(a)?(n.includes(a)||n.push(a),n.indexOf(a)):a};return JSON.stringify(e,r)!==JSON.stringify(t,r)}/*!
 * Chart.js v4.4.3
 * https://www.chartjs.org
 * (c) 2024 Chart.js Contributors
 * Released under the MIT License
 */let HGn=class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,r,i){const a=n.listeners[i],o=n.duration;a.forEach(s=>s({chart:t,initial:n.initial,numSteps:o,currentStep:Math.min(r-n.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=ynt.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((r,i)=>{if(!r.running||!r.items.length)return;const a=r.items;let o=a.length-1,s=!1,l;for(;o>=0;--o)l=a[o],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(t),s=!0):(a[o]=a[a.length-1],a.pop());s&&(i.draw(),this._notify(i,r,t,"progress")),a.length||(r.running=!1,this._notify(i,r,t,"complete"),r.initial=!1),n+=a.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let r=n.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,r)),r}listen(t,n,r){this._getAnims(t).listeners[n].push(r)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,i)=>Math.max(r,i._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const r=n.items;let i=r.length-1;for(;i>=0;--i)r[i].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}};var p1=new HGn;const QRe="transparent",VGn={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=URe(e||QRe),i=r.valid&&URe(t||QRe);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};let GGn=class{constructor(t,n,r,i){const a=n[r];i=ko([t.to,i,a,t.from]);const o=ko([t.from,a,i]);this._active=!0,this._fn=t.fn||VGn[t.type||typeof o],this._easing=AR[t.easing]||AR.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=o,this._to=i,this._promises=void 0}active(){return this._active}update(t,n,r){if(this._active){this._notify(!1);const i=this._target[this._prop],a=r-this._start,o=this._duration-a;this._start=r,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=a,this._loop=!!t.loop,this._to=ko([t.to,n,i,t.from]),this._from=ko([t.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,r=this._duration,i=this._prop,a=this._from,o=this._loop,s=this._to;let l;if(this._active=a!==s&&(o||n<r),!this._active){this._target[i]=s,this._notify(!0);return}if(n<0){this._target[i]=a;return}l=n/r%2,l=o&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(a,s,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,r)=>{t.push({res:n,rej:r})})}_notify(t){const n=t?"res":"rej",r=this._promises||[];for(let i=0;i<r.length;i++)r[i][n]()}};class Dnt{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!Ui(t))return;const n=Object.keys(hs.animation),r=this._properties;Object.getOwnPropertyNames(t).forEach(i=>{const a=t[i];if(!Ui(a))return;const o={};for(const s of n)o[s]=a[s];(jo(a.properties)&&a.properties||[i]).forEach(s=>{(s===i||!r.has(s))&&r.set(s,o)})})}_animateOptions(t,n){const r=n.options,i=WGn(t,r);if(!i)return[];const a=this._createAnimations(i,r);return r.$shared&&qGn(t.options.$animations,r).then(()=>{t.options=r},()=>{}),a}_createAnimations(t,n){const r=this._properties,i=[],a=t.$animations||(t.$animations={}),o=Object.keys(n),s=Date.now();let l;for(l=o.length-1;l>=0;--l){const c=o[l];if(c.charAt(0)==="$")continue;if(c==="options"){i.push(...this._animateOptions(t,n));continue}const u=n[c];let d=a[c];const f=r.get(c);if(d)if(f&&d.active()){d.update(f,u,s);continue}else d.cancel();if(!f||!f.duration){t[c]=u;continue}a[c]=d=new GGn(f,t,c,u),i.push(d)}return i}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const r=this._createAnimations(t,n);if(r.length)return p1.add(this._chart,r),!0}}function qGn(e,t){const n=[],r=Object.keys(t);for(let i=0;i<r.length;i++){const a=e[r[i]];a&&a.active()&&n.push(a.wait())}return Promise.all(n)}function WGn(e,t){if(!t)return;let n=e.options;if(!n){e.options=t;return}return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function JRe(e,t){const n=e&&e.options||{},r=n.reverse,i=n.min===void 0?t:0,a=n.max===void 0?t:0;return{start:r?a:i,end:r?i:a}}function YGn(e,t,n){if(n===!1)return!1;const r=JRe(e,n),i=JRe(t,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}function KGn(e){let t,n,r,i;return Ui(e)?(t=e.top,n=e.right,r=e.bottom,i=e.left):t=n=r=i=e,{top:t,right:n,bottom:r,left:i,disabled:e===!1}}function $nt(e,t){const n=[],r=e._getSortedDatasetMetas(t);let i,a;for(i=0,a=r.length;i<a;++i)n.push(r[i].index);return n}function eNe(e,t,n,r={}){const i=e.keys,a=r.mode==="single";let o,s,l,c;if(t!==null){for(o=0,s=i.length;o<s;++o){if(l=+i[o],l===n){if(r.all)continue;break}c=e.values[l],Ns(c)&&(a||t===0||Kg(t)===Kg(c))&&(t+=c)}return t}}function XGn(e,t){const{iScale:n,vScale:r}=t,i=n.axis==="x"?"x":"y",a=r.axis==="x"?"x":"y",o=Object.keys(e),s=new Array(o.length);let l,c,u;for(l=0,c=o.length;l<c;++l)u=o[l],s[l]={[i]:u,[a]:e[u]};return s}function tNe(e,t){const n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function ZGn(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function QGn(e){const{min:t,max:n,minDefined:r,maxDefined:i}=e.getUserBounds();return{min:r?t:Number.NEGATIVE_INFINITY,max:i?n:Number.POSITIVE_INFINITY}}function JGn(e,t,n){const r=e[t]||(e[t]={});return r[n]||(r[n]={})}function nNe(e,t,n,r){for(const i of t.getMatchingVisibleMetas(r).reverse()){const a=e[i.index];if(n&&a>0||!n&&a<0)return i.index}return null}function rNe(e,t){const{chart:n,_cachedMeta:r}=e,i=n._stacks||(n._stacks={}),{iScale:a,vScale:o,index:s}=r,l=a.axis,c=o.axis,u=ZGn(a,o,r),d=t.length;let f;for(let p=0;p<d;++p){const h=t[p],{[l]:m,[c]:g}=h,v=h._stacks||(h._stacks={});f=v[c]=JGn(i,u,m),f[s]=g,f._top=nNe(f,o,!0,r.type),f._bottom=nNe(f,o,!1,r.type);const y=f._visualValues||(f._visualValues={});y[s]=g}}function AJ(e,t){const n=e.scales;return Object.keys(n).filter(r=>n[r].axis===t).shift()}function eqn(e,t){return U_(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function tqn(e,t,n){return U_(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function bI(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t=t||e._parsed;for(const i of t){const a=i._stacks;if(!a||a[r]===void 0||a[r][n]===void 0)return;delete a[r][n],a[r]._visualValues!==void 0&&a[r]._visualValues[n]!==void 0&&delete a[r]._visualValues[n]}}}const RJ=e=>e==="reset"||e==="none",iNe=(e,t)=>t?e:Object.assign({},e),nqn=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:$nt(n,!0),values:null};class H_{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=tNe(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&bI(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),i=(d,f,p,h)=>d==="x"?f:d==="r"?h:p,a=n.xAxisID=pi(r.xAxisID,AJ(t,"x")),o=n.yAxisID=pi(r.yAxisID,AJ(t,"y")),s=n.rAxisID=pi(r.rAxisID,AJ(t,"r")),l=n.indexAxis,c=n.iAxisID=i(l,a,o,s),u=n.vAxisID=i(l,o,a,s);n.xScale=this.getScaleForId(a),n.yScale=this.getScaleForId(o),n.rScale=this.getScaleForId(s),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&BRe(this._data,this),t._stacked&&bI(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(Ui(n)){const i=this._cachedMeta;this._data=XGn(n,i)}else if(r!==n){if(r){BRe(r,this);const i=this._cachedMeta;bI(i),i._parsed=[]}n&&Object.isExtensible(n)&&zVn(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,r=this.getDataset();let i=!1;this._dataCheck();const a=n._stacked;n._stacked=tNe(n.vScale,n),n.stack!==r.stack&&(i=!0,bI(n),n.stack=r.stack),this._resyncElements(t),(i||a!==n._stacked)&&rNe(this,n._parsed)}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:r,_data:i}=this,{iScale:a,_stacked:o}=r,s=a.axis;let l=t===0&&n===i.length?!0:r._sorted,c=t>0&&r._parsed[t-1],u,d,f;if(this._parsing===!1)r._parsed=i,r._sorted=!0,f=i;else{jo(i[t])?f=this.parseArrayData(r,i,t,n):Ui(i[t])?f=this.parseObjectData(r,i,t,n):f=this.parsePrimitiveData(r,i,t,n);const p=()=>d[s]===null||c&&d[s]<c[s];for(u=0;u<n;++u)r._parsed[u+t]=d=f[u],l&&(p()&&(l=!1),c=d);r._sorted=l}o&&rNe(this,f)}parsePrimitiveData(t,n,r,i){const{iScale:a,vScale:o}=t,s=a.axis,l=o.axis,c=a.getLabels(),u=a===o,d=new Array(i);let f,p,h;for(f=0,p=i;f<p;++f)h=f+r,d[f]={[s]:u||a.parse(c[h],h),[l]:o.parse(n[h],h)};return d}parseArrayData(t,n,r,i){const{xScale:a,yScale:o}=t,s=new Array(i);let l,c,u,d;for(l=0,c=i;l<c;++l)u=l+r,d=n[u],s[l]={x:a.parse(d[0],u),y:o.parse(d[1],u)};return s}parseObjectData(t,n,r,i){const{xScale:a,yScale:o}=t,{xAxisKey:s="x",yAxisKey:l="y"}=this._parsing,c=new Array(i);let u,d,f,p;for(u=0,d=i;u<d;++u)f=u+r,p=n[f],c[u]={x:a.parse(c_(p,s),f),y:o.parse(c_(p,l),f)};return c}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,n,r){const i=this.chart,a=this._cachedMeta,o=n[t.axis],s={keys:$nt(i,!0),values:n._stacks[t.axis]._visualValues};return eNe(s,o,a.index,{mode:r})}updateRangeFromParsed(t,n,r,i){const a=r[n.axis];let o=a===null?NaN:a;const s=i&&r._stacks[n.axis];i&&s&&(i.values=s,o=eNe(i,a,this._cachedMeta.index)),t.min=Math.min(t.min,o),t.max=Math.max(t.max,o)}getMinMax(t,n){const r=this._cachedMeta,i=r._parsed,a=r._sorted&&t===r.iScale,o=i.length,s=this._getOtherScale(t),l=nqn(n,r,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:u,max:d}=QGn(s);let f,p;function h(){p=i[f];const m=p[s.axis];return!Ns(p[t.axis])||u>m||d<m}for(f=0;f<o&&!(!h()&&(this.updateRangeFromParsed(c,t,p,l),a));++f);if(a){for(f=o-1;f>=0;--f)if(!h()){this.updateRangeFromParsed(c,t,p,l);break}}return c}getAllParsedValues(t){const n=this._cachedMeta._parsed,r=[];let i,a,o;for(i=0,a=n.length;i<a;++i)o=n[i][t.axis],Ns(o)&&r.push(o);return r}getMaxOverflow(){return!1}getLabelAndValue(t){const n=this._cachedMeta,r=n.iScale,i=n.vScale,a=this.getParsed(t);return{label:r?""+r.getLabelForValue(a[r.axis]):"",value:i?""+i.getLabelForValue(a[i.axis]):""}}_update(t){const n=this._cachedMeta;this.update(t||"default"),n._clip=KGn(pi(this.options.clip,YGn(n.xScale,n.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,n=this.chart,r=this._cachedMeta,i=r.data||[],a=n.chartArea,o=[],s=this._drawStart||0,l=this._drawCount||i.length-s,c=this.options.drawActiveElementsOnTop;let u;for(r.dataset&&r.dataset.draw(t,a,s,l),u=s;u<s+l;++u){const d=i[u];d.hidden||(d.active&&c?o.push(d):d.draw(t,a))}for(u=0;u<o.length;++u)o[u].draw(t,a)}getStyle(t,n){const r=n?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(t||0,r)}getContext(t,n,r){const i=this.getDataset();let a;if(t>=0&&t<this._cachedMeta.data.length){const o=this._cachedMeta.data[t];a=o.$context||(o.$context=tqn(this.getContext(),t,o)),a.parsed=this.getParsed(t),a.raw=i.data[t],a.index=a.dataIndex=t}else a=this.$context||(this.$context=eqn(this.chart.getContext(),this.index)),a.dataset=i,a.index=a.datasetIndex=this.index;return a.active=!!n,a.mode=r,a}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,n){return this._resolveElementOptions(this.dataElementType.id,n,t)}_resolveElementOptions(t,n="default",r){const i=n==="active",a=this._cachedDataOpts,o=t+"-"+n,s=a[o],l=this.enableOptionSharing&&l6(r);if(s)return iNe(s,l);const c=this.chart.config,u=c.datasetElementScopeKeys(this._type,t),d=i?[`${t}Hover`,"hover",t,""]:[t,""],f=c.getOptionScopes(this.getDataset(),u),p=Object.keys(hs.elements[t]),h=()=>this.getContext(r,i,n),m=c.resolveNamedOptions(f,p,h,d);return m.$shared&&(m.$shared=l,a[o]=Object.freeze(iNe(m,l))),m}_resolveAnimations(t,n,r){const i=this.chart,a=this._cachedDataOpts,o=`animation-${n}`,s=a[o];if(s)return s;let l;if(i.options.animation!==!1){const u=this.chart.config,d=u.datasetAnimationScopeKeys(this._type,n),f=u.getOptionScopes(this.getDataset(),d);l=u.createResolver(f,this.getContext(t,r,n))}const c=new Dnt(i,l&&l.animations);return l&&l._cacheable&&(a[o]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||RJ(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),i=this._sharedOptions,a=this.getSharedOptions(r),o=this.includeOptions(n,a)||a!==i;return this.updateSharedOptions(a,n,r),{sharedOptions:a,includeOptions:o}}updateElement(t,n,r,i){RJ(i)?Object.assign(t,r):this._resolveAnimations(n,i).update(t,r)}updateSharedOptions(t,n,r){t&&!RJ(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,i){t.active=i;const a=this.getStyle(n,i);this._resolveAnimations(n,r,i).update(t,{options:!i&&this.getSharedOptions(a)||a})}removeHoverStyle(t,n,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,n,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,r=this._cachedMeta.data;for(const[s,l,c]of this._syncList)this[s](l,c);this._syncList=[];const i=r.length,a=n.length,o=Math.min(a,i);o&&this.parse(0,o),a>i?this._insertElements(i,a-i,t):a<i&&this._removeElements(a,i-a)}_insertElements(t,n,r=!0){const i=this._cachedMeta,a=i.data,o=t+n;let s;const l=c=>{for(c.length+=n,s=c.length-1;s>=o;s--)c[s]=c[s-n]};for(l(a),s=t;s<o;++s)a[s]=new this.dataElementType;this._parsing&&l(i._parsed),this.parse(t,n),r&&this.updateElements(a,t,n,"reset")}updateElements(t,n,r,i){}_removeElements(t,n){const r=this._cachedMeta;if(this._parsing){const i=r._parsed.splice(t,n);r._stacked&&bI(r,i)}r.data.splice(t,n)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[n,r,i]=t;this[n](r,i)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,n){n&&this._sync(["_removeElements",t,n]);const r=arguments.length-2;r&&this._sync(["_insertElements",t,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function rqn(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let r=[];for(let i=0,a=n.length;i<a;i++)r=r.concat(n[i].controller.getAllParsedValues(e));e._cache.$bar=vnt(r.sort((i,a)=>i-a))}return e._cache.$bar}function iqn(e){const t=e.iScale,n=rqn(t,e.type);let r=t._length,i,a,o,s;const l=()=>{o===32767||o===-32768||(l6(s)&&(r=Math.min(r,Math.abs(o-s)||r)),s=o)};for(i=0,a=n.length;i<a;++i)o=t.getPixelForValue(n[i]),l();for(s=void 0,i=0,a=t.ticks.length;i<a;++i)o=t.getPixelForTick(i),l();return r}function aqn(e,t,n,r){const i=n.barThickness;let a,o;return $i(i)?(a=t.min*n.categoryPercentage,o=n.barPercentage):(a=i*r,o=1),{chunk:a/r,ratio:o,start:t.pixels[e]-a/2}}function oqn(e,t,n,r){const i=t.pixels,a=i[e];let o=e>0?i[e-1]:null,s=e<i.length-1?i[e+1]:null;const l=n.categoryPercentage;o===null&&(o=a-(s===null?t.end-t.start:s-a)),s===null&&(s=a+a-o);const c=a-(a-Math.min(o,s))/2*l;return{chunk:Math.abs(s-o)/2*l/r,ratio:n.barPercentage,start:c}}function sqn(e,t,n,r){const i=n.parse(e[0],r),a=n.parse(e[1],r),o=Math.min(i,a),s=Math.max(i,a);let l=o,c=s;Math.abs(o)>Math.abs(s)&&(l=s,c=o),t[n.axis]=c,t._custom={barStart:l,barEnd:c,start:i,end:a,min:o,max:s}}function Fnt(e,t,n,r){return jo(e)?sqn(e,t,n,r):t[n.axis]=n.parse(e,r),t}function aNe(e,t,n,r){const i=e.iScale,a=e.vScale,o=i.getLabels(),s=i===a,l=[];let c,u,d,f;for(c=n,u=n+r;c<u;++c)f=t[c],d={},d[i.axis]=s||i.parse(o[c],c),l.push(Fnt(f,d,a,c));return l}function NJ(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function lqn(e,t,n){return e!==0?Kg(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}function cqn(e){let t,n,r,i,a;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.base<e.y,n="bottom",r="top"),t?(i="end",a="start"):(i="start",a="end"),{start:n,end:r,reverse:t,top:i,bottom:a}}function uqn(e,t,n,r){let i=t.borderSkipped;const a={};if(!i){e.borderSkipped=a;return}if(i===!0){e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:o,end:s,reverse:l,top:c,bottom:u}=cqn(e);i==="middle"&&n&&(e.enableBorderRadius=!0,(n._top||0)===r?i=c:(n._bottom||0)===r?i=u:(a[oNe(u,o,s,l)]=!0,i=c)),a[oNe(i,o,s,l)]=!0,e.borderSkipped=a}function oNe(e,t,n,r){return r?(e=dqn(e,t,n),e=sNe(e,n,t)):e=sNe(e,t,n),e}function dqn(e,t,n){return e===t?n:e===n?t:e}function sNe(e,t,n){return e==="start"?t:e==="end"?n:e}function fqn(e,{inflateAmount:t},n){e.inflateAmount=t==="auto"?n===1?.33:0:t}class pqn extends H_{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(t,n,r,i){return aNe(t,n,r,i)}parseArrayData(t,n,r,i){return aNe(t,n,r,i)}parseObjectData(t,n,r,i){const{iScale:a,vScale:o}=t,{xAxisKey:s="x",yAxisKey:l="y"}=this._parsing,c=a.axis==="x"?s:l,u=o.axis==="x"?s:l,d=[];let f,p,h,m;for(f=r,p=r+i;f<p;++f)m=n[f],h={},h[a.axis]=a.parse(c_(m,c),f),d.push(Fnt(c_(m,u),h,o,f));return d}updateRangeFromParsed(t,n,r,i){super.updateRangeFromParsed(t,n,r,i);const a=r._custom;a&&n===this._cachedMeta.vScale&&(t.min=Math.min(t.min,a.min),t.max=Math.max(t.max,a.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const n=this._cachedMeta,{iScale:r,vScale:i}=n,a=this.getParsed(t),o=a._custom,s=NJ(o)?"["+o.start+", "+o.end+"]":""+i.getLabelForValue(a[i.axis]);return{label:""+r.getLabelForValue(a[r.axis]),value:s}}initialize(){this.enableOptionSharing=!0,super.initialize();const t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){const n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,t)}updateElements(t,n,r,i){const a=i==="reset",{index:o,_cachedMeta:{vScale:s}}=this,l=s.getBasePixel(),c=s.isHorizontal(),u=this._getRuler(),{sharedOptions:d,includeOptions:f}=this._getSharedOptions(n,i);for(let p=n;p<n+r;p++){const h=this.getParsed(p),m=a||$i(h[s.axis])?{base:l,head:l}:this._calculateBarValuePixels(p),g=this._calculateBarIndexPixels(p,u),v=(h._stacks||{})[s.axis],y={horizontal:c,base:m.base,enableBorderRadius:!v||NJ(h._custom)||o===v._top||o===v._bottom,x:c?m.head:g.center,y:c?g.center:m.head,height:c?g.size:Math.abs(m.size),width:c?Math.abs(m.size):g.size};f&&(y.options=d||this.resolveDataElementOptions(p,t[p].active?"active":i));const _=y.options||t[p].options;uqn(y,_,v,o),fqn(y,_,u.ratio),this.updateElement(t[p],p,y,i)}}_getStacks(t,n){const{iScale:r}=this._cachedMeta,i=r.getMatchingVisibleMetas(this._type).filter(l=>l.controller.options.grouped),a=r.options.stacked,o=[],s=l=>{const c=l.controller.getParsed(n),u=c&&c[l.vScale.axis];if($i(u)||isNaN(u))return!0};for(const l of i)if(!(n!==void 0&&s(l))&&((a===!1||o.indexOf(l.stack)===-1||a===void 0&&l.stack===void 0)&&o.push(l.stack),l.index===t))break;return o.length||o.push(void 0),o}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,n,r){const i=this._getStacks(t,r),a=n!==void 0?i.indexOf(n):-1;return a===-1?i.length-1:a}_getRuler(){const t=this.options,n=this._cachedMeta,r=n.iScale,i=[];let a,o;for(a=0,o=n.data.length;a<o;++a)i.push(r.getPixelForValue(this.getParsed(a)[r.axis],a));const s=t.barThickness;return{min:s||iqn(n),pixels:i,start:r._startPixel,end:r._endPixel,stackCount:this._getStackCount(),scale:r,grouped:t.grouped,ratio:s?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:n,_stacked:r,index:i},options:{base:a,minBarLength:o}}=this,s=a||0,l=this.getParsed(t),c=l._custom,u=NJ(c);let d=l[n.axis],f=0,p=r?this.applyStack(n,l,r):d,h,m;p!==d&&(f=p-d,p=d),u&&(d=c.barStart,p=c.barEnd-c.barStart,d!==0&&Kg(d)!==Kg(c.barEnd)&&(f=0),f+=d);const g=!$i(a)&&!u?a:f;let v=n.getPixelForValue(g);if(this.chart.getDataVisibility(t)?h=n.getPixelForValue(f+p):h=v,m=h-v,Math.abs(m)<o){m=lqn(m,n,s)*o,d===s&&(v-=m/2);const y=n.getPixelForDecimal(0),_=n.getPixelForDecimal(1),S=Math.min(y,_),C=Math.max(y,_);v=Math.max(Math.min(v,C),S),h=v+m,r&&!u&&(l._stacks[n.axis]._visualValues[i]=n.getValueForPixel(h)-n.getValueForPixel(v))}if(v===n.getPixelForValue(s)){const y=Kg(m)*n.getLineWidthForValue(s)/2;v+=y,m-=y}return{size:m,base:v,head:h,center:h+m/2}}_calculateBarIndexPixels(t,n){const r=n.scale,i=this.options,a=i.skipNull,o=pi(i.maxBarThickness,1/0);let s,l;if(n.grouped){const c=a?this._getStackCount(t):n.stackCount,u=i.barThickness==="flex"?oqn(t,n,i,c):aqn(t,n,i,c),d=this._getStackIndex(this.index,this._cachedMeta.stack,a?t:void 0);s=u.start+u.chunk*d+u.chunk/2,l=Math.min(o,u.chunk*u.ratio)}else s=r.getPixelForValue(this.getParsed(t)[r.axis],t),l=Math.min(o,n.min*n.ratio);return{base:s-l/2,head:s+l/2,center:s,size:l}}draw(){const t=this._cachedMeta,n=t.vScale,r=t.data,i=r.length;let a=0;for(;a<i;++a)this.getParsed(a)[n.axis]!==null&&!r[a].hidden&&r[a].draw(this._ctx)}}class hqn extends H_{static id="bubble";static defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}};static overrides={scales:{x:{type:"linear"},y:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,n,r,i){const a=super.parsePrimitiveData(t,n,r,i);for(let o=0;o<a.length;o++)a[o]._custom=this.resolveDataElementOptions(o+r).radius;return a}parseArrayData(t,n,r,i){const a=super.parseArrayData(t,n,r,i);for(let o=0;o<a.length;o++){const s=n[r+o];a[o]._custom=pi(s[2],this.resolveDataElementOptions(o+r).radius)}return a}parseObjectData(t,n,r,i){const a=super.parseObjectData(t,n,r,i);for(let o=0;o<a.length;o++){const s=n[r+o];a[o]._custom=pi(s&&s.r&&+s.r,this.resolveDataElementOptions(o+r).radius)}return a}getMaxOverflow(){const t=this._cachedMeta.data;let n=0;for(let r=t.length-1;r>=0;--r)n=Math.max(n,t[r].size(this.resolveDataElementOptions(r))/2);return n>0&&n}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart.data.labels||[],{xScale:i,yScale:a}=n,o=this.getParsed(t),s=i.getLabelForValue(o.x),l=a.getLabelForValue(o.y),c=o._custom;return{label:r[t]||"",value:"("+s+", "+l+(c?", "+c:"")+")"}}update(t){const n=this._cachedMeta.data;this.updateElements(n,0,n.length,t)}updateElements(t,n,r,i){const a=i==="reset",{iScale:o,vScale:s}=this._cachedMeta,{sharedOptions:l,includeOptions:c}=this._getSharedOptions(n,i),u=o.axis,d=s.axis;for(let f=n;f<n+r;f++){const p=t[f],h=!a&&this.getParsed(f),m={},g=m[u]=a?o.getPixelForDecimal(.5):o.getPixelForValue(h[u]),v=m[d]=a?s.getBasePixel():s.getPixelForValue(h[d]);m.skip=isNaN(g)||isNaN(v),c&&(m.options=l||this.resolveDataElementOptions(f,p.active?"active":i),a&&(m.options.radius=0)),this.updateElement(p,f,m,i)}}resolveDataElementOptions(t,n){const r=this.getParsed(t);let i=super.resolveDataElementOptions(t,n);i.$shared&&(i=Object.assign({},i,{$shared:!1}));const a=i.radius;return n!=="active"&&(i.radius=0),i.radius+=pi(r&&r._custom,a),i}}function mqn(e,t,n){let r=1,i=1,a=0,o=0;if(t<Uo){const s=e,l=s+t,c=Math.cos(s),u=Math.sin(s),d=Math.cos(l),f=Math.sin(l),p=(_,S,C)=>c6(_,s,l,!0)?1:Math.max(S,S*n,C,C*n),h=(_,S,C)=>c6(_,s,l,!0)?-1:Math.min(S,S*n,C,C*n),m=p(0,c,d),g=p(Zs,u,f),v=h(Ho,c,d),y=h(Ho+Zs,u,f);r=(m-v)/2,i=(g-y)/2,a=-(m+v)/2,o=-(g+y)/2}return{ratioX:r,ratioY:i,offsetX:a,offsetY:o}}class vme extends H_{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:r,color:i}}=t.legend.options;return n.labels.map((a,o)=>{const l=t.getDatasetMeta(0).controller.getStyle(o);return{text:a,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:i,lineWidth:l.borderWidth,pointStyle:r,hidden:!t.getDataVisibility(o),index:o}})}return[]}},onClick(t,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}}};constructor(t,n){super(t,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,n){const r=this.getDataset().data,i=this._cachedMeta;if(this._parsing===!1)i._parsed=r;else{let a=l=>+r[l];if(Ui(r[t])){const{key:l="value"}=this._parsing;a=c=>+c_(r[c],l)}let o,s;for(o=t,s=t+n;o<s;++o)i._parsed[o]=a(o)}}_getRotation(){return Kh(this.options.rotation-90)}_getCircumference(){return Kh(this.options.circumference)}_getRotationExtents(){let t=Uo,n=-Uo;for(let r=0;r<this.chart.data.datasets.length;++r)if(this.chart.isDatasetVisible(r)&&this.chart.getDatasetMeta(r).type===this._type){const i=this.chart.getDatasetMeta(r).controller,a=i._getRotation(),o=i._getCircumference();t=Math.min(t,a),n=Math.max(n,a+o)}return{rotation:t,circumference:n-t}}update(t){const n=this.chart,{chartArea:r}=n,i=this._cachedMeta,a=i.data,o=this.getMaxBorderWidth()+this.getMaxOffset(a)+this.options.spacing,s=Math.max((Math.min(r.width,r.height)-o)/2,0),l=Math.min(IVn(this.options.cutout,s),1),c=this._getRingWeight(this.index),{circumference:u,rotation:d}=this._getRotationExtents(),{ratioX:f,ratioY:p,offsetX:h,offsetY:m}=mqn(d,u,l),g=(r.width-o)/f,v=(r.height-o)/p,y=Math.max(Math.min(g,v)/2,0),_=fnt(this.options.radius,y),S=Math.max(_*l,0),C=(_-S)/this._getVisibleDatasetWeightTotal();this.offsetX=h*_,this.offsetY=m*_,i.total=this.calculateTotal(),this.outerRadius=_-C*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-C*c,0),this.updateElements(a,0,a.length,t)}_circumference(t,n){const r=this.options,i=this._cachedMeta,a=this._getCircumference();return n&&r.animation.animateRotate||!this.chart.getDataVisibility(t)||i._parsed[t]===null||i.data[t].hidden?0:this.calculateCircumference(i._parsed[t]*a/Uo)}updateElements(t,n,r,i){const a=i==="reset",o=this.chart,s=o.chartArea,c=o.options.animation,u=(s.left+s.right)/2,d=(s.top+s.bottom)/2,f=a&&c.animateScale,p=f?0:this.innerRadius,h=f?0:this.outerRadius,{sharedOptions:m,includeOptions:g}=this._getSharedOptions(n,i);let v=this._getRotation(),y;for(y=0;y<n;++y)v+=this._circumference(y,a);for(y=n;y<n+r;++y){const _=this._circumference(y,a),S=t[y],C={x:u+this.offsetX,y:d+this.offsetY,startAngle:v,endAngle:v+_,circumference:_,outerRadius:h,innerRadius:p};g&&(C.options=m||this.resolveDataElementOptions(y,S.active?"active":i)),v+=_,this.updateElement(S,y,C,i)}}calculateTotal(){const t=this._cachedMeta,n=t.data;let r=0,i;for(i=0;i<n.length;i++){const a=t._parsed[i];a!==null&&!isNaN(a)&&this.chart.getDataVisibility(i)&&!n[i].hidden&&(r+=Math.abs(a))}return r}calculateCircumference(t){const n=this._cachedMeta.total;return n>0&&!isNaN(t)?Uo*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],a=p8(n._parsed[t],r.options.locale);return{label:i[t]||"",value:a}}getMaxBorderWidth(t){let n=0;const r=this.chart;let i,a,o,s,l;if(!t){for(i=0,a=r.data.datasets.length;i<a;++i)if(r.isDatasetVisible(i)){o=r.getDatasetMeta(i),t=o.data,s=o.controller;break}}if(!t)return 0;for(i=0,a=t.length;i<a;++i)l=s.resolveDataElementOptions(i),l.borderAlign!=="inner"&&(n=Math.max(n,l.borderWidth||0,l.hoverBorderWidth||0));return n}getMaxOffset(t){let n=0;for(let r=0,i=t.length;r<i;++r){const a=this.resolveDataElementOptions(r);n=Math.max(n,a.offset||0,a.hoverOffset||0)}return n}_getRingWeightOffset(t){let n=0;for(let r=0;r<t;++r)this.chart.isDatasetVisible(r)&&(n+=this._getRingWeight(r));return n}_getRingWeight(t){return Math.max(pi(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}class gqn extends H_{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:r,data:i=[],_dataset:a}=n,o=this.chart._animationsDisabled;let{start:s,count:l}=_nt(n,i,o);this._drawStart=s,this._drawCount=l,Snt(n)&&(s=0,l=i.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!a._decimated,r.points=i;const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(r,void 0,{animated:!o,options:c},t),this.updateElements(i,s,l,t)}updateElements(t,n,r,i){const a=i==="reset",{iScale:o,vScale:s,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:u,includeOptions:d}=this._getSharedOptions(n,i),f=o.axis,p=s.axis,{spanGaps:h,segment:m}=this.options,g=P3(h)?h:Number.POSITIVE_INFINITY,v=this.chart._animationsDisabled||a||i==="none",y=n+r,_=t.length;let S=n>0&&this.getParsed(n-1);for(let C=0;C<_;++C){const w=t[C],x=v?w:{};if(C<n||C>=y){x.skip=!0;continue}const T=this.getParsed(C),A=$i(T[p]),I=x[f]=o.getPixelForValue(T[f],C),R=x[p]=a||A?s.getBasePixel():s.getPixelForValue(l?this.applyStack(s,T,l):T[p],C);x.skip=isNaN(I)||isNaN(R)||A,x.stop=C>0&&Math.abs(T[f]-S[f])>g,m&&(x.parsed=T,x.raw=c.data[C]),d&&(x.options=u||this.resolveDataElementOptions(C,w.active?"active":i)),v||this.updateElement(w,C,x,i),S=T}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,r=n.options&&n.options.borderWidth||0,i=t.data||[];if(!i.length)return r;const a=i[0].size(this.resolveDataElementOptions(0)),o=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(r,a,o)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}class Bnt extends H_{static id="polarArea";static defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:r,color:i}}=t.legend.options;return n.labels.map((a,o)=>{const l=t.getDatasetMeta(0).controller.getStyle(o);return{text:a,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:i,lineWidth:l.borderWidth,pointStyle:r,hidden:!t.getDataVisibility(o),index:o}})}return[]}},onClick(t,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(t,n){super(t,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],a=p8(n._parsed[t].r,r.options.locale);return{label:i[t]||"",value:a}}parseObjectData(t,n,r,i){return Rnt.bind(this)(t,n,r,i)}update(t){const n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,t)}getMinMax(){const t=this._cachedMeta,n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((r,i)=>{const a=this.getParsed(i).r;!isNaN(a)&&this.chart.getDataVisibility(i)&&(a<n.min&&(n.min=a),a>n.max&&(n.max=a))}),n}_updateRadius(){const t=this.chart,n=t.chartArea,r=t.options,i=Math.min(n.right-n.left,n.bottom-n.top),a=Math.max(i/2,0),o=Math.max(r.cutoutPercentage?a/100*r.cutoutPercentage:1,0),s=(a-o)/t.getVisibleDatasetCount();this.outerRadius=a-s*this.index,this.innerRadius=this.outerRadius-s}updateElements(t,n,r,i){const a=i==="reset",o=this.chart,l=o.options.animation,c=this._cachedMeta.rScale,u=c.xCenter,d=c.yCenter,f=c.getIndexAngle(0)-.5*Ho;let p=f,h;const m=360/this.countVisibleElements();for(h=0;h<n;++h)p+=this._computeAngle(h,i,m);for(h=n;h<n+r;h++){const g=t[h];let v=p,y=p+this._computeAngle(h,i,m),_=o.getDataVisibility(h)?c.getDistanceFromCenterForValue(this.getParsed(h).r):0;p=y,a&&(l.animateScale&&(_=0),l.animateRotate&&(v=y=f));const S={x:u,y:d,innerRadius:0,outerRadius:_,startAngle:v,endAngle:y,options:this.resolveDataElementOptions(h,g.active?"active":i)};this.updateElement(g,h,S,i)}}countVisibleElements(){const t=this._cachedMeta;let n=0;return t.data.forEach((r,i)=>{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&n++}),n}_computeAngle(t,n,r){return this.chart.getDataVisibility(t)?Kh(this.resolveDataElementOptions(t,n).angle||r):0}}class vqn extends vme{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}}class yqn extends H_{static id="radar";static defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};static overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};getLabelAndValue(t){const n=this._cachedMeta.vScale,r=this.getParsed(t);return{label:n.getLabels()[t],value:""+n.getLabelForValue(r[n.axis])}}parseObjectData(t,n,r,i){return Rnt.bind(this)(t,n,r,i)}update(t){const n=this._cachedMeta,r=n.dataset,i=n.data||[],a=n.iScale.getLabels();if(r.points=i,t!=="resize"){const o=this.resolveDatasetElementOptions(t);this.options.showLine||(o.borderWidth=0);const s={_loop:!0,_fullLoop:a.length===i.length,options:o};this.updateElement(r,void 0,s,t)}this.updateElements(i,0,i.length,t)}updateElements(t,n,r,i){const a=this._cachedMeta.rScale,o=i==="reset";for(let s=n;s<n+r;s++){const l=t[s],c=this.resolveDataElementOptions(s,l.active?"active":i),u=a.getPointPositionForValue(s,this.getParsed(s).r),d=o?a.xCenter:u.x,f=o?a.yCenter:u.y,p={x:d,y:f,angle:u.angle,skip:isNaN(d)||isNaN(f),options:c};this.updateElement(l,s,p,i)}}}class bqn extends H_{static id="scatter";static defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1};static overrides={interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}};getLabelAndValue(t){const n=this._cachedMeta,r=this.chart.data.labels||[],{xScale:i,yScale:a}=n,o=this.getParsed(t),s=i.getLabelForValue(o.x),l=a.getLabelForValue(o.y);return{label:r[t]||"",value:"("+s+", "+l+")"}}update(t){const n=this._cachedMeta,{data:r=[]}=n,i=this.chart._animationsDisabled;let{start:a,count:o}=_nt(n,r,i);if(this._drawStart=a,this._drawCount=o,Snt(n)&&(a=0,o=r.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:s,_dataset:l}=n;s._chart=this.chart,s._datasetIndex=this.index,s._decimated=!!l._decimated,s.points=r;const c=this.resolveDatasetElementOptions(t);c.segment=this.options.segment,this.updateElement(s,void 0,{animated:!i,options:c},t)}else this.datasetElementType&&(delete n.dataset,this.datasetElementType=!1);this.updateElements(r,a,o,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,n,r,i){const a=i==="reset",{iScale:o,vScale:s,_stacked:l,_dataset:c}=this._cachedMeta,u=this.resolveDataElementOptions(n,i),d=this.getSharedOptions(u),f=this.includeOptions(i,d),p=o.axis,h=s.axis,{spanGaps:m,segment:g}=this.options,v=P3(m)?m:Number.POSITIVE_INFINITY,y=this.chart._animationsDisabled||a||i==="none";let _=n>0&&this.getParsed(n-1);for(let S=n;S<n+r;++S){const C=t[S],w=this.getParsed(S),x=y?C:{},T=$i(w[h]),A=x[p]=o.getPixelForValue(w[p],S),I=x[h]=a||T?s.getBasePixel():s.getPixelForValue(l?this.applyStack(s,w,l):w[h],S);x.skip=isNaN(A)||isNaN(I)||T,x.stop=S>0&&Math.abs(w[p]-_[p])>v,g&&(x.parsed=w,x.raw=c.data[S]),f&&(x.options=d||this.resolveDataElementOptions(S,C.active?"active":i)),y||this.updateElement(C,S,x,i),_=w}this.updateSharedOptions(d,i,u)}getMaxOverflow(){const t=this._cachedMeta,n=t.data||[];if(!this.options.showLine){let s=0;for(let l=n.length-1;l>=0;--l)s=Math.max(s,n[l].size(this.resolveDataElementOptions(l))/2);return s>0&&s}const r=t.dataset,i=r.options&&r.options.borderWidth||0;if(!n.length)return i;const a=n[0].size(this.resolveDataElementOptions(0)),o=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(i,a,o)/2}}var _qn=Object.freeze({__proto__:null,BarController:pqn,BubbleController:hqn,DoughnutController:vme,LineController:gqn,PieController:vqn,PolarAreaController:Bnt,RadarController:yqn,ScatterController:bqn});function x2(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class yme{static override(t){Object.assign(yme.prototype,t)}options;constructor(t){this.options=t||{}}init(){}formats(){return x2()}parse(){return x2()}format(){return x2()}add(){return x2()}diff(){return x2()}startOf(){return x2()}endOf(){return x2()}}var Sqn={_date:yme};function Eqn(e,t,n,r){const{controller:i,data:a,_sorted:o}=e,s=i._cachedMeta.iScale;if(s&&t===s.axis&&t!=="r"&&o&&a.length){const l=s._reversePixels?BVn:L1;if(r){if(i._sharedOptions){const c=a[0],u=typeof c.getRange=="function"&&c.getRange(t);if(u){const d=l(a,t,n-u),f=l(a,t,n+u);return{lo:d.lo,hi:f.hi}}}}else return l(a,t,n)}return{lo:0,hi:a.length-1}}function h8(e,t,n,r,i){const a=e.getSortedVisibleDatasetMetas(),o=n[t];for(let s=0,l=a.length;s<l;++s){const{index:c,data:u}=a[s],{lo:d,hi:f}=Eqn(a[s],t,o,i);for(let p=d;p<=f;++p){const h=u[p];h.skip||r(h,c,p)}}}function Cqn(e){const t=e.indexOf("x")!==-1,n=e.indexOf("y")!==-1;return function(r,i){const a=t?Math.abs(r.x-i.x):0,o=n?Math.abs(r.y-i.y):0;return Math.sqrt(Math.pow(a,2)+Math.pow(o,2))}}function OJ(e,t,n,r,i){const a=[];return!i&&!e.isPointInArea(t)||h8(e,n,t,function(s,l,c){!i&&!P1(s,e.chartArea,0)||s.inRange(t.x,t.y,r)&&a.push({element:s,datasetIndex:l,index:c})},!0),a}function wqn(e,t,n,r){let i=[];function a(o,s,l){const{startAngle:c,endAngle:u}=o.getProps(["startAngle","endAngle"],r),{angle:d}=mnt(o,{x:t.x,y:t.y});c6(d,c,u)&&i.push({element:o,datasetIndex:s,index:l})}return h8(e,n,t,a),i}function xqn(e,t,n,r,i,a){let o=[];const s=Cqn(n);let l=Number.POSITIVE_INFINITY;function c(u,d,f){const p=u.inRange(t.x,t.y,i);if(r&&!p)return;const h=u.getCenterPoint(i);if(!(!!a||e.isPointInArea(h))&&!p)return;const g=s(t,h);g<l?(o=[{element:u,datasetIndex:d,index:f}],l=g):g===l&&o.push({element:u,datasetIndex:d,index:f})}return h8(e,n,t,c),o}function LJ(e,t,n,r,i,a){return!a&&!e.isPointInArea(t)?[]:n==="r"&&!r?wqn(e,t,n,i):xqn(e,t,n,r,i,a)}function lNe(e,t,n,r,i){const a=[],o=n==="x"?"inXRange":"inYRange";let s=!1;return h8(e,n,t,(l,c,u)=>{l[o](t[n],i)&&(a.push({element:l,datasetIndex:c,index:u}),s=s||l.inRange(t.x,t.y,i))}),r&&!s?[]:a}var Tqn={evaluateInteractionItems:h8,modes:{index(e,t,n,r){const i=gS(t,e),a=n.axis||"x",o=n.includeInvisible||!1,s=n.intersect?OJ(e,i,a,r,o):LJ(e,i,a,!1,r,o),l=[];return s.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{const u=s[0].index,d=c.data[u];d&&!d.skip&&l.push({element:d,datasetIndex:c.index,index:u})}),l):[]},dataset(e,t,n,r){const i=gS(t,e),a=n.axis||"xy",o=n.includeInvisible||!1;let s=n.intersect?OJ(e,i,a,r,o):LJ(e,i,a,!1,r,o);if(s.length>0){const l=s[0].datasetIndex,c=e.getDatasetMeta(l).data;s=[];for(let u=0;u<c.length;++u)s.push({element:c[u],datasetIndex:l,index:u})}return s},point(e,t,n,r){const i=gS(t,e),a=n.axis||"xy",o=n.includeInvisible||!1;return OJ(e,i,a,r,o)},nearest(e,t,n,r){const i=gS(t,e),a=n.axis||"xy",o=n.includeInvisible||!1;return LJ(e,i,a,n.intersect,r,o)},x(e,t,n,r){const i=gS(t,e);return lNe(e,i,"x",n.intersect,r)},y(e,t,n,r){const i=gS(t,e);return lNe(e,i,"y",n.intersect,r)}}};const jnt=["left","top","right","bottom"];function _I(e,t){return e.filter(n=>n.pos===t)}function cNe(e,t){return e.filter(n=>jnt.indexOf(n.pos)===-1&&n.box.axis===t)}function SI(e,t){return e.sort((n,r)=>{const i=t?r:n,a=t?n:r;return i.weight===a.weight?i.index-a.index:i.weight-a.weight})}function Iqn(e){const t=[];let n,r,i,a,o,s;for(n=0,r=(e||[]).length;n<r;++n)i=e[n],{position:a,options:{stack:o,stackWeight:s=1}}=i,t.push({index:n,box:i,pos:a,horizontal:i.isHorizontal(),weight:i.weight,stack:o&&a+o,stackWeight:s});return t}function Aqn(e){const t={};for(const n of e){const{stack:r,pos:i,stackWeight:a}=n;if(!r||!jnt.includes(i))continue;const o=t[r]||(t[r]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=a}return t}function Rqn(e,t){const n=Aqn(e),{vBoxMaxWidth:r,hBoxMaxHeight:i}=t;let a,o,s;for(a=0,o=e.length;a<o;++a){s=e[a];const{fullSize:l}=s.box,c=n[s.stack],u=c&&s.stackWeight/c.weight;s.horizontal?(s.width=u?u*r:l&&t.availableWidth,s.height=i):(s.width=r,s.height=u?u*i:l&&t.availableHeight)}return n}function Nqn(e){const t=Iqn(e),n=SI(t.filter(c=>c.box.fullSize),!0),r=SI(_I(t,"left"),!0),i=SI(_I(t,"right")),a=SI(_I(t,"top"),!0),o=SI(_I(t,"bottom")),s=cNe(t,"x"),l=cNe(t,"y");return{fullSize:n,leftAndTop:r.concat(a),rightAndBottom:i.concat(l).concat(o).concat(s),chartArea:_I(t,"chartArea"),vertical:r.concat(i).concat(l),horizontal:a.concat(o).concat(s)}}function uNe(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function znt(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function Oqn(e,t,n,r){const{pos:i,box:a}=n,o=e.maxPadding;if(!Ui(i)){n.size&&(e[i]-=n.size);const d=r[n.stack]||{size:0,count:1};d.size=Math.max(d.size,n.horizontal?a.height:a.width),n.size=d.size/d.count,e[i]+=n.size}a.getPadding&&znt(o,a.getPadding());const s=Math.max(0,t.outerWidth-uNe(o,e,"left","right")),l=Math.max(0,t.outerHeight-uNe(o,e,"top","bottom")),c=s!==e.w,u=l!==e.h;return e.w=s,e.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function Lqn(e){const t=e.maxPadding;function n(r){const i=Math.max(t[r]-e[r],0);return e[r]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function Pqn(e,t){const n=t.maxPadding;function r(i){const a={left:0,top:0,right:0,bottom:0};return i.forEach(o=>{a[o]=Math.max(t[o],n[o])}),a}return r(e?["left","right"]:["top","bottom"])}function NA(e,t,n,r){const i=[];let a,o,s,l,c,u;for(a=0,o=e.length,c=0;a<o;++a){s=e[a],l=s.box,l.update(s.width||t.w,s.height||t.h,Pqn(s.horizontal,t));const{same:d,other:f}=Oqn(t,n,s,r);c|=d&&i.length,u=u||f,l.fullSize||i.push(s)}return c&&NA(i,t,n,r)||u}function sk(e,t,n,r,i){e.top=n,e.left=t,e.right=t+r,e.bottom=n+i,e.width=r,e.height=i}function dNe(e,t,n,r){const i=n.padding;let{x:a,y:o}=t;for(const s of e){const l=s.box,c=r[s.stack]||{count:1,placed:0,weight:1},u=s.stackWeight/c.weight||1;if(s.horizontal){const d=t.w*u,f=c.size||l.height;l6(c.start)&&(o=c.start),l.fullSize?sk(l,i.left,o,n.outerWidth-i.right-i.left,f):sk(l,t.left+c.placed,o,d,f),c.start=o,c.placed+=d,o=l.bottom}else{const d=t.h*u,f=c.size||l.width;l6(c.start)&&(a=c.start),l.fullSize?sk(l,a,i.top,f,n.outerHeight-i.bottom-i.top):sk(l,a,t.top+c.placed,f,d),c.start=a,c.placed+=d,a=l.right}}t.x=a,t.y=o}var Jc={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(n){t.draw(n)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;n!==-1&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,r){if(!e)return;const i=Tc(e.options.layout.padding),a=Math.max(t-i.width,0),o=Math.max(n-i.height,0),s=Nqn(e.boxes),l=s.vertical,c=s.horizontal;Ba(e.boxes,m=>{typeof m.beforeLayout=="function"&&m.beforeLayout()});const u=l.reduce((m,g)=>g.box.options&&g.box.options.display===!1?m:m+1,0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:a,availableHeight:o,vBoxMaxWidth:a/2/u,hBoxMaxHeight:o/2}),f=Object.assign({},i);znt(f,Tc(r));const p=Object.assign({maxPadding:f,w:a,h:o,x:i.left,y:i.top},i),h=Rqn(l.concat(c),d);NA(s.fullSize,p,d,h),NA(l,p,d,h),NA(c,p,d,h)&&NA(l,p,d,h),Lqn(p),dNe(s.leftAndTop,p,d,h),p.x+=p.w,p.y+=p.h,dNe(s.rightAndBottom,p,d,h),e.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},Ba(s.chartArea,m=>{const g=m.box;Object.assign(g,e.chartArea),g.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})})}};class Unt{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,r){}removeEventListener(t,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,r,i){return n=Math.max(0,n||t.width),r=r||t.height,{width:n,height:Math.max(0,i?Math.floor(n/i):r)}}isAttached(t){return!0}updateConfig(t){}}class kqn extends Unt{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const jM="$chartjs",Mqn={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},fNe=e=>e===null||e==="";function Dqn(e,t){const n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e[jM]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",fNe(i)){const a=YRe(e,"width");a!==void 0&&(e.width=a)}if(fNe(r))if(e.style.height==="")e.height=e.width/(t||2);else{const a=YRe(e,"height");a!==void 0&&(e.height=a)}return e}const Hnt=LGn?{passive:!0}:!1;function $qn(e,t,n){e&&e.addEventListener(t,n,Hnt)}function Fqn(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,Hnt)}function Bqn(e,t){const n=Mqn[e.type]||e.type,{x:r,y:i}=gS(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:i!==void 0?i:null}}function $F(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function jqn(e,t,n){const r=e.canvas,i=new MutationObserver(a=>{let o=!1;for(const s of a)o=o||$F(s.addedNodes,r),o=o&&!$F(s.removedNodes,r);o&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function zqn(e,t,n){const r=e.canvas,i=new MutationObserver(a=>{let o=!1;for(const s of a)o=o||$F(s.removedNodes,r),o=o&&!$F(s.addedNodes,r);o&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const d6=new Map;let pNe=0;function Vnt(){const e=window.devicePixelRatio;e!==pNe&&(pNe=e,d6.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function Uqn(e,t){d6.size||window.addEventListener("resize",Vnt),d6.set(e,t)}function Hqn(e){d6.delete(e),d6.size||window.removeEventListener("resize",Vnt)}function Vqn(e,t,n){const r=e.canvas,i=r&&gme(r);if(!i)return;const a=bnt((s,l)=>{const c=i.clientWidth;n(s,l),c<i.clientWidth&&n()},window),o=new ResizeObserver(s=>{const l=s[0],c=l.contentRect.width,u=l.contentRect.height;c===0&&u===0||a(c,u)});return o.observe(i),Uqn(e,a),o}function PJ(e,t,n){n&&n.disconnect(),t==="resize"&&Hqn(e)}function Gqn(e,t,n){const r=e.canvas,i=bnt(a=>{e.ctx!==null&&n(Bqn(a,e))},e);return $qn(r,t,i),i}class qqn extends Unt{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(Dqn(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[jM])return!1;const r=n[jM].initial;["height","width"].forEach(a=>{const o=r[a];$i(o)?n.removeAttribute(a):n.setAttribute(a,o)});const i=r.style||{};return Object.keys(i).forEach(a=>{n.style[a]=i[a]}),n.width=n.width,delete n[jM],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const i=t.$proxies||(t.$proxies={}),o={attach:jqn,detach:zqn,resize:Vqn}[n]||Gqn;i[n]=o(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),i=r[n];if(!i)return;({attach:PJ,detach:PJ,resize:PJ}[n]||Fqn)(t,n,i),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,i){return OGn(t,n,r,i)}isAttached(t){const n=t&&gme(t);return!!(n&&n.isConnected)}}function Wqn(e){return!mme()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?kqn:qqn}let C0=class{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return P3(this.x)&&P3(this.y)}getProps(t,n){const r=this.$animations;if(!n||!r)return this;const i={};return t.forEach(a=>{i[a]=r[a]&&r[a].active()?r[a]._to:this[a]}),i}};function Yqn(e,t){const n=e.options.ticks,r=Kqn(e),i=Math.min(n.maxTicksLimit||r,r),a=n.major.enabled?Zqn(t):[],o=a.length,s=a[0],l=a[o-1],c=[];if(o>i)return Qqn(t,c,a,o/i),c;const u=Xqn(a,t,i);if(o>0){let d,f;const p=o>1?Math.round((l-s)/(o-1)):null;for(lk(t,c,u,$i(p)?0:s-p,s),d=0,f=o-1;d<f;d++)lk(t,c,u,a[d],a[d+1]);return lk(t,c,u,l,$i(p)?t.length:l+p),c}return lk(t,c,u),c}function Kqn(e){const t=e.options.offset,n=e._tickSize(),r=e._length/n+(t?0:1),i=e._maxLength/n;return Math.floor(Math.min(r,i))}function Xqn(e,t,n){const r=Jqn(e),i=t.length/n;if(!r)return Math.max(i,1);const a=MVn(r);for(let o=0,s=a.length-1;o<s;o++){const l=a[o];if(l>i)return l}return Math.max(i,1)}function Zqn(e){const t=[];let n,r;for(n=0,r=e.length;n<r;n++)e[n].major&&t.push(n);return t}function Qqn(e,t,n,r){let i=0,a=n[0],o;for(r=Math.ceil(r),o=0;o<e.length;o++)o===a&&(t.push(e[o]),i++,a=n[i*r])}function lk(e,t,n,r,i){const a=pi(r,0),o=Math.min(pi(i,e.length),e.length);let s=0,l,c,u;for(n=Math.ceil(n),i&&(l=i-r,n=l/Math.floor(l/n)),u=a;u<0;)s++,u=Math.round(a+s*n);for(c=Math.max(a,0);c<o;c++)c===u&&(t.push(e[c]),s++,u=Math.round(a+s*n))}function Jqn(e){const t=e.length;let n,r;if(t<2)return!1;for(r=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==r)return!1;return r}const eWn=e=>e==="left"?"right":e==="right"?"left":e,hNe=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,mNe=(e,t)=>Math.min(t||e,e);function gNe(e,t){const n=[],r=e.length/t,i=e.length;let a=0;for(;a<i;a+=r)n.push(e[Math.floor(a)]);return n}function tWn(e,t,n){const r=e.ticks.length,i=Math.min(t,r-1),a=e._startPixel,o=e._endPixel,s=1e-6;let l=e.getPixelForTick(i),c;if(!(n&&(r===1?c=Math.max(l-a,o-l):t===0?c=(e.getPixelForTick(1)-l)/2:c=(l-e.getPixelForTick(i-1))/2,l+=i<t?c:-c,l<a-s||l>o+s)))return l}function nWn(e,t){Ba(e,n=>{const r=n.gc,i=r.length/2;let a;if(i>t){for(a=0;a<i;++a)delete n.data[r[a]];r.splice(0,i)}})}function EI(e){return e.drawTicks?e.tickLength:0}function vNe(e,t){if(!e.display)return 0;const n=ml(e.font,t),r=Tc(e.padding);return(jo(e.text)?e.text.length:1)*n.lineHeight+r.height}function rWn(e,t){return U_(e,{scale:t,type:"scale"})}function iWn(e,t,n){return U_(e,{tick:n,index:t,type:"tick"})}function aWn(e,t,n){let r=cme(e);return(n&&t!=="right"||!n&&t==="right")&&(r=eWn(r)),r}function oWn(e,t,n,r){const{top:i,left:a,bottom:o,right:s,chart:l}=e,{chartArea:c,scales:u}=l;let d=0,f,p,h;const m=o-i,g=s-a;if(e.isHorizontal()){if(p=Vc(r,a,s),Ui(n)){const v=Object.keys(n)[0],y=n[v];h=u[v].getPixelForValue(y)+m-t}else n==="center"?h=(c.bottom+c.top)/2+m-t:h=hNe(e,n,t);f=s-a}else{if(Ui(n)){const v=Object.keys(n)[0],y=n[v];p=u[v].getPixelForValue(y)-g+t}else n==="center"?p=(c.left+c.right)/2-g+t:p=hNe(e,n,t);h=Vc(r,o,i),d=n==="left"?-Zs:Zs}return{titleX:p,titleY:h,maxWidth:f,rotation:d}}let m8=class Gnt extends C0{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,n){return t}getUserBounds(){let{_userMin:t,_userMax:n,_suggestedMin:r,_suggestedMax:i}=this;return t=ff(t,Number.POSITIVE_INFINITY),n=ff(n,Number.NEGATIVE_INFINITY),r=ff(r,Number.POSITIVE_INFINITY),i=ff(i,Number.NEGATIVE_INFINITY),{min:ff(t,r),max:ff(n,i),minDefined:Ns(t),maxDefined:Ns(n)}}getMinMax(t){let{min:n,max:r,minDefined:i,maxDefined:a}=this.getUserBounds(),o;if(i&&a)return{min:n,max:r};const s=this.getMatchingVisibleMetas();for(let l=0,c=s.length;l<c;++l)o=s[l].controller.getMinMax(this,t),i||(n=Math.min(n,o.min)),a||(r=Math.max(r,o.max));return n=a&&n>r?r:n,r=i&&n>r?n:r,{min:ff(n,ff(r,n)),max:ff(r,ff(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){io(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:i,grace:a,ticks:o}=this.options,s=o.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=cGn(this,a,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=s<this.ticks.length;this._convertTicksToLabels(l?gNe(this.ticks,s):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||o.source==="auto")&&(this.ticks=Yqn(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,n,r;this.isHorizontal()?(n=this.left,r=this.right):(n=this.top,r=this.bottom,t=!t),this._startPixel=n,this._endPixel=r,this._reversePixels=t,this._length=r-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){io(this.options.afterUpdate,[this])}beforeSetDimensions(){io(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){io(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),io(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){io(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const n=this.options.ticks;let r,i,a;for(r=0,i=t.length;r<i;r++)a=t[r],a.label=io(n.callback,[a.value,r,t],this)}afterTickToLabelConversion(){io(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){io(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,n=t.ticks,r=mNe(this.ticks.length,t.ticks.maxTicksLimit),i=n.minRotation||0,a=n.maxRotation;let o=i,s,l,c;if(!this._isVisible()||!n.display||i>=a||r<=1||!this.isHorizontal()){this.labelRotation=i;return}const u=this._getLabelSizes(),d=u.widest.width,f=u.highest.height,p=Kl(this.chart.width-d,0,this.maxWidth);s=t.offset?this.maxWidth/r:p/(r-1),d+6>s&&(s=p/(r-(t.offset?.5:1)),l=this.maxHeight-EI(t.grid)-n.padding-vNe(t.title,this.chart.options.font),c=Math.sqrt(d*d+f*f),o=sme(Math.min(Math.asin(Kl((u.highest.height+6)/s,-1,1)),Math.asin(Kl(l/c,-1,1))-Math.asin(Kl(f/c,-1,1)))),o=Math.max(i,Math.min(a,o))),this.labelRotation=o}afterCalculateLabelRotation(){io(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){io(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:i,grid:a}}=this,o=this._isVisible(),s=this.isHorizontal();if(o){const l=vNe(i,n.options.font);if(s?(t.width=this.maxWidth,t.height=EI(a)+l):(t.height=this.maxHeight,t.width=EI(a)+l),r.display&&this.ticks.length){const{first:c,last:u,widest:d,highest:f}=this._getLabelSizes(),p=r.padding*2,h=Kh(this.labelRotation),m=Math.cos(h),g=Math.sin(h);if(s){const v=r.mirror?0:g*d.width+m*f.height;t.height=Math.min(this.maxHeight,t.height+v+p)}else{const v=r.mirror?0:m*d.width+g*f.height;t.width=Math.min(this.maxWidth,t.width+v+p)}this._calculatePadding(c,u,g,m)}}this._handleMargins(),s?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,r,i){const{ticks:{align:a,padding:o},position:s}=this.options,l=this.labelRotation!==0,c=s!=="top"&&this.axis==="x";if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let f=0,p=0;l?c?(f=i*t.width,p=r*n.height):(f=r*t.height,p=i*n.width):a==="start"?p=n.width:a==="end"?f=t.width:a!=="inner"&&(f=t.width/2,p=n.width/2),this.paddingLeft=Math.max((f-u+o)*this.width/(this.width-u),0),this.paddingRight=Math.max((p-d+o)*this.width/(this.width-d),0)}else{let u=n.height/2,d=t.height/2;a==="start"?(u=0,d=t.height):a==="end"&&(u=n.height,d=0),this.paddingTop=u+o,this.paddingBottom=d+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){io(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,r;for(n=0,r=t.length;n<r;n++)$i(t[n].label)&&(t.splice(n,1),r--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const n=this.options.ticks.sampleSize;let r=this.ticks;n<r.length&&(r=gNe(r,n)),this._labelSizes=t=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,n,r){const{ctx:i,_longestTextCache:a}=this,o=[],s=[],l=Math.floor(n/mNe(n,r));let c=0,u=0,d,f,p,h,m,g,v,y,_,S,C;for(d=0;d<n;d+=l){if(h=t[d].label,m=this._resolveTickFontOptions(d),i.font=g=m.string,v=a[g]=a[g]||{data:{},gc:[]},y=m.lineHeight,_=S=0,!$i(h)&&!jo(h))_=MF(i,v.data,v.gc,_,h),S=y;else if(jo(h))for(f=0,p=h.length;f<p;++f)C=h[f],!$i(C)&&!jo(C)&&(_=MF(i,v.data,v.gc,_,C),S+=y);o.push(_),s.push(S),c=Math.max(_,c),u=Math.max(S,u)}nWn(a,n);const w=o.indexOf(c),x=s.indexOf(u),T=A=>({width:o[A]||0,height:s[A]||0});return{first:T(0),last:T(n-1),widest:T(w),highest:T(x),widths:o,heights:s}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return FVn(this._alignToPixels?w2(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&t<n.length){const r=n[t];return r.$context||(r.$context=iWn(this.getContext(),t,r))}return this.$context||(this.$context=rWn(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,n=Kh(this.labelRotation),r=Math.abs(Math.cos(n)),i=Math.abs(Math.sin(n)),a=this._getLabelSizes(),o=t.autoSkipPadding||0,s=a?a.widest.width+o:0,l=a?a.highest.height+o:0;return this.isHorizontal()?l*r>s*i?s/r:l/i:l*i<s*r?l/r:s/i}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const n=this.axis,r=this.chart,i=this.options,{grid:a,position:o,border:s}=i,l=a.offset,c=this.isHorizontal(),d=this.ticks.length+(l?1:0),f=EI(a),p=[],h=s.setContext(this.getContext()),m=h.display?h.width:0,g=m/2,v=function(D){return w2(r,D,m)};let y,_,S,C,w,x,T,A,I,R,N,P;if(o==="top")y=v(this.bottom),x=this.bottom-f,A=y-g,R=v(t.top)+g,P=t.bottom;else if(o==="bottom")y=v(this.top),R=t.top,P=v(t.bottom)-g,x=y+g,A=this.top+f;else if(o==="left")y=v(this.right),w=this.right-f,T=y-g,I=v(t.left)+g,N=t.right;else if(o==="right")y=v(this.left),I=t.left,N=v(t.right)-g,w=y+g,T=this.left+f;else if(n==="x"){if(o==="center")y=v((t.top+t.bottom)/2+.5);else if(Ui(o)){const D=Object.keys(o)[0],z=o[D];y=v(this.chart.scales[D].getPixelForValue(z))}R=t.top,P=t.bottom,x=y+g,A=x+f}else if(n==="y"){if(o==="center")y=v((t.left+t.right)/2);else if(Ui(o)){const D=Object.keys(o)[0],z=o[D];y=v(this.chart.scales[D].getPixelForValue(z))}w=y-g,T=w-f,I=t.left,N=t.right}const L=pi(i.ticks.maxTicksLimit,d),$=Math.max(1,Math.ceil(d/L));for(_=0;_<d;_+=$){const D=this.getContext(_),z=a.setContext(D),U=s.setContext(D),H=z.lineWidth,M=z.color,B=U.dash||[],k=U.dashOffset,F=z.tickWidth,G=z.tickColor,q=z.tickBorderDash||[],W=z.tickBorderDashOffset;S=tWn(this,_,l),S!==void 0&&(C=w2(r,S,H),c?w=T=I=N=C:x=A=R=P=C,p.push({tx1:w,ty1:x,tx2:T,ty2:A,x1:I,y1:R,x2:N,y2:P,width:H,color:M,borderDash:B,borderDashOffset:k,tickWidth:F,tickColor:G,tickBorderDash:q,tickBorderDashOffset:W}))}return this._ticksLength=d,this._borderValue=y,p}_computeLabelItems(t){const n=this.axis,r=this.options,{position:i,ticks:a}=r,o=this.isHorizontal(),s=this.ticks,{align:l,crossAlign:c,padding:u,mirror:d}=a,f=EI(r.grid),p=f+u,h=d?-u:p,m=-Kh(this.labelRotation),g=[];let v,y,_,S,C,w,x,T,A,I,R,N,P="middle";if(i==="top")w=this.bottom-h,x=this._getXAxisLabelAlignment();else if(i==="bottom")w=this.top+h,x=this._getXAxisLabelAlignment();else if(i==="left"){const $=this._getYAxisLabelAlignment(f);x=$.textAlign,C=$.x}else if(i==="right"){const $=this._getYAxisLabelAlignment(f);x=$.textAlign,C=$.x}else if(n==="x"){if(i==="center")w=(t.top+t.bottom)/2+p;else if(Ui(i)){const $=Object.keys(i)[0],D=i[$];w=this.chart.scales[$].getPixelForValue(D)+p}x=this._getXAxisLabelAlignment()}else if(n==="y"){if(i==="center")C=(t.left+t.right)/2-p;else if(Ui(i)){const $=Object.keys(i)[0],D=i[$];C=this.chart.scales[$].getPixelForValue(D)}x=this._getYAxisLabelAlignment(f).textAlign}n==="y"&&(l==="start"?P="top":l==="end"&&(P="bottom"));const L=this._getLabelSizes();for(v=0,y=s.length;v<y;++v){_=s[v],S=_.label;const $=a.setContext(this.getContext(v));T=this.getPixelForTick(v)+a.labelOffset,A=this._resolveTickFontOptions(v),I=A.lineHeight,R=jo(S)?S.length:1;const D=R/2,z=$.color,U=$.textStrokeColor,H=$.textStrokeWidth;let M=x;o?(C=T,x==="inner"&&(v===y-1?M=this.options.reverse?"left":"right":v===0?M=this.options.reverse?"right":"left":M="center"),i==="top"?c==="near"||m!==0?N=-R*I+I/2:c==="center"?N=-L.highest.height/2-D*I+I:N=-L.highest.height+I/2:c==="near"||m!==0?N=I/2:c==="center"?N=L.highest.height/2-D*I:N=L.highest.height-R*I,d&&(N*=-1),m!==0&&!$.showLabelBackdrop&&(C+=I/2*Math.sin(m))):(w=T,N=(1-R)*I/2);let B;if($.showLabelBackdrop){const k=Tc($.backdropPadding),F=L.heights[v],G=L.widths[v];let q=N-k.top,W=0-k.left;switch(P){case"middle":q-=F/2;break;case"bottom":q-=F;break}switch(x){case"center":W-=G/2;break;case"right":W-=G;break;case"inner":v===y-1?W-=G:v>0&&(W-=G/2);break}B={left:W,top:q,width:G+k.width,height:F+k.height,color:$.backdropColor}}g.push({label:S,font:A,textOffset:N,options:{rotation:m,color:z,strokeColor:U,strokeWidth:H,textAlign:M,textBaseline:P,translation:[C,w],backdrop:B}})}return g}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-Kh(this.labelRotation))return t==="top"?"left":"right";let i="center";return n.align==="start"?i="left":n.align==="end"?i="right":n.align==="inner"&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:r,mirror:i,padding:a}}=this.options,o=this._getLabelSizes(),s=t+a,l=o.widest.width;let c,u;return n==="left"?i?(u=this.right+a,r==="near"?c="left":r==="center"?(c="center",u+=l/2):(c="right",u+=l)):(u=this.right-s,r==="near"?c="right":r==="center"?(c="center",u-=l/2):(c="left",u=this.left)):n==="right"?i?(u=this.left+a,r==="near"?c="right":r==="center"?(c="center",u-=l/2):(c="left",u-=l)):(u=this.left+s,r==="near"?c="left":r==="center"?(c="center",u+=l/2):(c="right",u=this.right)):c="right",{textAlign:c,x:u}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:r,top:i,width:a,height:o}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(r,i,a,o),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const i=this.ticks.findIndex(a=>a.value===t);return i>=0?n.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const n=this.options.grid,r=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let a,o;const s=(l,c,u)=>{!u.width||!u.color||(r.save(),r.lineWidth=u.width,r.strokeStyle=u.color,r.setLineDash(u.borderDash||[]),r.lineDashOffset=u.borderDashOffset,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(c.x,c.y),r.stroke(),r.restore())};if(n.display)for(a=0,o=i.length;a<o;++a){const l=i[a];n.drawOnChartArea&&s({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&s({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:n,options:{border:r,grid:i}}=this,a=r.setContext(this.getContext()),o=r.display?a.width:0;if(!o)return;const s=i.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let c,u,d,f;this.isHorizontal()?(c=w2(t,this.left,o)-o/2,u=w2(t,this.right,s)+s/2,d=f=l):(d=w2(t,this.top,o)-o/2,f=w2(t,this.bottom,s)+s/2,c=u=l),n.save(),n.lineWidth=a.width,n.strokeStyle=a.color,n.beginPath(),n.moveTo(c,d),n.lineTo(u,f),n.stroke(),n.restore()}drawLabels(t){if(!this.options.ticks.display)return;const r=this.ctx,i=this._computeLabelArea();i&&BU(r,i);const a=this.getLabelItems(t);for(const o of a){const s=o.options,l=o.font,c=o.label,u=o.textOffset;nC(r,c,0,u,l,s)}i&&jU(r)}drawTitle(){const{ctx:t,options:{position:n,title:r,reverse:i}}=this;if(!r.display)return;const a=ml(r.font),o=Tc(r.padding),s=r.align;let l=a.lineHeight/2;n==="bottom"||n==="center"||Ui(n)?(l+=o.bottom,jo(r.text)&&(l+=a.lineHeight*(r.text.length-1))):l+=o.top;const{titleX:c,titleY:u,maxWidth:d,rotation:f}=oWn(this,l,n,s);nC(t,r.text,0,0,a,{color:r.color,maxWidth:d,rotation:f,textAlign:aWn(s,n,i),textBaseline:"middle",translation:[c,u]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,n=t.ticks&&t.ticks.z||0,r=pi(t.grid&&t.grid.z,-1),i=pi(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==Gnt.prototype.draw?[{z:n,draw:a=>{this.draw(a)}}]:[{z:r,draw:a=>{this.drawBackground(),this.drawGrid(a),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:a=>{this.drawLabels(a)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[];let a,o;for(a=0,o=n.length;a<o;++a){const s=n[a];s[r]===this.id&&(!t||s.type===t)&&i.push(s)}return i}_resolveTickFontOptions(t){const n=this.options.ticks.setContext(this.getContext(t));return ml(n.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}};class ck{constructor(t,n,r){this.type=t,this.scope=n,this.override=r,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const n=Object.getPrototypeOf(t);let r;cWn(n)&&(r=this.register(n));const i=this.items,a=t.id,o=this.scope+"."+a;if(!a)throw new Error("class does not have id: "+t);return a in i||(i[a]=t,sWn(t,o,r),this.override&&hs.override(t.id,t.overrides)),o}get(t){return this.items[t]}unregister(t){const n=this.items,r=t.id,i=this.scope;r in n&&delete n[r],i&&r in hs[i]&&(delete hs[i][r],this.override&&delete tC[r])}}function sWn(e,t,n){const r=ov(Object.create(null),[n?hs.get(n):{},hs.get(t),e.defaults]);hs.set(t,r),e.defaultRoutes&&lWn(t,e.defaultRoutes),e.descriptors&&hs.describe(t,e.descriptors)}function lWn(e,t){Object.keys(t).forEach(n=>{const r=n.split("."),i=r.pop(),a=[e].concat(r).join("."),o=t[n].split("."),s=o.pop(),l=o.join(".");hs.route(a,i,l,s)})}function cWn(e){return"id"in e&&"defaults"in e}class uWn{constructor(){this.controllers=new ck(H_,"datasets",!0),this.elements=new ck(C0,"elements"),this.plugins=new ck(Object,"plugins"),this.scales=new ck(m8,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,r){[...n].forEach(i=>{const a=r||this._getRegistryForType(i);r||a.isForType(i)||a===this.plugins&&i.id?this._exec(t,a,i):Ba(i,o=>{const s=r||this._getRegistryForType(o);this._exec(t,s,o)})})}_exec(t,n,r){const i=ome(t);io(r["before"+i],[],r),n[t](r),io(r["after"+i],[],r)}_getRegistryForType(t){for(let n=0;n<this._typedRegistries.length;n++){const r=this._typedRegistries[n];if(r.isForType(t))return r}return this.plugins}_get(t,n,r){const i=n.get(t);if(i===void 0)throw new Error('"'+t+'" is not a registered '+r+".");return i}}var Sg=new uWn;class dWn{constructor(){this._init=[]}notify(t,n,r,i){n==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const a=i?this._descriptors(t).filter(i):this._descriptors(t),o=this._notify(a,t,n,r);return n==="afterDestroy"&&(this._notify(a,t,"stop"),this._notify(this._init,t,"uninstall")),o}_notify(t,n,r,i){i=i||{};for(const a of t){const o=a.plugin,s=o[r],l=[n,i,a.options];if(io(s,l,o)===!1&&i.cancelable)return!1}return!0}invalidate(){$i(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),n}_createDescriptors(t,n){const r=t&&t.config,i=pi(r.options&&r.options.plugins,{}),a=fWn(r);return i===!1&&!n?[]:hWn(t,a,i,n)}_notifyStateChanges(t){const n=this._oldCache||[],r=this._cache,i=(a,o)=>a.filter(s=>!o.some(l=>s.plugin.id===l.plugin.id));this._notify(i(n,r),t,"stop"),this._notify(i(r,n),t,"start")}}function fWn(e){const t={},n=[],r=Object.keys(Sg.plugins.items);for(let a=0;a<r.length;a++)n.push(Sg.getPlugin(r[a]));const i=e.plugins||[];for(let a=0;a<i.length;a++){const o=i[a];n.indexOf(o)===-1&&(n.push(o),t[o.id]=!0)}return{plugins:n,localIds:t}}function pWn(e,t){return!t&&e===!1?null:e===!0?{}:e}function hWn(e,{plugins:t,localIds:n},r,i){const a=[],o=e.getContext();for(const s of t){const l=s.id,c=pWn(r[l],i);c!==null&&a.push({plugin:s,options:mWn(e.config,{plugin:s,local:n[l]},c,o)})}return a}function mWn(e,{plugin:t,local:n},r,i){const a=e.pluginScopeKeys(t),o=e.getOptionScopes(r,a);return n&&t.defaults&&o.push(t.defaults),e.createResolver(o,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function joe(e,t){const n=hs.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function gWn(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function vWn(e,t){return e===t?"_index_":"_value_"}function yNe(e){if(e==="x"||e==="y"||e==="r")return e}function yWn(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function zoe(e,...t){if(yNe(e))return e;for(const n of t){const r=n.axis||yWn(n.position)||e.length>1&&yNe(e[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function bNe(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function bWn(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(r=>r.xAxisID===e||r.yAxisID===e);if(n.length)return bNe(e,"x",n[0])||bNe(e,"y",n[0])}return{}}function _Wn(e,t){const n=tC[e.type]||{scales:{}},r=t.scales||{},i=joe(e.type,t),a=Object.create(null);return Object.keys(r).forEach(o=>{const s=r[o];if(!Ui(s))return console.error(`Invalid scale configuration for scale: ${o}`);if(s._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${o}`);const l=zoe(o,s,bWn(o,e),hs.scales[s.type]),c=vWn(l,i),u=n.scales||{};a[o]=TR(Object.create(null),[{axis:l},s,u[l],u[c]])}),e.data.datasets.forEach(o=>{const s=o.type||e.type,l=o.indexAxis||joe(s,t),u=(tC[s]||{}).scales||{};Object.keys(u).forEach(d=>{const f=gWn(d,l),p=o[f+"AxisID"]||f;a[p]=a[p]||Object.create(null),TR(a[p],[{axis:f},r[p],u[d]])})}),Object.keys(a).forEach(o=>{const s=a[o];TR(s,[hs.scales[s.type],hs.scale])}),a}function qnt(e){const t=e.options||(e.options={});t.plugins=pi(t.plugins,{}),t.scales=_Wn(e,t)}function Wnt(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function SWn(e){return e=e||{},e.data=Wnt(e.data),qnt(e),e}const _Ne=new Map,Ynt=new Set;function uk(e,t){let n=_Ne.get(e);return n||(n=t(),_Ne.set(e,n),Ynt.add(n)),n}const CI=(e,t,n)=>{const r=c_(t,n);r!==void 0&&e.add(r)};class EWn{constructor(t){this._config=SWn(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=Wnt(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),qnt(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return uk(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return uk(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return uk(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return uk(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const r=this._scopeCache;let i=r.get(t);return(!i||n)&&(i=new Map,r.set(t,i)),i}getOptionScopes(t,n,r){const{options:i,type:a}=this,o=this._cachedScopes(t,r),s=o.get(n);if(s)return s;const l=new Set;n.forEach(u=>{t&&(l.add(t),u.forEach(d=>CI(l,t,d))),u.forEach(d=>CI(l,i,d)),u.forEach(d=>CI(l,tC[a]||{},d)),u.forEach(d=>CI(l,hs,d)),u.forEach(d=>CI(l,Foe,d))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),Ynt.has(n)&&o.set(n,c),c}chartOptionScopes(){const{options:t,type:n}=this;return[t,tC[n]||{},hs.datasets[n]||{},{type:n},hs,Foe]}resolveNamedOptions(t,n,r,i=[""]){const a={$shared:!0},{resolver:o,subPrefixes:s}=SNe(this._resolverCache,t,i);let l=o;if(wWn(o,n)){a.$shared=!1,r=u_(r)?r():r;const c=this.createResolver(t,r,s);l=k3(o,r,c)}for(const c of n)a[c]=l[c];return a}createResolver(t,n,r=[""],i){const{resolver:a}=SNe(this._resolverCache,t,r);return Ui(n)?k3(a,n,void 0,i):a}}function SNe(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const i=n.join();let a=r.get(i);return a||(a={resolver:fme(t,n),subPrefixes:n.filter(s=>!s.toLowerCase().includes("hover"))},r.set(i,a)),a}const CWn=e=>Ui(e)&&Object.getOwnPropertyNames(e).some(t=>u_(e[t]));function wWn(e,t){const{isScriptable:n,isIndexable:r}=xnt(e);for(const i of t){const a=n(i),o=r(i),s=(o||a)&&e[i];if(a&&(u_(s)||CWn(s))||o&&jo(s))return!0}return!1}var xWn="4.4.3";const TWn=["top","bottom","left","right","chartArea"];function ENe(e,t){return e==="top"||e==="bottom"||TWn.indexOf(e)===-1&&t==="x"}function CNe(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function wNe(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),io(n&&n.onComplete,[e],t)}function IWn(e){const t=e.chart,n=t.options.animation;io(n&&n.onProgress,[e],t)}function Knt(e){return mme()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const zM={},xNe=e=>{const t=Knt(e);return Object.values(zM).filter(n=>n.canvas===t).pop()};function AWn(e,t,n){const r=Object.keys(e);for(const i of r){const a=+i;if(a>=t){const o=e[i];delete e[i],(n>0||a>t)&&(e[a+n]=o)}}}function RWn(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}function dk(e,t,n){return e.options.clip?e[n]:t[n]}function NWn(e,t){const{xScale:n,yScale:r}=e;return n&&r?{left:dk(n,t,"left"),right:dk(n,t,"right"),top:dk(r,t,"top"),bottom:dk(r,t,"bottom")}:t}class FF{static defaults=hs;static instances=zM;static overrides=tC;static registry=Sg;static version=xWn;static getChart=xNe;static register(...t){Sg.add(...t),TNe()}static unregister(...t){Sg.remove(...t),TNe()}constructor(t,n){const r=this.config=new EWn(n),i=Knt(t),a=xNe(i);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas with ID '"+a.canvas.id+"' can be reused.");const o=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||Wqn(i)),this.platform.updateConfig(r);const s=this.platform.acquireContext(i,o.aspectRatio),l=s&&s.canvas,c=l&&l.height,u=l&&l.width;if(this.id=TVn(),this.ctx=s,this.canvas=l,this.width=u,this.height=c,this._options=o,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new dWn,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=UVn(d=>this.update(d),o.resizeDelay||0),this._dataChanges=[],zM[this.id]=this,!s||!l){console.error("Failed to create chart: can't acquire context from the given item");return}p1.listen(this,"complete",wNe),p1.listen(this,"progress",IWn),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:i,_aspectRatio:a}=this;return $i(t)?n&&a?a:i?r/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return Sg}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():WRe(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return VRe(this.canvas,this.ctx),this}stop(){return p1.stop(this),this}resize(t,n){p1.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const r=this.options,i=this.canvas,a=r.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(i,t,n,a),s=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,WRe(this,s,!0)&&(this.notifyPlugins("resize",{size:o}),io(r.onResize,[this,o],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};Ba(n,(r,i)=>{r.id=i})}buildOrUpdateScales(){const t=this.options,n=t.scales,r=this.scales,i=Object.keys(r).reduce((o,s)=>(o[s]=!1,o),{});let a=[];n&&(a=a.concat(Object.keys(n).map(o=>{const s=n[o],l=zoe(o,s),c=l==="r",u=l==="x";return{options:s,dposition:c?"chartArea":u?"bottom":"left",dtype:c?"radialLinear":u?"category":"linear"}}))),Ba(a,o=>{const s=o.options,l=s.id,c=zoe(l,s),u=pi(s.type,o.dtype);(s.position===void 0||ENe(s.position,c)!==ENe(o.dposition))&&(s.position=o.dposition),i[l]=!0;let d=null;if(l in r&&r[l].type===u)d=r[l];else{const f=Sg.getScale(u);d=new f({id:l,type:u,ctx:this.ctx,chart:this}),r[d.id]=d}d.init(s,t)}),Ba(i,(o,s)=>{o||delete r[s]}),Ba(r,o=>{Jc.configure(this,o,o.options),Jc.addBox(this,o)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,r=t.length;if(t.sort((i,a)=>i.index-a.index),r>n){for(let i=n;i<r;++i)this._destroyDatasetMeta(i);t.splice(n,r-n)}this._sortedMetasets=t.slice(0).sort(CNe("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:n}}=this;t.length>n.length&&delete this._stacks,t.forEach((r,i)=>{n.filter(a=>a===r._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let r,i;for(this._removeUnreferencedMetasets(),r=0,i=n.length;r<i;r++){const a=n[r];let o=this.getDatasetMeta(r);const s=a.type||this.config.type;if(o.type&&o.type!==s&&(this._destroyDatasetMeta(r),o=this.getDatasetMeta(r)),o.type=s,o.indexAxis=a.indexAxis||joe(s,this.options),o.order=a.order||0,o.index=r,o.label=""+a.label,o.visible=this.isDatasetVisible(r),o.controller)o.controller.updateIndex(r),o.controller.linkScales();else{const l=Sg.getController(s),{datasetElementType:c,dataElementType:u}=hs.datasets[s];Object.assign(l,{dataElementType:Sg.getElement(u),datasetElementType:c&&Sg.getElement(c)}),o.controller=new l(this,r),t.push(o.controller)}}return this._updateMetasets(),t}_resetElements(){Ba(this.data.datasets,(t,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const a=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let c=0,u=this.data.datasets.length;c<u;c++){const{controller:d}=this.getDatasetMeta(c),f=!i&&a.indexOf(d)===-1;d.buildOrUpdateElements(f),o=Math.max(+d.getMaxOverflow(),o)}o=this._minPadding=r.layout.autoPadding?o:0,this._updateLayout(o),i||Ba(a,c=>{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(CNe("z","_idx"));const{_active:s,_lastEvent:l}=this;l?this._eventHandler(l,!0):s.length&&this._updateHoverStyles(s,s,!0),this.render()}_updateScales(){Ba(this.scales,t=>{Jc.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!MRe(n,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:i,count:a}of n){const o=r==="_removeElements"?-a:a;AWn(t,i,o)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=a=>new Set(t.filter(o=>o[0]===a).map((o,s)=>s+","+o.splice(1).join(","))),i=r(0);for(let a=1;a<n;a++)if(!MRe(i,r(a)))return;return Array.from(i).map(a=>a.split(",")).map(a=>({method:a[1],start:+a[2],count:+a[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Jc.update(this,this.width,this.height,t);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],Ba(this.boxes,i=>{r&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,a)=>{i._idx=a}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n<r;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,r=this.data.datasets.length;n<r;++n)this._updateDataset(n,u_(t)?t({datasetIndex:n}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,n){const r=this.getDatasetMeta(t),i={meta:r,index:t,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",i)!==!1&&(r.controller._update(n),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(p1.has(this)?this.attached&&!p1.running(this)&&p1.start(this):(this.draw(),wNe({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:r,height:i}=this._resizeBeforeDraw;this._resize(r,i),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(this.chartArea);for(this._drawDatasets();t<n.length;++t)n[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const n=this._sortedMetasets,r=[];let i,a;for(i=0,a=n.length;i<a;++i){const o=n[i];(!t||o.visible)&&r.push(o)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let n=t.length-1;n>=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,r=t._clip,i=!r.disabled,a=NWn(t,this.chartArea),o={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",o)!==!1&&(i&&BU(n,{left:r.left===!1?0:a.left-r.left,right:r.right===!1?this.width:a.right+r.right,top:r.top===!1?0:a.top-r.top,bottom:r.bottom===!1?this.height:a.bottom+r.bottom}),t.controller.draw(),i&&jU(n),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(t){return P1(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,i){const a=Tqn.modes[n];return typeof a=="function"?a(this,t,r,i):[]}getDatasetMeta(t){const n=this.data.datasets[t],r=this._metasets;let i=r.filter(a=>a&&a._dataset===n).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},r.push(i)),i}getContext(){return this.$context||(this.$context=U_(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(t,n){const r=this.getDatasetMeta(t);r.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,r){const i=r?"show":"hide",a=this.getDatasetMeta(t),o=a.controller._resolveAnimations(void 0,i);l6(n)?(a.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),o.update(a,{visible:r}),this.update(s=>s.datasetIndex===t?i:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),p1.remove(this),t=0,n=this.data.datasets.length;t<n;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:n}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),VRe(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete zM[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,n=this.platform,r=(a,o)=>{n.addEventListener(this,a,o),t[a]=o},i=(a,o,s)=>{a.offsetX=o,a.offsetY=s,this._eventHandler(a)};Ba(this.options.events,a=>r(a,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,r=(l,c)=>{n.addEventListener(this,l,c),t[l]=c},i=(l,c)=>{t[l]&&(n.removeEventListener(this,l,c),delete t[l])},a=(l,c)=>{this.canvas&&this.resize(l,c)};let o;const s=()=>{i("attach",s),this.attached=!0,this.resize(),r("resize",a),r("detach",o)};o=()=>{this.attached=!1,i("resize",a),this._stop(),this._resize(0,0),r("attach",s)},n.isAttached(this.canvas)?s():o()}unbindEvents(){Ba(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},Ba(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,r){const i=r?"set":"remove";let a,o,s,l;for(n==="dataset"&&(a=this.getDatasetMeta(t[0].datasetIndex),a.controller["_"+i+"DatasetHoverStyle"]()),s=0,l=t.length;s<l;++s){o=t[s];const c=o&&this.getDatasetMeta(o.datasetIndex).controller;c&&c[i+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const n=this._active||[],r=t.map(({datasetIndex:a,index:o})=>{const s=this.getDatasetMeta(a);if(!s)throw new Error("No dataset found at index "+a);return{datasetIndex:a,element:s.data[o],index:o}});!LF(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(t,n,r){return this._plugins.notify(this,t,n,r)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,r){const i=this.options.hover,a=(l,c)=>l.filter(u=>!c.some(d=>u.datasetIndex===d.datasetIndex&&u.index===d.index)),o=a(n,t),s=r?t:a(t,n);o.length&&this.updateHoverStyle(o,i.mode,!1),s.length&&i.mode&&this.updateHoverStyle(s,i.mode,!0)}_eventHandler(t,n){const r={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},i=o=>(o.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,i)===!1)return;const a=this._handleEvent(t,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(a||r.changed)&&this.render(),this}_handleEvent(t,n,r){const{_active:i=[],options:a}=this,o=n,s=this._getActiveElements(t,i,r,o),l=LVn(t),c=RWn(t,this._lastEvent,r,l);r&&(this._lastEvent=null,io(a.onHover,[t,s,this],this),l&&io(a.onClick,[t,s,this],this));const u=!LF(s,i);return(u||n)&&(this._active=s,this._updateHoverStyles(s,i,n)),this._lastEvent=c,u}_getActiveElements(t,n,r,i){if(t.type==="mouseout")return[];if(!r)return n;const a=this.options.hover;return this.getElementsAtEventForMode(t,a.mode,a,i)}}function TNe(){return Ba(FF.instances,e=>e._plugins.invalidate())}function OWn(e,t,n){const{startAngle:r,pixelMargin:i,x:a,y:o,outerRadius:s,innerRadius:l}=t;let c=i/s;e.beginPath(),e.arc(a,o,s,r-c,n+c),l>i?(c=i/l,e.arc(a,o,l,n+c,r-c,!0)):e.arc(a,o,i,n+Zs,r-Zs),e.closePath(),e.clip()}function LWn(e){return dme(e,["outerStart","outerEnd","innerStart","innerEnd"])}function PWn(e,t,n,r){const i=LWn(e.options.borderRadius),a=(n-t)/2,o=Math.min(a,r*t/2),s=l=>{const c=(n-Math.min(a,l))*r/2;return Kl(l,0,Math.min(a,c))};return{outerStart:s(i.outerStart),outerEnd:s(i.outerEnd),innerStart:Kl(i.innerStart,0,o),innerEnd:Kl(i.innerEnd,0,o)}}function Mw(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function BF(e,t,n,r,i,a){const{x:o,y:s,startAngle:l,pixelMargin:c,innerRadius:u}=t,d=Math.max(t.outerRadius+r+n-c,0),f=u>0?u+r+n+c:0;let p=0;const h=i-l;if(r){const $=u>0?u-r:0,D=d>0?d-r:0,z=($+D)/2,U=z!==0?h*z/(z+r):h;p=(h-U)/2}const m=Math.max(.001,h*d-n/Ho)/d,g=(h-m)/2,v=l+g+p,y=i-g-p,{outerStart:_,outerEnd:S,innerStart:C,innerEnd:w}=PWn(t,f,d,y-v),x=d-_,T=d-S,A=v+_/x,I=y-S/T,R=f+C,N=f+w,P=v+C/R,L=y-w/N;if(e.beginPath(),a){const $=(A+I)/2;if(e.arc(o,s,d,A,$),e.arc(o,s,d,$,I),S>0){const H=Mw(T,I,o,s);e.arc(H.x,H.y,S,I,y+Zs)}const D=Mw(N,y,o,s);if(e.lineTo(D.x,D.y),w>0){const H=Mw(N,L,o,s);e.arc(H.x,H.y,w,y+Zs,L+Math.PI)}const z=(y-w/f+(v+C/f))/2;if(e.arc(o,s,f,y-w/f,z,!0),e.arc(o,s,f,z,v+C/f,!0),C>0){const H=Mw(R,P,o,s);e.arc(H.x,H.y,C,P+Math.PI,v-Zs)}const U=Mw(x,v,o,s);if(e.lineTo(U.x,U.y),_>0){const H=Mw(x,A,o,s);e.arc(H.x,H.y,_,v-Zs,A)}}else{e.moveTo(o,s);const $=Math.cos(A)*d+o,D=Math.sin(A)*d+s;e.lineTo($,D);const z=Math.cos(I)*d+o,U=Math.sin(I)*d+s;e.lineTo(z,U)}e.closePath()}function kWn(e,t,n,r,i){const{fullCircles:a,startAngle:o,circumference:s}=t;let l=t.endAngle;if(a){BF(e,t,n,r,l,i);for(let c=0;c<a;++c)e.fill();isNaN(s)||(l=o+(s%Uo||Uo))}return BF(e,t,n,r,l,i),e.fill(),l}function MWn(e,t,n,r,i){const{fullCircles:a,startAngle:o,circumference:s,options:l}=t,{borderWidth:c,borderJoinStyle:u,borderDash:d,borderDashOffset:f}=l,p=l.borderAlign==="inner";if(!c)return;e.setLineDash(d||[]),e.lineDashOffset=f,p?(e.lineWidth=c*2,e.lineJoin=u||"round"):(e.lineWidth=c,e.lineJoin=u||"bevel");let h=t.endAngle;if(a){BF(e,t,n,r,h,i);for(let m=0;m<a;++m)e.stroke();isNaN(s)||(h=o+(s%Uo||Uo))}p&&OWn(e,t,h),a||(BF(e,t,n,r,h,i),e.stroke())}class Xnt extends C0{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:t=>t!=="borderDash"};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,n,r){const i=this.getProps(["x","y"],r),{angle:a,distance:o}=mnt(i,{x:t,y:n}),{startAngle:s,endAngle:l,innerRadius:c,outerRadius:u,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],r),f=(this.options.spacing+this.options.borderWidth)/2,h=pi(d,l-s)>=Uo||c6(a,s,l),m=O1(o,c+f,u+f);return h&&m}getCenterPoint(t){const{x:n,y:r,startAngle:i,endAngle:a,innerRadius:o,outerRadius:s}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],t),{offset:l,spacing:c}=this.options,u=(i+a)/2,d=(o+s+c+l)/2;return{x:n+Math.cos(u)*d,y:r+Math.sin(u)*d}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:n,circumference:r}=this,i=(n.offset||0)/4,a=(n.spacing||0)/2,o=n.circular;if(this.pixelMargin=n.borderAlign==="inner"?.33:0,this.fullCircles=r>Uo?Math.floor(r/Uo):0,r===0||this.innerRadius<0||this.outerRadius<0)return;t.save();const s=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(s)*i,Math.sin(s)*i);const l=1-Math.sin(Math.min(Ho,r||0)),c=i*l;t.fillStyle=n.backgroundColor,t.strokeStyle=n.borderColor,kWn(t,this,c,a,o),MWn(t,this,c,a,o),t.restore()}}function Znt(e,t,n=t){e.lineCap=pi(n.borderCapStyle,t.borderCapStyle),e.setLineDash(pi(n.borderDash,t.borderDash)),e.lineDashOffset=pi(n.borderDashOffset,t.borderDashOffset),e.lineJoin=pi(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=pi(n.borderWidth,t.borderWidth),e.strokeStyle=pi(n.borderColor,t.borderColor)}function DWn(e,t,n){e.lineTo(n.x,n.y)}function $Wn(e){return e.stepped?eGn:e.tension||e.cubicInterpolationMode==="monotone"?tGn:DWn}function Qnt(e,t,n={}){const r=e.length,{start:i=0,end:a=r-1}=n,{start:o,end:s}=t,l=Math.max(i,o),c=Math.min(a,s),u=i<o&&a<o||i>s&&a>s;return{count:r,start:l,loop:t.loop,ilen:c<l&&!u?r+c-l:c-l}}function FWn(e,t,n,r){const{points:i,options:a}=t,{count:o,start:s,loop:l,ilen:c}=Qnt(i,n,r),u=$Wn(a);let{move:d=!0,reverse:f}=r||{},p,h,m;for(p=0;p<=c;++p)h=i[(s+(f?c-p:p))%o],!h.skip&&(d?(e.moveTo(h.x,h.y),d=!1):u(e,m,h,f,a.stepped),m=h);return l&&(h=i[(s+(f?c:0))%o],u(e,m,h,f,a.stepped)),!!l}function BWn(e,t,n,r){const i=t.points,{count:a,start:o,ilen:s}=Qnt(i,n,r),{move:l=!0,reverse:c}=r||{};let u=0,d=0,f,p,h,m,g,v;const y=S=>(o+(c?s-S:S))%a,_=()=>{m!==g&&(e.lineTo(u,g),e.lineTo(u,m),e.lineTo(u,v))};for(l&&(p=i[y(0)],e.moveTo(p.x,p.y)),f=0;f<=s;++f){if(p=i[y(f)],p.skip)continue;const S=p.x,C=p.y,w=S|0;w===h?(C<m?m=C:C>g&&(g=C),u=(d*u+S)/++d):(_(),e.lineTo(S,C),h=w,d=0,m=g=C),v=C}_()}function Uoe(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?BWn:FWn}function jWn(e){return e.stepped?PGn:e.tension||e.cubicInterpolationMode==="monotone"?kGn:vS}function zWn(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),Znt(e,t.options),e.stroke(i)}function UWn(e,t,n,r){const{segments:i,options:a}=t,o=Uoe(t);for(const s of i)Znt(e,a,s.style),e.beginPath(),o(e,t,s,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}const HWn=typeof Path2D=="function";function VWn(e,t,n,r){HWn&&!t.options.segment?zWn(e,t,n,r):UWn(e,t,n,r)}class UU extends C0{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"};constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){const r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const i=r.spanGaps?this._loop:this._fullLoop;xGn(this._points,r,t,i,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=jGn(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,r=t.length;return r&&n[t[r-1].end]}interpolate(t,n){const r=this.options,i=t[n],a=this.points,o=Mnt(this,{property:n,start:i,end:i});if(!o.length)return;const s=[],l=jWn(r);let c,u;for(c=0,u=o.length;c<u;++c){const{start:d,end:f}=o[c],p=a[d],h=a[f];if(p===h){s.push(p);continue}const m=Math.abs((i-p[n])/(h[n]-p[n])),g=l(p,h,m,r.stepped);g[n]=t[n],s.push(g)}return s.length===1?s[0]:s}pathSegment(t,n,r){return Uoe(this)(t,this,n,r)}path(t,n,r){const i=this.segments,a=Uoe(this);let o=this._loop;n=n||0,r=r||this.points.length-n;for(const s of i)o&=a(t,this,s,{start:n,end:n+r-1});return!!o}draw(t,n,r,i){const a=this.options||{};(this.points||[]).length&&a.borderWidth&&(t.save(),VWn(t,this,r,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function INe(e,t,n,r){const i=e.options,{[n]:a}=e.getProps([n],r);return Math.abs(t-a)<i.radius+i.hitRadius}class Jnt extends C0{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,n,r){const i=this.options,{x:a,y:o}=this.getProps(["x","y"],r);return Math.pow(t-a,2)+Math.pow(n-o,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(t,n){return INe(this,t,"x",n)}inYRange(t,n){return INe(this,t,"y",n)}getCenterPoint(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}size(t){t=t||this.options||{};let n=t.radius||0;n=Math.max(n,n&&t.hoverRadius||0);const r=n&&t.borderWidth||0;return(n+r)*2}draw(t,n){const r=this.options;this.skip||r.radius<.1||!P1(this,n,this.size(r)/2)||(t.strokeStyle=r.borderColor,t.lineWidth=r.borderWidth,t.fillStyle=r.backgroundColor,Boe(t,r,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}function ert(e,t){const{x:n,y:r,base:i,width:a,height:o}=e.getProps(["x","y","base","width","height"],t);let s,l,c,u,d;return e.horizontal?(d=o/2,s=Math.min(n,i),l=Math.max(n,i),c=r-d,u=r+d):(d=a/2,s=n-d,l=n+d,c=Math.min(r,i),u=Math.max(r,i)),{left:s,top:c,right:l,bottom:u}}function _b(e,t,n,r){return e?0:Kl(t,n,r)}function GWn(e,t,n){const r=e.options.borderWidth,i=e.borderSkipped,a=wnt(r);return{t:_b(i.top,a.top,0,n),r:_b(i.right,a.right,0,t),b:_b(i.bottom,a.bottom,0,n),l:_b(i.left,a.left,0,t)}}function qWn(e,t,n){const{enableBorderRadius:r}=e.getProps(["enableBorderRadius"]),i=e.options.borderRadius,a=mE(i),o=Math.min(t,n),s=e.borderSkipped,l=r||Ui(i);return{topLeft:_b(!l||s.top||s.left,a.topLeft,0,o),topRight:_b(!l||s.top||s.right,a.topRight,0,o),bottomLeft:_b(!l||s.bottom||s.left,a.bottomLeft,0,o),bottomRight:_b(!l||s.bottom||s.right,a.bottomRight,0,o)}}function WWn(e){const t=ert(e),n=t.right-t.left,r=t.bottom-t.top,i=GWn(e,n/2,r/2),a=qWn(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r,radius:a},inner:{x:t.left+i.l,y:t.top+i.t,w:n-i.l-i.r,h:r-i.t-i.b,radius:{topLeft:Math.max(0,a.topLeft-Math.max(i.t,i.l)),topRight:Math.max(0,a.topRight-Math.max(i.t,i.r)),bottomLeft:Math.max(0,a.bottomLeft-Math.max(i.b,i.l)),bottomRight:Math.max(0,a.bottomRight-Math.max(i.b,i.r))}}}}function kJ(e,t,n,r){const i=t===null,a=n===null,s=e&&!(i&&a)&&ert(e,r);return s&&(i||O1(t,s.left,s.right))&&(a||O1(n,s.top,s.bottom))}function YWn(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function KWn(e,t){e.rect(t.x,t.y,t.w,t.h)}function MJ(e,t,n={}){const r=e.x!==n.x?-t:0,i=e.y!==n.y?-t:0,a=(e.x+e.w!==n.x+n.w?t:0)-r,o=(e.y+e.h!==n.y+n.h?t:0)-i;return{x:e.x+r,y:e.y+i,w:e.w+a,h:e.h+o,radius:e.radius}}class trt extends C0{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:n,options:{borderColor:r,backgroundColor:i}}=this,{inner:a,outer:o}=WWn(this),s=YWn(o.radius)?u6:KWn;t.save(),(o.w!==a.w||o.h!==a.h)&&(t.beginPath(),s(t,MJ(o,n,a)),t.clip(),s(t,MJ(a,-n,o)),t.fillStyle=r,t.fill("evenodd")),t.beginPath(),s(t,MJ(a,n)),t.fillStyle=i,t.fill(),t.restore()}inRange(t,n,r){return kJ(this,t,n,r)}inXRange(t,n){return kJ(this,t,null,n)}inYRange(t,n){return kJ(this,null,t,n)}getCenterPoint(t){const{x:n,y:r,base:i,horizontal:a}=this.getProps(["x","y","base","horizontal"],t);return{x:a?(n+i)/2:n,y:a?r:(r+i)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}var XWn=Object.freeze({__proto__:null,ArcElement:Xnt,BarElement:trt,LineElement:UU,PointElement:Jnt});const Hoe=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],ANe=Hoe.map(e=>e.replace("rgb(","rgba(").replace(")",", 0.5)"));function nrt(e){return Hoe[e%Hoe.length]}function rrt(e){return ANe[e%ANe.length]}function ZWn(e,t){return e.borderColor=nrt(t),e.backgroundColor=rrt(t),++t}function QWn(e,t){return e.backgroundColor=e.data.map(()=>nrt(t++)),t}function JWn(e,t){return e.backgroundColor=e.data.map(()=>rrt(t++)),t}function eYn(e){let t=0;return(n,r)=>{const i=e.getDatasetMeta(r).controller;i instanceof vme?t=QWn(n,t):i instanceof Bnt?t=JWn(n,t):i&&(t=ZWn(n,t))}}function RNe(e){let t;for(t in e)if(e[t].borderColor||e[t].backgroundColor)return!0;return!1}function tYn(e){return e&&(e.borderColor||e.backgroundColor)}var nYn={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,t,n){if(!n.enabled)return;const{data:{datasets:r},options:i}=e.config,{elements:a}=i;if(!n.forceOverride&&(RNe(r)||tYn(i)||a&&RNe(a)))return;const o=eYn(e);r.forEach(o)}};function rYn(e,t,n,r,i){const a=i.samples||r;if(a>=n)return e.slice(t,t+n);const o=[],s=(n-2)/(a-2);let l=0;const c=t+n-1;let u=t,d,f,p,h,m;for(o[l++]=e[u],d=0;d<a-2;d++){let g=0,v=0,y;const _=Math.floor((d+1)*s)+1+t,S=Math.min(Math.floor((d+2)*s)+1,n)+t,C=S-_;for(y=_;y<S;y++)g+=e[y].x,v+=e[y].y;g/=C,v/=C;const w=Math.floor(d*s)+1+t,x=Math.min(Math.floor((d+1)*s)+1,n)+t,{x:T,y:A}=e[u];for(p=h=-1,y=w;y<x;y++)h=.5*Math.abs((T-g)*(e[y].y-A)-(T-e[y].x)*(v-A)),h>p&&(p=h,f=e[y],m=y);o[l++]=f,u=m}return o[l++]=e[c],o}function iYn(e,t,n,r){let i=0,a=0,o,s,l,c,u,d,f,p,h,m;const g=[],v=t+n-1,y=e[t].x,S=e[v].x-y;for(o=t;o<t+n;++o){s=e[o],l=(s.x-y)/S*r,c=s.y;const C=l|0;if(C===u)c<h?(h=c,d=o):c>m&&(m=c,f=o),i=(a*i+s.x)/++a;else{const w=o-1;if(!$i(d)&&!$i(f)){const x=Math.min(d,f),T=Math.max(d,f);x!==p&&x!==w&&g.push({...e[x],x:i}),T!==p&&T!==w&&g.push({...e[T],x:i})}o>0&&w!==p&&g.push(e[w]),g.push(s),u=C,a=0,h=m=c,d=f=p=o}}return g}function irt(e){if(e._decimated){const t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,writable:!0,value:t})}}function NNe(e){e.data.datasets.forEach(t=>{irt(t)})}function aYn(e,t){const n=t.length;let r=0,i;const{iScale:a}=e,{min:o,max:s,minDefined:l,maxDefined:c}=a.getUserBounds();return l&&(r=Kl(L1(t,a.axis,o).lo,0,n-1)),c?i=Kl(L1(t,a.axis,s).hi+1,r,n)-r:i=n-r,{start:r,count:i}}var oYn={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,t,n)=>{if(!n.enabled){NNe(e);return}const r=e.width;e.data.datasets.forEach((i,a)=>{const{_data:o,indexAxis:s}=i,l=e.getDatasetMeta(a),c=o||i.data;if(ko([s,e.options.indexAxis])==="y"||!l.controller.supportsDecimation)return;const u=e.scales[l.xAxisID];if(u.type!=="linear"&&u.type!=="time"||e.options.parsing)return;let{start:d,count:f}=aYn(l,c);const p=n.threshold||4*r;if(f<=p){irt(i);return}$i(o)&&(i._data=c,delete i.data,Object.defineProperty(i,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(m){this._data=m}}));let h;switch(n.algorithm){case"lttb":h=rYn(c,d,f,r,n);break;case"min-max":h=iYn(c,d,f,r);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}i._decimated=h})},destroy(e){NNe(e)}};function sYn(e,t,n){const r=e.segments,i=e.points,a=t.points,o=[];for(const s of r){let{start:l,end:c}=s;c=bme(l,c,i);const u=Voe(n,i[l],i[c],s.loop);if(!t.segments){o.push({source:s,target:u,start:i[l],end:i[c]});continue}const d=Mnt(t,u);for(const f of d){const p=Voe(n,a[f.start],a[f.end],f.loop),h=knt(s,i,p);for(const m of h)o.push({source:m,target:f,start:{[n]:ONe(u,p,"start",Math.max)},end:{[n]:ONe(u,p,"end",Math.min)}})}}return o}function Voe(e,t,n,r){if(r)return;let i=t[e],a=n[e];return e==="angle"&&(i=mf(i),a=mf(a)),{property:e,start:i,end:a}}function lYn(e,t){const{x:n=null,y:r=null}=e||{},i=t.points,a=[];return t.segments.forEach(({start:o,end:s})=>{s=bme(o,s,i);const l=i[o],c=i[s];r!==null?(a.push({x:l.x,y:r}),a.push({x:c.x,y:r})):n!==null&&(a.push({x:n,y:l.y}),a.push({x:n,y:c.y}))}),a}function bme(e,t,n){for(;t>e;t--){const r=n[t];if(!isNaN(r.x)&&!isNaN(r.y))break}return t}function ONe(e,t,n,r){return e&&t?r(e[n],t[n]):e?e[n]:t?t[n]:0}function art(e,t){let n=[],r=!1;return jo(e)?(r=!0,n=e):n=lYn(e,t),n.length?new UU({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function LNe(e){return e&&e.fill!==!1}function cYn(e,t,n){let i=e[t].fill;const a=[t];let o;if(!n)return i;for(;i!==!1&&a.indexOf(i)===-1;){if(!Ns(i))return i;if(o=e[i],!o)return!1;if(o.visible)return i;a.push(i),i=o.fill}return!1}function uYn(e,t,n){const r=hYn(e);if(Ui(r))return isNaN(r.value)?!1:r;let i=parseFloat(r);return Ns(i)&&Math.floor(i)===i?dYn(r[0],t,i,n):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function dYn(e,t,n,r){return(e==="-"||e==="+")&&(n=t+n),n===t||n<0||n>=r?!1:n}function fYn(e,t){let n=null;return e==="start"?n=t.bottom:e==="end"?n=t.top:Ui(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}function pYn(e,t,n){let r;return e==="start"?r=n:e==="end"?r=t.options.reverse?t.min:t.max:Ui(e)?r=e.value:r=t.getBaseValue(),r}function hYn(e){const t=e.options,n=t.fill;let r=pi(n&&n.target,n);return r===void 0&&(r=!!t.backgroundColor),r===!1||r===null?!1:r===!0?"origin":r}function mYn(e){const{scale:t,index:n,line:r}=e,i=[],a=r.segments,o=r.points,s=gYn(t,n);s.push(art({x:null,y:t.bottom},r));for(let l=0;l<a.length;l++){const c=a[l];for(let u=c.start;u<=c.end;u++)vYn(i,o[u],s)}return new UU({points:i,options:{}})}function gYn(e,t){const n=[],r=e.getMatchingVisibleMetas("line");for(let i=0;i<r.length;i++){const a=r[i];if(a.index===t)break;a.hidden||n.unshift(a.dataset)}return n}function vYn(e,t,n){const r=[];for(let i=0;i<n.length;i++){const a=n[i],{first:o,last:s,point:l}=yYn(a,t,"x");if(!(!l||o&&s)){if(o)r.unshift(l);else if(e.push(l),!s)break}}e.push(...r)}function yYn(e,t,n){const r=e.interpolate(t,n);if(!r)return{};const i=r[n],a=e.segments,o=e.points;let s=!1,l=!1;for(let c=0;c<a.length;c++){const u=a[c],d=o[u.start][n],f=o[u.end][n];if(O1(i,d,f)){s=i===d,l=i===f;break}}return{first:s,last:l,point:r}}class ort{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,n,r){const{x:i,y:a,radius:o}=this;return n=n||{start:0,end:Uo},t.arc(i,a,o,n.end,n.start,!0),!r.bounds}interpolate(t){const{x:n,y:r,radius:i}=this,a=t.angle;return{x:n+Math.cos(a)*i,y:r+Math.sin(a)*i,angle:a}}}function bYn(e){const{chart:t,fill:n,line:r}=e;if(Ns(n))return _Yn(t,n);if(n==="stack")return mYn(e);if(n==="shape")return!0;const i=SYn(e);return i instanceof ort?i:art(i,r)}function _Yn(e,t){const n=e.getDatasetMeta(t);return n&&e.isDatasetVisible(t)?n.dataset:null}function SYn(e){return(e.scale||{}).getPointPositionForValue?CYn(e):EYn(e)}function EYn(e){const{scale:t={},fill:n}=e,r=fYn(n,t);if(Ns(r)){const i=t.isHorizontal();return{x:i?r:null,y:i?null:r}}return null}function CYn(e){const{scale:t,fill:n}=e,r=t.options,i=t.getLabels().length,a=r.reverse?t.max:t.min,o=pYn(n,t,a),s=[];if(r.grid.circular){const l=t.getPointPositionForValue(0,a);return new ort({x:l.x,y:l.y,radius:t.getDistanceFromCenterForValue(o)})}for(let l=0;l<i;++l)s.push(t.getPointPositionForValue(l,o));return s}function DJ(e,t,n){const r=bYn(t),{line:i,scale:a,axis:o}=t,s=i.options,l=s.fill,c=s.backgroundColor,{above:u=c,below:d=c}=l||{};r&&i.points.length&&(BU(e,n),wYn(e,{line:i,target:r,above:u,below:d,area:n,scale:a,axis:o}),jU(e))}function wYn(e,t){const{line:n,target:r,above:i,below:a,area:o,scale:s}=t,l=n._loop?"angle":t.axis;e.save(),l==="x"&&a!==i&&(PNe(e,r,o.top),kNe(e,{line:n,target:r,color:i,scale:s,property:l}),e.restore(),e.save(),PNe(e,r,o.bottom)),kNe(e,{line:n,target:r,color:a,scale:s,property:l}),e.restore()}function PNe(e,t,n){const{segments:r,points:i}=t;let a=!0,o=!1;e.beginPath();for(const s of r){const{start:l,end:c}=s,u=i[l],d=i[bme(l,c,i)];a?(e.moveTo(u.x,u.y),a=!1):(e.lineTo(u.x,n),e.lineTo(u.x,u.y)),o=!!t.pathSegment(e,s,{move:o}),o?e.closePath():e.lineTo(d.x,n)}e.lineTo(t.first().x,n),e.closePath(),e.clip()}function kNe(e,t){const{line:n,target:r,property:i,color:a,scale:o}=t,s=sYn(n,r,i);for(const{source:l,target:c,start:u,end:d}of s){const{style:{backgroundColor:f=a}={}}=l,p=r!==!0;e.save(),e.fillStyle=f,xYn(e,o,p&&Voe(i,u,d)),e.beginPath();const h=!!n.pathSegment(e,l);let m;if(p){h?e.closePath():MNe(e,r,d,i);const g=!!r.pathSegment(e,c,{move:h,reverse:!0});m=h&&g,m||MNe(e,r,u,i)}e.closePath(),e.fill(m?"evenodd":"nonzero"),e.restore()}}function xYn(e,t,n){const{top:r,bottom:i}=t.chart.chartArea,{property:a,start:o,end:s}=n||{};a==="x"&&(e.beginPath(),e.rect(o,r,s-o,i-r),e.clip())}function MNe(e,t,n,r){const i=t.interpolate(n,r);i&&e.lineTo(i.x,i.y)}var TYn={id:"filler",afterDatasetsUpdate(e,t,n){const r=(e.data.datasets||[]).length,i=[];let a,o,s,l;for(o=0;o<r;++o)a=e.getDatasetMeta(o),s=a.dataset,l=null,s&&s.options&&s instanceof UU&&(l={visible:e.isDatasetVisible(o),index:o,fill:uYn(s,o,r),chart:e,axis:a.controller.options.indexAxis,scale:a.vScale,line:s}),a.$filler=l,i.push(l);for(o=0;o<r;++o)l=i[o],!(!l||l.fill===!1)&&(l.fill=cYn(i,o,n.propagate))},beforeDraw(e,t,n){const r=n.drawTime==="beforeDraw",i=e.getSortedVisibleDatasetMetas(),a=e.chartArea;for(let o=i.length-1;o>=0;--o){const s=i[o].$filler;s&&(s.line.updateControlPoints(a,s.axis),r&&s.fill&&DJ(e.ctx,s,a))}},beforeDatasetsDraw(e,t,n){if(n.drawTime!=="beforeDatasetsDraw")return;const r=e.getSortedVisibleDatasetMetas();for(let i=r.length-1;i>=0;--i){const a=r[i].$filler;LNe(a)&&DJ(e.ctx,a,e.chartArea)}},beforeDatasetDraw(e,t,n){const r=t.meta.$filler;!LNe(r)||n.drawTime!=="beforeDatasetDraw"||DJ(e.ctx,r,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const DNe=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},IYn=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class $Ne extends C0{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,r){this.maxWidth=t,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=io(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(r=>t.filter(r,this.chart.data))),t.sort&&(n=n.sort((r,i)=>t.sort(r,i,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const r=t.labels,i=ml(r.font),a=i.size,o=this._computeTitleHeight(),{boxWidth:s,itemHeight:l}=DNe(r,a);let c,u;n.font=i.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(o,a,s,l)+10):(u=this.maxHeight,c=this._fitCols(o,i,s,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(u,t.maxHeight||this.maxHeight)}_fitRows(t,n,r,i){const{ctx:a,maxWidth:o,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],u=i+s;let d=t;a.textAlign="left",a.textBaseline="middle";let f=-1,p=-u;return this.legendItems.forEach((h,m)=>{const g=r+n/2+a.measureText(h.text).width;(m===0||c[c.length-1]+g+2*s>o)&&(d+=u,c[c.length-(m>0?0:1)]=0,p+=u,f++),l[m]={left:0,top:p,row:f,width:g,height:i},c[c.length-1]+=g+s}),d}_fitCols(t,n,r,i){const{ctx:a,maxHeight:o,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],u=o-t;let d=s,f=0,p=0,h=0,m=0;return this.legendItems.forEach((g,v)=>{const{itemWidth:y,itemHeight:_}=AYn(r,n,a,g,i);v>0&&p+_+2*s>u&&(d+=f+s,c.push({width:f,height:p}),h+=f+s,m++,f=p=0),l[v]={left:h,top:p,col:m,width:y,height:_},f=Math.max(f,y),p+=_+s}),d+=f,c.push({width:f,height:p}),d}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:i},rtl:a}}=this,o=z5(a,this.left,this.width);if(this.isHorizontal()){let s=0,l=Vc(r,this.left+i,this.right-this.lineWidths[s]);for(const c of n)s!==c.row&&(s=c.row,l=Vc(r,this.left+i,this.right-this.lineWidths[s])),c.top+=this.top+t+i,c.left=o.leftForLtr(o.x(l),c.width),l+=c.width+i}else{let s=0,l=Vc(r,this.top+t+i,this.bottom-this.columnSizes[s].height);for(const c of n)c.col!==s&&(s=c.col,l=Vc(r,this.top+t+i,this.bottom-this.columnSizes[s].height)),c.top=l,c.left+=this.left+i,c.left=o.leftForLtr(o.x(c.left),c.width),l+=c.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;BU(t,this),this._draw(),jU(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:i}=this,{align:a,labels:o}=t,s=hs.color,l=z5(t.rtl,this.left,this.width),c=ml(o.font),{padding:u}=o,d=c.size,f=d/2;let p;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=c.string;const{boxWidth:h,boxHeight:m,itemHeight:g}=DNe(o,d),v=function(w,x,T){if(isNaN(h)||h<=0||isNaN(m)||m<0)return;i.save();const A=pi(T.lineWidth,1);if(i.fillStyle=pi(T.fillStyle,s),i.lineCap=pi(T.lineCap,"butt"),i.lineDashOffset=pi(T.lineDashOffset,0),i.lineJoin=pi(T.lineJoin,"miter"),i.lineWidth=A,i.strokeStyle=pi(T.strokeStyle,s),i.setLineDash(pi(T.lineDash,[])),o.usePointStyle){const I={radius:m*Math.SQRT2/2,pointStyle:T.pointStyle,rotation:T.rotation,borderWidth:A},R=l.xPlus(w,h/2),N=x+f;Cnt(i,I,R,N,o.pointStyleWidth&&h)}else{const I=x+Math.max((d-m)/2,0),R=l.leftForLtr(w,h),N=mE(T.borderRadius);i.beginPath(),Object.values(N).some(P=>P!==0)?u6(i,{x:R,y:I,w:h,h:m,radius:N}):i.rect(R,I,h,m),i.fill(),A!==0&&i.stroke()}i.restore()},y=function(w,x,T){nC(i,T.text,w,x+g/2,c,{strikethrough:T.hidden,textAlign:l.textAlign(T.textAlign)})},_=this.isHorizontal(),S=this._computeTitleHeight();_?p={x:Vc(a,this.left+u,this.right-r[0]),y:this.top+u+S,line:0}:p={x:this.left+u,y:Vc(a,this.top+S+u,this.bottom-n[0].height),line:0},Ont(this.ctx,t.textDirection);const C=g+u;this.legendItems.forEach((w,x)=>{i.strokeStyle=w.fontColor,i.fillStyle=w.fontColor;const T=i.measureText(w.text).width,A=l.textAlign(w.textAlign||(w.textAlign=o.textAlign)),I=h+f+T;let R=p.x,N=p.y;l.setWidth(this.width),_?x>0&&R+I+u>this.right&&(N=p.y+=C,p.line++,R=p.x=Vc(a,this.left+u,this.right-r[p.line])):x>0&&N+C>this.bottom&&(R=p.x=R+n[p.line].width+u,p.line++,N=p.y=Vc(a,this.top+S+u,this.bottom-n[p.line].height));const P=l.x(R);if(v(P,N,w),R=HVn(A,R+h+f,_?R+I:this.right,t.rtl),y(l.x(R),N,w),_)p.x+=I+u;else if(typeof w.text!="string"){const L=c.lineHeight;p.y+=srt(w,L)+u}else p.y+=C}),Lnt(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=ml(n.font),i=Tc(n.padding);if(!n.display)return;const a=z5(t.rtl,this.left,this.width),o=this.ctx,s=n.position,l=r.size/2,c=i.top+l;let u,d=this.left,f=this.width;if(this.isHorizontal())f=Math.max(...this.lineWidths),u=this.top+c,d=Vc(t.align,d,this.right-f);else{const h=this.columnSizes.reduce((m,g)=>Math.max(m,g.height),0);u=c+Vc(t.align,this.top,this.bottom-h-t.labels.padding-this._computeTitleHeight())}const p=Vc(s,d,d+f);o.textAlign=a.textAlign(cme(s)),o.textBaseline="middle",o.strokeStyle=n.color,o.fillStyle=n.color,o.font=r.string,nC(o,n.text,p,u,r)}_computeTitleHeight(){const t=this.options.title,n=ml(t.font),r=Tc(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,i,a;if(O1(t,this.left,this.right)&&O1(n,this.top,this.bottom)){for(a=this.legendHitBoxes,r=0;r<a.length;++r)if(i=a[r],O1(t,i.left,i.left+i.width)&&O1(n,i.top,i.top+i.height))return this.legendItems[r]}return null}handleEvent(t){const n=this.options;if(!OYn(t.type,n))return;const r=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const i=this._hoveredItem,a=IYn(i,r);i&&!a&&io(n.onLeave,[t,i,this],this),this._hoveredItem=r,r&&!a&&io(n.onHover,[t,r,this],this)}else r&&io(n.onClick,[t,r,this],this)}}function AYn(e,t,n,r,i){const a=RYn(r,e,t,n),o=NYn(i,r,t.lineHeight);return{itemWidth:a,itemHeight:o}}function RYn(e,t,n,r){let i=e.text;return i&&typeof i!="string"&&(i=i.reduce((a,o)=>a.length>o.length?a:o)),t+n.size/2+r.measureText(i).width}function NYn(e,t,n){let r=e;return typeof t.text!="string"&&(r=srt(t,n)),r}function srt(e,t){const n=e.text?e.text.length:0;return t*n}function OYn(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var LYn={id:"legend",_element:$Ne,start(e,t,n){const r=e.legend=new $Ne({ctx:e.ctx,options:n,chart:e});Jc.configure(e,r,n),Jc.addBox(e,r)},stop(e){Jc.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;Jc.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):(i.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:i,color:a,useBorderRadius:o,borderRadius:s}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),u=Tc(c.borderWidth);return{text:t[l.index].label,fillStyle:c.backgroundColor,fontColor:a,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:c.borderColor,pointStyle:r||c.pointStyle,rotation:c.rotation,textAlign:i||c.textAlign,borderRadius:o&&(s||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class _me extends C0{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const i=jo(r.text)?r.text.length:1;this._padding=Tc(r.padding);const a=i*ml(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=a:this.width=a}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:r,bottom:i,right:a,options:o}=this,s=o.align;let l=0,c,u,d;return this.isHorizontal()?(u=Vc(s,r,a),d=n+t,c=a-r):(o.position==="left"?(u=r+t,d=Vc(s,i,n),l=Ho*-.5):(u=a-t,d=Vc(s,n,i),l=Ho*.5),c=i-n),{titleX:u,titleY:d,maxWidth:c,rotation:l}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const r=ml(n.font),a=r.lineHeight/2+this._padding.top,{titleX:o,titleY:s,maxWidth:l,rotation:c}=this._drawArgs(a);nC(t,n.text,0,0,r,{color:n.color,maxWidth:l,rotation:c,textAlign:cme(n.align),textBaseline:"middle",translation:[o,s]})}}function PYn(e,t){const n=new _me({ctx:e.ctx,options:t,chart:e});Jc.configure(e,n,t),Jc.addBox(e,n),e.titleBlock=n}var kYn={id:"title",_element:_me,start(e,t,n){PYn(e,n)},stop(e){const t=e.titleBlock;Jc.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;Jc.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const fk=new WeakMap;var MYn={id:"subtitle",start(e,t,n){const r=new _me({ctx:e.ctx,options:n,chart:e});Jc.configure(e,r,n),Jc.addBox(e,r),fk.set(e,r)},stop(e){Jc.removeBox(e,fk.get(e)),fk.delete(e)},beforeUpdate(e,t,n){const r=fk.get(e);Jc.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const OA={average(e){if(!e.length)return!1;let t,n,r=new Set,i=0,a=0;for(t=0,n=e.length;t<n;++t){const s=e[t].element;if(s&&s.hasValue()){const l=s.tooltipPosition();r.add(l.x),i+=l.y,++a}}return{x:[...r].reduce((s,l)=>s+l)/r.size,y:i/a}},nearest(e,t){if(!e.length)return!1;let n=t.x,r=t.y,i=Number.POSITIVE_INFINITY,a,o,s;for(a=0,o=e.length;a<o;++a){const l=e[a].element;if(l&&l.hasValue()){const c=l.getCenterPoint(),u=$oe(t,c);u<i&&(i=u,s=l)}}if(s){const l=s.tooltipPosition();n=l.x,r=l.y}return{x:n,y:r}}};function mg(e,t){return t&&(jo(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function h1(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
`)>-1?e.split(`
`):e}function DYn(e,t){const{element:n,datasetIndex:r,index:i}=t,a=e.getDatasetMeta(r).controller,{label:o,value:s}=a.getLabelAndValue(i);return{chart:e,label:o,parsed:a.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:s,dataset:a.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function FNe(e,t){const n=e.chart.ctx,{body:r,footer:i,title:a}=e,{boxWidth:o,boxHeight:s}=t,l=ml(t.bodyFont),c=ml(t.titleFont),u=ml(t.footerFont),d=a.length,f=i.length,p=r.length,h=Tc(t.padding);let m=h.height,g=0,v=r.reduce((S,C)=>S+C.before.length+C.lines.length+C.after.length,0);if(v+=e.beforeBody.length+e.afterBody.length,d&&(m+=d*c.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),v){const S=t.displayColors?Math.max(s,l.lineHeight):l.lineHeight;m+=p*S+(v-p)*l.lineHeight+(v-1)*t.bodySpacing}f&&(m+=t.footerMarginTop+f*u.lineHeight+(f-1)*t.footerSpacing);let y=0;const _=function(S){g=Math.max(g,n.measureText(S).width+y)};return n.save(),n.font=c.string,Ba(e.title,_),n.font=l.string,Ba(e.beforeBody.concat(e.afterBody),_),y=t.displayColors?o+2+t.boxPadding:0,Ba(r,S=>{Ba(S.before,_),Ba(S.lines,_),Ba(S.after,_)}),y=0,n.font=u.string,Ba(e.footer,_),n.restore(),g+=h.width,{width:g,height:m}}function $Yn(e,t){const{y:n,height:r}=t;return n<r/2?"top":n>e.height-r/2?"bottom":"center"}function FYn(e,t,n,r){const{x:i,width:a}=r,o=n.caretSize+n.caretPadding;if(e==="left"&&i+a+o>t.width||e==="right"&&i-a-o<0)return!0}function BYn(e,t,n,r){const{x:i,width:a}=n,{width:o,chartArea:{left:s,right:l}}=e;let c="center";return r==="center"?c=i<=(s+l)/2?"left":"right":i<=a/2?c="left":i>=o-a/2&&(c="right"),FYn(c,e,t,n)&&(c="center"),c}function BNe(e,t,n){const r=n.yAlign||t.yAlign||$Yn(e,n);return{xAlign:n.xAlign||t.xAlign||BYn(e,t,n,r),yAlign:r}}function jYn(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function zYn(e,t,n){let{y:r,height:i}=e;return t==="top"?r+=n:t==="bottom"?r-=i+n:r-=i/2,r}function jNe(e,t,n,r){const{caretSize:i,caretPadding:a,cornerRadius:o}=e,{xAlign:s,yAlign:l}=n,c=i+a,{topLeft:u,topRight:d,bottomLeft:f,bottomRight:p}=mE(o);let h=jYn(t,s);const m=zYn(t,l,c);return l==="center"?s==="left"?h+=c:s==="right"&&(h-=c):s==="left"?h-=Math.max(u,f)+i:s==="right"&&(h+=Math.max(d,p)+i),{x:Kl(h,0,r.width-t.width),y:Kl(m,0,r.height-t.height)}}function pk(e,t,n){const r=Tc(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function zNe(e){return mg([],h1(e))}function UYn(e,t,n){return U_(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function UNe(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const lrt={beforeTitle:e1,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex<r)return n[t.dataIndex]}return""},afterTitle:e1,beforeBody:e1,beforeLabel:e1,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return $i(n)||(t+=n),t},labelColor(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:e1,afterBody:e1,beforeFooter:e1,footer:e1,afterFooter:e1};function Ju(e,t,n,r){const i=e[t].call(n,r);return typeof i>"u"?lrt[t].call(n,r):i}class HNe extends C0{static positioners=OA;constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,r=this.options.setContext(this.getContext()),i=r.enabled&&n.options.animation&&r.animations,a=new Dnt(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(a)),a}getContext(){return this.$context||(this.$context=UYn(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,i=Ju(r,"beforeTitle",this,t),a=Ju(r,"title",this,t),o=Ju(r,"afterTitle",this,t);let s=[];return s=mg(s,h1(i)),s=mg(s,h1(a)),s=mg(s,h1(o)),s}getBeforeBody(t,n){return zNe(Ju(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,i=[];return Ba(t,a=>{const o={before:[],lines:[],after:[]},s=UNe(r,a);mg(o.before,h1(Ju(s,"beforeLabel",this,a))),mg(o.lines,Ju(s,"label",this,a)),mg(o.after,h1(Ju(s,"afterLabel",this,a))),i.push(o)}),i}getAfterBody(t,n){return zNe(Ju(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,i=Ju(r,"beforeFooter",this,t),a=Ju(r,"footer",this,t),o=Ju(r,"afterFooter",this,t);let s=[];return s=mg(s,h1(i)),s=mg(s,h1(a)),s=mg(s,h1(o)),s}_createItems(t){const n=this._active,r=this.chart.data,i=[],a=[],o=[];let s=[],l,c;for(l=0,c=n.length;l<c;++l)s.push(DYn(this.chart,n[l]));return t.filter&&(s=s.filter((u,d,f)=>t.filter(u,d,f,r))),t.itemSort&&(s=s.sort((u,d)=>t.itemSort(u,d,r))),Ba(s,u=>{const d=UNe(t.callbacks,u);i.push(Ju(d,"labelColor",this,u)),a.push(Ju(d,"labelPointStyle",this,u)),o.push(Ju(d,"labelTextColor",this,u))}),this.labelColors=i,this.labelPointStyles=a,this.labelTextColors=o,this.dataPoints=s,s}update(t,n){const r=this.options.setContext(this.getContext()),i=this._active;let a,o=[];if(!i.length)this.opacity!==0&&(a={opacity:0});else{const s=OA[r.position].call(this,i,this._eventPosition);o=this._createItems(r),this.title=this.getTitle(o,r),this.beforeBody=this.getBeforeBody(o,r),this.body=this.getBody(o,r),this.afterBody=this.getAfterBody(o,r),this.footer=this.getFooter(o,r);const l=this._size=FNe(this,r),c=Object.assign({},s,l),u=BNe(this.chart,r,c),d=jNe(r,c,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,a={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:s.x,caretY:s.y}}this._tooltipItems=o,this.$context=void 0,a&&this._resolveAnimations().update(this,a),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,i){const a=this.getCaretPosition(t,r,i);n.lineTo(a.x1,a.y1),n.lineTo(a.x2,a.y2),n.lineTo(a.x3,a.y3)}getCaretPosition(t,n,r){const{xAlign:i,yAlign:a}=this,{caretSize:o,cornerRadius:s}=r,{topLeft:l,topRight:c,bottomLeft:u,bottomRight:d}=mE(s),{x:f,y:p}=t,{width:h,height:m}=n;let g,v,y,_,S,C;return a==="center"?(S=p+m/2,i==="left"?(g=f,v=g-o,_=S+o,C=S-o):(g=f+h,v=g+o,_=S-o,C=S+o),y=g):(i==="left"?v=f+Math.max(l,u)+o:i==="right"?v=f+h-Math.max(c,d)-o:v=this.caretX,a==="top"?(_=p,S=_-o,g=v-o,y=v+o):(_=p+m,S=_+o,g=v+o,y=v-o),C=_),{x1:g,x2:v,x3:y,y1:_,y2:S,y3:C}}drawTitle(t,n,r){const i=this.title,a=i.length;let o,s,l;if(a){const c=z5(r.rtl,this.x,this.width);for(t.x=pk(this,r.titleAlign,r),n.textAlign=c.textAlign(r.titleAlign),n.textBaseline="middle",o=ml(r.titleFont),s=r.titleSpacing,n.fillStyle=r.titleColor,n.font=o.string,l=0;l<a;++l)n.fillText(i[l],c.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+s,l+1===a&&(t.y+=r.titleMarginBottom-s)}}_drawColorBox(t,n,r,i,a){const o=this.labelColors[r],s=this.labelPointStyles[r],{boxHeight:l,boxWidth:c}=a,u=ml(a.bodyFont),d=pk(this,"left",a),f=i.x(d),p=l<u.lineHeight?(u.lineHeight-l)/2:0,h=n.y+p;if(a.usePointStyle){const m={radius:Math.min(c,l)/2,pointStyle:s.pointStyle,rotation:s.rotation,borderWidth:1},g=i.leftForLtr(f,c)+c/2,v=h+l/2;t.strokeStyle=a.multiKeyBackground,t.fillStyle=a.multiKeyBackground,Boe(t,m,g,v),t.strokeStyle=o.borderColor,t.fillStyle=o.backgroundColor,Boe(t,m,g,v)}else{t.lineWidth=Ui(o.borderWidth)?Math.max(...Object.values(o.borderWidth)):o.borderWidth||1,t.strokeStyle=o.borderColor,t.setLineDash(o.borderDash||[]),t.lineDashOffset=o.borderDashOffset||0;const m=i.leftForLtr(f,c),g=i.leftForLtr(i.xPlus(f,1),c-2),v=mE(o.borderRadius);Object.values(v).some(y=>y!==0)?(t.beginPath(),t.fillStyle=a.multiKeyBackground,u6(t,{x:m,y:h,w:c,h:l,radius:v}),t.fill(),t.stroke(),t.fillStyle=o.backgroundColor,t.beginPath(),u6(t,{x:g,y:h+1,w:c-2,h:l-2,radius:v}),t.fill()):(t.fillStyle=a.multiKeyBackground,t.fillRect(m,h,c,l),t.strokeRect(m,h,c,l),t.fillStyle=o.backgroundColor,t.fillRect(g,h+1,c-2,l-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:i}=this,{bodySpacing:a,bodyAlign:o,displayColors:s,boxHeight:l,boxWidth:c,boxPadding:u}=r,d=ml(r.bodyFont);let f=d.lineHeight,p=0;const h=z5(r.rtl,this.x,this.width),m=function(T){n.fillText(T,h.x(t.x+p),t.y+f/2),t.y+=f+a},g=h.textAlign(o);let v,y,_,S,C,w,x;for(n.textAlign=o,n.textBaseline="middle",n.font=d.string,t.x=pk(this,g,r),n.fillStyle=r.bodyColor,Ba(this.beforeBody,m),p=s&&g!=="right"?o==="center"?c/2+u:c+2+u:0,S=0,w=i.length;S<w;++S){for(v=i[S],y=this.labelTextColors[S],n.fillStyle=y,Ba(v.before,m),_=v.lines,s&&_.length&&(this._drawColorBox(n,t,S,h,r),f=Math.max(d.lineHeight,l)),C=0,x=_.length;C<x;++C)m(_[C]),f=d.lineHeight;Ba(v.after,m)}p=0,f=d.lineHeight,Ba(this.afterBody,m),t.y-=a}drawFooter(t,n,r){const i=this.footer,a=i.length;let o,s;if(a){const l=z5(r.rtl,this.x,this.width);for(t.x=pk(this,r.footerAlign,r),t.y+=r.footerMarginTop,n.textAlign=l.textAlign(r.footerAlign),n.textBaseline="middle",o=ml(r.footerFont),n.fillStyle=r.footerColor,n.font=o.string,s=0;s<a;++s)n.fillText(i[s],l.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+r.footerSpacing}}drawBackground(t,n,r,i){const{xAlign:a,yAlign:o}=this,{x:s,y:l}=t,{width:c,height:u}=r,{topLeft:d,topRight:f,bottomLeft:p,bottomRight:h}=mE(i.cornerRadius);n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.beginPath(),n.moveTo(s+d,l),o==="top"&&this.drawCaret(t,n,r,i),n.lineTo(s+c-f,l),n.quadraticCurveTo(s+c,l,s+c,l+f),o==="center"&&a==="right"&&this.drawCaret(t,n,r,i),n.lineTo(s+c,l+u-h),n.quadraticCurveTo(s+c,l+u,s+c-h,l+u),o==="bottom"&&this.drawCaret(t,n,r,i),n.lineTo(s+p,l+u),n.quadraticCurveTo(s,l+u,s,l+u-p),o==="center"&&a==="left"&&this.drawCaret(t,n,r,i),n.lineTo(s,l+d),n.quadraticCurveTo(s,l,s+d,l),n.closePath(),n.fill(),i.borderWidth>0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,i=r&&r.x,a=r&&r.y;if(i||a){const o=OA[t.position].call(this,this._active,this._eventPosition);if(!o)return;const s=this._size=FNe(this,t),l=Object.assign({},o,this._size),c=BNe(n,t,l),u=jNe(t,l,c,n);(i._to!==u.x||a._to!==u.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=s.width,this.height=s.height,this.caretX=o.x,this.caretY=o.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},a={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const o=Tc(n.padding),s=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&s&&(t.save(),t.globalAlpha=r,this.drawBackground(a,t,i,n),Ont(t,n.textDirection),a.y+=o.top,this.drawTitle(a,t,n),this.drawBody(a,t,n),this.drawFooter(a,t,n),Lnt(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,i=t.map(({datasetIndex:s,index:l})=>{const c=this.chart.getDatasetMeta(s);if(!c)throw new Error("Cannot find a dataset at index "+s);return{datasetIndex:s,element:c.data[l],index:l}}),a=!LF(r,i),o=this._positionChanged(i,n);(a||o)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,a=this._active||[],o=this._getActiveElements(t,a,n,r),s=this._positionChanged(o,t),l=n||!LF(o,a)||s;return l&&(this._active=o,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),l}_getActiveElements(t,n,r,i){const a=this.options;if(t.type==="mouseout")return[];if(!i)return n.filter(s=>this.chart.data.datasets[s.datasetIndex]&&this.chart.getDatasetMeta(s.datasetIndex).controller.getParsed(s.index)!==void 0);const o=this.chart.getElementsAtEventForMode(t,a.mode,a,r);return a.reverse&&o.reverse(),o}_positionChanged(t,n){const{caretX:r,caretY:i,options:a}=this,o=OA[a.position].call(this,t,n);return o!==!1&&(r!==o.x||i!==o.y)}}var HYn={id:"tooltip",_element:HNe,positioners:OA,afterInit(e,t,n){n&&(e.tooltip=new HNe({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:lrt},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},VYn=Object.freeze({__proto__:null,Colors:nYn,Decimation:oYn,Filler:TYn,Legend:LYn,SubTitle:MYn,Title:kYn,Tooltip:HYn});const GYn=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function qYn(e,t,n,r){const i=e.indexOf(t);if(i===-1)return GYn(e,t,n,r);const a=e.lastIndexOf(t);return i!==a?n:i}const WYn=(e,t)=>e===null?null:Kl(Math.round(e),0,t);function VNe(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class YYn extends m8{static id="category";static defaults={ticks:{callback:VNe}};constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const n=this._addedLabels;if(n.length){const r=this.getLabels();for(const{index:i,label:a}of n)r[i]===a&&r.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,n){if($i(t))return null;const r=this.getLabels();return n=isFinite(n)&&r[n]===t?n:qYn(r,t,pi(n,t),this._addedLabels),WYn(n,r.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:r,max:i}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(r=0),n||(i=this.getLabels().length-1)),this.min=r,this.max=i}buildTicks(){const t=this.min,n=this.max,r=this.options.offset,i=[];let a=this.getLabels();a=t===0&&n===a.length-1?a:a.slice(t,n+1),this._valueRange=Math.max(a.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let o=t;o<=n;o++)i.push({value:o});return i}getLabelForValue(t){return VNe.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function KYn(e,t){const n=[],{bounds:i,step:a,min:o,max:s,precision:l,count:c,maxTicks:u,maxDigits:d,includeBounds:f}=e,p=a||1,h=u-1,{min:m,max:g}=t,v=!$i(o),y=!$i(s),_=!$i(c),S=(g-m)/(d+1);let C=$Re((g-m)/h/p)*p,w,x,T,A;if(C<1e-14&&!v&&!y)return[{value:m},{value:g}];A=Math.ceil(g/C)-Math.floor(m/C),A>h&&(C=$Re(A*C/h/p)*p),$i(l)||(w=Math.pow(10,l),C=Math.ceil(C*w)/w),i==="ticks"?(x=Math.floor(m/C)*C,T=Math.ceil(g/C)*C):(x=m,T=g),v&&y&&a&&DVn((s-o)/a,C/1e3)?(A=Math.round(Math.min((s-o)/C,u)),C=(s-o)/A,x=o,T=s):_?(x=v?o:x,T=y?s:T,A=c-1,C=(T-x)/A):(A=(T-x)/C,IR(A,Math.round(A),C/1e3)?A=Math.round(A):A=Math.ceil(A));const I=Math.max(FRe(C),FRe(x));w=Math.pow(10,$i(l)?I:l),x=Math.round(x*w)/w,T=Math.round(T*w)/w;let R=0;for(v&&(f&&x!==o?(n.push({value:o}),x<o&&R++,IR(Math.round((x+R*C)*w)/w,o,GNe(o,S,e))&&R++):x<o&&R++);R<A;++R){const N=Math.round((x+R*C)*w)/w;if(y&&N>s)break;n.push({value:N})}return y&&f&&T!==s?n.length&&IR(n[n.length-1].value,s,GNe(s,S,e))?n[n.length-1].value=s:n.push({value:s}):(!y||T===s)&&n.push({value:T}),n}function GNe(e,t,{horizontal:n,minRotation:r}){const i=Kh(r),a=(n?Math.sin(i):Math.cos(i))||.001,o=.75*t*(""+e).length;return Math.min(t/a,o)}class jF extends m8{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return $i(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:i,max:a}=this;const o=l=>i=n?i:l,s=l=>a=r?a:l;if(t){const l=Kg(i),c=Kg(a);l<0&&c<0?s(0):l>0&&c>0&&o(0)}if(i===a){let l=a===0?1:Math.abs(a*.05);s(a+l),t||o(i-l)}this.min=i,this.max=a}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=t,i;return r?(i=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const i={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},a=this._range||this,o=KYn(i,a);return t.bounds==="ticks"&&hnt(o,this,"value"),t.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}configure(){const t=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const i=(r-n)/Math.max(t.length-1,1)/2;n-=i,r+=i}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return p8(t,this.chart.options.locale,this.options.ticks.format)}}class XYn extends jF{static id="linear";static defaults={ticks:{callback:FU.formatters.numeric}};determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=Ns(t)?t:0,this.max=Ns(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=Kh(this.options.ticks.minRotation),i=(t?Math.sin(r):Math.cos(r))||.001,a=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,a.lineHeight/i))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}const f6=e=>Math.floor(bb(e)),T2=(e,t)=>Math.pow(10,f6(e)+t);function qNe(e){return e/Math.pow(10,f6(e))===1}function WNe(e,t,n){const r=Math.pow(10,n),i=Math.floor(e/r);return Math.ceil(t/r)-i}function ZYn(e,t){const n=t-e;let r=f6(n);for(;WNe(e,t,r)>10;)r++;for(;WNe(e,t,r)<10;)r--;return Math.min(r,f6(e))}function QYn(e,{min:t,max:n}){t=ff(e.min,t);const r=[],i=f6(t);let a=ZYn(t,n),o=a<0?Math.pow(10,Math.abs(a)):1;const s=Math.pow(10,a),l=i>a?Math.pow(10,i):0,c=Math.round((t-l)*o)/o,u=Math.floor((t-l)/s/10)*s*10;let d=Math.floor((c-u)/Math.pow(10,a)),f=ff(e.min,Math.round((l+u+d*Math.pow(10,a))*o)/o);for(;f<n;)r.push({value:f,major:qNe(f),significand:d}),d>=10?d=d<15?15:20:d++,d>=20&&(a++,d=2,o=a>=0?1:o),f=Math.round((l+u+d*Math.pow(10,a))*o)/o;const p=ff(e.max,f);return r.push({value:p,major:qNe(p),significand:d}),r}class JYn extends m8{static id="logarithmic";static defaults={ticks:{callback:FU.formatters.logarithmic,major:{enabled:!0}}};constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,n){const r=jF.prototype.parse.apply(this,[t,n]);if(r===0){this._zero=!0;return}return Ns(r)&&r>0?r:null}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=Ns(t)?Math.max(0,t):null,this.max=Ns(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!Ns(this._userMin)&&(this.min=t===T2(this.min,0)?T2(this.min,-1):T2(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let r=this.min,i=this.max;const a=s=>r=t?r:s,o=s=>i=n?i:s;r===i&&(r<=0?(a(1),o(10)):(a(T2(r,-1)),o(T2(i,1)))),r<=0&&a(T2(i,-1)),i<=0&&o(T2(r,1)),this.min=r,this.max=i}buildTicks(){const t=this.options,n={min:this._userMin,max:this._userMax},r=QYn(n,this);return t.bounds==="ticks"&&hnt(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}getLabelForValue(t){return t===void 0?"0":p8(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=bb(t),this._valueRange=bb(this.max)-bb(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(bb(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const n=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+n*this._valueRange)}}function Goe(e){const t=e.ticks;if(t.display&&e.display){const n=Tc(t.backdropPadding);return pi(t.font&&t.font.size,hs.font.size)+n.height}return 0}function eKn(e,t,n){return n=jo(n)?n:[n],{w:JVn(e,t.string,n),h:n.length*t.lineHeight}}function YNe(e,t,n,r,i){return e===r||e===i?{start:t-n/2,end:t+n/2}:e<r||e>i?{start:t-n,end:t}:{start:t,end:t+n}}function tKn(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),r=[],i=[],a=e._pointLabels.length,o=e.options.pointLabels,s=o.centerPointLabels?Ho/a:0;for(let l=0;l<a;l++){const c=o.setContext(e.getPointLabelContext(l));i[l]=c.padding;const u=e.getPointPosition(l,e.drawingArea+i[l],s),d=ml(c.font),f=eKn(e.ctx,d,e._pointLabels[l]);r[l]=f;const p=mf(e.getIndexAngle(l)+s),h=Math.round(sme(p)),m=YNe(h,u.x,f.w,0,180),g=YNe(h,u.y,f.h,90,270);nKn(n,t,p,m,g)}e.setCenterPoint(t.l-n.l,n.r-t.r,t.t-n.t,n.b-t.b),e._pointLabelItems=aKn(e,r,i)}function nKn(e,t,n,r,i){const a=Math.abs(Math.sin(n)),o=Math.abs(Math.cos(n));let s=0,l=0;r.start<t.l?(s=(t.l-r.start)/a,e.l=Math.min(e.l,t.l-s)):r.end>t.r&&(s=(r.end-t.r)/a,e.r=Math.max(e.r,t.r+s)),i.start<t.t?(l=(t.t-i.start)/o,e.t=Math.min(e.t,t.t-l)):i.end>t.b&&(l=(i.end-t.b)/o,e.b=Math.max(e.b,t.b+l))}function rKn(e,t,n){const r=e.drawingArea,{extra:i,additionalAngle:a,padding:o,size:s}=n,l=e.getPointPosition(t,r+i+o,a),c=Math.round(sme(mf(l.angle+Zs))),u=lKn(l.y,s.h,c),d=oKn(c),f=sKn(l.x,s.w,d);return{visible:!0,x:l.x,y:u,textAlign:d,left:f,top:u,right:f+s.w,bottom:u+s.h}}function iKn(e,t){if(!t)return!0;const{left:n,top:r,right:i,bottom:a}=e;return!(P1({x:n,y:r},t)||P1({x:n,y:a},t)||P1({x:i,y:r},t)||P1({x:i,y:a},t))}function aKn(e,t,n){const r=[],i=e._pointLabels.length,a=e.options,{centerPointLabels:o,display:s}=a.pointLabels,l={extra:Goe(a)/2,additionalAngle:o?Ho/i:0};let c;for(let u=0;u<i;u++){l.padding=n[u],l.size=t[u];const d=rKn(e,u,l);r.push(d),s==="auto"&&(d.visible=iKn(d,c),d.visible&&(c=d))}return r}function oKn(e){return e===0||e===180?"center":e<180?"left":"right"}function sKn(e,t,n){return n==="right"?e-=t:n==="center"&&(e-=t/2),e}function lKn(e,t,n){return n===90||n===270?e-=t/2:(n>270||n<90)&&(e-=t),e}function cKn(e,t,n){const{left:r,top:i,right:a,bottom:o}=n,{backdropColor:s}=t;if(!$i(s)){const l=mE(t.borderRadius),c=Tc(t.backdropPadding);e.fillStyle=s;const u=r-c.left,d=i-c.top,f=a-r+c.width,p=o-i+c.height;Object.values(l).some(h=>h!==0)?(e.beginPath(),u6(e,{x:u,y:d,w:f,h:p,radius:l}),e.fill()):e.fillRect(u,d,f,p)}}function uKn(e,t){const{ctx:n,options:{pointLabels:r}}=e;for(let i=t-1;i>=0;i--){const a=e._pointLabelItems[i];if(!a.visible)continue;const o=r.setContext(e.getPointLabelContext(i));cKn(n,o,a);const s=ml(o.font),{x:l,y:c,textAlign:u}=a;nC(n,e._pointLabels[i],l,c+s.lineHeight/2,s,{color:o.color,textAlign:u,textBaseline:"middle"})}}function crt(e,t,n,r){const{ctx:i}=e;if(n)i.arc(e.xCenter,e.yCenter,t,0,Uo);else{let a=e.getPointPosition(0,t);i.moveTo(a.x,a.y);for(let o=1;o<r;o++)a=e.getPointPosition(o,t),i.lineTo(a.x,a.y)}}function dKn(e,t,n,r,i){const a=e.ctx,o=t.circular,{color:s,lineWidth:l}=t;!o&&!r||!s||!l||n<0||(a.save(),a.strokeStyle=s,a.lineWidth=l,a.setLineDash(i.dash),a.lineDashOffset=i.dashOffset,a.beginPath(),crt(e,n,o,r),a.closePath(),a.stroke(),a.restore())}function fKn(e,t,n){return U_(e,{label:n,index:t,type:"pointLabel"})}class pKn extends jF{static id="radialLinear";static defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:FU.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};static descriptors={angleLines:{_fallback:"grid"}};constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=Tc(Goe(this.options)/2),n=this.width=this.maxWidth-t.width,r=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+n/2+t.left),this.yCenter=Math.floor(this.top+r/2+t.top),this.drawingArea=Math.floor(Math.min(n,r)/2)}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!1);this.min=Ns(t)&&!isNaN(t)?t:0,this.max=Ns(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Goe(this.options))}generateTickLabels(t){jF.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((n,r)=>{const i=io(this.options.pointLabels.callback,[n,r],this);return i||i===0?i:""}).filter((n,r)=>this.chart.getDataVisibility(r))}fit(){const t=this.options;t.display&&t.pointLabels.display?tKn(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,n,r,i){this.xCenter+=Math.floor((t-n)/2),this.yCenter+=Math.floor((r-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,n,r,i))}getIndexAngle(t){const n=Uo/(this._pointLabels.length||1),r=this.options.startAngle||0;return mf(t*n+Kh(r))}getDistanceFromCenterForValue(t){if($i(t))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*n:(t-this.min)*n}getValueForDistanceFromCenter(t){if($i(t))return NaN;const n=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(t){const n=this._pointLabels||[];if(t>=0&&t<n.length){const r=n[t];return fKn(this.getContext(),t,r)}}getPointPosition(t,n,r=0){const i=this.getIndexAngle(t)-Zs+r;return{x:Math.cos(i)*n+this.xCenter,y:Math.sin(i)*n+this.yCenter,angle:i}}getPointPositionForValue(t,n){return this.getPointPosition(t,this.getDistanceFromCenterForValue(n))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:n,top:r,right:i,bottom:a}=this._pointLabelItems[t];return{left:n,top:r,right:i,bottom:a}}drawBackground(){const{backgroundColor:t,grid:{circular:n}}=this.options;if(t){const r=this.ctx;r.save(),r.beginPath(),crt(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),r.closePath(),r.fillStyle=t,r.fill(),r.restore()}}drawGrid(){const t=this.ctx,n=this.options,{angleLines:r,grid:i,border:a}=n,o=this._pointLabels.length;let s,l,c;if(n.pointLabels.display&&uKn(this,o),i.display&&this.ticks.forEach((u,d)=>{if(d!==0||d===0&&this.min<0){l=this.getDistanceFromCenterForValue(u.value);const f=this.getContext(d),p=i.setContext(f),h=a.setContext(f);dKn(this,p,l,o,h)}}),r.display){for(t.save(),s=o-1;s>=0;s--){const u=r.setContext(this.getPointLabelContext(s)),{color:d,lineWidth:f}=u;!f||!d||(t.lineWidth=f,t.strokeStyle=d,t.setLineDash(u.borderDash),t.lineDashOffset=u.borderDashOffset,l=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),c=this.getPointPosition(s,l),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(c.x,c.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,n=this.options,r=n.ticks;if(!r.display)return;const i=this.getIndexAngle(0);let a,o;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((s,l)=>{if(l===0&&this.min>=0&&!n.reverse)return;const c=r.setContext(this.getContext(l)),u=ml(c.font);if(a=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){t.font=u.string,o=t.measureText(s.label).width,t.fillStyle=c.backdropColor;const d=Tc(c.backdropPadding);t.fillRect(-o/2-d.left,-a-u.size/2-d.top,o+d.width,u.size+d.height)}nC(t,s.label,0,-a,u,{color:c.color,strokeColor:c.textStrokeColor,strokeWidth:c.textStrokeWidth})}),t.restore()}drawTitle(){}}const HU={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},hd=Object.keys(HU);function KNe(e,t){return e-t}function XNe(e,t){if($i(t))return null;const n=e._adapter,{parser:r,round:i,isoWeekday:a}=e._parseOpts;let o=t;return typeof r=="function"&&(o=r(o)),Ns(o)||(o=typeof r=="string"?n.parse(o,r):n.parse(o)),o===null?null:(i&&(o=i==="week"&&(P3(a)||a===!0)?n.startOf(o,"isoWeek",a):n.startOf(o,i)),+o)}function ZNe(e,t,n,r){const i=hd.length;for(let a=hd.indexOf(e);a<i-1;++a){const o=HU[hd[a]],s=o.steps?o.steps:Number.MAX_SAFE_INTEGER;if(o.common&&Math.ceil((n-t)/(s*o.size))<=r)return hd[a]}return hd[i-1]}function hKn(e,t,n,r,i){for(let a=hd.length-1;a>=hd.indexOf(n);a--){const o=hd[a];if(HU[o].common&&e._adapter.diff(i,r,o)>=t-1)return o}return hd[n?hd.indexOf(n):0]}function mKn(e){for(let t=hd.indexOf(e)+1,n=hd.length;t<n;++t)if(HU[hd[t]].common)return hd[t]}function QNe(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:r,hi:i}=lme(n,t),a=n[r]>=t?n[r]:n[i];e[a]=!0}}function gKn(e,t,n,r){const i=e._adapter,a=+i.startOf(t[0].value,r),o=t[t.length-1].value;let s,l;for(s=a;s<=o;s=+i.add(s,1,r))l=n[s],l>=0&&(t[l].major=!0);return t}function JNe(e,t,n){const r=[],i={},a=t.length;let o,s;for(o=0;o<a;++o)s=t[o],i[s]=o,r.push({value:s,major:!1});return a===0||!n?r:gKn(e,r,i,n)}let qoe=class extends m8{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,n={}){const r=t.time||(t.time={}),i=this._adapter=new Sqn._date(t.adapters.date);i.init(n),TR(r.displayFormats,i.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(t),this._normalized=n.normalized}parse(t,n){return t===void 0?null:XNe(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,n=this._adapter,r=t.time.unit||"day";let{min:i,max:a,minDefined:o,maxDefined:s}=this.getUserBounds();function l(c){!o&&!isNaN(c.min)&&(i=Math.min(i,c.min)),!s&&!isNaN(c.max)&&(a=Math.max(a,c.max))}(!o||!s)&&(l(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&l(this.getMinMax(!1))),i=Ns(i)&&!isNaN(i)?i:+n.startOf(Date.now(),r),a=Ns(a)&&!isNaN(a)?a:+n.endOf(Date.now(),r)+1,this.min=Math.min(i,a-1),this.max=Math.max(i+1,a)}_getLabelBounds(){const t=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return t.length&&(n=t[0],r=t[t.length-1]),{min:n,max:r}}buildTicks(){const t=this.options,n=t.time,r=t.ticks,i=r.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const a=this.min,o=this.max,s=jVn(i,a,o);return this._unit=n.unit||(r.autoSkip?ZNe(n.minUnit,this.min,this.max,this._getLabelCapacity(a)):hKn(this,s.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:mKn(this._unit),this.initOffsets(i),t.reverse&&s.reverse(),JNe(this,s,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let n=0,r=0,i,a;this.options.offset&&t.length&&(i=this.getDecimalForValue(t[0]),t.length===1?n=1-i:n=(this.getDecimalForValue(t[1])-i)/2,a=this.getDecimalForValue(t[t.length-1]),t.length===1?r=a:r=(a-this.getDecimalForValue(t[t.length-2]))/2);const o=t.length<3?.5:.25;n=Kl(n,0,o),r=Kl(r,0,o),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,n=this.min,r=this.max,i=this.options,a=i.time,o=a.unit||ZNe(a.minUnit,n,r,this._getLabelCapacity(n)),s=pi(i.ticks.stepSize,1),l=o==="week"?a.isoWeekday:!1,c=P3(l)||l===!0,u={};let d=n,f,p;if(c&&(d=+t.startOf(d,"isoWeek",l)),d=+t.startOf(d,c?"day":o),t.diff(r,n,o)>1e5*s)throw new Error(n+" and "+r+" are too far apart with stepSize of "+s+" "+o);const h=i.ticks.source==="data"&&this.getDataTimestamps();for(f=d,p=0;f<r;f=+t.add(f,s,o),p++)QNe(u,f,h);return(f===r||i.bounds==="ticks"||p===1)&&QNe(u,f,h),Object.keys(u).sort(KNe).map(m=>+m)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}format(t,n){const i=this.options.time.displayFormats,a=this._unit,o=n||i[a];return this._adapter.format(t,o)}_tickFormatFunction(t,n,r,i){const a=this.options,o=a.ticks.callback;if(o)return io(o,[t,n,r],this);const s=a.time.displayFormats,l=this._unit,c=this._majorUnit,u=l&&s[l],d=c&&s[c],f=r[n],p=c&&d&&f&&f.major;return this._adapter.format(t,i||(p?d:u))}generateTickLabels(t){let n,r,i;for(n=0,r=t.length;n<r;++n)i=t[n],i.label=this._tickFormatFunction(i.value,n,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const n=this._offsets,r=this.getDecimalForValue(t);return this.getPixelForDecimal((n.start+r)*n.factor)}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return this.min+r*(this.max-this.min)}_getLabelSize(t){const n=this.options.ticks,r=this.ctx.measureText(t).width,i=Kh(this.isHorizontal()?n.maxRotation:n.minRotation),a=Math.cos(i),o=Math.sin(i),s=this._resolveTickFontOptions(0).size;return{w:r*a+s*o,h:r*o+s*a}}_getLabelCapacity(t){const n=this.options.time,r=n.displayFormats,i=r[n.unit]||r.millisecond,a=this._tickFormatFunction(t,0,JNe(this,[t],this._majorUnit),i),o=this._getLabelSize(a),s=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return s>0?s:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,r=i.length;n<r;++n)t=t.concat(i[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let n,r;if(t.length)return t;const i=this.getLabels();for(n=0,r=i.length;n<r;++n)t.push(XNe(this,i[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return vnt(t.sort(KNe))}};function hk(e,t,n){let r=0,i=e.length-1,a,o,s,l;n?(t>=e[r].pos&&t<=e[i].pos&&({lo:r,hi:i}=L1(e,"pos",t)),{pos:a,time:s}=e[r],{pos:o,time:l}=e[i]):(t>=e[r].time&&t<=e[i].time&&({lo:r,hi:i}=L1(e,"time",t)),{time:a,pos:s}=e[r],{time:o,pos:l}=e[i]);const c=o-a;return c?s+(l-s)*(t-a)/c:s}class vKn extends qoe{static id="timeseries";static defaults=qoe.defaults;constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=hk(n,this.min),this._tableRange=hk(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,i=[],a=[];let o,s,l,c,u;for(o=0,s=t.length;o<s;++o)c=t[o],c>=n&&c<=r&&i.push(c);if(i.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(o=0,s=i.length;o<s;++o)u=i[o+1],l=i[o-1],c=i[o],Math.round((u+l)/2)!==c&&a.push({time:c,pos:o/(s-1)});return a}_generate(){const t=this.min,n=this.max;let r=super.getDataTimestamps();return(!r.includes(t)||!r.length)&&r.splice(0,0,t),(!r.includes(n)||r.length===1)&&r.push(n),r.sort((i,a)=>i-a)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?t=this.normalize(n.concat(r)):t=n.length?n:r,t=this._cache.all=t,t}getDecimalForValue(t){return(hk(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return hk(this._table,r*this._tableRange+this._minPos,!0)}}var yKn=Object.freeze({__proto__:null,CategoryScale:YYn,LinearScale:XYn,LogarithmicScale:JYn,RadialLinearScale:pKn,TimeScale:qoe,TimeSeriesScale:vKn});const bKn=[_qn,XWn,VYn,yKn];FF.register(...bKn);/*!
 * chartjs-plugin-datalabels v2.2.0
 * https://chartjs-plugin-datalabels.netlify.app
 * (c) 2017-2022 chartjs-plugin-datalabels contributors
 * Released under the MIT license
 */var e6e=function(){if(typeof window<"u"){if(window.devicePixelRatio)return window.devicePixelRatio;var e=window.screen;if(e)return(e.deviceXDPI||1)/(e.logicalXDPI||1)}return 1}(),NR={toTextLines:function(e){var t=[],n;for(e=[].concat(e);e.length;)n=e.pop(),typeof n=="string"?t.unshift.apply(t,n.split(`
`)):Array.isArray(n)?e.push.apply(e,n):$i(e)||t.unshift(""+n);return t},textSize:function(e,t,n){var r=[].concat(t),i=r.length,a=e.font,o=0,s;for(e.font=n.string,s=0;s<i;++s)o=Math.max(e.measureText(r[s]).width,o);return e.font=a,{height:i*n.lineHeight,width:o}},bound:function(e,t,n){return Math.max(e,Math.min(t,n))},arrayDiff:function(e,t){var n=e.slice(),r=[],i,a,o,s;for(i=0,o=t.length;i<o;++i)s=t[i],a=n.indexOf(s),a===-1?r.push([s,1]):n.splice(a,1);for(i=0,o=n.length;i<o;++i)r.push([n[i],-1]);return r},rasterize:function(e){return Math.round(e*e6e)/e6e}};function $J(e,t){var n=t.x,r=t.y;if(n===null)return{x:0,y:-1};if(r===null)return{x:1,y:0};var i=e.x-n,a=e.y-r,o=Math.sqrt(i*i+a*a);return{x:o?i/o:0,y:o?a/o:-1}}function _Kn(e,t,n,r,i){switch(i){case"center":n=r=0;break;case"bottom":n=0,r=1;break;case"right":n=1,r=0;break;case"left":n=-1,r=0;break;case"top":n=0,r=-1;break;case"start":n=-n,r=-r;break;case"end":break;default:i*=Math.PI/180,n=Math.cos(i),r=Math.sin(i);break}return{x:e,y:t,vx:n,vy:r}}var SKn=0,urt=1,drt=2,frt=4,prt=8;function mk(e,t,n){var r=SKn;return e<n.left?r|=urt:e>n.right&&(r|=drt),t<n.top?r|=prt:t>n.bottom&&(r|=frt),r}function EKn(e,t){for(var n=e.x0,r=e.y0,i=e.x1,a=e.y1,o=mk(n,r,t),s=mk(i,a,t),l,c,u;!(!(o|s)||o&s);)l=o||s,l&prt?(c=n+(i-n)*(t.top-r)/(a-r),u=t.top):l&frt?(c=n+(i-n)*(t.bottom-r)/(a-r),u=t.bottom):l&drt?(u=r+(a-r)*(t.right-n)/(i-n),c=t.right):l&urt&&(u=r+(a-r)*(t.left-n)/(i-n),c=t.left),l===o?(n=c,r=u,o=mk(n,r,t)):(i=c,a=u,s=mk(i,a,t));return{x0:n,x1:i,y0:r,y1:a}}function gk(e,t){var n=t.anchor,r=e,i,a;return t.clamp&&(r=EKn(r,t.area)),n==="start"?(i=r.x0,a=r.y0):n==="end"?(i=r.x1,a=r.y1):(i=(r.x0+r.x1)/2,a=(r.y0+r.y1)/2),_Kn(i,a,e.vx,e.vy,t.align)}var vk={arc:function(e,t){var n=(e.startAngle+e.endAngle)/2,r=Math.cos(n),i=Math.sin(n),a=e.innerRadius,o=e.outerRadius;return gk({x0:e.x+r*a,y0:e.y+i*a,x1:e.x+r*o,y1:e.y+i*o,vx:r,vy:i},t)},point:function(e,t){var n=$J(e,t.origin),r=n.x*e.options.radius,i=n.y*e.options.radius;return gk({x0:e.x-r,y0:e.y-i,x1:e.x+r,y1:e.y+i,vx:n.x,vy:n.y},t)},bar:function(e,t){var n=$J(e,t.origin),r=e.x,i=e.y,a=0,o=0;return e.horizontal?(r=Math.min(e.x,e.base),a=Math.abs(e.base-e.x)):(i=Math.min(e.y,e.base),o=Math.abs(e.base-e.y)),gk({x0:r,y0:i+o,x1:r+a,y1:i,vx:n.x,vy:n.y},t)},fallback:function(e,t){var n=$J(e,t.origin);return gk({x0:e.x,y0:e.y,x1:e.x+(e.width||0),y1:e.y+(e.height||0),vx:n.x,vy:n.y},t)}},k1=NR.rasterize;function CKn(e){var t=e.borderWidth||0,n=e.padding,r=e.size.height,i=e.size.width,a=-i/2,o=-r/2;return{frame:{x:a-n.left-t,y:o-n.top-t,w:i+n.width+t*2,h:r+n.height+t*2},text:{x:a,y:o,w:i,h:r}}}function wKn(e,t){var n=t.chart.getDatasetMeta(t.datasetIndex).vScale;if(!n)return null;if(n.xCenter!==void 0&&n.yCenter!==void 0)return{x:n.xCenter,y:n.yCenter};var r=n.getBasePixel();return e.horizontal?{x:r,y:null}:{x:null,y:r}}function xKn(e){return e instanceof Xnt?vk.arc:e instanceof Jnt?vk.point:e instanceof trt?vk.bar:vk.fallback}function TKn(e,t,n,r,i,a){var o=Math.PI/2;if(a){var s=Math.min(a,i/2,r/2),l=t+s,c=n+s,u=t+r-s,d=n+i-s;e.moveTo(t,c),l<u&&c<d?(e.arc(l,c,s,-Math.PI,-o),e.arc(u,c,s,-o,0),e.arc(u,d,s,0,o),e.arc(l,d,s,o,Math.PI)):l<u?(e.moveTo(l,n),e.arc(u,c,s,-o,o),e.arc(l,c,s,o,Math.PI+o)):c<d?(e.arc(l,c,s,-Math.PI,0),e.arc(l,d,s,0,Math.PI)):e.arc(l,c,s,-Math.PI,Math.PI),e.closePath(),e.moveTo(t,n)}else e.rect(t,n,r,i)}function IKn(e,t,n){var r=n.backgroundColor,i=n.borderColor,a=n.borderWidth;!r&&(!i||!a)||(e.beginPath(),TKn(e,k1(t.x)+a/2,k1(t.y)+a/2,k1(t.w)-a,k1(t.h)-a,n.borderRadius),e.closePath(),r&&(e.fillStyle=r,e.fill()),i&&a&&(e.strokeStyle=i,e.lineWidth=a,e.lineJoin="miter",e.stroke()))}function AKn(e,t,n){var r=n.lineHeight,i=e.w,a=e.x,o=e.y+r/2;return t==="center"?a+=i/2:(t==="end"||t==="right")&&(a+=i),{h:r,w:i,x:a,y:o}}function RKn(e,t,n){var r=e.shadowBlur,i=n.stroked,a=k1(n.x),o=k1(n.y),s=k1(n.w);i&&e.strokeText(t,a,o,s),n.filled&&(r&&i&&(e.shadowBlur=0),e.fillText(t,a,o,s),r&&i&&(e.shadowBlur=r))}function NKn(e,t,n,r){var i=r.textAlign,a=r.color,o=!!a,s=r.font,l=t.length,c=r.textStrokeColor,u=r.textStrokeWidth,d=c&&u,f;if(!(!l||!o&&!d))for(n=AKn(n,i,s),e.font=s.string,e.textAlign=i,e.textBaseline="middle",e.shadowBlur=r.textShadowBlur,e.shadowColor=r.textShadowColor,o&&(e.fillStyle=a),d&&(e.lineJoin="round",e.lineWidth=u,e.strokeStyle=c),f=0,l=t.length;f<l;++f)RKn(e,t[f],{stroked:d,filled:o,w:n.w,x:n.x,y:n.y+n.h*f})}var hrt=function(e,t,n,r){var i=this;i._config=e,i._index=r,i._model=null,i._rects=null,i._ctx=t,i._el=n};ov(hrt.prototype,{_modelize:function(e,t,n,r){var i=this,a=i._index,o=ml(ko([n.font,{}],r,a)),s=ko([n.color,hs.color],r,a);return{align:ko([n.align,"center"],r,a),anchor:ko([n.anchor,"center"],r,a),area:r.chart.chartArea,backgroundColor:ko([n.backgroundColor,null],r,a),borderColor:ko([n.borderColor,null],r,a),borderRadius:ko([n.borderRadius,0],r,a),borderWidth:ko([n.borderWidth,0],r,a),clamp:ko([n.clamp,!1],r,a),clip:ko([n.clip,!1],r,a),color:s,display:e,font:o,lines:t,offset:ko([n.offset,4],r,a),opacity:ko([n.opacity,1],r,a),origin:wKn(i._el,r),padding:Tc(ko([n.padding,4],r,a)),positioner:xKn(i._el),rotation:ko([n.rotation,0],r,a)*(Math.PI/180),size:NR.textSize(i._ctx,t,o),textAlign:ko([n.textAlign,"start"],r,a),textShadowBlur:ko([n.textShadowBlur,0],r,a),textShadowColor:ko([n.textShadowColor,s],r,a),textStrokeColor:ko([n.textStrokeColor,s],r,a),textStrokeWidth:ko([n.textStrokeWidth,0],r,a)}},update:function(e){var t=this,n=null,r=null,i=t._index,a=t._config,o,s,l,c=ko([a.display,!0],e,i);c&&(o=e.dataset.data[i],s=pi(io(a.formatter,[o,e]),o),l=$i(s)?[]:NR.toTextLines(s),l.length&&(n=t._modelize(c,l,a,e),r=CKn(n))),t._model=n,t._rects=r},geometry:function(){return this._rects?this._rects.frame:{}},rotation:function(){return this._model?this._model.rotation:0},visible:function(){return this._model&&this._model.opacity},model:function(){return this._model},draw:function(e,t){var n=this,r=e.ctx,i=n._model,a=n._rects,o;this.visible()&&(r.save(),i.clip&&(o=i.area,r.beginPath(),r.rect(o.left,o.top,o.right-o.left,o.bottom-o.top),r.clip()),r.globalAlpha=NR.bound(0,i.opacity,1),r.translate(k1(t.x),k1(t.y)),r.rotate(i.rotation),IKn(r,a.frame,i),NKn(r,i.lines,a.text,i),r.restore())}});var OKn=Number.MIN_SAFE_INTEGER||-9007199254740991,LKn=Number.MAX_SAFE_INTEGER||9007199254740991;function wI(e,t,n){var r=Math.cos(n),i=Math.sin(n),a=t.x,o=t.y;return{x:a+r*(e.x-a)-i*(e.y-o),y:o+i*(e.x-a)+r*(e.y-o)}}function t6e(e,t){var n=LKn,r=OKn,i=t.origin,a,o,s,l,c;for(a=0;a<e.length;++a)o=e[a],s=o.x-i.x,l=o.y-i.y,c=t.vx*s+t.vy*l,n=Math.min(n,c),r=Math.max(r,c);return{min:n,max:r}}function yk(e,t){var n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r);return{vx:(t.x-e.x)/i,vy:(t.y-e.y)/i,origin:e,ln:i}}var mrt=function(){this._rotation=0,this._rect={x:0,y:0,w:0,h:0}};ov(mrt.prototype,{center:function(){var e=this._rect;return{x:e.x+e.w/2,y:e.y+e.h/2}},update:function(e,t,n){this._rotation=n,this._rect={x:t.x+e.x,y:t.y+e.y,w:t.w,h:t.h}},contains:function(e){var t=this,n=1,r=t._rect;return e=wI(e,t.center(),-t._rotation),!(e.x<r.x-n||e.y<r.y-n||e.x>r.x+r.w+n*2||e.y>r.y+r.h+n*2)},intersects:function(e){var t=this._points(),n=e._points(),r=[yk(t[0],t[1]),yk(t[0],t[3])],i,a,o;for(this._rotation!==e._rotation&&r.push(yk(n[0],n[1]),yk(n[0],n[3])),i=0;i<r.length;++i)if(a=t6e(t,r[i]),o=t6e(n,r[i]),a.max<o.min||o.max<a.min)return!1;return!0},_points:function(){var e=this,t=e._rect,n=e._rotation,r=e.center();return[wI({x:t.x,y:t.y},r,n),wI({x:t.x+t.w,y:t.y},r,n),wI({x:t.x+t.w,y:t.y+t.h},r,n),wI({x:t.x,y:t.y+t.h},r,n)]}});function grt(e,t,n){var r=t.positioner(e,t),i=r.vx,a=r.vy;if(!i&&!a)return{x:r.x,y:r.y};var o=n.w,s=n.h,l=t.rotation,c=Math.abs(o/2*Math.cos(l))+Math.abs(s/2*Math.sin(l)),u=Math.abs(o/2*Math.sin(l))+Math.abs(s/2*Math.cos(l)),d=1/Math.max(Math.abs(i),Math.abs(a));return c*=i*d,u*=a*d,c+=t.offset*i,u+=t.offset*a,{x:r.x+c,y:r.y+u}}function PKn(e,t){var n,r,i,a;for(n=e.length-1;n>=0;--n)for(i=e[n].$layout,r=n-1;r>=0&&i._visible;--r)a=e[r].$layout,a._visible&&i._box.intersects(a._box)&&t(i,a);return e}function kKn(e){var t,n,r,i,a,o,s;for(t=0,n=e.length;t<n;++t)r=e[t],i=r.$layout,i._visible&&(s=new Proxy(r._el,{get:(l,c)=>l.getProps([c],!0)[c]}),a=r.geometry(),o=grt(s,r.model(),a),i._box.update(o,a,r.rotation()));return PKn(e,function(l,c){var u=l._hidable,d=c._hidable;u&&d||d?c._visible=!1:u&&(l._visible=!1)})}var OR={prepare:function(e){var t=[],n,r,i,a,o;for(n=0,i=e.length;n<i;++n)for(r=0,a=e[n].length;r<a;++r)o=e[n][r],t.push(o),o.$layout={_box:new mrt,_hidable:!1,_visible:!0,_set:n,_idx:o._index};return t.sort(function(s,l){var c=s.$layout,u=l.$layout;return c._idx===u._idx?u._set-c._set:u._idx-c._idx}),this.update(t),t},update:function(e){var t=!1,n,r,i,a,o;for(n=0,r=e.length;n<r;++n)i=e[n],a=i.model(),o=i.$layout,o._hidable=a&&a.display==="auto",o._visible=i.visible(),t|=o._hidable;t&&kKn(e)},lookup:function(e,t){var n,r;for(n=e.length-1;n>=0;--n)if(r=e[n].$layout,r&&r._visible&&r._box.contains(t))return e[n];return null},draw:function(e,t){var n,r,i,a,o,s;for(n=0,r=t.length;n<r;++n)i=t[n],a=i.$layout,a._visible&&(o=i.geometry(),s=grt(i._el,i.model(),o),a._box.update(s,o,i.rotation()),i.draw(e,s))}},MKn=function(e){if($i(e))return null;var t=e,n,r,i;if(Ui(e))if(!$i(e.label))t=e.label;else if(!$i(e.r))t=e.r;else for(t="",n=Object.keys(e),i=0,r=n.length;i<r;++i)t+=(i!==0?", ":"")+n[i]+": "+e[n[i]];return""+t},DKn={align:"center",anchor:"center",backgroundColor:null,borderColor:null,borderRadius:0,borderWidth:0,clamp:!1,clip:!1,color:void 0,display:!0,font:{family:void 0,lineHeight:1.2,size:void 0,style:void 0,weight:null},formatter:MKn,labels:void 0,listeners:{},offset:4,opacity:1,padding:{top:4,right:4,bottom:4,left:4},rotation:0,textAlign:"start",textStrokeColor:void 0,textStrokeWidth:0,textShadowBlur:0,textShadowColor:void 0},id="$datalabels",vrt="$default";function $Kn(e,t){var n=e.datalabels,r={},i=[],a,o;return n===!1?null:(n===!0&&(n={}),t=ov({},[t,n]),a=t.labels||{},o=Object.keys(a),delete t.labels,o.length?o.forEach(function(s){a[s]&&i.push(ov({},[t,a[s],{_key:s}]))}):i.push(t),r=i.reduce(function(s,l){return Ba(l.listeners||{},function(c,u){s[u]=s[u]||{},s[u][l._key||vrt]=c}),delete l.listeners,s},{}),{labels:i,listeners:r})}function Woe(e,t,n,r){if(t){var i=n.$context,a=n.$groups,o;t[a._set]&&(o=t[a._set][a._key],o&&io(o,[i,r])===!0&&(e[id]._dirty=!0,n.update(i)))}}function FKn(e,t,n,r,i){var a,o;!n&&!r||(n?r?n!==r&&(o=a=!0):o=!0:a=!0,o&&Woe(e,t.leave,n,i),a&&Woe(e,t.enter,r,i))}function BKn(e,t){var n=e[id],r=n._listeners,i,a;if(!(!r.enter&&!r.leave)){if(t.type==="mousemove")a=OR.lookup(n._labels,t);else if(t.type!=="mouseout")return;i=n._hovered,n._hovered=a,FKn(e,r,i,a,t)}}function jKn(e,t){var n=e[id],r=n._listeners.click,i=r&&OR.lookup(n._labels,t);i&&Woe(e,r,i,t)}var zKn={id:"datalabels",defaults:DKn,beforeInit:function(e){e[id]={_actives:[]}},beforeUpdate:function(e){var t=e[id];t._listened=!1,t._listeners={},t._datasets=[],t._labels=[]},afterDatasetUpdate:function(e,t,n){var r=t.index,i=e[id],a=i._datasets[r]=[],o=e.isDatasetVisible(r),s=e.data.datasets[r],l=$Kn(s,n),c=t.meta.data||[],u=e.ctx,d,f,p,h,m,g,v,y;for(u.save(),d=0,p=c.length;d<p;++d)if(v=c[d],v[id]=[],o&&v&&e.getDataVisibility(d)&&!v.skip)for(f=0,h=l.labels.length;f<h;++f)m=l.labels[f],g=m._key,y=new hrt(m,u,v,d),y.$groups={_set:r,_key:g||vrt},y.$context={active:!1,chart:e,dataIndex:d,dataset:s,datasetIndex:r},y.update(y.$context),v[id].push(y),a.push(y);u.restore(),ov(i._listeners,l.listeners,{merger:function(_,S,C){S[_]=S[_]||{},S[_][t.index]=C[_],i._listened=!0}})},afterUpdate:function(e){e[id]._labels=OR.prepare(e[id]._datasets)},afterDatasetsDraw:function(e){OR.draw(e,e[id]._labels)},beforeEvent:function(e,t){if(e[id]._listened){var n=t.event;switch(n.type){case"mousemove":case"mouseout":BKn(e,n);break;case"click":jKn(e,n);break}}},afterEvent:function(e){var t=e[id],n=t._actives,r=t._actives=e.getActiveElements(),i=NR.arrayDiff(n,r),a,o,s,l,c,u,d;for(a=0,o=i.length;a<o;++a)if(c=i[a],c[1])for(d=c[0].element[id]||[],s=0,l=d.length;s<l;++s)u=d[s],u.$context.active=c[1]===1,u.update(u.$context);(t._dirty||i.length)&&(OR.update(t._labels),e.render()),delete t._dirty}};const{useToken:UKn}=Fd,HKn=e=>{const{data:t,loading:n}=e,{token:r}=UKn(),i=b.useRef(null),a=b.useRef(null),o={labels:t.map(l=>l.date),datasets:[{data:t.map(l=>l.count),borderColor:r.colorPrimary,backgroundColor:"#f0f7ff",fill:!0}]},s={responsive:!0,maintainAspectRatio:!1,scales:{y:{beginAtZero:!0,grace:"11%",grid:{display:!1},ticks:{display:!1,stepSize:1}},x:{grid:{display:!1}}}};return b.useEffect(()=>{if(i.current&&!n){const l=i.current.getContext("2d");FF.register(zKn),a.current=new FF(l,{type:"line",options:{...s,plugins:{datalabels:{color:r.colorPrimary,anchor:"end",align:"top"},legend:{display:!1}}},data:o})}return()=>{a.current.destroy()}},[]),b.useEffect(()=>{a.current.data=o,a.current.update()},[t]),E.jsxs("section",{children:[E.jsx("div",{className:Us.blockTitle,children:jUn}),E.jsx("div",{className:Us.chartContainer,children:E.jsx("canvas",{ref:i})})]})},VKn=b.memo(HKn);function GKn(e){const{requestsToday:t,statistic:n}=e,{isLimitedUser:r}=st(Pl);return E.jsxs("section",{children:[E.jsx("div",{className:Us.blockTitle,children:PUn}),E.jsxs("div",{className:Us.statisticsContainer,children:[E.jsx("div",{className:Us.statisticItem,children:E.jsxs(vr,{placement:"top",title:MUn,children:[E.jsx("div",{className:Us.statisticValue,"data-testid":"files",children:n&&kae(n.fileCount)}),E.jsx("div",{className:Us.statisticLabel,children:kUn})]})}),!r&&E.jsx("div",{className:Us.statisticItem,children:E.jsxs(vr,{placement:"top",title:$Un,children:[E.jsx("div",{className:Us.statisticValue,"data-testid":"documents",children:n&&kae(n.documentCount)}),E.jsx("div",{className:Us.statisticLabel,children:DUn})]})}),E.jsxs("div",{className:Us.statisticItem,children:[E.jsx("div",{className:Us.statisticValue,"data-testid":"average-responce-time",children:n&&`${n.averageResponseTime}s`}),E.jsx("div",{className:Us.statisticLabel,children:FUn})]}),E.jsxs("div",{className:Us.statisticItem,children:[E.jsx("div",{className:Us.statisticValue,"data-testid":"requests-today",children:t}),E.jsx("div",{className:Us.statisticLabel,children:BUn})]})]})]})}function qKn(e=er()){return rn.get(`/api/v1/workspaces/${e}/stats`)}function WKn(e=er()){return rn.get(`/api/v1/workspaces/${e}/search_count`)}function YKn(e){const t=er(),n={limit:HUn};return rn.get(`/api/v1/workspaces/${t}/search_history`,{params:n})}const KKn=Ut(sKe,async()=>(await WKn()).data),XKn=Ut(lKe,async()=>(await qKn()).data),ZKn=Ut(A7,async()=>(await YKn()).data),VU=e=>e.dashboardStore,yrt=It(VU,e=>e.workspaceStats),QKn=It(VU,e=>e.searchCount),JKn=It(VU,e=>e.requestHistory),eXn=It(VU,e=>e.loadingRequestHistory);var Sme={},zF=function(){return zF=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},zF.apply(this,arguments)},tXn=function(){function e(t,n,r){var i=this;this.endVal=n,this.options=r,this.version="2.8.0",this.defaults={startVal:0,decimalPlaces:0,duration:2,useEasing:!0,useGrouping:!0,useIndianSeparators:!1,smartEasingThreshold:999,smartEasingAmount:333,separator:",",decimal:".",prefix:"",suffix:"",enableScrollSpy:!1,scrollSpyDelay:200,scrollSpyOnce:!1},this.finalEndVal=null,this.useEasing=!0,this.countDown=!1,this.error="",this.startVal=0,this.paused=!0,this.once=!1,this.count=function(a){i.startTime||(i.startTime=a);var o=a-i.startTime;i.remaining=i.duration-o,i.useEasing?i.countDown?i.frameVal=i.startVal-i.easingFn(o,0,i.startVal-i.endVal,i.duration):i.frameVal=i.easingFn(o,i.startVal,i.endVal-i.startVal,i.duration):i.frameVal=i.startVal+(i.endVal-i.startVal)*(o/i.duration);var s=i.countDown?i.frameVal<i.endVal:i.frameVal>i.endVal;i.frameVal=s?i.endVal:i.frameVal,i.frameVal=Number(i.frameVal.toFixed(i.options.decimalPlaces)),i.printValue(i.frameVal),o<i.duration?i.rAF=requestAnimationFrame(i.count):i.finalEndVal!==null?i.update(i.finalEndVal):i.options.onCompleteCallback&&i.options.onCompleteCallback()},this.formatNumber=function(a){var o,s,l,c,u=a<0?"-":"";o=Math.abs(a).toFixed(i.options.decimalPlaces);var d=(o+="").split(".");if(s=d[0],l=d.length>1?i.options.decimal+d[1]:"",i.options.useGrouping){c="";for(var f=3,p=0,h=0,m=s.length;h<m;++h)i.options.useIndianSeparators&&h===4&&(f=2,p=1),h!==0&&p%f==0&&(c=i.options.separator+c),p++,c=s[m-h-1]+c;s=c}return i.options.numerals&&i.options.numerals.length&&(s=s.replace(/[0-9]/g,function(g){return i.options.numerals[+g]}),l=l.replace(/[0-9]/g,function(g){return i.options.numerals[+g]})),u+i.options.prefix+s+l+i.options.suffix},this.easeOutExpo=function(a,o,s,l){return s*(1-Math.pow(2,-10*a/l))*1024/1023+o},this.options=zF(zF({},this.defaults),r),this.formattingFn=this.options.formattingFn?this.options.formattingFn:this.formatNumber,this.easingFn=this.options.easingFn?this.options.easingFn:this.easeOutExpo,this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.endVal=this.validateValue(n),this.options.decimalPlaces=Math.max(this.options.decimalPlaces),this.resetDuration(),this.options.separator=String(this.options.separator),this.useEasing=this.options.useEasing,this.options.separator===""&&(this.options.useGrouping=!1),this.el=typeof t=="string"?document.getElementById(t):t,this.el?this.printValue(this.startVal):this.error="[CountUp] target is null or undefined",typeof window<"u"&&this.options.enableScrollSpy&&(this.error?console.error(this.error,t):(window.onScrollFns=window.onScrollFns||[],window.onScrollFns.push(function(){return i.handleScroll(i)}),window.onscroll=function(){window.onScrollFns.forEach(function(a){return a()})},this.handleScroll(this)))}return e.prototype.handleScroll=function(t){if(t&&window&&!t.once){var n=window.innerHeight+window.scrollY,r=t.el.getBoundingClientRect(),i=r.top+window.pageYOffset,a=r.top+r.height+window.pageYOffset;a<n&&a>window.scrollY&&t.paused?(t.paused=!1,setTimeout(function(){return t.start()},t.options.scrollSpyDelay),t.options.scrollSpyOnce&&(t.once=!0)):(window.scrollY>a||i>n)&&!t.paused&&t.reset()}},e.prototype.determineDirectionAndSmartEasing=function(){var t=this.finalEndVal?this.finalEndVal:this.endVal;this.countDown=this.startVal>t;var n=t-this.startVal;if(Math.abs(n)>this.options.smartEasingThreshold&&this.options.useEasing){this.finalEndVal=t;var r=this.countDown?1:-1;this.endVal=t+r*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=t,this.finalEndVal=null;this.finalEndVal!==null?this.useEasing=!1:this.useEasing=this.options.useEasing},e.prototype.start=function(t){this.error||(this.options.onStartCallback&&this.options.onStartCallback(),t&&(this.options.onCompleteCallback=t),this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},e.prototype.pauseResume=function(){this.paused?(this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count)):cancelAnimationFrame(this.rAF),this.paused=!this.paused},e.prototype.reset=function(){cancelAnimationFrame(this.rAF),this.paused=!0,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal)},e.prototype.update=function(t){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(t),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,this.finalEndVal==null&&this.resetDuration(),this.finalEndVal=null,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},e.prototype.printValue=function(t){var n;if(this.el){var r=this.formattingFn(t);!((n=this.options.plugin)===null||n===void 0)&&n.render?this.options.plugin.render(this.el,r):this.el.tagName==="INPUT"?this.el.value=r:this.el.tagName==="text"||this.el.tagName==="tspan"?this.el.textContent=r:this.el.innerHTML=r}},e.prototype.ensureNumber=function(t){return typeof t=="number"&&!isNaN(t)},e.prototype.validateValue=function(t){var n=Number(t);return this.ensureNumber(n)?n:(this.error="[CountUp] invalid start or end value: ".concat(t),null)},e.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},e}();const nXn=Object.freeze(Object.defineProperty({__proto__:null,CountUp:tXn},Symbol.toStringTag,{value:"Module"})),rXn=jle(nXn);Object.defineProperty(Sme,"__esModule",{value:!0});var Wl=b,iXn=rXn;function aXn(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function n6e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function UF(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?n6e(Object(n),!0).forEach(function(r){lXn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n6e(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function oXn(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sXn(e){var t=oXn(e,"string");return typeof t=="symbol"?t:String(t)}function lXn(e,t,n){return t=sXn(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yoe(){return Yoe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yoe.apply(this,arguments)}function cXn(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function brt(e,t){if(e==null)return{};var n=cXn(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function uXn(e,t){return dXn(e)||aXn(e,t)||fXn(e,t)||pXn()}function dXn(e){if(Array.isArray(e))return e}function fXn(e,t){if(e){if(typeof e=="string")return r6e(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 r6e(e,t)}}function r6e(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function pXn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var hXn=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?Wl.useLayoutEffect:Wl.useEffect;function Ph(e){var t=Wl.useRef(e);return hXn(function(){t.current=e}),Wl.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current.apply(void 0,r)},[])}var mXn=function(t,n){var r=n.decimal,i=n.decimals,a=n.duration,o=n.easingFn,s=n.end,l=n.formattingFn,c=n.numerals,u=n.prefix,d=n.separator,f=n.start,p=n.suffix,h=n.useEasing,m=n.useGrouping,g=n.useIndianSeparators,v=n.enableScrollSpy,y=n.scrollSpyDelay,_=n.scrollSpyOnce,S=n.plugin;return new iXn.CountUp(t,s,{startVal:f,duration:a,decimal:r,decimalPlaces:i,easingFn:o,formattingFn:l,numerals:c,separator:d,prefix:u,suffix:p,plugin:S,useEasing:h,useIndianSeparators:g,useGrouping:m,enableScrollSpy:v,scrollSpyDelay:y,scrollSpyOnce:_})},gXn=["ref","startOnMount","enableReinitialize","delay","onEnd","onStart","onPauseResume","onReset","onUpdate"],vXn={decimal:".",separator:",",delay:null,prefix:"",suffix:"",duration:2,start:0,decimals:0,startOnMount:!0,enableReinitialize:!0,useEasing:!0,useGrouping:!0,useIndianSeparators:!1},_rt=function(t){var n=Object.fromEntries(Object.entries(t).filter(function(A){var I=uXn(A,2),R=I[1];return R!==void 0})),r=Wl.useMemo(function(){return UF(UF({},vXn),n)},[t]),i=r.ref,a=r.startOnMount,o=r.enableReinitialize,s=r.delay,l=r.onEnd,c=r.onStart,u=r.onPauseResume,d=r.onReset,f=r.onUpdate,p=brt(r,gXn),h=Wl.useRef(),m=Wl.useRef(),g=Wl.useRef(!1),v=Ph(function(){return mXn(typeof i=="string"?i:i.current,p)}),y=Ph(function(A){var I=h.current;if(I&&!A)return I;var R=v();return h.current=R,R}),_=Ph(function(){var A=function(){return y(!0).start(function(){l?.({pauseResume:S,reset:C,start:x,update:w})})};s&&s>0?m.current=setTimeout(A,s*1e3):A(),c?.({pauseResume:S,reset:C,update:w})}),S=Ph(function(){y().pauseResume(),u?.({reset:C,start:x,update:w})}),C=Ph(function(){y().el&&(m.current&&clearTimeout(m.current),y().reset(),d?.({pauseResume:S,start:x,update:w}))}),w=Ph(function(A){y().update(A),f?.({pauseResume:S,reset:C,start:x})}),x=Ph(function(){C(),_()}),T=Ph(function(A){a&&(A&&C(),_())});return Wl.useEffect(function(){g.current?o&&T(!0):(g.current=!0,T())},[o,g,T,s,t.start,t.suffix,t.prefix,t.duration,t.separator,t.decimals,t.decimal,t.formattingFn]),Wl.useEffect(function(){return function(){C()}},[C]),{start:x,pauseResume:S,reset:C,update:w,getCountUp:y}},yXn=["className","redraw","containerProps","children","style"],bXn=function(t){var n=t.className,r=t.redraw,i=t.containerProps,a=t.children,o=t.style,s=brt(t,yXn),l=Wl.useRef(null),c=Wl.useRef(!1),u=_rt(UF(UF({},s),{},{ref:l,startOnMount:typeof a!="function"||t.delay===0,enableReinitialize:!1})),d=u.start,f=u.reset,p=u.update,h=u.pauseResume,m=u.getCountUp,g=Ph(function(){d()}),v=Ph(function(S){t.preserveValue||f(),p(S)}),y=Ph(function(){if(typeof t.children=="function"&&!(l.current instanceof Element)){console.error(`Couldn't find attached element to hook the CountUp instance into! Try to attach "containerRef" from the render prop to a an Element, eg. <span ref={containerRef} />.`);return}m()});Wl.useEffect(function(){y()},[y]),Wl.useEffect(function(){c.current&&v(t.end)},[t.end,v]);var _=r&&t;return Wl.useEffect(function(){r&&c.current&&g()},[g,r,_]),Wl.useEffect(function(){!r&&c.current&&g()},[g,r,t.start,t.suffix,t.prefix,t.duration,t.separator,t.decimals,t.decimal,t.className,t.formattingFn]),Wl.useEffect(function(){c.current=!0},[]),typeof a=="function"?a({countUpRef:l,start:d,reset:f,update:p,pauseResume:h,getCountUp:m}):Wl.createElement("span",Yoe({className:n,ref:l,style:o},i),typeof t.start<"u"?m().formattingFn(t.start):"")},_Xn=Sme.default=bXn;Sme.useCountUp=_rt;const SXn="_card_wp6t0_25",EXn="_container_wp6t0_25",CXn="_header_wp6t0_46",wXn="_header_surtitle_wp6t0_50",xXn="_body_labels_wp6t0_59",TXn="_warningIcon_wp6t0_68",IXn="_tag_wp6t0_73",I2={card:SXn,container:EXn,header:CXn,header_surtitle:wXn,body_labels:xXn,warningIcon:TXn,tag:IXn},{useToken:AXn}=Fd,Koe=({label:e,metric:t,tooltip:n,limit:r,showLimitInfo:i=!0,metricSuffix:a})=>{const{token:o}=AXn(),s=r&&r.target&&r.current?r.current>r.target:!1,l=()=>!r?.target||!r.current?0:r.current/r.target*100,c=()=>r?.target?r.targetLabel?r.targetLabel:kae(r.target,!1):ayn,u=()=>{let d=E.jsx(E.Fragment,{children:t});return Nn.isNil(t)?E.jsxs("span",{children:["-",E.jsx(Si,{className:I2.tag,children:_fn})]}):(typeof t=="number"&&(d=E.jsx(_Xn,{end:t,separator:","})),E.jsxs(E.Fragment,{children:[d,a]}))};return E.jsxs("div",{className:I2.container,children:[E.jsxs("div",{className:I2.header,children:[E.jsxs("div",{className:I2.header_surtitle,children:[e,n&&E.jsx(vr,{title:n,children:E.jsx(om,{})})]}),E.jsxs("h5",{children:[s&&E.jsx(_j,{className:I2.warningIcon}),u()]})]}),E.jsx("div",{className:I2.body,children:r&&i&&E.jsxs(E.Fragment,{children:[E.jsxs("div",{className:I2.body_labels,children:[E.jsxs("span",{children:[" ",r.name," "]}),E.jsx("span",{children:c()})]}),E.jsx(TC,{percent:l(),strokeColor:s?o.colorWarning:"",showInfo:!1,size:"small"})]})})]})},RXn=()=>rn.get("/api/v2/pricing/pricing_plan"),Srt=e=>{const t={...e?.interval&&{interval:e.interval},...e?.dateRange?.from&&{from:e.dateRange.from.toISOString()},...e?.dateRange?.to&&{until:e.dateRange.to.toISOString()}};return rn.get("/api/v2/metering/stats",{params:t})},NXn=e=>{const t={...e?.limit&&{limit:e?.limit},...e?.pageNumber&&{page_number:e?.pageNumber},...e?.dateRange?.from&&{from:e.dateRange.from.toISOString()},...e?.dateRange?.to&&{until:e.dateRange.to.toISOString()},...e?.field&&{field:e.field},...e?.order&&{order:e.order},...e?.filter&&{filter:e.filter}};return rn.get("/api/v2/metering/pipeline-stats",{params:t})},OXn={type:nXe},LXn=e=>({type:rXe,payload:e}),PXn=Ut(JKe,async()=>{try{const{data:e}=await RXn();return e||null}catch{return null}}),kXn=Ut(eXe,async({dateRange:e},{dispatch:t,rejectWithValue:n})=>{const r={dateRange:e};try{const{data:i}=await Srt(r);return i}catch(i){return t(jn({content:Wn(i),type:yn.Error})),n(i)}}),MXn=Ut(tXe,async({dateRange:e,interval:t},{dispatch:n,rejectWithValue:r})=>{const i={dateRange:e,interval:t};try{const{data:a}=await Srt(i);return{data:a,dateRange:e}}catch(a){return n(jn({content:Wn(a),type:yn.Error})),r(a)}}),DXn=Ut(iM,async({dateRange:e,limit:t,pageNumber:n,searchValue:r,sortValue:i,filterValues:a},{getState:o,dispatch:s,rejectWithValue:l})=>{const{pipelineUsageMetricsSortValue:c}=o().usageStore,u=i||c;s(LXn(u));const{field:d,order:f}=gyn[u]||{},p=r&&b0("pipeline_name",r),h=a&&Im(a),m={limit:t,pageNumber:n,dateRange:e,filter:XO(p,h),field:d,order:f};try{const{data:g}=await NXn(m);return g}catch(g){return s(jn({content:Wn(g),type:yn.Error})),l(g)}}),V_=e=>e.usageStore,$Xn=It(V_,e=>e.usageLimits),FXn=It(V_,e=>e.usageMetrics),BXn=It(V_,e=>e.pipelineUsageHours),jXn=It(V_,e=>e.pipelineUsageMetrics),zXn=It(V_,e=>e.fetchingPipelineUsageMetricsStatus),UXn=It(V_,e=>e.selectedDateRange),HXn=It(V_,e=>e.pipelineUsageMetricsSortValue),VXn=It(V_,e=>e.pipelineUsageMetricsFiltersValues),g8=()=>{const e=st(UXn),t=()=>e?{...e,from:e6(e.from),to:e6(e.to)}:null,n=()=>{const i=t();if(!i)return"";const{from:a,to:o}=i;return`${a?.format("DD MMM")} - ${o?.format("DD MMM")}`},r=()=>{const{from:i,to:a}=t()||{};return{from:i?.date()||null,current:Cr().date(),to:a?.date()||null}};return{selectedDateRange:t(),currentUsageCycleText:n(),currentUsageCycleDate:r()}},Ert=e=>{const t=ir(),{disregardDate:n}=e||{},{selectedDateRange:r}=g8(),i=st(FXn),a=st($Xn);return b.useEffect(()=>{const o={from:n?Cr("2024-01-01"):r?.from,to:n?Cr():r?.to};t(PXn()),t(kXn({dateRange:o}))},[]),{usageMetrics:i,usageLimits:a}},GXn="_container_1c61e_13",qXn={container:GXn},WXn=()=>{const{usageMetrics:e}=Ert({disregardDate:!0}),t=st(yrt),{development_pipelines:n,development_hours:r}=e;return E.jsxs("section",{children:[E.jsxs("h5",{children:[GUn," ",E.jsxs(Si,{children:[" ",qUn]})]}),E.jsx("div",{className:qXn.container,children:Object.keys(RRe).map(i=>{const{label:a,tooltip:o,target:s,limitLabel:l,targetLabel:c}=RRe[i],u=i==="files"?t.fileCount:i==="pipelines"?n:r;return E.jsx(Koe,{label:a,metric:u,tooltip:o,limit:{current:u,target:s,name:l,targetLabel:c},showLimitInfo:!0},i)})})]})},YXn="_container_1oerd_35",KXn="_item_1oerd_40",XXn="_card_1oerd_57",xI={"auth-content":"_auth-content_1oerd_25","content-wrapper":"_content-wrapper_1oerd_35",container:YXn,"content-wrapper_padding":"_content-wrapper_padding_1oerd_40",item:KXn,card:XXn},ZXn=()=>{const e=ir(),{isLimitedUser:t}=st(Pl),n=st(QKn),r=st(yrt),i=st(JKn),a=st(eXn),o=n.length&&n[n.length-1].count;return b.useEffect(()=>{e(KKn()),e(XKn()),e(ZKn())},[e]),E.jsxs("div",{className:xI.container,"data-testid":"dashboardPage",children:[t&&E.jsx("div",{className:xI.item,children:E.jsx(WXn,{})}),E.jsx("div",{className:xI.item,children:E.jsx(GKn,{statistic:r,requestsToday:o})}),E.jsx("div",{className:xI.item,children:E.jsx(VKn,{data:n,loading:!1})}),E.jsx("div",{className:xI.item,children:E.jsx(rVn,{data:i,searchRequestCount:r.searchRequestCount,loading:a})})]})},QXn="_container_n4lej_13",JXn="_title_n4lej_21",eZn="_subtitle_n4lej_26",FJ={container:QXn,title:JXn,subtitle:eZn},i6e=()=>E.jsxs("div",{className:FJ.container,children:[E.jsx(tnt,{}),E.jsx("div",{className:FJ.title,children:ufn}),E.jsx("div",{className:FJ.subtitle,children:dfn})]}),tZn=e=>b.createElement("svg",{width:300,height:300,viewBox:"0 0 300 300",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("g",{clipPath:"url(#clip0_922_77986)"},b.createElement("path",{d:"M143.905 300C205.156 300 254.809 291.228 254.809 280.408C254.809 269.587 205.156 260.815 143.905 260.815C82.6537 260.815 33 269.587 33 280.408C33 291.228 82.6537 300 143.905 300Z",fill:"#3F3D56"}),b.createElement("path",{d:"M159.31 216.777C219.171 216.777 267.698 168.249 267.698 108.388C267.698 48.5271 219.171 0 159.31 0C99.4489 0 50.9219 48.5271 50.9219 108.388C50.9219 168.249 99.4489 216.777 159.31 216.777Z",fill:"#3F3D56"}),b.createElement("path",{opacity:.05,d:"M159.31 197.866C208.727 197.866 248.788 157.805 248.788 108.388C248.788 58.9708 208.727 18.9102 159.31 18.9102C109.893 18.9102 69.832 58.9708 69.832 108.388C69.832 157.805 109.893 197.866 159.31 197.866Z",fill:"black"}),b.createElement("path",{opacity:.05,d:"M159.312 181.723C199.813 181.723 232.647 148.89 232.647 108.388C232.647 67.8864 199.813 35.0532 159.312 35.0532C118.81 35.0532 85.9766 67.8864 85.9766 108.388C85.9766 148.89 118.81 181.723 159.312 181.723Z",fill:"black"}),b.createElement("path",{opacity:.05,d:"M159.31 160.968C188.349 160.968 211.89 137.427 211.89 108.388C211.89 79.3494 188.349 55.8086 159.31 55.8086C130.271 55.8086 106.73 79.3494 106.73 108.388C106.73 137.427 130.271 160.968 159.31 160.968Z",fill:"black"}),b.createElement("path",{d:"M102.704 118.088C102.704 118.088 94.183 142.075 97.9703 150.596C101.758 159.118 107.754 167.324 107.754 167.324C107.754 167.324 105.545 119.666 102.704 118.088Z",fill:"#D0CDE1"}),b.createElement("path",{opacity:.1,d:"M102.704 118.088C102.704 118.088 94.183 142.075 97.9703 150.596C101.758 159.118 107.754 167.324 107.754 167.324C107.754 167.324 105.545 119.666 102.704 118.088Z",fill:"black"}),b.createElement("path",{d:"M109.88 173.636C109.88 173.636 109.249 179.633 108.933 179.948C108.618 180.264 109.249 180.895 108.933 181.842C108.618 182.789 108.302 184.051 108.933 184.367C109.564 184.682 105.462 212.456 105.462 212.456C105.462 212.456 95.362 225.712 99.465 246.542L100.727 267.688C100.727 267.688 110.511 268.319 110.511 264.848C110.511 264.848 109.88 260.745 109.88 258.851C109.88 256.957 111.458 256.957 110.511 256.01C109.564 255.064 109.564 254.432 109.564 254.432C109.564 254.432 111.143 253.17 110.827 252.854C110.511 252.539 113.667 230.13 113.667 230.13C113.667 230.13 117.139 226.659 117.139 224.765V222.871C117.139 222.871 118.717 218.768 118.717 218.453C118.717 218.137 127.239 198.885 127.239 198.885L130.71 212.772L134.498 232.655C134.498 232.655 136.391 250.645 140.179 257.589C140.179 257.589 146.807 280.312 146.807 279.681C146.807 279.05 157.853 277.472 157.537 274.632C157.222 271.791 150.909 232.024 150.909 232.024L152.488 173.005L109.88 173.636Z",fill:"#2F2E41"}),b.createElement("path",{d:"M101.356 266.11C101.356 266.11 92.8343 282.837 98.5153 283.468C104.196 284.099 106.406 284.099 108.93 281.575C110.311 280.194 113.106 278.342 115.357 276.947C116.69 276.133 117.768 274.96 118.465 273.563C119.162 272.165 119.452 270.599 119.3 269.044C119.134 267.5 118.557 266.228 117.136 266.11C113.349 265.794 108.93 262.322 108.93 262.322L101.356 266.11Z",fill:"#2F2E41"}),b.createElement("path",{d:"M148.383 278.418C148.383 278.418 139.862 295.146 145.543 295.777C151.224 296.408 153.433 296.408 155.958 293.883C157.338 292.503 160.134 290.651 162.384 289.255C163.718 288.442 164.795 287.269 165.492 285.871C166.19 284.474 166.479 282.908 166.327 281.353C166.161 279.809 165.584 278.537 164.164 278.418C160.376 278.103 155.958 274.631 155.958 274.631L148.383 278.418Z",fill:"#2F2E41"}),b.createElement("path",{d:"M139.376 90.7144C146.704 90.7144 152.644 84.7745 152.644 77.4473C152.644 70.1201 146.704 64.1802 139.376 64.1802C132.049 64.1802 126.109 70.1201 126.109 77.4473C126.109 84.7745 132.049 90.7144 139.376 90.7144Z",fill:"#FFB8B8"}),b.createElement("path",{d:"M130.848 81.8066C130.848 81.8066 121.371 99.2434 120.613 99.2434C119.855 99.2434 137.671 104.929 137.671 104.929C137.671 104.929 142.599 88.2507 143.357 86.7344L130.848 81.8066Z",fill:"#FFB8B8"}),b.createElement("path",{d:"M145.385 100.888C145.385 100.888 126.448 90.4727 124.554 90.7883C122.661 91.1039 102.461 108.778 102.777 116.037C103.093 123.296 105.618 135.289 105.618 135.289C105.618 135.289 106.564 168.744 108.458 169.06C110.352 169.375 108.142 175.056 108.774 175.056C109.405 175.056 152.959 175.056 153.275 174.11C153.59 173.163 145.385 100.888 145.385 100.888Z",fill:"#D0CDE1"}),b.createElement("path",{d:"M155.957 175.845C155.957 175.845 161.953 194.15 156.904 193.519C151.854 192.888 149.645 177.738 149.645 177.738L155.957 175.845Z",fill:"#FFB8B8"}),b.createElement("path",{d:"M139.863 99.7828C139.863 99.7828 128.185 102.308 130.079 118.088C131.972 133.869 135.444 149.649 135.444 149.649L147.122 175.214L148.384 179.948L156.906 177.739L150.594 141.128C150.594 141.128 148.384 101.992 145.544 100.73C143.753 99.966 141.805 99.6414 139.863 99.7828Z",fill:"#D0CDE1"}),b.createElement("path",{opacity:.1,d:"M132.762 149.176L147.28 175.055L135.048 147.785L132.762 149.176Z",fill:"black"}),b.createElement("path",{d:"M152.584 73.5408L152.628 72.527L154.645 73.0289C154.623 72.7035 154.531 72.3866 154.375 72.1001C154.219 71.8137 154.003 71.5645 153.741 71.3698L155.89 71.2497C154.087 68.688 151.784 66.5183 149.119 64.8716C146.455 63.2248 143.484 62.1352 140.386 61.6686C135.74 60.9951 130.566 61.9697 127.379 65.4183C125.834 67.0911 124.862 69.2183 124.172 71.3884C122.899 75.3854 122.64 80.1501 125.293 83.399C127.99 86.701 132.699 87.3479 136.943 87.7565C138.436 87.9003 140.001 88.0341 141.384 87.4548C141.538 85.8678 141.335 84.2664 140.79 82.7681C140.563 82.3043 140.454 81.7913 140.474 81.2753C140.662 80.0129 142.346 79.6948 143.611 79.8654C144.876 80.0359 146.397 80.2969 147.229 79.3282C147.801 78.6609 147.767 77.6892 147.843 76.8132C148.05 74.4284 152.563 74.0407 152.584 73.5408Z",fill:"#2F2E41"}),b.createElement("path",{d:"M233.958 283.104C242.496 283.104 249.417 276.183 249.417 267.645C249.417 259.108 242.496 252.187 233.958 252.187C225.421 252.187 218.5 259.108 218.5 267.645C218.5 276.183 225.421 283.104 233.958 283.104Z",fill:"#70747F"}),b.createElement("path",{d:"M52.4115 277.711C60.9489 277.711 67.8698 270.79 67.8698 262.253C67.8698 253.715 60.9489 246.794 52.4115 246.794C43.8741 246.794 36.9531 253.715 36.9531 262.253C36.9531 270.79 43.8741 277.711 52.4115 277.711Z",fill:"#70747F"}),b.createElement("path",{d:"M52.4139 252.906C58.5688 252.906 63.5583 247.916 63.5583 241.762C63.5583 235.607 58.5688 230.617 52.4139 230.617C46.259 230.617 41.2695 235.607 41.2695 241.762C41.2695 247.916 46.259 252.906 52.4139 252.906Z",fill:"#70747F"}),b.createElement("path",{d:"M52.4128 232.415C56.7808 232.415 60.3218 228.874 60.3218 224.506C60.3218 220.138 56.7808 216.597 52.4128 216.597C48.0449 216.597 44.5039 220.138 44.5039 224.506C44.5039 228.874 48.0449 232.415 52.4128 232.415Z",fill:"#70747F"})),b.createElement("defs",null,b.createElement("clipPath",{id:"clip0_922_77986"},b.createElement("rect",{width:300,height:300,fill:"white"})))),nZn="_notFoundPrototypePage_1x9kv_13",rZn="_notFoundPrototypePage_wrapper_1x9kv_19",iZn="_notFoundPrototypePage_wrapper_title_1x9kv_33",aZn="_notFoundPrototypePage_wrapper_subtitle_1x9kv_37",bk={notFoundPrototypePage:nZn,notFoundPrototypePage_wrapper:rZn,notFoundPrototypePage_wrapper_title:iZn,notFoundPrototypePage_wrapper_subtitle:aZn},oZn=()=>E.jsx("div",{className:bk.notFoundPrototypePage,children:E.jsxs("div",{className:bk.notFoundPrototypePage_wrapper,children:[E.jsx(tZn,{}),E.jsx("h3",{className:bk.notFoundPrototypePage_wrapper_title,children:ffn}),E.jsx("div",{className:bk.notFoundPrototypePage_wrapper_subtitle,children:pfn})]})}),sZn={type:wKe},Crt=Ut($7,async({currentPage:e,pageSize:t,searchValue:n},{rejectWithValue:r})=>{const i={page_number:e,limit:t,name:n};try{return(await D$n(i)).data}catch(a){return r(a)}}),lZn=Ut(j7,async(e,{rejectWithValue:t})=>{try{const n=await $$n(e),r=JSON.stringify(n.data);return S0(`${e}.json`,r,"application/json"),n.data}catch(n){return t(n)}}),cZn=Ut(z7,async(e,{rejectWithValue:t})=>{try{const n=await F$n(e);return S0(e,n.data,gi.CSV),n.data}catch(n){return t(n)}}),uZn=Ut(F7,async(e,{rejectWithValue:t})=>{try{return(await ktt(e)).data}catch(n){return t(n)}}),dZn=Ut(B7,async(e,{rejectWithValue:t})=>{try{const n=e.map(r=>ktt(r));return await Promise.all(n),!0}catch(n){return t(n)}}),GU=e=>e.evalsetStore,wrt=It(GU,e=>e.evalsets),fZn=It(GU,e=>e.message),pZn=It(GU,e=>e.actionStatus),hZn=It(GU,e=>e.fetchStatus),Eme=e=>b.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("g",{clipPath:"url(#clip0_1270_592)"},b.createElement("path",{d:"M6.66675 1.33321C6.66675 1.68683 6.80722 2.02597 7.05727 2.27602C7.30732 2.52607 7.64646 2.66654 8.00008 2.66654C8.3537 2.66654 8.69284 2.52607 8.94289 2.27602C9.19294 2.02597 9.33341 1.68683 9.33341 1.33321C9.33341 0.979589 9.19294 0.640451 8.94289 0.390402C8.69284 0.140354 8.3537 -0.00012207 8.00008 -0.00012207C7.64646 -0.00012207 7.30732 0.140354 7.05727 0.390402C6.80722 0.640451 6.66675 0.979589 6.66675 1.33321ZM6.66675 7.99988C6.66675 8.3535 6.80722 8.69264 7.05727 8.94269C7.30732 9.19274 7.64646 9.33321 8.00008 9.33321C8.3537 9.33321 8.69284 9.19274 8.94289 8.94269C9.19294 8.69264 9.33341 8.3535 9.33341 7.99988C9.33341 7.64626 9.19294 7.30712 8.94289 7.05707C8.69284 6.80702 8.3537 6.66654 8.00008 6.66654C7.64646 6.66654 7.30732 6.80702 7.05727 7.05707C6.80722 7.30712 6.66675 7.64626 6.66675 7.99988ZM6.66675 14.6665C6.66675 15.0202 6.80722 15.3593 7.05727 15.6094C7.30732 15.8594 7.64646 15.9999 8.00008 15.9999C8.3537 15.9999 8.69284 15.8594 8.94289 15.6094C9.19294 15.3593 9.33341 15.0202 9.33341 14.6665C9.33341 14.3129 9.19294 13.9738 8.94289 13.7237C8.69284 13.4737 8.3537 13.3332 8.00008 13.3332C7.64646 13.3332 7.30732 13.4737 7.05727 13.7237C6.80722 13.9738 6.66675 14.3129 6.66675 14.6665Z",fill:"#222839"})),b.createElement("defs",null,b.createElement("clipPath",{id:"clip0_1270_592"},b.createElement("rect",{width:16,height:16,fill:"white"})))),v8=e=>{const{menu:t,onDelete:n,onCancelDelete:r,item:i,itemToDelete:a,primaryButton:o,deleteConfirmationMessage:s=xgn,confirmButtonLabel:l=RZe,cancelButtonLabel:c=AZe}=e;return E.jsxs("div",{className:Cs.moreActions,children:[o&&o.visible!==!1&&E.jsx(ut,{type:"link",onClick:()=>o.action(i),loading:o.loading,icon:o.icon,danger:o.danger,children:o.label}),E.jsx(Vo,{menu:t,placement:"bottomRight",trigger:["click"],children:E.jsx(ut,{className:Cs.moreActions_button,type:"text",icon:E.jsx(Eme,{}),"data-testid":t["data-testid"],ref:t.ref})}),s&&E.jsx(fm,{title:s,open:a===i,placement:"bottomRight",okText:l,cancelText:c,onConfirm:()=>n&&n(i),onCancel:()=>r&&r()})]})},mZn="_uploadModal_4f132_13",gZn="_uploadFileList_4f132_23",vZn="_scrollableFileListDiv_4f132_30",yZn="_fileList_4f132_35",bZn="_fileList_name_4f132_47",_Zn="_fileList_name_label_4f132_52",SZn="_error_4f132_60",EZn="_footer_4f132_64",CZn="_footer_wrapper_4f132_69",_k={uploadModal:mZn,uploadFileList:gZn,scrollableFileListDiv:vZn,fileList:yZn,fileList_name:bZn,fileList_name_label:_Zn,error:SZn,footer:EZn,footer_wrapper:CZn},a6e=50,BJ=200,wZn="https://sdk.cloud.deepset.ai/",xrt=({title:e=A2n,fileTypes:t,helpLink:n,onUpload:r,onCancel:i,afterUpload:a,uploadDescriptionMessage:o,showHintDescription:s,showFileSizeLimitMessage:l})=>{const c=ir(),[u,d]=b.useState([]),[f,p]=b.useState(a6e),[h,m]=b.useState(!1),g=()=>{c(_kn({files:[...u],uploadFn:r,afterUploadFn:a})),c(Skn),i()},v=w=>Pn(w,{fileFormats:t.map(x=>x.toUpperCase()).reduce((x,T,A,I)=>A===0?T:A===I.length-1?`${x}, and ${T}`:`${x}, ${T}`,"")}),y=w=>{const x=v(w),T=Pn(qgn,{sizeLimit:BJ,documentationLink:E.jsx("a",{href:wZn,target:"_blank",rel:"noreferrer",children:Wgn})});return s&&!l?x:!s&&l&&h?T:s&&l&&h?E.jsxs(E.Fragment,{children:[E.jsx("div",{children:x}),E.jsx("div",{children:T})]}):""},_=w=>{let x=!0;if(w.type)x=!!t.find(T=>w.type===Pon[T]);else{const T=KO(w);x=!!t.find(A=>T===A)}return x},S=w=>{const x=Array.prototype.slice.call(w),T=x.filter((A,I)=>u.find(N=>N.name===A.name)?!1:(A.size/(1024*1024)>BJ&&m(!0),_(A)?(x[I].uid=ps(),!0):(Dp.error(v(f2n)),!1)));d([...u,...T])},C=()=>t.map(w=>`.${w}`).join(", ");return E.jsxs(wi,{open:!0,title:e,destroyOnClose:!0,centered:!0,maskClosable:!1,className:_k.uploadModal,okText:rxe,cancelText:ixe,onOk:g,onCancel:i,okButtonProps:{disabled:u.length===0},footer:E.jsxs("div",{className:_k.footer,style:n?{}:{justifyContent:"flex-end"},children:[n&&E.jsx(ut,{type:"link",target:"_blank",href:n,icon:E.jsx(p$,{}),style:{paddingLeft:0},children:Nae}),E.jsxs("div",{className:_k.footer_wrapper,children:[E.jsx(ut,{onClick:i,children:ixe}),E.jsx(ut,{type:"primary","data-testid":"uploadModal_uploadFile_button",onClick:g,disabled:u.length===0,children:rxe})]})]}),"data-testid":"uploadModal",children:[E.jsx(bQe,{createCurrentList:S,buttonDescription:o||x2n,hintDescription:s||h?y(T2n):"",getInputAcceptAttributeFromFileTypes:C,size:"large",expanded:!0}),E.jsx("div",{className:_k.uploadFileList,children:E.jsx(Gpe,{filesList:u,listLength:f,viewOnly:!0,onLoadMore:()=>p(f+a6e),fileSizeLimitMB:BJ})})]})},xZn="_warningTooltip_1vov9_13",TZn={warningTooltip:xZn},IZn=`${zu}docs/evaluation-datasets`,AZn=()=>{const e=ir(),t=st(fZn),n=st(pZn),r=st(hZn),{data:i,total:a}=st(wrt),[o,s]=b.useState(""),[l,c]=b.useState(0),[u,d]=b.useState(!1),f=n===Me.IN_PROGRESS||r===Me.IN_PROGRESS;let p;(w=>{w.Delete="DELETE",w.Download="DOWNLOAD",w.DownloadCSV="DOWNLOAD_CSV"})(p||(p={})),b.useEffect(()=>{e(sZn)},[e]);const h=(w,x,T)=>{e(Crt({currentPage:w,pageSize:x,searchValue:T}))},m=async w=>{s(""),e(uZn(w))},g=w=>{e(dZn(w))},v=()=>{d(!0)},y=(w,x)=>{w==="DELETE"&&s(x),w==="DOWNLOAD"&&e(lZn(x)),w==="DOWNLOAD_CSV"&&e(cZn(x))},_=()=>{d(!0)},S=[{title:"Name",dataIndex:"name",key:"name"},{title:"Labels",dataIndex:"total_labels",key:"total_labels",width:"10%",render:(w,x)=>E.jsxs(nv,{children:[x.total_labels,x.matched_labels<x.total_labels&&E.jsx(vr,{placement:"top",title:Lgn,children:E.jsx(Qce,{className:TZn.warningTooltip})})]})},{title:"Created At",dataIndex:"created_at",key:"created_at",width:"20%",render:w=>new Date(w).toLocaleString()},{key:"action",width:"10%",align:"right",render:(w,x)=>{const T=[{label:kgn,key:"DOWNLOAD"},{label:Mgn,key:"DOWNLOAD_CSV"},{label:PZe,key:"DELETE",danger:!0,icon:E.jsx(m0,{})}];return E.jsx(v8,{menu:{items:T,onClick:({key:A})=>y(A,x.name)},item:x.name,itemToDelete:o,onDelete:m,onCancelDelete:()=>s(""),deleteConfirmationMessage:OZe,cancelButtonLabel:_R})}}],C=Pn(Rgn,{uploadEvalSetsButton:E.jsx(ut,{type:"link",onClick:()=>_(),style:{padding:0},children:LZe},"uploadFile")});return E.jsxs(E.Fragment,{children:[u&&E.jsx(xrt,{title:Pwe,multiple:!0,fileTypes:[cs.csv],showUploadList:!1,helpLink:IZn,onUpload:B$n,onCancel:()=>d(!1),afterUpload:()=>h(1,10,""),showHintDescription:!0}),t&&t.content&&E.jsx(Ka,{message:t.content,type:t.type,banner:!0}),E.jsx("div",{className:"content-wrapper",children:E.jsx(Of,{data:i,total:a,loading:f,refetch:n===Me.SUCCESS,columns:S,getData:h,primaryAction:{label:Pwe,onClick:v,icon:E.jsx(m$,{})},rowKey:"name",selectActions:[{type:"default",danger:!0,label:l===1?Pn(ygn,{total:l}):Pn(bgn,{total:l}),onClick:g,popconfirm:{title:NZe,cancelText:_R}}],setTotalSelectedItems:w=>c(w),locale:{emptyText:E.jsx(Fo,{image:Fo.PRESENTED_IMAGE_SIMPLE,description:C})}})})]})};function RZn(e,t=er()){return rn.get(`/api/v1/workspaces/${t}/eval_runs/${e}`)}function Trt(e,t=er()){const n={limit:e?.limit||WO,...e?.after&&{after:e?.after},...e?.page_number&&{page_number:e?.page_number},...e?.filter&&{filter:e?.filter},...e?.select&&{select:e?.select},...e?.field&&{field:e?.field},...e?.order&&{order:e?.order}};return rn.get(`/api/v1/workspaces/${t}/eval_runs`,{params:n})}const qU=async(e,t=er())=>{const{data:{data:n,has_more:r}}=await Trt(e,t);if(!r)return n;const i=e?.page_number?e.page_number+1:2,a={...e,page_number:i};return[...n,...await qU(a,t)]};function Irt(e,t,n,r,i=er()){return rn.post(`/api/v1/workspaces/${i}/eval_runs`,{name:e,pipeline_name:t,evaluation_set_name:n,tags:r,debug:!0})}function NZn(e,t,n,r,i,a=er()){return rn.patch(`/api/v1/workspaces/${a}/eval_runs/${e}`,{...t&&{pipeline_name:t},...n&&{evaluation_set_name:n},...r&&{comment:r},...i&&{tags:i}})}function OZn(e,t,n=er()){return rn.patch(`/api/v1/workspaces/${n}/eval_runs/${e}`,{comment:t})}function Cme(e,t=er()){return rn.post(`/api/v1/workspaces/${t}/eval_runs/${e}/start`)}function Art(e,t=er()){return rn.delete(`/api/v1/workspaces/${t}/eval_runs/${e}`)}function LZn(e,t,n,r=er()){const i={limit:n?.limit||WO,...n?.page_number&&{page_number:n?.page_number},...n?.field&&{field:n?.field},...n?.order&&{order:n?.order},...n?.filter&&{filter:n?.filter}};return rn.get(`/api/v1/workspaces/${r}/eval_runs/${e}/nodes/${t}/predictions`,{params:i})}function PZn(e,t,n=er()){return rn.get(`/api/v1/workspaces/${n}/eval_runs/${e}/nodes/${t}/predictions`,{headers:{Accept:gi.CSV},responseType:"blob"})}function kZn(e={},t=er()){return rn.get(`/api/v1/workspaces/${t}/tags`,{params:e})}let Rrt,Xoe;const m1={type:IKe},MZn={type:AKe},DZn=e=>({type:xKe,payload:e}),$Zn=(e,t)=>({type:TKe,payload:{nodeType:e,value:t}}),o6e=Ut(vae,async(e,{rejectWithValue:t})=>{const n={select:"tags/name, tags/tag_id"};try{return await qU(n)}catch(r){return t(r)}}),FZn=Ut(yae,async(e,{rejectWithValue:t})=>{const n={select:"status"};try{return await qU(n)}catch(r){return t(r)}}),BZn=Ut(bae,async(e,{rejectWithValue:t})=>{const n={select:"created_by/user_id, created_by/given_name"};try{return await qU(n)}catch(r){return t(r)}}),Zoe=Ut(mae,async(e,{rejectWithValue:t})=>{try{return(await RZn(e)).data}catch(n){return t(n)}}),Nrt=Ut(gae,async({currentPage:e,pageSize:t,searchValue:n,sortValue:r,filterValues:i},{rejectWithValue:a,getState:o,dispatch:s})=>{const{sortValue:l}=o().experimentStore,c=r||l;s(DZn(c));const{field:u,order:d}=IZe[c]||{},f=i&&Im(i),p=n&&b0("name",n),h=p?`${f?`${f} AND `:""}${p}`:f,m={page_number:e,limit:t,field:u,order:d,filter:h};try{return(await Trt(m)).data}catch(g){return a(g)}}),jZn=Ut(U7,async({name:e,pipelineName:t,evalsetName:n,tags:r},{rejectWithValue:i})=>{try{return(await Irt(e,t,n,r)).data}catch(a){return i(a)}}),Ort=Ut(V7,async(e,{rejectWithValue:t})=>{try{return(await Art(e)).data}catch(n){return t(n)}}),zZn=Ut(G7,async(e,{rejectWithValue:t})=>{try{const n=e.map(i=>Art(i));return await Promise.all(n)}catch(n){return t(n)}}),Lrt=Ut(q7,async(e,{rejectWithValue:t})=>{try{return(await Cme(e)).data}catch(n){return t(n)}}),UZn=Ut(W7,async(e,{rejectWithValue:t})=>{try{const n=e.map(i=>Cme(i));return await Promise.all(n)}catch(n){return t(n)}}),HZn=Ut(Y7,async({name:e,pipelineName:t,evalsetName:n,tags:r},{rejectWithValue:i})=>{try{const{data:a}=await Irt(e,t,n,r);return(await Cme(a.data.name)).data}catch(a){return i(a)}}),VZn=(e,t,n,r,i)=>a=>(Rrt=setInterval(()=>a(Nrt({currentPage:e,pageSize:t,searchValue:n,sortValue:r,filterValues:i})),1e4),{type:Cdn}),GZn=()=>(clearInterval(Rrt),{type:wdn}),qZn=Ut(RKe,async({evalRun:e,nodeName:t},{rejectWithValue:n})=>{try{const r=await PZn(e,t);return S0(`${e}_${t}`,r.data,gi.CSV),!0}catch(r){return n(r)}}),WZn=Ut(H7,async({name:e,pipelineName:t,evalSetName:n,comment:r,tags:i},{rejectWithValue:a})=>{try{return(await NZn(e,t,n,r,i)).data}catch(o){return a(o)}}),YZn=Ut(NKe,async({name:e,comment:t},{rejectWithValue:n})=>{try{return(await OZn(e,t)).data}catch(r){return n(r)}}),KZn=e=>t=>(clearInterval(Xoe),Xoe=setInterval(()=>t(Zoe(e)),1e4),{type:xdn}),XZn=()=>(clearInterval(Xoe),{type:Tdn}),ZZn=Ut(OKe,async(e,{rejectWithValue:t})=>{try{return(await kZn()).data}catch(n){return t(n)}}),QZn=Ut(_ae,async({evalRun:e,nodeName:t,nodeType:n,currentPage:r,pageSize:i,searchValue:a,sortValue:o,filterValues:s},{rejectWithValue:l,getState:c,dispatch:u})=>{const{predictionsSortValueByNode:d}=c().experimentStore,f=o||d[n];u($Zn(n,f));const p=s&&Im(s),h=a&&b0("query",a),m=h?`${p?`${p} and `:""}${h}`:p,{field:g,order:v}=IZe[f]||{},y={page_number:r,limit:i,filter:m,field:g,order:v};try{return(await LZn(e,t,y)).data}catch(_){return l(_)}}),Nm=e=>e.experimentStore,JZn=It(Nm,e=>e.experiments),Prt=It(Nm,e=>e.message),eQn=It(Nm,e=>e.newEvalRunMessage),krt=It(Nm,e=>e.status),tQn=It(Nm,e=>e.actionStatus),nQn=It(Nm,e=>e.newEvalRunStatus),rQn=It(Nm,e=>e.current),iQn=It(Nm,e=>e.workspaceTags),aQn=It(Nm,e=>e.filtersValues),oQn=It(Nm,e=>e.sortValue),sQn=It(Nm,e=>e.predictionsSortValueByNode),lQn="_previewButton_1idmo_13",Mrt={previewButton:lQn},cQn=({content:e,maxCharacters:t=300,previewButtonHandler:n})=>E.jsxs(E.Fragment,{children:[zZe(e,t),n&&e.length>t&&E.jsx(ut,{type:"link",size:"small",className:Mrt.previewButton,onClick:()=>n(e),children:BXe})]}),Ig=({content:e,answerStart:t,answerEnd:n,maxCharacters:r=300,previewButtonHandler:i})=>{if(!e)return null;if(Nn.isNil(t)||Nn.isNil(n))return cQn({content:e,maxCharacters:r,previewButtonHandler:i});const a=n-t,o=t&&n?Math.floor((r-a)/2):r,s=t-o<0?0:t-o,l=n+o,c=e.slice(s,t),u=e.slice(n,l),d=e.slice(t,n);return E.jsxs(E.Fragment,{children:[E.jsxs("span",{children:[s>0&&"...",c]}),E.jsx("strong",{children:d}),E.jsxs("span",{children:[u,l<e.length&&"..."]}),i&&e.length>r&&E.jsx(ut,{type:"link",size:"small",className:Mrt.previewButton,onClick:()=>i(e),children:BXe})]})},wme=(e,t)=>e?.length?[...e].sort((n,r)=>typeof n[t]!="string"||typeof r[t]!="string"?-1:n[t].localeCompare(r[t],void 0,{sensitivity:"base"})):[],uQn="Created by",s6e="Delete",dQn="Duplicate",l6e="Edit",c6e="Undeploy",fQn="Share",pQn="Deploy",u6e="Try again",d6e="Cancel",hQn="logs",mQn={total_queries:"Total Queries",manual_feedback_input:"Feedback Items",experiments_created:"Experiments Created",users_provided_feedback:"Feedback Contributors",avg_feedback_per_query:"Avg. Feedback Per Query",indexed_files:"Indexed Files",total_documents:"Total Documents"},f6e={pending_tasks:"Pending tasks",failed_files:"Failed files",skipped_files:"Skipped files",indexed_files:"Indexed files",total_documents:"Total documents"},p6e={pending_tasks:"Shows the count of ongoing tasks, like adding files to the document store or updating metadata.",failed_files:"The count of files that encountered errors during indexing. For details, see %logs%.",skipped_files:"The number of files the pipeline ignored and didn't index. For details, see %logs%.",indexed_files:"The number of files successfully indexed into the document store.",total_documents:"The count of documents created from the files and indexed into the document store."},gQn=5,vQn="Groundedness Observability";var Qoe=(e=>(e.YAML="yaml",e.STUDIO="studio",e))(Qoe||{});const yQn=[{label:E.jsxs(E.Fragment,{children:[E.jsx(cDe,{})," YAML"]}),key:"yaml"},{label:E.jsxs(E.Fragment,{children:[E.jsx(ISt,{})," ",pZe," ",E.jsx(Si,{color:"warning",bordered:!1,children:"Beta"})]}),key:"studio"}],bQn="_header_16mpu_13",_Qn="_header_title_16mpu_19",SQn="_header_subtitle_16mpu_22",EQn="_headerContent_16mpu_26",CQn="_headerActions_16mpu_32",wQn="_infoSection_16mpu_40",xQn="_infoSection_label_16mpu_43",TQn="_section_16mpu_47",hy={header:bQn,header_title:_Qn,header_subtitle:SQn,headerContent:EQn,headerActions:CQn,infoSection:wQn,infoSection_label:xQn,section:TQn},xme=e=>{const{title:t,subtitle:n,createdBy:r,tags:i,actions:a,status:o,serviceLevel:s,deepsetCloudVersion:l}=e;return E.jsxs(E.Fragment,{children:[E.jsxs("div",{className:hy.header,children:[E.jsxs("div",{className:hy.headerContent,children:[s,E.jsx("h4",{className:hy.header_title,children:t}),E.jsx("div",{className:hy.header_subtitle,children:n}),o&&E.jsx("div",{children:o}),l&&E.jsx("div",{children:l})]}),a&&E.jsxs("div",{className:hy.headerActions,children:[" ",a," "]})]}),r&&E.jsxs("section",{className:hy.infoSection,children:[uQn," ",r]}),!!i?.length&&E.jsxs("section",{className:hy.infoSection,children:[E.jsxs("span",{className:hy.infoSection_label,children:[egn,":"]}),wme(i,"name").map(c=>{const{tag_id:u,name:d}=c;return E.jsx(Si,{style:{marginRight:2},children:d},u)})]})]})},IQn="_section_nkhrr_13",AQn="_jsonView_nkhrr_20",RQn="_detailsDrawer_nkhrr_25",jJ={section:IQn,jsonView:AQn,detailsDrawer:RQn},NQn=e=>{const{evalRunId:t,results:n,predictions:r,retrieverNodeTopK:i,pipelineParameters:a,getPredictions:o,downloadPredictions:s,downloadDisabled:l,selectedSortValueByNode:c}=e,{data:u,total:d}=r,f=u?.length>0&&u.some(Pe=>Pe.filters&&Object.keys(Pe.filters).length>0),p=u?.length>0&&u.some(Pe=>Pe.labels&&Pe.labels.length>0&&Pe.labels[0].answer),{trackUserEvent:h,appendEventProperties:m}=Ev(),[g,v]=b.useState({node_name:"",node_type:""}),y=Pe=>{const Le=a&&a[Pe.node_name].type==="PromptNode";let ze=Pe;Le&&(ze={node_name:Pe.node_name,node_type:uc.GENERATIVE_NODE}),v(ze)},[_,S]=b.useState({open:!1,filters:""}),[C,w]=b.useState("");(!g||!g.node_name)&&n.length>0&&y(n[n.length-1]),b.useEffect(()=>{t&&m({eval_run_id:t})},[t]);const x=()=>{const{node_type:Pe}=g;if(!Pe)return[];const Le={type:li.RANGE,key:Wv.RANK,title:Twe,rangeBoundaries:{min:1,max:i},option:{key:"rank",label:Twe}},ze={type:li.SELECT,key:Wv.EXACT_MATCH,title:ogn,options:[{key:"exact_match_yes",label:"Yes",value:!0},{key:"exact_match_no",label:"No",value:!1}],style:{minWidth:"135px"}},Be={type:li.RANGE,key:Wv.F1,title:Iwe,rangeBoundaries:{min:0,max:1},rangeStep:.01,option:{key:"f1",label:Iwe},style:{minWidth:"100px"}},je={type:li.MULTI_SELECT,key:Wv.EVAL_MODE,title:lgn,style:{minWidth:"115px"},options:[{key:AP.INTEGRATED,label:IP.INTEGRATED},{key:AP.ISOLATED,label:IP.ISOLATED}]},Ye={type:li.SELECT,key:Wv.NO_ANSWER,title:cgn,options:[{key:"no_answer_yes",label:"Yes",value:1},{key:"no_answer_no",label:"No",value:0}],style:{minWidth:"135px"}},Ze={type:li.RANGE,key:Wv.GROUNDEDNESS,title:Rwe,rangeBoundaries:{min:0,max:1},rangeStep:.01,option:{key:"groundedness",label:Rwe},style:{minWidth:"100px"}},Ke={type:li.SELECT,key:Wv.CONTEXT_MATCH,title:sgn,options:[{key:"context_match_yes",label:"Yes",value:!0},{key:"context_match_no",label:"No",value:!1}],style:{minWidth:"140px"}},qe={type:li.RANGE,key:Wv.CONTEXT_SIMILARITY,title:Awe,rangeBoundaries:{min:0,max:100},rangeStep:.01,option:{key:"context_similarity",label:Awe},style:{minWidth:"160px"}},nt=[Le,Ke,qe],Qe=[Le,Be,ze,je],it=[Le,Ze,Ye,...p?[Be]:[]];let yt;switch(Pe){case uc.DOCUMENT_NODE:yt=nt;break;case uc.ANSWER_NODE:yt=Qe;break;case uc.GENERATIVE_NODE:yt=it;break;default:yt=[]}return yt},T=()=>{const{node_type:Pe}=g;return Pe!==uc.ANSWER_NODE?{}:{[Wv.EVAL_MODE]:[{key:AP.INTEGRATED,label:IP.INTEGRATED,value:AP.INTEGRATED,type:li.MULTI_SELECT}]}},A=Pe=>{const{labels:Le}=Pe;return Le?.length?Le.find(Be=>Be.state==="MATCHED")?.context??"":""},I=Pe=>{w(Pe)},R=Pe=>{const Le=n.find(ze=>ze.node_name===Pe);y(Le),h({type:Wa.CLICK,control:`${ao.PREDICTIONS_TABLE}/${ZE.NODE_TAB}`,properties:{value:Pe}})},N=Pe=>{s(Pe),h({type:Wa.CLICK,control:`${ao.PREDICTIONS_TABLE}/${ZE.DOWNLOAD}`,properties:{value:Pe}})},P=()=>{S({open:!1,filters:""})},L=({context:Pe})=>Ig({content:Pe,previewButtonHandler:I}),$=({context:Pe,answer_start:Le,answer_end:ze})=>Ig({content:Pe,answerStart:Le,answerEnd:ze,previewButtonHandler:I}),{node_type:D,node_name:z}=g,U={title:"Query",dataIndex:"query",key:"query",width:D===uc.ANSWER_NODE?300:400,render:Pe=>Ig({content:Pe,maxCharacters:250,previewButtonHandler:I})},H={title:ngn,dataIndex:"filters",key:"filters",width:200,render:Pe=>{if(!Pe||Object.keys(Pe).length===0)return null;const Le=()=>{S({open:!0,filters:Pe})};return E.jsxs(ut,{type:"link",onClick:Le,children:[rgn," (",Object.keys(Pe).length,")"]})}},M={title:"Predicted Answer",dataIndex:"answer",key:"answer",width:300,render:Pe=>Ig({content:Pe,maxCharacters:250,previewButtonHandler:I})},B={title:"Expected Answers",dataIndex:"labels",key:"expected_answers",width:300,fixed:"true",render:Pe=>{const Le=Pe.map(ze=>ze.answer).join();return Ig({content:Le,maxCharacters:250,previewButtonHandler:I})}},k={title:"Prompt",dataIndex:"prompt",key:"prompt",width:300,render:Pe=>Ig({content:Pe,maxCharacters:250,previewButtonHandler:I})},F={title:"Predicted Context",dataIndex:"context",key:"context",width:D===uc.DOCUMENT_NODE?600:500,render:(Pe,Le)=>Le.prediction_type===TZe.ANSWER?$(Le):L(Le)},G={title:"Expected Context",width:600,render:(Pe,Le)=>L({context:A(Le)})},q={title:"F1",dataIndex:"f1",key:"f1",width:90,fixed:"true",render:Pe=>E.jsx("span",{children:Pe==null?"":pl(Pe)})},W={title:"SAS",dataIndex:"sas",key:"sas",width:90,fixed:"true",render:Pe=>E.jsx("span",{children:Pe==null?"":pl(Pe)})},K={title:"Exact Match",dataIndex:"exact_match",key:"exact_match",width:90,render:Pe=>E.jsx(Si,{color:Pe?"success":"default",children:Pe?"Yes":"No"})},J={title:"Eval Mode",dataIndex:"eval_mode",key:"eval_mode",width:120,render:Pe=>E.jsx("span",{children:IP[Pe]})},te={title:"Groundedness",dataIndex:"groundedness",key:"groundedness",width:90,fixed:"true",render:Pe=>E.jsx("span",{children:Pe==null?"":pl(Pe)})},ae={title:"No Answer",dataIndex:"no_answer_ratio",key:"no_answer_ratio",width:90,render:Pe=>E.jsx(Si,{color:Pe?"success":"default",children:Pe?"Yes":"No"})},re={title:"Query Latency",dataIndex:"query_latency",key:"query_latency",width:90,fixed:"true",render:Pe=>E.jsx("span",{children:Pe==null?"":pl(Pe)})},ue={title:"Context Similarity",dataIndex:"labels",key:"label",width:100,render:Pe=>{let Le=0;return Pe.forEach(ze=>{ze.context_similarity>Le&&(Le=ze.context_similarity)}),`${pl(Le)} %`}},de={title:"Context Match",dataIndex:"context_match",key:"context_match",width:90,render:Pe=>E.jsx(Si,{color:Pe?"success":"default",children:Pe?"Yes":"No"})},fe={title:"Rank",dataIndex:"rank",key:"rank",width:65},ge=[F,G,ue,de],oe=[M,B,F,q,W,K,J],Ee=[M,...p?[B]:[],k,te,ae,...p?[W,q]:[],re];let ce;switch(D){case uc.DOCUMENT_NODE:ce=ge;break;case uc.ANSWER_NODE:ce=oe;break;case uc.GENERATIVE_NODE:ce=Ee;break;default:ce=[]}const he=[U,...f?[H]:[],...ce,fe],ye=()=>{const{open:Pe,filters:Le}=_;return E.jsx(wi,{title:ign,open:Pe,centered:!0,footer:null,onCancel:P,children:E.jsx("p",{children:E.jsx("pre",{className:jJ.jsonView,children:JSON.stringify(Le,null,2)})})})},_e=hgn[D],Te=c[D],xe=n.map(Pe=>({label:Pe.node_name,key:Pe.node_name})),De=()=>E.jsx(xm,{open:!!C,onClose:()=>w(""),size:"large",className:jJ.detailsDrawer,children:E.jsx("pre",{children:C})});return E.jsxs("section",{className:jJ.section,children:[E.jsxs("div",{children:[E.jsxs("h5",{children:[" ",Ymn," "]}),E.jsx(Lu,{activeKey:z,type:"card",onChange:R,items:xe})]}),g&&g.node_name&&E.jsx(Of,{id:z,data:u,columns:he,total:d,sorting:_e&&Te?{selectedValue:Te,options:_e}:void 0,filters:x(),selectedFiltersValues:T(),searchAvailable:!0,getData:(Pe,Le,ze,Be,je)=>o(z,D,Pe,Le,ze,Be,je),rowSelection:!1,rowKey:"prediction_id",primaryAction:{label:tgn,onClick:()=>N(z),secondary:!0,disabled:l,icon:E.jsx(nO,{})},scroll:{x:"max-content"},userEventsTrackingHandlers:{onSearch:Pe=>h({type:Wa.KEYDOWN,control:`${ao.PREDICTIONS_TABLE}/${ad.SEARCH}`,properties:{value:Pe,node_name:z}}),onPageChange:Pe=>h({type:Wa.CLICK,control:`${ao.PREDICTIONS_TABLE}/${ad.PAGINATION}`,properties:{value:Pe,node_name:z}}),onSort:Pe=>h({type:Wa.CLICK,control:`${ao.PREDICTIONS_TABLE}/${ad.SORT}`,properties:{value:Pe,node_name:z}}),onFilter:Pe=>h({type:Wa.CLICK,control:`${ao.PREDICTIONS_TABLE}/${ad.FILTER}`,properties:{filter_key:Pe,node_name:z}}),onClearFilter:Pe=>h({type:Wa.CLICK,control:`${ao.PREDICTIONS_TABLE}/${ad.CLEAR_FILTER}`,properties:{filter_key:Pe,node_name:z}}),onClearAllFilters:()=>h({type:Wa.CLICK,control:`${ao.PREDICTIONS_TABLE}/${ad.CLEAR_ALL_FILTERS}`,properties:{node_name:z}})},border:!0}),ye(),De()]})},Drt=({status:e})=>{const{label:t,color:n}=zXe[e];return E.jsxs(Si,{style:{fontSize:12},color:n,children:[e===yc.STARTED&&E.jsx(v0,{size:"small",style:{display:"inline-flex",margin:"-2px 4px 0 0 "},indicator:E.jsx(F9,{style:{fontSize:12},spin:!0})}),t]})},OQn="_header_19k23_13",LQn="_header_title_19k23_19",PQn="_header_subtitle_19k23_22",kQn="_headerContent_19k23_26",MQn="_headerActions_19k23_32",DQn="_infoSection_19k23_40",$Qn="_infoSection_label_19k23_43",FQn="_section_19k23_47",BQn="_yamlContainer_19k23_54",jQn="_namesSection_wrapper_19k23_59",zQn="_namesSection_wrapper_item_19k23_63",UQn="_namesSection_wrapper_item_title_19k23_71",HQn="_namesSection_wrapper_item_name_19k23_75",VQn="_metricDescriptionTooltip_19k23_82",GQn="_moreActions_button_19k23_86",qQn="_pipelineParametersInfo_valueColumn_19k23_92",WQn="_pipelinePreviewInfo_19k23_96",Lo={header:OQn,header_title:LQn,header_subtitle:PQn,headerContent:kQn,headerActions:MQn,infoSection:DQn,infoSection_label:$Qn,section:FQn,yamlContainer:BQn,namesSection_wrapper:jQn,namesSection_wrapper_item:zQn,namesSection_wrapper_item_title:UQn,namesSection_wrapper_item_name:HQn,metricDescriptionTooltip:VQn,moreActions_button:GQn,pipelineParametersInfo_valueColumn:qQn,pipelinePreviewInfo:WQn},YQn=650,KQn=se.lazy(()=>Io(()=>import("./YamlEditor.CB5Tkggl.js").then(e=>e.b),__vite__mapDeps([8,3,4,9]))),XQn=se.lazy(()=>Io(()=>import("./LogViewer.Dco_we8b.js"),__vite__mapDeps([10,3,4,11]))),ZQn=()=>{const e=ir(),t=ys(),n=st(Prt),r=st(krt),{experimentName:i}=dv(),{evalRun:a,predictions:o}=st(rQn),s=st(sQn),[l,c]=b.useState(""),[u,d]=b.useState(a.comment),[f,p]=b.useState(""),[h,m]=b.useState({node_name:""}),{TextArea:g}=$r,v=b.useMemo(()=>Nn.debounce(U=>e(YZn({name:i,comment:U})),YQn),[]),y=U=>{d(U),v(U)};b.useEffect(()=>{u||d(a.comment)},[a.comment]),b.useEffect(()=>(e(m1),e(Zoe(i)),e(KZn(i)),()=>{e(XZn()),e(MZn)}),[e,i]);const _=(U,H,M,B,k,F,G)=>{e(QZn({evalRun:i,nodeName:U,nodeType:H,currentPage:M,pageSize:B,searchValue:k,sortValue:F,filterValues:G}))},S=async U=>{p(""),await e(Ort(U)),t("/experiments")},C=async()=>{await e(Lrt(i)),e(Zoe(i))},w=U=>{c(U)},x=()=>E.jsx(xm,{open:!!l,onClose:()=>c(""),size:"large",children:l}),T=U=>{const H=Object.keys(U).map(B=>({name:B,value:U[B]})),M=[{title:wwe,dataIndex:"name",key:"name",width:"50%",render:B=>E.jsxs(E.Fragment,{children:[B,Nwe[B]&&E.jsx(vr,{className:Lo.metricDescriptionTooltip,title:Nwe[B],overlayInnerStyle:{width:"500px"},children:E.jsx(om,{})})]})},{title:xwe,dataIndex:"value",key:"value",width:"50%",render:B=>Nn.isNumber(B)?pl(B):B}];return E.jsx(Of,{data:H,columns:M,rowSelection:!1,rowKey:"name",searchAvailable:!1,border:!0})},A=(U,H)=>{if(!H)return null;const M=k=>{const F=H.find(G=>G.node_name===k);m(F)};(!h||!h.node_name)&&H.length>0&&m(H[H.length-1]);const B=H.map(k=>({label:k.node_name,key:k.node_name}));return E.jsxs("section",{id:"metricsSection",className:Lo.section,children:[E.jsxs("h5",{children:[" ",U," "]}),E.jsx(Lu,{activeKey:h.node_name,type:"card",onChange:M,items:B}),T(h)]})},I=U=>E.jsx(NQn,{evalRunId:a.eval_run_id,results:U,predictions:o,retrieverNodeTopK:a.pipeline_parameters?.Retriever?.params.top_k,pipelineParameters:a.pipeline_parameters,getPredictions:_,downloadPredictions:H=>e(qZn({evalRun:i,nodeName:H})),downloadDisabled:a.status!==yc.ENDED,selectedSortValueByNode:s}),R=U=>{U.key==="delete"&&p(i)},N=U=>E.jsxs("section",{className:Lo.section,children:[E.jsxs("h5",{children:[" ",Vmn," "]}),E.jsx(g,{rows:4,defaultValue:a.comment,value:U,placeholder:Zmn,onChange:H=>y(H.target.value)})]}),P=({pipelineName:U,evaluationName:H,snapshotDate:M,sasModelName:B})=>E.jsxs("section",{className:Lo.section,children:[E.jsx(zi,{}),E.jsxs("div",{className:Lo.namesSection_wrapper,children:[E.jsxs("div",{className:Lo.namesSection_wrapper_item,children:[E.jsx("small",{className:Lo.namesSection_wrapper_item_title,children:Cwe}),E.jsx("span",{className:Lo.namesSection_wrapper_item_name,children:U})]}),E.jsx(zi,{type:"vertical",style:{height:"auto"}}),E.jsxs("div",{className:Lo.namesSection_wrapper_item,children:[E.jsx("small",{className:Lo.namesSection_wrapper_item_title,children:qmn}),E.jsx("span",{className:Lo.namesSection_wrapper_item_name,children:new Date(M).toLocaleString()})]}),E.jsx(zi,{type:"vertical",style:{height:"auto"}}),E.jsxs("div",{className:Lo.namesSection_wrapper_item,children:[E.jsx("small",{className:Lo.namesSection_wrapper_item_title,children:Kmn}),E.jsx("span",{className:Lo.namesSection_wrapper_item_name,children:H})]}),B&&E.jsxs(E.Fragment,{children:[E.jsx(zi,{type:"vertical",style:{height:"auto"}}),E.jsxs("div",{className:Lo.namesSection_wrapper_item,children:[E.jsx("small",{className:Lo.namesSection_wrapper_item_title,children:Wmn}),E.jsx(vr,{title:B,children:E.jsx("span",{className:Lo.namesSection_wrapper_item_name,children:B})})]})]})]}),E.jsx(zi,{})]}),L=()=>E.jsxs("section",{className:Lo.section,children:[E.jsxs("h5",{children:[" ",Gmn," "]}),E.jsx("div",{style:{height:"260px"},children:E.jsx(se.Suspense,{fallback:E.jsx($o,{}),children:E.jsx(XQn,{logs:a.logs})})})]}),$=(U,H,M)=>{if(!H)return null;const B=Object.entries(a.pipeline_parameters).map(([G,q])=>Object.entries(q.params).map(([W,K])=>({nodeName:G,nodeType:q.type,paramName:W,paramValue:JSON.stringify(K),key:`${q.type}-${W}`}))).flat(),k=[{title:wwe,dataIndex:"paramName",key:"paramName",render:G=>String(G)},{title:xwe,dataIndex:"paramValue",key:"paramValue",render:G=>E.jsx("div",{className:Lo.pipelineParametersInfo_valueColumn,children:Ig({content:G,maxCharacters:250,previewButtonHandler:w})})},{title:Qmn,dataIndex:"nodeName",key:"nodeName",render:G=>String(G)},{title:Jmn,dataIndex:"nodeType",key:"nodeType",render:G=>String(G)}],F=[{label:Hmn,key:"parameters",children:E.jsx(Of,{data:B,columns:k,rowSelection:!1,rowKey:"key",searchAvailable:!1,scroll:{x:"max-content"},border:!0})},{label:Xmn,key:"yaml",children:E.jsxs(E.Fragment,{children:[E.jsx("div",{className:Lo.pipelinePreviewInfo,children:E.jsx(Ka,{message:Pn(agn,{snapshotDate:new Date(M).toLocaleString(),pipelineLink:E.jsxs(Jg,{to:`/pipelines/${U}`,className:Lo.nameLink,children:["(",U,")"]})}),type:"info"})}),E.jsx("div",{className:Lo.yamlContainer,children:E.jsx(se.Suspense,{fallback:E.jsx($o,{}),children:E.jsx(KQn,{code:H,readOnly:!0})})})]})}];return E.jsxs("section",{className:Lo.section,children:[E.jsxs("h5",{children:[" ",Cwe," "]}),E.jsx(Lu,{type:"card",defaultActiveKey:"parameters",items:F})]})},D=[{label:wZe,key:"delete",danger:!0,icon:E.jsx(m0,{})}],z=()=>E.jsxs("div",{className:Lo.headerActions,children:[a.status===yc.CREATED&&E.jsx(ut,{onClick:C,loading:r===Me.IN_PROGRESS,children:gZe}),E.jsx(Vo,{menu:{items:D,onClick:R},placement:"bottomRight",trigger:["click"],children:E.jsx(ut,{className:Lo.moreActions_button,icon:E.jsx(Eme,{})})}),E.jsx(fm,{title:SZe,open:f===i,placement:"bottomRight",okText:EZe,cancelText:CZe,onConfirm:()=>{S(f)},onCancel:()=>p("")})]});return E.jsxs(E.Fragment,{children:[n&&n.content&&E.jsx(Ka,{message:n.content,type:n.type,banner:!0}),x(),E.jsx("div",{className:"content-wrapper_padding",children:a&&E.jsxs(E.Fragment,{children:[E.jsx(xme,{title:a.name,subtitle:new Date(a.created_at).toLocaleString(),createdBy:XN(a.created_by),tags:a.tags,status:E.jsx(Drt,{status:a.status}),actions:z()}),P({pipelineName:a.parameters.pipeline_name,evaluationName:a.parameters.evaluation_set_name,snapshotDate:a.parameters.pipeline_snapshot_at,sasModelName:a.parameters.sas_model_name}),N(u),L(),A(Umn,a.eval_results),$(a.parameters.pipeline_name,a.parameters.pipeline_snapshot_yaml,a.parameters.pipeline_snapshot_at),I(a.eval_results)]})})]})},QQn=e=>b.createElement("svg",{width:301,height:221,viewBox:"0 0 301 221",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("g",{clipPath:"url(#clip0_3407_51488)"},b.createElement("path",{d:"M243.5 84.5L248.5 69",stroke:"#3F3D56",strokeWidth:1.7,strokeLinecap:"round"}),b.createElement("path",{d:"M103 40H126",stroke:"#3F3D56",strokeWidth:1.7,strokeLinecap:"round"}),b.createElement("path",{d:"M103 58H171",stroke:"#3F3D56",strokeWidth:1.7,strokeLinecap:"round"}),b.createElement("path",{d:"M133.5 76H171",stroke:"#3F3D56",strokeWidth:1.7,strokeLinecap:"round"}),b.createElement("path",{d:"M187 76H233",stroke:"#3F3D56",strokeWidth:1.7,strokeLinecap:"round"}),b.createElement("path",{d:"M134 40H157",stroke:"#3F3D56",strokeWidth:1.7,strokeLinecap:"round"}),b.createElement("path",{d:"M179 58H202",stroke:"#3F3D56",strokeWidth:1.7,strokeLinecap:"round"}),b.createElement("path",{d:"M210 58H233",stroke:"#3F3D56",strokeWidth:1.7,strokeLinecap:"round"}),b.createElement("path",{d:"M165 40H233.5",stroke:"#3F3D56",strokeWidth:1.7,strokeLinecap:"round"}),b.createElement("path",{d:"M97.4468 32L89.9465 38C88.9467 39 88.4468 40 89.9465 41L97.9464 45.5",stroke:"#3F3D56",strokeWidth:1.7,strokeLinecap:"round"}),b.createElement("path",{d:"M254.553 70L262.053 76C263.053 77 263.553 78 262.053 79L254.054 83.5",stroke:"#3F3D56",strokeWidth:1.7,strokeLinecap:"round"}),b.createElement("path",{d:"M117.133 220.121C159.713 220.121 194.231 185.604 194.231 143.024C194.231 100.444 159.713 65.9258 117.133 65.9258C74.553 65.9258 40.0352 100.444 40.0352 143.024C40.0352 185.604 74.553 220.121 117.133 220.121Z",fill:"#F2F2F2"}),b.createElement("path",{d:"M162.464 214.518C172.361 214.237 181.927 210.439 189.592 204.224C197.393 197.968 202.805 189.218 204.917 179.444C206.934 169.485 205.639 159.14 201.228 149.986C196.807 140.891 189.33 133.638 180.103 129.497C170.981 125.333 160.751 124.256 150.962 126.429C149.739 126.712 148.531 127.053 147.338 127.445C146.248 127.802 146.714 129.532 147.814 129.171C156.968 126.167 166.983 126.526 176.026 129.764C185.149 132.977 192.874 139.258 197.88 147.535C202.851 155.983 204.913 165.827 203.752 175.559C202.559 185.087 198.092 193.905 191.114 200.503C184.3 207.01 175.346 211.428 165.952 212.486C164.793 212.617 163.63 212.694 162.464 212.728C161.314 212.76 161.309 214.551 162.464 214.518Z",fill:"#3F3D56"}),b.createElement("path",{d:"M145.326 110.688L129.245 124.36C128.194 125.254 126.947 126.177 126.663 127.616C126.577 128.224 126.647 128.844 126.866 129.417C127.086 129.991 127.448 130.499 127.919 130.894C128.963 131.887 130.292 132.518 131.541 133.205L136.214 135.774L146.6 141.485C147.61 142.04 148.515 140.495 147.504 139.939C141.876 136.844 136.164 133.865 130.608 130.644C129.766 130.156 128.443 129.368 128.393 128.261C128.339 127.074 129.959 126.097 130.738 125.434L138.212 119.079L146.592 111.954C147.471 111.207 146.199 109.945 145.326 110.688Z",fill:"#3F3D56"}),b.createElement("path",{d:"M82.9301 75.2887C70.8839 77.3391 59.85 83.631 51.5552 92.5476C43.1954 101.534 37.8934 113.189 37.1021 125.472C36.355 137.99 39.7225 150.408 46.691 160.834C53.6628 171.186 64.0513 178.759 76.0405 182.228C87.8229 185.666 100.692 185.371 112.18 180.951C113.627 180.394 115.044 179.768 116.434 179.084C117.704 178.459 116.836 176.426 115.554 177.056C104.886 182.307 92.5856 183.596 80.977 181.198C69.3303 178.793 58.6731 172.544 51.2047 163.252C43.6741 153.786 39.4555 142.112 39.1956 130.02C39.01 118.17 42.9483 106.624 50.3365 97.3576C57.5407 88.2302 67.7208 81.2865 79.0179 78.3732C80.4116 78.0137 81.8201 77.7184 83.239 77.4769C84.6385 77.2387 84.3353 75.0495 82.9301 75.2887Z",fill:"#3F3D56"}),b.createElement("path",{d:"M121.783 199.217L139.075 179.736C140.206 178.462 141.571 177.12 141.67 175.312C141.756 173.733 140.807 172.407 139.57 171.523C138.123 170.49 136.39 169.948 134.745 169.324L128.59 166.99L114.914 161.803C113.583 161.298 112.744 163.343 114.076 163.848C121.487 166.659 128.981 169.315 136.327 172.292C137.439 172.743 139.191 173.478 139.444 174.823C139.714 176.264 137.904 177.737 137.066 178.681L129.029 187.736L120.017 197.888C119.072 198.953 120.844 200.276 121.783 199.217Z",fill:"#3F3D56"})),b.createElement("defs",null,b.createElement("clipPath",{id:"clip0_3407_51488"},b.createElement("rect",{width:300,height:219.148,fill:"white",transform:"translate(0.5 0.925781)"})))),JQn="_defaultFill_7ctv9_13",eJn="_completedFill_7ctv9_17",tJn="_cursorPointer_7ctv9_21",ed={defaultFill:JQn,completedFill:eJn,cursorPointer:tJn},nJn=({isUploadFilesCompleted:e=!1,isEvalSetCompleted:t=!1,isCreatePipelineCompleted:n=!1,onUploadFileSectionClick:r,onPrepareEvalSetSectionClick:i,onCreatePipelineSectionClick:a})=>{const s=e&&t&&n?ed.completedFill:ed.defaultFill,l=(p,h)=>p?h:void 0,c=()=>{const p=e?ed.completedFill:ed.defaultFill;return E.jsxs("svg",{children:[E.jsxs("svg",{className:p,id:"uploadFile-text",children:[E.jsx("path",{d:"M3.41113 36H5.47559V26.1357H3.41797L0.868164 27.9062V29.7656L3.28809 28.084H3.41113V36Z"}),E.jsx("path",{d:"M24.168 36.2324C26.6152 36.2324 28.0781 34.7559 28.0781 32.6094V26.1357H26.8477V32.5273C26.8477 34.0449 25.877 35.0977 24.168 35.0977C22.459 35.0977 21.4746 34.0449 21.4746 32.5273V26.1357H20.2441V32.6094C20.2441 34.7559 21.7207 36.2324 24.168 36.2324Z"}),E.jsx("path",{d:"M30.4297 38.4609H31.6191V34.8379H31.7285C32.1318 35.624 33.0137 36.1299 34.0254 36.1299C35.8984 36.1299 37.1152 34.6328 37.1152 32.3223V32.3086C37.1152 30.0117 35.8916 28.501 34.0254 28.501C33 28.501 32.1797 28.9863 31.7285 29.8066H31.6191V28.6309H30.4297V38.4609ZM33.752 35.0771C32.4121 35.0771 31.5918 34.0244 31.5918 32.3223V32.3086C31.5918 30.6064 32.4121 29.5537 33.752 29.5537C35.0986 29.5537 35.8984 30.5928 35.8984 32.3086V32.3223C35.8984 34.0381 35.0986 35.0771 33.752 35.0771Z"}),E.jsx("path",{d:"M39.043 36H40.2324V25.7051H39.043V36Z"}),E.jsx("path",{d:"M45.5439 36.1299C47.6426 36.1299 48.9414 34.6807 48.9414 32.3223V32.3086C48.9414 29.9434 47.6426 28.501 45.5439 28.501C43.4453 28.501 42.1465 29.9434 42.1465 32.3086V32.3223C42.1465 34.6807 43.4453 36.1299 45.5439 36.1299ZM45.5439 35.0771C44.1494 35.0771 43.3633 34.0586 43.3633 32.3223V32.3086C43.3633 30.5654 44.1494 29.5537 45.5439 29.5537C46.9385 29.5537 47.7246 30.5654 47.7246 32.3086V32.3223C47.7246 34.0586 46.9385 35.0771 45.5439 35.0771Z"}),E.jsx("path",{d:"M52.8105 36.1299C53.8018 36.1299 54.5742 35.6992 55.0391 34.9131H55.1484V36H56.3379V30.9551C56.3379 29.4238 55.333 28.501 53.5352 28.501C51.9629 28.501 50.8418 29.2803 50.6504 30.4355L50.6436 30.4766H51.833L51.8398 30.4561C52.0312 29.8818 52.6123 29.5537 53.4941 29.5537C54.5947 29.5537 55.1484 30.0459 55.1484 30.9551V31.625L53.0361 31.7549C51.3203 31.8574 50.3496 32.6162 50.3496 33.9287V33.9424C50.3496 35.2822 51.4092 36.1299 52.8105 36.1299ZM51.5664 33.915V33.9014C51.5664 33.1699 52.0586 32.7734 53.1797 32.7051L55.1484 32.582V33.252C55.1484 34.3047 54.2666 35.0977 53.0566 35.0977C52.2021 35.0977 51.5664 34.6602 51.5664 33.915Z"}),E.jsx("path",{d:"M61.2324 36.1299C62.2578 36.1299 63.0781 35.6445 63.5293 34.8242H63.6387V36H64.8281V25.7051H63.6387V29.793H63.5293C63.126 29.0068 62.2441 28.501 61.2324 28.501C59.3594 28.501 58.1426 29.998 58.1426 32.3086V32.3223C58.1426 34.6191 59.3662 36.1299 61.2324 36.1299ZM61.5059 35.0771C60.1592 35.0771 59.3594 34.0381 59.3594 32.3223V32.3086C59.3594 30.5928 60.1592 29.5537 61.5059 29.5537C62.8457 29.5537 63.666 30.6064 63.666 32.3086V32.3223C63.666 34.0244 62.8457 35.0771 61.5059 35.0771Z"}),E.jsx("path",{d:"M71.1992 36H72.4297V31.7275H76.7979V30.6338H72.4297V27.2432H77.1875V26.1357H71.1992V36Z"}),E.jsx("path",{d:"M79.6895 27.209C80.1406 27.209 80.5098 26.8398 80.5098 26.3887C80.5098 25.9375 80.1406 25.5684 79.6895 25.5684C79.2383 25.5684 78.8691 25.9375 78.8691 26.3887C78.8691 26.8398 79.2383 27.209 79.6895 27.209ZM79.0879 36H80.2773V28.6309H79.0879V36Z"}),E.jsx("path",{d:"M82.5879 36H83.7773V25.7051H82.5879V36Z"}),E.jsx("path",{d:"M89.0684 36.1299C90.8047 36.1299 91.8574 35.1455 92.1104 34.1475L92.124 34.0928H90.9346L90.9072 34.1543C90.709 34.5986 90.0938 35.0703 89.0957 35.0703C87.7832 35.0703 86.9424 34.1816 86.9082 32.6572H92.2129V32.1924C92.2129 29.9912 90.9961 28.501 88.9932 28.501C86.9902 28.501 85.6914 30.0596 85.6914 32.3359V32.3428C85.6914 34.6533 86.9629 36.1299 89.0684 36.1299ZM88.9863 29.5605C90.0732 29.5605 90.8799 30.251 91.0029 31.707H86.9287C87.0586 30.3057 87.8926 29.5605 88.9863 29.5605Z"}),E.jsx("path",{d:"M96.5879 36.1299C98.2627 36.1299 99.541 35.2207 99.541 33.9082V33.8945C99.541 32.8418 98.8711 32.2402 97.4834 31.9053L96.3486 31.6318C95.4805 31.4199 95.1113 31.1055 95.1113 30.6064V30.5928C95.1113 29.9434 95.7539 29.4922 96.6289 29.4922C97.5176 29.4922 98.0918 29.8955 98.249 30.4766H99.418C99.2539 29.2734 98.1807 28.501 96.6357 28.501C95.0703 28.501 93.8945 29.4238 93.8945 30.6475V30.6543C93.8945 31.7139 94.5166 32.3154 95.8975 32.6436L97.0391 32.917C97.9482 33.1357 98.3242 33.4844 98.3242 33.9834V33.9971C98.3242 34.667 97.6201 35.1387 96.6289 35.1387C95.6855 35.1387 95.0977 34.7354 94.8994 34.1201H93.6826C93.8193 35.3369 94.9473 36.1299 96.5879 36.1299Z"})]}),E.jsxs("svg",{id:"uploadFile-circleContent",className:l(!e,ed.cursorPointer),onClick:l(!e,r),children:[E.jsx("rect",{x:"25.5",y:"82.5",width:"81",height:"81",rx:"40.5",fill:"white"}),E.jsx("svg",{className:p,id:"uploadFile-circleContent-icon",children:e?E.jsx("path",{d:"M81.6242 110.422H78.8937C78.5109 110.422 78.1476 110.598 77.9132 110.898L61.8078 131.301L54.0851 121.516C53.9683 121.367 53.8194 121.247 53.6496 121.165C53.4797 121.082 53.2934 121.039 53.1046 121.039H50.3742C50.1124 121.039 49.9679 121.34 50.1281 121.543L60.8273 135.098C61.3273 135.73 62.2882 135.73 62.7921 135.098L81.8703 110.922C82.0304 110.723 81.8859 110.422 81.6242 110.422V110.422Z"}):E.jsxs(E.Fragment,{children:[E.jsx("path",{opacity:"0.1",d:"M65.5 108C57.2177 108 50.5 114.718 50.5 123C50.5 131.282 57.2177 138 65.5 138C73.7823 138 80.5 131.282 80.5 123C80.5 114.718 73.7823 108 65.5 108Z"}),E.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M50 123C50 114.164 57.1643 107 66 107C74.8357 107 82 114.164 82 123C82 131.836 74.8357 139 66 139C57.1643 139 50 131.836 50 123ZM52.7143 123C52.7143 130.336 58.6643 136.286 66 136.286C73.3357 136.286 79.2857 130.336 79.2857 123C79.2857 115.664 73.3357 109.714 66 109.714C58.6643 109.714 52.7143 115.664 52.7143 123ZM64.8794 119.482H62.7059C62.5088 119.482 62.4 119.263 62.5206 119.112L65.8147 115.087C65.8367 115.06 65.8648 115.038 65.8969 115.023C65.929 115.008 65.9643 115 66 115C66.0357 115 66.071 115.008 66.1031 115.023C66.1352 115.038 66.1633 115.06 66.1853 115.087L69.4794 119.115C69.6 119.263 69.4912 119.482 69.2941 119.482H67.1147V126.091C67.1147 126.216 67.0088 126.319 66.8794 126.319H65.1147C64.9853 126.319 64.8794 126.216 64.8794 126.091V119.482ZM72 124.096H73.7647C73.8941 124.096 74 124.199 74 124.324V130.091C74 130.594 73.5794 131 73.0588 131H58.9412C58.4206 131 58 130.594 58 130.091V124.324C58 124.199 58.1059 124.096 58.2353 124.096H60C60.1294 124.096 60.2353 124.199 60.2353 124.324V129H71.7647V124.324C71.7647 124.199 71.8706 124.096 72 124.096Z"})]})}),E.jsx("rect",{x:"25.5",y:"82.5",width:"81",height:"81",rx:"40.5",stroke:"#F0F0F0"})]}),E.jsx("path",{className:s,id:"uploadFile-progressBar",d:"M108.548 108.349C106.392 102.086 102.879 96.3764 98.261 91.6276C93.6429 86.8787 88.0334 83.2079 81.8329 80.8773L80.2496 85.0896C85.8301 87.1872 90.8786 90.4908 95.0349 94.7648C99.1911 99.0388 102.353 104.178 104.294 109.814L108.548 108.349Z"}),E.jsx("path",{className:p,id:"uploadFile-divider",fillRule:"evenodd",clipRule:"evenodd",d:"M13 102L13 -8.74231e-08L15 0L15 102L13 102Z"})]})},u=()=>{const p=t?ed.completedFill:ed.defaultFill;return E.jsxs("svg",{children:[E.jsxs("svg",{className:p,id:"prepareEvalSet-text",children:[E.jsx("path",{d:"M171.998 205H179.114V203.339H174.767V203.182L176.592 201.479C178.39 199.818 178.971 198.889 178.971 197.768V197.747C178.971 196.045 177.549 194.883 175.519 194.883C173.358 194.883 171.882 196.182 171.882 198.075L171.889 198.103H173.796V198.068C173.796 197.132 174.459 196.489 175.423 196.489C176.366 196.489 176.94 197.077 176.94 197.918V197.938C176.94 198.629 176.564 199.128 175.177 200.475L171.998 203.612V205Z"}),E.jsx("path",{d:"M83.5723 205H84.8027V201.479H87.291C89.1436 201.479 90.4561 200.174 90.4561 198.301V198.287C90.4561 196.414 89.1436 195.136 87.291 195.136H83.5723V205ZM86.9766 196.229C88.3848 196.229 89.1982 197.002 89.1982 198.301V198.314C89.1982 199.613 88.3848 200.386 86.9766 200.386H84.8027V196.229H86.9766Z"}),E.jsx("path",{d:"M92.3223 205H93.5117V200.434C93.5117 199.354 94.3184 198.636 95.4531 198.636C95.7129 198.636 95.9385 198.663 96.1846 198.704V197.549C96.0684 197.528 95.8154 197.501 95.5898 197.501C94.5918 197.501 93.9014 197.952 93.6211 198.725H93.5117V197.631H92.3223V205Z"}),E.jsx("path",{d:"M100.457 205.13C102.193 205.13 103.246 204.146 103.499 203.147L103.513 203.093H102.323L102.296 203.154C102.098 203.599 101.482 204.07 100.484 204.07C99.1719 204.07 98.3311 203.182 98.2969 201.657H103.602V201.192C103.602 198.991 102.385 197.501 100.382 197.501C98.3789 197.501 97.0801 199.06 97.0801 201.336V201.343C97.0801 203.653 98.3516 205.13 100.457 205.13ZM100.375 198.561C101.462 198.561 102.269 199.251 102.392 200.707H98.3174C98.4473 199.306 99.2812 198.561 100.375 198.561Z"}),E.jsx("path",{d:"M105.447 207.461H106.637V203.838H106.746C107.149 204.624 108.031 205.13 109.043 205.13C110.916 205.13 112.133 203.633 112.133 201.322V201.309C112.133 199.012 110.909 197.501 109.043 197.501C108.018 197.501 107.197 197.986 106.746 198.807H106.637V197.631H105.447V207.461ZM108.77 204.077C107.43 204.077 106.609 203.024 106.609 201.322V201.309C106.609 199.606 107.43 198.554 108.77 198.554C110.116 198.554 110.916 199.593 110.916 201.309V201.322C110.916 203.038 110.116 204.077 108.77 204.077Z"}),E.jsx("path",{d:"M116.016 205.13C117.007 205.13 117.779 204.699 118.244 203.913H118.354V205H119.543V199.955C119.543 198.424 118.538 197.501 116.74 197.501C115.168 197.501 114.047 198.28 113.855 199.436L113.849 199.477H115.038L115.045 199.456C115.236 198.882 115.817 198.554 116.699 198.554C117.8 198.554 118.354 199.046 118.354 199.955V200.625L116.241 200.755C114.525 200.857 113.555 201.616 113.555 202.929V202.942C113.555 204.282 114.614 205.13 116.016 205.13ZM114.771 202.915V202.901C114.771 202.17 115.264 201.773 116.385 201.705L118.354 201.582V202.252C118.354 203.305 117.472 204.098 116.262 204.098C115.407 204.098 114.771 203.66 114.771 202.915Z"}),E.jsx("path",{d:"M121.717 205H122.906V200.434C122.906 199.354 123.713 198.636 124.848 198.636C125.107 198.636 125.333 198.663 125.579 198.704V197.549C125.463 197.528 125.21 197.501 124.984 197.501C123.986 197.501 123.296 197.952 123.016 198.725H122.906V197.631H121.717V205Z"}),E.jsx("path",{d:"M129.852 205.13C131.588 205.13 132.641 204.146 132.894 203.147L132.907 203.093H131.718L131.69 203.154C131.492 203.599 130.877 204.07 129.879 204.07C128.566 204.07 127.726 203.182 127.691 201.657H132.996V201.192C132.996 198.991 131.779 197.501 129.776 197.501C127.773 197.501 126.475 199.06 126.475 201.336V201.343C126.475 203.653 127.746 205.13 129.852 205.13ZM129.77 198.561C130.856 198.561 131.663 199.251 131.786 200.707H127.712C127.842 199.306 128.676 198.561 129.77 198.561Z"}),E.jsx("path",{d:"M141.397 205.055C141.63 205.055 141.855 205.027 142.088 204.986V203.975C141.869 203.995 141.753 204.002 141.541 204.002C140.775 204.002 140.475 203.653 140.475 202.785V198.615H142.088V197.631H140.475V195.724H139.244V197.631H138.082V198.615H139.244V203.086C139.244 204.494 139.88 205.055 141.397 205.055Z"}),E.jsx("path",{d:"M143.934 205H145.123V200.639C145.123 199.347 145.868 198.554 147.044 198.554C148.22 198.554 148.767 199.189 148.767 200.516V205H149.956V200.229C149.956 198.479 149.033 197.501 147.379 197.501C146.292 197.501 145.602 197.959 145.232 198.738H145.123V194.705H143.934V205Z"}),E.jsx("path",{d:"M155.117 205.13C156.854 205.13 157.906 204.146 158.159 203.147L158.173 203.093H156.983L156.956 203.154C156.758 203.599 156.143 204.07 155.145 204.07C153.832 204.07 152.991 203.182 152.957 201.657H158.262V201.192C158.262 198.991 157.045 197.501 155.042 197.501C153.039 197.501 151.74 199.06 151.74 201.336V201.343C151.74 203.653 153.012 205.13 155.117 205.13ZM155.035 198.561C156.122 198.561 156.929 199.251 157.052 200.707H152.978C153.107 199.306 153.941 198.561 155.035 198.561Z"}),E.jsx("path",{d:"M66.4961 223H72.6074V221.893H67.7266V218.502H72.3545V217.408H67.7266V214.243H72.6074V213.136H66.4961V223Z"}),E.jsx("path",{d:"M76.7705 223H77.9736L80.7012 215.631H79.4434L77.4268 221.701H77.3174L75.3008 215.631H74.043L76.7705 223Z"}),E.jsx("path",{d:"M84.0234 223.13C85.0146 223.13 85.7871 222.699 86.252 221.913H86.3613V223H87.5508V217.955C87.5508 216.424 86.5459 215.501 84.748 215.501C83.1758 215.501 82.0547 216.28 81.8633 217.436L81.8564 217.477H83.0459L83.0527 217.456C83.2441 216.882 83.8252 216.554 84.707 216.554C85.8076 216.554 86.3613 217.046 86.3613 217.955V218.625L84.249 218.755C82.5332 218.857 81.5625 219.616 81.5625 220.929V220.942C81.5625 222.282 82.6221 223.13 84.0234 223.13ZM82.7793 220.915V220.901C82.7793 220.17 83.2715 219.773 84.3926 219.705L86.3613 219.582V220.252C86.3613 221.305 85.4795 222.098 84.2695 222.098C83.415 222.098 82.7793 221.66 82.7793 220.915Z"}),E.jsx("path",{d:"M89.793 223H90.9824V212.705H89.793V223Z"}),E.jsx("path",{d:"M95.7334 223.13C96.8135 223.13 97.5586 222.686 97.9209 221.899H98.0303V223H99.2197V215.631H98.0303V219.992C98.0303 221.284 97.3398 222.077 96.041 222.077C94.8652 222.077 94.3867 221.441 94.3867 220.115V215.631H93.1973V220.402C93.1973 222.146 94.0586 223.13 95.7334 223.13Z"}),E.jsx("path",{d:"M103.465 223.13C104.456 223.13 105.229 222.699 105.693 221.913H105.803V223H106.992V217.955C106.992 216.424 105.987 215.501 104.189 215.501C102.617 215.501 101.496 216.28 101.305 217.436L101.298 217.477H102.487L102.494 217.456C102.686 216.882 103.267 216.554 104.148 216.554C105.249 216.554 105.803 217.046 105.803 217.955V218.625L103.69 218.755C101.975 218.857 101.004 219.616 101.004 220.929V220.942C101.004 222.282 102.063 223.13 103.465 223.13ZM102.221 220.915V220.901C102.221 220.17 102.713 219.773 103.834 219.705L105.803 219.582V220.252C105.803 221.305 104.921 222.098 103.711 222.098C102.856 222.098 102.221 221.66 102.221 220.915Z"}),E.jsx("path",{d:"M111.784 223.055C112.017 223.055 112.242 223.027 112.475 222.986V221.975C112.256 221.995 112.14 222.002 111.928 222.002C111.162 222.002 110.861 221.653 110.861 220.785V216.615H112.475V215.631H110.861V213.724H109.631V215.631H108.469V216.615H109.631V221.086C109.631 222.494 110.267 223.055 111.784 223.055Z"}),E.jsx("path",{d:"M114.881 214.209C115.332 214.209 115.701 213.84 115.701 213.389C115.701 212.938 115.332 212.568 114.881 212.568C114.43 212.568 114.061 212.938 114.061 213.389C114.061 213.84 114.43 214.209 114.881 214.209ZM114.279 223H115.469V215.631H114.279V223Z"}),E.jsx("path",{d:"M120.739 223.13C122.838 223.13 124.137 221.681 124.137 219.322V219.309C124.137 216.943 122.838 215.501 120.739 215.501C118.641 215.501 117.342 216.943 117.342 219.309V219.322C117.342 221.681 118.641 223.13 120.739 223.13ZM120.739 222.077C119.345 222.077 118.559 221.059 118.559 219.322V219.309C118.559 217.565 119.345 216.554 120.739 216.554C122.134 216.554 122.92 217.565 122.92 219.309V219.322C122.92 221.059 122.134 222.077 120.739 222.077Z"}),E.jsx("path",{d:"M125.982 223H127.172V218.639C127.172 217.347 127.917 216.554 129.093 216.554C130.269 216.554 130.815 217.189 130.815 218.516V223H132.005V218.229C132.005 216.479 131.082 215.501 129.428 215.501C128.341 215.501 127.65 215.959 127.281 216.738H127.172V215.631H125.982V223Z"}),E.jsx("path",{d:"M141.479 223.232C143.681 223.232 145.123 222.084 145.123 220.238V220.231C145.123 218.81 144.31 217.982 142.252 217.524L141.158 217.278C139.818 216.984 139.278 216.451 139.278 215.665V215.658C139.278 214.626 140.229 214.045 141.459 214.038C142.744 214.031 143.564 214.674 143.701 215.542L143.715 215.631H144.945L144.938 215.535C144.836 214.065 143.462 212.903 141.493 212.903C139.456 212.903 138.027 214.059 138.021 215.692V215.699C138.021 217.128 138.875 218.037 140.851 218.475L141.944 218.714C143.298 219.015 143.865 219.575 143.865 220.396V220.402C143.865 221.407 142.888 222.098 141.548 222.098C140.126 222.098 139.101 221.476 139.012 220.491L139.005 220.416H137.774L137.781 220.491C137.925 222.098 139.319 223.232 141.479 223.232Z"}),E.jsx("path",{d:"M150.031 223.13C151.768 223.13 152.82 222.146 153.073 221.147L153.087 221.093H151.897L151.87 221.154C151.672 221.599 151.057 222.07 150.059 222.07C148.746 222.07 147.905 221.182 147.871 219.657H153.176V219.192C153.176 216.991 151.959 215.501 149.956 215.501C147.953 215.501 146.654 217.06 146.654 219.336V219.343C146.654 221.653 147.926 223.13 150.031 223.13ZM149.949 216.561C151.036 216.561 151.843 217.251 151.966 218.707H147.892C148.021 217.306 148.855 216.561 149.949 216.561Z"}),E.jsx("path",{d:"M157.64 223.055C157.872 223.055 158.098 223.027 158.33 222.986V221.975C158.111 221.995 157.995 222.002 157.783 222.002C157.018 222.002 156.717 221.653 156.717 220.785V216.615H158.33V215.631H156.717V213.724H155.486V215.631H154.324V216.615H155.486V221.086C155.486 222.494 156.122 223.055 157.64 223.055Z"})]}),E.jsxs("svg",{id:"prepareEvalSet-circleContent",className:l(!t,ed.cursorPointer),onClick:l(!t,i),children:[E.jsx("rect",{x:"170.5",y:"82.5",width:"81",height:"81",rx:"40.5",fill:"white"}),E.jsx("svg",{className:p,id:"prepareEvalSet-circleContent-icon",children:t?E.jsx("path",{d:"M226.624 110.422H223.894C223.511 110.422 223.148 110.598 222.913 110.898L206.808 131.301L199.085 121.516C198.968 121.367 198.819 121.247 198.65 121.165C198.48 121.082 198.293 121.039 198.105 121.039H195.374C195.112 121.039 194.968 121.34 195.128 121.543L205.827 135.098C206.327 135.73 207.288 135.73 207.792 135.098L226.87 110.922C227.03 110.723 226.886 110.422 226.624 110.422Z"}):E.jsxs(E.Fragment,{children:[E.jsx("path",{opacity:"0.1",d:"M211.688 118V111.25H202.25V134.75H219.75V119.312H213C212.652 119.312 212.318 119.174 212.072 118.928C211.826 118.682 211.688 118.348 211.688 118V118Z"}),E.jsx("path",{d:"M221.706 116.019L214.981 109.294C214.794 109.106 214.541 109 214.275 109H201C200.447 109 200 109.447 200 110V136C200 136.553 200.447 137 201 137H221C221.553 137 222 136.553 222 136V116.728C222 116.462 221.894 116.206 221.706 116.019ZM213.812 111.306L219.694 117.188H213.812V111.306ZM219.75 134.75H202.25V111.25H211.688V118C211.688 118.348 211.826 118.682 212.072 118.928C212.318 119.174 212.652 119.312 213 119.312H219.75V134.75Z"}),E.jsx("path",{d:"M216.761 122H215.111C214.958 122 214.812 122.072 214.722 122.19L210.212 128.183L208.278 125.616C208.188 125.498 208.045 125.426 207.889 125.426H206.239C206.045 125.426 205.932 125.639 206.045 125.792L209.823 130.81C209.868 130.869 209.926 130.917 209.994 130.95C210.061 130.983 210.136 131 210.212 131C210.287 131 210.362 130.983 210.43 130.95C210.497 130.917 210.556 130.869 210.6 130.81L216.955 122.369C217.068 122.213 216.955 122 216.761 122Z"}),E.jsx("path",{d:"M367.5 110.5H344.5C343.947 110.5 343.5 110.947 343.5 111.5V134.5C343.5 135.053 343.947 135.5 344.5 135.5H367.5C368.053 135.5 368.5 135.053 368.5 134.5V111.5C368.5 110.947 368.053 110.5 367.5 110.5ZM366.25 133.25H345.75V112.75H366.25V133.25Z"})]})}),E.jsx("rect",{x:"170.5",y:"82.5",width:"81",height:"81",rx:"40.5",stroke:"#F0F0F0"})]}),E.jsx("path",{className:s,id:"prepareEvalSet-progressBar",d:"M210 168C215.909 168 221.761 166.836 227.221 164.575C232.68 162.313 237.641 158.998 241.82 154.82C245.998 150.641 249.313 145.68 251.575 140.221C253.836 134.761 255 128.909 255 123C255 117.091 253.836 111.239 251.575 105.779C249.313 100.32 245.998 95.3588 241.82 91.1802C237.641 87.0016 232.68 83.6869 227.221 81.4254C221.761 79.164 215.909 78 210 78L210 82.5C215.319 82.5 220.585 83.5476 225.499 85.5829C230.412 87.6182 234.877 90.6014 238.638 94.3622C242.399 98.1229 245.382 102.588 247.417 107.501C249.452 112.415 250.5 117.681 250.5 123C250.5 128.319 249.452 133.585 247.417 138.499C245.382 143.412 242.399 147.877 238.638 151.638C234.877 155.399 230.412 158.382 225.499 160.417C220.585 162.452 215.319 163.5 210 163.5L210 168Z"}),E.jsx("path",{className:p,id:"prepareEvalSet-divider",fillRule:"evenodd",clipRule:"evenodd",d:"M165 254L165 152L167 152L167 254L165 254Z"})]})},d=()=>{const p=n?ed.completedFill:ed.defaultFill;return E.jsxs("svg",{children:[E.jsxs("svg",{className:p,id:"createPipeline-text",children:[E.jsx("path",{d:"M292.683 36.2188C294.986 36.2188 296.524 35.0088 296.524 33.2178V33.2041C296.524 31.8643 295.567 31.0166 294.098 30.8799V30.8389C295.253 30.5996 296.155 29.7998 296.155 28.5693V28.5557C296.155 26.9834 294.788 25.917 292.669 25.917C290.598 25.917 289.21 27.0654 289.066 28.8291L289.06 28.9111H290.96L290.967 28.8496C291.049 28.0293 291.698 27.5029 292.669 27.5029C293.64 27.5029 294.207 28.0088 294.207 28.8291V28.8428C294.207 29.6426 293.537 30.1895 292.498 30.1895H291.397V31.6592H292.525C293.722 31.6592 294.426 32.1787 294.426 33.1221V33.1357C294.426 33.9697 293.735 34.5576 292.683 34.5576C291.616 34.5576 290.912 34.0107 290.823 33.2451L290.816 33.1699H288.841L288.848 33.2588C288.984 35.0225 290.454 36.2188 292.683 36.2188Z"}),E.jsx("path",{d:"M314.229 36.2324C316.328 36.2324 317.887 35.0635 318.215 33.2588V33.2451H316.971L316.957 33.2588C316.649 34.3936 315.604 35.0977 314.229 35.0977C312.329 35.0977 311.14 33.5459 311.14 31.0781V31.0645C311.14 28.5967 312.329 27.0381 314.223 27.0381C315.583 27.0381 316.636 27.8379 316.964 29.1025L316.971 29.1162H318.208L318.215 29.1025C317.921 27.209 316.301 25.9033 314.223 25.9033C311.543 25.9033 309.875 27.8857 309.875 31.0645V31.0781C309.875 34.25 311.55 36.2324 314.229 36.2324Z"}),E.jsx("path",{d:"M320.129 36H321.318V31.4336C321.318 30.3535 322.125 29.6357 323.26 29.6357C323.52 29.6357 323.745 29.6631 323.991 29.7041V28.5488C323.875 28.5283 323.622 28.501 323.396 28.501C322.398 28.501 321.708 28.9521 321.428 29.7246H321.318V28.6309H320.129V36Z"}),E.jsx("path",{d:"M328.264 36.1299C330 36.1299 331.053 35.1455 331.306 34.1475L331.319 34.0928H330.13L330.103 34.1543C329.904 34.5986 329.289 35.0703 328.291 35.0703C326.979 35.0703 326.138 34.1816 326.104 32.6572H331.408V32.1924C331.408 29.9912 330.191 28.501 328.188 28.501C326.186 28.501 324.887 30.0596 324.887 32.3359V32.3428C324.887 34.6533 326.158 36.1299 328.264 36.1299ZM328.182 29.5605C329.269 29.5605 330.075 30.251 330.198 31.707H326.124C326.254 30.3057 327.088 29.5605 328.182 29.5605Z"}),E.jsx("path",{d:"M335.277 36.1299C336.269 36.1299 337.041 35.6992 337.506 34.9131H337.615V36H338.805V30.9551C338.805 29.4238 337.8 28.501 336.002 28.501C334.43 28.501 333.309 29.2803 333.117 30.4355L333.11 30.4766H334.3L334.307 30.4561C334.498 29.8818 335.079 29.5537 335.961 29.5537C337.062 29.5537 337.615 30.0459 337.615 30.9551V31.625L335.503 31.7549C333.787 31.8574 332.816 32.6162 332.816 33.9287V33.9424C332.816 35.2822 333.876 36.1299 335.277 36.1299ZM334.033 33.915V33.9014C334.033 33.1699 334.525 32.7734 335.646 32.7051L337.615 32.582V33.252C337.615 34.3047 336.733 35.0977 335.523 35.0977C334.669 35.0977 334.033 34.6602 334.033 33.915Z"}),E.jsx("path",{d:"M343.597 36.0547C343.829 36.0547 344.055 36.0273 344.287 35.9863V34.9746C344.068 34.9951 343.952 35.002 343.74 35.002C342.975 35.002 342.674 34.6533 342.674 33.7852V29.6152H344.287V28.6309H342.674V26.7236H341.443V28.6309H340.281V29.6152H341.443V34.0859C341.443 35.4941 342.079 36.0547 343.597 36.0547Z"}),E.jsx("path",{d:"M348.963 36.1299C350.699 36.1299 351.752 35.1455 352.005 34.1475L352.019 34.0928H350.829L350.802 34.1543C350.604 34.5986 349.988 35.0703 348.99 35.0703C347.678 35.0703 346.837 34.1816 346.803 32.6572H352.107V32.1924C352.107 29.9912 350.891 28.501 348.888 28.501C346.885 28.501 345.586 30.0596 345.586 32.3359V32.3428C345.586 34.6533 346.857 36.1299 348.963 36.1299ZM348.881 29.5605C349.968 29.5605 350.774 30.251 350.897 31.707H346.823C346.953 30.3057 347.787 29.5605 348.881 29.5605Z"}),E.jsx("path",{d:"M359.914 36.1299C360.905 36.1299 361.678 35.6992 362.143 34.9131H362.252V36H363.441V30.9551C363.441 29.4238 362.437 28.501 360.639 28.501C359.066 28.501 357.945 29.2803 357.754 30.4355L357.747 30.4766H358.937L358.943 30.4561C359.135 29.8818 359.716 29.5537 360.598 29.5537C361.698 29.5537 362.252 30.0459 362.252 30.9551V31.625L360.14 31.7549C358.424 31.8574 357.453 32.6162 357.453 33.9287V33.9424C357.453 35.2822 358.513 36.1299 359.914 36.1299ZM358.67 33.915V33.9014C358.67 33.1699 359.162 32.7734 360.283 32.7051L362.252 32.582V33.252C362.252 34.3047 361.37 35.0977 360.16 35.0977C359.306 35.0977 358.67 34.6602 358.67 33.915Z"}),E.jsx("path",{d:"M369.553 38.4609H370.742V34.8379H370.852C371.255 35.624 372.137 36.1299 373.148 36.1299C375.021 36.1299 376.238 34.6328 376.238 32.3223V32.3086C376.238 30.0117 375.015 28.501 373.148 28.501C372.123 28.501 371.303 28.9863 370.852 29.8066H370.742V28.6309H369.553V38.4609ZM372.875 35.0771C371.535 35.0771 370.715 34.0244 370.715 32.3223V32.3086C370.715 30.6064 371.535 29.5537 372.875 29.5537C374.222 29.5537 375.021 30.5928 375.021 32.3086V32.3223C375.021 34.0381 374.222 35.0771 372.875 35.0771Z"}),E.jsx("path",{d:"M378.727 27.209C379.178 27.209 379.547 26.8398 379.547 26.3887C379.547 25.9375 379.178 25.5684 378.727 25.5684C378.275 25.5684 377.906 25.9375 377.906 26.3887C377.906 26.8398 378.275 27.209 378.727 27.209ZM378.125 36H379.314V28.6309H378.125V36Z"}),E.jsx("path",{d:"M381.557 38.4609H382.746V34.8379H382.855C383.259 35.624 384.141 36.1299 385.152 36.1299C387.025 36.1299 388.242 34.6328 388.242 32.3223V32.3086C388.242 30.0117 387.019 28.501 385.152 28.501C384.127 28.501 383.307 28.9863 382.855 29.8066H382.746V28.6309H381.557V38.4609ZM384.879 35.0771C383.539 35.0771 382.719 34.0244 382.719 32.3223V32.3086C382.719 30.6064 383.539 29.5537 384.879 29.5537C386.226 29.5537 387.025 30.5928 387.025 32.3086V32.3223C387.025 34.0381 386.226 35.0771 384.879 35.0771Z"}),E.jsx("path",{d:"M393.109 36.1299C394.846 36.1299 395.898 35.1455 396.151 34.1475L396.165 34.0928H394.976L394.948 34.1543C394.75 34.5986 394.135 35.0703 393.137 35.0703C391.824 35.0703 390.983 34.1816 390.949 32.6572H396.254V32.1924C396.254 29.9912 395.037 28.501 393.034 28.501C391.031 28.501 389.732 30.0596 389.732 32.3359V32.3428C389.732 34.6533 391.004 36.1299 393.109 36.1299ZM393.027 29.5605C394.114 29.5605 394.921 30.251 395.044 31.707H390.97C391.1 30.3057 391.934 29.5605 393.027 29.5605Z"}),E.jsx("path",{d:"M398.168 36H399.357V25.7051H398.168V36Z"}),E.jsx("path",{d:"M402.27 27.209C402.721 27.209 403.09 26.8398 403.09 26.3887C403.09 25.9375 402.721 25.5684 402.27 25.5684C401.818 25.5684 401.449 25.9375 401.449 26.3887C401.449 26.8398 401.818 27.209 402.27 27.209ZM401.668 36H402.857V28.6309H401.668V36Z"}),E.jsx("path",{d:"M405.1 36H406.289V31.6387C406.289 30.3467 407.034 29.5537 408.21 29.5537C409.386 29.5537 409.933 30.1895 409.933 31.5156V36H411.122V31.2285C411.122 29.4785 410.199 28.501 408.545 28.501C407.458 28.501 406.768 28.959 406.398 29.7383H406.289V28.6309H405.1V36Z"}),E.jsx("path",{d:"M416.283 36.1299C418.02 36.1299 419.072 35.1455 419.325 34.1475L419.339 34.0928H418.149L418.122 34.1543C417.924 34.5986 417.309 35.0703 416.311 35.0703C414.998 35.0703 414.157 34.1816 414.123 32.6572H419.428V32.1924C419.428 29.9912 418.211 28.501 416.208 28.501C414.205 28.501 412.906 30.0596 412.906 32.3359V32.3428C412.906 34.6533 414.178 36.1299 416.283 36.1299ZM416.201 29.5605C417.288 29.5605 418.095 30.251 418.218 31.707H414.144C414.273 30.3057 415.107 29.5605 416.201 29.5605Z"})]}),E.jsxs("svg",{id:"createPipeline-circleContent",className:l(!n,ed.cursorPointer),onClick:l(!n,a),children:[E.jsx("rect",{x:"315.5",y:"82.5",width:"81",height:"81",rx:"40.5",fill:"white"}),E.jsx("svg",{className:p,id:"createPipeline-circleContent-icon",children:n?E.jsx("path",{d:"M371.624 110.422H368.894C368.511 110.422 368.148 110.598 367.913 110.898L351.808 131.301L344.085 121.516C343.968 121.367 343.819 121.247 343.65 121.165C343.48 121.082 343.293 121.039 343.105 121.039H340.374C340.112 121.039 339.968 121.34 340.128 121.543L350.827 135.098C351.327 135.73 352.288 135.73 352.792 135.098L371.87 110.922C372.03 110.723 371.886 110.422 371.624 110.422Z"}):E.jsxs(E.Fragment,{children:[E.jsx("path",{opacity:"0.1",d:"M345.75 133.25H366.25V112.75H345.75V133.25ZM360.5 115.75C360.5 115.612 360.612 115.5 360.75 115.5H363.25C363.388 115.5 363.5 115.612 363.5 115.75V123.75C363.5 123.888 363.388 124 363.25 124H360.75C360.612 124 360.5 123.888 360.5 123.75V115.75ZM354.5 115.75C354.5 115.612 354.612 115.5 354.75 115.5H357.25C357.388 115.5 357.5 115.612 357.5 115.75V121.5C357.5 121.638 357.388 121.75 357.25 121.75H354.75C354.612 121.75 354.5 121.638 354.5 121.5V115.75ZM348.5 115.75C348.5 115.612 348.612 115.5 348.75 115.5H351.25C351.388 115.5 351.5 115.612 351.5 115.75V130.25C351.5 130.388 351.388 130.5 351.25 130.5H348.75C348.612 130.5 348.5 130.388 348.5 130.25V115.75Z"}),E.jsx("path",{d:"M348.75 130.5H351.25C351.388 130.5 351.5 130.388 351.5 130.25V115.75C351.5 115.612 351.388 115.5 351.25 115.5H348.75C348.612 115.5 348.5 115.612 348.5 115.75V130.25C348.5 130.388 348.612 130.5 348.75 130.5ZM354.75 121.75H357.25C357.388 121.75 357.5 121.638 357.5 121.5V115.75C357.5 115.612 357.388 115.5 357.25 115.5H354.75C354.612 115.5 354.5 115.612 354.5 115.75V121.5C354.5 121.638 354.612 121.75 354.75 121.75ZM360.75 124H363.25C363.388 124 363.5 123.888 363.5 123.75V115.75C363.5 115.612 363.388 115.5 363.25 115.5H360.75C360.612 115.5 360.5 115.612 360.5 115.75V123.75C360.5 123.888 360.612 124 360.75 124Z"})]})}),E.jsx("rect",{x:"315.5",y:"82.5",width:"81",height:"81",rx:"40.5",stroke:"#F0F0F0"})]}),E.jsx("path",{className:s,id:"createPipeline-progressBar",d:"M319.594 149.45C324.12 155.679 330.168 160.643 337.16 163.866C344.153 167.09 351.855 168.465 359.531 167.861C367.206 167.257 374.599 164.694 381.001 160.416C387.403 156.139 392.6 150.29 396.095 143.43C399.591 136.569 401.268 128.927 400.965 121.233C400.663 113.54 398.392 106.052 394.369 99.4876C390.346 92.9227 384.706 87.4998 377.988 83.7377C371.27 79.9755 363.699 78 356 78L356 82.5C362.93 82.5 369.743 84.278 375.789 87.6639C381.835 91.0498 386.911 95.9304 390.532 101.839C394.153 107.747 396.197 114.486 396.469 121.41C396.741 128.334 395.232 135.212 392.086 141.387C388.94 147.561 384.262 152.825 378.501 156.675C372.739 160.524 366.086 162.831 359.178 163.375C352.269 163.919 345.337 162.681 339.044 159.78C332.751 156.879 327.308 152.411 323.235 146.805L319.594 149.45Z"}),E.jsx("path",{className:p,id:"createPipeline-divider",fillRule:"evenodd",clipRule:"evenodd",d:"M303 102L303 -8.74231e-08L305 0L305 102L303 102Z"})]})},f=()=>E.jsxs("svg",{children:[E.jsxs("svg",{className:ed.defaultFill,id:"createExperiment-text",children:[E.jsx("path",{d:"M466.571 205H468.54V203.188H469.825V201.534H468.54V195.136H465.642C464.329 197.159 462.989 199.347 461.738 201.568V203.188H466.571V205ZM463.598 201.589V201.479C464.486 199.887 465.546 198.171 466.503 196.701H466.612V201.589H463.598Z"}),E.jsx("path",{d:"M379.229 205.232C381.328 205.232 382.887 204.063 383.215 202.259V202.245H381.971L381.957 202.259C381.649 203.394 380.604 204.098 379.229 204.098C377.329 204.098 376.14 202.546 376.14 200.078V200.064C376.14 197.597 377.329 196.038 379.223 196.038C380.583 196.038 381.636 196.838 381.964 198.103L381.971 198.116H383.208L383.215 198.103C382.921 196.209 381.301 194.903 379.223 194.903C376.543 194.903 374.875 196.886 374.875 200.064V200.078C374.875 203.25 376.55 205.232 379.229 205.232Z"}),E.jsx("path",{d:"M385.129 205H386.318V200.434C386.318 199.354 387.125 198.636 388.26 198.636C388.52 198.636 388.745 198.663 388.991 198.704V197.549C388.875 197.528 388.622 197.501 388.396 197.501C387.398 197.501 386.708 197.952 386.428 198.725H386.318V197.631H385.129V205Z"}),E.jsx("path",{d:"M393.264 205.13C395 205.13 396.053 204.146 396.306 203.147L396.319 203.093H395.13L395.103 203.154C394.904 203.599 394.289 204.07 393.291 204.07C391.979 204.07 391.138 203.182 391.104 201.657H396.408V201.192C396.408 198.991 395.191 197.501 393.188 197.501C391.186 197.501 389.887 199.06 389.887 201.336V201.343C389.887 203.653 391.158 205.13 393.264 205.13ZM393.182 198.561C394.269 198.561 395.075 199.251 395.198 200.707H391.124C391.254 199.306 392.088 198.561 393.182 198.561Z"}),E.jsx("path",{d:"M400.277 205.13C401.269 205.13 402.041 204.699 402.506 203.913H402.615V205H403.805V199.955C403.805 198.424 402.8 197.501 401.002 197.501C399.43 197.501 398.309 198.28 398.117 199.436L398.11 199.477H399.3L399.307 199.456C399.498 198.882 400.079 198.554 400.961 198.554C402.062 198.554 402.615 199.046 402.615 199.955V200.625L400.503 200.755C398.787 200.857 397.816 201.616 397.816 202.929V202.942C397.816 204.282 398.876 205.13 400.277 205.13ZM399.033 202.915V202.901C399.033 202.17 399.525 201.773 400.646 201.705L402.615 201.582V202.252C402.615 203.305 401.733 204.098 400.523 204.098C399.669 204.098 399.033 203.66 399.033 202.915Z"}),E.jsx("path",{d:"M408.597 205.055C408.829 205.055 409.055 205.027 409.287 204.986V203.975C409.068 203.995 408.952 204.002 408.74 204.002C407.975 204.002 407.674 203.653 407.674 202.785V198.615H409.287V197.631H407.674V195.724H406.443V197.631H405.281V198.615H406.443V203.086C406.443 204.494 407.079 205.055 408.597 205.055Z"}),E.jsx("path",{d:"M413.963 205.13C415.699 205.13 416.752 204.146 417.005 203.147L417.019 203.093H415.829L415.802 203.154C415.604 203.599 414.988 204.07 413.99 204.07C412.678 204.07 411.837 203.182 411.803 201.657H417.107V201.192C417.107 198.991 415.891 197.501 413.888 197.501C411.885 197.501 410.586 199.06 410.586 201.336V201.343C410.586 203.653 411.857 205.13 413.963 205.13ZM413.881 198.561C414.968 198.561 415.774 199.251 415.897 200.707H411.823C411.953 199.306 412.787 198.561 413.881 198.561Z"}),E.jsx("path",{d:"M424.914 205.13C425.905 205.13 426.678 204.699 427.143 203.913H427.252V205H428.441V199.955C428.441 198.424 427.437 197.501 425.639 197.501C424.066 197.501 422.945 198.28 422.754 199.436L422.747 199.477H423.937L423.943 199.456C424.135 198.882 424.716 198.554 425.598 198.554C426.698 198.554 427.252 199.046 427.252 199.955V200.625L425.14 200.755C423.424 200.857 422.453 201.616 422.453 202.929V202.942C422.453 204.282 423.513 205.13 424.914 205.13ZM423.67 202.915V202.901C423.67 202.17 424.162 201.773 425.283 201.705L427.252 201.582V202.252C427.252 203.305 426.37 204.098 425.16 204.098C424.306 204.098 423.67 203.66 423.67 202.915Z"}),E.jsx("path",{d:"M430.615 205H431.805V200.639C431.805 199.347 432.55 198.554 433.726 198.554C434.901 198.554 435.448 199.189 435.448 200.516V205H436.638V200.229C436.638 198.479 435.715 197.501 434.061 197.501C432.974 197.501 432.283 197.959 431.914 198.738H431.805V197.631H430.615V205Z"}),E.jsx("path",{d:"M375.258 223H381.369V221.893H376.488V218.502H381.116V217.408H376.488V214.243H381.369V213.136H375.258V223Z"}),E.jsx("path",{d:"M382.859 223H384.192L385.942 220.218H386.052L387.795 223H389.189L386.653 219.268L389.155 215.631H387.822L386.093 218.372H385.983L384.233 215.631H382.832L385.382 219.315L382.859 223Z"}),E.jsx("path",{d:"M390.789 225.461H391.979V221.838H392.088C392.491 222.624 393.373 223.13 394.385 223.13C396.258 223.13 397.475 221.633 397.475 219.322V219.309C397.475 217.012 396.251 215.501 394.385 215.501C393.359 215.501 392.539 215.986 392.088 216.807H391.979V215.631H390.789V225.461ZM394.111 222.077C392.771 222.077 391.951 221.024 391.951 219.322V219.309C391.951 217.606 392.771 216.554 394.111 216.554C395.458 216.554 396.258 217.593 396.258 219.309V219.322C396.258 221.038 395.458 222.077 394.111 222.077Z"}),E.jsx("path",{d:"M402.342 223.13C404.078 223.13 405.131 222.146 405.384 221.147L405.397 221.093H404.208L404.181 221.154C403.982 221.599 403.367 222.07 402.369 222.07C401.057 222.07 400.216 221.182 400.182 219.657H405.486V219.192C405.486 216.991 404.27 215.501 402.267 215.501C400.264 215.501 398.965 217.06 398.965 219.336V219.343C398.965 221.653 400.236 223.13 402.342 223.13ZM402.26 216.561C403.347 216.561 404.153 217.251 404.276 218.707H400.202C400.332 217.306 401.166 216.561 402.26 216.561Z"}),E.jsx("path",{d:"M407.332 223H408.521V218.434C408.521 217.354 409.328 216.636 410.463 216.636C410.723 216.636 410.948 216.663 411.194 216.704V215.549C411.078 215.528 410.825 215.501 410.6 215.501C409.602 215.501 408.911 215.952 408.631 216.725H408.521V215.631H407.332V223Z"}),E.jsx("path",{d:"M413.293 214.209C413.744 214.209 414.113 213.84 414.113 213.389C414.113 212.938 413.744 212.568 413.293 212.568C412.842 212.568 412.473 212.938 412.473 213.389C412.473 213.84 412.842 214.209 413.293 214.209ZM412.691 223H413.881V215.631H412.691V223Z"}),E.jsx("path",{d:"M416.123 223H417.312V218.434C417.312 217.395 418.044 216.554 419.008 216.554C419.938 216.554 420.539 217.121 420.539 217.996V223H421.729V218.263C421.729 217.326 422.405 216.554 423.431 216.554C424.47 216.554 424.969 217.094 424.969 218.181V223H426.158V217.907C426.158 216.362 425.317 215.501 423.813 215.501C422.795 215.501 421.954 216.014 421.558 216.793H421.448C421.106 216.027 420.409 215.501 419.411 215.501C418.447 215.501 417.75 215.959 417.422 216.752H417.312V215.631H416.123V223Z"}),E.jsx("path",{d:"M431.312 223.13C433.049 223.13 434.102 222.146 434.354 221.147L434.368 221.093H433.179L433.151 221.154C432.953 221.599 432.338 222.07 431.34 222.07C430.027 222.07 429.187 221.182 429.152 219.657H434.457V219.192C434.457 216.991 433.24 215.501 431.237 215.501C429.234 215.501 427.936 217.06 427.936 219.336V219.343C427.936 221.653 429.207 223.13 431.312 223.13ZM431.23 216.561C432.317 216.561 433.124 217.251 433.247 218.707H429.173C429.303 217.306 430.137 216.561 431.23 216.561Z"}),E.jsx("path",{d:"M436.303 223H437.492V218.639C437.492 217.347 438.237 216.554 439.413 216.554C440.589 216.554 441.136 217.189 441.136 218.516V223H442.325V218.229C442.325 216.479 441.402 215.501 439.748 215.501C438.661 215.501 437.971 215.959 437.602 216.738H437.492V215.631H436.303V223Z"}),E.jsx("path",{d:"M447.097 223.055C447.329 223.055 447.555 223.027 447.787 222.986V221.975C447.568 221.995 447.452 222.002 447.24 222.002C446.475 222.002 446.174 221.653 446.174 220.785V216.615H447.787V215.631H446.174V213.724H444.943V215.631H443.781V216.615H444.943V221.086C444.943 222.494 445.579 223.055 447.097 223.055Z"})]}),E.jsxs("svg",{id:"createExperiment-circleContent",children:[E.jsx("rect",{x:"460.5",y:"82.5",width:"81",height:"81",rx:"40.5",fill:"white"}),E.jsx("path",{opacity:"0.1",d:"M502.247 123.032C502.859 123.032 503.369 122.588 503.475 122.007C503.416 122.288 503.262 122.54 503.039 122.721C502.816 122.902 502.537 123.001 502.25 123.001C501.922 123.001 501.607 122.871 501.373 122.641C501.139 122.411 501.005 122.098 501 121.769V121.785C501 122.472 501.559 123.032 502.247 123.032ZM508.5 128.494L508.491 128.485C507.584 127.938 506.544 127.647 505.459 127.647C504.056 127.647 502.734 128.138 501.678 129.016C500.234 130.227 498.409 130.89 496.525 130.888C495.237 130.888 493.994 130.582 492.878 130.013L491.578 133.375H510.422L508.55 128.526L508.5 128.494Z",fill:"#3A61C2"}),E.jsx("path",{d:"M512.469 132.778L506.759 118V112.562H509V110.438H493V112.562H495.24V118L489.531 132.778C489.444 133.009 489.397 133.253 489.397 133.5C489.397 134.603 490.294 135.5 491.397 135.5H510.603C510.85 135.5 511.094 135.453 511.325 135.366C512.356 134.969 512.869 133.809 512.469 132.778V132.778ZM497.365 118.397V112.625H504.634V118.397L507.475 125.75C506.828 125.584 506.159 125.5 505.478 125.5C503.565 125.5 501.753 126.172 500.312 127.375C499.249 128.263 497.907 128.749 496.522 128.747C495.5 128.747 494.519 128.488 493.653 128.006L497.365 118.397V118.397ZM491.578 133.375L492.878 130.013L492.881 130.006C493.997 130.572 495.237 130.875 496.525 130.875C498.437 130.875 500.25 130.203 501.69 129C502.75 128.119 504.075 127.628 505.481 127.628C506.575 127.628 507.619 127.925 508.531 128.475L508.55 128.525L510.422 133.375H491.578Z",fill:"#3A61C2"}),E.jsx("path",{d:"M502.25 123C502.853 123 503.356 122.575 503.475 122.006C503.494 121.922 503.5 121.837 503.5 121.75C503.5 121.059 502.941 120.5 502.25 120.5C501.559 120.5 501 121.059 501 121.75V121.769C501.005 122.097 501.139 122.41 501.373 122.641C501.607 122.871 501.922 123 502.25 123Z",fill:"#3A61C2"}),E.jsx("rect",{x:"460.5",y:"82.5",width:"81",height:"81",rx:"40.5",stroke:"#F0F0F0"})]}),E.jsx("path",{className:ed.defaultFill,id:"createExperiment-progressBar",d:"M458.202 109.094C455.266 118.132 455.266 127.868 458.202 136.906C461.139 145.944 466.862 153.82 474.55 159.406C482.238 164.992 491.497 168 501 168C510.503 168 519.762 164.992 527.45 159.406C535.138 153.82 540.861 145.944 543.798 136.906C546.734 127.868 546.734 118.132 543.798 109.094C540.861 100.056 535.138 92.18 527.45 86.5942C519.762 81.0085 510.503 78 501 78L501 82.5C509.553 82.5 517.886 85.2076 524.805 90.2348C531.725 95.262 536.875 102.351 539.518 110.485C542.161 118.619 542.161 127.381 539.518 135.515C536.875 143.649 531.725 150.738 524.805 155.765C517.886 160.792 509.553 163.5 501 163.5C492.447 163.5 484.114 160.792 477.195 155.765C470.275 150.738 465.125 143.649 462.482 135.515C459.839 127.381 459.839 118.619 462.482 110.485L458.202 109.094Z"}),E.jsx("path",{className:ed.defaultFill,id:"createExperiment-divider",fillRule:"evenodd",clipRule:"evenodd",d:"M455 254L455 152L457 152L457 254L455 254Z"})]});return E.jsxs("svg",{width:"546",height:"254",viewBox:"0 0 546 254",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[E.jsx(c,{}),E.jsx(u,{}),E.jsx(d,{}),E.jsx(f,{})]})},rJn="_container_38ouz_13",iJn="_header_38ouz_17",h6e={container:rJn,header:iJn},$rt=({title:e,evalSets:t,evalSetName:n,onSelectEvalSet:r,onBackButtonPressed:i,getEvalSets:a})=>{const{data:o,total:s}=t,l=[{title:"Name",dataIndex:"name",key:"name",width:"50%"},{title:"Labels",dataIndex:"total_labels",key:"total_labels",width:"20%"},{title:Ape,dataIndex:"created_at",key:"created_at",width:"30%",render:u=>new Date(u).toLocaleString()}],c={type:"radio",selectedRowKeys:[n],onSelect:r};return E.jsxs("div",{className:h6e.container,children:[E.jsxs("h4",{className:h6e.header,children:[!!i&&E.jsx(ut,{icon:E.jsx(eT,{}),type:"text",onClick:i}),e]}),E.jsx(Of,{data:o,total:s,columns:l,getData:a,rowSelection:c,rowKey:"name",searchAvailable:!1,border:!0},"evalset-selection-table")]})},aJn="_warningIcon_1dnmp_13",oJn={warningIcon:aJn},Frt=({pipelines:e,selectedPipelineName:t,border:n=!0,displayColumns:r=["name","created_at"],disabledV2Pipelines:i=!0,onSelectPipeline:a,getPipelines:o,rowDisabled:s})=>{const{data:l,total:c}=e,u=[{title:KXe,dataIndex:"name",key:"name",render:(f,p)=>E.jsxs(E.Fragment,{children:[E.jsx(l0,{deepsetCloudVersion:p.deepset_cloud_version}),p.name]})},{title:Ape,dataIndex:"created_at",key:"created_at",render:f=>new Date(f).toLocaleString()},{title:XXe,dataIndex:"indexing",key:"status",render:(f,p)=>E.jsx(DC,{pipeline:p})},{title:ZXe,dataIndex:"created_by",key:"created_by",render:f=>E.jsx(d8,{user:f})}].filter(f=>r.includes(f.key)),d=f=>s?s(f):f.deepset_cloud_version===Rr.V2&&i;return E.jsx(Of,{data:l,total:c,columns:u,getData:o,rowSelection:{type:"radio",selectedRowKeys:[t],onSelect:a,renderCell:(f,p,h,m)=>d(p)?E.jsx(_j,{className:oJn.warningIcon}):m},rowKey:"name",searchAvailable:!1,border:n,rowDisabled:f=>d(f)},"pipeline-selection-table")},sJn="_drawer_contentWrapper_16akn_13",lJn="_drawer_contentWrapper_selectTags_16akn_16",cJn="_drawer_extra_container_16akn_21",uJn="_drawer_header_cancelButton_16akn_25",dJn="_editItem_card_16akn_29",fJn="_editItem_nameData_16akn_47",A2={drawer_contentWrapper:sJn,drawer_contentWrapper_selectTags:lJn,drawer_extra_container:cJn,drawer_header_cancelButton:uJn,editItem_card:dJn,editItem_nameData:fJn},pJn=({isVisible:e,onClose:t,experiment:n,pipelines:r,evalSets:i,workspaceTags:a,onSave:o,getEvalsets:s,getPipelines:l})=>{const{Option:c}=Zi,[u,d]=b.useState([]),[f,p]=b.useState(),[h,m]=b.useState(),[g,v]=b.useState(),[y,_]=b.useState(),[S,C]=b.useState("DEFAULT"),w=n.status===yc.CREATED;b.useEffect(()=>{d(n.tags.map(D=>D.name)),w&&(p(i.data.find(D=>D.name===n.parameters.evaluation_set_name)),m(r.data.find(D=>D.name===n.parameters.pipeline_name)))},[]);const x=()=>{o(n.name,u,h?.name,f?.name),t()},T=D=>{_(D)},A=D=>{v(D)},I=()=>{S==="EVAL_SET_EDIT"&&p(g),S==="PIPELINE_EDIT"&&m(y),C("DEFAULT")},R=()=>{C("DEFAULT")},N=()=>S==="EVAL_SET_EDIT"?!g||g.name===f?.name:!y||y.name===h?.name,P=({title:D,name:z,date:U,numLabels:H,onClick:M})=>E.jsxs("div",{className:A2.editItem,children:[E.jsx("span",{children:D}),E.jsxs("div",{className:A2.editItem_card,children:[E.jsx("span",{className:A2.editItem_nameData,children:z}),!Nn.isNil(H)&&E.jsx("span",{children:H}),E.jsx("span",{children:new Date(U).toLocaleString()}),E.jsx(ut,{type:"link",onClick:M,children:xZe})]})]}),L=()=>E.jsxs("div",{className:A2.drawer_contentWrapper,children:[E.jsxs("div",{children:[E.jsx("label",{htmlFor:"selectTags",children:bZe}),E.jsx(Zi,{id:"selectTags",mode:"tags",className:A2.drawer_contentWrapper_selectTags,placeholder:_Ze,value:u,onChange:D=>d(D),children:a.map(D=>E.jsx(c,{value:D.name,children:D.name},D.tag_id))})]}),h&&E.jsx(P,{title:vZe,name:h.name,date:h.created_at,onClick:()=>C("PIPELINE_EDIT")}),f&&E.jsx(P,{title:yZe,name:f.name,date:f.created_at,numLabels:f.total_labels,onClick:()=>C("EVAL_SET_EDIT")})]}),$=D=>({DEFAULT:E.jsx(L,{}),EVAL_SET_EDIT:E.jsx($rt,{title:Cmn,evalSets:i,evalSetName:g?.name||f?.name||"",onSelectEvalSet:A,getEvalSets:s}),PIPELINE_EDIT:E.jsxs("div",{children:[E.jsx("h4",{children:wmn}),E.jsx(Frt,{pipelines:r,selectedPipelineName:y?.name||h?.name||"",onSelectPipeline:T,getPipelines:l})]})})[D];return E.jsx(xm,{title:xmn,size:"large",onClose:t,open:e,extra:E.jsxs("div",{className:A2.drawer_extra_container,children:[S==="DEFAULT"&&E.jsx(ut,{type:"primary",onClick:x,children:Nmn}),S!=="DEFAULT"&&E.jsxs(E.Fragment,{children:[E.jsx(ut,{type:"default",onClick:R,className:A2.drawer_header_cancelButton,children:Mmn}),E.jsx(ut,{type:"primary",onClick:I,disabled:N(),children:Dmn})]})]}),children:$(S)})},hJn="_form_2blg2_13",mJn="_form_item_2blg2_18",gJn="_form_item_description_2blg2_24",vJn="_errorText_2blg2_29",R2={form:hJn,form_item:mJn,form_item_description:gJn,errorText:vJn},{Item:m6e}=Hr,yJn=({nameValue:e,nameInputInfo:t,onNameInputChange:n,validName:r,tagSelectInfo:i,selectedTags:a,onSelectTags:o,tags:s})=>{const l=b.useMemo(()=>s?.map(c=>({label:c.name,value:c.name}))??[],[s]);return E.jsxs(Hr,{layout:"vertical",className:R2.form,children:[E.jsxs(m6e,{label:t.label,className:R2.form_item,children:[E.jsx($r,{"data-testid":t.testId,placeholder:t.placeholder,value:e,onChange:n,status:r?"":"error",allowClear:{clearIcon:r?E.jsx(E.Fragment,{}):E.jsx(fv,{className:R2.errorText})}}),!r&&E.jsx("div",{className:`${R2.form_item_description} ${R2.errorText}`,children:t.validationErrorText})]}),o&&E.jsxs(m6e,{label:i.label,className:R2.form_item,children:[E.jsx(Zi,{"data-testid":i.testId,popupMatchSelectWidth:!0,placeholder:i.placeholder,value:a,onChange:o,options:l,mode:"tags"}),E.jsx("div",{className:R2.form_item_description,children:wfn})]})]})},bJn="_container_19kfq_13",_Jn="_drawer_extra_container_19kfq_20",SJn="_drawer_saveButton_19kfq_24",EJn="_body_19kfq_28",CJn="_stepsHeader_19kfq_37",wJn="_fullContent_19kfq_43",xJn="_namingSectionActions_19kfq_47",TJn="_namingSectionActions_name_19kfq_52",IJn="_namingSectionActions_tags_19kfq_55",AJn="_warningIcon_19kfq_60",t1={container:bJn,drawer_extra_container:_Jn,drawer_saveButton:SJn,body:EJn,stepsHeader:CJn,fullContent:wJn,namingSectionActions:xJn,namingSectionActions_name:TJn,namingSectionActions_tags:IJn,warningIcon:AJn},RJn="_datasetSelectionFilters_feiws_13",NJn="_datasetSelectionFilters_header_feiws_18",OJn="_datasetSelectionFilters_header_title_feiws_23",LJn="_datasetSelectionFilters_optionsSelection_feiws_29",PJn="_radioSelectionCard_feiws_35",kJn="_radioSelectionCard_active_feiws_42",MJn="_radioSelectionCard_radioWrapper_feiws_48",DJn="_radioSelectionCard_labelRadio_feiws_58",$Jn="_filterSelection_button_feiws_71",rp={datasetSelectionFilters:RJn,datasetSelectionFilters_header:NJn,datasetSelectionFilters_header_title:OJn,datasetSelectionFilters_optionsSelection:LJn,radioSelectionCard:PJn,radioSelectionCard_active:kJn,radioSelectionCard_radioWrapper:MJn,radioSelectionCard_labelRadio:DJn,filterSelection_button:$Jn},FJn=[{key:"date",label:"Date"},{key:"Categories",label:"Categories"}],BJn=({title:e,onBackButtonPressed:t,onOptionSelect:n})=>{const[r,i]=b.useState(Dae.ALL_FILES),a=l=>{i(l),n&&n(l)},o=({label:l,key:c,active:u=!1,onClick:d})=>E.jsxs("div",{className:`${rp.radioSelectionCard} ${u?rp.radioSelectionCard_active:""}`,onKeyDown:()=>d(c),onClick:()=>d(c),role:"button",tabIndex:0,children:[E.jsx("div",{className:rp.radioSelectionCard_radioWrapper,children:E.jsx(dc,{checked:u})}),E.jsx("div",{className:rp.radioSelectionCard_labelRadio,children:E.jsx("h6",{children:l})})]},c),s=()=>E.jsx(Vo,{className:rp.filterSelection,menu:{items:FJn,onClick:()=>{}},trigger:["click"],children:E.jsx(ut,{className:rp.filterSelection_button,type:"link",icon:E.jsx(Td,{}),onClick:l=>l.preventDefault(),children:zmn})});return E.jsxs("div",{className:rp.datasetSelectionFilters,children:[E.jsxs("div",{className:rp.datasetSelectionFilters_header,children:[E.jsxs("h4",{className:rp.datasetSelectionFilters_header_title,children:[E.jsx(ut,{icon:E.jsx(eT,{}),type:"text",onClick:t}),e]}),E.jsx("div",{className:rp.datasetSelectionFilters_header_subTitle,children:ymn})]}),E.jsx("div",{className:rp.datasetSelectionFilters_optionsSelection,children:ugn.map(({label:l,key:c})=>o({label:l,key:c,active:r===c,onClick:a}))}),r===Dae.SUBSET&&E.jsx("div",{className:rp.datasetSelectionFilters_filterSelection,children:s()})]})},jJn=e=>{const{pipelines:t,evalSets:n,visible:r,workspaceTags:i,newEvalRunStatus:a,onClose:o,onCreateNewRun:s,onSaveAndStartRun:l,getPipelines:c,getEvalsets:u,message:d}=e,[f]=dj(),p=f.get("withDatasetSelection"),[h,m]=b.useState(0),[g,v]=b.useState(""),[y,_]=b.useState(""),[S,C]=b.useState(""),[w,x]=b.useState([]);b.useEffect(()=>{a===Me.SUCCESS&&o()},[a]);const T=()=>{m(h+1)},A=()=>{m(h-1)},I=H=>{v(H.name)},R=H=>{_(H.name)},N=()=>{s(S,g,y,w)},P=()=>{l(S,g,y,w)},L=()=>t?.data?.find(H=>H.deepset_cloud_version===Rr.V2),$=()=>{o()},D=()=>L()?E.jsx(Ka,{message:mmn,type:"warning",showIcon:!0,icon:E.jsx(_j,{className:t1.warningIcon}),banner:!0}):null,z=()=>{const H=M=>{x(M)};return E.jsxs("div",{className:t1.fullContent,children:[E.jsxs("h4",{className:t1.stepsHeader,children:[E.jsx(ut,{icon:E.jsx(eT,{}),type:"text",onClick:()=>A()}),Tmn]}),E.jsx("div",{className:t1.namingSectionActions,children:E.jsx(yJn,{nameValue:S||"",nameInputInfo:{testId:"newEvalRun_set_name_input",label:Pmn,placeholder:Lmn,validationErrorText:O_.INVALID_CHARACTERS},onNameInputChange:M=>C(M.currentTarget.value.replace(/\s/g,"")),validName:!S||W1(S),tagSelectInfo:{testId:"newEvalRun_set_tags_input",label:bZe,placeholder:_Ze},selectedTags:w,onSelectTags:H,tags:i})})]})},U=[{title:vZe,content:E.jsxs("div",{className:t1.fullContent,children:[E.jsx("h4",{children:_mn}),E.jsx(Frt,{pipelines:t,selectedPipelineName:g,onSelectPipeline:I,getPipelines:c})]})},{title:yZe,content:E.jsx($rt,{title:Smn,evalSets:n,evalSetName:y,onSelectEvalSet:R,onBackButtonPressed:()=>A(),getEvalSets:u})},p?{title:vmn,content:E.jsx(BJn,{title:Emn,onBackButtonPressed:()=>A()})}:null,{title:bmn,content:z()}].filter(Boolean);return E.jsxs(xm,{title:Imn,size:"large",onClose:$,open:r,className:t1.container,extra:E.jsxs("div",{className:t1.drawer_extra_container,children:[h<U.length-1&&E.jsx(ut,{type:"primary",onClick:()=>T(),disabled:!g||!y&&h===1,"data-testid":"newEvalRun_next_button",children:Omn}),h===U.length-1&&E.jsxs(E.Fragment,{children:[E.jsx(ut,{className:t1.drawer_saveButton,onClick:N,disabled:!W1(S),children:Amn}),E.jsx(ut,{type:"primary",onClick:P,disabled:!W1(S),"data-testid":"newEvalRun_start_button",children:Rmn})]})]}),children:[d&&d.content&&E.jsx(Ka,{message:d.content,type:d.type,banner:!0}),D(),E.jsxs("div",{className:t1.body,children:[E.jsx(PVe,{current:h,size:"small",items:U}),U[h].content]})]})},zJn="_emptyState_1re2w_13",UJn="_emptyState_textWrapper_1re2w_24",HJn="_emptyState_subtitle_1re2w_38",VJn="_nameLink_1re2w_42",n1={emptyState:zJn,emptyState_textWrapper:UJn,emptyState_subtitle:HJn,nameLink:VJn},GJn=()=>{const e=ir(),t=ys(),n=`${zu}docs/test-the-experiments`,r=st(Prt),i=st(eQn),a=st(krt),o=st(nQn),s=st(tQn),l=st(ce=>z_(ce,"")),c=st(Ghe),u=st(wrt),{data:d,total:f}=st(JZn),p=st(iQn),h=b.useRef(null),[m,g]=b.useState(null),v=st(aQn),y=st(oQn),[_,S]=b.useState(!1),[C,w]=b.useState(!1),[x,T]=b.useState(""),[A,I]=b.useState(0),R=a===Me.IN_PROGRESS,N=(ce,he,ye,me,_e)=>{e(Nrt({currentPage:ce,pageSize:he,searchValue:ye,sortValue:me,filterValues:_e})),h.current={currentPage:ce,pageSize:he,searchValue:ye,sortValue:me,filterValues:_e}},P=(ce,he,ye,me,_e)=>{e(VZn(ce,he,ye,me,_e))},L=()=>{e(GZn())},$=(ce,he,ye)=>{e(j_({currentPage:ce,pageSize:he,searchValue:ye}))},D=(ce,he,ye)=>{e(Crt({currentPage:ce,pageSize:he,searchValue:ye}))};b.useEffect(()=>{e(m1),$(1,10,""),D(1,10,""),e(Xhe({currentPage:1,pageSize:1,searchValue:""})),e(ZZn()),e(o6e()),e(FZn()),e(BZn()),N(1,10,"")},[]);const z=()=>{const{tags:ce,statuses:he,users:ye}=v,me={type:li.MULTI_SELECT,key:vW.TAGS_ID,title:Fmn,options:ce},_e={type:li.MULTI_SELECT,key:vW.STATUS,title:Bmn,style:{minWidth:"87px"},options:he},Te={type:li.MULTI_SELECT,key:vW.CREATED_BY_USER_ID,title:jmn,style:{minWidth:"120px"},options:ye};return[...ce?.length?[me]:[],...he?.length?[_e]:[],...ye?.length?[Te]:[]]},U=()=>!!Object.values(h.current?.filterValues||{}).flat().length||!!h.current?.searchValue,H=()=>l?.data?.find(ce=>ce.deepset_cloud_version===Rr.V1),M=ce=>!ce.find(he=>{const ye=d.find(me=>me.name===he);return ye?.status!==yc.CREATED&&ye?.status!==yc.FAILED}),B=()=>{e(m1),S(!0)},k=async(ce,he,ye,me)=>{e(m1),await e(jZn({name:ce,pipelineName:he,evalsetName:ye,tags:me})),f===0&&N(1,10,"")},F=async(ce,he,ye,me)=>{e(m1),await e(HZn({name:ce,pipelineName:he,evalsetName:ye,tags:me})),f===0&&N(1,10,"")},G=async(ce,he,ye,me)=>{e(m1),await e(WZn({name:ce,tags:he,pipelineName:ye,evalSetName:me}));const{currentPage:_e,pageSize:Te,searchValue:xe,filterValues:De}=h.current||{currentPage:1,pageSize:10,searchValue:""};N(_e,Te,xe,"",De),e(o6e())},q=async ce=>{e(m1),await e(Lrt(ce))},W=ce=>{const he=d.find(ye=>ye.eval_run_id===ce)||null;g(he),w(!0)},K=({key:ce,name:he,eval_run_id:ye})=>{ce==="DETAILS"&&t(he),ce==="DELETE"&&T(he),ce==="EDIT"&&W(ye)},J=async ce=>{T(""),e(Ort(ce))},te=ce=>{e(m1),e(zZn(ce))},ae=ce=>{e(m1),e(UZn(ce))},re=()=>{const ce=!!l?.data?.length,he=!!u?.data?.length,ye=!!c?.data?.length;return ce&&he&&ye?{title:E.jsx("h2",{children:Swe}),subtitle:E.jsx("p",{className:n1.emptyState_subtitle,children:Pn(umn,{documentationLink:E.jsx("a",{href:n,target:"_blank",rel:"noreferrer",children:Ewe})})}),button:E.jsxs(ut,{type:"primary",onClick:B,"data-testid":"experiments_emptyState_newExperiment_button",children:[E.jsx(Td,{})," ",mW]})}:{title:E.jsx("h2",{className:n1.emptyState_title,children:Swe}),subtitle:E.jsx("p",{className:n1.emptyState_subtitle,children:Pn(cmn,{uploadFilesLink:E.jsx(ut,{type:"link",onClick:()=>t("/files"),children:dmn}),creatPipelineLink:E.jsx(ut,{type:"link",onClick:()=>t("/pipelines/templates"),children:fmn}),prepareEvalSetLink:E.jsx(ut,{type:"link",onClick:()=>t("/evalset"),children:pmn}),documentationLink:E.jsx("a",{href:n,target:"_blank",rel:"noreferrer",children:Ewe})})}),button:E.jsx(vr,{title:hmn,children:E.jsxs(ut,{type:"primary",disabled:!0,"data-testid":"experiments_emptyState_newExperiment_button_disabled",children:[E.jsx(Td,{})," ",mW]})})}},ue=()=>E.jsxs("div",{className:n1.emptyState,"data-testid":"experiments_commingSoonState",children:[E.jsx(QQn,{}),E.jsxs("div",{className:n1.emptyState_textWrapper,children:[E.jsx(Si,{bordered:!1,color:"warning",children:xfn}),E.jsx("h2",{children:omn}),E.jsx("p",{className:n1.emptyState_subtitle,children:smn})]})]}),de=()=>{const ce=!!l?.data?.length,he=!!u?.data?.length,ye=!!c?.data?.length;if(!ce||!H())return ue();const{title:me,subtitle:_e,button:Te}=re();return E.jsxs("div",{className:n1.emptyState,children:[E.jsx(nJn,{isCreatePipelineCompleted:ce,isEvalSetCompleted:he,isUploadFilesCompleted:ye,onUploadFileSectionClick:()=>t("/files"),onPrepareEvalSetSectionClick:()=>t("/evalset"),onCreatePipelineSectionClick:()=>t("/pipelines/templates")}),E.jsxs("div",{className:n1.emptyState_textWrapper,children:[me,_e]}),Te]})},fe=Hpe("experimentColumnSelection")||["tags","created_at","created_by","integrated_recall_multi_hit","integrated_f1","integrated_groundedness"],ge=[{key:"tags",title:"Tags"},{key:"created_at",title:"Created At"},{key:"created_by",title:"User"}],oe=d.length>0?Object.keys(gW).map(ce=>(ge.push({key:ce,title:gW[ce]}),{title:()=>E.jsxs("span",{children:[gW[ce]," ",E.jsx(vr,{title:dgn[ce],children:E.jsx(om,{})})]}),key:ce,width:120,render:(he,ye)=>{const me=ye.eval_results?[...ye.eval_results]:[];let _e;for(;!_e&&me.length>0;){const Te=me.pop();Te[ce]!==void 0&&Te[ce]!==null&&(_e=Te[ce])}return _e==null?"":pl(_e)}})):[],Ee=[{title:"Name",dataIndex:"name",key:"name",fixed:"left",width:400,render:ce=>E.jsx(Jg,{to:ce,className:n1.nameLink,children:ce})},{title:"Status",dataIndex:"status",key:"status",width:"10%",render:ce=>E.jsx(Drt,{status:ce})},{title:"Tags",key:"tags",dataIndex:"tags",width:120,render:ce=>E.jsx(E.Fragment,{children:ce.length>0&&wme(ce,"name").map(he=>{const{tag_id:ye,name:me}=he;return E.jsx(Si,{style:{marginRight:2},children:me},ye)})})},...oe,{title:"Created At",dataIndex:"created_at",key:"created_at",width:200,render:ce=>new Date(ce).toLocaleString()},{title:"User",dataIndex:"created_by",key:"created_by",width:80,render:ce=>E.jsx(d8,{user:ce})},{key:"action",width:"8%",align:"right",fixed:"right",render:(ce,he)=>{const ye=[{label:xZe,key:"EDIT"},{label:kmn,key:"DETAILS"},{label:wZe,key:"DELETE",danger:!0,icon:E.jsx(m0,{})}],me=he.status===yc.CREATED;return E.jsx(v8,{menu:{items:ye,onClick:({key:_e})=>K({key:_e,name:he.name,eval_run_id:he.eval_run_id}),"data-testid":"experiments_tableRow_moreActions_button"},item:he.name,itemToDelete:x,onDelete:J,onCancelDelete:()=>T(""),deleteConfirmationMessage:SZe,confirmButtonLabel:EZe,cancelButtonLabel:CZe,primaryButton:{label:me?gZe:gmn,action:q,visible:he.status!==yc.ENDED&&he.status!==yc.STARTED,icon:me?null:E.jsx(h$,{})}})}}];return E.jsxs(E.Fragment,{children:[r&&r.content&&E.jsx(Ka,{message:r.content,type:r.type,banner:!0}),E.jsx("div",{className:"content-wrapper",style:{height:"100%"},children:!f&&!U()?de():E.jsx(Of,{testId:"experiments_table",data:d,total:f,loading:R,refetch:o===Me.SUCCESS||s===Me.SUCCESS,columns:Ee,getData:N,locale:{emptyText:lmn},sorting:{selectedValue:y,options:pgn},filters:z(),rowKey:"name",primaryAction:{label:mW,onClick:B},scroll:{x:"max-content"},columnsConfig:{optionalColumns:ge,defaultColumns:fe,cacheLocation:"experimentColumnSelection"},polling:{enabled:!0,startPolling:P,stopPolling:L},selectActions:[{type:"primary",label:$mn,onClick:ae,isVisible:M},{type:"default",danger:!0,label:A===1?Pn(_gn,{total:A}):Pn(Sgn,{total:A}),onClick:te,popconfirm:{title:wgn}}],setTotalSelectedItems:ce=>I(ce)})}),_&&E.jsx(jJn,{"data-testid":"experiments_newEvalRun_drawer",pipelines:l,evalSets:u,onClose:()=>S(!1),visible:_,getEvalsets:D,getPipelines:$,onCreateNewRun:k,onSaveAndStartRun:F,workspaceTags:p,newEvalRunStatus:o,message:i}),C&&E.jsx(pJn,{experiment:m,evalSets:u,pipelines:l,isVisible:C,workspaceTags:p,getEvalsets:D,getPipelines:$,onClose:()=>w(!1),onSave:G})]})},qJn="Register now to deepset Cloud",WJn="Thank you for purchasing deepset Cloud through the AWS Marketplace.",YJn="To set up your account, fill in the form below.",KJn="Contact us",XJn="Your personal information",ZJn="We're delighted to have you with us. We'd like to learn more about you to customize your deepset Cloud experience.",my={name:{label:" Name",placeholder:"Jane"},lastName:{label:" Last name",placeholder:"Doe"},email:{label:" Email",placeholder:"jane.doe@company.com"},companyName:{label:" Company name",placeholder:"Company"}},TI={name:"Name is required.",lastName:"Last name is required.",email:"Email is required.",emailInvalid:"The input is not a valid email address.",companyName:"Company name is required."},QJn="Your business needs",JJn="Tell us more about your use case so that we can understand how deepset Cloud can help you. This step is optional.",dp={systemDescription:{label:"What kind of a system would you like to build?",placeholder:"Describe the system you want to build with deepset Cloud."},timeline:{label:"When would you like to start your project? If started, what have you done so far?",placeholder:"Give a timeline of when you're ready to start or describe what you've already built."},professionalService:{label:"Do you have a dedicated technical team or do you require a professional service? ",placeholder:"Tell us if you need help with your project."},dataType:{label:"What type of data do you want to use?",placeholder:"Specify the format and topic area."}},g6e="Register",eer="Welcome aboard!",ter="Thank you for registering! Please wait until you receive your account ",ner="details and you'll be all set to explore deepset Cloud shortly.",rer="Registration completed",ier="We're setting up deepset Cloud for you and you'll be able to use it within 2 business days. We'll send you an email with your login details when everything is ready. In the meantime, you can always reach out to us.",aer="Contact support",oer="Already have an account?",ser="If you already have your login details provided by our team, you can access deepset cloud now.",ler="Log in now",cer="Error occurred while validating token",zJ="AWS Marketplace token is required",v6e="Failed to submit the form. Please try again.",uer="by deepset",der=[{title:"Talk to Your Docs, RAG Style",description:"How we built a generative AI assistant for easier navigation of our technical documentation",link:"https://www.deepset.ai/blog/talk-to-your-docs-rag-style",buttonLabel:"Read article"},{title:"RAG QA for Enterprise Search",description:"In this webinar, will explore the capabilities and potential of Retrieval Augmented Generative Question Answering (RAG QA) in the enterprise sector.",link:"https://www.youtube.com/watch?v=DlgPllpbW5I",buttonLabel:"Watch webinar"},{title:"Dive Into the deepset Cloud Documentation",description:"Here, you will find everything you need to get started, as well as help if you get stuck. Get ready to build your AI-powered app.",link:zu,buttonLabel:"Open documentation"}];var p6=(e=>(e.US="us",e.EU="eu",e))(p6||{});const Brt="https://rx6o3degzk.execute-api.us-east-1.amazonaws.com/Development",jrt="https://o1rk9yd7lg.execute-api.eu-central-1.amazonaws.com/Development",fer=async(e,t)=>{let n=`${Brt}/ResolveCustomer`;return t===p6.EU&&(n=`${jrt}/ResolveCustomer`),(await os.post(n,{RegistrationToken:e},{headers:{"Content-Type":"application/json"}})).data},y6e=async e=>{let t=`${Brt}/Submission`;return e.location===p6.EU&&(t=`${jrt}/Submission`),await os.post(t,{...e},{headers:{"Content-Type":"application/json"}})},per="_container_1eyuz_13",her="_logoWrapper_1eyuz_29",mer="_logo_1eyuz_29",Sk={container:per,logoWrapper:her,logo:mer},ger=()=>{const e="https://landing.deepset.ai/deepset-contact-us",{Header:t}=V1;return E.jsxs(t,{className:Sk.container,children:[E.jsx("div",{className:Sk.logoWrapper,children:E.jsx(pQe,{className:Sk.logo})}),E.jsx("a",{href:e,target:"_blank",rel:"noreferrer",className:Sk.docsLink,children:E.jsx(ut,{type:"primary",icon:E.jsx(mj,{}),children:KJn})})]})},ver="_card_92lgu_25",yer="_stepCard_92lgu_25",ber="_stepCard_header_92lgu_42",_er="_stepCard_header_step_92lgu_50",Ser="_stepCard_header_extra_92lgu_55",Eer="_stepCard_body_92lgu_58",Cer="_stepCard_footer_92lgu_63",Dw={card:ver,stepCard:yer,stepCard_header:ber,stepCard_header_step:_er,stepCard_header_extra:Ser,stepCard_body:Eer,stepCard_footer:Cer},zrt=b.forwardRef(({title:e,subtitle:t,extra:n,children:r,currentStep:i,totalSteps:a,onBackButtonPress:o,isBackButtonDisabled:s,nextButtonLabel:l,onNextButtonPress:c,isNextButtonDisabled:u,isNextButtonLoading:d},f)=>{const p=b.useRef(null);return b.useImperativeHandle(f,()=>({scrollTop(){p.current&&p.current.scrollTo({top:0,behavior:"smooth"})}}),[]),E.jsxs("div",{className:Dw.stepCard,children:[E.jsxs("div",{className:Dw.stepCard_header,children:[E.jsx(TC,{percent:i/a*100,showInfo:!1,status:"normal"}),E.jsx("div",{className:Dw.stepCard_header_step,children:Pn(ovn,{currentStep:i,totalSteps:a})}),E.jsx("h3",{children:e}),E.jsx("span",{children:t}),n&&E.jsx("div",{className:Dw.stepCard_header_extra,children:n})]}),E.jsx("div",{className:Dw.stepCard_body,ref:p,id:"stepCardBodyDiv",children:r}),E.jsxs("div",{className:Dw.stepCard_footer,children:[o&&E.jsx(ut,{type:"default",onClick:o,disabled:s,children:Jdn}),E.jsx(ut,{type:"primary",onClick:c,disabled:u,loading:d,children:l||DXe})]})]})}),wer="_formContainer_11rda_13",xer="_formContainer_inputField_11rda_18",Ter="_formContainer_inputField_required_11rda_24",II={formContainer:wer,formContainer_inputField:xer,formContainer_inputField_required:Ter},Ier=e=>{const{totalSteps:t,currentStep:n,subscriptionData:r,onBackButtonPress:i,onNextButtonPress:a,nextButtonLabel:o,loading:s}=e,[l]=Hr.useForm(),c={systemDescription:r.systemDescription,timeline:r.timeline,professionalService:r.professionalService,dataType:r.dataType};return E.jsx(zrt,{title:QJn,subtitle:JJn,currentStep:n,totalSteps:t,onNextButtonPress:()=>a(l.getFieldsValue()),onBackButtonPress:()=>i(l.getFieldsValue()),isNextButtonLoading:s,nextButtonLabel:o,children:E.jsx(Hr,{form:l,name:"awsRegisterBusinessNeedsForm",initialValues:c,children:E.jsxs("div",{className:II.formContainer,children:[E.jsxs("div",{className:II.formContainer_inputField,children:[E.jsx("div",{children:dp.systemDescription.label}),E.jsx(Hr.Item,{name:"systemDescription",children:E.jsx($r,{placeholder:dp.systemDescription.placeholder})})]}),E.jsxs("div",{className:II.formContainer_inputField,children:[E.jsx("div",{children:dp.timeline.label}),E.jsx(Hr.Item,{name:"timeline",children:E.jsx($r,{placeholder:dp.timeline.placeholder})})]}),E.jsxs("div",{className:II.formContainer_inputField,children:[E.jsx("div",{children:dp.professionalService.label}),E.jsx(Hr.Item,{name:"professionalService",children:E.jsx($r,{placeholder:dp.professionalService.placeholder})})]}),E.jsxs("div",{className:II.formContainer_inputField,children:[E.jsx("div",{children:dp.dataType.label}),E.jsx(Hr.Item,{name:"dataType",children:E.jsx($r,{placeholder:dp.dataType.placeholder})})]})]})})})},Aer="_formContainer_17brq_13",Rer="_formContainer_inputField_17brq_18",Ner="_formContainer_inputField_required_17brq_24",r1={formContainer:Aer,formContainer_inputField:Rer,formContainer_inputField_required:Ner},Oer=e=>{const{totalSteps:t,currentStep:n,subscriptionData:r,onNextButtonPress:i,nextButtonLabel:a,loading:o}=e,[s,l]=b.useState(!0),[c]=Hr.useForm(),u={name:r.name,lastName:r.lastName,email:r.email,companyName:r.companyName};b.useEffect(()=>{u.name&&u.lastName&&u.email&&u.companyName?l(!1):l(!0)},[]);const d=(f,p)=>{p.name&&p.lastName&&p.email&&p.companyName&&c.getFieldError("email").length===0?l(!1):l(!0)};return E.jsx(zrt,{title:XJn,subtitle:ZJn,currentStep:n,totalSteps:t,onNextButtonPress:()=>i(c.getFieldsValue()),isNextButtonDisabled:s,isNextButtonLoading:o,nextButtonLabel:a,children:E.jsx(Hr,{form:c,name:"awsRegisterPersonalInfoForm",initialValues:u,onValuesChange:d,children:E.jsxs("div",{className:r1.formContainer,children:[E.jsxs("div",{className:r1.formContainer_inputField,children:[E.jsxs("div",{children:[E.jsx("span",{className:r1.formContainer_inputField_required,children:"*"}),my.name.label]}),E.jsx(Hr.Item,{name:"name",rules:[{required:!0,message:TI.name}],children:E.jsx($r,{placeholder:my.name.placeholder})})]}),E.jsxs("div",{className:r1.formContainer_inputField,children:[E.jsxs("div",{children:[E.jsx("span",{className:r1.formContainer_inputField_required,children:"*"}),my.lastName.label]}),E.jsx(Hr.Item,{name:"lastName",rules:[{required:!0,message:TI.lastName}],children:E.jsx($r,{placeholder:my.lastName.placeholder})})]}),E.jsxs("div",{className:r1.formContainer_inputField,children:[E.jsxs("div",{children:[E.jsx("span",{className:r1.formContainer_inputField_required,children:"*"}),my.email.label]}),E.jsx(Hr.Item,{name:"email",rules:[{required:!0,message:TI.email},{type:"email",message:TI.emailInvalid}],children:E.jsx($r,{placeholder:my.email.placeholder})})]}),E.jsxs("div",{className:r1.formContainer_inputField,children:[E.jsxs("div",{children:[E.jsx("span",{className:r1.formContainer_inputField_required,children:"*"}),my.companyName.label]}),E.jsx(Hr.Item,{name:"companyName",rules:[{required:!0,message:TI.companyName}],children:E.jsx($r,{placeholder:my.companyName.placeholder})})]})]})})})},Urt=e=>b.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("g",{clipPath:"url(#clip0_1304_73548)"},b.createElement("circle",{cx:16,cy:16,r:16,fill:"white"}),b.createElement("path",{d:"M16 0C7.16429 0 0 7.16429 0 16C0 24.8357 7.16429 32 16 32C24.8357 32 32 24.8357 32 16C32 7.16429 24.8357 0 16 0ZM22.9107 10.775L15.3893 21.2036C15.2842 21.3503 15.1456 21.4699 14.985 21.5523C14.8245 21.6348 14.6466 21.6778 14.4661 21.6778C14.2856 21.6778 14.1077 21.6348 13.9471 21.5523C13.7866 21.4699 13.648 21.3503 13.5429 21.2036L9.08929 15.0321C8.95357 14.8429 9.08929 14.5786 9.32143 14.5786H10.9964C11.3607 14.5786 11.7071 14.7536 11.9214 15.0536L14.4643 18.5821L20.0786 10.7964C20.2929 10.5 20.6357 10.3214 21.0036 10.3214H22.6786C22.9107 10.3214 23.0464 10.5857 22.9107 10.775Z",fill:"#13B391"})),b.createElement("defs",null,b.createElement("clipPath",{id:"clip0_1304_73548"},b.createElement("rect",{width:32,height:32,fill:"white"})))),Ler="_card_1i868_25",Per="_container_section_1i868_25",ker="_container_1i868_25",Mer="_container_suggestions_1i868_50",Der="_successIcon_1i868_57",$er="_description_1i868_62",Fer="_description_subtitle_1i868_67",Ber="_suggestionCard_1i868_71",jer="_suggestionCard_description_1i868_83",zer="_suggestionCard_logo_1i868_87",Uer="_suggestionCard_actionButton_1i868_97",of={card:Ler,container_section:Per,container:ker,container_suggestions:Mer,successIcon:Der,description:$er,description_subtitle:Fer,suggestionCard:Ber,suggestionCard_description:jer,suggestionCard_logo:zer,suggestionCard_actionButton:Uer},Her="small",Ver=e=>{const{login:t}=e,n="https://landing.deepset.ai/deepset-contact-us",r=i=>E.jsxs("div",{className:of.suggestionCard,children:[E.jsx("h6",{children:i.title}),E.jsx("div",{className:of.suggestionCard_description,children:i.description}),E.jsxs("div",{className:of.suggestionCard_logo,children:[E.jsx(u8,{size:Her}),E.jsx("span",{children:uer})]}),E.jsx("div",{className:of.suggestionCard_actionButton,children:E.jsx("a",{href:i.link,target:"_blank",rel:"noreferrer",children:E.jsx(ut,{type:"primary",size:"small",children:i.buttonLabel})})})]},i.title);return E.jsxs("div",{className:of.container,children:[E.jsxs("div",{className:of.container_section,children:[E.jsx(Urt,{className:of.successIcon}),E.jsxs("div",{className:of.description,children:[E.jsx("h4",{children:rer}),E.jsx("div",{className:of.description_subtitle,children:ier})]}),E.jsx("a",{href:n,target:"_blank",rel:"noreferrer",children:E.jsx(ut,{type:"primary",children:aer})})]}),E.jsx("div",{className:of.container_suggestions,children:der.map(i=>r(i))}),E.jsxs("div",{className:of.container_section,children:[E.jsxs("div",{className:of.description,children:[E.jsx("h4",{children:oer}),E.jsx("div",{className:of.description_subtitle,children:ser})]}),E.jsx(ut,{onClick:()=>t(),children:ler})]})]})},Ger="_container_1labf_13",qer="_content_1labf_19",Wer="_content_registerBanner_1labf_25",Yer="_content_registerBanner_description_1labf_36",Ker="_content_registrationForm_1labf_39",$w={container:Ger,content:qer,content_registerBanner:Wer,content_registerBanner_description:Yer,content_registrationForm:Ker},Xer=()=>{const e=ys(),[t,n]=b.useState(1),[r,i]=b.useState(2),[a,o]=b.useState(!1),[s,l]=b.useState({name:"",lastName:"",email:"",companyName:"",systemDescription:"",timeline:"",professionalService:"",dataType:"",offerType:"",awsMarketplaceToken:"",location:""}),[c,u]=Dp.useMessage(),[d]=dj(),f=d.get("offer"),p=d.get("location"),h=d.get("x-amzn-marketplace-token");b.useEffect(()=>{f==="private"&&i(1),l({...s,offerType:f??"",location:p??p6.US,awsMarketplaceToken:h??""})},[f,p,h]);const m=_=>{c.open({type:"error",content:_,duration:mm.long})},g=async()=>{if(h){const _=await fer(h,p||p6.US);if(_?.statusCode===Qs.OK)return!0;c.open({type:"error",content:_?.body||cer,duration:mm.long})}else m(zJ);return!1},v=async _=>{if(l({...s,..._}),!h){m(zJ);return}o(!0),f==="private"?await g()?(await y6e(s))?.status===Qs.OK?n(t+2):m(v6e):n(1):n(t+1),o(!1)},y=async _=>{if(!h){m(zJ);return}o(!0);const S={systemDescription:`${dp.systemDescription.label} ${_.systemDescription}`,timeline:`${dp.timeline.label} ${_.timeline}`,professionalService:`${dp.professionalService.label} ${_.professionalService}`,dataType:`${dp.dataType.label} ${_.dataType}`};await g()?(await y6e({...s,...S}))?.status===Qs.OK?n(t+1):m(v6e):n(1),o(!1),l({...s,..._})};return E.jsxs("div",{className:$w.container,children:[u,E.jsx(ger,{}),E.jsxs("div",{className:$w.content,children:[E.jsxs("div",{className:$w.content_registerBanner,children:[E.jsx("h2",{children:t===3?eer:qJn}),E.jsx("div",{className:$w.content_registerBanner_description,children:t===3?ter:WJn}),E.jsx("div",{className:$w.content_registerBanner_description,children:t===3?ner:YJn})]}),E.jsxs("div",{className:$w.content_registrationForm,children:[t===1&&E.jsx(Oer,{currentStep:t,totalSteps:r,subscriptionData:s,onNextButtonPress:_=>v(_),nextButtonLabel:f==="private"?g6e:DXe,loading:a}),t===2&&E.jsx(Ier,{currentStep:t,totalSteps:r,subscriptionData:s,onBackButtonPress:_=>{l({...s,..._}),n(t-1)},onNextButtonPress:_=>y(_),nextButtonLabel:g6e,loading:a}),t===3&&E.jsx(Ver,{login:()=>e("/login")})]})]})]})},Zer=(e,t,n=er())=>rn.post(`/api/v1/workspaces/${n}/files`,e,t),Qer="_container_1l6z6_13",Jer="_contentContainer_1l6z6_20",etr="_textContainer_1l6z6_30",ttr="_title_1l6z6_36",ntr="_imageContainer_1l6z6_40",Fw={container:Qer,contentContainer:Jer,textContainer:etr,title:ttr,imageContainer:ntr},Hrt=({title:e,description:t,image:n,action:r})=>E.jsx("div",{className:Fw.container,children:E.jsxs("div",{className:Fw.contentContainer,children:[E.jsxs("div",{className:Fw.textContainer,children:[E.jsx("h4",{className:Fw.title,children:e}),t.map(({paragraph:i},a)=>E.jsxs(b.Fragment,{children:[E.jsx("div",{children:i}),a!==t.length-1&&E.jsx("br",{})]},`${String(i)}-${a}`))]}),E.jsx("div",{className:Fw.imageContainer,children:E.jsx(b.Suspense,{children:n})}),E.jsx("div",{className:Fw.actionContainer,children:r})]})}),rtr="_nameLink_1bpa9_13",itr="_metadataFiltersDrawer_1bpa9_21",atr="_uploadFile_documentationButton_1bpa9_33",b6e={nameLink:rtr,metadataFiltersDrawer:itr,uploadFile_documentationButton:atr},otr=se.lazy(()=>Io(()=>import("./files-landing.DHjFImFi.js"),[])),str=se.lazy(()=>Io(()=>import("./DocumentsPreview.caLkNwS1.js"),__vite__mapDeps([6,7]))),_6e="workspace-pipeline",ltr=()=>{const e=ir(),t=st(I$n),n=st(A$n),r=st(R$n),{data:i,total:a}=st(Ghe),o=st(qhe),s=st(Rtt),l=st(Ntt),c=st(O$n),u=st(qT),d=st(OU),f=st(N$n),[p,h]=b.useState(""),[m,g]=b.useState(0),[v,y]=b.useState(!1),[_,S]=b.useState(!1),[C,w]=b.useState({}),[x,T]=b.useState(!1),[A,I]=b.useState(!1),[R,N]=b.useState({currentPage:0,pageSize:bW,searchValue:""}),P=b.useRef(null),L=n===Me.IN_PROGRESS||r===Me.IN_PROGRESS,$=r===Me.SUCCESS&&i.length===0;b.useEffect(()=>{e(YFn),e(WFn),e(pc({})),e(Fb({})),e(TU({pipelineName:_6e}))},[]),b.useEffect(()=>{x&&e(pc(d))},[x]);const D=()=>!!Object.values(P.current?.filterValues||{}).flat().length||!!Object.values(P.current?.metadataFilterValues||{}).flat().length||!!P.current?.searchValue,z=(me,_e,Te,xe,De,Pe,Le)=>{const ze={value:"",fileId:""};Pe&&(xe&&xe.includes("name")||c.includes("name")?ze.value=Pe.name:ze.value=Pe.created_at,ze.fileId=Pe.file_id);const Be={currentPage:me,pageSize:_e,searchValue:Te,sortValue:xe,filterValues:De,after:Pe?ze:void 0,metadataFilterValues:Le};return P.current={...Be,after:Pe},e(Xhe(Be))},U=me=>i.find(_e=>_e.file_id===me),H=me=>{const{meta:_e,name:Te}=U(me)||{};return{..._e,file_id:me,file_name:Te}},M=(me,_e)=>{e(eBn({fileId:me,meta:_e}))};so(()=>{!o||!s||l===Me.SUCCESS&&e(jh({...o,contents:[{value:s}]}))},[l]),so(()=>{if(f===Me.SUCCESS){const{currentPage:me=1,pageSize:_e=bW,searchValue:Te="",sortValue:xe,filterValues:De,after:Pe,metadataFilterValues:Le}=P.current||{};z(me,_e,Te,xe,De,Pe,Le),S(!1)}},[f]);const B=()=>!Nn.isEqual(u,d),k=()=>!Nn.isEmpty(u)||!Nn.isEmpty(d),F=me=>{const _e=KO(me);return[cs.txt,cs.pdf,cs.json,cs.html,cs.md,cs.xml,cs.csv,cs.docx].includes(_e)},G=me=>{S(!0),w(H(me))},q=async(me,_e)=>{e(jh({contents:[],fileName:_e,fileId:me})),e(s6({fileId:me,fileName:_e}))},W=()=>{e(jh(null))},K=async me=>{e(ZFn(me))},J=async me=>{e(QFn(me))},te=async()=>{await e(JFn())},ae=()=>{y(!0)},re=me=>{const{currentPage:_e,pageSize:Te,searchValue:xe,sortValue:De,filterValues:Pe}=R;z(_e,Te,xe,De,Pe,void 0,me?u:void 0)},ue=()=>{e(pc({})),e(Fb({})),re(!1),I(!0)},de=async()=>{e(Fb(u)),re(!0),I(!1)},fe=me=>{N({...me}),T(!0)},ge=(me,_e,Te)=>{me==="VIEW_METADATA"&&G(Te),me==="DELETE"&&h(Te),me==="DOWNLOAD"&&e(XFn({fileId:Te,fileName:_e}))},oe=()=>E.jsx(Khe,{data:C,nonEditableFields:["file_id","file_name"],updating:f===Me.IN_PROGRESS,open:_,onEdit:me=>M(C.file_id,me),onOk:()=>S(!1),onCancel:()=>S(!1)}),Ee=()=>E.jsx(xm,{title:kwe,onClose:()=>T(!1),open:x,extra:E.jsxs(nv,{children:[k()&&E.jsx(ut,{onClick:()=>ue(),children:Hgn}),B()&&E.jsx(ut,{onClick:()=>de(),type:"primary",children:Vgn})]}),className:b6e.metadataFiltersDrawer,children:E.jsx(nme,{pipelineName:_6e,showAll:!0})}),ce=[{title:"Name",dataIndex:"name",key:"name",render:(me,_e)=>E.jsx(ut,{type:"link",size:"small",className:b6e.nameLink,onClick:()=>{F(_e)&&q(_e.file_id,me)},children:me})},{title:"Size",dataIndex:"size",key:"size",width:"10%",render:me=>dpn(me)},{title:"Created At",dataIndex:"created_at",key:"created_at",width:"20%",render:me=>new Date(me).toLocaleString()},{key:"action",width:"10%",align:"right",render:(me,_e)=>{const Te=[{label:QN,key:"VIEW_METADATA"},{label:Pgn,key:"DOWNLOAD"},{label:PZe,key:"DELETE",danger:!0,icon:E.jsx(m0,{})}];return E.jsx(v8,{menu:{items:Te,onClick:({key:xe})=>ge(xe,_e.name,_e.file_id),"data-testid":"files_tableRow_moreActions_button"},item:_e.file_id,itemToDelete:p,onDelete:K,deleteConfirmationMessage:OZe,cancelButtonLabel:_R,onCancelDelete:()=>h(""),primaryButton:{label:Ogn,action:xe=>q(xe,_e.name),visible:F(_e)}})}}],he=()=>E.jsx(Hrt,{title:Owe.TITLE,description:Owe.DESCRIPTION.map(({paragraph:me})=>({paragraph:Pn(me,{documentationLink:E.jsx("a",{href:Kgn,target:"_blank",rel:"noreferrer",children:jXe})})})),image:E.jsx(otr,{}),action:E.jsx(ut,{type:"primary",onClick:ae,icon:E.jsx(m$,{}),children:Lwe})}),ye=()=>{const me=Pn(Agn,{uploadFilesButton:E.jsx(ut,{type:"link",onClick:ae,style:{padding:0},children:LZe},"uploadFile")});return E.jsx(Of,{data:i,total:a,loading:L,testId:"filesTable",refetch:n===Me.SUCCESS,columns:ce,getData:z,sorting:{selectedValue:c,options:rvn},pagination:{pageSize:bW,cursorPagination:!0},primaryAction:{label:Lwe,onClick:ae,testid:"filesPage_uploadFile_button",icon:E.jsx(m$,{})},filtersAction:{secondary:!0,onClick:_e=>{_e&&fe(_e)},filtersApplied:!Nn.isEmpty(d),testid:"filesPage_metadataFilters_button",icon:E.jsx(yj,{}),tooltipMessage:kwe},appliedMetaFilterValues:d,cleanedMetaFilterValues:A,locale:{emptyText:E.jsx(Fo,{image:Fo.PRESENTED_IMAGE_SIMPLE,description:me})},rowKey:"file_id",selectActions:[{type:"default",danger:!0,label:m===1?Pn(ggn,{total:m}):Pn(vgn,{total:m}),onClick:J,popconfirm:{title:NZe,cancelText:_R}},{type:"default",danger:!0,label:Tgn,onClick:te,popconfirm:{title:Ign,cancelText:_R}}],setTotalSelectedItems:_e=>g(_e)})};return E.jsxs("div",{"data-testid":"filesPage",className:"content-wrapper",children:[t&&t.content&&E.jsx(Ka,{message:t.content,type:t.type,banner:!0}),$&&!D()?he():ye(),oe(),v&&E.jsx(xrt,{multiple:!0,fileTypes:[cs.txt,cs.pdf,cs.docx,cs.pptx,cs.xlsx,cs.xml,cs.csv,cs.html,cs.md,cs.json],showUploadList:!1,onUpload:Zer,onCancel:()=>y(!1),afterUpload:()=>z(1,10,""),uploadDescriptionMessage:Ngn,showFileSizeLimitMessage:!0}),Ee(),o&&E.jsx(se.Suspense,{fallback:E.jsx($o,{}),children:E.jsx(str,{title:jgn,contents:o.contents,closeDocumentPreview:W,source:o.fileName,meta:H(o.fileId||""),onUpdateFileMeta:me=>M(o.fileId,me),loading:l===Me.IN_PROGRESS,isUpdatingFileMeta:f===Me.IN_PROGRESS})})]})},ctr="Projects",Vrt="labels created",utr="queries labeled",dtr="New project",ftr="Create a new project",ptr="Update project",htr="Project Name",mtr="Enter a project name",gtr="Description",vtr="Add a description to help you identify it later",Grt="Mandatory",ytr="Start Labeling",btr="This is where your labeling projects will appear",_tr="Create a project to get started.",Str="Add a Pipeline",Etr="Use the labeling pipeline template or choose an existing document retrieval pipeline to filter out potentially relevant documents.",Ctr="Editing the pipeline of an existing project may impact the quality of future labels. To edit the pipeline, undeploy, save your changes, and deploy it again.",wtr="Deploy the pipeline to start labeling. Remember to edit it, as needed, beforehand as you can't modify deployed pipelines.Removing or editing the pipeline later can impact the quality of new labels.",qrt="The pipeline is currently indexing documents. For complete results, wait until indexing finishes. Searching now will only show documents indexed so far.",Wrt="Add Labeling Guidelines",Yrt="Add guidelines the labelers should follow when working on the project.",xtr="Add Guidelines",Ttr="Edit Guidelines",Itr="Add Query Target",Atr="Set the number of queries you want to run. The more queries, the more labels you can add.",Rtr="Number of queries to be performed",Ntr="Files",Otr="This is the data used for your labeling project.",Ltr="Show metadata",Ptr="Results labeled",ktr="Flag to review",Mtr="Prev. Query",Dtr="Next. Query",$tr="Select a pipeline",Ftr="Use Template",Btr="Remove selected pipeline?",jtr="All files in your workspace",ztr="Details",Utr="Add",Joe="Edit",Htr="Upload files",Vtr="Remove from project",Gtr="Deploy",qtr="Undeploy",Wtr="Try Again",Ytr="settings",Ktr="The pipeline must be deployed to start the labeling process. Go to %settings% to deploy this pipeline.",S6e={SAVING:"Saving...",CHANGES_SAVED:"Changes saved"};var M1=(e=>(e.Edit="EDIT",e.Delete="DELETE",e.Export="EXPORT",e.Duplicate="DUPLICATE",e))(M1||{});const Krt=[{label:"Edit Name & Description",key:"EDIT"},{label:"Export Labels (.csv)",key:"EXPORT"},{label:"Duplicate",key:"DUPLICATE"},{label:"Delete",key:"DELETE",danger:!0}];var yS=(e=>(e.Edit="EDIT",e.Details="DETAILS",e.Remove="REMOVE",e))(yS||{});const E6e=[{label:"Add a Pipeline",key:"pipeline_id",mandatory:!0},{label:"Add Labeling Guidelines",key:"annotation_guideline",mandatory:!1},{label:"Add Query Target",key:"query_target",mandatory:!1},{label:"All files in your workspace",key:"files",mandatory:!0}],C6e=[{label:"Overview",key:gb.OVERVIEW},{label:"Settings",key:gb.SETTINGS}],Xtr="Mandatory steps not completed yet",Ztr="To start labeling, complete the mandatory tasks listed below.",Ng={title:"Delete project?",icon:c3,description:"Deleting this labeling project and its contents is irreversible. Are you sure you want to delete %projectName%.",okText:"Delete",okType:"danger"},Qtr="Labeling",Jtr=" Label each search result as Relevant or Not Relevant. If you're unsure, flag the result for review by another labeler.",enr=" View Guidelines",tnr="Guidelines |",nnr="Query Target",Xrt="Queries",rnr="%queriesPerformed% queries labeled",inr=" out of %queryTarget%",anr="Position",onr="Run queries and track your progress here.",snr="Query History",lnr="Label added",cnr="Label updated",unr=(e=Qi())=>rn.get(`/api/v2/workspaces/${e}/labeling_projects`),dnr=(e,t=Qi())=>rn.post(`/api/v2/workspaces/${t}/labeling_projects`,e),fnr=(e,t=Qi())=>rn.get(`/api/v2/workspaces/${t}/labeling_projects/${e}`),pnr=(e,t=Qi())=>rn.get(`/api/v2/workspaces/${t}/labeling_projects/${e}/statistics`),hnr=(e,t,n=Qi())=>rn.put(`/api/v2/workspaces/${n}/labeling_projects/${e}`,t),mnr=(e,t=Qi())=>rn.delete(`/api/v2/workspaces/${t}/labeling_projects/${e}`),gnr=(e,t,n=Qi())=>rn.post(`/api/v2/workspaces/${n}/labeling_projects/${e}/labels`,t),vnr=(e,t,n,r=Qi())=>rn.patch(`/api/v2/workspaces/${r}/labeling_projects/${e}/labels/${t}`,n),Zrt=(e,t,n=Qi())=>{const r={...t?.filter&&{filter:t.filter},...t?.limit&&{limit:t.limit},...t?.pageNumber&&{page_number:t.pageNumber},...t?.includeUnlabeled&&{include_unlabeled:t.includeUnlabeled}};return rn.get(`/api/v2/workspaces/${n}/labeling_projects/${e}/labels`,{params:r})},Tme=async(e,t,n=Qi())=>{const{data:{data:r,has_more:i}}=await Zrt(e,t,n);if(!i)return r;const a=t?.pageNumber?t.pageNumber+1:2,o={...t,pageNumber:a};return[...r,...await Tme(e,o,n)]},ynr=(e,t=Qi())=>rn.get(`/api/v2/workspaces/${t}/labeling_projects/${e}/export`,{responseType:"blob",headers:{Accept:gi.CSV}}),bnr={type:qKe},_nr=Ut(UKe,async(e,{rejectWithValue:t})=>{try{const{data:n}=await Cpe(e);return n}catch(n){return t(n)}}),Snr=Ut(HKe,async(e,{rejectWithValue:t})=>{try{const{data:n}=await Cpe(e);return n}catch(n){return t(n)}}),Ek=Ut(Cae,async(e,{rejectWithValue:t})=>{try{const{data:n}=await unr();return n}catch(n){return t(n)}}),ese=Ut(Q7,async(e,{rejectWithValue:t})=>{try{const{data:n}=await dnr(e);return G1.navigate(`/labeling/${n.project_id}`),n}catch(n){return t(n)}}),Qrt=Ut(wae,async(e,{rejectWithValue:t,dispatch:n})=>{try{const{data:r}=await fnr(e);return n(_nr(r.created_by)),r.last_edited_by&&n(Snr(r.last_edited_by)),r}catch(r){return t(r)}}),tse=Ut(zKe,async(e,{rejectWithValue:t})=>{try{const{data:n}=await pnr(e);return n}catch(n){return t(n)}}),Jrt=Ut(Mdn,async({projectId:e,projectName:t},{dispatch:n,rejectWithValue:r})=>{try{const i=await ynr(e);return S0(`${t}.csv`,i.data,gi.CSV),i.data}catch(i){return n(jn({content:Wn(i),type:yn.Error})),r(i)}}),eit=Ut(xae,async(e,{rejectWithValue:t,dispatch:n})=>{try{const{data:r}=await mnr(e);return n(jn({content:"Labeling project deleted successfully."})),r}catch(r){return t(r)}}),tit=Ut(J7,async({projectId:e,projectBody:t},{rejectWithValue:n})=>{try{const{data:r}=await hnr(e,t);return r}catch(r){return n(r)}}),w6e=Ut(VKe,async({relevance:e,projectId:t,query:n,queryId:r,result:i,rank:a},{rejectWithValue:o,dispatch:s})=>{const{result_id:l,score:c}=i,u={relevance:e,search_result_history_id:l,rank:a,score:c||0,document:i,query_id:r,query:n};try{const{data:{label_id:d}}=await gnr(t,u);return e&&s(jn({content:lnr,type:yn.Success})),{resultId:l,relevance:e,labelId:d}}catch(d){return s(jn({content:Wn(d),duration:mm.long,type:yn.Error})),o(d)}}),Enr=Ut(GKe,async({projectId:e,resultId:t,labelId:n,relevance:r},{rejectWithValue:i,dispatch:a})=>{const o={relevance:r};try{return await vnr(e,n,o),a(jn({content:cnr,type:yn.Success})),{resultId:t,relevance:r,labelId:n}}catch(s){return a(jn({content:Wn(s),duration:mm.long,type:yn.Error})),i(s)}}),Cnr=Ut(eM,async(e,{rejectWithValue:t})=>{const{projectId:n,...r}=e;try{const{data:i}=await Zrt(n,r);return i}catch(i){return t(i)}}),wnr=Ut(tM,async({projectId:e,filter:t,limit:n},{rejectWithValue:r})=>{try{return await Tme(e,{filter:t,limit:n,includeUnlabeled:!0})}catch(i){return r(i)}}),xnr=Ut(nM,async({projectId:e,filter:t,limit:n},{rejectWithValue:r})=>{const i={filter:t,limit:n,includeUnlabeled:!0};try{return await Tme(e,i)}catch(a){return r(a)}}),qp=e=>e.labelingStore,Tnr=It(qp,e=>e.projects),Inr=It(qp,e=>e.createProjectStatus),nit=It(qp,e=>e.project),Anr=It(qp,e=>e.projectStats),rit=It(qp,e=>e.projectCreator),Rnr=It(qp,e=>e.projectLastEditor),Ime=It(qp,e=>e.updateProjectStatus),Nnr=It(qp,e=>e.labeledResults),Onr=It(qp,e=>e.labels),Lnr=It(qp,e=>e.labelsStatus),Pnr=It(qp,e=>e.labelsAsSearchResult),knr=It(qp,e=>e.labelsAsSearchResultStatus),Mnr="_createUpdateProjectModal_8sdn7_13",Dnr="_createUpdateProjectModal_optionalLabel_8sdn7_25",x6e={createUpdateProjectModal:Mnr,createUpdateProjectModal_optionalLabel:Dnr},{Item:T6e}=Hr,{TextArea:$nr}=$r,iit=({open:e,loading:t,initialValues:n,onSubmit:r,onCancel:i})=>{const[a,o]=b.useState({name:n?.name||"",description:n?.description||""});b.useEffect(()=>{n&&o({name:n.name,description:n.description||""})},[n]);const s=(d,f)=>{o(p=>({...p,[d]:f}))},l=d=>{d||o({name:"",description:""})},c=()=>{const d={...a,id:n?.id};r(d)},u=()=>{const{name:d}=a;return!!d};return E.jsx(wi,{title:n?.id?ptr:ftr,okText:n?.id?MXe:Zdn,open:e,afterOpenChange:l,className:x6e.createUpdateProjectModal,centered:!0,onCancel:i,onOk:c,cancelButtonProps:{disabled:t},okButtonProps:{disabled:!u()||t,loading:t},children:E.jsxs(Hr,{layout:"vertical",children:[E.jsx(T6e,{label:htr,children:E.jsx($r,{value:a.name,onChange:d=>s("name",d.target.value),placeholder:mtr})}),E.jsx(T6e,{label:E.jsxs(E.Fragment,{children:[gtr,E.jsxs("span",{className:x6e.createProjectModal_optionalLabel,children:[" (",Epe,")"]})]}),children:E.jsx($nr,{rows:2,value:a.description,onChange:d=>s("description",d.target.value),placeholder:vtr,allowClear:!0})})]})})},Fnr="_card_pl3vl_25",Bnr="_projectCard_pl3vl_25",jnr="_projectCard_header_pl3vl_52",znr="_projectCard_body_pl3vl_58",Unr="_projectCard_body_labels_pl3vl_70",Hnr="_projectCard_body_queries_pl3vl_70",Vnr="_projectCard_body_labels_total_pl3vl_73",Gnr="_projectCard_body_queries_total_pl3vl_73",qnr="_success_pl3vl_76",Wnr="_active_pl3vl_79",Ynr="_clickLayer_pl3vl_83",ag={card:Fnr,projectCard:Bnr,projectCard_header:jnr,projectCard_body:znr,projectCard_body_labels:Unr,projectCard_body_queries:Hnr,projectCard_body_labels_total:Vnr,projectCard_body_queries_total:Gnr,success:qnr,active:Wnr,clickLayer:Ynr},Knr=({name:e,queryTarget:t,totalLabels:n,totalQueries:r,onClick:i,moreOptionsMenu:a})=>{const o=r>0&&r>=t;return E.jsxs("div",{className:ag.projectCard,children:[E.jsx("div",{className:ag.clickLayer,onClick:i,onKeyDown:i,tabIndex:0,role:"button"}),E.jsx("div",{className:ag.projectCard_header,children:E.jsx(Vo,{menu:a,placement:"bottomRight",trigger:["click"],children:E.jsx(ut,{size:"small",icon:E.jsx(Xb,{}),onClick:s=>s.preventDefault()})})}),E.jsxs("div",{className:ag.projectCard_body,children:[E.jsx("h5",{children:e}),E.jsxs("div",{className:ag.projectCard_body_labels,children:[E.jsx("span",{className:ag.projectCard_body_labels_total,children:n})," ",Vrt]}),E.jsxs("div",{className:ag.projectCard_body_queries,children:[E.jsx("span",{className:`${ag.projectCard_body_queries_total} ${t&&r&&(o?ag.success:ag.active)} 
            `,children:r})," ",utr,t>0&&` of ${t}`]}),t>0&&E.jsx(TC,{percent:r/t*100,status:o?"success":"normal",showInfo:o})]})]})},Xnr="_labelingPage_j9sjn_40",Znr="_card_j9sjn_57",Qnr="_labelingPage_container_j9sjn_68",Jnr="_labelingPage_header_j9sjn_72",err="_labelingPage_projectList_j9sjn_81",trr="_labelingPage_emptyProjectList_j9sjn_86",nrr="_emptyProjectList_j9sjn_95",rrr="_emptyProjectList_description_j9sjn_109",gy={"auth-content":"_auth-content_j9sjn_25","content-wrapper":"_content-wrapper_j9sjn_35","content-wrapper_padding":"_content-wrapper_padding_j9sjn_40",labelingPage:Xnr,card:Znr,labelingPage_container:Qnr,labelingPage_header:Jnr,labelingPage_projectList:err,labelingPage_emptyProjectList:trr,emptyProjectList:nrr,emptyProjectList_description:rrr},{confirm:irr}=wi,arr=()=>{const e=ir(),t=ys(),{data:n}=st(Tnr),r=st(Ime),i=st(Inr),[a,o]=b.useState(!1),[s,l]=b.useState(null),c=i===Me.IN_PROGRESS||r===Me.IN_PROGRESS;b.useEffect(()=>{e(Ek())},[]),b.useEffect(()=>{(i===Me.SUCCESS||r===Me.SUCCESS)&&(e(Ek()),o(!1))},[i,r]);const u=()=>{o(!0)},d=()=>{l(null),o(!1)},f=y=>{l(null),y.id?e(tit({projectId:y.id,projectBody:y})):e(ese(y))},p=y=>{t(`/labeling/${y}`)},h=async(y,_)=>{const{name:S,description:C,project_id:w}=_;switch(y){case M1.Edit:l({name:S,description:C,id:w}),o(!0);break;case M1.Export:e(Jrt({projectName:S,projectId:w}));break;case M1.Duplicate:{const x={..._,name:`(Copy) ${S}`};await e(ese(x)),e(Ek());break}case M1.Delete:irr({className:gy.deleteConfirmModal,title:Ng.title,icon:E.jsx(Ng.icon,{}),content:Pn(Ng.description,{projectName:E.jsx("strong",{children:S})}),onOk:async()=>{await e(eit(w)),e(Ek())},okType:Ng.okType,okText:Ng.okText});break}},m=()=>E.jsx(ut,{type:"primary",icon:E.jsx(Td,{}),onClick:u,children:dtr}),g=()=>E.jsx(Fo,{className:gy.emptyProjectList,description:E.jsxs("div",{className:gy.emptyProjectList_description,children:[E.jsx("h4",{children:btr}),E.jsx("span",{children:_tr})]}),children:m()}),v=()=>n.map(y=>{const{name:_,project_id:S,query_target:C,total_labels:w,labeled_queries:x}=y;return E.jsx(Knr,{name:_,queryTarget:C||0,totalLabels:w||0,totalQueries:x||0,onClick:()=>p(S),moreOptionsMenu:{items:Krt,onClick:({key:T})=>h(T,y)}},S)});return E.jsxs("div",{className:gy.labelingPage,children:[E.jsx(iit,{initialValues:s,open:a,loading:c,onCancel:d,onSubmit:f}),E.jsxs("div",{className:gy.labelingPage_container,children:[E.jsxs("div",{className:gy.labelingPage_header,children:[E.jsx("h4",{children:ctr}),n.length>0&&m()]}),n.length>0?E.jsx("div",{className:gy.labelingPage_projectList,children:v()}):E.jsx("div",{className:gy.labelingPage_emptyProjectList,children:g()})]})]})},orr="_list_1qu4q_13",srr="_info_1qu4q_33",lrr="_labelWrapper_1qu4q_37",crr="_label_1qu4q_37",urr="_alert_1qu4q_44",drr="_warning_1qu4q_48",frr="_success_1qu4q_51",N2={list:orr,info:srr,labelWrapper:lrr,label:crr,alert:urr,warning:drr,success:frr},prr=e=>{const t=ys(),{project:n,totalFiles:r,selectedPipeline:i,onChangeTab:a}=e,o=()=>{a(gb.SETTINGS)},s=()=>i&&j5(i.status)?yn.Success:yn.Warning,l=()=>i?i?.indexing?.pending_file_count>0?{message:qrt}:j5(i.status)?null:{message:Pn(Ktr,{settings:E.jsx(ut,{type:"link",onClick:o,children:Ytr})})}:null,c=()=>!i||j5(i.status)?null:{type:"link",label:Joe},u=({label:d,mandatory:f,status:p,cta:h,alert:m})=>E.jsxs("li",{children:[!p&&E.jsx(c3,{}),p===yn.Success&&E.jsx(pC,{className:N2.success}),p===yn.Warning&&E.jsx(c3,{className:N2.warning}),E.jsxs("span",{className:N2.labelWrapper,children:[E.jsx("div",{className:N2.info,children:f?Grt:Epe}),E.jsx("div",{className:N2.label,children:d}),!!m&&E.jsx(Ka,{className:N2.alert,showIcon:!1,type:"warning",message:m.message})]}),!h?.disabled&&E.jsx(ut,{type:h?.type||p===yn.Success?"link":"default",onClick:h?.function||o,children:h?.label||(p===yn.Success?Joe:Utr)})]});return E.jsx("div",{children:E.jsx("ul",{className:N2.list,children:E6e.map((d,f)=>{let p,h,m;if(n[d.key]&&(p=yn.Success),d.mandatory&&!n[d.key]&&(p=yn.Warning),d.key==="files"){const g=r>0;p=g?yn.Success:yn.Warning,h={label:Htr,disabled:g,function:()=>{t("/files")}}}return d.key==="pipeline_id"&&(p=s(),m=l(),h=c()),E.jsxs("div",{children:[u({label:d.label,mandatory:d.mandatory,status:p,cta:h,alert:m}),f!==E6e.length-1&&E.jsx(zi,{})]},d.key)})})})};var Ame={},ait={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(ait);var WU=ait.exports,oit={exports:{}};(function(e){var t=nhe.default;function n(i){if(typeof WeakMap!="function")return null;var a=new WeakMap,o=new WeakMap;return(n=function(l){return l?o:a})(i)}function r(i,a){if(!a&&i&&i.__esModule)return i;if(i===null||t(i)!="object"&&typeof i!="function")return{default:i};var o=n(a);if(o&&o.has(i))return o.get(i);var s={__proto__:null},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in i)if(c!=="default"&&{}.hasOwnProperty.call(i,c)){var u=l?Object.getOwnPropertyDescriptor(i,c):null;u&&(u.get||u.set)?Object.defineProperty(s,c,u):s[c]=i[c]}return s.default=i,o&&o.set(i,s),s}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(oit);var Rme=oit.exports,sit={exports:{}};(function(e){var t=rhe;function n(i,a){var o=Object.keys(i);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(i);a&&(s=s.filter(function(l){return Object.getOwnPropertyDescriptor(i,l).enumerable})),o.push.apply(o,s)}return o}function r(i){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?n(Object(o),!0).forEach(function(s){t(i,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(o)):n(Object(o)).forEach(function(s){Object.defineProperty(i,s,Object.getOwnPropertyDescriptor(o,s))})}return i}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(sit);var Nme=sit.exports,ld={};const lit=jle(Q0t);var Ome={},hrr=Rme.default;Object.defineProperty(Ome,"__esModule",{value:!0});Ome.default=grr;var mrr=hrr(b);function grr(e,t,n){var r=mrr.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var cit=WU.default;Object.defineProperty(ld,"__esModule",{value:!0});ld.useComposeRef=ld.supportRef=ld.supportNodeRef=ld.getNodeRef=ld.fillRef=ld.composeRef=void 0;var vrr=cit(lit),uit=b,UM=tE,yrr=cit(Ome),brr=ld.fillRef=function(t,n){typeof t=="function"?t(n):(0,vrr.default)(t)==="object"&&t&&"current"in t&&(t.current=n)},_rr=ld.composeRef=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n.filter(Boolean);return i.length<=1?i[0]:function(a){n.forEach(function(o){brr(o,a)})}};ld.useComposeRef=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(0,yrr.default)(function(){return _rr.apply(void 0,n)},n,function(i,a){return i.length!==a.length||i.every(function(o,s){return o!==a[s]})})};var Srr=ld.supportRef=function(t){var n,r,i=(0,UM.isMemo)(t)?t.type.type:t.type;return!(typeof i=="function"&&!((n=i.prototype)!==null&&n!==void 0&&n.render)&&i.$$typeof!==UM.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==UM.ForwardRef)};function nse(e){return(0,uit.isValidElement)(e)&&!(0,UM.isFragment)(e)}ld.supportNodeRef=function(t){return nse(t)&&Srr(t)};ld.getNodeRef=Number(uit.version.split(".")[0])>=19?function(e){return nse(e)?e.props.ref:null}:function(e){return nse(e)?e.ref:null};var y8={};Object.defineProperty(y8,"__esModule",{value:!0});y8.default=void 0;var Err=b,Crr=(0,Err.createContext)({});y8.default=Crr;var Nd={};const wrr=jle(yyt);var ZT={},Lme={};Object.defineProperty(Lme,"__esModule",{value:!0});Lme.default=xrr;function xrr(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var Pme={};Object.defineProperty(Pme,"__esModule",{value:!0});Pme.default=Trr;function Trr(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var kme=WU.default;Object.defineProperty(ZT,"__esModule",{value:!0});ZT.clearContainerCache=Prr;ZT.injectCSS=Dme;ZT.removeCSS=Orr;ZT.updateCSS=krr;var I6e=kme(Nme),Irr=kme(Lme),Arr=kme(Pme),A6e="data-rc-order",R6e="data-rc-priority",Rrr="rc-util-key",HF=new Map;function dit(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):Rrr}function YU(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function Nrr(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Mme(e){return Array.from((HF.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Dme(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(0,Irr.default)())return null;var n=t.csp,r=t.prepend,i=t.priority,a=i===void 0?0:i,o=Nrr(r),s=o==="prependQueue",l=document.createElement("style");l.setAttribute(A6e,o),s&&a&&l.setAttribute(R6e,"".concat(a)),n!=null&&n.nonce&&(l.nonce=n?.nonce),l.innerHTML=e;var c=YU(t),u=c.firstChild;if(r){if(s){var d=(t.styles||Mme(c)).filter(function(f){if(!["prepend","prependQueue"].includes(f.getAttribute(A6e)))return!1;var p=Number(f.getAttribute(R6e)||0);return a>=p});if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function fit(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=YU(t);return(t.styles||Mme(n)).find(function(r){return r.getAttribute(dit(t))===e})}function Orr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=fit(e,t);if(n){var r=YU(t);r.removeChild(n)}}function Lrr(e,t){var n=HF.get(e);if(!n||!(0,Arr.default)(document,n)){var r=Dme("",t),i=r.parentNode;HF.set(e,i),e.removeChild(r)}}function Prr(){HF.clear()}function krr(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=YU(n),i=Mme(r),a=(0,I6e.default)((0,I6e.default)({},n),{},{styles:i});Lrr(r,a);var o=fit(t,a);if(o){var s,l;if((s=a.csp)!==null&&s!==void 0&&s.nonce&&o.nonce!==((l=a.csp)===null||l===void 0?void 0:l.nonce)){var c;o.nonce=(c=a.csp)===null||c===void 0?void 0:c.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}var u=Dme(e,a);return u.setAttribute(dit(a),t),u}var KU={};Object.defineProperty(KU,"__esModule",{value:!0});KU.getShadowRoot=Mrr;KU.inShadow=hit;function pit(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function hit(e){return pit(e)instanceof ShadowRoot}function Mrr(e){return hit(e)?pit(e):null}var Wp={};Object.defineProperty(Wp,"__esModule",{value:!0});Wp.call=$me;Wp.default=void 0;Wp.note=git;Wp.noteOnce=yit;Wp.preMessage=void 0;Wp.resetWarned=vit;Wp.warning=mit;Wp.warningOnce=b8;var rse={},Drr=Wp.preMessage=function(t){};function mit(e,t){}function git(e,t){}function vit(){rse={}}function $me(e,t,n){!t&&!rse[n]&&(e(!1,n),rse[n]=!0)}function b8(e,t){$me(mit,e,t)}function yit(e,t){$me(git,e,t)}b8.preMessage=Drr;b8.resetWarned=vit;b8.noteOnce=yit;Wp.default=b8;var $rr=Rme.default,XU=WU.default;Object.defineProperty(Nd,"__esModule",{value:!0});Nd.generate=ase;Nd.getSecondaryColor=qrr;Nd.iconStyles=void 0;Nd.isIconDefinition=Grr;Nd.normalizeAttrs=ise;Nd.normalizeTwoToneColors=Wrr;Nd.useInsertStyles=Nd.svgBaseProps=void 0;Nd.warning=Vrr;var UJ=XU(Nme),N6e=XU(lit),Frr=wrr,Brr=ZT,jrr=KU,zrr=XU(Wp),VF=$rr(b),Urr=XU(y8);function Hrr(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function Vrr(e,t){(0,zrr.default)(e,"[@ant-design/icons] ".concat(t))}function Grr(e){return(0,N6e.default)(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&((0,N6e.default)(e.icon)==="object"||typeof e.icon=="function")}function ise(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[Hrr(n)]=r}return t},{})}function ase(e,t,n){return n?VF.default.createElement(e.tag,(0,UJ.default)((0,UJ.default)({key:t},ise(e.attrs)),n),(e.children||[]).map(function(r,i){return ase(r,"".concat(t,"-").concat(e.tag,"-").concat(i))})):VF.default.createElement(e.tag,(0,UJ.default)({key:t},ise(e.attrs)),(e.children||[]).map(function(r,i){return ase(r,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function qrr(e){return(0,Frr.generate)(e)[0]}function Wrr(e){return e?Array.isArray(e)?e:[e]:[]}Nd.svgBaseProps={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"};var Yrr=Nd.iconStyles=`
.anticon {
  display: inline-flex;
  align-items: center;
  color: inherit;
  font-style: normal;
  line-height: 0;
  text-align: center;
  text-transform: none;
  vertical-align: -0.125em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.anticon > * {
  line-height: 1;
}

.anticon svg {
  display: inline-block;
}

.anticon::before {
  display: none;
}

.anticon .anticon-icon {
  display: block;
}

.anticon[tabindex] {
  cursor: pointer;
}

.anticon-spin::before,
.anticon-spin {
  display: inline-block;
  -webkit-animation: loadingCircle 1s infinite linear;
  animation: loadingCircle 1s infinite linear;
}

@-webkit-keyframes loadingCircle {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes loadingCircle {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
`;Nd.useInsertStyles=function(t){var n=(0,VF.useContext)(Urr.default),r=n.csp,i=n.prefixCls,a=Yrr;i&&(a=a.replace(/anticon/g,i)),(0,VF.useEffect)(function(){var o=t.current,s=(0,jrr.getShadowRoot)(o);(0,Brr.updateCSS)(a,"@ant-design-icons",{prepend:!0,csp:r,attachTo:s})},[])};var QT=WU.default,Krr=Rme.default;Object.defineProperty(Ame,"__esModule",{value:!0});var bit=Ame.default=void 0,O6e=QT(yJe),L6e=QT(Nme),P6e=QT(rhe),Xrr=QT(dJe),i1=Krr(b),k6e=QT(YMe),Zrr=ld,Qrr=QT(y8),Ck=Nd,Jrr=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],_it=i1.forwardRef(function(e,t){var n=e.className,r=e.component,i=e.viewBox,a=e.spin,o=e.rotate,s=e.tabIndex,l=e.onClick,c=e.children,u=(0,Xrr.default)(e,Jrr),d=i1.useRef(),f=(0,Zrr.useComposeRef)(d,t);(0,Ck.warning)(!!(r||c),"Should have `component` prop or `children`."),(0,Ck.useInsertStyles)(d);var p=i1.useContext(Qrr.default),h=p.prefixCls,m=h===void 0?"anticon":h,g=p.rootClassName,v=(0,k6e.default)(g,m,(0,P6e.default)({},"".concat(m,"-spin"),!!a&&!!r),n),y=(0,k6e.default)((0,P6e.default)({},"".concat(m,"-spin"),!!a)),_=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,S=(0,L6e.default)((0,L6e.default)({},Ck.svgBaseProps),{},{className:y,style:_,viewBox:i});i||delete S.viewBox;var C=function(){return r?i1.createElement(r,S,c):c?((0,Ck.warning)(!!i||i1.Children.count(c)===1&&i1.isValidElement(c)&&i1.Children.only(c).type==="use","Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),i1.createElement("svg",(0,O6e.default)({},S,{viewBox:i}),c)):null},w=s;return w===void 0&&l&&(w=-1),i1.createElement("span",(0,O6e.default)({role:"img"},u,{ref:f,tabIndex:w,onClick:l,className:v}),C())});_it.displayName="AntdIcon";bit=Ame.default=_it;const eir=e=>b.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.75 13.7499L1.75 2.24992C1.75 1.97336 1.97344 1.74992 2.25 1.74992L7.875 1.74992C7.94375 1.74992 8 1.80617 8 1.87492L8 2.74992C8 2.81867 7.94375 2.87492 7.875 2.87492L2.875 2.87492L2.875 13.1249L13.125 13.1249L13.125 8.12492C13.125 8.05617 13.1812 7.99992 13.25 7.99992L14.125 7.99992C14.1937 7.99992 14.25 8.05617 14.25 8.12492L14.25 13.7499C14.25 14.0265 14.0266 14.2499 13.75 14.2499L2.25 14.2499C1.97344 14.2499 1.75 14.0265 1.75 13.7499ZM13.45 5.02324L12.6344 4.20762L8.62972 8.20918C8.58128 8.25762 8.5016 8.25762 8.45316 8.20918L7.79066 7.54668C7.74222 7.49824 7.74222 7.41855 7.79066 7.37012L11.7938 3.36699L10.975 2.54824C10.9016 2.4748 10.9453 2.34824 11.0485 2.33574L13.8516 2.00762C13.9328 1.99824 14 2.06699 13.9907 2.14668L13.6625 4.9498C13.6597 4.97305 13.6503 4.99503 13.6356 5.01324C13.6209 5.03145 13.6013 5.04517 13.5792 5.05282C13.5571 5.06047 13.5332 5.06175 13.5104 5.05652C13.4875 5.05129 13.4666 5.03976 13.45 5.02324Z"})),tir=e=>b.createElement("svg",{width:28,height:22,viewBox:"0 0 28 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("path",{d:"M27 0.0311901H19.85C18.3156 0.0311901 16.8156 0.471815 15.525 1.30306L14 2.28119L12.475 1.30306C11.1857 0.471975 9.68398 0.0303698 8.15 0.0311901H1C0.446875 0.0311901 0 0.478065 0 1.03119V18.7812C0 19.3343 0.446875 19.7812 1 19.7812H8.15C9.68437 19.7812 11.1844 20.2218 12.475 21.0531L13.8625 21.9468C13.9031 21.9718 13.95 21.9874 13.9969 21.9874C14.0437 21.9874 14.0906 21.9749 14.1313 21.9468L15.5187 21.0531C16.8125 20.2218 18.3156 19.7812 19.85 19.7812H27C27.5531 19.7812 28 19.3343 28 18.7812V1.03119C28 0.478065 27.5531 0.0311901 27 0.0311901ZM8.15 17.5312H2.25V2.28119H8.15C9.25625 2.28119 10.3312 2.59682 11.2594 3.19369L12.7844 4.17181L13 4.31244V18.7499C11.5125 17.9499 9.85 17.5312 8.15 17.5312ZM25.75 17.5312H19.85C18.15 17.5312 16.4875 17.9499 15 18.7499V4.31244L15.2156 4.17181L16.7406 3.19369C17.6688 2.59682 18.7437 2.28119 19.85 2.28119H25.75V17.5312ZM10.4031 6.28119H4.59688C4.475 6.28119 4.375 6.38744 4.375 6.51556V7.92181C4.375 8.04994 4.475 8.15619 4.59688 8.15619H10.4C10.5219 8.15619 10.6219 8.04994 10.6219 7.92181V6.51556C10.625 6.38744 10.525 6.28119 10.4031 6.28119ZM17.375 6.51556V7.92181C17.375 8.04994 17.475 8.15619 17.5969 8.15619H23.4C23.5219 8.15619 23.6219 8.04994 23.6219 7.92181V6.51556C23.6219 6.38744 23.5219 6.28119 23.4 6.28119H17.5969C17.475 6.28119 17.375 6.38744 17.375 6.51556ZM10.4031 10.6562H4.59688C4.475 10.6562 4.375 10.7624 4.375 10.8906V12.2968C4.375 12.4249 4.475 12.5312 4.59688 12.5312H10.4C10.5219 12.5312 10.6219 12.4249 10.6219 12.2968V10.8906C10.625 10.7624 10.525 10.6562 10.4031 10.6562ZM23.4031 10.6562H17.5969C17.475 10.6562 17.375 10.7624 17.375 10.8906V12.2968C17.375 12.4249 17.475 12.5312 17.5969 12.5312H23.4C23.5219 12.5312 23.6219 12.4249 23.6219 12.2968V10.8906C23.625 10.7624 23.525 10.6562 23.4031 10.6562Z",fill:"#3A61C2"})),nir="_textEditor_1hrzi_13",rir="_textEditorResizable_1hrzi_23",M6e={textEditor:nir,textEditorResizable:rir},Sit=b.forwardRef(({disabled:e=!1,onTextChangeByUser:t,resizable:n=!0},r)=>{const i=b.useRef(),a=b.useRef(null),o=()=>(i.current?.getContents().ops||[]).length!==1?!1:i.current?.getText().trim().length===0;return b.useImperativeHandle(r,()=>({getHTMLContent(){return o()?"":i.current.root.innerHTML},setHTMLContent(s){const l=Yhe.sanitize(s);i.current.clipboard.dangerouslyPasteHTML(l)}}),[]),b.useEffect(()=>{i.current||(i.current=new J$(a.current,{modules:{toolbar:!0},theme:"snow",bounds:a.current}))},[]),b.useEffect(()=>!t||!i.current?()=>{}:(i.current.on("text-change",(s,l,c)=>{t&&c==="user"&&t()}),()=>{i.current.off("text-change",t)}),[t]),b.useEffect(()=>{i.current&&i.current.enable(!e)},[e]),E.jsx("div",{className:`${M6e.textEditor} ${n?M6e.textEditorResizable:""}`,ref:a})}),iir="_textEditorViewer_iu2uu_13",air={textEditorViewer:iir},oir=({content:e})=>{const t=b.useRef(),n=b.useRef(null);return b.useEffect(()=>{if(t.current)return;t.current=new J$(n.current,{modules:{toolbar:!1},readOnly:!0,theme:"snow"});const r=Yhe.sanitize(e);t.current.clipboard.dangerouslyPasteHTML(r)},[]),E.jsx("div",{className:air.textEditorViewer,ref:n})},sir="_labelingGuidelineModal_1d9s4_13",lir="_labelingGuidelineModal_body_1d9s4_30",cir="_labelingGuidelineModal_footer_1d9s4_36",uir="_updateInfo_1d9s4_45",dir="_updateInfo_icon_loading_1d9s4_50",fir="_updateInfo_icon_success_1d9s4_53",pir="_updateInfo_label_1d9s4_56",hir="_guidelinesContent_1d9s4_61",mir="_guidelinesInfo_1d9s4_67",gir="_guidelinesInfo_user_1d9s4_75",vir="_guidelinesInfo_date_1d9s4_78",yir="_guidelinesInfo_icon_1d9s4_82",bh={labelingGuidelineModal:sir,labelingGuidelineModal_body:lir,labelingGuidelineModal_footer:cir,updateInfo:uir,updateInfo_icon_loading:dir,updateInfo_icon_success:fir,updateInfo_label:pir,guidelinesContent:hir,guidelinesInfo:mir,guidelinesInfo_user:gir,guidelinesInfo_date:vir,guidelinesInfo_icon:yir},Eit=({open:e,initValue:t,project:n,readOnly:r,onChange:i,onCancel:a,onDone:o})=>{const s=b.useRef(null),l=st(Ime),c=st(rit),u=st(Rnr),[d,f]=b.useState(null);b.useEffect(()=>{t&&e&&s.current?.setHTMLContent(t)},[e]),so(()=>{if(l===Me.IN_PROGRESS){f({label:S6e.SAVING,icon:E.jsx(J2t,{className:bh.updateInfo_icon_loading,spin:!0})});return}l===Me.SUCCESS&&f({label:S6e.CHANGES_SAVED,icon:E.jsx(gj,{className:bh.updateInfo_icon_success})})},[l]);const p=g=>{g||f(null)},h=()=>E.jsxs("div",{className:bh.labelingGuidelineModal_footer,children:[!r&&d&&E.jsxs("div",{className:bh.updateInfo,children:[d.icon,E.jsx("span",{className:bh.updateInfo_label,children:d.label})]}),E.jsx(ut,{type:"primary",onClick:o,children:YO})]}),m=()=>{if(!n)return E.jsx(Ka,{message:Yrt,banner:!0,type:"info",showIcon:!1});const{last_edited_by:g,last_edited_at:v}=n;return E.jsxs("div",{className:bh.guidelinesInfo,children:[E.jsx(tir,{className:bh.guidelinesInfo_icon}),E.jsxs("div",{children:[E.jsx("div",{className:bh.guidelinesInfo_user,children:XN(g?u:c)}),E.jsxs("div",{className:bh.guidelinesInfo_date,children:[tnr," ",Cr(v).format("dddd D MMMM YYYY")]})]})]})};return E.jsxs(wi,{title:Wrt,width:"78%",open:e,className:bh.labelingGuidelineModal,centered:!0,onCancel:a,afterOpenChange:p,footer:h(),children:[m(),E.jsx("div",{className:bh.labelingGuidelineModal_body,children:r&&n?E.jsx(oir,{content:n.annotation_guideline||""}):E.jsx(Sit,{ref:s,onTextChangeByUser:()=>i&&i(s.current.getHTMLContent()),resizable:!1})})]})},bir="_namePipelineModal_description_1pb6r_13",_ir="_namePipelineModal_1pb6r_13",Sir="_errorText_1pb6r_30",Eir="_deepsetCloudVersion_1pb6r_34",Cir="_deepsetCloudVersion_title_1pb6r_40",wir="_deepsetCloudVersion_optionTitle_1pb6r_43",xir="_deepsetCloudVersion_optionTag_1pb6r_46",O2={namePipelineModal_description:bir,namePipelineModal:_ir,errorText:Sir,deepsetCloudVersion:Eir,deepsetCloudVersion_title:Cir,deepsetCloudVersion_optionTitle:wir,deepsetCloudVersion_optionTag:xir},{Item:Tir}=Hr,_8=e=>{const{openModal:t,closeModal:n,modalTitle:r,okButtonText:i,description:a,pipelineMessage:o,resetMessage:s,pipelineName:l,defaultPipelineNameValue:c,renamePipeline:u,renamePipelineNameStatus:d,resetRenamePipelineNameStatus:f,onAfterPipelineCreated:p,onAfterPipelineRenamed:h,pipelineCreateUpdatePipelineStatus:m,createPipeline:g,createPipelineFromEmptyYaml:v,okButtonIcon:y,showDeepsetCloudVersionOptions:_}=e,[S,C]=b.useState(c||""),[w,x]=b.useState(null),[T,A]=b.useState(bwe[0].value),I=b.useRef(null),R=d&&d===Me.ERROR,N=d&&d===Me.SUCCESS,P=m===Me.ERROR,L=m===Me.IN_PROGRESS,$=()=>{if(!S){x(null);return}if(!W1(S)){x(O_.INVALID_CHARACTERS);return}x(null)},D=()=>{S===""&&x(e5.EMPTY_PIPELINE_NAME)};b.useEffect(()=>{s()},[]),b.useEffect(()=>{S&&m===Me.SUCCESS&&p&&p(S)},[m]),b.useEffect(()=>{f&&f(),l&&C(l)},[l,t]),so(()=>{c&&C(c)},[c]),b.useEffect(()=>{d&&R&&f&&f(),o.status!==Qs.OK&&s(),$()},[S]),b.useEffect(()=>{d&&N&&(h?h():n())},[d]);const z=()=>{if(!W1(S)){D();return}l?u&&u({pipelineName:l,newPipelineName:S}):g?g({code:Ivn,pipelineName:S,deepsetCloudVersion:_?T:void 0}):v&&(_?v(S,T):v(S))},U=k=>{k?I.current?.focus({cursor:"end"}):(C(""),s())},H=k=>{A(k.target.value)},M=()=>!!(l&&l===S||L),B=()=>R||P?o.content:w||a||"";return E.jsx(wi,{title:r,open:t,onCancel:()=>n(),className:O2.namePipelineModal,afterOpenChange:U,okText:i,okButtonProps:{icon:y,disabled:M(),onClick:()=>z(),loading:L,"data-testid":"createPipeline_okButton"},cancelButtonProps:{disabled:L},centered:!0,maskClosable:!1,children:E.jsx(Hr,{layout:"vertical",children:E.jsxs(Tir,{label:cZe,children:[E.jsx($r,{value:S,onChange:k=>C(k.target.value),placeholder:Nhn,ref:I,status:w||R||P?Me.ERROR:"","data-testid":"pipelineName_textInput"}),E.jsx("div",{className:`${O2.namePipelineModal_description} ${w||R||P?O2.errorText:""}`,children:B()}),_&&E.jsxs("div",{className:O2.deepsetCloudVersion,children:[E.jsx("div",{className:O2.deepsetCloudVersion_title,children:Phn}),E.jsx(dc.Group,{onChange:H,value:T,children:E.jsx(nv,{direction:"vertical",children:bwe.map(k=>E.jsxs(dc,{value:k.value,children:[E.jsxs("div",{children:[E.jsx("span",{className:O2.deepsetCloudVersion_optionTitle,children:k.title}),k.tagLabel&&E.jsx("span",{className:O2.deepsetCloudVersion_optionTag,children:E.jsx(Si,{bordered:!1,children:k.tagLabel})})]}),E.jsx("div",{children:k.description})]},k.value))})}),E.jsx("div",{children:Pn(Mhn,{pipelines:E.jsx("a",{href:uZe,target:"_blank",rel:"noreferrer",children:khn})})})]})]})})})},Iir="_alert_1ncpi_13",Air="_projectConfiguration_inputContainer_1ncpi_20",Rir="_projectConfiguration_inputContainer_header_1ncpi_25",Nir="_projectConfiguration_1ncpi_20",Oir="_selectedPipelineWrapper_1ncpi_41",Lir="_selectedPipelineCard_1ncpi_47",Pir="_selectedPipelineCard_name_1ncpi_55",kir="_selectedPipelineCard_date_1ncpi_59",Mir="_selectedPipelineCard_status_1ncpi_62",Dir="_selectedPipelineCard_action_1ncpi_65",$ir="_labelingGuidelineButton_1ncpi_69",Fir="_labelingTarget_form_1ncpi_73",Bir="_filesCard_1ncpi_86",jir="_filesCard_value_1ncpi_98",zir="_queryTarget_1ncpi_110",Uir="_queryTarget_customInput_1ncpi_115",ho={alert:Iir,projectConfiguration_inputContainer:Air,projectConfiguration_inputContainer_header:Rir,projectConfiguration:Nir,selectedPipelineWrapper:Oir,selectedPipelineCard:Lir,selectedPipelineCard_name:Pir,selectedPipelineCard_date:kir,selectedPipelineCard_status:Mir,selectedPipelineCard_action:Dir,labelingGuidelineButton:$ir,labelingTarget_form:Fir,filesCard:Bir,filesCard_value:jir,queryTarget:zir,queryTarget_customInput:Uir},{Item:Hir}=Hr,HJ="TEMPLATE",Vir=({projectConfigurationFormValues:e,totalFiles:t,selectedPipeline:n,onSelectPipeline:r,onProjectConfigurationLocalStateChange:i})=>{const a=ir(),{data:o}=st(A=>z_(A,null)),s=st(l8),l=st(YT),c=st(c8),[u,d]=b.useState(""),[f,p]=b.useState(!1),[h,m]=b.useState(!1),g=[50,100,200],v=()=>{const A=o.filter(({output_type:R})=>R===xd.DOCUMENT).map(({pipeline_id:R,name:N})=>({id:R,value:R,label:N}));return[{id:HJ,value:HJ,label:Ftr},...A]},y=async A=>{a(AU(A))},_=async A=>{a(RU(A))},S=()=>{i("pipelineId",null)},C=async A=>{const{payload:I}=await a(Yg({pipelineName:A}));r(I),i("pipelineId",I.pipeline_id),p(!1),window.open(`/pipelines/${A}/studio`,"_blank")},w=()=>{if(!n)return{label:"",action:()=>{}};const{desired_status:A,status:I}=n;let R={label:Gtr,action:y,loading:ts(I)};return A===qs.DEPLOYED&&I===qn.DEPLOYMENT_FAILED&&(R={...R,label:Wtr}),ts(I)&&(R={...R,label:gm,action:I===qn.DEPLOYMENT_IN_PROGRESS||I===qn.DEPLOYMENT_SCHEDULED?_:y,loading:!1}),I===qn.DEPLOYED&&(R={...R,label:qtr,action:_}),R},x=async(A,I)=>{A===yS.Details&&window.open(`/pipelines/${I}`,"_blank"),A===yS.Edit&&window.open(`/pipelines/designer/${I}`,"_blank"),A===yS.Remove&&d(I)},T=()=>{const A=[{label:Joe,key:yS.Edit},{label:ztr,key:yS.Details},{label:Vtr,key:yS.Remove,danger:!0}];let I={description:Ctr,type:"info"};return n?.status!==qn.DEPLOYED?I={description:wtr,type:"warning"}:n?.indexing?.pending_file_count>0&&(I={description:qrt,type:"warning"}),E.jsxs(E.Fragment,{children:[!n&&E.jsx(Zi,{showSearch:!0,value:e.pipelineId,onChange:R=>{if(R===HJ){p(!0);return}i("pipelineId",R)},options:v(),placeholder:$tr}),n&&E.jsxs("div",{className:ho.selectedPipelineWrapper,children:[E.jsx(Ka,{className:ho.alert,showIcon:!0,type:I.type,description:I.description}),E.jsxs("div",{className:ho.selectedPipelineCard,children:[E.jsx("h6",{className:ho.selectedPipelineCard_name,children:n.name}),E.jsx("div",{className:ho.selectedPipelineCard_date,children:new Date(n.created_at).toLocaleString()}),E.jsx("div",{className:ho.selectedPipelineCard_status,children:E.jsx(DC,{pipeline:n,indexingData:c,getIndexingDetails:R=>a(eC(R))})}),E.jsx("div",{className:ho.selectedPipelineCard_action,children:E.jsx(v8,{menu:{items:A,onClick:({key:R})=>x(R,n.name)},item:n.name,primaryButton:w(),onDelete:S,itemToDelete:u,onCancelDelete:()=>d(""),deleteConfirmationMessage:Btr,cancelButtonLabel:gm})})]})]})]})};return E.jsxs("div",{className:ho.projectConfiguration,children:[E.jsx(_8,{openModal:f,closeModal:()=>p(!1),modalTitle:Ahn,okButtonText:Rhn,pipelineMessage:s,resetMessage:()=>a(VT),onAfterPipelineCreated:C,pipelineCreateUpdatePipelineStatus:l,createPipeline:A=>a(s8(A)),okButtonIcon:E.jsx(bit,{component:eir})}),E.jsx(Eit,{initValue:e.labelingGuideline,open:h,onCancel:()=>m(!1),onChange:A=>i("labelingGuideline",A),onDone:()=>m(!1)}),E.jsxs("div",{className:ho.projectConfiguration_inputContainer,children:[E.jsxs("div",{className:ho.projectConfiguration_inputContainer_header,children:[E.jsxs("h5",{children:[Str," ",E.jsxs("span",{children:["(",Grt,")"]})]}),E.jsx("div",{children:Etr})]}),E.jsx("div",{className:ho.projectConfiguration_inputContainer_body,children:T()})]}),E.jsx(zi,{}),E.jsxs("div",{className:ho.projectConfiguration_inputContainer,children:[E.jsxs("div",{className:ho.projectConfiguration_inputContainer_header,children:[E.jsx("h5",{children:Wrt}),E.jsx("div",{children:Yrt})]}),E.jsx("div",{className:ho.projectConfiguration_inputContainer_body,children:E.jsx(ut,{className:ho.labelingGuidelineButton,onClick:()=>m(!0),type:e.labelingGuideline?"link":"default",children:e.labelingGuideline?Ttr:xtr})})]}),E.jsx(zi,{}),E.jsxs("div",{className:ho.projectConfiguration_inputContainer,children:[E.jsxs("div",{className:ho.projectConfiguration_inputContainer_header,children:[E.jsx("h5",{children:Itr}),E.jsx("div",{children:Atr})]}),E.jsx("div",{className:ho.projectConfiguration_inputContainer_body,children:E.jsx(Hr,{layout:"vertical",className:ho.labelingTarget_form,children:E.jsxs(Hir,{className:ho.queryTarget,label:Rtr,children:[g.map(A=>E.jsx(ut,{onClick:()=>i("queryTarget",A),children:A},A)),E.jsx($r,{type:"number",className:ho.queryTarget_customInput,value:e.queryTarget||0,onChange:A=>i("queryTarget",A.target.value)})]})})})]}),E.jsx(zi,{}),E.jsxs("div",{className:ho.projectConfiguration_inputContainer,children:[E.jsxs("div",{className:ho.projectConfiguration_inputContainer_header,children:[E.jsx("h5",{children:Ntr}),E.jsx("div",{children:Otr})]}),E.jsx("div",{className:ho.projectConfiguration_inputContainer_body,children:E.jsxs("div",{className:ho.filesCard,children:[E.jsx("div",{className:ho.filesCard_title,children:jtr}),E.jsxs("div",{className:ho.filesCard_value,children:[E.jsx(fDe,{})," ",E.jsx("h3",{children:t})]})]})})]})]})},Gir="_labelingDetailsPage_1uhpt_35",qir="_card_1uhpt_57",Wir="_labelingDetailsPage_container_1uhpt_68",Yir="_labelingDetailsPage_headerSection_1uhpt_73",Kir="_titleSection_1uhpt_77",Xir="_titleSection_wrapper_1uhpt_84",Zir="_titleSection_date_1uhpt_92",Qir="_titleSection_actions_1uhpt_95",Jir="_createdBy_1uhpt_100",ear="_description_1uhpt_104",tar="_alert_1uhpt_109",L2={"auth-content":"_auth-content_1uhpt_25","content-wrapper":"_content-wrapper_1uhpt_35",labelingDetailsPage:Gir,"content-wrapper_padding":"_content-wrapper_padding_1uhpt_40",card:qir,labelingDetailsPage_container:Wir,labelingDetailsPage_headerSection:Yir,titleSection:Kir,titleSection_wrapper:Xir,titleSection_date:Zir,titleSection_actions:Qir,createdBy:Jir,description:ear,alert:tar},nar=750,{confirm:rar}=wi,iar=()=>{const e=ir(),t=ys(),{routeParams:n,setRouteName:r}=jT(),{projectId:i}=n,a=st(nit),o=st(rit),s=st(Ime),{total:l}=st(Ghe),{data:c}=st(U=>z_(U,null)),u=st(WT),[d,f]=b.useState(null),p=st(YT),[h,m]=b.useState(!1),[g,v]=b.useState(!1),[y,_]=b.useState({name:"",pipelineId:null,labelingGuideline:null,queryTarget:null}),[S,C]=b.useState(C6e[0].key),w=()=>{e(Xhe({currentPage:1,pageSize:1,searchValue:""}))},x=()=>{e(j_({currentPage:1,pageSize:100,searchValue:""}))};b.useEffect(()=>{i&&(e(Qrt(i)),w())},[i,S]),b.useEffect(()=>(x(),()=>{e(Dhe)}),[]),b.useEffect(()=>{_({name:a.name,description:a.description,pipelineId:a.pipeline_id,labelingGuideline:a.annotation_guideline,queryTarget:a.query_target}),a.name&&r(a.name)},[a]),b.useEffect(()=>{p===Me.SUCCESS&&x()},[p]),b.useEffect(()=>{if(y.pipelineId===u.pipeline_id){f(u);return}f(c.find(({pipeline_id:U})=>U===y.pipelineId)??null)},[y.pipelineId,c]),so(()=>{d?.name===u.name&&f(u)},[u]),b.useEffect(()=>{if(!d)return()=>{};const{status:U,name:H,indexing:M}=d;(U!==qn.DEPLOYED||S===gb.SETTINGS)&&(e(B5({pipelineName:H})),e(Ctt(H))),S!==gb.SETTINGS&&(e(L3()),e(FM()));const{pending_file_count:B,failed_file_count:k}=M;return B===0&&k===0&&e(FM()),()=>{e(L3()),e(FM())}},[d,S]),b.useEffect(()=>{if(l>0&&d&&d?.status===qn.DEPLOYED){v(!0);return}v(!1)},[l,d]);const T=()=>({name:y.name,description:y.description,pipeline_id:y.pipelineId,query_target:y.queryTarget,annotation_guideline:y.labelingGuideline}),A=(U=T())=>{i&&e(tit({projectId:i,projectBody:U}))},I=(U,H)=>{_(M=>({...M,[U]:H}))},R=b.useMemo(()=>Nn.debounce(U=>A(U),nar),[i]);so(()=>{const{name:U,description:H,pipeline_id:M,query_target:B,annotation_guideline:k}=a;Nn.isEqual({queryTarget:B,labelingGuideline:k,name:U,description:H,pipelineId:M},y)||R(T())},[y]);const N=U=>{const{name:H,project_id:M}=a;switch(U){case M1.Edit:m(!0);break;case M1.Export:e(Jrt({projectName:H,projectId:M}));break;case M1.Duplicate:{const B={...a,name:`(Copy) ${H}`};e(ese(B)),t("/labeling");break}case M1.Delete:rar({className:L2.deleteConfirmModal,title:Ng.title,icon:E.jsx(Ng.icon,{}),content:Pn(Ng.description,{projectName:E.jsx("strong",{children:H})}),onOk:()=>{e(eit(M)),t("/labeling")},okType:Ng.okType,okText:Ng.okText});break}},P=({name:U,description:H})=>{_(M=>({...M,name:U,description:H||""})),m(!1)},L=()=>{m(!1)},$=()=>E.jsxs("div",{className:L2.titleSection_actions,children:[E.jsx(ut,{type:"primary",disabled:!g,onClick:()=>t(`query/${d?.name}`),children:ytr}),E.jsx(Vo,{menu:{items:Krt,onClick:({key:U})=>N(U)},placement:"bottomRight",trigger:["click"],children:E.jsx(ut,{icon:E.jsx(Xb,{}),onClick:U=>U.preventDefault()})})]}),D=()=>E.jsx("div",{className:L2.description,children:y.description}),z=()=>g?null:E.jsx(Ka,{message:Xtr,description:Ztr,type:"warning",className:L2.alert});return E.jsxs("div",{className:L2.labelingDetailsPage,children:[E.jsx(iit,{initialValues:{name:y.name,description:y.description,id:a.project_id},loading:s===Me.IN_PROGRESS,open:h,onCancel:L,onSubmit:P}),E.jsxs("div",{className:L2.labelingDetailsPage_container,children:[E.jsx(xme,{title:y.name,subtitle:Cr(a.created_at).format("DD/MM/YYYY HH:mm"),createdBy:XN(o),actions:$(),status:E.jsxs(Si,{children:[a.total_labels," ",Vrt]})}),D(),z(),E.jsx(Lu,{activeKey:S,items:C6e,onChange:U=>{C(U)}}),E.jsxs("div",{className:L2.labelingDetailsPage_bodySection,children:[S===gb.OVERVIEW&&E.jsx(prr,{project:a,totalFiles:l,selectedPipeline:d,onChangeTab:C}),S===gb.SETTINGS&&E.jsx(Vir,{projectConfigurationFormValues:y,totalFiles:l,selectedPipeline:d,onSelectPipeline:f,onProjectConfigurationLocalStateChange:I})]})]})]})},aar=()=>{const{userAgent:e}=navigator,t=/Android|iPhone|Windows Phone|BlackBerry|Mobile/i.test(e),n=/iPad|Tablet|Playbook|Nexus 7|Nexus 10|SCH-I800|GT-P5210|Xoom|Kindle Fire|Silk|KFAPWI|KFTHWI|KFJWI|KFJWA|KFSOWI|KFTHWA|KFAPWA|KFTT|KFOT|KINDLE|KFASWI|KFSAWA|KFSAWI|KFARWI|Gigaset|Gigaset QV830|Gigaset QV1030|Gigaset QV831|Gigaset QV830|Gigaset QV1030|Gigaset QV831|Touchpad|HP Slate/i.test(e);return{isMobile:t,isTablet:n,isDesktop:!t&&!n}},oar="_searchQueryContainer_nziqy_13",sar="_tabletMobileInput_nziqy_19",lar="_cancelButton_nziqy_27",VJ={searchQueryContainer:oar,tabletMobileInput:sar,cancelButton:lar},{Search:car}=$r,Cit=({query:e,loading:t=!1,disabled:n=!1,enterButton:r,onQuerySubmit:i})=>{const{isDesktop:a}=aar(),[o,s]=se.useState("");b.useEffect(()=>{e&&s(e)},[e]);const l=c=>{c&&i(c)};return E.jsxs("div",{className:VJ.searchQueryContainer,children:[E.jsx(car,{className:`${a?"":VJ.tabletMobileInput}`,placeholder:U8n,onSearch:l,value:o,onChange:c=>s(c.target.value),size:"large",enterButton:r||yet,disabled:n,loading:t,prefix:!a&&E.jsx(bj,{}),allowClear:a,autoFocus:!0,"data-testid":"searchBar_input"}),!a&&o&&E.jsx(ut,{className:VJ.cancelButton,type:"link",onClick:()=>s(""),children:gm})]})},uar="_results_1v9ry_13",dar="_results_divider_1v9ry_16",far="_results_queryTitle_1v9ry_20",par="_results_list_1v9ry_26",har="_results_infoBar_1v9ry_31",mar="_results_infoBar_answers_1v9ry_38",gar="_results_infoBar_hallucinationsSwitch_1v9ry_46",P2={results:uar,results_divider:dar,results_queryTitle:far,results_list:par,results_infoBar:har,results_infoBar_answers:mar,results_infoBar_hallucinationsSwitch:gar},wit=({isExternal:e,displayFileOptions:t,displayMoreOptions:n,displayMetadata:r,displayRelevanceScore:i,displayReferencesPopover:a,documentResultOptions:o,results:s,status:l,query:c,pipelineId:u,pipelineName:d,header:f,resultFeedback:p})=>{const{openPromptModal:h}=MU(),m=Mpe(s),g=C=>{const{documents:w=[]}=s;return m===Aa.DOCUMENT_RETRIEVAL?[C]:w.length?!("document_ids"in C)||!C?.document_ids?[]:C.document_ids.reduce((x,T)=>{const A=w.find(I=>I.id===T);return A?[...x,A]:x},[]):w},v=({key:C})=>{C===R1.VIEW_PROMPT&&h(s.prompts)},y=()=>m!==Aa.GENERATIVE_QUESTION_ANSWERING?[]:s.prompts?[{key:R1.VIEW_PROMPT,label:Ahe}]:[],_=()=>{const w=HS(s).length;return E.jsx("div",{className:P2.results_infoBar,children:E.jsx("div",{className:P2.results_infoBar_answers,children:Pn(jLn[m],{numResults:E.jsx("span",{children:w})})})})},S=()=>f||E.jsxs(E.Fragment,{children:[E.jsx("h6",{className:P2.results_queryTitle,children:c}),E.jsx(zi,{className:P2.results_divider}),_(),E.jsx(zi,{className:P2.results_divider}),E.jsx(zi,{className:P2.results_divider})]});return E.jsxs(E.Fragment,{children:[S(),E.jsx("div",{className:P2.results_list,children:HS(s).map((C,w)=>{const x=g(C);return E.jsx(Jhe,{isExternal:e,searchResult:C,searchStatus:l,documentsGroupedByFileId:SR(x),documents:x,queryId:s.query_id,pipelineId:u,pipelineName:d,pipelineType:m,displayFileOptions:t,displayMoreOptions:n,displayRelevanceScore:i,displayMetadata:r,displayReferencesPopover:a,documentResultOptions:o,sourcesDefaultExpanded:w===0,feedback:p?()=>p(C,w):null,moreOptionsDropdownMenuItems:y(),onMoreOptionsDropdownMenuItemClick:v},C.result_id)})}),E.jsx(Ztt,{pipelineType:m,searchResults:s,isExternal:e}),E.jsx(Ktt,{resultExt:s,isExternal:e}),E.jsx(eme,{})]})},yar="_labelingQueryHistory_1u682_13",bar="_labelingQueryHistory_body_1u682_30",_ar="_zeroHeightContainer_1u682_38",GJ={labelingQueryHistory:yar,labelingQueryHistory_body:bar,zeroHeightContainer:_ar},Sar=100,D6e="queryListContainer",Ear=({open:e,projectId:t,currentQueryId:n,onCancel:r,onDone:i,onQuerySelect:a})=>{const o=ir(),s=st(Pl),l=st(Onr),c=st(Lnr),[u,d]=b.useState(1),[f,p]=b.useState({}),h=y=>{const _=vm("created_by",s.userID);o(Cnr({projectId:t,filter:_,pageNumber:u,limit:Sar,includeUnlabeled:!0,...y}))},m=()=>{const y=u+1;d(y),h({pageNumber:y,fetchMore:!0})},g=y=>{const _=y.map(({query:w,query_id:x,created_at:T})=>({query:w,id:x,createdAt:T})),S=Nn.uniqBy(_,"id");return Nn.groupBy(S,({createdAt:w})=>Cr(w).format("dddd D MMMM YYYY"))};b.useEffect(()=>{if(!e){d(1);return}h()},[e]),b.useEffect(()=>{const{data:y,total:_}=l;_<1||p(g(y))},[l]);const v=y=>{a(y.id),r()};return E.jsx(wi,{title:snr,width:"78%",open:e,className:GJ.labelingQueryHistory,centered:!0,onCancel:r,cancelText:!1,cancelButtonProps:{style:{display:"none"}},onOk:i,okText:YO,children:E.jsx("div",{className:GJ.labelingQueryHistory_body,id:D6e,children:E.jsx("div",{className:GJ.zeroHeightContainer,children:E.jsx(nnt,{isLoading:c===Me.IN_PROGRESS,total:l.total,hasMore:l.has_more,onNext:m,scrollableTarget:D6e,dataGroupedByDate:f,isSelected:y=>y.id===n,onItemSelect:v})})})})},Car="_footer_192rw_13",war="_footer_center_192rw_19",xar="_footer_title_192rw_22",Tar="_searchBar_192rw_26",Iar="_resultsHeader_192rw_33",Aar="_resultsHeader_totalResultsLabeled_192rw_46",Rar="_resultsHeader_totalResultsLabeled_label_192rw_52",Nar="_resultsHeader_showMetadata_192rw_59",Oar="_resultLabelingButtons_192rw_67",Lar="_infoColor_192rw_72",Par="_successColor_192rw_76",kar="_errorColor_192rw_80",sf={footer:Car,footer_center:war,footer_title:xar,searchBar:Tar,resultsHeader:Iar,resultsHeader_totalResultsLabeled:Aar,resultsHeader_totalResultsLabeled_label:Rar,resultsHeader_showMetadata:Nar,resultLabelingButtons:Oar,infoColor:Lar,successColor:Par,errorColor:kar},$6e=20,Mar=({selectedPipeline:e,projectId:t})=>{const n=ir(),r=b.useRef(""),i=st(Pet),a=st(SU),o=st(Nnr),s=st(Pnr),l=st(knr),[c,u]=b.useState([]),[d,f]=b.useState({}),[p,h]=b.useState(0),[m,g]=b.useState(!1),[v,y]=b.useState(!1),_=st(Met);b.useEffect(()=>{n(vtt),n(bnr)},[]),so(()=>{const{query_id:q,query:W,documents:K}=a;if(!q)return;const J=[...c,q];u(J),h(J.length-1),i===Me.SUCCESS&&K.forEach((te,ae)=>{const{result_id:re}=te,{labelId:ue}=o[re]||{};ue||n(w6e({projectId:t,query:W,queryId:q,result:te,rank:ae}))})},[a]),so(()=>{s&&f({...d,[s.query_id]:s})},[s]);const S=q=>{const W=vm("query_id",q);n(wnr({projectId:t,filter:W,limit:$6e}))},C=q=>{const W={projectId:t,filter:vm("query_id",q),limit:$6e};n(xnr(W))},w=()=>{const q=c[p];if(!d[q])return"";const{query:W}=d[q];return W},x=()=>{const q=c[p];return d[q]||a},T=()=>{const{answers:q,documents:W}=x();return!q.length&&!W.length},A=()=>i===Me.IN_PROGRESS||l===Me.IN_PROGRESS,I=()=>c.length>1,R=()=>{const q=l===Me.IN_PROGRESS;return!I()||p===0||q},N=()=>{const q=c.length,W=l===Me.IN_PROGRESS;return!I()||q-1===p||W},P=()=>{const q=c[p];return!d[q]||A()?i:l},L=()=>{const{documents:q}=x();return Object.keys(o).filter(K=>q.find(({result_id:J})=>K===J&&o[K].relevance)).length},$=async q=>{r.current=q,n(Net({pipelineName:e.name,query:q}))},D=async(q,W,K)=>{const{query:J,query_id:te}=x()||{},{result_id:ae}=W,{relevance:re,labelId:ue}=o[ae]||{};if(re!==q){if(ue){await n(Enr({projectId:t,resultId:ae,labelId:ue,relevance:q})),n(tse(t));return}await n(w6e({relevance:q,projectId:t,query:J,queryId:te,result:W,rank:K})),n(tse(t))}},z=()=>{g(!m)},U=q=>{n(IF),u([q]),h(0),C(q),S(q)},H=q=>{const W=q==="FORWARD"?p+1:p-1,K=c[W];C(K),h(W)},M=q=>{switch(q.key){case"ArrowLeft":if(R())break;H("BACKWARD");break;case"ArrowRight":if(N())break;H("FORWARD");break}};b.useEffect(()=>(window.addEventListener("keydown",M),()=>{window.removeEventListener("keydown",M)}),[M]);const B=()=>E.jsxs("div",{className:sf.searchBar,children:[E.jsx(ut,{size:"large",icon:E.jsx(Kce,{}),onClick:()=>y(!0)}),E.jsx(Cit,{query:w(),onQuerySubmit:$,loading:A(),disabled:!e||A()})]}),k=()=>E.jsxs("div",{className:`${sf.footer} ${I()?"":sf.footer_center}`,children:[I()&&E.jsx(ut,{type:"text",size:"small",disabled:R(),icon:E.jsx(eT,{}),onClick:()=>H("BACKWARD"),children:Mtr}),E.jsx("h6",{className:sf.footer_title,children:r.current||e.name}),I()&&E.jsxs(ut,{type:"text",size:"small",disabled:N(),onClick:()=>H("FORWARD"),children:[Dtr," ",E.jsx(mj,{})]})]}),F=()=>{const{documents:q}=x(),W=q.length,K=L(),J=W>0&&W===K,te=J?sf.successColor:sf.infoColor;return E.jsxs("div",{className:sf.resultsHeader,children:[E.jsxs("div",{className:sf.resultsHeader_totalResultsLabeled,children:[E.jsx("span",{className:sf.resultsHeader_totalResultsLabeled_label,children:Ptr}),E.jsx(TC,{percent:K/W*100,status:J?"success":"normal",showInfo:J}),E.jsxs("span",{className:sf.resultsHeader_totalResultsLabeled_label,children:[E.jsx("strong",{className:K>0?te:"",children:K}),E.jsxs("span",{children:["/",W]})]})]}),E.jsxs("div",{className:sf.resultsHeader_showMetadata,children:[E.jsx("span",{children:Ltr}),E.jsx($p,{checked:m,size:"small",onChange:z})]})]})},G=(q,W)=>{if(!q||"answer"in q)return null;const{relevance:K}=o[q.result_id]||{};return E.jsxs("div",{className:sf.resultLabelingButtons,children:[E.jsx(hE,{tooltipTitle:"",active:K===$y.RELEVANT,onClick:()=>D($y.RELEVANT,q,W),icon:E.jsx(yN,{}),activeIcon:E.jsx(vN,{}),label:ULn}),E.jsx(hE,{tooltipTitle:"",active:K===$y.NOT_RELEVANT,onClick:()=>D($y.NOT_RELEVANT,q,W),icon:E.jsx(f$,{}),activeIcon:E.jsx(qce,{}),label:HLn}),E.jsx(hE,{tooltipTitle:ktr,active:K===$y.UNDECIDED,danger:K===$y.UNDECIDED,onClick:()=>D($y.UNDECIDED,q,W),icon:E.jsx(p2t,{}),activeIcon:E.jsx(u2t,{className:sf.errorColor})})]})};return E.jsxs(E.Fragment,{children:[E.jsx(Ear,{open:v,projectId:t,currentQueryId:c[p],onCancel:()=>y(!1),onDone:()=>y(!1),onQuerySelect:U}),E.jsx(Hhe,{searchBar:B(),body:T()?E.jsx(tme,{selectedPipeline:e,status:P(),query:r.current,message:_}):E.jsx(wit,{results:x(),status:P(),query:r.current,pipelineName:e.name,pipelineId:e.pipeline_id,header:F(),resultFeedback:G,displayMetadata:m,displayRelevanceScore:!1,documentResultOptions:{displayFullDocument:!0}}),footer:k()})]})},Dar=e=>b.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("path",{d:"M13.0074 13.1391L14.8061 13.4129C14.9301 13.4322 15.0165 13.5523 14.9974 13.6822C14.9903 13.7341 14.9669 13.7816 14.9315 13.8179L13.6301 15.1466L13.9376 17.0227C13.9588 17.1518 13.8759 17.2742 13.7527 17.2964C13.7038 17.3053 13.6528 17.2972 13.6088 17.2727L12 16.3869L10.3912 17.2727C10.3538 17.2934 10.3116 17.3027 10.2694 17.2995C10.2272 17.2964 10.1867 17.2809 10.1525 17.2549C10.1183 17.2288 10.0917 17.1933 10.0758 17.1523C10.0599 17.1112 10.0553 17.0663 10.0625 17.0227L10.3699 15.1466L9.06857 13.8179C9.02548 13.7739 9.00082 13.7138 9.00003 13.6508C8.99923 13.5878 9.02236 13.527 9.06432 13.4819C9.09903 13.4448 9.14437 13.4203 9.19396 13.4129L10.9926 13.1391L11.7967 11.4322C11.8527 11.3149 11.9887 11.2667 12.1006 11.3246C12.1452 11.3476 12.1814 11.3854 12.2033 11.4322L13.0074 13.1391Z"}),b.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.36181 3.72373L6.79982 10.5997C5.98365 11.6862 5.50001 13.0367 5.50001 14.5001C5.50001 18.09 8.41016 21.0001 12 21.0001C15.5899 21.0001 18.5 18.09 18.5 14.5001C18.5 13.0367 18.0164 11.6862 17.2002 10.5997L20.6382 3.72373C20.8044 3.39128 20.5627 3.00012 20.191 3.00012H14.309C14.1196 3.00012 13.9465 3.10712 13.8618 3.27652L12 7.00012L10.1382 3.27652C10.0535 3.10712 9.88038 3.00012 9.69099 3.00012H3.80903C3.43733 3.00012 3.19559 3.39128 3.36181 3.72373ZM10.8717 8.09769L9.07296 4.50012H5.42706L7.90357 9.45315C8.74448 8.76978 9.75948 8.29235 10.8717 8.09769ZM18.573 4.50012L16.0964 9.45315C15.2555 8.76978 14.2405 8.29235 13.1283 8.09769L14.9271 4.50012H18.573ZM12 19.5001C14.7614 19.5001 17 17.2615 17 14.5001C17 11.7387 14.7614 9.50012 12 9.50012C9.23858 9.50012 7.00001 11.7387 7.00001 14.5001C7.00001 17.2615 9.23858 19.5001 12 19.5001Z"})),$ar=e=>b.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("path",{opacity:.1,d:"M9.5 4L12 8.5L14.5 4H19.5L16.5 10.5C20 17 15 20 12 20C5.5 20 5.5 13.5 7.5 10.5L4.5 4H9.5Z",fill:"#3A61C2"}),b.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.8717 8.09757L9.07293 4.5H5.42703L7.90354 9.45303C8.74445 8.76966 9.75945 8.29223 10.8717 8.09757ZM3.36178 3.72361L6.79979 10.5996C5.98362 11.686 5.49998 13.0365 5.49998 14.5C5.49998 18.0899 8.41013 21 12 21C15.5898 21 18.5 18.0899 18.5 14.5C18.5 13.0365 18.0163 11.686 17.2002 10.5996L20.6382 3.72361C20.8044 3.39116 20.5627 3 20.191 3H14.309C14.1196 3 13.9465 3.107 13.8618 3.27639L12 7L10.1382 3.27639C10.0535 3.107 9.88035 3 9.69096 3H3.80899C3.4373 3 3.19556 3.39116 3.36178 3.72361ZM18.5729 4.5L16.0964 9.45303C15.2555 8.76966 14.2405 8.29223 13.1282 8.09757L14.927 4.5H18.5729ZM12 19.5C14.7614 19.5 17 17.2614 17 14.5C17 11.7386 14.7614 9.5 12 9.5C9.23855 9.5 6.99998 11.7386 6.99998 14.5C6.99998 17.2614 9.23855 19.5 12 19.5ZM13.0074 13.139L14.8061 13.4128C14.93 13.432 15.0165 13.5522 14.9973 13.682C14.9902 13.734 14.9669 13.7815 14.9314 13.8178L13.6301 15.1464L13.9375 17.0226C13.9588 17.1516 13.8759 17.274 13.7526 17.2963C13.7037 17.3052 13.6527 17.297 13.6088 17.2726L12 16.3868L10.3912 17.2726C10.3538 17.2932 10.3116 17.3025 10.2694 17.2994C10.2272 17.2962 10.1867 17.2808 10.1525 17.2547C10.1183 17.2287 10.0917 17.1932 10.0758 17.1521C10.0599 17.1111 10.0552 17.0662 10.0625 17.0226L10.3699 15.1464L9.06854 13.8178C9.02545 13.7738 9.00079 13.7137 9 13.6507C8.9992 13.5877 9.02233 13.5269 9.06429 13.4817C9.099 13.4447 9.14434 13.4202 9.19393 13.4128L10.9926 13.139L11.7967 11.432C11.8526 11.3148 11.9887 11.2666 12.1006 11.3245C12.1452 11.3475 12.1813 11.3853 12.2033 11.432L13.0074 13.139Z",fill:"#3A61C2"})),Far="_header_eixm4_13",Bar="_list_eixm4_22",jar="_listItem_score_eixm4_44",zar="_listItem_user_eixm4_48",Uar="_listItem_user_order_eixm4_52",Har="_listItem_user_icon_eixm4_55",Var="_emptyContainer_eixm4_60",Gar="_emptyContainer_icon_eixm4_71",a1={header:Far,list:Bar,listItem_score:jar,listItem_user:zar,listItem_user_order:Uar,listItem_user_icon:Har,emptyContainer:Var,emptyContainer_icon:Gar},qar=({queriesPerUser:e})=>E.jsxs("div",{children:[E.jsxs("div",{className:a1.header,children:[E.jsxs("span",{children:[" ",anr," "]}),E.jsxs("span",{children:[" ",Xrt," "]})]}),e&&e.length>0?E.jsx("ul",{className:a1.list,children:e.map(({nickname:t,amount:n},r)=>E.jsxs("li",{children:[E.jsxs("span",{className:a1.listItem_user,children:[E.jsxs("span",{className:a1.listItem_user_order,children:[r+1,"."]}),r===0?E.jsx($ar,{className:a1.listItem_user_icon}):E.jsx(Mp,{size:24,className:a1.listItem_user_icon,icon:E.jsx(Zce,{})}),t]}),E.jsx("span",{className:a1.listItem_score,children:n})]},t))}):E.jsxs("div",{className:a1.emptyContainer,children:[E.jsx(Dar,{className:a1.emptyContainer_icon}),onr]})]}),War="_labelingProgress_1xbn3_13",Yar="_success_1xbn3_21",Kar="_target_header_1xbn3_25",Xar="_target_info_1xbn3_29",Zar="_target_info_queries_1xbn3_32",Qar="_queryTargetSuccess_1xbn3_39",vy={labelingProgress:War,success:Yar,target_header:Kar,target_info:Xar,target_info_queries:Zar,queryTargetSuccess:Qar},Jar=({totalLabeledQueries:e,queryTarget:t})=>{const n=t&&t!==0,r=t?e/t*100:0,i=r>=100;return E.jsxs("div",{className:`${vy.labelingProgress} ${i?vy.success:""}`,children:[!!n&&E.jsx(E.Fragment,{children:i?E.jsx(Urt,{className:vy.queryTargetSuccess}):E.jsx(TC,{type:"circle",percent:r,size:32,strokeWidth:12,showInfo:!1,trailColor:"#ffffff"})}),E.jsxs("div",{className:vy.target,children:[E.jsx("div",{className:vy.target_header,children:n?nnr:Xrt}),E.jsxs("div",{className:vy.target_info,children:[Pn(rnr,{queriesPerformed:E.jsx("span",{className:`${vy.target_info_queries} ${i?vy.success:""}`,children:e})}),!!n&&Pn(inr,{queryTarget:t})]})]})]})},eor="_labelingSidebar_1aut3_13",tor="_labelingSidebar_guidelines_1aut3_19",F6e={labelingSidebar:eor,labelingSidebar_guidelines:tor},nor=e=>{const t=ir(),{projectId:n}=e,r=st(nit),i=st(Anr),[a,o]=b.useState(!1);b.useEffect(()=>{t(Qrt(n)),t(tse(n))},[n]);const{name:s,query_target:l}=r,{labeled_queries_per_user:c,labeled_queries:u}=i;return E.jsxs(E.Fragment,{children:[E.jsxs("div",{className:F6e.labelingSidebar,children:[E.jsx("h5",{children:s}),E.jsxs("div",{className:F6e.labelingSidebar_guidelines,children:[E.jsxs("strong",{children:[E.jsx(W2t,{})," ",E.jsx(n_t,{})," ",Qtr]}),E.jsx("span",{children:Jtr}),E.jsx(ut,{type:"primary",size:"small",icon:E.jsx(aEt,{}),onClick:()=>o(!0),ghost:!0,children:enr})]}),E.jsx(Jar,{totalLabeledQueries:u||0,queryTarget:l}),E.jsx(qar,{queriesPerUser:c})]}),E.jsx(Eit,{open:a,project:r,readOnly:!0,onCancel:()=>o(!1),onDone:()=>o(!1)})]})},ror="_labelingQueryPage_9r0qh_35",ior={"auth-content":"_auth-content_9r0qh_25","content-wrapper":"_content-wrapper_9r0qh_35",labelingQueryPage:ror,"content-wrapper_padding":"_content-wrapper_padding_9r0qh_40"},aor=()=>{const e=ir(),{pipelineName:t,projectId:n}=dv(),r=st(WT);return b.useEffect(()=>(e(IF),t&&e(Yg({pipelineName:t})),()=>{e(IF)}),[]),E.jsxs("div",{className:ior.labelingQueryPage,children:[E.jsx(Mar,{selectedPipeline:r,projectId:n}),E.jsx(nor,{projectId:n})]})},oor="_link_38f1w_13",sor="_link_active_38f1w_21",lor="_wrapper_38f1w_26",cor="_topNavigation_container_38f1w_30",wk={link:oor,link_active:sor,wrapper:lor,topNavigation_container:cor};function JT(){const{role:e}=st(Pl);function t(){return E.jsx("div",{className:wk.topNavigation_container,children:yQe.map(n=>n.userAccess?.includes(e)?E.jsx(W0t,{className:({isActive:i})=>`${wk.link} ${i&&wk.link_active}`,to:n.link,children:n.label},n.label):null)})}return E.jsx("div",{className:wk.wrapper,children:t()})}const uor="_container_19la1_13",dor={container:uor},por=()=>{const{usageLimits:e,usageMetrics:t}=Ert(),{currentUsageCycleText:n,currentUsageCycleDate:r}=g8(),{organizationName:i}=st(JO),a=["development_pipelines","production_pipelines","document_storage_units","development_hours","production_hours"];return E.jsxs("div",{className:dor.container,children:[E.jsx(Koe,{label:EW.label,metric:i,limit:{current:r.current,target:r.to,name:Pn(EW.limitLabel,{usageCycle:n}),targetLabel:r.to?Pn(EW.targetLabel,{days:r.to-r.current}):""}},"organization"),a.map(o=>{const s=o,l=t[s],c=uyn[s];return E.jsx(Koe,{label:c.label,metric:l,tooltip:c.tooltip,metricSuffix:c.metricUnit,limit:{current:l,target:e?.[s]||null,name:c.limitLabel},showLimitInfo:!!e},o)})]})},hor="_header_hb8k_13",mor="_pipelineNameLink_hb8k_24",gor="_envTag_hb8k_28",xk={header:hor,pipelineNameLink:mor,envTag:gor},vor=()=>{const e=ir(),{selectedDateRange:t}=g8(),n=st(jXn),r=st(zXn),i=st(HXn),a=st(VXn);return{pipelineUsageMetrics:n,fetchingPipelineUsageMetricsStatus:r,pipelineUsageMetricsSortValue:i,pipelineUsageMetricsFiltersValues:a,getPipelineUsageMetrics:({limit:s,pageNumber:l,dateRange:c,searchValue:u,sortValue:d,filterValues:f}={})=>{const p=c||{from:t?.from,to:t?.to};e(DXn({limit:s,pageNumber:l,dateRange:p,searchValue:u,sortValue:d,filterValues:f}))}}},{useToken:yor}=Fd,bor=5,_or=()=>{const{token:e}=yor(),t=ys(),n=ir(),{pipelineUsageMetrics:r,pipelineUsageMetricsSortValue:i,getPipelineUsageMetrics:a,fetchingPipelineUsageMetricsStatus:o}=vor(),{currentUsageCycleText:s}=g8(),{currentWorkspace:l,workspaces:c}=st(lU),u=()=>[{type:li.SELECT,search:!1,key:pyn.SERVICE_LEVEL,title:fyn,options:[{key:"service_level_draft",label:xW.DRAFT,value:Fh.DRAFT},{key:"service_level_development",label:xW.DEVELOPMENT,value:Fh.DEVELOPMENT},{key:"service_level_production",label:xW.PRODUCTION,value:Fh.PRODUCTION}],style:{minWidth:"140px"}}],d=(m,g)=>{m.preventDefault();const{workspace_name:v,pipeline_name:y}=g;if(l!==v){const _=c.find(S=>S.name===v);if(!_)return;n(jpe(_.name)),n(jn({content:Pn(Sfn,{workspace:_.name})}))}t(`/pipelines/${y}`)},f=m=>{const g={[Fh.PRODUCTION]:{label:wW.production,color:e.colorSuccess},[Fh.DEVELOPMENT]:{label:wW.development,color:e.colorPrimary},[Fh.DRAFT]:{label:wW.draft,color:e.colorTextDisabled}};return!m||!g[m]?null:E.jsxs("div",{className:xk.envTag,children:[E.jsx(EC,{color:g[m].color}),E.jsx("span",{children:g[m].label})]})},p=m=>`${SA(m)}h`,h=[{title:y2.NAME,dataIndex:"pipeline_name",key:"pipeline_name",width:"40%",render:(m,g)=>E.jsx(Jg,{to:`/pipelines/${m}`,onClick:v=>d(v,g),className:xk.pipelineNameLink,children:m})},{title:y2.DEV_HOURS,dataIndex:"development_hours",key:"development_hours",width:"10%",render:m=>p(m)},{title:y2.PROD_HOURS,dataIndex:"production_hours",key:"production_hours",width:"10%",render:m=>p(m)},{title:y2.STORAGE_UNITS,dataIndex:"document_storage_units",key:"document_storage_units",width:"10%",render:m=>pl(m,!0)},{title:y2.DOCUMENTS,dataIndex:"documents",key:"documents",width:"10%",render:m=>pl(m,!0)},{title:y2.WORKSPACE_NAME,dataIndex:"workspace_name",key:"workspace_name",width:"10%"},{title:y2.SERVICE_LEVEL,dataIndex:"service_level",key:"service_level",width:"10%",render:m=>f(m)}];return E.jsxs("div",{className:xk.container,children:[E.jsxs("div",{className:xk.header,children:[E.jsx("h5",{children:oyn}),s&&E.jsx(Si,{children:s})]}),E.jsx(Of,{data:r.data,total:r.total,rowKey:"pipeline_id",rowDisabled:m=>m.service_level===Fh.DRAFT,getData:(m,g,v,y,_)=>a({pageNumber:m,limit:g,searchValue:v,sortValue:y,filterValues:_}),sorting:{selectedValue:i,options:myn},loading:o===Me.IN_PROGRESS,filters:u(),columns:h,searchAvailable:!0,searchPlaceholder:cyn,rowSelection:!1,pagination:{pageSize:bor}})]})},Sor=(e,t)=>{if(!t?.length)return"";const n=(o,s)=>Nn.isNil(s)?"":s,r=e.map(({dataIndex:o})=>o),i=t.map(o=>r.map(s=>JSON.stringify(o[s],n)).join(","));return[r.join(","),...i].join(`\r
`)},Eor=(e,t,n,r,i=Qi())=>{const a={...n?.from&&{from:n.from.toISOString()},...n?.to&&{until:n.to.toISOString()},...r&&{interval:r}};return rn.get(`/api/v2/workspaces/${i}/pipelines/${e}/metrics/${t}`,{params:a})},uOr={type:XKe},dOr={type:ZKe},fOr=e=>({type:YKe,payload:e}),pOr=({type:e,from:t,to:n})=>({type:KKe,payload:{type:e,from:t,to:n}}),hOr=Ut(WKe,async({pipelineId:e,metric:t,dateRange:n,interval:r})=>{const{data:{metrics:i}}=await Eor(e,t,n,r);return{data:i??null,metric:t,interval:r}}),Cor=({chartObj:e,mode:t,extraInfo:n})=>{const{dateRange:r,name:i,metric:a}=n||{},{from:o,to:s}=r||{},l=o?.toISOString()??"",c=s?.toISOString()??"",u=`${i}_${a}_${l}_to_${c}.${t}`;switch(t){case Cp.PNG:e.download("png",u);break;case Cp.JPEG:e.download("jpeg",u);break;case Cp.CSV:{const{columns:d,data:f}=n||{},p=Sor(d,f);S0(u,p,gi.CSV);break}case Cp.PDF:e.download("pdf",u);break}return{type:Ddn}};/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var ose=function(e,t){return ose=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},ose(e,t)};function tr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ose(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Fme=12,wor="sans-serif",rC=Fme+"px "+wor,xor=20,Tor=100,Ior="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Aor(e){var t={};if(typeof JSON>"u")return t;for(var n=0;n<e.length;n++){var r=String.fromCharCode(n+32),i=(e.charCodeAt(n)-xor)/Tor;t[r]=i}return t}var Ror=Aor(Ior),e4={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var e,t;return function(n,r){if(!e){var i=e4.createCanvas();e=i&&i.getContext("2d")}if(e)return t!==r&&(t=e.font=r||rC),e.measureText(n);n=n||"",r=r||rC;var a=/((?:\d+)?\.?\d*)px/.exec(r),o=a&&+a[1]||Fme,s=0;if(r.indexOf("mono")>=0)s=o*n.length;else for(var l=0;l<n.length;l++){var c=Ror[n[l]];s+=c==null?o:c*o}return{width:s}}}(),loadImage:function(e,t,n){var r=new Image;return r.onload=t,r.onerror=n,r.src=e,r}},xit=t4(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),Tit=t4(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),S8=Object.prototype.toString,ZU=Array.prototype,Nor=ZU.forEach,Oor=ZU.filter,Bme=ZU.slice,Lor=ZU.map,B6e=function(){}.constructor,Tk=B6e?B6e.prototype:null,jme="__proto__",Por=2311;function Iit(){return Por++}function zme(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function Xi(e){if(e==null||typeof e!="object")return e;var t=e,n=S8.call(e);if(n==="[object Array]"){if(!LR(e)){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=Xi(e[r])}}else if(Tit[n]){if(!LR(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var r=0,i=e.length;r<i;r++)t[r]=e[r]}}}else if(!xit[n]&&!LR(e)&&!h6(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==jme&&(t[o]=Xi(e[o]))}return t}function ba(e,t,n){if(!Fr(t)||!Fr(e))return n?Xi(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==jme){var i=e[r],a=t[r];Fr(a)&&Fr(i)&&!ar(a)&&!ar(i)&&!h6(a)&&!h6(i)&&!j6e(a)&&!j6e(i)&&!LR(a)&&!LR(i)?ba(i,a,n):(n||!(r in e))&&(e[r]=Xi(t[r]))}return e}function Vn(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==jme&&(e[n]=t[n]);return e}function Hi(e,t,n){for(var r=rs(t),i=0;i<r.length;i++){var a=r[i];e[a]==null&&(e[a]=t[a])}return e}function ja(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n}return-1}function kor(e,t){var n=e.prototype;function r(){}r.prototype=t.prototype,e.prototype=new r;for(var i in n)n.hasOwnProperty(i)&&(e.prototype[i]=n[i]);e.prototype.constructor=e,e.superClass=t}function Cv(e,t,n){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(t),i=0;i<r.length;i++){var a=r[i];a!=="constructor"&&e[a]==null&&(e[a]=t[a])}else Hi(e,t)}function Od(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function lt(e,t,n){if(e&&t)if(e.forEach&&e.forEach===Nor)e.forEach(t,n);else if(e.length===+e.length)for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(n,e[a],a,e)}function Nr(e,t,n){if(!e)return[];if(!t)return Ume(e);if(e.map&&e.map===Lor)return e.map(t,n);for(var r=[],i=0,a=e.length;i<a;i++)r.push(t.call(n,e[i],i,e));return r}function t4(e,t,n,r){if(e&&t){for(var i=0,a=e.length;i<a;i++)n=t.call(r,n,e[i],i,e);return n}}function mc(e,t,n){if(!e)return[];if(!t)return Ume(e);if(e.filter&&e.filter===Oor)return e.filter(t,n);for(var r=[],i=0,a=e.length;i<a;i++)t.call(n,e[i],i,e)&&r.push(e[i]);return r}function rs(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function Mor(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return e.apply(t,n.concat(Bme.call(arguments)))}}var si=Tk&&hi(Tk.bind)?Tk.call.bind(Tk.bind):Mor;function hl(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(this,t.concat(Bme.call(arguments)))}}function ar(e){return Array.isArray?Array.isArray(e):S8.call(e)==="[object Array]"}function hi(e){return typeof e=="function"}function yr(e){return typeof e=="string"}function sse(e){return S8.call(e)==="[object String]"}function is(e){return typeof e=="number"}function Fr(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function j6e(e){return!!xit[S8.call(e)]}function Ld(e){return!!Tit[S8.call(e)]}function h6(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function QU(e){return e.colorStops!=null}function Dor(e){return e.image!=null}function GF(e){return e!==e}function m6(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e.length;n<r;n++)if(e[n]!=null)return e[n]}function ra(e,t){return e??t}function HM(e,t,n){return e??t??n}function Ume(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Bme.apply(e,t)}function Ait(e){if(typeof e=="number")return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function c0(e,t){if(!e)throw new Error(t)}function Fg(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Rit="__ec_primitive__";function lse(e){e[Rit]=!0}function LR(e){return e[Rit]}var $or=function(){function e(){this.data={}}return e.prototype.delete=function(t){var n=this.has(t);return n&&delete this.data[t],n},e.prototype.has=function(t){return this.data.hasOwnProperty(t)},e.prototype.get=function(t){return this.data[t]},e.prototype.set=function(t,n){return this.data[t]=n,this},e.prototype.keys=function(){return rs(this.data)},e.prototype.forEach=function(t){var n=this.data;for(var r in n)n.hasOwnProperty(r)&&t(n[r],r)},e}(),Nit=typeof Map=="function";function For(){return Nit?new Map:new $or}var Bor=function(){function e(t){var n=ar(t);this.data=For();var r=this;t instanceof e?t.each(i):t&&lt(t,i);function i(a,o){n?r.set(a,o):r.set(o,a)}}return e.prototype.hasKey=function(t){return this.data.has(t)},e.prototype.get=function(t){return this.data.get(t)},e.prototype.set=function(t,n){return this.data.set(t,n),n},e.prototype.each=function(t,n){this.data.forEach(function(r,i){t.call(n,r,i)})},e.prototype.keys=function(){var t=this.data.keys();return Nit?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e}();function Mr(e){return new Bor(e)}function jor(e,t){for(var n=new e.constructor(e.length+t.length),r=0;r<e.length;r++)n[r]=e[r];for(var i=e.length,r=0;r<t.length;r++)n[r+i]=t[r];return n}function JU(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&Vn(n,t),n}function Oit(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function D3(e,t){return e.hasOwnProperty(t)}function Ru(){}var zor=180/Math.PI,Uor=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),Hor=function(){function e(){this.browser=new Uor,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return e}(),ci=new Hor;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(ci.wxa=!0,ci.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?ci.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(ci.node=!0,ci.svgSupported=!0):Vor(navigator.userAgent,ci);function Vor(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),a&&(n.edge=!0,n.version=a[1],n.newEdge=+a[1].split(".")[0]>18),o&&(n.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}var Gor=".",k2="___EC__COMPONENT__CONTAINER___",Lit="___EC__EXTENDED_CLASS___";function Bg(e){var t={main:"",sub:""};if(e){var n=e.split(Gor);t.main=n[0]||"",t.sub=n[1]||""}return t}function qor(e){c0(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function Wor(e){return!!(e&&e[Lit])}function Hme(e,t){e.$constructor=e,e.extend=function(n){var r=this,i;return Yor(r)?i=function(a){tr(o,a);function o(){return a.apply(this,arguments)||this}return o}(r):(i=function(){(n.$constructor||r).apply(this,arguments)},kor(i,this)),Vn(i.prototype,n),i[Lit]=!0,i.extend=this.extend,i.superCall=Zor,i.superApply=Qor,i.superClass=r,i}}function Yor(e){return hi(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function Pit(e,t){e.extend=t.extend}var Kor=Math.round(Math.random()*10);function Xor(e){var t=["__\0is_clz",Kor++].join("_");e.prototype[t]=!0,e.isInstance=function(n){return!!(n&&n[t])}}function Zor(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[t].apply(e,n)}function Qor(e,t,n){return this.superClass.prototype[t].apply(e,n)}function eH(e){var t={};e.registerClass=function(r){var i=r.type||r.prototype.type;if(i){qor(i),r.prototype.type=i;var a=Bg(i);if(!a.sub)t[a.main]=r;else if(a.sub!==k2){var o=n(a);o[a.sub]=r}}return r},e.getClass=function(r,i,a){var o=t[r];if(o&&o[k2]&&(o=i?o[i]:null),a&&!o)throw new Error(i?"Component "+r+"."+(i||"")+" is used but not imported.":r+".type should be specified.");return o},e.getClassesByMainType=function(r){var i=Bg(r),a=[],o=t[i.main];return o&&o[k2]?lt(o,function(s,l){l!==k2&&a.push(s)}):a.push(o),a},e.hasClass=function(r){var i=Bg(r);return!!t[i.main]},e.getAllClassMainTypes=function(){var r=[];return lt(t,function(i,a){r.push(a)}),r},e.hasSubTypes=function(r){var i=Bg(r),a=t[i.main];return a&&a[k2]};function n(r){var i=t[r.main];return(!i||!i[k2])&&(i=t[r.main]={},i[k2]=!0),i}}function g6(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t=t||!1,function(r,i,a){for(var o={},s=0;s<e.length;s++){var l=e[s][1];if(!(i&&ja(i,l)>=0||a&&ja(a,l)<0)){var c=r.getShallow(l,t);c!=null&&(o[e[s][0]]=c)}}return o}}var Jor=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],esr=g6(Jor),tsr=function(){function e(){}return e.prototype.getAreaStyle=function(t,n){return esr(this,t,n)},e}(),kit=function(){function e(t){this.value=t}return e}(),nsr=function(){function e(){this._len=0}return e.prototype.insert=function(t){var n=new kit(t);return this.insertEntry(n),n},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var n=t.prev,r=t.next;n?n.next=r:this.head=r,r?r.prev=n:this.tail=n,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),E8=function(){function e(t){this._list=new nsr,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,n){var r=this._list,i=this._map,a=null;if(i[t]==null){var o=r.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=r.head;r.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=n:s=new kit(n),s.key=t,r.insertEntry(s),i[t]=s}return a},e.prototype.get=function(t){var n=this._map[t],r=this._list;if(n!=null)return n!==r.tail&&(r.remove(n),r.insertEntry(n)),n.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),cse=new E8(50);function rsr(e){if(typeof e=="string"){var t=cse.get(e);return t&&t.image}else return e}function Mit(e,t,n,r,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!n)return t;var a=cse.get(e),o={hostEl:n,cb:r,cbPayload:i};return a?(t=a.image,!tH(t)&&a.pending.push(o)):(t=e4.loadImage(e,z6e,z6e),t.__zrImageSrc=e,cse.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function z6e(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function tH(e){return e&&e.width&&e.height}function U5(){return[1,0,0,1,0,0]}function Vme(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function isr(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function H5(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],a=t[0]*n[2]+t[2]*n[3],o=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],l=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=l,e}function use(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function Gme(e,t,n,r){r===void 0&&(r=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],l=t[3],c=t[5],u=Math.sin(n),d=Math.cos(n);return e[0]=i*d+s*u,e[1]=-i*u+s*d,e[2]=a*d+l*u,e[3]=-a*u+d*l,e[4]=d*(o-r[0])+u*(c-r[1])+r[0],e[5]=d*(c-r[1])-u*(o-r[0])+r[1],e}function asr(e,t,n){var r=n[0],i=n[1];return e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i,e}function qme(e,t){var n=t[0],r=t[2],i=t[4],a=t[1],o=t[3],s=t[5],l=n*o-a*r;return l?(l=1/l,e[0]=o*l,e[1]=-a*l,e[2]=-r*l,e[3]=n*l,e[4]=(r*s-o*i)*l,e[5]=(a*i-n*s)*l,e):null}var na=function(){function e(t,n){this.x=t||0,this.y=n||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,n){return this.x=t,this.y=n,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,n){this.x+=t.x*n,this.y+=t.y*n},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var n=this.x-t.x,r=this.y-t.y;return Math.sqrt(n*n+r*r)},e.prototype.distanceSquare=function(t){var n=this.x-t.x,r=this.y-t.y;return n*n+r*r},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var n=this.x,r=this.y;return this.x=t[0]*n+t[2]*r+t[4],this.y=t[1]*n+t[3]*r+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,n,r){t.x=n,t.y=r},e.copy=function(t,n){t.x=n.x,t.y=n.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,n){return t.x*n.x+t.y*n.y},e.add=function(t,n,r){t.x=n.x+r.x,t.y=n.y+r.y},e.sub=function(t,n,r){t.x=n.x-r.x,t.y=n.y-r.y},e.scale=function(t,n,r){t.x=n.x*r,t.y=n.y*r},e.scaleAndAdd=function(t,n,r,i){t.x=n.x+r.x*i,t.y=n.y+r.y*i},e.lerp=function(t,n,r,i){var a=1-i;t.x=a*n.x+i*r.x,t.y=a*n.y+i*r.y},e}(),Ik=Math.min,Ak=Math.max,M2=new na,D2=new na,$2=new na,F2=new na,AI=new na,RI=new na,Na=function(){function e(t,n,r,i){r<0&&(t=t+r,r=-r),i<0&&(n=n+i,i=-i),this.x=t,this.y=n,this.width=r,this.height=i}return e.prototype.union=function(t){var n=Ik(t.x,this.x),r=Ik(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ak(t.x+t.width,this.x+this.width)-n:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ak(t.y+t.height,this.y+this.height)-r:this.height=t.height,this.x=n,this.y=r},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var n=this,r=t.width/n.width,i=t.height/n.height,a=U5();return use(a,a,[-n.x,-n.y]),asr(a,a,[r,i]),use(a,a,[t.x,t.y]),a},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var r=this,i=r.x,a=r.x+r.width,o=r.y,s=r.y+r.height,l=t.x,c=t.x+t.width,u=t.y,d=t.y+t.height,f=!(a<l||c<i||s<u||d<o);if(n){var p=1/0,h=0,m=Math.abs(a-l),g=Math.abs(c-i),v=Math.abs(s-u),y=Math.abs(d-o),_=Math.min(m,g),S=Math.min(v,y);a<l||c<i?_>h&&(h=_,m<g?na.set(RI,-m,0):na.set(RI,g,0)):_<p&&(p=_,m<g?na.set(AI,m,0):na.set(AI,-g,0)),s<u||d<o?S>h&&(h=S,v<y?na.set(RI,0,-v):na.set(RI,0,y)):_<p&&(p=_,v<y?na.set(AI,0,v):na.set(AI,0,-y))}return n&&na.copy(n,f?AI:RI),f},e.prototype.contain=function(t,n){var r=this;return t>=r.x&&t<=r.x+r.width&&n>=r.y&&n<=r.y+r.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,n){t.x=n.x,t.y=n.y,t.width=n.width,t.height=n.height},e.applyTransform=function(t,n,r){if(!r){t!==n&&e.copy(t,n);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],a=r[3],o=r[4],s=r[5];t.x=n.x*i+o,t.y=n.y*a+s,t.width=n.width*i,t.height=n.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}M2.x=$2.x=n.x,M2.y=F2.y=n.y,D2.x=F2.x=n.x+n.width,D2.y=$2.y=n.y+n.height,M2.transform(r),F2.transform(r),D2.transform(r),$2.transform(r),t.x=Ik(M2.x,D2.x,$2.x,F2.x),t.y=Ik(M2.y,D2.y,$2.y,F2.y);var l=Ak(M2.x,D2.x,$2.x,F2.x),c=Ak(M2.y,D2.y,$2.y,F2.y);t.width=l-t.x,t.height=c-t.y},e}(),U6e={};function Tf(e,t){t=t||rC;var n=U6e[t];n||(n=U6e[t]=new E8(500));var r=n.get(e);return r==null&&(r=e4.measureText(e,t).width,n.put(e,r)),r}function H6e(e,t,n,r){var i=Tf(e,t),a=Yme(t),o=LA(0,i,n),s=xx(0,a,r),l=new Na(o,s,i,a);return l}function Wme(e,t,n,r){var i=((e||"")+"").split(`
`),a=i.length;if(a===1)return H6e(i[0],t,n,r);for(var o=new Na(0,0,0,0),s=0;s<i.length;s++){var l=H6e(i[s],t,n,r);s===0?o.copy(l):o.union(l)}return o}function LA(e,t,n){return n==="right"?e-=t:n==="center"&&(e-=t/2),e}function xx(e,t,n){return n==="middle"?e-=t/2:n==="bottom"&&(e-=t),e}function Yme(e){return Tf("国",e)}function iC(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function Dit(e,t,n){var r=t.position||"inside",i=t.distance!=null?t.distance:5,a=n.height,o=n.width,s=a/2,l=n.x,c=n.y,u="left",d="top";if(r instanceof Array)l+=iC(r[0],n.width),c+=iC(r[1],n.height),u=null,d=null;else switch(r){case"left":l-=i,c+=s,u="right",d="middle";break;case"right":l+=i+o,c+=s,d="middle";break;case"top":l+=o/2,c-=i,u="center",d="bottom";break;case"bottom":l+=o/2,c+=a+i,u="center";break;case"inside":l+=o/2,c+=s,u="center",d="middle";break;case"insideLeft":l+=i,c+=s,d="middle";break;case"insideRight":l+=o-i,c+=s,u="right",d="middle";break;case"insideTop":l+=o/2,c+=i,u="center";break;case"insideBottom":l+=o/2,c+=a-i,u="center",d="bottom";break;case"insideTopLeft":l+=i,c+=i;break;case"insideTopRight":l+=o-i,c+=i,u="right";break;case"insideBottomLeft":l+=i,c+=a-i,d="bottom";break;case"insideBottomRight":l+=o-i,c+=a-i,u="right",d="bottom";break}return e=e||{},e.x=l,e.y=c,e.align=u,e.verticalAlign=d,e}var qJ=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function osr(e,t,n,r,i){if(!t)return"";var a=(e+"").split(`
`);i=$it(t,n,r,i);for(var o=0,s=a.length;o<s;o++)a[o]=Fit(a[o],i);return a.join(`
`)}function $it(e,t,n,r){r=r||{};var i=Vn({},r);i.font=t,n=ra(n,"..."),i.maxIterations=ra(r.maxIterations,2);var a=i.minChar=ra(r.minChar,0);i.cnCharWidth=Tf("国",t);var o=i.ascCharWidth=Tf("a",t);i.placeholder=ra(r.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<a&&s>=o;l++)s-=o;var c=Tf(n,t);return c>s&&(n="",c=0),s=e-c,i.ellipsis=n,i.ellipsisWidth=c,i.contentWidth=s,i.containerWidth=e,i}function Fit(e,t){var n=t.containerWidth,r=t.font,i=t.contentWidth;if(!n)return"";var a=Tf(e,r);if(a<=n)return e;for(var o=0;;o++){if(a<=i||o>=t.maxIterations){e+=t.ellipsis;break}var s=o===0?ssr(e,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*i/a):0;e=e.substr(0,s),a=Tf(e,r)}return e===""&&(e=t.placeholder),e}function ssr(e,t,n,r){for(var i=0,a=0,o=e.length;a<o&&i<t;a++){var s=e.charCodeAt(a);i+=0<=s&&s<=127?n:r}return a}function lsr(e,t){e!=null&&(e+="");var n=t.overflow,r=t.padding,i=t.font,a=n==="truncate",o=Yme(i),s=ra(t.lineHeight,o),l=!!t.backgroundColor,c=t.lineOverflow==="truncate",u=t.width,d;u!=null&&(n==="break"||n==="breakAll")?d=e?Bit(e,t.font,u,n==="breakAll",0).lines:[]:d=e?e.split(`
`):[];var f=d.length*s,p=ra(t.height,f);if(f>p&&c){var h=Math.floor(p/s);d=d.slice(0,h)}if(e&&a&&u!=null)for(var m=$it(u,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g=0;g<d.length;g++)d[g]=Fit(d[g],m);for(var v=p,y=0,g=0;g<d.length;g++)y=Math.max(Tf(d[g],i),y);u==null&&(u=y);var _=y;return r&&(v+=r[0]+r[2],_+=r[1]+r[3],u+=r[1]+r[3]),l&&(_=u),{lines:d,height:p,outerWidth:_,outerHeight:v,lineHeight:s,calculatedLineHeight:o,contentWidth:y,contentHeight:f,width:u}}var csr=function(){function e(){}return e}(),V6e=function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e}(),usr=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return e}();function dsr(e,t){var n=new usr;if(e!=null&&(e+=""),!e)return n;for(var r=t.width,i=t.height,a=t.overflow,o=(a==="break"||a==="breakAll")&&r!=null?{width:r,accumWidth:0,breakAll:a==="breakAll"}:null,s=qJ.lastIndex=0,l;(l=qJ.exec(e))!=null;){var c=l.index;c>s&&WJ(n,e.substring(s,c),t,o),WJ(n,l[2],t,o,l[1]),s=qJ.lastIndex}s<e.length&&WJ(n,e.substring(s,e.length),t,o);var u=[],d=0,f=0,p=t.padding,h=a==="truncate",m=t.lineOverflow==="truncate";function g(U,H,M){U.width=H,U.lineHeight=M,d+=M,f=Math.max(f,H)}e:for(var v=0;v<n.lines.length;v++){for(var y=n.lines[v],_=0,S=0,C=0;C<y.tokens.length;C++){var w=y.tokens[C],x=w.styleName&&t.rich[w.styleName]||{},T=w.textPadding=x.padding,A=T?T[1]+T[3]:0,I=w.font=x.font||t.font;w.contentHeight=Yme(I);var R=ra(x.height,w.contentHeight);if(w.innerHeight=R,T&&(R+=T[0]+T[2]),w.height=R,w.lineHeight=HM(x.lineHeight,t.lineHeight,R),w.align=x&&x.align||t.align,w.verticalAlign=x&&x.verticalAlign||"middle",m&&i!=null&&d+w.lineHeight>i){C>0?(y.tokens=y.tokens.slice(0,C),g(y,S,_),n.lines=n.lines.slice(0,v+1)):n.lines=n.lines.slice(0,v);break e}var N=x.width,P=N==null||N==="auto";if(typeof N=="string"&&N.charAt(N.length-1)==="%")w.percentWidth=N,u.push(w),w.contentWidth=Tf(w.text,I);else{if(P){var L=x.backgroundColor,$=L&&L.image;$&&($=rsr($),tH($)&&(w.width=Math.max(w.width,$.width*R/$.height)))}var D=h&&r!=null?r-S:null;D!=null&&D<w.width?!P||D<A?(w.text="",w.width=w.contentWidth=0):(w.text=osr(w.text,D-A,I,t.ellipsis,{minChar:t.truncateMinChar}),w.width=w.contentWidth=Tf(w.text,I)):w.contentWidth=Tf(w.text,I)}w.width+=A,S+=w.width,x&&(_=Math.max(_,w.lineHeight))}g(y,S,_)}n.outerWidth=n.width=ra(r,f),n.outerHeight=n.height=ra(i,d),n.contentHeight=d,n.contentWidth=f,p&&(n.outerWidth+=p[1]+p[3],n.outerHeight+=p[0]+p[2]);for(var v=0;v<u.length;v++){var w=u[v],z=w.percentWidth;w.width=parseInt(z,10)/100*n.width}return n}function WJ(e,t,n,r,i){var a=t==="",o=i&&n.rich[i]||{},s=e.lines,l=o.font||n.font,c=!1,u,d;if(r){var f=o.padding,p=f?f[1]+f[3]:0;if(o.width!=null&&o.width!=="auto"){var h=iC(o.width,r.width)+p;s.length>0&&h+r.accumWidth>r.width&&(u=t.split(`
`),c=!0),r.accumWidth=h}else{var m=Bit(t,l,r.width,r.breakAll,r.accumWidth);r.accumWidth=m.accumWidth+p,d=m.linesWidths,u=m.lines}}else u=t.split(`
`);for(var g=0;g<u.length;g++){var v=u[g],y=new csr;if(y.styleName=i,y.text=v,y.isLineHolder=!v&&!a,typeof o.width=="number"?y.width=o.width:y.width=d?d[g]:Tf(v,l),!g&&!c){var _=(s[s.length-1]||(s[0]=new V6e)).tokens,S=_.length;S===1&&_[0].isLineHolder?_[0]=y:(v||!S||a)&&_.push(y)}else s.push(new V6e([y]))}}function fsr(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var psr=t4(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function hsr(e){return fsr(e)?!!psr[e]:!0}function Bit(e,t,n,r,i){for(var a=[],o=[],s="",l="",c=0,u=0,d=0;d<e.length;d++){var f=e.charAt(d);if(f===`
`){l&&(s+=l,u+=c),a.push(s),o.push(u),s="",l="",c=0,u=0;continue}var p=Tf(f,t),h=r?!1:!hsr(f);if(a.length?u+p>n:i+u+p>n){u?(s||l)&&(h?(s||(s=l,l="",c=0,u=c),a.push(s),o.push(u-c),l+=f,c+=p,s="",u=c):(l&&(s+=l,l="",c=0),a.push(s),o.push(u),s=f,u=p)):h?(a.push(l),o.push(c),l=f,c=p):(a.push(f),o.push(p));continue}u+=p,h?(l+=f,c+=p):(l&&(s+=l,l="",c=0),s+=f)}return!a.length&&!s&&(s=e,l="",c=0),l&&(s+=l),s&&(a.push(s),o.push(u)),a.length===1&&(u+=i),{accumWidth:u,lines:a,linesWidths:o}}function n4(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function msr(e){return[e[0],e[1]]}function G6e(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function gsr(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function vsr(e){return Math.sqrt(ysr(e))}function ysr(e){return e[0]*e[0]+e[1]*e[1]}function YJ(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function bsr(e,t){var n=vsr(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function dse(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var _sr=dse;function Ssr(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var V5=Ssr;function Esr(e,t,n,r){return e[0]=t[0]+r*(n[0]-t[0]),e[1]=t[1]+r*(n[1]-t[1]),e}function Tp(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}function r5(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function i5(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var q6e=Vme,W6e=5e-5;function B2(e){return e>W6e||e<-W6e}var j2=[],Bw=[],KJ=U5(),XJ=Math.abs,nH=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return B2(this.rotation)||B2(this.x)||B2(this.y)||B2(this.scaleX-1)||B2(this.scaleY-1)||B2(this.skewX)||B2(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,n=this.needLocalTransform(),r=this.transform;if(!(n||t)){r&&(q6e(r),this.invTransform=null);return}r=r||U5(),n?this.getLocalTransform(r):q6e(r),t&&(n?H5(r,t,r):isr(r,t)),this.transform=r,this._resolveGlobalScaleRatio(r)},e.prototype._resolveGlobalScaleRatio=function(t){var n=this.globalScaleRatio;if(n!=null&&n!==1){this.getGlobalScale(j2);var r=j2[0]<0?-1:1,i=j2[1]<0?-1:1,a=((j2[0]-r)*n+r)/j2[0]||0,o=((j2[1]-i)*n+i)/j2[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||U5(),qme(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,n=[];t;)n.push(t),t=t.parent;for(;t=n.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var n=t[0]*t[0]+t[1]*t[1],r=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),a=Math.PI/2+i-Math.atan2(t[3],t[2]);r=Math.sqrt(r)*Math.cos(a),n=Math.sqrt(n),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=n,this.scaleY=r,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,n=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||U5(),H5(Bw,t.invTransform,n),n=Bw);var r=this.originX,i=this.originY;(r||i)&&(KJ[4]=r,KJ[5]=i,H5(Bw,n,KJ),Bw[4]-=r,Bw[5]-=i,n=Bw),this.setLocalTransform(n)}},e.prototype.getGlobalScale=function(t){var n=this.transform;return t=t||[],n?(t[0]=Math.sqrt(n[0]*n[0]+n[1]*n[1]),t[1]=Math.sqrt(n[2]*n[2]+n[3]*n[3]),n[0]<0&&(t[0]=-t[0]),n[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,n){var r=[t,n],i=this.invTransform;return i&&Tp(r,r,i),r},e.prototype.transformCoordToGlobal=function(t,n){var r=[t,n],i=this.transform;return i&&Tp(r,r,i),r},e.prototype.getLineScale=function(){var t=this.transform;return t&&XJ(t[0]-1)>1e-10&&XJ(t[3]-1)>1e-10?Math.sqrt(XJ(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){Csr(this,t)},e.getLocalTransform=function(t,n){n=n||[];var r=t.originX||0,i=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,c=t.rotation||0,u=t.x,d=t.y,f=t.skewX?Math.tan(t.skewX):0,p=t.skewY?Math.tan(-t.skewY):0;if(r||i||s||l){var h=r+s,m=i+l;n[4]=-h*a-f*m*o,n[5]=-m*o-p*h*a}else n[4]=n[5]=0;return n[0]=a,n[3]=o,n[1]=p*a,n[2]=f*o,c&&Gme(n,n,c),n[4]+=r+u,n[5]+=i+d,n},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),v6=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Csr(e,t){for(var n=0;n<v6.length;n++){var r=v6[n];e[r]=t[r]}}var PR={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)))},elasticOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?-.5*(n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)):n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-PR.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?PR.bounceIn(e*2)*.5:PR.bounceOut(e*2-1)*.5+.5}},Rk=Math.pow,jb=Math.sqrt,qF=1e-8,jit=1e-4,Y6e=jb(3),Nk=1/3,Og=n4(),gp=n4(),G5=n4();function Sb(e){return e>-qF&&e<qF}function zit(e){return e>qF||e<-qF}function gc(e,t,n,r,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*r+3*a*n)}function K6e(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function WF(e,t,n,r,i,a){var o=r+3*(t-n)-e,s=3*(n-t*2+e),l=3*(t-e),c=e-i,u=s*s-3*o*l,d=s*l-9*o*c,f=l*l-3*s*c,p=0;if(Sb(u)&&Sb(d))if(Sb(s))a[0]=0;else{var h=-l/s;h>=0&&h<=1&&(a[p++]=h)}else{var m=d*d-4*u*f;if(Sb(m)){var g=d/u,h=-s/o+g,v=-g/2;h>=0&&h<=1&&(a[p++]=h),v>=0&&v<=1&&(a[p++]=v)}else if(m>0){var y=jb(m),_=u*s+1.5*o*(-d+y),S=u*s+1.5*o*(-d-y);_<0?_=-Rk(-_,Nk):_=Rk(_,Nk),S<0?S=-Rk(-S,Nk):S=Rk(S,Nk);var h=(-s-(_+S))/(3*o);h>=0&&h<=1&&(a[p++]=h)}else{var C=(2*u*s-3*o*d)/(2*jb(u*u*u)),w=Math.acos(C)/3,x=jb(u),T=Math.cos(w),h=(-s-2*x*T)/(3*o),v=(-s+x*(T+Y6e*Math.sin(w)))/(3*o),A=(-s+x*(T-Y6e*Math.sin(w)))/(3*o);h>=0&&h<=1&&(a[p++]=h),v>=0&&v<=1&&(a[p++]=v),A>=0&&A<=1&&(a[p++]=A)}}return p}function Uit(e,t,n,r,i){var a=6*n-12*t+6*e,o=9*t+3*r-3*e-9*n,s=3*t-3*e,l=0;if(Sb(o)){if(zit(a)){var c=-s/a;c>=0&&c<=1&&(i[l++]=c)}}else{var u=a*a-4*o*s;if(Sb(u))i[0]=-a/(2*o);else if(u>0){var d=jb(u),c=(-a+d)/(2*o),f=(-a-d)/(2*o);c>=0&&c<=1&&(i[l++]=c),f>=0&&f<=1&&(i[l++]=f)}}return l}function d_(e,t,n,r,i,a){var o=(t-e)*i+e,s=(n-t)*i+t,l=(r-n)*i+n,c=(s-o)*i+o,u=(l-s)*i+s,d=(u-c)*i+c;a[0]=e,a[1]=o,a[2]=c,a[3]=d,a[4]=d,a[5]=u,a[6]=l,a[7]=r}function wsr(e,t,n,r,i,a,o,s,l,c,u){var d,f=.005,p=1/0,h,m,g,v;Og[0]=l,Og[1]=c;for(var y=0;y<1;y+=.05)gp[0]=gc(e,n,i,o,y),gp[1]=gc(t,r,a,s,y),g=V5(Og,gp),g<p&&(d=y,p=g);p=1/0;for(var _=0;_<32&&!(f<jit);_++)h=d-f,m=d+f,gp[0]=gc(e,n,i,o,h),gp[1]=gc(t,r,a,s,h),g=V5(gp,Og),h>=0&&g<p?(d=h,p=g):(G5[0]=gc(e,n,i,o,m),G5[1]=gc(t,r,a,s,m),v=V5(G5,Og),m<=1&&v<p?(d=m,p=v):f*=.5);return jb(p)}function xsr(e,t,n,r,i,a,o,s,l){for(var c=e,u=t,d=0,f=1/l,p=1;p<=l;p++){var h=p*f,m=gc(e,n,i,o,h),g=gc(t,r,a,s,h),v=m-c,y=g-u;d+=Math.sqrt(v*v+y*y),c=m,u=g}return d}function cd(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function X6e(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function Tsr(e,t,n,r,i){var a=e-2*t+n,o=2*(t-e),s=e-r,l=0;if(Sb(a)){if(zit(o)){var c=-s/o;c>=0&&c<=1&&(i[l++]=c)}}else{var u=o*o-4*a*s;if(Sb(u)){var c=-o/(2*a);c>=0&&c<=1&&(i[l++]=c)}else if(u>0){var d=jb(u),c=(-o+d)/(2*a),f=(-o-d)/(2*a);c>=0&&c<=1&&(i[l++]=c),f>=0&&f<=1&&(i[l++]=f)}}return l}function Hit(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function YF(e,t,n,r,i){var a=(t-e)*r+e,o=(n-t)*r+t,s=(o-a)*r+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=n}function Isr(e,t,n,r,i,a,o,s,l){var c,u=.005,d=1/0;Og[0]=o,Og[1]=s;for(var f=0;f<1;f+=.05){gp[0]=cd(e,n,i,f),gp[1]=cd(t,r,a,f);var p=V5(Og,gp);p<d&&(c=f,d=p)}d=1/0;for(var h=0;h<32&&!(u<jit);h++){var m=c-u,g=c+u;gp[0]=cd(e,n,i,m),gp[1]=cd(t,r,a,m);var p=V5(gp,Og);if(m>=0&&p<d)c=m,d=p;else{G5[0]=cd(e,n,i,g),G5[1]=cd(t,r,a,g);var v=V5(G5,Og);g<=1&&v<d?(c=g,d=v):u*=.5}}return jb(d)}function Asr(e,t,n,r,i,a,o){for(var s=e,l=t,c=0,u=1/o,d=1;d<=o;d++){var f=d*u,p=cd(e,n,i,f),h=cd(t,r,a,f),m=p-s,g=h-l;c+=Math.sqrt(m*m+g*g),s=p,l=h}return c}var Rsr=/cubic-bezier\(([0-9,\.e ]+)\)/;function Vit(e){var t=e&&Rsr.exec(e);if(t){var n=t[1].split(","),r=+Fg(n[0]),i=+Fg(n[1]),a=+Fg(n[2]),o=+Fg(n[3]);if(isNaN(r+i+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:WF(0,r,a,1,l,s)&&gc(0,i,o,1,s[0])}}}var Nsr=function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Ru,this.ondestroy=t.ondestroy||Ru,this.onrestart=t.onrestart||Ru,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,n){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=n;return}var r=this._life,i=t-this._startTime-this._pausedTime,a=i/r;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%r;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=hi(t)?t:PR[t]||Vit(t)},e}(),Z6e={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function zb(e){return e=Math.round(e),e<0?0:e>255?255:e}function fse(e){return e<0?0:e>1?1:e}function ZJ(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?zb(parseFloat(t)/100*255):zb(parseInt(t,10))}function kR(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?fse(parseFloat(t)/100):fse(parseFloat(t))}function QJ(e,t,n){return n<0?n+=1:n>1&&(n-=1),n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function Ok(e,t,n){return e+(t-e)*n}function sp(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function pse(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Git=new E8(20),Lk=null;function jw(e,t){Lk&&pse(Lk,t),Lk=Git.put(e,Lk||t.slice())}function Y1(e,t){if(e){t=t||[];var n=Git.get(e);if(n)return pse(t,n);e=e+"";var r=e.replace(/ /g,"").toLowerCase();if(r in Z6e)return pse(t,Z6e[r]),jw(e,t),t;var i=r.length;if(r.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(r.slice(1,4),16);if(!(a>=0&&a<=4095)){sp(t,0,0,0,1);return}return sp(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),jw(e,t),t}else if(i===7||i===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){sp(t,0,0,0,1);return}return sp(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(r.slice(7),16)/255:1),jw(e,t),t}return}var o=r.indexOf("("),s=r.indexOf(")");if(o!==-1&&s+1===i){var l=r.substr(0,o),c=r.substr(o+1,s-(o+1)).split(","),u=1;switch(l){case"rgba":if(c.length!==4)return c.length===3?sp(t,+c[0],+c[1],+c[2],1):sp(t,0,0,0,1);u=kR(c.pop());case"rgb":if(c.length>=3)return sp(t,ZJ(c[0]),ZJ(c[1]),ZJ(c[2]),c.length===3?u:kR(c[3])),jw(e,t),t;sp(t,0,0,0,1);return;case"hsla":if(c.length!==4){sp(t,0,0,0,1);return}return c[3]=kR(c[3]),Q6e(c,t),jw(e,t),t;case"hsl":if(c.length!==3){sp(t,0,0,0,1);return}return Q6e(c,t),jw(e,t),t;default:return}}sp(t,0,0,0,1)}}function Q6e(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=kR(e[1]),i=kR(e[2]),a=i<=.5?i*(r+1):i+r-i*r,o=i*2-a;return t=t||[],sp(t,zb(QJ(o,a,n+1/3)*255),zb(QJ(o,a,n)*255),zb(QJ(o,a,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function J6e(e,t){var n=Y1(e);if(n){for(var r=0;r<3;r++)n[r]=n[r]*(1-t)|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return rH(n,n.length===4?"rgba":"rgb")}}function Osr(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=Y1(t[i]),s=Y1(t[a]),l=r-i,c=rH([zb(Ok(o[0],s[0],l)),zb(Ok(o[1],s[1],l)),zb(Ok(o[2],s[2],l)),fse(Ok(o[3],s[3],l))],"rgba");return n?{color:c,leftIndex:i,rightIndex:a,value:r}:c}}function rH(e,t){if(!(!e||!e.length)){var n=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(n+=","+e[3]),t+"("+n+")"}}function KF(e,t){var n=Y1(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var eOe=new E8(100);function tOe(e){if(yr(e)){var t=eOe.get(e);return t||(t=J6e(e,-.1),eOe.put(e,t)),t}else if(QU(e)){var n=Vn({},e);return n.colorStops=Nr(e.colorStops,function(r){return{offset:r.offset,color:J6e(r.color,-.1)}}),n}return e}function Lsr(e){return e.type==="linear"}function Psr(e){return e.type==="radial"}(function(){return ci.hasGlobalWindow&&hi(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}})();var hse=Array.prototype.slice;function y1(e,t,n){return(t-e)*n+e}function JJ(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=y1(t[a],n[a],r);return e}function ksr(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=y1(t[o][s],n[o][s],r)}return e}function Pk(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+n[a]*r;return e}function nOe(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+n[o][s]*r}return e}function Msr(e,t){for(var n=e.length,r=t.length,i=n>r?t:e,a=Math.min(n,r),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(n,r);s++)i.push({offset:o.offset,color:o.color.slice()})}function Dsr(e,t,n){var r=e,i=t;if(!(!r.push||!i.push)){var a=r.length,o=i.length;if(a!==o){var s=a>o;if(s)r.length=o;else for(var l=a;l<o;l++)r.push(n===1?i[l]:hse.call(i[l]))}for(var c=r[0]&&r[0].length,l=0;l<r.length;l++)if(n===1)isNaN(r[l])&&(r[l]=i[l]);else for(var u=0;u<c;u++)isNaN(r[l][u])&&(r[l][u]=i[l][u])}}function VM(e){if(Od(e)){var t=e.length;if(Od(e[0])){for(var n=[],r=0;r<t;r++)n.push(hse.call(e[r]));return n}return hse.call(e)}return e}function GM(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],"rgba("+e.join(",")+")"}function $sr(e){return Od(e&&e[0])?2:1}var kk=0,qM=1,qit=2,PA=3,mse=4,gse=5,rOe=6;function iOe(e){return e===mse||e===gse}function Mk(e){return e===qM||e===qit}var NI=[0,0,0,0],Fsr=function(){function e(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,n,r){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=rOe,l=n;if(Od(n)){var c=$sr(n);s=c,(c===1&&!is(n[0])||c===2&&!is(n[0][0]))&&(o=!0)}else if(is(n)&&!GF(n))s=kk;else if(yr(n))if(!isNaN(+n))s=kk;else{var u=Y1(n);u&&(l=u,s=PA)}else if(QU(n)){var d=Vn({},l);d.colorStops=Nr(n.colorStops,function(p){return{offset:p.offset,color:Y1(p.color)}}),Lsr(n)?s=mse:Psr(n)&&(s=gse),l=d}a===0?this.valType=s:(s!==this.valType||s===rOe)&&(o=!0),this.discrete=this.discrete||o;var f={time:t,value:l,rawValue:n,percent:0};return r&&(f.easing=r,f.easingFunc=hi(r)?r:PR[r]||Vit(r)),i.push(f),f},e.prototype.prepare=function(t,n){var r=this.keyframes;this._needsSort&&r.sort(function(m,g){return m.time-g.time});for(var i=this.valType,a=r.length,o=r[a-1],s=this.discrete,l=Mk(i),c=iOe(i),u=0;u<a;u++){var d=r[u],f=d.value,p=o.value;d.percent=d.time/t,s||(l&&u!==a-1?Dsr(f,p,i):c&&Msr(f.colorStops,p.colorStops))}if(!s&&i!==gse&&n&&this.needsAnimate()&&n.needsAnimate()&&i===n.valType&&!n._finished){this._additiveTrack=n;for(var h=r[0].value,u=0;u<a;u++)i===kk?r[u].additiveValue=r[u].value-h:i===PA?r[u].additiveValue=Pk([],r[u].value,h,-1):Mk(i)&&(r[u].additiveValue=i===qM?Pk([],r[u].value,h,-1):nOe([],r[u].value,h,-1))}},e.prototype.step=function(t,n){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var r=this._additiveTrack!=null,i=r?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,c=a===PA,u,d=this._lastFr,f=Math.min,p,h;if(s===1)p=h=o[0];else{if(n<0)u=0;else if(n<this._lastFrP){var m=f(d+1,s-1);for(u=m;u>=0&&!(o[u].percent<=n);u--);u=f(u,s-2)}else{for(u=d;u<s&&!(o[u].percent>n);u++);u=f(u-1,s-2)}h=o[u+1],p=o[u]}if(p&&h){this._lastFr=u,this._lastFrP=n;var g=h.percent-p.percent,v=g===0?1:f((n-p.percent)/g,1);h.easingFunc&&(v=h.easingFunc(v));var y=r?this._additiveValue:c?NI:t[l];if((Mk(a)||c)&&!y&&(y=this._additiveValue=[]),this.discrete)t[l]=v<1?p.rawValue:h.rawValue;else if(Mk(a))a===qM?JJ(y,p[i],h[i],v):ksr(y,p[i],h[i],v);else if(iOe(a)){var _=p[i],S=h[i],C=a===mse;t[l]={type:C?"linear":"radial",x:y1(_.x,S.x,v),y:y1(_.y,S.y,v),colorStops:Nr(_.colorStops,function(x,T){var A=S.colorStops[T];return{offset:y1(x.offset,A.offset,v),color:GM(JJ([],x.color,A.color,v))}}),global:S.global},C?(t[l].x2=y1(_.x2,S.x2,v),t[l].y2=y1(_.y2,S.y2,v)):t[l].r=y1(_.r,S.r,v)}else if(c)JJ(y,p[i],h[i],v),r||(t[l]=GM(y));else{var w=y1(p[i],h[i],v);r?this._additiveValue=w:t[l]=w}r&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var n=this.valType,r=this.propName,i=this._additiveValue;n===kk?t[r]=t[r]+i:n===PA?(Y1(t[r],NI),Pk(NI,NI,i,1),t[r]=GM(NI)):n===qM?Pk(t[r],t[r],i,1):n===qit&&nOe(t[r],t[r],i,1)},e}(),Kme=function(){function e(t,n,r,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=n,n&&i){zme("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=r}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,n,r){return this.whenWithKeys(t,n,rs(n),r)},e.prototype.whenWithKeys=function(t,n,r,i){for(var a=this._tracks,o=0;o<r.length;o++){var s=r[o],l=a[s];if(!l){l=a[s]=new Fsr(s);var c=void 0,u=this._getAdditiveTrack(s);if(u){var d=u.keyframes,f=d[d.length-1];c=f&&f.value,u.valType===PA&&c&&(c=GM(c))}else c=this._target[s];if(c==null)continue;t>0&&l.addKeyframe(0,VM(c),i),this._trackKeys.push(s)}l.addKeyframe(t,VM(n[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var n=t.length,r=0;r<n;r++)t[r].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,n=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,n)for(var r=0;r<n.length;r++)n[r].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,n=this._trackKeys,r=0;r<n.length;r++)t[n[r]].setFinished()},e.prototype._getAdditiveTrack=function(t){var n,r=this._additiveAnimators;if(r)for(var i=0;i<r.length;i++){var a=r[i].getTrack(t);a&&(n=a)}return n},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var n=this,r=[],i=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),c=s.keyframes,u=c.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var d=c[u-1];d&&(n._target[s.propName]=d.rawValue),s.setFinished()}else r.push(s)}if(r.length||this._force){var f=new Nsr({life:i,loop:this._loop,delay:this._delay||0,onframe:function(p){n._started=2;var h=n._additiveAnimators;if(h){for(var m=!1,g=0;g<h.length;g++)if(h[g]._clip){m=!0;break}m||(n._additiveAnimators=null)}for(var g=0;g<r.length;g++)r[g].step(n._target,p);var v=n._onframeCbs;if(v)for(var g=0;g<v.length;g++)v[g](n._target,p)},ondestroy:function(){n._doneCallback()}});this._clip=f,this.animation&&this.animation.addClip(f),t&&f.setEasing(t)}else this._doneCallback();return this}},e.prototype.stop=function(t){if(this._clip){var n=this._clip;t&&n.onframe(1),this._abortedCallback()}},e.prototype.delay=function(t){return this._delay=t,this},e.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},e.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},e.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(t){return this._tracks[t]},e.prototype.getTracks=function(){var t=this;return Nr(this._trackKeys,function(n){return t._tracks[n]})},e.prototype.stopTracks=function(t,n){if(!t.length||!this._clip)return!0;for(var r=this._tracks,i=this._trackKeys,a=0;a<t.length;a++){var o=r[t[a]];o&&!o.isFinished()&&(n?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<i.length;a++)if(!r[i[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveTo=function(t,n,r){if(t){n=n||this._trackKeys;for(var i=0;i<n.length;i++){var a=n[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[r?0:s.length-1];l&&(t[a]=VM(l.rawValue))}}}},e.prototype.__changeFinalValue=function(t,n){n=n||rs(t);for(var r=0;r<n.length;r++){var i=n[r],a=this._tracks[i];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e}(),Om=function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,n,r,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof n=="function"&&(i=r,r=n,n=null),!r||!t)return this;var o=this._$eventProcessor;n!=null&&o&&o.normalizeQuery&&(n=o.normalizeQuery(n)),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===r)return this;var l={h:r,query:n,ctx:i||this,callAtLast:r.zrEventfulCallAtLast},c=a[t].length-1,u=a[t][c];return u&&u.callAtLast?a[t].splice(c,0,l):a[t].push(l),this},e.prototype.isSilent=function(t){var n=this._$handlers;return!n||!n[t]||!n[t].length},e.prototype.off=function(t,n){var r=this._$handlers;if(!r)return this;if(!t)return this._$handlers={},this;if(n){if(r[t]){for(var i=[],a=0,o=r[t].length;a<o;a++)r[t][a].h!==n&&i.push(r[t][a]);r[t]=i}r[t]&&r[t].length===0&&delete r[t]}else delete r[t];return this},e.prototype.trigger=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=n.length,s=i.length,l=0;l<s;l++){var c=i[l];if(!(a&&a.filter&&c.query!=null&&!a.filter(t,c.query)))switch(o){case 0:c.h.call(c.ctx);break;case 1:c.h.call(c.ctx,n[0]);break;case 2:c.h.call(c.ctx,n[0],n[1]);break;default:c.h.apply(c.ctx,n);break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e.prototype.triggerWithContext=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=n.length,s=n[o-1],l=i.length,c=0;c<l;c++){var u=i[c];if(!(a&&a.filter&&u.query!=null&&!a.filter(t,u.query)))switch(o){case 0:u.h.call(s);break;case 1:u.h.call(s,n[0]);break;case 2:u.h.call(s,n[0],n[1]);break;default:u.h.apply(s,n.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e}(),Wit=1;ci.hasGlobalWindow&&(Wit=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var XF=Wit,vse=.4,yse="#333",bse="#ccc",Bsr="#eee",bf=1,kA=2,Tx=4,eee="__zr_normal__",tee=v6.concat(["ignore"]),jsr=t4(v6,function(e,t){return e[t]=!0,e},{ignore:!1}),zw={},zsr=new Na(0,0,0,0),iH=function(){function e(t){this.id=Iit(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,n,r){switch(this.draggable){case"horizontal":n=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=n,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var n=this._textContent;if(n&&(!n.ignore||t)){this.textConfig||(this.textConfig={});var r=this.textConfig,i=r.local,a=n.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var c=!1;if(a.copyTransform(n),r.position!=null){var u=zsr;r.layoutRect?u.copy(r.layoutRect):u.copy(this.getBoundingRect()),i||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(zw,r,u):Dit(zw,r,u),a.x=zw.x,a.y=zw.y,o=zw.align,s=zw.verticalAlign;var d=r.origin;if(d&&r.rotation!=null){var f=void 0,p=void 0;d==="center"?(f=u.width*.5,p=u.height*.5):(f=iC(d[0],u.width),p=iC(d[1],u.height)),c=!0,a.originX=-a.x+f+(i?0:u.x),a.originY=-a.y+p+(i?0:u.y)}}r.rotation!=null&&(a.rotation=r.rotation);var h=r.offset;h&&(a.x+=h[0],a.y+=h[1],c||(a.originX=-h[0],a.originY=-h[1]));var m=r.inside==null?typeof r.position=="string"&&r.position.indexOf("inside")>=0:r.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),v=void 0,y=void 0,_=void 0;m&&this.canBeInsideText()?(v=r.insideFill,y=r.insideStroke,(v==null||v==="auto")&&(v=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(v),_=!0)):(v=r.outsideFill,y=r.outsideStroke,(v==null||v==="auto")&&(v=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(v),_=!0)),v=v||"#000",(v!==g.fill||y!==g.stroke||_!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=v,g.stroke=y,g.autoStroke=_,g.align=o,g.verticalAlign=s,n.setDefaultTextStyle(g)),n.__dirty|=bf,l&&n.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?bse:yse},e.prototype.getOutsideStroke=function(t){var n=this.__zr&&this.__zr.getBackgroundColor(),r=typeof n=="string"&&Y1(n);r||(r=[255,255,255,1]);for(var i=r[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)r[o]=r[o]*i+(a?0:255)*(1-i);return r[3]=1,rH(r,"rgba")},e.prototype.traverse=function(t,n){},e.prototype.attrKV=function(t,n){t==="textConfig"?this.setTextConfig(n):t==="textContent"?this.setTextContent(n):t==="clipPath"?this.setClipPath(n):t==="extra"?(this.extra=this.extra||{},Vn(this.extra,n)):this[t]=n},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,n){if(typeof t=="string")this.attrKV(t,n);else if(Fr(t))for(var r=t,i=rs(r),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,t[o])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var n=this._normalState,r=0;r<this.animators.length;r++){var i=this.animators[r],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==eee)){var o=i.targetName,s=o?n[o]:n;i.saveTo(s)}}},e.prototype._innerSaveToNormal=function(t){var n=this._normalState;n||(n=this._normalState={}),t.textConfig&&!n.textConfig&&(n.textConfig=this.textConfig),this._savePrimaryToNormal(t,n,tee)},e.prototype._savePrimaryToNormal=function(t,n,r){for(var i=0;i<r.length;i++){var a=r[i];t[a]!=null&&!(a in n)&&(n[a]=this[a])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var n=this.states;return n[t]||(n[t]={}),n[t]},e.prototype.clearStates=function(t){this.useState(eee,!1,t)},e.prototype.useState=function(t,n,r,i){var a=t===eee,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(ja(s,t)>=0&&(n||s.length===1))){var c;if(this.stateProxy&&!a&&(c=this.stateProxy(t)),c||(c=this.states&&this.states[t]),!c&&!a){zme("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(c);var u=!!(c&&c.hoverLayer||i);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,c,this._normalState,n,!r&&!this.__inHover&&l&&l.duration>0,l);var d=this._textContent,f=this._textGuide;return d&&d.useState(t,n,r,u),f&&f.useState(t,n,r,u),a?(this.currentStates=[],this._normalState={}):n?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~bf),c}}},e.prototype.useStates=function(t,n,r){if(!t.length)this.clearStates();else{var i=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(t[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var c=t[l],u=void 0;this.stateProxy&&(u=this.stateProxy(c,t)),u||(u=this.states[c]),u&&i.push(u)}var d=i[o-1],f=!!(d&&d.hoverLayer||r);f&&this._toggleHoverLayerFlag(!0);var p=this._mergeStates(i),h=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(t.join(","),p,this._normalState,!1,!n&&!this.__inHover&&h&&h.duration>0,h);var m=this._textContent,g=this._textGuide;m&&m.useStates(t,n,f),g&&g.useStates(t,n,f),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~bf)}},e.prototype.isSilent=function(){for(var t=this.silent,n=this.parent;!t&&n;){if(n.silent){t=!0;break}n=n.parent}return t},e.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var n=this.animators[t];n.targetName&&n.changeTarget(this[n.targetName])}},e.prototype.removeState=function(t){var n=ja(this.currentStates,t);if(n>=0){var r=this.currentStates.slice();r.splice(n,1),this.useStates(r)}},e.prototype.replaceState=function(t,n,r){var i=this.currentStates.slice(),a=ja(i,t),o=ja(i,n)>=0;a>=0?o?i.splice(a,1):i[a]=n:r&&!o&&i.push(n),this.useStates(i)},e.prototype.toggleState=function(t,n){n?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var n={},r,i=0;i<t.length;i++){var a=t[i];Vn(n,a),a.textConfig&&(r=r||{},Vn(r,a.textConfig))}return r&&(n.textConfig=r),n},e.prototype._applyStateObj=function(t,n,r,i,a,o){var s=!(n&&i);n&&n.textConfig?(this.textConfig=Vn({},i?this.textConfig:r.textConfig),Vn(this.textConfig,n.textConfig)):s&&r.textConfig&&(this.textConfig=r.textConfig);for(var l={},c=!1,u=0;u<tee.length;u++){var d=tee[u],f=a&&jsr[d];n&&n[d]!=null?f?(c=!0,l[d]=n[d]):this[d]=n[d]:s&&r[d]!=null&&(f?(c=!0,l[d]=r[d]):this[d]=r[d])}if(!a)for(var u=0;u<this.animators.length;u++){var p=this.animators[u],h=p.targetName;p.getLoop()||p.__changeFinalValue(h?(n||r)[h]:n||r)}c&&this._transitionState(t,l,o)},e.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var n=this.__zr;n&&t.addSelfToZr(n),t.__zr=n,t.__hostTarget=this}},e.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},e.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(t){var n=this._textContent;n!==t&&(n&&n!==t&&this.removeTextContent(),t.innerTransformable=new nH,this._attachComponent(t),this._textContent=t,this.markRedraw())},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),Vn(this.textConfig,t),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=bf;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var n=this._textContent,r=this._textGuide;n&&(n.__inHover=t),r&&(r.__inHover=t)},e.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var n=this.animators;if(n)for(var r=0;r<n.length;r++)t.animation.addAnimator(n[r]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var n=this.animators;if(n)for(var r=0;r<n.length;r++)t.animation.removeAnimator(n[r]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},e.prototype.animate=function(t,n,r){var i=t?this[t]:this,a=new Kme(i,n,r);return t&&(a.targetName=t),this.addAnimator(a,t),a},e.prototype.addAnimator=function(t,n){var r=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(n)}).done(function(){var a=i.animators,o=ja(a,t);o>=0&&a.splice(o,1)}),this.animators.push(t),r&&r.animation.addAnimator(t),r&&r.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,n){for(var r=this.animators,i=r.length,a=[],o=0;o<i;o++){var s=r[o];!t||t===s.scope?s.stop(n):a.push(s)}return this.animators=a,this},e.prototype.animateTo=function(t,n,r){nee(this,t,n,r)},e.prototype.animateFrom=function(t,n,r){nee(this,t,n,r,!0)},e.prototype._transitionState=function(t,n,r,i){for(var a=nee(this,n,r,i),o=0;o<a.length;o++)a[o].__fromStateTransition=t},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=bf;function n(r,i,a,o){Object.defineProperty(t,r,{get:function(){if(!this[i]){var l=this[i]=[];s(this,l)}return this[i]},set:function(l){this[a]=l[0],this[o]=l[1],this[i]=l,s(this,l)}});function s(l,c){Object.defineProperty(c,0,{get:function(){return l[a]},set:function(u){l[a]=u}}),Object.defineProperty(c,1,{get:function(){return l[o]},set:function(u){l[o]=u}})}}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),e}();Cv(iH,Om);Cv(iH,nH);function nee(e,t,n,r,i){n=n||{};var a=[];Yit(e,"",e,t,n,r,a,i);var o=a.length,s=!1,l=n.done,c=n.aborted,u=function(){s=!0,o--,o<=0&&(s?l&&l():c&&c())},d=function(){o--,o<=0&&(s?l&&l():c&&c())};o||l&&l(),a.length>0&&n.during&&a[0].during(function(h,m){n.during(m)});for(var f=0;f<a.length;f++){var p=a[f];u&&p.done(u),d&&p.aborted(d),n.force&&p.duration(n.duration),p.start(n.easing)}return a}function ree(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function Usr(e){return Od(e[0])}function Hsr(e,t,n){if(Od(t[n]))if(Od(e[n])||(e[n]=[]),Ld(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),ree(e[n],t[n],r))}else{var i=t[n],a=e[n],o=i.length;if(Usr(i))for(var s=i[0].length,l=0;l<o;l++)a[l]?ree(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else ree(a,i,o);a.length=i.length}else e[n]=t[n]}function Vsr(e,t){return e===t||Od(e)&&Od(t)&&Gsr(e,t)}function Gsr(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function Yit(e,t,n,r,i,a,o,s){for(var l=rs(r),c=i.duration,u=i.delay,d=i.additive,f=i.setToFinal,p=!Fr(a),h=e.animators,m=[],g=0;g<l.length;g++){var v=l[g],y=r[v];if(y!=null&&n[v]!=null&&(p||a[v]))if(Fr(y)&&!Od(y)&&!QU(y)){if(t){s||(n[v]=y,e.updateDuringAnimation(t));continue}Yit(e,v,n[v],y,i,a&&a[v],o,s)}else m.push(v);else s||(n[v]=y,e.updateDuringAnimation(t),m.push(v))}var _=m.length;if(!d&&_)for(var S=0;S<h.length;S++){var C=h[S];if(C.targetName===t){var w=C.stopTracks(m);if(w){var x=ja(h,C);h.splice(x,1)}}}if(i.force||(m=mc(m,function(R){return!Vsr(r[R],n[R])}),_=m.length),_>0||i.force&&!o.length){var T=void 0,A=void 0,I=void 0;if(s){A={},f&&(T={});for(var S=0;S<_;S++){var v=m[S];A[v]=n[v],f?T[v]=r[v]:n[v]=r[v]}}else if(f){I={};for(var S=0;S<_;S++){var v=m[S];I[v]=VM(n[v]),Hsr(n,r,v)}}var C=new Kme(n,!1,!1,d?mc(h,function(N){return N.targetName===t}):null);C.targetName=t,i.scope&&(C.scope=i.scope),f&&T&&C.whenWithKeys(0,T,m),I&&C.whenWithKeys(0,I,m),C.whenWithKeys(c??500,s?A:r,m).delay(u||0),e.addAnimator(C,t),o.push(C)}}var _se="__zr_style_"+Math.round(Math.random()*10),vE={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},aH={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};vE[_se]=!0;var aOe=["z","z2","invisible"],qsr=["invisible"],r4=function(e){tr(t,e);function t(n){return e.call(this,n)||this}return t.prototype._init=function(n){for(var r=rs(n),i=0;i<r.length;i++){var a=r[i];a==="style"?this.useStyle(n[a]):e.prototype.attrKV.call(this,a,n[a])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(n,r,i,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&Wsr(this,n,r)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(n,r){return this.rectContain(n,r)},t.prototype.traverse=function(n,r){n.call(r,this)},t.prototype.rectContain=function(n,r){var i=this.transformCoordToLocal(n,r),a=this.getBoundingRect();return a.contain(i[0],i[1])},t.prototype.getPaintRect=function(){var n=this._paintRect;if(!this._paintRect||this.__dirty){var r=this.transform,i=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;n=this._paintRect||(this._paintRect=new Na(0,0,0,0)),r?Na.applyTransform(n,i,r):n.copy(i),(o||s||l)&&(n.width+=o*2+Math.abs(s),n.height+=o*2+Math.abs(l),n.x=Math.min(n.x,n.x+s-o),n.y=Math.min(n.y,n.y+l-o));var c=this.dirtyRectTolerance;n.isZero()||(n.x=Math.floor(n.x-c),n.y=Math.floor(n.y-c),n.width=Math.ceil(n.width+1+c*2),n.height=Math.ceil(n.height+1+c*2))}return n},t.prototype.setPrevPaintRect=function(n){n?(this._prevPaintRect=this._prevPaintRect||new Na(0,0,0,0),this._prevPaintRect.copy(n)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(n){return this.animate("style",n)},t.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(n,r){n!=="style"?e.prototype.attrKV.call(this,n,r):this.style?this.setStyle(r):this.useStyle(r)},t.prototype.setStyle=function(n,r){return typeof n=="string"?this.style[n]=r:Vn(this.style,n),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(n){n||this.markRedraw(),this.__dirty|=kA,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&kA)},t.prototype.styleUpdated=function(){this.__dirty&=~kA},t.prototype.createStyle=function(n){return JU(vE,n)},t.prototype.useStyle=function(n){n[_se]||(n=this.createStyle(n)),this.__inHover?this.__hoverStyle=n:this.style=n,this.dirtyStyle()},t.prototype.isStyleObject=function(n){return n[_se]},t.prototype._innerSaveToNormal=function(n){e.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.style&&!r.style&&(r.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(n,r,aOe)},t.prototype._applyStateObj=function(n,r,i,a,o,s){e.prototype._applyStateObj.call(this,n,r,i,a,o,s);var l=!(r&&a),c;if(r&&r.style?o?a?c=r.style:(c=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(c,r.style)):(c=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(c,r.style)):l&&(c=i.style),c)if(o){var u=this.style;if(this.style=this.createStyle(l?{}:u),l)for(var d=rs(u),f=0;f<d.length;f++){var p=d[f];p in c&&(c[p]=c[p],this.style[p]=u[p])}for(var h=rs(c),f=0;f<h.length;f++){var p=h[f];this.style[p]=this.style[p]}this._transitionState(n,{style:c},s,this.getAnimationStyleProps())}else this.useStyle(c);for(var m=this.__inHover?qsr:aOe,f=0;f<m.length;f++){var p=m[f];r&&r[p]!=null?this[p]=r[p]:l&&i[p]!=null&&(this[p]=i[p])}},t.prototype._mergeStates=function(n){for(var r=e.prototype._mergeStates.call(this,n),i,a=0;a<n.length;a++){var o=n[a];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(r.style=i),r},t.prototype._mergeStyle=function(n,r){return Vn(n,r),n},t.prototype.getAnimationStyleProps=function(){return aH},t.initDefaultProps=function(){var n=t.prototype;n.type="displayable",n.invisible=!1,n.z=0,n.z2=0,n.zlevel=0,n.culling=!1,n.cursor="pointer",n.rectHover=!1,n.incremental=!1,n._rect=null,n.dirtyRectTolerance=0,n.__dirty=bf|kA}(),t}(iH),iee=new Na(0,0,0,0),aee=new Na(0,0,0,0);function Wsr(e,t,n){return iee.copy(e.getBoundingRect()),e.transform&&iee.applyTransform(e.transform),aee.width=t,aee.height=n,!iee.intersect(aee)}var ud=Math.min,dd=Math.max,oee=Math.sin,see=Math.cos,z2=Math.PI*2,Dk=n4(),$k=n4(),Fk=n4();function Kit(e,t,n){if(e.length!==0){for(var r=e[0],i=r[0],a=r[0],o=r[1],s=r[1],l=1;l<e.length;l++)r=e[l],i=ud(i,r[0]),a=dd(a,r[0]),o=ud(o,r[1]),s=dd(s,r[1]);t[0]=i,t[1]=o,n[0]=a,n[1]=s}}function oOe(e,t,n,r,i,a){i[0]=ud(e,n),i[1]=ud(t,r),a[0]=dd(e,n),a[1]=dd(t,r)}var sOe=[],lOe=[];function Ysr(e,t,n,r,i,a,o,s,l,c){var u=Uit,d=gc,f=u(e,n,i,o,sOe);l[0]=1/0,l[1]=1/0,c[0]=-1/0,c[1]=-1/0;for(var p=0;p<f;p++){var h=d(e,n,i,o,sOe[p]);l[0]=ud(h,l[0]),c[0]=dd(h,c[0])}f=u(t,r,a,s,lOe);for(var p=0;p<f;p++){var m=d(t,r,a,s,lOe[p]);l[1]=ud(m,l[1]),c[1]=dd(m,c[1])}l[0]=ud(e,l[0]),c[0]=dd(e,c[0]),l[0]=ud(o,l[0]),c[0]=dd(o,c[0]),l[1]=ud(t,l[1]),c[1]=dd(t,c[1]),l[1]=ud(s,l[1]),c[1]=dd(s,c[1])}function Ksr(e,t,n,r,i,a,o,s){var l=Hit,c=cd,u=dd(ud(l(e,n,i),1),0),d=dd(ud(l(t,r,a),1),0),f=c(e,n,i,u),p=c(t,r,a,d);o[0]=ud(e,i,f),o[1]=ud(t,a,p),s[0]=dd(e,i,f),s[1]=dd(t,a,p)}function Xsr(e,t,n,r,i,a,o,s,l){var c=r5,u=i5,d=Math.abs(i-a);if(d%z2<1e-4&&d>1e-4){s[0]=e-n,s[1]=t-r,l[0]=e+n,l[1]=t+r;return}if(Dk[0]=see(i)*n+e,Dk[1]=oee(i)*r+t,$k[0]=see(a)*n+e,$k[1]=oee(a)*r+t,c(s,Dk,$k),u(l,Dk,$k),i=i%z2,i<0&&(i=i+z2),a=a%z2,a<0&&(a=a+z2),i>a&&!o?a+=z2:i<a&&o&&(i+=z2),o){var f=a;a=i,i=f}for(var p=0;p<a;p+=Math.PI/2)p>i&&(Fk[0]=see(p)*n+e,Fk[1]=oee(p)*r+t,c(s,Fk,s),u(l,Fk,l))}var $a={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},U2=[],H2=[],og=[],yy=[],sg=[],lg=[],lee=Math.min,cee=Math.max,V2=Math.cos,G2=Math.sin,o1=Math.abs,Sse=Math.PI,By=Sse*2,uee=typeof Float32Array<"u",OI=[];function dee(e){var t=Math.round(e/Sse*1e8)/1e8;return t%2*Sse}function Zsr(e,t){var n=dee(e[0]);n<0&&(n+=By);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=By?i=n+By:t&&n-i>=By?i=n-By:!t&&n>i?i=n+(By-dee(n-i)):t&&n<i&&(i=n-(By-dee(i-n))),e[0]=n,e[1]=i}var f_=function(){function e(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(t,n,r){r=r||0,r>0&&(this._ux=o1(r/XF/t)||0,this._uy=o1(r/XF/n)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,n){return this._drawPendingPt(),this.addData($a.M,t,n),this._ctx&&this._ctx.moveTo(t,n),this._x0=t,this._y0=n,this._xi=t,this._yi=n,this},e.prototype.lineTo=function(t,n){var r=o1(t-this._xi),i=o1(n-this._yi),a=r>this._ux||i>this._uy;if(this.addData($a.L,t,n),this._ctx&&a&&this._ctx.lineTo(t,n),a)this._xi=t,this._yi=n,this._pendingPtDist=0;else{var o=r*r+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=n,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,n,r,i,a,o){return this._drawPendingPt(),this.addData($a.C,t,n,r,i,a,o),this._ctx&&this._ctx.bezierCurveTo(t,n,r,i,a,o),this._xi=a,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,n,r,i){return this._drawPendingPt(),this.addData($a.Q,t,n,r,i),this._ctx&&this._ctx.quadraticCurveTo(t,n,r,i),this._xi=r,this._yi=i,this},e.prototype.arc=function(t,n,r,i,a,o){this._drawPendingPt(),OI[0]=i,OI[1]=a,Zsr(OI,o),i=OI[0],a=OI[1];var s=a-i;return this.addData($a.A,t,n,r,r,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,n,r,i,a,o),this._xi=V2(a)*r+t,this._yi=G2(a)*r+n,this},e.prototype.arcTo=function(t,n,r,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,n,r,i,a),this},e.prototype.rect=function(t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,n,r,i),this.addData($a.R,t,n,r,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData($a.Z);var t=this._ctx,n=this._x0,r=this._y0;return t&&t.closePath(),this._xi=n,this._yi=r,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var n=t.length;!(this.data&&this.data.length===n)&&uee&&(this.data=new Float32Array(n));for(var r=0;r<n;r++)this.data[r]=t[r];this._len=n},e.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var n=t.length,r=0,i=this._len,a=0;a<n;a++)r+=t[a].len();uee&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+r));for(var a=0;a<n;a++)for(var o=t[a].data,s=0;s<o.length;s++)this.data[i++]=o[s];this._len=i},e.prototype.addData=function(t,n,r,i,a,o,s,l,c){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var d=0;d<arguments.length;d++)u[this._len++]=arguments[d]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],n=0;n<this._len;n++)t[n]=this.data[n];this.data=t}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,uee&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){og[0]=og[1]=sg[0]=sg[1]=Number.MAX_VALUE,yy[0]=yy[1]=lg[0]=lg[1]=-Number.MAX_VALUE;var t=this.data,n=0,r=0,i=0,a=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(n=t[o],r=t[o+1],i=n,a=r),s){case $a.M:n=i=t[o++],r=a=t[o++],sg[0]=i,sg[1]=a,lg[0]=i,lg[1]=a;break;case $a.L:oOe(n,r,t[o],t[o+1],sg,lg),n=t[o++],r=t[o++];break;case $a.C:Ysr(n,r,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],sg,lg),n=t[o++],r=t[o++];break;case $a.Q:Ksr(n,r,t[o++],t[o++],t[o],t[o+1],sg,lg),n=t[o++],r=t[o++];break;case $a.A:var c=t[o++],u=t[o++],d=t[o++],f=t[o++],p=t[o++],h=t[o++]+p;o+=1;var m=!t[o++];l&&(i=V2(p)*d+c,a=G2(p)*f+u),Xsr(c,u,d,f,p,h,m,sg,lg),n=V2(h)*d+c,r=G2(h)*f+u;break;case $a.R:i=n=t[o++],a=r=t[o++];var g=t[o++],v=t[o++];oOe(i,a,i+g,a+v,sg,lg);break;case $a.Z:n=i,r=a;break}r5(og,og,sg),i5(yy,yy,lg)}return o===0&&(og[0]=og[1]=yy[0]=yy[1]=0),new Na(og[0],og[1],yy[0]-og[0],yy[1]-og[1])},e.prototype._calculateLength=function(){var t=this.data,n=this._len,r=this._ux,i=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var c=this._pathSegLen,u=0,d=0,f=0;f<n;){var p=t[f++],h=f===1;h&&(a=t[f],o=t[f+1],s=a,l=o);var m=-1;switch(p){case $a.M:a=s=t[f++],o=l=t[f++];break;case $a.L:{var g=t[f++],v=t[f++],y=g-a,_=v-o;(o1(y)>r||o1(_)>i||f===n-1)&&(m=Math.sqrt(y*y+_*_),a=g,o=v);break}case $a.C:{var S=t[f++],C=t[f++],g=t[f++],v=t[f++],w=t[f++],x=t[f++];m=xsr(a,o,S,C,g,v,w,x,10),a=w,o=x;break}case $a.Q:{var S=t[f++],C=t[f++],g=t[f++],v=t[f++];m=Asr(a,o,S,C,g,v,10),a=g,o=v;break}case $a.A:var T=t[f++],A=t[f++],I=t[f++],R=t[f++],N=t[f++],P=t[f++],L=P+N;f+=1,h&&(s=V2(N)*I+T,l=G2(N)*R+A),m=cee(I,R)*lee(By,Math.abs(P)),a=V2(L)*I+T,o=G2(L)*R+A;break;case $a.R:{s=a=t[f++],l=o=t[f++];var $=t[f++],D=t[f++];m=$*2+D*2;break}case $a.Z:{var y=s-a,_=l-o;m=Math.sqrt(y*y+_*_),a=s,o=l;break}}m>=0&&(c[d++]=m,u+=m)}return this._pathLen=u,u},e.prototype.rebuildPath=function(t,n){var r=this.data,i=this._ux,a=this._uy,o=this._len,s,l,c,u,d,f,p=n<1,h,m,g=0,v=0,y,_=0,S,C;if(!(p&&(this._pathSegLen||this._calculateLength(),h=this._pathSegLen,m=this._pathLen,y=n*m,!y)))e:for(var w=0;w<o;){var x=r[w++],T=w===1;switch(T&&(c=r[w],u=r[w+1],s=c,l=u),x!==$a.L&&_>0&&(t.lineTo(S,C),_=0),x){case $a.M:s=c=r[w++],l=u=r[w++],t.moveTo(c,u);break;case $a.L:{d=r[w++],f=r[w++];var A=o1(d-c),I=o1(f-u);if(A>i||I>a){if(p){var R=h[v++];if(g+R>y){var N=(y-g)/R;t.lineTo(c*(1-N)+d*N,u*(1-N)+f*N);break e}g+=R}t.lineTo(d,f),c=d,u=f,_=0}else{var P=A*A+I*I;P>_&&(S=d,C=f,_=P)}break}case $a.C:{var L=r[w++],$=r[w++],D=r[w++],z=r[w++],U=r[w++],H=r[w++];if(p){var R=h[v++];if(g+R>y){var N=(y-g)/R;d_(c,L,D,U,N,U2),d_(u,$,z,H,N,H2),t.bezierCurveTo(U2[1],H2[1],U2[2],H2[2],U2[3],H2[3]);break e}g+=R}t.bezierCurveTo(L,$,D,z,U,H),c=U,u=H;break}case $a.Q:{var L=r[w++],$=r[w++],D=r[w++],z=r[w++];if(p){var R=h[v++];if(g+R>y){var N=(y-g)/R;YF(c,L,D,N,U2),YF(u,$,z,N,H2),t.quadraticCurveTo(U2[1],H2[1],U2[2],H2[2]);break e}g+=R}t.quadraticCurveTo(L,$,D,z),c=D,u=z;break}case $a.A:var M=r[w++],B=r[w++],k=r[w++],F=r[w++],G=r[w++],q=r[w++],W=r[w++],K=!r[w++],J=k>F?k:F,te=o1(k-F)>.001,ae=G+q,re=!1;if(p){var R=h[v++];g+R>y&&(ae=G+q*(y-g)/R,re=!0),g+=R}if(te&&t.ellipse?t.ellipse(M,B,k,F,W,G,ae,K):t.arc(M,B,J,G,ae,K),re)break e;T&&(s=V2(G)*k+M,l=G2(G)*F+B),c=V2(ae)*k+M,u=G2(ae)*F+B;break;case $a.R:s=c=r[w],l=u=r[w+1],d=r[w++],f=r[w++];var ue=r[w++],de=r[w++];if(p){var R=h[v++];if(g+R>y){var fe=y-g;t.moveTo(d,f),t.lineTo(d+lee(fe,ue),f),fe-=ue,fe>0&&t.lineTo(d+ue,f+lee(fe,de)),fe-=de,fe>0&&t.lineTo(d+cee(ue-fe,0),f+de),fe-=ue,fe>0&&t.lineTo(d,f+cee(de-fe,0));break e}g+=R}t.rect(d,f,ue,de);break;case $a.Z:if(p){var R=h[v++];if(g+R>y){var N=(y-g)/R;t.lineTo(c*(1-N)+s*N,u*(1-N)+l*N);break e}g+=R}t.closePath(),c=s,u=l}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.CMD=$a,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();function Uw(e,t,n,r,i,a,o){if(i===0)return!1;var s=i,l=0,c=e;if(o>t+s&&o>r+s||o<t-s&&o<r-s||a>e+s&&a>n+s||a<e-s&&a<n-s)return!1;if(e!==n)l=(t-r)/(e-n),c=(e*r-n*t)/(e-n);else return Math.abs(a-e)<=s/2;var u=l*a-o+c,d=u*u/(l*l+1);return d<=s/2*s/2}function Qsr(e,t,n,r,i,a,o,s,l,c,u){if(l===0)return!1;var d=l;if(u>t+d&&u>r+d&&u>a+d&&u>s+d||u<t-d&&u<r-d&&u<a-d&&u<s-d||c>e+d&&c>n+d&&c>i+d&&c>o+d||c<e-d&&c<n-d&&c<i-d&&c<o-d)return!1;var f=wsr(e,t,n,r,i,a,o,s,c,u);return f<=d/2}function Jsr(e,t,n,r,i,a,o,s,l){if(o===0)return!1;var c=o;if(l>t+c&&l>r+c&&l>a+c||l<t-c&&l<r-c&&l<a-c||s>e+c&&s>n+c&&s>i+c||s<e-c&&s<n-c&&s<i-c)return!1;var u=Isr(e,t,n,r,i,a,s,l);return u<=c/2}var cOe=Math.PI*2;function Bk(e){return e%=cOe,e<0&&(e+=cOe),e}var LI=Math.PI*2;function elr(e,t,n,r,i,a,o,s,l){if(o===0)return!1;var c=o;s-=e,l-=t;var u=Math.sqrt(s*s+l*l);if(u-c>n||u+c<n)return!1;if(Math.abs(r-i)%LI<1e-4)return!0;if(a){var d=r;r=Bk(i),i=Bk(d)}else r=Bk(r),i=Bk(i);r>i&&(i+=LI);var f=Math.atan2(l,s);return f<0&&(f+=LI),f>=r&&f<=i||f+LI>=r&&f+LI<=i}function q2(e,t,n,r,i,a){if(a>t&&a>r||a<t&&a<r||r===t)return 0;var o=(a-t)/(r-t),s=r<t?1:-1;(o===1||o===0)&&(s=r<t?.5:-.5);var l=o*(n-e)+e;return l===i?1/0:l>i?s:0}var by=f_.CMD,W2=Math.PI*2,tlr=1e-4;function nlr(e,t){return Math.abs(e-t)<tlr}var yu=[-1,-1,-1],fp=[-1,-1];function rlr(){var e=fp[0];fp[0]=fp[1],fp[1]=e}function ilr(e,t,n,r,i,a,o,s,l,c){if(c>t&&c>r&&c>a&&c>s||c<t&&c<r&&c<a&&c<s)return 0;var u=WF(t,r,a,s,c,yu);if(u===0)return 0;for(var d=0,f=-1,p=void 0,h=void 0,m=0;m<u;m++){var g=yu[m],v=g===0||g===1?.5:1,y=gc(e,n,i,o,g);y<l||(f<0&&(f=Uit(t,r,a,s,fp),fp[1]<fp[0]&&f>1&&rlr(),p=gc(t,r,a,s,fp[0]),f>1&&(h=gc(t,r,a,s,fp[1]))),f===2?g<fp[0]?d+=p<t?v:-v:g<fp[1]?d+=h<p?v:-v:d+=s<h?v:-v:g<fp[0]?d+=p<t?v:-v:d+=s<p?v:-v)}return d}function alr(e,t,n,r,i,a,o,s){if(s>t&&s>r&&s>a||s<t&&s<r&&s<a)return 0;var l=Tsr(t,r,a,s,yu);if(l===0)return 0;var c=Hit(t,r,a);if(c>=0&&c<=1){for(var u=0,d=cd(t,r,a,c),f=0;f<l;f++){var p=yu[f]===0||yu[f]===1?.5:1,h=cd(e,n,i,yu[f]);h<o||(yu[f]<c?u+=d<t?p:-p:u+=a<d?p:-p)}return u}else{var p=yu[0]===0||yu[0]===1?.5:1,h=cd(e,n,i,yu[0]);return h<o?0:a<t?p:-p}}function olr(e,t,n,r,i,a,o,s){if(s-=t,s>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);yu[0]=-l,yu[1]=l;var c=Math.abs(r-i);if(c<1e-4)return 0;if(c>=W2-1e-4){r=0,i=W2;var u=a?1:-1;return o>=yu[0]+e&&o<=yu[1]+e?u:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=W2,i+=W2);for(var f=0,p=0;p<2;p++){var h=yu[p];if(h+e>o){var m=Math.atan2(s,h),u=a?1:-1;m<0&&(m=W2+m),(m>=r&&m<=i||m+W2>=r&&m+W2<=i)&&(m>Math.PI/2&&m<Math.PI*1.5&&(u=-u),f+=u)}}return f}function Xit(e,t,n,r,i){for(var a=e.data,o=e.len(),s=0,l=0,c=0,u=0,d=0,f,p,h=0;h<o;){var m=a[h++],g=h===1;switch(m===by.M&&h>1&&(n||(s+=q2(l,c,u,d,r,i))),g&&(l=a[h],c=a[h+1],u=l,d=c),m){case by.M:u=a[h++],d=a[h++],l=u,c=d;break;case by.L:if(n){if(Uw(l,c,a[h],a[h+1],t,r,i))return!0}else s+=q2(l,c,a[h],a[h+1],r,i)||0;l=a[h++],c=a[h++];break;case by.C:if(n){if(Qsr(l,c,a[h++],a[h++],a[h++],a[h++],a[h],a[h+1],t,r,i))return!0}else s+=ilr(l,c,a[h++],a[h++],a[h++],a[h++],a[h],a[h+1],r,i)||0;l=a[h++],c=a[h++];break;case by.Q:if(n){if(Jsr(l,c,a[h++],a[h++],a[h],a[h+1],t,r,i))return!0}else s+=alr(l,c,a[h++],a[h++],a[h],a[h+1],r,i)||0;l=a[h++],c=a[h++];break;case by.A:var v=a[h++],y=a[h++],_=a[h++],S=a[h++],C=a[h++],w=a[h++];h+=1;var x=!!(1-a[h++]);f=Math.cos(C)*_+v,p=Math.sin(C)*S+y,g?(u=f,d=p):s+=q2(l,c,f,p,r,i);var T=(r-v)*S/_+v;if(n){if(elr(v,y,S,C,C+w,x,t,T,i))return!0}else s+=olr(v,y,S,C,C+w,x,T,i);l=Math.cos(C+w)*_+v,c=Math.sin(C+w)*S+y;break;case by.R:u=l=a[h++],d=c=a[h++];var A=a[h++],I=a[h++];if(f=u+A,p=d+I,n){if(Uw(u,d,f,d,t,r,i)||Uw(f,d,f,p,t,r,i)||Uw(f,p,u,p,t,r,i)||Uw(u,p,u,d,t,r,i))return!0}else s+=q2(f,d,f,p,r,i),s+=q2(u,p,u,d,r,i);break;case by.Z:if(n){if(Uw(l,c,u,d,t,r,i))return!0}else s+=q2(l,c,u,d,r,i);l=u,c=d;break}}return!n&&!nlr(c,d)&&(s+=q2(l,c,u,d,r,i)||0),s!==0}function slr(e,t,n){return Xit(e,0,!1,t,n)}function llr(e,t,n,r){return Xit(e,t,!0,n,r)}var Zit=Hi({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},vE),clr={style:Hi({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},aH.style)},fee=v6.concat(["invisible","culling","z","z2","zlevel","parent"]),ha=function(e){tr(t,e);function t(n){return e.call(this,n)||this}return t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(l){n.buildPath(l,n.shape)}),i.silent=!0;var a=i.style;for(var o in r)a[o]!==r[o]&&(a[o]=r[o]);a.fill=r.fill?r.decal:null,a.decal=null,a.shadowColor=null,r.strokeFirst&&(a.stroke=null);for(var s=0;s<fee.length;++s)i[fee[s]]=this[fee[s]];i.__dirty|=bf}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(n){var r=rs(n);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var a=0;a<r.length;a++){var o=r[a],s=n[o];o==="style"?this.style?Vn(this.style,s):this.useStyle(s):o==="shape"?Vn(this.shape,s):e.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var n=this.style.fill;if(n!=="none"){if(yr(n)){var r=KF(n,0);return r>.5?yse:r>.2?Bsr:bse}else if(n)return bse}return yse},t.prototype.getInsideTextStroke=function(n){var r=this.style.fill;if(yr(r)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=KF(n,0)<vse;if(a===o)return r}},t.prototype.buildPath=function(n,r,i){},t.prototype.pathUpdated=function(){this.__dirty&=~Tx},t.prototype.getUpdatedPathProxy=function(n){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,n),this.path},t.prototype.createPathProxy=function(){this.path=new f_(!1)},t.prototype.hasStroke=function(){var n=this.style,r=n.stroke;return!(r==null||r==="none"||!(n.lineWidth>0))},t.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},t.prototype.getBoundingRect=function(){var n=this._rect,r=this.style,i=!n;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Tx)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),n=o.getBoundingRect()}if(this._rect=n,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=n.clone());if(this.__dirty||i){s.copy(n);var l=r.strokeNoScale?this.getLineScale():1,c=r.lineWidth;if(!this.hasFill()){var u=this.strokeContainThreshold;c=Math.max(c,u??4)}l>1e-10&&(s.width+=c/l,s.height+=c/l,s.x-=c/l/2,s.y-=c/l/2)}return s}return n},t.prototype.contain=function(n,r){var i=this.transformCoordToLocal(n,r),a=this.getBoundingRect(),o=this.style;if(n=i[0],r=i[1],a.contain(n,r)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,c=o.strokeNoScale?this.getLineScale():1;if(c>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),llr(s,l/c,n,r)))return!0}if(this.hasFill())return slr(s,n,r)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Tx,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(n){return this.animate("shape",n)},t.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():n==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(n,r){n==="shape"?this.setShape(r):e.prototype.attrKV.call(this,n,r)},t.prototype.setShape=function(n,r){var i=this.shape;return i||(i=this.shape={}),typeof n=="string"?i[n]=r:Vn(i,n),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Tx)},t.prototype.createStyle=function(n){return JU(Zit,n)},t.prototype._innerSaveToNormal=function(n){e.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.shape&&!r.shape&&(r.shape=Vn({},this.shape))},t.prototype._applyStateObj=function(n,r,i,a,o,s){e.prototype._applyStateObj.call(this,n,r,i,a,o,s);var l=!(r&&a),c;if(r&&r.shape?o?a?c=r.shape:(c=Vn({},i.shape),Vn(c,r.shape)):(c=Vn({},a?this.shape:i.shape),Vn(c,r.shape)):l&&(c=i.shape),c)if(o){this.shape=Vn({},this.shape);for(var u={},d=rs(c),f=0;f<d.length;f++){var p=d[f];typeof c[p]=="object"?this.shape[p]=c[p]:u[p]=c[p]}this._transitionState(n,{shape:u},s)}else this.shape=c,this.dirtyShape()},t.prototype._mergeStates=function(n){for(var r=e.prototype._mergeStates.call(this,n),i,a=0;a<n.length;a++){var o=n[a];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(r.shape=i),r},t.prototype.getAnimationStyleProps=function(){return clr},t.prototype.isZeroArea=function(){return!1},t.extend=function(n){var r=function(a){tr(o,a);function o(s){var l=a.call(this,s)||this;return n.init&&n.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return Xi(n.style)},o.prototype.getDefaultShape=function(){return Xi(n.shape)},o}(t);for(var i in n)typeof n[i]=="function"&&(r.prototype[i]=n[i]);return r},t.initDefaultProps=function(){var n=t.prototype;n.type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,n.__dirty=bf|kA|Tx}(),t}(r4),ulr=Hi({strokeFirst:!0,font:rC,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Zit),ZF=function(e){tr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var n=this.style,r=n.stroke;return r!=null&&r!=="none"&&n.lineWidth>0},t.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},t.prototype.createStyle=function(n){return JU(ulr,n)},t.prototype.setBoundingRect=function(n){this._rect=n},t.prototype.getBoundingRect=function(){var n=this.style;if(!this._rect){var r=n.text;r!=null?r+="":r="";var i=Wme(r,n.font,n.textAlign,n.textBaseline);if(i.x+=n.x||0,i.y+=n.y||0,this.hasStroke()){var a=n.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},t.initDefaultProps=function(){var n=t.prototype;n.dirtyRectTolerance=10}(),t}(r4);ZF.prototype.type="tspan";var dlr=Hi({x:0,y:0},vE),flr={style:Hi({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},aH.style)};function plr(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var G_=function(e){tr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(n){return JU(dlr,n)},t.prototype._getSize=function(n){var r=this.style,i=r[n];if(i!=null)return i;var a=plr(r.image)?r.image:this.__image;if(!a)return 0;var o=n==="width"?"height":"width",s=r[o];return s==null?a[n]:a[n]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return flr},t.prototype.getBoundingRect=function(){var n=this.style;return this._rect||(this._rect=new Na(n.x||0,n.y||0,this.getWidth(),this.getHeight())),this._rect},t}(r4);G_.prototype.type="image";function hlr(e,t){var n=t.x,r=t.y,i=t.width,a=t.height,o=t.r,s,l,c,u;i<0&&(n=n+i,i=-i),a<0&&(r=r+a,a=-a),typeof o=="number"?s=l=c=u=o:o instanceof Array?o.length===1?s=l=c=u=o[0]:o.length===2?(s=c=o[0],l=u=o[1]):o.length===3?(s=o[0],l=u=o[1],c=o[2]):(s=o[0],l=o[1],c=o[2],u=o[3]):s=l=c=u=0;var d;s+l>i&&(d=s+l,s*=i/d,l*=i/d),c+u>i&&(d=c+u,c*=i/d,u*=i/d),l+c>a&&(d=l+c,l*=a/d,c*=a/d),s+u>a&&(d=s+u,s*=a/d,u*=a/d),e.moveTo(n+s,r),e.lineTo(n+i-l,r),l!==0&&e.arc(n+i-l,r+l,l,-Math.PI/2,0),e.lineTo(n+i,r+a-c),c!==0&&e.arc(n+i-c,r+a-c,c,0,Math.PI/2),e.lineTo(n+u,r+a),u!==0&&e.arc(n+u,r+a-u,u,Math.PI/2,Math.PI),e.lineTo(n,r+s),s!==0&&e.arc(n+s,r+s,s,Math.PI,Math.PI*1.5)}var a5=Math.round;function Qit(e,t,n){if(t){var r=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=r,e.x2=i,e.y1=a,e.y2=o;var s=n&&n.lineWidth;return s&&(a5(r*2)===a5(i*2)&&(e.x1=e.x2=GS(r,s,!0)),a5(a*2)===a5(o*2)&&(e.y1=e.y2=GS(a,s,!0))),e}}function Jit(e,t,n){if(t){var r=t.x,i=t.y,a=t.width,o=t.height;e.x=r,e.y=i,e.width=a,e.height=o;var s=n&&n.lineWidth;return s&&(e.x=GS(r,s,!0),e.y=GS(i,s,!0),e.width=Math.max(GS(r+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(GS(i+o,s,!1)-e.y,o===0?0:1)),e}}function GS(e,t,n){if(!t)return e;var r=a5(e*2);return(r+a5(t))%2===0?r/2:(r+(n?1:-1))/2}var mlr=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),glr={},Ps=function(e){tr(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new mlr},t.prototype.buildPath=function(n,r){var i,a,o,s;if(this.subPixelOptimize){var l=Jit(glr,r,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=r.r,r=l}else i=r.x,a=r.y,o=r.width,s=r.height;r.r?hlr(n,r):n.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(ha);Ps.prototype.type="rect";var uOe={fill:"#000"},dOe=2,vlr={style:Hi({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},aH.style)},Du=function(e){tr(t,e);function t(n){var r=e.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=uOe,r.attr(n),r}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var n=0;n<this._children.length;n++){var r=this._children[n];r.zlevel=this.zlevel,r.z=this.z,r.z2=this.z2,r.culling=this.culling,r.cursor=this.cursor,r.invisible=this.invisible}},t.prototype.updateTransform=function(){var n=this.innerTransformable;n?(n.updateTransform(),n.transform&&(this.transform=n.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(n){var r=this.innerTransformable;return r?r.getLocalTransform(n):e.prototype.getLocalTransform.call(this,n)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,Elr(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(n){e.prototype.addSelfToZr.call(this,n);for(var r=0;r<this._children.length;r++)this._children[r].__zr=n},t.prototype.removeSelfFromZr=function(n){e.prototype.removeSelfFromZr.call(this,n);for(var r=0;r<this._children.length;r++)this._children[r].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var n=new Na(0,0,0,0),r=this._children,i=[],a=null,o=0;o<r.length;o++){var s=r[o],l=s.getBoundingRect(),c=s.getLocalTransform(i);c?(n.copy(l),n.applyTransform(c),a=a||n.clone(),a.union(n)):(a=a||l.clone(),a.union(l))}this._rect=a||n}return this._rect},t.prototype.setDefaultTextStyle=function(n){this._defaultStyle=n||uOe},t.prototype.setTextContent=function(n){},t.prototype._mergeStyle=function(n,r){if(!r)return n;var i=r.rich,a=n.rich||i&&{};return Vn(n,r),i&&a?(this._mergeRich(a,i),n.rich=a):a&&(n.rich=a),n},t.prototype._mergeRich=function(n,r){for(var i=rs(r),a=0;a<i.length;a++){var o=i[a];n[o]=n[o]||{},Vn(n[o],r[o])}},t.prototype.getAnimationStyleProps=function(){return vlr},t.prototype._getOrCreateChild=function(n){var r=this._children[this._childCursor];return(!r||!(r instanceof n))&&(r=new n),this._children[this._childCursor++]=r,r.__zr=this.__zr,r.parent=this,r},t.prototype._updatePlainTexts=function(){var n=this.style,r=n.font||rC,i=n.padding,a=yOe(n),o=lsr(a,n),s=pee(n),l=!!n.backgroundColor,c=o.outerHeight,u=o.outerWidth,d=o.contentWidth,f=o.lines,p=o.lineHeight,h=this._defaultStyle,m=n.x||0,g=n.y||0,v=n.align||h.align||"left",y=n.verticalAlign||h.verticalAlign||"top",_=m,S=xx(g,o.contentHeight,y);if(s||i){var C=LA(m,u,v),w=xx(g,c,y);s&&this._renderBackground(n,n,C,w,u,c)}S+=p/2,i&&(_=vOe(m,v,i),y==="top"?S+=i[0]:y==="bottom"&&(S-=i[2]));for(var x=0,T=!1,A=gOe("fill"in n?n.fill:(T=!0,h.fill)),I=mOe("stroke"in n?n.stroke:!l&&(!h.autoStroke||T)?(x=dOe,h.stroke):null),R=n.textShadowBlur>0,N=n.width!=null&&(n.overflow==="truncate"||n.overflow==="break"||n.overflow==="breakAll"),P=o.calculatedLineHeight,L=0;L<f.length;L++){var $=this._getOrCreateChild(ZF),D=$.createStyle();$.useStyle(D),D.text=f[L],D.x=_,D.y=S,v&&(D.textAlign=v),D.textBaseline="middle",D.opacity=n.opacity,D.strokeFirst=!0,R&&(D.shadowBlur=n.textShadowBlur||0,D.shadowColor=n.textShadowColor||"transparent",D.shadowOffsetX=n.textShadowOffsetX||0,D.shadowOffsetY=n.textShadowOffsetY||0),D.stroke=I,D.fill=A,I&&(D.lineWidth=n.lineWidth||x,D.lineDash=n.lineDash,D.lineDashOffset=n.lineDashOffset||0),D.font=r,pOe(D,n),S+=p,N&&$.setBoundingRect(new Na(LA(D.x,n.width,D.textAlign),xx(D.y,P,D.textBaseline),d,P))}},t.prototype._updateRichTexts=function(){var n=this.style,r=yOe(n),i=dsr(r,n),a=i.width,o=i.outerWidth,s=i.outerHeight,l=n.padding,c=n.x||0,u=n.y||0,d=this._defaultStyle,f=n.align||d.align,p=n.verticalAlign||d.verticalAlign,h=LA(c,o,f),m=xx(u,s,p),g=h,v=m;l&&(g+=l[3],v+=l[0]);var y=g+a;pee(n)&&this._renderBackground(n,n,h,m,o,s);for(var _=!!n.backgroundColor,S=0;S<i.lines.length;S++){for(var C=i.lines[S],w=C.tokens,x=w.length,T=C.lineHeight,A=C.width,I=0,R=g,N=y,P=x-1,L=void 0;I<x&&(L=w[I],!L.align||L.align==="left");)this._placeToken(L,n,T,v,R,"left",_),A-=L.width,R+=L.width,I++;for(;P>=0&&(L=w[P],L.align==="right");)this._placeToken(L,n,T,v,N,"right",_),A-=L.width,N-=L.width,P--;for(R+=(a-(R-g)-(y-N)-A)/2;I<=P;)L=w[I],this._placeToken(L,n,T,v,R+L.width/2,"center",_),R+=L.width,I++;v+=T}},t.prototype._placeToken=function(n,r,i,a,o,s,l){var c=r.rich[n.styleName]||{};c.text=n.text;var u=n.verticalAlign,d=a+i/2;u==="top"?d=a+n.height/2:u==="bottom"&&(d=a+i-n.height/2);var f=!n.isLineHolder&&pee(c);f&&this._renderBackground(c,r,s==="right"?o-n.width:s==="center"?o-n.width/2:o,d-n.height/2,n.width,n.height);var p=!!c.backgroundColor,h=n.textPadding;h&&(o=vOe(o,s,h),d-=n.height/2-h[0]-n.innerHeight/2);var m=this._getOrCreateChild(ZF),g=m.createStyle();m.useStyle(g);var v=this._defaultStyle,y=!1,_=0,S=gOe("fill"in c?c.fill:"fill"in r?r.fill:(y=!0,v.fill)),C=mOe("stroke"in c?c.stroke:"stroke"in r?r.stroke:!p&&!l&&(!v.autoStroke||y)?(_=dOe,v.stroke):null),w=c.textShadowBlur>0||r.textShadowBlur>0;g.text=n.text,g.x=o,g.y=d,w&&(g.shadowBlur=c.textShadowBlur||r.textShadowBlur||0,g.shadowColor=c.textShadowColor||r.textShadowColor||"transparent",g.shadowOffsetX=c.textShadowOffsetX||r.textShadowOffsetX||0,g.shadowOffsetY=c.textShadowOffsetY||r.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=n.font||rC,g.opacity=HM(c.opacity,r.opacity,1),pOe(g,c),C&&(g.lineWidth=HM(c.lineWidth,r.lineWidth,_),g.lineDash=ra(c.lineDash,r.lineDash),g.lineDashOffset=r.lineDashOffset||0,g.stroke=C),S&&(g.fill=S);var x=n.contentWidth,T=n.contentHeight;m.setBoundingRect(new Na(LA(g.x,x,g.textAlign),xx(g.y,T,g.textBaseline),x,T))},t.prototype._renderBackground=function(n,r,i,a,o,s){var l=n.backgroundColor,c=n.borderWidth,u=n.borderColor,d=l&&l.image,f=l&&!d,p=n.borderRadius,h=this,m,g;if(f||n.lineHeight||c&&u){m=this._getOrCreateChild(Ps),m.useStyle(m.createStyle()),m.style.fill=null;var v=m.shape;v.x=i,v.y=a,v.width=o,v.height=s,v.r=p,m.dirtyShape()}if(f){var y=m.style;y.fill=l||null,y.fillOpacity=ra(n.fillOpacity,1)}else if(d){g=this._getOrCreateChild(G_),g.onload=function(){h.dirtyStyle()};var _=g.style;_.image=l.image,_.x=i,_.y=a,_.width=o,_.height=s}if(c&&u){var y=m.style;y.lineWidth=c,y.stroke=u,y.strokeOpacity=ra(n.strokeOpacity,1),y.lineDash=n.borderDash,y.lineDashOffset=n.borderDashOffset||0,m.strokeContainThreshold=0,m.hasFill()&&m.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var S=(m||g).style;S.shadowBlur=n.shadowBlur||0,S.shadowColor=n.shadowColor||"transparent",S.shadowOffsetX=n.shadowOffsetX||0,S.shadowOffsetY=n.shadowOffsetY||0,S.opacity=HM(n.opacity,r.opacity,1)},t.makeFont=function(n){var r="";return Slr(n)&&(r=[n.fontStyle,n.fontWeight,_lr(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),r&&Fg(r)||n.textFont||n.font},t}(r4),ylr={left:!0,right:1,center:1},blr={top:1,bottom:1,middle:1},fOe=["fontStyle","fontWeight","fontSize","fontFamily"];function _lr(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?Fme+"px":e+"px"}function pOe(e,t){for(var n=0;n<fOe.length;n++){var r=fOe[n],i=t[r];i!=null&&(e[r]=i)}}function Slr(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function Elr(e){return hOe(e),lt(e.rich,hOe),e}function hOe(e){if(e){e.font=Du.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||ylr[t]?t:"left";var n=e.verticalAlign;n==="center"&&(n="middle"),e.verticalAlign=n==null||blr[n]?n:"top";var r=e.padding;r&&(e.padding=Ait(e.padding))}}function mOe(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function gOe(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function vOe(e,t,n){return t==="right"?e-n[1]:t==="center"?e+n[3]/2-n[1]/2:e+n[3]}function yOe(e){var t=e.text;return t!=null&&(t+=""),t}function pee(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var bOe=1e-4,eat=20;function Clr(e){return e.replace(/^\s+|\s+$/g,"")}function Gc(e,t,n,r){var i=t[0],a=t[1],o=n[0],s=n[1],l=a-i,c=s-o;if(l===0)return c===0?o:(o+s)/2;if(r)if(l>0){if(e<=i)return o;if(e>=a)return s}else{if(e>=i)return o;if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/l*c+o}function vc(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return yr(e)?Clr(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function gl(e,t,n){return t==null&&(t=10),t=Math.min(Math.max(0,t),eat),e=(+e).toFixed(t),n?e:+e}function MA(e){return e.sort(function(t,n){return t-n}),e}function D1(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n}return wlr(e)}function wlr(e){var t=e.toString().toLowerCase(),n=t.indexOf("e"),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-r)}function tat(e,t){var n=Math.log,r=Math.LN10,i=Math.floor(n(e[1]-e[0])/r),a=Math.round(n(Math.abs(t[1]-t[0]))/r),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function xlr(e,t){var n=Math.max(D1(e),D1(t)),r=e+t;return n>eat?r:gl(r,n)}function nat(e){var t=Math.PI*2;return(e%t+t)%t}function QF(e){return e>-bOe&&e<bOe}var Tlr=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function u0(e){if(e instanceof Date)return e;if(yr(e)){var t=Tlr.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(e==null)return new Date(NaN);return new Date(Math.round(e))}function Ilr(e){return Math.pow(10,Xme(e))}function Xme(e){if(e===0)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function rat(e,t){var n=Xme(e),r=Math.pow(10,n),i=e/r,a;return i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10,e=a*r,n>=-20?+e.toFixed(n<0?-n:0):e}function JF(e){var t=parseFloat(e);return t==e&&(t!==0||!yr(e)||e.indexOf("x")<=0)?t:NaN}function Alr(e){return!isNaN(JF(e))}function iat(){return Math.round(Math.random()*9)}function aat(e,t){return t===0?e:aat(t,e%t)}function _Oe(e,t){return e==null?t:t==null?e:e*t/aat(e,t)}function fd(e){throw new Error(e)}function SOe(e,t,n){return(t-e)*n+e}var oat="series\0",Rlr="\0_ec_\0";function yl(e){return e instanceof Array?e:e==null?[]:[e]}function EOe(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,i=n.length;r<i;r++){var a=n[r];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}var COe=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function C8(e){return Fr(e)&&!ar(e)&&!(e instanceof Date)?e.value:e}function Nlr(e){return Fr(e)&&!(e instanceof Array)}function Olr(e,t,n){var r=n==="normalMerge",i=n==="replaceMerge",a=n==="replaceAll";e=e||[],t=(t||[]).slice();var o=Mr();lt(t,function(l,c){if(!Fr(l)){t[c]=null;return}});var s=Llr(e,o,n);return(r||i)&&Plr(s,e,o,t),r&&klr(s,t),r||i?Mlr(s,t,i):a&&Dlr(s,t),$lr(s),s}function Llr(e,t,n){var r=[];if(n==="replaceAll")return r;for(var i=0;i<e.length;i++){var a=e[i];a&&a.id!=null&&t.set(a.id,i),r.push({existing:n==="replaceMerge"||y6(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return r}function Plr(e,t,n,r){lt(r,function(i,a){if(!(!i||i.id==null)){var o=MR(i.id),s=n.get(o);if(s!=null){var l=e[s];c0(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=t[s],r[a]=null}}})}function klr(e,t){lt(t,function(n,r){if(!(!n||n.name==null))for(var i=0;i<e.length;i++){var a=e[i].existing;if(!e[i].newOption&&a&&(a.id==null||n.id==null)&&!y6(n)&&!y6(a)&&sat("name",a,n)){e[i].newOption=n,t[r]=null;return}}})}function Mlr(e,t,n){lt(t,function(r){if(r){for(var i,a=0;(i=e[a])&&(i.newOption||y6(i.existing)||i.existing&&r.id!=null&&!sat("id",r,i.existing));)a++;i?(i.newOption=r,i.brandNew=n):e.push({newOption:r,brandNew:n,existing:null,keyInfo:null}),a++}})}function Dlr(e,t){lt(t,function(n){e.push({newOption:n,brandNew:!0,existing:null,keyInfo:null})})}function $lr(e){var t=Mr();lt(e,function(n){var r=n.existing;r&&t.set(r.id,n)}),lt(e,function(n){var r=n.newOption;c0(!r||r.id==null||!t.get(r.id)||t.get(r.id)===n,"id duplicates: "+(r&&r.id)),r&&r.id!=null&&t.set(r.id,n),!n.keyInfo&&(n.keyInfo={})}),lt(e,function(n,r){var i=n.existing,a=n.newOption,o=n.keyInfo;if(Fr(a)){if(o.name=a.name!=null?MR(a.name):i?i.name:oat+r,i)o.id=MR(i.id);else if(a.id!=null)o.id=MR(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,n)}})}function sat(e,t,n){var r=Xg(t[e],null),i=Xg(n[e],null);return r!=null&&i!=null&&r===i}function MR(e){return Xg(e,"")}function Xg(e,t){return e==null?t:yr(e)?e:is(e)||sse(e)?e+"":t}function Zme(e){var t=e.name;return!!(t&&t.indexOf(oat))}function y6(e){return e&&e.id!=null&&MR(e.id).indexOf(Rlr)===0}function Flr(e,t,n){lt(e,function(r){var i=r.newOption;Fr(i)&&(r.keyInfo.mainType=t,r.keyInfo.subType=Blr(t,i,r.existing,n))})}function Blr(e,t,n,r){var i=t.type?t.type:n?n.subType:r.determineSubType(e,t);return i}function aC(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return ar(t.dataIndex)?Nr(t.dataIndex,function(n){return e.indexOfRawIndex(n)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return ar(t.name)?Nr(t.name,function(n){return e.indexOfName(n)}):e.indexOfName(t.name)}function rl(){var e="__ec_inner_"+jlr++;return function(t){return t[e]||(t[e]={})}}var jlr=iat();function hee(e,t,n){var r=Qme(t,n),i=r.mainTypeSpecified,a=r.queryOptionMap,o=r.others,s=o,l=n?n.defaultMainType:null;return!i&&l&&a.set(l,{}),a.each(function(c,u){var d=w8(e,u,c,{useDefault:l===u,enableAll:n&&n.enableAll!=null?n.enableAll:!0,enableNone:n&&n.enableNone!=null?n.enableNone:!0});s[u+"Models"]=d.models,s[u+"Model"]=d.models[0]}),s}function Qme(e,t){var n;if(yr(e)){var r={};r[e+"Index"]=0,n=r}else n=e;var i=Mr(),a={},o=!1;return lt(n,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var c=l.match(/^(\w+)(Index|Id|Name)$/)||[],u=c[1],d=(c[2]||"").toLowerCase();if(!(!u||!d||t&&t.includeMainTypes&&ja(t.includeMainTypes,u)<0)){o=o||!!u;var f=i.get(u)||i.set(u,{});f[d]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var bd={useDefault:!0,enableAll:!1,enableNone:!1},zlr={useDefault:!1,enableAll:!0,enableNone:!0};function w8(e,t,n,r){r=r||bd;var i=n.index,a=n.id,o=n.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=r.useDefault&&(l=e.getComponent(t))?[l]:[],s}return i==="none"||i===!1?(c0(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i==="all"&&(c0(r.enableAll,'`"all"` is not a valid value on index option.'),i=a=o=null),s.models=e.queryComponents({mainType:t,index:i,id:a,name:o}),s)}function lat(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function Ulr(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function Hlr(e){return e==="auto"?ci.domSupported?"html":"richText":e||"html"}function Vlr(e,t,n,r,i){var a=t==null||t==="auto";if(r==null)return r;if(is(r)){var o=SOe(n||0,r,i);return gl(o,a?Math.max(D1(n||0),D1(r)):t)}else{if(yr(r))return i<1?n:r;for(var s=[],l=n,c=r,u=Math.max(l?l.length:0,c.length),d=0;d<u;++d){var f=e.getDimensionInfo(d);if(f&&f.type==="ordinal")s[d]=(i<1&&l?l:c)[d];else{var p=l&&l[d]?l[d]:0,h=c[d],o=SOe(p,h,i);s[d]=gl(o,a?Math.max(D1(p),D1(h)):t)}}return s}}var vo=rl(),Glr=function(e,t,n,r){if(r){var i=vo(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType="chart",r.type==="group"&&r.traverse(function(a){var o=vo(a);o.seriesIndex=e,o.dataIndex=n,o.dataType=t,o.ssrType="chart"})}},wOe=1,xOe={},cat=rl(),Jme=rl(),ege=0,oH=1,sH=2,sv=["emphasis","blur","select"],TOe=["normal","emphasis","blur","select"],qlr=10,Wlr=9,yE="highlight",WM="downplay",DR="select",YM="unselect",$R="toggleSelect";function Hw(e){return e!=null&&e!=="none"}function lH(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function uat(e){lH(e,"emphasis",sH)}function dat(e){e.hoverState===sH&&lH(e,"normal",ege)}function tge(e){lH(e,"blur",oH)}function fat(e){e.hoverState===oH&&lH(e,"normal",ege)}function Ylr(e){e.selected=!0}function Klr(e){e.selected=!1}function IOe(e,t,n){t(e,n)}function w0(e,t,n){IOe(e,t,n),e.isGroup&&e.traverse(function(r){IOe(r,t,n)})}function AOe(e,t){switch(t){case"emphasis":e.hoverState=sH;break;case"normal":e.hoverState=ege;break;case"blur":e.hoverState=oH;break;case"select":e.selected=!0}}function Xlr(e,t,n,r){for(var i=e.style,a={},o=0;o<t.length;o++){var s=t[o],l=i[s];a[s]=l??(r&&r[s])}for(var o=0;o<e.animators.length;o++){var c=e.animators[o];c.__fromStateTransition&&c.__fromStateTransition.indexOf(n)<0&&c.targetName==="style"&&c.saveTo(a,t)}return a}function Zlr(e,t,n,r){var i=n&&ja(n,"select")>=0,a=!1;if(e instanceof ha){var o=cat(e),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(Hw(s)||Hw(l)){r=r||{};var c=r.style||{};c.fill==="inherit"?(a=!0,r=Vn({},r),c=Vn({},c),c.fill=s):!Hw(c.fill)&&Hw(s)?(a=!0,r=Vn({},r),c=Vn({},c),c.fill=tOe(s)):!Hw(c.stroke)&&Hw(l)&&(a||(r=Vn({},r),c=Vn({},c)),c.stroke=tOe(l)),r.style=c}}if(r&&r.z2==null){a||(r=Vn({},r));var u=e.z2EmphasisLift;r.z2=e.z2+(u??qlr)}return r}function Qlr(e,t,n){if(n&&n.z2==null){n=Vn({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??Wlr)}return n}function Jlr(e,t,n){var r=ja(e.currentStates,t)>=0,i=e.style.opacity,a=r?null:Xlr(e,["opacity"],t,{opacity:1});n=n||{};var o=n.style||{};return o.opacity==null&&(n=Vn({},n),o=Vn({opacity:r?i:a.opacity*.1},o),n.style=o),n}function mee(e,t){var n=this.states[e];if(this.style){if(e==="emphasis")return Zlr(this,e,t,n);if(e==="blur")return Jlr(this,e,n);if(e==="select")return Qlr(this,e,n)}return n}function ecr(e){e.stateProxy=mee;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=mee),n&&(n.stateProxy=mee)}function ROe(e,t){!gat(e,t)&&!e.__highByOuter&&w0(e,uat)}function NOe(e,t){!gat(e,t)&&!e.__highByOuter&&w0(e,dat)}function eB(e,t){e.__highByOuter|=1<<(t||0),w0(e,uat)}function tB(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&w0(e,dat)}function tcr(e){w0(e,tge)}function pat(e){w0(e,fat)}function hat(e){w0(e,Ylr)}function mat(e){w0(e,Klr)}function gat(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function vat(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(i,a){var o=Jme(a),s=i==="series",l=s?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!s&&r.push(l),o.isBlured&&(l.group.traverse(function(c){fat(c)}),s&&n.push(a)),o.isBlured=!1}),lt(r,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(n,!1,t)})}function Ese(e,t,n,r){var i=r.getModel();n=n||"coordinateSystem";function a(c,u){for(var d=0;d<u.length;d++){var f=c.getItemGraphicEl(u[d]);f&&pat(f)}}if(e!=null&&!(!t||t==="none")){var o=i.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(c){var u=o===c,d=c.coordinateSystem;d&&d.master&&(d=d.master);var f=d&&s?d===s:u;if(!(n==="series"&&!u||n==="coordinateSystem"&&!f||t==="series"&&u)){var p=r.getViewOfSeriesModel(c);if(p.group.traverse(function(g){g.__highByOuter&&u&&t==="self"||tge(g)}),Od(t))a(c.getData(),t);else if(Fr(t))for(var h=rs(t),m=0;m<h.length;m++)a(c.getData(h[m]),t[h[m]]);l.push(c),Jme(c).isBlured=!0}}),i.eachComponent(function(c,u){if(c!=="series"){var d=r.getViewOfComponentModel(u);d&&d.toggleBlurSeries&&d.toggleBlurSeries(l,!0,i)}})}}function Cse(e,t,n){if(!(e==null||t==null)){var r=n.getModel().getComponent(e,t);if(r){Jme(r).isBlured=!0;var i=n.getViewOfComponentModel(r);!i||!i.focusBlurEnabled||i.group.traverse(function(a){tge(a)})}}}function ncr(e,t,n){var r=e.seriesIndex,i=e.getData(t.dataType);if(i){var a=aC(i,t);a=(ar(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),l=0;!o&&l<s;)o=i.getItemGraphicEl(l++);if(o){var c=vo(o);Ese(r,c.focus,c.blurScope,n)}else{var u=e.get(["emphasis","focus"]),d=e.get(["emphasis","blurScope"]);u!=null&&Ese(r,u,d,n)}}}function nge(e,t,n,r){var i={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||n==null)return i;var a=r.getModel().getComponent(e,t);if(!a)return i;var o=r.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(n),l,c=0;c<s.length;c++)if(vo(s[c]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function rcr(e,t,n){var r=vo(e),i=nge(r.componentMainType,r.componentIndex,r.componentHighDownName,n),a=i.dispatchers,o=i.focusSelf;a?(o&&Cse(r.componentMainType,r.componentIndex,n),lt(a,function(s){return ROe(s,t)})):(Ese(r.seriesIndex,r.focus,r.blurScope,n),r.focus==="self"&&Cse(r.componentMainType,r.componentIndex,n),ROe(e,t))}function icr(e,t,n){vat(n);var r=vo(e),i=nge(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?lt(i,function(a){return NOe(a,t)}):NOe(e,t)}function acr(e,t,n){if(Tse(t)){var r=t.dataType,i=e.getData(r),a=aC(i,t);ar(a)||(a=[a]),e[t.type===$R?"toggleSelect":t.type===DR?"select":"unselect"](a,r)}}function OOe(e){var t=e.getAllData();lt(t,function(n){var r=n.data,i=n.type;r.eachItemGraphicEl(function(a,o){e.isSelected(o,i)?hat(a):mat(a)})})}function ocr(e){var t=[];return e.eachSeries(function(n){var r=n.getAllData();lt(r,function(i){i.data;var a=i.type,o=n.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:n.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function nB(e,t,n){yat(e,!0),w0(e,ecr),lcr(e,t,n)}function scr(e){yat(e,!1)}function wse(e,t,n,r){r?scr(e):nB(e,t,n)}function lcr(e,t,n){var r=vo(e);t!=null?(r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}var LOe=["emphasis","blur","select"],ccr={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function POe(e,t,n,r){n=n||"itemStyle";for(var i=0;i<LOe.length;i++){var a=LOe[i],o=t.getModel([a,n]),s=e.ensureState(a);s.style=o[ccr[n]]()}}function yat(e,t){var n=t===!1,r=e;e.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!n||r.__highDownDispatcher)&&(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function xse(e){return!!(e&&e.__highDownDispatcher)}function ucr(e){var t=xOe[e];return t==null&&wOe<=32&&(t=xOe[e]=wOe++),t}function Tse(e){var t=e.type;return t===DR||t===YM||t===$R}function kOe(e){var t=e.type;return t===yE||t===WM}function dcr(e){var t=cat(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}var Vw=f_.CMD,fcr=[[],[],[]],MOe=Math.sqrt,pcr=Math.atan2;function bat(e,t){if(t){var n=e.data,r=e.len(),i,a,o,s,l,c,u=Vw.M,d=Vw.C,f=Vw.L,p=Vw.R,h=Vw.A,m=Vw.Q;for(o=0,s=0;o<r;){switch(i=n[o++],s=o,a=0,i){case u:a=1;break;case f:a=1;break;case d:a=3;break;case m:a=2;break;case h:var g=t[4],v=t[5],y=MOe(t[0]*t[0]+t[1]*t[1]),_=MOe(t[2]*t[2]+t[3]*t[3]),S=pcr(-t[1]/_,t[0]/y);n[o]*=y,n[o++]+=g,n[o]*=_,n[o++]+=v,n[o++]*=y,n[o++]*=_,n[o++]+=S,n[o++]+=S,o+=2,s=o;break;case p:c[0]=n[o++],c[1]=n[o++],Tp(c,c,t),n[s++]=c[0],n[s++]=c[1],c[0]+=n[o++],c[1]+=n[o++],Tp(c,c,t),n[s++]=c[0],n[s++]=c[1]}for(l=0;l<a;l++){var C=fcr[l];C[0]=n[o++],C[1]=n[o++],Tp(C,C,t),n[s++]=C[0],n[s++]=C[1]}}e.increaseVersion()}}var gee=Math.sqrt,jk=Math.sin,zk=Math.cos,PI=Math.PI;function DOe(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Ise(e,t){return(e[0]*t[0]+e[1]*t[1])/(DOe(e)*DOe(t))}function $Oe(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(Ise(e,t))}function FOe(e,t,n,r,i,a,o,s,l,c,u){var d=l*(PI/180),f=zk(d)*(e-n)/2+jk(d)*(t-r)/2,p=-1*jk(d)*(e-n)/2+zk(d)*(t-r)/2,h=f*f/(o*o)+p*p/(s*s);h>1&&(o*=gee(h),s*=gee(h));var m=(i===a?-1:1)*gee((o*o*(s*s)-o*o*(p*p)-s*s*(f*f))/(o*o*(p*p)+s*s*(f*f)))||0,g=m*o*p/s,v=m*-s*f/o,y=(e+n)/2+zk(d)*g-jk(d)*v,_=(t+r)/2+jk(d)*g+zk(d)*v,S=$Oe([1,0],[(f-g)/o,(p-v)/s]),C=[(f-g)/o,(p-v)/s],w=[(-1*f-g)/o,(-1*p-v)/s],x=$Oe(C,w);if(Ise(C,w)<=-1&&(x=PI),Ise(C,w)>=1&&(x=0),x<0){var T=Math.round(x/PI*1e6)/1e6;x=PI*2+T%2*PI}u.addData(c,y,_,o,s,S,x,d,a)}var hcr=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,mcr=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function gcr(e){var t=new f_;if(!e)return t;var n=0,r=0,i=n,a=r,o,s=f_.CMD,l=e.match(hcr);if(!l)return t;for(var c=0;c<l.length;c++){for(var u=l[c],d=u.charAt(0),f=void 0,p=u.match(mcr)||[],h=p.length,m=0;m<h;m++)p[m]=parseFloat(p[m]);for(var g=0;g<h;){var v=void 0,y=void 0,_=void 0,S=void 0,C=void 0,w=void 0,x=void 0,T=n,A=r,I=void 0,R=void 0;switch(d){case"l":n+=p[g++],r+=p[g++],f=s.L,t.addData(f,n,r);break;case"L":n=p[g++],r=p[g++],f=s.L,t.addData(f,n,r);break;case"m":n+=p[g++],r+=p[g++],f=s.M,t.addData(f,n,r),i=n,a=r,d="l";break;case"M":n=p[g++],r=p[g++],f=s.M,t.addData(f,n,r),i=n,a=r,d="L";break;case"h":n+=p[g++],f=s.L,t.addData(f,n,r);break;case"H":n=p[g++],f=s.L,t.addData(f,n,r);break;case"v":r+=p[g++],f=s.L,t.addData(f,n,r);break;case"V":r=p[g++],f=s.L,t.addData(f,n,r);break;case"C":f=s.C,t.addData(f,p[g++],p[g++],p[g++],p[g++],p[g++],p[g++]),n=p[g-2],r=p[g-1];break;case"c":f=s.C,t.addData(f,p[g++]+n,p[g++]+r,p[g++]+n,p[g++]+r,p[g++]+n,p[g++]+r),n+=p[g-2],r+=p[g-1];break;case"S":v=n,y=r,I=t.len(),R=t.data,o===s.C&&(v+=n-R[I-4],y+=r-R[I-3]),f=s.C,T=p[g++],A=p[g++],n=p[g++],r=p[g++],t.addData(f,v,y,T,A,n,r);break;case"s":v=n,y=r,I=t.len(),R=t.data,o===s.C&&(v+=n-R[I-4],y+=r-R[I-3]),f=s.C,T=n+p[g++],A=r+p[g++],n+=p[g++],r+=p[g++],t.addData(f,v,y,T,A,n,r);break;case"Q":T=p[g++],A=p[g++],n=p[g++],r=p[g++],f=s.Q,t.addData(f,T,A,n,r);break;case"q":T=p[g++]+n,A=p[g++]+r,n+=p[g++],r+=p[g++],f=s.Q,t.addData(f,T,A,n,r);break;case"T":v=n,y=r,I=t.len(),R=t.data,o===s.Q&&(v+=n-R[I-4],y+=r-R[I-3]),n=p[g++],r=p[g++],f=s.Q,t.addData(f,v,y,n,r);break;case"t":v=n,y=r,I=t.len(),R=t.data,o===s.Q&&(v+=n-R[I-4],y+=r-R[I-3]),n+=p[g++],r+=p[g++],f=s.Q,t.addData(f,v,y,n,r);break;case"A":_=p[g++],S=p[g++],C=p[g++],w=p[g++],x=p[g++],T=n,A=r,n=p[g++],r=p[g++],f=s.A,FOe(T,A,n,r,w,x,_,S,C,f,t);break;case"a":_=p[g++],S=p[g++],C=p[g++],w=p[g++],x=p[g++],T=n,A=r,n+=p[g++],r+=p[g++],f=s.A,FOe(T,A,n,r,w,x,_,S,C,f,t);break}}(d==="z"||d==="Z")&&(f=s.Z,t.addData(f),n=i,r=a),o=f}return t.toStatic(),t}var _at=function(e){tr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(n){},t}(ha);function Sat(e){return e.setData!=null}function Eat(e,t){var n=gcr(e),r=Vn({},t);return r.buildPath=function(i){if(Sat(i)){i.setData(n.data);var a=i.getContext();a&&i.rebuildPath(a,1)}else{var a=i;n.rebuildPath(a,1)}},r.applyTransform=function(i){bat(n,i),this.dirtyShape()},r}function vcr(e,t){return new _at(Eat(e,t))}function ycr(e,t){var n=Eat(e,t),r=function(i){tr(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=n.applyTransform,s.buildPath=n.buildPath,s}return a}(_at);return r}function bcr(e,t){for(var n=[],r=e.length,i=0;i<r;i++){var a=e[i];n.push(a.getUpdatedPathProxy(!0))}var o=new ha(t);return o.createPathProxy(),o.buildPath=function(s){if(Sat(s)){s.appendPath(n);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function rge(e,t){t=t||{};var n=new ha;return e.shape&&n.setShape(e.shape),n.setStyle(e.style),t.bakeTransform?bat(n.path,e.getComputedTransform()):t.toLocal?n.setLocalTransform(e.getComputedTransform()):n.copyTransform(e),n.buildPath=e.buildPath,n.applyTransform=n.applyTransform,n.z=e.z,n.z2=e.z2,n.zlevel=e.zlevel,n}var Jl=function(e){tr(t,e);function t(n){var r=e.call(this)||this;return r.isGroup=!0,r._children=[],r.attr(n),r}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(n){return this._children[n]},t.prototype.childOfName=function(n){for(var r=this._children,i=0;i<r.length;i++)if(r[i].name===n)return r[i]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(n){return n&&n!==this&&n.parent!==this&&(this._children.push(n),this._doAdd(n)),this},t.prototype.addBefore=function(n,r){if(n&&n!==this&&n.parent!==this&&r&&r.parent===this){var i=this._children,a=i.indexOf(r);a>=0&&(i.splice(a,0,n),this._doAdd(n))}return this},t.prototype.replace=function(n,r){var i=ja(this._children,n);return i>=0&&this.replaceAt(r,i),this},t.prototype.replaceAt=function(n,r){var i=this._children,a=i[r];if(n&&n!==this&&n.parent!==this&&n!==a){i[r]=n,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(n)}return this},t.prototype._doAdd=function(n){n.parent&&n.parent.remove(n),n.parent=this;var r=this.__zr;r&&r!==n.__zr&&n.addSelfToZr(r),r&&r.refresh()},t.prototype.remove=function(n){var r=this.__zr,i=this._children,a=ja(i,n);return a<0?this:(i.splice(a,1),n.parent=null,r&&n.removeSelfFromZr(r),r&&r.refresh(),this)},t.prototype.removeAll=function(){for(var n=this._children,r=this.__zr,i=0;i<n.length;i++){var a=n[i];r&&a.removeSelfFromZr(r),a.parent=null}return n.length=0,this},t.prototype.eachChild=function(n,r){for(var i=this._children,a=0;a<i.length;a++){var o=i[a];n.call(r,o,a)}return this},t.prototype.traverse=function(n,r){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=n.call(r,a);a.isGroup&&!o&&a.traverse(n,r)}return this},t.prototype.addSelfToZr=function(n){e.prototype.addSelfToZr.call(this,n);for(var r=0;r<this._children.length;r++){var i=this._children[r];i.addSelfToZr(n)}},t.prototype.removeSelfFromZr=function(n){e.prototype.removeSelfFromZr.call(this,n);for(var r=0;r<this._children.length;r++){var i=this._children[r];i.removeSelfFromZr(n)}},t.prototype.getBoundingRect=function(n){for(var r=new Na(0,0,0,0),i=n||this._children,a=[],o=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var c=l.getBoundingRect(),u=l.getLocalTransform(a);u?(Na.applyTransform(r,c,u),o=o||r.clone(),o.union(r)):(o=o||c.clone(),o.union(c))}}return o||r},t}(iH);Jl.prototype.type="group";var _cr=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),cH=function(e){tr(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new _cr},t.prototype.buildPath=function(n,r){n.moveTo(r.cx+r.r,r.cy),n.arc(r.cx,r.cy,r.r,0,Math.PI*2)},t}(ha);cH.prototype.type="circle";var Scr=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),ige=function(e){tr(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new Scr},t.prototype.buildPath=function(n,r){var i=.5522848,a=r.cx,o=r.cy,s=r.rx,l=r.ry,c=s*i,u=l*i;n.moveTo(a-s,o),n.bezierCurveTo(a-s,o-u,a-c,o-l,a,o-l),n.bezierCurveTo(a+c,o-l,a+s,o-u,a+s,o),n.bezierCurveTo(a+s,o+u,a+c,o+l,a,o+l),n.bezierCurveTo(a-c,o+l,a-s,o+u,a-s,o),n.closePath()},t}(ha);ige.prototype.type="ellipse";var Cat=Math.PI,vee=Cat*2,Y2=Math.sin,Gw=Math.cos,Ecr=Math.acos,Bc=Math.atan2,BOe=Math.abs,FR=Math.sqrt,DA=Math.max,cg=Math.min,Th=1e-4;function Ccr(e,t,n,r,i,a,o,s){var l=n-e,c=r-t,u=o-i,d=s-a,f=d*l-u*c;if(!(f*f<Th))return f=(u*(t-a)-d*(e-i))/f,[e+f*l,t+f*c]}function Uk(e,t,n,r,i,a,o){var s=e-n,l=t-r,c=(o?a:-a)/FR(s*s+l*l),u=c*l,d=-c*s,f=e+u,p=t+d,h=n+u,m=r+d,g=(f+h)/2,v=(p+m)/2,y=h-f,_=m-p,S=y*y+_*_,C=i-a,w=f*m-h*p,x=(_<0?-1:1)*FR(DA(0,C*C*S-w*w)),T=(w*_-y*x)/S,A=(-w*y-_*x)/S,I=(w*_+y*x)/S,R=(-w*y+_*x)/S,N=T-g,P=A-v,L=I-g,$=R-v;return N*N+P*P>L*L+$*$&&(T=I,A=R),{cx:T,cy:A,x0:-u,y0:-d,x1:T*(i/C-1),y1:A*(i/C-1)}}function wcr(e){var t;if(ar(e)){var n=e.length;if(!n)return e;n===1?t=[e[0],e[0],0,0]:n===2?t=[e[0],e[0],e[1],e[1]]:n===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function xcr(e,t){var n,r=DA(t.r,0),i=DA(t.r0||0,0),a=r>0,o=i>0;if(!(!a&&!o)){if(a||(r=i,i=0),i>r){var s=r;r=i,i=s}var l=t.startAngle,c=t.endAngle;if(!(isNaN(l)||isNaN(c))){var u=t.cx,d=t.cy,f=!!t.clockwise,p=BOe(c-l),h=p>vee&&p%vee;if(h>Th&&(p=h),!(r>Th))e.moveTo(u,d);else if(p>vee-Th)e.moveTo(u+r*Gw(l),d+r*Y2(l)),e.arc(u,d,r,l,c,!f),i>Th&&(e.moveTo(u+i*Gw(c),d+i*Y2(c)),e.arc(u,d,i,c,l,f));else{var m=void 0,g=void 0,v=void 0,y=void 0,_=void 0,S=void 0,C=void 0,w=void 0,x=void 0,T=void 0,A=void 0,I=void 0,R=void 0,N=void 0,P=void 0,L=void 0,$=r*Gw(l),D=r*Y2(l),z=i*Gw(c),U=i*Y2(c),H=p>Th;if(H){var M=t.cornerRadius;M&&(n=wcr(M),m=n[0],g=n[1],v=n[2],y=n[3]);var B=BOe(r-i)/2;if(_=cg(B,v),S=cg(B,y),C=cg(B,m),w=cg(B,g),A=x=DA(_,S),I=T=DA(C,w),(x>Th||T>Th)&&(R=r*Gw(c),N=r*Y2(c),P=i*Gw(l),L=i*Y2(l),p<Cat)){var k=Ccr($,D,P,L,R,N,z,U);if(k){var F=$-k[0],G=D-k[1],q=R-k[0],W=N-k[1],K=1/Y2(Ecr((F*q+G*W)/(FR(F*F+G*G)*FR(q*q+W*W)))/2),J=FR(k[0]*k[0]+k[1]*k[1]);A=cg(x,(r-J)/(K+1)),I=cg(T,(i-J)/(K-1))}}}if(!H)e.moveTo(u+$,d+D);else if(A>Th){var te=cg(v,A),ae=cg(y,A),re=Uk(P,L,$,D,r,te,f),ue=Uk(R,N,z,U,r,ae,f);e.moveTo(u+re.cx+re.x0,d+re.cy+re.y0),A<x&&te===ae?e.arc(u+re.cx,d+re.cy,A,Bc(re.y0,re.x0),Bc(ue.y0,ue.x0),!f):(te>0&&e.arc(u+re.cx,d+re.cy,te,Bc(re.y0,re.x0),Bc(re.y1,re.x1),!f),e.arc(u,d,r,Bc(re.cy+re.y1,re.cx+re.x1),Bc(ue.cy+ue.y1,ue.cx+ue.x1),!f),ae>0&&e.arc(u+ue.cx,d+ue.cy,ae,Bc(ue.y1,ue.x1),Bc(ue.y0,ue.x0),!f))}else e.moveTo(u+$,d+D),e.arc(u,d,r,l,c,!f);if(!(i>Th)||!H)e.lineTo(u+z,d+U);else if(I>Th){var te=cg(m,I),ae=cg(g,I),re=Uk(z,U,R,N,i,-ae,f),ue=Uk($,D,P,L,i,-te,f);e.lineTo(u+re.cx+re.x0,d+re.cy+re.y0),I<T&&te===ae?e.arc(u+re.cx,d+re.cy,I,Bc(re.y0,re.x0),Bc(ue.y0,ue.x0),!f):(ae>0&&e.arc(u+re.cx,d+re.cy,ae,Bc(re.y0,re.x0),Bc(re.y1,re.x1),!f),e.arc(u,d,i,Bc(re.cy+re.y1,re.cx+re.x1),Bc(ue.cy+ue.y1,ue.cx+ue.x1),f),te>0&&e.arc(u+ue.cx,d+ue.cy,te,Bc(ue.y1,ue.x1),Bc(ue.y0,ue.x0),!f))}else e.lineTo(u+z,d+U),e.arc(u,d,i,c,l,f)}e.closePath()}}}var Tcr=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),$3=function(e){tr(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new Tcr},t.prototype.buildPath=function(n,r){xcr(n,r)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(ha);$3.prototype.type="sector";var Icr=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),age=function(e){tr(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new Icr},t.prototype.buildPath=function(n,r){var i=r.cx,a=r.cy,o=Math.PI*2;n.moveTo(i+r.r,a),n.arc(i,a,r.r,0,o,!1),n.moveTo(i+r.r0,a),n.arc(i,a,r.r0,0,o,!0)},t}(ha);age.prototype.type="ring";function Acr(e,t,n,r){var i=[],a=[],o=[],s=[],l,c,u,d;if(r){u=[1/0,1/0],d=[-1/0,-1/0];for(var f=0,p=e.length;f<p;f++)r5(u,u,e[f]),i5(d,d,e[f]);r5(u,u,r[0]),i5(d,d,r[1])}for(var f=0,p=e.length;f<p;f++){var h=e[f];if(n)l=e[f?f-1:p-1],c=e[(f+1)%p];else if(f===0||f===p-1){i.push(msr(e[f]));continue}else l=e[f-1],c=e[f+1];gsr(a,c,l),YJ(a,a,t);var m=dse(h,l),g=dse(h,c),v=m+g;v!==0&&(m/=v,g/=v),YJ(o,a,-m),YJ(s,a,g);var y=G6e([],h,o),_=G6e([],h,s);r&&(i5(y,y,u),r5(y,y,d),i5(_,_,u),r5(_,_,d)),i.push(y),i.push(_)}return n&&i.push(i.shift()),i}function wat(e,t,n){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r){var a=Acr(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(n?o:o-1);s++){var l=a[s*2],c=a[s*2+1],u=i[(s+1)%o];e.bezierCurveTo(l[0],l[1],c[0],c[1],u[0],u[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,d=i.length;s<d;s++)e.lineTo(i[s][0],i[s][1])}n&&e.closePath()}}var Rcr=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),x8=function(e){tr(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new Rcr},t.prototype.buildPath=function(n,r){wat(n,r,!0)},t}(ha);x8.prototype.type="polygon";var Ncr=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),uH=function(e){tr(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Ncr},t.prototype.buildPath=function(n,r){wat(n,r,!1)},t}(ha);uH.prototype.type="polyline";var Ocr={},Lcr=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),p_=function(e){tr(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Lcr},t.prototype.buildPath=function(n,r){var i,a,o,s;if(this.subPixelOptimize){var l=Qit(Ocr,r,this.style);i=l.x1,a=l.y1,o=l.x2,s=l.y2}else i=r.x1,a=r.y1,o=r.x2,s=r.y2;var c=r.percent;c!==0&&(n.moveTo(i,a),c<1&&(o=i*(1-c)+o*c,s=a*(1-c)+s*c),n.lineTo(o,s))},t.prototype.pointAt=function(n){var r=this.shape;return[r.x1*(1-n)+r.x2*n,r.y1*(1-n)+r.y2*n]},t}(ha);p_.prototype.type="line";var td=[],Pcr=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}();function jOe(e,t,n){var r=e.cpx2,i=e.cpy2;return r!=null||i!=null?[(n?K6e:gc)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?K6e:gc)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?X6e:cd)(e.x1,e.cpx1,e.x2,t),(n?X6e:cd)(e.y1,e.cpy1,e.y2,t)]}var oge=function(e){tr(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Pcr},t.prototype.buildPath=function(n,r){var i=r.x1,a=r.y1,o=r.x2,s=r.y2,l=r.cpx1,c=r.cpy1,u=r.cpx2,d=r.cpy2,f=r.percent;f!==0&&(n.moveTo(i,a),u==null||d==null?(f<1&&(YF(i,l,o,f,td),l=td[1],o=td[2],YF(a,c,s,f,td),c=td[1],s=td[2]),n.quadraticCurveTo(l,c,o,s)):(f<1&&(d_(i,l,u,o,f,td),l=td[1],u=td[2],o=td[3],d_(a,c,d,s,f,td),c=td[1],d=td[2],s=td[3]),n.bezierCurveTo(l,c,u,d,o,s)))},t.prototype.pointAt=function(n){return jOe(this.shape,n,!1)},t.prototype.tangentAt=function(n){var r=jOe(this.shape,n,!0);return bsr(r,r)},t}(ha);oge.prototype.type="bezier-curve";var kcr=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),dH=function(e){tr(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new kcr},t.prototype.buildPath=function(n,r){var i=r.cx,a=r.cy,o=Math.max(r.r,0),s=r.startAngle,l=r.endAngle,c=r.clockwise,u=Math.cos(s),d=Math.sin(s);n.moveTo(u*o+i,d*o+a),n.arc(i,a,o,s,l,!c)},t}(ha);dH.prototype.type="arc";var Mcr=function(e){tr(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="compound",n}return t.prototype._updatePathDirty=function(){for(var n=this.shape.paths,r=this.shapeChanged(),i=0;i<n.length;i++)r=r||n[i].shapeChanged();r&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var n=this.shape.paths||[],r=this.getGlobalScale(),i=0;i<n.length;i++)n[i].path||n[i].createPathProxy(),n[i].path.setScale(r[0],r[1],n[i].segmentIgnoreThreshold)},t.prototype.buildPath=function(n,r){for(var i=r.paths||[],a=0;a<i.length;a++)i[a].buildPath(n,i[a].shape,!0)},t.prototype.afterBrush=function(){for(var n=this.shape.paths||[],r=0;r<n.length;r++)n[r].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),ha.prototype.getBoundingRect.call(this)},t}(ha),xat=function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,n){this.colorStops.push({offset:t,color:n})},e}(),sge=function(e){tr(t,e);function t(n,r,i,a,o,s){var l=e.call(this,o)||this;return l.x=n??0,l.y=r??0,l.x2=i??1,l.y2=a??0,l.type="linear",l.global=s||!1,l}return t}(xat),Dcr=function(e){tr(t,e);function t(n,r,i,a,o){var s=e.call(this,a)||this;return s.x=n??.5,s.y=r??.5,s.r=i??.5,s.type="radial",s.global=o||!1,s}return t}(xat),K2=[0,0],X2=[0,0],Hk=new na,Vk=new na,rB=function(){function e(t,n){this._corners=[],this._axes=[],this._origin=[0,0];for(var r=0;r<4;r++)this._corners[r]=new na;for(var r=0;r<2;r++)this._axes[r]=new na;t&&this.fromBoundingRect(t,n)}return e.prototype.fromBoundingRect=function(t,n){var r=this._corners,i=this._axes,a=t.x,o=t.y,s=a+t.width,l=o+t.height;if(r[0].set(a,o),r[1].set(s,o),r[2].set(s,l),r[3].set(a,l),n)for(var c=0;c<4;c++)r[c].transform(n);na.sub(i[0],r[1],r[0]),na.sub(i[1],r[3],r[0]),i[0].normalize(),i[1].normalize();for(var c=0;c<2;c++)this._origin[c]=i[c].dot(r[0])},e.prototype.intersect=function(t,n){var r=!0,i=!n;return Hk.set(1/0,1/0),Vk.set(0,0),!this._intersectCheckOneSide(this,t,Hk,Vk,i,1)&&(r=!1,i)||!this._intersectCheckOneSide(t,this,Hk,Vk,i,-1)&&(r=!1,i)||i||na.copy(n,r?Hk:Vk),r},e.prototype._intersectCheckOneSide=function(t,n,r,i,a,o){for(var s=!0,l=0;l<2;l++){var c=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,K2),this._getProjMinMaxOnAxis(l,n._corners,X2),K2[1]<X2[0]||K2[0]>X2[1]){if(s=!1,a)return s;var u=Math.abs(X2[0]-K2[1]),d=Math.abs(K2[0]-X2[1]);Math.min(u,d)>i.len()&&(u<d?na.scale(i,c,-u*o):na.scale(i,c,d*o))}else if(r){var u=Math.abs(X2[0]-K2[1]),d=Math.abs(K2[0]-X2[1]);Math.min(u,d)<r.len()&&(u<d?na.scale(r,c,u*o):na.scale(r,c,-d*o))}}return s},e.prototype._getProjMinMaxOnAxis=function(t,n,r){for(var i=this._axes[t],a=this._origin,o=n[0].dot(i)+a[t],s=o,l=o,c=1;c<n.length;c++){var u=n[c].dot(i)+a[t];s=Math.min(u,s),l=Math.max(u,l)}r[0]=s,r[1]=l},e}(),$cr=[],Fcr=function(e){tr(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.notClear=!0,n.incremental=!0,n._displayables=[],n._temporaryDisplayables=[],n._cursor=0,n}return t.prototype.traverse=function(n,r){n.call(r,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(n,r){r?this._temporaryDisplayables.push(n):this._displayables.push(n),this.markRedraw()},t.prototype.addDisplayables=function(n,r){r=r||!1;for(var i=0;i<n.length;i++)this.addDisplayable(n[i],r)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(n){for(var r=this._cursor;r<this._displayables.length;r++)n&&n(this._displayables[r]);for(var r=0;r<this._temporaryDisplayables.length;r++)n&&n(this._temporaryDisplayables[r])},t.prototype.update=function(){this.updateTransform();for(var n=this._cursor;n<this._displayables.length;n++){var r=this._displayables[n];r.parent=this,r.update(),r.parent=null}for(var n=0;n<this._temporaryDisplayables.length;n++){var r=this._temporaryDisplayables[n];r.parent=this,r.update(),r.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var n=new Na(1/0,1/0,-1/0,-1/0),r=0;r<this._displayables.length;r++){var i=this._displayables[r],a=i.getBoundingRect().clone();i.needLocalTransform()&&a.applyTransform(i.getLocalTransform($cr)),n.union(a)}this._rect=n}return this._rect},t.prototype.contain=function(n,r){var i=this.transformCoordToLocal(n,r),a=this.getBoundingRect();if(a.contain(i[0],i[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(n,r))return!0}return!1},t}(r4),Tat=rl();function fH(e,t,n,r,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=e==="update";if(s){var c=void 0,u=void 0,d=void 0;r?(c=ra(r.duration,200),u=ra(r.easing,"cubicOut"),d=0):(c=t.getShallow(l?"animationDurationUpdate":"animationDuration"),u=t.getShallow(l?"animationEasingUpdate":"animationEasing"),d=t.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(c=a.duration),a.easing!=null&&(u=a.easing),a.delay!=null&&(d=a.delay)),hi(d)&&(d=d(n,i)),hi(c)&&(c=c(n));var f={duration:c||0,delay:d,easing:u};return f}else return null}function lge(e,t,n,r,i,a,o){var s=!1,l;hi(i)?(o=a,a=i,i=null):Fr(i)&&(a=i.cb,o=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var c=e==="leave";c||t.stopAnimation("leave");var u=fH(e,r,i,c?l||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,i):null);if(u&&u.duration>0){var d=u.duration,f=u.delay,p=u.easing,h={duration:d,delay:f||0,easing:p,done:a,force:!!a||!!o,setToFinal:!c,scope:e,during:o};s?t.animateFrom(n,h):t.animateTo(n,h)}else t.stopAnimation(),!s&&t.attr(n),o&&o(1),a&&a()}function h_(e,t,n,r,i,a){lge("update",e,t,n,r,i,a)}function i4(e,t,n,r,i,a){lge("enter",e,t,n,r,i,a)}function BR(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var n=e.animators[t];if(n.scope==="leave")return!0}return!1}function iB(e,t,n,r,i,a){BR(e)||lge("leave",e,t,n,r,i,a)}function zOe(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),iB(e,{style:{opacity:0}},t,n,r)}function Bcr(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(i){i.isGroup||zOe(i,t,n,r)}):zOe(e,t,n,r)}function jcr(e){Tat(e).oldStyle=e.style}function zcr(e){return Tat(e).oldStyle}var aB=Math.max,oB=Math.min,Ase={};function Ucr(e){return ha.extend(e)}var Hcr=ycr;function Vcr(e,t){return Hcr(e,t)}function Lm(e,t){Ase[e]=t}function Gcr(e){if(Ase.hasOwnProperty(e))return Ase[e]}function cge(e,t,n,r){var i=vcr(e,t);return n&&(r==="center"&&(n=Aat(n,i.getBoundingRect())),Rat(i,n)),i}function Iat(e,t,n){var r=new G_({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(i){if(n==="center"){var a={width:i.width,height:i.height};r.setStyle(Aat(t,a))}}});return r}function Aat(e,t){var n=t.width/t.height,r=e.height*n,i;r<=e.width?i=e.height:(r=e.width,i=r/n);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-r/2,y:o-i/2,width:r,height:i}}var qcr=bcr;function Rat(e,t){if(e.applyTransform){var n=e.getBoundingRect(),r=n.calculateTransform(t);e.applyTransform(r)}}function b6(e,t){return Qit(e,e,{lineWidth:t}),e}function Wcr(e){return Jit(e.shape,e.shape,e.style),e}var Ycr=GS;function Nat(e,t){for(var n=Vme([]);e&&e!==t;)H5(n,e.getLocalTransform(),n),e=e.parent;return n}function _6(e,t,n){return t&&!Od(t)&&(t=nH.getLocalTransform(t)),n&&(t=qme([],t)),Tp([],e,t)}function Oat(e,t,n){var r=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),a=[e==="left"?-r:e==="right"?r:0,e==="top"?-i:e==="bottom"?i:0];return a=_6(a,t,n),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function UOe(e){return!e.isGroup}function Kcr(e){return e.shape!=null}function Lat(e,t,n){if(!e||!t)return;function r(o){var s={};return o.traverse(function(l){UOe(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return Kcr(o)&&(s.shape=Vn({},o.shape)),s}var a=r(e);t.traverse(function(o){if(UOe(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),h_(o,l,n,vo(o).dataIndex)}}})}function Xcr(e,t){return Nr(e,function(n){var r=n[0];r=aB(r,t.x),r=oB(r,t.x+t.width);var i=n[1];return i=aB(i,t.y),i=oB(i,t.y+t.height),[r,i]})}function Zcr(e,t){var n=aB(e.x,t.x),r=oB(e.x+e.width,t.x+t.width),i=aB(e.y,t.y),a=oB(e.y+e.height,t.y+t.height);if(r>=n&&a>=i)return{x:n,y:i,width:r-n,height:a-i}}function uge(e,t,n){var r=Vn({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(i.image=e.slice(8),Hi(i,n),new G_(r)):cge(e.replace("path://",""),r,n,"center")}function Qcr(e,t,n,r,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(Pat(e,t,n,r,s[0],s[1],o[0],o[1]))return!0;o=s}}function Pat(e,t,n,r,i,a,o,s){var l=n-e,c=r-t,u=o-i,d=s-a,f=yee(u,d,l,c);if(Jcr(f))return!1;var p=e-i,h=t-a,m=yee(p,h,l,c)/f;if(m<0||m>1)return!1;var g=yee(p,h,u,d)/f;return!(g<0||g>1)}function yee(e,t,n,r){return e*r-n*t}function Jcr(e){return e<=1e-6&&e>=-1e-6}function dge(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=yr(t)?{formatter:t}:t,a=n.mainType,o=n.componentIndex,s={componentType:a,name:r,$vars:["name"]};s[a+"Index"]=o;var l=e.formatterParamsExtra;l&&lt(rs(l),function(u){D3(s,u)||(s[u]=l[u],s.$vars.push(u))});var c=vo(e.el);c.componentMainType=a,c.componentIndex=o,c.tooltipConfig={name:r,option:Hi({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function HOe(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function fge(e,t){if(e)if(ar(e))for(var n=0;n<e.length;n++)HOe(e[n],t);else HOe(e,t)}Lm("circle",cH);Lm("ellipse",ige);Lm("sector",$3);Lm("ring",age);Lm("polygon",x8);Lm("polyline",uH);Lm("rect",Ps);Lm("line",p_);Lm("bezierCurve",oge);Lm("arc",dH);const eur=Object.freeze(Object.defineProperty({__proto__:null,Arc:dH,BezierCurve:oge,BoundingRect:Na,Circle:cH,CompoundPath:Mcr,Ellipse:ige,Group:Jl,Image:G_,IncrementalDisplayable:Fcr,Line:p_,LinearGradient:sge,OrientedBoundingRect:rB,Path:ha,Point:na,Polygon:x8,Polyline:uH,RadialGradient:Dcr,Rect:Ps,Ring:age,Sector:$3,Text:Du,applyTransform:_6,clipPointsByRect:Xcr,clipRectByRect:Zcr,createIcon:uge,extendPath:Vcr,extendShape:Ucr,getShapeClass:Gcr,getTransform:Nat,groupTransition:Lat,initProps:i4,isElementRemoved:BR,lineLineIntersect:Pat,linePolygonIntersect:Qcr,makeImage:Iat,makePath:cge,mergePath:qcr,registerShape:Lm,removeElement:iB,removeElementWithFadeOut:Bcr,resizePath:Rat,setTooltipConfig:dge,subPixelOptimize:Ycr,subPixelOptimizeLine:b6,subPixelOptimizeRect:Wcr,transformDirection:Oat,traverseElements:fge,updateProps:h_},Symbol.toStringTag,{value:"Module"}));var pH={};function tur(e,t){for(var n=0;n<sv.length;n++){var r=sv[n],i=t[r],a=e.ensureState(r);a.style=a.style||{},a.style.text=i}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function VOe(e,t,n){var r=e.labelFetcher,i=e.labelDataIndex,a=e.labelDimIndex,o=t.normal,s;r&&(s=r.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),n!=null?{interpolatedValue:n}:null)),s==null&&(s=hi(e.defaultText)?e.defaultText(i,e,n):e.defaultText);for(var l={normal:s},c=0;c<sv.length;c++){var u=sv[c],d=t[u];l[u]=ra(r?r.getFormattedLabel(i,u,null,a,d&&d.get("formatter")):null,s)}return l}function pge(e,t,n,r){n=n||pH;for(var i=e instanceof Du,a=!1,o=0;o<TOe.length;o++){var s=t[TOe[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=i?e:e.getTextContent();if(a){i||(l||(l=new Du,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var c=VOe(n,t),u=t.normal,d=!!u.getShallow("show"),f=oC(u,r&&r.normal,n,!1,!i);f.text=c.normal,i||e.setTextConfig(GOe(u,n,!1));for(var o=0;o<sv.length;o++){var p=sv[o],s=t[p];if(s){var h=l.ensureState(p),m=!!ra(s.getShallow("show"),d);if(m!==d&&(h.ignore=!m),h.style=oC(s,r&&r[p],n,!0,!i),h.style.text=c[p],!i){var g=e.ensureState(p);g.textConfig=GOe(s,n,!0)}}}l.silent=!!u.getShallow("silent"),l.style.x!=null&&(f.x=l.style.x),l.style.y!=null&&(f.y=l.style.y),l.ignore=!d,l.useStyle(f),l.dirty(),n.enableTextSetter&&(mge(l).setLabelText=function(v){var y=VOe(n,t,v);tur(l,y)})}else l&&(l.ignore=!0);e.dirty()}function hge(e,t){t=t||"label";for(var n={normal:e.getModel(t)},r=0;r<sv.length;r++){var i=sv[r];n[i]=e.getModel([i,t])}return n}function oC(e,t,n,r,i){var a={};return nur(a,e,n,r,i),t&&Vn(a,t),a}function GOe(e,t,n){t=t||{};var r={},i,a=e.getShallow("rotate"),o=ra(e.getShallow("distance"),n?null:5),s=e.getShallow("offset");return i=e.getShallow("position")||(n?null:"inside"),i==="outside"&&(i=t.defaultOutsidePosition||"top"),i!=null&&(r.position=i),s!=null&&(r.offset=s),a!=null&&(a*=Math.PI/180,r.rotation=a),o!=null&&(r.distance=o),r.outsideFill=e.get("color")==="inherit"?t.inheritColor||null:"auto",r}function nur(e,t,n,r,i){n=n||pH;var a=t.ecModel,o=a&&a.option.textStyle,s=rur(t),l;if(s){l={};for(var c in s)if(s.hasOwnProperty(c)){var u=t.getModel(["rich",c]);KOe(l[c]={},u,o,n,r,i,!1,!0)}}l&&(e.rich=l);var d=t.get("overflow");d&&(e.overflow=d);var f=t.get("minMargin");f!=null&&(e.margin=f),KOe(e,t,o,n,r,i,!0,!1)}function rur(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||pH).rich;if(n){t=t||{};for(var r=rs(n),i=0;i<r.length;i++){var a=r[i];t[a]=1}}e=e.parentModel}return t}var qOe=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],WOe=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],YOe=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function KOe(e,t,n,r,i,a,o,s){n=!i&&n||pH;var l=r&&r.inheritColor,c=t.getShallow("color"),u=t.getShallow("textBorderColor"),d=ra(t.getShallow("opacity"),n.opacity);(c==="inherit"||c==="auto")&&(l?c=l:c=null),(u==="inherit"||u==="auto")&&(l?u=l:u=null),a||(c=c||n.color,u=u||n.textBorderColor),c!=null&&(e.fill=c),u!=null&&(e.stroke=u);var f=ra(t.getShallow("textBorderWidth"),n.textBorderWidth);f!=null&&(e.lineWidth=f);var p=ra(t.getShallow("textBorderType"),n.textBorderType);p!=null&&(e.lineDash=p);var h=ra(t.getShallow("textBorderDashOffset"),n.textBorderDashOffset);h!=null&&(e.lineDashOffset=h),!i&&d==null&&!s&&(d=r&&r.defaultOpacity),d!=null&&(e.opacity=d),!i&&!a&&e.fill==null&&r.inheritColor&&(e.fill=r.inheritColor);for(var m=0;m<qOe.length;m++){var g=qOe[m],v=ra(t.getShallow(g),n[g]);v!=null&&(e[g]=v)}for(var m=0;m<WOe.length;m++){var g=WOe[m],v=t.getShallow(g);v!=null&&(e[g]=v)}if(e.verticalAlign==null){var y=t.getShallow("baseline");y!=null&&(e.verticalAlign=y)}if(!o||!r.disableBox){for(var m=0;m<YOe.length;m++){var g=YOe[m],v=t.getShallow(g);v!=null&&(e[g]=v)}var _=t.getShallow("borderType");_!=null&&(e.borderDash=_),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&l&&(e.backgroundColor=l),(e.borderColor==="auto"||e.borderColor==="inherit")&&l&&(e.borderColor=l)}}function iur(e,t){var n=t&&t.getModel("textStyle");return Fg([e.fontStyle||n&&n.getShallow("fontStyle")||"",e.fontWeight||n&&n.getShallow("fontWeight")||"",(e.fontSize||n&&n.getShallow("fontSize")||12)+"px",e.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var mge=rl();function mOr(e,t,n,r){if(e){var i=mge(e);i.prevValue=i.value,i.value=n;var a=t.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=r,i.statesModels=t)}}var aur=["textStyle","color"],bee=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],_ee=new Du,our=function(){function e(){}return e.prototype.getTextColor=function(t){var n=this.ecModel;return this.getShallow("color")||(!t&&n?n.get(aur):null)},e.prototype.getFont=function(){return iur({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(t){for(var n={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},r=0;r<bee.length;r++)n[bee[r]]=this.getShallow(bee[r]);return _ee.useStyle(n),_ee.update(),_ee.getBoundingRect()},e}(),kat=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],sur=g6(kat),lur=function(){function e(){}return e.prototype.getLineStyle=function(t){return sur(this,t)},e}(),Mat=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],cur=g6(Mat),uur=function(){function e(){}return e.prototype.getItemStyle=function(t,n){return cur(this,t,n)},e}(),Os=function(){function e(t,n,r){this.parentModel=n,this.ecModel=r,this.option=t}return e.prototype.init=function(t,n,r){},e.prototype.mergeOption=function(t,n){ba(this.option,t,!0)},e.prototype.get=function(t,n){return t==null?this.option:this._doGet(this.parsePath(t),!n&&this.parentModel)},e.prototype.getShallow=function(t,n){var r=this.option,i=r==null?r:r[t];if(i==null&&!n){var a=this.parentModel;a&&(i=a.getShallow(t))}return i},e.prototype.getModel=function(t,n){var r=t!=null,i=r?this.parsePath(t):null,a=r?this._doGet(i):this.option;return n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(a,n,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var t=this.constructor;return new t(Xi(this.option))},e.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},e.prototype.resolveParentPath=function(t){return t},e.prototype.isAnimationEnabled=function(){if(!ci.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(t,n){var r=this.option;if(!t)return r;for(var i=0;i<t.length&&!(t[i]&&(r=r&&typeof r=="object"?r[t[i]]:null,r==null));i++);return r==null&&n&&(r=n._doGet(this.resolveParentPath(t),n.parentModel)),r},e}();Hme(Os);Xor(Os);Cv(Os,lur);Cv(Os,uur);Cv(Os,tsr);Cv(Os,our);function kI(e){return e==null?0:e.length||1}function XOe(e){return e}var Rse=function(){function e(t,n,r,i,a,o){this._old=t,this._new=n,this._oldKeyGetter=r||XOe,this._newKeyGetter=i||XOe,this.context=a,this._diffModeMultiple=o==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,n=this._new,r={},i=new Array(t.length),a=new Array(n.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(n,r,a,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=i[o],l=r[s],c=kI(l);if(c>1){var u=l.shift();l.length===1&&(r[s]=l[0]),this._update&&this._update(u,o)}else c===1?(r[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,r)},e.prototype._executeMultiple=function(){var t=this._old,n=this._new,r={},i={},a=[],o=[];this._initIndexMap(t,r,a,"_oldKeyGetter"),this._initIndexMap(n,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],c=r[l],u=i[l],d=kI(c),f=kI(u);if(d>1&&f===1)this._updateManyToOne&&this._updateManyToOne(u,c),i[l]=null;else if(d===1&&f>1)this._updateOneToMany&&this._updateOneToMany(u,c),i[l]=null;else if(d===1&&f===1)this._update&&this._update(u,c),i[l]=null;else if(d>1&&f>1)this._updateManyToMany&&this._updateManyToMany(u,c),i[l]=null;else if(d>1)for(var p=0;p<d;p++)this._remove&&this._remove(c[p]);else this._remove&&this._remove(c)}this._performRestAdd(o,i)},e.prototype._performRestAdd=function(t,n){for(var r=0;r<t.length;r++){var i=t[r],a=n[i],o=kI(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);n[i]=null}},e.prototype._initIndexMap=function(t,n,r,i){for(var a=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[i](t[o],o);if(a||(r[o]=s),!!n){var l=n[s],c=kI(l);c===0?(n[s]=o,a&&r.push(s)):c===1?n[s]=[l,o]:l.push(o)}}},e}(),Dat=Mr(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Yp="original",Pd="arrayRows",wv="objectRows",x0="keyedColumns",Ub="typedArray",$at="unknown",K1="column",a4="row",df={Must:1,Might:2,Not:3},Fat=rl();function dur(e){Fat(e).datasetMap=Mr()}function fur(e,t,n){var r={},i=Bat(t);if(!i||!e)return r;var a=[],o=[],s=t.ecModel,l=Fat(s).datasetMap,c=i.uid+"_"+n.seriesLayoutBy,u,d;e=e.slice(),lt(e,function(m,g){var v=Fr(m)?m:e[g]={name:m};v.type==="ordinal"&&u==null&&(u=g,d=h(v)),r[v.name]=[]});var f=l.get(c)||l.set(c,{categoryWayDim:d,valueWayDim:0});lt(e,function(m,g){var v=m.name,y=h(m);if(u==null){var _=f.valueWayDim;p(r[v],_,y),p(o,_,y),f.valueWayDim+=y}else if(u===g)p(r[v],0,y),p(a,0,y);else{var _=f.categoryWayDim;p(r[v],_,y),p(o,_,y),f.categoryWayDim+=y}});function p(m,g,v){for(var y=0;y<v;y++)m.push(g+y)}function h(m){var g=m.dimsDef;return g?g.length:1}return a.length&&(r.itemName=a),o.length&&(r.seriesName=o),r}function Bat(e){var t=e.get("data",!0);if(!t)return w8(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},bd).models[0]}function pur(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:w8(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},bd).models}function jat(e,t){return hur(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function hur(e,t,n,r,i,a){var o,s=5;if(Ld(e))return df.Not;var l,c;if(r){var u=r[a];Fr(u)?(l=u.name,c=u.type):yr(u)&&(l=u)}if(c!=null)return c==="ordinal"?df.Must:df.Not;if(t===Pd){var d=e;if(n===a4){for(var f=d[a],p=0;p<(f||[]).length&&p<s;p++)if((o=S(f[i+p]))!=null)return o}else for(var p=0;p<d.length&&p<s;p++){var h=d[i+p];if(h&&(o=S(h[a]))!=null)return o}}else if(t===wv){var m=e;if(!l)return df.Not;for(var p=0;p<m.length&&p<s;p++){var g=m[p];if(g&&(o=S(g[l]))!=null)return o}}else if(t===x0){var v=e;if(!l)return df.Not;var f=v[l];if(!f||Ld(f))return df.Not;for(var p=0;p<f.length&&p<s;p++)if((o=S(f[p]))!=null)return o}else if(t===Yp)for(var y=e,p=0;p<y.length&&p<s;p++){var g=y[p],_=C8(g);if(!ar(_))return df.Not;if((o=S(_[a]))!=null)return o}function S(C){var w=yr(C);if(C!=null&&Number.isFinite(Number(C))&&C!=="")return w?df.Might:df.Not;if(w&&C!=="-")return df.Must}return df.Not}var hH=function(){function e(t){this.data=t.data||(t.sourceFormat===x0?{}:[]),this.sourceFormat=t.sourceFormat||$at,this.seriesLayoutBy=t.seriesLayoutBy||K1,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var n=this.dimensionsDefine=t.dimensionsDefine;if(n)for(var r=0;r<n.length;r++){var i=n[r];i.type==null&&jat(this,r)===df.Must&&(i.type="ordinal")}}return e}();function gge(e){return e instanceof hH}function Nse(e,t,n){n=n||Uat(e);var r=t.seriesLayoutBy,i=gur(e,n,r,t.sourceHeader,t.dimensions),a=new hH({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:Xi(t)});return a}function zat(e){return new hH({data:e,sourceFormat:Ld(e)?Ub:Yp})}function mur(e){return new hH({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:Xi(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function Uat(e){var t=$at;if(Ld(e))t=Ub;else if(ar(e)){e.length===0&&(t=Pd);for(var n=0,r=e.length;n<r;n++){var i=e[n];if(i!=null){if(ar(i)||Ld(i)){t=Pd;break}else if(Fr(i)){t=wv;break}}}}else if(Fr(e)){for(var a in e)if(D3(e,a)&&Od(e[a])){t=x0;break}}return t}function gur(e,t,n,r,i){var a,o;if(!e)return{dimensionsDefine:ZOe(i),startIndex:o,dimensionsDetectedCount:a};if(t===Pd){var s=e;r==="auto"||r==null?QOe(function(c){c!=null&&c!=="-"&&(yr(c)?o==null&&(o=1):o=0)},n,s,10):o=is(r)?r:r?1:0,!i&&o===1&&(i=[],QOe(function(c,u){i[u]=c!=null?c+"":""},n,s,1/0)),a=i?i.length:n===a4?s.length:s[0]?s[0].length:null}else if(t===wv)i||(i=vur(e));else if(t===x0)i||(i=[],lt(e,function(c,u){i.push(u)}));else if(t===Yp){var l=C8(e[0]);a=ar(l)&&l.length||1}return{startIndex:o,dimensionsDefine:ZOe(i),dimensionsDetectedCount:a}}function vur(e){for(var t=0,n;t<e.length&&!(n=e[t++]););if(n)return rs(n)}function ZOe(e){if(e){var t=Mr();return Nr(e,function(n,r){n=Fr(n)?n:{name:n};var i={name:n.name,displayName:n.displayName,type:n.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var a=t.get(i.name);return a?i.name+="-"+a.count++:t.set(i.name,{count:1}),i})}}function QOe(e,t,n,r){if(t===a4)for(var i=0;i<n.length&&i<r;i++)e(n[i]?n[i][0]:null,i);else for(var a=n[0]||[],i=0;i<a.length&&i<r;i++)e(a[i],i)}function Hat(e){var t=e.sourceFormat;return t===wv||t===x0}var Z2,Q2,J2,JOe,e8e,Vat=function(){function e(t,n){var r=gge(t)?t:zat(t);this._source=r;var i=this._data=r.data;r.sourceFormat===Ub&&(this._offset=0,this._dimSize=n,this._data=i),e8e(this,i,r)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,n){},e.prototype.appendData=function(t){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var t;e8e=function(o,s,l){var c=l.sourceFormat,u=l.seriesLayoutBy,d=l.startIndex,f=l.dimensionsDefine,p=JOe[vge(c,u)];if(Vn(o,p),c===Ub)o.getItem=n,o.count=i,o.fillStorage=r;else{var h=Gat(c,u);o.getItem=si(h,null,s,d,f);var m=qat(c,u);o.count=si(m,null,s,d,f)}};var n=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,c=this._dimSize,u=c*o,d=0;d<c;d++)s[d]=l[u+d];return s},r=function(o,s,l,c){for(var u=this._data,d=this._dimSize,f=0;f<d;f++){for(var p=c[f],h=p[0]==null?1/0:p[0],m=p[1]==null?-1/0:p[1],g=s-o,v=l[f],y=0;y<g;y++){var _=u[y*d+f];v[o+y]=_,_<h&&(h=_),_>m&&(m=_)}p[0]=h,p[1]=m}},i=function(){return this._data?this._data.length/this._dimSize:0};JOe=(t={},t[Pd+"_"+K1]={pure:!0,appendData:a},t[Pd+"_"+a4]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[wv]={pure:!0,appendData:a},t[x0]={pure:!0,appendData:function(o){var s=this._data;lt(o,function(l,c){for(var u=s[c]||(s[c]=[]),d=0;d<(l||[]).length;d++)u.push(l[d])})}},t[Yp]={appendData:a},t[Ub]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),e}(),t8e=function(e,t,n,r){return e[r]},yur=(Z2={},Z2[Pd+"_"+K1]=function(e,t,n,r){return e[r+t]},Z2[Pd+"_"+a4]=function(e,t,n,r,i){r+=t;for(var a=i||[],o=e,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[r]:null}return a},Z2[wv]=t8e,Z2[x0]=function(e,t,n,r,i){for(var a=i||[],o=0;o<n.length;o++){var s=n[o].name,l=e[s];a[o]=l?l[r]:null}return a},Z2[Yp]=t8e,Z2);function Gat(e,t){var n=yur[vge(e,t)];return n}var n8e=function(e,t,n){return e.length},bur=(Q2={},Q2[Pd+"_"+K1]=function(e,t,n){return Math.max(0,e.length-t)},Q2[Pd+"_"+a4]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},Q2[wv]=n8e,Q2[x0]=function(e,t,n){var r=n[0].name,i=e[r];return i?i.length:0},Q2[Yp]=n8e,Q2);function qat(e,t){var n=bur[vge(e,t)];return n}var See=function(e,t,n){return e[t]},_ur=(J2={},J2[Pd]=See,J2[wv]=function(e,t,n){return e[n]},J2[x0]=See,J2[Yp]=function(e,t,n){var r=C8(e);return r instanceof Array?r[t]:r},J2[Ub]=See,J2);function Wat(e){var t=_ur[e];return t}function vge(e,t){return e===Pd?e+"_"+t:e}function F3(e,t,n){if(e){var r=e.getRawDataItem(t);if(r!=null){var i=e.getStore(),a=i.getSource().sourceFormat;if(n!=null){var o=e.getDimensionIndex(n),s=i.getDimensionProperty(o);return Wat(a)(r,o,s)}else{var l=r;return a===Yp&&(l=C8(r)),l}}}}var Sur=function(){function e(t,n){this._encode=t,this._schema=n}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function Eur(e,t){var n={},r=n.encode={},i=Mr(),a=[],o=[],s={};lt(e.dimensions,function(f){var p=e.getDimensionInfo(f),h=p.coordDim;if(h){var m=p.coordDimIndex;Eee(r,h)[m]=f,p.isExtraCoord||(i.set(h,1),wur(p.type)&&(a[0]=f),Eee(s,h)[m]=e.getDimensionIndex(p.name)),p.defaultTooltip&&o.push(f)}Dat.each(function(g,v){var y=Eee(r,v),_=p.otherDims[v];_!=null&&_!==!1&&(y[_]=p.name)})});var l=[],c={};i.each(function(f,p){var h=r[p];c[p]=h[0],l=l.concat(h)}),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=Nr(l,function(f){return e.getDimensionInfo(f).storeDimIndex}),n.encodeFirstDimNotExtra=c;var u=r.label;u&&u.length&&(a=u.slice());var d=r.tooltip;return d&&d.length?o=d.slice():o.length||(o=a.slice()),r.defaultedLabel=a,r.defaultedTooltip=o,n.userOutput=new Sur(s,t),n}function Eee(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function Cur(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function wur(e){return!(e==="ordinal"||e==="time")}var KM=function(){function e(t){this.otherDims={},t!=null&&Vn(this,t)}return e}();function XM(e,t){var n=t&&t.type;return n==="ordinal"?e:(n==="time"&&!is(e)&&e!=null&&e!=="-"&&(e=+u0(e)),e==null||e===""?NaN:Number(e))}Mr({number:function(e){return parseFloat(e)},time:function(e){return+u0(e)},trim:function(e){return yr(e)?Fg(e):e}});var xur=function(){function e(t,n){var r=t==="desc";this._resultLT=r?1:-1,n==null&&(n=r?"min":"max"),this._incomparable=n==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,n){var r=is(t)?t:JF(t),i=is(n)?n:JF(n),a=isNaN(r),o=isNaN(i);if(a&&(r=this._incomparable),o&&(i=this._incomparable),a&&o){var s=yr(t),l=yr(n);s&&(r=l?t:0),l&&(i=s?n:0)}return r<i?this._resultLT:r>i?-this._resultLT:0},e}(),mH="undefined",Tur=typeof Uint32Array===mH?Array:Uint32Array,Iur=typeof Uint16Array===mH?Array:Uint16Array,Yat=typeof Int32Array===mH?Array:Int32Array,r8e=typeof Float64Array===mH?Array:Float64Array,Kat={float:r8e,int:Yat,ordinal:Array,number:Array,time:r8e},Cee;function MI(e){return e>65535?Tur:Iur}function qw(){return[1/0,-1/0]}function Aur(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function i8e(e,t,n,r,i){var a=Kat[n||"float"];if(i){var o=e[t],s=o&&o.length;if(s!==r){for(var l=new a(r),c=0;c<s;c++)l[c]=o[c];e[t]=l}}else e[t]=new a(r)}var Ose=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Mr()}return e.prototype.initData=function(t,n,r){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),a=this.defaultDimValueGetter=Cee[i.sourceFormat];this._dimValueGetter=r||a,this._rawExtent=[],Hat(i),this._dimensions=Nr(n,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,t.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(t,n){var r=this._calcDimNameToIdx,i=this._dimensions,a=r.get(t);if(a!=null){if(i[a].type===n)return a}else a=i.length;return i[a]={type:n},r.set(t,a),this._chunks[a]=new Kat[n||"float"](this._rawCount),this._rawExtent[a]=qw(),a},e.prototype.collectOrdinalMeta=function(t,n){var r=this._chunks[t],i=this._dimensions[t],a=this._rawExtent,o=i.ordinalOffset||0,s=r.length;o===0&&(a[t]=qw());for(var l=a[t],c=o;c<s;c++){var u=r[c]=n.parseAndCollect(r[c]);isNaN(u)||(l[0]=Math.min(u,l[0]),l[1]=Math.max(u,l[1]))}i.ordinalMeta=n,i.ordinalOffset=s,i.type="ordinal"},e.prototype.getOrdinalMeta=function(t){var n=this._dimensions[t],r=n.ordinalMeta;return r},e.prototype.getDimensionProperty=function(t){var n=this._dimensions[t];return n&&n.property},e.prototype.appendData=function(t){var n=this._provider,r=this.count();n.appendData(t);var i=n.count();return n.persistent||(i+=r),r<i&&this._initDataFromProvider(r,i,!0),[r,i]},e.prototype.appendValues=function(t,n){for(var r=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,n||0),c=0;c<a;c++){var u=i[c];i8e(r,c,u.type,l,!0)}for(var d=[],f=s;f<l;f++)for(var p=f-s,h=0;h<a;h++){var u=i[h],m=Cee.arrayRows.call(this,t[p]||d,u.property,p,h);r[h][f]=m;var g=o[h];m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,n,r){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,c=Nr(o,function(y){return y.property}),u=0;u<s;u++){var d=o[u];l[u]||(l[u]=qw()),i8e(a,u,d.type,n,r)}if(i.fillStorage)i.fillStorage(t,n,a,l);else for(var f=[],p=t;p<n;p++){f=i.getItem(p,f);for(var h=0;h<s;h++){var m=a[h],g=this._dimValueGetter(f,c[h],p,h);m[p]=g;var v=l[h];g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=n,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,n){if(!(n>=0&&n<this._count))return NaN;var r=this._chunks[t];return r?r[this.getRawIndex(n)]:NaN},e.prototype.getValues=function(t,n){var r=[],i=[];if(n==null){n=t,t=[];for(var a=0;a<this._dimensions.length;a++)i.push(a)}else i=t;for(var a=0,o=i.length;a<o;a++)r.push(this.get(i[a],n));return r},e.prototype.getByRawIndex=function(t,n){if(!(n>=0&&n<this._rawCount))return NaN;var r=this._chunks[t];return r?r[n]:NaN},e.prototype.getSum=function(t){var n=this._chunks[t],r=0;if(n)for(var i=0,a=this.count();i<a;i++){var o=this.get(t,i);isNaN(o)||(r+=o)}return r},e.prototype.getMedian=function(t){var n=[];this.each([t],function(a){isNaN(a)||n.push(a)});var r=n.sort(function(a,o){return a-o}),i=this.count();return i===0?0:i%2===1?r[(i-1)/2]:(r[i/2]+r[i/2-1])/2},e.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var n=this._indices,r=n[t];if(r!=null&&r<this._count&&r===t)return t;for(var i=0,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(n[o]<t)i=o+1;else if(n[o]>t)a=o-1;else return o}return-1},e.prototype.indicesOfNearest=function(t,n,r){var i=this._chunks,a=i[t],o=[];if(!a)return o;r==null&&(r=1/0);for(var s=1/0,l=-1,c=0,u=0,d=this.count();u<d;u++){var f=this.getRawIndex(u),p=n-a[f],h=Math.abs(p);h<=r&&((h<s||h===s&&p>=0&&l<0)&&(s=h,l=p,c=0),p===l&&(o[c++]=u))}return o.length=c,o},e.prototype.getIndices=function(){var t,n=this._indices;if(n){var r=n.constructor,i=this._count;if(r===Array){t=new r(i);for(var a=0;a<i;a++)t[a]=n[a]}else t=new r(n.buffer,0,i)}else{var r=MI(this._rawCount);t=new r(this.count());for(var a=0;a<t.length;a++)t[a]=a}return t},e.prototype.filter=function(t,n){if(!this._count)return this;for(var r=this.clone(),i=r.count(),a=MI(r._rawCount),o=new a(i),s=[],l=t.length,c=0,u=t[0],d=r._chunks,f=0;f<i;f++){var p=void 0,h=r.getRawIndex(f);if(l===0)p=n(f);else if(l===1){var m=d[u][h];p=n(m,f)}else{for(var g=0;g<l;g++)s[g]=d[t[g]][h];s[g]=f,p=n.apply(null,s)}p&&(o[c++]=h)}return c<i&&(r._indices=o),r._count=c,r._extent=[],r._updateGetRawIdx(),r},e.prototype.selectRange=function(t){var n=this.clone(),r=n._count;if(!r)return this;var i=rs(t),a=i.length;if(!a)return this;var o=n.count(),s=MI(n._rawCount),l=new s(o),c=0,u=i[0],d=t[u][0],f=t[u][1],p=n._chunks,h=!1;if(!n._indices){var m=0;if(a===1){for(var g=p[i[0]],v=0;v<r;v++){var y=g[v];(y>=d&&y<=f||isNaN(y))&&(l[c++]=m),m++}h=!0}else if(a===2){for(var g=p[i[0]],_=p[i[1]],S=t[i[1]][0],C=t[i[1]][1],v=0;v<r;v++){var y=g[v],w=_[v];(y>=d&&y<=f||isNaN(y))&&(w>=S&&w<=C||isNaN(w))&&(l[c++]=m),m++}h=!0}}if(!h)if(a===1)for(var v=0;v<o;v++){var x=n.getRawIndex(v),y=p[i[0]][x];(y>=d&&y<=f||isNaN(y))&&(l[c++]=x)}else for(var v=0;v<o;v++){for(var T=!0,x=n.getRawIndex(v),A=0;A<a;A++){var I=i[A],y=p[I][x];(y<t[I][0]||y>t[I][1])&&(T=!1)}T&&(l[c++]=n.getRawIndex(v))}return c<o&&(n._indices=l),n._count=c,n._extent=[],n._updateGetRawIdx(),n},e.prototype.map=function(t,n){var r=this.clone(t);return this._updateDims(r,t,n),r},e.prototype.modify=function(t,n){this._updateDims(this,t,n)},e.prototype._updateDims=function(t,n,r){for(var i=t._chunks,a=[],o=n.length,s=t.count(),l=[],c=t._rawExtent,u=0;u<n.length;u++)c[n[u]]=qw();for(var d=0;d<s;d++){for(var f=t.getRawIndex(d),p=0;p<o;p++)l[p]=i[n[p]][f];l[o]=d;var h=r&&r.apply(null,l);if(h!=null){typeof h!="object"&&(a[0]=h,h=a);for(var u=0;u<h.length;u++){var m=n[u],g=h[u],v=c[m],y=i[m];y&&(y[f]=g),g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}}}},e.prototype.lttbDownSample=function(t,n){var r=this.clone([t],!0),i=r._chunks,a=i[t],o=this.count(),s=0,l=Math.floor(1/n),c=this.getRawIndex(0),u,d,f,p=new(MI(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));p[s++]=c;for(var h=1;h<o-1;h+=l){for(var m=Math.min(h+l,o-1),g=Math.min(h+l*2,o),v=(g+m)/2,y=0,_=m;_<g;_++){var S=this.getRawIndex(_),C=a[S];isNaN(C)||(y+=C)}y/=g-m;var w=h,x=Math.min(h+l,o),T=h-1,A=a[c];u=-1,f=w;for(var I=-1,R=0,_=w;_<x;_++){var S=this.getRawIndex(_),C=a[S];if(isNaN(C)){R++,I<0&&(I=S);continue}d=Math.abs((T-v)*(C-A)-(T-_)*(y-A)),d>u&&(u=d,f=S)}R>0&&R<x-w&&(p[s++]=Math.min(I,f),f=Math.max(I,f)),p[s++]=f,c=f}return p[s++]=this.getRawIndex(o-1),r._count=s,r._indices=p,r.getRawIndex=this._getRawIdx,r},e.prototype.downSample=function(t,n,r,i){for(var a=this.clone([t],!0),o=a._chunks,s=[],l=Math.floor(1/n),c=o[t],u=this.count(),d=a._rawExtent[t]=qw(),f=new(MI(this._rawCount))(Math.ceil(u/l)),p=0,h=0;h<u;h+=l){l>u-h&&(l=u-h,s.length=l);for(var m=0;m<l;m++){var g=this.getRawIndex(h+m);s[m]=c[g]}var v=r(s),y=this.getRawIndex(Math.min(h+i(s,v)||0,u-1));c[y]=v,v<d[0]&&(d[0]=v),v>d[1]&&(d[1]=v),f[p++]=y}return a._count=p,a._indices=f,a._updateGetRawIdx(),a},e.prototype.each=function(t,n){if(this._count)for(var r=t.length,i=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(r){case 0:n(a);break;case 1:n(i[t[0]][s],a);break;case 2:n(i[t[0]][s],i[t[1]][s],a);break;default:for(var l=0,c=[];l<r;l++)c[l]=i[t[l]][s];c[l]=a,n.apply(null,c)}}},e.prototype.getDataExtent=function(t){var n=this._chunks[t],r=qw();if(!n)return r;var i=this.count(),a=!this._indices,o;if(a)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=r;for(var s=o[0],l=o[1],c=0;c<i;c++){var u=this.getRawIndex(c),d=n[u];d<s&&(s=d),d>l&&(l=d)}return o=[s,l],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var n=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(n);for(var r=[],i=this._chunks,a=0;a<i.length;a++)r.push(i[a][n]);return r},e.prototype.clone=function(t,n){var r=new e,i=this._chunks,a=t&&t4(t,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<i.length;o++)r._chunks[o]=a[o]?Aur(i[o]):i[o];else r._chunks=i;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},e.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=Xi(this._extent),t._rawExtent=Xi(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,n=void 0;if(t===Array){var r=this._indices.length;n=new t(r);for(var i=0;i<r;i++)n[i]=this._indices[i]}else n=new t(this._indices);return n}return null},e.prototype._getRawIdxIdentity=function(t){return t},e.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(n,r,i,a){return XM(n[a],this._dimensions[a])}Cee={arrayRows:t,objectRows:function(n,r,i,a){return XM(n[r],this._dimensions[a])},keyedColumns:t,original:function(n,r,i,a){var o=n&&(n.value==null?n:n.value);return XM(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(n,r,i,a){return n[a]}}}(),e}(),Rur=rl(),Nur={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Xat=function(){function e(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=Jat(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return ra(this._dimNameMap.get(t),-1)},e.prototype.getSourceDimension=function(t){var n=this.source.dimensionsDefine;if(n)return n[t]},e.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,n=Hat(this.source),r=!eot(t),i="",a=[],o=0,s=0;o<t;o++){var l=void 0,c=void 0,u=void 0,d=this.dimensions[s];if(d&&d.storeDimIndex===o)l=n?d.name:null,c=d.type,u=d.ordinalMeta,s++;else{var f=this.getSourceDimension(o);f&&(l=n?f.name:null,c=f.type)}a.push({property:l,type:c,ordinalMeta:u}),n&&l!=null&&(!d||!d.isCalculationCoord)&&(i+=r?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=Nur[c]||"f",u&&(i+=u.uid),i+="$"}var p=this.source,h=[p.seriesLayoutBy,p.startIndex,i].join("$$");return{dimensions:a,hash:h}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],n=0,r=0;n<this._fullDimCount;n++){var i=void 0,a=this.dimensions[r];if(a&&a.storeDimIndex===n)a.isCalculationCoord||(i=a.name),r++;else{var o=this.getSourceDimension(n);o&&(i=o.name)}t.push(i)}return t},e.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function Zat(e){return e instanceof Xat}function Qat(e){for(var t=Mr(),n=0;n<(e||[]).length;n++){var r=e[n],i=Fr(r)?r.name:r;i!=null&&t.get(i)==null&&t.set(i,n)}return t}function Jat(e){var t=Rur(e);return t.dimNameMap||(t.dimNameMap=Qat(e.dimensionsDefine))}function eot(e){return e>30}var DI=Fr,_y=Nr,Our=typeof Int32Array>"u"?Array:Int32Array,Lur="e\0\0",a8e=-1,Pur=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],kur=["_approximateExtent"],o8e,Gk,$I,FI,wee,qk,xee,Mur=function(){function e(t,n){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var r,i=!1;Zat(t)?(r=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,r=t),r=r||["x","y"];for(var a={},o=[],s={},l=!1,c={},u=0;u<r.length;u++){var d=r[u],f=yr(d)?new KM({name:d}):d instanceof KM?d:new KM(d),p=f.name;f.type=f.type||"float",f.coordDim||(f.coordDim=p,f.coordDimIndex=0);var h=f.otherDims=f.otherDims||{};o.push(p),a[p]=f,c[p]!=null&&(l=!0),f.createInvertedIndices&&(s[p]=[]),h.itemName===0&&(this._nameDimIdx=u),h.itemId===0&&(this._idDimIdx=u),i&&(f.storeDimIndex=u)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=n,this._invertedIndicesMap=s,this._dimOmitted){var m=this._dimIdxToName=Mr();lt(o,function(g){m.set(a[g].storeDimIndex,g)})}}return e.prototype.getDimension=function(t){var n=this._recognizeDimIndex(t);if(n==null)return t;if(n=t,!this._dimOmitted)return this.dimensions[n];var r=this._dimIdxToName.get(n);if(r!=null)return r;var i=this._schema.getSourceDimension(n);if(i)return i.name},e.prototype.getDimensionIndex=function(t){var n=this._recognizeDimIndex(t);if(n!=null)return n;if(t==null)return-1;var r=this._getDimInfo(t);return r?r.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},e.prototype._recognizeDimIndex=function(t){if(is(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},e.prototype._getStoreDimIndex=function(t){var n=this.getDimensionIndex(t);return n},e.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},e.prototype._initGetDimensionInfo=function(t){var n=this._dimInfos;this._getDimInfo=t?function(r){return n.hasOwnProperty(r)?n[r]:void 0}:function(r){return n[r]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(t,n){var r=this._dimSummary;if(n==null)return r.encodeFirstDimNotExtra[t];var i=r.encode[t];return i?i[n]:null},e.prototype.mapDimensionsAll=function(t){var n=this._dimSummary,r=n.encode[t];return(r||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(t,n,r){var i=this,a;if(t instanceof Ose&&(a=t),!a){var o=this.dimensions,s=gge(t)||Od(t)?new Vat(t,o.length):t;a=new Ose;var l=_y(o,function(c){return{type:i._dimInfos[c].type,property:c}});a.initData(s,l,r)}this._store=a,this._nameList=(n||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=Eur(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(t){var n=this._store.appendData(t);this._doInit(n[0],n[1])},e.prototype.appendValues=function(t,n){var r=this._store.appendValues(t,n.length),i=r.start,a=r.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),n)for(var s=i;s<a;s++){var l=s-i;this._nameList[s]=n[l],o&&xee(this,s)}},e.prototype._updateOrdinalMeta=function(){for(var t=this._store,n=this.dimensions,r=0;r<n.length;r++){var i=this._dimInfos[n[r]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==Ub&&!t.fillStorage},e.prototype._doInit=function(t,n){if(!(t>=n)){var r=this._store,i=r.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===Yp;if(l&&!i.pure)for(var c=[],u=t;u<n;u++){var d=i.getItem(u,c);if(!this.hasItemOption&&Nlr(d)&&(this.hasItemOption=!0),d){var f=d.name;a[u]==null&&f!=null&&(a[u]=Xg(f,null));var p=d.id;o[u]==null&&p!=null&&(o[u]=Xg(p,null))}}if(this._shouldMakeIdFromName())for(var u=t;u<n;u++)xee(this,u);o8e(this)}},e.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.setApproximateExtent=function(t,n){n=this.getDimension(n),this._approximateExtent[n]=t.slice()},e.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},e.prototype.setCalculationInfo=function(t,n){DI(t)?Vn(this._calculationInfo,t):this._calculationInfo[t]=n},e.prototype.getName=function(t){var n=this.getRawIndex(t),r=this._nameList[n];return r==null&&this._nameDimIdx!=null&&(r=$I(this,this._nameDimIdx,n)),r==null&&(r=""),r},e.prototype._getCategory=function(t,n){var r=this._store.get(t,n),i=this._store.getOrdinalMeta(t);return i?i.categories[r]:r},e.prototype.getId=function(t){return Gk(this,this.getRawIndex(t))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(t,n){var r=this._store,i=this._dimInfos[t];if(i)return r.get(i.storeDimIndex,n)},e.prototype.getByRawIndex=function(t,n){var r=this._store,i=this._dimInfos[t];if(i)return r.getByRawIndex(i.storeDimIndex,n)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},e.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},e.prototype.getValues=function(t,n){var r=this,i=this._store;return ar(t)?i.getValues(_y(t,function(a){return r._getStoreDimIndex(a)}),n):i.getValues(t)},e.prototype.hasValue=function(t){for(var n=this._dimSummary.dataDimIndicesOnCoord,r=0,i=n.length;r<i;r++)if(isNaN(this._store.get(n[r],t)))return!1;return!0},e.prototype.indexOfName=function(t){for(var n=0,r=this._store.count();n<r;n++)if(this.getName(n)===t)return n;return-1},e.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},e.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},e.prototype.rawIndexOf=function(t,n){var r=t&&this._invertedIndicesMap[t],i=r[n];return i==null||isNaN(i)?a8e:i},e.prototype.indicesOfNearest=function(t,n,r){return this._store.indicesOfNearest(this._getStoreDimIndex(t),n,r)},e.prototype.each=function(t,n,r){hi(t)&&(r=n,n=t,t=[]);var i=r||this,a=_y(FI(t),this._getStoreDimIndex,this);this._store.each(a,i?si(n,i):n)},e.prototype.filterSelf=function(t,n,r){hi(t)&&(r=n,n=t,t=[]);var i=r||this,a=_y(FI(t),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?si(n,i):n),this},e.prototype.selectRange=function(t){var n=this,r={},i=rs(t);return lt(i,function(a){var o=n._getStoreDimIndex(a);r[o]=t[a]}),this._store=this._store.selectRange(r),this},e.prototype.mapArray=function(t,n,r){hi(t)&&(r=n,n=t,t=[]),r=r||this;var i=[];return this.each(t,function(){i.push(n&&n.apply(this,arguments))},r),i},e.prototype.map=function(t,n,r,i){var a=r||i||this,o=_y(FI(t),this._getStoreDimIndex,this),s=qk(this);return s._store=this._store.map(o,a?si(n,a):n),s},e.prototype.modify=function(t,n,r,i){var a=r||i||this,o=_y(FI(t),this._getStoreDimIndex,this);this._store.modify(o,a?si(n,a):n)},e.prototype.downSample=function(t,n,r,i){var a=qk(this);return a._store=this._store.downSample(this._getStoreDimIndex(t),n,r,i),a},e.prototype.lttbDownSample=function(t,n){var r=qk(this);return r._store=this._store.lttbDownSample(this._getStoreDimIndex(t),n),r},e.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},e.prototype.getItemModel=function(t){var n=this.hostModel,r=this.getRawDataItem(t);return new Os(r,n,n&&n.ecModel)},e.prototype.diff=function(t){var n=this;return new Rse(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(r){return Gk(t,r)},function(r){return Gk(n,r)})},e.prototype.getVisual=function(t){var n=this._visual;return n&&n[t]},e.prototype.setVisual=function(t,n){this._visual=this._visual||{},DI(t)?Vn(this._visual,t):this._visual[t]=n},e.prototype.getItemVisual=function(t,n){var r=this._itemVisuals[t],i=r&&r[n];return i??this.getVisual(n)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(t,n){var r=this._itemVisuals,i=r[t];i||(i=r[t]={});var a=i[n];return a==null&&(a=this.getVisual(n),ar(a)?a=a.slice():DI(a)&&(a=Vn({},a)),i[n]=a),a},e.prototype.setItemVisual=function(t,n,r){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,DI(n)?Vn(i,n):i[n]=r},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,n){DI(t)?Vn(this._layout,t):this._layout[t]=n},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,n,r){this._itemLayouts[t]=r?Vn(this._itemLayouts[t]||{},n):n},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,n){var r=this.hostModel&&this.hostModel.seriesIndex;Glr(r,this.dataType,t,n),this._graphicEls[t]=n},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,n){lt(this._graphicEls,function(r,i){r&&t&&t.call(n,r,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:_y(this.dimensions,this._getDimInfo,this),this.hostModel)),wee(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,n){var r=this[t];hi(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=r.apply(this,arguments);return n.apply(this,[i].concat(Ume(arguments)))})},e.internalField=function(){o8e=function(t){var n=t._invertedIndicesMap;lt(n,function(r,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){r=n[i]=new Our(o.categories.length);for(var l=0;l<r.length;l++)r[l]=a8e;for(var l=0;l<s.count();l++)r[s.get(a.storeDimIndex,l)]=l}})},$I=function(t,n,r){return Xg(t._getCategory(n,r),null)},Gk=function(t,n){var r=t._idList[n];return r==null&&t._idDimIdx!=null&&(r=$I(t,t._idDimIdx,n)),r==null&&(r=Lur+n),r},FI=function(t){return ar(t)||(t=t!=null?[t]:[]),t},qk=function(t){var n=new e(t._schema?t._schema:_y(t.dimensions,t._getDimInfo,t),t.hostModel);return wee(n,t),n},wee=function(t,n){lt(Pur.concat(n.__wrappedMethods||[]),function(r){n.hasOwnProperty(r)&&(t[r]=n[r])}),t.__wrappedMethods=n.__wrappedMethods,lt(kur,function(r){t[r]=Xi(n[r])}),t._calculationInfo=Vn({},n._calculationInfo)},xee=function(t,n){var r=t._nameList,i=t._idList,a=t._nameDimIdx,o=t._idDimIdx,s=r[n],l=i[n];if(s==null&&a!=null&&(r[n]=s=$I(t,a,n)),l==null&&o!=null&&(i[n]=l=$I(t,o,n)),l==null&&s!=null){var c=t._nameRepeatCount,u=c[s]=(c[s]||0)+1;l=s,u>1&&(l+="__ec__"+u),i[n]=l}}}(),e}();function Dur(e,t){gge(e)||(e=zat(e)),t=t||{};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=Mr(),a=[],o=Fur(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&eot(o),l=r===e.dimensionsDefine,c=l?Jat(e):Qat(r),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(e,o));for(var d=Mr(u),f=new Yat(o),p=0;p<f.length;p++)f[p]=-1;function h(A){var I=f[A];if(I<0){var R=r[A],N=Fr(R)?R:{name:R},P=new KM,L=N.name;L!=null&&c.get(L)!=null&&(P.name=P.displayName=L),N.type!=null&&(P.type=N.type),N.displayName!=null&&(P.displayName=N.displayName);var $=a.length;return f[A]=$,P.storeDimIndex=A,a.push(P),P}return a[I]}if(!s)for(var p=0;p<o;p++)h(p);d.each(function(A,I){var R=yl(A).slice();if(R.length===1&&!yr(R[0])&&R[0]<0){d.set(I,!1);return}var N=d.set(I,[]);lt(R,function(P,L){var $=yr(P)?c.get(P):P;$!=null&&$<o&&(N[L]=$,g(h($),I,L))})});var m=0;lt(n,function(A){var I,R,N,P;if(yr(A))I=A,P={};else{P=A,I=P.name;var L=P.ordinalMeta;P.ordinalMeta=null,P=Vn({},P),P.ordinalMeta=L,R=P.dimsDef,N=P.otherDims,P.name=P.coordDim=P.coordDimIndex=P.dimsDef=P.otherDims=null}var $=d.get(I);if($!==!1){if($=yl($),!$.length)for(var D=0;D<(R&&R.length||1);D++){for(;m<o&&h(m).coordDim!=null;)m++;m<o&&$.push(m++)}lt($,function(z,U){var H=h(z);if(l&&P.type!=null&&(H.type=P.type),g(Hi(H,P),I,U),H.name==null&&R){var M=R[U];!Fr(M)&&(M={name:M}),H.name=H.displayName=M.name,H.defaultTooltip=M.defaultTooltip}N&&Hi(H.otherDims,N)})}});function g(A,I,R){Dat.get(I)!=null?A.otherDims[I]=R:(A.coordDim=I,A.coordDimIndex=R,i.set(I,!0))}var v=t.generateCoord,y=t.generateCoordCount,_=y!=null;y=v?y||1:0;var S=v||"value";function C(A){A.name==null&&(A.name=A.coordDim)}if(s)lt(a,function(A){C(A)}),a.sort(function(A,I){return A.storeDimIndex-I.storeDimIndex});else for(var w=0;w<o;w++){var x=h(w),T=x.coordDim;T==null&&(x.coordDim=Bur(S,i,_),x.coordDimIndex=0,(!v||y<=0)&&(x.isExtraCoord=!0),y--),C(x),x.type==null&&(jat(e,w)===df.Must||x.isExtraCoord&&(x.otherDims.itemName!=null||x.otherDims.seriesName!=null))&&(x.type="ordinal")}return $ur(a),new Xat({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function $ur(e){for(var t=Mr(),n=0;n<e.length;n++){var r=e[n],i=r.name,a=t.get(i)||0;a>0&&(r.name=i+(a-1)),a++,t.set(i,a)}}function Fur(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return lt(t,function(a){var o;Fr(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function Bur(e,t,n){if(n||t.hasKey(e)){for(var r=0;t.hasKey(e+r);)r++;e+=r}return t.set(e,!0),e}var Tee={},yge=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(t,n){var r=[];lt(Tee,function(i,a){var o=i.create(t,n);r=r.concat(o||[])}),this._coordinateSystems=r},e.prototype.update=function(t,n){lt(this._coordinateSystems,function(r){r.update&&r.update(t,n)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(t,n){Tee[t]=n},e.get=function(t){return Tee[t]},e}(),jur=function(){function e(t){this.coordSysDims=[],this.axisMap=Mr(),this.categoryAxisMap=Mr(),this.coordSysName=t}return e}();function zur(e){var t=e.get("coordinateSystem"),n=new jur(t),r=Uur[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var Uur={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents("xAxis",bd).models[0],a=e.getReferringComponents("yAxis",bd).models[0];t.coordSysDims=["x","y"],n.set("x",i),n.set("y",a),Ww(i)&&(r.set("x",i),t.firstCategoryDimIndex=0),Ww(a)&&(r.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,r){var i=e.getReferringComponents("singleAxis",bd).models[0];t.coordSysDims=["single"],n.set("single",i),Ww(i)&&(r.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents("polar",bd).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",a),n.set("angle",o),Ww(a)&&(r.set("radius",a),t.firstCategoryDimIndex=0),Ww(o)&&(r.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,r){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,r){var i=e.ecModel,a=i.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();lt(a.parallelAxisIndex,function(s,l){var c=i.getComponent("parallelAxis",s),u=o[l];n.set(u,c),Ww(c)&&(r.set(u,c),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function Ww(e){return e.get("type")==="category"}function Hur(e,t,n){n=n||{};var r=n.byIndex,i=n.stackedCoordDimension,a,o,s;Vur(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),c,u,d,f;if(lt(a,function(y,_){yr(y)&&(a[_]=y={name:y}),l&&!y.isExtraCoord&&(!r&&!c&&y.ordinalMeta&&(c=y),!u&&y.type!=="ordinal"&&y.type!=="time"&&(!i||i===y.coordDim)&&(u=y))}),u&&!r&&!c&&(r=!0),u){d="__\0ecstackresult_"+e.id,f="__\0ecstackedover_"+e.id,c&&(c.createInvertedIndices=!0);var p=u.coordDim,h=u.type,m=0;lt(a,function(y){y.coordDim===p&&m++});var g={name:d,coordDim:p,coordDimIndex:m,type:h,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},v={name:f,coordDim:f,coordDimIndex:m+1,type:h,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(f,h),v.storeDimIndex=s.ensureCalculationDimension(d,h)),o.appendCalculationDimension(g),o.appendCalculationDimension(v)):(a.push(g),a.push(v))}return{stackedDimension:u&&u.name,stackedByDimension:c&&c.name,isStackedByIndex:r,stackedOverDimension:f,stackResultDimension:d}}function Vur(e){return!Zat(e.schema)}function B3(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function Gur(e,t){return B3(e,t)?e.getCalculationInfo("stackResultDimension"):t}function qur(e,t){var n=e.get("coordinateSystem"),r=yge.get(n),i;return t&&t.coordSysDims&&(i=Nr(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=Cur(l)}return o})),i||(i=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),i}function Wur(e,t,n){var r,i;return n&&lt(e,function(a,o){var s=a.coordDim,l=n.categoryAxisMap.get(s);l&&(r==null&&(r=o),a.ordinalMeta=l.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&r!=null&&(e[r].otherDims.itemName=0),r}function Yur(e,t,n){n=n||{};var r=t.getSourceManager(),i,a=!1;i=r.getSource(),a=i.sourceFormat===Yp;var o=zur(t),s=qur(t,o),l=n.useEncodeDefaulter,c=hi(l)?l:l?hl(fur,s,t):null,u={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:c,canOmitUnusedDimensions:!a},d=Dur(i,u),f=Wur(d.dimensions,n.createInvertedIndices,o),p=a?null:r.getSharedDataStore(d),h=Hur(t,{schema:d,store:p}),m=new Mur(d,t);m.setCalculationInfo(h);var g=f!=null&&Kur(i)?function(v,y,_,S){return S===f?_:this.defaultDimValueGetter(v,y,_,S)}:null;return m.hasItemOption=!1,m.initData(a?i:p,null,g),m}function Kur(e){if(e.sourceFormat===Yp){var t=Xur(e.data||[]);return!ar(C8(t))}}function Xur(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var Zur=Math.round(Math.random()*10);function gH(e){return[e||"",Zur++].join("_")}function Qur(e){var t={};e.registerSubTypeDefaulter=function(n,r){var i=Bg(n);t[i.main]=r},e.determineSubType=function(n,r){var i=r.type;if(!i){var a=Bg(n).main;e.hasSubTypes(n)&&t[a]&&(i=t[a](r))}return i}}function Jur(e,t){e.topologicalTravel=function(a,o,s,l){if(!a.length)return;var c=n(o),u=c.graph,d=c.noEntryList,f={};for(lt(a,function(y){f[y]=!0});d.length;){var p=d.pop(),h=u[p],m=!!f[p];m&&(s.call(l,p,h.originalDeps.slice()),delete f[p]),lt(h.successor,m?v:g)}lt(f,function(){var y="";throw new Error(y)});function g(y){u[y].entryCount--,u[y].entryCount===0&&d.push(y)}function v(y){f[y]=!0,g(y)}};function n(a){var o={},s=[];return lt(a,function(l){var c=r(o,l),u=c.originalDeps=t(l),d=i(u,a);c.entryCount=d.length,c.entryCount===0&&s.push(l),lt(d,function(f){ja(c.predecessor,f)<0&&c.predecessor.push(f);var p=r(o,f);ja(p.successor,f)<0&&p.successor.push(l)})}),{graph:o,noEntryList:s}}function r(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function i(a,o){var s=[];return lt(a,function(l){ja(o,l)>=0&&s.push(l)}),s}}function bge(e,t){return ba(ba({},e,!0),t,!0)}var edr=Math.log(2);function Lse(e,t,n,r,i,a){var o=r+"-"+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~i)/edr);return e[n][l]}for(var c=r|1<<n,u=n+1;r&1<<u;)u++;for(var d=0,f=0,p=0;f<s;f++){var h=1<<f;h&i||(d+=(p%2?-1:1)*e[n][f]*Lse(e,t-1,u,c,i|h,a),p++)}return a[o]=d,d}function s8e(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],r={},i=Lse(n,8,0,0,0,r);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*Lse(n,7,o===0?1:0,1<<o,1<<s,r)/i*t[o];return function(l,c,u){var d=c*a[6]+u*a[7]+1;l[0]=(c*a[0]+u*a[1]+a[2])/d,l[1]=(c*a[3]+u*a[4]+a[5])/d}}}var l8e="___zrEVENTSAVED",Iee=[];function tdr(e,t,n,r,i){return Pse(Iee,t,r,i,!0)&&Pse(e,n,Iee[0],Iee[1])}function Pse(e,t,n,r,i){if(t.getBoundingClientRect&&ci.domSupported&&!tot(t)){var a=t[l8e]||(t[l8e]={}),o=ndr(t,a),s=rdr(o,a,i);if(s)return s(e,n,r),!0}return!1}function ndr(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var r=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,c=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",i[c]+":0",r[1-l]+":auto",i[1-c]+":auto",""].join("!important;"),e.appendChild(o),n.push(o)}return n}function rdr(e,t,n){for(var r=n?"invTrans":"trans",i=t[r],a=t.srcCoords,o=[],s=[],l=!0,c=0;c<4;c++){var u=e[c].getBoundingClientRect(),d=2*c,f=u.left,p=u.top;o.push(f,p),l=l&&a&&f===a[d]&&p===a[d+1],s.push(e[c].offsetLeft,e[c].offsetTop)}return l&&i?i:(t.srcCoords=o,t[r]=n?s8e(s,o):s8e(o,s))}function tot(e){return e.nodeName.toUpperCase()==="CANVAS"}var idr=/([&<>"'])/g,adr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function yf(e){return e==null?"":(e+"").replace(idr,function(t,n){return adr[n]})}const odr={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},sdr={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表，"},series:{single:{prefix:"",withName:"图表类型是{seriesType}，表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType}，",withoutName:"第{seriesId}个系列是一个{seriesType}，",separator:{middle:"；",end:"。"}}},data:{allData:"其数据是——",partialData:"其中，前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:"，",end:""}}}};var sB="ZH",_ge="EN",q5=_ge,ZM={},Sge={},not=ci.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||q5).toUpperCase();return e.indexOf(sB)>-1?sB:q5}():q5;function rot(e,t){e=e.toUpperCase(),Sge[e]=new Os(t),ZM[e]=t}function ldr(e){if(yr(e)){var t=ZM[e.toUpperCase()]||{};return e===sB||e===_ge?Xi(t):ba(Xi(t),Xi(ZM[q5]),!1)}else return ba(Xi(e),Xi(ZM[q5]),!1)}function cdr(e){return Sge[e]}function udr(){return Sge[q5]}rot(_ge,odr);rot(sB,sdr);var Ege=1e3,Cge=Ege*60,jR=Cge*60,yp=jR*24,c8e=yp*365,$A={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Wk="{yyyy}-{MM}-{dd}",u8e={year:"{yyyy}",month:"{yyyy}-{MM}",day:Wk,hour:Wk+" "+$A.hour,minute:Wk+" "+$A.minute,second:Wk+" "+$A.second,millisecond:$A.none},Aee=["year","month","day","hour","minute","second","millisecond"],iot=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Sy(e,t){return e+="","0000".substr(0,t-e.length)+e}function W5(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function ddr(e){return e===W5(e)}function fdr(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function vH(e,t,n,r){var i=u0(e),a=i[wge(n)](),o=i[Y5(n)]()+1,s=Math.floor((o-1)/3)+1,l=i[yH(n)](),c=i["get"+(n?"UTC":"")+"Day"](),u=i[S6(n)](),d=(u-1)%12+1,f=i[bH(n)](),p=i[_H(n)](),h=i[SH(n)](),m=u>=12?"pm":"am",g=m.toUpperCase(),v=r instanceof Os?r:cdr(r||not)||udr(),y=v.getModel("time"),_=y.get("month"),S=y.get("monthAbbr"),C=y.get("dayOfWeek"),w=y.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,m+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Sy(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,Sy(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Sy(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,C[c]).replace(/{ee}/g,w[c]).replace(/{e}/g,c+"").replace(/{HH}/g,Sy(u,2)).replace(/{H}/g,u+"").replace(/{hh}/g,Sy(d+"",2)).replace(/{h}/g,d+"").replace(/{mm}/g,Sy(f,2)).replace(/{m}/g,f+"").replace(/{ss}/g,Sy(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,Sy(h,3)).replace(/{S}/g,h+"")}function pdr(e,t,n,r,i){var a=null;if(yr(n))a=n;else if(hi(n))a=n(e.value,t,{level:e.level});else{var o=Vn({},$A);if(e.level>0)for(var s=0;s<Aee.length;++s)o[Aee[s]]="{primary|"+o[Aee[s]]+"}";var l=n?n.inherit===!1?n:Hi(n,o):o,c=aot(e.value,i);if(l[c])a=l[c];else if(l.inherit){for(var u=iot.indexOf(c),s=u-1;s>=0;--s)if(l[c]){a=l[c];break}a=a||o.none}if(ar(a)){var d=e.level==null?0:e.level>=0?e.level:a.length+e.level;d=Math.min(d,a.length-1),a=a[d]}}return vH(new Date(e.value),a,i,r)}function aot(e,t){var n=u0(e),r=n[Y5(t)]()+1,i=n[yH(t)](),a=n[S6(t)](),o=n[bH(t)](),s=n[_H(t)](),l=n[SH(t)](),c=l===0,u=c&&s===0,d=u&&o===0,f=d&&a===0,p=f&&i===1,h=p&&r===1;return h?"year":p?"month":f?"day":d?"hour":u?"minute":c?"second":"millisecond"}function d8e(e,t,n){var r=is(e)?u0(e):e;switch(t=t||aot(e,n),t){case"year":return r[wge(n)]();case"half-year":return r[Y5(n)]()>=6?1:0;case"quarter":return Math.floor((r[Y5(n)]()+1)/4);case"month":return r[Y5(n)]();case"day":return r[yH(n)]();case"half-day":return r[S6(n)]()/24;case"hour":return r[S6(n)]();case"minute":return r[bH(n)]();case"second":return r[_H(n)]();case"millisecond":return r[SH(n)]()}}function wge(e){return e?"getUTCFullYear":"getFullYear"}function Y5(e){return e?"getUTCMonth":"getMonth"}function yH(e){return e?"getUTCDate":"getDate"}function S6(e){return e?"getUTCHours":"getHours"}function bH(e){return e?"getUTCMinutes":"getMinutes"}function _H(e){return e?"getUTCSeconds":"getSeconds"}function SH(e){return e?"getUTCMilliseconds":"getMilliseconds"}function hdr(e){return e?"setUTCFullYear":"setFullYear"}function oot(e){return e?"setUTCMonth":"setMonth"}function sot(e){return e?"setUTCDate":"setDate"}function lot(e){return e?"setUTCHours":"setHours"}function cot(e){return e?"setUTCMinutes":"setMinutes"}function uot(e){return e?"setUTCSeconds":"setSeconds"}function dot(e){return e?"setUTCMilliseconds":"setMilliseconds"}function fot(e){if(!Alr(e))return yr(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function pot(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(n,r){return r.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var EH=Ait;function kse(e,t,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(u){return u&&Fg(u)?u:"-"}function a(u){return!!(u!=null&&!isNaN(u)&&isFinite(u))}var o=t==="time",s=e instanceof Date;if(o||s){var l=o?u0(e):e;if(isNaN(+l)){if(s)return"-"}else return vH(l,r,n)}if(t==="ordinal")return sse(e)?i(e):is(e)&&a(e)?e+"":"-";var c=JF(e);return a(c)?fot(c):sse(e)?i(e):typeof e=="boolean"?e+"":"-"}var f8e=["a","b","c","d","e","f","g"],Ree=function(e,t){return"{"+e+(t??"")+"}"};function hot(e,t,n){ar(t)||(t=[t]);var r=t.length;if(!r)return"";for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=f8e[a];e=e.replace(Ree(o),Ree(o,0))}for(var s=0;s<r;s++)for(var l=0;l<i.length;l++){var c=t[s][i[l]];e=e.replace(Ree(f8e[l],s),n?yf(c):c)}return e}function mdr(e,t){var n=yr(e)?{color:e,extraCssText:t}:e||{},r=n.color,i=n.type;t=n.extraCssText;var a=n.renderMode||"html";if(!r)return"";if(a==="html")return i==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+yf(r)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+yf(r)+";"+(t||"")+'"></span>';var o=n.markerId||"markerX";return{renderMode:a,content:"{"+o+"|}  ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function sC(e,t){return t=t||"transparent",yr(e)?e:Fr(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}var QM=lt,gdr=["left","right","top","bottom","width","height"],Yk=[["width","left","right"],["height","top","bottom"]];function xge(e,t,n,r,i){var a=0,o=0;r==null&&(r=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(l,c){var u=l.getBoundingRect(),d=t.childAt(c+1),f=d&&d.getBoundingRect(),p,h;if(e==="horizontal"){var m=u.width+(f?-f.x+u.x:0);p=a+m,p>r||l.newline?(a=0,p=m,o+=s+n,s=u.height):s=Math.max(s,u.height)}else{var g=u.height+(f?-f.y+u.y:0);h=o+g,h>i||l.newline?(a+=s+n,o=0,h=g,s=u.width):s=Math.max(s,u.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),e==="horizontal"?a=p+n:o=h+n)})}var zR=xge;hl(xge,"vertical");hl(xge,"horizontal");function E6(e,t,n){n=EH(n||0);var r=t.width,i=t.height,a=vc(e.left,r),o=vc(e.top,i),s=vc(e.right,r),l=vc(e.bottom,i),c=vc(e.width,r),u=vc(e.height,i),d=n[2]+n[0],f=n[1]+n[3],p=e.aspect;switch(isNaN(c)&&(c=r-s-f-a),isNaN(u)&&(u=i-l-d-o),p!=null&&(isNaN(c)&&isNaN(u)&&(p>r/i?c=r*.8:u=i*.8),isNaN(c)&&(c=p*u),isNaN(u)&&(u=c/p)),isNaN(a)&&(a=r-s-c-f),isNaN(o)&&(o=i-l-u-d),e.left||e.right){case"center":a=r/2-c/2-n[3];break;case"right":a=r-c-f;break}switch(e.top||e.bottom){case"middle":case"center":o=i/2-u/2-n[0];break;case"bottom":o=i-u-d;break}a=a||0,o=o||0,isNaN(c)&&(c=r-f-a-(s||0)),isNaN(u)&&(u=i-d-o-(l||0));var h=new Na(a+n[3],o+n[0],c,u);return h.margin=n,h}function C6(e){var t=e.layoutMode||e.constructor.layoutMode;return Fr(t)?t:t?{type:t}:null}function j3(e,t,n){var r=n&&n.ignoreSize;!ar(r)&&(r=[r,r]);var i=o(Yk[0],0),a=o(Yk[1],1);c(Yk[0],e,i),c(Yk[1],e,a);function o(u,d){var f={},p=0,h={},m=0,g=2;if(QM(u,function(_){h[_]=e[_]}),QM(u,function(_){s(t,_)&&(f[_]=h[_]=t[_]),l(f,_)&&p++,l(h,_)&&m++}),r[d])return l(t,u[1])?h[u[2]]=null:l(t,u[2])&&(h[u[1]]=null),h;if(m===g||!p)return h;if(p>=g)return f;for(var v=0;v<u.length;v++){var y=u[v];if(!s(f,y)&&s(e,y)){f[y]=e[y];break}}return f}function s(u,d){return u.hasOwnProperty(d)}function l(u,d){return u[d]!=null&&u[d]!=="auto"}function c(u,d,f){QM(u,function(p){d[p]=f[p]})}}function T8(e){return vdr({},e)}function vdr(e,t){return t&&e&&QM(gdr,function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}var ydr=rl(),qa=function(e){tr(t,e);function t(n,r,i){var a=e.call(this,n,r,i)||this;return a.uid=gH("ec_cpt_model"),a}return t.prototype.init=function(n,r,i){this.mergeDefaultAndTheme(n,i)},t.prototype.mergeDefaultAndTheme=function(n,r){var i=C6(this),a=i?T8(n):{},o=r.getTheme();ba(n,o.get(this.mainType)),ba(n,this.getDefaultOption()),i&&j3(n,a,i)},t.prototype.mergeOption=function(n,r){ba(this.option,n,!0);var i=C6(this);i&&j3(this.option,n,i)},t.prototype.optionUpdated=function(n,r){},t.prototype.getDefaultOption=function(){var n=this.constructor;if(!Wor(n))return n.defaultOption;var r=ydr(this);if(!r.defaultOption){for(var i=[],a=n;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var s={},l=i.length-1;l>=0;l--)s=ba(s,i[l],!0);r.defaultOption=s}return r.defaultOption},t.prototype.getReferringComponents=function(n,r){var i=n+"Index",a=n+"Id";return w8(this.ecModel,n,{index:this.get(i,!0),id:this.get(a,!0)},r)},t.prototype.getBoxLayoutParams=function(){var n=this;return{left:n.get("left"),top:n.get("top"),right:n.get("right"),bottom:n.get("bottom"),width:n.get("width"),height:n.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(n){this.option.zlevel=n},t.protoInitialize=function(){var n=t.prototype;n.type="component",n.id="",n.name="",n.mainType="",n.subType="",n.componentIndex=0}(),t}(Os);Pit(qa,Os);eH(qa);Qur(qa);Jur(qa,bdr);function bdr(e){var t=[];return lt(qa.getClassesByMainType(e),function(n){t=t.concat(n.dependencies||n.prototype.dependencies||[])}),t=Nr(t,function(n){return Bg(n).main}),e!=="dataset"&&ja(t,"dataset")<=0&&t.unshift("dataset"),t}var p8e=rl();rl();var Tge=function(){function e(){}return e.prototype.getColorFromPalette=function(t,n,r){var i=yl(this.get("color",!0)),a=this.get("colorLayer",!0);return Sdr(this,p8e,i,a,t,n,r)},e.prototype.clearColorPalette=function(){Edr(this,p8e)},e}();function _dr(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].length>t)return e[r];return e[n-1]}function Sdr(e,t,n,r,i,a,o){a=a||e;var s=t(a),l=s.paletteIdx||0,c=s.paletteNameMap=s.paletteNameMap||{};if(c.hasOwnProperty(i))return c[i];var u=o==null||!r?n:_dr(r,o);if(u=u||n,!(!u||!u.length)){var d=u[l];return i&&(c[i]=d),s.paletteIdx=(l+1)%u.length,d}}function Edr(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Cdr=/\{@(.+?)\}/g,wdr=function(){function e(){}return e.prototype.getDataParams=function(t,n){var r=this.getData(n),i=this.getRawValue(t,n),a=r.getRawIndex(t),o=r.getName(t),s=r.getRawDataItem(t),l=r.getItemVisual(t,"style"),c=l&&l[r.getItemVisual(t,"drawType")||"fill"],u=l&&l.stroke,d=this.mainType,f=d==="series",p=r.userOutput&&r.userOutput.get();return{componentType:d,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:f?this.subType:null,seriesIndex:this.seriesIndex,seriesId:f?this.id:null,seriesName:f?this.name:null,name:o,dataIndex:a,data:s,dataType:n,value:i,color:c,borderColor:u,dimensionNames:p?p.fullDimensions:null,encode:p?p.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,n,r,i,a,o){n=n||"normal";var s=this.getData(r),l=this.getDataParams(t,r);if(o&&(l.value=o.interpolatedValue),i!=null&&ar(l.value)&&(l.value=l.value[i]),!a){var c=s.getItemModel(t);a=c.get(n==="normal"?["label","formatter"]:[n,"label","formatter"])}if(hi(a))return l.status=n,l.dimensionIndex=i,a(l);if(yr(a)){var u=hot(a,l);return u.replace(Cdr,function(d,f){var p=f.length,h=f;h.charAt(0)==="["&&h.charAt(p-1)==="]"&&(h=+h.slice(1,p-1));var m=F3(s,t,h);if(o&&ar(o.interpolatedValue)){var g=s.getDimensionIndex(h);g>=0&&(m=o.interpolatedValue[g])}return m!=null?m+"":""})}},e.prototype.getRawValue=function(t,n){return F3(this.getData(n),t)},e.prototype.formatTooltip=function(t,n,r){},e}();function h8e(e){var t,n;return Fr(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function UR(e){return new xdr(e)}var xdr=function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var n=this._upstream,r=t&&t.skip;if(this._dirty&&n){var i=this.context;i.data=i.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!r&&(a=this._plan(this.context));var o=u(this._modBy),s=this._modDataCount||0,l=u(t&&t.modBy),c=t&&t.modDataCount||0;(o!==l||s!==c)&&(a="reset");function u(y){return!(y>=1)&&(y=1),y}var d;(this._dirty||a==="reset")&&(this._dirty=!1,d=this._doReset(r)),this._modBy=l,this._modDataCount=c;var f=t&&t.step;if(n?this._dueEnd=n._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,h=Math.min(f!=null?this._dueIndex+f:1/0,this._dueEnd);if(!r&&(d||p<h)){var m=this._progress;if(ar(m))for(var g=0;g<m.length;g++)this._doProgress(m[g],p,h,l,c);else this._doProgress(m,p,h,l,c)}this._dueIndex=h;var v=this._settedOutputEnd!=null?this._settedOutputEnd:h;this._outputDueEnd=v}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(t,n,r,i,a){m8e.reset(n,r,i,a),this._callingProgress=t,this._callingProgress({start:n,end:r,count:r-n,next:m8e.next},this.context)},e.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var n,r;!t&&this._reset&&(n=this._reset(this.context),n&&n.progress&&(r=n.forceFirstProgress,n=n.progress),ar(n)&&!n.length&&(n=null)),this._progress=n,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),r},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},e}(),m8e=function(){var e,t,n,r,i,a={reset:function(l,c,u,d){t=l,e=c,n=u,r=d,i=Math.ceil(r/n),a.next=n>1&&r>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var l=t%i*n+Math.ceil(t/i),c=t>=e?null:l<r?l:t;return t++,c}}(),Tdr=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,n){},e.prototype.retrieveValueFromItem=function(t,n){},e.prototype.convertValue=function(t,n){return XM(t,n)},e}();function Idr(e,t){var n=new Tdr,r=e.data,i=n.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==K1&&fd(o);var s=[],l={},c=e.dimensionsDefine;if(c)lt(c,function(m,g){var v=m.name,y={index:g,name:v,displayName:m.displayName};if(s.push(y),v!=null){var _="";D3(l,v)&&fd(_),l[v]=y}});else for(var u=0;u<e.dimensionsDetectedCount;u++)s.push({index:u});var d=Gat(i,K1);t.__isBuiltIn&&(n.getRawDataItem=function(m){return d(r,a,s,m)},n.getRawData=si(Adr,null,e)),n.cloneRawData=si(Rdr,null,e);var f=qat(i,K1);n.count=si(f,null,r,a,s);var p=Wat(i);n.retrieveValue=function(m,g){var v=d(r,a,s,m);return h(v,g)};var h=n.retrieveValueFromItem=function(m,g){if(m!=null){var v=s[g];if(v)return p(m,g,v.name)}};return n.getDimensionInfo=si(Ndr,null,s,l),n.cloneAllDimensionInfo=si(Odr,null,s),n}function Adr(e){var t=e.sourceFormat;if(!Ige(t)){var n="";fd(n)}return e.data}function Rdr(e){var t=e.sourceFormat,n=e.data;if(!Ige(t)){var r="";fd(r)}if(t===Pd){for(var i=[],a=0,o=n.length;a<o;a++)i.push(n[a].slice());return i}else if(t===wv){for(var i=[],a=0,o=n.length;a<o;a++)i.push(Vn({},n[a]));return i}}function Ndr(e,t,n){if(n!=null){if(is(n)||!isNaN(n)&&!D3(t,n))return e[n];if(D3(t,n))return t[n]}}function Odr(e){return Xi(e)}var mot=Mr();function Ldr(e){e=Xi(e);var t=e.type,n="";t||fd(n);var r=t.split(":");r.length!==2&&fd(n);var i=!1;r[0]==="echarts"&&(t=r[1],i=!0),e.__isBuiltIn=i,mot.set(t,e)}function Pdr(e,t,n){var r=yl(e),i=r.length,a="";i||fd(a);for(var o=0,s=i;o<s;o++){var l=r[o];t=kdr(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function kdr(e,t,n,r){var i="";t.length||fd(i),Fr(e)||fd(i);var a=e.type,o=mot.get(a);o||fd(i);var s=Nr(t,function(c){return Idr(c,o)}),l=yl(o.transform({upstream:s[0],upstreamList:s,config:Xi(e.config)}));return Nr(l,function(c,u){var d="";Fr(c)||fd(d),c.data||fd(d);var f=Uat(c.data);Ige(f)||fd(d);var p,h=t[0];if(h&&u===0&&!c.dimensions){var m=h.startIndex;m&&(c.data=h.data.slice(0,m).concat(c.data)),p={seriesLayoutBy:K1,sourceHeader:m,dimensions:h.metaRawOption.dimensions}}else p={seriesLayoutBy:K1,sourceHeader:0,dimensions:c.dimensions};return Nse(c.data,p,null)})}function Ige(e){return e===Pd||e===wv}var Mdr=function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,n){this._sourceList=t,this._upstreamSignList=n,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,n=this._getUpstreamSourceManagers(),r=!!n.length,i,a;if(Kk(t)){var o=t,s=void 0,l=void 0,c=void 0;if(r){var u=n[0];u.prepareSource(),c=u.getSource(),s=c.data,l=c.sourceFormat,a=[u._getVersionSign()]}else s=o.get("data",!0),l=Ld(s)?Ub:Yp,a=[];var d=this._getSourceMetaRawOption()||{},f=c&&c.metaRawOption||{},p=ra(d.seriesLayoutBy,f.seriesLayoutBy)||null,h=ra(d.sourceHeader,f.sourceHeader),m=ra(d.dimensions,f.dimensions),g=p!==f.seriesLayoutBy||!!h!=!!f.sourceHeader||m;i=g?[Nse(s,{seriesLayoutBy:p,sourceHeader:h,dimensions:m},l)]:[]}else{var v=t;if(r){var y=this._applyTransform(n);i=y.sourceList,a=y.upstreamSignList}else{var _=v.get("source",!0);i=[Nse(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},e.prototype._applyTransform=function(t){var n=this._sourceHost,r=n.get("transform",!0),i=n.get("fromTransformResult",!0);if(i!=null){var a="";t.length!==1&&g8e(a)}var o,s=[],l=[];return lt(t,function(c){c.prepareSource();var u=c.getSource(i||0),d="";i!=null&&!u&&g8e(d),s.push(u),l.push(c._getVersionSign())}),r?o=Pdr(r,s,{datasetIndex:n.componentIndex}):i!=null&&(o=[mur(s[0])]),{sourceList:o,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),n=0;n<t.length;n++){var r=t[n];if(r._isDirty()||this._upstreamSignList[n]!==r._getVersionSign())return!0}},e.prototype.getSource=function(t){t=t||0;var n=this._sourceList[t];if(!n){var r=this._getUpstreamSourceManagers();return r[0]&&r[0].getSource(t)}return n},e.prototype.getSharedDataStore=function(t){var n=t.makeStoreSchema();return this._innerGetDataStore(n.dimensions,t.source,n.hash)},e.prototype._innerGetDataStore=function(t,n,r){var i=0,a=this._storeList,o=a[i];o||(o=a[i]={});var s=o[r];if(!s){var l=this._getUpstreamSourceManagers()[0];Kk(this._sourceHost)&&l?s=l._innerGetDataStore(t,n,r):(s=new Ose,s.initData(new Vat(n,t.length),t)),o[r]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Kk(t)){var n=Bat(t);return n?[n.getSourceManager()]:[]}else return Nr(pur(t),function(r){return r.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,n,r,i;if(Kk(t))n=t.get("seriesLayoutBy",!0),r=t.get("sourceHeader",!0),i=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=t;n=a.get("seriesLayoutBy",!0),r=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:n,sourceHeader:r,dimensions:i}},e}();function Kk(e){return e.mainType==="series"}function g8e(e){throw new Error(e)}var got="line-height:1";function vot(e,t){var n=e.color||"#6e7079",r=e.fontSize||12,i=e.fontWeight||"400",a=e.color||"#464646",o=e.fontSize||14,s=e.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+yf(r+"")+"px;color:"+yf(n)+";font-weight:"+yf(i+""),valueStyle:"font-size:"+yf(o+"")+"px;color:"+yf(a)+";font-weight:"+yf(s+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var Ddr=[0,10,20,30],$dr=["",`
`,`

`,`


`];function w6(e,t){return t.type=e,t}function Mse(e){return e.type==="section"}function yot(e){return Mse(e)?Fdr:Bdr}function bot(e){if(Mse(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return lt(e.blocks,function(i){var a=bot(i);a>=t&&(t=a+ +(r&&(!a||Mse(i)&&!i.noHeader)))}),t}return 0}function Fdr(e,t,n,r){var i=t.noHeader,a=jdr(bot(t)),o=[],s=t.blocks||[];c0(!s||ar(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var c={valueAsc:"asc",valueDesc:"desc"};if(D3(c,l)){var u=new xur(c[l],null);s.sort(function(h,m){return u.evaluate(h.sortParam,m.sortParam)})}else l==="seriesDesc"&&s.reverse()}lt(s,function(h,m){var g=t.valueFormatter,v=yot(h)(g?Vn(Vn({},e),{valueFormatter:g}):e,h,m>0?a.html:0,r);v!=null&&o.push(v)});var d=e.renderMode==="richText"?o.join(a.richText):Dse(o.join(""),i?n:a.html);if(i)return d;var f=kse(t.header,"ordinal",e.useUTC),p=vot(r,e.renderMode).nameStyle;return e.renderMode==="richText"?_ot(e,f,p)+a.richText+d:Dse('<div style="'+p+";"+got+';">'+yf(f)+"</div>"+d,n)}function Bdr(e,t,n,r){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,c=e.useUTC,u=t.valueFormatter||e.valueFormatter||function(S){return S=ar(S)?S:[S],Nr(S,function(C,w){return kse(C,ar(p)?p[w]:p,c)})};if(!(a&&o)){var d=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),f=a?"":kse(l,"ordinal",c),p=t.valueType,h=o?[]:u(t.value,t.dataIndex),m=!s||!a,g=!s&&a,v=vot(r,i),y=v.nameStyle,_=v.valueStyle;return i==="richText"?(s?"":d)+(a?"":_ot(e,f,y))+(o?"":Hdr(e,h,m,g,_)):Dse((s?"":d)+(a?"":zdr(f,!s,y))+(o?"":Udr(h,m,g,_)),n)}}function v8e(e,t,n,r,i,a){if(e){var o=yot(e),s={useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function jdr(e){return{html:Ddr[e],richText:$dr[e]}}function Dse(e,t){var n='<div style="clear:both"></div>',r="margin: "+t+"px 0 0";return'<div style="'+r+";"+got+';">'+e+n+"</div>"}function zdr(e,t,n){var r=t?"margin-left:2px":"";return'<span style="'+n+";"+r+'">'+yf(e)+"</span>"}function Udr(e,t,n,r){var i=n?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=ar(e)?e:[e],'<span style="'+a+";"+r+'">'+Nr(e,function(o){return yf(o)}).join("&nbsp;&nbsp;")+"</span>"}function _ot(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function Hdr(e,t,n,r,i){var a=[i],o=r?10:20;return n&&a.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(ar(t)?t.join("  "):t,a)}function Vdr(e,t){var n=e.getData().getItemVisual(t,"style"),r=n[e.visualDrawType];return sC(r)}function Sot(e,t){var n=e.get("padding");return n??(t==="richText"?[8,10]:10)}var Nee=function(){function e(){this.richTextStyles={},this._nextStyleNameId=iat()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,n,r){var i=r==="richText"?this._generateStyleName():null,a=mdr({color:n,type:t,renderMode:r,markerId:i});return yr(a)?a:(this.richTextStyles[i]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,n){var r={};ar(n)?lt(n,function(a){return Vn(r,a)}):Vn(r,n);var i=this._generateStyleName();return this.richTextStyles[i]=r,"{"+i+"|"+t+"}"},e}();function Gdr(e){var t=e.series,n=e.dataIndex,r=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(n),l=ar(s),c=Vdr(t,n),u,d,f,p;if(o>1||l&&!o){var h=qdr(s,t,n,a,c);u=h.inlineValues,d=h.inlineValueTypes,f=h.blocks,p=h.inlineValues[0]}else if(o){var m=i.getDimensionInfo(a[0]);p=u=F3(i,n,a[0]),d=m.type}else p=u=l?s[0]:s;var g=Zme(t),v=g&&t.name||"",y=i.getName(n),_=r?v:y;return w6("section",{header:v,noHeader:r||!g,sortParam:p,blocks:[w6("nameValue",{markerType:"item",markerColor:c,name:_,noName:!Fg(_),value:u,valueType:d,dataIndex:n})].concat(f||[])})}function qdr(e,t,n,r,i){var a=t.getData(),o=t4(e,function(d,f,p){var h=a.getDimensionInfo(p);return d=d||h&&h.tooltip!==!1&&h.displayName!=null},!1),s=[],l=[],c=[];r.length?lt(r,function(d){u(F3(a,n,d),d)}):lt(e,u);function u(d,f){var p=a.getDimensionInfo(f);!p||p.otherDims.tooltip===!1||(o?c.push(w6("nameValue",{markerType:"subItem",markerColor:i,name:p.displayName,value:d,valueType:p.type})):(s.push(d),l.push(p.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:c}}var Ey=rl();function Xk(e,t){return e.getName(t)||e.getId(t)}var JM="__universalTransitionEnabled",m_=function(e){tr(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n._selectedDataIndicesMap={},n}return t.prototype.init=function(n,r,i){this.seriesIndex=this.componentIndex,this.dataTask=UR({count:Ydr,reset:Kdr}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(n,i);var a=Ey(this).sourceManager=new Mdr(this);a.prepareSource();var o=this.getInitialData(n,i);b8e(o,this),this.dataTask.context.data=o,Ey(this).dataBeforeProcessed=o,y8e(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(n,r){var i=C6(this),a=i?T8(n):{},o=this.subType;qa.hasClass(o)&&(o+="Series"),ba(n,r.getTheme().get(this.subType)),ba(n,this.getDefaultOption()),EOe(n,"label",["show"]),this.fillDataTextStyle(n.data),i&&j3(n,a,i)},t.prototype.mergeOption=function(n,r){n=ba(this.option,n,!0),this.fillDataTextStyle(n.data);var i=C6(this);i&&j3(this.option,n,i);var a=Ey(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(n,r);b8e(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Ey(this).dataBeforeProcessed=o,y8e(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(n){if(n&&!Ld(n))for(var r=["show"],i=0;i<n.length;i++)n[i]&&n[i].label&&EOe(n[i],"label",r)},t.prototype.getInitialData=function(n,r){},t.prototype.appendData=function(n){var r=this.getRawData();r.appendData(n.data)},t.prototype.getData=function(n){var r=$se(this);if(r){var i=r.context.data;return n==null||!i.getLinkedData?i:i.getLinkedData(n)}else return Ey(this).data},t.prototype.getAllData=function(){var n=this.getData();return n&&n.getLinkedDataAll?n.getLinkedDataAll():[{data:n}]},t.prototype.setData=function(n){var r=$se(this);if(r){var i=r.context;i.outputData=n,r!==this.dataTask&&(i.data=n)}Ey(this).data=n},t.prototype.getEncode=function(){var n=this.get("encode",!0);if(n)return Mr(n)},t.prototype.getSourceManager=function(){return Ey(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Ey(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var n=this.get("colorBy");return n||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var n=this.coordinateSystem;return n&&n.getBaseAxis&&n.getBaseAxis()},t.prototype.formatTooltip=function(n,r,i){return Gdr({series:this,dataIndex:n,multipleSeries:r})},t.prototype.isAnimationEnabled=function(){var n=this.ecModel;if(ci.node&&!(n&&n.ssr))return!1;var r=this.getShallow("animation");return r&&this.getData().count()>this.getShallow("animationThreshold")&&(r=!1),!!r},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(n,r,i){var a=this.ecModel,o=Tge.prototype.getColorFromPalette.call(this,n,r,i);return o||(o=a.getColorFromPalette(n,r,i)),o},t.prototype.coordDimToDataDim=function(n){return this.getRawData().mapDimensionsAll(n)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(n,r){this._innerSelect(this.getData(r),n)},t.prototype.unselect=function(n,r){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(r);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<n.length;s++){var l=n[s],c=Xk(o,l);i[c]=!1,this._selectedDataIndicesMap[c]=-1}}},t.prototype.toggleSelect=function(n,r){for(var i=[],a=0;a<n.length;a++)i[0]=n[a],this.isSelected(n[a],r)?this.unselect(i,r):this.select(i,r)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var n=this._selectedDataIndicesMap,r=rs(n),i=[],a=0;a<r.length;a++){var o=n[r[a]];o>=0&&i.push(o)}return i},t.prototype.isSelected=function(n,r){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(r);return(i==="all"||i[Xk(a,n)])&&!a.getItemModel(n).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[JM])return!0;var n=this.option.universalTransition;return n?n===!0?!0:n&&n.enabled:!1},t.prototype._innerSelect=function(n,r){var i,a,o=this.option,s=o.selectedMode,l=r.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){Fr(o.selectedMap)||(o.selectedMap={});for(var c=o.selectedMap,u=0;u<l;u++){var d=r[u],f=Xk(n,d);c[f]=!0,this._selectedDataIndicesMap[f]=n.getRawIndex(d)}}else if(s==="single"||s===!0){var p=r[l-1],f=Xk(n,p);o.selectedMap=(i={},i[f]=!0,i),this._selectedDataIndicesMap=(a={},a[f]=n.getRawIndex(p),a)}}},t.prototype._initSelectedMapFromData=function(n){if(!this.option.selectedMap){var r=[];n.hasItemOption&&n.each(function(i){var a=n.getRawDataItem(i);a&&a.selected&&r.push(i)}),r.length>0&&this._innerSelect(n,r)}},t.registerClass=function(n){return qa.registerClass(n)},t.protoInitialize=function(){var n=t.prototype;n.type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",n.visualDrawType="fill"}(),t}(qa);Cv(m_,wdr);Cv(m_,Tge);Pit(m_,qa);function y8e(e){var t=e.name;Zme(e)||(e.name=Wdr(e)||t)}function Wdr(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),r=[];return lt(n,function(i){var a=t.getDimensionInfo(i);a.displayName&&r.push(a.displayName)}),r.join(" ")}function Ydr(e){return e.model.getRawData().count()}function Kdr(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),Xdr}function Xdr(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function b8e(e,t){lt(jor(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,hl(Zdr,t))})}function Zdr(e,t){var n=$se(e);return n&&n.setOutputEnd((t||this).count()),t}function $se(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}var Qdr=ha.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r+a),e.lineTo(n-i,r+a),e.closePath()}}),Jdr=ha.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r),e.lineTo(n,r+a),e.lineTo(n-i,r),e.closePath()}}),efr=ha.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),l=r-a+o+s,c=Math.asin(s/o),u=Math.cos(c)*o,d=Math.sin(c),f=Math.cos(c),p=o*.6,h=o*.7;e.moveTo(n-u,l+s),e.arc(n,l,o,Math.PI-c,Math.PI*2+c),e.bezierCurveTo(n+u-d*p,l+s+f*p,n,r-h,n,r),e.bezierCurveTo(n,r-h,n-u+d*p,l+s+f*p,n-u,l+s),e.closePath()}}),tfr=ha.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,i=t.x,a=t.y,o=r/3*2;e.moveTo(i,a),e.lineTo(i+o,a+n),e.lineTo(i,a+n/4*3),e.lineTo(i-o,a+n),e.lineTo(i,a),e.closePath()}}),nfr={line:p_,rect:Ps,roundRect:Ps,square:Ps,circle:cH,diamond:Jdr,pin:efr,arrow:tfr,triangle:Qdr},rfr={line:function(e,t,n,r,i){i.x1=e,i.y1=t+r/2,i.x2=e+n,i.y2=t+r/2},rect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r},roundRect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(e,t,n,r,i){var a=Math.min(n,r);i.x=e,i.y=t,i.width=a,i.height=a},circle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.r=Math.min(n,r)/2},diamond:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r},pin:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},arrow:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},triangle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r}},lB={};lt(nfr,function(e,t){lB[t]=new e});var ifr=ha.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=Dit(e,t,n),i=this.shape;return i&&i.symbolType==="pin"&&t.position==="inside"&&(r.y=n.y+n.height*.4),r},buildPath:function(e,t,n){var r=t.symbolType;if(r!=="none"){var i=lB[r];i||(r="rect",i=lB[r]),rfr[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function afr(e,t){if(this.type!=="image"){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||"#fff",n.lineWidth=2):this.shape.symbolType==="line"?n.stroke=e:n.fill=e,this.markRedraw()}}function g_(e,t,n,r,i,a,o){var s=e.indexOf("empty")===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var l;return e.indexOf("image://")===0?l=Iat(e.slice(8),new Na(t,n,r,i),o?"center":"cover"):e.indexOf("path://")===0?l=cge(e.slice(7),{},new Na(t,n,r,i),o?"center":"cover"):l=new ifr({shape:{symbolType:e,x:t,y:n,width:r,height:i}}),l.__isEmptyBrush=s,l.setColor=afr,a&&l.setColor(a),l}function ofr(e){return ar(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function Eot(e,t){if(e!=null)return ar(e)||(e=[e,e]),[vc(e[0],t[0])||0,vc(ra(e[1],e[0]),t[1])||0]}var sfr=function(e){tr(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(n){return Yur(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(n){var r=new Jl,i=g_("line",0,n.itemHeight/2,n.itemWidth,0,n.lineStyle.stroke,!1);r.add(i),i.setStyle(n.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=n.itemHeight*.8,c=g_(s,(n.itemWidth-l)/2,(n.itemHeight-l)/2,l,l,n.itemStyle.fill);r.add(c),c.setStyle(n.itemStyle);var u=n.iconRotate==="inherit"?o:n.iconRotate||0;return c.rotation=u*Math.PI/180,c.setOrigin([n.itemWidth/2,n.itemHeight/2]),s.indexOf("empty")>-1&&(c.style.stroke=c.style.fill,c.style.fill="#fff",c.style.lineWidth=2),r},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(m_);function Cot(e,t){var n=e.mapDimensionsAll("defaultedLabel"),r=n.length;if(r===1){var i=F3(e,t,n[0]);return i!=null?i+"":null}else if(r){for(var a=[],o=0;o<n.length;o++)a.push(F3(e,t,n[o]));return a.join(" ")}}function lfr(e,t){var n=e.mapDimensionsAll("defaultedLabel");if(!ar(t))return t+"";for(var r=[],i=0;i<n.length;i++){var a=e.getDimensionIndex(n[i]);a>=0&&r.push(t[a])}return r.join(" ")}var Age=function(e){tr(t,e);function t(n,r,i,a){var o=e.call(this)||this;return o.updateData(n,r,i,a),o}return t.prototype._createSymbol=function(n,r,i,a,o){this.removeAll();var s=g_(n,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=cfr,this._symbolType=n,this.add(s)},t.prototype.stopSymbolAnimation=function(n){this.childAt(0).stopAnimation(null,n)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){eB(this.childAt(0))},t.prototype.downplay=function(){tB(this.childAt(0))},t.prototype.setZ=function(n,r){var i=this.childAt(0);i.zlevel=n,i.z=r},t.prototype.setDraggable=function(n,r){var i=this.childAt(0);i.draggable=n,i.cursor=!r&&n?"move":i.cursor},t.prototype.updateData=function(n,r,i,a){this.silent=!1;var o=n.getItemVisual(r,"symbol")||"circle",s=n.hostModel,l=t.getSymbolSize(n,r),c=o!==this._symbolType,u=a&&a.disableAnimation;if(c){var d=n.getItemVisual(r,"symbolKeepAspect");this._createSymbol(o,n,r,l,d)}else{var f=this.childAt(0);f.silent=!1;var p={scaleX:l[0]/2,scaleY:l[1]/2};u?f.attr(p):h_(f,p,s,r),jcr(f)}if(this._updateCommon(n,r,l,i,a),c){var f=this.childAt(0);if(!u){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}};f.scaleX=f.scaleY=0,f.style.opacity=0,i4(f,p,s,r)}}u&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(n,r,i,a,o){var s=this.childAt(0),l=n.hostModel,c,u,d,f,p,h,m,g,v;if(a&&(c=a.emphasisItemStyle,u=a.blurItemStyle,d=a.selectItemStyle,f=a.focus,p=a.blurScope,m=a.labelStatesModels,g=a.hoverScale,v=a.cursorStyle,h=a.emphasisDisabled),!a||n.hasItemOption){var y=a&&a.itemModel?a.itemModel:n.getItemModel(r),_=y.getModel("emphasis");c=_.getModel("itemStyle").getItemStyle(),d=y.getModel(["select","itemStyle"]).getItemStyle(),u=y.getModel(["blur","itemStyle"]).getItemStyle(),f=_.get("focus"),p=_.get("blurScope"),h=_.get("disabled"),m=hge(y),g=_.getShallow("scale"),v=y.getShallow("cursor")}var S=n.getItemVisual(r,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var C=Eot(n.getItemVisual(r,"symbolOffset"),i);C&&(s.x=C[0],s.y=C[1]),v&&s.attr("cursor",v);var w=n.getItemVisual(r,"style"),x=w.fill;if(s instanceof G_){var T=s.style;s.useStyle(Vn({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},w))}else s.__isEmptyBrush?s.useStyle(Vn({},w)):s.useStyle(w),s.style.decal=null,s.setColor(x,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var A=n.getItemVisual(r,"liftZ"),I=this._z2;A!=null?I==null&&(this._z2=s.z2,s.z2+=A):I!=null&&(s.z2=I,this._z2=null);var R=o&&o.useNameLabel;pge(s,m,{labelFetcher:l,labelDataIndex:r,defaultText:N,inheritColor:x,defaultOpacity:w.opacity});function N($){return R?n.getName($):Cot(n,$)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var P=s.ensureState("emphasis");P.style=c,s.ensureState("select").style=d,s.ensureState("blur").style=u;var L=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;P.scaleX=this._sizeX*L,P.scaleY=this._sizeY*L,this.setSymbolScale(1),wse(this,f,p,h)},t.prototype.setSymbolScale=function(n){this.scaleX=this.scaleY=n},t.prototype.fadeOut=function(n,r,i){var a=this.childAt(0),o=vo(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&iB(l,{style:{opacity:0}},r,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();iB(a,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:o,cb:n,removeOpt:s})},t.getSymbolSize=function(n,r){return ofr(n.getItemVisual(r,"symbolSize"))},t}(Jl);function cfr(e,t){this.parent.drift(e,t)}function Oee(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&e.getItemVisual(n,"symbol")!=="none"}function _8e(e){return e!=null&&!Fr(e)&&(e={isIgnore:e}),e||{}}function S8e(e){var t=e.hostModel,n=t.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:hge(t),cursorStyle:t.get("cursor")}}var ufr=function(){function e(t){this.group=new Jl,this._SymbolCtor=t||Age}return e.prototype.updateData=function(t,n){this._progressiveEls=null,n=_8e(n);var r=this.group,i=t.hostModel,a=this._data,o=this._SymbolCtor,s=n.disableAnimation,l=S8e(t),c={disableAnimation:s},u=n.getSymbolPoint||function(d){return t.getItemLayout(d)};a||r.removeAll(),t.diff(a).add(function(d){var f=u(d);if(Oee(t,f,d,n)){var p=new o(t,d,l,c);p.setPosition(f),t.setItemGraphicEl(d,p),r.add(p)}}).update(function(d,f){var p=a.getItemGraphicEl(f),h=u(d);if(!Oee(t,h,d,n)){r.remove(p);return}var m=t.getItemVisual(d,"symbol")||"circle",g=p&&p.getSymbolType&&p.getSymbolType();if(!p||g&&g!==m)r.remove(p),p=new o(t,d,l,c),p.setPosition(h);else{p.updateData(t,d,l,c);var v={x:h[0],y:h[1]};s?p.attr(v):h_(p,v,i)}r.add(p),t.setItemGraphicEl(d,p)}).remove(function(d){var f=a.getItemGraphicEl(d);f&&f.fadeOut(function(){r.remove(f)},i)}).execute(),this._getSymbolPoint=u,this._data=t},e.prototype.updateLayout=function(){var t=this,n=this._data;n&&n.eachItemGraphicEl(function(r,i){var a=t._getSymbolPoint(i);r.setPosition(a),r.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=S8e(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,n,r){this._progressiveEls=[],r=_8e(r);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a<t.end;a++){var o=n.getItemLayout(a);if(Oee(n,o,a,r)){var s=new this._SymbolCtor(n,a,this._seriesScope);s.traverse(i),s.setPosition(o),this.group.add(s),n.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},e.prototype.eachRendered=function(t){fge(this._progressiveEls||this.group,t)},e.prototype.remove=function(t){var n=this.group,r=this._data;r&&t?r.eachItemGraphicEl(function(i){i.fadeOut(function(){n.remove(i)},r.hostModel)}):n.removeAll()},e}();function wot(e,t,n){var r=e.getBaseAxis(),i=e.getOtherAxis(r),a=dfr(i,n),o=r.dim,s=i.dim,l=t.mapDimension(s),c=t.mapDimension(o),u=s==="x"||s==="radius"?1:0,d=Nr(e.dimensions,function(h){return t.mapDimension(h)}),f=!1,p=t.getCalculationInfo("stackResultDimension");return B3(t,d[0])&&(f=!0,d[0]=p),B3(t,d[1])&&(f=!0,d[1]=p),{dataDimsForPoint:d,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!f,valueDim:l,baseDim:c,baseDataOffset:u,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function dfr(e,t){var n=0,r=e.scale.getExtent();return t==="start"?n=r[0]:t==="end"?n=r[1]:is(t)&&!isNaN(t)?n=t:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]),n}function xot(e,t,n,r){var i=NaN;e.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=n.get(e.baseDim,r),o[1-a]=i,t.dataToPoint(o)}var Tot=typeof Float32Array<"u",ffr=Tot?Float32Array:Array;function $1(e){return ar(e)?Tot?new Float32Array(e):e:new ffr(e)}function pfr(e,t){var n=[];return t.diff(e).add(function(r){n.push({cmd:"+",idx:r})}).update(function(r,i){n.push({cmd:"=",idx:i,idx1:r})}).remove(function(r){n.push({cmd:"-",idx:r})}).execute(),n}function hfr(e,t,n,r,i,a,o,s){for(var l=pfr(e,t),c=[],u=[],d=[],f=[],p=[],h=[],m=[],g=wot(i,t,o),v=e.getLayout("points")||[],y=t.getLayout("points")||[],_=0;_<l.length;_++){var S=l[_],C=!0,w=void 0,x=void 0;switch(S.cmd){case"=":w=S.idx*2,x=S.idx1*2;var T=v[w],A=v[w+1],I=y[x],R=y[x+1];(isNaN(T)||isNaN(A))&&(T=I,A=R),c.push(T,A),u.push(I,R),d.push(n[w],n[w+1]),f.push(r[x],r[x+1]),m.push(t.getRawIndex(S.idx1));break;case"+":var N=S.idx,P=g.dataDimsForPoint,L=i.dataToPoint([t.get(P[0],N),t.get(P[1],N)]);x=N*2,c.push(L[0],L[1]),u.push(y[x],y[x+1]);var $=xot(g,i,t,N);d.push($[0],$[1]),f.push(r[x],r[x+1]),m.push(t.getRawIndex(N));break;case"-":C=!1}C&&(p.push(S),h.push(h.length))}h.sort(function(q,W){return m[q]-m[W]});for(var D=c.length,z=$1(D),U=$1(D),H=$1(D),M=$1(D),B=[],_=0;_<h.length;_++){var k=h[_],F=_*2,G=k*2;z[F]=c[G],z[F+1]=c[G+1],U[F]=u[G],U[F+1]=u[G+1],H[F]=d[G],H[F+1]=d[G+1],M[F]=f[G],M[F+1]=f[G+1],B[_]=p[k]}return{current:z,next:U,stackedOnCurrent:H,stackedOnNext:M,status:B}}var Cy=Math.min,wy=Math.max;function bE(e,t){return isNaN(e)||isNaN(t)}function Fse(e,t,n,r,i,a,o,s,l){for(var c,u,d,f,p,h,m=n,g=0;g<r;g++){var v=t[m*2],y=t[m*2+1];if(m>=i||m<0)break;if(bE(v,y)){if(l){m+=a;continue}break}if(m===n)e[a>0?"moveTo":"lineTo"](v,y),d=v,f=y;else{var _=v-c,S=y-u;if(_*_+S*S<.5){m+=a;continue}if(o>0){for(var C=m+a,w=t[C*2],x=t[C*2+1];w===v&&x===y&&g<r;)g++,C+=a,m+=a,w=t[C*2],x=t[C*2+1],v=t[m*2],y=t[m*2+1],_=v-c,S=y-u;var T=g+1;if(l)for(;bE(w,x)&&T<r;)T++,C+=a,w=t[C*2],x=t[C*2+1];var A=.5,I=0,R=0,N=void 0,P=void 0;if(T>=r||bE(w,x))p=v,h=y;else{I=w-c,R=x-u;var L=v-c,$=w-v,D=y-u,z=x-y,U=void 0,H=void 0;if(s==="x"){U=Math.abs(L),H=Math.abs($);var M=I>0?1:-1;p=v-M*U*o,h=y,N=v+M*H*o,P=y}else if(s==="y"){U=Math.abs(D),H=Math.abs(z);var B=R>0?1:-1;p=v,h=y-B*U*o,N=v,P=y+B*H*o}else U=Math.sqrt(L*L+D*D),H=Math.sqrt($*$+z*z),A=H/(H+U),p=v-I*o*(1-A),h=y-R*o*(1-A),N=v+I*o*A,P=y+R*o*A,N=Cy(N,wy(w,v)),P=Cy(P,wy(x,y)),N=wy(N,Cy(w,v)),P=wy(P,Cy(x,y)),I=N-v,R=P-y,p=v-I*U/H,h=y-R*U/H,p=Cy(p,wy(c,v)),h=Cy(h,wy(u,y)),p=wy(p,Cy(c,v)),h=wy(h,Cy(u,y)),I=v-p,R=y-h,N=v+I*H/U,P=y+R*H/U}e.bezierCurveTo(d,f,p,h,v,y),d=N,f=P}else e.lineTo(v,y)}c=v,u=y,m+=a}return g}var Iot=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),mfr=function(e){tr(t,e);function t(n){var r=e.call(this,n)||this;return r.type="ec-polyline",r}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Iot},t.prototype.buildPath=function(n,r){var i=r.points,a=0,o=i.length/2;if(r.connectNulls){for(;o>0&&bE(i[o*2-2],i[o*2-1]);o--);for(;a<o&&bE(i[a*2],i[a*2+1]);a++);}for(;a<o;)a+=Fse(n,i,a,o,o,1,r.smooth,r.smoothMonotone,r.connectNulls)+1},t.prototype.getPointOn=function(n,r){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i=this.path,a=i.data,o=f_.CMD,s,l,c=r==="x",u=[],d=0;d<a.length;){var f=a[d++],p=void 0,h=void 0,m=void 0,g=void 0,v=void 0,y=void 0,_=void 0;switch(f){case o.M:s=a[d++],l=a[d++];break;case o.L:if(p=a[d++],h=a[d++],_=c?(n-s)/(p-s):(n-l)/(h-l),_<=1&&_>=0){var S=c?(h-l)*_+l:(p-s)*_+s;return c?[n,S]:[S,n]}s=p,l=h;break;case o.C:p=a[d++],h=a[d++],m=a[d++],g=a[d++],v=a[d++],y=a[d++];var C=c?WF(s,p,m,v,n,u):WF(l,h,g,y,n,u);if(C>0)for(var w=0;w<C;w++){var x=u[w];if(x<=1&&x>=0){var S=c?gc(l,h,g,y,x):gc(s,p,m,v,x);return c?[n,S]:[S,n]}}s=v,l=y;break}}},t}(ha),gfr=function(e){tr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Iot),vfr=function(e){tr(t,e);function t(n){var r=e.call(this,n)||this;return r.type="ec-polygon",r}return t.prototype.getDefaultShape=function(){return new gfr},t.prototype.buildPath=function(n,r){var i=r.points,a=r.stackedOnPoints,o=0,s=i.length/2,l=r.smoothMonotone;if(r.connectNulls){for(;s>0&&bE(i[s*2-2],i[s*2-1]);s--);for(;o<s&&bE(i[o*2],i[o*2+1]);o++);}for(;o<s;){var c=Fse(n,i,o,s,s,1,r.smooth,l,r.connectNulls);Fse(n,a,o+c-1,c,s,-1,r.stackedOnSmooth,l,r.connectNulls),o+=c+1,n.closePath()}},t}(ha);function Rge(){var e=rl();return function(t){var n=e(t),r=t.pipelineContext,i=!!n.large,a=!!n.progressiveRender,o=n.large=!!(r&&r.large),s=n.progressiveRender=!!(r&&r.progressiveRender);return(i!==o||a!==s)&&"reset"}}var Aot=rl(),yfr=Rge(),Zg=function(){function e(){this.group=new Jl,this.uid=gH("viewChart"),this.renderTask=UR({plan:bfr,reset:_fr}),this.renderTask.context={view:this}}return e.prototype.init=function(t,n){},e.prototype.render=function(t,n,r,i){},e.prototype.highlight=function(t,n,r,i){var a=t.getData(i&&i.dataType);a&&C8e(a,i,"emphasis")},e.prototype.downplay=function(t,n,r,i){var a=t.getData(i&&i.dataType);a&&C8e(a,i,"normal")},e.prototype.remove=function(t,n){this.group.removeAll()},e.prototype.dispose=function(t,n){},e.prototype.updateView=function(t,n,r,i){this.render(t,n,r,i)},e.prototype.updateLayout=function(t,n,r,i){this.render(t,n,r,i)},e.prototype.updateVisual=function(t,n,r,i){this.render(t,n,r,i)},e.prototype.eachRendered=function(t){fge(this.group,t)},e.markUpdateMethod=function(t,n){Aot(t).updateMethod=n},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function E8e(e,t,n){e&&xse(e)&&(t==="emphasis"?eB:tB)(e,n)}function C8e(e,t,n){var r=aC(e,t),i=t&&t.highlightKey!=null?ucr(t.highlightKey):null;r!=null?lt(yl(r),function(a){E8e(e.getItemGraphicEl(a),n,i)}):e.eachItemGraphicEl(function(a){E8e(a,n,i)})}Hme(Zg);eH(Zg);function bfr(e){return yfr(e.model)}function _fr(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&Aot(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,n,r,i),Sfr[l]}var Sfr={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};function Rot(e,t,n,r,i){var a=e.getArea(),o=a.x,s=a.y,l=a.width,c=a.height,u=n.get(["lineStyle","width"])||2;o-=u/2,s-=u/2,l+=u,c+=u,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var d=new Ps({shape:{x:o,y:s,width:l,height:c}});if(t){var f=e.getBaseAxis(),p=f.isHorizontal(),h=f.inverse;p?(h&&(d.shape.x+=l),d.shape.width=0):(h||(d.shape.y+=c),d.shape.height=0);var m=hi(i)?function(g){i(g,d)}:null;i4(d,{shape:{width:l,height:c,x:o,y:s}},n,null,r,m)}return d}function Not(e,t,n){var r=e.getArea(),i=gl(r.r0,1),a=gl(r.r,1),o=new $3({shape:{cx:gl(e.cx,1),cy:gl(e.cy,1),r0:i,r:a,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});if(t){var s=e.getBaseAxis().dim==="angle";s?o.shape.endAngle=r.startAngle:o.shape.r=i,i4(o,{shape:{endAngle:r.endAngle,r:a}},n)}return o}function gOr(e,t,n,r,i){if(e){if(e.type==="polar")return Not(e,t,n);if(e.type==="cartesian2d")return Rot(e,t,n,r,i)}else return null;return null}function Efr(e,t){return e.type===t}function w8e(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function x8e(e){for(var t=1/0,n=1/0,r=-1/0,i=-1/0,a=0;a<e.length;){var o=e[a++],s=e[a++];isNaN(o)||(t=Math.min(o,t),r=Math.max(o,r)),isNaN(s)||(n=Math.min(s,n),i=Math.max(s,i))}return[[t,n],[r,i]]}function T8e(e,t){var n=x8e(e),r=n[0],i=n[1],a=x8e(t),o=a[0],s=a[1];return Math.max(Math.abs(r[0]-o[0]),Math.abs(r[1]-o[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function I8e(e){return is(e)?e:e?.5:0}function Cfr(e,t,n){if(!n.valueDim)return[];for(var r=t.count(),i=$1(r*2),a=0;a<r;a++){var o=xot(n,e,t,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function xy(e,t,n,r){var i=t.getBaseAxis(),a=i.dim==="x"||i.dim==="radius"?0:1,o=[],s=0,l=[],c=[],u=[],d=[];if(r){for(s=0;s<e.length;s+=2)!isNaN(e[s])&&!isNaN(e[s+1])&&d.push(e[s],e[s+1]);e=d}for(s=0;s<e.length-2;s+=2)switch(u[0]=e[s+2],u[1]=e[s+3],c[0]=e[s],c[1]=e[s+1],o.push(c[0],c[1]),n){case"end":l[a]=u[a],l[1-a]=c[1-a],o.push(l[0],l[1]);break;case"middle":var f=(c[a]+u[a])/2,p=[];l[a]=p[a]=f,l[1-a]=c[1-a],p[1-a]=u[1-a],o.push(l[0],l[1]),o.push(p[0],p[1]);break;default:l[a]=c[a],l[1-a]=u[1-a],o.push(l[0],l[1])}return o.push(e[s++],e[s++]),o}function wfr(e,t){var n=[],r=e.length,i,a;function o(u,d,f){var p=u.coord,h=(f-p)/(d.coord-p),m=Osr(h,[u.color,d.color]);return{coord:f,color:m}}for(var s=0;s<r;s++){var l=e[s],c=l.coord;if(c<0)i=l;else if(c>t){a?n.push(o(a,l,t)):i&&n.push(o(i,l,0),o(i,l,t));break}else i&&(n.push(o(i,l,0)),i=null),n.push(l),a=l}return n}function xfr(e,t,n){var r=e.getVisual("visualMeta");if(!(!r||!r.length||!e.count())&&t.type==="cartesian2d"){for(var i,a,o=r.length-1;o>=0;o--){var s=e.getDimensionInfo(r[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=r[o];break}}if(a){var l=t.getAxis(i),c=Nr(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),u=c.length,d=a.outerColors.slice();u&&c[0].coord>c[u-1].coord&&(c.reverse(),d.reverse());var f=wfr(c,i==="x"?n.getWidth():n.getHeight()),p=f.length;if(!p&&u)return c[0].coord<0?d[1]?d[1]:c[u-1].color:d[0]?d[0]:c[0].color;var h=10,m=f[0].coord-h,g=f[p-1].coord+h,v=g-m;if(v<.001)return"transparent";lt(f,function(_){_.offset=(_.coord-m)/v}),f.push({offset:p?f[p-1].offset:.5,color:d[1]||"transparent"}),f.unshift({offset:p?f[0].offset:.5,color:d[0]||"transparent"});var y=new sge(0,0,0,0,f,!0);return y[i]=m,y[i+"2"]=g,y}}}function Tfr(e,t,n){var r=e.get("showAllSymbol"),i=r==="auto";if(!(r&&!i)){var a=n.getAxesByScale("ordinal")[0];if(a&&!(i&&Ifr(a,t))){var o=t.mapDimension(a.dim),s={};return lt(a.getViewLabels(),function(l){var c=a.scale.getRawOrdinalNumber(l.tickValue);s[c]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function Ifr(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(Age.getSymbolSize(t,o)[e.isHorizontal()?1:0]*1.5>r)return!1;return!0}function Afr(e,t){return isNaN(e)||isNaN(t)}function Rfr(e){for(var t=e.length/2;t>0&&Afr(e[t*2-2],e[t*2-1]);t--);return t-1}function A8e(e,t){return[e[t*2],e[t*2+1]]}function Nfr(e,t,n){for(var r=e.length/2,i=n==="x"?0:1,a,o,s=0,l=-1,c=0;c<r;c++)if(o=e[c*2+i],!(isNaN(o)||isNaN(e[c*2+1-i]))){if(c===0){a=o;continue}if(a<=t&&o>=t||a>=t&&o<=t){l=c;break}s=c,a=o}return{range:[s,l],t:(t-a)/(o-a)}}function Oot(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<sv.length;t++)if(e.get([sv[t],"endLabel","show"]))return!0;return!1}function Lee(e,t,n,r){if(Efr(t,"cartesian2d")){var i=r.getModel("endLabel"),a=i.get("valueAnimation"),o=r.getData(),s={lastFrameIndex:0},l=Oot(r)?function(p,h){e._endLabelOnDuring(p,h,o,s,a,i,t)}:null,c=t.getBaseAxis().isHorizontal(),u=Rot(t,n,r,function(){var p=e._endLabel;p&&n&&s.originalX!=null&&p.attr({x:s.originalX,y:s.originalY})},l);if(!r.get("clip",!0)){var d=u.shape,f=Math.max(d.width,d.height);c?(d.y-=f,d.height+=f*2):(d.x-=f,d.width+=f*2)}return l&&l(1,u),u}else return Not(t,n,r)}function Ofr(e,t){var n=t.getBaseAxis(),r=n.isHorizontal(),i=n.inverse,a=r?i?"right":"left":"center",o=r?"middle":i?"top":"bottom";return{normal:{align:e.get("align")||a,verticalAlign:e.get("verticalAlign")||o}}}var Lfr=function(e){tr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var n=new Jl,r=new ufr;this.group.add(r.group),this._symbolDraw=r,this._lineGroup=n},t.prototype.render=function(n,r,i){var a=this,o=n.coordinateSystem,s=this.group,l=n.getData(),c=n.getModel("lineStyle"),u=n.getModel("areaStyle"),d=l.getLayout("points")||[],f=o.type==="polar",p=this._coordSys,h=this._symbolDraw,m=this._polyline,g=this._polygon,v=this._lineGroup,y=!r.ssr&&n.get("animation"),_=!u.isEmpty(),S=u.get("origin"),C=wot(o,l,S),w=_&&Cfr(o,l,C),x=n.get("showSymbol"),T=n.get("connectNulls"),A=x&&!f&&Tfr(n,l,o),I=this._data;I&&I.eachItemGraphicEl(function(W,K){W.__temp&&(s.remove(W),I.setItemGraphicEl(K,null))}),x||h.remove(),s.add(v);var R=f?!1:n.get("step"),N;o&&o.getArea&&n.get("clip",!0)&&(N=o.getArea(),N.width!=null?(N.x-=.1,N.y-=.1,N.width+=.2,N.height+=.2):N.r0&&(N.r0-=.5,N.r+=.5)),this._clipShapeForSymbol=N;var P=xfr(l,o,i)||l.getVisual("style")[l.getVisual("drawType")];if(!(m&&p.type===o.type&&R===this._step))x&&h.updateData(l,{isIgnore:A,clipShape:N,disableAnimation:!0,getSymbolPoint:function(W){return[d[W*2],d[W*2+1]]}}),y&&this._initSymbolLabelAnimation(l,o,N),R&&(d=xy(d,o,R,T),w&&(w=xy(w,o,R,T))),m=this._newPolyline(d),_?g=this._newPolygon(d,w):g&&(v.remove(g),g=this._polygon=null),f||this._initOrUpdateEndLabel(n,o,sC(P)),v.setClipPath(Lee(this,o,!0,n));else{_&&!g?g=this._newPolygon(d,w):g&&!_&&(v.remove(g),g=this._polygon=null),f||this._initOrUpdateEndLabel(n,o,sC(P));var L=v.getClipPath();if(L){var $=Lee(this,o,!1,n);i4(L,{shape:$.shape},n)}else v.setClipPath(Lee(this,o,!0,n));x&&h.updateData(l,{isIgnore:A,clipShape:N,disableAnimation:!0,getSymbolPoint:function(W){return[d[W*2],d[W*2+1]]}}),(!w8e(this._stackedOnPoints,w)||!w8e(this._points,d))&&(y?this._doUpdateAnimation(l,w,o,i,R,S,T):(R&&(d=xy(d,o,R,T),w&&(w=xy(w,o,R,T))),m.setShape({points:d}),g&&g.setShape({points:d,stackedOnPoints:w})))}var D=n.getModel("emphasis"),z=D.get("focus"),U=D.get("blurScope"),H=D.get("disabled");if(m.useStyle(Hi(c.getLineStyle(),{fill:"none",stroke:P,lineJoin:"bevel"})),POe(m,n,"lineStyle"),m.style.lineWidth>0&&n.get(["emphasis","lineStyle","width"])==="bolder"){var M=m.getState("emphasis").style;M.lineWidth=+m.style.lineWidth+1}vo(m).seriesIndex=n.seriesIndex,wse(m,z,U,H);var B=I8e(n.get("smooth")),k=n.get("smoothMonotone");if(m.setShape({smooth:B,smoothMonotone:k,connectNulls:T}),g){var F=l.getCalculationInfo("stackedOnSeries"),G=0;g.useStyle(Hi(u.getAreaStyle(),{fill:P,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),F&&(G=I8e(F.get("smooth"))),g.setShape({smooth:B,stackedOnSmooth:G,smoothMonotone:k,connectNulls:T}),POe(g,n,"areaStyle"),vo(g).seriesIndex=n.seriesIndex,wse(g,z,U,H)}var q=function(W){a._changePolyState(W)};l.eachItemGraphicEl(function(W){W&&(W.onHoverStateChange=q)}),this._polyline.onHoverStateChange=q,this._data=l,this._coordSys=o,this._stackedOnPoints=w,this._points=d,this._step=R,this._valueOrigin=S,n.get("triggerLineEvent")&&(this.packEventData(n,m),g&&this.packEventData(n,g))},t.prototype.packEventData=function(n,r){vo(r).eventData={componentType:"series",componentSubType:"line",componentIndex:n.componentIndex,seriesIndex:n.seriesIndex,seriesName:n.name,seriesType:"line"}},t.prototype.highlight=function(n,r,i,a){var o=n.getData(),s=aC(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),c=o.getItemGraphicEl(s);if(!c){var u=l[s*2],d=l[s*2+1];if(isNaN(u)||isNaN(d)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(u,d))return;var f=n.get("zlevel")||0,p=n.get("z")||0;c=new Age(o,s),c.x=u,c.y=d,c.setZ(f,p);var h=c.getSymbolPath().getTextContent();h&&(h.zlevel=f,h.z=p,h.z2=this._polyline.z2+1),c.__temp=!0,o.setItemGraphicEl(s,c),c.stopSymbolAnimation(!0),this.group.add(c)}c.highlight()}else Zg.prototype.highlight.call(this,n,r,i,a)},t.prototype.downplay=function(n,r,i,a){var o=n.getData(),s=aC(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Zg.prototype.downplay.call(this,n,r,i,a)},t.prototype._changePolyState=function(n){var r=this._polygon;AOe(this._polyline,n),r&&AOe(r,n)},t.prototype._newPolyline=function(n){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new mfr({shape:{points:n},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(r),this._polyline=r,r},t.prototype._newPolygon=function(n,r){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new vfr({shape:{points:n,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(n,r,i){var a,o,s=r.getBaseAxis(),l=s.inverse;r.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):r.type==="polar"&&(a=s.dim==="angle",o=!0);var c=n.hostModel,u=c.get("animationDuration");hi(u)&&(u=u(null));var d=c.get("animationDelay")||0,f=hi(d)?d(null):d;n.eachItemGraphicEl(function(p,h){var m=p;if(m){var g=[p.x,p.y],v=void 0,y=void 0,_=void 0;if(i)if(o){var S=i,C=r.pointToCoord(g);a?(v=S.startAngle,y=S.endAngle,_=-C[1]/180*Math.PI):(v=S.r0,y=S.r,_=C[0])}else{var w=i;a?(v=w.x,y=w.x+w.width,_=p.x):(v=w.y+w.height,y=w.y,_=p.y)}var x=y===v?0:(_-v)/(y-v);l&&(x=1-x);var T=hi(d)?d(h):u*x+f,A=m.getSymbolPath(),I=A.getTextContent();m.attr({scaleX:0,scaleY:0}),m.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),I&&I.animateFrom({style:{opacity:0}},{duration:300,delay:T}),A.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(n,r,i){var a=n.getModel("endLabel");if(Oot(n)){var o=n.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var c=this._endLabel;c||(c=this._endLabel=new Du({z2:200}),c.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var u=Rfr(l);u>=0&&(pge(s,hge(n,"endLabel"),{inheritColor:i,labelFetcher:n,labelDataIndex:u,defaultText:function(d,f,p){return p!=null?lfr(o,p):Cot(o,d)},enableTextSetter:!0},Ofr(a,r)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(n,r,i,a,o,s,l){var c=this._endLabel,u=this._polyline;if(c){n<1&&a.originalX==null&&(a.originalX=c.x,a.originalY=c.y);var d=i.getLayout("points"),f=i.hostModel,p=f.get("connectNulls"),h=s.get("precision"),m=s.get("distance")||0,g=l.getBaseAxis(),v=g.isHorizontal(),y=g.inverse,_=r.shape,S=y?v?_.x:_.y+_.height:v?_.x+_.width:_.y,C=(v?m:0)*(y?-1:1),w=(v?0:-m)*(y?-1:1),x=v?"x":"y",T=Nfr(d,S,x),A=T.range,I=A[1]-A[0],R=void 0;if(I>=1){if(I>1&&!p){var N=A8e(d,A[0]);c.attr({x:N[0]+C,y:N[1]+w}),o&&(R=f.getRawValue(A[0]))}else{var N=u.getPointOn(S,x);N&&c.attr({x:N[0]+C,y:N[1]+w});var P=f.getRawValue(A[0]),L=f.getRawValue(A[1]);o&&(R=Vlr(i,h,P,L,T.t))}a.lastFrameIndex=A[0]}else{var $=n===1||a.lastFrameIndex>0?A[0]:0,N=A8e(d,$);o&&(R=f.getRawValue($)),c.attr({x:N[0]+C,y:N[1]+w})}if(o){var D=mge(c);typeof D.setLabelText=="function"&&D.setLabelText(R)}}},t.prototype._doUpdateAnimation=function(n,r,i,a,o,s,l){var c=this._polyline,u=this._polygon,d=n.hostModel,f=hfr(this._data,n,this._stackedOnPoints,r,this._coordSys,i,this._valueOrigin),p=f.current,h=f.stackedOnCurrent,m=f.next,g=f.stackedOnNext;if(o&&(p=xy(f.current,i,o,l),h=xy(f.stackedOnCurrent,i,o,l),m=xy(f.next,i,o,l),g=xy(f.stackedOnNext,i,o,l)),T8e(p,m)>3e3||u&&T8e(h,g)>3e3){c.stopAnimation(),c.setShape({points:m}),u&&(u.stopAnimation(),u.setShape({points:m,stackedOnPoints:g}));return}c.shape.__points=f.current,c.shape.points=p;var v={shape:{points:m}};f.current!==p&&(v.shape.__points=f.next),c.stopAnimation(),h_(c,v,d),u&&(u.setShape({points:p,stackedOnPoints:h}),u.stopAnimation(),h_(u,{shape:{stackedOnPoints:g}},d),c.shape.points!==u.shape.points&&(u.shape.points=c.shape.points));for(var y=[],_=f.status,S=0;S<_.length;S++){var C=_[S].cmd;if(C==="="){var w=n.getItemGraphicEl(_[S].idx1);w&&y.push({el:w,ptIdx:S})}}c.animators&&c.animators.length&&c.animators[0].during(function(){u&&u.dirtyShape();for(var x=c.shape.__points,T=0;T<y.length;T++){var A=y[T].el,I=y[T].ptIdx*2;A.x=x[I],A.y=x[I+1],A.markRedraw()}})},t.prototype.remove=function(n){var r=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(a,o){a.__temp&&(r.remove(a),i.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(Zg);function Pfr(e,t){return{seriesType:e,plan:Rge(),reset:function(n){var r=n.getData(),i=n.coordinateSystem;if(n.pipelineContext,!!i){var a=Nr(i.dimensions,function(d){return r.mapDimension(d)}).slice(0,2),o=a.length,s=r.getCalculationInfo("stackResultDimension");B3(r,a[0])&&(a[0]=s),B3(r,a[1])&&(a[1]=s);var l=r.getStore(),c=r.getDimensionIndex(a[0]),u=r.getDimensionIndex(a[1]);return o&&{progress:function(d,f){for(var p=d.end-d.start,h=$1(p*o),m=[],g=[],v=d.start,y=0;v<d.end;v++){var _=void 0;if(o===1){var S=l.get(c,v);_=i.dataToPoint(S,null,g)}else m[0]=l.get(c,v),m[1]=l.get(u,v),_=i.dataToPoint(m,null,g);h[y++]=_[0],h[y++]=_[1]}f.setLayout("points",h)}}}}}}var kfr={average:function(e){for(var t=0,n=0,r=0;r<e.length;r++)isNaN(e[r])||(t+=e[r],n++);return n===0?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},minmax:function(e){for(var t=-1/0,n=-1/0,r=0;r<e.length;r++){var i=e[r],a=Math.abs(i);a>t&&(t=a,n=i)}return isFinite(n)?n:NaN},nearest:function(e){return e[0]}},Mfr=function(e){return Math.round(e.length/2)};function Dfr(e){return{seriesType:e,reset:function(t,n,r){var i=t.getData(),a=t.get("sampling"),o=t.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),c=o.getOtherAxis(l),u=l.getExtent(),d=r.getDevicePixelRatio(),f=Math.abs(u[1]-u[0])*(d||1),p=Math.round(s/f);if(isFinite(p)&&p>1){a==="lttb"&&t.setData(i.lttbDownSample(i.mapDimension(c.dim),1/p));var h=void 0;yr(a)?h=kfr[a]:hi(a)&&(h=a),h&&t.setData(i.downSample(i.mapDimension(c.dim),1/p,h,Mfr))}}}}}function Lot(e){e.registerChartView(Lfr),e.registerSeriesModel(sfr),e.registerLayout(Pfr("line")),e.registerVisual({seriesType:"line",reset:function(t){var n=t.getData(),r=t.getModel("lineStyle").getLineStyle();r&&!r.stroke&&(r.stroke=n.getVisual("style").fill),n.setVisual("legendLineStyle",r)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Dfr("line"))}var $fr="__ec_stack_";function Nge(e){return e.get("stack")||$fr+e.seriesIndex}function Oge(e){return e.dim+e.index}function Pot(e,t){var n=[];return t.eachSeriesByType(e,function(r){Mot(r)&&n.push(r)}),n}function Ffr(e){var t={};lt(e,function(l){var c=l.coordinateSystem,u=c.getBaseAxis();if(!(u.type!=="time"&&u.type!=="value"))for(var d=l.getData(),f=u.dim+"_"+u.index,p=d.getDimensionIndex(d.mapDimension(u.dim)),h=d.getStore(),m=0,g=h.count();m<g;++m){var v=h.get(p,m);t[f]?t[f].push(v):t[f]=[v]}});var n={};for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];if(i){i.sort(function(l,c){return l-c});for(var a=null,o=1;o<i.length;++o){var s=i[o]-i[o-1];s>0&&(a=a===null?s:Math.min(a,s))}n[r]=a}}return n}function kot(e){var t=Ffr(e),n=[];return lt(e,function(r){var i=r.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,c=t[l],u=Math.abs(o[1]-o[0]),d=a.scale.getExtent(),f=Math.abs(d[1]-d[0]);s=c?u/f*c:u}else{var p=r.getData();s=Math.abs(o[1]-o[0])/p.count()}var h=vc(r.get("barWidth"),s),m=vc(r.get("barMaxWidth"),s),g=vc(r.get("barMinWidth")||(Dot(r)?.5:1),s),v=r.get("barGap"),y=r.get("barCategoryGap");n.push({bandWidth:s,barWidth:h,barMaxWidth:m,barMinWidth:g,barGap:v,barCategoryGap:y,axisKey:Oge(a),stackId:Nge(r)})}),Bfr(n)}function Bfr(e){var t={};lt(e,function(r,i){var a=r.axisKey,o=r.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[a]=s;var c=r.stackId;l[c]||s.autoWidthCount++,l[c]=l[c]||{width:0,maxWidth:0};var u=r.barWidth;u&&!l[c].width&&(l[c].width=u,u=Math.min(s.remainedWidth,u),s.remainedWidth-=u);var d=r.barMaxWidth;d&&(l[c].maxWidth=d);var f=r.barMinWidth;f&&(l[c].minWidth=f);var p=r.barGap;p!=null&&(s.gap=p);var h=r.barCategoryGap;h!=null&&(s.categoryGap=h)});var n={};return lt(t,function(r,i){n[i]={};var a=r.stacks,o=r.bandWidth,s=r.categoryGap;if(s==null){var l=rs(a).length;s=Math.max(35-l*4,15)+"%"}var c=vc(s,o),u=vc(r.gap,1),d=r.remainedWidth,f=r.autoWidthCount,p=(d-c)/(f+(f-1)*u);p=Math.max(p,0),lt(a,function(v){var y=v.maxWidth,_=v.minWidth;if(v.width){var S=v.width;y&&(S=Math.min(S,y)),_&&(S=Math.max(S,_)),v.width=S,d-=S+u*S,f--}else{var S=p;y&&y<S&&(S=Math.min(y,d)),_&&_>S&&(S=_),S!==p&&(v.width=S,d-=S+u*S,f--)}}),p=(d-c)/(f+(f-1)*u),p=Math.max(p,0);var h=0,m;lt(a,function(v,y){v.width||(v.width=p),m=v,h+=v.width*(1+u)}),m&&(h-=m.width*u);var g=-h/2;lt(a,function(v,y){n[i][y]=n[i][y]||{bandWidth:o,offset:g,width:v.width},g+=v.width*(1+u)})}),n}function jfr(e,t,n){if(e&&t){var r=e[Oge(t)];return r!=null&&n!=null?r[Nge(n)]:r}}function vOr(e,t){var n=Pot(e,t),r=kot(n);lt(n,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=Nge(i),c=r[Oge(s)][l],u=c.offset,d=c.width;a.setLayout({bandWidth:c.bandWidth,offset:u,size:d})})}function yOr(e){return{seriesType:e,plan:Rge(),reset:function(t){if(Mot(t)){var n=t.getData(),r=t.coordinateSystem,i=r.getBaseAxis(),a=r.getOtherAxis(i),o=n.getDimensionIndex(n.mapDimension(a.dim)),s=n.getDimensionIndex(n.mapDimension(i.dim)),l=t.get("showBackground",!0),c=n.mapDimension(a.dim),u=n.getCalculationInfo("stackResultDimension"),d=B3(n,c)&&!!n.getCalculationInfo("stackedOnSeries"),f=a.isHorizontal(),p=zfr(i,a),h=Dot(t),m=t.get("barMinHeight")||0,g=u&&n.getDimensionIndex(u),v=n.getLayout("size"),y=n.getLayout("offset");return{progress:function(_,S){for(var C=_.count,w=h&&$1(C*3),x=h&&l&&$1(C*3),T=h&&$1(C),A=r.master.getRect(),I=f?A.width:A.height,R,N=S.getStore(),P=0;(R=_.next())!=null;){var L=N.get(d?g:o,R),$=N.get(s,R),D=p,z=void 0;d&&(z=+L-N.get(o,R));var U=void 0,H=void 0,M=void 0,B=void 0;if(f){var k=r.dataToPoint([L,$]);if(d){var F=r.dataToPoint([z,$]);D=F[0]}U=D,H=k[1]+y,M=k[0]-D,B=v,Math.abs(M)<m&&(M=(M<0?-1:1)*m)}else{var k=r.dataToPoint([$,L]);if(d){var F=r.dataToPoint([$,z]);D=F[1]}U=k[0]+y,H=D,M=v,B=k[1]-D,Math.abs(B)<m&&(B=(B<=0?-1:1)*m)}h?(w[P]=U,w[P+1]=H,w[P+2]=f?M:B,x&&(x[P]=f?A.x:U,x[P+1]=f?H:A.y,x[P+2]=I),T[R]=R):S.setItemLayout(R,{x:U,y:H,width:M,height:B}),P+=3}h&&S.setLayout({largePoints:w,largeDataIndices:T,largeBackgroundPoints:x,valueAxisHorizontal:f})}}}}}}function Mot(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function Dot(e){return e.pipelineContext&&e.pipelineContext.large}function zfr(e,t){var n=t.model.get("startValue");return n||(n=0),t.toGlobalCoord(t.dataToCoord(t.type==="log"?n>0?n:1:n))}var cB="\0__throttleOriginMethod",R8e="\0__throttleRate",N8e="\0__throttleType";function $ot(e,t,n){var r,i=0,a=0,o=null,s,l,c,u;t=t||0;function d(){a=new Date().getTime(),o=null,e.apply(l,c||[])}var f=function(){for(var p=[],h=0;h<arguments.length;h++)p[h]=arguments[h];r=new Date().getTime(),l=this,c=p;var m=u||t,g=u||n;u=null,s=r-(g?i:a)-m,clearTimeout(o),g?o=setTimeout(d,m):s>=0?d():o=setTimeout(d,-s),i=r};return f.clear=function(){o&&(clearTimeout(o),o=null)},f.debounceNextCall=function(p){u=p},f}function CH(e,t,n,r){var i=e[t];if(i){var a=i[cB]||i,o=i[N8e],s=i[R8e];if(s!==n||o!==r){if(n==null||!r)return e[t]=a;i=e[t]=$ot(a,n,r==="debounce"),i[cB]=a,i[N8e]=r,i[R8e]=n}return i}}function uB(e,t){var n=e[t];n&&n[cB]&&(n.clear&&n.clear(),e[t]=n[cB])}function Yw(e,t,n,r,i){var a=e+t;n.isSilent(a)||r.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,c=i.selected,u=0;u<c.length;u++)if(c[u].seriesIndex===s){var d=o.getData(),f=aC(d,i.fromActionPayload);n.trigger(a,{type:a,seriesId:o.id,name:ar(f)?d.getName(f[0]):d.getName(f),selected:yr(l)?l:Vn({},l)})}})}function Ufr(e,t,n){e.on("selectchanged",function(r){var i=n.getModel();r.isFromClick?(Yw("map","selectchanged",t,i,r),Yw("pie","selectchanged",t,i,r)):r.fromAction==="select"?(Yw("map","selected",t,i,r),Yw("pie","selected",t,i,r)):r.fromAction==="unselect"&&(Yw("map","unselected",t,i,r),Yw("pie","unselected",t,i,r))})}function Hfr(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if(!r.defaultAttr.ignore){var i=r.label,a=i.getComputedTransform(),o=i.getBoundingRect(),s=!a||a[1]<1e-5&&a[2]<1e-5,l=i.style.margin||0,c=o.clone();c.applyTransform(a),c.x-=l/2,c.y-=l/2,c.width+=l,c.height+=l;var u=s?new rB(o,a):null;t.push({label:i,labelLine:r.labelLine,rect:c,localRect:o,obb:u,priority:r.priority,defaultAttr:r.defaultAttr,layoutOption:r.computedLayoutOption,axisAligned:s,transform:a})}}return t}function Vfr(e){var t=[];e.sort(function(m,g){return g.priority-m.priority});var n=new Na(0,0,0,0);function r(m){if(!m.ignore){var g=m.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}m.ignore=!0}for(var i=0;i<e.length;i++){var a=e[i],o=a.axisAligned,s=a.localRect,l=a.transform,c=a.label,u=a.labelLine;n.copy(a.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var d=a.obb,f=!1,p=0;p<t.length;p++){var h=t[p];if(n.intersect(h.rect)){if(o&&h.axisAligned){f=!0;break}if(h.obb||(h.obb=new rB(h.localRect,h.transform)),d||(d=new rB(s,l)),d.intersect(h.obb)){f=!0;break}}}f?(r(c),u&&r(u)):(c.attr("ignore",a.defaultAttr.ignore),u&&u.attr("ignore",a.defaultAttr.labelGuideIgnore),t.push(a))}}var Kw=function(){function e(t,n){this.target=t,this.topTarget=n&&n.topTarget}return e}(),Gfr=function(){function e(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(t){for(var n=t.target;n&&!n.draggable;)n=n.parent||n.__hostTarget;n&&(this._draggingTarget=n,n.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Kw(n,t),"dragstart",t.event))},e.prototype._drag=function(t){var n=this._draggingTarget;if(n){var r=t.offsetX,i=t.offsetY,a=r-this._x,o=i-this._y;this._x=r,this._y=i,n.drift(a,o,t),this.handler.dispatchToElement(new Kw(n,t),"drag",t.event);var s=this.handler.findHover(r,i,n).target,l=this._dropTarget;this._dropTarget=s,n!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Kw(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new Kw(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var n=this._draggingTarget;n&&(n.dragging=!1),this.handler.dispatchToElement(new Kw(n,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Kw(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e}(),qfr=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Pee=[],Wfr=ci.browser.firefox&&+ci.browser.version.split(".")[0]<39;function Bse(e,t,n,r){return n=n||{},r?O8e(e,t,n):Wfr&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX!=null?(n.zrX=t.offsetX,n.zrY=t.offsetY):O8e(e,t,n),n}function O8e(e,t,n){if(ci.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(tot(e)){var a=e.getBoundingClientRect();n.zrX=r-a.left,n.zrY=i-a.top;return}else if(Pse(Pee,e,r,i)){n.zrX=Pee[0],n.zrY=Pee[1];return}}n.zrX=n.zrY=0}function Lge(e){return e||window.event}function lp(e,t,n){if(t=Lge(t),t.zrX!=null)return t;var r=t.type,i=r&&r.indexOf("touch")>=0;if(i){var o=r!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&Bse(e,o,t,n)}else{Bse(e,t,t,n);var a=Yfr(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&qfr.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function Yfr(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(n==null||r==null)return t;var i=Math.abs(r!==0?r:n),a=r>0?-1:r<0?1:n>0?-1:1;return 3*i*a}function Kfr(e,t,n,r){e.addEventListener(t,n,r)}function Xfr(e,t,n,r){e.removeEventListener(t,n,r)}var z3=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function L8e(e){return e.which===2||e.which===3}var Zfr=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,n,r){return this._doTrack(t,n,r),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,n,r){var i=t.touches;if(i){for(var a={points:[],touches:[],target:n,event:t},o=0,s=i.length;o<s;o++){var l=i[o],c=Bse(r,l,{});a.points.push([c.zrX,c.zrY]),a.touches.push(l)}this._track.push(a)}},e.prototype._recognize=function(t){for(var n in kee)if(kee.hasOwnProperty(n)){var r=kee[n](this._track,t);if(r)return r}},e}();function P8e(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function Qfr(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var kee={pinch:function(e,t){var n=e.length;if(n){var r=(e[n-1]||{}).points,i=(e[n-2]||{}).points||r;if(i&&i.length>1&&r&&r.length>1){var a=P8e(r)/P8e(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=Qfr(r);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}},Fot="silent";function Jfr(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:epr}}function epr(){z3(this.event)}var tpr=function(e){tr(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.handler=null,n}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Om),BI=function(){function e(t,n){this.x=t,this.y=n}return e}(),npr=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Mee=new Na(0,0,0,0),Bot=function(e){tr(t,e);function t(n,r,i,a,o){var s=e.call(this)||this;return s._hovered=new BI(0,0),s.storage=n,s.painter=r,s.painterRoot=a,s._pointerSize=o,i=i||new tpr,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new Gfr(s),s}return t.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(lt(npr,function(r){n.on&&n.on(r,this[r],this)},this),n.handler=this),this.proxy=n},t.prototype.mousemove=function(n){var r=n.zrX,i=n.zrY,a=jot(this,r,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new BI(r,i):this.findHover(r,i),c=l.target,u=this.proxy;u.setCursor&&u.setCursor(c?c.cursor:"default"),s&&c!==s&&this.dispatchToElement(o,"mouseout",n),this.dispatchToElement(l,"mousemove",n),c&&c!==s&&this.dispatchToElement(l,"mouseover",n)},t.prototype.mouseout=function(n){var r=n.zrEventControl;r!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",n),r!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:n})},t.prototype.resize=function(){this._hovered=new BI(0,0)},t.prototype.dispatch=function(n,r){var i=this[n];i&&i.call(this,r)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(n){var r=this.proxy;r.setCursor&&r.setCursor(n)},t.prototype.dispatchToElement=function(n,r,i){n=n||{};var a=n.target;if(!(a&&a.silent)){for(var o="on"+r,s=Jfr(r,n,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(r,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(r,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(r,s)}))}},t.prototype.findHover=function(n,r,i){var a=this.storage.getDisplayList(),o=new BI(n,r);if(k8e(a,o,n,r,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,c=l/2,u=new Na(n-c,r-c,l,l),d=a.length-1;d>=0;d--){var f=a[d];f!==i&&!f.ignore&&!f.ignoreCoarsePointer&&(!f.parent||!f.parent.ignoreCoarsePointer)&&(Mee.copy(f.getBoundingRect()),f.transform&&Mee.applyTransform(f.transform),Mee.intersect(u)&&s.push(f))}if(s.length)for(var p=4,h=Math.PI/12,m=Math.PI*2,g=0;g<c;g+=p)for(var v=0;v<m;v+=h){var y=n+g*Math.cos(v),_=r+g*Math.sin(v);if(k8e(s,o,y,_,i),o.target)return o}}return o},t.prototype.processGesture=function(n,r){this._gestureMgr||(this._gestureMgr=new Zfr);var i=this._gestureMgr;r==="start"&&i.clear();var a=i.recognize(n,this.findHover(n.zrX,n.zrY,null).target,this.proxy.dom);if(r==="end"&&i.clear(),a){var o=a.type;n.gestureEvent=o;var s=new BI;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t}(Om);lt(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){Bot.prototype[e]=function(t){var n=t.zrX,r=t.zrY,i=jot(this,n,r),a,o;if((e!=="mouseup"||!i)&&(a=this.findHover(n,r),o=a.target),e==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e==="mouseup")this._upEl=o;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||_sr(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function rpr(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){for(var r=e,i=void 0,a=!1;r;){if(r.ignoreClip&&(a=!0),!a){var o=r.getClipPath();if(o&&!o.contain(t,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s||r.parent}return i?Fot:!0}return!1}function k8e(e,t,n,r,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=rpr(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==Fot)){t.target=o;break}}}function jot(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var zot=32,jI=7;function ipr(e){for(var t=0;e>=zot;)t|=e&1,e>>=1;return e+t}function M8e(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i<n&&r(e[i],e[i-1])<0;)i++;apr(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function apr(e,t,n){for(n--;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}function D8e(e,t,n,r,i){for(r===t&&r++;r<n;r++){for(var a=e[r],o=t,s=r,l;o<s;)l=o+s>>>1,i(a,e[l])<0?s=l:o=l+1;var c=r-o;switch(c){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;c>0;)e[o+c]=e[o+c-1],c--}e[o]=a}}function Dee(e,t,n,r,i,a){var o=0,s=0,l=1;if(a(e,t[n+i])>0){for(s=r-i;l<s&&a(e,t[n+i+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;l<s&&a(e,t[n+i-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var c=o;o=i-l,l=i-c}for(o++;o<l;){var u=o+(l-o>>>1);a(e,t[n+u])>0?o=u+1:l=u}return l}function $ee(e,t,n,r,i,a){var o=0,s=0,l=1;if(a(e,t[n+i])<0){for(s=i+1;l<s&&a(e,t[n+i-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var c=o;o=i-l,l=i-c}else{for(s=r-i;l<s&&a(e,t[n+i+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o<l;){var u=o+(l-o>>>1);a(e,t[n+u])<0?l=u:o=u+1}return l}function opr(e,t){var n=jI,r,i,a=0,o=[];r=[],i=[];function s(p,h){r[a]=p,i[a]=h,a+=1}function l(){for(;a>1;){var p=a-2;if(p>=1&&i[p-1]<=i[p]+i[p+1]||p>=2&&i[p-2]<=i[p]+i[p-1])i[p-1]<i[p+1]&&p--;else if(i[p]>i[p+1])break;u(p)}}function c(){for(;a>1;){var p=a-2;p>0&&i[p-1]<i[p+1]&&p--,u(p)}}function u(p){var h=r[p],m=i[p],g=r[p+1],v=i[p+1];i[p]=m+v,p===a-3&&(r[p+1]=r[p+2],i[p+1]=i[p+2]),a--;var y=$ee(e[g],e,h,m,0,t);h+=y,m-=y,m!==0&&(v=Dee(e[h+m-1],e,g,v,v-1,t),v!==0&&(m<=v?d(h,m,g,v):f(h,m,g,v)))}function d(p,h,m,g){var v=0;for(v=0;v<h;v++)o[v]=e[p+v];var y=0,_=m,S=p;if(e[S++]=e[_++],--g===0){for(v=0;v<h;v++)e[S+v]=o[y+v];return}if(h===1){for(v=0;v<g;v++)e[S+v]=e[_+v];e[S+g]=o[y];return}for(var C=n,w,x,T;;){w=0,x=0,T=!1;do if(t(e[_],o[y])<0){if(e[S++]=e[_++],x++,w=0,--g===0){T=!0;break}}else if(e[S++]=o[y++],w++,x=0,--h===1){T=!0;break}while((w|x)<C);if(T)break;do{if(w=$ee(e[_],o,y,h,0,t),w!==0){for(v=0;v<w;v++)e[S+v]=o[y+v];if(S+=w,y+=w,h-=w,h<=1){T=!0;break}}if(e[S++]=e[_++],--g===0){T=!0;break}if(x=Dee(o[y],e,_,g,0,t),x!==0){for(v=0;v<x;v++)e[S+v]=e[_+v];if(S+=x,_+=x,g-=x,g===0){T=!0;break}}if(e[S++]=o[y++],--h===1){T=!0;break}C--}while(w>=jI||x>=jI);if(T)break;C<0&&(C=0),C+=2}if(n=C,n<1&&(n=1),h===1){for(v=0;v<g;v++)e[S+v]=e[_+v];e[S+g]=o[y]}else{if(h===0)throw new Error;for(v=0;v<h;v++)e[S+v]=o[y+v]}}function f(p,h,m,g){var v=0;for(v=0;v<g;v++)o[v]=e[m+v];var y=p+h-1,_=g-1,S=m+g-1,C=0,w=0;if(e[S--]=e[y--],--h===0){for(C=S-(g-1),v=0;v<g;v++)e[C+v]=o[v];return}if(g===1){for(S-=h,y-=h,w=S+1,C=y+1,v=h-1;v>=0;v--)e[w+v]=e[C+v];e[S]=o[_];return}for(var x=n;;){var T=0,A=0,I=!1;do if(t(o[_],e[y])<0){if(e[S--]=e[y--],T++,A=0,--h===0){I=!0;break}}else if(e[S--]=o[_--],A++,T=0,--g===1){I=!0;break}while((T|A)<x);if(I)break;do{if(T=h-$ee(o[_],e,p,h,h-1,t),T!==0){for(S-=T,y-=T,h-=T,w=S+1,C=y+1,v=T-1;v>=0;v--)e[w+v]=e[C+v];if(h===0){I=!0;break}}if(e[S--]=o[_--],--g===1){I=!0;break}if(A=g-Dee(e[y],o,0,g,g-1,t),A!==0){for(S-=A,_-=A,g-=A,w=S+1,C=_+1,v=0;v<A;v++)e[w+v]=o[C+v];if(g<=1){I=!0;break}}if(e[S--]=e[y--],--h===0){I=!0;break}x--}while(T>=jI||A>=jI);if(I)break;x<0&&(x=0),x+=2}if(n=x,n<1&&(n=1),g===1){for(S-=h,y-=h,w=S+1,C=y+1,v=h-1;v>=0;v--)e[w+v]=e[C+v];e[S]=o[_]}else{if(g===0)throw new Error;for(C=S-(g-1),v=0;v<g;v++)e[C+v]=o[v]}}return{mergeRuns:l,forceMergeRuns:c,pushRun:s}}function eD(e,t,n,r){n||(n=0),r||(r=e.length);var i=r-n;if(!(i<2)){var a=0;if(i<zot){a=M8e(e,n,r,t),D8e(e,n,r,n+a,t);return}var o=opr(e,t),s=ipr(i);do{if(a=M8e(e,n,r,t),a<s){var l=i;l>s&&(l=s),D8e(e,n,n+l,n+a,t),a=l}o.pushRun(n,a),o.mergeRuns(),i-=a,n+=a}while(i!==0);o.forceMergeRuns()}}var $8e=!1;function Fee(){$8e||($8e=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function F8e(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var spr=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=F8e}return e.prototype.traverse=function(t,n){for(var r=0;r<this._roots.length;r++)this._roots[r].traverse(t,n)},e.prototype.getDisplayList=function(t,n){n=n||!1;var r=this._displayList;return(t||!r.length)&&this.updateDisplayList(n),r},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var n=this._roots,r=this._displayList,i=0,a=n.length;i<a;i++)this._updateAndAddDisplayable(n[i],null,t);r.length=this._displayListLen,eD(r,F8e)},e.prototype._updateAndAddDisplayable=function(t,n,r){if(!(t.ignore&&!r)){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)n=null;else if(i){n?n=n.slice():n=[];for(var a=i,o=t;a;)a.parent=o,a.updateTransform(),n.push(a),o=a,a=a.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var c=s[l];t.__dirty&&(c.__dirty|=bf),this._updateAndAddDisplayable(c,n,r)}t.__dirty=0}else{var u=t;n&&n.length?u.__clipPaths=n:u.__clipPaths&&u.__clipPaths.length>0&&(u.__clipPaths=[]),isNaN(u.z)&&(Fee(),u.z=0),isNaN(u.z2)&&(Fee(),u.z2=0),isNaN(u.zlevel)&&(Fee(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var d=t.getDecalElement&&t.getDecalElement();d&&this._updateAndAddDisplayable(d,n,r);var f=t.getTextGuideLine();f&&this._updateAndAddDisplayable(f,n,r);var p=t.getTextContent();p&&this._updateAndAddDisplayable(p,n,r)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var n=0,r=t.length;n<r;n++)this.delRoot(t[n]);return}var i=ja(this._roots,t);i>=0&&this._roots.splice(i,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),dB;dB=ci.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};function o5(){return new Date().getTime()}var lpr=function(e){tr(t,e);function t(n){var r=e.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,n=n||{},r.stage=n.stage||{},r}return t.prototype.addClip=function(n){n.animation&&this.removeClip(n),this._head?(this._tail.next=n,n.prev=this._tail,n.next=null,this._tail=n):this._head=this._tail=n,n.animation=this},t.prototype.addAnimator=function(n){n.animation=this;var r=n.getClip();r&&this.addClip(r)},t.prototype.removeClip=function(n){if(n.animation){var r=n.prev,i=n.next;r?r.next=i:this._head=i,i?i.prev=r:this._tail=r,n.next=n.prev=n.animation=null}},t.prototype.removeAnimator=function(n){var r=n.getClip();r&&this.removeClip(r),n.animation=null},t.prototype.update=function(n){for(var r=o5()-this._pausedTime,i=r-this._time,a=this._head;a;){var o=a.next,s=a.step(r,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=r,n||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var n=this;this._running=!0;function r(){n._running&&(dB(r),!n._paused&&n.update())}dB(r)},t.prototype.start=function(){this._running||(this._time=o5(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=o5(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=o5()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var n=this._head;n;){var r=n.next;n.prev=n.next=n.animation=null,n=r}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(n,r){r=r||{},this.start();var i=new Kme(n,r.loop);return this.addAnimator(i),i},t}(Om),cpr=300,Bee=ci.domSupported,jee=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=Nr(e,function(i){var a=i.replace("mouse","pointer");return n.hasOwnProperty(a)?a:i});return{mouse:e,touch:t,pointer:r}}(),B8e={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},j8e=!1;function jse(e){var t=e.pointerType;return t==="pen"||t==="touch"}function upr(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function zee(e){e&&(e.zrByTouch=!0)}function dpr(e,t){return lp(e.dom,new fpr(e,t),!0)}function Uot(e,t){for(var n=t,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var fpr=function(){function e(t,n){this.stopPropagation=Ru,this.stopImmediatePropagation=Ru,this.preventDefault=Ru,this.type=n.type,this.target=this.currentTarget=t.dom,this.pointerType=n.pointerType,this.clientX=n.clientX,this.clientY=n.clientY}return e}(),Nh={mousedown:function(e){e=lp(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=lp(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=lp(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=lp(this.dom,e);var t=e.toElement||e.relatedTarget;Uot(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){j8e=!0,e=lp(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){j8e||(e=lp(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=lp(this.dom,e),zee(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Nh.mousemove.call(this,e),Nh.mousedown.call(this,e)},touchmove:function(e){e=lp(this.dom,e),zee(e),this.handler.processGesture(e,"change"),Nh.mousemove.call(this,e)},touchend:function(e){e=lp(this.dom,e),zee(e),this.handler.processGesture(e,"end"),Nh.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<cpr&&Nh.click.call(this,e)},pointerdown:function(e){Nh.mousedown.call(this,e)},pointermove:function(e){jse(e)||Nh.mousemove.call(this,e)},pointerup:function(e){Nh.mouseup.call(this,e)},pointerout:function(e){jse(e)||Nh.mouseout.call(this,e)}};lt(["click","dblclick","contextmenu"],function(e){Nh[e]=function(t){t=lp(this.dom,t),this.trigger(e,t)}});var zse={pointermove:function(e){jse(e)||zse.mousemove.call(this,e)},pointerup:function(e){zse.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function ppr(e,t){var n=t.domHandlers;ci.pointerEventsSupported?lt(jee.pointer,function(r){tD(t,r,function(i){n[r].call(e,i)})}):(ci.touchEventsSupported&&lt(jee.touch,function(r){tD(t,r,function(i){n[r].call(e,i),upr(t)})}),lt(jee.mouse,function(r){tD(t,r,function(i){i=Lge(i),t.touching||n[r].call(e,i)})}))}function hpr(e,t){ci.pointerEventsSupported?lt(B8e.pointer,n):ci.touchEventsSupported||lt(B8e.mouse,n);function n(r){function i(a){a=Lge(a),Uot(e,a.target)||(a=dpr(e,a),t.domHandlers[r].call(e,a))}tD(t,r,i,{capture:!0})}}function tD(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,Kfr(e.domTarget,t,n,r)}function Uee(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&Xfr(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var z8e=function(){function e(t,n){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=n}return e}(),mpr=function(e){tr(t,e);function t(n,r){var i=e.call(this)||this;return i.__pointerCapturing=!1,i.dom=n,i.painterRoot=r,i._localHandlerScope=new z8e(n,Nh),Bee&&(i._globalHandlerScope=new z8e(document,zse)),ppr(i,i._localHandlerScope),i}return t.prototype.dispose=function(){Uee(this._localHandlerScope),Bee&&Uee(this._globalHandlerScope)},t.prototype.setCursor=function(n){this.dom.style&&(this.dom.style.cursor=n||"default")},t.prototype.__togglePointerCapture=function(n){if(this.__mayPointerCapture=null,Bee&&+this.__pointerCapturing^+n){this.__pointerCapturing=n;var r=this._globalHandlerScope;n?hpr(this,r):Uee(r)}},t}(Om);/*!
* ZRender, a high performance 2d drawing library.
*
* Copyright (c) 2013, Baidu Inc.
* All rights reserved.
*
* LICENSE
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
*/var nD={},Hot={};function gpr(e){delete Hot[e]}function vpr(e){if(!e)return!1;if(typeof e=="string")return KF(e,1)<vse;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=KF(t[i].color,1);return n/=r,n<vse}return!1}var ypr=function(){function e(t,n,r){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,r=r||{},this.dom=n,this.id=t;var a=new spr,o=r.renderer||"canvas";nD[o]||(o=rs(nD)[0]),r.useDirtyRect=r.useDirtyRect==null?!1:r.useDirtyRect;var s=new nD[o](n,a,r,t),l=r.ssr||s.ssrOnly;this.storage=a,this.painter=s;var c=!ci.node&&!ci.worker&&!l?new mpr(s.getViewportRoot(),s.root):null,u=r.useCoarsePointer,d=u==null||u==="auto"?ci.touchEventsSupported:!!u,f=44,p;d&&(p=ra(r.pointerSize,f)),this.handler=new Bot(a,s,c,s.root,p),this.animation=new lpr({stage:{update:l?null:function(){return i._flush(!0)}}}),l||this.animation.start()}return e.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},e.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(t,n){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,n),this.refresh())},e.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=vpr(t))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(t){this._darkMode=t},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!1)},e.prototype._flush=function(t){var n,r=o5();this._needsRefresh&&(n=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(n=!0,this.refreshHoverImmediately());var i=o5();n?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-r})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},e.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,n){if(!this._disposed)return this.handler.findHover(t,n)},e.prototype.on=function(t,n,r){return this._disposed||this.handler.on(t,n,r),this},e.prototype.off=function(t,n){this._disposed||this.handler.off(t,n)},e.prototype.trigger=function(t,n){this._disposed||this.handler.trigger(t,n)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),n=0;n<t.length;n++)t[n]instanceof Jl&&t[n].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,gpr(this.id))},e}();function U8e(e,t){var n=new ypr(Iit(),e,t);return Hot[n.id]=n,n}function bpr(e,t){nD[e]=t}var Vot="";typeof navigator<"u"&&(Vot=navigator.platform||"");var Xw="rgba(0, 0, 0, 0.2)";const _pr={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Xw,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Xw,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Xw,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Xw,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Xw,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Xw,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Vot.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var Spr=Mr();function Epr(e,t,n){var r=Spr.get(t);if(!r)return n;var i=r(e);return i?n.concat(i):n}var Zk,zI,H8e,V8e="\0_ec_inner",Cpr=1,Pge=function(e){tr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(n,r,i,a,o,s){a=a||{},this.option=null,this._theme=new Os(a),this._locale=new Os(o),this._optionManager=s},t.prototype.setOption=function(n,r,i){var a=W8e(r);this._optionManager.setOption(n,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(n,r){return this._resetOption(n,W8e(r))},t.prototype._resetOption=function(n,r){var i=!1,a=this._optionManager;if(!n||n==="recreate"){var o=a.mountOption(n==="recreate");!this.option||n==="recreate"?H8e(this,o):(this.restoreData(),this._mergeOption(o,r)),i=!0}if((n==="timeline"||n==="media")&&this.restoreData(),!n||n==="recreate"||n==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,r))}if(!n||n==="recreate"||n==="media"){var l=a.getMediaOption(this);l.length&&lt(l,function(c){i=!0,this._mergeOption(c,r)},this)}return i},t.prototype.mergeOption=function(n){this._mergeOption(n,null)},t.prototype._mergeOption=function(n,r){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=Mr(),c=r&&r.replaceMergeMainTypeMap;dur(this),lt(n,function(d,f){d!=null&&(qa.hasClass(f)?f&&(s.push(f),l.set(f,!0)):i[f]=i[f]==null?Xi(d):ba(i[f],d,!0))}),c&&c.each(function(d,f){qa.hasClass(f)&&!l.get(f)&&(s.push(f),l.set(f,!0))}),qa.topologicalTravel(s,qa.getAllClassMainTypes(),u,this);function u(d){var f=Epr(this,d,yl(n[d])),p=a.get(d),h=p?c&&c.get(d)?"replaceMerge":"normalMerge":"replaceAll",m=Olr(p,f,h);Flr(m,d,qa),i[d]=null,a.set(d,null),o.set(d,0);var g=[],v=[],y=0,_;lt(m,function(S,C){var w=S.existing,x=S.newOption;if(!x)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var T=d==="series",A=qa.getClass(d,S.keyInfo.subType,!T);if(!A)return;if(d==="tooltip"){if(_)return;_=!0}if(w&&w.constructor===A)w.name=S.keyInfo.name,w.mergeOption(x,this),w.optionUpdated(x,!1);else{var I=Vn({componentIndex:C},S.keyInfo);w=new A(x,this,this,I),Vn(w,I),S.brandNew&&(w.__requireNewView=!0),w.init(x,this,this),w.optionUpdated(null,!0)}}w?(g.push(w.option),v.push(w),y++):(g.push(void 0),v.push(void 0))},this),i[d]=g,a.set(d,v),o.set(d,y),d==="series"&&Zk(this)}this._seriesIndices||Zk(this)},t.prototype.getOption=function(){var n=Xi(this.option);return lt(n,function(r,i){if(qa.hasClass(i)){for(var a=yl(r),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!y6(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,n[i]=a}}),delete n[V8e],n},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(n){this._payload=n},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(n,r){var i=this._componentsMap.get(n);if(i){var a=i[r||0];if(a)return a;if(r==null){for(var o=0;o<i.length;o++)if(i[o])return i[o]}}},t.prototype.queryComponents=function(n){var r=n.mainType;if(!r)return[];var i=n.index,a=n.id,o=n.name,s=this._componentsMap.get(r);if(!s||!s.length)return[];var l;return i!=null?(l=[],lt(yl(i),function(c){s[c]&&l.push(s[c])})):a!=null?l=G8e("id",a,s):o!=null?l=G8e("name",o,s):l=mc(s,function(c){return!!c}),q8e(l,n)},t.prototype.findComponents=function(n){var r=n.query,i=n.mainType,a=s(r),o=a?this.queryComponents(a):mc(this._componentsMap.get(i),function(c){return!!c});return l(q8e(o,n));function s(c){var u=i+"Index",d=i+"Id",f=i+"Name";return c&&(c[u]!=null||c[d]!=null||c[f]!=null)?{mainType:i,index:c[u],id:c[d],name:c[f]}:null}function l(c){return n.filter?mc(c,n.filter):c}},t.prototype.eachComponent=function(n,r,i){var a=this._componentsMap;if(hi(n)){var o=r,s=n;a.each(function(d,f){for(var p=0;d&&p<d.length;p++){var h=d[p];h&&s.call(o,f,h,h.componentIndex)}})}else for(var l=yr(n)?a.get(n):Fr(n)?this.findComponents(n):null,c=0;l&&c<l.length;c++){var u=l[c];u&&r.call(i,u,u.componentIndex)}},t.prototype.getSeriesByName=function(n){var r=Xg(n,null);return mc(this._componentsMap.get("series"),function(i){return!!i&&r!=null&&i.name===r})},t.prototype.getSeriesByIndex=function(n){return this._componentsMap.get("series")[n]},t.prototype.getSeriesByType=function(n){return mc(this._componentsMap.get("series"),function(r){return!!r&&r.subType===n})},t.prototype.getSeries=function(){return mc(this._componentsMap.get("series"),function(n){return!!n})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(n,r){zI(this),lt(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];n.call(r,a,i)},this)},t.prototype.eachRawSeries=function(n,r){lt(this._componentsMap.get("series"),function(i){i&&n.call(r,i,i.componentIndex)})},t.prototype.eachSeriesByType=function(n,r,i){zI(this),lt(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===n&&r.call(i,o,a)},this)},t.prototype.eachRawSeriesByType=function(n,r,i){return lt(this.getSeriesByType(n),r,i)},t.prototype.isSeriesFiltered=function(n){return zI(this),this._seriesIndicesMap.get(n.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(n,r){zI(this);var i=[];lt(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];n.call(r,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=Mr(i)},t.prototype.restoreData=function(n){Zk(this);var r=this._componentsMap,i=[];r.each(function(a,o){qa.hasClass(o)&&i.push(o)}),qa.topologicalTravel(i,qa.getAllClassMainTypes(),function(a){lt(r.get(a),function(o){o&&(a!=="series"||!wpr(o,n))&&o.restoreData()})})},t.internalField=function(){Zk=function(n){var r=n._seriesIndices=[];lt(n._componentsMap.get("series"),function(i){i&&r.push(i.componentIndex)}),n._seriesIndicesMap=Mr(r)},zI=function(n){},H8e=function(n,r){n.option={},n.option[V8e]=Cpr,n._componentsMap=Mr({series:[]}),n._componentsCount=Mr();var i=r.aria;Fr(i)&&i.enabled==null&&(i.enabled=!0),xpr(r,n._theme.option),ba(r,_pr,!1),n._mergeOption(r,null)}}(),t}(Os);function wpr(e,t){if(t){var n=t.seriesIndex,r=t.seriesId,i=t.seriesName;return n!=null&&e.componentIndex!==n||r!=null&&e.id!==r||i!=null&&e.name!==i}}function xpr(e,t){var n=e.color&&!e.colorLayer;lt(t,function(r,i){i==="colorLayer"&&n||qa.hasClass(i)||(typeof r=="object"?e[i]=e[i]?ba(e[i],r,!1):Xi(r):e[i]==null&&(e[i]=r))})}function G8e(e,t,n){if(ar(t)){var r=Mr();return lt(t,function(a){if(a!=null){var o=Xg(a,null);o!=null&&r.set(a,!0)}}),mc(n,function(a){return a&&r.get(a[e])})}else{var i=Xg(t,null);return mc(n,function(a){return a&&i!=null&&a[e]===i})}}function q8e(e,t){return t.hasOwnProperty("subType")?mc(e,function(n){return n&&n.subType===t.subType}):e}function W8e(e){var t=Mr();return e&&lt(yl(e.replaceMerge),function(n){t.set(n,!0)}),{replaceMergeMainTypeMap:t}}Cv(Pge,Tge);var Tpr=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Got=function(){function e(t){lt(Tpr,function(n){this[n]=si(t[n],t)},this)}return e}(),Ipr=/^(min|max)?(.+)$/,Apr=function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,n,r){t&&(lt(yl(t.series),function(o){o&&o.data&&Ld(o.data)&&lse(o.data)}),lt(yl(t.dataset),function(o){o&&o.source&&Ld(o.source)&&lse(o.source)})),t=Xi(t);var i=this._optionBackup,a=Rpr(t,n,!i);this._newBaseOption=a.baseOption,i?(a.timelineOptions.length&&(i.timelineOptions=a.timelineOptions),a.mediaList.length&&(i.mediaList=a.mediaList),a.mediaDefault&&(i.mediaDefault=a.mediaDefault)):this._optionBackup=a},e.prototype.mountOption=function(t){var n=this._optionBackup;return this._timelineOptions=n.timelineOptions,this._mediaList=n.mediaList,this._mediaDefault=n.mediaDefault,this._currentMediaIndices=[],Xi(t?n.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(t){var n,r=this._timelineOptions;if(r.length){var i=t.getComponent("timeline");i&&(n=Xi(r[i.getCurrentIndex()]))}return n},e.prototype.getMediaOption=function(t){var n=this._api.getWidth(),r=this._api.getHeight(),i=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!i.length&&!a)return s;for(var l=0,c=i.length;l<c;l++)Npr(i[l].query,n,r)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!Lpr(o,this._currentMediaIndices)&&(s=Nr(o,function(u){return Xi(u===-1?a.option:i[u].option)})),this._currentMediaIndices=o,s},e}();function Rpr(e,t,n){var r=[],i,a,o=e.baseOption,s=e.timeline,l=e.options,c=e.media,u=!!e.media,d=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((d||u)&&(e.options=e.media=null),a=e),u&&ar(c)&&lt(c,function(p){p&&p.option&&(p.query?r.push(p):i||(i=p))}),f(a),lt(l,function(p){return f(p)}),lt(r,function(p){return f(p.option)});function f(p){lt(t,function(h){h(p,n)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:i,mediaList:r}}function Npr(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return lt(e,function(a,o){var s=o.match(Ipr);if(!(!s||!s[1]||!s[2])){var l=s[1],c=s[2].toLowerCase();Opr(r[c],a,l)||(i=!1)}}),i}function Opr(e,t,n){return n==="min"?e>=t:n==="max"?e<=t:e===t}function Lpr(e,t){return e.join(",")===t.join(",")}var _h=lt,x6=Fr,Y8e=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Hee(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=Y8e.length;n<r;n++){var i=Y8e[n],a=t.normal,o=t.emphasis;a&&a[i]&&(e[i]=e[i]||{},e[i].normal?ba(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(e[i]=e[i]||{},e[i].emphasis?ba(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function Wc(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var r=e[t].normal,i=e[t].emphasis;r&&(n?(e[t].normal=e[t].emphasis=null,Hi(e[t],r)):e[t]=r),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function FA(e){Wc(e,"itemStyle"),Wc(e,"lineStyle"),Wc(e,"areaStyle"),Wc(e,"label"),Wc(e,"labelLine"),Wc(e,"upperLabel"),Wc(e,"edgeLabel")}function Hs(e,t){var n=x6(e)&&e[t],r=x6(n)&&n.textStyle;if(r)for(var i=0,a=COe.length;i<a;i++){var o=COe[i];r.hasOwnProperty(o)&&(n[o]=r[o])}}function cp(e){e&&(FA(e),Hs(e,"label"),e.emphasis&&Hs(e.emphasis,"label"))}function Ppr(e){if(x6(e)){Hee(e),FA(e),Hs(e,"label"),Hs(e,"upperLabel"),Hs(e,"edgeLabel"),e.emphasis&&(Hs(e.emphasis,"label"),Hs(e.emphasis,"upperLabel"),Hs(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(Hee(t),cp(t));var n=e.markLine;n&&(Hee(n),cp(n));var r=e.markArea;r&&cp(r);var i=e.data;if(e.type==="graph"){i=i||e.nodes;var a=e.links||e.edges;if(a&&!Ld(a))for(var o=0;o<a.length;o++)cp(a[o]);lt(e.categories,function(c){FA(c)})}if(i&&!Ld(i))for(var o=0;o<i.length;o++)cp(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)cp(s[o]);if(n=e.markLine,n&&n.data)for(var l=n.data,o=0;o<l.length;o++)ar(l[o])?(cp(l[o][0]),cp(l[o][1])):cp(l[o]);e.type==="gauge"?(Hs(e,"axisLabel"),Hs(e,"title"),Hs(e,"detail")):e.type==="treemap"?(Wc(e.breadcrumb,"itemStyle"),lt(e.levels,function(c){FA(c)})):e.type==="tree"&&FA(e.leaves)}}function s1(e){return ar(e)?e:e?[e]:[]}function K8e(e){return(ar(e)?e[0]:e)||{}}function kpr(e,t){_h(s1(e.series),function(r){x6(r)&&Ppr(r)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),_h(n,function(r){_h(s1(e[r]),function(i){i&&(Hs(i,"axisLabel"),Hs(i.axisPointer,"label"))})}),_h(s1(e.parallel),function(r){var i=r&&r.parallelAxisDefault;Hs(i,"axisLabel"),Hs(i&&i.axisPointer,"label")}),_h(s1(e.calendar),function(r){Wc(r,"itemStyle"),Hs(r,"dayLabel"),Hs(r,"monthLabel"),Hs(r,"yearLabel")}),_h(s1(e.radar),function(r){Hs(r,"name"),r.name&&r.axisName==null&&(r.axisName=r.name,delete r.name),r.nameGap!=null&&r.axisNameGap==null&&(r.axisNameGap=r.nameGap,delete r.nameGap)}),_h(s1(e.geo),function(r){x6(r)&&(cp(r),_h(s1(r.regions),function(i){cp(i)}))}),_h(s1(e.timeline),function(r){cp(r),Wc(r,"label"),Wc(r,"itemStyle"),Wc(r,"controlStyle",!0);var i=r.data;ar(i)&&lt(i,function(a){Fr(a)&&(Wc(a,"label"),Wc(a,"itemStyle"))})}),_h(s1(e.toolbox),function(r){Wc(r,"iconStyle"),_h(r.feature,function(i){Wc(i,"iconStyle")})}),Hs(K8e(e.axisPointer),"label"),Hs(K8e(e.tooltip).axisPointer,"label")}function Mpr(e,t){for(var n=t.split(","),r=e,i=0;i<n.length&&(r=r&&r[n[i]],r!=null);i++);return r}function Dpr(e,t,n,r){for(var i=t.split(","),a=e,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];a[i[s]]==null&&(a[i[s]]=n)}function X8e(e){e&&lt($pr,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var $pr=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Fpr=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Vee=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function UI(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<Vee.length;n++){var r=Vee[n][1],i=Vee[n][0];t[r]!=null&&(t[i]=t[r])}}function Z8e(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function Q8e(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function Bpr(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus="adjacency"))}function qot(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&qot(e[n].children,t)}function Wot(e,t){kpr(e,t),e.series=yl(e.series),lt(e.series,function(n){if(Fr(n)){var r=n.type;if(r==="line")n.clipOverflow!=null&&(n.clip=n.clipOverflow);else if(r==="pie"||r==="gauge"){n.clockWise!=null&&(n.clockwise=n.clockWise),Z8e(n.label);var i=n.data;if(i&&!Ld(i))for(var a=0;a<i.length;a++)Z8e(i[a]);n.hoverOffset!=null&&(n.emphasis=n.emphasis||{},(n.emphasis.scaleSize=null)&&(n.emphasis.scaleSize=n.hoverOffset))}else if(r==="gauge"){var o=Mpr(n,"pointer.color");o!=null&&Dpr(n,"itemStyle.color",o)}else if(r==="bar"){UI(n),UI(n.backgroundStyle),UI(n.emphasis);var i=n.data;if(i&&!Ld(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(UI(i[a]),UI(i[a]&&i[a].emphasis))}else if(r==="sunburst"){var s=n.highlightPolicy;s&&(n.emphasis=n.emphasis||{},n.emphasis.focus||(n.emphasis.focus=s)),Q8e(n),qot(n.data,Q8e)}else r==="graph"||r==="sankey"?Bpr(n):r==="map"&&(n.mapType&&!n.map&&(n.map=n.mapType),n.mapLocation&&Hi(n,n.mapLocation));n.hoverAnimation!=null&&(n.emphasis=n.emphasis||{},n.emphasis&&n.emphasis.scale==null&&(n.emphasis.scale=n.hoverAnimation)),X8e(n)}}),e.dataRange&&(e.visualMap=e.dataRange),lt(Fpr,function(n){var r=e[n];r&&(ar(r)||(r=[r]),lt(r,function(i){X8e(i)}))})}function jpr(e){var t=Mr();e.eachSeries(function(n){var r=n.get("stack");if(r){var i=t.get(r)||t.set(r,[]),a=n.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:n};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.length&&a.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}}),t.each(zpr)}function zpr(e){lt(e,function(t,n){var r=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(c,u,d){var f=o.get(t.stackedDimension,d);if(isNaN(f))return i;var p,h;s?h=o.getRawIndex(d):p=o.get(t.stackedByDimension,d);for(var m=NaN,g=n-1;g>=0;g--){var v=e[g];if(s||(h=v.data.rawIndexOf(v.stackedByDimension,p)),h>=0){var y=v.data.getByRawIndex(v.stackResultDimension,h);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&f>=0&&y>0||l==="samesign"&&f<=0&&y<0){f=xlr(f,y),m=y;break}}}return r[0]=f,r[1]=m,r})})}var ym=function(){function e(){this.group=new Jl,this.uid=gH("viewComponent")}return e.prototype.init=function(t,n){},e.prototype.render=function(t,n,r,i){},e.prototype.dispose=function(t,n){},e.prototype.updateView=function(t,n,r,i){},e.prototype.updateLayout=function(t,n,r,i){},e.prototype.updateVisual=function(t,n,r,i){},e.prototype.toggleBlurSeries=function(t,n,r){},e.prototype.eachRendered=function(t){var n=this.group;n&&n.traverse(t)},e}();Hme(ym);eH(ym);var J8e=rl(),eLe={itemStyle:g6(Mat,!0),lineStyle:g6(kat,!0)},Upr={lineStyle:"stroke",itemStyle:"fill"};function Yot(e,t){var n=e.visualStyleMapper||eLe[t];return n||(console.warn("Unknown style type '"+t+"'."),eLe.itemStyle)}function Kot(e,t){var n=e.visualDrawType||Upr[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var Hpr={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=e.getModel(r),a=Yot(e,r),o=a(i),s=i.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=Kot(e,r),c=o[l],u=hi(c)?c:null,d=o.fill==="auto"||o.stroke==="auto";if(!o[l]||u||d){var f=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[l]||(o[l]=f,n.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||hi(o.fill)?f:o.fill,o.stroke=o.stroke==="auto"||hi(o.stroke)?f:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",l),!t.isSeriesFiltered(e)&&u)return n.setVisual("colorFromPalette",!1),{dataEach:function(p,h){var m=e.getDataParams(h),g=Vn({},o);g[l]=u(m),p.setItemVisual(h,"style",g)}}}},HI=new Os,Vpr={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=Yot(e,r),a=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[r]){HI.option=l[r];var c=i(HI),u=o.ensureUniqueItemVisual(s,"style");Vn(u,c),HI.option.decal&&(o.setItemVisual(s,"decal",HI.option.decal),HI.option.decal.dirty=!0),a in c&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},Gpr={performRawSeries:!0,overallReset:function(e){var t=Mr();e.eachSeries(function(n){var r=n.getColorBy();if(!n.isColorBySeries()){var i=n.type+"-"+r,a=t.get(i);a||(a={},t.set(i,a)),J8e(n).scope=a}}),e.eachSeries(function(n){if(!(n.isColorBySeries()||e.isSeriesFiltered(n))){var r=n.getRawData(),i={},a=n.getData(),o=J8e(n).scope,s=n.visualStyleAccessPath||"itemStyle",l=Kot(n,s);a.each(function(c){var u=a.getRawIndex(c);i[u]=c}),r.each(function(c){var u=i[c],d=a.getItemVisual(u,"colorFromPalette");if(d){var f=a.ensureUniqueItemVisual(u,"style"),p=r.getName(c)||c+"",h=r.count();f[l]=n.getColorFromPalette(p,o,h)}})}})}},Qk=Math.PI;function qpr(e,t){t=t||{},Hi(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Jl,r=new Ps({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new Du({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Ps({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});n.add(a);var o;return t.showSpinner&&(o=new dH({shape:{startAngle:-Qk/2,endAngle:-Qk/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Qk*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Qk*3/2}).delay(300).start("circularInOut"),n.add(o)),n.resize=function(){var s=i.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,c=(e.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),u=e.getHeight()/2;t.showSpinner&&o.setShape({cx:c,cy:u}),a.setShape({x:c-l,y:u-l,width:l*2,height:l*2}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var Xot=function(){function e(t,n,r,i){this._stageTaskMap=Mr(),this.ecInstance=t,this.api=n,r=this._dataProcessorHandlers=r.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=r.concat(i)}return e.prototype.restoreData=function(t,n){t.restoreData(n),this._stageTaskMap.each(function(r){var i=r.overallTask;i&&i.dirty()})},e.prototype.getPerformArgs=function(t,n){if(t.__pipeline){var r=this._pipelineMap.get(t.__pipeline.id),i=r.context,a=!n&&r.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>r.blockIndex,o=a?r.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,n){var r=this._pipelineMap.get(t.uid),i=t.getData(),a=i.count(),o=r.progressiveEnabled&&n.incrementalPrepareRender&&a>=r.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=r.context={progressiveRender:o,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var n=this,r=n._pipelineMap=Mr();t.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;r.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),n._pipe(i,i.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,n=this.api.getModel(),r=this.api;lt(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";c0(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,n,r),i.overallReset&&this._createOverallStageTask(i,a,n,r)},this)},e.prototype.prepareView=function(t,n,r,i){var a=t.renderTask,o=a.context;o.model=n,o.ecModel=r,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(n,a)},e.prototype.performDataProcessorTasks=function(t,n){this._performStageTasks(this._dataProcessorHandlers,t,n,{block:!0})},e.prototype.performVisualTasks=function(t,n,r){this._performStageTasks(this._visualHandlers,t,n,r)},e.prototype._performStageTasks=function(t,n,r,i){i=i||{};var a=!1,o=this;lt(t,function(l,c){if(!(i.visualType&&i.visualType!==l.visualType)){var u=o._stageTaskMap.get(l.uid),d=u.seriesTaskMap,f=u.overallTask;if(f){var p,h=f.agentStubMap;h.each(function(g){s(i,g)&&(g.dirty(),p=!0)}),p&&f.dirty(),o.updatePayload(f,r);var m=o.getPerformArgs(f,i.block);h.each(function(g){g.perform(m)}),f.perform(m)&&(a=!0)}else d&&d.each(function(g,v){s(i,g)&&g.dirty();var y=o.getPerformArgs(g,i.block);y.skip=!l.performRawSeries&&n.isSeriesFiltered(g.context.model),o.updatePayload(g,r),g.perform(y)&&(a=!0)})}});function s(l,c){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(c.__pipeline.id))}this.unfinished=a||this.unfinished},e.prototype.performSeriesTasks=function(t){var n;t.eachSeries(function(r){n=r.dataTask.perform()||n}),this.unfinished=n||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var n=t.tail;do{if(n.__block){t.blockIndex=n.__idxInPipeline;break}n=n.getUpstream()}while(n)})},e.prototype.updatePayload=function(t,n){n!=="remain"&&(t.context.payload=n)},e.prototype._createSeriesStageTask=function(t,n,r,i){var a=this,o=n.seriesTaskMap,s=n.seriesTaskMap=Mr(),l=t.seriesType,c=t.getTargetSeries;t.createOnAllSeries?r.eachRawSeries(u):l?r.eachRawSeriesByType(l,u):c&&c(r,i).each(u);function u(d){var f=d.uid,p=s.set(f,o&&o.get(f)||UR({plan:Zpr,reset:Qpr,count:ehr}));p.context={model:d,ecModel:r,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(d,p)}},e.prototype._createOverallStageTask=function(t,n,r,i){var a=this,o=n.overallTask=n.overallTask||UR({reset:Wpr});o.context={ecModel:r,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=Mr(),c=t.seriesType,u=t.getTargetSeries,d=!0,f=!1,p="";c0(!t.createOnAllSeries,p),c?r.eachRawSeriesByType(c,h):u?u(r,i).each(h):(d=!1,lt(r.getSeries(),h));function h(m){var g=m.uid,v=l.set(g,s&&s.get(g)||(f=!0,UR({reset:Ypr,onDirty:Xpr})));v.context={model:m,overallProgress:d},v.agent=o,v.__block=d,a._pipe(m,v)}f&&o.dirty()},e.prototype._pipe=function(t,n){var r=t.uid,i=this._pipelineMap.get(r);!i.head&&(i.head=n),i.tail&&i.tail.pipe(n),i.tail=n,n.__idxInPipeline=i.count++,n.__pipeline=i},e.wrapStageHandler=function(t,n){return hi(t)&&(t={overallReset:t,seriesType:thr(t)}),t.uid=gH("stageHandler"),n&&(t.visualType=n),t},e}();function Wpr(e){e.overallReset(e.ecModel,e.api,e.payload)}function Ypr(e){return e.overallProgress&&Kpr}function Kpr(){this.agent.dirty(),this.getDownstream().dirty()}function Xpr(){this.agent&&this.agent.dirty()}function Zpr(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function Qpr(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=yl(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Nr(t,function(n,r){return Zot(r)}):Jpr}var Jpr=Zot(0);function Zot(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a<t.end;a++)i.dataEach(r,a);else i&&i.progress&&i.progress(t,r)}}function ehr(e){return e.data.count()}function thr(e){fB=null;try{e(T6,Qot)}catch{}return fB}var T6={},Qot={},fB;Jot(T6,Pge);Jot(Qot,Got);T6.eachSeriesByType=T6.eachRawSeriesByType=function(e){fB=e};T6.eachComponent=function(e){e.mainType==="series"&&e.subType&&(fB=e.subType)};function Jot(e,t){for(var n in t.prototype)e[n]=Ru}var tLe=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const nhr={color:tLe,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],tLe]};var mu="#B9B8CE",nLe="#100C2A",Jk=function(){return{axisLine:{lineStyle:{color:mu}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},rLe=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],est={darkMode:!0,color:rLe,backgroundColor:nLe,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:mu}},textStyle:{color:mu},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:mu}},dataZoom:{borderColor:"#71708A",textStyle:{color:mu},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:mu}},timeline:{lineStyle:{color:mu},label:{color:mu},controlStyle:{color:mu,borderColor:mu}},calendar:{itemStyle:{color:nLe},dayLabel:{color:mu},monthLabel:{color:mu},yearLabel:{color:mu}},timeAxis:Jk(),logAxis:Jk(),valueAxis:Jk(),categoryAxis:Jk(),line:{symbol:"circle"},graph:{color:rLe},gauge:{title:{color:mu},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:mu},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};est.categoryAxis.splitLine.show=!1;var rhr=function(){function e(){}return e.prototype.normalizeQuery=function(t){var n={},r={},i={};if(yr(t)){var a=Bg(t);n.mainType=a.main||null,n.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};lt(t,function(l,c){for(var u=!1,d=0;d<o.length;d++){var f=o[d],p=c.lastIndexOf(f);if(p>0&&p===c.length-f.length){var h=c.slice(0,p);h!=="data"&&(n.mainType=h,n[f.toLowerCase()]=l,u=!0)}}s.hasOwnProperty(c)&&(r[c]=l,u=!0),u||(i[c]=l)})}return{cptQuery:n,dataQuery:r,otherQuery:i}},e.prototype.filter=function(t,n){var r=this.eventInfo;if(!r)return!0;var i=r.targetEl,a=r.packedEvent,o=r.model,s=r.view;if(!o||!s)return!0;var l=n.cptQuery,c=n.dataQuery;return u(l,o,"mainType")&&u(l,o,"subType")&&u(l,o,"index","componentIndex")&&u(l,o,"name")&&u(l,o,"id")&&u(c,a,"name")&&u(c,a,"dataIndex")&&u(c,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,n.otherQuery,i,a));function u(d,f,p,h){return d[p]==null||f[h||p]===d[p]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),Use=["symbol","symbolSize","symbolRotate","symbolOffset"],iLe=Use.concat(["symbolKeepAspect"]),ihr={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var r={},i={},a=!1,o=0;o<Use.length;o++){var s=Use[o],l=e.get(s);hi(l)?(a=!0,i[s]=l):r[s]=l}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(Vn({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},r)),t.isSeriesFiltered(e))return;var c=rs(i);function u(d,f){for(var p=e.getRawValue(f),h=e.getDataParams(f),m=0;m<c.length;m++){var g=c[m];d.setItemVisual(f,g,i[g](p,h))}}return{dataEach:a?u:null}}},ahr={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var n=e.getData();function r(i,a){for(var o=i.getItemModel(a),s=0;s<iLe.length;s++){var l=iLe[s],c=o.getShallow(l,!0);c!=null&&i.setItemVisual(a,l,c)}}return{dataEach:n.hasItemOption?r:null}}};function ohr(e,t,n){switch(n){case"color":var r=e.getItemVisual(t,"style");return r[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,n)}}function shr(e,t){switch(t){case"color":var n=e.getVisual("style");return n[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t)}}function BA(e,t,n){for(var r;e&&!(t(e)&&(r=e,n));)e=e.__hostTarget||e.parent;return r}var lhr=Math.round(Math.random()*9),chr=typeof Object.defineProperty=="function",uhr=function(){function e(){this._id="__ec_inner_"+lhr++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,n){var r=this._guard(t);return chr?Object.defineProperty(r,this._id,{value:n,enumerable:!1,configurable:!0}):r[this._id]=n,this},e.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},e.prototype.has=function(t){return!!this._guard(t)[this._id]},e.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},e}();function qS(e){return isFinite(e)}function dhr(e,t,n){var r=t.x==null?0:t.x,i=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(r=r*n.width+n.x,i=i*n.width+n.x,a=a*n.height+n.y,o=o*n.height+n.y),r=qS(r)?r:0,i=qS(i)?i:1,a=qS(a)?a:0,o=qS(o)?o:0;var s=e.createLinearGradient(r,a,i,o);return s}function fhr(e,t,n){var r=n.width,i=n.height,a=Math.min(r,i),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(o=o*r+n.x,s=s*i+n.y,l=l*a),o=qS(o)?o:.5,s=qS(s)?s:.5,l=l>=0&&qS(l)?l:.5;var c=e.createRadialGradient(o,s,0,o,s,l);return c}function Hse(e,t,n){for(var r=t.type==="radial"?fhr(e,t,n):dhr(e,t,n),i=t.colorStops,a=0;a<i.length;a++)r.addColorStop(i[a].offset,i[a].color);return r}function phr(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}function e9(e){return parseInt(e,10)}function t9(e,t,n){var r=["width","height"][t],i=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(n[r]!=null&&n[r]!=="auto")return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(e);return(e[i]||e9(s[r])||e9(e.style[r]))-(e9(s[a])||0)-(e9(s[o])||0)|0}function hhr(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:is(e)?[e]:ar(e)?e:null}function tst(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&hhr(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=Nr(n,function(a){return a/i}),r/=i)}return[n,r]}var mhr=new f_(!0);function pB(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function aLe(e){return typeof e=="string"&&e!=="none"}function hB(e){var t=e.fill;return t!=null&&t!=="none"}function oLe(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function sLe(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function Vse(e,t,n){var r=Mit(t.image,t.__image,n);if(tH(r)){var i=e.createPattern(r,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*zor),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function ghr(e,t,n,r){var i,a=pB(n),o=hB(n),s=n.strokePercent,l=s<1,c=!t.path;(!t.silent||l)&&c&&t.createPathProxy();var u=t.path||mhr,d=t.__dirty;if(!r){var f=n.fill,p=n.stroke,h=o&&!!f.colorStops,m=a&&!!p.colorStops,g=o&&!!f.image,v=a&&!!p.image,y=void 0,_=void 0,S=void 0,C=void 0,w=void 0;(h||m)&&(w=t.getBoundingRect()),h&&(y=d?Hse(e,f,w):t.__canvasFillGradient,t.__canvasFillGradient=y),m&&(_=d?Hse(e,p,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(S=d||!t.__canvasFillPattern?Vse(e,f,t):t.__canvasFillPattern,t.__canvasFillPattern=S),v&&(C=d||!t.__canvasStrokePattern?Vse(e,p,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),h?e.fillStyle=y:g&&(S?e.fillStyle=S:o=!1),m?e.strokeStyle=_:v&&(C?e.strokeStyle=C:a=!1)}var x=t.getGlobalScale();u.setScale(x[0],x[1],t.segmentIgnoreThreshold);var T,A;e.setLineDash&&n.lineDash&&(i=tst(t),T=i[0],A=i[1]);var I=!0;(c||d&Tx)&&(u.setDPR(e.dpr),l?u.setContext(null):(u.setContext(e),I=!1),u.reset(),t.buildPath(u,t.shape,r),u.toStatic(),t.pathUpdated()),I&&u.rebuildPath(e,l?s:1),T&&(e.setLineDash(T),e.lineDashOffset=A),r||(n.strokeFirst?(a&&sLe(e,n),o&&oLe(e,n)):(o&&oLe(e,n),a&&sLe(e,n))),T&&e.setLineDash([])}function vhr(e,t,n){var r=t.__image=Mit(n.image,t.__image,t,t.onload);if(!(!r||!tH(r))){var i=n.x||0,a=n.y||0,o=t.getWidth(),s=t.getHeight(),l=r.width/r.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=r.width,s=r.height),n.sWidth&&n.sHeight){var c=n.sx||0,u=n.sy||0;e.drawImage(r,c,u,n.sWidth,n.sHeight,i,a,o,s)}else if(n.sx&&n.sy){var c=n.sx,u=n.sy,d=o-c,f=s-u;e.drawImage(r,c,u,d,f,i,a,o,s)}else e.drawImage(r,i,a,o,s)}}function yhr(e,t,n){var r,i=n.text;if(i!=null&&(i+=""),i){e.font=n.font||rC,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var a=void 0,o=void 0;e.setLineDash&&n.lineDash&&(r=tst(t),a=r[0],o=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),n.strokeFirst?(pB(n)&&e.strokeText(i,n.x,n.y),hB(n)&&e.fillText(i,n.x,n.y)):(hB(n)&&e.fillText(i,n.x,n.y),pB(n)&&e.strokeText(i,n.x,n.y)),a&&e.setLineDash([])}}var lLe=["shadowBlur","shadowOffsetX","shadowOffsetY"],cLe=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function nst(e,t,n,r,i){var a=!1;if(!r&&(n=n||{},t===n))return!1;if(r||t.opacity!==n.opacity){md(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?vE.opacity:o}(r||t.blend!==n.blend)&&(a||(md(e,i),a=!0),e.globalCompositeOperation=t.blend||vE.blend);for(var s=0;s<lLe.length;s++){var l=lLe[s];(r||t[l]!==n[l])&&(a||(md(e,i),a=!0),e[l]=e.dpr*(t[l]||0))}return(r||t.shadowColor!==n.shadowColor)&&(a||(md(e,i),a=!0),e.shadowColor=t.shadowColor||vE.shadowColor),a}function uLe(e,t,n,r,i){var a=I6(t,i.inHover),o=r?null:n&&I6(n,i.inHover)||{};if(a===o)return!1;var s=nst(e,a,o,r,i);if((r||a.fill!==o.fill)&&(s||(md(e,i),s=!0),aLe(a.fill)&&(e.fillStyle=a.fill)),(r||a.stroke!==o.stroke)&&(s||(md(e,i),s=!0),aLe(a.stroke)&&(e.strokeStyle=a.stroke)),(r||a.opacity!==o.opacity)&&(s||(md(e,i),s=!0),e.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var l=a.lineWidth,c=l/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==c&&(s||(md(e,i),s=!0),e.lineWidth=c)}for(var u=0;u<cLe.length;u++){var d=cLe[u],f=d[0];(r||a[f]!==o[f])&&(s||(md(e,i),s=!0),e[f]=a[f]||d[1])}return s}function bhr(e,t,n,r,i){return nst(e,I6(t,i.inHover),n&&I6(n,i.inHover),r,i)}function rst(e,t){var n=t.transform,r=e.dpr||1;n?e.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):e.setTransform(r,0,0,r,0,0)}function _hr(e,t,n){for(var r=!1,i=0;i<e.length;i++){var a=e[i];r=r||a.isZeroArea(),rst(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}n.allClipped=r}function Shr(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var dLe=1,fLe=2,pLe=3,hLe=4;function Ehr(e){var t=hB(e),n=pB(e);return!(e.lineDash||!(+t^+n)||t&&typeof e.fill!="string"||n&&typeof e.stroke!="string"||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function md(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function I6(e,t){return t&&e.__hoverStyle||e.style}function ist(e,t){WS(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function WS(e,t,n,r){var i=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){t.__dirty&=~bf,t.__isRendered=!1;return}var a=t.__clipPaths,o=n.prevElClipPaths,s=!1,l=!1;if((!o||phr(a,o))&&(o&&o.length&&(md(e,n),e.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),a&&a.length&&(md(e,n),e.save(),_hr(a,e,n),s=!0),n.prevElClipPaths=a),n.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var c=n.prevEl;c||(l=s=!0);var u=t instanceof ha&&t.autoBatch&&Ehr(t.style);s||Shr(i,c.transform)?(md(e,n),rst(e,t)):u||md(e,n);var d=I6(t,n.inHover);t instanceof ha?(n.lastDrawType!==dLe&&(l=!0,n.lastDrawType=dLe),uLe(e,t,c,l,n),(!u||!n.batchFill&&!n.batchStroke)&&e.beginPath(),ghr(e,t,d,u),u&&(n.batchFill=d.fill||"",n.batchStroke=d.stroke||"")):t instanceof ZF?(n.lastDrawType!==pLe&&(l=!0,n.lastDrawType=pLe),uLe(e,t,c,l,n),yhr(e,t,d)):t instanceof G_?(n.lastDrawType!==fLe&&(l=!0,n.lastDrawType=fLe),bhr(e,t,c,l,n),vhr(e,t,d)):t.getTemporalDisplayables&&(n.lastDrawType!==hLe&&(l=!0,n.lastDrawType=hLe),Chr(e,t,n)),u&&r&&md(e,n),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}function Chr(e,t,n){var r=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover},o,s;for(o=t.getCursor(),s=r.length;o<s;o++){var l=r[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),WS(e,l,a,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}for(var c=0,u=i.length;c<u;c++){var l=i[c];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),WS(e,l,a,c===u-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var Gee=new uhr,mLe=new E8(100),gLe=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Gse(e,t){if(e==="none")return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i=r.painter.type==="svg";e.dirty&&Gee.delete(e);var a=Gee.get(e);if(a)return a;var o=Hi(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/n,Gee.set(e,s),e.dirty=!1,s;function l(c){for(var u=[n],d=!0,f=0;f<gLe.length;++f){var p=o[gLe[f]];if(p!=null&&!ar(p)&&!yr(p)&&!is(p)&&typeof p!="boolean"){d=!1;break}u.push(p)}var h;if(d){h=u.join(",")+(i?"-svg":"");var m=mLe.get(h);m&&(i?c.svgElement=m:c.image=m)}var g=ost(o.dashArrayX),v=whr(o.dashArrayY),y=ast(o.symbol),_=xhr(g),S=sst(v),C=!i&&e4.createCanvas(),w=i&&{tag:"g",attrs:{},key:"dcl",children:[]},x=A(),T;C&&(C.width=x.width*n,C.height=x.height*n,T=C.getContext("2d")),I(),d&&mLe.put(h,C||w),c.image=C,c.svgElement=w,c.svgWidth=x.width,c.svgHeight=x.height;function A(){for(var R=1,N=0,P=_.length;N<P;++N)R=_Oe(R,_[N]);for(var L=1,N=0,P=y.length;N<P;++N)L=_Oe(L,y[N].length);R*=L;var $=S*_.length*y.length;return{width:Math.max(1,Math.min(R,o.maxTileWidth)),height:Math.max(1,Math.min($,o.maxTileHeight))}}function I(){T&&(T.clearRect(0,0,C.width,C.height),o.backgroundColor&&(T.fillStyle=o.backgroundColor,T.fillRect(0,0,C.width,C.height)));for(var R=0,N=0;N<v.length;++N)R+=v[N];if(R<=0)return;for(var P=-S,L=0,$=0,D=0;P<x.height;){if(L%2===0){for(var z=$/2%y.length,U=0,H=0,M=0;U<x.width*2;){for(var B=0,N=0;N<g[D].length;++N)B+=g[D][N];if(B<=0)break;if(H%2===0){var k=(1-o.symbolSize)*.5,F=U+g[D][H]*k,G=P+v[L]*k,q=g[D][H]*o.symbolSize,W=v[L]*o.symbolSize,K=M/2%y[z].length;J(F,G,q,W,y[z][K])}U+=g[D][H],++M,++H,H===g[D].length&&(H=0)}++D,D===g.length&&(D=0)}P+=v[L],++$,++L,L===v.length&&(L=0)}function J(te,ae,re,ue,de){var fe=i?1:n,ge=g_(de,te*fe,ae*fe,re*fe,ue*fe,o.color,o.symbolKeepAspect);if(i){var oe=r.painter.renderOneToVNode(ge);oe&&w.children.push(oe)}else ist(T,ge)}}}}function ast(e){if(!e||e.length===0)return[["rect"]];if(yr(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!yr(e[n])){t=!1;break}if(t)return ast([e]);for(var r=[],n=0;n<e.length;++n)yr(e[n])?r.push([e[n]]):r.push(e[n]);return r}function ost(e){if(!e||e.length===0)return[[0,0]];if(is(e)){var t=Math.ceil(e);return[[t,t]]}for(var n=!0,r=0;r<e.length;++r)if(!is(e[r])){n=!1;break}if(n)return ost([e]);for(var i=[],r=0;r<e.length;++r)if(is(e[r])){var t=Math.ceil(e[r]);i.push([t,t])}else{var t=Nr(e[r],function(s){return Math.ceil(s)});t.length%2===1?i.push(t.concat(t)):i.push(t)}return i}function whr(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(is(e)){var t=Math.ceil(e);return[t,t]}var n=Nr(e,function(r){return Math.ceil(r)});return e.length%2?n.concat(n):n}function xhr(e){return Nr(e,function(t){return sst(t)})}function sst(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2===1?t*2:t}function Thr(e,t){e.eachRawSeries(function(n){if(!e.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each(function(o){var s=r.getItemVisual(o,"decal");if(s){var l=r.ensureUniqueItemVisual(o,"style");l.decal=Gse(s,t)}});var i=r.getVisual("decal");if(i){var a=r.getVisual("style");a.decal=Gse(i,t)}}})}var Oh=new Om,lst={};function Ihr(e,t){lst[e]=t}function Ahr(e){return lst[e]}var Rhr=1,Nhr=800,Ohr=900,Lhr=1e3,Phr=2e3,khr=5e3,cst=1e3,Mhr=1100,kge=2e3,ust=3e3,Dhr=4e3,wH=4500,$hr=4600,Fhr=5e3,Bhr=6e3,dst=7e3,jhr={PROCESSOR:{FILTER:Lhr,SERIES_FILTER:Nhr,STATISTIC:khr},VISUAL:{LAYOUT:cst,PROGRESSIVE_LAYOUT:Mhr,GLOBAL:kge,CHART:ust,POST_CHART_LAYOUT:$hr,COMPONENT:Dhr,BRUSH:Fhr,CHART_ITEM:wH,ARIA:Bhr,DECAL:dst}},jc="__flagInMainProcess",nd="__pendingUpdate",qee="__needsUpdateStatus",vLe=/^[a-zA-Z0-9_]+$/,Wee="__connectUpdateStatus",yLe=0,zhr=1,Uhr=2;function fst(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(this.isDisposed()){this.id;return}return hst(this,e,t)}}function pst(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return hst(this,e,t)}}function hst(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),Om.prototype[t].apply(e,n)}var mst=function(e){tr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Om),gst=mst.prototype;gst.on=pst("on");gst.off=pst("off");var Zw,Yee,n9,Ty,Kee,Xee,Zee,VI,GI,bLe,_Le,Qee,SLe,r9,ELe,vst,ip,CLe,yst=function(e){tr(t,e);function t(n,r,i){var a=e.call(this,new rhr)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},yr(r)&&(r=bst[r]),a._dom=n;var o="canvas",s="auto",l=!1;i.ssr;var c=a._zr=U8e(n,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:ra(i.useDirtyRect,l),useCoarsePointer:ra(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=$ot(si(c.flush,c),17),r=Xi(r),r&&Wot(r,!0),a._theme=r,a._locale=ldr(i.locale||not),a._coordSysMgr=new yge;var u=a._api=ELe(a);function d(f,p){return f.__prio-p.__prio}return eD(gB,d),eD(qse,d),a._scheduler=new Xot(a,u,qse,gB),a._messageCenter=new mst,a._initEvents(),a.resize=si(a.resize,a),c.animation.on("frame",a._onframe,a),bLe(c,a),_Le(c,a),lse(a),a}return t.prototype._onframe=function(){if(!this._disposed){CLe(this);var n=this._scheduler;if(this[nd]){var r=this[nd].silent;this[jc]=!0;try{Zw(this),Ty.update.call(this,null,this[nd].updateParams)}catch(l){throw this[jc]=!1,this[nd]=null,l}this._zr.flush(),this[jc]=!1,this[nd]=null,VI.call(this,r),GI.call(this,r)}else if(n.unfinished){var i=Rhr,a=this._model,o=this._api;n.unfinished=!1;do{var s=+new Date;n.performSeriesTasks(a),n.performDataProcessorTasks(a),Xee(this,a),n.performVisualTasks(a),r9(this,this._model,o,"remain",{}),i-=+new Date-s}while(i>0&&n.unfinished);n.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(n,r,i){if(!this[jc]){if(this._disposed){this.id;return}var a,o,s;if(Fr(r)&&(i=r.lazyUpdate,a=r.silent,o=r.replaceMerge,s=r.transition,r=r.notMerge),this[jc]=!0,!this._model||r){var l=new Apr(this._api),c=this._theme,u=this._model=new Pge;u.scheduler=this._scheduler,u.ssr=this._ssr,u.init(null,null,null,c,this._locale,l)}this._model.setOption(n,{replaceMerge:o},Wse);var d={seriesTransition:s,optionChanged:!0};if(i)this[nd]={silent:a,updateParams:d},this[jc]=!1,this.getZr().wakeUp();else{try{Zw(this),Ty.update.call(this,null,d)}catch(f){throw this[nd]=null,this[jc]=!1,f}this._ssr||this._zr.flush(),this[nd]=null,this[jc]=!1,VI.call(this,a),GI.call(this,a)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||ci.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(n){return this.renderToCanvas(n)},t.prototype.renderToCanvas=function(n){n=n||{};var r=this._zr.painter;return r.getRenderedCanvas({backgroundColor:n.backgroundColor||this._model.get("backgroundColor"),pixelRatio:n.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(n){n=n||{};var r=this._zr.painter;return r.renderToString({useViewBox:n.useViewBox})},t.prototype.getSvgDataURL=function(){if(ci.svgSupported){var n=this._zr,r=n.storage.getDisplayList();return lt(r,function(i){i.stopAnimation(null,!0)}),n.painter.toDataURL()}},t.prototype.getDataURL=function(n){if(this._disposed){this.id;return}n=n||{};var r=n.excludeComponents,i=this._model,a=[],o=this;lt(r,function(l){i.eachComponent({mainType:l},function(c){var u=o._componentsMap[c.__viewId];u.group.ignore||(a.push(u),u.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(n).toDataURL("image/"+(n&&n.type||"png"));return lt(a,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(n){if(this._disposed){this.id;return}var r=n.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(wLe[i]){var l=s,c=s,u=-s,d=-s,f=[],p=n&&n.pixelRatio||this.getDevicePixelRatio();lt(VR,function(_,S){if(_.group===i){var C=r?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(Xi(n)),w=_.getDom().getBoundingClientRect();l=a(w.left,l),c=a(w.top,c),u=o(w.right,u),d=o(w.bottom,d),f.push({dom:C,left:w.left,top:w.top})}}),l*=p,c*=p,u*=p,d*=p;var h=u-l,m=d-c,g=e4.createCanvas(),v=U8e(g,{renderer:r?"svg":"canvas"});if(v.resize({width:h,height:m}),r){var y="";return lt(f,function(_){var S=_.left-l,C=_.top-c;y+='<g transform="translate('+S+","+C+')">'+_.dom+"</g>"}),v.painter.getSvgRoot().innerHTML=y,n.connectedBackgroundColor&&v.painter.setBackgroundColor(n.connectedBackgroundColor),v.refreshImmediately(),v.painter.toDataURL()}else return n.connectedBackgroundColor&&v.add(new Ps({shape:{x:0,y:0,width:h,height:m},style:{fill:n.connectedBackgroundColor}})),lt(f,function(_){var S=new G_({style:{x:_.left*p-l,y:_.top*p-c,image:_.dom}});v.add(S)}),v.refreshImmediately(),g.toDataURL("image/"+(n&&n.type||"png"))}else return this.getDataURL(n)},t.prototype.convertToPixel=function(n,r){return Kee(this,"convertToPixel",n,r)},t.prototype.convertFromPixel=function(n,r){return Kee(this,"convertFromPixel",n,r)},t.prototype.containPixel=function(n,r){if(this._disposed){this.id;return}var i=this._model,a,o=hee(i,n);return lt(o,function(s,l){l.indexOf("Models")>=0&&lt(s,function(c){var u=c.coordinateSystem;if(u&&u.containPoint)a=a||!!u.containPoint(r);else if(l==="seriesModels"){var d=this._chartsMap[c.__viewId];d&&d.containPoint&&(a=a||d.containPoint(r,c))}},this)},this),!!a},t.prototype.getVisual=function(n,r){var i=this._model,a=hee(i,n,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?ohr(s,l,r):shr(s,r)},t.prototype.getViewOfComponentModel=function(n){return this._componentsMap[n.__viewId]},t.prototype.getViewOfSeriesModel=function(n){return this._chartsMap[n.__viewId]},t.prototype._initEvents=function(){var n=this;lt(Hhr,function(r){var i=function(a){var o=n.getModel(),s=a.target,l,c=r==="globalout";if(c?l={}:s&&BA(s,function(h){var m=vo(h);if(m&&m.dataIndex!=null){var g=m.dataModel||o.getSeriesByIndex(m.seriesIndex);return l=g&&g.getDataParams(m.dataIndex,m.dataType,s)||{},!0}else if(m.eventData)return l=Vn({},m.eventData),!0},!0),l){var u=l.componentType,d=l.componentIndex;(u==="markLine"||u==="markPoint"||u==="markArea")&&(u="series",d=l.seriesIndex);var f=u&&d!=null&&o.getComponent(u,d),p=f&&n[f.mainType==="series"?"_chartsMap":"_componentsMap"][f.__viewId];l.event=a,l.type=r,n._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:f,view:p},n.trigger(r,l)}};i.zrEventfulCallAtLast=!0,n._zr.on(r,i,n)}),lt(HR,function(r,i){n._messageCenter.on(i,function(a){this.trigger(i,a)},n)}),lt(["selectchanged"],function(r){n._messageCenter.on(r,function(i){this.trigger(r,i)},n)}),Ufr(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var n=this.getDom();n&&lat(this.getDom(),Dge,"");var r=this,i=r._api,a=r._model;lt(r._componentsViews,function(o){o.dispose(a,i)}),lt(r._chartsViews,function(o){o.dispose(a,i)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete VR[r.id]},t.prototype.resize=function(n){if(!this[jc]){if(this._disposed){this.id;return}this._zr.resize(n);var r=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!r){var i=r.resetOption("media"),a=n&&n.silent;this[nd]&&(a==null&&(a=this[nd].silent),i=!0,this[nd]=null),this[jc]=!0;try{i&&Zw(this),Ty.update.call(this,{type:"resize",animation:Vn({duration:0},n&&n.animation)})}catch(o){throw this[jc]=!1,o}this[jc]=!1,VI.call(this,a),GI.call(this,a)}}},t.prototype.showLoading=function(n,r){if(this._disposed){this.id;return}if(Fr(n)&&(r=n,n=""),n=n||"default",this.hideLoading(),!!Yse[n]){var i=Yse[n](this._api,r),a=this._zr;this._loadingFX=i,a.add(i)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(n){var r=Vn({},n);return r.type=HR[n.type],r},t.prototype.dispatchAction=function(n,r){if(this._disposed){this.id;return}if(Fr(r)||(r={silent:!!r}),!!mB[n.type]&&this._model){if(this[jc]){this._pendingActions.push(n);return}var i=r.silent;Zee.call(this,n,i);var a=r.flush;a?this._zr.flush():a!==!1&&ci.browser.weChat&&this._throttledZrFlush(),VI.call(this,i),GI.call(this,i)}},t.prototype.updateLabelLayout=function(){Oh.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(n){if(this._disposed){this.id;return}var r=n.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(r);a.appendData(n),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){Zw=function(d){var f=d._scheduler;f.restorePipelines(d._model),f.prepareStageTasks(),Yee(d,!0),Yee(d,!1),f.plan()},Yee=function(d,f){for(var p=d._model,h=d._scheduler,m=f?d._componentsViews:d._chartsViews,g=f?d._componentsMap:d._chartsMap,v=d._zr,y=d._api,_=0;_<m.length;_++)m[_].__alive=!1;f?p.eachComponent(function(w,x){w!=="series"&&S(x)}):p.eachSeries(S);function S(w){var x=w.__requireNewView;w.__requireNewView=!1;var T="_ec_"+w.id+"_"+w.type,A=!x&&g[T];if(!A){var I=Bg(w.type),R=f?ym.getClass(I.main,I.sub):Zg.getClass(I.sub);A=new R,A.init(p,y),g[T]=A,m.push(A),v.add(A.group)}w.__viewId=A.__id=T,A.__alive=!0,A.__model=w,A.group.__ecComponentInfo={mainType:w.mainType,index:w.componentIndex},!f&&h.prepareView(A,w,p,y)}for(var _=0;_<m.length;){var C=m[_];C.__alive?_++:(!f&&C.renderTask.dispose(),v.remove(C.group),C.dispose(p,y),m.splice(_,1),g[C.__id]===C&&delete g[C.__id],C.__id=C.group.__ecComponentInfo=null)}},n9=function(d,f,p,h,m){var g=d._model;if(g.setUpdatePayload(p),!h){lt([].concat(d._componentsViews).concat(d._chartsViews),C);return}var v={};v[h+"Id"]=p[h+"Id"],v[h+"Index"]=p[h+"Index"],v[h+"Name"]=p[h+"Name"];var y={mainType:h,query:v};m&&(y.subType=m);var _=p.excludeSeriesId,S;_!=null&&(S=Mr(),lt(yl(_),function(w){var x=Xg(w,null);x!=null&&S.set(x,!0)})),g&&g.eachComponent(y,function(w){var x=S&&S.get(w.id)!=null;if(!x)if(kOe(p))if(w instanceof m_)p.type===yE&&!p.notBlur&&!w.get(["emphasis","disabled"])&&ncr(w,p,d._api);else{var T=nge(w.mainType,w.componentIndex,p.name,d._api),A=T.focusSelf,I=T.dispatchers;p.type===yE&&A&&!p.notBlur&&Cse(w.mainType,w.componentIndex,d._api),I&&lt(I,function(R){p.type===yE?eB(R):tB(R)})}else Tse(p)&&w instanceof m_&&(acr(w,p,d._api),OOe(w),ip(d))},d),g&&g.eachComponent(y,function(w){var x=S&&S.get(w.id)!=null;x||C(d[h==="series"?"_chartsMap":"_componentsMap"][w.__viewId])},d);function C(w){w&&w.__alive&&w[f]&&w[f](w.__model,g,d._api,p)}},Ty={prepareAndUpdate:function(d){Zw(this),Ty.update.call(this,d,{optionChanged:d.newOption!=null})},update:function(d,f){var p=this._model,h=this._api,m=this._zr,g=this._coordSysMgr,v=this._scheduler;if(p){p.setUpdatePayload(d),v.restoreData(p,d),v.performSeriesTasks(p),g.create(p,h),v.performDataProcessorTasks(p,d),Xee(this,p),g.update(p,h),n(p),v.performVisualTasks(p,d),Qee(this,p,h,d,f);var y=p.get("backgroundColor")||"transparent",_=p.get("darkMode");m.setBackgroundColor(y),_!=null&&_!=="auto"&&m.setDarkMode(_),Oh.trigger("afterupdate",p,h)}},updateTransform:function(d){var f=this,p=this._model,h=this._api;if(p){p.setUpdatePayload(d);var m=[];p.eachComponent(function(v,y){if(v!=="series"){var _=f.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(y,p,h,d);S&&S.update&&m.push(_)}else m.push(_)}});var g=Mr();p.eachSeries(function(v){var y=f._chartsMap[v.__viewId];if(y.updateTransform){var _=y.updateTransform(v,p,h,d);_&&_.update&&g.set(v.uid,1)}else g.set(v.uid,1)}),n(p),this._scheduler.performVisualTasks(p,d,{setDirty:!0,dirtyMap:g}),r9(this,p,h,d,{},g),Oh.trigger("afterupdate",p,h)}},updateView:function(d){var f=this._model;f&&(f.setUpdatePayload(d),Zg.markUpdateMethod(d,"updateView"),n(f),this._scheduler.performVisualTasks(f,d,{setDirty:!0}),Qee(this,f,this._api,d,{}),Oh.trigger("afterupdate",f,this._api))},updateVisual:function(d){var f=this,p=this._model;p&&(p.setUpdatePayload(d),p.eachSeries(function(h){h.getData().clearAllVisual()}),Zg.markUpdateMethod(d,"updateVisual"),n(p),this._scheduler.performVisualTasks(p,d,{visualType:"visual",setDirty:!0}),p.eachComponent(function(h,m){if(h!=="series"){var g=f.getViewOfComponentModel(m);g&&g.__alive&&g.updateVisual(m,p,f._api,d)}}),p.eachSeries(function(h){var m=f._chartsMap[h.__viewId];m.updateVisual(h,p,f._api,d)}),Oh.trigger("afterupdate",p,this._api))},updateLayout:function(d){Ty.update.call(this,d)}},Kee=function(d,f,p,h){if(d._disposed){d.id;return}for(var m=d._model,g=d._coordSysMgr.getCoordinateSystems(),v,y=hee(m,p),_=0;_<g.length;_++){var S=g[_];if(S[f]&&(v=S[f](m,y,h))!=null)return v}},Xee=function(d,f){var p=d._chartsMap,h=d._scheduler;f.eachSeries(function(m){h.updateStreamModes(m,p[m.__viewId])})},Zee=function(d,f){var p=this,h=this.getModel(),m=d.type,g=d.escapeConnect,v=mB[m],y=v.actionInfo,_=(y.update||"update").split(":"),S=_.pop(),C=_[0]!=null&&Bg(_[0]);this[jc]=!0;var w=[d],x=!1;d.batch&&(x=!0,w=Nr(d.batch,function(L){return L=Hi(Vn({},L),d),L.batch=null,L}));var T=[],A,I=Tse(d),R=kOe(d);if(R&&vat(this._api),lt(w,function(L){if(A=v.action(L,p._model,p._api),A=A||Vn({},L),A.type=y.event||A.type,T.push(A),R){var $=Qme(d),D=$.queryOptionMap,z=$.mainTypeSpecified,U=z?D.keys()[0]:"series";n9(p,S,L,U),ip(p)}else I?(n9(p,S,L,"series"),ip(p)):C&&n9(p,S,L,C.main,C.sub)}),S!=="none"&&!R&&!I&&!C)try{this[nd]?(Zw(this),Ty.update.call(this,d),this[nd]=null):Ty[S].call(this,d)}catch(L){throw this[jc]=!1,L}if(x?A={type:y.event||m,escapeConnect:g,batch:T}:A=T[0],this[jc]=!1,!f){var N=this._messageCenter;if(N.trigger(A.type,A),I){var P={type:"selectchanged",escapeConnect:g,selected:ocr(h),isFromClick:d.isFromClick||!1,fromAction:d.type,fromActionPayload:d};N.trigger(P.type,P)}}},VI=function(d){for(var f=this._pendingActions;f.length;){var p=f.shift();Zee.call(this,p,d)}},GI=function(d){!d&&this.trigger("updated")},bLe=function(d,f){d.on("rendered",function(p){f.trigger("rendered",p),d.animation.isFinished()&&!f[nd]&&!f._scheduler.unfinished&&!f._pendingActions.length&&f.trigger("finished")})},_Le=function(d,f){d.on("mouseover",function(p){var h=p.target,m=BA(h,xse);m&&(rcr(m,p,f._api),ip(f))}).on("mouseout",function(p){var h=p.target,m=BA(h,xse);m&&(icr(m,p,f._api),ip(f))}).on("click",function(p){var h=p.target,m=BA(h,function(y){return vo(y).dataIndex!=null},!0);if(m){var g=m.selected?"unselect":"select",v=vo(m);f._api.dispatchAction({type:g,dataType:v.dataType,dataIndexInside:v.dataIndex,seriesIndex:v.seriesIndex,isFromClick:!0})}})};function n(d){d.clearColorPalette(),d.eachSeries(function(f){f.clearColorPalette()})}function r(d){var f=[],p=[],h=!1;if(d.eachComponent(function(y,_){var S=_.get("zlevel")||0,C=_.get("z")||0,w=_.getZLevelKey();h=h||!!w,(y==="series"?p:f).push({zlevel:S,z:C,idx:_.componentIndex,type:y,key:w})}),h){var m=f.concat(p),g,v;eD(m,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),lt(m,function(y){var _=d.getComponent(y.type,y.idx),S=y.zlevel,C=y.key;g!=null&&(S=Math.max(g,S)),C?(S===g&&C!==v&&S++,v=C):v&&(S===g&&S++,v=""),g=S,_.setZLevel(S)})}}Qee=function(d,f,p,h,m){r(f),SLe(d,f,p,h,m),lt(d._chartsViews,function(g){g.__alive=!1}),r9(d,f,p,h,m),lt(d._chartsViews,function(g){g.__alive||g.remove(f,p)})},SLe=function(d,f,p,h,m,g){lt(g||d._componentsViews,function(v){var y=v.__model;c(y,v),v.render(y,f,p,h),s(y,v),u(y,v)})},r9=function(d,f,p,h,m,g){var v=d._scheduler;m=Vn(m||{},{updatedSeries:f.getSeries()}),Oh.trigger("series:beforeupdate",f,p,m);var y=!1;f.eachSeries(function(_){var S=d._chartsMap[_.__viewId];S.__alive=!0;var C=S.renderTask;v.updatePayload(C,h),c(_,S),g&&g.get(_.uid)&&C.dirty(),C.perform(v.getPerformArgs(C))&&(y=!0),S.group.silent=!!_.get("silent"),o(_,S),OOe(_)}),v.unfinished=y||v.unfinished,Oh.trigger("series:layoutlabels",f,p,m),Oh.trigger("series:transition",f,p,m),f.eachSeries(function(_){var S=d._chartsMap[_.__viewId];s(_,S),u(_,S)}),a(d,f),Oh.trigger("series:afterupdate",f,p,m)},ip=function(d){d[qee]=!0,d.getZr().wakeUp()},CLe=function(d){d[qee]&&(d.getZr().storage.traverse(function(f){BR(f)||i(f)}),d[qee]=!1)};function i(d){for(var f=[],p=d.currentStates,h=0;h<p.length;h++){var m=p[h];m==="emphasis"||m==="blur"||m==="select"||f.push(m)}d.selected&&d.states.select&&f.push("select"),d.hoverState===sH&&d.states.emphasis?f.push("emphasis"):d.hoverState===oH&&d.states.blur&&f.push("blur"),d.useStates(f)}function a(d,f){var p=d._zr,h=p.storage,m=0;h.traverse(function(g){g.isGroup||m++}),m>f.get("hoverLayerThreshold")&&!ci.node&&!ci.worker&&f.eachSeries(function(g){if(!g.preventUsingHoverLayer){var v=d._chartsMap[g.__viewId];v.__alive&&v.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function o(d,f){var p=d.get("blendMode")||null;f.eachRendered(function(h){h.isGroup||(h.style.blend=p)})}function s(d,f){if(!d.preventAutoZ){var p=d.get("z")||0,h=d.get("zlevel")||0;f.eachRendered(function(m){return l(m,p,h,-1/0),!0})}}function l(d,f,p,h){var m=d.getTextContent(),g=d.getTextGuideLine(),v=d.isGroup;if(v)for(var y=d.childrenRef(),_=0;_<y.length;_++)h=Math.max(l(y[_],f,p,h),h);else d.z=f,d.zlevel=p,h=Math.max(d.z2,h);if(m&&(m.z=f,m.zlevel=p,isFinite(h)&&(m.z2=h+2)),g){var S=d.textGuideLineConfig;g.z=f,g.zlevel=p,isFinite(h)&&(g.z2=h+(S&&S.showAbove?1:-1))}return h}function c(d,f){f.eachRendered(function(p){if(!BR(p)){var h=p.getTextContent(),m=p.getTextGuideLine();p.stateTransition&&(p.stateTransition=null),h&&h.stateTransition&&(h.stateTransition=null),m&&m.stateTransition&&(m.stateTransition=null),p.hasState()?(p.prevStates=p.currentStates,p.clearStates()):p.prevStates&&(p.prevStates=null)}})}function u(d,f){var p=d.getModel("stateAnimation"),h=d.isAnimationEnabled(),m=p.get("duration"),g=m>0?{duration:m,delay:p.get("delay"),easing:p.get("easing")}:null;f.eachRendered(function(v){if(v.states&&v.states.emphasis){if(BR(v))return;if(v instanceof ha&&dcr(v),v.__dirty){var y=v.prevStates;y&&v.useStates(y)}if(h){v.stateTransition=g;var _=v.getTextContent(),S=v.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}v.__dirty&&i(v)}})}ELe=function(d){return new(function(f){tr(p,f);function p(){return f!==null&&f.apply(this,arguments)||this}return p.prototype.getCoordinateSystems=function(){return d._coordSysMgr.getCoordinateSystems()},p.prototype.getComponentByElement=function(h){for(;h;){var m=h.__ecComponentInfo;if(m!=null)return d._model.getComponent(m.mainType,m.index);h=h.parent}},p.prototype.enterEmphasis=function(h,m){eB(h,m),ip(d)},p.prototype.leaveEmphasis=function(h,m){tB(h,m),ip(d)},p.prototype.enterBlur=function(h){tcr(h),ip(d)},p.prototype.leaveBlur=function(h){pat(h),ip(d)},p.prototype.enterSelect=function(h){hat(h),ip(d)},p.prototype.leaveSelect=function(h){mat(h),ip(d)},p.prototype.getModel=function(){return d.getModel()},p.prototype.getViewOfComponentModel=function(h){return d.getViewOfComponentModel(h)},p.prototype.getViewOfSeriesModel=function(h){return d.getViewOfSeriesModel(h)},p}(Got))(d)},vst=function(d){function f(p,h){for(var m=0;m<p.length;m++){var g=p[m];g[Wee]=h}}lt(HR,function(p,h){d._messageCenter.on(h,function(m){if(wLe[d.group]&&d[Wee]!==yLe){if(m&&m.escapeConnect)return;var g=d.makeActionFromEvent(m),v=[];lt(VR,function(y){y!==d&&y.group===d.group&&v.push(y)}),f(v,yLe),lt(v,function(y){y[Wee]!==zhr&&y.dispatchAction(g)}),f(v,Uhr)}})})}}(),t}(Om),Mge=yst.prototype;Mge.on=fst("on");Mge.off=fst("off");Mge.one=function(e,t,n){var r=this;function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];t&&t.apply&&t.apply(this,a),r.off(e,i)}this.on.call(this,e,i,n)};var Hhr=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var mB={},HR={},qse=[],Wse=[],gB=[],bst={},Yse={},VR={},wLe={},Vhr=+new Date-0,Dge="_echarts_instance_";function Ghr(e,t,n){{var r=qhr(e);if(r)return r}var i=new yst(e,t,n);return i.id="ec_"+Vhr++,VR[i.id]=i,lat(e,Dge,i.id),vst(i),Oh.trigger("afterinit",i),i}function qhr(e){return VR[Ulr(e,Dge)]}function _st(e,t){bst[e]=t}function Sst(e){ja(Wse,e)<0&&Wse.push(e)}function Est(e,t){Fge(qse,e,t,Phr)}function Whr(e){$ge("afterinit",e)}function Yhr(e){$ge("afterupdate",e)}function $ge(e,t){Oh.on(e,t)}function $C(e,t,n){hi(t)&&(n=t,t="");var r=Fr(e)?e.type:[e,e={event:t}][0];e.event=(e.event||r).toLowerCase(),t=e.event,!HR[t]&&(c0(vLe.test(r)&&vLe.test(t)),mB[r]||(mB[r]={action:n,actionInfo:e}),HR[t]=r)}function Khr(e,t){yge.register(e,t)}function Xhr(e,t){Fge(gB,e,t,cst,"layout")}function FC(e,t){Fge(gB,e,t,ust,"visual")}var xLe=[];function Fge(e,t,n,r,i){if((hi(t)||Fr(t))&&(n=t,t=r),!(ja(xLe,n)>=0)){xLe.push(n);var a=Xot.wrapStageHandler(n,i);a.__prio=t,a.__raw=n,e.push(a)}}function Cst(e,t){Yse[e]=t}function Zhr(e,t,n){var r=Ahr("registerMap");r&&r(e,t,n)}var Qhr=Ldr;FC(kge,Hpr);FC(wH,Vpr);FC(wH,Gpr);FC(kge,ihr);FC(wH,ahr);FC(dst,Thr);Sst(Wot);Est(Ohr,jpr);Cst("default",qpr);$C({type:yE,event:yE,update:yE},Ru);$C({type:WM,event:WM,update:WM},Ru);$C({type:DR,event:DR,update:DR},Ru);$C({type:YM,event:YM,update:YM},Ru);$C({type:$R,event:$R,update:$R},Ru);_st("light",nhr);_st("dark",est);var TLe=[],Jhr={registerPreprocessor:Sst,registerProcessor:Est,registerPostInit:Whr,registerPostUpdate:Yhr,registerUpdateLifecycle:$ge,registerAction:$C,registerCoordinateSystem:Khr,registerLayout:Xhr,registerVisual:FC,registerTransform:Qhr,registerLoading:Cst,registerMap:Zhr,registerImpl:Ihr,PRIORITY:jhr,ComponentModel:qa,ComponentView:ym,SeriesModel:m_,ChartView:Zg,registerComponentModel:function(e){qa.registerClass(e)},registerComponentView:function(e){ym.registerClass(e)},registerSeriesModel:function(e){m_.registerClass(e)},registerChartView:function(e){Zg.registerClass(e)},registerSubTypeDefaulter:function(e,t){qa.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){bpr(e,t)}};function bm(e){if(ar(e)){lt(e,function(t){bm(t)});return}ja(TLe,e)>=0||(TLe.push(e),hi(e)&&(e={install:e}),e.install(Jhr))}var emr=function(e){tr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(qa),tmr=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),Kse=function(e){tr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",bd).models[0]},t.type="cartesian2dAxis",t}(qa);Cv(Kse,tmr);var wst={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},nmr=ba({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},wst),Bge=ba({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},wst),rmr=ba({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Bge),imr=Hi({logBase:10},Bge);const amr={category:nmr,value:Bge,time:rmr,log:imr};var omr=0,Xse=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++omr}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&Nr(r,smr);return new e({categories:i,needCollect:!i,deduplication:n.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var n,r=this._needCollect;if(!yr(t)&&!r)return t;if(r&&!this._deduplication)return n=this.categories.length,this.categories[n]=t,n;var i=this._getOrCreateMap();return n=i.get(t),n==null&&(r?(n=this.categories.length,this.categories[n]=t,i.set(t,n)):n=NaN),n},e.prototype._getOrCreateMap=function(){return this._map||(this._map=Mr(this.categories))},e}();function smr(e){return Fr(e)&&e.value!=null?e.value:e+""}var lmr={value:1,category:1,time:1,log:1};function ILe(e,t,n,r){lt(lmr,function(i,a){var o=ba(ba({},amr[a],!0),r,!0),s=function(l){tr(c,l);function c(){var u=l!==null&&l.apply(this,arguments)||this;return u.type=t+"Axis."+a,u}return c.prototype.mergeDefaultAndTheme=function(u,d){var f=C6(this),p=f?T8(u):{},h=d.getTheme();ba(u,h.get(a+"Axis")),ba(u,this.getDefaultOption()),u.type=ALe(u),f&&j3(u,p,f)},c.prototype.optionUpdated=function(){var u=this.option;u.type==="category"&&(this.__ordinalMeta=Xse.createByAxisModel(this))},c.prototype.getCategories=function(u){var d=this.option;if(d.type==="category")return u?d.data:this.__ordinalMeta.categories},c.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},c.type=t+"Axis."+a,c.defaultOption=o,c}(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",ALe)}function ALe(e){return e.type||(e.data?"category":"value")}var xv=function(){function e(t){this._setting=t||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(t){return this._setting[t]},e.prototype.unionExtent=function(t){var n=this._extent;t[0]<n[0]&&(n[0]=t[0]),t[1]>n[1]&&(n[1]=t[1])},e.prototype.unionExtentFromData=function(t,n){this.unionExtent(t.getApproximateExtent(n))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,n){var r=this._extent;isNaN(t)||(r[0]=t),isNaN(n)||(r[1]=n)},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e}();eH(xv);function Zse(e){return e.type==="interval"||e.type==="log"}function cmr(e,t,n,r){var i={},a=e[1]-e[0],o=i.interval=rat(a/t);n!=null&&o<n&&(o=i.interval=n),r!=null&&o>r&&(o=i.interval=r);var s=i.intervalPrecision=xst(o),l=i.niceTickExtent=[gl(Math.ceil(e[0]/o)*o,s),gl(Math.floor(e[1]/o)*o,s)];return umr(l,e),i}function Jee(e){var t=Math.pow(10,Xme(e)),n=e/t;return n?n===2?n=3:n===3?n=5:n*=2:n=1,gl(n*t)}function xst(e){return D1(e)+2}function RLe(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function umr(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),RLe(e,0,t),RLe(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function xH(e,t){return e>=t[0]&&e<=t[1]}function TH(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function IH(e,t){return e*(t[1]-t[0])+t[0]}var jge=function(e){tr(t,e);function t(n){var r=e.call(this,n)||this;r.type="ordinal";var i=r.getSetting("ordinalMeta");return i||(i=new Xse({})),ar(i)&&(i=new Xse({categories:Nr(i,function(a){return Fr(a)?a.value:a})})),r._ordinalMeta=i,r._extent=r.getSetting("extent")||[0,i.categories.length-1],r}return t.prototype.parse=function(n){return n==null?NaN:yr(n)?this._ordinalMeta.getOrdinal(n):Math.round(n)},t.prototype.contain=function(n){return n=this.parse(n),xH(n,this._extent)&&this._ordinalMeta.categories[n]!=null},t.prototype.normalize=function(n){return n=this._getTickNumber(this.parse(n)),TH(n,this._extent)},t.prototype.scale=function(n){return n=Math.round(IH(n,this._extent)),this.getRawOrdinalNumber(n)},t.prototype.getTicks=function(){for(var n=[],r=this._extent,i=r[0];i<=r[1];)n.push({value:i}),i++;return n},t.prototype.getMinorTicks=function(n){},t.prototype.setSortInfo=function(n){if(n==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var r=n.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,r.length);o<l;++o){var c=r[o];i[o]=c,a[c]=o}for(var u=0;o<s;++o){for(;a[u]!=null;)u++;i.push(u),a[u]=o}},t.prototype._getTickNumber=function(n){var r=this._ticksByOrdinalNumber;return r&&n>=0&&n<r.length?r[n]:n},t.prototype.getRawOrdinalNumber=function(n){var r=this._ordinalNumbersByTick;return r&&n>=0&&n<r.length?r[n]:n},t.prototype.getLabel=function(n){if(!this.isBlank()){var r=this.getRawOrdinalNumber(n.value),i=this._ordinalMeta.categories[r];return i==null?"":i+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(n,r){this.unionExtent(n.getApproximateExtent(r))},t.prototype.isInExtentRange=function(n){return n=this._getTickNumber(n),this._extent[0]<=n&&this._extent[1]>=n},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(xv);xv.registerClass(jge);var eS=gl,o4=function(e){tr(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="interval",n._interval=0,n._intervalPrecision=2,n}return t.prototype.parse=function(n){return n},t.prototype.contain=function(n){return xH(n,this._extent)},t.prototype.normalize=function(n){return TH(n,this._extent)},t.prototype.scale=function(n){return IH(n,this._extent)},t.prototype.setExtent=function(n,r){var i=this._extent;isNaN(n)||(i[0]=parseFloat(n)),isNaN(r)||(i[1]=parseFloat(r))},t.prototype.unionExtent=function(n){var r=this._extent;n[0]<r[0]&&(r[0]=n[0]),n[1]>r[1]&&(r[1]=n[1]),this.setExtent(r[0],r[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(n){this._interval=n,this._niceExtent=this._extent.slice(),this._intervalPrecision=xst(n)},t.prototype.getTicks=function(n){var r=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!r)return s;var l=1e4;i[0]<a[0]&&(n?s.push({value:eS(a[0]-r,o)}):s.push({value:i[0]}));for(var c=a[0];c<=a[1]&&(s.push({value:c}),c=eS(c+r,o),c!==s[s.length-1].value);)if(s.length>l)return[];var u=s.length?s[s.length-1].value:a[1];return i[1]>u&&(n?s.push({value:eS(u+r,o)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(n){for(var r=this.getTicks(!0),i=[],a=this.getExtent(),o=1;o<r.length;o++){for(var s=r[o],l=r[o-1],c=0,u=[],d=s.value-l.value,f=d/n;c<n-1;){var p=eS(l.value+(c+1)*f);p>a[0]&&p<a[1]&&u.push(p),c++}i.push(u)}return i},t.prototype.getLabel=function(n,r){if(n==null)return"";var i=r&&r.precision;i==null?i=D1(n.value)||0:i==="auto"&&(i=this._intervalPrecision);var a=eS(n.value,i,!0);return fot(a)},t.prototype.calcNiceTicks=function(n,r,i){n=n||5;var a=this._extent,o=a[1]-a[0];if(isFinite(o)){o<0&&(o=-o,a.reverse());var s=cmr(a,n,r,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(n){var r=this._extent;if(r[0]===r[1])if(r[0]!==0){var i=Math.abs(r[0]);n.fixMax||(r[1]+=i/2),r[0]-=i/2}else r[1]=1;var a=r[1]-r[0];isFinite(a)||(r[0]=0,r[1]=1),this.calcNiceTicks(n.splitNumber,n.minInterval,n.maxInterval);var o=this._interval;n.fixMin||(r[0]=eS(Math.floor(r[0]/o)*o)),n.fixMax||(r[1]=eS(Math.ceil(r[1]/o)*o))},t.prototype.setNiceExtent=function(n,r){this._niceExtent=[n,r]},t.type="interval",t}(xv);xv.registerClass(o4);var dmr=function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n},Tst=function(e){tr(t,e);function t(n){var r=e.call(this,n)||this;return r.type="time",r}return t.prototype.getLabel=function(n){var r=this.getSetting("useUTC");return vH(n.value,u8e[fdr(W5(this._minLevelUnit))]||u8e.second,r,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(n,r,i){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return pdr(n,r,i,o,a)},t.prototype.getTicks=function(){var n=this._interval,r=this._extent,i=[];if(!n)return i;i.push({value:r[0],level:0});var a=this.getSetting("useUTC"),o=ymr(this._minLevelUnit,this._approxInterval,a,r);return i=i.concat(o),i.push({value:r[1],level:0}),i},t.prototype.calcNiceExtent=function(n){var r=this._extent;if(r[0]===r[1]&&(r[0]-=yp,r[1]+=yp),r[1]===-1/0&&r[0]===1/0){var i=new Date;r[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),r[0]=r[1]-yp}this.calcNiceTicks(n.splitNumber,n.minInterval,n.maxInterval)},t.prototype.calcNiceTicks=function(n,r,i){n=n||10;var a=this._extent,o=a[1]-a[0];this._approxInterval=o/n,r!=null&&this._approxInterval<r&&(this._approxInterval=r),i!=null&&this._approxInterval>i&&(this._approxInterval=i);var s=i9.length,l=Math.min(dmr(i9,this._approxInterval,0,s),s-1);this._interval=i9[l][1],this._minLevelUnit=i9[Math.max(l-1,0)][0]},t.prototype.parse=function(n){return is(n)?n:+u0(n)},t.prototype.contain=function(n){return xH(this.parse(n),this._extent)},t.prototype.normalize=function(n){return TH(this.parse(n),this._extent)},t.prototype.scale=function(n){return IH(n,this._extent)},t.type="time",t}(o4),i9=[["second",Ege],["minute",Cge],["hour",jR],["quarter-day",jR*6],["half-day",jR*12],["day",yp*1.2],["half-week",yp*3.5],["week",yp*7],["month",yp*31],["quarter",yp*95],["half-year",c8e/2],["year",c8e]];function fmr(e,t,n,r){var i=u0(t),a=u0(n),o=function(h){return d8e(i,h,r)===d8e(a,h,r)},s=function(){return o("year")},l=function(){return s()&&o("month")},c=function(){return l()&&o("day")},u=function(){return c()&&o("hour")},d=function(){return u()&&o("minute")},f=function(){return d()&&o("second")},p=function(){return f()&&o("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return c();case"hour":return u();case"minute":return d();case"second":return f();case"millisecond":return p()}}function pmr(e,t){return e/=yp,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function hmr(e){var t=30*yp;return e/=t,e>6?6:e>3?3:e>2?2:1}function mmr(e){return e/=jR,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function NLe(e,t){return e/=t?Cge:Ege,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function gmr(e){return rat(e)}function vmr(e,t,n){var r=new Date(e);switch(W5(t)){case"year":case"month":r[oot(n)](0);case"day":r[sot(n)](1);case"hour":r[lot(n)](0);case"minute":r[cot(n)](0);case"second":r[uot(n)](0),r[dot(n)](0)}return r.getTime()}function ymr(e,t,n,r){var i=1e4,a=iot,o=0;function s(I,R,N,P,L,$,D){for(var z=new Date(R),U=R,H=z[P]();U<N&&U<=r[1];)D.push({value:U}),H+=I,z[L](H),U=z.getTime();D.push({value:U,notAdd:!0})}function l(I,R,N){var P=[],L=!R.length;if(!fmr(W5(I),r[0],r[1],n)){L&&(R=[{value:vmr(new Date(r[0]),I,n)},{value:r[1]}]);for(var $=0;$<R.length-1;$++){var D=R[$].value,z=R[$+1].value;if(D!==z){var U=void 0,H=void 0,M=void 0,B=!1;switch(I){case"year":U=Math.max(1,Math.round(t/yp/365)),H=wge(n),M=hdr(n);break;case"half-year":case"quarter":case"month":U=hmr(t),H=Y5(n),M=oot(n);break;case"week":case"half-week":case"day":U=pmr(t),H=yH(n),M=sot(n),B=!0;break;case"half-day":case"quarter-day":case"hour":U=mmr(t),H=S6(n),M=lot(n);break;case"minute":U=NLe(t,!0),H=bH(n),M=cot(n);break;case"second":U=NLe(t,!1),H=_H(n),M=uot(n);break;case"millisecond":U=gmr(t),H=SH(n),M=dot(n);break}s(U,D,z,H,M,B,P),I==="year"&&N.length>1&&$===0&&N.unshift({value:N[0].value-U})}}for(var $=0;$<P.length;$++)N.push(P[$]);return P}}for(var c=[],u=[],d=0,f=0,p=0;p<a.length&&o++<i;++p){var h=W5(a[p]);if(ddr(a[p])){l(a[p],c[c.length-1]||[],u);var m=a[p+1]?W5(a[p+1]):null;if(h!==m){if(u.length){f=d,u.sort(function(I,R){return I.value-R.value});for(var g=[],v=0;v<u.length;++v){var y=u[v].value;(v===0||u[v-1].value!==y)&&(g.push(u[v]),y>=r[0]&&y<=r[1]&&d++)}var _=(r[1]-r[0])/t;if(d>_*1.5&&f>_/1.5||(c.push(g),d>_||e===a[p]))break}u=[]}}}for(var S=mc(Nr(c,function(I){return mc(I,function(R){return R.value>=r[0]&&R.value<=r[1]&&!R.notAdd})}),function(I){return I.length>0}),C=[],w=S.length-1,p=0;p<S.length;++p)for(var x=S[p],T=0;T<x.length;++T)C.push({value:x[T].value,level:w-p});C.sort(function(I,R){return I.value-R.value});for(var A=[],p=0;p<C.length;++p)(p===0||C[p].value!==C[p-1].value)&&A.push(C[p]);return A}xv.registerClass(Tst);var OLe=xv.prototype,GR=o4.prototype,bmr=gl,_mr=Math.floor,Smr=Math.ceil,a9=Math.pow,Sh=Math.log,zge=function(e){tr(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="log",n.base=10,n._originalScale=new o4,n._interval=0,n}return t.prototype.getTicks=function(n){var r=this._originalScale,i=this._extent,a=r.getExtent(),o=GR.getTicks.call(this,n);return Nr(o,function(s){var l=s.value,c=gl(a9(this.base,l));return c=l===i[0]&&this._fixMin?o9(c,a[0]):c,c=l===i[1]&&this._fixMax?o9(c,a[1]):c,{value:c}},this)},t.prototype.setExtent=function(n,r){var i=Sh(this.base);n=Sh(Math.max(0,n))/i,r=Sh(Math.max(0,r))/i,GR.setExtent.call(this,n,r)},t.prototype.getExtent=function(){var n=this.base,r=OLe.getExtent.call(this);r[0]=a9(n,r[0]),r[1]=a9(n,r[1]);var i=this._originalScale,a=i.getExtent();return this._fixMin&&(r[0]=o9(r[0],a[0])),this._fixMax&&(r[1]=o9(r[1],a[1])),r},t.prototype.unionExtent=function(n){this._originalScale.unionExtent(n);var r=this.base;n[0]=Sh(n[0])/Sh(r),n[1]=Sh(n[1])/Sh(r),OLe.unionExtent.call(this,n)},t.prototype.unionExtentFromData=function(n,r){this.unionExtent(n.getApproximateExtent(r))},t.prototype.calcNiceTicks=function(n){n=n||10;var r=this._extent,i=r[1]-r[0];if(!(i===1/0||i<=0)){var a=Ilr(i),o=n/i*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[gl(Smr(r[0]/a)*a),gl(_mr(r[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(n){GR.calcNiceExtent.call(this,n),this._fixMin=n.fixMin,this._fixMax=n.fixMax},t.prototype.parse=function(n){return n},t.prototype.contain=function(n){return n=Sh(n)/Sh(this.base),xH(n,this._extent)},t.prototype.normalize=function(n){return n=Sh(n)/Sh(this.base),TH(n,this._extent)},t.prototype.scale=function(n){return n=IH(n,this._extent),a9(this.base,n)},t.type="log",t}(xv),Ist=zge.prototype;Ist.getMinorTicks=GR.getMinorTicks;Ist.getLabel=GR.getLabel;function o9(e,t){return bmr(e,D1(t))}xv.registerClass(zge);var Emr=function(){function e(t,n,r){this._prepareParams(t,n,r)}return e.prototype._prepareParams=function(t,n,r){r[1]<r[0]&&(r=[NaN,NaN]),this._dataMin=r[0],this._dataMax=r[1];var i=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&n.getNeedCrossZero&&n.getNeedCrossZero();var a=n.get("min",!0);a==null&&(a=n.get("startValue",!0));var o=this._modelMinRaw=a;hi(o)?this._modelMinNum=s9(t,o({min:r[0],max:r[1]})):o!=="dataMin"&&(this._modelMinNum=s9(t,o));var s=this._modelMaxRaw=n.get("max",!0);if(hi(s)?this._modelMaxNum=s9(t,s({min:r[0],max:r[1]})):s!=="dataMax"&&(this._modelMaxNum=s9(t,s)),i)this._axisDataLen=n.getCategories().length;else{var l=n.get("boundaryGap"),c=ar(l)?l:[l||0,l||0];typeof c[0]=="boolean"||typeof c[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[iC(c[0],1),iC(c[1],1)]}},e.prototype.calculate=function(){var t=this._isOrdinal,n=this._dataMin,r=this._dataMax,i=this._axisDataLen,a=this._boundaryGapInner,o=t?null:r-n||Math.abs(n),s=this._modelMinRaw==="dataMin"?n:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?r:this._modelMaxNum,c=s!=null,u=l!=null;s==null&&(s=t?i?0:NaN:n-a[0]*o),l==null&&(l=t?i?i-1:NaN:r+a[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var d=GF(s)||GF(l)||t&&!i;this._needCrossZero&&(s>0&&l>0&&!c&&(s=0),s<0&&l<0&&!u&&(l=0));var f=this._determinedMin,p=this._determinedMax;return f!=null&&(s=f,c=!0),p!=null&&(l=p,u=!0),{min:s,max:l,minFixed:c,maxFixed:u,isBlank:d}},e.prototype.modifyDataMinMax=function(t,n){this[wmr[t]]=n},e.prototype.setDeterminedMinMax=function(t,n){var r=Cmr[t];this[r]=n},e.prototype.freeze=function(){this.frozen=!0},e}(),Cmr={min:"_determinedMin",max:"_determinedMax"},wmr={min:"_dataMin",max:"_dataMax"};function Ast(e,t,n){var r=e.rawExtentInfo;return r||(r=new Emr(e,t,n),e.rawExtentInfo=r,r)}function s9(e,t){return t==null?null:GF(t)?NaN:e.parse(t)}function Rst(e,t){var n=e.type,r=Ast(e,t,e.getExtent()).calculate();e.setBlank(r.isBlank);var i=r.min,a=r.max,o=t.ecModel;if(o&&n==="time"){var s=Pot("bar",o),l=!1;if(lt(s,function(d){l=l||d.getBaseAxis()===t.axis}),l){var c=kot(s),u=xmr(i,a,t,c);i=u.min,a=u.max}}return{extent:[i,a],fixMin:r.minFixed,fixMax:r.maxFixed}}function xmr(e,t,n,r){var i=n.axis.getExtent(),a=i[1]-i[0],o=jfr(r,n.axis);if(o===void 0)return{min:e,max:t};var s=1/0;lt(o,function(p){s=Math.min(p.offset,s)});var l=-1/0;lt(o,function(p){l=Math.max(p.offset+p.width,l)}),s=Math.abs(s),l=Math.abs(l);var c=s+l,u=t-e,d=1-(s+l)/a,f=u/d-u;return t+=f*(l/c),e-=f*(s/c),{min:e,max:t}}function LLe(e,t){var n=t,r=Rst(e,n),i=r.extent,a=n.get("splitNumber");e instanceof zge&&(e.base=n.get("logBase"));var o=e.type,s=n.get("interval"),l=o==="interval"||o==="time";e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:a,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function Tmr(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new jge({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new Tst({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(xv.getClass(t)||o4)}}function Imr(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}function s4(e){var t=e.getLabelModel().get("formatter"),n=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?function(r){return function(i,a){return e.scale.getFormattedLabel(i,a,r)}}(t):yr(t)?function(r){return function(i){var a=e.scale.getLabel(i),o=r.replace("{value}",a??"");return o}}(t):hi(t)?function(r){return function(i,a){return n!=null&&(a=i.value-n),r(Uge(e,i),a,i.level!=null?{level:i.level}:null)}}(t):function(r){return e.scale.getLabel(r)}}function Uge(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function Amr(e){var t=e.model,n=e.scale;if(!(!t.get(["axisLabel","show"])||n.isBlank())){var r,i,a=n.getExtent();n instanceof jge?i=n.count():(r=n.getTicks(),i=r.length);var o=e.getLabelModel(),s=s4(e),l,c=1;i>40&&(c=Math.ceil(i/40));for(var u=0;u<i;u+=c){var d=r?r[u]:{value:a[0]+u},f=s(d,u),p=o.getTextRect(f),h=Rmr(p,o.get("rotate")||0);l?l.union(h):l=h}return l}}function Rmr(e,t){var n=t*Math.PI/180,r=e.width,i=e.height,a=r*Math.abs(Math.cos(n))+Math.abs(i*Math.sin(n)),o=r*Math.abs(Math.sin(n))+Math.abs(i*Math.cos(n)),s=new Na(e.x,e.y,a,o);return s}function Hge(e){var t=e.get("interval");return t??"auto"}function Nst(e){return e.type==="category"&&Hge(e.getLabelModel())===0}function Ost(e,t){var n={};return lt(e.mapDimensionsAll(t),function(r){n[Gur(e,r)]=!0}),rs(n)}function Nmr(e,t,n){t&&lt(Ost(t,n),function(r){var i=t.getApproximateExtent(r);i[0]<e[0]&&(e[0]=i[0]),i[1]>e[1]&&(e[1]=i[1])})}var Omr=function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return Nr(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),mc(this.getAxes(),function(n){return n.scale.type===t})},e.prototype.addAxis=function(t){var n=t.dim;this._axes[n]=t,this._dimList.push(n)},e}(),Qse=["x","y"];function PLe(e){return e.type==="interval"||e.type==="time"}var Lmr=function(e){tr(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="cartesian2d",n.dimensions=Qse,n}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var n=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!PLe(n)||!PLe(r))){var i=n.getExtent(),a=r.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],c=a[1]-a[0];if(!(!l||!c)){var u=(s[0]-o[0])/l,d=(s[1]-o[1])/c,f=o[0]-i[0]*u,p=o[1]-a[0]*d,h=this._transform=[u,0,0,d,f,p];this._invTransform=qme([],h)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(n){var r=this.getAxis("x"),i=this.getAxis("y");return r.contain(r.toLocalCoord(n[0]))&&i.contain(i.toLocalCoord(n[1]))},t.prototype.containData=function(n){return this.getAxis("x").containData(n[0])&&this.getAxis("y").containData(n[1])},t.prototype.containZone=function(n,r){var i=this.dataToPoint(n),a=this.dataToPoint(r),o=this.getArea(),s=new Na(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},t.prototype.dataToPoint=function(n,r,i){i=i||[];var a=n[0],o=n[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return Tp(i,n,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,r)),i[1]=l.toGlobalCoord(l.dataToCoord(o,r)),i},t.prototype.clampData=function(n,r){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(n[0]),c=a.parse(n[1]);return r=r||[],r[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),r[1]=Math.min(Math.max(Math.min(s[0],s[1]),c),Math.max(s[0],s[1])),r},t.prototype.pointToData=function(n,r){var i=[];if(this._invTransform)return Tp(i,n,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(n[0]),r),i[1]=o.coordToData(o.toLocalCoord(n[1]),r),i},t.prototype.getOtherAxis=function(n){return this.getAxis(n.dim==="x"?"y":"x")},t.prototype.getArea=function(n){n=n||0;var r=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(r[0],r[1])-n,o=Math.min(i[0],i[1])-n,s=Math.max(r[0],r[1])-a+n,l=Math.max(i[0],i[1])-o+n;return new Na(a,o,s,l)},t}(Omr),A6=rl();function Lst(e,t){var n=Nr(t,function(r){return e.scale.parse(r)});return e.type==="time"&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function Pmr(e){var t=e.getLabelModel().get("customValues");if(t){var n=s4(e);return{labels:Lst(e,t).map(function(r){var i={value:r};return{formattedLabel:n(i),rawLabel:e.scale.getLabel(i),tickValue:r}})}}return e.type==="category"?Mmr(e):$mr(e)}function kmr(e,t){var n=e.getTickModel().get("customValues");return n?{ticks:Lst(e,n)}:e.type==="category"?Dmr(e,t):{ticks:Nr(e.scale.getTicks(),function(r){return r.value})}}function Mmr(e){var t=e.getLabelModel(),n=Pst(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function Pst(e,t){var n=kst(e,"labels"),r=Hge(t),i=Mst(n,r);if(i)return i;var a,o;return hi(r)?a=Fst(e,r):(o=r==="auto"?Fmr(e):r,a=$st(e,o)),Dst(n,r,{labels:a,labelCategoryInterval:o})}function Dmr(e,t){var n=kst(e,"ticks"),r=Hge(t),i=Mst(n,r);if(i)return i;var a,o;if((!t.get("show")||e.scale.isBlank())&&(a=[]),hi(r))a=Fst(e,r,!0);else if(r==="auto"){var s=Pst(e,e.getLabelModel());o=s.labelCategoryInterval,a=Nr(s.labels,function(l){return l.tickValue})}else o=r,a=$st(e,o,!0);return Dst(n,r,{ticks:a,tickCategoryInterval:o})}function $mr(e){var t=e.scale.getTicks(),n=s4(e);return{labels:Nr(t,function(r,i){return{level:r.level,formattedLabel:n(r,i),rawLabel:e.scale.getLabel(r),tickValue:r.value}})}}function kst(e,t){return A6(e)[t]||(A6(e)[t]=[])}function Mst(e,t){for(var n=0;n<e.length;n++)if(e[n].key===t)return e[n].value}function Dst(e,t,n){return e.push({key:t,value:n}),n}function Fmr(e){var t=A6(e).autoInterval;return t??(A6(e).autoInterval=e.calculateCategoryInterval())}function Bmr(e){var t=jmr(e),n=s4(e),r=(t.axisRotate-t.labelRotate)/180*Math.PI,i=e.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],c=e.dataToCoord(l+1)-e.dataToCoord(l),u=Math.abs(c*Math.cos(r)),d=Math.abs(c*Math.sin(r)),f=0,p=0;l<=a[1];l+=s){var h=0,m=0,g=Wme(n({value:l}),t.font,"center","top");h=g.width*1.3,m=g.height*1.3,f=Math.max(f,h,7),p=Math.max(p,m,7)}var v=f/u,y=p/d;isNaN(v)&&(v=1/0),isNaN(y)&&(y=1/0);var _=Math.max(0,Math.floor(Math.min(v,y))),S=A6(e.model),C=e.getExtent(),w=S.lastAutoInterval,x=S.lastTickCount;return w!=null&&x!=null&&Math.abs(w-_)<=1&&Math.abs(x-o)<=1&&w>_&&S.axisExtent0===C[0]&&S.axisExtent1===C[1]?_=w:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=C[0],S.axisExtent1=C[1]),_}function jmr(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function $st(e,t,n){var r=s4(e),i=e.scale,a=i.getExtent(),o=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),c=a[0],u=i.count();c!==0&&l>1&&u/l>2&&(c=Math.round(Math.ceil(c/l)*l));var d=Nst(e),f=o.get("showMinLabel")||d,p=o.get("showMaxLabel")||d;f&&c!==a[0]&&m(a[0]);for(var h=c;h<=a[1];h+=l)m(h);p&&h-l!==a[1]&&m(a[1]);function m(g){var v={value:g};s.push(n?g:{formattedLabel:r(v),rawLabel:i.getLabel(v),tickValue:g})}return s}function Fst(e,t,n){var r=e.scale,i=s4(e),a=[];return lt(r.getTicks(),function(o){var s=r.getLabel(o),l=o.value;t(o.value,s)&&a.push(n?l:{formattedLabel:i(o),rawLabel:s,tickValue:l})}),a}var kLe=[0,1],zmr=function(){function e(t,n,r){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=n,this._extent=r||[0,0]}return e.prototype.contain=function(t){var n=this._extent,r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return t>=r&&t<=i},e.prototype.containData=function(t){return this.scale.contain(t)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return tat(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,n){var r=this._extent;r[0]=t,r[1]=n},e.prototype.dataToCoord=function(t,n){var r=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(r=r.slice(),MLe(r,i.count())),Gc(t,kLe,r,n)},e.prototype.coordToData=function(t,n){var r=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(r=r.slice(),MLe(r,i.count()));var a=Gc(t,r,kLe,n);return this.scale.scale(a)},e.prototype.pointToData=function(t,n){},e.prototype.getTicksCoords=function(t){t=t||{};var n=t.tickModel||this.getTickModel(),r=kmr(this,n),i=r.ticks,a=Nr(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=n.get("alignWithLabel");return Umr(this,a,o,t.clamp),a},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),n=t.get("splitNumber");n>0&&n<100||(n=5);var r=this.scale.getMinorTicks(n),i=Nr(r,function(a){return Nr(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},e.prototype.getViewLabels=function(){return Pmr(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,n=this.scale.getExtent(),r=n[1]-n[0]+(this.onBand?1:0);r===0&&(r=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/r},e.prototype.calculateCategoryInterval=function(){return Bmr(this)},e}();function MLe(e,t){var n=e[1]-e[0],r=t,i=n/r/2;e[0]+=i,e[1]-=i}function Umr(e,t,n,r){var i=t.length;if(!e.onBand||n||!i)return;var a=e.getExtent(),o,s;if(i===1)t[0].coord=a[0],o=t[1]={coord:a[1]};else{var l=t[i-1].tickValue-t[0].tickValue,c=(t[i-1].coord-t[0].coord)/l;lt(t,function(p){p.coord-=c/2});var u=e.scale.getExtent();s=1+u[1]-t[i-1].tickValue,o={coord:t[i-1].coord+c*s},t.push(o)}var d=a[0]>a[1];f(t[0].coord,a[0])&&(r?t[0].coord=a[0]:t.shift()),r&&f(a[0],t[0].coord)&&t.unshift({coord:a[0]}),f(a[1],o.coord)&&(r?o.coord=a[1]:t.pop()),r&&f(o.coord,a[1])&&t.push({coord:a[1]});function f(p,h){return p=gl(p),h=gl(h),d?p>h:p<h}}var Hmr=function(e){tr(t,e);function t(n,r,i,a,o){var s=e.call(this,n,r,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var n=this.position;return n==="top"||n==="bottom"},t.prototype.getGlobalExtent=function(n){var r=this.getExtent();return r[0]=this.toGlobalCoord(r[0]),r[1]=this.toGlobalCoord(r[1]),n&&r[0]>r[1]&&r.reverse(),r},t.prototype.pointToData=function(n,r){return this.coordToData(this.toLocalCoord(n[this.dim==="x"?0:1]),r)},t.prototype.setCategorySortInfo=function(n){if(this.type!=="category")return!1;this.model.option.categorySortInfo=n,this.scale.setSortInfo(n)},t}(zmr);function Jse(e,t,n){n=n||{};var r=e.coordinateSystem,i=t.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,c=i.dim,u=r.getRect(),d=[u.x,u.x+u.width,u.y,u.y+u.height],f={left:0,right:1,top:0,bottom:1,onZero:2},p=t.get("offset")||0,h=c==="x"?[d[2]-p,d[3]+p]:[d[0]-p,d[1]+p];if(o){var m=o.toGlobalCoord(o.dataToCoord(0));h[f.onZero]=Math.max(Math.min(m,h[1]),h[0])}a.position=[c==="y"?h[f[l]]:d[0],c==="x"?h[f[l]]:d[3]],a.rotation=Math.PI/2*(c==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=g[s],a.labelOffset=o?h[f[s]]-h[f.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),m6(n.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var v=t.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-v:v,a.z2=1,a}function DLe(e){return e.get("coordinateSystem")==="cartesian2d"}function $Le(e){var t={xAxisModel:null,yAxisModel:null};return lt(t,function(n,r){var i=r.replace(/Model$/,""),a=e.getReferringComponents(i,bd).models[0];t[r]=a}),t}var ete=Math.log;function Vmr(e,t,n){var r=o4.prototype,i=r.getTicks.call(n),a=r.getTicks.call(n,!0),o=i.length-1,s=r.getInterval.call(n),l=Rst(e,t),c=l.extent,u=l.fixMin,d=l.fixMax;if(e.type==="log"){var f=ete(e.base);c=[ete(c[0])/f,ete(c[1])/f]}e.setExtent(c[0],c[1]),e.calcNiceExtent({splitNumber:o,fixMin:u,fixMax:d});var p=r.getExtent.call(e);u&&(c[0]=p[0]),d&&(c[1]=p[1]);var h=r.getInterval.call(e),m=c[0],g=c[1];if(u&&d)h=(g-m)/o;else if(u)for(g=c[0]+h*o;g<c[1]&&isFinite(g)&&isFinite(c[1]);)h=Jee(h),g=c[0]+h*o;else if(d)for(m=c[1]-h*o;m>c[0]&&isFinite(m)&&isFinite(c[0]);)h=Jee(h),m=c[1]-h*o;else{var v=e.getTicks().length-1;v>o&&(h=Jee(h));var y=h*o;g=Math.ceil(c[1]/h)*h,m=gl(g-y),m<0&&c[0]>=0?(m=0,g=gl(y)):g>0&&c[1]<=0&&(g=0,m=-gl(y))}var _=(i[0].value-a[0].value)/s,S=(i[o].value-a[o].value)/s;r.setExtent.call(e,m+h*_,g+h*S),r.setInterval.call(e,h),(_||S)&&r.setNiceExtent.call(e,m+h,g-h)}var Gmr=function(){function e(t,n,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Qse,this._initCartesian(t,n,r),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,n){var r=this._axesMap;this._updateScale(t,this.model);function i(o){var s,l=rs(o),c=l.length;if(c){for(var u=[],d=c-1;d>=0;d--){var f=+l[d],p=o[f],h=p.model,m=p.scale;Zse(m)&&h.get("alignTicks")&&h.get("interval")==null?u.push(p):(LLe(m,h),Zse(m)&&(s=p))}u.length&&(s||(s=u.pop(),LLe(s.scale,s.model)),lt(u,function(g){Vmr(g.scale,g.model,s.scale)}))}}i(r.x),i(r.y);var a={};lt(r.x,function(o){FLe(r,"y",o,a)}),lt(r.y,function(o){FLe(r,"x",o,a)}),this.resize(this.model,n)},e.prototype.resize=function(t,n,r){var i=t.getBoxLayoutParams(),a=!r&&t.get("containLabel"),o=E6(i,{width:n.getWidth(),height:n.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(lt(s,function(c){if(!c.model.get(["axisLabel","inside"])){var u=Amr(c);if(u){var d=c.isHorizontal()?"height":"width",f=c.model.get(["axisLabel","margin"]);o[d]-=u[d]+f,c.position==="top"?o.y+=u.height+f:c.position==="left"&&(o.x+=u.width+f)}}}),l()),lt(this._coordsList,function(c){c.calcAffineTransform()});function l(){lt(s,function(c){var u=c.isHorizontal(),d=u?[0,o.width]:[0,o.height],f=c.inverse?1:0;c.setExtent(d[f],d[1-f]),qmr(c,u?o.x:o.y)})}},e.prototype.getAxis=function(t,n){var r=this._axesMap[t];if(r!=null)return r[n||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,n){if(t!=null&&n!=null){var r="x"+t+"y"+n;return this._coordsMap[r]}Fr(t)&&(n=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i<a.length;i++)if(a[i].getAxis("x").index===t||a[i].getAxis("y").index===n)return a[i]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(t,n,r){var i=this._findConvertTarget(n);return i.cartesian?i.cartesian.dataToPoint(r):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(r)):null},e.prototype.convertFromPixel=function(t,n,r){var i=this._findConvertTarget(n);return i.cartesian?i.cartesian.pointToData(r):i.axis?i.axis.coordToData(i.axis.toLocalCoord(r)):null},e.prototype._findConvertTarget=function(t){var n=t.seriesModel,r=t.xAxisModel||n&&n.getReferringComponents("xAxis",bd).models[0],i=t.yAxisModel||n&&n.getReferringComponents("yAxis",bd).models[0],a=t.gridModel,o=this._coordsList,s,l;if(n)s=n.coordinateSystem,ja(o,s)<0&&(s=null);else if(r&&i)s=this.getCartesian(r.componentIndex,i.componentIndex);else if(r)l=this.getAxis("x",r.componentIndex);else if(i)l=this.getAxis("y",i.componentIndex);else if(a){var c=a.coordinateSystem;c===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},e.prototype.containPoint=function(t){var n=this._coordsList[0];if(n)return n.containPoint(t)},e.prototype._initCartesian=function(t,n,r){var i=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(n.eachComponent("xAxis",c("x"),this),n.eachComponent("yAxis",c("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,lt(s.x,function(u,d){lt(s.y,function(f,p){var h="x"+d+"y"+p,m=new Lmr(h);m.master=i,m.model=t,i._coordsMap[h]=m,i._coordsList.push(m),m.addAxis(u),m.addAxis(f)})});function c(u){return function(d,f){if(tte(d,t)){var p=d.get("position");u==="x"?p!=="top"&&p!=="bottom"&&(p=o.bottom?"top":"bottom"):p!=="left"&&p!=="right"&&(p=o.left?"right":"left"),o[p]=!0;var h=new Hmr(u,Tmr(d),[0,0],d.get("type"),p),m=h.type==="category";h.onBand=m&&d.get("boundaryGap"),h.inverse=d.get("inverse"),d.axis=h,h.model=d,h.grid=a,h.index=f,a._axesList.push(h),s[u][f]=h,l[u]++}}}},e.prototype._updateScale=function(t,n){lt(this._axesList,function(i){if(i.scale.setExtent(1/0,-1/0),i.type==="category"){var a=i.model.get("categorySortInfo");i.scale.setSortInfo(a)}}),t.eachSeries(function(i){if(DLe(i)){var a=$Le(i),o=a.xAxisModel,s=a.yAxisModel;if(!tte(o,n)||!tte(s,n))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),c=i.getData(),u=l.getAxis("x"),d=l.getAxis("y");r(c,u),r(c,d)}},this);function r(i,a){lt(Ost(i,a.dim),function(o){a.scale.unionExtentFromData(i,o)})}},e.prototype.getTooltipAxes=function(t){var n=[],r=[];return lt(this.getCartesians(),function(i){var a=t!=null&&t!=="auto"?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(a);ja(n,a)<0&&n.push(a),ja(r,o)<0&&r.push(o)}),{baseAxes:n,otherAxes:r}},e.create=function(t,n){var r=[];return t.eachComponent("grid",function(i,a){var o=new e(i,t,n);o.name="grid_"+a,o.resize(i,n,!0),i.coordinateSystem=o,r.push(o)}),t.eachSeries(function(i){if(DLe(i)){var a=$Le(i),o=a.xAxisModel,s=a.yAxisModel,l=o.getCoordSysModel(),c=l.coordinateSystem;i.coordinateSystem=c.getCartesian(o.componentIndex,s.componentIndex)}}),r},e.dimensions=Qse,e}();function tte(e,t){return e.getCoordSysModel()===t}function FLe(e,t,n,r){n.getAxesOnZeroOf=function(){return a?[a]:[]};var i=e[t],a,o=n.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)BLe(i[l])&&(a=i[l]);else for(var c in i)if(i.hasOwnProperty(c)&&BLe(i[c])&&!r[u(i[c])]){a=i[c];break}a&&(r[u(a)]=!0);function u(d){return d.dim+"_"+d.index}}function BLe(e){return e&&e.type!=="category"&&e.type!=="time"&&Imr(e)}function qmr(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord=e.dim==="x"?function(i){return i+t}:function(i){return r-i+t},e.toLocalCoord=e.dim==="x"?function(i){return i-t}:function(i){return r-i+t}}var Eb=Math.PI,Hb=function(){function e(t,n){this.group=new Jl,this.opt=n,this.axisModel=t,Hi(n,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var r=new Jl({x:n.position[0],y:n.position[1],rotation:n.rotation});r.updateTransform(),this._transformGroup=r}return e.prototype.hasBuilder=function(t){return!!jLe[t]},e.prototype.add=function(t){jLe[t](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(t,n,r){var i=nat(n-t),a,o;return QF(i)?(o=r>0?"top":"bottom",a="center"):QF(i-Eb)?(o=r>0?"bottom":"top",a="center"):(o="middle",i>0&&i<Eb?a=r>0?"right":"left":a=r>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},e.makeAxisEventDataBase=function(t){var n={componentType:t.mainType,componentIndex:t.componentIndex};return n[t.mainType+"Index"]=t.componentIndex,n},e.isLabelSilent=function(t){var n=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||n&&n.show)},e}(),jLe={axisLine:function(e,t,n,r){var i=t.get(["axisLine","show"]);if(i==="auto"&&e.handleAutoShown&&(i=e.handleAutoShown("axisLine")),!!i){var a=t.axis.getExtent(),o=r.transform,s=[a[0],0],l=[a[1],0],c=s[0]>l[0];o&&(Tp(s,s,o),Tp(l,l,o));var u=Vn({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),d=new p_({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:u,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});b6(d.shape,d.style.lineWidth),d.anid="line",n.add(d);var f=t.get(["axisLine","symbol"]);if(f!=null){var p=t.get(["axisLine","symbolSize"]);yr(f)&&(f=[f,f]),(yr(p)||is(p))&&(p=[p,p]);var h=Eot(t.get(["axisLine","symbolOffset"])||0,p),m=p[0],g=p[1];lt([{rotate:e.rotation+Math.PI/2,offset:h[0],r:0},{rotate:e.rotation-Math.PI/2,offset:h[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(v,y){if(f[y]!=="none"&&f[y]!=null){var _=g_(f[y],-m/2,-g/2,m,g,u.stroke,!0),S=v.r+v.offset,C=c?l:s;_.attr({rotation:v.rotate,x:C[0]+S*Math.cos(e.rotation),y:C[1]-S*Math.sin(e.rotation),silent:!0,z2:11}),n.add(_)}})}}},axisTickLabel:function(e,t,n,r){var i=Kmr(n,r,t,e),a=Zmr(n,r,t,e);if(Ymr(t,a,i),Xmr(n,r,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=Hfr(Nr(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));Vfr(o)}},axisName:function(e,t,n,r){var i=m6(e.axisName,t.get("name"));if(i){var a=t.get("nameLocation"),o=e.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,c=t.axis.getExtent(),u=c[0]>c[1]?-1:1,d=[a==="start"?c[0]-u*l:a==="end"?c[1]+u*l:(c[0]+c[1])/2,ULe(a)?e.labelOffset+o*l:0],f,p=t.get("nameRotate");p!=null&&(p=p*Eb/180);var h;ULe(a)?f=Hb.innerTextLayout(e.rotation,p??e.rotation,o):(f=Wmr(e.rotation,a,p||0,c),h=e.axisNameAvailableWidth,h!=null&&(h=Math.abs(h/Math.sin(f.rotation)),!isFinite(h)&&(h=null)));var m=s.getFont(),g=t.get("nameTruncate",!0)||{},v=g.ellipsis,y=m6(e.nameTruncateMaxWidth,g.maxWidth,h),_=new Du({x:d[0],y:d[1],rotation:f.rotation,silent:Hb.isLabelSilent(t),style:oC(s,{text:i,font:m,overflow:"truncate",width:y,ellipsis:v,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||f.textAlign,verticalAlign:s.get("verticalAlign")||f.textVerticalAlign}),z2:1});if(dge({el:_,componentModel:t,itemName:i}),_.__fullText=i,_.anid="name",t.get("triggerEvent")){var S=Hb.makeAxisEventDataBase(t);S.targetType="axisName",S.name=i,vo(_).eventData=S}r.add(_),_.updateTransform(),n.add(_),_.decomposeTransform()}}};function Wmr(e,t,n,r){var i=nat(n-e),a,o,s=r[0]>r[1],l=t==="start"&&!s||t!=="start"&&s;return QF(i-Eb/2)?(o=l?"bottom":"top",a="center"):QF(i-Eb*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",i<Eb*1.5&&i>Eb/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function Ymr(e,t,n){if(!Nst(e.axis)){var r=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);t=t||[],n=n||[];var a=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],c=n[0],u=n[1],d=n[n.length-1],f=n[n.length-2];r===!1?(ap(a),ap(c)):zLe(a,o)&&(r?(ap(o),ap(u)):(ap(a),ap(c))),i===!1?(ap(s),ap(d)):zLe(l,s)&&(i?(ap(l),ap(f)):(ap(s),ap(d)))}}function ap(e){e&&(e.ignore=!0)}function zLe(e,t){var n=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(!(!n||!r)){var i=Vme([]);return Gme(i,i,-e.rotation),n.applyTransform(H5([],i,e.getLocalTransform())),r.applyTransform(H5([],i,t.getLocalTransform())),n.intersect(r)}}function ULe(e){return e==="middle"||e==="center"}function Bst(e,t,n,r,i){for(var a=[],o=[],s=[],l=0;l<e.length;l++){var c=e[l].coord;o[0]=c,o[1]=0,s[0]=c,s[1]=n,t&&(Tp(o,o,t),Tp(s,s,t));var u=new p_({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});b6(u.shape,u.style.lineWidth),u.anid=i+"_"+e[l].tickValue,a.push(u)}return a}function Kmr(e,t,n,r){var i=n.axis,a=n.getModel("axisTick"),o=a.get("show");if(o==="auto"&&r.handleAutoShown&&(o=r.handleAutoShown("axisTick")),!(!o||i.scale.isBlank())){for(var s=a.getModel("lineStyle"),l=r.tickDirection*a.get("length"),c=i.getTicksCoords(),u=Bst(c,t.transform,l,Hi(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),d=0;d<u.length;d++)e.add(u[d]);return u}}function Xmr(e,t,n,r){var i=n.axis,a=n.getModel("minorTick");if(!(!a.get("show")||i.scale.isBlank())){var o=i.getMinorTicksCoords();if(o.length)for(var s=a.getModel("lineStyle"),l=r*a.get("length"),c=Hi(s.getLineStyle(),Hi(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),u=0;u<o.length;u++)for(var d=Bst(o[u],t.transform,l,c,"minorticks_"+u),f=0;f<d.length;f++)e.add(d[f])}}function Zmr(e,t,n,r){var i=n.axis,a=m6(r.axisLabelShow,n.get(["axisLabel","show"]));if(!(!a||i.scale.isBlank())){var o=n.getModel("axisLabel"),s=o.get("margin"),l=i.getViewLabels(),c=(m6(r.labelRotate,o.get("rotate"))||0)*Eb/180,u=Hb.innerTextLayout(r.rotation,c,r.labelDirection),d=n.getCategories&&n.getCategories(!0),f=[],p=Hb.isLabelSilent(n),h=n.get("triggerEvent");return lt(l,function(m,g){var v=i.scale.type==="ordinal"?i.scale.getRawOrdinalNumber(m.tickValue):m.tickValue,y=m.formattedLabel,_=m.rawLabel,S=o;if(d&&d[v]){var C=d[v];Fr(C)&&C.textStyle&&(S=new Os(C.textStyle,o,n.ecModel))}var w=S.getTextColor()||n.get(["axisLine","lineStyle","color"]),x=i.dataToCoord(v),T=S.getShallow("align",!0)||u.textAlign,A=ra(S.getShallow("alignMinLabel",!0),T),I=ra(S.getShallow("alignMaxLabel",!0),T),R=S.getShallow("verticalAlign",!0)||S.getShallow("baseline",!0)||u.textVerticalAlign,N=ra(S.getShallow("verticalAlignMinLabel",!0),R),P=ra(S.getShallow("verticalAlignMaxLabel",!0),R),L=new Du({x,y:r.labelOffset+r.labelDirection*s,rotation:u.rotation,silent:p,z2:10+(m.level||0),style:oC(S,{text:y,align:g===0?A:g===l.length-1?I:T,verticalAlign:g===0?N:g===l.length-1?P:R,fill:hi(w)?w(i.type==="category"?_:i.type==="value"?v+"":v,g):w})});if(L.anid="label_"+v,h){var $=Hb.makeAxisEventDataBase(n);$.targetType="axisLabel",$.value=_,$.tickIndex=g,i.type==="category"&&($.dataIndex=v),vo(L).eventData=$}t.add(L),L.updateTransform(),f.push(L),e.add(L),L.decomposeTransform()}),f}}function Qmr(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return Jmr(n,e,t),n.seriesInvolved&&tgr(n,e),n}function Jmr(e,t,n){var r=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];lt(n.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=R6(s.model),c=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=s;var u=s.model,d=u.getModel("tooltip",r);if(lt(s.getAxes(),hl(m,!1,null)),s.getTooltipAxes&&r&&d.get("show")){var f=d.get("trigger")==="axis",p=d.get(["axisPointer","type"])==="cross",h=s.getTooltipAxes(d.get(["axisPointer","axis"]));(f||p)&&lt(h.baseAxes,hl(m,p?"cross":!0,f)),p&&lt(h.otherAxes,hl(m,"cross",!1))}function m(g,v,y){var _=y.model.getModel("axisPointer",i),S=_.get("show");if(!(!S||S==="auto"&&!g&&!ele(_))){v==null&&(v=_.get("triggerTooltip")),_=g?egr(y,d,i,t,g,v):_;var C=_.get("snap"),w=_.get("triggerEmphasis"),x=R6(y.model),T=v||C||y.type==="category",A=e.axesInfo[x]={key:x,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:v,triggerEmphasis:w,involveSeries:T,snap:C,useHandle:ele(_),seriesModels:[],linkGroup:null};c[x]=A,e.seriesInvolved=e.seriesInvolved||T;var I=ngr(a,y);if(I!=null){var R=o[I]||(o[I]={axesInfo:{}});R.axesInfo[x]=A,R.mapper=a[I].mapper,A.linkGroup=R}}}})}function egr(e,t,n,r,i,a){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};lt(s,function(f){l[f]=Xi(o.get(f))}),l.snap=e.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var c=l.label||(l.label={});if(c.show==null&&(c.show=!1),i==="cross"){var u=o.get(["label","show"]);if(c.show=u??!0,!a){var d=l.lineStyle=o.get("crossStyle");d&&Hi(c,d.textStyle)}}return e.model.getModel("axisPointer",new Os(l,n,r))}function tgr(e,t){t.eachSeries(function(n){var r=n.coordinateSystem,i=n.get(["tooltip","trigger"],!0),a=n.get(["tooltip","show"],!0);!r||i==="none"||i===!1||i==="item"||a===!1||n.get(["axisPointer","show"],!0)===!1||lt(e.coordSysAxesInfo[R6(r.model)],function(o){var s=o.axis;r.getAxis(s.dim)===s&&(o.seriesModels.push(n),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=n.getData().count())})})}function ngr(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(nte(a[r+"AxisId"],n.id)||nte(a[r+"AxisIndex"],n.componentIndex)||nte(a[r+"AxisName"],n.name))return i}}function nte(e,t){return e==="all"||ar(e)&&ja(e,t)>=0||e===t}function rgr(e){var t=Vge(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,a=n.get("status"),o=n.get("value");o!=null&&(o=r.parse(o));var s=ele(n);a==null&&(i.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),i.value=o,s&&(i.status=t.axis.scale.isBlank()?"hide":"show")}}function Vge(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[R6(e)]}function igr(e){var t=Vge(e);return t&&t.axisPointerModel}function ele(e){return!!e.get(["handle","show"])}function R6(e){return e.type+"||"+e.id}var HLe={},jst=function(e){tr(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,i,a){this.axisPointerClass&&rgr(n),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(n,i,!0)},t.prototype.updateAxisPointer=function(n,r,i,a){this._doUpdateAxisPointerClass(n,i,!1)},t.prototype.remove=function(n,r){var i=this._axisPointer;i&&i.remove(r)},t.prototype.dispose=function(n,r){this._disposeAxisPointer(r),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(n,r,i){var a=t.getAxisPointerClass(this.axisPointerClass);if(a){var o=igr(n);o?(this._axisPointer||(this._axisPointer=new a)).render(n,o,r,i):this._disposeAxisPointer(r)}},t.prototype._disposeAxisPointer=function(n){this._axisPointer&&this._axisPointer.dispose(n),this._axisPointer=null},t.registerAxisPointerClass=function(n,r){HLe[n]=r},t.getAxisPointerClass=function(n){return n&&HLe[n]},t.type="axis",t}(ym),tle=rl();function agr(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var a=n.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=r.coordinateSystem.getRect(),c=i.getTicksCoords({tickModel:a,clamp:!0});if(c.length){var u=s.length,d=tle(e).splitAreaColors,f=Mr(),p=0;if(d)for(var h=0;h<c.length;h++){var m=d.get(c[h].tickValue);if(m!=null){p=(m+(u-1)*h)%u;break}}var g=i.toGlobalCoord(c[0].coord),v=o.getAreaStyle();s=ar(s)?s:[s];for(var h=1;h<c.length;h++){var y=i.toGlobalCoord(c[h].coord),_=void 0,S=void 0,C=void 0,w=void 0;i.isHorizontal()?(_=g,S=l.y,C=y-_,w=l.height,g=_+C):(_=l.x,S=g,C=l.width,w=y-S,g=S+w);var x=c[h-1].tickValue;x!=null&&f.set(x,p),t.add(new Ps({anid:x!=null?"area_"+x:null,shape:{x:_,y:S,width:C,height:w},style:Hi({fill:s[p]},v),autoBatch:!0,silent:!0})),p=(p+1)%u}tle(e).splitAreaColors=f}}}function ogr(e){tle(e).splitAreaColors=null}var sgr=["axisLine","axisTickLabel","axisName"],lgr=["splitArea","splitLine","minorSplitLine"],zst=function(e){tr(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="CartesianAxisPointer",n}return t.prototype.render=function(n,r,i,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Jl,this.group.add(this._axisGroup),!!n.get("show")){var s=n.getCoordSysModel(),l=Jse(s,n),c=new Hb(n,Vn({handleAutoShown:function(d){for(var f=s.coordinateSystem.getCartesians(),p=0;p<f.length;p++)if(Zse(f[p].getOtherAxis(n.axis).scale))return!0;return!1}},l));lt(sgr,c.add,c),this._axisGroup.add(c.getGroup()),lt(lgr,function(d){n.get([d,"show"])&&cgr[d](this,this._axisGroup,n,s)},this);var u=a&&a.type==="changeAxisOrder"&&a.isInitSort;u||Lat(o,this._axisGroup,n),e.prototype.render.call(this,n,r,i,a)}},t.prototype.remove=function(){ogr(this)},t.type="cartesianAxis",t}(jst),cgr={splitLine:function(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var a=n.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color");s=ar(s)?s:[s];for(var l=r.coordinateSystem.getRect(),c=i.isHorizontal(),u=0,d=i.getTicksCoords({tickModel:a}),f=[],p=[],h=o.getLineStyle(),m=0;m<d.length;m++){var g=i.toGlobalCoord(d[m].coord);c?(f[0]=g,f[1]=l.y,p[0]=g,p[1]=l.y+l.height):(f[0]=l.x,f[1]=g,p[0]=l.x+l.width,p[1]=g);var v=u++%s.length,y=d[m].tickValue,_=new p_({anid:y!=null?"line_"+d[m].tickValue:null,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:p[0],y2:p[1]},style:Hi({stroke:s[v]},h),silent:!0});b6(_.shape,h.lineWidth),t.add(_)}}},minorSplitLine:function(e,t,n,r){var i=n.axis,a=n.getModel("minorSplitLine"),o=a.getModel("lineStyle"),s=r.coordinateSystem.getRect(),l=i.isHorizontal(),c=i.getMinorTicksCoords();if(c.length)for(var u=[],d=[],f=o.getLineStyle(),p=0;p<c.length;p++)for(var h=0;h<c[p].length;h++){var m=i.toGlobalCoord(c[p][h].coord);l?(u[0]=m,u[1]=s.y,d[0]=m,d[1]=s.y+s.height):(u[0]=s.x,u[1]=m,d[0]=s.x+s.width,d[1]=m);var g=new p_({anid:"minor_line_"+c[p][h].tickValue,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]},style:f,silent:!0});b6(g.shape,f.lineWidth),t.add(g)}},splitArea:function(e,t,n,r){agr(e,t,n,r)}},Ust=function(e){tr(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="xAxis",t}(zst),ugr=function(e){tr(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=Ust.type,n}return t.type="yAxis",t}(zst),dgr=function(e){tr(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="grid",n}return t.prototype.render=function(n,r){this.group.removeAll(),n.get("show")&&this.group.add(new Ps({shape:n.coordinateSystem.getRect(),style:Hi({fill:n.get("backgroundColor")},n.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(ym),VLe={offset:0};function fgr(e){e.registerComponentView(dgr),e.registerComponentModel(emr),e.registerCoordinateSystem("cartesian2d",Gmr),ILe(e,"x",Kse,VLe),ILe(e,"y",Kse,VLe),e.registerComponentView(Ust),e.registerComponentView(ugr),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var GLe="\0_ec_interaction_mutex";function qLe(e,t){return!!pgr(e)[t]}function pgr(e){return e[GLe]||(e[GLe]={})}$C({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Ru);var hgr=function(e){tr(t,e);function t(n){var r=e.call(this)||this;r._zr=n;var i=si(r._mousedownHandler,r),a=si(r._mousemoveHandler,r),o=si(r._mouseupHandler,r),s=si(r._mousewheelHandler,r),l=si(r._pinchHandler,r);return r.enable=function(c,u){this.disable(),this._opt=Hi(Xi(u)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),c==null&&(c=!0),(c===!0||c==="move"||c==="pan")&&(n.on("mousedown",i),n.on("mousemove",a),n.on("mouseup",o)),(c===!0||c==="scale"||c==="zoom")&&(n.on("mousewheel",s),n.on("pinch",l))},r.disable=function(){n.off("mousedown",i),n.off("mousemove",a),n.off("mouseup",o),n.off("mousewheel",s),n.off("pinch",l)},r}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(n){this.pointerChecker=n},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(n){if(!L8e(n)){for(var r=n.target;r;){if(r.draggable)return;r=r.__hostTarget||r.parent}var i=n.offsetX,a=n.offsetY;this.pointerChecker&&this.pointerChecker(n,i,a)&&(this._x=i,this._y=a,this._dragging=!0)}},t.prototype._mousemoveHandler=function(n){if(!(!this._dragging||!rD("moveOnMouseMove",n,this._opt)||n.gestureEvent==="pinch"||qLe(this._zr,"globalPan"))){var r=n.offsetX,i=n.offsetY,a=this._x,o=this._y,s=r-a,l=i-o;this._x=r,this._y=i,this._opt.preventDefaultMouseMove&&z3(n.event),Hst(this,"pan","moveOnMouseMove",n,{dx:s,dy:l,oldX:a,oldY:o,newX:r,newY:i,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(n){L8e(n)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(n){var r=rD("zoomOnMouseWheel",n,this._opt),i=rD("moveOnMouseWheel",n,this._opt),a=n.wheelDelta,o=Math.abs(a),s=n.offsetX,l=n.offsetY;if(!(a===0||!r&&!i)){if(r){var c=o>3?1.4:o>1?1.2:1.1,u=a>0?c:1/c;rte(this,"zoom","zoomOnMouseWheel",n,{scale:u,originX:s,originY:l,isAvailableBehavior:null})}if(i){var d=Math.abs(a),f=(a>0?1:-1)*(d>3?.4:d>1?.15:.05);rte(this,"scrollMove","moveOnMouseWheel",n,{scrollDelta:f,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(n){if(!qLe(this._zr,"globalPan")){var r=n.pinchScale>1?1.1:1/1.1;rte(this,"zoom",null,n,{scale:r,originX:n.pinchX,originY:n.pinchY,isAvailableBehavior:null})}},t}(Om);function rte(e,t,n,r,i){e.pointerChecker&&e.pointerChecker(r,i.originX,i.originY)&&(z3(r.event),Hst(e,t,n,r,i))}function Hst(e,t,n,r,i){i.isAvailableBehavior=si(rD,null,n,r),e.trigger(t,i)}function rD(e,t,n){var r=n[e];return!e||r&&(!yr(r)||t.event[r+"Key"])}function AH(e,t,n,r,i,a){e=e||0;var o=n[1]-n[0];if(i!=null&&(i=Qw(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),r==="all"){var s=Math.abs(t[1]-t[0]);s=Qw(s,[0,o]),i=a=Qw(s,[i,a]),r=0}t[0]=Qw(t[0],n),t[1]=Qw(t[1],n);var l=ite(t,r);t[r]+=e;var c=i||0,u=n.slice();l.sign<0?u[0]+=c:u[1]-=c,t[r]=Qw(t[r],u);var d;return d=ite(t,r),i!=null&&(d.sign!==l.sign||d.span<i)&&(t[1-r]=t[r]+l.sign*i),d=ite(t,r),a!=null&&d.span>a&&(t[1-r]=t[r]+d.sign*a),t}function ite(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function Qw(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var AS=rl(),WLe=Xi,ate=si,mgr=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,n,r,i){var a=n.get("value"),o=n.get("status");if(this._axisModel=t,this._axisPointerModel=n,this._api=r,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var c={};this.makeElOption(c,a,t,n,r);var u=c.graphicKey;u!==this._lastGraphicKey&&this.clear(r),this._lastGraphicKey=u;var d=this._moveAnimation=this.determineAnimation(t,n);if(!s)s=this._group=new Jl,this.createPointerEl(s,c,t,n),this.createLabelEl(s,c,t,n),r.getZr().add(s);else{var f=hl(YLe,n,d);this.updatePointerEl(s,c,f),this.updateLabelEl(s,c,f,n)}XLe(s,n,!0),this._renderHandle(a)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,n){var r=n.get("animation"),i=t.axis,a=i.type==="category",o=n.get("snap");if(!o&&!a)return!1;if(r==="auto"||r==null){var s=this.animationThreshold;if(a&&i.getBandWidth()>s)return!0;if(o){var l=Vge(t).seriesDataCount,c=i.getExtent();return Math.abs(c[0]-c[1])/l>s}return!1}return r===!0},e.prototype.makeElOption=function(t,n,r,i,a){},e.prototype.createPointerEl=function(t,n,r,i){var a=n.pointer;if(a){var o=AS(t).pointerEl=new eur[a.type](WLe(n.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,n,r,i){if(n.label){var a=AS(t).labelEl=new Du(WLe(n.label));t.add(a),KLe(a,i)}},e.prototype.updatePointerEl=function(t,n,r){var i=AS(t).pointerEl;i&&n.pointer&&(i.setStyle(n.pointer.style),r(i,{shape:n.pointer.shape}))},e.prototype.updateLabelEl=function(t,n,r,i){var a=AS(t).labelEl;a&&(a.setStyle(n.label.style),r(a,{x:n.label.x,y:n.label.y}),KLe(a,i))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var n=this._axisPointerModel,r=this._api.getZr(),i=this._handle,a=n.getModel("handle"),o=n.get("status");if(!a.get("show")||!o||o==="hide"){i&&r.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=uge(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(c){z3(c.event)},onmousedown:ate(this._onHandleDragMove,this,0,0),drift:ate(this._onHandleDragMove,this),ondragend:ate(this._onHandleDragEnd,this)}),r.add(i)),XLe(i,n,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");ar(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,CH(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,n){YLe(this._axisPointerModel,!n&&this._moveAnimation,this._handle,ote(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,n){var r=this._handle;if(r){this._dragging=!0;var i=this.updateHandleTransform(ote(r),[t,n],this._axisModel,this._axisPointerModel);this._payloadInfo=i,r.stopAnimation(),r.attr(ote(i)),AS(r).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var n=this._payloadInfo,r=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:n.cursorPoint[0],y:n.cursorPoint[1],tooltipOption:n.tooltipOption,axesInfo:[{axisDim:r.axis.dim,axisIndex:r.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var n=this._axisPointerModel.get("value");this._moveHandleToValue(n),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var n=t.getZr(),r=this._group,i=this._handle;n&&r&&(this._lastGraphicKey=null,r&&n.remove(r),i&&n.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),uB(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,n,r){return r=r||0,{x:t[r],y:t[1-r],width:n[r],height:n[1-r]}},e}();function YLe(e,t,n,r){Vst(AS(n).lastProp,r)||(AS(n).lastProp=r,t?h_(n,r,e):(n.stopAnimation(),n.attr(r)))}function Vst(e,t){if(Fr(e)&&Fr(t)){var n=!0;return lt(t,function(r,i){n=n&&Vst(e[i],r)}),!!n}else return e===t}function KLe(e,t){e[t.get(["label","show"])?"show":"hide"]()}function ote(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function XLe(e,t,n){var r=t.get("z"),i=t.get("zlevel");e&&e.traverse(function(a){a.type!=="group"&&(r!=null&&(a.z=r),i!=null&&(a.zlevel=i),a.silent=n)})}function ggr(e){var t=e.get("type"),n=e.getModel(t+"Style"),r;return t==="line"?(r=n.getLineStyle(),r.fill=null):t==="shadow"&&(r=n.getAreaStyle(),r.stroke=null),r}function vgr(e,t,n,r,i){var a=n.get("value"),o=Gst(a,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=EH(s.get("padding")||0),c=s.getFont(),u=Wme(o,c),d=i.position,f=u.width+l[1]+l[3],p=u.height+l[0]+l[2],h=i.align;h==="right"&&(d[0]-=f),h==="center"&&(d[0]-=f/2);var m=i.verticalAlign;m==="bottom"&&(d[1]-=p),m==="middle"&&(d[1]-=p/2),ygr(d,f,p,r);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),e.label={x:d[0],y:d[1],style:oC(s,{text:o,font:c,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function ygr(e,t,n,r){var i=r.getWidth(),a=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,a)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function Gst(e,t,n,r,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:Uge(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};lt(r,function(l){var c=n.getSeriesByIndex(l.seriesIndex),u=l.dataIndexInside,d=c&&c.getDataParams(u);d&&s.seriesData.push(d)}),yr(o)?a=o.replace("{value}",a):hi(o)&&(a=o(s))}return a}function qst(e,t,n){var r=U5();return Gme(r,r,n.rotation),use(r,r,n.position),_6([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function bgr(e,t,n,r,i,a){var o=Hb.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),vgr(t,r,i,a,{position:qst(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function _gr(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function Sgr(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}var Egr=function(e){tr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(n,r,i,a,o){var s=i.axis,l=s.grid,c=a.get("type"),u=ZLe(l,s).getOtherAxis(s).getGlobalExtent(),d=s.toGlobalCoord(s.dataToCoord(r,!0));if(c&&c!=="none"){var f=ggr(a),p=Cgr[c](s,d,u);p.style=f,n.graphicKey=p.type,n.pointer=p}var h=Jse(l.model,i);bgr(r,n,h,i,a,o)},t.prototype.getHandleTransform=function(n,r,i){var a=Jse(r.axis.grid.model,r,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=qst(r.axis,n,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(n,r,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),c=ZLe(s,o).getOtherAxis(o).getGlobalExtent(),u=o.dim==="x"?0:1,d=[n.x,n.y];d[u]+=r[u],d[u]=Math.min(l[1],d[u]),d[u]=Math.max(l[0],d[u]);var f=(c[1]+c[0])/2,p=[f,f];p[u]=d[u];var h=[{verticalAlign:"middle"},{align:"center"}];return{x:d[0],y:d[1],rotation:n.rotation,cursorPoint:p,tooltipOption:h[u]}},t}(mgr);function ZLe(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var Cgr={line:function(e,t,n){var r=_gr([t,n[0]],[t,n[1]],QLe(e));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(e,t,n){var r=Math.max(1,e.getBandWidth()),i=n[1]-n[0];return{type:"Rect",shape:Sgr([t-r/2,n[0]],[r,i],QLe(e))}}};function QLe(e){return e.dim==="x"?0:1}var wgr=function(e){tr(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(qa),F1=rl(),xgr=lt;function Wst(e,t,n){if(!ci.node){var r=t.getZr();F1(r).records||(F1(r).records={}),Tgr(r,t);var i=F1(r).records[e]||(F1(r).records[e]={});i.handler=n}}function Tgr(e,t){if(F1(e).initialized)return;F1(e).initialized=!0,n("click",hl(JLe,"click")),n("mousemove",hl(JLe,"mousemove")),n("globalout",Agr);function n(r,i){e.on(r,function(a){var o=Rgr(t);xgr(F1(e).records,function(s){s&&i(s,a,o.dispatchAction)}),Igr(o.pendings,t)})}}function Igr(e,t){var n=e.showTip.length,r=e.hideTip.length,i;n?i=e.showTip[n-1]:r&&(i=e.hideTip[r-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function Agr(e,t,n){e.handler("leave",null,n)}function JLe(e,t,n,r){t.handler(e,n,r)}function Rgr(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function nle(e,t){if(!ci.node){var n=t.getZr(),r=(F1(n).records||{})[e];r&&(F1(n).records[e]=null)}}var Ngr=function(e){tr(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,i){var a=r.getComponent("tooltip"),o=n.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";Wst("axisPointer",i,function(s,l,c){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&c({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(n,r){nle("axisPointer",r)},t.prototype.dispose=function(n,r){nle("axisPointer",r)},t.type="axisPointer",t}(ym);function Yst(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var a=i.getData(),o=aC(a,e);if(o==null||o<0||ar(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(e.isStacked){var c=l.getBaseAxis(),u=l.getOtherAxis(c),d=u.dim,f=c.dim,p=d==="x"||d==="radius"?1:0,h=a.mapDimension(f),m=[];m[p]=a.get(h,o),m[1-p]=a.get(a.getCalculationInfo("stackResultDimension"),o),n=l.dataToPoint(m)||[]}else n=l.dataToPoint(a.getValues(Nr(l.dimensions,function(v){return a.mapDimension(v)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),n=[g.x+g.width/2,g.y+g.height/2]}return{point:n,el:s}}var ePe=rl();function Ogr(e,t,n){var r=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||si(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){iD(i)&&(i=Yst({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=iD(i),c=a.axesInfo,u=s.axesInfo,d=r==="leave"||iD(i),f={},p={},h={list:[],map:{}},m={showPointer:hl(Pgr,p),showTooltip:hl(kgr,h)};lt(s.coordSysMap,function(v,y){var _=l||v.containPoint(i);lt(s.coordSysAxesInfo[y],function(S,C){var w=S.axis,x=Fgr(c,S);if(!d&&_&&(!c||x)){var T=x&&x.value;T==null&&!l&&(T=w.pointToData(i)),T!=null&&tPe(S,T,m,!1,f)}})});var g={};return lt(u,function(v,y){var _=v.linkGroup;_&&!p[y]&&lt(_.axesInfo,function(S,C){var w=p[C];if(S!==v&&w){var x=w.value;_.mapper&&(x=v.axis.scale.parse(_.mapper(x,nPe(S),nPe(v)))),g[v.key]=x}})}),lt(g,function(v,y){tPe(u[y],v,m,!0,f)}),Mgr(p,u,f),Dgr(h,i,e,o),$gr(u,o,n),f}}function tPe(e,t,n,r,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){n.showPointer(e,t);return}var o=Lgr(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&Vn(i,s[0]),!r&&e.snap&&a.containData(l)&&l!=null&&(t=l),n.showPointer(e,t,s),n.showTooltip(e,o,l)}}function Lgr(e,t){var n=t.axis,r=n.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return lt(t.seriesModels,function(l,c){var u=l.getData().mapDimensionsAll(r),d,f;if(l.getAxisTooltipData){var p=l.getAxisTooltipData(u,e,n);f=p.dataIndices,d=p.nestestValue}else{if(f=l.getData().indicesOfNearest(u[0],e,n.type==="category"?.5:null),!f.length)return;d=l.getData().get(u[0],f[0])}if(!(d==null||!isFinite(d))){var h=e-d,m=Math.abs(h);m<=o&&((m<o||h>=0&&s<0)&&(o=m,s=h,i=d,a.length=0),lt(f,function(g){a.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:i}}function Pgr(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function kgr(e,t,n,r){var i=n.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var l=t.coordSys.model,c=R6(l),u=e.map[c];u||(u=e.map[c]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(u)),u.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function Mgr(e,t,n){var r=n.axesInfo=[];lt(t,function(i,a){var o=i.axisPointerModel.option,s=e[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&r.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function Dgr(e,t,n,r){if(iD(t)||!e.list.length){r({type:"hideTip"});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function $gr(e,t,n){var r=n.getZr(),i="axisPointerLastHighlights",a=ePe(r)[i]||{},o=ePe(r)[i]={};lt(e,function(c,u){var d=c.axisPointerModel.option;d.status==="show"&&c.triggerEmphasis&&lt(d.seriesDataIndices,function(f){var p=f.seriesIndex+" | "+f.dataIndex;o[p]=f})});var s=[],l=[];lt(a,function(c,u){!o[u]&&l.push(c)}),lt(o,function(c,u){!a[u]&&s.push(c)}),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Fgr(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function nPe(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=t.componentIndex,n.axisName=n[r+"AxisName"]=t.name,n.axisId=n[r+"AxisId"]=t.id,n}function iD(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function Kst(e){jst.registerAxisPointerClass("CartesianAxisPointer",Egr),e.registerComponentModel(wgr),e.registerComponentView(Ngr),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var n=t.axisPointer.link;n&&!ar(n)&&(t.axisPointer.link=[n])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,n){t.getComponent("axisPointer").coordSysAxesInfo=Qmr(t,n)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Ogr)}function Bgr(e){bm(fgr),bm(Kst)}var rPe=["x","y","radius","angle","single"],jgr=["cartesian2d","polar","singleAxis"];function zgr(e){var t=e.get("coordinateSystem");return ja(jgr,t)>=0}function Cb(e){return e+"Axis"}function Ugr(e,t){var n=Mr(),r=[],i=Mr();e.eachComponent({mainType:"dataZoom",query:t},function(u){i.get(u.uid)||s(u)});var a;do a=!1,e.eachComponent("dataZoom",o);while(a);function o(u){!i.get(u.uid)&&l(u)&&(s(u),a=!0)}function s(u){i.set(u.uid,!0),r.push(u),c(u)}function l(u){var d=!1;return u.eachTargetAxis(function(f,p){var h=n.get(f);h&&h[p]&&(d=!0)}),d}function c(u){u.eachTargetAxis(function(d,f){(n.get(d)||n.set(d,[]))[f]=!0})}return r}function Xst(e){var t=e.ecModel,n={infoList:[],infoMap:Mr()};return e.eachTargetAxis(function(r,i){var a=t.getComponent(Cb(r),i);if(a){var o=a.getCoordSysModel();if(o){var s=o.uid,l=n.infoMap.get(s);l||(l={model:o,axisModels:[]},n.infoList.push(l),n.infoMap.set(s,l)),l.axisModels.push(a)}}}),n}var ste=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},e}(),vB=function(e){tr(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return t.prototype.init=function(n,r,i){var a=iPe(n);this.settledOption=a,this.mergeDefaultAndTheme(n,i),this._doInit(a)},t.prototype.mergeOption=function(n){var r=iPe(n);ba(this.option,n,!0),ba(this.settledOption,r,!0),this._doInit(r)},t.prototype._doInit=function(n){var r=this.option;this._setDefaultThrottle(n),this._updateRangeUse(n);var i=this.settledOption;lt([["start","startValue"],["end","endValue"]],function(a,o){this._rangePropMode[o]==="value"&&(r[a[0]]=i[a[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var n=this.get("orient",!0),r=this._targetAxisInfoMap=Mr(),i=this._fillSpecifiedTargetAxis(r);i?this._orient=n||this._makeAutoOrientByTargetAxis():(this._orient=n||"horizontal",this._fillAutoTargetAxisByOrient(r,this._orient)),this._noTarget=!0,r.each(function(a){a.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(n){var r=!1;return lt(rPe,function(i){var a=this.getReferringComponents(Cb(i),zlr);if(a.specified){r=!0;var o=new ste;lt(a.models,function(s){o.add(s.componentIndex)}),n.set(i,o)}},this),r},t.prototype._fillAutoTargetAxisByOrient=function(n,r){var i=this.ecModel,a=!0;if(a){var o=r==="vertical"?"y":"x",s=i.findComponents({mainType:o+"Axis"});l(s,o)}if(a){var s=i.findComponents({mainType:"singleAxis",filter:function(u){return u.get("orient",!0)===r}});l(s,"single")}function l(c,u){var d=c[0];if(d){var f=new ste;if(f.add(d.componentIndex),n.set(u,f),a=!1,u==="x"||u==="y"){var p=d.getReferringComponents("grid",bd).models[0];p&&lt(c,function(h){d.componentIndex!==h.componentIndex&&p===h.getReferringComponents("grid",bd).models[0]&&f.add(h.componentIndex)})}}}a&&lt(rPe,function(c){if(a){var u=i.findComponents({mainType:Cb(c),filter:function(f){return f.get("type",!0)==="category"}});if(u[0]){var d=new ste;d.add(u[0].componentIndex),n.set(c,d),a=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var n;return this.eachTargetAxis(function(r){!n&&(n=r)},this),n==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(n){if(n.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var r=this.ecModel.option;this.option.throttle=r.animation&&r.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(n){var r=this._rangePropMode,i=this.get("rangeMode");lt([["start","startValue"],["end","endValue"]],function(a,o){var s=n[a[0]]!=null,l=n[a[1]]!=null;s&&!l?r[o]="percent":!s&&l?r[o]="value":i?r[o]=i[o]:s&&(r[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var n;return this.eachTargetAxis(function(r,i){n==null&&(n=this.ecModel.getComponent(Cb(r),i))},this),n},t.prototype.eachTargetAxis=function(n,r){this._targetAxisInfoMap.each(function(i,a){lt(i.indexList,function(o){n.call(r,a,o)})})},t.prototype.getAxisProxy=function(n,r){var i=this.getAxisModel(n,r);if(i)return i.__dzAxisProxy},t.prototype.getAxisModel=function(n,r){var i=this._targetAxisInfoMap.get(n);if(i&&i.indexMap[r])return this.ecModel.getComponent(Cb(n),r)},t.prototype.setRawRange=function(n){var r=this.option,i=this.settledOption;lt([["start","startValue"],["end","endValue"]],function(a){(n[a[0]]!=null||n[a[1]]!=null)&&(r[a[0]]=i[a[0]]=n[a[0]],r[a[1]]=i[a[1]]=n[a[1]])},this),this._updateRangeUse(n)},t.prototype.setCalculatedRange=function(n){var r=this.option;lt(["start","startValue","end","endValue"],function(i){r[i]=n[i]})},t.prototype.getPercentRange=function(){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataPercentWindow()},t.prototype.getValueRange=function(n,r){if(n==null&&r==null){var i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()}else return this.getAxisProxy(n,r).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(n){if(n)return n.__dzAxisProxy;for(var r,i=this._targetAxisInfoMap.keys(),a=0;a<i.length;a++)for(var o=i[a],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var c=this.getAxisProxy(o,s.indexList[l]);if(c.hostedBy(this))return c;r||(r=c)}return r},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t}(qa);function iPe(e){var t={};return lt(["start","end","startValue","endValue","throttle"],function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}var Zst=function(e){tr(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,i,a){this.dataZoomModel=n,this.ecModel=r,this.api=i},t.type="dataZoom",t}(ym),Ix=lt,aPe=MA,Hgr=function(){function e(t,n,r,i){this._dimName=t,this._axisIndex=n,this.ecModel=i,this._dataZoomModel=r}return e.prototype.hostedBy=function(t){return this._dataZoomModel===t},e.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},e.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},e.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(n){if(zgr(n)){var r=Cb(this._dimName),i=n.getReferringComponents(r,bd).models[0];i&&this._axisIndex===i.componentIndex&&t.push(n)}},this),t},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},e.prototype.getMinMaxSpan=function(){return Xi(this._minMaxSpan)},e.prototype.calculateDataWindow=function(t){var n=this._dataExtent,r=this.getAxisModel(),i=r.axis.scale,a=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],c;Ix(["start","end"],function(f,p){var h=t[f],m=t[f+"Value"];a[p]==="percent"?(h==null&&(h=o[p]),m=i.parse(Gc(h,o,n))):(c=!0,m=m==null?n[p]:i.parse(m),h=Gc(m,n,o)),l[p]=m==null||isNaN(m)?n[p]:m,s[p]=h==null||isNaN(h)?o[p]:h}),aPe(l),aPe(s);var u=this._minMaxSpan;c?d(l,s,n,o,!1):d(s,l,o,n,!0);function d(f,p,h,m,g){var v=g?"Span":"ValueSpan";AH(0,f,h,"all",u["min"+v],u["max"+v]);for(var y=0;y<2;y++)p[y]=Gc(f[y],h,m,!0),g&&(p[y]=i.parse(p[y]))}return{valueWindow:l,percentWindow:s}},e.prototype.reset=function(t){if(t===this._dataZoomModel){var n=this.getTargetSeriesModels();this._dataExtent=Vgr(this,this._dimName,n),this._updateMinMaxSpan();var r=this.calculateDataWindow(t.settledOption);this._valueWindow=r.valueWindow,this._percentWindow=r.percentWindow,this._setAxisModel()}},e.prototype.filterData=function(t,n){if(t!==this._dataZoomModel)return;var r=this._dimName,i=this.getTargetSeriesModels(),a=t.get("filterMode"),o=this._valueWindow;if(a==="none")return;Ix(i,function(l){var c=l.getData(),u=c.mapDimensionsAll(r);if(u.length){if(a==="weakFilter"){var d=c.getStore(),f=Nr(u,function(p){return c.getDimensionIndex(p)},c);c.filterSelf(function(p){for(var h,m,g,v=0;v<u.length;v++){var y=d.get(f[v],p),_=!isNaN(y),S=y<o[0],C=y>o[1];if(_&&!S&&!C)return!0;_&&(g=!0),S&&(h=!0),C&&(m=!0)}return g&&h&&m})}else Ix(u,function(p){if(a==="empty")l.setData(c=c.map(p,function(m){return s(m)?m:NaN}));else{var h={};h[p]=o,c.selectRange(h)}});Ix(u,function(p){c.setApproximateExtent(o,p)})}});function s(l){return l>=o[0]&&l<=o[1]}},e.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},n=this._dataZoomModel,r=this._dataExtent;Ix(["min","max"],function(i){var a=n.get(i+"Span"),o=n.get(i+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?a=Gc(r[0]+o,r,[0,100],!0):a!=null&&(o=Gc(a,[0,100],r,!0)-r[0]),t[i+"Span"]=a,t[i+"ValueSpan"]=o},this)},e.prototype._setAxisModel=function(){var t=this.getAxisModel(),n=this._percentWindow,r=this._valueWindow;if(n){var i=tat(r,[0,500]);i=Math.min(i,20);var a=t.axis.scale.rawExtentInfo;n[0]!==0&&a.setDeterminedMinMax("min",+r[0].toFixed(i)),n[1]!==100&&a.setDeterminedMinMax("max",+r[1].toFixed(i)),a.freeze()}},e}();function Vgr(e,t,n){var r=[1/0,-1/0];Ix(n,function(o){Nmr(r,o.getData(),t)});var i=e.getAxisModel(),a=Ast(i.axis.scale,i,r).calculate();return[a.min,a.max]}var Ggr={getTargetSeries:function(e){function t(i){e.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var l=e.getComponent(Cb(o),s);i(o,s,l,a)})})}t(function(i,a,o,s){o.__dzAxisProxy=null});var n=[];t(function(i,a,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new Hgr(i,a,s,e),n.push(o.__dzAxisProxy))});var r=Mr();return lt(n,function(i){lt(i.getTargetSeriesModels(),function(a){r.set(a.uid,a)})}),r},overallReset:function(e,t){e.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(r,i){n.getAxisProxy(r,i).reset(n)}),n.eachTargetAxis(function(r,i){n.getAxisProxy(r,i).filterData(n,t)})}),e.eachComponent("dataZoom",function(n){var r=n.findRepresentativeAxisProxy();if(r){var i=r.getDataPercentWindow(),a=r.getDataValueWindow();n.setCalculatedRange({start:i[0],end:i[1],startValue:a[0],endValue:a[1]})}})}};function qgr(e){e.registerAction("dataZoom",function(t,n){var r=Ugr(n,t);lt(r,function(i){i.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var oPe=!1;function Qst(e){oPe||(oPe=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,Ggr),qgr(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function Wgr(e,t){var n=EH(t.get("padding")),r=t.getItemStyle(["color","opacity"]);return r.fill=t.get("backgroundColor"),e=new Ps({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:r,silent:!0,z2:-1}),e}var Ygr=function(e){tr(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(qa);function Jst(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function elt(e){if(ci.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}}var tlt=elt(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Kgr=elt(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function nlt(e,t){if(!e)return t;t=pot(t,!0);var n=e.indexOf(t);return e=n===-1?t:"-"+e.slice(0,n)+"-"+t,e.toLowerCase()}function Xgr(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?n[t]:null}var Zgr=nlt(Kgr,"transition"),Gge=nlt(tlt,"transform"),Qgr="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(ci.transform3dSupported?"will-change:transform;":"");function Jgr(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function evr(e,t,n){if(!yr(n)||n==="inside")return"";var r=e.get("backgroundColor"),i=e.get("borderWidth");t=sC(t);var a=Jgr(n),o=Math.max(Math.round(i)*1.5,6),s="",l=Gge+":",c;ja(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(c=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(c=a==="top"?225:45)+"deg)");var u=c*Math.PI/180,d=o+i,f=d*Math.abs(Math.cos(u))+d*Math.abs(Math.sin(u)),p=Math.round(((f-Math.SQRT2*i)/2+Math.SQRT2*i-(f-d)/2)*100)/100;s+=";"+a+":-"+p+"px";var h=t+" solid "+i+"px;",m=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+h,"border-right:"+h,"background-color:"+r+";"];return'<div style="'+m.join("")+'"></div>'}function tvr(e,t){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+e/2+"s "+n,i="opacity"+r+",visibility"+r;return t||(r=" "+e+"s "+n,i+=ci.transformSupported?","+Gge+r:",left"+r+",top"+r),Zgr+":"+i}function sPe(e,t,n){var r=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!ci.transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var a=ci.transform3dSupported,o="translate"+(a?"3d":"")+"("+r+","+i+(a?",0":"")+")";return n?"top:0;left:0;"+Gge+":"+o+";":[["top",0],["left",0],[tlt,o]]}function nvr(e){var t=[],n=e.get("fontSize"),r=e.getTextColor();r&&t.push("color:"+r),t.push("font:"+e.getFont()),n&&t.push("line-height:"+Math.round(n*3/2)+"px");var i=e.get("textShadowColor"),a=e.get("textShadowBlur")||0,o=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return i&&a&&t.push("text-shadow:"+o+"px "+s+"px "+a+"px "+i),lt(["decoration","align"],function(l){var c=e.get(l);c&&t.push("text-"+l+":"+c)}),t.join(";")}function rvr(e,t,n){var r=[],i=e.get("transitionDuration"),a=e.get("backgroundColor"),o=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),c=e.get("shadowOffsetY"),u=e.getModel("textStyle"),d=Sot(e,"html"),f=l+"px "+c+"px "+o+"px "+s;return r.push("box-shadow:"+f),t&&i&&r.push(tvr(i,n)),a&&r.push("background-color:"+a),lt(["width","color","radius"],function(p){var h="border-"+p,m=pot(h),g=e.get(m);g!=null&&r.push(h+":"+g+(p==="color"?"":"px"))}),r.push(nvr(u)),d!=null&&r.push("padding:"+EH(d).join("px ")+"px"),r.join(";")+";"}function lPe(e,t,n,r,i){var a=t&&t.painter;if(n){var o=a&&a.getViewportRoot();o&&tdr(e,o,n,r,i)}else{e[0]=r,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var ivr=function(){function e(t,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,ci.wxa)return null;var r=document.createElement("div");r.domBelongToZr=!0,this.el=r;var i=this._zr=t.getZr(),a=n.appendTo,o=a&&(yr(a)?document.querySelector(a):h6(a)?a:hi(a)&&a(t.getDom()));lPe(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(r),this._api=t,this._container=o;var s=this;r.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},r.onmousemove=function(l){if(l=l||window.event,!s._enterable){var c=i.handler,u=i.painter.getViewportRoot();lp(u,l,!0),c.dispatch("mousemove",l)}},r.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){if(!this._container){var n=this._api.getDom(),r=Xgr(n,"position"),i=n.style;i.position!=="absolute"&&r!=="absolute"&&(i.position="relative")}var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=t.get("className")||""},e.prototype.show=function(t,n){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var r=this.el,i=r.style,a=this._styleCoord;r.innerHTML?i.cssText=Qgr+rvr(t,!this._firstShow,this._longHide)+sPe(a[0],a[1],!0)+("border-color:"+sC(n)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,n,r,i,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(yr(a)&&r.get("trigger")==="item"&&!Jst(r)&&(s=evr(r,i,a)),yr(t))o.innerHTML=t+s;else if(t){o.innerHTML="",ar(t)||(t=[t]);for(var l=0;l<t.length;l++)h6(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(s&&o.childNodes.length){var c=document.createElement("div");c.innerHTML=s,o.appendChild(c)}}},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},e.prototype.moveTo=function(t,n){var r=this._styleCoord;if(lPe(r,this._zr,this._container,t,n),r[0]!=null&&r[1]!=null){var i=this.el.style,a=sPe(r[0],r[1]);lt(a,function(o){i[o[0]]=o[1]})}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],n=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),n*this._zr.getHeight())},e.prototype.hide=function(){var t=this,n=this.el.style;n.visibility="hidden",n.opacity="0",ci.transform3dSupported&&(n.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(si(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},e}(),avr=function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),uPe(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return e.prototype.update=function(t){var n=t.get("alwaysShowContent");n&&this._moveIfResized(),this._alwaysShowContent=n},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(t,n,r,i,a){var o=this;Fr(t)&&fd(""),this.el&&this._zr.remove(this.el);var s=r.getModel("textStyle");this.el=new Du({style:{rich:n.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:r.get(["textStyle","color"]),padding:Sot(r,"richText"),verticalAlign:"top",align:"left"},z:r.get("z")}),lt(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(c){o.el.style[c]=r.get(c)}),lt(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(c){o.el.style[c]=s.get(c)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el,n=this.el.getBoundingRect(),r=cPe(t.style);return[n.width+r.left+r.right,n.height+r.top+r.bottom]},e.prototype.moveTo=function(t,n){var r=this.el;if(r){var i=this._styleCoord;uPe(i,this._zr,t,n),t=i[0],n=i[1];var a=r.style,o=jy(a.borderWidth||0),s=cPe(a);r.x=t+o+s.left,r.y=n+o+s.top,r.markRedraw()}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],n=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),n*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(si(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function jy(e){return Math.max(0,e)}function cPe(e){var t=jy(e.shadowBlur||0),n=jy(e.shadowOffsetX||0),r=jy(e.shadowOffsetY||0);return{left:jy(t-n),right:jy(t+n),top:jy(t-r),bottom:jy(t+r)}}function uPe(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var ovr=new Ps({shape:{x:-1,y:-1,width:2,height:2}}),svr=function(e){tr(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r){if(!(ci.node||!r.getDom())){var i=n.getComponent("tooltip"),a=this._renderMode=Hlr(i.get("renderMode"));this._tooltipContent=a==="richText"?new avr(r):new ivr(r,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},t.prototype.render=function(n,r,i){if(!(ci.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=n,this._ecModel=r,this._api=i;var a=this._tooltipContent;a.update(n),a.setEnterable(n.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&n.get("transitionDuration")?CH(this,"_updatePosition",50,"fixRate"):uB(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var n=this._tooltipModel,r=n.get("triggerOn");Wst("itemTooltip",this._api,si(function(i,a,o){r!=="none"&&(r.indexOf(i)>=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var n=this._tooltipModel,r=this._ecModel,i=this._api,a=n.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(n,r,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(n,r,i,a){if(!(a.from===this.uid||ci.node||!i.getDom())){var o=dPe(a,i);this._ticket="";var s=a.dataByCoordSys,l=dvr(a,r,i);if(l){var c=l.el.getBoundingRect().clone();c.applyTransform(l.el.transform),this._tryShow({offsetX:c.x+c.width/2,offsetY:c.y+c.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var u=ovr;u.x=a.x,u.y=a.y,u.update(),vo(u).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:u},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(n,r,i,a))return;var d=Yst(a,r),f=d.point[0],p=d.point[1];f!=null&&p!=null&&this._tryShow({offsetX:f,offsetY:p,target:d.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(n,r,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(dPe(a,i))},t.prototype._manuallyAxisShowTip=function(n,r,i,a){var o=a.seriesIndex,s=a.dataIndex,l=r.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var c=r.getSeriesByIndex(o);if(c){var u=c.getData(),d=qI([u.getItemModel(s),c,(c.coordinateSystem||{}).model],this._tooltipModel);if(d.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(n,r){var i=n.target,a=this._tooltipModel;if(a){this._lastX=n.offsetX,this._lastY=n.offsetY;var o=n.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,n);else if(i){var s=vo(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,c;BA(i,function(u){if(vo(u).dataIndex!=null)return l=u,!0;if(vo(u).tooltipConfig!=null)return c=u,!0},!0),l?this._showSeriesItemTooltip(n,l,r):c?this._showComponentItemTooltip(n,c,r):this._hide(r)}else this._lastDataByCoordSys=null,this._hide(r)}},t.prototype._showOrMove=function(n,r){var i=n.get("showDelay");r=si(r,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(r,i):r()},t.prototype._showAxisTooltip=function(n,r){var i=this._ecModel,a=this._tooltipModel,o=[r.offsetX,r.offsetY],s=qI([r.tooltipOption],a),l=this._renderMode,c=[],u=w6("section",{blocks:[],noHeader:!0}),d=[],f=new Nee;lt(n,function(y){lt(y.dataByAxis,function(_){var S=i.getComponent(_.axisDim+"Axis",_.axisIndex),C=_.value;if(!(!S||C==null)){var w=Gst(C,S.axis,i,_.seriesDataIndices,_.valueLabelOpt),x=w6("section",{header:w,noHeader:!Fg(w),sortBlocks:!0,blocks:[]});u.blocks.push(x),lt(_.seriesDataIndices,function(T){var A=i.getSeriesByIndex(T.seriesIndex),I=T.dataIndexInside,R=A.getDataParams(I);if(!(R.dataIndex<0)){R.axisDim=_.axisDim,R.axisIndex=_.axisIndex,R.axisType=_.axisType,R.axisId=_.axisId,R.axisValue=Uge(S.axis,{value:C}),R.axisValueLabel=w,R.marker=f.makeTooltipMarker("item",sC(R.color),l);var N=h8e(A.formatTooltip(I,!0,null)),P=N.frag;if(P){var L=qI([A],a).get("valueFormatter");x.blocks.push(L?Vn({valueFormatter:L},P):P)}N.text&&d.push(N.text),c.push(R)}})}})}),u.blocks.reverse(),d.reverse();var p=r.position,h=s.get("order"),m=v8e(u,f,l,h,i.get("useUTC"),s.get("textStyle"));m&&d.unshift(m);var g=l==="richText"?`

`:"<br/>",v=d.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(n,c)?this._updatePosition(s,p,o[0],o[1],this._tooltipContent,c):this._showTooltipContent(s,v,c,Math.random()+"",o[0],o[1],p,null,f)})},t.prototype._showSeriesItemTooltip=function(n,r,i){var a=this._ecModel,o=vo(r),s=o.seriesIndex,l=a.getSeriesByIndex(s),c=o.dataModel||l,u=o.dataIndex,d=o.dataType,f=c.getData(d),p=this._renderMode,h=n.positionDefault,m=qI([f.getItemModel(u),c,l&&(l.coordinateSystem||{}).model],this._tooltipModel,h?{position:h}:null),g=m.get("trigger");if(!(g!=null&&g!=="item")){var v=c.getDataParams(u,d),y=new Nee;v.marker=y.makeTooltipMarker("item",sC(v.color),p);var _=h8e(c.formatTooltip(u,!1,d)),S=m.get("order"),C=m.get("valueFormatter"),w=_.frag,x=w?v8e(C?Vn({valueFormatter:C},w):w,y,p,S,a.get("useUTC"),m.get("textStyle")):_.text,T="item_"+c.name+"_"+u;this._showOrMove(m,function(){this._showTooltipContent(m,x,v,T,n.offsetX,n.offsetY,n.position,n.target,y)}),i({type:"showTip",dataIndexInside:u,dataIndex:f.getRawIndex(u),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(n,r,i){var a=this._renderMode==="html",o=vo(r),s=o.tooltipConfig,l=s.option||{},c=l.encodeHTMLContent;if(yr(l)){var u=l;l={content:u,formatter:u},c=!0}c&&a&&l.content&&(l=Xi(l),l.content=yf(l.content));var d=[l],f=this._ecModel.getComponent(o.componentMainType,o.componentIndex);f&&d.push(f),d.push({formatter:l.content});var p=n.positionDefault,h=qI(d,this._tooltipModel,p?{position:p}:null),m=h.get("content"),g=Math.random()+"",v=new Nee;this._showOrMove(h,function(){var y=Xi(h.get("formatterParams")||{});this._showTooltipContent(h,m,y,g,n.offsetX,n.offsetY,n.position,r,v)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(n,r,i,a,o,s,l,c,u){if(this._ticket="",!(!n.get("showContent")||!n.get("show"))){var d=this._tooltipContent;d.setEnterable(n.get("enterable"));var f=n.get("formatter");l=l||n.get("position");var p=r,h=this._getNearestPoint([o,s],i,n.get("trigger"),n.get("borderColor")),m=h.color;if(f)if(yr(f)){var g=n.ecModel.get("useUTC"),v=ar(i)?i[0]:i,y=v&&v.axisType&&v.axisType.indexOf("time")>=0;p=f,y&&(p=vH(v.axisValue,p,g)),p=hot(p,i,!0)}else if(hi(f)){var _=si(function(S,C){S===this._ticket&&(d.setContent(C,u,n,m,l),this._updatePosition(n,l,o,s,d,i,c))},this);this._ticket=a,p=f(i,a,_)}else p=f;d.setContent(p,u,n,m,l),d.show(n,m),this._updatePosition(n,l,o,s,d,i,c)}},t.prototype._getNearestPoint=function(n,r,i,a){if(i==="axis"||ar(r))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!ar(r))return{color:a||r.color||r.borderColor}},t.prototype._updatePosition=function(n,r,i,a,o,s,l){var c=this._api.getWidth(),u=this._api.getHeight();r=r||n.get("position");var d=o.getSize(),f=n.get("align"),p=n.get("verticalAlign"),h=l&&l.getBoundingRect().clone();if(l&&h.applyTransform(l.transform),hi(r)&&(r=r([i,a],s,o.el,h,{viewSize:[c,u],contentSize:d.slice()})),ar(r))i=vc(r[0],c),a=vc(r[1],u);else if(Fr(r)){var m=r;m.width=d[0],m.height=d[1];var g=E6(m,{width:c,height:u});i=g.x,a=g.y,f=null,p=null}else if(yr(r)&&l){var v=uvr(r,h,d,n.get("borderWidth"));i=v[0],a=v[1]}else{var v=lvr(i,a,o,c,u,f?null:20,p?null:20);i=v[0],a=v[1]}if(f&&(i-=fPe(f)?d[0]/2:f==="right"?d[0]:0),p&&(a-=fPe(p)?d[1]/2:p==="bottom"?d[1]:0),Jst(n)){var v=cvr(i,a,o,c,u);i=v[0],a=v[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(n,r){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===n.length;return o&&lt(i,function(s,l){var c=s.dataByAxis||[],u=n[l]||{},d=u.dataByAxis||[];o=o&&c.length===d.length,o&&lt(c,function(f,p){var h=d[p]||{},m=f.seriesDataIndices||[],g=h.seriesDataIndices||[];o=o&&f.value===h.value&&f.axisType===h.axisType&&f.axisId===h.axisId&&m.length===g.length,o&&lt(m,function(v,y){var _=g[y];o=o&&v.seriesIndex===_.seriesIndex&&v.dataIndex===_.dataIndex}),a&&lt(f.seriesDataIndices,function(v){var y=v.seriesIndex,_=r[y],S=a[y];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=n,this._cbParamsList=r,!!o},t.prototype._hide=function(n){this._lastDataByCoordSys=null,n({type:"hideTip",from:this.uid})},t.prototype.dispose=function(n,r){ci.node||!r.getDom()||(uB(this,"_updatePosition"),this._tooltipContent.dispose(),nle("itemTooltip",r))},t.type="tooltip",t}(ym);function qI(e,t,n){var r=t.ecModel,i;n?(i=new Os(n,r,r),i=new Os(t.option,i,r)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof Os&&(o=o.get("tooltip",!0)),yr(o)&&(o={formatter:o}),o&&(i=new Os(o,i,r)))}return i}function dPe(e,t){return e.dispatchAction||si(t.dispatchAction,t)}function lvr(e,t,n,r,i,a,o){var s=n.getSize(),l=s[0],c=s[1];return a!=null&&(e+l+a+2>r?e-=l+a:e+=a),o!=null&&(t+c+o>i?t-=c+o:t+=o),[e,t]}function cvr(e,t,n,r,i){var a=n.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,r)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function uvr(e,t,n,r){var i=n[0],a=n[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,c=t.width,u=t.height;switch(e){case"inside":s=t.x+c/2-i/2,l=t.y+u/2-a/2;break;case"top":s=t.x+c/2-i/2,l=t.y-a-o;break;case"bottom":s=t.x+c/2-i/2,l=t.y+u+o;break;case"left":s=t.x-i-o,l=t.y+u/2-a/2;break;case"right":s=t.x+c+o,l=t.y+u/2-a/2}return[s,l]}function fPe(e){return e==="center"||e==="middle"}function dvr(e,t,n){var r=Qme(e).queryOptionMap,i=r.keys()[0];if(!(!i||i==="series")){var a=w8(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=n.getViewOfComponentModel(o),l;if(s.group.traverse(function(c){var u=vo(c).tooltipConfig;if(u&&u.name===e.name)return l=c,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}function fvr(e){bm(Kst),e.registerComponentModel(Ygr),e.registerComponentView(svr),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Ru),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Ru)}var pvr=function(e,t){if(t==="all")return{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}},rle=function(e){tr(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return t.prototype.init=function(n,r,i){this.mergeDefaultAndTheme(n,i),n.selected=n.selected||{},this._updateSelector(n)},t.prototype.mergeOption=function(n,r){e.prototype.mergeOption.call(this,n,r),this._updateSelector(n)},t.prototype._updateSelector=function(n){var r=n.selector,i=this.ecModel;r===!0&&(r=n.selector=["all","inverse"]),ar(r)&&lt(r,function(a,o){yr(a)&&(a={type:a}),r[o]=ba(a,pvr(i,a.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var n=this._data;if(n[0]&&this.get("selectedMode")==="single"){for(var r=!1,i=0;i<n.length;i++){var a=n[i].get("name");if(this.isSelected(a)){this.select(a),r=!0;break}}!r&&this.select(n[0].get("name"))}},t.prototype._updateData=function(n){var r=[],i=[];n.eachRawSeries(function(l){var c=l.name;i.push(c);var u;if(l.legendVisualProvider){var d=l.legendVisualProvider,f=d.getAllNames();n.isSeriesFiltered(l)||(i=i.concat(f)),f.length?r=r.concat(f):u=!0}else u=!0;u&&Zme(l)&&r.push(l.name)}),this._availableNames=i;var a=this.get("data")||r,o=Mr(),s=Nr(a,function(l){return(yr(l)||is(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Os(l,this,this.ecModel))},this);this._data=mc(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(n){var r=this.option.selected,i=this.get("selectedMode");if(i==="single"){var a=this._data;lt(a,function(o){r[o.get("name")]=!1})}r[n]=!0},t.prototype.unSelect=function(n){this.get("selectedMode")!=="single"&&(this.option.selected[n]=!1)},t.prototype.toggleSelected=function(n){var r=this.option.selected;r.hasOwnProperty(n)||(r[n]=!0),this[r[n]?"unSelect":"select"](n)},t.prototype.allSelect=function(){var n=this._data,r=this.option.selected;lt(n,function(i){r[i.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var n=this._data,r=this.option.selected;lt(n,function(i){var a=i.get("name",!0);r.hasOwnProperty(a)||(r[a]=!0),r[a]=!r[a]})},t.prototype.isSelected=function(n){var r=this.option.selected;return!(r.hasOwnProperty(n)&&!r[n])&&ja(this._availableNames,n)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(qa),Jw=hl,ile=lt,l9=Jl,rlt=function(e){tr(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return t.prototype.init=function(){this.group.add(this._contentGroup=new l9),this.group.add(this._selectorGroup=new l9),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(n,r,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!n.get("show",!0)){var o=n.get("align"),s=n.get("orient");(!o||o==="auto")&&(o=n.get("left")==="right"&&s==="vertical"?"right":"left");var l=n.get("selector",!0),c=n.get("selectorPosition",!0);l&&(!c||c==="auto")&&(c=s==="horizontal"?"end":"start"),this.renderInner(o,n,r,i,l,s,c);var u=n.getBoxLayoutParams(),d={width:i.getWidth(),height:i.getHeight()},f=n.get("padding"),p=E6(u,d,f),h=this.layoutInner(n,o,p,a,l,c),m=E6(Hi({width:h.width,height:h.height},u),d,f);this.group.x=m.x-h.x,this.group.y=m.y-h.y,this.group.markRedraw(),this.group.add(this._backgroundEl=Wgr(h,n))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(n,r,i,a,o,s,l){var c=this.getContentGroup(),u=Mr(),d=r.get("selectedMode"),f=[];i.eachRawSeries(function(p){!p.get("legendHoverLink")&&f.push(p.id)}),ile(r.getData(),function(p,h){var m=p.get("name");if(!this.newlineDisabled&&(m===""||m===`
`)){var g=new l9;g.newline=!0,c.add(g);return}var v=i.getSeriesByName(m)[0];if(!u.get(m))if(v){var y=v.getData(),_=y.getVisual("legendLineStyle")||{},S=y.getVisual("legendIcon"),C=y.getVisual("style"),w=this._createItem(v,m,h,p,r,n,_,C,S,d,a);w.on("click",Jw(pPe,m,null,a,f)).on("mouseover",Jw(ale,v.name,null,a,f)).on("mouseout",Jw(ole,v.name,null,a,f)),i.ssr&&w.eachChild(function(x){var T=vo(x);T.seriesIndex=v.seriesIndex,T.dataIndex=h,T.ssrType="legend"}),u.set(m,!0)}else i.eachRawSeries(function(x){if(!u.get(m)&&x.legendVisualProvider){var T=x.legendVisualProvider;if(!T.containName(m))return;var A=T.indexOfName(m),I=T.getItemVisual(A,"style"),R=T.getItemVisual(A,"legendIcon"),N=Y1(I.fill);N&&N[3]===0&&(N[3]=.2,I=Vn(Vn({},I),{fill:rH(N,"rgba")}));var P=this._createItem(x,m,h,p,r,n,{},I,R,d,a);P.on("click",Jw(pPe,null,m,a,f)).on("mouseover",Jw(ale,null,m,a,f)).on("mouseout",Jw(ole,null,m,a,f)),i.ssr&&P.eachChild(function(L){var $=vo(L);$.seriesIndex=x.seriesIndex,$.dataIndex=h,$.ssrType="legend"}),u.set(m,!0)}},this)},this),o&&this._createSelector(o,r,a,s,l)},t.prototype._createSelector=function(n,r,i,a,o){var s=this.getSelectorGroup();ile(n,function(c){var u=c.type,d=new Du({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:u==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(d);var f=r.getModel("selectorLabel"),p=r.getModel(["emphasis","selectorLabel"]);pge(d,{normal:f,emphasis:p},{defaultText:c.title}),nB(d)})},t.prototype._createItem=function(n,r,i,a,o,s,l,c,u,d,f){var p=n.visualDrawType,h=o.get("itemWidth"),m=o.get("itemHeight"),g=o.isSelected(r),v=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),_=a.get("icon");u=_||u||"roundRect";var S=hvr(u,a,l,c,p,g,f),C=new l9,w=a.getModel("textStyle");if(hi(n.getLegendIcon)&&(!_||_==="inherit"))C.add(n.getLegendIcon({itemWidth:h,itemHeight:m,icon:u,iconRotate:v,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}));else{var x=_==="inherit"&&n.getData().getVisual("symbol")?v==="inherit"?n.getData().getVisual("symbolRotate"):v:0;C.add(mvr({itemWidth:h,itemHeight:m,icon:u,iconRotate:x,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}))}var T=s==="left"?h+5:-5,A=s,I=o.get("formatter"),R=r;yr(I)&&I?R=I.replace("{name}",r??""):hi(I)&&(R=I(r));var N=g?w.getTextColor():a.get("inactiveColor");C.add(new Du({style:oC(w,{text:R,x:T,y:m/2,fill:N,align:A,verticalAlign:"middle"},{inheritColor:N})}));var P=new Ps({shape:C.getBoundingRect(),style:{fill:"transparent"}}),L=a.getModel("tooltip");return L.get("show")&&dge({el:P,componentModel:o,itemName:r,itemTooltipOption:L.option}),C.add(P),C.eachChild(function($){$.silent=!0}),P.silent=!d,this.getContentGroup().add(C),nB(C),C.__legendDataIndex=i,C},t.prototype.layoutInner=function(n,r,i,a,o,s){var l=this.getContentGroup(),c=this.getSelectorGroup();zR(n.get("orient"),l,n.get("itemGap"),i.width,i.height);var u=l.getBoundingRect(),d=[-u.x,-u.y];if(c.markRedraw(),l.markRedraw(),o){zR("horizontal",c,n.get("selectorItemGap",!0));var f=c.getBoundingRect(),p=[-f.x,-f.y],h=n.get("selectorButtonGap",!0),m=n.getOrient().index,g=m===0?"width":"height",v=m===0?"height":"width",y=m===0?"y":"x";s==="end"?p[m]+=u[g]+h:d[m]+=f[g]+h,p[1-m]+=u[v]/2-f[v]/2,c.x=p[0],c.y=p[1],l.x=d[0],l.y=d[1];var _={x:0,y:0};return _[g]=u[g]+h+f[g],_[v]=Math.max(u[v],f[v]),_[y]=Math.min(0,f[y]+p[1-m]),_}else return l.x=d[0],l.y=d[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(ym);function hvr(e,t,n,r,i,a,o){function s(g,v){g.lineWidth==="auto"&&(g.lineWidth=v.lineWidth>0?2:0),ile(g,function(y,_){g[_]==="inherit"&&(g[_]=v[_])})}var l=t.getModel("itemStyle"),c=l.getItemStyle(),u=e.lastIndexOf("empty",0)===0?"fill":"stroke",d=l.getShallow("decal");c.decal=!d||d==="inherit"?r.decal:Gse(d,o),c.fill==="inherit"&&(c.fill=r[i]),c.stroke==="inherit"&&(c.stroke=r[u]),c.opacity==="inherit"&&(c.opacity=(i==="fill"?r:n).opacity),s(c,r);var f=t.getModel("lineStyle"),p=f.getLineStyle();if(s(p,n),c.fill==="auto"&&(c.fill=r.fill),c.stroke==="auto"&&(c.stroke=r.fill),p.stroke==="auto"&&(p.stroke=r.fill),!a){var h=t.get("inactiveBorderWidth"),m=c[u];c.lineWidth=h==="auto"?r.lineWidth>0&&m?2:0:c.lineWidth,c.fill=t.get("inactiveColor"),c.stroke=t.get("inactiveBorderColor"),p.stroke=f.get("inactiveColor"),p.lineWidth=f.get("inactiveWidth")}return{itemStyle:c,lineStyle:p}}function mvr(e){var t=e.icon||"roundRect",n=g_(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function pPe(e,t,n,r){ole(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:e??t}),ale(e,t,n,r)}function ilt(e){for(var t=e.getZr().storage.getDisplayList(),n,r=0,i=t.length;r<i&&!(n=t[r].states.emphasis);)r++;return n&&n.hoverLayer}function ale(e,t,n,r){ilt(n)||n.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:r})}function ole(e,t,n,r){ilt(n)||n.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:r})}function gvr(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(n){for(var r=0;r<t.length;r++)if(!t[r].isSelected(n.name))return!1;return!0})}function WI(e,t,n){var r={},i=e==="toggleSelected",a;return n.eachComponent("legend",function(o){i&&a!=null?o[a?"select":"unSelect"](t.name):e==="allSelect"||e==="inverseSelect"?o[e]():(o[e](t.name),a=o.isSelected(t.name));var s=o.getData();lt(s,function(l){var c=l.get("name");if(!(c===`
`||c==="")){var u=o.isSelected(c);r.hasOwnProperty(c)?r[c]=r[c]&&u:r[c]=u}})}),e==="allSelect"||e==="inverseSelect"?{selected:r}:{name:t.name,selected:r}}function vvr(e){e.registerAction("legendToggleSelect","legendselectchanged",hl(WI,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",hl(WI,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",hl(WI,"inverseSelect")),e.registerAction("legendSelect","legendselected",hl(WI,"select")),e.registerAction("legendUnSelect","legendunselected",hl(WI,"unSelect"))}function alt(e){e.registerComponentModel(rle),e.registerComponentView(rlt),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,gvr),e.registerSubTypeDefaulter("legend",function(){return"plain"}),vvr(e)}var yvr=function(e){tr(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.setScrollDataIndex=function(n){this.option.scrollDataIndex=n},t.prototype.init=function(n,r,i){var a=T8(n);e.prototype.init.call(this,n,r,i),hPe(this,n,a)},t.prototype.mergeOption=function(n,r){e.prototype.mergeOption.call(this,n,r),hPe(this,this.option,n)},t.type="legend.scroll",t.defaultOption=bge(rle.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(rle);function hPe(e,t,n){var r=e.getOrient(),i=[1,1];i[r.index]=0,j3(t,n,{type:"box",ignoreSize:!!i})}var mPe=Jl,lte=["width","height"],cte=["x","y"],bvr=function(e){tr(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new mPe),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new mPe)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(n,r,i,a,o,s,l){var c=this;e.prototype.renderInner.call(this,n,r,i,a,o,s,l);var u=this._controllerGroup,d=r.get("pageIconSize",!0),f=ar(d)?d:[d,d];h("pagePrev",0);var p=r.getModel("pageTextStyle");u.add(new Du({name:"pageText",style:{text:"xx/xx",fill:p.getTextColor(),font:p.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),h("pageNext",1);function h(m,g){var v=m+"DataIndex",y=uge(r.get("pageIcons",!0)[r.getOrient().name][g],{onclick:si(c._pageGo,c,v,r,a)},{x:-f[0]/2,y:-f[1]/2,width:f[0],height:f[1]});y.name=m,u.add(y)}},t.prototype.layoutInner=function(n,r,i,a,o,s){var l=this.getSelectorGroup(),c=n.getOrient().index,u=lte[c],d=cte[c],f=lte[1-c],p=cte[1-c];o&&zR("horizontal",l,n.get("selectorItemGap",!0));var h=n.get("selectorButtonGap",!0),m=l.getBoundingRect(),g=[-m.x,-m.y],v=Xi(i);o&&(v[u]=i[u]-m[u]-h);var y=this._layoutContentAndController(n,a,v,c,u,f,p,d);if(o){if(s==="end")g[c]+=y[u]+h;else{var _=m[u]+h;g[c]-=_,y[d]-=_}y[u]+=m[u]+h,g[1-c]+=y[p]+y[f]/2-m[f]/2,y[f]=Math.max(y[f],m[f]),y[p]=Math.min(y[p],m[p]+g[1-c]),l.x=g[0],l.y=g[1],l.markRedraw()}return y},t.prototype._layoutContentAndController=function(n,r,i,a,o,s,l,c){var u=this.getContentGroup(),d=this._containerGroup,f=this._controllerGroup;zR(n.get("orient"),u,n.get("itemGap"),a?i.width:null,a?null:i.height),zR("horizontal",f,n.get("pageButtonItemGap",!0));var p=u.getBoundingRect(),h=f.getBoundingRect(),m=this._showController=p[o]>i[o],g=[-p.x,-p.y];r||(g[a]=u[c]);var v=[0,0],y=[-h.x,-h.y],_=ra(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(m){var S=n.get("pageButtonPosition",!0);S==="end"?y[a]+=i[o]-h[o]:v[a]+=h[o]+_}y[1-a]+=p[s]/2-h[s]/2,u.setPosition(g),d.setPosition(v),f.setPosition(y);var C={x:0,y:0};if(C[o]=m?i[o]:p[o],C[s]=Math.max(p[s],h[s]),C[l]=Math.min(0,h[l]+y[1-a]),d.__rectSize=i[o],m){var w={x:0,y:0};w[o]=Math.max(i[o]-h[o]-_,0),w[s]=C[s],d.setClipPath(new Ps({shape:w})),d.__rectSize=w[o]}else f.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var x=this._getPageInfo(n);return x.pageIndex!=null&&h_(u,{x:x.contentPosition[0],y:x.contentPosition[1]},m?n:null),this._updatePageInfoView(n,x),C},t.prototype._pageGo=function(n,r,i){var a=this._getPageInfo(r)[n];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:r.id})},t.prototype._updatePageInfoView=function(n,r){var i=this._controllerGroup;lt(["pagePrev","pageNext"],function(u){var d=u+"DataIndex",f=r[d]!=null,p=i.childOfName(u);p&&(p.setStyle("fill",f?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),p.cursor=f?"pointer":"default")});var a=i.childOfName("pageText"),o=n.get("pageFormatter"),s=r.pageIndex,l=s!=null?s+1:0,c=r.pageCount;a&&o&&a.setStyle("text",yr(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",c==null?"":c+""):o({current:l,total:c}))},t.prototype._getPageInfo=function(n){var r=n.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=n.getOrient().index,s=lte[o],l=cte[o],c=this._findTargetItemIndex(r),u=i.children(),d=u[c],f=u.length,p=f?1:0,h={contentPosition:[i.x,i.y],pageCount:p,pageIndex:p-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!d)return h;var m=S(d);h.contentPosition[o]=-m.s;for(var g=c+1,v=m,y=m,_=null;g<=f;++g)_=S(u[g]),(!_&&y.e>v.s+a||_&&!C(_,v.s))&&(y.i>v.i?v=y:v=_,v&&(h.pageNextDataIndex==null&&(h.pageNextDataIndex=v.i),++h.pageCount)),y=_;for(var g=c-1,v=m,y=m,_=null;g>=-1;--g)_=S(u[g]),(!_||!C(y,_.s))&&v.i<y.i&&(y=v,h.pagePrevDataIndex==null&&(h.pagePrevDataIndex=v.i),++h.pageCount,++h.pageIndex),v=_;return h;function S(w){if(w){var x=w.getBoundingRect(),T=x[l]+w[l];return{s:T,e:T+x[s],i:w.__legendDataIndex}}}function C(w,x){return w.e>=x&&w.s<=x+a}},t.prototype._findTargetItemIndex=function(n){if(!this._showController)return 0;var r,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===n&&(r=s)}),r??a},t.type="legend.scroll",t}(rlt);function _vr(e){e.registerAction("legendScroll","legendscroll",function(t,n){var r=t.scrollDataIndex;r!=null&&n.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(r)})})}function Svr(e){bm(alt),e.registerComponentModel(yvr),e.registerComponentView(bvr),_vr(e)}function Evr(e){bm(alt),bm(Svr)}var Cvr=function(e){tr(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="dataZoom.inside",t.defaultOption=bge(vB.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(vB),qge=rl();function wvr(e,t,n){qge(e).coordSysRecordMap.each(function(r){var i=r.dataZoomInfoMap.get(t.uid);i&&(i.getRange=n)})}function xvr(e,t){for(var n=qge(e).coordSysRecordMap,r=n.keys(),i=0;i<r.length;i++){var a=r[i],o=n.get(a),s=o.dataZoomInfoMap;if(s){var l=t.uid,c=s.get(l);c&&(s.removeKey(l),s.keys().length||olt(n,o))}}}function olt(e,t){if(t){e.removeKey(t.model.uid);var n=t.controller;n&&n.dispose()}}function Tvr(e,t){var n={model:t,containsPoint:hl(Avr,t),dispatchAction:hl(Ivr,e),dataZoomInfoMap:null,controller:null},r=n.controller=new hgr(e.getZr());return lt(["pan","zoom","scrollMove"],function(i){r.on(i,function(a){var o=[];n.dataZoomInfoMap.each(function(s){if(a.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[i],c=l&&l(s.dzReferCoordSysInfo,n.model.mainType,n.controller,a);!s.model.get("disabled",!0)&&c&&o.push({dataZoomId:s.model.id,start:c[0],end:c[1]})}}),o.length&&n.dispatchAction(o)})}),n}function Ivr(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function Avr(e,t,n,r){return e.coordinateSystem.containPoint([n,r])}function Rvr(e){var t,n="type_",r={type_true:2,type_move:1,type_false:0,type_undefined:-1},i=!0;return e.each(function(a){var o=a.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;r[n+s]>r[n+t]&&(t=s),i=i&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function Nvr(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,n){var r=qge(n),i=r.coordSysRecordMap||(r.coordSysRecordMap=Mr());i.each(function(a){a.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=Xst(a);lt(o.infoList,function(s){var l=s.model.uid,c=i.get(l)||i.set(l,Tvr(n,s.model)),u=c.dataZoomInfoMap||(c.dataZoomInfoMap=Mr());u.set(a.uid,{dzReferCoordSysInfo:s,model:a,getRange:null})})}),i.each(function(a){var o=a.controller,s,l=a.dataZoomInfoMap;if(l){var c=l.keys()[0];c!=null&&(s=l.get(c))}if(!s){olt(i,a);return}var u=Rvr(l);o.enable(u.controlType,u.opt),o.setPointerChecker(a.containsPoint),CH(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var Ovr=function(e){tr(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="dataZoom.inside",n}return t.prototype.render=function(n,r,i){if(e.prototype.render.apply(this,arguments),n.noTarget()){this._clear();return}this.range=n.getPercentRange(),wvr(i,n,{pan:si(ute.pan,this),zoom:si(ute.zoom,this),scrollMove:si(ute.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){xvr(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(Zst),ute={zoom:function(e,t,n,r){var i=this.range,a=i.slice(),o=e.axisModels[0];if(o){var s=dte[t](null,[r.originX,r.originY],o,n,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],c=Math.max(1/r.scale,0);a[0]=(a[0]-l)*c+l,a[1]=(a[1]-l)*c+l;var u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(AH(0,a,[0,100],0,u.minSpan,u.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:gPe(function(e,t,n,r,i,a){var o=dte[r]([a.oldX,a.oldY],[a.newX,a.newY],t,i,n);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:gPe(function(e,t,n,r,i,a){var o=dte[r]([0,0],[a.scrollDelta,a.scrollDelta],t,i,n);return o.signal*(e[1]-e[0])*a.scrollDelta})};function gPe(e){return function(t,n,r,i){var a=this.range,o=a.slice(),s=t.axisModels[0];if(s){var l=e(o,s,t,n,r,i);if(AH(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var dte={grid:function(e,t,n,r,i){var a=n.axis,o={},s=i.model.coordinateSystem.getRect();return e=e||[0,0],a.dim==="x"?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(e,t,n,r,i){var a=n.axis,o={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),c=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),n.mainType==="radiusAxis"?(o.pixel=t[0]-e[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=c[1]-c[0],o.pixelStart=c[0],o.signal=a.inverse?-1:1),o},singleAxis:function(e,t,n,r,i){var a=n.axis,o=i.model.coordinateSystem.getRect(),s={};return e=e||[0,0],a.orient==="horizontal"?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};function Lvr(e){Qst(e),e.registerComponentModel(Cvr),e.registerComponentView(Ovr),Nvr(e)}var Pvr=function(e){tr(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=bge(vB.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(vB),YI=Ps,vPe=7,kvr=1,fte=30,Mvr=7,KI="horizontal",yPe="vertical",Dvr=5,$vr=["line","bar","candlestick","scatter"],Fvr={easing:"cubicOut",duration:100,delay:0},Bvr=function(e){tr(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return t.prototype.init=function(n,r){this.api=r,this._onBrush=si(this._onBrush,this),this._onBrushEnd=si(this._onBrushEnd,this)},t.prototype.render=function(n,r,i,a){if(e.prototype.render.apply(this,arguments),CH(this,"_dispatchZoomAction",n.get("throttle"),"fixRate"),this._orient=n.getOrient(),n.get("show")===!1){this.group.removeAll();return}if(n.noTarget()){this._clear(),this.group.removeAll();return}(!a||a.type!=="dataZoom"||a.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){uB(this,"_dispatchZoomAction");var n=this.api.getZr();n.off("mousemove",this._onBrush),n.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var n=this.group;n.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var r=this._displayables.sliderGroup=new Jl;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),n.add(r),this._positionGroup()},t.prototype._resetLocation=function(){var n=this.dataZoomModel,r=this.api,i=n.get("brushSelect"),a=i?Mvr:0,o=this._findCoordRect(),s={width:r.getWidth(),height:r.getHeight()},l=this._orient===KI?{right:s.width-o.x-o.width,top:s.height-fte-vPe-a,width:o.width,height:fte}:{right:vPe,top:o.y,width:fte,height:o.height},c=T8(n.option);lt(["right","top","width","height"],function(d){c[d]==="ph"&&(c[d]=l[d])});var u=E6(c,s);this._location={x:u.x,y:u.y},this._size=[u.width,u.height],this._orient===yPe&&this._size.reverse()},t.prototype._positionGroup=function(){var n=this.group,r=this._location,i=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),o=a&&a.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===KI&&!o?{scaleY:l?1:-1,scaleX:1}:i===KI&&o?{scaleY:l?1:-1,scaleX:-1}:i===yPe&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var c=n.getBoundingRect([s]);n.x=r.x-c.x,n.y=r.y-c.y,n.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var n=this.dataZoomModel,r=this._size,i=this._displayables.sliderGroup,a=n.get("brushSelect");i.add(new YI({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:n.get("backgroundColor")},z2:-40}));var o=new YI({shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:"transparent"},z2:0,onclick:si(this._onClickPanel,this)}),s=this.api.getZr();a?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),i.add(o)},t.prototype._renderDataShadow=function(){var n=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!n)return;var r=this._size,i=this._shadowSize||[],a=n.series,o=a.getRawData(),s=a.getShadowDim&&a.getShadowDim(),l=s&&o.getDimensionInfo(s)?a.getShadowDim():n.otherDim;if(l==null)return;var c=this._shadowPolygonPts,u=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||r[0]!==i[0]||r[1]!==i[1]){var d=o.getDataExtent(l),f=(d[1]-d[0])*.3;d=[d[0]-f,d[1]+f];var p=[0,r[1]],h=[0,r[0]],m=[[r[0],0],[0,0]],g=[],v=h[1]/(o.count()-1),y=0,_=Math.round(o.count()/r[0]),S;o.each([l],function(A,I){if(_>0&&I%_){y+=v;return}var R=A==null||isNaN(A)||A==="",N=R?0:Gc(A,d,p,!0);R&&!S&&I?(m.push([m[m.length-1][0],0]),g.push([g[g.length-1][0],0])):!R&&S&&(m.push([y,0]),g.push([y,0])),m.push([y,N]),g.push([y,N]),y+=v,S=R}),c=this._shadowPolygonPts=m,u=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[r[0],r[1]];var C=this.dataZoomModel;function w(A){var I=C.getModel(A?"selectedDataBackground":"dataBackground"),R=new Jl,N=new x8({shape:{points:c},segmentIgnoreThreshold:1,style:I.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),P=new uH({shape:{points:u},segmentIgnoreThreshold:1,style:I.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return R.add(N),R.add(P),R}for(var x=0;x<3;x++){var T=w(x===1);this._displayables.sliderGroup.add(T),this._displayables.dataShadowSegs.push(T)}},t.prototype._prepareDataShadowInfo=function(){var n=this.dataZoomModel,r=n.get("showDataShadow");if(r!==!1){var i,a=this.ecModel;return n.eachTargetAxis(function(o,s){var l=n.getAxisProxy(o,s).getTargetSeriesModels();lt(l,function(c){if(!i&&!(r!==!0&&ja($vr,c.get("type"))<0)){var u=a.getComponent(Cb(o),s).axis,d=jvr(o),f,p=c.coordinateSystem;d!=null&&p.getOtherAxis&&(f=p.getOtherAxis(u).inverse),d=c.getData().mapDimension(d),i={thisAxis:u,series:c,thisDim:o,otherDim:d,otherAxisInverse:f}}},this)},this),i}},t.prototype._renderHandle=function(){var n=this.group,r=this._displayables,i=r.handles=[null,null],a=r.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,c=this.api,u=l.get("borderRadius")||0,d=l.get("brushSelect"),f=r.filler=new YI({silent:d,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(f),o.add(new YI({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:u},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:kvr,fill:"rgba(0,0,0,0)"}})),lt([0,1],function(_){var S=l.get("handleIcon");!lB[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var C=g_(S,-1,0,2,2,null,!0);C.attr({cursor:bPe(this._orient),draggable:!0,drift:si(this._onDragMove,this,_),ondragend:si(this._onDragEnd,this),onmouseover:si(this._showDataInfo,this,!0),onmouseout:si(this._showDataInfo,this,!1),z2:5});var w=C.getBoundingRect(),x=l.get("handleSize");this._handleHeight=vc(x,this._size[1]),this._handleWidth=w.width/w.height*this._handleHeight,C.setStyle(l.getModel("handleStyle").getItemStyle()),C.style.strokeNoScale=!0,C.rectHover=!0,C.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),nB(C);var T=l.get("handleColor");T!=null&&(C.style.fill=T),o.add(i[_]=C);var A=l.getModel("textStyle");n.add(a[_]=new Du({silent:!0,invisible:!0,style:oC(A,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:A.getTextColor(),font:A.getFont()}),z2:10}))},this);var p=f;if(d){var h=vc(l.get("moveHandleSize"),s[1]),m=r.moveHandle=new Ps({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:h}}),g=h*.8,v=r.moveHandleIcon=g_(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);v.silent=!0,v.y=s[1]+h/2-.5,m.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(s[1]/2,Math.max(h,10));p=r.moveZone=new Ps({invisible:!0,shape:{y:s[1]-y,height:h+y}}),p.on("mouseover",function(){c.enterEmphasis(m)}).on("mouseout",function(){c.leaveEmphasis(m)}),o.add(m),o.add(v),o.add(p)}p.attr({draggable:!0,cursor:bPe(this._orient),drift:si(this._onDragMove,this,"all"),ondragstart:si(this._showDataInfo,this,!0),ondragend:si(this._onDragEnd,this),onmouseover:si(this._showDataInfo,this,!0),onmouseout:si(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var n=this._range=this.dataZoomModel.getPercentRange(),r=this._getViewExtent();this._handleEnds=[Gc(n[0],[0,100],r,!0),Gc(n[1],[0,100],r,!0)]},t.prototype._updateInterval=function(n,r){var i=this.dataZoomModel,a=this._handleEnds,o=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];AH(r,a,o,i.get("zoomLock")?"all":n,s.minSpan!=null?Gc(s.minSpan,l,o,!0):null,s.maxSpan!=null?Gc(s.maxSpan,l,o,!0):null);var c=this._range,u=this._range=MA([Gc(a[0],o,l,!0),Gc(a[1],o,l,!0)]);return!c||c[0]!==u[0]||c[1]!==u[1]},t.prototype._updateView=function(n){var r=this._displayables,i=this._handleEnds,a=MA(i.slice()),o=this._size;lt([0,1],function(p){var h=r.handles[p],m=this._handleHeight;h.attr({scaleX:m/2,scaleY:m/2,x:i[p]+(p?-1:1),y:o[1]/2-m/2})},this),r.filler.setShape({x:a[0],y:0,width:a[1]-a[0],height:o[1]});var s={x:a[0],width:a[1]-a[0]};r.moveHandle&&(r.moveHandle.setShape(s),r.moveZone.setShape(s),r.moveZone.getBoundingRect(),r.moveHandleIcon&&r.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=r.dataShadowSegs,c=[0,a[0],a[1],o[0]],u=0;u<l.length;u++){var d=l[u],f=d.getClipPath();f||(f=new Ps,d.setClipPath(f)),f.setShape({x:c[u],y:0,width:c[u+1]-c[u],height:o[1]})}this._updateDataInfo(n)},t.prototype._updateDataInfo=function(n){var r=this.dataZoomModel,i=this._displayables,a=i.handleLabels,o=this._orient,s=["",""];if(r.get("showDetail")){var l=r.findRepresentativeAxisProxy();if(l){var c=l.getAxisModel().axis,u=this._range,d=n?l.calculateDataWindow({start:u[0],end:u[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(d[0],c),this._formatLabel(d[1],c)]}}var f=MA(this._handleEnds.slice());p.call(this,0),p.call(this,1);function p(h){var m=Nat(i.handles[h].parent,this.group),g=Oat(h===0?"right":"left",m),v=this._handleWidth/2+Dvr,y=_6([f[h]+(h===0?-v:v),this._size[1]/2],m);a[h].setStyle({x:y[0],y:y[1],verticalAlign:o===KI?"middle":g,align:o===KI?g:"center",text:s[h]})}},t.prototype._formatLabel=function(n,r){var i=this.dataZoomModel,a=i.get("labelFormatter"),o=i.get("labelPrecision");(o==null||o==="auto")&&(o=r.getPixelPrecision());var s=n==null||isNaN(n)?"":r.type==="category"||r.type==="time"?r.scale.getLabel({value:Math.round(n)}):n.toFixed(Math.min(o,20));return hi(a)?a(n,s):yr(a)?a.replace("{value}",s):s},t.prototype._showDataInfo=function(n){n=this._dragging||n;var r=this._displayables,i=r.handleLabels;i[0].attr("invisible",!n),i[1].attr("invisible",!n),r.moveHandle&&this.api[n?"enterEmphasis":"leaveEmphasis"](r.moveHandle,1)},t.prototype._onDragMove=function(n,r,i,a){this._dragging=!0,z3(a.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=_6([r,i],o,!0),l=this._updateInterval(n,s[0]),c=this.dataZoomModel.get("realtime");this._updateView(!c),l&&c&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var n=this.dataZoomModel.get("realtime");!n&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(n){var r=this._size,i=this._displayables.sliderGroup.transformCoordToLocal(n.offsetX,n.offsetY);if(!(i[0]<0||i[0]>r[0]||i[1]<0||i[1]>r[1])){var a=this._handleEnds,o=(a[0]+a[1])/2,s=this._updateInterval("all",i[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(n){var r=n.offsetX,i=n.offsetY;this._brushStart=new na(r,i),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(n){if(this._brushing){var r=this._displayables.brushRect;if(this._brushing=!1,!!r){r.attr("ignore",!0);var i=r.shape,a=+new Date;if(!(a-this._brushStartTime<200&&Math.abs(i.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=MA([Gc(i.x,o,s,!0),Gc(i.x+i.width,o,s,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(n){this._brushing&&(z3(n.event),this._updateBrushRect(n.offsetX,n.offsetY))},t.prototype._updateBrushRect=function(n,r){var i=this._displayables,a=this.dataZoomModel,o=i.brushRect;o||(o=i.brushRect=new YI({silent:!0,style:a.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,c=l.transformCoordToLocal(n,r),u=l.transformCoordToLocal(s.x,s.y),d=this._size;c[0]=Math.max(Math.min(d[0],c[0]),0),o.setShape({x:u[0],y:0,width:c[0]-u[0],height:d[1]})},t.prototype._dispatchZoomAction=function(n){var r=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:n?Fvr:null,start:r[0],end:r[1]})},t.prototype._findCoordRect=function(){var n,r=Xst(this.dataZoomModel).infoList;if(!n&&r.length){var i=r[0].model.coordinateSystem;n=i.getRect&&i.getRect()}if(!n){var a=this.api.getWidth(),o=this.api.getHeight();n={x:a*.2,y:o*.2,width:a*.6,height:o*.6}}return n},t.type="dataZoom.slider",t}(Zst);function jvr(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function bPe(e){return e==="vertical"?"ns-resize":"ew-resize"}function zvr(e){e.registerComponentModel(Pvr),e.registerComponentView(Bvr),Qst(e)}function Uvr(e){bm(Lvr),bm(zvr)}var ug=f_.CMD;function s5(e,t){return Math.abs(e-t)<1e-5}function sle(e){var t=e.data,n=e.len(),r=[],i,a=0,o=0,s=0,l=0;function c(P,L){i&&i.length>2&&r.push(i),i=[P,L]}function u(P,L,$,D){s5(P,$)&&s5(L,D)||i.push(P,L,$,D,$,D)}function d(P,L,$,D,z,U){var H=Math.abs(L-P),M=Math.tan(H/4)*4/3,B=L<P?-1:1,k=Math.cos(P),F=Math.sin(P),G=Math.cos(L),q=Math.sin(L),W=k*z+$,K=F*U+D,J=G*z+$,te=q*U+D,ae=z*M*B,re=U*M*B;i.push(W-ae*F,K+re*k,J+ae*q,te-re*G,J,te)}for(var f,p,h,m,g=0;g<n;){var v=t[g++],y=g===1;switch(y&&(a=t[g],o=t[g+1],s=a,l=o,(v===ug.L||v===ug.C||v===ug.Q)&&(i=[s,l])),v){case ug.M:a=s=t[g++],o=l=t[g++],c(s,l);break;case ug.L:f=t[g++],p=t[g++],u(a,o,f,p),a=f,o=p;break;case ug.C:i.push(t[g++],t[g++],t[g++],t[g++],a=t[g++],o=t[g++]);break;case ug.Q:f=t[g++],p=t[g++],h=t[g++],m=t[g++],i.push(a+2/3*(f-a),o+2/3*(p-o),h+2/3*(f-h),m+2/3*(p-m),h,m),a=h,o=m;break;case ug.A:var _=t[g++],S=t[g++],C=t[g++],w=t[g++],x=t[g++],T=t[g++]+x;g+=1;var A=!t[g++];f=Math.cos(x)*C+_,p=Math.sin(x)*w+S,y?(s=f,l=p,c(s,l)):u(a,o,f,p),a=Math.cos(T)*C+_,o=Math.sin(T)*w+S;for(var I=(A?-1:1)*Math.PI/2,R=x;A?R>T:R<T;R+=I){var N=A?Math.max(R+I,T):Math.min(R+I,T);d(R,N,_,S,C,w)}break;case ug.R:s=a=t[g++],l=o=t[g++],f=s+t[g++],p=l+t[g++],c(f,l),u(f,l,f,p),u(f,p,s,p),u(s,p,s,l),u(s,l,f,l);break;case ug.Z:i&&u(a,o,s,l),a=s,o=l;break}}return i&&i.length>2&&r.push(i),r}function lle(e,t,n,r,i,a,o,s,l,c){if(s5(e,n)&&s5(t,r)&&s5(i,o)&&s5(a,s)){l.push(o,s);return}var u=2/c,d=u*u,f=o-e,p=s-t,h=Math.sqrt(f*f+p*p);f/=h,p/=h;var m=n-e,g=r-t,v=i-o,y=a-s,_=m*m+g*g,S=v*v+y*y;if(_<d&&S<d){l.push(o,s);return}var C=f*m+p*g,w=-f*v-p*y,x=_-C*C,T=S-w*w;if(x<d&&C>=0&&T<d&&w>=0){l.push(o,s);return}var A=[],I=[];d_(e,n,i,o,.5,A),d_(t,r,a,s,.5,I),lle(A[0],I[0],A[1],I[1],A[2],I[2],A[3],I[3],l,c),lle(A[4],I[4],A[5],I[5],A[6],I[6],A[7],I[7],l,c)}function Hvr(e,t){var n=sle(e),r=[];t=t||1;for(var i=0;i<n.length;i++){var a=n[i],o=[],s=a[0],l=a[1];o.push(s,l);for(var c=2;c<a.length;){var u=a[c++],d=a[c++],f=a[c++],p=a[c++],h=a[c++],m=a[c++];lle(s,l,u,d,f,p,h,m,o,t),s=h,l=m}r.push(o)}return r}function slt(e,t,n){var r=e[t],i=e[1-t],a=Math.abs(r/i),o=Math.ceil(Math.sqrt(a*n)),s=Math.floor(n/o);s===0&&(s=1,o=n);for(var l=[],c=0;c<o;c++)l.push(s);var u=o*s,d=n-u;if(d>0)for(var c=0;c<d;c++)l[c%o]+=1;return l}function _Pe(e,t,n){for(var r=e.r0,i=e.r,a=e.startAngle,o=e.endAngle,s=Math.abs(o-a),l=s*i,c=i-r,u=l>Math.abs(c),d=slt([l,c],u?0:1,t),f=(u?s:c)/d.length,p=0;p<d.length;p++)for(var h=(u?c:s)/d[p],m=0;m<d[p];m++){var g={};u?(g.startAngle=a+f*p,g.endAngle=a+f*(p+1),g.r0=r+h*m,g.r=r+h*(m+1)):(g.startAngle=a+h*m,g.endAngle=a+h*(m+1),g.r0=r+f*p,g.r=r+f*(p+1)),g.clockwise=e.clockwise,g.cx=e.cx,g.cy=e.cy,n.push(g)}}function Vvr(e,t,n){for(var r=e.width,i=e.height,a=r>i,o=slt([r,i],a?0:1,t),s=a?"width":"height",l=a?"height":"width",c=a?"x":"y",u=a?"y":"x",d=e[s]/o.length,f=0;f<o.length;f++)for(var p=e[l]/o[f],h=0;h<o[f];h++){var m={};m[c]=f*d,m[u]=h*p,m[s]=d,m[l]=p,m.x+=e.x,m.y+=e.y,n.push(m)}}function SPe(e,t,n,r){return e*r-n*t}function Gvr(e,t,n,r,i,a,o,s){var l=n-e,c=r-t,u=o-i,d=s-a,f=SPe(u,d,l,c);if(Math.abs(f)<1e-6)return null;var p=e-i,h=t-a,m=SPe(p,h,u,d)/f;return m<0||m>1?null:new na(m*l+e,m*c+t)}function qvr(e,t,n){var r=new na;na.sub(r,n,t),r.normalize();var i=new na;na.sub(i,e,t);var a=i.dot(r);return a}function ex(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function Wvr(e,t,n){for(var r=e.length,i=[],a=0;a<r;a++){var o=e[a],s=e[(a+1)%r],l=Gvr(o[0],o[1],s[0],s[1],t.x,t.y,n.x,n.y);l&&i.push({projPt:qvr(l,t,n),pt:l,idx:a})}if(i.length<2)return[{points:e},{points:e}];i.sort(function(g,v){return g.projPt-v.projPt});var c=i[0],u=i[i.length-1];if(u.idx<c.idx){var d=c;c=u,u=d}for(var f=[c.pt.x,c.pt.y],p=[u.pt.x,u.pt.y],h=[f],m=[p],a=c.idx+1;a<=u.idx;a++)ex(h,e[a].slice());ex(h,p),ex(h,f);for(var a=u.idx+1;a<=c.idx+r;a++)ex(m,e[a%r].slice());return ex(m,f),ex(m,p),[{points:h},{points:m}]}function EPe(e){var t=e.points,n=[],r=[];Kit(t,n,r);var i=new Na(n[0],n[1],r[0]-n[0],r[1]-n[1]),a=i.width,o=i.height,s=i.x,l=i.y,c=new na,u=new na;return a>o?(c.x=u.x=s+a/2,c.y=l,u.y=l+o):(c.y=u.y=l+o/2,c.x=s,u.x=s+a),Wvr(t,c,u)}function yB(e,t,n,r){if(n===1)r.push(t);else{var i=Math.floor(n/2),a=e(t);yB(e,a[0],i,r),yB(e,a[1],n-i,r)}return r}function Yvr(e,t){for(var n=[],r=0;r<t;r++)n.push(rge(e));return n}function Kvr(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function Xvr(e){for(var t=[],n=0;n<e.length;)t.push([e[n++],e[n++]]);return t}function Zvr(e,t){var n=[],r=e.shape,i;switch(e.type){case"rect":Vvr(r,t,n),i=Ps;break;case"sector":_Pe(r,t,n),i=$3;break;case"circle":_Pe({r0:0,r:r.r,startAngle:0,endAngle:Math.PI*2,cx:r.cx,cy:r.cy},t,n),i=$3;break;default:var a=e.getComputedTransform(),o=a?Math.sqrt(Math.max(a[0]*a[0]+a[1]*a[1],a[2]*a[2]+a[3]*a[3])):1,s=Nr(Hvr(e.getUpdatedPathProxy(),o),function(v){return Xvr(v)}),l=s.length;if(l===0)yB(EPe,{points:s[0]},t,n);else if(l===t)for(var c=0;c<l;c++)n.push({points:s[c]});else{var u=0,d=Nr(s,function(v){var y=[],_=[];Kit(v,y,_);var S=(_[1]-y[1])*(_[0]-y[0]);return u+=S,{poly:v,area:S}});d.sort(function(v,y){return y.area-v.area});for(var f=t,c=0;c<l;c++){var p=d[c];if(f<=0)break;var h=c===l-1?f:Math.ceil(p.area/u*t);h<0||(yB(EPe,{points:p.poly},h,n),f-=h)}}i=x8;break}if(!i)return Yvr(e,t);for(var m=[],c=0;c<n.length;c++){var g=new i;g.setShape(n[c]),Kvr(e,g),m.push(g)}return m}function Qvr(e,t){var n=e.length,r=t.length;if(n===r)return[e,t];for(var i=[],a=[],o=n<r?e:t,s=Math.min(n,r),l=Math.abs(r-n)/6,c=(s-2)/6,u=Math.ceil(l/c)+1,d=[o[0],o[1]],f=l,p=2;p<s;){var h=o[p-2],m=o[p-1],g=o[p++],v=o[p++],y=o[p++],_=o[p++],S=o[p++],C=o[p++];if(f<=0){d.push(g,v,y,_,S,C);continue}for(var w=Math.min(f,u-1)+1,x=1;x<=w;x++){var T=x/w;d_(h,g,y,S,T,i),d_(m,v,_,C,T,a),h=i[3],m=a[3],d.push(i[1],a[1],i[2],a[2],h,m),g=i[5],v=a[5],y=i[6],_=a[6]}f-=w-1}return o===e?[d,t]:[e,d]}function CPe(e,t){for(var n=e.length,r=e[n-2],i=e[n-1],a=[],o=0;o<t.length;)a[o++]=r,a[o++]=i;return a}function Jvr(e,t){for(var n,r,i,a=[],o=[],s=0;s<Math.max(e.length,t.length);s++){var l=e[s],c=t[s],u=void 0,d=void 0;l?c?(n=Qvr(l,c),u=n[0],d=n[1],r=u,i=d):(d=CPe(i||l,l),u=l):(u=CPe(r||c,c),d=c),a.push(u),o.push(d)}return[a,o]}function wPe(e){for(var t=0,n=0,r=0,i=e.length,a=0,o=i-2;a<i;o=a,a+=2){var s=e[o],l=e[o+1],c=e[a],u=e[a+1],d=s*u-c*l;t+=d,n+=(s+c)*d,r+=(l+u)*d}return t===0?[e[0]||0,e[1]||0]:[n/t/3,r/t/3,t]}function e1r(e,t,n,r){for(var i=(e.length-2)/6,a=1/0,o=0,s=e.length,l=s-2,c=0;c<i;c++){for(var u=c*6,d=0,f=0;f<s;f+=2){var p=f===0?u:(u+f-2)%l+2,h=e[p]-n[0],m=e[p+1]-n[1],g=t[f]-r[0],v=t[f+1]-r[1],y=g-h,_=v-m;d+=y*y+_*_}d<a&&(a=d,o=c)}return o}function t1r(e){for(var t=[],n=e.length,r=0;r<n;r+=2)t[r]=e[n-r-2],t[r+1]=e[n-r-1];return t}function n1r(e,t,n,r){for(var i=[],a,o=0;o<e.length;o++){var s=e[o],l=t[o],c=wPe(s),u=wPe(l);a==null&&(a=c[2]<0!=u[2]<0);var d=[],f=[],p=0,h=1/0,m=[],g=s.length;a&&(s=t1r(s));for(var v=e1r(s,l,c,u)*6,y=g-2,_=0;_<y;_+=2){var S=(v+_)%y+2;d[_+2]=s[S]-c[0],d[_+3]=s[S+1]-c[1]}d[0]=s[v]-c[0],d[1]=s[v+1]-c[1];for(var C=r/n,w=-r/2;w<=r/2;w+=C){for(var x=Math.sin(w),T=Math.cos(w),A=0,_=0;_<s.length;_+=2){var I=d[_],R=d[_+1],N=l[_]-u[0],P=l[_+1]-u[1],L=N*T-P*x,$=N*x+P*T;m[_]=L,m[_+1]=$;var D=L-I,z=$-R;A+=D*D+z*z}if(A<h){h=A,p=w;for(var U=0;U<m.length;U++)f[U]=m[U]}}i.push({from:d,to:f,fromCp:c,toCp:u,rotation:-p})}return i}function bB(e){return e.__isCombineMorphing}var llt="__mOriginal_";function _B(e,t,n){var r=llt+t,i=e[r]||e[t];e[r]||(e[r]=e[t]);var a=n.replace,o=n.after,s=n.before;e[t]=function(){var l=arguments,c;return s&&s.apply(this,l),a?c=a.apply(this,l):c=i.apply(this,l),o&&o.apply(this,l),c}}function qR(e,t){var n=llt+t;e[n]&&(e[t]=e[n],e[n]=null)}function xPe(e,t){for(var n=0;n<e.length;n++)for(var r=e[n],i=0;i<r.length;){var a=r[i],o=r[i+1];r[i++]=t[0]*a+t[2]*o+t[4],r[i++]=t[1]*a+t[3]*o+t[5]}}function clt(e,t){var n=e.getUpdatedPathProxy(),r=t.getUpdatedPathProxy(),i=Jvr(sle(n),sle(r)),a=i[0],o=i[1],s=e.getComputedTransform(),l=t.getComputedTransform();function c(){this.transform=null}s&&xPe(a,s),l&&xPe(o,l),_B(t,"updateTransform",{replace:c}),t.transform=null;var u=n1r(a,o,10,Math.PI),d=[];_B(t,"buildPath",{replace:function(f){for(var p=t.__morphT,h=1-p,m=[],g=0;g<u.length;g++){var v=u[g],y=v.from,_=v.to,S=v.rotation*p,C=v.fromCp,w=v.toCp,x=Math.sin(S),T=Math.cos(S);Esr(m,C,w,p);for(var A=0;A<y.length;A+=2){var I=y[A],R=y[A+1],N=_[A],P=_[A+1],L=I*h+N*p,$=R*h+P*p;d[A]=L*T-$*x+m[0],d[A+1]=L*x+$*T+m[1]}var D=d[0],z=d[1];f.moveTo(D,z);for(var A=2;A<y.length;){var N=d[A++],P=d[A++],U=d[A++],H=d[A++],M=d[A++],B=d[A++];D===N&&z===P&&U===M&&H===B?f.lineTo(M,B):f.bezierCurveTo(N,P,U,H,M,B),D=M,z=B}}}})}function Wge(e,t,n){if(!e||!t)return t;var r=n.done,i=n.during;clt(e,t),t.__morphT=0;function a(){qR(t,"buildPath"),qR(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},Hi({during:function(o){t.dirtyShape(),i&&i(o)},done:function(){a(),r&&r()}},n)),t}function r1r(e,t,n,r,i,a){var o=16;e=i===n?0:Math.round(32767*(e-n)/(i-n)),t=a===r?0:Math.round(32767*(t-r)/(a-r));for(var s=0,l,c=(1<<o)/2;c>0;c/=2){var u=0,d=0;(e&c)>0&&(u=1),(t&c)>0&&(d=1),s+=c*c*(3*u^d),d===0&&(u===1&&(e=c-1-e,t=c-1-t),l=e,e=t,t=l)}return s}function SB(e){var t=1/0,n=1/0,r=-1/0,i=-1/0,a=Nr(e,function(s){var l=s.getBoundingRect(),c=s.getComputedTransform(),u=l.x+l.width/2+(c?c[4]:0),d=l.y+l.height/2+(c?c[5]:0);return t=Math.min(u,t),n=Math.min(d,n),r=Math.max(u,r),i=Math.max(d,i),[u,d]}),o=Nr(a,function(s,l){return{cp:s,z:r1r(s[0],s[1],t,n,r,i),path:e[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function ult(e){return Zvr(e.path,e.count)}function cle(){return{fromIndividuals:[],toIndividuals:[],count:0}}function i1r(e,t,n){var r=[];function i(C){for(var w=0;w<C.length;w++){var x=C[w];bB(x)?i(x.childrenRef()):x instanceof ha&&r.push(x)}}i(e);var a=r.length;if(!a)return cle();var o=n.dividePath||ult,s=o({path:t,count:a});if(s.length!==a)return console.error("Invalid morphing: unmatched splitted path"),cle();r=SB(r),s=SB(s);for(var l=n.done,c=n.during,u=n.individualDelay,d=new nH,f=0;f<a;f++){var p=r[f],h=s[f];h.parent=t,h.copyTransform(d),u||clt(p,h)}t.__isCombineMorphing=!0,t.childrenRef=function(){return s};function m(C){for(var w=0;w<s.length;w++)s[w].addSelfToZr(C)}_B(t,"addSelfToZr",{after:function(C){m(C)}}),_B(t,"removeSelfFromZr",{after:function(C){for(var w=0;w<s.length;w++)s[w].removeSelfFromZr(C)}});function g(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,qR(t,"addSelfToZr"),qR(t,"removeSelfFromZr")}var v=s.length;if(u)for(var y=v,_=function(){y--,y===0&&(g(),l&&l())},f=0;f<v;f++){var S=u?Hi({delay:(n.delay||0)+u(f,v,r[f],s[f]),done:_},n):n;Wge(r[f],s[f],S)}else t.__morphT=0,t.animateTo({__morphT:1},Hi({during:function(C){for(var w=0;w<v;w++){var x=s[w];x.__morphT=t.__morphT,x.dirtyShape()}c&&c(C)},done:function(){g();for(var C=0;C<e.length;C++)qR(e[C],"updateTransform");l&&l()}},n));return t.__zr&&m(t.__zr),{fromIndividuals:r,toIndividuals:s,count:v}}function a1r(e,t,n){var r=t.length,i=[],a=n.dividePath||ult;function o(p){for(var h=0;h<p.length;h++){var m=p[h];bB(m)?o(m.childrenRef()):m instanceof ha&&i.push(m)}}if(bB(e)){o(e.childrenRef());var s=i.length;if(s<r)for(var l=0,c=s;c<r;c++)i.push(rge(i[l++%s]));i.length=r}else{i=a({path:e,count:r});for(var u=e.getComputedTransform(),c=0;c<i.length;c++)i[c].setLocalTransform(u);if(i.length!==r)return console.error("Invalid morphing: unmatched splitted path"),cle()}i=SB(i),t=SB(t);for(var d=n.individualDelay,c=0;c<r;c++){var f=d?Hi({delay:(n.delay||0)+d(c,r,i[c],t[c])},n):n;Wge(i[c],t[c],f)}return{fromIndividuals:i,toIndividuals:t,count:t.length}}function TPe(e){return ar(e[0])}function IPe(e,t){for(var n=[],r=e.length,i=0;i<r;i++)n.push({one:e[i],many:[]});for(var i=0;i<t.length;i++){var a=t[i].length,o=void 0;for(o=0;o<a;o++)n[o%r].many.push(t[i][o])}for(var s=0,i=r-1;i>=0;i--)if(!n[i].many.length){var l=n[s].many;if(l.length<=1)if(s)s=0;else return n;var a=l.length,c=Math.ceil(a/2);n[i].many=l.slice(c,a),n[s].many=l.slice(0,c),s++}return n}var o1r={clone:function(e){for(var t=[],n=1-Math.pow(1-e.path.style.opacity,1/e.count),r=0;r<e.count;r++){var i=rge(e.path);i.setStyle("opacity",n),t.push(i)}return t},split:null};function pte(e,t,n,r,i,a){if(!e.length||!t.length)return;var o=fH("update",r,i);if(!(o&&o.duration>0))return;var s=r.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),c,u;TPe(e)&&(c=e,u=t),TPe(t)&&(c=t,u=e);function d(v,y,_,S,C){var w=v.many,x=v.one;if(w.length===1&&!C){var T=y?w[0]:x,A=y?x:w[0];if(bB(T))d({many:[T],one:A},!0,_,S,!0);else{var I=s?Hi({delay:s(_,S)},l):l;Wge(T,A,I),a(T,A,T,A,I)}}else for(var R=Hi({dividePath:o1r[n],individualDelay:s&&function(z,U,H,M){return s(z+_,S)}},l),N=y?i1r(w,x,R):a1r(x,w,R),P=N.fromIndividuals,L=N.toIndividuals,$=P.length,D=0;D<$;D++){var I=s?Hi({delay:s(D,$)},l):l;a(P[D],L[D],y?w[D]:v.one,y?v.one:w[D],I)}}for(var f=c?c===e:e.length>t.length,p=c?IPe(u,c):IPe(f?t:e,[f?e:t]),h=0,m=0;m<p.length;m++)h+=p[m].many.length;for(var g=0,m=0;m<p.length;m++)d(p[m],f,g,h),g+=p[m].many.length}function bS(e){if(!e)return[];if(ar(e)){for(var t=[],n=0;n<e.length;n++)t.push(bS(e[n]));return t}var r=[];return e.traverse(function(i){i instanceof ha&&!i.disableMorphing&&!i.invisible&&!i.ignore&&r.push(i)}),r}var dlt=1e4,s1r=0,APe=1,RPe=2,l1r=rl();function c1r(e,t){for(var n=e.dimensions,r=0;r<n.length;r++){var i=e.getDimensionInfo(n[r]);if(i&&i.otherDims[t]===0)return n[r]}}function u1r(e,t,n){var r=e.getDimensionInfo(n),i=r&&r.ordinalMeta;if(r){var a=e.get(r.name,t);return i&&i.categories[a]||a+""}}function NPe(e,t,n,r){var i=r?"itemChildGroupId":"itemGroupId",a=c1r(e,i);if(a){var o=u1r(e,t,a);return o}var s=e.getRawDataItem(t),l=r?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!r)return n||e.getId(t)}function OPe(e){var t=[];return lt(e,function(n){var r=n.data,i=n.dataGroupId;if(!(r.count()>dlt))for(var a=r.getIndices(),o=0;o<a.length;o++)t.push({data:r,groupId:NPe(r,o,i,!1),childGroupId:NPe(r,o,i,!0),divide:n.divide,dataIndex:o})}),t}function hte(e,t,n){e.traverse(function(r){r instanceof ha&&i4(r,{style:{opacity:0}},t,{dataIndex:n,isFrom:!0})})}function mte(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function tx(e){e.stopAnimation(),e.isGroup&&e.traverse(function(t){t.stopAnimation()})}function d1r(e,t,n){var r=fH("update",n,t);r&&e.traverse(function(i){if(i instanceof r4){var a=zcr(i);a&&i.animateFrom({style:a},r)}})}function f1r(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++){var i=e[r],a=t[r];if(i.data.getId(i.dataIndex)!==a.data.getId(a.dataIndex))return!1}return!0}function flt(e,t,n){var r=OPe(e),i=OPe(t);function a(_,S,C,w,x){(C||_)&&S.animateFrom({style:C&&C!==_?Vn(Vn({},C.style),_.style):_.style},x)}var o=!1,s=s1r,l=Mr(),c=Mr();r.forEach(function(_){_.groupId&&l.set(_.groupId,!0),_.childGroupId&&c.set(_.childGroupId,!0)});for(var u=0;u<i.length;u++){var d=i[u].groupId;if(c.get(d)){s=APe;break}var f=i[u].childGroupId;if(f&&l.get(f)){s=RPe;break}}function p(_,S){return function(C){var w=C.data,x=C.dataIndex;return S?w.getId(x):_?s===APe?C.childGroupId:C.groupId:s===RPe?C.childGroupId:C.groupId}}var h=f1r(r,i),m={};if(!h)for(var u=0;u<i.length;u++){var g=i[u],v=g.data.getItemGraphicEl(g.dataIndex);v&&(m[v.id]=!0)}function y(_,S){var C=r[S],w=i[_],x=w.data.hostModel,T=C.data.getItemGraphicEl(C.dataIndex),A=w.data.getItemGraphicEl(w.dataIndex);if(T===A){A&&d1r(A,w.dataIndex,x);return}T&&m[T.id]||A&&(tx(A),T?(tx(T),mte(T),o=!0,pte(bS(T),bS(A),w.divide,x,_,a)):hte(A,x,_))}new Rse(r,i,p(!0,h),p(!1,h),null,"multiple").update(y).updateManyToOne(function(_,S){var C=i[_],w=C.data,x=w.hostModel,T=w.getItemGraphicEl(C.dataIndex),A=mc(Nr(S,function(I){return r[I].data.getItemGraphicEl(r[I].dataIndex)}),function(I){return I&&I!==T&&!m[I.id]});T&&(tx(T),A.length?(lt(A,function(I){tx(I),mte(I)}),o=!0,pte(bS(A),bS(T),C.divide,x,_,a)):hte(T,x,C.dataIndex))}).updateOneToMany(function(_,S){var C=r[S],w=C.data.getItemGraphicEl(C.dataIndex);if(!(w&&m[w.id])){var x=mc(Nr(_,function(A){return i[A].data.getItemGraphicEl(i[A].dataIndex)}),function(A){return A&&A!==w}),T=i[_[0]].data.hostModel;x.length&&(lt(x,function(A){return tx(A)}),w?(tx(w),mte(w),o=!0,pte(bS(w),bS(x),C.divide,T,_[0],a)):lt(x,function(A){return hte(A,T,_[0])}))}}).updateManyToMany(function(_,S){new Rse(S,_,function(C){return r[C].data.getId(r[C].dataIndex)},function(C){return i[C].data.getId(i[C].dataIndex)}).update(function(C,w){y(_[C],S[w])}).execute()}).execute(),o&&lt(t,function(_){var S=_.data,C=S.hostModel,w=C&&n.getViewOfSeriesModel(C),x=fH("update",C,0);w&&C.isAnimationEnabled()&&x&&x.duration>0&&w.group.traverse(function(T){T instanceof ha&&!T.animators.length&&T.animateFrom({style:{opacity:0}},x)})})}function LPe(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function PPe(e){return ar(e)?e.sort().join(","):e}function Zy(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function p1r(e,t){var n=Mr(),r=Mr(),i=Mr();return lt(e.oldSeries,function(a,o){var s=e.oldDataGroupIds[o],l=e.oldData[o],c=LPe(a),u=PPe(c);r.set(u,{dataGroupId:s,data:l}),ar(c)&&lt(c,function(d){i.set(d,{key:u,dataGroupId:s,data:l})})}),lt(t.updatedSeries,function(a){if(a.isUniversalTransitionEnabled()&&a.isAnimationEnabled()){var o=a.get("dataGroupId"),s=a.getData(),l=LPe(a),c=PPe(l),u=r.get(c);if(u)n.set(c,{oldSeries:[{dataGroupId:u.dataGroupId,divide:Zy(u.data),data:u.data}],newSeries:[{dataGroupId:o,divide:Zy(s),data:s}]});else if(ar(l)){var d=[];lt(l,function(h){var m=r.get(h);m.data&&d.push({dataGroupId:m.dataGroupId,divide:Zy(m.data),data:m.data})}),d.length&&n.set(c,{oldSeries:d,newSeries:[{dataGroupId:o,data:s,divide:Zy(s)}]})}else{var f=i.get(l);if(f){var p=n.get(f.key);p||(p={oldSeries:[{dataGroupId:f.dataGroupId,data:f.data,divide:Zy(f.data)}],newSeries:[]},n.set(f.key,p)),p.newSeries.push({dataGroupId:o,data:s,divide:Zy(s)})}}}}),n}function kPe(e,t){for(var n=0;n<e.length;n++){var r=t.seriesIndex!=null&&t.seriesIndex===e[n].seriesIndex||t.seriesId!=null&&t.seriesId===e[n].id;if(r)return n}}function h1r(e,t,n,r){var i=[],a=[];lt(yl(e.from),function(o){var s=kPe(t.oldSeries,o);s>=0&&i.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Zy(t.oldData[s]),groupIdDim:o.dimension})}),lt(yl(e.to),function(o){var s=kPe(n.updatedSeries,o);if(s>=0){var l=n.updatedSeries[s].getData();a.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:Zy(l),groupIdDim:o.dimension})}}),i.length>0&&a.length>0&&flt(i,a,r)}function m1r(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,n,r){lt(yl(r.seriesTransition),function(i){lt(yl(i.to),function(a){for(var o=r.updatedSeries,s=0;s<o.length;s++)(a.seriesIndex!=null&&a.seriesIndex===o[s].seriesIndex||a.seriesId!=null&&a.seriesId===o[s].id)&&(o[s][JM]=!0)})})}),e.registerUpdateLifecycle("series:transition",function(t,n,r){var i=l1r(n);if(i.oldSeries&&r.updatedSeries&&r.optionChanged){var a=r.seriesTransition;if(a)lt(yl(a),function(p){h1r(p,i,r,n)});else{var o=p1r(i,r);lt(o.keys(),function(p){var h=o.get(p);flt(h.oldSeries,h.newSeries,n)})}lt(r.updatedSeries,function(p){p[JM]&&(p[JM]=!1)})}for(var s=t.getSeries(),l=i.oldSeries=[],c=i.oldDataGroupIds=[],u=i.oldData=[],d=0;d<s.length;d++){var f=s[d].getData();f.count()<dlt&&(l.push(s[d]),c.push(s[d].get("dataGroupId")),u.push(f))}})}function MPe(e,t,n){var r=e4.createCanvas(),i=t.getWidth(),a=t.getHeight(),o=r.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=a+"px",r.setAttribute("data-zr-dom-id",e)),r.width=i*n,r.height=a*n,r}var gte=function(e){tr(t,e);function t(n,r,i){var a=e.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;i=i||XF,typeof n=="string"?o=MPe(n,r,i):Fr(n)&&(o=n,n=o.id),a.id=n,a.dom=o;var s=o.style;return s&&(Oit(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=r,a.dpr=i,a}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var n=this.dpr;this.domBack=MPe("back-"+this.id,this.painter,n),this.ctxBack=this.domBack.getContext("2d"),n!==1&&this.ctxBack.scale(n,n)},t.prototype.createRepaintRects=function(n,r,i,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,c=new Na(0,0,0,0);function u(y){if(!(!y.isFinite()||y.isZero()))if(o.length===0){var _=new Na(0,0,0,0);_.copy(y),o.push(_)}else{for(var S=!1,C=1/0,w=0,x=0;x<o.length;++x){var T=o[x];if(T.intersect(y)){var A=new Na(0,0,0,0);A.copy(T),A.union(y),o[x]=A,S=!0;break}else if(l){c.copy(y),c.union(T);var I=y.width*y.height,R=T.width*T.height,N=c.width*c.height,P=N-I-R;P<C&&(C=P,w=x)}}if(l&&(o[w].union(y),S=!0),!S){var _=new Na(0,0,0,0);_.copy(y),o.push(_)}l||(l=o.length>=s)}}for(var d=this.__startIndex;d<this.__endIndex;++d){var f=n[d];if(f){var p=f.shouldBePainted(i,a,!0,!0),h=f.__isRendered&&(f.__dirty&bf||!p)?f.getPrevPaintRect():null;h&&u(h);var m=p&&(f.__dirty&bf||!f.__isRendered)?f.getPaintRect():null;m&&u(m)}}for(var d=this.__prevStartIndex;d<this.__prevEndIndex;++d){var f=r[d],p=f&&f.shouldBePainted(i,a,!0,!0);if(f&&(!p||!f.__zr)&&f.__isRendered){var h=f.getPrevPaintRect();h&&u(h)}}var g;do{g=!1;for(var d=0;d<o.length;){if(o[d].isZero()){o.splice(d,1);continue}for(var v=d+1;v<o.length;)o[d].intersect(o[v])?(g=!0,o[d].union(o[v]),o.splice(v,1)):v++;d++}}while(g);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(n,r){var i=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=n+"px",o.height=r+"px"),a.width=n*i,a.height=r*i,s&&(s.width=n*i,s.height=r*i,i!==1&&this.ctxBack.scale(i,i))},t.prototype.clear=function(n,r,i){var a=this.dom,o=this.ctx,s=a.width,l=a.height;r=r||this.clearColor;var c=this.motionBlur&&!n,u=this.lastFrameAlpha,d=this.dpr,f=this;c&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/d,l/d));var p=this.domBack;function h(m,g,v,y){if(o.clearRect(m,g,v,y),r&&r!=="transparent"){var _=void 0;if(QU(r)){var S=r.global||r.__width===v&&r.__height===y;_=S&&r.__canvasGradient||Hse(o,r,{x:0,y:0,width:v,height:y}),r.__canvasGradient=_,r.__width=v,r.__height=y}else Dor(r)&&(r.scaleX=r.scaleX||d,r.scaleY=r.scaleY||d,_=Vse(o,r,{dirty:function(){f.setUnpainted(),f.painter.refresh()}}));o.save(),o.fillStyle=_||r,o.fillRect(m,g,v,y),o.restore()}c&&(o.save(),o.globalAlpha=u,o.drawImage(p,m,g,v,y),o.restore())}!i||c?h(0,0,s,l):i.length&&lt(i,function(m){h(m.x*d,m.y*d,m.width*d,m.height*d)})},t}(Om),DPe=1e5,tS=314159,c9=.01,g1r=.001;function v1r(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function y1r(e,t){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}var b1r=function(){function e(t,n,r,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=r=Vn({},r||{}),this.dpr=r.devicePixelRatio||XF,this._singleCanvas=a,this.root=t;var o=t.style;o&&(Oit(t),t.innerHTML=""),this.storage=n;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(a){var u=t,d=u.width,f=u.height;r.width!=null&&(d=r.width),r.height!=null&&(f=r.height),this.dpr=r.devicePixelRatio||1,u.width=d*this.dpr,u.height=f*this.dpr,this._width=d,this._height=f;var p=new gte(u,this,this.dpr);p.__builtin__=!0,p.initContext(),l[tS]=p,p.zlevel=tS,s.push(tS),this._domRoot=t}else{this._width=t9(t,0,r),this._height=t9(t,1,r);var c=this._domRoot=y1r(this._width,this._height);t.appendChild(c)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.refresh=function(t){var n=this.storage.getDisplayList(!0),r=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(n,r,t,this._redrawId);for(var a=0;a<i.length;a++){var o=i[a],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=a===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=n.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(t){var n=t.length,r=this._hoverlayer;if(r&&r.clear(),!!n){for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height},a,o=0;o<n;o++){var s=t[o];s.__inHover&&(r||(r=this._hoverlayer=this.getLayer(DPe)),a||(a=r.ctx,a.save()),WS(a,s,i,o===n-1))}a&&a.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(DPe)},e.prototype.paintOne=function(t,n){ist(t,n)},e.prototype._paintList=function(t,n,r,i){if(this._redrawId===i){r=r||!1,this._updateLayerStatus(t);var a=this._doPaintList(t,n,r),o=a.finished,s=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(c){c.afterBrush&&c.afterBrush()});else{var l=this;dB(function(){l._paintList(t,n,r,i)})}}},e.prototype._compositeManually=function(){var t=this.getLayer(tS).ctx,n=this._domRoot.width,r=this._domRoot.height;t.clearRect(0,0,n,r),this.eachBuiltinLayer(function(i){i.virtual&&t.drawImage(i.dom,0,0,n,r)})},e.prototype._doPaintList=function(t,n,r){for(var i=this,a=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],c=this._layers[l];c.__builtin__&&c!==this._hoverlayer&&(c.__dirty||r)&&a.push(c)}for(var u=!0,d=!1,f=function(m){var g=a[m],v=g.ctx,y=o&&g.createRepaintRects(t,n,p._width,p._height),_=r?g.__startIndex:g.__drawIndex,S=!r&&g.incremental&&Date.now,C=S&&Date.now(),w=g.zlevel===p._zlevelList[0]?p._backgroundColor:null;if(g.__startIndex===g.__endIndex)g.clear(!1,w,y);else if(_===g.__startIndex){var x=t[_];(!x.incremental||!x.notClear||r)&&g.clear(!1,w,y)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=g.__startIndex);var T,A=function(P){var L={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(T=_;T<g.__endIndex;T++){var $=t[T];if($.__inHover&&(d=!0),i._doPaintEl($,g,o,P,L,T===g.__endIndex-1),S){var D=Date.now()-C;if(D>15)break}}L.prevElClipPaths&&v.restore()};if(y)if(y.length===0)T=g.__endIndex;else for(var I=p.dpr,R=0;R<y.length;++R){var N=y[R];v.save(),v.beginPath(),v.rect(N.x*I,N.y*I,N.width*I,N.height*I),v.clip(),A(N),v.restore()}else v.save(),A(),v.restore();g.__drawIndex=T,g.__drawIndex<g.__endIndex&&(u=!1)},p=this,h=0;h<a.length;h++)f(h);return ci.wxa&&lt(this._layers,function(m){m&&m.ctx&&m.ctx.draw&&m.ctx.draw()}),{finished:u,needsRefreshHover:d}},e.prototype._doPaintEl=function(t,n,r,i,a,o){var s=n.ctx;if(r){var l=t.getPaintRect();(!i||l&&l.intersect(i))&&(WS(s,t,a,o),t.setPrevPaintRect(l))}else WS(s,t,a,o)},e.prototype.getLayer=function(t,n){this._singleCanvas&&!this._needsManuallyCompositing&&(t=tS);var r=this._layers[t];return r||(r=new gte("zr_"+t,this,this.dpr),r.zlevel=t,r.__builtin__=!0,this._layerConfig[t]?ba(r,this._layerConfig[t],!0):this._layerConfig[t-c9]&&ba(r,this._layerConfig[t-c9],!0),n&&(r.virtual=n),this.insertLayer(t,r),r.initContext()),r},e.prototype.insertLayer=function(t,n){var r=this._layers,i=this._zlevelList,a=i.length,o=this._domRoot,s=null,l=-1;if(!r[t]&&v1r(n)){if(a>0&&t>i[0]){for(l=0;l<a-1&&!(i[l]<t&&i[l+1]>t);l++);s=r[i[l]]}if(i.splice(l+1,0,t),r[t]=n,!n.virtual)if(s){var c=s.dom;c.nextSibling?o.insertBefore(n.dom,c.nextSibling):o.appendChild(n.dom)}else o.firstChild?o.insertBefore(n.dom,o.firstChild):o.appendChild(n.dom);n.painter||(n.painter=this)}},e.prototype.eachLayer=function(t,n){for(var r=this._zlevelList,i=0;i<r.length;i++){var a=r[i];t.call(n,this._layers[a],a)}},e.prototype.eachBuiltinLayer=function(t,n){for(var r=this._zlevelList,i=0;i<r.length;i++){var a=r[i],o=this._layers[a];o.__builtin__&&t.call(n,o,a)}},e.prototype.eachOtherLayer=function(t,n){for(var r=this._zlevelList,i=0;i<r.length;i++){var a=r[i],o=this._layers[a];o.__builtin__||t.call(n,o,a)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(d,f){d.__dirty=d.__used=!1});function n(d){a&&(a.__endIndex!==d&&(a.__dirty=!0),a.__endIndex=d)}if(this._singleCanvas)for(var r=1;r<t.length;r++){var i=t[r];if(i.zlevel!==t[r-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var a=null,o=0,s,l;for(l=0;l<t.length;l++){var i=t[l],c=i.zlevel,u=void 0;s!==c&&(s=c,o=0),i.incremental?(u=this.getLayer(c+g1r,this._needsManuallyCompositing),u.incremental=!0,o=1):u=this.getLayer(c+(o>0?c9:0),this._needsManuallyCompositing),u.__builtin__||zme("ZLevel "+c+" has been used by unkown layer "+u.id),u!==a&&(u.__used=!0,u.__startIndex!==l&&(u.__dirty=!0),u.__startIndex=l,u.incremental?u.__drawIndex=-1:u.__drawIndex=l,n(l),a=u),i.__dirty&bf&&!i.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=l))}n(l),this.eachBuiltinLayer(function(d,f){!d.__used&&d.getElementCount()>0&&(d.__dirty=!0,d.__startIndex=d.__endIndex=d.__drawIndex=0),d.__dirty&&d.__drawIndex<0&&(d.__drawIndex=d.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,lt(this._layers,function(n){n.setUnpainted()})},e.prototype.configLayer=function(t,n){if(n){var r=this._layerConfig;r[t]?ba(r[t],n,!0):r[t]=n;for(var i=0;i<this._zlevelList.length;i++){var a=this._zlevelList[i];if(a===t||a===t+c9){var o=this._layers[a];ba(o,r[t],!0)}}}},e.prototype.delLayer=function(t){var n=this._layers,r=this._zlevelList,i=n[t];i&&(i.dom.parentNode.removeChild(i.dom),delete n[t],r.splice(ja(r,t),1))},e.prototype.resize=function(t,n){if(this._domRoot.style){var r=this._domRoot;r.style.display="none";var i=this._opts,a=this.root;if(t!=null&&(i.width=t),n!=null&&(i.height=n),t=t9(a,0,i),n=t9(a,1,i),r.style.display="",this._width!==t||n!==this._height){r.style.width=t+"px",r.style.height=n+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,n);this.refresh(!0)}this._width=t,this._height=n}else{if(t==null||n==null)return;this._width=t,this._height=n,this.getLayer(tS).resize(t,n)}return this},e.prototype.clearLayer=function(t){var n=this._layers[t];n&&n.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[tS].dom;var n=new gte("image",this,t.pixelRatio||this.dpr);n.initContext(),n.clear(!1,t.backgroundColor||this._backgroundColor);var r=n.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var i=n.dom.width,a=n.dom.height;this.eachLayer(function(d){d.__builtin__?r.drawImage(d.dom,0,0,i,a):d.renderToCanvas&&(r.save(),d.renderToCanvas(r),r.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,c=s.length;l<c;l++){var u=s[l];WS(r,u,o,l===c-1)}return n.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();function _1r(e){e.registerPainter("canvas",b1r)}const S1r=`<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none">
<g clip-path="url(#clip0_1133_22268)">
<path d="M6 0.75C3.10078 0.75 0.75 3.10078 0.75 6C0.75 8.89922 3.10078 11.25 6 11.25C8.89922 11.25 11.25 8.89922 11.25 6C11.25 3.10078 8.89922 0.75 6 0.75ZM6 10.3594C3.59297 10.3594 1.64062 8.40703 1.64062 6C1.64062 3.59297 3.59297 1.64062 6 1.64062C8.40703 1.64062 10.3594 3.59297 10.3594 6C10.3594 8.40703 8.40703 10.3594 6 10.3594Z" fill="#70747F"/>
<path d="M7.30781 3.71133C6.95625 3.40313 6.49219 3.23438 6 3.23438C5.50781 3.23438 5.04375 3.4043 4.69219 3.71133C4.32656 4.03125 4.125 4.46133 4.125 4.92188V5.01094C4.125 5.0625 4.16719 5.10469 4.21875 5.10469H4.78125C4.83281 5.10469 4.875 5.0625 4.875 5.01094V4.92188C4.875 4.40508 5.38008 3.98438 6 3.98438C6.61992 3.98438 7.125 4.40508 7.125 4.92188C7.125 5.28633 6.86719 5.62031 6.46758 5.77383C6.21914 5.86875 6.0082 6.03516 5.85703 6.25312C5.70352 6.47578 5.62383 6.74297 5.62383 7.01367V7.26562C5.62383 7.31719 5.66602 7.35938 5.71758 7.35938H6.28008C6.33164 7.35938 6.37383 7.31719 6.37383 7.26562V6.99961C6.37443 6.88585 6.40931 6.7749 6.4739 6.68125C6.5385 6.5876 6.62981 6.51559 6.73594 6.47461C7.42734 6.20859 7.87383 5.59922 7.87383 4.92188C7.875 4.46133 7.67344 4.03125 7.30781 3.71133ZM5.53125 8.57812C5.53125 8.70245 5.58064 8.82167 5.66854 8.90958C5.75645 8.99749 5.87568 9.04688 6 9.04688C6.12432 9.04688 6.24355 8.99749 6.33146 8.90958C6.41936 8.82167 6.46875 8.70245 6.46875 8.57812C6.46875 8.4538 6.41936 8.33458 6.33146 8.24667C6.24355 8.15876 6.12432 8.10938 6 8.10938C5.87568 8.10938 5.75645 8.15876 5.66854 8.24667C5.58064 8.33458 5.53125 8.4538 5.53125 8.57812Z" fill="#70747F"/>
</g>
<defs>
<clipPath id="clip0_1133_22268">
<rect width="12" height="12" fill="white"/>
</clipPath>
</defs>
</svg>`,E1r=(e,t)=>{if(!e)return[];if(!t)return e;const n=new Map(t.map(i=>[i[0],i[1]]));return e.map(([i,a])=>{const o=n.get(i)||0;return[i,a,o]})},plt=({params:e,complementaryDataElement:t})=>{const{axisValueLabel:n}=e[0],r=e.map(i=>{const{marker:a,seriesName:o,data:s}=i;if(!s)return"";const[,l]=Array.isArray(s)?s:[null,s];return[`<div class="custom-tooltip_singleMetric"><span class="custom-tooltip_singleMetric_label">${a||""}${o}:</span> <strong>${pl(l,!0)}</strong></div>`]});return['<div class="custom-tooltip">',`<div>${n}</div>`,...r,t||"","</div>"].join("")},C1r=(e,t)=>{const{data:n}=e[0],[,,r]=n,i=t?`<div class="custom-tooltip_singleMetric"><span class="custom-tooltip_singleMetric_label">${S1r}${t}:</span> <strong>${pl(r,!0)}</strong></div>`:"";return plt({params:e,complementaryDataElement:i})},bOr=e=>plt({params:e}),w1r="_chart_1g0qq_1",x1r={chart:w1r};bm([_1r,Uvr,Bgr,Evr,Lot,fvr,m1r]);const T1r=b.forwardRef(({series:e,complementaryData:t,withArea:n=!0},r)=>{const i=b.useRef(null),a=b.useRef(),o=()=>{a?.current?.resize()};b.useImperativeHandle(r,()=>({resize(){o()},download(f,p){const h=f==="pdf"?"png":f,m=p||"lineChart",g=a.current?.getDataURL({type:h,pixelRatio:4,backgroundColor:Xy.token.colorWhite,excludeComponents:["dataZoom"]});if(!g)return;if(f==="pdf"){const y=a.current?.getDom();if(!y)return;const{clientWidth:_,clientHeight:S}=y;m7n(g,m,{width:_,height:S});return}const v=document.createElement("a");v.href=g,v.download=`${m}.${f}`,v.click()}}));const s=()=>n?{color:new sge(0,0,0,1,[{offset:0,color:Xy.token.colorPrimary},{offset:1,color:Xy.token.colorWhite}])}:{color:"none"},l=()=>e.map(({label:f,data:p,color:h})=>({name:f,type:"line",smooth:!0,lineStyle:{color:h||Xy.token.colorPrimary,width:3},symbolSize:6,color:h||Xy.token.colorPrimary,data:E1r(p,t?.data||null),areaStyle:s()})),c=0,u=10,d={legend:{data:e.map(({label:f})=>f),orient:"horizontal",align:"left",left:c,textStyle:{color:Xy.token.colorTextSecondary}},tooltip:{trigger:"axis",formatter:f=>C1r(f,t?.label)},dataZoom:[{start:0,end:100,showDetail:!1,left:c,right:u}],xAxis:{type:Tae.TIME,axisLabel:{formatter:{day:"{MMM} {d}",month:"{MMMM}"}}},yAxis:{type:Tae.VALUE},grid:{left:c,right:u,containLabel:!0},series:l()};return b.useEffect(()=>(bm([Lot]),i.current&&(a.current=Ghr(i.current)),window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o)}),[]),b.useEffect(()=>{a.current&&a.current.setOption(d)},[e,n]),E.jsx("div",{ref:i,className:x1r.chart})}),_Or="Queries",SOr="Select Pipeline",I1r="Export chart",A1r="Expand view",R1r="Collapse view",EOr="References",COr="Rank",N1r="Data table",wOr="Groundedness score table",xOr="Groundedness Score",TOr="Indicates how well generated answers are grounded in the source documents. A higher score is better.",IOr="Documents referenced table",AOr="Documents Referenced",ROr="Shows documents ranked by reference frequency.",NOr={VERY_GOOD:{label:"Very Good",status:"success"},GOOD:{label:"Good",status:"success"},FAIR:{label:"Fair",status:"warning"},POOR:{label:"Poor",status:"error"},VERY_POOR:{label:"Very Poor",status:"error"},NOT_AVAILABLE:{label:"Score not available",status:"default"}},OOr="Welcome to the Groundedness Observability",LOr="Select a RAG pipeline from the select menu to observe the performance and detect hallucinations to help improve your pipelines.",POr=[{title:"Groundedness Statistics",description:"The groundedness score tells you if your RAG pipeline's responses align with your data.",icon:E.jsx(hj,{})},{title:"Reference Analysis",description:"Analyze references to optimize the number of documents you feed into the prompt.",icon:E.jsx($St,{})}],kOr={title:"This is where the groundedness chart will appear",description:"This pipeline wasn't used so the score couldn't be calculated. Run some queries to get your score.",icon:E.jsx(hj,{})},MOr={title:"This is where the referenced documents information will appear.",description:"The pipeline wasn't used so there's no data available. Run a few queries to see the documents referenced in the answers.",icon:E.jsx(sDe,{})},DOr=[{label:"Today",value:Xc.TODAY},{label:"7d",value:Xc.SEVEN_DAYS},{label:"14d",value:Xc.FOURTEEN_DAYS},{label:"30d",value:Xc.THIRTY_DAYS},{label:"60d",value:Xc.SIXTY_DAYS}],$Or=[{label:"Area chart",key:rM.AREA,icon:E.jsx(hj,{})},{label:"Line chart",key:rM.LINE,icon:E.jsx(X2t,{})},{label:"Bar chart",key:rM.BAR,icon:E.jsx(sDe,{})}],FOr=[{label:"Export as CSV",key:Cp.CSV},{label:"Export as PNG",key:Cp.PNG},{label:"Export as JPEG",key:Cp.JPEG},{label:"Export as PDF",key:Cp.PDF}],O1r="_card_1yhcp_25",L1r="_container_1yhcp_25",P1r="_container_expanded_1yhcp_38",k1r="_header_1yhcp_47",M1r="_header_tooltip_1yhcp_53",D1r="_header_actions_1yhcp_57",$1r="_childContainer_1yhcp_65",nx={card:O1r,container:L1r,container_expanded:P1r,header:k1r,header_tooltip:M1r,header_actions:D1r,childContainer:$1r},F1r=e=>{const{headerLabel:t,tooltipLabel:n,chartOptions:r,exportOptions:i,selectedChartType:a,onExport:o,displayHeaderActions:s=!0,onViewDataTable:l,onResize:c,onChartSelection:u,children:d}=e,[f,p]=se.useState(!1),h=()=>{p(!f),document.fullscreenElement?document.exitFullscreen():document.documentElement.requestFullscreen(),c()},m=()=>{document.fullscreenElement||(p(!1),setTimeout(()=>{c()}))};b.useEffect(()=>(document.addEventListener("fullscreenchange",m),()=>{document.removeEventListener("fullscreenchange",m,!1)}),[]);const g=()=>{const y=r?.find(({key:_})=>_===a);return E.jsx(Vo,{menu:{items:r,onClick:({key:_})=>u&&u(_),selectable:!0,defaultSelectedKeys:[a||""]},placement:"bottomRight",trigger:["click"],children:E.jsxs(ut,{icon:y?.icon,size:"small",onClick:_=>_.preventDefault(),children:[y?.label,E.jsx(pv,{})]})})},v=()=>E.jsx(vr,{title:I1r,children:E.jsx(Vo,{menu:{items:i,onClick:({key:y})=>o&&o(y),selectable:!1},trigger:["click"],children:E.jsx(ut,{icon:E.jsx(nO,{}),size:"small",onClick:y=>y.preventDefault()})})});return E.jsxs("div",{className:`${nx.container} ${f?nx.container_expanded:""}`,children:[E.jsxs("div",{className:nx.header,children:[E.jsxs("h5",{children:[t,n&&E.jsx(vr,{className:nx.header_tooltip,title:n,children:E.jsx(om,{})})]}),s&&E.jsxs("span",{className:nx.header_actions,children:[!!r&&g(),!!l&&E.jsx(vr,{title:N1r,children:E.jsx(ut,{size:"small",icon:E.jsx($Et,{}),onClick:l})}),!!i&&!!o&&v(),E.jsx(vr,{title:f?R1r:A1r,children:E.jsx(ut,{size:"small",icon:f?E.jsx(Gbt,{}):E.jsx(I_t,{}),onClick:h})})]})]}),E.jsx("div",{className:`${nx.childContainer} ${f?"expanded":""}`,children:d})]})},B1r=()=>{const e=ir(),{selectedDateRange:t}=g8(),{devHours:n,prodHours:r}=st(BXn);return b.useEffect(()=>{const i={from:t?.from,to:Cr()};e(MXn({dateRange:i,interval:t?.interval}))},[]),{devHours:n,prodHours:r}},j1r="_container_k4q36_1",z1r={container:j1r},U1r=()=>{const e=ir(),{devHours:t,prodHours:n}=B1r(),r=b.useRef(null),{collapsed:i}=st(gQe),a=()=>{r?.current?.resize()};b.useEffect(()=>{setTimeout(()=>{a()},250)},[i]);const o=l=>{r?.current&&e(Cor({chartObj:r.current,mode:l,extraInfo:{name:Gwe}}))},s=()=>E.jsx("div",{className:z1r.container,children:E.jsx(T1r,{ref:r,series:[{label:lyn,data:t},{label:syn,data:n,color:Xy.token?.colorSuccess}],withArea:!1})});return E.jsx(F1r,{headerLabel:Gwe,onResize:a,exportOptions:dyn,onExport:o,children:s()})},H1r="_container_b3xbv_35",V1r="_content_b3xbv_35",G1r="_section_b3xbv_52",u9={"auth-content":"_auth-content_b3xbv_25","content-wrapper":"_content-wrapper_b3xbv_35",container:H1r,"content-wrapper_padding":"_content-wrapper_padding_b3xbv_40",content:V1r,section:G1r},q1r=()=>{const e=ir();return b.useEffect(()=>{e(OXn)},[]),E.jsxs("div",{className:u9.container,children:[E.jsx(JT,{}),E.jsxs("div",{className:u9.content,children:[E.jsxs("div",{className:u9.section,children:[E.jsx("h4",{className:u9.header,children:iyn}),E.jsx(por,{})]}),E.jsx(U1r,{}),E.jsx(_or,{})]})]})};function Kp(e){if(typeof e=="string"||typeof e=="number")return""+e;let t="";if(Array.isArray(e))for(let n=0,r;n<e.length;n++)(r=Kp(e[n]))!==""&&(t+=(t&&" ")+r);else for(let n in e)e[n]&&(t+=(t&&" ")+n);return t}var hlt={exports:{}},mlt={},glt={exports:{}},vlt={};/**
 * @license React
 * use-sync-external-store-shim.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var U3=b;function W1r(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Y1r=typeof Object.is=="function"?Object.is:W1r,K1r=U3.useState,X1r=U3.useEffect,Z1r=U3.useLayoutEffect,Q1r=U3.useDebugValue;function J1r(e,t){var n=t(),r=K1r({inst:{value:n,getSnapshot:t}}),i=r[0].inst,a=r[1];return Z1r(function(){i.value=n,i.getSnapshot=t,vte(i)&&a({inst:i})},[e,n,t]),X1r(function(){return vte(i)&&a({inst:i}),e(function(){vte(i)&&a({inst:i})})},[e]),Q1r(n),n}function vte(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Y1r(e,n)}catch{return!0}}function e0r(e,t){return t()}var t0r=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?e0r:J1r;vlt.useSyncExternalStore=U3.useSyncExternalStore!==void 0?U3.useSyncExternalStore:t0r;glt.exports=vlt;var n0r=glt.exports;/**
 * @license React
 * use-sync-external-store-shim/with-selector.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var RH=b,r0r=n0r;function i0r(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var a0r=typeof Object.is=="function"?Object.is:i0r,o0r=r0r.useSyncExternalStore,s0r=RH.useRef,l0r=RH.useEffect,c0r=RH.useMemo,u0r=RH.useDebugValue;mlt.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var a=s0r(null);if(a.current===null){var o={hasValue:!1,value:null};a.current=o}else o=a.current;a=c0r(function(){function l(p){if(!c){if(c=!0,u=p,p=r(p),i!==void 0&&o.hasValue){var h=o.value;if(i(h,p))return d=h}return d=p}if(h=d,a0r(u,p))return h;var m=r(p);return i!==void 0&&i(h,m)?h:(u=p,d=m)}var c=!1,u,d,f=n===void 0?null:n;return[function(){return l(t())},f===null?void 0:function(){return l(f())}]},[t,n,r,i]);var s=o0r(e,a[0],a[1]);return l0r(function(){o.hasValue=!0,o.value=s},[s]),u0r(s),s};hlt.exports=mlt;var d0r=hlt.exports;const f0r=qo(d0r),p0r={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_API_URL:"https://api.cloud.deepset.ai",VITE_AUTH0_CLIENT_ID:"6UAZhdwSYw3VkbcqmOz2QyiTK1ez5MCe",VITE_AUTH0_DOMAIN:"auth.cloud.deepset.ai",VITE_AWS_MARKETPLACE_URL_EU:"https://o1rk9yd7lg.execute-api.eu-central-1.amazonaws.com/Development",VITE_AWS_MARKETPLACE_URL_US:"https://rx6o3degzk.execute-api.us-east-1.amazonaws.com/Development",VITE_CONTACT_DEEPSET_URL:"https://landing.deepset.ai/deepset-contact-us",VITE_DATADOGRUM_APP_ID:"4062225b-061c-4a6e-8b0d-3961db8d90ae",VITE_DATADOGRUM_CLIENT_TOKEN:"pub4a01aec08e2785e4ba5d99d328c3bede",VITE_DATADOGRUM_ENV:"prod",VITE_DATADOGRUM_SERVICE:"deepset-cloud",VITE_DATADOGRUM_SITE:"datadoghq.eu",VITE_DOCS_SDK_URL:"https://sdk.cloud.deepset.ai/",VITE_DOCS_URL:"https://docs.cloud.deepset.ai/",VITE_HAYSTACK_SCHEMA_URL:"https://raw.githubusercontent.com/deepset-ai/haystack-json-schema/main/json-schema/haystack-pipeline-1.26.2.schema.json",VITE_HAYSTACK_VERSION:"1.26.2",VITE_SENTRY_DSN:"https://fc5b59ef577d400591901eb981c704d4@o485100.ingest.sentry.io/6157389",VITE_SENTRY_ENV:"prod"},$Pe=e=>{let t;const n=new Set,r=(u,d)=>{const f=typeof u=="function"?u(t):u;if(!Object.is(f,t)){const p=t;t=d??(typeof f!="object"||f===null)?f:Object.assign({},t,f),n.forEach(h=>h(t,p))}},i=()=>t,l={setState:r,getState:i,getInitialState:()=>c,subscribe:u=>(n.add(u),()=>n.delete(u)),destroy:()=>{(p0r?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},c=t=e(r,i,l);return l},h0r=e=>e?$Pe(e):$Pe,{useDebugValue:m0r}=se,{useSyncExternalStoreWithSelector:g0r}=f0r,v0r=e=>e;function ylt(e,t=v0r,n){const r=g0r(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return m0r(r),r}const FPe=(e,t)=>{const n=h0r(e),r=(i,a=t)=>ylt(n,i,a);return Object.assign(r,n),r},y0r=(e,t)=>e?FPe(e,t):FPe;function kd(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[r,i]of e)if(!Object.is(i,t.get(r)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(const r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||!Object.is(e[r],t[r]))return!1;return!0}var b0r={value:()=>{}};function NH(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new aD(n)}function aD(e){this._=e}function _0r(e,t){return e.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}aD.prototype=NH.prototype={constructor:aD,on:function(e,t){var n=this._,r=_0r(e+"",n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=S0r(n[i],e.name)))return i;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++a<o;)if(i=(e=r[a]).type)n[i]=BPe(n[i],e.name,t);else if(t==null)for(i in n)n[i]=BPe(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new aD(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=this._[e],r=0,i=a.length;r<i;++r)a[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};function S0r(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function BPe(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=b0r,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var ule="http://www.w3.org/1999/xhtml";const jPe={svg:"http://www.w3.org/2000/svg",xhtml:ule,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function OH(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),jPe.hasOwnProperty(t)?{space:jPe[t],local:e}:e}function E0r(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===ule&&t.documentElement.namespaceURI===ule?t.createElement(e):t.createElementNS(n,e)}}function C0r(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function blt(e){var t=OH(e);return(t.local?C0r:E0r)(t)}function w0r(){}function Yge(e){return e==null?w0r:function(){return this.querySelector(e)}}function x0r(e){typeof e!="function"&&(e=Yge(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=new Array(o),l,c,u=0;u<o;++u)(l=a[u])&&(c=e.call(l,l.__data__,u,a))&&("__data__"in l&&(c.__data__=l.__data__),s[u]=c);return new Lf(r,this._parents)}function T0r(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function I0r(){return[]}function _lt(e){return e==null?I0r:function(){return this.querySelectorAll(e)}}function A0r(e){return function(){return T0r(e.apply(this,arguments))}}function R0r(e){typeof e=="function"?e=A0r(e):e=_lt(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var o=t[a],s=o.length,l,c=0;c<s;++c)(l=o[c])&&(r.push(e.call(l,l.__data__,c,o)),i.push(l));return new Lf(r,i)}function Slt(e){return function(){return this.matches(e)}}function Elt(e){return function(t){return t.matches(e)}}var N0r=Array.prototype.find;function O0r(e){return function(){return N0r.call(this.children,e)}}function L0r(){return this.firstElementChild}function P0r(e){return this.select(e==null?L0r:O0r(typeof e=="function"?e:Elt(e)))}var k0r=Array.prototype.filter;function M0r(){return Array.from(this.children)}function D0r(e){return function(){return k0r.call(this.children,e)}}function $0r(e){return this.selectAll(e==null?M0r:D0r(typeof e=="function"?e:Elt(e)))}function F0r(e){typeof e!="function"&&(e=Slt(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],l,c=0;c<o;++c)(l=a[c])&&e.call(l,l.__data__,c,a)&&s.push(l);return new Lf(r,this._parents)}function Clt(e){return new Array(e.length)}function B0r(){return new Lf(this._enter||this._groups.map(Clt),this._parents)}function EB(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}EB.prototype={constructor:EB,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function j0r(e){return function(){return e}}function z0r(e,t,n,r,i,a){for(var o=0,s,l=t.length,c=a.length;o<c;++o)(s=t[o])?(s.__data__=a[o],r[o]=s):n[o]=new EB(e,a[o]);for(;o<l;++o)(s=t[o])&&(i[o]=s)}function U0r(e,t,n,r,i,a,o){var s,l,c=new Map,u=t.length,d=a.length,f=new Array(u),p;for(s=0;s<u;++s)(l=t[s])&&(f[s]=p=o.call(l,l.__data__,s,t)+"",c.has(p)?i[s]=l:c.set(p,l));for(s=0;s<d;++s)p=o.call(e,a[s],s,a)+"",(l=c.get(p))?(r[s]=l,l.__data__=a[s],c.delete(p)):n[s]=new EB(e,a[s]);for(s=0;s<u;++s)(l=t[s])&&c.get(f[s])===l&&(i[s]=l)}function H0r(e){return e.__data__}function V0r(e,t){if(!arguments.length)return Array.from(this,H0r);var n=t?U0r:z0r,r=this._parents,i=this._groups;typeof e!="function"&&(e=j0r(e));for(var a=i.length,o=new Array(a),s=new Array(a),l=new Array(a),c=0;c<a;++c){var u=r[c],d=i[c],f=d.length,p=G0r(e.call(u,u&&u.__data__,c,r)),h=p.length,m=s[c]=new Array(h),g=o[c]=new Array(h),v=l[c]=new Array(f);n(u,d,m,g,v,p,t);for(var y=0,_=0,S,C;y<h;++y)if(S=m[y]){for(y>=_&&(_=y+1);!(C=g[_])&&++_<h;);S._next=C||null}}return o=new Lf(o,r),o._enter=s,o._exit=l,o}function G0r(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function q0r(){return new Lf(this._exit||this._groups.map(Clt),this._parents)}function W0r(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e=="function"?(r=e(r),r&&(r=r.selection())):r=r.append(e+""),t!=null&&(i=t(i),i&&(i=i.selection())),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}function Y0r(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=new Array(i),l=0;l<o;++l)for(var c=n[l],u=r[l],d=c.length,f=s[l]=new Array(d),p,h=0;h<d;++h)(p=c[h]||u[h])&&(f[h]=p);for(;l<i;++l)s[l]=n[l];return new Lf(s,this._parents)}function K0r(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],o;--i>=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function X0r(e){e||(e=Z0r);function t(d,f){return d&&f?e(d.__data__,f.__data__):!d-!f}for(var n=this._groups,r=n.length,i=new Array(r),a=0;a<r;++a){for(var o=n[a],s=o.length,l=i[a]=new Array(s),c,u=0;u<s;++u)(c=o[u])&&(l[u]=c);l.sort(t)}return new Lf(i,this._parents).order()}function Z0r(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Q0r(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function J0r(){return Array.from(this)}function eyr(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}function tyr(){let e=0;for(const t of this)++e;return e}function nyr(){return!this.node()}function ryr(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}function iyr(e){return function(){this.removeAttribute(e)}}function ayr(e){return function(){this.removeAttributeNS(e.space,e.local)}}function oyr(e,t){return function(){this.setAttribute(e,t)}}function syr(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function lyr(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function cyr(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function uyr(e,t){var n=OH(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?ayr:iyr:typeof t=="function"?n.local?cyr:lyr:n.local?syr:oyr)(n,t))}function wlt(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function dyr(e){return function(){this.style.removeProperty(e)}}function fyr(e,t,n){return function(){this.style.setProperty(e,t,n)}}function pyr(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function hyr(e,t,n){return arguments.length>1?this.each((t==null?dyr:typeof t=="function"?pyr:fyr)(e,t,n??"")):H3(this.node(),e)}function H3(e,t){return e.style.getPropertyValue(t)||wlt(e).getComputedStyle(e,null).getPropertyValue(t)}function myr(e){return function(){delete this[e]}}function gyr(e,t){return function(){this[e]=t}}function vyr(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function yyr(e,t){return arguments.length>1?this.each((t==null?myr:typeof t=="function"?vyr:gyr)(e,t)):this.node()[e]}function xlt(e){return e.trim().split(/^|\s+/)}function Kge(e){return e.classList||new Tlt(e)}function Tlt(e){this._node=e,this._names=xlt(e.getAttribute("class")||"")}Tlt.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Ilt(e,t){for(var n=Kge(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function Alt(e,t){for(var n=Kge(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function byr(e){return function(){Ilt(this,e)}}function _yr(e){return function(){Alt(this,e)}}function Syr(e,t){return function(){(t.apply(this,arguments)?Ilt:Alt)(this,e)}}function Eyr(e,t){var n=xlt(e+"");if(arguments.length<2){for(var r=Kge(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t=="function"?Syr:t?byr:_yr)(n,t))}function Cyr(){this.textContent=""}function wyr(e){return function(){this.textContent=e}}function xyr(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function Tyr(e){return arguments.length?this.each(e==null?Cyr:(typeof e=="function"?xyr:wyr)(e)):this.node().textContent}function Iyr(){this.innerHTML=""}function Ayr(e){return function(){this.innerHTML=e}}function Ryr(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function Nyr(e){return arguments.length?this.each(e==null?Iyr:(typeof e=="function"?Ryr:Ayr)(e)):this.node().innerHTML}function Oyr(){this.nextSibling&&this.parentNode.appendChild(this)}function Lyr(){return this.each(Oyr)}function Pyr(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function kyr(){return this.each(Pyr)}function Myr(e){var t=typeof e=="function"?e:blt(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Dyr(){return null}function $yr(e,t){var n=typeof e=="function"?e:blt(e),r=t==null?Dyr:typeof t=="function"?t:Yge(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function Fyr(){var e=this.parentNode;e&&e.removeChild(this)}function Byr(){return this.each(Fyr)}function jyr(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function zyr(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Uyr(e){return this.select(e?zyr:jyr)}function Hyr(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Vyr(e){return function(t){e.call(this,t,this.__data__)}}function Gyr(e){return e.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function qyr(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n<i;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function Wyr(e,t,n){return function(){var r=this.__on,i,a=Vyr(t);if(r){for(var o=0,s=r.length;o<s;++o)if((i=r[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=t;return}}this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function Yyr(e,t,n){var r=Gyr(e+""),i,a=r.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var l=0,c=s.length,u;l<c;++l)for(i=0,u=s[l];i<a;++i)if((o=r[i]).type===u.type&&o.name===u.name)return u.value}return}for(s=t?Wyr:qyr,i=0;i<a;++i)this.each(s(r[i],t,n));return this}function Rlt(e,t,n){var r=wlt(e),i=r.CustomEvent;typeof i=="function"?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Kyr(e,t){return function(){return Rlt(this,e,t)}}function Xyr(e,t){return function(){return Rlt(this,e,t.apply(this,arguments))}}function Zyr(e,t){return this.each((typeof t=="function"?Xyr:Kyr)(e,t))}function*Qyr(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,o;i<a;++i)(o=r[i])&&(yield o)}var Nlt=[null];function Lf(e,t){this._groups=e,this._parents=t}function I8(){return new Lf([[document.documentElement]],Nlt)}function Jyr(){return this}Lf.prototype=I8.prototype={constructor:Lf,select:x0r,selectAll:R0r,selectChild:P0r,selectChildren:$0r,filter:F0r,data:V0r,enter:B0r,exit:q0r,join:W0r,merge:Y0r,selection:Jyr,order:K0r,sort:X0r,call:Q0r,nodes:J0r,node:eyr,size:tyr,empty:nyr,each:ryr,attr:uyr,style:hyr,property:yyr,classed:Eyr,text:Tyr,html:Nyr,raise:Lyr,lower:kyr,append:Myr,insert:$yr,remove:Byr,clone:Uyr,datum:Hyr,on:Yyr,dispatch:Zyr,[Symbol.iterator]:Qyr};function Gh(e){return typeof e=="string"?new Lf([[document.querySelector(e)]],[document.documentElement]):new Lf([[e]],Nlt)}function ebr(e){let t;for(;t=e.sourceEvent;)e=t;return e}function Eg(e,t){if(e=ebr(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}const tbr={passive:!1},N6={capture:!0,passive:!1};function yte(e){e.stopImmediatePropagation()}function K5(e){e.preventDefault(),e.stopImmediatePropagation()}function Olt(e){var t=e.document.documentElement,n=Gh(e).on("dragstart.drag",K5,N6);"onselectstart"in t?n.on("selectstart.drag",K5,N6):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function Llt(e,t){var n=e.document.documentElement,r=Gh(e).on("dragstart.drag",null);t&&(r.on("click.drag",K5,N6),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}const d9=e=>()=>e;function dle(e,{sourceEvent:t,subject:n,target:r,identifier:i,active:a,x:o,y:s,dx:l,dy:c,dispatch:u}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:a,enumerable:!0,configurable:!0},x:{value:o,enumerable:!0,configurable:!0},y:{value:s,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:c,enumerable:!0,configurable:!0},_:{value:u}})}dle.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function nbr(e){return!e.ctrlKey&&!e.button}function rbr(){return this.parentNode}function ibr(e,t){return t??{x:e.x,y:e.y}}function abr(){return navigator.maxTouchPoints||"ontouchstart"in this}function obr(){var e=nbr,t=rbr,n=ibr,r=abr,i={},a=NH("start","drag","end"),o=0,s,l,c,u,d=0;function f(S){S.on("mousedown.drag",p).filter(r).on("touchstart.drag",g).on("touchmove.drag",v,tbr).on("touchend.drag touchcancel.drag",y).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function p(S,C){if(!(u||!e.call(this,S,C))){var w=_(this,t.call(this,S,C),S,C,"mouse");w&&(Gh(S.view).on("mousemove.drag",h,N6).on("mouseup.drag",m,N6),Olt(S.view),yte(S),c=!1,s=S.clientX,l=S.clientY,w("start",S))}}function h(S){if(K5(S),!c){var C=S.clientX-s,w=S.clientY-l;c=C*C+w*w>d}i.mouse("drag",S)}function m(S){Gh(S.view).on("mousemove.drag mouseup.drag",null),Llt(S.view,c),K5(S),i.mouse("end",S)}function g(S,C){if(e.call(this,S,C)){var w=S.changedTouches,x=t.call(this,S,C),T=w.length,A,I;for(A=0;A<T;++A)(I=_(this,x,S,C,w[A].identifier,w[A]))&&(yte(S),I("start",S,w[A]))}}function v(S){var C=S.changedTouches,w=C.length,x,T;for(x=0;x<w;++x)(T=i[C[x].identifier])&&(K5(S),T("drag",S,C[x]))}function y(S){var C=S.changedTouches,w=C.length,x,T;for(u&&clearTimeout(u),u=setTimeout(function(){u=null},500),x=0;x<w;++x)(T=i[C[x].identifier])&&(yte(S),T("end",S,C[x]))}function _(S,C,w,x,T,A){var I=a.copy(),R=Eg(A||w,C),N,P,L;if((L=n.call(S,new dle("beforestart",{sourceEvent:w,target:f,identifier:T,active:o,x:R[0],y:R[1],dx:0,dy:0,dispatch:I}),x))!=null)return N=L.x-R[0]||0,P=L.y-R[1]||0,function $(D,z,U){var H=R,M;switch(D){case"start":i[T]=$,M=o++;break;case"end":delete i[T],--o;case"drag":R=Eg(U||z,C),M=o;break}I.call(D,S,new dle(D,{sourceEvent:z,subject:L,target:f,identifier:T,active:M,x:R[0]+N,y:R[1]+P,dx:R[0]-H[0],dy:R[1]-H[1],dispatch:I}),x)}}return f.filter=function(S){return arguments.length?(e=typeof S=="function"?S:d9(!!S),f):e},f.container=function(S){return arguments.length?(t=typeof S=="function"?S:d9(S),f):t},f.subject=function(S){return arguments.length?(n=typeof S=="function"?S:d9(S),f):n},f.touchable=function(S){return arguments.length?(r=typeof S=="function"?S:d9(!!S),f):r},f.on=function(){var S=a.on.apply(a,arguments);return S===a?f:S},f.clickDistance=function(S){return arguments.length?(d=(S=+S)*S,f):Math.sqrt(d)},f}function Xge(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Plt(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function A8(){}var O6=.7,CB=1/O6,X5="\\s*([+-]?\\d+)\\s*",L6="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Qg="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",sbr=/^#([0-9a-f]{3,8})$/,lbr=new RegExp(`^rgb\\(${X5},${X5},${X5}\\)$`),cbr=new RegExp(`^rgb\\(${Qg},${Qg},${Qg}\\)$`),ubr=new RegExp(`^rgba\\(${X5},${X5},${X5},${L6}\\)$`),dbr=new RegExp(`^rgba\\(${Qg},${Qg},${Qg},${L6}\\)$`),fbr=new RegExp(`^hsl\\(${L6},${Qg},${Qg}\\)$`),pbr=new RegExp(`^hsla\\(${L6},${Qg},${Qg},${L6}\\)$`),zPe={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Xge(A8,P6,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:UPe,formatHex:UPe,formatHex8:hbr,formatHsl:mbr,formatRgb:HPe,toString:HPe});function UPe(){return this.rgb().formatHex()}function hbr(){return this.rgb().formatHex8()}function mbr(){return klt(this).formatHsl()}function HPe(){return this.rgb().formatRgb()}function P6(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=sbr.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?VPe(t):n===3?new _d(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?f9(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?f9(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=lbr.exec(e))?new _d(t[1],t[2],t[3],1):(t=cbr.exec(e))?new _d(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=ubr.exec(e))?f9(t[1],t[2],t[3],t[4]):(t=dbr.exec(e))?f9(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=fbr.exec(e))?WPe(t[1],t[2]/100,t[3]/100,1):(t=pbr.exec(e))?WPe(t[1],t[2]/100,t[3]/100,t[4]):zPe.hasOwnProperty(e)?VPe(zPe[e]):e==="transparent"?new _d(NaN,NaN,NaN,0):null}function VPe(e){return new _d(e>>16&255,e>>8&255,e&255,1)}function f9(e,t,n,r){return r<=0&&(e=t=n=NaN),new _d(e,t,n,r)}function gbr(e){return e instanceof A8||(e=P6(e)),e?(e=e.rgb(),new _d(e.r,e.g,e.b,e.opacity)):new _d}function fle(e,t,n,r){return arguments.length===1?gbr(e):new _d(e,t,n,r??1)}function _d(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Xge(_d,fle,Plt(A8,{brighter(e){return e=e==null?CB:Math.pow(CB,e),new _d(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?O6:Math.pow(O6,e),new _d(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new _d(_E(this.r),_E(this.g),_E(this.b),wB(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:GPe,formatHex:GPe,formatHex8:vbr,formatRgb:qPe,toString:qPe}));function GPe(){return`#${YS(this.r)}${YS(this.g)}${YS(this.b)}`}function vbr(){return`#${YS(this.r)}${YS(this.g)}${YS(this.b)}${YS((isNaN(this.opacity)?1:this.opacity)*255)}`}function qPe(){const e=wB(this.opacity);return`${e===1?"rgb(":"rgba("}${_E(this.r)}, ${_E(this.g)}, ${_E(this.b)}${e===1?")":`, ${e})`}`}function wB(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function _E(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function YS(e){return e=_E(e),(e<16?"0":"")+e.toString(16)}function WPe(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new qh(e,t,n,r)}function klt(e){if(e instanceof qh)return new qh(e.h,e.s,e.l,e.opacity);if(e instanceof A8||(e=P6(e)),!e)return new qh;if(e instanceof qh)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,l=(a+i)/2;return s?(t===a?o=(n-r)/s+(n<r)*6:n===a?o=(r-t)/s+2:o=(t-n)/s+4,s/=l<.5?a+i:2-a-i,o*=60):s=l>0&&l<1?0:o,new qh(o,s,l,e.opacity)}function ybr(e,t,n,r){return arguments.length===1?klt(e):new qh(e,t,n,r??1)}function qh(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Xge(qh,ybr,Plt(A8,{brighter(e){return e=e==null?CB:Math.pow(CB,e),new qh(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?O6:Math.pow(O6,e),new qh(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new _d(bte(e>=240?e-240:e+120,i,r),bte(e,i,r),bte(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new qh(YPe(this.h),p9(this.s),p9(this.l),wB(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=wB(this.opacity);return`${e===1?"hsl(":"hsla("}${YPe(this.h)}, ${p9(this.s)*100}%, ${p9(this.l)*100}%${e===1?")":`, ${e})`}`}}));function YPe(e){return e=(e||0)%360,e<0?e+360:e}function p9(e){return Math.max(0,Math.min(1,e||0))}function bte(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Mlt=e=>()=>e;function bbr(e,t){return function(n){return e+n*t}}function _br(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function Sbr(e){return(e=+e)==1?Dlt:function(t,n){return n-t?_br(t,n,e):Mlt(isNaN(t)?n:t)}}function Dlt(e,t){var n=t-e;return n?bbr(e,n):Mlt(isNaN(e)?t:e)}const KPe=function e(t){var n=Sbr(t);function r(i,a){var o=n((i=fle(i)).r,(a=fle(a)).r),s=n(i.g,a.g),l=n(i.b,a.b),c=Dlt(i.opacity,a.opacity);return function(u){return i.r=o(u),i.g=s(u),i.b=l(u),i.opacity=c(u),i+""}}return r.gamma=e,r}(1);function Qy(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var ple=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,_te=new RegExp(ple.source,"g");function Ebr(e){return function(){return e}}function Cbr(e){return function(t){return e(t)+""}}function wbr(e,t){var n=ple.lastIndex=_te.lastIndex=0,r,i,a,o=-1,s=[],l=[];for(e=e+"",t=t+"";(r=ple.exec(e))&&(i=_te.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,l.push({i:o,x:Qy(r,i)})),n=_te.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?l[0]?Cbr(l[0].x):Ebr(t):(t=l.length,function(c){for(var u=0,d;u<t;++u)s[(d=l[u]).i]=d.x(c);return s.join("")})}var XPe=180/Math.PI,hle={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function $lt(e,t,n,r,i,a){var o,s,l;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),e*r<t*n&&(e=-e,t=-t,l=-l,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*XPe,skewX:Math.atan(l)*XPe,scaleX:o,scaleY:s}}var h9;function xbr(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?hle:$lt(t.a,t.b,t.c,t.d,t.e,t.f)}function Tbr(e){return e==null||(h9||(h9=document.createElementNS("http://www.w3.org/2000/svg","g")),h9.setAttribute("transform",e),!(e=h9.transform.baseVal.consolidate()))?hle:(e=e.matrix,$lt(e.a,e.b,e.c,e.d,e.e,e.f))}function Flt(e,t,n,r){function i(c){return c.length?c.pop()+" ":""}function a(c,u,d,f,p,h){if(c!==d||u!==f){var m=p.push("translate(",null,t,null,n);h.push({i:m-4,x:Qy(c,d)},{i:m-2,x:Qy(u,f)})}else(d||f)&&p.push("translate("+d+t+f+n)}function o(c,u,d,f){c!==u?(c-u>180?u+=360:u-c>180&&(c+=360),f.push({i:d.push(i(d)+"rotate(",null,r)-2,x:Qy(c,u)})):u&&d.push(i(d)+"rotate("+u+r)}function s(c,u,d,f){c!==u?f.push({i:d.push(i(d)+"skewX(",null,r)-2,x:Qy(c,u)}):u&&d.push(i(d)+"skewX("+u+r)}function l(c,u,d,f,p,h){if(c!==d||u!==f){var m=p.push(i(p)+"scale(",null,",",null,")");h.push({i:m-4,x:Qy(c,d)},{i:m-2,x:Qy(u,f)})}else(d!==1||f!==1)&&p.push(i(p)+"scale("+d+","+f+")")}return function(c,u){var d=[],f=[];return c=e(c),u=e(u),a(c.translateX,c.translateY,u.translateX,u.translateY,d,f),o(c.rotate,u.rotate,d,f),s(c.skewX,u.skewX,d,f),l(c.scaleX,c.scaleY,u.scaleX,u.scaleY,d,f),c=u=null,function(p){for(var h=-1,m=f.length,g;++h<m;)d[(g=f[h]).i]=g.x(p);return d.join("")}}}var Ibr=Flt(xbr,"px, ","px)","deg)"),Abr=Flt(Tbr,", ",")",")"),Rbr=1e-12;function ZPe(e){return((e=Math.exp(e))+1/e)/2}function Nbr(e){return((e=Math.exp(e))-1/e)/2}function Obr(e){return((e=Math.exp(2*e))-1)/(e+1)}const Lbr=function e(t,n,r){function i(a,o){var s=a[0],l=a[1],c=a[2],u=o[0],d=o[1],f=o[2],p=u-s,h=d-l,m=p*p+h*h,g,v;if(m<Rbr)v=Math.log(f/c)/t,g=function(x){return[s+x*p,l+x*h,c*Math.exp(t*x*v)]};else{var y=Math.sqrt(m),_=(f*f-c*c+r*m)/(2*c*n*y),S=(f*f-c*c-r*m)/(2*f*n*y),C=Math.log(Math.sqrt(_*_+1)-_),w=Math.log(Math.sqrt(S*S+1)-S);v=(w-C)/t,g=function(x){var T=x*v,A=ZPe(C),I=c/(n*y)*(A*Obr(t*T+C)-Nbr(C));return[s+I*p,l+I*h,c*A/ZPe(t*T+C)]}}return g.duration=v*1e3*t/Math.SQRT2,g}return i.rho=function(a){var o=Math.max(.001,+a),s=o*o,l=s*s;return e(o,s,l)},i}(Math.SQRT2,2,4);var V3=0,jA=0,XI=0,Blt=1e3,xB,zA,TB=0,lC=0,LH=0,k6=typeof performance=="object"&&performance.now?performance:Date,jlt=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Zge(){return lC||(jlt(Pbr),lC=k6.now()+LH)}function Pbr(){lC=0}function IB(){this._call=this._time=this._next=null}IB.prototype=zlt.prototype={constructor:IB,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?Zge():+n)+(t==null?0:+t),!this._next&&zA!==this&&(zA?zA._next=this:xB=this,zA=this),this._call=e,this._time=n,mle()},stop:function(){this._call&&(this._call=null,this._time=1/0,mle())}};function zlt(e,t,n){var r=new IB;return r.restart(e,t,n),r}function kbr(){Zge(),++V3;for(var e=xB,t;e;)(t=lC-e._time)>=0&&e._call.call(void 0,t),e=e._next;--V3}function QPe(){lC=(TB=k6.now())+LH,V3=jA=0;try{kbr()}finally{V3=0,Dbr(),lC=0}}function Mbr(){var e=k6.now(),t=e-TB;t>Blt&&(LH-=t,TB=e)}function Dbr(){for(var e,t=xB,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:xB=n);zA=e,mle(r)}function mle(e){if(!V3){jA&&(jA=clearTimeout(jA));var t=e-lC;t>24?(e<1/0&&(jA=setTimeout(QPe,e-k6.now()-LH)),XI&&(XI=clearInterval(XI))):(XI||(TB=k6.now(),XI=setInterval(Mbr,Blt)),V3=1,jlt(QPe))}}function JPe(e,t,n){var r=new IB;return t=t==null?0:+t,r.restart(i=>{r.stop(),e(i+t)},t,n),r}var $br=NH("start","end","cancel","interrupt"),Fbr=[],Ult=0,eke=1,gle=2,oD=3,tke=4,vle=5,sD=6;function PH(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;Bbr(e,n,{name:t,index:r,group:i,on:$br,tween:Fbr,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:Ult})}function Qge(e,t){var n=Pm(e,t);if(n.state>Ult)throw new Error("too late; already scheduled");return n}function Tv(e,t){var n=Pm(e,t);if(n.state>oD)throw new Error("too late; already running");return n}function Pm(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function Bbr(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=zlt(a,0,n.time);function a(c){n.state=eke,n.timer.restart(o,n.delay,n.time),n.delay<=c&&o(c-n.delay)}function o(c){var u,d,f,p;if(n.state!==eke)return l();for(u in r)if(p=r[u],p.name===n.name){if(p.state===oD)return JPe(o);p.state===tke?(p.state=sD,p.timer.stop(),p.on.call("interrupt",e,e.__data__,p.index,p.group),delete r[u]):+u<t&&(p.state=sD,p.timer.stop(),p.on.call("cancel",e,e.__data__,p.index,p.group),delete r[u])}if(JPe(function(){n.state===oD&&(n.state=tke,n.timer.restart(s,n.delay,n.time),s(c))}),n.state=gle,n.on.call("start",e,e.__data__,n.index,n.group),n.state===gle){for(n.state=oD,i=new Array(f=n.tween.length),u=0,d=-1;u<f;++u)(p=n.tween[u].value.call(e,e.__data__,n.index,n.group))&&(i[++d]=p);i.length=d+1}}function s(c){for(var u=c<n.duration?n.ease.call(null,c/n.duration):(n.timer.restart(l),n.state=vle,1),d=-1,f=i.length;++d<f;)i[d].call(e,u);n.state===vle&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){n.state=sD,n.timer.stop(),delete r[t];for(var c in r)return;delete e.__transition}}function lD(e,t){var n=e.__transition,r,i,a=!0,o;if(n){t=t==null?null:t+"";for(o in n){if((r=n[o]).name!==t){a=!1;continue}i=r.state>gle&&r.state<vle,r.state=sD,r.timer.stop(),r.on.call(i?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[o]}a&&delete e.__transition}}function jbr(e){return this.each(function(){lD(this,e)})}function zbr(e,t){var n,r;return function(){var i=Tv(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o<s;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function Ubr(e,t,n){var r,i;if(typeof n!="function")throw new Error;return function(){var a=Tv(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:t,value:n},l=0,c=i.length;l<c;++l)if(i[l].name===t){i[l]=s;break}l===c&&i.push(s)}a.tween=i}}function Hbr(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=Pm(this.node(),n).tween,i=0,a=r.length,o;i<a;++i)if((o=r[i]).name===e)return o.value;return null}return this.each((t==null?zbr:Ubr)(n,e,t))}function Jge(e,t,n){var r=e._id;return e.each(function(){var i=Tv(this,r);(i.value||(i.value={}))[t]=n.apply(this,arguments)}),function(i){return Pm(i,r).value[t]}}function Hlt(e,t){var n;return(typeof t=="number"?Qy:t instanceof P6?KPe:(n=P6(t))?(t=n,KPe):wbr)(e,t)}function Vbr(e){return function(){this.removeAttribute(e)}}function Gbr(e){return function(){this.removeAttributeNS(e.space,e.local)}}function qbr(e,t,n){var r,i=n+"",a;return function(){var o=this.getAttribute(e);return o===i?null:o===r?a:a=t(r=o,n)}}function Wbr(e,t,n){var r,i=n+"",a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?a:a=t(r=o,n)}}function Ybr(e,t,n){var r,i,a;return function(){var o,s=n(this),l;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),l=s+"",o===l?null:o===r&&l===i?a:(i=l,a=t(r=o,s)))}}function Kbr(e,t,n){var r,i,a;return function(){var o,s=n(this),l;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),l=s+"",o===l?null:o===r&&l===i?a:(i=l,a=t(r=o,s)))}}function Xbr(e,t){var n=OH(e),r=n==="transform"?Abr:Hlt;return this.attrTween(e,typeof t=="function"?(n.local?Kbr:Ybr)(n,r,Jge(this,"attr."+e,t)):t==null?(n.local?Gbr:Vbr)(n):(n.local?Wbr:qbr)(n,r,t))}function Zbr(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Qbr(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function Jbr(e,t){var n,r;function i(){var a=t.apply(this,arguments);return a!==r&&(n=(r=a)&&Qbr(e,a)),n}return i._value=t,i}function e_r(e,t){var n,r;function i(){var a=t.apply(this,arguments);return a!==r&&(n=(r=a)&&Zbr(e,a)),n}return i._value=t,i}function t_r(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var r=OH(e);return this.tween(n,(r.local?Jbr:e_r)(r,t))}function n_r(e,t){return function(){Qge(this,e).delay=+t.apply(this,arguments)}}function r_r(e,t){return t=+t,function(){Qge(this,e).delay=t}}function i_r(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?n_r:r_r)(t,e)):Pm(this.node(),t).delay}function a_r(e,t){return function(){Tv(this,e).duration=+t.apply(this,arguments)}}function o_r(e,t){return t=+t,function(){Tv(this,e).duration=t}}function s_r(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?a_r:o_r)(t,e)):Pm(this.node(),t).duration}function l_r(e,t){if(typeof t!="function")throw new Error;return function(){Tv(this,e).ease=t}}function c_r(e){var t=this._id;return arguments.length?this.each(l_r(t,e)):Pm(this.node(),t).ease}function u_r(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;Tv(this,e).ease=n}}function d_r(e){if(typeof e!="function")throw new Error;return this.each(u_r(this._id,e))}function f_r(e){typeof e!="function"&&(e=Slt(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],l,c=0;c<o;++c)(l=a[c])&&e.call(l,l.__data__,c,a)&&s.push(l);return new d0(r,this._parents,this._name,this._id)}function p_r(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=new Array(r),s=0;s<a;++s)for(var l=t[s],c=n[s],u=l.length,d=o[s]=new Array(u),f,p=0;p<u;++p)(f=l[p]||c[p])&&(d[p]=f);for(;s<r;++s)o[s]=t[s];return new d0(o,this._parents,this._name,this._id)}function h_r(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function m_r(e,t,n){var r,i,a=h_r(t)?Qge:Tv;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function g_r(e,t){var n=this._id;return arguments.length<2?Pm(this.node(),n).on.on(e):this.each(m_r(n,e,t))}function v_r(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function y_r(){return this.on("end.remove",v_r(this._id))}function b_r(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Yge(e));for(var r=this._groups,i=r.length,a=new Array(i),o=0;o<i;++o)for(var s=r[o],l=s.length,c=a[o]=new Array(l),u,d,f=0;f<l;++f)(u=s[f])&&(d=e.call(u,u.__data__,f,s))&&("__data__"in u&&(d.__data__=u.__data__),c[f]=d,PH(c[f],t,n,f,c,Pm(u,n)));return new d0(a,this._parents,t,n)}function __r(e){var t=this._name,n=this._id;typeof e!="function"&&(e=_lt(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var l=r[s],c=l.length,u,d=0;d<c;++d)if(u=l[d]){for(var f=e.call(u,u.__data__,d,l),p,h=Pm(u,n),m=0,g=f.length;m<g;++m)(p=f[m])&&PH(p,t,n,m,f,h);a.push(f),o.push(u)}return new d0(a,o,t,n)}var S_r=I8.prototype.constructor;function E_r(){return new S_r(this._groups,this._parents)}function C_r(e,t){var n,r,i;return function(){var a=H3(this,e),o=(this.style.removeProperty(e),H3(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function Vlt(e){return function(){this.style.removeProperty(e)}}function w_r(e,t,n){var r,i=n+"",a;return function(){var o=H3(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function x_r(e,t,n){var r,i,a;return function(){var o=H3(this,e),s=n(this),l=s+"";return s==null&&(l=s=(this.style.removeProperty(e),H3(this,e))),o===l?null:o===r&&l===i?a:(i=l,a=t(r=o,s))}}function T_r(e,t){var n,r,i,a="style."+t,o="end."+a,s;return function(){var l=Tv(this,e),c=l.on,u=l.value[a]==null?s||(s=Vlt(t)):void 0;(c!==n||i!==u)&&(r=(n=c).copy()).on(o,i=u),l.on=r}}function I_r(e,t,n){var r=(e+="")=="transform"?Ibr:Hlt;return t==null?this.styleTween(e,C_r(e,r)).on("end.style."+e,Vlt(e)):typeof t=="function"?this.styleTween(e,x_r(e,r,Jge(this,"style."+e,t))).each(T_r(this._id,e)):this.styleTween(e,w_r(e,r,t),n).on("end.style."+e,null)}function A_r(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function R_r(e,t,n){var r,i;function a(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&A_r(e,o,n)),r}return a._value=t,a}function N_r(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;return this.tween(r,R_r(e,t,n??""))}function O_r(e){return function(){this.textContent=e}}function L_r(e){return function(){var t=e(this);this.textContent=t??""}}function P_r(e){return this.tween("text",typeof e=="function"?L_r(Jge(this,"text",e)):O_r(e==null?"":e+""))}function k_r(e){return function(t){this.textContent=e.call(this,t)}}function M_r(e){var t,n;function r(){var i=e.apply(this,arguments);return i!==n&&(t=(n=i)&&k_r(i)),t}return r._value=e,r}function D_r(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,M_r(e))}function $_r(){for(var e=this._name,t=this._id,n=Glt(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,l,c=0;c<s;++c)if(l=o[c]){var u=Pm(l,t);PH(l,e,n,c,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new d0(r,this._parents,e,n)}function F_r(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var s={value:o},l={value:function(){--i===0&&a()}};n.each(function(){var c=Tv(this,r),u=c.on;u!==e&&(t=(e=u).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(l)),c.on=t}),i===0&&a()})}var B_r=0;function d0(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Glt(){return++B_r}var l1=I8.prototype;d0.prototype={constructor:d0,select:b_r,selectAll:__r,selectChild:l1.selectChild,selectChildren:l1.selectChildren,filter:f_r,merge:p_r,selection:E_r,transition:$_r,call:l1.call,nodes:l1.nodes,node:l1.node,size:l1.size,empty:l1.empty,each:l1.each,on:g_r,attr:Xbr,attrTween:t_r,style:I_r,styleTween:N_r,text:P_r,textTween:D_r,remove:y_r,tween:Hbr,delay:i_r,duration:s_r,ease:c_r,easeVarying:d_r,end:F_r,[Symbol.iterator]:l1[Symbol.iterator]};function j_r(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var z_r={time:null,delay:0,duration:250,ease:j_r};function U_r(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function H_r(e){var t,n;e instanceof d0?(t=e._id,e=e._name):(t=Glt(),(n=z_r).time=Zge(),e=e==null?null:e+"");for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,l,c=0;c<s;++c)(l=o[c])&&PH(l,e,t,c,o,n||U_r(l,t));return new d0(r,this._parents,e,t)}I8.prototype.interrupt=jbr;I8.prototype.transition=H_r;const m9=e=>()=>e;function V_r(e,{sourceEvent:t,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function B1(e,t,n){this.k=e,this.x=t,this.y=n}B1.prototype={constructor:B1,scale:function(e){return e===1?this:new B1(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new B1(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var X1=new B1(1,0,0);G_r.prototype=B1.prototype;function G_r(e){for(;!e.__zoom;)if(!(e=e.parentNode))return X1;return e.__zoom}function Ste(e){e.stopImmediatePropagation()}function ZI(e){e.preventDefault(),e.stopImmediatePropagation()}function q_r(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function W_r(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function nke(){return this.__zoom||X1}function Y_r(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function K_r(){return navigator.maxTouchPoints||"ontouchstart"in this}function X_r(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],a=e.invertY(t[0][1])-n[0][1],o=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o))}function Z_r(){var e=q_r,t=W_r,n=X_r,r=Y_r,i=K_r,a=[0,1/0],o=[[-1/0,-1/0],[1/0,1/0]],s=250,l=Lbr,c=NH("start","zoom","end"),u,d,f,p=500,h=150,m=0,g=10;function v(L){L.property("__zoom",nke).on("wheel.zoom",T,{passive:!1}).on("mousedown.zoom",A).on("dblclick.zoom",I).filter(i).on("touchstart.zoom",R).on("touchmove.zoom",N).on("touchend.zoom touchcancel.zoom",P).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}v.transform=function(L,$,D,z){var U=L.selection?L.selection():L;U.property("__zoom",nke),L!==U?C(L,$,D,z):U.interrupt().each(function(){w(this,arguments).event(z).start().zoom(null,typeof $=="function"?$.apply(this,arguments):$).end()})},v.scaleBy=function(L,$,D,z){v.scaleTo(L,function(){var U=this.__zoom.k,H=typeof $=="function"?$.apply(this,arguments):$;return U*H},D,z)},v.scaleTo=function(L,$,D,z){v.transform(L,function(){var U=t.apply(this,arguments),H=this.__zoom,M=D==null?S(U):typeof D=="function"?D.apply(this,arguments):D,B=H.invert(M),k=typeof $=="function"?$.apply(this,arguments):$;return n(_(y(H,k),M,B),U,o)},D,z)},v.translateBy=function(L,$,D,z){v.transform(L,function(){return n(this.__zoom.translate(typeof $=="function"?$.apply(this,arguments):$,typeof D=="function"?D.apply(this,arguments):D),t.apply(this,arguments),o)},null,z)},v.translateTo=function(L,$,D,z,U){v.transform(L,function(){var H=t.apply(this,arguments),M=this.__zoom,B=z==null?S(H):typeof z=="function"?z.apply(this,arguments):z;return n(X1.translate(B[0],B[1]).scale(M.k).translate(typeof $=="function"?-$.apply(this,arguments):-$,typeof D=="function"?-D.apply(this,arguments):-D),H,o)},z,U)};function y(L,$){return $=Math.max(a[0],Math.min(a[1],$)),$===L.k?L:new B1($,L.x,L.y)}function _(L,$,D){var z=$[0]-D[0]*L.k,U=$[1]-D[1]*L.k;return z===L.x&&U===L.y?L:new B1(L.k,z,U)}function S(L){return[(+L[0][0]+ +L[1][0])/2,(+L[0][1]+ +L[1][1])/2]}function C(L,$,D,z){L.on("start.zoom",function(){w(this,arguments).event(z).start()}).on("interrupt.zoom end.zoom",function(){w(this,arguments).event(z).end()}).tween("zoom",function(){var U=this,H=arguments,M=w(U,H).event(z),B=t.apply(U,H),k=D==null?S(B):typeof D=="function"?D.apply(U,H):D,F=Math.max(B[1][0]-B[0][0],B[1][1]-B[0][1]),G=U.__zoom,q=typeof $=="function"?$.apply(U,H):$,W=l(G.invert(k).concat(F/G.k),q.invert(k).concat(F/q.k));return function(K){if(K===1)K=q;else{var J=W(K),te=F/J[2];K=new B1(te,k[0]-J[0]*te,k[1]-J[1]*te)}M.zoom(null,K)}})}function w(L,$,D){return!D&&L.__zooming||new x(L,$)}function x(L,$){this.that=L,this.args=$,this.active=0,this.sourceEvent=null,this.extent=t.apply(L,$),this.taps=0}x.prototype={event:function(L){return L&&(this.sourceEvent=L),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(L,$){return this.mouse&&L!=="mouse"&&(this.mouse[1]=$.invert(this.mouse[0])),this.touch0&&L!=="touch"&&(this.touch0[1]=$.invert(this.touch0[0])),this.touch1&&L!=="touch"&&(this.touch1[1]=$.invert(this.touch1[0])),this.that.__zoom=$,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(L){var $=Gh(this.that).datum();c.call(L,this.that,new V_r(L,{sourceEvent:this.sourceEvent,target:v,type:L,transform:this.that.__zoom,dispatch:c}),$)}};function T(L,...$){if(!e.apply(this,arguments))return;var D=w(this,$).event(L),z=this.__zoom,U=Math.max(a[0],Math.min(a[1],z.k*Math.pow(2,r.apply(this,arguments)))),H=Eg(L);if(D.wheel)(D.mouse[0][0]!==H[0]||D.mouse[0][1]!==H[1])&&(D.mouse[1]=z.invert(D.mouse[0]=H)),clearTimeout(D.wheel);else{if(z.k===U)return;D.mouse=[H,z.invert(H)],lD(this),D.start()}ZI(L),D.wheel=setTimeout(M,h),D.zoom("mouse",n(_(y(z,U),D.mouse[0],D.mouse[1]),D.extent,o));function M(){D.wheel=null,D.end()}}function A(L,...$){if(f||!e.apply(this,arguments))return;var D=L.currentTarget,z=w(this,$,!0).event(L),U=Gh(L.view).on("mousemove.zoom",k,!0).on("mouseup.zoom",F,!0),H=Eg(L,D),M=L.clientX,B=L.clientY;Olt(L.view),Ste(L),z.mouse=[H,this.__zoom.invert(H)],lD(this),z.start();function k(G){if(ZI(G),!z.moved){var q=G.clientX-M,W=G.clientY-B;z.moved=q*q+W*W>m}z.event(G).zoom("mouse",n(_(z.that.__zoom,z.mouse[0]=Eg(G,D),z.mouse[1]),z.extent,o))}function F(G){U.on("mousemove.zoom mouseup.zoom",null),Llt(G.view,z.moved),ZI(G),z.event(G).end()}}function I(L,...$){if(e.apply(this,arguments)){var D=this.__zoom,z=Eg(L.changedTouches?L.changedTouches[0]:L,this),U=D.invert(z),H=D.k*(L.shiftKey?.5:2),M=n(_(y(D,H),z,U),t.apply(this,$),o);ZI(L),s>0?Gh(this).transition().duration(s).call(C,M,z,L):Gh(this).call(v.transform,M,z,L)}}function R(L,...$){if(e.apply(this,arguments)){var D=L.touches,z=D.length,U=w(this,$,L.changedTouches.length===z).event(L),H,M,B,k;for(Ste(L),M=0;M<z;++M)B=D[M],k=Eg(B,this),k=[k,this.__zoom.invert(k),B.identifier],U.touch0?!U.touch1&&U.touch0[2]!==k[2]&&(U.touch1=k,U.taps=0):(U.touch0=k,H=!0,U.taps=1+!!u);u&&(u=clearTimeout(u)),H&&(U.taps<2&&(d=k[0],u=setTimeout(function(){u=null},p)),lD(this),U.start())}}function N(L,...$){if(this.__zooming){var D=w(this,$).event(L),z=L.changedTouches,U=z.length,H,M,B,k;for(ZI(L),H=0;H<U;++H)M=z[H],B=Eg(M,this),D.touch0&&D.touch0[2]===M.identifier?D.touch0[0]=B:D.touch1&&D.touch1[2]===M.identifier&&(D.touch1[0]=B);if(M=D.that.__zoom,D.touch1){var F=D.touch0[0],G=D.touch0[1],q=D.touch1[0],W=D.touch1[1],K=(K=q[0]-F[0])*K+(K=q[1]-F[1])*K,J=(J=W[0]-G[0])*J+(J=W[1]-G[1])*J;M=y(M,Math.sqrt(K/J)),B=[(F[0]+q[0])/2,(F[1]+q[1])/2],k=[(G[0]+W[0])/2,(G[1]+W[1])/2]}else if(D.touch0)B=D.touch0[0],k=D.touch0[1];else return;D.zoom("touch",n(_(M,B,k),D.extent,o))}}function P(L,...$){if(this.__zooming){var D=w(this,$).event(L),z=L.changedTouches,U=z.length,H,M;for(Ste(L),f&&clearTimeout(f),f=setTimeout(function(){f=null},p),H=0;H<U;++H)M=z[H],D.touch0&&D.touch0[2]===M.identifier?delete D.touch0:D.touch1&&D.touch1[2]===M.identifier&&delete D.touch1;if(D.touch1&&!D.touch0&&(D.touch0=D.touch1,delete D.touch1),D.touch0)D.touch0[1]=this.__zoom.invert(D.touch0[0]);else if(D.end(),D.taps===2&&(M=Eg(M,this),Math.hypot(d[0]-M[0],d[1]-M[1])<g)){var B=Gh(this).on("dblclick.zoom");B&&B.apply(this,arguments)}}}return v.wheelDelta=function(L){return arguments.length?(r=typeof L=="function"?L:m9(+L),v):r},v.filter=function(L){return arguments.length?(e=typeof L=="function"?L:m9(!!L),v):e},v.touchable=function(L){return arguments.length?(i=typeof L=="function"?L:m9(!!L),v):i},v.extent=function(L){return arguments.length?(t=typeof L=="function"?L:m9([[+L[0][0],+L[0][1]],[+L[1][0],+L[1][1]]]),v):t},v.scaleExtent=function(L){return arguments.length?(a[0]=+L[0],a[1]=+L[1],v):[a[0],a[1]]},v.translateExtent=function(L){return arguments.length?(o[0][0]=+L[0][0],o[1][0]=+L[1][0],o[0][1]=+L[0][1],o[1][1]=+L[1][1],v):[[o[0][0],o[0][1]],[o[1][0],o[1][1]]]},v.constrain=function(L){return arguments.length?(n=L,v):n},v.duration=function(L){return arguments.length?(s=+L,v):s},v.interpolate=function(L){return arguments.length?(l=L,v):l},v.on=function(){var L=c.on.apply(c,arguments);return L===c?v:L},v.clickDistance=function(L){return arguments.length?(m=(L=+L)*L,v):Math.sqrt(m)},v.tapDistance=function(L){return arguments.length?(g=+L,v):g},v}const kH=b.createContext(null),Q_r=kH.Provider,f0={error001:()=>"[React Flow]: Seems like you have not used zustand provider as an ancestor. Help: https://reactflow.dev/error#001",error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:e=>`Node type "${e}" not found. Using fallback type "default".`,error004:()=>"The React Flow parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:e=>`The old edge with id=${e} does not exist.`,error009:e=>`Marker type "${e}" doesn't exist.`,error008:(e,t)=>`Couldn't create edge for ${e?"target":"source"} handle id: "${e?t.targetHandle:t.sourceHandle}", edge id: ${t.id}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:e=>`Edge type "${e}" not found. Using fallback type "default".`,error012:e=>`Node with id "${e}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`},qlt=f0.error001();function el(e,t){const n=b.useContext(kH);if(n===null)throw new Error(qlt);return ylt(n,e,t)}const Ac=()=>{const e=b.useContext(kH);if(e===null)throw new Error(qlt);return b.useMemo(()=>({getState:e.getState,setState:e.setState,subscribe:e.subscribe,destroy:e.destroy}),[e])},J_r=e=>e.userSelectionActive?"none":"all";function e2r({position:e,children:t,className:n,style:r,...i}){const a=el(J_r),o=`${e}`.split("-");return se.createElement("div",{className:Kp(["react-flow__panel",n,...o]),style:{...r,pointerEvents:a},...i},t)}function t2r({proOptions:e,position:t="bottom-right"}){return e?.hideAttribution?null:se.createElement(e2r,{position:t,className:"react-flow__attribution","data-message":"Please only hide this attribution when you are subscribed to React Flow Pro: https://reactflow.dev/pro"},se.createElement("a",{href:"https://reactflow.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution"},"React Flow"))}const n2r=({x:e,y:t,label:n,labelStyle:r={},labelShowBg:i=!0,labelBgStyle:a={},labelBgPadding:o=[2,4],labelBgBorderRadius:s=2,children:l,className:c,...u})=>{const d=b.useRef(null),[f,p]=b.useState({x:0,y:0,width:0,height:0}),h=Kp(["react-flow__edge-textwrapper",c]);return b.useEffect(()=>{if(d.current){const m=d.current.getBBox();p({x:m.x,y:m.y,width:m.width,height:m.height})}},[n]),typeof n>"u"||!n?null:se.createElement("g",{transform:`translate(${e-f.width/2} ${t-f.height/2})`,className:h,visibility:f.width?"visible":"hidden",...u},i&&se.createElement("rect",{width:f.width+2*o[0],x:-o[0],y:-o[1],height:f.height+2*o[1],className:"react-flow__edge-textbg",style:a,rx:s,ry:s}),se.createElement("text",{className:"react-flow__edge-text",y:f.height/2,dy:"0.3em",ref:d,style:r},n),l)};var r2r=b.memo(n2r);const eve=e=>({width:e.offsetWidth,height:e.offsetHeight}),G3=(e,t=0,n=1)=>Math.min(Math.max(e,t),n),tve=(e={x:0,y:0},t)=>({x:G3(e.x,t[0][0],t[1][0]),y:G3(e.y,t[0][1],t[1][1])}),rke=(e,t,n)=>e<t?G3(Math.abs(e-t),1,50)/50:e>n?-G3(Math.abs(e-n),1,50)/50:0,Wlt=(e,t)=>{const n=rke(e.x,35,t.width-35)*20,r=rke(e.y,35,t.height-35)*20;return[n,r]},Ylt=e=>e.getRootNode?.()||window?.document,i2r=(e,t)=>({x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x2,t.x2),y2:Math.max(e.y2,t.y2)}),nve=({x:e,y:t,width:n,height:r})=>({x:e,y:t,x2:e+n,y2:t+r}),a2r=({x:e,y:t,x2:n,y2:r})=>({x:e,y:t,width:n-e,height:r-t}),ike=e=>({...e.positionAbsolute||{x:0,y:0},width:e.width||0,height:e.height||0}),yle=(e,t)=>{const n=Math.max(0,Math.min(e.x+e.width,t.x+t.width)-Math.max(e.x,t.x)),r=Math.max(0,Math.min(e.y+e.height,t.y+t.height)-Math.max(e.y,t.y));return Math.ceil(n*r)},o2r=e=>wp(e.width)&&wp(e.height)&&wp(e.x)&&wp(e.y),wp=e=>!isNaN(e)&&isFinite(e),Ls=Symbol.for("internals"),Klt=["Enter"," ","Escape"],s2r=(e,t)=>{},l2r=e=>"nativeEvent"in e;function ble(e){const n=(l2r(e)?e.nativeEvent:e).composedPath?.()?.[0]||e.target;return["INPUT","SELECT","TEXTAREA"].includes(n?.nodeName)||n?.hasAttribute("contenteditable")||!!n?.closest(".nokey")}const Xlt=e=>"clientX"in e,Vb=(e,t)=>{const n=Xlt(e),r=n?e.clientX:e.touches?.[0].clientX,i=n?e.clientY:e.touches?.[0].clientY;return{x:r-(t?.left??0),y:i-(t?.top??0)}},AB=()=>typeof navigator<"u"&&navigator?.userAgent?.indexOf("Mac")>=0,R8=({id:e,path:t,labelX:n,labelY:r,label:i,labelStyle:a,labelShowBg:o,labelBgStyle:s,labelBgPadding:l,labelBgBorderRadius:c,style:u,markerEnd:d,markerStart:f,interactionWidth:p=20})=>se.createElement(se.Fragment,null,se.createElement("path",{id:e,style:u,d:t,fill:"none",className:"react-flow__edge-path",markerEnd:d,markerStart:f}),p&&se.createElement("path",{d:t,fill:"none",strokeOpacity:0,strokeWidth:p,className:"react-flow__edge-interaction"}),i&&wp(n)&&wp(r)?se.createElement(r2r,{x:n,y:r,label:i,labelStyle:a,labelShowBg:o,labelBgStyle:s,labelBgPadding:l,labelBgBorderRadius:c}):null);R8.displayName="BaseEdge";function QI(e,t,n){return n===void 0?n:r=>{const i=t().edges.find(a=>a.id===e);i&&n(r,{...i})}}function Zlt({sourceX:e,sourceY:t,targetX:n,targetY:r}){const i=Math.abs(n-e)/2,a=n<e?n+i:n-i,o=Math.abs(r-t)/2,s=r<t?r+o:r-o;return[a,s,i,o]}function Qlt({sourceX:e,sourceY:t,targetX:n,targetY:r,sourceControlX:i,sourceControlY:a,targetControlX:o,targetControlY:s}){const l=e*.125+i*.375+o*.375+n*.125,c=t*.125+a*.375+s*.375+r*.125,u=Math.abs(l-e),d=Math.abs(c-t);return[l,c,u,d]}var cC;(function(e){e.Strict="strict",e.Loose="loose"})(cC||(cC={}));var KS;(function(e){e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal"})(KS||(KS={}));var M6;(function(e){e.Partial="partial",e.Full="full"})(M6||(M6={}));var ab;(function(e){e.Bezier="default",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e.SimpleBezier="simplebezier"})(ab||(ab={}));var RB;(function(e){e.Arrow="arrow",e.ArrowClosed="arrowclosed"})(RB||(RB={}));var xr;(function(e){e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom"})(xr||(xr={}));function ake({pos:e,x1:t,y1:n,x2:r,y2:i}){return e===xr.Left||e===xr.Right?[.5*(t+r),n]:[t,.5*(n+i)]}function Jlt({sourceX:e,sourceY:t,sourcePosition:n=xr.Bottom,targetX:r,targetY:i,targetPosition:a=xr.Top}){const[o,s]=ake({pos:n,x1:e,y1:t,x2:r,y2:i}),[l,c]=ake({pos:a,x1:r,y1:i,x2:e,y2:t}),[u,d,f,p]=Qlt({sourceX:e,sourceY:t,targetX:r,targetY:i,sourceControlX:o,sourceControlY:s,targetControlX:l,targetControlY:c});return[`M${e},${t} C${o},${s} ${l},${c} ${r},${i}`,u,d,f,p]}const rve=b.memo(({sourceX:e,sourceY:t,targetX:n,targetY:r,sourcePosition:i=xr.Bottom,targetPosition:a=xr.Top,label:o,labelStyle:s,labelShowBg:l,labelBgStyle:c,labelBgPadding:u,labelBgBorderRadius:d,style:f,markerEnd:p,markerStart:h,interactionWidth:m})=>{const[g,v,y]=Jlt({sourceX:e,sourceY:t,sourcePosition:i,targetX:n,targetY:r,targetPosition:a});return se.createElement(R8,{path:g,labelX:v,labelY:y,label:o,labelStyle:s,labelShowBg:l,labelBgStyle:c,labelBgPadding:u,labelBgBorderRadius:d,style:f,markerEnd:p,markerStart:h,interactionWidth:m})});rve.displayName="SimpleBezierEdge";const oke={[xr.Left]:{x:-1,y:0},[xr.Right]:{x:1,y:0},[xr.Top]:{x:0,y:-1},[xr.Bottom]:{x:0,y:1}},c2r=({source:e,sourcePosition:t=xr.Bottom,target:n})=>t===xr.Left||t===xr.Right?e.x<n.x?{x:1,y:0}:{x:-1,y:0}:e.y<n.y?{x:0,y:1}:{x:0,y:-1},ske=(e,t)=>Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2));function u2r({source:e,sourcePosition:t=xr.Bottom,target:n,targetPosition:r=xr.Top,center:i,offset:a}){const o=oke[t],s=oke[r],l={x:e.x+o.x*a,y:e.y+o.y*a},c={x:n.x+s.x*a,y:n.y+s.y*a},u=c2r({source:l,sourcePosition:t,target:c}),d=u.x!==0?"x":"y",f=u[d];let p=[],h,m;const g={x:0,y:0},v={x:0,y:0},[y,_,S,C]=Zlt({sourceX:e.x,sourceY:e.y,targetX:n.x,targetY:n.y});if(o[d]*s[d]===-1){h=i.x??y,m=i.y??_;const x=[{x:h,y:l.y},{x:h,y:c.y}],T=[{x:l.x,y:m},{x:c.x,y:m}];o[d]===f?p=d==="x"?x:T:p=d==="x"?T:x}else{const x=[{x:l.x,y:c.y}],T=[{x:c.x,y:l.y}];if(d==="x"?p=o.x===f?T:x:p=o.y===f?x:T,t===r){const P=Math.abs(e[d]-n[d]);if(P<=a){const L=Math.min(a-1,a-P);o[d]===f?g[d]=(l[d]>e[d]?-1:1)*L:v[d]=(c[d]>n[d]?-1:1)*L}}if(t!==r){const P=d==="x"?"y":"x",L=o[d]===s[P],$=l[P]>c[P],D=l[P]<c[P];(o[d]===1&&(!L&&$||L&&D)||o[d]!==1&&(!L&&D||L&&$))&&(p=d==="x"?x:T)}const A={x:l.x+g.x,y:l.y+g.y},I={x:c.x+v.x,y:c.y+v.y},R=Math.max(Math.abs(A.x-p[0].x),Math.abs(I.x-p[0].x)),N=Math.max(Math.abs(A.y-p[0].y),Math.abs(I.y-p[0].y));R>=N?(h=(A.x+I.x)/2,m=p[0].y):(h=p[0].x,m=(A.y+I.y)/2)}return[[e,{x:l.x+g.x,y:l.y+g.y},...p,{x:c.x+v.x,y:c.y+v.y},n],h,m,S,C]}function d2r(e,t,n,r){const i=Math.min(ske(e,t)/2,ske(t,n)/2,r),{x:a,y:o}=t;if(e.x===a&&a===n.x||e.y===o&&o===n.y)return`L${a} ${o}`;if(e.y===o){const c=e.x<n.x?-1:1,u=e.y<n.y?1:-1;return`L ${a+i*c},${o}Q ${a},${o} ${a},${o+i*u}`}const s=e.x<n.x?1:-1,l=e.y<n.y?-1:1;return`L ${a},${o+i*l}Q ${a},${o} ${a+i*s},${o}`}function _le({sourceX:e,sourceY:t,sourcePosition:n=xr.Bottom,targetX:r,targetY:i,targetPosition:a=xr.Top,borderRadius:o=5,centerX:s,centerY:l,offset:c=20}){const[u,d,f,p,h]=u2r({source:{x:e,y:t},sourcePosition:n,target:{x:r,y:i},targetPosition:a,center:{x:s,y:l},offset:c});return[u.reduce((g,v,y)=>{let _="";return y>0&&y<u.length-1?_=d2r(u[y-1],v,u[y+1],o):_=`${y===0?"M":"L"}${v.x} ${v.y}`,g+=_,g},""),d,f,p,h]}const MH=b.memo(({sourceX:e,sourceY:t,targetX:n,targetY:r,label:i,labelStyle:a,labelShowBg:o,labelBgStyle:s,labelBgPadding:l,labelBgBorderRadius:c,style:u,sourcePosition:d=xr.Bottom,targetPosition:f=xr.Top,markerEnd:p,markerStart:h,pathOptions:m,interactionWidth:g})=>{const[v,y,_]=_le({sourceX:e,sourceY:t,sourcePosition:d,targetX:n,targetY:r,targetPosition:f,borderRadius:m?.borderRadius,offset:m?.offset});return se.createElement(R8,{path:v,labelX:y,labelY:_,label:i,labelStyle:a,labelShowBg:o,labelBgStyle:s,labelBgPadding:l,labelBgBorderRadius:c,style:u,markerEnd:p,markerStart:h,interactionWidth:g})});MH.displayName="SmoothStepEdge";const ive=b.memo(e=>se.createElement(MH,{...e,pathOptions:b.useMemo(()=>({borderRadius:0,offset:e.pathOptions?.offset}),[e.pathOptions?.offset])}));ive.displayName="StepEdge";function f2r({sourceX:e,sourceY:t,targetX:n,targetY:r}){const[i,a,o,s]=Zlt({sourceX:e,sourceY:t,targetX:n,targetY:r});return[`M ${e},${t}L ${n},${r}`,i,a,o,s]}const ave=b.memo(({sourceX:e,sourceY:t,targetX:n,targetY:r,label:i,labelStyle:a,labelShowBg:o,labelBgStyle:s,labelBgPadding:l,labelBgBorderRadius:c,style:u,markerEnd:d,markerStart:f,interactionWidth:p})=>{const[h,m,g]=f2r({sourceX:e,sourceY:t,targetX:n,targetY:r});return se.createElement(R8,{path:h,labelX:m,labelY:g,label:i,labelStyle:a,labelShowBg:o,labelBgStyle:s,labelBgPadding:l,labelBgBorderRadius:c,style:u,markerEnd:d,markerStart:f,interactionWidth:p})});ave.displayName="StraightEdge";function g9(e,t){return e>=0?.5*e:t*25*Math.sqrt(-e)}function lke({pos:e,x1:t,y1:n,x2:r,y2:i,c:a}){switch(e){case xr.Left:return[t-g9(t-r,a),n];case xr.Right:return[t+g9(r-t,a),n];case xr.Top:return[t,n-g9(n-i,a)];case xr.Bottom:return[t,n+g9(i-n,a)]}}function ect({sourceX:e,sourceY:t,sourcePosition:n=xr.Bottom,targetX:r,targetY:i,targetPosition:a=xr.Top,curvature:o=.25}){const[s,l]=lke({pos:n,x1:e,y1:t,x2:r,y2:i,c:o}),[c,u]=lke({pos:a,x1:r,y1:i,x2:e,y2:t,c:o}),[d,f,p,h]=Qlt({sourceX:e,sourceY:t,targetX:r,targetY:i,sourceControlX:s,sourceControlY:l,targetControlX:c,targetControlY:u});return[`M${e},${t} C${s},${l} ${c},${u} ${r},${i}`,d,f,p,h]}const NB=b.memo(({sourceX:e,sourceY:t,targetX:n,targetY:r,sourcePosition:i=xr.Bottom,targetPosition:a=xr.Top,label:o,labelStyle:s,labelShowBg:l,labelBgStyle:c,labelBgPadding:u,labelBgBorderRadius:d,style:f,markerEnd:p,markerStart:h,pathOptions:m,interactionWidth:g})=>{const[v,y,_]=ect({sourceX:e,sourceY:t,sourcePosition:i,targetX:n,targetY:r,targetPosition:a,curvature:m?.curvature});return se.createElement(R8,{path:v,labelX:y,labelY:_,label:o,labelStyle:s,labelShowBg:l,labelBgStyle:c,labelBgPadding:u,labelBgBorderRadius:d,style:f,markerEnd:p,markerStart:h,interactionWidth:g})});NB.displayName="BezierEdge";const ove=b.createContext(null),p2r=ove.Provider;ove.Consumer;const h2r=()=>b.useContext(ove),m2r=e=>"id"in e&&"source"in e&&"target"in e,g2r=({source:e,sourceHandle:t,target:n,targetHandle:r})=>`reactflow__edge-${e}${t||""}-${n}${r||""}`,Sle=(e,t)=>typeof e>"u"?"":typeof e=="string"?e:`${t?`${t}__`:""}${Object.keys(e).sort().map(r=>`${r}=${e[r]}`).join("&")}`,v2r=(e,t)=>t.some(n=>n.source===e.source&&n.target===e.target&&(n.sourceHandle===e.sourceHandle||!n.sourceHandle&&!e.sourceHandle)&&(n.targetHandle===e.targetHandle||!n.targetHandle&&!e.targetHandle)),y2r=(e,t)=>{if(!e.source||!e.target)return t;let n;return m2r(e)?n={...e}:n={...e,id:g2r(e)},v2r(n,t)?t:t.concat(n)},Ele=({x:e,y:t},[n,r,i],a,[o,s])=>{const l={x:(e-n)/i,y:(t-r)/i};return a?{x:o*Math.round(l.x/o),y:s*Math.round(l.y/s)}:l},tct=({x:e,y:t},[n,r,i])=>({x:e*i+n,y:t*i+r}),Z5=(e,t=[0,0])=>{if(!e)return{x:0,y:0,positionAbsolute:{x:0,y:0}};const n=(e.width??0)*t[0],r=(e.height??0)*t[1],i={x:e.position.x-n,y:e.position.y-r};return{...i,positionAbsolute:e.positionAbsolute?{x:e.positionAbsolute.x-n,y:e.positionAbsolute.y-r}:i}},sve=(e,t=[0,0])=>{if(e.length===0)return{x:0,y:0,width:0,height:0};const n=e.reduce((r,i)=>{const{x:a,y:o}=Z5(i,t).positionAbsolute;return i2r(r,nve({x:a,y:o,width:i.width||0,height:i.height||0}))},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return a2r(n)},nct=(e,t,[n,r,i]=[0,0,1],a=!1,o=!1,s=[0,0])=>{const l={x:(t.x-n)/i,y:(t.y-r)/i,width:t.width/i,height:t.height/i},c=[];return e.forEach(u=>{const{width:d,height:f,selectable:p=!0,hidden:h=!1}=u;if(o&&!p||h)return!1;const{positionAbsolute:m}=Z5(u,s),g={x:m.x,y:m.y,width:d||0,height:f||0},v=yle(l,g),y=typeof d>"u"||typeof f>"u"||d===null||f===null,_=a&&v>0,S=(d||0)*(f||0);(y||_||v>=S||u.dragging)&&c.push(u)}),c},rct=(e,t)=>{const n=e.map(r=>r.id);return t.filter(r=>n.includes(r.source)||n.includes(r.target))},ict=(e,t,n,r,i,a=.1)=>{const o=t/(e.width*(1+a)),s=n/(e.height*(1+a)),l=Math.min(o,s),c=G3(l,r,i),u=e.x+e.width/2,d=e.y+e.height/2,f=t/2-u*c,p=n/2-d*c;return{x:f,y:p,zoom:c}},_S=(e,t=0)=>e.transition().duration(t);function cke(e,t,n,r){return(t[n]||[]).reduce((i,a)=>(`${e.id}-${a.id}-${n}`!==r&&i.push({id:a.id||null,type:n,nodeId:e.id,x:(e.positionAbsolute?.x??0)+a.x+a.width/2,y:(e.positionAbsolute?.y??0)+a.y+a.height/2}),i),[])}function b2r(e,t,n,r,i,a){const{x:o,y:s}=Vb(e),c=t.elementsFromPoint(o,s).find(h=>h.classList.contains("react-flow__handle"));if(c){const h=c.getAttribute("data-nodeid");if(h){const m=lve(void 0,c),g=c.getAttribute("data-handleid"),v=a({nodeId:h,id:g,type:m});if(v){const y=i.find(_=>_.nodeId===h&&_.type===m&&_.id===g);return{handle:{id:g,type:m,nodeId:h,x:y?.x||n.x,y:y?.y||n.y},validHandleResult:v}}}}let u=[],d=1/0;if(i.forEach(h=>{const m=Math.sqrt((h.x-n.x)**2+(h.y-n.y)**2);if(m<=r){const g=a(h);m<=d&&(m<d?u=[{handle:h,validHandleResult:g}]:m===d&&u.push({handle:h,validHandleResult:g}),d=m)}}),!u.length)return{handle:null,validHandleResult:act()};if(u.length===1)return u[0];const f=u.some(({validHandleResult:h})=>h.isValid),p=u.some(({handle:h})=>h.type==="target");return u.find(({handle:h,validHandleResult:m})=>p?h.type==="target":f?m.isValid:!0)||u[0]}const _2r={source:null,target:null,sourceHandle:null,targetHandle:null},act=()=>({handleDomNode:null,isValid:!1,connection:_2r,endHandle:null});function oct(e,t,n,r,i,a,o){const s=i==="target",l=o.querySelector(`.react-flow__handle[data-id="${e?.nodeId}-${e?.id}-${e?.type}"]`),c={...act(),handleDomNode:l};if(l){const u=lve(void 0,l),d=l.getAttribute("data-nodeid"),f=l.getAttribute("data-handleid"),p=l.classList.contains("connectable"),h=l.classList.contains("connectableend"),m={source:s?d:n,sourceHandle:s?f:r,target:s?n:d,targetHandle:s?r:f};c.connection=m,p&&h&&(t===cC.Strict?s&&u==="source"||!s&&u==="target":d!==n||f!==r)&&(c.endHandle={nodeId:d,handleId:f,type:u},c.isValid=a(m))}return c}function S2r({nodes:e,nodeId:t,handleId:n,handleType:r}){return e.reduce((i,a)=>{if(a[Ls]){const{handleBounds:o}=a[Ls];let s=[],l=[];o&&(s=cke(a,o,"source",`${t}-${n}-${r}`),l=cke(a,o,"target",`${t}-${n}-${r}`)),i.push(...s,...l)}return i},[])}function lve(e,t){return e||(t?.classList.contains("target")?"target":t?.classList.contains("source")?"source":null)}function Ete(e){e?.classList.remove("valid","connecting","react-flow__handle-valid","react-flow__handle-connecting")}function E2r(e,t){let n=null;return t?n="valid":e&&!t&&(n="invalid"),n}function sct({event:e,handleId:t,nodeId:n,onConnect:r,isTarget:i,getState:a,setState:o,isValidConnection:s,edgeUpdaterType:l,onReconnectEnd:c}){const u=Ylt(e.target),{connectionMode:d,domNode:f,autoPanOnConnect:p,connectionRadius:h,onConnectStart:m,panBy:g,getNodes:v,cancelConnection:y}=a();let _=0,S;const{x:C,y:w}=Vb(e),x=u?.elementFromPoint(C,w),T=lve(l,x),A=f?.getBoundingClientRect();if(!A||!T)return;let I,R=Vb(e,A),N=!1,P=null,L=!1,$=null;const D=S2r({nodes:v(),nodeId:n,handleId:t,handleType:T}),z=()=>{if(!p)return;const[M,B]=Wlt(R,A);g({x:M,y:B}),_=requestAnimationFrame(z)};o({connectionPosition:R,connectionStatus:null,connectionNodeId:n,connectionHandleId:t,connectionHandleType:T,connectionStartHandle:{nodeId:n,handleId:t,type:T},connectionEndHandle:null}),m?.(e,{nodeId:n,handleId:t,handleType:T});function U(M){const{transform:B}=a();R=Vb(M,A);const{handle:k,validHandleResult:F}=b2r(M,u,Ele(R,B,!1,[1,1]),h,D,G=>oct(G,d,n,t,i?"target":"source",s,u));if(S=k,N||(z(),N=!0),$=F.handleDomNode,P=F.connection,L=F.isValid,o({connectionPosition:S&&L?tct({x:S.x,y:S.y},B):R,connectionStatus:E2r(!!S,L),connectionEndHandle:F.endHandle}),!S&&!L&&!$)return Ete(I);P.source!==P.target&&$&&(Ete(I),I=$,$.classList.add("connecting","react-flow__handle-connecting"),$.classList.toggle("valid",L),$.classList.toggle("react-flow__handle-valid",L))}function H(M){(S||$)&&P&&L&&r?.(P),a().onConnectEnd?.(M),l&&c?.(M),Ete(I),y(),cancelAnimationFrame(_),N=!1,L=!1,P=null,$=null,u.removeEventListener("mousemove",U),u.removeEventListener("mouseup",H),u.removeEventListener("touchmove",U),u.removeEventListener("touchend",H)}u.addEventListener("mousemove",U),u.addEventListener("mouseup",H),u.addEventListener("touchmove",U),u.addEventListener("touchend",H)}const uke=()=>!0,C2r=e=>({connectionStartHandle:e.connectionStartHandle,connectOnClick:e.connectOnClick,noPanClassName:e.noPanClassName}),w2r=(e,t,n)=>r=>{const{connectionStartHandle:i,connectionEndHandle:a,connectionClickStartHandle:o}=r;return{connecting:i?.nodeId===e&&i?.handleId===t&&i?.type===n||a?.nodeId===e&&a?.handleId===t&&a?.type===n,clickConnecting:o?.nodeId===e&&o?.handleId===t&&o?.type===n}},lct=b.forwardRef(({type:e="source",position:t=xr.Top,isValidConnection:n,isConnectable:r=!0,isConnectableStart:i=!0,isConnectableEnd:a=!0,id:o,onConnect:s,children:l,className:c,onMouseDown:u,onTouchStart:d,...f},p)=>{const h=o||null,m=e==="target",g=Ac(),v=h2r(),{connectOnClick:y,noPanClassName:_}=el(C2r,kd),{connecting:S,clickConnecting:C}=el(w2r(v,h,e),kd);v||g.getState().onError?.("010",f0.error010());const w=A=>{const{defaultEdgeOptions:I,onConnect:R,hasDefaultEdges:N}=g.getState(),P={...I,...A};if(N){const{edges:L,setEdges:$}=g.getState();$(y2r(P,L))}R?.(P),s?.(P)},x=A=>{if(!v)return;const I=Xlt(A);i&&(I&&A.button===0||!I)&&sct({event:A,handleId:h,nodeId:v,onConnect:w,isTarget:m,getState:g.getState,setState:g.setState,isValidConnection:n||g.getState().isValidConnection||uke}),I?u?.(A):d?.(A)},T=A=>{const{onClickConnectStart:I,onClickConnectEnd:R,connectionClickStartHandle:N,connectionMode:P,isValidConnection:L}=g.getState();if(!v||!N&&!i)return;if(!N){I?.(A,{nodeId:v,handleId:h,handleType:e}),g.setState({connectionClickStartHandle:{nodeId:v,type:e,handleId:h}});return}const $=Ylt(A.target),D=n||L||uke,{connection:z,isValid:U}=oct({nodeId:v,id:h,type:e},P,N.nodeId,N.handleId||null,N.type,D,$);U&&w(z),R?.(A),g.setState({connectionClickStartHandle:null})};return se.createElement("div",{"data-handleid":h,"data-nodeid":v,"data-handlepos":t,"data-id":`${v}-${h}-${e}`,className:Kp(["react-flow__handle",`react-flow__handle-${t}`,"nodrag",_,c,{source:!m,target:m,connectable:r,connectablestart:i,connectableend:a,connecting:C,connectionindicator:r&&(i&&!S||a&&S)}]),onMouseDown:x,onTouchStart:x,onClick:y?T:void 0,ref:p,...f},l)});lct.displayName="Handle";var OB=b.memo(lct);const cct=({data:e,isConnectable:t,targetPosition:n=xr.Top,sourcePosition:r=xr.Bottom})=>se.createElement(se.Fragment,null,se.createElement(OB,{type:"target",position:n,isConnectable:t}),e?.label,se.createElement(OB,{type:"source",position:r,isConnectable:t}));cct.displayName="DefaultNode";var Cle=b.memo(cct);const uct=({data:e,isConnectable:t,sourcePosition:n=xr.Bottom})=>se.createElement(se.Fragment,null,e?.label,se.createElement(OB,{type:"source",position:n,isConnectable:t}));uct.displayName="InputNode";var dct=b.memo(uct);const fct=({data:e,isConnectable:t,targetPosition:n=xr.Top})=>se.createElement(se.Fragment,null,se.createElement(OB,{type:"target",position:n,isConnectable:t}),e?.label);fct.displayName="OutputNode";var pct=b.memo(fct);const cve=()=>null;cve.displayName="GroupNode";const x2r=e=>({selectedNodes:e.getNodes().filter(t=>t.selected),selectedEdges:e.edges.filter(t=>t.selected).map(t=>({...t}))}),v9=e=>e.id;function T2r(e,t){return kd(e.selectedNodes.map(v9),t.selectedNodes.map(v9))&&kd(e.selectedEdges.map(v9),t.selectedEdges.map(v9))}const hct=b.memo(({onSelectionChange:e})=>{const t=Ac(),{selectedNodes:n,selectedEdges:r}=el(x2r,T2r);return b.useEffect(()=>{const i={nodes:n,edges:r};e?.(i),t.getState().onSelectionChange.forEach(a=>a(i))},[n,r,e]),null});hct.displayName="SelectionListener";const I2r=e=>!!e.onSelectionChange;function A2r({onSelectionChange:e}){const t=el(I2r);return e||t?se.createElement(hct,{onSelectionChange:e}):null}const R2r=e=>({setNodes:e.setNodes,setEdges:e.setEdges,setDefaultNodesAndEdges:e.setDefaultNodesAndEdges,setMinZoom:e.setMinZoom,setMaxZoom:e.setMaxZoom,setTranslateExtent:e.setTranslateExtent,setNodeExtent:e.setNodeExtent,reset:e.reset});function rx(e,t){b.useEffect(()=>{typeof e<"u"&&t(e)},[e])}function Di(e,t,n){b.useEffect(()=>{typeof t<"u"&&n({[e]:t})},[t])}const N2r=({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,onConnect:i,onConnectStart:a,onConnectEnd:o,onClickConnectStart:s,onClickConnectEnd:l,nodesDraggable:c,nodesConnectable:u,nodesFocusable:d,edgesFocusable:f,edgesUpdatable:p,elevateNodesOnSelect:h,minZoom:m,maxZoom:g,nodeExtent:v,onNodesChange:y,onEdgesChange:_,elementsSelectable:S,connectionMode:C,snapGrid:w,snapToGrid:x,translateExtent:T,connectOnClick:A,defaultEdgeOptions:I,fitView:R,fitViewOptions:N,onNodesDelete:P,onEdgesDelete:L,onNodeDrag:$,onNodeDragStart:D,onNodeDragStop:z,onSelectionDrag:U,onSelectionDragStart:H,onSelectionDragStop:M,noPanClassName:B,nodeOrigin:k,rfId:F,autoPanOnConnect:G,autoPanOnNodeDrag:q,onError:W,connectionRadius:K,isValidConnection:J,nodeDragThreshold:te})=>{const{setNodes:ae,setEdges:re,setDefaultNodesAndEdges:ue,setMinZoom:de,setMaxZoom:fe,setTranslateExtent:ge,setNodeExtent:oe,reset:Ee}=el(R2r,kd),ce=Ac();return b.useEffect(()=>{const he=r?.map(ye=>({...ye,...I}));return ue(n,he),()=>{Ee()}},[]),Di("defaultEdgeOptions",I,ce.setState),Di("connectionMode",C,ce.setState),Di("onConnect",i,ce.setState),Di("onConnectStart",a,ce.setState),Di("onConnectEnd",o,ce.setState),Di("onClickConnectStart",s,ce.setState),Di("onClickConnectEnd",l,ce.setState),Di("nodesDraggable",c,ce.setState),Di("nodesConnectable",u,ce.setState),Di("nodesFocusable",d,ce.setState),Di("edgesFocusable",f,ce.setState),Di("edgesUpdatable",p,ce.setState),Di("elementsSelectable",S,ce.setState),Di("elevateNodesOnSelect",h,ce.setState),Di("snapToGrid",x,ce.setState),Di("snapGrid",w,ce.setState),Di("onNodesChange",y,ce.setState),Di("onEdgesChange",_,ce.setState),Di("connectOnClick",A,ce.setState),Di("fitViewOnInit",R,ce.setState),Di("fitViewOnInitOptions",N,ce.setState),Di("onNodesDelete",P,ce.setState),Di("onEdgesDelete",L,ce.setState),Di("onNodeDrag",$,ce.setState),Di("onNodeDragStart",D,ce.setState),Di("onNodeDragStop",z,ce.setState),Di("onSelectionDrag",U,ce.setState),Di("onSelectionDragStart",H,ce.setState),Di("onSelectionDragStop",M,ce.setState),Di("noPanClassName",B,ce.setState),Di("nodeOrigin",k,ce.setState),Di("rfId",F,ce.setState),Di("autoPanOnConnect",G,ce.setState),Di("autoPanOnNodeDrag",q,ce.setState),Di("onError",W,ce.setState),Di("connectionRadius",K,ce.setState),Di("isValidConnection",J,ce.setState),Di("nodeDragThreshold",te,ce.setState),rx(e,ae),rx(t,re),rx(m,de),rx(g,fe),rx(T,ge),rx(v,oe),null},dke={display:"none"},O2r={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},mct="react-flow__node-desc",gct="react-flow__edge-desc",L2r="react-flow__aria-live",P2r=e=>e.ariaLiveMessage;function k2r({rfId:e}){const t=el(P2r);return se.createElement("div",{id:`${L2r}-${e}`,"aria-live":"assertive","aria-atomic":"true",style:O2r},t)}function M2r({rfId:e,disableKeyboardA11y:t}){return se.createElement(se.Fragment,null,se.createElement("div",{id:`${mct}-${e}`,style:dke},"Press enter or space to select a node.",!t&&"You can then use the arrow keys to move the node around."," Press delete to remove it and escape to cancel."," "),se.createElement("div",{id:`${gct}-${e}`,style:dke},"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel."),!t&&se.createElement(k2r,{rfId:e}))}var D6=(e=null,t={actInsideInputWithModifier:!0})=>{const[n,r]=b.useState(!1),i=b.useRef(!1),a=b.useRef(new Set([])),[o,s]=b.useMemo(()=>{if(e!==null){const c=(Array.isArray(e)?e:[e]).filter(d=>typeof d=="string").map(d=>d.split("+")),u=c.reduce((d,f)=>d.concat(...f),[]);return[c,u]}return[[],[]]},[e]);return b.useEffect(()=>{const l=typeof document<"u"?document:null,c=t?.target||l;if(e!==null){const u=p=>{if(i.current=p.ctrlKey||p.metaKey||p.shiftKey,(!i.current||i.current&&!t.actInsideInputWithModifier)&&ble(p))return!1;const m=pke(p.code,s);a.current.add(p[m]),fke(o,a.current,!1)&&(p.preventDefault(),r(!0))},d=p=>{if((!i.current||i.current&&!t.actInsideInputWithModifier)&&ble(p))return!1;const m=pke(p.code,s);fke(o,a.current,!0)?(r(!1),a.current.clear()):a.current.delete(p[m]),p.key==="Meta"&&a.current.clear(),i.current=!1},f=()=>{a.current.clear(),r(!1)};return c?.addEventListener("keydown",u),c?.addEventListener("keyup",d),window.addEventListener("blur",f),()=>{c?.removeEventListener("keydown",u),c?.removeEventListener("keyup",d),window.removeEventListener("blur",f)}}},[e,r]),n};function fke(e,t,n){return e.filter(r=>n||r.length===t.size).some(r=>r.every(i=>t.has(i)))}function pke(e,t){return t.includes(e)?"code":"key"}function vct(e,t,n,r){const i=e.parentNode||e.parentId;if(!i)return n;const a=t.get(i),o=Z5(a,r);return vct(a,t,{x:(n.x??0)+o.x,y:(n.y??0)+o.y,z:(a[Ls]?.z??0)>(n.z??0)?a[Ls]?.z??0:n.z??0},r)}function yct(e,t,n){e.forEach(r=>{const i=r.parentNode||r.parentId;if(i&&!e.has(i))throw new Error(`Parent node ${i} not found`);if(i||n?.[r.id]){const{x:a,y:o,z:s}=vct(r,e,{...r.position,z:r[Ls]?.z??0},t);r.positionAbsolute={x:a,y:o},r[Ls].z=s,n?.[r.id]&&(r[Ls].isParent=!0)}})}function Cte(e,t,n,r){const i=new Map,a={},o=r?1e3:0;return e.forEach(s=>{const l=(wp(s.zIndex)?s.zIndex:0)+(s.selected?o:0),c=t.get(s.id),u={...s,positionAbsolute:{x:s.position.x,y:s.position.y}},d=s.parentNode||s.parentId;d&&(a[d]=!0);const f=c?.type&&c?.type!==s.type;Object.defineProperty(u,Ls,{enumerable:!1,value:{handleBounds:f?void 0:c?.[Ls]?.handleBounds,z:l}}),i.set(s.id,u)}),yct(i,n,a),i}function bct(e,t={}){const{getNodes:n,width:r,height:i,minZoom:a,maxZoom:o,d3Zoom:s,d3Selection:l,fitViewOnInitDone:c,fitViewOnInit:u,nodeOrigin:d}=e(),f=t.initial&&!c&&u;if(s&&l&&(f||!t.initial)){const h=n().filter(g=>{const v=t.includeHiddenNodes?g.width&&g.height:!g.hidden;return t.nodes?.length?v&&t.nodes.some(y=>y.id===g.id):v}),m=h.every(g=>g.width&&g.height);if(h.length>0&&m){const g=sve(h,d),{x:v,y,zoom:_}=ict(g,r,i,t.minZoom??a,t.maxZoom??o,t.padding??.1),S=X1.translate(v,y).scale(_);return typeof t.duration=="number"&&t.duration>0?s.transform(_S(l,t.duration),S):s.transform(l,S),!0}}return!1}function D2r(e,t){return e.forEach(n=>{const r=t.get(n.id);r&&t.set(r.id,{...r,[Ls]:r[Ls],selected:n.selected})}),new Map(t)}function $2r(e,t){return t.map(n=>{const r=e.find(i=>i.id===n.id);return r&&(n.selected=r.selected),n})}function y9({changedNodes:e,changedEdges:t,get:n,set:r}){const{nodeInternals:i,edges:a,onNodesChange:o,onEdgesChange:s,hasDefaultNodes:l,hasDefaultEdges:c}=n();e?.length&&(l&&r({nodeInternals:D2r(e,i)}),o?.(e)),t?.length&&(c&&r({edges:$2r(t,a)}),s?.(t))}const ix=()=>{},F2r={zoomIn:ix,zoomOut:ix,zoomTo:ix,getZoom:()=>1,setViewport:ix,getViewport:()=>({x:0,y:0,zoom:1}),fitView:()=>!1,setCenter:ix,fitBounds:ix,project:e=>e,screenToFlowPosition:e=>e,flowToScreenPosition:e=>e,viewportInitialized:!1},B2r=e=>({d3Zoom:e.d3Zoom,d3Selection:e.d3Selection}),j2r=()=>{const e=Ac(),{d3Zoom:t,d3Selection:n}=el(B2r,kd);return b.useMemo(()=>n&&t?{zoomIn:i=>t.scaleBy(_S(n,i?.duration),1.2),zoomOut:i=>t.scaleBy(_S(n,i?.duration),1/1.2),zoomTo:(i,a)=>t.scaleTo(_S(n,a?.duration),i),getZoom:()=>e.getState().transform[2],setViewport:(i,a)=>{const[o,s,l]=e.getState().transform,c=X1.translate(i.x??o,i.y??s).scale(i.zoom??l);t.transform(_S(n,a?.duration),c)},getViewport:()=>{const[i,a,o]=e.getState().transform;return{x:i,y:a,zoom:o}},fitView:i=>bct(e.getState,i),setCenter:(i,a,o)=>{const{width:s,height:l,maxZoom:c}=e.getState(),u=typeof o?.zoom<"u"?o.zoom:c,d=s/2-i*u,f=l/2-a*u,p=X1.translate(d,f).scale(u);t.transform(_S(n,o?.duration),p)},fitBounds:(i,a)=>{const{width:o,height:s,minZoom:l,maxZoom:c}=e.getState(),{x:u,y:d,zoom:f}=ict(i,o,s,l,c,a?.padding??.1),p=X1.translate(u,d).scale(f);t.transform(_S(n,a?.duration),p)},project:i=>{const{transform:a,snapToGrid:o,snapGrid:s}=e.getState();return console.warn("[DEPRECATED] `project` is deprecated. Instead use `screenToFlowPosition`. There is no need to subtract the react flow bounds anymore! https://reactflow.dev/api-reference/types/react-flow-instance#screen-to-flow-position"),Ele(i,a,o,s)},screenToFlowPosition:i=>{const{transform:a,snapToGrid:o,snapGrid:s,domNode:l}=e.getState();if(!l)return i;const{x:c,y:u}=l.getBoundingClientRect(),d={x:i.x-c,y:i.y-u};return Ele(d,a,o,s)},flowToScreenPosition:i=>{const{transform:a,domNode:o}=e.getState();if(!o)return i;const{x:s,y:l}=o.getBoundingClientRect(),c=tct(i,a);return{x:c.x+s,y:c.y+l}},viewportInitialized:!0}:F2r,[t,n])};function _ct(){const e=j2r(),t=Ac(),n=b.useCallback(()=>t.getState().getNodes().map(m=>({...m})),[]),r=b.useCallback(m=>t.getState().nodeInternals.get(m),[]),i=b.useCallback(()=>{const{edges:m=[]}=t.getState();return m.map(g=>({...g}))},[]),a=b.useCallback(m=>{const{edges:g=[]}=t.getState();return g.find(v=>v.id===m)},[]),o=b.useCallback(m=>{const{getNodes:g,setNodes:v,hasDefaultNodes:y,onNodesChange:_}=t.getState(),S=g(),C=typeof m=="function"?m(S):m;if(y)v(C);else if(_){const w=C.length===0?S.map(x=>({type:"remove",id:x.id})):C.map(x=>({item:x,type:"reset"}));_(w)}},[]),s=b.useCallback(m=>{const{edges:g=[],setEdges:v,hasDefaultEdges:y,onEdgesChange:_}=t.getState(),S=typeof m=="function"?m(g):m;if(y)v(S);else if(_){const C=S.length===0?g.map(w=>({type:"remove",id:w.id})):S.map(w=>({item:w,type:"reset"}));_(C)}},[]),l=b.useCallback(m=>{const g=Array.isArray(m)?m:[m],{getNodes:v,setNodes:y,hasDefaultNodes:_,onNodesChange:S}=t.getState();if(_){const w=[...v(),...g];y(w)}else if(S){const C=g.map(w=>({item:w,type:"add"}));S(C)}},[]),c=b.useCallback(m=>{const g=Array.isArray(m)?m:[m],{edges:v=[],setEdges:y,hasDefaultEdges:_,onEdgesChange:S}=t.getState();if(_)y([...v,...g]);else if(S){const C=g.map(w=>({item:w,type:"add"}));S(C)}},[]),u=b.useCallback(()=>{const{getNodes:m,edges:g=[],transform:v}=t.getState(),[y,_,S]=v;return{nodes:m().map(C=>({...C})),edges:g.map(C=>({...C})),viewport:{x:y,y:_,zoom:S}}},[]),d=b.useCallback(({nodes:m,edges:g})=>{const{nodeInternals:v,getNodes:y,edges:_,hasDefaultNodes:S,hasDefaultEdges:C,onNodesDelete:w,onEdgesDelete:x,onNodesChange:T,onEdgesChange:A}=t.getState(),I=(m||[]).map($=>$.id),R=(g||[]).map($=>$.id),N=y().reduce(($,D)=>{const z=D.parentNode||D.parentId,U=!I.includes(D.id)&&z&&$.find(M=>M.id===z);return(typeof D.deletable=="boolean"?D.deletable:!0)&&(I.includes(D.id)||U)&&$.push(D),$},[]),P=_.filter($=>typeof $.deletable=="boolean"?$.deletable:!0),L=P.filter($=>R.includes($.id));if(N||L){const $=rct(N,P),D=[...L,...$],z=D.reduce((U,H)=>(U.includes(H.id)||U.push(H.id),U),[]);if((C||S)&&(C&&t.setState({edges:_.filter(U=>!z.includes(U.id))}),S&&(N.forEach(U=>{v.delete(U.id)}),t.setState({nodeInternals:new Map(v)}))),z.length>0&&(x?.(D),A&&A(z.map(U=>({id:U,type:"remove"})))),N.length>0&&(w?.(N),T)){const U=N.map(H=>({id:H.id,type:"remove"}));T(U)}}},[]),f=b.useCallback(m=>{const g=o2r(m),v=g?null:t.getState().nodeInternals.get(m.id);return!g&&!v?[null,null,g]:[g?m:ike(v),v,g]},[]),p=b.useCallback((m,g=!0,v)=>{const[y,_,S]=f(m);return y?(v||t.getState().getNodes()).filter(C=>{if(!S&&(C.id===_.id||!C.positionAbsolute))return!1;const w=ike(C),x=yle(w,y);return g&&x>0||x>=y.width*y.height}):[]},[]),h=b.useCallback((m,g,v=!0)=>{const[y]=f(m);if(!y)return!1;const _=yle(y,g);return v&&_>0||_>=y.width*y.height},[]);return b.useMemo(()=>({...e,getNodes:n,getNode:r,getEdges:i,getEdge:a,setNodes:o,setEdges:s,addNodes:l,addEdges:c,toObject:u,deleteElements:d,getIntersectingNodes:p,isNodeIntersecting:h}),[e,n,r,i,a,o,s,l,c,u,d,p,h])}const z2r={actInsideInputWithModifier:!1};var U2r=({deleteKeyCode:e,multiSelectionKeyCode:t})=>{const n=Ac(),{deleteElements:r}=_ct(),i=D6(e,z2r),a=D6(t);b.useEffect(()=>{if(i){const{edges:o,getNodes:s}=n.getState(),l=s().filter(u=>u.selected),c=o.filter(u=>u.selected);r({nodes:l,edges:c}),n.setState({nodesSelectionActive:!1})}},[i]),b.useEffect(()=>{n.setState({multiSelectionActive:a})},[a])};function H2r(e){const t=Ac();b.useEffect(()=>{let n;const r=()=>{if(!e.current)return;const i=eve(e.current);(i.height===0||i.width===0)&&t.getState().onError?.("004",f0.error004()),t.setState({width:i.width||500,height:i.height||500})};return r(),window.addEventListener("resize",r),e.current&&(n=new ResizeObserver(()=>r()),n.observe(e.current)),()=>{window.removeEventListener("resize",r),n&&e.current&&n.unobserve(e.current)}},[])}const uve={position:"absolute",width:"100%",height:"100%",top:0,left:0},V2r=(e,t)=>e.x!==t.x||e.y!==t.y||e.zoom!==t.k,b9=e=>({x:e.x,y:e.y,zoom:e.k}),ax=(e,t)=>e.target.closest(`.${t}`),hke=(e,t)=>t===2&&Array.isArray(e)&&e.includes(2),mke=e=>{const t=e.ctrlKey&&AB()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*t},G2r=e=>({d3Zoom:e.d3Zoom,d3Selection:e.d3Selection,d3ZoomHandler:e.d3ZoomHandler,userSelectionActive:e.userSelectionActive}),q2r=({onMove:e,onMoveStart:t,onMoveEnd:n,onPaneContextMenu:r,zoomOnScroll:i=!0,zoomOnPinch:a=!0,panOnScroll:o=!1,panOnScrollSpeed:s=.5,panOnScrollMode:l=KS.Free,zoomOnDoubleClick:c=!0,elementsSelectable:u,panOnDrag:d=!0,defaultViewport:f,translateExtent:p,minZoom:h,maxZoom:m,zoomActivationKeyCode:g,preventScrolling:v=!0,children:y,noWheelClassName:_,noPanClassName:S})=>{const C=b.useRef(),w=Ac(),x=b.useRef(!1),T=b.useRef(!1),A=b.useRef(null),I=b.useRef({x:0,y:0,zoom:0}),{d3Zoom:R,d3Selection:N,d3ZoomHandler:P,userSelectionActive:L}=el(G2r,kd),$=D6(g),D=b.useRef(0),z=b.useRef(!1),U=b.useRef();return H2r(A),b.useEffect(()=>{if(A.current){const H=A.current.getBoundingClientRect(),M=Z_r().scaleExtent([h,m]).translateExtent(p),B=Gh(A.current).call(M),k=X1.translate(f.x,f.y).scale(G3(f.zoom,h,m)),F=[[0,0],[H.width,H.height]],G=M.constrain()(k,F,p);M.transform(B,G),M.wheelDelta(mke),w.setState({d3Zoom:M,d3Selection:B,d3ZoomHandler:B.on("wheel.zoom"),transform:[G.x,G.y,G.k],domNode:A.current.closest(".react-flow")})}},[]),b.useEffect(()=>{N&&R&&(o&&!$&&!L?N.on("wheel.zoom",H=>{if(ax(H,_))return!1;H.preventDefault(),H.stopImmediatePropagation();const M=N.property("__zoom").k||1;if(H.ctrlKey&&a){const J=Eg(H),te=mke(H),ae=M*Math.pow(2,te);R.scaleTo(N,ae,J,H);return}const B=H.deltaMode===1?20:1;let k=l===KS.Vertical?0:H.deltaX*B,F=l===KS.Horizontal?0:H.deltaY*B;!AB()&&H.shiftKey&&l!==KS.Vertical&&(k=H.deltaY*B,F=0),R.translateBy(N,-(k/M)*s,-(F/M)*s,{internal:!0});const G=b9(N.property("__zoom")),{onViewportChangeStart:q,onViewportChange:W,onViewportChangeEnd:K}=w.getState();clearTimeout(U.current),z.current||(z.current=!0,t?.(H,G),q?.(G)),z.current&&(e?.(H,G),W?.(G),U.current=setTimeout(()=>{n?.(H,G),K?.(G),z.current=!1},150))},{passive:!1}):typeof P<"u"&&N.on("wheel.zoom",function(H,M){if(!v&&H.type==="wheel"&&!H.ctrlKey||ax(H,_))return null;H.preventDefault(),P.call(this,H,M)},{passive:!1}))},[L,o,l,N,R,P,$,a,v,_,t,e,n]),b.useEffect(()=>{R&&R.on("start",H=>{if(!H.sourceEvent||H.sourceEvent.internal)return null;D.current=H.sourceEvent?.button;const{onViewportChangeStart:M}=w.getState(),B=b9(H.transform);x.current=!0,I.current=B,H.sourceEvent?.type==="mousedown"&&w.setState({paneDragging:!0}),M?.(B),t?.(H.sourceEvent,B)})},[R,t]),b.useEffect(()=>{R&&(L&&!x.current?R.on("zoom",null):L||R.on("zoom",H=>{const{onViewportChange:M}=w.getState();if(w.setState({transform:[H.transform.x,H.transform.y,H.transform.k]}),T.current=!!(r&&hke(d,D.current??0)),(e||M)&&!H.sourceEvent?.internal){const B=b9(H.transform);M?.(B),e?.(H.sourceEvent,B)}}))},[L,R,e,d,r]),b.useEffect(()=>{R&&R.on("end",H=>{if(!H.sourceEvent||H.sourceEvent.internal)return null;const{onViewportChangeEnd:M}=w.getState();if(x.current=!1,w.setState({paneDragging:!1}),r&&hke(d,D.current??0)&&!T.current&&r(H.sourceEvent),T.current=!1,(n||M)&&V2r(I.current,H.transform)){const B=b9(H.transform);I.current=B,clearTimeout(C.current),C.current=setTimeout(()=>{M?.(B),n?.(H.sourceEvent,B)},o?150:0)}})},[R,o,d,n,r]),b.useEffect(()=>{R&&R.filter(H=>{const M=$||i,B=a&&H.ctrlKey;if((d===!0||Array.isArray(d)&&d.includes(1))&&H.button===1&&H.type==="mousedown"&&(ax(H,"react-flow__node")||ax(H,"react-flow__edge")))return!0;if(!d&&!M&&!o&&!c&&!a||L||!c&&H.type==="dblclick"||ax(H,_)&&H.type==="wheel"||ax(H,S)&&(H.type!=="wheel"||o&&H.type==="wheel"&&!$)||!a&&H.ctrlKey&&H.type==="wheel"||!M&&!o&&!B&&H.type==="wheel"||!d&&(H.type==="mousedown"||H.type==="touchstart")||Array.isArray(d)&&!d.includes(H.button)&&H.type==="mousedown")return!1;const k=Array.isArray(d)&&d.includes(H.button)||!H.button||H.button<=1;return(!H.ctrlKey||H.type==="wheel")&&k})},[L,R,i,a,o,c,d,u,$]),se.createElement("div",{className:"react-flow__renderer",ref:A,style:uve},y)},W2r=e=>({userSelectionActive:e.userSelectionActive,userSelectionRect:e.userSelectionRect});function Y2r(){const{userSelectionActive:e,userSelectionRect:t}=el(W2r,kd);return e&&t?se.createElement("div",{className:"react-flow__selection react-flow__container",style:{width:t.width,height:t.height,transform:`translate(${t.x}px, ${t.y}px)`}}):null}function gke(e,t){const n=t.parentNode||t.parentId,r=e.find(i=>i.id===n);if(r){const i=t.position.x+t.width-r.width,a=t.position.y+t.height-r.height;if(i>0||a>0||t.position.x<0||t.position.y<0){if(r.style={...r.style},r.style.width=r.style.width??r.width,r.style.height=r.style.height??r.height,i>0&&(r.style.width+=i),a>0&&(r.style.height+=a),t.position.x<0){const o=Math.abs(t.position.x);r.position.x=r.position.x-o,r.style.width+=o,t.position.x=0}if(t.position.y<0){const o=Math.abs(t.position.y);r.position.y=r.position.y-o,r.style.height+=o,t.position.y=0}r.width=r.style.width,r.height=r.style.height}}}function Sct(e,t){if(e.some(r=>r.type==="reset"))return e.filter(r=>r.type==="reset").map(r=>r.item);const n=e.filter(r=>r.type==="add").map(r=>r.item);return t.reduce((r,i)=>{const a=e.filter(s=>s.id===i.id);if(a.length===0)return r.push(i),r;const o={...i};for(const s of a)if(s)switch(s.type){case"select":{o.selected=s.selected;break}case"position":{typeof s.position<"u"&&(o.position=s.position),typeof s.positionAbsolute<"u"&&(o.positionAbsolute=s.positionAbsolute),typeof s.dragging<"u"&&(o.dragging=s.dragging),o.expandParent&&gke(r,o);break}case"dimensions":{typeof s.dimensions<"u"&&(o.width=s.dimensions.width,o.height=s.dimensions.height),typeof s.updateStyle<"u"&&(o.style={...o.style||{},...s.dimensions}),typeof s.resizing=="boolean"&&(o.resizing=s.resizing),o.expandParent&&gke(r,o);break}case"remove":return r}return r.push(o),r},n)}function Ect(e,t){return Sct(e,t)}function K2r(e,t){return Sct(e,t)}const Jy=(e,t)=>({id:e,type:"select",selected:t});function l5(e,t){return e.reduce((n,r)=>{const i=t.includes(r.id);return!r.selected&&i?(r.selected=!0,n.push(Jy(r.id,!0))):r.selected&&!i&&(r.selected=!1,n.push(Jy(r.id,!1))),n},[])}const wte=(e,t)=>n=>{n.target===t.current&&e?.(n)},X2r=e=>({userSelectionActive:e.userSelectionActive,elementsSelectable:e.elementsSelectable,dragging:e.paneDragging}),Cct=b.memo(({isSelecting:e,selectionMode:t=M6.Full,panOnDrag:n,onSelectionStart:r,onSelectionEnd:i,onPaneClick:a,onPaneContextMenu:o,onPaneScroll:s,onPaneMouseEnter:l,onPaneMouseMove:c,onPaneMouseLeave:u,children:d})=>{const f=b.useRef(null),p=Ac(),h=b.useRef(0),m=b.useRef(0),g=b.useRef(),{userSelectionActive:v,elementsSelectable:y,dragging:_}=el(X2r,kd),S=()=>{p.setState({userSelectionActive:!1,userSelectionRect:null}),h.current=0,m.current=0},C=P=>{a?.(P),p.getState().resetSelectedElements(),p.setState({nodesSelectionActive:!1})},w=P=>{if(Array.isArray(n)&&n?.includes(2)){P.preventDefault();return}o?.(P)},x=s?P=>s(P):void 0,T=P=>{const{resetSelectedElements:L,domNode:$}=p.getState();if(g.current=$?.getBoundingClientRect(),!y||!e||P.button!==0||P.target!==f.current||!g.current)return;const{x:D,y:z}=Vb(P,g.current);L(),p.setState({userSelectionRect:{width:0,height:0,startX:D,startY:z,x:D,y:z}}),r?.(P)},A=P=>{const{userSelectionRect:L,nodeInternals:$,edges:D,transform:z,onNodesChange:U,onEdgesChange:H,nodeOrigin:M,getNodes:B}=p.getState();if(!e||!g.current||!L)return;p.setState({userSelectionActive:!0,nodesSelectionActive:!1});const k=Vb(P,g.current),F=L.startX??0,G=L.startY??0,q={...L,x:k.x<F?k.x:F,y:k.y<G?k.y:G,width:Math.abs(k.x-F),height:Math.abs(k.y-G)},W=B(),K=nct($,q,z,t===M6.Partial,!0,M),J=rct(K,D).map(ae=>ae.id),te=K.map(ae=>ae.id);if(h.current!==te.length){h.current=te.length;const ae=l5(W,te);ae.length&&U?.(ae)}if(m.current!==J.length){m.current=J.length;const ae=l5(D,J);ae.length&&H?.(ae)}p.setState({userSelectionRect:q})},I=P=>{if(P.button!==0)return;const{userSelectionRect:L}=p.getState();!v&&L&&P.target===f.current&&C?.(P),p.setState({nodesSelectionActive:h.current>0}),S(),i?.(P)},R=P=>{v&&(p.setState({nodesSelectionActive:h.current>0}),i?.(P)),S()},N=y&&(e||v);return se.createElement("div",{className:Kp(["react-flow__pane",{dragging:_,selection:e}]),onClick:N?void 0:wte(C,f),onContextMenu:wte(w,f),onWheel:wte(x,f),onMouseEnter:N?void 0:l,onMouseDown:N?T:void 0,onMouseMove:N?A:c,onMouseUp:N?I:void 0,onMouseLeave:N?R:u,ref:f,style:uve},d,se.createElement(Y2r,null))});Cct.displayName="Pane";function wct(e,t){const n=e.parentNode||e.parentId;if(!n)return!1;const r=t.get(n);return r?r.selected?!0:wct(r,t):!1}function vke(e,t,n){let r=e;do{if(r?.matches(t))return!0;if(r===n.current)return!1;r=r.parentElement}while(r);return!1}function Z2r(e,t,n,r){return Array.from(e.values()).filter(i=>(i.selected||i.id===r)&&(!i.parentNode||i.parentId||!wct(i,e))&&(i.draggable||t&&typeof i.draggable>"u")).map(i=>({id:i.id,position:i.position||{x:0,y:0},positionAbsolute:i.positionAbsolute||{x:0,y:0},distance:{x:n.x-(i.positionAbsolute?.x??0),y:n.y-(i.positionAbsolute?.y??0)},delta:{x:0,y:0},extent:i.extent,parentNode:i.parentNode||i.parentId,parentId:i.parentNode||i.parentId,width:i.width,height:i.height,expandParent:i.expandParent}))}function Q2r(e,t){return!t||t==="parent"?t:[t[0],[t[1][0]-(e.width||0),t[1][1]-(e.height||0)]]}function xct(e,t,n,r,i=[0,0],a){const o=Q2r(e,e.extent||r);let s=o;const l=e.parentNode||e.parentId;if(e.extent==="parent"&&!e.expandParent)if(l&&e.width&&e.height){const d=n.get(l),{x:f,y:p}=Z5(d,i).positionAbsolute;s=d&&wp(f)&&wp(p)&&wp(d.width)&&wp(d.height)?[[f+e.width*i[0],p+e.height*i[1]],[f+d.width-e.width+e.width*i[0],p+d.height-e.height+e.height*i[1]]]:s}else a?.("005",f0.error005()),s=o;else if(e.extent&&l&&e.extent!=="parent"){const d=n.get(l),{x:f,y:p}=Z5(d,i).positionAbsolute;s=[[e.extent[0][0]+f,e.extent[0][1]+p],[e.extent[1][0]+f,e.extent[1][1]+p]]}let c={x:0,y:0};if(l){const d=n.get(l);c=Z5(d,i).positionAbsolute}const u=s&&s!=="parent"?tve(t,s):t;return{position:{x:u.x-c.x,y:u.y-c.y},positionAbsolute:u}}function xte({nodeId:e,dragItems:t,nodeInternals:n}){const r=t.map(i=>({...n.get(i.id),position:i.position,positionAbsolute:i.positionAbsolute}));return[e?r.find(i=>i.id===e):r[0],r]}const yke=(e,t,n,r)=>{const i=t.querySelectorAll(e);if(!i||!i.length)return null;const a=Array.from(i),o=t.getBoundingClientRect(),s={x:o.width*r[0],y:o.height*r[1]};return a.map(l=>{const c=l.getBoundingClientRect();return{id:l.getAttribute("data-handleid"),position:l.getAttribute("data-handlepos"),x:(c.left-o.left-s.x)/n,y:(c.top-o.top-s.y)/n,...eve(l)}})};function JI(e,t,n){return n===void 0?n:r=>{const i=t().nodeInternals.get(e);i&&n(r,{...i})}}function wle({id:e,store:t,unselect:n=!1,nodeRef:r}){const{addSelectedNodes:i,unselectNodesAndEdges:a,multiSelectionActive:o,nodeInternals:s,onError:l}=t.getState(),c=s.get(e);if(!c){l?.("012",f0.error012(e));return}t.setState({nodesSelectionActive:!1}),c.selected?(n||c.selected&&o)&&(a({nodes:[c],edges:[]}),requestAnimationFrame(()=>r?.current?.blur())):i([e])}function J2r(){const e=Ac();return b.useCallback(({sourceEvent:n})=>{const{transform:r,snapGrid:i,snapToGrid:a}=e.getState(),o=n.touches?n.touches[0].clientX:n.clientX,s=n.touches?n.touches[0].clientY:n.clientY,l={x:(o-r[0])/r[2],y:(s-r[1])/r[2]};return{xSnapped:a?i[0]*Math.round(l.x/i[0]):l.x,ySnapped:a?i[1]*Math.round(l.y/i[1]):l.y,...l}},[])}function Tte(e){return(t,n,r)=>e?.(t,r)}function Tct({nodeRef:e,disabled:t=!1,noDragClassName:n,handleSelector:r,nodeId:i,isSelectable:a,selectNodesOnDrag:o}){const s=Ac(),[l,c]=b.useState(!1),u=b.useRef([]),d=b.useRef({x:null,y:null}),f=b.useRef(0),p=b.useRef(null),h=b.useRef({x:0,y:0}),m=b.useRef(null),g=b.useRef(!1),v=b.useRef(!1),y=b.useRef(!1),_=J2r();return b.useEffect(()=>{if(e?.current){const S=Gh(e.current),C=({x:T,y:A})=>{const{nodeInternals:I,onNodeDrag:R,onSelectionDrag:N,updateNodePositions:P,nodeExtent:L,snapGrid:$,snapToGrid:D,nodeOrigin:z,onError:U}=s.getState();d.current={x:T,y:A};let H=!1,M={x:0,y:0,x2:0,y2:0};if(u.current.length>1&&L){const k=sve(u.current,z);M=nve(k)}if(u.current=u.current.map(k=>{const F={x:T-k.distance.x,y:A-k.distance.y};D&&(F.x=$[0]*Math.round(F.x/$[0]),F.y=$[1]*Math.round(F.y/$[1]));const G=[[L[0][0],L[0][1]],[L[1][0],L[1][1]]];u.current.length>1&&L&&!k.extent&&(G[0][0]=k.positionAbsolute.x-M.x+L[0][0],G[1][0]=k.positionAbsolute.x+(k.width??0)-M.x2+L[1][0],G[0][1]=k.positionAbsolute.y-M.y+L[0][1],G[1][1]=k.positionAbsolute.y+(k.height??0)-M.y2+L[1][1]);const q=xct(k,F,I,G,z,U);return H=H||k.position.x!==q.position.x||k.position.y!==q.position.y,k.position=q.position,k.positionAbsolute=q.positionAbsolute,k}),!H)return;P(u.current,!0,!0),c(!0);const B=i?R:Tte(N);if(B&&m.current){const[k,F]=xte({nodeId:i,dragItems:u.current,nodeInternals:I});B(m.current,k,F)}},w=()=>{if(!p.current)return;const[T,A]=Wlt(h.current,p.current);if(T!==0||A!==0){const{transform:I,panBy:R}=s.getState();d.current.x=(d.current.x??0)-T/I[2],d.current.y=(d.current.y??0)-A/I[2],R({x:T,y:A})&&C(d.current)}f.current=requestAnimationFrame(w)},x=T=>{const{nodeInternals:A,multiSelectionActive:I,nodesDraggable:R,unselectNodesAndEdges:N,onNodeDragStart:P,onSelectionDragStart:L}=s.getState();v.current=!0;const $=i?P:Tte(L);(!o||!a)&&!I&&i&&(A.get(i)?.selected||N()),i&&a&&o&&wle({id:i,store:s,nodeRef:e});const D=_(T);if(d.current=D,u.current=Z2r(A,R,D,i),$&&u.current){const[z,U]=xte({nodeId:i,dragItems:u.current,nodeInternals:A});$(T.sourceEvent,z,U)}};if(t)S.on(".drag",null);else{const T=obr().on("start",A=>{const{domNode:I,nodeDragThreshold:R}=s.getState();R===0&&x(A),y.current=!1;const N=_(A);d.current=N,p.current=I?.getBoundingClientRect()||null,h.current=Vb(A.sourceEvent,p.current)}).on("drag",A=>{const I=_(A),{autoPanOnNodeDrag:R,nodeDragThreshold:N}=s.getState();if(A.sourceEvent.type==="touchmove"&&A.sourceEvent.touches.length>1&&(y.current=!0),!y.current){if(!g.current&&v.current&&R&&(g.current=!0,w()),!v.current){const P=I.xSnapped-(d?.current?.x??0),L=I.ySnapped-(d?.current?.y??0);Math.sqrt(P*P+L*L)>N&&x(A)}(d.current.x!==I.xSnapped||d.current.y!==I.ySnapped)&&u.current&&v.current&&(m.current=A.sourceEvent,h.current=Vb(A.sourceEvent,p.current),C(I))}}).on("end",A=>{if(!(!v.current||y.current)&&(c(!1),g.current=!1,v.current=!1,cancelAnimationFrame(f.current),u.current)){const{updateNodePositions:I,nodeInternals:R,onNodeDragStop:N,onSelectionDragStop:P}=s.getState(),L=i?N:Tte(P);if(I(u.current,!1,!1),L){const[$,D]=xte({nodeId:i,dragItems:u.current,nodeInternals:R});L(A.sourceEvent,$,D)}}}).filter(A=>{const I=A.target;return!A.button&&(!n||!vke(I,`.${n}`,e))&&(!r||vke(I,r,e))});return S.call(T),()=>{S.on(".drag",null)}}}},[e,t,n,r,a,s,i,o,_]),l}function Ict(){const e=Ac();return b.useCallback(n=>{const{nodeInternals:r,nodeExtent:i,updateNodePositions:a,getNodes:o,snapToGrid:s,snapGrid:l,onError:c,nodesDraggable:u}=e.getState(),d=o().filter(y=>y.selected&&(y.draggable||u&&typeof y.draggable>"u")),f=s?l[0]:5,p=s?l[1]:5,h=n.isShiftPressed?4:1,m=n.x*f*h,g=n.y*p*h,v=d.map(y=>{if(y.positionAbsolute){const _={x:y.positionAbsolute.x+m,y:y.positionAbsolute.y+g};s&&(_.x=l[0]*Math.round(_.x/l[0]),_.y=l[1]*Math.round(_.y/l[1]));const{positionAbsolute:S,position:C}=xct(y,_,r,i,void 0,c);y.position=C,y.positionAbsolute=S}return y});a(v,!0,!1)},[])}const Q5={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}};var eA=e=>{const t=({id:n,type:r,data:i,xPos:a,yPos:o,xPosOrigin:s,yPosOrigin:l,selected:c,onClick:u,onMouseEnter:d,onMouseMove:f,onMouseLeave:p,onContextMenu:h,onDoubleClick:m,style:g,className:v,isDraggable:y,isSelectable:_,isConnectable:S,isFocusable:C,selectNodesOnDrag:w,sourcePosition:x,targetPosition:T,hidden:A,resizeObserver:I,dragHandle:R,zIndex:N,isParent:P,noDragClassName:L,noPanClassName:$,initialized:D,disableKeyboardA11y:z,ariaLabel:U,rfId:H,hasHandleBounds:M})=>{const B=Ac(),k=b.useRef(null),F=b.useRef(null),G=b.useRef(x),q=b.useRef(T),W=b.useRef(r),K=_||y||u||d||f||p,J=Ict(),te=JI(n,B.getState,d),ae=JI(n,B.getState,f),re=JI(n,B.getState,p),ue=JI(n,B.getState,h),de=JI(n,B.getState,m),fe=Ee=>{const{nodeDragThreshold:ce}=B.getState();if(_&&(!w||!y||ce>0)&&wle({id:n,store:B,nodeRef:k}),u){const he=B.getState().nodeInternals.get(n);he&&u(Ee,{...he})}},ge=Ee=>{if(!ble(Ee)&&!z)if(Klt.includes(Ee.key)&&_){const ce=Ee.key==="Escape";wle({id:n,store:B,unselect:ce,nodeRef:k})}else y&&c&&Object.prototype.hasOwnProperty.call(Q5,Ee.key)&&(B.setState({ariaLiveMessage:`Moved selected node ${Ee.key.replace("Arrow","").toLowerCase()}. New position, x: ${~~a}, y: ${~~o}`}),J({x:Q5[Ee.key].x,y:Q5[Ee.key].y,isShiftPressed:Ee.shiftKey}))};b.useEffect(()=>()=>{F.current&&(I?.unobserve(F.current),F.current=null)},[]),b.useEffect(()=>{if(k.current&&!A){const Ee=k.current;(!D||!M||F.current!==Ee)&&(F.current&&I?.unobserve(F.current),I?.observe(Ee),F.current=Ee)}},[A,D,M]),b.useEffect(()=>{const Ee=W.current!==r,ce=G.current!==x,he=q.current!==T;k.current&&(Ee||ce||he)&&(Ee&&(W.current=r),ce&&(G.current=x),he&&(q.current=T),B.getState().updateNodeDimensions([{id:n,nodeElement:k.current,forceUpdate:!0}]))},[n,r,x,T]);const oe=Tct({nodeRef:k,disabled:A||!y,noDragClassName:L,handleSelector:R,nodeId:n,isSelectable:_,selectNodesOnDrag:w});return A?null:se.createElement("div",{className:Kp(["react-flow__node",`react-flow__node-${r}`,{[$]:y},v,{selected:c,selectable:_,parent:P,dragging:oe}]),ref:k,style:{zIndex:N,transform:`translate(${s}px,${l}px)`,pointerEvents:K?"all":"none",visibility:D?"visible":"hidden",...g},"data-id":n,"data-testid":`rf__node-${n}`,onMouseEnter:te,onMouseMove:ae,onMouseLeave:re,onContextMenu:ue,onClick:fe,onDoubleClick:de,onKeyDown:C?ge:void 0,tabIndex:C?0:void 0,role:C?"button":void 0,"aria-describedby":z?void 0:`${mct}-${H}`,"aria-label":U},se.createElement(p2r,{value:n},se.createElement(e,{id:n,data:i,type:r,xPos:a,yPos:o,selected:c,isConnectable:S,sourcePosition:x,targetPosition:T,dragging:oe,dragHandle:R,zIndex:N})))};return t.displayName="NodeWrapper",b.memo(t)};const eSr=e=>{const t=e.getNodes().filter(n=>n.selected);return{...sve(t,e.nodeOrigin),transformString:`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]})`,userSelectionActive:e.userSelectionActive}};function tSr({onSelectionContextMenu:e,noPanClassName:t,disableKeyboardA11y:n}){const r=Ac(),{width:i,height:a,x:o,y:s,transformString:l,userSelectionActive:c}=el(eSr,kd),u=Ict(),d=b.useRef(null);if(b.useEffect(()=>{n||d.current?.focus({preventScroll:!0})},[n]),Tct({nodeRef:d}),c||!i||!a)return null;const f=e?h=>{const m=r.getState().getNodes().filter(g=>g.selected);e(h,m)}:void 0,p=h=>{Object.prototype.hasOwnProperty.call(Q5,h.key)&&u({x:Q5[h.key].x,y:Q5[h.key].y,isShiftPressed:h.shiftKey})};return se.createElement("div",{className:Kp(["react-flow__nodesselection","react-flow__container",t]),style:{transform:l}},se.createElement("div",{ref:d,className:"react-flow__nodesselection-rect",onContextMenu:f,tabIndex:n?void 0:-1,onKeyDown:n?void 0:p,style:{width:i,height:a,top:s,left:o}}))}var nSr=b.memo(tSr);const rSr=e=>e.nodesSelectionActive,Act=({children:e,onPaneClick:t,onPaneMouseEnter:n,onPaneMouseMove:r,onPaneMouseLeave:i,onPaneContextMenu:a,onPaneScroll:o,deleteKeyCode:s,onMove:l,onMoveStart:c,onMoveEnd:u,selectionKeyCode:d,selectionOnDrag:f,selectionMode:p,onSelectionStart:h,onSelectionEnd:m,multiSelectionKeyCode:g,panActivationKeyCode:v,zoomActivationKeyCode:y,elementsSelectable:_,zoomOnScroll:S,zoomOnPinch:C,panOnScroll:w,panOnScrollSpeed:x,panOnScrollMode:T,zoomOnDoubleClick:A,panOnDrag:I,defaultViewport:R,translateExtent:N,minZoom:P,maxZoom:L,preventScrolling:$,onSelectionContextMenu:D,noWheelClassName:z,noPanClassName:U,disableKeyboardA11y:H})=>{const M=el(rSr),B=D6(d),k=D6(v),F=k||I,G=k||w,q=B||f&&F!==!0;return U2r({deleteKeyCode:s,multiSelectionKeyCode:g}),se.createElement(q2r,{onMove:l,onMoveStart:c,onMoveEnd:u,onPaneContextMenu:a,elementsSelectable:_,zoomOnScroll:S,zoomOnPinch:C,panOnScroll:G,panOnScrollSpeed:x,panOnScrollMode:T,zoomOnDoubleClick:A,panOnDrag:!B&&F,defaultViewport:R,translateExtent:N,minZoom:P,maxZoom:L,zoomActivationKeyCode:y,preventScrolling:$,noWheelClassName:z,noPanClassName:U},se.createElement(Cct,{onSelectionStart:h,onSelectionEnd:m,onPaneClick:t,onPaneMouseEnter:n,onPaneMouseMove:r,onPaneMouseLeave:i,onPaneContextMenu:a,onPaneScroll:o,panOnDrag:F,isSelecting:!!q,selectionMode:p},e,M&&se.createElement(nSr,{onSelectionContextMenu:D,noPanClassName:U,disableKeyboardA11y:H})))};Act.displayName="FlowRenderer";var iSr=b.memo(Act);function aSr(e){return el(b.useCallback(n=>e?nct(n.nodeInternals,{x:0,y:0,width:n.width,height:n.height},n.transform,!0):n.getNodes(),[e]))}function oSr(e){const t={input:eA(e.input||dct),default:eA(e.default||Cle),output:eA(e.output||pct),group:eA(e.group||cve)},n={},r=Object.keys(e).filter(i=>!["input","default","output","group"].includes(i)).reduce((i,a)=>(i[a]=eA(e[a]||Cle),i),n);return{...t,...r}}const sSr=({x:e,y:t,width:n,height:r,origin:i})=>!n||!r?{x:e,y:t}:i[0]<0||i[1]<0||i[0]>1||i[1]>1?{x:e,y:t}:{x:e-n*i[0],y:t-r*i[1]},lSr=e=>({nodesDraggable:e.nodesDraggable,nodesConnectable:e.nodesConnectable,nodesFocusable:e.nodesFocusable,elementsSelectable:e.elementsSelectable,updateNodeDimensions:e.updateNodeDimensions,onError:e.onError}),Rct=e=>{const{nodesDraggable:t,nodesConnectable:n,nodesFocusable:r,elementsSelectable:i,updateNodeDimensions:a,onError:o}=el(lSr,kd),s=aSr(e.onlyRenderVisibleElements),l=b.useRef(),c=b.useMemo(()=>{if(typeof ResizeObserver>"u")return null;const u=new ResizeObserver(d=>{const f=d.map(p=>({id:p.target.getAttribute("data-id"),nodeElement:p.target,forceUpdate:!0}));a(f)});return l.current=u,u},[]);return b.useEffect(()=>()=>{l?.current?.disconnect()},[]),se.createElement("div",{className:"react-flow__nodes",style:uve},s.map(u=>{let d=u.type||"default";e.nodeTypes[d]||(o?.("003",f0.error003(d)),d="default");const f=e.nodeTypes[d]||e.nodeTypes.default,p=!!(u.draggable||t&&typeof u.draggable>"u"),h=!!(u.selectable||i&&typeof u.selectable>"u"),m=!!(u.connectable||n&&typeof u.connectable>"u"),g=!!(u.focusable||r&&typeof u.focusable>"u"),v=e.nodeExtent?tve(u.positionAbsolute,e.nodeExtent):u.positionAbsolute,y=v?.x??0,_=v?.y??0,S=sSr({x:y,y:_,width:u.width??0,height:u.height??0,origin:e.nodeOrigin});return se.createElement(f,{key:u.id,id:u.id,className:u.className,style:u.style,type:d,data:u.data,sourcePosition:u.sourcePosition||xr.Bottom,targetPosition:u.targetPosition||xr.Top,hidden:u.hidden,xPos:y,yPos:_,xPosOrigin:S.x,yPosOrigin:S.y,selectNodesOnDrag:e.selectNodesOnDrag,onClick:e.onNodeClick,onMouseEnter:e.onNodeMouseEnter,onMouseMove:e.onNodeMouseMove,onMouseLeave:e.onNodeMouseLeave,onContextMenu:e.onNodeContextMenu,onDoubleClick:e.onNodeDoubleClick,selected:!!u.selected,isDraggable:p,isSelectable:h,isConnectable:m,isFocusable:g,resizeObserver:c,dragHandle:u.dragHandle,zIndex:u[Ls]?.z??0,isParent:!!u[Ls]?.isParent,noDragClassName:e.noDragClassName,noPanClassName:e.noPanClassName,initialized:!!u.width&&!!u.height,rfId:e.rfId,disableKeyboardA11y:e.disableKeyboardA11y,ariaLabel:u.ariaLabel,hasHandleBounds:!!u[Ls]?.handleBounds})}))};Rct.displayName="NodeRenderer";var cSr=b.memo(Rct);const uSr=(e,t,n)=>n===xr.Left?e-t:n===xr.Right?e+t:e,dSr=(e,t,n)=>n===xr.Top?e-t:n===xr.Bottom?e+t:e,bke="react-flow__edgeupdater",_ke=({position:e,centerX:t,centerY:n,radius:r=10,onMouseDown:i,onMouseEnter:a,onMouseOut:o,type:s})=>se.createElement("circle",{onMouseDown:i,onMouseEnter:a,onMouseOut:o,className:Kp([bke,`${bke}-${s}`]),cx:uSr(t,r,e),cy:dSr(n,r,e),r,stroke:"transparent",fill:"transparent"}),fSr=()=>!0;var ox=e=>{const t=({id:n,className:r,type:i,data:a,onClick:o,onEdgeDoubleClick:s,selected:l,animated:c,label:u,labelStyle:d,labelShowBg:f,labelBgStyle:p,labelBgPadding:h,labelBgBorderRadius:m,style:g,source:v,target:y,sourceX:_,sourceY:S,targetX:C,targetY:w,sourcePosition:x,targetPosition:T,elementsSelectable:A,hidden:I,sourceHandleId:R,targetHandleId:N,onContextMenu:P,onMouseEnter:L,onMouseMove:$,onMouseLeave:D,reconnectRadius:z,onReconnect:U,onReconnectStart:H,onReconnectEnd:M,markerEnd:B,markerStart:k,rfId:F,ariaLabel:G,isFocusable:q,isReconnectable:W,pathOptions:K,interactionWidth:J,disableKeyboardA11y:te})=>{const ae=b.useRef(null),[re,ue]=b.useState(!1),[de,fe]=b.useState(!1),ge=Ac(),oe=b.useMemo(()=>`url('#${Sle(k,F)}')`,[k,F]),Ee=b.useMemo(()=>`url('#${Sle(B,F)}')`,[B,F]);if(I)return null;const ce=Ye=>{const{edges:Ze,addSelectedEdges:Ke,unselectNodesAndEdges:qe,multiSelectionActive:nt}=ge.getState(),Qe=Ze.find(it=>it.id===n);Qe&&(A&&(ge.setState({nodesSelectionActive:!1}),Qe.selected&&nt?(qe({nodes:[],edges:[Qe]}),ae.current?.blur()):Ke([n])),o&&o(Ye,Qe))},he=QI(n,ge.getState,s),ye=QI(n,ge.getState,P),me=QI(n,ge.getState,L),_e=QI(n,ge.getState,$),Te=QI(n,ge.getState,D),xe=(Ye,Ze)=>{if(Ye.button!==0)return;const{edges:Ke,isValidConnection:qe}=ge.getState(),nt=Ze?y:v,Qe=(Ze?N:R)||null,it=Ze?"target":"source",yt=qe||fSr,Wt=Ze,Mt=Ke.find(Dt=>Dt.id===n);fe(!0),H?.(Ye,Mt,it);const tn=Dt=>{fe(!1),M?.(Dt,Mt,it)};sct({event:Ye,handleId:Qe,nodeId:nt,onConnect:Dt=>U?.(Mt,Dt),isTarget:Wt,getState:ge.getState,setState:ge.setState,isValidConnection:yt,edgeUpdaterType:it,onReconnectEnd:tn})},De=Ye=>xe(Ye,!0),Pe=Ye=>xe(Ye,!1),Le=()=>ue(!0),ze=()=>ue(!1),Be=!A&&!o,je=Ye=>{if(!te&&Klt.includes(Ye.key)&&A){const{unselectNodesAndEdges:Ze,addSelectedEdges:Ke,edges:qe}=ge.getState();Ye.key==="Escape"?(ae.current?.blur(),Ze({edges:[qe.find(Qe=>Qe.id===n)]})):Ke([n])}};return se.createElement("g",{className:Kp(["react-flow__edge",`react-flow__edge-${i}`,r,{selected:l,animated:c,inactive:Be,updating:re}]),onClick:ce,onDoubleClick:he,onContextMenu:ye,onMouseEnter:me,onMouseMove:_e,onMouseLeave:Te,onKeyDown:q?je:void 0,tabIndex:q?0:void 0,role:q?"button":"img","data-testid":`rf__edge-${n}`,"aria-label":G===null?void 0:G||`Edge from ${v} to ${y}`,"aria-describedby":q?`${gct}-${F}`:void 0,ref:ae},!de&&se.createElement(e,{id:n,source:v,target:y,selected:l,animated:c,label:u,labelStyle:d,labelShowBg:f,labelBgStyle:p,labelBgPadding:h,labelBgBorderRadius:m,data:a,style:g,sourceX:_,sourceY:S,targetX:C,targetY:w,sourcePosition:x,targetPosition:T,sourceHandleId:R,targetHandleId:N,markerStart:oe,markerEnd:Ee,pathOptions:K,interactionWidth:J}),W&&se.createElement(se.Fragment,null,(W==="source"||W===!0)&&se.createElement(_ke,{position:x,centerX:_,centerY:S,radius:z,onMouseDown:De,onMouseEnter:Le,onMouseOut:ze,type:"source"}),(W==="target"||W===!0)&&se.createElement(_ke,{position:T,centerX:C,centerY:w,radius:z,onMouseDown:Pe,onMouseEnter:Le,onMouseOut:ze,type:"target"})))};return t.displayName="EdgeWrapper",b.memo(t)};function pSr(e){const t={default:ox(e.default||NB),straight:ox(e.bezier||ave),step:ox(e.step||ive),smoothstep:ox(e.step||MH),simplebezier:ox(e.simplebezier||rve)},n={},r=Object.keys(e).filter(i=>!["default","bezier"].includes(i)).reduce((i,a)=>(i[a]=ox(e[a]||NB),i),n);return{...t,...r}}function Ske(e,t,n=null){const r=(n?.x||0)+t.x,i=(n?.y||0)+t.y,a=n?.width||t.width,o=n?.height||t.height;switch(e){case xr.Top:return{x:r+a/2,y:i};case xr.Right:return{x:r+a,y:i+o/2};case xr.Bottom:return{x:r+a/2,y:i+o};case xr.Left:return{x:r,y:i+o/2}}}function Eke(e,t){return e?e.length===1||!t?e[0]:t&&e.find(n=>n.id===t)||null:null}const hSr=(e,t,n,r,i,a)=>{const o=Ske(n,e,t),s=Ske(a,r,i);return{sourceX:o.x,sourceY:o.y,targetX:s.x,targetY:s.y}};function mSr({sourcePos:e,targetPos:t,sourceWidth:n,sourceHeight:r,targetWidth:i,targetHeight:a,width:o,height:s,transform:l}){const c={x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x+n,t.x+i),y2:Math.max(e.y+r,t.y+a)};c.x===c.x2&&(c.x2+=1),c.y===c.y2&&(c.y2+=1);const u=nve({x:(0-l[0])/l[2],y:(0-l[1])/l[2],width:o/l[2],height:s/l[2]}),d=Math.max(0,Math.min(u.x2,c.x2)-Math.max(u.x,c.x)),f=Math.max(0,Math.min(u.y2,c.y2)-Math.max(u.y,c.y));return Math.ceil(d*f)>0}function Cke(e){const t=e?.[Ls]?.handleBounds||null,n=t&&e?.width&&e?.height&&typeof e?.positionAbsolute?.x<"u"&&typeof e?.positionAbsolute?.y<"u";return[{x:e?.positionAbsolute?.x||0,y:e?.positionAbsolute?.y||0,width:e?.width||0,height:e?.height||0},t,!!n]}const gSr=[{level:0,isMaxLevel:!0,edges:[]}];function vSr(e,t,n=!1){let r=-1;const i=e.reduce((o,s)=>{const l=wp(s.zIndex);let c=l?s.zIndex:0;if(n){const u=t.get(s.target),d=t.get(s.source),f=s.selected||u?.selected||d?.selected,p=Math.max(d?.[Ls]?.z||0,u?.[Ls]?.z||0,1e3);c=(l?s.zIndex:0)+(f?p:0)}return o[c]?o[c].push(s):o[c]=[s],r=c>r?c:r,o},{}),a=Object.entries(i).map(([o,s])=>{const l=+o;return{edges:s,level:l,isMaxLevel:l===r}});return a.length===0?gSr:a}function ySr(e,t,n){const r=el(b.useCallback(i=>e?i.edges.filter(a=>{const o=t.get(a.source),s=t.get(a.target);return o?.width&&o?.height&&s?.width&&s?.height&&mSr({sourcePos:o.positionAbsolute||{x:0,y:0},targetPos:s.positionAbsolute||{x:0,y:0},sourceWidth:o.width,sourceHeight:o.height,targetWidth:s.width,targetHeight:s.height,width:i.width,height:i.height,transform:i.transform})}):i.edges,[e,t]));return vSr(r,t,n)}const bSr=({color:e="none",strokeWidth:t=1})=>se.createElement("polyline",{style:{stroke:e,strokeWidth:t},strokeLinecap:"round",strokeLinejoin:"round",fill:"none",points:"-5,-4 0,0 -5,4"}),_Sr=({color:e="none",strokeWidth:t=1})=>se.createElement("polyline",{style:{stroke:e,fill:e,strokeWidth:t},strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"}),wke={[RB.Arrow]:bSr,[RB.ArrowClosed]:_Sr};function SSr(e){const t=Ac();return b.useMemo(()=>Object.prototype.hasOwnProperty.call(wke,e)?wke[e]:(t.getState().onError?.("009",f0.error009(e)),null),[e])}const ESr=({id:e,type:t,color:n,width:r=12.5,height:i=12.5,markerUnits:a="strokeWidth",strokeWidth:o,orient:s="auto-start-reverse"})=>{const l=SSr(t);return l?se.createElement("marker",{className:"react-flow__arrowhead",id:e,markerWidth:`${r}`,markerHeight:`${i}`,viewBox:"-10 -10 20 20",markerUnits:a,orient:s,refX:"0",refY:"0"},se.createElement(l,{color:n,strokeWidth:o})):null},CSr=({defaultColor:e,rfId:t})=>n=>{const r=[];return n.edges.reduce((i,a)=>([a.markerStart,a.markerEnd].forEach(o=>{if(o&&typeof o=="object"){const s=Sle(o,t);r.includes(s)||(i.push({id:s,color:o.color||e,...o}),r.push(s))}}),i),[]).sort((i,a)=>i.id.localeCompare(a.id))},Nct=({defaultColor:e,rfId:t})=>{const n=el(b.useCallback(CSr({defaultColor:e,rfId:t}),[e,t]),(r,i)=>!(r.length!==i.length||r.some((a,o)=>a.id!==i[o].id)));return se.createElement("defs",null,n.map(r=>se.createElement(ESr,{id:r.id,key:r.id,type:r.type,color:r.color,width:r.width,height:r.height,markerUnits:r.markerUnits,strokeWidth:r.strokeWidth,orient:r.orient})))};Nct.displayName="MarkerDefinitions";var wSr=b.memo(Nct);const xSr=e=>({nodesConnectable:e.nodesConnectable,edgesFocusable:e.edgesFocusable,edgesUpdatable:e.edgesUpdatable,elementsSelectable:e.elementsSelectable,width:e.width,height:e.height,connectionMode:e.connectionMode,nodeInternals:e.nodeInternals,onError:e.onError}),Oct=({defaultMarkerColor:e,onlyRenderVisibleElements:t,elevateEdgesOnSelect:n,rfId:r,edgeTypes:i,noPanClassName:a,onEdgeContextMenu:o,onEdgeMouseEnter:s,onEdgeMouseMove:l,onEdgeMouseLeave:c,onEdgeClick:u,onEdgeDoubleClick:d,onReconnect:f,onReconnectStart:p,onReconnectEnd:h,reconnectRadius:m,children:g,disableKeyboardA11y:v})=>{const{edgesFocusable:y,edgesUpdatable:_,elementsSelectable:S,width:C,height:w,connectionMode:x,nodeInternals:T,onError:A}=el(xSr,kd),I=ySr(t,T,n);return C?se.createElement(se.Fragment,null,I.map(({level:R,edges:N,isMaxLevel:P})=>se.createElement("svg",{key:R,style:{zIndex:R},width:C,height:w,className:"react-flow__edges react-flow__container"},P&&se.createElement(wSr,{defaultColor:e,rfId:r}),se.createElement("g",null,N.map(L=>{const[$,D,z]=Cke(T.get(L.source)),[U,H,M]=Cke(T.get(L.target));if(!z||!M)return null;let B=L.type||"default";i[B]||(A?.("011",f0.error011(B)),B="default");const k=i[B]||i.default,F=x===cC.Strict?H.target:(H.target??[]).concat(H.source??[]),G=Eke(D.source,L.sourceHandle),q=Eke(F,L.targetHandle),W=G?.position||xr.Bottom,K=q?.position||xr.Top,J=!!(L.focusable||y&&typeof L.focusable>"u"),te=L.reconnectable||L.updatable,ae=typeof f<"u"&&(te||_&&typeof te>"u");if(!G||!q)return A?.("008",f0.error008(G,L)),null;const{sourceX:re,sourceY:ue,targetX:de,targetY:fe}=hSr($,G,W,U,q,K);return se.createElement(k,{key:L.id,id:L.id,className:Kp([L.className,a]),type:B,data:L.data,selected:!!L.selected,animated:!!L.animated,hidden:!!L.hidden,label:L.label,labelStyle:L.labelStyle,labelShowBg:L.labelShowBg,labelBgStyle:L.labelBgStyle,labelBgPadding:L.labelBgPadding,labelBgBorderRadius:L.labelBgBorderRadius,style:L.style,source:L.source,target:L.target,sourceHandleId:L.sourceHandle,targetHandleId:L.targetHandle,markerEnd:L.markerEnd,markerStart:L.markerStart,sourceX:re,sourceY:ue,targetX:de,targetY:fe,sourcePosition:W,targetPosition:K,elementsSelectable:S,onContextMenu:o,onMouseEnter:s,onMouseMove:l,onMouseLeave:c,onClick:u,onEdgeDoubleClick:d,onReconnect:f,onReconnectStart:p,onReconnectEnd:h,reconnectRadius:m,rfId:r,ariaLabel:L.ariaLabel,isFocusable:J,isReconnectable:ae,pathOptions:"pathOptions"in L?L.pathOptions:void 0,interactionWidth:L.interactionWidth,disableKeyboardA11y:v})})))),g):null};Oct.displayName="EdgeRenderer";var TSr=b.memo(Oct);const ISr=e=>`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]})`;function ASr({children:e}){const t=el(ISr);return se.createElement("div",{className:"react-flow__viewport react-flow__container",style:{transform:t}},e)}function RSr(e){const t=_ct(),n=b.useRef(!1);b.useEffect(()=>{!n.current&&t.viewportInitialized&&e&&(setTimeout(()=>e(t),1),n.current=!0)},[e,t.viewportInitialized])}const NSr={[xr.Left]:xr.Right,[xr.Right]:xr.Left,[xr.Top]:xr.Bottom,[xr.Bottom]:xr.Top},Lct=({nodeId:e,handleType:t,style:n,type:r=ab.Bezier,CustomComponent:i,connectionStatus:a})=>{const{fromNode:o,handleId:s,toX:l,toY:c,connectionMode:u}=el(b.useCallback(w=>({fromNode:w.nodeInternals.get(e),handleId:w.connectionHandleId,toX:(w.connectionPosition.x-w.transform[0])/w.transform[2],toY:(w.connectionPosition.y-w.transform[1])/w.transform[2],connectionMode:w.connectionMode}),[e]),kd),d=o?.[Ls]?.handleBounds;let f=d?.[t];if(u===cC.Loose&&(f=f||d?.[t==="source"?"target":"source"]),!o||!f)return null;const p=s?f.find(w=>w.id===s):f[0],h=p?p.x+p.width/2:(o.width??0)/2,m=p?p.y+p.height/2:o.height??0,g=(o.positionAbsolute?.x??0)+h,v=(o.positionAbsolute?.y??0)+m,y=p?.position,_=y?NSr[y]:null;if(!y||!_)return null;if(i)return se.createElement(i,{connectionLineType:r,connectionLineStyle:n,fromNode:o,fromHandle:p,fromX:g,fromY:v,toX:l,toY:c,fromPosition:y,toPosition:_,connectionStatus:a});let S="";const C={sourceX:g,sourceY:v,sourcePosition:y,targetX:l,targetY:c,targetPosition:_};return r===ab.Bezier?[S]=ect(C):r===ab.Step?[S]=_le({...C,borderRadius:0}):r===ab.SmoothStep?[S]=_le(C):r===ab.SimpleBezier?[S]=Jlt(C):S=`M${g},${v} ${l},${c}`,se.createElement("path",{d:S,fill:"none",className:"react-flow__connection-path",style:n})};Lct.displayName="ConnectionLine";const OSr=e=>({nodeId:e.connectionNodeId,handleType:e.connectionHandleType,nodesConnectable:e.nodesConnectable,connectionStatus:e.connectionStatus,width:e.width,height:e.height});function LSr({containerStyle:e,style:t,type:n,component:r}){const{nodeId:i,handleType:a,nodesConnectable:o,width:s,height:l,connectionStatus:c}=el(OSr,kd);return!(i&&a&&s&&o)?null:se.createElement("svg",{style:e,width:s,height:l,className:"react-flow__edges react-flow__connectionline react-flow__container"},se.createElement("g",{className:Kp(["react-flow__connection",c])},se.createElement(Lct,{nodeId:i,handleType:a,style:t,type:n,CustomComponent:r,connectionStatus:c})))}function xke(e,t){return b.useRef(null),Ac(),b.useMemo(()=>t(e),[e])}const Pct=({nodeTypes:e,edgeTypes:t,onMove:n,onMoveStart:r,onMoveEnd:i,onInit:a,onNodeClick:o,onEdgeClick:s,onNodeDoubleClick:l,onEdgeDoubleClick:c,onNodeMouseEnter:u,onNodeMouseMove:d,onNodeMouseLeave:f,onNodeContextMenu:p,onSelectionContextMenu:h,onSelectionStart:m,onSelectionEnd:g,connectionLineType:v,connectionLineStyle:y,connectionLineComponent:_,connectionLineContainerStyle:S,selectionKeyCode:C,selectionOnDrag:w,selectionMode:x,multiSelectionKeyCode:T,panActivationKeyCode:A,zoomActivationKeyCode:I,deleteKeyCode:R,onlyRenderVisibleElements:N,elementsSelectable:P,selectNodesOnDrag:L,defaultViewport:$,translateExtent:D,minZoom:z,maxZoom:U,preventScrolling:H,defaultMarkerColor:M,zoomOnScroll:B,zoomOnPinch:k,panOnScroll:F,panOnScrollSpeed:G,panOnScrollMode:q,zoomOnDoubleClick:W,panOnDrag:K,onPaneClick:J,onPaneMouseEnter:te,onPaneMouseMove:ae,onPaneMouseLeave:re,onPaneScroll:ue,onPaneContextMenu:de,onEdgeContextMenu:fe,onEdgeMouseEnter:ge,onEdgeMouseMove:oe,onEdgeMouseLeave:Ee,onReconnect:ce,onReconnectStart:he,onReconnectEnd:ye,reconnectRadius:me,noDragClassName:_e,noWheelClassName:Te,noPanClassName:xe,elevateEdgesOnSelect:De,disableKeyboardA11y:Pe,nodeOrigin:Le,nodeExtent:ze,rfId:Be})=>{const je=xke(e,oSr),Ye=xke(t,pSr);return RSr(a),se.createElement(iSr,{onPaneClick:J,onPaneMouseEnter:te,onPaneMouseMove:ae,onPaneMouseLeave:re,onPaneContextMenu:de,onPaneScroll:ue,deleteKeyCode:R,selectionKeyCode:C,selectionOnDrag:w,selectionMode:x,onSelectionStart:m,onSelectionEnd:g,multiSelectionKeyCode:T,panActivationKeyCode:A,zoomActivationKeyCode:I,elementsSelectable:P,onMove:n,onMoveStart:r,onMoveEnd:i,zoomOnScroll:B,zoomOnPinch:k,zoomOnDoubleClick:W,panOnScroll:F,panOnScrollSpeed:G,panOnScrollMode:q,panOnDrag:K,defaultViewport:$,translateExtent:D,minZoom:z,maxZoom:U,onSelectionContextMenu:h,preventScrolling:H,noDragClassName:_e,noWheelClassName:Te,noPanClassName:xe,disableKeyboardA11y:Pe},se.createElement(ASr,null,se.createElement(TSr,{edgeTypes:Ye,onEdgeClick:s,onEdgeDoubleClick:c,onlyRenderVisibleElements:N,onEdgeContextMenu:fe,onEdgeMouseEnter:ge,onEdgeMouseMove:oe,onEdgeMouseLeave:Ee,onReconnect:ce,onReconnectStart:he,onReconnectEnd:ye,reconnectRadius:me,defaultMarkerColor:M,noPanClassName:xe,elevateEdgesOnSelect:!!De,disableKeyboardA11y:Pe,rfId:Be},se.createElement(LSr,{style:y,type:v,component:_,containerStyle:S})),se.createElement("div",{className:"react-flow__edgelabel-renderer"}),se.createElement(cSr,{nodeTypes:je,onNodeClick:o,onNodeDoubleClick:l,onNodeMouseEnter:u,onNodeMouseMove:d,onNodeMouseLeave:f,onNodeContextMenu:p,selectNodesOnDrag:L,onlyRenderVisibleElements:N,noPanClassName:xe,noDragClassName:_e,disableKeyboardA11y:Pe,nodeOrigin:Le,nodeExtent:ze,rfId:Be})))};Pct.displayName="GraphView";var PSr=b.memo(Pct);const xle=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],Iy={rfId:"1",width:0,height:0,transform:[0,0,1],nodeInternals:new Map,edges:[],onNodesChange:null,onEdgesChange:null,hasDefaultNodes:!1,hasDefaultEdges:!1,d3Zoom:null,d3Selection:null,d3ZoomHandler:void 0,minZoom:.5,maxZoom:2,translateExtent:xle,nodeExtent:xle,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionNodeId:null,connectionHandleId:null,connectionHandleType:"source",connectionPosition:{x:0,y:0},connectionStatus:null,connectionMode:cC.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:[0,0],nodeDragThreshold:0,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesUpdatable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,fitViewOnInit:!1,fitViewOnInitDone:!1,fitViewOnInitOptions:void 0,onSelectionChange:[],multiSelectionActive:!1,connectionStartHandle:null,connectionEndHandle:null,connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,connectionRadius:20,onError:s2r,isValidConnection:void 0},kSr=()=>y0r((e,t)=>({...Iy,setNodes:n=>{const{nodeInternals:r,nodeOrigin:i,elevateNodesOnSelect:a}=t();e({nodeInternals:Cte(n,r,i,a)})},getNodes:()=>Array.from(t().nodeInternals.values()),setEdges:n=>{const{defaultEdgeOptions:r={}}=t();e({edges:n.map(i=>({...r,...i}))})},setDefaultNodesAndEdges:(n,r)=>{const i=typeof n<"u",a=typeof r<"u",o=i?Cte(n,new Map,t().nodeOrigin,t().elevateNodesOnSelect):new Map;e({nodeInternals:o,edges:a?r:[],hasDefaultNodes:i,hasDefaultEdges:a})},updateNodeDimensions:n=>{const{onNodesChange:r,nodeInternals:i,fitViewOnInit:a,fitViewOnInitDone:o,fitViewOnInitOptions:s,domNode:l,nodeOrigin:c}=t(),u=l?.querySelector(".react-flow__viewport");if(!u)return;const d=window.getComputedStyle(u),{m22:f}=new window.DOMMatrixReadOnly(d.transform),p=n.reduce((m,g)=>{const v=i.get(g.id);if(v?.hidden)i.set(v.id,{...v,[Ls]:{...v[Ls],handleBounds:void 0}});else if(v){const y=eve(g.nodeElement);!!(y.width&&y.height&&(v.width!==y.width||v.height!==y.height||g.forceUpdate))&&(i.set(v.id,{...v,[Ls]:{...v[Ls],handleBounds:{source:yke(".source",g.nodeElement,f,c),target:yke(".target",g.nodeElement,f,c)}},...y}),m.push({id:v.id,type:"dimensions",dimensions:y}))}return m},[]);yct(i,c);const h=o||a&&!o&&bct(t,{initial:!0,...s});e({nodeInternals:new Map(i),fitViewOnInitDone:h}),p?.length>0&&r?.(p)},updateNodePositions:(n,r=!0,i=!1)=>{const{triggerNodeChanges:a}=t(),o=n.map(s=>{const l={id:s.id,type:"position",dragging:i};return r&&(l.positionAbsolute=s.positionAbsolute,l.position=s.position),l});a(o)},triggerNodeChanges:n=>{const{onNodesChange:r,nodeInternals:i,hasDefaultNodes:a,nodeOrigin:o,getNodes:s,elevateNodesOnSelect:l}=t();if(n?.length){if(a){const c=Ect(n,s()),u=Cte(c,i,o,l);e({nodeInternals:u})}r?.(n)}},addSelectedNodes:n=>{const{multiSelectionActive:r,edges:i,getNodes:a}=t();let o,s=null;r?o=n.map(l=>Jy(l,!0)):(o=l5(a(),n),s=l5(i,[])),y9({changedNodes:o,changedEdges:s,get:t,set:e})},addSelectedEdges:n=>{const{multiSelectionActive:r,edges:i,getNodes:a}=t();let o,s=null;r?o=n.map(l=>Jy(l,!0)):(o=l5(i,n),s=l5(a(),[])),y9({changedNodes:s,changedEdges:o,get:t,set:e})},unselectNodesAndEdges:({nodes:n,edges:r}={})=>{const{edges:i,getNodes:a}=t(),o=n||a(),s=r||i,l=o.map(u=>(u.selected=!1,Jy(u.id,!1))),c=s.map(u=>Jy(u.id,!1));y9({changedNodes:l,changedEdges:c,get:t,set:e})},setMinZoom:n=>{const{d3Zoom:r,maxZoom:i}=t();r?.scaleExtent([n,i]),e({minZoom:n})},setMaxZoom:n=>{const{d3Zoom:r,minZoom:i}=t();r?.scaleExtent([i,n]),e({maxZoom:n})},setTranslateExtent:n=>{t().d3Zoom?.translateExtent(n),e({translateExtent:n})},resetSelectedElements:()=>{const{edges:n,getNodes:r}=t(),a=r().filter(s=>s.selected).map(s=>Jy(s.id,!1)),o=n.filter(s=>s.selected).map(s=>Jy(s.id,!1));y9({changedNodes:a,changedEdges:o,get:t,set:e})},setNodeExtent:n=>{const{nodeInternals:r}=t();r.forEach(i=>{i.positionAbsolute=tve(i.position,n)}),e({nodeExtent:n,nodeInternals:new Map(r)})},panBy:n=>{const{transform:r,width:i,height:a,d3Zoom:o,d3Selection:s,translateExtent:l}=t();if(!o||!s||!n.x&&!n.y)return!1;const c=X1.translate(r[0]+n.x,r[1]+n.y).scale(r[2]),u=[[0,0],[i,a]],d=o?.constrain()(c,u,l);return o.transform(s,d),r[0]!==d.x||r[1]!==d.y||r[2]!==d.k},cancelConnection:()=>e({connectionNodeId:Iy.connectionNodeId,connectionHandleId:Iy.connectionHandleId,connectionHandleType:Iy.connectionHandleType,connectionStatus:Iy.connectionStatus,connectionStartHandle:Iy.connectionStartHandle,connectionEndHandle:Iy.connectionEndHandle}),reset:()=>e({...Iy})}),Object.is),DH=({children:e})=>{const t=b.useRef(null);return t.current||(t.current=kSr()),se.createElement(Q_r,{value:t.current},e)};DH.displayName="ReactFlowProvider";const kct=({children:e})=>b.useContext(kH)?se.createElement(se.Fragment,null,e):se.createElement(DH,null,e);kct.displayName="ReactFlowWrapper";const MSr={input:dct,default:Cle,output:pct,group:cve},DSr={default:NB,straight:ave,step:ive,smoothstep:MH,simplebezier:rve},$Sr=[0,0],FSr=[15,15],BSr={x:0,y:0,zoom:1},jSr={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0},zSr=b.forwardRef(({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,className:i,nodeTypes:a=MSr,edgeTypes:o=DSr,onNodeClick:s,onEdgeClick:l,onInit:c,onMove:u,onMoveStart:d,onMoveEnd:f,onConnect:p,onConnectStart:h,onConnectEnd:m,onClickConnectStart:g,onClickConnectEnd:v,onNodeMouseEnter:y,onNodeMouseMove:_,onNodeMouseLeave:S,onNodeContextMenu:C,onNodeDoubleClick:w,onNodeDragStart:x,onNodeDrag:T,onNodeDragStop:A,onNodesDelete:I,onEdgesDelete:R,onSelectionChange:N,onSelectionDragStart:P,onSelectionDrag:L,onSelectionDragStop:$,onSelectionContextMenu:D,onSelectionStart:z,onSelectionEnd:U,connectionMode:H=cC.Strict,connectionLineType:M=ab.Bezier,connectionLineStyle:B,connectionLineComponent:k,connectionLineContainerStyle:F,deleteKeyCode:G="Backspace",selectionKeyCode:q="Shift",selectionOnDrag:W=!1,selectionMode:K=M6.Full,panActivationKeyCode:J="Space",multiSelectionKeyCode:te=AB()?"Meta":"Control",zoomActivationKeyCode:ae=AB()?"Meta":"Control",snapToGrid:re=!1,snapGrid:ue=FSr,onlyRenderVisibleElements:de=!1,selectNodesOnDrag:fe=!0,nodesDraggable:ge,nodesConnectable:oe,nodesFocusable:Ee,nodeOrigin:ce=$Sr,edgesFocusable:he,edgesUpdatable:ye,elementsSelectable:me,defaultViewport:_e=BSr,minZoom:Te=.5,maxZoom:xe=2,translateExtent:De=xle,preventScrolling:Pe=!0,nodeExtent:Le,defaultMarkerColor:ze="#b1b1b7",zoomOnScroll:Be=!0,zoomOnPinch:je=!0,panOnScroll:Ye=!1,panOnScrollSpeed:Ze=.5,panOnScrollMode:Ke=KS.Free,zoomOnDoubleClick:qe=!0,panOnDrag:nt=!0,onPaneClick:Qe,onPaneMouseEnter:it,onPaneMouseMove:yt,onPaneMouseLeave:Wt,onPaneScroll:Mt,onPaneContextMenu:tn,children:Rt,onEdgeContextMenu:Dt,onEdgeDoubleClick:Pt,onEdgeMouseEnter:Ot,onEdgeMouseMove:sn,onEdgeMouseLeave:Jt,onEdgeUpdate:Vt,onEdgeUpdateStart:pt,onEdgeUpdateEnd:tt,onReconnect:dt,onReconnectStart:Et,onReconnectEnd:St,reconnectRadius:zt=10,edgeUpdaterRadius:nn=10,onNodesChange:wn,onEdgesChange:kn,noDragClassName:fn="nodrag",noWheelClassName:an="nowheel",noPanClassName:Ht="nopan",fitView:mn=!1,fitViewOptions:Tn,connectOnClick:An=!0,attributionPosition:nr,proOptions:un,defaultEdgeOptions:et,elevateNodesOnSelect:Ct=!0,elevateEdgesOnSelect:Q=!1,disableKeyboardA11y:Y=!1,autoPanOnConnect:ee=!0,autoPanOnNodeDrag:le=!0,connectionRadius:Se=20,isValidConnection:Ae,onError:He,style:at,id:wt,nodeDragThreshold:ft,...Lt},kt)=>{const Gt=wt||"1";return se.createElement("div",{...Lt,style:{...at,...jSr},ref:kt,className:Kp(["react-flow",i]),"data-testid":"rf__wrapper",id:wt},se.createElement(kct,null,se.createElement(PSr,{onInit:c,onMove:u,onMoveStart:d,onMoveEnd:f,onNodeClick:s,onEdgeClick:l,onNodeMouseEnter:y,onNodeMouseMove:_,onNodeMouseLeave:S,onNodeContextMenu:C,onNodeDoubleClick:w,nodeTypes:a,edgeTypes:o,connectionLineType:M,connectionLineStyle:B,connectionLineComponent:k,connectionLineContainerStyle:F,selectionKeyCode:q,selectionOnDrag:W,selectionMode:K,deleteKeyCode:G,multiSelectionKeyCode:te,panActivationKeyCode:J,zoomActivationKeyCode:ae,onlyRenderVisibleElements:de,selectNodesOnDrag:fe,defaultViewport:_e,translateExtent:De,minZoom:Te,maxZoom:xe,preventScrolling:Pe,zoomOnScroll:Be,zoomOnPinch:je,zoomOnDoubleClick:qe,panOnScroll:Ye,panOnScrollSpeed:Ze,panOnScrollMode:Ke,panOnDrag:nt,onPaneClick:Qe,onPaneMouseEnter:it,onPaneMouseMove:yt,onPaneMouseLeave:Wt,onPaneScroll:Mt,onPaneContextMenu:tn,onSelectionContextMenu:D,onSelectionStart:z,onSelectionEnd:U,onEdgeContextMenu:Dt,onEdgeDoubleClick:Pt,onEdgeMouseEnter:Ot,onEdgeMouseMove:sn,onEdgeMouseLeave:Jt,onReconnect:dt??Vt,onReconnectStart:Et??pt,onReconnectEnd:St??tt,reconnectRadius:zt??nn,defaultMarkerColor:ze,noDragClassName:fn,noWheelClassName:an,noPanClassName:Ht,elevateEdgesOnSelect:Q,rfId:Gt,disableKeyboardA11y:Y,nodeOrigin:ce,nodeExtent:Le}),se.createElement(N2r,{nodes:e,edges:t,defaultNodes:n,defaultEdges:r,onConnect:p,onConnectStart:h,onConnectEnd:m,onClickConnectStart:g,onClickConnectEnd:v,nodesDraggable:ge,nodesConnectable:oe,nodesFocusable:Ee,edgesFocusable:he,edgesUpdatable:ye,elementsSelectable:me,elevateNodesOnSelect:Ct,minZoom:Te,maxZoom:xe,nodeExtent:Le,onNodesChange:wn,onEdgesChange:kn,snapToGrid:re,snapGrid:ue,connectionMode:H,translateExtent:De,connectOnClick:An,defaultEdgeOptions:et,fitView:mn,fitViewOptions:Tn,onNodesDelete:I,onEdgesDelete:R,onNodeDragStart:x,onNodeDrag:T,onNodeDragStop:A,onSelectionDrag:L,onSelectionDragStart:P,onSelectionDragStop:$,noPanClassName:Ht,nodeOrigin:ce,rfId:Gt,autoPanOnConnect:ee,autoPanOnNodeDrag:le,onError:He,connectionRadius:Se,isValidConnection:Ae,nodeDragThreshold:ft}),se.createElement(A2r,{onSelectionChange:N}),Rt,se.createElement(t2r,{proOptions:un,position:nr}),se.createElement(M2r,{rfId:Gt,disableKeyboardA11y:Y})))});zSr.displayName="ReactFlow";function Mct(e){return t=>{const[n,r]=b.useState(t),i=b.useCallback(a=>r(o=>e(a,o)),[]);return[n,r,i]}}const BOr=Mct(Ect),jOr=Mct(K2r);function USr(e,t,n){const{navigator:r}=b.useContext(lv),i=b.useRef({});b.useEffect(()=>{if(!e)return;const{push:a}=r;return r.push=(...o)=>{!n&&e&&(t(),i.current=o),e||a(...o)},n&&a(i.current[0]),()=>{r.push=a}},[r,t,n,e])}function Dct(e,t){const[n,r]=b.useState(!1);b.useEffect(()=>(t&&(window.onbeforeunload=function(){return e}),()=>{window.onbeforeunload=null}),[e,t]);const i=b.useCallback(async()=>t?wi.confirm({title:gfn,content:e,okText:vfn,cancelText:yfn,okButtonProps:{type:"primary",danger:!0},styles:{body:{padding:12}},onOk(){wi.destroyAll(),r(!0)},onCancel(){wi.destroyAll(),r(!1)}}):!0,[e,t]);return USr(t,i,n)}const $ct="Save",Fct="Reset",Bct="Deploy",jct="Deploying",LB="Undeploy",zct="Draft",Uct="Brings back the last saved version.",HSr="Code Editor",VSr="Pipeline Preview",Tle="Show diff",Tke="Pipeline Studio",Hct={productionPipelines:Pn('Editing production pipelines is not allowed. To edit this pipeline, change its service level to "development". After saving your changes, %link%.',{link:L5(`${zu}reference/update_pipeline_api_v1_workspaces__workspace_name__pipelines__pipeline_name__patch`,'promote it back to "production"')})},Vct="You'll lose your changes if you leave without saving. Do you want to stay on the page and save your changes?",GSr="The date_meta_field name must be updated to reflect the metadata in your files or your files must be updated to reflect the date_meta_field name.",qSr="The OpenAI API key is missing or invalid. Go to %connections% and paste the key there.",WSr=[{key:fc.INDEXING_YAML,label:"Indexing Pipeline"},{key:fc.QUERY_YAML,label:"Query Pipeline"}],YSr="_popoverMessage_10bhg_13",KSr="_popoverMessage_issuesIcon_10bhg_19",XSr="_popoverMessage_popover_10bhg_22",ZSr="_withExtraMenu_10bhg_32",QSr="_alertPopover_10bhg_37",JSr="_alertLink_10bhg_41",Ay={popoverMessage:YSr,popoverMessage_issuesIcon:KSr,popoverMessage_popover:XSr,withExtraMenu:ZSr,alertPopover:QSr,alertLink:JSr},dve=e=>{const{errors:t,withExtraMenu:n}=e,r=ys(),[i,a]=b.useState(!0),o=()=>{const s=[];return t.forEach(l=>{l.title===Mae?s.push(E.jsx(Ka,{className:Ay.alertPopover,description:Pn(qSr,{connections:E.jsx(ut,{type:"link",className:Ay.alertLink,onClick:()=>r("/settings/connections"),children:Dhn})}),type:l.type,showIcon:!0},l.title)):l.title===dZe?s.push(E.jsx(Ka,{className:Ay.alertPopover,description:GSr,type:l.type,showIcon:!0},l.title)):s.push(E.jsx(Ka,{className:Ay.alertPopover,description:l.content,type:l.type,showIcon:!0},l.title))}),s};return E.jsx("div",{className:`${Ay.popoverMessage} ${n?Ay.withExtraMenu:""}`,children:E.jsx(tv,{content:o(),title:_we,trigger:"click",open:i,onOpenChange:s=>a(s),placement:"topRight",rootClassName:Ay.popoverMessage_popover,children:i?E.jsx(ut,{icon:E.jsx(Ic,{})}):E.jsx(ut,{icon:E.jsx(__,{className:Ay.popoverMessage_issuesIcon}),children:_we})})})},eEr="_confirmationModal_45ncx_13",tEr="_confirmationModal_content_45ncx_20",nEr="_confirmationModal_content_icon_45ncx_26",rEr="_confirmationModal_pipelineName_45ncx_30",iEr="_confirmationModal_pipelineNameInput_45ncx_33",aEr="_confirmationModal_list_45ncx_36",oEr="_confirmationModal_marginList_45ncx_40",sEr="_confirmationModal_prodList_45ncx_43",dg={confirmationModal:eEr,confirmationModal_content:tEr,confirmationModal_content_icon:nEr,confirmationModal_pipelineName:rEr,confirmationModal_pipelineNameInput:iEr,confirmationModal_list:aEr,confirmationModal_marginList:oEr,confirmationModal_prodList:sEr},$H=e=>{const{open:t,okText:n,onOk:r,cancelText:i,onCancel:a,pipelines:o,undeployingPipeline:s}=e,[l,c]=b.useState([]);b.useEffect(()=>{o.length>0&&o.forEach(_=>{_.service_level===Li.PRODUCTION&&l.find(S=>S.pipeline_id===_.pipeline_id)===void 0&&c(S=>[...S,{..._,inputValue:""}])})},[o]);const u=()=>{c([]),a()},d=()=>{c([]),r()},f=()=>s?Ipn:o.length>1?Tpn:xpn,p=()=>s&&o.length===1&&o[0].service_level!==Li.PRODUCTION?Zhn:o.length>1?Khn:o.length===1&&o[0].service_level!==Li.PRODUCTION?qhn:"",h=()=>s?Qhn:Whn,m=()=>s?Jhn:o.length>1?Xhn:Yhn,g=()=>l.length>0?l.some(_=>_.inputValue!==_.name):!1,v=()=>!(s&&o.length===1&&o[0].service_level!==Li.PRODUCTION),y=()=>E.jsxs(E.Fragment,{children:[E.jsx("h5",{children:f()}),o.length===1&&o[0].service_level===Li.PRODUCTION&&h(),E.jsx("div",{className:`${l.length>0?dg.confirmationModal_marginList:""}`,children:Pn(p(),{pipelineName:E.jsx(E.Fragment,{children:o.map(_=>E.jsx("span",{className:dg.confirmationModal_pipelineName,children:_.name},_.pipeline_id))}),pipelineCount:E.jsx("span",{children:o?.length}),pipelineList:E.jsx("ul",{className:dg.confirmationModal_list,children:o?.map(_=>E.jsx("li",{children:E.jsx("span",{className:dg.confirmationModal_pipelineName,children:_.name})},_.pipeline_id))})})}),l.map(_=>E.jsxs("div",{className:dg.confirmationModal_prodList,children:[E.jsx("span",{children:Pn(m(),{pipelineName:E.jsx("span",{className:dg.confirmationModal_pipelineName,children:_.name})})}),E.jsx($r,{value:_.inputValue,onChange:S=>{const C=l.map(w=>w.pipeline_id===_.pipeline_id?{...w,inputValue:S.target.value}:w);c(C)},className:dg.confirmationModal_pipelineNameInput,placeholder:cZe})]},_.name))]});return E.jsx(wi,{open:t,onOk:()=>d(),onCancel:()=>u(),okText:n,cancelText:i,className:dg.confirmationModal,closeIcon:!1,centered:!0,okButtonProps:{danger:v(),disabled:g(),"data-testid":"undeployDeletePipeline_okButton"},children:E.jsxs("div",{className:dg.confirmationModal_content,children:[E.jsx("div",{className:dg.confirmationModal_content_icon,children:E.jsx(c3,{})}),E.jsx("div",{children:y()})]})})},lEr=(e,t,n)=>{const r=ir(),i=async o=>{await r(NU({pipelineName:t,serviceLevel:o})),n&&n()};return{changeServiceLevel:()=>{e===Li.PRODUCTION?i(Li.DEVELOPMENT):e===Li.DEVELOPMENT&&i(Li.PRODUCTION)}}},cEr="_switch_pipelineName_rsp6p_19",Ite={switch:"_switch_rsp6p_13",switch_pipelineName:cEr},fve=e=>{const{serviceLevel:t,pipelineName:n,afterSwitch:r,size:i}=e,[a,o]=wi.useModal(),{changeServiceLevel:s}=lEr(t,n,r),l=()=>{a.confirm({title:t===Li.PRODUCTION?Hhn:Uhn,icon:E.jsx(c3,{}),onOk:r?s:()=>{},content:t===Li.PRODUCTION?Pn(Ghn,{pipelineName:E.jsx("span",{className:Ite.switch_pipelineName,children:n})}):Pn(Vhn,{pipelineName:E.jsx("span",{className:Ite.switch_pipelineName,children:n})}),okText:t===Li.PRODUCTION?zhn:jhn,cancelText:gm})};return E.jsxs("div",{className:Ite.switch,children:[E.jsx($p,{size:i,value:t===Li.PRODUCTION,onClick:()=>l(),disabled:t===Li.DRAFT}),o]})},uEr="_container_11wkk_35",dEr="_settings_11wkk_51",fEr="_settings_nameContent_11wkk_58",pEr="_settings_name_11wkk_58",hEr="_settings_name_editName_11wkk_68",mEr="_settings_name_input_11wkk_71",gEr="_settings_name_input_error_11wkk_74",vEr="_settings_icon_11wkk_80",yEr="_settings_pipelineStatus_11wkk_88",bEr="_settings_badge_11wkk_92",_Er="_settings_actions_11wkk_95",SEr="_status_text_11wkk_102",EEr="_pipelineDesigner_alertLink_11wkk_109",CEr="_pipelineDesigner_divider_11wkk_112",wEr="_tabContainer_11wkk_116",xEr="_tabContainer_tab_11wkk_122",TEr="_tabContainer_icon_11wkk_129",IEr="_tabContainer_title_11wkk_132",AEr="_tabDivider_11wkk_138",REr="_yaml_11wkk_142",NEr="_yaml_codeEditor_11wkk_149",OEr="_mainTab_11wkk_156",LEr="_secondaryTab_11wkk_160",PEr="_tabExtended_11wkk_164",kEr="_tabNonExtended_11wkk_168",MEr="_resizeButton_11wkk_172",DEr="_resetButton_11wkk_186",$Er="_actionContainer_11wkk_193",FEr="_diffButton_11wkk_197",BEr="_warningMessage_11wkk_206",jEr="_switchServiceLevel_11wkk_210",zEr="_switchServiceLevel_info_11wkk_220",Ti={"auth-content":"_auth-content_11wkk_25","content-wrapper":"_content-wrapper_11wkk_35",container:uEr,"content-wrapper_padding":"_content-wrapper_padding_11wkk_40",settings:dEr,settings_nameContent:fEr,settings_name:pEr,settings_name_editName:hEr,settings_name_input:mEr,settings_name_input_error:gEr,settings_icon:vEr,settings_pipelineStatus:yEr,settings_badge:bEr,settings_actions:_Er,status_text:SEr,pipelineDesigner_alertLink:EEr,pipelineDesigner_divider:CEr,tabContainer:wEr,tabContainer_tab:xEr,tabContainer_icon:TEr,tabContainer_title:IEr,tabDivider:AEr,yaml:REr,yaml_codeEditor:NEr,mainTab:OEr,secondaryTab:LEr,tabExtended:PEr,tabNonExtended:kEr,resizeButton:MEr,resetButton:DEr,actionContainer:$Er,diffButton:FEr,warningMessage:BEr,switchServiceLevel:jEr,switchServiceLevel_info:zEr},UEr=se.lazy(()=>Io(()=>import("./YamlEditor.CB5Tkggl.js").then(e=>e.b),__vite__mapDeps([8,3,4,9]))),HEr=se.lazy(()=>Io(()=>import("./YamlVisualizer.aBQZ_TcA.js"),__vite__mapDeps([12,13,14])));function Ike(){const e=ir(),t=st(WT),n=st(jhe),r=st(Uhe),i=st(YT),a=st(zhe),o=st(c8),{isLimitedUser:s}=st(Pl),{name:l,status:c,edited:u,indexing:d,yaml:f,service_level:p}=t,[h,m]=b.useState(f),[g,v]=b.useState(!1),[y,_]=b.useState(!1),[S,C]=b.useState(!1),[w,x]=b.useState(!1),[T,A]=b.useState(!1),[I,R]=b.useState(!1),[N,P]=b.useState(!1),[L,$]=b.useState(!0),[D,z]=b.useState({type:Er.WARNING,content:""}),U=b.useRef(null),H=b.useRef(null),{pipelineName:M}=dv(),[B,k]=b.useState(M),F=!l||!M,{pending_file_count:G}=d;Dct(Vct,!!u),b.useEffect(()=>()=>{e(Dhe),e(i6),e(Mhe)},[]),b.useEffect(()=>{M&&(e(Yg({pipelineName:M})),e(OF(M)),k(M),e(Aoe),e(NF))},[e,M]);const q=async me=>{await e(i6),e(Fhe(M)),e($he({config:me,deepset_cloud_version:t.deepset_cloud_version}))};b.useEffect(()=>{t.name===M&&r===Me.SUCCESS&&q(t.yaml)},[f,t.name,r]),b.useEffect(()=>{m(f)},[f]),b.useEffect(()=>{B&&l&&B!==l?(e(Aoe),e(NF),$(W1(B))):$(!0)},[B]),b.useEffect(()=>{I&&U.current?.focus({cursor:"end"})},[I]),b.useEffect(()=>{i===Me.SUCCESS&&(e(Yg({pipelineName:B})),e(OF(l||M)))},[i]),b.useEffect(()=>(ts(c)||G>0?e(B5({pipelineName:l})):(e(L3()),v(!1),_(!1)),()=>{e(L3())}),[l,c,G,e]);const W=me=>{m(me),e(Roe(!0))},K=()=>{A(!1),m(f),e(ytt(f)),e(Roe(!1)),q(f)},J=()=>{C(!S),w&&x(!1)},te=()=>{x(!w),S&&C(!1)},ae=me=>{z(me)},re=()=>{p===Li.PRODUCTION&&z({content:Hct.productionPipelines,type:Er.WARNING})},ue=()=>{l&&B&&B!==l&&W1(B)&&e(NU({pipelineName:l,newPipelineName:B}))},de=async()=>{!M&&!l?($(!1),R(!0)):(_(!0),e(VT),(M||l)&&t.pipeline_id?(await e(Ett({code:h,name:l})),q(h)):t.pipeline_id||e(s8({code:h,pipelineName:l})))},fe=()=>!!(p===Li.PRODUCTION||ts(c)),ge=!S&&!w?Ti.mainTab:"",oe=!S&&!w?Ti.secondaryTab:"",Ee=S&&!w?Ti.tabExtended:"",ce=!S&&w?Ti.tabNonExtended:"",he=!S&&w?Ti.tabExtended:"",ye=S&&!w?Ti.tabNonExtended:"";return E.jsxs(E.Fragment,{children:[E.jsxs("div",{className:Ti.container,children:[E.jsxs("div",{className:Ti.settings,children:[E.jsxs("div",{className:`${Ti.settings_name} ${I?Ti.settings_name_editName:""}`,children:[E.jsx("div",{className:Ti.settings_badge,children:E.jsx(XT,{serviceLevel:p})}),I?E.jsxs("div",{className:Ti.settings_nameContent,children:[E.jsx($r,{placeholder:JXe,defaultValue:t.name,className:Ti.settings_name_input,onChange:me=>k(me.target.value),ref:U,status:!L||n===Me.ERROR?"error":"",onBlur:me=>{t.pipeline_id?ue():(k(me.target.value),e(btt(me.target.value))),R(!I)}}),!L&&E.jsx("div",{className:Ti.settings_name_input_error,children:O_.INVALID_CHARACTERS})]}):E.jsx("span",{children:t.name||zct}),E.jsx("div",{className:Ti.settings_icon,children:E.jsx(vr,{title:QXe,children:E.jsx(ut,{type:"text",onClick:()=>R(!I),ref:H,children:E.jsx(vj,{})})})}),E.jsx("div",{className:Ti.settings_pipelineStatus,children:E.jsx(DC,{pipeline:t,getIndexingDetails:me=>e(eC(me)),indexingData:o})})]}),E.jsxs("div",{className:Ti.settings_actions,children:[p!==Li.DRAFT&&!s&&E.jsxs("span",{className:Ti.switchServiceLevel,children:[E.jsx(vr,{placement:"bottom",title:fZe,children:E.jsx(om,{className:Ti.switchServiceLevel_info})}),E.jsx("span",{children:Ppe})," ",E.jsx(fve,{serviceLevel:p,afterSwitch:()=>e(Yg({pipelineName:l})),pipelineName:l,size:"small"})]}),u&&E.jsx(vr,{placement:"bottom",title:Uct,children:E.jsx(ut,{disabled:ts(c),onClick:K,type:"link",className:Ti.resetButton,children:Fct})}),!Jtt(c,p)&&!g&&E.jsx(ut,{type:u||F?"primary":"default",className:Ti.saveButton,disabled:ts(c)||!u&&t.pipeline_id!=="","data-testid":"savePipeline_button",onClick:()=>de(),children:$ct}),j5(c)?E.jsx(ut,{loading:ts(c)||g,onClick:()=>{P(!0)},className:Ti.deployButton,children:c===qn.UNDEPLOYMENT_IN_PROGRESS||c===qn.UNDEPLOYMENT_SCHEDULED?rZe:LB}):E.jsx(ut,{type:"primary",className:Ti.deployButton,disabled:u||t.pipeline_id==="",loading:(ts(c)||g)&&!y,onClick:()=>{v(!0),e(AU(l)),e(B5({pipelineName:l}))},children:(c===qn.DEPLOYMENT_IN_PROGRESS||c===qn.DEPLOYMENT_SCHEDULED)&&!y||g?jct:Bct})]})]}),E.jsx(zi,{className:Ti.pipelineDesigner_divider}),E.jsxs("div",{className:Ti.yaml,children:[E.jsxs("div",{className:`${Ti.tabContainer} ${Ti.tabDivider} ${ge} ${Ee} ${ce}`,children:[E.jsxs("div",{className:Ti.tabContainer_tab,children:[E.jsxs("div",{children:[E.jsx(cDe,{className:Ti.tabContainer_icon}),!w&&E.jsx("span",{className:Ti.tabContainer_title,children:HSr})]}),E.jsxs("div",{className:Ti.actionContainer,children:[u&&!w&&E.jsxs("span",{className:Ti.diffButton,children:[Tle,E.jsx($p,{checked:T,size:"small",onChange:()=>A(!T)})]}),E.jsx(ut,{onClick:()=>J(),className:Ti.resizeButton,children:S?E.jsx(Gne,{}):E.jsx(gye,{})})]})]}),D.content&&E.jsx(Ka,{message:D.content,type:D.type,banner:!0,className:Ti.warningMessage}),E.jsxs("div",{className:Ti.yaml_codeEditor,children:[E.jsx(se.Suspense,{fallback:E.jsx($o,{}),children:E.jsx(UEr,{originalCode:T?f:"",code:h,onStore:W,readOnly:fe(),onDidAttemptReadOnlyEditCode:()=>re()})}),a.length>0&&E.jsx(dve,{errors:a})]})]}),E.jsxs("div",{className:`${Ti.tabContainer} ${oe} ${he} ${ye}`,children:[E.jsxs("div",{className:Ti.tabContainer_tab,children:[E.jsxs("div",{children:[E.jsx(gDe,{className:Ti.tabContainer_icon}),E.jsx("span",{className:Ti.tabContainer_title,children:VSr})]}),E.jsx(ut,{onClick:()=>te(),className:Ti.resizeButton,children:w?E.jsx(Gne,{}):E.jsx(gye,{})})]}),E.jsx(DH,{children:E.jsx(se.Suspense,{fallback:E.jsx($o,{}),children:E.jsx(HEr,{code:h,showMessage:ae,yamlVisualizerExtended:w})})})]})]})]}),E.jsx($H,{open:N,okText:LB,onOk:()=>{v(!0),e(RU(l)),e(B5({pipelineName:l})),P(!1)},cancelText:gm,onCancel:()=>{P(!1)},pipelines:N?[t]:[],undeployingPipeline:!0})]})}const VEr=()=>{const[e,t]=b.useState(!1);return{supportedRawFilePreviewLanguagues:[hc.MARKDOWN],showRawCodeFormat:e,setShowRawCodeFormat:t}},GEr="_listCarousel_wrclx_13",qEr="_listCarousel_options_wrclx_23",WEr="_listCarousel_options_content_wrclx_27",YEr="_listCarousel_options_content_label_wrclx_31",KEr="_listCarousel_options_content_value_wrclx_36",XEr="_listCarousel_arrowButtons_rightButton_wrclx_41",ZEr="_listCarousel_arrowButtons_leftButton_wrclx_46",nS={listCarousel:GEr,listCarousel_options:qEr,listCarousel_options_content:WEr,listCarousel_options_content_label:YEr,listCarousel_options_content_value:KEr,listCarousel_arrowButtons_rightButton:XEr,listCarousel_arrowButtons_leftButton:ZEr},Ake=15,QEr=-10,JEr=10,Ile=({options:e,hideBorderBottom:t})=>{const n=b.useRef(null),[r,i]=b.useState(!1),[a,o]=b.useState(0),[s,l]=b.useState(0),[c,u]=b.useState(0),d=()=>{n.current&&(l(n.current.offsetWidth-50),n.current.offsetWidth<n.current.scrollWidth?i(!0):i(!1),u(n.current.scrollWidth-n.current.offsetWidth))};b.useEffect(()=>{d(),n.current&&n.current.addEventListener("resize",d)}),b.useEffect(()=>()=>{n.current&&n.current.removeEventListener("resize",d)},[]);const f=(p,h,m,g)=>{let v=0;const y=setInterval(()=>{p.scrollLeft+=g,o(p.scrollLeft),v+=Math.abs(g),v>=m&&clearInterval(y)},h)};return E.jsxs("div",{className:nS.listCarousel,children:[E.jsx(zi,{}),E.jsx("div",{className:nS.listCarousel_options,ref:n,children:e.map(({key:p,label:h,value:m},g)=>E.jsxs(se.Fragment,{children:[E.jsxs("div",{className:nS.listCarousel_options_content,children:[E.jsx("small",{className:nS.listCarousel_options_content_label,children:h}),E.jsx("span",{className:nS.listCarousel_options_content_value,children:m})]}),g<e.length-1&&E.jsx(zi,{type:"vertical"})]},p))}),r&&E.jsxs(E.Fragment,{children:[a>0&&E.jsx(ut,{icon:E.jsx(eT,{}),className:nS.listCarousel_arrowButtons_leftButton,onClick:()=>{f(n.current,Ake,s,QEr)}}),a<c&&E.jsx(ut,{icon:E.jsx(mj,{}),className:nS.listCarousel_arrowButtons_rightButton,onClick:()=>{f(n.current,Ake,s,JEr)}})]}),!t&&E.jsx(zi,{})]})},eCr="_container_1m3oh_13",tCr="_wrapper_1m3oh_19",Rke={container:eCr,wrapper:tCr},Gct=({text:e,value:t,icon:n,onSwitchChange:r})=>E.jsxs("div",{className:Rke.container,children:[E.jsxs("div",{className:Rke.wrapper,children:[!!n&&n,E.jsx("span",{children:e})]}),E.jsx($p,{value:t,onChange:r,size:"small"})]}),nCr="_neutralThumb_icon_1yolh_13",rCr={neutralThumb_icon:nCr},qct=({type:e})=>{const t=()=>({[Ia.ACCURATE]:"success",[Ia.FAIRLY_ACCURATE]:"warning",[Ia.INACCURATE]:"error"})[e],n=()=>({[Ia.ACCURATE]:E.jsx(vN,{}),[Ia.FAIRLY_ACCURATE]:E.jsx(vN,{className:rCr.neutralThumb_icon}),[Ia.INACCURATE]:E.jsx(qce,{})})[e];return E.jsx(Si,{bordered:!1,icon:n(),color:t(),children:qg[e]})},iCr="_viewMetadata_button_hg8wn_13",aCr="_fileDocument_container_hg8wn_17",oCr="_answerContainer_hg8wn_24",sCr="_section_hg8wn_37",lCr="_section_header_hg8wn_45",cCr="_section_subheader_hg8wn_51",uCr="_section_select_hg8wn_56",dCr="_file_container_hg8wn_60",fCr="_textContent_container_hg8wn_70",pCr="_filesCollapse_container_hg8wn_76",hCr="_filesCollapse_container_panel_title_hg8wn_85",mCr="_filesCollapse_container_panel_header_hg8wn_94",gCr="_detailedQueryView_hg8wn_107",vCr="_detailedQueryView_filters_json_wrapper_hg8wn_118",yCr="_footer_hg8wn_130",bCr="_buttonsWrapper_hg8wn_135",Hl={viewMetadata_button:iCr,fileDocument_container:aCr,answerContainer:oCr,section:sCr,section_header:lCr,section_subheader:cCr,section_select:uCr,file_container:dCr,textContent_container:fCr,filesCollapse_container:pCr,filesCollapse_container_panel_title:hCr,filesCollapse_container_panel_header:mCr,detailedQueryView:gCr,detailedQueryView_filters_json_wrapper:vCr,footer:yCr,buttonsWrapper:bCr},_Cr=se.lazy(()=>Io(()=>import("./PDFHighligther.CZH3Qgdh.js"),__vite__mapDeps([0,1]))),SCr=se.lazy(()=>Io(()=>import("./CodeViewer.Bz0UUVF7.js"),__vite__mapDeps([2,3,4,5]))),{Panel:ECr}=wm,CCr=({searchResult:e,extraQueryInfo:t,feedbackData:n,pipelineName:r,pipelineId:i,isVisible:a,isPreviousItemButtonDisabled:o,isNextItemButtonDisabled:s,showFeedbackActionButtons:l=!1,onClose:c,onPreviousClick:u,onNextClick:d})=>{const{openPromptModal:f}=MU(),{getSearchResultReferences:p,activeReference:h,resetReferenceDrawer:m}=PU(),{trackUserEvent:g,setEventProperties:v}=Ev(),[y,_]=b.useState(!1),[S,C]=b.useState({}),[w,x]=b.useState(!1),[T,A]=b.useState(yF[1].key),[I,R]=b.useState(""),[N,P]=b.useState(!1),[L,$]=b.useState(),{supportedRawFilePreviewLanguagues:D,showRawCodeFormat:z,setShowRawCodeFormat:U}=VEr(),[H,M]=b.useState(Nn.groupBy(e.documents,"file.id")),B=b.useRef([]),k=Mpe(e);b.useEffect(()=>{if(e){const[Be]=HS(e);v({result_id:Be.result_id,pipeline_name:r})}},[e]);const F=Be=>H[Be][0]?.file?.name,G=async Be=>{try{P(!0);const je=F(Be),Ye=KO(je),{data:Ze}=await Ptt(Be,Ye),{data:Ke}=await Ltt(Be),qe=await ett(Ze);$(qe),C({...Ke,file_id:Be}),P(!1)}catch{P(!1)}};b.useEffect(()=>{if(h?.referenceId){const Be=p(e,h.resultId),[,je]=h.referenceId.split("_");if(!Be||!je||!Be[Number(je)])return;const{file_id:Ye}=Be[Number(je)];A(Dg.DOCUMENT),R(Ye)}},[h,h?.referenceId]),b.useEffect(()=>{T===Dg.FILE&&I&&G(I)},[T,I]),b.useEffect(()=>{M(Nn.groupBy(e.documents,"file.id"))},[e.query_id]);const q=Be=>{const{documents:je=[]}=e;return k===Aa.DOCUMENT_RETRIEVAL?[Be]:je.length?!("document_ids"in Be)||!Be?.document_ids?[]:Be.document_ids.reduce((Ye,Ze)=>{const Ke=je.find(qe=>qe.id===Ze);return Ke?[...Ye,Ke]:Ye},[]):je},W=Be=>{const[je]=Be;R(je||"")},K=({key:Be})=>{const[{prompt:je}]=HS(e);Be===R1.VIEW_PROMPT&&je&&f({prompt:je}),Be===R1.VIEW_FILTERS&&x(!0)},J=()=>{m(),c()},te=(Be,je)=>je?Be?.filter(Ye=>Ye.contentId===je)??null:Be,ae=()=>{if(!e)return null;const{answers:Be}=e,[je]=Be,Ye=p(e,je.result_id);return Ye?.length?jae(Ye,ZN).map(Ke=>({offsetsInDocument:null,answer:Ke.content.slice(Ke.doc_start_idx,Ke.doc_end_idx),context:Ke.content,label:Ke.highlightLabel,contentId:Ke.file_id})):null},re=()=>{if(!e)return null;const{answers:Be}=e,[je]=Be,Ye=p(e,je.result_id);return Ye?.length?jae(Ye,ZN).map(Ke=>{const qe=Ke.content.slice(Ke.doc_start_idx,Ke.doc_end_idx);return{offsetsInDocument:[{start:Ke.doc_start_idx,end:Ke.doc_end_idx}],answer:qe,context:null,label:Ke.highlightLabel,contentId:Ke.document_id}}):null},ue=()=>k===Aa.GENERATIVE_QUESTION_ANSWERING?ae():null,de=()=>k===Aa.GENERATIVE_QUESTION_ANSWERING?re():null,fe=()=>N||!L?.displayLanguage?!1:D.includes(L.displayLanguage),ge=()=>{if(N||!L)return!1;const Be=L.content instanceof ArrayBuffer;return!!te(ue(),I)?.length&&!Be},oe=()=>n?Object.entries(n).reduce((Be,[je,Ye])=>je===v2.FEEDBACK_TYPE?[...Be,{key:je,label:ta.FEEDBACK_RATING,value:E.jsx(qct,{type:Ye})}]:Be,[]):[],Ee=()=>{const{query_id:Be}=e,{user:je,duration:Ye,createdAt:Ze,rank:Ke}=t||{},{family_name:qe,given_name:nt}=je||{};return[...Ke?[{key:v2.RANK,value:Ke,label:ta.RANK}]:[],...je?[{key:v2.QUERY_BY,value:`${nt} ${qe}`,label:ta.USER}]:[],...oe(),{key:v2.QUERY_ID,value:Be,label:ta.QUERY_ID},...Ye?[{key:v2.DURATION,value:`${pl(Ye)}s`,label:ta.DURATION}]:[],...Ze?[{key:v2.QUERY_CREATED,value:Cr(Ze).format("DD/MM/YYYY HH:mm"),label:ta.QUERY_DATE}]:[],{key:v2.FILE_ID,value:I,label:ta.FILE_ID}]},ce=b.useMemo(()=>{if(!L||!(L.content instanceof ArrayBuffer))return null;const{content:Be}=L;return E.jsx(se.Suspense,{fallback:E.jsx($o,{}),children:E.jsx(_Cr,{pdfData:Be})})},[L]),he=Be=>E.jsx(_U,{children:Be}),ye=(Be,je)=>E.jsx("div",{className:Hl.documentsPreview_content,children:E.jsx(se.Suspense,{fallback:E.jsx($o,{}),children:E.jsx(SCr,{code:Be,codeLanguage:je})})}),me=(Be,je,Ye)=>je?E.jsx(Htt,{content:Be,highlightData:je,ref:Ze=>{Ze&&B.current&&(B.current[Ye]=Ze)}}):E.jsx("div",{className:Hl.textContent_container,children:E.jsx("pre",{children:Be})}),_e=(Be,je)=>Be.length?Be.map(({content:Ye,id:Ze,meta:Ke},qe)=>E.jsxs("div",{className:Hl.fileDocument_container,children:[E.jsxs("div",{children:[me(Ye,te(de(),Ze),je),E.jsx(ut,{size:"small",className:Hl.viewMetadata_button,onClick:()=>{_(!0),C(Ke)},children:QN})]}),qe!==Be.length-1&&E.jsx(zi,{})]},Ze)):null,Te=Be=>{if(!I)return null;if(N||!L)return E.jsx($o,{});const{content:je,displayLanguage:Ye}=L;if(je instanceof ArrayBuffer)return ce;const Ke=te(ue(),I);return Ye===hc.PLAIN_TEXT?me(je,Ke,Be):Ye===hc.MARKDOWN&&!z?he(je):ye(je,Ye||hc.PLAIN_TEXT)},xe=()=>{const[{prompt:Be}]=HS(e),{filters:je}=t||{};if(!Be&&Nn.isEmpty(je??{}))return null;const Ye=[...Be?[{key:R1.VIEW_PROMPT,label:Ahe}]:[],...Nn.isEmpty(je??{})?[]:[{key:R1.VIEW_FILTERS,label:ILn}]];return E.jsx(Vo,{menu:{items:Ye,onClick:K},trigger:["click"],children:E.jsx(ut,{type:"text",onClick:Ze=>Ze.preventDefault(),icon:E.jsx(Xb,{})})})},De=()=>{const[Be]=HS(e);return E.jsxs("div",{className:Hl.section,children:[E.jsxs("div",{className:Hl.section_subheader,children:[E.jsx("h5",{children:wet}),xe()]}),E.jsx("div",{className:Hl.answerContainer,children:E.jsx(Jhe,{searchStatus:Me.IDLE,searchResult:Be,documents:q(Be),pipelineId:i,queryId:e.query_id||"",pipelineName:r,withGenerativeTypingEffect:!1,pipelineType:k,displayFeedbackOptions:!1,documentResultOptions:{displayFullDocument:!0},displayFileOptions:!0,displayFileSources:!1,displayMoreOptions:!1,displayReferencesPopover:!1})}),l&&E.jsx(MC,{resultId:Be.result_id,queryId:e.query_id,pipelineId:i,pipelineName:r})]})},Pe=()=>Nn.isEmpty(H)?null:E.jsxs("div",{className:Hl.section,children:[E.jsx("div",{className:Hl.section_header,children:E.jsx("h5",{children:Cet})}),E.jsx(wm,{className:Hl.filesCollapse_container,accordion:!0,activeKey:I,onChange:Be=>W(Be),expandIconPosition:"end",children:Object.keys(H).map((Be,je)=>E.jsxs(ECr,{header:E.jsxs("div",{className:Hl.filesCollapse_container_panel_title,children:[E.jsx(dDe,{}),E.jsx(vr,{title:F(Be),children:F(Be)})]}),children:[E.jsxs("div",{className:Hl.filesCollapse_container_panel_header,children:[E.jsx(Lu,{activeKey:T,items:yF,onChange:Ye=>{A(Ye),R(Be),g({type:Wa.CLICK,control:`${ao.QUERY_DETAILED_DRAWER}/${ZE.TAB}`,properties:{tab:Ye,file_id:Be}})}}),T===Dg.FILE&&E.jsxs("div",{className:Hl.buttonsWrapper,children:[fe()&&E.jsx(Gct,{text:Pn(Afn,{format:L?.displayLanguage||""}),value:z,onSwitchChange:U}),E.jsx(ut,{size:"small",className:Hl.viewMetadata_button,onClick:()=>{_(!0)},children:QN}),ge()&&E.jsx(vr,{title:Tet,children:E.jsx(ut,{size:"small",icon:E.jsx(Dtt,{}),onClick:()=>B?.current?.[je]?.scrollToHighlight()})})]})]}),T===Dg.FILE?E.jsx("div",{className:Hl.file_container,children:Te(je)}):_e(H[Be],je)]},Be))})]}),Le=()=>E.jsx(Khe,{data:S,nonEditableFields:["file_id"],open:y,onCancel:()=>_(!1),onOk:()=>_(!1)}),ze=()=>{const{filters:Be}=t||{};return E.jsx(Xtt,{title:p1n,open:w,onCancel:()=>x(!1),onOk:()=>x(!1),children:E.jsx("code",{children:JSON.stringify(Be,null,2)})})};return E.jsxs(E.Fragment,{children:[E.jsxs(xm,{rootClassName:Hl.detailedQueryView,open:a,title:e.query,size:"large",onClose:J,extra:E.jsx(ut,{onClick:c,type:"primary",children:YZe}),footer:E.jsxs("div",{className:Hl.footer,children:[E.jsxs(ut,{disabled:o,onClick:u,children:[E.jsx(eT,{}),s1n]}),E.jsxs(ut,{disabled:s,onClick:d,children:[l1n,E.jsx(mj,{})]})]}),children:[De(),Pe(),E.jsx("div",{className:Hl.section,children:E.jsx(Ile,{options:Ee()})})]}),E.jsx(eme,{}),Le(),ze()]})},wCr="_header_1afdb_13",xCr="_header_title_1afdb_19",TCr="_header_subtitle_1afdb_22",ICr="_headerContent_1afdb_27",ACr="_headerActions_1afdb_33",RCr="_moreActions_button_1afdb_39",Nke={header:wCr,header_title:xCr,header_subtitle:TCr,headerContent:ICr,headerActions:ACr,moreActions_button:RCr},NCr=e=>{const t=ys(),{pipeline:n,pipelineName:r,deployPipelineHandler:i,undeployPipelineHandler:a,deletePipelineHandler:o,goToPipelinesPageHandler:s,fetchPipelineIndexingHandler:l,fetchPipelineHandler:c,pipelineIndexingData:u,goToYamlEditor:d,goToStudio:f,duplicatePipeline:p,onPromptExplorerMenuClick:h,setShowRenamePipelineModal:m,onSharePipelineHandler:g,onActivatePipelineHandler:v,pipelineStatusString:y,serviceLevel:_,deepsetCloudVersion:S,onDocumentExportMenuClicked:C}=e,w=b.useRef(null),x=b.useRef(null),[T,A]=b.useState(!1),[I,R]=b.useState(!1),N=async()=>{R(!0),A(!0)},P=async()=>{await i(r),c(r)},L=async()=>{await g()},$=async()=>{await v(r),c(r)},D=async()=>{await a(r),c(r),A(!1),R(!1)},z=async()=>{await o(r),s()},U=()=>{if(n.status===qn.ACTIVATING)return null;let q={label:pQn,action:P,loading:ts(n.status),danger:!1,icon:null};return n.desired_status===qs.DEPLOYED&&(q={...q,label:fQn,action:L,icon:null}),n.status===qn.IDLE&&(q={...q,label:oZe,action:$,icon:null}),ts(n.status)&&(q={...q,label:d6e,action:n.status===qn.DEPLOYMENT_IN_PROGRESS||n.status===qn.DEPLOYMENT_SCHEDULED?N:P,loading:!1,danger:!0,icon:null}),(y===Ope||y===jpn)&&(q={label:u6e,action:P,loading:ts(n.status),danger:!1,icon:E.jsx(h$,{})}),y===Lpe&&(q={label:u6e,action:N,loading:ts(n.status),danger:!1,icon:E.jsx(h$,{})}),E.jsx(ut,{onClick:()=>q.action(),loading:q.loading,danger:q.danger,icon:q.icon,children:q.label})},H=q=>{q==="DUPLICATE"&&p(r),q==="PROMPT_EXPLORER"&&h(),q==="RENAME"&&m(!0),q==="UNDEPLOY"&&N(),q==="DELETE"&&A(!0),q==="EXPORT_DOCUMENTS"&&C()},M=[{label:aZe,key:"RENAME"},{label:dQn,key:"DUPLICATE"},...n.status===qn.DEPLOYED&&n.supports_prompt?[{label:iZe,key:"PROMPT_EXPLORER"}]:[],...fzn(u)?[{label:Vpn,key:"EXPORT_DOCUMENTS"}]:[],...n.desired_status===qs.DEPLOYED?[{label:c6e,key:"UNDEPLOY"}]:[],{label:s6e,key:"DELETE",danger:!0}],B=q=>{l(q)},k=q=>{q===Qoe.YAML?d():q===Qoe.STUDIO&&f&&f()},F=()=>f&&n.deepset_cloud_version===Rr.V2?E.jsx(Vo,{menu:{items:yQn,onClick:q=>k(q.key)},trigger:["click"],children:E.jsx(ut,{children:E.jsxs(nv,{children:[l6e,E.jsx(pv,{})]})})}):E.jsx(ut,{onClick:()=>{d()},children:l6e}),G=()=>E.jsxs(E.Fragment,{children:[F(),U(),n.output_type===xd.GENERATIVE&&E.jsx(E.Fragment,{children:E.jsx(vr,{title:vQn,children:E.jsx(ut,{ref:x,icon:E.jsx(hj,{}),onClick:()=>{t(`/groundedness/${r}`)},className:Nke.headerActions_button})})}),E.jsx(Vo,{menu:{items:M,onClick:({key:q})=>H(q)},placement:"bottomRight",trigger:["click"],children:E.jsx(ut,{ref:w,className:Nke.moreActions_button,icon:E.jsx(Eme,{})})})]});return E.jsxs(E.Fragment,{children:[E.jsx(xme,{title:n.name,subtitle:Cr(n.created_at).format("DD/MM/YYYY HH:mm"),createdBy:XN(n.created_by),actions:G(),status:E.jsx(DC,{pipeline:n,getIndexingDetails:B,indexingData:u}),serviceLevel:_,deepsetCloudVersion:S}),E.jsx($H,{open:T,okText:I?c6e:s6e,onOk:async()=>{I?D():z()},cancelText:d6e,onCancel:()=>{A(!1),R(!1)},pipelines:T?[n]:[],undeployingPipeline:I})]})},OCr="_section_1jh9f_13",LCr="_jsonView_1jh9f_20",PCr="_queryLink_1jh9f_26",kCr="_pipelineFeedbackTable_tags_1jh9f_35",MCr="_pipelineFeedbackTable_filtersButton_1jh9f_39",DCr="_detailsDrawer_1jh9f_43",$Cr="_bookmarkColumn_1jh9f_48",Ry={section:OCr,jsonView:LCr,queryLink:PCr,pipelineFeedbackTable_tags:kCr,pipelineFeedbackTable_filtersButton:MCr,detailsDrawer:DCr,bookmarkColumn:$Cr},FCr=e=>{const{pipelineId:t,pipelineName:n,feedback:r,tags:i,selectedSortValue:a,bookmarkFilter:o,getFeedbacks:s,onQueryClick:l,onBookmarkFilterClick:c}=e,{exportPipelineFeedbackCSV:u,getPipelineFeedbackStatus:d,getPipelineFeedbackFilterUser:f,pipelineFeedbackFilterValues:p,providedFeedbackByResultId:h,setProvidedFeedbackByResultId:m}=Sv(),{data:g,total:v}=r,[y,_]=b.useState({open:!1,filters:{}}),[S,C]=b.useState(""),{trackUserEvent:w}=Ev({pipeline_id:t,pipeline_name:n});b.useEffect(()=>{g?.length&&g.forEach(k=>{m(k.result_id,k)})},[g]);const x=g[0]?.search_history?.type===SF.GENERATIVE_QUESTION_ANSWERING;b.useEffect(()=>{t&&f(t)},[t]);const T=()=>{const{data:k}=i;return k?.length?k.map(({tag_id:F,name:G})=>({key:F,label:G})):[]},A=()=>{const{users:k}=p,F={type:li.SELECT,key:_W.FEEDBACK_TYPE,title:f1n,options:[{key:String(Ia.ACCURATE),label:qg[Ia.ACCURATE],value:Ia.ACCURATE},{key:String(Ia.FAIRLY_ACCURATE),label:qg[Ia.FAIRLY_ACCURATE],value:Ia.FAIRLY_ACCURATE},{key:String(Ia.INACCURATE),label:qg[Ia.INACCURATE],value:Ia.INACCURATE}],style:{minWidth:"147px"}},G={type:li.MULTI_SELECT,key:_W.TAGS_ID,title:u1n,options:T()},q={type:li.MULTI_SELECT,key:_W.USER,title:d1n,options:k,style:{minWidth:"120px"}};return[F,...k?.length?[q]:[],G]},I=k=>{C(k)},R=()=>{_({open:!1,filters:""})},N=k=>{navigator.clipboard.writeText(k)},P=()=>{u(t,n),w({type:Wa.CLICK,control:`${ao.PIPELINE_FEEDBACK_TABLE}/${ZE.DOWNLOAD}`,properties:{}})},L=k=>{l(k);const{feedback_id:F}=g[k];w({type:Wa.CLICK,control:`${ao.PIPELINE_FEEDBACK_TABLE}/${ad.ITEM}`,properties:{feedback_id:F}})},$=(k,F)=>{_({open:!0,filters:k});const{feedback_id:G}=g[F];w({type:Wa.CLICK,control:`${ao.PIPELINE_FEEDBACK_TABLE}/${ZE.FILTERS}`,properties:{feedback_id:G}})},D=[{key:"answer",title:ta.ANSWER},...x?[]:[{key:"context",title:ta.CONTEXT}],...x?[]:[{key:"relevance",title:ta.RELEVANCE}],...x?[{key:"prompt",title:ta.PROMPT}]:[],{key:"rank",title:ta.RANK},{key:"user",title:ta.USER},{key:"query_id",title:ta.QUERY_ID},{key:"duration",title:ta.DURATION},{key:"query_date",title:ta.QUERY_DATE},{key:"filters",title:ta.FILTERS},{key:"file_name",title:ta.FILE_NAME},{key:"file_id",title:ta.FILE_ID}];let z=Hpe("feedbackColumnSelection")||["query","answer","context","prompt","feedbackRating","feedbackNotes","feedbackTags","rank","user","relevance"];x?z=z.filter(k=>k!=="context"&&k!=="relevance"):z=z.filter(k=>k!=="prompt");const U=[{key:"feedbackBookmarked",align:"center",dataIndex:"bookmarked",fixed:"left",width:18,className:Ry.bookmarkColumn,render:(k,F)=>E.jsx(Wtt,{withLabel:!1,resultId:F.result_id,queryId:F.search_history?.query_id,pipelineId:t})},{title:ta.QUERY,dataIndex:["search_history","search","query"],key:"query",fixed:"left",width:300,render:(k,F,G)=>E.jsx(ut,{type:"link",size:"small",className:Ry.queryLink,onClick:()=>{L(G)},children:zZe(k,250)})},...g&&g.length>0&&g.some(k=>k.search_history&&k.search_history.answer)?[{title:ta.ANSWER,dataIndex:["search_history","answer"],key:"answer",width:300,render:k=>Ig({content:k,maxCharacters:250,previewButtonHandler:I})}]:[],...x?[]:[{title:ta.CONTEXT,dataIndex:"search_history",key:"context",width:600,render:k=>{const{context:F,offsets_in_context:G}=k,{start:q,end:W}=G&&G[0]||{};return Ig({content:F,answerStart:q,answerEnd:W,previewButtonHandler:I})}}],...x?[{title:ta.PROMPT,dataIndex:["search_history","prompt"],key:"prompt",width:300,render:k=>Ig({content:k,maxCharacters:250,previewButtonHandler:I})}]:[],{title:ta.FEEDBACK_RATING,dataIndex:"score",key:"feedbackRating",render:(k,F)=>{const q=h[F.result_id]?.score||k;return q?E.jsx(qct,{type:q}):E.jsx(MC,{resultId:F.result_id,queryId:F.search_history?.query_id,pipelineId:t,pipelineName:n,withBookmark:!1})}},{title:ta.FEEDBACK_NOTES,dataIndex:"comment",key:"feedbackNotes",render:(k,F)=>{const q=h[F.result_id]?.comment||k;return E.jsx("div",{children:q})}},{title:ta.FEEDBACK_TAGS,key:"tags",dataIndex:"tags",width:120,render:(k,F)=>{const q=h[F.result_id]?.tags||k;return E.jsx(E.Fragment,{children:!!q&&wme(q,"name").map(W=>{const{tag_id:K,name:J}=W;return E.jsx(Si,{className:Ry.pipelineFeedbackTable_tags,children:J},K)})})}},...x?[]:[{title:ta.RELEVANCE,dataIndex:["search_history","score"],key:"relevance",render:k=>`${pl(k*100)}%`}],{title:ta.RANK,dataIndex:["search_history","rank"],key:"rank"},{title:ta.USER,dataIndex:["created_by"],key:"user",render:k=>{if(Nn.isNil(k?.family_name)&&Nn.isNil(k?.given_name))return null;const{family_name:F,given_name:G}=k;return E.jsx(vr,{title:`${G} ${F}`,children:E.jsx(Mp,{children:G[0]+F[0]})})}},{title:ta.QUERY_ID,dataIndex:["search_history","query_id"],key:"query_id"},{title:ta.DURATION,dataIndex:["search_history","search","duration"],key:"duration",render:k=>`${pl(k)}s`},{title:ta.QUERY_DATE,dataIndex:["search_history","search","created_at"],key:"query_date",render:k=>new Date(k).toLocaleDateString()},...g&&g.length>0&&g.some(k=>Object.keys(k?.search_history?.search?.filters||{})?.length>0)?[{title:ta.FILTERS,dataIndex:["search_history","search","filters"],key:"filters",render:(k,F,G)=>!k||Object.keys(k).length===0?null:E.jsxs(ut,{className:Ry.pipelineFeedbackTable_filtersButton,type:"link",onClick:()=>$(k,G),children:[i1n," (",Object.keys(k).length,")"]})}]:[],{title:ta.FILE_NAME,dataIndex:["search_history","files"],key:"file_name",render:k=>k.map(F=>E.jsx("div",{children:F.name},F.id))},{title:ta.FILE_ID,dataIndex:["search_history","files"],key:"file_id",render:k=>k.map(F=>E.jsx("div",{children:F.id},F.id))},{key:"action",width:"80px",align:"right",fixed:"right"}],H=()=>E.jsx(Gct,{text:o.label,icon:E.jsx(g$,{component:qtt}),value:o.value,onSwitchChange:c}),M=()=>{const{open:k,filters:F}=y,G=JSON.stringify(F,null,2);return E.jsx(wi,{title:r1n,open:k,centered:!0,onCancel:R,footer:E.jsxs(E.Fragment,{children:[E.jsx(vr,{title:c1n,trigger:"click",className:Ry.copyButton,placement:"bottom",children:E.jsx(ut,{icon:E.jsx(tO,{}),onClick:()=>N(G),children:o1n})}),E.jsx(ut,{type:"primary",onClick:R,children:YZe})]}),children:E.jsx("pre",{className:Ry.jsonView,children:G})})},B=()=>E.jsx(xm,{open:!!S,onClose:()=>C(""),size:"large",className:Ry.detailsDrawer,children:E.jsx("pre",{children:S})});return E.jsxs("section",{className:Ry.section,children:[E.jsxs("h5",{children:[" ",n1n," "]}),E.jsx(Of,{data:g,columns:U,total:v,searchAvailable:!0,border:!0,loading:d===Me.IN_PROGRESS,getData:(k,F,G,q,W)=>s({currentPage:k,pageSize:F,searchValue:G,sortValue:q,filterValues:W}),sorting:{selectedValue:a,options:E1n},rowSelection:!1,rowKey:"feedback_id",filters:A(),primaryAction:{label:a1n,onClick:()=>P(),disabled:v===0,secondary:!0,icon:E.jsx(nO,{})},scroll:{x:"max-content"},columnsConfig:{optionalColumns:D,defaultColumns:z,cacheLocation:"feedbackColumnSelection"},surSecondaryActions:H(),userEventsTrackingHandlers:{onSearch:k=>w({type:Wa.KEYDOWN,control:`${ao.PIPELINE_FEEDBACK_TABLE}/${ad.SEARCH}`,properties:{value:k}}),onPageChange:k=>w({type:Wa.CLICK,control:`${ao.PIPELINE_FEEDBACK_TABLE}/${ad.PAGINATION}`,properties:{value:k}}),onSort:k=>w({type:Wa.CLICK,control:`${ao.PIPELINE_FEEDBACK_TABLE}/${ad.SORT}`,properties:{value:k}}),onFilter:k=>w({type:Wa.CLICK,control:`${ao.PIPELINE_FEEDBACK_TABLE}/${ad.FILTER}`,properties:{filter_key:k}}),onClearFilter:k=>w({type:Wa.CLICK,control:`${ao.PIPELINE_FEEDBACK_TABLE}/${ad.CLEAR_FILTER}`,properties:{filter_key:k}}),onClearAllFilters:()=>w({type:Wa.CLICK,control:`${ao.PIPELINE_FEEDBACK_TABLE}/${ad.CLEAR_ALL_FILTERS}`,properties:{}})}}),M(),B()]})},BCr="Latest Queries",jCr="Show more",zCr="Show less",UCr="_section_1dysc_13",HCr="_section_queriesList_1dysc_16",VCr="_section_showMore_1dysc_19",GCr="_latestQueriesContainer_1dysc_25",qCr="_latestQueriesList_1dysc_29",WCr="_latestQueriesList_avatar_1dysc_36",YCr="_latestQueriesList_queryInfo_1dysc_39",KCr="_latestQueriesList_queryQuery_1dysc_47",XCr="_latestQueriesList_queryAnswer_1dysc_56",ZCr="_latestQueriesList_queryDate_1dysc_64",QCr="_latestQueriesList_divider_1dysc_70",Eh={section:UCr,section_queriesList:HCr,section_showMore:VCr,latestQueriesContainer:GCr,latestQueriesList:qCr,latestQueriesList_avatar:WCr,latestQueriesList_queryInfo:YCr,latestQueriesList_queryQuery:KCr,latestQueriesList_queryAnswer:XCr,latestQueriesList_queryDate:ZCr,latestQueriesList_divider:QCr},JCr=e=>{const{latestQueries:t,getLatestQueries:n,loading:r}=e,[i,a]=b.useState(!0),o=(l,c)=>{a(l),n(c)},s=l=>{if(!l)return Oae;const{result:c,documents:u}=l;if(!c)return u[0]?.content;const{answer:d}=c;return d||Oae};return E.jsxs("section",{className:Eh.section,children:[E.jsxs("h5",{children:[" ",BCr," "]}),E.jsx("div",{className:Eh.latestQueriesContainer,children:t.data.map((l,c)=>{const{given_name:u,family_name:d}=l.user,{query:f}=l.request,p=s(l.response[0]);return E.jsxs(se.Fragment,{children:[E.jsxs("div",{className:Eh.latestQueriesList,children:[E.jsx("div",{className:Eh.latestQueriesList_avatar,children:E.jsx(vr,{title:`${u} ${d}`,children:E.jsx(Mp,{children:u[0]+d[0]})})}),E.jsxs("div",{className:Eh.latestQueriesList_queryInfo,children:[E.jsxs("div",{className:Eh.latestQueriesList_queryData,children:[E.jsx("div",{className:Eh.latestQueriesList_queryQuery,children:f}),E.jsx("div",{className:Eh.latestQueriesList_queryAnswer,children:p})]}),E.jsx("div",{className:Eh.latestQueriesList_queryDate,children:new Date(l.time).toLocaleString()})]})]}),E.jsx("div",{className:Eh.latestQueriesList_divider,children:c<t.data.length-1&&E.jsx(zi,{})})]},l.search_history_id)})}),E.jsx("div",{className:Eh.section_showMore,children:i?t.has_more&&E.jsx(ut,{loading:r,onClick:()=>o(!1,15),children:jCr}):E.jsx(ut,{loading:r,onClick:()=>o(!0,5),children:zCr})})]})},ewr="_pipelineLogSkeleton_9znd6_13",twr="_pipelineLogs_9znd6_20",nwr="_pipelineLogs_firstAction_9znd6_24",rwr="_pipelineLogs_secondAction_9znd6_27",iwr="_pipelineLogs_secondAction_enableAutorefresh_9znd6_34",awr="_pipelineLogs_collapse_9znd6_41",owr="_pipelineLogs_collapse_infoLog_9znd6_44",swr="_pipelineLogs_collapse_tabs_9znd6_47",lwr="_pipelineLogs_collapse_tabItem_9znd6_74",cwr="_pipelineLogs_collapse_alert_9znd6_77",uwr="_pipelineLogs_collapse_rawSection_9znd6_80",dwr="_pipelineLogs_collapse_causedBy_9znd6_83",fwr="_pipelineLogs_collapse_divider_9znd6_86",pwr="_pipelineLogs_warningIcon_9znd6_89",hwr="_pipelineLogs_warningBackground_9znd6_92",mwr="_pipelineLogs_errorIcon_9znd6_95",gwr="_pipelineLogs_errorBackground_9znd6_98",vwr="_pipelineLogs_infoIcon_9znd6_101",ywr="_pipelineLogs_infoBackground_9znd6_104",bwr="_pipelineLogs_logTitle_9znd6_107",_wr="_pipelineLogs_logDate_9znd6_114",Swr="_totalItems_9znd6_121",Ewr="_totalItems_label_9znd6_126",Cwr="_totalItems_label_subtitle_9znd6_131",wwr="_totalItems_label_total_9znd6_134",xwr="_emptyLogs_9znd6_138",Twr="_horizontalDivider_9znd6_145",Iwr="_filtersDivider_9znd6_149",Awr="_fadeInLog_9znd6_153",Rwr="_trans_9znd6_1",xa={pipelineLogSkeleton:ewr,pipelineLogs:twr,pipelineLogs_firstAction:nwr,pipelineLogs_secondAction:rwr,pipelineLogs_secondAction_enableAutorefresh:iwr,pipelineLogs_collapse:awr,pipelineLogs_collapse_infoLog:owr,pipelineLogs_collapse_tabs:swr,pipelineLogs_collapse_tabItem:lwr,pipelineLogs_collapse_alert:cwr,pipelineLogs_collapse_rawSection:uwr,pipelineLogs_collapse_causedBy:dwr,pipelineLogs_collapse_divider:fwr,pipelineLogs_warningIcon:pwr,pipelineLogs_warningBackground:hwr,pipelineLogs_errorIcon:mwr,pipelineLogs_errorBackground:gwr,pipelineLogs_infoIcon:vwr,pipelineLogs_infoBackground:ywr,pipelineLogs_logTitle:bwr,pipelineLogs_logDate:_wr,totalItems:Swr,totalItems_label:Ewr,totalItems_label_subtitle:Cwr,totalItems_label_total:wwr,emptyLogs:xwr,horizontalDivider:Twr,filtersDivider:Iwr,fadeInLog:Awr,trans:Rwr},{Panel:Nwr}=wm,Owr=200,Lwr=8e3,Oke=2,Lke=e=>{const{pipelineLogs:t,pipelineTotalNumberLogs:n,pipelineLogsListHasMore:r,pipelineName:i,filterDateLastDeployedAt:a,getPipelineLogs:o,startPollingPipelineLogs:s,stopPollingPipelineLogs:l,pipelineStatus:c,downloadLogsCSV:u,loading:d,activeTab:f}=e,[p,h]=Dp.useMessage(),[m,g]=b.useState(""),[v,y]=b.useState(""),[_,S]=b.useState(!1),C=()=>{const B={type:li.MULTI_SELECT,key:lJ.LEVEL,title:kMn,style:{minWidth:"87px"},options:$Mn},k={type:li.MULTI_SELECT,key:lJ.ORIGIN,title:MMn,style:{minWidth:"87px"},options:FMn},F={type:li.SELECT,key:lJ.DATE_ADDED,title:DMn,style:{minWidth:"120px",maxWidth:"260px"},listHeight:Owr,options:BMn};return[B,k,F]},[w]=b.useState(C()),[x,T]=b.useState({});b.useEffect(()=>{c===qn.DEPLOYED?y(yMn):y(vMn)},[c]);const A=()=>{const B=x&&x.logged_at&&x.logged_at.length>0;return{pipelineName:i,searchValue:m,filterValues:B?x:{...x,logged_at:[a]},limit:Eoe}};b.useEffect(()=>(a.value&&o(A()),_&&a.value&&f===T1.LOGS?(l(),s(A())):l(),()=>{l()}),[x,m,_,f,a.value]);const I=(B,k)=>{const F="YYYY-MM-DDTHH:mm:ssZ[Z]";let G="";if(k.key.includes("date")){const q=k.key.split("_");q[2]==="m"&&(G=Cr().subtract(Number(q[1]),"minute").format(F)),q[2]==="h"&&(G=Cr().subtract(Number(q[1]),"hour").format(F)),q[2]==="d"&&(G=Cr().subtract(Number(q[1]),"day").format(F));const W=[{...k,value:G,type:li.DATE}];T(K=>({...K,[B]:W}))}else T(q=>({...q,[B]:[k]}))},R=(B,k)=>{B==="logged_at"&&k.length>0?I(B,k[0]):T(F=>({...F,[B]:k}))},N=()=>{const B=snt(w);T({...B})},P=B=>B===op.WARNING?E.jsx(_j,{className:xa.pipelineLogs_warningIcon}):B===op.ERROR||B===op.CRITICAL?E.jsx(fv,{className:xa.pipelineLogs_errorIcon}):E.jsx(rO,{className:xa.pipelineLogs_infoIcon}),L=B=>B===op.WARNING?xa.pipelineLogs_warningBackground:B===op.ERROR||B===op.CRITICAL?xa.pipelineLogs_errorBackground:xa.pipelineLogs_infoBackground,$=B=>{const k=B.exceptions&&B.exceptions.length?[...B.exceptions].reverse():[];let F="",G="";k.forEach((W,K)=>{let J="";W.trace.forEach(te=>{J=`${J}${te.filename}, ${uI} ${te.line_number.toString()}, ${te.name}
`}),k.length===1?F=`${B.message}${sJ}
${J}`:(K>0&&(F=`${F}
${oJ}
`),F=`${F}${W.type}: ${W.value}
${J}`)}),Object.keys(B.extra_fields).length>0&&Object.keys(B.extra_fields).forEach(W=>{G=`${G}${q1(W)}: ${JSON.stringify(B.extra_fields[W],null,Oke)||""}
`});let q="";k.length===1?q=F:q=`${B.message}

${F}

${G}`,navigator.clipboard.writeText(q),p.success(IMn)},D=()=>E.jsx("div",{className:xa.pipelineLogSkeleton,children:E.jsx(Ff,{paragraph:{rows:1,width:"100%"},active:!0,title:!1})}),z=()=>t.length===0&&m!==""?E.jsx("div",{className:xa.emptyLogs,children:E.jsx(Fo,{image:Fo.PRESENTED_IMAGE_SIMPLE,description:E.jsx("span",{children:_Mn})})}):E.jsxs("div",{className:xa.emptyLogs,children:[E.jsx(Fo,{image:Fo.PRESENTED_IMAGE_SIMPLE,description:E.jsx("span",{children:bMn})}),E.jsx(ut,{type:"primary",onClick:()=>N(),children:SMn})]}),U=B=>Cr().diff(Cr(B.logged_at))<Lwr&&_?xa.fadeInLog:"",H=B=>{const k=()=>Object.keys(B.extra_fields).length>0?Object.keys(B.extra_fields).map(K=>E.jsx("div",{children:`${q1(K)}: ${JSON.stringify(B.extra_fields[K],null,Oke)||""}`},K)):null;if(B.level===op.INFO)return E.jsxs(E.Fragment,{children:[E.jsx("p",{className:xa.pipelineLogs_collapse_infoLog,children:B.message}),k()]});const F=B.exceptions?.length?[...B.exceptions].reverse():[],G=()=>E.jsxs("div",{className:xa.pipelineLogs_collapse_tabItem,children:[B.level===op.ERROR||B.level===op.CRITICAL||B.level===op.WARNING?E.jsx(Ka,{message:F.length===1?B.message+sJ:B.message,type:B.level===op.WARNING?"warning":"error",className:xa.pipelineLogs_collapse_alert}):null,F.map((K,J)=>F.length===1?E.jsx("div",{children:K.trace.map((te,ae)=>E.jsxs("div",{children:[E.jsx("p",{children:`${te.filename}, ${uI} ${te.line_number}, ${te.name}`}),ae<K.trace.length-1&&E.jsx(zi,{className:xa.pipelineLogs_collapse_divider})]},ps()))},ps()):E.jsxs("div",{children:[J>0&&E.jsx("div",{className:xa.pipelineLogs_collapse_causedBy,children:oJ}),E.jsx("p",{children:`${K.type}: ${K.value}`}),K.trace.map(te=>E.jsx("p",{children:`${te.filename}, ${uI} ${te.line_number}, ${te.name}`},ps())),J<B.exceptions.length-1&&E.jsx(zi,{className:xa.pipelineLogs_collapse_divider})]},ps()))]}),q=()=>E.jsxs("div",{className:xa.pipelineLogs_collapse_tabItem,children:[F.length===1?E.jsx("div",{children:B.message+sJ}):E.jsx("p",{children:B.message}),F.map((K,J)=>F.length===1?E.jsx("div",{children:K.trace.map(te=>E.jsx("div",{children:`${te.filename}, ${uI} ${te.line_number}, ${te.name}`},ps()))},ps()):E.jsxs("div",{className:xa.pipelineLogs_collapse_rawSection,children:[J>0&&E.jsx("div",{children:oJ}),E.jsx("div",{children:`${K.type}: ${K.value}`}),K.trace.map(te=>E.jsx("div",{children:`${te.filename}, ${uI} ${te.line_number}, ${te.name}`},ps()))]},ps())),k()]}),W=[{label:wMn,key:Soe.FORMATTED,children:G()},{label:xMn,key:Soe.RAW,children:q()}];return E.jsx(E.Fragment,{children:E.jsx(Lu,{defaultActiveKey:"formatted",items:W,tabBarExtraContent:E.jsx(vr,{title:TMn,children:E.jsx(ut,{size:"small",icon:E.jsx(tO,{}),onClick:()=>$(B)})})})})},M=b.useMemo(()=>E.jsx(E.Fragment,{children:E.jsxs("div",{className:xa.pipelineLogs,children:[E.jsx("div",{className:xa.pipelineLogs_firstAction,children:E.jsx($U,{onSearch:B=>g(B),filters:w,filterValues:x,loading:d,onFilterSelectChange:R,primaryAction:{label:RMn,onClick:()=>u(),disabled:t?.length===0,secondary:!0,icon:E.jsx(nO,{})},searchAvailable:!0,searchPlaceholder:AMn})}),E.jsx(zi,{className:xa.filtersDivider}),E.jsxs("div",{className:xa.pipelineLogs_secondAction,children:[E.jsxs("div",{className:xa.totalItems,children:[E.jsxs("div",{className:xa.totalItems_label,children:[E.jsx("span",{className:xa.totalItems_label_subtitle,children:Pn(EMn,{totalPerPage:t?.length})}),E.jsx("span",{className:xa.totalItems_label_total,children:Pn(CMn,{totalItems:n})})]}),E.jsx(DU,{filterValues:x,onClearAllFilters:N,onFilterSelectChange:R})]}),E.jsxs("div",{className:xa.pipelineLogs_secondAction_enableAutorefresh,children:[E.jsx("span",{children:NMn}),E.jsx($p,{size:"small",onChange:B=>S(B)})]})]}),E.jsx(zi,{className:xa.horizontalDivider}),E.jsx("div",{className:xa.pipelineLogs_collapse,children:E.jsx(cU,{dataLength:t?.length,next:()=>o({pipelineName:i,filterValues:x,after:t?t[t.length-1].logged_at:void 0,limit:Eoe,fetchMore:!0}),loader:D(),hasMore:r,scrollableTarget:"contentAppSection",children:E.jsx(wm,{bordered:!1,size:"small",expandIconPosition:"end",collapsible:"header",children:t?.length>0?t?.map(B=>E.jsxs(Nwr,{className:`${L(B.level)} ${U(B)}`,header:E.jsxs(E.Fragment,{children:[P(B.level),E.jsx("span",{className:xa.pipelineLogs_logTitle,children:B.message})]}),extra:E.jsx("span",{className:xa.pipelineLogs_logDate,children:new Date(B.logged_at).toLocaleString()}),children:[h,H(B)]},B.log_id)):z()})})})]})}),[t,x,w]);return!t||t.length===0&&m===""&&Object.keys(x).length===0||c===qn.UNDEPLOYED?E.jsx(Fo,{image:Fo.PRESENTED_IMAGE_SIMPLE,description:E.jsx("span",{children:v})}):M},Pwr="_productionSection_18rje_13",kwr="_productionSection_content_18rje_24",Mwr="_productionSection_content_avatar_18rje_30",Dwr="_productionSection_content_description_18rje_34",$wr="_draftPipeline_18rje_38",tA={productionSection:Pwr,productionSection_content:kwr,productionSection_content_avatar:Mwr,productionSection_content_description:Dwr,draftPipeline:$wr},Fwr=()=>{const e=ir(),t=st(WT),{isLimitedUser:n}=st(Pl),{name:r,service_level:i}=t;return n?null:E.jsx(vr,{placement:"bottom",title:i===Li.DRAFT?Bhn:"",children:E.jsxs("div",{className:`${tA.productionSection} ${i===Li.DRAFT?tA.draftPipeline:""}`,children:[E.jsxs("div",{className:tA.productionSection_content,children:[E.jsx("div",{className:tA.productionSection_content_avatar,children:E.jsx(Mp,{icon:E.jsx(x2t,{})})}),E.jsxs("div",{children:[E.jsx("h6",{children:Ppe}),E.jsx("div",{className:tA.productionSection_content_description,children:Pn($hn,{documentation:E.jsx("a",{href:Fhn,target:"_blank",rel:"noreferrer",children:att})})})]})]}),E.jsx(fve,{serviceLevel:i,pipelineName:r,afterSwitch:()=>e(Yg({pipelineName:r})),size:"default"})]})})},Bwr="_tagInput_tag_1icdb_13",jwr="_tagInput_1icdb_13",Ate={tagInput_tag:Bwr,tagInput:jwr},Wct=({onConfirm:e,options:t=[],disabled:n})=>{const[r,i]=b.useState(""),[a,o]=b.useState(!1),s=b.useRef(null);b.useEffect(()=>{a&&s.current?.focus()},[a]);const l=()=>{o(!0)},c=d=>{i(d)},u=({value:d})=>{e(d||r),o(!1),i("")};return E.jsx("span",{className:Ate.tagInput,children:a?E.jsx(Zi,{ref:s,showSearch:!0,size:"small",mode:"tags",className:Ate.tagInput_input,popupMatchSelectWidth:!1,disabled:n,onSearch:c,onSelect:u,options:t.map(d=>({value:d,label:d}))}):E.jsxs(Si,{onClick:l,className:Ate.tagInput_tag,children:[E.jsx(Td,{})," ",hfn]})})},zwr="_container_48i9m_13",Uwr="_formSection_48i9m_19",Hwr="_formSection_header_48i9m_24",Vwr="_formSection_tags_48i9m_32",Gwr="_formSection_tags_label_48i9m_37",rS={container:zwr,formSection:Uwr,formSection_header:Hwr,formSection_tags:Vwr,formSection_tags_label:Gwr},qwr=({pipelineId:e})=>{const{pipelineFeedbackTagsByPipelineId:t,createPipelineFeedbackTagStatus:n,deletePipelineFeedbackTagStatus:r,getFeedbackTags:i,resetFeedbackTags:a,createFeedbackTag:o,deleteFeedbackTag:s}=Sv(),{data:l}=t[e]??{data:[]},c=n===Me.IN_PROGRESS,u=r===Me.IN_PROGRESS;b.useEffect(()=>{a()},[]),b.useEffect(()=>{e&&i({pipelineId:e})},[e]),so(()=>{(n===Me.SUCCESS||r===Me.SUCCESS)&&i({pipelineId:e})},[n,r]);const d=h=>{s(e,h)},f=h=>{o(e,h)},p=()=>E.jsxs("div",{className:rS.formSection,children:[E.jsxs("div",{className:rS.formSection_header,children:[E.jsx("h5",{children:OMn}),E.jsx("div",{className:rS.formSection_header,children:LMn})]}),E.jsxs("div",{className:rS.formSection_tags,children:[E.jsxs("div",{className:rS.formSection_tags_label,children:[PMn,":"]}),E.jsx(Wct,{disabled:c,onConfirm:h=>{f(h)}}),l.map(({name:h,tag_id:m})=>E.jsx(Si,{className:rS.formTemplateItem_tags_tag,closable:!0,closeIcon:u?E.jsx(Np,{}):null,onClose:g=>{g.preventDefault(),d(m)},children:h},m))]})]});return E.jsx("div",{className:rS.container,children:p()})},Wwr="_section_9ua8x_13",Ywr="_popover_9ua8x_17",Kwr="_optionContent_icon_9ua8x_21",Xwr="_alertLink_9ua8x_25",Ny={section:Wwr,popover:Ywr,optionContent_icon:Kwr,alertLink:Xwr},Zwr=e=>{const{pipelineStatistics:t,pipelineIndexingData:n,setActiveTabPipelineDetailsPage:r}=e,[i,a]=b.useState([]),[o,s]=b.useState([]);return b.useEffect(()=>{const{pending_file_count:l,failed_file_count:c,indexed_no_documents_file_count:u,indexed_file_count:d}=n,f={pending_tasks:l,failed_files:c,skipped_files:u,indexed_files:d},p=[],h=[];Object.keys(f).forEach(m=>{const g={key:m,label:E.jsxs("span",{className:Ny.optionContent,children:[f6e[m]||q1(m),E.jsx(tv,{rootClassName:Ny.popover,content:Pn(p6e[m],{logs:E.jsx(ut,{type:"link",className:Ny.alertLink,onClick:()=>{r&&r(T1.LOGS)},children:hQn})}),children:E.jsx(om,{className:Ny.optionContent_icon})})]}),value:pl(f[m],!0)};h.push(g)}),Object.keys(t).forEach(m=>{if(m!=="indexed_files"&&m!=="total_documents"){const g={key:m,label:mQn[m]||q1(m),value:pl(t[m],!0)};p.push(g)}else if(m==="total_documents"){const g={key:m,label:E.jsxs("span",{className:Ny.optionContent,children:[f6e[m]||q1(m),E.jsx(tv,{rootClassName:Ny.popover,content:p6e[m],children:E.jsx(om,{className:Ny.optionContent_icon})})]}),value:pl(t[m],!0)};h.push(g)}}),a(p),s(h)},[t,n]),E.jsxs("section",{className:Ny.section,children:[E.jsx(Ile,{options:o,hideBorderBottom:!0}),E.jsx(Ile,{options:i})]})},Qwr="_card_1o6fn_25",Jwr="_statisticsAnswers_item_1o6fn_25",exr="_section_1o6fn_33",txr="_statisticsAnswers_1o6fn_25",nxr="_statisticsAnswers_itemTitle_1o6fn_50",rxr="_statisticsAnswers_itemTitle_infoIcon_1o6fn_54",ixr="_statisticsAnswers_itemStat_1o6fn_57",axr="_statisticsAnswers_itemStat_icon_1o6fn_64",oxr="_statisticsAnswers_itemStat_value_1o6fn_67",Oy={card:Qwr,statisticsAnswers_item:Jwr,section:exr,statisticsAnswers:txr,statisticsAnswers_itemTitle:nxr,statisticsAnswers_itemTitle_infoIcon:rxr,statisticsAnswers_itemStat:ixr,statisticsAnswers_itemStat_icon:axr,statisticsAnswers_itemStat_value:oxr},sxr=e=>{const{statisticsAnswers:t}=e,n=o=>o==="correct_answers"?E.jsx(yN,{}):o==="wrong_answers"?E.jsx(f$,{}):o==="wrong_answers_with_correct_document"?E.jsxs("span",{children:[E.jsx(f$,{}),E.jsx(yN,{})]}):o==="latency"?E.jsx(V_t,{}):o==="accuracy_of_answers"?E.jsx(gj,{}):null,r=o=>({correct_answers:qg[Ia.ACCURATE],wrong_answers:qg[Ia.INACCURATE],wrong_answers_with_correct_document:qg[Ia.FAIRLY_ACCURATE]})[o]||q1(o),i=Object.keys(t).map(o=>({key:o,label:r(o),icon:n(o),value:typeof t[o]=="number"?pl(t[o],!0):null})),a=o=>o.value&&o.key==="accuracy_of_answers"?pl(+o.value*100,!0):o.value;return E.jsx("section",{className:Oy.section,children:E.jsx("div",{className:Oy.statisticsAnswers,children:i.map(o=>E.jsxs("div",{className:Oy.statisticsAnswers_item,children:[E.jsxs("p",{className:Oy.statisticsAnswers_itemTitle,children:[o.label,o.key==="accuracy_of_answers"&&E.jsx(vr,{placement:"top",title:Epn,children:E.jsx(om,{className:Oy.statisticsAnswers_itemTitle_infoIcon})})]}),E.jsxs("div",{className:Oy.statisticsAnswers_itemStat,children:[E.jsx("div",{className:Oy.statisticsAnswers_itemStat_icon,children:o.icon}),E.jsxs("div",{className:Oy.statisticsAnswers_itemStat_value,children:[o.value?a(o):Cpn,o.key==="latency"&&E.jsx("span",{children:"s"}),o.key==="accuracy_of_answers"&&o.value&&E.jsx("span",{children:"%"})]})]})]},o.key))})})};var Yct={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ns,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,i,a){var o=i.prototype,s=o.format;a.en.formats=n,o.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var c=this.$locale().formats,u=function(d,f){return d.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(p,h,m){var g=m&&m.toUpperCase();return h||f[m]||n[m]||f[g].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(v,y,_){return y||_.slice(1)})})}(l,c===void 0?{}:c);return s.call(this,u)}}})})(Yct);var lxr=Yct.exports;const cxr=qo(lxr);var Kct={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ns,function(){return function(n,r,i){n=n||{};var a=r.prototype,o={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function s(c,u,d,f){return a.fromToBase(c,u,d,f)}i.en.relativeTime=o,a.fromToBase=function(c,u,d,f,p){for(var h,m,g,v=d.$locale().relativeTime||o,y=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],_=y.length,S=0;S<_;S+=1){var C=y[S];C.d&&(h=f?i(c).diff(d,C.d,!0):d.diff(c,C.d,!0));var w=(n.rounding||Math.round)(Math.abs(h));if(g=h>0,w<=C.r||!C.r){w<=1&&S>0&&(C=y[S-1]);var x=v[C.l];p&&(w=p(""+w)),m=typeof x=="string"?x.replace("%d",w):x(w,u,C.l,g);break}}if(u)return m;var T=g?v.future:v.past;return typeof T=="function"?T(m):T.replace("%s",m)},a.to=function(c,u){return s(c,u,this,!0)},a.from=function(c,u){return s(c,u,this)};var l=function(c){return c.$u?i.utc():i()};a.toNow=function(c){return this.to(l(this),c)},a.fromNow=function(c){return this.from(l(this),c)}}})})(Kct);var uxr=Kct.exports;const dxr=qo(uxr),fxr=(e,t=Qi())=>rn.get(`/api/v2/workspaces/${t}/jobs/${e}`),Xct=(e,t=Qi())=>{const n={...e?.limit&&{limit:e?.limit},...e?.page_number&&{page_number:e?.page_number},...e?.filter&&{filter:e?.filter},...e?.select&&{select:e?.select},...e?.field&&{field:e.field},...e?.order&&{order:e.order}};return rn.get(`/api/v2/workspaces/${t}/jobs`,{params:n})},Zct=(e,t,n=Qi())=>{const r={...t?.limit&&{limit:t?.limit},...t?.page_number&&{page_number:t?.page_number},...t?.filter&&{filter:t?.filter},...t?.select&&{select:t?.select},...t?.field&&{field:t.field},...t?.order&&{order:t.order}};return rn.get(`/api/v2/workspaces/${n}/jobs/${e}/results`,{params:r})},pve=async(e,t=Qi())=>{const{data:{data:n,has_more:r}}=await Xct(e,t);if(!r)return n;const i=e?.page_number?e.page_number+1:2,a={...e,page_number:i};return[...n,...await pve(a,t)]},Qct=async(e,t,n=Qi())=>{const{data:{data:r,has_more:i}}=await Zct(e,t,n);if(!i)return r;const a=t?.page_number?t.page_number+1:2,o={...t,page_number:a};return[...r,...await Qct(e,o,n)]},pxr=(e,t=Qi())=>rn.get(`/api/v2/workspaces/${t}/jobs/${e}/results/export`,{responseType:"blob",headers:{Accept:gi.CSV}}),Jct=(e,t=Qi())=>rn.post(`/api/v2/workspaces/${t}/jobs`,e),hve=(e,t=Qi())=>rn.post(`/api/v2/workspaces/${t}/jobs/${e}/start`),eut=(e,t=Qi())=>rn.delete(`/api/v2/workspaces/${t}/jobs/${e}`),hxr=(e,t=Qi())=>rn.get(`/api/v2/workspaces/${t}/query_sets/${e}`),mxr=(e,t=Qi())=>{const n={...e?.limit&&{limit:e?.limit},...e?.page_number&&{page_number:e?.page_number}};return rn.get(`/api/v2/workspaces/${t}/query_sets`,{params:n})},zOr=(e,t,n=Qi())=>rn.post(`/api/v2/workspaces/${n}/query_sets/import`,e,t);function gxr(e,t=er(),n=Qi()){const r={workspace_name:t,job_id:e.jobId,expiration_date:e.expirationDate.toISOString(),...e?.title&&{title:e.title},...e?.description&&{description:e.description},show_files:!!e.showFiles};return rn.post(`/api/v2/workspaces/${n}/jobs/share`,r)}const vxr=(e,t=Qi())=>{const n={filter:vm("job_id",e)};return rn.get(`/api/v2/workspaces/${t}/shared_jobs`,{params:n})},yxr=(e,t,n=Qi())=>{const r={...!Nn.isNil(t?.title)&&{title:t.title},...!Nn.isNil(t?.description)&&{description:t.description}};return rn.patch(`/api/v2/workspaces/${n}/shared_jobs/${e}`,r)},bxr=(e,t=Qi())=>rn.post(`/api/v2/workspaces/${t}/shared_jobs/${e}/revoke`);let Ale,Rle;const UOr={type:uXe},HOr={type:dXe},_xr=e=>({type:xXe,payload:e}),Sxr=e=>({type:SXe,payload:e}),Exr=Ut(iXe,async(e,{dispatch:t,rejectWithValue:n})=>{try{const{data:r}=await fxr(e);return r}catch(r){return t(jn({content:Wn(r),type:yn.Error})),n(r)}}),Cxr=Ut(aM,async({limit:e,pageNumber:t,searchValue:n,sortValue:r,filterValues:i},{getState:a,dispatch:o,rejectWithValue:s})=>{const{jobListSortValue:l}=a().jobsStore,c=r||l;o(Sxr(c));const{field:u,order:d}=jvn[c]||{},f=n&&b0("name",n),p=i&&Im(i),h={page_number:t,limit:e,filter:XO(f,p),field:u,order:d};try{const{data:m}=await Xct(h);return m}catch(m){return o(jn({content:Wn(m),type:yn.Error})),s(m)}}),VOr=e=>t=>(clearInterval(Rle),Rle=setInterval(()=>t(Exr(e)),5e3),{type:Bdn}),GOr=()=>(clearInterval(Rle),{type:jdn}),qOr=(e,t,n,r,i)=>a=>(clearInterval(Ale),Ale=setInterval(()=>a(Cxr({pageNumber:e,limit:t,searchValue:n,sortValue:r,filterValues:i})),5e3),{type:zdn}),WOr=()=>(clearInterval(Ale),{type:Udn}),YOr=Ut(oM,async({id:e,limit:t,pageNumber:n,searchValue:r,sortValue:i,filterValues:a},{getState:o,dispatch:s,rejectWithValue:l})=>{const{jobResultsSortValue:c}=o().jobsStore,u=i||c;s(_xr(u));const{field:d,order:f}=Uvn[u]||{},p=r&&b0("query",r),h=a&&Im(a),m={page_number:n,limit:t,filter:XO(p,h),field:d,order:f};try{const{data:g}=await Zct(e,m);return g}catch(g){return l(g)}}),KOr=Ut(Gdn,async({id:e,jobName:t},{dispatch:n,rejectWithValue:r})=>{try{const i=await pxr(e);return S0(`${t}.csv`,i.data,gi.CSV),i.data}catch(i){return n(jn({content:Wn(i),type:yn.Error})),r(i)}}),XOr=Ut(sM,async(e,{dispatch:t,rejectWithValue:n})=>{try{const{data:r}=await Jct(e);return t(jn({content:Nvn,type:yn.Success})),r}catch(r){return t(jn({content:Wn(r),type:yn.Error})),n(r)}}),ZOr=Ut(lM,async(e,{dispatch:t,rejectWithValue:n})=>{try{const{data:r}=await Jct(e);return await hve(r.job_id),t(jn({content:UZe,type:yn.Success})),r}catch(r){return t(jn({content:Wn(r),type:yn.Error})),n(r)}}),QOr=Ut(aXe,async(e,{dispatch:t,rejectWithValue:n})=>{try{const{data:r}=await hve(e);return t(jn({content:UZe,type:yn.Success})),r}catch(r){return t(jn({content:Wn(r),type:yn.Error})),n(r)}}),JOr=Ut(oXe,async(e,{dispatch:t,rejectWithValue:n})=>{try{return await Promise.all(e.map(r=>hve(r))),t(jn({content:Ovn,type:yn.Success})),e}catch(r){return t(jn({content:Wn(r),type:yn.Error})),n(r)}}),e8r=Ut(sXe,async(e,{dispatch:t,rejectWithValue:n})=>{try{return await eut(e),t(jn({content:Lvn,type:yn.Success})),e}catch(r){return t(jn({content:Wn(r),type:yn.Error})),n(r)}}),t8r=Ut(lXe,async(e,{dispatch:t,rejectWithValue:n})=>{try{return await Promise.all(e.map(r=>eut(r))),t(jn({content:Pvn,type:yn.Success})),e}catch(r){return t(jn({content:Wn(r),type:yn.Error})),n(r)}}),n8r=Ut(cXe,async(e,{dispatch:t,rejectWithValue:n})=>{try{const{data:r}=await hxr(e);return r}catch(r){return t(jn({content:Wn(r),type:yn.Error})),n(r)}}),r8r=Ut(cM,async({limit:e,pageNumber:t},{dispatch:n,rejectWithValue:r})=>{const i={page_number:t,limit:e};try{const{data:a}=await mxr(i);return a}catch(a){return n(jn({content:Wn(a),type:yn.Error})),r(a)}}),i8r=Ut(_Xe,async(e,{dispatch:t,rejectWithValue:n})=>{try{return[{tag_id:"tag1",name:"SQ"},{tag_id:"tag2",name:"test"}]}catch(r){return t(jn({content:Wn(r),type:yn.Error})),n(r)}}),a8r=e=>({type:fXe,payload:e}),o8r=e=>({type:pXe,payload:e}),s8r=e=>({type:hXe,payload:e}),l8r=e=>({type:mXe,payload:e}),c8r=e=>({type:gXe,payload:e}),u8r=e=>({type:vXe,payload:e}),d8r=e=>({type:yXe,payload:e}),f8r=e=>({type:bXe,payload:e}),wxr=Ut(uM,async({jobId:e,title:t,expirationDate:n,description:r,showFiles:i},{rejectWithValue:a,dispatch:o})=>{try{return(await gxr({jobId:e,expirationDate:n,title:t,description:r,showFiles:i})).data}catch(s){return o(jn({content:Wn(s),type:yn.Error})),a(s)}}),xxr=Ut(dM,async({jobId:e},{rejectWithValue:t,dispatch:n})=>{try{const{data:{data:r}}=await vxr(e);return r[0]}catch(r){return n(jn({content:Wn(r),type:yn.Error})),t(r)}}),Txr=Ut(Vdn,async({sharedJobPrototypeId:e,description:t,title:n},{rejectWithValue:r,dispatch:i})=>{const a={title:n,description:t};try{const{data:o}=await yxr(e,a);return o}catch(o){return i(jn({content:Wn(o),type:yn.Error})),r(o)}}),Ixr=Ut(Iae,async e=>{const{data:t}=await bxr(e);return t}),p8r=Ut(EXe,async(e,{rejectWithValue:t})=>{const n={select:"created_by"};try{return await pve(n)}catch(r){return t(r)}}),h8r=Ut(CXe,async(e,{rejectWithValue:t})=>{const n={select:"tags/name, tags/tag_id"};try{return await pve(n)}catch(r){return t(r)}}),m8r=Ut(wXe,async(e,{rejectWithValue:t})=>{const n={select:"file",limit:40};try{return await Qct(e,n)}catch(r){return t(r)}}),Ro=e=>e.jobsStore,g8r=It(Ro,e=>e.job),v8r=It(Ro,e=>e.jobs),y8r=It(Ro,e=>e.fetchJobsStatus),b8r=It(Ro,e=>e.actionStatus),_8r=It(Ro,e=>e.jobResults),S8r=It(Ro,e=>e.fetchJobResultsStatus),E8r=It(Ro,e=>e.querySet),C8r=It(Ro,e=>e.querySets),w8r=It(Ro,e=>e.jobTags),x8r=It(Ro,e=>e.createJobStatus),T8r=It(Ro,e=>e.currentStep),I8r=It(Ro,e=>e.openCreateJobDrawer),A8r=It(Ro,e=>e.selectedJobType),R8r=It(Ro,e=>e.selectedQueryRun),N8r=It(Ro,e=>e.selectedQuerySet),O8r=It(Ro,e=>e.selectedPipeline),L8r=It(Ro,e=>e.selectedJobName),P8r=It(Ro,e=>e.selectedTags),Axr=It(Ro,e=>e.currentSharedJobResult),Rxr=It(Ro,e=>e.loadingSharedJobResultStatus),Nxr=It(Ro,e=>e.generateSharedJobResultStatus),Oxr=It(Ro,e=>e.revokeSharedJobResultStatus),k8r=It(Ro,e=>e.jobListFiltersValues),M8r=It(Ro,e=>e.jobListSortValue),D8r=It(Ro,e=>e.jobResultsFiltersValues),$8r=It(Ro,e=>e.jobResultsSortValue),Lxr="_modal_pmldq_13",Pxr="_body_pmldq_31",kxr="_content_pmldq_36",Mxr="_footer_pmldq_44",Dxr="_menu_pmldq_49",$xr="_formSection_pmldq_53",Fxr="_formSection_flex_pmldq_61",Bxr="_formSection_subtitle_pmldq_66",jxr="_formSection_title_wrapper_pmldq_69",zxr="_expirationContainer_pmldq_75",Uxr="_expirationContainer_popconfirm_title_pmldq_80",Hxr="_share_modal_alert_pmldq_84",js={modal:Lxr,body:Pxr,content:kxr,footer:Mxr,menu:Dxr,formSection:$xr,formSection_flex:Fxr,formSection_subtitle:Bxr,formSection_title_wrapper:jxr,expirationContainer:zxr,expirationContainer_popconfirm_title:Uxr,share_modal_alert:Hxr},{useToken:Vxr}=Fd,Gxr=750,qxr=30,Wxr=[{value:1,label:"in 24 hours","data-testid":"sharedPrototypeExpirationDate_option_24hours"},{value:7,label:"in 7 days"},{value:30,label:"in 30 days"},{value:60,label:"in 60 days"},{value:365,label:"in 1 year"}],tut=e=>{const{pipelineName:t,onCancel:n,jobId:r}=e;Cr.extend(dxr),Cr.extend(cxr);const i=ir(),{token:a}=Vxr(),o=b.useRef(null),[s,l]=Dp.useMessage(),[c,u]=b.useState("settings"),d=st(r?Axr:HDn),f=st(r?Rxr:VDn),p=st(r?Nxr:GDn),h=st(r?Oxr:qDn),[m,g]=b.useState(""),[v,y]=b.useState(""),[_,S]=b.useState(""),[C,w]=b.useState(qxr),[x,T]=b.useState(!1),[A,I]=b.useState(!1),[R,N]=b.useState(a.colorPrimary),[P,L]=b.useState(),$=f===Me.IN_PROGRESS,D=p===Me.IN_PROGRESS,z=h===Me.IN_PROGRESS,U=()=>{if(!d)return!1;const{expiration_date:xe,is_revoked:De}=d;return De?!0:Cr(xe).isBefore(Cr())};b.useEffect(()=>{i(aRe)},[]),b.useEffect(()=>{t&&i(ADn({pipelineName:t})),r&&i(xxr({jobId:r}))},[t,r]),b.useEffect(()=>{if(d){const{title:xe,description:De,link:Pe,show_metadata_filters:Le,show_files:ze,brand_color:Be,brand_logo:je}=d;o.current&&o.current.setHTMLContent(De),S(De),T(Le),I(ze),y(xe),Be&&N(Be),je&&L(je),U()?g(""):g(Pe)}else g("")},[d]),so(()=>{c==="settings"&&o.current?.setHTMLContent(_)},[c]);const H=()=>{const xe=Cr().add(C,"day").toDate();t?i(TDn({pipelineName:t,expirationDate:xe,description:_,showMetadataFilters:x,showFiles:A,brandColor:R,brandLogo:P})):r&&i(wxr({jobId:r,title:v,expirationDate:xe,description:_,showFiles:A}))},M=({localTitle:xe,localDescription:De,localBrandColor:Pe}={})=>{if(!t&&!r||!m||!d)return;const{shared_prototype_id:Le,shared_job_id:ze}=d;t?i(RDn({sharedPrototypeId:Le,description:De??_,showMetadataFilters:x,showFiles:A,brandColor:Pe??R,brandLogo:P})):r&&i(Txr({sharedJobPrototypeId:ze,title:xe??v,description:De??_}))},B=()=>{navigator.clipboard.writeText(m),s.success(shn)},k=()=>{if(!m)return;const{shared_prototype_id:xe,shared_job_id:De}=d;t?i(IDn(xe)):r&&i(Ixr(De)),s.success(lhn)},F=b.useMemo(()=>Nn.debounce((xe={})=>M(xe),Gxr),[m]),G=xe=>{w(xe)},q=xe=>{y(xe)},W=()=>{S(o.current?.getHTMLContent()||"")},K=()=>{T(!x)},J=()=>{I(!A)};b.useEffect(()=>{d&&M()},[x,A,P]),b.useEffect(()=>{d&&F({localTitle:v,localDescription:_,localBrandColor:R})},[v,_,R]);const te=()=>{i(aRe),n()},ae=async xe=>(v7n(xe,De=>{if(!De||typeof De!="string")return;const[,Pe]=De.split(",");L(Pe)}),!1),re=()=>U()?r?Fvn:Jpn:m?Qpn:r?Dvn:Zpn,ue=()=>{const xe=[{key:"settings",icon:E.jsx(xEt,{}),label:Efn},...t?[{key:"style",icon:E.jsx(Jyt,{}),label:Cfn}]:[]];return E.jsx(um,{className:js.menu,selectedKeys:[c],onClick:({key:De})=>u(De),mode:"vertical",items:xe})},de=E.jsxs("div",{className:js.footer,children:[E.jsx($r,{placeholder:ohn,value:m}),m?E.jsx(koe,{type:"primary",onClick:B,confirmationText:uhn,children:chn}):E.jsx(koe,{"data-testid":"generateLink-button",loading:D,disabled:D,type:"primary",onClick:H,confirmationText:fhn,loadingText:phn,children:dhn})]}),fe=()=>E.jsxs("div",{className:js.formSection,children:[E.jsxs("div",{className:js.formSection_title_wrapper,children:[E.jsxs("h6",{children:[" ",ehn," "]}),E.jsx(vr,{title:thn,children:E.jsx(om,{})})]}),m&&d?E.jsxs("div",{className:js.expirationContainer,children:[E.jsxs("div",{children:[E.jsx(Si,{children:Cr(d.expiration_date).fromNow()}),E.jsxs("small",{children:[" ",Cr(d.expiration_date).format("LLL")," "]})]}),E.jsx(fm,{title:E.jsx("div",{className:js.expirationContainer_popconfirm_title,children:yhn}),placement:"left",okText:ghn,cancelText:vhn,onConfirm:k,children:E.jsx(ut,{loading:z,type:"link",style:{paddingRight:0,paddingLeft:0},children:z?mhn:hhn})})]}):E.jsx(Zi,{value:C,style:{width:120},onChange:G,disabled:$||D||!!m,options:Wxr,"data-testid":"sharedPrototypeExpirationDate_select"})]}),ge=()=>E.jsxs("div",{className:js.formSection,children:[E.jsxs("div",{className:js.formSection_title_wrapper,children:[E.jsxs("h6",{children:[" ",nhn," "]}),E.jsx(vr,{title:rhn,children:E.jsx(om,{})})]}),E.jsx("div",{children:E.jsx(Sit,{disabled:$||D,ref:o,onTextChangeByUser:W})})]}),oe=()=>E.jsxs("div",{className:js.formSection,children:[E.jsxs("h6",{children:[" ",kvn," "]}),E.jsx($r,{value:v,placeholder:Mvn,onChange:xe=>q(xe.target.value),disabled:$||D})]}),Ee=()=>E.jsx("div",{className:js.formSection,children:E.jsxs("div",{className:js.formSection_flex,children:[E.jsxs("h6",{children:[" ",ihn," "]}),E.jsx($p,{"data-testid":"metadataFilters_toggle",disabled:$||D,checked:x,onChange:K})]})}),ce=()=>E.jsx("div",{className:js.formSection,children:E.jsxs("div",{className:js.formSection_flex,children:[E.jsxs("h6",{children:[" ",ahn," "]}),E.jsx($p,{"data-testid":"files_toggle",disabled:$||D,checked:A,onChange:J})]})}),he=()=>E.jsxs(E.Fragment,{children:[E.jsx(Ka,{className:js.share_modal_alert,message:E.jsx("h6",{children:re()}),type:"info",banner:!0,icon:U()?E.jsx(D_t,{}):E.jsx(P_t,{}),showIcon:U()||!!m}),fe(),r&&oe(),ge(),t&&Ee(),t&&ce()]}),ye=()=>E.jsxs("div",{className:js.formSection,children:[E.jsxs("div",{children:[E.jsx("h6",{children:bhn}),E.jsx("div",{className:js.formSection_subtitle,children:_hn})]}),E.jsx(xfe,{accept:`${gi.JPEG}, ${gi.PNG}, ${gi.SVG}`,beforeUpload:ae,onRemove:()=>L(null),listType:"picture",maxCount:1,multiple:!1,defaultFileList:P?[_7n(P)]:[],children:!P&&E.jsx(ut,{icon:E.jsx($bt,{}),children:tfn})})]}),me=()=>E.jsxs("div",{className:js.formSection,children:[E.jsxs("div",{children:[E.jsxs("h6",{children:[" ",Shn," "]}),E.jsx("div",{className:js.formSection_subtitle,children:Ehn})]}),E.jsx("div",{children:E.jsx(nfe,{value:R,onChange:(xe,De)=>N(De),showText:!0})})]}),_e=()=>E.jsxs(E.Fragment,{children:[ye(),me()]}),Te=xe=>({settings:he,style:_e})[xe]();return E.jsxs(wi,{title:r?$vn:Xpn,open:!0,centered:!0,footer:de,onCancel:te,maskClosable:!1,className:js.modal,width:800,children:[l,E.jsxs("div",{className:js.body,children:[ue(),E.jsx("div",{className:js.content,children:Te(c)})]})]})},Yxr="_pipelineDetails_pipelineStatusMessage_1lilx_13",Kxr="_pipelineDetails_1lilx_13",Xxr="_pipelineDetails_alertLink_1lilx_23",Zxr="_pipelineDetails_tabs_1lilx_26",sx={pipelineDetails_pipelineStatusMessage:Yxr,pipelineDetails:Kxr,pipelineDetails_alertLink:Xxr,pipelineDetails_tabs:Zxr},Qxr=()=>{const e=ir(),t=ys(),n=st(WT),r=st(l8),i=st(c8),a=st(zDn),o=st(Bhe),s=st(Itt),l=st(UDn),c=st(WDn),u=st(Att),f=st(YDn)===Me.IN_PROGRESS,p=st(jhe),h=st(Uhe),m=st(KDn),g=st(zhe),{getPipelineFeedback:v,getFeedbackTags:y,resetFeedbackTags:_,resetFeedbackData:S,resetProvidedFeedbackStatus:C,pipelineFeedback:w,selectedFeedbackSortValue:x,pipelineFeedbackTagsByPipelineId:T}=Sv(),{exportPipelineDocuments:A}=KT(),I=b.useCallback(()=>{const{name:Ze,status:Ke}=n;A({name:Ze,status:Ke})},[n.name,n.status]),[R,N]=b.useState(),[P,L]=b.useState(0),[$,D]=b.useState(!1),[z,U]=b.useState(m),[H,M]=b.useState(!1),[B,k]=b.useState(dv().pipelineName),[F,G]=b.useState({key:"date",label:"Date",value:n.last_deployed_at,type:li.DATE}),[q,W]=b.useState({key:"bookmarked",label:"Save for later",value:!1,type:li.TOGGLE}),K=b.useRef(null),J=ent(n.idle_timeout_in_seconds),{indexing:te,status:ae,last_deployed_at:re,service_level:ue}=n,{pending_file_count:de,failed_file_count:fe}=te,ge=Ze=>{e(wDn({name:B,limit:Ze||gQn}))};b.useEffect(()=>(S(),_(),C(),()=>{e(mDn),e(hDn),e(i6),e(Mhe)}),[]),b.useEffect(()=>{n?.pipeline_id&&y({pipelineId:n.pipeline_id})},[n.pipeline_id]);const oe=async()=>{await e(i6),e(Fhe(B));const Ze={deepset_cloud_version:n.deepset_cloud_version};n.deepset_cloud_version===Rr.V1?Ze.config=n.yaml||"":n.deepset_cloud_version===Rr.V2&&(Ze.indexing_yaml=n.indexing_yaml||"",Ze.query_yaml=n.query_yaml||""),e($he(Ze))};b.useEffect(()=>{n.name===B&&h===Me.SUCCESS&&oe()},[n.yaml,n.name,h]),b.useEffect(()=>{F.value&&e(ODn({pipelineName:B,filterValues:{logged_at:[{...F}]}}))},[ae,F]),b.useEffect(()=>{re&&G(Ze=>({...Ze,value:re}))},[ae,re]),b.useEffect(()=>(e(oRe(B)),ge(),e(Yg({pipelineName:B})),e(B5({pipelineName:B})),e(OF(B)),e(eC(B)),()=>{e(L3()),e(sRe())}),[e,B]),b.useEffect(()=>(ts(n.status)&&e(Ctt(B)),n.status===qn.DEPLOYED&&e(oRe(B)),()=>{e(FM())}),[n.status]),b.useEffect(()=>{if(!R)return;const Ze=w?.data.length-1,Ke=P>0?0:Ze;L(Ke),N(w?.data[Ke]?.search_history)},[K.current?.currentPage]),b.useEffect(()=>{p===Me.SUCCESS&&(window.history.replaceState({},"",`${n.name}`),k(n.name))},[p]);const Ee=()=>{t("/pipelines")},ce=()=>{n.deepset_cloud_version===Rr.V1?t(`/pipelines/designer/${B}`):n.deepset_cloud_version===Rr.V2&&t(`/pipelines/editor/${B}`)},he=()=>{t(`/pipelines/${B}/studio`)},ye=()=>{t(`/prompt-studio/${B}`)},me=Ze=>{if(!n.pipeline_id)return;const qe={...{bookmarked:[q]},...Ze?.filterValues||{}},nt={pipelineId:n.pipeline_id,...Ze,filterValues:qe};v(nt),K.current={...nt}};b.useEffect(()=>{n.pipeline_id&&me({currentPage:1,pageSize:10,searchValue:""})},[n.pipeline_id]);const _e=()=>{L(0),N(null)},Te=Ze=>{Nn.isNil(Ze)||(L(Ze),N(w?.data[Ze]?.search_history))},xe=Ze=>{const{filterValues:Ke,searchValue:qe,sortValue:nt}=K.current,Qe={...q,value:Ze},it={...Ke,bookmarked:[Qe]},yt={currentPage:1,pageSize:10,searchValue:qe,sortValue:nt,filterValues:it};W(Qe),me(yt),K.current={...K.current,...yt}},De=()=>{const Ze=w?.data[P];if(!Ze)return null;const{score:Ke,tags:qe}=Ze;return{score:Ke,tags:qe}},Pe=()=>{if(!R)return null;const{rank:Ze,search:{filters:Ke,created_at:qe,duration:nt}}=R,{created_by:Qe}=w?.data[P];return{rank:Ze,filters:Ke,createdAt:qe,user:Qe||null,duration:nt}},Le=()=>{const Ze=P===0,{currentPage:Ke,...qe}=K.current;if(Ze&&Ke>1){me({currentPage:Ke-1,...qe});return}if(Ze)return;const nt=P-1,Qe=w?.data[nt]?.search_history;L(nt),N(Qe)},ze=()=>{const Ze=P===w.data.length-1,{currentPage:Ke,...qe}=K.current,{has_more:nt}=w;if(Ze&&nt){me({currentPage:Ke+1,...qe});return}if(Ze)return;const Qe=P+1,it=w?.data[Qe]?.search_history;L(Qe),N(it)},Be=()=>{const Ze=Ke=>Ke===qn.IDLE;return ts(ae)?ae===qn.DEPLOYMENT_IN_PROGRESS||ae===qn.DEPLOYMENT_SCHEDULED?sZe:lZe:ae===qn.DEPLOYMENT_FAILED?Ope:ae===qn.UNDEPLOYMENT_FAILED?Lpe:ae===qn.IDLE?zpn:ae!==qn.DEPLOYED&&!Ze(ae)?Su.NOT_INDEXED:de>0?Su.IN_PROGRESS:de===0&&fe>0?Su.PARTIALLY_INDEXED:de===0&&fe===0?Su.INDEXED:""},je=()=>[{label:fMn,key:T1.OVERVIEW,children:E.jsxs(E.Fragment,{children:[E.jsx(Zwr,{pipelineStatistics:a,pipelineIndexingData:i,setActiveTabPipelineDetailsPage:Ke=>{U(Ke),e($M(Ke))}}),E.jsx(sxr,{statisticsAnswers:l}),o.data&&o.data.length>0&&E.jsx(JCr,{latestQueries:o,getLatestQueries:Ke=>ge(Ke),loading:s===Me.IN_PROGRESS}),E.jsx(FCr,{pipelineId:n.pipeline_id,pipelineName:n.name,feedback:w,tags:T[n.pipeline_id]??{data:[]},getFeedbacks:me,selectedSortValue:x,bookmarkFilter:q,onQueryClick:Te,onBookmarkFilterClick:xe})]})},{label:pMn,key:T1.LOGS,children:Lke?E.jsx(Lke,{pipelineLogs:c?.data,pipelineTotalNumberLogs:c?.total,pipelineLogsListHasMore:c?.has_more,pipelineName:B,filterDateLastDeployedAt:F,getPipelineLogs:Ke=>e(Ttt(Ke)),startPollingPipelineLogs:Ke=>e(PDn(Ke)),stopPollingPipelineLogs:()=>e(sRe()),pipelineStatus:n.status,downloadLogsCSV:()=>e(LDn(B)),loading:f,activeTab:z}):null},{label:hMn,key:T1.SETTINGS,children:E.jsx(qwr,{pipelineId:n.pipeline_id})}],Ye=()=>{const Ze=stt.find(nt=>nt.status===Be());let Ke=!1,qe=null;return Ze&&Ze.status===Su.IDLE?(qe=Pn(Ze.message,{idleTimeout:J,activate:E.jsx(ut,{type:"link",className:sx.pipelineDetails_alertLink,onClick:()=>e(o6({pipelineName:n.name})),children:mMn})}),E.jsx(Ka,{message:Ze.title,description:qe,type:Ze.type,className:sx.pipelineDetails_pipelineStatusMessage})):Ze&&(Ze.status===Su.INDEXED&&u[B]&&(qe=E.jsxs(E.Fragment,{children:[i.indexed_no_documents_file_count>0&&gMn,Pn(Ze.message,{logs:E.jsx(ut,{type:"link",className:sx.pipelineDetails_alertLink,onClick:()=>{U(T1.LOGS),e($M(T1.LOGS))},children:ott})})]}),Ke=!0),Ze.status!==Su.INDEXED&&(qe=Pn(Ze.message,{documentation:E.jsx("a",{href:Ze.documentation,target:"_blank",rel:"noreferrer",children:att})}),Ke=!0),Ke)?E.jsx(Ka,{message:Ze.title,description:qe,type:Ze.type,className:sx.pipelineDetails_pipelineStatusMessage}):null};return E.jsxs("div",{className:"content-wrapper_padding",children:[n&&E.jsxs("div",{className:sx.pipelineDetails,children:[E.jsx(NCr,{pipeline:n,pipelineName:B,deployPipelineHandler:Ze=>e(AU(Ze)),undeployPipelineHandler:Ze=>e(RU(Ze)),onSharePipelineHandler:()=>M(!0),deletePipelineHandler:Ze=>e(Stt(Ze)),onActivatePipelineHandler:Ze=>e(o6({pipelineName:Ze})),goToPipelinesPageHandler:Ee,fetchPipelineIndexingHandler:Ze=>e(eC(Ze)),fetchPipelineHandler:Ze=>e(Yg({pipelineName:Ze})),pipelineIndexingData:i,goToYamlEditor:ce,goToStudio:he,duplicatePipeline:Ze=>{n.deepset_cloud_version===Rr.V1?e(wtt(Ze)):n.deepset_cloud_version===Rr.V2&&e(xtt(Ze))},onPromptExplorerMenuClick:ye,setShowRenamePipelineModal:Ze=>D(Ze),pipelineStatusString:Be(),serviceLevel:E.jsx(XT,{serviceLevel:ue}),deepsetCloudVersion:E.jsx(l0,{deepsetCloudVersion:n.deepset_cloud_version}),onDocumentExportMenuClicked:I}),Ye(),E.jsx(Fwr,{}),E.jsx(Lu,{activeKey:z,onChange:Ze=>{U(Ze),e($M(Ze))},items:je(),className:sx.pipelineDetails_tabs}),g.length>0&&E.jsx(dve,{errors:g})]}),H&&E.jsx(tut,{pipelineName:n.name,onCancel:()=>M(!1)}),R&&E.jsx(CCr,{isVisible:!!R,pipelineName:B,pipelineId:n.pipeline_id,showFeedbackActionButtons:!0,isPreviousItemButtonDisabled:P===0&&K.current?.currentPage===1,isNextItemButtonDisabled:P===w.data.length-1&&!w.has_more,onClose:_e,searchResult:Yvn(R),feedbackData:De(),extraQueryInfo:Pe(),onPreviousClick:Le,onNextClick:ze}),E.jsx(_8,{openModal:$,closeModal:()=>D(!1),modalTitle:eZe,okButtonText:nZe,pipelineName:B,renamePipeline:Ze=>e(NU(Ze)),renamePipelineNameStatus:p,resetRenamePipelineNameStatus:()=>e(NF),pipelineMessage:r,resetMessage:()=>e(VT)})]})},mve=()=>{const e=ir(),t=st(QDn),n=st(JDn),r=st(e$n),i=st(t$n),a=st(n$n);return{setActiveTabYamlEditor:p=>{e(oDn(p))},resetActiveTabYamlEditor:()=>{e(sDn)},activeTabYamlEditor:t,indexingCode:n,setIndexingCode:p=>{e(lDn(p))},queryCode:r,setQueryCode:p=>{e(cDn(p))},resetEditedCode:()=>{e(dDn)},indexingYamlEditorDiff:i,setIndexingYamlEditorDiff:p=>{e(fDn(p))},queryYamlEditorDiff:a,setQueryYamlEditorDiff:p=>{e(pDn(p))}}},nut=()=>{const e=ir(),{pipeline:t,renamePipelineNameStatus:n,fetchPipelineYamlStatus:r,pipelineCreateUpdatePipelineStatus:i,pipelineIndexingData:a,pipelineErrors:o,resetPipelineErrors:s,getRuntimeIssueDetection:l,validatePipelineYaml:c,setPipelineYamlV2:u,updatePipeline:d,resetMessage:f,updatePipelineYaml:p,createPipeline:h}=KT(),{activeTabYamlEditor:m,indexingCode:g,queryCode:v,indexingYamlEditorDiff:y,queryYamlEditorDiff:_,setIndexingCode:S,setQueryCode:C,setIndexingYamlEditorDiff:w,setQueryYamlEditorDiff:x}=mve(),{name:T,status:A,editedIndexingYaml:I,editedQueryYaml:R,indexing:N,yaml:P,indexing_yaml:L,query_yaml:$,service_level:D}=t,[z,U]=b.useState(!1),[H,M]=b.useState(!1),[B,k]=b.useState(!1),[F,G]=b.useState(!1),[q,W]=b.useState(L||""),[K,J]=b.useState(""),[te,ae]=b.useState(!0),[re,ue]=b.useState({type:Er.WARNING,content:""}),de=b.useRef(null),fe=b.useRef(null),{trackUserEvent:ge}=Ev(),{pending_file_count:oe}=N,Ee=async je=>{await s(),l(je),c({deepsetCloudVersion:t.deepset_cloud_version,indexingYaml:L||"",queryYaml:$||""})},ce=je=>{e(bDn(je))},he=je=>{e(_Dn(je))},ye=()=>{T&&K&&K!==T&&W1(K)&&d({pipelineName:T,newPipelineName:K})},me=(je,Ye)=>{ge({type:je,control:`${ao.STUDIO}/${Ye}`,properties:{version:"dc"}})};return{pipeline:t,name:T,status:A,editedIndexingYaml:I,editedQueryYaml:R,yaml:P,indexingYaml:L,queryYaml:$,serviceLevel:D,renamePipelineNameStatus:n,fetchPipelineYamlStatus:r,pipelineCreateUpdatePipelineStatus:i,pipelineIndexingData:a,loadingButton:z,savingPipeline:H,editPipelineName:B,openPipelineConfirmationModal:F,successfulValidationPipelineName:te,pipelineNameInputRef:de,editPipelineNameButtonRef:fe,newPipelineName:K,pipelinePendingFileCount:oe,activeTabYamlEditor:m,warningMessage:re,pipelineErrors:o,selectedYaml:q,getEditedYaml:()=>I&&m===fc.INDEXING_YAML?I:R&&m===fc.QUERY_YAML?R:!1,setLoadingButton:U,setSavingPipeline:M,setEditPipelineName:k,setOpenPipelineConfirmationModal:G,setSuccessfulValidationPipelineName:ae,setNewPipelineName:J,getPipelineIssues:Ee,resetCode:je=>{L!==null&&m===fc.INDEXING_YAML?(S(L),w(!1),ce(!1)):$!==null&&m===fc.QUERY_YAML&&(C($),x(!1),he(!1)),u({indexingYaml:L||"",queryYaml:$||""}),Ee(je)},onRenamePipeline:ye,onSavePipeline:async(je,Ye,Ze,Ke)=>{if(!je&&!T)ae(!1),k(!0);else if(M(!0),f(),Ke&&me(Wa.CLICK,Upe.SAVE_PIPELINE),Ye&&S(Ye),Ze&&C(Ze),(je||T)&&t.pipeline_id)await p({indexing_yaml:Ye??g,query_yaml:Ze??v,name:T});else if(!t.pipeline_id){const qe={pipelineName:T,deepsetCloudVersion:Rr.V2,indexingYaml:Ye||g,queryYaml:Ze||v};h(qe)}},onDidAttemptReadOnlyEditCode:()=>{D===Li.PRODUCTION&&ue({content:Hct.productionPipelines,type:Er.WARNING})},isDesignerReadOnly:()=>!!(D===Li.PRODUCTION||ts(A)),storeCode:je=>{L!==null&&m===fc.INDEXING_YAML?(S(je),ce(!0)):$!==null&&m===fc.QUERY_YAML&&(C(je),he(!0))},setSelectedYaml:W,getEditorCode:()=>L!==null&&m===fc.INDEXING_YAML?g:$!==null&&m===fc.QUERY_YAML?v:"",getOriginalCode:()=>m===fc.INDEXING_YAML?y:_,sendMetricsDcStudio:me}},Jxr="_tabContainer_ihajt_13",e5r="_tabContainer_tab_ihajt_20",t5r="_tabContainer_icon_ihajt_26",n5r="_tabContainer_title_ihajt_29",r5r="_actionContainer_ihajt_38",i5r="_divider_ihajt_42",a5r="_tabs_title_ihajt_46",o5r="_tabs_ihajt_46",s5r="_diffButton_ihajt_63",l5r="_yaml_ihajt_72",c5r="_yaml_codeEditor_ihajt_78",iS={tabContainer:Jxr,tabContainer_tab:e5r,tabContainer_icon:t5r,tabContainer_title:n5r,actionContainer:r5r,divider:i5r,tabs_title:a5r,tabs:o5r,diffButton:s5r,yaml:l5r,yaml_codeEditor:c5r},u5r=se.lazy(()=>Io(()=>import("./YamlEditor.CB5Tkggl.js").then(e=>e.b),__vite__mapDeps([8,3,4,9])));function d5r(){const{indexingYaml:e,queryYaml:t,editedIndexingYaml:n,editedQueryYaml:r,activeTabYamlEditor:i,warningMessage:a,onDidAttemptReadOnlyEditCode:o,isDesignerReadOnly:s,pipelineErrors:l,storeCode:c,selectedYaml:u,setSelectedYaml:d,getEditorCode:f,getOriginalCode:p}=nut(),{setActiveTabYamlEditor:h,setIndexingCode:m,setQueryCode:g,indexingYamlEditorDiff:v,setIndexingYamlEditorDiff:y,queryYamlEditorDiff:_,setQueryYamlEditorDiff:S}=mve();return b.useEffect(()=>{e&&i===fc.INDEXING_YAML?d(e):t&&i===fc.QUERY_YAML&&d(t)},[i,e,t]),b.useEffect(()=>{m(e),y(!1),g(t),S(!1)},[e,t]),E.jsx(E.Fragment,{children:E.jsx("div",{className:iS.yaml,children:E.jsxs("div",{className:iS.tabContainer,children:[E.jsx(Lu,{className:iS.tabs,activeKey:i,onChange:C=>h(C),items:WSr.map(C=>({label:C.label,key:C.key})),type:"card",tabBarExtraContent:E.jsxs(E.Fragment,{children:[n&&i===fc.INDEXING_YAML&&E.jsxs("span",{className:iS.diffButton,children:[Tle,E.jsx($p,{checked:v,size:"small",onChange:()=>y(!v)})]}),r&&i===fc.QUERY_YAML&&E.jsxs("span",{className:iS.diffButton,children:[Tle,E.jsx($p,{checked:_,size:"small",onChange:()=>S(!_)})]})]})}),a.content&&E.jsx(Ka,{message:a.content,type:a.type,banner:!0,className:iS.warningMessage}),E.jsxs("div",{className:iS.yaml_codeEditor,children:[E.jsx(se.Suspense,{fallback:E.jsx($o,{}),children:E.jsx(u5r,{originalCode:p()?u:"",code:f(),onStore:c,readOnly:s(),isV2:!0,onDidAttemptReadOnlyEditCode:()=>o(),newEditorTab:h})}),l.length>0&&E.jsx(dve,{errors:l})]})]})})})}const f5r="_settings_6atq9_13",p5r="_settings_nameContent_6atq9_20",h5r="_settings_name_6atq9_20",m5r="_settings_name_editName_6atq9_30",g5r="_settings_name_input_6atq9_33",v5r="_settings_name_input_error_6atq9_36",y5r="_settings_icon_6atq9_42",b5r="_settings_pipelineStatus_6atq9_50",_5r="_settings_badge_6atq9_54",S5r="_settings_actions_6atq9_57",E5r="_switchServiceLevel_6atq9_64",C5r="_switchServiceLevel_info_6atq9_74",zc={settings:f5r,settings_nameContent:p5r,settings_name:h5r,settings_name_editName:m5r,settings_name_input:g5r,settings_name_input_error:v5r,settings_icon:y5r,settings_pipelineStatus:b5r,settings_badge:_5r,settings_actions:S5r,switchServiceLevel:E5r,switchServiceLevel_info:C5r};function w5r(e){const t=ir(),{savePipeline:n}=e,{resetNewPipelineName:r,resetRenamePipelineNameStatus:i,fetchPipelineIndexing:a,deployPipeline:o,undeployPipeline:s,resetPipelineErrors:l,resetFetchPipelineYamlStatus:c,resetPipeline:u,resetPipelineYaml:d,fetchPipeline:f,fetchPipelineYaml:p,resetValidateNewPipelineName:h,startPollingPipelineStatus:m,stopPollingPipelineStatus:g,setPipelineName:v,setDeepsetCloudVersion:y}=KT(),{resetActiveTabYamlEditor:_,resetEditedCode:S}=mve(),{isLimitedUser:C}=st(Pl),{pipeline:w,name:x,status:T,indexingYaml:A,queryYaml:I,editedIndexingYaml:R,editedQueryYaml:N,serviceLevel:P,renamePipelineNameStatus:L,fetchPipelineYamlStatus:$,pipelineCreateUpdatePipelineStatus:D,pipelineIndexingData:z,loadingButton:U,setLoadingButton:H,savingPipeline:M,setSavingPipeline:B,editPipelineName:k,setEditPipelineName:F,openPipelineConfirmationModal:G,setOpenPipelineConfirmationModal:q,successfulValidationPipelineName:W,setSuccessfulValidationPipelineName:K,pipelineNameInputRef:J,editPipelineNameButtonRef:te,newPipelineName:ae,setNewPipelineName:re,pipelinePendingFileCount:ue,getPipelineIssues:de,resetCode:fe,onRenamePipeline:ge,onSavePipeline:oe,getEditedYaml:Ee,sendMetricsDcStudio:ce}=nut(),he=jT(),{pipelineName:ye}=dv(),me=!x||!ye;return Dct(Vct,!!R||!!N),b.useEffect(()=>(he.header.title===Tke&&me&&(u(),y(Rr.V2)),()=>{r(),l(),c(),d(),_(),S()}),[]),b.useEffect(()=>{ye&&(f(ye),p(ye),re(ye),h(),i())},[t,ye]),b.useEffect(()=>{w.name===ye&&$===Me.SUCCESS&&de(ye)},[A,I,w.name,$]),b.useEffect(()=>{ae&&x&&ae!==x?(h(),i(),K(W1(ae))):K(!0)},[ae]),b.useEffect(()=>{k&&J.current?.focus({cursor:"end"})},[k]),b.useEffect(()=>{D===Me.SUCCESS&&(f(x||ye),p(x||ye))},[D]),b.useEffect(()=>(ts(T)||ue>0?m(x):(g(),H(!1),B(!1)),()=>{g()}),[x,T,ue,t]),E.jsxs(E.Fragment,{children:[E.jsxs("div",{className:zc.settings,children:[E.jsxs("div",{className:`${zc.settings_name} ${k?zc.settings_name_editName:""}`,children:[E.jsx("div",{className:zc.settings_badge,children:E.jsx(XT,{serviceLevel:P})}),k?E.jsxs("div",{className:zc.settings_nameContent,children:[E.jsx($r,{placeholder:JXe,defaultValue:w.name,className:zc.settings_name_input,onChange:_e=>re(_e.target.value),ref:J,status:!W||L===Me.ERROR?"error":"",onBlur:_e=>{w.pipeline_id?ge():(re(_e.target.value),v(_e.target.value)),F(!k)},onKeyDown:_e=>{_e.key==="Enter"&&J.current?.blur()}}),!W&&E.jsx("div",{className:zc.settings_name_input_error,children:O_.INVALID_CHARACTERS})]}):E.jsx("span",{children:w.name||zct}),E.jsx("div",{className:zc.settings_icon,children:E.jsx(vr,{title:QXe,children:E.jsx(ut,{type:"text",onClick:()=>F(!k),ref:te,children:E.jsx(vj,{})})})}),E.jsx("div",{className:zc.settings_pipelineStatus,children:E.jsx(DC,{pipeline:w,getIndexingDetails:_e=>a(_e),indexingData:z})}),E.jsx(l0,{deepsetCloudVersion:w.deepset_cloud_version})]}),E.jsxs("div",{className:zc.settings_actions,children:[P!==Li.DRAFT&&!C&&E.jsxs("span",{className:zc.switchServiceLevel,children:[E.jsx(vr,{placement:"bottom",title:fZe,children:E.jsx(om,{className:zc.switchServiceLevel_info})}),E.jsx("span",{children:Ppe})," ",E.jsx(fve,{serviceLevel:P,afterSwitch:()=>f(x),pipelineName:x,size:"small"})]}),Ee()&&E.jsx(vr,{placement:"bottom",title:Uct,children:E.jsx(ut,{disabled:ts(T),onClick:()=>fe(ye),type:"link",className:zc.resetButton,children:Fct})}),!Jtt(T,P)&&!U&&E.jsx(ut,{type:Ee()||me||n?"primary":"default",className:zc.saveButton,disabled:n?!1:ts(T)||!Ee()&&w.pipeline_id!=="","data-testid":"savePipeline_button",onClick:()=>{n?n():oe(ye)},children:$ct}),j5(T)?E.jsx(ut,{loading:ts(T)||U,onClick:()=>{q(!0)},className:zc.deployButton,children:T===qn.UNDEPLOYMENT_IN_PROGRESS||T===qn.UNDEPLOYMENT_SCHEDULED?rZe:LB}):E.jsx(ut,{type:"primary",className:zc.deployButton,disabled:Ee()||w.pipeline_id==="",loading:(ts(T)||U)&&!M,onClick:()=>{H(!0),o(x),he.header.title===Tke&&ce(Wa.CLICK,Upe.DEPLOY_PIPELINE),m(x)},children:(T===qn.DEPLOYMENT_IN_PROGRESS||T===qn.DEPLOYMENT_SCHEDULED)&&!M||U?jct:Bct})]})]}),E.jsx($H,{open:G,okText:LB,onOk:async()=>{H(!0),await s(x),f(x),m(x),q(!1)},cancelText:gm,onCancel:()=>{q(!1)},pipelines:G?[w]:[],undeployingPipeline:!0})]})}const x5r="_container_1ap4q_35",T5r="_divider_1ap4q_51",I5r={"auth-content":"_auth-content_1ap4q_25","content-wrapper":"_content-wrapper_1ap4q_35",container:x5r,"content-wrapper_padding":"_content-wrapper_padding_1ap4q_40",divider:T5r};function Pke(){return E.jsxs("div",{className:I5r.container,children:[E.jsx(w5r,{}),E.jsx(d5r,{})]})}const rut=()=>{const e=ir(),{data:t,total:n}=st(p=>z_(p)),r=st(ZDn),i=st(r$n),a=st(jDn),o=b.useRef(null),s=p=>r?.length===0&&p===void 0?_F:p===void 0?ywe:p,l=async(p,h,m,g,v)=>{const y={currentPage:p,pageSize:h,searchValue:m,sortValue:await s(g),serviceLevel:v||r};await e(j_(y)),o.current={...y}},c=(p,h,m)=>{e(SDn(p,h,m,1e4))},u=()=>{e(Noe())},d=p=>{e(CDn(p))},f=p=>{e(gtt(p))};return b.useEffect(()=>{r?.length===0?e(Ioe(_F)):e(Ioe(ywe)),l(hZe,kpe,"")},[r]),{pipelinesList:t,totalPipelines:n,getPipelinesList:l,startPollingPipelinesList:c,stopPollingPipelinesList:u,deleteMultiplePipelines:d,activeTabPipelinesLandingPage:r,setActiveTabPipelinesList:f,fetchPipelinesListStatus:a,sortValuePipelinesList:i,pipelineListDataParams:o}},A5r=()=>{const e=ys(),[t,n]=b.useState(""),[r,i]=b.useState(!1),[a,o]=b.useState(null),[s,l]=b.useState(null),[c,u]=b.useState(0),[d,f]=b.useState([]),[p,h]=b.useState([]),[m,g]=b.useState(!1),[v,y]=b.useState(""),[_,S]=b.useState(!1),[C,w]=b.useState(!1),{deleteMultiplePipelines:x,getPipelinesList:T,activeTabPipelinesLandingPage:A,setActiveTabPipelinesList:I}=rut(),{createPipeline:R,deletePipeline:N,undeployPipeline:P,duplicatePipelineV1:L,duplicatePipelineV2:$,pipelineLogsUnhealthy:D,setActiveTabPipelineDetailsPage:z,resetRenamePipelineNameStatus:U,exportPipelineDocuments:H}=KT(),{exportPipelineFeedbackCSV:M}=Sv(),B=he=>{o(he),g(!0)},k=async he=>{l(he),g(!0)},F=he=>{y(he),S(!0)},G=he=>{e(`/pipelines/${he}/studio`)},q=async(he,ye,me)=>{he===Is.Details&&e(`/pipelines/${ye}`),he===Is.Observability&&e(`/groundedness/${ye}`),he===Is.Edit&&(me.deepset_cloud_version===Rr.V1?e(`/pipelines/designer/${ye}`):me.deepset_cloud_version===Rr.V2&&e(`/pipelines/editor/${ye}`)),he===Is.PromptExplorer&&e(`/prompt-studio/${ye}`),he===Is.Delete&&B(me),he===Is.Duplicate&&(me.deepset_cloud_version===Rr.V1?L(ye):me.deepset_cloud_version===Rr.V2&&$(ye)),he===Is.ExportFeedbackCSV&&M(me.pipeline_id,ye),he===Is.Undeploy&&k(me),he===Is.RenamePipeline&&F(ye),he===Is.Studio&&G(ye),he===Is.ExportDocuments&&H({name:ye,status:me.status})},W=()=>{g(!1),o(null),l(null),f([]),h([])};return{onChangeTab:async he=>{w(!0),he===N1.ALL?await I(""):await I(he),w(!1)},handleMoreActionClick:q,pipelineToShare:t,setPipelineToShare:n,createPipelineFromEmptyYaml:r,setCreatePipelineFromEmptyYaml:i,pipelineToDelete:a,setPipelineToDelete:o,setPipelineToUndeploy:l,pipelineToUndeploy:s,totalSelectedPipelines:c,setTotalSelectedPipelines:u,selectedPipelinesToDelete:d,setSelectedPipelinesToDelete:f,selectedPipelineNamesToDelete:p,setSelectedPipelineNamesToDelete:h,openPipelineConfirmationModal:m,setOpenPipelineConfirmationModal:g,getOnOkPipelineConfirmationModal:async()=>{a?await N(a.name):s?await P(s.name):p.length&&await x(p),W()},getOnCancelPipelineConfirmationModal:W,getPipelinesForConfirmationModal:()=>d.length>0?d:a?[a]:s?[s]:[],onUndeployPipeline:k,pipelineToRename:v,setPipelineToRename:y,showRenamePipelineModal:_,setShowRenamePipelineModal:S,onAfterPipelineCreated:()=>{S(!1),i(!1),I(""),T(hZe,kpe,"",Li.DRAFT)},onAfterPipelineRenamed:()=>{U(),S(!1)},onCloseNamePipelineModal:()=>{S(!1),i(!1)},onGotToLogs:he=>{z(T1.LOGS),e(`/pipelines/${he}`)},handleMenuCreatePipelineClick:()=>{e("/pipelines/templates")},onDeleteMultiplePipelines:async(he,ye)=>{const me=ye.map(_e=>he.find(Te=>Te.name===_e));me&&f([...me.map(_e=>_e).filter(Boolean)]),g(!0),h(ye)},createPipelineFromEmptyYamlHandler:(he,ye)=>{let me={};ye?ye===Rr.V1?me={code:O5,deepsetCloudVersion:ye}:ye===Rr.V2&&(me={deepsetCloudVersion:ye,indexingYaml:Fae,queryYaml:$ae}):me={code:O5},R({...me,pipelineName:he})},isPipelineUnhealthy:he=>{const{indexing:ye,name:me,status:_e}=he;return!!(_e===qn.DEPLOYED&&ye.failed_file_count===0&&ye.pending_file_count===0&&D[me])},resetCurrentPage:C,getEmptyLabelForTable:()=>A===N1.PRODUCTION?$pn:A===N1.DEVELOPMENT?Fpn:A===N1.DRAFT?Bpn:Dpn}},R5r="_tabs_1oj8l_13",N5r="_nameLink_1oj8l_23",O5r="_serviceLevelLabel_1oj8l_27",L5r="_pipelineStatus_1oj8l_32",P5r="_pipelineStatus_unhealthyIcon_1oj8l_39",k5r="_pipelineStatus_alertLink_1oj8l_44",Ly={tabs:R5r,nameLink:N5r,serviceLevelLabel:O5r,pipelineStatus:L5r,pipelineStatus_unhealthyIcon:P5r,pipelineStatus_alertLink:k5r},M5r=se.lazy(()=>Io(()=>import("./pipelines-landing.C0aoW3ow.js"),[])),D5r=()=>{const{status:e,deployPipeline:t,activatePipeline:n,actionStatus:r,message:i,deletePipeline:a,updatePipeline:o,fetchPipelineIndexing:s,pipelineIndexingData:l,renamePipelineNameStatus:c,pipelineCreateUpdatePipelineStatus:u,resetRenamePipelineNameStatus:d,resetMessage:f,newPipelineName:p,resetNewPipelineName:h}=KT(),{pipelinesList:m,totalPipelines:g,getPipelinesList:v,startPollingPipelinesList:y,stopPollingPipelinesList:_,activeTabPipelinesLandingPage:S,fetchPipelinesListStatus:C,sortValuePipelinesList:w,pipelineListDataParams:x}=rut(),{onChangeTab:T,handleMoreActionClick:A,pipelineToShare:I,setPipelineToShare:R,createPipelineFromEmptyYaml:N,setPipelineToDelete:P,pipelineToUndeploy:L,totalSelectedPipelines:$,setTotalSelectedPipelines:D,openPipelineConfirmationModal:z,getOnOkPipelineConfirmationModal:U,getOnCancelPipelineConfirmationModal:H,getPipelinesForConfirmationModal:M,onUndeployPipeline:B,pipelineToRename:k,showRenamePipelineModal:F,onAfterPipelineCreated:G,onAfterPipelineRenamed:q,onCloseNamePipelineModal:W,onGotToLogs:K,handleMenuCreatePipelineClick:J,onDeleteMultiplePipelines:te,createPipelineFromEmptyYamlHandler:ae,isPipelineUnhealthy:re,resetCurrentPage:ue,getEmptyLabelForTable:de}=A5r(),fe=b.useRef(null),ge=e===Me.IN_PROGRESS||r===Me.IN_PROGRESS||C===Me.IN_PROGRESS,oe=C===Me.SUCCESS&&m.length===0&&!S,Ee=()=>!!x.current?.searchValue,ce=xe=>{const{name:De}=xe,Pe=stt.find(Le=>Le.status===Su.INDEXED);if(Pe&&re(xe)){const Le=`${Pe.title}. ${Pe.message}`;return Pn(Le,{logs:E.jsx(ut,{type:"link",className:Ly.pipelineStatus_alertLink,onClick:()=>K(De),children:ott})})}return""},he=()=>N?tZe:N?Rpe:eZe,ye=[{title:KXe,dataIndex:"name",key:"name",width:"40%",render:(xe,De)=>E.jsxs(E.Fragment,{children:[E.jsx(l0,{deepsetCloudVersion:De.deepset_cloud_version}),E.jsx(Jg,{to:`/pipelines/${De.name}`,className:Ly.nameLink,children:De.name})]})},{title:Spn,dataIndex:"service_level",key:"service_level",width:"10%",render:(xe,De)=>E.jsxs(E.Fragment,{children:[E.jsx(XT,{serviceLevel:De.service_level}),E.jsx("span",{className:Ly.serviceLevelLabel,children:nmn[De.service_level]})]})},{title:Ape,dataIndex:"created_at",key:"created_at",width:"15%",render:xe=>new Date(xe).toLocaleString()},{title:XXe,dataIndex:"indexing",key:"status",width:"10%",render:(xe,De)=>E.jsxs("div",{className:Ly.pipelineStatus,children:[E.jsx(DC,{pipeline:De,indexingData:l,getIndexingDetails:Pe=>s(Pe)}),re(De)&&E.jsx(vr,{placement:"top",title:ce(De),children:E.jsx(Qce,{className:Ly.pipelineStatus_unhealthyIcon})})]})},{title:ZXe,dataIndex:"created_by",key:"created_by",width:"10%",render:(xe,De)=>E.jsx("div",{className:Ly.createdBy,children:E.jsx(d8,{user:De.created_by})})},{key:"action",width:"15%",align:"right",render:(xe,De)=>{const Pe=[{label:Ppn,key:Is.Details},{label:Mpn,key:Is.Edit},...De.deepset_cloud_version===Rr.V2?[{label:E.jsxs(E.Fragment,{children:[pZe," ",E.jsx(Si,{color:"warning",bordered:!1,children:"Beta"})]}),key:Is.Studio}]:[],{label:aZe,key:Is.RenamePipeline},{label:Npn,key:Is.Duplicate},...De.status===qn.DEPLOYED&&De.supports_prompt?[{label:iZe,key:Is.PromptExplorer}]:[],...De.output_type===xd.GENERATIVE?[{label:kpn,key:Is.Observability}]:[],{label:Hpn,key:Is.ExportFeedbackCSV},...De.desired_status===qn.DEPLOYED?[{label:vwe,key:Is.Undeploy,"data-testid":"undeployPipeline_menuActionsButton"}]:[],{label:mwe,key:Is.Delete,danger:!0,icon:E.jsx(m0,{})}];let Le={label:Rpn,action:t,loading:ts(De.status)};return De.desired_status===qn.DEPLOYED&&(De.status===qn.DEPLOYMENT_FAILED?Le={...Le,label:Lpn}:De.status===qn.IDLE?Le={...Le,label:oZe,action:n}:Le={...Le,label:Opn,action:async ze=>R(ze)}),ts(De.status)&&(Le={...Le,label:gwe,action:De.status===qn.DEPLOYMENT_IN_PROGRESS||De.status===qn.DEPLOYMENT_SCHEDULED?()=>B(De):t,loading:!1}),E.jsx(v8,{menu:{items:Pe,onClick:({key:ze})=>A(ze,De.name,De),"data-testid":"pipelines_tableRow_moreActions_button",ref:!fe.current&&De.output_type===xd.GENERATIVE?fe:void 0},item:De.name,onDelete:a,onCancelDelete:()=>P(null),primaryButton:De.status!==qn.ACTIVATING?Le:void 0,cancelButtonLabel:Apn})}}],me=()=>E.jsx(ut,{type:"primary",onClick:()=>J(),children:E.jsx(nv,{children:wpn})}),_e=()=>E.jsx(Hrt,{title:hwe.TITLE,description:hwe.DESCRIPTION.map(({paragraph:xe})=>({paragraph:Pn(xe,{documentationLink:E.jsx("a",{href:uZe,target:"_blank",rel:"noreferrer",children:jXe})})})),image:E.jsx(M5r,{}),action:me()}),Te=()=>E.jsxs(E.Fragment,{children:[E.jsx(Lu,{className:Ly.tabs,activeKey:S||N1.ALL,onChange:xe=>T(xe),tabBarExtraContent:me(),items:tmn.map(xe=>({label:xe.label,key:xe.key,disabled:C===Me.IN_PROGRESS}))}),E.jsx(Of,{data:m,total:g,loading:ge,columns:ye,getData:(xe,De,Pe,Le)=>v(xe,De,Pe,Le),refetch:r===Me.SUCCESS,rowKey:"name",locale:{emptyText:de()},polling:{enabled:!0,startPolling:y,stopPolling:_},sorting:{selectedValue:w===_F?"":w,options:rmn,allowClear:S?.length===0},pagination:{pageSize:kpe,currentPageNumber:ue?1:void 0},selectActions:[{type:"default",danger:!0,label:$===1?Pn(Egn,{total:$}):Pn(Cgn,{total:$}),onClick:xe=>te(m,xe)}],setTotalSelectedItems:xe=>D(xe),rowAnimation:{newRowName:p,afterNewRowAnimation:()=>h()}})]});return E.jsxs("div",{className:Ly.container,children:[oe&&!Ee()?_e():Te(),I&&E.jsx(tut,{pipelineName:I,onCancel:()=>R("")}),F&&E.jsx(_8,{openModal:F,closeModal:W,modalTitle:he(),okButtonText:N?Npe:nZe,pipelineName:N?"":k,description:N?O_.INVALID_CHARACTERS:"",renamePipeline:xe=>{N||o(xe)},createPipelineFromEmptyYaml:(xe,De)=>{N&&ae(xe,De)},onAfterPipelineCreated:G,onAfterPipelineRenamed:q,renamePipelineNameStatus:N?void 0:c,pipelineCreateUpdatePipelineStatus:u,resetRenamePipelineNameStatus:d,pipelineMessage:i,resetMessage:f,showDeepsetCloudVersionOptions:N}),z&&E.jsx($H,{open:z,okText:L?vwe:mwe,onOk:U,cancelText:gwe,onCancel:H,pipelines:M(),undeployingPipeline:!!L})]})},$5r="_container_1v3go_35",F5r={"auth-content":"_auth-content_1v3go_25","content-wrapper":"_content-wrapper_1v3go_35",container:$5r,"content-wrapper_padding":"_content-wrapper_padding_1v3go_40"},B5r=()=>E.jsx("div",{className:F5r.container,children:E.jsx(D5r,{})}),j5r=e=>({type:EYe,payload:e}),iut=e=>({type:AYe,payload:e}),z5r=(e,t)=>({type:NYe,payload:{filterKey:e,items:t}}),aut={type:LYe},U5r=e=>({type:OYe,payload:e}),gve=e=>({type:CYe,payload:e}),H5r={type:TYe},V5r=e=>({type:IYe,payload:e}),G5r={type:xYe};Ut(E7,async({filter:e,limit:t,pageNumber:n},{rejectWithValue:r})=>{const i={filter:e,limit:t,page_number:n};try{const{data:a}=await IU(i);return a}catch(a){return r(a)}});const c1=Ut(S7,async({category:e,searchValue:t,filterValues:n,sortValue:r,limit:i},{rejectWithValue:a,dispatch:o,getState:s})=>{const{pipelineTemplatesSortValue:l,activeVersionTabTemplatesLandingPage:c}=s().pipelineTemplatesStore,u=r||l,{field:d,order:f}=v0n[u]||{},p=t&&b0("name",t),h=Tvn(e),m=n&&Im(n),g=FZe(c),v={filter:XO(h,p,m,g),limit:i,field:d,order:f};try{const{data:y}=await IU(v);return{category:e,data:y}}catch(y){return o(jn({content:Wn(y),type:yn.Error})),a(y)}}),q5r=Ut(wYe,async({tags:e,deepsetCloudVersion:t,limit:n},{rejectWithValue:r,dispatch:i})=>{let a="";e.forEach((s,l)=>{l===0?a=av(s.name):l<e.length-1&&(a=a.concat(" or ").concat(av(s.name)))},""),a=`${FZe(t)} and (${a})`;const o={filter:a,limit:n};try{const{data:s}=await IU(o);return s.data}catch(s){return i(jn({content:Wn(s),type:yn.Error})),r(s)}}),W5r=Ut(SYe,async({templateName:e},{rejectWithValue:t,dispatch:n})=>{try{const{data:r}=await nDn(e);return r}catch(r){return n(jn({content:Wn(r),type:yn.Error})),t(r)}}),Y5r=Ut(RYe,async(e,{rejectWithValue:t})=>{const n={select:"tags/name, tags/tag_id"};try{return await ftt(n)}catch(r){return t(r)}}),Xp=e=>e.pipelineTemplatesStore,out=It(Xp,e=>e.activeVersionTabTemplatesLandingPage);It(Xp,e=>e.pipelineTemplates);const sut=It(Xp,e=>e.pipelineTemplatesByCategory);It(Xp,e=>e.pipelineTemplatesStatus);const lut=It(Xp,e=>e.selectedCategory),K5r=It(Xp,e=>e.selectedTemplate),X5r=It(Xp,e=>e.moreTemplatesLikeThis),Z5r=It(Xp,e=>e.moreTemplatesLikeThisStatus),Q5r=It(Xp,e=>e.pipelineTemplatesSearchValue),J5r=It(Xp,e=>e.pipelineTemplatesFiltersValues),cut=It(Xp,e=>e.selectedPipelineTemplateFilters),uut=It(Xp,e=>e.pipelineTemplatesSortValue),e3r="_metadata_fonso_13",t3r="_metadata_item_fonso_22",n3r="_metadata_item_title_fonso_27",r3r="_metadata_item_list_fonso_32",i3r="_metadata_item_list_item_fonso_37",a3r="_metadata_item_tags_fonso_46",o3r="_metadata_item_flags_fonso_56",Co={metadata:e3r,metadata_item:t3r,metadata_item_title:n3r,metadata_item_list:r3r,metadata_item_list_item:i3r,metadata_item_tags:a3r,metadata_item_flags:o3r},s3r=e=>{const{template:t}=e,[n,r]=b.useState([]),[i,a]=b.useState([]);return b.useEffect(()=>(t&&t.tags.forEach(o=>{if(!o.name.includes("category:")&&!o.name.includes("language:")&&r(s=>[...s,{...o}]),o.name.includes("language:")&&!o.name.includes("multilingual")){const s={...o,name:o.name.replace("language:","")};a(l=>[...l,s])}}),()=>{r([]),a([])}),[t]),E.jsxs("div",{className:Co.metadata,children:[E.jsxs("div",{className:Co.metadata_item,children:[E.jsx("div",{className:Co.metadata_item_title,children:Fy.BEST_FOR}),E.jsx("div",{className:Co.metadata_item_list,children:t?.best_for.map(o=>E.jsxs("div",{className:Co.metadata_item_list_item,children:[E.jsx(IE,{}),E.jsx("div",{children:o})]},o))})]}),E.jsxs("div",{className:Co.metadata_item,children:[E.jsx("div",{className:Co.metadata_item_title,children:Fy.POTENTIAL_APPLICATIONS}),E.jsx("div",{className:Co.metadata_item_list,children:t?.potential_applications.map(o=>E.jsx("div",{className:Co.metadata_item_list_item,children:E.jsx("li",{children:o})},o))})]}),E.jsxs("div",{className:Co.metadata_item,children:[E.jsx("div",{className:Co.metadata_item_title,children:Fy.EXPECTED_OUTPUT}),E.jsx("div",{className:Co.metadata_item_list,children:t?.expected_output.map(o=>E.jsx("div",{className:Co.metadata_item_list_item,children:E.jsx("div",{children:o})},o))})]}),E.jsxs("div",{className:Co.metadata_item,children:[E.jsx("div",{className:Co.metadata_item_title,children:Fy.RECOMMENDED_DATASET}),E.jsx("div",{className:Co.metadata_item_list,children:t?.recommended_dataset.map(o=>E.jsxs("div",{className:Co.metadata_item_list_item,children:[E.jsx(IE,{}),E.jsx("div",{children:o})]},o))})]}),E.jsxs("div",{className:Co.metadata_item,children:[E.jsx("div",{className:Co.metadata_item_title,children:Fy.TAGS}),E.jsx("div",{className:Co.metadata_item_tags,children:n.map(o=>E.jsx("div",{className:Co.metadata_item_list_item,children:E.jsx(Si,{children:q1(o.name)})},o.tag_id))})]}),E.jsxs("div",{className:Co.metadata_item,children:[E.jsx("div",{className:Co.metadata_item_title,children:Fy.LANGUAGES}),E.jsx("div",{className:Co.metadata_item_flags,children:i.map(o=>E.jsx("div",{children:E.jsx(vr,{title:q1(o.name),children:f0n[o.name]})},o.tag_id))})]}),t?.deepset_cloud_version&&E.jsxs("div",{className:Co.metadata_item,children:[E.jsx("div",{className:Co.metadata_item_title,children:Fy.DEEPSET_CLOUD_VERSION}),E.jsx("div",{children:Pn(l0n,{version:E.jsx("span",{children:u0n[t?.deepset_cloud_version]})})})]})]})},l3r="_card_1g7et_13",c3r="_card_body_1g7et_25",u3r="_card_body_description_1g7et_35",d3r="_card_createdBy_1g7et_40",f3r="_card_actionButtons_1g7et_50",nA={card:l3r,card_body:c3r,card_body_description:u3r,card_createdBy:d3r,card_actionButtons:f3r},kke=250,p3r="small",Nle=({template:e,onViewDetails:t,onUseTemplate:n})=>{const{author:r,name:i,description:a}=e,o=()=>a?a.length<kke?a:`${a.slice(0,kke)}...`:"";return E.jsxs("div",{className:nA.card,"data-testid":e.pipeline_name,children:[E.jsxs("div",{className:nA.card_body,children:[E.jsx("h6",{children:i}),E.jsx("div",{className:nA.card_body_description,children:o()})]}),E.jsxs("div",{className:nA.card_createdBy,children:[E.jsx(u8,{size:p3r}),E.jsxs("span",{children:[J1n," ",r]})]}),E.jsxs("div",{className:nA.card_actionButtons,children:[E.jsx(ut,{size:"small",block:!0,onClick:t,children:t0n}),E.jsx(ut,{size:"small",type:"primary",block:!0,onClick:n,children:ZZe})]})]})},h3r="_container_1xkyz_13",m3r="_header_1xkyz_19",g3r="_header_title_1xkyz_26",v3r="_header_actions_1xkyz_30",y3r="_list_1xkyz_36",b3r="_list_item_1xkyz_43",lx={container:h3r,header:m3r,header_title:g3r,header_actions:v3r,list:y3r,list_item:b3r},_3r=16,S3r="smooth",E3r=e=>{const{template:t,setNewTemplate:n,sendMetrics:r}=e,i=ir(),a=ys(),o=st(X5r),s=st(Z5r),[l,c]=b.useState(0),[u,d]=b.useState(0),[f,p]=b.useState(0),h=b.useRef(null),m=b.useRef(null);b.useEffect(()=>{h.current&&d(h.current.scrollWidth),m.current&&p(m.current.offsetWidth+_3r)},[s,h.current,m.current]),b.useEffect(()=>{if(t){let _=[];t.tags.forEach(S=>{!S.name.includes("category:")&&!S.name.includes("language:")&&(_=[..._,{...S}])}),_.length>0&&i(q5r({tags:_,deepsetCloudVersion:t.deepset_cloud_version}))}return()=>{i(G5r)}},[t]);const g=_=>{a(`/pipelines/templates/${_}`),r(_)},v=_=>{n(_),r(_.pipeline_name)},y=_=>{let S=l;_==="left"?S=Math.max(0,l-f):_==="right"&&(S=Math.min(l+f,u)),h.current?.scrollTo({left:S,behavior:S3r}),c(S)};return E.jsxs("div",{className:lx.container,children:[E.jsxs("div",{className:lx.header,children:[E.jsx("div",{className:lx.header_title,children:a0n}),E.jsxs("div",{className:lx.header_actions,children:[E.jsx(ut,{size:"small",icon:E.jsx(AE,{}),disabled:l===0,onClick:()=>{y("left")}}),E.jsx(ut,{size:"small",icon:E.jsx(Zb,{}),disabled:l>=u-h.current?.offsetWidth,onClick:()=>{y("right")}})]})]}),E.jsx("div",{className:lx.list,ref:h,children:o.map(_=>E.jsx("div",{className:lx.list_item,ref:m,children:E.jsx(Nle,{template:_,onViewDetails:()=>g(_.pipeline_name),onUseTemplate:()=>v(_)})},_.pipeline_template_id))})]})},C3r="_container_yx5vs_13",w3r="_header_yx5vs_20",x3r="_header_title_yx5vs_25",T3r="_header_title_name_yx5vs_32",I3r="_header_createdBy_yx5vs_38",A3r="_header_description_yx5vs_47",cx={container:C3r,header:w3r,header_title:x3r,header_title_name:T3r,header_createdBy:I3r,header_description:A3r},R3r="small",N3r=e=>{const{template:t,setShowNamePipelineModal:n,setSelectedNewTemplate:r,deepsetCloudVersion:i}=e,{trackUserEvent:a,setEventProperties:o}=Ev();b.useEffect(()=>{o({pipeline_template_session_id:ps()})},[]);const s=c=>{a({type:Wa.CLICK,control:`${ao.PIPELINE_TEMPLATE}/${zpe.SELECT_PIPELINE_TEMPLATE}`,properties:{template:c}})},l=c=>{n(!0),r(c)};return E.jsxs("div",{className:cx.container,children:[E.jsxs("div",{className:cx.header,children:[E.jsxs("div",{className:cx.header_title,children:[E.jsxs("div",{className:cx.header_title_name,children:[i,t?.name]}),E.jsx(ut,{type:"primary",onClick:()=>{l(t),s(t?.pipeline_name)},children:ZZe})]}),E.jsxs("div",{className:cx.header_createdBy,children:[E.jsx(u8,{size:R3r}),E.jsxs("span",{children:[e0n," ",t?.author]})]}),E.jsx("div",{className:cx.header_description,children:E.jsx(_U,{children:t?.description})})]}),E.jsx(s3r,{template:t}),E.jsx(E3r,{template:t,setNewTemplate:c=>{l(c)},sendMetrics:c=>{s(c)}})]})},O3r="_wrapper_tmkrn_35",L3r="_card_tmkrn_57",P3r="_container_tmkrn_69",k3r="_containerDeepsetCloudVersion2_tmkrn_76",M3r="_templateInfo_tmkrn_80",D3r="_pipelinePreview_tmkrn_84",$3r="_pipelinePreview_title_tmkrn_89",F3r="_pipelinePreview_title_icon_tmkrn_98",B3r="_pipelinePreview_title_name_tmkrn_101",Py={"auth-content":"_auth-content_tmkrn_25","content-wrapper":"_content-wrapper_tmkrn_35",wrapper:O3r,"content-wrapper_padding":"_content-wrapper_padding_tmkrn_40",card:L3r,container:P3r,containerDeepsetCloudVersion2:k3r,templateInfo:M3r,pipelinePreview:D3r,pipelinePreview_title:$3r,pipelinePreview_title_icon:F3r,pipelinePreview_title_name:B3r},j3r=se.lazy(()=>Io(()=>import("./YamlVisualizer.aBQZ_TcA.js"),__vite__mapDeps([12,13,14]))),z3r=()=>{const e=ir(),t=ys(),n=st(K5r),r=st(YT),i=st(l8),[a,o]=b.useState(!0),[s,l]=b.useState(!1),[c,u]=b.useState(n),{templateName:d}=dv();b.useEffect(()=>()=>{e(H5r)},[]),b.useEffect(()=>{n?.deepset_cloud_version===Rr.V1?o(!0):o(!1)},[n]),b.useEffect(()=>{d&&e(W5r({templateName:d}))},[d]);const f=({pipelineName:p})=>{const{pipeline_yaml:h}=c;let m={};c?.deepset_cloud_version===Rr.V1?m={code:h,pipelineName:p,deepsetCloudVersion:c?.deepset_cloud_version}:c?.deepset_cloud_version===Rr.V2&&(m={pipelineName:p,deepsetCloudVersion:c?.deepset_cloud_version,indexingYaml:n?.indexing_yaml||"",queryYaml:n?.query_yaml||""}),e(s8(m))};return E.jsx(E.Fragment,{children:n&&E.jsxs(E.Fragment,{children:[E.jsx("div",{className:Py.wrapper,children:E.jsxs("div",{className:`${Py.container} ${n?.deepset_cloud_version===Rr.V2?Py.containerDeepsetCloudVersion2:""}`,children:[E.jsx("div",{className:Py.templateInfo,children:E.jsx(N3r,{template:n,setShowNamePipelineModal:p=>l(p),setSelectedNewTemplate:p=>u(p),deepsetCloudVersion:E.jsx(l0,{deepsetCloudVersion:n.deepset_cloud_version})})}),a&&E.jsxs("div",{className:Py.pipelinePreview,children:[E.jsxs("div",{className:Py.pipelinePreview_title,children:[E.jsx(gDe,{className:Py.pipelinePreview_title_icon}),E.jsx("div",{className:Py.pipelinePreview_title_name,children:i0n})]}),E.jsx(DH,{children:E.jsx(se.Suspense,{fallback:E.jsx($o,{}),children:E.jsx(j3r,{code:n?.pipeline_yaml,yamlVisualizerExtended:!1})})})]})]})}),E.jsx(_8,{openModal:s,closeModal:()=>{l(!1),u(c)},description:c?"":O_.INVALID_CHARACTERS,defaultPipelineNameValue:c?.pipeline_name,modalTitle:Rpe,okButtonText:Npe,createPipeline:f,onAfterPipelineCreated:p=>t(`/pipelines/${p}/studio`),pipelineCreateUpdatePipelineStatus:r,pipelineMessage:i,resetMessage:()=>e(VT)})]})})},U3r="_container_11cbl_13",H3r="_menuLabel_11cbl_31",Mke={container:U3r,menuLabel:H3r},Dke="all",V3r=()=>{const e=ir(),t=st(sut),n=st(lut),r=l=>{e(gve(l))},i=l=>{const{total:c}=t[l]||{};return c||0},a=l=>E.jsxs("div",{className:Mke.menuLabel,children:[Vae[l]," ",E.jsx(Si,{children:i(l)})]}),o={label:XZe,key:Dke},s=[{label:a(_i.RECOMMENDED),key:_i.RECOMMENDED},{label:a(_i.DOCUMENT_SEARCH),key:_i.DOCUMENT_SEARCH},{label:a(_i.BASIC_QA),key:_i.BASIC_QA},{label:a(_i.ADVANCED_QA),key:_i.ADVANCED_QA},{label:a(_i.VISUAL_QA),key:_i.VISUAL_QA},{label:a(_i.CONVERSATIONAL),key:_i.CONVERSATIONAL},{label:a(_i.TEXT_ANALYSIS),key:_i.TEXT_ANALYSIS},{label:a(_i.TEXT_TO_SQL),key:_i.TEXT_TO_SQL}];return E.jsxs("div",{className:Mke.container,children:[E.jsx(um,{selectedKeys:[n?"":Dke],items:[o],onClick:()=>r(null)}),E.jsx(zi,{}),E.jsx(um,{selectedKeys:[n||""],items:s,onClick:({key:l})=>r(l)})]})},G3r="_container_1ugym_13",q3r="_filtersBar_1ugym_18",W3r="_appliedFiltersBar_1ugym_22",Y3r="_tabs_title_1ugym_26",K3r="_tabs_1ugym_26",X3r="_horizontalDivider_1ugym_44",ux={container:G3r,filtersBar:q3r,appliedFiltersBar:W3r,tabs_title:Y3r,tabs:K3r,horizontalDivider:X3r},Z3r=()=>{const e=ir(),t=st(out),n=st(J5r),r=st(cut),i=st(uut);b.useEffect(()=>{e(Y5r())},[]);const a=()=>{const{tags:d}=n;return[{type:li.MULTI_SELECT,key:h0n.TAGS_ID,title:p0n,options:d}]},o=d=>{e(gve(null)),e(iut(d))},s=(d,f)=>{e(z5r(d,f))},l=()=>{e(aut)},c=d=>{e(U5r(d))},u=d=>{e(j5r(d))};return E.jsxs("div",{className:ux.container,children:[E.jsx(Lu,{className:ux.tabs,activeKey:t,onChange:d=>u(d),items:d0n.map(d=>({label:E.jsxs("span",{className:ux.tabs_title,children:[d.label,d.key===Rr.V1&&E.jsx(Si,{bordered:!1,children:FXe})]}),key:d.key}))}),E.jsx(zi,{className:ux.horizontalDivider}),E.jsx("div",{className:ux.filtersBar,children:E.jsx($U,{filters:a(),filterValues:r,onFilterSelectChange:s,searchAvailable:!0,onSearch:o,searchPlaceholder:o0n,onSortSelectChange:c,sorting:{selectedValue:i,options:g0n}})}),E.jsx("div",{className:ux.appliedFiltersBar,children:E.jsx(DU,{filterValues:r,onClearAllFilters:l,onFilterSelectChange:s})})]})},Q3r="_container_129yv_13",J3r="_container_icon_129yv_21",eTr="_container_textWrapper_129yv_25",tTr="_container_textWrapper_description_129yv_35",_9={container:Q3r,container_icon:J3r,container_textWrapper:eTr,container_textWrapper_description:tTr},nTr=({title:e,description:t,icon:n})=>E.jsxs("div",{className:_9.container,children:[E.jsx("div",{className:_9.container_icon,children:n}),E.jsxs("div",{className:_9.container_textWrapper,children:[E.jsx("h4",{children:e}),E.jsx("div",{className:_9.container_textWrapper_description,children:t})]})]}),rTr="_container_1ixe7_13",iTr="_header_1ixe7_21",aTr="_header_textContainer_1ixe7_26",oTr="_header_textContainer_title_1ixe7_36",sTr="_header_categoryTitle_1ixe7_49",lTr="_categoryRow_1ixe7_53",cTr="_categoryRow_header_1ixe7_59",uTr="_categoryRow_header_category_1ixe7_65",dTr="_linkButton_1ixe7_72",fTr="_list_1ixe7_76",pTr="_groupedList_1ixe7_82",hTr="_emptyList_1ixe7_89",mTr="_emptyList_categoryName_1ixe7_92",lf={container:rTr,header:iTr,header_textContainer:aTr,header_textContainer_title:oTr,header_categoryTitle:sTr,categoryRow:lTr,categoryRow_header:cTr,categoryRow_header_category:uTr,linkButton:dTr,list:fTr,groupedList:pTr,emptyList:hTr,emptyList_categoryName:mTr},$ke=3,gTr=()=>{const e=ir(),t=ys(),{trackUserEvent:n,setEventProperties:r}=Ev(),i=st(out),a=st(sut),o=st(lut),s=st(YT),l=st(l8),c=st(Q5r),u=st(cut),d=st(uut),[f,p]=b.useState(!1),[h,m]=b.useState(null),g=()=>{const D={limit:$ke,searchValue:c,filterValues:u,sortValue:d};e(c1({...D,category:_i.RECOMMENDED})),e(c1({...D,category:_i.DOCUMENT_SEARCH})),e(c1({...D,category:_i.BASIC_QA})),e(c1({...D,category:_i.ADVANCED_QA})),e(c1({...D,category:_i.CONVERSATIONAL})),e(c1({...D,category:_i.TEXT_ANALYSIS})),e(c1({...D,category:_i.VISUAL_QA})),e(c1({...D,category:_i.TEXT_TO_SQL}))};b.useEffect(()=>{r({pipeline_template_session_id:ps()})},[]),b.useEffect(()=>{if(!o){g();return}e(c1({category:o,searchValue:c,filterValues:u,sortValue:d}))},[o,c,u,d,i]);const v=()=>!!Object.values(u||{}).flat().length||!!c,y=()=>o?!a[o].total:!Object.values(a).some(D=>!!D.total),_=()=>{if(!o)return[];const{data:D}=a[o];return D},S=()=>o?Vae[o]:XZe,C=D=>{e(gve(D))},w=D=>{n({type:Wa.CLICK,control:`${ao.PIPELINE_TEMPLATE}/${zpe.SELECT_PIPELINE_TEMPLATE}`,properties:{template:D}})},x=D=>{e(V5r(D)),t(`/pipelines/templates/${D.pipeline_name}`),w(D.pipeline_name)},T=D=>{p(!0),m(D),w(D.pipeline_name)},A=({pipelineName:D,deepsetCloudVersion:z,indexingYaml:U,queryYaml:H})=>{const{pipeline_yaml:M}=h||{};let B={};z?z===Rr.V1?B={code:M||O5,pipelineName:D,deepsetCloudVersion:z}:z===Rr.V2&&(B={pipelineName:D,deepsetCloudVersion:z,indexingYaml:U||Fae,queryYaml:H||$ae}):!z&&h?.deepset_cloud_version?h?.deepset_cloud_version===Rr.V1?B={code:M||O5,pipelineName:D,deepsetCloudVersion:Rr.V1}:h?.deepset_cloud_version===Rr.V2&&(B={pipelineName:D,deepsetCloudVersion:Rr.V2,indexingYaml:h?.indexing_yaml||Fae,queryYaml:h?.query_yaml||$ae}):B={code:M||O5,pipelineName:D},e(s8(B))},I=()=>{p(!0)},R=D=>{if(h){t(`/pipelines/${D}/studio`);return}e(gtt("")),t(`/pipelines/${D}/studio`)},N=()=>{e(aut)},P=()=>{let D={title:Fwe.TITLE,description:Pn(Fwe.DESCRIPTION,{clearFiltersLink:E.jsx(ut,{className:lf.linkButton,type:"link",onClick:N,children:s0n})})};return c&&(D={...D,title:Bwe.TITLE,description:Bwe.DESCRIPTION}),E.jsx(nTr,{icon:E.jsx(hDe,{}),title:D.title,description:D.description})},L=()=>Object.keys(a).map(z=>{const{data:U}=a[z];if(!U?.length)return null;const H=U.slice(0,$ke);return E.jsxs("div",{className:lf.categoryRow,children:[E.jsxs("div",{className:lf.categoryRow_header,children:[E.jsx("span",{className:lf.categoryRow_header_category,children:Vae[z]}),E.jsx(ut,{type:"link",size:"small",onClick:()=>C(z),children:n0n})]}),E.jsx("div",{className:lf.groupedList,children:H.map(M=>E.jsx(Nle,{template:M,onViewDetails:()=>x(M),onUseTemplate:()=>T(M)},M.pipeline_template_id))})]},z)}),$=()=>_().length===0?E.jsx("div",{className:lf.emptyList,children:Pn(c0n,{categoryName:E.jsx("span",{className:lf.emptyList_categoryName,children:S()})})}):E.jsx("div",{className:lf.list,children:_().map(D=>E.jsx(Nle,{template:D,onViewDetails:()=>x(D),onUseTemplate:()=>T(D)},D.pipeline_template_id))});return E.jsxs(E.Fragment,{children:[E.jsx(_8,{openModal:f,closeModal:()=>{p(!1),m(null)},description:h?"":O_.INVALID_CHARACTERS,defaultPipelineNameValue:h?.pipeline_name,modalTitle:h?Rpe:tZe,okButtonText:Npe,createPipeline:A,onAfterPipelineCreated:R,pipelineCreateUpdatePipelineStatus:s,pipelineMessage:l,resetMessage:()=>e(VT),showDeepsetCloudVersionOptions:!h}),E.jsx("div",{className:lf.container,children:y()&&v()?P():E.jsxs(E.Fragment,{children:[E.jsxs("div",{className:lf.header,children:[E.jsxs("div",{className:lf.header_textContainer,children:[E.jsxs("div",{className:lf.header_textContainer_title,children:[E.jsx("h4",{children:$we[i].title}),i===Rr.V1&&E.jsx(Si,{bordered:!1,children:FXe})]}),E.jsx("div",{children:$we[i].description})]}),E.jsx(ut,{size:"small",onClick:I,children:r0n})]}),E.jsx("h5",{className:lf.header_categoryTitle,children:S()}),o?$():L()]})})]})},vTr="_wrapper_j6ixz_35",yTr="_card_j6ixz_57",bTr="_container_j6ixz_69",_Tr="_content_j6ixz_35",Rte={"auth-content":"_auth-content_j6ixz_25","content-wrapper":"_content-wrapper_j6ixz_35",wrapper:vTr,"content-wrapper_padding":"_content-wrapper_padding_j6ixz_40",card:yTr,container:bTr,content:_Tr},STr=()=>{const e=ir();return b.useEffect(()=>{e(iut(null))},[]),E.jsx("div",{className:Rte.wrapper,"data-testid":"templates_page",children:E.jsxs("div",{className:Rte.container,children:[E.jsx(V3r,{}),E.jsxs("div",{className:Rte.content,children:[E.jsx(Z3r,{}),E.jsx(gTr,{})]})]})})},vve=Symbol.for("yaml.alias"),Ole=Symbol.for("yaml.document"),Gb=Symbol.for("yaml.map"),dut=Symbol.for("yaml.pair"),p0=Symbol.for("yaml.scalar"),l4=Symbol.for("yaml.seq"),Bp=Symbol.for("yaml.node.type"),c4=e=>!!e&&typeof e=="object"&&e[Bp]===vve,FH=e=>!!e&&typeof e=="object"&&e[Bp]===Ole,N8=e=>!!e&&typeof e=="object"&&e[Bp]===Gb,tl=e=>!!e&&typeof e=="object"&&e[Bp]===dut,Go=e=>!!e&&typeof e=="object"&&e[Bp]===p0,O8=e=>!!e&&typeof e=="object"&&e[Bp]===l4;function Xs(e){if(e&&typeof e=="object")switch(e[Bp]){case Gb:case l4:return!0}return!1}function bl(e){if(e&&typeof e=="object")switch(e[Bp]){case vve:case Gb:case p0:case l4:return!0}return!1}const ETr=e=>(Go(e)||Xs(e))&&!!e.anchor,SS=Symbol("break visit"),CTr=Symbol("skip children"),WR=Symbol("remove node");function uC(e,t){const n=wTr(t);FH(e)?c5(null,e.contents,n,Object.freeze([e]))===WR&&(e.contents=null):c5(null,e,n,Object.freeze([]))}uC.BREAK=SS;uC.SKIP=CTr;uC.REMOVE=WR;function c5(e,t,n,r){const i=xTr(e,t,n,r);if(bl(i)||tl(i))return TTr(e,r,i),c5(e,i,n,r);if(typeof i!="symbol"){if(Xs(t)){r=Object.freeze(r.concat(t));for(let a=0;a<t.items.length;++a){const o=c5(a,t.items[a],n,r);if(typeof o=="number")a=o-1;else{if(o===SS)return SS;o===WR&&(t.items.splice(a,1),a-=1)}}}else if(tl(t)){r=Object.freeze(r.concat(t));const a=c5("key",t.key,n,r);if(a===SS)return SS;a===WR&&(t.key=null);const o=c5("value",t.value,n,r);if(o===SS)return SS;o===WR&&(t.value=null)}}return i}function wTr(e){return typeof e=="object"&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function xTr(e,t,n,r){if(typeof n=="function")return n(e,t,r);if(N8(t))return n.Map?.(e,t,r);if(O8(t))return n.Seq?.(e,t,r);if(tl(t))return n.Pair?.(e,t,r);if(Go(t))return n.Scalar?.(e,t,r);if(c4(t))return n.Alias?.(e,t,r)}function TTr(e,t,n){const r=t[t.length-1];if(Xs(r))r.items[e]=n;else if(tl(r))e==="key"?r.key=n:r.value=n;else if(FH(r))r.contents=n;else{const i=c4(r)?"alias":"scalar";throw new Error(`Cannot replace node with ${i} parent`)}}const ITr={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},ATr=e=>e.replace(/[!,[\]{}]/g,t=>ITr[t]);class bu{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},bu.defaultYaml,t),this.tags=Object.assign({},bu.defaultTags,n)}clone(){const t=new bu(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){const t=new bu(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:bu.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},bu.defaultTags);break}return t}add(t,n){this.atNextDocument&&(this.yaml={explicit:bu.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},bu.defaultTags),this.atNextDocument=!1);const r=t.trim().split(/[ \t]+/),i=r.shift();switch(i){case"%TAG":{if(r.length!==2&&(n(0,"%TAG directive should contain exactly two parts"),r.length<2))return!1;const[a,o]=r;return this.tags[a]=o,!0}case"%YAML":{if(this.yaml.explicit=!0,r.length!==1)return n(0,"%YAML directive should contain exactly one part"),!1;const[a]=r;if(a==="1.1"||a==="1.2")return this.yaml.version=a,!0;{const o=/^\d+\.\d+$/.test(a);return n(6,`Unsupported YAML version ${a}`,o),!1}}default:return n(0,`Unknown directive ${i}`,!0),!1}}tagName(t,n){if(t==="!")return"!";if(t[0]!=="!")return n(`Not a valid tag: ${t}`),null;if(t[1]==="<"){const o=t.slice(2,-1);return o==="!"||o==="!!"?(n(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(t[t.length-1]!==">"&&n("Verbatim tags must end with a >"),o)}const[,r,i]=t.match(/^(.*!)([^!]*)$/s);i||n(`The ${t} tag has no suffix`);const a=this.tags[r];if(a)try{return a+decodeURIComponent(i)}catch(o){return n(String(o)),null}return r==="!"?t:(n(`Could not resolve tag: ${t}`),null)}tagString(t){for(const[n,r]of Object.entries(this.tags))if(t.startsWith(r))return n+ATr(t.substring(r.length));return t[0]==="!"?t:`!<${t}>`}toString(t){const n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],r=Object.entries(this.tags);let i;if(t&&r.length>0&&bl(t.contents)){const a={};uC(t.contents,(o,s)=>{bl(s)&&s.tag&&(a[s.tag]=!0)}),i=Object.keys(a)}else i=[];for(const[a,o]of r)a==="!!"&&o==="tag:yaml.org,2002:"||(!t||i.some(s=>s.startsWith(o)))&&n.push(`%TAG ${a} ${o}`);return n.join(`
`)}}bu.defaultYaml={explicit:!1,version:"1.2"};bu.defaultTags={"!!":"tag:yaml.org,2002:"};function fut(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const n=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(n)}return!0}function put(e){const t=new Set;return uC(e,{Value(n,r){r.anchor&&t.add(r.anchor)}}),t}function hut(e,t){for(let n=1;;++n){const r=`${e}${n}`;if(!t.has(r))return r}}function RTr(e,t){const n=[],r=new Map;let i=null;return{onAnchor:a=>{n.push(a),i||(i=put(e));const o=hut(t,i);return i.add(o),o},setAnchors:()=>{for(const a of n){const o=r.get(a);if(typeof o=="object"&&o.anchor&&(Go(o.node)||Xs(o.node)))o.node.anchor=o.anchor;else{const s=new Error("Failed to resolve repeated object (this should not happen)");throw s.source=a,s}}},sourceObjects:r}}function u5(e,t,n,r){if(r&&typeof r=="object")if(Array.isArray(r))for(let i=0,a=r.length;i<a;++i){const o=r[i],s=u5(e,r,String(i),o);s===void 0?delete r[i]:s!==o&&(r[i]=s)}else if(r instanceof Map)for(const i of Array.from(r.keys())){const a=r.get(i),o=u5(e,r,i,a);o===void 0?r.delete(i):o!==a&&r.set(i,o)}else if(r instanceof Set)for(const i of Array.from(r)){const a=u5(e,r,i,i);a===void 0?r.delete(i):a!==i&&(r.delete(i),r.add(a))}else for(const[i,a]of Object.entries(r)){const o=u5(e,r,i,a);o===void 0?delete r[i]:o!==a&&(r[i]=o)}return e.call(t,n,r)}function Ip(e,t,n){if(Array.isArray(e))return e.map((r,i)=>Ip(r,String(i),n));if(e&&typeof e.toJSON=="function"){if(!n||!ETr(e))return e.toJSON(t,n);const r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=a=>{r.res=a,delete n.onCreate};const i=e.toJSON(t,n);return n.onCreate&&n.onCreate(i),i}return typeof e=="bigint"&&!n?.keep?Number(e):e}class yve{constructor(t){Object.defineProperty(this,Bp,{value:t})}clone(){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}toJS(t,{mapAsMap:n,maxAliasCount:r,onAnchor:i,reviver:a}={}){if(!FH(t))throw new TypeError("A document argument is required");const o={anchors:new Map,doc:t,keep:!0,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r=="number"?r:100},s=Ip(this,"",o);if(typeof i=="function")for(const{count:l,res:c}of o.anchors.values())i(c,l);return typeof a=="function"?u5(a,{"":s},"",s):s}}class bve extends yve{constructor(t){super(vve),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t){let n;return uC(t,{Node:(r,i)=>{if(i===this)return uC.BREAK;i.anchor===this.source&&(n=i)}}),n}toJSON(t,n){if(!n)return{source:this.source};const{anchors:r,doc:i,maxAliasCount:a}=n,o=this.resolve(i);if(!o){const l=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(l)}let s=r.get(o);if(s||(Ip(o,null,n),s=r.get(o)),!s||s.res===void 0){const l="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(l)}if(a>=0&&(s.count+=1,s.aliasCount===0&&(s.aliasCount=cD(i,o,r)),s.count*s.aliasCount>a)){const l="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(l)}return s.res}toString(t,n,r){const i=`*${this.source}`;if(t){if(fut(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){const a=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(a)}if(t.implicitKey)return`${i} `}return i}}function cD(e,t,n){if(c4(t)){const r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}else if(Xs(t)){let r=0;for(const i of t.items){const a=cD(e,i,n);a>r&&(r=a)}return r}else if(tl(t)){const r=cD(e,t.key,n),i=cD(e,t.value,n);return Math.max(r,i)}return 1}const mut=e=>!e||typeof e!="function"&&typeof e!="object";class Ei extends yve{constructor(t){super(p0),this.value=t}toJSON(t,n){return n?.keep?this.value:Ip(this.value,t,n)}toString(){return String(this.value)}}Ei.BLOCK_FOLDED="BLOCK_FOLDED";Ei.BLOCK_LITERAL="BLOCK_LITERAL";Ei.PLAIN="PLAIN";Ei.QUOTE_DOUBLE="QUOTE_DOUBLE";Ei.QUOTE_SINGLE="QUOTE_SINGLE";const NTr="tag:yaml.org,2002:";function OTr(e,t,n){if(t){const r=n.filter(a=>a.tag===t),i=r.find(a=>!a.format)??r[0];if(!i)throw new Error(`Tag ${t} not found`);return i}return n.find(r=>r.identify?.(e)&&!r.format)}function $6(e,t,n){if(FH(e)&&(e=e.contents),bl(e))return e;if(tl(e)){const d=n.schema[Gb].createNode?.(n.schema,null,n);return d.items.push(e),d}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<"u"&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:r,onAnchor:i,onTagObj:a,schema:o,sourceObjects:s}=n;let l;if(r&&e&&typeof e=="object"){if(l=s.get(e),l)return l.anchor||(l.anchor=i(e)),new bve(l.anchor);l={anchor:null,node:null},s.set(e,l)}t?.startsWith("!!")&&(t=NTr+t.slice(2));let c=OTr(e,t,o.tags);if(!c){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const d=new Ei(e);return l&&(l.node=d),d}c=e instanceof Map?o[Gb]:Symbol.iterator in Object(e)?o[l4]:o[Gb]}a&&(a(c),delete n.onTagObj);const u=c?.createNode?c.createNode(n.schema,e,n):typeof c?.nodeClass?.from=="function"?c.nodeClass.from(n.schema,e,n):new Ei(e);return t?u.tag=t:c.default||(u.tag=c.tag),l&&(l.node=u),u}function PB(e,t,n){let r=n;for(let i=t.length-1;i>=0;--i){const a=t[i];if(typeof a=="number"&&Number.isInteger(a)&&a>=0){const o=[];o[a]=r,r=o}else r=new Map([[a,r]])}return $6(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const UA=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class gut extends yve{constructor(t,n){super(t),Object.defineProperty(this,"schema",{value:n,configurable:!0,enumerable:!1,writable:!0})}clone(t){const n=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(n.schema=t),n.items=n.items.map(r=>bl(r)||tl(r)?r.clone(t):r),this.range&&(n.range=this.range.slice()),n}addIn(t,n){if(UA(t))this.add(n);else{const[r,...i]=t,a=this.get(r,!0);if(Xs(a))a.addIn(i,n);else if(a===void 0&&this.schema)this.set(r,PB(this.schema,i,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${i}`)}}deleteIn(t){const[n,...r]=t;if(r.length===0)return this.delete(n);const i=this.get(n,!0);if(Xs(i))return i.deleteIn(r);throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}getIn(t,n){const[r,...i]=t,a=this.get(r,!0);return i.length===0?!n&&Go(a)?a.value:a:Xs(a)?a.getIn(i,n):void 0}hasAllNullValues(t){return this.items.every(n=>{if(!tl(n))return!1;const r=n.value;return r==null||t&&Go(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag})}hasIn(t){const[n,...r]=t;if(r.length===0)return this.has(n);const i=this.get(n,!0);return Xs(i)?i.hasIn(r):!1}setIn(t,n){const[r,...i]=t;if(i.length===0)this.set(r,n);else{const a=this.get(r,!0);if(Xs(a))a.setIn(i,n);else if(a===void 0&&this.schema)this.set(r,PB(this.schema,i,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${i}`)}}}const LTr=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function j1(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const XS=(e,t,n)=>e.endsWith(`
`)?j1(n,t):n.includes(`
`)?`
`+j1(n,t):(e.endsWith(" ")?"":" ")+n,vut="flow",Lle="block",uD="quoted";function BH(e,t,n="flow",{indentAtStart:r,lineWidth:i=80,minContentWidth:a=20,onFold:o,onOverflow:s}={}){if(!i||i<0)return e;i<a&&(a=0);const l=Math.max(1+a,1+i-t.length);if(e.length<=l)return e;const c=[],u={};let d=i-t.length;typeof r=="number"&&(r>i-Math.max(2,a)?c.push(0):d=i-r);let f,p,h=!1,m=-1,g=-1,v=-1;n===Lle&&(m=Fke(e,m,t.length),m!==-1&&(d=m+l));for(let _;_=e[m+=1];){if(n===uD&&_==="\\"){switch(g=m,e[m+1]){case"x":m+=3;break;case"u":m+=5;break;case"U":m+=9;break;default:m+=1}v=m}if(_===`
`)n===Lle&&(m=Fke(e,m,t.length)),d=m+t.length+l,f=void 0;else{if(_===" "&&p&&p!==" "&&p!==`
`&&p!=="	"){const S=e[m+1];S&&S!==" "&&S!==`
`&&S!=="	"&&(f=m)}if(m>=d)if(f)c.push(f),d=f+l,f=void 0;else if(n===uD){for(;p===" "||p==="	";)p=_,_=e[m+=1],h=!0;const S=m>v+1?m-2:g-1;if(u[S])return e;c.push(S),u[S]=!0,d=S+l,f=void 0}else h=!0}p=_}if(h&&s&&s(),c.length===0)return e;o&&o();let y=e.slice(0,c[0]);for(let _=0;_<c.length;++_){const S=c[_],C=c[_+1]||e.length;S===0?y=`
${t}${e.slice(0,C)}`:(n===uD&&u[S]&&(y+=`${e[S]}\\`),y+=`
${t}${e.slice(S+1,C)}`)}return y}function Fke(e,t,n){let r=t,i=t+1,a=e[i];for(;a===" "||a==="	";)if(t<i+n)a=e[++t];else{do a=e[++t];while(a&&a!==`
`);r=t,i=t+1,a=e[i]}return r}const jH=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),zH=e=>/^(%|---|\.\.\.)/m.test(e);function PTr(e,t,n){if(!t||t<0)return!1;const r=t-n,i=e.length;if(i<=r)return!1;for(let a=0,o=0;a<i;++a)if(e[a]===`
`){if(a-o>r)return!0;if(o=a+1,i-o<=r)return!1}return!0}function YR(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:r}=t,i=t.options.doubleQuotedMinMultiLineLength,a=t.indent||(zH(e)?"  ":"");let o="",s=0;for(let l=0,c=n[l];c;c=n[++l])if(c===" "&&n[l+1]==="\\"&&n[l+2]==="n"&&(o+=n.slice(s,l)+"\\ ",l+=1,s=l,c="\\"),c==="\\")switch(n[l+1]){case"u":{o+=n.slice(s,l);const u=n.substr(l+2,4);switch(u){case"0000":o+="\\0";break;case"0007":o+="\\a";break;case"000b":o+="\\v";break;case"001b":o+="\\e";break;case"0085":o+="\\N";break;case"00a0":o+="\\_";break;case"2028":o+="\\L";break;case"2029":o+="\\P";break;default:u.substr(0,2)==="00"?o+="\\x"+u.substr(2):o+=n.substr(l,6)}l+=5,s=l+1}break;case"n":if(r||n[l+2]==='"'||n.length<i)l+=1;else{for(o+=n.slice(s,l)+`

`;n[l+2]==="\\"&&n[l+3]==="n"&&n[l+4]!=='"';)o+=`
`,l+=2;o+=a,n[l+2]===" "&&(o+="\\"),l+=1,s=l+1}break;default:l+=1}return o=s?o+n.slice(s):n,r?o:BH(o,a,uD,jH(t,!1))}function Ple(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
`)||/[ \t]\n|\n[ \t]/.test(e))return YR(e,t);const n=t.indent||(zH(e)?"  ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
${n}`)+"'";return t.implicitKey?r:BH(r,n,vut,jH(t,!1))}function d5(e,t){const{singleQuote:n}=t.options;let r;if(n===!1)r=YR;else{const i=e.includes('"'),a=e.includes("'");i&&!a?r=Ple:a&&!i?r=YR:r=n?Ple:YR}return r(e,t)}let kle;try{kle=new RegExp(`(^|(?<!
))
+(?!
|$)`,"g")}catch{kle=/\n+(?!\n|$)/g}function dD({comment:e,type:t,value:n},r,i,a){const{blockQuote:o,commentString:s,lineWidth:l}=r.options;if(!o||/\n[\t ]+$/.test(n)||/^\s*$/.test(n))return d5(n,r);const c=r.indent||(r.forceBlockIndent||zH(n)?"  ":""),u=o==="literal"?!0:o==="folded"||t===Ei.BLOCK_FOLDED?!1:t===Ei.BLOCK_LITERAL?!0:!PTr(n,l,c.length);if(!n)return u?`|
`:`>
`;let d,f;for(f=n.length;f>0;--f){const w=n[f-1];if(w!==`
`&&w!=="	"&&w!==" ")break}let p=n.substring(f);const h=p.indexOf(`
`);h===-1?d="-":n===p||h!==p.length-1?(d="+",a&&a()):d="",p&&(n=n.slice(0,-p.length),p[p.length-1]===`
`&&(p=p.slice(0,-1)),p=p.replace(kle,`$&${c}`));let m=!1,g,v=-1;for(g=0;g<n.length;++g){const w=n[g];if(w===" ")m=!0;else if(w===`
`)v=g;else break}let y=n.substring(0,v<g?v+1:g);y&&(n=n.substring(y.length),y=y.replace(/\n+/g,`$&${c}`));let S=(u?"|":">")+(m?c?"2":"1":"")+d;if(e&&(S+=" "+s(e.replace(/ ?[\r\n]+/g," ")),i&&i()),u)return n=n.replace(/\n+/g,`$&${c}`),`${S}
${c}${y}${n}${p}`;n=n.replace(/\n+/g,`
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${c}`);const C=BH(`${y}${n}${p}`,c,Lle,jH(r,!0));return`${S}
${c}${C}`}function kTr(e,t,n,r){const{type:i,value:a}=e,{actualString:o,implicitKey:s,indent:l,indentStep:c,inFlow:u}=t;if(s&&a.includes(`
`)||u&&/[[\]{},]/.test(a))return d5(a,t);if(!a||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a))return s||u||!a.includes(`
`)?d5(a,t):dD(e,t,n,r);if(!s&&!u&&i!==Ei.PLAIN&&a.includes(`
`))return dD(e,t,n,r);if(zH(a)){if(l==="")return t.forceBlockIndent=!0,dD(e,t,n,r);if(s&&l===c)return d5(a,t)}const d=a.replace(/\n+/g,`$&
${l}`);if(o){const f=m=>m.default&&m.tag!=="tag:yaml.org,2002:str"&&m.test?.test(d),{compat:p,tags:h}=t.doc.schema;if(h.some(f)||p?.some(f))return d5(a,t)}return s?d:BH(d,l,vut,jH(t,!1))}function _ve(e,t,n,r){const{implicitKey:i,inFlow:a}=t,o=typeof e.value=="string"?e:Object.assign({},e,{value:String(e.value)});let{type:s}=e;s!==Ei.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(s=Ei.QUOTE_DOUBLE);const l=u=>{switch(u){case Ei.BLOCK_FOLDED:case Ei.BLOCK_LITERAL:return i||a?d5(o.value,t):dD(o,t,n,r);case Ei.QUOTE_DOUBLE:return YR(o.value,t);case Ei.QUOTE_SINGLE:return Ple(o.value,t);case Ei.PLAIN:return kTr(o,t,n,r);default:return null}};let c=l(s);if(c===null){const{defaultKeyType:u,defaultStringType:d}=t.options,f=i&&u||d;if(c=l(f),c===null)throw new Error(`Unsupported default string type ${f}`)}return c}function yut(e,t){const n=Object.assign({blockQuote:!0,commentString:LTr,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);let r;switch(n.collectionStyle){case"block":r=!1;break;case"flow":r=!0;break;default:r=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"",indentStep:typeof n.indent=="number"?" ".repeat(n.indent):"  ",inFlow:r,options:n}}function MTr(e,t){if(t.tag){const i=e.filter(a=>a.tag===t.tag);if(i.length>0)return i.find(a=>a.format===t.format)??i[0]}let n,r;if(Go(t)){r=t.value;const i=e.filter(a=>a.identify?.(r));n=i.find(a=>a.format===t.format)??i.find(a=>!a.format)}else r=t,n=e.find(i=>i.nodeClass&&r instanceof i.nodeClass);if(!n){const i=r?.constructor?.name??typeof r;throw new Error(`Tag not resolved for ${i} value`)}return n}function DTr(e,t,{anchors:n,doc:r}){if(!r.directives)return"";const i=[],a=(Go(e)||Xs(e))&&e.anchor;a&&fut(a)&&(n.add(a),i.push(`&${a}`));const o=e.tag?e.tag:t.default?null:t.tag;return o&&i.push(r.directives.tagString(o)),i.join(" ")}function q3(e,t,n,r){if(tl(e))return e.toString(t,n,r);if(c4(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let i;const a=bl(e)?e:t.doc.createNode(e,{onTagObj:l=>i=l});i||(i=MTr(t.doc.schema.tags,a));const o=DTr(a,i,t);o.length>0&&(t.indentAtStart=(t.indentAtStart??0)+o.length+1);const s=typeof i.stringify=="function"?i.stringify(a,t,n,r):Go(a)?_ve(a,t,n,r):a.toString(t,n,r);return o?Go(a)||s[0]==="{"||s[0]==="["?`${o} ${s}`:`${o}
${t.indent}${s}`:s}function $Tr({key:e,value:t},n,r,i){const{allNullValues:a,doc:o,indent:s,indentStep:l,options:{commentString:c,indentSeq:u,simpleKeys:d}}=n;let f=bl(e)&&e.comment||null;if(d){if(f)throw new Error("With simple keys, key nodes cannot have comments");if(Xs(e)||!bl(e)&&typeof e=="object"){const x="With simple keys, collection cannot be used as a key value";throw new Error(x)}}let p=!d&&(!e||f&&t==null&&!n.inFlow||Xs(e)||(Go(e)?e.type===Ei.BLOCK_FOLDED||e.type===Ei.BLOCK_LITERAL:typeof e=="object"));n=Object.assign({},n,{allNullValues:!1,implicitKey:!p&&(d||!a),indent:s+l});let h=!1,m=!1,g=q3(e,n,()=>h=!0,()=>m=!0);if(!p&&!n.inFlow&&g.length>1024){if(d)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");p=!0}if(n.inFlow){if(a||t==null)return h&&r&&r(),g===""?"?":p?`? ${g}`:g}else if(a&&!d||t==null&&p)return g=`? ${g}`,f&&!h?g+=XS(g,n.indent,c(f)):m&&i&&i(),g;h&&(f=null),p?(f&&(g+=XS(g,n.indent,c(f))),g=`? ${g}
${s}:`):(g=`${g}:`,f&&(g+=XS(g,n.indent,c(f))));let v,y,_;bl(t)?(v=!!t.spaceBefore,y=t.commentBefore,_=t.comment):(v=!1,y=null,_=null,t&&typeof t=="object"&&(t=o.createNode(t))),n.implicitKey=!1,!p&&!f&&Go(t)&&(n.indentAtStart=g.length+1),m=!1,!u&&l.length>=2&&!n.inFlow&&!p&&O8(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let S=!1;const C=q3(t,n,()=>S=!0,()=>m=!0);let w=" ";if(f||v||y){if(w=v?`
`:"",y){const x=c(y);w+=`
${j1(x,n.indent)}`}C===""&&!n.inFlow?w===`
`&&(w=`

`):w+=`
${n.indent}`}else if(!p&&Xs(t)){const x=C[0],T=C.indexOf(`
`),A=T!==-1,I=n.inFlow??t.flow??t.items.length===0;if(A||!I){let R=!1;if(A&&(x==="&"||x==="!")){let N=C.indexOf(" ");x==="&"&&N!==-1&&N<T&&C[N+1]==="!"&&(N=C.indexOf(" ",N+1)),(N===-1||T<N)&&(R=!0)}R||(w=`
${n.indent}`)}}else(C===""||C[0]===`
`)&&(w="");return g+=w+C,n.inFlow?S&&r&&r():_&&!S?g+=XS(g,n.indent,c(_)):m&&i&&i(),g}function FTr(e,t){(e==="debug"||e==="warn")&&(typeof process<"u"&&process.emitWarning?process.emitWarning(t):console.warn(t))}const Bke="<<";function but(e,t,{key:n,value:r}){if(e?.doc.schema.merge&&BTr(n))if(r=c4(r)?r.resolve(e.doc):r,O8(r))for(const i of r.items)Nte(e,t,i);else if(Array.isArray(r))for(const i of r)Nte(e,t,i);else Nte(e,t,r);else{const i=Ip(n,"",e);if(t instanceof Map)t.set(i,Ip(r,i,e));else if(t instanceof Set)t.add(i);else{const a=jTr(n,i,e),o=Ip(r,a,e);a in t?Object.defineProperty(t,a,{value:o,writable:!0,enumerable:!0,configurable:!0}):t[a]=o}}return t}const BTr=e=>e===Bke||Go(e)&&e.value===Bke&&(!e.type||e.type===Ei.PLAIN);function Nte(e,t,n){const r=e&&c4(n)?n.resolve(e.doc):n;if(!N8(r))throw new Error("Merge sources must be maps or map aliases");const i=r.toJSON(null,e,Map);for(const[a,o]of i)t instanceof Map?t.has(a)||t.set(a,o):t instanceof Set?t.add(a):Object.prototype.hasOwnProperty.call(t,a)||Object.defineProperty(t,a,{value:o,writable:!0,enumerable:!0,configurable:!0});return t}function jTr(e,t,n){if(t===null)return"";if(typeof t!="object")return String(t);if(bl(e)&&n?.doc){const r=yut(n.doc,{});r.anchors=new Set;for(const a of n.anchors.keys())r.anchors.add(a.anchor);r.inFlow=!0,r.inStringifyKey=!0;const i=e.toString(r);if(!n.mapKeyWarned){let a=JSON.stringify(i);a.length>40&&(a=a.substring(0,36)+'..."'),FTr(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${a}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return i}return JSON.stringify(t)}function Sve(e,t,n){const r=$6(e,void 0,n),i=$6(t,void 0,n);return new Nu(r,i)}class Nu{constructor(t,n=null){Object.defineProperty(this,Bp,{value:dut}),this.key=t,this.value=n}clone(t){let{key:n,value:r}=this;return bl(n)&&(n=n.clone(t)),bl(r)&&(r=r.clone(t)),new Nu(n,r)}toJSON(t,n){const r=n?.mapAsMap?new Map:{};return but(n,r,this)}toString(t,n,r){return t?.doc?$Tr(this,t,n,r):JSON.stringify(this)}}function _ut(e,t,n){return(t.inFlow??e.flow?UTr:zTr)(e,t,n)}function zTr({comment:e,items:t},n,{blockItemPrefix:r,flowChars:i,itemIndent:a,onChompKeep:o,onComment:s}){const{indent:l,options:{commentString:c}}=n,u=Object.assign({},n,{indent:a,type:null});let d=!1;const f=[];for(let h=0;h<t.length;++h){const m=t[h];let g=null;if(bl(m))!d&&m.spaceBefore&&f.push(""),kB(n,f,m.commentBefore,d),m.comment&&(g=m.comment);else if(tl(m)){const y=bl(m.key)?m.key:null;y&&(!d&&y.spaceBefore&&f.push(""),kB(n,f,y.commentBefore,d))}d=!1;let v=q3(m,u,()=>g=null,()=>d=!0);g&&(v+=XS(v,a,c(g))),d&&g&&(d=!1),f.push(r+v)}let p;if(f.length===0)p=i.start+i.end;else{p=f[0];for(let h=1;h<f.length;++h){const m=f[h];p+=m?`
${l}${m}`:`
`}}return e?(p+=`
`+j1(c(e),l),s&&s()):d&&o&&o(),p}function UTr({items:e},t,{flowChars:n,itemIndent:r}){const{indent:i,indentStep:a,flowCollectionPadding:o,options:{commentString:s}}=t;r+=a;const l=Object.assign({},t,{indent:r,inFlow:!0,type:null});let c=!1,u=0;const d=[];for(let h=0;h<e.length;++h){const m=e[h];let g=null;if(bl(m))m.spaceBefore&&d.push(""),kB(t,d,m.commentBefore,!1),m.comment&&(g=m.comment);else if(tl(m)){const y=bl(m.key)?m.key:null;y&&(y.spaceBefore&&d.push(""),kB(t,d,y.commentBefore,!1),y.comment&&(c=!0));const _=bl(m.value)?m.value:null;_?(_.comment&&(g=_.comment),_.commentBefore&&(c=!0)):m.value==null&&y?.comment&&(g=y.comment)}g&&(c=!0);let v=q3(m,l,()=>g=null);h<e.length-1&&(v+=","),g&&(v+=XS(v,r,s(g))),!c&&(d.length>u||v.includes(`
`))&&(c=!0),d.push(v),u=d.length}const{start:f,end:p}=n;if(d.length===0)return f+p;if(!c){const h=d.reduce((m,g)=>m+g.length+2,2);c=t.options.lineWidth>0&&h>t.options.lineWidth}if(c){let h=f;for(const m of d)h+=m?`
${a}${i}${m}`:`
`;return`${h}
${i}${p}`}else return`${f}${o}${d.join(" ")}${o}${p}`}function kB({indent:e,options:{commentString:t}},n,r,i){if(r&&i&&(r=r.replace(/^\n+/,"")),r){const a=j1(t(r),e);n.push(a.trimStart())}}function ZS(e,t){const n=Go(t)?t.value:t;for(const r of e)if(tl(r)&&(r.key===t||r.key===n||Go(r.key)&&r.key.value===n))return r}class xu extends gut{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(Gb,t),this.items=[]}static from(t,n,r){const{keepUndefined:i,replacer:a}=r,o=new this(t),s=(l,c)=>{if(typeof a=="function")c=a.call(n,l,c);else if(Array.isArray(a)&&!a.includes(l))return;(c!==void 0||i)&&o.items.push(Sve(l,c,r))};if(n instanceof Map)for(const[l,c]of n)s(l,c);else if(n&&typeof n=="object")for(const l of Object.keys(n))s(l,n[l]);return typeof t.sortMapEntries=="function"&&o.items.sort(t.sortMapEntries),o}add(t,n){let r;tl(t)?r=t:!t||typeof t!="object"||!("key"in t)?r=new Nu(t,t?.value):r=new Nu(t.key,t.value);const i=ZS(this.items,r.key),a=this.schema?.sortMapEntries;if(i){if(!n)throw new Error(`Key ${r.key} already set`);Go(i.value)&&mut(r.value)?i.value.value=r.value:i.value=r.value}else if(a){const o=this.items.findIndex(s=>a(r,s)<0);o===-1?this.items.push(r):this.items.splice(o,0,r)}else this.items.push(r)}delete(t){const n=ZS(this.items,t);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(t,n){const i=ZS(this.items,t)?.value;return(!n&&Go(i)?i.value:i)??void 0}has(t){return!!ZS(this.items,t)}set(t,n){this.add(new Nu(t,n),!0)}toJSON(t,n,r){const i=r?new r:n?.mapAsMap?new Map:{};n?.onCreate&&n.onCreate(i);for(const a of this.items)but(n,i,a);return i}toString(t,n,r){if(!t)return JSON.stringify(this);for(const i of this.items)if(!tl(i))throw new Error(`Map items must all be pairs; found ${JSON.stringify(i)} instead`);return!t.allNullValues&&this.hasAllNullValues(!1)&&(t=Object.assign({},t,{allNullValues:!0})),_ut(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:r,onComment:n})}}const u4={collection:"map",default:!0,nodeClass:xu,tag:"tag:yaml.org,2002:map",resolve(e,t){return N8(e)||t("Expected a mapping for this tag"),e},createNode:(e,t,n)=>xu.from(e,t,n)};class _m extends gut{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(l4,t),this.items=[]}add(t){this.items.push(t)}delete(t){const n=S9(t);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(t,n){const r=S9(t);if(typeof r!="number")return;const i=this.items[r];return!n&&Go(i)?i.value:i}has(t){const n=S9(t);return typeof n=="number"&&n<this.items.length}set(t,n){const r=S9(t);if(typeof r!="number")throw new Error(`Expected a valid index, not ${t}.`);const i=this.items[r];Go(i)&&mut(n)?i.value=n:this.items[r]=n}toJSON(t,n){const r=[];n?.onCreate&&n.onCreate(r);let i=0;for(const a of this.items)r.push(Ip(a,String(i++),n));return r}toString(t,n,r){return t?_ut(this,t,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(t.indent||"")+"  ",onChompKeep:r,onComment:n}):JSON.stringify(this)}static from(t,n,r){const{replacer:i}=r,a=new this(t);if(n&&Symbol.iterator in Object(n)){let o=0;for(let s of n){if(typeof i=="function"){const l=n instanceof Set?s:String(o++);s=i.call(n,l,s)}a.items.push($6(s,void 0,r))}}return a}}function S9(e){let t=Go(e)?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}const d4={collection:"seq",default:!0,nodeClass:_m,tag:"tag:yaml.org,2002:seq",resolve(e,t){return O8(e)||t("Expected a sequence for this tag"),e},createNode:(e,t,n)=>_m.from(e,t,n)},UH={identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,n,r){return t=Object.assign({actualString:!0},t),_ve(e,t,n,r)}},HH={identify:e=>e==null,createNode:()=>new Ei(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new Ei(null),stringify:({source:e},t)=>typeof e=="string"&&HH.test.test(e)?e:t.options.nullStr},Eve={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new Ei(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},n){if(e&&Eve.test.test(e)){const r=e[0]==="t"||e[0]==="T";if(t===r)return e}return t?n.options.trueStr:n.options.falseStr}};function km({format:e,minFractionDigits:t,tag:n,value:r}){if(typeof r=="bigint")return String(r);const i=typeof r=="number"?r:Number(r);if(!isFinite(i))return isNaN(i)?".nan":i<0?"-.inf":".inf";let a=JSON.stringify(r);if(!e&&t&&(!n||n==="tag:yaml.org,2002:float")&&/^\d/.test(a)){let o=a.indexOf(".");o<0&&(o=a.length,a+=".");let s=t-(a.length-o-1);for(;s-- >0;)a+="0"}return a}const Sut={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:km},Eut={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():km(e)}},Cut={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new Ei(parseFloat(e)),n=e.indexOf(".");return n!==-1&&e[e.length-1]==="0"&&(t.minFractionDigits=e.length-n-1),t},stringify:km},VH=e=>typeof e=="bigint"||Number.isInteger(e),Cve=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function wut(e,t,n){const{value:r}=e;return VH(r)&&r>=0?n+r.toString(t):km(e)}const xut={identify:e=>VH(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>Cve(e,2,8,n),stringify:e=>wut(e,8,"0o")},Tut={identify:VH,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>Cve(e,0,10,n),stringify:km},Iut={identify:e=>VH(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>Cve(e,2,16,n),stringify:e=>wut(e,16,"0x")},HTr=[u4,d4,UH,HH,Eve,xut,Tut,Iut,Sut,Eut,Cut];function jke(e){return typeof e=="bigint"||Number.isInteger(e)}const E9=({value:e})=>JSON.stringify(e),VTr=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:E9},{identify:e=>e==null,createNode:()=>new Ei(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:E9},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>e==="true",stringify:E9},{identify:jke,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>jke(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:E9}],GTr={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},qTr=[u4,d4].concat(VTr,GTr),wve={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof Buffer=="function")return Buffer.from(e,"base64");if(typeof atob=="function"){const n=atob(e.replace(/[\n\r]/g,"")),r=new Uint8Array(n.length);for(let i=0;i<n.length;++i)r[i]=n.charCodeAt(i);return r}else return t("This environment does not support reading binary tags; either Buffer or atob is required"),e},stringify({comment:e,type:t,value:n},r,i,a){const o=n;let s;if(typeof Buffer=="function")s=o instanceof Buffer?o.toString("base64"):Buffer.from(o.buffer).toString("base64");else if(typeof btoa=="function"){let l="";for(let c=0;c<o.length;++c)l+=String.fromCharCode(o[c]);s=btoa(l)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t||(t=Ei.BLOCK_LITERAL),t!==Ei.QUOTE_DOUBLE){const l=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),c=Math.ceil(s.length/l),u=new Array(c);for(let d=0,f=0;d<c;++d,f+=l)u[d]=s.substr(f,l);s=u.join(t===Ei.BLOCK_LITERAL?`
`:" ")}return _ve({comment:e,type:t,value:s},r,i,a)}};function Aut(e,t){if(O8(e))for(let n=0;n<e.items.length;++n){let r=e.items[n];if(!tl(r)){if(N8(r)){r.items.length>1&&t("Each pair must have its own sequence indicator");const i=r.items[0]||new Nu(new Ei(null));if(r.commentBefore&&(i.key.commentBefore=i.key.commentBefore?`${r.commentBefore}
${i.key.commentBefore}`:r.commentBefore),r.comment){const a=i.value??i.key;a.comment=a.comment?`${r.comment}
${a.comment}`:r.comment}r=i}e.items[n]=tl(r)?r:new Nu(r)}}else t("Expected a sequence for this tag");return e}function Rut(e,t,n){const{replacer:r}=n,i=new _m(e);i.tag="tag:yaml.org,2002:pairs";let a=0;if(t&&Symbol.iterator in Object(t))for(let o of t){typeof r=="function"&&(o=r.call(t,String(a++),o));let s,l;if(Array.isArray(o))if(o.length===2)s=o[0],l=o[1];else throw new TypeError(`Expected [key, value] tuple: ${o}`);else if(o&&o instanceof Object){const c=Object.keys(o);if(c.length===1)s=c[0],l=o[s];else throw new TypeError(`Expected tuple with one key, not ${c.length} keys`)}else s=o;i.items.push(Sve(s,l,n))}return i}const xve={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Aut,createNode:Rut};class J5 extends _m{constructor(){super(),this.add=xu.prototype.add.bind(this),this.delete=xu.prototype.delete.bind(this),this.get=xu.prototype.get.bind(this),this.has=xu.prototype.has.bind(this),this.set=xu.prototype.set.bind(this),this.tag=J5.tag}toJSON(t,n){if(!n)return super.toJSON(t);const r=new Map;n?.onCreate&&n.onCreate(r);for(const i of this.items){let a,o;if(tl(i)?(a=Ip(i.key,"",n),o=Ip(i.value,a,n)):a=Ip(i,"",n),r.has(a))throw new Error("Ordered maps must not include duplicate keys");r.set(a,o)}return r}static from(t,n,r){const i=Rut(t,n,r),a=new this;return a.items=i.items,a}}J5.tag="tag:yaml.org,2002:omap";const Tve={collection:"seq",identify:e=>e instanceof Map,nodeClass:J5,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=Aut(e,t),r=[];for(const{key:i}of n.items)Go(i)&&(r.includes(i.value)?t(`Ordered maps must not include duplicate keys: ${i.value}`):r.push(i.value));return Object.assign(new J5,n)},createNode:(e,t,n)=>J5.from(e,t,n)};function Nut({value:e,source:t},n){return t&&(e?Out:Lut).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const Out={identify:e=>e===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new Ei(!0),stringify:Nut},Lut={identify:e=>e===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new Ei(!1),stringify:Nut},WTr={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:km},YTr={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():km(e)}},KTr={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new Ei(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(n!==-1){const r=e.substring(n+1).replace(/_/g,"");r[r.length-1]==="0"&&(t.minFractionDigits=r.length)}return t},stringify:km},L8=e=>typeof e=="bigint"||Number.isInteger(e);function GH(e,t,n,{intAsBigInt:r}){const i=e[0];if((i==="-"||i==="+")&&(t+=1),e=e.substring(t).replace(/_/g,""),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}const o=BigInt(e);return i==="-"?BigInt(-1)*o:o}const a=parseInt(e,n);return i==="-"?-1*a:a}function Ive(e,t,n){const{value:r}=e;if(L8(r)){const i=r.toString(t);return r<0?"-"+n+i.substr(1):n+i}return km(e)}const XTr={identify:L8,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>GH(e,2,2,n),stringify:e=>Ive(e,2,"0b")},ZTr={identify:L8,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>GH(e,1,8,n),stringify:e=>Ive(e,8,"0")},QTr={identify:L8,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>GH(e,0,10,n),stringify:km},JTr={identify:L8,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>GH(e,2,16,n),stringify:e=>Ive(e,16,"0x")};class e3 extends xu{constructor(t){super(t),this.tag=e3.tag}add(t){let n;tl(t)?n=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?n=new Nu(t.key,null):n=new Nu(t,null),ZS(this.items,n.key)||this.items.push(n)}get(t,n){const r=ZS(this.items,t);return!n&&tl(r)?Go(r.key)?r.key.value:r.key:r}set(t,n){if(typeof n!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);const r=ZS(this.items,t);r&&!n?this.items.splice(this.items.indexOf(r),1):!r&&n&&this.items.push(new Nu(t))}toJSON(t,n){return super.toJSON(t,n,Set)}toString(t,n,r){if(!t)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},t,{allNullValues:!0}),n,r);throw new Error("Set items must all have null values")}static from(t,n,r){const{replacer:i}=r,a=new this(t);if(n&&Symbol.iterator in Object(n))for(let o of n)typeof i=="function"&&(o=i.call(n,o,o)),a.items.push(Sve(o,null,r));return a}}e3.tag="tag:yaml.org,2002:set";const Ave={collection:"map",identify:e=>e instanceof Set,nodeClass:e3,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>e3.from(e,t,n),resolve(e,t){if(N8(e)){if(e.hasAllNullValues(!0))return Object.assign(new e3,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};function Rve(e,t){const n=e[0],r=n==="-"||n==="+"?e.substring(1):e,i=o=>t?BigInt(o):Number(o),a=r.replace(/_/g,"").split(":").reduce((o,s)=>o*i(60)+i(s),i(0));return n==="-"?i(-1)*a:a}function Put(e){let{value:t}=e,n=o=>o;if(typeof t=="bigint")n=o=>BigInt(o);else if(isNaN(t)||!isFinite(t))return km(e);let r="";t<0&&(r="-",t*=n(-1));const i=n(60),a=[t%i];return t<60?a.unshift(0):(t=(t-a[0])/i,a.unshift(t%i),t>=60&&(t=(t-a[0])/i,a.unshift(t))),r+a.map(o=>String(o).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const kut={identify:e=>typeof e=="bigint"||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>Rve(e,n),stringify:Put},Mut={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>Rve(e,!1),stringify:Put},qH={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){const t=e.match(qH.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,r,i,a,o,s]=t.map(Number),l=t[7]?Number((t[7]+"00").substr(1,3)):0;let c=Date.UTC(n,r-1,i,a||0,o||0,s||0,l);const u=t[8];if(u&&u!=="Z"){let d=Rve(u,!1);Math.abs(d)<30&&(d*=60),c-=6e4*d}return new Date(c)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")},zke=[u4,d4,UH,HH,Out,Lut,XTr,ZTr,QTr,JTr,WTr,YTr,KTr,wve,Tve,xve,Ave,kut,Mut,qH],Uke=new Map([["core",HTr],["failsafe",[u4,d4,UH]],["json",qTr],["yaml11",zke],["yaml-1.1",zke]]),Hke={binary:wve,bool:Eve,float:Cut,floatExp:Eut,floatNaN:Sut,floatTime:Mut,int:Tut,intHex:Iut,intOct:xut,intTime:kut,map:u4,null:HH,omap:Tve,pairs:xve,seq:d4,set:Ave,timestamp:qH},e4r={"tag:yaml.org,2002:binary":wve,"tag:yaml.org,2002:omap":Tve,"tag:yaml.org,2002:pairs":xve,"tag:yaml.org,2002:set":Ave,"tag:yaml.org,2002:timestamp":qH};function Ote(e,t){let n=Uke.get(t);if(!n)if(Array.isArray(e))n=[];else{const r=Array.from(Uke.keys()).filter(i=>i!=="yaml11").map(i=>JSON.stringify(i)).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${r} or define customTags array`)}if(Array.isArray(e))for(const r of e)n=n.concat(r);else typeof e=="function"&&(n=e(n.slice()));return n.map(r=>{if(typeof r!="string")return r;const i=Hke[r];if(i)return i;const a=Object.keys(Hke).map(o=>JSON.stringify(o)).join(", ");throw new Error(`Unknown custom tag "${r}"; use one of ${a}`)})}const t4r=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class Nve{constructor({compat:t,customTags:n,merge:r,resolveKnownTags:i,schema:a,sortMapEntries:o,toStringDefaults:s}){this.compat=Array.isArray(t)?Ote(t,"compat"):t?Ote(null,t):null,this.merge=!!r,this.name=typeof a=="string"&&a||"core",this.knownTags=i?e4r:{},this.tags=Ote(n,this.name),this.toStringOptions=s??null,Object.defineProperty(this,Gb,{value:u4}),Object.defineProperty(this,p0,{value:UH}),Object.defineProperty(this,l4,{value:d4}),this.sortMapEntries=typeof o=="function"?o:o===!0?t4r:null}clone(){const t=Object.create(Nve.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}function n4r(e,t){const n=[];let r=t.directives===!0;if(t.directives!==!1&&e.directives){const l=e.directives.toString(e);l?(n.push(l),r=!0):e.directives.docStart&&(r=!0)}r&&n.push("---");const i=yut(e,t),{commentString:a}=i.options;if(e.commentBefore){n.length!==1&&n.unshift("");const l=a(e.commentBefore);n.unshift(j1(l,""))}let o=!1,s=null;if(e.contents){if(bl(e.contents)){if(e.contents.spaceBefore&&r&&n.push(""),e.contents.commentBefore){const u=a(e.contents.commentBefore);n.push(j1(u,""))}i.forceBlockIndent=!!e.comment,s=e.contents.comment}const l=s?void 0:()=>o=!0;let c=q3(e.contents,i,()=>s=null,l);s&&(c+=XS(c,"",a(s))),(c[0]==="|"||c[0]===">")&&n[n.length-1]==="---"?n[n.length-1]=`--- ${c}`:n.push(c)}else n.push(q3(e.contents,i));if(e.directives?.docEnd)if(e.comment){const l=a(e.comment);l.includes(`
`)?(n.push("..."),n.push(j1(l,""))):n.push(`... ${l}`)}else n.push("...");else{let l=e.comment;l&&o&&(l=l.replace(/^\n+/,"")),l&&((!o||s)&&n[n.length-1]!==""&&n.push(""),n.push(j1(a(l),"")))}return n.join(`
`)+`
`}let Ove=class Dut{constructor(t,n,r){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Bp,{value:Ole});let i=null;typeof n=="function"||Array.isArray(n)?i=n:r===void 0&&n&&(r=n,n=void 0);const a=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"},r);this.options=a;let{version:o}=a;r?._directives?(this.directives=r._directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new bu({version:o}),this.setSchema(o,r),this.contents=t===void 0?null:this.createNode(t,i,r)}clone(){const t=Object.create(Dut.prototype,{[Bp]:{value:Ole}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=bl(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){dx(this.contents)&&this.contents.add(t)}addIn(t,n){dx(this.contents)&&this.contents.addIn(t,n)}createAlias(t,n){if(!t.anchor){const r=put(this);t.anchor=!n||r.has(n)?hut(n||"a",r):n}return new bve(t.anchor)}createNode(t,n,r){let i;if(typeof n=="function")t=n.call({"":t},"",t),i=n;else if(Array.isArray(n)){const g=y=>typeof y=="number"||y instanceof String||y instanceof Number,v=n.filter(g).map(String);v.length>0&&(n=n.concat(v)),i=n}else r===void 0&&n&&(r=n,n=void 0);const{aliasDuplicateObjects:a,anchorPrefix:o,flow:s,keepUndefined:l,onTagObj:c,tag:u}=r??{},{onAnchor:d,setAnchors:f,sourceObjects:p}=RTr(this,o||"a"),h={aliasDuplicateObjects:a??!0,keepUndefined:l??!1,onAnchor:d,onTagObj:c,replacer:i,schema:this.schema,sourceObjects:p},m=$6(t,u,h);return s&&Xs(m)&&(m.flow=!0),f(),m}createPair(t,n,r={}){const i=this.createNode(t,null,r),a=this.createNode(n,null,r);return new Nu(i,a)}delete(t){return dx(this.contents)?this.contents.delete(t):!1}deleteIn(t){return UA(t)?this.contents==null?!1:(this.contents=null,!0):dx(this.contents)?this.contents.deleteIn(t):!1}get(t,n){return Xs(this.contents)?this.contents.get(t,n):void 0}getIn(t,n){return UA(t)?!n&&Go(this.contents)?this.contents.value:this.contents:Xs(this.contents)?this.contents.getIn(t,n):void 0}has(t){return Xs(this.contents)?this.contents.has(t):!1}hasIn(t){return UA(t)?this.contents!==void 0:Xs(this.contents)?this.contents.hasIn(t):!1}set(t,n){this.contents==null?this.contents=PB(this.schema,[t],n):dx(this.contents)&&this.contents.set(t,n)}setIn(t,n){UA(t)?this.contents=n:this.contents==null?this.contents=PB(this.schema,Array.from(t),n):dx(this.contents)&&this.contents.setIn(t,n)}setSchema(t,n={}){typeof t=="number"&&(t=String(t));let r;switch(t){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new bu({version:"1.1"}),r={merge:!0,resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=t:this.directives=new bu({version:t}),r={merge:!1,resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,r=null;break;default:{const i=JSON.stringify(t);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${i}`)}}if(n.schema instanceof Object)this.schema=n.schema;else if(r)this.schema=new Nve(Object.assign(r,n));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:t,jsonArg:n,mapAsMap:r,maxAliasCount:i,onAnchor:a,reviver:o}={}){const s={anchors:new Map,doc:this,keep:!t,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof i=="number"?i:100},l=Ip(this.contents,n??"",s);if(typeof a=="function")for(const{count:c,res:u}of s.anchors.values())a(u,c);return typeof o=="function"?u5(o,{"":l},"",l):l}toJSON(t,n){return this.toJS({json:!0,jsonArg:t,mapAsMap:!1,onAnchor:n})}toString(t={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in t&&(!Number.isInteger(t.indent)||Number(t.indent)<=0)){const n=JSON.stringify(t.indent);throw new Error(`"indent" option must be a positive integer, not ${n}`)}return n4r(this,t)}};function dx(e){if(Xs(e))return!0;throw new Error("Expected a YAML collection as document contents")}class $ut extends Error{constructor(t,n,r,i){super(),this.name=t,this.code=r,this.message=i,this.pos=n}}class HA extends $ut{constructor(t,n,r){super("YAMLParseError",t,n,r)}}class r4r extends $ut{constructor(t,n,r){super("YAMLWarning",t,n,r)}}const Vke=(e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(s=>t.linePos(s));const{line:r,col:i}=n.linePos[0];n.message+=` at line ${r}, column ${i}`;let a=i-1,o=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,"");if(a>=60&&o.length>80){const s=Math.min(a-39,o.length-79);o="…"+o.substring(s),a-=s-1}if(o.length>80&&(o=o.substring(0,79)+"…"),r>1&&/^ *$/.test(o.substring(0,a))){let s=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);s.length>80&&(s=s.substring(0,79)+`…
`),o=s+o}if(/[^ ]/.test(o)){let s=1;const l=n.linePos[1];l&&l.line===r&&l.col>i&&(s=Math.max(1,Math.min(l.col-i,80-a)));const c=" ".repeat(a)+"^".repeat(s);n.message+=`:

${o}
${c}
`}};function W3(e,{flow:t,indicator:n,next:r,offset:i,onError:a,parentIndent:o,startOnNewline:s}){let l=!1,c=s,u=s,d="",f="",p=!1,h=!1,m=null,g=null,v=null,y=null,_=null,S=null,C=null;for(const T of e)switch(h&&(T.type!=="space"&&T.type!=="newline"&&T.type!=="comma"&&a(T.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),h=!1),m&&(c&&T.type!=="comment"&&T.type!=="newline"&&a(m,"TAB_AS_INDENT","Tabs are not allowed as indentation"),m=null),T.type){case"space":!t&&(n!=="doc-start"||r?.type!=="flow-collection")&&T.source.includes("	")&&(m=T),u=!0;break;case"comment":{u||a(T,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const A=T.source.substring(1)||" ";d?d+=f+A:d=A,f="",c=!1;break}case"newline":c?d?d+=T.source:l=!0:f+=T.source,c=!0,p=!0,(g||v)&&(y=T),u=!0;break;case"anchor":g&&a(T,"MULTIPLE_ANCHORS","A node can have at most one anchor"),T.source.endsWith(":")&&a(T.offset+T.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),g=T,C===null&&(C=T.offset),c=!1,u=!1,h=!0;break;case"tag":{v&&a(T,"MULTIPLE_TAGS","A node can have at most one tag"),v=T,C===null&&(C=T.offset),c=!1,u=!1,h=!0;break}case n:(g||v)&&a(T,"BAD_PROP_ORDER",`Anchors and tags must be after the ${T.source} indicator`),S&&a(T,"UNEXPECTED_TOKEN",`Unexpected ${T.source} in ${t??"collection"}`),S=T,c=n==="seq-item-ind"||n==="explicit-key-ind",u=!1;break;case"comma":if(t){_&&a(T,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),_=T,c=!1,u=!1;break}default:a(T,"UNEXPECTED_TOKEN",`Unexpected ${T.type} token`),c=!1,u=!1}const w=e[e.length-1],x=w?w.offset+w.source.length:i;return h&&r&&r.type!=="space"&&r.type!=="newline"&&r.type!=="comma"&&(r.type!=="scalar"||r.source!=="")&&a(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),m&&(c&&m.indent<=o||r?.type==="block-map"||r?.type==="block-seq")&&a(m,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:_,found:S,spaceBefore:l,comment:d,hasNewline:p,anchor:g,tag:v,newlineAfterProp:y,end:x,start:C??x}}function F6(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(`
`))return!0;if(e.end){for(const t of e.end)if(t.type==="newline")return!0}return!1;case"flow-collection":for(const t of e.items){for(const n of t.start)if(n.type==="newline")return!0;if(t.sep){for(const n of t.sep)if(n.type==="newline")return!0}if(F6(t.key)||F6(t.value))return!0}return!1;default:return!0}}function Mle(e,t,n){if(t?.type==="flow-collection"){const r=t.end[0];r.indent===e&&(r.source==="]"||r.source==="}")&&F6(t)&&n(r,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function Fut(e,t,n){const{uniqueKeys:r}=e.options;if(r===!1)return!1;const i=typeof r=="function"?r:(a,o)=>a===o||Go(a)&&Go(o)&&a.value===o.value&&!(a.value==="<<"&&e.schema.merge);return t.some(a=>i(a.key,n))}const Gke="All mapping items must start at the same column";function i4r({composeNode:e,composeEmptyNode:t},n,r,i,a){const o=a?.nodeClass??xu,s=new o(n.schema);n.atRoot&&(n.atRoot=!1);let l=r.offset,c=null;for(const u of r.items){const{start:d,key:f,sep:p,value:h}=u,m=W3(d,{indicator:"explicit-key-ind",next:f??p?.[0],offset:l,onError:i,parentIndent:r.indent,startOnNewline:!0}),g=!m.found;if(g){if(f&&(f.type==="block-seq"?i(l,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in f&&f.indent!==r.indent&&i(l,"BAD_INDENT",Gke)),!m.anchor&&!m.tag&&!p){c=m.end,m.comment&&(s.comment?s.comment+=`
`+m.comment:s.comment=m.comment);continue}(m.newlineAfterProp||F6(f))&&i(f??d[d.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else m.found?.indent!==r.indent&&i(l,"BAD_INDENT",Gke);const v=m.end,y=f?e(n,f,m,i):t(n,v,d,null,m,i);n.schema.compat&&Mle(r.indent,f,i),Fut(n,s.items,y)&&i(v,"DUPLICATE_KEY","Map keys must be unique");const _=W3(p??[],{indicator:"map-value-ind",next:h,offset:y.range[2],onError:i,parentIndent:r.indent,startOnNewline:!f||f.type==="block-scalar"});if(l=_.end,_.found){g&&(h?.type==="block-map"&&!_.hasNewline&&i(l,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&m.start<_.found.offset-1024&&i(y.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const S=h?e(n,h,_,i):t(n,l,p,null,_,i);n.schema.compat&&Mle(r.indent,h,i),l=S.range[2];const C=new Nu(y,S);n.options.keepSourceTokens&&(C.srcToken=u),s.items.push(C)}else{g&&i(y.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),_.comment&&(y.comment?y.comment+=`
`+_.comment:y.comment=_.comment);const S=new Nu(y);n.options.keepSourceTokens&&(S.srcToken=u),s.items.push(S)}}return c&&c<l&&i(c,"IMPOSSIBLE","Map comment with trailing content"),s.range=[r.offset,l,c??l],s}function a4r({composeNode:e,composeEmptyNode:t},n,r,i,a){const o=a?.nodeClass??_m,s=new o(n.schema);n.atRoot&&(n.atRoot=!1);let l=r.offset,c=null;for(const{start:u,value:d}of r.items){const f=W3(u,{indicator:"seq-item-ind",next:d,offset:l,onError:i,parentIndent:r.indent,startOnNewline:!0});if(!f.found)if(f.anchor||f.tag||d)d&&d.type==="block-seq"?i(f.end,"BAD_INDENT","All sequence items must start at the same column"):i(l,"MISSING_CHAR","Sequence item without - indicator");else{c=f.end,f.comment&&(s.comment=f.comment);continue}const p=d?e(n,d,f,i):t(n,f.end,u,null,f,i);n.schema.compat&&Mle(r.indent,d,i),l=p.range[2],s.items.push(p)}return s.range=[r.offset,l,c??l],s}function P8(e,t,n,r){let i="";if(e){let a=!1,o="";for(const s of e){const{source:l,type:c}=s;switch(c){case"space":a=!0;break;case"comment":{n&&!a&&r(s,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const u=l.substring(1)||" ";i?i+=o+u:i=u,o="";break}case"newline":i&&(o+=l),a=!0;break;default:r(s,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`)}t+=l.length}}return{comment:i,offset:t}}const Lte="Block collections are not allowed within flow collections",Pte=e=>e&&(e.type==="block-map"||e.type==="block-seq");function o4r({composeNode:e,composeEmptyNode:t},n,r,i,a){const o=r.start.source==="{",s=o?"flow map":"flow sequence",l=a?.nodeClass??(o?xu:_m),c=new l(n.schema);c.flow=!0;const u=n.atRoot;u&&(n.atRoot=!1);let d=r.offset+r.start.source.length;for(let g=0;g<r.items.length;++g){const v=r.items[g],{start:y,key:_,sep:S,value:C}=v,w=W3(y,{flow:s,indicator:"explicit-key-ind",next:_??S?.[0],offset:d,onError:i,parentIndent:r.indent,startOnNewline:!1});if(!w.found){if(!w.anchor&&!w.tag&&!S&&!C){g===0&&w.comma?i(w.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${s}`):g<r.items.length-1&&i(w.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${s}`),w.comment&&(c.comment?c.comment+=`
`+w.comment:c.comment=w.comment),d=w.end;continue}!o&&n.options.strict&&F6(_)&&i(_,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(g===0)w.comma&&i(w.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${s}`);else if(w.comma||i(w.start,"MISSING_CHAR",`Missing , between ${s} items`),w.comment){let x="";e:for(const T of y)switch(T.type){case"comma":case"space":break;case"comment":x=T.source.substring(1);break e;default:break e}if(x){let T=c.items[c.items.length-1];tl(T)&&(T=T.value??T.key),T.comment?T.comment+=`
`+x:T.comment=x,w.comment=w.comment.substring(x.length+1)}}if(!o&&!S&&!w.found){const x=C?e(n,C,w,i):t(n,w.end,S,null,w,i);c.items.push(x),d=x.range[2],Pte(C)&&i(x.range,"BLOCK_IN_FLOW",Lte)}else{const x=w.end,T=_?e(n,_,w,i):t(n,x,y,null,w,i);Pte(_)&&i(T.range,"BLOCK_IN_FLOW",Lte);const A=W3(S??[],{flow:s,indicator:"map-value-ind",next:C,offset:T.range[2],onError:i,parentIndent:r.indent,startOnNewline:!1});if(A.found){if(!o&&!w.found&&n.options.strict){if(S)for(const N of S){if(N===A.found)break;if(N.type==="newline"){i(N,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}w.start<A.found.offset-1024&&i(A.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else C&&("source"in C&&C.source&&C.source[0]===":"?i(C,"MISSING_CHAR",`Missing space after : in ${s}`):i(A.start,"MISSING_CHAR",`Missing , or : between ${s} items`));const I=C?e(n,C,A,i):A.found?t(n,A.end,S,null,A,i):null;I?Pte(C)&&i(I.range,"BLOCK_IN_FLOW",Lte):A.comment&&(T.comment?T.comment+=`
`+A.comment:T.comment=A.comment);const R=new Nu(T,I);if(n.options.keepSourceTokens&&(R.srcToken=v),o){const N=c;Fut(n,N.items,T)&&i(x,"DUPLICATE_KEY","Map keys must be unique"),N.items.push(R)}else{const N=new xu(n.schema);N.flow=!0,N.items.push(R),c.items.push(N)}d=I?I.range[2]:A.end}}const f=o?"}":"]",[p,...h]=r.end;let m=d;if(p&&p.source===f)m=p.offset+p.source.length;else{const g=s[0].toUpperCase()+s.substring(1),v=u?`${g} must end with a ${f}`:`${g} in block collection must be sufficiently indented and end with a ${f}`;i(d,u?"MISSING_CHAR":"BAD_INDENT",v),p&&p.source.length!==1&&h.unshift(p)}if(h.length>0){const g=P8(h,m,n.options.strict,i);g.comment&&(c.comment?c.comment+=`
`+g.comment:c.comment=g.comment),c.range=[r.offset,m,g.offset]}else c.range=[r.offset,m,m];return c}function kte(e,t,n,r,i,a){const o=n.type==="block-map"?i4r(e,t,n,r,a):n.type==="block-seq"?a4r(e,t,n,r,a):o4r(e,t,n,r,a),s=o.constructor;return i==="!"||i===s.tagName?(o.tag=s.tagName,o):(i&&(o.tag=i),o)}function s4r(e,t,n,r,i){const a=r.tag,o=a?t.directives.tagName(a.source,f=>i(a,"TAG_RESOLVE_FAILED",f)):null;if(n.type==="block-seq"){const{anchor:f,newlineAfterProp:p}=r,h=f&&a?f.offset>a.offset?f:a:f??a;h&&(!p||p.offset<h.offset)&&i(h,"MISSING_CHAR","Missing newline after block sequence props")}const s=n.type==="block-map"?"map":n.type==="block-seq"?"seq":n.start.source==="{"?"map":"seq";if(!a||!o||o==="!"||o===xu.tagName&&s==="map"||o===_m.tagName&&s==="seq")return kte(e,t,n,i,o);let l=t.schema.tags.find(f=>f.tag===o&&f.collection===s);if(!l){const f=t.schema.knownTags[o];if(f&&f.collection===s)t.schema.tags.push(Object.assign({},f,{default:!1})),l=f;else return f?.collection?i(a,"BAD_COLLECTION_TYPE",`${f.tag} used for ${s} collection, but expects ${f.collection}`,!0):i(a,"TAG_RESOLVE_FAILED",`Unresolved tag: ${o}`,!0),kte(e,t,n,i,o)}const c=kte(e,t,n,i,o,l),u=l.resolve?.(c,f=>i(a,"TAG_RESOLVE_FAILED",f),t.options)??c,d=bl(u)?u:new Ei(u);return d.range=c.range,d.tag=o,l?.format&&(d.format=l.format),d}function l4r(e,t,n){const r=t.offset,i=c4r(t,e.options.strict,n);if(!i)return{value:"",type:null,comment:"",range:[r,r,r]};const a=i.mode===">"?Ei.BLOCK_FOLDED:Ei.BLOCK_LITERAL,o=t.source?u4r(t.source):[];let s=o.length;for(let m=o.length-1;m>=0;--m){const g=o[m][1];if(g===""||g==="\r")s=m;else break}if(s===0){const m=i.chomp==="+"&&o.length>0?`
`.repeat(Math.max(1,o.length-1)):"";let g=r+i.length;return t.source&&(g+=t.source.length),{value:m,type:a,comment:i.comment,range:[r,g,g]}}let l=t.indent+i.indent,c=t.offset+i.length,u=0;for(let m=0;m<s;++m){const[g,v]=o[m];if(v===""||v==="\r")i.indent===0&&g.length>l&&(l=g.length);else{g.length<l&&n(c+g.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),i.indent===0&&(l=g.length),u=m,l===0&&!e.atRoot&&n(c,"BAD_INDENT","Block scalar values in collections must be indented");break}c+=g.length+v.length+1}for(let m=o.length-1;m>=s;--m)o[m][0].length>l&&(s=m+1);let d="",f="",p=!1;for(let m=0;m<u;++m)d+=o[m][0].slice(l)+`
`;for(let m=u;m<s;++m){let[g,v]=o[m];c+=g.length+v.length+1;const y=v[v.length-1]==="\r";if(y&&(v=v.slice(0,-1)),v&&g.length<l){const S=`Block scalar lines must not be less indented than their ${i.indent?"explicit indentation indicator":"first line"}`;n(c-v.length-(y?2:1),"BAD_INDENT",S),g=""}a===Ei.BLOCK_LITERAL?(d+=f+g.slice(l)+v,f=`
`):g.length>l||v[0]==="	"?(f===" "?f=`
`:!p&&f===`
`&&(f=`

`),d+=f+g.slice(l)+v,f=`
`,p=!0):v===""?f===`
`?d+=`
`:f=`
`:(d+=f+v,f=" ",p=!1)}switch(i.chomp){case"-":break;case"+":for(let m=s;m<o.length;++m)d+=`
`+o[m][0].slice(l);d[d.length-1]!==`
`&&(d+=`
`);break;default:d+=`
`}const h=r+i.length+t.source.length;return{value:d,type:a,comment:i.comment,range:[r,h,h]}}function c4r({offset:e,props:t},n,r){if(t[0].type!=="block-scalar-header")return r(t[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:i}=t[0],a=i[0];let o=0,s="",l=-1;for(let f=1;f<i.length;++f){const p=i[f];if(!s&&(p==="-"||p==="+"))s=p;else{const h=Number(p);!o&&h?o=h:l===-1&&(l=e+f)}}l!==-1&&r(l,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${i}`);let c=!1,u="",d=i.length;for(let f=1;f<t.length;++f){const p=t[f];switch(p.type){case"space":c=!0;case"newline":d+=p.source.length;break;case"comment":n&&!c&&r(p,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),d+=p.source.length,u=p.source.substring(1);break;case"error":r(p,"UNEXPECTED_TOKEN",p.message),d+=p.source.length;break;default:{const h=`Unexpected token in block scalar header: ${p.type}`;r(p,"UNEXPECTED_TOKEN",h);const m=p.source;m&&typeof m=="string"&&(d+=m.length)}}}return{mode:a,indent:o,chomp:s,comment:u,length:d}}function u4r(e){const t=e.split(/\n( *)/),n=t[0],r=n.match(/^( *)/),a=[r?.[1]?[r[1],n.slice(r[1].length)]:["",n]];for(let o=1;o<t.length;o+=2)a.push([t[o],t[o+1]]);return a}function d4r(e,t,n){const{offset:r,type:i,source:a,end:o}=e;let s,l;const c=(f,p,h)=>n(r+f,p,h);switch(i){case"scalar":s=Ei.PLAIN,l=f4r(a,c);break;case"single-quoted-scalar":s=Ei.QUOTE_SINGLE,l=p4r(a,c);break;case"double-quoted-scalar":s=Ei.QUOTE_DOUBLE,l=h4r(a,c);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${i}`),{value:"",type:null,comment:"",range:[r,r+a.length,r+a.length]}}const u=r+a.length,d=P8(o,u,t,n);return{value:l,type:s,comment:d.comment,range:[r,u,d.offset]}}function f4r(e,t){let n="";switch(e[0]){case"	":n="a tab character";break;case",":n="flow indicator character ,";break;case"%":n="directive indicator character %";break;case"|":case">":{n=`block scalar indicator ${e[0]}`;break}case"@":case"`":{n=`reserved character ${e[0]}`;break}}return n&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`),But(e)}function p4r(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),But(e.slice(1,-1)).replace(/''/g,"'")}function But(e){let t,n;try{t=new RegExp(`(.*?)(?<![ 	])[ 	]*\r?
`,"sy"),n=new RegExp(`[ 	]*(.*?)(?:(?<![ 	])[ 	]*)?\r?
`,"sy")}catch{t=/(.*?)[ \t]*\r?\n/sy,n=/[ \t]*(.*?)[ \t]*\r?\n/sy}let r=t.exec(e);if(!r)return e;let i=r[1],a=" ",o=t.lastIndex;for(n.lastIndex=o;r=n.exec(e);)r[1]===""?a===`
`?i+=a:a=`
`:(i+=a+r[1],a=" "),o=n.lastIndex;const s=/[ \t]*(.*)/sy;return s.lastIndex=o,r=s.exec(e),i+a+(r?.[1]??"")}function h4r(e,t){let n="";for(let r=1;r<e.length-1;++r){const i=e[r];if(!(i==="\r"&&e[r+1]===`
`))if(i===`
`){const{fold:a,offset:o}=m4r(e,r);n+=a,r=o}else if(i==="\\"){let a=e[++r];const o=g4r[a];if(o)n+=o;else if(a===`
`)for(a=e[r+1];a===" "||a==="	";)a=e[++r+1];else if(a==="\r"&&e[r+1]===`
`)for(a=e[++r+1];a===" "||a==="	";)a=e[++r+1];else if(a==="x"||a==="u"||a==="U"){const s={x:2,u:4,U:8}[a];n+=v4r(e,r+1,s,t),r+=s}else{const s=e.substr(r-1,2);t(r-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${s}`),n+=s}}else if(i===" "||i==="	"){const a=r;let o=e[r+1];for(;o===" "||o==="	";)o=e[++r+1];o!==`
`&&!(o==="\r"&&e[r+2]===`
`)&&(n+=r>a?e.slice(a,r+1):i)}else n+=i}return(e[e.length-1]!=='"'||e.length===1)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),n}function m4r(e,t){let n="",r=e[t+1];for(;(r===" "||r==="	"||r===`
`||r==="\r")&&!(r==="\r"&&e[t+2]!==`
`);)r===`
`&&(n+=`
`),t+=1,r=e[t+1];return n||(n=" "),{fold:n,offset:t}}const g4r={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
`,r:"\r",t:"	",v:"\v",N:"",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","	":"	"};function v4r(e,t,n,r){const i=e.substr(t,n),o=i.length===n&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;if(isNaN(o)){const s=e.substr(t-2,n+2);return r(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${s}`),s}return String.fromCodePoint(o)}function jut(e,t,n,r){const{value:i,type:a,comment:o,range:s}=t.type==="block-scalar"?l4r(e,t,r):d4r(t,e.options.strict,r),l=n?e.directives.tagName(n.source,d=>r(n,"TAG_RESOLVE_FAILED",d)):null,c=n&&l?y4r(e.schema,i,l,n,r):t.type==="scalar"?b4r(e,i,t,r):e.schema[p0];let u;try{const d=c.resolve(i,f=>r(n??t,"TAG_RESOLVE_FAILED",f),e.options);u=Go(d)?d:new Ei(d)}catch(d){const f=d instanceof Error?d.message:String(d);r(n??t,"TAG_RESOLVE_FAILED",f),u=new Ei(i)}return u.range=s,u.source=i,a&&(u.type=a),l&&(u.tag=l),c.format&&(u.format=c.format),o&&(u.comment=o),u}function y4r(e,t,n,r,i){if(n==="!")return e[p0];const a=[];for(const s of e.tags)if(!s.collection&&s.tag===n)if(s.default&&s.test)a.push(s);else return s;for(const s of a)if(s.test?.test(t))return s;const o=e.knownTags[n];return o&&!o.collection?(e.tags.push(Object.assign({},o,{default:!1,test:void 0})),o):(i(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,n!=="tag:yaml.org,2002:str"),e[p0])}function b4r({directives:e,schema:t},n,r,i){const a=t.tags.find(o=>o.default&&o.test?.test(n))||t[p0];if(t.compat){const o=t.compat.find(s=>s.default&&s.test?.test(n))??t[p0];if(a.tag!==o.tag){const s=e.tagString(a.tag),l=e.tagString(o.tag),c=`Value may be parsed as either ${s} or ${l}`;i(r,"TAG_RESOLVE_FAILED",c,!0)}}return a}function _4r(e,t,n){if(t){n===null&&(n=t.length);for(let r=n-1;r>=0;--r){let i=t[r];switch(i.type){case"space":case"comment":case"newline":e-=i.source.length;continue}for(i=t[++r];i?.type==="space";)e+=i.source.length,i=t[++r];break}}return e}const S4r={composeNode:zut,composeEmptyNode:Lve};function zut(e,t,n,r){const{spaceBefore:i,comment:a,anchor:o,tag:s}=n;let l,c=!0;switch(t.type){case"alias":l=E4r(e,t,r),(o||s)&&r(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":l=jut(e,t,s,r),o&&(l.anchor=o.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":l=s4r(S4r,e,t,n,r),o&&(l.anchor=o.source.substring(1));break;default:{const u=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;r(t,"UNEXPECTED_TOKEN",u),l=Lve(e,t.offset,void 0,null,n,r),c=!1}}return o&&l.anchor===""&&r(o,"BAD_ALIAS","Anchor cannot be an empty string"),i&&(l.spaceBefore=!0),a&&(t.type==="scalar"&&t.source===""?l.comment=a:l.commentBefore=a),e.options.keepSourceTokens&&c&&(l.srcToken=t),l}function Lve(e,t,n,r,{spaceBefore:i,comment:a,anchor:o,tag:s,end:l},c){const u={type:"scalar",offset:_4r(t,n,r),indent:-1,source:""},d=jut(e,u,s,c);return o&&(d.anchor=o.source.substring(1),d.anchor===""&&c(o,"BAD_ALIAS","Anchor cannot be an empty string")),i&&(d.spaceBefore=!0),a&&(d.comment=a,d.range[2]=l),d}function E4r({options:e},{offset:t,source:n,end:r},i){const a=new bve(n.substring(1));a.source===""&&i(t,"BAD_ALIAS","Alias cannot be an empty string"),a.source.endsWith(":")&&i(t+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const o=t+n.length,s=P8(r,o,e.strict,i);return a.range=[t,o,s.offset],s.comment&&(a.comment=s.comment),a}function C4r(e,t,{offset:n,start:r,value:i,end:a},o){const s=Object.assign({_directives:t},e),l=new Ove(void 0,s),c={atRoot:!0,directives:l.directives,options:l.options,schema:l.schema},u=W3(r,{indicator:"doc-start",next:i??a?.[0],offset:n,onError:o,parentIndent:0,startOnNewline:!0});u.found&&(l.directives.docStart=!0,i&&(i.type==="block-map"||i.type==="block-seq")&&!u.hasNewline&&o(u.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),l.contents=i?zut(c,i,u,o):Lve(c,u.end,r,null,u,o);const d=l.contents.range[2],f=P8(a,d,!1,o);return f.comment&&(l.comment=f.comment),l.range=[n,d,f.offset],l}function rA(e){if(typeof e=="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];const{offset:t,source:n}=e;return[t,t+(typeof n=="string"?n.length:1)]}function qke(e){let t="",n=!1,r=!1;for(let i=0;i<e.length;++i){const a=e[i];switch(a[0]){case"#":t+=(t===""?"":r?`

`:`
`)+(a.substring(1)||" "),n=!0,r=!1;break;case"%":e[i+1]?.[0]!=="#"&&(i+=1),n=!1;break;default:n||(r=!0),n=!1}}return{comment:t,afterEmptyLine:r}}class w4r{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(n,r,i,a)=>{const o=rA(n);a?this.warnings.push(new r4r(o,r,i)):this.errors.push(new HA(o,r,i))},this.directives=new bu({version:t.version||"1.2"}),this.options=t}decorate(t,n){const{comment:r,afterEmptyLine:i}=qke(this.prelude);if(r){const a=t.contents;if(n)t.comment=t.comment?`${t.comment}
${r}`:r;else if(i||t.directives.docStart||!a)t.commentBefore=r;else if(Xs(a)&&!a.flow&&a.items.length>0){let o=a.items[0];tl(o)&&(o=o.key);const s=o.commentBefore;o.commentBefore=s?`${r}
${s}`:r}else{const o=a.commentBefore;a.commentBefore=o?`${r}
${o}`:r}}n?(Array.prototype.push.apply(t.errors,this.errors),Array.prototype.push.apply(t.warnings,this.warnings)):(t.errors=this.errors,t.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:qke(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(t,n=!1,r=-1){for(const i of t)yield*this.next(i);yield*this.end(n,r)}*next(t){switch(t.type){case"directive":this.directives.add(t.source,(n,r,i)=>{const a=rA(t);a[0]+=n,this.onError(a,"BAD_DIRECTIVE",r,i)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{const n=C4r(this.options,this.directives,t,this.onError);this.atDirectives&&!n.directives.docStart&&this.onError(t,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(n,!1),this.doc&&(yield this.doc),this.doc=n,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(t.source);break;case"error":{const n=t.source?`${t.message}: ${JSON.stringify(t.source)}`:t.message,r=new HA(rA(t),"UNEXPECTED_TOKEN",n);this.atDirectives||!this.doc?this.errors.push(r):this.doc.errors.push(r);break}case"doc-end":{if(!this.doc){const r="Unexpected doc-end without preceding document";this.errors.push(new HA(rA(t),"UNEXPECTED_TOKEN",r));break}this.doc.directives.docEnd=!0;const n=P8(t.end,t.offset+t.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),n.comment){const r=this.doc.comment;this.doc.comment=r?`${r}
${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.push(new HA(rA(t),"UNEXPECTED_TOKEN",`Unsupported token ${t.type}`))}}*end(t=!1,n=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(t){const r=Object.assign({_directives:this.directives},this.options),i=new Ove(void 0,r);this.atDirectives&&this.onError(n,"MISSING_CHAR","Missing directives-end indicator line"),i.range=[0,n,n],this.decorate(i,!1),yield i}}}const Uut="\uFEFF",Hut="",Vut="",Dle="";function x4r(e){switch(e){case Uut:return"byte-order-mark";case Hut:return"doc-mode";case Vut:return"flow-error-end";case Dle:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
`:case`\r
`:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case"	":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}function Ch(e){switch(e){case void 0:case" ":case`
`:case"\r":case"	":return!0;default:return!1}}const Wke=new Set("0123456789ABCDEFabcdef"),T4r=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),C9=new Set(",[]{}"),I4r=new Set(` ,[]{}
\r	`),Mte=e=>!e||I4r.has(e);class A4r{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(t,n=!1){if(t){if(typeof t!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+t:t,this.lineEndPos=null}this.atEnd=!n;let r=this.next??"stream";for(;r&&(n||this.hasChars(1));)r=yield*this.parseNext(r)}atLineEnd(){let t=this.pos,n=this.buffer[t];for(;n===" "||n==="	";)n=this.buffer[++t];return!n||n==="#"||n===`
`?!0:n==="\r"?this.buffer[t+1]===`
`:!1}charAt(t){return this.buffer[this.pos+t]}continueScalar(t){let n=this.buffer[t];if(this.indentNext>0){let r=0;for(;n===" ";)n=this.buffer[++r+t];if(n==="\r"){const i=this.buffer[r+t+1];if(i===`
`||!i&&!this.atEnd)return t+r+1}return n===`
`||r>=this.indentNext||!n&&!this.atEnd?t+r:-1}if(n==="-"||n==="."){const r=this.buffer.substr(t,3);if((r==="---"||r==="...")&&Ch(this.buffer[t+3]))return-1}return t}getLine(){let t=this.lineEndPos;return(typeof t!="number"||t!==-1&&t<this.pos)&&(t=this.buffer.indexOf(`
`,this.pos),this.lineEndPos=t),t===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[t-1]==="\r"&&(t-=1),this.buffer.substring(this.pos,t))}hasChars(t){return this.pos+t<=this.buffer.length}setNext(t){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=t,null}peek(t){return this.buffer.substr(this.pos,t)}*parseNext(t){switch(t){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let t=this.getLine();if(t===null)return this.setNext("stream");if(t[0]===Uut&&(yield*this.pushCount(1),t=t.substring(1)),t[0]==="%"){let n=t.length,r=t.indexOf("#");for(;r!==-1;){const a=t[r-1];if(a===" "||a==="	"){n=r-1;break}else r=t.indexOf("#",r+1)}for(;;){const a=t[n-1];if(a===" "||a==="	")n-=1;else break}const i=(yield*this.pushCount(n))+(yield*this.pushSpaces(!0));return yield*this.pushCount(t.length-i),this.pushNewline(),"stream"}if(this.atLineEnd()){const n=yield*this.pushSpaces(!0);return yield*this.pushCount(t.length-n),yield*this.pushNewline(),"stream"}return yield Hut,yield*this.parseLineStart()}*parseLineStart(){const t=this.charAt(0);if(!t&&!this.atEnd)return this.setNext("line-start");if(t==="-"||t==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const n=this.peek(3);if((n==="---"||n==="...")&&Ch(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,n==="---"?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!Ch(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[t,n]=this.peek(2);if(!n&&!this.atEnd)return this.setNext("block-start");if((t==="-"||t==="?"||t===":")&&Ch(n)){const r=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=r,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const t=this.getLine();if(t===null)return this.setNext("doc");let n=yield*this.pushIndicators();switch(t[n]){case"#":yield*this.pushCount(t.length-n);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(Mte),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return n+=yield*this.parseBlockScalarHeader(),n+=yield*this.pushSpaces(!0),yield*this.pushCount(t.length-n),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let t,n,r=-1;do t=yield*this.pushNewline(),t>0?(n=yield*this.pushSpaces(!1),this.indentValue=r=n):n=0,n+=yield*this.pushSpaces(!0);while(t+n>0);const i=this.getLine();if(i===null)return this.setNext("flow");if((r!==-1&&r<this.indentNext&&i[0]!=="#"||r===0&&(i.startsWith("---")||i.startsWith("..."))&&Ch(i[3]))&&!(r===this.indentNext-1&&this.flowLevel===1&&(i[0]==="]"||i[0]==="}")))return this.flowLevel=0,yield Vut,yield*this.parseLineStart();let a=0;for(;i[a]===",";)a+=yield*this.pushCount(1),a+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(a+=yield*this.pushIndicators(),i[a]){case void 0:return"flow";case"#":return yield*this.pushCount(i.length-a),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(Mte),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const o=this.charAt(1);if(this.flowKey||Ch(o)||o===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const t=this.charAt(0);let n=this.buffer.indexOf(t,this.pos+1);if(t==="'")for(;n!==-1&&this.buffer[n+1]==="'";)n=this.buffer.indexOf("'",n+2);else for(;n!==-1;){let a=0;for(;this.buffer[n-1-a]==="\\";)a+=1;if(a%2===0)break;n=this.buffer.indexOf('"',n+1)}const r=this.buffer.substring(0,n);let i=r.indexOf(`
`,this.pos);if(i!==-1){for(;i!==-1;){const a=this.continueScalar(i+1);if(a===-1)break;i=r.indexOf(`
`,a)}i!==-1&&(n=i-(r[i-1]==="\r"?2:1))}if(n===-1){if(!this.atEnd)return this.setNext("quoted-scalar");n=this.buffer.length}return yield*this.pushToIndex(n+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let t=this.pos;for(;;){const n=this.buffer[++t];if(n==="+")this.blockScalarKeep=!0;else if(n>"0"&&n<="9")this.blockScalarIndent=Number(n)-1;else if(n!=="-")break}return yield*this.pushUntil(n=>Ch(n)||n==="#")}*parseBlockScalar(){let t=this.pos-1,n=0,r;e:for(let a=this.pos;r=this.buffer[a];++a)switch(r){case" ":n+=1;break;case`
`:t=a,n=0;break;case"\r":{const o=this.buffer[a+1];if(!o&&!this.atEnd)return this.setNext("block-scalar");if(o===`
`)break}default:break e}if(!r&&!this.atEnd)return this.setNext("block-scalar");if(n>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=n:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{const a=this.continueScalar(t+1);if(a===-1)break;t=this.buffer.indexOf(`
`,a)}while(t!==-1);if(t===-1){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}let i=t+1;for(r=this.buffer[i];r===" ";)r=this.buffer[++i];if(r==="	"){for(;r==="	"||r===" "||r==="\r"||r===`
`;)r=this.buffer[++i];t=i-1}else if(!this.blockScalarKeep)do{let a=t-1,o=this.buffer[a];o==="\r"&&(o=this.buffer[--a]);const s=a;for(;o===" ";)o=this.buffer[--a];if(o===`
`&&a>=this.pos&&a+1+n>s)t=a;else break}while(!0);return yield Dle,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const t=this.flowLevel>0;let n=this.pos-1,r=this.pos-1,i;for(;i=this.buffer[++r];)if(i===":"){const a=this.buffer[r+1];if(Ch(a)||t&&C9.has(a))break;n=r}else if(Ch(i)){let a=this.buffer[r+1];if(i==="\r"&&(a===`
`?(r+=1,i=`
`,a=this.buffer[r+1]):n=r),a==="#"||t&&C9.has(a))break;if(i===`
`){const o=this.continueScalar(r+1);if(o===-1)break;r=Math.max(r,o-2)}}else{if(t&&C9.has(i))break;n=r}return!i&&!this.atEnd?this.setNext("plain-scalar"):(yield Dle,yield*this.pushToIndex(n+1,!0),t?"flow":"doc")}*pushCount(t){return t>0?(yield this.buffer.substr(this.pos,t),this.pos+=t,t):0}*pushToIndex(t,n){const r=this.buffer.slice(this.pos,t);return r?(yield r,this.pos+=r.length,r.length):(n&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(Mte))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const t=this.flowLevel>0,n=this.charAt(1);if(Ch(n)||t&&C9.has(n))return t?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let t=this.pos+2,n=this.buffer[t];for(;!Ch(n)&&n!==">";)n=this.buffer[++t];return yield*this.pushToIndex(n===">"?t+1:t,!1)}else{let t=this.pos+1,n=this.buffer[t];for(;n;)if(T4r.has(n))n=this.buffer[++t];else if(n==="%"&&Wke.has(this.buffer[t+1])&&Wke.has(this.buffer[t+2]))n=this.buffer[t+=3];else break;return yield*this.pushToIndex(t,!1)}}*pushNewline(){const t=this.buffer[this.pos];return t===`
`?yield*this.pushCount(1):t==="\r"&&this.charAt(1)===`
`?yield*this.pushCount(2):0}*pushSpaces(t){let n=this.pos-1,r;do r=this.buffer[++n];while(r===" "||t&&r==="	");const i=n-this.pos;return i>0&&(yield this.buffer.substr(this.pos,i),this.pos=n),i}*pushUntil(t){let n=this.pos,r=this.buffer[n];for(;!t(r);)r=this.buffer[++n];return yield*this.pushToIndex(n,!1)}}class R4r{constructor(){this.lineStarts=[],this.addNewLine=t=>this.lineStarts.push(t),this.linePos=t=>{let n=0,r=this.lineStarts.length;for(;n<r;){const a=n+r>>1;this.lineStarts[a]<t?n=a+1:r=a}if(this.lineStarts[n]===t)return{line:n+1,col:1};if(n===0)return{line:0,col:t};const i=this.lineStarts[n-1];return{line:n,col:t-i+1}}}}function RS(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function Yke(e){for(let t=0;t<e.length;++t)switch(e[t].type){case"space":case"comment":case"newline":break;default:return t}return-1}function Gut(e){switch(e?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function w9(e){switch(e.type){case"document":return e.start;case"block-map":{const t=e.items[e.items.length-1];return t.sep??t.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function fx(e){if(e.length===0)return[];let t=e.length;e:for(;--t>=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;e[++t]?.type==="space";);return e.splice(t,e.length)}function Kke(e){if(e.start.type==="flow-seq-start")for(const t of e.items)t.sep&&!t.value&&!RS(t.start,"explicit-key-ind")&&!RS(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,Gut(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}class N4r{constructor(t){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new A4r,this.onNewLine=t}*parse(t,n=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const r of this.lexer.lex(t,n))yield*this.next(r);n||(yield*this.end())}*next(t){if(this.source=t,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=t.length;return}const n=x4r(t);if(n)if(n==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=n,yield*this.step(),n){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+t.length);break;case"space":this.atNewLine&&t[0]===" "&&(this.indent+=t.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=t.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=t.length}else{const r=`Not a YAML token: ${t}`;yield*this.pop({type:"error",offset:this.offset,message:r,source:t}),this.offset+=t.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const t=this.peek(1);if(this.type==="doc-end"&&(!t||t.type!=="doc-end")){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!t)return yield*this.stream();switch(t.type){case"document":return yield*this.document(t);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(t);case"block-scalar":return yield*this.blockScalar(t);case"block-map":return yield*this.blockMap(t);case"block-seq":return yield*this.blockSequence(t);case"flow-collection":return yield*this.flowCollection(t);case"doc-end":return yield*this.documentEnd(t)}yield*this.pop()}peek(t){return this.stack[this.stack.length-t]}*pop(t){const n=t??this.stack.pop();if(!n)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield n;else{const r=this.peek(1);switch(n.type==="block-scalar"?n.indent="indent"in r?r.indent:0:n.type==="flow-collection"&&r.type==="document"&&(n.indent=0),n.type==="flow-collection"&&Kke(n),r.type){case"document":r.value=n;break;case"block-scalar":r.props.push(n);break;case"block-map":{const i=r.items[r.items.length-1];if(i.value){r.items.push({start:[],key:n,sep:[]}),this.onKeyLine=!0;return}else if(i.sep)i.value=n;else{Object.assign(i,{key:n,sep:[]}),this.onKeyLine=!i.explicitKey;return}break}case"block-seq":{const i=r.items[r.items.length-1];i.value?r.items.push({start:[],value:n}):i.value=n;break}case"flow-collection":{const i=r.items[r.items.length-1];!i||i.value?r.items.push({start:[],key:n,sep:[]}):i.sep?i.value=n:Object.assign(i,{key:n,sep:[]});return}default:yield*this.pop(),yield*this.pop(n)}if((r.type==="document"||r.type==="block-map"||r.type==="block-seq")&&(n.type==="block-map"||n.type==="block-seq")){const i=n.items[n.items.length-1];i&&!i.sep&&!i.value&&i.start.length>0&&Yke(i.start)===-1&&(n.indent===0||i.start.every(a=>a.type!=="comment"||a.indent<n.indent))&&(r.type==="document"?r.end=i.start:r.items.push({start:i.start}),n.items.splice(-1,1))}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{const t={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&t.start.push(this.sourceToken),this.stack.push(t);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(t){if(t.value)return yield*this.lineEnd(t);switch(this.type){case"doc-start":{Yke(t.start)!==-1?(yield*this.pop(),yield*this.step()):t.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":t.start.push(this.sourceToken);return}const n=this.startBlockValue(t);n?this.stack.push(n):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(t){if(this.type==="map-value-ind"){const n=w9(this.peek(2)),r=fx(n);let i;t.end?(i=t.end,i.push(this.sourceToken),delete t.end):i=[this.sourceToken];const a={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:r,key:t,sep:i}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=a}else yield*this.lineEnd(t)}*blockScalar(t){switch(this.type){case"space":case"comment":case"newline":t.props.push(this.sourceToken);return;case"scalar":if(t.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let n=this.source.indexOf(`
`)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
`,n)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(t){const n=t.items[t.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,n.value){const r="end"in n.value?n.value.end:void 0;(Array.isArray(r)?r[r.length-1]:void 0)?.type==="comment"?r?.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else if(n.sep)n.sep.push(this.sourceToken);else{if(this.atIndentedComment(n.start,t.indent)){const i=t.items[t.items.length-2]?.value?.end;if(Array.isArray(i)){Array.prototype.push.apply(i,n.start),i.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return}if(this.indent>=t.indent){const r=!this.onKeyLine&&this.indent===t.indent,i=r&&(n.sep||n.explicitKey)&&this.type!=="seq-item-ind";let a=[];if(i&&n.sep&&!n.value){const o=[];for(let s=0;s<n.sep.length;++s){const l=n.sep[s];switch(l.type){case"newline":o.push(s);break;case"space":break;case"comment":l.indent>t.indent&&(o.length=0);break;default:o.length=0}}o.length>=2&&(a=n.sep.splice(o[1]))}switch(this.type){case"anchor":case"tag":i||n.value?(a.push(this.sourceToken),t.items.push({start:a}),this.onKeyLine=!0):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"explicit-key-ind":!n.sep&&!n.explicitKey?(n.start.push(this.sourceToken),n.explicitKey=!0):i||n.value?(a.push(this.sourceToken),t.items.push({start:a,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(n.explicitKey)if(n.sep)if(n.value)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if(RS(n.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:a,key:null,sep:[this.sourceToken]}]});else if(Gut(n.key)&&!RS(n.sep,"newline")){const o=fx(n.start),s=n.key,l=n.sep;l.push(this.sourceToken),delete n.key,delete n.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:s,sep:l}]})}else a.length>0?n.sep=n.sep.concat(a,this.sourceToken):n.sep.push(this.sourceToken);else if(RS(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{const o=fx(n.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:null,sep:[this.sourceToken]}]})}else n.sep?n.value||i?t.items.push({start:a,key:null,sep:[this.sourceToken]}):RS(n.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const o=this.flowScalar(this.type);i||n.value?(t.items.push({start:a,key:o,sep:[]}),this.onKeyLine=!0):n.sep?this.stack.push(o):(Object.assign(n,{key:o,sep:[]}),this.onKeyLine=!0);return}default:{const o=this.startBlockValue(t);if(o){r&&o.type!=="block-seq"&&t.items.push({start:a}),this.stack.push(o);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(t){const n=t.items[t.items.length-1];switch(this.type){case"newline":if(n.value){const r="end"in n.value?n.value.end:void 0;(Array.isArray(r)?r[r.length-1]:void 0)?.type==="comment"?r?.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(n.start,t.indent)){const i=t.items[t.items.length-2]?.value?.end;if(Array.isArray(i)){Array.prototype.push.apply(i,n.start),i.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return;case"anchor":case"tag":if(n.value||this.indent<=t.indent)break;n.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==t.indent)break;n.value||RS(n.start,"seq-item-ind")?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return}if(this.indent>t.indent){const r=this.startBlockValue(t);if(r){this.stack.push(r);return}}yield*this.pop(),yield*this.step()}*flowCollection(t){const n=t.items[t.items.length-1];if(this.type==="flow-error-end"){let r;do yield*this.pop(),r=this.peek(1);while(r&&r.type==="flow-collection")}else if(t.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!n||n.sep?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return;case"map-value-ind":!n||n.value?t.items.push({start:[],key:null,sep:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!n||n.value?t.items.push({start:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const i=this.flowScalar(this.type);!n||n.value?t.items.push({start:[],key:i,sep:[]}):n.sep?this.stack.push(i):Object.assign(n,{key:i,sep:[]});return}case"flow-map-end":case"flow-seq-end":t.end.push(this.sourceToken);return}const r=this.startBlockValue(t);r?this.stack.push(r):(yield*this.pop(),yield*this.step())}else{const r=this.peek(2);if(r.type==="block-map"&&(this.type==="map-value-ind"&&r.indent===t.indent||this.type==="newline"&&!r.items[r.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&r.type!=="flow-collection"){const i=w9(r),a=fx(i);Kke(t);const o=t.end.splice(1,t.end.length);o.push(this.sourceToken);const s={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:a,key:t,sep:o}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=s}else yield*this.lineEnd(t)}}flowScalar(t){if(this.onNewLine){let n=this.source.indexOf(`
`)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
`,n)+1}return{type:t,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(t){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const n=w9(t),r=fx(n);return r.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const n=w9(t),r=fx(n);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(t,n){return this.type!=="comment"||this.indent<=n?!1:t.every(r=>r.type==="newline"||r.type==="space")}*documentEnd(t){this.type!=="doc-mode"&&(t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(t){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function O4r(e){const t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new R4r||null,prettyErrors:t}}function qut(e,t={}){const{lineCounter:n,prettyErrors:r}=O4r(t),i=new N4r(n?.addNewLine),a=new w4r(t);let o=null;for(const s of a.compose(i.parse(e),!0,e.length))if(!o)o=s;else if(o.options.logLevel!=="silent"){o.errors.push(new HA(s.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return r&&n&&(o.errors.forEach(Vke(e,n)),o.warnings.forEach(Vke(e,n))),o}function L4r(e,t,n){let r=null;if(typeof t=="function"||Array.isArray(t)?r=t:n===void 0&&t&&(n=t),typeof n=="string"&&(n=n.length),typeof n=="number"){const i=Math.round(n);n=i<1?void 0:i>8?{indent:8}:{indent:i}}if(e===void 0){const{keepUndefined:i}=n??t??{};if(!i)return}return new Ove(e,r,n).toString(n)}const P4r={new_line:`
`,tab:"	",double_quote:'"',carriage_return:"\r"},k4r=e=>Object.entries(P4r).reduce((t,[n,r])=>t.replace(new RegExp(`\\{${n}\\}`,"g"),r),e),$le=e=>{e instanceof xu?e.items.forEach(t=>{if(t.key.value==="prompt"&&typeof t.value.value=="string"){const n=t;n.value.value=k4r(t.value.value)}else(t.value instanceof xu||t.value instanceof _m)&&$le(t.value)}):e instanceof _m&&e.items.forEach(t=>{$le(t)})},Wut=e=>e.split(":").map(t=>t.trim()),Yut=(e,t,n)=>e.items.findIndex(i=>i instanceof xu&&i.get(t)===n),Fle=(e,t)=>{if(t.length===0)return e;const[n,...r]=t;if(n.includes(":")){const[o,s]=Wut(n);if(!(e instanceof _m))return null;const l=Yut(e,o,s);return l===-1?null:r.length===0?e.items[l]:Fle(e.items[l],r)}const a=e.get(n);return!a||r.length===0?a:Fle(a,r)},Ble=(e,t,n)=>{if(t.length===0)return n;const[r,...i]=t,a=r.includes(":"),o=e;if(a){const[s,l]=Wut(r);if(!(o instanceof _m))throw new Error(`Expected a sequence for the key '${s}', but got ${typeof o}`);const c=Yut(o,s,l);if(c===-1)throw new Error(`No element with '${s}: ${l}' found in sequence`);return o.items[c]=Ble(o.items[c],i,n),o}if(i.length===0)o.set(r,n);else{const s=o.get(r);if(!s)throw new Error(`Key '${r}' not found.`);o.set(r,Ble(s,i,n))}return o},Kut=(e,t,n,r={convertHaystackSpecialCharacters:!1})=>{const i=qut(e);if(!i.contents)throw new Error("Failed to parse YAML content.");if(r.convertHaystackSpecialCharacters&&$le(i.contents),!Ble(i.contents,t,n))throw new Error(`Path "${t.join(" -> ")}" not found in YAML.`);return L4r(i,{indent:2,blockQuote:"literal",lineWidth:0})},M4r=(e,t)=>{const n=qut(e);if(!n.contents)return null;const r=Fle(n.contents,t);return r?r.toString():null},Pve=(e,t=er())=>{const n={...e?.limit&&{limit:e.limit},...e?.pageNumber&&{page_number:e.pageNumber},...e?.field&&{field:e.field},...e?.order&&{order:e.order},...e?.select&&{select:e.select},...e?.filter&&{filter:e.filter}};return rn.get(`/api/v1/workspaces/${t}/prompt_templates`,{params:n})},D4r=(e,t=er())=>rn.post(`/api/v1/workspaces/${t}/prompt_templates`,e),$4r=(e,t,n=er())=>rn.put(`/api/v1/workspaces/${n}/prompt_templates/${e}`,t),F4r=(e,t=er())=>rn.delete(`/api/v1/workspaces/${t}/prompt_templates/${e}`),Xut=e=>{const t={...e?.limit&&{limit:e.limit},...e?.pageNumber&&{page_number:e.pageNumber},...e?.field&&{field:e.field},...e?.order&&{order:e.order},...e?.select&&{select:e.select},...e?.filter&&{filter:e.filter}};return rn.get("/api/v1/public_prompt_templates",{params:t})},kve=async(e,t=Pve,n=er())=>{const{data:{data:r,has_more:i}}=await t(e,n);if(!i)return r;const a=e?.pageNumber?e.pageNumber+1:2,o={...e,pageNumber:a};return[...r,...await kve(o,t,n)]},Zut=e=>({type:$Ke,payload:e}),Xke=Ut(Sae,async(e={},{rejectWithValue:t,getState:n,dispatch:r})=>{const{sortValue:i,filterValues:a,searchValue:o,...s}=e,{promptTemplatesSortValue:l}=n().promptExplorerStore,c=i||l;r(Zut(c));const{field:u,order:d}=nQe[c]||{},f=a&&Im(a),p=o&&b0("name",o),h=p?`${f?`${f} and `:""}${p}`:f,m={...s,field:u,order:d,filter:h};try{const{data:g}=await Pve(m);return g}catch(g){return t(g)}}),B4r=Ut(K7,async(e,{rejectWithValue:t})=>{try{return await D4r(e)}catch(n){return t(n)}}),j4r=Ut(X7,async(e,{rejectWithValue:t})=>{try{const{prompt_template_id:n,...r}=e;return await $4r(n,r)}catch(n){return t(n)}}),z4r=Ut(Z7,async(e,{rejectWithValue:t})=>{try{return await F4r(e)}catch(n){return t(n)}}),U4r=Ut(Eae,async(e={},{rejectWithValue:t,getState:n,dispatch:r})=>{const{sortValue:i,filterValues:a,searchValue:o,...s}=e,{promptTemplatesSortValue:l}=n().promptExplorerStore,c=i||l;r(Zut(c));const{field:u,order:d}=nQe[c]||{},f=a&&Im(a),p=o&&b0("name",o),h=p?`${f?`${f} and `:""}${p}`:f,m={...s,field:u,order:d,filter:h};try{const{data:g}=await Xut(m);return g}catch(g){return t(g)}}),Zke=Ut(FKe,async({promptTemplateModalActiveTab:e},{rejectWithValue:t})=>{const n=e===vf.CUSTOM?Pve:Xut,r={select:"tags/name, tags/tag_id"};try{return await kve(r,n)}catch(i){return t(i)}}),H4r=Ut(BKe,async(e,{rejectWithValue:t})=>{const n={select:"user/user_id, user/given_name, user/family_name"};try{return await kve(n)}catch(r){return t(r)}}),V4r=Ut(vR,async({pipelineName:e,templateName:t,prompt:n},{rejectWithValue:r,dispatch:i})=>{try{i(vp({content:eQe,type:yn.Loading,mode:x1.Message,duration:0}));const{data:a}=await o8(e),{yaml:o}=a,s=["components",`name: ${t}`],l=[...s,"params","prompt"];if(!M4r(o,s))return i(vp({content:jwe,type:yn.Error})),r(jwe);const u=Kut(o,l,n,{convertHaystackSpecialCharacters:!0});return await khe(e,u),i(vp({content:tQe,type:yn.Success})),u}catch(a){return i(vp({content:Wn(a),type:yn.Error})),r(a)}}),G4r=Ut(vR,async({pipelineName:e,promptNode:t,prompt:n},{rejectWithValue:r,dispatch:i})=>{try{i(vp({content:eQe,type:yn.Loading,mode:x1.Message,duration:0}));const{data:a}=await o8(e),{query_yaml:o,indexing_yaml:s}=a,u=Kut(o,[...["components",t],"init_parameters","template"],n);return await khe(e,{query_yaml:u,indexing_yaml:s}),i(vp({content:tQe,type:yn.Success})),u}catch(a){return i(vp({content:Wn(a),type:yn.Error})),r(a)}}),BC=e=>e.promptExplorerStore,q4r=It(BC,e=>e.promptTemplates),W4r=It(BC,e=>e.promptTemplatesStatus),Y4r=It(BC,e=>e.createPromptTemplateStatus),K4r=It(BC,e=>e.updatePromptTemplateStatus),X4r=It(BC,e=>e.updatePipelinePromptStatus),Z4r=It(BC,e=>e.promptTemplatesSortValue),Q4r=It(BC,e=>e.filtersValues),J4r="_zeroHeightContainer_wfe7a_13",eIr="_withGreyBackground_wfe7a_17",tIr="_withSupportTextColor_wfe7a_21",nIr="_promptTemplatesModal_wfe7a_25",rIr="_promptTemplatesModal_header_wfe7a_42",iIr="_promptTemplatesModal_actionsBar_wfe7a_55",aIr="_promptTemplatesModal_appliedFiltersBar_wfe7a_59",oIr="_promptTemplatesModal_body_wfe7a_63",sIr="_promptTemplatesModal_body_templateList_wfe7a_72",lIr="_promptTemplatesModal_body_selectedTemplate_wfe7a_76",cIr="_actionsBar_wfe7a_80",uIr="_templateListItem_wfe7a_84",dIr="_templateListItem_active_wfe7a_89",fIr="_templateListItem_button_active_wfe7a_93",pIr="_templateListItem_avatar_wfe7a_101",hIr="_templateListItem_title_wfe7a_104",mIr="_templateListItem_description_wfe7a_107",gIr="_templateListItem_tags_wfe7a_111",vIr="_templateSkeletonItem_wfe7a_121",yIr="_templateItem_wfe7a_131",bIr="_templateItem_headerWrapper_wfe7a_136",_Ir="_templateItem_title_wfe7a_141",SIr="_templateItem_user_wfe7a_144",EIr="_templateItem_user_name_wfe7a_155",CIr="_templateItem_description_wfe7a_160",wIr="_templateItem_prompt_wfe7a_164",xIr="_templateItem_tags_wfe7a_167",TIr="_templateItem_buttonsWrapper_wfe7a_182",IIr="_formTemplateItem_wfe7a_187",AIr="_formTemplateItem_popconfirm_title_wfe7a_201",RIr="_formTemplateItem_tags_wfe7a_204",NIr="_formTemplateItem_tags_label_wfe7a_213",OIr="_formTemplateItem_disclaimer_wfe7a_217",Wi={zeroHeightContainer:J4r,withGreyBackground:eIr,withSupportTextColor:tIr,promptTemplatesModal:nIr,promptTemplatesModal_header:rIr,promptTemplatesModal_actionsBar:iIr,promptTemplatesModal_appliedFiltersBar:aIr,promptTemplatesModal_body:oIr,promptTemplatesModal_body_templateList:sIr,promptTemplatesModal_body_selectedTemplate:lIr,actionsBar:cIr,templateListItem:uIr,templateListItem_active:dIr,templateListItem_button_active:fIr,templateListItem_avatar:pIr,templateListItem_title:hIr,templateListItem_description:mIr,templateListItem_tags:gIr,templateSkeletonItem:vIr,templateItem:yIr,templateItem_headerWrapper:bIr,templateItem_title:_Ir,templateItem_user:SIr,templateItem_user_name:EIr,templateItem_description:CIr,templateItem_prompt:wIr,templateItem_tags:xIr,templateItem_buttonsWrapper:TIr,formTemplateItem:IIr,formTemplateItem_popconfirm_title:AIr,formTemplateItem_tags:RIr,formTemplateItem_tags_label:NIr,formTemplateItem_disclaimer:OIr},{Item:iA}=Hr,{TextArea:LIr}=$r,Qke=se.lazy(()=>Io(()=>import("./PromptEditor.BJjGiR8V.js"),__vite__mapDeps([15,3,4,16]))),PIr=5,px="custom-template-item",Jke=[{label:A0n,key:vf.CUSTOM},{label:R0n,key:vf.DEEPSET}],kIr=b.forwardRef(({promptTemplates:e,activeTab:t,open:n,templateListHasMore:r,loadingTemplates:i,selectedSortingValue:a,filters:o,selectedFilterValues:s,isV2:l,onCancel:c,onUsePromptClick:u,onTabChange:d,onCreateNewCustomPrompt:f,onUpdateCustomPromptValues:p,onDeleteCustomPrompt:h,fetchMoreTemplates:m,onSortSelectChange:g,onFilterSelectChange:v,onClearAllFilters:y,onSearch:_},S)=>{const[C,w]=b.useState(px),[x,T]=b.useState({name:"",description:"",tags:[],text:""}),[A,I]=b.useState(!1),R=t===vf.CUSTOM;b.useImperativeHandle(S,()=>({createCustomTemplateFromPrompt(ue){w(px),T({name:"",description:"",tags:[],text:ue})}}),[]),b.useEffect(()=>{e.length&&w(e[0]?.prompt_template_id)},[e]);const N=ue=>e.find(de=>de.prompt_template_id===ue),P=ue=>{I(!1),w(ue)},L=ue=>{I(!1),d(ue)},$=()=>{const ue=N(C);ue&&(u(ue),c())},D=()=>{I(!1),T({name:"",description:"",tags:[],text:""})},z=()=>{D(),A?p({...x,prompt_template_id:C}):f(x)},U=ue=>{const{name:de,description:fe,text:ge,tags:oe}=ue;I(!0),T({name:de,description:fe,tags:oe,text:ge})},H=(ue,de)=>{T(fe=>({...fe,[ue]:de}))},M=()=>{const{name:ue}=x;return!!ue},B=ue=>{const{tags:de}=x,fe=de.filter(ge=>ge!==ue);T({...x,tags:fe})},k=(ue,de)=>`${ue[0]}${de[0]||""}`,F=ue=>{const de=ue.split("/");if(de.length<2)return ue;const[fe,...ge]=de;return E.jsxs(E.Fragment,{children:[E.jsx("span",{className:Wi.withSupportTextColor,children:fe}),"/",ge.join()]})},G=()=>l?Jke.filter(ue=>ue.key!==vf.DEEPSET):Jke,q=()=>E.jsx("div",{className:Wi.actionsBar,children:E.jsx($U,{searchAvailable:!0,searchPlaceholder:Z0n,filters:o,filterValues:s,onSearch:_,onFilterSelectChange:v,onSortSelectChange:g,sorting:{selectedValue:a,options:Y0n}})}),W=()=>E.jsx("div",{className:Wi.templateSkeletonItem,children:E.jsx(Ff,{avatar:!0,title:!0,paragraph:{rows:3},active:!0})},ps()),K=({prompt_template_id:ue,name:de,description:fe,tags:ge,user:{given_name:oe,family_name:Ee}})=>{const ce=ue===C;return E.jsxs("div",{className:`${Wi.templateListItem} ${ce?Wi.templateListItem_active:""}`,tabIndex:0,role:"button",onClick:()=>P(ue),"aria-hidden":"true",children:[E.jsx("div",{className:Wi.templateListItem_avatar,children:E.jsx(vr,{title:`${oe} ${Ee}`,children:E.jsx(Mp,{children:k(oe,Ee)})})}),E.jsxs("div",{children:[E.jsx("h6",{className:Wi.templateListItem_title,children:F(de)}),E.jsx("div",{className:Wi.templateListItem_description,children:fe}),E.jsx("div",{className:Wi.templateListItem_tags,children:ge.map(he=>E.jsx(Si,{children:he},he))})]})]},ue)},J=()=>{const ue=!e.length||C===px;return E.jsx("div",{className:`${Wi.templateListItem} ${Wi.withGreyBackground} ${ue?Wi.templateListItem_active:""}`,children:E.jsx(ut,{block:!0,icon:E.jsx(Td,{}),type:ue?"dashed":"default",className:ue?Wi.templateListItem_button_active:"",onClick:()=>P(px),children:I0n})},px)},te=()=>{const ue=N(C);if(!ue)return null;const de=[{key:jKe.DELETE,label:E.jsx(fm,{title:F0n,placement:"right",okText:Aae,cancelText:Rae,onConfirm:()=>{h(C)},children:$Xe}),danger:!0,icon:E.jsx(m0,{})}],{name:fe,description:ge,text:oe,tags:Ee,user:{given_name:ce,family_name:he}}=ue;return E.jsxs("div",{className:Wi.templateItem,children:[E.jsxs("div",{className:Wi.templateItem_headerWrapper,children:[E.jsx("h6",{className:Wi.templateItem_title,children:F(fe)}),R&&E.jsx(Vo,{menu:{items:de},placement:"bottomRight",trigger:["click"],children:E.jsx(ut,{type:"text",icon:E.jsx(Xb,{}),onClick:ye=>ye.preventDefault()})})]}),E.jsxs("div",{className:Wi.templateItem_user,children:[E.jsx(Mp,{size:16,children:k(ce,he)}),E.jsxs("div",{className:Wi.templateItem_user_name,children:[ce," ",he]})]}),E.jsx("div",{className:Wi.templateItem_description,children:ge}),E.jsx("div",{className:Wi.templateItem_prompt,children:E.jsx(se.Suspense,{fallback:E.jsx($o,{}),children:E.jsx(Qke,{prompt:oe,readOnly:!0,showLineNumbers:!1,showHeader:!1,showCopyPromptButton:!0})})}),Ee.length>0&&E.jsxs("div",{className:Wi.templateItem_tags,children:[zwe,":",Ee.map(ye=>E.jsx(Si,{children:ye},ye))]}),E.jsxs("div",{className:Wi.templateItem_buttonsWrapper,children:[R&&E.jsx(ut,{type:"default",onClick:()=>U(ue),children:T0n}),E.jsx(ut,{type:"primary",onClick:$,children:x0n})]})]})},ae=()=>{const{name:ue,description:de,text:fe,tags:ge}=x;return E.jsx("div",{className:Wi.formTemplateItem,children:E.jsxs(Hr,{layout:"vertical",children:[E.jsx(iA,{label:N0n,required:!0,children:E.jsx($r,{value:ue,onChange:oe=>H("name",oe.target.value),placeholder:O0n})}),E.jsx(iA,{children:E.jsx(LIr,{rows:2,value:de,onChange:oe=>H("description",oe.target.value),placeholder:L0n,allowClear:!0})}),E.jsxs(iA,{className:Wi.formTemplateItem_tags,children:[E.jsxs("div",{className:Wi.formTemplateItem_tags_label,children:[zwe,":"]}),E.jsx(Wct,{onConfirm:oe=>{const Ee=[oe,...ge];H("tags",Ee)}}),ge.map(oe=>E.jsx(Si,{className:Wi.formTemplateItem_tags_tag,closable:!0,onClose:Ee=>{Ee.preventDefault(),B(oe)},children:oe},oe))]}),E.jsxs(iA,{children:[E.jsx(se.Suspense,{fallback:E.jsx($o,{}),children:E.jsx(Qke,{placeholder:P0n,prompt:fe,onChange:oe=>H("text",oe),showHeader:!1})}),E.jsx("span",{className:Wi.formTemplateItem_disclaimer,children:k0n})]}),E.jsxs(iA,{children:[E.jsx(fm,{title:E.jsx("div",{className:Wi.formTemplateItem_popconfirm_title,children:$0n}),onConfirm:D,okText:Aae,cancelText:Rae,children:E.jsx(ut,{children:gm})}),E.jsx(ut,{type:"primary",onClick:z,disabled:!M(),children:A?D0n:M0n})]})]})})},re=C===px||A;return E.jsxs(wi,{title:w0n,className:Wi.promptTemplatesModal,open:n,centered:!0,onCancel:c,footer:null,children:[E.jsx("div",{className:Wi.promptTemplatesModal_header,children:E.jsx(Lu,{activeKey:t,items:G(),onChange:L})}),E.jsx("div",{className:Wi.promptTemplatesModal_actionsBar,children:q()}),E.jsx("div",{className:Wi.promptTemplatesModal_appliedFiltersBar,children:E.jsx(DU,{filterValues:s,onClearAllFilters:y,onFilterSelectChange:v})}),E.jsxs("div",{className:Wi.promptTemplatesModal_body,children:[E.jsx("div",{id:"templateListDiv",className:Wi.promptTemplatesModal_body_templateList,children:E.jsx("div",{className:Wi.zeroHeightContainer,children:i?Array.from({length:PIr}).map(W):E.jsxs(E.Fragment,{children:[R&&vf.CUSTOM&&J(),E.jsx(cU,{dataLength:e.length,next:m,loader:W(),hasMore:r,scrollableTarget:"templateListDiv",children:e.map(K)})]})})}),E.jsx(zi,{type:"vertical"}),E.jsx("div",{className:Wi.promptTemplatesModal_body_selectedTemplate,children:re?ae():te()})]})]})}),MIr="_description_7k4uf_13",DIr="_description_header_7k4uf_16",$Ir="_description_header_title_7k4uf_19",FIr="_description_header_subtitle_7k4uf_22",BIr="_description_option_7k4uf_25",jIr="_description_option_icon_7k4uf_32",zIr="_description_option_textWrapper_title_7k4uf_37",UIr="_description_option_textWrapper_subtitle_7k4uf_40",fg={description:MIr,description_header:DIr,description_header_title:$Ir,description_header_subtitle:FIr,description_option:BIr,description_option_icon:jIr,description_option_textWrapper_title:zIr,description_option_textWrapper_subtitle:UIr},HIr=({options:e,title:t,subtitle:n})=>E.jsxs("div",{className:fg.description,children:[E.jsxs("div",{className:fg.description_header,children:[E.jsx("h3",{className:fg.description_header_title,children:t}),E.jsx("div",{className:fg.description_header_subtitle,children:n})]}),E.jsx("div",{className:fg.description_options,children:e.map(({title:r,description:i,icon:a})=>E.jsxs("div",{className:fg.description_option,children:[E.jsx("div",{className:fg.description_option_icon,children:a}),E.jsxs("div",{className:fg.description_option_textWrapper,children:[E.jsx("h6",{className:fg.description_option_textWrapper_title,children:r}),E.jsx("div",{className:fg.description_option_textWrapper_subtitle,children:i})]})]},r))})]}),VIr="_flexCenterWrapper_sws0x_13",GIr="_descriptionMessage_sws0x_13",qIr="_zeroHeightContainer_sws0x_21",WIr="_promptEditor_sws0x_25",YIr="_promptEditor_header_sws0x_30",KIr="_promptEditor_header_wrapper_sws0x_39",XIr="_promptEditor_header_icon_sws0x_43",ZIr="_promptEditor_header_title_sws0x_47",QIr="_promptEditor_header_empty_sws0x_51",JIr="_promptEditor_editor_sws0x_54",eAr="_pipelinePlayground_sws0x_60",tAr="_pipelinePlayground_pipelineActionsBar_wrapper_sws0x_65",nAr="_pipelinePlayground_searchResults_wrapper_sws0x_69",rAr="_pipelinePlayground_searchResults_wrapper_expanded_sws0x_74",iAr="_pipelinePlayground_promptEditor_wrapper_sws0x_78",aAr="_pipelinePlayground_promptEditor_wrapper_expanded_sws0x_84",oAr="_pipelinePlayground_searchResults_paddingContainer_sws0x_90",sAr="_pipelineActionsBar_sws0x_101",lAr="_pipelineActionsBar_select_sws0x_106",cAr="_pipelineActionsBar_buttonsWrapper_sws0x_112",wl={flexCenterWrapper:VIr,descriptionMessage:GIr,zeroHeightContainer:qIr,promptEditor:WIr,promptEditor_header:YIr,promptEditor_header_wrapper:KIr,promptEditor_header_icon:XIr,promptEditor_header_title:ZIr,promptEditor_header_empty:QIr,promptEditor_editor:JIr,pipelinePlayground:eAr,pipelinePlayground_pipelineActionsBar_wrapper:tAr,pipelinePlayground_searchResults_wrapper:nAr,pipelinePlayground_searchResults_wrapper_expanded:rAr,pipelinePlayground_promptEditor_wrapper:iAr,pipelinePlayground_promptEditor_wrapper_expanded:aAr,pipelinePlayground_searchResults_paddingContainer:oAr,pipelineActionsBar:sAr,pipelineActionsBar_select:lAr,pipelineActionsBar_buttonsWrapper:cAr},uAr=({pipeline:e,pipelineName:t,prompts:n,selectedPromptNode:r,onUpdatePipelinePrompt:i})=>{const[a,o]=wi.useModal(),s=b.useRef(null),l=st(X4r),c=l===Me.IN_PROGRESS;b.useEffect(()=>{Object.keys(n).length>0&&s.current===null&&(s.current=n)},[n]),so(()=>{(l===Me.SUCCESS||t)&&(s.current=n)},[l,t]);const u=()=>{if(!s.current||!Object.keys(n).length)return!1;const h=s.current[r]?.text,m=n[r]?.text;return h!==m};return{modalContextHolder:o,getUpdatePipelinePromptTooltipText:()=>!e||!u()?SW.NO_CHANGES:e.service_level===Li.PRODUCTION?Pn(SW.PRODUCTION_PIPELINE,{pipelinePage:E.jsx(Jg,{to:`/pipelines/${t}`,target:"_blank",rel:"noopener noreferrer",children:S0n})}):Pn(SW.UPDATE_PIPELINE_NODE,{node:r}),isUpdatePipelineButtonDisabled:()=>!e||e.service_level===Li.PRODUCTION||!u()||c||!n[r]?.text,onUpdatePipelinePromptClick:()=>a.confirm({title:E0n,content:C0n,okText:MXe,cancelText:gm,onOk:()=>{wi.destroyAll(),i()},onCancel:()=>{wi.destroyAll()}})}},dAr=se.lazy(()=>Io(()=>import("./PromptEditor.BJjGiR8V.js"),__vite__mapDeps([15,3,4,16]))),fAr=({displayPipelineActionsBar:e,playground:t,totalPlaygrounds:n,pipeline:r,pipelinesOptions:i,search:a,options:o,promptEditorContainerExpanded:s,promptEditorHeight:l,activeFilters:c,onExpandShrinkPromptEditorContainer:u,onPromptEditorValueChange:d,onPromptEditorPromptNodeChange:f,onSelectPipeline:p,onAddNewPipeline:h,onRemovePipeline:m,onDisplayFilters:g,onStartNewSession:v,onClearChat:y,onTemplatesLinkClick:_,onRepeatQueryOptionClick:S,onSaveQueryPromptTemplateOptionClick:C,onPromptEditorResize:w,onUpdatePipelinePrompt:x})=>{const{pipelineName:T,id:A,prompts:I,selectedPromptNode:R}=t,{results:N,status:P,query:L,searching:$,displayTypingEffect:D}=a,{displayRemovePipelineButton:z,renderDescription:U,displayHeader:H,displayExpandShrinkButton:M}=o,B=P===Me.IN_PROGRESS,k=b.useRef(null);itt(k,[N,$]),so(()=>{if(!N?.length)return;N[N.length-1].infoMessage&&k.current?.scrollTo({top:k.current?.scrollHeight,behavior:"smooth"})},[N]);const{modalContextHolder:F,isUpdatePipelineButtonDisabled:G,getUpdatePipelinePromptTooltipText:q,onUpdatePipelinePromptClick:W}=uAr({pipeline:r,prompts:I,pipelineName:T,selectedPromptNode:R,onUpdatePipelinePrompt:()=>x(A)}),{getFeedbackTags:K,resetFeedbackData:J}=Sv();b.useEffect(()=>{J()},[]),b.useEffect(()=>{r?.pipeline_id&&K({pipelineId:r.pipeline_id})},[r?.pipeline_id]);const te=({key:de})=>{de==="newSession"&&v(A),de==="clearChat"&&y(A)},ae=()=>{const de=b0n===n,fe=!!r,ge=!de&&fe,oe=[{key:"clearChat",label:G0n,icon:E.jsx(h$,{})}];return E.jsxs("div",{className:wl.pipelineActionsBar,children:[E.jsx(Zi,{defaultValue:T||null,disabled:B,onChange:Ee=>p({pipelineName:Ee,playgroundId:A}),options:i,placeholder:V0n,className:wl.pipelineActionsBar_select,popupMatchSelectWidth:!1}),E.jsxs("div",{className:wl.pipelineActionsBar_buttonsWrapper,children:[fe&&E.jsx(EC,{dot:c,children:E.jsx(ut,{icon:E.jsx(yj,{}),onClick:()=>g(A)})}),z&&E.jsx(ut,{icon:E.jsx(gSt,{}),onClick:()=>m(A)}),ge&&E.jsx(ut,{icon:E.jsx(HSt,{}),onClick:()=>h(A,T),children:n===1?B0n:""}),fe&&E.jsx(Vo,{menu:{items:oe,onClick:te},trigger:["click"],children:E.jsx(ut,{onClick:Ee=>Ee.preventDefault(),icon:E.jsx(Xb,{})})})]})]})},re=()=>U?E.jsx("div",{className:wl.descriptionMessage,children:E.jsx(HIr,{title:z0n,subtitle:U0n,options:H0n})}):null,ue=()=>E.jsxs("div",{className:wl.promptEditor,children:[E.jsxs("div",{className:wl.promptEditor_header,children:[H&&E.jsxs("div",{className:wl.promptEditor_header_wrapper,children:[E.jsx("div",{className:wl.promptEditor_header_icon,children:E.jsx(Ubt,{})}),E.jsx("div",{className:wl.promptEditor_header_title,children:_0n})]}),!H&&E.jsx("div",{className:wl.promptEditor_header_empty}),M&&E.jsx(vr,{placement:"topLeft",title:s?Tfn:Ifn,children:E.jsx(ut,{size:"small",icon:s?E.jsx(Gne,{}):E.jsx(w_t,{}),type:"text",onClick:u})})]}),E.jsx("div",{className:wl.promptEditor_editor,children:E.jsx(se.Suspense,{fallback:E.jsx($o,{}),children:E.jsx(dAr,{prompt:I[R]?.text||"",promptNodes:Object.keys(I),selectedPromptNode:R,updatePipelinePromptButtonProps:{tooltipTitle:q(),disabled:G(),onClick:W},onPromptNodeSelect:de=>{f({node:de,playgroundId:A})},onChange:de=>{d({value:de,playgroundId:A})},onTemplatesLinkClick:()=>_(A)})})})]});return E.jsxs("div",{className:wl.pipelinePlayground,children:[F,e&&E.jsx("div",{className:wl.pipelinePlayground_pipelineActionsBar_wrapper,children:ae()}),E.jsx("div",{className:`${wl.pipelinePlayground_searchResults_wrapper} ${s?wl.pipelinePlayground_searchResults_wrapper_expanded:""}`,ref:k,children:E.jsx("div",{className:wl.zeroHeightContainer,children:E.jsx("div",{className:wl.pipelinePlayground_searchResults_paddingContainer,children:T&&(N?.length>0||$)?E.jsx(Qtt,{pipelineId:r?.pipeline_id||"",pipelineName:r?.name||"",results:N,displayFileOptions:!0,displayMoreOptions:!0,displayTypingEffect:D,status:P,query:L,onRepeatQueryOptionClick:S,onSaveQueryPromptTemplateOptionClick:de=>C(A,de)}):re()})})}),E.jsx(qpe,{size:{width:"auto",height:l},minWidth:"auto",minHeight:JZe,maxHeight:s?"100%":600,grid:[10,10],snapGap:10,enable:{top:!0,right:!1,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStop:(de,fe,ge,oe)=>{w(oe.height)},className:`${wl.pipelinePlayground_promptEditor_wrapper} ${s?wl.pipelinePlayground_promptEditor_wrapper_expanded:""}`,handleClasses:{top:"handle_top"},children:ue()})]})},pAr="_playgroundFilters_header_title_1pfie_13",hAr="_playgroundFilters_footer_1pfie_22",mAr="_playgroundFilters_footer_options_1pfie_29",gAr="_playgroundFiltersDrawer_1pfie_37",vAr="_playgroundFiltersDrawer_closeButton_1pfie_46",aS={playgroundFilters_header_title:pAr,playgroundFilters_footer:hAr,playgroundFilters_footer_options:mAr,playgroundFiltersDrawer:gAr,playgroundFiltersDrawer_closeButton:vAr},yAr=({open:e,pipelineName:t,activeFilters:n,emptySearchResults:r,onClickApplyFilters:i,onClose:a,onClearAllFilters:o})=>{const s=ir(),l=st(qT);b.useEffect(()=>{n&&s(pc(n))},[]);const c=()=>{s(pc(n))},u=()=>{s(pc({})),o()},d=()=>E.jsx("header",{className:aS.playgroundFilters_header,children:E.jsxs("div",{className:aS.playgroundFilters_header_title,children:[E.jsx("h5",{children:bfn}),Object.keys(l).length>0&&E.jsx(ut,{size:"small",onClick:u,children:bet})]})}),f=()=>E.jsx("div",{className:aS.playgroundFilters_content,children:E.jsx(nme,{pipelineName:t})}),p=()=>r||Nn.isEqual(l,n)?null:E.jsx("footer",{className:aS.playgroundFilters_footer,children:E.jsxs("div",{className:aS.playgroundFilters_footer_options,children:[E.jsx(ut,{onClick:c,className:aS.playgroundFilters_cancelButton,block:!0,children:Eet}),E.jsx(ut,{type:"primary",onClick:()=>i(l),block:!0,children:_et})]})});return E.jsx(xm,{rootClassName:aS.playgroundFiltersDrawer,onClose:()=>a(l),closable:!0,open:e,title:d(),footer:p(),children:f()})},bAr="_card_2d9oe_25",_Ar="_promptExplorerPage_2d9oe_55",SAr="_promptExplorer_2d9oe_55",EAr="_promptExplorer_wrapper_2d9oe_76",CAr="_shrinked_2d9oe_82",wAr="_promptExplorer_dynamicContent_2d9oe_85",xAr="_promptExplorer_query_2d9oe_91",TAr="_promptExplorer_query_input_2d9oe_97",IAr="_history_2d9oe_112",AAr="_pipelineSelectOption_2d9oe_118",u1={card:bAr,"auth-content":"_auth-content_2d9oe_45","content-wrapper":"_content-wrapper_2d9oe_55",promptExplorerPage:_Ar,"content-wrapper_padding":"_content-wrapper_padding_2d9oe_60",promptExplorer:SAr,promptExplorer_wrapper:EAr,shrinked:CAr,promptExplorer_dynamicContent:wAr,promptExplorer_query:xAr,promptExplorer_query_input:TAr,history:IAr,pipelineSelectOption:AAr},{Search:RAr}=$r,NAr=20,e9e=()=>{const e=ir(),{pipelineName:t}=dv(),[n,r]=b.useState(!1),[i,a]=b.useState(""),[o,s]=b.useState([]),[l,c]=b.useState(!0),{data:u}=st(pt=>z_(pt,qs.DEPLOYED)),{queryPromptExplorer:d,resetSearchResultsPromptExplorer:f,addPromptExplorerInfoResult:p}=xU(),h=st(o9n),m=st(a9n),[g,v]=b.useState(JZe),y=pt=>{v(g+pt),n&&r(!n)},[_,S]=b.useState({}),[C,w]=b.useState(!1),x=st(Bhe),[T,A]=b.useState(""),I=b.useRef(null),[R,N]=b.useState(""),[P,L]=b.useState(vf.CUSTOM),[$,D]=b.useState(1),[z,U]=b.useState({[vf.CUSTOM]:{},[vf.DEEPSET]:{}}),[H,M]=b.useState(""),B=st(Z4r),k=st(Q4r),F=st(q4r),G=st(Y4r),q=st(K4r),W=st(W4r),K=pt=>o.find(({id:tt})=>tt===pt)||null,J=(pt,tt)=>{s(dt=>dt.map(Et=>Et.id!==pt?Et:{...Et,...tt}))},te=pt=>u.find(({name:tt})=>tt===pt)??null,ae=()=>Object.values(m).some(pt=>pt===Me.IN_PROGRESS),re=()=>Object.values(h).every(pt=>pt.length===0);b.useEffect(()=>(e(j_({currentPage:1,pageSize:100,searchValue:"",desiredStatus:qs.DEPLOYED,status:qn.DEPLOYED,supportsPrompt:!0})),e(Zke({promptTemplateModalActiveTab:P})),e(H4r()),()=>{o.length&&o.forEach(({id:pt})=>f(pt))}),[]),b.useEffect(()=>{(G===Me.SUCCESS||q===Me.SUCCESS)&&e(Xke({}))},[G,q]),b.useEffect(()=>{const[pt]=o;if(pt?.session){const dt=x.data.map(HZe).reverse();c(!1),S({[pt.id]:dt})}},[x]),b.useEffect(()=>{c(!0);const[pt]=o;if(!pt?.id)return;const tt=_[pt.id];if(tt?.length){const dt=h[pt.id],Et=dt[dt.length-1],St=tt[tt.length-1];if(Et?.query_id===St?.query_id){const zt=tt.slice(0,-1).concat(Et);S({[pt.id]:zt});return}S({[pt.id]:[...tt,Et]})}},[h]),b.useEffect(()=>{if(T){const pt=K(T);if(!pt)return;e(TU({pipelineName:pt.pipelineName}))}},[T]);const ue=pt=>{const tt={[vf.CUSTOM]:Xke,[vf.DEEPSET]:U4r},dt={filterValues:z[P],searchValue:H,...pt};e(tt[P](dt))},de=()=>{const{tags:pt,users:tt}=k,dt={type:li.MULTI_SELECT,key:Uwe.TAGS_ID,title:K0n,options:pt};if(P===vf.CUSTOM){const Et={type:li.MULTI_SELECT,key:Uwe.USER_ID,title:X0n,style:{minWidth:"120px"},options:tt};return[...pt?.length?[dt]:[],...tt?.length?[Et]:[]]}return[...pt?.length?[dt]:[]]};so(()=>{D(1),e(Zke({promptTemplateModalActiveTab:P})),ue({})},[P]);const fe=async pt=>{try{const tt=await e(NDn(pt));if(tt){const dt=KE(tt),{prompts:Et}=dt;return!Et||Nn.isEmpty(Et)?{}:Et}return{}}catch{return{}}},ge=pt=>{const tt=Object.keys(pt)||[];return tt[tt.length-1]},oe=async pt=>{const tt=ps();if(pt){const dt=await fe(pt),Et=ge(dt);s([{id:tt,pipelineName:pt,prompts:dt,selectedPromptNode:Et||""}]);return}s([{id:tt,prompts:{},selectedPromptNode:""}])};b.useEffect(()=>{oe(t)},[u]),b.useEffect(()=>{ue({})},[z,H]);const Ee=()=>u.map(({pipeline_id:pt,name:tt,service_level:dt,deepset_cloud_version:Et})=>({id:pt,value:tt,label:E.jsxs("div",{className:u1.pipelineSelectOption,children:[E.jsx(XT,{serviceLevel:dt}),E.jsx(Qhe,{children:tt}),E.jsx(l0,{deepsetCloudVersion:Et})]})})),ce=(pt={})=>{const[tt]=o,{pipelineName:dt,...Et}=pt,{pipeline_id:St}=te(dt||tt.pipelineName||"")||{pipeline_id:""},zt={limit:NAr,pageNumber:1,filter:vm("pipeline_id",St),...Et};e(Let(zt))},he=async pt=>{const tt=await e(Oet({pipelineId:pt}));return tt?(ce({pageNumber:1}),KE(tt)?.search_session_id):null},ye=pt=>{const[tt]=o;J(tt.id,{session:pt})},me=()=>{w(!0)},_e=()=>{w(!1)},Te=async({pipelineName:pt,playgroundId:tt})=>{S({}),f(tt);const dt=await fe(pt),Et=ge(dt);J(tt,{pipelineName:pt,prompts:dt,selectedPromptNode:Et||"",session:null})},xe=async(pt,tt)=>{_e(),S({}),J(pt,{session:void 0});const dt=await K(pt),Et=ps();s(St=>[...St,{id:Et,pipelineName:tt,prompts:dt?.prompts||{},selectedPromptNode:dt?.selectedPromptNode||""}])},De=pt=>{f(pt),s(tt=>tt.filter(({id:dt})=>dt!==pt))},Pe=({value:pt,playgroundId:tt})=>{const dt=K(tt);if(!dt)return;const{selectedPromptNode:Et,prompts:St}=dt;if(!Et)return;const zt={...St,[Et]:{...St[Et],text:pt}};J(tt,{prompts:zt})},Le=({node:pt,playgroundId:tt})=>{K(tt)&&J(tt,{selectedPromptNode:pt})},ze=pt=>{const tt=K(pt);if(!tt)return;const{pipelineName:dt,prompts:Et,selectedPromptNode:St}=tt;if(!dt)return;const zt=te(dt),{text:nn,template_name:wn}=Et[St];if(zt?.deepset_cloud_version===Rr.V2){e(G4r({pipelineName:dt,prompt:nn,promptNode:St}));return}wn&&e(V4r({pipelineName:dt,prompt:nn,templateName:wn}))},Be=pt=>{J(pt,{session:null}),p({playgroundId:pt,infoText:q0n})},je=pt=>{f(pt),S({}),J(pt,{session:null})},Ye=()=>{const pt=$+1;D(pt),ue({pageNumber:pt,fetchMore:!0})},Ze=pt=>{const tt=K(R);if(!tt)return;const{selectedPromptNode:dt,prompts:Et}=tt,St={...Et,[dt]:{...Et[dt],text:pt.text}};J(R,{prompts:St})},Ke=pt=>{e(B4r(pt))},qe=pt=>{e(j4r(pt))},nt=pt=>{e(z4r(pt))},Qe=pt=>{D(1),ue({sortValue:pt})},it=pt=>{M(pt)},yt=(pt,tt)=>{const dt={...z[P],[pt]:tt};U({...z,[P]:dt})},Wt=()=>{const tt=de().reduce((dt,{key:Et})=>({...dt,[Et]:[]}),{});U({...z,[P]:tt})},Mt=pt=>Object.keys(pt).reduce((tt,dt)=>({...tt,[dt]:{prompt_template:pt[dt]?.text}}),{}),tn=({query:pt,localFilters:tt}={})=>{o.forEach(async dt=>{const{id:Et,pipelineName:St,prompts:zt,session:nn,filters:wn}=dt;let kn=nn;if(!St)return;const fn=Mt(zt),{pipeline_id:an,output_type:Ht=xd.GENERATIVE,deepset_cloud_version:mn}=te(St)||{pipeline_id:"",outputType:xd.GENERATIVE};(!kn&&o.length===1||!kn&&Ht===xd.CHAT)&&(kn=await he(an),J(Et,{session:kn})),d({pipelineName:St,pipelineOutputType:Ht,query:pt||i,filters:tt||wn,params:fn,sessionId:kn,playgroundId:Et,isV2:mn===Rr.V2})})},Rt=pt=>{a(pt)},Dt=pt=>{Rt(pt),tn({query:pt})},Pt=(pt,tt)=>{N(pt),I.current?.createCustomTemplateFromPrompt(tt)},Ot=()=>{J(T,{filters:{}})},sn=pt=>{J(T,{filters:pt}),A(""),tn({localFilters:pt})},Jt=()=>{const[pt]=o,{pipeline_id:tt}=te(pt.pipelineName)||{pipeline_id:""};return E.jsx("div",{className:u1.history,children:E.jsx(rnt,{currentSessionId:pt.session,pipelineId:tt,pipelineName:pt.pipelineName,onSessionChange:ye,onClose:_e})})},Vt=()=>E.jsxs("div",{className:u1.promptExplorer,children:[E.jsxs("div",{className:`${u1.promptExplorer_wrapper} ${C&&u1.shrinked}`,children:[E.jsx("div",{className:u1.promptExplorer_dynamicContent,style:{gridTemplateColumns:`repeat(${o.length}, ${100/o.length}%)`},children:o.map((pt,tt)=>E.jsx(fAr,{displayPipelineActionsBar:!0,playground:pt,totalPlaygrounds:o.length,pipeline:te(pt.pipelineName||""),pipelinesOptions:Ee(),search:{query:i,results:_[pt.id]||h[pt.id],status:m[pt.id],searching:m[pt.id]===Me.IN_PROGRESS,displayTypingEffect:l},options:{displayRemovePipelineButton:tt!==0,displayHeader:tt===0,displayExpandShrinkButton:tt+1===o.length,renderDescription:tt===0},promptEditorHeight:g,activeFilters:!Nn.isEmpty(K(pt.id)?.filters),onPromptEditorValueChange:Pe,onPromptEditorPromptNodeChange:Le,onSelectPipeline:Te,onAddNewPipeline:xe,onRemovePipeline:De,onDisplayFilters:A,onStartNewSession:Be,onClearChat:je,promptEditorContainerExpanded:n,onExpandShrinkPromptEditorContainer:()=>{r(!n)},onTemplatesLinkClick:N,onRepeatQueryOptionClick:Dt,onSaveQueryPromptTemplateOptionClick:Pt,onPromptEditorResize:y,onUpdatePipelinePrompt:ze},pt.id))}),E.jsxs("div",{className:u1.promptExplorer_query,children:[o.length===1&&o[0].pipelineName&&E.jsx(ut,{type:"link",size:"small",icon:E.jsx(Kce,{}),onClick:()=>C?_e():me()}),E.jsx(RAr,{className:u1.promptExplorer_query_input,placeholder:j0n,disabled:ae(),enterButton:E.jsx(ut,{type:"primary",icon:E.jsx(Xce,{}),disabled:!i||ae()||!o[0]?.pipelineName,loading:ae(),children:i?Spe:""}),value:i,onChange:pt=>Rt(pt.target.value),onSearch:()=>i&&tn(),autoFocus:!0})]})]}),C&&Jt()]});return E.jsxs("div",{className:u1.promptExplorerPage,translate:"no",children:[E.jsx(kIr,{ref:I,activeTab:P,open:!!R,isV2:te(K(R)?.pipelineName||"")?.deepset_cloud_version===Rr.V2,promptTemplates:F.data||[],templateListHasMore:!!F.has_more,selectedSortingValue:B,filters:de(),selectedFilterValues:z[P],fetchMoreTemplates:Ye,loadingTemplates:W===Me.IN_PROGRESS,onTabChange:L,onCancel:()=>N(""),onUsePromptClick:Ze,onCreateNewCustomPrompt:Ke,onUpdateCustomPromptValues:qe,onDeleteCustomPrompt:nt,onSortSelectChange:Qe,onFilterSelectChange:yt,onClearAllFilters:Wt,onSearch:it}),!!T&&E.jsx(yAr,{open:!!T,onClose:pt=>{J(T,{filters:pt}),A("")},pipelineName:K(T)?.pipelineName,emptySearchResults:re(),activeFilters:K(T)?.filters||{},onClickApplyFilters:sn,onClearAllFilters:Ot}),Vt()]})},OAr="_card_o87tp_25",LAr="_searchBar_filtersButtonWrapper_o87tp_33",PAr={card:OAr,searchBar_filtersButtonWrapper:LAr},kAr=e=>{const{isExternal:t,selectedPipeline:n,selectedPipelineName:r,handleSearch:i,searchResult:a,searchStatus:o,displayMetaDataFilters:s,displayResultsFileOptions:l,displayResultsMoreOptions:c,searchFiltersVisible:u=!0,onSearchFiltersClose:d,onToggleFiltersClick:f,message:p}=e,h=ir(),{getFeedbackTags:m,resetFeedbackTags:g}=Sv(),{activatePipeline:v,activatingPipeline:y}=Vhe({isExternal:t,selectedPipelineName:r}),{isMobileScreen:_,isTabletScreen:S}=kC(),C=_||S,w=st(qT),x=st(OU),[T,A]=b.useState(""),I=b.useRef(""),{answers:R=[],documents:N=[]}=a||{},P=!R.length&&!N.length,L=o===Me.IN_PROGRESS;b.useEffect(()=>{r&&A(""),g()},[r]),b.useEffect(()=>{n?.pipeline_id&&m({pipelineId:n.pipeline_id,isExternal:t})},[n?.pipeline_id]);const $=async U=>{I.current=U,n?.status===qn.IDLE?v(n.name):(i(U,w),h(Fb(w)))};b.useEffect(()=>{n?.status===qn.DEPLOYED&&T!==""&&($(T),A(""))},[n?.status]),b.useEffect(()=>{A(I.current)},[I.current]);const D=()=>{const U=I.current;i(U,w)},z=()=>P&&!L&&Nn.isEmpty(x)&&!Nn.isEmpty(w)?H8n:yet;return E.jsx(E.Fragment,{children:E.jsx(Hhe,{sideMenu:u&&E.jsx(ant,{pipelineName:r,displayMetaDataFilters:s,isExternal:t,isEmptyResults:P,isLoading:L,searchStatus:o,onClickApplyFilters:D,onSearchFiltersClose:d}),searchBar:E.jsxs(E.Fragment,{children:[C&&E.jsx("div",{className:PAr.searchBar_filtersButtonWrapper,children:E.jsx(EC,{dot:!Nn.isEmpty(w)||!Nn.isEmpty(x),children:E.jsx(ut,{size:"large",icon:E.jsx(yj,{}),onClick:f})})}),E.jsx(Cit,{onQuerySubmit:$,loading:L,disabled:!r||L||y,enterButton:z()})]}),body:P?E.jsx(tme,{selectedPipeline:n,status:o,query:I.current,isExternal:t,message:p}):E.jsx(wit,{isExternal:t,results:a,status:o,query:I.current,pipelineName:r||"",pipelineId:n?.pipeline_id||"",displayFileOptions:l,displayMoreOptions:c})})})},MAr="_searchPage_ph349_23",DAr={"auth-content":"_auth-content_ph349_13","content-wrapper":"_content-wrapper_ph349_23",searchPage:MAr,"content-wrapper_padding":"_content-wrapper_padding_ph349_28"},t9e=()=>{const e=ir(),t=ys(),{search:n,searchResult:r,searchStatus:i,resetSearchResults:a}=xU(),o=st(ket),s=st(Met),{data:l}=st(S=>z_(S,qs.DEPLOYED)),{organization:c,role:u}=st(Pl),{isMobileScreen:d,isTabletScreen:f}=kC(),p=d||f,[h,m]=b.useState(!p),g=c==="111057eb-62eb-4cb0-969f-df7fc1f21b03"&&u===zn.SEARCH_USER,{pipelineName:v}=dv(),y=l.find(S=>S.name===o||S.name===v);b.useEffect(()=>(a(),e(j_({currentPage:1,pageSize:100,searchValue:"",desiredStatus:qs.DEPLOYED})),document.body.style.overflow="auto",v&&e(LM(v)),()=>{a(),e(a6())}),[v,y?.name]),b.useEffect(()=>{if(!o){const S=l[l.length-1];S&&e(LM(S.name))}},[e,l,o]),b.useEffect(()=>{!y&&o&&(e(LM("")),v&&t("/"))},[e,l]),b.useEffect(()=>{y&&e(TU({pipelineName:y.name}))},[e,y?.name]);const _=async(S,C)=>{n({pipelineName:o,pipelineOutputType:y?.output_type,query:S,filters:C,viewPrompts:y?.supports_prompt,isV2:y?.deepset_cloud_version===Rr.V2})};return E.jsx(E.Fragment,{children:E.jsx("div",{className:DAr.searchPage,"data-testid":"searchPage",translate:"no",children:y?.output_type!==xd.CHAT?E.jsx(kAr,{selectedPipeline:y,selectedPipelineName:y?.name||"",handleSearch:_,searchResult:r,searchStatus:i,displayMetaDataFilters:!0,displayResultsFileOptions:!g,displayResultsMoreOptions:!0,searchFiltersVisible:h,onSearchFiltersClose:()=>m(!1),onToggleFiltersClick:()=>m(!h),message:s}):E.jsx(ont,{pipelineName:o||v,pipeline:y,displayMetaDataFilters:!0,searchFiltersVisible:h,onSearchFiltersClose:()=>m(!1),onToggleFiltersClick:()=>m(!h)})})})},$Ar="Organization Secrets",FAr="Are you sure you want to delete this secret?",BAr="Add New Secret",jAr="Secret added",zAr="Secret removed",UAr="Create Secret",HAr="Name",VAr="Secret",GAr={NAME:"Name"},qAr="_header_1ecid_13",WAr="_buttonContainer_1ecid_25",Dte={header:qAr,buttonContainer:WAr},YAr="_modal_1mela_13",KAr="_body_1mela_20",XAr="_footerWrapper_1mela_25",$te={modal:YAr,body:KAr,footerWrapper:XAr},{useForm:ZAr}=Hr,QAr=({open:e,loading:t,onCancel:n,onSubmit:r})=>{const[i]=ZAr(),a=()=>{i.resetFields(),n()},o=()=>{const c=i.getFieldsValue();r(c)},s=c=>{c||i.resetFields()},l=()=>E.jsxs("div",{className:$te.footerWrapper,children:[E.jsx(ut,{disabled:t,onClick:a,children:gm}),E.jsx(ut,{disabled:t,loading:t,type:"primary",onClick:o,children:ofn})]});return E.jsx(wi,{title:UAr,className:$te.modal,open:e,afterOpenChange:s,onCancel:a,onOk:o,footer:l(),children:E.jsx("div",{className:$te.body,children:E.jsxs(Hr,{form:i,colon:!1,layout:"vertical",children:[E.jsx(Hr.Item,{label:HAr,name:"name",rules:[{required:!0}],children:E.jsx($r,{})}),E.jsx(Hr.Item,{label:VAr,name:"secret",rules:[{required:!0}],children:E.jsx($r.TextArea,{rows:4})})]})})})},JAr=e=>{const t={...e?.limit&&{limit:e?.limit},...e?.page_number&&{page_number:e?.page_number}};return rn.get("/api/v2/secrets",{params:t})},eRr=e=>rn.post("/api/v2/secrets",e),tRr=e=>rn.delete(`/api/v2/secrets/${e}`),nRr={type:kXe},rRr=Ut(vM,async({limit:e,pageNumber:t},{rejectWithValue:n,dispatch:r})=>{try{const i={limit:e,page_number:t},{data:a}=await JAr(i);return a}catch(i){return r(jn({content:Wn(i),type:yn.Error})),n(i)}}),iRr=Ut(yM,async(e,{rejectWithValue:t,dispatch:n})=>{try{await eRr(e),n(jn({content:jAr,type:yn.Success}))}catch(r){return n(jn({content:Wn(r),type:yn.Error})),t(r)}}),aRr=Ut(bM,async(e,{rejectWithValue:t,dispatch:n})=>{try{await tRr(e),n(jn({content:zAr,type:yn.Success}))}catch(r){return n(jn({content:Wn(r),type:yn.Error})),t(r)}}),WH=e=>e.secretsManagementStore,oRr=It(WH,e=>e.organizationSecrets),sRr=It(WH,e=>e.fetchOrganizationSecretsStatus),lRr=It(WH,e=>e.addOrganizationSecretStatus),cRr=It(WH,e=>e.deleteOrganizationSecretStatus),Qut=()=>{const e=ir(),t=st(oRr),n=st(sRr),r=st(lRr),i=st(cRr);return{organizationSecrets:t,fetchOrganizationSecretsStatus:n,addOrganizationSecretStatus:r,deleteOrganizationSecretStatus:i,getOrganizationSecrets:({limit:c,pageNumber:u}={})=>{e(rRr({limit:c,pageNumber:u}))},handleAddNewSecret:c=>{e(iRr(c))},handleDeleteSecret:c=>{e(aRr(c))},resetSecretsManagementStatuses:()=>{e(nRr)}}},uRr=10,dRr=()=>{const{organizationSecrets:e,fetchOrganizationSecretsStatus:t,addOrganizationSecretStatus:n,deleteOrganizationSecretStatus:r,getOrganizationSecrets:i,handleAddNewSecret:a,handleDeleteSecret:o}=Qut(),[s,l]=b.useState(!1);so(()=>{(n===Me.SUCCESS||r===Me.SUCCESS)&&(l(!1),i())},[n,r]);const c=[{title:GAr.NAME,dataIndex:"name",key:"name",width:"90%"},{key:"action",width:"10%",render:(u,d)=>E.jsx("div",{className:Dte.buttonContainer,children:E.jsx(fm,{title:FAr,placement:"top",onConfirm:()=>o(d.secret_id),okText:Aae,cancelText:Rae,children:E.jsx(ut,{type:"text",icon:E.jsx(m0,{}),disabled:r===Me.IN_PROGRESS})})})}];return E.jsxs("div",{className:Dte.container,children:[E.jsx(QAr,{open:s,onCancel:()=>l(!1),onSubmit:a,loading:n===Me.IN_PROGRESS}),E.jsxs("div",{className:Dte.header,children:[E.jsx("h5",{children:$Ar}),E.jsx(ut,{type:"primary",icon:E.jsx(Td,{}),onClick:()=>l(!0),children:BAr})]}),E.jsx(Of,{data:e.data,total:e.total,rowKey:"secret_id",border:!0,getData:(u,d)=>i({pageNumber:u,limit:d}),loading:t===Me.IN_PROGRESS,columns:c,searchAvailable:!1,rowSelection:!1,pagination:{pageSize:uRr}})]})},fRr="_container_1lcnw_35",pRr="_content_1lcnw_35",n9e={"auth-content":"_auth-content_1lcnw_25","content-wrapper":"_content-wrapper_1lcnw_35",container:fRr,"content-wrapper_padding":"_content-wrapper_padding_1lcnw_40",content:pRr},hRr=()=>{const{resetSecretsManagementStatuses:e}=Qut();return b.useEffect(()=>{e()},[]),E.jsxs("div",{className:n9e.container,children:[E.jsx(JT,{}),E.jsx("div",{className:n9e.content,children:E.jsx(dRr,{})})]})},mRr="_container_zqnxc_40",gRr="_card_zqnxc_57",vRr="_integrations_zqnxc_57",yRr="_header_zqnxc_71",bRr="_apiKeys_zqnxc_75",_Rr="_apiKeys_table_zqnxc_80",SRr="_apiKeys_generate_zqnxc_90",ERr="_apiKeys_generate_empty_zqnxc_95",CRr="_datePicker_zqnxc_99",wRr="_keyContainer_key_zqnxc_103",xRr="_generateKey_zqnxc_109",TRr="_generateKey_info_zqnxc_113",IRr="_copyButton_zqnxc_117",ARr="_modal_buttons_zqnxc_123",RRr="_integration_zqnxc_57",NRr="_integration_input_zqnxc_152",ORr="_integration_input_label_zqnxc_157",LRr="_integration_input_label_title_zqnxc_161",PRr="_integration_logo_zqnxc_165",kRr="_form_actions_zqnxc_171",MRr="_integrationModal_body_zqnxc_181",DRr="_integrationModal_form_zqnxc_184",$Rr="_integrationModal_form_subtitle_zqnxc_187",FRr="_integrationModal_form_subtitle_connectionName_zqnxc_190",BRr="_integrationModal_form_subtitle_version_zqnxc_193",go={"auth-content":"_auth-content_zqnxc_25","content-wrapper":"_content-wrapper_zqnxc_35","content-wrapper_padding":"_content-wrapper_padding_zqnxc_40",container:mRr,card:gRr,integrations:vRr,header:yRr,apiKeys:bRr,apiKeys_table:_Rr,apiKeys_generate:SRr,apiKeys_generate_empty:ERr,datePicker:CRr,keyContainer_key:wRr,generateKey:xRr,generateKey_info:TRr,copyButton:IRr,modal_buttons:ARr,integration:RRr,integration_input:NRr,integration_input_label:ORr,integration_input_label_title:LRr,integration_logo:PRr,form_actions:kRr,integrationModal_body:MRr,integrationModal_form:DRr,integrationModal_form_subtitle:$Rr,integrationModal_form_subtitle_connectionName:FRr,integrationModal_form_subtitle_version:BRr},{Option:jRr}=Zi,zRr=({logo:e,provider:t,formItems:n,label:r,labelConnected:i,tokenFormatter:a,supportedVersions:o})=>{const s=ir(),{modelRegistryTokens:l}=st(vQe),c=st(Vpe),[u,d]=wi.useModal(),f=w=>!w||w.length<1?null:l.find(x=>x.provider===t),p=w=>w?w.invalid?E.jsx(Si,{icon:E.jsx(c3,{}),color:"warning",children:Pn(t_n,{provider:yg[t],private:t===Fa.huggingface?"private ":""})}):i||Pn(Jbn,{provider:yg[t],private:t===Fa.huggingface?"private ":""}):r||Pn(e_n,{provider:yg[t],private:t===Fa.huggingface?"private ":""}),h=f(l),[m,g]=b.useState(h),[v,y]=b.useState(!1),_=async w=>{let x=w;a?x=a(w):w.token&&(x=w.token),await s(d_n({modelToken:x,modelProvider:t})),s(lQe())},S=async()=>{await s(f_n(t)),g(null)},C=()=>{y(!1)};return b.useEffect(()=>{const w=f(l);w?(y(!1),g(w)):g(null)},[l]),b.useEffect(()=>{v||s(QO)},[v]),E.jsxs(E.Fragment,{children:[E.jsxs("div",{className:go.integration,children:[E.jsxs("div",{className:go.integration_input,children:[E.jsx("img",{src:e.src,alt:e.description,className:go.integration_logo}),E.jsxs("div",{className:go.integration_input_label,children:[E.jsxs("div",{children:[E.jsx("span",{className:go.integration_input_label_title,children:yg[t]}),o?.map(w=>E.jsx(l0,{deepsetCloudVersion:w},w))]}),E.jsx("small",{children:p(h)})]})]}),m?E.jsx(ut,{danger:!0,onClick:async()=>{await u.confirm({title:Pn(n_n,{provider:yg[t]}),content:Pn(r_n,{provider:yg[t]}),okText:Kwe,okButtonProps:{danger:!0},centered:!0})&&S()},children:Kwe}):E.jsx(ut,{onClick:()=>y(!0),children:Xwe})]}),E.jsxs(wi,{title:Pn(Fbn,{provider:yg[t]}),open:v,footer:null,classNames:{body:go.integrationModal_body},onCancel:C,centered:!0,children:[c&&c.content&&E.jsx(Ka,{message:c.content,type:c.type,banner:!0}),E.jsxs(Hr,{name:t,layout:"vertical",autoComplete:"off",onFinish:_,children:[E.jsxs("div",{className:go.integrationModal_form,children:[o&&o.length>0&&E.jsx("div",{className:go.integrationModal_form_subtitle,children:Pn(Bbn,{provider:E.jsx("span",{className:go.integrationModal_form_subtitle_connectionName,children:yg[t]}),version:E.jsx("span",{className:go.integrationModal_form_subtitle_version,children:o.map(w=>E.jsx(l0,{deepsetCloudVersion:w},w))})})}),n.map(w=>E.jsx(Hr.Item,{label:w.label,name:w.name,rules:w.rules,initialValue:w.defaultValue,children:w.options?E.jsx(Zi,{placeholder:w.placeholder,children:w.options.map(x=>E.jsx(jRr,{value:x.value,children:x.label},x.value))}):E.jsx($r,{placeholder:w.placeholder})},w.name))]}),E.jsx(zi,{}),E.jsxs(Hr.Item,{className:go.form_actions,children:[E.jsx(ut,{htmlType:"reset",onClick:C,children:gm}),E.jsx(ut,{type:"primary",htmlType:"submit",children:Xwe})]})]})]}),d]})},URr=()=>{const e=ir(),{apiKeys:t}=st(vQe),[n,r]=b.useState(1),[i,a]=b.useState(!1),[o,s]=b.useState(""),[l,c]=b.useState(""),u=5;b.useEffect(()=>{e(QO),e(IW({currentPage:n,pageSize:u})),e(lQe())},[n,e]),b.useEffect(()=>{t.total>0&&t.data.length===0&&n>1&&r(n-1)},[t.data.length,t.total]);const d=C=>{r(C)},f=async C=>{await e(c_n(C)),e(IW({currentPage:n,pageSize:u}))},p=async()=>{const C=await e(u_n(l)),w=KE(C);s(w),e(IW({currentPage:n,pageSize:u}))},h=()=>{s(""),c("")},m=C=>{navigator.clipboard.writeText(C)},g=C=>{c(C?C.format():""),s("")},v=()=>{a(!0),s("")},y=()=>{a(!1),s("")},_=[{title:gbn,dataIndex:"api_token_id",key:"api_token_id"},{title:vbn,dataIndex:"api_key",key:"api_key"},{title:Ebn,dataIndex:"expires_at",key:"expires_at",render:C=>new Date(C).toLocaleString()},{title:bbn,dataIndex:"user",key:"user",render:C=>E.jsxs(E.Fragment,{children:[C.given_name," ",C.family_name]})},{key:"action",width:100,render:(C,w)=>E.jsx(fm,{title:kbn,placement:"left",onConfirm:()=>f(w.api_token_id),okText:Mbn,cancelText:Dbn,children:E.jsx(ut,{type:"link",danger:!0,children:_bn})})}],S=t?t.data.map(C=>({...C,api_key:Sbn})):[];return E.jsxs("div",{className:"content-wrapper",children:[E.jsx(JT,{}),E.jsxs("div",{className:go.container,children:[E.jsx("h5",{className:go.header,children:$bn}),E.jsx("section",{className:go.integrations,children:i_n.map(C=>E.jsx(zRr,{logo:C.logo,provider:C.provider,formItems:C.formItems,label:C.label,labelConnected:C.labelConnected,tokenFormatter:C.tokenFormatter,supportedVersions:C.supportedVersions},C.provider))}),E.jsx("h5",{className:go.header,children:ybn}),E.jsxs("section",{className:go.apiKeys,children:[E.jsx(mv,{columns:_,dataSource:S,className:go.apiKeys_table,rowKey:"api_token_id",sortDirections:["descend"],pagination:{total:t.total,position:["bottomRight"],pageSize:u,onChange:d}}),E.jsx(ut,{icon:E.jsx(Td,{}),onClick:()=>v(),className:`${t.total===0?go.apiKeys_generate_empty:go.apiKeys_generate} `,children:Tbn})]}),E.jsxs(wi,{title:Cbn,open:i,onCancel:y,footer:null,children:[E.jsx("div",{className:go.generateKey,children:o?E.jsxs("section",{className:go.keyContainer,children:[E.jsxs("div",{children:[E.jsx("h3",{children:Obn}),E.jsxs("p",{className:go.keyContainer_key,children:[o,E.jsx(vr,{title:Pbn,trigger:"click",className:go.copyButton,children:E.jsx(ut,{type:"link",size:"large",icon:E.jsx(tO,{}),onClick:()=>m(o)})})]})]}),E.jsx("p",{className:go.keyContainer_info,children:Lbn})]}):E.jsxs(E.Fragment,{children:[E.jsx("p",{className:go.generateKey_info,children:Rbn}),E.jsxs("label",{htmlFor:"apikey_expirationDate",children:[Nbn,E.jsx(I_,{id:"apikey_expirationDate",className:go.datePicker,showToday:!1,onChange:g,disabledDate:C=>C&&C<Cr().endOf("day")})]})]})}),E.jsx("div",{className:go.modal_buttons,children:o?E.jsxs(E.Fragment,{children:[E.jsx(ut,{type:"default",onClick:()=>h(),children:Ibn}),E.jsx(ut,{type:"primary",onClick:()=>y(),children:wbn})]}):E.jsxs(E.Fragment,{children:[E.jsx(ut,{type:"default",onClick:()=>y(),children:xbn}),E.jsx(ut,{type:"primary",onClick:()=>p(),disabled:!l||!!o,children:Abn})]})})]})]})]})},HRr="_inviteModal_title_tzdsx_13",VRr="_inviteModal_subtitle_tzdsx_19",GRr="_inviteModal_form_tzdsx_23",qRr="_inviteModal_field_tzdsx_27",WRr="_inviteModal_formItemWrapper_tzdsx_31",YRr="_form_name_tzdsx_36",KRr="_form_familyName_tzdsx_40",XRr="_form_email_tzdsx_43",ZRr="_form_email_icon_tzdsx_47",QRr="_form_role_tzdsx_50",JRr="_inviteModal_roleItem_icon_tzdsx_54",eNr="_inviteModal_roleItemWrapper_tzdsx_63",tNr="_inviteModal_actions_tzdsx_72",nNr="_inviteModal_roleItem_select_tzdsx_82",rNr="_peopleTitle_tzdsx_86",iNr="_peopleTitleLabel_tzdsx_94",aNr="_peopleBlock_pagination_tzdsx_99",oNr="_changeLink_tzdsx_103",sNr="_personRow_tzdsx_113",lNr="_personRow_options_tzdsx_128",cNr="_personRow_options_button_tzdsx_132",xs={inviteModal_title:HRr,inviteModal_subtitle:VRr,inviteModal_form:GRr,inviteModal_field:qRr,inviteModal_formItemWrapper:WRr,form_name:YRr,form_familyName:KRr,form_email:XRr,form_email_icon:ZRr,form_role:QRr,inviteModal_roleItem_icon:JRr,inviteModal_roleItemWrapper:eNr,inviteModal_actions:tNr,inviteModal_roleItem_select:nNr,peopleTitle:rNr,peopleTitleLabel:iNr,peopleBlock_pagination:aNr,changeLink:oNr,personRow:sNr,personRow_options:lNr,personRow_options_button:cNr},uNr=e=>{const t=ir(),{visible:n,onClose:r,onSubmit:i,onInviteUser:a}=e,[o,s]=b.useState(!1),{organizationName:l,organizationId:c}=st(JO),[u]=Hr.useForm(),{Option:d}=Zi;b.useEffect(()=>{t(QO)},[t]);const f={users:[{name:0,key:0,isListField:!0}],skipValidation:!1},p=()=>{i()},h=()=>{r()},m=async S=>{const C={given_name:Qr(S,"users[0].given_name","").trim(),family_name:Qr(S,"users[0].family_name","").trim(),email:Qr(S,"users[0].email","").trim(),role:Qr(S,"users[0].role",zn.ADMIN)};await t(o_n({user:C,organizationId:c})),a(),u.resetFields(),r()},g=(S,C)=>{Qr(C,"users[0].email")&&Qr(C,"users[0].given_name")&&Qr(C,"users[0].family_name")&&Qr(C,"users[0].role")?s(!0):s(!1)},v=S=>S&&typeof S=="string"?S.trim():S,y={open:n,closable:!1,footer:null,onOk:p,onCancel:h,centered:!0},_={form:u,initialValues:f,name:"invite-people",onFinish:m,autoComplete:"off",onValuesChange:g};return E.jsxs(wi,{...y,children:[E.jsx("h2",{className:xs.inviteModal_title,children:`${us.INVITE_MODAL_TITLE} ${l}`}),E.jsx("div",{className:xs.inviteModal_subtitle,children:us.INVITE_MODAL_SUBTITLE}),E.jsxs(Hr,{..._,className:xs.inviteModal_form,children:[E.jsx(Hr.List,{name:"users",children:S=>E.jsx(E.Fragment,{children:S.map(C=>E.jsxs("div",{className:xs.inviteModal_field,children:[E.jsxs("div",{className:xs.inviteModal_formItemWrapper,children:[E.jsx(Hr.Item,{...C,name:[C.name,"given_name"],rules:[{required:!0,message:us.INVITE_NAME_ERROR}],className:xs.form_name,children:E.jsx($r,{placeholder:us.NAME_PLACEHOLDER,size:"large"})}),E.jsx(Hr.Item,{...C,name:[C.name,"family_name"],rules:[{required:!0,message:us.INVITE_SURNAME_ERROR}],className:xs.form_familyName,children:E.jsx($r,{placeholder:us.SURNAME_PLACEHOLDER,size:"large"})})]}),E.jsxs("div",{className:xs.inviteModal_formItemWrapper,children:[E.jsx(Hr.Item,{...C,name:[C.name,"email"],rules:[{required:!0,message:us.INVITE_EMAIL_ERROR},{type:"email",message:us.INVITE_VALIDATION_EMAIL_ERROR,transform:v}],className:xs.form_email,children:E.jsx($r,{placeholder:"name@example.com",size:"large",prefix:E.jsx(sSt,{className:xs.form_email_icon})})}),E.jsxs("div",{className:xs.inviteModal_roleItemWrapper,children:[E.jsx(Zce,{className:xs.inviteModal_roleItem_icon}),E.jsx(Hr.Item,{...C,name:[C.name,"role"],rules:[{required:!0,message:us.INVITE_ROLE_ERROR}],className:xs.form_role,children:E.jsx(Zi,{placeholder:"Role",size:"large",className:xs.inviteModal_roleItem_select,children:Object.entries(uF).map(([w,x])=>E.jsx(d,{value:w,children:x},w))})})]})]})]},C.key))})}),E.jsxs("div",{className:xs.inviteModal_actions,children:[E.jsx(ut,{onClick:()=>h(),children:us.CANCEL_LABEL}),E.jsx(ut,{type:"primary",onClick:()=>p(),htmlType:"submit",disabled:!o,"data-testid":"inviteSend_button",children:us.SEND_INVITE_LABEL})]})]})]})},dNr="_row_1hz2s_1",fNr={row:dNr},pNr=e=>{const{children:t}=e;return E.jsx(Yde,{className:fNr.row,justify:"center",children:E.jsx(Rz,{className:"centered-content",children:t})})},hNr=e=>{const t=ir(),{withInvite:n=!1,withChange:r=!1}=e,{users:i,total:a}=st(Z_n),{userID:o}=st(Pl),[s,l]=b.useState(!1),[c,u]=b.useState(!1),[d,f]=b.useState(1);b.useEffect(()=>{t(QO),t(iI(d))},[t,d]);const p=()=>{l(!0)},h=async()=>{l(!1),t(iI(d))},m=A=>{f(A)};function g(){t(iI(d))}async function v(A){await t(l_n(A)),t(iI(d))}function y(){u(A=>!A)}function _(){return E.jsx(lfe,{current:d,total:a,defaultPageSize:us.USERS_PER_PAGE,showSizeChanger:!1,onChange:A=>m(A),className:xs.peopleBlock_pagination})}async function S(A,I){await t(s_n({userId:I,role:A})),t(iI(d))}const C=()=>Object.entries(uF).map(([A,I])=>({key:A,label:I}));function w(){return i.map(A=>{const{userID:I,email:R,role:N,firstName:P,lastName:L}=A;return E.jsxs("div",{className:xs.personRow,"data-testid":`personRow_${R}`,children:[E.jsxs("div",{children:[E.jsxs("div",{children:[`${P||""} ${L||""}`,E.jsx("strong",{children:o===I&&` (${us.YOU_LABEL})`})]}),E.jsx("div",{children:E.jsxs("small",{children:[" ",R," "]})})]}),E.jsxs("div",{className:xs.personRow_options,children:[uF[N],E.jsx(vr,{placement:"bottom",title:us.CHANGE_USER_ROLE_TOOLTIP,children:E.jsx(Vo,{menu:{items:C(),onClick:({key:$})=>S($,I)},placement:"topRight",trigger:["click"],children:E.jsx(ut,{type:"link",size:"small",icon:E.jsx(vye,{}),className:xs.personRow_options_button})})}),E.jsx(vr,{placement:"bottom",title:us.REMOVE_USER_TOOLTIP,children:E.jsx(fm,{title:us.REMOVE_USER_CONFIRMATION_MESSAGE,placement:"topRight",okText:us.CONFIRM_BUTTON_LABEL,cancelText:us.CANCEL_BUTTON_LABEL,onConfirm:()=>v(I),children:E.jsx(ut,{type:"link",size:"small",danger:!0,icon:E.jsx(XEt,{}),"data-testid":"deleteUser_button",className:xs.personRow_options_button})})})]})]},I)})}const x={onInviteUser:g,visible:s,onClose:h,onSubmit:p};function T(){return E.jsxs("div",{className:xs.peopleTitle,children:[E.jsxs("div",{className:xs.peopleTitleLabel,children:[us.TITLE," (",a,")"]}),E.jsxs("div",{children:[r&&E.jsx(ut,{type:"primary",icon:E.jsx(vye,{}),onClick:()=>y(),children:c?us.CLOSE_LABEL:us.CHANGE_LABEL}),n&&E.jsx(ut,{type:"primary",icon:E.jsx(WEt,{}),onClick:()=>p(),"data-testid":"inviteUserModal_button",children:us.INVITE_USERS_LABEL})]})]})}return E.jsxs(pNr,{children:[T(),E.jsx("div",{"data-testid":"userList",children:w()}),E.jsx(uNr,{...x}),_()]})};function mNr(){const{organizationName:e}=st(JO),t=st(Vpe);return E.jsxs("div",{className:"content-wrapper",children:[E.jsx(JT,{}),t&&t.content&&E.jsx(Ka,{message:t.content,type:t.type,banner:!0}),E.jsxs("div",{className:"content-wrapper_padding",children:[E.jsxs("div",{style:{marginBottom:"20px"},children:[E.jsxs("strong",{children:[sbn,": "]})," ",e,E.jsx("div",{children:E.jsx("small",{children:lbn})})]}),E.jsx(zi,{}),E.jsx("div",{children:E.jsx(hNr,{withInvite:!0})})]})]})}const gNr=()=>{const{firstName:e,lastName:t,role:n}=st(Pl),[r]=Hr.useForm(),a={form:r,name:"changePersonalDetails",requiredMark:!1,labelCol:{span:4},wrapperCol:{span:14},labelAlign:"left",initialValues:{firstName:e,lastName:t}};return E.jsxs("div",{className:"content-wrapper",children:[E.jsx(JT,{}),E.jsx("div",{className:"content-wrapper_padding",style:{display:"flex",flexDirection:"column",gap:"20px"},children:E.jsx("div",{children:E.jsxs(Hr,{...a,children:[E.jsx(Hr.Item,{colon:!1,name:"firstName",label:rbn,rules:[{required:!0,message:abn}],children:E.jsx($r,{disabled:!0})}),E.jsx(Hr.Item,{colon:!1,name:"lastName",label:ibn,rules:[{required:!0,message:obn}],children:E.jsx($r,{disabled:!0})}),E.jsx(Hr.Item,{colon:!1,name:"role",label:"Role",children:E.jsx("div",{children:uF[n]})})]})})})]})},vNr="_workspaces_header_3xjqc_13",yNr="_workspaces_list_3xjqc_22",bNr="_workspaces_list_item_3xjqc_25",_Nr="_workspaces_popconfirm_body_3xjqc_36",SNr="_workspaces_popconfirm_body_subtitle_3xjqc_39",aA={workspaces_header:vNr,workspaces_list:yNr,workspaces_list_item:bNr,workspaces_popconfirm_body:_Nr,workspaces_popconfirm_body_subtitle:SNr},ENr=()=>{const e=ir(),[t,n]=Dp.useMessage(),r=st(Vpe),{workspaces:i}=st(lU),a=st(Q_n),o=st(J_n),{maxWorkspaces:s}=st(JO),[l,c]=b.useState(""),[u,d]=b.useState(!1),[f,p]=b.useState(""),h=a===Me.IN_PROGRESS;b.useEffect(()=>(r?.content&&t[r.type](r.content),()=>{e(QO)}),[r]);const m=_=>{e(p_n(_)),c("")},g=async()=>{await e(cQe(f)),e(sU()),d(!1),p("")},v=()=>f.length>2,y=()=>E.jsx(wi,{"data-testid":"workspacesSettings_addWorkspace_modal",title:Ywe,open:u,okText:hbn,okButtonProps:{disabled:!v()||h,loading:h},onOk:g,onCancel:()=>d(!1),children:E.jsx($r,{"data-testid":"workspacesSettings_addWorkspace_modal_input",placeholder:Wwe,value:f,onChange:_=>p(_.target.value)})});return E.jsxs(E.Fragment,{children:[n,E.jsxs("div",{className:"content-wrapper",children:[y(),E.jsx(JT,{}),i.length===(s||IM)&&E.jsx(Ka,{message:Pn(mbn,{maxWorkspaces:s||IM}),type:"info",banner:!0}),E.jsx("div",{className:"content-wrapper_padding",children:E.jsxs("div",{children:[E.jsxs("div",{className:aA.workspaces_header,children:[E.jsx("h5",{children:cbn}),i.length<(s||IM)&&E.jsx(ut,{"data-testid":"workspacesSettings_addWorkspace",type:"primary",icon:E.jsx($yt,{}),onClick:()=>d(!0),children:Ywe})]}),E.jsx("div",{className:aA.workspaces_list,"data-testid":"workspacesSettings_workspaces_list",children:i.map((_,S)=>E.jsxs(b.Fragment,{children:[E.jsxs("div",{className:aA.workspaces_list_item,"data-testid":`workspacesSettings_workspaces_list_item_${_.name}`,children:[_.name,_.name!==ZO&&E.jsx(fm,{"data-testid":"workspacesSettings_deleteWorkspace_popconfirm",title:E.jsxs("div",{className:aA.workspaces_popconfirm_body,children:[E.jsx("h6",{children:Pn(ubn,{workspace:_.name})}),E.jsx("div",{className:aA.workspaces_popconfirm_body_subtitle,children:Pn(dbn,{workspace:_.name})}),E.jsx($r,{"data-testid":"workspacesSettings_deleteWorkspace_popconfirm_input",placeholder:Wwe,value:l,onChange:C=>c(C.currentTarget.value)})]}),placement:"left",okText:pbn,onConfirm:()=>m(_.name),okButtonProps:{disabled:l!==_.name||!!o[_.name],loading:!!o[_.name]},onOpenChange:C=>!C&&c(""),children:E.jsx(ut,{type:"link",danger:!0,"data-testid":`workspacesSettings_workspaces_list_item_${_.name}_deleteButton`,disabled:!!o[_.name],loading:!!o[_.name],children:fbn})})]}),S!==i.length-1&&E.jsx(zi,{})]},_.name))})]})})]})]})},r9e=se.lazy(()=>Io(()=>import("./ObservabilityDashboard.LAIKP7vL.js"),__vite__mapDeps([17,18]))),CNr=se.lazy(()=>Io(()=>import("./JobsPage.C9iEZ8ud.js"),__vite__mapDeps([19,20,21,22]))),wNr=se.lazy(()=>Io(()=>import("./JobDetailsPage.BHHnAhmM.js"),__vite__mapDeps([23,20,21,24]))),xNr=se.lazy(()=>Io(()=>import("./SharedPrototype.DlnS4e6g.js"),__vite__mapDeps([25,26,27,28]))),TNr=se.lazy(()=>Io(()=>import("./jobReportPage.Brnpfpon.js"),__vite__mapDeps([29,26,27,30]))),i9e=se.lazy(()=>Io(()=>import("./pipelineStudioPage.6K_n-2Kg.js"),__vite__mapDeps([31,13,8,3,4,9,2,5,32])));Dp.config({maxCount:1,duration:5});const INr=()=>{const e=ir(),t=ys(),{path:n}=jT(),{user:r,isAuthenticated:i,getAccessTokenSilently:a,logout:o,loginWithRedirect:s,isLoading:l}=iO(),{role:c}=st(Pl);if(b.useEffect(()=>{rm.setAccessTokenSilently(a),rm.setloginWithRedirect(s),rm.setLogout(o)},[a,s,o]),b.useEffect(()=>{G1.setNavigate(t)},[t]),b.useEffect(()=>{i&&c===zn.PIPELINE_STUDIO&&t("/logout")},[c]),b.useEffect(()=>{i&&r&&(e(uQe({authUser:r})),e(sU()))},[i,r]),l)return E.jsx($o,{});const u=n!=="/guidedWorkflow"&&n!=="/jobs";return E.jsxs(kRt,{fallback:i6e,children:[E.jsx(hkn,{}),i&&E.jsx(bkn,{}),u&&E.jsx(Fkn,{}),E.jsxs(M0t,{children:[E.jsx(jr,{path:"/login",element:E.jsx(Ukn,{})}),E.jsx(jr,{path:"/logout",element:E.jsx(Hkn,{})}),E.jsx(jr,{path:"/error",element:E.jsx(i6e,{})}),E.jsx(jr,{path:"/not-found-prototype",element:E.jsx(oZn,{})}),E.jsx(jr,{path:"/aws-marketplace",element:E.jsx(Xer,{})}),E.jsx(jr,{path:"/shared_prototypes",element:E.jsx(LAe,{Component:xNr})}),E.jsx(jr,{path:"/shared_job_results",element:E.jsx(LAe,{Component:TNr,type:yR.JOB})}),E.jsxs(jr,{element:E.jsx(JPn,{}),children:[E.jsx(jr,{path:"/",element:E.jsx(da,{component:ZXn,roles:[zn.ADMIN]})}),E.jsx(jr,{path:"/playground",element:E.jsx(da,{component:t9e,roles:[zn.ADMIN,zn.SEARCH_USER]})}),E.jsx(jr,{path:"/playground/:pipelineName",element:E.jsx(da,{component:t9e,roles:[zn.ADMIN,zn.SEARCH_USER]})}),E.jsx(jr,{path:"/pipelines",element:E.jsx(da,{component:B5r,roles:[zn.ADMIN]})}),E.jsx(jr,{path:"/experiments",element:E.jsx(da,{component:GJn,roles:[zn.ADMIN]})}),E.jsx(jr,{path:"/experiments/:experimentName",element:E.jsx(da,{component:ZQn,roles:[zn.ADMIN]})}),E.jsx(jr,{path:"/files",element:E.jsx(da,{component:ltr,roles:[zn.ADMIN]})}),E.jsx(jr,{path:"/evalset",element:E.jsx(da,{component:AZn,roles:[zn.ADMIN]})}),E.jsx(jr,{path:"/settings/personal-details",element:E.jsx(da,{component:gNr,roles:[zn.ADMIN,zn.SEARCH_USER]})}),E.jsx(jr,{path:"/settings/organization",element:E.jsx(da,{component:mNr,roles:[zn.ADMIN]})}),E.jsx(jr,{path:"/settings/connections",element:E.jsx(da,{component:URr,roles:[zn.ADMIN]})}),E.jsx(jr,{path:"/settings/workspaces",element:E.jsx(da,{component:ENr,roles:[zn.ADMIN]})}),E.jsx(jr,{path:"/settings/usage",element:E.jsx(da,{component:q1r,roles:[zn.ADMIN]})}),E.jsx(jr,{path:"/settings/secrets",element:E.jsx(da,{component:hRr,roles:[zn.ADMIN]})}),E.jsx(jr,{path:"/prompt-studio/:pipelineName",element:E.jsx(da,{component:e9e,roles:[zn.ADMIN]})}),E.jsx(jr,{path:"/prompt-studio",element:E.jsx(da,{component:e9e,roles:[zn.ADMIN]})}),E.jsx(jr,{path:"/labeling",element:E.jsx(da,{component:arr,roles:[zn.ADMIN]})}),E.jsx(jr,{path:"/labeling/:projectId",element:E.jsx(da,{component:iar,roles:[zn.ADMIN]})}),E.jsx(jr,{path:"/labeling/:projectId/query/:pipelineName",element:E.jsx(da,{component:aor,roles:[zn.ADMIN]})}),E.jsx(jr,{path:"/chat/:pipelineName",element:E.jsx(da,{component:LUn,roles:[zn.ADMIN,zn.SEARCH_USER]})}),E.jsx(jr,{path:"/pipelines/designer/:pipelineName",element:E.jsx(da,{component:Ike,roles:[zn.ADMIN]})}),E.jsx(jr,{path:"/pipelines/designer",element:E.jsx(da,{component:Ike,roles:[zn.ADMIN]})}),E.jsx(jr,{path:"/pipelines/editor/:pipelineName",element:E.jsx(da,{component:Pke,roles:[zn.ADMIN]})}),E.jsx(jr,{path:"/pipelines/editor",element:E.jsx(da,{component:Pke,roles:[zn.ADMIN]})}),E.jsx(jr,{path:"/pipelines/:pipelineName",element:E.jsx(da,{component:Qxr,roles:[zn.ADMIN]})}),E.jsx(jr,{path:"/pipelines/templates",element:E.jsx(da,{component:STr,roles:[zn.ADMIN]})}),E.jsx(jr,{path:"/pipelines/templates/:templateName",element:E.jsx(da,{component:z3r,roles:[zn.ADMIN]})}),E.jsx(jr,{path:"/pipelines/studio",element:E.jsx(da,{component:()=>E.jsx(se.Suspense,{fallback:E.jsx($o,{}),children:E.jsx(i9e,{})}),roles:[zn.ADMIN]})}),E.jsx(jr,{path:"/pipelines/:pipelineName/studio",element:E.jsx(da,{component:()=>E.jsx(se.Suspense,{fallback:E.jsx($o,{}),children:E.jsx(i9e,{})}),roles:[zn.ADMIN]})}),E.jsx(jr,{path:"/groundedness",element:E.jsx(da,{component:()=>E.jsx(se.Suspense,{fallback:E.jsx($o,{}),children:E.jsx(r9e,{})}),roles:[zn.ADMIN]})}),E.jsx(jr,{path:"/groundedness/:pipelineName",element:E.jsx(da,{component:()=>E.jsx(se.Suspense,{fallback:E.jsx($o,{}),children:E.jsx(r9e,{})}),roles:[zn.ADMIN]})}),E.jsx(jr,{path:"/jobs",element:E.jsx(da,{component:()=>E.jsx(se.Suspense,{fallback:E.jsx($o,{}),children:E.jsx(CNr,{})}),roles:[zn.ADMIN]})}),E.jsx(jr,{path:"/jobs/:jobId",element:E.jsx(da,{component:()=>E.jsx(se.Suspense,{fallback:E.jsx($o,{}),children:E.jsx(wNr,{})}),roles:[zn.ADMIN]})})]}),E.jsx(jr,{path:"*",element:E.jsx(ky,{to:"/login"})}),E.jsx(jr,{path:"/dashboard",element:E.jsx(ky,{to:"/"})}),E.jsx(jr,{path:"/search/*",element:E.jsx(ky,{to:"/playground"})}),E.jsx(jr,{path:"/prompt-explorer/*",element:E.jsx(ky,{to:"/prompt-studio"})}),E.jsx(jr,{path:"/observability/*",element:E.jsx(ky,{to:"/groundedness"})}),E.jsx(jr,{path:"/data/files",element:E.jsx(ky,{to:"/files"})}),E.jsx(jr,{path:"/data/evalset",element:E.jsx(ky,{to:"/evalset"})})]})]})};ran();const ANr="https://fc5b59ef577d400591901eb981c704d4@o485100.ingest.sentry.io/6157389",RNr="prod",NNr=navigator.webdriver,ONr=()=>{NNr||NRt({environment:RNr,dsn:ANr,autoSessionTracking:!0,integrations:[q$e({enableInp:!0}),MRt({useEffect:se.useEffect,useLocation:uv,useNavigationType:v0t,createRoutesFromChildren:BD,matchRoutes:Bce}),ARt()],tracesSampleRate:.8,replaysSessionSampleRate:.1,replaysOnErrorSampleRate:1,ignoreErrors:["https://www.datadoghq-browser-agent.eu"],beforeSend(a){return ian(a)?null:a}}),WXt();const e="auth.cloud.deepset.ai",t="6UAZhdwSYw3VkbcqmOz2QyiTK1ez5MCe",n="https://api.cloud.deepset.ai",r=document.getElementById("root");vGe(r).render(E.jsx(ggt,{store:M_,children:E.jsx(XCt,{domain:e,clientId:t,cacheLocation:"localstorage",onRedirectCallback:()=>{dQe({type:Wa.CLICK,control:ao.LOGIN,properties:{version:"dc"}})},authorizationParams:{redirect_uri:window.location.origin,audience:n},children:E.jsx(yGe,{loading:E.jsx(v0,{indicator:E.jsx(Np,{style:{fontSize:24},spin:!0})}),persistor:XE,children:E.jsx(V0t,{children:E.jsx(zp,{theme:Xy,children:E.jsx(INr,{})})})})})}))};ONr();export{wi as $,$ot as A,Efr as B,Zg as C,I_ as D,$3 as E,lfr as F,Jl as G,hl as H,yOr as I,Dfr as J,vOr as K,It as L,bm as M,Xy as N,Tae as O,ha as P,sge as Q,Ps as R,m_ as S,Ghr as T,E as U,x1r as V,_1r as W,Bgr as X,Lot as Y,m1r as Z,tr as _,Dit as a,HIr as a$,mv as a0,ps as a1,ut as a2,nO as a3,i6r as a4,YO as a5,m7n as a6,C1r as a7,bOr as a8,Uvr as a9,T1r as aA,Nn as aB,Xc as aC,e6 as aD,mj as aE,gm as aF,t6r as aG,Ev as aH,dv as aI,z_ as aJ,j_ as aK,fOr as aL,Zi as aM,SOr as aN,dc as aO,DOr as aP,lDe as aQ,r6r as aR,Wa as aS,ao as aT,ZE as aU,pOr as aV,Si as aW,NOr as aX,dOr as aY,uOr as aZ,_Or as a_,fvr as aa,E1r as ab,ir as ac,st as ad,gQe as ae,hOr as af,QKe as ag,COr as ah,IOr as ai,Cp as aj,F1r as ak,AOr as al,ROr as am,FOr as an,nTr as ao,MOr as ap,EOr as aq,Cor as ar,rM as as,wOr as at,xOr as au,TOr as av,$Or as aw,kOr as ax,pl as ay,Cr as az,is as b,E6r as b$,OOr as b0,LOr as b1,POr as b2,T8r as b3,I8r as b4,C8r as b5,w8r as b6,A8r as b7,R8r as b8,N8r as b9,A6r as bA,Hr as bB,Ka as bC,R6r as bD,_j as bE,Frt as bF,xd as bG,Tkn as bH,PAe as bI,m$ as bJ,LZe as bK,Gpe as bL,_kn as bM,zOr as bN,Skn as bO,Me as bP,so as bQ,xm as bR,x6r as bS,DXe as bT,b6r as bU,_6r as bV,PVe as bW,f6r as bX,ys as bY,Fo as bZ,S6r as b_,O8r as ba,L8r as bb,P8r as bc,x8r as bd,r8r as be,i8r as bf,UOr as bg,o8r as bh,a8r as bi,s8r as bj,l8r as bk,c8r as bl,u8r as bm,d8r as bn,f8r as bo,XOr as bp,ZOr as bq,TXe as br,W1 as bs,eT as bt,T6r as bu,yJn as bv,O_ as bw,_pe as bx,I6r as by,vF as bz,Yur as c,CCr as c$,Td as c0,w6r as c1,Of as c2,z6r as c3,$mn as c4,Pn as c5,v6r as c6,y6r as c7,wgn as c8,Y6r as c9,vr as cA,om as cB,E8r as cC,n8r as cD,jT as cE,xme as cF,XN as cG,Ile as cH,L6r as cI,P6r as cJ,k6r as cK,D6r as cL,$6r as cM,Gce as cN,O6r as cO,M6r as cP,m6r as cQ,Vo as cR,Xb as cS,fm as cT,N6r as cU,_fn as cV,Sv as cW,Hpe as cX,F6r as cY,U6r as cZ,K6r as c_,tut as ca,li as cb,G6r as cc,H6r as cd,yc as ce,zXe as cf,V6r as cg,C6r as ch,Jg as ci,Drt as cj,d8 as ck,u6r as cl,Qdn as cm,qdn as cn,p6r as co,$Xe as cp,m0 as cq,g6r as cr,h$ as cs,v8 as ct,h6r as cu,Aae as cv,Rae as cw,l6r as cx,dn as cy,Xe as cz,ar as d,b7n as d$,X6r as d0,W6r as d1,q6r as d2,j6r as d3,zZe as d4,MC as d5,qct as d6,SA as d7,g8r as d8,v8r as d9,KT as dA,Met as dB,TU as dC,Rr as dD,kC as dE,zp as dF,kAr as dG,ont as dH,kl as dI,yR as dJ,PU as dK,cU as dL,Ff as dM,zi as dN,B6r as dO,Ktt as dP,a8 as dQ,Kvn as dR,VZe as dS,GZe as dT,Ret as dU,t6 as dV,Ic as dW,oir as dX,Dp as dY,Gbt as dZ,I_t as d_,_8r as da,S8r as db,y8r as dc,b8r as dd,k8r as de,M8r as df,D8r as dg,$8r as dh,Exr as di,Cxr as dj,qOr as dk,WOr as dl,VOr as dm,GOr as dn,YOr as dp,KOr as dq,QOr as dr,e8r as ds,JOr as dt,t8r as du,HOr as dv,p8r as dw,h8r as dx,m8r as dy,xU as dz,lt as e,N2t as e$,Xjn as e0,$r as e1,koe as e2,Fdn as e3,dj as e4,G$n as e5,rkn as e6,nkn as e7,jn as e8,Wn as e9,qo as eA,ns as eB,Upe as eC,tO as eD,nbt as eE,se as eF,tv as eG,Fd as eH,_U as eI,Gne as eJ,gye as eK,wm as eL,bbt as eM,gbt as eN,$p as eO,PHe as eP,p$ as eQ,zu as eR,Lu as eS,nzt as eT,hc as eU,IE as eV,DHe as eW,c3 as eX,dve as eY,Vne as eZ,Hne as e_,yn as ea,Kr as eb,br as ec,Ce as ed,Sn as ee,Oe as ef,pC as eg,fv as eh,__ as ei,Gh as ej,Eg as ek,Z_r as el,obr as em,X1 as en,G_r as eo,Kp as ep,y0r as eq,Ou as er,ylt as es,kd as et,$St as eu,lbt as ev,gDe as ew,iSt as ex,aEt as ey,bj as ez,i4 as f,nut as f0,T_n as f1,w5r as f2,rn as f3,rOr as f4,iOr as f5,aOr as f6,yg as f7,Io as f8,VEr as f9,$Et as fA,OB as fB,xr as fC,BOr as fD,jOr as fE,zSr as fF,Er as fG,RB as fH,jle as fI,d6r as fJ,tnt as fK,vGe as fL,F9 as fM,MXe as fN,Q6r as fO,J6r as fP,Z6r as fQ,w_ as fR,gJe as fS,fEt as fa,GLn as fb,mpn as fc,QN as fd,n6r as fe,a6r as ff,o6r as fg,$o as fh,ett as fi,c6r as fj,Gct as fk,Afn as fl,s6r as fm,Dtt as fn,Khe as fo,Htt as fp,Ac as fq,el as fr,_ct as fs,e2r as ft,uDe as fu,tU as fv,uSt as fw,ISt as fx,e2t as fy,cDe as fz,EO as g,h_ as h,bge as i,Bcr as j,gOr as k,mge as l,Nr as m,vo as n,Vn as o,iC as p,hge as q,b as r,jcr as s,fge as t,mT as u,pge as v,Cot as w,mOr as x,wse as y,POe as z};
//# sourceMappingURL=index.C5PS-osG.js.map
